r&&(p-i)*(r-a)>(d-a)*(e-i)&&++t:d<=r&&(p-i)*(r-a)<(d-a)*(e-i)&&--t;return t}(),n=y&&t,o=(u=Object(mt.a)(u)).length;(n||o)&&(a.polygonStart(),n&&(a.lineStart(),i(null,null,1,a),a.lineEnd()),o&&ht(u,s,t,i,a),a.polygonEnd());b=a,u=c=l=null}};function E(e,t){o(e,t)&&b.point(e,t)}function P(i,a){var u=o(i,a);if(c&&l.push([i,a]),g)f=i,p=a,d=u,g=!1,u&&(b.lineStart(),b.point(i,a));else if(u&&m)b.point(i,a);else{var s=[h=Math.max(yt,Math.min(gt,h)),v=Math.max(yt,Math.min(gt,v))],w=[i=Math.max(yt,Math.min(gt,i)),a=Math.max(yt,Math.min(gt,a))];ft(s,w,e,t,n,r)?(m||(b.lineStart(),b.point(s[0],s[1])),b.point(w[0],w[1]),u||b.lineEnd(),y=!1):u&&(b.lineStart(),b.point(i,a),y=!1)}h=i,v=a,m=u}return M}}var wt,Mt,Et,Pt=function(){var e,t,n,r=0,o=0,i=960,a=500;return n={stream:function(n){return e&&t===n?e:e=bt(r,o,i,a)(t=n)},extent:function(u){return arguments.length?(r=+u[0][0],o=+u[0][1],i=+u[1][0],a=+u[1][1],e=t=null,n):[[r,o],[i,a]]}}},Ot=r(),St=function(e,t){var n=t[0],r=t[1],o=[E(n),-g(n),0],i=0,a=0;Ot.reset();for(var c=0,p=e.length;c=0?1:-1,R=N*k,A=R>s,T=w*C;if(Ot.add(m(T*N*E(R),M*j+T*g(R))),i+=A?k+N*f:k,A^y>=n^S>=n){var L=Z(J(v),J(O));te(L);var D=Z(o,L);te(D);var F=(A^k>=0?-1:1)*x(D[2]);(r>F||r===F&&(L[0]||L[1]))&&(a+=A^k>=0?1:-1)}}return(i<-u||iu})).map(c)).concat(Object(mt.b)(y(i/v)*v,o,v).filter((function(e){return h(e%g)>u})).map(l))}return w.lines=function(){return M().map((function(e){return{type:"LineString",coordinates:e}}))},w.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(p(a).slice(1),f(n).reverse().slice(1),p(s).reverse().slice(1))]}},w.extent=function(e){return arguments.length?w.extentMajor(e).extentMinor(e):w.extentMinor()},w.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),s>a&&(e=s,s=a,a=e),w.precision(b)):[[r,s],[n,a]]},w.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],i=+n[0][1],o=+n[1][1],t>e&&(n=t,t=e,e=n),i>o&&(n=i,i=o,o=n),w.precision(b)):[[t,i],[e,o]]},w.step=function(e){return arguments.length?w.stepMajor(e).stepMinor(e):w.stepMinor()},w.stepMajor=function(e){return arguments.length?(m=+e[0],g=+e[1],w):[m,g]},w.stepMinor=function(e){return arguments.length?(d=+e[0],v=+e[1],w):[d,v]},w.precision=function(u){return arguments.length?(b=+u,c=Wt(i,o,90),l=Ht(t,e,b),f=Wt(s,a,90),p=Ht(r,n,b),w):b},w.extentMajor([[-180,-90+u],[180,90-u]]).extentMinor([[-180,-80-u],[180,80+u]])}function Yt(){return Vt()()}var Xt,Kt,Jt,Qt,Zt=function(e,t){var n=e[0]*d,r=e[1]*d,o=t[0]*d,i=t[1]*d,a=g(r),u=E(r),s=g(i),c=E(i),l=a*g(n),f=a*E(n),h=s*g(o),v=s*E(o),y=2*x(O(C(i-r)+a*s*C(o-n))),b=E(y),w=y?function(e){var t=E(e*=y)/b,n=E(y-e)/b,r=n*l+t*h,o=n*f+t*v,i=n*u+t*c;return[m(o,r)*p,m(i,O(r*r+o*o))*p]}:function(){return[n*p,r*p]};return w.distance=y,w},$t=function(e){return e},en=r(),tn=r(),nn={point:j,lineStart:j,lineEnd:j,polygonStart:function(){nn.lineStart=rn,nn.lineEnd=un},polygonEnd:function(){nn.lineStart=nn.lineEnd=nn.point=j,en.add(h(tn)),tn.reset()},result:function(){var e=en/2;return en.reset(),e}};function rn(){nn.point=on}function on(e,t){nn.point=an,Xt=Jt=e,Kt=Qt=t}function an(e,t){tn.add(Qt*e-Jt*t),Jt=e,Qt=t}function un(){an(Xt,Kt)}var sn=nn,cn=1/0,ln=cn,fn=-cn,pn=fn;var dn,hn,vn,mn,gn={point:function(e,t){efn&&(fn=e);tpn&&(pn=t)},lineStart:j,lineEnd:j,polygonStart:j,polygonEnd:j,result:function(){var e=[[cn,ln],[fn,pn]];return fn=pn=-(ln=cn=1/0),e}},yn=0,bn=0,wn=0,Mn=0,En=0,Pn=0,On=0,Sn=0,_n=0,xn={point:Cn,lineStart:jn,lineEnd:Rn,polygonStart:function(){xn.lineStart=An,xn.lineEnd=Tn},polygonEnd:function(){xn.point=Cn,xn.lineStart=jn,xn.lineEnd=Rn},result:function(){var e=_n?[On/_n,Sn/_n]:Pn?[Mn/Pn,En/Pn]:wn?[yn/wn,bn/wn]:[NaN,NaN];return yn=bn=wn=Mn=En=Pn=On=Sn=_n=0,e}};function Cn(e,t){yn+=e,bn+=t,++wn}function jn(){xn.point=kn}function kn(e,t){xn.point=Nn,Cn(vn=e,mn=t)}function Nn(e,t){var n=e-vn,r=t-mn,o=O(n*n+r*r);Mn+=o*(vn+e)/2,En+=o*(mn+t)/2,Pn+=o,Cn(vn=e,mn=t)}function Rn(){xn.point=Cn}function An(){xn.point=Ln}function Tn(){Dn(dn,hn)}function Ln(e,t){xn.point=Dn,Cn(dn=vn=e,hn=mn=t)}function Dn(e,t){var n=e-vn,r=t-mn,o=O(n*n+r*r);Mn+=o*(vn+e)/2,En+=o*(mn+t)/2,Pn+=o,On+=(o=mn*e-vn*t)*(vn+e),Sn+=o*(mn+t),_n+=3*o,Cn(vn=e,mn=t)}var Fn=xn;function In(e){this._context=e}In.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,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(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,f)}},result:j};var Bn,zn,Un,Gn,qn,Wn=r(),Hn={point:j,lineStart:function(){Hn.point=Vn},lineEnd:function(){Bn&&Yn(zn,Un),Hn.point=j},polygonStart:function(){Bn=!0},polygonEnd:function(){Bn=null},result:function(){var e=+Wn;return Wn.reset(),e}};function Vn(e,t){Hn.point=Yn,zn=Gn=e,Un=qn=t}function Yn(e,t){Gn-=e,qn-=t,Wn.add(O(Gn*Gn+qn*qn)),Gn=e,qn=t}var Xn=Hn;function Kn(){this._string=[]}function Jn(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}Kn.prototype={_circle:Jn(4.5),pointRadius:function(e){return this._circle=Jn(e),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(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}}};var Qn=function(e,t){var n,r,o=4.5;function i(e){return e&&("function"===typeof o&&r.pointRadius(+o.apply(this,arguments)),z(e,n(r))),r.result()}return i.area=function(e){return z(e,n(sn)),sn.result()},i.measure=function(e){return z(e,n(Xn)),Xn.result()},i.bounds=function(e){return z(e,n(gn)),gn.result()},i.centroid=function(e){return z(e,n(Fn)),Fn.result()},i.projection=function(t){return arguments.length?(n=null==t?(e=null,$t):(e=t).stream,i):e},i.context=function(e){return arguments.length?(r=null==e?(t=null,new Kn):new In(t=e),"function"!==typeof o&&r.pointRadius(o),i):t},i.pointRadius=function(e){return arguments.length?(o="function"===typeof e?e:(r.pointRadius(+e),+e),i):o},i.projection(e).context(t)},Zn=function(e,t,n,r){return function(o,i){var a,u,s,c=t(i),l=o.invert(r[0],r[1]),f=lt(),p=t(f),d=!1,h={point:v,lineStart:g,lineEnd:y,polygonStart:function(){h.point=b,h.lineStart=w,h.lineEnd=M,u=[],a=[]},polygonEnd:function(){h.point=v,h.lineStart=g,h.lineEnd=y,u=Object(mt.a)(u);var e=St(a,l);u.length?(d||(i.polygonStart(),d=!0),ht(u,er,e,n,i)):e&&(d||(i.polygonStart(),d=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),d&&(i.polygonEnd(),d=!1),u=a=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function v(t,n){var r=o(t,n);e(t=r[0],n=r[1])&&i.point(t,n)}function m(e,t){var n=o(e,t);c.point(n[0],n[1])}function g(){h.point=m,c.lineStart()}function y(){h.point=v,c.lineEnd()}function b(e,t){s.push([e,t]);var n=o(e,t);p.point(n[0],n[1])}function w(){p.lineStart(),s=[]}function M(){b(s[0][0],s[0][1]),p.lineEnd();var e,t,n,r,o=p.clean(),c=f.result(),l=c.length;if(s.pop(),a.push(s),s=null,l)if(1&o){if((t=(n=c[0]).length-1)>0){for(d||(i.polygonStart(),d=!0),i.lineStart(),e=0;e1&&2&o&&c.push(c.pop().concat(c.shift())),u.push(c.filter($n))}return h}};function $n(e){return e.length>1}function er(e,t){return((e=e.x)[0]<0?e[1]-c-u:c-e[1])-((t=t.x)[0]<0?t[1]-c-u:c-t[1])}var tr=Zn((function(){return!0}),(function(e){var t,n=NaN,r=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(i,a){var l=i>0?s:-s,f=h(i-n);h(f-s)0?c:-c),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(l,r),e.point(i,r),t=0):o!==l&&f>=s&&(h(n-o)u?v((E(t)*(i=g(r))*E(n)-E(r)*(o=g(t))*E(e))/(o*i*a)):(t+r)/2}(n,r,i,a),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(l,r),t=0),e.point(n=i,r=a),o=l},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var o;if(null==e)o=n*c,r.point(-s,o),r.point(0,o),r.point(s,o),r.point(s,0),r.point(s,-o),r.point(0,-o),r.point(-s,-o),r.point(-s,0),r.point(-s,o);else if(h(e[0]-t[0])>u){var i=e[0]0,o=h(n)>u;function i(e,t){return g(e)*g(t)>n}function a(e,t,r){var o=[1,0,0],i=Z(J(e),J(t)),a=Q(i,i),c=i[0],l=a-c*c;if(!l)return!r&&e;var f=n*a/l,p=-n*c/l,d=Z(o,i),v=ee(o,f);$(v,ee(i,p));var m=d,g=Q(v,m),y=Q(m,m),b=g*g-y*(Q(v,v)-1);if(!(b<0)){var w=O(b),M=ee(m,(-g-w)/y);if($(M,v),M=K(M),!r)return M;var E,P=e[0],S=t[0],_=e[1],x=t[1];S0^M[1]<(h(M[0]-P)s^(P<=M[0]&&M[0]<=S)){var k=ee(m,(-g+w)/y);return $(k,v),[M,K(k)]}}}function c(t,n){var o=r?e:s-e,i=0;return t<-o?i|=1:t>o&&(i|=2),n<-o?i|=4:n>o&&(i|=8),i}return Zn(i,(function(e){var t,n,l,f,p;return{lineStart:function(){f=l=!1,p=1},point:function(d,h){var v,m=[d,h],g=i(d,h),y=r?g?0:c(d,h):g?c(d+(d<0?s:-s),h):0;if(!t&&(f=l=g)&&e.lineStart(),g!==l&&(v=a(t,m),(pt(t,v)||pt(m,v))&&(m[0]+=u,m[1]+=u,g=i(m[0],m[1]))),g!==l)p=0,g?(e.lineStart(),v=a(m,t),e.point(v[0],v[1])):(v=a(t,m),e.point(v[0],v[1]),e.lineEnd()),t=v;else if(o&&t&&r^g){var b;y&n||!(b=a(m,t,!0))||(p=0,r?(e.lineStart(),e.point(b[0][0],b[0][1]),e.point(b[1][0],b[1][1]),e.lineEnd()):(e.point(b[1][0],b[1][1]),e.lineEnd(),e.lineStart(),e.point(b[0][0],b[0][1])))}!g||t&&pt(t,m)||e.point(m[0],m[1]),t=m,l=g,n=y},lineEnd:function(){l&&e.lineEnd(),t=null},clean:function(){return p|(f&&l)<<1}}}),(function(n,r,o,i){ut(i,e,t,o,n,r)}),r?[0,-e]:[-s,e-s])},rr=function(e){return{stream:or(e)}};function or(e){return function(t){var n=new ir;for(var r in e)n[r]=e[r];return n.stream=t,n}}function ir(){}function ar(e,t,n){var r=t[1][0]-t[0][0],o=t[1][1]-t[0][1],i=e.clipExtent&&e.clipExtent();e.scale(150).translate([0,0]),null!=i&&e.clipExtent(null),z(n,e.stream(gn));var a=gn.result(),u=Math.min(r/(a[1][0]-a[0][0]),o/(a[1][1]-a[0][1])),s=+t[0][0]+(r-u*(a[1][0]+a[0][0]))/2,c=+t[0][1]+(o-u*(a[1][1]+a[0][1]))/2;return null!=i&&e.clipExtent(i),e.scale(150*u).translate([s,c])}function ur(e,t,n){return ar(e,[[0,0],t],n)}ir.prototype={constructor:ir,point:function(e,t){this.stream.point(e,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 sr=16,cr=g(30*d),lr=function(e,t){return+t?function(e,t){function n(r,o,i,a,s,c,l,f,p,d,v,g,y,b){var w=l-r,M=f-o,E=w*w+M*M;if(E>4*t&&y--){var P=a+d,S=s+v,_=c+g,C=O(P*P+S*S+_*_),j=x(_/=C),k=h(h(_)-1)t||h((w*T+M*L)/E-.5)>.3||a*d+s*v+c*g2?e[2]%360*d:0,N()):[y*p,b*p,w*p]},C.precision=function(e){return arguments.length?(x=lr(k,_=e*e),R()):O(_)},C.fitExtent=function(e,t){return ar(C,e,t)},C.fitSize=function(e,t){return ur(C,e,t)},function(){return t=e.apply(this,arguments),C.invert=t.invert&&j,N()}}function hr(e){var t=0,n=s/3,r=dr(e),o=r(t,n);return o.parallels=function(e){return arguments.length?r(t=e[0]*d,n=e[1]*d):[t*p,n*p]},o}function vr(e,t){var n=E(e),r=(n+E(t))/2;if(h(r)=.12&&o<.234&&r>=-.425&&r<-.214?s:o>=.166&&o<.234&&r>=-.214&&r<-.115?c:a).invert(e)},f.stream=function(n){return e&&t===n?e:e=function(e){var t=e.length;return{point:function(n,r){for(var o=-1;++o0?t<-c+u&&(t=-c+u):t>c-u&&(t=c-u);var n=o/M(Cr(t),r);return[n*E(r*e),o-n*g(r*e)]}return i.invert=function(e,t){var n=o-t,i=P(r)*O(e*e+n*n);return[m(e,h(n))/r*P(n),2*v(M(o/i,1/r))-c]},i}var kr=function(){return hr(jr).scale(109.5).parallels([30,30])};function Nr(e,t){return[e,t]}Nr.invert=Nr;var Rr=function(){return pr(Nr).scale(152.63)};function Ar(e,t){var n=g(e),r=e===t?E(e):(n-g(t))/(t-e),o=n/r+e;if(h(r)2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)}},aqGn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n1?this.handleMouseDown(t[0]):this.handleMouseUp()}},{key:"preventTouchScroll",value:function(e){e.touches.length>1&&e.preventDefault()}},{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.mouseX,r=t.mouseY,o=t.resizeFactorX,i=t.resizeFactorY,a=this.props,s=(a.projection,a.center),c=a.zoom,l=e.zoom/c,f=JSON.stringify(e.center)!==JSON.stringify(s);this.setState({zoom:e.zoom,mouseX:f?(0,u.calculateMousePosition)("x",e.projection,e,e.zoom,o):n*l,mouseY:f?(0,u.calculateMousePosition)("y",e.projection,e,e.zoom,i):r*l})}},{key:"handleResize",value:function(){var e=this.props,t=e.width,n=e.height,r=(e.projection,e.zoom,(0,u.calculateResizeFactor)(this.zoomableGroupNode.parentNode.getBoundingClientRect().width,t)),o=(0,u.calculateResizeFactor)(this.zoomableGroupNode.parentNode.getBoundingClientRect().height,n),i=1/r*this.state.resizeFactorX,a=1/o*this.state.resizeFactorY;this.setState({resizeFactorX:r,resizeFactorY:o,mouseX:this.state.mouseX*i,mouseY:this.state.mouseY*a})}},{key:"componentDidMount",value:function(){var e=this.props,t=e.width,n=e.height,r=e.projection,o=e.zoom,i=(0,u.calculateResizeFactor)(this.zoomableGroupNode.parentNode.getBoundingClientRect().width,t),a=(0,u.calculateResizeFactor)(this.zoomableGroupNode.parentNode.getBoundingClientRect().height,n);this.setState({resizeFactorX:i,resizeFactorY:a,mouseX:(0,u.calculateMousePosition)("x",r,this.props,o,i),mouseY:(0,u.calculateMousePosition)("y",r,this.props,o,a)}),window.addEventListener("resize",this.handleResize),window.addEventListener("mouseup",this.handleMouseUp),this.zoomableGroupNode.addEventListener("touchmove",this.preventTouchScroll)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("mouseup",this.handleMouseUp),this.zoomableGroupNode.removeEventListener("touchmove",this.preventTouchScroll)}},{key:"render",value:function(){var e=this,t=this.props,n=t.width,r=t.height,o=t.zoom,i=t.style,s=(t.projection,t.children),c=this.state,l=c.mouseX,f=c.mouseY,p=c.resizeFactorX,d=c.resizeFactorY;return a.default.createElement("g",{className:"rsm-zoomable-group",ref:function(t){return e.zoomableGroupNode=t},transform:"\n translate(\n "+Math.round(100*(n/2+p*l))/100+"\n "+Math.round(100*(r/2+d*f))/100+"\n )\n scale("+o+")\n translate("+-n/2+" "+-r/2+")\n ",onMouseMove:this.handleMouseMove,onMouseUp:this.handleMouseUp,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleMouseUp,style:i},a.default.createElement("rect",{x:this.state.backdrop.x,y:this.state.backdrop.y,width:this.state.backdrop.width,height:this.state.backdrop.height,fill:"transparent",style:{strokeWidth:0}}),(0,u.createNewChildren)(s,this.props))}}]),t}(i.Component);s.defaultProps={center:[0,0],backdrop:{x:[-179.9,179.9],y:[89.9,-89.9]},zoom:1,disablePanning:!1},t.default=s},bIsL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n5&&void 0!==arguments[5]?arguments[5]:n.center,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:n.width,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:n.height,s={x:0,y:1},c=!!t.rotate,l=!!c&&t.rotate().map((function(e){return-e})),f=l?t.rotate(l)([-i[0],-i[1]]):t([i[0],i[1]]),p=f?(f[s[e]]-(0===s[e]?a:u)/2)*r*(1/o):0;c&&t.rotate([-l[0],-l[1],-l[2]]);return l?p:-p},t.isChildOfType=a,t.createNewChildren=function(e,t){if(!e)return;return e.length?e.map((function(e,n){if(e)return a(e,["Geographies"])?i.default.cloneElement(e,{key:"zoomable-child-"+n,projection:t.projection}):a(e,["Group","Markers","Lines","Annotations","Annotation","Graticule"])?i.default.cloneElement(e,{key:"zoomable-child-"+n,projection:t.projection,zoom:t.zoom,width:t.width,height:t.height,groupName:t.groupName,itemName:t.itemName}):e})):a(e,["Geographies"])?i.default.cloneElement(e,{projection:t.projection}):a(e,["Group","Markers","Lines","Annotations","Annotation","Graticule"])?i.default.cloneElement(e,{projection:t.projection,zoom:t.zoom,width:t.width,height:t.height,groupName:t.groupName,itemName:t.itemName}):e},t.roundPath=function(e,t){if(!e)return;return e.replace(/[\d\.-][\d\.e-]*/g,(function(e){return Math.round(e*(1/t))/(1/t)}))},t.createConnectorPath=function(e,t,n){var r=t[0],o=t[1];return"M0,0 Q "+(n+1)/2*r+","+(o-(n+1)/2*o)+" "+r+","+o},t.createTextAnchor=function(e){return e>0?"start":e<0?"end":"middle"},t.computeBackdrop=function(e,t){var n=e.rotate,r=n?e.rotate():null,o=n?e.rotate([0,0,0])([t.x[0],t.y[0]]):e([t.x[0],t.y[0]]),i=n?e.rotate([0,0,0])([t.x[1],t.y[1]]):e([t.x[1],t.y[1]]),a=o?o[0]:0,u=i?i[0]:0,s=o?o[1]:0,c=i?i[1]:0,l=u-a,f=c-s;r&&e.rotate(r);return{x:a,y:s,width:l,height:f}};var r,o=n("q1tI"),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){return-1!==t.indexOf(e.props.componentIdentifier)}},cWyK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("/rf6");function o(e,t,n){if(null!==e)for(var r,i,a,u,s,c,l,f,p=0,d=0,h=e.type,v="FeatureCollection"===h,m="Feature"===h,g=v?e.features.length:1,y=0;yc||d>l||h>f)return s=o,c=n,l=d,f=h,void(a=0);var v=r.lineString([s,o],e.properties);if(!1===t(v,n,i,h,a))return!1;a++,s=o}))&&void 0}}}))}function l(e,t){if(!e)throw new Error("geojson is required");s(e,(function(e,n,o){if(null!==e.geometry){var i=e.geometry.type,a=e.geometry.coordinates;switch(i){case"LineString":if(!1===t(e,n,o,0,0))return!1;break;case"Polygon":for(var u=0;uy;return a.default.createElement("g",{className:"rsm-marker"+(d?" rsm-marker--pressed":"")+(h?" rsm-marker--hover":""),transform:"translate(\n "+m[0]+"\n "+m[1]+"\n ) "+v,style:r[b?"hidden":d||h?d?"pressed":"hover":"default"],onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleMouseClick,onMouseMove:this.handleMouseMove,onFocus:this.handleFocus,onBlur:this.handleBlur,tabIndex:o?0:-1},s)}}]),t}(i.Component);s.defaultProps={style:{default:{},hover:{},pressed:{}},marker:{coordinates:[0,0]},tabable:!0,preserveMarkerAspect:!0},t.default=s},egBM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["groupName","itemName","componentIdentifier"]));return o.default.createElement(i.default,r({groupName:t,itemName:n},a))};u.defaultProps={componentIdentifier:"Markers",groupName:"markers",itemName:"marker"},t.default=u},endd:function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},eqyj:function(e,t,n){"use strict";var r=n("xTJ+");e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var u=[];u.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(i)&&u.push("domain="+i),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},fJyB:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),o=n.n(r),i=n("TSYQ"),a=n.n(i),u=n("8Kt/"),s=n.n(u),c=o.a.createElement,l=function(e){var t=e.title,n=e.description;return c(s.a,null,c("title",{key:"title"},t?"".concat(t," | Supply chain"):"Supply chain"),c("meta",{key:"description",name:"description",content:n||"Tool to generate flow map images for Mongabay."}))};l.defaultProps={title:null,description:null};var f=l,p=o.a.createElement,d=function(){return p("svg",{"aria-hidden":"true",style:{position:"absolute",width:0,height:0,overflow:"hidden"},version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink"},p("defs",null,p("symbol",{id:"icon-close",viewBox:"0 0 9 9"},p("title",null,"Close"),p("path",{d:"M7.41.839l1.087 1.087-7.07 7.071L.338 7.91z"}),p("path",{d:"M8.498 7.91L7.41 8.998.339 1.927 1.427.839z"})),p("symbol",{id:"icon-bottom-arrow",viewBox:"0 0 15 15"},p("title",null,"Bottom arrow"),p("path",{strokeWidth:"2",d:"M3 5l4.5 5L12 5",fill:"none"})),p("symbol",{id:"icon-eye",viewBox:"0 0 22 15"},p("title",null,"Visible"),p("path",{d:"M11 0C6 0 1.73 3.11 0 7.5 1.73 11.89 6 15 11 15s9.27-3.11 11-7.5C20.27 3.11 16 0 11 0zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"})),p("symbol",{id:"icon-slashed-eye",viewBox:"0 0 23 21"},p("title",null,"Hidden"),p("path",{d:"M22.763 9.992a18.948 18.948 0 0 0-3.133-3.619L8.367 17.637c.997.324 2.039.493 3.088.5 6.75 0 11.125-6.838 11.308-7.13a.955.955 0 0 0 0-1.015zM21.674.28a.955.955 0 0 0-1.349 0l-3.873 3.873a10.746 10.746 0 0 0-4.997-1.29C4.705 2.864.329 9.702.146 9.994a.955.955 0 0 0 0 1.015 19.027 19.027 0 0 0 4.638 4.813L2.19 18.416a.955.955 0 1 0 1.349 1.35L21.674 1.629a.955.955 0 0 0 0-1.35zM7.636 10.5a3.818 3.818 0 0 1 3.819-3.818 3.708 3.708 0 0 1 1.92.548l-5.19 5.19a3.717 3.717 0 0 1-.549-1.92z"})),p("symbol",{id:"icon-opacity",viewBox:"0 0 16 16"},p("title",null,"Opacity"),p("path",{d:"M7 0v15.876A8.001 8.001 0 0 1 7 0zm5.001 1.009v13.858a7.95 7.95 0 0 1-2 .819V.19a7.95 7.95 0 0 1 2 .819zm2 1.639A7.97 7.97 0 0 1 16 7.938a7.97 7.97 0 0 1-1.999 5.29V2.648z"}))))},h=(n("03wo"),o.a.createElement),v=function(e){var t=e.className,n=e.children;return h("div",{className:a()("l-simple-page",t)},h(f,null),h("main",{className:"l-static-page"},h("img",{src:"".concat((void 0,""),"/images/mongabay-horizontal.jpg"),alt:"Mongabay",className:"logo"}),n),h(d,null))};v.defaultProps={className:null};var m=v,g=n("/MKj"),y=n("yeIB"),b=n("o0o1"),w=n.n(b),M=n("+XsK"),E=n("KQm4"),P=n("17x9"),O=n.n(P),S=(n("90j9"),o.a.createElement),_=Object(r.forwardRef)((function(e,t){var n=e.id,r=e.name,o=e.disabled,i=e.checked,a=e.onChange,u=e.children,s=e.className;return S("div",{ref:t,className:["custom-control","custom-radio","c-radio"].concat(Object(E.a)(s?[s]:[])).join(" ")},S("input",{type:"radio",className:"custom-control-input",disabled:o,id:n,name:r,checked:i,onChange:a}),S("label",{className:"custom-control-label",htmlFor:n},u))}));_.propTypes={id:O.a.string.isRequired,name:O.a.string.isRequired,disabled:O.a.bool,checked:O.a.bool,onChange:O.a.func,children:O.a.node.isRequired,className:O.a.string},_.defaultProps={disabled:!1,checked:!1,onChange:null,className:null};n("Wfic");var x=o.a.createElement,C=function(e){var t=e.id,n=e.name,r=e.disabled,o=e.checked,i=e.onChange,a=e.children,u=e.className;return x("div",{className:["custom-control","custom-checkbox","c-checkbox"].concat(Object(E.a)(u?[u]:[])).join(" ")},x("input",{type:"checkbox",className:"custom-control-input",disabled:r,id:t,name:n,checked:o,onChange:i}),x("label",{className:"custom-control-label",htmlFor:t},a))};C.defaultProps={disabled:!1,checked:!1,onChange:null,className:null};n("wTXl");var j=o.a.createElement,k=function(e){var t=e.id,n=e.options,o=e.defaultValue,i=e.value,a=e.onChange,u=e.disabled,s=e["aria-label"],c=e["aria-describedby"],l=e.className,f=e.required,p=Object(r.useCallback)((function(e){var t=n.find((function(t){return t.value===e.target.selectedOptions[0].value}));a(t)}),[n,a]);return j("select",{id:t,className:["c-select","custom-select"].concat(Object(E.a)(l?[l]:[])).join(" "),disabled:u,"aria-label":s,"aria-describedby":c,defaultValue:o,value:i,onChange:p,required:f},n.map((function(e){return j("option",{key:e.value,value:e.value,disabled:e.disabled},e.label)})))};k.defaultProps={defaultValue:void 0,value:void 0,onChange:function(){return null},disabled:!1,"aria-label":null,"aria-describedby":null,className:void 0,required:!1};var N=k,R=n("rePB"),A=o.a.createElement,T=function(e){var t=e.id,n=e.defaultValue,r=e.value,o=e.min,i=e.max,u=e["aria-label"],s=e.className,c=e.required,l=e.disabled,f=e.onChange;return A("input",{type:"date",id:t,className:a()("c-datepicker","form-control",Object(R.a)({},s,!!s)),defaultValue:n,value:r,min:o,max:i,pattern:"\\d{4}-\\d{2}-\\d{2}","aria-label":u,required:c,disabled:l,onChange:f})};T.defaultProps={className:void 0,defaultValue:void 0,value:void 0,min:void 0,max:void 0,"aria-label":void 0,required:!1,disabled:!1,onChange:function(){return null}};n("DMuj");var L=o.a.createElement,D=function(e){var t=e.id,n=e.defaultValue,r=e.value,o=e.min,i=e.max,u=e.step,s=e["aria-label"],c=e.className,l=e.required,f=e.disabled,p=e.marks,d=e.onChange;return L("div",{className:"c-range"},L("input",{type:"range",id:t,className:a()("custom-range",Object(R.a)({},c,!!c)),defaultValue:n,value:r,min:o,max:i,step:u,"aria-label":s,required:l,disabled:f,onChange:d}),p&&L("div",{className:"marks"},p.map((function(e){return L("span",{key:e,"data-label":e})}))))};D.defaultProps={className:void 0,defaultValue:void 0,value:void 0,min:void 0,max:void 0,step:void 0,"aria-label":void 0,required:!1,disabled:!1,marks:void 0,onChange:function(){return null}};function F(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function I(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t?t.defaultView:window}return e}function B(e){var t=I(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function z(e){return e instanceof I(e).Element||e instanceof Element}function U(e){return e instanceof I(e).HTMLElement||e instanceof HTMLElement}function G(e){return e?(e.nodeName||"").toLowerCase():null}function q(e){return(z(e)?e.ownerDocument:e.document).documentElement}function W(e){return F(q(e)).left+B(e).scrollLeft}function H(e){return I(e).getComputedStyle(e)}function V(e){var t=H(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Y(e,t,n){void 0===n&&(n=!1);var r=q(t),o=F(e),i=U(t),a={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==G(t)||V(r))&&(a=function(e){return e!==I(e)&&U(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:B(e);var t}(t)),U(t)?((u=F(t)).x+=t.clientLeft,u.y+=t.clientTop):r&&(u.x=W(r))),{x:o.left+a.scrollLeft-u.x,y:o.top+a.scrollTop-u.y,width:o.width,height:o.height}}function X(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function K(e){return"html"===G(e)?e:e.assignedSlot||e.parentNode||e.host||q(e)}function J(e,t){void 0===t&&(t=[]);var n=function e(t){return["html","body","#document"].indexOf(G(t))>=0?t.ownerDocument.body:U(t)&&V(t)?t:e(K(t))}(e),r="body"===G(n),o=I(n),i=r?[o].concat(o.visualViewport||[],V(n)?n:[]):n,a=t.concat(i);return r?a:a.concat(J(K(i)))}function Q(e){return["table","td","th"].indexOf(G(e))>=0}function Z(e){if(!U(e)||"fixed"===H(e).position)return null;var t=e.offsetParent;if(t){var n=q(t);if("body"===G(t)&&"static"===H(t).position&&"static"!==H(n).position)return n}return t}function $(e){for(var t=I(e),n=Z(e);n&&Q(n)&&"static"===H(n).position;)n=Z(n);return n&&"body"===G(n)&&"static"===H(n).position?t:n||function(e){for(var t=K(e);U(t)&&["html","body"].indexOf(G(t))<0;){var n=H(t);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return t;t=t.parentNode}return null}(e)||t}var ee="top",te="bottom",ne="right",re="left",oe="auto",ie=[ee,te,ne,re],ae="start",ue="end",se="clippingParents",ce="viewport",le="popper",fe="reference",pe=ie.reduce((function(e,t){return e.concat([t+"-"+ae,t+"-"+ue])}),[]),de=[].concat(ie,[oe]).reduce((function(e,t){return e.concat([t,t+"-"+ae,t+"-"+ue])}),[]),he=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ve(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var o=t.get(r);o&&e(o)}})),r.push(o)}(e)})),r}function me(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var ge={placement:"bottom",modifiers:[],strategy:"absolute"};function ye(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function Oe(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Me(o):null,a=o?Ee(o):null,u=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case ee:t={x:u,y:n.y-r.height};break;case te:t={x:u,y:n.y+n.height};break;case ne:t={x:n.x+n.width,y:s};break;case re:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?Pe(i):null;if(null!=c){var l="y"===c?"height":"width";switch(a){case ae:t[c]=Math.floor(t[c])-Math.floor(n[l]/2-r[l]/2);break;case ue:t[c]=Math.floor(t[c])+Math.ceil(n[l]/2-r[l]/2)}}return t}var Se={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _e(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.offsets,a=e.position,u=e.gpuAcceleration,s=e.adaptive,c=function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}(i),l=c.x,f=c.y,p=i.hasOwnProperty("x"),d=i.hasOwnProperty("y"),h=re,v=ee,m=window;if(s){var g=$(n);g===I(n)&&(g=q(n)),o===ee&&(v=te,f-=g.clientHeight-r.height,f*=u?1:-1),o===re&&(h=ne,l-=g.clientWidth-r.width,l*=u?1:-1)}var y,b=Object.assign({position:a},s&&Se);return u?Object.assign(Object.assign({},b),{},((y={})[v]=d?"0":"",y[h]=p?"0":"",y.transform=(m.devicePixelRatio||1)<2?"translate("+l+"px, "+f+"px)":"translate3d("+l+"px, "+f+"px, 0)",y)):Object.assign(Object.assign({},b),{},((t={})[v]=d?f+"px":"",t[h]=p?l+"px":"",t.transform="",t))}var xe={left:"right",right:"left",bottom:"top",top:"bottom"};function Ce(e){return e.replace(/left|right|bottom|top/g,(function(e){return xe[e]}))}var je={start:"end",end:"start"};function ke(e){return e.replace(/start|end/g,(function(e){return je[e]}))}function Ne(e,t){var n=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Re(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ae(e,t){return t===ce?Re(function(e){var t=I(e),n=q(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,u=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,u=r.offsetTop)),{width:o,height:i,x:a+W(e),y:u}}(e)):U(t)?function(e){var t=F(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Re(function(e){var t=q(e),n=B(e),r=e.ownerDocument.body,o=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+W(e),u=-n.scrollTop;return"rtl"===H(r||t).direction&&(a+=Math.max(t.clientWidth,r?r.clientWidth:0)-o),{width:o,height:i,x:a,y:u}}(q(e)))}function Te(e,t,n){var r="clippingParents"===t?function(e){var t=J(K(e)),n=["absolute","fixed"].indexOf(H(e).position)>=0&&U(e)?$(e):e;return z(n)?t.filter((function(e){return z(e)&&Ne(e,n)&&"body"!==G(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=Ae(e,n);return t.top=Math.max(r.top,t.top),t.right=Math.min(r.right,t.right),t.bottom=Math.min(r.bottom,t.bottom),t.left=Math.max(r.left,t.left),t}),Ae(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Le(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function De(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Fe(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?se:i,u=n.rootBoundary,s=void 0===u?ce:u,c=n.elementContext,l=void 0===c?le:c,f=n.altBoundary,p=void 0!==f&&f,d=n.padding,h=void 0===d?0:d,v=Le("number"!==typeof h?h:De(h,ie)),m=l===le?fe:le,g=e.elements.reference,y=e.rects.popper,b=e.elements[p?m:l],w=Te(z(b)?b:b.contextElement||q(e.elements.popper),a,s),M=F(g),E=Oe({reference:M,element:y,strategy:"absolute",placement:o}),P=Re(Object.assign(Object.assign({},y),E)),O=l===le?P:M,S={top:w.top-O.top+v.top,bottom:O.bottom-w.bottom+v.bottom,left:w.left-O.left+v.left,right:O.right-w.right+v.right},_=e.modifiersData.offset;if(l===le&&_){var x=_[o];Object.keys(S).forEach((function(e){var t=[ne,te].indexOf(e)>=0?1:-1,n=[ee,te].indexOf(e)>=0?"y":"x";S[e]+=x[n]*t}))}return S}function Ie(e,t,n){return Math.max(e,Math.min(t,n))}function Be(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ze(e){return[ee,ne,te,re].some((function(t){return e[t]>=0}))}var Ue=be({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,u=void 0===a||a,s=I(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,we)})),u&&s.addEventListener("resize",n.update,we),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,we)})),u&&s.removeEventListener("resize",n.update,we)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Oe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,u={placement:Me(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),_e(Object.assign(Object.assign({},u),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),_e(Object.assign(Object.assign({},u),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];U(o)&&G(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});U(r)&&G(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=de.reduce((function(e,n){return e[n]=function(e,t,n){var r=Me(e),o=[re,ee].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign(Object.assign({},t),{},{placement:e})):n,a=i[0],u=i[1];return a=a||0,u=(u||0)*o,[re,ne].indexOf(r)>=0?{x:u,y:a}:{x:a,y:u}}(n,t.rects,i),e}),{}),u=a[t.placement],s=u.x,c=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,u=void 0===a||a,s=n.fallbackPlacements,c=n.padding,l=n.boundary,f=n.rootBoundary,p=n.altBoundary,d=n.flipVariations,h=void 0===d||d,v=n.allowedAutoPlacements,m=t.options.placement,g=Me(m),y=s||(g===m||!h?[Ce(m)]:function(e){if(Me(e)===oe)return[];var t=Ce(e);return[ke(e),t,ke(t)]}(m)),b=[m].concat(y).reduce((function(e,n){return e.concat(Me(n)===oe?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,u=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?de:s,l=Ee(r),f=l?u?pe:pe.filter((function(e){return Ee(e)===l})):ie,p=f.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=f);var d=p.reduce((function(t,n){return t[n]=Fe(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Me(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),w=t.rects.reference,M=t.rects.popper,E=new Map,P=!0,O=b[0],S=0;S=0,k=j?"width":"height",N=Fe(t,{placement:_,boundary:l,rootBoundary:f,altBoundary:p,padding:c}),R=j?C?ne:re:C?te:ee;w[k]>M[k]&&(R=Ce(R));var A=Ce(R),T=[];if(i&&T.push(N[x]<=0),u&&T.push(N[R]<=0,N[A]<=0),T.every((function(e){return e}))){O=_,P=!1;break}E.set(_,T)}if(P)for(var L=function(e){var t=b.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},D=h?3:1;D>0;D--){if("break"===L(D))break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,u=void 0!==a&&a,s=n.boundary,c=n.rootBoundary,l=n.altBoundary,f=n.padding,p=n.tether,d=void 0===p||p,h=n.tetherOffset,v=void 0===h?0:h,m=Fe(t,{boundary:s,rootBoundary:c,padding:f,altBoundary:l}),g=Me(t.placement),y=Ee(t.placement),b=!y,w=Pe(g),M="x"===w?"y":"x",E=t.modifiersData.popperOffsets,P=t.rects.reference,O=t.rects.popper,S="function"===typeof v?v(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):v,_={x:0,y:0};if(E){if(i){var x="y"===w?ee:re,C="y"===w?te:ne,j="y"===w?"height":"width",k=E[w],N=E[w]+m[x],R=E[w]-m[C],A=d?-O[j]/2:0,T=y===ae?P[j]:O[j],L=y===ae?-O[j]:-P[j],D=t.elements.arrow,F=d&&D?X(D):{width:0,height:0},I=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=I[x],z=I[C],U=Ie(0,P[j],F[j]),G=b?P[j]/2-A-U-B-S:T-U-B-S,q=b?-P[j]/2+A+U+z+S:L+U+z+S,W=t.elements.arrow&&$(t.elements.arrow),H=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,V=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,Y=E[w]+G-V-H,K=E[w]+q-V,J=Ie(d?Math.min(N,Y):N,k,d?Math.max(R,K):R);E[w]=J,_[w]=J-k}if(u){var Q="x"===w?ee:re,Z="x"===w?te:ne,oe=E[M],ie=Ie(oe+m[Q],oe,oe-m[Z]);E[M]=ie,_[M]=ie-oe}t.modifiersData[r]=_}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=n.elements.arrow,i=n.modifiersData.popperOffsets,a=Me(n.placement),u=Pe(a),s=[re,ne].indexOf(a)>=0?"height":"width";if(o&&i){var c=n.modifiersData[r+"#persistent"].padding,l=X(o),f="y"===u?ee:re,p="y"===u?te:ne,d=n.rects.reference[s]+n.rects.reference[u]-i[u]-n.rects.popper[s],h=i[u]-n.rects.reference[u],v=$(o),m=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,g=d/2-h/2,y=c[f],b=m-l[s]-c[p],w=m/2-l[s]/2+g,M=Ie(y,w,b),E=u;n.modifiersData[r]=((t={})[E]=M,t.centerOffset=M-w,t)}},effect:function(e){var t=e.state,n=e.options,r=e.name,o=n.element,i=void 0===o?"[data-popper-arrow]":o,a=n.padding,u=void 0===a?0:a;null!=i&&("string"!==typeof i||(i=t.elements.popper.querySelector(i)))&&Ne(t.elements.popper,i)&&(t.elements.arrow=i,t.modifiersData[r+"#persistent"]={padding:Le("number"!==typeof u?u:De(u,ie))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Fe(t,{elementContext:"reference"}),u=Fe(t,{altBoundary:!0}),s=Be(a,r),c=Be(u,o,i),l=ze(s),f=ze(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),Ge="tippy-box",qe="tippy-content",We="tippy-backdrop",He="tippy-arrow",Ve="tippy-svg-arrow",Ye={passive:!0,capture:!0};function Xe(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Ke(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Je(e,t){return"function"===typeof e?e.apply(void 0,t):e}function Qe(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function Ze(e){return[].concat(e)}function $e(e,t){-1===e.indexOf(t)&&e.push(t)}function et(e){return e.split("-")[0]}function tt(e){return[].slice.call(e)}function nt(){return document.createElement("div")}function rt(e){return["Element","Fragment"].some((function(t){return Ke(e,t)}))}function ot(e){return Ke(e,"MouseEvent")}function it(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function at(e){return rt(e)?[e]:function(e){return Ke(e,"NodeList")}(e)?tt(e):Array.isArray(e)?e:tt(document.querySelectorAll(e))}function ut(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function st(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function ct(e){var t=Ze(e)[0];return t&&t.ownerDocument||document}function lt(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}var ft={isTouch:!1},pt=0;function dt(){ft.isTouch||(ft.isTouch=!0,window.performance&&document.addEventListener("mousemove",ht))}function ht(){var e=performance.now();e-pt<20&&(ft.isTouch=!1,document.removeEventListener("mousemove",ht)),pt=e}function vt(){var e=document.activeElement;if(it(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var mt="undefined"!==typeof window&&"undefined"!==typeof document?navigator.userAgent:"",gt=/MSIE |Trident\//.test(mt);var yt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},bt=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},yt,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),wt=Object.keys(bt);function Mt(e){var t=(e.plugins||[]).reduce((function(t,n){var r=n.name,o=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:o),t}),{});return Object.assign({},e,{},t)}function Et(e,t){var n=Object.assign({},t,{content:Je(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Mt(Object.assign({},bt,{plugins:t}))):wt).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(o){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},bt.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var Pt=function(){return"innerHTML"};function Ot(e,t){e[Pt()]=t}function St(e){var t=nt();return!0===e?t.className=He:(t.className=Ve,rt(e)?t.appendChild(e):Ot(t,e)),t}function _t(e,t){rt(t.content)?(Ot(e,""),e.appendChild(t.content)):"function"!==typeof t.content&&(t.allowHTML?Ot(e,t.content):e.textContent=t.content)}function xt(e){var t=e.firstElementChild,n=tt(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(qe)})),arrow:n.find((function(e){return e.classList.contains(He)||e.classList.contains(Ve)})),backdrop:n.find((function(e){return e.classList.contains(We)}))}}function Ct(e){var t=nt(),n=nt();n.className=Ge,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=nt();function o(n,r){var o=xt(t),i=o.box,a=o.content,u=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"===typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"===typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||_t(a,e.props),r.arrow?u?n.arrow!==r.arrow&&(i.removeChild(u),i.appendChild(St(r.arrow))):i.appendChild(St(r.arrow)):u&&i.removeChild(u)}return r.className=qe,r.setAttribute("data-state","hidden"),_t(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}Ct.$$tippy=!0;var jt=1,kt=[],Nt=[];function Rt(e,t){var n,r,o,i,a,u,s,c,l,f=Et(e,Object.assign({},bt,{},Mt((n=t,Object.keys(n).reduce((function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e}),{}))))),p=!1,d=!1,h=!1,v=!1,m=[],g=Qe(X,f.interactiveDebounce),y=ct(f.triggerTarget||e),b=jt++,w=(l=f.plugins).filter((function(e,t){return l.indexOf(e)===t})),M={id:b,reference:e,popper:nt(),popperInstance:null,props:f,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:w,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){0;if(M.state.isDestroyed)return;T("onBeforeUpdate",[M,t]),V();var n=M.props,r=Et(e,Object.assign({},M.props,{},t,{ignoreAttributes:!0}));M.props=r,H(),n.interactiveDebounce!==r.interactiveDebounce&&(F(),g=Qe(X,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?Ze(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");D(),A(),O&&O(n,r);M.popperInstance&&(Z(),ee().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));T("onAfterUpdate",[M,t])},setContent:function(e){M.setProps({content:e})},show:function(){0;var e=M.state.isVisible,t=M.state.isDestroyed,n=!M.state.isEnabled,r=ft.isTouch&&!M.props.touch,o=Xe(M.props.duration,0,bt.duration);if(e||t||n||r)return;if(k().hasAttribute("disabled"))return;if(T("onShow",[M],!1),!1===M.props.onShow(M))return;M.state.isVisible=!0,j()&&(P.style.visibility="visible");A(),U(),M.state.isMounted||(P.style.transition="none");if(j()){var i=N(),a=i.box,u=i.content;ut([a,u],0)}s=function(){if(M.state.isVisible&&!v){if(v=!0,P.offsetHeight,P.style.transition=M.props.moveTransition,j()&&M.props.animation){var e=N(),t=e.box,n=e.content;ut([t,n],o),st([t,n],"visible")}L(),D(),$e(Nt,M),M.state.isMounted=!0,T("onMount",[M]),M.props.animation&&j()&&function(e,t){q(e,t)}(o,(function(){M.state.isShown=!0,T("onShown",[M])}))}},function(){var e,t=M.props.appendTo,n=k();e=M.props.interactive&&t===bt.appendTo||"parent"===t?n.parentNode:Je(t,[n]);e.contains(P)||e.appendChild(P);Z(),!1}()},hide:function(){0;var e=!M.state.isVisible,t=M.state.isDestroyed,n=!M.state.isEnabled,r=Xe(M.props.duration,1,bt.duration);if(e||t||n)return;if(T("onHide",[M],!1),!1===M.props.onHide(M))return;M.state.isVisible=!1,M.state.isShown=!1,v=!1,p=!1,j()&&(P.style.visibility="hidden");if(F(),G(),A(),j()){var o=N(),i=o.box,a=o.content;M.props.animation&&(ut([i,a],r),st([i,a],"hidden"))}L(),D(),M.props.animation?j()&&function(e,t){q(e,(function(){!M.state.isVisible&&P.parentNode&&P.parentNode.contains(P)&&t()}))}(r,M.unmount):M.unmount()},hideWithInteractivity:function(e){0;y.addEventListener("mousemove",g),$e(kt,g),g(e)},enable:function(){M.state.isEnabled=!0},disable:function(){M.hide(),M.state.isEnabled=!1},unmount:function(){0;M.state.isVisible&&M.hide();if(!M.state.isMounted)return;$(),ee().forEach((function(e){e._tippy.unmount()})),P.parentNode&&P.parentNode.removeChild(P);Nt=Nt.filter((function(e){return e!==M})),M.state.isMounted=!1,T("onHidden",[M])},destroy:function(){0;if(M.state.isDestroyed)return;M.clearDelayTimeouts(),M.unmount(),V(),delete e._tippy,M.state.isDestroyed=!0,T("onDestroy",[M])}};if(!f.render)return M;var E=f.render(M),P=E.popper,O=E.onUpdate;P.setAttribute("data-tippy-root",""),P.id="tippy-"+M.id,M.popper=P,e._tippy=M,P._tippy=M;var S=w.map((function(e){return e.fn(M)})),_=e.hasAttribute("aria-expanded");return H(),D(),A(),T("onCreate",[M]),f.showOnCreate&&te(),P.addEventListener("mouseenter",(function(){M.props.interactive&&M.state.isVisible&&M.clearDelayTimeouts()})),P.addEventListener("mouseleave",(function(e){M.props.interactive&&M.props.trigger.indexOf("mouseenter")>=0&&(y.addEventListener("mousemove",g),g(e))})),M;function x(){var e=M.props.touch;return Array.isArray(e)?e:[e,0]}function C(){return"hold"===x()[0]}function j(){var e;return!!(null==(e=M.props.render)?void 0:e.$$tippy)}function k(){return c||e}function N(){return xt(P)}function R(e){return M.state.isMounted&&!M.state.isVisible||ft.isTouch||a&&"focus"===a.type?0:Xe(M.props.delay,e?0:1,bt.delay)}function A(){P.style.pointerEvents=M.props.interactive&&M.state.isVisible?"":"none",P.style.zIndex=""+M.props.zIndex}function T(e,t,n){var r;(void 0===n&&(n=!0),S.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(r=M.props)[e].apply(r,t)}function L(){var t=M.props.aria;if(t.content){var n="aria-"+t.content,r=P.id;Ze(M.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(M.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function D(){!_&&M.props.aria.expanded&&Ze(M.props.triggerTarget||e).forEach((function(e){M.props.interactive?e.setAttribute("aria-expanded",M.state.isVisible&&e===k()?"true":"false"):e.removeAttribute("aria-expanded")}))}function F(){y.removeEventListener("mousemove",g),kt=kt.filter((function(e){return e!==g}))}function I(e){if((!ft.isTouch||!h&&"mousedown"!==e.type)&&(!M.props.interactive||!P.contains(e.target))){if(k().contains(e.target)){if(ft.isTouch)return;if(M.state.isVisible&&M.props.trigger.indexOf("click")>=0)return}else T("onClickOutside",[M,e]);!0===M.props.hideOnClick&&(M.clearDelayTimeouts(),M.hide(),d=!0,setTimeout((function(){d=!1})),M.state.isMounted||G())}}function B(){h=!0}function z(){h=!1}function U(){y.addEventListener("mousedown",I,!0),y.addEventListener("touchend",I,Ye),y.addEventListener("touchstart",z,Ye),y.addEventListener("touchmove",B,Ye)}function G(){y.removeEventListener("mousedown",I,!0),y.removeEventListener("touchend",I,Ye),y.removeEventListener("touchstart",z,Ye),y.removeEventListener("touchmove",B,Ye)}function q(e,t){var n=N().box;function r(e){e.target===n&&(lt(n,"remove",r),t())}if(0===e)return t();lt(n,"remove",u),lt(n,"add",r),u=r}function W(t,n,r){void 0===r&&(r=!1),Ze(M.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function H(){var e;C()&&(W("touchstart",Y,{passive:!0}),W("touchend",K,{passive:!0})),(e=M.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(W(e,Y),e){case"mouseenter":W("mouseleave",K);break;case"focus":W(gt?"focusout":"blur",J);break;case"focusin":W("focusout",J)}}))}function V(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),m=[]}function Y(e){var t,n=!1;if(M.state.isEnabled&&!Q(e)&&!d){var r="focus"===(null==(t=a)?void 0:t.type);a=e,c=e.currentTarget,D(),!M.state.isVisible&&ot(e)&&kt.forEach((function(t){return t(e)})),"click"===e.type&&(M.props.trigger.indexOf("mouseenter")<0||p)&&!1!==M.props.hideOnClick&&M.state.isVisible?n=!0:te(e),"click"===e.type&&(p=!n),n&&!r&&ne(e)}}function X(e){var t=e.target,n=k().contains(t)||P.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=et(o.placement),u=o.modifiersData.offset;if(!u)return!0;var s="bottom"===a?u.top.y:0,c="top"===a?u.bottom.y:0,l="right"===a?u.left.x:0,f="left"===a?u.right.x:0,p=t.top-r+s>i,d=r-t.bottom-c>i,h=t.left-n+l>i,v=n-t.right-f>i;return p||d||h||v}))}(ee().concat(P).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:f}:null})).filter(Boolean),e)&&(F(),ne(e))}function K(e){Q(e)||M.props.trigger.indexOf("click")>=0&&p||(M.props.interactive?M.hideWithInteractivity(e):ne(e))}function J(e){M.props.trigger.indexOf("focusin")<0&&e.target!==k()||M.props.interactive&&e.relatedTarget&&P.contains(e.relatedTarget)||ne(e)}function Q(e){return!!ft.isTouch&&C()!==e.type.indexOf("touch")>=0}function Z(){$();var t=M.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,u=j()?xt(P).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||k()}:e,l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(j()){var n=N().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];j()&&u&&l.push({name:"arrow",options:{element:u,padding:3}}),l.push.apply(l,(null==n?void 0:n.modifiers)||[]),M.popperInstance=Ue(c,P,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:l}))}function $(){M.popperInstance&&(M.popperInstance.destroy(),M.popperInstance=null)}function ee(){return tt(P.querySelectorAll("[data-tippy-root]"))}function te(e){M.clearDelayTimeouts(),e&&T("onTrigger",[M,e]),U();var t=R(!0),n=x(),o=n[0],i=n[1];ft.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout((function(){M.show()}),t):M.show()}function ne(e){if(M.clearDelayTimeouts(),T("onUntrigger",[M,e]),M.state.isVisible){if(!(M.props.trigger.indexOf("mouseenter")>=0&&M.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=R(!1);t?o=setTimeout((function(){M.state.isVisible&&M.hide()}),t):i=requestAnimationFrame((function(){M.hide()}))}}else G()}}function At(e,t){void 0===t&&(t={});var n=bt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",dt,Ye),window.addEventListener("blur",vt);var r=Object.assign({},t,{plugins:n}),o=at(e).reduce((function(e,t){var n=t&&Rt(t,r);return n&&e.push(n),e}),[]);return rt(e)?o[0]:o}At.defaultProps=bt,At.setDefaultProps=function(e){Object.keys(e).forEach((function(t){bt[t]=e[t]}))},At.currentInput=ft;var Tt={clientX:0,clientY:0},Lt=[];function Dt(e){var t=e.clientX,n=e.clientY;Tt={clientX:t,clientY:n}}var Ft={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=ct(e.props.triggerTarget||t),r=!1,o=!1,i=!0,a=e.props;function u(){return"initial"===e.props.followCursor&&e.state.isVisible}function s(){n.addEventListener("mousemove",f)}function c(){n.removeEventListener("mousemove",f)}function l(){r=!0,e.setProps({getReferenceClientRect:null}),r=!1}function f(n){var r=!n.target||t.contains(n.target),o=e.props.followCursor,i=n.clientX,a=n.clientY,u=t.getBoundingClientRect(),s=i-u.left,c=a-u.top;!r&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=i,r=a;"initial"===o&&(n=e.left+s,r=e.top+c);var u="horizontal"===o?e.top:r,l="vertical"===o?e.right:n,f="horizontal"===o?e.bottom:r,p="vertical"===o?e.left:n;return{width:l-p,height:f-u,top:u,right:l,bottom:f,left:p}}})}function p(){e.props.followCursor&&(Lt.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",Dt)}(n))}function d(){0===(Lt=Lt.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",Dt)}(n)}return{onCreate:p,onDestroy:d,onBeforeUpdate:function(){a=e.props},onAfterUpdate:function(t,n){var i=n.followCursor;r||void 0!==i&&a.followCursor!==i&&(d(),i?(p(),!e.state.isMounted||o||u()||s()):(c(),l()))},onMount:function(){e.props.followCursor&&!o&&(i&&(f(Tt),i=!1),u()||s())},onTrigger:function(e,t){ot(t)&&(Tt={clientX:t.clientX,clientY:t.clientY}),o="focus"===t.type},onHidden:function(){e.props.followCursor&&(l(),c(),i=!0)}}}};var It={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function r(t){return!0===e.props.sticky||e.props.sticky===t}var o=null,i=null;function a(){var u=r("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,s=r("popper")?n.getBoundingClientRect():null;(u&&Bt(o,u)||s&&Bt(i,s))&&e.popperInstance&&e.popperInstance.update(),o=u,i=s,e.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){e.props.sticky&&a()}}}};function Bt(e,t){return!e||!t||(e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left)}At.setDefaultProps({render:Ct});var zt=At,Ut=n("i8i4");function Gt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var qt="undefined"!==typeof window&&"undefined"!==typeof document;function Wt(e,t){e&&("function"===typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Ht(){return qt&&document.createElement("div")}function Vt(e,t){var n,r;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter((function(e){return e.name.indexOf("tippy")>=0})),(null==(r=t.popperOptions)?void 0:r.modifiers)||[])})})}var Yt=qt?r.useLayoutEffect:r.useEffect;function Xt(e){var t=Object(r.useRef)();return t.current||(t.current="function"===typeof e?e():e),t.current}function Kt(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var Jt={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||Kt(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&Kt(t,"remove",e.props.className)},onAfterUpdate:r}}};function Qt(e){return function(t){var n=t.children,i=t.content,a=t.visible,u=t.singleton,s=t.render,c=t.reference,l=t.disabled,f=void 0!==l&&l,p=t.ignoreAttributes,d=void 0===p||p,h=(t.__source,t.__self,Gt(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),v=void 0!==a,m=void 0!==u,g=Object(r.useState)(!1),y=g[0],b=g[1],w=Object(r.useState)({}),M=w[0],E=w[1],P=Object(r.useState)(),O=P[0],S=P[1],_=Xt((function(){return{container:Ht(),renders:1}})),x=Object.assign({ignoreAttributes:d},h,{content:_.container});v&&(x.trigger="manual",x.hideOnClick=!1),m&&(f=!0);var C=x,j=x.plugins||[];s&&(C=Object.assign({},x,{plugins:m?[].concat(j,[{fn:function(){return{onTrigger:function(e,t){var n=u.data.children.find((function(e){return e.instance.reference===t.currentTarget})).content;S(n)}}}}]):j,render:function(){return{popper:_.container}}}));var k=[c].concat(n?[n.type]:[]);return Yt((function(){var t=c;c&&c.hasOwnProperty("current")&&(t=c.current);var n=e(t||_.ref||Ht(),Object.assign({},C,{plugins:[Jt].concat(x.plugins||[])}));return _.instance=n,f&&n.disable(),a&&n.show(),m&&u.hook({instance:n,content:i,props:C}),b(!0),function(){n.destroy(),null==u||u.cleanup(n)}}),k),Yt((function(){if(1!==_.renders){var e=_.instance;e.setProps(Vt(e.props,C)),f?e.disable():e.enable(),v&&(a?e.show():e.hide()),m&&u.hook({instance:e,content:i,props:C})}else _.renders++})),Yt((function(){var e;if(s){var t=_.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[],[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;M.placement===n.placement&&M.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&M.escaped===(null==r?void 0:r.hasPopperEscaped)||E({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[M.placement,M.referenceHidden,M.escaped].concat(k)),o.a.createElement(o.a.Fragment,null,n?Object(r.cloneElement)(n,{ref:function(e){_.ref=e,Wt(n.ref,e)}}):null,y&&Object(Ut.createPortal)(s?s(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(M),O):i,_.container))}}var Zt=function(e,t){return Object(r.forwardRef)((function(n,i){var a=n.children,u=Gt(n,["children"]);return o.a.createElement(e,Object.assign({},t,u),a?Object(r.cloneElement)(a,{ref:function(e){Wt(i,e),Wt(a.ref,e)}}):null)}))},$t=Zt(Qt(zt)),en=(n("uxza"),o.a.createElement);function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var nn=function(e){var t=function(e){for(var t=1;t0&&"Minimum value: 150.")),un("div",{className:"form-group col-6"},un("label",{htmlFor:"export-height"},"Height"),un("input",{type:"number",id:"export-height",name:"height",className:a()({"form-control":!0,"is-invalid":!s.height.isValid}),pattern:"\\d+",min:"100",value:s.height.value,onChange:f}),un("div",{className:"invalid-feedback"},0===s.height.value.length&&"Must be a number.",s.height.value.length>0&&"Minimum value: 100.")))),un("button",{type:"submit",className:"btn btn-primary btn-block mt-3",disabled:!s.width.isValid||!s.height.isValid},"Download")))},ln=Object(g.b)((function(e){return{width:y.c.selectWidth(e),height:y.c.selectHeight(e)}}),{updateSettings:y.a.updateSettings,updateExporting:y.a.updateExporting})(cn),fn=(n("hbvv"),o.a.createElement);function pn(e){var t=e.transparent,n=e.inner,r=e.inline,o=e.mini,i=["c-loading-spinner"];return t&&i.push("-transparent"),n&&i.push("-inner"),r&&i.push("-inline"),o&&i.push("-mini"),fn("div",{className:i.join(" ")},fn("svg",null,fn("circle",{cx:o?9:30,cy:o?9:30,r:o?5:20,fill:"none",strokeWidth:o?2:3,strokeMiterlimit:"10"})))}pn.defaultProps={transparent:!1,inner:!1,inline:!1,mini:!1};var dn=pn,hn=n("9rZX"),vn=n.n(hn),mn=(n("P6+J"),o.a.createElement),gn=function(e){var t=e.name,n=e.className,r=e.style,o=a()(Object(R.a)({},n,n));return mn("svg",{className:"c-icon ".concat(o),style:r},mn("use",{xlinkHref:"#icon-".concat(t)}))};gn.defaultProps={name:"",className:"",style:{}};var yn=gn,bn=(n("oG+/"),o.a.createElement);vn.a.setAppElement("#root");var wn=function(e){var t=e.open,n=e.onClose,r=e.title,o=e.children,i=e.className;return bn(vn.a,{isOpen:t,onRequestClose:n,contentLabel:r,className:["c-modal"].concat(Object(E.a)(i?[i]:[])).join(" ")},bn("button",{type:"button",className:"btn btn-outline-primary close-button",onClick:n},bn(yn,{name:"close"})),bn("div",{className:"content"},o))};wn.defaultProps={className:null};var Mn=wn,En=(n("mp/Q"),o.a.createElement),Pn=function(e){var t=e.open,n=e.onClose;return En(Mn,{title:"Map downloaded",open:t,onClose:n,className:"c-tool-download-success-modal"},En("h1",{className:"mb-3"},"Map downloaded!"),En("p",null,"Check the"," ",En("a",{href:"https://mongabay.github.io/visual-style-guide/",target:"_blank",rel:"noopener noreferrer"},"Mongabay Style Guidelines")," ","in case you need to add any further detail on your map."),En("button",{type:"button",className:"btn btn-primary btn-block mt-4",onClick:n},"Close"))},On=(n("1+uw"),o.a.createElement),Sn=function(e){var t=e.loading,n=e.countryOptions,o=e.country,i=e.commodityOptions,a=e.commodity,u=e.unitOptions,s=e.unit,c=e.yearOptions,l=e.year,f=e.regionsLoading,p=e.regionOptions,d=e.region,h=e.exportersLoading,v=e.exporterOptions,m=e.exporter,g=e.updateCountry,y=e.updateCommodity,b=e.updateUnit,w=e.updateYear,M=e.updateRegion,E=e.updateExporter,P=e.exporting,O=Object(r.useState)(!1),S=O[0],_=O[1],x=Object(r.useState)(!1),C=x[0],j=x[1];return Object(r.useEffect)((function(){S!==P&&(P||j(!0),_(P))}),[P,S,j,_]),On("aside",{className:"c-tool-sidebar"},On(Pn,{open:C,onClose:function(){return j(!1)}}),On("div",{className:"content"},On("h1",null,"Supply Chain"),On("div",{className:"scrollable-container pt-2"},On("div",{className:"form-group"},On("label",{htmlFor:"setting-country"},"Source country"),On("div",{className:"input-group"},On(N,{id:"setting-country",options:n,value:null!==o&&void 0!==o?o:"",onChange:function(e){var t=e.value;return g(t)},disabled:0===n.length}))),On("div",{className:"form-group"},On("label",{htmlFor:"setting-commodity"},"Commodity"),On("div",{className:"input-group"},On(N,{id:"setting-commodity",options:i,value:null!==a&&void 0!==a?a:"",onChange:function(e){var t=e.value;return y(t)},disabled:0===i.length}))),On("div",{className:"form-group"},On("label",{htmlFor:"setting-unit"},"Change unit"),On("div",{className:"input-group"},On(N,{id:"setting-unit",options:u,value:null!==s&&void 0!==s?s:"",onChange:function(e){var t=e.value;return b(t)},disabled:0===u.length}))),On("div",{className:"form-group"},On("label",{htmlFor:"setting-year"},"Year"),On("div",{className:"input-group"},On(N,{id:"setting-year",options:c,value:null!==l&&void 0!==l?l:"",onChange:function(e){var t=e.value;return w(t)},disabled:0===c.length}))),On("div",{className:"form-group"},On("label",{htmlFor:"setting-region"},"Region (optional) ",f&&On(dn,{inline:!0,mini:!0})),On("div",{className:"input-group"},On(N,{id:"setting-region","aria-describedby":"setting-region-note",options:p,value:d,onChange:function(e){var t=e.value;return M(t)},disabled:0===p.length})),On("div",{id:"setting-region-note",className:"note"},"This ","setting's"," options are not filtered by change unit nor year.")),On("div",{className:"form-group"},On("label",{htmlFor:"setting-exporter"},"Exporter (optional) ",h&&On(dn,{inline:!0,mini:!0})),On("div",{className:"input-group"},On(N,{id:"setting-exporter","aria-describedby":"setting-exporter-note",options:v,value:m,onChange:function(e){var t=e.value;return E(t)},disabled:0===v.length})),On("div",{id:"setting-exporter-note",className:"note"},"This ","setting's"," options are not filtered by change unit, year nor region.")))),On("div",{className:"d-flex align-items-center mt-4"},On(nn,{sticky:"popper",plugins:[It],content:On(ln,null)},On("button",{type:"button",className:"btn btn-primary",disabled:t},"Export")),t&&On("div",{className:"loading-text ml-3"},On(dn,{inline:!0,mini:!0})," Loading...")))};Sn.defaultProps={country:null,commodity:null,unit:null,year:null};var _n=Sn,xn=Object(g.b)((function(e){return{loading:y.h.selectLoading(e),countryOptions:y.h.selectSourceCountryOptions(e),country:y.h.selectCountry(e),commodityOptions:y.h.selectCommodityOptions(e),commodity:y.h.selectCommodity(e),unitOptions:y.h.selectUnitOptions(e),unit:y.h.selectUnit(e),yearOptions:y.h.selectYearOptions(e),year:y.h.selectYear(e),regionsLoading:y.h.selectRegionsLoading(e),regionOptions:y.h.selectRegionOptions(e),region:y.h.selectRegion(e),exportersLoading:y.h.selectExportersLoading(e),exporterOptions:y.h.selectExporterOptions(e),exporter:y.h.selectExporter(e),exporting:y.c.selectExporting(e)}}),{updateCountry:y.f.updateCountry,updateCommodity:y.f.updateCommodity,updateUnit:y.f.updateUnit,updateYear:y.f.updateYear,updateRegion:y.f.updateRegion,updateExporter:y.f.updateExporter})(_n),Cn=n("ODXe");function jn(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["groupName","itemName","componentIdentifier"]));return o.default.createElement(i.default,r({groupName:t,itemName:n},a))};u.defaultProps={componentIdentifier:"Annotations",groupName:"annotations",itemName:"annotation"},t.default=u},lwAK:function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n("q1tI"));t.AmpStateContext=o.createContext({})},mPvQ:function(e,t,n){var r=n("5fIB"),o=n("rlHP"),i=n("kG2m");e.exports=function(e){return r(e)||o(e)||i()}},"mp/Q":function(e,t,n){},n3Y4:function(e,t,n){"use strict";function r(){}n.r(t),n.d(t,"geoAiry",(function(){return at})),n.d(t,"geoAiryRaw",(function(){return it})),n.d(t,"geoAitoff",(function(){return st})),n.d(t,"geoAitoffRaw",(function(){return ut})),n.d(t,"geoArmadillo",(function(){return lt})),n.d(t,"geoArmadilloRaw",(function(){return ct})),n.d(t,"geoAugust",(function(){return pt})),n.d(t,"geoAugustRaw",(function(){return ft})),n.d(t,"geoBaker",(function(){return mt})),n.d(t,"geoBakerRaw",(function(){return vt})),n.d(t,"geoBerghaus",(function(){return Mt})),n.d(t,"geoBerghausRaw",(function(){return wt})),n.d(t,"geoBoggs",(function(){return jt})),n.d(t,"geoBoggsRaw",(function(){return Ct})),n.d(t,"geoBonne",(function(){return Tt})),n.d(t,"geoBonneRaw",(function(){return At})),n.d(t,"geoBottomley",(function(){return Zt})),n.d(t,"geoBottomleyRaw",(function(){return Lt})),n.d(t,"geoBromley",(function(){return en})),n.d(t,"geoBromleyRaw",(function(){return $t})),n.d(t,"geoChamberlin",(function(){return wn})),n.d(t,"geoChamberlinRaw",(function(){return gn})),n.d(t,"geoChamberlinAfrica",(function(){return bn})),n.d(t,"geoCollignon",(function(){return En})),n.d(t,"geoCollignonRaw",(function(){return Mn})),n.d(t,"geoCraig",(function(){return On})),n.d(t,"geoCraigRaw",(function(){return Pn})),n.d(t,"geoCraster",(function(){return xn})),n.d(t,"geoCrasterRaw",(function(){return _n})),n.d(t,"geoCylindricalEqualArea",(function(){return jn})),n.d(t,"geoCylindricalEqualAreaRaw",(function(){return Cn})),n.d(t,"geoCylindricalStereographic",(function(){return Nn})),n.d(t,"geoCylindricalStereographicRaw",(function(){return kn})),n.d(t,"geoEckert1",(function(){return An})),n.d(t,"geoEckert1Raw",(function(){return Rn})),n.d(t,"geoEckert2",(function(){return Ln})),n.d(t,"geoEckert2Raw",(function(){return Tn})),n.d(t,"geoEckert3",(function(){return Fn})),n.d(t,"geoEckert3Raw",(function(){return Dn})),n.d(t,"geoEckert4",(function(){return Bn})),n.d(t,"geoEckert4Raw",(function(){return In})),n.d(t,"geoEckert5",(function(){return Un})),n.d(t,"geoEckert5Raw",(function(){return zn})),n.d(t,"geoEckert6",(function(){return qn})),n.d(t,"geoEckert6Raw",(function(){return Gn})),n.d(t,"geoEisenlohr",(function(){return Vn})),n.d(t,"geoEisenlohrRaw",(function(){return Hn})),n.d(t,"geoFahey",(function(){return Kn})),n.d(t,"geoFaheyRaw",(function(){return Xn})),n.d(t,"geoFoucaut",(function(){return Qn})),n.d(t,"geoFoucautRaw",(function(){return Jn})),n.d(t,"geoGilbert",(function(){return rr})),n.d(t,"geoGingery",(function(){return ur})),n.d(t,"geoGingeryRaw",(function(){return or})),n.d(t,"geoGinzburg4",(function(){return lr})),n.d(t,"geoGinzburg4Raw",(function(){return cr})),n.d(t,"geoGinzburg5",(function(){return pr})),n.d(t,"geoGinzburg5Raw",(function(){return fr})),n.d(t,"geoGinzburg6",(function(){return hr})),n.d(t,"geoGinzburg6Raw",(function(){return dr})),n.d(t,"geoGinzburg8",(function(){return mr})),n.d(t,"geoGinzburg8Raw",(function(){return vr})),n.d(t,"geoGinzburg9",(function(){return yr})),n.d(t,"geoGinzburg9Raw",(function(){return gr})),n.d(t,"geoGringorten",(function(){return Mr})),n.d(t,"geoGringortenRaw",(function(){return wr})),n.d(t,"geoGuyou",(function(){return Sr})),n.d(t,"geoGuyouRaw",(function(){return Or})),n.d(t,"geoHammer",(function(){return jr})),n.d(t,"geoHammerRaw",(function(){return xr})),n.d(t,"geoHammerRetroazimuthal",(function(){return Rr})),n.d(t,"geoHammerRetroazimuthalRaw",(function(){return kr})),n.d(t,"geoHealpix",(function(){return Dr})),n.d(t,"geoHealpixRaw",(function(){return Lr})),n.d(t,"geoHill",(function(){return Ir})),n.d(t,"geoHillRaw",(function(){return Fr})),n.d(t,"geoHomolosine",(function(){return Wr})),n.d(t,"geoHomolosineRaw",(function(){return qr})),n.d(t,"geoInterrupt",(function(){return Yr})),n.d(t,"geoInterruptedBoggs",(function(){return Kr})),n.d(t,"geoInterruptedHomolosine",(function(){return Qr})),n.d(t,"geoInterruptedMollweide",(function(){return $r})),n.d(t,"geoInterruptedMollweideHemispheres",(function(){return to})),n.d(t,"geoInterruptedSinuMollweide",(function(){return ro})),n.d(t,"geoInterruptedSinusoidal",(function(){return io})),n.d(t,"geoKavrayskiy7",(function(){return uo})),n.d(t,"geoKavrayskiy7Raw",(function(){return ao})),n.d(t,"geoLagrange",(function(){return co})),n.d(t,"geoLagrangeRaw",(function(){return so})),n.d(t,"geoLarrivee",(function(){return po})),n.d(t,"geoLarriveeRaw",(function(){return fo})),n.d(t,"geoLaskowski",(function(){return vo})),n.d(t,"geoLaskowskiRaw",(function(){return ho})),n.d(t,"geoLittrow",(function(){return go})),n.d(t,"geoLittrowRaw",(function(){return mo})),n.d(t,"geoLoximuthal",(function(){return bo})),n.d(t,"geoLoximuthalRaw",(function(){return yo})),n.d(t,"geoMiller",(function(){return Mo})),n.d(t,"geoMillerRaw",(function(){return wo})),n.d(t,"geoModifiedStereographic",(function(){return Ao})),n.d(t,"geoModifiedStereographicRaw",(function(){return Eo})),n.d(t,"geoModifiedStereographicAlaska",(function(){return Co})),n.d(t,"geoModifiedStereographicGs48",(function(){return jo})),n.d(t,"geoModifiedStereographicGs50",(function(){return ko})),n.d(t,"geoModifiedStereographicMiller",(function(){return No})),n.d(t,"geoModifiedStereographicLee",(function(){return Ro})),n.d(t,"geoMollweide",(function(){return St})),n.d(t,"geoMollweideRaw",(function(){return Ot})),n.d(t,"geoMtFlatPolarParabolic",(function(){return Fo})),n.d(t,"geoMtFlatPolarParabolicRaw",(function(){return Do})),n.d(t,"geoMtFlatPolarQuartic",(function(){return Bo})),n.d(t,"geoMtFlatPolarQuarticRaw",(function(){return Io})),n.d(t,"geoMtFlatPolarSinusoidal",(function(){return Uo})),n.d(t,"geoMtFlatPolarSinusoidalRaw",(function(){return zo})),n.d(t,"geoNaturalEarth",(function(){return qo})),n.d(t,"geoNaturalEarthRaw",(function(){return Go})),n.d(t,"geoNellHammer",(function(){return Ho})),n.d(t,"geoNellHammerRaw",(function(){return Wo})),n.d(t,"geoPatterson",(function(){return ti})),n.d(t,"geoPattersonRaw",(function(){return ei})),n.d(t,"geoPolyconic",(function(){return si})),n.d(t,"geoPolyconicRaw",(function(){return ni})),n.d(t,"geoPolyhedral",(function(){return Wi})),n.d(t,"geoPolyhedralButterfly",(function(){return Qi})),n.d(t,"geoPolyhedralCollignon",(function(){return ea})),n.d(t,"geoPolyhedralWaterman",(function(){return ta})),n.d(t,"geoProject",(function(){return aa})),n.d(t,"geoGringortenQuincuncial",(function(){return ma})),n.d(t,"geoPeirceQuincuncial",(function(){return ga})),n.d(t,"geoPierceQuincuncial",(function(){return ga})),n.d(t,"geoQuantize",(function(){return ya})),n.d(t,"geoQuincuncial",(function(){return va})),n.d(t,"geoRectangularPolyconic",(function(){return wa})),n.d(t,"geoRectangularPolyconicRaw",(function(){return ba})),n.d(t,"geoRobinson",(function(){return Pa})),n.d(t,"geoRobinsonRaw",(function(){return Ea})),n.d(t,"geoSatellite",(function(){return Sa})),n.d(t,"geoSatelliteRaw",(function(){return Oa})),n.d(t,"geoSinuMollweide",(function(){return Gr})),n.d(t,"geoSinuMollweideRaw",(function(){return Ur})),n.d(t,"geoSinusoidal",(function(){return Rt})),n.d(t,"geoSinusoidalRaw",(function(){return Nt})),n.d(t,"geoStitch",(function(){return Ua})),n.d(t,"geoTimes",(function(){return qa})),n.d(t,"geoTimesRaw",(function(){return Ga})),n.d(t,"geoTwoPointAzimuthal",(function(){return Ya})),n.d(t,"geoTwoPointAzimuthalRaw",(function(){return Ha})),n.d(t,"geoTwoPointAzimuthalUsa",(function(){return Va})),n.d(t,"geoTwoPointEquidistant",(function(){return Ja})),n.d(t,"geoTwoPointEquidistantRaw",(function(){return Xa})),n.d(t,"geoTwoPointEquidistantUsa",(function(){return Ka})),n.d(t,"geoVanDerGrinten",(function(){return Za})),n.d(t,"geoVanDerGrintenRaw",(function(){return Qa})),n.d(t,"geoVanDerGrinten2",(function(){return eu})),n.d(t,"geoVanDerGrinten2Raw",(function(){return $a})),n.d(t,"geoVanDerGrinten3",(function(){return nu})),n.d(t,"geoVanDerGrinten3Raw",(function(){return tu})),n.d(t,"geoVanDerGrinten4",(function(){return ou})),n.d(t,"geoVanDerGrinten4Raw",(function(){return ru})),n.d(t,"geoWagner4",(function(){return su})),n.d(t,"geoWagner4Raw",(function(){return uu})),n.d(t,"geoWagner6",(function(){return lu})),n.d(t,"geoWagner6Raw",(function(){return cu})),n.d(t,"geoWagner7",(function(){return pu})),n.d(t,"geoWagner7Raw",(function(){return fu})),n.d(t,"geoWiechel",(function(){return hu})),n.d(t,"geoWiechelRaw",(function(){return du})),n.d(t,"geoWinkel3",(function(){return mu})),n.d(t,"geoWinkel3Raw",(function(){return vu}));var o=function(){var e,t=[];return{point:function(t,n,r){e.push([t,n,r])},lineStart:function(){t.push(e=[])},lineEnd:r,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},i=1e-6,a=Math.PI,u=a/2,s=a/4,c=2*a,l=180/a,f=a/180,p=Math.abs,d=Math.atan,h=Math.atan2,v=Math.cos,m=(Math.ceil,Math.exp,Math.floor,Math.log,Math.pow,Math.sin),g=Math.sign||function(e){return e>0?1:e<0?-1:0},y=Math.sqrt;Math.tan;function b(e){return e>1?0:e<-1?a:Math.acos(e)}function w(e){return e>1?u:e<-1?-u:Math.asin(e)}function M(e){return(e=m(e/2))*e}var E=function(e,t){return p(e[0]-t[0])=0;--a)o.point((f=l[a])[0],f[1]);else r(d.x,d.p.x,-1,o);d=d.p}l=(d=d.o).z,h=!h}while(!d.v);o.lineEnd()}}};function S(e){if(t=e.length){for(var t,n,r=0,o=e[0];++r=0?1:-1,B=L*T,z=B>a,U=O*k;if(F.add(h(U*L*m(B),S*R+U*v(B))),f+=z?T+L*c:T,z^E>=n^C>=n){var G=A(N(M),N(x));D(G);var q=A(l,G);D(q);var W=(z^T>=0?-1:1)*w(q[2]);(r>W||r===W&&(G[0]||G[1]))&&(p+=z^T>=0?1:-1)}}return(f<-i||f0){for(M||(l.polygonStart(),M=!0),l.lineStart(),e=0;e1&&2&o&&i.push(i.pop().concat(i.shift())),p.push(i.filter(U))}return E}};function U(e){return e.length>1}function G(e,t){return((e=e.x)[0]<0?e[1]-u-i:u-e[1])-((t=t.x)[0]<0?t[1]-u-i:u-t[1])}var q=z((function(){return!0}),(function(e){var t,n=NaN,r=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(s,c){var l=s>0?a:-a,f=p(s-n);p(f-a)0?u:-u),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(l,r),e.point(s,r),t=0):o!==l&&f>=a&&(p(n-o)i?d((m(t)*(a=v(r))*m(n)-m(r)*(o=v(t))*m(e))/(o*a*u)):(t+r)/2}(n,r,s,c),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(l,r),t=0),e.point(n=s,r=c),o=l},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var o;if(null==e)o=n*u,r.point(-a,o),r.point(0,o),r.point(a,o),r.point(a,0),r.point(a,-o),r.point(0,-o),r.point(-a,-o),r.point(-a,0),r.point(-a,o);else if(p(e[0]-t[0])>i){var s=e[0]a?e+Math.round(-e/c)*c:e,t]}function Y(e,t,n){return(e%=c)?t||n?H(K(e),J(t,n)):K(e):t||n?J(t,n):V}function X(e){return function(t,n){return[(t+=e)>a?t-c:t<-a?t+c:t,n]}}function K(e){var t=X(e);return t.invert=X(-e),t}function J(e,t){var n=v(e),r=m(e),o=v(t),i=m(t);function a(e,t){var a=v(t),u=v(e)*a,s=m(e)*a,c=m(t),l=c*n+u*r;return[h(s*o-l*i,u*n-c*r),w(l*o+s*i)]}return a.invert=function(e,t){var a=v(t),u=v(e)*a,s=m(e)*a,c=m(t),l=c*o-s*i;return[h(s*o+c*i,u*n+l*r),w(l*n-u*r)]},a}V.invert=V;var Q=function(e){function t(t){return(t=e(t[0]*f,t[1]*f))[0]*=l,t[1]*=l,t}return e=Y(e[0]*f,e[1]*f,e.length>2?e[2]*f:0),t.invert=function(t){return(t=e.invert(t[0]*f,t[1]*f))[0]*=l,t[1]*=l,t},t};function Z(e,t,n,r,o,i){if(n){var a=v(t),u=m(t),s=r*n;null==o?(o=t+r*c,i=t-s/2):(o=$(a,o),i=$(a,i),(r>0?oi)&&(o+=r*c));for(var l,f=o;r>0?f>i:f0,o=p(t)>i;function u(e,n){return v(e)*v(n)>t}function s(e,n,r){var o=[1,0,0],u=A(N(e),N(n)),s=R(u,u),c=u[0],l=s-c*c;if(!l)return!r&&e;var f=t*s/l,d=-t*c/l,h=A(o,u),v=L(o,f);T(v,L(u,d));var m=h,g=R(v,m),b=R(m,m),w=g*g-b*(R(v,v)-1);if(!(w<0)){var M=y(w),E=L(m,(-g-M)/b);if(T(E,v),E=k(E),!r)return E;var P,O=e[0],S=n[0],_=e[1],x=n[1];S0^E[1]<(p(E[0]-O)a^(O<=E[0]&&E[0]<=S)){var D=L(m,(-g+M)/b);return T(D,v),[E,k(D)]}}}function c(t,n){var o=r?e:a-e,i=0;return t<-o?i|=1:t>o&&(i|=2),n<-o?i|=4:n>o&&(i|=8),i}return z(u,(function(e){var t,n,i,l,f;return{lineStart:function(){l=i=!1,f=1},point:function(p,d){var h,v=[p,d],m=u(p,d),g=r?m?0:c(p,d):m?c(p+(p<0?a:-a),d):0;if(!t&&(l=i=m)&&e.lineStart(),m!==i&&(!(h=s(t,v))||E(t,h)||E(v,h))&&(v[2]=1),m!==i)f=0,m?(e.lineStart(),h=s(v,t),e.point(h[0],h[1])):(h=s(t,v),e.point(h[0],h[1],2),e.lineEnd()),t=h;else if(o&&t&&r^m){var y;g&n||!(y=s(v,t,!0))||(f=0,r?(e.lineStart(),e.point(y[0][0],y[0][1]),e.point(y[1][0],y[1][1]),e.lineEnd()):(e.point(y[1][0],y[1][1]),e.lineEnd(),e.lineStart(),e.point(y[0][0],y[0][1],3)))}!m||t&&E(t,v)||e.point(v[0],v[1]),t=v,i=m,n=g},lineEnd:function(){i&&e.lineEnd(),t=null},clean:function(){return f|(l&&i)<<1}}}),(function(t,r,o,i){Z(i,e,n,o,t,r)}),r?[0,-e]:[-a,e-a])},te=function(e,t,n,r,o,i){var a,u=e[0],s=e[1],c=0,l=1,f=t[0]-u,p=t[1]-s;if(a=n-u,f||!(a>0)){if(a/=f,f<0){if(a0){if(a>l)return;a>c&&(c=a)}if(a=o-u,f||!(a<0)){if(a/=f,f<0){if(a>l)return;a>c&&(c=a)}else if(f>0){if(a0)){if(a/=p,p<0){if(a0){if(a>l)return;a>c&&(c=a)}if(a=i-s,p||!(a<0)){if(a/=p,p<0){if(a>l)return;a>c&&(c=a)}else if(p>0){if(a0&&(e[0]=u+c*f,e[1]=s+c*p),l<1&&(t[0]=u+l*f,t[1]=s+l*p),!0}}}}},ne=1e9,re=-ne;function oe(e,t,n,r){function a(o,i){return e<=o&&o<=n&&t<=i&&i<=r}function u(o,i,a,u){var c=0,f=0;if(null==o||(c=s(o,a))!==(f=s(i,a))||l(o,i)<0^a>0)do{u.point(0===c||3===c?e:n,c>1?r:t)}while((c=(c+a+4)%4)!==f);else u.point(i[0],i[1])}function s(r,o){return p(r[0]-e)0?0:3:p(r[0]-n)0?2:1:p(r[1]-t)0?1:0:o>0?3:2}function c(e,t){return l(e.x,t.x)}function l(e,t){var n=s(e,1),r=s(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(i){var s,l,f,p,d,h,v,m,g,y,b,w=i,M=o(),E={point:P,lineStart:function(){E.point=S,l&&l.push(f=[]);y=!0,g=!1,v=m=NaN},lineEnd:function(){s&&(S(p,d),h&&g&&M.rejoin(),s.push(M.result()));E.point=P,g&&w.lineEnd()},polygonStart:function(){w=M,s=[],l=[],b=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,o=l.length;nr&&(p-i)*(r-a)>(d-a)*(e-i)&&++t:d<=r&&(p-i)*(r-a)<(d-a)*(e-i)&&--t;return t}(),n=b&&t,o=(s=Object(B.a)(s)).length;(n||o)&&(i.polygonStart(),n&&(i.lineStart(),u(null,null,1,i),i.lineEnd()),o&&O(s,c,t,u,i),i.polygonEnd());w=i,s=l=f=null}};function P(e,t){a(e,t)&&w.point(e,t)}function S(o,i){var u=a(o,i);if(l&&f.push([o,i]),y)p=o,d=i,h=u,y=!1,u&&(w.lineStart(),w.point(o,i));else if(u&&g)w.point(o,i);else{var s=[v=Math.max(re,Math.min(ne,v)),m=Math.max(re,Math.min(ne,m))],c=[o=Math.max(re,Math.min(ne,o)),i=Math.max(re,Math.min(ne,i))];te(s,c,e,t,n,r)?(g||(w.lineStart(),w.point(s[0],s[1])),w.point(c[0],c[1]),u||w.lineEnd(),b=!1):u&&(w.lineStart(),w.point(o,i),b=!1)}v=o,m=i,g=u}return E}}var ie=function(e){return e};function ae(e){return function(t){var n=new ue;for(var r in e)n[r]=e[r];return n.stream=t,n}}function ue(){}function se(e,t){e&&le.hasOwnProperty(e.type)&&le[e.type](e,t)}ue.prototype={constructor:ue,point:function(e,t){this.stream.point(e,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 ce={Feature:function(e,t){se(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++rme&&(me=e);tge&&(ge=t)},lineStart:r,lineEnd:r,polygonStart:r,polygonEnd:r,result:function(){var e=[[he,ve],[me,ge]];return me=ge=-(ve=he=1/0),e}};function be(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),de(n,e.stream(ye)),t(ye.result()),null!=r&&e.clipExtent(r),e}function we(e,t,n){return be(e,(function(n){var r=t[1][0]-t[0][0],o=t[1][1]-t[0][1],i=Math.min(r/(n[1][0]-n[0][0]),o/(n[1][1]-n[0][1])),a=+t[0][0]+(r-i*(n[1][0]+n[0][0]))/2,u=+t[0][1]+(o-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([a,u])}),n)}var Me=16,Ee=v(30*f),Pe=function(e,t){return+t?function(e,t){function n(r,o,a,u,s,c,l,f,d,v,m,g,b,M){var E=l-r,P=f-o,O=E*E+P*P;if(O>4*t&&b--){var S=u+v,_=s+m,x=c+g,C=y(S*S+_*_+x*x),j=w(x/=C),k=p(p(x)-1)t||p((E*T+P*L)/O-.5)>.3||u*v+s*m+c*g2?e[2]%360*f:0,R()):[b*l,w*l,M*l]},k.angle=function(e){return arguments.length?(E=e%360*f,R()):E*l},k.reflectX=function(e){return arguments.length?(P=e?-1:1,R()):P<0},k.reflectY=function(e){return arguments.length?(O=e?-1:1,R()):O<0},k.precision=function(e){return arguments.length?(a=Pe(u,j=e*e),A()):y(j)},k.fitExtent=function(e,t){return we(k,e,t)},k.fitSize=function(e,t){return function(e,t,n){return we(e,[[0,0],t],n)}(k,e,t)},k.fitWidth=function(e,t){return function(e,t,n){return be(e,(function(n){var r=+t,o=r/(n[1][0]-n[0][0]),i=(r-o*(n[1][0]+n[0][0]))/2,a=-o*n[0][1];e.scale(150*o).translate([i,a])}),n)}(k,e,t)},k.fitHeight=function(e,t){return function(e,t,n){return be(e,(function(n){var r=+t,o=r/(n[1][1]-n[0][1]),i=-o*n[0][0],a=(r-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([i,a])}),n)}(k,e,t)},function(){return t=e.apply(this,arguments),k.invert=t.invert&&N,R()}}var je=Math.abs,ke=Math.atan,Ne=Math.atan2,Re=(Math.ceil,Math.cos),Ae=Math.exp,Te=Math.floor,Le=Math.log,De=Math.max,Fe=Math.min,Ie=Math.pow,Be=Math.round,ze=Math.sign||function(e){return e>0?1:e<0?-1:0},Ue=Math.sin,Ge=Math.tan,qe=1e-6,We=1e-12,He=Math.PI,Ve=He/2,Ye=He/4,Xe=Math.SQRT1_2,Ke=nt(2),Je=nt(He),Qe=2*He,Ze=180/He,$e=He/180;function et(e){return e>1?Ve:e<-1?-Ve:Math.asin(e)}function tt(e){return e>1?0:e<-1?He:Math.acos(e)}function nt(e){return e>0?Math.sqrt(e):0}function rt(e){return(Ae(e)-Ae(-e))/2}function ot(e){return(Ae(e)+Ae(-e))/2}function it(e){var t=Ge(e/2),n=2*Le(Re(e/2))/(t*t);function r(e,t){var r=Re(e),o=Re(t),i=Ue(t),a=o*r,u=-((1-a?Le((1+a)/2)/(1-a):-.5)+n/(1+a));return[u*o*Ue(e),u*i]}return r.invert=function(t,r){var o,i=nt(t*t+r*r),a=-e/2,u=50;if(!i)return[0,0];do{var s=a/2,c=Re(s),l=Ue(s),f=Ge(s),p=Le(1/c);a-=o=(2/f*p-n*f-i)/(-p/(l*l)+1-n/(2*c*c))}while(je(o)>qe&&--u>0);var d=Ue(a);return[Ne(t*d,i*Re(a)),et(r*d/i)]},r}var at=function(){var e=Ve,t=Ce(it),n=t(e);return n.radius=function(n){return arguments.length?t(e=n*$e):e*Ze},n.scale(179.976).clipAngle(147)};function ut(e,t){var n=Re(t),r=function(e){return e?e/Math.sin(e):1}(tt(n*Re(e/=2)));return[2*n*Ue(e)*r,Ue(t)*r]}ut.invert=function(e,t){if(!(e*e+4*t*t>He*He+qe)){var n=e,r=t,o=25;do{var i,a=Ue(n),u=Ue(n/2),s=Re(n/2),c=Ue(r),l=Re(r),f=Ue(2*r),p=c*c,d=l*l,h=u*u,v=1-d*s*s,m=v?tt(l*s)*nt(i=1/v):i=0,g=2*m*l*u-e,y=m*c-t,b=i*(d*h+m*l*s*p),w=i*(.5*a*f-2*m*c*u),M=.25*i*(f*u-m*c*d*a),E=i*(p*s+m*h*l),P=w*M-E*b;if(!P)break;var O=(y*w-g*E)/P,S=(g*M-y*b)/P;n-=O,r-=S}while((je(O)>qe||je(S)>qe)&&--o>0);return[n,r]}};var st=function(){return xe(ut).scale(152.63)};function ct(e){var t=Ue(e),n=Re(e),r=e>=0?1:-1,o=Ge(r*e),i=(1+t-n)/2;function a(e,a){var u=Re(a),s=Re(e/=2);return[(1+u)*Ue(e),(r*a>-Ne(s,o)-.001?0:10*-r)+i+Ue(a)*n-(1+u)*t*s]}return a.invert=function(e,a){var u=0,s=0,c=50;do{var l=Re(u),f=Ue(u),p=Re(s),d=Ue(s),h=1+p,v=h*f-e,m=i+d*n-h*t*l-a,g=h*l/2,y=-f*d,b=t*h*f/2,w=n*p+t*l*d,M=y*b-w*g,E=(m*y-v*w)/M/2,P=(v*b-m*g)/M;u-=E,s-=P}while((je(E)>qe||je(P)>qe)&&--c>0);return r*s>-Ne(Re(u),o)-.001?[2*u,s]:null},a}var lt=function(){var e=20*$e,t=e>=0?1:-1,n=Ge(t*e),r=Ce(ct),o=r(e),i=o.stream;return o.parallel=function(o){return arguments.length?(n=Ge((t=(e=o*$e)>=0?1:-1)*e),r(e)):e*Ze},o.stream=function(r){var a=o.rotate(),u=i(r),s=(o.rotate([0,0]),i(r));return o.rotate(a),u.sphere=function(){s.polygonStart(),s.lineStart();for(var r=-180*t;t*r<180;r+=90*t)s.point(r,90*t);for(;t*(r-=e)>=-180;)s.point(r,t*-Ne(Re(r*$e/2),n)*Ze);s.lineEnd(),s.polygonEnd()},u},o.scale(218.695).center([0,28.0974])};function ft(e,t){var n=Ge(t/2),r=nt(1-n*n),o=1+r*Re(e/=2),i=Ue(e)*r/o,a=n/o,u=i*i,s=a*a;return[4/3*i*(3+u-3*s),4/3*a*(3+3*u-s)]}ft.invert=function(e,t){if(t*=3/8,!(e*=3/8)&&je(t)>1)return null;var n=1+e*e+t*t,r=nt((n-nt(n*n-4*t*t))/2),o=et(r)/3,i=r?function(e){return Le(e+nt(e*e-1))}(je(t/r))/3:function(e){return Le(e+nt(e*e+1))}(je(e))/3,a=Re(o),u=ot(i),s=u*u-a*a;return[2*ze(e)*Ne(rt(i)*a,.25-s),2*ze(t)*Ne(u*Ue(o),.25+s)]};var pt=function(){return xe(ft).scale(66.1603)},dt=nt(8),ht=Le(1+Ke);function vt(e,t){var n=je(t);return nWe&&--i>0);return[e/(Re(o)*(dt-1/Ue(o))),ze(t)*o]};var mt=function(){return xe(vt).scale(112.314)};function gt(e){return function(t,n){var r=v(t),o=v(n),i=e(r*o);return[i*o*m(t),i*m(n)]}}function yt(e){return function(t,n){var r=y(t*t+n*n),o=e(r),i=m(o),a=v(o);return[h(t*i,r*a),w(r&&n*i/r)]}}var bt=gt((function(e){return(e=b(e))&&e/m(e)}));bt.invert=yt((function(e){return e}));function wt(e){var t=2*He/e;function n(e,n){var r=bt(e,n);if(je(e)>Ve){var o=Ne(r[1],r[0]),i=nt(r[0]*r[0]+r[1]*r[1]),a=t*Be((o-Ve)/t)+Ve,u=Ne(Ue(o-=a),2-Re(o));o=a+et(He/i*Ue(u))-u,r[0]=i*Re(o),r[1]=i*Ue(o)}return r}return n.invert=function(e,n){var r=nt(e*e+n*n);if(r>Ve){var o=Ne(n,e),i=t*Be((o-Ve)/t)+Ve,a=o>i?-1:1,u=r*Re(i-o),s=1/Ge(a*tt((u-He)/nt(He*(He-2*u)+r*r)));o=i+2*ke((s+a*nt(s*s-3))/3),e=r*Re(o),n=r*Ue(o)}return bt.invert(e,n)},n}var Mt=function(){var e=5,t=Ce(wt),n=t(e),r=n.stream,o=-Re(.01*$e),i=Ue(.01*$e);return n.lobes=function(n){return arguments.length?t(e=+n):e},n.stream=function(t){var a=n.rotate(),u=r(t),s=(n.rotate([0,0]),r(t));return n.rotate(a),u.sphere=function(){s.polygonStart(),s.lineStart();for(var t=0,n=360/e,r=2*He/e,a=90-180/e,u=Ve;tqe&&--o>0);return t/2}function Pt(e,t,n){function r(r,o){return[e*r*Re(o=Et(n,o)),t*Ue(o)]}return r.invert=function(r,o){return o=et(o/t),[r/(e*Re(o)),et((2*o+Ue(2*o))/n)]},r}var Ot=Pt(Ke/Ve,Ke,He),St=function(){return xe(Ot).scale(169.529)},_t=2.00276,xt=1.11072;function Ct(e,t){var n=Et(He,t);return[_t*e/(1/Re(t)+xt/Re(n)),(t+Ke*Ue(n))/_t]}Ct.invert=function(e,t){var n,r,o=_t*t,i=t<0?-Ye:Ye,a=25;do{r=o-Ke*Ue(i),i-=n=(Ue(2*i)+2*i-He*Ue(r))/(2*Re(2*i)+2+He*Re(r)*Ke*Re(i))}while(je(n)>qe&&--a>0);return r=o-Ke*Ue(i),[e*(1/Re(r)+xt/Re(i))/_t,r]};var jt=function(){return xe(Ct).scale(160.857)},kt=function(e){var t=0,n=Ce(e),r=n(t);return r.parallel=function(e){return arguments.length?n(t=e*$e):t*Ze},r};function Nt(e,t){return[e*Re(t),t]}Nt.invert=function(e,t){return[e/Re(t),t]};var Rt=function(){return xe(Nt).scale(152.63)};function At(e){if(!e)return Nt;var t=1/Ge(e);function n(n,r){var o=t+e-r,i=o?n*Re(r)/o:o;return[o*Ue(i),t-o*Re(i)]}return n.invert=function(n,r){var o=nt(n*n+(r=t-r)*r),i=t+e-o;return[o/Re(i)*Ne(n,r),i]},n}var Tt=function(){return kt(At).scale(123.082).center([0,26.1441]).parallel(45)};function Lt(e){function t(t,n){var r=Ve-n,o=r?t*e*Ue(r)/r:r;return[r*Ue(o)/e,Ve-r*Re(o)]}return t.invert=function(t,n){var r=t*e,o=Ve-n,i=nt(r*r+o*o),a=Ne(r,o);return[(i?i/Ue(i):1)*a/e,Ve-i]},t}var Dt,Ft,It,Bt,zt,Ut,Gt,qt,Wt,Ht,Vt,Yt,Xt,Kt,Jt,Qt,Zt=function(){var e=.5,t=Ce(Lt),n=t(e);return n.fraction=function(n){return arguments.length?t(e=+n):e},n.scale(158.837)},$t=Pt(1,4/He,He),en=function(){return xe($t).scale(152.63)},tn={sphere:r,point:nn,lineStart:on,lineEnd:sn,polygonStart:function(){tn.lineStart=cn,tn.lineEnd=ln},polygonEnd:function(){tn.lineStart=on,tn.lineEnd=sn}};function nn(e,t){e*=f;var n=v(t*=f);rn(n*v(e),n*m(e),m(t))}function rn(e,t,n){++Dt,It+=(e-It)/Dt,Bt+=(t-Bt)/Dt,zt+=(n-zt)/Dt}function on(){tn.point=an}function an(e,t){e*=f;var n=v(t*=f);Kt=n*v(e),Jt=n*m(e),Qt=m(t),tn.point=un,rn(Kt,Jt,Qt)}function un(e,t){e*=f;var n=v(t*=f),r=n*v(e),o=n*m(e),i=m(t),a=h(y((a=Jt*i-Qt*o)*a+(a=Qt*r-Kt*i)*a+(a=Kt*o-Jt*r)*a),Kt*r+Jt*o+Qt*i);Ft+=a,Ut+=a*(Kt+(Kt=r)),Gt+=a*(Jt+(Jt=o)),qt+=a*(Qt+(Qt=i)),rn(Kt,Jt,Qt)}function sn(){tn.point=nn}function cn(){tn.point=fn}function ln(){pn(Yt,Xt),tn.point=nn}function fn(e,t){Yt=e,Xt=t,e*=f,t*=f,tn.point=pn;var n=v(t);Kt=n*v(e),Jt=n*m(e),Qt=m(t),rn(Kt,Jt,Qt)}function pn(e,t){e*=f;var n=v(t*=f),r=n*v(e),o=n*m(e),i=m(t),a=Jt*i-Qt*o,u=Qt*r-Kt*i,s=Kt*o-Jt*r,c=y(a*a+u*u+s*s),l=w(c),p=c&&-l/c;Wt+=p*a,Ht+=p*u,Vt+=p*s,Ft+=l,Ut+=l*(Kt+(Kt=r)),Gt+=l*(Jt+(Jt=o)),qt+=l*(Qt+(Qt=i)),rn(Kt,Jt,Qt)}var dn=function(e){Dt=Ft=It=Bt=zt=Ut=Gt=qt=Wt=Ht=Vt=0,de(e,tn);var t=Wt,n=Ht,r=Vt,o=t*t+n*n+r*r;return o<1e-12&&(t=Ut,n=Gt,r=qt,Ft1||je(i)>1)a=tt(n*o+t*r*u);else{var s=Ue(e/2),c=Ue(i/2);a=2*et(nt(s*s+t*r*c*c))}return je(a)>qe?[a,Ne(r*Ue(i),t*o-n*r*u)]:[0,0]}function vn(e,t,n){return tt((e*e+t*t-n*n)/(2*e*t))}function mn(e){return e-2*He*Te((e+He)/(2*He))}function gn(e,t,n){for(var r,o=[[e[0],e[1],Ue(e[1]),Re(e[1])],[t[0],t[1],Ue(t[1]),Re(t[1])],[n[0],n[1],Ue(n[1]),Re(n[1])]],i=o[2],a=0;a<3;++a,i=r)r=o[a],i.v=hn(r[1]-i[1],i[3],i[2],r[3],r[2],r[0]-i[0]),i.point=[0,0];var u=vn(o[0].v[0],o[2].v[0],o[1].v[0]),s=vn(o[0].v[0],o[1].v[0],o[2].v[0]),c=He-u;o[2].point[1]=0,o[0].point[0]=-(o[1].point[0]=o[0].v[0]/2);var l=[o[2].point[0]=o[0].point[0]+o[2].v[0]*Re(u),2*(o[0].point[1]=o[1].point[1]=o[2].v[0]*Ue(u))];return function(e,t){var n,r=Ue(t),i=Re(t),a=new Array(3);for(n=0;n<3;++n){var u=o[n];if(a[n]=hn(t-u[1],u[3],u[2],i,r,e-u[0]),!a[n][0])return u.point;a[n][1]=mn(a[n][1]-u.v[1])}var f=l.slice();for(n=0;n<3;++n){var p=2==n?0:n+1,d=vn(o[n].v[0],a[n][0],a[p][0]);a[n][1]<0&&(d=-d),n?1==n?(d=s-d,f[0]-=a[n][0]*Re(d),f[1]-=a[n][0]*Ue(d)):(d=c-d,f[0]+=a[n][0]*Re(d),f[1]+=a[n][0]*Ue(d)):(f[0]+=a[n][0]*Re(d),f[1]-=a[n][0]*Ue(d))}return f[0]/=3,f[1]/=3,f}}function yn(e){return e[0]*=$e,e[1]*=$e,e}function bn(){return wn([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function wn(e,t,n){var r=dn({type:"MultiPoint",coordinates:[e,t,n]}),o=[-r[0],-r[1]],i=Q(o),a=xe(gn(yn(i(e)),yn(i(t)),yn(i(n)))).rotate(o),u=a.center;return delete a.rotate,a.center=function(e){return arguments.length?u(i(e)):i.invert(u())},a.clipAngle(90)}function Mn(e,t){var n=nt(1-Ue(t));return[2/Je*e*n,Je*(1-n)]}Mn.invert=function(e,t){var n=(n=t/Je-1)*n;return[n>0?e*nt(He/n)/2:0,et(1-n)]};var En=function(){return xe(Mn).scale(95.6464).center([0,30])};function Pn(e){var t=Ge(e);function n(e,n){return[e,(e?e/Ue(e):1)*(Ue(n)*Re(e)-t*Re(n))]}return n.invert=t?function(e,n){e&&(n*=Ue(e)/e);var r=Re(e);return[e,2*Ne(nt(r*r+t*t-n*n)-r,t-n)]}:function(e,t){return[e,et(e?t*Ge(e)/e:t)]},n}var On=function(){return kt(Pn).scale(249.828).clipAngle(90)},Sn=nt(3);function _n(e,t){return[Sn*e*(2*Re(2*t/3)-1)/Je,Sn*Je*Ue(t/3)]}_n.invert=function(e,t){var n=3*et(t/(Sn*Je));return[Je*e/(Sn*(2*Re(2*n/3)-1)),n]};var xn=function(){return xe(_n).scale(156.19)};function Cn(e){var t=Re(e);function n(e,n){return[e*t,Ue(n)/t]}return n.invert=function(e,n){return[e/t,et(n*t)]},n}var jn=function(){return kt(Cn).parallel(38.58).scale(195.044)};function kn(e){var t=Re(e);function n(e,n){return[e*t,(1+t)*Ge(n/2)]}return n.invert=function(e,n){return[e/t,2*ke(n/(1+t))]},n}var Nn=function(){return kt(kn).scale(124.75)};function Rn(e,t){var n=nt(8/(3*He));return[n*e*(1-je(t)/He),n*t]}Rn.invert=function(e,t){var n=nt(8/(3*He)),r=t/n;return[e/(n*(1-je(r)/He)),r]};var An=function(){return xe(Rn).scale(165.664)};function Tn(e,t){var n=nt(4-3*Ue(je(t)));return[2/nt(6*He)*e*n,ze(t)*nt(2*He/3)*(2-n)]}Tn.invert=function(e,t){var n=2-je(t)/nt(2*He/3);return[e*nt(6*He)/(2*n),ze(t)*et((4-n*n)/3)]};var Ln=function(){return xe(Tn).scale(165.664)};function Dn(e,t){var n=nt(He*(4+He));return[2/n*e*(1+nt(1-4*t*t/(He*He))),4/n*t]}Dn.invert=function(e,t){var n=nt(He*(4+He))/2;return[e*n/(1+nt(1-t*t*(4+He)/(4*He))),t*n/2]};var Fn=function(){return xe(Dn).scale(180.739)};function In(e,t){var n=(2+Ve)*Ue(t);t/=2;for(var r=0,o=1/0;r<10&&je(o)>qe;r++){var i=Re(t);t-=o=(t+Ue(t)*(i+2)-n)/(2*i*(1+i))}return[2/nt(He*(4+He))*e*(1+Re(t)),2*nt(He/(4+He))*Ue(t)]}In.invert=function(e,t){var n=t*nt((4+He)/He)/2,r=et(n),o=Re(r);return[e/(2/nt(He*(4+He))*(1+o)),et((r+n*(o+2))/(2+Ve))]};var Bn=function(){return xe(In).scale(180.739)};function zn(e,t){return[e*(1+Re(t))/nt(2+He),2*t/nt(2+He)]}zn.invert=function(e,t){var n=nt(2+He),r=t*n/2;return[n*e/(1+Re(r)),r]};var Un=function(){return xe(zn).scale(173.044)};function Gn(e,t){for(var n=(1+Ve)*Ue(t),r=0,o=1/0;r<10&&je(o)>qe;r++)t-=o=(t+Ue(t)-n)/(1+Re(t));return n=nt(2+He),[e*(1+Re(t))/n,2*t/n]}Gn.invert=function(e,t){var n=1+Ve,r=nt(n/2);return[2*e*r/(1+Re(t*=r)),et((t+Ue(t))/n)]};var qn=function(){return xe(Gn).scale(173.044)},Wn=3+2*Ke;function Hn(e,t){var n=Ue(e/=2),r=Re(e),o=nt(Re(t)),i=Re(t/=2),a=Ue(t)/(i+Ke*r*o),u=nt(2/(1+a*a)),s=nt((Ke*i+(r+n)*o)/(Ke*i+(r-n)*o));return[Wn*(u*(s-1/s)-2*Le(s)),Wn*(u*a*(s+1/s)-2*ke(a))]}Hn.invert=function(e,t){if(!(n=ft.invert(e/1.2,1.065*t)))return null;var n,r=n[0],o=n[1],i=20;e/=Wn,t/=Wn;do{var a=r/2,u=o/2,s=Ue(a),c=Re(a),l=Ue(u),f=Re(u),p=Re(o),d=nt(p),h=l/(f+Ke*c*d),v=h*h,m=nt(2/(1+v)),g=(Ke*f+(c+s)*d)/(Ke*f+(c-s)*d),y=nt(g),b=y-1/y,w=y+1/y,M=m*b-2*Le(y)-e,E=m*h*w-2*ke(h)-t,P=l&&Xe*d*s*v/l,O=(Ke*c*f+d)/(2*(f+Ke*c*d)*(f+Ke*c*d)*d),S=-.5*h*m*m*m,_=S*P,x=S*O,C=(C=2*f+Ke*d*(c-s))*C*y,j=(Ke*c*f*d+p)/C,k=-Ke*s*l/(d*C),N=b*_-2*j/y+m*(j+j/g),R=b*x-2*k/y+m*(k+k/g),A=h*w*_-2*P/(1+v)+m*w*P+m*h*(j-j/g),T=h*w*x-2*O/(1+v)+m*w*O+m*h*(k-k/g),L=R*A-T*N;if(!L)break;var D=(E*R-M*T)/L,F=(M*A-E*N)/L;r-=D,o=De(-Ve,Fe(Ve,o-F))}while((je(D)>qe||je(F)>qe)&&--i>0);return je(je(o)-Ve)r){var c=nt(s),l=Ne(u,a),f=n*Be(l/n),p=l-f,d=e*Re(p),h=(e*Ue(p)-p*Ue(d))/(Ve-d),v=ir(p,h),m=(He-e)/ar(v,d,He);a=c;var g,y=50;do{a-=g=(e+ar(v,d,a)*m-c)/(v(a)*m)}while(je(g)>qe&&--y>0);u=p*Ue(a),ar){var a=nt(i),u=Ne(o,t),s=n*Be(u/n),c=u-s;t=a*Re(c),o=a*Ue(c);for(var l=t-Ve,f=Ue(t),p=o/f,d=tqe||je(f)>qe)&&--h>0);return[p,d]},s},cr=sr(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555),lr=function(){return xe(cr).scale(149.995)},fr=sr(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742),pr=function(){return xe(fr).scale(153.93)},dr=sr(5/6*He,-.62636,-.0344,0,1.3493,-.05524,0,.045),hr=function(){return xe(dr).scale(130.945)};function vr(e,t){var n=e*e,r=t*t;return[e*(1-.162388*r)*(.87-952426e-9*n*n),t*(1+r/12)]}vr.invert=function(e,t){var n,r=e,o=t,i=50;do{var a=o*o;o-=n=(o*(1+a/12)-t)/(1+a/4)}while(je(n)>qe&&--i>0);i=50,e/=1-.162388*a;do{var u=(u=r*r)*u;r-=n=(r*(.87-952426e-9*u)-e)/(.87-.00476213*u)}while(je(n)>qe&&--i>0);return[r,o]};var mr=function(){return xe(vr).scale(131.747)},gr=sr(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762),yr=function(){return xe(gr).scale(131.087)},br=function(e){var t=e(Ve,0)[0]-e(-Ve,0)[0];function n(n,r){var o=n>0?-.5:.5,i=e(n+o*He,r);return i[0]-=o*t,i}return e.invert&&(n.invert=function(n,r){var o=n>0?-.5:.5,i=e.invert(n+o*t,r),a=i[0]-o*He;return a<-He?a+=2*He:a>He&&(a-=2*He),i[0]=a,i}),n};function wr(e,t){var n=ze(e),r=ze(t),o=Re(t),i=Re(e)*o,a=Ue(e)*o,u=Ue(r*t);e=je(Ne(a,u)),t=et(i),je(e-Ve)>qe&&(e%=Ve);var s=function(e,t){if(t===Ve)return[0,0];var n,r,o=Ue(t),i=o*o,a=i*i,u=1+a,s=1+3*a,c=1-a,l=et(1/nt(u)),f=c+i*u*l,p=(1-o)/f,d=nt(p),h=p*u,v=nt(h),m=d*c;if(0===e)return[0,-(m+i*v)];var g,y=Re(t),b=1/y,w=2*o*y,M=(-f*y-(-3*i+l*s)*w*(1-o))/(f*f),E=-b*w,P=-b*(i*u*M+p*s*w),O=-2*b*(c*(.5*M/d)-2*i*d*w),S=4*e/He;if(e>.222*He||t.175*He){if(n=(m+i*nt(h*(1+a)-m*m))/(1+a),e>He/4)return[n,n];var _=n,x=.5*n;n=.5*(x+_),r=50;do{var C=nt(h-n*n),j=n*(O+E*C)+P*et(n/v)-S;if(!j)break;j<0?x=n:_=n,n=.5*(x+_)}while(je(_-x)>qe&&--r>0)}else{n=qe,r=25;do{var k=n*n,N=nt(h-k),R=O+E*N,A=n*R+P*et(n/v)-S,T=R+(P-E*k)/N;n-=g=N?A/T:0}while(je(g)>qe&&--r>0)}return[n,-m-i*nt(h-n*n)]}(e>He/4?Ve-e:e,t);return e>He/4&&(u=s[0],s[0]=-s[1],s[1]=-u),s[0]*=n,s[1]*=-r,s}wr.invert=function(e,t){var n=ze(e),r=ze(t),o=-n*e,i=-r*t,a=i/o<1,u=function(e,t){var n=0,r=1,o=.5,i=50;for(;;){var a=o*o,u=nt(o),s=et(1/nt(1+a)),c=1-a+o*(1+a)*s,l=(1-u)/c,f=nt(l),p=l*(1+a),d=f*(1-a),h=nt(p-e*e),v=t+d+o*h;if(je(r-n)0?n=o:r=o,o=.5*(n+r)}if(!i)return null;var m=et(u),g=Re(m),y=1/g,b=2*u*g,w=(-c*g-(-3*o+s*(1+3*a))*b*(1-u))/(c*c);return[He/4*(e*(-2*y*(.5*w/f*(1-a)-2*o*f*b)+-y*b*h)+-y*(o*(1+a)*w+l*(1+3*a)*b)*et(e/nt(p))),m]}(a?i:o,a?o:i),s=u[0],c=u[1],l=Re(c);return a&&(s=-Ve-s),[n*(Ne(Ue(s)*l,-Ue(c))+He),r*et(Re(s)*l)]};var Mr=function(){return xe(br(wr)).scale(239.75)};function Er(e,t){var n,r,o,i,a,u;if(t=1-qe)return n=(1-t)/4,o=1/(r=ot(e)),[(i=((u=Ae(2*(u=e)))-1)/(u+1))+n*((a=r*rt(e))-e)/(r*r),o-n*i*o*(a-e),o+n*i*o*(a+e),2*ke(Ae(e))-Ve+n*(a-e)/r];var s=[1,0,0,0,0,0,0,0,0],c=[nt(t),0,0,0,0,0,0,0,0],l=0;for(r=nt(1-t),a=1;je(c[l]/s[l])>qe&&l<8;)n=s[l++],c[l]=(n-r)/2,s[l]=(n+r)/2,r=nt(n*r),a*=2;o=a*s[l]*e;do{o=(et(i=c[l]*Ue(r=o)/s[l])+o)/2}while(--l);return[Ue(o),i=Re(o),i/Re(o-r),o]}function Pr(e,t){if(!t)return e;if(1===t)return Le(Ge(e/2+Ye));for(var n=1,r=nt(1-t),o=nt(t),i=0;je(o)>qe;i++){if(e%He){var a=ke(r*Ge(e)/n);a<0&&(a+=He),e+=a+~~(e/He)*He}else e+=e;o=(n+r)/2,r=nt(n*r),o=((n=o)-r)/2}return e/(Ie(2,i)*n)}function Or(e,t){var n=(Ke-1)/(Ke+1),r=nt(1-n*n),o=Pr(Ve,r*r),i=Le(Ge(He/4+je(t)/2)),a=Ae(-1*i)/nt(n),u=function(e,t){var n=e*e,r=t+1,o=1-n-t*t;return[.5*((e>=0?Ve:-Ve)-Ne(o,2*e)),-.25*Le(o*o+4*n)+.5*Le(r*r+n)]}(a*Re(-1*e),a*Ue(-1*e)),s=function(e,t,n){var r=je(e),o=rt(je(t));if(r){var i=1/Ue(r),a=1/(Ge(r)*Ge(r)),u=-(a+n*(o*o*i*i)-1+n),s=(-u+nt(u*u-4*((n-1)*a)))/2;return[Pr(ke(1/nt(s)),n)*ze(e),Pr(ke(nt((s/a-1)/n)),1-n)*ze(t)]}return[0,Pr(ke(o),1-n)*ze(t)]}(u[0],u[1],r*r);return[-s[1],(t>=0?1:-1)*(.5*o-s[0])]}Or.invert=function(e,t){var n=(Ke-1)/(Ke+1),r=nt(1-n*n),o=function(e,t,n){var r,o,i;return e?(r=Er(e,n),t?(i=(o=Er(t,1-n))[1]*o[1]+n*r[0]*r[0]*o[0]*o[0],[[r[0]*o[2]/i,r[1]*r[2]*o[0]*o[1]/i],[r[1]*o[1]/i,-r[0]*r[2]*o[0]*o[2]/i],[r[2]*o[1]*o[2]/i,-n*r[0]*r[1]*o[0]/i]]):[[r[0],0],[r[1],0],[r[2],0]]):[[0,(o=Er(t,1-n))[0]/o[1]],[1/o[1],0],[o[2]/o[1],0]]}(.5*Pr(Ve,r*r)-t,-e,r*r),i=function(e,t){var n=t[0]*t[0]+t[1]*t[1];return[(e[0]*t[0]+e[1]*t[1])/n,(e[1]*t[0]-e[0]*t[1])/n]}(o[0],o[1]);return[Ne(i[1],i[0])/-1,2*ke(Ae(-.5*Le(n*i[0]*i[0]+n*i[1]*i[1])))-Ve]};var Sr=function(){return xe(br(Or)).scale(151.496)},_r=gt((function(e){return y(2/(1+e))}));_r.invert=yt((function(e){return 2*w(e/2)}));function xr(e,t){if(arguments.length<2&&(t=e),1===t)return _r;if(t===1/0)return Cr;function n(n,r){var o=_r(n/t,r);return o[0]*=e,o}return n.invert=function(n,r){var o=_r.invert(n/e,r);return o[0]*=t,o},n}function Cr(e,t){return[e*Re(t)/Re(t/=2),2*Ue(t)]}Cr.invert=function(e,t){var n=2*et(t/2);return[e*Re(n/2)/Re(n),n]};var jr=function(){var e=2,t=Ce(xr),n=t(e);return n.coefficient=function(n){return arguments.length?t(e=+n):e},n.scale(169.529)};function kr(e){var t=Ue(e),n=Re(e),r=Nr(e);function o(e,o){var i=r(e,o);e=i[0],o=i[1];var a=Ue(o),u=Re(o),s=Re(e),c=tt(t*a+n*u*s),l=Ue(c),f=je(l)>qe?c/l:1;return[f*n*Ue(e),(je(e)>Ve?f:-f)*(t*u-n*a*s)]}return r.invert=Nr(-e),o.invert=function(e,n){var o=nt(e*e+n*n),i=-Ue(o),a=Re(o),u=o*a,s=-n*i,c=o*t,l=nt(u*u+s*s-c*c),f=Ne(u*c+s*l,s*c-u*l),p=(o>Ve?-1:1)*Ne(e*i,o*Re(f)*a+n*Ue(f)*i);return r.invert(p,f)},o}function Nr(e){var t=Ue(e),n=Re(e);return function(e,r){var o=Re(r),i=Re(e)*o,a=Ue(e)*o,u=Ue(r);return[Ne(a,i*n-u*t),et(u*n+i*t)]}}var Rr=function(){var e=0,t=Ce(kr),n=t(e),r=n.rotate,o=n.stream,i=function(){var e,t,n=W([0,0]),r=W(90),o=W(6),i={point:function(n,r){e.push(n=t(n,r)),n[0]*=l,n[1]*=l}};function a(){var a=n.apply(this,arguments),u=r.apply(this,arguments)*f,s=o.apply(this,arguments)*f;return e=[],t=Y(-a[0]*f,-a[1]*f,0).invert,Z(i,u,s,1),a={type:"Polygon",coordinates:[e]},e=t=null,a}return a.center=function(e){return arguments.length?(n="function"===typeof e?e:W([+e[0],+e[1]]),a):n},a.radius=function(e){return arguments.length?(r="function"===typeof e?e:W(+e),a):r},a.precision=function(e){return arguments.length?(o="function"===typeof e?e:W(+e),a):o},a}();return n.parallel=function(r){if(!arguments.length)return e*Ze;var o=n.rotate();return t(e=r*$e).rotate(o)},n.rotate=function(t){return arguments.length?(r.call(n,[t[0],t[1]-e*Ze]),i.center([-t[0],-t[1]]),n):((t=r.call(n))[1]+=e*Ze,t)},n.stream=function(e){return(e=o(e)).sphere=function(){e.polygonStart();var t,n=i.radius(89.99)().coordinates[0],r=n.length-1,o=-1;for(e.lineStart();++o=0;)e.point((t=n[o])[0],t[1]);e.lineEnd(),e.polygonEnd()},e},n.scale(79.4187).parallel(45).clipAngle(179.999)},Ar=41+48/36+37/3600,Tr=Cn(0);function Lr(e){var t=Ar*$e,n=Mn(He,t)[0]-Mn(-He,t)[0],r=Tr(0,t)[1],o=Mn(0,t)[1],i=Je-o,a=Qe/e,u=4/Qe,s=r+i*i*4/Qe;function c(c,l){var f,p=je(l);if(p>t){var d=Fe(e-1,De(0,Te((c+He)/a)));(f=Mn(c+=He*(e-1)/e-d*a,p))[0]=f[0]*Qe/n-Qe*(e-1)/(2*e)+d*Qe/e,f[1]=r+4*(f[1]-o)*i/Qe,l<0&&(f[1]=-f[1])}else f=Tr(c,l);return f[0]*=u,f[1]/=s,f}return c.invert=function(t,c){t/=u;var l=je(c*=s);if(l>r){var f=Fe(e-1,De(0,Te((t+He)/a)));t=(t+He*(e-1)/e-f*a)*n/Qe;var p=Mn.invert(t,.25*(l-r)*Qe/i+o);return p[0]-=He*(e-1)/e-f*a,c<0&&(p[1]=-p[1]),p}return Tr.invert(t,c)},c}var Dr=function(){var e=4,t=Ce(Lr),n=t(e),r=n.stream;return n.lobes=function(n){return arguments.length?t(e=+n):e},n.stream=function(t){var o=n.rotate(),i=r(t),a=(n.rotate([0,0]),r(t));return n.rotate(o),i.sphere=function(){var t;de((t=180/e,{type:"Polygon",coordinates:[Object(B.b)(-180,180+t/2,t).map((function(e,t){return[e,1&t?90-1e-6:Ar]})).concat(Object(B.b)(180,-180-t/2,-t).map((function(e,t){return[e,1&t?1e-6-90:-Ar]})))]}),a)},i},n.scale(239.75)};function Fr(e){var t,n=1+e,r=et(Ue(1/n)),o=2*nt(He/(t=He+4*r*n)),i=.5*o*(n+nt(e*(2+e))),a=e*e,u=n*n;function s(s,c){var l,f,p=1-Ue(c);if(p&&p<2){var d,h=Ve-c,v=25;do{var m=Ue(h),g=Re(h),y=r+Ne(m,n-g),b=1+u-2*n*g;h-=d=(h-a*r-n*m+b*y-.5*p*t)/(2*n*m*y)}while(je(d)>We&&--v>0);l=o*nt(b),f=s*y/He}else l=o*(e+p),f=s*r/He;return[l*Ue(f),i-l*Re(f)]}return s.invert=function(e,s){var c=e*e+(s-=i)*s,l=(1+u-c/(o*o))/(2*n),f=tt(l),p=Ue(f),d=r+Ne(p,n-l);return[et(e/nt(c))*He/d,et(1-2*(f-a*r-n*p+(1+u-2*n*l)*d)/t)]},s}var Ir=function(){var e=1,t=Ce(Fr),n=t(e);return n.ratio=function(n){return arguments.length?t(e=+n):e},n.scale(167.774).center([0,18.67])},Br=.7109889596207567,zr=.0528035274542;function Ur(e,t){return t>-Br?((e=Ot(e,t))[1]+=zr,e):Nt(e,t)}Ur.invert=function(e,t){return t>-Br?Ot.invert(e,t-zr):Nt.invert(e,t)};var Gr=function(){return xe(Ur).rotate([-20,-55]).scale(164.263).center([0,-5.4036])};function qr(e,t){return je(t)>Br?((e=Ot(e,t))[1]-=t>0?zr:-zr,e):Nt(e,t)}qr.invert=function(e,t){return je(t)>Br?Ot.invert(e,t+(t>0?zr:-zr)):Nt.invert(e,t)};var Wr=function(){return xe(qr).scale(152.63)};function Hr(e,t){return je(e[0]-t[0])=0;--u)n=(t=e[1][u])[0][0],r=t[0][1],o=t[1][1],i=t[2][0],a=t[2][1],s.push(Vr([[i-qe,a-qe],[i-qe,o+qe],[n+qe,o+qe],[n+qe,r-qe]],30));return{type:"Polygon",coordinates:[Object(B.a)(s)]}}(t),r=(t=t.map((function(e){return e.map((function(e){return[[e[0][0]*$e,e[0][1]*$e],[e[1][0]*$e,e[1][1]*$e],[e[2][0]*$e,e[2][1]*$e]]}))}))).map((function(t){return t.map((function(t){var n,r=e(t[0][0],t[0][1])[0],o=e(t[2][0],t[2][1])[0],i=e(t[1][0],t[0][1])[1],a=e(t[1][0],t[1][1])[1];return i>a&&(n=i,i=a,a=n),[[r,i],[o,a]]}))}));function o(n,r){for(var o=r<0?-1:1,i=t[+(r<0)],a=0,u=i.length-1;ai[a][2][0];++a);var s=e(n-i[a][1][0],r);return s[0]+=e(i[a][1][0],o*r>o*i[a][0][1]?i[a][0][1]:r)[0],s}e.invert&&(o.invert=function(n,i){for(var a=r[+(i<0)],u=t[+(i<0)],s=0,c=a.length;s2)return null;var o=(t/=2)*t,i=(n/=2)*n,a=2*n/(1+o+i);return a=Ie((1+a)/(1-a),1/e),[Ne(2*t,1-o-i)/e,et((a-1)/(a+1))]},t}var co=function(){var e=.5,t=Ce(so),n=t(e);return n.spacing=function(n){return arguments.length?t(e=+n):e},n.scale(124.75)},lo=He/Ke;function fo(e,t){return[e*(1+nt(Re(t)))/2,t/(Re(t/2)*Re(e/6))]}fo.invert=function(e,t){var n=je(e),r=je(t),o=qe,i=Ve;rqe||je(m)>qe)&&--o>0);return o&&[n,r]};var vo=function(){return xe(ho).scale(139.98)};function mo(e,t){return[Ue(e)/Re(t),Ge(t)*Re(e)]}mo.invert=function(e,t){var n=e*e,r=t*t,o=r+1,i=e?Xe*nt((o-nt(n*n+2*n*(r-1)+o*o))/n+1):1/nt(o);return[et(e*i),ze(t)*tt(i)]};var go=function(){return xe(mo).scale(144.049).clipAngle(89.999)};function yo(e){var t=Re(e),n=Ge(Ye+e/2);function r(r,o){var i=o-e,a=je(i)=0;)f=(l=e[c])[0]+u*(o=f)-s*p,p=l[1]+u*p+s*o;return[f=u*(o=f)-s*p,p=u*p+s*o]}return n.invert=function(n,r){var o=20,i=n,a=r;do{for(var u,s=t,c=e[s],l=c[0],f=c[1],p=0,d=0;--s>=0;)p=l+i*(u=p)-a*d,d=f+i*d+a*u,l=(c=e[s])[0]+i*(u=l)-a*f,f=c[1]+i*f+a*u;var h,v,m=(p=l+i*(u=p)-a*d)*p+(d=f+i*d+a*u)*d;i-=h=((l=i*(u=l)-a*f-n)*p+(f=i*f+a*u-r)*d)/m,a-=v=(f*p-l*d)/m}while(je(h)+je(v)>qe*qe&&--o>0);if(o){var g=nt(i*i+a*a),y=2*ke(.5*g),b=Ue(y);return[Ne(i*b,g*Re(y)),g?et(a*b/g):0]}},n}var Po=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Oo=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],So=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],_o=[[.9245,0],[0,0],[.01943,0]],xo=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Co(){return Ao(Po,[152,-64]).scale(1500).center([-160.908,62.4864]).clipAngle(25)}function jo(){return Ao(Oo,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function ko(){return Ao(So,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function No(){return Ao(_o,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Ro(){return Ao(xo,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Ao(e,t){var n=xe(Eo(e)).rotate(t).clipAngle(90),r=Q(t),o=n.center;return delete n.rotate,n.center=function(e){return arguments.length?o(r(e)):r.invert(o())},n}var To=nt(6),Lo=nt(7);function Do(e,t){var n=et(7*Ue(t)/(3*To));return[To*e*(2*Re(2*n/3)-1)/Lo,9*Ue(n/3)/Lo]}Do.invert=function(e,t){var n=3*et(t*Lo/9);return[e*Lo/(To*(2*Re(2*n/3)-1)),et(3*Ue(n)*To/7)]};var Fo=function(){return xe(Do).scale(164.859)};function Io(e,t){for(var n,r=(1+Xe)*Ue(t),o=t,i=0;i<25&&(o-=n=(Ue(o/2)+Ue(o)-r)/(.5*Re(o/2)+Re(o)),!(je(n)qe&&--o>0);return[e/(.8707+(i=r*r)*(i*(i*i*i*(.003971-.001529*i)-.013791)-.131979)),r]};var qo=function(){return xe(Go).scale(175.295)};function Wo(e,t){return[e*(1+Re(t))/2,2*(t-Ge(t/2))]}Wo.invert=function(e,t){for(var n=t/2,r=0,o=1/0;r<10&&je(o)>qe;++r){var i=Re(t/2);t-=o=(t-Ge(t/2)-n)/(1-.5/(i*i))}return[2*e/(1+Re(t)),t]};var Ho=function(){return xe(Wo).scale(152.63)},Vo=1.0148,Yo=.23185,Xo=-.14499,Ko=.02406,Jo=Vo,Qo=5*Yo,Zo=7*Xo,$o=9*Ko;function ei(e,t){var n=t*t;return[e,t*(Vo+n*n*(Yo+n*(Xo+Ko*n)))]}ei.invert=function(e,t){t>1.790857183?t=1.790857183:t<-1.790857183&&(t=-1.790857183);var n,r=t;do{var o=r*r;r-=n=(r*(Vo+o*o*(Yo+o*(Xo+Ko*o)))-t)/(Jo+o*o*(Qo+o*(Zo+$o*o)))}while(je(n)>qe);return[e,r]};var ti=function(){return xe(ei).scale(139.319)};function ni(e,t){if(je(t)qe&&--i>0);return a=Ge(o),[(je(t)=0?1:-1,o=r*n,i=v(t=(t*=f)/2+s),a=m(t),u=ui*a,c=ai*i+u*v(o),l=u*r*m(o);ci.add(h(l,c)),ii=e,ai=i,ui=a}var mi,gi,yi,bi,wi,Mi,Ei,Pi,Oi,Si,_i=_(),xi={point:Ci,lineStart:ki,lineEnd:Ni,polygonStart:function(){xi.point=Ri,xi.lineStart=Ai,xi.lineEnd=Ti,_i.reset(),fi.polygonStart()},polygonEnd:function(){fi.polygonEnd(),xi.point=Ci,xi.lineStart=ki,xi.lineEnd=Ni,ci<0?(mi=-(yi=180),gi=-(bi=90)):_i>i?bi=90:_i<-i&&(gi=-90),Si[0]=mi,Si[1]=yi},sphere:function(){mi=-(yi=180),gi=-(bi=90)}};function Ci(e,t){Oi.push(Si=[mi=e,yi=e]),tbi&&(bi=t)}function ji(e,t){var n=N([e*f,t*f]);if(Pi){var r=A(Pi,n),o=A([r[1],-r[0],0],r);D(o),o=k(o);var i,a=e-wi,u=a>0?1:-1,s=o[0]*l*u,c=p(a)>180;c^(u*wibi&&(bi=i):c^(u*wi<(s=(s+360)%360-180)&&sbi&&(bi=t)),c?eLi(mi,yi)&&(yi=e):Li(e,yi)>Li(mi,yi)&&(mi=e):yi>=mi?(eyi&&(yi=e)):e>wi?Li(mi,e)>Li(mi,yi)&&(yi=e):Li(e,yi)>Li(mi,yi)&&(mi=e)}else Oi.push(Si=[mi=e,yi=e]);tbi&&(bi=t),Pi=n,wi=e}function ki(){xi.point=ji}function Ni(){Si[0]=mi,Si[1]=yi,xi.point=Ci,Pi=null}function Ri(e,t){if(Pi){var n=e-wi;_i.add(p(n)>180?n+(n>0?360:-360):n)}else Mi=e,Ei=t;fi.point(e,t),ji(e,t)}function Ai(){fi.lineStart()}function Ti(){Ri(Mi,Ei),fi.lineEnd(),p(_i)>i&&(mi=-(yi=180)),Si[0]=mi,Si[1]=yi,Pi=null}function Li(e,t){return(t-=e)<0?t+360:t}function Di(e,t){return e[0]-t[0]}function Fi(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tLi(r[0],r[1])&&(r[1]=o[1]),Li(o[0],r[1])>Li(r[0],r[1])&&(r[0]=o[0])):i.push(r=o);for(a=-1/0,t=0,r=i[n=i.length-1];t<=n;r=o,++t)o=i[t],(u=Li(r[1],o[0]))>a&&(a=u,mi=o[0],yi=r[1])}return Oi=Si=null,mi===1/0||gi===1/0?[[NaN,NaN],[NaN,NaN]]:[[mi,gi],[yi,bi]]},Bi=function(e,t){var n=e[0]*f,r=e[1]*f,o=t[0]*f,i=t[1]*f,a=v(r),u=m(r),s=v(i),c=m(i),p=a*v(n),d=a*m(n),g=s*v(o),b=s*m(o),E=2*w(y(M(i-r)+a*s*M(o-n))),P=m(E),O=E?function(e){var t=m(e*=E)/P,n=m(E-e)/P,r=n*p+t*g,o=n*d+t*b,i=n*u+t*c;return[h(o,r)*l,h(i,y(r*r+o*o))*l]}:function(){return[n*l,r*l]};return O.distance=E,O},zi=function(e,t){var n=Gi(e[1],e[0]),r=Gi(t[1],t[0]),o=function(e,t){return Ne(e[0]*t[1]-e[1]*t[0],e[0]*t[0]+e[1]*t[1])}(n,r),i=qi(n)/qi(r);return Ui([1,0,e[0][0],0,1,e[0][1]],Ui([i,0,0,0,i,0],Ui([Re(o),Ue(o),0,-Ue(o),Re(o),0],[1,0,-t[0][0],0,1,-t[0][1]])))};function Ui(e,t){return[e[0]*t[0]+e[1]*t[3],e[0]*t[1]+e[1]*t[4],e[0]*t[2]+e[1]*t[5]+e[2],e[3]*t[0]+e[4]*t[3],e[3]*t[1]+e[4]*t[4],e[3]*t[2]+e[4]*t[5]+e[5]]}function Gi(e,t){return[e[0]-t[0],e[1]-t[1]]}function qi(e){return nt(e[0]*e[0]+e[1]*e[1])}var Wi=function(e,t,n){function r(e,n){var r,o=t(e,n),i=o.project([e*Ze,n*Ze]);return(r=o.transform)?[r[0]*i[0]+r[1]*i[1]+r[2],-(r[3]*i[0]+r[4]*i[1]+r[5])]:(i[1]=-i[1],i)}(function e(t,n){if(t.edges=function(e){for(var t=e.length,n=[],r=e[t-1],o=0;o=0;)if(r=t[u],n[0]===r[0]&&n[1]===r[1]){if(i)return[i,n];i=n}}}(t.face,n.face),o=zi(r.map(n.project),r.map(t.project));t.transform=n.transform?Ui(n.transform,o):o;for(var i=n.edges,a=0,u=i.length;a0?[-t[0],0]:[180-t[0],180])};var t=Ji.map((function(t){return{face:t,project:e(t)}}));return[-1,0,0,1,0,1,4,5].forEach((function(e,n){var r=t[e];r&&(r.children||(r.children=[])).push(t[n])})),Wi(t[0],(function(e,n){return t[e<-He/2?n<0?6:4:e<0?n<0?2:0:er^d>r&&n<(p-c)*(r-l)/(d-l)+c&&(o=!o)}return o}(e[0],n))return e.push(t),!0}))||e.push([t])})),fa=[],e.length?e.length>1?{type:"MultiPolygon",coordinates:e}:{type:"Polygon",coordinates:e[0]}:null}},va=function(e){var t=e(Ve,0)[0]-e(-Ve,0)[0];function n(n,r){var o=je(n)0?n-He:n+He,r),a=(i[0]-i[1])*Xe,u=(i[0]+i[1])*Xe;if(o)return[a,u];var s=t*Xe,c=a>0^u>0?-1:1;return[c*a-ze(u)*s,c*u-ze(a)*s]}return e.invert&&(n.invert=function(n,r){var o=(n+r)*Xe,i=(r-n)*Xe,a=je(o)<.5*t&&je(i)<.5*t;if(!a){var u=t*Xe,s=o>0^i>0?-1:1,c=-s*(n+(i>0?1:-1)*u),l=-s*(r+(o>0?1:-1)*u);o=(-c-l)*Xe,i=(c-l)*Xe}var f=e.invert(o,i);return a||(f[0]+=o>0?He:-He),f}),xe(n).rotate([-90,-90,45]).clipAngle(179.999)},ma=function(){return va(wr).scale(176.423)},ga=function(){return va(Or).scale(111.48)},ya=function(e,t){if(!(0<=(t=+t)&&t<=20))throw new Error("invalid digits");function n(e){e[0]=+e[0].toFixed(t),e[1]=+e[1].toFixed(t)}function r(e){e.forEach(n)}function o(e){e.forEach(r)}function i(e){if(e)switch(e.type){case"GeometryCollection":e.geometries.forEach(i);break;case"Point":n(e.coordinates);break;case"MultiPoint":case"LineString":r(e.coordinates);break;case"MultiLineString":case"Polygon":o(e.coordinates);break;case"MultiPolygon":e.coordinates.forEach(o);break;default:return}}function a(e){i(e.geometry)}if(e)switch(e.type){case"Feature":a(e);break;case"FeatureCollection":e.features.forEach(a);break;default:i(e)}return e};function ba(e){var t=Ue(e);function n(n,r){var o=t?Ge(n*t/2)/t:n/2;if(!r)return[2*o,-e];var i=2*ke(o*Ue(r)),a=1/Ge(r);return[Ue(i)*a,r+(1-Re(i))*a-e]}return n.invert=function(n,r){if(je(r+=e)qe&&--u>0);var f=n*(s=Ge(a)),p=Ge(je(r)0?Ve:-Ve)*(c+i*(f-u)/2+i*i*(f-2*c+u)/2)]}Ma.forEach((function(e){e[1]*=1.0144})),Ea.invert=function(e,t){var n=t/Ve,r=90*n,o=Fe(18,je(r/5)),i=De(0,Te(o));do{var a=Ma[i][1],u=Ma[i+1][1],s=Ma[Fe(19,i+2)][1],c=s-a,l=s-2*u+a,f=2*(je(n)-u)/c,p=l/c,d=f*(1-p*f*(1-2*p*f));if(d>=0||1===i){r=(t>=0?5:-5)*(d+o);var h,v=50;do{d=(o=Fe(18,je(r)/5))-(i=Te(o)),a=Ma[i][1],u=Ma[i+1][1],s=Ma[Fe(19,i+2)][1],r-=(h=(t>=0?Ve:-Ve)*(u+d*(s-a)/2+d*d*(s-2*u+a)/2)-t)*Ze}while(je(h)>We&&--v>0);break}}while(--i>=0);var m=Ma[i][0],g=Ma[i+1][0],y=Ma[Fe(19,i+2)][0];return[e/(g+d*(y-m)/2+d*d*(y-2*g+m)/2),r*$e]};var Pa=function(){return xe(Ea).scale(152.63)};function Oa(e,t){var n=function(e){function t(t,n){var r=Re(n),o=(e-1)/(e-r*Re(t));return[o*r*Ue(t),o*Ue(n)]}return t.invert=function(t,n){var r=t*t+n*n,o=nt(r),i=(e-nt(1-r*(e+1)/(e-1)))/((e-1)/o+o/(e-1));return[Ne(t*i,o*nt(1-i*i)),o?et(n*i/o):0]},t}(e);if(!t)return n;var r=Re(t),o=Ue(t);function i(t,i){var a=n(t,i),u=a[1],s=u*o/(e-1)+r;return[a[0]*r/s,u/s]}return i.invert=function(t,i){var a=(e-1)/(e-1-i*o);return n.invert(a*t,a*i*r)},i}var Sa=function(){var e=2,t=0,n=Ce(Oa),r=n(e,t);return r.distance=function(r){return arguments.length?n(e=+r,t):e},r.tilt=function(r){return arguments.length?n(e,t=r*$e):t*Ze},r.scale(432.147).clipAngle(tt(1/e)*Ze-1e-6)},_a=1e4,xa=-180,Ca=xa+1e-4,ja=180,ka=ja-1e-4,Na=-90,Ra=Na+1e-4,Aa=90,Ta=Aa-1e-4;function La(e){return e===Na||e===Aa?[0,e]:[xa,(t=e,Math.floor(t*_a)/_a)];var t}function Da(e){e[0]<=Ca?e[0]=xa:e[0]>=ka&&(e[0]=ja),e[1]<=Ra?e[1]=Na:e[1]>=Ta&&(e[1]=Aa)}function Fa(e){e.forEach(Da)}function Ia(e,t){for(var n=0,r=e.length;n=ka||c<=Ra||c>=Ta){Da(u);for(var l=i+1;lCa&&pRa&&d=a)break;t.push(o=o.slice(l-1)),o[0]=La(o[0][1]),o.polygon=e,i=-1,a=o.length}}}e.length=0}function Ba(e){za(e.geometry)}function za(e){if(e){var t,n,r;switch(e.type){case"GeometryCollection":return void e.geometries.forEach(za);case"Point":Da(e.coordinates);break;case"MultiPoint":case"LineString":Fa(e.coordinates);break;case"MultiLineString":e.coordinates.forEach(Fa);break;case"Polygon":Ia(e.coordinates,t=[]);break;case"MultiPolygon":for(t=[],n=-1,r=e.coordinates.length;++n0?He-u:u)*Ze],c=xe(e(a)).rotate(s),l=Q(s),f=c.center;return delete c.rotate,c.center=function(e){return arguments.length?f(l(e)):l.invert(f())},c.clipAngle(90)};function Ha(e){var t=Re(e);function n(e,n){var r=Yi(e,n);return r[0]*=t,r}return n.invert=function(e,n){return Yi.invert(e/t,n)},n}function Va(){return Ya([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Ya(e,t){return Wa(Ha,e,t)}function Xa(e){if(!(e*=2))return bt;var t=-e/2,n=-t,r=e*e,o=Ge(n),i=.5/Ue(n);function a(o,i){var a=tt(Re(i)*Re(o-t)),u=tt(Re(i)*Re(o-n));return[((a*=a)-(u*=u))/(2*e),(i<0?-1:1)*nt(4*r*u-(r-a+u)*(r-a+u))/(2*e)]}return a.invert=function(e,r){var a,u,s=r*r,c=Re(nt(s+(a=e+t)*a)),l=Re(nt(s+(a=e+n)*a));return[Ne(u=c-l,a=(c+l)*o),(r<0?-1:1)*tt(nt(a*a+u*u)*i)]},a}function Ka(){return Ja([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Ja(e,t){return Wa(Xa,e,t)}function Qa(e,t){if(je(t)