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.6.1 to 1.6.2

6

build/d3-geo.min.js

@@ -1,3 +0,3 @@

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

@@ -42,4 +42,4 @@ "keywords": [

"topojson-client": "2",
"uglify-js": "2"
"uglify-js": "^2.8.11"
}
}

@@ -15,3 +15,3 @@ # d3-geo

The projection of polygons and polylines must also deal with the topological differences between the sphere and the plane. Some projections require cutting geometry that [crosses the antimeridian](https://bl.ocks.org/mbostock/3788999), while others require [clipping geometry to a great circle](http://bl.ocks.org/mbostock/3021474).
The projection of polygons and polylines must also deal with the topological differences between the sphere and the plane. Some projections require cutting geometry that [crosses the antimeridian](https://bl.ocks.org/mbostock/3788999), while others require [clipping geometry to a great circle](https://bl.ocks.org/mbostock/3021474).

@@ -53,3 +53,3 @@ Spherical polygons also require a [winding order convention](https://bl.ocks.org/mbostock/a7bdfeb041e850799a8d3dce4d8c50c8) to determine which side of the polygon is the inside: the exterior ring for polygons smaller than a hemisphere must be clockwise, while the exterior ring for polygons [larger than a hemisphere](https://bl.ocks.org/mbostock/6713736) must be anticlockwise. Interior rings representing holes must use the opposite winding order of their exterior ring. This winding order convention is also used by [TopoJSON](https://github.com/topojson) and [ESRI shapefiles](https://github.com/mbostock/shapefile); however, it is the **opposite** convention of GeoJSON’s [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6). (Also note that standard GeoJSON WGS84 uses planar equirectangular coordinates, not spherical coordinates, and thus may require [stitching](https://github.com/d3/d3-geo-projection/blob/master/README.md#geostitch) to remove antimeridian cuts.)

The geographic path generator, [d3.geoPath](#geoPath), is similar to the shape generators in [d3-shape](https://github.com/d3/d3-shape): given a GeoJSON geometry or feature object, it generates an SVG path data string or [renders the path to a Canvas](http://bl.ocks.org/mbostock/3783604). Canvas is recommended for dynamic or interactive projections to improve performance. Paths can be used with [projections](#projections) or [transforms](#transforms), or they can be used to render planar geometry directly to Canvas or SVG.
The geographic path generator, [d3.geoPath](#geoPath), is similar to the shape generators in [d3-shape](https://github.com/d3/d3-shape): given a GeoJSON geometry or feature object, it generates an SVG path data string or [renders the path to a Canvas](https://bl.ocks.org/mbostock/3783604). Canvas is recommended for dynamic or interactive projections to improve performance. Paths can be used with [projections](#projections) or [transforms](#transforms), or they can be used to render planar geometry directly to Canvas or SVG.

@@ -105,3 +105,3 @@ <a href="#geoPath" name="geoPath">#</a> d3.<b>geoPath</b>([<i>projection</i>[, <i>context</i>]]) [<>](https://github.com/d3/d3-geo/blob/master/src/path/index.js "Source")

Returns the projected planar centroid (typically in pixels) for the specified GeoJSON *object*. This is handy for, say, labeling state or county boundaries, or displaying a symbol map. For example, a [noncontiguous cartogram](http://bl.ocks.org/mbostock/4055908) might scale each state around its centroid. This method observes any clipping performed by the [projection](#path_projection); see [*projection*.clipAngle](#projection_clipAngle) and [*projection*.clipExtent](#projection_clipExtent). This is the planar equivalent of [d3.geoCentroid](#geoCentroid).
Returns the projected planar centroid (typically in pixels) for the specified GeoJSON *object*. This is handy for, say, labeling state or county boundaries, or displaying a symbol map. For example, a [noncontiguous cartogram](https://bl.ocks.org/mbostock/4055908) might scale each state around its centroid. This method observes any clipping performed by the [projection](#path_projection); see [*projection*.clipAngle](#projection_clipAngle) and [*projection*.clipExtent](#projection_clipExtent). This is the planar equivalent of [d3.geoCentroid](#geoCentroid).

@@ -114,5 +114,5 @@ <a href="#path_measure" name="path_measure">#</a> <i>path</i>.<b>measure</b>(<i>object</i>) [<>](https://github.com/d3/d3-geo/blob/master/src/path/measure.js "Source")

If a *projection* is specified, sets the current projection to the specified projection. If *projection* is not specified, returns the current projection, which defaults to null. The null projection represents the identity transformation: the input geometry is not projected and is instead rendered directly in raw coordinates. This can be useful for fast rendering of [pre-projected geometry](http://bl.ocks.org/mbostock/5557726), or for fast rendering of the equirectangular projection.
If a *projection* is specified, sets the current projection to the specified projection. If *projection* is not specified, returns the current projection, which defaults to null. The null projection represents the identity transformation: the input geometry is not projected and is instead rendered directly in raw coordinates. This can be useful for fast rendering of [pre-projected geometry](https://bl.ocks.org/mbostock/5557726), or for fast rendering of the equirectangular projection.
The given *projection* is typically one of D3’s built-in [geographic projections](#projections); however, any object that exposes a [*projection*.stream](#projection_stream) function can be used, enabling the use of [custom projections](http://bl.ocks.org/mbostock/5663666). See D3’s [transforms](#transforms) for more examples of arbitrary geometric transformations.
The given *projection* is typically one of D3’s built-in [geographic projections](#projections); however, any object that exposes a [*projection*.stream](#projection_stream) function can be used, enabling the use of [custom projections](https://bl.ocks.org/mbostock/5663666). See D3’s [transforms](#transforms) for more examples of arbitrary geometric transformations.

@@ -162,3 +162,3 @@ <a href="#path_context" name="path_context">#</a> <i>path</i>.<b>context</b>([<i>context</i>]) [<>](https://github.com/d3/d3-geo/blob/master/src/path/index.js#L52 "Source")

If *angle* is specified, sets the projection’s clipping circle radius to the specified angle in degrees and returns the projection. If *angle* is null, switches to [antimeridian cutting](http://bl.ocks.org/mbostock/3788999) rather than small-circle clipping. If *angle* is not specified, returns the current clip angle which defaults to null. Small-circle clipping is independent of viewport clipping via [*projection*.clipExtent](#projection_clipExtent).
If *angle* is specified, sets the projection’s clipping circle radius to the specified angle in degrees and returns the projection. If *angle* is null, switches to [antimeridian cutting](https://bl.ocks.org/mbostock/3788999) rather than small-circle clipping. If *angle* is not specified, returns the current clip angle which defaults to null. Small-circle clipping is independent of viewport clipping via [*projection*.clipExtent](#projection_clipExtent).

@@ -183,7 +183,7 @@ <a href="#projection_clipExtent" name="projection_clipExtent">#</a> <i>projection</i>.<b>clipExtent</b>([<i>extent</i>]) [<>](https://github.com/d3/d3-geo/blob/master/src/projection/index.js#L56 "Source")

If *rotation* is specified, sets the projection’s [three-axis rotation](http://bl.ocks.org/mbostock/4282586) to the specified *angles*, which must be a two- or three-element array of numbers [*lambda*, *phi*, *gamma*] specifying the rotation angles in degrees about [each spherical axis](http://bl.ocks.org/mbostock/4282586). (These correspond to [yaw, pitch and roll](http://en.wikipedia.org/wiki/Aircraft_principal_axes).) If the rotation angle *gamma* is omitted, it defaults to 0. See also [d3.geoRotation](#geoRotation). If *rotation* is not specified, returns the current rotation which defaults [0, 0, 0].
If *rotation* is specified, sets the projection’s [three-axis rotation](https://bl.ocks.org/mbostock/4282586) to the specified *angles*, which must be a two- or three-element array of numbers [*lambda*, *phi*, *gamma*] specifying the rotation angles in degrees about [each spherical axis](https://bl.ocks.org/mbostock/4282586). (These correspond to [yaw, pitch and roll](http://en.wikipedia.org/wiki/Aircraft_principal_axes).) If the rotation angle *gamma* is omitted, it defaults to 0. See also [d3.geoRotation](#geoRotation). If *rotation* is not specified, returns the current rotation which defaults [0, 0, 0].
<a href="#projection_precision" name="projection_precision">#</a> <i>projection</i>.<b>precision</b>([<i>precision</i>]) [<>](https://github.com/d3/d3-geo/blob/master/src/projection/index.js#L76 "Source")
If *precision* is specified, sets the threshold for the projection’s [adaptive resampling](http://bl.ocks.org/mbostock/3795544) to the specified value in pixels and returns the projection. This value corresponds to the [Douglas–Peucker](http://en.wikipedia.org/wiki/Ramer–Douglas–Peucker_algorithm) distance. If *precision* is not specified, returns the projection’s current resampling precision which defaults to √0.5 ≅ 0.70710…
If *precision* is specified, sets the threshold for the projection’s [adaptive resampling](https://bl.ocks.org/mbostock/3795544) to the specified value in pixels and returns the projection. This value corresponds to the [Douglas–Peucker](http://en.wikipedia.org/wiki/Ramer–Douglas–Peucker_algorithm) distance. If *precision* is not specified, returns the projection’s current resampling precision which defaults to √0.5 ≅ 0.70710…

@@ -194,3 +194,3 @@ <a href="#projection_fitExtent" name="projection_fitExtent">#</a> <i>projection</i>.<b>fitExtent</b>(<i>extent</i>, <i>object</i>) [<>](https://github.com/d3/d3-geo/blob/master/src/projection/index.js#L80 "Source")

For example, to scale and translate the [New Jersey State Plane projection](http://bl.ocks.org/mbostock/5126418) to fit a GeoJSON object *nj* in the center of a 960×500 bounding box with 20 pixels of padding on each side:
For example, to scale and translate the [New Jersey State Plane projection](https://bl.ocks.org/mbostock/5126418) to fit a GeoJSON object *nj* in the center of a 960×500 bounding box with 20 pixels of padding on each side:

@@ -221,3 +221,3 @@ ```js

[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/azimuthalEqualArea.png" width="480" height="250">](http://bl.ocks.org/mbostock/3757101)
[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/azimuthalEqualArea.png" width="480" height="250">](https://bl.ocks.org/mbostock/3757101)

@@ -229,3 +229,3 @@ The azimuthal equal-area projection.

[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/azimuthalEquidistant.png" width="480" height="250">](http://bl.ocks.org/mbostock/3757110)
[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/azimuthalEquidistant.png" width="480" height="250">](https://bl.ocks.org/mbostock/3757110)

@@ -237,3 +237,3 @@ The azimuthal equidistant projection.

[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/gnomonic.png" width="480" height="250">](http://bl.ocks.org/mbostock/3757349)
[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/gnomonic.png" width="480" height="250">](https://bl.ocks.org/mbostock/3757349)

@@ -245,3 +245,3 @@ The gnomonic projection.

[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/orthographic.png" width="480" height="250">](http://bl.ocks.org/mbostock/3757125)
[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/orthographic.png" width="480" height="250">](https://bl.ocks.org/mbostock/3757125)

@@ -253,3 +253,3 @@ The orthographic projection.

[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/stereographic.png" width="480" height="250">](http://bl.ocks.org/mbostock/3757137)
[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/stereographic.png" width="480" height="250">](https://bl.ocks.org/mbostock/3757137)

@@ -264,3 +264,3 @@ The stereographic projection.

[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/albersUsa.png" width="480" height="250">](http://bl.ocks.org/mbostock/4090848)
[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/albersUsa.png" width="480" height="250">](https://bl.ocks.org/mbostock/4090848)

@@ -283,3 +283,3 @@ This is a U.S.-centric composite projection of three [d3.geoConicEqualArea](#geoConicEqualArea) projections: [d3.geoAlbers](#geoAlbers) is used for the lower forty-eight states, and separate conic equal-area projections are used for Alaska and Hawaii. Note that the scale for Alaska is diminished: it is projected at 0.35× its true relative area. This diagram by Philippe Rivière illustrates how this projection uses two rectangular insets for Alaska and Hawaii:

[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/albers.png" width="480" height="250">](http://bl.ocks.org/mbostock/3734308)
[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/albers.png" width="480" height="250">](https://bl.ocks.org/mbostock/3734308)

@@ -291,3 +291,3 @@ The Albers’ equal area-conic projection. This is a U.S.-centric configuration of [d3.geoConicEqualArea](#geoConicEqualArea).

[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/conicConformal.png" width="480" height="250">](http://bl.ocks.org/mbostock/3734321)
[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/conicConformal.png" width="480" height="250">](https://bl.ocks.org/mbostock/3734321)

@@ -299,3 +299,3 @@ The conic conformal projection. The parallels default to [30°, 30°] resulting in flat top. See also [*conic*.parallels](#conic_parallels).

[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/conicEqualArea.png" width="480" height="250">](http://bl.ocks.org/mbostock/3734308)
[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/conicEqualArea.png" width="480" height="250">](https://bl.ocks.org/mbostock/3734308)

@@ -307,3 +307,3 @@ The Albers’ equal-area conic projection. See also [*conic*.parallels](#conic_parallels).

[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/conicEquidistant.png" width="480" height="250">](http://bl.ocks.org/mbostock/3734317)
[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/conicEquidistant.png" width="480" height="250">](https://bl.ocks.org/mbostock/3734317)

@@ -319,3 +319,3 @@ The conic equidistant projection. See also [*conic*.parallels](#conic_parallels).

[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/equirectangular.png" width="480" height="250">](http://bl.ocks.org/mbostock/3757119)
[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/equirectangular.png" width="480" height="250">](https://bl.ocks.org/mbostock/3757119)

@@ -327,3 +327,3 @@ The equirectangular (plate carrée) projection.

[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/mercator.png" width="480" height="250">](http://bl.ocks.org/mbostock/3757132)
[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/mercator.png" width="480" height="250">](https://bl.ocks.org/mbostock/3757132)

@@ -335,3 +335,3 @@ The spherical Mercator projection. Defines a default [*projection*.clipExtent](#projection_clipExtent) such that the world is projected to a square, clipped to approximately ±85° latitude.

[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/transverseMercator.png" width="480" height="250">](http://bl.ocks.org/mbostock/5126418)
[<img src="https://raw.githubusercontent.com/d3/d3-geo/master/img/transverseMercator.png" width="480" height="250">](https://bl.ocks.org/mbostock/4695821)

@@ -430,3 +430,3 @@ The transverse spherical Mercator projection. Defines a default [*projection*.clipExtent](#projection_clipExtent) such that the world is projected to a square, clipped to approximately ±85° latitude.

Returns a [rotation function](#_rotation) for the given *angles*, which must be a two- or three-element array of numbers [*lambda*, *phi*, *gamma*] specifying the rotation angles in degrees about [each spherical axis](http://bl.ocks.org/mbostock/4282586). (These correspond to [yaw, pitch and roll](http://en.wikipedia.org/wiki/Aircraft_principal_axes).) If the rotation angle *gamma* is omitted, it defaults to 0. See also [*projection*.rotate](#projection_rotate).
Returns a [rotation function](#_rotation) for the given *angles*, which must be a two- or three-element array of numbers [*lambda*, *phi*, *gamma*] specifying the rotation angles in degrees about [each spherical axis](https://bl.ocks.org/mbostock/4282586). (These correspond to [yaw, pitch and roll](http://en.wikipedia.org/wiki/Aircraft_principal_axes).) If the rotation angle *gamma* is omitted, it defaults to 0. See also [*projection*.rotate](#projection_rotate).

@@ -433,0 +433,0 @@ <a name="_rotation" href="#_rotation">#</a> <i>rotation</i>(<i>point</i>) [<>](https://github.com/d3/d3-geo/blob/master/src/rotation.js#L35 "Source")

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