Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

d3-geo

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d3-geo - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

4

build/d3-geo.min.js

@@ -1,2 +0,2 @@

// https://d3js.org/d3-geo/ Version 1.3.0. Copyright 2016 Mike Bostock.
(function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("d3-array")):"function"==typeof define&&define.amd?define(["exports","d3-array"],t):t(n.d3=n.d3||{},n.d3)})(this,function(n,t){"use strict";function r(){this.reset()}function i(n,t,r){var i=n.s=t+r,e=i-t,o=i-e;n.t=t-o+(r-e)}function e(n){return n>1?0:n<-1?Lt:Math.acos(n)}function o(n){return n>1?Ot:n<-1?-Ot:Math.asin(n)}function u(n){return(n=Qt(n/2))*n}function a(){}function c(n,t){n&&$t.hasOwnProperty(n.type)&&$t[n.type](n,t)}function l(n,t,r){var i,e=-1,o=n.length-r;for(t.lineStart();++e<o;)i=n[e],t.point(i[0],i[1],i[2]);t.lineEnd()}function f(n,t){var r=-1,i=n.length;for(t.polygonStart();++r<i;)l(n[r],t,1);t.polygonEnd()}function p(){ir.point=h}function s(){g(nt,tt)}function h(n,t){ir.point=g,nt=n,tt=t,n*=It,t*=It,rt=n,it=Ut(t=t/2+Tt),et=Qt(t)}function g(n,t){n*=It,t*=It,t=t/2+Tt;var r=n-rt,i=r>=0?1:-1,e=i*r,o=Ut(t),u=Qt(t),a=et*u,c=it*o+a*Ut(e),l=a*i*Qt(e);tr.add(Dt(l,c)),rt=n,it=o,et=u}function v(n){return[Dt(n[1],n[0]),o(n[2])]}function d(n){var t=n[0],r=n[1],i=Ut(r);return[i*Ut(t),i*Qt(t),Qt(r)]}function E(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function S(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 y(n,t){n[0]+=t[0],n[1]+=t[1],n[2]+=t[2]}function m(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function x(n){var t=Wt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t,n[1]/=t,n[2]/=t}function M(n,t){ht.push(gt=[ot=n,at=n]),t<ut&&(ut=t),t>ct&&(ct=t)}function _(n,t){var r=d([n*It,t*It]);if(st){var i=S(st,r),e=[i[1],-i[0],0],o=S(e,i);x(o),o=v(o);var u,a=n-lt,c=a>0?1:-1,l=o[0]*Gt*c,f=Ft(a)>180;f^(c*lt<l&&l<c*n)?(u=o[1]*Gt,u>ct&&(ct=u)):(l=(l+360)%360-180,f^(c*lt<l&&l<c*n)?(u=-o[1]*Gt,u<ut&&(ut=u)):(t<ut&&(ut=t),t>ct&&(ct=t))),f?n<lt?P(ot,n)>P(ot,at)&&(at=n):P(n,at)>P(ot,at)&&(ot=n):at>=ot?(n<ot&&(ot=n),n>at&&(at=n)):n>lt?P(ot,n)>P(ot,at)&&(at=n):P(n,at)>P(ot,at)&&(ot=n)}else M(n,t);st=r,lt=n}function N(){ur.point=_}function w(){gt[0]=ot,gt[1]=at,ur.point=M,st=null}function R(n,t){if(st){var r=n-lt;or.add(Ft(r)>180?r+(r>0?360:-360):r)}else ft=n,pt=t;ir.point(n,t),_(n,t)}function A(){ir.lineStart()}function j(){R(ft,pt),ir.lineEnd(),Ft(or)>zt&&(ot=-(at=180)),gt[0]=ot,gt[1]=at,st=null}function P(n,t){return(t-=n)<0?t+360:t}function C(n,t){return n[0]-t[0]}function q(n,t){return n[0]<=n[1]?n[0]<=t&&t<=n[1]:t<n[0]||n[1]<t}function z(n,t){n*=It,t*=It;var r=Ut(t);b(r*Ut(n),r*Qt(n),Qt(t))}function b(n,t,r){++vt,Et+=(n-Et)/vt,St+=(t-St)/vt,yt+=(r-yt)/vt}function L(){cr.point=O}function O(n,t){n*=It,t*=It;var r=Ut(t);jt=r*Ut(n),Pt=r*Qt(n),Ct=Qt(t),cr.point=T,b(jt,Pt,Ct)}function T(n,t){n*=It,t*=It;var r=Ut(t),i=r*Ut(n),e=r*Qt(n),o=Qt(t),u=Dt(Wt((u=Pt*o-Ct*e)*u+(u=Ct*i-jt*o)*u+(u=jt*e-Pt*i)*u),jt*i+Pt*e+Ct*o);dt+=u,mt+=u*(jt+(jt=i)),xt+=u*(Pt+(Pt=e)),Mt+=u*(Ct+(Ct=o)),b(jt,Pt,Ct)}function k(){cr.point=z}function G(){cr.point=F}function I(){B(Rt,At),cr.point=z}function F(n,t){Rt=n,At=t,n*=It,t*=It,cr.point=B;var r=Ut(t);jt=r*Ut(n),Pt=r*Qt(n),Ct=Qt(t),b(jt,Pt,Ct)}function B(n,t){n*=It,t*=It;var r=Ut(t),i=r*Ut(n),o=r*Qt(n),u=Qt(t),a=Pt*u-Ct*o,c=Ct*i-jt*u,l=jt*o-Pt*i,f=Wt(a*a+c*c+l*l),p=jt*i+Pt*o+Ct*u,s=f&&-e(p)/f,h=Dt(f,p);_t+=s*a,Nt+=s*c,wt+=s*l,dt+=h,mt+=h*(jt+(jt=i)),xt+=h*(Pt+(Pt=o)),Mt+=h*(Ct+(Ct=u)),b(jt,Pt,Ct)}function D(n,t){return[n>Lt?n-kt:n<-Lt?n+kt:n,t]}function U(n,t,r){return(n%=kt)?t||r?pr(H(n),J(t,r)):H(n):t||r?J(t,r):D}function Z(n){return function(t,r){return t+=n,[t>Lt?t-kt:t<-Lt?t+kt:t,r]}}function H(n){var t=Z(n);return t.invert=Z(-n),t}function J(n,t){function r(n,t){var r=Ut(t),c=Ut(n)*r,l=Qt(n)*r,f=Qt(t),p=f*i+c*e;return[Dt(l*u-p*a,c*i-f*e),o(p*u+l*a)]}var i=Ut(n),e=Qt(n),u=Ut(t),a=Qt(t);return r.invert=function(n,t){var r=Ut(t),c=Ut(n)*r,l=Qt(n)*r,f=Qt(t),p=f*u-l*a;return[Dt(l*u+f*a,c*i+p*e),o(p*i-c*e)]},r}function K(n,t,r,i,e,o){if(r){var u=Ut(t),a=Qt(t),c=i*r;null==e?(e=t+i*kt,o=t-c/2):(e=Q(u,e),o=Q(u,o),(i>0?e<o:e>o)&&(e+=i*kt));for(var l,f=e;i>0?f>o:f<o;f-=c)l=v([u,-a*Ut(f),-a*Qt(f)]),n.point(l[0],l[1])}}function Q(n,t){t=d(t),t[0]-=n,x(t);var r=e(-t[1]);return((-t[2]<0?-r:r)+kt-zt)%kt}function V(n,t,r,i){this.x=n,this.z=t,this.o=r,this.e=i,this.v=!1,this.n=this.p=null}function W(n){if(t=n.length){for(var t,r,i=0,e=n[0];++i<t;)e.n=r=n[i],r.p=e,e=r;e.n=r=n[0],r.p=e}}function X(n,r,i,e){function o(t,o){return n<=t&&t<=i&&r<=o&&o<=e}function u(t,o,u,c){var f=0,p=0;if(null==t||(f=a(t,u))!==(p=a(o,u))||l(t,o)<0^u>0){do c.point(0===f||3===f?n:i,f>1?e:r);while((f=(f+u+4)%4)!==p)}else c.point(o[0],o[1])}function a(t,e){return Ft(t[0]-n)<zt?e>0?0:3:Ft(t[0]-i)<zt?e>0?2:1:Ft(t[1]-r)<zt?e>0?1:0:e>0?3:2}function c(n,t){return l(n.x,t.x)}function l(n,t){var r=a(n,1),i=a(t,1);return r!==i?r-i:0===r?t[1]-n[1]:1===r?n[0]-t[0]:2===r?n[1]-t[1]:t[0]-n[0]}return function(a){function l(n,t){o(n,t)&&A.point(n,t)}function f(){for(var t=0,r=0,i=E.length;r<i;++r)for(var o,u,a=E[r],c=1,l=a.length,f=a[0],p=f[0],s=f[1];c<l;++c)o=p,u=s,f=a[c],p=f[0],s=f[1],u<=e?s>e&&(p-o)*(e-u)>(s-u)*(n-o)&&++t:s<=e&&(p-o)*(e-u)<(s-u)*(n-o)&&--t;return t}function p(){A=j,d=[],E=[],R=!0}function s(){var n=f(),r=R&&n,i=(d=t.merge(d)).length;(r||i)&&(a.polygonStart(),r&&(a.lineStart(),u(null,null,1,a),a.lineEnd()),i&&jr(d,c,n,u,a),a.polygonEnd()),A=a,d=E=S=null}function h(){P.point=v,E&&E.push(S=[]),w=!0,N=!1,M=_=NaN}function g(){d&&(v(y,m),x&&N&&j.rejoin(),d.push(j.result())),P.point=l,N&&A.lineEnd()}function v(t,u){var a=o(t,u);if(E&&S.push([t,u]),w)y=t,m=u,x=a,w=!1,a&&(A.lineStart(),A.point(t,u));else if(a&&N)A.point(t,u);else{var c=[M=Math.max(Cr,Math.min(Pr,M)),_=Math.max(Cr,Math.min(Pr,_))],l=[t=Math.max(Cr,Math.min(Pr,t)),u=Math.max(Cr,Math.min(Pr,u))];Rr(c,l,n,r,i,e)?(N||(A.lineStart(),A.point(c[0],c[1])),A.point(l[0],l[1]),a||A.lineEnd(),R=!1):a&&(A.lineStart(),A.point(t,u),R=!1)}M=t,_=u,N=a}var d,E,S,y,m,x,M,_,N,w,R,A=a,j=wr(),P={point:l,lineStart:h,lineEnd:g,polygonStart:p,polygonEnd:s};return P}}function Y(){br.point=nn,br.lineEnd=$}function $(){br.point=br.lineEnd=a}function nn(n,t){n*=It,t*=It,sr=n,hr=Qt(t),gr=Ut(t),br.point=tn}function tn(n,t){n*=It,t*=It;var r=Qt(t),i=Ut(t),e=Ft(n-sr),o=Ut(e),u=Qt(e),a=i*u,c=gr*r-hr*i*o,l=hr*r+gr*i*o;zr.add(Dt(Wt(a*a+c*c),l)),sr=n,hr=r,gr=i}function rn(n,r,i){var e=t.range(n,r-zt,i).concat(r);return function(n){return e.map(function(t){return[n,t]})}}function en(n,r,i){var e=t.range(n,r-zt,i).concat(r);return function(n){return e.map(function(t){return[t,n]})}}function on(){function n(){return{type:"MultiLineString",coordinates:r()}}function r(){return t.range(Zt(u/E)*E,o,E).map(h).concat(t.range(Zt(f/S)*S,l,S).map(g)).concat(t.range(Zt(e/v)*v,i,v).filter(function(n){return Ft(n%E)>zt}).map(p)).concat(t.range(Zt(c/d)*d,a,d).filter(function(n){return Ft(n%S)>zt}).map(s))}var i,e,o,u,a,c,l,f,p,s,h,g,v=10,d=v,E=90,S=360,y=2.5;return n.lines=function(){return r().map(function(n){return{type:"LineString",coordinates:n}})},n.outline=function(){return{type:"Polygon",coordinates:[h(u).concat(g(l).slice(1),h(o).reverse().slice(1),g(f).reverse().slice(1))]}},n.extent=function(t){return arguments.length?n.extentMajor(t).extentMinor(t):n.extentMinor()},n.extentMajor=function(t){return arguments.length?(u=+t[0][0],o=+t[1][0],f=+t[0][1],l=+t[1][1],u>o&&(t=u,u=o,o=t),f>l&&(t=f,f=l,l=t),n.precision(y)):[[u,f],[o,l]]},n.extentMinor=function(t){return arguments.length?(e=+t[0][0],i=+t[1][0],c=+t[0][1],a=+t[1][1],e>i&&(t=e,e=i,i=t),c>a&&(t=c,c=a,a=t),n.precision(y)):[[e,c],[i,a]]},n.step=function(t){return arguments.length?n.stepMajor(t).stepMinor(t):n.stepMinor()},n.stepMajor=function(t){return arguments.length?(E=+t[0],S=+t[1],n):[E,S]},n.stepMinor=function(t){return arguments.length?(v=+t[0],d=+t[1],n):[v,d]},n.precision=function(t){return arguments.length?(y=+t,p=rn(c,a,90),s=en(e,i,y),h=rn(f,l,90),g=en(u,o,y),n):y},n.extentMajor([[-180,-90+zt],[180,90-zt]]).extentMinor([[-180,-80-zt],[180,80+zt]])}function un(){Dr.point=an}function an(n,t){Dr.point=cn,vr=Er=n,dr=Sr=t}function cn(n,t){Br.add(Sr*n-Er*t),Er=n,Sr=t}function ln(){cn(vr,dr)}function fn(n,t){n<Ur&&(Ur=n),n>Hr&&(Hr=n),t<Zr&&(Zr=t),t>Jr&&(Jr=t)}function pn(n,t){Qr+=n,Vr+=t,++Wr}function sn(){ii.point=hn}function hn(n,t){ii.point=gn,pn(xr=n,Mr=t)}function gn(n,t){var r=n-xr,i=t-Mr,e=Wt(r*r+i*i);Xr+=e*(xr+n)/2,Yr+=e*(Mr+t)/2,$r+=e,pn(xr=n,Mr=t)}function vn(){ii.point=pn}function dn(){ii.point=Sn}function En(){yn(yr,mr)}function Sn(n,t){ii.point=yn,pn(yr=xr=n,mr=Mr=t)}function yn(n,t){var r=n-xr,i=t-Mr,e=Wt(r*r+i*i);Xr+=e*(xr+n)/2,Yr+=e*(Mr+t)/2,$r+=e,e=Mr*n-xr*t,ni+=e*(xr+n),ti+=e*(Mr+t),ri+=3*e,pn(xr=n,Mr=t)}function mn(n){this._context=n}function xn(){this._string=[]}function Mn(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function _n(n){return n.length>1}function Nn(n,t){return((n=n.x)[0]<0?n[1]-Ot-zt:Ot-n[1])-((t=t.x)[0]<0?t[1]-Ot-zt:Ot-t[1])}function wn(n){var t,r=NaN,i=NaN,e=NaN;return{lineStart:function(){n.lineStart(),t=1},point:function(o,u){var a=o>0?Lt:-Lt,c=Ft(o-r);Ft(c-Lt)<zt?(n.point(r,i=(i+u)/2>0?Ot:-Ot),n.point(e,i),n.lineEnd(),n.lineStart(),n.point(a,i),n.point(o,i),t=0):e!==a&&c>=Lt&&(Ft(r-e)<zt&&(r-=e*zt),Ft(o-a)<zt&&(o-=a*zt),i=Rn(r,i,o,u),n.point(e,i),n.lineEnd(),n.lineStart(),n.point(a,i),t=0),n.point(r=o,i=u),e=a},lineEnd:function(){n.lineEnd(),r=i=NaN},clean:function(){return 2-t}}}function Rn(n,t,r,i){var e,o,u=Qt(n-r);return Ft(u)>zt?Bt((Qt(t)*(o=Ut(i))*Qt(r)-Qt(i)*(e=Ut(t))*Qt(n))/(e*o*u)):(t+i)/2}function An(n,t,r,i){var e;if(null==n)e=r*Ot,i.point(-Lt,e),i.point(0,e),i.point(Lt,e),i.point(Lt,0),i.point(Lt,-e),i.point(0,-e),i.point(-Lt,-e),i.point(-Lt,0),i.point(-Lt,e);else if(Ft(n[0]-t[0])>zt){var o=n[0]<t[0]?Lt:-Lt;e=r*o/2,i.point(-o,e),i.point(0,e),i.point(o,e)}else i.point(t[0],t[1])}function jn(n){return function(t){var r=new Pn;for(var i in n)r[i]=n[i];return r.stream=t,r}}function Pn(){}function Cn(n,t,r){var i=t[1][0]-t[0][0],e=t[1][1]-t[0][1],o=n.clipExtent&&n.clipExtent();n.scale(150).translate([0,0]),null!=o&&n.clipExtent(null),nr(r,n.stream(Kr));var u=Kr.result(),a=Math.min(i/(u[1][0]-u[0][0]),e/(u[1][1]-u[0][1])),c=+t[0][0]+(i-a*(u[1][0]+u[0][0]))/2,l=+t[0][1]+(e-a*(u[1][1]+u[0][1]))/2;return null!=o&&n.clipExtent(o),n.scale(150*a).translate([c,l])}function qn(n,t,r){return Cn(n,[[0,0],t],r)}function zn(n){return jn({point:function(t,r){t=n(t,r),this.stream.point(t[0],t[1])}})}function bn(n,t){function r(i,e,u,a,c,l,f,p,s,h,g,v,d,E){var S=f-i,y=p-e,m=S*S+y*y;if(m>4*t&&d--){var x=a+h,M=c+g,_=l+v,N=Wt(x*x+M*M+_*_),w=o(_/=N),R=Ft(Ft(_)-1)<zt||Ft(u-s)<zt?(u+s)/2:Dt(M,x),A=n(R,w),j=A[0],P=A[1],C=j-i,q=P-e,z=y*C-S*q;(z*z/m>t||Ft((S*C+y*q)/m-.5)>.3||a*h+c*g+l*v<si)&&(r(i,e,u,a,c,l,j,P,R,x/=N,M/=N,_,d,E),E.point(j,P),r(j,P,R,x,M,_,f,p,s,h,g,v,d,E))}}return function(t){function i(r,i){r=n(r,i),t.point(r[0],r[1])}function e(){S=NaN,_.point=o,t.lineStart()}function o(i,e){var o=d([i,e]),u=n(i,e);r(S,y,E,m,x,M,S=u[0],y=u[1],E=i,m=o[0],x=o[1],M=o[2],pi,t),t.point(S,y)}function u(){_.point=i,t.lineEnd()}function a(){e(),_.point=c,_.lineEnd=l}function c(n,t){o(f=n,t),p=S,s=y,h=m,g=x,v=M,_.point=o}function l(){r(S,y,E,m,x,M,p,s,f,h,g,v,pi,t),_.lineEnd=u,u()}var f,p,s,h,g,v,E,S,y,m,x,M,_={point:i,lineStart:e,lineEnd:u,polygonStart:function(){t.polygonStart(),_.lineStart=a},polygonEnd:function(){t.polygonEnd(),_.lineStart=e}};return _}}function Ln(n){return On(function(){return n})()}function On(n){function t(n){return n=f(n[0]*It,n[1]*It),[n[0]*d+a,c-n[1]*d]}function r(n){return n=f.invert((n[0]-a)/d,(c-n[1])/d),n&&[n[0]*Gt,n[1]*Gt]}function i(n,t){return n=u(n,t),[n[0]*d+a,c-n[1]*d]}function e(){f=pr(l=U(x,M,_),u);var n=u(y,m);return a=E-n[0]*d,c=S+n[1]*d,o()}function o(){return g=v=null,t}var u,a,c,l,f,p,s,h,g,v,d=150,E=480,S=250,y=0,m=0,x=0,M=0,_=0,N=null,w=ci,R=null,A=Ir,j=.5,P=hi(i,j);return t.stream=function(n){return g&&v===n?g:g=gi(w(l,P(A(v=n))))},t.clipAngle=function(n){return arguments.length?(w=+n?li(N=n*It,6*It):(N=null,ci),o()):N*Gt},t.clipExtent=function(n){return arguments.length?(A=null==n?(R=p=s=h=null,Ir):X(R=+n[0][0],p=+n[0][1],s=+n[1][0],h=+n[1][1]),o()):null==R?null:[[R,p],[s,h]]},t.scale=function(n){return arguments.length?(d=+n,e()):d},t.translate=function(n){return arguments.length?(E=+n[0],S=+n[1],e()):[E,S]},t.center=function(n){return arguments.length?(y=n[0]%360*It,m=n[1]%360*It,e()):[y*Gt,m*Gt]},t.rotate=function(n){return arguments.length?(x=n[0]%360*It,M=n[1]%360*It,_=n.length>2?n[2]%360*It:0,e()):[x*Gt,M*Gt,_*Gt]},t.precision=function(n){return arguments.length?(P=hi(i,j=n*n),o()):Wt(j)},t.fitExtent=function(n,r){return Cn(t,n,r)},t.fitSize=function(n,r){return qn(t,n,r)},function(){return u=n.apply(this,arguments),t.invert=u.invert&&r,e()}}function Tn(n){var t=0,r=Lt/3,i=On(n),e=i(t,r);return e.parallels=function(n){return arguments.length?i(t=n[0]*It,r=n[1]*It):[t*Gt,r*Gt]},e}function kn(n){function t(n,t){return[n*r,Qt(t)/r]}var r=Ut(n);return t.invert=function(n,t){return[n/r,o(t*r)]},t}function Gn(n,t){function r(n,t){var r=Wt(u-2*e*Qt(t))/e;return[r*Qt(n*=e),a-r*Ut(n)]}var i=Qt(n),e=(i+Qt(t))/2;if(Ft(e)<zt)return kn(n);var u=1+i*(2*e-i),a=Wt(u)/e;return r.invert=function(n,t){var r=a-t;return[Dt(n,Ft(r))/e*Vt(r),o((u-(n*n+r*r)*e*e)/(2*e))]},r}function In(n){var t=n.length;return{point:function(r,i){for(var e=-1;++e<t;)n[e].point(r,i)},sphere:function(){for(var r=-1;++r<t;)n[r].sphere()},lineStart:function(){for(var r=-1;++r<t;)n[r].lineStart()},lineEnd:function(){for(var r=-1;++r<t;)n[r].lineEnd()},polygonStart:function(){for(var r=-1;++r<t;)n[r].polygonStart()},polygonEnd:function(){for(var r=-1;++r<t;)n[r].polygonEnd()}}}function Fn(n){return function(t,r){var i=Ut(t),e=Ut(r),o=n(i*e);return[o*e*Qt(t),o*Qt(r)]}}function Bn(n){return function(t,r){var i=Wt(t*t+r*r),e=n(i),u=Qt(e),a=Ut(e);return[Dt(t*u,i*a),o(i&&r*u/i)]}}function Dn(n,t){return[n,Jt(Xt((Ot+t)/2))]}function Un(n){var t,r=Ln(n),i=r.scale,e=r.translate,o=r.clipExtent;return r.scale=function(n){return arguments.length?(i(n),t&&r.clipExtent(null),r):i()},r.translate=function(n){return arguments.length?(e(n),t&&r.clipExtent(null),r):e()},r.clipExtent=function(n){if(!arguments.length)return t?null:o();if(t=null==n){var u=Lt*i(),a=e();n=[[a[0]-u,a[1]-u],[a[0]+u,a[1]+u]]}return o(n),r},r.clipExtent(null)}function Zn(n){return Xt((Ot+n)/2)}function Hn(n,t){function r(n,t){o>0?t<-Ot+zt&&(t=-Ot+zt):t>Ot-zt&&(t=Ot-zt);var r=o/Kt(Zn(t),e);return[r*Qt(e*n),o-r*Ut(e*n)]}var i=Ut(n),e=n===t?Qt(n):Jt(i/Ut(t))/Jt(Zn(t)/Zn(n)),o=i*Kt(Zn(n),e)/e;return e?(r.invert=function(n,t){var r=o-t,i=Vt(e)*Wt(n*n+r*r);return[Dt(n,Ft(r))/e*Vt(r),2*Bt(Kt(o/i,1/e))-Ot]},r):Dn}function Jn(n,t){return[n,t]}function Kn(n,t){function r(n,t){var r=o-t,i=e*n;return[r*Qt(i),o-r*Ut(i)]}var i=Ut(n),e=n===t?Qt(n):(i-Ut(t))/(t-n),o=i/e+n;return Ft(e)<zt?Jn:(r.invert=function(n,t){var r=o-t;return[Dt(n,Ft(r))/e*Vt(r),o-Vt(e)*Wt(n*n+r*r)]},r)}function Qn(n,t){var r=Ut(t),i=Ut(n)*r;return[r*Qt(n)/i,Qt(t)/i]}function Vn(n,t,r){return 1===n&&0===t&&0===r?Ir:jn({point:function(i,e){this.stream.point(i*n+t,e*n+r)}})}function Wn(n,t){return[Ut(t)*Qt(n),Qt(t)]}function Xn(n,t){var r=Ut(t),i=1+Ut(n)*r;return[r*Qt(n)/i,Qt(t)/i]}function Yn(n,t){return[Jt(Xt((Ot+t)/2)),-n]}var $n=function(){return new r};r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(n){i(qt,n,this.t),i(this,qt.s,this.s),this.s?this.t+=qt.t:this.s=qt.t},valueOf:function(){return this.s}};var nt,tt,rt,it,et,ot,ut,at,ct,lt,ft,pt,st,ht,gt,vt,dt,Et,St,yt,mt,xt,Mt,_t,Nt,wt,Rt,At,jt,Pt,Ct,qt=new r,zt=1e-6,bt=1e-12,Lt=Math.PI,Ot=Lt/2,Tt=Lt/4,kt=2*Lt,Gt=180/Lt,It=Lt/180,Ft=Math.abs,Bt=Math.atan,Dt=Math.atan2,Ut=Math.cos,Zt=Math.ceil,Ht=Math.exp,Jt=Math.log,Kt=Math.pow,Qt=Math.sin,Vt=Math.sign||function(n){return n>0?1:n<0?-1:0},Wt=Math.sqrt,Xt=Math.tan,Yt={Feature:function(n,t){c(n.geometry,t)},FeatureCollection:function(n,t){for(var r=n.features,i=-1,e=r.length;++i<e;)c(r[i].geometry,t)}},$t={Sphere:function(n,t){t.sphere()},Point:function(n,t){n=n.coordinates,t.point(n[0],n[1],n[2])},MultiPoint:function(n,t){for(var r=n.coordinates,i=-1,e=r.length;++i<e;)n=r[i],t.point(n[0],n[1],n[2])},LineString:function(n,t){l(n.coordinates,t,0)},MultiLineString:function(n,t){for(var r=n.coordinates,i=-1,e=r.length;++i<e;)l(r[i],t,0)},Polygon:function(n,t){f(n.coordinates,t)},MultiPolygon:function(n,t){for(var r=n.coordinates,i=-1,e=r.length;++i<e;)f(r[i],t)},GeometryCollection:function(n,t){for(var r=n.geometries,i=-1,e=r.length;++i<e;)c(r[i],t)}},nr=function(n,t){n&&Yt.hasOwnProperty(n.type)?Yt[n.type](n,t):c(n,t)},tr=$n(),rr=$n(),ir={point:a,lineStart:a,lineEnd:a,polygonStart:function(){tr.reset(),ir.lineStart=p,ir.lineEnd=s},polygonEnd:function(){var n=+tr;rr.add(n<0?kt+n:n),this.lineStart=this.lineEnd=this.point=a},sphere:function(){rr.add(kt)}},er=function(n){return rr.reset(),nr(n,ir),2*rr},or=$n(),ur={point:M,lineStart:N,lineEnd:w,polygonStart:function(){ur.point=R,ur.lineStart=A,ur.lineEnd=j,or.reset(),ir.polygonStart()},polygonEnd:function(){ir.polygonEnd(),ur.point=M,ur.lineStart=N,ur.lineEnd=w,tr<0?(ot=-(at=180),ut=-(ct=90)):or>zt?ct=90:or<-zt&&(ut=-90),gt[0]=ot,gt[1]=at}},ar=function(n){var t,r,i,e,o,u,a;if(ct=at=-(ot=ut=1/0),ht=[],nr(n,ur),r=ht.length){for(ht.sort(C),t=1,i=ht[0],o=[i];t<r;++t)e=ht[t],q(i,e[0])||q(i,e[1])?(P(i[0],e[1])>P(i[0],i[1])&&(i[1]=e[1]),P(e[0],i[1])>P(i[0],i[1])&&(i[0]=e[0])):o.push(i=e);for(u=-(1/0),r=o.length-1,t=0,i=o[r];t<=r;i=e,++t)e=o[t],(a=P(i[1],e[0]))>u&&(u=a,ot=e[0],at=i[1])}return ht=gt=null,ot===1/0||ut===1/0?[[NaN,NaN],[NaN,NaN]]:[[ot,ut],[at,ct]]},cr={sphere:a,point:z,lineStart:L,lineEnd:k,polygonStart:function(){cr.lineStart=G,cr.lineEnd=I},polygonEnd:function(){cr.lineStart=L,cr.lineEnd=k}},lr=function(n){vt=dt=Et=St=yt=mt=xt=Mt=_t=Nt=wt=0,nr(n,cr);var t=_t,r=Nt,i=wt,e=t*t+r*r+i*i;return e<bt&&(t=mt,r=xt,i=Mt,dt<zt&&(t=Et,r=St,i=yt),e=t*t+r*r+i*i,e<bt)?[NaN,NaN]:[Dt(r,t)*Gt,o(i/Wt(e))*Gt]},fr=function(n){return function(){return n}},pr=function(n,t){function r(r,i){return r=n(r,i),t(r[0],r[1])}return n.invert&&t.invert&&(r.invert=function(r,i){return r=t.invert(r,i),r&&n.invert(r[0],r[1])}),r};D.invert=D;var sr,hr,gr,vr,dr,Er,Sr,yr,mr,xr,Mr,_r=function(n){function t(t){return t=n(t[0]*It,t[1]*It),t[0]*=Gt,t[1]*=Gt,t}return n=U(n[0]*It,n[1]*It,n.length>2?n[2]*It:0),t.invert=function(t){return t=n.invert(t[0]*It,t[1]*It),t[0]*=Gt,t[1]*=Gt,t},t},Nr=function(){function n(n,t){r.push(n=i(n,t)),n[0]*=Gt,n[1]*=Gt}function t(){var n=e.apply(this,arguments),t=o.apply(this,arguments)*It,c=u.apply(this,arguments)*It;return r=[],i=U(-n[0]*It,-n[1]*It,0).invert,K(a,t,c,1),n={type:"Polygon",coordinates:[r]},r=i=null,n}var r,i,e=fr([0,0]),o=fr(90),u=fr(6),a={point:n};return t.center=function(n){return arguments.length?(e="function"==typeof n?n:fr([+n[0],+n[1]]),t):e},t.radius=function(n){return arguments.length?(o="function"==typeof n?n:fr(+n),t):o},t.precision=function(n){return arguments.length?(u="function"==typeof n?n:fr(+n),t):u},t},wr=function(){var n,t=[];return{point:function(t,r){n.push([t,r])},lineStart:function(){t.push(n=[])},lineEnd:a,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var r=t;return t=[],n=null,r}}},Rr=function(n,t,r,i,e,o){var u,a=n[0],c=n[1],l=t[0],f=t[1],p=0,s=1,h=l-a,g=f-c;if(u=r-a,h||!(u>0)){if(u/=h,h<0){if(u<p)return;u<s&&(s=u)}else if(h>0){if(u>s)return;u>p&&(p=u)}if(u=e-a,h||!(u<0)){if(u/=h,h<0){if(u>s)return;u>p&&(p=u)}else if(h>0){if(u<p)return;u<s&&(s=u)}if(u=i-c,g||!(u>0)){if(u/=g,g<0){if(u<p)return;u<s&&(s=u)}else if(g>0){if(u>s)return;u>p&&(p=u)}if(u=o-c,g||!(u<0)){if(u/=g,g<0){if(u>s)return;u>p&&(p=u)}else if(g>0){if(u<p)return;u<s&&(s=u)}return p>0&&(n[0]=a+p*h,n[1]=c+p*g),s<1&&(t[0]=a+s*h,t[1]=c+s*g),!0}}}}},Ar=function(n,t){return Ft(n[0]-t[0])<zt&&Ft(n[1]-t[1])<zt},jr=function(n,t,r,i,e){var o,u,a=[],c=[];if(n.forEach(function(n){if(!((t=n.length-1)<=0)){var t,r,i=n[0],u=n[t];if(Ar(i,u)){for(e.lineStart(),o=0;o<t;++o)e.point((i=n[o])[0],i[1]);return void e.lineEnd()}a.push(r=new V(i,n,null,!0)),c.push(r.o=new V(i,null,r,!1)),a.push(r=new V(u,n,null,!1)),c.push(r.o=new V(u,null,r,!0))}}),a.length){for(c.sort(t),W(a),W(c),o=0,u=c.length;o<u;++o)c[o].e=r=!r;for(var l,f,p=a[0];;){for(var s=p,h=!0;s.v;)if((s=s.n)===p)return;l=s.z,e.lineStart();do{if(s.v=s.o.v=!0,s.e){if(h)for(o=0,u=l.length;o<u;++o)e.point((f=l[o])[0],f[1]);else i(s.x,s.n.x,1,e);s=s.n}else{if(h)for(l=s.p.z,o=l.length-1;o>=0;--o)e.point((f=l[o])[0],f[1]);else i(s.x,s.p.x,-1,e);s=s.p}s=s.o,l=s.z,h=!h}while(!s.v);e.lineEnd()}}},Pr=1e9,Cr=-Pr,qr=function(){var n,t,r,i=0,e=0,o=960,u=500;return r={stream:function(r){return n&&t===r?n:n=X(i,e,o,u)(t=r)},extent:function(a){return arguments.length?(i=+a[0][0],e=+a[0][1],o=+a[1][0],u=+a[1][1],n=t=null,r):[[i,e],[o,u]]}}},zr=$n(),br={sphere:a,point:a,lineStart:Y,lineEnd:a,polygonStart:a,polygonEnd:a},Lr=function(n){return zr.reset(),nr(n,br),+zr},Or=[null,null],Tr={type:"LineString",coordinates:Or},kr=function(n,t){return Or[0]=n,Or[1]=t,Lr(Tr)},Gr=function(n,t){var r=n[0]*It,i=n[1]*It,e=t[0]*It,a=t[1]*It,c=Ut(i),l=Qt(i),f=Ut(a),p=Qt(a),s=c*Ut(r),h=c*Qt(r),g=f*Ut(e),v=f*Qt(e),d=2*o(Wt(u(a-i)+c*f*u(e-r))),E=Qt(d),S=d?function(n){var t=Qt(n*=d)/E,r=Qt(d-n)/E,i=r*s+t*g,e=r*h+t*v,o=r*l+t*p;return[Dt(e,i)*Gt,Dt(o,Wt(i*i+e*e))*Gt]}:function(){return[r*Gt,i*Gt]};return S.distance=d,S},Ir=function(n){return n},Fr=$n(),Br=$n(),Dr={point:a,lineStart:a,lineEnd:a,polygonStart:function(){Dr.lineStart=un,Dr.lineEnd=ln},polygonEnd:function(){Dr.lineStart=Dr.lineEnd=Dr.point=a,Fr.add(Ft(Br)),Br.reset()},result:function(){var n=Fr/2;return Fr.reset(),n}},Ur=1/0,Zr=Ur,Hr=-Ur,Jr=Hr,Kr={point:fn,lineStart:a,lineEnd:a,polygonStart:a,polygonEnd:a,result:function(){var n=[[Ur,Zr],[Hr,Jr]];return Hr=Jr=-(Zr=Ur=1/0),n}},Qr=0,Vr=0,Wr=0,Xr=0,Yr=0,$r=0,ni=0,ti=0,ri=0,ii={point:pn,lineStart:sn,lineEnd:vn,polygonStart:function(){ii.lineStart=dn,ii.lineEnd=En},polygonEnd:function(){ii.point=pn,ii.lineStart=sn,ii.lineEnd=vn},result:function(){var n=ri?[ni/ri,ti/ri]:$r?[Xr/$r,Yr/$r]:Wr?[Qr/Wr,Vr/Wr]:[NaN,NaN];return Qr=Vr=Wr=Xr=Yr=$r=ni=ti=ri=0,n}};mn.prototype={_radius:4.5,pointRadius:function(n){return this._radius=n,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(n,t){switch(this._point){case 0:this._context.moveTo(n,t),this._point=1;break;case 1:this._context.lineTo(n,t);break;default:this._context.moveTo(n+this._radius,t),this._context.arc(n,t,this._radius,0,kt)}},result:a},xn.prototype={_circle:Mn(4.5),pointRadius:function(n){return this._circle=Mn(n),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(n,t){switch(this._point){case 0:this._string.push("M",n,",",t),this._point=1;break;case 1:this._string.push("L",n,",",t);break;default:this._string.push("M",n,",",t,this._circle)}},result:function(){if(this._string.length){var n=this._string.join("");return this._string=[],n}}};var ei=function(n,t){function r(n){return n&&("function"==typeof o&&e.pointRadius(+o.apply(this,arguments)),nr(n,i(e))),e.result()}var i,e,o=4.5;return r.area=function(n){return nr(n,i(Dr)),Dr.result()},r.bounds=function(n){return nr(n,i(Kr)),Kr.result()},r.centroid=function(n){return nr(n,i(ii)),ii.result()},r.projection=function(t){return arguments.length?(i=null==(n=t)?Ir:t.stream,r):n},r.context=function(n){return arguments.length?(e=null==(t=n)?new xn:new mn(n),"function"!=typeof o&&e.pointRadius(o),r):t},r.pointRadius=function(n){return arguments.length?(o="function"==typeof n?n:(e.pointRadius(+n),+n),r):o},r.projection(n).context(t)},oi=$n(),ui=function(n,t){var r=t[0],i=t[1],e=[Qt(r),-Ut(r),0],u=0,a=0;oi.reset();for(var c=0,l=n.length;c<l;++c)if(p=(f=n[c]).length)for(var f,p,s=f[p-1],h=s[0],g=s[1]/2+Tt,v=Qt(g),E=Ut(g),y=0;y<p;++y,h=M,v=N,E=w,s=m){var m=f[y],M=m[0],_=m[1]/2+Tt,N=Qt(_),w=Ut(_),R=M-h,A=R>=0?1:-1,j=A*R,P=j>Lt,C=v*N;if(oi.add(Dt(C*A*Qt(j),E*w+C*Ut(j))),u+=P?R+A*kt:R,P^h>=r^M>=r){var q=S(d(s),d(m));x(q);var z=S(e,q);x(z);var b=(P^R>=0?-1:1)*o(z[2]);(i>b||i===b&&(q[0]||q[1]))&&(a+=P^R>=0?1:-1)}}return(u<-zt||u<zt&&oi<-zt)^1&a},ai=function(n,r,i,e){return function(o,u){function a(t,r){var i=o(t,r);n(t=i[0],r=i[1])&&u.point(t,r)}function c(n,t){var r=o(n,t);E.point(r[0],r[1])}function l(){M.point=c,E.lineStart()}function f(){M.point=a,E.lineEnd()}function p(n,t){d.push([n,t]);var r=o(n,t);m.point(r[0],r[1])}function s(){m.lineStart(),d=[]}function h(){p(d[0][0],d[0][1]),m.lineEnd();var n,t,r,i,e=m.clean(),o=y.result(),a=o.length;if(d.pop(),g.push(d),d=null,a)if(1&e){if(r=o[0],(t=r.length-1)>0){for(x||(u.polygonStart(),x=!0),u.lineStart(),n=0;n<t;++n)u.point((i=r[n])[0],i[1]);u.lineEnd()}}else a>1&&2&e&&o.push(o.pop().concat(o.shift())),v.push(o.filter(_n))}var g,v,d,E=r(u),S=o.invert(e[0],e[1]),y=wr(),m=r(y),x=!1,M={point:a,lineStart:l,lineEnd:f,polygonStart:function(){M.point=p,M.lineStart=s,M.lineEnd=h,v=[],g=[]},polygonEnd:function(){M.point=a,M.lineStart=l,M.lineEnd=f,v=t.merge(v);var n=ui(g,S);v.length?(x||(u.polygonStart(),x=!0),jr(v,Nn,n,i,u)):n&&(x||(u.polygonStart(),x=!0),u.lineStart(),i(null,null,1,u),u.lineEnd()),x&&(u.polygonEnd(),x=!1),v=g=null},sphere:function(){u.polygonStart(),u.lineStart(),i(null,null,1,u),u.lineEnd(),u.polygonEnd()}};return M}},ci=ai(function(){return!0},wn,An,[-Lt,-Ot]),li=function(n,t){function r(r,i,e,o){K(o,n,t,e,r,i)}function i(n,t){return Ut(n)*Ut(t)>a}function e(n){var t,r,e,a,f;return{lineStart:function(){a=e=!1,f=1},point:function(p,s){var h,g=[p,s],v=i(p,s),d=c?v?0:u(p,s):v?u(p+(p<0?Lt:-Lt),s):0;if(!t&&(a=e=v)&&n.lineStart(),v!==e&&(h=o(t,g),(Ar(t,h)||Ar(g,h))&&(g[0]+=zt,g[1]+=zt,v=i(g[0],g[1]))),v!==e)f=0,v?(n.lineStart(),h=o(g,t),n.point(h[0],h[1])):(h=o(t,g),n.point(h[0],h[1]),n.lineEnd()),t=h;else if(l&&t&&c^v){var E;d&r||!(E=o(g,t,!0))||(f=0,c?(n.lineStart(),n.point(E[0][0],E[0][1]),n.point(E[1][0],E[1][1]),n.lineEnd()):(n.point(E[1][0],E[1][1]),n.lineEnd(),n.lineStart(),n.point(E[0][0],E[0][1])))}!v||t&&Ar(t,g)||n.point(g[0],g[1]),t=g,e=v,r=d},lineEnd:function(){e&&n.lineEnd(),t=null},clean:function(){return f|(a&&e)<<1}}}function o(n,t,r){var i=d(n),e=d(t),o=[1,0,0],u=S(i,e),c=E(u,u),l=u[0],f=c-l*l;if(!f)return!r&&n;var p=a*c/f,s=-a*l/f,h=S(o,u),g=m(o,p),x=m(u,s);y(g,x);var M=h,_=E(g,M),N=E(M,M),w=_*_-N*(E(g,g)-1);if(!(w<0)){var R=Wt(w),A=m(M,(-_-R)/N);if(y(A,g),A=v(A),!r)return A;var j,P=n[0],C=t[0],q=n[1],z=t[1];C<P&&(j=P,P=C,C=j);var b=C-P,L=Ft(b-Lt)<zt,O=L||b<zt;if(!L&&z<q&&(j=q,q=z,z=j),O?L?q+z>0^A[1]<(Ft(A[0]-P)<zt?q:z):q<=A[1]&&A[1]<=z:b>Lt^(P<=A[0]&&A[0]<=C)){var T=m(M,(-_+R)/N);return y(T,g),[A,v(T)]}}}function u(t,r){var i=c?n:Lt-n,e=0;return t<-i?e|=1:t>i&&(e|=2),r<-i?e|=4:r>i&&(e|=8),e}var a=Ut(n),c=a>0,l=Ft(a)>zt;return ai(i,e,r,c?[0,-n]:[-Lt,n-Lt])},fi=function(n){return{stream:jn(n)}};Pn.prototype={constructor:Pn,point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var pi=16,si=Ut(30*It),hi=function(n,t){return+t?bn(n,t):zn(n)},gi=jn({point:function(n,t){this.stream.point(n*It,t*It)}}),vi=function(){return Tn(Gn).scale(155.424).center([0,33.6442])},di=function(){return vi().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},Ei=function(){function n(n){var t=n[0],r=n[1];return a=null,e.point(t,r),a||(o.point(t,r),a)||(u.point(t,r),a)}function t(){return r=i=null,n}var r,i,e,o,u,a,c=di(),l=vi().rotate([154,0]).center([-2,58.5]).parallels([55,65]),f=vi().rotate([157,0]).center([-3,19.9]).parallels([8,18]),p={point:function(n,t){a=[n,t]}};return n.invert=function(n){var t=c.scale(),r=c.translate(),i=(n[0]-r[0])/t,e=(n[1]-r[1])/t;return(e>=.12&&e<.234&&i>=-.425&&i<-.214?l:e>=.166&&e<.234&&i>=-.214&&i<-.115?f:c).invert(n)},n.stream=function(n){return r&&i===n?r:r=In([c.stream(i=n),l.stream(n),f.stream(n)])},n.precision=function(n){return arguments.length?(c.precision(n),l.precision(n),f.precision(n),t()):c.precision()},n.scale=function(t){return arguments.length?(c.scale(t),l.scale(.35*t),f.scale(t),n.translate(c.translate())):c.scale()},n.translate=function(n){if(!arguments.length)return c.translate();var r=c.scale(),i=+n[0],a=+n[1];return e=c.translate(n).clipExtent([[i-.455*r,a-.238*r],[i+.455*r,a+.238*r]]).stream(p),o=l.translate([i-.307*r,a+.201*r]).clipExtent([[i-.425*r+zt,a+.12*r+zt],[i-.214*r-zt,a+.234*r-zt]]).stream(p),u=f.translate([i-.205*r,a+.212*r]).clipExtent([[i-.214*r+zt,a+.166*r+zt],[i-.115*r-zt,a+.234*r-zt]]).stream(p),t()},n.fitExtent=function(t,r){return Cn(n,t,r)},n.fitSize=function(t,r){return qn(n,t,r)},n.scale(1070)},Si=Fn(function(n){return Wt(2/(1+n))});Si.invert=Bn(function(n){return 2*o(n/2)});var yi=function(){return Ln(Si).scale(124.75).clipAngle(179.999)},mi=Fn(function(n){return(n=e(n))&&n/Qt(n)});mi.invert=Bn(function(n){return n});var xi=function(){return Ln(mi).scale(79.4188).clipAngle(179.999)};Dn.invert=function(n,t){return[n,2*Bt(Ht(t))-Ot]};var Mi=function(){return Un(Dn).scale(961/kt)},_i=function(){return Tn(Hn).scale(109.5).parallels([30,30])};Jn.invert=Jn;var Ni=function(){return Ln(Jn).scale(152.63)},wi=function(){return Tn(Kn).scale(131.154).center([0,13.9389])};Qn.invert=Bn(Bt);var Ri=function(){return Ln(Qn).scale(144.049).clipAngle(60)},Ai=function(){function n(){return e=o=null,u}var t,r,i,e,o,u,a=1,c=0,l=0,f=Ir,p=null,s=Ir;return u={stream:function(n){return e&&o===n?e:e=f(s(o=n))},clipExtent:function(e){return arguments.length?(s=null==e?(p=t=r=i=null,Ir):X(p=+e[0][0],t=+e[0][1],r=+e[1][0],i=+e[1][1]),n()):null==p?null:[[p,t],[r,i]]},scale:function(t){return arguments.length?(f=Vn(a=+t,c,l),n()):a},translate:function(t){return arguments.length?(f=Vn(a,c=+t[0],l=+t[1]),n()):[c,l]},fitExtent:function(n,t){return Cn(u,n,t)},fitSize:function(n,t){return qn(u,n,t)}}};Wn.invert=Bn(o);var ji=function(){return Ln(Wn).scale(249.5).clipAngle(90+zt)};Xn.invert=Bn(function(n){return 2*Bt(n)});var Pi=function(){return Ln(Xn).scale(250).clipAngle(142)};Yn.invert=function(n,t){return[-t,2*Bt(Ht(n))-Ot]};var Ci=function(){var n=Un(Yn),t=n.center,r=n.rotate;return n.center=function(n){return arguments.length?t([-n[1],n[0]]):(n=t(),[n[1],-n[0]])},n.rotate=function(n){return arguments.length?r([n[0],n[1],n.length>2?n[2]+90:90]):(n=r(),[n[0],n[1],n[2]-90])},r([0,0,90]).scale(159.155)};n.geoArea=er,n.geoBounds=ar,n.geoCentroid=lr,n.geoCircle=Nr,n.geoClipExtent=qr,n.geoDistance=kr,n.geoGraticule=on,n.geoInterpolate=Gr,n.geoLength=Lr,n.geoPath=ei,n.geoAlbers=di,n.geoAlbersUsa=Ei,n.geoAzimuthalEqualArea=yi,n.geoAzimuthalEqualAreaRaw=Si,n.geoAzimuthalEquidistant=xi,n.geoAzimuthalEquidistantRaw=mi,n.geoConicConformal=_i,n.geoConicConformalRaw=Hn,n.geoConicEqualArea=vi,n.geoConicEqualAreaRaw=Gn,n.geoConicEquidistant=wi,n.geoConicEquidistantRaw=Kn,n.geoEquirectangular=Ni,n.geoEquirectangularRaw=Jn,n.geoGnomonic=Ri,n.geoGnomonicRaw=Qn,n.geoIdentity=Ai,n.geoProjection=Ln,n.geoProjectionMutator=On,n.geoMercator=Mi,n.geoMercatorRaw=Dn,n.geoOrthographic=ji,n.geoOrthographicRaw=Wn,n.geoStereographic=Pi,n.geoStereographicRaw=Xn,n.geoTransverseMercator=Ci,n.geoTransverseMercatorRaw=Yn,n.geoRotation=_r,n.geoStream=nr,n.geoTransform=fi,Object.defineProperty(n,"__esModule",{value:!0})});
// https://d3js.org/d3-geo/ Version 1.3.1. Copyright 2016 Mike Bostock.
(function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("d3-array")):"function"==typeof define&&define.amd?define(["exports","d3-array"],t):t(n.d3=n.d3||{},n.d3)})(this,function(n,t){"use strict";function r(){this.reset()}function i(n,t,r){var i=n.s=t+r,e=i-t,o=i-e;n.t=t-o+(r-e)}function e(n){return n>1?0:n<-1?Ot:Math.acos(n)}function o(n){return n>1?Tt:n<-1?-Tt:Math.asin(n)}function u(n){return(n=Vt(n/2))*n}function c(){}function a(n,t){n&&nr.hasOwnProperty(n.type)&&nr[n.type](n,t)}function l(n,t,r){var i,e=-1,o=n.length-r;for(t.lineStart();++e<o;)i=n[e],t.point(i[0],i[1],i[2]);t.lineEnd()}function f(n,t){var r=-1,i=n.length;for(t.polygonStart();++r<i;)l(n[r],t,1);t.polygonEnd()}function p(){er.point=h}function s(){g(tt,rt)}function h(n,t){er.point=g,tt=n,rt=t,n*=Ft,t*=Ft,it=n,et=Zt(t=t/2+Gt),ot=Vt(t)}function g(n,t){n*=Ft,t*=Ft,t=t/2+Gt;var r=n-it,i=r>=0?1:-1,e=i*r,o=Zt(t),u=Vt(t),c=ot*u,a=et*o+c*Zt(e),l=c*i*Vt(e);rr.add(Ut(l,a)),it=n,et=o,ot=u}function v(n){return[Ut(n[1],n[0]),o(n[2])]}function d(n){var t=n[0],r=n[1],i=Zt(r);return[i*Zt(t),i*Vt(t),Vt(r)]}function E(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function S(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 y(n,t){n[0]+=t[0],n[1]+=t[1],n[2]+=t[2]}function m(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function x(n){var t=Xt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t,n[1]/=t,n[2]/=t}function M(n,t){gt.push(vt=[ut=n,at=n]),t<ct&&(ct=t),t>lt&&(lt=t)}function _(n,t){var r=d([n*Ft,t*Ft]);if(ht){var i=S(ht,r),e=[i[1],-i[0],0],o=S(e,i);x(o),o=v(o);var u,c=n-ft,a=c>0?1:-1,l=o[0]*It*a,f=Bt(c)>180;f^(a*ft<l&&l<a*n)?(u=o[1]*It,u>lt&&(lt=u)):(l=(l+360)%360-180,f^(a*ft<l&&l<a*n)?(u=-o[1]*It,u<ct&&(ct=u)):(t<ct&&(ct=t),t>lt&&(lt=t))),f?n<ft?P(ut,n)>P(ut,at)&&(at=n):P(n,at)>P(ut,at)&&(ut=n):at>=ut?(n<ut&&(ut=n),n>at&&(at=n)):n>ft?P(ut,n)>P(ut,at)&&(at=n):P(n,at)>P(ut,at)&&(ut=n)}else M(n,t);ht=r,ft=n}function N(){cr.point=_}function w(){vt[0]=ut,vt[1]=at,cr.point=M,ht=null}function R(n,t){if(ht){var r=n-ft;ur.add(Bt(r)>180?r+(r>0?360:-360):r)}else pt=n,st=t;er.point(n,t),_(n,t)}function A(){er.lineStart()}function j(){R(pt,st),er.lineEnd(),Bt(ur)>bt&&(ut=-(at=180)),vt[0]=ut,vt[1]=at,ht=null}function P(n,t){return(t-=n)<0?t+360:t}function C(n,t){return n[0]-t[0]}function q(n,t){return n[0]<=n[1]?n[0]<=t&&t<=n[1]:t<n[0]||n[1]<t}function z(n,t){n*=Ft,t*=Ft;var r=Zt(t);b(r*Zt(n),r*Vt(n),Vt(t))}function b(n,t,r){++dt,St+=(n-St)/dt,yt+=(t-yt)/dt,mt+=(r-mt)/dt}function L(){lr.point=O}function O(n,t){n*=Ft,t*=Ft;var r=Zt(t);Pt=r*Zt(n),Ct=r*Vt(n),qt=Vt(t),lr.point=T,b(Pt,Ct,qt)}function T(n,t){n*=Ft,t*=Ft;var r=Zt(t),i=r*Zt(n),e=r*Vt(n),o=Vt(t),u=Ut(Xt((u=Ct*o-qt*e)*u+(u=qt*i-Pt*o)*u+(u=Pt*e-Ct*i)*u),Pt*i+Ct*e+qt*o);Et+=u,xt+=u*(Pt+(Pt=i)),Mt+=u*(Ct+(Ct=e)),_t+=u*(qt+(qt=o)),b(Pt,Ct,qt)}function G(){lr.point=z}function k(){lr.point=F}function I(){B(At,jt),lr.point=z}function F(n,t){At=n,jt=t,n*=Ft,t*=Ft,lr.point=B;var r=Zt(t);Pt=r*Zt(n),Ct=r*Vt(n),qt=Vt(t),b(Pt,Ct,qt)}function B(n,t){n*=Ft,t*=Ft;var r=Zt(t),i=r*Zt(n),o=r*Vt(n),u=Vt(t),c=Ct*u-qt*o,a=qt*i-Pt*u,l=Pt*o-Ct*i,f=Xt(c*c+a*a+l*l),p=Pt*i+Ct*o+qt*u,s=f&&-e(p)/f,h=Ut(f,p);Nt+=s*c,wt+=s*a,Rt+=s*l,Et+=h,xt+=h*(Pt+(Pt=i)),Mt+=h*(Ct+(Ct=o)),_t+=h*(qt+(qt=u)),b(Pt,Ct,qt)}function D(n,t){return[n>Ot?n-kt:n<-Ot?n+kt:n,t]}function U(n,t,r){return(n%=kt)?t||r?sr(H(n),J(t,r)):H(n):t||r?J(t,r):D}function Z(n){return function(t,r){return t+=n,[t>Ot?t-kt:t<-Ot?t+kt:t,r]}}function H(n){var t=Z(n);return t.invert=Z(-n),t}function J(n,t){function r(n,t){var r=Zt(t),a=Zt(n)*r,l=Vt(n)*r,f=Vt(t),p=f*i+a*e;return[Ut(l*u-p*c,a*i-f*e),o(p*u+l*c)]}var i=Zt(n),e=Vt(n),u=Zt(t),c=Vt(t);return r.invert=function(n,t){var r=Zt(t),a=Zt(n)*r,l=Vt(n)*r,f=Vt(t),p=f*u-l*c;return[Ut(l*u+f*c,a*i+p*e),o(p*i-a*e)]},r}function K(n,t,r,i,e,o){if(r){var u=Zt(t),c=Vt(t),a=i*r;null==e?(e=t+i*kt,o=t-a/2):(e=Q(u,e),o=Q(u,o),(i>0?e<o:e>o)&&(e+=i*kt));for(var l,f=e;i>0?f>o:f<o;f-=a)l=v([u,-c*Zt(f),-c*Vt(f)]),n.point(l[0],l[1])}}function Q(n,t){t=d(t),t[0]-=n,x(t);var r=e(-t[1]);return((-t[2]<0?-r:r)+kt-bt)%kt}function V(n,t,r,i){this.x=n,this.z=t,this.o=r,this.e=i,this.v=!1,this.n=this.p=null}function W(n){if(t=n.length){for(var t,r,i=0,e=n[0];++i<t;)e.n=r=n[i],r.p=e,e=r;e.n=r=n[0],r.p=e}}function X(n,r,i,e){function o(t,o){return n<=t&&t<=i&&r<=o&&o<=e}function u(t,o,u,a){var f=0,p=0;if(null==t||(f=c(t,u))!==(p=c(o,u))||l(t,o)<0^u>0){do a.point(0===f||3===f?n:i,f>1?e:r);while((f=(f+u+4)%4)!==p)}else a.point(o[0],o[1])}function c(t,e){return Bt(t[0]-n)<bt?e>0?0:3:Bt(t[0]-i)<bt?e>0?2:1:Bt(t[1]-r)<bt?e>0?1:0:e>0?3:2}function a(n,t){return l(n.x,t.x)}function l(n,t){var r=c(n,1),i=c(t,1);return r!==i?r-i:0===r?t[1]-n[1]:1===r?n[0]-t[0]:2===r?n[1]-t[1]:t[0]-n[0]}return function(c){function l(n,t){o(n,t)&&A.point(n,t)}function f(){for(var t=0,r=0,i=E.length;r<i;++r)for(var o,u,c=E[r],a=1,l=c.length,f=c[0],p=f[0],s=f[1];a<l;++a)o=p,u=s,f=c[a],p=f[0],s=f[1],u<=e?s>e&&(p-o)*(e-u)>(s-u)*(n-o)&&++t:s<=e&&(p-o)*(e-u)<(s-u)*(n-o)&&--t;return t}function p(){A=j,d=[],E=[],R=!0}function s(){var n=f(),r=R&&n,i=(d=t.merge(d)).length;(r||i)&&(c.polygonStart(),r&&(c.lineStart(),u(null,null,1,c),c.lineEnd()),i&&Pr(d,a,n,u,c),c.polygonEnd()),A=c,d=E=S=null}function h(){P.point=v,E&&E.push(S=[]),w=!0,N=!1,M=_=NaN}function g(){d&&(v(y,m),x&&N&&j.rejoin(),d.push(j.result())),P.point=l,N&&A.lineEnd()}function v(t,u){var c=o(t,u);if(E&&S.push([t,u]),w)y=t,m=u,x=c,w=!1,c&&(A.lineStart(),A.point(t,u));else if(c&&N)A.point(t,u);else{var a=[M=Math.max(qr,Math.min(Cr,M)),_=Math.max(qr,Math.min(Cr,_))],l=[t=Math.max(qr,Math.min(Cr,t)),u=Math.max(qr,Math.min(Cr,u))];Ar(a,l,n,r,i,e)?(N||(A.lineStart(),A.point(a[0],a[1])),A.point(l[0],l[1]),c||A.lineEnd(),R=!1):c&&(A.lineStart(),A.point(t,u),R=!1)}M=t,_=u,N=c}var d,E,S,y,m,x,M,_,N,w,R,A=c,j=Rr(),P={point:l,lineStart:h,lineEnd:g,polygonStart:p,polygonEnd:s};return P}}function Y(){Lr.point=nn,Lr.lineEnd=$}function $(){Lr.point=Lr.lineEnd=c}function nn(n,t){n*=Ft,t*=Ft,hr=n,gr=Vt(t),vr=Zt(t),Lr.point=tn}function tn(n,t){n*=Ft,t*=Ft;var r=Vt(t),i=Zt(t),e=Bt(n-hr),o=Zt(e),u=Vt(e),c=i*u,a=vr*r-gr*i*o,l=gr*r+vr*i*o;br.add(Ut(Xt(c*c+a*a),l)),hr=n,gr=r,vr=i}function rn(n,r,i){var e=t.range(n,r-bt,i).concat(r);return function(n){return e.map(function(t){return[n,t]})}}function en(n,r,i){var e=t.range(n,r-bt,i).concat(r);return function(n){return e.map(function(t){return[t,n]})}}function on(){function n(){return{type:"MultiLineString",coordinates:r()}}function r(){return t.range(Ht(u/E)*E,o,E).map(h).concat(t.range(Ht(f/S)*S,l,S).map(g)).concat(t.range(Ht(e/v)*v,i,v).filter(function(n){return Bt(n%E)>bt}).map(p)).concat(t.range(Ht(a/d)*d,c,d).filter(function(n){return Bt(n%S)>bt}).map(s))}var i,e,o,u,c,a,l,f,p,s,h,g,v=10,d=v,E=90,S=360,y=2.5;return n.lines=function(){return r().map(function(n){return{type:"LineString",coordinates:n}})},n.outline=function(){return{type:"Polygon",coordinates:[h(u).concat(g(l).slice(1),h(o).reverse().slice(1),g(f).reverse().slice(1))]}},n.extent=function(t){return arguments.length?n.extentMajor(t).extentMinor(t):n.extentMinor()},n.extentMajor=function(t){return arguments.length?(u=+t[0][0],o=+t[1][0],f=+t[0][1],l=+t[1][1],u>o&&(t=u,u=o,o=t),f>l&&(t=f,f=l,l=t),n.precision(y)):[[u,f],[o,l]]},n.extentMinor=function(t){return arguments.length?(e=+t[0][0],i=+t[1][0],a=+t[0][1],c=+t[1][1],e>i&&(t=e,e=i,i=t),a>c&&(t=a,a=c,c=t),n.precision(y)):[[e,a],[i,c]]},n.step=function(t){return arguments.length?n.stepMajor(t).stepMinor(t):n.stepMinor()},n.stepMajor=function(t){return arguments.length?(E=+t[0],S=+t[1],n):[E,S]},n.stepMinor=function(t){return arguments.length?(v=+t[0],d=+t[1],n):[v,d]},n.precision=function(t){return arguments.length?(y=+t,p=rn(a,c,90),s=en(e,i,y),h=rn(f,l,90),g=en(u,o,y),n):y},n.extentMajor([[-180,-90+bt],[180,90-bt]]).extentMinor([[-180,-80-bt],[180,80+bt]])}function un(){return on()()}function cn(){Ur.point=an}function an(n,t){Ur.point=ln,dr=Sr=n,Er=yr=t}function ln(n,t){Dr.add(yr*n-Sr*t),Sr=n,yr=t}function fn(){ln(dr,Er)}function pn(n,t){n<Zr&&(Zr=n),n>Jr&&(Jr=n),t<Hr&&(Hr=t),t>Kr&&(Kr=t)}function sn(n,t){Vr+=n,Wr+=t,++Xr}function hn(){ei.point=gn}function gn(n,t){ei.point=vn,sn(Mr=n,_r=t)}function vn(n,t){var r=n-Mr,i=t-_r,e=Xt(r*r+i*i);Yr+=e*(Mr+n)/2,$r+=e*(_r+t)/2,ni+=e,sn(Mr=n,_r=t)}function dn(){ei.point=sn}function En(){ei.point=yn}function Sn(){mn(mr,xr)}function yn(n,t){ei.point=mn,sn(mr=Mr=n,xr=_r=t)}function mn(n,t){var r=n-Mr,i=t-_r,e=Xt(r*r+i*i);Yr+=e*(Mr+n)/2,$r+=e*(_r+t)/2,ni+=e,e=_r*n-Mr*t,ti+=e*(Mr+n),ri+=e*(_r+t),ii+=3*e,sn(Mr=n,_r=t)}function xn(n){this._context=n}function Mn(){this._string=[]}function _n(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function Nn(n){return n.length>1}function wn(n,t){return((n=n.x)[0]<0?n[1]-Tt-bt:Tt-n[1])-((t=t.x)[0]<0?t[1]-Tt-bt:Tt-t[1])}function Rn(n){var t,r=NaN,i=NaN,e=NaN;return{lineStart:function(){n.lineStart(),t=1},point:function(o,u){var c=o>0?Ot:-Ot,a=Bt(o-r);Bt(a-Ot)<bt?(n.point(r,i=(i+u)/2>0?Tt:-Tt),n.point(e,i),n.lineEnd(),n.lineStart(),n.point(c,i),n.point(o,i),t=0):e!==c&&a>=Ot&&(Bt(r-e)<bt&&(r-=e*bt),Bt(o-c)<bt&&(o-=c*bt),i=An(r,i,o,u),n.point(e,i),n.lineEnd(),n.lineStart(),n.point(c,i),t=0),n.point(r=o,i=u),e=c},lineEnd:function(){n.lineEnd(),r=i=NaN},clean:function(){return 2-t}}}function An(n,t,r,i){var e,o,u=Vt(n-r);return Bt(u)>bt?Dt((Vt(t)*(o=Zt(i))*Vt(r)-Vt(i)*(e=Zt(t))*Vt(n))/(e*o*u)):(t+i)/2}function jn(n,t,r,i){var e;if(null==n)e=r*Tt,i.point(-Ot,e),i.point(0,e),i.point(Ot,e),i.point(Ot,0),i.point(Ot,-e),i.point(0,-e),i.point(-Ot,-e),i.point(-Ot,0),i.point(-Ot,e);else if(Bt(n[0]-t[0])>bt){var o=n[0]<t[0]?Ot:-Ot;e=r*o/2,i.point(-o,e),i.point(0,e),i.point(o,e)}else i.point(t[0],t[1])}function Pn(n){return function(t){var r=new Cn;for(var i in n)r[i]=n[i];return r.stream=t,r}}function Cn(){}function qn(n,t,r){var i=t[1][0]-t[0][0],e=t[1][1]-t[0][1],o=n.clipExtent&&n.clipExtent();n.scale(150).translate([0,0]),null!=o&&n.clipExtent(null),tr(r,n.stream(Qr));var u=Qr.result(),c=Math.min(i/(u[1][0]-u[0][0]),e/(u[1][1]-u[0][1])),a=+t[0][0]+(i-c*(u[1][0]+u[0][0]))/2,l=+t[0][1]+(e-c*(u[1][1]+u[0][1]))/2;return null!=o&&n.clipExtent(o),n.scale(150*c).translate([a,l])}function zn(n,t,r){return qn(n,[[0,0],t],r)}function bn(n){return Pn({point:function(t,r){t=n(t,r),this.stream.point(t[0],t[1])}})}function Ln(n,t){function r(i,e,u,c,a,l,f,p,s,h,g,v,d,E){var S=f-i,y=p-e,m=S*S+y*y;if(m>4*t&&d--){var x=c+h,M=a+g,_=l+v,N=Xt(x*x+M*M+_*_),w=o(_/=N),R=Bt(Bt(_)-1)<bt||Bt(u-s)<bt?(u+s)/2:Ut(M,x),A=n(R,w),j=A[0],P=A[1],C=j-i,q=P-e,z=y*C-S*q;(z*z/m>t||Bt((S*C+y*q)/m-.5)>.3||c*h+a*g+l*v<hi)&&(r(i,e,u,c,a,l,j,P,R,x/=N,M/=N,_,d,E),E.point(j,P),r(j,P,R,x,M,_,f,p,s,h,g,v,d,E))}}return function(t){function i(r,i){r=n(r,i),t.point(r[0],r[1])}function e(){S=NaN,_.point=o,t.lineStart()}function o(i,e){var o=d([i,e]),u=n(i,e);r(S,y,E,m,x,M,S=u[0],y=u[1],E=i,m=o[0],x=o[1],M=o[2],si,t),t.point(S,y)}function u(){_.point=i,t.lineEnd()}function c(){e(),_.point=a,_.lineEnd=l}function a(n,t){o(f=n,t),p=S,s=y,h=m,g=x,v=M,_.point=o}function l(){r(S,y,E,m,x,M,p,s,f,h,g,v,si,t),_.lineEnd=u,u()}var f,p,s,h,g,v,E,S,y,m,x,M,_={point:i,lineStart:e,lineEnd:u,polygonStart:function(){t.polygonStart(),_.lineStart=c},polygonEnd:function(){t.polygonEnd(),_.lineStart=e}};return _}}function On(n){return Tn(function(){return n})()}function Tn(n){function t(n){return n=f(n[0]*Ft,n[1]*Ft),[n[0]*d+c,a-n[1]*d]}function r(n){return n=f.invert((n[0]-c)/d,(a-n[1])/d),n&&[n[0]*It,n[1]*It]}function i(n,t){return n=u(n,t),[n[0]*d+c,a-n[1]*d]}function e(){f=sr(l=U(x,M,_),u);var n=u(y,m);return c=E-n[0]*d,a=S+n[1]*d,o()}function o(){return g=v=null,t}var u,c,a,l,f,p,s,h,g,v,d=150,E=480,S=250,y=0,m=0,x=0,M=0,_=0,N=null,w=li,R=null,A=Fr,j=.5,P=gi(i,j);return t.stream=function(n){return g&&v===n?g:g=vi(w(l,P(A(v=n))))},t.clipAngle=function(n){return arguments.length?(w=+n?fi(N=n*Ft,6*Ft):(N=null,li),o()):N*It},t.clipExtent=function(n){return arguments.length?(A=null==n?(R=p=s=h=null,Fr):X(R=+n[0][0],p=+n[0][1],s=+n[1][0],h=+n[1][1]),o()):null==R?null:[[R,p],[s,h]]},t.scale=function(n){return arguments.length?(d=+n,e()):d},t.translate=function(n){return arguments.length?(E=+n[0],S=+n[1],e()):[E,S]},t.center=function(n){return arguments.length?(y=n[0]%360*Ft,m=n[1]%360*Ft,e()):[y*It,m*It]},t.rotate=function(n){return arguments.length?(x=n[0]%360*Ft,M=n[1]%360*Ft,_=n.length>2?n[2]%360*Ft:0,e()):[x*It,M*It,_*It]},t.precision=function(n){return arguments.length?(P=gi(i,j=n*n),o()):Xt(j)},t.fitExtent=function(n,r){return qn(t,n,r)},t.fitSize=function(n,r){return zn(t,n,r)},function(){return u=n.apply(this,arguments),t.invert=u.invert&&r,e()}}function Gn(n){var t=0,r=Ot/3,i=Tn(n),e=i(t,r);return e.parallels=function(n){return arguments.length?i(t=n[0]*Ft,r=n[1]*Ft):[t*It,r*It]},e}function kn(n){function t(n,t){return[n*r,Vt(t)/r]}var r=Zt(n);return t.invert=function(n,t){return[n/r,o(t*r)]},t}function In(n,t){function r(n,t){var r=Xt(u-2*e*Vt(t))/e;return[r*Vt(n*=e),c-r*Zt(n)]}var i=Vt(n),e=(i+Vt(t))/2;if(Bt(e)<bt)return kn(n);var u=1+i*(2*e-i),c=Xt(u)/e;return r.invert=function(n,t){var r=c-t;return[Ut(n,Bt(r))/e*Wt(r),o((u-(n*n+r*r)*e*e)/(2*e))]},r}function Fn(n){var t=n.length;return{point:function(r,i){for(var e=-1;++e<t;)n[e].point(r,i)},sphere:function(){for(var r=-1;++r<t;)n[r].sphere()},lineStart:function(){for(var r=-1;++r<t;)n[r].lineStart()},lineEnd:function(){for(var r=-1;++r<t;)n[r].lineEnd()},polygonStart:function(){for(var r=-1;++r<t;)n[r].polygonStart()},polygonEnd:function(){for(var r=-1;++r<t;)n[r].polygonEnd()}}}function Bn(n){return function(t,r){var i=Zt(t),e=Zt(r),o=n(i*e);return[o*e*Vt(t),o*Vt(r)]}}function Dn(n){return function(t,r){var i=Xt(t*t+r*r),e=n(i),u=Vt(e),c=Zt(e);return[Ut(t*u,i*c),o(i&&r*u/i)]}}function Un(n,t){return[n,Kt(Yt((Tt+t)/2))]}function Zn(n){var t,r=On(n),i=r.scale,e=r.translate,o=r.clipExtent;return r.scale=function(n){return arguments.length?(i(n),t&&r.clipExtent(null),r):i()},r.translate=function(n){return arguments.length?(e(n),t&&r.clipExtent(null),r):e()},r.clipExtent=function(n){if(!arguments.length)return t?null:o();if(t=null==n){var u=Ot*i(),c=e();n=[[c[0]-u,c[1]-u],[c[0]+u,c[1]+u]]}return o(n),r},r.clipExtent(null)}function Hn(n){return Yt((Tt+n)/2)}function Jn(n,t){function r(n,t){o>0?t<-Tt+bt&&(t=-Tt+bt):t>Tt-bt&&(t=Tt-bt);var r=o/Qt(Hn(t),e);return[r*Vt(e*n),o-r*Zt(e*n)]}var i=Zt(n),e=n===t?Vt(n):Kt(i/Zt(t))/Kt(Hn(t)/Hn(n)),o=i*Qt(Hn(n),e)/e;return e?(r.invert=function(n,t){var r=o-t,i=Wt(e)*Xt(n*n+r*r);return[Ut(n,Bt(r))/e*Wt(r),2*Dt(Qt(o/i,1/e))-Tt]},r):Un}function Kn(n,t){return[n,t]}function Qn(n,t){function r(n,t){var r=o-t,i=e*n;return[r*Vt(i),o-r*Zt(i)]}var i=Zt(n),e=n===t?Vt(n):(i-Zt(t))/(t-n),o=i/e+n;return Bt(e)<bt?Kn:(r.invert=function(n,t){var r=o-t;return[Ut(n,Bt(r))/e*Wt(r),o-Wt(e)*Xt(n*n+r*r)]},r)}function Vn(n,t){var r=Zt(t),i=Zt(n)*r;return[r*Vt(n)/i,Vt(t)/i]}function Wn(n,t,r){return 1===n&&0===t&&0===r?Fr:Pn({point:function(i,e){this.stream.point(i*n+t,e*n+r)}})}function Xn(n,t){return[Zt(t)*Vt(n),Vt(t)]}function Yn(n,t){var r=Zt(t),i=1+Zt(n)*r;return[r*Vt(n)/i,Vt(t)/i]}function $n(n,t){return[Kt(Yt((Tt+t)/2)),-n]}var nt=function(){return new r};r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(n){i(zt,n,this.t),i(this,zt.s,this.s),this.s?this.t+=zt.t:this.s=zt.t},valueOf:function(){return this.s}};var tt,rt,it,et,ot,ut,ct,at,lt,ft,pt,st,ht,gt,vt,dt,Et,St,yt,mt,xt,Mt,_t,Nt,wt,Rt,At,jt,Pt,Ct,qt,zt=new r,bt=1e-6,Lt=1e-12,Ot=Math.PI,Tt=Ot/2,Gt=Ot/4,kt=2*Ot,It=180/Ot,Ft=Ot/180,Bt=Math.abs,Dt=Math.atan,Ut=Math.atan2,Zt=Math.cos,Ht=Math.ceil,Jt=Math.exp,Kt=Math.log,Qt=Math.pow,Vt=Math.sin,Wt=Math.sign||function(n){return n>0?1:n<0?-1:0},Xt=Math.sqrt,Yt=Math.tan,$t={Feature:function(n,t){a(n.geometry,t)},FeatureCollection:function(n,t){for(var r=n.features,i=-1,e=r.length;++i<e;)a(r[i].geometry,t)}},nr={Sphere:function(n,t){t.sphere()},Point:function(n,t){n=n.coordinates,t.point(n[0],n[1],n[2])},MultiPoint:function(n,t){for(var r=n.coordinates,i=-1,e=r.length;++i<e;)n=r[i],t.point(n[0],n[1],n[2])},LineString:function(n,t){l(n.coordinates,t,0)},MultiLineString:function(n,t){for(var r=n.coordinates,i=-1,e=r.length;++i<e;)l(r[i],t,0)},Polygon:function(n,t){f(n.coordinates,t)},MultiPolygon:function(n,t){for(var r=n.coordinates,i=-1,e=r.length;++i<e;)f(r[i],t)},GeometryCollection:function(n,t){for(var r=n.geometries,i=-1,e=r.length;++i<e;)a(r[i],t)}},tr=function(n,t){n&&$t.hasOwnProperty(n.type)?$t[n.type](n,t):a(n,t)},rr=nt(),ir=nt(),er={point:c,lineStart:c,lineEnd:c,polygonStart:function(){rr.reset(),er.lineStart=p,er.lineEnd=s},polygonEnd:function(){var n=+rr;ir.add(n<0?kt+n:n),this.lineStart=this.lineEnd=this.point=c},sphere:function(){ir.add(kt)}},or=function(n){return ir.reset(),tr(n,er),2*ir},ur=nt(),cr={point:M,lineStart:N,lineEnd:w,polygonStart:function(){cr.point=R,cr.lineStart=A,cr.lineEnd=j,ur.reset(),er.polygonStart()},polygonEnd:function(){er.polygonEnd(),cr.point=M,cr.lineStart=N,cr.lineEnd=w,rr<0?(ut=-(at=180),ct=-(lt=90)):ur>bt?lt=90:ur<-bt&&(ct=-90),vt[0]=ut,vt[1]=at}},ar=function(n){var t,r,i,e,o,u,c;if(lt=at=-(ut=ct=1/0),gt=[],tr(n,cr),r=gt.length){for(gt.sort(C),t=1,i=gt[0],o=[i];t<r;++t)e=gt[t],q(i,e[0])||q(i,e[1])?(P(i[0],e[1])>P(i[0],i[1])&&(i[1]=e[1]),P(e[0],i[1])>P(i[0],i[1])&&(i[0]=e[0])):o.push(i=e);for(u=-(1/0),r=o.length-1,t=0,i=o[r];t<=r;i=e,++t)e=o[t],(c=P(i[1],e[0]))>u&&(u=c,ut=e[0],at=i[1])}return gt=vt=null,ut===1/0||ct===1/0?[[NaN,NaN],[NaN,NaN]]:[[ut,ct],[at,lt]]},lr={sphere:c,point:z,lineStart:L,lineEnd:G,polygonStart:function(){lr.lineStart=k,lr.lineEnd=I},polygonEnd:function(){lr.lineStart=L,lr.lineEnd=G}},fr=function(n){dt=Et=St=yt=mt=xt=Mt=_t=Nt=wt=Rt=0,tr(n,lr);var t=Nt,r=wt,i=Rt,e=t*t+r*r+i*i;return e<Lt&&(t=xt,r=Mt,i=_t,Et<bt&&(t=St,r=yt,i=mt),e=t*t+r*r+i*i,e<Lt)?[NaN,NaN]:[Ut(r,t)*It,o(i/Xt(e))*It]},pr=function(n){return function(){return n}},sr=function(n,t){function r(r,i){return r=n(r,i),t(r[0],r[1])}return n.invert&&t.invert&&(r.invert=function(r,i){return r=t.invert(r,i),r&&n.invert(r[0],r[1])}),r};D.invert=D;var hr,gr,vr,dr,Er,Sr,yr,mr,xr,Mr,_r,Nr=function(n){function t(t){return t=n(t[0]*Ft,t[1]*Ft),t[0]*=It,t[1]*=It,t}return n=U(n[0]*Ft,n[1]*Ft,n.length>2?n[2]*Ft:0),t.invert=function(t){return t=n.invert(t[0]*Ft,t[1]*Ft),t[0]*=It,t[1]*=It,t},t},wr=function(){function n(n,t){r.push(n=i(n,t)),n[0]*=It,n[1]*=It}function t(){var n=e.apply(this,arguments),t=o.apply(this,arguments)*Ft,a=u.apply(this,arguments)*Ft;return r=[],i=U(-n[0]*Ft,-n[1]*Ft,0).invert,K(c,t,a,1),n={type:"Polygon",coordinates:[r]},r=i=null,n}var r,i,e=pr([0,0]),o=pr(90),u=pr(6),c={point:n};return t.center=function(n){return arguments.length?(e="function"==typeof n?n:pr([+n[0],+n[1]]),t):e},t.radius=function(n){return arguments.length?(o="function"==typeof n?n:pr(+n),t):o},t.precision=function(n){return arguments.length?(u="function"==typeof n?n:pr(+n),t):u},t},Rr=function(){var n,t=[];return{point:function(t,r){n.push([t,r])},lineStart:function(){t.push(n=[])},lineEnd:c,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var r=t;return t=[],n=null,r}}},Ar=function(n,t,r,i,e,o){var u,c=n[0],a=n[1],l=t[0],f=t[1],p=0,s=1,h=l-c,g=f-a;if(u=r-c,h||!(u>0)){if(u/=h,h<0){if(u<p)return;u<s&&(s=u)}else if(h>0){if(u>s)return;u>p&&(p=u)}if(u=e-c,h||!(u<0)){if(u/=h,h<0){if(u>s)return;u>p&&(p=u)}else if(h>0){if(u<p)return;u<s&&(s=u)}if(u=i-a,g||!(u>0)){if(u/=g,g<0){if(u<p)return;u<s&&(s=u)}else if(g>0){if(u>s)return;u>p&&(p=u)}if(u=o-a,g||!(u<0)){if(u/=g,g<0){if(u>s)return;u>p&&(p=u)}else if(g>0){if(u<p)return;u<s&&(s=u)}return p>0&&(n[0]=c+p*h,n[1]=a+p*g),s<1&&(t[0]=c+s*h,t[1]=a+s*g),!0}}}}},jr=function(n,t){return Bt(n[0]-t[0])<bt&&Bt(n[1]-t[1])<bt},Pr=function(n,t,r,i,e){var o,u,c=[],a=[];if(n.forEach(function(n){if(!((t=n.length-1)<=0)){var t,r,i=n[0],u=n[t];if(jr(i,u)){for(e.lineStart(),o=0;o<t;++o)e.point((i=n[o])[0],i[1]);return void e.lineEnd()}c.push(r=new V(i,n,null,!0)),a.push(r.o=new V(i,null,r,!1)),c.push(r=new V(u,n,null,!1)),a.push(r.o=new V(u,null,r,!0))}}),c.length){for(a.sort(t),W(c),W(a),o=0,u=a.length;o<u;++o)a[o].e=r=!r;for(var l,f,p=c[0];;){for(var s=p,h=!0;s.v;)if((s=s.n)===p)return;l=s.z,e.lineStart();do{if(s.v=s.o.v=!0,s.e){if(h)for(o=0,u=l.length;o<u;++o)e.point((f=l[o])[0],f[1]);else i(s.x,s.n.x,1,e);s=s.n}else{if(h)for(l=s.p.z,o=l.length-1;o>=0;--o)e.point((f=l[o])[0],f[1]);else i(s.x,s.p.x,-1,e);s=s.p}s=s.o,l=s.z,h=!h}while(!s.v);e.lineEnd()}}},Cr=1e9,qr=-Cr,zr=function(){var n,t,r,i=0,e=0,o=960,u=500;return r={stream:function(r){return n&&t===r?n:n=X(i,e,o,u)(t=r)},extent:function(c){return arguments.length?(i=+c[0][0],e=+c[0][1],o=+c[1][0],u=+c[1][1],n=t=null,r):[[i,e],[o,u]]}}},br=nt(),Lr={sphere:c,point:c,lineStart:Y,lineEnd:c,polygonStart:c,polygonEnd:c},Or=function(n){return br.reset(),tr(n,Lr),+br},Tr=[null,null],Gr={type:"LineString",coordinates:Tr},kr=function(n,t){return Tr[0]=n,Tr[1]=t,Or(Gr)},Ir=function(n,t){var r=n[0]*Ft,i=n[1]*Ft,e=t[0]*Ft,c=t[1]*Ft,a=Zt(i),l=Vt(i),f=Zt(c),p=Vt(c),s=a*Zt(r),h=a*Vt(r),g=f*Zt(e),v=f*Vt(e),d=2*o(Xt(u(c-i)+a*f*u(e-r))),E=Vt(d),S=d?function(n){var t=Vt(n*=d)/E,r=Vt(d-n)/E,i=r*s+t*g,e=r*h+t*v,o=r*l+t*p;return[Ut(e,i)*It,Ut(o,Xt(i*i+e*e))*It]}:function(){return[r*It,i*It]};return S.distance=d,S},Fr=function(n){return n},Br=nt(),Dr=nt(),Ur={point:c,lineStart:c,lineEnd:c,polygonStart:function(){Ur.lineStart=cn,Ur.lineEnd=fn},polygonEnd:function(){Ur.lineStart=Ur.lineEnd=Ur.point=c,Br.add(Bt(Dr)),Dr.reset()},result:function(){var n=Br/2;return Br.reset(),n}},Zr=1/0,Hr=Zr,Jr=-Zr,Kr=Jr,Qr={point:pn,lineStart:c,lineEnd:c,polygonStart:c,polygonEnd:c,result:function(){var n=[[Zr,Hr],[Jr,Kr]];return Jr=Kr=-(Hr=Zr=1/0),n}},Vr=0,Wr=0,Xr=0,Yr=0,$r=0,ni=0,ti=0,ri=0,ii=0,ei={point:sn,lineStart:hn,lineEnd:dn,polygonStart:function(){ei.lineStart=En,ei.lineEnd=Sn},polygonEnd:function(){ei.point=sn,ei.lineStart=hn,ei.lineEnd=dn},result:function(){var n=ii?[ti/ii,ri/ii]:ni?[Yr/ni,$r/ni]:Xr?[Vr/Xr,Wr/Xr]:[NaN,NaN];return Vr=Wr=Xr=Yr=$r=ni=ti=ri=ii=0,n}};xn.prototype={_radius:4.5,pointRadius:function(n){return this._radius=n,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(n,t){switch(this._point){case 0:this._context.moveTo(n,t),this._point=1;break;case 1:this._context.lineTo(n,t);break;default:this._context.moveTo(n+this._radius,t),this._context.arc(n,t,this._radius,0,kt)}},result:c},Mn.prototype={_circle:_n(4.5),pointRadius:function(n){return this._circle=_n(n),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(n,t){switch(this._point){case 0:this._string.push("M",n,",",t),this._point=1;break;case 1:this._string.push("L",n,",",t);break;default:this._string.push("M",n,",",t,this._circle)}},result:function(){if(this._string.length){var n=this._string.join("");return this._string=[],n}}};var oi=function(n,t){function r(n){return n&&("function"==typeof o&&e.pointRadius(+o.apply(this,arguments)),tr(n,i(e))),e.result()}var i,e,o=4.5;return r.area=function(n){return tr(n,i(Ur)),Ur.result()},r.bounds=function(n){return tr(n,i(Qr)),Qr.result()},r.centroid=function(n){return tr(n,i(ei)),ei.result()},r.projection=function(t){return arguments.length?(i=null==(n=t)?Fr:t.stream,r):n},r.context=function(n){return arguments.length?(e=null==(t=n)?new Mn:new xn(n),"function"!=typeof o&&e.pointRadius(o),r):t},r.pointRadius=function(n){return arguments.length?(o="function"==typeof n?n:(e.pointRadius(+n),+n),r):o},r.projection(n).context(t)},ui=nt(),ci=function(n,t){var r=t[0],i=t[1],e=[Vt(r),-Zt(r),0],u=0,c=0;ui.reset();for(var a=0,l=n.length;a<l;++a)if(p=(f=n[a]).length)for(var f,p,s=f[p-1],h=s[0],g=s[1]/2+Gt,v=Vt(g),E=Zt(g),y=0;y<p;++y,h=M,v=N,E=w,s=m){var m=f[y],M=m[0],_=m[1]/2+Gt,N=Vt(_),w=Zt(_),R=M-h,A=R>=0?1:-1,j=A*R,P=j>Ot,C=v*N;if(ui.add(Ut(C*A*Vt(j),E*w+C*Zt(j))),u+=P?R+A*kt:R,P^h>=r^M>=r){var q=S(d(s),d(m));x(q);var z=S(e,q);x(z);var b=(P^R>=0?-1:1)*o(z[2]);(i>b||i===b&&(q[0]||q[1]))&&(c+=P^R>=0?1:-1)}}return(u<-bt||u<bt&&ui<-bt)^1&c},ai=function(n,r,i,e){return function(o,u){function c(t,r){var i=o(t,r);n(t=i[0],r=i[1])&&u.point(t,r)}function a(n,t){var r=o(n,t);E.point(r[0],r[1])}function l(){M.point=a,E.lineStart()}function f(){M.point=c,E.lineEnd()}function p(n,t){d.push([n,t]);var r=o(n,t);m.point(r[0],r[1])}function s(){m.lineStart(),d=[]}function h(){p(d[0][0],d[0][1]),m.lineEnd();var n,t,r,i,e=m.clean(),o=y.result(),c=o.length;if(d.pop(),g.push(d),d=null,c)if(1&e){if(r=o[0],(t=r.length-1)>0){for(x||(u.polygonStart(),x=!0),u.lineStart(),n=0;n<t;++n)u.point((i=r[n])[0],i[1]);u.lineEnd()}}else c>1&&2&e&&o.push(o.pop().concat(o.shift())),v.push(o.filter(Nn))}var g,v,d,E=r(u),S=o.invert(e[0],e[1]),y=Rr(),m=r(y),x=!1,M={point:c,lineStart:l,lineEnd:f,polygonStart:function(){M.point=p,M.lineStart=s,M.lineEnd=h,v=[],g=[]},polygonEnd:function(){M.point=c,M.lineStart=l,M.lineEnd=f,v=t.merge(v);var n=ci(g,S);v.length?(x||(u.polygonStart(),x=!0),Pr(v,wn,n,i,u)):n&&(x||(u.polygonStart(),x=!0),u.lineStart(),i(null,null,1,u),u.lineEnd()),x&&(u.polygonEnd(),x=!1),v=g=null},sphere:function(){u.polygonStart(),u.lineStart(),i(null,null,1,u),u.lineEnd(),u.polygonEnd()}};return M}},li=ai(function(){return!0},Rn,jn,[-Ot,-Tt]),fi=function(n,t){function r(r,i,e,o){K(o,n,t,e,r,i)}function i(n,t){return Zt(n)*Zt(t)>c}function e(n){var t,r,e,c,f;return{lineStart:function(){c=e=!1,f=1},point:function(p,s){var h,g=[p,s],v=i(p,s),d=a?v?0:u(p,s):v?u(p+(p<0?Ot:-Ot),s):0;if(!t&&(c=e=v)&&n.lineStart(),v!==e&&(h=o(t,g),(jr(t,h)||jr(g,h))&&(g[0]+=bt,g[1]+=bt,v=i(g[0],g[1]))),v!==e)f=0,v?(n.lineStart(),h=o(g,t),n.point(h[0],h[1])):(h=o(t,g),n.point(h[0],h[1]),n.lineEnd()),t=h;else if(l&&t&&a^v){var E;d&r||!(E=o(g,t,!0))||(f=0,a?(n.lineStart(),n.point(E[0][0],E[0][1]),n.point(E[1][0],E[1][1]),n.lineEnd()):(n.point(E[1][0],E[1][1]),n.lineEnd(),n.lineStart(),n.point(E[0][0],E[0][1])))}!v||t&&jr(t,g)||n.point(g[0],g[1]),t=g,e=v,r=d},lineEnd:function(){e&&n.lineEnd(),t=null},clean:function(){return f|(c&&e)<<1}}}function o(n,t,r){var i=d(n),e=d(t),o=[1,0,0],u=S(i,e),a=E(u,u),l=u[0],f=a-l*l;if(!f)return!r&&n;var p=c*a/f,s=-c*l/f,h=S(o,u),g=m(o,p),x=m(u,s);y(g,x);var M=h,_=E(g,M),N=E(M,M),w=_*_-N*(E(g,g)-1);if(!(w<0)){var R=Xt(w),A=m(M,(-_-R)/N);if(y(A,g),A=v(A),!r)return A;var j,P=n[0],C=t[0],q=n[1],z=t[1];C<P&&(j=P,P=C,C=j);var b=C-P,L=Bt(b-Ot)<bt,O=L||b<bt;if(!L&&z<q&&(j=q,q=z,z=j),O?L?q+z>0^A[1]<(Bt(A[0]-P)<bt?q:z):q<=A[1]&&A[1]<=z:b>Ot^(P<=A[0]&&A[0]<=C)){var T=m(M,(-_+R)/N);return y(T,g),[A,v(T)]}}}function u(t,r){var i=a?n:Ot-n,e=0;return t<-i?e|=1:t>i&&(e|=2),r<-i?e|=4:r>i&&(e|=8),e}var c=Zt(n),a=c>0,l=Bt(c)>bt;return ai(i,e,r,a?[0,-n]:[-Ot,n-Ot])},pi=function(n){return{stream:Pn(n)}};Cn.prototype={constructor:Cn,point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var si=16,hi=Zt(30*Ft),gi=function(n,t){return+t?Ln(n,t):bn(n)},vi=Pn({point:function(n,t){this.stream.point(n*Ft,t*Ft)}}),di=function(){return Gn(In).scale(155.424).center([0,33.6442])},Ei=function(){return di().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},Si=function(){function n(n){var t=n[0],r=n[1];return c=null,e.point(t,r),c||(o.point(t,r),c)||(u.point(t,r),c)}function t(){return r=i=null,n}var r,i,e,o,u,c,a=Ei(),l=di().rotate([154,0]).center([-2,58.5]).parallels([55,65]),f=di().rotate([157,0]).center([-3,19.9]).parallels([8,18]),p={point:function(n,t){c=[n,t]}};return n.invert=function(n){var t=a.scale(),r=a.translate(),i=(n[0]-r[0])/t,e=(n[1]-r[1])/t;return(e>=.12&&e<.234&&i>=-.425&&i<-.214?l:e>=.166&&e<.234&&i>=-.214&&i<-.115?f:a).invert(n)},n.stream=function(n){return r&&i===n?r:r=Fn([a.stream(i=n),l.stream(n),f.stream(n)])},n.precision=function(n){return arguments.length?(a.precision(n),l.precision(n),f.precision(n),t()):a.precision()},n.scale=function(t){return arguments.length?(a.scale(t),l.scale(.35*t),f.scale(t),n.translate(a.translate())):a.scale()},n.translate=function(n){if(!arguments.length)return a.translate();var r=a.scale(),i=+n[0],c=+n[1];return e=a.translate(n).clipExtent([[i-.455*r,c-.238*r],[i+.455*r,c+.238*r]]).stream(p),o=l.translate([i-.307*r,c+.201*r]).clipExtent([[i-.425*r+bt,c+.12*r+bt],[i-.214*r-bt,c+.234*r-bt]]).stream(p),u=f.translate([i-.205*r,c+.212*r]).clipExtent([[i-.214*r+bt,c+.166*r+bt],[i-.115*r-bt,c+.234*r-bt]]).stream(p),t()},n.fitExtent=function(t,r){return qn(n,t,r)},n.fitSize=function(t,r){return zn(n,t,r)},n.scale(1070)},yi=Bn(function(n){return Xt(2/(1+n))});yi.invert=Dn(function(n){return 2*o(n/2)});var mi=function(){return On(yi).scale(124.75).clipAngle(179.999)},xi=Bn(function(n){return(n=e(n))&&n/Vt(n)});xi.invert=Dn(function(n){return n});var Mi=function(){return On(xi).scale(79.4188).clipAngle(179.999)};Un.invert=function(n,t){return[n,2*Dt(Jt(t))-Tt]};var _i=function(){return Zn(Un).scale(961/kt)},Ni=function(){return Gn(Jn).scale(109.5).parallels([30,30])};Kn.invert=Kn;var wi=function(){return On(Kn).scale(152.63)},Ri=function(){return Gn(Qn).scale(131.154).center([0,13.9389])};Vn.invert=Dn(Dt);var Ai=function(){return On(Vn).scale(144.049).clipAngle(60)},ji=function(){function n(){return e=o=null,u}var t,r,i,e,o,u,c=1,a=0,l=0,f=Fr,p=null,s=Fr;return u={stream:function(n){return e&&o===n?e:e=f(s(o=n))},clipExtent:function(e){return arguments.length?(s=null==e?(p=t=r=i=null,Fr):X(p=+e[0][0],t=+e[0][1],r=+e[1][0],i=+e[1][1]),n()):null==p?null:[[p,t],[r,i]]},scale:function(t){return arguments.length?(f=Wn(c=+t,a,l),n()):c},translate:function(t){return arguments.length?(f=Wn(c,a=+t[0],l=+t[1]),n()):[a,l]},fitExtent:function(n,t){return qn(u,n,t)},fitSize:function(n,t){return zn(u,n,t)}}};Xn.invert=Dn(o);var Pi=function(){return On(Xn).scale(249.5).clipAngle(90+bt)};Yn.invert=Dn(function(n){return 2*Dt(n)});var Ci=function(){return On(Yn).scale(250).clipAngle(142)};$n.invert=function(n,t){return[-t,2*Dt(Jt(n))-Tt]};var qi=function(){var n=Zn($n),t=n.center,r=n.rotate;return n.center=function(n){return arguments.length?t([-n[1],n[0]]):(n=t(),[n[1],-n[0]])},n.rotate=function(n){return arguments.length?r([n[0],n[1],n.length>2?n[2]+90:90]):(n=r(),[n[0],n[1],n[2]-90])},r([0,0,90]).scale(159.155)};n.geoArea=or,n.geoBounds=ar,n.geoCentroid=fr,n.geoCircle=wr,n.geoClipExtent=zr,n.geoDistance=kr,n.geoGraticule=on,n.geoGraticule10=un,n.geoInterpolate=Ir,n.geoLength=Or,n.geoPath=oi,n.geoAlbers=Ei,n.geoAlbersUsa=Si,n.geoAzimuthalEqualArea=mi,n.geoAzimuthalEqualAreaRaw=yi,n.geoAzimuthalEquidistant=Mi,n.geoAzimuthalEquidistantRaw=xi,n.geoConicConformal=Ni,n.geoConicConformalRaw=Jn,n.geoConicEqualArea=di,n.geoConicEqualAreaRaw=In,n.geoConicEquidistant=Ri,n.geoConicEquidistantRaw=Qn,n.geoEquirectangular=wi,n.geoEquirectangularRaw=Kn,n.geoGnomonic=Ai,n.geoGnomonicRaw=Vn,n.geoIdentity=ji,n.geoProjection=On,n.geoProjectionMutator=Tn,n.geoMercator=_i,n.geoMercatorRaw=Un,n.geoOrthographic=Pi,n.geoOrthographicRaw=Xn,n.geoStereographic=Ci,n.geoStereographicRaw=Yn,n.geoTransverseMercator=qi,n.geoTransverseMercatorRaw=$n,n.geoRotation=Nr,n.geoStream=tr,n.geoTransform=pi,Object.defineProperty(n,"__esModule",{value:!0})});

@@ -7,3 +7,3 @@ export {default as geoArea} from "./src/area";

export {default as geoDistance} from "./src/distance";
export {default as geoGraticule} from "./src/graticule";
export {default as geoGraticule, graticule10 as geoGraticule10} from "./src/graticule";
export {default as geoInterpolate} from "./src/interpolate";

@@ -10,0 +10,0 @@ export {default as geoLength} from "./src/length";

{
"name": "d3-geo",
"version": "1.3.0",
"version": "1.3.1",
"description": "Shapes and calculators for spherical coordinates.",

@@ -5,0 +5,0 @@ "keywords": [

import {clipExtent} from "../clip/extent";
import identity from "../identity";
import {transform} from "../transform";
import {transformer} from "../transform";
import {fitExtent, fitSize} from "./fit";
function scaleTranslate(k, tx, ty) {
return k === 1 && tx === 0 && ty === 0 ? identity : transform({
return k === 1 && tx === 0 && ty === 0 ? identity : transformer({
point: function(x, y) {

@@ -9,0 +9,0 @@ this.stream.point(x * k + tx, y * k + ty);

@@ -8,7 +8,7 @@ import clipAntimeridian from "../clip/antimeridian";

import {rotateRadians} from "../rotation";
import {transform} from "../transform";
import {transformer} from "../transform";
import {fitExtent, fitSize} from "./fit";
import resample from "./resample";
var transformRadians = transform({
var transformRadians = transformer({
point: function(x, y) {

@@ -15,0 +15,0 @@ this.stream.point(x * radians, y * radians);

import {cartesian} from "../cartesian";
import {abs, asin, atan2, cos, epsilon, radians, sqrt} from "../math";
import {transform} from "../transform";
import {transformer} from "../transform";

@@ -13,3 +13,3 @@ var maxDepth = 16, // maximum depth of subdivision

function resampleNone(project) {
return transform({
return transformer({
point: function(x, y) {

@@ -16,0 +16,0 @@ x = project(x, y);

export default function(methods) {
return {
stream: transform(methods)
stream: transformer(methods)
};
}
export function transform(methods) {
export function transformer(methods) {
return function(stream) {
var t = new Transform;
for (var key in methods) t[key] = methods[key];
t.stream = stream;
return t;
var s = new TransformStream;
for (var key in methods) s[key] = methods[key];
s.stream = stream;
return s;
};
}
function Transform() {}
function TransformStream() {}
Transform.prototype = {
constructor: Transform,
TransformStream.prototype = {
constructor: TransformStream,
point: function(x, y) { this.stream.point(x, y); },

@@ -21,0 +21,0 @@ sphere: function() { this.stream.sphere(); },

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc