Evidence and archive
workbench.glass.main.js · part 419
Full reference1 text occurrences from desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.glass.main.js, part 419. Every entry preserves the shipped literal and its saved verdict or selection reason.
File contents and all parts · All files
Shipped text
(()= {var cv=Object.defineProperty;var pt=(t,e)= {for(var n in e)cv(t,n,{get:e n
Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.glass.main.js, bytes 25670011–25953490, SHA-256 16ec1cd1411128d1.
Not classified: Complete source exceeds the request budget; needs a larger budget or local review.
Readable text: (()=>{var cv=Object.defineProperty;var pt=(t,e)=>{for(var n in e)cv(t,n,{get:e[n],enumerable:!0})};var Mc={};pt(Mc,{Adder:()=>mt,InternMap:()=>Ee,InternSet:()=>ae,ascending:()=>et,bin:()=>Xa,bisect:()=>ie,bisectCenter:()=>a0,bisectLeft:()=>…
(()=>{var cv=Object.defineProperty;var pt=(t,e)=>{for(var n in e)cv(t,n,{get:e[n],enumerable:!0})};var Mc={};pt(Mc,{Adder:()=>mt,InternMap:()=>Ee,InternSet:()=>ae,ascending:()=>et,bin:()=>Xa,bisect:()=>ie,bisectCenter:()=>a0,bisectLeft:()=>i0,bisectRight:()=>Xs,bisector:()=>Cn,blur:()=>f0,blur2:()=>$a,blurImage:()=>u0,count:()=>sn,cross:()=>Vs,cumsum:()=>Gs,descending:()=>si,deviation:()=>li,difference:()=>bc,disjoint:()=>yc,every:()=>hc,extent:()=>cn,fcumsum:()=>l0,filter:()=>mc,flatGroup:()=>g0,flatRollup:()=>x0,fsum:()=>c0,greatest:()=>xi,greatestIndex:()=>fc,group:()=>hi,groupSort:()=>Ks,groups:()=>Qs,histogram:()=>Xa,index:()=>b0,indexes:()=>y0,intersection:()=>_c,least:()=>ac,leastIndex:()=>bi,map:()=>dc,max:()=>pn,maxIndex:()=>sr,mean:()=>ec,median:()=>nc,medianIndex:()=>M0,merge:()=>hr,min:()=>In,minIndex:()=>cr,mode:()=>rc,nice:()=>fr,pairs:()=>oc,permute:()=>pi,quantile:()=>Ue,quantileIndex:()=>Va,quantileSorted:()=>Wa,quickselect:()=>lr,range:()=>de,rank:()=>ic,reduce:()=>gc,reverse:()=>xc,rollup:()=>Ba,rollups:()=>js,scan:()=>uc,shuffle:()=>S0,shuffler:()=>sc,some:()=>pc,sort:()=>uo,subset:()=>vc,sum:()=>cc,superset:()=>_i,thresholdFreedmanDiaconis:()=>Js,thresholdScott:()=>tc,thresholdSturges:()=>ur,tickIncrement:()=>ke,tickStep:()=>ar,ticks:()=>fe,transpose:()=>yi,union:()=>wc,variance:()=>ci,zip:()=>lc});function et(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function si(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Cn(t){let e,n,r;t.length!==2?(e=et,n=(f,s)=>et(t(f),s),r=(f,s)=>t(f)-s):(e=t===et||t===si?t:lv,n=t,r=t);function o(f,s,u=0,c=f.length){if(u<c){if(e(s,s)!==0)return c;do{let h=u+c>>>1;n(f[h],s)<0?u=h+1:c=h}while(u<c)}return u}function i(f,s,u=0,c=f.length){if(u<c){if(e(s,s)!==0)return c;do{let h=u+c>>>1;n(f[h],s)<=0?u=h+1:c=h}while(u<c)}return u}function a(f,s,u=0,c=f.length){let h=o(f,s,u,c-1);return h>u&&r(f[h-1],s)>-r(f[h],s)?h-1:h}return{left:o,center:a,right:i}}function lv(){return 0}function ir(t){return t===null?NaN:+t}function*r0(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)(r=e(r,++n,t))!=null&&(r=+r)>=r&&(yield r)}}var o0=Cn(et),Xs=o0.right,i0=o0.left,a0=Cn(ir).center,ie=Xs;function f0(t,e){if(!((e=+e)>=0))throw new RangeError("invalid r");let n=t.length;if(!((n=Math.floor(n))>=0))throw new RangeError("invalid length");if(!n||!e)return t;let r=Ws(e),o=t.slice();return r(t,o,0,n,1),r(o,t,0,n,1),r(t,o,0,n,1),t}var $a=s0(Ws),u0=s0(hv);function s0(t){return function(e,n,r=n){if(!((n=+n)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");let{data:o,width:i,height:a}=e;if(!((i=Math.floor(i))>=0))throw new RangeError("invalid width");if(!((a=Math.floor(a!==void 0?a:o.length/i))>=0))throw new RangeError("invalid height");if(!i||!a||!n&&!r)return e;let f=n&&t(n),s=r&&t(r),u=o.slice();return f&&s?(io(f,u,o,i,a),io(f,o,u,i,a),io(f,u,o,i,a),ao(s,o,u,i,a),ao(s,u,o,i,a),ao(s,o,u,i,a)):f?(io(f,o,u,i,a),io(f,u,o,i,a),io(f,o,u,i,a)):s&&(ao(s,o,u,i,a),ao(s,u,o,i,a),ao(s,o,u,i,a)),e}}function io(t,e,n,r,o){for(let i=0,a=r*o;i<a;)t(e,n,i,i+=r,1)}function ao(t,e,n,r,o){for(let i=0,a=r*o;i<r;++i)t(e,n,i,i+a,r)}function hv(t){let e=Ws(t);return(n,r,o,i,a)=>{o<<=2,i<<=2,a<<=2,e(n,r,o+0,i+0,a),e(n,r,o+1,i+1,a),e(n,r,o+2,i+2,a),e(n,r,o+3,i+3,a)}}function Ws(t){let e=Math.floor(t);if(e===t)return pv(t);let n=t-e,r=2*t+1;return(o,i,a,f,s)=>{if(!((f-=s)>=a))return;let u=e*i[a],c=s*e,h=c+s;for(let l=a,p=a+c;l<p;l+=s)u+=i[Math.min(f,l)];for(let l=a,p=f;l<=p;l+=s)u+=i[Math.min(f,l+c)],o[l]=(u+n*(i[Math.max(a,l-h)]+i[Math.min(f,l+h)]))/r,u-=i[Math.max(a,l-c)]}}function pv(t){let e=2*t+1;return(n,r,o,i,a)=>{if(!((i-=a)>=o))return;let f=t*r[o],s=a*t;for(let u=o,c=o+s;u<c;u+=a)f+=r[Math.min(i,u)];for(let u=o,c=i;u<=c;u+=a)f+=r[Math.min(i,u+s)],n[u]=f/e,f-=r[Math.max(o,u-s)]}}function sn(t,e){let n=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let o of t)(o=e(o,++r,t))!=null&&(o=+o)>=o&&++n}return n}function mv(t){return t.length|0}function dv(t){return!(t>0)}function gv(t){return typeof t!="object"||"length"in t?t:Array.from(t)}function xv(t){return e=>t(...e)}function Vs(...t){let e=typeof t[t.length-1]=="function"&&xv(t.pop());t=t.map(gv);let n=t.map(mv),r=t.length-1,o=new Array(r+1).fill(0),i=[];if(r<0||n.some(dv))return i;for(;;){i.push(o.map((f,s)=>t[s][f]));let a=r;for(;++o[a]===n[a];){if(a===0)return e?i.map(e):i;o[a--]=0}}}function Gs(t,e){var n=0,r=0;return Float64Array.from(t,e===void 0?o=>n+=+o||0:o=>n+=+e(o,r++,t)||0)}function ci(t,e){let n=0,r,o=0,i=0;if(e===void 0)for(let a of t)a!=null&&(a=+a)>=a&&(r=a-o,o+=r/++n,i+=r*(a-o));else{let a=-1;for(let f of t)(f=e(f,++a,t))!=null&&(f=+f)>=f&&(r=f-o,o+=r/++n,i+=r*(f-o))}if(n>1)return i/(n-1)}function li(t,e){let n=ci(t,e);return n&&Math.sqrt(n)}function cn(t,e){let n,r;if(e===void 0)for(let o of t)o!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)));else{let o=-1;for(let i of t)(i=e(i,++o,t))!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)))}return[n,r]}var mt=class{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){let n=this._partials,r=0;for(let o=0;o<this._n&&o<32;o++){let i=n[o],a=e+i,f=Math.abs(e)<Math.abs(i)?e-(a-i):i-(a-e);f&&(n[r++]=f),e=a}return n[r]=e,this._n=r+1,this}valueOf(){let e=this._partials,n=this._n,r,o,i,a=0;if(n>0){for(a=e[--n];n>0&&(r=a,o=e[--n],a=r+o,i=o-(a-r),!i););n>0&&(i<0&&e[n-1]<0||i>0&&e[n-1]>0)&&(o=i*2,r=a+o,o==r-a&&(a=r))}return a}};function c0(t,e){let n=new mt;if(e===void 0)for(let r of t)(r=+r)&&n.add(r);else{let r=-1;for(let o of t)(o=+e(o,++r,t))&&n.add(o)}return+n}function l0(t,e){let n=new mt,r=-1;return Float64Array.from(t,e===void 0?o=>n.add(+o||0):o=>n.add(+e(o,++r,t)||0))}var Ee=class extends Map{constructor(e,n=m0){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(let[r,o]of e)this.set(r,o)}get(e){return super.get(Zs(this,e))}has(e){return super.has(Zs(this,e))}set(e,n){return super.set(h0(this,e),n)}delete(e){return super.delete(p0(this,e))}},ae=class extends Set{constructor(e,n=m0){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(let r of e)this.add(r)}has(e){return super.has(Zs(this,e))}add(e){return super.add(h0(this,e))}delete(e){return super.delete(p0(this,e))}};function Zs({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):n}function h0({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function p0({_intern:t,_key:e},n){let r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function m0(t){return t!==null&&typeof t=="object"?t.valueOf():t}function ln(t){return t}function hi(t,...e){return fo(t,ln,ln,e)}function Qs(t,...e){return fo(t,Array.from,ln,e)}function d0(t,e){for(let n=1,r=e.length;n<r;++n)t=t.flatMap(o=>o.pop().map(([i,a])=>[...o,i,a]));return t}function g0(t,...e){return d0(Qs(t,...e),e)}function x0(t,e,...n){return d0(js(t,e,...n),n)}function Ba(t,e,...n){return fo(t,ln,e,n)}function js(t,e,...n){return fo(t,Array.from,e,n)}function b0(t,...e){return fo(t,ln,_0,e)}function y0(t,...e){return fo(t,Array.from,_0,e)}function _0(t){if(t.length!==1)throw new Error("duplicate key");return t[0]}function fo(t,e,n,r){return(function o(i,a){if(a>=r.length)return n(i);let f=new Ee,s=r[a++],u=-1;for(let c of i){let h=s(c,++u,i),l=f.get(h);l?l.push(c):f.set(h,[c])}for(let[c,h]of f)f.set(c,o(h,a));return e(f)})(t,0)}function pi(t,e){return Array.from(e,n=>t[n])}function uo(t,...e){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&n.length!==2||e.length>1){let r=Uint32Array.from(t,(o,i)=>i);return e.length>1?(e=e.map(o=>t.map(o)),r.sort((o,i)=>{for(let a of e){let f=hn(a[o],a[i]);if(f)return f}})):(n=t.map(n),r.sort((o,i)=>hn(n[o],n[i]))),pi(t,r)}return t.sort(mi(n))}function mi(t=et){if(t===et)return hn;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,n)=>{let r=t(e,n);return r||r===0?r:(t(n,n)===0)-(t(e,e)===0)}}function hn(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(t<e?-1:t>e?1:0)}function Ks(t,e,n){return(e.length!==2?uo(Ba(t,e,n),(([r,o],[i,a])=>et(o,a)||et(r,i))):uo(hi(t,n),(([r,o],[i,a])=>e(o,a)||et(r,i)))).map(([r])=>r)}var v0=Array.prototype,w0=v0.slice,N7=v0.map;function di(t){return()=>t}var bv=Math.sqrt(50),yv=Math.sqrt(10),_v=Math.sqrt(2);function Ha(t,e,n){let r=(e-t)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=bv?10:i>=yv?5:i>=_v?2:1,f,s,u;return o<0?(u=Math.pow(10,-o)/a,f=Math.round(t*u),s=Math.round(e*u),f/u<t&&++f,s/u>e&&--s,u=-u):(u=Math.pow(10,o)*a,f=Math.round(t/u),s=Math.round(e/u),f*u<t&&++f,s*u>e&&--s),s<f&&.5<=n&&n<2?Ha(t,e,n*2):[f,s,u]}function fe(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];let r=e<t,[o,i,a]=r?Ha(e,t,n):Ha(t,e,n);if(!(i>=o))return[];let f=i-o+1,s=new Array(f);if(r)if(a<0)for(let u=0;u<f;++u)s[u]=(i-u)/-a;else for(let u=0;u<f;++u)s[u]=(i-u)*a;else if(a<0)for(let u=0;u<f;++u)s[u]=(o+u)/-a;else for(let u=0;u<f;++u)s[u]=(o+u)*a;return s}function ke(t,e,n){return e=+e,t=+t,n=+n,Ha(t,e,n)[2]}function ar(t,e,n){e=+e,t=+t,n=+n;let r=e<t,o=r?ke(e,t,n):ke(t,e,n);return(r?-1:1)*(o<0?1/-o:o)}function fr(t,e,n){let r;for(;;){let o=ke(t,e,n);if(o===r||o===0||!isFinite(o))return[t,e];o>0?(t=Math.floor(t/o)*o,e=Math.ceil(e/o)*o):o<0&&(t=Math.ceil(t*o)/o,e=Math.floor(e*o)/o),r=o}}function ur(t){return Math.max(1,Math.ceil(Math.log(sn(t))/Math.LN2)+1)}function Xa(){var t=ln,e=cn,n=ur;function r(o){Array.isArray(o)||(o=Array.from(o));var i,a=o.length,f,s,u=new Array(a);for(i=0;i<a;++i)u[i]=t(o[i],i,o);var c=e(u),h=c[0],l=c[1],p=n(u,h,l);if(!Array.isArray(p)){let y=l,b=+p;if(e===cn&&([h,l]=fr(h,l,b)),p=fe(h,l,b),p[0]<=h&&(s=ke(h,l,b)),p[p.length-1]>=l)if(y>=l&&e===cn){let v=ke(h,l,b);isFinite(v)&&(v>0?l=(Math.floor(l/v)+1)*v:v<0&&(l=(Math.ceil(l*-v)+1)/-v))}else p.pop()}for(var g=p.length,d=0,m=g;p[d]<=h;)++d;for(;p[m-1]>l;)--m;(d||m<g)&&(p=p.slice(d,m),g=m-d);var x=new Array(g+1),_;for(i=0;i<=g;++i)_=x[i]=[],_.x0=i>0?p[i-1]:h,_.x1=i<g?p[i]:l;if(isFinite(s)){if(s>0)for(i=0;i<a;++i)(f=u[i])!=null&&h<=f&&f<=l&&x[Math.min(g,Math.floor((f-h)/s))].push(o[i]);else if(s<0){for(i=0;i<a;++i)if((f=u[i])!=null&&h<=f&&f<=l){let y=Math.floor((h-f)*s);x[Math.min(g,y+(p[y]<=f))].push(o[i])}}}else for(i=0;i<a;++i)(f=u[i])!=null&&h<=f&&f<=l&&x[ie(p,f,0,g)].push(o[i]);return x}return r.value=function(o){return arguments.length?(t=typeof o=="function"?o:di(o),r):t},r.domain=function(o){return arguments.length?(e=typeof o=="function"?o:di([o[0],o[1]]),r):e},r.thresholds=function(o){return arguments.length?(n=typeof o=="function"?o:di(Array.isArray(o)?w0.call(o):o),r):n},r}function pn(t,e){let n;if(e===void 0)for(let r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of t)(o=e(o,++r,t))!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}return n}function sr(t,e){let n,r=-1,o=-1;if(e===void 0)for(let i of t)++o,i!=null&&(n<i||n===void 0&&i>=i)&&(n=i,r=o);else for(let i of t)(i=e(i,++o,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i,r=o);return r}function In(t,e){let n;if(e===void 0)for(let r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of t)(o=e(o,++r,t))!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}return n}function cr(t,e){let n,r=-1,o=-1;if(e===void 0)for(let i of t)++o,i!=null&&(n>i||n===void 0&&i>=i)&&(n=i,r=o);else for(let i of t)(i=e(i,++o,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i,r=o);return r}function lr(t,e,n=0,r=1/0,o){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(o=o===void 0?hn:mi(o);r>n;){if(r-n>600){let s=r-n+1,u=e-n+1,c=Math.log(s),h=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*h*(s-h)/s)*(u-s/2<0?-1:1),p=Math.max(n,Math.floor(e-u*h/s+l)),g=Math.min(r,Math.floor(e+(s-u)*h/s+l));lr(t,e,p,g,o)}let i=t[e],a=n,f=r;for(gi(t,n,e),o(t[r],i)>0&&gi(t,n,r);a<f;){for(gi(t,a,f),++a,--f;o(t[a],i)<0;)++a;for(;o(t[f],i)>0;)--f}o(t[n],i)===0?gi(t,n,f):(++f,gi(t,f,r)),f<=e&&(n=f+1),e<=f&&(r=f-1)}return t}function gi(t,e,n){let r=t[e];t[e]=t[n],t[n]=r}function xi(t,e=et){let n,r=!1;if(e.length===1){let o;for(let i of t){let a=e(i);(r?et(a,o)>0:et(a,a)===0)&&(n=i,o=a,r=!0)}}else for(let o of t)(r?e(o,n)>0:e(o,o)===0)&&(n=o,r=!0);return n}function Ue(t,e,n){if(t=Float64Array.from(r0(t,n)),!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return In(t);if(e>=1)return pn(t);var r,o=(r-1)*e,i=Math.floor(o),a=pn(lr(t,i).subarray(0,i+1)),f=In(t.subarray(i+1));return a+(f-a)*(o-i)}}function Wa(t,e,n=ir){if(!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,o=(r-1)*e,i=Math.floor(o),a=+n(t[i],i,t),f=+n(t[i+1],i+1,t);return a+(f-a)*(o-i)}}function Va(t,e,n=ir){if(!isNaN(e=+e)){if(r=Float64Array.from(t,(f,s)=>ir(n(t[s],s,t))),e<=0)return cr(r);if(e>=1)return sr(r);var r,o=Uint32Array.from(t,(f,s)=>s),i=r.length-1,a=Math.floor(i*e);return lr(o,a,0,i,(f,s)=>hn(r[f],r[s])),a=xi(o.subarray(0,a+1),f=>r[f]),a>=0?a:-1}}function Js(t,e,n){let r=sn(t),o=Ue(t,.75)-Ue(t,.25);return r&&o?Math.ceil((n-e)/(2*o*Math.pow(r,-1/3))):1}function tc(t,e,n){let r=sn(t),o=li(t);return r&&o?Math.ceil((n-e)*Math.cbrt(r)/(3.49*o)):1}function ec(t,e){let n=0,r=0;if(e===void 0)for(let o of t)o!=null&&(o=+o)>=o&&(++n,r+=o);else{let o=-1;for(let i of t)(i=e(i,++o,t))!=null&&(i=+i)>=i&&(++n,r+=i)}if(n)return r/n}function nc(t,e){return Ue(t,.5,e)}function M0(t,e){return Va(t,.5,e)}function*vv(t){for(let e of t)yield*e}function hr(t){return Array.from(vv(t))}function rc(t,e){let n=new Ee;if(e===void 0)for(let i of t)i!=null&&i>=i&&n.set(i,(n.get(i)||0)+1);else{let i=-1;for(let a of t)(a=e(a,++i,t))!=null&&a>=a&&n.set(a,(n.get(a)||0)+1)}let r,o=0;for(let[i,a]of n)a>o&&(o=a,r=i);return r}function oc(t,e=wv){let n=[],r,o=!1;for(let i of t)o&&n.push(e(r,i)),r=i,o=!0;return n}function wv(t,e){return[t,e]}function de(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((e-t)/n))|0,i=new Array(o);++r<o;)i[r]=t+r*n;return i}function ic(t,e=et){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");let n=Array.from(t),r=new Float64Array(n.length);e.length!==2&&(n=n.map(e),e=et);let o=(f,s)=>e(n[f],n[s]),i,a;return t=Uint32Array.from(n,(f,s)=>s),t.sort(e===et?(f,s)=>hn(n[f],n[s]):mi(o)),t.forEach((f,s)=>{let u=o(f,i===void 0?f:i);u>=0?((i===void 0||u>0)&&(i=f,a=s),r[f]=a):r[f]=NaN}),r}function ac(t,e=et){let n,r=!1;if(e.length===1){let o;for(let i of t){let a=e(i);(r?et(a,o)<0:et(a,a)===0)&&(n=i,o=a,r=!0)}}else for(let o of t)(r?e(o,n)<0:e(o,o)===0)&&(n=o,r=!0);return n}function bi(t,e=et){if(e.length===1)return cr(t,e);let n,r=-1,o=-1;for(let i of t)++o,(r<0?e(i,i)===0:e(i,n)<0)&&(n=i,r=o);return r}function fc(t,e=et){if(e.length===1)return sr(t,e);let n,r=-1,o=-1;for(let i of t)++o,(r<0?e(i,i)===0:e(i,n)>0)&&(n=i,r=o);return r}function uc(t,e){let n=bi(t,e);return n<0?void 0:n}var S0=sc(Math.random);function sc(t){return function(n,r=0,o=n.length){let i=o-(r=+r);for(;i;){let a=t()*i--|0,f=n[i+r];n[i+r]=n[a+r],n[a+r]=f}return n}}function cc(t,e){let n=0;if(e===void 0)for(let r of t)(r=+r)&&(n+=r);else{let r=-1;for(let o of t)(o=+e(o,++r,t))&&(n+=o)}return n}function yi(t){if(!(i=t.length))return[];for(var e=-1,n=In(t,Mv),r=new Array(n);++e<n;)for(var o=-1,i,a=r[e]=new Array(i);++o<i;)a[o]=t[o][e];return r}function Mv(t){return t.length}function lc(){return yi(arguments)}function hc(t,e){if(typeof e!="function")throw new TypeError("test is not a function");let n=-1;for(let r of t)if(!e(r,++n,t))return!1;return!0}function pc(t,e){if(typeof e!="function")throw new TypeError("test is not a function");let n=-1;for(let r of t)if(e(r,++n,t))return!0;return!1}function mc(t,e){if(typeof e!="function")throw new TypeError("test is not a function");let n=[],r=-1;for(let o of t)e(o,++r,t)&&n.push(o);return n}function dc(t,e){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof e!="function")throw new TypeError("mapper is not a function");return Array.from(t,(n,r)=>e(n,r,t))}function gc(t,e,n){if(typeof e!="function")throw new TypeError("reducer is not a function");let r=t[Symbol.iterator](),o,i,a=-1;if(arguments.length<3){if({done:o,value:n}=r.next(),o)return;++a}for(;{done:o,value:i}=r.next(),!o;)n=e(n,i,++a,t);return n}function xc(t){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(t).reverse()}function bc(t,...e){t=new ae(t);for(let n of e)for(let r of n)t.delete(r);return t}function yc(t,e){let n=e[Symbol.iterator](),r=new ae;for(let o of t){if(r.has(o))return!1;let i,a;for(;({value:i,done:a}=n.next())&&!a;){if(Object.is(o,i))return!1;r.add(i)}}return!0}function _c(t,...e){t=new ae(t),e=e.map(Sv);t:for(let n of t)for(let r of e)if(!r.has(n)){t.delete(n);continue t}return t}function Sv(t){return t instanceof ae?t:new ae(t)}function _i(t,e){let n=t[Symbol.iterator](),r=new Set;for(let o of e){let i=T0(o);if(r.has(i))continue;let a,f;for(;{value:a,done:f}=n.next();){if(f)return!1;let s=T0(a);if(r.add(s),Object.is(i,s))break}}return!0}function T0(t){return t!==null&&typeof t=="object"?t.valueOf():t}function vc(t,e){return _i(e,t)}function wc(...t){let e=new ae;for(let n of t)for(let r of n)e.add(r);return e}var Tc={};pt(Tc,{axisBottom:()=>R0,axisLeft:()=>C0,axisRight:()=>N0,axisTop:()=>k0});function A0(t){return t}var Ga=1,Za=2,Sc=3,vi=4,E0=1e-6;function Tv(t){return"translate("+t+",0)"}function Av(t){return"translate(0,"+t+")"}function Ev(t){return e=>+t(e)}function kv(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Nv(){return!this.__axis}function Qa(t,e){var n=[],r=null,o=null,i=6,a=6,f=3,s=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===Ga||t===vi?-1:1,c=t===vi||t===Za?"x":"y",h=t===Ga||t===Sc?Tv:Av;function l(p){var g=r??(e.ticks?e.ticks.apply(e,n):e.domain()),d=o??(e.tickFormat?e.tickFormat.apply(e,n):A0),m=Math.max(i,0)+f,x=e.range(),_=+x[0]+s,y=+x[x.length-1]+s,b=(e.bandwidth?kv:Ev)(e.copy(),s),v=p.selection?p.selection():p,w=v.selectAll(".domain").data([null]),A=v.selectAll(".tick").data(g,e).order(),R=A.exit(),N=A.enter().append("g").attr("class","tick"),E=A.select("line"),k=A.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),A=A.merge(N),E=E.merge(N.append("line").attr("stroke","currentColor").attr(c+"2",u*i)),k=k.merge(N.append("text").attr("fill","currentColor").attr(c,u*m).attr("dy",t===Ga?"0em":t===Sc?"0.71em":"0.32em")),p!==v&&(w=w.transition(p),A=A.transition(p),E=E.transition(p),k=k.transition(p),R=R.transition(p).attr("opacity",E0).attr("transform",function(I){return isFinite(I=b(I))?h(I+s):this.getAttribute("transform")}),N.attr("opacity",E0).attr("transform",function(I){var C=this.parentNode.__axis;return h((C&&isFinite(C=C(I))?C:b(I))+s)})),R.remove(),w.attr("d",t===vi||t===Za?a?"M"+u*a+","+_+"H"+s+"V"+y+"H"+u*a:"M"+s+","+_+"V"+y:a?"M"+_+","+u*a+"V"+s+"H"+y+"V"+u*a:"M"+_+","+s+"H"+y),A.attr("opacity",1).attr("transform",function(I){return h(b(I)+s)}),E.attr(c+"2",u*i),k.attr(c,u*m).text(d),v.filter(Nv).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Za?"start":t===vi?"end":"middle"),v.each(function(){this.__axis=b})}return l.scale=function(p){return arguments.length?(e=p,l):e},l.ticks=function(){return n=Array.from(arguments),l},l.tickArguments=function(p){return arguments.length?(n=p==null?[]:Array.from(p),l):n.slice()},l.tickValues=function(p){return arguments.length?(r=p==null?null:Array.from(p),l):r&&r.slice()},l.tickFormat=function(p){return arguments.length?(o=p,l):o},l.tickSize=function(p){return arguments.length?(i=a=+p,l):i},l.tickSizeInner=function(p){return arguments.length?(i=+p,l):i},l.tickSizeOuter=function(p){return arguments.length?(a=+p,l):a},l.tickPadding=function(p){return arguments.length?(f=+p,l):f},l.offset=function(p){return arguments.length?(s=+p,l):s},l}function k0(t){return Qa(Ga,t)}function N0(t){return Qa(Za,t)}function R0(t){return Qa(Sc,t)}function C0(t){return Qa(vi,t)}var ml={};pt(ml,{brush:()=>w1,brushSelection:()=>y1,brushX:()=>_1,brushY:()=>v1});var Ac={};pt(Ac,{dispatch:()=>ge});var Rv={value:()=>{}};function P0(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new ja(n)}function ja(t){this._=t}function Cv(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");if(o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}ja.prototype=P0.prototype={constructor:ja,on:function(t,e){var n=this._,r=Cv(t+"",n),o,i=-1,a=r.length;if(arguments.length<2){for(;++i<a;)if((o=(t=r[i]).type)&&(o=Iv(n[o],t.name)))return o;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++i<a;)if(o=(t=r[i]).type)n[o]=I0(n[o],t.name,e);else if(e==null)for(o in n)n[o]=I0(n[o],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new ja(t)},call:function(t,e){if((o=arguments.length-2)>0)for(var n=new Array(o),r=0,o,i;r<o;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=this._[t],r=0,o=i.length;r<o;++r)i[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],o=0,i=r.length;o<i;++o)r[o].value.apply(e,n)}};function Iv(t,e){for(var n=0,r=t.length,o;n<r;++n)if((o=t[n]).name===e)return o.value}function I0(t,e,n){for(var r=0,o=t.length;r<o;++r)if(t[r].name===e){t[r]=Rv,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var ge=P0;var Rc={};pt(Rc,{drag:()=>Tm,dragDisable:()=>On,dragEnable:()=>Fn});var Nc={};pt(Nc,{create:()=>vm,creator:()=>Pn,local:()=>ef,matcher:()=>co,namespace:()=>$e,namespaces:()=>wi,pointer:()=>Ot,pointers:()=>wm,select:()=>At,selectAll:()=>Mm,selection:()=>Be,selector:()=>Dn,selectorAll:()=>so,style:()=>mn,window:()=>lo});var Ka="http://www.w3.org/1999/xhtml",wi={svg:"http://www.w3.org/2000/svg",xhtml:Ka,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+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),wi.hasOwnProperty(e)?{space:wi[e],local:t}:t}function Pv(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Ka&&e.documentElement.namespaceURI===Ka?e.createElement(t):e.createElementNS(n,t)}}function Dv(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Pn(t){var e=$e(t);return(e.local?Dv:Pv)(e)}function qv(){}function Dn(t){return t==null?qv:function(){return this.querySelector(t)}}function D0(t){typeof t!="function"&&(t=Dn(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var i=e[o],a=i.length,f=r[o]=new Array(a),s,u,c=0;c<a;++c)(s=i[c])&&(u=t.call(s,s.__data__,c,i))&&("__data__"in s&&(u.__data__=s.__data__),f[c]=u);return new yt(r,this._parents)}function Mi(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Ov(){return[]}function so(t){return t==null?Ov:function(){return this.querySelectorAll(t)}}function Fv(t){return function(){return Mi(t.apply(this,arguments))}}function q0(t){typeof t=="function"?t=Fv(t):t=so(t);for(var e=this._groups,n=e.length,r=[],o=[],i=0;i<n;++i)for(var a=e[i],f=a.length,s,u=0;u<f;++u)(s=a[u])&&(r.push(t.call(s,s.__data__,u,a)),o.push(s));return new yt(r,o)}function co(t){return function(){return this.matches(t)}}function Ja(t){return function(e){return e.matches(t)}}var zv=Array.prototype.find;function Lv(t){return function(){return zv.call(this.children,t)}}function Yv(){return this.firstElementChild}function O0(t){return this.select(t==null?Yv:Lv(typeof t=="function"?t:Ja(t)))}var Uv=Array.prototype.filter;function $v(){return Array.from(this.children)}function Bv(t){return function(){return Uv.call(this.children,t)}}function F0(t){return this.selectAll(t==null?$v:Bv(typeof t=="function"?t:Ja(t)))}function z0(t){typeof t!="function"&&(t=co(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var i=e[o],a=i.length,f=r[o]=[],s,u=0;u<a;++u)(s=i[u])&&t.call(s,s.__data__,u,i)&&f.push(s);return new yt(r,this._parents)}function tf(t){return new Array(t.length)}function L0(){return new yt(this._enter||this._groups.map(tf),this._parents)}function Si(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Si.prototype={constructor:Si,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Y0(t){return function(){return t}}function Hv(t,e,n,r,o,i){for(var a=0,f,s=e.length,u=i.length;a<u;++a)(f=e[a])?(f.__data__=i[a],r[a]=f):n[a]=new Si(t,i[a]);for(;a<s;++a)(f=e[a])&&(o[a]=f)}function Xv(t,e,n,r,o,i,a){var f,s,u=new Map,c=e.length,h=i.length,l=new Array(c),p;for(f=0;f<c;++f)(s=e[f])&&(l[f]=p=a.call(s,s.__data__,f,e)+"",u.has(p)?o[f]=s:u.set(p,s));for(f=0;f<h;++f)p=a.call(t,i[f],f,i)+"",(s=u.get(p))?(r[f]=s,s.__data__=i[f],u.delete(p)):n[f]=new Si(t,i[f]);for(f=0;f<c;++f)(s=e[f])&&u.get(l[f])===s&&(o[f]=s)}function Wv(t){return t.__data__}function U0(t,e){if(!arguments.length)return Array.from(this,Wv);var n=e?Xv:Hv,r=this._parents,o=this._groups;typeof t!="function"&&(t=Y0(t));for(var i=o.length,a=new Array(i),f=new Array(i),s=new Array(i),u=0;u<i;++u){var c=r[u],h=o[u],l=h.length,p=Vv(t.call(c,c&&c.__data__,u,r)),g=p.length,d=f[u]=new Array(g),m=a[u]=new Array(g),x=s[u]=new Array(l);n(c,h,d,m,x,p,e);for(var _=0,y=0,b,v;_<g;++_)if(b=d[_]){for(_>=y&&(y=_+1);!(v=m[y])&&++y<g;);b._next=v||null}}return a=new yt(a,r),a._enter=f,a._exit=s,a}function Vv(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function $0(){return new yt(this._exit||this._groups.map(tf),this._parents)}function B0(t,e,n){var r=this.enter(),o=this,i=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(o=e(o),o&&(o=o.selection())),n==null?i.remove():n(i),r&&o?r.merge(o).order():o}function H0(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,o=n.length,i=r.length,a=Math.min(o,i),f=new Array(o),s=0;s<a;++s)for(var u=n[s],c=r[s],h=u.length,l=f[s]=new Array(h),p,g=0;g<h;++g)(p=u[g]||c[g])&&(l[g]=p);for(;s<o;++s)f[s]=n[s];return new yt(f,this._parents)}function X0(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],o=r.length-1,i=r[o],a;--o>=0;)(a=r[o])&&(i&&a.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(a,i),i=a);return this}function W0(t){t||(t=Gv);function e(h,l){return h&&l?t(h.__data__,l.__data__):!h-!l}for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var a=n[i],f=a.length,s=o[i]=new Array(f),u,c=0;c<f;++c)(u=a[c])&&(s[c]=u);s.sort(e)}return new yt(o,this._parents).order()}function Gv(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function V0(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function G0(){return Array.from(this)}function Z0(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],o=0,i=r.length;o<i;++o){var a=r[o];if(a)return a}return null}function Q0(){let t=0;for(let e of this)++t;return t}function j0(){return!this.node()}function K0(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var o=e[n],i=0,a=o.length,f;i<a;++i)(f=o[i])&&t.call(f,f.__data__,i,o);return this}function Zv(t){return function(){this.removeAttribute(t)}}function Qv(t){return function(){this.removeAttributeNS(t.space,t.local)}}function jv(t,e){return function(){this.setAttribute(t,e)}}function Kv(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Jv(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function t3(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function J0(t,e){var n=$e(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Qv:Zv:typeof e=="function"?n.local?t3:Jv:n.local?Kv:jv)(n,e))}function lo(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function e3(t){return function(){this.style.removeProperty(t)}}function n3(t,e,n){return function(){this.style.setProperty(t,e,n)}}function r3(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function tm(t,e,n){return arguments.length>1?this.each((e==null?e3:typeof e=="function"?r3:n3)(t,e,n??"")):mn(this.node(),t)}function mn(t,e){return t.style.getPropertyValue(e)||lo(t).getComputedStyle(t,null).getPropertyValue(e)}function o3(t){return function(){delete this[t]}}function i3(t,e){return function(){this[t]=e}}function a3(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function em(t,e){return arguments.length>1?this.each((e==null?o3:typeof e=="function"?a3:i3)(t,e)):this.node()[t]}function nm(t){return t.trim().split(/^|\s+/)}function Ec(t){return t.classList||new rm(t)}function rm(t){this._node=t,this._names=nm(t.getAttribute("class")||"")}rm.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function om(t,e){for(var n=Ec(t),r=-1,o=e.length;++r<o;)n.add(e[r])}function im(t,e){for(var n=Ec(t),r=-1,o=e.length;++r<o;)n.remove(e[r])}function f3(t){return function(){om(this,t)}}function u3(t){return function(){im(this,t)}}function s3(t,e){return function(){(e.apply(this,arguments)?om:im)(this,t)}}function am(t,e){var n=nm(t+"");if(arguments.length<2){for(var r=Ec(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each((typeof e=="function"?s3:e?f3:u3)(n,e))}function c3(){this.textContent=""}function l3(t){return function(){this.textContent=t}}function h3(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function fm(t){return arguments.length?this.each(t==null?c3:(typeof t=="function"?h3:l3)(t)):this.node().textContent}function p3(){this.innerHTML=""}function m3(t){return function(){this.innerHTML=t}}function d3(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function um(t){return arguments.length?this.each(t==null?p3:(typeof t=="function"?d3:m3)(t)):this.node().innerHTML}function g3(){this.nextSibling&&this.parentNode.appendChild(this)}function sm(){return this.each(g3)}function x3(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function cm(){return this.each(x3)}function lm(t){var e=typeof t=="function"?t:Pn(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function b3(){return null}function hm(t,e){var n=typeof t=="function"?t:Pn(t),r=e==null?b3:typeof e=="function"?e:Dn(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function y3(){var t=this.parentNode;t&&t.removeChild(this)}function pm(){return this.each(y3)}function _3(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function v3(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function mm(t){return this.select(t?v3:_3)}function dm(t){return arguments.length?this.property("__data__",t):this.node().__data__}function w3(t){return function(e){t.call(this,e,this.__data__)}}function M3(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function S3(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,o=e.length,i;n<o;++n)i=e[n],(!t.type||i.type===t.type)&&i.name===t.name?this.removeEventListener(i.type,i.listener,i.options):e[++r]=i;++r?e.length=r:delete this.__on}}}function T3(t,e,n){return function(){var r=this.__on,o,i=w3(e);if(r){for(var a=0,f=r.length;a<f;++a)if((o=r[a]).type===t.type&&o.name===t.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=i,o.options=n),o.value=e;return}}this.addEventListener(t.type,i,n),o={type:t.type,name:t.name,value:e,listener:i,options:n},r?r.push(o):this.__on=[o]}}function gm(t,e,n){var r=M3(t+""),o,i=r.length,a;if(arguments.length<2){var f=this.node().__on;if(f){for(var s=0,u=f.length,c;s<u;++s)for(o=0,c=f[s];o<i;++o)if((a=r[o]).type===c.type&&a.name===c.name)return c.value}return}for(f=e?T3:S3,o=0;o<i;++o)this.each(f(r[o],e,n));return this}function xm(t,e,n){var r=lo(t),o=r.CustomEvent;typeof o=="function"?o=new o(e,n):(o=r.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function A3(t,e){return function(){return xm(this,t,e)}}function E3(t,e){return function(){return xm(this,t,e.apply(this,arguments))}}function bm(t,e){return this.each((typeof e=="function"?E3:A3)(t,e))}function*ym(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],o=0,i=r.length,a;o<i;++o)(a=r[o])&&(yield a)}var Ti=[null];function yt(t,e){this._groups=t,this._parents=e}function _m(){return new yt([[document.documentElement]],Ti)}function k3(){return this}yt.prototype=_m.prototype={constructor:yt,select:D0,selectAll:q0,selectChild:O0,selectChildren:F0,filter:z0,data:U0,enter:L0,exit:$0,join:B0,merge:H0,selection:k3,order:X0,sort:W0,call:V0,nodes:G0,node:Z0,size:Q0,empty:j0,each:K0,attr:J0,style:tm,property:em,classed:am,text:fm,html:um,raise:sm,lower:cm,append:lm,insert:hm,remove:pm,clone:mm,datum:dm,on:gm,dispatch:bm,[Symbol.iterator]:ym};var Be=_m;function At(t){return typeof t=="string"?new yt([[document.querySelector(t)]],[document.documentElement]):new yt([[t]],Ti)}function vm(t){return At(Pn(t).call(document.documentElement))}var N3=0;function ef(){return new kc}function kc(){this._="@"+(++N3).toString(36)}kc.prototype=ef.prototype={constructor:kc,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};function nf(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Ot(t,e){if(t=nf(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}function wm(t,e){return t.target&&(t=nf(t),e===void 0&&(e=t.currentTarget),t=t.touches||[t]),Array.from(t,n=>Ot(n,e))}function Mm(t){return typeof t=="string"?new yt([document.querySelectorAll(t)],[document.documentElement]):new yt([Mi(t)],Ti)}var Sm={passive:!1},pr={capture:!0,passive:!1};function rf(t){t.stopImmediatePropagation()}function qn(t){t.preventDefault(),t.stopImmediatePropagation()}function On(t){var e=t.document.documentElement,n=At(t).on("dragstart.drag",qn,pr);"onselectstart"in e?n.on("selectstart.drag",qn,pr):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Fn(t,e){var n=t.document.documentElement,r=At(t).on("dragstart.drag",null);e&&(r.on("click.drag",qn,pr),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var Ai=t=>()=>t;function Ei(t,{sourceEvent:e,subject:n,target:r,identifier:o,active:i,x:a,y:f,dx:s,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,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:i,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:f,enumerable:!0,configurable:!0},dx:{value:s,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}Ei.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function R3(t){return!t.ctrlKey&&!t.button}function C3(){return this.parentNode}function I3(t,e){return e??{x:t.x,y:t.y}}function P3(){return navigator.maxTouchPoints||"ontouchstart"in this}function Tm(){var t=R3,e=C3,n=I3,r=P3,o={},i=ge("start","drag","end"),a=0,f,s,u,c,h=0;function l(b){b.on("mousedown.drag",p).filter(r).on("touchstart.drag",m).on("touchmove.drag",x,Sm).on("touchend.drag touchcancel.drag",_).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(b,v){if(!(c||!t.call(this,b,v))){var w=y(this,e.call(this,b,v),b,v,"mouse");w&&(At(b.view).on("mousemove.drag",g,pr).on("mouseup.drag",d,pr),On(b.view),rf(b),u=!1,f=b.clientX,s=b.clientY,w("start",b))}}function g(b){if(qn(b),!u){var v=b.clientX-f,w=b.clientY-s;u=v*v+w*w>h}o.mouse("drag",b)}function d(b){At(b.view).on("mousemove.drag mouseup.drag",null),Fn(b.view,u),qn(b),o.mouse("end",b)}function m(b,v){if(t.call(this,b,v)){var w=b.changedTouches,A=e.call(this,b,v),R=w.length,N,E;for(N=0;N<R;++N)(E=y(this,A,b,v,w[N].identifier,w[N]))&&(rf(b),E("start",b,w[N]))}}function x(b){var v=b.changedTouches,w=v.length,A,R;for(A=0;A<w;++A)(R=o[v[A].identifier])&&(qn(b),R("drag",b,v[A]))}function _(b){var v=b.changedTouches,w=v.length,A,R;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),A=0;A<w;++A)(R=o[v[A].identifier])&&(rf(b),R("end",b,v[A]))}function y(b,v,w,A,R,N){var E=i.copy(),k=Ot(N||w,v),I,C,M;if((M=n.call(b,new Ei("beforestart",{sourceEvent:w,target:l,identifier:R,active:a,x:k[0],y:k[1],dx:0,dy:0,dispatch:E}),A))!=null)return I=M.x-k[0]||0,C=M.y-k[1]||0,function S(T,P,O){var q=k,L;switch(T){case"start":o[R]=S,L=a++;break;case"end":delete o[R],--a;case"drag":k=Ot(O||P,v),L=a;break}E.call(T,b,new Ei(T,{sourceEvent:P,subject:M,target:l,identifier:R,active:L,x:k[0]+I,y:k[1]+C,dx:k[0]-q[0],dy:k[1]-q[1],dispatch:E}),A)}}return l.filter=function(b){return arguments.length?(t=typeof b=="function"?b:Ai(!!b),l):t},l.container=function(b){return arguments.length?(e=typeof b=="function"?b:Ai(b),l):e},l.subject=function(b){return arguments.length?(n=typeof b=="function"?b:Ai(b),l):n},l.touchable=function(b){return arguments.length?(r=typeof b=="function"?b:Ai(!!b),l):r},l.on=function(){var b=i.on.apply(i,arguments);return b===i?l:b},l.clickDistance=function(b){return arguments.length?(h=(b=+b)*b,l):Math.sqrt(h)},l}var Xc={};pt(Xc,{interpolate:()=>Wt,interpolateArray:()=>Jm,interpolateBasis:()=>hf,interpolateBasisClosed:()=>pf,interpolateCubehelix:()=>md,interpolateCubehelixLong:()=>yr,interpolateDate:()=>gf,interpolateDiscrete:()=>td,interpolateHcl:()=>ld,interpolateHclLong:()=>hd,interpolateHsl:()=>ud,interpolateHslLong:()=>sd,interpolateHue:()=>ed,interpolateLab:()=>Hc,interpolateNumber:()=>Ft,interpolateNumberArray:()=>bo,interpolateObject:()=>xf,interpolateRgb:()=>Un,interpolateRgbBasis:()=>mf,interpolateRgbBasisClosed:()=>Km,interpolateRound:()=>$n,interpolateString:()=>yo,interpolateTransformCss:()=>_f,interpolateTransformSvg:()=>vf,interpolateZoom:()=>wf,piecewise:()=>Ci,quantize:()=>dd});var zc={};pt(zc,{color:()=>xe,cubehelix:()=>Xt,gray:()=>Um,hcl:()=>go,hsl:()=>po,lab:()=>xr,lch:()=>Bm,rgb:()=>gn});function dn(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function zn(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Xe(){}var Ln=.7,gr=1/Ln,ho="\\s*([+-]?\\d+)\\s*",ki="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",He="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",D3=/^#([0-9a-f]{3,8})$/,q3=new RegExp(`^rgb\\(${ho},${ho},${ho}\\)$`),O3=new RegExp(`^rgb\\(${He},${He},${He}\\)$`),F3=new RegExp(`^rgba\\(${ho},${ho},${ho},${ki}\\)$`),z3=new RegExp(`^rgba\\(${He},${He},${He},${ki}\\)$`),L3=new RegExp(`^hsl\\(${ki},${He},${He}\\)$`),Y3=new RegExp(`^hsla\\(${ki},${He},${He},${ki}\\)$`),Am={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};dn(Xe,xe,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Em,formatHex:Em,formatHex8:U3,formatHsl:$3,formatRgb:km,toString:km});function Em(){return this.rgb().formatHex()}function U3(){return this.rgb().formatHex8()}function $3(){return Dm(this).formatHsl()}function km(){return this.rgb().formatRgb()}function xe(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=D3.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?Nm(e):n===3?new It(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?of(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?of(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=q3.exec(t))?new It(e[1],e[2],e[3],1):(e=O3.exec(t))?new It(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=F3.exec(t))?of(e[1],e[2],e[3],e[4]):(e=z3.exec(t))?of(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=L3.exec(t))?Im(e[1],e[2]/100,e[3]/100,1):(e=Y3.exec(t))?Im(e[1],e[2]/100,e[3]/100,e[4]):Am.hasOwnProperty(t)?Nm(Am[t]):t==="transparent"?new It(NaN,NaN,NaN,0):null}function Nm(t){return new It(t>>16&255,t>>8&255,t&255,1)}function of(t,e,n,r){return r<=0&&(t=e=n=NaN),new It(t,e,n,r)}function Ni(t){return t instanceof Xe||(t=xe(t)),t?(t=t.rgb(),new It(t.r,t.g,t.b,t.opacity)):new It}function gn(t,e,n,r){return arguments.length===1?Ni(t):new It(t,e,n,r??1)}function It(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}dn(It,gn,zn(Xe,{brighter(t){return t=t==null?gr:Math.pow(gr,t),new It(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ln:Math.pow(Ln,t),new It(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new It(dr(this.r),dr(this.g),dr(this.b),ff(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:Rm,formatHex:Rm,formatHex8:B3,formatRgb:Cm,toString:Cm}));function Rm(){return`#${mr(this.r)}${mr(this.g)}${mr(this.b)}`}function B3(){return`#${mr(this.r)}${mr(this.g)}${mr(this.b)}${mr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Cm(){let t=ff(this.opacity);return`${t===1?"rgb(":"rgba("}${dr(this.r)}, ${dr(this.g)}, ${dr(this.b)}${t===1?")":`, ${t})`}`}function ff(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function dr(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function mr(t){return t=dr(t),(t<16?"0":"")+t.toString(16)}function Im(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ne(t,e,n,r)}function Dm(t){if(t instanceof Ne)return new Ne(t.h,t.s,t.l,t.opacity);if(t instanceof Xe||(t=xe(t)),!t)return new Ne;if(t instanceof Ne)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),i=Math.max(e,n,r),a=NaN,f=i-o,s=(i+o)/2;return f?(e===i?a=(n-r)/f+(n<r)*6:n===i?a=(r-e)/f+2:a=(e-n)/f+4,f/=s<.5?i+o:2-i-o,a*=60):f=s>0&&s<1?0:a,new Ne(a,f,s,t.opacity)}function po(t,e,n,r){return arguments.length===1?Dm(t):new Ne(t,e,n,r??1)}function Ne(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}dn(Ne,po,zn(Xe,{brighter(t){return t=t==null?gr:Math.pow(gr,t),new Ne(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ln:Math.pow(Ln,t),new Ne(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new It(Cc(t>=240?t-240:t+120,o,r),Cc(t,o,r),Cc(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new Ne(Pm(this.h),af(this.s),af(this.l),ff(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(){let t=ff(this.opacity);return`${t===1?"hsl(":"hsla("}${Pm(this.h)}, ${af(this.s)*100}%, ${af(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Pm(t){return t=(t||0)%360,t<0?t+360:t}function af(t){return Math.max(0,Math.min(1,t||0))}function Cc(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}var uf=Math.PI/180,sf=180/Math.PI;var cf=18,qm=.96422,Om=1,Fm=.82521,zm=4/29,mo=6/29,Lm=3*mo*mo,H3=mo*mo*mo;function Ym(t){if(t instanceof Re)return new Re(t.l,t.a,t.b,t.opacity);if(t instanceof We)return Hm(t);t instanceof It||(t=Ni(t));var e=qc(t.r),n=qc(t.g),r=qc(t.b),o=Ic((.2225045*e+.7168786*n+.0606169*r)/Om),i,a;return e===n&&n===r?i=a=o:(i=Ic((.4360747*e+.3850649*n+.1430804*r)/qm),a=Ic((.0139322*e+.0971045*n+.7141733*r)/Fm)),new Re(116*o-16,500*(i-o),200*(o-a),t.opacity)}function Um(t,e){return new Re(t,0,0,e??1)}function xr(t,e,n,r){return arguments.length===1?Ym(t):new Re(t,e,n,r??1)}function Re(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}dn(Re,xr,zn(Xe,{brighter(t){return new Re(this.l+cf*(t??1),this.a,this.b,this.opacity)},darker(t){return new Re(this.l-cf*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=qm*Pc(e),t=Om*Pc(t),n=Fm*Pc(n),new It(Dc(3.1338561*e-1.6168667*t-.4906146*n),Dc(-.9787684*e+1.9161415*t+.033454*n),Dc(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function Ic(t){return t>H3?Math.pow(t,1/3):t/Lm+zm}function Pc(t){return t>mo?t*t*t:Lm*(t-zm)}function Dc(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function qc(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function $m(t){if(t instanceof We)return new We(t.h,t.c,t.l,t.opacity);if(t instanceof Re||(t=Ym(t)),t.a===0&&t.b===0)return new We(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*sf;return new We(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Bm(t,e,n,r){return arguments.length===1?$m(t):new We(n,e,t,r??1)}function go(t,e,n,r){return arguments.length===1?$m(t):new We(t,e,n,r??1)}function We(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function Hm(t){if(isNaN(t.h))return new Re(t.l,0,0,t.opacity);var e=t.h*uf;return new Re(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}dn(We,go,zn(Xe,{brighter(t){return new We(this.h,this.c,this.l+cf*(t??1),this.opacity)},darker(t){return new We(this.h,this.c,this.l-cf*(t??1),this.opacity)},rgb(){return Hm(this).rgb()}}));var Gm=-.14861,Oc=1.78277,Fc=-.29227,lf=-.90649,Ri=1.97294,Xm=Ri*lf,Wm=Ri*Oc,Vm=Oc*Fc-lf*Gm;function X3(t){if(t instanceof br)return new br(t.h,t.s,t.l,t.opacity);t instanceof It||(t=Ni(t));var e=t.r/255,n=t.g/255,r=t.b/255,o=(Vm*r+Xm*e-Wm*n)/(Vm+Xm-Wm),i=r-o,a=(Ri*(n-o)-Fc*i)/lf,f=Math.sqrt(a*a+i*i)/(Ri*o*(1-o)),s=f?Math.atan2(a,i)*sf-120:NaN;return new br(s<0?s+360:s,f,o,t.opacity)}function Xt(t,e,n,r){return arguments.length===1?X3(t):new br(t,e,n,r??1)}function br(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}dn(br,Xt,zn(Xe,{brighter(t){return t=t==null?gr:Math.pow(gr,t),new br(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ln:Math.pow(Ln,t),new br(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*uf,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),o=Math.sin(t);return new It(255*(e+n*(Gm*r+Oc*o)),255*(e+n*(Fc*r+lf*o)),255*(e+n*(Ri*r)),this.opacity)}}));function Lc(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}function hf(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,f=r<e-1?t[r+2]:2*i-o;return Lc((n-r/e)*e,a,o,i,f)}}function pf(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],i=t[r%e],a=t[(r+1)%e],f=t[(r+2)%e];return Lc((n-r/e)*e,o,i,a,f)}}var xo=t=>()=>t;function Zm(t,e){return function(n){return t+n*e}}function W3(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Yn(t,e){var n=e-t;return n?Zm(t,n>180||n<-180?n-360*Math.round(n/360):n):xo(isNaN(t)?e:t)}function Qm(t){return(t=+t)==1?vt:function(e,n){return n-e?W3(e,n,t):xo(isNaN(e)?n:e)}}function vt(t,e){var n=e-t;return n?Zm(t,n):xo(isNaN(t)?e:t)}var Un=(function t(e){var n=Qm(e);function r(o,i){var a=n((o=gn(o)).r,(i=gn(i)).r),f=n(o.g,i.g),s=n(o.b,i.b),u=vt(o.opacity,i.opacity);return function(c){return o.r=a(c),o.g=f(c),o.b=s(c),o.opacity=u(c),o+""}}return r.gamma=t,r})(1);function jm(t){return function(e){var n=e.length,r=new Array(n),o=new Array(n),i=new Array(n),a,f;for(a=0;a<n;++a)f=gn(e[a]),r[a]=f.r||0,o[a]=f.g||0,i[a]=f.b||0;return r=t(r),o=t(o),i=t(i),f.opacity=1,function(s){return f.r=r(s),f.g=o(s),f.b=i(s),f+""}}}var mf=jm(hf),Km=jm(pf);function bo(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),o;return function(i){for(o=0;o<n;++o)r[o]=t[o]*(1-i)+e[o]*i;return r}}function df(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Jm(t,e){return(df(e)?bo:Yc)(t,e)}function Yc(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,o=new Array(r),i=new Array(n),a;for(a=0;a<r;++a)o[a]=Wt(t[a],e[a]);for(;a<n;++a)i[a]=e[a];return function(f){for(a=0;a<r;++a)i[a]=o[a](f);return i}}function gf(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Ft(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function xf(t,e){var n={},r={},o;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(o in e)o in t?n[o]=Wt(t[o],e[o]):r[o]=e[o];return function(i){for(o in n)r[o]=n[o](i);return r}}var $c=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Uc=new RegExp($c.source,"g");function V3(t){return function(){return t}}function G3(t){return function(e){return t(e)+""}}function yo(t,e){var n=$c.lastIndex=Uc.lastIndex=0,r,o,i,a=-1,f=[],s=[];for(t=t+"",e=e+"";(r=$c.exec(t))&&(o=Uc.exec(e));)(i=o.index)>n&&(i=e.slice(n,i),f[a]?f[a]+=i:f[++a]=i),(r=r[0])===(o=o[0])?f[a]?f[a]+=o:f[++a]=o:(f[++a]=null,s.push({i:a,x:Ft(r,o)})),n=Uc.lastIndex;return n<e.length&&(i=e.slice(n),f[a]?f[a]+=i:f[++a]=i),f.length<2?s[0]?G3(s[0].x):V3(e):(e=s.length,function(u){for(var c=0,h;c<e;++c)f[(h=s[c]).i]=h.x(u);return f.join("")})}function Wt(t,e){var n=typeof e,r;return e==null||n==="boolean"?xo(e):(n==="number"?Ft:n==="string"?(r=xe(e))?(e=r,Un):yo:e instanceof xe?Un:e instanceof Date?gf:df(e)?bo:Array.isArray(e)?Yc:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?xf:Ft)(t,e)}function td(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}function ed(t,e){var n=Yn(+t,+e);return function(r){var o=n(r);return o-360*Math.floor(o/360)}}function $n(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var nd=180/Math.PI,bf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Bc(t,e,n,r,o,i){var a,f,s;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(s=t*n+e*r)&&(n-=t*s,r-=e*s),(f=Math.sqrt(n*n+r*r))&&(n/=f,r/=f,s/=f),t*r<e*n&&(t=-t,e=-e,s=-s,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(e,t)*nd,skewX:Math.atan(s)*nd,scaleX:a,scaleY:f}}var yf;function rd(t){let e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?bf:Bc(e.a,e.b,e.c,e.d,e.e,e.f)}function od(t){return t==null?bf:(yf||(yf=document.createElementNS("http://www.w3.org/2000/svg","g")),yf.setAttribute("transform",t),(t=yf.transform.baseVal.consolidate())?(t=t.matrix,Bc(t.a,t.b,t.c,t.d,t.e,t.f)):bf)}function id(t,e,n,r){function o(u){return u.length?u.pop()+" ":""}function i(u,c,h,l,p,g){if(u!==h||c!==l){var d=p.push("translate(",null,e,null,n);g.push({i:d-4,x:Ft(u,h)},{i:d-2,x:Ft(c,l)})}else(h||l)&&p.push("translate("+h+e+l+n)}function a(u,c,h,l){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),l.push({i:h.push(o(h)+"rotate(",null,r)-2,x:Ft(u,c)})):c&&h.push(o(h)+"rotate("+c+r)}function f(u,c,h,l){u!==c?l.push({i:h.push(o(h)+"skewX(",null,r)-2,x:Ft(u,c)}):c&&h.push(o(h)+"skewX("+c+r)}function s(u,c,h,l,p,g){if(u!==h||c!==l){var d=p.push(o(p)+"scale(",null,",",null,")");g.push({i:d-4,x:Ft(u,h)},{i:d-2,x:Ft(c,l)})}else(h!==1||l!==1)&&p.push(o(p)+"scale("+h+","+l+")")}return function(u,c){var h=[],l=[];return u=t(u),c=t(c),i(u.translateX,u.translateY,c.translateX,c.translateY,h,l),a(u.rotate,c.rotate,h,l),f(u.skewX,c.skewX,h,l),s(u.scaleX,u.scaleY,c.scaleX,c.scaleY,h,l),u=c=null,function(p){for(var g=-1,d=l.length,m;++g<d;)h[(m=l[g]).i]=m.x(p);return h.join("")}}}var _f=id(rd,"px, ","px)","deg)"),vf=id(od,", ",")",")");var Z3=1e-12;function ad(t){return((t=Math.exp(t))+1/t)/2}function Q3(t){return((t=Math.exp(t))-1/t)/2}function j3(t){return((t=Math.exp(2*t))-1)/(t+1)}var wf=(function t(e,n,r){function o(i,a){var f=i[0],s=i[1],u=i[2],c=a[0],h=a[1],l=a[2],p=c-f,g=h-s,d=p*p+g*g,m,x;if(d<Z3)x=Math.log(l/u)/e,m=function(A){return[f+A*p,s+A*g,u*Math.exp(e*A*x)]};else{var _=Math.sqrt(d),y=(l*l-u*u+r*d)/(2*u*n*_),b=(l*l-u*u-r*d)/(2*l*n*_),v=Math.log(Math.sqrt(y*y+1)-y),w=Math.log(Math.sqrt(b*b+1)-b);x=(w-v)/e,m=function(A){var R=A*x,N=ad(v),E=u/(n*_)*(N*j3(e*R+v)-Q3(v));return[f+E*p,s+E*g,u*N/ad(e*R+v)]}}return m.duration=x*1e3*e/Math.SQRT2,m}return o.rho=function(i){var a=Math.max(.001,+i),f=a*a,s=f*f;return t(a,f,s)},o})(Math.SQRT2,2,4);function fd(t){return function(e,n){var r=t((e=po(e)).h,(n=po(n)).h),o=vt(e.s,n.s),i=vt(e.l,n.l),a=vt(e.opacity,n.opacity);return function(f){return e.h=r(f),e.s=o(f),e.l=i(f),e.opacity=a(f),e+""}}}var ud=fd(Yn),sd=fd(vt);function Hc(t,e){var n=vt((t=xr(t)).l,(e=xr(e)).l),r=vt(t.a,e.a),o=vt(t.b,e.b),i=vt(t.opacity,e.opacity);return function(a){return t.l=n(a),t.a=r(a),t.b=o(a),t.opacity=i(a),t+""}}function cd(t){return function(e,n){var r=t((e=go(e)).h,(n=go(n)).h),o=vt(e.c,n.c),i=vt(e.l,n.l),a=vt(e.opacity,n.opacity);return function(f){return e.h=r(f),e.c=o(f),e.l=i(f),e.opacity=a(f),e+""}}}var ld=cd(Yn),hd=cd(vt);function pd(t){return(function e(n){n=+n;function r(o,i){var a=t((o=Xt(o)).h,(i=Xt(i)).h),f=vt(o.s,i.s),s=vt(o.l,i.l),u=vt(o.opacity,i.opacity);return function(c){return o.h=a(c),o.s=f(c),o.l=s(Math.pow(c,n)),o.opacity=u(c),o+""}}return r.gamma=e,r})(1)}var md=pd(Yn),yr=pd(vt);function Ci(t,e){e===void 0&&(e=t,t=Wt);for(var n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);n<r;)i[n]=t(o,o=e[++n]);return function(a){var f=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return i[f](a-f)}}function dd(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}var ul={};pt(ul,{active:()=>h1,interrupt:()=>Ce,transition:()=>If});var Gc={};pt(Gc,{interval:()=>yd,now:()=>Bn,timeout:()=>Oi,timer:()=>wr,timerFlush:()=>Vc});var _o=0,Pi=0,Ii=0,xd=1e3,Mf,Di,Sf=0,_r=0,Tf=0,qi=typeof performance=="object"&&performance.now?performance:Date,bd=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Bn(){return _r||(bd(K3),_r=qi.now()+Tf)}function K3(){_r=0}function vr(){this._call=this._time=this._next=null}vr.prototype=wr.prototype={constructor:vr,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?Bn():+n)+(e==null?0:+e),!this._next&&Di!==this&&(Di?Di._next=this:Mf=this,Di=this),this._call=t,this._time=n,Wc()},stop:function(){this._call&&(this._call=null,this._time=1/0,Wc())}};function wr(t,e,n){var r=new vr;return r.restart(t,e,n),r}function Vc(){Bn(),++_o;for(var t=Mf,e;t;)(e=_r-t._time)>=0&&t._call.call(void 0,e),t=t._next;--_o}function gd(){_r=(Sf=qi.now())+Tf,_o=Pi=0;try{Vc()}finally{_o=0,t6(),_r=0}}function J3(){var t=qi.now(),e=t-Sf;e>xd&&(Tf-=e,Sf=t)}function t6(){for(var t,e=Mf,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Mf=n);Di=t,Wc(r)}function Wc(t){if(!_o){Pi&&(Pi=clearTimeout(Pi));var e=t-_r;e>24?(t<1/0&&(Pi=setTimeout(gd,t-qi.now()-Tf)),Ii&&(Ii=clearInterval(Ii))):(Ii||(Sf=qi.now(),Ii=setInterval(J3,xd)),_o=1,bd(gd))}}function Oi(t,e,n){var r=new vr;return e=e==null?0:+e,r.restart(o=>{r.stop(),t(o+e)},e,n),r}function yd(t,e,n){var r=new vr,o=e;return e==null?(r.restart(t,e,n),r):(r._restart=r.restart,r.restart=function(i,a,f){a=+a,f=f==null?Bn():+f,r._restart(function s(u){u+=o,r._restart(s,o+=a,f),i(u)},a,f)},r.restart(t,e,n),r)}var e6=ge("start","end","cancel","interrupt"),n6=[],vd=0,Ef=1,kf=2,Af=3,_d=4,Nf=5,Fi=6;function Hn(t,e,n,r,o,i){var a=t.__transition;if(!a)t.__transition={};else if(n in a)return;r6(t,n,{name:e,index:r,group:o,on:e6,tween:n6,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:vd})}function zi(t,e){var n=Dt(t,e);if(n.state>vd)throw new Error("too late; already scheduled");return n}function $t(t,e){var n=Dt(t,e);if(n.state>Af)throw new Error("too late; already running");return n}function Dt(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function r6(t,e,n){var r=t.__transition,o;r[e]=n,n.timer=wr(i,0,n.time);function i(u){n.state=Ef,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var c,h,l,p;if(n.state!==Ef)return s();for(c in r)if(p=r[c],p.name===n.name){if(p.state===Af)return Oi(a);p.state===_d?(p.state=Fi,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[c]):+c<e&&(p.state=Fi,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[c])}if(Oi(function(){n.state===Af&&(n.state=_d,n.timer.restart(f,n.delay,n.time),f(u))}),n.state=kf,n.on.call("start",t,t.__data__,n.index,n.group),n.state===kf){for(n.state=Af,o=new Array(l=n.tween.length),c=0,h=-1;c<l;++c)(p=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(o[++h]=p);o.length=h+1}}function f(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(s),n.state=Nf,1),h=-1,l=o.length;++h<l;)o[h].call(t,c);n.state===Nf&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){n.state=Fi,n.timer.stop(),delete r[e];for(var u in r)return;delete t.__transition}}function Ce(t,e){var n=t.__transition,r,o,i=!0,a;if(n){e=e==null?null:e+"";for(a in n){if((r=n[a]).name!==e){i=!1;continue}o=r.state>kf&&r.state<Nf,r.state=Fi,r.timer.stop(),r.on.call(o?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[a]}i&&delete t.__transition}}function wd(t){return this.each(function(){Ce(this,t)})}function o6(t,e){var n,r;return function(){var o=$t(this,t),i=o.tween;if(i!==n){r=n=i;for(var a=0,f=r.length;a<f;++a)if(r[a].name===e){r=r.slice(),r.splice(a,1);break}}o.tween=r}}function i6(t,e,n){var r,o;if(typeof n!="function")throw new Error;return function(){var i=$t(this,t),a=i.tween;if(a!==r){o=(r=a).slice();for(var f={name:e,value:n},s=0,u=o.length;s<u;++s)if(o[s].name===e){o[s]=f;break}s===u&&o.push(f)}i.tween=o}}function Md(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=Dt(this.node(),n).tween,o=0,i=r.length,a;o<i;++o)if((a=r[o]).name===t)return a.value;return null}return this.each((e==null?o6:i6)(n,t,e))}function vo(t,e,n){var r=t._id;return t.each(function(){var o=$t(this,r);(o.value||(o.value={}))[e]=n.apply(this,arguments)}),function(o){return Dt(o,r).value[e]}}function Rf(t,e){var n;return(typeof e=="number"?Ft:e instanceof xe?Un:(n=xe(e))?(e=n,Un):yo)(t,e)}function a6(t){return function(){this.removeAttribute(t)}}function f6(t){return function(){this.removeAttributeNS(t.space,t.local)}}function u6(t,e,n){var r,o=n+"",i;return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function s6(t,e,n){var r,o=n+"",i;return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function c6(t,e,n){var r,o,i;return function(){var a,f=n(this),s;return f==null?void this.removeAttribute(t):(a=this.getAttribute(t),s=f+"",a===s?null:a===r&&s===o?i:(o=s,i=e(r=a,f)))}}function l6(t,e,n){var r,o,i;return function(){var a,f=n(this),s;return f==null?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),s=f+"",a===s?null:a===r&&s===o?i:(o=s,i=e(r=a,f)))}}function Sd(t,e){var n=$e(t),r=n==="transform"?vf:Rf;return this.attrTween(t,typeof e=="function"?(n.local?l6:c6)(n,r,vo(this,"attr."+t,e)):e==null?(n.local?f6:a6)(n):(n.local?s6:u6)(n,r,e))}function h6(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function p6(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function m6(t,e){var n,r;function o(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&p6(t,i)),n}return o._value=e,o}function d6(t,e){var n,r;function o(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&h6(t,i)),n}return o._value=e,o}function Td(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=$e(t);return this.tween(n,(r.local?m6:d6)(r,e))}function g6(t,e){return function(){zi(this,t).delay=+e.apply(this,arguments)}}function x6(t,e){return e=+e,function(){zi(this,t).delay=e}}function Ad(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?g6:x6)(e,t)):Dt(this.node(),e).delay}function b6(t,e){return function(){$t(this,t).duration=+e.apply(this,arguments)}}function y6(t,e){return e=+e,function(){$t(this,t).duration=e}}function Ed(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?b6:y6)(e,t)):Dt(this.node(),e).duration}function _6(t,e){if(typeof e!="function")throw new Error;return function(){$t(this,t).ease=e}}function kd(t){var e=this._id;return arguments.length?this.each(_6(e,t)):Dt(this.node(),e).ease}function v6(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;$t(this,t).ease=n}}function Nd(t){if(typeof t!="function")throw new Error;return this.each(v6(this._id,t))}function Rd(t){typeof t!="function"&&(t=co(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var i=e[o],a=i.length,f=r[o]=[],s,u=0;u<a;++u)(s=i[u])&&t.call(s,s.__data__,u,i)&&f.push(s);return new Bt(r,this._parents,this._name,this._id)}function Cd(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,o=n.length,i=Math.min(r,o),a=new Array(r),f=0;f<i;++f)for(var s=e[f],u=n[f],c=s.length,h=a[f]=new Array(c),l,p=0;p<c;++p)(l=s[p]||u[p])&&(h[p]=l);for(;f<r;++f)a[f]=e[f];return new Bt(a,this._parents,this._name,this._id)}function w6(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function M6(t,e,n){var r,o,i=w6(e)?zi:$t;return function(){var a=i(this,t),f=a.on;f!==r&&(o=(r=f).copy()).on(e,n),a.on=o}}function Id(t,e){var n=this._id;return arguments.length<2?Dt(this.node(),n).on.on(t):this.each(M6(n,t,e))}function S6(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function Pd(){return this.on("end.remove",S6(this._id))}function Dd(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Dn(t));for(var r=this._groups,o=r.length,i=new Array(o),a=0;a<o;++a)for(var f=r[a],s=f.length,u=i[a]=new Array(s),c,h,l=0;l<s;++l)(c=f[l])&&(h=t.call(c,c.__data__,l,f))&&("__data__"in c&&(h.__data__=c.__data__),u[l]=h,Hn(u[l],e,n,l,u,Dt(c,n)));return new Bt(i,this._parents,e,n)}function qd(t){var e=this._name,n=this._id;typeof t!="function"&&(t=so(t));for(var r=this._groups,o=r.length,i=[],a=[],f=0;f<o;++f)for(var s=r[f],u=s.length,c,h=0;h<u;++h)if(c=s[h]){for(var l=t.call(c,c.__data__,h,s),p,g=Dt(c,n),d=0,m=l.length;d<m;++d)(p=l[d])&&Hn(p,e,n,d,l,g);i.push(l),a.push(c)}return new Bt(i,a,e,n)}var T6=Be.prototype.constructor;function Od(){return new T6(this._groups,this._parents)}function A6(t,e){var n,r,o;return function(){var i=mn(this,t),a=(this.style.removeProperty(t),mn(this,t));return i===a?null:i===n&&a===r?o:o=e(n=i,r=a)}}function Fd(t){return function(){this.style.removeProperty(t)}}function E6(t,e,n){var r,o=n+"",i;return function(){var a=mn(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}function k6(t,e,n){var r,o,i;return function(){var a=mn(this,t),f=n(this),s=f+"";return f==null&&(s=f=(this.style.removeProperty(t),mn(this,t))),a===s?null:a===r&&s===o?i:(o=s,i=e(r=a,f))}}function N6(t,e){var n,r,o,i="style."+e,a="end."+i,f;return function(){var s=$t(this,t),u=s.on,c=s.value[i]==null?f||(f=Fd(e)):void 0;(u!==n||o!==c)&&(r=(n=u).copy()).on(a,o=c),s.on=r}}function zd(t,e,n){var r=(t+="")=="transform"?_f:Rf;return e==null?this.styleTween(t,A6(t,r)).on("end.style."+t,Fd(t)):typeof e=="function"?this.styleTween(t,k6(t,r,vo(this,"style."+t,e))).each(N6(this._id,t)):this.styleTween(t,E6(t,r,e),n).on("end.style."+t,null)}function R6(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function C6(t,e,n){var r,o;function i(){var a=e.apply(this,arguments);return a!==o&&(r=(o=a)&&R6(t,a,n)),r}return i._value=e,i}function Ld(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,C6(t,e,n??""))}function I6(t){return function(){this.textContent=t}}function P6(t){return function(){var e=t(this);this.textContent=e??""}}function Yd(t){return this.tween("text",typeof t=="function"?P6(vo(this,"text",t)):I6(t==null?"":t+""))}function D6(t){return function(e){this.textContent=t.call(this,e)}}function q6(t){var e,n;function r(){var o=t.apply(this,arguments);return o!==n&&(e=(n=o)&&D6(o)),e}return r._value=t,r}function Ud(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,q6(t))}function $d(){for(var t=this._name,e=this._id,n=Cf(),r=this._groups,o=r.length,i=0;i<o;++i)for(var a=r[i],f=a.length,s,u=0;u<f;++u)if(s=a[u]){var c=Dt(s,e);Hn(s,t,n,u,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Bt(r,this._parents,t,n)}function Bd(){var t,e,n=this,r=n._id,o=n.size();return new Promise(function(i,a){var f={value:a},s={value:function(){--o===0&&i()}};n.each(function(){var u=$t(this,r),c=u.on;c!==t&&(e=(t=c).copy(),e._.cancel.push(f),e._.interrupt.push(f),e._.end.push(s)),u.on=e}),o===0&&i()})}var O6=0;function Bt(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function If(t){return Be().transition(t)}function Cf(){return++O6}var xn=Be.prototype;Bt.prototype=If.prototype={constructor:Bt,select:Dd,selectAll:qd,selectChild:xn.selectChild,selectChildren:xn.selectChildren,filter:Rd,merge:Cd,selection:Od,transition:$d,call:xn.call,nodes:xn.nodes,node:xn.node,size:xn.size,empty:xn.empty,each:xn.each,on:Id,attr:Sd,attrTween:Td,style:zd,styleTween:Ld,text:Yd,textTween:Ud,remove:Pd,tween:Md,delay:Ad,duration:Ed,ease:kd,easeVarying:Nd,end:Bd,[Symbol.iterator]:xn[Symbol.iterator]};var fl={};pt(fl,{easeBack:()=>rl,easeBackIn:()=>f1,easeBackInOut:()=>rl,easeBackOut:()=>u1,easeBounce:()=>wo,easeBounceIn:()=>i1,easeBounceInOut:()=>a1,easeBounceOut:()=>wo,easeCircle:()=>tl,easeCircleIn:()=>r1,easeCircleInOut:()=>tl,easeCircleOut:()=>o1,easeCubic:()=>Li,easeCubicIn:()=>Vd,easeCubicInOut:()=>Li,easeCubicOut:()=>Gd,easeElastic:()=>al,easeElasticIn:()=>s1,easeElasticInOut:()=>c1,easeElasticOut:()=>al,easeExp:()=>Jc,easeExpIn:()=>e1,easeExpInOut:()=>Jc,easeExpOut:()=>n1,easeLinear:()=>Hd,easePoly:()=>jc,easePolyIn:()=>Zd,easePolyInOut:()=>jc,easePolyOut:()=>Qd,easeQuad:()=>Zc,easeQuadIn:()=>Xd,easeQuadInOut:()=>Zc,easeQuadOut:()=>Wd,easeSin:()=>Kc,easeSinIn:()=>Jd,easeSinInOut:()=>Kc,easeSinOut:()=>t1});var Hd=t=>+t;function Xd(t){return t*t}function Wd(t){return t*(2-t)}function Zc(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function Vd(t){return t*t*t}function Gd(t){return--t*t*t+1}function Li(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Qc=3,Zd=(function t(e){e=+e;function n(r){return Math.pow(r,e)}return n.exponent=t,n})(Qc),Qd=(function t(e){e=+e;function n(r){return 1-Math.pow(1-r,e)}return n.exponent=t,n})(Qc),jc=(function t(e){e=+e;function n(r){return((r*=2)<=1?Math.pow(r,e):2-Math.pow(2-r,e))/2}return n.exponent=t,n})(Qc);var jd=Math.PI,Kd=jd/2;function Jd(t){return+t==1?1:1-Math.cos(t*Kd)}function t1(t){return Math.sin(t*Kd)}function Kc(t){return(1-Math.cos(jd*t))/2}function Ve(t){return(Math.pow(2,-10*t)-.0009765625)*1.0009775171065494}function e1(t){return Ve(1-+t)}function n1(t){return 1-Ve(t)}function Jc(t){return((t*=2)<=1?Ve(1-t):2-Ve(t-1))/2}function r1(t){return 1-Math.sqrt(1-t*t)}function o1(t){return Math.sqrt(1- --t*t)}function tl(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var el=.36363636363636365,F6=6/11,z6=8/11,L6=3/4,Y6=9/11,U6=10/11,$6=15/16,B6=21/22,H6=63/64,Pf=1/el/el;function i1(t){return 1-wo(1-t)}function wo(t){return(t=+t)<el?Pf*t*t:t<z6?Pf*(t-=F6)*t+L6:t<U6?Pf*(t-=Y6)*t+$6:Pf*(t-=B6)*t+H6}function a1(t){return((t*=2)<=1?1-wo(1-t):wo(t-1)+1)/2}var nl=1.70158,f1=(function t(e){e=+e;function n(r){return(r=+r)*r*(e*(r-1)+r)}return n.overshoot=t,n})(nl),u1=(function t(e){e=+e;function n(r){return--r*r*((r+1)*e+r)+1}return n.overshoot=t,n})(nl),rl=(function t(e){e=+e;function n(r){return((r*=2)<1?r*r*((e+1)*r-e):(r-=2)*r*((e+1)*r+e)+2)/2}return n.overshoot=t,n})(nl);var Mo=2*Math.PI,ol=1,il=.3,s1=(function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Mo);function o(i){return e*Ve(- --i)*Math.sin((r-i)/n)}return o.amplitude=function(i){return t(i,n*Mo)},o.period=function(i){return t(e,i)},o})(ol,il),al=(function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Mo);function o(i){return 1-e*Ve(i=+i)*Math.sin((i+r)/n)}return o.amplitude=function(i){return t(i,n*Mo)},o.period=function(i){return t(e,i)},o})(ol,il),c1=(function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Mo);function o(i){return((i=i*2-1)<0?e*Ve(-i)*Math.sin((r-i)/n):2-e*Ve(i)*Math.sin((r+i)/n))/2}return o.amplitude=function(i){return t(i,n*Mo)},o.period=function(i){return t(e,i)},o})(ol,il);var X6={time:null,delay:0,duration:250,ease:Li};function W6(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function l1(t){var e,n;t instanceof Bt?(e=t._id,t=t._name):(e=Cf(),(n=X6).time=Bn(),t=t==null?null:t+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var a=r[i],f=a.length,s,u=0;u<f;++u)(s=a[u])&&Hn(s,t,e,u,a,n||W6(s,e));return new Bt(r,this._parents,t,e)}Be.prototype.interrupt=wd;Be.prototype.transition=l1;var V6=[null];function h1(t,e){var n=t.__transition,r,o;if(n){e=e==null?null:e+"";for(o in n)if((r=n[o]).state>Ef&&r.name===e)return new Bt([[t]],V6,e,+o)}return null}var Df=t=>()=>t;function sl(t,{sourceEvent:e,target:n,selection:r,mode:o,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:o,enumerable:!0,configurable:!0},_:{value:i}})}function p1(t){t.stopImmediatePropagation()}function qf(t){t.preventDefault(),t.stopImmediatePropagation()}var m1={name:"drag"},cl={name:"space"},So={name:"handle"},To={name:"center"},{abs:d1,max:Vt,min:Gt}=Math;function g1(t){return[+t[0],+t[1]]}function hl(t){return[g1(t[0]),g1(t[1])]}var Of={name:"x",handles:["w","e"].map(Yi),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Ff={name:"y",handles:["n","s"].map(Yi),input:function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},G6={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Yi),input:function(t){return t==null?null:hl(t)},output:function(t){return t}},bn={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"},x1={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},b1={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Z6={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Q6={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Yi(t){return{type:t}}function j6(t){return!t.ctrlKey&&!t.button}function K6(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function J6(){return navigator.maxTouchPoints||"ontouchstart"in this}function ll(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function tw(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function y1(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function _1(){return pl(Of)}function v1(){return pl(Ff)}function w1(){return pl(G6)}function pl(t){var e=K6,n=j6,r=J6,o=!0,i=ge("start","brush","end"),a=6,f;function s(m){var x=m.property("__brush",d).selectAll(".overlay").data([Yi("overlay")]);x.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",bn.overlay).merge(x).each(function(){var y=ll(this).extent;At(this).attr("x",y[0][0]).attr("y",y[0][1]).attr("width",y[1][0]-y[0][0]).attr("height",y[1][1]-y[0][1])}),m.selectAll(".selection").data([Yi("selection")]).enter().append("rect").attr("class","selection").attr("cursor",bn.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var _=m.selectAll(".handle").data(t.handles,function(y){return y.type});_.exit().remove(),_.enter().append("rect").attr("class",function(y){return"handle handle--"+y.type}).attr("cursor",function(y){return bn[y.type]}),m.each(u).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",l).filter(r).on("touchstart.brush",l).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",g).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}s.move=function(m,x,_){m.tween?m.on("start.brush",function(y){c(this,arguments).beforestart().start(y)}).on("interrupt.brush end.brush",function(y){c(this,arguments).end(y)}).tween("brush",function(){var y=this,b=y.__brush,v=c(y,arguments),w=b.selection,A=t.input(typeof x=="function"?x.apply(this,arguments):x,b.extent),R=Wt(w,A);function N(E){b.selection=E===1&&A===null?null:R(E),u.call(y),v.brush()}return w!==null&&A!==null?N:N(1)}):m.each(function(){var y=this,b=arguments,v=y.__brush,w=t.input(typeof x=="function"?x.apply(y,b):x,v.extent),A=c(y,b).beforestart();Ce(y),v.selection=w===null?null:w,u.call(y),A.start(_).brush(_).end(_)})},s.clear=function(m,x){s.move(m,null,x)};function u(){var m=At(this),x=ll(this).selection;x?(m.selectAll(".selection").style("display",null).attr("x",x[0][0]).attr("y",x[0][1]).attr("width",x[1][0]-x[0][0]).attr("height",x[1][1]-x[0][1]),m.selectAll(".handle").style("display",null).attr("x",function(_){return _.type[_.type.length-1]==="e"?x[1][0]-a/2:x[0][0]-a/2}).attr("y",function(_){return _.type[0]==="s"?x[1][1]-a/2:x[0][1]-a/2}).attr("width",function(_){return _.type==="n"||_.type==="s"?x[1][0]-x[0][0]+a:a}).attr("height",function(_){return _.type==="e"||_.type==="w"?x[1][1]-x[0][1]+a:a})):m.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(m,x,_){var y=m.__brush.emitter;return y&&(!_||!y.clean)?y:new h(m,x,_)}function h(m,x,_){this.that=m,this.args=x,this.state=m.__brush,this.active=0,this.clean=_}h.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(m,x){return this.starting?(this.starting=!1,this.emit("start",m,x)):this.emit("brush",m),this},brush:function(m,x){return this.emit("brush",m,x),this},end:function(m,x){return--this.active===0&&(delete this.state.emitter,this.emit("end",m,x)),this},emit:function(m,x,_){var y=At(this.that).datum();i.call(m,this.that,new sl(m,{sourceEvent:x,target:s,selection:t.output(this.state.selection),mode:_,dispatch:i}),y)}};function l(m){if(f&&!m.touches||!n.apply(this,arguments))return;var x=this,_=m.target.__data__.type,y=(o&&m.metaKey?_="overlay":_)==="selection"?m1:o&&m.altKey?To:So,b=t===Ff?null:Z6[_],v=t===Of?null:Q6[_],w=ll(x),A=w.extent,R=w.selection,N=A[0][0],E,k,I=A[0][1],C,M,S=A[1][0],T,P,O=A[1][1],q,L,X=0,W=0,lt,at=b&&v&&o&&m.shiftKey,nt,Ct,ut=Array.from(m.touches||[m],Q=>{let Tt=Q.identifier;return Q=Ot(Q,x),Q.point0=Q.slice(),Q.identifier=Tt,Q});Ce(x);var kt=c(x,arguments,!0).beforestart();if(_==="overlay"){R&&(lt=!0);let Q=[ut[0],ut[1]||ut[0]];w.selection=R=[[E=t===Ff?N:Gt(Q[0][0],Q[1][0]),C=t===Of?I:Gt(Q[0][1],Q[1][1])],[T=t===Ff?S:Vt(Q[0][0],Q[1][0]),q=t===Of?O:Vt(Q[0][1],Q[1][1])]],ut.length>1&&St(m)}else E=R[0][0],C=R[0][1],T=R[1][0],q=R[1][1];k=E,M=C,P=T,L=q;var $=At(x).attr("pointer-events","none"),K=$.selectAll(".overlay").attr("cursor",bn[_]);if(m.touches)kt.moved=F,kt.ended=ht;else{var tt=At(m.view).on("mousemove.brush",F,!0).on("mouseup.brush",ht,!0);o&&tt.on("keydown.brush",jt,!0).on("keyup.brush",Kt,!0),On(m.view)}u.call(x),kt.start(m,y.name);function F(Q){for(let Tt of Q.changedTouches||[Q])for(let ui of ut)ui.identifier===Tt.identifier&&(ui.cur=Ot(Tt,x));if(at&&!nt&&!Ct&&ut.length===1){let Tt=ut[0];d1(Tt.cur[0]-Tt[0])>d1(Tt.cur[1]-Tt[1])?Ct=!0:nt=!0}for(let Tt of ut)Tt.cur&&(Tt[0]=Tt.cur[0],Tt[1]=Tt.cur[1]);lt=!0,qf(Q),St(Q)}function St(Q){let Tt=ut[0],ui=Tt.point0;var Rn;switch(X=Tt[0]-ui[0],W=Tt[1]-ui[1],y){case cl:case m1:{b&&(X=Vt(N-E,Gt(S-T,X)),k=E+X,P=T+X),v&&(W=Vt(I-C,Gt(O-q,W)),M=C+W,L=q+W);break}case So:{ut[1]?(b&&(k=Vt(N,Gt(S,ut[0][0])),P=Vt(N,Gt(S,ut[1][0])),b=1),v&&(M=Vt(I,Gt(O,ut[0][1])),L=Vt(I,Gt(O,ut[1][1])),v=1)):(b<0?(X=Vt(N-E,Gt(S-E,X)),k=E+X,P=T):b>0&&(X=Vt(N-T,Gt(S-T,X)),k=E,P=T+X),v<0?(W=Vt(I-C,Gt(O-C,W)),M=C+W,L=q):v>0&&(W=Vt(I-q,Gt(O-q,W)),M=C,L=q+W));break}case To:{b&&(k=Vt(N,Gt(S,E-X*b)),P=Vt(N,Gt(S,T+X*b))),v&&(M=Vt(I,Gt(O,C-W*v)),L=Vt(I,Gt(O,q+W*v)));break}}P<k&&(b*=-1,Rn=E,E=T,T=Rn,Rn=k,k=P,P=Rn,_ in x1&&K.attr("cursor",bn[_=x1[_]])),L<M&&(v*=-1,Rn=C,C=q,q=Rn,Rn=M,M=L,L=Rn,_ in b1&&K.attr("cursor",bn[_=b1[_]])),w.selection&&(R=w.selection),nt&&(k=R[0][0],P=R[1][0]),Ct&&(M=R[0][1],L=R[1][1]),(R[0][0]!==k||R[0][1]!==M||R[1][0]!==P||R[1][1]!==L)&&(w.selection=[[k,M],[P,L]],u.call(x),kt.brush(Q,y.name))}function ht(Q){if(p1(Q),Q.touches){if(Q.touches.length)return;f&&clearTimeout(f),f=setTimeout(function(){f=null},500)}else Fn(Q.view,lt),tt.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);$.attr("pointer-events","all"),K.attr("cursor",bn.overlay),w.selection&&(R=w.selection),tw(R)&&(w.selection=null,u.call(x)),kt.end(Q,y.name)}function jt(Q){switch(Q.keyCode){case 16:{at=b&&v;break}case 18:{y===So&&(b&&(T=P-X*b,E=k+X*b),v&&(q=L-W*v,C=M+W*v),y=To,St(Q));break}case 32:{(y===So||y===To)&&(b<0?T=P-X:b>0&&(E=k-X),v<0?q=L-W:v>0&&(C=M-W),y=cl,K.attr("cursor",bn.selection),St(Q));break}default:return}qf(Q)}function Kt(Q){switch(Q.keyCode){case 16:{at&&(nt=Ct=at=!1,St(Q));break}case 18:{y===To&&(b<0?T=P:b>0&&(E=k),v<0?q=L:v>0&&(C=M),y=So,St(Q));break}case 32:{y===cl&&(Q.altKey?(b&&(T=P-X*b,E=k+X*b),v&&(q=L-W*v,C=M+W*v),y=To):(b<0?T=P:b>0&&(E=k),v<0?q=L:v>0&&(C=M),y=So),K.attr("cursor",bn[_]),St(Q));break}default:return}qf(Q)}}function p(m){c(this,arguments).moved(m)}function g(m){c(this,arguments).ended(m)}function d(){var m=this.__brush||{selection:null};return m.extent=hl(e.apply(this,arguments)),m.dim=t,m}return s.extent=function(m){return arguments.length?(e=typeof m=="function"?m:Df(hl(m)),s):e},s.filter=function(m){return arguments.length?(n=typeof m=="function"?m:Df(!!m),s):n},s.touchable=function(m){return arguments.length?(r=typeof m=="function"?m:Df(!!m),s):r},s.handleSize=function(m){return arguments.length?(a=+m,s):a},s.keyModifiers=function(m){return arguments.length?(o=!!m,s):o},s.on=function(){var m=i.on.apply(i,arguments);return m===i?s:m},s}var Ml={};pt(Ml,{chord:()=>S1,chordDirected:()=>A1,chordTranspose:()=>T1,ribbon:()=>I1,ribbonArrow:()=>P1});var dl=Math.abs,Mr=Math.cos,Sr=Math.sin,M1=Math.PI,Ui=M1/2,gl=M1*2,xl=Math.max,zf=1e-12;function bl(t,e){return Array.from({length:e-t},(n,r)=>t+r)}function ew(t){return function(e,n){return t(e.source.value+e.target.value,n.source.value+n.target.value)}}function S1(){return yl(!1,!1)}function T1(){return yl(!1,!0)}function A1(){return yl(!0,!1)}function yl(t,e){var n=0,r=null,o=null,i=null;function a(f){var s=f.length,u=new Array(s),c=bl(0,s),h=new Array(s*s),l=new Array(s),p=0,g;f=Float64Array.from({length:s*s},e?(d,m)=>f[m%s][m/s|0]:(d,m)=>f[m/s|0][m%s]);for(let d=0;d<s;++d){let m=0;for(let x=0;x<s;++x)m+=f[d*s+x]+t*f[x*s+d];p+=u[d]=m}p=xl(0,gl-n*s)/p,g=p?n:gl/s;{let d=0;r&&c.sort((m,x)=>r(u[m],u[x]));for(let m of c){let x=d;if(t){let _=bl(~s+1,s).filter(y=>y<0?f[~y*s+m]:f[m*s+y]);o&&_.sort((y,b)=>o(y<0?-f[~y*s+m]:f[m*s+y],b<0?-f[~b*s+m]:f[m*s+b]));for(let y of _)if(y<0){let b=h[~y*s+m]||(h[~y*s+m]={source:null,target:null});b.target={index:m,startAngle:d,endAngle:d+=f[~y*s+m]*p,value:f[~y*s+m]}}else{let b=h[m*s+y]||(h[m*s+y]={source:null,target:null});b.source={index:m,startAngle:d,endAngle:d+=f[m*s+y]*p,value:f[m*s+y]}}l[m]={index:m,startAngle:x,endAngle:d,value:u[m]}}else{let _=bl(0,s).filter(y=>f[m*s+y]||f[y*s+m]);o&&_.sort((y,b)=>o(f[m*s+y],f[m*s+b]));for(let y of _){let b;if(m<y?(b=h[m*s+y]||(h[m*s+y]={source:null,target:null}),b.source={index:m,startAngle:d,endAngle:d+=f[m*s+y]*p,value:f[m*s+y]}):(b=h[y*s+m]||(h[y*s+m]={source:null,target:null}),b.target={index:m,startAngle:d,endAngle:d+=f[m*s+y]*p,value:f[m*s+y]},m===y&&(b.source=b.target)),b.source&&b.target&&b.source.value<b.target.value){let v=b.source;b.source=b.target,b.target=v}}l[m]={index:m,startAngle:x,endAngle:d,value:u[m]}}d+=g}}return h=Object.values(h),h.groups=l,i?h.sort(i):h}return a.padAngle=function(f){return arguments.length?(n=xl(0,f),a):n},a.sortGroups=function(f){return arguments.length?(r=f,a):r},a.sortSubgroups=function(f){return arguments.length?(o=f,a):o},a.sortChords=function(f){return arguments.length?(f==null?i=null:(i=ew(f))._=f,a):i&&i._},a}var wl={};pt(wl,{Path:()=>yn,path:()=>$i,pathRound:()=>k1});var _l=Math.PI,vl=2*_l,Tr=1e-6,nw=vl-Tr;function E1(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function rw(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return E1;let n=10**e;return function(r){this._+=r[0];for(let o=1,i=r.length;o<i;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}var yn=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?E1:rw(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,r,o){this._append`Q${+e},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(e,n,r,o,i,a){this._append`C${+e},${+n},${+r},${+o},${this._x1=+i},${this._y1=+a}`}arcTo(e,n,r,o,i){if(e=+e,n=+n,r=+r,o=+o,i=+i,i<0)throw new Error(`negative radius: ${i}`);let a=this._x1,f=this._y1,s=r-e,u=o-n,c=a-e,h=f-n,l=c*c+h*h;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(l>Tr)if(!(Math.abs(h*s-u*c)>Tr)||!i)this._append`L${this._x1=e},${this._y1=n}`;else{let p=r-a,g=o-f,d=s*s+u*u,m=p*p+g*g,x=Math.sqrt(d),_=Math.sqrt(l),y=i*Math.tan((_l-Math.acos((d+l-m)/(2*x*_)))/2),b=y/_,v=y/x;Math.abs(b-1)>Tr&&this._append`L${e+b*c},${n+b*h}`,this._append`A${i},${i},0,0,${+(h*p>c*g)},${this._x1=e+v*s},${this._y1=n+v*u}`}}arc(e,n,r,o,i,a){if(e=+e,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let f=r*Math.cos(o),s=r*Math.sin(o),u=e+f,c=n+s,h=1^a,l=a?o-i:i-o;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Tr||Math.abs(this._y1-c)>Tr)&&this._append`L${u},${c}`,r&&(l<0&&(l=l%vl+vl),l>nw?this._append`A${r},${r},0,1,${h},${e-f},${n-s}A${r},${r},0,1,${h},${this._x1=u},${this._y1=c}`:l>Tr&&this._append`A${r},${r},0,${+(l>=_l)},${h},${this._x1=e+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(e,n,r,o){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}};function $i(){return new yn}$i.prototype=yn.prototype;function k1(t=3){return new yn(+t)}var N1=Array.prototype.slice;function Xn(t){return function(){return t}}function ow(t){return t.source}function iw(t){return t.target}function R1(t){return t.radius}function aw(t){return t.startAngle}function fw(t){return t.endAngle}function uw(){return 0}function sw(){return 10}function C1(t){var e=ow,n=iw,r=R1,o=R1,i=aw,a=fw,f=uw,s=null;function u(){var c,h=e.apply(this,arguments),l=n.apply(this,arguments),p=f.apply(this,arguments)/2,g=N1.call(arguments),d=+r.apply(this,(g[0]=h,g)),m=i.apply(this,g)-Ui,x=a.apply(this,g)-Ui,_=+o.apply(this,(g[0]=l,g)),y=i.apply(this,g)-Ui,b=a.apply(this,g)-Ui;if(s||(s=c=$i()),p>zf&&(dl(x-m)>p*2+zf?x>m?(m+=p,x-=p):(m-=p,x+=p):m=x=(m+x)/2,dl(b-y)>p*2+zf?b>y?(y+=p,b-=p):(y-=p,b+=p):y=b=(y+b)/2),s.moveTo(d*Mr(m),d*Sr(m)),s.arc(0,0,d,m,x),m!==y||x!==b)if(t){var v=+t.apply(this,arguments),w=_-v,A=(y+b)/2;s.quadraticCurveTo(0,0,w*Mr(y),w*Sr(y)),s.lineTo(_*Mr(A),_*Sr(A)),s.lineTo(w*Mr(b),w*Sr(b))}else s.quadraticCurveTo(0,0,_*Mr(y),_*Sr(y)),s.arc(0,0,_,y,b);if(s.quadraticCurveTo(0,0,d*Mr(m),d*Sr(m)),s.closePath(),c)return s=null,c+""||null}return t&&(u.headRadius=function(c){return arguments.length?(t=typeof c=="function"?c:Xn(+c),u):t}),u.radius=function(c){return arguments.length?(r=o=typeof c=="function"?c:Xn(+c),u):r},u.sourceRadius=function(c){return arguments.length?(r=typeof c=="function"?c:Xn(+c),u):r},u.targetRadius=function(c){return arguments.length?(o=typeof c=="function"?c:Xn(+c),u):o},u.startAngle=function(c){return arguments.length?(i=typeof c=="function"?c:Xn(+c),u):i},u.endAngle=function(c){return arguments.length?(a=typeof c=="function"?c:Xn(+c),u):a},u.padAngle=function(c){return arguments.length?(f=typeof c=="function"?c:Xn(+c),u):f},u.source=function(c){return arguments.length?(e=c,u):e},u.target=function(c){return arguments.length?(n=c,u):n},u.context=function(c){return arguments.length?(s=c??null,u):s},u}function I1(){return C1()}function P1(){return C1(sw)}var Tl={};pt(Tl,{contourDensity:()=>L1,contours:()=>Bi});var cw=Array.prototype,Lf=cw.slice;function D1(t,e){return t-e}function q1(t){for(var e=0,n=t.length,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];++e<n;)r+=t[e-1][1]*t[e][0]-t[e-1][0]*t[e][1];return r}var Ge=t=>()=>t;function O1(t,e){for(var n=-1,r=e.length,o;++n<r;)if(o=lw(t,e[n]))return o;return 0}function lw(t,e){for(var n=e[0],r=e[1],o=-1,i=0,a=t.length,f=a-1;i<a;f=i++){var s=t[i],u=s[0],c=s[1],h=t[f],l=h[0],p=h[1];if(hw(s,h,e))return 0;c>r!=p>r&&n<(l-u)*(r-c)/(p-c)+u&&(o=-o)}return o}function hw(t,e,n){var r;return pw(t,e,n)&&mw(t[r=+(t[0]===e[0])],n[r],e[r])}function pw(t,e,n){return(e[0]-t[0])*(n[1]-t[1])===(n[0]-t[0])*(e[1]-t[1])}function mw(t,e,n){return t<=e&&e<=n||n<=e&&e<=t}function F1(){}var _n=[[],[[[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 Bi(){var t=1,e=1,n=ur,r=s;function o(u){var c=n(u);if(Array.isArray(c))c=c.slice().sort(D1);else{let h=cn(u,dw);for(c=fe(...fr(h[0],h[1],c),c);c[c.length-1]>=h[1];)c.pop();for(;c[1]<h[0];)c.shift()}return c.map(h=>i(u,h))}function i(u,c){let h=c==null?NaN:+c;if(isNaN(h))throw new Error(`invalid value: ${c}`);var l=[],p=[];return a(u,h,function(g){r(g,u,h),q1(g)>0?l.push([g]):p.push(g)}),p.forEach(function(g){for(var d=0,m=l.length,x;d<m;++d)if(O1((x=l[d])[0],g)!==-1){x.push(g);return}}),{type:"MultiPolygon",value:c,coordinates:l}}function a(u,c,h){var l=new Array,p=new Array,g,d,m,x,_,y;for(g=d=-1,x=Ar(u[0],c),_n[x<<1].forEach(b);++g<t-1;)m=x,x=Ar(u[g+1],c),_n[m|x<<1].forEach(b);for(_n[x<<0].forEach(b);++d<e-1;){for(g=-1,x=Ar(u[d*t+t],c),_=Ar(u[d*t],c),_n[x<<1|_<<2].forEach(b);++g<t-1;)m=x,x=Ar(u[d*t+t+g+1],c),y=_,_=Ar(u[d*t+g+1],c),_n[m|x<<1|_<<2|y<<3].forEach(b);_n[x|_<<3].forEach(b)}for(g=-1,_=u[d*t]>=c,_n[_<<2].forEach(b);++g<t-1;)y=_,_=Ar(u[d*t+g+1],c),_n[_<<2|y<<3].forEach(b);_n[_<<3].forEach(b);function b(v){var w=[v[0][0]+g,v[0][1]+d],A=[v[1][0]+g,v[1][1]+d],R=f(w),N=f(A),E,k;(E=p[R])?(k=l[N])?(delete p[E.end],delete l[k.start],E===k?(E.ring.push(A),h(E.ring)):l[E.start]=p[k.end]={start:E.start,end:k.end,ring:E.ring.concat(k.ring)}):(delete p[E.end],E.ring.push(A),p[E.end=N]=E):(E=l[N])?(k=p[R])?(delete l[E.start],delete p[k.end],E===k?(E.ring.push(A),h(E.ring)):l[k.start]=p[E.end]={start:k.start,end:E.end,ring:k.ring.concat(E.ring)}):(delete l[E.start],E.ring.unshift(w),l[E.start=R]=E):l[R]=p[N]={start:R,end:N,ring:[w,A]}}}function f(u){return u[0]*2+u[1]*(t+1)*4}function s(u,c,h){u.forEach(function(l){var p=l[0],g=l[1],d=p|0,m=g|0,x=Sl(c[m*t+d]);p>0&&p<t&&d===p&&(l[0]=z1(p,Sl(c[m*t+d-1]),x,h)),g>0&&g<e&&m===g&&(l[1]=z1(g,Sl(c[(m-1)*t+d]),x,h))})}return o.contour=i,o.size=function(u){if(!arguments.length)return[t,e];var c=Math.floor(u[0]),h=Math.floor(u[1]);if(!(c>=0&&h>=0))throw new Error("invalid size");return t=c,e=h,o},o.thresholds=function(u){return arguments.length?(n=typeof u=="function"?u:Array.isArray(u)?Ge(Lf.call(u)):Ge(u),o):n},o.smooth=function(u){return arguments.length?(r=u?s:F1,o):r===s},o}function dw(t){return isFinite(t)?t:NaN}function Ar(t,e){return t==null?!1:+t>=e}function Sl(t){return t==null||isNaN(t=+t)?-1/0:t}function z1(t,e,n,r){let o=r-e,i=n-e,a=isFinite(o)||isFinite(i)?o/i:Math.sign(o)/Math.sign(i);return isNaN(a)?t:t+a-.5}function gw(t){return t[0]}function xw(t){return t[1]}function bw(){return 1}function L1(){var t=gw,e=xw,n=bw,r=960,o=500,i=20,a=2,f=i*3,s=r+f*2>>a,u=o+f*2>>a,c=Ge(20);function h(_){var y=new Float32Array(s*u),b=Math.pow(2,-a),v=-1;for(let C of _){var w=(t(C,++v,_)+f)*b,A=(e(C,v,_)+f)*b,R=+n(C,v,_);if(R&&w>=0&&w<s&&A>=0&&A<u){var N=Math.floor(w),E=Math.floor(A),k=w-N-.5,I=A-E-.5;y[N+E*s]+=(1-k)*(1-I)*R,y[N+1+E*s]+=k*(1-I)*R,y[N+1+(E+1)*s]+=k*I*R,y[N+(E+1)*s]+=(1-k)*I*R}}return $a({data:y,width:s,height:u},i*b),y}function l(_){var y=h(_),b=c(y),v=Math.pow(2,2*a);return Array.isArray(b)||(b=fe(Number.MIN_VALUE,pn(y)/v,b)),Bi().size([s,u]).thresholds(b.map(w=>w*v))(y).map((w,A)=>(w.value=+b[A],p(w)))}l.contours=function(_){var y=h(_),b=Bi().size([s,u]),v=Math.pow(2,2*a),w=A=>{A=+A;var R=p(b.contour(y,A*v));return R.value=A,R};return Object.defineProperty(w,"max",{get:()=>pn(y)/v}),w};function p(_){return _.coordinates.forEach(g),_}function g(_){_.forEach(d)}function d(_){_.forEach(m)}function m(_){_[0]=_[0]*Math.pow(2,a)-f,_[1]=_[1]*Math.pow(2,a)-f}function x(){return f=i*3,s=r+f*2>>a,u=o+f*2>>a,l}return l.x=function(_){return arguments.length?(t=typeof _=="function"?_:Ge(+_),l):t},l.y=function(_){return arguments.length?(e=typeof _=="function"?_:Ge(+_),l):e},l.weight=function(_){return arguments.length?(n=typeof _=="function"?_:Ge(+_),l):n},l.size=function(_){if(!arguments.length)return[r,o];var y=+_[0],b=+_[1];if(!(y>=0&&b>=0))throw new Error("invalid size");return r=y,o=b,x()},l.cellSize=function(_){if(!arguments.length)return 1<<a;if(!((_=+_)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(_)/Math.LN2),x()},l.thresholds=function(_){return arguments.length?(c=typeof _=="function"?_:Array.isArray(_)?Ge(Lf.call(_)):Ge(_),l):c},l.bandwidth=function(_){if(!arguments.length)return Math.sqrt(i*(i+1));if(!((_=+_)>=0))throw new Error("invalid bandwidth");return i=(Math.sqrt(4*_*_+1)-1)/2,x()},l}var El={};pt(El,{Delaunay:()=>Vi,Voronoi:()=>kr});var ot=11102230246251565e-32,Pt=134217729,Hi=(3+8*ot)*ot;function Er(t,e,n,r,o){let i,a,f,s,u=e[0],c=r[0],h=0,l=0;c>u==c>-u?(i=u,u=e[++h]):(i=c,c=r[++l]);let p=0;if(h<t&&l<n)for(c>u==c>-u?(a=u+i,f=i-(a-u),u=e[++h]):(a=c+i,f=i-(a-c),c=r[++l]),i=a,f!==0&&(o[p++]=f);h<t&&l<n;)c>u==c>-u?(a=i+u,s=a-i,f=i-(a-s)+(u-s),u=e[++h]):(a=i+c,s=a-i,f=i-(a-s)+(c-s),c=r[++l]),i=a,f!==0&&(o[p++]=f);for(;h<t;)a=i+u,s=a-i,f=i-(a-s)+(u-s),u=e[++h],i=a,f!==0&&(o[p++]=f);for(;l<n;)a=i+c,s=a-i,f=i-(a-s)+(c-s),c=r[++l],i=a,f!==0&&(o[p++]=f);return(i!==0||p===0)&&(o[p++]=i),p}function Xi(t,e){let n=e[0];for(let r=1;r<t;r++)n+=e[r];return n}function D(t){return new Float64Array(t)}var yw=(3+16*ot)*ot,_w=(2+12*ot)*ot,vw=(9+64*ot)*ot*ot,Ao=D(4),Y1=D(8),U1=D(12),$1=D(16),Jt=D(4);function ww(t,e,n,r,o,i,a){let f,s,u,c,h,l,p,g,d,m,x,_,y,b,v,w,A,R,N=t-o,E=n-o,k=e-i,I=r-i;b=N*I,l=Pt*N,p=l-(l-N),g=N-p,l=Pt*I,d=l-(l-I),m=I-d,v=g*m-(b-p*d-g*d-p*m),w=k*E,l=Pt*k,p=l-(l-k),g=k-p,l=Pt*E,d=l-(l-E),m=E-d,A=g*m-(w-p*d-g*d-p*m),x=v-A,h=v-x,Ao[0]=v-(x+h)+(h-A),_=b+x,h=_-b,y=b-(_-h)+(x-h),x=y-w,h=y-x,Ao[1]=y-(x+h)+(h-w),R=_+x,h=R-_,Ao[2]=_-(R-h)+(x-h),Ao[3]=R;let C=Xi(4,Ao),M=_w*a;if(C>=M||-C>=M||(h=t-N,f=t-(N+h)+(h-o),h=n-E,u=n-(E+h)+(h-o),h=e-k,s=e-(k+h)+(h-i),h=r-I,c=r-(I+h)+(h-i),f===0&&s===0&&u===0&&c===0)||(M=vw*a+Hi*Math.abs(C),C+=N*c+I*f-(k*u+E*s),C>=M||-C>=M))return C;b=f*I,l=Pt*f,p=l-(l-f),g=f-p,l=Pt*I,d=l-(l-I),m=I-d,v=g*m-(b-p*d-g*d-p*m),w=s*E,l=Pt*s,p=l-(l-s),g=s-p,l=Pt*E,d=l-(l-E),m=E-d,A=g*m-(w-p*d-g*d-p*m),x=v-A,h=v-x,Jt[0]=v-(x+h)+(h-A),_=b+x,h=_-b,y=b-(_-h)+(x-h),x=y-w,h=y-x,Jt[1]=y-(x+h)+(h-w),R=_+x,h=R-_,Jt[2]=_-(R-h)+(x-h),Jt[3]=R;let S=Er(4,Ao,4,Jt,Y1);b=N*c,l=Pt*N,p=l-(l-N),g=N-p,l=Pt*c,d=l-(l-c),m=c-d,v=g*m-(b-p*d-g*d-p*m),w=k*u,l=Pt*k,p=l-(l-k),g=k-p,l=Pt*u,d=l-(l-u),m=u-d,A=g*m-(w-p*d-g*d-p*m),x=v-A,h=v-x,Jt[0]=v-(x+h)+(h-A),_=b+x,h=_-b,y=b-(_-h)+(x-h),x=y-w,h=y-x,Jt[1]=y-(x+h)+(h-w),R=_+x,h=R-_,Jt[2]=_-(R-h)+(x-h),Jt[3]=R;let T=Er(S,Y1,4,Jt,U1);b=f*c,l=Pt*f,p=l-(l-f),g=f-p,l=Pt*c,d=l-(l-c),m=c-d,v=g*m-(b-p*d-g*d-p*m),w=s*u,l=Pt*s,p=l-(l-s),g=s-p,l=Pt*u,d=l-(l-u),m=u-d,A=g*m-(w-p*d-g*d-p*m),x=v-A,h=v-x,Jt[0]=v-(x+h)+(h-A),_=b+x,h=_-b,y=b-(_-h)+(x-h),x=y-w,h=y-x,Jt[1]=y-(x+h)+(h-w),R=_+x,h=R-_,Jt[2]=_-(R-h)+(x-h),Jt[3]=R;let P=Er(T,U1,4,Jt,$1);return $1[P-1]}function Eo(t,e,n,r,o,i){let a=(e-i)*(n-o),f=(t-o)*(r-i),s=a-f,u=Math.abs(a+f);return Math.abs(s)>=yw*u?s:-ww(t,e,n,r,o,i,u)}var aI=(7+56*ot)*ot,fI=(3+28*ot)*ot,uI=(26+288*ot)*ot*ot,sI=D(4),cI=D(4),lI=D(4),hI=D(4),pI=D(4),mI=D(4),dI=D(4),gI=D(4),xI=D(4),bI=D(8),yI=D(8),_I=D(8),vI=D(4),wI=D(8),MI=D(8),SI=D(16),TI=D(12),AI=D(192),EI=D(192);var RI=(10+96*ot)*ot,CI=(4+48*ot)*ot,II=(44+576*ot)*ot*ot,PI=D(4),DI=D(4),qI=D(4),OI=D(4),FI=D(4),zI=D(4),LI=D(4),YI=D(4),UI=D(8),$I=D(8),BI=D(8),HI=D(8),XI=D(8),WI=D(8),VI=D(8),GI=D(8),ZI=D(8),QI=D(4),jI=D(4),KI=D(4),JI=D(8),tP=D(16),eP=D(16),nP=D(16),rP=D(32),oP=D(32),iP=D(48),aP=D(64),fP=D(1152),uP=D(1152);var hP=(16+224*ot)*ot,pP=(5+72*ot)*ot,mP=(71+1408*ot)*ot*ot,dP=D(4),gP=D(4),xP=D(4),bP=D(4),yP=D(4),_P=D(4),vP=D(4),wP=D(4),MP=D(4),SP=D(4),TP=D(24),AP=D(24),EP=D(24),kP=D(24),NP=D(24),RP=D(24),CP=D(24),IP=D(24),PP=D(24),DP=D(24),qP=D(1152),OP=D(1152),FP=D(1152),zP=D(1152),LP=D(1152),YP=D(2304),UP=D(2304),$P=D(3456),BP=D(5760),HP=D(8),XP=D(8),WP=D(8),VP=D(16),GP=D(24),ZP=D(48),QP=D(48),jP=D(96),KP=D(192),JP=D(384),tD=D(384),eD=D(384),nD=D(768);var rD=D(96),oD=D(96),iD=D(96),aD=D(1152);var H1=Math.pow(2,-52),Yf=new Uint32Array(512),No=class t{static from(e,n=kw,r=Nw){let o=e.length,i=new Float64Array(o*2);for(let a=0;a<o;a++){let f=e[a];i[2*a]=n(f),i[2*a+1]=r(f)}return new t(i)}constructor(e){let n=e.length>>1;if(n>0&&typeof e[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=e;let r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.trianglesLen=0,this._cx=0,this._cy=0,this._hullStart=0,this.hull=this._triangles,this.triangles=this._triangles,this.halfedges=this._halfedges,this.update()}update(){let{coords:e,_hullPrev:n,_hullNext:r,_hullTri:o,_hullHash:i}=this,a=e.length>>1,f=1/0,s=1/0,u=-1/0,c=-1/0;for(let N=0;N<a;N++){let E=e[2*N],k=e[2*N+1];E<f&&(f=E),k<s&&(s=k),E>u&&(u=E),k>c&&(c=k),this._ids[N]=N}let h=(f+u)/2,l=(s+c)/2,p=0,g=0,d=0;for(let N=0,E=1/0;N<a;N++){let k=Al(h,l,e[2*N],e[2*N+1]);k<E&&(p=N,E=k)}let m=e[2*p],x=e[2*p+1];for(let N=0,E=1/0;N<a;N++){if(N===p)continue;let k=Al(m,x,e[2*N],e[2*N+1]);k<E&&k>0&&(g=N,E=k)}let _=e[2*g],y=e[2*g+1],b=1/0;for(let N=0;N<a;N++){if(N===p||N===g)continue;let E=Aw(m,x,_,y,e[2*N],e[2*N+1]);E<b&&(d=N,b=E)}let v=e[2*d],w=e[2*d+1];if(b===1/0){for(let k=0;k<a;k++)this._dists[k]=e[2*k]-e[0]||e[2*k+1]-e[1];ko(this._ids,this._dists,0,a-1);let N=new Uint32Array(a),E=0;for(let k=0,I=-1/0;k<a;k++){let C=this._ids[k],M=this._dists[C];M>I&&(N[E++]=C,I=M)}this.hull=N.subarray(0,E),this.triangles=new Uint32Array(0),this.halfedges=new Int32Array(0);return}if(Eo(m,x,_,y,v,w)<0){let N=g,E=_,k=y;g=d,_=v,y=w,d=N,v=E,w=k}let A=Ew(m,x,_,y,v,w);this._cx=A.x,this._cy=A.y;for(let N=0;N<a;N++)this._dists[N]=Al(e[2*N],e[2*N+1],A.x,A.y);ko(this._ids,this._dists,0,a-1),this._hullStart=p;let R=3;r[p]=n[d]=g,r[g]=n[p]=d,r[d]=n[g]=p,o[p]=0,o[g]=1,o[d]=2,i.fill(-1),i[this._hashKey(m,x)]=p,i[this._hashKey(_,y)]=g,i[this._hashKey(v,w)]=d,this.trianglesLen=0,this._addTriangle(p,g,d,-1,-1,-1);for(let N=0,E=0,k=0;N<this._ids.length;N++){let I=this._ids[N],C=e[2*I],M=e[2*I+1];if(N>0&&Math.abs(C-E)<=H1&&Math.abs(M-k)<=H1||(E=C,k=M,I===p||I===g||I===d))continue;let S=0;for(let L=0,X=this._hashKey(C,M);L<this._hashSize&&(S=i[(X+L)%this._hashSize],!(S!==-1&&S!==r[S]));L++);S=n[S];let T=S,P;for(;P=r[T],Eo(C,M,e[2*T],e[2*T+1],e[2*P],e[2*P+1])>=0;)if(T=P,T===S){T=-1;break}if(T===-1)continue;let O=this._addTriangle(T,I,r[T],-1,-1,o[T]);o[I]=this._legalize(O+2),o[T]=O,R++;let q=r[T];for(;P=r[q],Eo(C,M,e[2*q],e[2*q+1],e[2*P],e[2*P+1])<0;)O=this._addTriangle(q,I,P,o[I],-1,o[q]),o[I]=this._legalize(O+2),r[q]=q,R--,q=P;if(T===S)for(;P=n[T],Eo(C,M,e[2*P],e[2*P+1],e[2*T],e[2*T+1])<0;)O=this._addTriangle(P,I,T,-1,o[T],o[P]),this._legalize(O+2),o[P]=O,r[T]=T,R--,T=P;this._hullStart=n[I]=T,r[T]=n[q]=I,r[I]=q,i[this._hashKey(C,M)]=I,i[this._hashKey(e[2*T],e[2*T+1])]=T}this.hull=new Uint32Array(R);for(let N=0,E=this._hullStart;N<R;N++)this.hull[N]=E,E=r[E];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,n){return Math.floor(Sw(e-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(e){let{_triangles:n,_halfedges:r,coords:o}=this,i=0,a=0;for(;;){let f=r[e],s=e-e%3;if(a=s+(e+2)%3,f===-1){if(i===0)break;e=Yf[--i];continue}let u=f-f%3,c=s+(e+1)%3,h=u+(f+2)%3,l=n[a],p=n[e],g=n[c],d=n[h];if(Tw(o[2*l],o[2*l+1],o[2*p],o[2*p+1],o[2*g],o[2*g+1],o[2*d],o[2*d+1])){n[e]=d,n[f]=l;let x=r[h];if(x===-1){let y=this._hullStart;do{if(this._hullTri[y]===h){this._hullTri[y]=e;break}y=this._hullPrev[y]}while(y!==this._hullStart)}this._link(e,x),this._link(f,r[a]),this._link(a,h);let _=u+(f+1)%3;i<Yf.length&&(Yf[i++]=_)}else{if(i===0)break;e=Yf[--i]}}return a}_link(e,n){this._halfedges[e]=n,n!==-1&&(this._halfedges[n]=e)}_addTriangle(e,n,r,o,i,a){let f=this.trianglesLen;return this._triangles[f]=e,this._triangles[f+1]=n,this._triangles[f+2]=r,this._link(f,o),this._link(f+1,i),this._link(f+2,a),this.trianglesLen+=3,f}};function Sw(t,e){let n=t/(Math.abs(t)+Math.abs(e));return(e>0?3-n:1+n)/4}function Al(t,e,n,r){let o=t-n,i=e-r;return o*o+i*i}function Tw(t,e,n,r,o,i,a,f){let s=t-a,u=e-f,c=n-a,h=r-f,l=o-a,p=i-f,g=s*s+u*u,d=c*c+h*h,m=l*l+p*p;return s*(h*m-d*p)-u*(c*m-d*l)+g*(c*p-h*l)<0}function Aw(t,e,n,r,o,i){let a=n-t,f=r-e,s=o-t,u=i-e,c=a*a+f*f,h=s*s+u*u,l=.5/(a*u-f*s),p=(u*c-f*h)*l,g=(a*h-s*c)*l;return p*p+g*g}function Ew(t,e,n,r,o,i){let a=n-t,f=r-e,s=o-t,u=i-e,c=a*a+f*f,h=s*s+u*u,l=.5/(a*u-f*s),p=t+(u*c-f*h)*l,g=e+(a*h-s*c)*l;return{x:p,y:g}}function ko(t,e,n,r){if(r-n<=20)for(let o=n+1;o<=r;o++){let i=t[o],a=e[i],f=o-1;for(;f>=n&&e[t[f]]>a;)t[f+1]=t[f--];t[f+1]=i}else{let o=n+r>>1,i=n+1,a=r;Wi(t,o,i),e[t[n]]>e[t[r]]&&Wi(t,n,r),e[t[i]]>e[t[r]]&&Wi(t,i,r),e[t[n]]>e[t[i]]&&Wi(t,n,i);let f=t[i],s=e[f];for(;;){do i++;while(e[t[i]]<s);do a--;while(e[t[a]]>s);if(a<i)break;Wi(t,i,a)}t[n+1]=t[a],t[a]=f,r-i+1>=a-n?(ko(t,e,i,r),ko(t,e,n,a-1)):(ko(t,e,n,a-1),ko(t,e,i,r))}}function Wi(t,e,n){let r=t[e];t[e]=t[n],t[n]=r}function kw(t){return t[0]}function Nw(t){return t[1]}var be=class{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(e,n){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(e,n){this._+=`L${this._x1=+e},${this._y1=+n}`}arc(e,n,r){e=+e,n=+n,r=+r;let o=e+r,i=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${o},${i}`:(Math.abs(this._x1-o)>1e-6||Math.abs(this._y1-i)>1e-6)&&(this._+="L"+o+","+i),r&&(this._+=`A${r},${r},0,1,1,${e-r},${n}A${r},${r},0,1,1,${this._x1=o},${this._y1=i}`)}rect(e,n,r,o){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${+r}v${+o}h${-r}Z`}value(){return this._||null}};var Wn=class{constructor(){this._=[]}moveTo(e,n){this._.push([e,n])}closePath(){this._.push(this._[0].slice())}lineTo(e,n){this._.push([e,n])}value(){return this._.length?this._:null}};var kr=class{constructor(e,[n,r,o,i]=[0,0,960,500]){if(!((o=+o)>=(n=+n))||!((i=+i)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(e.points.length*2),this.vectors=new Float64Array(e.points.length*2),this.xmax=o,this.xmin=n,this.ymax=i,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){let{delaunay:{points:e,hull:n,triangles:r},vectors:o}=this,i,a,f=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let d=0,m=0,x=r.length,_,y;d<x;d+=3,m+=2){let b=r[d]*2,v=r[d+1]*2,w=r[d+2]*2,A=e[b],R=e[b+1],N=e[v],E=e[v+1],k=e[w],I=e[w+1],C=N-A,M=E-R,S=k-A,T=I-R,P=(C*T-M*S)*2;if(Math.abs(P)<1e-9){if(i===void 0){i=a=0;for(let q of n)i+=e[q*2],a+=e[q*2+1];i/=n.length,a/=n.length}let O=1e9*Math.sign((i-A)*T-(a-R)*S);_=(A+k)/2-O*T,y=(R+I)/2+O*S}else{let O=1/P,q=C*C+M*M,L=S*S+T*T;_=A+(T*q-M*L)*O,y=R+(C*L-S*q)*O}f[m]=_,f[m+1]=y}let s=n[n.length-1],u,c=s*4,h,l=e[2*s],p,g=e[2*s+1];o.fill(0);for(let d=0;d<n.length;++d)s=n[d],u=c,h=l,p=g,c=s*4,l=e[2*s],g=e[2*s+1],o[u+2]=o[c]=p-g,o[u+3]=o[c+1]=l-h}render(e){let n=e==null?e=new be:void 0,{delaunay:{halfedges:r,inedges:o,hull:i},circumcenters:a,vectors:f}=this;if(i.length<=1)return null;for(let c=0,h=r.length;c<h;++c){let l=r[c];if(l<c)continue;let p=Math.floor(c/3)*2,g=Math.floor(l/3)*2,d=a[p],m=a[p+1],x=a[g],_=a[g+1];this._renderSegment(d,m,x,_,e)}let s,u=i[i.length-1];for(let c=0;c<i.length;++c){s=u,u=i[c];let h=Math.floor(o[u]/3)*2,l=a[h],p=a[h+1],g=s*4,d=this._project(l,p,f[g+2],f[g+3]);d&&this._renderSegment(l,p,d[0],d[1],e)}return n&&n.value()}renderBounds(e){let n=e==null?e=new be:void 0;return e.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(e,n){let r=n==null?n=new be:void 0,o=this._clip(e);if(o===null||!o.length)return;n.moveTo(o[0],o[1]);let i=o.length;for(;o[0]===o[i-2]&&o[1]===o[i-1]&&i>1;)i-=2;for(let a=2;a<i;a+=2)(o[a]!==o[a-2]||o[a+1]!==o[a-1])&&n.lineTo(o[a],o[a+1]);return n.closePath(),r&&r.value()}*cellPolygons(){let{delaunay:{points:e}}=this;for(let n=0,r=e.length/2;n<r;++n){let o=this.cellPolygon(n);o&&(o.index=n,yield o)}}cellPolygon(e){let n=new Wn;return this.renderCell(e,n),n.value()}_renderSegment(e,n,r,o,i){let a,f=this._regioncode(e,n),s=this._regioncode(r,o);f===0&&s===0?(i.moveTo(e,n),i.lineTo(r,o)):(a=this._clipSegment(e,n,r,o,f,s))&&(i.moveTo(a[0],a[1]),i.lineTo(a[2],a[3]))}contains(e,n,r){return n=+n,n!==n||(r=+r,r!==r)?!1:this.delaunay._step(e,n,r)===e}*neighbors(e){let n=this._clip(e);if(n)for(let r of this.delaunay.neighbors(e)){let o=this._clip(r);if(o){t:for(let i=0,a=n.length;i<a;i+=2)for(let f=0,s=o.length;f<s;f+=2)if(n[i]===o[f]&&n[i+1]===o[f+1]&&n[(i+2)%a]===o[(f+s-2)%s]&&n[(i+3)%a]===o[(f+s-1)%s]){yield r;break t}}}}_cell(e){let{circumcenters:n,delaunay:{inedges:r,halfedges:o,triangles:i}}=this,a=r[e];if(a===-1)return null;let f=[],s=a;do{let u=Math.floor(s/3);if(f.push(n[u*2],n[u*2+1]),s=s%3===2?s-2:s+1,i[s]!==e)break;s=o[s]}while(s!==a&&s!==-1);return f}_clip(e){if(e===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];let n=this._cell(e);if(n===null)return null;let{vectors:r}=this,o=e*4;return this._simplify(r[o]||r[o+1]?this._clipInfinite(e,n,r[o],r[o+1],r[o+2],r[o+3]):this._clipFinite(e,n))}_clipFinite(e,n){let r=n.length,o=null,i,a,f=n[r-2],s=n[r-1],u,c=this._regioncode(f,s),h,l=0;for(let p=0;p<r;p+=2)if(i=f,a=s,f=n[p],s=n[p+1],u=c,c=this._regioncode(f,s),u===0&&c===0)h=l,l=0,o?o.push(f,s):o=[f,s];else{let g,d,m,x,_;if(u===0){if((g=this._clipSegment(i,a,f,s,u,c))===null)continue;[d,m,x,_]=g}else{if((g=this._clipSegment(f,s,i,a,c,u))===null)continue;[x,_,d,m]=g,h=l,l=this._edgecode(d,m),h&&l&&this._edge(e,h,l,o,o.length),o?o.push(d,m):o=[d,m]}h=l,l=this._edgecode(x,_),h&&l&&this._edge(e,h,l,o,o.length),o?o.push(x,_):o=[x,_]}if(o)h=l,l=this._edgecode(o[0],o[1]),h&&l&&this._edge(e,h,l,o,o.length);else if(this.contains(e,(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 o}_clipSegment(e,n,r,o,i,a){let f=i<a;for(f&&([e,n,r,o,i,a]=[r,o,e,n,a,i]);;){if(i===0&&a===0)return f?[r,o,e,n]:[e,n,r,o];if(i&a)return null;let s,u,c=i||a;c&8?(s=e+(r-e)*(this.ymax-n)/(o-n),u=this.ymax):c&4?(s=e+(r-e)*(this.ymin-n)/(o-n),u=this.ymin):c&2?(u=n+(o-n)*(this.xmax-e)/(r-e),s=this.xmax):(u=n+(o-n)*(this.xmin-e)/(r-e),s=this.xmin),i?(e=s,n=u,i=this._regioncode(e,n)):(r=s,o=u,a=this._regioncode(r,o))}}_clipInfinite(e,n,r,o,i,a){let f=Array.from(n),s;if((s=this._project(f[0],f[1],r,o))&&f.unshift(s[0],s[1]),(s=this._project(f[f.length-2],f[f.length-1],i,a))&&f.push(s[0],s[1]),f=this._clipFinite(e,f))for(let u=0,c=f.length,h,l=this._edgecode(f[c-2],f[c-1]);u<c;u+=2)h=l,l=this._edgecode(f[u],f[u+1]),h&&l&&(u=this._edge(e,h,l,f,u),c=f.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(f=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return f}_edge(e,n,r,o,i){for(;n!==r;){let a,f;switch(n){case 5:n=4;continue;case 4:n=6,a=this.xmax,f=this.ymin;break;case 6:n=2;continue;case 2:n=10,a=this.xmax,f=this.ymax;break;case 10:n=8;continue;case 8:n=9,a=this.xmin,f=this.ymax;break;case 9:n=1;continue;case 1:n=5,a=this.xmin,f=this.ymin;break}(o[i]!==a||o[i+1]!==f)&&this.contains(e,a,f)&&(o.splice(i,0,a,f),i+=2)}return i}_project(e,n,r,o){let i=1/0,a,f,s;if(o<0){if(n<=this.ymin)return null;(a=(this.ymin-n)/o)<i&&(s=this.ymin,f=e+(i=a)*r)}else if(o>0){if(n>=this.ymax)return null;(a=(this.ymax-n)/o)<i&&(s=this.ymax,f=e+(i=a)*r)}if(r>0){if(e>=this.xmax)return null;(a=(this.xmax-e)/r)<i&&(f=this.xmax,s=n+(i=a)*o)}else if(r<0){if(e<=this.xmin)return null;(a=(this.xmin-e)/r)<i&&(f=this.xmin,s=n+(i=a)*o)}return[f,s]}_edgecode(e,n){return(e===this.xmin?1:e===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(e,n){return(e<this.xmin?1:e>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}_simplify(e){if(e&&e.length>4){for(let n=0;n<e.length;n+=2){let r=(n+2)%e.length,o=(n+4)%e.length;(e[n]===e[r]&&e[r]===e[o]||e[n+1]===e[r+1]&&e[r+1]===e[o+1])&&(e.splice(r,2),n-=2)}e.length||(e=null)}return e}};var Rw=2*Math.PI,Ro=Math.pow;function Cw(t){return t[0]}function Iw(t){return t[1]}function Pw(t){let{triangles:e,coords:n}=t;for(let r=0;r<e.length;r+=3){let o=2*e[r],i=2*e[r+1],a=2*e[r+2];if((n[a]-n[o])*(n[i+1]-n[o+1])-(n[i]-n[o])*(n[a+1]-n[o+1])>1e-10)return!1}return!0}function Dw(t,e,n){return[t+Math.sin(t+e)*n,e+Math.cos(t-e)*n]}var Vi=class t{static from(e,n=Cw,r=Iw,o){return new t("length"in e?qw(e,n,r,o):Float64Array.from(Ow(e,n,r,o)))}constructor(e){this._delaunator=new No(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(){let e=this._delaunator,n=this.points;if(e.hull&&e.hull.length>2&&Pw(e)){this.collinear=Int32Array.from({length:n.length/2},(l,p)=>p).sort((l,p)=>n[2*l]-n[2*p]||n[2*l+1]-n[2*p+1]);let s=this.collinear[0],u=this.collinear[this.collinear.length-1],c=[n[2*s],n[2*s+1],n[2*u],n[2*u+1]],h=1e-8*Math.hypot(c[3]-c[1],c[2]-c[0]);for(let l=0,p=n.length/2;l<p;++l){let g=Dw(n[2*l],n[2*l+1],h);n[2*l]=g[0],n[2*l+1]=g[1]}this._delaunator=new No(n)}else delete this.collinear;let r=this.halfedges=this._delaunator.halfedges,o=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,a=this.inedges.fill(-1),f=this._hullIndex.fill(-1);for(let s=0,u=r.length;s<u;++s){let c=i[s%3===2?s-2:s+1];(r[s]===-1||a[c]===-1)&&(a[c]=s)}for(let s=0,u=o.length;s<u;++s)f[o[s]]=s;o.length<=2&&o.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=o[0],a[o[0]]=1,o.length===2&&(a[o[1]]=0,this.triangles[1]=o[1],this.triangles[2]=o[1]))}voronoi(e){return new kr(this,e)}*neighbors(e){let{inedges:n,hull:r,_hullIndex:o,halfedges:i,triangles:a,collinear:f}=this;if(f){let h=f.indexOf(e);h>0&&(yield f[h-1]),h<f.length-1&&(yield f[h+1]);return}let s=n[e];if(s===-1)return;let u=s,c=-1;do{if(yield c=a[u],u=u%3===2?u-2:u+1,a[u]!==e)return;if(u=i[u],u===-1){let h=r[(o[e]+1)%r.length];h!==c&&(yield h);return}}while(u!==s)}find(e,n,r=0){if(e=+e,e!==e||(n=+n,n!==n))return-1;let o=r,i;for(;(i=this._step(r,e,n))>=0&&i!==r&&i!==o;)r=i;return i}_step(e,n,r){let{inedges:o,hull:i,_hullIndex:a,halfedges:f,triangles:s,points:u}=this;if(o[e]===-1||!u.length)return(e+1)%(u.length>>1);let c=e,h=Ro(n-u[e*2],2)+Ro(r-u[e*2+1],2),l=o[e],p=l;do{let g=s[p],d=Ro(n-u[g*2],2)+Ro(r-u[g*2+1],2);if(d<h&&(h=d,c=g),p=p%3===2?p-2:p+1,s[p]!==e)break;if(p=f[p],p===-1){if(p=i[(a[e]+1)%i.length],p!==g&&Ro(n-u[p*2],2)+Ro(r-u[p*2+1],2)<h)return p;break}}while(p!==l);return c}render(e){let n=e==null?e=new be:void 0,{points:r,halfedges:o,triangles:i}=this;for(let a=0,f=o.length;a<f;++a){let s=o[a];if(s<a)continue;let u=i[a]*2,c=i[s]*2;e.moveTo(r[u],r[u+1]),e.lineTo(r[c],r[c+1])}return this.renderHull(e),n&&n.value()}renderPoints(e,n){n===void 0&&(!e||typeof e.moveTo!="function")&&(n=e,e=null),n=n==null?2:+n;let r=e==null?e=new be:void 0,{points:o}=this;for(let i=0,a=o.length;i<a;i+=2){let f=o[i],s=o[i+1];e.moveTo(f+n,s),e.arc(f,s,n,0,Rw)}return r&&r.value()}renderHull(e){let n=e==null?e=new be:void 0,{hull:r,points:o}=this,i=r[0]*2,a=r.length;e.moveTo(o[i],o[i+1]);for(let f=1;f<a;++f){let s=2*r[f];e.lineTo(o[s],o[s+1])}return e.closePath(),n&&n.value()}hullPolygon(){let e=new Wn;return this.renderHull(e),e.value()}renderTriangle(e,n){let r=n==null?n=new be:void 0,{points:o,triangles:i}=this,a=i[e*=3]*2,f=i[e+1]*2,s=i[e+2]*2;return n.moveTo(o[a],o[a+1]),n.lineTo(o[f],o[f+1]),n.lineTo(o[s],o[s+1]),n.closePath(),r&&r.value()}*trianglePolygons(){let{triangles:e}=this;for(let n=0,r=e.length/3;n<r;++n)yield this.trianglePolygon(n)}trianglePolygon(e){let n=new Wn;return this.renderTriangle(e,n),n.value()}};function qw(t,e,n,r){let o=t.length,i=new Float64Array(o*2);for(let a=0;a<o;++a){let f=t[a];i[a*2]=e.call(r,f,a,t),i[a*2+1]=n.call(r,f,a,t)}return i}function*Ow(t,e,n,r){let o=0;for(let i of t)yield e.call(r,i,o,t),yield n.call(r,i,o,t),++o}var Il={};pt(Il,{autoType:()=>Cl,csvFormat:()=>Q1,csvFormatBody:()=>j1,csvFormatRow:()=>J1,csvFormatRows:()=>K1,csvFormatValue:()=>tg,csvParse:()=>G1,csvParseRows:()=>Z1,dsvFormat:()=>Co,tsvFormat:()=>rg,tsvFormatBody:()=>og,tsvFormatRow:()=>ag,tsvFormatRows:()=>ig,tsvFormatValue:()=>fg,tsvParse:()=>eg,tsvParseRows:()=>ng});var X1={},kl={},Nl=34,Gi=10,Rl=13;function V1(t){return new Function("d","return {"+t.map(function(e,n){return JSON.stringify(e)+": d["+n+'] || ""'}).join(",")+"}")}function Fw(t,e){var n=V1(t);return function(r,o){return e(n(r),o,t)}}function W1(t){var e=Object.create(null),n=[];return t.forEach(function(r){for(var o in r)o in e||n.push(e[o]=o)}),n}function ue(t,e){var n=t+"",r=n.length;return r<e?new Array(e-r+1).join(0)+n:n}function zw(t){return t<0?"-"+ue(-t,6):t>9999?"+"+ue(t,6):ue(t,4)}function Lw(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),o=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":zw(t.getUTCFullYear(),4)+"-"+ue(t.getUTCMonth()+1,2)+"-"+ue(t.getUTCDate(),2)+(o?"T"+ue(e,2)+":"+ue(n,2)+":"+ue(r,2)+"."+ue(o,3)+"Z":r?"T"+ue(e,2)+":"+ue(n,2)+":"+ue(r,2)+"Z":n||e?"T"+ue(e,2)+":"+ue(n,2)+"Z":"")}function Co(t){var e=new RegExp('["'+t+`
\r]`),n=t.charCodeAt(0);function r(h,l){var p,g,d=o(h,function(m,x){if(p)return p(m,x-1);g=m,p=l?Fw(m,l):V1(m)});return d.columns=g||[],d}function o(h,l){var p=[],g=h.length,d=0,m=0,x,_=g<=0,y=!1;h.charCodeAt(g-1)===Gi&&--g,h.charCodeAt(g-1)===Rl&&--g;function b(){if(_)return kl;if(y)return y=!1,X1;var w,A=d,R;if(h.charCodeAt(A)===Nl){for(;d++<g&&h.charCodeAt(d)!==Nl||h.charCodeAt(++d)===Nl;);return(w=d)>=g?_=!0:(R=h.charCodeAt(d++))===Gi?y=!0:R===Rl&&(y=!0,h.charCodeAt(d)===Gi&&++d),h.slice(A+1,w-1).replace(/""/g,'"')}for(;d<g;){if((R=h.charCodeAt(w=d++))===Gi)y=!0;else if(R===Rl)y=!0,h.charCodeAt(d)===Gi&&++d;else if(R!==n)continue;return h.slice(A,w)}return _=!0,h.slice(A,g)}for(;(x=b())!==kl;){for(var v=[];x!==X1&&x!==kl;)v.push(x),x=b();l&&(v=l(v,m++))==null||p.push(v)}return p}function i(h,l){return h.map(function(p){return l.map(function(g){return c(p[g])}).join(t)})}function a(h,l){return l==null&&(l=W1(h)),[l.map(c).join(t)].concat(i(h,l)).join(`
`)}function f(h,l){return l==null&&(l=W1(h)),i(h,l).join(`
`)}function s(h){return h.map(u).join(`
`)}function u(h){return h.map(c).join(t)}function c(h){return h==null?"":h instanceof Date?Lw(h):e.test(h+="")?'"'+h.replace(/"/g,'""')+'"':h}return{parse:r,parseRows:o,format:a,formatBody:f,formatRows:s,formatRow:u,formatValue:c}}var Nr=Co(","),G1=Nr.parse,Z1=Nr.parseRows,Q1=Nr.format,j1=Nr.formatBody,K1=Nr.formatRows,J1=Nr.formatRow,tg=Nr.formatValue;var Rr=Co(" "),eg=Rr.parse,ng=Rr.parseRows,rg=Rr.format,og=Rr.formatBody,ig=Rr.formatRows,ag=Rr.formatRow,fg=Rr.formatValue;function Cl(t){for(var e in t){var n=t[e].trim(),r,o;if(!n)n=null;else if(n==="true")n=!0;else if(n==="false")n=!1;else if(n==="NaN")n=NaN;else if(!isNaN(r=+n))n=r;else if(o=n.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/))Yw&&o[4]&&!o[7]&&(n=n.replace(/-/g,"/").replace(/T/," ")),n=new Date(n);else continue;t[e]=n}return t}var Yw=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();var ql={};pt(ql,{forceCenter:()=>ug,forceCollide:()=>Eg,forceLink:()=>Ng,forceManyBody:()=>Dg,forceRadial:()=>qg,forceSimulation:()=>Pg,forceX:()=>Og,forceY:()=>Fg});function ug(t,e){var n,r=1;t==null&&(t=0),e==null&&(e=0);function o(){var i,a=n.length,f,s=0,u=0;for(i=0;i<a;++i)f=n[i],s+=f.x,u+=f.y;for(s=(s/a-t)*r,u=(u/a-e)*r,i=0;i<a;++i)f=n[i],f.x-=s,f.y-=u}return o.initialize=function(i){n=i},o.x=function(i){return arguments.length?(t=+i,o):t},o.y=function(i){return arguments.length?(e=+i,o):e},o.strength=function(i){return arguments.length?(r=+i,o):r},o}var Dl={};pt(Dl,{quadtree:()=>Vn});function sg(t){let e=+this._x.call(null,t),n=+this._y.call(null,t);return cg(this.cover(e,n),e,n,t)}function cg(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var o,i=t._root,a={data:r},f=t._x0,s=t._y0,u=t._x1,c=t._y1,h,l,p,g,d,m,x,_;if(!i)return t._root=a,t;for(;i.length;)if((d=e>=(h=(f+u)/2))?f=h:u=h,(m=n>=(l=(s+c)/2))?s=l:c=l,o=i,!(i=i[x=m<<1|d]))return o[x]=a,t;if(p=+t._x.call(null,i.data),g=+t._y.call(null,i.data),e===p&&n===g)return a.next=i,o?o[x]=a:t._root=a,t;do o=o?o[x]=new Array(4):t._root=new Array(4),(d=e>=(h=(f+u)/2))?f=h:u=h,(m=n>=(l=(s+c)/2))?s=l:c=l;while((x=m<<1|d)===(_=(g>=l)<<1|p>=h));return o[_]=i,o[x]=a,t}function lg(t){var e,n,r=t.length,o,i,a=new Array(r),f=new Array(r),s=1/0,u=1/0,c=-1/0,h=-1/0;for(n=0;n<r;++n)isNaN(o=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e))||(a[n]=o,f[n]=i,o<s&&(s=o),o>c&&(c=o),i<u&&(u=i),i>h&&(h=i));if(s>c||u>h)return this;for(this.cover(s,u).cover(c,h),n=0;n<r;++n)cg(this,a[n],f[n],t[n]);return this}function hg(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,o=this._x1,i=this._y1;if(isNaN(n))o=(n=Math.floor(t))+1,i=(r=Math.floor(e))+1;else{for(var a=o-n||1,f=this._root,s,u;n>t||t>=o||r>e||e>=i;)switch(u=(e<r)<<1|t<n,s=new Array(4),s[u]=f,f=s,a*=2,u){case 0:o=n+a,i=r+a;break;case 1:n=o-a,i=r+a;break;case 2:o=n+a,r=i-a;break;case 3:n=o-a,r=i-a;break}this._root&&this._root.length&&(this._root=f)}return this._x0=n,this._y0=r,this._x1=o,this._y1=i,this}function pg(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t}function mg(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]]}function zt(t,e,n,r,o){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=o}function dg(t,e,n){var r,o=this._x0,i=this._y0,a,f,s,u,c=this._x1,h=this._y1,l=[],p=this._root,g,d;for(p&&l.push(new zt(p,o,i,c,h)),n==null?n=1/0:(o=t-n,i=e-n,c=t+n,h=e+n,n*=n);g=l.pop();)if(!(!(p=g.node)||(a=g.x0)>c||(f=g.y0)>h||(s=g.x1)<o||(u=g.y1)<i))if(p.length){var m=(a+s)/2,x=(f+u)/2;l.push(new zt(p[3],m,x,s,u),new zt(p[2],a,x,m,u),new zt(p[1],m,f,s,x),new zt(p[0],a,f,m,x)),(d=(e>=x)<<1|t>=m)&&(g=l[l.length-1],l[l.length-1]=l[l.length-1-d],l[l.length-1-d]=g)}else{var _=t-+this._x.call(null,p.data),y=e-+this._y.call(null,p.data),b=_*_+y*y;if(b<n){var v=Math.sqrt(n=b);o=t-v,i=e-v,c=t+v,h=e+v,r=p.data}}return r}function gg(t){if(isNaN(c=+this._x.call(null,t))||isNaN(h=+this._y.call(null,t)))return this;var e,n=this._root,r,o,i,a=this._x0,f=this._y0,s=this._x1,u=this._y1,c,h,l,p,g,d,m,x;if(!n)return this;if(n.length)for(;;){if((g=c>=(l=(a+s)/2))?a=l:s=l,(d=h>=(p=(f+u)/2))?f=p:u=p,e=n,!(n=n[m=d<<1|g]))return this;if(!n.length)break;(e[m+1&3]||e[m+2&3]||e[m+3&3])&&(r=e,x=m)}for(;n.data!==t;)if(o=n,!(n=n.next))return this;return(i=n.next)&&delete n.next,o?(i?o.next=i:delete o.next,this):e?(i?e[m]=i:delete e[m],(n=e[0]||e[1]||e[2]||e[3])&&n===(e[3]||e[2]||e[1]||e[0])&&!n.length&&(r?r[x]=n:this._root=n),this):(this._root=i,this)}function xg(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this}function bg(){return this._root}function yg(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t}function _g(t){var e=[],n,r=this._root,o,i,a,f,s;for(r&&e.push(new zt(r,this._x0,this._y0,this._x1,this._y1));n=e.pop();)if(!t(r=n.node,i=n.x0,a=n.y0,f=n.x1,s=n.y1)&&r.length){var u=(i+f)/2,c=(a+s)/2;(o=r[3])&&e.push(new zt(o,u,c,f,s)),(o=r[2])&&e.push(new zt(o,i,c,u,s)),(o=r[1])&&e.push(new zt(o,u,a,f,c)),(o=r[0])&&e.push(new zt(o,i,a,u,c))}return this}function vg(t){var e=[],n=[],r;for(this._root&&e.push(new zt(this._root,this._x0,this._y0,this._x1,this._y1));r=e.pop();){var o=r.node;if(o.length){var i,a=r.x0,f=r.y0,s=r.x1,u=r.y1,c=(a+s)/2,h=(f+u)/2;(i=o[0])&&e.push(new zt(i,a,f,c,h)),(i=o[1])&&e.push(new zt(i,c,f,s,h)),(i=o[2])&&e.push(new zt(i,a,h,c,u)),(i=o[3])&&e.push(new zt(i,c,h,s,u))}n.push(r)}for(;r=n.pop();)t(r.node,r.x0,r.y0,r.x1,r.y1);return this}function wg(t){return t[0]}function Mg(t){return arguments.length?(this._x=t,this):this._x}function Sg(t){return t[1]}function Tg(t){return arguments.length?(this._y=t,this):this._y}function Vn(t,e,n){var r=new Pl(e??wg,n??Sg,NaN,NaN,NaN,NaN);return t==null?r:r.addAll(t)}function Pl(t,e,n,r,o,i){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=o,this._y1=i,this._root=void 0}function Ag(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var te=Vn.prototype=Pl.prototype;te.copy=function(){var t=new Pl(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root,n,r;if(!e)return t;if(!e.length)return t._root=Ag(e),t;for(n=[{source:e,target:t._root=new Array(4)}];e=n.pop();)for(var o=0;o<4;++o)(r=e.source[o])&&(r.length?n.push({source:r,target:e.target[o]=new Array(4)}):e.target[o]=Ag(r));return t};te.add=sg;te.addAll=lg;te.cover=hg;te.data=pg;te.extent=mg;te.find=dg;te.remove=gg;te.removeAll=xg;te.root=bg;te.size=yg;te.visit=_g;te.visitAfter=vg;te.x=Mg;te.y=Tg;function _t(t){return function(){return t}}function Ie(t){return(t()-.5)*1e-6}function Uw(t){return t.x+t.vx}function $w(t){return t.y+t.vy}function Eg(t){var e,n,r,o=1,i=1;typeof t!="function"&&(t=_t(t==null?1:+t));function a(){for(var u,c=e.length,h,l,p,g,d,m,x=0;x<i;++x)for(h=Vn(e,Uw,$w).visitAfter(f),u=0;u<c;++u)l=e[u],d=n[l.index],m=d*d,p=l.x+l.vx,g=l.y+l.vy,h.visit(_);function _(y,b,v,w,A){var R=y.data,N=y.r,E=d+N;if(R){if(R.index>l.index){var k=p-R.x-R.vx,I=g-R.y-R.vy,C=k*k+I*I;C<E*E&&(k===0&&(k=Ie(r),C+=k*k),I===0&&(I=Ie(r),C+=I*I),C=(E-(C=Math.sqrt(C)))/C*o,l.vx+=(k*=C)*(E=(N*=N)/(m+N)),l.vy+=(I*=C)*E,R.vx-=k*(E=1-E),R.vy-=I*E)}return}return b>p+E||w<p-E||v>g+E||A<g-E}}function f(u){if(u.data)return u.r=n[u.data.index];for(var c=u.r=0;c<4;++c)u[c]&&u[c].r>u.r&&(u.r=u[c].r)}function s(){if(e){var u,c=e.length,h;for(n=new Array(c),u=0;u<c;++u)h=e[u],n[h.index]=+t(h,u,e)}}return a.initialize=function(u,c){e=u,r=c,s()},a.iterations=function(u){return arguments.length?(i=+u,a):i},a.strength=function(u){return arguments.length?(o=+u,a):o},a.radius=function(u){return arguments.length?(t=typeof u=="function"?u:_t(+u),s(),a):t},a}function Bw(t){return t.index}function kg(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}function Ng(t){var e=Bw,n=h,r,o=_t(30),i,a,f,s,u,c=1;t==null&&(t=[]);function h(m){return 1/Math.min(f[m.source.index],f[m.target.index])}function l(m){for(var x=0,_=t.length;x<c;++x)for(var y=0,b,v,w,A,R,N,E;y<_;++y)b=t[y],v=b.source,w=b.target,A=w.x+w.vx-v.x-v.vx||Ie(u),R=w.y+w.vy-v.y-v.vy||Ie(u),N=Math.sqrt(A*A+R*R),N=(N-i[y])/N*m*r[y],A*=N,R*=N,w.vx-=A*(E=s[y]),w.vy-=R*E,v.vx+=A*(E=1-E),v.vy+=R*E}function p(){if(a){var m,x=a.length,_=t.length,y=new Map(a.map((v,w)=>[e(v,w,a),v])),b;for(m=0,f=new Array(x);m<_;++m)b=t[m],b.index=m,typeof b.source!="object"&&(b.source=kg(y,b.source)),typeof b.target!="object"&&(b.target=kg(y,b.target)),f[b.source.index]=(f[b.source.index]||0)+1,f[b.target.index]=(f[b.target.index]||0)+1;for(m=0,s=new Array(_);m<_;++m)b=t[m],s[m]=f[b.source.index]/(f[b.source.index]+f[b.target.index]);r=new Array(_),g(),i=new Array(_),d()}}function g(){if(a)for(var m=0,x=t.length;m<x;++m)r[m]=+n(t[m],m,t)}function d(){if(a)for(var m=0,x=t.length;m<x;++m)i[m]=+o(t[m],m,t)}return l.initialize=function(m,x){a=m,u=x,p()},l.links=function(m){return arguments.length?(t=m,p(),l):t},l.id=function(m){return arguments.length?(e=m,l):e},l.iterations=function(m){return arguments.length?(c=+m,l):c},l.strength=function(m){return arguments.length?(n=typeof m=="function"?m:_t(+m),g(),l):n},l.distance=function(m){return arguments.length?(o=typeof m=="function"?m:_t(+m),d(),l):o},l}function Rg(){let t=1;return()=>(t=(1664525*t+1013904223)%4294967296)/4294967296}function Cg(t){return t.x}function Ig(t){return t.y}var Hw=10,Xw=Math.PI*(3-Math.sqrt(5));function Pg(t){var e,n=1,r=.001,o=1-Math.pow(r,1/300),i=0,a=.6,f=new Map,s=wr(h),u=ge("tick","end"),c=Rg();t==null&&(t=[]);function h(){l(),u.call("tick",e),n<r&&(s.stop(),u.call("end",e))}function l(d){var m,x=t.length,_;d===void 0&&(d=1);for(var y=0;y<d;++y)for(n+=(i-n)*o,f.forEach(function(b){b(n)}),m=0;m<x;++m)_=t[m],_.fx==null?_.x+=_.vx*=a:(_.x=_.fx,_.vx=0),_.fy==null?_.y+=_.vy*=a:(_.y=_.fy,_.vy=0);return e}function p(){for(var d=0,m=t.length,x;d<m;++d){if(x=t[d],x.index=d,x.fx!=null&&(x.x=x.fx),x.fy!=null&&(x.y=x.fy),isNaN(x.x)||isNaN(x.y)){var _=Hw*Math.sqrt(.5+d),y=d*Xw;x.x=_*Math.cos(y),x.y=_*Math.sin(y)}(isNaN(x.vx)||isNaN(x.vy))&&(x.vx=x.vy=0)}}function g(d){return d.initialize&&d.initialize(t,c),d}return p(),e={tick:l,restart:function(){return s.restart(h),e},stop:function(){return s.stop(),e},nodes:function(d){return arguments.length?(t=d,p(),f.forEach(g),e):t},alpha:function(d){return arguments.length?(n=+d,e):n},alphaMin:function(d){return arguments.length?(r=+d,e):r},alphaDecay:function(d){return arguments.length?(o=+d,e):+o},alphaTarget:function(d){return arguments.length?(i=+d,e):i},velocityDecay:function(d){return arguments.length?(a=1-d,e):1-a},randomSource:function(d){return arguments.length?(c=d,f.forEach(g),e):c},force:function(d,m){return arguments.length>1?(m==null?f.delete(d):f.set(d,g(m)),e):f.get(d)},find:function(d,m,x){var _=0,y=t.length,b,v,w,A,R;for(x==null?x=1/0:x*=x,_=0;_<y;++_)A=t[_],b=d-A.x,v=m-A.y,w=b*b+v*v,w<x&&(R=A,x=w);return R},on:function(d,m){return arguments.length>1?(u.on(d,m),e):u.on(d)}}}function Dg(){var t,e,n,r,o=_t(-30),i,a=1,f=1/0,s=.81;function u(p){var g,d=t.length,m=Vn(t,Cg,Ig).visitAfter(h);for(r=p,g=0;g<d;++g)e=t[g],m.visit(l)}function c(){if(t){var p,g=t.length,d;for(i=new Array(g),p=0;p<g;++p)d=t[p],i[d.index]=+o(d,p,t)}}function h(p){var g=0,d,m,x=0,_,y,b;if(p.length){for(_=y=b=0;b<4;++b)(d=p[b])&&(m=Math.abs(d.value))&&(g+=d.value,x+=m,_+=m*d.x,y+=m*d.y);p.x=_/x,p.y=y/x}else{d=p,d.x=d.data.x,d.y=d.data.y;do g+=i[d.data.index];while(d=d.next)}p.value=g}function l(p,g,d,m){if(!p.value)return!0;var x=p.x-e.x,_=p.y-e.y,y=m-g,b=x*x+_*_;if(y*y/s<b)return b<f&&(x===0&&(x=Ie(n),b+=x*x),_===0&&(_=Ie(n),b+=_*_),b<a&&(b=Math.sqrt(a*b)),e.vx+=x*p.value*r/b,e.vy+=_*p.value*r/b),!0;if(p.length||b>=f)return;(p.data!==e||p.next)&&(x===0&&(x=Ie(n),b+=x*x),_===0&&(_=Ie(n),b+=_*_),b<a&&(b=Math.sqrt(a*b)));do p.data!==e&&(y=i[p.data.index]*r/b,e.vx+=x*y,e.vy+=_*y);while(p=p.next)}return u.initialize=function(p,g){t=p,n=g,c()},u.strength=function(p){return arguments.length?(o=typeof p=="function"?p:_t(+p),c(),u):o},u.distanceMin=function(p){return arguments.length?(a=p*p,u):Math.sqrt(a)},u.distanceMax=function(p){return arguments.length?(f=p*p,u):Math.sqrt(f)},u.theta=function(p){return arguments.length?(s=p*p,u):Math.sqrt(s)},u}function qg(t,e,n){var r,o=_t(.1),i,a;typeof t!="function"&&(t=_t(+t)),e==null&&(e=0),n==null&&(n=0);function f(u){for(var c=0,h=r.length;c<h;++c){var l=r[c],p=l.x-e||1e-6,g=l.y-n||1e-6,d=Math.sqrt(p*p+g*g),m=(a[c]-d)*i[c]*u/d;l.vx+=p*m,l.vy+=g*m}}function s(){if(r){var u,c=r.length;for(i=new Array(c),a=new Array(c),u=0;u<c;++u)a[u]=+t(r[u],u,r),i[u]=isNaN(a[u])?0:+o(r[u],u,r)}}return f.initialize=function(u){r=u,s()},f.strength=function(u){return arguments.length?(o=typeof u=="function"?u:_t(+u),s(),f):o},f.radius=function(u){return arguments.length?(t=typeof u=="function"?u:_t(+u),s(),f):t},f.x=function(u){return arguments.length?(e=+u,f):e},f.y=function(u){return arguments.length?(n=+u,f):n},f}function Og(t){var e=_t(.1),n,r,o;typeof t!="function"&&(t=_t(t==null?0:+t));function i(f){for(var s=0,u=n.length,c;s<u;++s)c=n[s],c.vx+=(o[s]-c.x)*r[s]*f}function a(){if(n){var f,s=n.length;for(r=new Array(s),o=new Array(s),f=0;f<s;++f)r[f]=isNaN(o[f]=+t(n[f],f,n))?0:+e(n[f],f,n)}}return i.initialize=function(f){n=f,a()},i.strength=function(f){return arguments.length?(e=typeof f=="function"?f:_t(+f),a(),i):e},i.x=function(f){return arguments.length?(t=typeof f=="function"?f:_t(+f),a(),i):t},i}function Fg(t){var e=_t(.1),n,r,o;typeof t!="function"&&(t=_t(t==null?0:+t));function i(f){for(var s=0,u=n.length,c;s<u;++s)c=n[s],c.vy+=(o[s]-c.y)*r[s]*f}function a(){if(n){var f,s=n.length;for(r=new Array(s),o=new Array(s),f=0;f<s;++f)r[f]=isNaN(o[f]=+t(n[f],f,n))?0:+e(n[f],f,n)}}return i.initialize=function(f){n=f,a()},i.strength=function(f){return arguments.length?(e=typeof f=="function"?f:_t(+f),a(),i):e},i.y=function(f){return arguments.length?(t=typeof f=="function"?f:_t(+f),a(),i):t},i}var Ll={};pt(Ll,{FormatSpecifier:()=>Zi,format:()=>Ir,formatDefaultLocale:()=>Bf,formatLocale:()=>Uf,formatPrefix:()=>ji,formatSpecifier:()=>Pe,precisionFixed:()=>Hf,precisionPrefix:()=>Xf,precisionRound:()=>Wf});function zg(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Cr(t,e){if(!isFinite(t)||t===0)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Ze(t){return t=Cr(Math.abs(t)),t?t[1]:NaN}function Lg(t,e){return function(n,r){for(var o=n.length,i=[],a=0,f=t[0],s=0;o>0&&f>0&&(s+f+1>r&&(f=Math.max(1,r-s)),i.push(n.substring(o-=f,o+f)),!((s+=f+1)>r));)f=t[a=(a+1)%t.length];return i.reverse().join(e)}}function Yg(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var Ww=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pe(t){if(!(e=Ww.exec(t)))throw new Error("invalid format: "+t);var e;return new Zi({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Pe.prototype=Zi.prototype;function Zi(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Zi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Ug(t){t:for(var e=t.length,n=1,r=-1,o;n<e;++n)switch(t[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+t[n])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(o+1):t}var Qi;function $g(t,e){var n=Cr(t,e);if(!n)return Qi=void 0,t.toPrecision(e);var r=n[0],o=n[1],i=o-(Qi=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Cr(t,Math.max(0,e+i-1))[0]}function Ol(t,e){var n=Cr(t,e);if(!n)return t+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}var Fl={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:zg,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Ol(t*100,e),r:Ol,s:$g,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function zl(t){return t}var Bg=Array.prototype.map,Hg=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Uf(t){var e=t.grouping===void 0||t.thousands===void 0?zl:Lg(Bg.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",o=t.decimal===void 0?".":t.decimal+"",i=t.numerals===void 0?zl:Yg(Bg.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",f=t.minus===void 0?"\u2212":t.minus+"",s=t.nan===void 0?"NaN":t.nan+"";function u(h,l){h=Pe(h);var p=h.fill,g=h.align,d=h.sign,m=h.symbol,x=h.zero,_=h.width,y=h.comma,b=h.precision,v=h.trim,w=h.type;w==="n"?(y=!0,w="g"):Fl[w]||(b===void 0&&(b=12),v=!0,w="g"),(x||p==="0"&&g==="=")&&(x=!0,p="0",g="=");var A=(l&&l.prefix!==void 0?l.prefix:"")+(m==="$"?n:m==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():""),R=(m==="$"?r:/[%p]/.test(w)?a:"")+(l&&l.suffix!==void 0?l.suffix:""),N=Fl[w],E=/[defgprs%]/.test(w);b=b===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function k(I){var C=A,M=R,S,T,P;if(w==="c")M=N(I)+M,I="";else{I=+I;var O=I<0||1/I<0;if(I=isNaN(I)?s:N(Math.abs(I),b),v&&(I=Ug(I)),O&&+I==0&&d!=="+"&&(O=!1),C=(O?d==="("?d:f:d==="-"||d==="("?"":d)+C,M=(w==="s"&&!isNaN(I)&&Qi!==void 0?Hg[8+Qi/3]:"")+M+(O&&d==="("?")":""),E){for(S=-1,T=I.length;++S<T;)if(P=I.charCodeAt(S),48>P||P>57){M=(P===46?o+I.slice(S+1):I.slice(S))+M,I=I.slice(0,S);break}}}y&&!x&&(I=e(I,1/0));var q=C.length+I.length+M.length,L=q<_?new Array(_-q+1).join(p):"";switch(y&&x&&(I=e(L+I,L.length?_-M.length:1/0),L=""),g){case"<":I=C+I+M+L;break;case"=":I=C+L+I+M;break;case"^":I=L.slice(0,q=L.length>>1)+C+I+M+L.slice(q);break;default:I=L+C+I+M;break}return i(I)}return k.toString=function(){return h+""},k}function c(h,l){var p=Math.max(-8,Math.min(8,Math.floor(Ze(l)/3)))*3,g=Math.pow(10,-p),d=u((h=Pe(h),h.type="f",h),{suffix:Hg[8+p/3]});return function(m){return d(g*m)}}return{format:u,formatPrefix:c}}var $f,Ir,ji;Bf({thousands:",",grouping:[3],currency:["$",""]});function Bf(t){return $f=Uf(t),Ir=$f.format,ji=$f.formatPrefix,$f}function Hf(t){return Math.max(0,-Ze(Math.abs(t)))}function Xf(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ze(e)/3)))*3-Ze(Math.abs(t)))}function Wf(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ze(e)-Ze(t))+1}var wh={};pt(wh,{geoAlbers:()=>Eu,geoAlbersUsa:()=>j2,geoArea:()=>jg,geoAzimuthalEqualArea:()=>K2,geoAzimuthalEqualAreaRaw:()=>Nu,geoAzimuthalEquidistant:()=>J2,geoAzimuthalEquidistantRaw:()=>Ru,geoBounds:()=>i2,geoCentroid:()=>l2,geoCircle:()=>g2,geoClipAntimeridian:()=>fa,geoClipCircle:()=>pu,geoClipExtent:()=>y2,geoClipRectangle:()=>Tn,geoConicConformal:()=>ex,geoConicConformalRaw:()=>_h,geoConicEqualArea:()=>Yr,geoConicEqualAreaRaw:()=>bh,geoConicEquidistant:()=>rx,geoConicEquidistantRaw:()=>vh,geoContains:()=>A2,geoDistance:()=>Fo,geoEqualEarth:()=>ox,geoEqualEarthRaw:()=>Pu,geoEquirectangular:()=>nx,geoEquirectangularRaw:()=>$r,geoGnomonic:()=>ix,geoGnomonicRaw:()=>Du,geoGraticule:()=>yu,geoGraticule10:()=>N2,geoIdentity:()=>ax,geoInterpolate:()=>R2,geoLength:()=>xu,geoMercator:()=>tx,geoMercatorRaw:()=>Ur,geoNaturalEarth1:()=>fx,geoNaturalEarth1Raw:()=>qu,geoOrthographic:()=>ux,geoOrthographicRaw:()=>Ou,geoPath:()=>W2,geoProjection:()=>Rt,geoProjectionMutator:()=>ma,geoRotation:()=>fu,geoStereographic:()=>sx,geoStereographicRaw:()=>Fu,geoStream:()=>Lt,geoTransform:()=>V2,geoTransverseMercator:()=>cx,geoTransverseMercatorRaw:()=>zu});var B=1e-6,vn=1e-12,j=Math.PI,gt=j/2,Io=j/4,Nt=j*2,rt=180/j,H=j/180,G=Math.abs,ye=Math.atan,xt=Math.atan2,Y=Math.cos,Ki=Math.ceil,Vf=Math.exp;var Gf=Math.hypot,Pr=Math.log,Zf=Math.pow,z=Math.sin,Zt=Math.sign||function(t){return t>0?1:t<0?-1:0},ft=Math.sqrt,Po=Math.tan;function Qf(t){return t>1?0:t<-1?j:Math.acos(t)}function bt(t){return t>1?gt:t<-1?-gt:Math.asin(t)}function Yl(t){return(t=z(t/2))*t}function st(){}function jf(t,e){t&&Wg.hasOwnProperty(t.type)&&Wg[t.type](t,e)}var Xg={Feature:function(t,e){jf(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,o=n.length;++r<o;)jf(n[r].geometry,e)}},Wg={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){Ul(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)Ul(n[r],e,0)},Polygon:function(t,e){Vg(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)Vg(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,o=n.length;++r<o;)jf(n[r],e)}};function Ul(t,e,n){var r=-1,o=t.length-n,i;for(e.lineStart();++r<o;)i=t[r],e.point(i[0],i[1],i[2]);e.lineEnd()}function Vg(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)Ul(t[n],e,1);e.polygonEnd()}function Lt(t,e){t&&Xg.hasOwnProperty(t.type)?Xg[t.type](t,e):jf(t,e)}var Ji=new mt,Kf=new mt,Gg,Zg,$l,Bl,Hl,De={point:st,lineStart:st,lineEnd:st,polygonStart:function(){Ji=new mt,De.lineStart=Vw,De.lineEnd=Gw},polygonEnd:function(){var t=+Ji;Kf.add(t<0?Nt+t:t),this.lineStart=this.lineEnd=this.point=st},sphere:function(){Kf.add(Nt)}};function Vw(){De.point=Zw}function Gw(){Qg(Gg,Zg)}function Zw(t,e){De.point=Qg,Gg=t,Zg=e,t*=H,e*=H,$l=t,Bl=Y(e=e/2+Io),Hl=z(e)}function Qg(t,e){t*=H,e*=H,e=e/2+Io;var n=t-$l,r=n>=0?1:-1,o=r*n,i=Y(e),a=z(e),f=Hl*a,s=Bl*i+f*Y(o),u=f*r*z(o);Ji.add(xt(u,s)),$l=t,Bl=i,Hl=a}function jg(t){return Kf=new mt,Lt(t,De),Kf*2}function Dr(t){return[xt(t[1],t[0]),bt(t[2])]}function _e(t){var e=t[0],n=t[1],r=Y(n);return[r*Y(e),r*z(e),z(n)]}function ta(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function wn(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Jf(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function ea(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function qr(t){var e=ft(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var Mt,se,Et,pe,Or,e2,n2,Do,na,Gn,Sn,Mn={point:Xl,lineStart:Kg,lineEnd:Jg,polygonStart:function(){Mn.point=o2,Mn.lineStart=Qw,Mn.lineEnd=jw,na=new mt,De.polygonStart()},polygonEnd:function(){De.polygonEnd(),Mn.point=Xl,Mn.lineStart=Kg,Mn.lineEnd=Jg,Ji<0?(Mt=-(Et=180),se=-(pe=90)):na>B?pe=90:na<-B&&(se=-90),Sn[0]=Mt,Sn[1]=Et},sphere:function(){Mt=-(Et=180),se=-(pe=90)}};function Xl(t,e){Gn.push(Sn=[Mt=t,Et=t]),e<se&&(se=e),e>pe&&(pe=e)}function r2(t,e){var n=_e([t*H,e*H]);if(Do){var r=wn(Do,n),o=[r[1],-r[0],0],i=wn(o,r);qr(i),i=Dr(i);var a=t-Or,f=a>0?1:-1,s=i[0]*rt*f,u,c=G(a)>180;c^(f*Or<s&&s<f*t)?(u=i[1]*rt,u>pe&&(pe=u)):(s=(s+360)%360-180,c^(f*Or<s&&s<f*t)?(u=-i[1]*rt,u<se&&(se=u)):(e<se&&(se=e),e>pe&&(pe=e))),c?t<Or?he(Mt,t)>he(Mt,Et)&&(Et=t):he(t,Et)>he(Mt,Et)&&(Mt=t):Et>=Mt?(t<Mt&&(Mt=t),t>Et&&(Et=t)):t>Or?he(Mt,t)>he(Mt,Et)&&(Et=t):he(t,Et)>he(Mt,Et)&&(Mt=t)}else Gn.push(Sn=[Mt=t,Et=t]);e<se&&(se=e),e>pe&&(pe=e),Do=n,Or=t}function Kg(){Mn.point=r2}function Jg(){Sn[0]=Mt,Sn[1]=Et,Mn.point=Xl,Do=null}function o2(t,e){if(Do){var n=t-Or;na.add(G(n)>180?n+(n>0?360:-360):n)}else e2=t,n2=e;De.point(t,e),r2(t,e)}function Qw(){De.lineStart()}function jw(){o2(e2,n2),De.lineEnd(),G(na)>B&&(Mt=-(Et=180)),Sn[0]=Mt,Sn[1]=Et,Do=null}function he(t,e){return(e-=t)<0?e+360:e}function Kw(t,e){return t[0]-e[0]}function t2(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function i2(t){var e,n,r,o,i,a,f;if(pe=Et=-(Mt=se=1/0),Gn=[],Lt(t,Mn),n=Gn.length){for(Gn.sort(Kw),e=1,r=Gn[0],i=[r];e<n;++e)o=Gn[e],t2(r,o[0])||t2(r,o[1])?(he(r[0],o[1])>he(r[0],r[1])&&(r[1]=o[1]),he(o[0],r[1])>he(r[0],r[1])&&(r[0]=o[0])):i.push(r=o);for(a=-1/0,n=i.length-1,e=0,r=i[n];e<=n;r=o,++e)o=i[e],(f=he(r[1],o[0]))>a&&(a=f,Mt=o[0],Et=r[1])}return Gn=Sn=null,Mt===1/0||se===1/0?[[NaN,NaN],[NaN,NaN]]:[[Mt,se],[Et,pe]]}var ra,tu,eu,nu,ru,ou,iu,au,Wl,Vl,Gl,u2,s2,ee,ne,re,qe={sphere:st,point:Zl,lineStart:a2,lineEnd:f2,polygonStart:function(){qe.lineStart=e4,qe.lineEnd=n4},polygonEnd:function(){qe.lineStart=a2,qe.lineEnd=f2}};function Zl(t,e){t*=H,e*=H;var n=Y(e);oa(n*Y(t),n*z(t),z(e))}function oa(t,e,n){++ra,eu+=(t-eu)/ra,nu+=(e-nu)/ra,ru+=(n-ru)/ra}function a2(){qe.point=Jw}function Jw(t,e){t*=H,e*=H;var n=Y(e);ee=n*Y(t),ne=n*z(t),re=z(e),qe.point=t4,oa(ee,ne,re)}function t4(t,e){t*=H,e*=H;var n=Y(e),r=n*Y(t),o=n*z(t),i=z(e),a=xt(ft((a=ne*i-re*o)*a+(a=re*r-ee*i)*a+(a=ee*o-ne*r)*a),ee*r+ne*o+re*i);tu+=a,ou+=a*(ee+(ee=r)),iu+=a*(ne+(ne=o)),au+=a*(re+(re=i)),oa(ee,ne,re)}function f2(){qe.point=Zl}function e4(){qe.point=r4}function n4(){c2(u2,s2),qe.point=Zl}function r4(t,e){u2=t,s2=e,t*=H,e*=H,qe.point=c2;var n=Y(e);ee=n*Y(t),ne=n*z(t),re=z(e),oa(ee,ne,re)}function c2(t,e){t*=H,e*=H;var n=Y(e),r=n*Y(t),o=n*z(t),i=z(e),a=ne*i-re*o,f=re*r-ee*i,s=ee*o-ne*r,u=Gf(a,f,s),c=bt(u),h=u&&-c/u;Wl.add(h*a),Vl.add(h*f),Gl.add(h*s),tu+=c,ou+=c*(ee+(ee=r)),iu+=c*(ne+(ne=o)),au+=c*(re+(re=i)),oa(ee,ne,re)}function l2(t){ra=tu=eu=nu=ru=ou=iu=au=0,Wl=new mt,Vl=new mt,Gl=new mt,Lt(t,qe);var e=+Wl,n=+Vl,r=+Gl,o=Gf(e,n,r);return o<vn&&(e=ou,n=iu,r=au,tu<B&&(e=eu,n=nu,r=ru),o=Gf(e,n,r),o<vn)?[NaN,NaN]:[xt(n,e)*rt,bt(r/o)*rt]}function Fr(t){return function(){return t}}function ia(t,e){function n(r,o){return r=t(r,o),e(r[0],r[1])}return t.invert&&e.invert&&(n.invert=function(r,o){return r=e.invert(r,o),r&&t.invert(r[0],r[1])}),n}function Ql(t,e){return G(t)>j&&(t-=Math.round(t/Nt)*Nt),[t,e]}Ql.invert=Ql;function aa(t,e,n){return(t%=Nt)?e||n?ia(p2(t),m2(e,n)):p2(t):e||n?m2(e,n):Ql}function h2(t){return function(e,n){return e+=t,G(e)>j&&(e-=Math.round(e/Nt)*Nt),[e,n]}}function p2(t){var e=h2(t);return e.invert=h2(-t),e}function m2(t,e){var n=Y(t),r=z(t),o=Y(e),i=z(e);function a(f,s){var u=Y(s),c=Y(f)*u,h=z(f)*u,l=z(s),p=l*n+c*r;return[xt(h*o-p*i,c*n-l*r),bt(p*o+h*i)]}return a.invert=function(f,s){var u=Y(s),c=Y(f)*u,h=z(f)*u,l=z(s),p=l*o-h*i;return[xt(h*o+l*i,c*n+p*r),bt(p*n-c*r)]},a}function fu(t){t=aa(t[0]*H,t[1]*H,t.length>2?t[2]*H:0);function e(n){return n=t(n[0]*H,n[1]*H),n[0]*=rt,n[1]*=rt,n}return e.invert=function(n){return n=t.invert(n[0]*H,n[1]*H),n[0]*=rt,n[1]*=rt,n},e}function jl(t,e,n,r,o,i){if(n){var a=Y(e),f=z(e),s=r*n;o==null?(o=e+r*Nt,i=e-s/2):(o=d2(a,o),i=d2(a,i),(r>0?o<i:o>i)&&(o+=r*Nt));for(var u,c=o;r>0?c>i:c<i;c-=s)u=Dr([a,-f*Y(c),-f*z(c)]),t.point(u[0],u[1])}}function d2(t,e){e=_e(e),e[0]-=t,qr(e);var n=Qf(-e[1]);return((-e[2]<0?-n:n)+Nt-B)%Nt}function g2(){var t=Fr([0,0]),e=Fr(90),n=Fr(2),r,o,i={point:a};function a(s,u){r.push(s=o(s,u)),s[0]*=rt,s[1]*=rt}function f(){var s=t.apply(this,arguments),u=e.apply(this,arguments)*H,c=n.apply(this,arguments)*H;return r=[],o=aa(-s[0]*H,-s[1]*H,0).invert,jl(i,u,c,1),s={type:"Polygon",coordinates:[r]},r=o=null,s}return f.center=function(s){return arguments.length?(t=typeof s=="function"?s:Fr([+s[0],+s[1]]),f):t},f.radius=function(s){return arguments.length?(e=typeof s=="function"?s:Fr(+s),f):e},f.precision=function(s){return arguments.length?(n=typeof s=="function"?s:Fr(+s),f):n},f}function uu(){var t=[],e;return{point:function(n,r,o){e.push([n,r,o])},lineStart:function(){t.push(e=[])},lineEnd:st,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function qo(t,e){return G(t[0]-e[0])<B&&G(t[1]-e[1])<B}function su(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function cu(t,e,n,r,o){var i=[],a=[],f,s;if(t.forEach(function(g){if(!((d=g.length-1)<=0)){var d,m=g[0],x=g[d],_;if(qo(m,x)){if(!m[2]&&!x[2]){for(o.lineStart(),f=0;f<d;++f)o.point((m=g[f])[0],m[1]);o.lineEnd();return}x[0]+=2*B}i.push(_=new su(m,g,null,!0)),a.push(_.o=new su(m,null,_,!1)),i.push(_=new su(x,g,null,!1)),a.push(_.o=new su(x,null,_,!0))}}),!!i.length){for(a.sort(e),x2(i),x2(a),f=0,s=a.length;f<s;++f)a[f].e=n=!n;for(var u=i[0],c,h;;){for(var l=u,p=!0;l.v;)if((l=l.n)===u)return;c=l.z,o.lineStart();do{if(l.v=l.o.v=!0,l.e){if(p)for(f=0,s=c.length;f<s;++f)o.point((h=c[f])[0],h[1]);else r(l.x,l.n.x,1,o);l=l.n}else{if(p)for(c=l.p.z,f=c.length-1;f>=0;--f)o.point((h=c[f])[0],h[1]);else r(l.x,l.p.x,-1,o);l=l.p}l=l.o,c=l.z,p=!p}while(!l.v);o.lineEnd()}}}function x2(t){if(e=t.length){for(var e,n=0,r=t[0],o;++n<e;)r.n=o=t[n],o.p=r,r=o;r.n=o=t[0],o.p=r}}function Kl(t){return G(t[0])<=j?t[0]:Zt(t[0])*((G(t[0])+j)%Nt-j)}function lu(t,e){var n=Kl(e),r=e[1],o=z(r),i=[z(n),-Y(n),0],a=0,f=0,s=new mt;o===1?r=gt+B:o===-1&&(r=-gt-B);for(var u=0,c=t.length;u<c;++u)if(l=(h=t[u]).length)for(var h,l,p=h[l-1],g=Kl(p),d=p[1]/2+Io,m=z(d),x=Y(d),_=0;_<l;++_,g=b,m=w,x=A,p=y){var y=h[_],b=Kl(y),v=y[1]/2+Io,w=z(v),A=Y(v),R=b-g,N=R>=0?1:-1,E=N*R,k=E>j,I=m*w;if(s.add(xt(I*N*z(E),x*A+I*Y(E))),a+=k?R+N*Nt:R,k^g>=n^b>=n){var C=wn(_e(p),_e(y));qr(C);var M=wn(i,C);qr(M);var S=(k^R>=0?-1:1)*bt(M[2]);(r>S||r===S&&(C[0]||C[1]))&&(f+=k^R>=0?1:-1)}}return(a<-B||a<B&&s<-vn)^f&1}function hu(t,e,n,r){return function(o){var i=e(o),a=uu(),f=e(a),s=!1,u,c,h,l={point:p,lineStart:d,lineEnd:m,polygonStart:function(){l.point=x,l.lineStart=_,l.lineEnd=y,c=[],u=[]},polygonEnd:function(){l.point=p,l.lineStart=d,l.lineEnd=m,c=hr(c);var b=lu(u,r);c.length?(s||(o.polygonStart(),s=!0),cu(c,i4,b,n,o)):b&&(s||(o.polygonStart(),s=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),s&&(o.polygonEnd(),s=!1),c=u=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function p(b,v){t(b,v)&&o.point(b,v)}function g(b,v){i.point(b,v)}function d(){l.point=g,i.lineStart()}function m(){l.point=p,i.lineEnd()}function x(b,v){h.push([b,v]),f.point(b,v)}function _(){f.lineStart(),h=[]}function y(){x(h[0][0],h[0][1]),f.lineEnd();var b=f.clean(),v=a.result(),w,A=v.length,R,N,E;if(h.pop(),u.push(h),h=null,!!A){if(b&1){if(N=v[0],(R=N.length-1)>0){for(s||(o.polygonStart(),s=!0),o.lineStart(),w=0;w<R;++w)o.point((E=N[w])[0],E[1]);o.lineEnd()}return}A>1&&b&2&&v.push(v.pop().concat(v.shift())),c.push(v.filter(o4))}}return l}}function o4(t){return t.length>1}function i4(t,e){return((t=t.x)[0]<0?t[1]-gt-B:gt-t[1])-((e=e.x)[0]<0?e[1]-gt-B:gt-e[1])}var fa=hu(function(){return!0},a4,u4,[-j,-gt]);function a4(t){var e=NaN,n=NaN,r=NaN,o;return{lineStart:function(){t.lineStart(),o=1},point:function(i,a){var f=i>0?j:-j,s=G(i-e);G(s-j)<B?(t.point(e,n=(n+a)/2>0?gt:-gt),t.point(r,n),t.lineEnd(),t.lineStart(),t.point(f,n),t.point(i,n),o=0):r!==f&&s>=j&&(G(e-r)<B&&(e-=r*B),G(i-f)<B&&(i-=f*B),n=f4(e,n,i,a),t.point(r,n),t.lineEnd(),t.lineStart(),t.point(f,n),o=0),t.point(e=i,n=a),r=f},lineEnd:function(){t.lineEnd(),e=n=NaN},clean:function(){return 2-o}}}function f4(t,e,n,r){var o,i,a=z(t-n);return G(a)>B?ye((z(e)*(i=Y(r))*z(n)-z(r)*(o=Y(e))*z(t))/(o*i*a)):(e+r)/2}function u4(t,e,n,r){var o;if(t==null)o=n*gt,r.point(-j,o),r.point(0,o),r.point(j,o),r.point(j,0),r.point(j,-o),r.point(0,-o),r.point(-j,-o),r.point(-j,0),r.point(-j,o);else if(G(t[0]-e[0])>B){var i=t[0]<e[0]?j:-j;o=n*i/2,r.point(-i,o),r.point(0,o),r.point(i,o)}else r.point(e[0],e[1])}function pu(t){var e=Y(t),n=2*H,r=e>0,o=G(e)>B;function i(c,h,l,p){jl(p,t,n,l,c,h)}function a(c,h){return Y(c)*Y(h)>e}function f(c){var h,l,p,g,d;return{lineStart:function(){g=p=!1,d=1},point:function(m,x){var _=[m,x],y,b=a(m,x),v=r?b?0:u(m,x):b?u(m+(m<0?j:-j),x):0;if(!h&&(g=p=b)&&c.lineStart(),b!==p&&(y=s(h,_),(!y||qo(h,y)||qo(_,y))&&(_[2]=1)),b!==p)d=0,b?(c.lineStart(),y=s(_,h),c.point(y[0],y[1])):(y=s(h,_),c.point(y[0],y[1],2),c.lineEnd()),h=y;else if(o&&h&&r^b){var w;!(v&l)&&(w=s(_,h,!0))&&(d=0,r?(c.lineStart(),c.point(w[0][0],w[0][1]),c.point(w[1][0],w[1][1]),c.lineEnd()):(c.point(w[1][0],w[1][1]),c.lineEnd(),c.lineStart(),c.point(w[0][0],w[0][1],3)))}b&&(!h||!qo(h,_))&&c.point(_[0],_[1]),h=_,p=b,l=v},lineEnd:function(){p&&c.lineEnd(),h=null},clean:function(){return d|(g&&p)<<1}}}function s(c,h,l){var p=_e(c),g=_e(h),d=[1,0,0],m=wn(p,g),x=ta(m,m),_=m[0],y=x-_*_;if(!y)return!l&&c;var b=e*x/y,v=-e*_/y,w=wn(d,m),A=ea(d,b),R=ea(m,v);Jf(A,R);var N=w,E=ta(A,N),k=ta(N,N),I=E*E-k*(ta(A,A)-1);if(!(I<0)){var C=ft(I),M=ea(N,(-E-C)/k);if(Jf(M,A),M=Dr(M),!l)return M;var S=c[0],T=h[0],P=c[1],O=h[1],q;T<S&&(q=S,S=T,T=q);var L=T-S,X=G(L-j)<B,W=X||L<B;if(!X&&O<P&&(q=P,P=O,O=q),W?X?P+O>0^M[1]<(G(M[0]-S)<B?P:O):P<=M[1]&&M[1]<=O:L>j^(S<=M[0]&&M[0]<=T)){var lt=ea(N,(-E+C)/k);return Jf(lt,A),[M,Dr(lt)]}}}function u(c,h){var l=r?t:j-t,p=0;return c<-l?p|=1:c>l&&(p|=2),h<-l?p|=4:h>l&&(p|=8),p}return hu(a,f,i,r?[0,-t]:[-j,t-j])}function b2(t,e,n,r,o,i){var a=t[0],f=t[1],s=e[0],u=e[1],c=0,h=1,l=s-a,p=u-f,g;if(g=n-a,!(!l&&g>0)){if(g/=l,l<0){if(g<c)return;g<h&&(h=g)}else if(l>0){if(g>h)return;g>c&&(c=g)}if(g=o-a,!(!l&&g<0)){if(g/=l,l<0){if(g>h)return;g>c&&(c=g)}else if(l>0){if(g<c)return;g<h&&(h=g)}if(g=r-f,!(!p&&g>0)){if(g/=p,p<0){if(g<c)return;g<h&&(h=g)}else if(p>0){if(g>h)return;g>c&&(c=g)}if(g=i-f,!(!p&&g<0)){if(g/=p,p<0){if(g>h)return;g>c&&(c=g)}else if(p>0){if(g<c)return;g<h&&(h=g)}return c>0&&(t[0]=a+c*l,t[1]=f+c*p),h<1&&(e[0]=a+h*l,e[1]=f+h*p),!0}}}}}var ua=1e9,mu=-ua;function Tn(t,e,n,r){function o(u,c){return t<=u&&u<=n&&e<=c&&c<=r}function i(u,c,h,l){var p=0,g=0;if(u==null||(p=a(u,h))!==(g=a(c,h))||s(u,c)<0^h>0)do l.point(p===0||p===3?t:n,p>1?r:e);while((p=(p+h+4)%4)!==g);else l.point(c[0],c[1])}function a(u,c){return G(u[0]-t)<B?c>0?0:3:G(u[0]-n)<B?c>0?2:1:G(u[1]-e)<B?c>0?1:0:c>0?3:2}function f(u,c){return s(u.x,c.x)}function s(u,c){var h=a(u,1),l=a(c,1);return h!==l?h-l:h===0?c[1]-u[1]:h===1?u[0]-c[0]:h===2?u[1]-c[1]:c[0]-u[0]}return function(u){var c=u,h=uu(),l,p,g,d,m,x,_,y,b,v,w,A={point:R,lineStart:I,lineEnd:C,polygonStart:E,polygonEnd:k};function R(S,T){o(S,T)&&c.point(S,T)}function N(){for(var S=0,T=0,P=p.length;T<P;++T)for(var O=p[T],q=1,L=O.length,X=O[0],W,lt,at=X[0],nt=X[1];q<L;++q)W=at,lt=nt,X=O[q],at=X[0],nt=X[1],lt<=r?nt>r&&(at-W)*(r-lt)>(nt-lt)*(t-W)&&++S:nt<=r&&(at-W)*(r-lt)<(nt-lt)*(t-W)&&--S;return S}function E(){c=h,l=[],p=[],w=!0}function k(){var S=N(),T=w&&S,P=(l=hr(l)).length;(T||P)&&(u.polygonStart(),T&&(u.lineStart(),i(null,null,1,u),u.lineEnd()),P&&cu(l,f,S,i,u),u.polygonEnd()),c=u,l=p=g=null}function I(){A.point=M,p&&p.push(g=[]),v=!0,b=!1,_=y=NaN}function C(){l&&(M(d,m),x&&b&&h.rejoin(),l.push(h.result())),A.point=R,b&&c.lineEnd()}function M(S,T){var P=o(S,T);if(p&&g.push([S,T]),v)d=S,m=T,x=P,v=!1,P&&(c.lineStart(),c.point(S,T));else if(P&&b)c.point(S,T);else{var O=[_=Math.max(mu,Math.min(ua,_)),y=Math.max(mu,Math.min(ua,y))],q=[S=Math.max(mu,Math.min(ua,S)),T=Math.max(mu,Math.min(ua,T))];b2(O,q,t,e,n,r)?(b||(c.lineStart(),c.point(O[0],O[1])),c.point(q[0],q[1]),P||c.lineEnd(),w=!1):P&&(c.lineStart(),c.point(S,T),w=!1)}_=S,y=T,b=P}return A}}function y2(){var t=0,e=0,n=960,r=500,o,i,a;return a={stream:function(f){return o&&i===f?o:o=Tn(t,e,n,r)(i=f)},extent:function(f){return arguments.length?(t=+f[0][0],e=+f[0][1],n=+f[1][0],r=+f[1][1],o=i=null,a):[[t,e],[n,r]]}}}var Jl,th,du,gu,Oo={sphere:st,point:st,lineStart:s4,lineEnd:st,polygonStart:st,polygonEnd:st};function s4(){Oo.point=l4,Oo.lineEnd=c4}function c4(){Oo.point=Oo.lineEnd=st}function l4(t,e){t*=H,e*=H,th=t,du=z(e),gu=Y(e),Oo.point=h4}function h4(t,e){t*=H,e*=H;var n=z(e),r=Y(e),o=G(t-th),i=Y(o),a=z(o),f=r*a,s=gu*n-du*r*i,u=du*n+gu*r*i;Jl.add(xt(ft(f*f+s*s),u)),th=t,du=n,gu=r}function xu(t){return Jl=new mt,Lt(t,Oo),+Jl}var eh=[null,null],p4={type:"LineString",coordinates:eh};function Fo(t,e){return eh[0]=t,eh[1]=e,xu(p4)}var _2={Feature:function(t,e){return bu(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,o=n.length;++r<o;)if(bu(n[r].geometry,e))return!0;return!1}},v2={Sphere:function(){return!0},Point:function(t,e){return w2(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)if(w2(n[r],e))return!0;return!1},LineString:function(t,e){return M2(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)if(M2(n[r],e))return!0;return!1},Polygon:function(t,e){return S2(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)if(S2(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,o=n.length;++r<o;)if(bu(n[r],e))return!0;return!1}};function bu(t,e){return t&&v2.hasOwnProperty(t.type)?v2[t.type](t,e):!1}function w2(t,e){return Fo(t,e)===0}function M2(t,e){for(var n,r,o,i=0,a=t.length;i<a;i++){if(r=Fo(t[i],e),r===0||i>0&&(o=Fo(t[i],t[i-1]),o>0&&n<=o&&r<=o&&(n+r-o)*(1-Math.pow((n-r)/o,2))<vn*o))return!0;n=r}return!1}function S2(t,e){return!!lu(t.map(m4),T2(e))}function m4(t){return t=t.map(T2),t.pop(),t}function T2(t){return[t[0]*H,t[1]*H]}function A2(t,e){return(t&&_2.hasOwnProperty(t.type)?_2[t.type]:bu)(t,e)}function E2(t,e,n){var r=de(t,e-B,n).concat(e);return function(o){return r.map(function(i){return[o,i]})}}function k2(t,e,n){var r=de(t,e-B,n).concat(e);return function(o){return r.map(function(i){return[i,o]})}}function yu(){var t,e,n,r,o,i,a,f,s=10,u=s,c=90,h=360,l,p,g,d,m=2.5;function x(){return{type:"MultiLineString",coordinates:_()}}function _(){return de(Ki(r/c)*c,n,c).map(g).concat(de(Ki(f/h)*h,a,h).map(d)).concat(de(Ki(e/s)*s,t,s).filter(function(y){return G(y%c)>B}).map(l)).concat(de(Ki(i/u)*u,o,u).filter(function(y){return G(y%h)>B}).map(p))}return x.lines=function(){return _().map(function(y){return{type:"LineString",coordinates:y}})},x.outline=function(){return{type:"Polygon",coordinates:[g(r).concat(d(a).slice(1),g(n).reverse().slice(1),d(f).reverse().slice(1))]}},x.extent=function(y){return arguments.length?x.extentMajor(y).extentMinor(y):x.extentMinor()},x.extentMajor=function(y){return arguments.length?(r=+y[0][0],n=+y[1][0],f=+y[0][1],a=+y[1][1],r>n&&(y=r,r=n,n=y),f>a&&(y=f,f=a,a=y),x.precision(m)):[[r,f],[n,a]]},x.extentMinor=function(y){return arguments.length?(e=+y[0][0],t=+y[1][0],i=+y[0][1],o=+y[1][1],e>t&&(y=e,e=t,t=y),i>o&&(y=i,i=o,o=y),x.precision(m)):[[e,i],[t,o]]},x.step=function(y){return arguments.length?x.stepMajor(y).stepMinor(y):x.stepMinor()},x.stepMajor=function(y){return arguments.length?(c=+y[0],h=+y[1],x):[c,h]},x.stepMinor=function(y){return arguments.length?(s=+y[0],u=+y[1],x):[s,u]},x.precision=function(y){return arguments.length?(m=+y,l=E2(i,o,90),p=k2(e,t,m),g=E2(f,a,90),d=k2(r,n,m),x):m},x.extentMajor([[-180,-90+B],[180,90-B]]).extentMinor([[-180,-80-B],[180,80+B]])}function N2(){return yu()()}function R2(t,e){var n=t[0]*H,r=t[1]*H,o=e[0]*H,i=e[1]*H,a=Y(r),f=z(r),s=Y(i),u=z(i),c=a*Y(n),h=a*z(n),l=s*Y(o),p=s*z(o),g=2*bt(ft(Yl(i-r)+a*s*Yl(o-n))),d=z(g),m=g?function(x){var _=z(x*=g)/d,y=z(g-x)/d,b=y*c+_*l,v=y*h+_*p,w=y*f+_*u;return[xt(v,b)*rt,xt(w,ft(b*b+v*v))*rt]}:function(){return[n*rt,r*rt]};return m.distance=g,m}var Zn=t=>t;var nh=new mt,rh=new mt,C2,I2,oh,ih,Qn={point:st,lineStart:st,lineEnd:st,polygonStart:function(){Qn.lineStart=d4,Qn.lineEnd=x4},polygonEnd:function(){Qn.lineStart=Qn.lineEnd=Qn.point=st,nh.add(G(rh)),rh=new mt},result:function(){var t=nh/2;return nh=new mt,t}};function d4(){Qn.point=g4}function g4(t,e){Qn.point=P2,C2=oh=t,I2=ih=e}function P2(t,e){rh.add(ih*t-oh*e),oh=t,ih=e}function x4(){P2(C2,I2)}var ah=Qn;var zo=1/0,_u=zo,sa=-zo,vu=sa,b4={point:y4,lineStart:st,lineEnd:st,polygonStart:st,polygonEnd:st,result:function(){var t=[[zo,_u],[sa,vu]];return sa=vu=-(_u=zo=1/0),t}};function y4(t,e){t<zo&&(zo=t),t>sa&&(sa=t),e<_u&&(_u=e),e>vu&&(vu=e)}var Lo=b4;var fh=0,uh=0,ca=0,wu=0,Mu=0,Yo=0,sh=0,ch=0,la=0,O2,F2,Qe,je,Oe={point:zr,lineStart:D2,lineEnd:q2,polygonStart:function(){Oe.lineStart=w4,Oe.lineEnd=M4},polygonEnd:function(){Oe.point=zr,Oe.lineStart=D2,Oe.lineEnd=q2},result:function(){var t=la?[sh/la,ch/la]:Yo?[wu/Yo,Mu/Yo]:ca?[fh/ca,uh/ca]:[NaN,NaN];return fh=uh=ca=wu=Mu=Yo=sh=ch=la=0,t}};function zr(t,e){fh+=t,uh+=e,++ca}function D2(){Oe.point=_4}function _4(t,e){Oe.point=v4,zr(Qe=t,je=e)}function v4(t,e){var n=t-Qe,r=e-je,o=ft(n*n+r*r);wu+=o*(Qe+t)/2,Mu+=o*(je+e)/2,Yo+=o,zr(Qe=t,je=e)}function q2(){Oe.point=zr}function w4(){Oe.point=S4}function M4(){z2(O2,F2)}function S4(t,e){Oe.point=z2,zr(O2=Qe=t,F2=je=e)}function z2(t,e){var n=t-Qe,r=e-je,o=ft(n*n+r*r);wu+=o*(Qe+t)/2,Mu+=o*(je+e)/2,Yo+=o,o=je*t-Qe*e,sh+=o*(Qe+t),ch+=o*(je+e),la+=o*3,zr(Qe=t,je=e)}var lh=Oe;function Su(t){this._context=t}Su.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:{this._context.moveTo(t,e),this._point=1;break}case 1:{this._context.lineTo(t,e);break}default:{this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,Nt);break}}},result:st};var ph=new mt,hh,L2,Y2,ha,pa,Tu={point:st,lineStart:function(){Tu.point=T4},lineEnd:function(){hh&&U2(L2,Y2),Tu.point=st},polygonStart:function(){hh=!0},polygonEnd:function(){hh=null},result:function(){var t=+ph;return ph=new mt,t}};function T4(t,e){Tu.point=U2,L2=ha=t,Y2=pa=e}function U2(t,e){ha-=t,pa-=e,ph.add(ft(ha*ha+pa*pa)),ha=t,pa=e}var mh=Tu;var $2,Au,B2,H2,Uo=class{constructor(e){this._append=e==null?X2:A4(e),this._radius=4.5,this._=""}pointRadius(e){return this._radius=+e,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(e,n){switch(this._point){case 0:{this._append`M${e},${n}`,this._point=1;break}case 1:{this._append`L${e},${n}`;break}default:{if(this._append`M${e},${n}`,this._radius!==B2||this._append!==Au){let r=this._radius,o=this._;this._="",this._append`m0,${r}a${r},${r} 0 1,1 0,${-2*r}a${r},${r} 0 1,1 0,${2*r}z`,B2=r,Au=this._append,H2=this._,this._=o}this._+=H2;break}}}result(){let e=this._;return this._="",e.length?e:null}};function X2(t){let e=1;this._+=t[0];for(let n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function A4(t){let e=Math.floor(t);if(!(e>=0))throw new RangeError(`invalid digits: ${t}`);if(e>15)return X2;if(e!==$2){let n=10**e;$2=e,Au=function(o){let i=1;this._+=o[0];for(let a=o.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+o[i]}}return Au}function W2(t,e){let n=3,r=4.5,o,i;function a(f){return f&&(typeof r=="function"&&i.pointRadius(+r.apply(this,arguments)),Lt(f,o(i))),i.result()}return a.area=function(f){return Lt(f,o(ah)),ah.result()},a.measure=function(f){return Lt(f,o(mh)),mh.result()},a.bounds=function(f){return Lt(f,o(Lo)),Lo.result()},a.centroid=function(f){return Lt(f,o(lh)),lh.result()},a.projection=function(f){return arguments.length?(o=f==null?(t=null,Zn):(t=f).stream,a):t},a.context=function(f){return arguments.length?(i=f==null?(e=null,new Uo(n)):new Su(e=f),typeof r!="function"&&i.pointRadius(r),a):e},a.pointRadius=function(f){return arguments.length?(r=typeof f=="function"?f:(i.pointRadius(+f),+f),a):r},a.digits=function(f){if(!arguments.length)return n;if(f==null)n=null;else{let s=Math.floor(f);if(!(s>=0))throw new RangeError(`invalid digits: ${f}`);n=s}return e===null&&(i=new Uo(n)),a},a.projection(t).digits(n).context(e)}function V2(t){return{stream:jn(t)}}function jn(t){return function(e){var n=new dh;for(var r in t)n[r]=t[r];return n.stream=e,n}}function dh(){}dh.prototype={constructor:dh,point:function(t,e){this.stream.point(t,e)},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()}};function gh(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),r!=null&&t.clipExtent(null),Lt(n,t.stream(Lo)),e(Lo.result()),r!=null&&t.clipExtent(r),t}function Lr(t,e,n){return gh(t,function(r){var o=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(o/(r[1][0]-r[0][0]),i/(r[1][1]-r[0][1])),f=+e[0][0]+(o-a*(r[1][0]+r[0][0]))/2,s=+e[0][1]+(i-a*(r[1][1]+r[0][1]))/2;t.scale(150*a).translate([f,s])},n)}function $o(t,e,n){return Lr(t,[[0,0],e],n)}function Bo(t,e,n){return gh(t,function(r){var o=+e,i=o/(r[1][0]-r[0][0]),a=(o-i*(r[1][0]+r[0][0]))/2,f=-i*r[0][1];t.scale(150*i).translate([a,f])},n)}function Ho(t,e,n){return gh(t,function(r){var o=+e,i=o/(r[1][1]-r[0][1]),a=-i*r[0][0],f=(o-i*(r[1][1]+r[0][1]))/2;t.scale(150*i).translate([a,f])},n)}var G2=16,E4=Y(30*H);function xh(t,e){return+e?N4(t,e):k4(t)}function k4(t){return jn({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function N4(t,e){function n(r,o,i,a,f,s,u,c,h,l,p,g,d,m){var x=u-r,_=c-o,y=x*x+_*_;if(y>4*e&&d--){var b=a+l,v=f+p,w=s+g,A=ft(b*b+v*v+w*w),R=bt(w/=A),N=G(G(w)-1)<B||G(i-h)<B?(i+h)/2:xt(v,b),E=t(N,R),k=E[0],I=E[1],C=k-r,M=I-o,S=_*C-x*M;(S*S/y>e||G((x*C+_*M)/y-.5)>.3||a*l+f*p+s*g<E4)&&(n(r,o,i,a,f,s,k,I,N,b/=A,v/=A,w,d,m),m.point(k,I),n(k,I,N,b,v,w,u,c,h,l,p,g,d,m))}}return function(r){var o,i,a,f,s,u,c,h,l,p,g,d,m={point:x,lineStart:_,lineEnd:b,polygonStart:function(){r.polygonStart(),m.lineStart=v},polygonEnd:function(){r.polygonEnd(),m.lineStart=_}};function x(R,N){R=t(R,N),r.point(R[0],R[1])}function _(){h=NaN,m.point=y,r.lineStart()}function y(R,N){var E=_e([R,N]),k=t(R,N);n(h,l,c,p,g,d,h=k[0],l=k[1],c=R,p=E[0],g=E[1],d=E[2],G2,r),r.point(h,l)}function b(){m.point=x,r.lineEnd()}function v(){_(),m.point=w,m.lineEnd=A}function w(R,N){y(o=R,N),i=h,a=l,f=p,s=g,u=d,m.point=y}function A(){n(h,l,c,p,g,d,i,a,o,f,s,u,G2,r),m.lineEnd=b,b()}return m}}var R4=jn({point:function(t,e){this.stream.point(t*H,e*H)}});function C4(t){return jn({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}function I4(t,e,n,r,o){function i(a,f){return a*=r,f*=o,[e+t*a,n-t*f]}return i.invert=function(a,f){return[(a-e)/t*r,(n-f)/t*o]},i}function Z2(t,e,n,r,o,i){if(!i)return I4(t,e,n,r,o);var a=Y(i),f=z(i),s=a*t,u=f*t,c=a/t,h=f/t,l=(f*n-a*e)/t,p=(f*e+a*n)/t;function g(d,m){return d*=r,m*=o,[s*d-u*m+e,n-u*d-s*m]}return g.invert=function(d,m){return[r*(c*d-h*m+l),o*(p-h*d-c*m)]},g}function Rt(t){return ma(function(){return t})()}function ma(t){var e,n=150,r=480,o=250,i=0,a=0,f=0,s=0,u=0,c,h=0,l=1,p=1,g=null,d=fa,m=null,x,_,y,b=Zn,v=.5,w,A,R,N,E;function k(S){return R(S[0]*H,S[1]*H)}function I(S){return S=R.invert(S[0],S[1]),S&&[S[0]*rt,S[1]*rt]}k.stream=function(S){return N&&E===S?N:N=R4(C4(c)(d(w(b(E=S)))))},k.preclip=function(S){return arguments.length?(d=S,g=void 0,M()):d},k.postclip=function(S){return arguments.length?(b=S,m=x=_=y=null,M()):b},k.clipAngle=function(S){return arguments.length?(d=+S?pu(g=S*H):(g=null,fa),M()):g*rt},k.clipExtent=function(S){return arguments.length?(b=S==null?(m=x=_=y=null,Zn):Tn(m=+S[0][0],x=+S[0][1],_=+S[1][0],y=+S[1][1]),M()):m==null?null:[[m,x],[_,y]]},k.scale=function(S){return arguments.length?(n=+S,C()):n},k.translate=function(S){return arguments.length?(r=+S[0],o=+S[1],C()):[r,o]},k.center=function(S){return arguments.length?(i=S[0]%360*H,a=S[1]%360*H,C()):[i*rt,a*rt]},k.rotate=function(S){return arguments.length?(f=S[0]%360*H,s=S[1]%360*H,u=S.length>2?S[2]%360*H:0,C()):[f*rt,s*rt,u*rt]},k.angle=function(S){return arguments.length?(h=S%360*H,C()):h*rt},k.reflectX=function(S){return arguments.length?(l=S?-1:1,C()):l<0},k.reflectY=function(S){return arguments.length?(p=S?-1:1,C()):p<0},k.precision=function(S){return arguments.length?(w=xh(A,v=S*S),M()):ft(v)},k.fitExtent=function(S,T){return Lr(k,S,T)},k.fitSize=function(S,T){return $o(k,S,T)},k.fitWidth=function(S,T){return Bo(k,S,T)},k.fitHeight=function(S,T){return Ho(k,S,T)};function C(){var S=Z2(n,0,0,l,p,h).apply(null,e(i,a)),T=Z2(n,r-S[0],o-S[1],l,p,h);return c=aa(f,s,u),A=ia(e,T),R=ia(c,A),w=xh(A,v),M()}function M(){return N=E=null,k}return function(){return e=t.apply(this,arguments),k.invert=e.invert&&I,C()}}function Xo(t){var e=0,n=j/3,r=ma(t),o=r(e,n);return o.parallels=function(i){return arguments.length?r(e=i[0]*H,n=i[1]*H):[e*rt,n*rt]},o}function Q2(t){var e=Y(t);function n(r,o){return[r*e,z(o)/e]}return n.invert=function(r,o){return[r/e,bt(o*e)]},n}function bh(t,e){var n=z(t),r=(n+z(e))/2;if(G(r)<B)return Q2(t);var o=1+n*(2*r-n),i=ft(o)/r;function a(f,s){var u=ft(o-2*r*z(s))/r;return[u*z(f*=r),i-u*Y(f)]}return a.invert=function(f,s){var u=i-s,c=xt(f,G(u))*Zt(u);return u*r<0&&(c-=j*Zt(f)*Zt(u)),[c/r,bt((o-(f*f+u*u)*r*r)/(2*r))]},a}function Yr(){return Xo(bh).scale(155.424).center([0,33.6442])}function Eu(){return Yr().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function P4(t){var e=t.length;return{point:function(n,r){for(var o=-1;++o<e;)t[o].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}function j2(){var t,e,n=Eu(),r,o=Yr().rotate([154,0]).center([-2,58.5]).parallels([55,65]),i,a=Yr().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f,s,u={point:function(l,p){s=[l,p]}};function c(l){var p=l[0],g=l[1];return s=null,r.point(p,g),s||(i.point(p,g),s)||(f.point(p,g),s)}c.invert=function(l){var p=n.scale(),g=n.translate(),d=(l[0]-g[0])/p,m=(l[1]-g[1])/p;return(m>=.12&&m<.234&&d>=-.425&&d<-.214?o:m>=.166&&m<.234&&d>=-.214&&d<-.115?a:n).invert(l)},c.stream=function(l){return t&&e===l?t:t=P4([n.stream(e=l),o.stream(l),a.stream(l)])},c.precision=function(l){return arguments.length?(n.precision(l),o.precision(l),a.precision(l),h()):n.precision()},c.scale=function(l){return arguments.length?(n.scale(l),o.scale(l*.35),a.scale(l),c.translate(n.translate())):n.scale()},c.translate=function(l){if(!arguments.length)return n.translate();var p=n.scale(),g=+l[0],d=+l[1];return r=n.translate(l).clipExtent([[g-.455*p,d-.238*p],[g+.455*p,d+.238*p]]).stream(u),i=o.translate([g-.307*p,d+.201*p]).clipExtent([[g-.425*p+B,d+.12*p+B],[g-.214*p-B,d+.234*p-B]]).stream(u),f=a.translate([g-.205*p,d+.212*p]).clipExtent([[g-.214*p+B,d+.166*p+B],[g-.115*p-B,d+.234*p-B]]).stream(u),h()},c.fitExtent=function(l,p){return Lr(c,l,p)},c.fitSize=function(l,p){return $o(c,l,p)},c.fitWidth=function(l,p){return Bo(c,l,p)},c.fitHeight=function(l,p){return Ho(c,l,p)};function h(){return t=e=null,c}return c.scale(1070)}function ku(t){return function(e,n){var r=Y(e),o=Y(n),i=t(r*o);return i===1/0?[2,0]:[i*o*z(e),i*z(n)]}}function Ke(t){return function(e,n){var r=ft(e*e+n*n),o=t(r),i=z(o),a=Y(o);return[xt(e*i,r*a),bt(r&&n*i/r)]}}var Nu=ku(function(t){return ft(2/(1+t))});Nu.invert=Ke(function(t){return 2*bt(t/2)});function K2(){return Rt(Nu).scale(124.75).clipAngle(180-.001)}var Ru=ku(function(t){return(t=Qf(t))&&t/z(t)});Ru.invert=Ke(function(t){return t});function J2(){return Rt(Ru).scale(79.4188).clipAngle(180-.001)}function Ur(t,e){return[t,Pr(Po((gt+e)/2))]}Ur.invert=function(t,e){return[t,2*ye(Vf(e))-gt]};function tx(){return yh(Ur).scale(961/Nt)}function yh(t){var e=Rt(t),n=e.center,r=e.scale,o=e.translate,i=e.clipExtent,a=null,f,s,u;e.scale=function(h){return arguments.length?(r(h),c()):r()},e.translate=function(h){return arguments.length?(o(h),c()):o()},e.center=function(h){return arguments.length?(n(h),c()):n()},e.clipExtent=function(h){return arguments.length?(h==null?a=f=s=u=null:(a=+h[0][0],f=+h[0][1],s=+h[1][0],u=+h[1][1]),c()):a==null?null:[[a,f],[s,u]]};function c(){var h=j*r(),l=e(fu(e.rotate()).invert([0,0]));return i(a==null?[[l[0]-h,l[1]-h],[l[0]+h,l[1]+h]]:t===Ur?[[Math.max(l[0]-h,a),f],[Math.min(l[0]+h,s),u]]:[[a,Math.max(l[1]-h,f)],[s,Math.min(l[1]+h,u)]])}return c()}function Cu(t){return Po((gt+t)/2)}function _h(t,e){var n=Y(t),r=t===e?z(t):Pr(n/Y(e))/Pr(Cu(e)/Cu(t)),o=n*Zf(Cu(t),r)/r;if(!r)return Ur;function i(a,f){o>0?f<-gt+B&&(f=-gt+B):f>gt-B&&(f=gt-B);var s=o/Zf(Cu(f),r);return[s*z(r*a),o-s*Y(r*a)]}return i.invert=function(a,f){var s=o-f,u=Zt(r)*ft(a*a+s*s),c=xt(a,G(s))*Zt(s);return s*r<0&&(c-=j*Zt(a)*Zt(s)),[c/r,2*ye(Zf(o/u,1/r))-gt]},i}function ex(){return Xo(_h).scale(109.5).parallels([30,30])}function $r(t,e){return[t,e]}$r.invert=$r;function nx(){return Rt($r).scale(152.63)}function vh(t,e){var n=Y(t),r=t===e?z(t):(n-Y(e))/(e-t),o=n/r+t;if(G(r)<B)return $r;function i(a,f){var s=o-f,u=r*a;return[s*z(u),o-s*Y(u)]}return i.invert=function(a,f){var s=o-f,u=xt(a,G(s))*Zt(s);return s*r<0&&(u-=j*Zt(a)*Zt(s)),[u/r,o-Zt(r)*ft(a*a+s*s)]},i}function rx(){return Xo(vh).scale(131.154).center([0,13.9389])}var da=1.340264,ga=-.081106,xa=893e-6,ba=.003796,Iu=ft(3)/2,D4=12;function Pu(t,e){var n=bt(Iu*z(e)),r=n*n,o=r*r*r;return[t*Y(n)/(Iu*(da+3*ga*r+o*(7*xa+9*ba*r))),n*(da+ga*r+o*(xa+ba*r))]}Pu.invert=function(t,e){for(var n=e,r=n*n,o=r*r*r,i=0,a,f,s;i<D4&&(f=n*(da+ga*r+o*(xa+ba*r))-e,s=da+3*ga*r+o*(7*xa+9*ba*r),n-=a=f/s,r=n*n,o=r*r*r,!(G(a)<vn));++i);return[Iu*t*(da+3*ga*r+o*(7*xa+9*ba*r))/Y(n),bt(z(n)/Iu)]};function ox(){return Rt(Pu).scale(177.158)}function Du(t,e){var n=Y(e),r=Y(t)*n;return[n*z(t)/r,z(e)/r]}Du.invert=Ke(ye);function ix(){return Rt(Du).scale(144.049).clipAngle(60)}function ax(){var t=1,e=0,n=0,r=1,o=1,i=0,a,f,s=null,u,c,h,l=1,p=1,g=jn({point:function(b,v){var w=y([b,v]);this.stream.point(w[0],w[1])}}),d=Zn,m,x;function _(){return l=t*r,p=t*o,m=x=null,y}function y(b){var v=b[0]*l,w=b[1]*p;if(i){var A=w*a-v*f;v=v*a+w*f,w=A}return[v+e,w+n]}return y.invert=function(b){var v=b[0]-e,w=b[1]-n;if(i){var A=w*a+v*f;v=v*a-w*f,w=A}return[v/l,w/p]},y.stream=function(b){return m&&x===b?m:m=g(d(x=b))},y.postclip=function(b){return arguments.length?(d=b,s=u=c=h=null,_()):d},y.clipExtent=function(b){return arguments.length?(d=b==null?(s=u=c=h=null,Zn):Tn(s=+b[0][0],u=+b[0][1],c=+b[1][0],h=+b[1][1]),_()):s==null?null:[[s,u],[c,h]]},y.scale=function(b){return arguments.length?(t=+b,_()):t},y.translate=function(b){return arguments.length?(e=+b[0],n=+b[1],_()):[e,n]},y.angle=function(b){return arguments.length?(i=b%360*H,f=z(i),a=Y(i),_()):i*rt},y.reflectX=function(b){return arguments.length?(r=b?-1:1,_()):r<0},y.reflectY=function(b){return arguments.length?(o=b?-1:1,_()):o<0},y.fitExtent=function(b,v){return Lr(y,b,v)},y.fitSize=function(b,v){return $o(y,b,v)},y.fitWidth=function(b,v){return Bo(y,b,v)},y.fitHeight=function(b,v){return Ho(y,b,v)},y}function qu(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),e*(1.007226+n*(.015085+r*(-.044475+.028874*n-.005916*r)))]}qu.invert=function(t,e){var n=e,r=25,o;do{var i=n*n,a=i*i;n-=o=(n*(1.007226+i*(.015085+a*(-.044475+.028874*i-.005916*a)))-e)/(1.007226+i*(.015085*3+a*(-.044475*7+.028874*9*i-.005916*11*a)))}while(G(o)>B&&--r>0);return[t/(.8707+(i=n*n)*(-.131979+i*(-.013791+i*i*i*(.003971-.001529*i)))),n]};function fx(){return Rt(qu).scale(175.295)}function Ou(t,e){return[Y(e)*z(t),z(e)]}Ou.invert=Ke(bt);function ux(){return Rt(Ou).scale(249.5).clipAngle(90+B)}function Fu(t,e){var n=Y(e),r=1+Y(t)*n;return[n*z(t)/r,z(e)/r]}Fu.invert=Ke(function(t){return 2*ye(t)});function sx(){return Rt(Fu).scale(250).clipAngle(142)}function zu(t,e){return[Pr(Po((gt+e)/2)),-t]}zu.invert=function(t,e){return[-e,2*ye(Vf(t))-gt]};function cx(){var t=yh(zu),e=t.center,n=t.rotate;return t.center=function(r){return arguments.length?e([-r[1],r[0]]):(r=e(),[r[1],-r[0]])},t.rotate=function(r){return arguments.length?n([r[0],r[1],r.length>2?r[2]+90:90]):(r=n(),[r[0],r[1],r[2]-90])},n([0,0,90]).scale(159.155)}var qh={};pt(qh,{Node:()=>Je,cluster:()=>lx,hierarchy:()=>ya,pack:()=>Ox,packEnclose:()=>Ex,packSiblings:()=>Px,partition:()=>Fx,stratify:()=>Yx,tree:()=>Ux,treemap:()=>$x,treemapBinary:()=>Bx,treemapDice:()=>tn,treemapResquarify:()=>Xx,treemapSlice:()=>Jn,treemapSliceDice:()=>Hx,treemapSquarify:()=>Bu});function q4(t,e){return t.parent===e.parent?1:2}function O4(t){return t.reduce(F4,0)/t.length}function F4(t,e){return t+e.x}function z4(t){return 1+t.reduce(L4,0)}function L4(t,e){return Math.max(t,e.y)}function Y4(t){for(var e;e=t.children;)t=e[0];return t}function U4(t){for(var e;e=t.children;)t=e[e.length-1];return t}function lx(){var t=q4,e=1,n=1,r=!1;function o(i){var a,f=0;i.eachAfter(function(l){var p=l.children;p?(l.x=O4(p),l.y=z4(p)):(l.x=a?f+=t(l,a):0,l.y=0,a=l)});var s=Y4(i),u=U4(i),c=s.x-t(s,u)/2,h=u.x+t(u,s)/2;return i.eachAfter(r?function(l){l.x=(l.x-i.x)*e,l.y=(i.y-l.y)*n}:function(l){l.x=(l.x-c)/(h-c)*e,l.y=(1-(i.y?l.y/i.y:1))*n})}return o.separation=function(i){return arguments.length?(t=i,o):t},o.size=function(i){return arguments.length?(r=!1,e=+i[0],n=+i[1],o):r?null:[e,n]},o.nodeSize=function(i){return arguments.length?(r=!0,e=+i[0],n=+i[1],o):r?[e,n]:null},o}function $4(t){var e=0,n=t.children,r=n&&n.length;if(!r)e=1;else for(;--r>=0;)e+=n[r].value;t.value=e}function hx(){return this.eachAfter($4)}function px(t,e){let n=-1;for(let r of this)t.call(e,r,++n,this);return this}function mx(t,e){for(var n=this,r=[n],o,i,a=-1;n=r.pop();)if(t.call(e,n,++a,this),o=n.children)for(i=o.length-1;i>=0;--i)r.push(o[i]);return this}function dx(t,e){for(var n=this,r=[n],o=[],i,a,f,s=-1;n=r.pop();)if(o.push(n),i=n.children)for(a=0,f=i.length;a<f;++a)r.push(i[a]);for(;n=o.pop();)t.call(e,n,++s,this);return this}function gx(t,e){let n=-1;for(let r of this)if(t.call(e,r,++n,this))return r}function xx(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,o=r&&r.length;--o>=0;)n+=r[o].value;e.value=n})}function bx(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function yx(t){for(var e=this,n=B4(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var o=r.length;t!==n;)r.splice(o,0,t),t=t.parent;return r}function B4(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),o=null;for(t=n.pop(),e=r.pop();t===e;)o=t,t=n.pop(),e=r.pop();return o}function _x(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function vx(){return Array.from(this)}function wx(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function Mx(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*Sx(){var t=this,e,n=[t],r,o,i;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,r=t.children)for(o=0,i=r.length;o<i;++o)n.push(r[o]);while(n.length)}function ya(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=W4)):e===void 0&&(e=X4);for(var n=new Je(t),r,o=[n],i,a,f,s;r=o.pop();)if((a=e(r.data))&&(s=(a=Array.from(a)).length))for(r.children=a,f=s-1;f>=0;--f)o.push(i=a[f]=new Je(a[f])),i.parent=r,i.depth=r.depth+1;return n.eachBefore(Mh)}function H4(){return ya(this).eachBefore(V4)}function X4(t){return t.children}function W4(t){return Array.isArray(t)?t[1]:null}function V4(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Mh(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function Je(t){this.data=t,this.depth=this.height=0,this.parent=null}Je.prototype=ya.prototype={constructor:Je,count:hx,each:px,eachAfter:dx,eachBefore:mx,find:gx,sum:xx,sort:bx,path:yx,ancestors:_x,descendants:vx,leaves:wx,links:Mx,copy:H4,[Symbol.iterator]:Sx};function Wo(t){return t==null?null:Sh(t)}function Sh(t){if(typeof t!="function")throw new Error;return t}function An(){return 0}function Kn(t){return function(){return t}}function Vo(){let t=1;return()=>(t=(1664525*t+1013904223)%4294967296)/4294967296}function Tx(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Ax(t,e){let n=t.length,r,o;for(;n;)o=e()*n--|0,r=t[n],t[n]=t[o],t[o]=r;return t}function Ex(t){return Ah(t,Vo())}function Ah(t,e){for(var n=0,r=(t=Ax(Array.from(t),e)).length,o=[],i,a;n<r;)i=t[n],a&&kx(a,i)?++n:(a=Z4(o=G4(o,i)),n=0);return a}function G4(t,e){var n,r;if(Th(e,t))return[e];for(n=0;n<t.length;++n)if(Lu(e,t[n])&&Th(_a(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(Lu(_a(t[n],t[r]),e)&&Lu(_a(t[n],e),t[r])&&Lu(_a(t[r],e),t[n])&&Th(Nx(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function Lu(t,e){var n=t.r-e.r,r=e.x-t.x,o=e.y-t.y;return n<0||n*n<r*r+o*o}function kx(t,e){var n=t.r-e.r+Math.max(t.r,e.r,1)*1e-9,r=e.x-t.x,o=e.y-t.y;return n>0&&n*n>r*r+o*o}function Th(t,e){for(var n=0;n<e.length;++n)if(!kx(t,e[n]))return!1;return!0}function Z4(t){switch(t.length){case 1:return Q4(t[0]);case 2:return _a(t[0],t[1]);case 3:return Nx(t[0],t[1],t[2])}}function Q4(t){return{x:t.x,y:t.y,r:t.r}}function _a(t,e){var n=t.x,r=t.y,o=t.r,i=e.x,a=e.y,f=e.r,s=i-n,u=a-r,c=f-o,h=Math.sqrt(s*s+u*u);return{x:(n+i+s/h*c)/2,y:(r+a+u/h*c)/2,r:(h+o+f)/2}}function Nx(t,e,n){var r=t.x,o=t.y,i=t.r,a=e.x,f=e.y,s=e.r,u=n.x,c=n.y,h=n.r,l=r-a,p=r-u,g=o-f,d=o-c,m=s-i,x=h-i,_=r*r+o*o-i*i,y=_-a*a-f*f+s*s,b=_-u*u-c*c+h*h,v=p*g-l*d,w=(g*b-d*y)/(v*2)-r,A=(d*m-g*x)/v,R=(p*y-l*b)/(v*2)-o,N=(l*x-p*m)/v,E=A*A+N*N-1,k=2*(i+w*A+R*N),I=w*w+R*R-i*i,C=-(Math.abs(E)>1e-6?(k+Math.sqrt(k*k-4*E*I))/(2*E):I/k);return{x:r+w+A*C,y:o+R+N*C,r:C}}function Rx(t,e,n){var r=t.x-e.x,o,i,a=t.y-e.y,f,s,u=r*r+a*a;u?(i=e.r+n.r,i*=i,s=t.r+n.r,s*=s,i>s?(o=(u+s-i)/(2*u),f=Math.sqrt(Math.max(0,s/u-o*o)),n.x=t.x-o*r-f*a,n.y=t.y-o*a+f*r):(o=(u+i-s)/(2*u),f=Math.sqrt(Math.max(0,i/u-o*o)),n.x=e.x+o*r-f*a,n.y=e.y+o*a+f*r)):(n.x=e.x+n.r,n.y=e.y)}function Cx(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,o=e.y-t.y;return n>0&&n*n>r*r+o*o}function Ix(t){var e=t._,n=t.next._,r=e.r+n.r,o=(e.x*n.r+n.x*e.r)/r,i=(e.y*n.r+n.y*e.r)/r;return o*o+i*i}function Yu(t){this._=t,this.next=null,this.previous=null}function Eh(t,e){if(!(i=(t=Tx(t)).length))return 0;var n,r,o,i,a,f,s,u,c,h,l;if(n=t[0],n.x=0,n.y=0,!(i>1))return n.r;if(r=t[1],n.x=-r.r,r.x=n.r,r.y=0,!(i>2))return n.r+r.r;Rx(r,n,o=t[2]),n=new Yu(n),r=new Yu(r),o=new Yu(o),n.next=o.previous=r,r.next=n.previous=o,o.next=r.previous=n;t:for(s=3;s<i;++s){Rx(n._,r._,o=t[s]),o=new Yu(o),u=r.next,c=n.previous,h=r._.r,l=n._.r;do if(h<=l){if(Cx(u._,o._)){r=u,n.next=r,r.previous=n,--s;continue t}h+=u._.r,u=u.next}else{if(Cx(c._,o._)){n=c,n.next=r,r.previous=n,--s;continue t}l+=c._.r,c=c.previous}while(u!==c.next);for(o.previous=n,o.next=r,n.next=r.previous=r=o,a=Ix(n);(o=o.next)!==r;)(f=Ix(o))<a&&(n=o,a=f);r=n.next}for(n=[r._],o=r;(o=o.next)!==r;)n.push(o._);for(o=Ah(n,e),s=0;s<i;++s)n=t[s],n.x-=o.x,n.y-=o.y;return o.r}function Px(t){return Eh(t,Vo()),t}function j4(t){return Math.sqrt(t.value)}function Ox(){var t=null,e=1,n=1,r=An;function o(i){let a=Vo();return i.x=e/2,i.y=n/2,t?i.eachBefore(Dx(t)).eachAfter(kh(r,.5,a)).eachBefore(qx(1)):i.eachBefore(Dx(j4)).eachAfter(kh(An,1,a)).eachAfter(kh(r,i.r/Math.min(e,n),a)).eachBefore(qx(Math.min(e,n)/(2*i.r))),i}return o.radius=function(i){return arguments.length?(t=Wo(i),o):t},o.size=function(i){return arguments.length?(e=+i[0],n=+i[1],o):[e,n]},o.padding=function(i){return arguments.length?(r=typeof i=="function"?i:Kn(+i),o):r},o}function Dx(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function kh(t,e,n){return function(r){if(o=r.children){var o,i,a=o.length,f=t(r)*e||0,s;if(f)for(i=0;i<a;++i)o[i].r+=f;if(s=Eh(o,n),f)for(i=0;i<a;++i)o[i].r-=f;r.r=s+f}}}function qx(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}function Uu(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function tn(t,e,n,r,o){for(var i=t.children,a,f=-1,s=i.length,u=t.value&&(r-e)/t.value;++f<s;)a=i[f],a.y0=n,a.y1=o,a.x0=e,a.x1=e+=a.value*u}function Fx(){var t=1,e=1,n=0,r=!1;function o(a){var f=a.height+1;return a.x0=a.y0=n,a.x1=t,a.y1=e/f,a.eachBefore(i(e,f)),r&&a.eachBefore(Uu),a}function i(a,f){return function(s){s.children&&tn(s,s.x0,a*(s.depth+1)/f,s.x1,a*(s.depth+2)/f);var u=s.x0,c=s.y0,h=s.x1-n,l=s.y1-n;h<u&&(u=h=(u+h)/2),l<c&&(c=l=(c+l)/2),s.x0=u,s.y0=c,s.x1=h,s.y1=l}}return o.round=function(a){return arguments.length?(r=!!a,o):r},o.size=function(a){return arguments.length?(t=+a[0],e=+a[1],o):[t,e]},o.padding=function(a){return arguments.length?(n=+a,o):n},o}var K4={depth:-1},zx={},Nh={};function J4(t){return t.id}function t8(t){return t.parentId}function Yx(){var t=J4,e=t8,n;function r(o){var i=Array.from(o),a=t,f=e,s,u,c,h,l,p,g,d,m=new Map;if(n!=null){let x=i.map((b,v)=>e8(n(b,v,o))),_=x.map(Lx),y=new Set(x).add("");for(let b of _)y.has(b)||(y.add(b),x.push(b),_.push(Lx(b)),i.push(Nh));a=(b,v)=>x[v],f=(b,v)=>_[v]}for(c=0,s=i.length;c<s;++c)u=i[c],p=i[c]=new Je(u),(g=a(u,c,o))!=null&&(g+="")&&(d=p.id=g,m.set(d,m.has(d)?zx:p)),(g=f(u,c,o))!=null&&(g+="")&&(p.parent=g);for(c=0;c<s;++c)if(p=i[c],g=p.parent){if(l=m.get(g),!l)throw new Error("missing: "+g);if(l===zx)throw new Error("ambiguous: "+g);l.children?l.children.push(p):l.children=[p],p.parent=l}else{if(h)throw new Error("multiple roots");h=p}if(!h)throw new Error("no root");if(n!=null){for(;h.data===Nh&&h.children.length===1;)h=h.children[0],--s;for(let x=i.length-1;x>=0&&(p=i[x],p.data===Nh);--x)p.data=null}if(h.parent=K4,h.eachBefore(function(x){x.depth=x.parent.depth+1,--s}).eachBefore(Mh),h.parent=null,s>0)throw new Error("cycle");return h}return r.id=function(o){return arguments.length?(t=Wo(o),r):t},r.parentId=function(o){return arguments.length?(e=Wo(o),r):e},r.path=function(o){return arguments.length?(n=Wo(o),r):n},r}function e8(t){t=`${t}`;let e=t.length;return Rh(t,e-1)&&!Rh(t,e-2)&&(t=t.slice(0,-1)),t[0]==="/"?t:`/${t}`}function Lx(t){let e=t.length;if(e<2)return"";for(;--e>1&&!Rh(t,e););return t.slice(0,e)}function Rh(t,e){if(t[e]==="/"){let n=0;for(;e>0&&t[--e]==="\\";)++n;if((n&1)===0)return!0}return!1}function n8(t,e){return t.parent===e.parent?1:2}function Ch(t){var e=t.children;return e?e[0]:t.t}function Ih(t){var e=t.children;return e?e[e.length-1]:t.t}function r8(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function o8(t){for(var e=0,n=0,r=t.children,o=r.length,i;--o>=0;)i=r[o],i.z+=e,i.m+=e,e+=i.s+(n+=i.c)}function i8(t,e,n){return t.a.parent===e.parent?t.a:n}function $u(t,e){this._=t,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=e}$u.prototype=Object.create(Je.prototype);function a8(t){for(var e=new $u(t,0),n,r=[e],o,i,a,f;n=r.pop();)if(i=n._.children)for(n.children=new Array(f=i.length),a=f-1;a>=0;--a)r.push(o=n.children[a]=new $u(i[a],a)),o.parent=n;return(e.parent=new $u(null,0)).children=[e],e}function Ux(){var t=n8,e=1,n=1,r=null;function o(u){var c=a8(u);if(c.eachAfter(i),c.parent.m=-c.z,c.eachBefore(a),r)u.eachBefore(s);else{var h=u,l=u,p=u;u.eachBefore(function(_){_.x<h.x&&(h=_),_.x>l.x&&(l=_),_.depth>p.depth&&(p=_)});var g=h===l?1:t(h,l)/2,d=g-h.x,m=e/(l.x+g+d),x=n/(p.depth||1);u.eachBefore(function(_){_.x=(_.x+d)*m,_.y=_.depth*x})}return u}function i(u){var c=u.children,h=u.parent.children,l=u.i?h[u.i-1]:null;if(c){o8(u);var p=(c[0].z+c[c.length-1].z)/2;l?(u.z=l.z+t(u._,l._),u.m=u.z-p):u.z=p}else l&&(u.z=l.z+t(u._,l._));u.parent.A=f(u,l,u.parent.A||h[0])}function a(u){u._.x=u.z+u.parent.m,u.m+=u.parent.m}function f(u,c,h){if(c){for(var l=u,p=u,g=c,d=l.parent.children[0],m=l.m,x=p.m,_=g.m,y=d.m,b;g=Ih(g),l=Ch(l),g&&l;)d=Ch(d),p=Ih(p),p.a=u,b=g.z+_-l.z-m+t(g._,l._),b>0&&(r8(i8(g,u,h),u,b),m+=b,x+=b),_+=g.m,m+=l.m,y+=d.m,x+=p.m;g&&!Ih(p)&&(p.t=g,p.m+=_-x),l&&!Ch(d)&&(d.t=l,d.m+=m-y,h=u)}return h}function s(u){u.x*=e,u.y=u.depth*n}return o.separation=function(u){return arguments.length?(t=u,o):t},o.size=function(u){return arguments.length?(r=!1,e=+u[0],n=+u[1],o):r?null:[e,n]},o.nodeSize=function(u){return arguments.length?(r=!0,e=+u[0],n=+u[1],o):r?[e,n]:null},o}function Jn(t,e,n,r,o){for(var i=t.children,a,f=-1,s=i.length,u=t.value&&(o-n)/t.value;++f<s;)a=i[f],a.x0=e,a.x1=r,a.y0=n,a.y1=n+=a.value*u}var Ph=(1+Math.sqrt(5))/2;function Dh(t,e,n,r,o,i){for(var a=[],f=e.children,s,u,c=0,h=0,l=f.length,p,g,d=e.value,m,x,_,y,b,v,w;c<l;){p=o-n,g=i-r;do m=f[h++].value;while(!m&&h<l);for(x=_=m,v=Math.max(g/p,p/g)/(d*t),w=m*m*v,b=Math.max(_/w,w/x);h<l;++h){if(m+=u=f[h].value,u<x&&(x=u),u>_&&(_=u),w=m*m*v,y=Math.max(_/w,w/x),y>b){m-=u;break}b=y}a.push(s={value:m,dice:p<g,children:f.slice(c,h)}),s.dice?tn(s,n,r,o,d?r+=g*m/d:i):Jn(s,n,r,d?n+=p*m/d:o,i),d-=m,c=h}return a}var Bu=(function t(e){function n(r,o,i,a,f){Dh(e,r,o,i,a,f)}return n.ratio=function(r){return t((r=+r)>1?r:1)},n})(Ph);function $x(){var t=Bu,e=!1,n=1,r=1,o=[0],i=An,a=An,f=An,s=An,u=An;function c(l){return l.x0=l.y0=0,l.x1=n,l.y1=r,l.eachBefore(h),o=[0],e&&l.eachBefore(Uu),l}function h(l){var p=o[l.depth],g=l.x0+p,d=l.y0+p,m=l.x1-p,x=l.y1-p;m<g&&(g=m=(g+m)/2),x<d&&(d=x=(d+x)/2),l.x0=g,l.y0=d,l.x1=m,l.y1=x,l.children&&(p=o[l.depth+1]=i(l)/2,g+=u(l)-p,d+=a(l)-p,m-=f(l)-p,x-=s(l)-p,m<g&&(g=m=(g+m)/2),x<d&&(d=x=(d+x)/2),t(l,g,d,m,x))}return c.round=function(l){return arguments.length?(e=!!l,c):e},c.size=function(l){return arguments.length?(n=+l[0],r=+l[1],c):[n,r]},c.tile=function(l){return arguments.length?(t=Sh(l),c):t},c.padding=function(l){return arguments.length?c.paddingInner(l).paddingOuter(l):c.paddingInner()},c.paddingInner=function(l){return arguments.length?(i=typeof l=="function"?l:Kn(+l),c):i},c.paddingOuter=function(l){return arguments.length?c.paddingTop(l).paddingRight(l).paddingBottom(l).paddingLeft(l):c.paddingTop()},c.paddingTop=function(l){return arguments.length?(a=typeof l=="function"?l:Kn(+l),c):a},c.paddingRight=function(l){return arguments.length?(f=typeof l=="function"?l:Kn(+l),c):f},c.paddingBottom=function(l){return arguments.length?(s=typeof l=="function"?l:Kn(+l),c):s},c.paddingLeft=function(l){return arguments.length?(u=typeof l=="function"?l:Kn(+l),c):u},c}function Bx(t,e,n,r,o){var i=t.children,a,f=i.length,s,u=new Array(f+1);for(u[0]=s=a=0;a<f;++a)u[a+1]=s+=i[a].value;c(0,f,t.value,e,n,r,o);function c(h,l,p,g,d,m,x){if(h>=l-1){var _=i[h];_.x0=g,_.y0=d,_.x1=m,_.y1=x;return}for(var y=u[h],b=p/2+y,v=h+1,w=l-1;v<w;){var A=v+w>>>1;u[A]<b?v=A+1:w=A}b-u[v-1]<u[v]-b&&h+1<v&&--v;var R=u[v]-y,N=p-R;if(m-g>x-d){var E=p?(g*N+m*R)/p:m;c(h,v,R,g,d,E,x),c(v,l,N,E,d,m,x)}else{var k=p?(d*N+x*R)/p:x;c(h,v,R,g,d,m,k),c(v,l,N,g,k,m,x)}}}function Hx(t,e,n,r,o){(t.depth&1?Jn:tn)(t,e,n,r,o)}var Xx=(function t(e){function n(r,o,i,a,f){if((s=r._squarify)&&s.ratio===e)for(var s,u,c,h,l=-1,p,g=s.length,d=r.value;++l<g;){for(u=s[l],c=u.children,h=u.value=0,p=c.length;h<p;++h)u.value+=c[h].value;u.dice?tn(u,o,i,a,d?i+=(f-i)*u.value/d:f):Jn(u,o,i,d?o+=(a-o)*u.value/d:a,f),d-=u.value}else r._squarify=s=Dh(e,r,o,i,a,f),s.ratio=e}return n.ratio=function(r){return t((r=+r)>1?r:1)},n})(Ph);var Oh={};pt(Oh,{polygonArea:()=>Wx,polygonCentroid:()=>Vx,polygonContains:()=>jx,polygonHull:()=>Qx,polygonLength:()=>Kx});function Wx(t){for(var e=-1,n=t.length,r,o=t[n-1],i=0;++e<n;)r=o,o=t[e],i+=r[1]*o[0]-r[0]*o[1];return i/2}function Vx(t){for(var e=-1,n=t.length,r=0,o=0,i,a=t[n-1],f,s=0;++e<n;)i=a,a=t[e],s+=f=i[0]*a[1]-a[0]*i[1],r+=(i[0]+a[0])*f,o+=(i[1]+a[1])*f;return s*=3,[r/s,o/s]}function Gx(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function f8(t,e){return t[0]-e[0]||t[1]-e[1]}function Zx(t){let e=t.length,n=[0,1],r=2,o;for(o=2;o<e;++o){for(;r>1&&Gx(t[n[r-2]],t[n[r-1]],t[o])<=0;)--r;n[r++]=o}return n.slice(0,r)}function Qx(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),o=new Array(n);for(e=0;e<n;++e)r[e]=[+t[e][0],+t[e][1],e];for(r.sort(f8),e=0;e<n;++e)o[e]=[r[e][0],-r[e][1]];var i=Zx(r),a=Zx(o),f=a[0]===i[0],s=a[a.length-1]===i[i.length-1],u=[];for(e=i.length-1;e>=0;--e)u.push(t[r[i[e]][2]]);for(e=+f;e<a.length-s;++e)u.push(t[r[a[e]][2]]);return u}function jx(t,e){for(var n=t.length,r=t[n-1],o=e[0],i=e[1],a=r[0],f=r[1],s,u,c=!1,h=0;h<n;++h)r=t[h],s=r[0],u=r[1],u>i!=f>i&&o<(a-s)*(i-u)/(f-u)+s&&(c=!c),a=s,f=u;return c}function Kx(t){for(var e=-1,n=t.length,r=t[n-1],o,i,a=r[0],f=r[1],s=0;++e<n;)o=a,i=f,r=t[e],a=r[0],f=r[1],o-=a,i-=f,s+=Math.hypot(o,i);return s}var zh={};pt(zh,{randomBates:()=>nb,randomBernoulli:()=>ib,randomBeta:()=>Wu,randomBinomial:()=>Vu,randomCauchy:()=>fb,randomExponential:()=>rb,randomGamma:()=>Zo,randomGeometric:()=>Xu,randomInt:()=>tb,randomIrwinHall:()=>Hu,randomLcg:()=>Fh,randomLogNormal:()=>eb,randomLogistic:()=>ub,randomNormal:()=>Go,randomPareto:()=>ob,randomPoisson:()=>sb,randomUniform:()=>Jx,randomWeibull:()=>ab});var it=Math.random;var Jx=(function t(e){function n(r,o){return r=r==null?0:+r,o=o==null?1:+o,arguments.length===1?(o=r,r=0):o-=r,function(){return e()*o+r}}return n.source=t,n})(it);var tb=(function t(e){function n(r,o){return arguments.length<2&&(o=r,r=0),r=Math.floor(r),o=Math.floor(o)-r,function(){return Math.floor(e()*o+r)}}return n.source=t,n})(it);var Go=(function t(e){function n(r,o){var i,a;return r=r==null?0:+r,o=o==null?1:+o,function(){var f;if(i!=null)f=i,i=null;else do i=e()*2-1,f=e()*2-1,a=i*i+f*f;while(!a||a>1);return r+o*f*Math.sqrt(-2*Math.log(a)/a)}}return n.source=t,n})(it);var eb=(function t(e){var n=Go.source(e);function r(){var o=n.apply(this,arguments);return function(){return Math.exp(o())}}return r.source=t,r})(it);var Hu=(function t(e){function n(r){return(r=+r)<=0?()=>0:function(){for(var o=0,i=r;i>1;--i)o+=e();return o+i*e()}}return n.source=t,n})(it);var nb=(function t(e){var n=Hu.source(e);function r(o){if((o=+o)==0)return e;var i=n(o);return function(){return i()/o}}return r.source=t,r})(it);var rb=(function t(e){function n(r){return function(){return-Math.log1p(-e())/r}}return n.source=t,n})(it);var ob=(function t(e){function n(r){if((r=+r)<0)throw new RangeError("invalid alpha");return r=1/-r,function(){return Math.pow(1-e(),r)}}return n.source=t,n})(it);var ib=(function t(e){function n(r){if((r=+r)<0||r>1)throw new RangeError("invalid p");return function(){return Math.floor(e()+r)}}return n.source=t,n})(it);var Xu=(function t(e){function n(r){if((r=+r)<0||r>1)throw new RangeError("invalid p");return r===0?()=>1/0:r===1?()=>1:(r=Math.log1p(-r),function(){return 1+Math.floor(Math.log1p(-e())/r)})}return n.source=t,n})(it);var Zo=(function t(e){var n=Go.source(e)();function r(o,i){if((o=+o)<0)throw new RangeError("invalid k");if(o===0)return()=>0;if(i=i==null?1:+i,o===1)return()=>-Math.log1p(-e())*i;var a=(o<1?o+1:o)-1/3,f=1/(3*Math.sqrt(a)),s=o<1?()=>Math.pow(e(),1/o):()=>1;return function(){do{do var u=n(),c=1+f*u;while(c<=0);c*=c*c;var h=1-e()}while(h>=1-.0331*u*u*u*u&&Math.log(h)>=.5*u*u+a*(1-c+Math.log(c)));return a*c*s()*i}}return r.source=t,r})(it);var Wu=(function t(e){var n=Zo.source(e);function r(o,i){var a=n(o),f=n(i);return function(){var s=a();return s===0?0:s/(s+f())}}return r.source=t,r})(it);var Vu=(function t(e){var n=Xu.source(e),r=Wu.source(e);function o(i,a){return i=+i,(a=+a)>=1?()=>i:a<=0?()=>0:function(){for(var f=0,s=i,u=a;s*u>16&&s*(1-u)>16;){var c=Math.floor((s+1)*u),h=r(c,s-c+1)();h<=u?(f+=c,s-=c,u=(u-h)/(1-h)):(s=c-1,u/=h)}for(var l=u<.5,p=l?u:1-u,g=n(p),d=g(),m=0;d<=s;++m)d+=g();return f+(l?m:s-m)}}return o.source=t,o})(it);var ab=(function t(e){function n(r,o,i){var a;return(r=+r)==0?a=f=>-Math.log(f):(r=1/r,a=f=>Math.pow(f,r)),o=o==null?0:+o,i=i==null?1:+i,function(){return o+i*a(-Math.log1p(-e()))}}return n.source=t,n})(it);var fb=(function t(e){function n(r,o){return r=r==null?0:+r,o=o==null?1:+o,function(){return r+o*Math.tan(Math.PI*e())}}return n.source=t,n})(it);var ub=(function t(e){function n(r,o){return r=r==null?0:+r,o=o==null?1:+o,function(){var i=e();return r+o*Math.log(i/(1-i))}}return n.source=t,n})(it);var sb=(function t(e){var n=Zo.source(e),r=Vu.source(e);function o(i){return function(){for(var a=0,f=i;f>16;){var s=Math.floor(.875*f),u=n(s)();if(u>f)return a+r(s-1,f/u)();a+=s,f-=u}for(var c=-Math.log1p(-e()),h=0;c<=f;++h)c-=Math.log1p(-e());return a+h}}return o.source=t,o})(it);var cb=23283064365386963e-26;function Fh(t=Math.random()){let e=(0<=t&&t<1?t/cb:Math.abs(t))|0;return()=>(e=1664525*e+1013904223|0,cb*(e>>>0))}var pp={};pt(pp,{scaleBand:()=>va,scaleDiverging:()=>ms,scaleDivergingLog:()=>lp,scaleDivergingPow:()=>ds,scaleDivergingSqrt:()=>ly,scaleDivergingSymlog:()=>hp,scaleIdentity:()=>Qu,scaleImplicit:()=>Gu,scaleLinear:()=>Zu,scaleLog:()=>ju,scaleOrdinal:()=>Qo,scalePoint:()=>hb,scalePow:()=>Ea,scaleQuantile:()=>ts,scaleQuantize:()=>es,scaleRadial:()=>Ju,scaleSequential:()=>cs,scaleSequentialLog:()=>sp,scaleSequentialPow:()=>ls,scaleSequentialQuantile:()=>hs,scaleSequentialSqrt:()=>cy,scaleSequentialSymlog:()=>cp,scaleSqrt:()=>_b,scaleSymlog:()=>Ku,scaleThreshold:()=>ns,scaleTime:()=>fp,scaleUtc:()=>up,tickFormat:()=>wa});function wt(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function ve(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}var Gu=Symbol("implicit");function Qo(){var t=new Ee,e=[],n=[],r=Gu;function o(i){let a=t.get(i);if(a===void 0){if(r!==Gu)return r;t.set(i,a=e.push(i)-1)}return n[a%n.length]}return o.domain=function(i){if(!arguments.length)return e.slice();e=[],t=new Ee;for(let a of i)t.has(a)||t.set(a,e.push(a)-1);return o},o.range=function(i){return arguments.length?(n=Array.from(i),o):n.slice()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return Qo(e,n).unknown(r)},wt.apply(o,arguments),o}function va(){var t=Qo().unknown(void 0),e=t.domain,n=t.range,r=0,o=1,i,a,f=!1,s=0,u=0,c=.5;delete t.unknown;function h(){var l=e().length,p=o<r,g=p?o:r,d=p?r:o;i=(d-g)/Math.max(1,l-s+u*2),f&&(i=Math.floor(i)),g+=(d-g-i*(l-s))*c,a=i*(1-s),f&&(g=Math.round(g),a=Math.round(a));var m=de(l).map(function(x){return g+i*x});return n(p?m.reverse():m)}return t.domain=function(l){return arguments.length?(e(l),h()):e()},t.range=function(l){return arguments.length?([r,o]=l,r=+r,o=+o,h()):[r,o]},t.rangeRound=function(l){return[r,o]=l,r=+r,o=+o,f=!0,h()},t.bandwidth=function(){return a},t.step=function(){return i},t.round=function(l){return arguments.length?(f=!!l,h()):f},t.padding=function(l){return arguments.length?(s=Math.min(1,u=+l),h()):s},t.paddingInner=function(l){return arguments.length?(s=Math.min(1,l),h()):s},t.paddingOuter=function(l){return arguments.length?(u=+l,h()):u},t.align=function(l){return arguments.length?(c=Math.max(0,Math.min(1,l)),h()):c},t.copy=function(){return va(e(),[r,o]).round(f).paddingInner(s).paddingOuter(u).align(c)},wt.apply(h(),arguments)}function lb(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return lb(e())},t}function hb(){return lb(va.apply(null,arguments).paddingInner(1))}function Lh(t){return function(){return t}}function tr(t){return+t}var pb=[0,1];function qt(t){return t}function Yh(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Lh(isNaN(e)?NaN:.5)}function u8(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function s8(t,e,n){var r=t[0],o=t[1],i=e[0],a=e[1];return o<r?(r=Yh(o,r),i=n(a,i)):(r=Yh(r,o),i=n(i,a)),function(f){return i(r(f))}}function c8(t,e,n){var r=Math.min(t.length,e.length)-1,o=new Array(r),i=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)o[a]=Yh(t[a],t[a+1]),i[a]=n(e[a],e[a+1]);return function(f){var s=ie(t,f,1,r)-1;return i[s](o[s](f))}}function en(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Br(){var t=pb,e=pb,n=Wt,r,o,i,a=qt,f,s,u;function c(){var l=Math.min(t.length,e.length);return a!==qt&&(a=u8(t[0],t[l-1])),f=l>2?c8:s8,s=u=null,h}function h(l){return l==null||isNaN(l=+l)?i:(s||(s=f(t.map(r),e,n)))(r(a(l)))}return h.invert=function(l){return a(o((u||(u=f(e,t.map(r),Ft)))(l)))},h.domain=function(l){return arguments.length?(t=Array.from(l,tr),c()):t.slice()},h.range=function(l){return arguments.length?(e=Array.from(l),c()):e.slice()},h.rangeRound=function(l){return e=Array.from(l),n=$n,c()},h.clamp=function(l){return arguments.length?(a=l?!0:qt,c()):a!==qt},h.interpolate=function(l){return arguments.length?(n=l,c()):n},h.unknown=function(l){return arguments.length?(i=l,h):i},function(l,p){return r=l,o=p,c()}}function Hr(){return Br()(qt,qt)}function wa(t,e,n,r){var o=ar(t,e,n),i;switch(r=Pe(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(i=Xf(o,a))&&(r.precision=i),ji(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=Wf(o,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=Hf(o))&&(r.precision=i-(r.type==="%")*2);break}}return Ir(r)}function oe(t){var e=t.domain;return t.ticks=function(n){var r=e();return fe(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var o=e();return wa(o[0],o[o.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),o=0,i=r.length-1,a=r[o],f=r[i],s,u,c=10;for(f<a&&(u=a,a=f,f=u,u=o,o=i,i=u);c-- >0;){if(u=ke(a,f,n),u===s)return r[o]=a,r[i]=f,e(r);if(u>0)a=Math.floor(a/u)*u,f=Math.ceil(f/u)*u;else if(u<0)a=Math.ceil(a*u)/u,f=Math.floor(f*u)/u;else break;s=u}return t},t}function Zu(){var t=Hr();return t.copy=function(){return en(t,Zu())},wt.apply(t,arguments),oe(t)}function Qu(t){var e;function n(r){return r==null||isNaN(r=+r)?e:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(t=Array.from(r,tr),n):t.slice()},n.unknown=function(r){return arguments.length?(e=r,n):e},n.copy=function(){return Qu(t).unknown(e)},t=arguments.length?Array.from(t,tr):[0,1],oe(n)}function Ma(t,e){t=t.slice();var n=0,r=t.length-1,o=t[n],i=t[r],a;return i<o&&(a=n,n=r,r=a,a=o,o=i,i=a),t[n]=e.floor(o),t[r]=e.ceil(i),t}function mb(t){return Math.log(t)}function db(t){return Math.exp(t)}function l8(t){return-Math.log(-t)}function h8(t){return-Math.exp(-t)}function p8(t){return isFinite(t)?+("1e"+t):t<0?0:t}function m8(t){return t===10?p8:t===Math.E?Math.exp:e=>Math.pow(t,e)}function d8(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function gb(t){return(e,n)=>-t(-e,n)}function Sa(t){let e=t(mb,db),n=e.domain,r=10,o,i;function a(){return o=d8(r),i=m8(r),n()[0]<0?(o=gb(o),i=gb(i),t(l8,h8)):t(mb,db),e}return e.base=function(f){return arguments.length?(r=+f,a()):r},e.domain=function(f){return arguments.length?(n(f),a()):n()},e.ticks=f=>{let s=n(),u=s[0],c=s[s.length-1],h=c<u;h&&([u,c]=[c,u]);let l=o(u),p=o(c),g,d,m=f==null?10:+f,x=[];if(!(r%1)&&p-l<m){if(l=Math.floor(l),p=Math.ceil(p),u>0){for(;l<=p;++l)for(g=1;g<r;++g)if(d=l<0?g/i(-l):g*i(l),!(d<u)){if(d>c)break;x.push(d)}}else for(;l<=p;++l)for(g=r-1;g>=1;--g)if(d=l>0?g/i(-l):g*i(l),!(d<u)){if(d>c)break;x.push(d)}x.length*2<m&&(x=fe(u,c,m))}else x=fe(l,p,Math.min(p-l,m)).map(i);return h?x.reverse():x},e.tickFormat=(f,s)=>{if(f==null&&(f=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=Pe(s)).precision==null&&(s.trim=!0),s=Ir(s)),f===1/0)return s;let u=Math.max(1,r*f/e.ticks().length);return c=>{let h=c/i(Math.round(o(c)));return h*r<r-.5&&(h*=r),h<=u?s(c):""}},e.nice=()=>n(Ma(n(),{floor:f=>i(Math.floor(o(f))),ceil:f=>i(Math.ceil(o(f)))})),e}function ju(){let t=Sa(Br()).domain([1,10]);return t.copy=()=>en(t,ju()).base(t.base()),wt.apply(t,arguments),t}function xb(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function bb(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Ta(t){var e=1,n=t(xb(e),bb(e));return n.constant=function(r){return arguments.length?t(xb(e=+r),bb(e)):e},oe(n)}function Ku(){var t=Ta(Br());return t.copy=function(){return en(t,Ku()).constant(t.constant())},wt.apply(t,arguments)}function yb(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function g8(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function x8(t){return t<0?-t*t:t*t}function Aa(t){var e=t(qt,qt),n=1;function r(){return n===1?t(qt,qt):n===.5?t(g8,x8):t(yb(n),yb(1/n))}return e.exponent=function(o){return arguments.length?(n=+o,r()):n},oe(e)}function Ea(){var t=Aa(Br());return t.copy=function(){return en(t,Ea()).exponent(t.exponent())},wt.apply(t,arguments),t}function _b(){return Ea.apply(null,arguments).exponent(.5)}function vb(t){return Math.sign(t)*t*t}function b8(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function Ju(){var t=Hr(),e=[0,1],n=!1,r;function o(i){var a=b8(t(i));return isNaN(a)?r:n?Math.round(a):a}return o.invert=function(i){return t.invert(vb(i))},o.domain=function(i){return arguments.length?(t.domain(i),o):t.domain()},o.range=function(i){return arguments.length?(t.range((e=Array.from(i,tr)).map(vb)),o):e.slice()},o.rangeRound=function(i){return o.range(i).round(!0)},o.round=function(i){return arguments.length?(n=!!i,o):n},o.clamp=function(i){return arguments.length?(t.clamp(i),o):t.clamp()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return Ju(t.domain(),e).round(n).clamp(t.clamp()).unknown(r)},wt.apply(o,arguments),oe(o)}function ts(){var t=[],e=[],n=[],r;function o(){var a=0,f=Math.max(1,e.length);for(n=new Array(f-1);++a<f;)n[a-1]=Wa(t,a/f);return i}function i(a){return a==null||isNaN(a=+a)?r:e[ie(n,a)]}return i.invertExtent=function(a){var f=e.indexOf(a);return f<0?[NaN,NaN]:[f>0?n[f-1]:t[0],f<n.length?n[f]:t[t.length-1]]},i.domain=function(a){if(!arguments.length)return t.slice();t=[];for(let f of a)f!=null&&!isNaN(f=+f)&&t.push(f);return t.sort(et),o()},i.range=function(a){return arguments.length?(e=Array.from(a),o()):e.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return ts().domain(t).range(e).unknown(r)},wt.apply(i,arguments)}function es(){var t=0,e=1,n=1,r=[.5],o=[0,1],i;function a(s){return s!=null&&s<=s?o[ie(r,s,0,n)]:i}function f(){var s=-1;for(r=new Array(n);++s<n;)r[s]=((s+1)*e-(s-n)*t)/(n+1);return a}return a.domain=function(s){return arguments.length?([t,e]=s,t=+t,e=+e,f()):[t,e]},a.range=function(s){return arguments.length?(n=(o=Array.from(s)).length-1,f()):o.slice()},a.invertExtent=function(s){var u=o.indexOf(s);return u<0?[NaN,NaN]:u<1?[t,r[0]]:u>=n?[r[n-1],e]:[r[u-1],r[u]]},a.unknown=function(s){return arguments.length&&(i=s),a},a.thresholds=function(){return r.slice()},a.copy=function(){return es().domain([t,e]).range(o).unknown(i)},wt.apply(oe(a),arguments)}function ns(){var t=[.5],e=[0,1],n,r=1;function o(i){return i!=null&&i<=i?e[ie(t,i,0,r)]:n}return o.domain=function(i){return arguments.length?(t=Array.from(i),r=Math.min(t.length,e.length-1),o):t.slice()},o.range=function(i){return arguments.length?(e=Array.from(i),r=Math.min(t.length,e.length-1),o):e.slice()},o.invertExtent=function(i){var a=e.indexOf(i);return[t[a-1],t[a]]},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return ns().domain(t).range(e).unknown(n)},wt.apply(o,arguments)}var ep={};pt(ep,{timeDay:()=>rn,timeDays:()=>Ab,timeFriday:()=>Vh,timeFridays:()=>Db,timeHour:()=>Zr,timeHours:()=>Sb,timeInterval:()=>dt,timeMillisecond:()=>er,timeMilliseconds:()=>Bh,timeMinute:()=>Wr,timeMinutes:()=>wb,timeMonday:()=>Kr,timeMondays:()=>Rb,timeMonth:()=>eo,timeMonths:()=>$b,timeSaturday:()=>Gh,timeSaturdays:()=>qb,timeSecond:()=>me,timeSeconds:()=>Hh,timeSunday:()=>on,timeSundays:()=>Zh,timeThursday:()=>En,timeThursdays:()=>Pb,timeTickInterval:()=>as,timeTicks:()=>is,timeTuesday:()=>Xh,timeTuesdays:()=>Cb,timeWednesday:()=>Wh,timeWednesdays:()=>Ib,timeWeek:()=>on,timeWeeks:()=>Zh,timeYear:()=>ce,timeYears:()=>Hb,unixDay:()=>Na,unixDays:()=>kb,utcDay:()=>nr,utcDays:()=>Eb,utcFriday:()=>Kh,utcFridays:()=>Yb,utcHour:()=>Qr,utcHours:()=>Tb,utcMillisecond:()=>er,utcMilliseconds:()=>Bh,utcMinute:()=>Vr,utcMinutes:()=>Mb,utcMonday:()=>to,utcMondays:()=>Ob,utcMonth:()=>no,utcMonths:()=>Bb,utcSaturday:()=>Jh,utcSaturdays:()=>Ub,utcSecond:()=>me,utcSeconds:()=>Hh,utcSunday:()=>an,utcSundays:()=>tp,utcThursday:()=>kn,utcThursdays:()=>Lb,utcTickInterval:()=>os,utcTicks:()=>rs,utcTuesday:()=>Qh,utcTuesdays:()=>Fb,utcWednesday:()=>jh,utcWednesdays:()=>zb,utcWeek:()=>an,utcWeeks:()=>tp,utcYear:()=>le,utcYears:()=>Xb});var Uh=new Date,$h=new Date;function dt(t,e,n,r){function o(i){return t(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(t(i=new Date(+i)),i),o.ceil=i=>(t(i=new Date(i-1)),e(i,1),t(i),i),o.round=i=>{let a=o(i),f=o.ceil(i);return i-a<f-i?a:f},o.offset=(i,a)=>(e(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,f)=>{let s=[];if(i=o.ceil(i),f=f==null?1:Math.floor(f),!(i<a)||!(f>0))return s;let u;do s.push(u=new Date(+i)),e(i,f),t(i);while(u<i&&i<a);return s},o.filter=i=>dt(a=>{if(a>=a)for(;t(a),!i(a);)a.setTime(a-1)},(a,f)=>{if(a>=a)if(f<0)for(;++f<=0;)for(;e(a,-1),!i(a););else for(;--f>=0;)for(;e(a,1),!i(a););}),n&&(o.count=(i,a)=>(Uh.setTime(+i),$h.setTime(+a),t(Uh),t($h),Math.floor(n(Uh,$h))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?a=>r(a)%i===0:a=>o.count(0,a)%i===0):o)),o}var er=dt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);er.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?dt(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):er);var Bh=er.range;var me=dt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),Hh=me.range;var Wr=dt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),wb=Wr.range,Vr=dt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),Mb=Vr.range;var Zr=dt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3-t.getMinutes()*6e4)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getHours()),Sb=Zr.range,Qr=dt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),Tb=Qr.range;var rn=dt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1),Ab=rn.range,nr=dt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),Eb=nr.range,Na=dt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),kb=Na.range;function jr(t){return dt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}var on=jr(0),Kr=jr(1),Xh=jr(2),Wh=jr(3),En=jr(4),Vh=jr(5),Gh=jr(6),Zh=on.range,Rb=Kr.range,Cb=Xh.range,Ib=Wh.range,Pb=En.range,Db=Vh.range,qb=Gh.range;function Jr(t){return dt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/6048e5)}var an=Jr(0),to=Jr(1),Qh=Jr(2),jh=Jr(3),kn=Jr(4),Kh=Jr(5),Jh=Jr(6),tp=an.range,Ob=to.range,Fb=Qh.range,zb=jh.range,Lb=kn.range,Yb=Kh.range,Ub=Jh.range;var eo=dt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),$b=eo.range,no=dt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),Bb=no.range;var ce=dt(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ce.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:dt(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});var Hb=ce.range,le=dt(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());le.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:dt(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});var Xb=le.range;function Vb(t,e,n,r,o,i){let a=[[me,1,1e3],[me,5,5*1e3],[me,15,15*1e3],[me,30,30*1e3],[i,1,6e4],[i,5,5*6e4],[i,15,15*6e4],[i,30,30*6e4],[o,1,36e5],[o,3,3*36e5],[o,6,6*36e5],[o,12,12*36e5],[r,1,864e5],[r,2,2*864e5],[n,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function f(u,c,h){let l=c<u;l&&([u,c]=[c,u]);let p=h&&typeof h.range=="function"?h:s(u,c,h),g=p?p.range(u,+c+1):[];return l?g.reverse():g}function s(u,c,h){let l=Math.abs(c-u)/h,p=Cn(([,,m])=>m).right(a,l);if(p===a.length)return t.every(ar(u/31536e6,c/31536e6,h));if(p===0)return er.every(Math.max(ar(u,c,h),1));let[g,d]=a[l/a[p-1][2]<a[p][2]/l?p-1:p];return g.every(d)}return[f,s]}var[rs,os]=Vb(le,no,an,Na,Qr,Vr),[is,as]=Vb(ce,eo,on,rn,Zr,Wr);var ap={};pt(ap,{isoFormat:()=>uy,isoParse:()=>sy,timeFormat:()=>Da,timeFormatDefaultLocale:()=>fs,timeFormatLocale:()=>Pa,timeParse:()=>op,utcFormat:()=>ro,utcParse:()=>qa});function np(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function rp(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ra(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Pa(t){var e=t.dateTime,n=t.date,r=t.time,o=t.periods,i=t.days,a=t.shortDays,f=t.months,s=t.shortMonths,u=Ca(o),c=Ia(o),h=Ca(i),l=Ia(i),p=Ca(a),g=Ia(a),d=Ca(f),m=Ia(f),x=Ca(s),_=Ia(s),y={a:P,A:O,b:q,B:L,c:null,d:Jb,e:Jb,f:$8,g:K8,G:t5,H:L8,I:Y8,j:U8,L:oy,m:B8,M:H8,p:X,q:W,Q:ny,s:ry,S:X8,u:W8,U:V8,V:G8,w:Z8,W:Q8,x:null,X:null,y:j8,Y:J8,Z:e5,"%":ey},b={a:lt,A:at,b:nt,B:Ct,c:null,d:ty,e:ty,f:i5,g:d5,G:x5,H:n5,I:r5,j:o5,L:ay,m:a5,M:f5,p:ut,q:kt,Q:ny,s:ry,S:u5,u:s5,U:c5,V:l5,w:h5,W:p5,x:null,X:null,y:m5,Y:g5,Z:b5,"%":ey},v={a:E,A:k,b:I,B:C,c:M,d:jb,e:jb,f:q8,g:Qb,G:Zb,H:Kb,I:Kb,j:C8,L:D8,m:R8,M:I8,p:N,q:N8,Q:F8,s:z8,S:P8,u:S8,U:T8,V:A8,w:M8,W:E8,x:S,X:T,y:Qb,Y:Zb,Z:k8,"%":O8};y.x=w(n,y),y.X=w(r,y),y.c=w(e,y),b.x=w(n,b),b.X=w(r,b),b.c=w(e,b);function w($,K){return function(tt){var F=[],St=-1,ht=0,jt=$.length,Kt,Q,Tt;for(tt instanceof Date||(tt=new Date(+tt));++St<jt;)$.charCodeAt(St)===37&&(F.push($.slice(ht,St)),(Q=Gb[Kt=$.charAt(++St)])!=null?Kt=$.charAt(++St):Q=Kt==="e"?" ":"0",(Tt=K[Kt])&&(Kt=Tt(tt,Q)),F.push(Kt),ht=St+1);return F.push($.slice(ht,St)),F.join("")}}function A($,K){return function(tt){var F=Ra(1900,void 0,1),St=R(F,$,tt+="",0),ht,jt;if(St!=tt.length)return null;if("Q"in F)return new Date(F.Q);if("s"in F)return new Date(F.s*1e3+("L"in F?F.L:0));if(K&&!("Z"in F)&&(F.Z=0),"p"in F&&(F.H=F.H%12+F.p*12),F.m===void 0&&(F.m="q"in F?F.q:0),"V"in F){if(F.V<1||F.V>53)return null;"w"in F||(F.w=1),"Z"in F?(ht=rp(Ra(F.y,0,1)),jt=ht.getUTCDay(),ht=jt>4||jt===0?to.ceil(ht):to(ht),ht=nr.offset(ht,(F.V-1)*7),F.y=ht.getUTCFullYear(),F.m=ht.getUTCMonth(),F.d=ht.getUTCDate()+(F.w+6)%7):(ht=np(Ra(F.y,0,1)),jt=ht.getDay(),ht=jt>4||jt===0?Kr.ceil(ht):Kr(ht),ht=rn.offset(ht,(F.V-1)*7),F.y=ht.getFullYear(),F.m=ht.getMonth(),F.d=ht.getDate()+(F.w+6)%7)}else("W"in F||"U"in F)&&("w"in F||(F.w="u"in F?F.u%7:"W"in F?1:0),jt="Z"in F?rp(Ra(F.y,0,1)).getUTCDay():np(Ra(F.y,0,1)).getDay(),F.m=0,F.d="W"in F?(F.w+6)%7+F.W*7-(jt+5)%7:F.w+F.U*7-(jt+6)%7);return"Z"in F?(F.H+=F.Z/100|0,F.M+=F.Z%100,rp(F)):np(F)}}function R($,K,tt,F){for(var St=0,ht=K.length,jt=tt.length,Kt,Q;St<ht;){if(F>=jt)return-1;if(Kt=K.charCodeAt(St++),Kt===37){if(Kt=K.charAt(St++),Q=v[Kt in Gb?K.charAt(St++):Kt],!Q||(F=Q($,tt,F))<0)return-1}else if(Kt!=tt.charCodeAt(F++))return-1}return F}function N($,K,tt){var F=u.exec(K.slice(tt));return F?($.p=c.get(F[0].toLowerCase()),tt+F[0].length):-1}function E($,K,tt){var F=p.exec(K.slice(tt));return F?($.w=g.get(F[0].toLowerCase()),tt+F[0].length):-1}function k($,K,tt){var F=h.exec(K.slice(tt));return F?($.w=l.get(F[0].toLowerCase()),tt+F[0].length):-1}function I($,K,tt){var F=x.exec(K.slice(tt));return F?($.m=_.get(F[0].toLowerCase()),tt+F[0].length):-1}function C($,K,tt){var F=d.exec(K.slice(tt));return F?($.m=m.get(F[0].toLowerCase()),tt+F[0].length):-1}function M($,K,tt){return R($,e,K,tt)}function S($,K,tt){return R($,n,K,tt)}function T($,K,tt){return R($,r,K,tt)}function P($){return a[$.getDay()]}function O($){return i[$.getDay()]}function q($){return s[$.getMonth()]}function L($){return f[$.getMonth()]}function X($){return o[+($.getHours()>=12)]}function W($){return 1+~~($.getMonth()/3)}function lt($){return a[$.getUTCDay()]}function at($){return i[$.getUTCDay()]}function nt($){return s[$.getUTCMonth()]}function Ct($){return f[$.getUTCMonth()]}function ut($){return o[+($.getUTCHours()>=12)]}function kt($){return 1+~~($.getUTCMonth()/3)}return{format:function($){var K=w($+="",y);return K.toString=function(){return $},K},parse:function($){var K=A($+="",!1);return K.toString=function(){return $},K},utcFormat:function($){var K=w($+="",b);return K.toString=function(){return $},K},utcParse:function($){var K=A($+="",!0);return K.toString=function(){return $},K}}}var Gb={"-":"",_:" ",0:"0"},Yt=/^\s*\d+/,_8=/^%/,v8=/[\\^$*+?|[\]().{}]/g;function ct(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(e)+o:o)}function w8(t){return t.replace(v8,"\\$&")}function Ca(t){return new RegExp("^(?:"+t.map(w8).join("|")+")","i")}function Ia(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function M8(t,e,n){var r=Yt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function S8(t,e,n){var r=Yt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function T8(t,e,n){var r=Yt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function A8(t,e,n){var r=Yt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function E8(t,e,n){var r=Yt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Zb(t,e,n){var r=Yt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Qb(t,e,n){var r=Yt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function k8(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function N8(t,e,n){var r=Yt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function R8(t,e,n){var r=Yt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function jb(t,e,n){var r=Yt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function C8(t,e,n){var r=Yt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Kb(t,e,n){var r=Yt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function I8(t,e,n){var r=Yt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function P8(t,e,n){var r=Yt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function D8(t,e,n){var r=Yt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function q8(t,e,n){var r=Yt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function O8(t,e,n){var r=_8.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function F8(t,e,n){var r=Yt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function z8(t,e,n){var r=Yt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Jb(t,e){return ct(t.getDate(),e,2)}function L8(t,e){return ct(t.getHours(),e,2)}function Y8(t,e){return ct(t.getHours()%12||12,e,2)}function U8(t,e){return ct(1+rn.count(ce(t),t),e,3)}function oy(t,e){return ct(t.getMilliseconds(),e,3)}function $8(t,e){return oy(t,e)+"000"}function B8(t,e){return ct(t.getMonth()+1,e,2)}function H8(t,e){return ct(t.getMinutes(),e,2)}function X8(t,e){return ct(t.getSeconds(),e,2)}function W8(t){var e=t.getDay();return e===0?7:e}function V8(t,e){return ct(on.count(ce(t)-1,t),e,2)}function iy(t){var e=t.getDay();return e>=4||e===0?En(t):En.ceil(t)}function G8(t,e){return t=iy(t),ct(En.count(ce(t),t)+(ce(t).getDay()===4),e,2)}function Z8(t){return t.getDay()}function Q8(t,e){return ct(Kr.count(ce(t)-1,t),e,2)}function j8(t,e){return ct(t.getFullYear()%100,e,2)}function K8(t,e){return t=iy(t),ct(t.getFullYear()%100,e,2)}function J8(t,e){return ct(t.getFullYear()%1e4,e,4)}function t5(t,e){var n=t.getDay();return t=n>=4||n===0?En(t):En.ceil(t),ct(t.getFullYear()%1e4,e,4)}function e5(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+ct(e/60|0,"0",2)+ct(e%60,"0",2)}function ty(t,e){return ct(t.getUTCDate(),e,2)}function n5(t,e){return ct(t.getUTCHours(),e,2)}function r5(t,e){return ct(t.getUTCHours()%12||12,e,2)}function o5(t,e){return ct(1+nr.count(le(t),t),e,3)}function ay(t,e){return ct(t.getUTCMilliseconds(),e,3)}function i5(t,e){return ay(t,e)+"000"}function a5(t,e){return ct(t.getUTCMonth()+1,e,2)}function f5(t,e){return ct(t.getUTCMinutes(),e,2)}function u5(t,e){return ct(t.getUTCSeconds(),e,2)}function s5(t){var e=t.getUTCDay();return e===0?7:e}function c5(t,e){return ct(an.count(le(t)-1,t),e,2)}function fy(t){var e=t.getUTCDay();return e>=4||e===0?kn(t):kn.ceil(t)}function l5(t,e){return t=fy(t),ct(kn.count(le(t),t)+(le(t).getUTCDay()===4),e,2)}function h5(t){return t.getUTCDay()}function p5(t,e){return ct(to.count(le(t)-1,t),e,2)}function m5(t,e){return ct(t.getUTCFullYear()%100,e,2)}function d5(t,e){return t=fy(t),ct(t.getUTCFullYear()%100,e,2)}function g5(t,e){return ct(t.getUTCFullYear()%1e4,e,4)}function x5(t,e){var n=t.getUTCDay();return t=n>=4||n===0?kn(t):kn.ceil(t),ct(t.getUTCFullYear()%1e4,e,4)}function b5(){return"+0000"}function ey(){return"%"}function ny(t){return+t}function ry(t){return Math.floor(+t/1e3)}var jo,Da,op,ro,qa;fs({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"]});function fs(t){return jo=Pa(t),Da=jo.format,op=jo.parse,ro=jo.utcFormat,qa=jo.utcParse,jo}var ip="%Y-%m-%dT%H:%M:%S.%LZ";function y5(t){return t.toISOString()}var _5=Date.prototype.toISOString?y5:ro(ip),uy=_5;function v5(t){var e=new Date(t);return isNaN(e)?null:e}var w5=+new Date("2000-01-01T00:00:00.000Z")?v5:qa(ip),sy=w5;function M5(t){return new Date(t)}function S5(t){return t instanceof Date?+t:+new Date(+t)}function us(t,e,n,r,o,i,a,f,s,u){var c=Hr(),h=c.invert,l=c.domain,p=u(".%L"),g=u(":%S"),d=u("%I:%M"),m=u("%I %p"),x=u("%a %d"),_=u("%b %d"),y=u("%B"),b=u("%Y");function v(w){return(s(w)<w?p:f(w)<w?g:a(w)<w?d:i(w)<w?m:r(w)<w?o(w)<w?x:_:n(w)<w?y:b)(w)}return c.invert=function(w){return new Date(h(w))},c.domain=function(w){return arguments.length?l(Array.from(w,S5)):l().map(M5)},c.ticks=function(w){var A=l();return t(A[0],A[A.length-1],w??10)},c.tickFormat=function(w,A){return A==null?v:u(A)},c.nice=function(w){var A=l();return(!w||typeof w.range!="function")&&(w=e(A[0],A[A.length-1],w??10)),w?l(Ma(A,w)):c},c.copy=function(){return en(c,us(t,e,n,r,o,i,a,f,s,u))},c}function fp(){return wt.apply(us(is,as,ce,eo,on,rn,Zr,Wr,me,Da).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function up(){return wt.apply(us(rs,os,le,no,an,nr,Qr,Vr,me,ro).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ss(){var t=0,e=1,n,r,o,i,a=qt,f=!1,s;function u(h){return h==null||isNaN(h=+h)?s:a(o===0?.5:(h=(i(h)-n)*o,f?Math.max(0,Math.min(1,h)):h))}u.domain=function(h){return arguments.length?([t,e]=h,n=i(t=+t),r=i(e=+e),o=n===r?0:1/(r-n),u):[t,e]},u.clamp=function(h){return arguments.length?(f=!!h,u):f},u.interpolator=function(h){return arguments.length?(a=h,u):a};function c(h){return function(l){var p,g;return arguments.length?([p,g]=l,a=h(p,g),u):[a(0),a(1)]}}return u.range=c(Wt),u.rangeRound=c($n),u.unknown=function(h){return arguments.length?(s=h,u):s},function(h){return i=h,n=h(t),r=h(e),o=n===r?0:1/(r-n),u}}function Nn(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function cs(){var t=oe(ss()(qt));return t.copy=function(){return Nn(t,cs())},ve.apply(t,arguments)}function sp(){var t=Sa(ss()).domain([1,10]);return t.copy=function(){return Nn(t,sp()).base(t.base())},ve.apply(t,arguments)}function cp(){var t=Ta(ss());return t.copy=function(){return Nn(t,cp()).constant(t.constant())},ve.apply(t,arguments)}function ls(){var t=Aa(ss());return t.copy=function(){return Nn(t,ls()).exponent(t.exponent())},ve.apply(t,arguments)}function cy(){return ls.apply(null,arguments).exponent(.5)}function hs(){var t=[],e=qt;function n(r){if(r!=null&&!isNaN(r=+r))return e((ie(t,r,1)-1)/(t.length-1))}return n.domain=function(r){if(!arguments.length)return t.slice();t=[];for(let o of r)o!=null&&!isNaN(o=+o)&&t.push(o);return t.sort(et),n},n.interpolator=function(r){return arguments.length?(e=r,n):e},n.range=function(){return t.map((r,o)=>e(o/(t.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(o,i)=>Ue(t,i/r))},n.copy=function(){return hs(e).domain(t)},ve.apply(n,arguments)}function ps(){var t=0,e=.5,n=1,r=1,o,i,a,f,s,u=qt,c,h=!1,l;function p(d){return isNaN(d=+d)?l:(d=.5+((d=+c(d))-i)*(r*d<r*i?f:s),u(h?Math.max(0,Math.min(1,d)):d))}p.domain=function(d){return arguments.length?([t,e,n]=d,o=c(t=+t),i=c(e=+e),a=c(n=+n),f=o===i?0:.5/(i-o),s=i===a?0:.5/(a-i),r=i<o?-1:1,p):[t,e,n]},p.clamp=function(d){return arguments.length?(h=!!d,p):h},p.interpolator=function(d){return arguments.length?(u=d,p):u};function g(d){return function(m){var x,_,y;return arguments.length?([x,_,y]=m,u=Ci(d,[x,_,y]),p):[u(0),u(.5),u(1)]}}return p.range=g(Wt),p.rangeRound=g($n),p.unknown=function(d){return arguments.length?(l=d,p):l},function(d){return c=d,o=d(t),i=d(e),a=d(n),f=o===i?0:.5/(i-o),s=i===a?0:.5/(a-i),r=i<o?-1:1,p}}function ms(){var t=oe(ps()(qt));return t.copy=function(){return Nn(t,ms())},ve.apply(t,arguments)}function lp(){var t=Sa(ps()).domain([.1,1,10]);return t.copy=function(){return Nn(t,lp()).base(t.base())},ve.apply(t,arguments)}function hp(){var t=Ta(ps());return t.copy=function(){return Nn(t,hp()).constant(t.constant())},ve.apply(t,arguments)}function ds(){var t=Aa(ps());return t.copy=function(){return Nn(t,ds()).exponent(t.exponent())},ve.apply(t,arguments)}function ly(){return ds.apply(null,arguments).exponent(.5)}var Up={};pt(Up,{interpolateBlues:()=>Hy,interpolateBrBG:()=>My,interpolateBuGn:()=>Iy,interpolateBuPu:()=>Py,interpolateCividis:()=>Qy,interpolateCool:()=>Jy,interpolateCubehelixDefault:()=>jy,interpolateGnBu:()=>Dy,interpolateGreens:()=>Xy,interpolateGreys:()=>Wy,interpolateInferno:()=>i_,interpolateMagma:()=>o_,interpolateOrRd:()=>qy,interpolateOranges:()=>Zy,interpolatePRGn:()=>Sy,interpolatePiYG:()=>Ty,interpolatePlasma:()=>a_,interpolatePuBu:()=>Fy,interpolatePuBuGn:()=>Oy,interpolatePuOr:()=>Ay,interpolatePuRd:()=>zy,interpolatePurples:()=>Vy,interpolateRainbow:()=>t_,interpolateRdBu:()=>Ey,interpolateRdGy:()=>ky,interpolateRdPu:()=>Ly,interpolateRdYlBu:()=>Ny,interpolateRdYlGn:()=>Ry,interpolateReds:()=>Gy,interpolateSinebow:()=>e_,interpolateSpectral:()=>Cy,interpolateTurbo:()=>n_,interpolateViridis:()=>r_,interpolateWarm:()=>Ky,interpolateYlGn:()=>Uy,interpolateYlGnBu:()=>Yy,interpolateYlOrBr:()=>$y,interpolateYlOrRd:()=>By,schemeAccent:()=>py,schemeBlues:()=>qp,schemeBrBG:()=>mp,schemeBuGn:()=>Mp,schemeBuPu:()=>Sp,schemeCategory10:()=>hy,schemeDark2:()=>my,schemeGnBu:()=>Tp,schemeGreens:()=>Op,schemeGreys:()=>Fp,schemeObservable10:()=>dy,schemeOrRd:()=>Ap,schemeOranges:()=>Yp,schemePRGn:()=>dp,schemePaired:()=>gy,schemePastel1:()=>xy,schemePastel2:()=>by,schemePiYG:()=>gp,schemePuBu:()=>kp,schemePuBuGn:()=>Ep,schemePuOr:()=>xp,schemePuRd:()=>Np,schemePurples:()=>zp,schemeRdBu:()=>bp,schemeRdGy:()=>yp,schemeRdPu:()=>Rp,schemeRdYlBu:()=>_p,schemeRdYlGn:()=>vp,schemeReds:()=>Lp,schemeSet1:()=>yy,schemeSet2:()=>_y,schemeSet3:()=>vy,schemeSpectral:()=>wp,schemeTableau10:()=>wy,schemeYlGn:()=>Ip,schemeYlGnBu:()=>Cp,schemeYlOrBr:()=>Pp,schemeYlOrRd:()=>Dp});function U(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(r*6,++r*6);return n}var hy=U("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");var py=U("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");var my=U("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");var dy=U("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0");var gy=U("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");var xy=U("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");var by=U("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");var yy=U("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");var _y=U("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");var vy=U("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var wy=U("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");var V=t=>mf(t[t.length-1]);var mp=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(U),My=V(mp);var dp=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(U),Sy=V(dp);var gp=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(U),Ty=V(gp);var xp=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(U),Ay=V(xp);var bp=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(U),Ey=V(bp);var yp=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(U),ky=V(yp);var _p=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(U),Ny=V(_p);var vp=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(U),Ry=V(vp);var wp=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(U),Cy=V(wp);var Mp=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(U),Iy=V(Mp);var Sp=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(U),Py=V(Sp);var Tp=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(U),Dy=V(Tp);var Ap=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(U),qy=V(Ap);var Ep=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(U),Oy=V(Ep);var kp=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(U),Fy=V(kp);var Np=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(U),zy=V(Np);var Rp=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(U),Ly=V(Rp);var Cp=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(U),Yy=V(Cp);var Ip=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(U),Uy=V(Ip);var Pp=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(U),$y=V(Pp);var Dp=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(U),By=V(Dp);var qp=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(U),Hy=V(qp);var Op=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(U),Xy=V(Op);var Fp=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(U),Wy=V(Fp);var zp=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(U),Vy=V(zp);var Lp=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(U),Gy=V(Lp);var Yp=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(U),Zy=V(Yp);function Qy(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-t*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-t*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-t*2475.67)))))))+")"}var jy=yr(Xt(300,.5,0),Xt(-240,.5,1));var Ky=yr(Xt(-100,.75,.35),Xt(80,1.5,.8)),Jy=yr(Xt(260,.75,.35),Xt(80,1.5,.8)),gs=Xt();function t_(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return gs.h=360*t-100,gs.s=1.5-1.5*e,gs.l=.8-.9*e,gs+""}var xs=gn(),T5=Math.PI/3,A5=Math.PI*2/3;function e_(t){var e;return t=(.5-t)*Math.PI,xs.r=255*(e=Math.sin(t))*e,xs.g=255*(e=Math.sin(t+T5))*e,xs.b=255*(e=Math.sin(t+A5))*e,xs+""}function n_(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-t*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+t*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-t*6838.66)))))))+")"}function bs(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var r_=bs(U("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),o_=bs(U("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),i_=bs(U("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),a_=bs(U("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));var Jp={};pt(Jp,{arc:()=>s_,area:()=>_s,areaRadial:()=>Xp,curveBasis:()=>M_,curveBasisClosed:()=>T_,curveBasisOpen:()=>E_,curveBumpX:()=>Ms,curveBumpY:()=>Ss,curveBundle:()=>N_,curveCardinal:()=>R_,curveCardinalClosed:()=>C_,curveCardinalOpen:()=>I_,curveCatmullRom:()=>D_,curveCatmullRomClosed:()=>O_,curveCatmullRomOpen:()=>z_,curveLinear:()=>or,curveLinearClosed:()=>Y_,curveMonotoneX:()=>W_,curveMonotoneY:()=>V_,curveNatural:()=>Q_,curveStep:()=>j_,curveStepAfter:()=>J_,curveStepBefore:()=>K_,line:()=>ti,lineRadial:()=>Hp,link:()=>Fa,linkHorizontal:()=>x_,linkRadial:()=>y_,linkVertical:()=>b_,pie:()=>m_,pointRadial:()=>oo,radialArea:()=>Xp,radialLine:()=>Hp,stack:()=>tv,stackOffsetDiverging:()=>nv,stackOffsetExpand:()=>ev,stackOffsetNone:()=>Le,stackOffsetSilhouette:()=>rv,stackOffsetWiggle:()=>ov,stackOrderAppearance:()=>Us,stackOrderAscending:()=>$s,stackOrderDescending:()=>iv,stackOrderInsideOut:()=>av,stackOrderNone:()=>Ye,stackOrderReverse:()=>fv,symbol:()=>Qp,symbolAsterisk:()=>Ts,symbolCircle:()=>ri,symbolCross:()=>As,symbolDiamond:()=>Es,symbolDiamond2:()=>ks,symbolPlus:()=>Ns,symbolSquare:()=>Rs,symbolSquare2:()=>Cs,symbolStar:()=>Is,symbolTimes:()=>za,symbolTriangle:()=>Ps,symbolTriangle2:()=>Ds,symbolWye:()=>qs,symbolX:()=>za,symbols:()=>Zp,symbolsFill:()=>Zp,symbolsStroke:()=>w_});function Z(t){return function(){return t}}var $p=Math.abs,Ht=Math.atan2,Fe=Math.cos,f_=Math.max,fn=Math.min,Qt=Math.sin,J=Math.sqrt,Ut=1e-12,ze=Math.PI,Oa=ze/2,we=2*ze;function u_(t){return t>1?0:t<-1?ze:Math.acos(t)}function Bp(t){return t>=1?Oa:t<=-1?-Oa:Math.asin(t)}function un(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{let r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new yn(e)}function E5(t){return t.innerRadius}function k5(t){return t.outerRadius}function N5(t){return t.startAngle}function R5(t){return t.endAngle}function C5(t){return t&&t.padAngle}function I5(t,e,n,r,o,i,a,f){var s=n-t,u=r-e,c=a-o,h=f-i,l=h*s-c*u;if(!(l*l<Ut))return l=(c*(e-i)-h*(t-o))/l,[t+l*s,e+l*u]}function ys(t,e,n,r,o,i,a){var f=t-n,s=e-r,u=(a?i:-i)/J(f*f+s*s),c=u*s,h=-u*f,l=t+c,p=e+h,g=n+c,d=r+h,m=(l+g)/2,x=(p+d)/2,_=g-l,y=d-p,b=_*_+y*y,v=o-i,w=l*d-g*p,A=(y<0?-1:1)*J(f_(0,v*v*b-w*w)),R=(w*y-_*A)/b,N=(-w*_-y*A)/b,E=(w*y+_*A)/b,k=(-w*_+y*A)/b,I=R-m,C=N-x,M=E-m,S=k-x;return I*I+C*C>M*M+S*S&&(R=E,N=k),{cx:R,cy:N,x01:-c,y01:-h,x11:R*(o/v-1),y11:N*(o/v-1)}}function s_(){var t=E5,e=k5,n=Z(0),r=null,o=N5,i=R5,a=C5,f=null,s=un(u);function u(){var c,h,l=+t.apply(this,arguments),p=+e.apply(this,arguments),g=o.apply(this,arguments)-Oa,d=i.apply(this,arguments)-Oa,m=$p(d-g),x=d>g;if(f||(f=c=s()),p<l&&(h=p,p=l,l=h),!(p>Ut))f.moveTo(0,0);else if(m>we-Ut)f.moveTo(p*Fe(g),p*Qt(g)),f.arc(0,0,p,g,d,!x),l>Ut&&(f.moveTo(l*Fe(d),l*Qt(d)),f.arc(0,0,l,d,g,x));else{var _=g,y=d,b=g,v=d,w=m,A=m,R=a.apply(this,arguments)/2,N=R>Ut&&(r?+r.apply(this,arguments):J(l*l+p*p)),E=fn($p(p-l)/2,+n.apply(this,arguments)),k=E,I=E,C,M;if(N>Ut){var S=Bp(N/l*Qt(R)),T=Bp(N/p*Qt(R));(w-=S*2)>Ut?(S*=x?1:-1,b+=S,v-=S):(w=0,b=v=(g+d)/2),(A-=T*2)>Ut?(T*=x?1:-1,_+=T,y-=T):(A=0,_=y=(g+d)/2)}var P=p*Fe(_),O=p*Qt(_),q=l*Fe(v),L=l*Qt(v);if(E>Ut){var X=p*Fe(y),W=p*Qt(y),lt=l*Fe(b),at=l*Qt(b),nt;if(m<ze)if(nt=I5(P,O,lt,at,X,W,q,L)){var Ct=P-nt[0],ut=O-nt[1],kt=X-nt[0],$=W-nt[1],K=1/Qt(u_((Ct*kt+ut*$)/(J(Ct*Ct+ut*ut)*J(kt*kt+$*$)))/2),tt=J(nt[0]*nt[0]+nt[1]*nt[1]);k=fn(E,(l-tt)/(K-1)),I=fn(E,(p-tt)/(K+1))}else k=I=0}A>Ut?I>Ut?(C=ys(lt,at,P,O,p,I,x),M=ys(X,W,q,L,p,I,x),f.moveTo(C.cx+C.x01,C.cy+C.y01),I<E?f.arc(C.cx,C.cy,I,Ht(C.y01,C.x01),Ht(M.y01,M.x01),!x):(f.arc(C.cx,C.cy,I,Ht(C.y01,C.x01),Ht(C.y11,C.x11),!x),f.arc(0,0,p,Ht(C.cy+C.y11,C.cx+C.x11),Ht(M.cy+M.y11,M.cx+M.x11),!x),f.arc(M.cx,M.cy,I,Ht(M.y11,M.x11),Ht(M.y01,M.x01),!x))):(f.moveTo(P,O),f.arc(0,0,p,_,y,!x)):f.moveTo(P,O),!(l>Ut)||!(w>Ut)?f.lineTo(q,L):k>Ut?(C=ys(q,L,X,W,l,-k,x),M=ys(P,O,lt,at,l,-k,x),f.lineTo(C.cx+C.x01,C.cy+C.y01),k<E?f.arc(C.cx,C.cy,k,Ht(C.y01,C.x01),Ht(M.y01,M.x01),!x):(f.arc(C.cx,C.cy,k,Ht(C.y01,C.x01),Ht(C.y11,C.x11),!x),f.arc(0,0,l,Ht(C.cy+C.y11,C.cx+C.x11),Ht(M.cy+M.y11,M.cx+M.x11),x),f.arc(M.cx,M.cy,k,Ht(M.y11,M.x11),Ht(M.y01,M.x01),!x))):f.arc(0,0,l,v,b,x)}if(f.closePath(),c)return f=null,c+""||null}return u.centroid=function(){var c=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,h=(+o.apply(this,arguments)+ +i.apply(this,arguments))/2-ze/2;return[Fe(h)*c,Qt(h)*c]},u.innerRadius=function(c){return arguments.length?(t=typeof c=="function"?c:Z(+c),u):t},u.outerRadius=function(c){return arguments.length?(e=typeof c=="function"?c:Z(+c),u):e},u.cornerRadius=function(c){return arguments.length?(n=typeof c=="function"?c:Z(+c),u):n},u.padRadius=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Z(+c),u):r},u.startAngle=function(c){return arguments.length?(o=typeof c=="function"?c:Z(+c),u):o},u.endAngle=function(c){return arguments.length?(i=typeof c=="function"?c:Z(+c),u):i},u.padAngle=function(c){return arguments.length?(a=typeof c=="function"?c:Z(+c),u):a},u.context=function(c){return arguments.length?(f=c??null,u):f},u}var c_=Array.prototype.slice;function rr(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function l_(t){this._context=t}l_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function or(t){return new l_(t)}function Ko(t){return t[0]}function Jo(t){return t[1]}function ti(t,e){var n=Z(!0),r=null,o=or,i=null,a=un(f);t=typeof t=="function"?t:t===void 0?Ko:Z(t),e=typeof e=="function"?e:e===void 0?Jo:Z(e);function f(s){var u,c=(s=rr(s)).length,h,l=!1,p;for(r==null&&(i=o(p=a())),u=0;u<=c;++u)!(u<c&&n(h=s[u],u,s))===l&&((l=!l)?i.lineStart():i.lineEnd()),l&&i.point(+t(h,u,s),+e(h,u,s));if(p)return i=null,p+""||null}return f.x=function(s){return arguments.length?(t=typeof s=="function"?s:Z(+s),f):t},f.y=function(s){return arguments.length?(e=typeof s=="function"?s:Z(+s),f):e},f.defined=function(s){return arguments.length?(n=typeof s=="function"?s:Z(!!s),f):n},f.curve=function(s){return arguments.length?(o=s,r!=null&&(i=o(r)),f):o},f.context=function(s){return arguments.length?(s==null?r=i=null:i=o(r=s),f):r},f}function _s(t,e,n){var r=null,o=Z(!0),i=null,a=or,f=null,s=un(u);t=typeof t=="function"?t:t===void 0?Ko:Z(+t),e=typeof e=="function"?e:e===void 0?Z(0):Z(+e),n=typeof n=="function"?n:n===void 0?Jo:Z(+n);function u(h){var l,p,g,d=(h=rr(h)).length,m,x=!1,_,y=new Array(d),b=new Array(d);for(i==null&&(f=a(_=s())),l=0;l<=d;++l){if(!(l<d&&o(m=h[l],l,h))===x)if(x=!x)p=l,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),g=l-1;g>=p;--g)f.point(y[g],b[g]);f.lineEnd(),f.areaEnd()}x&&(y[l]=+t(m,l,h),b[l]=+e(m,l,h),f.point(r?+r(m,l,h):y[l],n?+n(m,l,h):b[l]))}if(_)return f=null,_+""||null}function c(){return ti().defined(o).curve(a).context(i)}return u.x=function(h){return arguments.length?(t=typeof h=="function"?h:Z(+h),r=null,u):t},u.x0=function(h){return arguments.length?(t=typeof h=="function"?h:Z(+h),u):t},u.x1=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:Z(+h),u):r},u.y=function(h){return arguments.length?(e=typeof h=="function"?h:Z(+h),n=null,u):e},u.y0=function(h){return arguments.length?(e=typeof h=="function"?h:Z(+h),u):e},u.y1=function(h){return arguments.length?(n=h==null?null:typeof h=="function"?h:Z(+h),u):n},u.lineX0=u.lineY0=function(){return c().x(t).y(e)},u.lineY1=function(){return c().x(t).y(n)},u.lineX1=function(){return c().x(r).y(e)},u.defined=function(h){return arguments.length?(o=typeof h=="function"?h:Z(!!h),u):o},u.curve=function(h){return arguments.length?(a=h,i!=null&&(f=a(i)),u):a},u.context=function(h){return arguments.length?(h==null?i=f=null:f=a(i=h),u):i},u}function h_(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function p_(t){return t}function m_(){var t=p_,e=h_,n=null,r=Z(0),o=Z(we),i=Z(0);function a(f){var s,u=(f=rr(f)).length,c,h,l=0,p=new Array(u),g=new Array(u),d=+r.apply(this,arguments),m=Math.min(we,Math.max(-we,o.apply(this,arguments)-d)),x,_=Math.min(Math.abs(m)/u,i.apply(this,arguments)),y=_*(m<0?-1:1),b;for(s=0;s<u;++s)(b=g[p[s]=s]=+t(f[s],s,f))>0&&(l+=b);for(e!=null?p.sort(function(v,w){return e(g[v],g[w])}):n!=null&&p.sort(function(v,w){return n(f[v],f[w])}),s=0,h=l?(m-u*y)/l:0;s<u;++s,d=x)c=p[s],b=g[c],x=d+(b>0?b*h:0)+y,g[c]={data:f[c],index:s,value:b,startAngle:d,endAngle:x,padAngle:_};return g}return a.value=function(f){return arguments.length?(t=typeof f=="function"?f:Z(+f),a):t},a.sortValues=function(f){return arguments.length?(e=f,n=null,a):e},a.sort=function(f){return arguments.length?(n=f,e=null,a):n},a.startAngle=function(f){return arguments.length?(r=typeof f=="function"?f:Z(+f),a):r},a.endAngle=function(f){return arguments.length?(o=typeof f=="function"?f:Z(+f),a):o},a.padAngle=function(f){return arguments.length?(i=typeof f=="function"?f:Z(+f),a):i},a}var vs=ei(or);function d_(t){this._curve=t}d_.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};function ei(t){function e(n){return new d_(t(n))}return e._curve=t,e}function ni(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(n){return arguments.length?e(ei(n)):e()._curve},t}function Hp(){return ni(ti().curve(vs))}function Xp(){var t=_s().curve(vs),e=t.curve,n=t.lineX0,r=t.lineX1,o=t.lineY0,i=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 ni(n())},delete t.lineX0,t.lineEndAngle=function(){return ni(r())},delete t.lineX1,t.lineInnerRadius=function(){return ni(o())},delete t.lineY0,t.lineOuterRadius=function(){return ni(i())},delete t.lineY1,t.curve=function(a){return arguments.length?e(ei(a)):e()._curve},t}function oo(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}var ws=class{constructor(e,n){this._context=e,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,n){switch(e=+e,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,n,e,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,e,this._y0,e,n);break}}this._x0=e,this._y0=n}},Wp=class{constructor(e){this._context=e}lineStart(){this._point=0}lineEnd(){}point(e,n){if(e=+e,n=+n,this._point===0)this._point=1;else{let r=oo(this._x0,this._y0),o=oo(this._x0,this._y0=(this._y0+n)/2),i=oo(e,this._y0),a=oo(e,n);this._context.moveTo(...r),this._context.bezierCurveTo(...o,...i,...a)}this._x0=e,this._y0=n}};function Ms(t){return new ws(t,!0)}function Ss(t){return new ws(t,!1)}function g_(t){return new Wp(t)}function P5(t){return t.source}function D5(t){return t.target}function Fa(t){let e=P5,n=D5,r=Ko,o=Jo,i=null,a=null,f=un(s);function s(){let u,c=c_.call(arguments),h=e.apply(this,c),l=n.apply(this,c);if(i==null&&(a=t(u=f())),a.lineStart(),c[0]=h,a.point(+r.apply(this,c),+o.apply(this,c)),c[0]=l,a.point(+r.apply(this,c),+o.apply(this,c)),a.lineEnd(),u)return a=null,u+""||null}return s.source=function(u){return arguments.length?(e=u,s):e},s.target=function(u){return arguments.length?(n=u,s):n},s.x=function(u){return arguments.length?(r=typeof u=="function"?u:Z(+u),s):r},s.y=function(u){return arguments.length?(o=typeof u=="function"?u:Z(+u),s):o},s.context=function(u){return arguments.length?(u==null?i=a=null:a=t(i=u),s):i},s}function x_(){return Fa(Ms)}function b_(){return Fa(Ss)}function y_(){let t=Fa(g_);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var q5=J(3),Ts={draw(t,e){let n=J(e+fn(e/28,.75))*.59436,r=n/2,o=r*q5;t.moveTo(0,n),t.lineTo(0,-n),t.moveTo(-o,-r),t.lineTo(o,r),t.moveTo(-o,r),t.lineTo(o,-r)}};var ri={draw(t,e){let n=J(e/ze);t.moveTo(n,0),t.arc(0,0,n,0,we)}};var As={draw(t,e){let n=J(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}};var __=J(1/3),O5=__*2,Es={draw(t,e){let n=J(e/O5),r=n*__;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}};var ks={draw(t,e){let n=J(e)*.62625;t.moveTo(0,-n),t.lineTo(n,0),t.lineTo(0,n),t.lineTo(-n,0),t.closePath()}};var Ns={draw(t,e){let n=J(e-fn(e/7,2))*.87559;t.moveTo(-n,0),t.lineTo(n,0),t.moveTo(0,n),t.lineTo(0,-n)}};var Rs={draw(t,e){let n=J(e),r=-n/2;t.rect(r,r,n,n)}};var Cs={draw(t,e){let n=J(e)*.4431;t.moveTo(n,n),t.lineTo(n,-n),t.lineTo(-n,-n),t.lineTo(-n,n),t.closePath()}};var F5=.8908130915292852,v_=Qt(ze/10)/Qt(7*ze/10),z5=Qt(we/10)*v_,L5=-Fe(we/10)*v_,Is={draw(t,e){let n=J(e*F5),r=z5*n,o=L5*n;t.moveTo(0,-n),t.lineTo(r,o);for(let i=1;i<5;++i){let a=we*i/5,f=Fe(a),s=Qt(a);t.lineTo(s*n,-f*n),t.lineTo(f*r-s*o,s*r+f*o)}t.closePath()}};var Vp=J(3),Ps={draw(t,e){let n=-J(e/(Vp*3));t.moveTo(0,n*2),t.lineTo(-Vp*n,-n),t.lineTo(Vp*n,-n),t.closePath()}};var Y5=J(3),Ds={draw(t,e){let n=J(e)*.6824,r=n/2,o=n*Y5/2;t.moveTo(0,-n),t.lineTo(o,r),t.lineTo(-o,r),t.closePath()}};var Me=-.5,Se=J(3)/2,Gp=1/J(12),U5=(Gp/2+1)*3,qs={draw(t,e){let n=J(e/U5),r=n/2,o=n*Gp,i=r,a=n*Gp+n,f=-i,s=a;t.moveTo(r,o),t.lineTo(i,a),t.lineTo(f,s),t.lineTo(Me*r-Se*o,Se*r+Me*o),t.lineTo(Me*i-Se*a,Se*i+Me*a),t.lineTo(Me*f-Se*s,Se*f+Me*s),t.lineTo(Me*r+Se*o,Me*o-Se*r),t.lineTo(Me*i+Se*a,Me*a-Se*i),t.lineTo(Me*f+Se*s,Me*s-Se*f),t.closePath()}};var za={draw(t,e){let n=J(e-fn(e/6,1.7))*.6189;t.moveTo(-n,-n),t.lineTo(n,n),t.moveTo(-n,n),t.lineTo(n,-n)}};var Zp=[ri,As,Es,Rs,Is,Ps,qs],w_=[ri,Ns,za,Ds,Ts,Cs,ks];function Qp(t,e){let n=null,r=un(o);t=typeof t=="function"?t:Z(t||ri),e=typeof e=="function"?e:Z(e===void 0?64:+e);function o(){let i;if(n||(n=i=r()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),i)return n=null,i+""||null}return o.type=function(i){return arguments.length?(t=typeof i=="function"?i:Z(i),o):t},o.size=function(i){return arguments.length?(e=typeof i=="function"?i:Z(+i),o):e},o.context=function(i){return arguments.length?(n=i??null,o):n},o}function Te(){}function oi(t,e,n){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+e)/6,(t._y0+4*t._y1+n)/6)}function La(t){this._context=t}La.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:oi(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:oi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function M_(t){return new La(t)}function S_(t){this._context=t}S_.prototype={areaStart:Te,areaEnd:Te,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);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:oi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function T_(t){return new S_(t)}function A_(t){this._context=t}A_.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:oi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function E_(t){return new A_(t)}function k_(t,e){this._basis=new La(t),this._beta=e}k_.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r=t[0],o=e[0],i=t[n]-r,a=e[n]-o,f=-1,s;++f<=n;)s=f/n,this._basis.point(this._beta*t[f]+(1-this._beta)*(r+s*i),this._beta*e[f]+(1-this._beta)*(o+s*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var N_=(function t(e){function n(r){return e===1?new La(r):new k_(r,e)}return n.beta=function(r){return t(+r)},n})(.85);function ii(t,e,n){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-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Os(t,e){this._context=t,this._k=(1-e)/6}Os.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:ii(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:ii(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var R_=(function t(e){function n(r){return new Os(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Fs(t,e){this._context=t,this._k=(1-e)/6}Fs.prototype={areaStart:Te,areaEnd:Te,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);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ii(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var C_=(function t(e){function n(r){return new Fs(r,e)}return n.tension=function(r){return t(+r)},n})(0);function zs(t,e){this._context=t,this._k=(1-e)/6}zs.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,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:ii(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var I_=(function t(e){function n(r){return new zs(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Ya(t,e,n){var r=t._x1,o=t._y1,i=t._x2,a=t._y2;if(t._l01_a>Ut){var f=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,s=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*f-t._x0*t._l12_2a+t._x2*t._l01_2a)/s,o=(o*f-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>Ut){var u=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);i=(i*u+t._x1*t._l23_2a-e*t._l12_2a)/c,a=(a*u+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,o,i,a,t._x2,t._y2)}function P_(t,e){this._context=t,this._alpha=e}P_.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);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Ya(this,t,e);break}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=e}};var D_=(function t(e){function n(r){return e?new P_(r,e):new Os(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function q_(t,e){this._context=t,this._alpha=e}q_.prototype={areaStart:Te,areaEnd:Te,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);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ya(this,t,e);break}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=e}};var O_=(function t(e){function n(r){return e?new q_(r,e):new Fs(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function F_(t,e){this._context=t,this._alpha=e}F_.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:Ya(this,t,e);break}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=e}};var z_=(function t(e){function n(r){return e?new F_(r,e):new zs(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function L_(t){this._context=t}L_.prototype={areaStart:Te,areaEnd:Te,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Y_(t){return new L_(t)}function U_(t){return t<0?-1:1}function $_(t,e,n){var r=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(r||o<0&&-0),a=(n-t._y1)/(o||r<0&&-0),f=(i*o+a*r)/(r+o);return(U_(i)+U_(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(f))||0}function B_(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function jp(t,e,n){var r=t._x0,o=t._y0,i=t._x1,a=t._y1,f=(i-r)/3;t._context.bezierCurveTo(r+f,o+f*e,i-f,a-f*n,i,a)}function Ls(t){this._context=t}Ls.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:jp(this,this._t0,B_(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,jp(this,B_(this,n=$_(this,t,e)),n);break;default:jp(this,this._t0,n=$_(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function H_(t){this._context=new X_(t)}(H_.prototype=Object.create(Ls.prototype)).point=function(t,e){Ls.prototype.point.call(this,e,t)};function X_(t){this._context=t}X_.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,o,i){this._context.bezierCurveTo(e,t,r,n,i,o)}};function W_(t){return new Ls(t)}function V_(t){return new H_(t)}function Z_(t){this._context=t}Z_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var r=G_(t),o=G_(e),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],t[a],e[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function G_(t){var e,n=t.length-1,r,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=o[e]/i[e-1],i[e]-=r,a[e]-=r*a[e-1];for(o[n-1]=a[n-1]/i[n-1],e=n-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[n-1]=(t[n]+o[n-1])/2,e=0;e<n-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function Q_(t){return new Z_(t)}function Ys(t,e){this._context=t,this._t=e}Ys.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&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function j_(t){return new Ys(t,.5)}function K_(t){return new Ys(t,0)}function J_(t){return new Ys(t,1)}function Le(t,e){if((a=t.length)>1)for(var n=1,r,o,i=t[e[0]],a,f=i.length;n<a;++n)for(o=i,i=t[e[n]],r=0;r<f;++r)i[r][1]+=i[r][0]=isNaN(o[r][1])?o[r][0]:o[r][1]}function Ye(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function $5(t,e){return t[e]}function B5(t){let e=[];return e.key=t,e}function tv(){var t=Z([]),e=Ye,n=Le,r=$5;function o(i){var a=Array.from(t.apply(this,arguments),B5),f,s=a.length,u=-1,c;for(let h of i)for(f=0,++u;f<s;++f)(a[f][u]=[0,+r(h,a[f].key,u,i)]).data=h;for(f=0,c=rr(e(a));f<s;++f)a[c[f]].index=f;return n(a,c),a}return o.keys=function(i){return arguments.length?(t=typeof i=="function"?i:Z(Array.from(i)),o):t},o.value=function(i){return arguments.length?(r=typeof i=="function"?i:Z(+i),o):r},o.order=function(i){return arguments.length?(e=i==null?Ye:typeof i=="function"?i:Z(Array.from(i)),o):e},o.offset=function(i){return arguments.length?(n=i??Le,o):n},o}function ev(t,e){if((r=t.length)>0){for(var n,r,o=0,i=t[0].length,a;o<i;++o){for(a=n=0;n<r;++n)a+=t[n][o][1]||0;if(a)for(n=0;n<r;++n)t[n][o][1]/=a}Le(t,e)}}function nv(t,e){if((s=t.length)>0)for(var n,r=0,o,i,a,f,s,u=t[e[0]].length;r<u;++r)for(a=f=0,n=0;n<s;++n)(i=(o=t[e[n]][r])[1]-o[0])>0?(o[0]=a,o[1]=a+=i):i<0?(o[1]=f,o[0]=f+=i):(o[0]=0,o[1]=i)}function rv(t,e){if((o=t.length)>0){for(var n=0,r=t[e[0]],o,i=r.length;n<i;++n){for(var a=0,f=0;a<o;++a)f+=t[a][n][1]||0;r[n][1]+=r[n][0]=-f/2}Le(t,e)}}function ov(t,e){if(!(!((a=t.length)>0)||!((i=(o=t[e[0]]).length)>0))){for(var n=0,r=1,o,i,a;r<i;++r){for(var f=0,s=0,u=0;f<a;++f){for(var c=t[e[f]],h=c[r][1]||0,l=c[r-1][1]||0,p=(h-l)/2,g=0;g<f;++g){var d=t[e[g]],m=d[r][1]||0,x=d[r-1][1]||0;p+=m-x}s+=h,u+=p*h}o[r-1][1]+=o[r-1][0]=n,s&&(n-=u/s)}o[r-1][1]+=o[r-1][0]=n,Le(t,e)}}function Us(t){var e=t.map(H5);return Ye(t).sort(function(n,r){return e[n]-e[r]})}function H5(t){for(var e=-1,n=0,r=t.length,o,i=-1/0;++e<r;)(o=+t[e][1])>i&&(i=o,n=e);return n}function $s(t){var e=t.map(Kp);return Ye(t).sort(function(n,r){return e[n]-e[r]})}function Kp(t){for(var e=0,n=-1,r=t.length,o;++n<r;)(o=+t[n][1])&&(e+=o);return e}function iv(t){return $s(t).reverse()}function av(t){var e=t.length,n,r,o=t.map(Kp),i=Us(t),a=0,f=0,s=[],u=[];for(n=0;n<e;++n)r=i[n],a<f?(a+=o[r],s.push(r)):(f+=o[r],u.push(r));return u.reverse().concat(s)}function fv(t){return Ye(t).reverse()}var e0={};pt(e0,{ZoomTransform:()=>Ae,zoom:()=>sv,zoomIdentity:()=>ai,zoomTransform:()=>Bs});var Ua=t=>()=>t;function t0(t,{sourceEvent:e,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function Ae(t,e,n){this.k=t,this.x=e,this.y=n}Ae.prototype={constructor:Ae,scale:function(t){return t===1?this:new Ae(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Ae(this.k,this.x+this.k*t,this.y+this.k*e)},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 ai=new Ae(1,0,0);Bs.prototype=Ae.prototype;function Bs(t){for(;!t.__zoom;)if(!(t=t.parentNode))return ai;return t.__zoom}function Hs(t){t.stopImmediatePropagation()}function fi(t){t.preventDefault(),t.stopImmediatePropagation()}function X5(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function W5(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.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 uv(){return this.__zoom||ai}function V5(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function G5(){return navigator.maxTouchPoints||"ontouchstart"in this}function Z5(t,e,n){var r=t.invertX(e[0][0])-n[0][0],o=t.invertX(e[1][0])-n[1][0],i=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function sv(){var t=X5,e=W5,n=Z5,r=V5,o=G5,i=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],f=250,s=wf,u=ge("start","zoom","end"),c,h,l,p=500,g=150,d=0,m=10;function x(M){M.property("__zoom",uv).on("wheel.zoom",R,{passive:!1}).on("mousedown.zoom",N).on("dblclick.zoom",E).filter(o).on("touchstart.zoom",k).on("touchmove.zoom",I).on("touchend.zoom touchcancel.zoom",C).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}x.transform=function(M,S,T,P){var O=M.selection?M.selection():M;O.property("__zoom",uv),M!==O?v(M,S,T,P):O.interrupt().each(function(){w(this,arguments).event(P).start().zoom(null,typeof S=="function"?S.apply(this,arguments):S).end()})},x.scaleBy=function(M,S,T,P){x.scaleTo(M,function(){var O=this.__zoom.k,q=typeof S=="function"?S.apply(this,arguments):S;return O*q},T,P)},x.scaleTo=function(M,S,T,P){x.transform(M,function(){var O=e.apply(this,arguments),q=this.__zoom,L=T==null?b(O):typeof T=="function"?T.apply(this,arguments):T,X=q.invert(L),W=typeof S=="function"?S.apply(this,arguments):S;return n(y(_(q,W),L,X),O,a)},T,P)},x.translateBy=function(M,S,T,P){x.transform(M,function(){return n(this.__zoom.translate(typeof S=="function"?S.apply(this,arguments):S,typeof T=="function"?T.apply(this,arguments):T),e.apply(this,arguments),a)},null,P)},x.translateTo=function(M,S,T,P,O){x.transform(M,function(){var q=e.apply(this,arguments),L=this.__zoom,X=P==null?b(q):typeof P=="function"?P.apply(this,arguments):P;return n(ai.translate(X[0],X[1]).scale(L.k).translate(typeof S=="function"?-S.apply(this,arguments):-S,typeof T=="function"?-T.apply(this,arguments):-T),q,a)},P,O)};function _(M,S){return S=Math.max(i[0],Math.min(i[1],S)),S===M.k?M:new Ae(S,M.x,M.y)}function y(M,S,T){var P=S[0]-T[0]*M.k,O=S[1]-T[1]*M.k;return P===M.x&&O===M.y?M:new Ae(M.k,P,O)}function b(M){return[(+M[0][0]+ +M[1][0])/2,(+M[0][1]+ +M[1][1])/2]}function v(M,S,T,P){M.on("start.zoom",function(){w(this,arguments).event(P).start()}).on("interrupt.zoom end.zoom",function(){w(this,arguments).event(P).end()}).tween("zoom",function(){var O=this,q=arguments,L=w(O,q).event(P),X=e.apply(O,q),W=T==null?b(X):typeof T=="function"?T.apply(O,q):T,lt=Math.max(X[1][0]-X[0][0],X[1][1]-X[0][1]),at=O.__zoom,nt=typeof S=="function"?S.apply(O,q):S,Ct=s(at.invert(W).concat(lt/at.k),nt.invert(W).concat(lt/nt.k));return function(ut){if(ut===1)ut=nt;else{var kt=Ct(ut),$=lt/kt[2];ut=new Ae($,W[0]-kt[0]*$,W[1]-kt[1]*$)}L.zoom(null,ut)}})}function w(M,S,T){return!T&&M.__zooming||new A(M,S)}function A(M,S){this.that=M,this.args=S,this.active=0,this.sourceEvent=null,this.extent=e.apply(M,S),this.taps=0}A.prototype={event:function(M){return M&&(this.sourceEvent=M),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(M,S){return this.mouse&&M!=="mouse"&&(this.mouse[1]=S.invert(this.mouse[0])),this.touch0&&M!=="touch"&&(this.touch0[1]=S.invert(this.touch0[0])),this.touch1&&M!=="touch"&&(this.touch1[1]=S.invert(this.touch1[0])),this.that.__zoom=S,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(M){var S=At(this.that).datum();u.call(M,this.that,new t0(M,{sourceEvent:this.sourceEvent,target:x,type:M,transform:this.that.__zoom,dispatch:u}),S)}};function R(M,...S){if(!t.apply(this,arguments))return;var T=w(this,S).event(M),P=this.__zoom,O=Math.max(i[0],Math.min(i[1],P.k*Math.pow(2,r.apply(this,arguments)))),q=Ot(M);if(T.wheel)(T.mouse[0][0]!==q[0]||T.mouse[0][1]!==q[1])&&(T.mouse[1]=P.invert(T.mouse[0]=q)),clearTimeout(T.wheel);else{if(P.k===O)return;T.mouse=[q,P.invert(q)],Ce(this),T.start()}fi(M),T.wheel=setTimeout(L,g),T.zoom("mouse",n(y(_(P,O),T.mouse[0],T.mouse[1]),T.extent,a));function L(){T.wheel=null,T.end()}}function N(M,...S){if(l||!t.apply(this,arguments))return;var T=M.currentTarget,P=w(this,S,!0).event(M),O=At(M.view).on("mousemove.zoom",W,!0).on("mouseup.zoom",lt,!0),q=Ot(M,T),L=M.clientX,X=M.clientY;On(M.view),Hs(M),P.mouse=[q,this.__zoom.invert(q)],Ce(this),P.start();function W(at){if(fi(at),!P.moved){var nt=at.clientX-L,Ct=at.clientY-X;P.moved=nt*nt+Ct*Ct>d}P.event(at).zoom("mouse",n(y(P.that.__zoom,P.mouse[0]=Ot(at,T),P.mouse[1]),P.extent,a))}function lt(at){O.on("mousemove.zoom mouseup.zoom",null),Fn(at.view,P.moved),fi(at),P.event(at).end()}}function E(M,...S){if(t.apply(this,arguments)){var T=this.__zoom,P=Ot(M.changedTouches?M.changedTouches[0]:M,this),O=T.invert(P),q=T.k*(M.shiftKey?.5:2),L=n(y(_(T,q),P,O),e.apply(this,S),a);fi(M),f>0?At(this).transition().duration(f).call(v,L,P,M):At(this).call(x.transform,L,P,M)}}function k(M,...S){if(t.apply(this,arguments)){var T=M.touches,P=T.length,O=w(this,S,M.changedTouches.length===P).event(M),q,L,X,W;for(Hs(M),L=0;L<P;++L)X=T[L],W=Ot(X,this),W=[W,this.__zoom.invert(W),X.identifier],O.touch0?!O.touch1&&O.touch0[2]!==W[2]&&(O.touch1=W,O.taps=0):(O.touch0=W,q=!0,O.taps=1+!!c);c&&(c=clearTimeout(c)),q&&(O.taps<2&&(h=W[0],c=setTimeout(function(){c=null},p)),Ce(this),O.start())}}function I(M,...S){if(this.__zooming){var T=w(this,S).event(M),P=M.changedTouches,O=P.length,q,L,X,W;for(fi(M),q=0;q<O;++q)L=P[q],X=Ot(L,this),T.touch0&&T.touch0[2]===L.identifier?T.touch0[0]=X:T.touch1&&T.touch1[2]===L.identifier&&(T.touch1[0]=X);if(L=T.that.__zoom,T.touch1){var lt=T.touch0[0],at=T.touch0[1],nt=T.touch1[0],Ct=T.touch1[1],ut=(ut=nt[0]-lt[0])*ut+(ut=nt[1]-lt[1])*ut,kt=(kt=Ct[0]-at[0])*kt+(kt=Ct[1]-at[1])*kt;L=_(L,Math.sqrt(ut/kt)),X=[(lt[0]+nt[0])/2,(lt[1]+nt[1])/2],W=[(at[0]+Ct[0])/2,(at[1]+Ct[1])/2]}else if(T.touch0)X=T.touch0[0],W=T.touch0[1];else return;T.zoom("touch",n(y(L,X,W),T.extent,a))}}function C(M,...S){if(this.__zooming){var T=w(this,S).event(M),P=M.changedTouches,O=P.length,q,L;for(Hs(M),l&&clearTimeout(l),l=setTimeout(function(){l=null},p),q=0;q<O;++q)L=P[q],T.touch0&&T.touch0[2]===L.identifier?delete T.touch0:T.touch1&&T.touch1[2]===L.identifier&&delete T.touch1;if(T.touch1&&!T.touch0&&(T.touch0=T.touch1,delete T.touch1),T.touch0)T.touch0[1]=this.__zoom.invert(T.touch0[0]);else if(T.end(),T.taps===2&&(L=Ot(L,this),Math.hypot(h[0]-L[0],h[1]-L[1])<m)){var X=At(this).on("dblclick.zoom");X&&X.apply(this,arguments)}}}return x.wheelDelta=function(M){return arguments.length?(r=typeof M=="function"?M:Ua(+M),x):r},x.filter=function(M){return arguments.length?(t=typeof M=="function"?M:Ua(!!M),x):t},x.touchable=function(M){return arguments.length?(o=typeof M=="function"?M:Ua(!!M),x):o},x.extent=function(M){return arguments.length?(e=typeof M=="function"?M:Ua([[+M[0][0],+M[0][1]],[+M[1][0],+M[1][1]]]),x):e},x.scaleExtent=function(M){return arguments.length?(i[0]=+M[0],i[1]=+M[1],x):[i[0],i[1]]},x.translateExtent=function(M){return arguments.length?(a[0][0]=+M[0][0],a[1][0]=+M[1][0],a[0][1]=+M[0][1],a[1][1]=+M[1][1],x):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},x.constrain=function(M){return arguments.length?(n=M,x):n},x.duration=function(M){return arguments.length?(f=+M,x):f},x.interpolate=function(M){return arguments.length?(s=M,x):s},x.on=function(){var M=u.on.apply(u,arguments);return M===u?x:M},x.clickDistance=function(M){return arguments.length?(d=(M=+M)*M,x):Math.sqrt(d)},x.tapDistance=function(M){return arguments.length?(m=+M,x):m},x}var n0=Object.freeze(Object.assign(Object.create(null),Mc,Tc,ml,Ml,zc,Tl,El,Ac,Rc,Il,fl,ql,Ll,wh,qh,Xc,wl,Oh,Dl,zh,pp,Up,Nc,Jp,ep,ap,Gc,ul,e0));if(typeof n0.select!="function"||typeof n0.scaleLinear!="function")throw new Error("visualization d3 runtime failed to initialize");Object.defineProperty(globalThis,"d3",{value:n0,writable:!1,configurable:!1,enumerable:!0});})();