5 lines
143 KiB
JavaScript
5 lines
143 KiB
JavaScript
|
!function(){function n(n,t){return t>n?-1:n>t?1:n>=t?0:NaN}function t(n){return null!=n&&!isNaN(n)}function e(n){return{left:function(t,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var u=r+i>>>1;n(t[u],e)<0?r=u+1:i=u}return r},right:function(t,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var u=r+i>>>1;n(t[u],e)>0?i=u:r=u+1}return r}}}function r(n){return n.length}function i(n){for(var t=1;n*t%1;)t*=10;return t}function u(n,t){try{for(var e in t)Object.defineProperty(n.prototype,e,{value:t[e],enumerable:!1})}catch(e){n.prototype=t}}function o(){}function a(n){return ro+n in this}function c(n){return n=ro+n,n in this&&delete this[n]}function l(){var n=[];return this.forEach(function(t){n.push(t)}),n}function f(){var n=0;for(var t in this)t.charCodeAt(0)===io&&++n;return n}function s(){for(var n in this)if(n.charCodeAt(0)===io)return!1;return!0}function h(){}function p(n,t,e){return function(){var r=e.apply(t,arguments);return r===t?n:r}}function g(n,t){if(t in n)return t;t=t.charAt(0).toUpperCase()+t.substring(1);for(var e=0,r=uo.length;r>e;++e){var i=uo[e]+t;if(i in n)return i}}function v(){}function d(){}function y(n){function t(){for(var t,r=e,i=-1,u=r.length;++i<u;)(t=r[i].on)&&t.apply(this,arguments);return n}var e=[],r=new o;return t.on=function(t,i){var u,o=r.get(t);return arguments.length<2?o&&o.on:(o&&(o.on=null,e=e.slice(0,u=e.indexOf(o)).concat(e.slice(u+1)),r.remove(t)),i&&e.push(r.set(t,{on:i})),n)},t}function m(){Zu.event.preventDefault()}function x(){for(var n,t=Zu.event;n=t.sourceEvent;)t=n;return t}function M(n){for(var t=new d,e=0,r=arguments.length;++e<r;)t[arguments[e]]=y(t);return t.of=function(e,r){return function(i){try{var u=i.sourceEvent=Zu.event;i.target=n,Zu.event=i,t[i.type].apply(e,r)}finally{Zu.event=u}}},t}function _(n){return ao(n,ho),n}function b(n){return"function"==typeof n?n:function(){return co(n,this)}}function w(n){return"function"==typeof n?n:function(){return lo(n,this)}}function S(n,t){function e(){this.removeAttribute(n)}function r(){this.removeAttributeNS(n.space,n.local)}function i(){this.setAttribute(n,t)}function u(){this.setAttributeNS(n.space,n.local,t)}function o(){var e=t.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}function a(){var e=t.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}return n=Zu.ns.qualify(n),null==t?n.local?r:e:"function"==typeof t?n.local?a:o:n.local?u:i}function k(n){return n.trim().replace(/\s+/g," ")}function N(n){return new RegExp("(?:^|\\s+)"+Zu.requote(n)+"(?:\\s+|$)","g")}function E(n){return(n+"").trim().split(/^|\s+/)}function A(n,t){function e(){for(var e=-1;++e<i;)n[e](this,t)}function r(){for(var e=-1,r=t.apply(this,arguments);++e<i;)n[e](this,r)}n=E(n).map(C);var i=n.length;return"function"==typeof t?r:e}function C(n){var t=N(n);return function(e,r){if(i=e.classList)return r?i.add(n):i.remove(n);var i=e.getAttribute("class")||"";r?(t.lastIndex=0,t.test(i)||e.setAttribute("class",k(i+" "+n))):e.setAttribute("class",k(i.replace(t," ")))}}function z(n,t,e){function r(){this.style.removeProperty(n)}function i(){this.style.setProperty(n,t,e)}function u(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(n):this.style.setProperty(n,r,e)}return null==t?r:"function"==typeof t?u:i}function L(n,t){function e(){delete this[n]}function r(){this[n]=t}function i(){var e=t.apply(this,arguments);null==e?delete this[n]:this[n]=e}return null==t?e:"function"==typeof t?i:r}function T(n){return"function"==typeof n?n:(n=Zu.ns.qualify(n)).local?function(){return this.ownerDocument.createElementNS(n.space,n.local)}:function(){return this.ownerDocument.createElementNS(this.namespaceURI,n)}}function q(n){return{__data__:n}}function R(n){return function(){return so(this,n)}}function D(t){return arguments.length||(t=n),function(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}}function P(n,t){for(var e=0,r=n.length;r>e;e++)for(var i,u=n[e],o=0,a=u.length;a>o;o++)(i=u[o])&&t(i,o,e);return n}function U(n)
|
||
|
return t.precision=function(n){return arguments.length?(a=(u=n*n)>0&&16,t):Math.sqrt(u)},t}function Kt(n){var t=Gt(function(t,e){return n([t*Eo,e*Eo])});return function(n){return re(t(n))}}function Qt(n){this.stream=n}function ne(n,t){return{point:t,sphere:function(){n.sphere()},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}}}function te(n){return ee(function(){return n})()}function ee(n){function t(n){return n=a(n[0]*No,n[1]*No),[n[0]*h+c,l-n[1]*h]}function e(n){return n=a.invert((n[0]-c)/h,(l-n[1])/h),n&&[n[0]*Eo,n[1]*Eo]}function r(){a=Ht(o=oe(y,m,x),u);var n=u(v,d);return c=p-n[0]*h,l=g+n[1]*h,i()}function i(){return f&&(f.valid=!1,f=null),t}var u,o,a,c,l,f,s=Gt(function(n,t){return n=u(n,t),[n[0]*h+c,l-n[1]*h]}),h=150,p=480,g=250,v=0,d=0,y=0,m=0,x=0,M=wa,_=Sn,b=null,w=null;return t.stream=function(n){return f&&(f.valid=!1),f=re(M(o,s(_(n)))),f.valid=!0,f},t.clipAngle=function(n){return arguments.length?(M=null==n?(b=n,wa):Pt((b=+n)*No),i()):b},t.clipExtent=function(n){return arguments.length?(w=n,_=n?jt(n[0][0],n[0][1],n[1][0],n[1][1]):Sn,i()):w},t.scale=function(n){return arguments.length?(h=+n,r()):h},t.translate=function(n){return arguments.length?(p=+n[0],g=+n[1],r()):[p,g]},t.center=function(n){return arguments.length?(v=n[0]%360*No,d=n[1]%360*No,r()):[v*Eo,d*Eo]},t.rotate=function(n){return arguments.length?(y=n[0]%360*No,m=n[1]%360*No,x=n.length>2?n[2]%360*No:0,r()):[y*Eo,m*Eo,x*Eo]},Zu.rebind(t,s,"precision"),function(){return u=n.apply(this,arguments),t.invert=u.invert&&e,r()}}function re(n){return ne(n,function(t,e){n.point(t*No,e*No)})}function ie(n,t){return[n,t]}function ue(n,t){return[n>_o?n-bo:-_o>n?n+bo:n,t]}function oe(n,t,e){return n?t||e?Ht(ce(n),le(t,e)):ce(n):t||e?le(t,e):ue}function ae(n){return function(t,e){return t+=n,[t>_o?t-bo:-_o>t?t+bo:t,e]}}function ce(n){var t=ae(n);return t.invert=ae(-n),t}function le(n,t){function e(n,t){var e=Math.cos(t),a=Math.cos(n)*e,c=Math.sin(n)*e,l=Math.sin(t),f=l*r+a*i;return[Math.atan2(c*u-f*o,a*r-l*i),G(f*u+c*o)]}var r=Math.cos(n),i=Math.sin(n),u=Math.cos(t),o=Math.sin(t);return e.invert=function(n,t){var e=Math.cos(t),a=Math.cos(n)*e,c=Math.sin(n)*e,l=Math.sin(t),f=l*u-c*o;return[Math.atan2(c*u+l*o,a*r+f*i),G(f*r-a*i)]},e}function fe(n,t){var e=Math.cos(n),r=Math.sin(n);return function(i,u,o,a){var c=o*t;null!=i?(i=se(e,i),u=se(e,u),(o>0?u>i:i>u)&&(i+=o*bo)):(i=n+o*bo,u=n-.5*c);for(var l,f=i;o>0?f>u:u>f;f-=c)a.point((l=yt([e,-r*Math.cos(f),-r*Math.sin(f)]))[0],l[1])}}function se(n,t){var e=st(t);e[0]-=n,dt(e);var r=J(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-So)%(2*Math.PI)}function he(n,t,e){var r=Zu.range(n,t-So,e).concat(t);return function(n){return r.map(function(t){return[n,t]})}}function pe(n,t,e){var r=Zu.range(n,t-So,e).concat(t);return function(n){return r.map(function(t){return[t,n]})}}function ge(n){return n.source}function ve(n){return n.target}function de(n,t,e,r){var i=Math.cos(t),u=Math.sin(t),o=Math.cos(r),a=Math.sin(r),c=i*Math.cos(n),l=i*Math.sin(n),f=o*Math.cos(e),s=o*Math.sin(e),h=2*Math.asin(Math.sqrt(tn(r-t)+i*o*tn(e-n))),p=1/Math.sin(h),g=h?function(n){var t=Math.sin(n*=h)*p,e=Math.sin(h-n)*p,r=e*c+t*f,i=e*l+t*s,o=e*u+t*a;return[Math.atan2(i,r)*Eo,Math.atan2(o,Math.sqrt(r*r+i*i))*Eo]}:function(){return[n*Eo,t*Eo]};return g.distance=h,g}function ye(){function n(n,i){var u=Math.sin(i*=No),o=Math.cos(i),a=eo((n*=No)-t),c=Math.cos(a);Ra+=Math.atan2(Math.sqrt((a=o*Math.sin(a))*a+(a=r*u-e*o*c)*a),e*u+r*o*c),t=n,e=u,r=o}var t,e,r;Da.point=function(i,u){t=i*No,e=Math.sin(u*=No),r=Math.cos(u),Da.point=n},Da.lineEnd=function(){Da.point=Da.lineEnd=v}}function me(n,t){function e(t,e){var r=Math.cos(t),i=Math.cos(e),u=n(r*i);return[u*i*Math.sin(t),u*Math.sin(e)]}return e.invert=function(n,e){var r=Math.sqrt(n*n+e*e),i=t(r),u=Math.sin(i),o=Math.cos(i);return[Math.atan2(n*u,r*o),Math.asin(r&&e*u/r)]},e}function xe(n,t){function e(n,t){o>0?-wo+So>t&&(t=-wo+So):t>wo-So&&(t=wo-So);var e=o/Math.pow(i(t),u);return[e*Math.sin(u*n),o-e*Math.cos(u*n)]}var r=M
|
||
|
return o>=1?(u.event&&u.event.end.call(n,f,t),l()):void 0}function l(){return--i.count?delete i[e]:delete n.__transition__,1}var f=n.__data__,s=u.ease,h=u.delay,p=u.duration,g=$o,v=[];return g.t=h+a,r>=h?o(r-h):void(g.c=o)},0,a)}}function Uu(n,t){n.attr("transform",function(n){return"translate("+t(n)+",0)"})}function ju(n,t){n.attr("transform",function(n){return"translate(0,"+t(n)+")"})}function Hu(n){return n.toISOString()}function Fu(n,t,e){function r(t){return n(t)}function i(n,e){var r=n[1]-n[0],i=r/e,u=Zu.bisect(Pc,i);return u==Pc.length?[t.year,Oi(n.map(function(n){return n/31536e6}),e)[2]]:u?t[i/Pc[u-1]<Pc[u]/i?u-1:u]:[Hc,Oi(n,e)[2]]}return r.invert=function(t){return Ou(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain(t),r):n.domain().map(Ou)},r.nice=function(n,t){function e(e){return!isNaN(e)&&!n.range(e,Ou(+e+1),t).length}var u=r.domain(),o=Ti(u),a=null==n?i(o,10):"number"==typeof n&&i(o,n);return a&&(n=a[0],t=a[1]),r.domain(Di(u,t>1?{floor:function(t){for(;e(t=n.floor(t));)t=Ou(t-1);return t},ceil:function(t){for(;e(t=n.ceil(t));)t=Ou(+t+1);return t}}:n))},r.ticks=function(n,t){var e=Ti(r.domain()),u=null==n?i(e,10):"number"==typeof n?i(e,n):!n.range&&[{range:n},t];return u&&(n=u[0],t=u[1]),n.range(e[0],Ou(+e[1]+1),1>t?1:t)},r.tickFormat=function(){return e},r.copy=function(){return Fu(n.copy(),t,e)},Hi(r,n)}function Ou(n){return new Date(n)}function Yu(n){return JSON.parse(n.responseText)}function Iu(n){var t=$u.createRange();return t.selectNode($u.body),t.createContextualFragment(n.responseText)}var Zu={version:"3.4.11"};Date.now||(Date.now=function(){return+new Date});var Vu=[].slice,Xu=function(n){return Vu.call(n)},$u=document,Bu=$u.documentElement,Wu=window;try{Xu(Bu.childNodes)[0].nodeType}catch(n){Xu=function(n){for(var t=n.length,e=new Array(t);t--;)e[t]=n[t];return e}}try{$u.createElement("div").style.setProperty("opacity",0,"")}catch(n){var Ju=Wu.Element.prototype,Gu=Ju.setAttribute,Ku=Ju.setAttributeNS,Qu=Wu.CSSStyleDeclaration.prototype,no=Qu.setProperty;Ju.setAttribute=function(n,t){Gu.call(this,n,t+"")},Ju.setAttributeNS=function(n,t,e){Ku.call(this,n,t,e+"")},Qu.setProperty=function(n,t,e){no.call(this,n,t+"",e)}}Zu.ascending=n,Zu.descending=function(n,t){return n>t?-1:t>n?1:t>=n?0:NaN},Zu.min=function(n,t){var e,r,i=-1,u=n.length;if(1===arguments.length){for(;++i<u&&!(null!=(e=n[i])&&e>=e);)e=void 0;for(;++i<u;)null!=(r=n[i])&&e>r&&(e=r)}else{for(;++i<u&&!(null!=(e=t.call(n,n[i],i))&&e>=e);)e=void 0;for(;++i<u;)null!=(r=t.call(n,n[i],i))&&e>r&&(e=r)}return e},Zu.max=function(n,t){var e,r,i=-1,u=n.length;if(1===arguments.length){for(;++i<u&&!(null!=(e=n[i])&&e>=e);)e=void 0;for(;++i<u;)null!=(r=n[i])&&r>e&&(e=r)}else{for(;++i<u&&!(null!=(e=t.call(n,n[i],i))&&e>=e);)e=void 0;for(;++i<u;)null!=(r=t.call(n,n[i],i))&&r>e&&(e=r)}return e},Zu.extent=function(n,t){var e,r,i,u=-1,o=n.length;if(1===arguments.length){for(;++u<o&&!(null!=(e=i=n[u])&&e>=e);)e=i=void 0;for(;++u<o;)null!=(r=n[u])&&(e>r&&(e=r),r>i&&(i=r))}else{for(;++u<o&&!(null!=(e=i=t.call(n,n[u],u))&&e>=e);)e=void 0;for(;++u<o;)null!=(r=t.call(n,n[u],u))&&(e>r&&(e=r),r>i&&(i=r))}return[e,i]},Zu.sum=function(n,t){var e,r=0,i=n.length,u=-1;if(1===arguments.length)for(;++u<i;)isNaN(e=+n[u])||(r+=e);else for(;++u<i;)isNaN(e=+t.call(n,n[u],u))||(r+=e);return r},Zu.mean=function(n,e){var r,i=0,u=n.length,o=-1,a=u;if(1===arguments.length)for(;++o<u;)t(r=n[o])?i+=r:--a;else for(;++o<u;)t(r=e.call(n,n[o],o))?i+=r:--a;return a?i/a:void 0},Zu.quantile=function(n,t){var e=(n.length-1)*t+1,r=Math.floor(e),i=+n[r-1],u=e-r;return u?i+u*(n[r]-i):i},Zu.median=function(e,r){return arguments.length>1&&(e=e.map(r)),e=e.filter(t),e.length?Zu.quantile(e.sort(n),.5):void 0};var to=e(n);Zu.bisectLeft=to.left,Zu.bisect=Zu.bisectRight=to.right,Zu.bisector=function(t){return e(1===t.length?function(e,r){return n(t(e),r)}:t)},Zu.shuffle=function(n){for(var t,e,r=n.length;r;)e=0|Math.random()*r--,t=n[r],n[r]=n[e],n[e]=t;return n},Zu.permute=function(n,t){for(var e=t.length,r=new Array(e);e--;)r[e]=n[t[e]];return r},Zu.pairs=function(n){for(var t,e
|
||
|
for(var o,e,g=-1/0,t=u.length-1,r=0,i=u[t];t>=r;i=e,++r)e=u[r],(o=a(i[1],e[0]))>g&&(g=o,f=e[0],h=i[1])}return x=M=null,1/0===f||1/0===s?[[NaN,NaN],[NaN,NaN]]:[[f,s],[h,p]]}}(),Zu.geo.centroid=function(n){sa=ha=pa=ga=va=da=ya=ma=xa=Ma=_a=0,Zu.geo.stream(n,ba);var t=xa,e=Ma,r=_a,i=t*t+e*e+r*r;return ko>i&&(t=da,e=ya,r=ma,So>ha&&(t=pa,e=ga,r=va),i=t*t+e*e+r*r,ko>i)?[NaN,NaN]:[Math.atan2(e,t)*Eo,G(r/Math.sqrt(i))*Eo]};var sa,ha,pa,ga,va,da,ya,ma,xa,Ma,_a,ba={sphere:v,point:xt,lineStart:_t,lineEnd:bt,polygonStart:function(){ba.lineStart=wt},polygonEnd:function(){ba.lineStart=_t}},wa=At(St,qt,Dt,[-_o,-_o/2]),Sa=1e9;Zu.geo.clipExtent=function(){var n,t,e,r,i,u,o={stream:function(n){return i&&(i.valid=!1),i=u(n),i.valid=!0,i},extent:function(a){return arguments.length?(u=jt(n=+a[0][0],t=+a[0][1],e=+a[1][0],r=+a[1][1]),i&&(i.valid=!1,i=null),o):[[n,t],[e,r]]}};return o.extent([[0,0],[960,500]])},(Zu.geo.conicEqualArea=function(){return Ft(Ot)}).raw=Ot,Zu.geo.albers=function(){return Zu.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},Zu.geo.albersUsa=function(){function n(n){var u=n[0],o=n[1];return t=null,e(u,o),t||(r(u,o),t)||i(u,o),t}var t,e,r,i,u=Zu.geo.albers(),o=Zu.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a=Zu.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(n,e){t=[n,e]}};return n.invert=function(n){var t=u.scale(),e=u.translate(),r=(n[0]-e[0])/t,i=(n[1]-e[1])/t;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?o:i>=.166&&.234>i&&r>=-.214&&-.115>r?a:u).invert(n)},n.stream=function(n){var t=u.stream(n),e=o.stream(n),r=a.stream(n);return{point:function(n,i){t.point(n,i),e.point(n,i),r.point(n,i)},sphere:function(){t.sphere(),e.sphere(),r.sphere()},lineStart:function(){t.lineStart(),e.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),e.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),e.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),e.polygonEnd(),r.polygonEnd()}}},n.precision=function(t){return arguments.length?(u.precision(t),o.precision(t),a.precision(t),n):u.precision()},n.scale=function(t){return arguments.length?(u.scale(t),o.scale(.35*t),a.scale(t),n.translate(u.translate())):u.scale()},n.translate=function(t){if(!arguments.length)return u.translate();var l=u.scale(),f=+t[0],s=+t[1];return e=u.translate(t).clipExtent([[f-.455*l,s-.238*l],[f+.455*l,s+.238*l]]).stream(c).point,r=o.translate([f-.307*l,s+.201*l]).clipExtent([[f-.425*l+So,s+.12*l+So],[f-.214*l-So,s+.234*l-So]]).stream(c).point,i=a.translate([f-.205*l,s+.212*l]).clipExtent([[f-.214*l+So,s+.166*l+So],[f-.115*l-So,s+.234*l-So]]).stream(c).point,n},n.scale(1070)};var ka,Na,Ea,Aa,Ca,za,La={point:v,lineStart:v,lineEnd:v,polygonStart:function(){Na=0,La.lineStart=Yt},polygonEnd:function(){La.lineStart=La.lineEnd=La.point=v,ka+=eo(Na/2)}},Ta={point:It,lineStart:v,lineEnd:v,polygonStart:v,polygonEnd:v},qa={point:Xt,lineStart:$t,lineEnd:Bt,polygonStart:function(){qa.lineStart=Wt},polygonEnd:function(){qa.point=Xt,qa.lineStart=$t,qa.lineEnd=Bt}};Zu.geo.path=function(){function n(n){return n&&("function"==typeof a&&u.pointRadius(+a.apply(this,arguments)),o&&o.valid||(o=i(u)),Zu.geo.stream(n,o)),u.result()}function t(){return o=null,n}var e,r,i,u,o,a=4.5;return n.area=function(n){return ka=0,Zu.geo.stream(n,i(La)),ka},n.centroid=function(n){return pa=ga=va=da=ya=ma=xa=Ma=_a=0,Zu.geo.stream(n,i(qa)),_a?[xa/_a,Ma/_a]:ma?[da/ma,ya/ma]:va?[pa/va,ga/va]:[NaN,NaN]},n.bounds=function(n){return Ca=za=-(Ea=Aa=1/0),Zu.geo.stream(n,i(Ta)),[[Ea,Aa],[Ca,za]]},n.projection=function(n){return arguments.length?(i=(e=n)?n.stream||Kt(n):Sn,t()):e},n.context=function(n){return arguments.length?(u=null==(r=n)?new Zt:new Jt(n),"function"!=typeof a&&u.pointRadius(a),t()):r},n.pointRadius=function(t){return arguments.length?(a="function"==typeof t?t:(u.pointRadius(+t),+t),n):a},n.projection(Zu.geo.albersUsa()).context(null)},Zu.geo.transform=function(n){return{stream:function(t){var e=new Qt(t);for(var r in n)e[r]=n[r];return e}}},Qt.prototyp
|
||
|
function n(){var n=t.apply(this,arguments),u=e.apply(this,arguments),o=r.apply(this,arguments)+dc,a=i.apply(this,arguments)+dc,c=(o>a&&(c=o,o=a,a=c),a-o),l=_o>c?"0":"1",f=Math.cos(o),s=Math.sin(o),h=Math.cos(a),p=Math.sin(a);return c>=yc?n?"M0,"+u+"A"+u+","+u+" 0 1,1 0,"+-u+"A"+u+","+u+" 0 1,1 0,"+u+"M0,"+n+"A"+n+","+n+" 0 1,0 0,"+-n+"A"+n+","+n+" 0 1,0 0,"+n+"Z":"M0,"+u+"A"+u+","+u+" 0 1,1 0,"+-u+"A"+u+","+u+" 0 1,1 0,"+u+"Z":n?"M"+u*f+","+u*s+"A"+u+","+u+" 0 "+l+",1 "+u*h+","+u*p+"L"+n*h+","+n*p+"A"+n+","+n+" 0 "+l+",0 "+n*f+","+n*s+"Z":"M"+u*f+","+u*s+"A"+u+","+u+" 0 "+l+",1 "+u*h+","+u*p+"L0,0Z"}var t=nu,e=tu,r=eu,i=ru;return n.innerRadius=function(e){return arguments.length?(t=wn(e),n):t},n.outerRadius=function(t){return arguments.length?(e=wn(t),n):e},n.startAngle=function(t){return arguments.length?(r=wn(t),n):r},n.endAngle=function(t){return arguments.length?(i=wn(t),n):i},n.centroid=function(){var n=(t.apply(this,arguments)+e.apply(this,arguments))/2,u=(r.apply(this,arguments)+i.apply(this,arguments))/2+dc;return[Math.cos(u)*n,Math.sin(u)*n]},n};var dc=-wo,yc=bo-So;Zu.svg.line=function(){return iu(Sn)};var mc=Zu.map({linear:uu,"linear-closed":ou,step:au,"step-before":cu,"step-after":lu,basis:vu,"basis-open":du,"basis-closed":yu,bundle:mu,cardinal:hu,"cardinal-open":fu,"cardinal-closed":su,monotone:Su});mc.forEach(function(n,t){t.key=n,t.closed=/-closed$/.test(n)});var xc=[0,2/3,1/3,0],Mc=[0,1/3,2/3,0],_c=[0,1/6,2/3,1/6];Zu.svg.line.radial=function(){var n=iu(ku);return n.radius=n.x,delete n.x,n.angle=n.y,delete n.y,n},cu.reverse=lu,lu.reverse=cu,Zu.svg.area=function(){return Nu(Sn)},Zu.svg.area.radial=function(){var n=Nu(ku);return n.radius=n.x,delete n.x,n.innerRadius=n.x0,delete n.x0,n.outerRadius=n.x1,delete n.x1,n.angle=n.y,delete n.y,n.startAngle=n.y0,delete n.y0,n.endAngle=n.y1,delete n.y1,n},Zu.svg.chord=function(){function n(n,a){var c=t(this,u,n,a),l=t(this,o,n,a);return"M"+c.p0+r(c.r,c.p1,c.a1-c.a0)+(e(c,l)?i(c.r,c.p1,c.r,c.p0):i(c.r,c.p1,l.r,l.p0)+r(l.r,l.p1,l.a1-l.a0)+i(l.r,l.p1,c.r,c.p0))+"Z"}function t(n,t,e,r){var i=t.call(n,e,r),u=a.call(n,i,r),o=c.call(n,i,r)+dc,f=l.call(n,i,r)+dc;return{r:u,a0:o,a1:f,p0:[u*Math.cos(o),u*Math.sin(o)],p1:[u*Math.cos(f),u*Math.sin(f)]}}function e(n,t){return n.a0==t.a0&&n.a1==t.a1}function r(n,t,e){return"A"+n+","+n+" 0 "+ +(e>_o)+",1 "+t}function i(n,t,e,r){return"Q 0,0 "+r}var u=ge,o=ve,a=Eu,c=eu,l=ru;return n.radius=function(t){return arguments.length?(a=wn(t),n):a},n.source=function(t){return arguments.length?(u=wn(t),n):u},n.target=function(t){return arguments.length?(o=wn(t),n):o},n.startAngle=function(t){return arguments.length?(c=wn(t),n):c},n.endAngle=function(t){return arguments.length?(l=wn(t),n):l},n},Zu.svg.diagonal=function(){function n(n,i){var u=t.call(this,n,i),o=e.call(this,n,i),a=(u.y+o.y)/2,c=[u,{x:u.x,y:a},{x:o.x,y:a},o];return c=c.map(r),"M"+c[0]+"C"+c[1]+" "+c[2]+" "+c[3]}var t=ge,e=ve,r=Au;return n.source=function(e){return arguments.length?(t=wn(e),n):t},n.target=function(t){return arguments.length?(e=wn(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},Zu.svg.diagonal.radial=function(){var n=Zu.svg.diagonal(),t=Au,e=n.projection;return n.projection=function(n){return arguments.length?e(Cu(t=n)):t},n},Zu.svg.symbol=function(){function n(n,r){return(bc.get(t.call(this,n,r))||Tu)(e.call(this,n,r))}var t=Lu,e=zu;return n.type=function(e){return arguments.length?(t=wn(e),n):t},n.size=function(t){return arguments.length?(e=wn(t),n):e},n};var bc=Zu.map({circle:Tu,cross:function(n){var t=Math.sqrt(n/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(n){var t=Math.sqrt(n/(2*Nc)),e=t*Nc;return"M0,"+-t+"L"+e+",0 0,"+t+" "+-e+",0Z"},square:function(n){var t=Math.sqrt(n)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(n){var t=Math.sqrt(n/kc),e=t*kc/2;return"M0,"+e+"L"+t+","+-e+" "+-t+","+-e+"Z"},"triangle-up":function(n){var t=Math.sqrt(n/kc),e=t*kc/2;return"M0,"+-e+"L"+t+","+e+" "+-t+","+e+"Z"}});Zu.svg.symbol
|