import{Adder as k,merge as Ar,range as $n}from"/-/d3-array@v3.2.4-G4hy00bPnjF6FrSYpT32/dist=es2020,mode=imports,min/optimized/d3-array.js";var m=1e-6,xn=1e-12,L=Math.PI,O=L/2,nt=L/4,U=L*2,Y=180/L,N=L/180,C=Math.abs,mn=Math.atan,J=Math.atan2,$=Math.cos,tt=Math.ceil,zr=Math.exp,Ft=Math.hypot,rt=Math.log,Yt=Math.pow,w=Math.sin,on=Math.sign||function(n){return n>0?1:n<0?-1:0},H=Math.sqrt,Xt=Math.tan;function Lr(n){return n>1?0:n<-1?L:Math.acos(n)}function K(n){return n>1?O:n<-1?-O:Math.asin(n)}function Cr(n){return(n=w(n/2))*n}function D(){}function it(n,t){n&&Ir.hasOwnProperty(n.type)&&Ir[n.type](n,t)}var qr={Feature:function(n,t){it(n.geometry,t)},FeatureCollection:function(n,t){for(var i=n.features,r=-1,e=i.length;++r=0?1:-1,e=r*i,o=$(t),a=w(t),u=Zt*a,f=Ot*o+u*$(e),p=u*r*w(e);et.add(J(p,f)),Gt=n,Ot=o,Zt=a}function Ui(n){return ot=new k,an(n,fn),ot*2}function ut(n){return[J(n[1],n[0]),K(n[2])]}function wn(n){var t=n[0],i=n[1],r=$(i);return[r*$(t),r*w(t),w(i)]}function at(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function Nn(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function Wt(n,t){n[0]+=t[0],n[1]+=t[1],n[2]+=t[2]}function ct(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function ft(n){var t=H(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t,n[1]/=t,n[2]/=t}var G,nn,Z,tn,Pn,Xr,Dr,An,Tn,Sn,vn,dn={point:Bt,lineStart:Or,lineEnd:Zr,polygonStart:function(){dn.point=Wr,dn.lineStart=Ji,dn.lineEnd=Ki,Tn=new k,fn.polygonStart()},polygonEnd:function(){fn.polygonEnd(),dn.point=Bt,dn.lineStart=Or,dn.lineEnd=Zr,et<0?(G=-(Z=180),nn=-(tn=90)):Tn>m?tn=90:Tn<-m&&(nn=-90),vn[0]=G,vn[1]=Z},sphere:function(){G=-(Z=180),nn=-(tn=90)}};function Bt(n,t){Sn.push(vn=[G=n,Z=n]),ttn&&(tn=t)}function Gr(n,t){var i=wn([n*N,t*N]);if(An){var r=Nn(An,i),e=[r[1],-r[0],0],o=Nn(e,r);ft(o),o=ut(o);var a=n-Pn,u=a>0?1:-1,f=o[0]*Y*u,p,c=C(a)>180;c^(u*Pntn&&(tn=p)):(f=(f+360)%360-180,c^(u*Pntn&&(tn=t)),c?nrn(G,Z)&&(Z=n):rn(n,Z)>rn(G,Z)&&(G=n):Z>=G?(nZ&&(Z=n)):n>Pn?rn(G,n)>rn(G,Z)&&(Z=n):rn(n,Z)>rn(G,Z)&&(G=n)}else Sn.push(vn=[G=n,Z=n]);ttn&&(tn=t),An=i,Pn=n}function Or(){dn.point=Gr}function Zr(){vn[0]=G,vn[1]=Z,dn.point=Bt,An=null}function Wr(n,t){if(An){var i=n-Pn;Tn.add(C(i)>180?i+(i>0?360:-360):i)}else Xr=n,Dr=t;fn.point(n,t),Gr(n,t)}function Ji(){fn.lineStart()}function Ki(){Wr(Xr,Dr),fn.lineEnd(),C(Tn)>m&&(G=-(Z=180)),vn[0]=G,vn[1]=Z,An=null}function rn(n,t){return(t-=n)<0?t+360:t}function Qi(n,t){return n[0]-t[0]}function Br(n,t){return n[0]<=n[1]?n[0]<=t&&t<=n[1]:trn(r[0],r[1])&&(r[1]=e[1]),rn(e[0],r[1])>rn(r[0],r[1])&&(r[0]=e[0])):o.push(r=e);for(a=-Infinity,i=o.length-1,t=0,r=o[i];t<=i;r=e,++t)e=o[t],(u=rn(r[1],e[0]))>a&&(a=u,G=e[0],Z=r[1])}return Sn=vn=null,G===Infinity||nn===Infinity?[[NaN,NaN],[NaN,NaN]]:[[G,nn],[Z,tn]]}var Fn,lt,st,pt,gt,ht,vt,dt,Ht,kt,Ut,Hr,kr,Q,V,j,cn={sphere:D,point:Jt,lineStart:Ur,lineEnd:Jr,polygonStart:function(){cn.lineStart=bi,cn.lineEnd=ne},polygonEnd:function(){cn.lineStart=Ur,cn.lineEnd=Jr}};function Jt(n,t){n*=N,t*=N;var i=$(t);Yn(i*$(n),i*w(n),w(t))}function Yn(n,t,i){++Fn,st+=(n-st)/Fn,pt+=(t-pt)/Fn,gt+=(i-gt)/Fn}function Ur(){cn.point=ji}function ji(n,t){n*=N,t*=N;var i=$(t);Q=i*$(n),V=i*w(n),j=w(t),cn.point=_i,Yn(Q,V,j)}function _i(n,t){n*=N,t*=N;var i=$(t),r=i*$(n),e=i*w(n),o=w(t),a=J(H((a=V*o-j*e)*a+(a=j*r-Q*o)*a+(a=Q*e-V*r)*a),Q*r+V*e+j*o);lt+=a,ht+=a*(Q+(Q=r)),vt+=a*(V+(V=e)),dt+=a*(j+(j=o)),Yn(Q,V,j)}function Jr(){cn.point=Jt}function bi(){cn.point=te}function ne(){Kr(Hr,kr),cn.point=Jt}function te(n,t){Hr=n,kr=t,n*=N,t*=N,cn.point=Kr;var i=$(t);Q=i*$(n),V=i*w(n),j=w(t),Yn(Q,V,j)}function Kr(n,t){n*=N,t*=N;var i=$(t),r=i*$(n),e=i*w(n),o=w(t),a=V*o-j*e,u=j*r-Q*o,f=Q*e-V*r,p=Ft(a,u,f),c=K(p),s=p&&-c/p;Ht.add(s*a),kt.add(s*u),Ut.add(s*f),lt+=c,ht+=c*(Q+(Q=r)),vt+=c*(V+(V=e)),dt+=c*(j+(j=o)),Yn(Q,V,j)}function re(n){Fn=lt=st=pt=gt=ht=vt=dt=0,Ht=new k,kt=new k,Ut=new k,an(n,cn);var t=+Ht,i=+kt,r=+Ut,e=Ft(t,i,r);return eL&&(n-=Math.round(n/U)*U),[n,t]}Qt.invert=Qt;function Vt(n,t,i){return(n%=U)?t||i?Kt(Vr(n),jr(t,i)):Vr(n):t||i?jr(t,i):Qt}function Qr(n){return function(t,i){return t+=n,C(t)>L&&(t-=Math.round(t/U)*U),[t,i]}}function Vr(n){var t=Qr(n);return t.invert=Qr(-n),t}function jr(n,t){var i=$(n),r=w(n),e=$(t),o=w(t);function a(u,f){var p=$(f),c=$(u)*p,s=w(u)*p,l=w(f),g=l*i+c*r;return[J(s*e-g*o,c*i-l*r),K(g*e+s*o)]}return a.invert=function(u,f){var p=$(f),c=$(u)*p,s=w(u)*p,l=w(f),g=l*e-s*o;return[J(s*e+l*o,c*i+g*r),K(g*i-c*r)]},a}function _r(n){n=Vt(n[0]*N,n[1]*N,n.length>2?n[2]*N:0);function t(i){return i=n(i[0]*N,i[1]*N),i[0]*=Y,i[1]*=Y,i}return t.invert=function(i){return i=n.invert(i[0]*N,i[1]*N),i[0]*=Y,i[1]*=Y,i},t}function br(n,t,i,r,e,o){if(!i)return;var a=$(t),u=w(t),f=r*i;e==null?(e=t+r*U,o=t-f/2):(e=ni(a,e),o=ni(a,o),(r>0?eo)&&(e+=r*U));for(var p,c=e;r>0?c>o:c1&&n.push(n.pop().concat(n.shift()))},result:function(){var i=n;return n=[],t=null,i}}}function Et(n,t){return C(n[0]-t[0])=0;--u)e.point((s=c[u])[0],s[1]);else r(l.x,l.p.x,-1,e);l=l.p}l=l.o,c=l.z,g=!g}while(!l.v);e.lineEnd()}}function ii(n){if(!(t=n.length))return;for(var t,i=0,r=n[0],e;++i=0?1:-1,X=T*x,z=X>L,_=S*A;if(f.add(J(_*T*w(X),P*I+_*$(X))),a+=z?x+T*U:x,z^h>=i^d>=i){var W=Nn(wn(g),wn(v));ft(W);var F=Nn(o,W);ft(F);var E=(z^x>=0?-1:1)*K(F[2]);(r>E||r===E&&(W[0]||W[1]))&&(u+=z^x>=0?1:-1)}}}return(a<-m||a0){for(f||(e.polygonStart(),f=!0),e.lineStart(),A=0;A1&&d&2&&R.push(R.pop().concat(R.shift())),c.push(R.filter(ee))}return l}}function ee(n){return n.length>1}function oe(n,t){return((n=n.x)[0]<0?n[1]-O-m:O-n[1])-((t=t.x)[0]<0?t[1]-O-m:O-t[1])}var _t=oi(function(){return!0},ue,ce,[-L,-O]);function ue(n){var t=NaN,i=NaN,r=NaN,e;return{lineStart:function(){n.lineStart(),e=1},point:function(o,a){var u=o>0?L:-L,f=C(o-t);C(f-L)0?O:-O),n.point(r,i),n.lineEnd(),n.lineStart(),n.point(u,i),n.point(o,i),e=0):r!==u&&f>=L&&(C(t-r)m?mn((w(t)*(o=$(r))*w(i)-w(r)*(e=$(t))*w(n))/(e*o*a)):(t+r)/2}function ce(n,t,i,r){var e;if(n==null)e=i*O,r.point(-L,e),r.point(0,e),r.point(L,e),r.point(L,0),r.point(L,-e),r.point(0,-e),r.point(-L,-e),r.point(-L,0),r.point(-L,e);else if(C(n[0]-t[0])>m){var o=n[0]0,e=C(t)>m;function o(c,s,l,g){br(g,n,i,l,c,s)}function a(c,s){return $(c)*$(s)>t}function u(c){var s,l,g,h,y;return{lineStart:function(){h=g=!1,y=1},point:function(S,P){var M=[S,P],v,d=a(S,P),R=r?d?0:p(S,P):d?p(S+(S<0?L:-L),P):0;if(!s&&(h=g=d)&&c.lineStart(),d!==g&&(v=f(s,M),(!v||Et(s,v)||Et(M,v))&&(M[2]=1)),d!==g)y=0,d?(c.lineStart(),v=f(M,s),c.point(v[0],v[1])):(v=f(s,M),c.point(v[0],v[1],2),c.lineEnd()),s=v;else if(e&&s&&r^d){var A;!(R&l)&&(A=f(M,s,!0))&&(y=0,r?(c.lineStart(),c.point(A[0][0],A[0][1]),c.point(A[1][0],A[1][1]),c.lineEnd()):(c.point(A[1][0],A[1][1]),c.lineEnd(),c.lineStart(),c.point(A[0][0],A[0][1],3)))}d&&(!s||!Et(s,M))&&c.point(M[0],M[1]),s=M,g=d,l=R},lineEnd:function(){g&&c.lineEnd(),s=null},clean:function(){return y|(h&&g)<<1}}}function f(c,s,l){var g=wn(c),h=wn(s),y=[1,0,0],S=Nn(g,h),P=at(S,S),M=S[0],v=P-M*M;if(!v)return!l&&c;var d=t*P/v,R=-t*M/v,A=Nn(y,S),I=ct(y,d),x=ct(S,R);Wt(I,x);var T=A,X=at(I,T),z=at(T,T),_=X*X-z*(at(I,I)-1);if(_<0)return;var W=H(_),F=ct(T,(-X-W)/z);if(Wt(F,I),F=ut(F),!l)return F;var E=c[0],q=s[0],B=c[1],b=s[1],en;q0^F[1]<(C(F[0]-E)L^(E<=F[0]&&F[0]<=q)){var hn=ct(T,(-X+W)/z);return Wt(hn,I),[F,ut(hn)]}}function p(c,s){var l=r?n:L-n,g=0;return c<-l?g|=1:c>l&&(g|=2),s<-l?g|=4:s>l&&(g|=8),g}return oi(a,u,o,r?[0,-n]:[-L,n-L])}function fe(n,t,i,r,e,o){var a=n[0],u=n[1],f=t[0],p=t[1],c=0,s=1,l=f-a,g=p-u,h;if(h=i-a,!l&&h>0)return;if(h/=l,l<0){if(h0){if(h>s)return;h>c&&(c=h)}if(h=e-a,!l&&h<0)return;if(h/=l,l<0){if(h>s)return;h>c&&(c=h)}else if(l>0){if(h0)return;if(h/=g,g<0){if(h0){if(h>s)return;h>c&&(c=h)}if(h=o-u,!g&&h<0)return;if(h/=g,g<0){if(h>s)return;h>c&&(c=h)}else if(g>0){if(h0&&(n[0]=a+c*l,n[1]=u+c*g),s<1&&(t[0]=a+s*l,t[1]=u+s*g),!0}var Xn=1e9,yt=-Xn;function wt(n,t,i,r){function e(p,c){return n<=p&&p<=i&&t<=c&&c<=r}function o(p,c,s,l){var g=0,h=0;if(p==null||(g=a(p,s))!==(h=a(c,s))||f(p,c)<0^s>0)do l.point(g===0||g===3?n:i,g>1?r:t);while((g=(g+s+4)%4)!==h);else l.point(c[0],c[1])}function a(p,c){return C(p[0]-n)0?0:3:C(p[0]-i)0?2:1:C(p[1]-t)0?1:0:c>0?3:2}function u(p,c){return f(p.x,c.x)}function f(p,c){var s=a(p,1),l=a(c,1);return s!==l?s-l:s===0?c[1]-p[1]:s===1?p[0]-c[0]:s===2?p[1]-c[1]:c[0]-p[0]}return function(p){var c=p,s=ti(),l,g,h,y,S,P,M,v,d,R,A,I={point:x,lineStart:_,lineEnd:W,polygonStart:X,polygonEnd:z};function x(E,q){e(E,q)&&c.point(E,q)}function T(){for(var E=0,q=0,B=g.length;qr&&(bn-yn)*(r-hn)>(Mn-hn)*(n-yn)&&++E:Mn<=r&&(bn-yn)*(r-hn)<(Mn-hn)*(n-yn)&&--E;return E}function X(){c=s,l=[],g=[],A=!0}function z(){var E=T(),q=A&&E,B=(l=Ar(l)).length;(q||B)&&(p.polygonStart(),q&&(p.lineStart(),o(null,null,1,p),p.lineEnd()),B&&ri(l,u,E,o,p),p.polygonEnd()),c=p,l=g=h=null}function _(){I.point=F,g&&g.push(h=[]),R=!0,d=!1,M=v=NaN}function W(){l&&(F(y,S),P&&d&&s.rejoin(),l.push(s.result())),I.point=x,d&&c.lineEnd()}function F(E,q){var B=e(E,q);if(g&&h.push([E,q]),R)y=E,S=q,P=B,R=!1,B&&(c.lineStart(),c.point(E,q));else if(B&&d)c.point(E,q);else{var b=[M=Math.max(yt,Math.min(Xn,M)),v=Math.max(yt,Math.min(Xn,v))],en=[E=Math.max(yt,Math.min(Xn,E)),q=Math.max(yt,Math.min(Xn,q))];fe(b,en,n,t,i,r)?(d||(c.lineStart(),c.point(b[0],b[1])),c.point(en[0],en[1]),B||c.lineEnd(),A=!1):B&&(c.lineStart(),c.point(E,q),A=!1)}M=E,v=q,d=B}return I}}function le(){var n=0,t=0,i=960,r=500,e,o,a;return a={stream:function(u){return e&&o===u?e:e=wt(n,t,i,r)(o=u)},extent:function(u){return arguments.length?(n=+u[0][0],t=+u[0][1],i=+u[1][0],r=+u[1][1],e=o=null,a):[[n,t],[i,r]]}}}var bt,nr,Pt,Rt,Ln={sphere:D,point:D,lineStart:se,lineEnd:D,polygonStart:D,polygonEnd:D};function se(){Ln.point=ge,Ln.lineEnd=pe}function pe(){Ln.point=Ln.lineEnd=D}function ge(n,t){n*=N,t*=N,nr=n,Pt=w(t),Rt=$(t),Ln.point=he}function he(n,t){n*=N,t*=N;var i=w(t),r=$(t),e=C(n-nr),o=$(e),a=w(e),u=r*a,f=Rt*i-Pt*r*o,p=Pt*i+Rt*r*o;bt.add(J(H(u*u+f*f),p)),nr=n,Pt=i,Rt=r}function ai(n){return bt=new k,an(n,Ln),+bt}var tr=[null,null],ve={type:"LineString",coordinates:tr};function Mt(n,t){return tr[0]=n,tr[1]=t,ai(ve)}var ci={Feature:function(n,t){return $t(n.geometry,t)},FeatureCollection:function(n,t){for(var i=n.features,r=-1,e=i.length;++r0&&(e=Mt(n[o],n[o-1]),e>0&&i<=e&&r<=e&&(i+r-e)*(1-Math.pow((i-r)/e,2))m}).map(l)).concat($n(tt(o/p)*p,e,p).filter(function(v){return C(v%s)>m}).map(g))}return P.lines=function(){return M().map(function(v){return{type:"LineString",coordinates:v}})},P.outline=function(){return{type:"Polygon",coordinates:[h(r).concat(y(a).slice(1),h(i).reverse().slice(1),y(u).reverse().slice(1))]}},P.extent=function(v){return arguments.length?P.extentMajor(v).extentMinor(v):P.extentMinor()},P.extentMajor=function(v){return arguments.length?(r=+v[0][0],i=+v[1][0],u=+v[0][1],a=+v[1][1],r>i&&(v=r,r=i,i=v),u>a&&(v=u,u=a,a=v),P.precision(S)):[[r,u],[i,a]]},P.extentMinor=function(v){return arguments.length?(t=+v[0][0],n=+v[1][0],o=+v[0][1],e=+v[1][1],t>n&&(v=t,t=n,n=v),o>e&&(v=o,o=e,e=v),P.precision(S)):[[t,o],[n,e]]},P.step=function(v){return arguments.length?P.stepMajor(v).stepMinor(v):P.stepMinor()},P.stepMajor=function(v){return arguments.length?(c=+v[0],s=+v[1],P):[c,s]},P.stepMinor=function(v){return arguments.length?(f=+v[0],p=+v[1],P):[f,p]},P.precision=function(v){return arguments.length?(S=+v,l=hi(o,e,90),g=vi(t,n,S),h=hi(u,a,90),y=vi(r,i,S),P):S},P.extentMajor([[-180,-90+m],[180,90-m]]).extentMinor([[-180,-80-m],[180,80+m]])}function Se(){return di()()}function ye(n,t){var i=n[0]*N,r=n[1]*N,e=t[0]*N,o=t[1]*N,a=$(r),u=w(r),f=$(o),p=w(o),c=a*$(i),s=a*w(i),l=f*$(e),g=f*w(e),h=2*K(H(Cr(o-r)+a*f*Cr(e-i))),y=w(h),S=h?function(P){var M=w(P*=h)/y,v=w(h-P)/y,d=v*c+M*l,R=v*s+M*g,A=v*u+M*p;return[J(R,d)*Y,J(A,H(d*d+R*R))*Y]}:function(){return[i*Y,r*Y]};return S.distance=h,S}var Dn=n=>n,rr=new k,ir=new k,Ei,Si,er,or,En={point:D,lineStart:D,lineEnd:D,polygonStart:function(){En.lineStart=we,En.lineEnd=Re},polygonEnd:function(){En.lineStart=En.lineEnd=En.point=D,rr.add(C(ir)),ir=new k},result:function(){var n=rr/2;return rr=new k,n}};function we(){En.point=Pe}function Pe(n,t){En.point=yi,Ei=er=n,Si=or=t}function yi(n,t){ir.add(or*n-er*t),er=n,or=t}function Re(){yi(Ei,Si)}var Cn=Infinity,mt=Cn,Gn=-Cn,Nt=Gn,At={point:Me,lineStart:D,lineEnd:D,polygonStart:D,polygonEnd:D,result:function(){var n=[[Cn,mt],[Gn,Nt]];return Gn=Nt=-(mt=Cn=Infinity),n}};function Me(n,t){nGn&&(Gn=n),tNt&&(Nt=t)}var ur=0,ar=0,On=0,zt=0,Lt=0,qn=0,cr=0,fr=0,Zn=0,wi,Pi,ln,sn,un={point:Rn,lineStart:Ri,lineEnd:Mi,polygonStart:function(){un.lineStart=Ne,un.lineEnd=Ae},polygonEnd:function(){un.point=Rn,un.lineStart=Ri,un.lineEnd=Mi},result:function(){var n=Zn?[cr/Zn,fr/Zn]:qn?[zt/qn,Lt/qn]:On?[ur/On,ar/On]:[NaN,NaN];return ur=ar=On=zt=Lt=qn=cr=fr=Zn=0,n}};function Rn(n,t){ur+=n,ar+=t,++On}function Ri(){un.point=$e}function $e(n,t){un.point=me,Rn(ln=n,sn=t)}function me(n,t){var i=n-ln,r=t-sn,e=H(i*i+r*r);zt+=e*(ln+n)/2,Lt+=e*(sn+t)/2,qn+=e,Rn(ln=n,sn=t)}function Mi(){un.point=Rn}function Ne(){un.point=ze}function Ae(){$i(wi,Pi)}function ze(n,t){un.point=$i,Rn(wi=ln=n,Pi=sn=t)}function $i(n,t){var i=n-ln,r=t-sn,e=H(i*i+r*r);zt+=e*(ln+n)/2,Lt+=e*(sn+t)/2,qn+=e,e=sn*n-ln*t,cr+=e*(ln+n),fr+=e*(sn+t),Zn+=e*3,Rn(ln=n,sn=t)}function mi(n){this._context=n}mi.prototype={_radius:4.5,pointRadius:function(n){return this._radius=n,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(n,t){switch(this._point){case 0:{this._context.moveTo(n,t),this._point=1;break}case 1:{this._context.lineTo(n,t);break}default:{this._context.moveTo(n+this._radius,t),this._context.arc(n,t,this._radius,0,U);break}}},result:D};var lr=new k,sr,Ni,Ai,Wn,Bn,Hn={point:D,lineStart:function(){Hn.point=Le},lineEnd:function(){sr&&zi(Ni,Ai),Hn.point=D},polygonStart:function(){sr=!0},polygonEnd:function(){sr=null},result:function(){var n=+lr;return lr=new k,n}};function Le(n,t){Hn.point=zi,Ni=Wn=n,Ai=Bn=t}function zi(n,t){Wn-=n,Bn-=t,lr.add(H(Wn*Wn+Bn*Bn)),Wn=n,Bn=t}let Li,Ct,Ci,qi;class Ii{constructor(t){this._append=t==null?xi:Ce(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(t,i){switch(this._point){case 0:{this._append`M${t},${i}`,this._point=1;break}case 1:{this._append`L${t},${i}`;break}default:{if(this._append`M${t},${i}`,this._radius!==Ci||this._append!==Ct){const r=this._radius,e=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`,Ci=r,Ct=this._append,qi=this._,this._=e}this._+=qi;break}}}result(){const t=this._;return this._="",t.length?t:null}}function xi(n){let t=1;this._+=n[0];for(const i=n.length;t=0))throw new RangeError(`invalid digits: ${n}`);if(t>15)return xi;if(t!==Li){const i=10**t;Li=t,Ct=function(e){let o=1;this._+=e[0];for(const a=e.length;o=0))throw new RangeError(`invalid digits: ${u}`);i=f}return t===null&&(o=new Ii(i)),a},a.projection(n).digits(i).context(t)}function Ie(n){return{stream:kn(n)}}function kn(n){return function(t){var i=new pr;for(var r in n)i[r]=n[r];return i.stream=t,i}}function pr(){}pr.prototype={constructor:pr,point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function gr(n,t,i){var r=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),r!=null&&n.clipExtent(null),an(i,n.stream(At)),t(At.result()),r!=null&&n.clipExtent(r),n}function qt(n,t,i){return gr(n,function(r){var e=t[1][0]-t[0][0],o=t[1][1]-t[0][1],a=Math.min(e/(r[1][0]-r[0][0]),o/(r[1][1]-r[0][1])),u=+t[0][0]+(e-a*(r[1][0]+r[0][0]))/2,f=+t[0][1]+(o-a*(r[1][1]+r[0][1]))/2;n.scale(150*a).translate([u,f])},i)}function hr(n,t,i){return qt(n,[[0,0],t],i)}function vr(n,t,i){return gr(n,function(r){var e=+t,o=e/(r[1][0]-r[0][0]),a=(e-o*(r[1][0]+r[0][0]))/2,u=-o*r[0][1];n.scale(150*o).translate([a,u])},i)}function dr(n,t,i){return gr(n,function(r){var e=+t,o=e/(r[1][1]-r[0][1]),a=-o*r[0][0],u=(e-o*(r[1][1]+r[0][1]))/2;n.scale(150*o).translate([a,u])},i)}var Ti=16,xe=$(30*N);function Fi(n,t){return+t?Fe(n,t):Te(n)}function Te(n){return kn({point:function(t,i){t=n(t,i),this.stream.point(t[0],t[1])}})}function Fe(n,t){function i(r,e,o,a,u,f,p,c,s,l,g,h,y,S){var P=p-r,M=c-e,v=P*P+M*M;if(v>4*t&&y--){var d=a+l,R=u+g,A=f+h,I=H(d*d+R*R+A*A),x=K(A/=I),T=C(C(A)-1)t||C((P*W+M*F)/v-.5)>.3||a*l+u*g+f*h2?E[2]%360*N:0,W()):[u*Y,f*Y,p*Y]},z.angle=function(E){return arguments.length?(s=E%360*N,W()):s*Y},z.reflectX=function(E){return arguments.length?(l=E?-1:1,W()):l<0},z.reflectY=function(E){return arguments.length?(g=E?-1:1,W()):g<0},z.precision=function(E){return arguments.length?(A=Fi(I,R=E*E),F()):H(R)},z.fitExtent=function(E,q){return qt(z,E,q)},z.fitSize=function(E,q){return hr(z,E,q)},z.fitWidth=function(E,q){return vr(z,E,q)},z.fitHeight=function(E,q){return dr(z,E,q)};function W(){var E=Yi(i,0,0,l,g,s).apply(null,t(o,a)),q=Yi(i,r-E[0],e-E[1],l,g,s);return c=Vt(u,f,p),I=Kt(t,q),x=Kt(c,I),A=Fi(I,R),F()}function F(){return T=X=null,z}return function(){return t=n.apply(this,arguments),z.invert=t.invert&&_,W()}}function Sr(n){var t=0,i=L/3,r=Er(n),e=r(t,i);return e.parallels=function(o){return arguments.length?r(t=o[0]*N,i=o[1]*N):[t*Y,i*Y]},e}function Ge(n){var t=$(n);function i(r,e){return[r*t,w(e)/t]}return i.invert=function(r,e){return[r/t,K(e*t)]},i}function Xi(n,t){var i=w(n),r=(i+w(t))/2;if(C(r)=.12&&S<.234&&y>=-.425&&y<-.214?e:S>=.166&&S<.234&&y>=-.214&&y<-.115?a:i).invert(l)},c.stream=function(l){return n&&t===l?n:n=Oe([i.stream(t=l),e.stream(l),a.stream(l)])},c.precision=function(l){return arguments.length?(i.precision(l),e.precision(l),a.precision(l),s()):i.precision()},c.scale=function(l){return arguments.length?(i.scale(l),e.scale(l*.35),a.scale(l),c.translate(i.translate())):i.scale()},c.translate=function(l){if(!arguments.length)return i.translate();var g=i.scale(),h=+l[0],y=+l[1];return r=i.translate(l).clipExtent([[h-.455*g,y-.238*g],[h+.455*g,y+.238*g]]).stream(p),o=e.translate([h-.307*g,y+.201*g]).clipExtent([[h-.425*g+m,y+.12*g+m],[h-.214*g-m,y+.234*g-m]]).stream(p),u=a.translate([h-.205*g,y+.212*g]).clipExtent([[h-.214*g+m,y+.166*g+m],[h-.115*g-m,y+.234*g-m]]).stream(p),s()},c.fitExtent=function(l,g){return qt(c,l,g)},c.fitSize=function(l,g){return hr(c,l,g)},c.fitWidth=function(l,g){return vr(c,l,g)},c.fitHeight=function(l,g){return dr(c,l,g)};function s(){return n=t=null,c}return c.scale(1070)}function Gi(n){return function(t,i){var r=$(t),e=$(i),o=n(r*e);return o===Infinity?[2,0]:[o*e*w(t),o*w(i)]}}function Un(n){return function(t,i){var r=H(t*t+i*i),e=n(r),o=w(e),a=$(e);return[J(t*o,r*a),K(r&&i*o/r)]}}var yr=Gi(function(n){return H(2/(1+n))});yr.invert=Un(function(n){return 2*K(n/2)});function We(){return pn(yr).scale(124.75).clipAngle(180-.001)}var wr=Gi(function(n){return(n=Lr(n))&&n/w(n)});wr.invert=Un(function(n){return n});function Be(){return pn(wr).scale(79.4188).clipAngle(180-.001)}function Jn(n,t){return[n,rt(Xt((O+t)/2))]}Jn.invert=function(n,t){return[n,2*mn(zr(t))-O]};function He(){return Oi(Jn).scale(961/U)}function Oi(n){var t=pn(n),i=t.center,r=t.scale,e=t.translate,o=t.clipExtent,a=null,u,f,p;t.scale=function(s){return arguments.length?(r(s),c()):r()},t.translate=function(s){return arguments.length?(e(s),c()):e()},t.center=function(s){return arguments.length?(i(s),c()):i()},t.clipExtent=function(s){return arguments.length?(s==null?a=u=f=p=null:(a=+s[0][0],u=+s[0][1],f=+s[1][0],p=+s[1][1]),c()):a==null?null:[[a,u],[f,p]]};function c(){var s=L*r(),l=t(_r(t.rotate()).invert([0,0]));return o(a==null?[[l[0]-s,l[1]-s],[l[0]+s,l[1]+s]]:n===Jn?[[Math.max(l[0]-s,a),u],[Math.min(l[0]+s,f),p]]:[[a,Math.max(l[1]-s,u)],[f,Math.min(l[1]+s,p)]])}return c()}function xt(n){return Xt((O+n)/2)}function Zi(n,t){var i=$(n),r=n===t?w(n):rt(i/$(t))/rt(xt(t)/xt(n)),e=i*Yt(xt(n),r)/r;if(!r)return Jn;function o(a,u){e>0?u<-O+m&&(u=-O+m):u>O-m&&(u=O-m);var f=e/Yt(xt(u),r);return[f*w(r*a),e-f*$(r*a)]}return o.invert=function(a,u){var f=e-u,p=on(r)*H(a*a+f*f),c=J(a,C(f))*on(f);return f*r<0&&(c-=L*on(a)*on(f)),[c/r,2*mn(Yt(e/p,1/r))-O]},o}function ke(){return Sr(Zi).scale(109.5).parallels([30,30])}function Kn(n,t){return[n,t]}Kn.invert=Kn;function Ue(){return pn(Kn).scale(152.63)}function Wi(n,t){var i=$(n),r=n===t?w(n):(i-$(t))/(t-n),e=i/r+n;if(C(r)m&&--r>0);return[n/(.8707+(o=i*i)*(-.131979+o*(-.013791+o*o*o*(.003971-.001529*o)))),i]};function _e(){return pn(Mr).scale(175.295)}function $r(n,t){return[$(t)*w(n),w(t)]}$r.invert=Un(K);function be(){return pn($r).scale(249.5).clipAngle(90+m)}function mr(n,t){var i=$(t),r=1+$(n)*i;return[i*w(n)/r,w(t)/r]}mr.invert=Un(function(n){return 2*mn(n)});function no(){return pn(mr).scale(250).clipAngle(142)}function Nr(n,t){return[rt(Xt((O+t)/2)),-n]}Nr.invert=function(n,t){return[-t,2*mn(zr(n))-O]};function to(){var n=Oi(Nr),t=n.center,i=n.rotate;return n.center=function(r){return arguments.length?t([-r[1],r[0]]):(r=t(),[r[1],-r[0]])},n.rotate=function(r){return arguments.length?i([r[0],r[1],r.length>2?r[2]+90:90]):(r=i(),[r[0],r[1],r[2]-90])},i([0,0,90]).scale(159.155)}export{Di as geoAlbers,Ze as geoAlbersUsa,Ui as geoArea,We as geoAzimuthalEqualArea,yr as geoAzimuthalEqualAreaRaw,Be as geoAzimuthalEquidistant,wr as geoAzimuthalEquidistantRaw,Vi as geoBounds,re as geoCentroid,ie as geoCircle,_t as geoClipAntimeridian,ui as geoClipCircle,le as geoClipExtent,wt as geoClipRectangle,ke as geoConicConformal,Zi as geoConicConformalRaw,It as geoConicEqualArea,Xi as geoConicEqualAreaRaw,Je as geoConicEquidistant,Wi as geoConicEquidistantRaw,Ee as geoContains,Mt as geoDistance,Qe as geoEqualEarth,Pr as geoEqualEarthRaw,Ue as geoEquirectangular,Kn as geoEquirectangularRaw,Ve as geoGnomonic,Rr as geoGnomonicRaw,di as geoGraticule,Se as geoGraticule10,je as geoIdentity,ye as geoInterpolate,ai as geoLength,He as geoMercator,Jn as geoMercatorRaw,_e as geoNaturalEarth1,Mr as geoNaturalEarth1Raw,be as geoOrthographic,$r as geoOrthographicRaw,qe as geoPath,pn as geoProjection,Er as geoProjectionMutator,_r as geoRotation,no as geoStereographic,mr as geoStereographicRaw,an as geoStream,Ie as geoTransform,to as geoTransverseMercator,Nr as geoTransverseMercatorRaw};export default null;