diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..7ec4a5d --- /dev/null +++ b/dist/index.js @@ -0,0 +1 @@ +var zD=Object.create;var{defineProperty:oV,getPrototypeOf:RD,getOwnPropertyNames:SD}=Object;var qD=Object.prototype.hasOwnProperty;var rV=(X,VJ,DJ)=>{DJ=X!=null?zD(RD(X)):{};const aJ=VJ||!X||!X.__esModule?oV(DJ,"default",{value:X,enumerable:!0}):DJ;for(let N0 of SD(X))if(!qD.call(aJ,N0))oV(aJ,N0,{get:()=>X[N0],enumerable:!0});return aJ};var aV=(X,VJ)=>()=>(VJ||X((VJ={exports:{}}).exports,VJ),VJ.exports);var eV=aV((k7,tV)=>{(function(X,VJ){typeof k7==="object"&&typeof tV!=="undefined"?VJ(k7):typeof define==="function"&&define.amd?define(["exports"],VJ):VJ(X.d3=X.d3||{})})(k7,function(X){var VJ="4.2.2";function DJ(J,Q){return JQ?1:J>=Q?0:NaN}function aJ(J){if(J.length===1)J=N0(J);return{left:function(Q,K,U,Z){if(U==null)U=0;if(Z==null)Z=Q.length;while(U>>1;if(J(Q[G],K)<0)U=G+1;else Z=G}return U},right:function(Q,K,U,Z){if(U==null)U=0;if(Z==null)Z=Q.length;while(U>>1;if(J(Q[G],K)>0)Z=G;else U=G+1}return U}}}function N0(J){return function(Q,K){return DJ(J(Q),K)}}var tJ=aJ(DJ),jJ=tJ.right,G8=tJ.left;function m6(J,Q){return QJ?1:Q>=J?0:NaN}function uJ(J){return J===null?NaN:+J}function x8(J,Q){var K=J.length,U=0,Z,G,W=0,V=-1,F=0;if(Q==null){while(++V1)return W/(F-1)}function W8(J,Q){var K=x8(J,Q);return K?Math.sqrt(K):K}function V8(J,Q){var K=-1,U=J.length,Z,G,W;if(Q==null){while(++K=G){Z=W=G;break}while(++KG)Z=G;if(W=G){Z=W=G;break}while(++KG)Z=G;if(W=P0)Z*=10;else if(G>=XJ)Z*=5;else if(G>=YJ)Z*=2;return Q=Y)O.pop(),--M;var N=new Array(M+1),T;for(G=0;G<=M;++G)T=N[G]=[],T.x0=G>0?O[G-1]:B,T.x1=G=1)return+K(J[U-1],U-1,J);var U,Z=(U-1)*Q,G=Math.floor(Z),W=+K(J[G],G,J),V=+K(J[G+1],G+1,J);return W+(V-W)*(Z-G)}function p6(J,Q,K){return J=$7.call(J,uJ).sort(DJ),Math.ceil((K-Q)/(2*(z0(J,0.75)-z0(J,0.25))*Math.pow(J.length,-0.3333333333333333)))}function c6(J,Q,K){return Math.ceil((K-Q)/(3.5*W8(J)*Math.pow(J.length,-0.3333333333333333)))}function W0(J,Q){var K=-1,U=J.length,Z,G;if(Q==null){while(++K=G){Z=G;break}while(++KZ)Z=G}else{while(++K=G){Z=G;break}while(++KZ)Z=G}return Z}function y0(J,Q){var K=0,U=J.length,Z,G=-1,W=U;if(Q==null)while(++G=0){W=J[Q],K=W.length;while(--K>=0)G[--Z]=W[K]}return G}function c8(J,Q){var K=-1,U=J.length,Z,G;if(Q==null){while(++K=G){Z=G;break}while(++KG)Z=G}else{while(++K=G){Z=G;break}while(++KG)Z=G}return Z}function l8(J){var Q=0,K=J.length-1,U=J[0],Z=new Array(K<0?0:K);while(Q=J.length)return U!=null?U(V):K!=null?V.sort(K):V;var Y=-1,O=V.length,M=J[F++],N,T,D=f(),I,C=H();while(++YJ.length)return V;var H,B=Q[F-1];if(U!=null&&F>=J.length)H=V.entries();else H=[],V.each(function(Y,O){H.push({key:O,values:W(Y,F)})});return B!=null?H.sort(function(Y,O){return B(Y.key,O.key)}):H}return Z={object:function(V){return G(V,0,x,MJ)},map:function(V){return G(V,0,J0,n8)},entries:function(V){return W(G(V,0,J0,n8),0)},key:function(V){return J.push(V),Z},sortKeys:function(V){return Q[J.length-1]=V,Z},sortValues:function(V){return K=V,Z},rollup:function(V){return U=V,Z}}}function x(){return{}}function MJ(J,Q,K){J[Q]=K}function J0(){return f()}function n8(J,Q,K){J.set(Q,K)}function dJ(){}var Q0=f.prototype;dJ.prototype=B8.prototype={constructor:dJ,has:Q0.has,add:function(J){return J+="",this[_J+J]=J,this},remove:Q0.remove,clear:Q0.clear,values:Q0.keys,size:Q0.size,empty:Q0.empty,each:Q0.each};function B8(J,Q){var K=new dJ;if(J instanceof dJ)J.each(function(G){K.add(G)});else if(J){var U=-1,Z=J.length;if(Q==null)while(++U1);return J+Q*Z*Math.sqrt(-2*Math.log(U)/U)}}function WF(){var J=VU.apply(this,arguments);return function(){return Math.exp(J())}}function FU(J){return function(){for(var Q=0,K=0;K1&&yF(J[K[U-2]],J[K[U-1]],J[Z])<=0)--U;K[U++]=Z}return K.slice(0,U)}function mF(J){if((K=J.length)<3)return null;var Q,K,U=new Array(K),Z=new Array(K);for(Q=0;Q=0;--Q)H.push(J[U[G[Q]][2]]);for(Q=+V;QG!==V>G&&Z<(W-F)*(G-H)/(V-H)+F)B=!B;W=F,V=H}return B}function pF(J){var Q=-1,K=J.length,U=J[K-1],Z,G,W=U[0],V=U[1],F=0;while(++QY8));else if(!(Math.abs(B*V-F*H)>Y8)||!Z)this._.push("L",this._x1=J,",",this._y1=Q);else{var O=K-G,M=U-W,N=V*V+F*F,T=O*O+M*M,D=Math.sqrt(N),I=Math.sqrt(Y),C=Z*Math.tan((x7-Math.acos((N+Y-T)/(2*D*I)))/2),E=C/I,z=C/D;if(Math.abs(E-1)>Y8)this._.push("L",J+E*H,",",Q+E*B);this._.push("A",Z,",",Z,",0,0,",+(B*O>H*M),",",this._x1=J+z*V,",",this._y1=Q+z*F)}},arc:function(J,Q,K,U,Z,G){J=+J,Q=+Q,K=+K;var W=K*Math.cos(U),V=K*Math.sin(U),F=J+W,H=Q+V,B=1^G,Y=G?U-Z:Z-U;if(K<0)throw new Error("negative radius: "+K);if(this._x1===null)this._.push("M",F,",",H);else if(Math.abs(this._x1-F)>Y8||Math.abs(this._y1-H)>Y8)this._.push("L",F,",",H);if(!K)return;if(Y>cF)this._.push("A",K,",",K,",0,1,",B,",",J-W,",",Q-V,"A",K,",",K,",0,1,",B,",",this._x1=F,",",this._y1=H);else{if(Y<0)Y=Y%p7+p7;this._.push("A",K,",",K,",0,",+(Y>=x7),",",B,",",this._x1=J+K*Math.cos(Z),",",this._y1=Q+K*Math.sin(Z))}},rect:function(J,Q,K,U){this._.push("M",this._x0=this._x1=+J,",",this._y0=this._y1=+Q,"h",+K,"v",+U,"h",-K,"Z")},toString:function(){return this._.join("")}};function lF(J){var Q=+this._x.call(null,J),K=+this._y.call(null,J);return EU(this.cover(Q,K),Q,K,J)}function EU(J,Q,K,U){if(isNaN(Q)||isNaN(K))return J;var Z,G=J._root,W={data:U},V=J._x0,F=J._y0,H=J._x1,B=J._y1,Y,O,M,N,T,D,I,C;if(!G)return J._root=W,J;while(G.length){if(T=Q>=(Y=(V+H)/2))V=Y;else H=Y;if(D=K>=(O=(F+B)/2))F=O;else B=O;if(Z=G,!(G=G[I=D<<1|T]))return Z[I]=W,J}if(M=+J._x.call(null,G.data),N=+J._y.call(null,G.data),Q===M&&K===N)return W.next=G,Z?Z[I]=W:J._root=W,J;do{if(Z=Z?Z[I]=new Array(4):J._root=new Array(4),T=Q>=(Y=(V+H)/2))V=Y;else H=Y;if(D=K>=(O=(F+B)/2))F=O;else B=O}while((I=D<<1|T)===(C=(N>=O)<<1|M>=Y));return Z[C]=G,Z[I]=W,J}function dF(J){var Q,K,U=J.length,Z,G,W=new Array(U),V=new Array(U),F=1/0,H=1/0,B=-1/0,Y=-1/0;for(K=0;KB)B=Z;if(GY)Y=G}if(BJ||J>Z||U>Q||Q>G){var W=Z-K,V=this._root,F,H;switch(H=(Q<(U+G)/2)<<1|J<(K+Z)/2){case 0:{do F=new Array(4),F[H]=V,V=F;while(W*=2,Z=K+W,G=U+W,J>Z||Q>G);break}case 1:{do F=new Array(4),F[H]=V,V=F;while(W*=2,K=Z-W,G=U+W,K>J||Q>G);break}case 2:{do F=new Array(4),F[H]=V,V=F;while(W*=2,Z=K+W,U=G-W,J>Z||U>Q);break}case 3:{do F=new Array(4),F[H]=V,V=F;while(W*=2,K=Z-W,U=G-W,K>J||U>Q);break}}if(this._root&&this._root.length)this._root=V}else return this;return this._x0=K,this._y0=U,this._x1=Z,this._y1=G,this}function iF(){var J=[];return this.visit(function(Q){if(!Q.length)do J.push(Q.data);while(Q=Q.next)}),J}function nF(J){return arguments.length?this.cover(+J[0][0],+J[0][1]).cover(+J[1][0],+J[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function $J(J,Q,K,U,Z){this.node=J,this.x0=Q,this.y0=K,this.x1=U,this.y1=Z}function oF(J,Q,K){var U,Z=this._x0,G=this._y0,W,V,F,H,B=this._x1,Y=this._y1,O=[],M=this._root,N,T;if(M)O.push(new $J(M,Z,G,B,Y));if(K==null)K=1/0;else Z=J-K,G=Q-K,B=J+K,Y=Q+K,K*=K;while(N=O.pop()){if(!(M=N.node)||(W=N.x0)>B||(V=N.y0)>Y||(F=N.x1)=I)<<1|J>=D)N=O[O.length-1],O[O.length-1]=O[O.length-1-T],O[O.length-1-T]=N}else{var C=J-+this._x.call(null,M.data),E=Q-+this._y.call(null,M.data),z=C*C+E*E;if(z=(O=(W+F)/2))W=O;else F=O;if(T=Y>=(M=(V+H)/2))V=M;else H=M;if(Q=K,!(K=K[D=T<<1|N]))return this;if(!K.length)break;if(Q[D+1&3]||Q[D+2&3]||Q[D+3&3])U=Q,I=D}while(K.data!==J)if(Z=K,!(K=K.next))return this;if(G=K.next)delete K.next;if(Z)return G?Z.next=G:delete Z.next,this;if(!Q)return this._root=G,this;if(G?Q[D]=G:delete Q[D],(K=Q[0]||Q[1]||Q[2]||Q[3])&&K===(Q[3]||Q[2]||Q[1]||Q[0])&&!K.length)if(U)U[I]=K;else this._root=K;return this}function aF(J){for(var Q=0,K=J.length;Q=1))throw new Error;this._size=J,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}d7.prototype=AU.prototype={constructor:d7,defer:function(J){if(typeof J!=="function"||this._call)throw new Error;if(this._error!=null)return this;var Q=WH.call(arguments,1);return Q.push(J),++this._waiting,this._tasks.push(Q),LU(this),this},abort:function(){if(this._error==null)s7(this,new Error("abort"));return this},await:function(J){if(typeof J!=="function"||this._call)throw new Error;return this._call=function(Q,K){J.apply(null,[Q].concat(K))},r6(this),this},awaitAll:function(J){if(typeof J!=="function"||this._call)throw new Error;return this._call=J,r6(this),this}};function LU(J){if(!J._start)try{FH(J)}catch(Q){if(J._tasks[J._ended+J._active-1])s7(J,Q)}}function FH(J){while(J._start=J._waiting&&J._active=0)if(U=J._tasks[K]){if(J._tasks[K]=null,U.abort)try{U.abort()}catch(Z){}}J._active=NaN,r6(J)}function r6(J){if(!J._active&&J._call)J._call(J._error,J._data)}function AU(J){return new d7(arguments.length?+J:1/0)}function n(J){return function Q(){return J}}var LJ=0.000000000001,m0=Math.PI,a6=m0/2,R0=2*m0;function OH(J){return J.innerRadius}function BH(J){return J.outerRadius}function XH(J){return J.startAngle}function YH(J){return J.endAngle}function MH(J){return J&&J.padAngle}function PU(J){return J>=1?a6:J<=-1?-a6:Math.asin(J)}function NH(J,Q,K,U,Z,G,W,V){var F=K-J,H=U-Q,B=W-Z,Y=V-G,O=(B*(Q-G)-Y*(J-Z))/(Y*F-B*H);return[J+O*F,Q+O*H]}function t6(J,Q,K,U,Z,G,W){var V=J-K,F=Q-U,H=(W?G:-G)/Math.sqrt(V*V+F*F),B=H*F,Y=-H*V,O=J+B,M=Q+Y,N=K+B,T=U+Y,D=(O+N)/2,I=(M+T)/2,C=N-O,E=T-M,z=C*C+E*E,A=Z-G,P=O*T-N*M,R=(E<0?-1:1)*Math.sqrt(Math.max(0,A*A*z-P*P)),q=(P*E-C*R)/z,w=(-P*C-E*R)/z,$=(P*E+C*R)/z,k=(-P*C+E*R)/z,j=q-D,L=w-I,S=$-D,_=k-I;if(j*j+L*L>S*S+_*_)q=$,w=k;return{cx:q,cy:w,x01:-B,y01:-Y,x11:q*(Z/A-1),y11:w*(Z/A-1)}}function TH(){var J=OH,Q=BH,K=n(0),U=null,Z=XH,G=YH,W=MH,V=null;function F(){var H,B,Y=+J.apply(this,arguments),O=+Q.apply(this,arguments),M=Z.apply(this,arguments)-a6,N=G.apply(this,arguments)-a6,T=Math.abs(N-M),D=N>M;if(!V)V=H=u0();if(OLJ))V.moveTo(0,0);else if(T>R0-LJ){if(V.moveTo(O*Math.cos(M),O*Math.sin(M)),V.arc(0,0,O,M,N,!D),Y>LJ)V.moveTo(Y*Math.cos(N),Y*Math.sin(N)),V.arc(0,0,Y,N,M,D)}else{var I=M,C=N,E=M,z=N,A=T,P=T,R=W.apply(this,arguments)/2,q=R>LJ&&(U?+U.apply(this,arguments):Math.sqrt(Y*Y+O*O)),w=Math.min(Math.abs(O-Y)/2,+K.apply(this,arguments)),$=w,k=w,j,L;if(q>LJ){var S=PU(q/Y*Math.sin(R)),_=PU(q/O*Math.sin(R));if((A-=S*2)>LJ)S*=D?1:-1,E+=S,z-=S;else A=0,E=z=(M+N)/2;if((P-=_*2)>LJ)_*=D?1:-1,I+=_,C-=_;else P=0,I=C=(M+N)/2}var v=O*Math.cos(I),h=O*Math.sin(I),d=Y*Math.cos(z),i=Y*Math.sin(z);if(w>LJ){var JJ=O*Math.cos(C),r=O*Math.sin(C),QJ=Y*Math.cos(E),a=Y*Math.sin(E);if(TLJ?NH(v,h,QJ,a,JJ,r,d,i):[d,i],t=v-KJ[0],gJ=h-KJ[1],g=JJ-KJ[0],l=r-KJ[1],s=1/Math.sin(Math.acos((t*g+gJ*l)/(Math.sqrt(t*t+gJ*gJ)*Math.sqrt(g*g+l*l)))/2),b=Math.sqrt(KJ[0]*KJ[0]+KJ[1]*KJ[1]);$=Math.min(w,(Y-b)/(s-1)),k=Math.min(w,(O-b)/(s+1))}}if(!(P>LJ))V.moveTo(v,h);else if(k>LJ)if(j=t6(QJ,a,v,h,O,k,D),L=t6(JJ,r,d,i,O,k,D),V.moveTo(j.cx+j.x01,j.cy+j.y01),kLJ)||!(A>LJ))V.lineTo(d,i);else if($>LJ)if(j=t6(d,i,JJ,r,Y,-$,D),L=t6(v,h,QJ,a,Y,-$,D),V.lineTo(j.cx+j.x01,j.cy+j.y01),$=O;--M)V.point(C[M],E[M]);V.lineEnd(),V.areaEnd()}if(D)C[Y]=+J(T,Y,B),E[Y]=+K(T,Y,B),V.point(Q?+Q(T,Y,B):C[Y],U?+U(T,Y,B):E[Y])}if(I)return V=null,I+""||null}function H(){return i7().defined(Z).curve(W).context(G)}return F.x=function(B){return arguments.length?(J=typeof B==="function"?B:n(+B),Q=null,F):J},F.x0=function(B){return arguments.length?(J=typeof B==="function"?B:n(+B),F):J},F.x1=function(B){return arguments.length?(Q=B==null?null:typeof B==="function"?B:n(+B),F):Q},F.y=function(B){return arguments.length?(K=typeof B==="function"?B:n(+B),U=null,F):K},F.y0=function(B){return arguments.length?(K=typeof B==="function"?B:n(+B),F):K},F.y1=function(B){return arguments.length?(U=B==null?null:typeof B==="function"?B:n(+B),F):U},F.lineX0=F.lineY0=function(){return H().x(J).y(K)},F.lineY1=function(){return H().x(J).y(U)},F.lineX1=function(){return H().x(Q).y(K)},F.defined=function(B){return arguments.length?(Z=typeof B==="function"?B:n(!!B),F):Z},F.curve=function(B){return arguments.length?(W=B,G!=null&&(V=W(G)),F):W},F.context=function(B){return arguments.length?(B==null?G=V=null:V=W(G=B),F):G},F}function DH(J,Q){return QJ?1:Q>=J?0:NaN}function IH(J){return J}function EH(){var J=IH,Q=DH,K=null,U=n(0),Z=n(R0),G=n(0);function W(V){var F,H=V.length,B,Y,O=0,M=new Array(H),N=new Array(H),T=+U.apply(this,arguments),D=Math.min(R0,Math.max(-R0,Z.apply(this,arguments)-T)),I,C=Math.min(Math.abs(D)/H,G.apply(this,arguments)),E=C*(D<0?-1:1),z;for(F=0;F0)O+=z;if(Q!=null)M.sort(function(A,P){return Q(N[A],N[P])});else if(K!=null)M.sort(function(A,P){return K(V[A],V[P])});for(F=0,Y=O?(D-H*E)/O:0;F0?z*Y:0)+E,N[B]={data:V[B],index:F,value:z,startAngle:T,endAngle:I,padAngle:C};return N}return W.value=function(V){return arguments.length?(J=typeof V==="function"?V:n(+V),W):J},W.sortValues=function(V){return arguments.length?(Q=V,K=null,W):Q},W.sort=function(V){return arguments.length?(K=V,Q=null,W):K},W.startAngle=function(V){return arguments.length?(U=typeof V==="function"?V:n(+V),W):U},W.endAngle=function(V){return arguments.length?(Z=typeof V==="function"?V:n(+V),W):Z},W.padAngle=function(V){return arguments.length?(G=typeof V==="function"?V:n(+V),W):G},W}var wU=n7(e6);function jU(J){this._curve=J}jU.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(J,Q){this._curve.point(Q*Math.sin(J),Q*-Math.cos(J))}};function n7(J){function Q(K){return new jU(J(K))}return Q._curve=J,Q}function r8(J){var Q=J.curve;return J.angle=J.x,delete J.x,J.radius=J.y,delete J.y,J.curve=function(K){return arguments.length?Q(n7(K)):Q()._curve},J}function CH(){return r8(i7().curve(wU))}function LH(){var J=qU().curve(wU),Q=J.curve,K=J.lineX0,U=J.lineX1,Z=J.lineY0,G=J.lineY1;return J.angle=J.x,delete J.x,J.startAngle=J.x0,delete J.x0,J.endAngle=J.x1,delete J.x1,J.radius=J.y,delete J.y,J.innerRadius=J.y0,delete J.y0,J.outerRadius=J.y1,delete J.y1,J.lineStartAngle=function(){return r8(K())},delete J.lineX0,J.lineEndAngle=function(){return r8(U())},delete J.lineX1,J.lineInnerRadius=function(){return r8(Z())},delete J.lineY0,J.lineOuterRadius=function(){return r8(G())},delete J.lineY1,J.curve=function(W){return arguments.length?Q(n7(W)):Q()._curve},J}var o7={draw:function(J,Q){var K=Math.sqrt(Q/m0);J.moveTo(K,0),J.arc(0,0,K,0,R0)}},kU={draw:function(J,Q){var K=Math.sqrt(Q/5)/2;J.moveTo(-3*K,-K),J.lineTo(-K,-K),J.lineTo(-K,-3*K),J.lineTo(K,-3*K),J.lineTo(K,-K),J.lineTo(3*K,-K),J.lineTo(3*K,K),J.lineTo(K,K),J.lineTo(K,3*K),J.lineTo(-K,3*K),J.lineTo(-K,K),J.lineTo(-3*K,K),J.closePath()}},_U=Math.sqrt(0.3333333333333333),AH=_U*2,$U={draw:function(J,Q){var K=Math.sqrt(Q/AH),U=K*_U;J.moveTo(0,-K),J.lineTo(U,0),J.lineTo(0,K),J.lineTo(-U,0),J.closePath()}},PH=0.8908130915292852,vU=Math.sin(m0/10)/Math.sin(7*m0/10),zH=Math.sin(R0/10)*vU,RH=-Math.cos(R0/10)*vU,fU={draw:function(J,Q){var K=Math.sqrt(Q*PH),U=zH*K,Z=RH*K;J.moveTo(0,-K),J.lineTo(U,Z);for(var G=1;G<5;++G){var W=R0*G/5,V=Math.cos(W),F=Math.sin(W);J.lineTo(F*K,-V*K),J.lineTo(V*U-F*Z,F*U+V*Z)}J.closePath()}},hU={draw:function(J,Q){var K=Math.sqrt(Q),U=-K/2;J.rect(U,U,K,K)}},r7=Math.sqrt(3),gU={draw:function(J,Q){var K=-Math.sqrt(Q/(r7*3));J.moveTo(0,K*2),J.lineTo(-r7*K,-K),J.lineTo(r7*K,-K),J.closePath()}},sJ=-0.5,iJ=Math.sqrt(3)/2,a7=1/Math.sqrt(12),SH=(a7/2+1)*3,bU={draw:function(J,Q){var K=Math.sqrt(Q/SH),U=K/2,Z=K*a7,G=U,W=K*a7+K,V=-G,F=W;J.moveTo(U,Z),J.lineTo(G,W),J.lineTo(V,F),J.lineTo(sJ*U-iJ*Z,iJ*U+sJ*Z),J.lineTo(sJ*G-iJ*W,iJ*G+sJ*W),J.lineTo(sJ*V-iJ*F,iJ*V+sJ*F),J.lineTo(sJ*U+iJ*Z,sJ*Z-iJ*U),J.lineTo(sJ*G+iJ*W,sJ*W-iJ*G),J.lineTo(sJ*V+iJ*F,sJ*F-iJ*V),J.closePath()}},qH=[o7,kU,$U,hU,fU,gU,bU];function wH(){var J=n(o7),Q=n(64),K=null;function U(){var Z;if(!K)K=Z=u0();if(J.apply(this,arguments).draw(K,+Q.apply(this,arguments)),Z)return K=null,Z+""||null}return U.type=function(Z){return arguments.length?(J=typeof Z==="function"?Z:n(Z),U):J},U.size=function(Z){return arguments.length?(Q=typeof Z==="function"?Z:n(+Z),U):Q},U.context=function(Z){return arguments.length?(K=Z==null?null:Z,U):K},U}function S0(){}function J9(J,Q,K){J._context.bezierCurveTo((2*J._x0+J._x1)/3,(2*J._y0+J._y1)/3,(J._x0+2*J._x1)/3,(J._y0+2*J._y1)/3,(J._x0+4*J._x1+Q)/6,(J._y0+4*J._y1+K)/6)}function Q9(J){this._context=J}Q9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:J9(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(J,Q){switch(J=+J,Q=+Q,this._point){case 0:this._point=1,this._line?this._context.lineTo(J,Q):this._context.moveTo(J,Q);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:J9(this,J,Q);break}this._x0=this._x1,this._x1=J,this._y0=this._y1,this._y1=Q}};function jH(J){return new Q9(J)}function yU(J){this._context=J}yU.prototype={areaStart:S0,areaEnd:S0,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(J,Q){switch(J=+J,Q=+Q,this._point){case 0:this._point=1,this._x2=J,this._y2=Q;break;case 1:this._point=2,this._x3=J,this._y3=Q;break;case 2:this._point=3,this._x4=J,this._y4=Q,this._context.moveTo((this._x0+4*this._x1+J)/6,(this._y0+4*this._y1+Q)/6);break;default:J9(this,J,Q);break}this._x0=this._x1,this._x1=J,this._y0=this._y1,this._y1=Q}};function kH(J){return new yU(J)}function uU(J){this._context=J}uU.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(J,Q){switch(J=+J,Q=+Q,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var K=(this._x0+4*this._x1+J)/6,U=(this._y0+4*this._y1+Q)/6;this._line?this._context.lineTo(K,U):this._context.moveTo(K,U);break;case 3:this._point=4;default:J9(this,J,Q);break}this._x0=this._x1,this._x1=J,this._y0=this._y1,this._y1=Q}};function _H(J){return new uU(J)}function mU(J,Q){this._basis=new Q9(J),this._beta=Q}mU.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var J=this._x,Q=this._y,K=J.length-1;if(K>0){var U=J[0],Z=Q[0],G=J[K]-U,W=Q[K]-Z,V=-1,F;while(++V<=K)F=V/K,this._basis.point(this._beta*J[V]+(1-this._beta)*(U+F*G),this._beta*Q[V]+(1-this._beta)*(Z+F*W))}this._x=this._y=null,this._basis.lineEnd()},point:function(J,Q){this._x.push(+J),this._y.push(+Q)}};var $H=function J(Q){function K(U){return Q===1?new Q9(U):new mU(U,Q)}return K.beta=function(U){return J(+U)},K}(0.85);function K9(J,Q,K){J._context.bezierCurveTo(J._x1+J._k*(J._x2-J._x0),J._y1+J._k*(J._y2-J._y0),J._x2+J._k*(J._x1-Q),J._y2+J._k*(J._y1-K),J._x2,J._y2)}function t7(J,Q){this._context=J,this._k=(1-Q)/6}t7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:K9(this,this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(J,Q){switch(J=+J,Q=+Q,this._point){case 0:this._point=1,this._line?this._context.lineTo(J,Q):this._context.moveTo(J,Q);break;case 1:this._point=2,this._x1=J,this._y1=Q;break;case 2:this._point=3;default:K9(this,J,Q);break}this._x0=this._x1,this._x1=this._x2,this._x2=J,this._y0=this._y1,this._y1=this._y2,this._y2=Q}};var vH=function J(Q){function K(U){return new t7(U,Q)}return K.tension=function(U){return J(+U)},K}(0);function e7(J,Q){this._context=J,this._k=(1-Q)/6}e7.prototype={areaStart:S0,areaEnd:S0,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(J,Q){switch(J=+J,Q=+Q,this._point){case 0:this._point=1,this._x3=J,this._y3=Q;break;case 1:this._point=2,this._context.moveTo(this._x4=J,this._y4=Q);break;case 2:this._point=3,this._x5=J,this._y5=Q;break;default:K9(this,J,Q);break}this._x0=this._x1,this._x1=this._x2,this._x2=J,this._y0=this._y1,this._y1=this._y2,this._y2=Q}};var fH=function J(Q){function K(U){return new e7(U,Q)}return K.tension=function(U){return J(+U)},K}(0);function JQ(J,Q){this._context=J,this._k=(1-Q)/6}JQ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(J,Q){switch(J=+J,Q=+Q,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:K9(this,J,Q);break}this._x0=this._x1,this._x1=this._x2,this._x2=J,this._y0=this._y1,this._y1=this._y2,this._y2=Q}};var hH=function J(Q){function K(U){return new JQ(U,Q)}return K.tension=function(U){return J(+U)},K}(0);function QQ(J,Q,K){var{_x1:U,_y1:Z,_x2:G,_y2:W}=J;if(J._l01_a>LJ){var V=2*J._l01_2a+3*J._l01_a*J._l12_a+J._l12_2a,F=3*J._l01_a*(J._l01_a+J._l12_a);U=(U*V-J._x0*J._l12_2a+J._x2*J._l01_2a)/F,Z=(Z*V-J._y0*J._l12_2a+J._y2*J._l01_2a)/F}if(J._l23_a>LJ){var H=2*J._l23_2a+3*J._l23_a*J._l12_a+J._l12_2a,B=3*J._l23_a*(J._l23_a+J._l12_a);G=(G*H+J._x1*J._l23_2a-Q*J._l12_2a)/B,W=(W*H+J._y1*J._l23_2a-K*J._l12_2a)/B}J._context.bezierCurveTo(U,Z,G,W,J._x2,J._y2)}function xU(J,Q){this._context=J,this._alpha=Q}xU.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this,this._x2,this._y2);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(J,Q){if(J=+J,Q=+Q,this._point){var K=this._x2-J,U=this._y2-Q;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(K*K+U*U,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(J,Q):this._context.moveTo(J,Q);break;case 1:this._point=2;break;case 2:this._point=3;default:QQ(this,J,Q);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=J,this._y0=this._y1,this._y1=this._y2,this._y2=Q}};var gH=function J(Q){function K(U){return Q?new xU(U,Q):new t7(U,0)}return K.alpha=function(U){return J(+U)},K}(0.5);function pU(J,Q){this._context=J,this._alpha=Q}pU.prototype={areaStart:S0,areaEnd:S0,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(J,Q){if(J=+J,Q=+Q,this._point){var K=this._x2-J,U=this._y2-Q;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(K*K+U*U,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=J,this._y3=Q;break;case 1:this._point=2,this._context.moveTo(this._x4=J,this._y4=Q);break;case 2:this._point=3,this._x5=J,this._y5=Q;break;default:QQ(this,J,Q);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=J,this._y0=this._y1,this._y1=this._y2,this._y2=Q}};var bH=function J(Q){function K(U){return Q?new pU(U,Q):new e7(U,0)}return K.alpha=function(U){return J(+U)},K}(0.5);function cU(J,Q){this._context=J,this._alpha=Q}cU.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(J,Q){if(J=+J,Q=+Q,this._point){var K=this._x2-J,U=this._y2-Q;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(K*K+U*U,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:QQ(this,J,Q);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=J,this._y0=this._y1,this._y1=this._y2,this._y2=Q}};var yH=function J(Q){function K(U){return Q?new cU(U,Q):new JQ(U,0)}return K.alpha=function(U){return J(+U)},K}(0.5);function lU(J){this._context=J}lU.prototype={areaStart:S0,areaEnd:S0,lineStart:function(){this._point=0},lineEnd:function(){if(this._point)this._context.closePath()},point:function(J,Q){if(J=+J,Q=+Q,this._point)this._context.lineTo(J,Q);else this._point=1,this._context.moveTo(J,Q)}};function uH(J){return new lU(J)}function dU(J){return J<0?-1:1}function sU(J,Q,K){var U=J._x1-J._x0,Z=Q-J._x1,G=(J._y1-J._y0)/(U||Z<0&&-0),W=(K-J._y1)/(Z||U<0&&-0),V=(G*Z+W*U)/(U+Z);return(dU(G)+dU(W))*Math.min(Math.abs(G),Math.abs(W),0.5*Math.abs(V))||0}function iU(J,Q){var K=J._x1-J._x0;return K?(3*(J._y1-J._y0)/K-Q)/2:Q}function KQ(J,Q,K){var{_x0:U,_y0:Z,_x1:G,_y1:W}=J,V=(G-U)/3;J._context.bezierCurveTo(U+V,Z+V*Q,G-V,W-V*K,G,W)}function U9(J){this._context=J}U9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:KQ(this,this._t0,iU(this,this._t0));break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(J,Q){var K=NaN;if(J=+J,Q=+Q,J===this._x1&&Q===this._y1)return;switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(J,Q):this._context.moveTo(J,Q);break;case 1:this._point=2;break;case 2:this._point=3,KQ(this,iU(this,K=sU(this,J,Q)),K);break;default:KQ(this,this._t0,K=sU(this,J,Q));break}this._x0=this._x1,this._x1=J,this._y0=this._y1,this._y1=Q,this._t0=K}};function nU(J){this._context=new oU(J)}(nU.prototype=Object.create(U9.prototype)).point=function(J,Q){U9.prototype.point.call(this,Q,J)};function oU(J){this._context=J}oU.prototype={moveTo:function(J,Q){this._context.moveTo(Q,J)},closePath:function(){this._context.closePath()},lineTo:function(J,Q){this._context.lineTo(Q,J)},bezierCurveTo:function(J,Q,K,U,Z,G){this._context.bezierCurveTo(Q,J,U,K,G,Z)}};function mH(J){return new U9(J)}function xH(J){return new nU(J)}function rU(J){this._context=J}rU.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var J=this._x,Q=this._y,K=J.length;if(K)if(this._line?this._context.lineTo(J[0],Q[0]):this._context.moveTo(J[0],Q[0]),K===2)this._context.lineTo(J[1],Q[1]);else{var U=aU(J),Z=aU(Q);for(var G=0,W=1;W=0;--Q)Z[Q]=(W[Q]-Z[Q+1])/G[Q];G[K-1]=(J[K]+Z[K-1])/2;for(Q=0;Q=0)this._t=1-this._t,this._line=1-this._line},point:function(J,Q){switch(J=+J,Q=+Q,this._point){case 0:this._point=1,this._line?this._context.lineTo(J,Q):this._context.moveTo(J,Q);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,Q),this._context.lineTo(J,Q);else{var K=this._x*(1-this._t)+J*this._t;this._context.lineTo(K,this._y),this._context.lineTo(K,Q)}break}}this._x=J,this._y=Q}};function cH(J){return new Z9(J,0.5)}function lH(J){return new Z9(J,0)}function dH(J){return new Z9(J,1)}var tU=Array.prototype.slice;function M8(J,Q){if(!((G=J.length)>1))return;for(var K=1,U,Z=J[Q[0]],G,W=Z.length;K=0)K[Q]=Q;return K}function sH(J,Q){return J[Q]}function iH(){var J=n([]),Q=N8,K=M8,U=sH;function Z(G){var W=J.apply(this,arguments),V,F=G.length,H=W.length,B=new Array(H),Y;for(V=0;V0))return;for(var K,U,Z=0,G=J[0].length,W;Z0))return;for(var K=0,U=J[Q[0]],Z,G=U.length;K0)||!((G=(Z=J[Q[0]]).length)>0))return;for(var K=0,U=1,Z,G,W;U>8&15|Q>>4&240,Q>>4&15|Q&240,(Q&15)<<4|Q&15,1)):(Q=QO.exec(J))?KZ(parseInt(Q[1],16)):(Q=KO.exec(J))?new IJ(Q[1],Q[2],Q[3],1):(Q=UO.exec(J))?new IJ(Q[1]*255/100,Q[2]*255/100,Q[3]*255/100,1):(Q=ZO.exec(J))?UZ(Q[1],Q[2],Q[3],Q[4]):(Q=GO.exec(J))?UZ(Q[1]*255/100,Q[2]*255/100,Q[3]*255/100,Q[4]):(Q=WO.exec(J))?ZZ(Q[1],Q[2]/100,Q[3]/100,1):(Q=VO.exec(J))?ZZ(Q[1],Q[2]/100,Q[3]/100,Q[4]):QZ.hasOwnProperty(J)?KZ(QZ[J]):J==="transparent"?new IJ(NaN,NaN,NaN,0):null}function KZ(J){return new IJ(J>>16&255,J>>8&255,J&255,1)}function UZ(J,Q,K,U){if(U<=0)J=Q=K=NaN;return new IJ(J,Q,K,U)}function UQ(J){if(!(J instanceof q0))J=w0(J);if(!J)return new IJ;return J=J.rgb(),new IJ(J.r,J.g,J.b,J.opacity)}function t8(J,Q,K,U){return arguments.length===1?UQ(J):new IJ(J,Q,K,U==null?1:U)}function IJ(J,Q,K,U){this.r=+J,this.g=+Q,this.b=+K,this.opacity=+U}T8(IJ,t8,a8(q0,{brighter:function(J){return J=J==null?D8:Math.pow(D8,J),new IJ(this.r*J,this.g*J,this.b*J,this.opacity)},darker:function(J){return J=J==null?x0:Math.pow(x0,J),new IJ(this.r*J,this.g*J,this.b*J,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&(0<=this.g&&this.g<=255)&&(0<=this.b&&this.b<=255)&&(0<=this.opacity&&this.opacity<=1)},toString:function(){var J=this.opacity;return J=isNaN(J)?1:Math.max(0,Math.min(1,J)),(J===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))+(J===1?")":", "+J+")")}}));function ZZ(J,Q,K,U){if(U<=0)J=Q=K=NaN;else if(K<=0||K>=1)J=Q=NaN;else if(Q<=0)J=NaN;return new V0(J,Q,K,U)}function FO(J){if(J instanceof V0)return new V0(J.h,J.s,J.l,J.opacity);if(!(J instanceof q0))J=w0(J);if(!J)return new V0;if(J instanceof V0)return J;J=J.rgb();var Q=J.r/255,K=J.g/255,U=J.b/255,Z=Math.min(Q,K,U),G=Math.max(Q,K,U),W=NaN,V=G-Z,F=(G+Z)/2;if(V){if(Q===G)W=(K-U)/V+(K0&&F<1?0:W;return new V0(W,V,F,J.opacity)}function G9(J,Q,K,U){return arguments.length===1?FO(J):new V0(J,Q,K,U==null?1:U)}function V0(J,Q,K,U){this.h=+J,this.s=+Q,this.l=+K,this.opacity=+U}T8(V0,G9,a8(q0,{brighter:function(J){return J=J==null?D8:Math.pow(D8,J),new V0(this.h,this.s,this.l*J,this.opacity)},darker:function(J){return J=J==null?x0:Math.pow(x0,J),new V0(this.h,this.s,this.l*J,this.opacity)},rgb:function(){var J=this.h%360+(this.h<0)*360,Q=isNaN(J)||isNaN(this.s)?0:this.s,K=this.l,U=K+(K<0.5?K:1-K)*Q,Z=2*K-U;return new IJ(ZQ(J>=240?J-240:J+120,Z,U),ZQ(J,Z,U),ZQ(J<120?J+240:J-120,Z,U),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)}}));function ZQ(J,Q,K){return(J<60?Q+(K-Q)*J/60:J<180?K:J<240?Q+(K-Q)*(240-J)/60:Q)*255}var GZ=Math.PI/180,WZ=180/Math.PI,W9=18,VZ=0.95047,FZ=1,HZ=1.08883,OZ=0.13793103448275862,I8=0.20689655172413793,BZ=3*I8*I8,HO=I8*I8*I8;function GQ(J){if(J instanceof T0)return new T0(J.l,J.a,J.b,J.opacity);if(J instanceof j0){var Q=J.h*GZ;return new T0(J.l,Math.cos(Q)*J.c,Math.sin(Q)*J.c,J.opacity)}if(!(J instanceof IJ))J=UQ(J);var K=HQ(J.r),U=HQ(J.g),Z=HQ(J.b),G=WQ((0.4124564*K+0.3575761*U+0.1804375*Z)/VZ),W=WQ((0.2126729*K+0.7151522*U+0.072175*Z)/FZ),V=WQ((0.0193339*K+0.119192*U+0.9503041*Z)/HZ);return new T0(116*W-16,500*(G-W),200*(W-V),J.opacity)}function V9(J,Q,K,U){return arguments.length===1?GQ(J):new T0(J,Q,K,U==null?1:U)}function T0(J,Q,K,U){this.l=+J,this.a=+Q,this.b=+K,this.opacity=+U}T8(T0,V9,a8(q0,{brighter:function(J){return new T0(this.l+W9*(J==null?1:J),this.a,this.b,this.opacity)},darker:function(J){return new T0(this.l-W9*(J==null?1:J),this.a,this.b,this.opacity)},rgb:function(){var J=(this.l+16)/116,Q=isNaN(this.a)?J:J+this.a/500,K=isNaN(this.b)?J:J-this.b/200;return J=FZ*VQ(J),Q=VZ*VQ(Q),K=HZ*VQ(K),new IJ(FQ(3.2404542*Q-1.5371385*J-0.4985314*K),FQ(-0.969266*Q+1.8760108*J+0.041556*K),FQ(0.0556434*Q-0.2040259*J+1.0572252*K),this.opacity)}}));function WQ(J){return J>HO?Math.pow(J,0.3333333333333333):J/BZ+OZ}function VQ(J){return J>I8?J*J*J:BZ*(J-OZ)}function FQ(J){return 255*(J<=0.0031308?12.92*J:1.055*Math.pow(J,0.4166666666666667)-0.055)}function HQ(J){return(J/=255)<=0.04045?J/12.92:Math.pow((J+0.055)/1.055,2.4)}function OO(J){if(J instanceof j0)return new j0(J.h,J.c,J.l,J.opacity);if(!(J instanceof T0))J=GQ(J);var Q=Math.atan2(J.b,J.a)*WZ;return new j0(Q<0?Q+360:Q,Math.sqrt(J.a*J.a+J.b*J.b),J.l,J.opacity)}function F9(J,Q,K,U){return arguments.length===1?OO(J):new j0(J,Q,K,U==null?1:U)}function j0(J,Q,K,U){this.h=+J,this.c=+Q,this.l=+K,this.opacity=+U}T8(j0,F9,a8(q0,{brighter:function(J){return new j0(this.h,this.c,this.l+W9*(J==null?1:J),this.opacity)},darker:function(J){return new j0(this.h,this.c,this.l-W9*(J==null?1:J),this.opacity)},rgb:function(){return GQ(this).rgb()}}));var XZ=-0.14861,OQ=1.78277,BQ=-0.29227,H9=-0.90649,e8=1.97294,YZ=e8*H9,MZ=e8*OQ,NZ=OQ*BQ-H9*XZ;function BO(J){if(J instanceof p0)return new p0(J.h,J.s,J.l,J.opacity);if(!(J instanceof IJ))J=UQ(J);var Q=J.r/255,K=J.g/255,U=J.b/255,Z=(NZ*U+YZ*Q-MZ*K)/(NZ+YZ-MZ),G=U-Z,W=(e8*(K-Z)-BQ*G)/H9,V=Math.sqrt(W*W+G*G)/(e8*Z*(1-Z)),F=V?Math.atan2(W,G)*WZ-120:NaN;return new p0(F<0?F+360:F,V,Z,J.opacity)}function K0(J,Q,K,U){return arguments.length===1?BO(J):new p0(J,Q,K,U==null?1:U)}function p0(J,Q,K,U){this.h=+J,this.s=+Q,this.l=+K,this.opacity=+U}T8(p0,K0,a8(q0,{brighter:function(J){return J=J==null?D8:Math.pow(D8,J),new p0(this.h,this.s,this.l*J,this.opacity)},darker:function(J){return J=J==null?x0:Math.pow(x0,J),new p0(this.h,this.s,this.l*J,this.opacity)},rgb:function(){var J=isNaN(this.h)?0:(this.h+120)*GZ,Q=+this.l,K=isNaN(this.s)?0:this.s*Q*(1-Q),U=Math.cos(J),Z=Math.sin(J);return new IJ(255*(Q+K*(XZ*U+OQ*Z)),255*(Q+K*(BQ*U+H9*Z)),255*(Q+K*(e8*U)),this.opacity)}}));function TZ(J,Q,K,U,Z){var G=J*J,W=G*J;return((1-3*J+3*G-W)*Q+(4-6*G+3*W)*K+(1+3*J+3*G-3*W)*U+W*Z)/6}function DZ(J){var Q=J.length-1;return function(K){var U=K<=0?K=0:K>=1?(K=1,Q-1):Math.floor(K*Q),Z=J[U],G=J[U+1],W=U>0?J[U-1]:2*Z-G,V=U180||K<-180?K-360*Math.round(K/360):K):O9(isNaN(J)?Q:J)}function YO(J){return(J=+J)===1?EJ:function(Q,K){return K-Q?XO(Q,K,J):O9(isNaN(Q)?K:Q)}}function EJ(J,Q){var K=Q-J;return K?EZ(J,K):O9(isNaN(J)?Q:J)}var J6=function J(Q){var K=YO(Q);function U(Z,G){var W=K((Z=t8(Z)).r,(G=t8(G)).r),V=K(Z.g,G.g),F=K(Z.b,G.b),H=K(Z.opacity,G.opacity);return function(B){return Z.r=W(B),Z.g=V(B),Z.b=F(B),Z.opacity=H(B),Z+""}}return U.gamma=J,U}(1);function CZ(J){return function(Q){var K=Q.length,U=new Array(K),Z=new Array(K),G=new Array(K),W,V;for(W=0;WK)if(G=Q.slice(K,G),V[W])V[W]+=G;else V[++W]=G;if((U=U[0])===(Z=Z[0]))if(V[W])V[W]+=Z;else V[++W]=Z;else V[++W]=null,F.push({i:W,x:xJ(U,Z)});K=MQ.lastIndex}if(K180)B+=360;else if(B-H>180)H+=360;O.push({i:Y.push(Z(Y)+"rotate(",null,U)-2,x:xJ(H,B)})}else if(B)Y.push(Z(Y)+"rotate("+B+U)}function V(H,B,Y,O){if(H!==B)O.push({i:Y.push(Z(Y)+"skewX(",null,U)-2,x:xJ(H,B)});else if(B)Y.push(Z(Y)+"skewX("+B+U)}function F(H,B,Y,O,M,N){if(H!==Y||B!==O){var T=M.push(Z(M)+"scale(",null,",",null,")");N.push({i:T-4,x:xJ(H,Y)},{i:T-2,x:xJ(B,O)})}else if(Y!==1||O!==1)M.push(Z(M)+"scale("+Y+","+O+")")}return function(H,B){var Y=[],O=[];return H=J(H),B=J(B),G(H.translateX,H.translateY,B.translateX,B.translateY,Y,O),W(H.rotate,B.rotate,Y,O),V(H.skewX,B.skewX,Y,O),F(H.scaleX,H.scaleY,B.scaleX,B.scaleY,Y,O),H=B=null,function(M){var N=-1,T=O.length,D;while(++N=0)U=K.slice(Z+1),K=K.slice(0,Z);if(K&&!Q.hasOwnProperty(K))throw new Error("unknown type: "+K);return{type:K,name:U}})}Y9.prototype=k0.prototype={constructor:Y9,on:function(J,Q){var K=this._,U=_O(J+"",K),Z,G=-1,W=U.length;if(arguments.length<2){while(++G0)for(var K=new Array(Z),U=0,Z,G;U=N)return O;if(C)return C=!1,Y;var A=T,P;if(H.charCodeAt(A)===34){var R=A;while(R++3&&O(M)};function O(M){var N=W.status,T;if(!N&&pO(W)||N>=200&&N<300||N===304){if(H)try{T=H.call(K,W)}catch(D){U.call("error",K,D);return}else T=W;U.call("load",K,T)}else U.call("error",K,M)}if(W.onprogress=function(M){U.call("progress",K,M)},K={header:function(M,N){if(M=(M+"").toLowerCase(),arguments.length<2)return G.get(M);if(N==null)G.remove(M);else G.set(M,N+"");return K},mimeType:function(M){if(!arguments.length)return Z;return Z=M==null?null:M+"",K},responseType:function(M){if(!arguments.length)return B;return B=M,K},timeout:function(M){if(!arguments.length)return Y;return Y=+M,K},user:function(M){return arguments.length<1?V:(V=M==null?null:M+"",K)},password:function(M){return arguments.length<1?F:(F=M==null?null:M+"",K)},response:function(M){return H=M,K},get:function(M,N){return K.send("GET",M,N)},post:function(M,N){return K.send("POST",M,N)},send:function(M,N,T){if(W.open(M,J,!0,V,F),Z!=null&&!G.has("accept"))G.set("accept",Z+",*/*");if(W.setRequestHeader)G.each(function(D,I){W.setRequestHeader(I,D)});if(Z!=null&&W.overrideMimeType)W.overrideMimeType(Z);if(B!=null)W.responseType=B;if(Y>0)W.timeout=Y;if(T==null&&typeof N==="function")T=N,N=null;if(T!=null&&T.length===1)T=xO(T);if(T!=null)K.on("error",T).on("load",function(D){T(null,D)});return U.call("beforesend",K,W),W.send(N==null?null:N),K},abort:function(){return W.abort(),K},on:function(){var M=U.on.apply(U,arguments);return M===U?K:M}},Q!=null){if(typeof Q!=="function")throw new Error("invalid callback: "+Q);return K.get(Q)}return K}function xO(J){return function(Q,K){J(Q==null?K:null)}}function pO(J){var Q=J.responseType;return Q&&Q!=="text"?J.response:J.responseText}function T9(J,Q){return function(K,U){var Z=CQ(K).mimeType(J).response(Q);if(U!=null){if(typeof U!=="function")throw new Error("invalid callback: "+U);return Z.get(U)}return Z}}var cO=T9("text/html",function(J){return document.createRange().createContextualFragment(J.responseText)}),lO=T9("application/json",function(J){return JSON.parse(J.responseText)}),dO=T9("text/plain",function(J){return J.responseText}),sO=T9("application/xml",function(J){var Q=J.responseXML;if(!Q)throw new Error("parse error");return Q});function xZ(J,Q){return function(K,U,Z){if(arguments.length<3)Z=U,U=null;var G=CQ(K).mimeType(J);return G.row=function(W){return arguments.length?G.response(iO(Q,U=W)):U},G.row(U),Z?G.get(Z):G}}function iO(J,Q){return function(K){return J(K.responseText,Q)}}var nO=xZ("text/csv",uZ),oO=xZ("text/tab-separated-values",mZ),E8=0,Z6=0,G6=0,pZ=1000,D9,W6,LQ=0,c0=0,AQ=0,V6=typeof performance==="object"&&performance.now?performance:Date,cZ=typeof requestAnimationFrame==="function"?V6===Date?function(J){requestAnimationFrame(function(){J(V6.now())})}:requestAnimationFrame:function(J){setTimeout(J,17)};function C8(){return c0||(cZ(rO),c0=V6.now()+AQ)}function rO(){c0=0}function F6(){this._call=this._time=this._next=null}F6.prototype=I9.prototype={constructor:F6,restart:function(J,Q,K){if(typeof J!=="function")throw new TypeError("callback is not a function");if(K=(K==null?C8():+K)+(Q==null?0:+Q),!this._next&&W6!==this){if(W6)W6._next=this;else D9=this;W6=this}this._call=J,this._time=K,PQ()},stop:function(){if(this._call)this._call=null,this._time=1/0,PQ()}};function I9(J,Q,K){var U=new F6;return U.restart(J,Q,K),U}function lZ(){C8(),++E8;var J=D9,Q;while(J){if((Q=c0-J._time)>=0)J._call.call(null,Q);J=J._next}--E8}function dZ(J){c0=(LQ=J||V6.now())+AQ,E8=Z6=0;try{lZ()}finally{E8=0,tO(),c0=0}}function aO(){var J=V6.now(),Q=J-LQ;if(Q>pZ)AQ-=Q,LQ=J}function tO(){var J,Q=D9,K,U=1/0;while(Q)if(Q._call){if(U>Q._time)U=Q._time;J=Q,Q=Q._next}else K=Q._next,Q._next=null,Q=J?J._next=K:D9=K;W6=J,PQ(U)}function PQ(J){if(E8)return;if(Z6)Z6=clearTimeout(Z6);var Q=J-c0;if(Q>24){if(J<1/0)Z6=setTimeout(dZ,Q);if(G6)G6=clearInterval(G6)}else{if(!G6)G6=setInterval(aO,pZ);E8=1,cZ(dZ)}}function sZ(J,Q,K){var U=new F6;return Q=Q==null?0:+Q,U.restart(function(Z){U.stop(),J(Z+Q)},Q,K),U}function eO(J,Q,K){var U=new F6,Z=Q;if(Q==null)return U.restart(J,Q,K),U;return Q=+Q,K=K==null?C8():+K,U.restart(function G(W){W+=Z,U.restart(G,Z+=Q,K),J(W)},Q,K),U}var zQ=new Date,RQ=new Date;function NJ(J,Q,K,U){function Z(G){return J(G=new Date(+G)),G}if(Z.floor=Z,Z.ceil=function(G){return J(G=new Date(G-1)),Q(G,1),J(G),G},Z.round=function(G){var W=Z(G),V=Z.ceil(G);return G-W0))return F;do F.push(new Date(+G));while(Q(G,V),J(G),G=0)while(Q(W,1),!G(W));})},K)Z.count=function(G,W){return zQ.setTime(+G),RQ.setTime(+W),J(zQ),J(RQ),Math.floor(K(zQ,RQ))},Z.every=function(G){return G=Math.floor(G),!isFinite(G)||!(G>0)?null:!(G>1)?Z:Z.filter(U?function(W){return U(W)%G===0}:function(W){return Z.count(0,W)%G===0})};return Z}var l0=NJ(function(){},function(J,Q){J.setTime(+J+Q)},function(J,Q){return Q-J});l0.every=function(J){if(J=Math.floor(J),!isFinite(J)||!(J>0))return null;if(!(J>1))return l0;return NJ(function(Q){Q.setTime(Math.floor(Q/J)*J)},function(Q,K){Q.setTime(+Q+K*J)},function(Q,K){return(K-Q)/J})};var iZ=l0.range,E9=1000,D0=60000,_0=3600000,nZ=86400000,oZ=604800000,H6=NJ(function(J){J.setTime(Math.floor(J/E9)*E9)},function(J,Q){J.setTime(+J+Q*E9)},function(J,Q){return(Q-J)/E9},function(J){return J.getUTCSeconds()}),rZ=H6.range,SQ=NJ(function(J){J.setTime(Math.floor(J/D0)*D0)},function(J,Q){J.setTime(+J+Q*D0)},function(J,Q){return(Q-J)/D0},function(J){return J.getMinutes()}),JB=SQ.range,qQ=NJ(function(J){var Q=J.getTimezoneOffset()*D0%_0;if(Q<0)Q+=_0;J.setTime(Math.floor((+J-Q)/_0)*_0+Q)},function(J,Q){J.setTime(+J+Q*_0)},function(J,Q){return(Q-J)/_0},function(J){return J.getHours()}),QB=qQ.range,C9=NJ(function(J){J.setHours(0,0,0,0)},function(J,Q){J.setDate(J.getDate()+Q)},function(J,Q){return(Q-J-(Q.getTimezoneOffset()-J.getTimezoneOffset())*D0)/nZ},function(J){return J.getDate()-1}),KB=C9.range;function d0(J){return NJ(function(Q){Q.setDate(Q.getDate()-(Q.getDay()+7-J)%7),Q.setHours(0,0,0,0)},function(Q,K){Q.setDate(Q.getDate()+K*7)},function(Q,K){return(K-Q-(K.getTimezoneOffset()-Q.getTimezoneOffset())*D0)/oZ})}var O6=d0(0),wQ=d0(1),aZ=d0(2),tZ=d0(3),eZ=d0(4),JG=d0(5),QG=d0(6),KG=O6.range,UB=wQ.range,ZB=aZ.range,GB=tZ.range,WB=eZ.range,VB=JG.range,FB=QG.range,jQ=NJ(function(J){J.setDate(1),J.setHours(0,0,0,0)},function(J,Q){J.setMonth(J.getMonth()+Q)},function(J,Q){return Q.getMonth()-J.getMonth()+(Q.getFullYear()-J.getFullYear())*12},function(J){return J.getMonth()}),HB=jQ.range,s0=NJ(function(J){J.setMonth(0,1),J.setHours(0,0,0,0)},function(J,Q){J.setFullYear(J.getFullYear()+Q)},function(J,Q){return Q.getFullYear()-J.getFullYear()},function(J){return J.getFullYear()});s0.every=function(J){return!isFinite(J=Math.floor(J))||!(J>0)?null:NJ(function(Q){Q.setFullYear(Math.floor(Q.getFullYear()/J)*J),Q.setMonth(0,1),Q.setHours(0,0,0,0)},function(Q,K){Q.setFullYear(Q.getFullYear()+K*J)})};var OB=s0.range,kQ=NJ(function(J){J.setUTCSeconds(0,0)},function(J,Q){J.setTime(+J+Q*D0)},function(J,Q){return(Q-J)/D0},function(J){return J.getUTCMinutes()}),BB=kQ.range,_Q=NJ(function(J){J.setUTCMinutes(0,0,0)},function(J,Q){J.setTime(+J+Q*_0)},function(J,Q){return(Q-J)/_0},function(J){return J.getUTCHours()}),XB=_Q.range,L9=NJ(function(J){J.setUTCHours(0,0,0,0)},function(J,Q){J.setUTCDate(J.getUTCDate()+Q)},function(J,Q){return(Q-J)/nZ},function(J){return J.getUTCDate()-1}),YB=L9.range;function i0(J){return NJ(function(Q){Q.setUTCDate(Q.getUTCDate()-(Q.getUTCDay()+7-J)%7),Q.setUTCHours(0,0,0,0)},function(Q,K){Q.setUTCDate(Q.getUTCDate()+K*7)},function(Q,K){return(K-Q)/oZ})}var B6=i0(0),$Q=i0(1),UG=i0(2),ZG=i0(3),GG=i0(4),WG=i0(5),VG=i0(6),FG=B6.range,MB=$Q.range,NB=UG.range,TB=ZG.range,DB=GG.range,IB=WG.range,EB=VG.range,vQ=NJ(function(J){J.setUTCDate(1),J.setUTCHours(0,0,0,0)},function(J,Q){J.setUTCMonth(J.getUTCMonth()+Q)},function(J,Q){return Q.getUTCMonth()-J.getUTCMonth()+(Q.getUTCFullYear()-J.getUTCFullYear())*12},function(J){return J.getUTCMonth()}),CB=vQ.range,n0=NJ(function(J){J.setUTCMonth(0,1),J.setUTCHours(0,0,0,0)},function(J,Q){J.setUTCFullYear(J.getUTCFullYear()+Q)},function(J,Q){return Q.getUTCFullYear()-J.getUTCFullYear()},function(J){return J.getUTCFullYear()});n0.every=function(J){return!isFinite(J=Math.floor(J))||!(J>0)?null:NJ(function(Q){Q.setUTCFullYear(Math.floor(Q.getUTCFullYear()/J)*J),Q.setUTCMonth(0,1),Q.setUTCHours(0,0,0,0)},function(Q,K){Q.setUTCFullYear(Q.getUTCFullYear()+K*J)})};var LB=n0.range;function A9(J,Q){if((K=(J=Q?J.toExponential(Q-1):J.toExponential()).indexOf("e"))<0)return null;var K,U=J.slice(0,K);return[U.length>1?U[0]+U.slice(2):U,+J.slice(K+1)]}function L8(J){return J=A9(Math.abs(J)),J?J[1]:NaN}function AB(J,Q){return function(K,U){var Z=K.length,G=[],W=0,V=J[0],F=0;while(Z>0&&V>0){if(F+V+1>U)V=Math.max(1,U-F);if(G.push(K.substring(Z-=V,Z+V)),(F+=V+1)>U)break;V=J[W=(W+1)%J.length]}return G.reverse().join(Q)}}function PB(J,Q){J=J.toPrecision(Q);J:for(var K=J.length,U=1,Z=-1,G;U0)Z=0;break}return Z>0?J.slice(0,Z)+J.slice(G+1):J}var HG;function zB(J,Q){var K=A9(J,Q);if(!K)return J+"";var U=K[0],Z=K[1],G=Z-(HG=Math.max(-8,Math.min(8,Math.floor(Z/3)))*3)+1,W=U.length;return G===W?U:G>W?U+new Array(G-W+1).join("0"):G>0?U.slice(0,G)+"."+U.slice(G):"0."+new Array(1-G).join("0")+A9(J,Math.max(0,Q+G-1))[0]}function OG(J,Q){var K=A9(J,Q);if(!K)return J+"";var U=K[0],Z=K[1];return Z<0?"0."+new Array(-Z).join("0")+U:U.length>Z+1?U.slice(0,Z+1)+"."+U.slice(Z+1):U+new Array(Z-U.length+2).join("0")}var BG={"":PB,"%":function(J,Q){return(J*100).toFixed(Q)},b:function(J){return Math.round(J).toString(2)},c:function(J){return J+""},d:function(J){return Math.round(J).toString(10)},e:function(J,Q){return J.toExponential(Q)},f:function(J,Q){return J.toFixed(Q)},g:function(J,Q){return J.toPrecision(Q)},o:function(J){return Math.round(J).toString(8)},p:function(J,Q){return OG(J*100,Q)},r:OG,s:zB,X:function(J){return Math.round(J).toString(16).toUpperCase()},x:function(J){return Math.round(J).toString(16)}},RB=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function P9(J){return new XG(J)}function XG(J){if(!(Q=RB.exec(J)))throw new Error("invalid format: "+J);var Q,K=Q[1]||" ",U=Q[2]||">",Z=Q[3]||"-",G=Q[4]||"",W=!!Q[5],V=Q[6]&&+Q[6],F=!!Q[7],H=Q[8]&&+Q[8].slice(1),B=Q[9]||"";if(B==="n")F=!0,B="g";else if(!BG[B])B="";if(W||K==="0"&&U==="=")W=!0,K="0",U="=";this.fill=K,this.align=U,this.sign=Z,this.symbol=G,this.zero=W,this.width=V,this.comma=F,this.precision=H,this.type=B}XG.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width==null?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision==null?"":"."+Math.max(0,this.precision|0))+this.type};var YG=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function SB(J){return J}function MG(J){var Q=J.grouping&&J.thousands?AB(J.grouping,J.thousands):SB,K=J.currency,U=J.decimal;function Z(W){W=P9(W);var{fill:V,align:F,sign:H,symbol:B,zero:Y,width:O,comma:M,precision:N,type:T}=W,D=B==="$"?K[0]:B==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",I=B==="$"?K[1]:/[%p]/.test(T)?"%":"",C=BG[T],E=!T||/[defgprs%]/.test(T);N=N==null?T?6:12:/[gprs]/.test(T)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function z(A){var P=D,R=I,q,w,$;if(T==="c")R=C(A)+R,A="";else{A=+A;var k=(A<0||1/A<0)&&(A*=-1,!0);if(A=C(A,N),k){q=-1,w=A.length,k=!1;while(++q$||$>57){R=($===46?U+A.slice(q+1):A.slice(q))+R,A=A.slice(0,q);break}}}if(M&&!Y)A=Q(A,1/0);var j=P.length+A.length+R.length,L=j>1)+P+A+R+L.slice(j)}return L+P+A+R}return z.toString=function(){return W+""},z}function G(W,V){var F=Z((W=P9(W),W.type="f",W)),H=Math.max(-8,Math.min(8,Math.floor(L8(V)/3)))*3,B=Math.pow(10,-H),Y=YG[8+H/3];return function(O){return F(B*O)+Y}}return{format:Z,formatPrefix:G}}var z9;NG({decimal:".",thousands:",",grouping:[3],currency:["$",""]});function NG(J){return z9=MG(J),X.format=z9.format,X.formatPrefix=z9.formatPrefix,z9}function TG(J){return Math.max(0,-L8(Math.abs(J)))}function DG(J,Q){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(L8(Q)/3)))*3-L8(Math.abs(J)))}function IG(J,Q){return J=Math.abs(J),Q=Math.abs(Q)-J,Math.max(0,L8(Q)-L8(J))+1}function qB(J){if(0<=J.y&&J.y<100){var Q=new Date(-1,J.m,J.d,J.H,J.M,J.S,J.L);return Q.setFullYear(J.y),Q}return new Date(J.y,J.m,J.d,J.H,J.M,J.S,J.L)}function fQ(J){if(0<=J.y&&J.y<100){var Q=new Date(Date.UTC(-1,J.m,J.d,J.H,J.M,J.S,J.L));return Q.setUTCFullYear(J.y),Q}return new Date(Date.UTC(J.y,J.m,J.d,J.H,J.M,J.S,J.L))}function hQ(J){return{y:J,m:0,d:1,H:0,M:0,S:0,L:0}}function EG(J){var{dateTime:Q,date:K,time:U,periods:Z,days:G,shortDays:W,months:V,shortMonths:F}=J,H=X6(Z),B=Y6(Z),Y=X6(G),O=Y6(G),M=X6(W),N=Y6(W),T=X6(V),D=Y6(V),I=X6(F),C=Y6(F),E={a:h,A:d,b:i,B:JJ,c:null,d:PG,e:PG,H:cB,I:lB,j:dB,L:sB,m:iB,M:nB,p:r,S:oB,U:rB,w:aB,W:tB,x:null,X:null,y:eB,Y:JX,Z:QX,"%":RG},z={a:QJ,A:a,b:KJ,B:t,c:null,d:zG,e:zG,H:KX,I:UX,j:ZX,L:GX,m:WX,M:VX,p:gJ,S:FX,U:HX,w:OX,W:BX,x:null,X:null,y:XX,Y:YX,Z:MX,"%":RG},A={a:$,A:k,b:j,B:L,c:S,d:LG,e:LG,H:AG,I:AG,j:yB,L:xB,m:bB,M:uB,p:w,S:mB,U:$B,w:_B,W:vB,x:_,X:v,y:hB,Y:fB,Z:gB,"%":pB};E.x=P(K,E),E.X=P(U,E),E.c=P(Q,E),z.x=P(K,z),z.X=P(U,z),z.c=P(Q,z);function P(g,l){return function(s){var b=[],qJ=-1,M0=0,wJ=g.length,lJ,Z8,nV;if(!(s instanceof Date))s=new Date(+s);while(++qJ=wJ)return-1;if(lJ=l.charCodeAt(qJ++),lJ===37){if(lJ=l.charAt(qJ++),Z8=A[lJ in CG?l.charAt(qJ++):lJ],!Z8||(b=Z8(g,s,b))<0)return-1}else if(lJ!=s.charCodeAt(b++))return-1}return b}function w(g,l,s){var b=H.exec(l.slice(s));return b?(g.p=B[b[0].toLowerCase()],s+b[0].length):-1}function $(g,l,s){var b=M.exec(l.slice(s));return b?(g.w=N[b[0].toLowerCase()],s+b[0].length):-1}function k(g,l,s){var b=Y.exec(l.slice(s));return b?(g.w=O[b[0].toLowerCase()],s+b[0].length):-1}function j(g,l,s){var b=I.exec(l.slice(s));return b?(g.m=C[b[0].toLowerCase()],s+b[0].length):-1}function L(g,l,s){var b=T.exec(l.slice(s));return b?(g.m=D[b[0].toLowerCase()],s+b[0].length):-1}function S(g,l,s){return q(g,Q,l,s)}function _(g,l,s){return q(g,K,l,s)}function v(g,l,s){return q(g,U,l,s)}function h(g){return W[g.getDay()]}function d(g){return G[g.getDay()]}function i(g){return F[g.getMonth()]}function JJ(g){return V[g.getMonth()]}function r(g){return Z[+(g.getHours()>=12)]}function QJ(g){return W[g.getUTCDay()]}function a(g){return G[g.getUTCDay()]}function KJ(g){return F[g.getUTCMonth()]}function t(g){return V[g.getUTCMonth()]}function gJ(g){return Z[+(g.getUTCHours()>=12)]}return{format:function(g){var l=P(g+="",E);return l.toString=function(){return g},l},parse:function(g){var l=R(g+="",qB);return l.toString=function(){return g},l},utcFormat:function(g){var l=P(g+="",z);return l.toString=function(){return g},l},utcParse:function(g){var l=R(g,fQ);return l.toString=function(){return g},l}}}var CG={"-":"",_:" ","0":"0"},nJ=/^\s*\d+/,wB=/^%/,jB=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;function UJ(J,Q,K){var U=J<0?"-":"",Z=(U?-J:J)+"",G=Z.length;return U+(G68?1900:2000),K+U[0].length):-1}function gB(J,Q,K){var U=/^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(Q.slice(K,K+6));return U?(J.Z=U[1]?0:-(U[2]+(U[3]||"00")),K+U[0].length):-1}function bB(J,Q,K){var U=nJ.exec(Q.slice(K,K+2));return U?(J.m=U[0]-1,K+U[0].length):-1}function LG(J,Q,K){var U=nJ.exec(Q.slice(K,K+2));return U?(J.d=+U[0],K+U[0].length):-1}function yB(J,Q,K){var U=nJ.exec(Q.slice(K,K+3));return U?(J.m=0,J.d=+U[0],K+U[0].length):-1}function AG(J,Q,K){var U=nJ.exec(Q.slice(K,K+2));return U?(J.H=+U[0],K+U[0].length):-1}function uB(J,Q,K){var U=nJ.exec(Q.slice(K,K+2));return U?(J.M=+U[0],K+U[0].length):-1}function mB(J,Q,K){var U=nJ.exec(Q.slice(K,K+2));return U?(J.S=+U[0],K+U[0].length):-1}function xB(J,Q,K){var U=nJ.exec(Q.slice(K,K+3));return U?(J.L=+U[0],K+U[0].length):-1}function pB(J,Q,K){var U=wB.exec(Q.slice(K,K+1));return U?K+U[0].length:-1}function PG(J,Q){return UJ(J.getDate(),Q,2)}function cB(J,Q){return UJ(J.getHours(),Q,2)}function lB(J,Q){return UJ(J.getHours()%12||12,Q,2)}function dB(J,Q){return UJ(1+C9.count(s0(J),J),Q,3)}function sB(J,Q){return UJ(J.getMilliseconds(),Q,3)}function iB(J,Q){return UJ(J.getMonth()+1,Q,2)}function nB(J,Q){return UJ(J.getMinutes(),Q,2)}function oB(J,Q){return UJ(J.getSeconds(),Q,2)}function rB(J,Q){return UJ(O6.count(s0(J),J),Q,2)}function aB(J){return J.getDay()}function tB(J,Q){return UJ(wQ.count(s0(J),J),Q,2)}function eB(J,Q){return UJ(J.getFullYear()%100,Q,2)}function JX(J,Q){return UJ(J.getFullYear()%1e4,Q,4)}function QX(J){var Q=J.getTimezoneOffset();return(Q>0?"-":(Q*=-1,"+"))+UJ(Q/60|0,"0",2)+UJ(Q%60,"0",2)}function zG(J,Q){return UJ(J.getUTCDate(),Q,2)}function KX(J,Q){return UJ(J.getUTCHours(),Q,2)}function UX(J,Q){return UJ(J.getUTCHours()%12||12,Q,2)}function ZX(J,Q){return UJ(1+L9.count(n0(J),J),Q,3)}function GX(J,Q){return UJ(J.getUTCMilliseconds(),Q,3)}function WX(J,Q){return UJ(J.getUTCMonth()+1,Q,2)}function VX(J,Q){return UJ(J.getUTCMinutes(),Q,2)}function FX(J,Q){return UJ(J.getUTCSeconds(),Q,2)}function HX(J,Q){return UJ(B6.count(n0(J),J),Q,2)}function OX(J){return J.getUTCDay()}function BX(J,Q){return UJ($Q.count(n0(J),J),Q,2)}function XX(J,Q){return UJ(J.getUTCFullYear()%100,Q,2)}function YX(J,Q){return UJ(J.getUTCFullYear()%1e4,Q,4)}function MX(){return"+0000"}function RG(){return"%"}var A8;SG({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function SG(J){return A8=EG(J),X.timeFormat=A8.format,X.timeParse=A8.parse,X.utcFormat=A8.utcFormat,X.utcParse=A8.utcParse,A8}var qG="%Y-%m-%dT%H:%M:%S.%LZ";function NX(J){return J.toISOString()}var TX=Date.prototype.toISOString?NX:X.utcFormat(qG);function DX(J){var Q=new Date(J);return isNaN(Q)?null:Q}var IX=+new Date("2000-01-01T00:00:00.000Z")?DX:X.utcParse(qG),wG=Array.prototype,gQ=wG.map,$0=wG.slice,bQ={name:"implicit"};function yQ(J){var Q=f(),K=[],U=bQ;J=J==null?[]:$0.call(J);function Z(G){var W=G+"",V=Q.get(W);if(!V){if(U!==bQ)return U;Q.set(W,V=K.push(G))}return J[(V-1)%J.length]}return Z.domain=function(G){if(!arguments.length)return K.slice();K=[],Q=f();var W=-1,V=G.length,F,H;while(++W=K?1:U(Z)}}}function LX(J){return function(Q,K){var U=J(Q=+Q,K=+K);return function(Z){return Z<=0?Q:Z>=1?K:U(Z)}}}function AX(J,Q,K,U){var Z=J[0],G=J[1],W=Q[0],V=Q[1];if(G2?PX:AX,V=F=null,B}function B(Y){return(V||(V=W(K,U,G?CX(J):J,Z)))(+Y)}return B.invert=function(Y){return(F||(F=W(U,K,xQ,G?LX(Q):Q)))(+Y)},B.domain=function(Y){return arguments.length?(K=gQ.call(Y,kG),H()):K.slice()},B.range=function(Y){return arguments.length?(U=$0.call(Y),H()):U.slice()},B.rangeRound=function(Y){return U=$0.call(Y),Z=zZ,H()},B.clamp=function(Y){return arguments.length?(G=!!Y,H()):G},B.interpolate=function(Y){return arguments.length?(Z=Y,H()):Z},H()}function zX(J,Q,K){var U=J[0],Z=J[J.length-1],G=eJ(U,Z,Q==null?10:Q),W;switch(K=P9(K==null?",f":K),K.type){case"s":{var V=Math.max(Math.abs(U),Math.abs(Z));if(K.precision==null&&!isNaN(W=DG(G,V)))K.precision=W;return X.formatPrefix(K,V)}case"":case"e":case"g":case"p":case"r":{if(K.precision==null&&!isNaN(W=IG(G,Math.max(Math.abs(U),Math.abs(Z)))))K.precision=W-(K.type==="e");break}case"f":case"%":{if(K.precision==null&&!isNaN(W=TG(G)))K.precision=W-(K.type==="%")*2;break}}return X.format(K)}function M6(J){var Q=J.domain;return J.ticks=function(K){var U=Q();return F8(U[0],U[U.length-1],K==null?10:K)},J.tickFormat=function(K,U){return zX(Q(),K,U)},J.nice=function(K){var U=Q(),Z=U.length-1,G=K==null?10:K,W=U[0],V=U[Z],F=eJ(W,V,G);if(F)F=eJ(Math.floor(W/F)*F,Math.ceil(V/F)*F,G),U[0]=Math.floor(W/F)*F,U[Z]=Math.ceil(V/F)*F,Q(U);return J},J}function $G(){var J=S9(xQ,xJ);return J.copy=function(){return R9(J,$G())},M6(J)}function vG(){var J=[0,1];function Q(K){return+K}return Q.invert=Q,Q.domain=Q.range=function(K){return arguments.length?(J=gQ.call(K,kG),Q):J.slice()},Q.copy=function(){return vG().domain(J)},M6(Q)}function fG(J,Q){J=J.slice();var K=0,U=J.length-1,Z=J[K],G=J[U],W;if(G0)for(;YH)break;I.push(T)}else for(;Y=1;--N){if(T=M*N,TH)break;I.push(T)}else I=F8(Y,O,Math.min(O-Y,D)).map(Z);return B?I.reverse():I},J.tickFormat=function(W,V){if(V==null)V=K===10?".0e":",";if(typeof V!=="function")V=X.format(V);if(W===1/0)return V;if(W==null)W=10;var F=Math.max(1,K*W/J.ticks().length);return function(H){var B=H/Z(Math.round(U(H)));if(B*K0?K[W-1]:J[0],W=K?[U[K-1],Q]:[U[F-1],U[F]]},G.copy=function(){return mG().domain([J,Q]).range(Z)},M6(G)}function xG(){var J=[0.5],Q=[0,1],K=1;function U(Z){if(Z<=Z)return Q[jJ(J,Z,0,K)]}return U.domain=function(Z){return arguments.length?(J=$0.call(Z),K=Math.min(J.length,Q.length-1),U):J.slice()},U.range=function(Z){return arguments.length?(Q=$0.call(Z),K=Math.min(J.length,Q.length-1),U):Q.slice()},U.invertExtent=function(Z){var G=Q.indexOf(Z);return[J[G-1],J[G]]},U.copy=function(){return xG().domain(J).range(Q)},U}var N6=1000,T6=N6*60,D6=T6*60,I6=D6*24,jX=I6*7,pG=I6*30,cQ=I6*365;function kX(J){return new Date(J)}function _X(J){return J instanceof Date?+J:+new Date(+J)}function lQ(J,Q,K,U,Z,G,W,V,F){var H=S9(xQ,xJ),B=H.invert,Y=H.domain,O=F(".%L"),M=F(":%S"),N=F("%I:%M"),T=F("%I %p"),D=F("%a %d"),I=F("%b %d"),C=F("%B"),E=F("%Y"),z=[[W,1,N6],[W,5,5*N6],[W,15,15*N6],[W,30,30*N6],[G,1,T6],[G,5,5*T6],[G,15,15*T6],[G,30,30*T6],[Z,1,D6],[Z,3,3*D6],[Z,6,6*D6],[Z,12,12*D6],[U,1,I6],[U,2,2*I6],[K,1,jX],[Q,1,pG],[Q,3,3*pG],[J,1,cQ]];function A(R){return(W(R)1)J-=Math.floor(J);var Q=Math.abs(J-0.5);return q9.h=360*J-100,q9.s=1.5-1.5*Q,q9.l=0.8-0.9*Q,q9+""}function w9(J){var Q=J.length;return function(K){return J[Math.max(0,Math.min(Q-1,Math.floor(K*Q)))]}}var pX=w9(v0("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),cX=w9(v0("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),lX=w9(v0("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),dX=w9(v0("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function cG(J){var Q=0,K=1,U=!1;function Z(G){var W=(G-Q)/(K-Q);return J(U?Math.max(0,Math.min(1,W)):W)}return Z.domain=function(G){return arguments.length?(Q=+G[0],K=+G[1],Z):[Q,K]},Z.clamp=function(G){return arguments.length?(U=!!G,Z):U},Z.interpolator=function(G){return arguments.length?(J=G,Z):J},Z.copy=function(){return cG(J).domain([Q,K]).clamp(U)},M6(Z)}var dQ="http://www.w3.org/1999/xhtml",sQ={svg:"http://www.w3.org/2000/svg",xhtml:dQ,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function E6(J){var Q=J+="",K=Q.indexOf(":");if(K>=0&&(Q=J.slice(0,K))!=="xmlns")J=J.slice(K+1);return sQ.hasOwnProperty(Q)?{space:sQ[Q],local:J}:J}function sX(J){return function(){var Q=this.ownerDocument,K=this.namespaceURI;return K===dQ&&Q.documentElement.namespaceURI===dQ?Q.createElement(J):Q.createElementNS(K,J)}}function iX(J){return function(){return this.ownerDocument.createElementNS(J.space,J.local)}}function iQ(J){var Q=E6(J);return(Q.local?iX:sX)(Q)}var nX=0;function lG(){return new nQ}function nQ(){this._="@"+(++nX).toString(36)}nQ.prototype=lG.prototype={constructor:nQ,get:function(J){var Q=this._;while(!(Q in J))if(!(J=J.parentNode))return;return J[Q]},set:function(J,Q){return J[this._]=Q},remove:function(J){return this._ in J&&delete J[this._]},toString:function(){return this._}};var dG=function(J){return function(){return this.matches(J)}};if(typeof document!=="undefined"){var C6=document.documentElement;if(!C6.matches){var oX=C6.webkitMatchesSelector||C6.msMatchesSelector||C6.mozMatchesSelector||C6.oMatchesSelector;dG=function(J){return function(){return oX.call(this,J)}}}}var oQ=dG,sG={};if(X.event=null,typeof document!=="undefined"){var rX=document.documentElement;if(!("onmouseenter"in rX))sG={mouseenter:"mouseover",mouseleave:"mouseout"}}function aX(J,Q,K){return J=iG(J,Q,K),function(U){var Z=U.relatedTarget;if(!Z||Z!==this&&!(Z.compareDocumentPosition(this)&8))J.call(this,U)}}function iG(J,Q,K){return function(U){var Z=X.event;X.event=U;try{J.call(this,this.__data__,Q,K)}finally{X.event=Z}}}function tX(J){return J.trim().split(/^|\s+/).map(function(Q){var K="",U=Q.indexOf(".");if(U>=0)K=Q.slice(U+1),Q=Q.slice(0,U);return{type:Q,name:K}})}function eX(J){return function(){var Q=this.__on;if(!Q)return;for(var K=0,U=-1,Z=Q.length,G;K=E)E=C+1;while(!(A=D[E])&&++E=0;)if(W=U[Z]){if(G&&G!==W.nextSibling)G.parentNode.insertBefore(W,G);G=W}return this}function N5(J){if(!J)J=T5;function Q(Y,O){return Y&&O?J(Y.__data__,O.__data__):!Y-!O}for(var K=this._groups,U=K.length,Z=new Array(U),G=0;GQ?1:J>=Q?0:NaN}function D5(){var J=arguments[0];return arguments[0]=this,J.apply(null,arguments),this}function I5(){var J=new Array(this.size()),Q=-1;return this.each(function(){J[++Q]=this}),J}function E5(){for(var J=this._groups,Q=0,K=J.length;Q1?this.each((Q==null?k5:typeof Q==="function"?$5:_5)(J,Q,K==null?"":K)):z8(U=this.node()).getComputedStyle(U,null).getPropertyValue(J)}function f5(J){return function(){delete this[J]}}function h5(J,Q){return function(){this[J]=Q}}function g5(J,Q){return function(){var K=Q.apply(this,arguments);if(K==null)delete this[J];else this[J]=K}}function b5(J,Q){return arguments.length>1?this.each((Q==null?f5:typeof Q==="function"?g5:h5)(J,Q)):this.node()[J]}function rG(J){return J.trim().split(/^|\s+/)}function eQ(J){return J.classList||new aG(J)}function aG(J){this._node=J,this._names=rG(J.getAttribute("class")||"")}aG.prototype={add:function(J){var Q=this._names.indexOf(J);if(Q<0)this._names.push(J),this._node.setAttribute("class",this._names.join(" "))},remove:function(J){var Q=this._names.indexOf(J);if(Q>=0)this._names.splice(Q,1),this._node.setAttribute("class",this._names.join(" "))},contains:function(J){return this._names.indexOf(J)>=0}};function tG(J,Q){var K=eQ(J),U=-1,Z=Q.length;while(++UQW)throw new Error("too late");return K}function r0(J,Q){var K=J.__transition;if(!K||!(K=K[Q])||K.state>QK)throw new Error("too late");return K}function I0(J,Q){var K=J.__transition;if(!K||!(K=K[Q]))throw new Error("too late");return K}function YY(J,Q,K){var U=J.__transition,Z;U[Q]=K,K.timer=I9(G,0,K.time);function G(F){if(K.state=KW,K.delay<=F)W(F-K.delay);else K.timer.restart(W,K.delay,K.time)}function W(F){var H,B,Y,O;for(H in U){if(O=U[H],O.name!==K.name)continue;if(O.state===$9)O.state=v9,O.timer.stop(),O.on.call("interrupt",J,J.__data__,O.index,O.group),delete U[H];else if(+H=0)Q=Q.slice(0,K);return!Q||Q==="start"})}function uY(J,Q,K){var U,Z,G=yY(Q)?KK:r0;return function(){var W=G(this,J),V=W.on;if(V!==U)(Z=(U=V).copy()).on(Q,K);W.on=Z}}function mY(J,Q){var K=this._id;return arguments.length<2?I0(this.node(),K).on.on(J):this.each(uY(K,J,Q))}function xY(J){return function(){var Q=this.parentNode;for(var K in this.__transition)if(+K!==J)return;if(Q)Q.removeChild(this)}}function pY(){return this.on("end.remove",xY(this._id))}function cY(J){var Q=this._name,K=this._id;if(typeof J!=="function")J=j9(J);for(var U=this._groups,Z=U.length,G=new Array(Z),W=0;WKW&&U.name===Q)return new F0([[J]],VM,Q,+Z)}return null}var GK=Array.prototype.slice;function VW(J){return J}var h9=1,g9=2,WK=3,A6=4,FW=0.000001;function HM(J,Q,K){var U=J(K);return"translate("+(isFinite(U)?U:Q(K))+",0)"}function OM(J,Q,K){var U=J(K);return"translate(0,"+(isFinite(U)?U:Q(K))+")"}function BM(J){var Q=J.bandwidth()/2;if(J.round())Q=Math.round(Q);return function(K){return J(K)+Q}}function XM(){return!this.__axis}function b9(J,Q){var K=[],U=null,Z=null,G=6,W=6,V=3;function F(H){var B=U==null?Q.ticks?Q.ticks.apply(Q,K):Q.domain():U,Y=Z==null?Q.tickFormat?Q.tickFormat.apply(Q,K):VW:Z,O=Math.max(G,0)+V,M=J===h9||J===WK?HM:OM,N=Q.range(),T=N[0]+0.5,D=N[N.length-1]+0.5,I=(Q.bandwidth?BM:VW)(Q.copy()),C=H.selection?H.selection():H,E=C.selectAll(".domain").data([null]),z=C.selectAll(".tick").data(B,Q).order(),A=z.exit(),P=z.enter().append("g").attr("class","tick"),R=z.select("line"),q=z.select("text"),w=J===h9||J===A6?-1:1,$,k=J===A6||J===g9?($="x","y"):($="y","x");if(E=E.merge(E.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),z=z.merge(P),R=R.merge(P.append("line").attr("stroke","#000").attr($+"2",w*G).attr(k+"1",0.5).attr(k+"2",0.5)),q=q.merge(P.append("text").attr("fill","#000").attr($,w*O).attr(k,0.5).attr("dy",J===h9?"0em":J===WK?"0.71em":"0.32em")),H!==C)E=E.transition(H),z=z.transition(H),R=R.transition(H),q=q.transition(H),A=A.transition(H).attr("opacity",FW).attr("transform",function(j){return M(I,this.parentNode.__axis||I,j)}),P.attr("opacity",FW).attr("transform",function(j){return M(this.parentNode.__axis||I,I,j)});A.remove(),E.attr("d",J===A6||J==g9?"M"+w*W+","+T+"H0.5V"+D+"H"+w*W:"M"+T+","+w*W+"V0.5H"+D+"V"+w*W),z.attr("opacity",1).attr("transform",function(j){return M(I,I,j)}),R.attr($+"2",w*G),q.attr($,w*O).text(Y),C.filter(XM).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",J===g9?"start":J===A6?"end":"middle"),C.each(function(){this.__axis=I})}return F.scale=function(H){return arguments.length?(Q=H,F):Q},F.ticks=function(){return K=GK.call(arguments),F},F.tickArguments=function(H){return arguments.length?(K=H==null?[]:GK.call(H),F):K.slice()},F.tickValues=function(H){return arguments.length?(U=H==null?null:GK.call(H),F):U&&U.slice()},F.tickFormat=function(H){return arguments.length?(Z=H,F):Z},F.tickSize=function(H){return arguments.length?(G=W=+H,F):G},F.tickSizeInner=function(H){return arguments.length?(G=+H,F):G},F.tickSizeOuter=function(H){return arguments.length?(W=+H,F):W},F.tickPadding=function(H){return arguments.length?(V=+H,F):V},F}function YM(J){return b9(h9,J)}function MM(J){return b9(g9,J)}function NM(J){return b9(WK,J)}function TM(J){return b9(A6,J)}function DM(J,Q){return J.parent===Q.parent?1:2}function IM(J){return J.reduce(EM,0)/J.length}function EM(J,Q){return J+Q.x}function CM(J){return 1+J.reduce(LM,0)}function LM(J,Q){return Math.max(J,Q.y)}function AM(J){var Q;while(Q=J.children)J=Q[0];return J}function PM(J){var Q;while(Q=J.children)J=Q[Q.length-1];return J}function zM(){var J=DM,Q=1,K=1,U=!1;function Z(G){var W,V=0;G.eachAfter(function(O){var M=O.children;if(M)O.x=IM(M),O.y=CM(M);else O.x=W?V+=J(O,W):0,O.y=0,W=O});var F=AM(G),H=PM(G),B=F.x-J(F,H)/2,Y=H.x+J(H,F)/2;return G.eachAfter(U?function(O){O.x=(O.x-G.x)*Q,O.y=(G.y-O.y)*K}:function(O){O.x=(O.x-B)/(Y-B)*Q,O.y=(1-(G.y?O.y/G.y:1))*K})}return Z.separation=function(G){return arguments.length?(J=G,Z):J},Z.size=function(G){return arguments.length?(U=!1,Q=+G[0],K=+G[1],Z):U?null:[Q,K]},Z.nodeSize=function(G){return arguments.length?(U=!0,Q=+G[0],K=+G[1],Z):U?[Q,K]:null},Z}function RM(J){var Q=this,K,U=[Q],Z,G,W;do{K=U.reverse(),U=[];while(Q=K.pop())if(J(Q),Z=Q.children,Z)for(G=0,W=Z.length;G=0;--Z)K.push(U[Z]);return this}function qM(J){var Q=this,K=[Q],U=[],Z,G,W;while(Q=K.pop())if(U.push(Q),Z=Q.children,Z)for(G=0,W=Z.length;G=0)K+=U[Z].value;Q.value=K})}function jM(J){return this.eachBefore(function(Q){if(Q.children)Q.children.sort(J)})}function kM(J){var Q=this,K=_M(Q,J),U=[Q];while(Q!==K)Q=Q.parent,U.push(Q);var Z=U.length;while(J!==K)U.splice(Z,0,J),J=J.parent;return U}function _M(J,Q){if(J===Q)return J;var K=J.ancestors(),U=Q.ancestors(),Z=null;J=K.pop(),Q=U.pop();while(J===Q)Z=J,J=K.pop(),Q=U.pop();return Z}function $M(){var J=this,Q=[J];while(J=J.parent)Q.push(J);return Q}function vM(){var J=[];return this.each(function(Q){J.push(Q)}),J}function fM(){var J=[];return this.eachBefore(function(Q){if(!Q.children)J.push(Q)}),J}function hM(){var J=this,Q=[];return J.each(function(K){if(K!==J)Q.push({source:K.parent,target:K})}),Q}function VK(J,Q){var K=new S8(J),U=+J.value&&(K.value=J.value),Z,G=[K],W,V,F,H;if(Q==null)Q=bM;while(Z=G.pop()){if(U)Z.value=+Z.data.value;if((V=Q(Z.data))&&(H=V.length)){Z.children=new Array(H);for(F=H-1;F>=0;--F)G.push(W=Z.children[F]=new S8(V[F])),W.parent=Z,W.depth=Z.depth+1}}return K.eachBefore(HW)}function gM(){return VK(this).eachBefore(yM)}function bM(J){return J.children}function yM(J){J.data=J.data.data}function HW(J){var Q=0;do J.height=Q;while((J=J.parent)&&J.height<++Q)}function S8(J){this.data=J,this.depth=this.height=0,this.parent=null}S8.prototype=VK.prototype={constructor:S8,each:RM,eachAfter:qM,eachBefore:SM,sum:wM,sort:jM,path:kM,ancestors:$M,descendants:vM,leaves:fM,links:hM,copy:gM};function uM(J){this._=J,this.next=null}function mM(J){var Q,K=(J=J.slice()).length,U=null,Z=U;while(K){var G=new uM(J[K-1]);if(Z)Z=Z.next=G;else Z=U=G;J[Q]=J[--K]}return{head:U,tail:Z}}function OW(J){return BW(mM(J),[])}function xM(J,Q){var K=Q.x-J.x,U=Q.y-J.y,Z=J.r-Q.r;return Z*Z+0.000001>K*K+U*U}function BW(J,Q){var K,U=null,Z=J.head,G,W;switch(Q.length){case 1:K=pM(Q[0]);break;case 2:K=cM(Q[0],Q[1]);break;case 3:K=lM(Q[0],Q[1],Q[2]);break}while(Z){if(W=Z._,G=Z.next,!K||!xM(K,W)){if(U)J.tail=U,U.next=null;else J.head=J.tail=null;if(Q.push(W),K=BW(J,Q),Q.pop(),J.head)Z.next=J.head,J.head=Z;else Z.next=null,J.head=J.tail=Z;U=J.tail,U.next=G}else U=Z;Z=G}return J.tail=U,K}function pM(J){return{x:J.x,y:J.y,r:J.r}}function cM(J,Q){var{x:K,y:U,r:Z}=J,G=Q.x,W=Q.y,V=Q.r,F=G-K,H=W-U,B=V-Z,Y=Math.sqrt(F*F+H*H);return{x:(K+G+F/Y*B)/2,y:(U+W+H/Y*B)/2,r:(Y+Z+V)/2}}function lM(J,Q,K){var{x:U,y:Z,r:G}=J,W=Q.x,V=Q.y,F=Q.r,H=K.x,B=K.y,Y=K.r,O=2*(U-W),M=2*(Z-V),N=2*(F-G),T=U*U+Z*Z-G*G-W*W-V*V+F*F,D=2*(U-H),I=2*(Z-B),C=2*(Y-G),E=U*U+Z*Z-G*G-H*H-B*B+Y*Y,z=D*M-O*I,A=(M*E-I*T)/z-U,P=(I*N-M*C)/z,R=(D*T-O*E)/z-Z,q=(O*C-D*N)/z,w=P*P+q*q-1,$=2*(A*P+R*q+G),k=A*A+R*R-G*G,j=(-$-Math.sqrt($*$-4*w*k))/(2*w);return{x:A+P*j+U,y:R+q*j+Z,r:j}}function XW(J,Q,K){var{x:U,y:Z}=J,G=Q.r+K.r,W=J.r+K.r,V=Q.x-U,F=Q.y-Z,H=V*V+F*F;if(H){var B=0.5+((W*=W)-(G*=G))/(2*H),Y=Math.sqrt(Math.max(0,2*G*(W+H)-(W-=H)*W-G*G))/(2*H);K.x=U+B*V+Y*F,K.y=Z+B*F-Y*V}else K.x=U+W,K.y=Z}function FK(J,Q){var K=Q.x-J.x,U=Q.y-J.y,Z=J.r+Q.r;return Z*Z>K*K+U*U}function YW(J,Q,K){var U=J.x-Q,Z=J.y-K;return U*U+Z*Z}function y9(J){this._=J,this.next=null,this.previous=null}function MW(J){if(!(Z=J.length))return 0;var Q,K,U,Z;if(Q=J[0],Q.x=0,Q.y=0,!(Z>1))return Q.r;if(K=J[1],Q.x=-K.r,K.x=Q.r,K.y=0,!(Z>2))return Q.r+K.r;XW(K,Q,U=J[2]);var G=Q.r*Q.r,W=K.r*K.r,V=U.r*U.r,F=G+W+V,H=G*Q.x+W*K.x+V*U.x,B=G*Q.y+W*K.y+V*U.y,Y,O,M,N,T,D,I;Q=new y9(Q),K=new y9(K),U=new y9(U),Q.next=U.previous=K,K.next=Q.previous=U,U.next=K.previous=Q;J:for(M=3;M0)throw new Error("cycle");return V}return K.id=function(U){return arguments.length?(J=u9(U),K):J},K.parentId=function(U){return arguments.length?(Q=u9(U),K):Q},K}function JN(J,Q){return J.parent===Q.parent?1:2}function OK(J){var Q=J.children;return Q?Q[0]:J.t}function BK(J){var Q=J.children;return Q?Q[Q.length-1]:J.t}function QN(J,Q,K){var U=K/(Q.i-J.i);Q.c-=U,Q.s+=K,J.c+=U,Q.z+=K,Q.m+=K}function KN(J){var Q=0,K=0,U=J.children,Z=U.length,G;while(--Z>=0)G=U[Z],G.z+=Q,G.m+=Q,Q+=G.s+(K+=G.c)}function UN(J,Q,K){return J.a.parent===Q.parent?J.a:K}function m9(J,Q){this._=J,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=Q}m9.prototype=Object.create(S8.prototype);function ZN(J){var Q=new m9(J,0),K,U=[Q],Z,G,W,V;while(K=U.pop())if(G=K._.children){K.children=new Array(V=G.length);for(W=V-1;W>=0;--W)U.push(Z=K.children[W]=new m9(G[W],W)),Z.parent=K}return(Q.parent=new m9(null,0)).children=[Q],Q}function GN(){var J=JN,Q=1,K=1,U=null;function Z(H){var B=ZN(H);if(B.eachAfter(G),B.parent.m=-B.z,B.eachBefore(W),U)H.eachBefore(F);else{var Y=H,O=H,M=H;H.eachBefore(function(C){if(C.xO.x)O=C;if(C.depth>M.depth)M=C});var N=Y===O?1:J(Y,O)/2,T=N-Y.x,D=Q/(O.x+N+T),I=K/(M.depth||1);H.eachBefore(function(C){C.x=(C.x+T)*D,C.y=C.depth*I})}return H}function G(H){var B=H.children,Y=H.parent.children,O=H.i?Y[H.i-1]:null;if(B){KN(H);var M=(B[0].z+B[B.length-1].z)/2;if(O)H.z=O.z+J(H._,O._),H.m=H.z-M;else H.z=M}else if(O)H.z=O.z+J(H._,O._);H.parent.A=V(H,O,H.parent.A||Y[0])}function W(H){H._.x=H.z+H.parent.m,H.m+=H.parent.m}function V(H,B,Y){if(B){var O=H,M=H,N=B,T=O.parent.children[0],D=O.m,I=M.m,C=N.m,E=T.m,z;while(N=BK(N),O=OK(O),N&&O){if(T=OK(T),M=BK(M),M.a=H,z=N.z+C-O.z-D+J(N._,O._),z>0)QN(UN(N,H,Y),H,z),D+=z,I+=z;C+=N.m,D+=O.m,E+=T.m,I+=M.m}if(N&&!BK(M))M.t=N,M.m+=C-I;if(O&&!OK(T))T.t=O,T.m+=D-E,Y=H}return Y}function F(H){H.x*=Q,H.y=H.depth*K}return Z.separation=function(H){return arguments.length?(J=H,Z):J},Z.size=function(H){return arguments.length?(U=!1,Q=+H[0],K=+H[1],Z):U?null:[Q,K]},Z.nodeSize=function(H){return arguments.length?(U=!0,Q=+H[0],K=+H[1],Z):U?[Q,K]:null},Z}function x9(J,Q,K,U,Z){var G=J.children,W,V=-1,F=G.length,H=J.value&&(Z-K)/J.value;while(++VC)C=H;if(P=D*D*A,E=Math.max(C/P,P/I),E>z){D-=H;break}z=E}if(W.push(F={value:D,dice:M1?U:1)},K}(CW);function WN(){var J=AW,Q=!1,K=1,U=1,Z=[0],G=t0,W=t0,V=t0,F=t0,H=t0;function B(O){if(O.x0=O.y0=0,O.x1=K,O.y1=U,O.eachBefore(Y),Z=[0],Q)O.eachBefore(DW);return O}function Y(O){var M=Z[O.depth],N=O.x0+M,T=O.y0+M,D=O.x1-M,I=O.y1-M;if(D=O-1){var C=G[Y];C.x0=N,C.y0=T,C.x1=D,C.y1=I;return}var E=H[Y],z=M/2+E,A=Y+1,P=O-1;while(A>>1;if(H[R]D-N){var $=(T*w+I*q)/M;B(Y,A,q,N,T,D,$),B(A,O,w,N,$,D,I)}else{var k=(N*w+D*q)/M;B(Y,A,q,N,T,k,I),B(A,O,w,k,T,D,I)}}}function FN(J,Q,K,U,Z){(J.depth&1?x9:P6)(J,Q,K,U,Z)}var HN=function J(Q){function K(U,Z,G,W,V){if((F=U._squarify)&&F.ratio===Q){var F,H,B,Y,O=-1,M,N=F.length,T=U.value;while(++O1?U:1)},K}(CW);function ON(J,Q){var K;if(J==null)J=0;if(Q==null)Q=0;function U(){var Z,G=K.length,W,V=0,F=0;for(Z=0;ZV){var w=Y-P.x-P.vx,$=O-P.y-P.vy,k=w*w+$*$;if(kY+q||zO+q||AV.r)V.r=V[F].r}return G.initialize=function(V){var F,H=(Q=V).length;K=new Array(H);for(F=0;F1?(T==null?V.remove(N):V.set(N,M(T)),Q):V.get(N)},find:function(N,T,D){var I=0,C=J.length,E,z,A,P,R;if(D==null)D=1/0;else D*=D;for(I=0;I1?(H.on(N,T),Q):H.on(N)}}}function LN(){var J,Q,K,U=hJ(-30),Z,G=1,W=1/0,V=0.81;function F(O){var M,N=J.length,T=o6(J,TN,DN).visitAfter(B);for(K=O,M=0;M=W)return;if(O.data!==Q||O.next){if(D===0)D=h0(),E+=D*D;if(I===0)I=h0(),E+=I*I;if(E0)return;if(T/=M,M<0){if(T0){if(T>O)return;if(T>Y)Y=T}if(T=U-V,!M&&T<0)return;if(T/=M,M<0){if(T>O)return;if(T>Y)Y=T}else if(M>0){if(T0)return;if(T/=N,N<0){if(T0){if(T>O)return;if(T>Y)Y=T}if(T=Z-F,!N&&T<0)return;if(T/=N,N<0){if(T>O)return;if(T>Y)Y=T}else if(N>0){if(T0)&&!(O<1))return!0;if(Y>0)J[0]=[V+Y*M,F+Y*N];if(O<1)J[1]=[V+O*M,F+O*N];return!0}function _N(J,Q,K,U,Z){var G=J[1];if(G)return!0;var W=J[0],V=J.left,F=J.right,H=V[0],B=V[1],Y=F[0],O=F[1],M=(H+Y)/2,N=(B+O)/2,T,D;if(O===B){if(M=U)return;if(H>Y){if(!W)W=[M,K];else if(W[1]>=Z)return;G=[M,Z]}else{if(!W)W=[M,Z];else if(W[1]1)if(H>Y){if(!W)W=[(K-D)/T,K];else if(W[1]>=Z)return;G=[(Z-D)/T,Z]}else{if(!W)W=[(Z-D)/T,Z];else if(W[1]=U)return;G=[U,T*U+D]}else{if(!W)W=[U,T*U+D];else if(W[0]e||Math.abs(G[0][1]-G[1][1])>e))delete AJ[Z]}function vN(J){return pJ[J.index]={site:J,halfedges:[]}}function fN(J,Q){var K=J.site,U=Q.left,Z=Q.right;if(K===Z)Z=U,U=K;if(Z)return Math.atan2(Z[1]-U[1],Z[0]-U[0]);if(K===U)U=Q[1],Z=Q[0];else U=Q[0],Z=Q[1];return Math.atan2(U[0]-Z[0],Z[1]-U[1])}function RW(J,Q){return Q[+(Q.left!==J.site)]}function hN(J,Q){return Q[+(Q.left===J.site)]}function gN(){for(var J=0,Q=pJ.length,K,U,Z,G;Je||Math.abs(D-M)>e)H.splice(F,0,AJ.push(q6(V,N,Math.abs(T-J)e?[J,Math.abs(O-J)e?[Math.abs(M-U)e?[K,Math.abs(O-K)e?[Math.abs(M-Q)=-cN)return;var M=F*F+H*H,N=B*B+Y*Y,T=(Y*M-H*N)/O,D=(F*N-B*M)/O,I=SW.pop()||new yN;I.arc=J,I.site=Z,I.x=T+W,I.y=(I.cy=D+V)+Math.sqrt(T*T+D*D),J.circle=I;var C=null,E=w6._;while(E)if(I.ye)V=V.L;else if(W=Q-pN(V,K),W>e){if(!V.R){U=V;break}V=V.R}else{if(G>-e)U=V.P,Z=V;else if(W>-e)U=V,Z=V.N;else U=Z=V;break}vN(J);var F=wW(J);if(_8.insert(U,F),!U&&!Z)return;if(U===Z){k8(U),Z=wW(U.site),_8.insert(F,Z),F.edge=Z.edge=S6(U.site,F.site),j8(U),j8(Z);return}if(!Z){F.edge=S6(U.site,F.site);return}k8(U),k8(Z);var H=U.site,B=H[0],Y=H[1],O=J[0]-B,M=J[1]-Y,N=Z.site,T=N[0]-B,D=N[1]-Y,I=2*(O*D-M*T),C=O*O+M*M,E=T*T+D*D,z=[(D*C-M*E)/I+B,(O*E-T*C)/I+Y];s9(Z.edge,H,N,z),F.edge=S6(H,J,null,z),Z.edge=S6(J,N,null,z),j8(U),j8(Z)}function jW(J,Q){var K=J.site,U=K[0],Z=K[1],G=Z-Q;if(!G)return U;var W=J.P;if(!W)return-1/0;K=W.site;var V=K[0],F=K[1],H=F-Q;if(!H)return V;var B=V-U,Y=1/G-1/H,O=B/H;if(Y)return(-O+Math.sqrt(O*O-2*Y*(B*B/(-2*H)-F+H/2+Z-G/2)))/Y+U;return(U+V)/2}function pN(J,Q){var K=J.N;if(K)return jW(K,Q);var U=J.site;return U[1]===Q?U[0]:1/0}var e=0.000001,cN=0.000000000001,_8,pJ,w6,AJ;function lN(J,Q,K){return(J[0]-K[0])*(Q[1]-J[1])-(J[0]-Q[0])*(K[1]-J[1])}function dN(J,Q){return Q[1]-J[1]||Q[0]-J[0]}function DK(J,Q){var K=J.sort(dN).pop(),U,Z,G;AJ=[],pJ=new Array(J.length),_8=new l9,w6=new l9;while(!0)if(G=NK,K&&(!G||K[1]0)oJ(this).transition().duration(F).call(z,h,S);else oJ(this).call(T.transform,h)}function $(){if(!J.apply(this,arguments))return;var L=A(this,arguments),S=X.event.changedTouches,_=S.length,v,h,d;EK();for(v=0;v<_;++v)if(h=S[v],d=_9(this,S,h.identifier),d=[d,this.__zoom.invert(d),h.identifier],!L.touch0)L.touch0=d;else if(!L.touch1)L.touch1=d;if(Y){if(Y=clearTimeout(Y),!L.touch1)return L.end(),w.apply(this,arguments)}if(X.event.touches.length===_)Y=setTimeout(function(){Y=null},M),a0(this),L.start()}function k(){var L=A(this,arguments),S=X.event.changedTouches,_=S.length,v,h,d,i;if(j6(),Y)Y=clearTimeout(Y);for(v=0;v<_;++v)if(h=S[v],d=_9(this,S,h.identifier),L.touch0&&L.touch0[2]===h.identifier)L.touch0[0]=d;else if(L.touch1&&L.touch1[2]===h.identifier)L.touch1[0]=d;if(h=L.that.__zoom,L.touch1){var JJ=L.touch0[0],r=L.touch0[1],QJ=L.touch1[0],a=L.touch1[1],KJ=(KJ=QJ[0]-JJ[0])*KJ+(KJ=QJ[1]-JJ[1])*KJ,t=(t=a[0]-r[0])*t+(t=a[1]-r[1])*t;h=D(h,Math.sqrt(KJ/t)),d=[(JJ[0]+QJ[0])/2,(JJ[1]+QJ[1])/2],i=[(r[0]+a[0])/2,(r[1]+a[1])/2]}else if(L.touch0)d=L.touch0[0],i=L.touch0[1];else return;L.zoom("touch",C(I(h,d,i),L.extent))}function j(){var L=A(this,arguments),S=X.event.changedTouches,_=S.length,v,h;if(EK(),O)clearTimeout(O);O=setTimeout(function(){O=null},M);for(v=0;v<_;++v)if(h=S[v],L.touch0&&L.touch0[2]===h.identifier)delete L.touch0;else if(L.touch1&&L.touch1[2]===h.identifier)delete L.touch1;if(L.touch1&&!L.touch0)L.touch0=L.touch1,delete L.touch1;if(!L.touch0)L.end()}return T.filter=function(L){return arguments.length?(J=typeof L==="function"?L:kW(!!L),T):J},T.extent=function(L){return arguments.length?(Q=typeof L==="function"?L:kW([[+L[0][0],+L[0][1]],[+L[1][0],+L[1][1]]]),T):Q},T.scaleExtent=function(L){return arguments.length?(K=+L[0],U=+L[1],T):[K,U]},T.translateExtent=function(L){return arguments.length?(Z=+L[0][0],G=+L[1][0],W=+L[0][1],V=+L[1][1],T):[[Z,W],[G,V]]},T.duration=function(L){return arguments.length?(F=+L,T):F},T.on=function(){var L=B.on.apply(B,arguments);return L===B?T:L},T}function vW(J){return function(){return J}}function aN(J,Q,K){this.target=J,this.type=Q,this.selection=K}function fW(){X.event.stopImmediatePropagation()}function i9(){X.event.preventDefault(),X.event.stopImmediatePropagation()}var hW={name:"drag"},CK={name:"space"},$8={name:"handle"},v8={name:"center"},n9={name:"x",handles:["e","w"].map(k6),input:function(J,Q){return J&&[[J[0],Q[0][1]],[J[1],Q[1][1]]]},output:function(J){return J&&[J[0][0],J[1][0]]}},o9={name:"y",handles:["n","s"].map(k6),input:function(J,Q){return J&&[[Q[0][0],J[0]],[Q[1][0],J[1]]]},output:function(J){return J&&[J[0][1],J[1][1]]}},tN={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(k6),input:function(J){return J},output:function(J){return J}},C0={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},gW={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},bW={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},eN={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},JT={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function k6(J){return{type:J}}function QT(){return!X.event.button}function KT(){var J=this.ownerSVGElement||this;return[[0,0],[J.width.baseVal.value,J.height.baseVal.value]]}function LK(J){while(!J.__brush)if(!(J=J.parentNode))return;return J.__brush}function AK(J){return J[0][0]===J[1][0]||J[0][1]===J[1][1]}function UT(J){var Q=J.__brush;return Q?Q.dim.output(Q.selection):null}function ZT(){return PK(n9)}function GT(){return PK(o9)}function WT(){return PK(tN)}function PK(J){var Q=KT,K=QT,U=k0(W,"start","brush","end"),Z=6,G;function W(O){var M=O.property("__brush",Y).selectAll(".overlay").data([k6("overlay")]);M.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",C0.overlay).merge(M).each(function(){var T=LK(this).extent;oJ(this).attr("x",T[0][0]).attr("y",T[0][1]).attr("width",T[1][0]-T[0][0]).attr("height",T[1][1]-T[0][1])}),O.selectAll(".selection").data([k6("selection")]).enter().append("rect").attr("class","selection").attr("cursor",C0.selection).attr("fill","#777").attr("fill-opacity",0.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var N=O.selectAll(".handle").data(J.handles,function(T){return T.type});N.exit().remove(),N.enter().append("rect").attr("class",function(T){return"handle handle--"+T.type}).attr("cursor",function(T){return C0[T.type]}),O.each(V).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",B)}W.move=function(O,M){if(O.selection)O.on("start.brush",function(){F(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){F(this,arguments).end()}).tween("brush",function(){var N=this,T=N.__brush,D=F(N,arguments),I=T.selection,C=J.input(typeof M==="function"?M.apply(this,arguments):M,T.extent),E=Q6(I,C);function z(A){T.selection=A===1&&AK(C)?null:E(A),V.call(N),D.brush()}return I&&C?z:z(1)});else O.each(function(){var N=this,T=arguments,D=N.__brush,I=J.input(typeof M==="function"?M.apply(N,T):M,D.extent),C=F(N,T).beforestart();a0(N),D.selection=I==null||AK(I)?null:I,V.call(N),C.start().brush().end()})};function V(){var O=oJ(this),M=LK(this).selection;if(M)O.selectAll(".selection").style("display",null).attr("x",M[0][0]).attr("y",M[0][1]).attr("width",M[1][0]-M[0][0]).attr("height",M[1][1]-M[0][1]),O.selectAll(".handle").style("display",null).attr("x",function(N){return N.type[N.type.length-1]==="e"?M[1][0]-Z/2:M[0][0]-Z/2}).attr("y",function(N){return N.type[0]==="s"?M[1][1]-Z/2:M[0][1]-Z/2}).attr("width",function(N){return N.type==="n"||N.type==="s"?M[1][0]-M[0][0]+Z:Z}).attr("height",function(N){return N.type==="e"||N.type==="w"?M[1][1]-M[0][1]+Z:Z});else O.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function F(O,M){return O.__brush.emitter||new H(O,M)}function H(O,M){this.that=O,this.args=M,this.state=O.__brush,this.active=0}H.prototype={beforestart:function(){if(++this.active===1)this.state.emitter=this,this.starting=!0;return this},start:function(){if(this.starting)this.starting=!1,this.emit("start");return this},brush:function(){return this.emit("brush"),this},end:function(){if(--this.active===0)delete this.state.emitter,this.emit("end");return this},emit:function(O){L6(new aN(W,O,J.output(this.state.selection)),U.apply,U,[O,this.that,this.args])}};function B(){if(X.event.touches){if(X.event.changedTouches.lengthMath.abs(wJ[1]-a[1]))r=!0;else JJ=!0;a=wJ,d=!0,i9(),s()}function s(){var wJ;switch(v=a[0]-QJ[0],h=a[1]-QJ[1],N){case CK:case hW:{if(T)v=Math.max(z-A,Math.min($-k,v)),P=A+v,j=k+v;if(D)h=Math.max(R-q,Math.min(L-S,h)),w=q+h,_=S+h;break}case $8:{if(T<0)v=Math.max(z-A,Math.min($-A,v)),P=A+v,j=k;else if(T>0)v=Math.max(z-k,Math.min($-k,v)),P=A,j=k+v;if(D<0)h=Math.max(R-q,Math.min(L-q,h)),w=q+h,_=S;else if(D>0)h=Math.max(R-S,Math.min(L-S,h)),w=q,_=S+h;break}case v8:{if(T)P=Math.max(z,Math.min($,A-v*T)),j=Math.max(z,Math.min($,k+v*T));if(D)w=Math.max(R,Math.min(L,q-h*D)),_=Math.max(R,Math.min(L,S+h*D));break}}if(j0)A=P-v;if(D<0)S=_-h;else if(D>0)q=w-h;N=CK,gJ.attr("cursor",C0.selection),s()}break}default:return}i9()}function M0(){switch(X.event.keyCode){case 16:{if(i)JJ=r=i=!1,s();break}case 18:{if(N===v8){if(T<0)k=j;else if(T>0)A=P;if(D<0)S=_;else if(D>0)q=w;N=$8,s()}break}case 32:{if(N===CK){if(X.event.altKey){if(T)k=j-v*T,A=P+v*T;if(D)S=_-h*D,q=w+h*D;N=v8}else{if(T<0)k=j;else if(T>0)A=P;if(D<0)S=_;else if(D>0)q=w;N=$8}gJ.attr("cursor",C0[M]),s()}break}default:return}i9()}}function Y(){var O=this.__brush||{selection:null};return O.extent=Q.apply(this,arguments),O.dim=J,O}return W.extent=function(O){return arguments.length?(Q=typeof O==="function"?O:vW([[+O[0][0],+O[0][1]],[+O[1][0],+O[1][1]]]),W):Q},W.filter=function(O){return arguments.length?(K=typeof O==="function"?O:vW(!!O),W):K},W.handleSize=function(O){return arguments.length?(Z=+O,W):Z},W.on=function(){var O=U.on.apply(U,arguments);return O===U?W:O},W}var{cos:yW,sin:uW,PI:mW}=Math,r9=mW/2,xW=mW*2,pW=Math.max;function VT(J){return function(Q,K){return J(Q.source.value+Q.target.value,K.source.value+K.target.value)}}function FT(){var J=0,Q=null,K=null,U=null;function Z(G){var W=G.length,V=[],F=bJ(W),H=[],B=[],Y=B.groups=new Array(W),O=new Array(W*W),M,N,T,D,I,C;M=0,I=-1;while(++I0?1:J<0?-1:0},TJ=Math.sqrt,SK=Math.tan;function qK(J){return J>1?0:J<-1?o:Math.acos(J)}function U0(J){return J>1?OJ:J<-1?-OJ:Math.asin(J)}function iW(J){return(J=y(J/2))*J}function FJ(){}function K7(J,Q){if(J&&oW.hasOwnProperty(J.type))oW[J.type](J,Q)}var nW={Feature:function(J,Q){K7(J.geometry,Q)},FeatureCollection:function(J,Q){var K=J.features,U=-1,Z=K.length;while(++U=0?1:-1,Z=U*K,G=u(Q),W=y(Q),V=_K*W,F=kK*G+V*u(Z),H=V*U*y(Z);U7.add(PJ(H,F)),jK=J,kK=G,_K=W}function ET(J){return Z7.reset(),H0(J,O0),Z7*2}function G7(J){return[PJ(J[1],J[0]),U0(J[2])]}function J8(J){var Q=J[0],K=J[1],U=u(K);return[U*u(Q),U*y(Q),y(K)]}function W7(J,Q){return J[0]*Q[0]+J[1]*Q[1]+J[2]*Q[2]}function h8(J,Q){return[J[1]*Q[2]-J[2]*Q[1],J[2]*Q[0]-J[0]*Q[2],J[0]*Q[1]-J[1]*Q[0]]}function $K(J,Q){J[0]+=Q[0],J[1]+=Q[1],J[2]+=Q[2]}function V7(J,Q){return[J[0]*Q,J[1]*Q,J[2]*Q]}function F7(J){var Q=TJ(J[0]*J[0]+J[1]*J[1]+J[2]*J[2]);J[0]/=Q,J[1]/=Q,J[2]/=Q}var HJ,Z0,BJ,B0,Q8,JV,QV,g8,_6=e0(),K8,g0,L0={point:H7,lineStart:UV,lineEnd:ZV,polygonStart:function(){L0.point=GV,L0.lineStart=CT,L0.lineEnd=LT,_6.reset(),O0.polygonStart()},polygonEnd:function(){if(O0.polygonEnd(),L0.point=H7,L0.lineStart=UV,L0.lineEnd=ZV,U7<0)HJ=-(BJ=180),Z0=-(B0=90);else if(_6>m)B0=90;else if(_6<-m)Z0=-90;g0[0]=HJ,g0[1]=BJ}};function H7(J,Q){if(K8.push(g0=[HJ=J,BJ=J]),QB0)B0=Q}function KV(J,Q){var K=J8([J*p,Q*p]);if(g8){var U=h8(g8,K),Z=[U[1],-U[0],0],G=h8(Z,U);F7(G),G=G7(G);var W=J-Q8,V=W>0?1:-1,F=G[0]*GJ*V,H,B=ZJ(W)>180;if(B^(V*Q8B0)B0=H}else if(F=(F+360)%360-180,B^(V*Q8B0)B0=Q}if(B){if(JcJ(HJ,BJ))BJ=J}else if(cJ(J,BJ)>cJ(HJ,BJ))HJ=J}else if(BJ>=HJ){if(JBJ)BJ=J}else if(J>Q8){if(cJ(HJ,J)>cJ(HJ,BJ))BJ=J}else if(cJ(J,BJ)>cJ(HJ,BJ))HJ=J}else H7(J,Q);g8=K,Q8=J}function UV(){L0.point=KV}function ZV(){g0[0]=HJ,g0[1]=BJ,L0.point=H7,g8=null}function GV(J,Q){if(g8){var K=J-Q8;_6.add(ZJ(K)>180?K+(K>0?360:-360):K)}else JV=J,QV=Q;O0.point(J,Q),KV(J,Q)}function CT(){O0.lineStart()}function LT(){if(GV(JV,QV),O0.lineEnd(),ZJ(_6)>m)HJ=-(BJ=180);g0[0]=HJ,g0[1]=BJ,g8=null}function cJ(J,Q){return(Q-=J)<0?Q+360:Q}function AT(J,Q){return J[0]-Q[0]}function WV(J,Q){return J[0]<=J[1]?J[0]<=Q&&Q<=J[1]:QcJ(U[0],U[1]))U[1]=Z[1];if(cJ(Z[0],U[1])>cJ(U[0],U[1]))U[0]=Z[0]}else G.push(U=Z);for(W=-1/0,K=G.length-1,Q=0,U=G[K];Q<=K;U=Z,++Q)if(Z=G[Q],(V=cJ(U[1],Z[0]))>W)W=V,HJ=Z[0],BJ=U[1]}return K8=g0=null,HJ===1/0||Z0===1/0?[[NaN,NaN],[NaN,NaN]]:[[HJ,Z0],[BJ,B0]]}var $6,O7,B7,X7,Y7,M7,N7,T7,vK,fK,hK,VV,FV,zJ,RJ,SJ,G0={sphere:FJ,point:gK,lineStart:HV,lineEnd:OV,polygonStart:function(){G0.lineStart=ST,G0.lineEnd=qT},polygonEnd:function(){G0.lineStart=HV,G0.lineEnd=OV}};function gK(J,Q){J*=p,Q*=p;var K=u(Q);v6(K*u(J),K*y(J),y(Q))}function v6(J,Q,K){++$6,B7+=(J-B7)/$6,X7+=(Q-X7)/$6,Y7+=(K-Y7)/$6}function HV(){G0.point=zT}function zT(J,Q){J*=p,Q*=p;var K=u(Q);zJ=K*u(J),RJ=K*y(J),SJ=y(Q),G0.point=RT,v6(zJ,RJ,SJ)}function RT(J,Q){J*=p,Q*=p;var K=u(Q),U=K*u(J),Z=K*y(J),G=y(Q),W=PJ(TJ((W=RJ*G-SJ*Z)*W+(W=SJ*U-zJ*G)*W+(W=zJ*Z-RJ*U)*W),zJ*U+RJ*Z+SJ*G);O7+=W,M7+=W*(zJ+(zJ=U)),N7+=W*(RJ+(RJ=Z)),T7+=W*(SJ+(SJ=G)),v6(zJ,RJ,SJ)}function OV(){G0.point=gK}function ST(){G0.point=wT}function qT(){BV(VV,FV),G0.point=gK}function wT(J,Q){VV=J,FV=Q,J*=p,Q*=p,G0.point=BV;var K=u(Q);zJ=K*u(J),RJ=K*y(J),SJ=y(Q),v6(zJ,RJ,SJ)}function BV(J,Q){J*=p,Q*=p;var K=u(Q),U=K*u(J),Z=K*y(J),G=y(Q),W=RJ*G-SJ*Z,V=SJ*U-zJ*G,F=zJ*Z-RJ*U,H=TJ(W*W+V*V+F*F),B=zJ*U+RJ*Z+SJ*G,Y=H&&-qK(B)/H,O=PJ(H,B);vK+=Y*W,fK+=Y*V,hK+=Y*F,O7+=O,M7+=O*(zJ+(zJ=U)),N7+=O*(RJ+(RJ=Z)),T7+=O*(SJ+(SJ=G)),v6(zJ,RJ,SJ)}function jT(J){$6=O7=B7=X7=Y7=M7=N7=T7=vK=fK=hK=0,H0(J,G0);var Q=vK,K=fK,U=hK,Z=Q*Q+K*K+U*U;if(Zo?J-yJ:J<-o?J+yJ:J,Q]}bK.invert=bK;function yK(J,Q,K){return(J%=yJ)?Q||K?XV(MV(J),NV(Q,K)):MV(J):Q||K?NV(Q,K):bK}function YV(J){return function(Q,K){return Q+=J,[Q>o?Q-yJ:Q<-o?Q+yJ:Q,K]}}function MV(J){var Q=YV(J);return Q.invert=YV(-J),Q}function NV(J,Q){var K=u(J),U=y(J),Z=u(Q),G=y(Q);function W(V,F){var H=u(F),B=u(V)*H,Y=y(V)*H,O=y(F),M=O*K+B*U;return[PJ(Y*Z-M*G,B*K-O*U),U0(M*Z+Y*G)]}return W.invert=function(V,F){var H=u(F),B=u(V)*H,Y=y(V)*H,O=y(F),M=O*Z-Y*G;return[PJ(Y*Z+O*G,B*K+M*U),U0(M*K-B*U)]},W}function kT(J){J=yK(J[0]*p,J[1]*p,J.length>2?J[2]*p:0);function Q(K){return K=J(K[0]*p,K[1]*p),K[0]*=GJ,K[1]*=GJ,K}return Q.invert=function(K){return K=J.invert(K[0]*p,K[1]*p),K[0]*=GJ,K[1]*=GJ,K},Q}function TV(J,Q,K,U,Z,G){if(!K)return;var W=u(Q),V=y(Q),F=U*K;if(Z==null)Z=Q+U*yJ,G=Q-F/2;else if(Z=DV(W,Z),G=DV(W,G),U>0?ZG)Z+=U*yJ;for(var H,B=Z;U>0?B>G:B1)J.push(J.pop().concat(J.shift()))},result:function(){var K=J;return J=[],Q=null,K}}}function $T(J,Q,K,U,Z,G){var W=J[0],V=J[1],F=Q[0],H=Q[1],B=0,Y=1,O=F-W,M=H-V,N;if(N=K-W,!O&&N>0)return;if(N/=O,O<0){if(N0){if(N>Y)return;if(N>B)B=N}if(N=Z-W,!O&&N<0)return;if(N/=O,O<0){if(N>Y)return;if(N>B)B=N}else if(O>0){if(N0)return;if(N/=M,M<0){if(N0){if(N>Y)return;if(N>B)B=N}if(N=G-V,!M&&N<0)return;if(N/=M,M<0){if(N>Y)return;if(N>B)B=N}else if(M>0){if(N0)J[0]=W+B*O,J[1]=V+B*M;if(Y<1)Q[0]=W+Y*O,Q[1]=V+Y*M;return!0}function D7(J,Q){return ZJ(J[0]-Q[0])=0;--V)Z.point((Y=B[V])[0],Y[1])}else U(O.x,O.p.x,-1,Z);O=O.p}O=O.o,B=O.z,M=!M}while(!O.v);Z.lineEnd()}}function CV(J){if(!(Q=J.length))return;var Q,K=0,U=J[0],Z;while(++K0)do O.point(M===0||M===3?J:K,M>1?U:Q);while((M=(M+Y+4)%4)!==N);else O.point(B[0],B[1])}function W(H,B){return ZJ(H[0]-J)0?0:3:ZJ(H[0]-K)0?2:1:ZJ(H[1]-Q)0?1:0:B>0?3:2}function V(H,B){return F(H.x,B.x)}function F(H,B){var Y=W(H,1),O=W(B,1);return Y!==O?Y-O:Y===0?B[1]-H[1]:Y===1?H[0]-B[0]:Y===2?H[1]-B[1]:B[0]-H[0]}return function(H){var B=H,Y=IV(),O,M,N,T,D,I,C,E,z,A,P,R={point:q,lineStart:j,lineEnd:L,polygonStart:$,polygonEnd:k};function q(_,v){if(Z(_,v))B.point(_,v)}function w(){var _=0;for(var v=0,h=M.length;vU&&(KJ-QJ)*(U-a)>(t-a)*(J-QJ))++_}else if(t<=U&&(KJ-QJ)*(U-a)<(t-a)*(J-QJ))--_;return _}function $(){B=Y,O=[],M=[],P=!0}function k(){var _=w(),v=P&&_,h=(O=H8(O)).length;if(v||h){if(H.polygonStart(),v)H.lineStart(),G(null,null,1,H),H.lineEnd();if(h)EV(O,V,_,G,H);H.polygonEnd()}B=H,O=M=N=null}function j(){if(R.point=S,M)M.push(N=[]);A=!0,z=!1,C=E=NaN}function L(){if(O){if(S(T,D),I&&z)Y.rejoin();O.push(Y.result())}if(R.point=q,z)B.lineEnd()}function S(_,v){var h=Z(_,v);if(M)N.push([_,v]);if(A){if(T=_,D=v,I=h,A=!1,h)B.lineStart(),B.point(_,v)}else if(h&&z)B.point(_,v);else{var d=[C=Math.max(E7,Math.min(f6,C)),E=Math.max(E7,Math.min(f6,E))],i=[_=Math.max(E7,Math.min(f6,_)),v=Math.max(E7,Math.min(f6,v))];if($T(d,i,J,Q,K,U)){if(!z)B.lineStart(),B.point(d[0],d[1]);if(B.point(i[0],i[1]),!h)B.lineEnd();P=!1}else if(h)B.lineStart(),B.point(_,v),P=!1}C=_,E=v,z=h}return R}}function vT(){var J=0,Q=0,K=960,U=500,Z,G,W;return W={stream:function(V){return Z&&G===V?Z:Z=LV(J,Q,K,U)(G=V)},extent:function(V){return arguments.length?(J=+V[0][0],Q=+V[0][1],K=+V[1][0],U=+V[1][1],Z=G=null,W):[[J,Q],[K,U]]}}}var uK=e0(),mK,C7,L7,y8={sphere:FJ,point:FJ,lineStart:fT,lineEnd:FJ,polygonStart:FJ,polygonEnd:FJ};function fT(){y8.point=gT,y8.lineEnd=hT}function hT(){y8.point=y8.lineEnd=FJ}function gT(J,Q){J*=p,Q*=p,mK=J,C7=y(Q),L7=u(Q),y8.point=bT}function bT(J,Q){J*=p,Q*=p;var K=y(Q),U=u(Q),Z=ZJ(J-mK),G=u(Z),W=y(Z),V=U*W,F=L7*K-C7*U*G,H=C7*K+L7*U*G;uK.add(PJ(TJ(V*V+F*F),H)),mK=J,C7=K,L7=U}function AV(J){return uK.reset(),H0(J,y8),+uK}var xK=[null,null],yT={type:"LineString",coordinates:xK};function uT(J,Q){return xK[0]=J,xK[1]=Q,AV(yT)}function PV(J,Q,K){var U=bJ(J,Q-m,K).concat(Q);return function(Z){return U.map(function(G){return[Z,G]})}}function zV(J,Q,K){var U=bJ(J,Q-m,K).concat(Q);return function(Z){return U.map(function(G){return[G,Z]})}}function mT(){var J,Q,K,U,Z,G,W,V,F=10,H=F,B=90,Y=360,O,M,N,T,D=2.5;function I(){return{type:"MultiLineString",coordinates:C()}}function C(){return bJ(J7(U/B)*B,K,B).map(N).concat(bJ(J7(V/Y)*Y,W,Y).map(T)).concat(bJ(J7(Q/F)*F,J,F).filter(function(E){return ZJ(E%B)>m}).map(O)).concat(bJ(J7(G/H)*H,Z,H).filter(function(E){return ZJ(E%Y)>m}).map(M))}return I.lines=function(){return C().map(function(E){return{type:"LineString",coordinates:E}})},I.outline=function(){return{type:"Polygon",coordinates:[N(U).concat(T(W).slice(1),N(K).reverse().slice(1),T(V).reverse().slice(1))]}},I.extent=function(E){if(!arguments.length)return I.extentMinor();return I.extentMajor(E).extentMinor(E)},I.extentMajor=function(E){if(!arguments.length)return[[U,V],[K,W]];if(U=+E[0][0],K=+E[1][0],V=+E[0][1],W=+E[1][1],U>K)E=U,U=K,K=E;if(V>W)E=V,V=W,W=E;return I.precision(D)},I.extentMinor=function(E){if(!arguments.length)return[[Q,G],[J,Z]];if(Q=+E[0][0],J=+E[1][0],G=+E[0][1],Z=+E[1][1],Q>J)E=Q,Q=J,J=E;if(G>Z)E=G,G=Z,Z=E;return I.precision(D)},I.step=function(E){if(!arguments.length)return I.stepMinor();return I.stepMajor(E).stepMinor(E)},I.stepMajor=function(E){if(!arguments.length)return[B,Y];return B=+E[0],Y=+E[1],I},I.stepMinor=function(E){if(!arguments.length)return[F,H];return F=+E[0],H=+E[1],I},I.precision=function(E){if(!arguments.length)return D;return D=+E,O=PV(G,Z,90),M=zV(Q,J,D),N=PV(V,W,90),T=zV(U,K,D),I},I.extentMajor([[-180,-90+m],[180,90-m]]).extentMinor([[-180,-80-m],[180,80+m]])}function xT(J,Q){var K=J[0]*p,U=J[1]*p,Z=Q[0]*p,G=Q[1]*p,W=u(U),V=y(U),F=u(G),H=y(G),B=W*u(K),Y=W*y(K),O=F*u(Z),M=F*y(Z),N=2*U0(TJ(iW(G-U)+W*F*iW(Z-K))),T=y(N),D=N?function(I){var C=y(I*=N)/T,E=y(N-I)/T,z=E*B+C*O,A=E*Y+C*M,P=E*V+C*H;return[PJ(A,z)*GJ,PJ(P,TJ(z*z+A*A))*GJ]}:function(){return[K*GJ,U*GJ]};return D.distance=N,D}function pK(J){return J}var cK=e0(),lK=e0(),RV,SV,dK,sK,A0={point:FJ,lineStart:FJ,lineEnd:FJ,polygonStart:function(){A0.lineStart=pT,A0.lineEnd=lT},polygonEnd:function(){A0.lineStart=A0.lineEnd=A0.point=FJ,cK.add(ZJ(lK)),lK.reset()},result:function(){var J=cK/2;return cK.reset(),J}};function pT(){A0.point=cT}function cT(J,Q){A0.point=qV,RV=dK=J,SV=sK=Q}function qV(J,Q){lK.add(sK*J-dK*Q),dK=J,sK=Q}function lT(){qV(RV,SV)}var u8=1/0,A7=u8,h6=-u8,P7=h6,z7={point:dT,lineStart:FJ,lineEnd:FJ,polygonStart:FJ,polygonEnd:FJ,result:function(){var J=[[u8,A7],[h6,P7]];return h6=P7=-(A7=u8=1/0),J}};function dT(J,Q){if(Jh6)h6=J;if(QP7)P7=Q}var iK=0,nK=0,g6=0,R7=0,S7=0,m8=0,oK=0,rK=0,b6=0,wV,jV,X0,Y0,rJ={point:U8,lineStart:kV,lineEnd:_V,polygonStart:function(){rJ.lineStart=nT,rJ.lineEnd=oT},polygonEnd:function(){rJ.point=U8,rJ.lineStart=kV,rJ.lineEnd=_V},result:function(){var J=b6?[oK/b6,rK/b6]:m8?[R7/m8,S7/m8]:g6?[iK/g6,nK/g6]:[NaN,NaN];return iK=nK=g6=R7=S7=m8=oK=rK=b6=0,J}};function U8(J,Q){iK+=J,nK+=Q,++g6}function kV(){rJ.point=sT}function sT(J,Q){rJ.point=iT,U8(X0=J,Y0=Q)}function iT(J,Q){var K=J-X0,U=Q-Y0,Z=TJ(K*K+U*U);R7+=Z*(X0+J)/2,S7+=Z*(Y0+Q)/2,m8+=Z,U8(X0=J,Y0=Q)}function _V(){rJ.point=U8}function nT(){rJ.point=rT}function oT(){$V(wV,jV)}function rT(J,Q){rJ.point=$V,U8(wV=X0=J,jV=Y0=Q)}function $V(J,Q){var K=J-X0,U=Q-Y0,Z=TJ(K*K+U*U);R7+=Z*(X0+J)/2,S7+=Z*(Y0+Q)/2,m8+=Z,Z=Y0*J-X0*Q,oK+=Z*(X0+J),rK+=Z*(Y0+Q),b6+=Z*3,U8(X0=J,Y0=Q)}function aT(J){var Q=4.5,K={point:U,lineStart:function(){K.point=Z},lineEnd:W,polygonStart:function(){K.lineEnd=V},polygonEnd:function(){K.lineEnd=W,K.point=U},pointRadius:function(F){return Q=F,K},result:FJ};function U(F,H){J.moveTo(F+Q,H),J.arc(F,H,Q,0,yJ)}function Z(F,H){J.moveTo(F,H),K.point=G}function G(F,H){J.lineTo(F,H)}function W(){K.point=U}function V(){J.closePath()}return K}function tT(){var J=vV(4.5),Q=[],K={point:U,lineStart:W,lineEnd:V,polygonStart:function(){K.lineEnd=F},polygonEnd:function(){K.lineEnd=V,K.point=U},pointRadius:function(H){return J=vV(H),K},result:function(){if(Q.length){var H=Q.join("");return Q=[],H}}};function U(H,B){Q.push("M",H,",",B,J)}function Z(H,B){Q.push("M",H,",",B),K.point=G}function G(H,B){Q.push("L",H,",",B)}function W(){K.point=Z}function V(){K.point=U}function F(){Q.push("Z")}return K}function vV(J){return"m0,"+J+"a"+J+","+J+" 0 1,1 0,"+-2*J+"a"+J+","+J+" 0 1,1 0,"+2*J+"z"}function eT(){var J=4.5,Q,K,U,Z;function G(W){if(W){if(typeof J==="function")Z.pointRadius(+J.apply(this,arguments));H0(W,K(Z))}return Z.result()}return G.area=function(W){return H0(W,K(A0)),A0.result()},G.bounds=function(W){return H0(W,K(z7)),z7.result()},G.centroid=function(W){return H0(W,K(rJ)),rJ.result()},G.projection=function(W){return arguments.length?(K=(Q=W)==null?pK:W.stream,G):Q},G.context=function(W){if(!arguments.length)return U;if(Z=(U=W)==null?new tT:new aT(W),typeof J!=="function")Z.pointRadius(J);return G},G.pointRadius=function(W){if(!arguments.length)return J;return J=typeof W==="function"?W:(Z.pointRadius(+W),+W),G},G.projection(null).context(null)}var aK=e0();function JD(J,Q){var K=Q[0],U=Q[1],Z=[y(K),-u(K),0],G=0,W=0;aK.reset();for(var V=0,F=J.length;V=0?1:-1,q=R*P,w=q>o,$=N*z;if(aK.add(PJ($*R*y(q),T*A+$*u(q))),G+=w?P+R*yJ:P,w^O>=K^C>=K){var k=h8(J8(Y),J8(I));F7(k);var j=h8(Z,k);F7(j);var L=(w^P>=0?-1:1)*U0(j[2]);if(U>L||U===L&&(k[0]||k[1]))W+=w^P>=0?1:-1}}}return(G<-m||G0){if(!B)G.polygonStart(),B=!0;G.lineStart();for(q=0;q<$;++q)G.point((j=k[q])[0],j[1]);G.lineEnd()}return}if(w>1&&P&2)R.push(R.pop().concat(R.shift()));O.push(R.filter(QD))}return N}}function QD(J){return J.length>1}function KD(J,Q){return((J=J.x)[0]<0?J[1]-OJ-m:OJ-J[1])-((Q=Q.x)[0]<0?Q[1]-OJ-m:OJ-Q[1])}var hV=fV(function(){return!0},UD,GD,[-o,-OJ]);function UD(J){var Q=NaN,K=NaN,U=NaN,Z;return{lineStart:function(){J.lineStart(),Z=1},point:function(G,W){var V=G>0?o:-o,F=ZJ(G-Q);if(ZJ(F-o)0?OJ:-OJ),J.point(U,K),J.lineEnd(),J.lineStart(),J.point(V,K),J.point(G,K),Z=0;else if(U!==V&&F>=o){if(ZJ(Q-U)m?f8((y(Q)*(G=u(U))*y(K)-y(U)*(Z=u(Q))*y(J))/(Z*G*W)):(Q+U)/2}function GD(J,Q,K,U){var Z;if(J==null)Z=K*OJ,U.point(-o,Z),U.point(0,Z),U.point(o,Z),U.point(o,0),U.point(o,-Z),U.point(0,-Z),U.point(-o,-Z),U.point(-o,0),U.point(-o,Z);else if(ZJ(J[0]-Q[0])>m){var G=J[0]0,Z=ZJ(K)>m;function G(B,Y,O,M){TV(M,J,Q,O,B,Y)}function W(B,Y){return u(B)*u(Y)>K}function V(B){var Y,O,M,N,T;return{lineStart:function(){N=M=!1,T=1},point:function(D,I){var C=[D,I],E,z=W(D,I),A=U?z?0:H(D,I):z?H(D+(D<0?o:-o),I):0;if(!Y&&(N=M=z))B.lineStart();if(z!==M){if(E=F(Y,C),D7(Y,E)||D7(C,E))C[0]+=m,C[1]+=m,z=W(C[0],C[1])}if(z!==M){if(T=0,z)B.lineStart(),E=F(C,Y),B.point(E[0],E[1]);else E=F(Y,C),B.point(E[0],E[1]),B.lineEnd();Y=E}else if(Z&&Y&&U^z){var P;if(!(A&O)&&(P=F(C,Y,!0)))if(T=0,U)B.lineStart(),B.point(P[0][0],P[0][1]),B.point(P[1][0],P[1][1]),B.lineEnd();else B.point(P[1][0],P[1][1]),B.lineEnd(),B.lineStart(),B.point(P[0][0],P[0][1])}if(z&&(!Y||!D7(Y,C)))B.point(C[0],C[1]);Y=C,M=z,O=A},lineEnd:function(){if(M)B.lineEnd();Y=null},clean:function(){return T|(N&&M)<<1}}}function F(B,Y,O){var M=J8(B),N=J8(Y),T=[1,0,0],D=h8(M,N),I=W7(D,D),C=D[0],E=I-C*C;if(!E)return!O&&B;var z=K*I/E,A=-K*C/E,P=h8(T,D),R=V7(T,z),q=V7(D,A);$K(R,q);var w=P,$=W7(R,w),k=W7(w,w),j=$*$-k*(W7(R,R)-1);if(j<0)return;var L=TJ(j),S=V7(w,(-$-L)/k);if($K(S,R),S=G7(S),!O)return S;var _=B[0],v=Y[0],h=B[1],d=Y[1],i;if(v<_)i=_,_=v,v=i;var JJ=v-_,r=ZJ(JJ-o)0^S[1]<(ZJ(S[0]-_)o^(_<=S[0]&&S[0]<=v)){var a=V7(w,(-$+L)/k);return $K(a,R),[S,G7(a)]}}function H(B,Y){var O=U?J:o-J,M=0;if(B<-O)M|=1;else if(B>O)M|=2;if(Y<-O)M|=4;else if(Y>O)M|=8;return M}return fV(W,V,G,U?[0,-J]:[-o,J-o])}function VD(J){return{stream:tK(J)}}function tK(J){function Q(){}var K=Q.prototype=Object.create(gV.prototype);for(var U in J)K[U]=J[U];return function(Z){var G=new Q;return G.stream=Z,G}}function gV(){}gV.prototype={point:function(J,Q){this.stream.point(J,Q)},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 bV(J,Q,K){var U=Q[1][0]-Q[0][0],Z=Q[1][1]-Q[0][1],G=J.clipExtent&&J.clipExtent();if(J.scale(150).translate([0,0]),G!=null)J.clipExtent(null);H0(K,J.stream(z7));var W=z7.result(),V=Math.min(U/(W[1][0]-W[0][0]),Z/(W[1][1]-W[0][1])),F=+Q[0][0]+(U-V*(W[1][0]+W[0][0]))/2,H=+Q[0][1]+(Z-V*(W[1][1]+W[0][1]))/2;if(G!=null)J.clipExtent(G);return J.scale(V*150).translate([F,H])}function yV(J){return function(Q,K){return bV(J,[[0,0],Q],K)}}function uV(J){return function(Q,K){return bV(J,Q,K)}}var mV=16,FD=u(30*p);function xV(J,Q){return+Q?OD(J,Q):HD(J)}function HD(J){return tK({point:function(Q,K){Q=J(Q,K),this.stream.point(Q[0],Q[1])}})}function OD(J,Q){function K(U,Z,G,W,V,F,H,B,Y,O,M,N,T,D){var I=H-U,C=B-Z,E=I*I+C*C;if(E>4*Q&&T--){var z=W+O,A=V+M,P=F+N,R=TJ(z*z+A*A+P*P),q=U0(P/=R),w=ZJ(ZJ(P)-1)Q||ZJ((I*L+C*S)/E-0.5)>0.3||W*O+V*M+F*N2?S[2]%360*p:0,j()):[H*GJ,B*GJ,Y*GJ]},w.precision=function(S){return arguments.length?(P=xV(k,A=S*S),L()):TJ(A)},w.fitExtent=uV(w),w.fitSize=yV(w);function j(){M=XV(O=yK(H,B,Y),Q);var S=Q(V,F);return G=U-S[0]*K,W=Z+S[1]*K,L()}function L(){return R=q=null,w}return function(){return Q=J.apply(this,arguments),w.invert=Q.invert&&$,j()}}function JU(J){var Q=0,K=o/3,U=eK(J),Z=U(Q,K);return Z.parallels=function(G){return arguments.length?U(Q=G[0]*p,K=G[1]*p):[Q*GJ,K*GJ]},Z}function pV(J,Q){var K=y(J),U=(K+y(Q))/2,Z=1+K*(2*U-K),G=TJ(Z)/U;function W(V,F){var H=TJ(Z-2*U*y(F))/U;return[H*y(V*=U),G-H*u(V)]}return W.invert=function(V,F){var H=G-F;return[PJ(V,H)/U,U0((Z-(V*V+H*H)*U*U)/(2*U))]},W}function q7(){return JU(pV).scale(155.424).center([0,33.6442])}function cV(){return q7().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-0.6,38.7])}function XD(J){var Q=J.length;return{point:function(K,U){var Z=-1;while(++Z=0.12&&T<0.234&&N>=-0.425&&N<-0.214?Z:T>=0.166&&T<0.234&&N>=-0.214&&N<-0.115?W:K).invert(Y)},B.stream=function(Y){return J&&Q===Y?J:J=XD([K.stream(Q=Y),Z.stream(Y),W.stream(Y)])},B.precision=function(Y){if(!arguments.length)return K.precision();return K.precision(Y),Z.precision(Y),W.precision(Y),B},B.scale=function(Y){if(!arguments.length)return K.scale();return K.scale(Y),Z.scale(Y*0.35),W.scale(Y),B.translate(K.translate())},B.translate=function(Y){if(!arguments.length)return K.translate();var O=K.scale(),M=+Y[0],N=+Y[1];return U=K.translate(Y).clipExtent([[M-0.455*O,N-0.238*O],[M+0.455*O,N+0.238*O]]).stream(H),G=Z.translate([M-0.307*O,N+0.201*O]).clipExtent([[M-0.425*O+m,N+0.12*O+m],[M-0.214*O-m,N+0.234*O-m]]).stream(H),V=W.translate([M-0.205*O,N+0.212*O]).clipExtent([[M-0.214*O+m,N+0.166*O+m],[M-0.115*O-m,N+0.234*O-m]]).stream(H),B},B.fitExtent=uV(B),B.fitSize=yV(B),B.scale(1070)}function lV(J){return function(Q,K){var U=u(Q),Z=u(K),G=J(U*Z);return[G*Z*y(Q),G*y(K)]}}function y6(J){return function(Q,K){var U=TJ(Q*Q+K*K),Z=J(U),G=y(Z),W=u(Z);return[PJ(Q*G,U*W),U0(U&&K*G/U)]}}var QU=lV(function(J){return TJ(2/(1+J))});QU.invert=y6(function(J){return 2*U0(J/2)});function MD(){return b0(QU).scale(124.75).clipAngle(179.999)}var KU=lV(function(J){return(J=qK(J))&&J/y(J)});KU.invert=y6(function(J){return J});function ND(){return b0(KU).scale(79.4188).clipAngle(179.999)}function w7(J,Q){return[J,Q7(SK((OJ+Q)/2))]}w7.invert=function(J,Q){return[J,2*f8(dW(Q))-OJ]};function TD(){return dV(w7).scale(961/yJ)}function dV(J){var Q=b0(J),K=Q.scale,U=Q.translate,Z=Q.clipExtent,G;return Q.scale=function(W){return arguments.length?(K(W),G&&Q.clipExtent(null),Q):K()},Q.translate=function(W){return arguments.length?(U(W),G&&Q.clipExtent(null),Q):U()},Q.clipExtent=function(W){if(!arguments.length)return G?null:Z();if(G=W==null){var V=o*K(),F=U();W=[[F[0]-V,F[1]-V],[F[0]+V,F[1]+V]]}return Z(W),Q},Q.clipExtent(null)}function j7(J){return SK((OJ+J)/2)}function sV(J,Q){var K=u(J),U=J===Q?y(J):Q7(K/u(Q))/Q7(j7(Q)/j7(J)),Z=K*RK(j7(J),U)/U;if(!U)return w7;function G(W,V){if(Z>0){if(V<-OJ+m)V=-OJ+m}else if(V>OJ-m)V=OJ-m;var F=Z/RK(j7(V),U);return[F*y(U*W),Z-F*u(U*W)]}return G.invert=function(W,V){var F=Z-V,H=sW(U)*TJ(W*W+F*F);return[PJ(W,F)/U,2*f8(RK(Z/H,1/U))-OJ]},G}function DD(){return JU(sV).scale(109.5).parallels([30,30])}function u6(J,Q){return[J,Q]}u6.invert=u6;function ID(){return b0(u6).scale(152.63)}function iV(J,Q){var K=u(J),U=J===Q?y(J):(K-u(Q))/(Q-J),Z=K/U+J;if(ZJ(U)2?U[2]+90:90]):(U=K(),[U[0],U[1],U[2]-90])},K([0,0,90]).scale(159.155)}X.version=VJ,X.bisect=jJ,X.bisectRight=jJ,X.bisectLeft=G8,X.ascending=DJ,X.bisector=aJ,X.descending=m6,X.deviation=W8,X.extent=V8,X.histogram=v7,X.thresholdFreedmanDiaconis=p6,X.thresholdScott=c6,X.thresholdSturges=mJ,X.max=W0,X.mean=y0,X.median=l6,X.merge=H8,X.min=c8,X.pairs=l8,X.permute=d8,X.quantile=z0,X.range=bJ,X.scan=f7,X.shuffle=s8,X.sum=d6,X.ticks=F8,X.tickStep=eJ,X.transpose=i8,X.variance=x8,X.zip=i6,X.entries=ZF,X.keys=KF,X.values=UF,X.map=f,X.set=B8,X.nest=c,X.randomUniform=GF,X.randomNormal=VU,X.randomLogNormal=WF,X.randomBates=VF,X.randomIrwinHall=FU,X.randomExponential=FF,X.easeLinear=HF,X.easeQuad=HU,X.easeQuadIn=OF,X.easeQuadOut=BF,X.easeQuadInOut=HU,X.easeCubic=h7,X.easeCubicIn=XF,X.easeCubicOut=YF,X.easeCubicInOut=h7,X.easePoly=OU,X.easePolyIn=MF,X.easePolyOut=NF,X.easePolyInOut=OU,X.easeSin=YU,X.easeSinIn=TF,X.easeSinOut=DF,X.easeSinInOut=YU,X.easeExp=MU,X.easeExpIn=IF,X.easeExpOut=EF,X.easeExpInOut=MU,X.easeCircle=NU,X.easeCircleIn=CF,X.easeCircleOut=LF,X.easeCircleInOut=NU,X.easeBounce=o8,X.easeBounceIn=kF,X.easeBounceOut=o8,X.easeBounceInOut=_F,X.easeBack=TU,X.easeBackIn=$F,X.easeBackOut=vF,X.easeBackInOut=TU,X.easeElastic=DU,X.easeElasticIn=fF,X.easeElasticOut=DU,X.easeElasticInOut=hF,X.polygonArea=gF,X.polygonCentroid=bF,X.polygonHull=mF,X.polygonContains=xF,X.polygonLength=pF,X.path=u0,X.quadtree=o6,X.queue=AU,X.arc=TH,X.area=qU,X.line=i7,X.pie=EH,X.radialArea=LH,X.radialLine=CH,X.symbol=wH,X.symbols=qH,X.symbolCircle=o7,X.symbolCross=kU,X.symbolDiamond=$U,X.symbolSquare=hU,X.symbolStar=fU,X.symbolTriangle=gU,X.symbolWye=bU,X.curveBasisClosed=kH,X.curveBasisOpen=_H,X.curveBasis=jH,X.curveBundle=$H,X.curveCardinalClosed=fH,X.curveCardinalOpen=hH,X.curveCardinal=vH,X.curveCatmullRomClosed=bH,X.curveCatmullRomOpen=yH,X.curveCatmullRom=gH,X.curveLinearClosed=uH,X.curveLinear=e6,X.curveMonotoneX=mH,X.curveMonotoneY=xH,X.curveNatural=pH,X.curveStep=cH,X.curveStepAfter=dH,X.curveStepBefore=lH,X.stack=iH,X.stackOffsetExpand=nH,X.stackOffsetNone=M8,X.stackOffsetSilhouette=oH,X.stackOffsetWiggle=rH,X.stackOrderAscending=eU,X.stackOrderDescending=aH,X.stackOrderInsideOut=tH,X.stackOrderNone=N8,X.stackOrderReverse=eH,X.color=w0,X.rgb=t8,X.hsl=G9,X.lab=V9,X.hcl=F9,X.cubehelix=K0,X.interpolate=Q6,X.interpolateArray=LZ,X.interpolateDate=AZ,X.interpolateNumber=xJ,X.interpolateObject=PZ,X.interpolateRound=zZ,X.interpolateString=NQ,X.interpolateTransformCss=jZ,X.interpolateTransformSvg=kZ,X.interpolateZoom=vZ,X.interpolateRgb=J6,X.interpolateRgbBasis=MO,X.interpolateRgbBasisClosed=NO,X.interpolateHsl=PO,X.interpolateHslLong=zO,X.interpolateLab=RO,X.interpolateHcl=SO,X.interpolateHclLong=qO,X.interpolateCubehelix=wO,X.interpolateCubehelixLong=X9,X.interpolateBasis=DZ,X.interpolateBasisClosed=IZ,X.quantize=jO,X.dispatch=k0,X.dsvFormat=EQ,X.csvParse=uZ,X.csvParseRows=hO,X.csvFormat=gO,X.csvFormatRows=bO,X.tsvParse=mZ,X.tsvParseRows=yO,X.tsvFormat=uO,X.tsvFormatRows=mO,X.request=CQ,X.html=cO,X.json=lO,X.text=dO,X.xml=sO,X.csv=nO,X.tsv=oO,X.now=C8,X.timer=I9,X.timerFlush=lZ,X.timeout=sZ,X.interval=eO,X.timeInterval=NJ,X.timeMillisecond=l0,X.timeMilliseconds=iZ,X.timeSecond=H6,X.timeSeconds=rZ,X.timeMinute=SQ,X.timeMinutes=JB,X.timeHour=qQ,X.timeHours=QB,X.timeDay=C9,X.timeDays=KB,X.timeWeek=O6,X.timeWeeks=KG,X.timeSunday=O6,X.timeSundays=KG,X.timeMonday=wQ,X.timeMondays=UB,X.timeTuesday=aZ,X.timeTuesdays=ZB,X.timeWednesday=tZ,X.timeWednesdays=GB,X.timeThursday=eZ,X.timeThursdays=WB,X.timeFriday=JG,X.timeFridays=VB,X.timeSaturday=QG,X.timeSaturdays=FB,X.timeMonth=jQ,X.timeMonths=HB,X.timeYear=s0,X.timeYears=OB,X.utcMillisecond=l0,X.utcMilliseconds=iZ,X.utcSecond=H6,X.utcSeconds=rZ,X.utcMinute=kQ,X.utcMinutes=BB,X.utcHour=_Q,X.utcHours=XB,X.utcDay=L9,X.utcDays=YB,X.utcWeek=B6,X.utcWeeks=FG,X.utcSunday=B6,X.utcSundays=FG,X.utcMonday=$Q,X.utcMondays=MB,X.utcTuesday=UG,X.utcTuesdays=NB,X.utcWednesday=ZG,X.utcWednesdays=TB,X.utcThursday=GG,X.utcThursdays=DB,X.utcFriday=WG,X.utcFridays=IB,X.utcSaturday=VG,X.utcSaturdays=EB,X.utcMonth=vQ,X.utcMonths=CB,X.utcYear=n0,X.utcYears=LB,X.formatLocale=MG,X.formatDefaultLocale=NG,X.formatSpecifier=P9,X.precisionFixed=TG,X.precisionPrefix=DG,X.precisionRound=IG,X.isoFormat=TX,X.isoParse=IX,X.timeFormatLocale=EG,X.timeFormatDefaultLocale=SG,X.scaleBand=uQ,X.scalePoint=EX,X.scaleIdentity=vG,X.scaleLinear=$G,X.scaleLog=yG,X.scaleOrdinal=yQ,X.scaleImplicit=bQ,X.scalePow=pQ,X.scaleSqrt=wX,X.scaleQuantile=uG,X.scaleQuantize=mG,X.scaleThreshold=xG,X.scaleTime=$X,X.scaleUtc=vX,X.schemeCategory10=fX,X.schemeCategory20b=hX,X.schemeCategory20c=gX,X.schemeCategory20=bX,X.scaleSequential=cG,X.interpolateCubehelixDefault=yX,X.interpolateRainbow=xX,X.interpolateWarm=uX,X.interpolateCool=mX,X.interpolateViridis=pX,X.interpolateMagma=cX,X.interpolateInferno=lX,X.interpolatePlasma=dX,X.creator=iQ,X.customEvent=L6,X.local=lG,X.matcher=oQ,X.mouse=f0,X.namespace=E6,X.namespaces=sQ,X.select=oJ,X.selectAll=HY,X.selection=o0,X.selector=j9,X.selectorAll=tQ,X.touch=_9,X.touches=OY,X.window=z8,X.active=FM,X.interrupt=a0,X.transition=GW,X.axisTop=YM,X.axisRight=MM,X.axisBottom=NM,X.axisLeft=TM,X.cluster=zM,X.hierarchy=VK,X.pack=nM,X.packSiblings=dM,X.packEnclose=OW,X.partition=oM,X.stratify=eM,X.tree=GN,X.treemap=WN,X.treemapBinary=VN,X.treemapDice=P6,X.treemapSlice=x9,X.treemapSliceDice=FN,X.treemapSquarify=AW,X.treemapResquarify=HN,X.forceCenter=ON,X.forceCollide=YN,X.forceLink=NN,X.forceManyBody=LN,X.forceSimulation=CN,X.forceX=AN,X.forceY=PN,X.drag=qN,X.dragDisable=p9,X.dragEnable=c9,X.voronoi=sN,X.zoom=rN,X.zoomIdentity=IK,X.zoomTransform=_W,X.brush=WT,X.brushX=ZT,X.brushY=GT,X.brushSelection=UT,X.chord=FT,X.ribbon=NT,X.geoAlbers=cV,X.geoAlbersUsa=YD,X.geoArea=ET,X.geoAzimuthalEqualArea=MD,X.geoAzimuthalEqualAreaRaw=QU,X.geoAzimuthalEquidistant=ND,X.geoAzimuthalEquidistantRaw=KU,X.geoBounds=PT,X.geoCentroid=jT,X.geoCircle=_T,X.geoClipExtent=vT,X.geoConicConformal=DD,X.geoConicConformalRaw=sV,X.geoConicEqualArea=q7,X.geoConicEqualAreaRaw=pV,X.geoConicEquidistant=ED,X.geoConicEquidistantRaw=iV,X.geoDistance=uT,X.geoEquirectangular=ID,X.geoEquirectangularRaw=u6,X.geoGnomonic=CD,X.geoGnomonicRaw=UU,X.geoGraticule=mT,X.geoInterpolate=xT,X.geoLength=AV,X.geoMercator=TD,X.geoMercatorRaw=w7,X.geoOrthographic=LD,X.geoOrthographicRaw=ZU,X.geoPath=eT,X.geoProjection=b0,X.geoProjectionMutator=eK,X.geoRotation=kT,X.geoStereographic=AD,X.geoStereographicRaw=GU,X.geoStream=H0,X.geoTransform=VD,X.geoTransverseMercator=PD,X.geoTransverseMercatorRaw=WU,Object.defineProperty(X,"__esModule",{value:!0})})});var QF=aV((_D,JF)=>{var CJ=rV(eV(),1),wD=(X)=>{X.theme=X.theme||"light",X.svg_id=X.svg_id||"radar",X.width=X.width||1450,X.height=X.height||1000,X.colors="colors"in X?X.colors:{background:"#fff",grid:"#dddde0",inactive:"#ddd"},X.print_layout="print_layout"in X?X.print_layout:!0,X.links_in_new_tabs="links_in_new_tabs"in X?X.links_in_new_tabs:!0,X.repo_url=X.repo_url||"#",X.print_ring_descriptions_table="print_ring_descriptions_table"in X?X.print_ring_descriptions_table:!1;var VJ=42;function DJ(){var f=Math.sin(VJ++)*1e4;return f-Math.floor(f)}function aJ(f,c){return f+DJ()*(c-f)}function N0(f,c){return f+(DJ()+DJ())*0.5*(c-f)}const tJ=[{radial_min:0,radial_max:0.5,factor_x:1,factor_y:1},{radial_min:0.5,radial_max:1,factor_x:-1,factor_y:1},{radial_min:-1,radial_max:-0.5,factor_x:-1,factor_y:-1},{radial_min:-0.5,radial_max:0,factor_x:1,factor_y:-1}],jJ=[{radius:130},{radius:220},{radius:310},{radius:400}],G8={x:-675,y:-420},m6={x:-155,y:450},uJ=[{x:450,y:90},{x:-675,y:90},{x:-675,y:-310},{x:450,y:-310}];function x8(f){var{x:c,y:x}=f;return{t:Math.atan2(x,c),r:Math.sqrt(c*c+x*x)}}function W8(f){return{x:f.r*Math.cos(f.t),y:f.r*Math.sin(f.t)}}function V8(f,c,x){var MJ=Math.min(c,x),J0=Math.max(c,x);return Math.min(Math.max(f,MJ),J0)}function p8(f,c,x){return{t:f.t,r:V8(f.r,c,x)}}function x6(f,c,x){return{x:V8(f.x,c.x,x.x),y:V8(f.y,c.y,x.y)}}function $7(f,c){var x={t:tJ[f].radial_min*Math.PI,r:c===0?30:jJ[c-1].radius},MJ={t:tJ[f].radial_max*Math.PI,r:jJ[c].radius},J0={x:15*tJ[f].factor_x,y:15*tJ[f].factor_y},n8={x:jJ[3].radius*tJ[f].factor_x,y:jJ[3].radius*tJ[f].factor_y};return{clipx:function(dJ){var Q0=x6(dJ,J0,n8),B8=p8(x8(Q0),x.r+15,MJ.r-15);return dJ.x=W8(B8).x,dJ.x},clipy:function(dJ){var Q0=x6(dJ,J0,n8),B8=p8(x8(Q0),x.r+15,MJ.r-15);return dJ.y=W8(B8).y,dJ.y},random:function(){return W8({t:aJ(x.t,MJ.t),r:N0(x.r,MJ.r)})}}}for(var WJ=0;WJ2?"8px":"9px"}).style("pointer-events","none").style("user-select","none")}});function O8(){_J.attr("transform",function(f){return mJ(f.segment.clipx(f),f.segment.clipy(f))})}CJ.forceSimulation().nodes(X.entries).velocityDecay(0.19).force("collision",CJ.forceCollide().radius(12).strength(0.85)).on("tick",O8)},jD=(X)=>{var VJ=CJ.select("svg#"+X);VJ.selectAll("*").remove()};JF.exports={drawRadarVisualization:wD,removeRadarVisualization:jD}});var _7=rV(QF(),1),$D=async()=>{try{return(await fetch("./config.json")).json()}catch(X){return console.error("Error fetching config.json",X),{}}},vD=async()=>{try{return(await fetch("./technologies.json")).json()}catch(X){return console.error("Error fetching technologies.json",X),{}}},fD=(X)=>{_7.removeRadarVisualization(X||"radar")},hD=(X,VJ,DJ,aJ,N0)=>{_7.drawRadarVisualization({svg_id:X||VJ.svg_id||"radar",...VJ,...DJ,scale:aJ||VJ.scale||1,theme:N0||VJ.theme||"light"})};export{fD as stopRenderingRadarInElement,hD as renderRadarInElement,vD as fetchTechnologies,$D as fetchConfig}; diff --git a/package.json b/package.json index 74a2c6f..16c2bc5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tech-radar", - "version": "1.0.0", + "version": "1.0.1", "type": "module", "author": "sipgate GmbH", "license": "ISC",