severo HF staff commited on
Commit
ffcd217
1 Parent(s): ae00fc7

Upload folder using huggingface_hub

Browse files
Files changed (50) hide show
  1. _file/data/categories.f3fa0523.csv +27 -0
  2. _file/data/posts.4e3f4ea9.csv +0 -0
  3. _file/data/setup.f452f82e.json +3 -0
  4. _file/observable.1af93621.png +0 -0
  5. _node/[email protected]/index.f89e3560.js +1 -0
  6. _node/[email protected]/index.4106013c.js +1 -0
  7. _npm/@observablehq/[email protected]/e828d8c8.js +0 -0
  8. _npm/[email protected]/1ee6c50d.js +7 -0
  9. _npm/[email protected]/e95f898e.js +7 -0
  10. _npm/[email protected]/d44feff9.js +7 -0
  11. _npm/[email protected]/5830b12a.js +7 -0
  12. _npm/[email protected]/84d7b8e9.js +7 -0
  13. _npm/[email protected]/2c0cdfa2.js +7 -0
  14. _npm/[email protected]/626bedc4.js +7 -0
  15. _npm/[email protected]/00c41b5d.js +7 -0
  16. _npm/[email protected]/b5f7cdc6.js +7 -0
  17. _npm/[email protected]/b22c5864.js +7 -0
  18. _npm/[email protected]/407f7a1f.js +7 -0
  19. _npm/[email protected]/6f15f633.js +7 -0
  20. _npm/[email protected]/ef1ec490.js +7 -0
  21. _npm/[email protected]/5e1ff060.js +7 -0
  22. _npm/[email protected]/5851d7ef.js +7 -0
  23. _npm/[email protected]/dcd02767.js +7 -0
  24. _npm/[email protected]/f1db2593.js +7 -0
  25. _npm/[email protected]/034b7bcb.js +7 -0
  26. _npm/[email protected]/4bb53638.js +7 -0
  27. _npm/[email protected]/bbafde58.js +7 -0
  28. _npm/[email protected]/aa5b35a8.js +7 -0
  29. _npm/[email protected]/32c7fec2.js +7 -0
  30. _npm/[email protected]/cf9b720b.js +7 -0
  31. _npm/[email protected]/567840a0.js +7 -0
  32. _npm/[email protected]/5dcd62f4.js +7 -0
  33. _npm/[email protected]/f8e03c56.js +7 -0
  34. _npm/[email protected]/19c92b44.js +7 -0
  35. _npm/[email protected]/5bc129e1.js +7 -0
  36. _npm/[email protected]/f31b5398.js +7 -0
  37. _npm/[email protected]/8debb4ba.js +7 -0
  38. _npm/[email protected]/4b0cc581.js +7 -0
  39. _npm/[email protected]/7055d4c5.js +7 -0
  40. _npm/[email protected]/e67acb27.js +7 -0
  41. _npm/[email protected]/5eed35fd.js +7 -0
  42. _npm/[email protected]/a62ae5ce.js +7 -0
  43. _npm/[email protected]/c68fbd73.js +7 -0
  44. _npm/[email protected]/8ac9039b.js +7 -0
  45. _observablehq/client.0d4e9b14.js +1 -0
  46. _observablehq/runtime.3f7f73d9.js +7 -0
  47. _observablehq/stdlib.2229c972.js +1 -0
  48. _observablehq/theme-air,near-midnight,alt,wide.f6ca92af.css +1 -0
  49. index.html +530 -19
  50. style.css +0 -28
_file/data/categories.f3fa0523.csv ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ id,name,color
2
+ 5,Beginners,0088CC
3
+ 6,Intermediate,0E76BD
4
+ 20,Course,ED207B
5
+ 7,Research,BF1E2E
6
+ 13,Models,F1592A
7
+ 9,🤗Transformers,F7941D
8
+ 10,🤗Datasets,F7941D
9
+ 11,🤗Tokenizers,F7941D
10
+ 18,🤗Accelerate,F7941D
11
+ 16,🤗AutoTrain,F7941D
12
+ 23,🤗Hub,F7941D
13
+ 59,🤗Optimum,F7941D
14
+ 26,🔒 Gradio,F7941D
15
+ 63,🧨 Diffusers,F7941D
16
+ 64,Inference Endpoints on the Hub,000000
17
+ 17,Amazon SageMaker,231F20
18
+ 66,Amazon Inferentia & Trainium,231F20
19
+ 68,Azure ML Studio Model Catalog,231F20
20
+ 69,Google Cloud,231F20
21
+ 24,Spaces,25AAE2
22
+ 14,Model cards,0088CC
23
+ 15,Languages at Hugging Face,92278F
24
+ 22,Flax/JAX Projects,12A89D
25
+ 12,Community Calls,3AB54A
26
+ 65,Show and Tell,3AB54A
27
+ 2,Site Feedback,808281
_file/data/posts.4e3f4ea9.csv ADDED
The diff for this file is too large to render. See raw diff
 
_file/data/setup.f452f82e.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "base_url": "https://discuss.huggingface.co/"
3
+ }
_file/observable.1af93621.png ADDED
_node/[email protected]/index.f89e3560.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{InternMap as P,InternSet as y}from"../[email protected]/index.4106013c.js";import{InternMap as Fn,InternSet as Rn}from"../[email protected]/index.4106013c.js";function m(t,n){return t==null||n==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function Q(t,n){return t==null||n==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function D(t){let n,r,o;t.length!==2?(n=m,r=(a,l)=>m(t(a),l),o=(a,l)=>t(a)-l):(n=t===m||t===Q?t:vt,r=t,o=t);function e(a,l,i=0,h=a.length){if(i<h){if(n(l,l)!==0)return h;do{const s=i+h>>>1;r(a[s],l)<0?i=s+1:h=s}while(i<h)}return i}function f(a,l,i=0,h=a.length){if(i<h){if(n(l,l)!==0)return h;do{const s=i+h>>>1;r(a[s],l)<=0?i=s+1:h=s}while(i<h)}return i}function u(a,l,i=0,h=a.length){const s=e(a,l,i,h-1);return s>i&&o(a[s-1],l)>-o(a[s],l)?s-1:s}return{left:e,center:u,right:f}}function vt(){return 0}function F(t){return t===null?NaN:+t}function*wt(t,n){if(n===void 0)for(let r of t)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let o of t)(o=n(o,++r,t))!=null&&(o=+o)>=o&&(yield o)}}const V=D(m),W=V.right,Mt=V.left,At=D(F).center;var X=W;function xt(t,n){if(!((n=+n)>=0))throw new RangeError("invalid r");let r=t.length;if(!((r=Math.floor(r))>=0))throw new RangeError("invalid length");if(!r||!n)return t;const o=G(n),e=t.slice();return o(t,e,0,r,1),o(e,t,0,r,1),o(t,e,0,r,1),t}const bt=Y(G),Et=Y(Nt);function Y(t){return function(n,r,o=r){if(!((r=+r)>=0))throw new RangeError("invalid rx");if(!((o=+o)>=0))throw new RangeError("invalid ry");let{data:e,width:f,height:u}=n;if(!((f=Math.floor(f))>=0))throw new RangeError("invalid width");if(!((u=Math.floor(u!==void 0?u:e.length/f))>=0))throw new RangeError("invalid height");if(!f||!u||!r&&!o)return n;const a=r&&t(r),l=o&&t(o),i=e.slice();return a&&l?($(a,i,e,f,u),$(a,e,i,f,u),$(a,i,e,f,u),v(l,e,i,f,u),v(l,i,e,f,u),v(l,e,i,f,u)):a?($(a,e,i,f,u),$(a,i,e,f,u),$(a,e,i,f,u)):l&&(v(l,e,i,f,u),v(l,i,e,f,u),v(l,e,i,f,u)),n}}function $(t,n,r,o,e){for(let f=0,u=o*e;f<u;)t(n,r,f,f+=o,1)}function v(t,n,r,o,e){for(let f=0,u=o*e;f<o;++f)t(n,r,f,f+u,o)}function Nt(t){const n=G(t);return(r,o,e,f,u)=>{e<<=2,f<<=2,u<<=2,n(r,o,e+0,f+0,u),n(r,o,e+1,f+1,u),n(r,o,e+2,f+2,u),n(r,o,e+3,f+3,u)}}function G(t){const n=Math.floor(t);if(n===t)return St(t);const r=t-n,o=2*t+1;return(e,f,u,a,l)=>{if(!((a-=l)>=u))return;let i=n*f[u];const h=l*n,s=h+l;for(let c=u,d=u+h;c<d;c+=l)i+=f[Math.min(a,c)];for(let c=u,d=a;c<=d;c+=l)i+=f[Math.min(a,c+h)],e[c]=(i+r*(f[Math.max(u,c-s)]+f[Math.min(a,c+s)]))/o,i-=f[Math.max(u,c-h)]}}function St(t){const n=2*t+1;return(r,o,e,f,u)=>{if(!((f-=u)>=e))return;let a=t*o[e];const l=u*t;for(let i=e,h=e+l;i<h;i+=u)a+=o[Math.min(f,i)];for(let i=e,h=f;i<=h;i+=u)a+=o[Math.min(f,i+l)],r[i]=a/n,a-=o[Math.max(e,i-l)]}}function R(t,n){let r=0;if(n===void 0)for(let o of t)o!=null&&(o=+o)>=o&&++r;else{let o=-1;for(let e of t)(e=n(e,++o,t))!=null&&(e=+e)>=e&&++r}return r}function qt(t){return t.length|0}function It(t){return!(t>0)}function Ft(t){return typeof t!="object"||"length"in t?t:Array.from(t)}function Rt(t){return n=>t(...n)}function Tt(...t){const n=typeof t[t.length-1]=="function"&&Rt(t.pop());t=t.map(Ft);const r=t.map(qt),o=t.length-1,e=new Array(o+1).fill(0),f=[];if(o<0||r.some(It))return f;for(;;){f.push(e.map((a,l)=>t[l][a]));let u=o;for(;++e[u]===r[u];){if(u===0)return n?f.map(n):f;e[u--]=0}}}function kt(t,n){var r=0,o=0;return Float64Array.from(t,n===void 0?e=>r+=+e||0:e=>r+=+n(e,o++,t)||0)}function Z(t,n){let r=0,o,e=0,f=0;if(n===void 0)for(let u of t)u!=null&&(u=+u)>=u&&(o=u-e,e+=o/++r,f+=o*(u-e));else{let u=-1;for(let a of t)(a=n(a,++u,t))!=null&&(a=+a)>=a&&(o=a-e,e+=o/++r,f+=o*(a-e))}if(r>1)return f/(r-1)}function tt(t,n){const r=Z(t,n);return r&&Math.sqrt(r)}function T(t,n){let r,o;if(n===void 0)for(const e of t)e!=null&&(r===void 0?e>=e&&(r=o=e):(r>e&&(r=e),o<e&&(o=e)));else{let e=-1;for(let f of t)(f=n(f,++e,t))!=null&&(r===void 0?f>=f&&(r=o=f):(r>f&&(r=f),o<f&&(o=f)))}return[r,o]}let L=class{constructor(){this._partials=new Float64Array(32),this._n=0}add(n){const r=this._partials;let o=0;for(let e=0;e<this._n&&e<32;e++){const f=r[e],u=n+f,a=Math.abs(n)<Math.abs(f)?n-(u-f):f-(u-n);a&&(r[o++]=a),n=u}return r[o]=n,this._n=o+1,this}valueOf(){const n=this._partials;let r=this._n,o,e,f,u=0;if(r>0){for(u=n[--r];r>0&&(o=u,e=n[--r],u=o+e,f=e-(u-o),!f););r>0&&(f<0&&n[r-1]<0||f>0&&n[r-1]>0)&&(e=f*2,o=u+e,e==o-u&&(u=o))}return u}};function _t(t,n){const r=new L;if(n===void 0)for(let o of t)(o=+o)&&r.add(o);else{let o=-1;for(let e of t)(e=+n(e,++o,t))&&r.add(e)}return+r}function jt(t,n){const r=new L;let o=-1;return Float64Array.from(t,n===void 0?e=>r.add(+e||0):e=>r.add(+n(e,++o,t)||0))}function w(t){return t}function nt(t,...n){return M(t,w,w,n)}function rt(t,...n){return M(t,Array.from,w,n)}function et(t,n){for(let r=1,o=n.length;r<o;++r)t=t.flatMap(e=>e.pop().map(([f,u])=>[...e,f,u]));return t}function Ot(t,...n){return et(rt(t,...n),n)}function Ut(t,n,...r){return et(ft(t,n,...r),r)}function ot(t,n,...r){return M(t,w,n,r)}function ft(t,n,...r){return M(t,Array.from,n,r)}function Dt(t,...n){return M(t,w,ut,n)}function Gt(t,...n){return M(t,Array.from,ut,n)}function ut(t){if(t.length!==1)throw new Error("duplicate key");return t[0]}function M(t,n,r,o){return function e(f,u){if(u>=o.length)return r(f);const a=new P,l=o[u++];let i=-1;for(const h of f){const s=l(h,++i,f),c=a.get(s);c?c.push(h):a.set(s,[h])}for(const[h,s]of a)a.set(h,e(s,u));return n(a)}(t,0)}function at(t,n){return Array.from(n,r=>t[r])}function z(t,...n){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");t=Array.from(t);let[r]=n;if(r&&r.length!==2||n.length>1){const o=Uint32Array.from(t,(e,f)=>f);return n.length>1?(n=n.map(e=>t.map(e)),o.sort((e,f)=>{for(const u of n){const a=A(u[e],u[f]);if(a)return a}})):(r=t.map(r),o.sort((e,f)=>A(r[e],r[f]))),at(t,o)}return t.sort(C(r))}function C(t=m){if(t===m)return A;if(typeof t!="function")throw new TypeError("compare is not a function");return(n,r)=>{const o=t(n,r);return o||o===0?o:(t(r,r)===0)-(t(n,n)===0)}}function A(t,n){return(t==null||!(t>=t))-(n==null||!(n>=n))||(t<n?-1:t>n?1:0)}function Lt(t,n,r){return(n.length!==2?z(ot(t,n,r),([o,e],[f,u])=>m(e,u)||m(o,f)):z(nt(t,r),([o,e],[f,u])=>n(e,u)||m(o,f))).map(([o])=>o)}var zt=Array.prototype,Ct=zt.slice;function B(t){return()=>t}const Bt=Math.sqrt(50),Ht=Math.sqrt(10),Jt=Math.sqrt(2);function k(t,n,r){const o=(n-t)/Math.max(0,r),e=Math.floor(Math.log10(o)),f=o/Math.pow(10,e),u=f>=Bt?10:f>=Ht?5:f>=Jt?2:1;let a,l,i;return e<0?(i=Math.pow(10,-e)/u,a=Math.round(t*i),l=Math.round(n*i),a/i<t&&++a,l/i>n&&--l,i=-i):(i=Math.pow(10,e)*u,a=Math.round(t/i),l=Math.round(n/i),a*i<t&&++a,l*i>n&&--l),l<a&&.5<=r&&r<2?k(t,n,r*2):[a,l,i]}function it(t,n,r){if(n=+n,t=+t,r=+r,!(r>0))return[];if(t===n)return[t];const o=n<t,[e,f,u]=o?k(n,t,r):k(t,n,r);if(!(f>=e))return[];const a=f-e+1,l=new Array(a);if(o)if(u<0)for(let i=0;i<a;++i)l[i]=(f-i)/-u;else for(let i=0;i<a;++i)l[i]=(f-i)*u;else if(u<0)for(let i=0;i<a;++i)l[i]=(e+i)/-u;else for(let i=0;i<a;++i)l[i]=(e+i)*u;return l}function x(t,n,r){return n=+n,t=+t,r=+r,k(t,n,r)[2]}function Kt(t,n,r){n=+n,t=+t,r=+r;const o=n<t,e=o?x(n,t,r):x(t,n,r);return(o?-1:1)*(e<0?1/-e:e)}function lt(t,n,r){let o;for(;;){const e=x(t,n,r);if(e===o||e===0||!isFinite(e))return[t,n];e>0?(t=Math.floor(t/e)*e,n=Math.ceil(n/e)*e):e<0&&(t=Math.ceil(t*e)/e,n=Math.floor(n*e)/e),o=e}}function st(t){return Math.max(1,Math.ceil(Math.log(R(t))/Math.LN2)+1)}function ct(){var t=w,n=T,r=st;function o(e){Array.isArray(e)||(e=Array.from(e));var f,u=e.length,a,l,i=new Array(u);for(f=0;f<u;++f)i[f]=t(e[f],f,e);var h=n(i),s=h[0],c=h[1],d=r(i,s,c);if(!Array.isArray(d)){const q=c,I=+d;if(n===T&&([s,c]=lt(s,c,I)),d=it(s,c,I),d[0]<=s&&(l=x(s,c,I)),d[d.length-1]>=c)if(q>=c&&n===T){const g=x(s,c,I);isFinite(g)&&(g>0?c=(Math.floor(c/g)+1)*g:g<0&&(c=(Math.ceil(c*-g)+1)/-g))}else d.pop()}for(var p=d.length,b=0,E=p;d[b]<=s;)++b;for(;d[E-1]>c;)--E;(b||E<p)&&(d=d.slice(b,E),p=E-b);var N=new Array(p+1),U;for(f=0;f<=p;++f)U=N[f]=[],U.x0=f>0?d[f-1]:s,U.x1=f<p?d[f]:c;if(isFinite(l)){if(l>0)for(f=0;f<u;++f)(a=i[f])!=null&&s<=a&&a<=c&&N[Math.min(p,Math.floor((a-s)/l))].push(e[f]);else if(l<0){for(f=0;f<u;++f)if((a=i[f])!=null&&s<=a&&a<=c){const q=Math.floor((s-a)*l);N[Math.min(p,q+(d[q]<=a))].push(e[f])}}}else for(f=0;f<u;++f)(a=i[f])!=null&&s<=a&&a<=c&&N[X(d,a,0,p)].push(e[f]);return N}return o.value=function(e){return arguments.length?(t=typeof e=="function"?e:B(e),o):t},o.domain=function(e){return arguments.length?(n=typeof e=="function"?e:B([e[0],e[1]]),o):n},o.thresholds=function(e){return arguments.length?(r=typeof e=="function"?e:B(Array.isArray(e)?Ct.call(e):e),o):r},o}function H(t,n){let r;if(n===void 0)for(const o of t)o!=null&&(r<o||r===void 0&&o>=o)&&(r=o);else{let o=-1;for(let e of t)(e=n(e,++o,t))!=null&&(r<e||r===void 0&&e>=e)&&(r=e)}return r}function J(t,n){let r,o=-1,e=-1;if(n===void 0)for(const f of t)++e,f!=null&&(r<f||r===void 0&&f>=f)&&(r=f,o=e);else for(let f of t)(f=n(f,++e,t))!=null&&(r<f||r===void 0&&f>=f)&&(r=f,o=e);return o}function _(t,n){let r;if(n===void 0)for(const o of t)o!=null&&(r>o||r===void 0&&o>=o)&&(r=o);else{let o=-1;for(let e of t)(e=n(e,++o,t))!=null&&(r>e||r===void 0&&e>=e)&&(r=e)}return r}function K(t,n){let r,o=-1,e=-1;if(n===void 0)for(const f of t)++e,f!=null&&(r>f||r===void 0&&f>=f)&&(r=f,o=e);else for(let f of t)(f=n(f,++e,t))!=null&&(r>f||r===void 0&&f>=f)&&(r=f,o=e);return o}function j(t,n,r=0,o=1/0,e){if(n=Math.floor(n),r=Math.floor(Math.max(0,r)),o=Math.floor(Math.min(t.length-1,o)),!(r<=n&&n<=o))return t;for(e=e===void 0?A:C(e);o>r;){if(o-r>600){const l=o-r+1,i=n-r+1,h=Math.log(l),s=.5*Math.exp(2*h/3),c=.5*Math.sqrt(h*s*(l-s)/l)*(i-l/2<0?-1:1),d=Math.max(r,Math.floor(n-i*s/l+c)),p=Math.min(o,Math.floor(n+(l-i)*s/l+c));j(t,n,d,p,e)}const f=t[n];let u=r,a=o;for(S(t,r,n),e(t[o],f)>0&&S(t,r,o);u<a;){for(S(t,u,a),++u,--a;e(t[u],f)<0;)++u;for(;e(t[a],f)>0;)--a}e(t[r],f)===0?S(t,r,a):(++a,S(t,a,o)),a<=n&&(r=a+1),n<=a&&(o=a-1)}return t}function S(t,n,r){const o=t[n];t[n]=t[r],t[r]=o}function ht(t,n=m){let r,o=!1;if(n.length===1){let e;for(const f of t){const u=n(f);(o?m(u,e)>0:m(u,u)===0)&&(r=f,e=u,o=!0)}}else for(const e of t)(o?n(e,r)>0:n(e,e)===0)&&(r=e,o=!0);return r}function O(t,n,r){if(t=Float64Array.from(wt(t,r)),!(!(o=t.length)||isNaN(n=+n))){if(n<=0||o<2)return _(t);if(n>=1)return H(t);var o,e=(o-1)*n,f=Math.floor(e),u=H(j(t,f).subarray(0,f+1)),a=_(t.subarray(f+1));return u+(a-u)*(e-f)}}function Pt(t,n,r=F){if(!(!(o=t.length)||isNaN(n=+n))){if(n<=0||o<2)return+r(t[0],0,t);if(n>=1)return+r(t[o-1],o-1,t);var o,e=(o-1)*n,f=Math.floor(e),u=+r(t[f],f,t),a=+r(t[f+1],f+1,t);return u+(a-u)*(e-f)}}function dt(t,n,r=F){if(!isNaN(n=+n)){if(o=Float64Array.from(t,(a,l)=>F(r(t[l],l,t))),n<=0)return K(o);if(n>=1)return J(o);var o,e=Uint32Array.from(t,(a,l)=>l),f=o.length-1,u=Math.floor(f*n);return j(e,u,0,f,(a,l)=>A(o[a],o[l])),u=ht(e.subarray(0,u+1),a=>o[a]),u>=0?u:-1}}function Qt(t,n,r){const o=R(t),e=O(t,.75)-O(t,.25);return o&&e?Math.ceil((r-n)/(2*e*Math.pow(o,-1/3))):1}function Vt(t,n,r){const o=R(t),e=tt(t);return o&&e?Math.ceil((r-n)*Math.cbrt(o)/(3.49*e)):1}function Wt(t,n){let r=0,o=0;if(n===void 0)for(let e of t)e!=null&&(e=+e)>=e&&(++r,o+=e);else{let e=-1;for(let f of t)(f=n(f,++e,t))!=null&&(f=+f)>=f&&(++r,o+=f)}if(r)return o/r}function Xt(t,n){return O(t,.5,n)}function Yt(t,n){return dt(t,.5,n)}function*Zt(t){for(const n of t)yield*n}function tn(t){return Array.from(Zt(t))}function nn(t,n){const r=new P;if(n===void 0)for(let f of t)f!=null&&f>=f&&r.set(f,(r.get(f)||0)+1);else{let f=-1;for(let u of t)(u=n(u,++f,t))!=null&&u>=u&&r.set(u,(r.get(u)||0)+1)}let o,e=0;for(const[f,u]of r)u>e&&(e=u,o=f);return o}function rn(t,n=en){const r=[];let o,e=!1;for(const f of t)e&&r.push(n(o,f)),o=f,e=!0;return r}function en(t,n){return[t,n]}function on(t,n,r){t=+t,n=+n,r=(e=arguments.length)<2?(n=t,t=0,1):e<3?1:+r;for(var o=-1,e=Math.max(0,Math.ceil((n-t)/r))|0,f=new Array(e);++o<e;)f[o]=t+o*r;return f}function fn(t,n=m){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");let r=Array.from(t);const o=new Float64Array(r.length);n.length!==2&&(r=r.map(n),n=m);const e=(a,l)=>n(r[a],r[l]);let f,u;return t=Uint32Array.from(r,(a,l)=>l),t.sort(n===m?(a,l)=>A(r[a],r[l]):C(e)),t.forEach((a,l)=>{const i=e(a,f===void 0?a:f);i>=0?((f===void 0||i>0)&&(f=a,u=l),o[a]=u):o[a]=NaN}),o}function un(t,n=m){let r,o=!1;if(n.length===1){let e;for(const f of t){const u=n(f);(o?m(u,e)<0:m(u,u)===0)&&(r=f,e=u,o=!0)}}else for(const e of t)(o?n(e,r)<0:n(e,e)===0)&&(r=e,o=!0);return r}function mt(t,n=m){if(n.length===1)return K(t,n);let r,o=-1,e=-1;for(const f of t)++e,(o<0?n(f,f)===0:n(f,r)<0)&&(r=f,o=e);return o}function an(t,n=m){if(n.length===1)return J(t,n);let r,o=-1,e=-1;for(const f of t)++e,(o<0?n(f,f)===0:n(f,r)>0)&&(r=f,o=e);return o}function ln(t,n){const r=mt(t,n);return r<0?void 0:r}var sn=pt(Math.random);function pt(t){return function(n,r=0,o=n.length){let e=o-(r=+r);for(;e;){const f=t()*e--|0,u=n[e+r];n[e+r]=n[f+r],n[f+r]=u}return n}}function cn(t,n){let r=0;if(n===void 0)for(let o of t)(o=+o)&&(r+=o);else{let o=-1;for(let e of t)(e=+n(e,++o,t))&&(r+=e)}return r}function gt(t){if(!(f=t.length))return[];for(var n=-1,r=_(t,hn),o=new Array(r);++n<r;)for(var e=-1,f,u=o[n]=new Array(f);++e<f;)u[e]=t[e][n];return o}function hn(t){return t.length}function dn(){return gt(arguments)}function mn(t,n){if(typeof n!="function")throw new TypeError("test is not a function");let r=-1;for(const o of t)if(!n(o,++r,t))return!1;return!0}function pn(t,n){if(typeof n!="function")throw new TypeError("test is not a function");let r=-1;for(const o of t)if(n(o,++r,t))return!0;return!1}function gn(t,n){if(typeof n!="function")throw new TypeError("test is not a function");const r=[];let o=-1;for(const e of t)n(e,++o,t)&&r.push(e);return r}function yn(t,n){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof n!="function")throw new TypeError("mapper is not a function");return Array.from(t,(r,o)=>n(r,o,t))}function $n(t,n,r){if(typeof n!="function")throw new TypeError("reducer is not a function");const o=t[Symbol.iterator]();let e,f,u=-1;if(arguments.length<3){if({done:e,value:r}=o.next(),e)return;++u}for(;{done:e,value:f}=o.next(),!e;)r=n(r,f,++u,t);return r}function vn(t){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(t).reverse()}function wn(t,...n){t=new y(t);for(const r of n)for(const o of r)t.delete(o);return t}function Mn(t,n){const r=n[Symbol.iterator](),o=new y;for(const e of t){if(o.has(e))return!1;let f,u;for(;({value:f,done:u}=r.next())&&!u;){if(Object.is(e,f))return!1;o.add(f)}}return!0}function An(t,...n){t=new y(t),n=n.map(xn);t:for(const r of t)for(const o of n)if(!o.has(r)){t.delete(r);continue t}return t}function xn(t){return t instanceof y?t:new y(t)}function yt(t,n){const r=t[Symbol.iterator](),o=new Set;for(const e of n){const f=$t(e);if(o.has(f))continue;let u,a;for(;{value:u,done:a}=r.next();){if(a)return!1;const l=$t(u);if(o.add(l),Object.is(f,l))break}}return!0}function $t(t){return t!==null&&typeof t=="object"?t.valueOf():t}function bn(t,n){return yt(n,t)}function En(...t){const n=new y;for(const r of t)for(const o of r)n.add(o);return n}export{L as Adder,Fn as InternMap,Rn as InternSet,m as ascending,ct as bin,X as bisect,At as bisectCenter,Mt as bisectLeft,W as bisectRight,D as bisector,xt as blur,bt as blur2,Et as blurImage,R as count,Tt as cross,kt as cumsum,Q as descending,tt as deviation,wn as difference,Mn as disjoint,mn as every,T as extent,jt as fcumsum,gn as filter,Ot as flatGroup,Ut as flatRollup,_t as fsum,ht as greatest,an as greatestIndex,nt as group,Lt as groupSort,rt as groups,ct as histogram,Dt as index,Gt as indexes,An as intersection,un as least,mt as leastIndex,yn as map,H as max,J as maxIndex,Wt as mean,Xt as median,Yt as medianIndex,tn as merge,_ as min,K as minIndex,nn as mode,lt as nice,rn as pairs,at as permute,O as quantile,dt as quantileIndex,Pt as quantileSorted,j as quickselect,on as range,fn as rank,$n as reduce,vn as reverse,ot as rollup,ft as rollups,ln as scan,sn as shuffle,pt as shuffler,pn as some,z as sort,bn as subset,cn as sum,yt as superset,Qt as thresholdFreedmanDiaconis,Vt as thresholdScott,st as thresholdSturges,x as tickIncrement,Kt as tickStep,it as ticks,gt as transpose,En as union,Z as variance,dn as zip};
_node/[email protected]/index.4106013c.js ADDED
@@ -0,0 +1 @@
 
 
1
+ class c extends Map{constructor(e,s=a){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:s}}),e!=null)for(const[n,o]of e)this.set(n,o)}get(e){return super.get(r(this,e))}has(e){return super.has(r(this,e))}set(e,s){return super.set(u(this,e),s)}delete(e){return super.delete(i(this,e))}}class h extends Set{constructor(e,s=a){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:s}}),e!=null)for(const n of e)this.add(n)}has(e){return super.has(r(this,e))}add(e){return super.add(u(this,e))}delete(e){return super.delete(i(this,e))}}function r({_intern:t,_key:e},s){const n=e(s);return t.has(n)?t.get(n):s}function u({_intern:t,_key:e},s){const n=e(s);return t.has(n)?t.get(n):(t.set(n,s),s)}function i({_intern:t,_key:e},s){const n=e(s);return t.has(n)&&(s=t.get(n),t.delete(n)),s}function a(t){return t!==null&&typeof t=="object"?t.valueOf():t}export{c as InternMap,h as InternSet};
_npm/@observablehq/[email protected]/e828d8c8.js ADDED
The diff for this file is too large to render. See raw diff
 
_npm/[email protected]/1ee6c50d.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/search-bounds.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ function r(r,n,t,o,e){for(var u=e+1;o<=e;){var i=o+e>>>1,f=r[i];(void 0!==t?t(f,n):f-n)>=0?(u=i,e=i-1):o=i+1}return u}function n(r,n,t,o,e){for(var u=e+1;o<=e;){var i=o+e>>>1,f=r[i];(void 0!==t?t(f,n):f-n)>0?(u=i,e=i-1):o=i+1}return u}function t(r,n,t,o,e){for(var u=o-1;o<=e;){var i=o+e>>>1,f=r[i];(void 0!==t?t(f,n):f-n)<0?(u=i,o=i+1):e=i-1}return u}function o(r,n,t,o,e){for(var u=o-1;o<=e;){var i=o+e>>>1,f=r[i];(void 0!==t?t(f,n):f-n)<=0?(u=i,o=i+1):e=i-1}return u}function e(r,n,t,o,e){for(;o<=e;){var u=o+e>>>1,i=r[u],f=void 0!==t?t(i,n):i-n;if(0===f)return u;f<=0?o=u+1:e=u-1}return-1}function u(r,n,t,o,e,u){return"function"==typeof t?u(r,n,t,void 0===o?0:0|o,void 0===e?r.length-1:0|e):u(r,n,void 0,void 0===t?0:0|t,void 0===o?r.length-1:0|o)}var i={ge:function(n,t,o,e,i){return u(n,t,o,e,i,r)},gt:function(r,t,o,e,i){return u(r,t,o,e,i,n)},lt:function(r,n,o,e,i){return u(r,n,o,e,i,t)},le:function(r,n,t,e,i){return u(r,n,t,e,i,o)},eq:function(r,n,t,o,i){return u(r,n,t,o,i,e)}},f=i.eq,v=i.ge,a=i.gt,c=i.le,d=i.lt;export{i as default,f as eq,v as ge,a as gt,c as le,d as lt};
_npm/[email protected]/e95f898e.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import{InternMap as t,InternSet as n}from"../[email protected]/5eed35fd.js";export{InternMap,InternSet}from"../[email protected]/5eed35fd.js";function r(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function o(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function e(t){let n,e,i;function u(t,r,o=0,f=t.length){if(o<f){if(0!==n(r,r))return f;do{const n=o+f>>>1;e(t[n],r)<0?o=n+1:f=n}while(o<f)}return o}return 2!==t.length?(n=r,e=(n,o)=>r(t(n),o),i=(n,r)=>t(n)-r):(n=t===r||t===o?t:f,e=t,i=t),{left:u,center:function(t,n,r=0,o=t.length){const e=u(t,n,r,o-1);return e>r&&i(t[e-1],n)>-i(t[e],n)?e-1:e},right:function(t,r,o=0,f=t.length){if(o<f){if(0!==n(r,r))return f;do{const n=o+f>>>1;e(t[n],r)<=0?o=n+1:f=n}while(o<f)}return o}}}function f(){return 0}function i(t){return null===t?NaN:+t}const u=e(r),l=u.right,c=u.left,a=e(i).center;function s(t,n){if(!((n=+n)>=0))throw new RangeError("invalid r");let r=t.length;if(!((r=Math.floor(r))>=0))throw new RangeError("invalid length");if(!r||!n)return t;const o=M(n),e=t.slice();return o(t,e,0,r,1),o(e,t,0,r,1),o(t,e,0,r,1),t}const h=d(M),y=d((function(t){const n=M(t);return(t,r,o,e,f)=>{n(t,r,(o<<=2)+0,(e<<=2)+0,f<<=2),n(t,r,o+1,e+1,f),n(t,r,o+2,e+2,f),n(t,r,o+3,e+3,f)}}));function d(t){return function(n,r,o=r){if(!((r=+r)>=0))throw new RangeError("invalid rx");if(!((o=+o)>=0))throw new RangeError("invalid ry");let{data:e,width:f,height:i}=n;if(!((f=Math.floor(f))>=0))throw new RangeError("invalid width");if(!((i=Math.floor(void 0!==i?i:e.length/f))>=0))throw new RangeError("invalid height");if(!f||!i||!r&&!o)return n;const u=r&&t(r),l=o&&t(o),c=e.slice();return u&&l?(p(u,c,e,f,i),p(u,e,c,f,i),p(u,c,e,f,i),m(l,e,c,f,i),m(l,c,e,f,i),m(l,e,c,f,i)):u?(p(u,e,c,f,i),p(u,c,e,f,i),p(u,e,c,f,i)):l&&(m(l,e,c,f,i),m(l,c,e,f,i),m(l,e,c,f,i)),n}}function p(t,n,r,o,e){for(let f=0,i=o*e;f<i;)t(n,r,f,f+=o,1)}function m(t,n,r,o,e){for(let f=0,i=o*e;f<o;++f)t(n,r,f,f+i,o)}function M(t){const n=Math.floor(t);if(n===t)return function(t){const n=2*t+1;return(r,o,e,f,i)=>{if(!((f-=i)>=e))return;let u=t*o[e];const l=i*t;for(let t=e,n=e+l;t<n;t+=i)u+=o[Math.min(f,t)];for(let t=e,c=f;t<=c;t+=i)u+=o[Math.min(f,t+l)],r[t]=u/n,u-=o[Math.max(e,t-l)]}}(t);const r=t-n,o=2*t+1;return(t,e,f,i,u)=>{if(!((i-=u)>=f))return;let l=n*e[f];const c=u*n,a=c+u;for(let t=f,n=f+c;t<n;t+=u)l+=e[Math.min(i,t)];for(let n=f,s=i;n<=s;n+=u)l+=e[Math.min(i,n+c)],t[n]=(l+r*(e[Math.max(f,n-a)]+e[Math.min(i,n+a)]))/o,l-=e[Math.max(f,n-c)]}}function v(t,n){let r=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&++r;else{let o=-1;for(let e of t)null!=(e=n(e,++o,t))&&(e=+e)>=e&&++r}return r}function w(t){return 0|t.length}function g(t){return!(t>0)}function A(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function b(...t){const n="function"==typeof t[t.length-1]&&function(t){return n=>t(...n)}(t.pop()),r=(t=t.map(A)).map(w),o=t.length-1,e=new Array(o+1).fill(0),f=[];if(o<0||r.some(g))return f;for(;;){f.push(e.map(((n,r)=>t[r][n])));let i=o;for(;++e[i]===r[i];){if(0===i)return n?f.map(n):f;e[i--]=0}}}function x(t,n){var r=0,o=0;return Float64Array.from(t,void 0===n?t=>r+=+t||0:e=>r+=+n(e,o++,t)||0)}function N(t,n){let r,o=0,e=0,f=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(r=n-e,e+=r/++o,f+=r*(n-e));else{let i=-1;for(let u of t)null!=(u=n(u,++i,t))&&(u=+u)>=u&&(r=u-e,e+=r/++o,f+=r*(u-e))}if(o>1)return f/(o-1)}function E(t,n){const r=N(t,n);return r?Math.sqrt(r):r}function T(t,n){let r,o;if(void 0===n)for(const n of t)null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)));else{let e=-1;for(let f of t)null!=(f=n(f,++e,t))&&(void 0===r?f>=f&&(r=o=f):(r>f&&(r=f),o<f&&(o=f)))}return[r,o]}class F{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let o=0;o<this._n&&o<32;o++){const e=n[o],f=t+e,i=Math.abs(t)<Math.abs(e)?t-(f-e):e-(f-t);i&&(n[r++]=i),t=f}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n,r,o,e=this._n,f=0;if(e>0){for(f=t[--e];e>0&&(n=f,r=t[--e],f=n+r,o=r-(f-n),!o););e>0&&(o<0&&t[e-1]<0||o>0&&t[e-1]>0)&&(r=2*o,n=f+r,r==n-f&&(f=n))}return f}}function S(t,n){const r=new F;if(void 0===n)for(let n of t)(n=+n)&&r.add(n);else{let o=-1;for(let e of t)(e=+n(e,++o,t))&&r.add(e)}return+r}function _(t,n){const r=new F;let o=-1;return Float64Array.from(t,void 0===n?t=>r.add(+t||0):e=>r.add(+n(e,++o,t)||0))}function R(t){return t}function q(t,...n){return D(t,R,R,n)}function j(t,...n){return D(t,Array.from,R,n)}function O(t,n){for(let r=1,o=n.length;r<o;++r)t=t.flatMap((t=>t.pop().map((([n,r])=>[...t,n,r]))));return t}function U(t,...n){return O(j(t,...n),n)}function k(t,n,...r){return O(L(t,n,...r),r)}function I(t,n,...r){return D(t,R,n,r)}function L(t,n,...r){return D(t,Array.from,n,r)}function z(t,...n){return D(t,R,C,n)}function B(t,...n){return D(t,Array.from,C,n)}function C(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function D(n,r,o,e){return function n(f,i){if(i>=e.length)return o(f);const u=new t,l=e[i++];let c=-1;for(const t of f){const n=l(t,++c,f),r=u.get(n);r?r.push(t):u.set(n,[t])}for(const[t,r]of u)u.set(t,n(r,i));return r(u)}(n,0)}function G(t,n){return Array.from(n,(n=>t[n]))}function H(t,...n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[r]=n;if(r&&2!==r.length||n.length>1){const o=Uint32Array.from(t,((t,n)=>n));return n.length>1?(n=n.map((n=>t.map(n))),o.sort(((t,r)=>{for(const o of n){const n=K(o[t],o[r]);if(n)return n}}))):(r=t.map(r),o.sort(((t,n)=>K(r[t],r[n])))),G(t,o)}return t.sort(J(r))}function J(t=r){if(t===r)return K;if("function"!=typeof t)throw new TypeError("compare is not a function");return(n,r)=>{const o=t(n,r);return o||0===o?o:(0===t(r,r))-(0===t(n,n))}}function K(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function P(t,n,o){return(2!==n.length?H(I(t,n,o),(([t,n],[o,e])=>r(n,e)||r(t,o))):H(q(t,o),(([t,o],[e,f])=>n(o,f)||r(t,e)))).map((([t])=>t))}var Q=Array.prototype.slice;function V(t){return()=>t}const W=Math.sqrt(50),X=Math.sqrt(10),Y=Math.sqrt(2);function Z(t,n,r){const o=(n-t)/Math.max(0,r),e=Math.floor(Math.log10(o)),f=o/Math.pow(10,e),i=f>=W?10:f>=X?5:f>=Y?2:1;let u,l,c;return e<0?(c=Math.pow(10,-e)/i,u=Math.round(t*c),l=Math.round(n*c),u/c<t&&++u,l/c>n&&--l,c=-c):(c=Math.pow(10,e)*i,u=Math.round(t/c),l=Math.round(n/c),u*c<t&&++u,l*c>n&&--l),l<u&&.5<=r&&r<2?Z(t,n,2*r):[u,l,c]}function $(t,n,r){if(!((r=+r)>0))return[];if((t=+t)===(n=+n))return[t];const o=n<t,[e,f,i]=o?Z(n,t,r):Z(t,n,r);if(!(f>=e))return[];const u=f-e+1,l=new Array(u);if(o)if(i<0)for(let t=0;t<u;++t)l[t]=(f-t)/-i;else for(let t=0;t<u;++t)l[t]=(f-t)*i;else if(i<0)for(let t=0;t<u;++t)l[t]=(e+t)/-i;else for(let t=0;t<u;++t)l[t]=(e+t)*i;return l}function tt(t,n,r){return Z(t=+t,n=+n,r=+r)[2]}function nt(t,n,r){r=+r;const o=(n=+n)<(t=+t),e=o?tt(n,t,r):tt(t,n,r);return(o?-1:1)*(e<0?1/-e:e)}function rt(t,n,r){let o;for(;;){const e=tt(t,n,r);if(e===o||0===e||!isFinite(e))return[t,n];e>0?(t=Math.floor(t/e)*e,n=Math.ceil(n/e)*e):e<0&&(t=Math.ceil(t*e)/e,n=Math.floor(n*e)/e),o=e}}function ot(t){return Math.max(1,Math.ceil(Math.log(v(t))/Math.LN2)+1)}function et(){var t=R,n=T,r=ot;function o(o){Array.isArray(o)||(o=Array.from(o));var e,f,i,u=o.length,c=new Array(u);for(e=0;e<u;++e)c[e]=t(o[e],e,o);var a=n(c),s=a[0],h=a[1],y=r(c,s,h);if(!Array.isArray(y)){const t=h,r=+y;if(n===T&&([s,h]=rt(s,h,r)),(y=$(s,h,r))[0]<=s&&(i=tt(s,h,r)),y[y.length-1]>=h)if(t>=h&&n===T){const t=tt(s,h,r);isFinite(t)&&(t>0?h=(Math.floor(h/t)+1)*t:t<0&&(h=(Math.ceil(h*-t)+1)/-t))}else y.pop()}for(var d=y.length,p=0,m=d;y[p]<=s;)++p;for(;y[m-1]>h;)--m;(p||m<d)&&(y=y.slice(p,m),d=m-p);var M,v=new Array(d+1);for(e=0;e<=d;++e)(M=v[e]=[]).x0=e>0?y[e-1]:s,M.x1=e<d?y[e]:h;if(isFinite(i)){if(i>0)for(e=0;e<u;++e)null!=(f=c[e])&&s<=f&&f<=h&&v[Math.min(d,Math.floor((f-s)/i))].push(o[e]);else if(i<0)for(e=0;e<u;++e)if(null!=(f=c[e])&&s<=f&&f<=h){const t=Math.floor((s-f)*i);v[Math.min(d,t+(y[t]<=f))].push(o[e])}}else for(e=0;e<u;++e)null!=(f=c[e])&&s<=f&&f<=h&&v[l(y,f,0,d)].push(o[e]);return v}return o.value=function(n){return arguments.length?(t="function"==typeof n?n:V(n),o):t},o.domain=function(t){return arguments.length?(n="function"==typeof t?t:V([t[0],t[1]]),o):n},o.thresholds=function(t){return arguments.length?(r="function"==typeof t?t:V(Array.isArray(t)?Q.call(t):t),o):r},o}function ft(t,n){let r;if(void 0===n)for(const n of t)null!=n&&(r<n||void 0===r&&n>=n)&&(r=n);else{let o=-1;for(let e of t)null!=(e=n(e,++o,t))&&(r<e||void 0===r&&e>=e)&&(r=e)}return r}function it(t,n){let r,o=-1,e=-1;if(void 0===n)for(const n of t)++e,null!=n&&(r<n||void 0===r&&n>=n)&&(r=n,o=e);else for(let f of t)null!=(f=n(f,++e,t))&&(r<f||void 0===r&&f>=f)&&(r=f,o=e);return o}function ut(t,n){let r;if(void 0===n)for(const n of t)null!=n&&(r>n||void 0===r&&n>=n)&&(r=n);else{let o=-1;for(let e of t)null!=(e=n(e,++o,t))&&(r>e||void 0===r&&e>=e)&&(r=e)}return r}function lt(t,n){let r,o=-1,e=-1;if(void 0===n)for(const n of t)++e,null!=n&&(r>n||void 0===r&&n>=n)&&(r=n,o=e);else for(let f of t)null!=(f=n(f,++e,t))&&(r>f||void 0===r&&f>=f)&&(r=f,o=e);return o}function ct(t,n,r=0,o=1/0,e){if(n=Math.floor(n),r=Math.floor(Math.max(0,r)),o=Math.floor(Math.min(t.length-1,o)),!(r<=n&&n<=o))return t;for(e=void 0===e?K:J(e);o>r;){if(o-r>600){const f=o-r+1,i=n-r+1,u=Math.log(f),l=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*l*(f-l)/f)*(i-f/2<0?-1:1);ct(t,n,Math.max(r,Math.floor(n-i*l/f+c)),Math.min(o,Math.floor(n+(f-i)*l/f+c)),e)}const f=t[n];let i=r,u=o;for(at(t,r,n),e(t[o],f)>0&&at(t,r,o);i<u;){for(at(t,i,u),++i,--u;e(t[i],f)<0;)++i;for(;e(t[u],f)>0;)--u}0===e(t[r],f)?at(t,r,u):(++u,at(t,u,o)),u<=n&&(r=u+1),n<=u&&(o=u-1)}return t}function at(t,n,r){const o=t[n];t[n]=t[r],t[r]=o}function st(t,n=r){let o,e=!1;if(1===n.length){let f;for(const i of t){const t=n(i);(e?r(t,f)>0:0===r(t,t))&&(o=i,f=t,e=!0)}}else for(const r of t)(e?n(r,o)>0:0===n(r,r))&&(o=r,e=!0);return o}function ht(t,n,r){if(t=Float64Array.from(function*(t,n){if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let r=-1;for(let o of t)null!=(o=n(o,++r,t))&&(o=+o)>=o&&(yield o)}}(t,r)),(o=t.length)&&!isNaN(n=+n)){if(n<=0||o<2)return ut(t);if(n>=1)return ft(t);var o,e=(o-1)*n,f=Math.floor(e),i=ft(ct(t,f).subarray(0,f+1));return i+(ut(t.subarray(f+1))-i)*(e-f)}}function yt(t,n,r=i){if((o=t.length)&&!isNaN(n=+n)){if(n<=0||o<2)return+r(t[0],0,t);if(n>=1)return+r(t[o-1],o-1,t);var o,e=(o-1)*n,f=Math.floor(e),u=+r(t[f],f,t);return u+(+r(t[f+1],f+1,t)-u)*(e-f)}}function dt(t,n,r=i){if(!isNaN(n=+n)){if(o=Float64Array.from(t,((n,o)=>i(r(t[o],o,t)))),n<=0)return lt(o);if(n>=1)return it(o);var o,e=Uint32Array.from(t,((t,n)=>n)),f=o.length-1,u=Math.floor(f*n);return ct(e,u,0,f,((t,n)=>K(o[t],o[n]))),(u=st(e.subarray(0,u+1),(t=>o[t])))>=0?u:-1}}function pt(t,n,r){const o=v(t),e=ht(t,.75)-ht(t,.25);return o&&e?Math.ceil((r-n)/(2*e*Math.pow(o,-1/3))):1}function mt(t,n,r){const o=v(t),e=E(t);return o&&e?Math.ceil((r-n)*Math.cbrt(o)/(3.49*e)):1}function Mt(t,n){let r=0,o=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(++r,o+=n);else{let e=-1;for(let f of t)null!=(f=n(f,++e,t))&&(f=+f)>=f&&(++r,o+=f)}if(r)return o/r}function vt(t,n){return ht(t,.5,n)}function wt(t,n){return dt(t,.5,n)}function gt(t){return Array.from(function*(t){for(const n of t)yield*n}(t))}function At(n,r){const o=new t;if(void 0===r)for(let t of n)null!=t&&t>=t&&o.set(t,(o.get(t)||0)+1);else{let t=-1;for(let e of n)null!=(e=r(e,++t,n))&&e>=e&&o.set(e,(o.get(e)||0)+1)}let e,f=0;for(const[t,n]of o)n>f&&(f=n,e=t);return e}function bt(t,n=xt){const r=[];let o,e=!1;for(const f of t)e&&r.push(n(o,f)),o=f,e=!0;return r}function xt(t,n){return[t,n]}function Nt(t,n,r){t=+t,n=+n,r=(e=arguments.length)<2?(n=t,t=0,1):e<3?1:+r;for(var o=-1,e=0|Math.max(0,Math.ceil((n-t)/r)),f=new Array(e);++o<e;)f[o]=t+o*r;return f}function Et(t,n=r){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");let o=Array.from(t);const e=new Float64Array(o.length);2!==n.length&&(o=o.map(n),n=r);const f=(t,r)=>n(o[t],o[r]);let i,u;return(t=Uint32Array.from(o,((t,n)=>n))).sort(n===r?(t,n)=>K(o[t],o[n]):J(f)),t.forEach(((t,n)=>{const r=f(t,void 0===i?t:i);r>=0?((void 0===i||r>0)&&(i=t,u=n),e[t]=u):e[t]=NaN})),e}function Tt(t,n=r){let o,e=!1;if(1===n.length){let f;for(const i of t){const t=n(i);(e?r(t,f)<0:0===r(t,t))&&(o=i,f=t,e=!0)}}else for(const r of t)(e?n(r,o)<0:0===n(r,r))&&(o=r,e=!0);return o}function Ft(t,n=r){if(1===n.length)return lt(t,n);let o,e=-1,f=-1;for(const r of t)++f,(e<0?0===n(r,r):n(r,o)<0)&&(o=r,e=f);return e}function St(t,n=r){if(1===n.length)return it(t,n);let o,e=-1,f=-1;for(const r of t)++f,(e<0?0===n(r,r):n(r,o)>0)&&(o=r,e=f);return e}function _t(t,n){const r=Ft(t,n);return r<0?void 0:r}var Rt=qt(Math.random);function qt(t){return function(n,r=0,o=n.length){let e=o-(r=+r);for(;e;){const o=t()*e--|0,f=n[e+r];n[e+r]=n[o+r],n[o+r]=f}return n}}function jt(t,n){let r=0;if(void 0===n)for(let n of t)(n=+n)&&(r+=n);else{let o=-1;for(let e of t)(e=+n(e,++o,t))&&(r+=e)}return r}function Ot(t){if(!(e=t.length))return[];for(var n=-1,r=ut(t,Ut),o=new Array(r);++n<r;)for(var e,f=-1,i=o[n]=new Array(e);++f<e;)i[f]=t[f][n];return o}function Ut(t){return t.length}function kt(){return Ot(arguments)}function It(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");let r=-1;for(const o of t)if(!n(o,++r,t))return!1;return!0}function Lt(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");let r=-1;for(const o of t)if(n(o,++r,t))return!0;return!1}function zt(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");const r=[];let o=-1;for(const e of t)n(e,++o,t)&&r.push(e);return r}function Bt(t,n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof n)throw new TypeError("mapper is not a function");return Array.from(t,((r,o)=>n(r,o,t)))}function Ct(t,n,r){if("function"!=typeof n)throw new TypeError("reducer is not a function");const o=t[Symbol.iterator]();let e,f,i=-1;if(arguments.length<3){if(({done:e,value:r}=o.next()),e)return;++i}for(;({done:e,value:f}=o.next()),!e;)r=n(r,f,++i,t);return r}function Dt(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()}function Gt(t,...r){t=new n(t);for(const n of r)for(const r of n)t.delete(r);return t}function Ht(t,r){const o=r[Symbol.iterator](),e=new n;for(const n of t){if(e.has(n))return!1;let t,r;for(;({value:t,done:r}=o.next())&&!r;){if(Object.is(n,t))return!1;e.add(t)}}return!0}function Jt(t,...r){t=new n(t),r=r.map(Kt);t:for(const n of t)for(const o of r)if(!o.has(n)){t.delete(n);continue t}return t}function Kt(t){return t instanceof n?t:new n(t)}function Pt(t,n){const r=t[Symbol.iterator](),o=new Set;for(const t of n){const n=Qt(t);if(o.has(n))continue;let e,f;for(;({value:e,done:f}=r.next());){if(f)return!1;const t=Qt(e);if(o.add(t),Object.is(n,t))break}}return!0}function Qt(t){return null!==t&&"object"==typeof t?t.valueOf():t}function Vt(t,n){return Pt(n,t)}function Wt(...t){const r=new n;for(const n of t)for(const t of n)r.add(t);return r}export{F as Adder,r as ascending,et as bin,l as bisect,a as bisectCenter,c as bisectLeft,l as bisectRight,e as bisector,s as blur,h as blur2,y as blurImage,v as count,b as cross,x as cumsum,o as descending,E as deviation,Gt as difference,Ht as disjoint,It as every,T as extent,_ as fcumsum,zt as filter,U as flatGroup,k as flatRollup,S as fsum,st as greatest,St as greatestIndex,q as group,P as groupSort,j as groups,et as histogram,z as index,B as indexes,Jt as intersection,Tt as least,Ft as leastIndex,Bt as map,ft as max,it as maxIndex,Mt as mean,vt as median,wt as medianIndex,gt as merge,ut as min,lt as minIndex,At as mode,rt as nice,bt as pairs,G as permute,ht as quantile,dt as quantileIndex,yt as quantileSorted,ct as quickselect,Nt as range,Et as rank,Ct as reduce,Dt as reverse,I as rollup,L as rollups,_t as scan,Rt as shuffle,qt as shuffler,Lt as some,H as sort,Vt as subset,jt as sum,Pt as superset,pt as thresholdFreedmanDiaconis,mt as thresholdScott,ot as thresholdSturges,tt as tickIncrement,nt as tickStep,$ as ticks,Ot as transpose,Wt as union,N as variance,kt as zip};export default null;
_npm/[email protected]/d44feff9.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ function t(t){return t}var n=1,r=2,e=3,i=4,a=1e-6;function o(t){return"translate("+t+",0)"}function u(t){return"translate(0,"+t+")"}function c(t){return n=>+t(n)}function l(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),r=>+t(r)+n}function s(){return!this.__axis}function f(f,d){var m=[],h=null,g=null,p=6,k=6,x=3,y="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,A=f===n||f===i?-1:1,M=f===i||f===r?"x":"y",v=f===n||f===e?o:u;function w(o){var u=null==h?d.ticks?d.ticks.apply(d,m):d.domain():h,w=null==g?d.tickFormat?d.tickFormat.apply(d,m):t:g,_=Math.max(p,0)+x,F=d.range(),V=+F[0]+y,z=+F[F.length-1]+y,H=(d.bandwidth?l:c)(d.copy(),y),b=o.selection?o.selection():o,C=b.selectAll(".domain").data([null]),S=b.selectAll(".tick").data(u,d).order(),P=S.exit(),I=S.enter().append("g").attr("class","tick"),N=S.select("line"),O=S.select("text");C=C.merge(C.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(I),N=N.merge(I.append("line").attr("stroke","currentColor").attr(M+"2",A*p)),O=O.merge(I.append("text").attr("fill","currentColor").attr(M,A*_).attr("dy",f===n?"0em":f===e?"0.71em":"0.32em")),o!==b&&(C=C.transition(o),S=S.transition(o),N=N.transition(o),O=O.transition(o),P=P.transition(o).attr("opacity",a).attr("transform",(function(t){return isFinite(t=H(t))?v(t+y):this.getAttribute("transform")})),I.attr("opacity",a).attr("transform",(function(t){var n=this.parentNode.__axis;return v((n&&isFinite(n=n(t))?n:H(t))+y)}))),P.remove(),C.attr("d",f===i||f===r?k?"M"+A*k+","+V+"H"+y+"V"+z+"H"+A*k:"M"+y+","+V+"V"+z:k?"M"+V+","+A*k+"V"+y+"H"+z+"V"+A*k:"M"+V+","+y+"H"+z),S.attr("opacity",1).attr("transform",(function(t){return v(H(t)+y)})),N.attr(M+"2",A*p),O.attr(M,A*_).text(w),b.filter(s).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",f===r?"start":f===i?"end":"middle"),b.each((function(){this.__axis=H}))}return w.scale=function(t){return arguments.length?(d=t,w):d},w.ticks=function(){return m=Array.from(arguments),w},w.tickArguments=function(t){return arguments.length?(m=null==t?[]:Array.from(t),w):m.slice()},w.tickValues=function(t){return arguments.length?(h=null==t?null:Array.from(t),w):h&&h.slice()},w.tickFormat=function(t){return arguments.length?(g=t,w):g},w.tickSize=function(t){return arguments.length?(p=k=+t,w):p},w.tickSizeInner=function(t){return arguments.length?(p=+t,w):p},w.tickSizeOuter=function(t){return arguments.length?(k=+t,w):k},w.tickPadding=function(t){return arguments.length?(x=+t,w):x},w.offset=function(t){return arguments.length?(y=+t,w):y},w}function d(t){return f(n,t)}function m(t){return f(r,t)}function h(t){return f(e,t)}function g(t){return f(i,t)}export{h as axisBottom,g as axisLeft,m as axisRight,d as axisTop};export default null;
_npm/[email protected]/5830b12a.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import{dispatch as t}from"../[email protected]/b5f7cdc6.js";import{dragDisable as e,dragEnable as n}from"../[email protected]/b22c5864.js";import{interpolate as r}from"../[email protected]/034b7bcb.js";import{select as s,pointer as i}from"../[email protected]/5dcd62f4.js";import{interrupt as u}from"../[email protected]/8debb4ba.js";var o=t=>()=>t;function a(t,{sourceEvent:e,target:n,selection:r,mode:s,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:s,enumerable:!0,configurable:!0},_:{value:i}})}function l(t){t.preventDefault(),t.stopImmediatePropagation()}var c={name:"drag"},h={name:"space"},f={name:"handle"},p={name:"center"};const{abs:m,max:d,min:v}=Math;function y(t){return[+t[0],+t[1]]}function b(t){return[y(t[0]),y(t[1])]}var w={name:"x",handles:["w","e"].map(K),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},g={name:"y",handles:["n","s"].map(K),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},_={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(K),input:function(t){return null==t?null:b(t)},output:function(t){return t}},x={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},k={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},z={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},A={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},E={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function K(t){return{type:t}}function P(t){return!t.ctrlKey&&!t.button}function T(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function V(){return navigator.maxTouchPoints||"ontouchstart"in this}function B(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function C(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function I(){return j(w)}function M(){return j(g)}function S(){return j(_)}function j(y){var _,C=T,I=P,M=V,S=!0,j=t("start","brush","end"),D=6;function G(t){var e=t.property("__brush",L).selectAll(".overlay").data([K("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",x.overlay).merge(e).each((function(){var t=B(this).extent;s(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),t.selectAll(".selection").data([K("selection")]).enter().append("rect").attr("class","selection").attr("cursor",x.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var n=t.selectAll(".handle").data(y.handles,(function(t){return t.type}));n.exit().remove(),n.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return x[t.type]})),t.each(N).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",F).filter(M).on("touchstart.brush",F).on("touchmove.brush",H).on("touchend.brush touchcancel.brush",J).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function N(){var t=s(this),e=B(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-D/2:e[0][0]-D/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-D/2:e[0][1]-D/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+D:D})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+D:D}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function O(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new q(t,e,n):r}function q(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function F(t){if((!_||t.touches)&&I.apply(this,arguments)){var r,o,a,b,K,P,T,V,C,M,j,D=this,G=t.target.__data__.type,q="selection"===(S&&t.metaKey?G="overlay":G)?c:S&&t.altKey?p:f,F=y===g?null:A[G],H=y===w?null:E[G],J=B(D),L=J.extent,Q=J.selection,R=L[0][0],U=L[0][1],W=L[1][0],X=L[1][1],Y=0,Z=0,$=F&&H&&S&&t.shiftKey,tt=Array.from(t.touches||[t],(t=>{const e=t.identifier;return(t=i(t,D)).point0=t.slice(),t.identifier=e,t}));u(D);var et=O(D,arguments,!0).beforestart();if("overlay"===G){Q&&(C=!0);const e=[tt[0],tt[1]||tt[0]];J.selection=Q=[[r=y===g?R:v(e[0][0],e[1][0]),a=y===w?U:v(e[0][1],e[1][1])],[K=y===g?W:d(e[0][0],e[1][0]),T=y===w?X:d(e[0][1],e[1][1])]],tt.length>1&&ut(t)}else r=Q[0][0],a=Q[0][1],K=Q[1][0],T=Q[1][1];o=r,b=a,P=K,V=T;var nt=s(D).attr("pointer-events","none"),rt=nt.selectAll(".overlay").attr("cursor",x[G]);if(t.touches)et.moved=it,et.ended=ot;else{var st=s(t.view).on("mousemove.brush",it,!0).on("mouseup.brush",ot,!0);S&&st.on("keydown.brush",(function(t){switch(t.keyCode){case 16:$=F&&H;break;case 18:q===f&&(F&&(K=P-Y*F,r=o+Y*F),H&&(T=V-Z*H,a=b+Z*H),q=p,ut(t));break;case 32:q!==f&&q!==p||(F<0?K=P-Y:F>0&&(r=o-Y),H<0?T=V-Z:H>0&&(a=b-Z),q=h,rt.attr("cursor",x.selection),ut(t));break;default:return}l(t)}),!0).on("keyup.brush",(function(t){switch(t.keyCode){case 16:$&&(M=j=$=!1,ut(t));break;case 18:q===p&&(F<0?K=P:F>0&&(r=o),H<0?T=V:H>0&&(a=b),q=f,ut(t));break;case 32:q===h&&(t.altKey?(F&&(K=P-Y*F,r=o+Y*F),H&&(T=V-Z*H,a=b+Z*H),q=p):(F<0?K=P:F>0&&(r=o),H<0?T=V:H>0&&(a=b),q=f),rt.attr("cursor",x[G]),ut(t));break;default:return}l(t)}),!0),e(t.view)}N.call(D),et.start(t,q.name)}function it(t){for(const e of t.changedTouches||[t])for(const t of tt)t.identifier===e.identifier&&(t.cur=i(e,D));if($&&!M&&!j&&1===tt.length){const t=tt[0];m(t.cur[0]-t[0])>m(t.cur[1]-t[1])?j=!0:M=!0}for(const t of tt)t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1]);C=!0,l(t),ut(t)}function ut(t){const e=tt[0],n=e.point0;var s;switch(Y=e[0]-n[0],Z=e[1]-n[1],q){case h:case c:F&&(Y=d(R-r,v(W-K,Y)),o=r+Y,P=K+Y),H&&(Z=d(U-a,v(X-T,Z)),b=a+Z,V=T+Z);break;case f:tt[1]?(F&&(o=d(R,v(W,tt[0][0])),P=d(R,v(W,tt[1][0])),F=1),H&&(b=d(U,v(X,tt[0][1])),V=d(U,v(X,tt[1][1])),H=1)):(F<0?(Y=d(R-r,v(W-r,Y)),o=r+Y,P=K):F>0&&(Y=d(R-K,v(W-K,Y)),o=r,P=K+Y),H<0?(Z=d(U-a,v(X-a,Z)),b=a+Z,V=T):H>0&&(Z=d(U-T,v(X-T,Z)),b=a,V=T+Z));break;case p:F&&(o=d(R,v(W,r-Y*F)),P=d(R,v(W,K+Y*F))),H&&(b=d(U,v(X,a-Z*H)),V=d(U,v(X,T+Z*H)))}P<o&&(F*=-1,s=r,r=K,K=s,s=o,o=P,P=s,G in k&&rt.attr("cursor",x[G=k[G]])),V<b&&(H*=-1,s=a,a=T,T=s,s=b,b=V,V=s,G in z&&rt.attr("cursor",x[G=z[G]])),J.selection&&(Q=J.selection),M&&(o=Q[0][0],P=Q[1][0]),j&&(b=Q[0][1],V=Q[1][1]),Q[0][0]===o&&Q[0][1]===b&&Q[1][0]===P&&Q[1][1]===V||(J.selection=[[o,b],[P,V]],N.call(D),et.brush(t,q.name))}function ot(t){if(function(t){t.stopImmediatePropagation()}(t),t.touches){if(t.touches.length)return;_&&clearTimeout(_),_=setTimeout((function(){_=null}),500)}else n(t.view,C),st.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);nt.attr("pointer-events","all"),rt.attr("cursor",x.overlay),J.selection&&(Q=J.selection),function(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}(Q)&&(J.selection=null,N.call(D)),et.end(t,q.name)}}function H(t){O(this,arguments).moved(t)}function J(t){O(this,arguments).ended(t)}function L(){var t=this.__brush||{selection:null};return t.extent=b(C.apply(this,arguments)),t.dim=y,t}return G.move=function(t,e,n){t.tween?t.on("start.brush",(function(t){O(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){O(this,arguments).end(t)})).tween("brush",(function(){var t=this,n=t.__brush,s=O(t,arguments),i=n.selection,u=y.input("function"==typeof e?e.apply(this,arguments):e,n.extent),o=r(i,u);function a(e){n.selection=1===e&&null===u?null:o(e),N.call(t),s.brush()}return null!==i&&null!==u?a:a(1)})):t.each((function(){var t=this,r=arguments,s=t.__brush,i=y.input("function"==typeof e?e.apply(t,r):e,s.extent),o=O(t,r).beforestart();u(t),s.selection=null===i?null:i,N.call(t),o.start(n).brush(n).end(n)}))},G.clear=function(t,e){G.move(t,null,e)},q.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0==--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(t,e,n){var r=s(this.that).datum();j.call(t,this.that,new a(t,{sourceEvent:e,target:G,selection:y.output(this.state.selection),mode:n,dispatch:j}),r)}},G.extent=function(t){return arguments.length?(C="function"==typeof t?t:o(b(t)),G):C},G.filter=function(t){return arguments.length?(I="function"==typeof t?t:o(!!t),G):I},G.touchable=function(t){return arguments.length?(M="function"==typeof t?t:o(!!t),G):M},G.handleSize=function(t){return arguments.length?(D=+t,G):D},G.keyModifiers=function(t){return arguments.length?(S=!!t,G):S},G.on=function(){var t=j.on.apply(j,arguments);return t===j?G:t},G}export{S as brush,C as brushSelection,I as brushX,M as brushY};export default null;
_npm/[email protected]/84d7b8e9.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import{path as n}from"../[email protected]/4bb53638.js";var t=Math.abs,e=Math.cos,r=Math.sin,u=Math.PI,l=u/2,o=2*u,a=Math.max,i=1e-12;function c(n,t){return Array.from({length:t-n},((t,e)=>n+e))}function f(){return p(!1,!1)}function s(){return p(!1,!0)}function g(){return p(!0,!1)}function p(n,t){var e=0,r=null,u=null,l=null;function i(i){var f,s=i.length,g=new Array(s),p=c(0,s),h=new Array(s*s),d=new Array(s),v=0;i=Float64Array.from({length:s*s},t?(n,t)=>i[t%s][t/s|0]:(n,t)=>i[t/s|0][t%s]);for(let t=0;t<s;++t){let e=0;for(let r=0;r<s;++r)e+=i[t*s+r]+n*i[r*s+t];v+=g[t]=e}f=(v=a(0,o-e*s)/v)?e:o/s;{let t=0;r&&p.sort(((n,t)=>r(g[n],g[t])));for(const e of p){const r=t;if(n){const n=c(1+~s,s).filter((n=>n<0?i[~n*s+e]:i[e*s+n]));u&&n.sort(((n,t)=>u(n<0?-i[~n*s+e]:i[e*s+n],t<0?-i[~t*s+e]:i[e*s+t])));for(const r of n)if(r<0){(h[~r*s+e]||(h[~r*s+e]={source:null,target:null})).target={index:e,startAngle:t,endAngle:t+=i[~r*s+e]*v,value:i[~r*s+e]}}else{(h[e*s+r]||(h[e*s+r]={source:null,target:null})).source={index:e,startAngle:t,endAngle:t+=i[e*s+r]*v,value:i[e*s+r]}}d[e]={index:e,startAngle:r,endAngle:t,value:g[e]}}else{const n=c(0,s).filter((n=>i[e*s+n]||i[n*s+e]));u&&n.sort(((n,t)=>u(i[e*s+n],i[e*s+t])));for(const r of n){let n;if(e<r?(n=h[e*s+r]||(h[e*s+r]={source:null,target:null}),n.source={index:e,startAngle:t,endAngle:t+=i[e*s+r]*v,value:i[e*s+r]}):(n=h[r*s+e]||(h[r*s+e]={source:null,target:null}),n.target={index:e,startAngle:t,endAngle:t+=i[e*s+r]*v,value:i[e*s+r]},e===r&&(n.source=n.target)),n.source&&n.target&&n.source.value<n.target.value){const t=n.source;n.source=n.target,n.target=t}}d[e]={index:e,startAngle:r,endAngle:t,value:g[e]}}t+=f}}return(h=Object.values(h)).groups=d,l?h.sort(l):h}return i.padAngle=function(n){return arguments.length?(e=a(0,n),i):e},i.sortGroups=function(n){return arguments.length?(r=n,i):r},i.sortSubgroups=function(n){return arguments.length?(u=n,i):u},i.sortChords=function(n){return arguments.length?(null==n?l=null:(t=n,l=function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)})._=n,i):l&&l._;var t},i}var h=Array.prototype.slice;function d(n){return function(){return n}}function v(n){return n.source}function y(n){return n.target}function A(n){return n.radius}function x(n){return n.startAngle}function m(n){return n.endAngle}function T(){return 0}function b(){return 10}function M(u){var o=v,a=y,c=A,f=A,s=x,g=m,p=T,b=null;function M(){var d,v=o.apply(this,arguments),y=a.apply(this,arguments),A=p.apply(this,arguments)/2,x=h.call(arguments),m=+c.apply(this,(x[0]=v,x)),T=s.apply(this,x)-l,M=g.apply(this,x)-l,C=+f.apply(this,(x[0]=y,x)),q=s.apply(this,x)-l,w=g.apply(this,x)-l;if(b||(b=d=n()),A>i&&(t(M-T)>2*A+i?M>T?(T+=A,M-=A):(T-=A,M+=A):T=M=(T+M)/2,t(w-q)>2*A+i?w>q?(q+=A,w-=A):(q-=A,w+=A):q=w=(q+w)/2),b.moveTo(m*e(T),m*r(T)),b.arc(0,0,m,T,M),T!==q||M!==w)if(u){var R=C-+u.apply(this,arguments),P=(q+w)/2;b.quadraticCurveTo(0,0,R*e(q),R*r(q)),b.lineTo(C*e(P),C*r(P)),b.lineTo(R*e(w),R*r(w))}else b.quadraticCurveTo(0,0,C*e(q),C*r(q)),b.arc(0,0,C,q,w);if(b.quadraticCurveTo(0,0,m*e(T),m*r(T)),b.closePath(),d)return b=null,d+""||null}return u&&(M.headRadius=function(n){return arguments.length?(u="function"==typeof n?n:d(+n),M):u}),M.radius=function(n){return arguments.length?(c=f="function"==typeof n?n:d(+n),M):c},M.sourceRadius=function(n){return arguments.length?(c="function"==typeof n?n:d(+n),M):c},M.targetRadius=function(n){return arguments.length?(f="function"==typeof n?n:d(+n),M):f},M.startAngle=function(n){return arguments.length?(s="function"==typeof n?n:d(+n),M):s},M.endAngle=function(n){return arguments.length?(g="function"==typeof n?n:d(+n),M):g},M.padAngle=function(n){return arguments.length?(p="function"==typeof n?n:d(+n),M):p},M.source=function(n){return arguments.length?(o=n,M):o},M.target=function(n){return arguments.length?(a=n,M):a},M.context=function(n){return arguments.length?(b=null==n?null:n,M):b},M}function C(){return M()}function q(){return M(b)}export{f as chord,g as chordDirected,s as chordTranspose,C as ribbon,q as ribbonArrow};export default null;
_npm/[email protected]/2c0cdfa2.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ function t(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function e(t,e){var i=Object.create(t.prototype);for(var n in e)i[n]=e[n];return i}function i(){}var n=.7,r=1/n,a="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",h="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",o=/^#([0-9a-f]{3,8})$/,l=new RegExp(`^rgb\\(${a},${a},${a}\\)$`),u=new RegExp(`^rgb\\(${h},${h},${h}\\)$`),c=new RegExp(`^rgba\\(${a},${a},${a},${s}\\)$`),g=new RegExp(`^rgba\\(${h},${h},${h},${s}\\)$`),p=new RegExp(`^hsl\\(${s},${h},${h}\\)$`),b=new RegExp(`^hsla\\(${s},${h},${h},${s}\\)$`),d={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function f(){return this.rgb().formatHex()}function w(){return this.rgb().formatRgb()}function y(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=o.exec(t))?(i=e[1].length,e=parseInt(e[1],16),6===i?m(e):3===i?new M(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?$(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?$(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=l.exec(t))?new M(e[1],e[2],e[3],1):(e=u.exec(t))?new M(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=c.exec(t))?$(e[1],e[2],e[3],e[4]):(e=g.exec(t))?$(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=p.exec(t))?E(e[1],e[2]/100,e[3]/100,1):(e=b.exec(t))?E(e[1],e[2]/100,e[3]/100,e[4]):d.hasOwnProperty(t)?m(d[t]):"transparent"===t?new M(NaN,NaN,NaN,0):null}function m(t){return new M(t>>16&255,t>>8&255,255&t,1)}function $(t,e,i,n){return n<=0&&(t=e=i=NaN),new M(t,e,i,n)}function N(t){return t instanceof i||(t=y(t)),t?new M((t=t.rgb()).r,t.g,t.b,t.opacity):new M}function k(t,e,i,n){return 1===arguments.length?N(t):new M(t,e,i,null==n?1:n)}function M(t,e,i,n){this.r=+t,this.g=+e,this.b=+i,this.opacity=+n}function v(){return`#${R(this.r)}${R(this.g)}${R(this.b)}`}function x(){const t=q(this.opacity);return`${1===t?"rgb(":"rgba("}${H(this.r)}, ${H(this.g)}, ${H(this.b)}${1===t?")":`, ${t})`}`}function q(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function H(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function R(t){return((t=H(t))<16?"0":"")+t.toString(16)}function E(t,e,i,n){return n<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new O(t,e,i,n)}function j(t){if(t instanceof O)return new O(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=y(t)),!t)return new O;if(t instanceof O)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),s=Math.max(e,n,r),h=NaN,o=s-a,l=(s+a)/2;return o?(h=e===s?(n-r)/o+6*(n<r):n===s?(r-e)/o+2:(e-n)/o+4,o/=l<.5?s+a:2-s-a,h*=60):o=l>0&&l<1?0:h,new O(h,o,l,t.opacity)}function I(t,e,i,n){return 1===arguments.length?j(t):new O(t,e,i,null==n?1:n)}function O(t,e,i,n){this.h=+t,this.s=+e,this.l=+i,this.opacity=+n}function P(t){return(t=(t||0)%360)<0?t+360:t}function S(t){return Math.max(0,Math.min(1,t||0))}function z(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}t(i,y,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:f,formatHex:f,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return j(this).formatHsl()},formatRgb:w,toString:w}),t(M,k,e(i,{brighter(t){return t=null==t?r:Math.pow(r,t),new M(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?n:Math.pow(n,t),new M(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new M(H(this.r),H(this.g),H(this.b),q(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:v,formatHex:v,formatHex8:function(){return`#${R(this.r)}${R(this.g)}${R(this.b)}${R(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:x,toString:x})),t(O,I,e(i,{brighter(t){return t=null==t?r:Math.pow(r,t),new O(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?n:Math.pow(n,t),new O(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,n=i+(i<.5?i:1-i)*e,r=2*i-n;return new M(z(t>=240?t-240:t+120,r,n),z(t,r,n),z(t<120?t+240:t-120,r,n),this.opacity)},clamp(){return new O(P(this.h),S(this.s),S(this.l),q(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=q(this.opacity);return`${1===t?"hsl(":"hsla("}${P(this.h)}, ${100*S(this.s)}%, ${100*S(this.l)}%${1===t?")":`, ${t})`}`}}));const C=Math.PI/180,L=180/Math.PI,A=.96422,B=1,D=.82521,F=4/29,G=6/29,J=3*G*G,K=G*G*G;function Q(t){if(t instanceof V)return new V(t.l,t.a,t.b,t.opacity);if(t instanceof it)return nt(t);t instanceof M||(t=N(t));var e,i,n=Z(t.r),r=Z(t.g),a=Z(t.b),s=W((.2225045*n+.7168786*r+.0606169*a)/B);return n===r&&r===a?e=i=s:(e=W((.4360747*n+.3850649*r+.1430804*a)/A),i=W((.0139322*n+.0971045*r+.7141733*a)/D)),new V(116*s-16,500*(e-s),200*(s-i),t.opacity)}function T(t,e){return new V(t,0,0,null==e?1:e)}function U(t,e,i,n){return 1===arguments.length?Q(t):new V(t,e,i,null==n?1:n)}function V(t,e,i,n){this.l=+t,this.a=+e,this.b=+i,this.opacity=+n}function W(t){return t>K?Math.pow(t,1/3):t/J+F}function X(t){return t>G?t*t*t:J*(t-F)}function Y(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Z(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function _(t){if(t instanceof it)return new it(t.h,t.c,t.l,t.opacity);if(t instanceof V||(t=Q(t)),0===t.a&&0===t.b)return new it(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*L;return new it(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function tt(t,e,i,n){return 1===arguments.length?_(t):new it(i,e,t,null==n?1:n)}function et(t,e,i,n){return 1===arguments.length?_(t):new it(t,e,i,null==n?1:n)}function it(t,e,i,n){this.h=+t,this.c=+e,this.l=+i,this.opacity=+n}function nt(t){if(isNaN(t.h))return new V(t.l,0,0,t.opacity);var e=t.h*C;return new V(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t(V,U,e(i,{brighter(t){return new V(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new V(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,i=isNaN(this.b)?t:t-this.b/200;return new M(Y(3.1338561*(e=A*X(e))-1.6168667*(t=B*X(t))-.4906146*(i=D*X(i))),Y(-.9787684*e+1.9161415*t+.033454*i),Y(.0719453*e-.2289914*t+1.4052427*i),this.opacity)}})),t(it,et,e(i,{brighter(t){return new it(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new it(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return nt(this).rgb()}}));var rt=-.14861,at=1.78277,st=-.29227,ht=-.90649,ot=1.97294,lt=ot*ht,ut=ot*at,ct=at*st-ht*rt;function gt(t,e,i,n){return 1===arguments.length?function(t){if(t instanceof pt)return new pt(t.h,t.s,t.l,t.opacity);t instanceof M||(t=N(t));var e=t.r/255,i=t.g/255,n=t.b/255,r=(ct*n+lt*e-ut*i)/(ct+lt-ut),a=n-r,s=(ot*(i-r)-st*a)/ht,h=Math.sqrt(s*s+a*a)/(ot*r*(1-r)),o=h?Math.atan2(s,a)*L-120:NaN;return new pt(o<0?o+360:o,h,r,t.opacity)}(t):new pt(t,e,i,null==n?1:n)}function pt(t,e,i,n){this.h=+t,this.s=+e,this.l=+i,this.opacity=+n}t(pt,gt,e(i,{brighter(t){return t=null==t?r:Math.pow(r,t),new pt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?n:Math.pow(n,t),new pt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*C,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),r=Math.sin(t);return new M(255*(e+i*(rt*n+at*r)),255*(e+i*(st*n+ht*r)),255*(e+i*(ot*n)),this.opacity)}}));export{y as color,gt as cubehelix,T as gray,et as hcl,I as hsl,U as lab,tt as lch,k as rgb};export default null;
_npm/[email protected]/626bedc4.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import{thresholdSturges as r,extent as n,ticks as t,nice as o,blur2 as e,max as i}from"../[email protected]/e95f898e.js";var u=Array.prototype.slice;function a(r,n){return r-n}var f=r=>()=>r;function c(r,n){for(var t,o=-1,e=n.length;++o<e;)if(t=h(r,n[o]))return t;return 0}function h(r,n){for(var t=n[0],o=n[1],e=-1,i=0,u=r.length,a=u-1;i<u;a=i++){var f=r[i],c=f[0],h=f[1],l=r[a],d=l[0],g=l[1];if(s(f,l,n))return 0;h>o!=g>o&&t<(d-c)*(o-h)/(g-h)+c&&(e=-e)}return e}function s(r,n,t){var o,e,i,u;return function(r,n,t){return(n[0]-r[0])*(t[1]-r[1])==(t[0]-r[0])*(n[1]-r[1])}(r,n,t)&&(e=r[o=+(r[0]===n[0])],i=t[o],u=n[o],e<=i&&i<=u||u<=i&&i<=e)}function l(){}var d=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function g(){var e=1,i=1,h=r,s=A;function g(r){var e=h(r);if(Array.isArray(e))e=e.slice().sort(a);else{const i=n(r,v);for(e=t(...o(i[0],i[1],e),e);e[e.length-1]>=i[1];)e.pop();for(;e[1]<i[0];)e.shift()}return e.map((n=>E(r,n)))}function E(r,n){const t=null==n?NaN:+n;if(isNaN(t))throw new Error(`invalid value: ${n}`);var o=[],u=[];return function(r,n,t){var o,u,a,f,c,h,s=new Array,l=new Array;o=u=-1,f=p(r[0],n),d[f<<1].forEach(g);for(;++o<e-1;)a=f,f=p(r[o+1],n),d[a|f<<1].forEach(g);d[f<<0].forEach(g);for(;++u<i-1;){for(o=-1,f=p(r[u*e+e],n),c=p(r[u*e],n),d[f<<1|c<<2].forEach(g);++o<e-1;)a=f,f=p(r[u*e+e+o+1],n),h=c,c=p(r[u*e+o+1],n),d[a|f<<1|c<<2|h<<3].forEach(g);d[f|c<<3].forEach(g)}o=-1,c=r[u*e]>=n,d[c<<2].forEach(g);for(;++o<e-1;)h=c,c=p(r[u*e+o+1],n),d[c<<2|h<<3].forEach(g);function g(r){var n,e,i=[r[0][0]+o,r[0][1]+u],a=[r[1][0]+o,r[1][1]+u],f=M(i),c=M(a);(n=l[f])?(e=s[c])?(delete l[n.end],delete s[e.start],n===e?(n.ring.push(a),t(n.ring)):s[n.start]=l[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete l[n.end],n.ring.push(a),l[n.end=c]=n):(n=s[c])?(e=l[f])?(delete s[n.start],delete l[e.end],n===e?(n.ring.push(a),t(n.ring)):s[e.start]=l[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete s[n.start],n.ring.unshift(i),s[n.start=f]=n):s[f]=l[c]={start:f,end:c,ring:[i,a]}}d[c<<3].forEach(g)}(r,t,(function(n){s(n,r,t),function(r){for(var n=0,t=r.length,o=r[t-1][1]*r[0][0]-r[t-1][0]*r[0][1];++n<t;)o+=r[n-1][1]*r[n][0]-r[n-1][0]*r[n][1];return o}(n)>0?o.push([n]):u.push(n)})),u.forEach((function(r){for(var n,t=0,e=o.length;t<e;++t)if(-1!==c((n=o[t])[0],r))return void n.push(r)})),{type:"MultiPolygon",value:n,coordinates:o}}function M(r){return 2*r[0]+r[1]*(e+1)*4}function A(r,n,t){r.forEach((function(r){var o=r[0],u=r[1],a=0|o,f=0|u,c=y(n[f*e+a]);o>0&&o<e&&a===o&&(r[0]=w(o,y(n[f*e+a-1]),c,t)),u>0&&u<i&&f===u&&(r[1]=w(u,y(n[(f-1)*e+a]),c,t))}))}return g.contour=E,g.size=function(r){if(!arguments.length)return[e,i];var n=Math.floor(r[0]),t=Math.floor(r[1]);if(!(n>=0&&t>=0))throw new Error("invalid size");return e=n,i=t,g},g.thresholds=function(r){return arguments.length?(h="function"==typeof r?r:Array.isArray(r)?f(u.call(r)):f(r),g):h},g.smooth=function(r){return arguments.length?(s=r?A:l,g):s===A},g}function v(r){return isFinite(r)?r:NaN}function p(r,n){return null!=r&&+r>=n}function y(r){return null==r||isNaN(r=+r)?-1/0:r}function w(r,n,t,o){const e=o-n,i=t-n,u=isFinite(e)||isFinite(i)?e/i:Math.sign(e)/Math.sign(i);return isNaN(u)?r:r+u-.5}function E(r){return r[0]}function M(r){return r[1]}function A(){return 1}function N(){var r=E,n=M,o=A,a=960,c=500,h=20,s=2,l=3*h,d=a+2*l>>s,v=c+2*l>>s,p=f(20);function y(t){var i=new Float32Array(d*v),u=Math.pow(2,-s),a=-1;for(const e of t){var f=(r(e,++a,t)+l)*u,c=(n(e,a,t)+l)*u,g=+o(e,a,t);if(g&&f>=0&&f<d&&c>=0&&c<v){var p=Math.floor(f),y=Math.floor(c),w=f-p-.5,E=c-y-.5;i[p+y*d]+=(1-w)*(1-E)*g,i[p+1+y*d]+=w*(1-E)*g,i[p+1+(y+1)*d]+=w*E*g,i[p+(y+1)*d]+=(1-w)*E*g}}return e({data:i,width:d,height:v},h*u),i}function w(r){var n=y(r),o=p(n),e=Math.pow(2,2*s);return Array.isArray(o)||(o=t(Number.MIN_VALUE,i(n)/e,o)),g().size([d,v]).thresholds(o.map((r=>r*e)))(n).map(((r,n)=>(r.value=+o[n],N(r))))}function N(r){return r.coordinates.forEach(m),r}function m(r){r.forEach(z)}function z(r){r.forEach(b)}function b(r){r[0]=r[0]*Math.pow(2,s)-l,r[1]=r[1]*Math.pow(2,s)-l}function x(){return d=a+2*(l=3*h)>>s,v=c+2*l>>s,w}return w.contours=function(r){var n=y(r),t=g().size([d,v]),o=Math.pow(2,2*s),e=r=>{r=+r;var e=N(t.contour(n,r*o));return e.value=r,e};return Object.defineProperty(e,"max",{get:()=>i(n)/o}),e},w.x=function(n){return arguments.length?(r="function"==typeof n?n:f(+n),w):r},w.y=function(r){return arguments.length?(n="function"==typeof r?r:f(+r),w):n},w.weight=function(r){return arguments.length?(o="function"==typeof r?r:f(+r),w):o},w.size=function(r){if(!arguments.length)return[a,c];var n=+r[0],t=+r[1];if(!(n>=0&&t>=0))throw new Error("invalid size");return a=n,c=t,x()},w.cellSize=function(r){if(!arguments.length)return 1<<s;if(!((r=+r)>=1))throw new Error("invalid cell size");return s=Math.floor(Math.log(r)/Math.LN2),x()},w.thresholds=function(r){return arguments.length?(p="function"==typeof r?r:Array.isArray(r)?f(u.call(r)):f(r),w):p},w.bandwidth=function(r){if(!arguments.length)return Math.sqrt(h*(h+1));if(!((r=+r)>=0))throw new Error("invalid bandwidth");return h=(Math.sqrt(4*r*r+1)-1)/2,x()},w}export{N as contourDensity,g as contours};export default null;
_npm/[email protected]/00c41b5d.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import t from"../[email protected]/e67acb27.js";const e=1e-6;class i{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,e){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,e){this._+=`L${this._x1=+t},${this._y1=+e}`}arc(t,i,n){const s=(t=+t)+(n=+n),l=i=+i;if(n<0)throw new Error("negative radius");null===this._x1?this._+=`M${s},${l}`:(Math.abs(this._x1-s)>e||Math.abs(this._y1-l)>e)&&(this._+="L"+s+","+l),n&&(this._+=`A${n},${n},0,1,1,${t-n},${i}A${n},${n},0,1,1,${this._x1=s},${this._y1=l}`)}rect(t,e,i,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${+i}v${+n}h${-i}Z`}value(){return this._||null}}class n{constructor(){this._=[]}moveTo(t,e){this._.push([t,e])}closePath(){this._.push(this._[0].slice())}lineTo(t,e){this._.push([t,e])}value(){return this._.length?this._:null}}class s{constructor(t,[e,i,n,s]=[0,0,960,500]){if(!((n=+n)>=(e=+e)&&(s=+s)>=(i=+i)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=n,this.xmin=e,this.ymax=s,this.ymin=i,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:e,triangles:i},vectors:n}=this;let s,l;const h=this.circumcenters=this._circumcenters.subarray(0,i.length/3*2);for(let n,r,o=0,a=0,c=i.length;o<c;o+=3,a+=2){const c=2*i[o],u=2*i[o+1],g=2*i[o+2],d=t[c],f=t[c+1],m=t[u],_=t[u+1],x=t[g],y=t[g+1],p=m-d,v=_-f,w=x-d,T=y-f,$=2*(p*T-v*w);if(Math.abs($)<1e-9){if(void 0===s){s=l=0;for(const i of e)s+=t[2*i],l+=t[2*i+1];s/=e.length,l/=e.length}const i=1e9*Math.sign((s-d)*T-(l-f)*w);n=(d+x)/2-i*T,r=(f+y)/2+i*w}else{const t=1/$,e=p*p+v*v,i=w*w+T*T;n=d+(T*e-v*i)*t,r=f+(p*i-w*e)*t}h[a]=n,h[a+1]=r}let r,o,a,c=e[e.length-1],u=4*c,g=t[2*c],d=t[2*c+1];n.fill(0);for(let i=0;i<e.length;++i)c=e[i],r=u,o=g,a=d,u=4*c,g=t[2*c],d=t[2*c+1],n[r+2]=n[u]=a-d,n[r+3]=n[u+1]=g-o}render(t){const e=null==t?t=new i:void 0,{delaunay:{halfedges:n,inedges:s,hull:l},circumcenters:h,vectors:r}=this;if(l.length<=1)return null;for(let e=0,i=n.length;e<i;++e){const i=n[e];if(i<e)continue;const s=2*Math.floor(e/3),l=2*Math.floor(i/3),r=h[s],o=h[s+1],a=h[l],c=h[l+1];this._renderSegment(r,o,a,c,t)}let o,a=l[l.length-1];for(let e=0;e<l.length;++e){o=a,a=l[e];const i=2*Math.floor(s[a]/3),n=h[i],c=h[i+1],u=4*o,g=this._project(n,c,r[u+2],r[u+3]);g&&this._renderSegment(n,c,g[0],g[1],t)}return e&&e.value()}renderBounds(t){const e=null==t?t=new i:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),e&&e.value()}renderCell(t,e){const n=null==e?e=new i:void 0,s=this._clip(t);if(null===s||!s.length)return;e.moveTo(s[0],s[1]);let l=s.length;for(;s[0]===s[l-2]&&s[1]===s[l-1]&&l>1;)l-=2;for(let t=2;t<l;t+=2)s[t]===s[t-2]&&s[t+1]===s[t-1]||e.lineTo(s[t],s[t+1]);return e.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let e=0,i=t.length/2;e<i;++e){const t=this.cellPolygon(e);t&&(t.index=e,yield t)}}cellPolygon(t){const e=new n;return this.renderCell(t,e),e.value()}_renderSegment(t,e,i,n,s){let l;const h=this._regioncode(t,e),r=this._regioncode(i,n);0===h&&0===r?(s.moveTo(t,e),s.lineTo(i,n)):(l=this._clipSegment(t,e,i,n,h,r))&&(s.moveTo(l[0],l[1]),s.lineTo(l[2],l[3]))}contains(t,e,i){return(e=+e)==e&&(i=+i)==i&&this.delaunay._step(t,e,i)===t}*neighbors(t){const e=this._clip(t);if(e)for(const i of this.delaunay.neighbors(t)){const t=this._clip(i);if(t)t:for(let n=0,s=e.length;n<s;n+=2)for(let l=0,h=t.length;l<h;l+=2)if(e[n]===t[l]&&e[n+1]===t[l+1]&&e[(n+2)%s]===t[(l+h-2)%h]&&e[(n+3)%s]===t[(l+h-1)%h]){yield i;break t}}}_cell(t){const{circumcenters:e,delaunay:{inedges:i,halfedges:n,triangles:s}}=this,l=i[t];if(-1===l)return null;const h=[];let r=l;do{const i=Math.floor(r/3);if(h.push(e[2*i],e[2*i+1]),r=r%3==2?r-2:r+1,s[r]!==t)break;r=n[r]}while(r!==l&&-1!==r);return h}_clip(t){if(0===t&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const e=this._cell(t);if(null===e)return null;const{vectors:i}=this,n=4*t;return this._simplify(i[n]||i[n+1]?this._clipInfinite(t,e,i[n],i[n+1],i[n+2],i[n+3]):this._clipFinite(t,e))}_clipFinite(t,e){const i=e.length;let n,s,l,h,r=null,o=e[i-2],a=e[i-1],c=this._regioncode(o,a),u=0;for(let g=0;g<i;g+=2)if(n=o,s=a,o=e[g],a=e[g+1],l=c,c=this._regioncode(o,a),0===l&&0===c)h=u,u=0,r?r.push(o,a):r=[o,a];else{let e,i,g,d,f;if(0===l){if(null===(e=this._clipSegment(n,s,o,a,l,c)))continue;[i,g,d,f]=e}else{if(null===(e=this._clipSegment(o,a,n,s,c,l)))continue;[d,f,i,g]=e,h=u,u=this._edgecode(i,g),h&&u&&this._edge(t,h,u,r,r.length),r?r.push(i,g):r=[i,g]}h=u,u=this._edgecode(d,f),h&&u&&this._edge(t,h,u,r,r.length),r?r.push(d,f):r=[d,f]}if(r)h=u,u=this._edgecode(r[0],r[1]),h&&u&&this._edge(t,h,u,r,r.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return r}_clipSegment(t,e,i,n,s,l){const h=s<l;for(h&&([t,e,i,n,s,l]=[i,n,t,e,l,s]);;){if(0===s&&0===l)return h?[i,n,t,e]:[t,e,i,n];if(s&l)return null;let r,o,a=s||l;8&a?(r=t+(i-t)*(this.ymax-e)/(n-e),o=this.ymax):4&a?(r=t+(i-t)*(this.ymin-e)/(n-e),o=this.ymin):2&a?(o=e+(n-e)*(this.xmax-t)/(i-t),r=this.xmax):(o=e+(n-e)*(this.xmin-t)/(i-t),r=this.xmin),s?(t=r,e=o,s=this._regioncode(t,e)):(i=r,n=o,l=this._regioncode(i,n))}}_clipInfinite(t,e,i,n,s,l){let h,r=Array.from(e);if((h=this._project(r[0],r[1],i,n))&&r.unshift(h[0],h[1]),(h=this._project(r[r.length-2],r[r.length-1],s,l))&&r.push(h[0],h[1]),r=this._clipFinite(t,r))for(let e,i=0,n=r.length,s=this._edgecode(r[n-2],r[n-1]);i<n;i+=2)e=s,s=this._edgecode(r[i],r[i+1]),e&&s&&(i=this._edge(t,e,s,r,i),n=r.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(r=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return r}_edge(t,e,i,n,s){for(;e!==i;){let i,l;switch(e){case 5:e=4;continue;case 4:e=6,i=this.xmax,l=this.ymin;break;case 6:e=2;continue;case 2:e=10,i=this.xmax,l=this.ymax;break;case 10:e=8;continue;case 8:e=9,i=this.xmin,l=this.ymax;break;case 9:e=1;continue;case 1:e=5,i=this.xmin,l=this.ymin}n[s]===i&&n[s+1]===l||!this.contains(t,i,l)||(n.splice(s,0,i,l),s+=2)}return s}_project(t,e,i,n){let s,l,h,r=1/0;if(n<0){if(e<=this.ymin)return null;(s=(this.ymin-e)/n)<r&&(h=this.ymin,l=t+(r=s)*i)}else if(n>0){if(e>=this.ymax)return null;(s=(this.ymax-e)/n)<r&&(h=this.ymax,l=t+(r=s)*i)}if(i>0){if(t>=this.xmax)return null;(s=(this.xmax-t)/i)<r&&(l=this.xmax,h=e+(r=s)*n)}else if(i<0){if(t<=this.xmin)return null;(s=(this.xmin-t)/i)<r&&(l=this.xmin,h=e+(r=s)*n)}return[l,h]}_edgecode(t,e){return(t===this.xmin?1:t===this.xmax?2:0)|(e===this.ymin?4:e===this.ymax?8:0)}_regioncode(t,e){return(t<this.xmin?1:t>this.xmax?2:0)|(e<this.ymin?4:e>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let e=0;e<t.length;e+=2){const i=(e+2)%t.length,n=(e+4)%t.length;(t[e]===t[i]&&t[i]===t[n]||t[e+1]===t[i+1]&&t[i+1]===t[n+1])&&(t.splice(i,2),e-=2)}t.length||(t=null)}return t}}const l=2*Math.PI,h=Math.pow;function r(t){return t[0]}function o(t){return t[1]}function a(t,e,i){return[t+Math.sin(t+e)*i,e+Math.cos(t-e)*i]}class c{static from(t,e=r,i=o,n){return new c("length"in t?function(t,e,i,n){const s=t.length,l=new Float64Array(2*s);for(let h=0;h<s;++h){const s=t[h];l[2*h]=e.call(n,s,h,t),l[2*h+1]=i.call(n,s,h,t)}return l}(t,e,i,n):Float64Array.from(function*(t,e,i,n){let s=0;for(const l of t)yield e.call(n,l,s,t),yield i.call(n,l,s,t),++s}(t,e,i,n)))}constructor(e){this._delaunator=new t(e),this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const e=this._delaunator,i=this.points;if(e.hull&&e.hull.length>2&&function(t){const{triangles:e,coords:i}=t;for(let t=0;t<e.length;t+=3){const n=2*e[t],s=2*e[t+1],l=2*e[t+2];if((i[l]-i[n])*(i[s+1]-i[n+1])-(i[s]-i[n])*(i[l+1]-i[n+1])>1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:i.length/2},((t,e)=>e)).sort(((t,e)=>i[2*t]-i[2*e]||i[2*t+1]-i[2*e+1]));const e=this.collinear[0],n=this.collinear[this.collinear.length-1],s=[i[2*e],i[2*e+1],i[2*n],i[2*n+1]],l=1e-8*Math.hypot(s[3]-s[1],s[2]-s[0]);for(let t=0,e=i.length/2;t<e;++t){const e=a(i[2*t],i[2*t+1],l);i[2*t]=e[0],i[2*t+1]=e[1]}this._delaunator=new t(i)}else delete this.collinear;const n=this.halfedges=this._delaunator.halfedges,s=this.hull=this._delaunator.hull,l=this.triangles=this._delaunator.triangles,h=this.inedges.fill(-1),r=this._hullIndex.fill(-1);for(let t=0,e=n.length;t<e;++t){const e=l[t%3==2?t-2:t+1];-1!==n[t]&&-1!==h[e]||(h[e]=t)}for(let t=0,e=s.length;t<e;++t)r[s[t]]=t;s.length<=2&&s.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=s[0],h[s[0]]=1,2===s.length&&(h[s[1]]=0,this.triangles[1]=s[1],this.triangles[2]=s[1]))}voronoi(t){return new s(this,t)}*neighbors(t){const{inedges:e,hull:i,_hullIndex:n,halfedges:s,triangles:l,collinear:h}=this;if(h){const e=h.indexOf(t);return e>0&&(yield h[e-1]),void(e<h.length-1&&(yield h[e+1]))}const r=e[t];if(-1===r)return;let o=r,a=-1;do{if(yield a=l[o],o=o%3==2?o-2:o+1,l[o]!==t)return;if(o=s[o],-1===o){const e=i[(n[t]+1)%i.length];return void(e!==a&&(yield e))}}while(o!==r)}find(t,e,i=0){if((t=+t)!=t||(e=+e)!=e)return-1;const n=i;let s;for(;(s=this._step(i,t,e))>=0&&s!==i&&s!==n;)i=s;return s}_step(t,e,i){const{inedges:n,hull:s,_hullIndex:l,halfedges:r,triangles:o,points:a}=this;if(-1===n[t]||!a.length)return(t+1)%(a.length>>1);let c=t,u=h(e-a[2*t],2)+h(i-a[2*t+1],2);const g=n[t];let d=g;do{let n=o[d];const g=h(e-a[2*n],2)+h(i-a[2*n+1],2);if(g<u&&(u=g,c=n),d=d%3==2?d-2:d+1,o[d]!==t)break;if(d=r[d],-1===d){if(d=s[(l[t]+1)%s.length],d!==n&&h(e-a[2*d],2)+h(i-a[2*d+1],2)<u)return d;break}}while(d!==g);return c}render(t){const e=null==t?t=new i:void 0,{points:n,halfedges:s,triangles:l}=this;for(let e=0,i=s.length;e<i;++e){const i=s[e];if(i<e)continue;const h=2*l[e],r=2*l[i];t.moveTo(n[h],n[h+1]),t.lineTo(n[r],n[r+1])}return this.renderHull(t),e&&e.value()}renderPoints(t,e){void 0!==e||t&&"function"==typeof t.moveTo||(e=t,t=null),e=null==e?2:+e;const n=null==t?t=new i:void 0,{points:s}=this;for(let i=0,n=s.length;i<n;i+=2){const n=s[i],h=s[i+1];t.moveTo(n+e,h),t.arc(n,h,e,0,l)}return n&&n.value()}renderHull(t){const e=null==t?t=new i:void 0,{hull:n,points:s}=this,l=2*n[0],h=n.length;t.moveTo(s[l],s[l+1]);for(let e=1;e<h;++e){const i=2*n[e];t.lineTo(s[i],s[i+1])}return t.closePath(),e&&e.value()}hullPolygon(){const t=new n;return this.renderHull(t),t.value()}renderTriangle(t,e){const n=null==e?e=new i:void 0,{points:s,triangles:l}=this,h=2*l[t*=3],r=2*l[t+1],o=2*l[t+2];return e.moveTo(s[h],s[h+1]),e.lineTo(s[r],s[r+1]),e.lineTo(s[o],s[o+1]),e.closePath(),n&&n.value()}*trianglePolygons(){const{triangles:t}=this;for(let e=0,i=t.length/3;e<i;++e)yield this.trianglePolygon(e)}trianglePolygon(t){const e=new n;return this.renderTriangle(t,e),e.value()}}export{c as Delaunay,s as Voronoi};export default null;
_npm/[email protected]/b5f7cdc6.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ var n={value:()=>{}};function r(){for(var n,r=0,e=arguments.length,o={};r<e;++r){if(!(n=arguments[r]+"")||n in o||/[\s.]/.test(n))throw new Error("illegal type: "+n);o[n]=[]}return new t(o)}function t(n){this._=n}function e(n,r){for(var t,e=0,o=n.length;e<o;++e)if((t=n[e]).name===r)return t.value}function o(r,t,e){for(var o=0,i=r.length;o<i;++o)if(r[o].name===t){r[o]=n,r=r.slice(0,o).concat(r.slice(o+1));break}return null!=e&&r.push({name:t,value:e}),r}t.prototype=r.prototype={constructor:t,on:function(n,r){var t,i,l=this._,a=(i=l,(n+"").trim().split(/^|\s+/).map((function(n){var r="",t=n.indexOf(".");if(t>=0&&(r=n.slice(t+1),n=n.slice(0,t)),n&&!i.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}}))),f=-1,u=a.length;if(!(arguments.length<2)){if(null!=r&&"function"!=typeof r)throw new Error("invalid callback: "+r);for(;++f<u;)if(t=(n=a[f]).type)l[t]=o(l[t],n.name,r);else if(null==r)for(t in l)l[t]=o(l[t],n.name,null);return this}for(;++f<u;)if((t=(n=a[f]).type)&&(t=e(l[t],n.name)))return t},copy:function(){var n={},r=this._;for(var e in r)n[e]=r[e].slice();return new t(n)},call:function(n,r){if((t=arguments.length-2)>0)for(var t,e,o=new Array(t),i=0;i<t;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(i=0,t=(e=this._[n]).length;i<t;++i)e[i].value.apply(r,o)},apply:function(n,r,t){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var e=this._[n],o=0,i=e.length;o<i;++o)e[o].value.apply(r,t)}};export{r as dispatch};export default null;
_npm/[email protected]/b22c5864.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import{dispatch as e}from"../[email protected]/b5f7cdc6.js";import{select as t,pointer as n}from"../[email protected]/5dcd62f4.js";const r={passive:!1},o={capture:!0,passive:!1};function a(e){e.stopImmediatePropagation()}function i(e){e.preventDefault(),e.stopImmediatePropagation()}function u(e){var n=e.document.documentElement,r=t(e).on("dragstart.drag",i,o);"onselectstart"in n?r.on("selectstart.drag",i,o):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function c(e,n){var r=e.document.documentElement,a=t(e).on("dragstart.drag",null);n&&(a.on("click.drag",i,o),setTimeout((function(){a.on("click.drag",null)}),0)),"onselectstart"in r?a.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}var l=e=>()=>e;function s(e,{sourceEvent:t,subject:n,target:r,identifier:o,active:a,x:i,y:u,dx:c,dy:l,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:i,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:s}})}function f(e){return!e.ctrlKey&&!e.button}function d(){return this.parentNode}function g(e,t){return null==t?{x:e.x,y:e.y}:t}function h(){return navigator.maxTouchPoints||"ontouchstart"in this}function m(){var m,v,p,b,y=f,x=d,_=g,w=h,E={},T=e("start","drag","end"),j=0,k=0;function M(e){e.on("mousedown.drag",P).filter(w).on("touchstart.drag",S).on("touchmove.drag",U,r).on("touchend.drag touchcancel.drag",I).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function P(e,n){if(!b&&y.call(this,e,n)){var r=X(this,x.call(this,e,n),e,n,"mouse");r&&(t(e.view).on("mousemove.drag",z,o).on("mouseup.drag",D,o),u(e.view),a(e),p=!1,m=e.clientX,v=e.clientY,r("start",e))}}function z(e){if(i(e),!p){var t=e.clientX-m,n=e.clientY-v;p=t*t+n*n>k}E.mouse("drag",e)}function D(e){t(e.view).on("mousemove.drag mouseup.drag",null),c(e.view,p),i(e),E.mouse("end",e)}function S(e,t){if(y.call(this,e,t)){var n,r,o=e.changedTouches,i=x.call(this,e,t),u=o.length;for(n=0;n<u;++n)(r=X(this,i,e,t,o[n].identifier,o[n]))&&(a(e),r("start",e,o[n]))}}function U(e){var t,n,r=e.changedTouches,o=r.length;for(t=0;t<o;++t)(n=E[r[t].identifier])&&(i(e),n("drag",e,r[t]))}function I(e){var t,n,r=e.changedTouches,o=r.length;for(b&&clearTimeout(b),b=setTimeout((function(){b=null}),500),t=0;t<o;++t)(n=E[r[t].identifier])&&(a(e),n("end",e,r[t]))}function X(e,t,r,o,a,i){var u,c,l,f=T.copy(),d=n(i||r,t);if(null!=(l=_.call(e,new s("beforestart",{sourceEvent:r,target:M,identifier:a,active:j,x:d[0],y:d[1],dx:0,dy:0,dispatch:f}),o)))return u=l.x-d[0]||0,c=l.y-d[1]||0,function r(i,g,h){var m,v=d;switch(i){case"start":E[a]=r,m=j++;break;case"end":delete E[a],--j;case"drag":d=n(h||g,t),m=j}f.call(i,e,new s(i,{sourceEvent:g,subject:l,target:M,identifier:a,active:m,x:d[0]+u,y:d[1]+c,dx:d[0]-v[0],dy:d[1]-v[1],dispatch:f}),o)}}return M.filter=function(e){return arguments.length?(y="function"==typeof e?e:l(!!e),M):y},M.container=function(e){return arguments.length?(x="function"==typeof e?e:l(e),M):x},M.subject=function(e){return arguments.length?(_="function"==typeof e?e:l(e),M):_},M.touchable=function(e){return arguments.length?(w="function"==typeof e?e:l(!!e),M):w},M.on=function(){var e=T.on.apply(T,arguments);return e===T?M:e},M.clickDistance=function(e){return arguments.length?(k=(e=+e)*e,M):Math.sqrt(k)},M}s.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};export{m as drag,u as dragDisable,c as dragEnable};export default null;
_npm/[email protected]/407f7a1f.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ var r={},n={};function t(r){return new Function("d","return {"+r.map((function(r,n){return JSON.stringify(r)+": d["+n+'] || ""'})).join(",")+"}")}function e(r){var n=Object.create(null),t=[];return r.forEach((function(r){for(var e in r)e in n||t.push(n[e]=e)})),t}function o(r,n){var t=r+"",e=t.length;return e<n?new Array(n-e+1).join(0)+t:t}function a(r){var n,t=r.getUTCHours(),e=r.getUTCMinutes(),a=r.getUTCSeconds(),u=r.getUTCMilliseconds();return isNaN(r)?"Invalid Date":((n=r.getUTCFullYear())<0?"-"+o(-n,6):n>9999?"+"+o(n,6):o(n,4))+"-"+o(r.getUTCMonth()+1,2)+"-"+o(r.getUTCDate(),2)+(u?"T"+o(t,2)+":"+o(e,2)+":"+o(a,2)+"."+o(u,3)+"Z":a?"T"+o(t,2)+":"+o(e,2)+":"+o(a,2)+"Z":e||t?"T"+o(t,2)+":"+o(e,2)+"Z":"")}function u(o){var u=new RegExp('["'+o+"\n\r]"),i=o.charCodeAt(0);function f(t,e){var o,a=[],u=t.length,f=0,c=0,s=u<=0,l=!1;function d(){if(s)return n;if(l)return l=!1,r;var e,o,a=f;if(34===t.charCodeAt(a)){for(;f++<u&&34!==t.charCodeAt(f)||34===t.charCodeAt(++f););return(e=f)>=u?s=!0:10===(o=t.charCodeAt(f++))?l=!0:13===o&&(l=!0,10===t.charCodeAt(f)&&++f),t.slice(a+1,e-1).replace(/""/g,'"')}for(;f<u;){if(10===(o=t.charCodeAt(e=f++)))l=!0;else if(13===o)l=!0,10===t.charCodeAt(f)&&++f;else if(o!==i)continue;return t.slice(a,e)}return s=!0,t.slice(a,u)}for(10===t.charCodeAt(u-1)&&--u,13===t.charCodeAt(u-1)&&--u;(o=d())!==n;){for(var m=[];o!==r&&o!==n;)m.push(o),o=d();e&&null==(m=e(m,c++))||a.push(m)}return a}function c(r,n){return r.map((function(r){return n.map((function(n){return l(r[n])})).join(o)}))}function s(r){return r.map(l).join(o)}function l(r){return null==r?"":r instanceof Date?a(r):u.test(r+="")?'"'+r.replace(/"/g,'""')+'"':r}return{parse:function(r,n){var e,o,a=f(r,(function(r,a){if(e)return e(r,a-1);o=r,e=n?function(r,n){var e=t(r);return function(t,o){return n(e(t),o,r)}}(r,n):t(r)}));return a.columns=o||[],a},parseRows:f,format:function(r,n){return null==n&&(n=e(r)),[n.map(l).join(o)].concat(c(r,n)).join("\n")},formatBody:function(r,n){return null==n&&(n=e(r)),c(r,n).join("\n")},formatRows:function(r){return r.map(s).join("\n")},formatRow:s,formatValue:l}}var i=u(","),f=i.parse,c=i.parseRows,s=i.format,l=i.formatBody,d=i.formatRows,m=i.formatRow,p=i.formatValue,h=u("\t"),C=h.parse,g=h.parseRows,v=h.format,w=h.formatBody,T=h.formatRows,A=h.formatRow,R=h.formatValue;function j(r){for(var n in r){var t,e,o=r[n].trim();if(o)if("true"===o)o=!0;else if("false"===o)o=!1;else if("NaN"===o)o=NaN;else if(isNaN(t=+o)){if(!(e=o.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;N&&e[4]&&!e[7]&&(o=o.replace(/-/g,"/").replace(/T/," ")),o=new Date(o)}else o=t;else o=null;r[n]=o}return r}const N=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();export{j as autoType,s as csvFormat,l as csvFormatBody,m as csvFormatRow,d as csvFormatRows,p as csvFormatValue,f as csvParse,c as csvParseRows,u as dsvFormat,v as tsvFormat,w as tsvFormatBody,A as tsvFormatRow,T as tsvFormatRows,R as tsvFormatValue,C as tsvParse,g as tsvParseRows};export default null;
_npm/[email protected]/6f15f633.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ const n=n=>+n;function t(n){return n*n}function e(n){return n*(2-n)}function a(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}function u(n){return n*n*n}function r(n){return--n*n*n+1}function s(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}var o=function n(t){function e(n){return Math.pow(n,t)}return t=+t,e.exponent=n,e}(3),i=function n(t){function e(n){return 1-Math.pow(1-n,t)}return t=+t,e.exponent=n,e}(3),c=function n(t){function e(n){return((n*=2)<=1?Math.pow(n,t):2-Math.pow(2-n,t))/2}return t=+t,e.exponent=n,e}(3),f=Math.PI,h=f/2;function M(n){return 1==+n?1:1-Math.cos(n*h)}function p(n){return Math.sin(n*h)}function I(n){return(1-Math.cos(f*n))/2}function l(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function O(n){return l(1-+n)}function x(n){return 1-l(n)}function d(n){return((n*=2)<=1?l(1-n):2-l(n-1))/2}function v(n){return 1-Math.sqrt(1-n*n)}function B(n){return Math.sqrt(1- --n*n)}function C(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var E=4/11,m=6/11,P=8/11,w=3/4,b=9/11,k=10/11,q=15/16,y=21/22,Q=63/64,S=1/E/E;function L(n){return 1-g(1-n)}function g(n){return(n=+n)<E?S*n*n:n<P?S*(n-=m)*n+w:n<k?S*(n-=b)*n+q:S*(n-=y)*n+Q}function j(n){return((n*=2)<=1?1-g(1-n):g(n-1)+1)/2}var z=1.70158,A=function n(t){function e(n){return(n=+n)*n*(t*(n-1)+n)}return t=+t,e.overshoot=n,e}(z),D=function n(t){function e(n){return--n*n*((n+1)*t+n)+1}return t=+t,e.overshoot=n,e}(z),F=function n(t){function e(n){return((n*=2)<1?n*n*((t+1)*n-t):(n-=2)*n*((t+1)*n+t)+2)/2}return t=+t,e.overshoot=n,e}(z),G=2*Math.PI,H=function n(t,e){var a=Math.asin(1/(t=Math.max(1,t)))*(e/=G);function u(n){return t*l(- --n)*Math.sin((a-n)/e)}return u.amplitude=function(t){return n(t,e*G)},u.period=function(e){return n(t,e)},u}(1,.3),J=function n(t,e){var a=Math.asin(1/(t=Math.max(1,t)))*(e/=G);function u(n){return 1-t*l(n=+n)*Math.sin((n+a)/e)}return u.amplitude=function(t){return n(t,e*G)},u.period=function(e){return n(t,e)},u}(1,.3),K=function n(t,e){var a=Math.asin(1/(t=Math.max(1,t)))*(e/=G);function u(n){return((n=2*n-1)<0?t*l(-n)*Math.sin((a-n)/e):2-t*l(n)*Math.sin((a+n)/e))/2}return u.amplitude=function(t){return n(t,e*G)},u.period=function(e){return n(t,e)},u}(1,.3);export{F as easeBack,A as easeBackIn,F as easeBackInOut,D as easeBackOut,g as easeBounce,L as easeBounceIn,j as easeBounceInOut,g as easeBounceOut,C as easeCircle,v as easeCircleIn,C as easeCircleInOut,B as easeCircleOut,s as easeCubic,u as easeCubicIn,s as easeCubicInOut,r as easeCubicOut,J as easeElastic,H as easeElasticIn,K as easeElasticInOut,J as easeElasticOut,d as easeExp,O as easeExpIn,d as easeExpInOut,x as easeExpOut,n as easeLinear,c as easePoly,o as easePolyIn,c as easePolyInOut,i as easePolyOut,a as easeQuad,t as easeQuadIn,a as easeQuadInOut,e as easeQuadOut,I as easeSin,M as easeSinIn,I as easeSinInOut,p as easeSinOut};export default null;
_npm/[email protected]/ef1ec490.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import{dsvFormat as t,csvParse as n,tsvParse as r}from"../[email protected]/407f7a1f.js";function e(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function o(t,n){return fetch(t,n).then(e)}function u(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function f(t,n){return fetch(t,n).then(u)}function i(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function s(t,n){return fetch(t,n).then(i)}function a(t){return function(n,r,e){return 2===arguments.length&&"function"==typeof r&&(e=r,r=void 0),s(n,r).then((function(n){return t(n,e)}))}}function c(n,r,e,o){3===arguments.length&&"function"==typeof e&&(o=e,e=void 0);var u=t(n);return s(r,e).then((function(t){return u.parse(t,o)}))}var h=a(n),l=a(r);function m(t,n){return new Promise((function(r,e){var o=new Image;for(var u in n)o[u]=n[u];o.onerror=e,o.onload=function(){r(o)},o.src=t}))}function w(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function p(t,n){return fetch(t,n).then(w)}function x(t){return(n,r)=>s(n,r).then((n=>(new DOMParser).parseFromString(n,t)))}var v=x("application/xml"),d=x("text/html"),g=x("image/svg+xml");export{o as blob,f as buffer,h as csv,c as dsv,d as html,m as image,p as json,g as svg,s as text,l as tsv,v as xml};export default null;
_npm/[email protected]/5e1ff060.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import{quadtree as n}from"../[email protected]/aa5b35a8.js";import{dispatch as t}from"../[email protected]/b5f7cdc6.js";import{timer as r}from"../[email protected]/f31b5398.js";function e(n,t){var r,e=1;function i(){var i,o,u=r.length,f=0,a=0;for(i=0;i<u;++i)f+=(o=r[i]).x,a+=o.y;for(f=(f/u-n)*e,a=(a/u-t)*e,i=0;i<u;++i)(o=r[i]).x-=f,o.y-=a}return null==n&&(n=0),null==t&&(t=0),i.initialize=function(n){r=n},i.x=function(t){return arguments.length?(n=+t,i):n},i.y=function(n){return arguments.length?(t=+n,i):t},i.strength=function(n){return arguments.length?(e=+n,i):e},i}function i(n){return function(){return n}}function o(n){return 1e-6*(n()-.5)}function u(n){return n.x+n.vx}function f(n){return n.y+n.vy}function a(t){var r,e,a,c=1,l=1;function h(){for(var t,i,h,y,x,g,s,d=r.length,p=0;p<l;++p)for(i=n(r,u,f).visitAfter(v),t=0;t<d;++t)h=r[t],g=e[h.index],s=g*g,y=h.x+h.vx,x=h.y+h.vy,i.visit(M);function M(n,t,r,e,i){var u=n.data,f=n.r,l=g+f;if(!u)return t>y+l||e<y-l||r>x+l||i<x-l;if(u.index>h.index){var v=y-u.x-u.vx,d=x-u.y-u.vy,p=v*v+d*d;p<l*l&&(0===v&&(p+=(v=o(a))*v),0===d&&(p+=(d=o(a))*d),p=(l-(p=Math.sqrt(p)))/p*c,h.vx+=(v*=p)*(l=(f*=f)/(s+f)),h.vy+=(d*=p)*l,u.vx-=v*(l=1-l),u.vy-=d*l)}}}function v(n){if(n.data)return n.r=e[n.data.index];for(var t=n.r=0;t<4;++t)n[t]&&n[t].r>n.r&&(n.r=n[t].r)}function y(){if(r){var n,i,o=r.length;for(e=new Array(o),n=0;n<o;++n)i=r[n],e[i.index]=+t(i,n,r)}}return"function"!=typeof t&&(t=i(null==t?1:+t)),h.initialize=function(n,t){r=n,a=t,y()},h.iterations=function(n){return arguments.length?(l=+n,h):l},h.strength=function(n){return arguments.length?(c=+n,h):c},h.radius=function(n){return arguments.length?(t="function"==typeof n?n:i(+n),y(),h):t},h}function c(n){return n.index}function l(n,t){var r=n.get(t);if(!r)throw new Error("node not found: "+t);return r}function h(n){var t,r,e,u,f,a,h=c,v=function(n){return 1/Math.min(u[n.source.index],u[n.target.index])},y=i(30),x=1;function g(e){for(var i=0,u=n.length;i<x;++i)for(var c,l,h,v,y,g,s,d=0;d<u;++d)l=(c=n[d]).source,v=(h=c.target).x+h.vx-l.x-l.vx||o(a),y=h.y+h.vy-l.y-l.vy||o(a),v*=g=((g=Math.sqrt(v*v+y*y))-r[d])/g*e*t[d],y*=g,h.vx-=v*(s=f[d]),h.vy-=y*s,l.vx+=v*(s=1-s),l.vy+=y*s}function s(){if(e){var i,o,a=e.length,c=n.length,v=new Map(e.map(((n,t)=>[h(n,t,e),n])));for(i=0,u=new Array(a);i<c;++i)(o=n[i]).index=i,"object"!=typeof o.source&&(o.source=l(v,o.source)),"object"!=typeof o.target&&(o.target=l(v,o.target)),u[o.source.index]=(u[o.source.index]||0)+1,u[o.target.index]=(u[o.target.index]||0)+1;for(i=0,f=new Array(c);i<c;++i)o=n[i],f[i]=u[o.source.index]/(u[o.source.index]+u[o.target.index]);t=new Array(c),d(),r=new Array(c),p()}}function d(){if(e)for(var r=0,i=n.length;r<i;++r)t[r]=+v(n[r],r,n)}function p(){if(e)for(var t=0,i=n.length;t<i;++t)r[t]=+y(n[t],t,n)}return null==n&&(n=[]),g.initialize=function(n,t){e=n,a=t,s()},g.links=function(t){return arguments.length?(n=t,s(),g):n},g.id=function(n){return arguments.length?(h=n,g):h},g.iterations=function(n){return arguments.length?(x=+n,g):x},g.strength=function(n){return arguments.length?(v="function"==typeof n?n:i(+n),d(),g):v},g.distance=function(n){return arguments.length?(y="function"==typeof n?n:i(+n),p(),g):y},g}const v=1664525,y=1013904223,x=4294967296;function g(n){return n.x}function s(n){return n.y}var d=Math.PI*(3-Math.sqrt(5));function p(n){var e,i=1,o=.001,u=1-Math.pow(o,1/300),f=0,a=.6,c=new Map,l=r(s),h=t("tick","end"),g=function(){let n=1;return()=>(n=(v*n+y)%x)/x}();function s(){p(),h.call("tick",e),i<o&&(l.stop(),h.call("end",e))}function p(t){var r,o,l=n.length;void 0===t&&(t=1);for(var h=0;h<t;++h)for(i+=(f-i)*u,c.forEach((function(n){n(i)})),r=0;r<l;++r)null==(o=n[r]).fx?o.x+=o.vx*=a:(o.x=o.fx,o.vx=0),null==o.fy?o.y+=o.vy*=a:(o.y=o.fy,o.vy=0);return e}function M(){for(var t,r=0,e=n.length;r<e;++r){if((t=n[r]).index=r,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),isNaN(t.x)||isNaN(t.y)){var i=10*Math.sqrt(.5+r),o=r*d;t.x=i*Math.cos(o),t.y=i*Math.sin(o)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function w(t){return t.initialize&&t.initialize(n,g),t}return null==n&&(n=[]),M(),e={tick:p,restart:function(){return l.restart(s),e},stop:function(){return l.stop(),e},nodes:function(t){return arguments.length?(n=t,M(),c.forEach(w),e):n},alpha:function(n){return arguments.length?(i=+n,e):i},alphaMin:function(n){return arguments.length?(o=+n,e):o},alphaDecay:function(n){return arguments.length?(u=+n,e):+u},alphaTarget:function(n){return arguments.length?(f=+n,e):f},velocityDecay:function(n){return arguments.length?(a=1-n,e):1-a},randomSource:function(n){return arguments.length?(g=n,c.forEach(w),e):g},force:function(n,t){return arguments.length>1?(null==t?c.delete(n):c.set(n,w(t)),e):c.get(n)},find:function(t,r,e){var i,o,u,f,a,c=0,l=n.length;for(null==e?e=1/0:e*=e,c=0;c<l;++c)(u=(i=t-(f=n[c]).x)*i+(o=r-f.y)*o)<e&&(a=f,e=u);return a},on:function(n,t){return arguments.length>1?(h.on(n,t),e):h.on(n)}}}function M(){var t,r,e,u,f,a=i(-30),c=1,l=1/0,h=.81;function v(e){var i,o=t.length,f=n(t,g,s).visitAfter(x);for(u=e,i=0;i<o;++i)r=t[i],f.visit(d)}function y(){if(t){var n,r,e=t.length;for(f=new Array(e),n=0;n<e;++n)r=t[n],f[r.index]=+a(r,n,t)}}function x(n){var t,r,e,i,o,u=0,a=0;if(n.length){for(e=i=o=0;o<4;++o)(t=n[o])&&(r=Math.abs(t.value))&&(u+=t.value,a+=r,e+=r*t.x,i+=r*t.y);n.x=e/a,n.y=i/a}else{(t=n).x=t.data.x,t.y=t.data.y;do{u+=f[t.data.index]}while(t=t.next)}n.value=u}function d(n,t,i,a){if(!n.value)return!0;var v=n.x-r.x,y=n.y-r.y,x=a-t,g=v*v+y*y;if(x*x/h<g)return g<l&&(0===v&&(g+=(v=o(e))*v),0===y&&(g+=(y=o(e))*y),g<c&&(g=Math.sqrt(c*g)),r.vx+=v*n.value*u/g,r.vy+=y*n.value*u/g),!0;if(!(n.length||g>=l)){(n.data!==r||n.next)&&(0===v&&(g+=(v=o(e))*v),0===y&&(g+=(y=o(e))*y),g<c&&(g=Math.sqrt(c*g)));do{n.data!==r&&(x=f[n.data.index]*u/g,r.vx+=v*x,r.vy+=y*x)}while(n=n.next)}}return v.initialize=function(n,r){t=n,e=r,y()},v.strength=function(n){return arguments.length?(a="function"==typeof n?n:i(+n),y(),v):a},v.distanceMin=function(n){return arguments.length?(c=n*n,v):Math.sqrt(c)},v.distanceMax=function(n){return arguments.length?(l=n*n,v):Math.sqrt(l)},v.theta=function(n){return arguments.length?(h=n*n,v):Math.sqrt(h)},v}function w(n,t,r){var e,o,u,f=i(.1);function a(n){for(var i=0,f=e.length;i<f;++i){var a=e[i],c=a.x-t||1e-6,l=a.y-r||1e-6,h=Math.sqrt(c*c+l*l),v=(u[i]-h)*o[i]*n/h;a.vx+=c*v,a.vy+=l*v}}function c(){if(e){var t,r=e.length;for(o=new Array(r),u=new Array(r),t=0;t<r;++t)u[t]=+n(e[t],t,e),o[t]=isNaN(u[t])?0:+f(e[t],t,e)}}return"function"!=typeof n&&(n=i(+n)),null==t&&(t=0),null==r&&(r=0),a.initialize=function(n){e=n,c()},a.strength=function(n){return arguments.length?(f="function"==typeof n?n:i(+n),c(),a):f},a.radius=function(t){return arguments.length?(n="function"==typeof t?t:i(+t),c(),a):n},a.x=function(n){return arguments.length?(t=+n,a):t},a.y=function(n){return arguments.length?(r=+n,a):r},a}function m(n){var t,r,e,o=i(.1);function u(n){for(var i,o=0,u=t.length;o<u;++o)(i=t[o]).vx+=(e[o]-i.x)*r[o]*n}function f(){if(t){var i,u=t.length;for(r=new Array(u),e=new Array(u),i=0;i<u;++i)r[i]=isNaN(e[i]=+n(t[i],i,t))?0:+o(t[i],i,t)}}return"function"!=typeof n&&(n=i(null==n?0:+n)),u.initialize=function(n){t=n,f()},u.strength=function(n){return arguments.length?(o="function"==typeof n?n:i(+n),f(),u):o},u.x=function(t){return arguments.length?(n="function"==typeof t?t:i(+t),f(),u):n},u}function A(n){var t,r,e,o=i(.1);function u(n){for(var i,o=0,u=t.length;o<u;++o)(i=t[o]).vy+=(e[o]-i.y)*r[o]*n}function f(){if(t){var i,u=t.length;for(r=new Array(u),e=new Array(u),i=0;i<u;++i)r[i]=isNaN(e[i]=+n(t[i],i,t))?0:+o(t[i],i,t)}}return"function"!=typeof n&&(n=i(null==n?0:+n)),u.initialize=function(n){t=n,f()},u.strength=function(n){return arguments.length?(o="function"==typeof n?n:i(+n),f(),u):o},u.y=function(t){return arguments.length?(n="function"==typeof t?t:i(+t),f(),u):n},u}export{e as forceCenter,a as forceCollide,h as forceLink,M as forceManyBody,w as forceRadial,p as forceSimulation,m as forceX,A as forceY};export default null;
_npm/[email protected]/5851d7ef.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ function t(t,i){if((n=(t=i?t.toExponential(i-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function i(i){return(i=t(Math.abs(i)))?i[1]:NaN}var n,r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function e(t){if(!(i=r.exec(t)))throw new Error("invalid format: "+t);var i;return new o({fill:i[1],align:i[2],sign:i[3],symbol:i[4],zero:i[5],width:i[6],comma:i[7],precision:i[8]&&i[8].slice(1),trim:i[9],type:i[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function a(i,n){var r=t(i,n);if(!r)return i+"";var e=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+e:e.length>o+1?e.slice(0,o+1)+"."+e.slice(o+1):e+new Array(o-e.length+2).join("0")}e.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var s={"%":(t,i)=>(100*t).toFixed(i),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,i)=>t.toExponential(i),f:(t,i)=>t.toFixed(i),g:(t,i)=>t.toPrecision(i),o:t=>Math.round(t).toString(8),p:(t,i)=>a(100*t,i),r:a,s:function(i,r){var e=t(i,r);if(!e)return i+"";var o=e[0],a=e[1],s=a-(n=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,h=o.length;return s===h?o:s>h?o+new Array(s-h+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+t(i,Math.max(0,r+s-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function h(t){return t}var c,l,u,f=Array.prototype.map,m=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function d(t){var r,o,a=void 0===t.grouping||void 0===t.thousands?h:(r=f.call(t.grouping,Number),o=t.thousands+"",function(t,i){for(var n=t.length,e=[],a=0,s=r[0],h=0;n>0&&s>0&&(h+s+1>i&&(s=Math.max(1,i-h)),e.push(t.substring(n-=s,n+s)),!((h+=s+1)>i));)s=r[a=(a+1)%r.length];return e.reverse().join(o)}),c=void 0===t.currency?"":t.currency[0]+"",l=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",d=void 0===t.numerals?h:function(t){return function(i){return i.replace(/[0-9]/g,(function(i){return t[+i]}))}}(f.call(t.numerals,String)),g=void 0===t.percent?"%":t.percent+"",p=void 0===t.minus?"−":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";function M(t){var i=(t=e(t)).fill,r=t.align,o=t.sign,h=t.symbol,f=t.zero,M=t.width,y=t.comma,x=t.precision,b=t.trim,w=t.type;"n"===w?(y=!0,w="g"):s[w]||(void 0===x&&(x=12),b=!0,w="g"),(f||"0"===i&&"="===r)&&(f=!0,i="0",r="=");var S="$"===h?c:"#"===h&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",k="$"===h?l:/[%p]/.test(w)?g:"",z=s[w],A=/[defgprs%]/.test(w);function N(t){var e,s,h,c=S,l=k;if("c"===w)l=z(t)+l,t="";else{var g=(t=+t)<0||1/t<0;if(t=isNaN(t)?v:z(Math.abs(t),x),b&&(t=function(t){t:for(var i,n=t.length,r=1,e=-1;r<n;++r)switch(t[r]){case".":e=i=r;break;case"0":0===e&&(e=r),i=r;break;default:if(!+t[r])break t;e>0&&(e=0)}return e>0?t.slice(0,e)+t.slice(i+1):t}(t)),g&&0==+t&&"+"!==o&&(g=!1),c=(g?"("===o?o:p:"-"===o||"("===o?"":o)+c,l=("s"===w?m[8+n/3]:"")+l+(g&&"("===o?")":""),A)for(e=-1,s=t.length;++e<s;)if(48>(h=t.charCodeAt(e))||h>57){l=(46===h?u+t.slice(e+1):t.slice(e))+l,t=t.slice(0,e);break}}y&&!f&&(t=a(t,1/0));var N=c.length+t.length+l.length,j=N<M?new Array(M-N+1).join(i):"";switch(y&&f&&(t=a(j+t,j.length?M-l.length:1/0),j=""),r){case"<":t=c+t+l+j;break;case"=":t=c+j+t+l;break;case"^":t=j.slice(0,N=j.length>>1)+c+t+l+j.slice(N);break;default:t=j+c+t+l}return d(t)}return x=void 0===x?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),N.toString=function(){return t+""},N}return{format:M,formatPrefix:function(t,n){var r=M(((t=e(t)).type="f",t)),o=3*Math.max(-8,Math.min(8,Math.floor(i(n)/3))),a=Math.pow(10,-o),s=m[8+o/3];return function(t){return r(a*t)+s}}}}function g(t){return c=d(t),l=c.format,u=c.formatPrefix,c}function p(t){return Math.max(0,-i(Math.abs(t)))}function v(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(i(n)/3)))-i(Math.abs(t)))}function M(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,i(n)-i(t))+1}g({thousands:",",grouping:[3],currency:["$",""]});export{o as FormatSpecifier,l as format,g as formatDefaultLocale,d as formatLocale,u as formatPrefix,e as formatSpecifier,p as precisionFixed,v as precisionPrefix,M as precisionRound};export default null;
_npm/[email protected]/dcd02767.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import{Adder as n,merge as t,range as r}from"../[email protected]/e95f898e.js";var i=1e-6,e=1e-12,o=Math.PI,u=o/2,a=o/4,c=2*o,l=180/o,f=o/180,s=Math.abs,p=Math.atan,h=Math.atan2,g=Math.cos,v=Math.ceil,d=Math.exp,E=Math.hypot,y=Math.log,S=Math.pow,m=Math.sin,M=Math.sign||function(n){return n>0?1:n<0?-1:0},w=Math.sqrt,x=Math.tan;function _(n){return n>1?0:n<-1?o:Math.acos(n)}function N(n){return n>1?u:n<-1?-u:Math.asin(n)}function R(n){return(n=m(n/2))*n}function C(){}function P(n,t){n&&$.hasOwnProperty(n.type)&&$[n.type](n,t)}var A={Feature:function(n,t){P(n.geometry,t)},FeatureCollection:function(n,t){for(var r=n.features,i=-1,e=r.length;++i<e;)P(r[i].geometry,t)}},$={Sphere:function(n,t){t.sphere()},Point:function(n,t){n=n.coordinates,t.point(n[0],n[1],n[2])},MultiPoint:function(n,t){for(var r=n.coordinates,i=-1,e=r.length;++i<e;)n=r[i],t.point(n[0],n[1],n[2])},LineString:function(n,t){q(n.coordinates,t,0)},MultiLineString:function(n,t){for(var r=n.coordinates,i=-1,e=r.length;++i<e;)q(r[i],t,0)},Polygon:function(n,t){z(n.coordinates,t)},MultiPolygon:function(n,t){for(var r=n.coordinates,i=-1,e=r.length;++i<e;)z(r[i],t)},GeometryCollection:function(n,t){for(var r=n.geometries,i=-1,e=r.length;++i<e;)P(r[i],t)}};function q(n,t,r){var i,e=-1,o=n.length-r;for(t.lineStart();++e<o;)i=n[e],t.point(i[0],i[1],i[2]);t.lineEnd()}function z(n,t){var r=-1,i=n.length;for(t.polygonStart();++r<i;)q(n[r],t,1);t.polygonEnd()}function j(n,t){n&&A.hasOwnProperty(n.type)?A[n.type](n,t):P(n,t)}var L,b,G,O,T,k,F,H,I,W,X,Y,B,D,U,Z,J=new n,K=new n,Q={point:C,lineStart:C,lineEnd:C,polygonStart:function(){J=new n,Q.lineStart=V,Q.lineEnd=nn},polygonEnd:function(){var n=+J;K.add(n<0?c+n:n),this.lineStart=this.lineEnd=this.point=C},sphere:function(){K.add(c)}};function V(){Q.point=tn}function nn(){rn(L,b)}function tn(n,t){Q.point=rn,L=n,b=t,G=n*=f,O=g(t=(t*=f)/2+a),T=m(t)}function rn(n,t){var r=(n*=f)-G,i=r>=0?1:-1,e=i*r,o=g(t=(t*=f)/2+a),u=m(t),c=T*u,l=O*o+c*g(e),s=c*i*m(e);J.add(h(s,l)),G=n,O=o,T=u}function en(t){return K=new n,j(t,Q),2*K}function on(n){return[h(n[1],n[0]),N(n[2])]}function un(n){var t=n[0],r=n[1],i=g(r);return[i*g(t),i*m(t),m(r)]}function an(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function cn(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function ln(n,t){n[0]+=t[0],n[1]+=t[1],n[2]+=t[2]}function fn(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function sn(n){var t=w(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t,n[1]/=t,n[2]/=t}var pn,hn,gn,vn,dn,En,yn,Sn,mn,Mn,wn,xn,_n,Nn,Rn,Cn,Pn={point:An,lineStart:qn,lineEnd:zn,polygonStart:function(){Pn.point=jn,Pn.lineStart=Ln,Pn.lineEnd=bn,D=new n,Q.polygonStart()},polygonEnd:function(){Q.polygonEnd(),Pn.point=An,Pn.lineStart=qn,Pn.lineEnd=zn,J<0?(k=-(H=180),F=-(I=90)):D>i?I=90:D<-i&&(F=-90),Z[0]=k,Z[1]=H},sphere:function(){k=-(H=180),F=-(I=90)}};function An(n,t){U.push(Z=[k=n,H=n]),t<F&&(F=t),t>I&&(I=t)}function $n(n,t){var r=un([n*f,t*f]);if(B){var i=cn(B,r),e=cn([i[1],-i[0],0],i);sn(e),e=on(e);var o,u=n-W,a=u>0?1:-1,c=e[0]*l*a,p=s(u)>180;p^(a*W<c&&c<a*n)?(o=e[1]*l)>I&&(I=o):p^(a*W<(c=(c+360)%360-180)&&c<a*n)?(o=-e[1]*l)<F&&(F=o):(t<F&&(F=t),t>I&&(I=t)),p?n<W?Gn(k,n)>Gn(k,H)&&(H=n):Gn(n,H)>Gn(k,H)&&(k=n):H>=k?(n<k&&(k=n),n>H&&(H=n)):n>W?Gn(k,n)>Gn(k,H)&&(H=n):Gn(n,H)>Gn(k,H)&&(k=n)}else U.push(Z=[k=n,H=n]);t<F&&(F=t),t>I&&(I=t),B=r,W=n}function qn(){Pn.point=$n}function zn(){Z[0]=k,Z[1]=H,Pn.point=An,B=null}function jn(n,t){if(B){var r=n-W;D.add(s(r)>180?r+(r>0?360:-360):r)}else X=n,Y=t;Q.point(n,t),$n(n,t)}function Ln(){Q.lineStart()}function bn(){jn(X,Y),Q.lineEnd(),s(D)>i&&(k=-(H=180)),Z[0]=k,Z[1]=H,B=null}function Gn(n,t){return(t-=n)<0?t+360:t}function On(n,t){return n[0]-t[0]}function Tn(n,t){return n[0]<=n[1]?n[0]<=t&&t<=n[1]:t<n[0]||n[1]<t}function kn(n){var t,r,i,e,o,u,a;if(I=H=-(k=F=1/0),U=[],j(n,Pn),r=U.length){for(U.sort(On),t=1,o=[i=U[0]];t<r;++t)Tn(i,(e=U[t])[0])||Tn(i,e[1])?(Gn(i[0],e[1])>Gn(i[0],i[1])&&(i[1]=e[1]),Gn(e[0],i[1])>Gn(i[0],i[1])&&(i[0]=e[0])):o.push(i=e);for(u=-1/0,t=0,i=o[r=o.length-1];t<=r;i=e,++t)e=o[t],(a=Gn(i[1],e[0]))>u&&(u=a,k=e[0],H=i[1])}return U=Z=null,k===1/0||F===1/0?[[NaN,NaN],[NaN,NaN]]:[[k,F],[H,I]]}var Fn={sphere:C,point:Hn,lineStart:Wn,lineEnd:Bn,polygonStart:function(){Fn.lineStart=Dn,Fn.lineEnd=Un},polygonEnd:function(){Fn.lineStart=Wn,Fn.lineEnd=Bn}};function Hn(n,t){n*=f;var r=g(t*=f);In(r*g(n),r*m(n),m(t))}function In(n,t,r){++pn,gn+=(n-gn)/pn,vn+=(t-vn)/pn,dn+=(r-dn)/pn}function Wn(){Fn.point=Xn}function Xn(n,t){n*=f;var r=g(t*=f);Nn=r*g(n),Rn=r*m(n),Cn=m(t),Fn.point=Yn,In(Nn,Rn,Cn)}function Yn(n,t){n*=f;var r=g(t*=f),i=r*g(n),e=r*m(n),o=m(t),u=h(w((u=Rn*o-Cn*e)*u+(u=Cn*i-Nn*o)*u+(u=Nn*e-Rn*i)*u),Nn*i+Rn*e+Cn*o);hn+=u,En+=u*(Nn+(Nn=i)),yn+=u*(Rn+(Rn=e)),Sn+=u*(Cn+(Cn=o)),In(Nn,Rn,Cn)}function Bn(){Fn.point=Hn}function Dn(){Fn.point=Zn}function Un(){Jn(xn,_n),Fn.point=Hn}function Zn(n,t){xn=n,_n=t,n*=f,t*=f,Fn.point=Jn;var r=g(t);Nn=r*g(n),Rn=r*m(n),Cn=m(t),In(Nn,Rn,Cn)}function Jn(n,t){n*=f;var r=g(t*=f),i=r*g(n),e=r*m(n),o=m(t),u=Rn*o-Cn*e,a=Cn*i-Nn*o,c=Nn*e-Rn*i,l=E(u,a,c),s=N(l),p=l&&-s/l;mn.add(p*u),Mn.add(p*a),wn.add(p*c),hn+=s,En+=s*(Nn+(Nn=i)),yn+=s*(Rn+(Rn=e)),Sn+=s*(Cn+(Cn=o)),In(Nn,Rn,Cn)}function Kn(t){pn=hn=gn=vn=dn=En=yn=Sn=0,mn=new n,Mn=new n,wn=new n,j(t,Fn);var r=+mn,o=+Mn,u=+wn,a=E(r,o,u);return a<e&&(r=En,o=yn,u=Sn,hn<i&&(r=gn,o=vn,u=dn),(a=E(r,o,u))<e)?[NaN,NaN]:[h(o,r)*l,N(u/a)*l]}function Qn(n){return function(){return n}}function Vn(n,t){function r(r,i){return r=n(r,i),t(r[0],r[1])}return n.invert&&t.invert&&(r.invert=function(r,i){return(r=t.invert(r,i))&&n.invert(r[0],r[1])}),r}function nt(n,t){return s(n)>o&&(n-=Math.round(n/c)*c),[n,t]}function tt(n,t,r){return(n%=c)?t||r?Vn(it(n),et(t,r)):it(n):t||r?et(t,r):nt}function rt(n){return function(t,r){return s(t+=n)>o&&(t-=Math.round(t/c)*c),[t,r]}}function it(n){var t=rt(n);return t.invert=rt(-n),t}function et(n,t){var r=g(n),i=m(n),e=g(t),o=m(t);function u(n,t){var u=g(t),a=g(n)*u,c=m(n)*u,l=m(t),f=l*r+a*i;return[h(c*e-f*o,a*r-l*i),N(f*e+c*o)]}return u.invert=function(n,t){var u=g(t),a=g(n)*u,c=m(n)*u,l=m(t),f=l*e-c*o;return[h(c*e+l*o,a*r+f*i),N(f*r-a*i)]},u}function ot(n){function t(t){return(t=n(t[0]*f,t[1]*f))[0]*=l,t[1]*=l,t}return n=tt(n[0]*f,n[1]*f,n.length>2?n[2]*f:0),t.invert=function(t){return(t=n.invert(t[0]*f,t[1]*f))[0]*=l,t[1]*=l,t},t}function ut(n,t,r,i,e,o){if(r){var u=g(t),a=m(t),l=i*r;null==e?(e=t+i*c,o=t-l/2):(e=at(u,e),o=at(u,o),(i>0?e<o:e>o)&&(e+=i*c));for(var f,s=e;i>0?s>o:s<o;s-=l)f=on([u,-a*g(s),-a*m(s)]),n.point(f[0],f[1])}}function at(n,t){(t=un(t))[0]-=n,sn(t);var r=_(-t[1]);return((-t[2]<0?-r:r)+c-i)%c}function ct(){var n,t,r=Qn([0,0]),i=Qn(90),e=Qn(2),o={point:function(r,i){n.push(r=t(r,i)),r[0]*=l,r[1]*=l}};function u(){var u=r.apply(this,arguments),a=i.apply(this,arguments)*f,c=e.apply(this,arguments)*f;return n=[],t=tt(-u[0]*f,-u[1]*f,0).invert,ut(o,a,c,1),u={type:"Polygon",coordinates:[n]},n=t=null,u}return u.center=function(n){return arguments.length?(r="function"==typeof n?n:Qn([+n[0],+n[1]]),u):r},u.radius=function(n){return arguments.length?(i="function"==typeof n?n:Qn(+n),u):i},u.precision=function(n){return arguments.length?(e="function"==typeof n?n:Qn(+n),u):e},u}function lt(){var n,t=[];return{point:function(t,r,i){n.push([t,r,i])},lineStart:function(){t.push(n=[])},lineEnd:C,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var r=t;return t=[],n=null,r}}}function ft(n,t){return s(n[0]-t[0])<i&&s(n[1]-t[1])<i}function st(n,t,r,i){this.x=n,this.z=t,this.o=r,this.e=i,this.v=!1,this.n=this.p=null}function pt(n,t,r,e,o){var u,a,c=[],l=[];if(n.forEach((function(n){if(!((t=n.length-1)<=0)){var t,r,e=n[0],a=n[t];if(ft(e,a)){if(!e[2]&&!a[2]){for(o.lineStart(),u=0;u<t;++u)o.point((e=n[u])[0],e[1]);return void o.lineEnd()}a[0]+=2*i}c.push(r=new st(e,n,null,!0)),l.push(r.o=new st(e,null,r,!1)),c.push(r=new st(a,n,null,!1)),l.push(r.o=new st(a,null,r,!0))}})),c.length){for(l.sort(t),ht(c),ht(l),u=0,a=l.length;u<a;++u)l[u].e=r=!r;for(var f,s,p=c[0];;){for(var h=p,g=!0;h.v;)if((h=h.n)===p)return;f=h.z,o.lineStart();do{if(h.v=h.o.v=!0,h.e){if(g)for(u=0,a=f.length;u<a;++u)o.point((s=f[u])[0],s[1]);else e(h.x,h.n.x,1,o);h=h.n}else{if(g)for(f=h.p.z,u=f.length-1;u>=0;--u)o.point((s=f[u])[0],s[1]);else e(h.x,h.p.x,-1,o);h=h.p}f=(h=h.o).z,g=!g}while(!h.v);o.lineEnd()}}}function ht(n){if(t=n.length){for(var t,r,i=0,e=n[0];++i<t;)e.n=r=n[i],r.p=e,e=r;e.n=r=n[0],r.p=e}}function gt(n){return s(n[0])<=o?n[0]:M(n[0])*((s(n[0])+o)%c-o)}function vt(t,r){var l=gt(r),f=r[1],s=m(f),p=[m(l),-g(l),0],v=0,d=0,E=new n;1===s?f=u+i:-1===s&&(f=-u-i);for(var y=0,S=t.length;y<S;++y)if(w=(M=t[y]).length)for(var M,w,x=M[w-1],_=gt(x),R=x[1]/2+a,C=m(R),P=g(R),A=0;A<w;++A,_=q,C=j,P=L,x=$){var $=M[A],q=gt($),z=$[1]/2+a,j=m(z),L=g(z),b=q-_,G=b>=0?1:-1,O=G*b,T=O>o,k=C*j;if(E.add(h(k*G*m(O),P*L+k*g(O))),v+=T?b+G*c:b,T^_>=l^q>=l){var F=cn(un(x),un($));sn(F);var H=cn(p,F);sn(H);var I=(T^b>=0?-1:1)*N(H[2]);(f>I||f===I&&(F[0]||F[1]))&&(d+=T^b>=0?1:-1)}}return(v<-i||v<i&&E<-e)^1&d}function dt(n,r,i,e){return function(o){var u,a,c,l=r(o),f=lt(),s=r(f),p=!1,h={point:g,lineStart:d,lineEnd:E,polygonStart:function(){h.point=y,h.lineStart=S,h.lineEnd=m,a=[],u=[]},polygonEnd:function(){h.point=g,h.lineStart=d,h.lineEnd=E,a=t(a);var n=vt(u,e);a.length?(p||(o.polygonStart(),p=!0),pt(a,yt,n,i,o)):n&&(p||(o.polygonStart(),p=!0),o.lineStart(),i(null,null,1,o),o.lineEnd()),p&&(o.polygonEnd(),p=!1),a=u=null},sphere:function(){o.polygonStart(),o.lineStart(),i(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function g(t,r){n(t,r)&&o.point(t,r)}function v(n,t){l.point(n,t)}function d(){h.point=v,l.lineStart()}function E(){h.point=g,l.lineEnd()}function y(n,t){c.push([n,t]),s.point(n,t)}function S(){s.lineStart(),c=[]}function m(){y(c[0][0],c[0][1]),s.lineEnd();var n,t,r,i,e=s.clean(),l=f.result(),h=l.length;if(c.pop(),u.push(c),c=null,h)if(1&e){if((t=(r=l[0]).length-1)>0){for(p||(o.polygonStart(),p=!0),o.lineStart(),n=0;n<t;++n)o.point((i=r[n])[0],i[1]);o.lineEnd()}}else h>1&&2&e&&l.push(l.pop().concat(l.shift())),a.push(l.filter(Et))}return h}}function Et(n){return n.length>1}function yt(n,t){return((n=n.x)[0]<0?n[1]-u-i:u-n[1])-((t=t.x)[0]<0?t[1]-u-i:u-t[1])}nt.invert=nt;var St=dt((function(){return!0}),(function(n){var t,r=NaN,e=NaN,a=NaN;return{lineStart:function(){n.lineStart(),t=1},point:function(c,l){var f=c>0?o:-o,h=s(c-r);s(h-o)<i?(n.point(r,e=(e+l)/2>0?u:-u),n.point(a,e),n.lineEnd(),n.lineStart(),n.point(f,e),n.point(c,e),t=0):a!==f&&h>=o&&(s(r-a)<i&&(r-=a*i),s(c-f)<i&&(c-=f*i),e=function(n,t,r,e){var o,u,a=m(n-r);return s(a)>i?p((m(t)*(u=g(e))*m(r)-m(e)*(o=g(t))*m(n))/(o*u*a)):(t+e)/2}(r,e,c,l),n.point(a,e),n.lineEnd(),n.lineStart(),n.point(f,e),t=0),n.point(r=c,e=l),a=f},lineEnd:function(){n.lineEnd(),r=e=NaN},clean:function(){return 2-t}}}),(function(n,t,r,e){var a;if(null==n)a=r*u,e.point(-o,a),e.point(0,a),e.point(o,a),e.point(o,0),e.point(o,-a),e.point(0,-a),e.point(-o,-a),e.point(-o,0),e.point(-o,a);else if(s(n[0]-t[0])>i){var c=n[0]<t[0]?o:-o;a=r*c/2,e.point(-c,a),e.point(0,a),e.point(c,a)}else e.point(t[0],t[1])}),[-o,-u]);function mt(n){var t=g(n),r=2*f,e=t>0,u=s(t)>i;function a(n,r){return g(n)*g(r)>t}function c(n,r,e){var u=[1,0,0],a=cn(un(n),un(r)),c=an(a,a),l=a[0],f=c-l*l;if(!f)return!e&&n;var p=t*c/f,h=-t*l/f,g=cn(u,a),v=fn(u,p);ln(v,fn(a,h));var d=g,E=an(v,d),y=an(d,d),S=E*E-y*(an(v,v)-1);if(!(S<0)){var m=w(S),M=fn(d,(-E-m)/y);if(ln(M,v),M=on(M),!e)return M;var x,_=n[0],N=r[0],R=n[1],C=r[1];N<_&&(x=_,_=N,N=x);var P=N-_,A=s(P-o)<i;if(!A&&C<R&&(x=R,R=C,C=x),A||P<i?A?R+C>0^M[1]<(s(M[0]-_)<i?R:C):R<=M[1]&&M[1]<=C:P>o^(_<=M[0]&&M[0]<=N)){var $=fn(d,(-E+m)/y);return ln($,v),[M,on($)]}}}function l(t,r){var i=e?n:o-n,u=0;return t<-i?u|=1:t>i&&(u|=2),r<-i?u|=4:r>i&&(u|=8),u}return dt(a,(function(n){var t,r,i,f,s;return{lineStart:function(){f=i=!1,s=1},point:function(p,h){var g,v=[p,h],d=a(p,h),E=e?d?0:l(p,h):d?l(p+(p<0?o:-o),h):0;if(!t&&(f=i=d)&&n.lineStart(),d!==i&&(!(g=c(t,v))||ft(t,g)||ft(v,g))&&(v[2]=1),d!==i)s=0,d?(n.lineStart(),g=c(v,t),n.point(g[0],g[1])):(g=c(t,v),n.point(g[0],g[1],2),n.lineEnd()),t=g;else if(u&&t&&e^d){var y;E&r||!(y=c(v,t,!0))||(s=0,e?(n.lineStart(),n.point(y[0][0],y[0][1]),n.point(y[1][0],y[1][1]),n.lineEnd()):(n.point(y[1][0],y[1][1]),n.lineEnd(),n.lineStart(),n.point(y[0][0],y[0][1],3)))}!d||t&&ft(t,v)||n.point(v[0],v[1]),t=v,i=d,r=E},lineEnd:function(){i&&n.lineEnd(),t=null},clean:function(){return s|(f&&i)<<1}}}),(function(t,i,e,o){ut(o,n,r,e,t,i)}),e?[0,-n]:[-o,n-o])}var Mt,wt,xt,_t,Nt=1e9,Rt=-Nt;function Ct(n,r,e,o){function u(t,i){return n<=t&&t<=e&&r<=i&&i<=o}function a(t,i,u,a){var l=0,s=0;if(null==t||(l=c(t,u))!==(s=c(i,u))||f(t,i)<0^u>0)do{a.point(0===l||3===l?n:e,l>1?o:r)}while((l=(l+u+4)%4)!==s);else a.point(i[0],i[1])}function c(t,o){return s(t[0]-n)<i?o>0?0:3:s(t[0]-e)<i?o>0?2:1:s(t[1]-r)<i?o>0?1:0:o>0?3:2}function l(n,t){return f(n.x,t.x)}function f(n,t){var r=c(n,1),i=c(t,1);return r!==i?r-i:0===r?t[1]-n[1]:1===r?n[0]-t[0]:2===r?n[1]-t[1]:t[0]-n[0]}return function(i){var c,f,s,p,h,g,v,d,E,y,S,m=i,M=lt(),w={point:x,lineStart:function(){w.point=_,f&&f.push(s=[]);y=!0,E=!1,v=d=NaN},lineEnd:function(){c&&(_(p,h),g&&E&&M.rejoin(),c.push(M.result()));w.point=x,E&&m.lineEnd()},polygonStart:function(){m=M,c=[],f=[],S=!0},polygonEnd:function(){var r=function(){for(var t=0,r=0,i=f.length;r<i;++r)for(var e,u,a=f[r],c=1,l=a.length,s=a[0],p=s[0],h=s[1];c<l;++c)e=p,u=h,p=(s=a[c])[0],h=s[1],u<=o?h>o&&(p-e)*(o-u)>(h-u)*(n-e)&&++t:h<=o&&(p-e)*(o-u)<(h-u)*(n-e)&&--t;return t}(),e=S&&r,u=(c=t(c)).length;(e||u)&&(i.polygonStart(),e&&(i.lineStart(),a(null,null,1,i),i.lineEnd()),u&&pt(c,l,r,a,i),i.polygonEnd());m=i,c=f=s=null}};function x(n,t){u(n,t)&&m.point(n,t)}function _(t,i){var a=u(t,i);if(f&&s.push([t,i]),y)p=t,h=i,g=a,y=!1,a&&(m.lineStart(),m.point(t,i));else if(a&&E)m.point(t,i);else{var c=[v=Math.max(Rt,Math.min(Nt,v)),d=Math.max(Rt,Math.min(Nt,d))],l=[t=Math.max(Rt,Math.min(Nt,t)),i=Math.max(Rt,Math.min(Nt,i))];!function(n,t,r,i,e,o){var u,a=n[0],c=n[1],l=0,f=1,s=t[0]-a,p=t[1]-c;if(u=r-a,s||!(u>0)){if(u/=s,s<0){if(u<l)return;u<f&&(f=u)}else if(s>0){if(u>f)return;u>l&&(l=u)}if(u=e-a,s||!(u<0)){if(u/=s,s<0){if(u>f)return;u>l&&(l=u)}else if(s>0){if(u<l)return;u<f&&(f=u)}if(u=i-c,p||!(u>0)){if(u/=p,p<0){if(u<l)return;u<f&&(f=u)}else if(p>0){if(u>f)return;u>l&&(l=u)}if(u=o-c,p||!(u<0)){if(u/=p,p<0){if(u>f)return;u>l&&(l=u)}else if(p>0){if(u<l)return;u<f&&(f=u)}return l>0&&(n[0]=a+l*s,n[1]=c+l*p),f<1&&(t[0]=a+f*s,t[1]=c+f*p),!0}}}}}(c,l,n,r,e,o)?a&&(m.lineStart(),m.point(t,i),S=!1):(E||(m.lineStart(),m.point(c[0],c[1])),m.point(l[0],l[1]),a||m.lineEnd(),S=!1)}v=t,d=i,E=a}return w}}function Pt(){var n,t,r,i=0,e=0,o=960,u=500;return r={stream:function(r){return n&&t===r?n:n=Ct(i,e,o,u)(t=r)},extent:function(a){return arguments.length?(i=+a[0][0],e=+a[0][1],o=+a[1][0],u=+a[1][1],n=t=null,r):[[i,e],[o,u]]}}}var At={sphere:C,point:C,lineStart:function(){At.point=qt,At.lineEnd=$t},lineEnd:C,polygonStart:C,polygonEnd:C};function $t(){At.point=At.lineEnd=C}function qt(n,t){wt=n*=f,xt=m(t*=f),_t=g(t),At.point=zt}function zt(n,t){n*=f;var r=m(t*=f),i=g(t),e=s(n-wt),o=g(e),u=i*m(e),a=_t*r-xt*i*o,c=xt*r+_t*i*o;Mt.add(h(w(u*u+a*a),c)),wt=n,xt=r,_t=i}function jt(t){return Mt=new n,j(t,At),+Mt}var Lt=[null,null],bt={type:"LineString",coordinates:Lt};function Gt(n,t){return Lt[0]=n,Lt[1]=t,jt(bt)}var Ot={Feature:function(n,t){return kt(n.geometry,t)},FeatureCollection:function(n,t){for(var r=n.features,i=-1,e=r.length;++i<e;)if(kt(r[i].geometry,t))return!0;return!1}},Tt={Sphere:function(){return!0},Point:function(n,t){return Ft(n.coordinates,t)},MultiPoint:function(n,t){for(var r=n.coordinates,i=-1,e=r.length;++i<e;)if(Ft(r[i],t))return!0;return!1},LineString:function(n,t){return Ht(n.coordinates,t)},MultiLineString:function(n,t){for(var r=n.coordinates,i=-1,e=r.length;++i<e;)if(Ht(r[i],t))return!0;return!1},Polygon:function(n,t){return It(n.coordinates,t)},MultiPolygon:function(n,t){for(var r=n.coordinates,i=-1,e=r.length;++i<e;)if(It(r[i],t))return!0;return!1},GeometryCollection:function(n,t){for(var r=n.geometries,i=-1,e=r.length;++i<e;)if(kt(r[i],t))return!0;return!1}};function kt(n,t){return!(!n||!Tt.hasOwnProperty(n.type))&&Tt[n.type](n,t)}function Ft(n,t){return 0===Gt(n,t)}function Ht(n,t){for(var r,i,o,u=0,a=n.length;u<a;u++){if(0===(i=Gt(n[u],t)))return!0;if(u>0&&(o=Gt(n[u],n[u-1]))>0&&r<=o&&i<=o&&(r+i-o)*(1-Math.pow((r-i)/o,2))<e*o)return!0;r=i}return!1}function It(n,t){return!!vt(n.map(Wt),Xt(t))}function Wt(n){return(n=n.map(Xt)).pop(),n}function Xt(n){return[n[0]*f,n[1]*f]}function Yt(n,t){return(n&&Ot.hasOwnProperty(n.type)?Ot[n.type]:kt)(n,t)}function Bt(n,t,e){var o=r(n,t-i,e).concat(t);return function(n){return o.map((function(t){return[n,t]}))}}function Dt(n,t,e){var o=r(n,t-i,e).concat(t);return function(n){return o.map((function(t){return[t,n]}))}}function Ut(){var n,t,e,o,u,a,c,l,f,p,h,g,d=10,E=d,y=90,S=360,m=2.5;function M(){return{type:"MultiLineString",coordinates:w()}}function w(){return r(v(o/y)*y,e,y).map(h).concat(r(v(l/S)*S,c,S).map(g)).concat(r(v(t/d)*d,n,d).filter((function(n){return s(n%y)>i})).map(f)).concat(r(v(a/E)*E,u,E).filter((function(n){return s(n%S)>i})).map(p))}return M.lines=function(){return w().map((function(n){return{type:"LineString",coordinates:n}}))},M.outline=function(){return{type:"Polygon",coordinates:[h(o).concat(g(c).slice(1),h(e).reverse().slice(1),g(l).reverse().slice(1))]}},M.extent=function(n){return arguments.length?M.extentMajor(n).extentMinor(n):M.extentMinor()},M.extentMajor=function(n){return arguments.length?(o=+n[0][0],e=+n[1][0],l=+n[0][1],c=+n[1][1],o>e&&(n=o,o=e,e=n),l>c&&(n=l,l=c,c=n),M.precision(m)):[[o,l],[e,c]]},M.extentMinor=function(r){return arguments.length?(t=+r[0][0],n=+r[1][0],a=+r[0][1],u=+r[1][1],t>n&&(r=t,t=n,n=r),a>u&&(r=a,a=u,u=r),M.precision(m)):[[t,a],[n,u]]},M.step=function(n){return arguments.length?M.stepMajor(n).stepMinor(n):M.stepMinor()},M.stepMajor=function(n){return arguments.length?(y=+n[0],S=+n[1],M):[y,S]},M.stepMinor=function(n){return arguments.length?(d=+n[0],E=+n[1],M):[d,E]},M.precision=function(r){return arguments.length?(m=+r,f=Bt(a,u,90),p=Dt(t,n,m),h=Bt(l,c,90),g=Dt(o,e,m),M):m},M.extentMajor([[-180,-90+i],[180,90-i]]).extentMinor([[-180,-80-i],[180,80+i]])}function Zt(){return Ut()()}function Jt(n,t){var r=n[0]*f,i=n[1]*f,e=t[0]*f,o=t[1]*f,u=g(i),a=m(i),c=g(o),s=m(o),p=u*g(r),v=u*m(r),d=c*g(e),E=c*m(e),y=2*N(w(R(o-i)+u*c*R(e-r))),S=m(y),M=y?function(n){var t=m(n*=y)/S,r=m(y-n)/S,i=r*p+t*d,e=r*v+t*E,o=r*a+t*s;return[h(e,i)*l,h(o,w(i*i+e*e))*l]}:function(){return[r*l,i*l]};return M.distance=y,M}var Kt,Qt,Vt,nr,tr=n=>n,rr=new n,ir=new n,er={point:C,lineStart:C,lineEnd:C,polygonStart:function(){er.lineStart=or,er.lineEnd=cr},polygonEnd:function(){er.lineStart=er.lineEnd=er.point=C,rr.add(s(ir)),ir=new n},result:function(){var t=rr/2;return rr=new n,t}};function or(){er.point=ur}function ur(n,t){er.point=ar,Kt=Vt=n,Qt=nr=t}function ar(n,t){ir.add(nr*n-Vt*t),Vt=n,nr=t}function cr(){ar(Kt,Qt)}var lr=1/0,fr=lr,sr=-lr,pr=sr,hr={point:function(n,t){n<lr&&(lr=n);n>sr&&(sr=n);t<fr&&(fr=t);t>pr&&(pr=t)},lineStart:C,lineEnd:C,polygonStart:C,polygonEnd:C,result:function(){var n=[[lr,fr],[sr,pr]];return sr=pr=-(fr=lr=1/0),n}};var gr,vr,dr,Er,yr=0,Sr=0,mr=0,Mr=0,wr=0,xr=0,_r=0,Nr=0,Rr=0,Cr={point:Pr,lineStart:Ar,lineEnd:zr,polygonStart:function(){Cr.lineStart=jr,Cr.lineEnd=Lr},polygonEnd:function(){Cr.point=Pr,Cr.lineStart=Ar,Cr.lineEnd=zr},result:function(){var n=Rr?[_r/Rr,Nr/Rr]:xr?[Mr/xr,wr/xr]:mr?[yr/mr,Sr/mr]:[NaN,NaN];return yr=Sr=mr=Mr=wr=xr=_r=Nr=Rr=0,n}};function Pr(n,t){yr+=n,Sr+=t,++mr}function Ar(){Cr.point=$r}function $r(n,t){Cr.point=qr,Pr(dr=n,Er=t)}function qr(n,t){var r=n-dr,i=t-Er,e=w(r*r+i*i);Mr+=e*(dr+n)/2,wr+=e*(Er+t)/2,xr+=e,Pr(dr=n,Er=t)}function zr(){Cr.point=Pr}function jr(){Cr.point=br}function Lr(){Gr(gr,vr)}function br(n,t){Cr.point=Gr,Pr(gr=dr=n,vr=Er=t)}function Gr(n,t){var r=n-dr,i=t-Er,e=w(r*r+i*i);Mr+=e*(dr+n)/2,wr+=e*(Er+t)/2,xr+=e,_r+=(e=Er*n-dr*t)*(dr+n),Nr+=e*(Er+t),Rr+=3*e,Pr(dr=n,Er=t)}function Or(n){this._context=n}Or.prototype={_radius:4.5,pointRadius:function(n){return this._radius=n,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(n,t){switch(this._point){case 0:this._context.moveTo(n,t),this._point=1;break;case 1:this._context.lineTo(n,t);break;default:this._context.moveTo(n+this._radius,t),this._context.arc(n,t,this._radius,0,c)}},result:C};var Tr,kr,Fr,Hr,Ir,Wr=new n,Xr={point:C,lineStart:function(){Xr.point=Yr},lineEnd:function(){Tr&&Br(kr,Fr),Xr.point=C},polygonStart:function(){Tr=!0},polygonEnd:function(){Tr=null},result:function(){var t=+Wr;return Wr=new n,t}};function Yr(n,t){Xr.point=Br,kr=Hr=n,Fr=Ir=t}function Br(n,t){Hr-=n,Ir-=t,Wr.add(w(Hr*Hr+Ir*Ir)),Hr=n,Ir=t}let Dr,Ur,Zr,Jr;class Kr{constructor(n){this._append=null==n?Qr:function(n){const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);if(t>15)return Qr;if(t!==Dr){const n=10**t;Dr=t,Ur=function(t){let r=1;this._+=t[0];for(const i=t.length;r<i;++r)this._+=Math.round(arguments[r]*n)/n+t[r]}}return Ur}(n),this._radius=4.5,this._=""}pointRadius(n){return this._radius=+n,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){0===this._line&&(this._+="Z"),this._point=NaN}point(n,t){switch(this._point){case 0:this._append`M${n},${t}`,this._point=1;break;case 1:this._append`L${n},${t}`;break;default:if(this._append`M${n},${t}`,this._radius!==Zr||this._append!==Ur){const n=this._radius,t=this._;this._="",this._append`m0,${n}a${n},${n} 0 1,1 0,${-2*n}a${n},${n} 0 1,1 0,${2*n}z`,Zr=n,Ur=this._append,Jr=this._,this._=t}this._+=Jr}}result(){const n=this._;return this._="",n.length?n:null}}function Qr(n){let t=1;this._+=n[0];for(const r=n.length;t<r;++t)this._+=arguments[t]+n[t]}function Vr(n,t){let r,i,e=3,o=4.5;function u(n){return n&&("function"==typeof o&&i.pointRadius(+o.apply(this,arguments)),j(n,r(i))),i.result()}return u.area=function(n){return j(n,r(er)),er.result()},u.measure=function(n){return j(n,r(Xr)),Xr.result()},u.bounds=function(n){return j(n,r(hr)),hr.result()},u.centroid=function(n){return j(n,r(Cr)),Cr.result()},u.projection=function(t){return arguments.length?(r=null==t?(n=null,tr):(n=t).stream,u):n},u.context=function(n){return arguments.length?(i=null==n?(t=null,new Kr(e)):new Or(t=n),"function"!=typeof o&&i.pointRadius(o),u):t},u.pointRadius=function(n){return arguments.length?(o="function"==typeof n?n:(i.pointRadius(+n),+n),u):o},u.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return null===t&&(i=new Kr(e)),u},u.projection(n).digits(e).context(t)}function ni(n){return{stream:ti(n)}}function ti(n){return function(t){var r=new ri;for(var i in n)r[i]=n[i];return r.stream=t,r}}function ri(){}function ii(n,t,r){var i=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),null!=i&&n.clipExtent(null),j(r,n.stream(hr)),t(hr.result()),null!=i&&n.clipExtent(i),n}function ei(n,t,r){return ii(n,(function(r){var i=t[1][0]-t[0][0],e=t[1][1]-t[0][1],o=Math.min(i/(r[1][0]-r[0][0]),e/(r[1][1]-r[0][1])),u=+t[0][0]+(i-o*(r[1][0]+r[0][0]))/2,a=+t[0][1]+(e-o*(r[1][1]+r[0][1]))/2;n.scale(150*o).translate([u,a])}),r)}function oi(n,t,r){return ei(n,[[0,0],t],r)}function ui(n,t,r){return ii(n,(function(r){var i=+t,e=i/(r[1][0]-r[0][0]),o=(i-e*(r[1][0]+r[0][0]))/2,u=-e*r[0][1];n.scale(150*e).translate([o,u])}),r)}function ai(n,t,r){return ii(n,(function(r){var i=+t,e=i/(r[1][1]-r[0][1]),o=-e*r[0][0],u=(i-e*(r[1][1]+r[0][1]))/2;n.scale(150*e).translate([o,u])}),r)}ri.prototype={constructor:ri,point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var ci=16,li=g(30*f);function fi(n,t){return+t?function(n,t){function r(e,o,u,a,c,l,f,p,g,v,d,E,y,S){var m=f-e,M=p-o,x=m*m+M*M;if(x>4*t&&y--){var _=a+v,R=c+d,C=l+E,P=w(_*_+R*R+C*C),A=N(C/=P),$=s(s(C)-1)<i||s(u-g)<i?(u+g)/2:h(R,_),q=n($,A),z=q[0],j=q[1],L=z-e,b=j-o,G=M*L-m*b;(G*G/x>t||s((m*L+M*b)/x-.5)>.3||a*v+c*d+l*E<li)&&(r(e,o,u,a,c,l,z,j,$,_/=P,R/=P,C,y,S),S.point(z,j),r(z,j,$,_,R,C,f,p,g,v,d,E,y,S))}}return function(t){var i,e,o,u,a,c,l,f,s,p,h,g,v={point:d,lineStart:E,lineEnd:S,polygonStart:function(){t.polygonStart(),v.lineStart=m},polygonEnd:function(){t.polygonEnd(),v.lineStart=E}};function d(r,i){r=n(r,i),t.point(r[0],r[1])}function E(){f=NaN,v.point=y,t.lineStart()}function y(i,e){var o=un([i,e]),u=n(i,e);r(f,s,l,p,h,g,f=u[0],s=u[1],l=i,p=o[0],h=o[1],g=o[2],ci,t),t.point(f,s)}function S(){v.point=d,t.lineEnd()}function m(){E(),v.point=M,v.lineEnd=w}function M(n,t){y(i=n,t),e=f,o=s,u=p,a=h,c=g,v.point=y}function w(){r(f,s,l,p,h,g,e,o,i,u,a,c,ci,t),v.lineEnd=S,S()}return v}}(n,t):function(n){return ti({point:function(t,r){t=n(t,r),this.stream.point(t[0],t[1])}})}(n)}var si=ti({point:function(n,t){this.stream.point(n*f,t*f)}});function pi(n,t,r,i,e,o){if(!o)return function(n,t,r,i,e){function o(o,u){return[t+n*(o*=i),r-n*(u*=e)]}return o.invert=function(o,u){return[(o-t)/n*i,(r-u)/n*e]},o}(n,t,r,i,e);var u=g(o),a=m(o),c=u*n,l=a*n,f=u/n,s=a/n,p=(a*r-u*t)/n,h=(a*t+u*r)/n;function v(n,o){return[c*(n*=i)-l*(o*=e)+t,r-l*n-c*o]}return v.invert=function(n,t){return[i*(f*n-s*t+p),e*(h-s*n-f*t)]},v}function hi(n){return gi((function(){return n}))()}function gi(n){var t,r,i,e,o,u,a,c,s,p,h=150,g=480,v=250,d=0,E=0,y=0,S=0,m=0,M=0,x=1,_=1,N=null,R=St,C=null,P=tr,A=.5;function $(n){return c(n[0]*f,n[1]*f)}function q(n){return(n=c.invert(n[0],n[1]))&&[n[0]*l,n[1]*l]}function z(){var n=pi(h,0,0,x,_,M).apply(null,t(d,E)),i=pi(h,g-n[0],v-n[1],x,_,M);return r=tt(y,S,m),a=Vn(t,i),c=Vn(r,a),u=fi(a,A),j()}function j(){return s=p=null,$}return $.stream=function(n){return s&&p===n?s:s=si(function(n){return ti({point:function(t,r){var i=n(t,r);return this.stream.point(i[0],i[1])}})}(r)(R(u(P(p=n)))))},$.preclip=function(n){return arguments.length?(R=n,N=void 0,j()):R},$.postclip=function(n){return arguments.length?(P=n,C=i=e=o=null,j()):P},$.clipAngle=function(n){return arguments.length?(R=+n?mt(N=n*f):(N=null,St),j()):N*l},$.clipExtent=function(n){return arguments.length?(P=null==n?(C=i=e=o=null,tr):Ct(C=+n[0][0],i=+n[0][1],e=+n[1][0],o=+n[1][1]),j()):null==C?null:[[C,i],[e,o]]},$.scale=function(n){return arguments.length?(h=+n,z()):h},$.translate=function(n){return arguments.length?(g=+n[0],v=+n[1],z()):[g,v]},$.center=function(n){return arguments.length?(d=n[0]%360*f,E=n[1]%360*f,z()):[d*l,E*l]},$.rotate=function(n){return arguments.length?(y=n[0]%360*f,S=n[1]%360*f,m=n.length>2?n[2]%360*f:0,z()):[y*l,S*l,m*l]},$.angle=function(n){return arguments.length?(M=n%360*f,z()):M*l},$.reflectX=function(n){return arguments.length?(x=n?-1:1,z()):x<0},$.reflectY=function(n){return arguments.length?(_=n?-1:1,z()):_<0},$.precision=function(n){return arguments.length?(u=fi(a,A=n*n),j()):w(A)},$.fitExtent=function(n,t){return ei($,n,t)},$.fitSize=function(n,t){return oi($,n,t)},$.fitWidth=function(n,t){return ui($,n,t)},$.fitHeight=function(n,t){return ai($,n,t)},function(){return t=n.apply(this,arguments),$.invert=t.invert&&q,z()}}function vi(n){var t=0,r=o/3,i=gi(n),e=i(t,r);return e.parallels=function(n){return arguments.length?i(t=n[0]*f,r=n[1]*f):[t*l,r*l]},e}function di(n,t){var r=m(n),e=(r+m(t))/2;if(s(e)<i)return function(n){var t=g(n);function r(n,r){return[n*t,m(r)/t]}return r.invert=function(n,r){return[n/t,N(r*t)]},r}(n);var u=1+r*(2*e-r),a=w(u)/e;function c(n,t){var r=w(u-2*e*m(t))/e;return[r*m(n*=e),a-r*g(n)]}return c.invert=function(n,t){var r=a-t,i=h(n,s(r))*M(r);return r*e<0&&(i-=o*M(n)*M(r)),[i/e,N((u-(n*n+r*r)*e*e)/(2*e))]},c}function Ei(){return vi(di).scale(155.424).center([0,33.6442])}function yi(){return Ei().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Si(){var n,t,r,e,o,u,a=yi(),c=Ei().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=Ei().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f={point:function(n,t){u=[n,t]}};function s(n){var t=n[0],i=n[1];return u=null,r.point(t,i),u||(e.point(t,i),u)||(o.point(t,i),u)}function p(){return n=t=null,s}return s.invert=function(n){var t=a.scale(),r=a.translate(),i=(n[0]-r[0])/t,e=(n[1]-r[1])/t;return(e>=.12&&e<.234&&i>=-.425&&i<-.214?c:e>=.166&&e<.234&&i>=-.214&&i<-.115?l:a).invert(n)},s.stream=function(r){return n&&t===r?n:(i=[a.stream(t=r),c.stream(r),l.stream(r)],e=i.length,n={point:function(n,t){for(var r=-1;++r<e;)i[r].point(n,t)},sphere:function(){for(var n=-1;++n<e;)i[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)i[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)i[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)i[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)i[n].polygonEnd()}});var i,e},s.precision=function(n){return arguments.length?(a.precision(n),c.precision(n),l.precision(n),p()):a.precision()},s.scale=function(n){return arguments.length?(a.scale(n),c.scale(.35*n),l.scale(n),s.translate(a.translate())):a.scale()},s.translate=function(n){if(!arguments.length)return a.translate();var t=a.scale(),u=+n[0],s=+n[1];return r=a.translate(n).clipExtent([[u-.455*t,s-.238*t],[u+.455*t,s+.238*t]]).stream(f),e=c.translate([u-.307*t,s+.201*t]).clipExtent([[u-.425*t+i,s+.12*t+i],[u-.214*t-i,s+.234*t-i]]).stream(f),o=l.translate([u-.205*t,s+.212*t]).clipExtent([[u-.214*t+i,s+.166*t+i],[u-.115*t-i,s+.234*t-i]]).stream(f),p()},s.fitExtent=function(n,t){return ei(s,n,t)},s.fitSize=function(n,t){return oi(s,n,t)},s.fitWidth=function(n,t){return ui(s,n,t)},s.fitHeight=function(n,t){return ai(s,n,t)},s.scale(1070)}function mi(n){return function(t,r){var i=g(t),e=g(r),o=n(i*e);return o===1/0?[2,0]:[o*e*m(t),o*m(r)]}}function Mi(n){return function(t,r){var i=w(t*t+r*r),e=n(i),o=m(e),u=g(e);return[h(t*o,i*u),N(i&&r*o/i)]}}var wi=mi((function(n){return w(2/(1+n))}));function xi(){return hi(wi).scale(124.75).clipAngle(179.999)}wi.invert=Mi((function(n){return 2*N(n/2)}));var _i=mi((function(n){return(n=_(n))&&n/m(n)}));function Ni(){return hi(_i).scale(79.4188).clipAngle(179.999)}function Ri(n,t){return[n,y(x((u+t)/2))]}function Ci(){return Pi(Ri).scale(961/c)}function Pi(n){var t,r,i,e=hi(n),u=e.center,a=e.scale,c=e.translate,l=e.clipExtent,f=null;function s(){var u=o*a(),c=e(ot(e.rotate()).invert([0,0]));return l(null==f?[[c[0]-u,c[1]-u],[c[0]+u,c[1]+u]]:n===Ri?[[Math.max(c[0]-u,f),t],[Math.min(c[0]+u,r),i]]:[[f,Math.max(c[1]-u,t)],[r,Math.min(c[1]+u,i)]])}return e.scale=function(n){return arguments.length?(a(n),s()):a()},e.translate=function(n){return arguments.length?(c(n),s()):c()},e.center=function(n){return arguments.length?(u(n),s()):u()},e.clipExtent=function(n){return arguments.length?(null==n?f=t=r=i=null:(f=+n[0][0],t=+n[0][1],r=+n[1][0],i=+n[1][1]),s()):null==f?null:[[f,t],[r,i]]},s()}function Ai(n){return x((u+n)/2)}function $i(n,t){var r=g(n),e=n===t?m(n):y(r/g(t))/y(Ai(t)/Ai(n)),a=r*S(Ai(n),e)/e;if(!e)return Ri;function c(n,t){a>0?t<-u+i&&(t=-u+i):t>u-i&&(t=u-i);var r=a/S(Ai(t),e);return[r*m(e*n),a-r*g(e*n)]}return c.invert=function(n,t){var r=a-t,i=M(e)*w(n*n+r*r),c=h(n,s(r))*M(r);return r*e<0&&(c-=o*M(n)*M(r)),[c/e,2*p(S(a/i,1/e))-u]},c}function qi(){return vi($i).scale(109.5).parallels([30,30])}function zi(n,t){return[n,t]}function ji(){return hi(zi).scale(152.63)}function Li(n,t){var r=g(n),e=n===t?m(n):(r-g(t))/(t-n),u=r/e+n;if(s(e)<i)return zi;function a(n,t){var r=u-t,i=e*n;return[r*m(i),u-r*g(i)]}return a.invert=function(n,t){var r=u-t,i=h(n,s(r))*M(r);return r*e<0&&(i-=o*M(n)*M(r)),[i/e,u-M(e)*w(n*n+r*r)]},a}function bi(){return vi(Li).scale(131.154).center([0,13.9389])}_i.invert=Mi((function(n){return n})),Ri.invert=function(n,t){return[n,2*p(d(t))-u]},zi.invert=zi;var Gi=1.340264,Oi=-.081106,Ti=893e-6,ki=.003796,Fi=w(3)/2;function Hi(n,t){var r=N(Fi*m(t)),i=r*r,e=i*i*i;return[n*g(r)/(Fi*(Gi+3*Oi*i+e*(7*Ti+9*ki*i))),r*(Gi+Oi*i+e*(Ti+ki*i))]}function Ii(){return hi(Hi).scale(177.158)}function Wi(n,t){var r=g(t),i=g(n)*r;return[r*m(n)/i,m(t)/i]}function Xi(){return hi(Wi).scale(144.049).clipAngle(60)}function Yi(){var n,t,r,i,e,o,u,a=1,c=0,s=0,p=1,h=1,v=0,d=null,E=1,y=1,S=ti({point:function(n,t){var r=x([n,t]);this.stream.point(r[0],r[1])}}),M=tr;function w(){return E=a*p,y=a*h,o=u=null,x}function x(r){var i=r[0]*E,e=r[1]*y;if(v){var o=e*n-i*t;i=i*n+e*t,e=o}return[i+c,e+s]}return x.invert=function(r){var i=r[0]-c,e=r[1]-s;if(v){var o=e*n+i*t;i=i*n-e*t,e=o}return[i/E,e/y]},x.stream=function(n){return o&&u===n?o:o=S(M(u=n))},x.postclip=function(n){return arguments.length?(M=n,d=r=i=e=null,w()):M},x.clipExtent=function(n){return arguments.length?(M=null==n?(d=r=i=e=null,tr):Ct(d=+n[0][0],r=+n[0][1],i=+n[1][0],e=+n[1][1]),w()):null==d?null:[[d,r],[i,e]]},x.scale=function(n){return arguments.length?(a=+n,w()):a},x.translate=function(n){return arguments.length?(c=+n[0],s=+n[1],w()):[c,s]},x.angle=function(r){return arguments.length?(t=m(v=r%360*f),n=g(v),w()):v*l},x.reflectX=function(n){return arguments.length?(p=n?-1:1,w()):p<0},x.reflectY=function(n){return arguments.length?(h=n?-1:1,w()):h<0},x.fitExtent=function(n,t){return ei(x,n,t)},x.fitSize=function(n,t){return oi(x,n,t)},x.fitWidth=function(n,t){return ui(x,n,t)},x.fitHeight=function(n,t){return ai(x,n,t)},x}function Bi(n,t){var r=t*t,i=r*r;return[n*(.8707-.131979*r+i*(i*(.003971*r-.001529*i)-.013791)),t*(1.007226+r*(.015085+i*(.028874*r-.044475-.005916*i)))]}function Di(){return hi(Bi).scale(175.295)}function Ui(n,t){return[g(t)*m(n),m(t)]}function Zi(){return hi(Ui).scale(249.5).clipAngle(90+i)}function Ji(n,t){var r=g(t),i=1+g(n)*r;return[r*m(n)/i,m(t)/i]}function Ki(){return hi(Ji).scale(250).clipAngle(142)}function Qi(n,t){return[y(x((u+t)/2)),-n]}function Vi(){var n=Pi(Qi),t=n.center,r=n.rotate;return n.center=function(n){return arguments.length?t([-n[1],n[0]]):[(n=t())[1],-n[0]]},n.rotate=function(n){return arguments.length?r([n[0],n[1],n.length>2?n[2]+90:90]):[(n=r())[0],n[1],n[2]-90]},r([0,0,90]).scale(159.155)}Hi.invert=function(n,t){for(var r,i=t,o=i*i,u=o*o*o,a=0;a<12&&(u=(o=(i-=r=(i*(Gi+Oi*o+u*(Ti+ki*o))-t)/(Gi+3*Oi*o+u*(7*Ti+9*ki*o)))*i)*o*o,!(s(r)<e));++a);return[Fi*n*(Gi+3*Oi*o+u*(7*Ti+9*ki*o))/g(i),N(m(i)/Fi)]},Wi.invert=Mi(p),Bi.invert=function(n,t){var r,e=t,o=25;do{var u=e*e,a=u*u;e-=r=(e*(1.007226+u*(.015085+a*(.028874*u-.044475-.005916*a)))-t)/(1.007226+u*(.045255+a*(.259866*u-.311325-.005916*11*a)))}while(s(r)>i&&--o>0);return[n/(.8707+(u=e*e)*(u*(u*u*u*(.003971-.001529*u)-.013791)-.131979)),e]},Ui.invert=Mi(N),Ji.invert=Mi((function(n){return 2*p(n)})),Qi.invert=function(n,t){return[-t,2*p(d(n))-u]};export{yi as geoAlbers,Si as geoAlbersUsa,en as geoArea,xi as geoAzimuthalEqualArea,wi as geoAzimuthalEqualAreaRaw,Ni as geoAzimuthalEquidistant,_i as geoAzimuthalEquidistantRaw,kn as geoBounds,Kn as geoCentroid,ct as geoCircle,St as geoClipAntimeridian,mt as geoClipCircle,Pt as geoClipExtent,Ct as geoClipRectangle,qi as geoConicConformal,$i as geoConicConformalRaw,Ei as geoConicEqualArea,di as geoConicEqualAreaRaw,bi as geoConicEquidistant,Li as geoConicEquidistantRaw,Yt as geoContains,Gt as geoDistance,Ii as geoEqualEarth,Hi as geoEqualEarthRaw,ji as geoEquirectangular,zi as geoEquirectangularRaw,Xi as geoGnomonic,Wi as geoGnomonicRaw,Ut as geoGraticule,Zt as geoGraticule10,Yi as geoIdentity,Jt as geoInterpolate,jt as geoLength,Ci as geoMercator,Ri as geoMercatorRaw,Di as geoNaturalEarth1,Bi as geoNaturalEarth1Raw,Zi as geoOrthographic,Ui as geoOrthographicRaw,Vr as geoPath,hi as geoProjection,gi as geoProjectionMutator,ot as geoRotation,Ki as geoStereographic,Ji as geoStereographicRaw,j as geoStream,ni as geoTransform,Vi as geoTransverseMercator,Qi as geoTransverseMercatorRaw};export default null;
_npm/[email protected]/f1db2593.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ function n(n,r){return n.parent===r.parent?1:2}function r(n,r){return n+r.x}function t(n,r){return Math.max(n,r.y)}function e(){var e=n,u=1,i=1,o=!1;function a(n){var a,f=0;n.eachAfter((function(n){var u=n.children;u?(n.x=function(n){return n.reduce(r,0)/n.length}(u),n.y=function(n){return 1+n.reduce(t,0)}(u)):(n.x=a?f+=e(n,a):0,n.y=0,a=n)}));var c=function(n){for(var r;r=n.children;)n=r[0];return n}(n),h=function(n){for(var r;r=n.children;)n=r[r.length-1];return n}(n),l=c.x-e(c,h)/2,p=h.x+e(h,c)/2;return n.eachAfter(o?function(r){r.x=(r.x-n.x)*u,r.y=(n.y-r.y)*i}:function(r){r.x=(r.x-l)/(p-l)*u,r.y=(1-(n.y?r.y/n.y:1))*i})}return a.separation=function(n){return arguments.length?(e=n,a):e},a.size=function(n){return arguments.length?(o=!1,u=+n[0],i=+n[1],a):o?null:[u,i]},a.nodeSize=function(n){return arguments.length?(o=!0,u=+n[0],i=+n[1],a):o?[u,i]:null},a}function u(n){var r=0,t=n.children,e=t&&t.length;if(e)for(;--e>=0;)r+=t[e].value;else r=1;n.value=r}function i(n,r){n instanceof Map?(n=[void 0,n],void 0===r&&(r=a)):void 0===r&&(r=o);for(var t,e,u,i,f,l=new h(n),p=[l];t=p.pop();)if((u=r(t.data))&&(f=(u=Array.from(u)).length))for(t.children=u,i=f-1;i>=0;--i)p.push(e=u[i]=new h(u[i])),e.parent=t,e.depth=t.depth+1;return l.eachBefore(c)}function o(n){return n.children}function a(n){return Array.isArray(n)?n[1]:null}function f(n){void 0!==n.data.value&&(n.value=n.data.value),n.data=n.data.data}function c(n){var r=0;do{n.height=r}while((n=n.parent)&&n.height<++r)}function h(n){this.data=n,this.depth=this.height=0,this.parent=null}function l(n){return null==n?null:p(n)}function p(n){if("function"!=typeof n)throw new Error;return n}function s(){return 0}function d(n){return function(){return n}}h.prototype=i.prototype={constructor:h,count:function(){return this.eachAfter(u)},each:function(n,r){let t=-1;for(const e of this)n.call(r,e,++t,this);return this},eachAfter:function(n,r){for(var t,e,u,i=this,o=[i],a=[],f=-1;i=o.pop();)if(a.push(i),t=i.children)for(e=0,u=t.length;e<u;++e)o.push(t[e]);for(;i=a.pop();)n.call(r,i,++f,this);return this},eachBefore:function(n,r){for(var t,e,u=this,i=[u],o=-1;u=i.pop();)if(n.call(r,u,++o,this),t=u.children)for(e=t.length-1;e>=0;--e)i.push(t[e]);return this},find:function(n,r){let t=-1;for(const e of this)if(n.call(r,e,++t,this))return e},sum:function(n){return this.eachAfter((function(r){for(var t=+n(r.data)||0,e=r.children,u=e&&e.length;--u>=0;)t+=e[u].value;r.value=t}))},sort:function(n){return this.eachBefore((function(r){r.children&&r.children.sort(n)}))},path:function(n){for(var r=this,t=function(n,r){if(n===r)return n;var t=n.ancestors(),e=r.ancestors(),u=null;n=t.pop(),r=e.pop();for(;n===r;)u=n,n=t.pop(),r=e.pop();return u}(r,n),e=[r];r!==t;)r=r.parent,e.push(r);for(var u=e.length;n!==t;)e.splice(u,0,n),n=n.parent;return e},ancestors:function(){for(var n=this,r=[n];n=n.parent;)r.push(n);return r},descendants:function(){return Array.from(this)},leaves:function(){var n=[];return this.eachBefore((function(r){r.children||n.push(r)})),n},links:function(){var n=this,r=[];return n.each((function(t){t!==n&&r.push({source:t.parent,target:t})})),r},copy:function(){return i(this).eachBefore(f)},[Symbol.iterator]:function*(){var n,r,t,e,u=this,i=[u];do{for(n=i.reverse(),i=[];u=n.pop();)if(yield u,r=u.children)for(t=0,e=r.length;t<e;++t)i.push(r[t])}while(i.length)}};const v=1664525,x=1013904223,y=4294967296;function g(){let n=1;return()=>(n=(v*n+x)%y)/y}function m(n){return w(n,g())}function w(n,r){for(var t,e,u=0,i=(n=function(n,r){let t,e,u=n.length;for(;u;)e=r()*u--|0,t=n[u],n[u]=n[e],n[e]=t;return n}(Array.from(n),r)).length,o=[];u<i;)t=n[u],e&&z(e,t)?++u:(e=A(o=_(o,t)),u=0);return e}function _(n,r){var t,e;if(B(r,n))return[r];for(t=0;t<n.length;++t)if(M(r,n[t])&&B(q(n[t],r),n))return[n[t],r];for(t=0;t<n.length-1;++t)for(e=t+1;e<n.length;++e)if(M(q(n[t],n[e]),r)&&M(q(n[t],r),n[e])&&M(q(n[e],r),n[t])&&B(E(n[t],n[e],r),n))return[n[t],n[e],r];throw new Error}function M(n,r){var t=n.r-r.r,e=r.x-n.x,u=r.y-n.y;return t<0||t*t<e*e+u*u}function z(n,r){var t=n.r-r.r+1e-9*Math.max(n.r,r.r,1),e=r.x-n.x,u=r.y-n.y;return t>0&&t*t>e*e+u*u}function B(n,r){for(var t=0;t<r.length;++t)if(!z(n,r[t]))return!1;return!0}function A(n){switch(n.length){case 1:return function(n){return{x:n.x,y:n.y,r:n.r}}(n[0]);case 2:return q(n[0],n[1]);case 3:return E(n[0],n[1],n[2])}}function q(n,r){var t=n.x,e=n.y,u=n.r,i=r.x,o=r.y,a=r.r,f=i-t,c=o-e,h=a-u,l=Math.sqrt(f*f+c*c);return{x:(t+i+f/l*h)/2,y:(e+o+c/l*h)/2,r:(l+u+a)/2}}function E(n,r,t){var e=n.x,u=n.y,i=n.r,o=r.x,a=r.y,f=r.r,c=t.x,h=t.y,l=t.r,p=e-o,s=e-c,d=u-a,v=u-h,x=f-i,y=l-i,g=e*e+u*u-i*i,m=g-o*o-a*a+f*f,w=g-c*c-h*h+l*l,_=s*d-p*v,M=(d*w-v*m)/(2*_)-e,z=(v*x-d*y)/_,B=(s*m-p*w)/(2*_)-u,A=(p*y-s*x)/_,q=z*z+A*A-1,E=2*(i+M*z+B*A),b=M*M+B*B-i*i,S=-(Math.abs(q)>1e-6?(E+Math.sqrt(E*E-4*q*b))/(2*q):b/E);return{x:e+M+z*S,y:u+B+A*S,r:S}}function b(n,r,t){var e,u,i,o,a=n.x-r.x,f=n.y-r.y,c=a*a+f*f;c?(u=r.r+t.r,u*=u,o=n.r+t.r,u>(o*=o)?(e=(c+o-u)/(2*c),i=Math.sqrt(Math.max(0,o/c-e*e)),t.x=n.x-e*a-i*f,t.y=n.y-e*f+i*a):(e=(c+u-o)/(2*c),i=Math.sqrt(Math.max(0,u/c-e*e)),t.x=r.x+e*a-i*f,t.y=r.y+e*f+i*a)):(t.x=r.x+t.r,t.y=r.y)}function S(n,r){var t=n.r+r.r-1e-6,e=r.x-n.x,u=r.y-n.y;return t>0&&t*t>e*e+u*u}function k(n){var r=n._,t=n.next._,e=r.r+t.r,u=(r.x*t.r+t.x*r.r)/e,i=(r.y*t.r+t.y*r.r)/e;return u*u+i*i}function I(n){this._=n,this.next=null,this.previous=null}function O(n,r){if(!(o=(t=n,n="object"==typeof t&&"length"in t?t:Array.from(t)).length))return 0;var t,e,u,i,o,a,f,c,h,l,p,s;if((e=n[0]).x=0,e.y=0,!(o>1))return e.r;if(u=n[1],e.x=-u.r,u.x=e.r,u.y=0,!(o>2))return e.r+u.r;b(u,e,i=n[2]),e=new I(e),u=new I(u),i=new I(i),e.next=i.previous=u,u.next=e.previous=i,i.next=u.previous=e;n:for(c=3;c<o;++c){b(e._,u._,i=n[c]),i=new I(i),h=u.next,l=e.previous,p=u._.r,s=e._.r;do{if(p<=s){if(S(h._,i._)){u=h,e.next=u,u.previous=e,--c;continue n}p+=h._.r,h=h.next}else{if(S(l._,i._)){(e=l).next=u,u.previous=e,--c;continue n}s+=l._.r,l=l.previous}}while(h!==l.next);for(i.previous=e,i.next=u,e.next=u.previous=u=i,a=k(e);(i=i.next)!==u;)(f=k(i))<a&&(e=i,a=f);u=e.next}for(e=[u._],i=u;(i=i.next)!==u;)e.push(i._);for(i=w(e,r),c=0;c<o;++c)(e=n[c]).x-=i.x,e.y-=i.y;return i.r}function R(n){return O(n,g()),n}function T(n){return Math.sqrt(n.value)}function j(){var n=null,r=1,t=1,e=s;function u(u){const i=g();return u.x=r/2,u.y=t/2,n?u.eachBefore(L(n)).eachAfter($(e,.5,i)).eachBefore(D(1)):u.eachBefore(L(T)).eachAfter($(s,1,i)).eachAfter($(e,u.r/Math.min(r,t),i)).eachBefore(D(Math.min(r,t)/(2*u.r))),u}return u.radius=function(r){return arguments.length?(n=l(r),u):n},u.size=function(n){return arguments.length?(r=+n[0],t=+n[1],u):[r,t]},u.padding=function(n){return arguments.length?(e="function"==typeof n?n:d(+n),u):e},u}function L(n){return function(r){r.children||(r.r=Math.max(0,+n(r)||0))}}function $(n,r,t){return function(e){if(u=e.children){var u,i,o,a=u.length,f=n(e)*r||0;if(f)for(i=0;i<a;++i)u[i].r+=f;if(o=O(u,t),f)for(i=0;i<a;++i)u[i].r-=f;e.r=o+f}}}function D(n){return function(r){var t=r.parent;r.r*=n,t&&(r.x=t.x+n*r.x,r.y=t.y+n*r.y)}}function N(n){n.x0=Math.round(n.x0),n.y0=Math.round(n.y0),n.x1=Math.round(n.x1),n.y1=Math.round(n.y1)}function C(n,r,t,e,u){for(var i,o=n.children,a=-1,f=o.length,c=n.value&&(e-r)/n.value;++a<f;)(i=o[a]).y0=t,i.y1=u,i.x0=r,i.x1=r+=i.value*c}function F(){var n=1,r=1,t=0,e=!1;function u(u){var i=u.height+1;return u.x0=u.y0=t,u.x1=n,u.y1=r/i,u.eachBefore(function(n,r){return function(e){e.children&&C(e,e.x0,n*(e.depth+1)/r,e.x1,n*(e.depth+2)/r);var u=e.x0,i=e.y0,o=e.x1-t,a=e.y1-t;o<u&&(u=o=(u+o)/2),a<i&&(i=a=(i+a)/2),e.x0=u,e.y0=i,e.x1=o,e.y1=a}}(r,i)),e&&u.eachBefore(N),u}return u.round=function(n){return arguments.length?(e=!!n,u):e},u.size=function(t){return arguments.length?(n=+t[0],r=+t[1],u):[n,r]},u.padding=function(n){return arguments.length?(t=+n,u):t},u}var G={depth:-1},H={},J={};function K(n){return n.id}function P(n){return n.parentId}function Q(){var n,r=K,t=P;function e(e){var u,i,o,a,f,l,p,s,d=Array.from(e),v=r,x=t,y=new Map;if(null!=n){const r=d.map(((r,t)=>function(n){n=`${n}`;let r=n.length;V(n,r-1)&&!V(n,r-2)&&(n=n.slice(0,-1));return"/"===n[0]?n:`/${n}`}(n(r,t,e)))),t=r.map(U),u=new Set(r).add("");for(const n of t)u.has(n)||(u.add(n),r.push(n),t.push(U(n)),d.push(J));v=(n,t)=>r[t],x=(n,r)=>t[r]}for(o=0,u=d.length;o<u;++o)i=d[o],l=d[o]=new h(i),null!=(p=v(i,o,e))&&(p+="")&&(s=l.id=p,y.set(s,y.has(s)?H:l)),null!=(p=x(i,o,e))&&(p+="")&&(l.parent=p);for(o=0;o<u;++o)if(p=(l=d[o]).parent){if(!(f=y.get(p)))throw new Error("missing: "+p);if(f===H)throw new Error("ambiguous: "+p);f.children?f.children.push(l):f.children=[l],l.parent=f}else{if(a)throw new Error("multiple roots");a=l}if(!a)throw new Error("no root");if(null!=n){for(;a.data===J&&1===a.children.length;)a=a.children[0],--u;for(let n=d.length-1;n>=0&&(l=d[n]).data===J;--n)l.data=null}if(a.parent=G,a.eachBefore((function(n){n.depth=n.parent.depth+1,--u})).eachBefore(c),a.parent=null,u>0)throw new Error("cycle");return a}return e.id=function(n){return arguments.length?(r=l(n),e):r},e.parentId=function(n){return arguments.length?(t=l(n),e):t},e.path=function(r){return arguments.length?(n=l(r),e):n},e}function U(n){let r=n.length;if(r<2)return"";for(;--r>1&&!V(n,r););return n.slice(0,r)}function V(n,r){if("/"===n[r]){let t=0;for(;r>0&&"\\"===n[--r];)++t;if(0==(1&t))return!0}return!1}function W(n,r){return n.parent===r.parent?1:2}function X(n){var r=n.children;return r?r[0]:n.t}function Y(n){var r=n.children;return r?r[r.length-1]:n.t}function Z(n,r,t){var e=t/(r.i-n.i);r.c-=e,r.s+=t,n.c+=e,r.z+=t,r.m+=t}function nn(n,r,t){return n.a.parent===r.parent?n.a:t}function rn(n,r){this._=n,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=r}function tn(){var n=W,r=1,t=1,e=null;function u(u){var f=function(n){for(var r,t,e,u,i,o=new rn(n,0),a=[o];r=a.pop();)if(e=r._.children)for(r.children=new Array(i=e.length),u=i-1;u>=0;--u)a.push(t=r.children[u]=new rn(e[u],u)),t.parent=r;return(o.parent=new rn(null,0)).children=[o],o}(u);if(f.eachAfter(i),f.parent.m=-f.z,f.eachBefore(o),e)u.eachBefore(a);else{var c=u,h=u,l=u;u.eachBefore((function(n){n.x<c.x&&(c=n),n.x>h.x&&(h=n),n.depth>l.depth&&(l=n)}));var p=c===h?1:n(c,h)/2,s=p-c.x,d=r/(h.x+p+s),v=t/(l.depth||1);u.eachBefore((function(n){n.x=(n.x+s)*d,n.y=n.depth*v}))}return u}function i(r){var t=r.children,e=r.parent.children,u=r.i?e[r.i-1]:null;if(t){!function(n){for(var r,t=0,e=0,u=n.children,i=u.length;--i>=0;)(r=u[i]).z+=t,r.m+=t,t+=r.s+(e+=r.c)}(r);var i=(t[0].z+t[t.length-1].z)/2;u?(r.z=u.z+n(r._,u._),r.m=r.z-i):r.z=i}else u&&(r.z=u.z+n(r._,u._));r.parent.A=function(r,t,e){if(t){for(var u,i=r,o=r,a=t,f=i.parent.children[0],c=i.m,h=o.m,l=a.m,p=f.m;a=Y(a),i=X(i),a&&i;)f=X(f),(o=Y(o)).a=r,(u=a.z+l-i.z-c+n(a._,i._))>0&&(Z(nn(a,r,e),r,u),c+=u,h+=u),l+=a.m,c+=i.m,p+=f.m,h+=o.m;a&&!Y(o)&&(o.t=a,o.m+=l-h),i&&!X(f)&&(f.t=i,f.m+=c-p,e=r)}return e}(r,u,r.parent.A||e[0])}function o(n){n._.x=n.z+n.parent.m,n.m+=n.parent.m}function a(n){n.x*=r,n.y=n.depth*t}return u.separation=function(r){return arguments.length?(n=r,u):n},u.size=function(n){return arguments.length?(e=!1,r=+n[0],t=+n[1],u):e?null:[r,t]},u.nodeSize=function(n){return arguments.length?(e=!0,r=+n[0],t=+n[1],u):e?[r,t]:null},u}function en(n,r,t,e,u){for(var i,o=n.children,a=-1,f=o.length,c=n.value&&(u-t)/n.value;++a<f;)(i=o[a]).x0=r,i.x1=e,i.y0=t,i.y1=t+=i.value*c}rn.prototype=Object.create(h.prototype);var un=(1+Math.sqrt(5))/2;function on(n,r,t,e,u,i){for(var o,a,f,c,h,l,p,s,d,v,x,y=[],g=r.children,m=0,w=0,_=g.length,M=r.value;m<_;){f=u-t,c=i-e;do{h=g[w++].value}while(!h&&w<_);for(l=p=h,x=h*h*(v=Math.max(c/f,f/c)/(M*n)),d=Math.max(p/x,x/l);w<_;++w){if(h+=a=g[w].value,a<l&&(l=a),a>p&&(p=a),x=h*h*v,(s=Math.max(p/x,x/l))>d){h-=a;break}d=s}y.push(o={value:h,dice:f<c,children:g.slice(m,w)}),o.dice?C(o,t,e,u,M?e+=c*h/M:i):en(o,t,e,M?t+=f*h/M:u,i),M-=h,m=w}return y}var an=function n(r){function t(n,t,e,u,i){on(r,n,t,e,u,i)}return t.ratio=function(r){return n((r=+r)>1?r:1)},t}(un);function fn(){var n=an,r=!1,t=1,e=1,u=[0],i=s,o=s,a=s,f=s,c=s;function h(n){return n.x0=n.y0=0,n.x1=t,n.y1=e,n.eachBefore(l),u=[0],r&&n.eachBefore(N),n}function l(r){var t=u[r.depth],e=r.x0+t,h=r.y0+t,l=r.x1-t,p=r.y1-t;l<e&&(e=l=(e+l)/2),p<h&&(h=p=(h+p)/2),r.x0=e,r.y0=h,r.x1=l,r.y1=p,r.children&&(t=u[r.depth+1]=i(r)/2,e+=c(r)-t,h+=o(r)-t,(l-=a(r)-t)<e&&(e=l=(e+l)/2),(p-=f(r)-t)<h&&(h=p=(h+p)/2),n(r,e,h,l,p))}return h.round=function(n){return arguments.length?(r=!!n,h):r},h.size=function(n){return arguments.length?(t=+n[0],e=+n[1],h):[t,e]},h.tile=function(r){return arguments.length?(n=p(r),h):n},h.padding=function(n){return arguments.length?h.paddingInner(n).paddingOuter(n):h.paddingInner()},h.paddingInner=function(n){return arguments.length?(i="function"==typeof n?n:d(+n),h):i},h.paddingOuter=function(n){return arguments.length?h.paddingTop(n).paddingRight(n).paddingBottom(n).paddingLeft(n):h.paddingTop()},h.paddingTop=function(n){return arguments.length?(o="function"==typeof n?n:d(+n),h):o},h.paddingRight=function(n){return arguments.length?(a="function"==typeof n?n:d(+n),h):a},h.paddingBottom=function(n){return arguments.length?(f="function"==typeof n?n:d(+n),h):f},h.paddingLeft=function(n){return arguments.length?(c="function"==typeof n?n:d(+n),h):c},h}function cn(n,r,t,e,u){var i,o,a=n.children,f=a.length,c=new Array(f+1);for(c[0]=o=i=0;i<f;++i)c[i+1]=o+=a[i].value;!function n(r,t,e,u,i,o,f){if(r>=t-1){var h=a[r];return h.x0=u,h.y0=i,h.x1=o,void(h.y1=f)}var l=c[r],p=e/2+l,s=r+1,d=t-1;for(;s<d;){var v=s+d>>>1;c[v]<p?s=v+1:d=v}p-c[s-1]<c[s]-p&&r+1<s&&--s;var x=c[s]-l,y=e-x;if(o-u>f-i){var g=e?(u*y+o*x)/e:o;n(r,s,x,u,i,g,f),n(s,t,y,g,i,o,f)}else{var m=e?(i*y+f*x)/e:f;n(r,s,x,u,i,o,m),n(s,t,y,u,m,o,f)}}(0,f,n.value,r,t,e,u)}function hn(n,r,t,e,u){(1&n.depth?en:C)(n,r,t,e,u)}var ln=function n(r){function t(n,t,e,u,i){if((o=n._squarify)&&o.ratio===r)for(var o,a,f,c,h,l=-1,p=o.length,s=n.value;++l<p;){for(f=(a=o[l]).children,c=a.value=0,h=f.length;c<h;++c)a.value+=f[c].value;a.dice?C(a,t,e,u,s?e+=(i-e)*a.value/s:i):en(a,t,e,s?t+=(u-t)*a.value/s:u,i),s-=a.value}else n._squarify=o=on(r,n,t,e,u,i),o.ratio=r}return t.ratio=function(r){return n((r=+r)>1?r:1)},t}(un);export{h as Node,e as cluster,i as hierarchy,j as pack,m as packEnclose,R as packSiblings,F as partition,Q as stratify,tn as tree,fn as treemap,cn as treemapBinary,C as treemapDice,ln as treemapResquarify,en as treemapSlice,hn as treemapSliceDice,an as treemapSquarify};export default null;
_npm/[email protected]/034b7bcb.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import{rgb as t,color as n,hsl as r,lab as e,hcl as a,cubehelix as o}from"../[email protected]/2c0cdfa2.js";function u(t,n,r,e,a){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*r+(1+3*t+3*o-3*u)*e+u*a)/6}function i(t){var n=t.length-1;return function(r){var e=r<=0?r=0:r>=1?(r=1,n-1):Math.floor(r*n),a=t[e],o=t[e+1],i=e>0?t[e-1]:2*a-o,c=e<n-1?t[e+2]:2*o-a;return u((r-e/n)*n,i,a,o,c)}}function c(t){var n=t.length;return function(r){var e=Math.floor(((r%=1)<0?++r:r)*n),a=t[(e+n-1)%n],o=t[e%n],i=t[(e+1)%n],c=t[(e+2)%n];return u((r-e/n)*n,a,o,i,c)}}var l=t=>()=>t;function s(t,n){return function(r){return t+r*n}}function f(t,n){var r=n-t;return r?s(t,r>180||r<-180?r-360*Math.round(r/360):r):l(isNaN(t)?n:t)}function h(t){return 1==(t=+t)?p:function(n,r){return r-n?function(t,n,r){return t=Math.pow(t,r),n=Math.pow(n,r)-t,r=1/r,function(e){return Math.pow(t+e*n,r)}}(n,r,t):l(isNaN(n)?r:n)}}function p(t,n){var r=n-t;return r?s(t,r):l(isNaN(t)?n:t)}var v=function n(r){var e=h(r);function a(n,r){var a=e((n=t(n)).r,(r=t(r)).r),o=e(n.g,r.g),u=e(n.b,r.b),i=p(n.opacity,r.opacity);return function(t){return n.r=a(t),n.g=o(t),n.b=u(t),n.opacity=i(t),n+""}}return a.gamma=n,a}(1);function g(n){return function(r){var e,a,o=r.length,u=new Array(o),i=new Array(o),c=new Array(o);for(e=0;e<o;++e)a=t(r[e]),u[e]=a.r||0,i[e]=a.g||0,c[e]=a.b||0;return u=n(u),i=n(i),c=n(c),a.opacity=1,function(t){return a.r=u(t),a.g=i(t),a.b=c(t),a+""}}}var M=g(i),x=g(c);function y(t,n){n||(n=[]);var r,e=t?Math.min(n.length,t.length):0,a=n.slice();return function(o){for(r=0;r<e;++r)a[r]=t[r]*(1-o)+n[r]*o;return a}}function b(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function w(t,n){return(b(n)?y:m)(t,n)}function m(t,n){var r,e=n?n.length:0,a=t?Math.min(e,t.length):0,o=new Array(a),u=new Array(e);for(r=0;r<a;++r)o[r]=R(t[r],n[r]);for(;r<e;++r)u[r]=n[r];return function(t){for(r=0;r<a;++r)u[r]=o[r](t);return u}}function d(t,n){var r=new Date;return t=+t,n=+n,function(e){return r.setTime(t*(1-e)+n*e),r}}function X(t,n){return t=+t,n=+n,function(r){return t*(1-r)+n*r}}function A(t,n){var r,e={},a={};for(r in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)r in t?e[r]=R(t[r],n[r]):a[r]=n[r];return function(t){for(r in e)a[r]=e[r](t);return a}}var N=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Y=new RegExp(N.source,"g");function D(t,n){var r,e,a,o=N.lastIndex=Y.lastIndex=0,u=-1,i=[],c=[];for(t+="",n+="";(r=N.exec(t))&&(e=Y.exec(n));)(a=e.index)>o&&(a=n.slice(o,a),i[u]?i[u]+=a:i[++u]=a),(r=r[0])===(e=e[0])?i[u]?i[u]+=e:i[++u]=e:(i[++u]=null,c.push({i:u,x:X(r,e)})),o=Y.lastIndex;return o<n.length&&(a=n.slice(o),i[u]?i[u]+=a:i[++u]=a),i.length<2?c[0]?function(t){return function(n){return t(n)+""}}(c[0].x):function(t){return function(){return t}}(n):(n=c.length,function(t){for(var r,e=0;e<n;++e)i[(r=c[e]).i]=r.x(t);return i.join("")})}function R(t,r){var e,a=typeof r;return null==r||"boolean"===a?l(r):("number"===a?X:"string"===a?(e=n(r))?(r=e,v):D:r instanceof n?v:r instanceof Date?d:b(r)?y:Array.isArray(r)?m:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?A:X)(t,r)}function S(t){var n=t.length;return function(r){return t[Math.max(0,Math.min(n-1,Math.floor(r*n)))]}}function k(t,n){var r=f(+t,+n);return function(t){var n=r(t);return n-360*Math.floor(n/360)}}function j(t,n){return t=+t,n=+n,function(r){return Math.round(t*(1-r)+n*r)}}var q,B=180/Math.PI,C={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function H(t,n,r,e,a,o){var u,i,c;return(u=Math.sqrt(t*t+n*n))&&(t/=u,n/=u),(c=t*r+n*e)&&(r-=t*c,e-=n*c),(i=Math.sqrt(r*r+e*e))&&(r/=i,e/=i,c/=i),t*e<n*r&&(t=-t,n=-n,c=-c,u=-u),{translateX:a,translateY:o,rotate:Math.atan2(n,t)*B,skewX:Math.atan(c)*B,scaleX:u,scaleY:i}}function I(t,n,r,e){function a(t){return t.length?t.pop()+" ":""}return function(o,u){var i=[],c=[];return o=t(o),u=t(u),function(t,e,a,o,u,i){if(t!==a||e!==o){var c=u.push("translate(",null,n,null,r);i.push({i:c-4,x:X(t,a)},{i:c-2,x:X(e,o)})}else(a||o)&&u.push("translate("+a+n+o+r)}(o.translateX,o.translateY,u.translateX,u.translateY,i,c),function(t,n,r,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:r.push(a(r)+"rotate(",null,e)-2,x:X(t,n)})):n&&r.push(a(r)+"rotate("+n+e)}(o.rotate,u.rotate,i,c),function(t,n,r,o){t!==n?o.push({i:r.push(a(r)+"skewX(",null,e)-2,x:X(t,n)}):n&&r.push(a(r)+"skewX("+n+e)}(o.skewX,u.skewX,i,c),function(t,n,r,e,o,u){if(t!==r||n!==e){var i=o.push(a(o)+"scale(",null,",",null,")");u.push({i:i-4,x:X(t,r)},{i:i-2,x:X(n,e)})}else 1===r&&1===e||o.push(a(o)+"scale("+r+","+e+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,i,c),o=u=null,function(t){for(var n,r=-1,e=c.length;++r<e;)i[(n=c[r]).i]=n.x(t);return i.join("")}}}var L=I((function(t){const n=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?C:H(n.a,n.b,n.c,n.d,n.e,n.f)}),"px, ","px)","deg)"),O=I((function(t){return null==t?C:(q||(q=document.createElementNS("http://www.w3.org/2000/svg","g")),q.setAttribute("transform",t),(t=q.transform.baseVal.consolidate())?H((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):C)}),", ",")",")");function E(t){return((t=Math.exp(t))+1/t)/2}var T=function t(n,r,e){function a(t,a){var o,u,i=t[0],c=t[1],l=t[2],s=a[0],f=a[1],h=a[2],p=s-i,v=f-c,g=p*p+v*v;if(g<1e-12)u=Math.log(h/l)/n,o=function(t){return[i+t*p,c+t*v,l*Math.exp(n*t*u)]};else{var M=Math.sqrt(g),x=(h*h-l*l+e*g)/(2*l*r*M),y=(h*h-l*l-e*g)/(2*h*r*M),b=Math.log(Math.sqrt(x*x+1)-x),w=Math.log(Math.sqrt(y*y+1)-y);u=(w-b)/n,o=function(t){var e,a=t*u,o=E(b),s=l/(r*M)*(o*(e=n*a+b,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(b));return[i+s*p,c+s*v,l*o/E(n*a+b)]}}return o.duration=1e3*u*n/Math.SQRT2,o}return a.rho=function(n){var r=Math.max(.001,+n),e=r*r;return t(r,e,e*e)},a}(Math.SQRT2,2,4);function V(t){return function(n,e){var a=t((n=r(n)).h,(e=r(e)).h),o=p(n.s,e.s),u=p(n.l,e.l),i=p(n.opacity,e.opacity);return function(t){return n.h=a(t),n.s=o(t),n.l=u(t),n.opacity=i(t),n+""}}}var Q=V(f),K=V(p);function P(t,n){var r=p((t=e(t)).l,(n=e(n)).l),a=p(t.a,n.a),o=p(t.b,n.b),u=p(t.opacity,n.opacity);return function(n){return t.l=r(n),t.a=a(n),t.b=o(n),t.opacity=u(n),t+""}}function W(t){return function(n,r){var e=t((n=a(n)).h,(r=a(r)).h),o=p(n.c,r.c),u=p(n.l,r.l),i=p(n.opacity,r.opacity);return function(t){return n.h=e(t),n.c=o(t),n.l=u(t),n.opacity=i(t),n+""}}}var Z=W(f),z=W(p);function F(t){return function n(r){function e(n,e){var a=t((n=o(n)).h,(e=o(e)).h),u=p(n.s,e.s),i=p(n.l,e.l),c=p(n.opacity,e.opacity);return function(t){return n.h=a(t),n.s=u(t),n.l=i(Math.pow(t,r)),n.opacity=c(t),n+""}}return r=+r,e.gamma=n,e}(1)}var G=F(f),J=F(p);function U(t,n){void 0===n&&(n=t,t=R);for(var r=0,e=n.length-1,a=n[0],o=new Array(e<0?0:e);r<e;)o[r]=t(a,a=n[++r]);return function(t){var n=Math.max(0,Math.min(e-1,Math.floor(t*=e)));return o[n](t-n)}}function $(t,n){for(var r=new Array(n),e=0;e<n;++e)r[e]=t(e/(n-1));return r}export{R as interpolate,w as interpolateArray,i as interpolateBasis,c as interpolateBasisClosed,G as interpolateCubehelix,J as interpolateCubehelixLong,d as interpolateDate,S as interpolateDiscrete,Z as interpolateHcl,z as interpolateHclLong,Q as interpolateHsl,K as interpolateHslLong,k as interpolateHue,P as interpolateLab,X as interpolateNumber,y as interpolateNumberArray,A as interpolateObject,v as interpolateRgb,M as interpolateRgbBasis,x as interpolateRgbBasisClosed,j as interpolateRound,D as interpolateString,L as interpolateTransformCss,O as interpolateTransformSvg,T as interpolateZoom,U as piecewise,$ as quantize};export default null;
_npm/[email protected]/4bb53638.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ const t=Math.PI,i=2*t,h=1e-6,s=i-h;function _(t){this._+=t[0];for(let i=1,h=t.length;i<h;++i)this._+=arguments[i]+t[i]}class e{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?_:function(t){let i=Math.floor(t);if(!(i>=0))throw new Error(`invalid digits: ${t}`);if(i>15)return _;const h=10**i;return function(t){this._+=t[0];for(let i=1,s=t.length;i<s;++i)this._+=Math.round(arguments[i]*h)/h+t[i]}}(t)}moveTo(t,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+i}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,i){this._append`L${this._x1=+t},${this._y1=+i}`}quadraticCurveTo(t,i,h,s){this._append`Q${+t},${+i},${this._x1=+h},${this._y1=+s}`}bezierCurveTo(t,i,h,s,_,e){this._append`C${+t},${+i},${+h},${+s},${this._x1=+_},${this._y1=+e}`}arcTo(i,s,_,e,n){if(i=+i,s=+s,_=+_,e=+e,(n=+n)<0)throw new Error(`negative radius: ${n}`);let $=this._x1,a=this._y1,r=_-i,o=e-s,p=$-i,l=a-s,u=p*p+l*l;if(null===this._x1)this._append`M${this._x1=i},${this._y1=s}`;else if(u>h)if(Math.abs(l*r-o*p)>h&&n){let x=_-$,d=e-a,y=r*r+o*o,M=x*x+d*d,c=Math.sqrt(y),f=Math.sqrt(u),w=n*Math.tan((t-Math.acos((y+u-M)/(2*c*f)))/2),v=w/f,g=w/c;Math.abs(v-1)>h&&this._append`L${i+v*p},${s+v*l}`,this._append`A${n},${n},0,0,${+(l*x>p*d)},${this._x1=i+g*r},${this._y1=s+g*o}`}else this._append`L${this._x1=i},${this._y1=s}`;else;}arc(_,e,n,$,a,r){if(_=+_,e=+e,r=!!r,(n=+n)<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos($),p=n*Math.sin($),l=_+o,u=e+p,x=1^r,d=r?$-a:a-$;null===this._x1?this._append`M${l},${u}`:(Math.abs(this._x1-l)>h||Math.abs(this._y1-u)>h)&&this._append`L${l},${u}`,n&&(d<0&&(d=d%i+i),d>s?this._append`A${n},${n},0,1,${x},${_-o},${e-p}A${n},${n},0,1,${x},${this._x1=l},${this._y1=u}`:d>h&&this._append`A${n},${n},0,${+(d>=t)},${x},${this._x1=_+n*Math.cos(a)},${this._y1=e+n*Math.sin(a)}`)}rect(t,i,h,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+i}h${h=+h}v${+s}h${-h}Z`}toString(){return this._}}function n(){return new e}function $(t=3){return new e(+t)}n.prototype=e.prototype;export{e as Path,n as path,$ as pathRound};export default null;
_npm/[email protected]/bbafde58.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ function n(n){for(var r,t=-1,o=n.length,e=n[o-1],l=0;++t<o;)r=e,e=n[t],l+=r[1]*e[0]-r[0]*e[1];return l/2}function r(n){for(var r,t,o=-1,e=n.length,l=0,u=0,f=n[e-1],a=0;++o<e;)r=f,f=n[o],a+=t=r[0]*f[1]-f[0]*r[1],l+=(r[0]+f[0])*t,u+=(r[1]+f[1])*t;return[l/(a*=3),u/a]}function t(n,r){return n[0]-r[0]||n[1]-r[1]}function o(n){const r=n.length,t=[0,1];let o,e=2;for(o=2;o<r;++o){for(;e>1&&(l=n[t[e-2]],u=n[t[e-1]],f=n[o],(u[0]-l[0])*(f[1]-l[1])-(u[1]-l[1])*(f[0]-l[0])<=0);)--e;t[e++]=o}var l,u,f;return t.slice(0,e)}function e(n){if((e=n.length)<3)return null;var r,e,l=new Array(e),u=new Array(e);for(r=0;r<e;++r)l[r]=[+n[r][0],+n[r][1],r];for(l.sort(t),r=0;r<e;++r)u[r]=[l[r][0],-l[r][1]];var f=o(l),a=o(u),g=a[0]===f[0],h=a[a.length-1]===f[f.length-1],i=[];for(r=f.length-1;r>=0;--r)i.push(n[l[f[r]][2]]);for(r=+g;r<a.length-h;++r)i.push(n[l[a[r]][2]]);return i}function l(n,r){for(var t,o,e=n.length,l=n[e-1],u=r[0],f=r[1],a=l[0],g=l[1],h=!1,i=0;i<e;++i)t=(l=n[i])[0],(o=l[1])>f!=g>f&&u<(a-t)*(f-o)/(g-o)+t&&(h=!h),a=t,g=o;return h}function u(n){for(var r,t,o=-1,e=n.length,l=n[e-1],u=l[0],f=l[1],a=0;++o<e;)r=u,t=f,r-=u=(l=n[o])[0],t-=f=l[1],a+=Math.hypot(r,t);return a}export{n as polygonArea,r as polygonCentroid,l as polygonContains,e as polygonHull,u as polygonLength};export default null;
_npm/[email protected]/aa5b35a8.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ function t(t,i,r,n){if(isNaN(i)||isNaN(r))return t;var e,h,s,o,a,u,l,_,f,x=t._root,c={data:n},y=t._x0,v=t._y0,d=t._x1,p=t._y1;if(!x)return t._root=c,t;for(;x.length;)if((u=i>=(h=(y+d)/2))?y=h:d=h,(l=r>=(s=(v+p)/2))?v=s:p=s,e=x,!(x=x[_=l<<1|u]))return e[_]=c,t;if(o=+t._x.call(null,x.data),a=+t._y.call(null,x.data),i===o&&r===a)return c.next=x,e?e[_]=c:t._root=c,t;do{e=e?e[_]=new Array(4):t._root=new Array(4),(u=i>=(h=(y+d)/2))?y=h:d=h,(l=r>=(s=(v+p)/2))?v=s:p=s}while((_=l<<1|u)==(f=(a>=s)<<1|o>=h));return e[f]=x,e[_]=c,t}function i(t,i,r,n,e){this.node=t,this.x0=i,this.y0=r,this.x1=n,this.y1=e}function r(t){return t[0]}function n(t){return t[1]}function e(t,i,e){var s=new h(null==i?r:i,null==e?n:e,NaN,NaN,NaN,NaN);return null==t?s:s.addAll(t)}function h(t,i,r,n,e,h){this._x=t,this._y=i,this._x0=r,this._y0=n,this._x1=e,this._y1=h,this._root=void 0}function s(t){for(var i={data:t.data},r=i;t=t.next;)r=r.next={data:t.data};return i}var o=e.prototype=h.prototype;o.copy=function(){var t,i,r=new h(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=s(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var e=0;e<4;++e)(i=n.source[e])&&(i.length?t.push({source:i,target:n.target[e]=new Array(4)}):n.target[e]=s(i));return r},o.add=function(i){const r=+this._x.call(null,i),n=+this._y.call(null,i);return t(this.cover(r,n),r,n,i)},o.addAll=function(i){var r,n,e,h,s=i.length,o=new Array(s),a=new Array(s),u=1/0,l=1/0,_=-1/0,f=-1/0;for(n=0;n<s;++n)isNaN(e=+this._x.call(null,r=i[n]))||isNaN(h=+this._y.call(null,r))||(o[n]=e,a[n]=h,e<u&&(u=e),e>_&&(_=e),h<l&&(l=h),h>f&&(f=h));if(u>_||l>f)return this;for(this.cover(u,l).cover(_,f),n=0;n<s;++n)t(this,o[n],a[n],i[n]);return this},o.cover=function(t,i){if(isNaN(t=+t)||isNaN(i=+i))return this;var r=this._x0,n=this._y0,e=this._x1,h=this._y1;if(isNaN(r))e=(r=Math.floor(t))+1,h=(n=Math.floor(i))+1;else{for(var s,o,a=e-r||1,u=this._root;r>t||t>=e||n>i||i>=h;)switch(o=(i<n)<<1|t<r,(s=new Array(4))[o]=u,u=s,a*=2,o){case 0:e=r+a,h=n+a;break;case 1:r=e-a,h=n+a;break;case 2:e=r+a,n=h-a;break;case 3:r=e-a,n=h-a}this._root&&this._root.length&&(this._root=u)}return this._x0=r,this._y0=n,this._x1=e,this._y1=h,this},o.data=function(){var t=[];return this.visit((function(i){if(!i.length)do{t.push(i.data)}while(i=i.next)})),t},o.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},o.find=function(t,r,n){var e,h,s,o,a,u,l,_=this._x0,f=this._y0,x=this._x1,c=this._y1,y=[],v=this._root;for(v&&y.push(new i(v,_,f,x,c)),null==n?n=1/0:(_=t-n,f=r-n,x=t+n,c=r+n,n*=n);u=y.pop();)if(!(!(v=u.node)||(h=u.x0)>x||(s=u.y0)>c||(o=u.x1)<_||(a=u.y1)<f))if(v.length){var d=(h+o)/2,p=(s+a)/2;y.push(new i(v[3],d,p,o,a),new i(v[2],h,p,d,a),new i(v[1],d,s,o,p),new i(v[0],h,s,d,p)),(l=(r>=p)<<1|t>=d)&&(u=y[y.length-1],y[y.length-1]=y[y.length-1-l],y[y.length-1-l]=u)}else{var w=t-+this._x.call(null,v.data),N=r-+this._y.call(null,v.data),g=w*w+N*N;if(g<n){var A=Math.sqrt(n=g);_=t-A,f=r-A,x=t+A,c=r+A,e=v.data}}return e},o.remove=function(t){if(isNaN(h=+this._x.call(null,t))||isNaN(s=+this._y.call(null,t)))return this;var i,r,n,e,h,s,o,a,u,l,_,f,x=this._root,c=this._x0,y=this._y0,v=this._x1,d=this._y1;if(!x)return this;if(x.length)for(;;){if((u=h>=(o=(c+v)/2))?c=o:v=o,(l=s>=(a=(y+d)/2))?y=a:d=a,i=x,!(x=x[_=l<<1|u]))return this;if(!x.length)break;(i[_+1&3]||i[_+2&3]||i[_+3&3])&&(r=i,f=_)}for(;x.data!==t;)if(n=x,!(x=x.next))return this;return(e=x.next)&&delete x.next,n?(e?n.next=e:delete n.next,this):i?(e?i[_]=e:delete i[_],(x=i[0]||i[1]||i[2]||i[3])&&x===(i[3]||i[2]||i[1]||i[0])&&!x.length&&(r?r[f]=x:this._root=x),this):(this._root=e,this)},o.removeAll=function(t){for(var i=0,r=t.length;i<r;++i)this.remove(t[i]);return this},o.root=function(){return this._root},o.size=function(){var t=0;return this.visit((function(i){if(!i.length)do{++t}while(i=i.next)})),t},o.visit=function(t){var r,n,e,h,s,o,a=[],u=this._root;for(u&&a.push(new i(u,this._x0,this._y0,this._x1,this._y1));r=a.pop();)if(!t(u=r.node,e=r.x0,h=r.y0,s=r.x1,o=r.y1)&&u.length){var l=(e+s)/2,_=(h+o)/2;(n=u[3])&&a.push(new i(n,l,_,s,o)),(n=u[2])&&a.push(new i(n,e,_,l,o)),(n=u[1])&&a.push(new i(n,l,h,s,_)),(n=u[0])&&a.push(new i(n,e,h,l,_))}return this},o.visitAfter=function(t){var r,n=[],e=[];for(this._root&&n.push(new i(this._root,this._x0,this._y0,this._x1,this._y1));r=n.pop();){var h=r.node;if(h.length){var s,o=r.x0,a=r.y0,u=r.x1,l=r.y1,_=(o+u)/2,f=(a+l)/2;(s=h[0])&&n.push(new i(s,o,a,_,f)),(s=h[1])&&n.push(new i(s,_,a,u,f)),(s=h[2])&&n.push(new i(s,o,f,_,l)),(s=h[3])&&n.push(new i(s,_,f,u,l))}e.push(r)}for(;r=e.pop();)t(r.node,r.x0,r.y0,r.x1,r.y1);return this},o.x=function(t){return arguments.length?(this._x=t,this):this._x},o.y=function(t){return arguments.length?(this._y=t,this):this._y};export{e as quadtree};export default null;
_npm/[email protected]/32c7fec2.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ var r=Math.random,n=function r(n){function t(r,t){return r=null==r?0:+r,t=null==t?1:+t,1===arguments.length?(t=r,r=0):t-=r,function(){return n()*t+r}}return t.source=r,t}(r),t=function r(n){function t(r,t){return arguments.length<2&&(t=r,r=0),r=Math.floor(r),t=Math.floor(t)-r,function(){return Math.floor(n()*t+r)}}return t.source=r,t}(r),o=function r(n){function t(r,t){var o,u;return r=null==r?0:+r,t=null==t?1:+t,function(){var a;if(null!=o)a=o,o=null;else do{o=2*n()-1,a=2*n()-1,u=o*o+a*a}while(!u||u>1);return r+t*a*Math.sqrt(-2*Math.log(u)/u)}}return t.source=r,t}(r),u=function r(n){var t=o.source(n);function u(){var r=t.apply(this,arguments);return function(){return Math.exp(r())}}return u.source=r,u}(r),a=function r(n){function t(r){return(r=+r)<=0?()=>0:function(){for(var t=0,o=r;o>1;--o)t+=n();return t+o*n()}}return t.source=r,t}(r),e=function r(n){var t=a.source(n);function o(r){if(0==(r=+r))return n;var o=t(r);return function(){return o()/r}}return o.source=r,o}(r),i=function r(n){function t(r){return function(){return-Math.log1p(-n())/r}}return t.source=r,t}(r),c=function r(n){function t(r){if((r=+r)<0)throw new RangeError("invalid alpha");return r=1/-r,function(){return Math.pow(1-n(),r)}}return t.source=r,t}(r),f=function r(n){function t(r){if((r=+r)<0||r>1)throw new RangeError("invalid p");return function(){return Math.floor(n()+r)}}return t.source=r,t}(r),l=function r(n){function t(r){if((r=+r)<0||r>1)throw new RangeError("invalid p");return 0===r?()=>1/0:1===r?()=>1:(r=Math.log1p(-r),function(){return 1+Math.floor(Math.log1p(-n())/r)})}return t.source=r,t}(r),s=function r(n){var t=o.source(n)();function u(r,o){if((r=+r)<0)throw new RangeError("invalid k");if(0===r)return()=>0;if(o=null==o?1:+o,1===r)return()=>-Math.log1p(-n())*o;var u=(r<1?r+1:r)-1/3,a=1/(3*Math.sqrt(u)),e=r<1?()=>Math.pow(n(),1/r):()=>1;return function(){do{do{var r=t(),i=1+a*r}while(i<=0);i*=i*i;var c=1-n()}while(c>=1-.0331*r*r*r*r&&Math.log(c)>=.5*r*r+u*(1-i+Math.log(i)));return u*i*e()*o}}return u.source=r,u}(r),h=function r(n){var t=s.source(n);function o(r,n){var o=t(r),u=t(n);return function(){var r=o();return 0===r?0:r/(r+u())}}return o.source=r,o}(r),M=function r(n){var t=l.source(n),o=h.source(n);function u(r,n){return r=+r,(n=+n)>=1?()=>r:n<=0?()=>0:function(){for(var u=0,a=r,e=n;a*e>16&&a*(1-e)>16;){var i=Math.floor((a+1)*e),c=o(i,a-i+1)();c<=e?(u+=i,a-=i,e=(e-c)/(1-c)):(a=i-1,e/=c)}for(var f=e<.5,l=t(f?e:1-e),s=l(),h=0;s<=a;++h)s+=l();return u+(f?h:a-h)}}return u.source=r,u}(r),v=function r(n){function t(r,t,o){var u;return 0==(r=+r)?u=r=>-Math.log(r):(r=1/r,u=n=>Math.pow(n,r)),t=null==t?0:+t,o=null==o?1:+o,function(){return t+o*u(-Math.log1p(-n()))}}return t.source=r,t}(r),d=function r(n){function t(r,t){return r=null==r?0:+r,t=null==t?1:+t,function(){return r+t*Math.tan(Math.PI*n())}}return t.source=r,t}(r),m=function r(n){function t(r,t){return r=null==r?0:+r,t=null==t?1:+t,function(){var o=n();return r+t*Math.log(o/(1-o))}}return t.source=r,t}(r),g=function r(n){var t=s.source(n),o=M.source(n);function u(r){return function(){for(var u=0,a=r;a>16;){var e=Math.floor(.875*a),i=t(e)();if(i>a)return u+o(e-1,a/i)();u+=e,a-=i}for(var c=-Math.log1p(-n()),f=0;c<=a;++f)c-=Math.log1p(-n());return u+f}}return u.source=r,u}(r);const p=1/4294967296;function w(r=Math.random()){let n=0|(0<=r&&r<1?r/p:Math.abs(r));return()=>(n=1664525*n+1013904223|0,p*(n>>>0))}export{e as randomBates,f as randomBernoulli,h as randomBeta,M as randomBinomial,d as randomCauchy,i as randomExponential,s as randomGamma,l as randomGeometric,t as randomInt,a as randomIrwinHall,w as randomLcg,u as randomLogNormal,m as randomLogistic,o as randomNormal,c as randomPareto,g as randomPoisson,n as randomUniform,v as randomWeibull};export default null;
_npm/[email protected]/cf9b720b.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import{interpolateRgbBasis as f,interpolateCubehelixLong as e}from"../[email protected]/034b7bcb.js";import{cubehelix as a,rgb as d}from"../[email protected]/2c0cdfa2.js";function c(f){for(var e=f.length/6|0,a=new Array(e),d=0;d<e;)a[d]="#"+f.slice(6*d,6*++d);return a}var b=c("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),t=c("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),r=c("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),n=c("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),s=c("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),o=c("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),m=c("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),h=c("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),l=c("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),p=c("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),i=c("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),u=e=>f(e[e.length-1]),M=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(c),y=u(M),w=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(c),A=u(w),P=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(c),B=u(P),G=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(c),R=u(G),Y=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(c),x=u(Y),O=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(c),g=u(O),v=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(c),S=u(v),C=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(c),I=u(C),D=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(c),T=u(D),k=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(c),V=u(k),W=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(c),j=u(W),q=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(c),z=u(q),E=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(c),F=u(E),H=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(c),J=u(H),K=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(c),L=u(K),N=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(c),Q=u(N),U=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(c),X=u(U),Z=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(c),$=u(Z),_=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(c),ff=u(_),ef=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(c),af=u(ef),df=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(c),cf=u(df),bf=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(c),tf=u(bf),rf=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(c),nf=u(rf),sf=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(c),of=u(sf),mf=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(c),hf=u(mf),lf=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(c),pf=u(lf),uf=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(c),Mf=u(uf);function yf(f){return f=Math.max(0,Math.min(1,f)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-f*(35.34-f*(2381.73-f*(6402.7-f*(7024.72-2710.57*f)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+f*(170.73+f*(52.82-f*(131.46-f*(176.58-67.37*f)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+f*(442.36-f*(2482.43-f*(6167.24-f*(6614.94-2475.67*f)))))))+")"}var wf=e(a(300,.5,0),a(-240,.5,1)),Af=e(a(-100,.75,.35),a(80,1.5,.8)),Pf=e(a(260,.75,.35),a(80,1.5,.8)),Bf=a();function Gf(f){(f<0||f>1)&&(f-=Math.floor(f));var e=Math.abs(f-.5);return Bf.h=360*f-100,Bf.s=1.5-1.5*e,Bf.l=.8-.9*e,Bf+""}var Rf=d(),Yf=Math.PI/3,xf=2*Math.PI/3;function Of(f){var e;return f=(.5-f)*Math.PI,Rf.r=255*(e=Math.sin(f))*e,Rf.g=255*(e=Math.sin(f+Yf))*e,Rf.b=255*(e=Math.sin(f+xf))*e,Rf+""}function gf(f){return f=Math.max(0,Math.min(1,f)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+f*(1172.33-f*(10793.56-f*(33300.12-f*(38394.49-14825.05*f)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+f*(557.33+f*(1225.33-f*(3574.96-f*(1073.77+707.56*f)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+f*(3211.1-f*(15327.97-f*(27814-f*(22569.18-6838.66*f)))))))+")"}function vf(f){var e=f.length;return function(a){return f[Math.max(0,Math.min(e-1,Math.floor(a*e)))]}}var Sf=vf(c("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Cf=vf(c("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),If=vf(c("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Df=vf(c("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));export{tf as interpolateBlues,y as interpolateBrBG,V as interpolateBuGn,j as interpolateBuPu,yf as interpolateCividis,Pf as interpolateCool,wf as interpolateCubehelixDefault,z as interpolateGnBu,nf as interpolateGreens,of as interpolateGreys,If as interpolateInferno,Cf as interpolateMagma,F as interpolateOrRd,Mf as interpolateOranges,A as interpolatePRGn,B as interpolatePiYG,Df as interpolatePlasma,L as interpolatePuBu,J as interpolatePuBuGn,R as interpolatePuOr,Q as interpolatePuRd,hf as interpolatePurples,Gf as interpolateRainbow,x as interpolateRdBu,g as interpolateRdGy,X as interpolateRdPu,S as interpolateRdYlBu,I as interpolateRdYlGn,pf as interpolateReds,Of as interpolateSinebow,T as interpolateSpectral,gf as interpolateTurbo,Sf as interpolateViridis,Af as interpolateWarm,ff as interpolateYlGn,$ as interpolateYlGnBu,af as interpolateYlOrBr,cf as interpolateYlOrRd,t as schemeAccent,bf as schemeBlues,M as schemeBrBG,k as schemeBuGn,W as schemeBuPu,b as schemeCategory10,r as schemeDark2,q as schemeGnBu,rf as schemeGreens,sf as schemeGreys,n as schemeObservable10,E as schemeOrRd,uf as schemeOranges,w as schemePRGn,s as schemePaired,o as schemePastel1,m as schemePastel2,P as schemePiYG,K as schemePuBu,H as schemePuBuGn,G as schemePuOr,N as schemePuRd,mf as schemePurples,Y as schemeRdBu,O as schemeRdGy,U as schemeRdPu,v as schemeRdYlBu,C as schemeRdYlGn,lf as schemeReds,h as schemeSet1,l as schemeSet2,p as schemeSet3,D as schemeSpectral,i as schemeTableau10,_ as schemeYlGn,Z as schemeYlGnBu,ef as schemeYlOrBr,df as schemeYlOrRd};export default null;
_npm/[email protected]/567840a0.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import{InternMap as n,range as t,bisect as r,tickStep as e,ticks as u,tickIncrement as a,ascending as o,quantileSorted as i,quantile as c}from"../[email protected]/e95f898e.js";import{interpolateNumber as l,interpolate as f,interpolateRound as s,piecewise as p}from"../[email protected]/034b7bcb.js";import{formatSpecifier as h,precisionFixed as g,precisionRound as m,precisionPrefix as d,formatPrefix as y,format as v}from"../[email protected]/5851d7ef.js";import{timeSecond as M,timeMinute as w,timeHour as k,timeDay as N,timeWeek as x,timeMonth as b,timeYear as A,timeTickInterval as q,timeTicks as S,utcSecond as D,utcMinute as I,utcHour as O,utcDay as R,utcWeek as E,utcMonth as L,utcYear as F,utcTickInterval as P,utcTicks as T}from"../[email protected]/5bc129e1.js";import{timeFormat as Q,utcFormat as U}from"../[email protected]/19c92b44.js";function B(n,t){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(t).domain(n)}return this}function C(n,t){switch(arguments.length){case 0:break;case 1:"function"==typeof n?this.interpolator(n):this.range(n);break;default:this.domain(n),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const z=Symbol("implicit");function Y(){var t=new n,r=[],e=[],u=z;function a(n){let a=t.get(n);if(void 0===a){if(u!==z)return u;t.set(n,a=r.push(n)-1)}return e[a%e.length]}return a.domain=function(e){if(!arguments.length)return r.slice();r=[],t=new n;for(const n of e)t.has(n)||t.set(n,r.push(n)-1);return a},a.range=function(n){return arguments.length?(e=Array.from(n),a):e.slice()},a.unknown=function(n){return arguments.length?(u=n,a):u},a.copy=function(){return Y(r,e).unknown(u)},B.apply(a,arguments),a}function j(){var n,r,e=Y().unknown(void 0),u=e.domain,a=e.range,o=0,i=1,c=!1,l=0,f=0,s=.5;function p(){var e=u().length,p=i<o,h=p?i:o,g=p?o:i;n=(g-h)/Math.max(1,e-l+2*f),c&&(n=Math.floor(n)),h+=(g-h-n*(e-l))*s,r=n*(1-l),c&&(h=Math.round(h),r=Math.round(r));var m=t(e).map((function(t){return h+n*t}));return a(p?m.reverse():m)}return delete e.unknown,e.domain=function(n){return arguments.length?(u(n),p()):u()},e.range=function(n){return arguments.length?([o,i]=n,o=+o,i=+i,p()):[o,i]},e.rangeRound=function(n){return[o,i]=n,o=+o,i=+i,c=!0,p()},e.bandwidth=function(){return r},e.step=function(){return n},e.round=function(n){return arguments.length?(c=!!n,p()):c},e.padding=function(n){return arguments.length?(l=Math.min(1,f=+n),p()):l},e.paddingInner=function(n){return arguments.length?(l=Math.min(1,n),p()):l},e.paddingOuter=function(n){return arguments.length?(f=+n,p()):f},e.align=function(n){return arguments.length?(s=Math.max(0,Math.min(1,n)),p()):s},e.copy=function(){return j(u(),[o,i]).round(c).paddingInner(l).paddingOuter(f).align(s)},B.apply(p(),arguments)}function G(n){var t=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return G(t())},n}function H(){return G(j.apply(null,arguments).paddingInner(1))}function J(n){return+n}var K=[0,1];function V(n){return n}function W(n,t){return(t-=n=+n)?function(r){return(r-n)/t}:(r=isNaN(t)?NaN:.5,function(){return r});var r}function X(n,t,r){var e=n[0],u=n[1],a=t[0],o=t[1];return u<e?(e=W(u,e),a=r(o,a)):(e=W(e,u),a=r(a,o)),function(n){return a(e(n))}}function Z(n,t,e){var u=Math.min(n.length,t.length)-1,a=new Array(u),o=new Array(u),i=-1;for(n[u]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++i<u;)a[i]=W(n[i],n[i+1]),o[i]=e(t[i],t[i+1]);return function(t){var e=r(n,t,1,u)-1;return o[e](a[e](t))}}function $(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function _(){var n,t,r,e,u,a,o=K,i=K,c=f,p=V;function h(){var n,t,r,c=Math.min(o.length,i.length);return p!==V&&(n=o[0],t=o[c-1],n>t&&(r=n,n=t,t=r),p=function(r){return Math.max(n,Math.min(t,r))}),e=c>2?Z:X,u=a=null,g}function g(t){return null==t||isNaN(t=+t)?r:(u||(u=e(o.map(n),i,c)))(n(p(t)))}return g.invert=function(r){return p(t((a||(a=e(i,o.map(n),l)))(r)))},g.domain=function(n){return arguments.length?(o=Array.from(n,J),h()):o.slice()},g.range=function(n){return arguments.length?(i=Array.from(n),h()):i.slice()},g.rangeRound=function(n){return i=Array.from(n),c=s,h()},g.clamp=function(n){return arguments.length?(p=!!n||V,h()):p!==V},g.interpolate=function(n){return arguments.length?(c=n,h()):c},g.unknown=function(n){return arguments.length?(r=n,g):r},function(r,e){return n=r,t=e,h()}}function nn(){return _()(V,V)}function tn(n,t,r,u){var a,o=e(n,t,r);switch((u=h(null==u?",f":u)).type){case"s":var i=Math.max(Math.abs(n),Math.abs(t));return null!=u.precision||isNaN(a=d(o,i))||(u.precision=a),y(u,i);case"":case"e":case"g":case"p":case"r":null!=u.precision||isNaN(a=m(o,Math.max(Math.abs(n),Math.abs(t))))||(u.precision=a-("e"===u.type));break;case"f":case"%":null!=u.precision||isNaN(a=g(o))||(u.precision=a-2*("%"===u.type))}return v(u)}function rn(n){var t=n.domain;return n.ticks=function(n){var r=t();return u(r[0],r[r.length-1],null==n?10:n)},n.tickFormat=function(n,r){var e=t();return tn(e[0],e[e.length-1],null==n?10:n,r)},n.nice=function(r){null==r&&(r=10);var e,u,o=t(),i=0,c=o.length-1,l=o[i],f=o[c],s=10;for(f<l&&(u=l,l=f,f=u,u=i,i=c,c=u);s-- >0;){if((u=a(l,f,r))===e)return o[i]=l,o[c]=f,t(o);if(u>0)l=Math.floor(l/u)*u,f=Math.ceil(f/u)*u;else{if(!(u<0))break;l=Math.ceil(l*u)/u,f=Math.floor(f*u)/u}e=u}return n},n}function en(){var n=nn();return n.copy=function(){return $(n,en())},B.apply(n,arguments),rn(n)}function un(n){var t;function r(n){return null==n||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(n=Array.from(t,J),r):n.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return un(n).unknown(t)},n=arguments.length?Array.from(n,J):[0,1],rn(r)}function an(n,t){var r,e=0,u=(n=n.slice()).length-1,a=n[e],o=n[u];return o<a&&(r=e,e=u,u=r,r=a,a=o,o=r),n[e]=t.floor(a),n[u]=t.ceil(o),n}function on(n){return Math.log(n)}function cn(n){return Math.exp(n)}function ln(n){return-Math.log(-n)}function fn(n){return-Math.exp(-n)}function sn(n){return isFinite(n)?+("1e"+n):n<0?0:n}function pn(n){return(t,r)=>-n(-t,r)}function hn(n){const t=n(on,cn),r=t.domain;let e,a,o=10;function i(){return e=function(n){return n===Math.E?Math.log:10===n&&Math.log10||2===n&&Math.log2||(n=Math.log(n),t=>Math.log(t)/n)}(o),a=function(n){return 10===n?sn:n===Math.E?Math.exp:t=>Math.pow(n,t)}(o),r()[0]<0?(e=pn(e),a=pn(a),n(ln,fn)):n(on,cn),t}return t.base=function(n){return arguments.length?(o=+n,i()):o},t.domain=function(n){return arguments.length?(r(n),i()):r()},t.ticks=n=>{const t=r();let i=t[0],c=t[t.length-1];const l=c<i;l&&([i,c]=[c,i]);let f,s,p=e(i),h=e(c);const g=null==n?10:+n;let m=[];if(!(o%1)&&h-p<g){if(p=Math.floor(p),h=Math.ceil(h),i>0){for(;p<=h;++p)for(f=1;f<o;++f)if(s=p<0?f/a(-p):f*a(p),!(s<i)){if(s>c)break;m.push(s)}}else for(;p<=h;++p)for(f=o-1;f>=1;--f)if(s=p>0?f/a(-p):f*a(p),!(s<i)){if(s>c)break;m.push(s)}2*m.length<g&&(m=u(i,c,g))}else m=u(p,h,Math.min(h-p,g)).map(a);return l?m.reverse():m},t.tickFormat=(n,r)=>{if(null==n&&(n=10),null==r&&(r=10===o?"s":","),"function"!=typeof r&&(o%1||null!=(r=h(r)).precision||(r.trim=!0),r=v(r)),n===1/0)return r;const u=Math.max(1,o*n/t.ticks().length);return n=>{let t=n/a(Math.round(e(n)));return t*o<o-.5&&(t*=o),t<=u?r(n):""}},t.nice=()=>r(an(r(),{floor:n=>a(Math.floor(e(n))),ceil:n=>a(Math.ceil(e(n)))})),t}function gn(){const n=hn(_()).domain([1,10]);return n.copy=()=>$(n,gn()).base(n.base()),B.apply(n,arguments),n}function mn(n){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/n))}}function dn(n){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*n}}function yn(n){var t=1,r=n(mn(t),dn(t));return r.constant=function(r){return arguments.length?n(mn(t=+r),dn(t)):t},rn(r)}function vn(){var n=yn(_());return n.copy=function(){return $(n,vn()).constant(n.constant())},B.apply(n,arguments)}function Mn(n){return function(t){return t<0?-Math.pow(-t,n):Math.pow(t,n)}}function wn(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function kn(n){return n<0?-n*n:n*n}function Nn(n){var t=n(V,V),r=1;return t.exponent=function(t){return arguments.length?1===(r=+t)?n(V,V):.5===r?n(wn,kn):n(Mn(r),Mn(1/r)):r},rn(t)}function xn(){var n=Nn(_());return n.copy=function(){return $(n,xn()).exponent(n.exponent())},B.apply(n,arguments),n}function bn(){return xn.apply(null,arguments).exponent(.5)}function An(n){return Math.sign(n)*n*n}function qn(){var n,t=nn(),r=[0,1],e=!1;function u(r){var u=function(n){return Math.sign(n)*Math.sqrt(Math.abs(n))}(t(r));return isNaN(u)?n:e?Math.round(u):u}return u.invert=function(n){return t.invert(An(n))},u.domain=function(n){return arguments.length?(t.domain(n),u):t.domain()},u.range=function(n){return arguments.length?(t.range((r=Array.from(n,J)).map(An)),u):r.slice()},u.rangeRound=function(n){return u.range(n).round(!0)},u.round=function(n){return arguments.length?(e=!!n,u):e},u.clamp=function(n){return arguments.length?(t.clamp(n),u):t.clamp()},u.unknown=function(t){return arguments.length?(n=t,u):n},u.copy=function(){return qn(t.domain(),r).round(e).clamp(t.clamp()).unknown(n)},B.apply(u,arguments),rn(u)}function Sn(){var n,t=[],e=[],u=[];function a(){var n=0,r=Math.max(1,e.length);for(u=new Array(r-1);++n<r;)u[n-1]=i(t,n/r);return c}function c(t){return null==t||isNaN(t=+t)?n:e[r(u,t)]}return c.invertExtent=function(n){var r=e.indexOf(n);return r<0?[NaN,NaN]:[r>0?u[r-1]:t[0],r<u.length?u[r]:t[t.length-1]]},c.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let r of n)null==r||isNaN(r=+r)||t.push(r);return t.sort(o),a()},c.range=function(n){return arguments.length?(e=Array.from(n),a()):e.slice()},c.unknown=function(t){return arguments.length?(n=t,c):n},c.quantiles=function(){return u.slice()},c.copy=function(){return Sn().domain(t).range(e).unknown(n)},B.apply(c,arguments)}function Dn(){var n,t=0,e=1,u=1,a=[.5],o=[0,1];function i(t){return null!=t&&t<=t?o[r(a,t,0,u)]:n}function c(){var n=-1;for(a=new Array(u);++n<u;)a[n]=((n+1)*e-(n-u)*t)/(u+1);return i}return i.domain=function(n){return arguments.length?([t,e]=n,t=+t,e=+e,c()):[t,e]},i.range=function(n){return arguments.length?(u=(o=Array.from(n)).length-1,c()):o.slice()},i.invertExtent=function(n){var r=o.indexOf(n);return r<0?[NaN,NaN]:r<1?[t,a[0]]:r>=u?[a[u-1],e]:[a[r-1],a[r]]},i.unknown=function(t){return arguments.length?(n=t,i):i},i.thresholds=function(){return a.slice()},i.copy=function(){return Dn().domain([t,e]).range(o).unknown(n)},B.apply(rn(i),arguments)}function In(){var n,t=[.5],e=[0,1],u=1;function a(a){return null!=a&&a<=a?e[r(t,a,0,u)]:n}return a.domain=function(n){return arguments.length?(t=Array.from(n),u=Math.min(t.length,e.length-1),a):t.slice()},a.range=function(n){return arguments.length?(e=Array.from(n),u=Math.min(t.length,e.length-1),a):e.slice()},a.invertExtent=function(n){var r=e.indexOf(n);return[t[r-1],t[r]]},a.unknown=function(t){return arguments.length?(n=t,a):n},a.copy=function(){return In().domain(t).range(e).unknown(n)},B.apply(a,arguments)}function On(n){return new Date(n)}function Rn(n){return n instanceof Date?+n:+new Date(+n)}function En(n,t,r,e,u,a,o,i,c,l){var f=nn(),s=f.invert,p=f.domain,h=l(".%L"),g=l(":%S"),m=l("%I:%M"),d=l("%I %p"),y=l("%a %d"),v=l("%b %d"),M=l("%B"),w=l("%Y");function k(n){return(c(n)<n?h:i(n)<n?g:o(n)<n?m:a(n)<n?d:e(n)<n?u(n)<n?y:v:r(n)<n?M:w)(n)}return f.invert=function(n){return new Date(s(n))},f.domain=function(n){return arguments.length?p(Array.from(n,Rn)):p().map(On)},f.ticks=function(t){var r=p();return n(r[0],r[r.length-1],null==t?10:t)},f.tickFormat=function(n,t){return null==t?k:l(t)},f.nice=function(n){var r=p();return n&&"function"==typeof n.range||(n=t(r[0],r[r.length-1],null==n?10:n)),n?p(an(r,n)):f},f.copy=function(){return $(f,En(n,t,r,e,u,a,o,i,c,l))},f}function Ln(){return B.apply(En(S,q,A,b,x,N,k,w,M,Q).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Fn(){return B.apply(En(T,P,F,L,E,R,O,I,D,U).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Pn(){var n,t,r,e,u,a=0,o=1,i=V,c=!1;function l(t){return null==t||isNaN(t=+t)?u:i(0===r?.5:(t=(e(t)-n)*r,c?Math.max(0,Math.min(1,t)):t))}function p(n){return function(t){var r,e;return arguments.length?([r,e]=t,i=n(r,e),l):[i(0),i(1)]}}return l.domain=function(u){return arguments.length?([a,o]=u,n=e(a=+a),t=e(o=+o),r=n===t?0:1/(t-n),l):[a,o]},l.clamp=function(n){return arguments.length?(c=!!n,l):c},l.interpolator=function(n){return arguments.length?(i=n,l):i},l.range=p(f),l.rangeRound=p(s),l.unknown=function(n){return arguments.length?(u=n,l):u},function(u){return e=u,n=u(a),t=u(o),r=n===t?0:1/(t-n),l}}function Tn(n,t){return t.domain(n.domain()).interpolator(n.interpolator()).clamp(n.clamp()).unknown(n.unknown())}function Qn(){var n=rn(Pn()(V));return n.copy=function(){return Tn(n,Qn())},C.apply(n,arguments)}function Un(){var n=hn(Pn()).domain([1,10]);return n.copy=function(){return Tn(n,Un()).base(n.base())},C.apply(n,arguments)}function Bn(){var n=yn(Pn());return n.copy=function(){return Tn(n,Bn()).constant(n.constant())},C.apply(n,arguments)}function Cn(){var n=Nn(Pn());return n.copy=function(){return Tn(n,Cn()).exponent(n.exponent())},C.apply(n,arguments)}function zn(){return Cn.apply(null,arguments).exponent(.5)}function Yn(){var n=[],t=V;function e(e){if(null!=e&&!isNaN(e=+e))return t((r(n,e,1)-1)/(n.length-1))}return e.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let r of t)null==r||isNaN(r=+r)||n.push(r);return n.sort(o),e},e.interpolator=function(n){return arguments.length?(t=n,e):t},e.range=function(){return n.map(((r,e)=>t(e/(n.length-1))))},e.quantiles=function(t){return Array.from({length:t+1},((r,e)=>c(n,e/t)))},e.copy=function(){return Yn(t).domain(n)},C.apply(e,arguments)}function jn(){var n,t,r,e,u,a,o,i=0,c=.5,l=1,h=1,g=V,m=!1;function d(n){return isNaN(n=+n)?o:(n=.5+((n=+a(n))-t)*(h*n<h*t?e:u),g(m?Math.max(0,Math.min(1,n)):n))}function y(n){return function(t){var r,e,u;return arguments.length?([r,e,u]=t,g=p(n,[r,e,u]),d):[g(0),g(.5),g(1)]}}return d.domain=function(o){return arguments.length?([i,c,l]=o,n=a(i=+i),t=a(c=+c),r=a(l=+l),e=n===t?0:.5/(t-n),u=t===r?0:.5/(r-t),h=t<n?-1:1,d):[i,c,l]},d.clamp=function(n){return arguments.length?(m=!!n,d):m},d.interpolator=function(n){return arguments.length?(g=n,d):g},d.range=y(f),d.rangeRound=y(s),d.unknown=function(n){return arguments.length?(o=n,d):o},function(o){return a=o,n=o(i),t=o(c),r=o(l),e=n===t?0:.5/(t-n),u=t===r?0:.5/(r-t),h=t<n?-1:1,d}}function Gn(){var n=rn(jn()(V));return n.copy=function(){return Tn(n,Gn())},C.apply(n,arguments)}function Hn(){var n=hn(jn()).domain([.1,1,10]);return n.copy=function(){return Tn(n,Hn()).base(n.base())},C.apply(n,arguments)}function Jn(){var n=yn(jn());return n.copy=function(){return Tn(n,Jn()).constant(n.constant())},C.apply(n,arguments)}function Kn(){var n=Nn(jn());return n.copy=function(){return Tn(n,Kn()).exponent(n.exponent())},C.apply(n,arguments)}function Vn(){return Kn.apply(null,arguments).exponent(.5)}export{j as scaleBand,Gn as scaleDiverging,Hn as scaleDivergingLog,Kn as scaleDivergingPow,Vn as scaleDivergingSqrt,Jn as scaleDivergingSymlog,un as scaleIdentity,z as scaleImplicit,en as scaleLinear,gn as scaleLog,Y as scaleOrdinal,H as scalePoint,xn as scalePow,Sn as scaleQuantile,Dn as scaleQuantize,qn as scaleRadial,Qn as scaleSequential,Un as scaleSequentialLog,Cn as scaleSequentialPow,Yn as scaleSequentialQuantile,zn as scaleSequentialSqrt,Bn as scaleSequentialSymlog,bn as scaleSqrt,vn as scaleSymlog,In as scaleThreshold,Ln as scaleTime,Fn as scaleUtc,tn as tickFormat};export default null;
_npm/[email protected]/5dcd62f4.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ var t="http://www.w3.org/1999/xhtml",n={svg:"http://www.w3.org/2000/svg",xhtml:t,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function e(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),n.hasOwnProperty(e)?{space:n[e],local:t}:t}function r(n){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===t&&e.documentElement.namespaceURI===t?e.createElement(n):e.createElementNS(r,n)}}function i(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function o(t){var n=e(t);return(n.local?i:r)(n)}function u(){}function s(t){return null==t?u:function(){return this.querySelector(t)}}function c(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function a(){return[]}function l(t){return null==t?a:function(){return this.querySelectorAll(t)}}function f(t){return function(){return this.matches(t)}}function h(t){return function(n){return n.matches(t)}}var p=Array.prototype.find;function _(){return this.firstElementChild}var d=Array.prototype.filter;function y(){return Array.from(this.children)}function v(t){return new Array(t.length)}function m(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function g(t,n,e,r,i,o){for(var u,s=0,c=n.length,a=o.length;s<a;++s)(u=n[s])?(u.__data__=o[s],r[s]=u):e[s]=new m(t,o[s]);for(;s<c;++s)(u=n[s])&&(i[s]=u)}function w(t,n,e,r,i,o,u){var s,c,a,l=new Map,f=n.length,h=o.length,p=new Array(f);for(s=0;s<f;++s)(c=n[s])&&(p[s]=a=u.call(c,c.__data__,s,n)+"",l.has(a)?i[s]=c:l.set(a,c));for(s=0;s<h;++s)a=u.call(t,o[s],s,o)+"",(c=l.get(a))?(r[s]=c,c.__data__=o[s],l.delete(a)):e[s]=new m(t,o[s]);for(s=0;s<f;++s)(c=n[s])&&l.get(p[s])===c&&(i[s]=c)}function A(t){return t.__data__}function x(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function S(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function b(t){return function(){this.removeAttribute(t)}}function E(t){return function(){this.removeAttributeNS(t.space,t.local)}}function N(t,n){return function(){this.setAttribute(t,n)}}function C(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function L(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function B(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function P(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function T(t){return function(){this.style.removeProperty(t)}}function q(t,n,e){return function(){this.style.setProperty(t,n,e)}}function M(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function D(t,n){return t.style.getPropertyValue(n)||P(t).getComputedStyle(t,null).getPropertyValue(n)}function V(t){return function(){delete this[t]}}function O(t,n){return function(){this[t]=n}}function R(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function j(t){return t.trim().split(/^|\s+/)}function H(t){return t.classList||new I(t)}function I(t){this._node=t,this._names=j(t.getAttribute("class")||"")}function U(t,n){for(var e=H(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function X(t,n){for(var e=H(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function G(t){return function(){U(this,t)}}function Y(t){return function(){X(this,t)}}function k(t,n){return function(){(n.apply(this,arguments)?U:X)(this,t)}}function z(){this.textContent=""}function F(t){return function(){this.textContent=t}}function J(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function K(){this.innerHTML=""}function Q(t){return function(){this.innerHTML=t}}function W(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function Z(){this.nextSibling&&this.parentNode.appendChild(this)}function $(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function tt(){return null}function nt(){var t=this.parentNode;t&&t.removeChild(this)}function et(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function rt(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function it(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.options);++i?n.length=i:delete this.__on}}}function ot(t,n,e){return function(){var r,i=this.__on,o=function(t){return function(n){t.call(this,n,this.__data__)}}(n);if(i)for(var u=0,s=i.length;u<s;++u)if((r=i[u]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=e),void(r.value=n);this.addEventListener(t.type,o,e),r={type:t.type,name:t.name,value:n,listener:o,options:e},i?i.push(r):this.__on=[r]}}function ut(t,n,e){var r=P(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function st(t,n){return function(){return ut(this,t,n)}}function ct(t,n){return function(){return ut(this,t,n.apply(this,arguments))}}m.prototype={constructor:m,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},I.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var at=[null];function lt(t,n){this._groups=t,this._parents=n}function ft(){return new lt([[document.documentElement]],at)}function ht(t){return"string"==typeof t?new lt([[document.querySelector(t)]],[document.documentElement]):new lt([[t]],at)}function pt(t){return ht(o(t).call(document.documentElement))}lt.prototype=ft.prototype={constructor:lt,select:function(t){"function"!=typeof t&&(t=s(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u,c=n[i],a=c.length,l=r[i]=new Array(a),f=0;f<a;++f)(o=c[f])&&(u=t.call(o,o.__data__,f,c))&&("__data__"in o&&(u.__data__=o.__data__),l[f]=u);return new lt(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return c(t.apply(this,arguments))}}(t):l(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,s=n[o],a=s.length,f=0;f<a;++f)(u=s[f])&&(r.push(t.call(u,u.__data__,f,s)),i.push(u));return new lt(r,i)},selectChild:function(t){return this.select(null==t?_:function(t){return function(){return p.call(this.children,t)}}("function"==typeof t?t:h(t)))},selectChildren:function(t){return this.selectAll(null==t?y:function(t){return function(){return d.call(this.children,t)}}("function"==typeof t?t:h(t)))},filter:function(t){"function"!=typeof t&&(t=f(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],s=u.length,c=r[i]=[],a=0;a<s;++a)(o=u[a])&&t.call(o,o.__data__,a,u)&&c.push(o);return new lt(r,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,A);var e,r=n?w:g,i=this._parents,o=this._groups;"function"!=typeof t&&(e=t,t=function(){return e});for(var u=o.length,s=new Array(u),c=new Array(u),a=new Array(u),l=0;l<u;++l){var f=i[l],h=o[l],p=h.length,_=x(t.call(f,f&&f.__data__,l,i)),d=_.length,y=c[l]=new Array(d),v=s[l]=new Array(d);r(f,h,y,v,a[l]=new Array(p),_,n);for(var m,S,b=0,E=0;b<d;++b)if(m=y[b]){for(b>=E&&(E=b+1);!(S=v[E])&&++E<d;);m._next=S||null}}return(s=new lt(s,i))._enter=c,s._exit=a,s},enter:function(){return new lt(this._enter||this._groups.map(v),this._parents)},exit:function(){return new lt(this._exit||this._groups.map(v),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=n&&(i=n(i))&&(i=i.selection()),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},merge:function(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,i=e.length,o=r.length,u=Math.min(i,o),s=new Array(i),c=0;c<u;++c)for(var a,l=e[c],f=r[c],h=l.length,p=s[c]=new Array(h),_=0;_<h;++_)(a=l[_]||f[_])&&(p[_]=a);for(;c<i;++c)s[c]=e[c];return new lt(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&4^r.compareDocumentPosition(u)&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=S);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,s=e[o],c=s.length,a=i[o]=new Array(c),l=0;l<c;++l)(u=s[l])&&(a[l]=u);a.sort(n)}return new lt(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],u=0,s=o.length;u<s;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},attr:function(t,n){var r=e(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((null==n?r.local?E:b:"function"==typeof n?r.local?B:L:r.local?C:N)(r,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?T:"function"==typeof n?M:q)(t,n,null==e?"":e)):D(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?V:"function"==typeof n?R:O)(t,n)):this.node()[t]},classed:function(t,n){var e=j(t+"");if(arguments.length<2){for(var r=H(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?k:n?G:Y)(e,n))},text:function(t){return arguments.length?this.each(null==t?z:("function"==typeof t?J:F)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?K:("function"==typeof t?W:Q)(t)):this.node().innerHTML},raise:function(){return this.each(Z)},lower:function(){return this.each($)},append:function(t){var n="function"==typeof t?t:o(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:o(t),r=null==n?tt:"function"==typeof n?n:s(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(nt)},clone:function(t){return this.select(t?rt:et)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}(t+""),u=o.length;if(!(arguments.length<2)){for(s=n?ot:it,r=0;r<u;++r)this.each(s(o[r],n,e));return this}var s=this.node().__on;if(s)for(var c,a=0,l=s.length;a<l;++a)for(r=0,c=s[a];r<u;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,n){return this.each(("function"==typeof n?ct:st)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r,i=t[n],o=0,u=i.length;o<u;++o)(r=i[o])&&(yield r)}};var _t=0;function dt(){return new yt}function yt(){this._="@"+(++_t).toString(36)}function vt(t){let n;for(;n=t.sourceEvent;)t=n;return t}function mt(t,n){if(t=vt(t),void 0===n&&(n=t.currentTarget),n){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(n.getScreenCTM().inverse())).x,r.y]}if(n.getBoundingClientRect){var i=n.getBoundingClientRect();return[t.clientX-i.left-n.clientLeft,t.clientY-i.top-n.clientTop]}}return[t.pageX,t.pageY]}function gt(t,n){return t.target&&(t=vt(t),void 0===n&&(n=t.currentTarget),t=t.touches||[t]),Array.from(t,(t=>mt(t,n)))}function wt(t){return"string"==typeof t?new lt([document.querySelectorAll(t)],[document.documentElement]):new lt([c(t)],at)}yt.prototype=dt.prototype={constructor:yt,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};export{pt as create,o as creator,dt as local,f as matcher,e as namespace,n as namespaces,mt as pointer,gt as pointers,ht as select,wt as selectAll,ft as selection,s as selector,l as selectorAll,D as style,P as window};export default null;
_npm/[email protected]/f8e03c56.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import{Path as t}from"../[email protected]/4bb53638.js";function n(t){return function(){return t}}const i=Math.abs,e=Math.atan2,s=Math.cos,o=Math.max,h=Math.min,_=Math.sin,r=Math.sqrt,a=1e-12,l=Math.PI,c=l/2,u=2*l;function f(t){return t>=1?c:t<=-1?-c:Math.asin(t)}function y(n){let i=3;return n.digits=function(t){if(!arguments.length)return i;if(null==t)i=null;else{const n=Math.floor(t);if(!(n>=0))throw new RangeError(`invalid digits: ${t}`);i=n}return n},()=>new t(i)}function x(t){return t.innerRadius}function p(t){return t.outerRadius}function v(t){return t.startAngle}function d(t){return t.endAngle}function T(t){return t&&t.padAngle}function g(t,n,i,e,s,h,_){var a=t-i,l=n-e,c=(_?h:-h)/r(a*a+l*l),u=c*l,f=-c*a,y=t+u,x=n+f,p=i+u,v=e+f,d=(y+p)/2,T=(x+v)/2,g=p-y,m=v-x,b=g*g+m*m,w=s-h,k=y*v-p*x,N=(m<0?-1:1)*r(o(0,w*w*b-k*k)),S=(k*m-g*N)/b,E=(-k*g-m*N)/b,A=(k*m+g*N)/b,M=(-k*g+m*N)/b,P=S-d,C=E-T,O=A-d,R=M-T;return P*P+C*C>O*O+R*R&&(S=A,E=M),{cx:S,cy:E,x01:-u,y01:-f,x11:S*(s/w-1),y11:E*(s/w-1)}}function m(){var t=x,o=p,m=n(0),b=null,w=v,k=d,N=T,S=null,E=y(A);function A(){var n,y,x=+t.apply(this,arguments),p=+o.apply(this,arguments),v=w.apply(this,arguments)-c,d=k.apply(this,arguments)-c,T=i(d-v),A=d>v;if(S||(S=n=E()),p<x&&(y=p,p=x,x=y),p>a)if(T>u-a)S.moveTo(p*s(v),p*_(v)),S.arc(0,0,p,v,d,!A),x>a&&(S.moveTo(x*s(d),x*_(d)),S.arc(0,0,x,d,v,A));else{var M,P,C=v,O=d,R=v,z=d,X=T,Y=T,B=N.apply(this,arguments)/2,q=B>a&&(b?+b.apply(this,arguments):r(x*x+p*p)),D=h(i(p-x)/2,+m.apply(this,arguments)),I=D,j=D;if(q>a){var L=f(q/x*_(B)),W=f(q/p*_(B));(X-=2*L)>a?(R+=L*=A?1:-1,z-=L):(X=0,R=z=(v+d)/2),(Y-=2*W)>a?(C+=W*=A?1:-1,O-=W):(Y=0,C=O=(v+d)/2)}var V=p*s(C),$=p*_(C),F=x*s(z),G=x*_(z);if(D>a){var H,J=p*s(O),K=p*_(O),Q=x*s(R),U=x*_(R);if(T<l)if(H=function(t,n,i,e,s,o,h,_){var r=i-t,l=e-n,c=h-s,u=_-o,f=u*r-c*l;if(!(f*f<a))return[t+(f=(c*(n-o)-u*(t-s))/f)*r,n+f*l]}(V,$,Q,U,J,K,F,G)){var Z=V-H[0],tt=$-H[1],nt=J-H[0],it=K-H[1],et=1/_(function(t){return t>1?0:t<-1?l:Math.acos(t)}((Z*nt+tt*it)/(r(Z*Z+tt*tt)*r(nt*nt+it*it)))/2),st=r(H[0]*H[0]+H[1]*H[1]);I=h(D,(x-st)/(et-1)),j=h(D,(p-st)/(et+1))}else I=j=0}Y>a?j>a?(M=g(Q,U,V,$,p,j,A),P=g(J,K,F,G,p,j,A),S.moveTo(M.cx+M.x01,M.cy+M.y01),j<D?S.arc(M.cx,M.cy,j,e(M.y01,M.x01),e(P.y01,P.x01),!A):(S.arc(M.cx,M.cy,j,e(M.y01,M.x01),e(M.y11,M.x11),!A),S.arc(0,0,p,e(M.cy+M.y11,M.cx+M.x11),e(P.cy+P.y11,P.cx+P.x11),!A),S.arc(P.cx,P.cy,j,e(P.y11,P.x11),e(P.y01,P.x01),!A))):(S.moveTo(V,$),S.arc(0,0,p,C,O,!A)):S.moveTo(V,$),x>a&&X>a?I>a?(M=g(F,G,J,K,x,-I,A),P=g(V,$,Q,U,x,-I,A),S.lineTo(M.cx+M.x01,M.cy+M.y01),I<D?S.arc(M.cx,M.cy,I,e(M.y01,M.x01),e(P.y01,P.x01),!A):(S.arc(M.cx,M.cy,I,e(M.y01,M.x01),e(M.y11,M.x11),!A),S.arc(0,0,x,e(M.cy+M.y11,M.cx+M.x11),e(P.cy+P.y11,P.cx+P.x11),A),S.arc(P.cx,P.cy,I,e(P.y11,P.x11),e(P.y01,P.x01),!A))):S.arc(0,0,x,z,R,A):S.lineTo(F,G)}else S.moveTo(0,0);if(S.closePath(),n)return S=null,n+""||null}return A.centroid=function(){var n=(+t.apply(this,arguments)+ +o.apply(this,arguments))/2,i=(+w.apply(this,arguments)+ +k.apply(this,arguments))/2-l/2;return[s(i)*n,_(i)*n]},A.innerRadius=function(i){return arguments.length?(t="function"==typeof i?i:n(+i),A):t},A.outerRadius=function(t){return arguments.length?(o="function"==typeof t?t:n(+t),A):o},A.cornerRadius=function(t){return arguments.length?(m="function"==typeof t?t:n(+t),A):m},A.padRadius=function(t){return arguments.length?(b=null==t?null:"function"==typeof t?t:n(+t),A):b},A.startAngle=function(t){return arguments.length?(w="function"==typeof t?t:n(+t),A):w},A.endAngle=function(t){return arguments.length?(k="function"==typeof t?t:n(+t),A):k},A.padAngle=function(t){return arguments.length?(N="function"==typeof t?t:n(+t),A):N},A.context=function(t){return arguments.length?(S=null==t?null:t,A):S},A}var b=Array.prototype.slice;function w(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function k(t){this._context=t}function N(t){return new k(t)}function S(t){return t[0]}function E(t){return t[1]}function A(t,i){var e=n(!0),s=null,o=N,h=null,_=y(r);function r(n){var r,a,l,c=(n=w(n)).length,u=!1;for(null==s&&(h=o(l=_())),r=0;r<=c;++r)!(r<c&&e(a=n[r],r,n))===u&&((u=!u)?h.lineStart():h.lineEnd()),u&&h.point(+t(a,r,n),+i(a,r,n));if(l)return h=null,l+""||null}return t="function"==typeof t?t:void 0===t?S:n(t),i="function"==typeof i?i:void 0===i?E:n(i),r.x=function(i){return arguments.length?(t="function"==typeof i?i:n(+i),r):t},r.y=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),r):i},r.defined=function(t){return arguments.length?(e="function"==typeof t?t:n(!!t),r):e},r.curve=function(t){return arguments.length?(o=t,null!=s&&(h=o(s)),r):o},r.context=function(t){return arguments.length?(null==t?s=h=null:h=o(s=t),r):s},r}function M(t,i,e){var s=null,o=n(!0),h=null,_=N,r=null,a=y(l);function l(n){var l,c,u,f,y,x=(n=w(n)).length,p=!1,v=new Array(x),d=new Array(x);for(null==h&&(r=_(y=a())),l=0;l<=x;++l){if(!(l<x&&o(f=n[l],l,n))===p)if(p=!p)c=l,r.areaStart(),r.lineStart();else{for(r.lineEnd(),r.lineStart(),u=l-1;u>=c;--u)r.point(v[u],d[u]);r.lineEnd(),r.areaEnd()}p&&(v[l]=+t(f,l,n),d[l]=+i(f,l,n),r.point(s?+s(f,l,n):v[l],e?+e(f,l,n):d[l]))}if(y)return r=null,y+""||null}function c(){return A().defined(o).curve(_).context(h)}return t="function"==typeof t?t:void 0===t?S:n(+t),i="function"==typeof i?i:n(void 0===i?0:+i),e="function"==typeof e?e:void 0===e?E:n(+e),l.x=function(i){return arguments.length?(t="function"==typeof i?i:n(+i),s=null,l):t},l.x0=function(i){return arguments.length?(t="function"==typeof i?i:n(+i),l):t},l.x1=function(t){return arguments.length?(s=null==t?null:"function"==typeof t?t:n(+t),l):s},l.y=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),e=null,l):i},l.y0=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),l):i},l.y1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:n(+t),l):e},l.lineX0=l.lineY0=function(){return c().x(t).y(i)},l.lineY1=function(){return c().x(t).y(e)},l.lineX1=function(){return c().x(s).y(i)},l.defined=function(t){return arguments.length?(o="function"==typeof t?t:n(!!t),l):o},l.curve=function(t){return arguments.length?(_=t,null!=h&&(r=_(h)),l):_},l.context=function(t){return arguments.length?(null==t?h=r=null:r=_(h=t),l):h},l}function P(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function C(t){return t}function O(){var t=C,i=P,e=null,s=n(0),o=n(u),h=n(0);function _(n){var _,r,a,l,c,f=(n=w(n)).length,y=0,x=new Array(f),p=new Array(f),v=+s.apply(this,arguments),d=Math.min(u,Math.max(-u,o.apply(this,arguments)-v)),T=Math.min(Math.abs(d)/f,h.apply(this,arguments)),g=T*(d<0?-1:1);for(_=0;_<f;++_)(c=p[x[_]=_]=+t(n[_],_,n))>0&&(y+=c);for(null!=i?x.sort((function(t,n){return i(p[t],p[n])})):null!=e&&x.sort((function(t,i){return e(n[t],n[i])})),_=0,a=y?(d-f*g)/y:0;_<f;++_,v=l)r=x[_],l=v+((c=p[r])>0?c*a:0)+g,p[r]={data:n[r],index:_,value:c,startAngle:v,endAngle:l,padAngle:T};return p}return _.value=function(i){return arguments.length?(t="function"==typeof i?i:n(+i),_):t},_.sortValues=function(t){return arguments.length?(i=t,e=null,_):i},_.sort=function(t){return arguments.length?(e=t,i=null,_):e},_.startAngle=function(t){return arguments.length?(s="function"==typeof t?t:n(+t),_):s},_.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:n(+t),_):o},_.padAngle=function(t){return arguments.length?(h="function"==typeof t?t:n(+t),_):h},_}k.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var R=X(N);function z(t){this._curve=t}function X(t){function n(n){return new z(t(n))}return n._curve=t,n}function Y(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(X(t)):n()._curve},t}function B(){return Y(A().curve(R))}function q(){var t=M().curve(R),n=t.curve,i=t.lineX0,e=t.lineX1,s=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Y(i())},delete t.lineX0,t.lineEndAngle=function(){return Y(e())},delete t.lineX1,t.lineInnerRadius=function(){return Y(s())},delete t.lineY0,t.lineOuterRadius=function(){return Y(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(X(t)):n()._curve},t}function D(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}z.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};class I{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}class j{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,0===this._point)this._point=1;else{const i=D(this._x0,this._y0),e=D(this._x0,this._y0=(this._y0+n)/2),s=D(t,this._y0),o=D(t,n);this._context.moveTo(...i),this._context.bezierCurveTo(...e,...s,...o)}this._x0=t,this._y0=n}}function L(t){return new I(t,!0)}function W(t){return new I(t,!1)}function V(t){return new j(t)}function $(t){return t.source}function F(t){return t.target}function G(t){let i=$,e=F,s=S,o=E,h=null,_=null,r=y(a);function a(){let n;const a=b.call(arguments),l=i.apply(this,a),c=e.apply(this,a);if(null==h&&(_=t(n=r())),_.lineStart(),a[0]=l,_.point(+s.apply(this,a),+o.apply(this,a)),a[0]=c,_.point(+s.apply(this,a),+o.apply(this,a)),_.lineEnd(),n)return _=null,n+""||null}return a.source=function(t){return arguments.length?(i=t,a):i},a.target=function(t){return arguments.length?(e=t,a):e},a.x=function(t){return arguments.length?(s="function"==typeof t?t:n(+t),a):s},a.y=function(t){return arguments.length?(o="function"==typeof t?t:n(+t),a):o},a.context=function(n){return arguments.length?(null==n?h=_=null:_=t(h=n),a):h},a}function H(){return G(L)}function J(){return G(W)}function K(){const t=G(V);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const Q=r(3);var U={draw(t,n){const i=.59436*r(n+h(n/28,.75)),e=i/2,s=e*Q;t.moveTo(0,i),t.lineTo(0,-i),t.moveTo(-s,-e),t.lineTo(s,e),t.moveTo(-s,e),t.lineTo(s,-e)}},Z={draw(t,n){const i=r(n/l);t.moveTo(i,0),t.arc(0,0,i,0,u)}},tt={draw(t,n){const i=r(n/5)/2;t.moveTo(-3*i,-i),t.lineTo(-i,-i),t.lineTo(-i,-3*i),t.lineTo(i,-3*i),t.lineTo(i,-i),t.lineTo(3*i,-i),t.lineTo(3*i,i),t.lineTo(i,i),t.lineTo(i,3*i),t.lineTo(-i,3*i),t.lineTo(-i,i),t.lineTo(-3*i,i),t.closePath()}};const nt=r(1/3),it=2*nt;var et={draw(t,n){const i=r(n/it),e=i*nt;t.moveTo(0,-i),t.lineTo(e,0),t.lineTo(0,i),t.lineTo(-e,0),t.closePath()}},st={draw(t,n){const i=.62625*r(n);t.moveTo(0,-i),t.lineTo(i,0),t.lineTo(0,i),t.lineTo(-i,0),t.closePath()}},ot={draw(t,n){const i=.87559*r(n-h(n/7,2));t.moveTo(-i,0),t.lineTo(i,0),t.moveTo(0,i),t.lineTo(0,-i)}},ht={draw(t,n){const i=r(n),e=-i/2;t.rect(e,e,i,i)}},_t={draw(t,n){const i=.4431*r(n);t.moveTo(i,i),t.lineTo(i,-i),t.lineTo(-i,-i),t.lineTo(-i,i),t.closePath()}};const rt=_(l/10)/_(7*l/10),at=_(u/10)*rt,lt=-s(u/10)*rt;var ct={draw(t,n){const i=r(.8908130915292852*n),e=at*i,o=lt*i;t.moveTo(0,-i),t.lineTo(e,o);for(let n=1;n<5;++n){const h=u*n/5,r=s(h),a=_(h);t.lineTo(a*i,-r*i),t.lineTo(r*e-a*o,a*e+r*o)}t.closePath()}};const ut=r(3);var ft={draw(t,n){const i=-r(n/(3*ut));t.moveTo(0,2*i),t.lineTo(-ut*i,-i),t.lineTo(ut*i,-i),t.closePath()}};const yt=r(3);var xt={draw(t,n){const i=.6824*r(n),e=i/2,s=i*yt/2;t.moveTo(0,-i),t.lineTo(s,e),t.lineTo(-s,e),t.closePath()}};const pt=-.5,vt=r(3)/2,dt=1/r(12),Tt=3*(dt/2+1);var gt={draw(t,n){const i=r(n/Tt),e=i/2,s=i*dt,o=e,h=i*dt+i,_=-o,a=h;t.moveTo(e,s),t.lineTo(o,h),t.lineTo(_,a),t.lineTo(pt*e-vt*s,vt*e+pt*s),t.lineTo(pt*o-vt*h,vt*o+pt*h),t.lineTo(pt*_-vt*a,vt*_+pt*a),t.lineTo(pt*e+vt*s,pt*s-vt*e),t.lineTo(pt*o+vt*h,pt*h-vt*o),t.lineTo(pt*_+vt*a,pt*a-vt*_),t.closePath()}},mt={draw(t,n){const i=.6189*r(n-h(n/6,1.7));t.moveTo(-i,-i),t.lineTo(i,i),t.moveTo(-i,i),t.lineTo(i,-i)}};const bt=[Z,tt,et,ht,ct,ft,gt],wt=[Z,ot,mt,xt,U,_t,st];function kt(t,i){let e=null,s=y(o);function o(){let n;if(e||(e=n=s()),t.apply(this,arguments).draw(e,+i.apply(this,arguments)),n)return e=null,n+""||null}return t="function"==typeof t?t:n(t||Z),i="function"==typeof i?i:n(void 0===i?64:+i),o.type=function(i){return arguments.length?(t="function"==typeof i?i:n(i),o):t},o.size=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),o):i},o.context=function(t){return arguments.length?(e=null==t?null:t,o):e},o}function Nt(){}function St(t,n,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+i)/6)}function Et(t){this._context=t}function At(t){return new Et(t)}function Mt(t){this._context=t}function Pt(t){return new Mt(t)}function Ct(t){this._context=t}function Ot(t){return new Ct(t)}function Rt(t,n){this._basis=new Et(t),this._beta=n}Et.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:St(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:St(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Mt.prototype={areaStart:Nt,areaEnd:Nt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:St(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Ct.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,e=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(i,e):this._context.moveTo(i,e);break;case 3:this._point=4;default:St(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Rt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,i=t.length-1;if(i>0)for(var e,s=t[0],o=n[0],h=t[i]-s,_=n[i]-o,r=-1;++r<=i;)e=r/i,this._basis.point(this._beta*t[r]+(1-this._beta)*(s+e*h),this._beta*n[r]+(1-this._beta)*(o+e*_));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var zt=function t(n){function i(t){return 1===n?new Et(t):new Rt(t,n)}return i.beta=function(n){return t(+n)},i}(.85);function Xt(t,n,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function Yt(t,n){this._context=t,this._k=(1-n)/6}Yt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Xt(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Xt(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Bt=function t(n){function i(t){return new Yt(t,n)}return i.tension=function(n){return t(+n)},i}(0);function qt(t,n){this._context=t,this._k=(1-n)/6}qt.prototype={areaStart:Nt,areaEnd:Nt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Xt(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Dt=function t(n){function i(t){return new qt(t,n)}return i.tension=function(n){return t(+n)},i}(0);function It(t,n){this._context=t,this._k=(1-n)/6}It.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Xt(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var jt=function t(n){function i(t){return new It(t,n)}return i.tension=function(n){return t(+n)},i}(0);function Lt(t,n,i){var e=t._x1,s=t._y1,o=t._x2,h=t._y2;if(t._l01_a>a){var _=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,r=3*t._l01_a*(t._l01_a+t._l12_a);e=(e*_-t._x0*t._l12_2a+t._x2*t._l01_2a)/r,s=(s*_-t._y0*t._l12_2a+t._y2*t._l01_2a)/r}if(t._l23_a>a){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*l+t._x1*t._l23_2a-n*t._l12_2a)/c,h=(h*l+t._y1*t._l23_2a-i*t._l12_2a)/c}t._context.bezierCurveTo(e,s,o,h,t._x2,t._y2)}function Wt(t,n){this._context=t,this._alpha=n}Wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var i=this._x2-t,e=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+e*e,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:Lt(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Vt=function t(n){function i(t){return n?new Wt(t,n):new Yt(t,0)}return i.alpha=function(n){return t(+n)},i}(.5);function $t(t,n){this._context=t,this._alpha=n}$t.prototype={areaStart:Nt,areaEnd:Nt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var i=this._x2-t,e=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+e*e,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Lt(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Ft=function t(n){function i(t){return n?new $t(t,n):new qt(t,0)}return i.alpha=function(n){return t(+n)},i}(.5);function Gt(t,n){this._context=t,this._alpha=n}Gt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var i=this._x2-t,e=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+e*e,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Lt(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Ht=function t(n){function i(t){return n?new Gt(t,n):new It(t,0)}return i.alpha=function(n){return t(+n)},i}(.5);function Jt(t){this._context=t}function Kt(t){return new Jt(t)}function Qt(t){return t<0?-1:1}function Ut(t,n,i){var e=t._x1-t._x0,s=n-t._x1,o=(t._y1-t._y0)/(e||s<0&&-0),h=(i-t._y1)/(s||e<0&&-0),_=(o*s+h*e)/(e+s);return(Qt(o)+Qt(h))*Math.min(Math.abs(o),Math.abs(h),.5*Math.abs(_))||0}function Zt(t,n){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-n)/2:n}function tn(t,n,i){var e=t._x0,s=t._y0,o=t._x1,h=t._y1,_=(o-e)/3;t._context.bezierCurveTo(e+_,s+_*n,o-_,h-_*i,o,h)}function nn(t){this._context=t}function en(t){this._context=new sn(t)}function sn(t){this._context=t}function on(t){return new nn(t)}function hn(t){return new en(t)}function _n(t){this._context=t}function rn(t){var n,i,e=t.length-1,s=new Array(e),o=new Array(e),h=new Array(e);for(s[0]=0,o[0]=2,h[0]=t[0]+2*t[1],n=1;n<e-1;++n)s[n]=1,o[n]=4,h[n]=4*t[n]+2*t[n+1];for(s[e-1]=2,o[e-1]=7,h[e-1]=8*t[e-1]+t[e],n=1;n<e;++n)i=s[n]/o[n-1],o[n]-=i,h[n]-=i*h[n-1];for(s[e-1]=h[e-1]/o[e-1],n=e-2;n>=0;--n)s[n]=(h[n]-s[n+1])/o[n];for(o[e-1]=(t[e]+s[e-1])/2,n=0;n<e-1;++n)o[n]=2*t[n+1]-s[n+1];return[s,o]}function an(t){return new _n(t)}function ln(t,n){this._context=t,this._t=n}function cn(t){return new ln(t,.5)}function un(t){return new ln(t,0)}function fn(t){return new ln(t,1)}function yn(t,n){if((s=t.length)>1)for(var i,e,s,o=1,h=t[n[0]],_=h.length;o<s;++o)for(e=h,h=t[n[o]],i=0;i<_;++i)h[i][1]+=h[i][0]=isNaN(e[i][1])?e[i][0]:e[i][1]}function xn(t){for(var n=t.length,i=new Array(n);--n>=0;)i[n]=n;return i}function pn(t,n){return t[n]}function vn(t){const n=[];return n.key=t,n}function dn(){var t=n([]),i=xn,e=yn,s=pn;function o(n){var o,h,_=Array.from(t.apply(this,arguments),vn),r=_.length,a=-1;for(const t of n)for(o=0,++a;o<r;++o)(_[o][a]=[0,+s(t,_[o].key,a,n)]).data=t;for(o=0,h=w(i(_));o<r;++o)_[h[o]].index=o;return e(_,h),_}return o.keys=function(i){return arguments.length?(t="function"==typeof i?i:n(Array.from(i)),o):t},o.value=function(t){return arguments.length?(s="function"==typeof t?t:n(+t),o):s},o.order=function(t){return arguments.length?(i=null==t?xn:"function"==typeof t?t:n(Array.from(t)),o):i},o.offset=function(t){return arguments.length?(e=null==t?yn:t,o):e},o}function Tn(t,n){if((e=t.length)>0){for(var i,e,s,o=0,h=t[0].length;o<h;++o){for(s=i=0;i<e;++i)s+=t[i][o][1]||0;if(s)for(i=0;i<e;++i)t[i][o][1]/=s}yn(t,n)}}function gn(t,n){if((_=t.length)>0)for(var i,e,s,o,h,_,r=0,a=t[n[0]].length;r<a;++r)for(o=h=0,i=0;i<_;++i)(s=(e=t[n[i]][r])[1]-e[0])>0?(e[0]=o,e[1]=o+=s):s<0?(e[1]=h,e[0]=h+=s):(e[0]=0,e[1]=s)}function mn(t,n){if((i=t.length)>0){for(var i,e=0,s=t[n[0]],o=s.length;e<o;++e){for(var h=0,_=0;h<i;++h)_+=t[h][e][1]||0;s[e][1]+=s[e][0]=-_/2}yn(t,n)}}function bn(t,n){if((s=t.length)>0&&(e=(i=t[n[0]]).length)>0){for(var i,e,s,o=0,h=1;h<e;++h){for(var _=0,r=0,a=0;_<s;++_){for(var l=t[n[_]],c=l[h][1]||0,u=(c-(l[h-1][1]||0))/2,f=0;f<_;++f){var y=t[n[f]];u+=(y[h][1]||0)-(y[h-1][1]||0)}r+=c,a+=u*c}i[h-1][1]+=i[h-1][0]=o,r&&(o-=a/r)}i[h-1][1]+=i[h-1][0]=o,yn(t,n)}}function wn(t){var n=t.map(kn);return xn(t).sort((function(t,i){return n[t]-n[i]}))}function kn(t){for(var n,i=-1,e=0,s=t.length,o=-1/0;++i<s;)(n=+t[i][1])>o&&(o=n,e=i);return e}function Nn(t){var n=t.map(Sn);return xn(t).sort((function(t,i){return n[t]-n[i]}))}function Sn(t){for(var n,i=0,e=-1,s=t.length;++e<s;)(n=+t[e][1])&&(i+=n);return i}function En(t){return Nn(t).reverse()}function An(t){var n,i,e=t.length,s=t.map(Sn),o=wn(t),h=0,_=0,r=[],a=[];for(n=0;n<e;++n)i=o[n],h<_?(h+=s[i],r.push(i)):(_+=s[i],a.push(i));return a.reverse().concat(r)}function Mn(t){return xn(t).reverse()}Jt.prototype={areaStart:Nt,areaEnd:Nt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}},nn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:tn(this,this._t0,Zt(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var i=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,tn(this,Zt(this,i=Ut(this,t,n)),i);break;default:tn(this,this._t0,i=Ut(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=i}}},(en.prototype=Object.create(nn.prototype)).point=function(t,n){nn.prototype.point.call(this,n,t)},sn.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,i,e,s,o){this._context.bezierCurveTo(n,t,e,i,o,s)}},_n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===i)this._context.lineTo(t[1],n[1]);else for(var e=rn(t),s=rn(n),o=0,h=1;h<i;++o,++h)this._context.bezierCurveTo(e[0][o],s[0][o],e[1][o],s[1][o],t[h],n[h]);(this._line||0!==this._line&&1===i)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}},ln.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,n)}}this._x=t,this._y=n}};export{m as arc,M as area,q as areaRadial,At as curveBasis,Pt as curveBasisClosed,Ot as curveBasisOpen,L as curveBumpX,W as curveBumpY,zt as curveBundle,Bt as curveCardinal,Dt as curveCardinalClosed,jt as curveCardinalOpen,Vt as curveCatmullRom,Ft as curveCatmullRomClosed,Ht as curveCatmullRomOpen,N as curveLinear,Kt as curveLinearClosed,on as curveMonotoneX,hn as curveMonotoneY,an as curveNatural,cn as curveStep,fn as curveStepAfter,un as curveStepBefore,A as line,B as lineRadial,G as link,H as linkHorizontal,K as linkRadial,J as linkVertical,O as pie,D as pointRadial,q as radialArea,B as radialLine,dn as stack,gn as stackOffsetDiverging,Tn as stackOffsetExpand,yn as stackOffsetNone,mn as stackOffsetSilhouette,bn as stackOffsetWiggle,wn as stackOrderAppearance,Nn as stackOrderAscending,En as stackOrderDescending,An as stackOrderInsideOut,xn as stackOrderNone,Mn as stackOrderReverse,kt as symbol,U as symbolAsterisk,Z as symbolCircle,tt as symbolCross,et as symbolDiamond,st as symbolDiamond2,ot as symbolPlus,ht as symbolSquare,_t as symbolSquare2,ct as symbolStar,mt as symbolTimes,ft as symbolTriangle,xt as symbolTriangle2,gt as symbolWye,mt as symbolX,bt as symbols,bt as symbolsFill,wt as symbolsStroke};export default null;
_npm/[email protected]/19c92b44.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import{timeDay as n,timeYear as t,timeSunday as e,timeThursday as r,timeMonday as u,utcDay as i,utcYear as o,utcSunday as c,utcThursday as a,utcMonday as f}from"../[email protected]/5bc129e1.js";function l(n){if(0<=n.y&&n.y<100){var t=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return t.setFullYear(n.y),t}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function g(n){if(0<=n.y&&n.y<100){var t=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return t.setUTCFullYear(n.y),t}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function s(n,t,e){return{y:n,m:t,d:e,H:0,M:0,S:0,L:0}}function h(t){var e=t.dateTime,r=t.date,o=t.time,c=t.periods,a=t.days,h=t.shortDays,y=t.months,v=t.shortMonths,d=p(c),m=S(c),D=p(a),M=S(a),T=p(h),U=S(h),x=p(y),w=S(y),un=p(v),pn=S(v),qn={a:function(n){return h[n.getDay()]},A:function(n){return a[n.getDay()]},b:function(n){return v[n.getMonth()]},B:function(n){return y[n.getMonth()]},c:null,d:$,e:$,f:k,g:ln,G:sn,H:z,I:E,j:R,L:_,m:K,M:nn,p:function(n){return c[+(n.getHours()>=12)]},q:function(n){return 1+~~(n.getMonth()/3)},Q:Vn,s:jn,S:tn,u:en,U:rn,V:on,w:cn,W:an,x:null,X:null,y:fn,Y:gn,Z:hn,"%":bn},In={a:function(n){return h[n.getUTCDay()]},A:function(n){return a[n.getUTCDay()]},b:function(n){return v[n.getUTCMonth()]},B:function(n){return y[n.getUTCMonth()]},c:null,d:yn,e:yn,f:Cn,g:Yn,G:Zn,H:vn,I:dn,j:mn,L:Dn,m:Mn,M:Tn,p:function(n){return c[+(n.getUTCHours()>=12)]},q:function(n){return 1+~~(n.getUTCMonth()/3)},Q:Vn,s:jn,S:Un,u:xn,U:wn,V:Sn,w:Fn,W:Ln,x:null,X:null,y:Hn,Y:An,Z:Wn,"%":bn},Jn={a:function(n,t,e){var r=T.exec(t.slice(e));return r?(n.w=U.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(n,t,e){var r=D.exec(t.slice(e));return r?(n.w=M.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(n,t,e){var r=un.exec(t.slice(e));return r?(n.m=pn.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(n,t,e){var r=x.exec(t.slice(e));return r?(n.m=w.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(n,t,r){return On(n,e,t,r)},d:q,e:q,f:N,g:W,G:Z,H:J,I:J,j:I,L:O,m:j,M:Q,p:function(n,t,e){var r=d.exec(t.slice(e));return r?(n.p=m.get(r[0].toLowerCase()),e+r[0].length):-1},q:V,Q:B,s:G,S:X,u:L,U:H,V:Y,w:F,W:A,x:function(n,t,e){return On(n,r,t,e)},X:function(n,t,e){return On(n,o,t,e)},y:W,Y:Z,Z:b,"%":P};function Qn(n,t){return function(e){var r,u,i,o=[],c=-1,a=0,f=n.length;for(e instanceof Date||(e=new Date(+e));++c<f;)37===n.charCodeAt(c)&&(o.push(n.slice(a,c)),null!=(u=C[r=n.charAt(++c)])?r=n.charAt(++c):u="e"===r?" ":"0",(i=t[r])&&(r=i(e,u)),o.push(r),a=c+1);return o.push(n.slice(a,c)),o.join("")}}function Xn(t,e){return function(r){var o,c,a=s(1900,void 0,1);if(On(a,t,r+="",0)!=r.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(e&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(c=(o=g(s(a.y,0,1))).getUTCDay(),o=c>4||0===c?f.ceil(o):f(o),o=i.offset(o,7*(a.V-1)),a.y=o.getUTCFullYear(),a.m=o.getUTCMonth(),a.d=o.getUTCDate()+(a.w+6)%7):(c=(o=l(s(a.y,0,1))).getDay(),o=c>4||0===c?u.ceil(o):u(o),o=n.offset(o,7*(a.V-1)),a.y=o.getFullYear(),a.m=o.getMonth(),a.d=o.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),c="Z"in a?g(s(a.y,0,1)).getUTCDay():l(s(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(c+5)%7:a.w+7*a.U-(c+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,g(a)):l(a)}}function On(n,t,e,r){for(var u,i,o=0,c=t.length,a=e.length;o<c;){if(r>=a)return-1;if(37===(u=t.charCodeAt(o++))){if(u=t.charAt(o++),!(i=Jn[u in C?t.charAt(o++):u])||(r=i(n,e,r))<0)return-1}else if(u!=e.charCodeAt(r++))return-1}return r}return qn.x=Qn(r,qn),qn.X=Qn(o,qn),qn.c=Qn(e,qn),In.x=Qn(r,In),In.X=Qn(o,In),In.c=Qn(e,In),{format:function(n){var t=Qn(n+="",qn);return t.toString=function(){return n},t},parse:function(n){var t=Xn(n+="",!1);return t.toString=function(){return n},t},utcFormat:function(n){var t=Qn(n+="",In);return t.toString=function(){return n},t},utcParse:function(n){var t=Xn(n+="",!0);return t.toString=function(){return n},t}}}var y,v,d,m,D,C={"-":"",_:" ",0:"0"},M=/^\s*\d+/,T=/^%/,U=/[\\^$*+?|[\]().{}]/g;function x(n,t,e){var r=n<0?"-":"",u=(r?-n:n)+"",i=u.length;return r+(i<e?new Array(e-i+1).join(t)+u:u)}function w(n){return n.replace(U,"\\$&")}function p(n){return new RegExp("^(?:"+n.map(w).join("|")+")","i")}function S(n){return new Map(n.map(((n,t)=>[n.toLowerCase(),t])))}function F(n,t,e){var r=M.exec(t.slice(e,e+1));return r?(n.w=+r[0],e+r[0].length):-1}function L(n,t,e){var r=M.exec(t.slice(e,e+1));return r?(n.u=+r[0],e+r[0].length):-1}function H(n,t,e){var r=M.exec(t.slice(e,e+2));return r?(n.U=+r[0],e+r[0].length):-1}function Y(n,t,e){var r=M.exec(t.slice(e,e+2));return r?(n.V=+r[0],e+r[0].length):-1}function A(n,t,e){var r=M.exec(t.slice(e,e+2));return r?(n.W=+r[0],e+r[0].length):-1}function Z(n,t,e){var r=M.exec(t.slice(e,e+4));return r?(n.y=+r[0],e+r[0].length):-1}function W(n,t,e){var r=M.exec(t.slice(e,e+2));return r?(n.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function b(n,t,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(e,e+6));return r?(n.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function V(n,t,e){var r=M.exec(t.slice(e,e+1));return r?(n.q=3*r[0]-3,e+r[0].length):-1}function j(n,t,e){var r=M.exec(t.slice(e,e+2));return r?(n.m=r[0]-1,e+r[0].length):-1}function q(n,t,e){var r=M.exec(t.slice(e,e+2));return r?(n.d=+r[0],e+r[0].length):-1}function I(n,t,e){var r=M.exec(t.slice(e,e+3));return r?(n.m=0,n.d=+r[0],e+r[0].length):-1}function J(n,t,e){var r=M.exec(t.slice(e,e+2));return r?(n.H=+r[0],e+r[0].length):-1}function Q(n,t,e){var r=M.exec(t.slice(e,e+2));return r?(n.M=+r[0],e+r[0].length):-1}function X(n,t,e){var r=M.exec(t.slice(e,e+2));return r?(n.S=+r[0],e+r[0].length):-1}function O(n,t,e){var r=M.exec(t.slice(e,e+3));return r?(n.L=+r[0],e+r[0].length):-1}function N(n,t,e){var r=M.exec(t.slice(e,e+6));return r?(n.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function P(n,t,e){var r=T.exec(t.slice(e,e+1));return r?e+r[0].length:-1}function B(n,t,e){var r=M.exec(t.slice(e));return r?(n.Q=+r[0],e+r[0].length):-1}function G(n,t,e){var r=M.exec(t.slice(e));return r?(n.s=+r[0],e+r[0].length):-1}function $(n,t){return x(n.getDate(),t,2)}function z(n,t){return x(n.getHours(),t,2)}function E(n,t){return x(n.getHours()%12||12,t,2)}function R(e,r){return x(1+n.count(t(e),e),r,3)}function _(n,t){return x(n.getMilliseconds(),t,3)}function k(n,t){return _(n,t)+"000"}function K(n,t){return x(n.getMonth()+1,t,2)}function nn(n,t){return x(n.getMinutes(),t,2)}function tn(n,t){return x(n.getSeconds(),t,2)}function en(n){var t=n.getDay();return 0===t?7:t}function rn(n,r){return x(e.count(t(n)-1,n),r,2)}function un(n){var t=n.getDay();return t>=4||0===t?r(n):r.ceil(n)}function on(n,e){return n=un(n),x(r.count(t(n),n)+(4===t(n).getDay()),e,2)}function cn(n){return n.getDay()}function an(n,e){return x(u.count(t(n)-1,n),e,2)}function fn(n,t){return x(n.getFullYear()%100,t,2)}function ln(n,t){return x((n=un(n)).getFullYear()%100,t,2)}function gn(n,t){return x(n.getFullYear()%1e4,t,4)}function sn(n,t){var e=n.getDay();return x((n=e>=4||0===e?r(n):r.ceil(n)).getFullYear()%1e4,t,4)}function hn(n){var t=n.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+x(t/60|0,"0",2)+x(t%60,"0",2)}function yn(n,t){return x(n.getUTCDate(),t,2)}function vn(n,t){return x(n.getUTCHours(),t,2)}function dn(n,t){return x(n.getUTCHours()%12||12,t,2)}function mn(n,t){return x(1+i.count(o(n),n),t,3)}function Dn(n,t){return x(n.getUTCMilliseconds(),t,3)}function Cn(n,t){return Dn(n,t)+"000"}function Mn(n,t){return x(n.getUTCMonth()+1,t,2)}function Tn(n,t){return x(n.getUTCMinutes(),t,2)}function Un(n,t){return x(n.getUTCSeconds(),t,2)}function xn(n){var t=n.getUTCDay();return 0===t?7:t}function wn(n,t){return x(c.count(o(n)-1,n),t,2)}function pn(n){var t=n.getUTCDay();return t>=4||0===t?a(n):a.ceil(n)}function Sn(n,t){return n=pn(n),x(a.count(o(n),n)+(4===o(n).getUTCDay()),t,2)}function Fn(n){return n.getUTCDay()}function Ln(n,t){return x(f.count(o(n)-1,n),t,2)}function Hn(n,t){return x(n.getUTCFullYear()%100,t,2)}function Yn(n,t){return x((n=pn(n)).getUTCFullYear()%100,t,2)}function An(n,t){return x(n.getUTCFullYear()%1e4,t,4)}function Zn(n,t){var e=n.getUTCDay();return x((n=e>=4||0===e?a(n):a.ceil(n)).getUTCFullYear()%1e4,t,4)}function Wn(){return"+0000"}function bn(){return"%"}function Vn(n){return+n}function jn(n){return Math.floor(+n/1e3)}function qn(n){return y=h(n),v=y.format,d=y.parse,m=y.utcFormat,D=y.utcParse,y}qn({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var In="%Y-%m-%dT%H:%M:%S.%LZ";var Jn=Date.prototype.toISOString?function(n){return n.toISOString()}:m(In);var Qn=+new Date("2000-01-01T00:00:00.000Z")?function(n){var t=new Date(n);return isNaN(t)?null:t}:D(In);export{Jn as isoFormat,Qn as isoParse,v as timeFormat,qn as timeFormatDefaultLocale,h as timeFormatLocale,d as timeParse,m as utcFormat,D as utcParse};export default null;
_npm/[email protected]/5bc129e1.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import{bisector as e,tickStep as t}from"../[email protected]/e95f898e.js";const n=new Date,s=new Date;function r(e,t,a,o){function l(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return l.floor=t=>(e(t=new Date(+t)),t),l.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),l.round=e=>{const t=l(e),n=l.ceil(e);return e-t<n-e?t:n},l.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),l.range=(n,s,r)=>{const a=[];if(n=l.ceil(n),r=null==r?1:Math.floor(r),!(n<s&&r>0))return a;let o;do{a.push(o=new Date(+n)),t(n,r),e(n)}while(o<n&&n<s);return a},l.filter=n=>r((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,s)=>{if(e>=e)if(s<0)for(;++s<=0;)for(;t(e,-1),!n(e););else for(;--s>=0;)for(;t(e,1),!n(e););})),a&&(l.count=(t,r)=>(n.setTime(+t),s.setTime(+r),e(n),e(s),Math.floor(a(n,s))),l.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?l.filter(o?t=>o(t)%e==0:t=>l.count(0,t)%e==0):l:null)),l}const a=r((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));a.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?r((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):a:null);const o=a.range,l=1e3,g=6e4,u=36e5,i=864e5,T=6048e5,c=2592e6,f=31536e6,C=r((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*l)}),((e,t)=>(t-e)/l),(e=>e.getUTCSeconds())),U=C.range,M=r((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*l)}),((e,t)=>{e.setTime(+e+t*g)}),((e,t)=>(t-e)/g),(e=>e.getMinutes())),h=M.range,m=r((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*g)}),((e,t)=>(t-e)/g),(e=>e.getUTCMinutes())),D=m.range,F=r((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*l-e.getMinutes()*g)}),((e,t)=>{e.setTime(+e+t*u)}),((e,t)=>(t-e)/u),(e=>e.getHours())),Y=F.range,d=r((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*u)}),((e,t)=>(t-e)/u),(e=>e.getUTCHours())),H=d.range,y=r((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*g)/i),(e=>e.getDate()-1)),w=y.range,v=r((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/i),(e=>e.getUTCDate()-1)),S=v.range,p=r((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/i),(e=>Math.floor(e/i))),k=p.range;function z(e){return r((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*g)/T))}const O=z(0),W=z(1),x=z(2),b=z(3),j=z(4),q=z(5),A=z(6),B=O.range,E=W.range,G=x.range,I=b.range,J=j.range,K=q.range,L=A.range;function N(e){return r((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/T))}const P=N(0),Q=N(1),R=N(2),V=N(3),X=N(4),Z=N(5),$=N(6),_=P.range,ee=Q.range,te=R.range,ne=V.range,se=X.range,re=Z.range,ae=$.range,oe=r((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth())),le=oe.range,ge=r((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth())),ue=ge.range,ie=r((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));ie.every=e=>isFinite(e=Math.floor(e))&&e>0?r((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null;const Te=ie.range,ce=r((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));ce.every=e=>isFinite(e=Math.floor(e))&&e>0?r((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null;const fe=ce.range;function Ce(n,s,r,o,U,M){const h=[[C,1,l],[C,5,5e3],[C,15,15e3],[C,30,3e4],[M,1,g],[M,5,3e5],[M,15,9e5],[M,30,18e5],[U,1,u],[U,3,108e5],[U,6,216e5],[U,12,432e5],[o,1,i],[o,2,1728e5],[r,1,T],[s,1,c],[s,3,7776e6],[n,1,f]];function m(s,r,o){const l=Math.abs(r-s)/o,g=e((([,,e])=>e)).right(h,l);if(g===h.length)return n.every(t(s/f,r/f,o));if(0===g)return a.every(Math.max(t(s,r,o),1));const[u,i]=h[l/h[g-1][2]<h[g][2]/l?g-1:g];return u.every(i)}return[function(e,t,n){const s=t<e;s&&([e,t]=[t,e]);const r=n&&"function"==typeof n.range?n:m(e,t,n),a=r?r.range(e,+t+1):[];return s?a.reverse():a},m]}const[Ue,Me]=Ce(ce,ge,P,p,d,m),[he,me]=Ce(ie,oe,O,y,F,M);export{y as timeDay,w as timeDays,q as timeFriday,K as timeFridays,F as timeHour,Y as timeHours,r as timeInterval,a as timeMillisecond,o as timeMilliseconds,M as timeMinute,h as timeMinutes,W as timeMonday,E as timeMondays,oe as timeMonth,le as timeMonths,A as timeSaturday,L as timeSaturdays,C as timeSecond,U as timeSeconds,O as timeSunday,B as timeSundays,j as timeThursday,J as timeThursdays,me as timeTickInterval,he as timeTicks,x as timeTuesday,G as timeTuesdays,b as timeWednesday,I as timeWednesdays,O as timeWeek,B as timeWeeks,ie as timeYear,Te as timeYears,p as unixDay,k as unixDays,v as utcDay,S as utcDays,Z as utcFriday,re as utcFridays,d as utcHour,H as utcHours,a as utcMillisecond,o as utcMilliseconds,m as utcMinute,D as utcMinutes,Q as utcMonday,ee as utcMondays,ge as utcMonth,ue as utcMonths,$ as utcSaturday,ae as utcSaturdays,C as utcSecond,U as utcSeconds,P as utcSunday,_ as utcSundays,X as utcThursday,se as utcThursdays,Me as utcTickInterval,Ue as utcTicks,R as utcTuesday,te as utcTuesdays,V as utcWednesday,ne as utcWednesdays,P as utcWeek,_ as utcWeeks,ce as utcYear,fe as utcYears};export default null;
_npm/[email protected]/f31b5398.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ var t,n,e=0,r=0,o=0,i=1e3,a=0,l=0,u=0,c="object"==typeof performance&&performance.now?performance:Date,s="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function f(){return l||(s(_),l=c.now()+u)}function _(){l=0}function w(){this._call=this._time=this._next=null}function m(t,n,e){var r=new w;return r.restart(t,n,e),r}function p(){f(),++e;for(var n,r=t;r;)(n=l-r._time)>=0&&r._call.call(void 0,n),r=r._next;--e}function h(){l=(a=c.now())+u,e=r=0;try{p()}finally{e=0,function(){var e,r,o=t,i=1/0;for(;o;)o._call?(i>o._time&&(i=o._time),e=o,o=o._next):(r=o._next,o._next=null,o=e?e._next=r:t=r);n=e,x(i)}(),l=0}}function v(){var t=c.now(),n=t-a;n>i&&(u-=n,a=t)}function x(t){e||(r&&(r=clearTimeout(r)),t-l>24?(t<1/0&&(r=setTimeout(h,t-c.now()-u)),o&&(o=clearInterval(o))):(o||(a=c.now(),o=setInterval(v,i)),e=1,s(h)))}function y(t,n,e){var r=new w;return n=null==n?0:+n,r.restart((e=>{r.stop(),t(e+n)}),n,e),r}function d(t,n,e){var r=new w,o=n;return null==n?(r.restart(t,n,e),r):(r._restart=r.restart,r.restart=function(t,n,e){n=+n,e=null==e?f():+e,r._restart((function i(a){a+=o,r._restart(i,o+=n,e),t(a)}),n,e)},r.restart(t,n,e),r)}w.prototype=m.prototype={constructor:w,restart:function(e,r,o){if("function"!=typeof e)throw new TypeError("callback is not a function");o=(null==o?f():+o)+(null==r?0:+r),this._next||n===this||(n?n._next=this:t=this,n=this),this._call=e,this._time=o,x()},stop:function(){this._call&&(this._call=null,this._time=1/0,x())}};export{d as interval,f as now,y as timeout,m as timer,p as timerFlush};export default null;
_npm/[email protected]/8debb4ba.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import{namespace as t,matcher as n,selector as e,selectorAll as r,selection as i,style as o}from"../[email protected]/5dcd62f4.js";import{dispatch as u}from"../[email protected]/b5f7cdc6.js";import{timer as a,timeout as s,now as l}from"../[email protected]/f31b5398.js";import{interpolateNumber as f,interpolateRgb as c,interpolateString as h,interpolateTransformSvg as _,interpolateTransformCss as p}from"../[email protected]/034b7bcb.js";import{color as v}from"../[email protected]/2c0cdfa2.js";import{easeCubicInOut as d}from"../[email protected]/6f15f633.js";var m=u("start","end","cancel","interrupt"),y=[],w=0,g=1,x=2,A=3,b=4,E=5,C=6;function N(t,n,e,r,i,o){var u=t.__transition;if(u){if(e in u)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(t){e.state=g,e.timer.restart(u,e.delay,e.time),e.delay<=t&&u(t-e.delay)}function u(o){var a,c,h,_;if(e.state!==g)return f();for(a in i)if((_=i[a]).name===e.name){if(_.state===A)return s(u);_.state===b?(_.state=C,_.timer.stop(),_.on.call("interrupt",t,t.__data__,_.index,_.group),delete i[a]):+a<n&&(_.state=C,_.timer.stop(),_.on.call("cancel",t,t.__data__,_.index,_.group),delete i[a])}if(s((function(){e.state===A&&(e.state=b,e.timer.restart(l,e.delay,e.time),l(o))})),e.state=x,e.on.call("start",t,t.__data__,e.index,e.group),e.state===x){for(e.state=A,r=new Array(h=e.tween.length),a=0,c=-1;a<h;++a)(_=e.tween[a].value.call(t,t.__data__,e.index,e.group))&&(r[++c]=_);r.length=c+1}}function l(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(f),e.state=E,1),o=-1,u=r.length;++o<u;)r[o].call(t,i);e.state===E&&(e.on.call("end",t,t.__data__,e.index,e.group),f())}function f(){for(var r in e.state=C,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=a(o,0,e.time)}(t,e,{name:n,index:r,group:i,on:m,tween:y,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:w})}function S(t,n){var e=P(t,n);if(e.state>w)throw new Error("too late; already scheduled");return e}function T(t,n){var e=P(t,n);if(e.state>A)throw new Error("too late; already running");return e}function P(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function z(t,n){var e,r,i,o=t.__transition,u=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>x&&e.state<E,e.state=C,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}}function k(t,n){var e,r;return function(){var i=T(this,t),o=i.tween;if(o!==e)for(var u=0,a=(r=e=o).length;u<a;++u)if(r[u].name===n){(r=r.slice()).splice(u,1);break}i.tween=r}}function M(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=T(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},s=0,l=i.length;s<l;++s)if(i[s].name===n){i[s]=a;break}s===l&&i.push(a)}o.tween=i}}function O(t,n,e){var r=t._id;return t.each((function(){var t=T(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return P(t,r).value[n]}}function V(t,n){var e;return("number"==typeof n?f:n instanceof v?c:(e=v(n))?(n=e,c):h)(t,n)}function $(t){return function(){this.removeAttribute(t)}}function j(t){return function(){this.removeAttributeNS(t.space,t.local)}}function q(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttribute(t);return u===o?null:u===r?i:i=n(r=u,e)}}function B(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===o?null:u===r?i:i=n(r=u,e)}}function D(t,n,e){var r,i,o;return function(){var u,a,s=e(this);if(null!=s)return(u=this.getAttribute(t))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,s));this.removeAttribute(t)}}function F(t,n,e){var r,i,o;return function(){var u,a,s=e(this);if(null!=s)return(u=this.getAttributeNS(t.space,t.local))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,s));this.removeAttributeNS(t.space,t.local)}}function G(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}(t,i)),e}return i._value=n,i}function H(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}(t,i)),e}return i._value=n,i}function I(t,n){return function(){S(this,t).delay=+n.apply(this,arguments)}}function J(t,n){return n=+n,function(){S(this,t).delay=n}}function K(t,n){return function(){T(this,t).duration=+n.apply(this,arguments)}}function L(t,n){return n=+n,function(){T(this,t).duration=n}}var Q=i.prototype.constructor;function R(t){return function(){this.style.removeProperty(t)}}var U=0;function W(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function X(t){return i().transition(t)}function Y(){return++U}var Z=i.prototype;W.prototype=X.prototype={constructor:W,select:function(t){var n=this._name,r=this._id;"function"!=typeof t&&(t=e(t));for(var i=this._groups,o=i.length,u=new Array(o),a=0;a<o;++a)for(var s,l,f=i[a],c=f.length,h=u[a]=new Array(c),_=0;_<c;++_)(s=f[_])&&(l=t.call(s,s.__data__,_,f))&&("__data__"in s&&(l.__data__=s.__data__),h[_]=l,N(h[_],n,r,_,h,P(s,r)));return new W(u,this._parents,n,r)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=r(t));for(var i=this._groups,o=i.length,u=[],a=[],s=0;s<o;++s)for(var l,f=i[s],c=f.length,h=0;h<c;++h)if(l=f[h]){for(var _,p=t.call(l,l.__data__,h,f),v=P(l,e),d=0,m=p.length;d<m;++d)(_=p[d])&&N(_,n,e,d,p,v);u.push(p),a.push(l)}return new W(u,a,n,e)},selectChild:Z.selectChild,selectChildren:Z.selectChildren,filter:function(t){"function"!=typeof t&&(t=n(t));for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o)for(var u,a=e[o],s=a.length,l=i[o]=[],f=0;f<s;++f)(u=a[f])&&t.call(u,u.__data__,f,a)&&l.push(u);return new W(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var s,l=n[a],f=e[a],c=l.length,h=u[a]=new Array(c),_=0;_<c;++_)(s=l[_]||f[_])&&(h[_]=s);for(;a<r;++a)u[a]=n[a];return new W(u,this._parents,this._name,this._id)},selection:function(){return new Q(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=Y(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,l=0;l<s;++l)if(u=a[l]){var f=P(u,n);N(u,t,e,l,a,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new W(r,this._parents,t,e)},call:Z.call,nodes:Z.nodes,node:Z.node,size:Z.size,empty:Z.empty,each:Z.each,on:function(t,n){var e=this._id;return arguments.length<2?P(this.node(),e).on.on(t):this.each(function(t,n,e){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?S:T;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}(e,t,n))},attr:function(n,e){var r=t(n),i="transform"===r?_:V;return this.attrTween(n,"function"==typeof e?(r.local?F:D)(r,i,O(this,"attr."+n,e)):null==e?(r.local?j:$)(r):(r.local?B:q)(r,i,e))},attrTween:function(n,e){var r="attr."+n;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;var i=t(n);return this.tween(r,(i.local?G:H)(i,e))},style:function(t,n,e){var r="transform"==(t+="")?p:V;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var u=o(this,t),a=(this.style.removeProperty(t),o(this,t));return u===a?null:u===e&&a===r?i:i=n(e=u,r=a)}}(t,r)).on("end.style."+t,R(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,u;return function(){var a=o(this,t),s=e(this),l=s+"";return null==s&&(this.style.removeProperty(t),l=s=o(this,t)),a===l?null:a===r&&l===i?u:(i=l,u=n(r=a,s))}}(t,r,O(this,"style."+t,n))).each(function(t,n){var e,r,i,o,u="style."+n,a="end."+u;return function(){var s=T(this,t),l=s.on,f=null==s.value[u]?o||(o=R(n)):void 0;l===e&&i===f||(r=(e=l).copy()).on(a,i=f),s.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,u=e+"";return function(){var a=o(this,t);return a===u?null:a===r?i:i=n(r=a,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}(t,o,e)),r}return o._value=n,o}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(O(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=P(this.node(),e).tween,o=0,u=i.length;o<u;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?k:M)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?I:J)(n,t)):P(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?K:L)(n,t)):P(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(function(t,n){if("function"!=typeof n)throw new Error;return function(){T(this,t).ease=n}}(n,t)):P(this.node(),n).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,n){return function(){var e=n.apply(this,arguments);if("function"!=typeof e)throw new Error;T(this,t).ease=e}}(this._id,t))},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(o,u){var a={value:u},s={value:function(){0==--i&&o()}};e.each((function(){var e=T(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(s)),e.on=n})),0===i&&o()}))},[Symbol.iterator]:Z[Symbol.iterator]};var tt={time:null,delay:0,duration:250,ease:d};function nt(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return e}i.prototype.interrupt=function(t){return this.each((function(){z(this,t)}))},i.prototype.transition=function(t){var n,e;t instanceof W?(n=t._id,t=t._name):(n=Y(),(e=tt).time=l(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,f=0;f<s;++f)(u=a[f])&&N(u,t,n,f,a,e||nt(u,n));return new W(r,this._parents,t,n)};var et=[null];function rt(t,n){var e,r,i=t.__transition;if(i)for(r in n=null==n?null:n+"",i)if((e=i[r]).state>g&&e.name===n)return new W([[t]],et,n,+r);return null}export{rt as active,z as interrupt,X as transition};export default null;
_npm/[email protected]/4b0cc581.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import{dispatch as t}from"../[email protected]/b5f7cdc6.js";import{dragDisable as n,dragEnable as e}from"../[email protected]/b22c5864.js";import{interpolateZoom as o}from"../[email protected]/034b7bcb.js";import{select as i,pointer as r}from"../[email protected]/5dcd62f4.js";import{interrupt as u}from"../[email protected]/8debb4ba.js";var h=t=>()=>t;function s(t,{sourceEvent:n,target:e,transform:o,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:i}})}function a(t,n,e){this.k=t,this.x=n,this.y=e}a.prototype={constructor:a,scale:function(t){return 1===t?this:new a(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new a(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var c=new a(1,0,0);function l(t){for(;!t.__zoom;)if(!(t=t.parentNode))return c;return t.__zoom}function f(t){t.stopImmediatePropagation()}function m(t){t.preventDefault(),t.stopImmediatePropagation()}function p(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function v(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function y(){return this.__zoom||c}function d(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function z(){return navigator.maxTouchPoints||"ontouchstart"in this}function _(t,n,e){var o=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],r=t.invertY(n[0][1])-e[0][1],u=t.invertY(n[1][1])-e[1][1];return t.translate(i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i),u>r?(r+u)/2:Math.min(0,r)||Math.max(0,u))}function g(){var l,g,k,x=p,w=v,b=_,T=d,M=z,E=[0,1/0],Y=[[-1/0,-1/0],[1/0,1/0]],X=250,V=o,B=t("start","zoom","end"),D=500,P=150,I=0,K=10;function S(t){t.property("__zoom",y).on("wheel.zoom",O,{passive:!1}).on("mousedown.zoom",W).on("dblclick.zoom",Z).filter(M).on("touchstart.zoom",C).on("touchmove.zoom",F).on("touchend.zoom touchcancel.zoom",J).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function q(t,n){return(n=Math.max(E[0],Math.min(E[1],n)))===t.k?t:new a(n,t.x,t.y)}function G(t,n,e){var o=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return o===t.x&&i===t.y?t:new a(t.k,o,i)}function j(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function A(t,n,e,o){t.on("start.zoom",(function(){H(this,arguments).event(o).start()})).on("interrupt.zoom end.zoom",(function(){H(this,arguments).event(o).end()})).tween("zoom",(function(){var t=this,i=arguments,r=H(t,i).event(o),u=w.apply(t,i),h=null==e?j(u):"function"==typeof e?e.apply(t,i):e,s=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),c=t.__zoom,l="function"==typeof n?n.apply(t,i):n,f=V(c.invert(h).concat(s/c.k),l.invert(h).concat(s/l.k));return function(t){if(1===t)t=l;else{var n=f(t),e=s/n[2];t=new a(e,h[0]-n[0]*e,h[1]-n[1]*e)}r.zoom(null,t)}}))}function H(t,n,e){return!e&&t.__zooming||new N(t,n)}function N(t,n){this.that=t,this.args=n,this.active=0,this.sourceEvent=null,this.extent=w.apply(t,n),this.taps=0}function O(t,...n){if(x.apply(this,arguments)){var e=H(this,n).event(t),o=this.__zoom,i=Math.max(E[0],Math.min(E[1],o.k*Math.pow(2,T.apply(this,arguments)))),h=r(t);if(e.wheel)e.mouse[0][0]===h[0]&&e.mouse[0][1]===h[1]||(e.mouse[1]=o.invert(e.mouse[0]=h)),clearTimeout(e.wheel);else{if(o.k===i)return;e.mouse=[h,o.invert(h)],u(this),e.start()}m(t),e.wheel=setTimeout((function(){e.wheel=null,e.end()}),P),e.zoom("mouse",b(G(q(o,i),e.mouse[0],e.mouse[1]),e.extent,Y))}}function W(t,...o){if(!k&&x.apply(this,arguments)){var h=t.currentTarget,s=H(this,o,!0).event(t),a=i(t.view).on("mousemove.zoom",(function(t){if(m(t),!s.moved){var n=t.clientX-l,e=t.clientY-p;s.moved=n*n+e*e>I}s.event(t).zoom("mouse",b(G(s.that.__zoom,s.mouse[0]=r(t,h),s.mouse[1]),s.extent,Y))}),!0).on("mouseup.zoom",(function(t){a.on("mousemove.zoom mouseup.zoom",null),e(t.view,s.moved),m(t),s.event(t).end()}),!0),c=r(t,h),l=t.clientX,p=t.clientY;n(t.view),f(t),s.mouse=[c,this.__zoom.invert(c)],u(this),s.start()}}function Z(t,...n){if(x.apply(this,arguments)){var e=this.__zoom,o=r(t.changedTouches?t.changedTouches[0]:t,this),u=e.invert(o),h=e.k*(t.shiftKey?.5:2),s=b(G(q(e,h),o,u),w.apply(this,n),Y);m(t),X>0?i(this).transition().duration(X).call(A,s,o,t):i(this).call(S.transform,s,o,t)}}function C(t,...n){if(x.apply(this,arguments)){var e,o,i,h,s=t.touches,a=s.length,c=H(this,n,t.changedTouches.length===a).event(t);for(f(t),o=0;o<a;++o)i=s[o],h=[h=r(i,this),this.__zoom.invert(h),i.identifier],c.touch0?c.touch1||c.touch0[2]===h[2]||(c.touch1=h,c.taps=0):(c.touch0=h,e=!0,c.taps=1+!!l);l&&(l=clearTimeout(l)),e&&(c.taps<2&&(g=h[0],l=setTimeout((function(){l=null}),D)),u(this),c.start())}}function F(t,...n){if(this.__zooming){var e,o,i,u,h=H(this,n).event(t),s=t.changedTouches,a=s.length;for(m(t),e=0;e<a;++e)o=s[e],i=r(o,this),h.touch0&&h.touch0[2]===o.identifier?h.touch0[0]=i:h.touch1&&h.touch1[2]===o.identifier&&(h.touch1[0]=i);if(o=h.that.__zoom,h.touch1){var c=h.touch0[0],l=h.touch0[1],f=h.touch1[0],p=h.touch1[1],v=(v=f[0]-c[0])*v+(v=f[1]-c[1])*v,y=(y=p[0]-l[0])*y+(y=p[1]-l[1])*y;o=q(o,Math.sqrt(v/y)),i=[(c[0]+f[0])/2,(c[1]+f[1])/2],u=[(l[0]+p[0])/2,(l[1]+p[1])/2]}else{if(!h.touch0)return;i=h.touch0[0],u=h.touch0[1]}h.zoom("touch",b(G(o,i,u),h.extent,Y))}}function J(t,...n){if(this.__zooming){var e,o,u=H(this,n).event(t),h=t.changedTouches,s=h.length;for(f(t),k&&clearTimeout(k),k=setTimeout((function(){k=null}),D),e=0;e<s;++e)o=h[e],u.touch0&&u.touch0[2]===o.identifier?delete u.touch0:u.touch1&&u.touch1[2]===o.identifier&&delete u.touch1;if(u.touch1&&!u.touch0&&(u.touch0=u.touch1,delete u.touch1),u.touch0)u.touch0[1]=this.__zoom.invert(u.touch0[0]);else if(u.end(),2===u.taps&&(o=r(o,this),Math.hypot(g[0]-o[0],g[1]-o[1])<K)){var a=i(this).on("dblclick.zoom");a&&a.apply(this,arguments)}}}return S.transform=function(t,n,e,o){var i=t.selection?t.selection():t;i.property("__zoom",y),t!==i?A(t,n,e,o):i.interrupt().each((function(){H(this,arguments).event(o).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()}))},S.scaleBy=function(t,n,e,o){S.scaleTo(t,(function(){return this.__zoom.k*("function"==typeof n?n.apply(this,arguments):n)}),e,o)},S.scaleTo=function(t,n,e,o){S.transform(t,(function(){var t=w.apply(this,arguments),o=this.__zoom,i=null==e?j(t):"function"==typeof e?e.apply(this,arguments):e,r=o.invert(i),u="function"==typeof n?n.apply(this,arguments):n;return b(G(q(o,u),i,r),t,Y)}),e,o)},S.translateBy=function(t,n,e,o){S.transform(t,(function(){return b(this.__zoom.translate("function"==typeof n?n.apply(this,arguments):n,"function"==typeof e?e.apply(this,arguments):e),w.apply(this,arguments),Y)}),null,o)},S.translateTo=function(t,n,e,o,i){S.transform(t,(function(){var t=w.apply(this,arguments),i=this.__zoom,r=null==o?j(t):"function"==typeof o?o.apply(this,arguments):o;return b(c.translate(r[0],r[1]).scale(i.k).translate("function"==typeof n?-n.apply(this,arguments):-n,"function"==typeof e?-e.apply(this,arguments):-e),t,Y)}),o,i)},N.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,n){return this.mouse&&"mouse"!==t&&(this.mouse[1]=n.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=n.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=n.invert(this.touch1[0])),this.that.__zoom=n,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var n=i(this.that).datum();B.call(t,this.that,new s(t,{sourceEvent:this.sourceEvent,target:S,type:t,transform:this.that.__zoom,dispatch:B}),n)}},S.wheelDelta=function(t){return arguments.length?(T="function"==typeof t?t:h(+t),S):T},S.filter=function(t){return arguments.length?(x="function"==typeof t?t:h(!!t),S):x},S.touchable=function(t){return arguments.length?(M="function"==typeof t?t:h(!!t),S):M},S.extent=function(t){return arguments.length?(w="function"==typeof t?t:h([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),S):w},S.scaleExtent=function(t){return arguments.length?(E[0]=+t[0],E[1]=+t[1],S):[E[0],E[1]]},S.translateExtent=function(t){return arguments.length?(Y[0][0]=+t[0][0],Y[1][0]=+t[1][0],Y[0][1]=+t[0][1],Y[1][1]=+t[1][1],S):[[Y[0][0],Y[0][1]],[Y[1][0],Y[1][1]]]},S.constrain=function(t){return arguments.length?(b=t,S):b},S.duration=function(t){return arguments.length?(X=+t,S):X},S.interpolate=function(t){return arguments.length?(V=t,S):V},S.on=function(){var t=B.on.apply(B,arguments);return t===B?S:t},S.clickDistance=function(t){return arguments.length?(I=(t=+t)*t,S):Math.sqrt(I)},S.tapDistance=function(t){return arguments.length?(K=+t,S):K},S}l.prototype=a.prototype;export{a as ZoomTransform,g as zoom,c as zoomIdentity,l as zoomTransform};export default null;
_npm/[email protected]/7055d4c5.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ export*from"../[email protected]/e95f898e.js";export*from"../[email protected]/d44feff9.js";export*from"../[email protected]/5830b12a.js";export*from"../[email protected]/84d7b8e9.js";export*from"../[email protected]/2c0cdfa2.js";export*from"../[email protected]/626bedc4.js";export*from"../[email protected]/00c41b5d.js";export*from"../[email protected]/b5f7cdc6.js";export*from"../[email protected]/b22c5864.js";export*from"../[email protected]/407f7a1f.js";export*from"../[email protected]/6f15f633.js";export*from"../[email protected]/ef1ec490.js";export*from"../[email protected]/5e1ff060.js";export*from"../[email protected]/5851d7ef.js";export*from"../[email protected]/dcd02767.js";export*from"../[email protected]/f1db2593.js";export*from"../[email protected]/034b7bcb.js";export*from"../[email protected]/4bb53638.js";export*from"../[email protected]/bbafde58.js";export*from"../[email protected]/aa5b35a8.js";export*from"../[email protected]/32c7fec2.js";export*from"../[email protected]/567840a0.js";export*from"../[email protected]/cf9b720b.js";export*from"../[email protected]/5dcd62f4.js";export*from"../[email protected]/f8e03c56.js";export*from"../[email protected]/5bc129e1.js";export*from"../[email protected]/19c92b44.js";export*from"../[email protected]/f31b5398.js";export*from"../[email protected]/8debb4ba.js";export*from"../[email protected]/4b0cc581.js";export default null;
_npm/[email protected]/e67acb27.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import{orient2d as t}from"../[email protected]/8ac9039b.js";const s=Math.pow(2,-52),i=new Uint32Array(512);class e{static from(t,s=o,i=_){const h=t.length,n=new Float64Array(2*h);for(let e=0;e<h;e++){const h=t[e];n[2*e]=s(h),n[2*e+1]=i(h)}return new e(n)}constructor(t){const s=t.length>>1;if(s>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const i=Math.max(2*s-5,0);this._triangles=new Uint32Array(3*i),this._halfedges=new Int32Array(3*i),this._hashSize=Math.ceil(Math.sqrt(s)),this._hullPrev=new Uint32Array(s),this._hullNext=new Uint32Array(s),this._hullTri=new Uint32Array(s),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(s),this._dists=new Float64Array(s),this.update()}update(){const{coords:i,_hullPrev:e,_hullNext:n,_hullTri:a,_hullHash:o}=this,_=i.length>>1;let c=1/0,f=1/0,u=-1/0,d=-1/0;for(let t=0;t<_;t++){const s=i[2*t],e=i[2*t+1];s<c&&(c=s),e<f&&(f=e),s>u&&(u=s),e>d&&(d=e),this._ids[t]=t}const g=(c+u)/2,y=(f+d)/2;let w,b,A;for(let t=0,s=1/0;t<_;t++){const e=h(g,y,i[2*t],i[2*t+1]);e<s&&(w=t,s=e)}const k=i[2*w],S=i[2*w+1];for(let t=0,s=1/0;t<_;t++){if(t===w)continue;const e=h(k,S,i[2*t],i[2*t+1]);e<s&&e>0&&(b=t,s=e)}let x=i[2*b],z=i[2*b+1],U=1/0;for(let t=0;t<_;t++){if(t===w||t===b)continue;const s=r(k,S,x,z,i[2*t],i[2*t+1]);s<U&&(A=t,U=s)}let p=i[2*A],M=i[2*A+1];if(U===1/0){for(let t=0;t<_;t++)this._dists[t]=i[2*t]-i[0]||i[2*t+1]-i[1];l(this._ids,this._dists,0,_-1);const t=new Uint32Array(_);let s=0;for(let i=0,e=-1/0;i<_;i++){const h=this._ids[i],n=this._dists[h];n>e&&(t[s++]=h,e=n)}return this.hull=t.subarray(0,s),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(t(k,S,x,z,p,M)<0){const t=b,s=x,i=z;b=A,x=p,z=M,A=t,p=s,M=i}const T=function(t,s,i,e,h,n){const r=i-t,l=e-s,a=h-t,o=n-s,_=r*r+l*l,c=a*a+o*o,f=.5/(r*o-l*a);return{x:t+(o*_-l*c)*f,y:s+(r*c-a*_)*f}}(k,S,x,z,p,M);this._cx=T.x,this._cy=T.y;for(let t=0;t<_;t++)this._dists[t]=h(i[2*t],i[2*t+1],T.x,T.y);l(this._ids,this._dists,0,_-1),this._hullStart=w;let m=3;n[w]=e[A]=b,n[b]=e[w]=A,n[A]=e[b]=w,a[w]=0,a[b]=1,a[A]=2,o.fill(-1),o[this._hashKey(k,S)]=w,o[this._hashKey(x,z)]=b,o[this._hashKey(p,M)]=A,this.trianglesLen=0,this._addTriangle(w,b,A,-1,-1,-1);for(let h,r,l=0;l<this._ids.length;l++){const _=this._ids[l],c=i[2*_],f=i[2*_+1];if(l>0&&Math.abs(c-h)<=s&&Math.abs(f-r)<=s)continue;if(h=c,r=f,_===w||_===b||_===A)continue;let u=0;for(let t=0,s=this._hashKey(c,f);t<this._hashSize&&(u=o[(s+t)%this._hashSize],-1===u||u===n[u]);t++);u=e[u];let d,g=u;for(;d=n[g],t(c,f,i[2*g],i[2*g+1],i[2*d],i[2*d+1])>=0;)if(g=d,g===u){g=-1;break}if(-1===g)continue;let y=this._addTriangle(g,_,n[g],-1,-1,a[g]);a[_]=this._legalize(y+2),a[g]=y,m++;let k=n[g];for(;d=n[k],t(c,f,i[2*k],i[2*k+1],i[2*d],i[2*d+1])<0;)y=this._addTriangle(k,_,d,a[_],-1,a[k]),a[_]=this._legalize(y+2),n[k]=k,m--,k=d;if(g===u)for(;d=e[g],t(c,f,i[2*d],i[2*d+1],i[2*g],i[2*g+1])<0;)y=this._addTriangle(d,_,g,-1,a[g],a[d]),this._legalize(y+2),a[d]=y,n[g]=g,m--,g=d;this._hullStart=e[_]=g,n[g]=e[k]=_,n[_]=k,o[this._hashKey(c,f)]=_,o[this._hashKey(i[2*g],i[2*g+1])]=g}this.hull=new Uint32Array(m);for(let t=0,s=this._hullStart;t<m;t++)this.hull[t]=s,s=n[s];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,s){return Math.floor(function(t,s){const i=t/(Math.abs(t)+Math.abs(s));return(s>0?3-i:1+i)/4}(t-this._cx,s-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:s,_halfedges:e,coords:h}=this;let r=0,l=0;for(;;){const a=e[t],o=t-t%3;if(l=o+(t+2)%3,-1===a){if(0===r)break;t=i[--r];continue}const _=a-a%3,c=o+(t+1)%3,f=_+(a+2)%3,u=s[l],d=s[t],g=s[c],y=s[f];if(n(h[2*u],h[2*u+1],h[2*d],h[2*d+1],h[2*g],h[2*g+1],h[2*y],h[2*y+1])){s[t]=y,s[a]=u;const h=e[f];if(-1===h){let s=this._hullStart;do{if(this._hullTri[s]===f){this._hullTri[s]=t;break}s=this._hullPrev[s]}while(s!==this._hullStart)}this._link(t,h),this._link(a,e[l]),this._link(l,f);const n=_+(a+1)%3;r<i.length&&(i[r++]=n)}else{if(0===r)break;t=i[--r]}}return l}_link(t,s){this._halfedges[t]=s,-1!==s&&(this._halfedges[s]=t)}_addTriangle(t,s,i,e,h,n){const r=this.trianglesLen;return this._triangles[r]=t,this._triangles[r+1]=s,this._triangles[r+2]=i,this._link(r,e),this._link(r+1,h),this._link(r+2,n),this.trianglesLen+=3,r}}function h(t,s,i,e){const h=t-i,n=s-e;return h*h+n*n}function n(t,s,i,e,h,n,r,l){const a=t-r,o=s-l,_=i-r,c=e-l,f=h-r,u=n-l,d=_*_+c*c,g=f*f+u*u;return a*(c*g-d*u)-o*(_*g-d*f)+(a*a+o*o)*(_*u-c*f)<0}function r(t,s,i,e,h,n){const r=i-t,l=e-s,a=h-t,o=n-s,_=r*r+l*l,c=a*a+o*o,f=.5/(r*o-l*a),u=(o*_-l*c)*f,d=(r*c-a*_)*f;return u*u+d*d}function l(t,s,i,e){if(e-i<=20)for(let h=i+1;h<=e;h++){const e=t[h],n=s[e];let r=h-1;for(;r>=i&&s[t[r]]>n;)t[r+1]=t[r--];t[r+1]=e}else{let h=i+1,n=e;a(t,i+e>>1,h),s[t[i]]>s[t[e]]&&a(t,i,e),s[t[h]]>s[t[e]]&&a(t,h,e),s[t[i]]>s[t[h]]&&a(t,i,h);const r=t[h],o=s[r];for(;;){do{h++}while(s[t[h]]<o);do{n--}while(s[t[n]]>o);if(n<h)break;a(t,h,n)}t[i+1]=t[n],t[n]=r,e-h+1>=n-i?(l(t,s,h,e),l(t,s,i,n-1)):(l(t,s,i,n-1),l(t,s,h,e))}}function a(t,s,i){const e=t[s];t[s]=t[i],t[i]=e}function o(t){return t[0]}function _(t){return t[1]}export{e as default};
_npm/[email protected]/5eed35fd.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ class e extends Map{constructor(e,t=u){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,r]of e)this.set(t,r)}get(e){return super.get(r(this,e))}has(e){return super.has(r(this,e))}set(e,t){return super.set(n(this,e),t)}delete(e){return super.delete(s(this,e))}}class t extends Set{constructor(e,t=u){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const t of e)this.add(t)}has(e){return super.has(r(this,e))}add(e){return super.add(n(this,e))}delete(e){return super.delete(s(this,e))}}function r({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function n({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function s({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function u(e){return null!==e&&"object"==typeof e?e.valueOf():e}export{e as InternMap,t as InternSet};export default null;
_npm/[email protected]/a62ae5ce.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/interval-tree.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import t from"../[email protected]/1ee6c50d.js";var i=t,r=function(t){if(!t||0===t.length)return new m(null);return new m(v(t))};function n(t,i,r,n,s){this.mid=t,this.left=i,this.right=r,this.leftPoints=n,this.rightPoints=s,this.count=(i?i.count:0)+(r?r.count:0)+n.length}var s=n.prototype;function h(t,i){t.mid=i.mid,t.left=i.left,t.right=i.right,t.leftPoints=i.leftPoints,t.rightPoints=i.rightPoints,t.count=i.count}function e(t,i){var r=v(i);t.mid=r.mid,t.left=r.left,t.right=r.right,t.leftPoints=r.leftPoints,t.rightPoints=r.rightPoints,t.count=r.count}function o(t,i){var r=t.intervals([]);r.push(i),e(t,r)}function f(t,i){var r=t.intervals([]),n=r.indexOf(i);return n<0?0:(r.splice(n,1),e(t,r),1)}function u(t,i,r){for(var n=0;n<t.length&&t[n][0]<=i;++n){var s=r(t[n]);if(s)return s}}function l(t,i,r){for(var n=t.length-1;n>=0&&t[n][1]>=i;--n){var s=r(t[n]);if(s)return s}}function g(t,i){for(var r=0;r<t.length;++r){var n=i(t[r]);if(n)return n}}function c(t,i){return t-i}function P(t,i){var r=t[0]-i[0];return r||t[1]-i[1]}function a(t,i){var r=t[1]-i[1];return r||t[0]-i[0]}function v(t){if(0===t.length)return null;for(var i=[],r=0;r<t.length;++r)i.push(t[r][0],t[r][1]);i.sort(c);var s=i[i.length>>1],h=[],e=[],o=[];for(r=0;r<t.length;++r){var f=t[r];f[1]<s?h.push(f):s<f[0]?e.push(f):o.push(f)}var u=o,l=o.slice();return u.sort(P),l.sort(a),new n(s,v(h),v(e),u,l)}function m(t){this.root=t}s.intervals=function(t){return t.push.apply(t,this.leftPoints),this.left&&this.left.intervals(t),this.right&&this.right.intervals(t),t},s.insert=function(t){var r=this.count-this.leftPoints.length;if(this.count+=1,t[1]<this.mid)this.left?4*(this.left.count+1)>3*(r+1)?o(this,t):this.left.insert(t):this.left=v([t]);else if(t[0]>this.mid)this.right?4*(this.right.count+1)>3*(r+1)?o(this,t):this.right.insert(t):this.right=v([t]);else{var n=i.ge(this.leftPoints,t,P),s=i.ge(this.rightPoints,t,a);this.leftPoints.splice(n,0,t),this.rightPoints.splice(s,0,t)}},s.remove=function(t){var r=this.count-this.leftPoints;if(t[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(r-1)?f(this,t):2===(o=this.left.remove(t))?(this.left=null,this.count-=1,1):(1===o&&(this.count-=1),o):0;if(t[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(r-1)?f(this,t):2===(o=this.right.remove(t))?(this.right=null,this.count-=1,1):(1===o&&(this.count-=1),o):0;if(1===this.count)return this.leftPoints[0]===t?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===t){if(this.left&&this.right){for(var n=this,s=this.left;s.right;)n=s,s=s.right;if(n===this)s.right=this.right;else{var e=this.left,o=this.right;n.count-=s.count,n.right=s.left,s.left=e,s.right=o}h(this,s),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?h(this,this.left):h(this,this.right);return 1}for(e=i.ge(this.leftPoints,t,P);e<this.leftPoints.length&&this.leftPoints[e][0]===t[0];++e)if(this.leftPoints[e]===t){this.count-=1,this.leftPoints.splice(e,1);for(o=i.ge(this.rightPoints,t,a);o<this.rightPoints.length&&this.rightPoints[o][1]===t[1];++o)if(this.rightPoints[o]===t)return this.rightPoints.splice(o,1),1}return 0},s.queryPoint=function(t,i){if(t<this.mid){if(this.left)if(r=this.left.queryPoint(t,i))return r;return u(this.leftPoints,t,i)}if(t>this.mid){var r;if(this.right)if(r=this.right.queryPoint(t,i))return r;return l(this.rightPoints,t,i)}return g(this.leftPoints,i)},s.queryInterval=function(t,i,r){var n;if(t<this.mid&&this.left&&(n=this.left.queryInterval(t,i,r)))return n;if(i>this.mid&&this.right&&(n=this.right.queryInterval(t,i,r)))return n;return i<this.mid?u(this.leftPoints,i,r):t>this.mid?l(this.rightPoints,t,r):g(this.leftPoints,r)};var p=m.prototype;p.insert=function(t){this.root?this.root.insert(t):this.root=new n(t[0],null,null,[t],[t])},p.remove=function(t){if(this.root){var i=this.root.remove(t);return 2===i&&(this.root=null),0!==i}return!1},p.queryPoint=function(t,i){if(this.root)return this.root.queryPoint(t,i)},p.queryInterval=function(t,i,r){if(t<=i&&this.root)return this.root.queryInterval(t,i,r)},Object.defineProperty(p,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(p,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});export{r as default};
_npm/[email protected]/c68fbd73.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/src/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ function t(t,n){if(t instanceof Date||(t=new Date(+t)),isNaN(t))return"function"==typeof n?n(t):n;const o=t.getUTCHours(),d=t.getUTCMinutes(),r=t.getUTCSeconds(),u=t.getUTCMilliseconds();return`${$=t.getUTCFullYear(),$<0?`-${e(-$,6)}`:$>9999?`+${e($,6)}`:e($,4)}-${e(t.getUTCMonth()+1,2)}-${e(t.getUTCDate(),2)}${o||d||r||u?`T${e(o,2)}:${e(d,2)}${r||u?`:${e(r,2)}${u?`.${e(u,3)}`:""}`:""}Z`:""}`;var $}function e(t,e){return`${t}`.padStart(e,"0")}const n=/^(?:[-+]\d{2})?\d{4}(?:-\d{2}(?:-\d{2})?)?(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{3})?)?(?:Z|[-+]\d{2}:?\d{2})?)?$/;function o(t,e){return n.test(t+="")?new Date(t):"function"==typeof e?e(t):e}export{t as format,o as parse};export default null;
_npm/[email protected]/8ac9039b.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/[email protected]/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ const t=11102230246251565e-32,n=134217729,r=(3+8*t)*t;function s(t,n,r,s,a){let e,o,c,u,f=n[0],i=s[0],b=0,h=0;i>f==i>-f?(e=f,f=n[++b]):(e=i,i=s[++h]);let M=0;if(b<t&&h<r)for(i>f==i>-f?(o=f+e,c=e-(o-f),f=n[++b]):(o=i+e,c=e-(o-i),i=s[++h]),e=o,0!==c&&(a[M++]=c);b<t&&h<r;)i>f==i>-f?(o=e+f,u=o-e,c=e-(o-u)+(f-u),f=n[++b]):(o=e+i,u=o-e,c=e-(o-u)+(i-u),i=s[++h]),e=o,0!==c&&(a[M++]=c);for(;b<t;)o=e+f,u=o-e,c=e-(o-u)+(f-u),f=n[++b],e=o,0!==c&&(a[M++]=c);for(;h<r;)o=e+i,u=o-e,c=e-(o-u)+(i-u),i=s[++h],e=o,0!==c&&(a[M++]=c);return 0===e&&0!==M||(a[M++]=e),M}function a(t,n,r,a,e,o,c,u){return s(s(t,n,r,a,c),c,e,o,u)}function e(t,r,s,a){let e,o,c,u,f,i,b,h,M,l,p;b=n*s,l=b-(b-s),p=s-l;let x=r[0];e=x*s,b=n*x,h=b-(b-x),M=x-h,c=M*p-(e-h*l-M*l-h*p);let d=0;0!==c&&(a[d++]=c);for(let w=1;w<t;w++)x=r[w],u=x*s,b=n*x,h=b-(b-x),M=x-h,f=M*p-(u-h*l-M*l-h*p),o=e+f,i=o-e,c=e-(o-i)+(f-i),0!==c&&(a[d++]=c),e=u+o,c=o-(e-u),0!==c&&(a[d++]=c);return 0===e&&0!==d||(a[d++]=e),d}function o(t,n){for(let r=0;r<t;r++)n[r]=-n[r];return t}function c(t,n){let r=n[0];for(let s=1;s<t;s++)r+=n[s];return r}function u(t){return new Float64Array(t)}const f=22204460492503146e-32,i=11093356479670487e-47,b=u(4),h=u(8),M=u(12),l=u(16),p=u(4);function x(t,a,e,o,u,x){const d=(a-x)*(e-u),w=(t-u)*(o-x),y=d-w,A=Math.abs(d+w);return Math.abs(y)>=33306690738754716e-32*A?y:-function(t,a,e,o,u,x,d){let w,y,A,F,g,j,k,m,q,v,z,B,C,D,E,G,H,I;const J=t-u,K=e-u,L=a-x,N=o-x;D=J*N,j=n*J,k=j-(j-J),m=J-k,j=n*N,q=j-(j-N),v=N-q,E=m*v-(D-k*q-m*q-k*v),G=L*K,j=n*L,k=j-(j-L),m=L-k,j=n*K,q=j-(j-K),v=K-q,H=m*v-(G-k*q-m*q-k*v),z=E-H,g=E-z,b[0]=E-(z+g)+(g-H),B=D+z,g=B-D,C=D-(B-g)+(z-g),z=C-G,g=C-z,b[1]=C-(z+g)+(g-G),I=B+z,g=I-B,b[2]=B-(I-g)+(z-g),b[3]=I;let O=c(4,b),P=f*d;if(O>=P||-O>=P)return O;if(g=t-J,w=t-(J+g)+(g-u),g=e-K,A=e-(K+g)+(g-u),g=a-L,y=a-(L+g)+(g-x),g=o-N,F=o-(N+g)+(g-x),0===w&&0===y&&0===A&&0===F)return O;if(P=i*d+r*Math.abs(O),O+=J*F+N*w-(L*A+K*y),O>=P||-O>=P)return O;D=w*N,j=n*w,k=j-(j-w),m=w-k,j=n*N,q=j-(j-N),v=N-q,E=m*v-(D-k*q-m*q-k*v),G=y*K,j=n*y,k=j-(j-y),m=y-k,j=n*K,q=j-(j-K),v=K-q,H=m*v-(G-k*q-m*q-k*v),z=E-H,g=E-z,p[0]=E-(z+g)+(g-H),B=D+z,g=B-D,C=D-(B-g)+(z-g),z=C-G,g=C-z,p[1]=C-(z+g)+(g-G),I=B+z,g=I-B,p[2]=B-(I-g)+(z-g),p[3]=I;const Q=s(4,b,4,p,h);D=J*F,j=n*J,k=j-(j-J),m=J-k,j=n*F,q=j-(j-F),v=F-q,E=m*v-(D-k*q-m*q-k*v),G=L*A,j=n*L,k=j-(j-L),m=L-k,j=n*A,q=j-(j-A),v=A-q,H=m*v-(G-k*q-m*q-k*v),z=E-H,g=E-z,p[0]=E-(z+g)+(g-H),B=D+z,g=B-D,C=D-(B-g)+(z-g),z=C-G,g=C-z,p[1]=C-(z+g)+(g-G),I=B+z,g=I-B,p[2]=B-(I-g)+(z-g),p[3]=I;const R=s(Q,h,4,p,M);D=w*F,j=n*w,k=j-(j-w),m=w-k,j=n*F,q=j-(j-F),v=F-q,E=m*v-(D-k*q-m*q-k*v),G=y*A,j=n*y,k=j-(j-y),m=y-k,j=n*A,q=j-(j-A),v=A-q,H=m*v-(G-k*q-m*q-k*v),z=E-H,g=E-z,p[0]=E-(z+g)+(g-H),B=D+z,g=B-D,C=D-(B-g)+(z-g),z=C-G,g=C-z,p[1]=C-(z+g)+(g-G),I=B+z,g=I-B,p[2]=B-(I-g)+(z-g),p[3]=I;const S=s(R,M,4,p,l);return l[S-1]}(t,a,e,o,u,x,A)}function d(t,n,r,s,a,e){return(n-e)*(r-a)-(t-a)*(s-e)}const w=3330669073875473e-31,y=32047474274603644e-47,A=u(4),F=u(4),g=u(4),j=u(4),k=u(4),m=u(4),q=u(4),v=u(4),z=u(4),B=u(8),C=u(8),D=u(8),E=u(4),G=u(8),H=u(8),I=u(8),J=u(12);let K=u(192),L=u(192);function N(t,n,r){t=s(t,K,n,r,L);const a=K;return K=L,L=a,t}function O(t,r,s,a,e,o,c,u){let f,i,b,h,M,l,p,x,d,w,y,A,F,g,j;return 0===t?0===r?(c[0]=0,u[0]=0,1):(j=-r,w=j*s,i=n*j,b=i-(i-j),h=j-b,i=n*s,M=i-(i-s),l=s-M,c[0]=h*l-(w-b*M-h*M-b*l),c[1]=w,w=r*e,i=n*r,b=i-(i-r),h=r-b,i=n*e,M=i-(i-e),l=e-M,u[0]=h*l-(w-b*M-h*M-b*l),u[1]=w,2):0===r?(w=t*a,i=n*t,b=i-(i-t),h=t-b,i=n*a,M=i-(i-a),l=a-M,c[0]=h*l-(w-b*M-h*M-b*l),c[1]=w,j=-t,w=j*o,i=n*j,b=i-(i-j),h=j-b,i=n*o,M=i-(i-o),l=o-M,u[0]=h*l-(w-b*M-h*M-b*l),u[1]=w,2):(w=t*a,i=n*t,b=i-(i-t),h=t-b,i=n*a,M=i-(i-a),l=a-M,y=h*l-(w-b*M-h*M-b*l),A=r*s,i=n*r,b=i-(i-r),h=r-b,i=n*s,M=i-(i-s),l=s-M,F=h*l-(A-b*M-h*M-b*l),p=y-F,f=y-p,c[0]=y-(p+f)+(f-F),x=w+p,f=x-w,d=w-(x-f)+(p-f),p=d-A,f=d-p,c[1]=d-(p+f)+(f-A),g=x+p,f=g-x,c[2]=x-(g-f)+(p-f),c[3]=g,w=r*e,i=n*r,b=i-(i-r),h=r-b,i=n*e,M=i-(i-e),l=e-M,y=h*l-(w-b*M-h*M-b*l),A=t*o,i=n*t,b=i-(i-t),h=t-b,i=n*o,M=i-(i-o),l=o-M,F=h*l-(A-b*M-h*M-b*l),p=y-F,f=y-p,u[0]=y-(p+f)+(f-F),x=w+p,f=x-w,d=w-(x-f)+(p-f),p=d-A,f=d-p,u[1]=d-(p+f)+(f-A),g=x+p,f=g-x,u[2]=x-(g-f)+(p-f),u[3]=g,4)}function P(t,r,s,a,e){let o,c,u,f,i,b,h,M,l,p,x,d,w;return x=r*s,c=n*r,u=c-(c-r),f=r-u,c=n*s,i=c-(c-s),b=s-i,d=f*b-(x-u*i-f*i-u*b),c=n*a,i=c-(c-a),b=a-i,h=d*a,c=n*d,u=c-(c-d),f=d-u,E[0]=f*b-(h-u*i-f*i-u*b),M=x*a,c=n*x,u=c-(c-x),f=x-u,p=f*b-(M-u*i-f*i-u*b),l=h+p,o=l-h,E[1]=h-(l-o)+(p-o),w=M+l,E[2]=l-(w-M),E[3]=w,t=N(t,4,E),0!==e&&(c=n*e,i=c-(c-e),b=e-i,h=d*e,c=n*d,u=c-(c-d),f=d-u,E[0]=f*b-(h-u*i-f*i-u*b),M=x*e,c=n*x,u=c-(c-x),f=x-u,p=f*b-(M-u*i-f*i-u*b),l=h+p,o=l-h,E[1]=h-(l-o)+(p-o),w=M+l,E[2]=l-(w-M),E[3]=w,t=N(t,4,E)),t}function Q(t,a,o,u,f,i,b,h,M,l,p,x){const d=t-l,E=u-l,L=b-l,Q=a-p,R=f-p,S=h-p,T=o-x,U=i-x,V=M-x,W=E*S,X=L*R,Y=L*Q,Z=d*S,$=d*R,_=E*Q,tt=T*(W-X)+U*(Y-Z)+V*($-_),nt=(Math.abs(W)+Math.abs(X))*Math.abs(T)+(Math.abs(Y)+Math.abs(Z))*Math.abs(U)+(Math.abs($)+Math.abs(_))*Math.abs(V),rt=7771561172376103e-31*nt;return tt>rt||-tt>rt?tt:function(t,a,o,u,f,i,b,h,M,l,p,x,d){let E,L,Q,R,S,T,U,V,W,X,Y,Z,$,_,tt,nt,rt,st,at,et,ot,ct,ut,ft;const it=t-l,bt=u-l,ht=b-l,Mt=a-p,lt=f-p,pt=h-p,xt=o-x,dt=i-x,wt=M-x;et=bt*pt,Z=n*bt,$=Z-(Z-bt),_=bt-$,Z=n*pt,tt=Z-(Z-pt),nt=pt-tt,ot=_*nt-(et-$*tt-_*tt-$*nt),ct=ht*lt,Z=n*ht,$=Z-(Z-ht),_=ht-$,Z=n*lt,tt=Z-(Z-lt),nt=lt-tt,ut=_*nt-(ct-$*tt-_*tt-$*nt),rt=ot-ut,Y=ot-rt,A[0]=ot-(rt+Y)+(Y-ut),st=et+rt,Y=st-et,at=et-(st-Y)+(rt-Y),rt=at-ct,Y=at-rt,A[1]=at-(rt+Y)+(Y-ct),ft=st+rt,Y=ft-st,A[2]=st-(ft-Y)+(rt-Y),A[3]=ft,et=ht*Mt,Z=n*ht,$=Z-(Z-ht),_=ht-$,Z=n*Mt,tt=Z-(Z-Mt),nt=Mt-tt,ot=_*nt-(et-$*tt-_*tt-$*nt),ct=it*pt,Z=n*it,$=Z-(Z-it),_=it-$,Z=n*pt,tt=Z-(Z-pt),nt=pt-tt,ut=_*nt-(ct-$*tt-_*tt-$*nt),rt=ot-ut,Y=ot-rt,F[0]=ot-(rt+Y)+(Y-ut),st=et+rt,Y=st-et,at=et-(st-Y)+(rt-Y),rt=at-ct,Y=at-rt,F[1]=at-(rt+Y)+(Y-ct),ft=st+rt,Y=ft-st,F[2]=st-(ft-Y)+(rt-Y),F[3]=ft,et=it*lt,Z=n*it,$=Z-(Z-it),_=it-$,Z=n*lt,tt=Z-(Z-lt),nt=lt-tt,ot=_*nt-(et-$*tt-_*tt-$*nt),ct=bt*Mt,Z=n*bt,$=Z-(Z-bt),_=bt-$,Z=n*Mt,tt=Z-(Z-Mt),nt=Mt-tt,ut=_*nt-(ct-$*tt-_*tt-$*nt),rt=ot-ut,Y=ot-rt,g[0]=ot-(rt+Y)+(Y-ut),st=et+rt,Y=st-et,at=et-(st-Y)+(rt-Y),rt=at-ct,Y=at-rt,g[1]=at-(rt+Y)+(Y-ct),ft=st+rt,Y=ft-st,g[2]=st-(ft-Y)+(rt-Y),g[3]=ft,E=s(s(e(4,A,xt,G),G,e(4,F,dt,H),H,I),I,e(4,g,wt,G),G,K);let yt=c(E,K),At=w*d;if(yt>=At||-yt>=At)return yt;if(Y=t-it,L=t-(it+Y)+(Y-l),Y=u-bt,Q=u-(bt+Y)+(Y-l),Y=b-ht,R=b-(ht+Y)+(Y-l),Y=a-Mt,S=a-(Mt+Y)+(Y-p),Y=f-lt,T=f-(lt+Y)+(Y-p),Y=h-pt,U=h-(pt+Y)+(Y-p),Y=o-xt,V=o-(xt+Y)+(Y-x),Y=i-dt,W=i-(dt+Y)+(Y-x),Y=M-wt,X=M-(wt+Y)+(Y-x),0===L&&0===Q&&0===R&&0===S&&0===T&&0===U&&0===V&&0===W&&0===X)return yt;if(At=y*d+r*Math.abs(yt),yt+=xt*(bt*U+pt*Q-(lt*R+ht*T))+V*(bt*pt-lt*ht)+dt*(ht*S+Mt*R-(pt*L+it*U))+W*(ht*Mt-pt*it)+wt*(it*T+lt*L-(Mt*Q+bt*S))+X*(it*lt-Mt*bt),yt>=At||-yt>=At)return yt;const Ft=O(L,S,bt,lt,ht,pt,j,k),gt=O(Q,T,ht,pt,it,Mt,m,q),jt=O(R,U,it,Mt,bt,lt,v,z),kt=s(gt,m,jt,z,B);E=N(E,e(kt,B,xt,I),I);const mt=s(jt,v,Ft,k,C);E=N(E,e(mt,C,dt,I),I);const qt=s(Ft,j,gt,q,D);return E=N(E,e(qt,D,wt,I),I),0!==V&&(E=N(E,e(4,A,V,J),J),E=N(E,e(kt,B,V,I),I)),0!==W&&(E=N(E,e(4,F,W,J),J),E=N(E,e(mt,C,W,I),I)),0!==X&&(E=N(E,e(4,g,X,J),J),E=N(E,e(qt,D,X,I),I)),0!==L&&(0!==T&&(E=P(E,L,T,wt,X)),0!==U&&(E=P(E,-L,U,dt,W))),0!==Q&&(0!==U&&(E=P(E,Q,U,xt,V)),0!==S&&(E=P(E,-Q,S,wt,X))),0!==R&&(0!==S&&(E=P(E,R,S,dt,W)),0!==T&&(E=P(E,-R,T,xt,V))),K[E-1]}(t,a,o,u,f,i,b,h,M,l,p,x,nt)}function R(t,n,r,s,a,e,o,c,u,f,i,b){const h=n-i,M=a-i,l=c-i,p=r-b,x=e-b,d=u-b;return(t-f)*(M*d-x*l)+(s-f)*(l*p-d*h)+(o-f)*(h*x-p*M)}const S=4440892098500632e-31,T=5423418723394464e-46,U=u(4),V=u(4),W=u(4),X=u(4),Y=u(4),Z=u(4),$=u(4),_=u(4),tt=u(8),nt=u(8),rt=u(8),st=u(8),at=u(8),et=u(8),ot=u(8),ct=u(8),ut=u(8),ft=u(4),it=u(4),bt=u(4),ht=u(8),Mt=u(16),lt=u(16),pt=u(16),xt=u(32),dt=u(32),wt=u(48),yt=u(64);let At=u(1152),Ft=u(1152);function gt(t,n,r){t=s(t,At,n,r,Ft);const a=At;return At=Ft,Ft=a,t}function jt(t,o,u,f,i,b,h,M){const l=t-h,p=u-h,x=i-h,d=o-M,w=f-M,y=b-M,A=p*y,F=x*w,g=l*l+d*d,j=x*d,k=l*y,m=p*p+w*w,q=l*w,v=p*d,z=x*x+y*y,B=g*(A-F)+m*(j-k)+z*(q-v),C=(Math.abs(A)+Math.abs(F))*g+(Math.abs(j)+Math.abs(k))*m+(Math.abs(q)+Math.abs(v))*z,D=11102230246251577e-31*C;return B>D||-B>D?B:function(t,o,u,f,i,b,h,M,l){let p,x,d,w,y,A,F,g,j,k,m,q,v,z,B,C,D,E,G,H,I,J,K,L,N,O,P,Q,R,Ft,jt,kt,mt,qt,vt;const zt=t-h,Bt=u-h,Ct=i-h,Dt=o-M,Et=f-M,Gt=b-M;jt=Bt*Gt,K=n*Bt,L=K-(K-Bt),N=Bt-L,K=n*Gt,O=K-(K-Gt),P=Gt-O,kt=N*P-(jt-L*O-N*O-L*P),mt=Ct*Et,K=n*Ct,L=K-(K-Ct),N=Ct-L,K=n*Et,O=K-(K-Et),P=Et-O,qt=N*P-(mt-L*O-N*O-L*P),Q=kt-qt,J=kt-Q,U[0]=kt-(Q+J)+(J-qt),R=jt+Q,J=R-jt,Ft=jt-(R-J)+(Q-J),Q=Ft-mt,J=Ft-Q,U[1]=Ft-(Q+J)+(J-mt),vt=R+Q,J=vt-R,U[2]=R-(vt-J)+(Q-J),U[3]=vt,jt=Ct*Dt,K=n*Ct,L=K-(K-Ct),N=Ct-L,K=n*Dt,O=K-(K-Dt),P=Dt-O,kt=N*P-(jt-L*O-N*O-L*P),mt=zt*Gt,K=n*zt,L=K-(K-zt),N=zt-L,K=n*Gt,O=K-(K-Gt),P=Gt-O,qt=N*P-(mt-L*O-N*O-L*P),Q=kt-qt,J=kt-Q,V[0]=kt-(Q+J)+(J-qt),R=jt+Q,J=R-jt,Ft=jt-(R-J)+(Q-J),Q=Ft-mt,J=Ft-Q,V[1]=Ft-(Q+J)+(J-mt),vt=R+Q,J=vt-R,V[2]=R-(vt-J)+(Q-J),V[3]=vt,jt=zt*Et,K=n*zt,L=K-(K-zt),N=zt-L,K=n*Et,O=K-(K-Et),P=Et-O,kt=N*P-(jt-L*O-N*O-L*P),mt=Bt*Dt,K=n*Bt,L=K-(K-Bt),N=Bt-L,K=n*Dt,O=K-(K-Dt),P=Dt-O,qt=N*P-(mt-L*O-N*O-L*P),Q=kt-qt,J=kt-Q,W[0]=kt-(Q+J)+(J-qt),R=jt+Q,J=R-jt,Ft=jt-(R-J)+(Q-J),Q=Ft-mt,J=Ft-Q,W[1]=Ft-(Q+J)+(J-mt),vt=R+Q,J=vt-R,W[2]=R-(vt-J)+(Q-J),W[3]=vt,p=s(s(s(e(e(4,U,zt,ht),ht,zt,Mt),Mt,e(e(4,U,Dt,ht),ht,Dt,lt),lt,xt),xt,s(e(e(4,V,Bt,ht),ht,Bt,Mt),Mt,e(e(4,V,Et,ht),ht,Et,lt),lt,dt),dt,yt),yt,s(e(e(4,W,Ct,ht),ht,Ct,Mt),Mt,e(e(4,W,Gt,ht),ht,Gt,lt),lt,xt),xt,At);let Ht=c(p,At),It=S*l;if(Ht>=It||-Ht>=It)return Ht;if(J=t-zt,x=t-(zt+J)+(J-h),J=o-Dt,y=o-(Dt+J)+(J-M),J=u-Bt,d=u-(Bt+J)+(J-h),J=f-Et,A=f-(Et+J)+(J-M),J=i-Ct,w=i-(Ct+J)+(J-h),J=b-Gt,F=b-(Gt+J)+(J-M),0===x&&0===d&&0===w&&0===y&&0===A&&0===F)return Ht;if(It=T*l+r*Math.abs(Ht),Ht+=(zt*zt+Dt*Dt)*(Bt*F+Gt*d-(Et*w+Ct*A))+2*(zt*x+Dt*y)*(Bt*Gt-Et*Ct)+((Bt*Bt+Et*Et)*(Ct*y+Dt*w-(Gt*x+zt*F))+2*(Bt*d+Et*A)*(Ct*Dt-Gt*zt))+((Ct*Ct+Gt*Gt)*(zt*A+Et*x-(Dt*d+Bt*y))+2*(Ct*w+Gt*F)*(zt*Et-Dt*Bt)),Ht>=It||-Ht>=It)return Ht;if(0===d&&0===A&&0===w&&0===F||(jt=zt*zt,K=n*zt,L=K-(K-zt),N=zt-L,kt=N*N-(jt-L*L-(L+L)*N),mt=Dt*Dt,K=n*Dt,L=K-(K-Dt),N=Dt-L,qt=N*N-(mt-L*L-(L+L)*N),Q=kt+qt,J=Q-kt,X[0]=kt-(Q-J)+(qt-J),R=jt+Q,J=R-jt,Ft=jt-(R-J)+(Q-J),Q=Ft+mt,J=Q-Ft,X[1]=Ft-(Q-J)+(mt-J),vt=R+Q,J=vt-R,X[2]=R-(vt-J)+(Q-J),X[3]=vt),0===w&&0===F&&0===x&&0===y||(jt=Bt*Bt,K=n*Bt,L=K-(K-Bt),N=Bt-L,kt=N*N-(jt-L*L-(L+L)*N),mt=Et*Et,K=n*Et,L=K-(K-Et),N=Et-L,qt=N*N-(mt-L*L-(L+L)*N),Q=kt+qt,J=Q-kt,Y[0]=kt-(Q-J)+(qt-J),R=jt+Q,J=R-jt,Ft=jt-(R-J)+(Q-J),Q=Ft+mt,J=Q-Ft,Y[1]=Ft-(Q-J)+(mt-J),vt=R+Q,J=vt-R,Y[2]=R-(vt-J)+(Q-J),Y[3]=vt),0===x&&0===y&&0===d&&0===A||(jt=Ct*Ct,K=n*Ct,L=K-(K-Ct),N=Ct-L,kt=N*N-(jt-L*L-(L+L)*N),mt=Gt*Gt,K=n*Gt,L=K-(K-Gt),N=Gt-L,qt=N*N-(mt-L*L-(L+L)*N),Q=kt+qt,J=Q-kt,Z[0]=kt-(Q-J)+(qt-J),R=jt+Q,J=R-jt,Ft=jt-(R-J)+(Q-J),Q=Ft+mt,J=Q-Ft,Z[1]=Ft-(Q-J)+(mt-J),vt=R+Q,J=vt-R,Z[2]=R-(vt-J)+(Q-J),Z[3]=vt),0!==x&&(g=e(4,U,x,tt),p=gt(p,a(e(g,tt,2*zt,Mt),Mt,e(e(4,Z,x,ht),ht,Et,lt),lt,e(e(4,Y,x,ht),ht,-Gt,pt),pt,xt,wt),wt)),0!==y&&(j=e(4,U,y,nt),p=gt(p,a(e(j,nt,2*Dt,Mt),Mt,e(e(4,Y,y,ht),ht,Ct,lt),lt,e(e(4,Z,y,ht),ht,-Bt,pt),pt,xt,wt),wt)),0!==d&&(k=e(4,V,d,rt),p=gt(p,a(e(k,rt,2*Bt,Mt),Mt,e(e(4,X,d,ht),ht,Gt,lt),lt,e(e(4,Z,d,ht),ht,-Dt,pt),pt,xt,wt),wt)),0!==A&&(m=e(4,V,A,st),p=gt(p,a(e(m,st,2*Et,Mt),Mt,e(e(4,Z,A,ht),ht,zt,lt),lt,e(e(4,X,A,ht),ht,-Ct,pt),pt,xt,wt),wt)),0!==w&&(q=e(4,W,w,at),p=gt(p,a(e(q,at,2*Ct,Mt),Mt,e(e(4,Y,w,ht),ht,Dt,lt),lt,e(e(4,X,w,ht),ht,-Et,pt),pt,xt,wt),wt)),0!==F&&(v=e(4,W,F,et),p=gt(p,a(e(v,et,2*Gt,Mt),Mt,e(e(4,X,F,ht),ht,Bt,lt),lt,e(e(4,Y,F,ht),ht,-zt,pt),pt,xt,wt),wt)),0!==x||0!==y){if(0!==d||0!==A||0!==w||0!==F?(jt=d*Gt,K=n*d,L=K-(K-d),N=d-L,K=n*Gt,O=K-(K-Gt),P=Gt-O,kt=N*P-(jt-L*O-N*O-L*P),mt=Bt*F,K=n*Bt,L=K-(K-Bt),N=Bt-L,K=n*F,O=K-(K-F),P=F-O,qt=N*P-(mt-L*O-N*O-L*P),Q=kt+qt,J=Q-kt,$[0]=kt-(Q-J)+(qt-J),R=jt+Q,J=R-jt,Ft=jt-(R-J)+(Q-J),Q=Ft+mt,J=Q-Ft,$[1]=Ft-(Q-J)+(mt-J),vt=R+Q,J=vt-R,$[2]=R-(vt-J)+(Q-J),$[3]=vt,jt=w*-Et,K=n*w,L=K-(K-w),N=w-L,K=n*-Et,O=K-(K- -Et),P=-Et-O,kt=N*P-(jt-L*O-N*O-L*P),mt=Ct*-A,K=n*Ct,L=K-(K-Ct),N=Ct-L,K=n*-A,O=K-(K- -A),P=-A-O,qt=N*P-(mt-L*O-N*O-L*P),Q=kt+qt,J=Q-kt,_[0]=kt-(Q-J)+(qt-J),R=jt+Q,J=R-jt,Ft=jt-(R-J)+(Q-J),Q=Ft+mt,J=Q-Ft,_[1]=Ft-(Q-J)+(mt-J),vt=R+Q,J=vt-R,_[2]=R-(vt-J)+(Q-J),_[3]=vt,B=s(4,$,4,_,ct),jt=d*F,K=n*d,L=K-(K-d),N=d-L,K=n*F,O=K-(K-F),P=F-O,kt=N*P-(jt-L*O-N*O-L*P),mt=w*A,K=n*w,L=K-(K-w),N=w-L,K=n*A,O=K-(K-A),P=A-O,qt=N*P-(mt-L*O-N*O-L*P),Q=kt-qt,J=kt-Q,it[0]=kt-(Q+J)+(J-qt),R=jt+Q,J=R-jt,Ft=jt-(R-J)+(Q-J),Q=Ft-mt,J=Ft-Q,it[1]=Ft-(Q+J)+(J-mt),vt=R+Q,J=vt-R,it[2]=R-(vt-J)+(Q-J),it[3]=vt,E=4):(ct[0]=0,B=1,it[0]=0,E=1),0!==x){const t=e(B,ct,x,pt);p=gt(p,s(e(g,tt,x,Mt),Mt,e(t,pt,2*zt,xt),xt,wt),wt);const n=e(E,it,x,ht);p=gt(p,a(e(n,ht,2*zt,Mt),Mt,e(n,ht,x,lt),lt,e(t,pt,x,xt),xt,dt,yt),yt),0!==A&&(p=gt(p,e(e(4,Z,x,ht),ht,A,Mt),Mt)),0!==F&&(p=gt(p,e(e(4,Y,-x,ht),ht,F,Mt),Mt))}if(0!==y){const t=e(B,ct,y,pt);p=gt(p,s(e(j,nt,y,Mt),Mt,e(t,pt,2*Dt,xt),xt,wt),wt);const n=e(E,it,y,ht);p=gt(p,a(e(n,ht,2*Dt,Mt),Mt,e(n,ht,y,lt),lt,e(t,pt,y,xt),xt,dt,yt),yt)}}if(0!==d||0!==A){if(0!==w||0!==F||0!==x||0!==y?(jt=w*Dt,K=n*w,L=K-(K-w),N=w-L,K=n*Dt,O=K-(K-Dt),P=Dt-O,kt=N*P-(jt-L*O-N*O-L*P),mt=Ct*y,K=n*Ct,L=K-(K-Ct),N=Ct-L,K=n*y,O=K-(K-y),P=y-O,qt=N*P-(mt-L*O-N*O-L*P),Q=kt+qt,J=Q-kt,$[0]=kt-(Q-J)+(qt-J),R=jt+Q,J=R-jt,Ft=jt-(R-J)+(Q-J),Q=Ft+mt,J=Q-Ft,$[1]=Ft-(Q-J)+(mt-J),vt=R+Q,J=vt-R,$[2]=R-(vt-J)+(Q-J),$[3]=vt,H=-Gt,I=-F,jt=x*H,K=n*x,L=K-(K-x),N=x-L,K=n*H,O=K-(K-H),P=H-O,kt=N*P-(jt-L*O-N*O-L*P),mt=zt*I,K=n*zt,L=K-(K-zt),N=zt-L,K=n*I,O=K-(K-I),P=I-O,qt=N*P-(mt-L*O-N*O-L*P),Q=kt+qt,J=Q-kt,_[0]=kt-(Q-J)+(qt-J),R=jt+Q,J=R-jt,Ft=jt-(R-J)+(Q-J),Q=Ft+mt,J=Q-Ft,_[1]=Ft-(Q-J)+(mt-J),vt=R+Q,J=vt-R,_[2]=R-(vt-J)+(Q-J),_[3]=vt,C=s(4,$,4,_,ut),jt=w*y,K=n*w,L=K-(K-w),N=w-L,K=n*y,O=K-(K-y),P=y-O,kt=N*P-(jt-L*O-N*O-L*P),mt=x*F,K=n*x,L=K-(K-x),N=x-L,K=n*F,O=K-(K-F),P=F-O,qt=N*P-(mt-L*O-N*O-L*P),Q=kt-qt,J=kt-Q,bt[0]=kt-(Q+J)+(J-qt),R=jt+Q,J=R-jt,Ft=jt-(R-J)+(Q-J),Q=Ft-mt,J=Ft-Q,bt[1]=Ft-(Q+J)+(J-mt),vt=R+Q,J=vt-R,bt[2]=R-(vt-J)+(Q-J),bt[3]=vt,G=4):(ut[0]=0,C=1,bt[0]=0,G=1),0!==d){const t=e(C,ut,d,pt);p=gt(p,s(e(k,rt,d,Mt),Mt,e(t,pt,2*Bt,xt),xt,wt),wt);const n=e(G,bt,d,ht);p=gt(p,a(e(n,ht,2*Bt,Mt),Mt,e(n,ht,d,lt),lt,e(t,pt,d,xt),xt,dt,yt),yt),0!==F&&(p=gt(p,e(e(4,X,d,ht),ht,F,Mt),Mt)),0!==y&&(p=gt(p,e(e(4,Z,-d,ht),ht,y,Mt),Mt))}if(0!==A){const t=e(C,ut,A,pt);p=gt(p,s(e(m,st,A,Mt),Mt,e(t,pt,2*Et,xt),xt,wt),wt);const n=e(G,bt,A,ht);p=gt(p,a(e(n,ht,2*Et,Mt),Mt,e(n,ht,A,lt),lt,e(t,pt,A,xt),xt,dt,yt),yt)}}if(0!==w||0!==F){if(0!==x||0!==y||0!==d||0!==A?(jt=x*Et,K=n*x,L=K-(K-x),N=x-L,K=n*Et,O=K-(K-Et),P=Et-O,kt=N*P-(jt-L*O-N*O-L*P),mt=zt*A,K=n*zt,L=K-(K-zt),N=zt-L,K=n*A,O=K-(K-A),P=A-O,qt=N*P-(mt-L*O-N*O-L*P),Q=kt+qt,J=Q-kt,$[0]=kt-(Q-J)+(qt-J),R=jt+Q,J=R-jt,Ft=jt-(R-J)+(Q-J),Q=Ft+mt,J=Q-Ft,$[1]=Ft-(Q-J)+(mt-J),vt=R+Q,J=vt-R,$[2]=R-(vt-J)+(Q-J),$[3]=vt,H=-Dt,I=-y,jt=d*H,K=n*d,L=K-(K-d),N=d-L,K=n*H,O=K-(K-H),P=H-O,kt=N*P-(jt-L*O-N*O-L*P),mt=Bt*I,K=n*Bt,L=K-(K-Bt),N=Bt-L,K=n*I,O=K-(K-I),P=I-O,qt=N*P-(mt-L*O-N*O-L*P),Q=kt+qt,J=Q-kt,_[0]=kt-(Q-J)+(qt-J),R=jt+Q,J=R-jt,Ft=jt-(R-J)+(Q-J),Q=Ft+mt,J=Q-Ft,_[1]=Ft-(Q-J)+(mt-J),vt=R+Q,J=vt-R,_[2]=R-(vt-J)+(Q-J),_[3]=vt,z=s(4,$,4,_,ot),jt=x*A,K=n*x,L=K-(K-x),N=x-L,K=n*A,O=K-(K-A),P=A-O,kt=N*P-(jt-L*O-N*O-L*P),mt=d*y,K=n*d,L=K-(K-d),N=d-L,K=n*y,O=K-(K-y),P=y-O,qt=N*P-(mt-L*O-N*O-L*P),Q=kt-qt,J=kt-Q,ft[0]=kt-(Q+J)+(J-qt),R=jt+Q,J=R-jt,Ft=jt-(R-J)+(Q-J),Q=Ft-mt,J=Ft-Q,ft[1]=Ft-(Q+J)+(J-mt),vt=R+Q,J=vt-R,ft[2]=R-(vt-J)+(Q-J),ft[3]=vt,D=4):(ot[0]=0,z=1,ft[0]=0,D=1),0!==w){const t=e(z,ot,w,pt);p=gt(p,s(e(q,at,w,Mt),Mt,e(t,pt,2*Ct,xt),xt,wt),wt);const n=e(D,ft,w,ht);p=gt(p,a(e(n,ht,2*Ct,Mt),Mt,e(n,ht,w,lt),lt,e(t,pt,w,xt),xt,dt,yt),yt),0!==y&&(p=gt(p,e(e(4,Y,w,ht),ht,y,Mt),Mt)),0!==A&&(p=gt(p,e(e(4,X,-w,ht),ht,A,Mt),Mt))}if(0!==F){const t=e(z,ot,F,pt);p=gt(p,s(e(v,et,F,Mt),Mt,e(t,pt,2*Gt,xt),xt,wt),wt);const n=e(D,ft,F,ht);p=gt(p,a(e(n,ht,2*Gt,Mt),Mt,e(n,ht,F,lt),lt,e(t,pt,F,xt),xt,dt,yt),yt)}}return At[p-1]}(t,o,u,f,i,b,h,M,C)}function kt(t,n,r,s,a,e,o,c){const u=t-o,f=n-c,i=r-o,b=s-c,h=a-o,M=e-c;return(u*u+f*f)*(i*M-h*b)+(i*i+b*b)*(h*f-u*M)+(h*h+M*M)*(u*b-i*f)}const mt=5551115123125792e-31,qt=8751425667295619e-46,vt=u(4),zt=u(4),Bt=u(4),Ct=u(4),Dt=u(4),Et=u(4),Gt=u(4),Ht=u(4),It=u(4),Jt=u(4),Kt=u(24),Lt=u(24),Nt=u(24),Ot=u(24),Pt=u(24),Qt=u(24),Rt=u(24),St=u(24),Tt=u(24),Ut=u(24),Vt=u(1152),Wt=u(1152),Xt=u(1152),Yt=u(1152),Zt=u(1152),$t=u(2304),_t=u(2304),tn=u(3456),nn=u(5760),rn=u(8),sn=u(8),an=u(8),en=u(16),on=u(24),cn=u(48),un=u(48),fn=u(96),bn=u(192),hn=u(384),Mn=u(384),ln=u(384),pn=u(768);function xn(t,n,r,s,o,c,u){return a(e(4,t,s,rn),rn,e(4,n,o,sn),sn,e(4,r,c,an),an,en,u)}function dn(t,n,r,c,u,f,i,b,h,M,l,p){const x=s(s(t,n,r,c,cn),cn,o(s(u,f,i,b,un),un),un,fn);return a(e(e(x,fn,h,bn),bn,h,hn),hn,e(e(x,fn,M,bn),bn,M,Mn),Mn,e(e(x,fn,l,bn),bn,l,ln),ln,pn,p)}const wn=u(96),yn=u(96),An=u(96),Fn=u(1152);function gn(t,n,r,s,o,c,u,f,i,b){const h=xn(t,n,r,s,o,c,on);return a(e(e(h,on,u,cn),cn,u,wn),wn,e(e(h,on,f,cn),cn,f,yn),yn,e(e(h,on,i,cn),cn,i,An),An,bn,b)}function jn(t,e,u,f,i,b,h,M,l,p,x,d,w,y,A,F){let g,j,k,m,q,v,z,B,C,D,E,G,H,I,J,K,L,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$;const _=t-w,tt=f-w,nt=h-w,rt=p-w,st=e-y,at=i-y,et=M-y,ot=x-y,ct=u-A,ut=b-A,ft=l-A,it=d-A;X=_*at,P=n*_,Q=P-(P-_),R=_-Q,P=n*at,S=P-(P-at),T=at-S,Y=R*T-(X-Q*S-R*S-Q*T),Z=tt*st,P=n*tt,Q=P-(P-tt),R=tt-Q,P=n*st,S=P-(P-st),T=st-S,$=R*T-(Z-Q*S-R*S-Q*T),U=Y-$,O=Y-U,vt[0]=Y-(U+O)+(O-$),V=X+U,O=V-X,W=X-(V-O)+(U-O),U=W-Z,O=W-U,vt[1]=W-(U+O)+(O-Z),g=V+U,O=g-V,vt[2]=V-(g-O)+(U-O),vt[3]=g,X=tt*et,P=n*tt,Q=P-(P-tt),R=tt-Q,P=n*et,S=P-(P-et),T=et-S,Y=R*T-(X-Q*S-R*S-Q*T),Z=nt*at,P=n*nt,Q=P-(P-nt),R=nt-Q,P=n*at,S=P-(P-at),T=at-S,$=R*T-(Z-Q*S-R*S-Q*T),U=Y-$,O=Y-U,zt[0]=Y-(U+O)+(O-$),V=X+U,O=V-X,W=X-(V-O)+(U-O),U=W-Z,O=W-U,zt[1]=W-(U+O)+(O-Z),j=V+U,O=j-V,zt[2]=V-(j-O)+(U-O),zt[3]=j,X=nt*ot,P=n*nt,Q=P-(P-nt),R=nt-Q,P=n*ot,S=P-(P-ot),T=ot-S,Y=R*T-(X-Q*S-R*S-Q*T),Z=rt*et,P=n*rt,Q=P-(P-rt),R=rt-Q,P=n*et,S=P-(P-et),T=et-S,$=R*T-(Z-Q*S-R*S-Q*T),U=Y-$,O=Y-U,Bt[0]=Y-(U+O)+(O-$),V=X+U,O=V-X,W=X-(V-O)+(U-O),U=W-Z,O=W-U,Bt[1]=W-(U+O)+(O-Z),k=V+U,O=k-V,Bt[2]=V-(k-O)+(U-O),Bt[3]=k,X=rt*st,P=n*rt,Q=P-(P-rt),R=rt-Q,P=n*st,S=P-(P-st),T=st-S,Y=R*T-(X-Q*S-R*S-Q*T),Z=_*ot,P=n*_,Q=P-(P-_),R=_-Q,P=n*ot,S=P-(P-ot),T=ot-S,$=R*T-(Z-Q*S-R*S-Q*T),U=Y-$,O=Y-U,It[0]=Y-(U+O)+(O-$),V=X+U,O=V-X,W=X-(V-O)+(U-O),U=W-Z,O=W-U,It[1]=W-(U+O)+(O-Z),m=V+U,O=m-V,It[2]=V-(m-O)+(U-O),It[3]=m,X=_*et,P=n*_,Q=P-(P-_),R=_-Q,P=n*et,S=P-(P-et),T=et-S,Y=R*T-(X-Q*S-R*S-Q*T),Z=nt*st,P=n*nt,Q=P-(P-nt),R=nt-Q,P=n*st,S=P-(P-st),T=st-S,$=R*T-(Z-Q*S-R*S-Q*T),U=Y-$,O=Y-U,Et[0]=Y-(U+O)+(O-$),V=X+U,O=V-X,W=X-(V-O)+(U-O),U=W-Z,O=W-U,Et[1]=W-(U+O)+(O-Z),q=V+U,O=q-V,Et[2]=V-(q-O)+(U-O),Et[3]=q,X=tt*ot,P=n*tt,Q=P-(P-tt),R=tt-Q,P=n*ot,S=P-(P-ot),T=ot-S,Y=R*T-(X-Q*S-R*S-Q*T),Z=rt*at,P=n*rt,Q=P-(P-rt),R=rt-Q,P=n*at,S=P-(P-at),T=at-S,$=R*T-(Z-Q*S-R*S-Q*T),U=Y-$,O=Y-U,Gt[0]=Y-(U+O)+(O-$),V=X+U,O=V-X,W=X-(V-O)+(U-O),U=W-Z,O=W-U,Gt[1]=W-(U+O)+(O-Z),v=V+U,O=v-V,Gt[2]=V-(v-O)+(U-O),Gt[3]=v;let bt=c(s(s(o(gn(zt,Bt,Gt,it,ut,-ft,_,st,ct,Vt),Vt),Vt,gn(Bt,It,Et,ct,ft,it,tt,at,ut,Wt),Wt,$t),$t,s(o(gn(It,vt,Gt,ut,it,ct,nt,et,ft,Xt),Xt),Xt,gn(vt,zt,Et,ft,ct,-ut,rt,ot,it,Yt),Yt,_t),_t,Fn),Fn),ht=mt*F;if(bt>=ht||-bt>=ht)return bt;if(O=t-_,z=t-(_+O)+(O-w),O=e-st,E=e-(st+O)+(O-y),O=u-ct,J=u-(ct+O)+(O-A),O=f-tt,B=f-(tt+O)+(O-w),O=i-at,G=i-(at+O)+(O-y),O=b-ut,K=b-(ut+O)+(O-A),O=h-nt,C=h-(nt+O)+(O-w),O=M-et,H=M-(et+O)+(O-y),O=l-ft,L=l-(ft+O)+(O-A),O=p-rt,D=p-(rt+O)+(O-w),O=x-ot,I=x-(ot+O)+(O-y),O=d-it,N=d-(it+O)+(O-A),0===z&&0===E&&0===J&&0===B&&0===G&&0===K&&0===C&&0===H&&0===L&&0===D&&0===I&&0===N)return bt;ht=qt*F+r*Math.abs(bt);const Mt=_*G+at*z-(st*B+tt*E),lt=tt*H+et*B-(at*C+nt*G),pt=nt*I+ot*C-(et*D+rt*H),xt=rt*E+st*D-(ot*z+_*I),dt=_*H+et*z-(st*C+nt*E),wt=tt*I+ot*B-(at*D+rt*G);return bt+=(tt*tt+at*at+ut*ut)*(ft*xt+it*dt+ct*pt+(L*m+N*q+J*k))+(rt*rt+ot*ot+it*it)*(ct*lt-ut*dt+ft*Mt+(J*j-K*q+L*g))-((_*_+st*st+ct*ct)*(ut*pt-ft*wt+it*lt+(K*k-L*v+N*j))+(nt*nt+et*et+ft*ft)*(it*Mt+ct*wt+ut*xt+(N*g+J*v+K*m)))+2*((tt*B+at*G+ut*K)*(ft*m+it*q+ct*k)+(rt*D+ot*I+it*N)*(ct*j-ut*q+ft*g)-((_*z+st*E+ct*J)*(ut*k-ft*v+it*j)+(nt*C+et*H+ft*L)*(it*g+ct*v+ut*m))),bt>=ht||-bt>=ht?bt:function(t,r,s,e,o,c,u,f,i,b,h,M,l,p,x){let d,w,y,A,F,g,j,k,m,q,v,z,B,C;q=t*o,w=n*t,y=w-(w-t),A=t-y,w=n*o,F=w-(w-o),g=o-F,v=A*g-(q-y*F-A*F-y*g),z=e*r,w=n*e,y=w-(w-e),A=e-y,w=n*r,F=w-(w-r),g=r-F,B=A*g-(z-y*F-A*F-y*g),j=v-B,d=v-j,vt[0]=v-(j+d)+(d-B),k=q+j,d=k-q,m=q-(k-d)+(j-d),j=m-z,d=m-j,vt[1]=m-(j+d)+(d-z),C=k+j,d=C-k,vt[2]=k-(C-d)+(j-d),vt[3]=C,q=e*f,w=n*e,y=w-(w-e),A=e-y,w=n*f,F=w-(w-f),g=f-F,v=A*g-(q-y*F-A*F-y*g),z=u*o,w=n*u,y=w-(w-u),A=u-y,w=n*o,F=w-(w-o),g=o-F,B=A*g-(z-y*F-A*F-y*g),j=v-B,d=v-j,zt[0]=v-(j+d)+(d-B),k=q+j,d=k-q,m=q-(k-d)+(j-d),j=m-z,d=m-j,zt[1]=m-(j+d)+(d-z),C=k+j,d=C-k,zt[2]=k-(C-d)+(j-d),zt[3]=C,q=u*h,w=n*u,y=w-(w-u),A=u-y,w=n*h,F=w-(w-h),g=h-F,v=A*g-(q-y*F-A*F-y*g),z=b*f,w=n*b,y=w-(w-b),A=b-y,w=n*f,F=w-(w-f),g=f-F,B=A*g-(z-y*F-A*F-y*g),j=v-B,d=v-j,Bt[0]=v-(j+d)+(d-B),k=q+j,d=k-q,m=q-(k-d)+(j-d),j=m-z,d=m-j,Bt[1]=m-(j+d)+(d-z),C=k+j,d=C-k,Bt[2]=k-(C-d)+(j-d),Bt[3]=C,q=b*p,w=n*b,y=w-(w-b),A=b-y,w=n*p,F=w-(w-p),g=p-F,v=A*g-(q-y*F-A*F-y*g),z=l*h,w=n*l,y=w-(w-l),A=l-y,w=n*h,F=w-(w-h),g=h-F,B=A*g-(z-y*F-A*F-y*g),j=v-B,d=v-j,Ct[0]=v-(j+d)+(d-B),k=q+j,d=k-q,m=q-(k-d)+(j-d),j=m-z,d=m-j,Ct[1]=m-(j+d)+(d-z),C=k+j,d=C-k,Ct[2]=k-(C-d)+(j-d),Ct[3]=C,q=l*r,w=n*l,y=w-(w-l),A=l-y,w=n*r,F=w-(w-r),g=r-F,v=A*g-(q-y*F-A*F-y*g),z=t*p,w=n*t,y=w-(w-t),A=t-y,w=n*p,F=w-(w-p),g=p-F,B=A*g-(z-y*F-A*F-y*g),j=v-B,d=v-j,Dt[0]=v-(j+d)+(d-B),k=q+j,d=k-q,m=q-(k-d)+(j-d),j=m-z,d=m-j,Dt[1]=m-(j+d)+(d-z),C=k+j,d=C-k,Dt[2]=k-(C-d)+(j-d),Dt[3]=C,q=t*f,w=n*t,y=w-(w-t),A=t-y,w=n*f,F=w-(w-f),g=f-F,v=A*g-(q-y*F-A*F-y*g),z=u*r,w=n*u,y=w-(w-u),A=u-y,w=n*r,F=w-(w-r),g=r-F,B=A*g-(z-y*F-A*F-y*g),j=v-B,d=v-j,Et[0]=v-(j+d)+(d-B),k=q+j,d=k-q,m=q-(k-d)+(j-d),j=m-z,d=m-j,Et[1]=m-(j+d)+(d-z),C=k+j,d=C-k,Et[2]=k-(C-d)+(j-d),Et[3]=C,q=e*h,w=n*e,y=w-(w-e),A=e-y,w=n*h,F=w-(w-h),g=h-F,v=A*g-(q-y*F-A*F-y*g),z=b*o,w=n*b,y=w-(w-b),A=b-y,w=n*o,F=w-(w-o),g=o-F,B=A*g-(z-y*F-A*F-y*g),j=v-B,d=v-j,Gt[0]=v-(j+d)+(d-B),k=q+j,d=k-q,m=q-(k-d)+(j-d),j=m-z,d=m-j,Gt[1]=m-(j+d)+(d-z),C=k+j,d=C-k,Gt[2]=k-(C-d)+(j-d),Gt[3]=C,q=u*p,w=n*u,y=w-(w-u),A=u-y,w=n*p,F=w-(w-p),g=p-F,v=A*g-(q-y*F-A*F-y*g),z=l*f,w=n*l,y=w-(w-l),A=l-y,w=n*f,F=w-(w-f),g=f-F,B=A*g-(z-y*F-A*F-y*g),j=v-B,d=v-j,Ht[0]=v-(j+d)+(d-B),k=q+j,d=k-q,m=q-(k-d)+(j-d),j=m-z,d=m-j,Ht[1]=m-(j+d)+(d-z),C=k+j,d=C-k,Ht[2]=k-(C-d)+(j-d),Ht[3]=C,q=b*r,w=n*b,y=w-(w-b),A=b-y,w=n*r,F=w-(w-r),g=r-F,v=A*g-(q-y*F-A*F-y*g),z=t*h,w=n*t,y=w-(w-t),A=t-y,w=n*h,F=w-(w-h),g=h-F,B=A*g-(z-y*F-A*F-y*g),j=v-B,d=v-j,It[0]=v-(j+d)+(d-B),k=q+j,d=k-q,m=q-(k-d)+(j-d),j=m-z,d=m-j,It[1]=m-(j+d)+(d-z),C=k+j,d=C-k,It[2]=k-(C-d)+(j-d),It[3]=C,q=l*o,w=n*l,y=w-(w-l),A=l-y,w=n*o,F=w-(w-o),g=o-F,v=A*g-(q-y*F-A*F-y*g),z=e*p,w=n*e,y=w-(w-e),A=e-y,w=n*p,F=w-(w-p),g=p-F,B=A*g-(z-y*F-A*F-y*g),j=v-B,d=v-j,Jt[0]=v-(j+d)+(d-B),k=q+j,d=k-q,m=q-(k-d)+(j-d),j=m-z,d=m-j,Jt[1]=m-(j+d)+(d-z),C=k+j,d=C-k,Jt[2]=k-(C-d)+(j-d),Jt[3]=C;const D=xn(vt,zt,Et,i,s,-c,Kt),E=xn(zt,Bt,Gt,M,c,-i,Lt),G=xn(Bt,Ct,Ht,x,i,-M,Nt),H=xn(Ct,Dt,It,s,M,-x,Ot),I=xn(Dt,vt,Jt,c,x,-s,Pt),J=xn(vt,Gt,It,M,s,c,Qt),K=xn(zt,Ht,Jt,x,c,i,Rt),L=xn(Bt,It,Et,s,i,M,St),N=xn(Ct,Jt,Gt,c,M,x,Tt),O=xn(Dt,Et,Ht,i,x,s,Ut),P=a(dn(G,Nt,K,Rt,N,Tt,E,Lt,t,r,s,Vt),Vt,dn(H,Ot,L,St,O,Ut,G,Nt,e,o,c,Wt),Wt,a(dn(I,Pt,N,Tt,J,Qt,H,Ot,u,f,i,Xt),Xt,dn(D,Kt,O,Ut,K,Rt,I,Pt,b,h,M,Yt),Yt,dn(E,Lt,J,Qt,L,St,D,Kt,l,p,x,Zt),Zt,_t,tn),tn,$t,nn);return nn[P-1]}(t,e,u,f,i,b,h,M,l,p,x,d,w,y,A)}function kn(t,n,r,s,a,e,o,c,u,f,i,b,h,M,l){const p=t-h,x=s-h,d=o-h,w=f-h,y=n-M,A=a-M,F=c-M,g=i-M,j=r-l,k=e-l,m=u-l,q=b-l,v=p*A,z=x*y,B=v-z,C=x*F,D=d*A,E=C-D,G=d*g,H=w*F,I=G-H,J=w*y,K=p*g,L=J-K,N=p*F,O=d*y,P=N-O,Q=x*g,R=w*A,S=Q-R,T=p*p+y*y+j*j,U=x*x+A*A+k*k,V=d*d+F*F+m*m,W=w*w+g*g+q*q,X=V*(q*B+j*S+k*L)-W*(j*E-k*P+m*B)+(T*(k*I-m*S+q*E)-U*(m*L+q*P+j*I)),Y=Math.abs(j),Z=Math.abs(k),$=Math.abs(m),_=Math.abs(q),tt=Math.abs(v)+Math.abs(z),nt=Math.abs(C)+Math.abs(D),rt=Math.abs(G)+Math.abs(H),st=Math.abs(J)+Math.abs(K),at=Math.abs(N)+Math.abs(O),et=Math.abs(Q)+Math.abs(R),ot=(rt*Z+et*$+nt*_)*T+(st*$+at*_+rt*Y)*U+(tt*_+et*Y+st*Z)*V+(nt*Y+at*Z+tt*$)*W,ct=17763568394002532e-31*ot;return X>ct||-X>ct?X:-jn(t,n,r,s,a,e,o,c,u,f,i,b,h,M,l,ot)}function mn(t,n,r,s,a,e,o,c,u,f,i,b,h,M,l){const p=t-h,x=s-h,d=o-h,w=f-h,y=n-M,A=a-M,F=c-M,g=i-M,j=r-l,k=e-l,m=u-l,q=b-l,v=p*A-x*y,z=x*F-d*A,B=d*g-w*F,C=w*y-p*g,D=p*F-d*y,E=x*g-w*A;return(d*d+F*F+m*m)*(q*v+j*E+k*C)-(w*w+g*g+q*q)*(j*z-k*D+m*v)+((p*p+y*y+j*j)*(k*B-m*E+q*z)-(x*x+A*A+k*k)*(m*C+q*D+j*B))}export{jt as incircle,kt as incirclefast,kn as insphere,mn as inspherefast,x as orient2d,d as orient2dfast,Q as orient3d,R as orient3dfast};export default null;
_observablehq/client.0d4e9b14.js ADDED
@@ -0,0 +1 @@
 
 
1
+ var ie=Object.defineProperty;var n=(e,t)=>ie(e,"name",{value:t,configurable:!0});import{Inspector as j,Runtime as le}from"./runtime.3f7f73d9.js";import{Generators as $,resize as ce,FileAttachment as de,Mutable as pe}from"./stdlib.2229c972.js";var ue=Object.defineProperty,A=n((e,t)=>ue(e,"name",{value:t,configurable:!0}),"o$2");const B=document.createElement("template");B.innerHTML='<button title="Copy code" class="observablehq-pre-copy"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2"><path d="M2 6C2 5.44772 2.44772 5 3 5H10C10.5523 5 11 5.44772 11 6V13C11 13.5523 10.5523 14 10 14H3C2.44772 14 2 13.5523 2 13V6Z M4 2.00004L12 2.00001C13.1046 2 14 2.89544 14 4.00001V12"></path></svg></button>',O();function O(){for(const e of document.querySelectorAll("pre:not([data-copy=none])")){const t=e.parentNode;if(t.classList.contains("observablehq-pre-container"))continue;const r=t.insertBefore(document.createElement("div"),e);r.className="observablehq-pre-container",Object.assign(r.dataset,e.dataset),r.appendChild(B.content.cloneNode(!0).firstChild).addEventListener("click",D),r.appendChild(e)}}n(O,"r$2"),A(O,"enableCopyButtons");async function D({currentTarget:e}){await navigator.clipboard.writeText(e.nextElementSibling.textContent.trim());const[t]=e.getAnimations({subtree:!0});t&&(t.currentTime=0),e.classList.add("observablehq-pre-copied"),e.addEventListener("animationend",()=>e.classList.remove("observablehq-pre-copied"),{once:!0})}n(D,"c$3"),A(D,"copy");var me=Object.defineProperty,S=n((e,t)=>me(e,"name",{value:t,configurable:!0}),"s$2");const c=document.querySelector("#observablehq-sidebar-toggle");if(c){let e=c.indeterminate;const t=S(()=>matchMedia("(min-width: calc(640px + 6rem + 272px))").matches,"match");c.onclick=()=>{const o=t();e?(c.checked=!o,e=!1):c.checked===o&&(e=!0),c.indeterminate=e,e?sessionStorage.removeItem("observablehq-sidebar"):sessionStorage.setItem("observablehq-sidebar",c.checked)},addEventListener("keydown",o=>{o.code==="Escape"&&!t()&&(!c.indeterminate&&c.checked&&(o.target===document.body||o.target===c)||o.target?.closest("#observablehq-sidebar"))&&c.click()}),addEventListener("keypress",o=>{o.code==="KeyB"&&(o.metaKey||o.altKey)&&!o.ctrlKey&&(o.target===document.body||o.target===c||o.target?.closest("#observablehq-sidebar"))&&(c.click(),o.preventDefault())});const r=`Toggle sidebar ${/Mac|iPhone/.test(navigator.platform)?/Firefox/.test(navigator.userAgent)?"\u2325":"\u2318":"Alt-"}B`;for(const o of document.querySelectorAll("#observablehq-sidebar-toggle, label[for='observablehq-sidebar-toggle']"))o.title=r}function R(e){e.detail>1&&e.preventDefault()}n(R,"l$4"),S(R,"preventDoubleClick");function I(){sessionStorage.setItem(`observablehq-sidebar:${this.firstElementChild.textContent}`,this.open)}n(I,"c$2"),S(I,"persistOpen");for(const e of document.querySelectorAll("#observablehq-sidebar summary"))e.onmousedown=R,e.parentElement.ontoggle=I;var fe=Object.defineProperty,P=n((e,t)=>fe(e,"name",{value:t,configurable:!0}),"l$3");const x=document.querySelector("#observablehq-toc");if(x){const e=x.appendChild(document.createElement("div"));e.classList.add("observablehq-secondary-link-highlight");const t=document.querySelector("#observablehq-main"),r=Array.from(t.querySelectorAll(x.dataset.selector)).reverse(),o=x.querySelectorAll(".observablehq-secondary-link"),m=P(()=>{for(const a of o)a.classList.remove("observablehq-secondary-link-active");if(location.hash)for(const a of r){const f=encodeURI(`#${a.id}`);if(f===location.hash){const h=a.getBoundingClientRect().top;if(0<h&&h<40){for(const q of o)if(q.querySelector("a[href]")?.hash===f)return q.classList.add("observablehq-secondary-link-active"),q;return}break}}for(const a of r){if(a.getBoundingClientRect().top>=innerHeight*.5)continue;const f=a.querySelector("a[href]")?.hash;for(const h of o)if(h.querySelector("a[href]")?.hash===f)return h.classList.add("observablehq-secondary-link-active"),h;break}},"relink"),g=P(()=>{const a=m();e.style.cssText=a?`top: ${a.offsetTop}px; height: ${a.offsetHeight}px;`:""},"intersected"),y=new IntersectionObserver(g,{rootMargin:"0px 0px -50% 0px"});for(const a of r)y.observe(a)}var he=Object.defineProperty,T=n((e,t)=>he(e,"name",{value:t,configurable:!0}),"r$1");function M(e,t){const r=document.createElement("div");if(new j(r).fulfilled(e),t)for(const o of t){let m=r;for(const g of o)m=m?.childNodes[g];m?.dispatchEvent(new Event("mouseup"))}return r}n(M,"f$2"),T(M,"inspect");function z(e){const t=document.createElement("div");return new j(t).rejected(e),t.classList.add("observablehq--error"),t}n(z,"l$2"),T(z,"inspectError");var be=Object.defineProperty,s=n((e,t)=>be(e,"name",{value:t,configurable:!0}),"o");const ve=s(()=>import("../_npm/[email protected]/_esm.js").then(e=>e.default),"_"),ge=s(()=>import("../_npm/[email protected]/_esm.js"),"aq"),ye=s(()=>import("../_npm/[email protected]/_esm.js"),"Arrow"),qe=s(()=>import("../_npm/[email protected]/7055d4c5.js"),"d3"),$e=s(()=>import("./stdlib/dot.js").then(e=>e.default),"dot"),we=s(()=>import("../_npm/@duckdb/[email protected]/_esm.js"),"duckdb"),_e=s(()=>import("./stdlib/duckdb.js").then(e=>e.DuckDBClient),"DuckDBClient"),xe=s(()=>import("../_npm/[email protected]/dist/echarts.esm.min.js._esm.js"),"echarts"),ke=s(()=>import("../_npm/[email protected]/_esm.js"),"htl"),Ce=s(()=>import("../_npm/[email protected]/_esm.js").then(e=>e.html),"html"),Le=s(()=>import("../_npm/[email protected]/_esm.js").then(e=>e.svg),"svg"),Ee=s(()=>import("./stdlib/inputs.js"),"Inputs"),Se=s(()=>import("../_npm/[email protected]/_esm.js"),"L"),Ne=s(()=>import("../_npm/[email protected]/_esm.js").then(e=>e.default),"mapboxgl"),je=s(()=>import("./stdlib/mermaid.js").then(e=>e.default),"mermaid"),Ae=s(()=>import("../_npm/@observablehq/[email protected]/e828d8c8.js"),"Plot"),Be=s(()=>import("../_npm/[email protected]/_esm.js"),"React"),Oe=s(()=>import("../_npm/[email protected]/_esm.js"),"ReactDOM"),De=s(()=>import("./stdlib/duckdb.js").then(e=>e.sql),"sql"),Re=s(()=>import("./stdlib/sqlite.js").then(e=>e.default),"SQLite"),Ie=s(()=>import("./stdlib/sqlite.js").then(e=>e.SQLiteDatabaseClient),"SQLiteDatabaseClient"),Pe=s(()=>import("./stdlib/tex.js").then(e=>e.default),"tex"),Te=s(()=>import("../_npm/[email protected]/_esm.js"),"topojson"),Me=s(()=>import("./stdlib/vgplot.js").then(e=>e.default()),"vg"),ze=s(()=>import("./stdlib/vega-lite.js").then(e=>e.default),"vl");var Qe=Object.freeze({__proto__:null,Arrow:ye,DuckDBClient:_e,Inputs:Ee,L:Se,Plot:Ae,React:Be,ReactDOM:Oe,SQLite:Re,SQLiteDatabaseClient:Ie,_:ve,aq:ge,d3:qe,dot:$e,duckdb:we,echarts:xe,htl:ke,html:Ce,mapboxgl:Ne,mermaid:je,sql:De,svg:Le,tex:Pe,topojson:Te,vg:Me,vl:ze}),He=Object.defineProperty,l=n((e,t)=>He(e,"name",{value:t,configurable:!0}),"e");const Ve=l(()=>d(import.meta.resolve("../_npm/@observablehq/[email protected]/aapl.csv"),!0),"aapl"),Ke=l(()=>d(import.meta.resolve("../_npm/@observablehq/[email protected]/alphabet.csv"),!0),"alphabet"),Fe=l(()=>d(import.meta.resolve("../_npm/@observablehq/[email protected]/cars.csv"),!0),"cars"),Ge=l(()=>d(import.meta.resolve("../_npm/@observablehq/[email protected]/citywages.csv"),!0),"citywages"),Je=l(()=>d(import.meta.resolve("../_npm/@observablehq/[email protected]/diamonds.csv"),!0),"diamonds"),Ue=l(()=>d(import.meta.resolve("../_npm/@observablehq/[email protected]/flare.csv"),!0),"flare"),Ze=l(()=>d(import.meta.resolve("../_npm/@observablehq/[email protected]/industries.csv"),!0),"industries"),We=l(()=>Q(import.meta.resolve("../_npm/@observablehq/[email protected]/miserables.json")),"miserables"),Xe=l(()=>d(import.meta.resolve("../_npm/@observablehq/[email protected]/olympians.csv"),!0),"olympians"),Ye=l(()=>d(import.meta.resolve("../_npm/@observablehq/[email protected]/penguins.csv"),!0),"penguins"),et=l(()=>d(import.meta.resolve("../_npm/@observablehq/[email protected]/pizza.csv"),!0),"pizza"),tt=l(()=>d(import.meta.resolve("../_npm/@observablehq/[email protected]/weather.csv"),!0),"weather");async function Q(e){const t=await fetch(e);if(!t.ok)throw new Error(`unable to fetch ${e}: status ${t.status}`);return t.json()}n(Q,"w$1"),l(Q,"json");async function H(e){const t=await fetch(e);if(!t.ok)throw new Error(`unable to fetch ${e}: status ${t.status}`);return t.text()}n(H,"y"),l(H,"text");async function d(e,t){const[r,o]=await Promise.all([H(e),import("../_npm/[email protected]/407f7a1f.js")]);return o.csvParse(r,t&&o.autoType)}n(d,"t"),l(d,"csv");var ot=Object.freeze({__proto__:null,aapl:Ve,alphabet:Ke,cars:Fe,citywages:Ge,diamonds:Je,flare:Ue,industries:Ze,miserables:We,olympians:Xe,penguins:Ye,pizza:et,weather:tt}),rt=Object.defineProperty,i=n((e,t)=>rt(e,"name",{value:t,configurable:!0}),"i");const nt={now:()=>$.now(),width:()=>$.width(document.querySelector("main")),dark:()=>$.dark(),resize:()=>ce,FileAttachment:()=>de,Generators:()=>$,Mutable:()=>pe,...Qe,...ot},st=new le(nt),V=st.module(),N=new Map,k=X(document.body);function K(e){const{id:t,mode:r,inputs:o=[],outputs:m=[],body:g}=e,y=[];N.set(t,{cell:e,variables:y});const a=k.get(t),f=te(a);a._nodes=[],r===void 0&&(a._expanded=[]),f&&a._nodes.push(f);const h=i(()=>G(a,f),"pending"),q=i(b=>J(a,b),"rejected"),u=V.variable({_node:a.parentNode,pending:h,rejected:q},{shadow:{}});if(o.includes("display")||o.includes("view")){let b=-1;const L=r==="jsx"?F:w,se=r==="inline"?Z:r==="jsx"?U:W,E=new u.constructor(2,u._module);if(E.define(o.filter(p=>p!=="display"&&p!=="view"),()=>{let p=u._version;return _=>{if(p<b)throw new Error("stale display");return p>b&&L(a),b=p,se(a,_),_}}),u._shadow.set("display",E),o.includes("view")){const p=new u.constructor(2,u._module,null,{shadow:{}});p._shadow.set("display",E),p.define(["display"],_=>ae=>$.input(_(ae))),u._shadow.set("view",p)}}u.define(m.length?`cell ${t}`:null,o,g),y.push(u);for(const b of m)y.push(V.variable(!0).define(b,[`cell ${t}`],L=>L[b]))}n(K,"$"),i(K,"define");function F(){}n(F,"z"),i(F,"noop");function w(e){e._expanded&&(e._expanded=e._nodes.map(oe)),e._nodes.forEach(t=>t.remove()),e._nodes.length=0}n(w,"p"),i(w,"clear");function G(e,t){e._error&&(e._error=!1,w(e),t&&v(e,t))}n(G,"C"),i(G,"reset");function J(e,t){console.error(t),e._error=!0,w(e),v(e,z(t))}n(J,"F"),i(J,"reject");function U(e,t){return(e._root??=import("../_npm/[email protected]/_esm.js").then(({createRoot:r})=>{const o=document.createElement("DIV");return[o,r(o)]})).then(([r,o])=>{r.parentNode||(e._nodes.push(r),e.parentNode.insertBefore(r,e)),o.render(t)})}n(U,"H"),i(U,"displayJsx");function v(e,t){if(t.nodeType===11){let r;for(;r=t.firstChild;)e._nodes.push(r),e.parentNode.insertBefore(r,e)}else e._nodes.push(t),e.parentNode.insertBefore(t,e)}n(v,"a"),i(v,"displayNode");function Z(e,t){if(C(t))v(e,t);else if(typeof t=="string"||!t?.[Symbol.iterator])v(e,document.createTextNode(t));else for(const r of t)v(e,C(r)?r:document.createTextNode(r))}n(Z,"J"),i(Z,"displayInline");function W(e,t){v(e,C(t)?t:M(t,e._expanded[e._nodes.length]))}n(W,"P"),i(W,"displayBlock");function at(e){w(k.get(e)),N.get(e).variables.forEach(t=>t.delete()),N.delete(e)}n(at,"Q"),i(at,"undefine");function C(e){return e instanceof Node&&e instanceof e.constructor}n(C,"N"),i(C,"isNode");function X(e){const t=new Map,r=document.createNodeIterator(e,128,null);let o;for(;o=r.nextNode();)Y(o)&&t.set(o.data.slice(1,-1),o);return t}n(X,"v"),i(X,"findRoots");function Y(e){return e.nodeType===8&&/^:[0-9a-f]{8}(?:-\d+)?:$/.test(e.data)}n(Y,"K"),i(Y,"isRoot");function ee(e){return e.nodeType===1&&e.tagName==="OBSERVABLEHQ-LOADING"}n(ee,"U"),i(ee,"isLoading");function te(e){const t=e.previousSibling;return t&&ee(t)?t:null}n(te,"B"),i(te,"findLoading");function it(e,t){t==null?k.delete(e):k.set(e,t)}n(it,"W"),i(it,"registerRoot");function oe(e){if(e.nodeType!==1||!e.classList.contains("observablehq"))return;const t=e.querySelectorAll(".observablehq--expanded");if(t.length)return Array.from(t,r=>re(e,r))}n(oe,"X"),i(oe,"getExpanded");function re(e,t){const r=[];for(;t!==e;)r.push(ne(t)),t=t.parentNode;return r.reverse()}n(re,"Y"),i(re,"getNodePath");function ne(e){return Array.prototype.indexOf.call(e.parentNode.childNodes,e)}n(ne,"Z"),i(ne,"getChildIndex");export{K as define};
_observablehq/runtime.3f7f73d9.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ var Ft=Object.defineProperty;var r=(e,t)=>Ft(e,"name",{value:t,configurable:!0});var B,H;import{FileAttachments as Rt,Library as Ut}from"./stdlib.2229c972.js";var zt=Object.defineProperty,Bt=r((e,t)=>zt(e,"name",{value:t,configurable:!0}),"c$7");function A(e,t,n){n=n||{};var i=e.ownerDocument,l=i.defaultView.CustomEvent;typeof l=="function"?l=new l(t,{detail:n}):(l=i.createEvent("Event"),l.initEvent(t,!1,!1),l.detail=n),e.dispatchEvent(l)}r(A,"o$c"),Bt(A,"dispatch");var Ht=Object.defineProperty,be=r((e,t)=>Ht(e,"name",{value:t,configurable:!0}),"r$7");function ee(e){return Array.isArray(e)||e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}r(ee,"o$b"),be(ee,"isarray");function te(e){return e===(e|0)+""}r(te,"s$4"),be(te,"isindex");var Vt=Object.defineProperty,Yt=r((e,t)=>Vt(e,"name",{value:t,configurable:!0}),"n$8");function g(e){const t=document.createElement("span");return t.className="observablehq--cellname",t.textContent=`${e} = `,t}r(g,"c$6"),Yt(g,"inspectName");var Gt=Object.defineProperty,Jt=r((e,t)=>Gt(e,"name",{value:t,configurable:!0}),"t$8");const Kt=Symbol.prototype.toString;function j(e){return Kt.call(e)}r(j,"e$6"),Jt(j,"formatSymbol");var Zt=Object.defineProperty,ne=r((e,t)=>Zt(e,"name",{value:t,configurable:!0}),"n$6");const{getOwnPropertySymbols:Xt,prototype:{hasOwnProperty:Qt}}=Object,{toStringTag:Wt}=Symbol,ve={},k=Xt;function L(e,t){return Qt.call(e,t)}r(L,"i$5"),ne(L,"isown");function V(e){return e[Wt]||e.constructor&&e.constructor.name||"Object"}r(V,"l$1"),ne(V,"tagof");function _(e,t){try{const n=e[t];return n&&n.constructor,n}catch{return ve}}r(_,"y$2"),ne(_,"valueof");var en=Object.defineProperty,tn=r((e,t)=>en(e,"name",{value:t,configurable:!0}),"i$4");const nn=[{symbol:"@@__IMMUTABLE_INDEXED__@@",name:"Indexed",modifier:!0},{symbol:"@@__IMMUTABLE_KEYED__@@",name:"Keyed",modifier:!0},{symbol:"@@__IMMUTABLE_LIST__@@",name:"List",arrayish:!0},{symbol:"@@__IMMUTABLE_MAP__@@",name:"Map"},{symbol:"@@__IMMUTABLE_ORDERED__@@",name:"Ordered",modifier:!0,prefix:!0},{symbol:"@@__IMMUTABLE_RECORD__@@",name:"Record"},{symbol:"@@__IMMUTABLE_SET__@@",name:"Set",arrayish:!0,setish:!0},{symbol:"@@__IMMUTABLE_STACK__@@",name:"Stack",arrayish:!0}];function re(e){try{let t=nn.filter(({symbol:o})=>e[o]===!0);if(!t.length)return;const n=t.find(o=>!o.modifier),i=n.name==="Map"&&t.find(o=>o.modifier&&o.prefix),l=t.some(o=>o.arrayish),a=t.some(o=>o.setish);return{name:`${i?i.name:""}${n.name}`,symbols:t,arrayish:l&&!a,setish:a}}catch{return null}}r(re,"y$1"),tn(re,"immutableName");var rn=Object.defineProperty,b=r((e,t)=>rn(e,"name",{value:t,configurable:!0}),"i$3");const{getPrototypeOf:ie,getOwnPropertyDescriptors:on}=Object,ye=ie({});function oe(e,t,n,i){let l=ee(e),a,o,s,u;e instanceof Map?e instanceof e.constructor?(a=`Map(${e.size})`,o=ge):(a="Map()",o=P):e instanceof Set?e instanceof e.constructor?(a=`Set(${e.size})`,o=$e):(a="Set()",o=P):l?(a=`${e.constructor.name}(${e.length})`,o=Ce):(u=re(e))?(a=`Immutable.${u.name}${u.name==="Record"?"":`(${e.size})`}`,l=u.arrayish,o=u.arrayish?Ee:u.setish?we:Se):i?(a=V(e),o=xe):(a=V(e),o=P);const c=document.createElement("span");c.className="observablehq--expanded",n&&c.appendChild(g(n));const p=c.appendChild(document.createElement("a"));p.innerHTML=`<svg width=8 height=8 class='observablehq--caret'>
2
+ <path d='M4 7L0 1h8z' fill='currentColor' />
3
+ </svg>`,p.appendChild(document.createTextNode(`${a}${l?" [":" {"}`)),p.addEventListener("mouseup",function(d){d.stopPropagation(),D(c,Y(e,null,n,i))}),o=o(e);for(let d=0;!(s=o.next()).done&&d<20;++d)c.appendChild(s.value);if(!s.done){const d=c.appendChild(document.createElement("a"));d.className="observablehq--field",d.style.display="block",d.appendChild(document.createTextNode(" \u2026 more")),d.addEventListener("mouseup",function(S){S.stopPropagation(),c.insertBefore(s.value,c.lastChild.previousSibling);for(let O=0;!(s=o.next()).done&&O<19;++O)c.insertBefore(s.value,c.lastChild.previousSibling);s.done&&c.removeChild(c.lastChild.previousSibling),A(c,"load")})}return c.appendChild(document.createTextNode(l?"]":"}")),c}r(oe,"F$2"),b(oe,"inspectExpanded");function*ge(e){for(const[t,n]of e)yield Ne(t,n);yield*P(e)}r(ge,"A$3"),b(ge,"iterateMap");function*$e(e){for(const t of e)yield se(t);yield*P(e)}r($e,"B$1"),b($e,"iterateSet");function*we(e){for(const t of e)yield se(t)}r(we,"D$5"),b(we,"iterateImSet");function*Ce(e){for(let t=0,n=e.length;t<n;++t)t in e&&(yield $(t,_(e,t),"observablehq--index"));for(const t in e)!te(t)&&L(e,t)&&(yield $(t,_(e,t),"observablehq--key"));for(const t of k(e))yield $(j(t),_(e,t),"observablehq--symbol")}r(Ce,"H$1"),b(Ce,"iterateArray");function*Ee(e){let t=0;for(const n=e.size;t<n;++t)yield $(t,e.get(t),!0)}r(Ee,"R$2"),b(Ee,"iterateImArray");function*xe(e){for(const n in on(e))yield $(n,_(e,n),"observablehq--key");for(const n of k(e))yield $(j(n),_(e,n),"observablehq--symbol");const t=ie(e);t&&t!==ye&&(yield ae(t))}r(xe,"_"),b(xe,"iterateProto");function*P(e){for(const n in e)L(e,n)&&(yield $(n,_(e,n),"observablehq--key"));for(const n of k(e))yield $(j(n),_(e,n),"observablehq--symbol");const t=ie(e);t&&t!==ye&&(yield ae(t))}r(P,"h$4"),b(P,"iterateObject");function*Se(e){for(const[t,n]of e)yield $(t,n,"observablehq--key")}r(Se,"G$1"),b(Se,"iterateImObject");function ae(e){const t=document.createElement("div"),n=t.appendChild(document.createElement("span"));return t.className="observablehq--field",n.className="observablehq--prototype-key",n.textContent=" <prototype>",t.appendChild(document.createTextNode(": ")),t.appendChild(h(e,void 0,void 0,void 0,!0)),t}r(ae,"E$1"),b(ae,"formatPrototype");function $(e,t,n){const i=document.createElement("div"),l=i.appendChild(document.createElement("span"));return i.className="observablehq--field",l.className=n,l.textContent=` ${e}`,i.appendChild(document.createTextNode(": ")),i.appendChild(h(t)),i}r($,"s$2"),b($,"formatField");function Ne(e,t){const n=document.createElement("div");return n.className="observablehq--field",n.appendChild(document.createTextNode(" ")),n.appendChild(h(e)),n.appendChild(document.createTextNode(" => ")),n.appendChild(h(t)),n}r(Ne,"J$1"),b(Ne,"formatMapField");function se(e){const t=document.createElement("div");return t.className="observablehq--field",t.appendChild(document.createTextNode(" ")),t.appendChild(h(e)),t}r(se,"k$2"),b(se,"formatSetField");var an=Object.defineProperty,v=r((e,t)=>an(e,"name",{value:t,configurable:!0}),"a$3");function le(e){const t=window.getSelection();return t.type==="Range"&&(t.containsNode(e,!0)||e.contains(t.anchorNode)||e.contains(t.focusNode))}r(le,"q$1"),v(le,"hasSelection");function Y(e,t,n,i){let l=ee(e),a,o,s,u;if(e instanceof Map?e instanceof e.constructor?(a=`Map(${e.size})`,o=Oe):(a="Map()",o=q):e instanceof Set?e instanceof e.constructor?(a=`Set(${e.size})`,o=je):(a="Set()",o=q):l?(a=`${e.constructor.name}(${e.length})`,o=Me):(u=re(e))?(a=`Immutable.${u.name}${u.name==="Record"?"":`(${e.size})`}`,l=u.arrayish,o=u.arrayish?qe:u.setish?Pe:Te):(a=V(e),o=q),t){const d=document.createElement("span");return d.className="observablehq--shallow",n&&d.appendChild(g(n)),d.appendChild(document.createTextNode(a)),d.addEventListener("mouseup",function(S){le(d)||(S.stopPropagation(),D(d,Y(e)))}),d}const c=document.createElement("span");c.className="observablehq--collapsed",n&&c.appendChild(g(n));const p=c.appendChild(document.createElement("a"));p.innerHTML=`<svg width=8 height=8 class='observablehq--caret'>
4
+ <path d='M7 4L1 8V0z' fill='currentColor' />
5
+ </svg>`,p.appendChild(document.createTextNode(`${a}${l?" [":" {"}`)),c.addEventListener("mouseup",function(d){le(c)||(d.stopPropagation(),D(c,oe(e,null,n,i)))},!0),o=o(e);for(let d=0;!(s=o.next()).done&&d<20;++d)d>0&&c.appendChild(document.createTextNode(", ")),c.appendChild(s.value);return s.done||c.appendChild(document.createTextNode(", \u2026")),c.appendChild(document.createTextNode(l?"]":"}")),c}r(Y,"E"),v(Y,"inspectCollapsed");function*Oe(e){for(const[t,n]of e)yield Ae(t,n);yield*q(e)}r(Oe,"F$1"),v(Oe,"iterateMap");function*je(e){for(const t of e)yield h(t,!0);yield*q(e)}r(je,"I$2"),v(je,"iterateSet");function*Pe(e){for(const t of e)yield h(t,!0)}r(Pe,"L$3"),v(Pe,"iterateImSet");function*qe(e){let t=-1,n=0;for(const i=e.size;n<i;++n)n>t+1&&(yield I(n-t-1)),yield h(e.get(n),!0),t=n;n>t+1&&(yield I(n-t-1))}r(qe,"A$2"),v(qe,"iterateImArray");function*Me(e){let t=-1,n=0;for(const i=e.length;n<i;++n)n in e&&(n>t+1&&(yield I(n-t-1)),yield h(_(e,n),!0),t=n);n>t+1&&(yield I(n-t-1));for(const i in e)!te(i)&&L(e,i)&&(yield M(i,_(e,i),"observablehq--key"));for(const i of k(e))yield M(j(i),_(e,i),"observablehq--symbol")}r(Me,"D$4"),v(Me,"iterateArray");function*q(e){for(const t in e)L(e,t)&&(yield M(t,_(e,t),"observablehq--key"));for(const t of k(e))yield M(j(t),_(e,t),"observablehq--symbol")}r(q,"u$2"),v(q,"iterateObject");function*Te(e){for(const[t,n]of e)yield M(t,n,"observablehq--key")}r(Te,"O$3"),v(Te,"iterateImObject");function I(e){const t=document.createElement("span");return t.className="observablehq--empty",t.textContent=e===1?"empty":`empty \xD7 ${e}`,t}r(I,"h$3"),v(I,"formatEmpty");function M(e,t,n){const i=document.createDocumentFragment(),l=i.appendChild(document.createElement("span"));return l.className=n,l.textContent=e,i.appendChild(document.createTextNode(": ")),i.appendChild(h(t,!0)),i}r(M,"m$1"),v(M,"formatField");function Ae(e,t){const n=document.createDocumentFragment();return n.appendChild(h(e,!0)),n.appendChild(document.createTextNode(" => ")),n.appendChild(h(t,!0)),n}r(Ae,"P$2"),v(Ae,"formatMapField");var sn=Object.defineProperty,ce=r((e,t)=>sn(e,"name",{value:t,configurable:!0}),"i$2");function ke(e,t){if(e instanceof Date||(e=new Date(+e)),isNaN(e))return typeof t=="function"?t(e):t;const n=e.getUTCHours(),i=e.getUTCMinutes(),l=e.getUTCSeconds(),a=e.getUTCMilliseconds();return`${Le(e.getUTCFullYear())}-${w(e.getUTCMonth()+1,2)}-${w(e.getUTCDate(),2)}${n||i||l||a?`T${w(n,2)}:${w(i,2)}${l||a?`:${w(l,2)}${a?`.${w(a,3)}`:""}`:""}Z`:""}`}r(ke,"c$4"),ce(ke,"format");function Le(e){return e<0?`-${w(-e,6)}`:e>9999?`+${w(e,6)}`:w(e,4)}r(Le,"f$6"),ce(Le,"formatYear");function w(e,t){return`${e}`.padStart(t,"0")}r(w,"t$7"),ce(w,"pad");var ln=Object.defineProperty,cn=r((e,t)=>ln(e,"name",{value:t,configurable:!0}),"t$6");const un=/^(?:[-+]\d{2})?\d{4}(?:-\d{2}(?:-\d{2})?)?(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{3})?)?(?:Z|[-+]\d{2}:?\d{2})?)?$/;function dn(e,t){return un.test(e+="")?new Date(e):typeof t=="function"?t(e):t}r(dn,"r$5"),cn(dn,"parse");var fn=Object.defineProperty,pn=r((e,t)=>fn(e,"name",{value:t,configurable:!0}),"r$4");function Ie(e){return ke(e,"Invalid Date")}r(Ie,"f$5"),pn(Ie,"formatDate");var mn=Object.defineProperty,hn=r((e,t)=>mn(e,"name",{value:t,configurable:!0}),"t$5"),_n=Error.prototype.toString;function De(e){return e.stack||_n.call(e)}r(De,"e$4"),hn(De,"formatError");var bn=Object.defineProperty,vn=r((e,t)=>bn(e,"name",{value:t,configurable:!0}),"r$3"),yn=RegExp.prototype.toString;function Fe(e){return yn.call(e)}r(Fe,"g$1"),vn(Fe,"formatRegExp");var gn=Object.defineProperty,G=r((e,t)=>gn(e,"name",{value:t,configurable:!0}),"s$1");const ue=20;function Re(e,t,n,i){if(t===!1){if(fe(e,/["\n]/g)<=fe(e,/`|\${/g)){const c=document.createElement("span");i&&c.appendChild(g(i));const p=c.appendChild(document.createElement("span"));return p.className="observablehq--string",p.textContent=JSON.stringify(e),c}const o=e.split(`
6
+ `);if(o.length>ue&&!n){const c=document.createElement("div");i&&c.appendChild(g(i));const p=c.appendChild(document.createElement("span"));p.className="observablehq--string",p.textContent="`"+de(o.slice(0,ue).join(`
7
+ `));const d=c.appendChild(document.createElement("span")),S=o.length-ue;return d.textContent=`Show ${S} truncated line${S>1?"s":""}`,d.className="observablehq--string-expand",d.addEventListener("mouseup",function(O){O.stopPropagation(),D(c,h(e,t,!0,i))}),c}const s=document.createElement("span");i&&s.appendChild(g(i));const u=s.appendChild(document.createElement("span"));return u.className=`observablehq--string${n?" observablehq--expanded":""}`,u.textContent="`"+de(e)+"`",s}const l=document.createElement("span");i&&l.appendChild(g(i));const a=l.appendChild(document.createElement("span"));return a.className="observablehq--string",a.textContent=JSON.stringify(e.length>100?`${e.slice(0,50)}\u2026${e.slice(-49)}`:e),l}r(Re,"g"),G(Re,"formatString");function de(e){return e.replace(/[\\`\x00-\x09\x0b-\x19]|\${/g,Ue)}r(de,"h$2"),G(de,"templatify");function Ue(e){var t=e.charCodeAt(0);switch(t){case 8:return"\\b";case 9:return"\\t";case 11:return"\\v";case 12:return"\\f";case 13:return"\\r"}return t<16?"\\x0"+t.toString(16):t<32?"\\x"+t.toString(16):"\\"+e}r(Ue,"$$2"),G(Ue,"templatifyChar");function fe(e,t){for(var n=0;t.exec(e);)++n;return n}r(fe,"C$2"),G(fe,"count");var $n=Object.defineProperty,ze=r((e,t)=>$n(e,"name",{value:t,configurable:!0}),"a$1"),wn=Function.prototype.toString,Cn={prefix:"async \u0192"},En={prefix:"async \u0192*"},Be={prefix:"class"},xn={prefix:"\u0192"},Sn={prefix:"\u0192*"};function He(e,t){var n,i,l=wn.call(e);switch(e.constructor&&e.constructor.name){case"AsyncFunction":n=Cn;break;case"AsyncGeneratorFunction":n=En;break;case"GeneratorFunction":n=Sn;break;default:n=/^class\b/.test(l)?Be:xn;break}return n===Be?T(n,"",t):(i=/^(?:async\s*)?(\w+)\s*=>/.exec(l))?T(n,"("+i[1]+")",t):(i=/^(?:async\s*)?\(\s*(\w+(?:\s*,\s*\w+)*)?\s*\)/.exec(l))?T(n,i[1]?"("+i[1].replace(/\s*,\s*/g,", ")+")":"()",t):(i=/^(?:async\s*)?function(?:\s*\*)?(?:\s*\w+)?\s*\(\s*(\w+(?:\s*,\s*\w+)*)?\s*\)/.exec(l))?T(n,i[1]?"("+i[1].replace(/\s*,\s*/g,", ")+")":"()",t):T(n,"(\u2026)",t)}r(He,"y"),ze(He,"inspectFunction");function T(e,t,n){var i=document.createElement("span");i.className="observablehq--function",n&&i.appendChild(g(n));var l=i.appendChild(document.createElement("span"));return l.className="observablehq--keyword",l.textContent=e.prefix,i.appendChild(document.createTextNode(t)),i}r(T,"c$3"),ze(T,"formatFunction");var Nn=Object.defineProperty,Ve=r((e,t)=>Nn(e,"name",{value:t,configurable:!0}),"c$2");const{prototype:{toString:On}}=Object;function h(e,t,n,i,l){let a=typeof e;switch(a){case"boolean":case"undefined":{e+="";break}case"number":{e=e===0&&1/e<0?"-0":e+"";break}case"bigint":{e=e+"n";break}case"symbol":{e=j(e);break}case"function":return He(e,i);case"string":return Re(e,t,n,i);default:{if(e===null){a=null,e="null";break}if(e instanceof Date){a="date",e=Ie(e);break}if(e===ve){a="forbidden",e="[forbidden]";break}switch(On.call(e)){case"[object RegExp]":{a="regexp",e=Fe(e);break}case"[object Error]":case"[object DOMException]":{a="error",e=De(e);break}default:return(n?oe:Y)(e,t,i,l)}break}}const o=document.createElement("span");i&&o.appendChild(g(i));const s=o.appendChild(document.createElement("span"));return s.className=`observablehq--${a}`,s.textContent=e,o}r(h,"$$1"),Ve(h,"inspect");function D(e,t){e.classList.contains("observablehq--inspect")&&t.classList.add("observablehq--inspect"),e.parentNode.replaceChild(t,e),A(t,"load")}r(D,"z$2"),Ve(D,"replace");var jn=Object.defineProperty,Ye=r((e,t)=>jn(e,"name",{value:t,configurable:!0}),"n$2");const Pn=/\s+\(\d+:\d+\)$/m,Ge=(B=class{constructor(t){if(!t)throw new Error("invalid node");this._node=t,t.classList.add("observablehq")}pending(){const{_node:t}=this;t.classList.remove("observablehq--error"),t.classList.add("observablehq--running")}fulfilled(t,n){const{_node:i}=this;if((!Je(t)||t.parentNode&&t.parentNode!==i)&&(t=h(t,!1,i.firstChild&&i.firstChild.classList&&i.firstChild.classList.contains("observablehq--expanded"),n),t.classList.add("observablehq--inspect")),i.classList.remove("observablehq--running","observablehq--error"),i.firstChild!==t)if(i.firstChild){for(;i.lastChild!==i.firstChild;)i.removeChild(i.lastChild);i.replaceChild(t,i.firstChild)}else i.appendChild(t);A(i,"update")}rejected(t,n){const{_node:i}=this;for(i.classList.remove("observablehq--running"),i.classList.add("observablehq--error");i.lastChild;)i.removeChild(i.lastChild);var l=document.createElement("div");l.className="observablehq--inspect",n&&l.appendChild(g(n)),l.appendChild(document.createTextNode((t+"").replace(Pn,""))),i.appendChild(l),A(i,"error",{error:t})}},r(B,"o"),B);Ye(Ge,"Inspector");let pe=Ge;pe.into=function(e){if(typeof e=="string"&&(e=document.querySelector(e),e==null))throw new Error("container not found");return function(){return new pe(e.appendChild(document.createElement("div")))}};function Je(e){return(e instanceof Element||e instanceof Text)&&e instanceof e.constructor}r(Je,"p$2"),Ye(Je,"isnode");var qn=Object.defineProperty,Mn=r((e,t)=>qn(e,"name",{value:t,configurable:!0}),"o$4");const Ke=(H=class extends Error{constructor(t,n){super(t),this.input=n}},r(H,"e"),H);Mn(Ke,"RuntimeError");let C=Ke;C.prototype.name="RuntimeError";var Tn=Object.defineProperty,An=r((e,t)=>Tn(e,"name",{value:t,configurable:!0}),"t$4");function Ze(e){return e&&typeof e.next=="function"&&typeof e.return=="function"}r(Ze,"f$1"),An(Ze,"generatorish");var kn=Object.defineProperty,Ln=r((e,t)=>kn(e,"name",{value:t,configurable:!0}),"t$3");function J(e){return()=>e}r(J,"e$2"),Ln(J,"constant");var In=Object.defineProperty,Dn=r((e,t)=>In(e,"name",{value:t,configurable:!0}),"n$1");function F(e){return e}r(F,"o$3"),Dn(F,"identity");var Fn=Object.defineProperty,Rn=r((e,t)=>Fn(e,"name",{value:t,configurable:!0}),"t$2");function Xe(e){return()=>{throw e}}r(Xe,"h$1"),Rn(Xe,"rethrow");const Un=Array.prototype,zn=Un.map;var Bn=Object.defineProperty,Hn=r((e,t)=>Bn(e,"name",{value:t,configurable:!0}),"o$1");function E(){}r(E,"e"),Hn(E,"noop");var Vn=Object.defineProperty,m=r((e,t)=>Vn(e,"name",{value:t,configurable:!0}),"r");const me=1,R=2,K=3,U=Symbol("no-observer");function N(e,t,n,i){n||(n=U),Object.defineProperties(this,{_observer:{value:n,writable:!0},_definition:{value:Z,writable:!0},_duplicate:{value:void 0,writable:!0},_duplicates:{value:void 0,writable:!0},_indegree:{value:NaN,writable:!0},_inputs:{value:[],writable:!0},_invalidate:{value:E,writable:!0},_module:{value:t},_name:{value:null,writable:!0},_outputs:{value:new Set,writable:!0},_promise:{value:Promise.resolve(void 0),writable:!0},_reachable:{value:n!==U,writable:!0},_rejector:{value:tt(this)},_shadow:{value:Qe(t,i)},_type:{value:e},_value:{value:void 0,writable:!0},_version:{value:0,writable:!0}})}r(N,"h"),m(N,"Variable"),Object.defineProperties(N.prototype,{_pending:{value:at,writable:!0,configurable:!0},_fulfilled:{value:st,writable:!0,configurable:!0},_rejected:{value:lt,writable:!0,configurable:!0},_resolve:{value:rt,writable:!0,configurable:!0},define:{value:nt,writable:!0,configurable:!0},delete:{value:ot,writable:!0,configurable:!0},import:{value:it,writable:!0,configurable:!0}});function Qe(e,t){return t?.shadow?new Map(Object.entries(t.shadow).map(([n,i])=>[n,new N(R,e).define([],i)])):null}r(Qe,"x$2"),m(Qe,"initShadow");function We(e){e._module._runtime._dirty.add(e),e._outputs.add(this)}r(We,"S$1"),m(We,"variable_attach");function et(e){e._module._runtime._dirty.add(e),e._outputs.delete(this)}r(et,"j"),m(et,"variable_detach");function Z(){throw Z}r(Z,"f"),m(Z,"variable_undefined");function x(){throw x}r(x,"b"),m(x,"variable_stale");function tt(e){return t=>{throw t===x?t:t===Z?new C(`${e._name} is not defined`,e._name):t instanceof Error&&t.message?new C(t.message,e._name):new C(`${e._name} could not be resolved`,e._name)}}r(tt,"O$2"),m(tt,"variable_rejector");function he(e){return()=>{throw new C(`${e} is defined more than once`)}}r(he,"w$1"),m(he,"variable_duplicate");function nt(e,t,n){switch(arguments.length){case 1:{n=e,e=t=null;break}case 2:{n=t,typeof e=="string"?t=null:(t=e,e=null);break}}return X.call(this,e==null?null:String(e),t==null?[]:zn.call(t,this._resolve,this),typeof n=="function"?n:J(n))}r(nt,"P$1"),m(nt,"variable_define");function rt(e){return this._shadow?.get(e)??this._module._resolve(e)}r(rt,"I$1"),m(rt,"variable_resolve");function X(e,t,n){const i=this._module._scope,l=this._module._runtime;if(this._inputs.forEach(et,this),t.forEach(We,this),this._inputs=t,this._definition=n,this._value=void 0,n===E?l._variables.delete(this):l._variables.add(this),e!==this._name||i.get(e)!==this){let a,o;if(this._name)if(this._outputs.size)i.delete(this._name),o=this._module._resolve(this._name),o._outputs=this._outputs,this._outputs=new Set,o._outputs.forEach(function(s){s._inputs[s._inputs.indexOf(this)]=o},this),o._outputs.forEach(l._updates.add,l._updates),l._dirty.add(o).add(this),i.set(this._name,o);else if((o=i.get(this._name))===this)i.delete(this._name);else if(o._type===K)o._duplicates.delete(this),this._duplicate=void 0,o._duplicates.size===1&&(o=o._duplicates.keys().next().value,a=i.get(this._name),o._outputs=a._outputs,a._outputs=new Set,o._outputs.forEach(function(s){s._inputs[s._inputs.indexOf(a)]=o}),o._definition=o._duplicate,o._duplicate=void 0,l._dirty.add(a).add(o),l._updates.add(o),i.set(this._name,o));else throw new Error;if(this._outputs.size)throw new Error;e&&((o=i.get(e))?o._type===K?(this._definition=he(e),this._duplicate=n,o._duplicates.add(this)):o._type===R?(this._outputs=o._outputs,o._outputs=new Set,this._outputs.forEach(function(s){s._inputs[s._inputs.indexOf(o)]=this},this),l._dirty.add(o).add(this),i.set(e,this)):(o._duplicate=o._definition,this._duplicate=n,a=new N(K,this._module),a._name=e,a._definition=this._definition=o._definition=he(e),a._outputs=o._outputs,o._outputs=new Set,a._outputs.forEach(function(s){s._inputs[s._inputs.indexOf(o)]=a}),a._duplicates=new Set([this,o]),l._dirty.add(o).add(a),l._updates.add(o).add(a),i.set(e,a)):i.set(e,this)),this._name=e}return this._version>0&&++this._version,l._updates.add(this),l._compute(),this}r(X,"c"),m(X,"variable_defineImpl");function it(e,t,n){return arguments.length<3&&(n=t,t=e),X.call(this,String(t),[n._resolve(String(e))],F)}r(it,"T$1"),m(it,"variable_import");function ot(){return X.call(this,null,[],E)}r(ot,"k$1"),m(ot,"variable_delete");function at(){this._observer.pending&&this._observer.pending()}r(at,"z$1"),m(at,"variable_pending");function st(e){this._observer.fulfilled&&this._observer.fulfilled(e,this._name)}r(st,"L$2"),m(st,"variable_fulfilled");function lt(e){this._observer.rejected&&this._observer.rejected(e,this._name)}r(lt,"M$2"),m(lt,"variable_rejected");var Yn=Object.defineProperty,y=r((e,t)=>Yn(e,"name",{value:t,configurable:!0}),"n");const ct=Symbol("variable"),ut=Symbol("invalidation"),dt=Symbol("visibility");function z(e,t=[]){Object.defineProperties(this,{_runtime:{value:e},_scope:{value:new Map},_builtins:{value:new Map([["@variable",ct],["invalidation",ut],["visibility",dt],...t])},_source:{value:null,writable:!0}})}r(z,"M$1"),y(z,"Module"),Object.defineProperties(z.prototype,{_resolve:{value:vt,writable:!0,configurable:!0},redefine:{value:ft,writable:!0,configurable:!0},define:{value:pt,writable:!0,configurable:!0},derive:{value:bt,writable:!0,configurable:!0},import:{value:mt,writable:!0,configurable:!0},value:{value:_t,writable:!0,configurable:!0},variable:{value:ht,writable:!0,configurable:!0},builtin:{value:yt,writable:!0,configurable:!0}});function ft(e){const t=this._scope.get(e);if(!t)throw new C(`${e} is not defined`);if(t._type===K)throw new C(`${e} is defined more than once`);return t.define.apply(t,arguments)}r(ft,"O$1"),y(ft,"module_redefine");function pt(){const e=new N(me,this);return e.define.apply(e,arguments)}r(pt,"V$1"),y(pt,"module_define");function mt(){const e=new N(me,this);return e.import.apply(e,arguments)}r(mt,"Y$1"),y(mt,"module_import");function ht(e,t){return new N(me,this,e,t)}r(ht,"$"),y(ht,"module_variable");async function _t(e){let t=this._scope.get(e);if(!t)throw new C(`${e} is not defined`);if(t._observer===U){t=this.variable(!0).define([e],F);try{return await Q(this._runtime,t)}finally{t.delete()}}else return Q(this._runtime,t)}r(_t,"A$1"),y(_t,"module_value");async function Q(e,t){await e._compute();try{return await t._promise}catch(n){if(n===x)return Q(e,t);throw n}}r(Q,"p"),y(Q,"module_revalue");function bt(e,t){const n=new Map,i=new Set,l=[];function a(s){let u=n.get(s);return u||(u=new z(s._runtime,s._builtins),u._source=s,n.set(s,u),l.push([u,s]),i.add(s),u)}r(a,"v"),y(a,"alias");const o=a(this);for(const s of e){const{alias:u,name:c}=typeof s=="object"?s:{name:s};o.import(c,u??c,t)}for(const s of i)for(const[u,c]of s._scope)if(c._definition===F){if(s===this&&o._scope.has(u))continue;const p=c._inputs[0]._module;p._source&&a(p)}for(const[s,u]of l)for(const[c,p]of u._scope){const d=s._scope.get(c);if(!(d&&d._type!==R))if(p._definition===F){const S=p._inputs[0],O=S._module;s.import(S._name,c,n.get(O)||O)}else s.define(c,p._inputs.map(gt),p._definition)}return o}r(bt,"C$1"),y(bt,"module_derive");function vt(e){let t=this._scope.get(e),n;if(!t)if(t=new N(R,this),this._builtins.has(e))t.define(e,J(this._builtins.get(e)));else if(this._runtime._builtin._scope.has(e))t.import(e,this._runtime._builtin);else{try{n=this._runtime._global(e)}catch(i){return t.define(e,Xe(i))}n===void 0?this._scope.set(t._name=e,t):t.define(e,J(n))}return t}r(vt,"R$1"),y(vt,"module_resolve");function yt(e,t){this._builtins.set(e,t)}r(yt,"D$1"),y(yt,"module_builtin");function gt(e){return e._name}r(gt,"N"),y(gt,"variable_name");var Gn=Object.defineProperty,f=r((e,t)=>Gn(e,"name",{value:t,configurable:!0}),"o");const Jn=typeof requestAnimationFrame=="function"?requestAnimationFrame:typeof setImmediate=="function"?setImmediate:e=>setTimeout(e,0);function _e(e=new Ut,t=Dt){const n=this.module();if(Object.defineProperties(this,{_dirty:{value:new Set},_updates:{value:new Set},_precomputes:{value:[],writable:!0},_computing:{value:null,writable:!0},_init:{value:null,writable:!0},_modules:{value:new Map},_variables:{value:new Set},_disposed:{value:!1,writable:!0},_builtin:{value:n},_global:{value:t}}),e)for(const i in e)new N(R,n).define(i,[],e[i])}r(_e,"k"),f(_e,"Runtime"),Object.defineProperties(_e.prototype,{_precompute:{value:Ct,writable:!0,configurable:!0},_compute:{value:Et,writable:!0,configurable:!0},_computeSoon:{value:xt,writable:!0,configurable:!0},_computeNow:{value:St,writable:!0,configurable:!0},dispose:{value:$t,writable:!0,configurable:!0},module:{value:wt,writable:!0,configurable:!0},fileAttachments:{value:Rt,writable:!0,configurable:!0}});function $t(){this._computing=Promise.resolve(),this._disposed=!0,this._variables.forEach(e=>{e._invalidate(),e._version=NaN})}r($t,"q"),f($t,"runtime_dispose");function wt(e,t=E){let n;if(e===void 0)return(n=this._init)?(this._init=null,n):new z(this);if(n=this._modules.get(e),n)return n;this._init=n=new z(this),this._modules.set(e,n);try{e(this,t)}finally{this._init=null}return n}r(wt,"A"),f(wt,"runtime_module");function Ct(e){this._precomputes.push(e),this._compute()}r(Ct,"O"),f(Ct,"runtime_precompute");function Et(){return this._computing||(this._computing=this._computeSoon())}r(Et,"T"),f(Et,"runtime_compute");function xt(){return new Promise(Jn).then(()=>this._disposed?void 0:this._computeNow())}r(xt,"F"),f(xt,"runtime_computeSoon");async function St(){let e=[],t,n,i=this._precomputes;if(i.length){this._precomputes=[];for(const a of i)a();await Nt(3)}t=new Set(this._dirty),t.forEach(function(a){a._inputs.forEach(t.add,t);const o=It(a);o>a._reachable?this._updates.add(a):o<a._reachable&&a._invalidate(),a._reachable=o},this),t=new Set(this._updates),t.forEach(function(a){a._reachable?(a._indegree=0,a._outputs.forEach(t.add,t)):(a._indegree=NaN,t.delete(a))}),this._computing=null,this._updates.clear(),this._dirty.clear(),t.forEach(function(a){a._outputs.forEach(jt)});do{for(t.forEach(function(a){a._indegree===0&&e.push(a)});n=e.pop();)Tt(n),n._outputs.forEach(l),t.delete(n);t.forEach(function(a){Ot(a)&&(kt(a,new C("circular definition")),a._outputs.forEach(Pt),t.delete(a))})}while(t.size);function l(a){--a._indegree===0&&e.push(a)}r(l,"f"),f(l,"postqueue")}r(St,"M"),f(St,"runtime_computeNow");function Nt(e=0){let t=Promise.resolve();for(let n=0;n<e;++n)t=t.then(()=>{});return t}r(Nt,"x"),f(Nt,"runtime_defer");function Ot(e){const t=new Set(e._inputs);for(const n of t){if(n===e)return!0;n._inputs.forEach(t.add,t)}return!1}r(Ot,"L"),f(Ot,"variable_circular");function jt(e){++e._indegree}r(jt,"R"),f(jt,"variable_increment");function Pt(e){--e._indegree}r(Pt,"V"),f(Pt,"variable_decrement");function qt(e){return e._promise.catch(e._rejector)}r(qt,"z"),f(qt,"variable_value");function W(e){return new Promise(function(t){e._invalidate=t})}r(W,"d"),f(W,"variable_invalidator");function Mt(e,t){let n=typeof IntersectionObserver=="function"&&t._observer&&t._observer._node,i=!n,l=E,a=E,o,s;return n&&(s=new IntersectionObserver(([u])=>(i=u.isIntersecting)&&(o=null,l())),s.observe(n),e.then(()=>(s.disconnect(),s=null,a()))),function(u){return i?Promise.resolve(u):s?(o||(o=new Promise((c,p)=>(l=c,a=p))),o.then(()=>u)):Promise.reject()}}r(Mt,"C"),f(Mt,"variable_intersector");function Tt(e){e._invalidate(),e._invalidate=E,e._pending();const t=e._value,n=++e._version;let i=null;const l=e._promise=(e._inputs.length?Promise.all(e._inputs.map(qt)).then(a):new Promise(s=>s(e._definition.call(t)))).then(o);function a(s){if(e._version!==n)throw x;for(let u=0,c=s.length;u<c;++u)switch(s[u]){case ut:{s[u]=i=W(e);break}case dt:{i||(i=W(e)),s[u]=Mt(i,e);break}case ct:{s[u]=e;break}}return e._definition.apply(t,s)}r(a,"r"),f(a,"define");function o(s){if(e._version!==n)throw x;return Ze(s)?((i||W(e)).then(Lt(s)),At(e,n,s)):s}r(o,"_"),f(o,"generate"),l.then(s=>{e._value=s,e._fulfilled(s)},s=>{s===x||e._version!==n||(e._value=void 0,e._rejected(s))})}r(Tt,"Y"),f(Tt,"variable_compute");function At(e,t,n){const i=e._module._runtime;let l;function a(u){return new Promise(c=>c(n.next(l))).then(({done:c,value:p})=>c?void 0:Promise.resolve(p).then(u))}r(a,"r"),f(a,"compute");function o(){const u=a(c=>{if(e._version!==t)throw x;return l=c,s(c,u).then(()=>i._precompute(o)),e._fulfilled(c),c});u.catch(c=>{c===x||e._version!==t||(s(void 0,u),e._rejected(c))})}r(o,"_"),f(o,"recompute");function s(u,c){return e._value=u,e._promise=c,e._outputs.forEach(i._updates.add,i._updates),i._compute()}return r(s,"i"),f(s,"postcompute"),a(u=>{if(e._version!==t)throw x;return l=u,i._precompute(o),u})}r(At,"B"),f(At,"variable_generate");function kt(e,t){e._invalidate(),e._invalidate=E,e._pending(),++e._version,e._indegree=NaN,(e._promise=Promise.reject(t)).catch(E),e._value=void 0,e._rejected(t)}r(kt,"D"),f(kt,"variable_error");function Lt(e){return function(){e.return()}}r(Lt,"G"),f(Lt,"variable_return");function It(e){if(e._observer!==U)return!0;const t=new Set(e._outputs);for(const n of t){if(n._observer!==U)return!0;n._outputs.forEach(t.add,t)}return!1}r(It,"H"),f(It,"variable_reachable");function Dt(e){return globalThis[e]}r(Dt,"J"),f(Dt,"window_global");export{pe as Inspector,_e as Runtime,C as RuntimeError};
_observablehq/stdlib.2229c972.js ADDED
@@ -0,0 +1 @@
 
 
1
+ var S=Object.defineProperty;var i=(t,e)=>S(t,"name",{value:e,configurable:!0});var f,m,d,D=Object.defineProperty,u=i((t,e)=>D(t,"name",{value:e,configurable:!0}),"o$3");const b=new Map;function O(t,e){const r=new URL(t,location).href;if(e==null)b.delete(r);else{const{path:n,mimeType:a,lastModified:o,size:s}=e,v=new g(new URL(n,location).href,t.split("/").pop(),a,o,s);b.set(r,v)}}i(O,"d$2"),u(O,"registerFile");function w(t,e=location){if(new.target!==void 0)throw new TypeError("FileAttachment is not a constructor");const r=b.get(new URL(t,e).href);if(!r)throw new Error(`File not found: ${t}`);return r}i(w,"p$1"),u(w,"FileAttachment");async function c(t){const e=await fetch(await t.url());if(!e.ok)throw new Error(`Unable to load file: ${t.name}`);return e}i(c,"n$1"),u(c,"remote_fetch");const j=(f=class{constructor(e,r="application/octet-stream",n,a){Object.defineProperties(this,{name:{value:`${e}`,enumerable:!0},mimeType:{value:`${r}`,enumerable:!0},lastModified:{value:+n,enumerable:!0},size:{value:+a,enumerable:!0}})}async blob(){return(await c(this)).blob()}async arrayBuffer(){return(await c(this)).arrayBuffer()}async text(e){return e===void 0?(await c(this)).text():new TextDecoder(e).decode(await this.arrayBuffer())}async json(){return(await c(this)).json()}async stream(){return(await c(this)).body}async dsv({delimiter:e=",",array:r=!1,typed:n=!1}={}){const[a,o]=await Promise.all([this.text(),import("../_npm/[email protected]/407f7a1f.js")]),s=o.dsvFormat(e);return(r?s.parseRows:s.parse)(a,n&&o.autoType)}async csv(e){return this.dsv({...e,delimiter:","})}async tsv(e){return this.dsv({...e,delimiter:" "})}async image(e){const r=await this.url();return new Promise((n,a)=>{const o=new Image;new URL(r,document.baseURI).origin!==new URL(location).origin&&(o.crossOrigin="anonymous"),Object.assign(o,e),o.onload=()=>n(o),o.onerror=()=>a(new Error(`Unable to load file: ${this.name}`)),o.src=r})}async arrow(){const[e,r]=await Promise.all([import("../_npm/[email protected]/_esm.js"),c(this)]);return e.tableFromIPC(r)}async arquero(e){let r,n;switch(this.mimeType){case"application/json":r=this.text(),n="fromJSON";break;case"text/tab-separated-values":e?.delimiter===void 0&&(e={...e,delimiter:" "});case"text/csv":r=this.text(),n="fromCSV";break;default:if(/\.arrow$/i.test(this.name))r=this.arrow(),n="fromArrow";else if(/\.parquet$/i.test(this.name))r=this.parquet(),n="fromArrow";else throw new Error(`unable to determine Arquero loader: ${this.name}`);break}const[a,o]=await Promise.all([import("../_npm/[email protected]/_esm.js"),r]);return a[n](o,e)}async parquet(){const[e,r,n]=await Promise.all([import("../_npm/[email protected]/_esm.js"),import("../_npm/[email protected]/_esm.js").then(async a=>(await a.default(import.meta.resolve("../_npm/[email protected]/esm/parquet_wasm_bg.wasm")),a)),this.arrayBuffer()]);return e.tableFromIPC(r.readParquet(new Uint8Array(n)).intoIPCStream())}async sqlite(){const[{SQLiteDatabaseClient:e},r]=await Promise.all([import("./stdlib/sqlite.js"),this.arrayBuffer()]);return e.open(r)}async zip(){const[{ZipArchive:e},r]=await Promise.all([import("./stdlib/zip.js"),this.arrayBuffer()]);return e.from(r)}async xml(e="application/xml"){return new DOMParser().parseFromString(await this.text(),e)}async html(){return this.xml("text/html")}async xlsx(){const[{Workbook:e},r]=await Promise.all([import("./stdlib/xlsx.js"),this.arrayBuffer()]);return e.load(r)}},i(f,"f"),f);u(j,"AbstractFile");let x=j;const A=(m=class extends x{constructor(e,r,n,a,o){super(r,n,a,o),Object.defineProperty(this,"href",{value:e})}async url(){return this.href}},i(m,"w"),m);u(A,"FileAttachmentImpl");let g=A;Object.defineProperty(g,"name",{value:"FileAttachment"}),w.prototype=g.prototype;var _=Object.defineProperty,N=i((t,e)=>_(t,"name",{value:e,configurable:!0}),"r$3");async function*l(t){let e,r,n=!1;const a=t(o=>(r=o,e?(e(o),e=null):n=!0,o));if(a!=null&&typeof a!="function")throw new Error(typeof a.then=="function"?"async initializers are not supported":"initializer returned something, but not a dispose function");try{for(;;)yield n?(n=!1,r):new Promise(o=>e=o)}finally{a?.()}}i(l,"u"),N(l,"observe");var V=Object.defineProperty,F=i((t,e)=>V(t,"name",{value:e,configurable:!0}),"o$2");function k(){return l(t=>{let e;const r=matchMedia("(prefers-color-scheme: dark)"),n=F(()=>{const a=getComputedStyle(document.body).getPropertyValue("color-scheme")==="dark";e!==a&&t(e=a)},"changed");return n(),r.addEventListener("change",n),()=>r.removeEventListener("change",n)})}i(k,"m"),F(k,"dark");var G=Object.defineProperty,y=i((t,e)=>G(t,"name",{value:e,configurable:!0}),"e$2");function E(t){return l(e=>{const r=z(t);let n=$(t);const a=y(()=>e($(t)),"inputted");return t.addEventListener(r,a),n!==void 0&&e(n),()=>t.removeEventListener(r,a)})}i(E,"o$1"),y(E,"input");function $(t){switch(t.type){case"range":case"number":return t.valueAsNumber;case"date":return t.valueAsDate;case"checkbox":return t.checked;case"file":return t.multiple?t.files:t.files[0];case"select-multiple":return Array.from(t.selectedOptions,e=>e.value);default:return t.value}}i($,"a"),y($,"valueof");function z(t){switch(t.type){case"button":case"submit":case"checkbox":return"click";case"file":return"change";default:return"input"}}i(z,"f$2"),y(z,"eventof");var J=Object.defineProperty,Q=i((t,e)=>J(t,"name",{value:e,configurable:!0}),"e$1");async function*L(){for(;;)yield Date.now()}i(L,"i$3"),Q(L,"now");var W=Object.defineProperty,Z=i((t,e)=>W(t,"name",{value:e,configurable:!0}),"r$2");async function*q(t){let e;const r=[],n=t(a=>(r.push(a),e&&(e(r.shift()),e=null),a));if(n!=null&&typeof n!="function")throw new Error(typeof n.then=="function"?"async initializers are not supported":"initializer returned something, but not a dispose function");try{for(;;)yield r.length?r.shift():new Promise(a=>e=a)}finally{n?.()}}i(q,"l"),Z(q,"queue");var H=Object.defineProperty,K=i((t,e)=>H(t,"name",{value:e,configurable:!0}),"i$2");function R(t,e){return l(r=>{let n;const a=new ResizeObserver(([o])=>{const s=o.contentRect.width;s!==n&&r(n=s)});return a.observe(t,e),()=>a.disconnect()})}i(R,"d"),K(R,"width");var X=Object.freeze({__proto__:null,dark:k,input:E,now:L,observe:l,queue:q,width:R}),Y=Object.defineProperty,ee=i((t,e)=>Y(t,"name",{value:e,configurable:!0}),"r$1");function U(t){let e;return Object.defineProperty(l(r=>{e=r,t!==void 0&&e(t)}),"value",{get:()=>t,set:r=>void e(t=r)})}i(U,"f$1"),ee(U,"Mutable");var te=Object.defineProperty,C=i((t,e)=>te(t,"name",{value:e,configurable:!0}),"r");function B(t,e){const r=document.createElement("div");r.style.position="relative",t.length!==1&&(r.style.height="100%");let n=0,a=0,o;const s=new ResizeObserver(async([v])=>{const{width:p,height:I}=v.contentRect;if(t.length===1&&p===o)return;o=p;const P=++n,h=p>0?await t(p,I):null;if(!(a>P)){for(a=P;r.lastChild;)r.lastChild.remove();h!=null&&(t.length!==1&&M(h)&&(h.style.position="absolute"),r.append(h))}});return s.observe(r),e?.then(()=>s.disconnect()),r}i(B,"p"),C(B,"resize");function M(t){return typeof t=="object"&&t.nodeType===1}i(M,"v"),C(M,"isElement");var re=Object.defineProperty,ne=i((t,e)=>re(t,"name",{value:e,configurable:!0}),"o");const T=(d=class{},i(d,"e"),d);ne(T,"Library");let ae=T;const ie=void 0;export{x as AbstractFile,w as FileAttachment,ie as FileAttachments,X as Generators,ae as Library,U as Mutable,O as registerFile,B as resize};
_observablehq/theme-air,near-midnight,alt,wide.f6ca92af.css ADDED
@@ -0,0 +1 @@
 
 
1
+ :root{--monospace: Menlo, Consolas, monospace;--monospace-font: 14px/1.5 var(--monospace);--serif: "Source Serif 4", "Iowan Old Style", "Apple Garamond", "Palatino Linotype", "Times New Roman", "Droid Serif", Times, serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--sans-serif: -apple-system, BlinkMacSystemFont, "avenir next", avenir, helvetica, "helvetica neue", ubuntu, roboto, noto, "segoe ui", arial, sans-serif;--theme-blue: #4269d0;--theme-green: #3ca951;--theme-red: #ff725c;--theme-yellow: #efb118}html{-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--theme-background);color:var(--theme-foreground)}body{font:17px/1.5 var(--serif);margin:0}a[href]{color:var(--theme-foreground-focus)}h1,h2,h3,h4,h5,h6{color:var(--theme-foreground-alt);font-weight:700;line-height:1.15;margin-top:0;margin-bottom:.25rem;scroll-margin-top:1rem;text-wrap:balance}h2+p,h3+p,h4+p,h2+table,h3+table,h4+table{margin-top:0}h1+h2{color:var(--theme-foreground);font-size:20px;font-style:italic;font-weight:400;margin-bottom:1rem}a[href]{text-decoration:none}a[href]:hover,a[href]:focus{text-decoration:underline}h1 code,h2 code,h3 code,h4 code,h5 code,h6 code{font-size:90%}pre{line-height:1.5}pre,code,tt{font-family:var(--monospace);font-size:14px}img{max-width:calc(100vw - 28px)}p,table,figure,figcaption,h1,h2,h3,h4,h5,h6,.katex-display{max-width:640px}blockquote,ol,ul{max-width:600px}blockquote{margin:1rem 1.5rem}ul ol{padding-left:28px}hr{height:1px;margin:1rem 0;padding:1rem 0;border:none;background:no-repeat center/100% 1px linear-gradient(to right,var(--theme-foreground-faintest),var(--theme-foreground-faintest))}pre{background-color:var(--theme-background-alt);border-radius:4px;margin:1rem -1rem;max-width:960px;min-height:1.5em;padding:.5rem 1rem;overflow-x:auto;box-sizing:border-box}input:not([type]),input[type=email],input[type=number],input[type=password],input[type=range],input[type=search],input[type=tel],input[type=text],input[type=url]{width:240px}input,canvas,button{vertical-align:middle}button,input,textarea{accent-color:var(--theme-blue)}table{width:100%;border-collapse:collapse;font:13px/1.2 var(--sans-serif)}table pre,table code,table tt{font-size:inherit;line-height:inherit}th>pre:only-child,td>pre:only-child{margin:0;padding:0}th{color:var(--theme-foreground);text-align:left;vertical-align:bottom}td{color:var(--theme-foreground-alt);vertical-align:top}th,td{padding:3px 6.5px 3px 0}th:last-child,td:last-child{padding-right:0}tr:not(:last-child){border-bottom:solid 1px var(--theme-foreground-faintest)}thead tr{border-bottom:solid 1px var(--theme-foreground-fainter)}figure,table{margin:1rem 0}figure img{max-width:100%}figure>h2,figure>h3{font-family:var(--sans-serif)}figure>h2{font-size:20px}figure>h3{font-size:16px;font-weight:400}figcaption{font:small var(--sans-serif);color:var(--theme-foreground-muted)}a[href].observablehq-header-anchor{color:inherit}:root{--font-big: 700 32px/1 var(--sans-serif);--font-small: 14px var(--sans-serif)}.big{font:var(--font-big)}.small{font:var(--font-small)}.red{color:var(--theme-red)}.yellow{color:var(--theme-yellow)}.green{color:var(--theme-green)}.blue{color:var(--theme-blue)}.muted{color:var(--theme-foreground-muted)}.observablehq--draft>h1:first-of-type:after{content:" [DRAFT]";color:var(--theme-foreground-muted)}:root{--theme-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M5 7L8.125 9.5L11.25 7' stroke='black' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");--theme-toggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m10.5,11 2.5-3-2.5-3 M6,8h7' fill='none' stroke='black' stroke-width='2'/%3E%3Crect x='2' y='2' fill='currentColor' height='12' rx='0.5' width='2'/%3E%3C/svg%3E");--theme-magnifier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath stroke='currentColor' stroke-width='2' fill='none' d='M15,15L10.5,10.5a3,3 0 1,0 -6 -6a3,3 0 1,0 6 6'%3E%3C/path%3E%3C/svg%3E")}#observablehq-main,#observablehq-header,#observablehq-footer{margin:1rem auto;max-width:1152px}#observablehq-main{min-height:calc(100vh - 20rem);position:relative;z-index:0}#observablehq-footer{display:block;margin-top:10rem;font:12px var(--sans-serif);color:var(--theme-foreground-faint)}#observablehq-footer nav{display:grid;max-width:640px;grid-template-columns:1fr 1fr;column-gap:1rem;margin-bottom:1rem}#observablehq-footer nav a{display:flex;flex-direction:column;border:1px solid var(--theme-foreground-fainter);border-radius:8px;padding:1rem;line-height:1rem;text-decoration:none}#observablehq-footer nav a span{font-size:14px}#observablehq-footer nav a:hover span{text-decoration:underline}#observablehq-footer nav a:hover{border-color:var(--theme-foreground-focus)}#observablehq-footer nav a[rel=prev]{grid-column:1;align-items:start}#observablehq-footer nav a[rel=next]{grid-column:2;align-items:end}#observablehq-footer nav a:before{color:var(--theme-foreground-faint)}#observablehq-footer nav a[rel=prev]:before{content:"Previous page"}#observablehq-footer nav a[rel=next]:before{content:"Next page"}#observablehq-center{margin:1rem 2rem}#observablehq-sidebar{position:fixed;background:var(--theme-background-alt);color:var(--theme-foreground-muted);font:14px var(--sans-serif);visibility:hidden;font-weight:500;width:272px;z-index:2;top:0;bottom:0;left:-272px;box-sizing:border-box;padding:0 .5rem 1rem;overflow-y:auto}#observablehq-sidebar ol,#observablehq-toc ol{list-style:none;margin:0;padding:0}#observablehq-sidebar>ol,#observablehq-sidebar>details,#observablehq-sidebar>section{position:relative;padding-bottom:.5rem;margin:.5rem 0;border-bottom:solid 1px var(--theme-foreground-faintest)}#observablehq-sidebar>ol:first-child{position:sticky;top:0;z-index:1;background:var(--theme-background-alt);font-size:16px;font-weight:700;padding-top:1rem;padding-left:.5rem;margin:0;margin-left:-.5rem;color:var(--theme-foreground)}#observablehq-sidebar>ol:last-child,#observablehq-sidebar>details:last-child,#observablehq-sidebar>section:last-child{border-bottom:none}#observablehq-sidebar summary{font-weight:700;color:var(--theme-foreground);cursor:default}#observablehq-sidebar summary::-webkit-details-marker,#observablehq-sidebar summary::marker{display:none}#observablehq-sidebar details summary:after{position:absolute;right:0;width:1rem;height:1rem;background:var(--theme-foreground-muted);content:"";-webkit-mask:var(--theme-caret);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;mask:var(--theme-caret);mask-repeat:no-repeat;mask-position:center;padding:.5rem;transition:transform .25s ease;transform:rotate(-90deg);transform-origin:50% 50%}#observablehq-sidebar details summary:hover:after{color:var(--theme-foreground)}#observablehq-sidebar details[open] summary:after{transform:rotate(0)}#observablehq-sidebar-toggle{position:fixed;appearance:none;background:none;top:0;left:0;height:100%;width:2rem;display:flex;align-items:center;justify-content:center;cursor:e-resize;margin:0;color:var(--theme-foreground-muted);z-index:1}#observablehq-sidebar-close{position:absolute;top:1rem;right:0;width:2rem;height:2.2rem;display:flex;align-items:center;justify-content:center;color:var(--theme-foreground-muted);cursor:w-resize;z-index:2}#observablehq-sidebar-toggle:before,#observablehq-sidebar-close:before{content:"";width:1rem;height:1rem;background:currentColor;-webkit-mask:var(--theme-toggle);mask:var(--theme-toggle)}#observablehq-sidebar-close:before{transform:scaleX(-1)}#observablehq-sidebar summary,.observablehq-link a{display:flex;padding:.5rem 1rem .5rem 1.5rem;margin-left:-.5rem;align-items:center}#observablehq-sidebar summary a{flex-grow:1;color:inherit}#observablehq-sidebar summary.observablehq-link{padding:0;margin-left:0}#observablehq-sidebar details summary:hover,.observablehq-link-active a,.observablehq-link a:hover{background:var(--theme-background)}.observablehq-link a:hover{color:var(--theme-foreground-focus)}#observablehq-toc{display:none;position:fixed;color:var(--theme-foreground-muted);font:400 14px var(--sans-serif);z-index:1;top:0;right:0;bottom:0;overflow-y:auto}#observablehq-toc nav{width:192px;margin:2rem 0;padding:0 1rem;box-sizing:border-box;border-left:solid 1px var(--theme-foreground-faintest)}#observablehq-toc div{font-weight:700;color:var(--theme-foreground);margin-bottom:.5rem}.observablehq-secondary-link a{display:block;padding:.25rem 0}.observablehq-link:not(.observablehq-link-active) a[href]:not(:hover),.observablehq-secondary-link:not(.observablehq-secondary-link-active) a[href]:not(:hover){color:inherit}.observablehq-link-active,.observablehq-secondary-link-active{position:relative}.observablehq-link-active:before,.observablehq-secondary-link-highlight{content:"";position:absolute;width:3px;background:var(--theme-foreground-focus)}.observablehq-link-active:before{top:0;bottom:0;left:-.5rem}.observablehq-secondary-link-highlight{left:1px;top:2rem;height:0;transition:top .15s ease,height .15s ease}#observablehq-sidebar{transition:visibility .15s 0ms,left .15s 0ms ease}#observablehq-sidebar:focus-within,#observablehq-sidebar-toggle:checked~#observablehq-sidebar{left:0;visibility:initial;box-shadow:0 0 8px 4px #0000001a;transition:visibility 0ms 0ms,left .15s 0ms ease}#observablehq-sidebar-backdrop{display:none;position:fixed;inset:0;z-index:2}#observablehq-sidebar-backdrop:has(~#observablehq-sidebar:focus-within),#observablehq-sidebar-toggle:checked~#observablehq-sidebar-backdrop{display:initial}@media (prefers-color-scheme: dark){#observablehq-sidebar:focus-within,#observablehq-sidebar-toggle:checked~#observablehq-sidebar{box-shadow:0 0 8px 4px #00000080}}@media (min-width: calc(912px + 6rem)){#observablehq-sidebar{transition:none!important}#observablehq-sidebar-toggle:checked~#observablehq-sidebar-backdrop{display:none}#observablehq-sidebar-toggle:checked~#observablehq-sidebar,#observablehq-sidebar-toggle:indeterminate~#observablehq-sidebar{left:0;visibility:initial;box-shadow:none;border-right:solid 1px var(--theme-foreground-faintest)}#observablehq-sidebar-toggle:checked~#observablehq-center,#observablehq-sidebar-toggle:indeterminate~#observablehq-center{padding-left:calc(272px + 1rem);padding-right:1rem}}@media (min-width: calc(832px + 6rem)){#observablehq-toc~#observablehq-center{padding-right:calc(192px + 1rem)}#observablehq-toc{display:block}}@media (min-width: calc(912px + 6rem)){#observablehq-sidebar-toggle:checked~#observablehq-toc,#observablehq-sidebar-toggle:indeterminate~#observablehq-toc{display:none}}@media (min-width: calc(1104px + 6rem)){#observablehq-sidebar-toggle:checked~#observablehq-toc,#observablehq-sidebar-toggle:indeterminate~#observablehq-toc,#observablehq-toc{display:block}#observablehq-sidebar-toggle:checked~#observablehq-toc~#observablehq-center,#observablehq-sidebar-toggle:indeterminate~#observablehq-toc~#observablehq-center,#observablehq-toc~#observablehq-center{padding-right:calc(192px + 1rem)}}.observablehq-pre-container{position:relative;margin:1rem -1rem;max-width:960px}.observablehq-pre-container:after{position:absolute;top:0;right:0;height:21px;font:12px var(--sans-serif);color:var(--theme-foreground-muted);background:linear-gradient(to right,transparent,var(--theme-background-alt) 40%);padding:.5rem .5rem .5rem 1.5rem}.observablehq-pre-container[data-language]:after{content:attr(data-language)}.observablehq-pre-container pre{padding-right:4rem;margin:0;max-width:none}.observablehq-pre-copy{position:absolute;top:0;right:0;background:none;color:transparent;border:none;border-radius:4px;padding:0 8px;margin:4px;height:29px;cursor:pointer;z-index:1;display:flex;align-items:center}.observablehq-pre-copied:before{content:"Copied!";position:absolute;right:calc(100% + .25rem);background:linear-gradient(to right,transparent,var(--theme-background-alt) 10%);color:var(--theme-green);font:var(--font-small);padding:4px 8px 4px 16px;pointer-events:none;animation-name:observablehq-pre-copied;animation-duration:.25s;animation-direction:alternate;animation-iteration-count:2}@keyframes observablehq-pre-copied{0%{opacity:0;transform:translate(.5rem)}50%{opacity:1}to{transform:translate(0)}}.observablehq-pre-container[data-copy] .observablehq-pre-copy,.observablehq-pre-container:hover .observablehq-pre-copy,.observablehq-pre-container .observablehq-pre-copy:focus{background:var(--theme-background-alt);color:var(--theme-foreground-faint)}.observablehq-pre-container .observablehq-pre-copy:hover{color:var(--theme-foreground-muted)}.observablehq-pre-container .observablehq-pre-copy:active{color:var(--theme-foreground);background:var(--theme-foreground-faintest)}#observablehq-sidebar.observablehq-search-results>ol:not(:first-child),#observablehq-sidebar.observablehq-search-results>details,#observablehq-sidebar.observablehq-search-results>section{display:none}#observablehq-search{position:relative;padding:.5rem 0 0;display:flex;align-items:center}#observablehq-search input{padding:6px 4px 6px 2.2em;width:100%;border:none;border-radius:4px;background-color:var(--theme-background);font-size:13.3px;height:28px}#observablehq-search input::placeholder{color:var(--theme-foreground-faint)}#observablehq-search:before{position:absolute;left:.5rem;content:"";width:1rem;height:1rem;background:currentColor;-webkit-mask:var(--theme-magnifier);mask:var(--theme-magnifier);pointer-events:none}#observablehq-search:after{position:absolute;right:6px;content:attr(data-shortcut);pointer-events:none}#observablehq-search:focus-within:after{content:""}#observablehq-search-results{--relevance-width: 32px;position:absolute;overflow-y:auto;top:6.5rem;left:0;right:.5rem;bottom:0}#observablehq-search-results a span{max-width:184px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#observablehq-search-results div{text-align:right;font-size:10px;margin:.5em}#observablehq-search-results li{position:relative;display:flex;align-items:center}#observablehq-search-results a{flex-grow:1}#observablehq-search-results li:after,#observablehq-search-results a span:after{content:"";width:var(--relevance-width);height:4px;position:absolute;top:14px;right:.5em;border-radius:2px;background:var(--theme-foreground-muted)}#observablehq-search-results li.observablehq-link-active:after{background:var(--theme-foreground-focus)}#observablehq-search-results a span:after{background:var(--theme-foreground-faintest)}#observablehq-search-results li[data-score="0"]:after{width:calc(var(--relevance-width) * .125)}#observablehq-search-results li[data-score="1"]:after{width:calc(var(--relevance-width) * .25)}#observablehq-search-results li[data-score="2"]:after{width:calc(var(--relevance-width) * .4375)}#observablehq-search-results li[data-score="3"]:after{width:calc(var(--relevance-width) * .625)}#observablehq-search-results li[data-score="4"]:after{width:calc(var(--relevance-width) * .8125)}@media print{#observablehq-center{padding-left:1em!important}#observablehq-sidebar,#observablehq-footer{display:none!important}}#observablehq-center{container-type:inline-size}.grid{margin:1rem 0;display:grid;gap:1rem;grid-auto-rows:1fr}.grid svg{overflow:visible}.grid figure{margin:0}.grid>*>p:first-child{margin-top:0}.grid>*>p:last-child{margin-bottom:0}@container (min-width: 640px){.grid-cols-2,.grid-cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-2 .grid-colspan-2,.grid-cols-2 .grid-colspan-3,.grid-cols-2 .grid-colspan-4,.grid-cols-4 .grid-colspan-2,.grid-cols-4 .grid-colspan-3,.grid-cols-4 .grid-colspan-4{grid-column:span 2}}@container (min-width: 720px){.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-3 .grid-colspan-2{grid-column:span 2}.grid-cols-3 .grid-colspan-3{grid-column:span 3}}@container (min-width: 1080px){.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-4 .grid-colspan-3{grid-column:span 3}.grid-cols-4 .grid-colspan-4{grid-column:span 4}}.grid-rowspan-2{grid-row:span 2}.grid-rowspan-3{grid-row:span 3}.grid-rowspan-4{grid-row:span 4}.note,.tip,.warning,.caution{border-left:solid 1px;border-radius:0 4px 4px 0;padding:1rem 2rem;margin:1rem 0;box-sizing:border-box;max-width:640px}.note:before,.tip:before,.warning:before,.caution:before{display:block;margin-bottom:1rem;font-weight:700}.note{border-left-color:var(--theme-foreground-fainter);background-color:var(--theme-background-alt)}.note:before{content:"Note";color:var(--theme-foreground-muted)}.tip{border-left-color:var(--theme-green);background-color:color-mix(in srgb,var(--theme-green),var(--theme-background) 90%)}.tip:before{content:"Tip";color:var(--theme-green)}.warning{border-left-color:var(--theme-yellow);background-color:color-mix(in srgb,var(--theme-yellow),var(--theme-background) 90%)}.warning:before{content:"Warning";color:var(--theme-yellow)}.caution{border-left-color:var(--theme-red);background-color:color-mix(in srgb,var(--theme-red),var(--theme-background) 90%)}.caution:before{content:"Caution";color:var(--theme-red)}.note[label]:before,.tip[label]:before,.warning[label]:before,.caution[label]:before{content:attr(label)}.note>:first-child,.tip>:first-child,.warning>:first-child,.caution>:first-child{margin-top:0}.note>:last-child,.tip>:last-child,.warning>:last-child,.caution>:last-child{margin-bottom:0}.card{background:var(--theme-background-alt);border:solid 1px var(--theme-foreground-faintest);border-radius:.75rem;padding:1rem;margin:1rem 0;font:14px var(--sans-serif)}.grid>.card{margin:0}.card>:first-child,.card>:first-child>:first-child{margin-top:0}.card>:last-child,.card>:last-child>:last-child{margin-bottom:0}.card h2,.card h3{font-size:inherit}.card h2{font-weight:500;font-size:15px}.card h3{font-weight:400;color:var(--theme-foreground-muted)}.card h2~svg,.card h3~svg,.card h2~p,.card h3~p{margin-top:1rem}.observablehq--block:empty{margin:0}@keyframes observablehq-loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}observablehq-loading{font:var(--monospace-font);color:var(--theme-foreground-muted);display:inline-block;transform-origin:.32em 55%;animation-name:observablehq-loading;animation-timing-function:linear;animation-duration:1s;animation-iteration-count:infinite}observablehq-loading:before{content:"\21bb"}.observablehq--block observablehq-loading{display:block}.observablehq--block{margin:1rem 0}.observablehq--block .observablehq,.observablehq--block .observablehq--inspect{display:block}.observablehq--collapsed,.observablehq--expanded.observablehq--inspect a{cursor:pointer}.observablehq--caret{margin-right:4px;vertical-align:baseline}.observablehq--field{text-indent:-1rem;margin-left:1rem}.observablehq--inspect{font:var(--monospace-font);overflow-x:auto;white-space:pre}.observablehq--inspect.observablehq--import{white-space:normal}.observablehq--inspect::-webkit-scrollbar{display:none}.observablehq--error .observablehq--inspect{word-break:break-all;white-space:pre-wrap}.observablehq--string-expand{margin-left:6px;padding:2px 6px;border-radius:2px;font-size:80%;background:var(--theme-background-alt);cursor:pointer;vertical-align:middle}.observablehq--keyword,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:var(--syntax-keyword)}.observablehq--symbol,.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:var(--syntax-entity)}.observablehq--index,.observablehq--key,.hljs-attr,.hljs-attribute,.hljs-meta,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:var(--syntax-constant)}.observablehq--regexp,.observablehq--string,.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:var(--syntax-string)}.observablehq--null,.observablehq--undefined,.hljs-built_in,.hljs-literal,.hljs-symbol{color:var(--syntax-variable)}.observablehq--prototype-key,.observablehq--empty,.hljs-comment,.hljs-formula{color:var(--syntax-comment)}.observablehq--bigint,.observablehq--boolean,.observablehq--date,.observablehq--forbidden,.observablehq--number,.hljs-name,.hljs-number,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:var(--syntax-entity-tag)}.hljs-subst{color:var(--syntax-storage-modifier-import)}.hljs-section{color:var(--syntax-markup-heading);font-weight:700}.hljs-bullet{color:var(--syntax-markup-list)}.hljs-emphasis{color:var(--syntax-markup-italic);font-style:italic}.hljs-strong{color:var(--syntax-markup-bold);font-weight:700}.hljs-addition{color:var(--syntax-markup-inserted);background-color:var(--syntax-markup-inserted-background)}.hljs-deletion{color:var(--syntax-markup-deleted);background-color:var(--syntax-markup-deleted-background)}.observablehq--empty{font-style:oblique}.observablehq--error{color:var(--syntax-keyword)}.plot-d6a7b5{--plot-background: var(--theme-background)}p .plot-d6a7b5{display:inline-block}@media (prefers-color-scheme: light){:root{--syntax-keyword: #d73a49;--syntax-entity: #6f42c1;--syntax-constant: #005cc5;--syntax-string: #032f62;--syntax-variable: #e36209;--syntax-comment: var(--theme-foreground-muted);--syntax-entity-tag: #22863a;--syntax-storage-modifier-import: #24292e;--syntax-markup-heading: #005cc5;--syntax-markup-list: #735c0f;--syntax-markup-italic: #24292e;--syntax-markup-bold: #24292e;--syntax-markup-inserted: #22863a;--syntax-markup-inserted-background: #f0fff4;--syntax-markup-deleted: #b31d28;--syntax-markup-deleted-background: #ffeef0}}@media (prefers-color-scheme: light){:root{--theme-background-b: color-mix(in srgb, var(--theme-foreground) 4%, var(--theme-background-a));--theme-background: var(--theme-background-a);--theme-background-alt: var(--theme-background-b);--theme-foreground-alt: color-mix(in srgb, var(--theme-foreground) 90%, var(--theme-background-a));--theme-foreground-muted: color-mix(in srgb, var(--theme-foreground) 60%, var(--theme-background-a));--theme-foreground-faint: color-mix(in srgb, var(--theme-foreground) 50%, var(--theme-background-a));--theme-foreground-fainter: color-mix(in srgb, var(--theme-foreground) 30%, var(--theme-background-a));--theme-foreground-faintest: color-mix(in srgb, var(--theme-foreground) 14%, var(--theme-background-a));color-scheme:light}}@media (prefers-color-scheme: light){:root{--theme-foreground: #1b1e23;--theme-foreground-focus: #3b5fc0;--theme-background-a: #ffffff}}@media (prefers-color-scheme: dark){:root{--syntax-keyword: #ff7b72;--syntax-entity: #d2a8ff;--syntax-constant: #79c0ff;--syntax-string: #a5d6ff;--syntax-variable: #ffa657;--syntax-comment: var(--theme-foreground-muted);--syntax-entity-tag: #7ee787;--syntax-storage-modifier-import: #c9d1d9;--syntax-markup-heading: #1f6feb;--syntax-markup-list: #f2cc60;--syntax-markup-italic: #c9d1d9;--syntax-markup-bold: #c9d1d9;--syntax-markup-inserted: #aff5b4;--syntax-markup-inserted-background: #033a16;--syntax-markup-deleted: #ffdcd7;--syntax-markup-deleted-background: #67060c}}@media (prefers-color-scheme: dark){:root{--theme-background-a: color-mix(in srgb, var(--theme-foreground) 4%, var(--theme-background-b));--theme-background: var(--theme-background-a);--theme-background-alt: var(--theme-background-b);--theme-foreground-alt: color-mix(in srgb, var(--theme-foreground) 90%, var(--theme-background-b));--theme-foreground-muted: color-mix(in srgb, var(--theme-foreground) 60%, var(--theme-background-b));--theme-foreground-faint: color-mix(in srgb, var(--theme-foreground) 50%, var(--theme-background-b));--theme-foreground-fainter: color-mix(in srgb, var(--theme-foreground) 30%, var(--theme-background-b));--theme-foreground-faintest: color-mix(in srgb, var(--theme-foreground) 14%, var(--theme-background-b));color-scheme:dark}}@media (prefers-color-scheme: dark){:root{--theme-foreground: #dfdfd6;--theme-foreground-focus: oklch(.712564 .257662 265.758);--theme-background-b: #161616}}:root{--theme-background: var(--theme-background-b);--theme-background-alt: var(--theme-background-a)}#observablehq-main,#observablehq-header,#observablehq-footer{max-width:none}
index.html CHANGED
@@ -1,19 +1,530 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <meta charset="utf-8">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
4
+ <meta name="generator" content="Observable Framework v1.11.0">
5
+ <title>Forum Dashboard | Observable Forum Dashboard</title>
6
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
7
+ <link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&amp;display=swap" crossorigin>
8
+ <link rel="preload" as="style" href="./_observablehq/theme-air,near-midnight,alt,wide.f6ca92af.css">
9
+ <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&amp;display=swap" crossorigin>
10
+ <link rel="stylesheet" type="text/css" href="./_observablehq/theme-air,near-midnight,alt,wide.f6ca92af.css">
11
+ <link rel="modulepreload" href="./_observablehq/client.0d4e9b14.js">
12
+ <link rel="modulepreload" href="./_observablehq/runtime.3f7f73d9.js">
13
+ <link rel="modulepreload" href="./_observablehq/stdlib.2229c972.js">
14
+ <link rel="modulepreload" href="./_node/[email protected]/index.f89e3560.js">
15
+ <link rel="modulepreload" href="./_npm/[email protected]/407f7a1f.js">
16
+ <link rel="modulepreload" href="./_npm/@observablehq/[email protected]/e828d8c8.js">
17
+ <link rel="modulepreload" href="./_node/[email protected]/index.4106013c.js">
18
+ <link rel="modulepreload" href="./_npm/[email protected]/7055d4c5.js">
19
+ <link rel="modulepreload" href="./_npm/[email protected]/c68fbd73.js">
20
+ <link rel="modulepreload" href="./_npm/[email protected]/a62ae5ce.js">
21
+ <link rel="modulepreload" href="./_npm/[email protected]/e95f898e.js">
22
+ <link rel="modulepreload" href="./_npm/[email protected]/d44feff9.js">
23
+ <link rel="modulepreload" href="./_npm/[email protected]/5830b12a.js">
24
+ <link rel="modulepreload" href="./_npm/[email protected]/84d7b8e9.js">
25
+ <link rel="modulepreload" href="./_npm/[email protected]/2c0cdfa2.js">
26
+ <link rel="modulepreload" href="./_npm/[email protected]/626bedc4.js">
27
+ <link rel="modulepreload" href="./_npm/[email protected]/00c41b5d.js">
28
+ <link rel="modulepreload" href="./_npm/[email protected]/b5f7cdc6.js">
29
+ <link rel="modulepreload" href="./_npm/[email protected]/b22c5864.js">
30
+ <link rel="modulepreload" href="./_npm/[email protected]/6f15f633.js">
31
+ <link rel="modulepreload" href="./_npm/[email protected]/ef1ec490.js">
32
+ <link rel="modulepreload" href="./_npm/[email protected]/5e1ff060.js">
33
+ <link rel="modulepreload" href="./_npm/[email protected]/5851d7ef.js">
34
+ <link rel="modulepreload" href="./_npm/[email protected]/dcd02767.js">
35
+ <link rel="modulepreload" href="./_npm/[email protected]/f1db2593.js">
36
+ <link rel="modulepreload" href="./_npm/[email protected]/034b7bcb.js">
37
+ <link rel="modulepreload" href="./_npm/[email protected]/4bb53638.js">
38
+ <link rel="modulepreload" href="./_npm/[email protected]/bbafde58.js">
39
+ <link rel="modulepreload" href="./_npm/[email protected]/aa5b35a8.js">
40
+ <link rel="modulepreload" href="./_npm/[email protected]/32c7fec2.js">
41
+ <link rel="modulepreload" href="./_npm/[email protected]/567840a0.js">
42
+ <link rel="modulepreload" href="./_npm/[email protected]/cf9b720b.js">
43
+ <link rel="modulepreload" href="./_npm/[email protected]/5dcd62f4.js">
44
+ <link rel="modulepreload" href="./_npm/[email protected]/f8e03c56.js">
45
+ <link rel="modulepreload" href="./_npm/[email protected]/5bc129e1.js">
46
+ <link rel="modulepreload" href="./_npm/[email protected]/19c92b44.js">
47
+ <link rel="modulepreload" href="./_npm/[email protected]/f31b5398.js">
48
+ <link rel="modulepreload" href="./_npm/[email protected]/8debb4ba.js">
49
+ <link rel="modulepreload" href="./_npm/[email protected]/4b0cc581.js">
50
+ <link rel="modulepreload" href="./_npm/[email protected]/1ee6c50d.js">
51
+ <link rel="modulepreload" href="./_npm/[email protected]/5eed35fd.js">
52
+ <link rel="modulepreload" href="./_npm/[email protected]/e67acb27.js">
53
+ <link rel="modulepreload" href="./_npm/[email protected]/8ac9039b.js">
54
+ <link rel="icon" href="./_file/observable.1af93621.png" type="image/png" sizes="32x32">
55
+ <script type="module">
56
+
57
+ import {define} from "./_observablehq/client.0d4e9b14.js";
58
+ import {registerFile} from "./_observablehq/stdlib.2229c972.js";
59
+
60
+ registerFile("./data/categories.csv", {"name":"./data/categories.csv","mimeType":"text/csv","path":"./_file/data/categories.f3fa0523.csv","lastModified":1727270905445,"size":662});
61
+ registerFile("./data/posts.csv", {"name":"./data/posts.csv","mimeType":"text/csv","path":"./_file/data/posts.4e3f4ea9.csv","lastModified":1727270904895,"size":6725351});
62
+ registerFile("./data/setup.json", {"name":"./data/setup.json","mimeType":"application/json","path":"./_file/data/setup.f452f82e.json","lastModified":1727270007346,"size":53});
63
+
64
+ define({id: "49c958aa", inputs: ["FileAttachment"], outputs: ["d3","setup","url","posts","categoriesRaw","topics","users","topicsByCategory","categories","tenTopUsers","tenTopAcceptedUsers","NUM_USERS","topAcceptedUsersPerYear","intervals","interval","intervalLabel","color","years"], body: async (FileAttachment) => {
65
+ const d3 = await import("./_node/[email protected]/index.f89e3560.js");
66
+ const setup = await FileAttachment("./data/setup.json").json();
67
+ const url = setup.base_url;
68
+ const posts = await FileAttachment("./data/posts.csv").csv({ typed: true });
69
+ const categoriesRaw = await FileAttachment("./data/categories.csv").csv({
70
+ typed: true,
71
+ });
72
+ const topics = [
73
+ ...d3
74
+ .rollup(
75
+ posts,
76
+ (v) => ({
77
+ topic_id: v[0].topic_id,
78
+ category_id: v[0].category_id,
79
+ posts: v,
80
+ users: new Set(v.map((d) => d.username)),
81
+ }),
82
+ (d) => d.topic_id
83
+ )
84
+ .values(),
85
+ ];
86
+ const users = d3.rollup(
87
+ posts,
88
+ (v) => ({ username: v[0].username, avatar_template: v[0].avatar_template }),
89
+ (d) => d.username
90
+ );
91
+
92
+ const topicsByCategory = d3.rollup(
93
+ topics,
94
+ (v) => v.length,
95
+ (d) => d.category_id
96
+ );
97
+ const categories = categoriesRaw.map((d) => ({
98
+ ...d,
99
+ topics: topicsByCategory.get(d.id) || 0,
100
+ }));
101
+
102
+ const tenTopUsers = d3
103
+ .rollups(
104
+ posts,
105
+ (v) => v.length,
106
+ (d) => d.username
107
+ )
108
+ .sort((a, b) => d3.descending(a[1], b[1]))
109
+ .slice(0, 10)
110
+ .map((d) => ({
111
+ username: d[0],
112
+ posts: d[1],
113
+ }));
114
+
115
+ const tenTopAcceptedUsers = d3
116
+ .rollups(
117
+ posts.filter((d) => d.accepted_answer),
118
+ (v) => v.length,
119
+ (d) => d.username
120
+ )
121
+ .sort((a, b) => d3.descending(a[1], b[1]))
122
+ .slice(0, 10)
123
+ .map((d) => ({
124
+ username: d[0],
125
+ posts: d[1],
126
+ }));
127
+
128
+ const NUM_USERS = 3;
129
+ const topAcceptedUsersPerYear = d3
130
+ .rollups(
131
+ posts.filter((d) => d.accepted_answer),
132
+ (v) => v.length,
133
+ (d) => d.created_at.getFullYear(),
134
+ (d) => d.username
135
+ )
136
+ .flatMap(([year, users_stats]) => {
137
+ const top_usernames = users_stats
138
+ .sort(([_, posts_count_a], [__, posts_count_b]) =>
139
+ d3.descending(posts_count_a, posts_count_b)
140
+ )
141
+ .slice(0, NUM_USERS)
142
+ .map(([username]) => username);
143
+ return top_usernames.map((username, i) => ({
144
+ rank: i + 1,
145
+ year,
146
+ username,
147
+ src: url + users.get(username).avatar_template.replace("{size}", "400"),
148
+ }));
149
+ });
150
+
151
+ const intervals = { month: "Month", year: "Year", day: "Day", week: "Week" };
152
+ const interval = "month";
153
+ const intervalLabel = intervals[interval];
154
+
155
+ const color = {
156
+ users: "#e36209",
157
+ posts: "#3b5fc0",
158
+ accepted: "green",
159
+ };
160
+
161
+ const years = d3.extent(posts, (d) => d.created_at.getFullYear());
162
+ return {d3,setup,url,posts,categoriesRaw,topics,users,topicsByCategory,categories,tenTopUsers,tenTopAcceptedUsers,NUM_USERS,topAcceptedUsersPerYear,intervals,interval,intervalLabel,color,years};
163
+ }});
164
+
165
+ define({id: "8404f401", mode: "inline", inputs: ["years","display"], body: async (years,display) => {
166
+ display(await(
167
+ years[0]
168
+ ))
169
+ }});
170
+
171
+ define({id: "18528b79", mode: "inline", inputs: ["years","display"], body: async (years,display) => {
172
+ display(await(
173
+ years[1]
174
+ ))
175
+ }});
176
+
177
+ define({id: "ebe544d8", mode: "inline", inputs: ["topics","display"], body: async (topics,display) => {
178
+ display(await(
179
+ topics.length.toLocaleString("en-US")
180
+ ))
181
+ }});
182
+
183
+ define({id: "a9ac2ae4", mode: "inline", inputs: ["posts","display"], body: async (posts,display) => {
184
+ display(await(
185
+ posts.length.toLocaleString("en-US")
186
+ ))
187
+ }});
188
+
189
+ define({id: "9f3c82c4", mode: "inline", inputs: ["users","display"], body: async (users,display) => {
190
+ display(await(
191
+ users.size.toLocaleString("en-US")
192
+ ))
193
+ }});
194
+
195
+ define({id: "3939618f", inputs: ["Plot","color"], outputs: ["postsMAU"], body: (Plot,color) => {
196
+ function postsMAU(data, { width } = {}) {
197
+ return Plot.plot({
198
+ title: `Monthly active users`,
199
+ width,
200
+ height: 300,
201
+ y: { grid: true, label: `users` },
202
+ // color: {...color, legend: true},
203
+ marks: [
204
+ Plot.lineY(
205
+ data,
206
+ Plot.binX(
207
+ { y: "distinct" },
208
+ {
209
+ x: "created_at",
210
+ y: "username",
211
+ stroke: color.users,
212
+ interval: "month",
213
+ tip: true,
214
+ }
215
+ )
216
+ ),
217
+ Plot.ruleY([0]),
218
+ ],
219
+ });
220
+ }
221
+ return {postsMAU};
222
+ }});
223
+
224
+ define({id: "694a2e8e", inputs: ["Plot","interval","color"], outputs: ["postsTimeline"], body: (Plot,interval,color) => {
225
+ function postsTimeline(data, { width } = {}) {
226
+ return Plot.plot({
227
+ title: `Posts created every ${interval}`,
228
+ width,
229
+ height: 300,
230
+ y: { grid: true, label: "posts" },
231
+ // color: {...color, legend: true},
232
+ marks: [
233
+ Plot.lineY(
234
+ data,
235
+ Plot.binX(
236
+ { y: "count" },
237
+ { x: "created_at", stroke: color.posts, interval, tip: true }
238
+ )
239
+ ),
240
+ Plot.ruleY([0]),
241
+ ],
242
+ });
243
+ }
244
+ return {postsTimeline};
245
+ }});
246
+
247
+ define({id: "df5d29c1", mode: "inline", inputs: ["resize","postsMAU","posts","display"], body: async (resize,postsMAU,posts,display) => {
248
+ display(await(
249
+ resize((width) => postsMAU(posts, {width}))
250
+ ))
251
+ }});
252
+
253
+ define({id: "8db957c1", mode: "inline", inputs: ["resize","postsTimeline","posts","display"], body: async (resize,postsTimeline,posts,display) => {
254
+ display(await(
255
+ resize((width) => postsTimeline(posts, {width}))
256
+ ))
257
+ }});
258
+
259
+ define({id: "35e85ade", inputs: ["Plot"], outputs: ["categoriesChart"], body: (Plot) => {
260
+ function categoriesChart(data, { width }) {
261
+ return Plot.plot({
262
+ title: "Most active categories",
263
+ width,
264
+ height: 300,
265
+ marginTop: 0,
266
+ marginLeft: 150,
267
+ x: { grid: true, label: "Topics" },
268
+ y: { label: null },
269
+ marks: [
270
+ Plot.barX(data, {
271
+ x: "topics",
272
+ y: "name",
273
+ fill: (d) => "#" + d.color,
274
+ tip: true,
275
+ sort: { y: "-x" },
276
+ }),
277
+ Plot.ruleX([0]),
278
+ ],
279
+ });
280
+ }
281
+ return {categoriesChart};
282
+ }});
283
+
284
+ define({id: "4933adab", inputs: ["Plot","d3"], outputs: ["answersPerTopicChart"], body: (Plot,d3) => {
285
+ function answersPerTopicChart(data, { width }) {
286
+ return Plot.plot({
287
+ title: "Answers per topic",
288
+ width,
289
+ height: 300,
290
+ marginTop: 0,
291
+ marginLeft: 150,
292
+ x: { grid: true, label: "Proportion (%)", percent: true },
293
+ y: { label: "Answers", reverse: true },
294
+ marks: [
295
+ Plot.rectX(
296
+ data,
297
+ Plot.binY(
298
+ { x: "proportion" },
299
+ {
300
+ y: {
301
+ value: (d) => d.posts.length - 1,
302
+ thresholds: d3.range(-0.5, 10.5),
303
+ },
304
+ fill: (d) => (d.posts.length === 1 ? "#AAA" : "#DDD"),
305
+ tip: true,
306
+ }
307
+ )
308
+ ),
309
+ Plot.ruleX([0]),
310
+ ],
311
+ });
312
+ }
313
+ return {answersPerTopicChart};
314
+ }});
315
+
316
+ define({id: "e3ec0bba", mode: "inline", inputs: ["resize","categoriesChart","categories","display"], body: async (resize,categoriesChart,categories,display) => {
317
+ display(await(
318
+ resize((width) => categoriesChart(categories, {width}))
319
+ ))
320
+ }});
321
+
322
+ define({id: "4e86c617", mode: "inline", inputs: ["resize","answersPerTopicChart","topics","display"], body: async (resize,answersPerTopicChart,topics,display) => {
323
+ display(await(
324
+ resize((width) => answersPerTopicChart(topics, {width}))
325
+ ))
326
+ }});
327
+
328
+ define({id: "1e4bc9aa", inputs: ["Plot","color"], outputs: ["topUsersChart","topAcceptedUsersChart","topAcceptedUsersPerYearChart"], body: (Plot,color) => {
329
+ function topUsersChart(data, { width }) {
330
+ return Plot.plot({
331
+ title: "Top posters",
332
+ width,
333
+ height: 300,
334
+ marginTop: 0,
335
+ marginLeft: 150,
336
+ x: { grid: true, label: "Posts" },
337
+ y: { label: null },
338
+ marks: [
339
+ Plot.barX(data, {
340
+ x: "posts",
341
+ y: "username",
342
+ fill: color.posts,
343
+ tip: true,
344
+ sort: { y: "-x" },
345
+ }),
346
+ Plot.ruleX([0]),
347
+ ],
348
+ });
349
+ }
350
+
351
+ function topAcceptedUsersChart(data, { width }) {
352
+ return Plot.plot({
353
+ title: "Users with most accepted answers",
354
+ width,
355
+ height: 300,
356
+ marginTop: 0,
357
+ marginLeft: 150,
358
+ x: { grid: true, label: "Posts" },
359
+ y: { label: null },
360
+ marks: [
361
+ Plot.barX(data, {
362
+ x: "posts",
363
+ y: "username",
364
+ fill: color.accepted,
365
+ tip: true,
366
+ sort: { y: "-x" },
367
+ }),
368
+ Plot.ruleX([0]),
369
+ ],
370
+ });
371
+ }
372
+
373
+ function topAcceptedUsersPerYearChart(data, { width }) {
374
+ return Plot.plot({
375
+ title: "User with most accepted answers per year",
376
+ width,
377
+ height: 300,
378
+ marginTop: 0,
379
+ marginLeft: 50,
380
+ marginRight: 50,
381
+ x: { grid: false, label: "Year" },
382
+ y: { grid: false, ticks: false, label: null, domain: [4, 0] },
383
+ color: { domain: [1, 2, 3], range: ["#FFD700", "#C0C0C0", "#CD7F32"] },
384
+ marks: [
385
+ Plot.image(data, {
386
+ x: (d) => new Date(d.year + "-01-01"),
387
+ y: "rank",
388
+ src: "src",
389
+ tip: true,
390
+ r: 20,
391
+ preserveAspectRatio: "xMidYMin slice",
392
+ title: (d) => `${d.username} - rank ${d.rank} (${d.year})`,
393
+ }),
394
+ Plot.dot(data, {
395
+ x: (d) => new Date(d.year + "-01-01"),
396
+ y: "rank",
397
+ r: 20,
398
+ stroke: "rank",
399
+ strokeWidth: 2,
400
+ }),
401
+ Plot.ruleY([4]),
402
+ ],
403
+ });
404
+ }
405
+ return {topUsersChart,topAcceptedUsersChart,topAcceptedUsersPerYearChart};
406
+ }});
407
+
408
+ define({id: "0fa544ed", mode: "inline", inputs: ["resize","topUsersChart","tenTopUsers","display"], body: async (resize,topUsersChart,tenTopUsers,display) => {
409
+ display(await(
410
+ resize((width) => topUsersChart(tenTopUsers, {width}))
411
+ ))
412
+ }});
413
+
414
+ define({id: "04e33544", mode: "inline", inputs: ["resize","topAcceptedUsersPerYearChart","topAcceptedUsersPerYear","display"], body: async (resize,topAcceptedUsersPerYearChart,topAcceptedUsersPerYear,display) => {
415
+ display(await(
416
+ resize((width) => topAcceptedUsersPerYearChart(topAcceptedUsersPerYear, {width}))
417
+ ))
418
+ }});
419
+
420
+ define({id: "28e5ebab", mode: "inline", inputs: ["url","display"], body: async (url,display) => {
421
+ display(await(
422
+ url
423
+ ))
424
+ }});
425
+
426
+ define({id: "78a1e913", mode: "inline", inputs: ["d3","posts","display"], body: async (d3,posts,display) => {
427
+ display(await(
428
+ d3.min(posts, d => d.created_at).getFullYear()
429
+ ))
430
+ }});
431
+
432
+ define({id: "93beff2d", mode: "inline", inputs: ["d3","posts","display"], body: async (d3,posts,display) => {
433
+ display(await(
434
+ d3.max(posts, d => d.created_at).getFullYear()
435
+ ))
436
+ }});
437
+
438
+ </script>
439
+ <div id="observablehq-center">
440
+ <main id="observablehq-main" class="observablehq">
441
+ <h1 id="forum-dashboard" tabindex="-1"><a class="observablehq-header-anchor" href="#forum-dashboard">Forum Dashboard</a></h1>
442
+ <!-- Load and transform the data -->
443
+ <div class="observablehq observablehq--block"><!--:49c958aa:--></div>
444
+ <h2 id="trends-over-time" tabindex="-1"><a class="observablehq-header-anchor" href="#trends-over-time">Trends over time</a></h2>
445
+ <!-- Cards with big numbers -->
446
+ <div class="grid grid-cols-4">
447
+ <div class="card">
448
+ <h2>Years</h2>
449
+ <span class="big"><observablehq-loading></observablehq-loading><!--:8404f401:-->—<observablehq-loading></observablehq-loading><!--:18528b79:--></span>
450
+ </div>
451
+ <div class="card">
452
+ <h2>Topics</h2>
453
+ <span class="big"><observablehq-loading></observablehq-loading><!--:ebe544d8:--></span>
454
+ <p>Topics are the forum's questions, or threads.</p>
455
+ </div>
456
+ <div class="card">
457
+ <h2>Posts</h2>
458
+ <span class="big"><observablehq-loading></observablehq-loading><!--:a9ac2ae4:--></span>
459
+ <p>The posts are comments in a thread, ie the answers to a question. The topics are not included.</p>
460
+ </div>
461
+ <!-- <div class="card">
462
+ <h2>Posts per topic</h2>
463
+ <span class="big">${(posts.length / topics.size).toLocaleString("en-US", {
464
+ minimumFractionDigits: 2,
465
+ maximumFractionDigits: 2,
466
+ })}</span>
467
+ </div>
468
+ <div class="card">
469
+ <h2>Users per topic</h2>
470
+ <span class="big">${(d3.sum(topics, d => d[1].users.size) / topics.size).toLocaleString("en-US", {
471
+ minimumFractionDigits: 2,
472
+ maximumFractionDigits: 2,
473
+ })}</span>
474
+ </div> -->
475
+ <!-- <div class="card">
476
+ <h2>Categories</h2>
477
+ <span class="big">${categories.length.toLocaleString("en-US")}</span>
478
+ </div> -->
479
+ <div class="card">
480
+ <h2>Users</h2>
481
+ <span class="big"><observablehq-loading></observablehq-loading><!--:9f3c82c4:--></span>
482
+ </div>
483
+ </div>
484
+ <!-- Plot of monthly active users -->
485
+ <div class="observablehq observablehq--block"><!--:3939618f:--></div>
486
+ <!-- Plot of posts history -->
487
+ <div class="observablehq observablehq--block"><!--:694a2e8e:--></div>
488
+ <div class="grid grid-cols-2">
489
+ <div class="card">
490
+ <observablehq-loading></observablehq-loading><!--:df5d29c1:-->
491
+ </div>
492
+ <div class="card">
493
+ <observablehq-loading></observablehq-loading><!--:8db957c1:-->
494
+ </div>
495
+ </div>
496
+ <h2 id="topics" tabindex="-1"><a class="observablehq-header-anchor" href="#topics">Topics</a></h2>
497
+ <!-- Plot of topics per category -->
498
+ <div class="observablehq observablehq--block"><!--:35e85ade:--></div>
499
+ <!-- Posts per topic -->
500
+ <div class="observablehq observablehq--block"><!--:4933adab:--></div>
501
+ <div class="grid grid-cols-2">
502
+ <div class="card">
503
+ <observablehq-loading></observablehq-loading><!--:e3ec0bba:-->
504
+ </div>
505
+ <div class="card">
506
+ <observablehq-loading></observablehq-loading><!--:4e86c617:-->
507
+ </div>
508
+ </div>
509
+ <h2 id="users" tabindex="-1"><a class="observablehq-header-anchor" href="#users">Users</a></h2>
510
+ <!-- Top users -->
511
+ <div class="observablehq observablehq--block"><!--:1e4bc9aa:--></div>
512
+ <div class="grid grid-cols-2">
513
+ <div class="card">
514
+ <observablehq-loading></observablehq-loading><!--:0fa544ed:-->
515
+ </div>
516
+ <!--
517
+ <div class="card">
518
+ ${resize((width) => topAcceptedUsersChart(tenTopAcceptedUsers, {width}))}
519
+ </div>
520
+ -->
521
+ <div class="card">
522
+ <observablehq-loading></observablehq-loading><!--:04e33544:-->
523
+ </div>
524
+ </div>
525
+ <p>Data: <observablehq-loading></observablehq-loading><!--:28e5ebab:--> activity from <observablehq-loading></observablehq-loading><!--:78a1e913:--> to <observablehq-loading></observablehq-loading><!--:93beff2d:--> downloaded using the <a href="https://docs.discourse.org/" target="_blank" rel="noopener noreferrer">Discourse API</a>.</p>
526
+ </main>
527
+ <footer id="observablehq-footer">
528
+ <div>Built with <a href="https://observablehq.com/" target="_blank" rel="noopener noreferrer">Observable</a> on <a title="2024-09-25T13:14:01">Sep 25, 2024</a>.</div>
529
+ </footer>
530
+ </div>
style.css DELETED
@@ -1,28 +0,0 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
- }
5
-
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
- }
10
-
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
- }
17
-
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
- }
25
-
26
- .card p:last-child {
27
- margin-bottom: 0;
28
- }