vendor: 7,956 bytes, lines 1-21
1import{i as Aa,r as O,R as rt,j as E}from"./vendor-react-CRQNHGGd.js";import{c as Ce,u as za,s as Ie,R as Fe,B as Oa,X as La}from"./index-CX3ijsYv.js";import{F as Ia}from"./Flag-BeXV0hbX.js";import{u as Fa,L as Da}from"./FeatureLock-DYayjCxN.js";import{P as qa,a as Ba}from"./page-B5tLexyN.js";import{a as Xa,P as Ga}from"./play-WI_sNlJd.js";import{R as Ya}from"./refresh-cw-CY_eYyV0.js";import{C as Za}from"./circle-alert-Bd2Sk0MC.js";import{U as Ha}from"./users-BbV0y6cP.js";import{S as Ua}from"./scan-search-BW67hlLk.js";import{A as Wa}from"./arrow-right-C14nhD8l.js";import"./vendor-i18n-Bfm1x1ut.js";import"./vendor-supabase-4xig6v3J.js";import"./effective-plan-ZyUZG9Ge.js";import"./lock-DCR3Na9u.js";import"./utils-BLSKlp9E.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const hi=Ce("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 7 * @license lucide-react v0.462.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const Va=Ce("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/** 12 * @license lucide-react v0.462.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const Ka=Ce("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/** 17 * @license lucide-react v0.462.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */const Qa=Ce("Tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);var De={exports:{}},qe,pi;function Ja(){if(pi)return qe;pi=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return qe=t,qe}var Be,di;function ts(){if(di)return Be;di=1;var t=Ja();function n(){}function e(){}return e.resetWarningCache=n,Be=function(){function r(a,u,c,l,s,f){if(f!==t){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:e,resetWarningCache:n};return o.PropTypes=o,o},Be}var gi;function ns(){return gi||(gi=1,De.exports=ts()()),De.exports}var es=ns();const k=Aa(es);class at{constructor(){this._partials=new Float64Array(32),this._n=0}add(n){const e=this._partials;let r=0;for(let i=0;i<this._n&&i<32;i++){const o=e[i],a=n+o,u=Math.abs(n)<Math.abs(o)?n-(a-o):o-(a-n);u&&(e[r++]=u),n=a}return e[r]=n,this._n=r+1,this}valueOf(){const n=this._partials;let e=this._n,r,i,o,a=0;if(e>0){for(a=n[--e];e>0&&(r=a,i=n[--e],a=r+i,o=i-(a-r),!o););e>0&&(o<0&&n[e-1]<0||o>0&&n[e-1]>0)&&(i=o*2,r=a+i,i==r-a&&(a=r))}return a}}function*rs(t){for(const n of t)yield*n}function vo(t){return Array.from(rs(t))}function Jt(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=Math.max(0,Math.ceil((n-t)/e))|0,o=new Array(i);++r<i;)o[r]=t+r*e;return o}var L=1e-6,Pn=1e-12,Y=Math.PI,nt=Y/2,ie=Y/4,lt=Y*2,W=180/Y,I=Y/180,Z=Math.abs,ln=Math.atan,ft=Math.atan2,z=Math.cos,Bn=Math.ceil,mo=Math.exp,Je=Math.hypot,oe=Math.log,Xe=Math.pow,C=Math.sin,St=Math.sign||function(t){return t>0?1:t<0?-1:0},it=Math.sqrt,Cr=Math.tan;function yo(t){return t>1?0:t<-1?Y:Math.acos(t)}function ht(t){return t>1?nt:t<-1?-nt:Math.asin(t)}function vi(t){return(t=C(t/2))*t}function J(){}function ae(t,n){t&&yi.hasOwnProperty(t.type)&&yi[t.type](t,n)}var mi={Feature:function(t,n){ae(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)ae(e[r].geometry,n)}},yi={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){tr(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)tr(e[r],n,0)},Polygon:function(t,n){xi(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)xi(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)ae(e[r],n)}};function tr(t,n,e){var r=-1,i=t.length-e,o;for(n.lineStart();++r<i;)o=t[r],n.point(o[0],o[1],o[2]);n.lineEnd()}function xi(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)tr(t[e],n,1);n.polygonEnd()}function Nt(t,n){t&&mi.hasOwnProperty(t.type)?mi[t.type](t,n):ae(t,n)}var se=new at,ue=new at,xo,wo,nr,er,rr,Ct={point:J,lineStart:J,lineEnd:J,polygonStart:function(){se=new at,Ct.lineStart=is,Ct.lineEnd=os},polygonEnd:function(){var t=+se;ue.add(t<0?lt+t:t),this.lineStart=this.lineEnd=this.point=J},sphere:function(){ue.add(lt)}};function is(){Ct.point=as}function os(){_o(xo,wo)}function as(t,n){Ct.point=_o,xo=t,wo=n,t*=I,n*=I,nr=t,er=z(n=n/2+ie),rr=C(n)}function _o(t,n){t*=I,n*=I,n=n/2+ie;var e=t-nr,r=e>=0?1:-1,i=r*e,o=z(n),a=C(n),u=rr*a,c=er*o+u*z(i),l=u*r*C(i);se.add(ft(l,c)),nr=t,er=o,rr=a}function ss(t){return ue=new at,Nt(t,Ct),ue*2}function ce(t){return[ft(t[1],t[0]),ht(t[2])]}function Wt(t){var n=t[0],e=t[1],r=z(e);return[r*z(n),r*C(n),C(e)]}function Xn(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function on(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function Ge(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function Gn(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function le(t){var n=it(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var Q,pt,tt,xt,Ut,Eo,So,en,En,Gt,qt,Lt={point:ir,lineStart:wi,lineEnd:_i,polygonStart:function(){Lt.point=No,Lt.lineStart=us,Lt.lineEnd=cs,En=new at,Ct.polygonStart()},polygonEnd:function(){Ct.polygonEnd(),Lt.point=ir,Lt.lineStart=wi,Lt.lineEnd=_i,se<0?(Q=-(tt=180),pt=-(xt=90)):En>L?xt=90:En<-L&&(pt=-90),qt[0]=Q,qt[1]=tt},sphere:function(){Q=-(tt=180),pt=-(xt=90)}};function ir(t,n){Gt.push(qt=[Q=t,tt=t]),n<pt&&(pt=n),n>xt&&(xt=n)}function Mo(t,n){var e=Wt([t*I,n*I]);if(en){var r=on(en,e),i=[r[1],-r[0],0],o=on(i,r);le(o),o=ce(o);var a=t-Ut,u=a>0?1:-1,c=o[0]*W*u,l,s=Z(a)>180;s^(u*Ut<c&&c<u*t)?(l=o[1]*W,l>xt&&(xt=l)):(c=(c+360)%360-180,s^(u*Ut<c&&c<u*t)?(l=-o[1]*W,l<pt&&(pt=l)):(n<pt&&(pt=n),n>xt&&(xt=n))),s?t<Ut?yt(Q,t)>yt(Q,tt)&&(tt=t):yt(t,tt)>yt(Q,tt)&&(Q=t):tt>=Q?(t<Q&&(Q=t),t>tt&&(tt=t)):t>Ut?yt(Q,t)>yt(Q,tt)&&(tt=t):yt(t,tt)>yt(Q,tt)&&(Q=t)}else Gt.push(qt=[Q=t,tt=t]);n<pt&&(pt=n),n>xt&&(xt=n),en=e,Ut=t}function wi(){Lt.point=Mo}function _i(){qt[0]=Q,qt[1]=tt,Lt.point=ir,en=null}function No(t,n){if(en){var e=t-Ut;En.add(Z(e)>180?e+(e>0?360:-360):e)}else Eo=t,So=n;Ct.point(t,n),Mo(t,n)}function us(){Ct.lineStart()}function cs(){No(Eo,So),Ct.lineEnd(),Z(En)>L&&(Q=-(tt=180)),qt[0]=Q,qt[1]=tt,en=null}function yt(t,n){return(n-=t)<0?n+360:n}function ls(t,n){return t[0]-n[0]}function Ei(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}function fs(t){var n,e,r,i,o,a,u;if(xt=tt=-(Q=pt=1/0),Gt=[],Nt(t,Lt),e=Gt.length){for(Gt.sort(ls),n=1,r=Gt[0],o=[r];n<e;++n)i=Gt[n],Ei(r,i[0])||Ei(r,i[1])?(yt(r[0],i[1])>yt(r[0],r[1])&&(r[1]=i[1]),yt(i[0],r[1])>yt(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=o.length-1,n=0,r=o[e];n<=e;r=i,++n)i=o[n],(u=yt(r[1],i[0]))>a&&(a=u,Q=i[0],tt=r[1])}return Gt=qt=null,Q===1/0||pt===1/0?[[NaN,NaN],[NaN,NaN]]:[[Q,pt],[tt,xt]]}
vendor: 14,684 bytes, line 21
21var dn,fe,he,pe,de,ge,ve,me,or,ar,sr,bo,Po,st,ut,ct,bt={sphere:J,point:Tr,lineStart:Si,lineEnd:Mi,polygonStart:function(){bt.lineStart=ds,bt.lineEnd=gs},polygonEnd:function(){bt.lineStart=Si,bt.lineEnd=Mi}};function Tr(t,n){t*=I,n*=I;var e=z(n);On(e*z(t),e*C(t),C(n))}function On(t,n,e){++dn,he+=(t-he)/dn,pe+=(n-pe)/dn,de+=(e-de)/dn}function Si(){bt.point=hs}function hs(t,n){t*=I,n*=I;var e=z(n);st=e*z(t),ut=e*C(t),ct=C(n),bt.point=ps,On(st,ut,ct)}function ps(t,n){t*=I,n*=I;var e=z(n),r=e*z(t),i=e*C(t),o=C(n),a=ft(it((a=ut*o-ct*i)*a+(a=ct*r-st*o)*a+(a=st*i-ut*r)*a),st*r+ut*i+ct*o);fe+=a,ge+=a*(st+(st=r)),ve+=a*(ut+(ut=i)),me+=a*(ct+(ct=o)),On(st,ut,ct)}function Mi(){bt.point=Tr}function ds(){bt.point=vs}function gs(){ko(bo,Po),bt.point=Tr}function vs(t,n){bo=t,Po=n,t*=I,n*=I,bt.point=ko;var e=z(n);st=e*z(t),ut=e*C(t),ct=C(n),On(st,ut,ct)}function ko(t,n){t*=I,n*=I;var e=z(n),r=e*z(t),i=e*C(t),o=C(n),a=ut*o-ct*i,u=ct*r-st*o,c=st*i-ut*r,l=Je(a,u,c),s=ht(l),f=l&&-s/l;or.add(f*a),ar.add(f*u),sr.add(f*c),fe+=s,ge+=s*(st+(st=r)),ve+=s*(ut+(ut=i)),me+=s*(ct+(ct=o)),On(st,ut,ct)}function ms(t){dn=fe=he=pe=de=ge=ve=me=0,or=new at,ar=new at,sr=new at,Nt(t,bt);var n=+or,e=+ar,r=+sr,i=Je(n,e,r);return i<Pn&&(n=ge,e=ve,r=me,fe<L&&(n=he,e=pe,r=de),i=Je(n,e,r),i<Pn)?[NaN,NaN]:[ft(e,n)*W,ht(r/i)*W]}function Qt(t){return function(){return t}}function ur(t,n){function e(r,i){return r=t(r,i),n(r[0],r[1])}return t.invert&&n.invert&&(e.invert=function(r,i){return r=n.invert(r,i),r&&t.invert(r[0],r[1])}),e}function cr(t,n){return[Z(t)>Y?t+Math.round(-t/lt)*lt:t,n]}cr.invert=cr;function Ar(t,n,e){return(t%=lt)?n||e?ur(bi(t),Pi(n,e)):bi(t):n||e?Pi(n,e):cr}function Ni(t){return function(n,e){return n+=t,[n>Y?n-lt:n<-Y?n+lt:n,e]}}function bi(t){var n=Ni(t);return n.invert=Ni(-t),n}function Pi(t,n){var e=z(t),r=C(t),i=z(n),o=C(n);function a(u,c){var l=z(c),s=z(u)*l,f=C(u)*l,h=C(c),p=h*e+s*r;return[ft(f*i-p*o,s*e-h*r),ht(p*i+f*o)]}return a.invert=function(u,c){var l=z(c),s=z(u)*l,f=C(u)*l,h=C(c),p=h*i-f*o;return[ft(f*i+h*o,s*e+p*r),ht(p*e-s*r)]},a}function jo(t){t=Ar(t[0]*I,t[1]*I,t.length>2?t[2]*I:0);function n(e){return e=t(e[0]*I,e[1]*I),e[0]*=W,e[1]*=W,e}return n.invert=function(e){return e=t.invert(e[0]*I,e[1]*I),e[0]*=W,e[1]*=W,e},n}function Ro(t,n,e,r,i,o){if(e){var a=z(n),u=C(n),c=r*e;i==null?(i=n+r*lt,o=n-c/2):(i=ki(a,i),o=ki(a,o),(r>0?i<o:i>o)&&(i+=r*lt));for(var l,s=i;r>0?s>o:s<o;s-=c)l=ce([a,-u*z(s),-u*C(s)]),t.point(l[0],l[1])}}function ki(t,n){n=Wt(n),n[0]-=t,le(n);var e=yo(-n[1]);return((-n[2]<0?-e:e)+lt-L)%lt}function ys(){var t=Qt([0,0]),n=Qt(90),e=Qt(6),r,i,o={point:a};function a(c,l){r.push(c=i(c,l)),c[0]*=W,c[1]*=W}function u(){var c=t.apply(this,arguments),l=n.apply(this,arguments)*I,s=e.apply(this,arguments)*I;return r=[],i=Ar(-c[0]*I,-c[1]*I,0).invert,Ro(o,l,s,1),c={type:"Polygon",coordinates:[r]},r=i=null,c}return u.center=function(c){return arguments.length?(t=typeof c=="function"?c:Qt([+c[0],+c[1]]),u):t},u.radius=function(c){return arguments.length?(n=typeof c=="function"?c:Qt(+c),u):n},u.precision=function(c){return arguments.length?(e=typeof c=="function"?c:Qt(+c),u):e},u}function $o(){var t=[],n;return{point:function(e,r,i){n.push([e,r,i])},lineStart:function(){t.push(n=[])},lineEnd:J,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var e=t;return t=[],n=null,e}}}function Kn(t,n){return Z(t[0]-n[0])<L&&Z(t[1]-n[1])<L}function Yn(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function Co(t,n,e,r,i){var o=[],a=[],u,c;if(t.forEach(function(d){if(!((x=d.length-1)<=0)){var x,S=d[0],w=d[x],N;if(Kn(S,w)){if(!S[2]&&!w[2]){for(i.lineStart(),u=0;u<x;++u)i.point((S=d[u])[0],S[1]);i.lineEnd();return}w[0]+=2*L}o.push(N=new Yn(S,d,null,!0)),a.push(N.o=new Yn(S,null,N,!1)),o.push(N=new Yn(w,d,null,!1)),a.push(N.o=new Yn(w,null,N,!0))}}),!!o.length){for(a.sort(n),ji(o),ji(a),u=0,c=a.length;u<c;++u)a[u].e=e=!e;for(var l=o[0],s,f;;){for(var h=l,p=!0;h.v;)if((h=h.n)===l)return;s=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(u=0,c=s.length;u<c;++u)i.point((f=s[u])[0],f[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(p)for(s=h.p.z,u=s.length-1;u>=0;--u)i.point((f=s[u])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,s=h.z,p=!p}while(!h.v);i.lineEnd()}}}function ji(t){if(n=t.length){for(var n,e=0,r=t[0],i;++e<n;)r.n=i=t[e],i.p=r,r=i;r.n=i=t[0],i.p=r}}function Ye(t){return Z(t[0])<=Y?t[0]:St(t[0])*((Z(t[0])+Y)%lt-Y)}function To(t,n){var e=Ye(n),r=n[1],i=C(r),o=[C(e),-z(e),0],a=0,u=0,c=new at;i===1?r=nt+L:i===-1&&(r=-nt-L);for(var l=0,s=t.length;l<s;++l)if(h=(f=t[l]).length)for(var f,h,p=f[h-1],d=Ye(p),x=p[1]/2+ie,S=C(x),w=z(x),N=0;N<h;++N,d=_,S=P,w=A,p=m){var m=f[N],_=Ye(m),b=m[1]/2+ie,P=C(b),A=z(b),F=_-d,q=F>=0?1:-1,M=q*F,$=M>Y,D=S*P;if(c.add(ft(D*q*C(M),w*A+D*z(M))),a+=$?F+q*lt:F,$^d>=e^_>=e){var X=on(Wt(p),Wt(m));le(X);var g=on(o,X);le(g);var v=($^F>=0?-1:1)*ht(g[2]);(r>v||r===v&&(X[0]||X[1]))&&(u+=$^F>=0?1:-1)}}return(a<-L||a<L&&c<-Pn)^u&1}function Ao(t,n,e,r){return function(i){var o=n(i),a=$o(),u=n(a),c=!1,l,s,f,h={point:p,lineStart:x,lineEnd:S,polygonStart:function(){h.point=w,h.lineStart=N,h.lineEnd=m,s=[],l=[]},polygonEnd:function(){h.point=p,h.lineStart=x,h.lineEnd=S,s=vo(s);var _=To(l,r);s.length?(c||(i.polygonStart(),c=!0),Co(s,ws,_,e,i)):_&&(c||(i.polygonStart(),c=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),c&&(i.polygonEnd(),c=!1),s=l=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function p(_,b){t(_,b)&&i.point(_,b)}function d(_,b){o.point(_,b)}function x(){h.point=d,o.lineStart()}function S(){h.point=p,o.lineEnd()}function w(_,b){f.push([_,b]),u.point(_,b)}function N(){u.lineStart(),f=[]}function m(){w(f[0][0],f[0][1]),u.lineEnd();var _=u.clean(),b=a.result(),P,A=b.length,F,q,M;if(f.pop(),l.push(f),f=null,!!A){if(_&1){if(q=b[0],(F=q.length-1)>0){for(c||(i.polygonStart(),c=!0),i.lineStart(),P=0;P<F;++P)i.point((M=q[P])[0],M[1]);i.lineEnd()}return}A>1&&_&2&&b.push(b.pop().concat(b.shift())),s.push(b.filter(xs))}}return h}}function xs(t){return t.length>1}function ws(t,n){return((t=t.x)[0]<0?t[1]-nt-L:nt-t[1])-((n=n.x)[0]<0?n[1]-nt-L:nt-n[1])}const lr=Ao(function(){return!0},_s,Ss,[-Y,-nt]);function _s(t){var n=NaN,e=NaN,r=NaN,i;return{lineStart:function(){t.lineStart(),i=1},point:function(o,a){var u=o>0?Y:-Y,c=Z(o-n);Z(c-Y)<L?(t.point(n,e=(e+a)/2>0?nt:-nt),t.point(r,e),t.lineEnd(),t.lineStart(),t.point(u,e),t.point(o,e),i=0):r!==u&&c>=Y&&(Z(n-r)<L&&(n-=r*L),Z(o-u)<L&&(o-=u*L),e=Es(n,e,o,a),t.point(r,e),t.lineEnd(),t.lineStart(),t.point(u,e),i=0),t.point(n=o,e=a),r=u},lineEnd:function(){t.lineEnd(),n=e=NaN},clean:function(){return 2-i}}}function Es(t,n,e,r){var i,o,a=C(t-e);return Z(a)>L?ln((C(n)*(o=z(r))*C(e)-C(r)*(i=z(n))*C(t))/(i*o*a)):(n+r)/2}function Ss(t,n,e,r){var i;if(t==null)i=e*nt,r.point(-Y,i),r.point(0,i),r.point(Y,i),r.point(Y,0),r.point(Y,-i),r.point(0,-i),r.point(-Y,-i),r.point(-Y,0),r.point(-Y,i);else if(Z(t[0]-n[0])>L){var o=t[0]<n[0]?Y:-Y;i=e*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(n[0],n[1])}function zo(t){var n=z(t),e=6*I,r=n>0,i=Z(n)>L;function o(s,f,h,p){Ro(p,t,e,h,s,f)}function a(s,f){return z(s)*z(f)>n}function u(s){var f,h,p,d,x;return{lineStart:function(){d=p=!1,x=1},point:function(S,w){var N=[S,w],m,_=a(S,w),b=r?_?0:l(S,w):_?l(S+(S<0?Y:-Y),w):0;if(!f&&(d=p=_)&&s.lineStart(),_!==p&&(m=c(f,N),(!m||Kn(f,m)||Kn(N,m))&&(N[2]=1)),_!==p)x=0,_?(s.lineStart(),m=c(N,f),s.point(m[0],m[1])):(m=c(f,N),s.point(m[0],m[1],2),s.lineEnd()),f=m;else if(i&&f&&r^_){var P;!(b&h)&&(P=c(N,f,!0))&&(x=0,r?(s.lineStart(),s.point(P[0][0],P[0][1]),s.point(P[1][0],P[1][1]),s.lineEnd()):(s.point(P[1][0],P[1][1]),s.lineEnd(),s.lineStart(),s.point(P[0][0],P[0][1],3)))}_&&(!f||!Kn(f,N))&&s.point(N[0],N[1]),f=N,p=_,h=b},lineEnd:function(){p&&s.lineEnd(),f=null},clean:function(){return x|(d&&p)<<1}}}function c(s,f,h){var p=Wt(s),d=Wt(f),x=[1,0,0],S=on(p,d),w=Xn(S,S),N=S[0],m=w-N*N;if(!m)return!h&&s;var _=n*w/m,b=-n*N/m,P=on(x,S),A=Gn(x,_),F=Gn(S,b);Ge(A,F);var q=P,M=Xn(A,q),$=Xn(q,q),D=M*M-$*(Xn(A,A)-1);if(!(D<0)){var X=it(D),g=Gn(q,(-M-X)/$);if(Ge(g,A),g=ce(g),!h)return g;var v=s[0],y=f[0],j=s[1],R=f[1],T;y<v&&(T=v,v=y,y=T);var B=y-v,G=Z(B-Y)<L,H=G||B<L;if(!G&&R<j&&(T=j,j=R,R=T),H?G?j+R>0^g[1]<(Z(g[0]-v)<L?j:R):j<=g[1]&&g[1]<=R:B>Y^(v<=g[0]&&g[0]<=y)){var V=Gn(q,(-M+X)/$);return Ge(V,A),[g,ce(V)]}}}function l(s,f){var h=r?t:Y-t,p=0;return s<-h?p|=1:s>h&&(p|=2),f<-h?p|=4:f>h&&(p|=8),p}return Ao(a,u,o,r?[0,-t]:[-Y,t-Y])}function Ms(t,n,e,r,i,o){var a=t[0],u=t[1],c=n[0],l=n[1],s=0,f=1,h=c-a,p=l-u,d;if(d=e-a,!(!h&&d>0)){if(d/=h,h<0){if(d<s)return;d<f&&(f=d)}else if(h>0){if(d>f)return;d>s&&(s=d)}if(d=i-a,!(!h&&d<0)){if(d/=h,h<0){if(d>f)return;d>s&&(s=d)}else if(h>0){if(d<s)return;d<f&&(f=d)}if(d=r-u,!(!p&&d>0)){if(d/=p,p<0){if(d<s)return;d<f&&(f=d)}else if(p>0){if(d>f)return;d>s&&(s=d)}if(d=o-u,!(!p&&d<0)){if(d/=p,p<0){if(d>f)return;d>s&&(s=d)}else if(p>0){if(d<s)return;d<f&&(f=d)}return s>0&&(t[0]=a+s*h,t[1]=u+s*p),f<1&&(n[0]=a+f*h,n[1]=u+f*p),!0}}}}}var gn=1e9,Zn=-gn;function Te(t,n,e,r){function i(l,s){return t<=l&&l<=e&&n<=s&&s<=r}function o(l,s,f,h){var p=0,d=0;if(l==null||(p=a(l,f))!==(d=a(s,f))||c(l,s)<0^f>0)do h.point(p===0||p===3?t:e,p>1?r:n);while((p=(p+f+4)%4)!==d);else h.point(s[0],s[1])}function a(l,s){return Z(l[0]-t)<L?s>0?0:3:Z(l[0]-e)<L?s>0?2:1:Z(l[1]-n)<L?s>0?1:0:s>0?3:2}function u(l,s){return c(l.x,s.x)}function c(l,s){var f=a(l,1),h=a(s,1);return f!==h?f-h:f===0?s[1]-l[1]:f===1?l[0]-s[0]:f===2?l[1]-s[1]:s[0]-l[0]}return function(l){var s=l,f=$o(),h,p,d,x,S,w,N,m,_,b,P,A={point:F,lineStart:D,lineEnd:X,polygonStart:M,polygonEnd:$};function F(v,y){i(v,y)&&s.point(v,y)}function q(){for(var v=0,y=0,j=p.length;y<j;++y)for(var R=p[y],T=1,B=R.length,G=R[0],H,V,U=G[0],K=G[1];T<B;++T)H=U,V=K,G=R[T],U=G[0],K=G[1],V<=r?K>r&&(U-H)*(r-V)>(K-V)*(t-H)&&++v:K<=r&&(U-H)*(r-V)<(K-V)*(t-H)&&--v;return v}function M(){s=f,h=[],p=[],P=!0}function $(){var v=q(),y=P&&v,j=(h=vo(h)).length;(y||j)&&(l.polygonStart(),y&&(l.lineStart(),o(null,null,1,l),l.lineEnd()),j&&Co(h,u,v,o,l),l.polygonEnd()),s=l,h=p=d=null}function D(){A.point=g,p&&p.push(d=[]),b=!0,_=!1,N=m=NaN}function X(){h&&(g(x,S),w&&_&&f.rejoin(),h.push(f.result())),A.point=F,_&&s.lineEnd()}function g(v,y){var j=i(v,y);if(p&&d.push([v,y]),b)x=v,S=y,w=j,b=!1,j&&(s.lineStart(),s.point(v,y));else if(j&&_)s.point(v,y);else{var R=[N=Math.max(Zn,Math.min(gn,N)),m=Math.max(Zn,Math.min(gn,m))],T=[v=Math.max(Zn,Math.min(gn,v)),y=Math.max(Zn,Math.min(gn,y))];Ms(R,T,t,n,e,r)?(_||(s.lineStart(),s.point(R[0],R[1])),s.point(T[0],T[1]),j||s.lineEnd(),P=!1):j&&(s.lineStart(),s.point(v,y),P=!1)}N=v,m=y,_=j}return A}}function Ns(){var t=0,n=0,e=960,r=500,i,o,a;return a={stream:function(u){return i&&o===u?i:i=Te(t,n,e,r)(o=u)},extent:function(u){return arguments.length?(t=+u[0][0],n=+u[0][1],e=+u[1][0],r=+u[1][1],i=o=null,a):[[t,n],[e,r]]}}}var fr,hr,Qn,Jn,an={sphere:J,point:J,lineStart:bs,lineEnd:J,polygonStart:J,polygonEnd:J};function bs(){an.point=ks,an.lineEnd=Ps}function Ps(){an.point=an.lineEnd=J}function ks(t,n){t*=I,n*=I,hr=t,Qn=C(n),Jn=z(n),an.point=js}function js(t,n){t*=I,n*=I;var e=C(n),r=z(n),i=Z(t-hr),o=z(i),a=C(i),u=r*a,c=Jn*e-Qn*r*o,l=Qn*e+Jn*r*o;fr.add(ft(it(u*u+c*c),l)),hr=t,Qn=e,Jn=r}function Oo(t){return fr=new at,Nt(t,an),+fr}var pr=[null,null],Rs={type:"LineString",coordinates:pr};function ye(t,n){return pr[0]=t,pr[1]=n,Oo(Rs)}var Ri={Feature:function(t,n){return xe(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)if(xe(e[r].geometry,n))return!0;return!1}},$i={Sphere:function(){return!0},Point:function(t,n){return Ci(t.coordinates,n)},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Ci(e[r],n))return!0;return!1},LineString:function(t,n){return Ti(t.coordinates,n)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Ti(e[r],n))return!0;return!1},Polygon:function(t,n){return Ai(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Ai(e[r],n))return!0;return!1},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)if(xe(e[r],n))return!0;return!1}};function xe(t,n){return t&&$i.hasOwnProperty(t.type)?$i[t.type](t,n):!1}function Ci(t,n){return ye(t,n)===0}function Ti(t,n){for(var e,r,i,o=0,a=t.length;o<a;o++){if(r=ye(t[o],n),r===0||o>0&&(i=ye(t[o],t[o-1]),i>0&&e<=i&&r<=i&&(e+r-i)*(1-Math.pow((e-r)/i,2))<Pn*i))return!0;e=r}return!1}function Ai(t,n){return!!To(t.map($s),Lo(n))}function $s(t){return t=t.map(Lo),t.pop(),t}function Lo(t){return[t[0]*I,t[1]*I]}function Cs(t,n){return(t&&Ri.hasOwnProperty(t.type)?Ri[t.type]:xe)(t,n)}function zi(t,n,e){var r=Jt(t,n-L,e).concat(n);return function(i){return r.map(function(o){return[i,o]})}}function Oi(t,n,e){var r=Jt(t,n-L,e).concat(n);return function(i){return r.map(function(o){return[o,i]})}}function zr(){var t,n,e,r,i,o,a,u,c=10,l=c,s=90,f=360,h,p,d,x,S=2.5;function w(){return{type:"MultiLineString",coordinates:N()}}function N(){return Jt(Bn(r/s)*s,e,s).map(d).concat(Jt(Bn(u/f)*f,a,f).map(x)).concat(Jt(Bn(n/c)*c,t,c).filter(function(m){return Z(m%s)>L}).map(h)).concat(Jt(Bn(o/l)*l,i,l).filter(function(m){return Z(m%f)>L}).map(p))}return w.lines=function(){return N().map(function(m){return{type:"LineString",coordinates:m}})},w.outline=function(){return{type:"Polygon",coordinates:[d(r).concat(x(a).slice(1),d(e).reverse().slice(1),x(u).reverse().slice(1))]}},w.extent=function(m){return arguments.length?w.extentMajor(m).extentMinor(m):w.extentMinor()},w.extentMajor=function(m){return arguments.length?(r=+m[0][0],e=+m[1][0],u=+m[0][1],a=+m[1][1],r>e&&(m=r,r=e,e=m),u>a&&(m=u,u=a,a=m),w.precision(S)):[[r,u],[e,a]]},w.extentMinor=function(m){return arguments.length?(n=+m[0][0],t=+m[1][0],o=+m[0][1],i=+m[1][1],n>t&&(m=n,n=t,t=m),o>i&&(m=o,o=i,i=m),w.precision(S)):[[n,o],[t,i]]},w.step=function(m){return arguments.length?w.stepMajor(m).stepMinor(m):w.stepMinor()},w.stepMajor=function(m){return arguments.length?(s=+m[0],f=+m[1],w):[s,f]},w.stepMinor=function(m){return arguments.length?(c=+m[0],l=+m[1],w):[c,l]},w.precision=function(m){return arguments.length?(S=+m,h=zi(o,i,90),p=Oi(n,t,S),d=zi(u,a,90),x=Oi(r,e,S),w):S},w.extentMajor([[-180,-90+L],[180,90-L]]).extentMinor([[-180,-80-L],[180,80+L]])}function Ts(){return zr()()}function As(t,n){var e=t[0]*I,r=t[1]*I,i=n[0]*I,o=n[1]*I,a=z(r),u=C(r),c=z(o),l=C(o),s=a*z(e),f=a*C(e),h=c*z(i),p=c*C(i),d=2*ht(it(vi(o-r)+a*c*vi(i-e))),x=C(d),S=d?function(w){var N=C(w*=d)/x,m=C(d-w)/x,_=m*s+N*h,b=m*f+N*p,P=m*u+N*l;return[ft(b,_)*W,ft(P,it(_*_+b*b))*W]}:function(){return[e*W,r*W]};return S.distance=d,S}const kn=t=>t;
vendor: 5,093 bytes, line 21
21var Ze=new at,dr=new at,Io,Fo,gr,vr,It={point:J,lineStart:J,lineEnd:J,polygonStart:function(){It.lineStart=zs,It.lineEnd=Ls},polygonEnd:function(){It.lineStart=It.lineEnd=It.point=J,Ze.add(Z(dr)),dr=new at},result:function(){var t=Ze/2;return Ze=new at,t}};function zs(){It.point=Os}function Os(t,n){It.point=Do,Io=gr=t,Fo=vr=n}function Do(t,n){dr.add(vr*t-gr*n),gr=t,vr=n}function Ls(){Do(Io,Fo)}var sn=1/0,we=sn,jn=-sn,_e=jn,Ee={point:Is,lineStart:J,lineEnd:J,polygonStart:J,polygonEnd:J,result:function(){var t=[[sn,we],[jn,_e]];return jn=_e=-(we=sn=1/0),t}};function Is(t,n){t<sn&&(sn=t),t>jn&&(jn=t),n<we&&(we=n),n>_e&&(_e=n)}var mr=0,yr=0,vn=0,Se=0,Me=0,tn=0,xr=0,wr=0,mn=0,qo,Bo,kt,jt,Et={point:Vt,lineStart:Li,lineEnd:Ii,polygonStart:function(){Et.lineStart=qs,Et.lineEnd=Bs},polygonEnd:function(){Et.point=Vt,Et.lineStart=Li,Et.lineEnd=Ii},result:function(){var t=mn?[xr/mn,wr/mn]:tn?[Se/tn,Me/tn]:vn?[mr/vn,yr/vn]:[NaN,NaN];return mr=yr=vn=Se=Me=tn=xr=wr=mn=0,t}};function Vt(t,n){mr+=t,yr+=n,++vn}function Li(){Et.point=Fs}function Fs(t,n){Et.point=Ds,Vt(kt=t,jt=n)}function Ds(t,n){var e=t-kt,r=n-jt,i=it(e*e+r*r);Se+=i*(kt+t)/2,Me+=i*(jt+n)/2,tn+=i,Vt(kt=t,jt=n)}function Ii(){Et.point=Vt}function qs(){Et.point=Xs}function Bs(){Xo(qo,Bo)}function Xs(t,n){Et.point=Xo,Vt(qo=kt=t,Bo=jt=n)}function Xo(t,n){var e=t-kt,r=n-jt,i=it(e*e+r*r);Se+=i*(kt+t)/2,Me+=i*(jt+n)/2,tn+=i,i=jt*t-kt*n,xr+=i*(kt+t),wr+=i*(jt+n),mn+=i*3,Vt(kt=t,jt=n)}function Go(t){this._context=t}Go.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:{this._context.moveTo(t,n),this._point=1;break}case 1:{this._context.lineTo(t,n);break}default:{this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,lt);break}}},result:J};var _r=new at,He,Yo,Zo,yn,xn,Rn={point:J,lineStart:function(){Rn.point=Gs},lineEnd:function(){He&&Ho(Yo,Zo),Rn.point=J},polygonStart:function(){He=!0},polygonEnd:function(){He=null},result:function(){var t=+_r;return _r=new at,t}};function Gs(t,n){Rn.point=Ho,Yo=yn=t,Zo=xn=n}function Ho(t,n){yn-=t,xn-=n,_r.add(it(yn*yn+xn*xn)),yn=t,xn=n}function Uo(){this._string=[]}Uo.prototype={_radius:4.5,_circle:Fi(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:{this._string.push("M",t,",",n),this._point=1;break}case 1:{this._string.push("L",t,",",n);break}default:{this._circle==null&&(this._circle=Fi(this._radius)),this._string.push("M",t,",",n,this._circle);break}}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}else return null}};function Fi(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Wo(t,n){var e=4.5,r,i;function o(a){return a&&(typeof e=="function"&&i.pointRadius(+e.apply(this,arguments)),Nt(a,r(i))),i.result()}return o.area=function(a){return Nt(a,r(It)),It.result()},o.measure=function(a){return Nt(a,r(Rn)),Rn.result()},o.bounds=function(a){return Nt(a,r(Ee)),Ee.result()},o.centroid=function(a){return Nt(a,r(Et)),Et.result()},o.projection=function(a){return arguments.length?(r=a==null?(t=null,kn):(t=a).stream,o):t},o.context=function(a){return arguments.length?(i=a==null?(n=null,new Uo):new Go(n=a),typeof e!="function"&&i.pointRadius(e),o):n},o.pointRadius=function(a){return arguments.length?(e=typeof a=="function"?a:(i.pointRadius(+a),+a),o):e},o.projection(t).context(n)}function Ys(t){return{stream:Ln(t)}}function Ln(t){return function(n){var e=new Er;for(var r in t)e[r]=t[r];return e.stream=n,e}}function Er(){}Er.prototype={constructor:Er,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Or(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),r!=null&&t.clipExtent(null),Nt(e,t.stream(Ee)),n(Ee.result()),r!=null&&t.clipExtent(r),t}function Ae(t,n,e){return Or(t,function(r){var i=n[1][0]-n[0][0],o=n[1][1]-n[0][1],a=Math.min(i/(r[1][0]-r[0][0]),o/(r[1][1]-r[0][1])),u=+n[0][0]+(i-a*(r[1][0]+r[0][0]))/2,c=+n[0][1]+(o-a*(r[1][1]+r[0][1]))/2;t.scale(150*a).translate([u,c])},e)}function Lr(t,n,e){return Ae(t,[[0,0],n],e)}function Ir(t,n,e){return Or(t,function(r){var i=+n,o=i/(r[1][0]-r[0][0]),a=(i-o*(r[1][0]+r[0][0]))/2,u=-o*r[0][1];t.scale(150*o).translate([a,u])},e)}function Fr(t,n,e){return Or(t,function(r){var i=+n,o=i/(r[1][1]-r[0][1]),a=-o*r[0][0],u=(i-o*(r[1][1]+r[0][1]))/2;t.scale(150*o).translate([a,u])},e)}var Di=16,Zs=z(30*I);
vendor: 14,163 bytes, line 21
21function qi(t,n){return+n?Us(t,n):Hs(t)}function Hs(t){return Ln({point:function(n,e){n=t(n,e),this.stream.point(n[0],n[1])}})}function Us(t,n){function e(r,i,o,a,u,c,l,s,f,h,p,d,x,S){var w=l-r,N=s-i,m=w*w+N*N;if(m>4*n&&x--){var _=a+h,b=u+p,P=c+d,A=it(_*_+b*b+P*P),F=ht(P/=A),q=Z(Z(P)-1)<L||Z(o-f)<L?(o+f)/2:ft(b,_),M=t(q,F),$=M[0],D=M[1],X=$-r,g=D-i,v=N*X-w*g;(v*v/m>n||Z((w*X+N*g)/m-.5)>.3||a*h+u*p+c*d<Zs)&&(e(r,i,o,a,u,c,$,D,q,_/=A,b/=A,P,x,S),S.point($,D),e($,D,q,_,b,P,l,s,f,h,p,d,x,S))}}return function(r){var i,o,a,u,c,l,s,f,h,p,d,x,S={point:w,lineStart:N,lineEnd:_,polygonStart:function(){r.polygonStart(),S.lineStart=b},polygonEnd:function(){r.polygonEnd(),S.lineStart=N}};function w(F,q){F=t(F,q),r.point(F[0],F[1])}function N(){f=NaN,S.point=m,r.lineStart()}function m(F,q){var M=Wt([F,q]),$=t(F,q);e(f,h,s,p,d,x,f=$[0],h=$[1],s=F,p=M[0],d=M[1],x=M[2],Di,r),r.point(f,h)}function _(){S.point=w,r.lineEnd()}function b(){N(),S.point=P,S.lineEnd=A}function P(F,q){m(i=F,q),o=f,a=h,u=p,c=d,l=x,S.point=m}function A(){e(f,h,s,p,d,x,o,a,i,u,c,l,Di,r),S.lineEnd=_,_()}return S}}var Ws=Ln({point:function(t,n){this.stream.point(t*I,n*I)}});function Vs(t){return Ln({point:function(n,e){var r=t(n,e);return this.stream.point(r[0],r[1])}})}function Ks(t,n,e,r,i){function o(a,u){return a*=r,u*=i,[n+t*a,e-t*u]}return o.invert=function(a,u){return[(a-n)/t*r,(e-u)/t*i]},o}function Bi(t,n,e,r,i,o){if(!o)return Ks(t,n,e,r,i);var a=z(o),u=C(o),c=a*t,l=u*t,s=a/t,f=u/t,h=(u*e-a*n)/t,p=(u*n+a*e)/t;function d(x,S){return x*=r,S*=i,[c*x-l*S+n,e-l*x-c*S]}return d.invert=function(x,S){return[r*(s*x-f*S+h),i*(p-f*x-s*S)]},d}function Tt(t){return Dr(function(){return t})()}function Dr(t){var n,e=150,r=480,i=250,o=0,a=0,u=0,c=0,l=0,s,f=0,h=1,p=1,d=null,x=lr,S=null,w,N,m,_=kn,b=.5,P,A,F,q,M;function $(v){return F(v[0]*I,v[1]*I)}function D(v){return v=F.invert(v[0],v[1]),v&&[v[0]*W,v[1]*W]}$.stream=function(v){return q&&M===v?q:q=Ws(Vs(s)(x(P(_(M=v)))))},$.preclip=function(v){return arguments.length?(x=v,d=void 0,g()):x},$.postclip=function(v){return arguments.length?(_=v,S=w=N=m=null,g()):_},$.clipAngle=function(v){return arguments.length?(x=+v?zo(d=v*I):(d=null,lr),g()):d*W},$.clipExtent=function(v){return arguments.length?(_=v==null?(S=w=N=m=null,kn):Te(S=+v[0][0],w=+v[0][1],N=+v[1][0],m=+v[1][1]),g()):S==null?null:[[S,w],[N,m]]},$.scale=function(v){return arguments.length?(e=+v,X()):e},$.translate=function(v){return arguments.length?(r=+v[0],i=+v[1],X()):[r,i]},$.center=function(v){return arguments.length?(o=v[0]%360*I,a=v[1]%360*I,X()):[o*W,a*W]},$.rotate=function(v){return arguments.length?(u=v[0]%360*I,c=v[1]%360*I,l=v.length>2?v[2]%360*I:0,X()):[u*W,c*W,l*W]},$.angle=function(v){return arguments.length?(f=v%360*I,X()):f*W},$.reflectX=function(v){return arguments.length?(h=v?-1:1,X()):h<0},$.reflectY=function(v){return arguments.length?(p=v?-1:1,X()):p<0},$.precision=function(v){return arguments.length?(P=qi(A,b=v*v),g()):it(b)},$.fitExtent=function(v,y){return Ae($,v,y)},$.fitSize=function(v,y){return Lr($,v,y)},$.fitWidth=function(v,y){return Ir($,v,y)},$.fitHeight=function(v,y){return Fr($,v,y)};function X(){var v=Bi(e,0,0,h,p,f).apply(null,n(o,a)),y=Bi(e,r-v[0],i-v[1],h,p,f);return s=Ar(u,c,l),A=ur(n,y),F=ur(s,A),P=qi(A,b),g()}function g(){return q=M=null,$}return function(){return n=t.apply(this,arguments),$.invert=n.invert&&D,X()}}function qr(t){var n=0,e=Y/3,r=Dr(t),i=r(n,e);return i.parallels=function(o){return arguments.length?r(n=o[0]*I,e=o[1]*I):[n*W,e*W]},i}function Qs(t){var n=z(t);function e(r,i){return[r*n,C(i)/n]}return e.invert=function(r,i){return[r/n,ht(i*n)]},e}function Vo(t,n){var e=C(t),r=(e+C(n))/2;if(Z(r)<L)return Qs(t);var i=1+e*(2*r-e),o=it(i)/r;function a(u,c){var l=it(i-2*r*C(c))/r;return[l*C(u*=r),o-l*z(u)]}return a.invert=function(u,c){var l=o-c,s=ft(u,Z(l))*St(l);return l*r<0&&(s-=Y*St(u)*St(l)),[s/r,ht((i-(u*u+l*l)*r*r)/(2*r))]},a}function Ne(){return qr(Vo).scale(155.424).center([0,33.6442])}function Ko(){return Ne().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Js(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i<n;)t[i].point(e,r)},sphere:function(){for(var e=-1;++e<n;)t[e].sphere()},lineStart:function(){for(var e=-1;++e<n;)t[e].lineStart()},lineEnd:function(){for(var e=-1;++e<n;)t[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<n;)t[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<n;)t[e].polygonEnd()}}}function tu(){var t,n,e=Ko(),r,i=Ne().rotate([154,0]).center([-2,58.5]).parallels([55,65]),o,a=Ne().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u,c,l={point:function(h,p){c=[h,p]}};function s(h){var p=h[0],d=h[1];return c=null,r.point(p,d),c||(o.point(p,d),c)||(u.point(p,d),c)}s.invert=function(h){var p=e.scale(),d=e.translate(),x=(h[0]-d[0])/p,S=(h[1]-d[1])/p;return(S>=.12&&S<.234&&x>=-.425&&x<-.214?i:S>=.166&&S<.234&&x>=-.214&&x<-.115?a:e).invert(h)},s.stream=function(h){return t&&n===h?t:t=Js([e.stream(n=h),i.stream(h),a.stream(h)])},s.precision=function(h){return arguments.length?(e.precision(h),i.precision(h),a.precision(h),f()):e.precision()},s.scale=function(h){return arguments.length?(e.scale(h),i.scale(h*.35),a.scale(h),s.translate(e.translate())):e.scale()},s.translate=function(h){if(!arguments.length)return e.translate();var p=e.scale(),d=+h[0],x=+h[1];return r=e.translate(h).clipExtent([[d-.455*p,x-.238*p],[d+.455*p,x+.238*p]]).stream(l),o=i.translate([d-.307*p,x+.201*p]).clipExtent([[d-.425*p+L,x+.12*p+L],[d-.214*p-L,x+.234*p-L]]).stream(l),u=a.translate([d-.205*p,x+.212*p]).clipExtent([[d-.214*p+L,x+.166*p+L],[d-.115*p-L,x+.234*p-L]]).stream(l),f()},s.fitExtent=function(h,p){return Ae(s,h,p)},s.fitSize=function(h,p){return Lr(s,h,p)},s.fitWidth=function(h,p){return Ir(s,h,p)},s.fitHeight=function(h,p){return Fr(s,h,p)};function f(){return t=n=null,s}return s.scale(1070)}function Qo(t){return function(n,e){var r=z(n),i=z(e),o=t(r*i);return o===1/0?[2,0]:[o*i*C(n),o*C(e)]}}function In(t){return function(n,e){var r=it(n*n+e*e),i=t(r),o=C(i),a=z(i);return[ft(n*o,r*a),ht(r&&e*o/r)]}}var Br=Qo(function(t){return it(2/(1+t))});Br.invert=In(function(t){return 2*ht(t/2)});function nu(){return Tt(Br).scale(124.75).clipAngle(180-.001)}var Xr=Qo(function(t){return(t=yo(t))&&t/C(t)});Xr.invert=In(function(t){return t});function eu(){return Tt(Xr).scale(79.4188).clipAngle(180-.001)}function Fn(t,n){return[t,oe(Cr((nt+n)/2))]}Fn.invert=function(t,n){return[t,2*ln(mo(n))-nt]};function ru(){return Jo(Fn).scale(961/lt)}function Jo(t){var n=Tt(t),e=n.center,r=n.scale,i=n.translate,o=n.clipExtent,a=null,u,c,l;n.scale=function(f){return arguments.length?(r(f),s()):r()},n.translate=function(f){return arguments.length?(i(f),s()):i()},n.center=function(f){return arguments.length?(e(f),s()):e()},n.clipExtent=function(f){return arguments.length?(f==null?a=u=c=l=null:(a=+f[0][0],u=+f[0][1],c=+f[1][0],l=+f[1][1]),s()):a==null?null:[[a,u],[c,l]]};function s(){var f=Y*r(),h=n(jo(n.rotate()).invert([0,0]));return o(a==null?[[h[0]-f,h[1]-f],[h[0]+f,h[1]+f]]:t===Fn?[[Math.max(h[0]-f,a),u],[Math.min(h[0]+f,c),l]]:[[a,Math.max(h[1]-f,u)],[c,Math.min(h[1]+f,l)]])}return s()}function Hn(t){return Cr((nt+t)/2)}function ta(t,n){var e=z(t),r=t===n?C(t):oe(e/z(n))/oe(Hn(n)/Hn(t)),i=e*Xe(Hn(t),r)/r;if(!r)return Fn;function o(a,u){i>0?u<-nt+L&&(u=-nt+L):u>nt-L&&(u=nt-L);var c=i/Xe(Hn(u),r);return[c*C(r*a),i-c*z(r*a)]}return o.invert=function(a,u){var c=i-u,l=St(r)*it(a*a+c*c),s=ft(a,Z(c))*St(c);return c*r<0&&(s-=Y*St(a)*St(c)),[s/r,2*ln(Xe(i/l,1/r))-nt]},o}function iu(){return qr(ta).scale(109.5).parallels([30,30])}function $n(t,n){return[t,n]}$n.invert=$n;function ou(){return Tt($n).scale(152.63)}function na(t,n){var e=z(t),r=t===n?C(t):(e-z(n))/(n-t),i=e/r+t;if(Z(r)<L)return $n;function o(a,u){var c=i-u,l=r*a;return[c*C(l),i-c*z(l)]}return o.invert=function(a,u){var c=i-u,l=ft(a,Z(c))*St(c);return c*r<0&&(l-=Y*St(a)*St(c)),[l/r,i-St(r)*it(a*a+c*c)]},o}function au(){return qr(na).scale(131.154).center([0,13.9389])}var Sn=1.340264,Mn=-.081106,Nn=893e-6,bn=.003796,be=it(3)/2,su=12;function Gr(t,n){var e=ht(be*C(n)),r=e*e,i=r*r*r;return[t*z(e)/(be*(Sn+3*Mn*r+i*(7*Nn+9*bn*r))),e*(Sn+Mn*r+i*(Nn+bn*r))]}Gr.invert=function(t,n){for(var e=n,r=e*e,i=r*r*r,o=0,a,u,c;o<su&&(u=e*(Sn+Mn*r+i*(Nn+bn*r))-n,c=Sn+3*Mn*r+i*(7*Nn+9*bn*r),e-=a=u/c,r=e*e,i=r*r*r,!(Z(a)<Pn));++o);return[be*t*(Sn+3*Mn*r+i*(7*Nn+9*bn*r))/z(e),ht(C(e)/be)]};function uu(){return Tt(Gr).scale(177.158)}function Yr(t,n){var e=z(n),r=z(t)*e;return[e*C(t)/r,C(n)/r]}Yr.invert=In(ln);function cu(){return Tt(Yr).scale(144.049).clipAngle(60)}function lu(){var t=1,n=0,e=0,r=1,i=1,o=0,a,u,c=null,l,s,f,h=1,p=1,d=Ln({point:function(_,b){var P=m([_,b]);this.stream.point(P[0],P[1])}}),x=kn,S,w;function N(){return h=t*r,p=t*i,S=w=null,m}function m(_){var b=_[0]*h,P=_[1]*p;if(o){var A=P*a-b*u;b=b*a+P*u,P=A}return[b+n,P+e]}return m.invert=function(_){var b=_[0]-n,P=_[1]-e;if(o){var A=P*a+b*u;b=b*a-P*u,P=A}return[b/h,P/p]},m.stream=function(_){return S&&w===_?S:S=d(x(w=_))},m.postclip=function(_){return arguments.length?(x=_,c=l=s=f=null,N()):x},m.clipExtent=function(_){return arguments.length?(x=_==null?(c=l=s=f=null,kn):Te(c=+_[0][0],l=+_[0][1],s=+_[1][0],f=+_[1][1]),N()):c==null?null:[[c,l],[s,f]]},m.scale=function(_){return arguments.length?(t=+_,N()):t},m.translate=function(_){return arguments.length?(n=+_[0],e=+_[1],N()):[n,e]},m.angle=function(_){return arguments.length?(o=_%360*I,u=C(o),a=z(o),N()):o*W},m.reflectX=function(_){return arguments.length?(r=_?-1:1,N()):r<0},m.reflectY=function(_){return arguments.length?(i=_?-1:1,N()):i<0},m.fitExtent=function(_,b){return Ae(m,_,b)},m.fitSize=function(_,b){return Lr(m,_,b)},m.fitWidth=function(_,b){return Ir(m,_,b)},m.fitHeight=function(_,b){return Fr(m,_,b)},m}function Zr(t,n){var e=n*n,r=e*e;return[t*(.8707-.131979*e+r*(-.013791+r*(.003971*e-.001529*r))),n*(1.007226+e*(.015085+r*(-.044475+.028874*e-.005916*r)))]}Zr.invert=function(t,n){var e=n,r=25,i;do{var o=e*e,a=o*o;e-=i=(e*(1.007226+o*(.015085+a*(-.044475+.028874*o-.005916*a)))-n)/(1.007226+o*(.015085*3+a*(-.044475*7+.028874*9*o-.005916*11*a)))}while(Z(i)>L&&--r>0);return[t/(.8707+(o=e*e)*(-.131979+o*(-.013791+o*o*o*(.003971-.001529*o)))),e]};function fu(){return Tt(Zr).scale(175.295)}function Hr(t,n){return[z(n)*C(t),C(n)]}Hr.invert=In(ht);function hu(){return Tt(Hr).scale(249.5).clipAngle(90+L)}function Ur(t,n){var e=z(n),r=1+z(t)*e;return[e*C(t)/r,C(n)/r]}Ur.invert=In(function(t){return 2*ln(t)});function pu(){return Tt(Ur).scale(250).clipAngle(142)}function Wr(t,n){return[oe(Cr((nt+n)/2)),-t]}Wr.invert=function(t,n){return[-n,2*ln(mo(t))-nt]};function du(){var t=Jo(Wr),n=t.center,e=t.rotate;return t.center=function(r){return arguments.length?n([-r[1],r[0]]):(r=n(),[r[1],-r[0]])},t.rotate=function(r){return arguments.length?e([r[0],r[1],r.length>2?r[2]+90:90]):(r=e(),[r[0],r[1],r[2]-90])},e([0,0,90]).scale(159.155)}const gu=Object.freeze(Object.defineProperty({__proto__:null,geoAlbers:Ko,geoAlbersUsa:tu,geoArea:ss,geoAzimuthalEqualArea:nu,geoAzimuthalEqualAreaRaw:Br,geoAzimuthalEquidistant:eu,geoAzimuthalEquidistantRaw:Xr,geoBounds:fs,geoCentroid:ms,geoCircle:ys,geoClipAntimeridian:lr,geoClipCircle:zo,geoClipExtent:Ns,geoClipRectangle:Te,geoConicConformal:iu,geoConicConformalRaw:ta,geoConicEqualArea:Ne,geoConicEqualAreaRaw:Vo,geoConicEquidistant:au,geoConicEquidistantRaw:na,geoContains:Cs,geoDistance:ye,geoEqualEarth:uu,geoEqualEarthRaw:Gr,geoEquirectangular:ou,geoEquirectangularRaw:$n,geoGnomonic:cu,geoGnomonicRaw:Yr,geoGraticule:zr,geoGraticule10:Ts,geoIdentity:lu,geoInterpolate:As,geoLength:Oo,geoMercator:ru,geoMercatorRaw:Fn,geoNaturalEarth1:fu,geoNaturalEarth1Raw:Zr,geoOrthographic:hu,geoOrthographicRaw:Hr,geoPath:Wo,geoProjection:Tt,geoProjectionMutator:Dr,geoRotation:jo,geoStereographic:pu,geoStereographicRaw:Ur,geoStream:Nt,geoTransform:Ys,geoTransverseMercator:du,geoTransverseMercatorRaw:Wr},Symbol.toStringTag,{value:"Module"}));function vu(t){return t}function mu(t){if(t==null)return vu;var n,e,r=t.scale[0],i=t.scale[1],o=t.translate[0],a=t.translate[1];return function(u,c){c||(n=e=0);var l=2,s=u.length,f=new Array(s);for(f[0]=(n+=u[0])*r+o,f[1]=(e+=u[1])*i+a;l<s;)f[l]=u[l],++l;return f}}function yu(t,n){for(var e,r=t.length,i=r-n;i<--r;)e=t[i],t[i++]=t[r],t[r]=e}function xu(t,n){return typeof n=="string"&&(n=t.objects[n]),n.type==="GeometryCollection"?{type:"FeatureCollection",features:n.geometries.map(function(e){return Xi(t,e)})}:Xi(t,n)}function Xi(t,n){var e=n.id,r=n.bbox,i=n.properties==null?{}:n.properties,o=ea(t,n);return e==null&&r==null?{type:"Feature",properties:i,geometry:o}:r==null?{type:"Feature",id:e,properties:i,geometry:o}:{type:"Feature",id:e,bbox:r,properties:i,geometry:o}}function ea(t,n){var e=mu(t.transform),r=t.arcs;function i(s,f){f.length&&f.pop();for(var h=r[s<0?~s:s],p=0,d=h.length;p<d;++p)f.push(e(h[p],p));s<0&&yu(f,d)}function o(s){return e(s)}function a(s){for(var f=[],h=0,p=s.length;h<p;++h)i(s[h],f);return f.length<2&&f.push(f[0]),f}function u(s){for(var f=a(s);f.length<4;)f.push(f[0]);return f}function c(s){return s.map(u)}function l(s){var f=s.type,h;switch(f){case"GeometryCollection":return{type:f,geometries:s.geometries.map(l)};case"Point":h=o(s.coordinates);break;case"MultiPoint":h=s.coordinates.map(o);break;case"LineString":h=a(s.arcs);break;case"MultiLineString":h=s.arcs.map(a);break;case"Polygon":h=c(s.arcs);break;case"MultiPolygon":h=s.arcs.map(c);break;default:return null}return{type:f,coordinates:h}}return l(n)}function wu(t,n){var e={},r={},i={},o=[],a=-1;n.forEach(function(l,s){var f=t.arcs[l<0?~l:l],h;f.length<3&&!f[1][0]&&!f[1][1]&&(h=n[++a],n[a]=l,n[s]=h)}),n.forEach(function(l){var s=u(l),f=s[0],h=s[1],p,d;if(p=i[f])if(delete i[p.end],p.push(l),p.end=h,d=r[h]){delete r[d.start];var x=d===p?p:p.concat(d);r[x.start=p.start]=i[x.end=d.end]=x}else r[p.start]=i[p.end]=p;else if(p=r[h])if(delete r[p.start],p.unshift(l),p.start=f,d=i[f]){delete i[d.end];var S=d===p?p:d.concat(p);r[S.start=d.start]=i[S.end=p.end]=S}else r[p.start]=i[p.end]=p;else p=[l],r[p.start=f]=i[p.end=h]=p});function u(l){var s=t.arcs[l<0?~l:l],f=s[0],h;
21return t.transform?(h=[0,0],s.forEach(function(p){h[0]+=p[0],h[1]+=p[1]})):h=s[s.length-1],l<0?[h,f]:[f,h]}function c(l,s){for(var f in l){var h=l[f];delete s[h.start],delete h.start,delete h.end,h.forEach(function(p){e[p<0?~p:p]=1}),o.push(h)}}return c(i,r),c(r,i),n.forEach(function(l){e[l<0?~l:l]||o.push([l])}),o}function Gi(t){return ea(t,_u.apply(this,arguments))}function _u(t,n,e){var r,i,o;if(arguments.length>1)r=Eu(t,n,e);else for(i=0,r=new Array(o=t.arcs.length);i<o;++i)r[i]=i;return{type:"MultiLineString",arcs:wu(t,r)}}function Eu(t,n,e){var r=[],i=[],o;function a(f){var h=f<0?~f:f;(i[h]||(i[h]=[])).push({i:f,g:o})}function u(f){f.forEach(a)}function c(f){f.forEach(u)}function l(f){f.forEach(c)}function s(f){switch(o=f,f.type){case"GeometryCollection":f.geometries.forEach(s);break;case"LineString":u(f.arcs);break;case"MultiLineString":case"Polygon":c(f.arcs);break;case"MultiPolygon":l(f.arcs);break}}return s(n),i.forEach(e==null?function(f){r.push(f[0].i)}:function(f){e(f[0].g,f[f.length-1].g)&&r.push(f[0].i)}),r}var Su={value:()=>{}};function Vr(){for(var t=0,n=arguments.length,e={},r;t<n;++t){if(!(r=arguments[t]+"")||r in e||/[\s.]/.test(r))throw new Error("illegal type: "+r);e[r]=[]}return new te(e)}function te(t){this._=t}function Mu(t,n){return t.trim().split(/^|\s+/).map(function(e){var r="",i=e.indexOf(".");if(i>=0&&(r=e.slice(i+1),e=e.slice(0,i)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:r}})}te.prototype=Vr.prototype={constructor:te,on:function(t,n){var e=this._,r=Mu(t+"",e),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(t=r[o]).type)&&(i=Nu(e[i],t.name)))return i;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++o<a;)if(i=(t=r[o]).type)e[i]=Yi(e[i],t.name,n);else if(n==null)for(i in e)e[i]=Yi(e[i],t.name,null);return this},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new te(t)},call:function(t,n){if((i=arguments.length-2)>0)for(var e=new Array(i),r=0,i,o;r<i;++r)e[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(n,e)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};function Nu(t,n){for(var e=0,r=t.length,i;e<r;++e)if((i=t[e]).name===n)return i.value}function Yi(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=Su,t=t.slice(0,r).concat(t.slice(r+1));break}return e!=null&&t.push({name:n,value:e}),t}var Sr="http://www.w3.org/1999/xhtml";const Zi={svg:"http://www.w3.org/2000/svg",xhtml:Sr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ze(t){var n=t+="",e=n.indexOf(":");return e>=0&&(n=t.slice(0,e))!=="xmlns"&&(t=t.slice(e+1)),Zi.hasOwnProperty(n)?{space:Zi[n],local:t}:t}function bu(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Sr&&n.documentElement.namespaceURI===Sr?n.createElement(t):n.createElementNS(e,t)}}function Pu(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ra(t){var n=ze(t);return(n.local?Pu:bu)(n)}function ku(){}function Kr(t){return t==null?ku:function(){return this.querySelector(t)}}function ju(t){typeof t!="function"&&(t=Kr(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o=n[i],a=o.length,u=r[i]=new Array(a),c,l,s=0;s<a;++s)(c=o[s])&&(l=t.call(c,c.__data__,s,o))&&("__data__"in c&&(l.__data__=c.__data__),u[s]=l);return new dt(r,this._parents)}function ia(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Ru(){return[]}function oa(t){return t==null?Ru:function(){return this.querySelectorAll(t)}}function $u(t){return function(){var n=t.apply(this,arguments);return n==null?[]:ia(n)}}function Cu(t){typeof t=="function"?t=$u(t):t=oa(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var a=n[o],u=a.length,c,l=0;l<u;++l)(c=a[l])&&(r.push(t.call(c,c.__data__,l,a)),i.push(c));return new dt(r,i)}function aa(t){return function(){return this.matches(t)}}function sa(t){return function(n){return n.matches(t)}}var Tu=Array.prototype.find;function Au(t){return function(){return Tu.call(this.children,t)}}function zu(){return this.firstElementChild}function Ou(t){return this.select(t==null?zu:Au(typeof t=="function"?t:sa(t)))}var Lu=Array.prototype.filter;function Iu(){return this.children}function Fu(t){return function(){return Lu.call(this.children,t)}}function Du(t){return this.selectAll(t==null?Iu:Fu(typeof t=="function"?t:sa(t)))}function qu(t){typeof t!="function"&&(t=aa(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o=n[i],a=o.length,u=r[i]=[],c,l=0;l<a;++l)(c=o[l])&&t.call(c,c.__data__,l,o)&&u.push(c);return new dt(r,this._parents)}function ua(t){return new Array(t.length)}function Bu(){return new dt(this._enter||this._groups.map(ua),this._parents)}function Pe(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}Pe.prototype={constructor:Pe,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Xu(t){return function(){return t}}function Gu(t,n,e,r,i,o){for(var a=0,u,c=n.length,l=o.length;a<l;
vendor: 8,161 bytes, line 21
21++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new Pe(t,o[a]);for(;a<c;++a)(u=n[a])&&(i[a]=u)}function Yu(t,n,e,r,i,o,a){var u,c,l=new Map,s=n.length,f=o.length,h=new Array(s),p;for(u=0;u<s;++u)(c=n[u])&&(h[u]=p=a.call(c,c.__data__,u,n)+"",l.has(p)?i[u]=c:l.set(p,c));for(u=0;u<f;++u)p=a.call(t,o[u],u,o)+"",(c=l.get(p))?(r[u]=c,c.__data__=o[u],l.delete(p)):e[u]=new Pe(t,o[u]);for(u=0;u<s;++u)(c=n[u])&&l.get(h[u])===c&&(i[u]=c)}function Zu(t){return t.__data__}function Hu(t,n){if(!arguments.length)return Array.from(this,Zu);var e=n?Yu:Gu,r=this._parents,i=this._groups;typeof t!="function"&&(t=Xu(t));for(var o=i.length,a=new Array(o),u=new Array(o),c=new Array(o),l=0;l<o;++l){var s=r[l],f=i[l],h=f.length,p=ia(t.call(s,s&&s.__data__,l,r)),d=p.length,x=u[l]=new Array(d),S=a[l]=new Array(d),w=c[l]=new Array(h);e(s,f,x,S,w,p,n);for(var N=0,m=0,_,b;N<d;++N)if(_=x[N]){for(N>=m&&(m=N+1);!(b=S[m])&&++m<d;);_._next=b||null}}return a=new dt(a,r),a._enter=u,a._exit=c,a}function Uu(){return new dt(this._exit||this._groups.map(ua),this._parents)}function Wu(t,n,e){var r=this.enter(),i=this,o=this.exit();return r=typeof t=="function"?t(r):r.append(t+""),n!=null&&(i=n(i)),e==null?o.remove():e(o),r&&i?r.merge(i).order():i}function Vu(t){if(!(t instanceof dt))throw new Error("invalid merge");for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var c=n[u],l=e[u],s=c.length,f=a[u]=new Array(s),h,p=0;p<s;++p)(h=c[p]||l[p])&&(f[p]=h);for(;u<r;++u)a[u]=n[u];return new dt(a,this._parents)}function Ku(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r=t[n],i=r.length-1,o=r[i],a;--i>=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function Qu(t){t||(t=Ju);function n(f,h){return f&&h?t(f.__data__,h.__data__):!f-!h}for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var a=e[o],u=a.length,c=i[o]=new Array(u),l,s=0;s<u;++s)(l=a[s])&&(c[s]=l);c.sort(n)}return new dt(i,this._parents).order()}function Ju(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function tc(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function nc(){return Array.from(this)}function ec(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function rc(){let t=0;for(const n of this)++t;return t}function ic(){return!this.node()}function oc(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i=n[e],o=0,a=i.length,u;o<a;++o)(u=i[o])&&t.call(u,u.__data__,o,i);return this}function ac(t){return function(){this.removeAttribute(t)}}function sc(t){return function(){this.removeAttributeNS(t.space,t.local)}}function uc(t,n){return function(){this.setAttribute(t,n)}}function cc(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function lc(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttribute(t):this.setAttribute(t,e)}}function fc(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function hc(t,n){var e=ze(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((n==null?e.local?sc:ac:typeof n=="function"?e.local?fc:lc:e.local?cc:uc)(e,n))}function ca(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function pc(t){return function(){this.style.removeProperty(t)}}function dc(t,n,e){return function(){this.style.setProperty(t,n,e)}}function gc(t,n,e){return function(){var r=n.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function vc(t,n,e){return arguments.length>1?this.each((n==null?pc:typeof n=="function"?gc:dc)(t,n,e??"")):un(this.node(),t)}function un(t,n){return t.style.getPropertyValue(n)||ca(t).getComputedStyle(t,null).getPropertyValue(n)}function mc(t){return function(){delete this[t]}}function yc(t,n){return function(){this[t]=n}}function xc(t,n){return function(){var e=n.apply(this,arguments);e==null?delete this[t]:this[t]=e}}function wc(t,n){return arguments.length>1?this.each((n==null?mc:typeof n=="function"?xc:yc)(t,n)):this.node()[t]}function la(t){return t.trim().split(/^|\s+/)}function Qr(t){return t.classList||new fa(t)}function fa(t){this._node=t,this._names=la(t.getAttribute("class")||"")}fa.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function ha(t,n){for(var e=Qr(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function pa(t,n){for(var e=Qr(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function _c(t){return function(){ha(this,t)}}function Ec(t){return function(){pa(this,t)}}function Sc(t,n){return function(){(n.apply(this,arguments)?ha:pa)(this,t)}}function Mc(t,n){var e=la(t+"");if(arguments.length<2){for(var r=Qr(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each((typeof n=="function"?Sc:n?_c:Ec)(e,n))}function Nc(){this.textContent=""}function bc(t){return function(){this.textContent=t}}function Pc(t){return function(){var n=t.apply(this,arguments);this.textContent=n??""}}function kc(t){return arguments.length?this.each(t==null?Nc:(typeof t=="function"?Pc:bc)(t)):this.node().textContent}function jc(){this.innerHTML=""}function Rc(t){return function(){this.innerHTML=t}}function $c(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n??""}}function Cc(t){return arguments.length?this.each(t==null?jc:(typeof t=="function"?$c:Rc)(t)):this.node().innerHTML}function Tc(){this.nextSibling&&this.parentNode.appendChild(this)}function Ac(){return this.each(Tc)}function zc(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Oc(){return this.each(zc)}function Lc(t){var n=typeof t=="function"?t:ra(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function Ic(){return null}function Fc(t,n){var e=typeof t=="function"?t:ra(t),r=n==null?Ic:typeof n=="function"?n:Kr(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})}function Dc(){var t=this.parentNode;t&&t.removeChild(this)}function qc(){return this.each(Dc)}function Bc(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Xc(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Gc(t){return this.select(t?Xc:Bc)}function Yc(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Zc(t){return function(n){t.call(this,n,this.__data__)}}function Hc(t){return t.trim().split(/^|\s+/).map(function(n){var e="",r=n.indexOf(".");return r>=0&&(e=n.slice(r+1),n=n.slice(0,r)),{type:n,name:e}})}function Uc(t){return function(){var n=this.__on;if(n){for(var e=0,r=-1,i=n.length,o;e<i;++e)o=n[e],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):n[++r]=o;++r?n.length=r:delete this.__on}}}function Wc(t,n,e){return function(){var r=this.__on,i,o=Zc(n);if(r){for(var a=0,u=r.length;a<u;++a)if((i=r[a]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=e),i.value=n;return}}this.addEventListener(t.type,o,e),i={type:t.type,name:t.name,value:n,listener:o,options:e},r?r.push(i):this.__on=[i]}}function Vc(t,n,e){var r=Hc(t+""),i,o=r.length,a;if(arguments.length<2){var u=this.node().__on;if(u){for(var c=0,l=u.length,s;c<l;++c)for(i=0,s=u[c];i<o;++i)if((a=r[i]).type===s.type&&a.name===s.name)return s.value}return}for(u=n?Wc:Uc,i=0;i<o;++i)this.each(u(r[i],n,e));return this}function da(t,n,e){var r=ca(t),i=r.CustomEvent;typeof i=="function"?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dis
vendor: 5,470 bytes, line 21
21patchEvent(i)}function Kc(t,n){return function(){return da(this,t,n)}}function Qc(t,n){return function(){return da(this,t,n.apply(this,arguments))}}function Jc(t,n){return this.each((typeof n=="function"?Qc:Kc)(t,n))}function*tl(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length,a;i<o;++i)(a=r[i])&&(yield a)}var ga=[null];function dt(t,n){this._groups=t,this._parents=n}function Dn(){return new dt([[document.documentElement]],ga)}function nl(){return this}dt.prototype=Dn.prototype={constructor:dt,select:ju,selectAll:Cu,selectChild:Ou,selectChildren:Du,filter:qu,data:Hu,enter:Bu,exit:Uu,join:Wu,merge:Vu,selection:nl,order:Ku,sort:Qu,call:tc,nodes:nc,node:ec,size:rc,empty:ic,each:oc,attr:hc,style:vc,property:wc,classed:Mc,text:kc,html:Cc,raise:Ac,lower:Oc,append:Lc,insert:Fc,remove:qc,clone:Gc,datum:Yc,on:Vc,dispatch:Jc,[Symbol.iterator]:tl};function Ft(t){return typeof t=="string"?new dt([[document.querySelector(t)]],[document.documentElement]):new dt([[t]],ga)}function el(t){let n;for(;n=t.sourceEvent;)t=n;return t}function Zt(t,n){if(t=el(t),n===void 0&&(n=t.currentTarget),n){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(n.getScreenCTM().inverse()),[r.x,r.y]}if(n.getBoundingClientRect){var i=n.getBoundingClientRect();return[t.clientX-i.left-n.clientLeft,t.clientY-i.top-n.clientTop]}}return[t.pageX,t.pageY]}function Mr(t){t.preventDefault(),t.stopImmediatePropagation()}function rl(t){var n=t.document.documentElement,e=Ft(t).on("dragstart.drag",Mr,!0);"onselectstart"in n?e.on("selectstart.drag",Mr,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function il(t,n){var e=t.document.documentElement,r=Ft(t).on("dragstart.drag",null);n&&(r.on("click.drag",Mr,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}var ol=1e-12;function Hi(t){return((t=Math.exp(t))+1/t)/2}function al(t){return((t=Math.exp(t))-1/t)/2}function sl(t){return((t=Math.exp(2*t))-1)/(t+1)}const ul=(function t(n,e,r){function i(o,a){var u=o[0],c=o[1],l=o[2],s=a[0],f=a[1],h=a[2],p=s-u,d=f-c,x=p*p+d*d,S,w;if(x<ol)w=Math.log(h/l)/n,S=function(A){return[u+A*p,c+A*d,l*Math.exp(n*A*w)]};else{var N=Math.sqrt(x),m=(h*h-l*l+r*x)/(2*l*e*N),_=(h*h-l*l-r*x)/(2*h*e*N),b=Math.log(Math.sqrt(m*m+1)-m),P=Math.log(Math.sqrt(_*_+1)-_);w=(P-b)/n,S=function(A){var F=A*w,q=Hi(b),M=l/(e*N)*(q*sl(n*F+b)-al(b));return[u+M*p,c+M*d,l*q/Hi(n*F+b)]}}return S.duration=w*1e3*n/Math.SQRT2,S}return i.rho=function(o){var a=Math.max(.001,+o),u=a*a,c=u*u;return t(a,u,c)},i})(Math.SQRT2,2,4);var cn=0,wn=0,hn=0,va=1e3,ke,_n,je=0,Kt=0,Oe=0,Cn=typeof performance=="object"&&performance.now?performance:Date,ma=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Jr(){return Kt||(ma(cl),Kt=Cn.now()+Oe)}function cl(){Kt=0}function Re(){this._call=this._time=this._next=null}Re.prototype=ya.prototype={constructor:Re,restart:function(t,n,e){if(typeof t!="function")throw new TypeError("callback is not a function");e=(e==null?Jr():+e)+(n==null?0:+n),!this._next&&_n!==this&&(_n?_n._next=this:ke=this,_n=this),this._call=t,this._time=e,Nr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Nr())}};function ya(t,n,e){var r=new Re;return r.restart(t,n,e),r}function ll(){Jr(),++cn;for(var t=ke,n;t;)(n=Kt-t._time)>=0&&t._call.call(null,n),t=t._next;--cn}function Ui(){Kt=(je=Cn.now())+Oe,cn=wn=0;try{ll()}finally{cn=0,hl(),Kt=0}}function fl(){var t=Cn.now(),n=t-je;n>va&&(Oe-=n,je=t)}function hl(){for(var t,n=ke,e,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:ke=e);_n=t,Nr(r)}function Nr(t){if(!cn){wn&&(wn=clearTimeout(wn));var n=t-Kt;n>24?(t<1/0&&(wn=setTimeout(Ui,t-Cn.now()-Oe)),hn&&(hn=clearInterval(hn))):(hn||(je=Cn.now(),hn=setInterval(fl,va)),cn=1,ma(Ui))}}function Wi(t,n,e){var r=new Re;return n=n==null?0:+n,r.restart(i=>{r.stop(),t(i+n)},n,e),r}var pl=Vr("start","end","cancel","interrupt"),dl=[],xa=0,Vi=1,br=2,ne=3,Ki=4,Pr=5,ee=6;function Le(t,n,e,r,i,o){var a=t.__transition;if(!a)t.__transition={};else if(e in a)return;gl(t,e,{name:n,index:r,group:i,on:pl,tween:dl,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:xa})}function ti(t,n){var e=Pt(t,n);if(e.state>xa)throw new Error("too late; already scheduled");return e}function At(t,n){var e=Pt(t,n);if(e.state>ne)throw new Error("too late; already running");return e}function Pt(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function gl(t,n,e){var r=t.__transition,i;r[n]=e,e.timer=ya(o,0,e.time);function o(l){e.state=Vi,e.timer.restart(a,e.delay,e.time),e.delay<=l&&a(l-e.delay)}function a(l){var s,f,h,p;if(e.state!==Vi)return c();for(s in r)if(p=r[s],p.name===e.name){if(p.state===ne)return Wi(a);p.state===Ki?(p.state=ee,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[s]):+s<n&&(p.state=ee,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[s])}if(Wi(function(){e.state===ne&&(e.state=Ki,e.timer.restart(u,e.delay,e.time),u(l))}),e.state=br,e.on.call("start",t,t.__data__,e.index,e.group),e.state===br){for(e.state=ne,i=new Array(h=e.tween.length),s=0,f=-1;s<h;++s)(p=e.tween[s].value.call(t,t.__data__,e.index,e.group))&&(i[
vendor: 9,988 bytes, line 21
21++f]=p);i.length=f+1}}function u(l){for(var s=l<e.duration?e.ease.call(null,l/e.duration):(e.timer.restart(c),e.state=Pr,1),f=-1,h=i.length;++f<h;)i[f].call(t,s);e.state===Pr&&(e.on.call("end",t,t.__data__,e.index,e.group),c())}function c(){e.state=ee,e.timer.stop(),delete r[n];for(var l in r)return;delete t.__transition}}function re(t,n){var e=t.__transition,r,i,o=!0,a;if(e){n=n==null?null:n+"";for(a in e){if((r=e[a]).name!==n){o=!1;continue}i=r.state>br&&r.state<Pr,r.state=ee,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete e[a]}o&&delete t.__transition}}function vl(t){return this.each(function(){re(this,t)})}function ni(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function wa(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function qn(){}var Tn=.7,$e=1/Tn,rn="\\s*([+-]?\\d+)\\s*",An="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",$t="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ml=/^#([0-9a-f]{3,8})$/,yl=new RegExp("^rgb\\("+[rn,rn,rn]+"\\)$"),xl=new RegExp("^rgb\\("+[$t,$t,$t]+"\\)$"),wl=new RegExp("^rgba\\("+[rn,rn,rn,An]+"\\)$"),_l=new RegExp("^rgba\\("+[$t,$t,$t,An]+"\\)$"),El=new RegExp("^hsl\\("+[An,$t,$t]+"\\)$"),Sl=new RegExp("^hsla\\("+[An,$t,$t,An]+"\\)$"),Qi={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ni(qn,zn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ji,formatHex:Ji,formatHsl:Ml,formatRgb:to,toString:to});function Ji(){return this.rgb().formatHex()}function Ml(){return _a(this).formatHsl()}function to(){return this.rgb().formatRgb()}function zn(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=ml.exec(t))?(e=n[1].length,n=parseInt(n[1],16),e===6?no(n):e===3?new wt(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):e===8?Un(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):e===4?Un(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=yl.exec(t))?new wt(n[1],n[2],n[3],1):(n=xl.exec(t))?new wt(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=wl.exec(t))?Un(n[1],n[2],n[3],n[4]):(n=_l.exec(t))?Un(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=El.exec(t))?io(n[1],n[2]/100,n[3]/100,1):(n=Sl.exec(t))?io(n[1],n[2]/100,n[3]/100,n[4]):Qi.hasOwnProperty(t)?no(Qi[t]):t==="transparent"?new wt(NaN,NaN,NaN,0):null}function no(t){return new wt(t>>16&255,t>>8&255,t&255,1)}function Un(t,n,e,r){return r<=0&&(t=n=e=NaN),new wt(t,n,e,r)}function Nl(t){return t instanceof qn||(t=zn(t)),t?(t=t.rgb(),new wt(t.r,t.g,t.b,t.opacity)):new wt}function kr(t,n,e,r){return arguments.length===1?Nl(t):new wt(t,n,e,r??1)}function wt(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}ni(wt,kr,wa(qn,{brighter:function(t){return t=t==null?$e:Math.pow($e,t),new wt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Tn:Math.pow(Tn,t),new wt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:eo,formatHex:eo,formatRgb:ro,toString:ro}));function eo(){return"#"+Ue(this.r)+Ue(this.g)+Ue(this.b)}function ro(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function Ue(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function io(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Rt(t,n,e,r)}function _a(t){if(t instanceof Rt)return new Rt(t.h,t.s,t.l,t.opacity);if(t instanceof qn||(t=zn(t)),!t)return new Rt;if(t instanceof Rt)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(n===o?a=(e-r)/u+(e<r)*6:e===o?a=(r-n)/u+2:a=(n-e)/u+4,u/=c<.5?o+i:2-o-i,a*=60):u=c>0&&c<1?0:a,new Rt(a,u,c,t.opacity)}function bl(t,n,e,r){return arguments.length===1?_a(t):new Rt(t,n,e,r??1)}function Rt(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}ni(Rt,bl,wa(qn,{brighter:function(t){return t=t==null?$e:Math.pow($e,t),new Rt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Tn:Math.pow(Tn,t),new Rt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new wt(We(t>=240?t-240:t+120,i,r),We(t,i,r),We(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function We(t,n,e){return(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)*255}const Ea=t=>()=>t;function Pl(t,n){return function(e){return t+e*n}}function kl(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}function jl(t){return(t=+t)==1?Sa:function(n,e){return e-n?kl(n,e,t):Ea(isNaN(n)?e:n)}}function Sa(t,n){var e=n-t;return e?Pl(t,e):Ea(isNaN(t)?n:t)}const oo=(function t(n){var e=jl(n);function r(i,o){var a=e((i=kr(i)).r,(o=kr(o)).r),u=e(i.g,o.g),c=e(i.b,o.b),l=Sa(i.opacity,o.opacity);return function(s){return i.r=a(s),i.g=u(s),i.b=c(s),i.opacity=l(s),i+""}}return r.gamma=t,r})(1);function Yt(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}var jr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ve=new RegExp(jr.source,"g");function Rl(t){return function(){return t}}function $l(t){return function(n){return t(n)+""}}function Cl(t,n){var e=jr.lastIndex=Ve.lastIndex=0,r,i,o,a=-1,u=[],c=[];for(t=t+"",n=n+"";(r=jr.exec(t))&&(i=Ve.exec(n));)(o=i.index)>e&&(o=n.slice(e,o),u[a]?u[a]+=o:u[++a]=o),(r=r[0])===(i=i[0])?u[a]?u[a]+=i:u[++a]=i:(u[++a]=null,c.push({i:a,x:Yt(r,i)})),e=Ve.lastIndex;return e<n.length&&(o=n.slice(e),u[a]?u[a]+=o:u[++a]=o),u.length<2?c[0]?$l(c[0].x):Rl(n):(n=c.length,function(l){for(var s=0,f;s<n;++s)u[(f=c[s]).i]=f.x(l);return u.join("")})}var ao=180/Math.PI,Rr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ma(t,n,e,r,i,o){var a,u,c;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(c=t*e+n*r)&&(e-=t*c,r-=n*c),(u=Math.sqrt(e*e+r*r))&&(e/=u,r/=u,c/=u),t*r<n*e&&(t=-t,n=-n,c=-c,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*ao,skewX:Math.atan(c)*ao,scaleX:a,scaleY:u}}var Wn;function Tl(t){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?Rr:Ma(n.a,n.b,n.c,n.d,n.e,n.f)}function Al(t){return t==null||(Wn||(Wn=document.createElementNS("http://www.w3.org/2000/svg","g")),Wn.setAttribute("transform",t),!(t=Wn.transform.baseVal.consolidate()))?Rr:(t=t.matrix,Ma(t.a,t.b,t.c,t.d,t.e,t.f))}function Na(t,n,e,r){function i(l){return l.length?l.pop()+" ":""}function o(l,s,f,h,p,d){if(l!==f||s!==h){var x=p.push("translate(",null,n,null,e);d.push({i:x-4,x:Yt(l,f)},{i:x-2,x:Yt(s,h)})}else(f||h)&&p.push("translate("+f+n+h+e)}function a(l,s,f,h){l!==s?(l-s>180?s+=360:s-l>180&&(l+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:Yt(l,s)})):s&&f.push(i(f)+"rotate("+s+r)}
vendor: 5,490 bytes, line 21
21function u(l,s,f,h){l!==s?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:Yt(l,s)}):s&&f.push(i(f)+"skewX("+s+r)}function c(l,s,f,h,p,d){if(l!==f||s!==h){var x=p.push(i(p)+"scale(",null,",",null,")");d.push({i:x-4,x:Yt(l,f)},{i:x-2,x:Yt(s,h)})}else(f!==1||h!==1)&&p.push(i(p)+"scale("+f+","+h+")")}return function(l,s){var f=[],h=[];return l=t(l),s=t(s),o(l.translateX,l.translateY,s.translateX,s.translateY,f,h),a(l.rotate,s.rotate,f,h),u(l.skewX,s.skewX,f,h),c(l.scaleX,l.scaleY,s.scaleX,s.scaleY,f,h),l=s=null,function(p){for(var d=-1,x=h.length,S;++d<x;)f[(S=h[d]).i]=S.x(p);return f.join("")}}}var zl=Na(Tl,"px, ","px)","deg)"),Ol=Na(Al,", ",")",")");function Ll(t,n){var e,r;return function(){var i=At(this,t),o=i.tween;if(o!==e){r=e=o;for(var a=0,u=r.length;a<u;++a)if(r[a].name===n){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function Il(t,n,e){var r,i;if(typeof e!="function")throw new Error;return function(){var o=At(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:n,value:e},c=0,l=i.length;c<l;++c)if(i[c].name===n){i[c]=u;break}c===l&&i.push(u)}o.tween=i}}function Fl(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r=Pt(this.node(),e).tween,i=0,o=r.length,a;i<o;++i)if((a=r[i]).name===t)return a.value;return null}return this.each((n==null?Ll:Il)(e,t,n))}function ei(t,n,e){var r=t._id;return t.each(function(){var i=At(this,r);(i.value||(i.value={}))[n]=e.apply(this,arguments)}),function(i){return Pt(i,r).value[n]}}function ba(t,n){var e;return(typeof n=="number"?Yt:n instanceof zn?oo:(e=zn(n))?(n=e,oo):Cl)(t,n)}function Dl(t){return function(){this.removeAttribute(t)}}function ql(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Bl(t,n,e){var r,i=e+"",o;return function(){var a=this.getAttribute(t);return a===i?null:a===r?o:o=n(r=a,e)}}function Xl(t,n,e){var r,i=e+"",o;return function(){var a=this.getAttributeNS(t.space,t.local);return a===i?null:a===r?o:o=n(r=a,e)}}function Gl(t,n,e){var r,i,o;return function(){var a,u=e(this),c;return u==null?void this.removeAttribute(t):(a=this.getAttribute(t),c=u+"",a===c?null:a===r&&c===i?o:(i=c,o=n(r=a,u)))}}function Yl(t,n,e){var r,i,o;return function(){var a,u=e(this),c;return u==null?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),c=u+"",a===c?null:a===r&&c===i?o:(i=c,o=n(r=a,u)))}}function Zl(t,n){var e=ze(t),r=e==="transform"?Ol:ba;return this.attrTween(t,typeof n=="function"?(e.local?Yl:Gl)(e,r,ei(this,"attr."+t,n)):n==null?(e.local?ql:Dl)(e):(e.local?Xl:Bl)(e,r,n))}function Hl(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function Ul(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function Wl(t,n){var e,r;function i(){var o=n.apply(this,arguments);return o!==r&&(e=(r=o)&&Ul(t,o)),e}return i._value=n,i}function Vl(t,n){var e,r;function i(){var o=n.apply(this,arguments);return o!==r&&(e=(r=o)&&Hl(t,o)),e}return i._value=n,i}function Kl(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(n==null)return this.tween(e,null);if(typeof n!="function")throw new Error;var r=ze(t);return this.tween(e,(r.local?Wl:Vl)(r,n))}function Ql(t,n){return function(){ti(this,t).delay=+n.apply(this,arguments)}}function Jl(t,n){return n=+n,function(){ti(this,t).delay=n}}function tf(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?Ql:Jl)(n,t)):Pt(this.node(),n).delay}function nf(t,n){return function(){At(this,t).duration=+n.apply(this,arguments)}}function ef(t,n){return n=+n,function(){At(this,t).duration=n}}function rf(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?nf:ef)(n,t)):Pt(this.node(),n).duration}function of(t,n){if(typeof n!="function")throw new Error;return function(){At(this,t).ease=n}}function af(t){var n=this._id;return arguments.length?this.each(of(n,t)):Pt(this.node(),n).ease}function sf(t,n){return function(){var e=n.apply(this,arguments);if(typeof e!="function")throw new Error;At(this,t).ease=e}}function uf(t){if(typeof t!="function")throw new Error;return this.each(sf(this._id,t))}function cf(t){typeof t!="function"&&(t=aa(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o=n[i],a=o.length,u=r[i]=[],c,l=0;l<a;++l)(c=o[l])&&t.call(c,c.__data__,l,o)&&u.push(c);return new Bt(r,this._parents,this._name,this._id)}function lf(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var c=n[u],l=e[u],s=c.length,f=a[u]=new Array(s),h,p=0;p<s;++p)(h=c[p]||l[p])&&(f[p]=h);for(;u<r;++u)a[u]=n[u];return new Bt(a,this._parents,this._name,this._id)}function ff(t){return(t+"").trim().split(/^|\s+/).every(function(n){var e=n.indexOf(".");return e>=0&&(n=n.slice(0,e)),!n||n==="start"})}function hf(t,n,e){var r,i,o=ff(n)?ti:At;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}function pf(t,n){var e=this._id;return arguments.length<2?Pt(this.node(),e).on.on(t):this.each(hf(e,t,n))}function df(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function gf(){return this.on("end.remove",df(this._id))}function vf(t){var n=this._name,e=this._id;typeof t!="function"&&(t=Kr(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u=r[a],c=u.length,l=o[a]=new Array(c),s,f,h=0;h<c;++h)(s=u[h])&&(f=t.call(s,s.__data__,h,u))&&("__data__"in s&&(f.__data__=s.__data__),l[h]=f,
vendor: 4,509 bytes, line 21
21Le(l[h],n,e,h,l,Pt(s,e)));return new Bt(o,this._parents,n,e)}function mf(t){var n=this._name,e=this._id;typeof t!="function"&&(t=oa(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var c=r[u],l=c.length,s,f=0;f<l;++f)if(s=c[f]){for(var h=t.call(s,s.__data__,f,c),p,d=Pt(s,e),x=0,S=h.length;x<S;++x)(p=h[x])&&Le(p,n,e,x,h,d);o.push(h),a.push(s)}return new Bt(o,a,n,e)}var yf=Dn.prototype.constructor;function xf(){return new yf(this._groups,this._parents)}function wf(t,n){var e,r,i;return function(){var o=un(this,t),a=(this.style.removeProperty(t),un(this,t));return o===a?null:o===e&&a===r?i:i=n(e=o,r=a)}}function Pa(t){return function(){this.style.removeProperty(t)}}function _f(t,n,e){var r,i=e+"",o;return function(){var a=un(this,t);return a===i?null:a===r?o:o=n(r=a,e)}}function Ef(t,n,e){var r,i,o;return function(){var a=un(this,t),u=e(this),c=u+"";return u==null&&(c=u=(this.style.removeProperty(t),un(this,t))),a===c?null:a===r&&c===i?o:(i=c,o=n(r=a,u))}}function Sf(t,n){var e,r,i,o="style."+n,a="end."+o,u;return function(){var c=At(this,t),l=c.on,s=c.value[o]==null?u||(u=Pa(n)):void 0;(l!==e||i!==s)&&(r=(e=l).copy()).on(a,i=s),c.on=r}}function Mf(t,n,e){var r=(t+="")=="transform"?zl:ba;return n==null?this.styleTween(t,wf(t,r)).on("end.style."+t,Pa(t)):typeof n=="function"?this.styleTween(t,Ef(t,r,ei(this,"style."+t,n))).each(Sf(this._id,t)):this.styleTween(t,_f(t,r,n),e).on("end.style."+t,null)}function Nf(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function bf(t,n,e){var r,i;function o(){var a=n.apply(this,arguments);return a!==i&&(r=(i=a)&&Nf(t,a,e)),r}return o._value=n,o}function Pf(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw new Error;return this.tween(r,bf(t,n,e??""))}function kf(t){return function(){this.textContent=t}}function jf(t){return function(){var n=t(this);this.textContent=n??""}}function Rf(t){return this.tween("text",typeof t=="function"?jf(ei(this,"text",t)):kf(t==null?"":t+""))}function $f(t){return function(n){this.textContent=t.call(this,n)}}function Cf(t){var n,e;function r(){var i=t.apply(this,arguments);return i!==e&&(n=(e=i)&&$f(i)),n}return r._value=t,r}function Tf(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,Cf(t))}function Af(){for(var t=this._name,n=this._id,e=ka(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],u=a.length,c,l=0;l<u;++l)if(c=a[l]){var s=Pt(c,n);Le(c,t,e,l,a,{time:s.time+s.delay+s.duration,delay:0,duration:s.duration,ease:s.ease})}return new Bt(r,this._parents,t,e)}function zf(){var t,n,e=this,r=e._id,i=e.size();return new Promise(function(o,a){var u={value:a},c={value:function(){--i===0&&o()}};e.each(function(){var l=At(this,r),s=l.on;s!==t&&(n=(t=s).copy(),n._.cancel.push(u),n._.interrupt.push(u),n._.end.push(c)),l.on=n}),i===0&&o()})}var Of=0;function Bt(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function ka(){return++Of}var Ht=Dn.prototype;Bt.prototype={constructor:Bt,select:vf,selectAll:mf,filter:cf,merge:lf,selection:xf,transition:Af,call:Ht.call,nodes:Ht.nodes,node:Ht.node,size:Ht.size,empty:Ht.empty,each:Ht.each,on:pf,attr:Zl,attrTween:Kl,style:Mf,styleTween:Pf,text:Rf,textTween:Tf,remove:gf,tween:Fl,delay:tf,duration:rf,ease:af,easeVarying:uf,end:zf,[Symbol.iterator]:Ht[Symbol.iterator]};function Lf(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var If={time:null,delay:0,duration:250,ease:Lf};function Ff(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return e}function Df(t){var n,e;t instanceof Bt?(n=t._id,t=t._name):(n=ka(),(e=If).time=Jr(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],u=a.length,c,l=0;l<u;++l)(c=a[l])&&Le(c,t,n,l,a,e||Ff(c,n));return new Bt(r,this._parents,t,n)}Dn.prototype.interrupt=vl;Dn.prototype.transition=Df;const Vn=t=>()=>t;function qf(t,{sourceEvent:n,target:e,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Dt(t,n,e){this.k=t,this.x=n,this.y=e}Dt.prototype={constructor:Dt,scale:function(t){return t===1?this:new Dt(this.k*t,this.x,this.y)}
vendor: 9,027 bytes, line 21
21,translate:function(t,n){return t===0&n===0?this:new Dt(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ri=new Dt(1,0,0);Dt.prototype;function Ke(t){t.stopImmediatePropagation()}function pn(t){t.preventDefault(),t.stopImmediatePropagation()}function Bf(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Xf(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function so(){return this.__zoom||ri}function Gf(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Yf(){return navigator.maxTouchPoints||"ontouchstart"in this}function Zf(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],a=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function Hf(){var t=Bf,n=Xf,e=Zf,r=Gf,i=Yf,o=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],u=250,c=ul,l=Vr("start","zoom","end"),s,f,h,p=500,d=150,x=0,S=10;function w(g){g.property("__zoom",so).on("wheel.zoom",F).on("mousedown.zoom",q).on("dblclick.zoom",M).filter(i).on("touchstart.zoom",$).on("touchmove.zoom",D).on("touchend.zoom touchcancel.zoom",X).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function(g,v,y,j){var R=g.selection?g.selection():g;R.property("__zoom",so),g!==R?b(g,v,y,j):R.interrupt().each(function(){P(this,arguments).event(j).start().zoom(null,typeof v=="function"?v.apply(this,arguments):v).end()})},w.scaleBy=function(g,v,y,j){w.scaleTo(g,function(){var R=this.__zoom.k,T=typeof v=="function"?v.apply(this,arguments):v;return R*T},y,j)},w.scaleTo=function(g,v,y,j){w.transform(g,function(){var R=n.apply(this,arguments),T=this.__zoom,B=y==null?_(R):typeof y=="function"?y.apply(this,arguments):y,G=T.invert(B),H=typeof v=="function"?v.apply(this,arguments):v;return e(m(N(T,H),B,G),R,a)},y,j)},w.translateBy=function(g,v,y,j){w.transform(g,function(){return e(this.__zoom.translate(typeof v=="function"?v.apply(this,arguments):v,typeof y=="function"?y.apply(this,arguments):y),n.apply(this,arguments),a)},null,j)},w.translateTo=function(g,v,y,j,R){w.transform(g,function(){var T=n.apply(this,arguments),B=this.__zoom,G=j==null?_(T):typeof j=="function"?j.apply(this,arguments):j;return e(ri.translate(G[0],G[1]).scale(B.k).translate(typeof v=="function"?-v.apply(this,arguments):-v,typeof y=="function"?-y.apply(this,arguments):-y),T,a)},j,R)};function N(g,v){return v=Math.max(o[0],Math.min(o[1],v)),v===g.k?g:new Dt(v,g.x,g.y)}function m(g,v,y){var j=v[0]-y[0]*g.k,R=v[1]-y[1]*g.k;return j===g.x&&R===g.y?g:new Dt(g.k,j,R)}function _(g){return[(+g[0][0]+ +g[1][0])/2,(+g[0][1]+ +g[1][1])/2]}function b(g,v,y,j){g.on("start.zoom",function(){P(this,arguments).event(j).start()}).on("interrupt.zoom end.zoom",function(){P(this,arguments).event(j).end()}).tween("zoom",function(){var R=this,T=arguments,B=P(R,T).event(j),G=n.apply(R,T),H=y==null?_(G):typeof y=="function"?y.apply(R,T):y,V=Math.max(G[1][0]-G[0][0],G[1][1]-G[0][1]),U=R.__zoom,K=typeof v=="function"?v.apply(R,T):v,vt=c(U.invert(H).concat(V/U.k),K.invert(H).concat(V/K.k));return function(mt){if(mt===1)mt=K;else{var _t=vt(mt),et=V/_t[2];mt=new Dt(et,H[0]-_t[0]*et,H[1]-_t[1]*et)}B.zoom(null,mt)}})}function P(g,v,y){return!y&&g.__zooming||new A(g,v)}function A(g,v){this.that=g,this.args=v,this.active=0,this.sourceEvent=null,this.extent=n.apply(g,v),this.taps=0}A.prototype={event:function(g){return g&&(this.sourceEvent=g),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(g,v){return this.mouse&&g!=="mouse"&&(this.mouse[1]=v.invert(this.mouse[0])),this.touch0&&g!=="touch"&&(this.touch0[1]=v.invert(this.touch0[0])),this.touch1&&g!=="touch"&&(this.touch1[1]=v.invert(this.touch1[0])),this.that.__zoom=v,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(g){var v=Ft(this.that).datum();l.call(g,this.that,new qf(g,{sourceEvent:this.sourceEvent,target:w,transform:this.that.__zoom,dispatch:l}),v)}};function F(g,...v){if(!t.apply(this,arguments))return;var y=P(this,v).event(g),j=this.__zoom,R=Math.max(o[0],Math.min(o[1],j.k*Math.pow(2,r.apply(this,arguments)))),T=Zt(g);if(y.wheel)(y.mouse[0][0]!==T[0]||y.mouse[0][1]!==T[1])&&(y.mouse[1]=j.invert(y.mouse[0]=T)),clearTimeout(y.wheel);else{if(j.k===R)return;y.mouse=[T,j.invert(T)],re(this),y.start()}pn(g),y.wheel=setTimeout(B,d),y.zoom("mouse",e(m(N(j,R),y.mouse[0],y.mouse[1]),y.extent,a));function B(){y.wheel=null,y.end()}}function q(g,...v){if(h||!t.apply(this,arguments))return;var y=P(this,v,!0).event(g),j=Ft(g.view).on("mousemove.zoom",H,!0).on("mouseup.zoom",V,!0),R=Zt(g,T),T=g.currentTarget,B=g.clientX,G=g.clientY;rl(g.view),Ke(g),y.mouse=[R,this.__zoom.invert(R)],re(this),y.start();function H(U){if(pn(U),!y.moved){var K=U.clientX-B,vt=U.clientY-G;y.moved=K*K+vt*vt>x}y.event(U).zoom("mouse",e(m(y.that.__zoom,y.mouse[0]=Zt(U,T),y.mouse[1]),y.extent,a))}function V(U){j.on("mousemove.zoom mouseup.zoom",null),il(U.view,y.moved),pn(U),y.event(U).end()}}function M(g,...v){if(t.apply(this,arguments)){var y=this.__zoom,j=Zt(g.changedTouches?g.changedTouches[0]:g,this),R=y.invert(j),T=y.k*(g.shiftKey?.5:2),B=e(m(N(y,T),j,R),n.apply(this,v),a);pn(g),u>0?Ft(this).transition().duration(u).call(b,B,j,g):Ft(this).call(w.transform,B,j,g)}}function $(g,...v){if(t.apply(this,arguments)){var y=g.touches,j=y.length,R=P(this,v,g.changedTouches.length===j).event(g),T,B,G,H;for(Ke(g),B=0;B<j;++B)G=y[B],H=Zt(G,this),H=[H,this.__zoom.invert(H),G.identifier],R.touch0?!R.touch1&&R.touch0[2]!==H[2]&&(R.touch1=H,R.taps=0):(R.touch0=H,T=!0,R.taps=1+!!s);s&&(s=clearTimeout(s)),T&&(R.taps<2&&(f=H[0],s=setTimeout(function(){s=null},p)),re(this),R.start())}}function D(g,...v){if(this.__zooming){var y=P(this,v).event(g),j=g.changedTouches,R=j.length,T,B,G,H;for(pn(g),T=0;T<R;++T)B=j[T],G=Zt(B,this),y.touch0&&y.touch0[2]===B.identifier?y.touch0[0]=G:y.touch1&&y.touch1[2]===B.identifier&&(y.touch1[0]=G);if(B=y.that.__zoom,y.touch1){var V=y.touch0[0],U=y.touch0[1],K=y.touch1[0],vt=y.touch1[1],mt=(mt=K[0]-V[0])*mt+(mt=K[1]-V[1])*mt,_t=(_t=vt[0]-U[0])*_t+(_t=vt[1]-U[1])*_t;B=N(B,Math.sqrt(mt/_t)),G=[(V[0]+K[0])/2,(V[1]+K[1])/2],H=[(U[0]+vt[0])/2,(U[1]+vt[1])/2]}else if(y.touch0)G=y.touch0[0],H=y.touch0[1];else return;y.zoom("touch",e(m(B,G,H),y.extent,a))}}function X(g,...v){if(this.__zooming){var y=P(this,v).event(g),j=g.changedTouches,R=j.length,T,B;for(Ke(g),h&&clearTimeout(h),h=setTimeout(function(){h=null},p),T=0;T<R;++T)B=j[T],y.touch0&&y.touch0[2]===B.identifier?delete y.touch0:y.touch1&&y.touch1[2]===B.identifier&&delete y.touch1;if(y.touch1&&!y.touch0&&(y.touch0=y.touch1,delete y.touch1),y.touch0)y.touch0[1]=this.__zoom.invert(y.touch0[0]);else if(y.end(),y.taps===2&&(B=Zt(B,this),Math.hypot(f[0]-B[0],f[1]-B[1])<S)){var G=Ft(this).on("dblclick.zoom");G&&G.apply(this,arguments)}}}return w.wheelDelta=function(g){return arguments.length?(r=typeof g=="function"?g:Vn(+g),w):r},w.filter=function(g){return arguments.length?(t=typeof g=="function"?g:Vn(!!g),w):t},w.touchable=function(g){return arguments.length?(i=typeof g=="function"?g:Vn(!!g),w):i},w.extent=function(g){return arguments.length?(n=typeof g=="function"?g:Vn([[+g[0][0],+g[0][1]],[+g[1][0],+g[1][1]]]),w):n},w.scaleExtent=function(g){return arguments.length?(o[0]=+g[0],o[1]=+g[1],w):[o[0],o[1]]},w.translateExtent=function(g){return arguments.length?(a[0][0]=+g[0][0],a[1][0]=+g[1][0],a[0][1]=+g[0][1],a[1][1]=+g[1][1],w):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},w.constrain=function(g){return arguments.length?(e=g,w):e},w.duration=function(g){return arguments.length?(u=+g,w):u},w.interpolate=function(g){return arguments.length?(c=g,w):c},w.on=function(){var g=l.on.apply(l,arguments);return g===l?w:g},w.clickDistance=function(g){return arguments.length?(x=(g=+g)*g,w):Math.sqrt(x)},w.tapDistance=function(g){return arguments.length?(S=+g,w):S},w}function uo(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,r)}return e}function nn(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};
21n%2?uo(Object(e),!0).forEach(function(r){Uf(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):uo(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}return t}function $r(t){"@babel/helpers - typeof";return $r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$r(t)}function Uf(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function gt(){return gt=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},gt.apply(this,arguments)}function Wf(t,n){if(t==null)return{};var e={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(n.indexOf(i)>=0)&&(e[i]=t[i]);return e}function Mt(t,n){if(t==null)return{};var e=Wf(t,n),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(n.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(e[r]=t[r])}return e}function ot(t,n){return Vf(t)||Kf(t,n)||Qf(t,n)||Jf()}function Vf(t){if(Array.isArray(t))return t}function Kf(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var r=[],i=!0,o=!1,a,u;try{for(e=e.call(t);!(i=(a=e.next()).done)&&(r.push(a.value),!(n&&r.length===n));i=!0);}catch(c){o=!0,u=c}finally{try{!i&&e.return!=null&&e.return()}finally{if(o)throw u}}return r}}function Qf(t,n){if(t){if(typeof t=="string")return co(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return co(t,n)}}function co(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function Jf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var th=["width","height","projection","projectionConfig"],nh=Wo,eh=Mt(gu,["geoPath"]),zt=O.createContext(),rh=function(n){var e=n.projectionConfig,r=e===void 0?{}:e,i=n.projection,o=i===void 0?"geoEqualEarth":i,a=n.width,u=a===void 0?800:a,c=n.height,l=c===void 0?600:c,s=typeof o=="function";if(s)return o;var f=eh[o]().translate([u/2,l/2]),h=[f.center?"center":null,f.rotate?"rotate":null,f.scale?"scale":null,f.parallels?"parallels":null];return h.forEach(function(p){p&&(f=f[p](r[p]||f[p]()))}),f},ja=function(n){var e=n.width,r=n.height,i=n.projection,o=n.projectionConfig,a=Mt(n,th),u=o.center||[],c=ot(u,2),l=c[0],s=c[1],f=o.rotate||[],h=ot(f,3),p=h[0],d=h[1],x=h[2],S=o.parallels||[],w=ot(S,2),N=w[0],m=w[1],_=o.scale||null,b=O.useMemo(function(){return rh({projectionConfig:{center:l||l===0||s||s===0?[l,s]:null,rotate:p||p===0||d||d===0?[p,d,x]:null,parallels:N||N===0||m||m===0?[N,m]:null,scale:_},projection:i,width:e,height:r})},[e,r,i,l,s,p,d,x,N,m,_]),P=O.useCallback(b,[b]),A=O.useMemo(function(){return{width:e,height:r,projection:P,path:nh().projection(P)}},[e,r,P]);return rt.createElement(zt.Provider,gt({value:A},a))};ja.propTypes={width:k.number,height:k.number,projection:k.oneOfType([k.string,k.func]),projectionConfig:k.object};var ih=["width","height","projection","projectionConfig","className"],ii=O.forwardRef(function(t,n){var e=t.width,r=e===void 0?800:e,i=t.height,o=i===void 0?600:i,a=t.projection,u=a===void 0?"geoEqualEarth":a,c=t.projectionConfig,l=c===void 0?{}:c,s=t.className,f=s===void 0?"":s,h=Mt(t,ih);return rt.createElement(ja,{width:r,height:o,projection:u,projectionConfig:l},rt.createElement("svg",gt({ref:n,viewBox:"0 0 ".concat(r," ").concat(o),className:"rsm-svg ".concat(f)},h)))});ii.displayName="ComposableMap";ii.propTypes={width:k.number,height:k.number,projection:k.oneOfType([k.string,k.func]),projectionConfig:k.object,className:k.string};function lo(t,n,e){var r=(t*e.k-t)/2,i=(n*e.k-n)/2;return[t/2-(r+e.x)/e.k,n/2-(i+e.y)/e.k]}function oh(t){return fetch(t).then(function(n){if(!n.ok)throw Error(n.statusText);return n.json()}).catch(function(n){console.log("There was a problem when fetching the data: ",n)})}function fo(t,n){var e=t.type==="Topology";if(!e)return n?n(t.features||t):t.features||t;var r=xu(t,t.objects[Object.keys(t.objects)[0]]).features;return n?n(r):r}function ho(t){var n=t.type==="Topology";if(!n)return null;var e=Gi(t,t.objects[Object.keys(t.objects)[0]],function(i,o){return i===o}
22),r=Gi(t,t.objects[Object.keys(t.objects)[0]],function(i,o){return i!==o});return{outline:e,borders:r}}function ah(t,n,e){return t&&n?{outline:nn(nn({},t),{},{rsmKey:"outline",svgPath:e(t)}),borders:nn(nn({},n),{},{rsmKey:"borders",svgPath:e(n)})}:{}}function sh(t,n){return t?t.map(function(e,r){return nn(nn({},e),{},{rsmKey:"geo-".concat(r),svgPath:n(e)})}):[]}function uh(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:30,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:30,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.5,r=Array.isArray(e)?e:[e,e],i=t/2*r[0],o=n/2*r[1];return"M".concat(0,",",0," Q",-t/2-i,",").concat(-n/2+o," ").concat(-t,",").concat(-n)}function ch(t){return typeof t=="string"}function lh(t){var n=t.geography,e=t.parseGeographies,r=O.useContext(zt),i=r.path,o=O.useState({}),a=ot(o,2),u=a[0],c=a[1];O.useEffect(function(){(typeof window>"u"?"undefined":$r(window))!=="undefined"&&n&&(ch(n)?oh(n).then(function(p){p&&c({geographies:fo(p,e),mesh:ho(p)})}):c({geographies:fo(n,e),mesh:ho(n)}))},[n,e]);var l=O.useMemo(function(){var p=u.mesh||{},d=ah(p.outline,p.borders,i);return{geographies:sh(u.geographies,i),outline:d.outline,borders:d.borders}},[u,i]),s=l.geographies,f=l.outline,h=l.borders;return{geographies:s,outline:f,borders:h}}var fh=["geography","children","parseGeographies","className"],oi=O.forwardRef(function(t,n){var e=t.geography,r=t.children,i=t.parseGeographies,o=t.className,a=o===void 0?"":o,u=Mt(t,fh),c=O.useContext(zt),l=c.path,s=c.projection,f=lh({geography:e,parseGeographies:i}),h=f.geographies,p=f.outline,d=f.borders;return rt.createElement("g",gt({ref:n,className:"rsm-geographies ".concat(a)},u),h&&h.length>0&&r({geographies:h,outline:p,borders:d,path:l,projection:s}))});oi.displayName="Geographies";oi.propTypes={geography:k.oneOfType([k.string,k.object,k.array]),children:k.func,parseGeographies:k.func,className:k.string};var hh=["geography","onMouseEnter","onMouseLeave","onMouseDown","onMouseUp","onFocus","onBlur","style","className"],ai=O.forwardRef(function(t,n){var e=t.geography,r=t.onMouseEnter,i=t.onMouseLeave,o=t.onMouseDown,a=t.onMouseUp,u=t.onFocus,c=t.onBlur,l=t.style,s=l===void 0?{}:l,f=t.className,h=f===void 0?"":f,p=Mt(t,hh),d=O.useState(!1),x=ot(d,2),S=x[0],w=x[1],N=O.useState(!1),m=ot(N,2),_=m[0],b=m[1];function P(D){b(!0),r&&r(D)}function A(D){b(!1),S&&w(!1),i&&i(D)}function F(D){b(!0),u&&u(D)}function q(D){b(!1),S&&w(!1),c&&c(D)}function M(D){w(!0),o&&o(D)}function $(D){w(!1),a&&a(D)}return rt.createElement("path",gt({ref:n,tabIndex:"0",className:"rsm-geography ".concat(h),d:e.svgPath,onMouseEnter:P,onMouseLeave:A,onFocus:
22F,onBlur:q,onMouseDown:M,onMouseUp:$,style:s[S||_?S?"pressed":"hover":"default"]},p))});ai.displayName="Geography";ai.propTypes={geography:k.object,onMouseEnter:k.func,onMouseLeave:k.func,onMouseDown:k.func,onMouseUp:k.func,onFocus:k.func,onBlur:k.func,style:k.object,className:k.string};var ph=O.memo(ai),dh=["fill","stroke","step","className"],si=O.forwardRef(function(t,n){var e=t.fill,r=e===void 0?"transparent":e,i=t.stroke,o=i===void 0?"currentcolor":i,a=t.step,u=a===void 0?[10,10]:a,c=t.className,l=c===void 0?"":c,s=Mt(t,dh),f=O.useContext(zt),h=f.path;return rt.createElement("path",gt({ref:n,d:h(zr().step(u)()),fill:r,stroke:o,className:"rsm-graticule ".concat(l)},s))});si.displayName="Graticule";si.propTypes={fill:k.string,stroke:k.string,step:k.array,className:k.string};O.memo(si);var gh=["value"],vh=O.createContext(),mh={x:0,y:0,k:1,transformString:"translate(0 0) scale(1)"},Ra=function(n){var e=n.value,r=e===void 0?mh:e,i=Mt(n,gh);return rt.createElement(vh.Provider,gt({value:r},i))};Ra.propTypes={x:k.number,y:k.number,k:k.number,transformString:k.string};function yh(t){var n=t.center,e=t.filterZoomEvent,r=t.onMoveStart,i=t.onMoveEnd,o=t.onMove,a=t.translateExtent,u=a===void 0?[[-1/0,-1/0],[1/0,1/0]]:a,c=t.scaleExtent,l=c===void 0?[1,8]:c,s=t.zoom,f=s===void 0?1:s,h=O.useContext(zt),p=h.width,d=h.height,x=h.projection,S=ot(n,2),w=S[0],N=S[1],m=O.useState({x:0,y:0,k:1}),_=ot(m,2),b=_[0],P=_[1],A=O.useRef({x:0,y:0,k:1}),F=O.useRef(),q=O.useRef(),M=O.useRef(!1),$=ot(u,2),D=$[0],X=$[1],g=ot(D,2),v=g[0],y=g[1],j=ot(X,2),R=j[0],T=j[1],B=ot(l,2),G=B[0],H=B[1];return O.useEffect(function(){var V=Ft(F.current);function U(et){!r||M.current||r({coordinates:x.invert(lo(p,d,et.transform)),zoom:et.transform.k},et)}function K(et){if(!M.current){var Xt=et.transform,fn=et.sourceEvent;P({x:Xt.x,y:Xt.y,k:Xt.k,dragging:fn}),o&&o({x:Xt.x,y:Xt.y,zoom:Xt.k,dragging:fn},et)}}function vt(et){if(M.current){M.current=!1;return}var Xt=x.invert(lo(p,d,et.transform)),fn=ot(Xt,2),li=fn[0],fi=fn[1];A.current={x:li,y:fi,k:et.transform.k},i&&i({coordinates:[li,fi],zoom:et.transform.k},et)}function mt(et){return e?e(et):et?!et.ctrlKey&&!et.button:!1}var _t=Hf().filter(mt).scaleExtent([G,H]).translateExtent([[v,y],[R,T]]).on("start",U).on("zoom",K).on("end",vt);q.current=_t,V.call(_t)},[p,d,v,y,R,T,G,H,x,r,o,i,e]),O.useEffect(function(){if(!(w===A.current.x&&N===A.current.y&&f===A.current.k)){var V=x([w,N]),U=V[0]*f,K=V[1]*f,vt=Ft(F.current);M.current=!0,vt.call(q.current.transform,ri.translate(p/2-U,d/2-K).scale(f)),P({x:p/2-U,y:d/2-K,k:f}),A.current={x:w,y:N,k:f}}},[w,N,f,p,d,x]),{mapRef:F,position:b,transformString:"translate(".concat(b.x," ").concat(b.y,") scale(").concat(b.k,")")}}var xh=["center","zoom","minZoom","maxZoom","translateExtent","filterZoomEvent","onMoveStart","onMove","onMoveEnd","className"],$a=O.forwardRef(function(t,n){var e=t.center,r=e===void 0?[0,0]:e,i=t.zoom,o=i===void 0?1:i,a=t.minZoom,u=a===void 0?1:a,c=t.maxZoom,l=c===void 0?8:c,s=t.translateExtent,f=t.filterZoomEvent,h=t.onMoveStart,p=t.onMove,d=t.onMoveEnd,x=t.className,S=Mt(t,xh),w=O.useContext(zt),N=w.width,m=w.height,_=yh({center:r,filterZoomEvent:f,onMoveStart:h,onMove:p,onMoveEnd:d,scaleExtent:[u,l],translateExtent:s,zoom:o}),b=_.mapRef,P=_.transformString,A=_.position;return rt.createElement(Ra,{value:{x:A.x,y:A.y,k:A.k,transformString:P}},rt.createElement("g",{ref:b},rt.createElement("rect",{width:N,height:m,fill:"transparent"}),rt.createElement("g",gt({ref:n,transform:P,className:"rsm-zoomable-group ".concat(x)},S))))});$a.displayName="ZoomableGroup";$a.propTypes={center:k.array,zoom:k.number,minZoom:k.number,maxZoom:k.number,translateExtent:k.arrayOf(k.array),onMoveStart:k.func,onMove:k.func,onMoveEnd:k.func,className:k.string};var wh=["id","fill","stroke","strokeWidth","className"],ui=O.forwardRef(function(t,n){var e=t.id,r=e===void 0?"rsm-sphere":e,i=t.fill,o=i===void 0?"transparent":i,a=t.stroke,u=a===void 0?"currentcolor":a,c=t.strokeWidth,l=c===void 0?.5:c,s=t.className,f=s===void 0?"":s,h=Mt(t,wh),p=O.useContext(zt),d=p.path,x=O.useMemo(function(){return d({type:"Sphere"})},[d]);return rt.createElement(O.Fragment,null,rt.createElement("defs",null,rt.createElement("clipPath",{id:r},rt.createElement("path",{d:x}))),rt.createElement("path",gt({ref:n,d:x,fill:o,stroke:u,strokeWidth:l,style:{pointerEvents:"none"},className:"rsm-sphere ".concat(f)},h)))});ui.displayName="Sphere";
22ui.propTypes={id:k.string,fill:k.string,stroke:k.string,strokeWidth:k.number,className:k.string};O.memo(ui);var _h=["coordinates","children","onMouseEnter","onMouseLeave","onMouseDown","onMouseUp","onFocus","onBlur","style","className"],ci=O.forwardRef(function(t,n){var e=t.coordinates,r=t.children,i=t.onMouseEnter,o=t.onMouseLeave,a=t.onMouseDown,u=t.onMouseUp,c=t.onFocus,l=t.onBlur,s=t.style,f=s===void 0?{}:s,h=t.className,p=h===void 0?"":h,d=Mt(t,_h),x=O.useContext(zt),S=x.projection,w=O.useState(!1),N=ot(w,2),m=N[0],_=N[1],b=O.useState(!1),P=ot(b,2),A=P[0],F=P[1],q=S(e),M=ot(q,2),$=M[0],D=M[1];function X(T){F(!0),i&&i(T)}function g(T){F(!1),m&&_(!1),o&&o(T)}function v(T){F(!0),c&&c(T)}function y(T){F(!1),m&&_(!1),l&&l(T)}function j(T){_(!0),a&&a(T)}function R(T){_(!1),u&&u(T)}return rt.createElement("g",gt({ref:n,transform:"translate(".concat($,", ").concat(D,")"),className:"rsm-marker ".concat(p),onMouseEnter:X,onMouseLeave:g,onFocus:v,onBlur:y,onMouseDown:j,onMouseUp:R,style:f[m||A?m?"pressed":"hover":"default"]},d),r)});ci.displayName="Marker";ci.propTypes={coordinates:k.array,children:k.oneOfType([k.node,k.arrayOf(k.node)]),onMouseEnter:k.func,onMouseLeave:k.func,onMouseDown:k.func,onMouseUp:k.func,onFocus:k.func,onBlur:k.func,style:k.object,className:k.string};var Eh=["from","to","coordinates","stroke","strokeWidth","fill","className"],Ca=O.forwardRef(function(t,n){var e=t.from,r=e===void 0?[0,0]:e,i=t.to,o=i===void 0?[0,0]:i,a=t.coordinates,u=t.stroke,c=u===void 0?"currentcolor":u,l=t.strokeWidth,s=l===void 0?3:l,f=t.fill,h=f===void 0?"transparent":f,p=t.className,d=p===void 0?"":p,x=Mt(t,Eh),S=O.useContext(zt),w=S.path,N={type:"LineString",coordinates:a||[r,o]};return rt.createElement("path",gt({ref:n,d:w(N),className:"rsm-line ".concat(d),stroke:c,strokeWidth:s,fill:h},x))});Ca.displayName="Line";Ca.propTypes={from:k.array,to:k.array,coordinates:k.array,stroke:k.string,
22strokeWidth:k.number,fill:k.string,className:k.string};var Sh=["subject","children","connectorProps","dx","dy","curve","className"],Ta=O.forwardRef(function(t,n){var e=t.subject,r=t.children,i=t.connectorProps,o=t.dx,a=o===void 0?30:o,u=t.dy,c=u===void 0?30:u,l=t.curve,s=l===void 0?0:l,f=t.className,h=f===void 0?"":f,p=Mt(t,Sh),d=O.useContext(zt),x=d.projection,S=x(e),w=ot(S,2),N=w[0],m=w[1],_=uh(a,c,s);return rt.createElement("g",gt({ref:n,transform:"translate(".concat(N+a,", ").concat(m+c,")"),className:"rsm-annotation ".concat(h)},p),rt.createElement("path",gt({d:_,fill:"transparent",stroke:"#000"},i)),r)});Ta.displayName="Annotation";Ta.propTypes={subject:k.array,children:k.oneOfType([k.node,k.arrayOf(k.node)]),dx:k.number,dy:k.number,curve:k.number,connectorProps:k.object,className:k.string};const Mh="https://cdn.jsdelivr.net/npm/world-atlas@2/countries-110m.json",Ot={human:"#47FF75",bot:"#ef4444",spy:"#a855f7"},Qe={human:"Humano",bot:"Bot",spy:"Spy tool"};function po(t){const n=Math.max(0,Math.floor((Date.now()-new Date(t).getTime())/1e3));if(n<60)return`há ${n}s`;const e=Math.floor(n/60);return e<60?`há ${e}min`:`há ${Math.floor(e/60)}h`}function go({device:t}){const n="h-3.5 w-3.5 text-muted-foreground";return t==="mobile"?E.jsx(Ka,{className:n}):t==="tablet"?E.jsx(Qa,{className:n}):E.jsx(Va,{className:n})}function qh(){const{user:t}=za(),{allowed:n}=Fa("dashboard_live"),[e,r]=O.useState([]),[i,o]=O.useState(null),[a,u]=O.useState(!0),[c,l]=O.useState(!1),[s,f]=O.useState(!1),h=O.useRef(!1),[p,d]=O.useState("all"),[x,S]=O.useState(null),[w,N]=O.useState(!1),[m,_]=O.useState("connecting");O.useEffect(()=>{h.current=s},[s]),O.useEffect(()=>{if(!x)return;const M=$=>{$.key==="Escape"&&S(null)};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[x]);const b=O.useCallback(async(M=!1)=>{if(!t||h.current)return;M||l(!0);const $=new Date(Date.now()-120*1e3).toISOString(),{data:D,error:X}=await Ie.from("live_sessions").select("id,visitor_type,country,country_code,city,latitude,longitude,device,page_shown,last_seen").eq("user_id",t.id).gte("last_seen",$).order("last_seen",{ascending:!1}).limit(300);X?N(!0):(r(D||[]),N(!1)),u(!1),l(!1)},[t]);O.useEffect(()=>{if(!t)return;b(!0);const M=Ie.channel(`live-sessions-${t.id}`).on("postgres_changes",{event:"*",schema:"public",table:"live_sessions",filter:`user_id=eq.${t.id}`},X=>{if(h.current)return;const g=X.new,v=X.old;r(y=>{if(X.eventType==="DELETE")return y.filter(R=>R.id!==v.id);const j=y.filter(R=>R.id!==g.id);return[g,...j].filter(R=>Date.now()-new Date(R.last_seen).getTime()<12e4).sort((R,T)=>new Date(T.last_seen).getTime()-new Date(R.last_seen).getTime()).slice(0,300)}),u(!1)}).subscribe(X=>{X==="SUBSCRIBED"&&_("live"),(X==="CHANNEL_ERROR"||X==="TIMED_OUT")&&_("fallback")}),$=window.setInterval(()=>{h.current||r(X=>X.filter(g=>Date.now()-new Date(g.last_seen).getTime()<12e4))},15e3),D=window.setInterval(()=>{!document.hidden&&!h.current&&b(!0)},3e5);return()=>{window.clearInterval($),window.clearInterval(D),Ie.removeChannel(M)}},[t,b]),O.useEffect(()=>{if(m!=="fallback"||s)return;let M=null;const $=()=>{M!==null&&(window.clearInterval(M),M=null)},D=()=>{$(),!document.hidden&&(b(!0),M=window.setInterval(()=>void b(!0),3e4))};return D(),document.addEventListener("visibilitychange",D),()=>{$(),document.removeEventListener("visibilitychange",D)}},[m,s,b]);const P={total:e.length,human:e.filter(M=>M.visitor_type==="human").length,bot:e.filter(M=>M.visitor_type==="bot").length,spy:e.filter(M=>M.visitor_type==="spy").length},A=O.useMemo(()=>p==="all"?e:e.filter(M=>M.visitor_type===p),[p,e]),F=A.filter(M=>M.latitude!=null&&M.longitude!=null),q=P.total?Math.round(P.human/P.total*100):0;return n?E.jsxs(qa,{width:"7xl",className:"cf-live-page",children:[E.jsx(Ba,{eyebrow:"/ao-vivo",title:"Ao Vivo",subtitle:"Veja quem está acessando seus cloakers e como cada visita foi classificada.",actions:E.jsxs("div",{className:"cf-live-actions",children:[E.jsxs("span",{className:`cf-live-status${s?" is-paused":""}`,children:[E.jsxs("span",{children:[E.jsx("i",{}),s?"Atualização pausada":`${P.total} online agora`]}),E.jsx("small",{children:s?"A lista ficou congelada":m==="live"?"Conexão em tempo real":m==="fallback"?"Sincronização automática":"Conectando ao fluxo"})]}),E.jsxs("button",{type:"button",onClick:()=>f(M=>!M),children:[s?E.jsx(Xa,{className:"h-4 w-4"}):E.jsx(Ga,{className:"h-4 w-4"}),E.jsx("span",{children:s?"Retomar":"Pausar"})]}),E.jsx("button",{type:"button","aria-label":"Atualizar agora",disabled:c||s,onClick:()=>void b(),children:E.jsx(Ya,{className:`h-4 w-4${c?" animate-spin":""}`})})]})}),w&&E.jsxs("div",{className:"cf-live-error",children:[E.jsx(Za,{className:"h-4 w-4"}),E.jsx("span",{children:"Não foi possÃvel atualizar os acessos."}),E.jsx("button",{type:"button",onClick:()=>void b(),children:"Tentar novamente"})]}),E.jsxs("div",{className:"cf-live-stats",children:[E.jsxs("div",{children:[E.jsxs("span",{children:[E.jsx(Fe,{className:"h-4 w-4"}),"Online"]}),E.jsx("strong",{children:P.total}),E.jsx("small",{children:"sessões ativas"})]}),E.jsxs("div",{children:[E.jsxs("span",{children:[E.jsx(Ha,{className:"h-4 w-4"}),"Humanos"]}),E.jsx("strong",{children:P.human}),E.jsxs("small",{children:[q,"% do tráfego atual"]})]}),E.jsxs("div",{children:[E.jsxs("span",{children:[E.jsx(Oa,{className:"h-4 w-4"}),"Bots"]}),E.jsx("strong",{children:P.bot}),E.jsx("small",{children:"bloqueados agora"})]}),E.jsxs("div",{children:[E.jsxs("span",{children:[E.jsx(Ua,{className:"h-4 w-4"}),"Spy tools"]}),E.jsx("strong",{children:P.spy}),E.jsx("small",{children:"detectados agora"})]})]}),E.jsxs("div",{className:"cf-live-toolbar","aria-label":"Filtrar visitantes",children:[E.jsx("span",{children:"Mostrar"}),["all","human","bot","spy"].map(M=>E.jsxs("button",{type:"button",className:p===M?"is-active":void 0,onClick:()=>d(M),children:[M!=="all"&&E.jsx("i",{style:{background:Ot[M]}}),M==="all"?"Todos":Qe[M],E.jsx("small",{children:M==="all"?P.total:P[M]})]},M))]}),E.jsxs("div",{className:"cf-live-workspace",children:[E.jsxs("section",{className:"cf-live-map","aria-label":"Mapa de acessos ativos",children:[E.jsxs("header",{children:[E.jsxs("div",{children:[E.jsx(hi,{className:"h-4 w-4"}),E.jsx("span",{children:"Origem dos acessos"})]}),E.jsxs("small",{children:[F.length," com localização"]})]}),E.jsxs("div",{className:"cf-live-map-canvas",onMouseMove:M=>{const $=M.currentTarget.getBoundingClientRect();o(D=>D&&{...D,x:M.clientX-$.left,y:M.clientY-$.top})},children:[E.jsxs(ii,{projectionConfig:{scale:135},style:{width:"100%",height:"auto",background:"#090b09"},children:[E.jsx(oi,{geography:Mh,children:({geographies:M})=>M.map($=>E.jsx(ph,{geography:$,fill:"#171b17",stroke:"#303630",strokeWidth:.5,onMouseEnter:()=>{var D;return o({name:((D=$.properties)==null?void 0:D.name)||"",x:0,y:0})},onMouseLeave:()=>o(null),style:{default:{outline:"none"},hover:{fill:"#23492f",outline:"none"},pressed:{outline:"none"}}},$.rsmKey))}),F.map(M=>E.jsx(ci,{coordinates:[M.longitude,M.latitude],children:E.jsxs("circle",{r:5,fill:Ot[M.visitor_type],opacity:.9,children:[E.jsx("animate",{attributeName:"r",values:"4;8;
224",dur:"2s",repeatCount:"indefinite"}),E.jsx("animate",{attributeName:"opacity",values:"0.9;0.3;0.9",dur:"2s",repeatCount:"indefinite"})]})},M.id))]}),(i==null?void 0:i.name)&&E.jsx("div",{className:"cf-live-map-tip",style:{left:i.x+12,top:i.y+12},children:i.name})]}),E.jsxs("footer",{children:[E.jsxs("span",{children:[E.jsx("i",{style:{background:Ot.human}}),"Humano"]}),E.jsxs("span",{children:[E.jsx("i",{style:{background:Ot.bot}}),"Bot"]}),E.jsxs("span",{children:[E.jsx("i",{style:{background:Ot.spy}}),"Spy tool"]})]})]}),E.jsxs("aside",{className:"cf-live-feed",children:[E.jsxs("header",{children:[E.jsxs("div",{children:[E.jsx(Fe,{className:"h-4 w-4"}),E.jsx("span",{children:"Visitantes ativos"})]}),E.jsx("small",{children:A.length})]}),a?E.jsx("div",{className:"cf-live-loading","aria-label":"Carregando visitantes",children:[0,1,2,3,4].map(M=>E.jsx("span",{},M))}):A.length===0?E.jsxs("div",{className:"cf-live-empty",children:[E.jsx(Fe,{className:"h-6 w-6"}),E.jsx("strong",{children:"Aguardando acessos"}),E.jsx("p",{children:"Os próximos visitantes aparecem aqui automaticamente."})]}):E.jsx("div",{className:"cf-live-feed-list",children:A.slice(0,50).map(M=>E.jsxs("button",{type:"button",className:"cf-live-visitor",onClick:()=>S(M),children:[E.jsx("span",{className:"cf-live-visitor-flag",children:M.country_code?E.jsx(Ia,{code:M.country_code}):E.jsx(hi,{className:"h-4 w-4"})}),E.jsxs("span",{className:"cf-live-visitor-copy",children:[E.jsx("strong",{children:M.city||M.country||"Local não identificado"}),E.jsxs("small",{children:[E.jsx(go,{device:M.device}),M.device||"dispositivo desconhecido"]})]}),E.jsxs("span",{className:"cf-live-visitor-state",style:{color:Ot[M.visitor_type]},children:[E.jsx("i",{style:{background:Ot[M.visitor_type]}}),Qe[M.visitor_type]]}),E.jsx("time",{children:po(M.last_seen)}),E.jsx(Wa,{className:"cf-live-visitor-arrow h-3.5 w-3.5"})]},M.id))})]})]}),x&&E.jsx("div",{className:"cf-live-detail-layer",role:"presentation",onClick:()=>S(null),children:E.jsxs("section",{className:"cf-live-detail",role:"dialog","aria-modal":"true","aria-labelledby":"live-detail-title",onClick:M=>M.stopPropagation(),children:[E.jsxs("header",{children:[E.jsxs("div",{children:[E.jsx("span",{children:"Decisão em tempo real"}),E.jsx("h2",{id:"live-detail-title",children:x.city||x.country||"Acesso sem localização"})]}),E.jsx("button",{type:"button","aria-label":"Fechar detalhes",onClick:()=>S(null),children:E.jsx(La,{className:"h-4 w-4"})})]}),E.jsxs("div",{className:"cf-live-detail-verdict",children:[E.jsx("i",{style:{background:Ot[x.visitor_type]}}),E.jsxs("span",{children:[E.jsx("small",{children:"Classificação"}),E.jsx("strong",{style:{color:Ot[x.visitor_type]},children:Qe[x.visitor_type]})]})]}),E.jsxs("dl",{children:[E.jsxs("div",{children:[E.jsx("dt",{children:"Local"}),E.jsx("dd",{children:[x.city,x.country].filter(Boolean).join(", ")||"Não identificado"})]}),E.jsxs("div",{children:[E.jsx("dt",{children:"Dispositivo"}),E.jsxs("dd",{children:[E.jsx(go,{device:x.device}),x.device||"Não identificado"]})]}),E.jsxs("div",{children:[E.jsx("dt",{children:"Página exibida"}),E.jsx("dd",{children:x.page_shown||"Não informado"})]}),E.jsxs("div",{children:[E.jsx("dt",{children:"Ãltimo sinal"}),E.jsx("dd",{children:po(x.last_seen)})]})]}),E.jsx("p",{children:"Esta leitura mostra o resultado final aplicado ao visitante sem misturar os dados das outras sessões."})]})})]}):E.jsx(Da,{feature:"dashboard_live",title:"Dashboard Live",desc:"Veja no mapa, em tempo real, quem está acessando seus cloakers agora."})}export{qh as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.