Comparing version 1.0.5 to 1.0.6
@@ -1,2 +0,2 @@ | ||
// https://d3js.org/d3-shape/ Version 1.0.5. Copyright 2017 Mike Bostock. | ||
// https://d3js.org/d3-shape/ Version 1.0.6. Copyright 2017 Mike Bostock. | ||
(function (global, factory) { | ||
@@ -3,0 +3,0 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-path')) : |
@@ -1,2 +0,2 @@ | ||
// https://d3js.org/d3-shape/ Version 1.0.5. Copyright 2017 Mike Bostock. | ||
!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports,require("d3-path")):"function"==typeof define&&define.amd?define(["exports","d3-path"],i):i(t.d3=t.d3||{},t.d3)}(this,function(t,i){"use strict";function n(t){return t>1?0:t<-1?nt:Math.acos(t)}function e(t){return t>=1?et:t<=-1?-et:Math.asin(t)}function s(t){return t.innerRadius}function h(t){return t.outerRadius}function o(t){return t.startAngle}function _(t){return t.endAngle}function r(t){return t&&t.padAngle}function a(t,i,n,e,s,h,o,_){var r=n-t,a=e-i,c=o-s,l=_-h,u=(c*(i-h)-l*(t-s))/(l*r-c*a);return[t+u*r,i+u*a]}function c(t,i,n,e,s,h,o){var _=t-n,r=i-e,a=(o?h:-h)/tt(_*_+r*r),c=a*r,l=-a*_,u=t+c,f=i+l,x=n+c,y=e+l,p=(u+x)/2,v=(f+y)/2,d=x-u,T=y-f,g=d*d+T*T,b=s-h,w=u*y-x*f,m=(T<0?-1:1)*tt(U(0,b*b*g-w*w)),k=(w*T-d*m)/g,N=(-w*d-T*m)/g,M=(w*T+d*m)/g,S=(-w*d+T*m)/g,E=k-p,A=N-v,P=M-p,C=S-v;return E*E+A*A>P*P+C*C&&(k=M,N=S),{cx:k,cy:N,x01:-c,y01:-l,x11:k*(s/b-1),y11:N*(s/b-1)}}function l(t){this._context=t}function u(t){return t[0]}function f(t){return t[1]}function x(t){this._curve=t}function y(t){function i(i){return new x(t(i))}return i._curve=t,i}function p(t){var i=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?i(y(t)):i()._curve},t}function v(t,i,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+i)/6,(t._y0+4*t._y1+n)/6)}function d(t){this._context=t}function T(t){this._context=t}function g(t){this._context=t}function b(t,i){this._basis=new d(t),this._beta=i}function w(t,i,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-i),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function m(t,i){this._context=t,this._k=(1-i)/6}function k(t,i){this._context=t,this._k=(1-i)/6}function N(t,i){this._context=t,this._k=(1-i)/6}function M(t,i,n){var e=t._x1,s=t._y1,h=t._x2,o=t._y2;if(t._l01_a>it){var _=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,r=3*t._l01_a*(t._l01_a+t._l12_a);e=(e*_-t._x0*t._l12_2a+t._x2*t._l01_2a)/r,s=(s*_-t._y0*t._l12_2a+t._y2*t._l01_2a)/r}if(t._l23_a>it){var a=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);h=(h*a+t._x1*t._l23_2a-i*t._l12_2a)/c,o=(o*a+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(e,s,h,o,t._x2,t._y2)}function S(t,i){this._context=t,this._alpha=i}function E(t,i){this._context=t,this._alpha=i}function A(t,i){this._context=t,this._alpha=i}function P(t){this._context=t}function C(t){return t<0?-1:1}function q(t,i,n){var e=t._x1-t._x0,s=i-t._x1,h=(t._y1-t._y0)/(e||s<0&&-0),o=(n-t._y1)/(s||e<0&&-0),_=(h*s+o*e)/(e+s);return(C(h)+C(o))*Math.min(Math.abs(h),Math.abs(o),.5*Math.abs(_))||0}function O(t,i){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-i)/2:i}function R(t,i,n){var e=t._x0,s=t._y0,h=t._x1,o=t._y1,_=(h-e)/3;t._context.bezierCurveTo(e+_,s+_*i,h-_,o-_*n,h,o)}function z(t){this._context=t}function X(t){this._context=new Y(t)}function Y(t){this._context=t}function B(t){return new z(t)}function j(t){return new X(t)}function I(t){this._context=t}function L(t){var i,n,e=t.length-1,s=new Array(e),h=new Array(e),o=new Array(e);for(s[0]=0,h[0]=2,o[0]=t[0]+2*t[1],i=1;i<e-1;++i)s[i]=1,h[i]=4,o[i]=4*t[i]+2*t[i+1];for(s[e-1]=2,h[e-1]=7,o[e-1]=8*t[e-1]+t[e],i=1;i<e;++i)n=s[i]/h[i-1],h[i]-=n,o[i]-=n*o[i-1];for(s[e-1]=o[e-1]/h[e-1],i=e-2;i>=0;--i)s[i]=(o[i]-s[i+1])/h[i];for(h[e-1]=(t[e]+s[e-1])/2,i=0;i<e-1;++i)h[i]=2*t[i+1]-s[i+1];return[s,h]}function D(t,i){this._context=t,this._t=i}function W(t){return new D(t,0)}function V(t){return new D(t,1)}function F(t,i){return t[i]}function G(t){for(var i,n=0,e=-1,s=t.length;++e<s;)(i=+t[e][1])&&(n+=i);return n}var H=function(t){return function(){return t}},J=Math.abs,K=Math.atan2,Q=Math.cos,U=Math.max,Z=Math.min,$=Math.sin,tt=Math.sqrt,it=1e-12,nt=Math.PI,et=nt/2,st=2*nt,ht=function(){function t(){var t,s,h=+l.apply(this,arguments),o=+u.apply(this,arguments),_=y.apply(this,arguments)-et,r=p.apply(this,arguments)-et,T=J(r-_),g=r>_;if(d||(d=t=i.path()),o<h&&(s=o,o=h,h=s),o>it)if(T>st-it)d.moveTo(o*Q(_),o*$(_)),d.arc(0,0,o,_,r,!g),h>it&&(d.moveTo(h*Q(r),h*$(r)),d.arc(0,0,h,r,_,g));else{var b,w,m=_,k=r,N=_,M=r,S=T,E=T,A=v.apply(this,arguments)/2,P=A>it&&(x?+x.apply(this,arguments):tt(h*h+o*o)),C=Z(J(o-h)/2,+f.apply(this,arguments)),q=C,O=C;if(P>it){var R=e(P/h*$(A)),z=e(P/o*$(A));(S-=2*R)>it?(R*=g?1:-1,N+=R,M-=R):(S=0,N=M=(_+r)/2),(E-=2*z)>it?(z*=g?1:-1,m+=z,k-=z):(E=0,m=k=(_+r)/2)}var X=o*Q(m),Y=o*$(m),B=h*Q(M),j=h*$(M);if(C>it){var I=o*Q(k),L=o*$(k),D=h*Q(N),W=h*$(N);if(T<nt){var V=S>it?a(X,Y,D,W,I,L,B,j):[B,j],F=X-V[0],G=Y-V[1],H=I-V[0],U=L-V[1],ht=1/$(n((F*H+G*U)/(tt(F*F+G*G)*tt(H*H+U*U)))/2),ot=tt(V[0]*V[0]+V[1]*V[1]);q=Z(C,(h-ot)/(ht-1)),O=Z(C,(o-ot)/(ht+1))}}E>it?O>it?(b=c(D,W,X,Y,o,O,g),w=c(I,L,B,j,o,O,g),d.moveTo(b.cx+b.x01,b.cy+b.y01),O<C?d.arc(b.cx,b.cy,O,K(b.y01,b.x01),K(w.y01,w.x01),!g):(d.arc(b.cx,b.cy,O,K(b.y01,b.x01),K(b.y11,b.x11),!g),d.arc(0,0,o,K(b.cy+b.y11,b.cx+b.x11),K(w.cy+w.y11,w.cx+w.x11),!g),d.arc(w.cx,w.cy,O,K(w.y11,w.x11),K(w.y01,w.x01),!g))):(d.moveTo(X,Y),d.arc(0,0,o,m,k,!g)):d.moveTo(X,Y),h>it&&S>it?q>it?(b=c(B,j,I,L,h,-q,g),w=c(X,Y,D,W,h,-q,g),d.lineTo(b.cx+b.x01,b.cy+b.y01),q<C?d.arc(b.cx,b.cy,q,K(b.y01,b.x01),K(w.y01,w.x01),!g):(d.arc(b.cx,b.cy,q,K(b.y01,b.x01),K(b.y11,b.x11),!g),d.arc(0,0,h,K(b.cy+b.y11,b.cx+b.x11),K(w.cy+w.y11,w.cx+w.x11),g),d.arc(w.cx,w.cy,q,K(w.y11,w.x11),K(w.y01,w.x01),!g))):d.arc(0,0,h,M,N,g):d.lineTo(B,j)}else d.moveTo(0,0);if(d.closePath(),t)return d=null,t+""||null}var l=s,u=h,f=H(0),x=null,y=o,p=_,v=r,d=null;return t.centroid=function(){var t=(+l.apply(this,arguments)+ +u.apply(this,arguments))/2,i=(+y.apply(this,arguments)+ +p.apply(this,arguments))/2-nt/2;return[Q(i)*t,$(i)*t]},t.innerRadius=function(i){return arguments.length?(l="function"==typeof i?i:H(+i),t):l},t.outerRadius=function(i){return arguments.length?(u="function"==typeof i?i:H(+i),t):u},t.cornerRadius=function(i){return arguments.length?(f="function"==typeof i?i:H(+i),t):f},t.padRadius=function(i){return arguments.length?(x=null==i?null:"function"==typeof i?i:H(+i),t):x},t.startAngle=function(i){return arguments.length?(y="function"==typeof i?i:H(+i),t):y},t.endAngle=function(i){return arguments.length?(p="function"==typeof i?i:H(+i),t):p},t.padAngle=function(i){return arguments.length?(v="function"==typeof i?i:H(+i),t):v},t.context=function(i){return arguments.length?(d=null==i?null:i,t):d},t};l.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:this._context.lineTo(t,i)}}};var ot=function(t){return new l(t)},_t=function(){function t(t){var r,a,c,l=t.length,u=!1;for(null==h&&(_=o(c=i.path())),r=0;r<=l;++r)!(r<l&&s(a=t[r],r,t))===u&&((u=!u)?_.lineStart():_.lineEnd()),u&&_.point(+n(a,r,t),+e(a,r,t));if(c)return _=null,c+""||null}var n=u,e=f,s=H(!0),h=null,o=ot,_=null;return t.x=function(i){return arguments.length?(n="function"==typeof i?i:H(+i),t):n},t.y=function(i){return arguments.length?(e="function"==typeof i?i:H(+i),t):e},t.defined=function(i){return arguments.length?(s="function"==typeof i?i:H(!!i),t):s},t.curve=function(i){return arguments.length?(o=i,null!=h&&(_=o(h)),t):o},t.context=function(i){return arguments.length?(null==i?h=_=null:_=o(h=i),t):h},t},rt=function(){function t(t){var n,l,u,f,x,y=t.length,p=!1,v=new Array(y),d=new Array(y);for(null==r&&(c=a(x=i.path())),n=0;n<=y;++n){if(!(n<y&&_(f=t[n],n,t))===p)if(p=!p)l=n,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),u=n-1;u>=l;--u)c.point(v[u],d[u]);c.lineEnd(),c.areaEnd()}p&&(v[n]=+e(f,n,t),d[n]=+h(f,n,t),c.point(s?+s(f,n,t):v[n],o?+o(f,n,t):d[n]))}if(x)return c=null,x+""||null}function n(){return _t().defined(_).curve(a).context(r)}var e=u,s=null,h=H(0),o=f,_=H(!0),r=null,a=ot,c=null;return t.x=function(i){return arguments.length?(e="function"==typeof i?i:H(+i),s=null,t):e},t.x0=function(i){return arguments.length?(e="function"==typeof i?i:H(+i),t):e},t.x1=function(i){return arguments.length?(s=null==i?null:"function"==typeof i?i:H(+i),t):s},t.y=function(i){return arguments.length?(h="function"==typeof i?i:H(+i),o=null,t):h},t.y0=function(i){return arguments.length?(h="function"==typeof i?i:H(+i),t):h},t.y1=function(i){return arguments.length?(o=null==i?null:"function"==typeof i?i:H(+i),t):o},t.lineX0=t.lineY0=function(){return n().x(e).y(h)},t.lineY1=function(){return n().x(e).y(o)},t.lineX1=function(){return n().x(s).y(h)},t.defined=function(i){return arguments.length?(_="function"==typeof i?i:H(!!i),t):_},t.curve=function(i){return arguments.length?(a=i,null!=r&&(c=a(r)),t):a},t.context=function(i){return arguments.length?(null==i?r=c=null:c=a(r=i),t):r},t},at=function(t,i){return i<t?-1:i>t?1:i>=t?0:NaN},ct=function(t){return t},lt=function(){function t(t){var _,r,a,c,l,u=t.length,f=0,x=new Array(u),y=new Array(u),p=+s.apply(this,arguments),v=Math.min(st,Math.max(-st,h.apply(this,arguments)-p)),d=Math.min(Math.abs(v)/u,o.apply(this,arguments)),T=d*(v<0?-1:1);for(_=0;_<u;++_)(l=y[x[_]=_]=+i(t[_],_,t))>0&&(f+=l);for(null!=n?x.sort(function(t,i){return n(y[t],y[i])}):null!=e&&x.sort(function(i,n){return e(t[i],t[n])}),_=0,a=f?(v-u*T)/f:0;_<u;++_,p=c)r=x[_],l=y[r],c=p+(l>0?l*a:0)+T,y[r]={data:t[r],index:_,value:l,startAngle:p,endAngle:c,padAngle:d};return y}var i=ct,n=at,e=null,s=H(0),h=H(st),o=H(0);return t.value=function(n){return arguments.length?(i="function"==typeof n?n:H(+n),t):i},t.sortValues=function(i){return arguments.length?(n=i,e=null,t):n},t.sort=function(i){return arguments.length?(e=i,n=null,t):e},t.startAngle=function(i){return arguments.length?(s="function"==typeof i?i:H(+i),t):s},t.endAngle=function(i){return arguments.length?(h="function"==typeof i?i:H(+i),t):h},t.padAngle=function(i){return arguments.length?(o="function"==typeof i?i:H(+i),t):o},t},ut=y(ot);x.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,i){this._curve.point(i*Math.sin(t),i*-Math.cos(t))}};var ft=function(){return p(_t().curve(ut))},xt=function(){var t=rt().curve(ut),i=t.curve,n=t.lineX0,e=t.lineX1,s=t.lineY0,h=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return p(n())},delete t.lineX0,t.lineEndAngle=function(){return p(e())},delete t.lineX1,t.lineInnerRadius=function(){return p(s())},delete t.lineY0,t.lineOuterRadius=function(){return p(h())},delete t.lineY1,t.curve=function(t){return arguments.length?i(y(t)):i()._curve},t},yt={draw:function(t,i){var n=Math.sqrt(i/nt);t.moveTo(n,0),t.arc(0,0,n,0,st)}},pt={draw:function(t,i){var n=Math.sqrt(i/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},vt=Math.sqrt(1/3),dt=2*vt,Tt={draw:function(t,i){var n=Math.sqrt(i/dt),e=n*vt;t.moveTo(0,-n),t.lineTo(e,0),t.lineTo(0,n),t.lineTo(-e,0),t.closePath()}},gt=.8908130915292852,bt=Math.sin(nt/10)/Math.sin(7*nt/10),wt=Math.sin(st/10)*bt,mt=-Math.cos(st/10)*bt,kt={draw:function(t,i){var n=Math.sqrt(i*gt),e=wt*n,s=mt*n;t.moveTo(0,-n),t.lineTo(e,s);for(var h=1;h<5;++h){var o=st*h/5,_=Math.cos(o),r=Math.sin(o);t.lineTo(r*n,-_*n),t.lineTo(_*e-r*s,r*e+_*s)}t.closePath()}},Nt={draw:function(t,i){var n=Math.sqrt(i),e=-n/2;t.rect(e,e,n,n)}},Mt=Math.sqrt(3),St={draw:function(t,i){var n=-Math.sqrt(i/(3*Mt));t.moveTo(0,2*n),t.lineTo(-Mt*n,-n),t.lineTo(Mt*n,-n),t.closePath()}},Et=-.5,At=Math.sqrt(3)/2,Pt=1/Math.sqrt(12),Ct=3*(Pt/2+1),qt={draw:function(t,i){var n=Math.sqrt(i/Ct),e=n/2,s=n*Pt,h=e,o=n*Pt+n,_=-h,r=o;t.moveTo(e,s),t.lineTo(h,o),t.lineTo(_,r),t.lineTo(Et*e-At*s,At*e+Et*s),t.lineTo(Et*h-At*o,At*h+Et*o),t.lineTo(Et*_-At*r,At*_+Et*r),t.lineTo(Et*e+At*s,Et*s-At*e),t.lineTo(Et*h+At*o,Et*o-At*h),t.lineTo(Et*_+At*r,Et*r-At*_),t.closePath()}},Ot=[yt,pt,Tt,Nt,kt,St,qt],Rt=function(){function t(){var t;if(s||(s=t=i.path()),n.apply(this,arguments).draw(s,+e.apply(this,arguments)),t)return s=null,t+""||null}var n=H(yt),e=H(64),s=null;return t.type=function(i){return arguments.length?(n="function"==typeof i?i:H(i),t):n},t.size=function(i){return arguments.length?(e="function"==typeof i?i:H(+i),t):e},t.context=function(i){return arguments.length?(s=null==i?null:i,t):s},t},zt=function(){};d.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:v(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);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:v(this,t,i)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};var Xt=function(t){return new d(t)};T.prototype={areaStart:zt,areaEnd:zt,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)}},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x2=t,this._y2=i;break;case 1:this._point=2,this._x3=t,this._y3=i;break;case 2:this._point=3,this._x4=t,this._y4=i,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+i)/6);break;default:v(this,t,i)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};var Yt=function(t){return new T(t)};g.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(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,e=(this._y0+4*this._y1+i)/6;this._line?this._context.lineTo(n,e):this._context.moveTo(n,e);break;case 3:this._point=4;default:v(this,t,i)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};var Bt=function(t){return new g(t)};b.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,i=this._y,n=t.length-1;if(n>0)for(var e,s=t[0],h=i[0],o=t[n]-s,_=i[n]-h,r=-1;++r<=n;)e=r/n,this._basis.point(this._beta*t[r]+(1-this._beta)*(s+e*o),this._beta*i[r]+(1-this._beta)*(h+e*_));this._x=this._y=null,this._basis.lineEnd()},point:function(t,i){this._x.push(+t),this._y.push(+i)}};var jt=function t(i){function n(t){return 1===i?new d(t):new b(t,i)}return n.beta=function(i){return t(+i)},n}(.85);m.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:w(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2,this._x1=t,this._y1=i;break;case 2:this._point=3;default:w(this,t,i)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var It=function t(i){function n(t){return new m(t,i)}return n.tension=function(i){return t(+i)},n}(0);k.prototype={areaStart:zt,areaEnd:zt,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)}},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:w(this,t,i)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var Lt=function t(i){function n(t){return new k(t,i)}return n.tension=function(i){return t(+i)},n}(0);N.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(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,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:w(this,t,i)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var Dt=function t(i){function n(t){return new N(t,i)}return n.tension=function(i){return t(+i)},n}(0);S.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._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){if(t=+t,i=+i,this._point){var n=this._x2-t,e=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+e*e,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3;default:M(this,t,i)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var Wt=function t(i){function n(t){return i?new S(t,i):new m(t,0)}return n.alpha=function(i){return t(+i)},n}(.5);E.prototype={areaStart:zt,areaEnd:zt,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)}},point:function(t,i){if(t=+t,i=+i,this._point){var n=this._x2-t,e=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+e*e,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:M(this,t,i)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var Vt=function t(i){function n(t){return i?new E(t,i):new k(t,0)}return n.alpha=function(i){return t(+i)},n}(.5);A.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(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){if(t=+t,i=+i,this._point){var n=this._x2-t,e=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+e*e,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:M(this,t,i)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var Ft=function t(i){function n(t){return i?new A(t,i):new N(t,0)}return n.alpha=function(i){return t(+i)},n}(.5);P.prototype={areaStart:zt,areaEnd:zt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,i){t=+t,i=+i,this._point?this._context.lineTo(t,i):(this._point=1,this._context.moveTo(t,i))}};var Gt=function(t){return new P(t)};z.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:R(this,this._t0,O(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){var n=NaN;if(t=+t,i=+i,t!==this._x1||i!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3,R(this,O(this,n=q(this,t,i)),n);break;default:R(this,this._t0,n=q(this,t,i))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i,this._t0=n}}},(X.prototype=Object.create(z.prototype)).point=function(t,i){z.prototype.point.call(this,i,t)},Y.prototype={moveTo:function(t,i){this._context.moveTo(i,t)},closePath:function(){this._context.closePath()},lineTo:function(t,i){this._context.lineTo(i,t)},bezierCurveTo:function(t,i,n,e,s,h){this._context.bezierCurveTo(i,t,e,n,h,s)}},I.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,i=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],i[0]):this._context.moveTo(t[0],i[0]),2===n)this._context.lineTo(t[1],i[1]);else for(var e=L(t),s=L(i),h=0,o=1;o<n;++h,++o)this._context.bezierCurveTo(e[0][h],s[0][h],e[1][h],s[1][h],t[o],i[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,i){this._x.push(+t),this._y.push(+i)}};var Ht=function(t){return new I(t)};D.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,i),this._context.lineTo(t,i);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,i)}}this._x=t,this._y=i}};var Jt=function(t){return new D(t,.5)},Kt=Array.prototype.slice,Qt=function(t,i){if((e=t.length)>1)for(var n,e,s=1,h=t[i[0]],o=h.length;s<e;++s){n=h,h=t[i[s]];for(var _=0;_<o;++_)h[_][1]+=h[_][0]=isNaN(n[_][1])?n[_][0]:n[_][1]}},Ut=function(t){for(var i=t.length,n=new Array(i);--i>=0;)n[i]=i;return n},Zt=function(){function t(t){var h,o,_=i.apply(this,arguments),r=t.length,a=_.length,c=new Array(a);for(h=0;h<a;++h){for(var l,u=_[h],f=c[h]=new Array(r),x=0;x<r;++x)f[x]=l=[0,+s(t[x],u,x,t)],l.data=t[x];f.key=u}for(h=0,o=n(c);h<a;++h)c[o[h]].index=h;return e(c,o),c}var i=H([]),n=Ut,e=Qt,s=F;return t.keys=function(n){return arguments.length?(i="function"==typeof n?n:H(Kt.call(n)),t):i},t.value=function(i){return arguments.length?(s="function"==typeof i?i:H(+i),t):s},t.order=function(i){return arguments.length?(n=null==i?Ut:"function"==typeof i?i:H(Kt.call(i)),t):n},t.offset=function(i){return arguments.length?(e=null==i?Qt:i,t):e},t},$t=function(t,i){if((e=t.length)>0){for(var n,e,s,h=0,o=t[0].length;h<o;++h){for(s=n=0;n<e;++n)s+=t[n][h][1]||0;if(s)for(n=0;n<e;++n)t[n][h][1]/=s}Qt(t,i)}},ti=function(t,i){if((n=t.length)>0){for(var n,e=0,s=t[i[0]],h=s.length;e<h;++e){for(var o=0,_=0;o<n;++o)_+=t[o][e][1]||0;s[e][1]+=s[e][0]=-_/2}Qt(t,i)}},ii=function(t,i){if((s=t.length)>0&&(e=(n=t[i[0]]).length)>0){for(var n,e,s,h=0,o=1;o<e;++o){for(var _=0,r=0,a=0;_<s;++_){for(var c=t[i[_]],l=c[o][1]||0,u=c[o-1][1]||0,f=(l-u)/2,x=0;x<_;++x){var y=t[i[x]];f+=(y[o][1]||0)-(y[o-1][1]||0)}r+=l,a+=f*l}n[o-1][1]+=n[o-1][0]=h,r&&(h-=a/r)}n[o-1][1]+=n[o-1][0]=h,Qt(t,i)}},ni=function(t){var i=t.map(G);return Ut(t).sort(function(t,n){return i[t]-i[n]})},ei=function(t){return ni(t).reverse()},si=function(t){var i,n,e=t.length,s=t.map(G),h=Ut(t).sort(function(t,i){return s[i]-s[t]}),o=0,_=0,r=[],a=[];for(i=0;i<e;++i)n=h[i],o<_?(o+=s[n],r.push(n)):(_+=s[n],a.push(n));return a.reverse().concat(r)},hi=function(t){return Ut(t).reverse()};t.arc=ht,t.area=rt,t.line=_t,t.pie=lt,t.radialArea=xt,t.radialLine=ft,t.symbol=Rt,t.symbols=Ot,t.symbolCircle=yt,t.symbolCross=pt,t.symbolDiamond=Tt,t.symbolSquare=Nt,t.symbolStar=kt,t.symbolTriangle=St,t.symbolWye=qt,t.curveBasisClosed=Yt,t.curveBasisOpen=Bt,t.curveBasis=Xt,t.curveBundle=jt,t.curveCardinalClosed=Lt,t.curveCardinalOpen=Dt,t.curveCardinal=It,t.curveCatmullRomClosed=Vt,t.curveCatmullRomOpen=Ft,t.curveCatmullRom=Wt,t.curveLinearClosed=Gt,t.curveLinear=ot,t.curveMonotoneX=B,t.curveMonotoneY=j,t.curveNatural=Ht,t.curveStep=Jt,t.curveStepAfter=V,t.curveStepBefore=W,t.stack=Zt,t.stackOffsetExpand=$t,t.stackOffsetNone=Qt,t.stackOffsetSilhouette=ti,t.stackOffsetWiggle=ii,t.stackOrderAscending=ni,t.stackOrderDescending=ei,t.stackOrderInsideOut=si,t.stackOrderNone=Ut,t.stackOrderReverse=hi,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
// https://d3js.org/d3-shape/ Version 1.0.6. Copyright 2017 Mike Bostock. | ||
!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports,require("d3-path")):"function"==typeof define&&define.amd?define(["exports","d3-path"],i):i(t.d3=t.d3||{},t.d3)}(this,function(t,i){"use strict";function n(t){return t>1?0:t<-1?nt:Math.acos(t)}function e(t){return t>=1?et:t<=-1?-et:Math.asin(t)}function s(t){return t.innerRadius}function h(t){return t.outerRadius}function o(t){return t.startAngle}function _(t){return t.endAngle}function r(t){return t&&t.padAngle}function a(t,i,n,e,s,h,o,_){var r=n-t,a=e-i,c=o-s,l=_-h,u=(c*(i-h)-l*(t-s))/(l*r-c*a);return[t+u*r,i+u*a]}function c(t,i,n,e,s,h,o){var _=t-n,r=i-e,a=(o?h:-h)/tt(_*_+r*r),c=a*r,l=-a*_,u=t+c,f=i+l,x=n+c,y=e+l,p=(u+x)/2,v=(f+y)/2,d=x-u,T=y-f,g=d*d+T*T,b=s-h,w=u*y-x*f,m=(T<0?-1:1)*tt(U(0,b*b*g-w*w)),k=(w*T-d*m)/g,N=(-w*d-T*m)/g,M=(w*T+d*m)/g,S=(-w*d+T*m)/g,E=k-p,A=N-v,P=M-p,C=S-v;return E*E+A*A>P*P+C*C&&(k=M,N=S),{cx:k,cy:N,x01:-c,y01:-l,x11:k*(s/b-1),y11:N*(s/b-1)}}function l(t){this._context=t}function u(t){return t[0]}function f(t){return t[1]}function x(t){this._curve=t}function y(t){function i(i){return new x(t(i))}return i._curve=t,i}function p(t){var i=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?i(y(t)):i()._curve},t}function v(t,i,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+i)/6,(t._y0+4*t._y1+n)/6)}function d(t){this._context=t}function T(t){this._context=t}function g(t){this._context=t}function b(t,i){this._basis=new d(t),this._beta=i}function w(t,i,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-i),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function m(t,i){this._context=t,this._k=(1-i)/6}function k(t,i){this._context=t,this._k=(1-i)/6}function N(t,i){this._context=t,this._k=(1-i)/6}function M(t,i,n){var e=t._x1,s=t._y1,h=t._x2,o=t._y2;if(t._l01_a>it){var _=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,r=3*t._l01_a*(t._l01_a+t._l12_a);e=(e*_-t._x0*t._l12_2a+t._x2*t._l01_2a)/r,s=(s*_-t._y0*t._l12_2a+t._y2*t._l01_2a)/r}if(t._l23_a>it){var a=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);h=(h*a+t._x1*t._l23_2a-i*t._l12_2a)/c,o=(o*a+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(e,s,h,o,t._x2,t._y2)}function S(t,i){this._context=t,this._alpha=i}function E(t,i){this._context=t,this._alpha=i}function A(t,i){this._context=t,this._alpha=i}function P(t){this._context=t}function C(t){return t<0?-1:1}function q(t,i,n){var e=t._x1-t._x0,s=i-t._x1,h=(t._y1-t._y0)/(e||s<0&&-0),o=(n-t._y1)/(s||e<0&&-0),_=(h*s+o*e)/(e+s);return(C(h)+C(o))*Math.min(Math.abs(h),Math.abs(o),.5*Math.abs(_))||0}function O(t,i){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-i)/2:i}function R(t,i,n){var e=t._x0,s=t._y0,h=t._x1,o=t._y1,_=(h-e)/3;t._context.bezierCurveTo(e+_,s+_*i,h-_,o-_*n,h,o)}function z(t){this._context=t}function X(t){this._context=new Y(t)}function Y(t){this._context=t}function B(t){return new z(t)}function j(t){return new X(t)}function I(t){this._context=t}function L(t){var i,n,e=t.length-1,s=new Array(e),h=new Array(e),o=new Array(e);for(s[0]=0,h[0]=2,o[0]=t[0]+2*t[1],i=1;i<e-1;++i)s[i]=1,h[i]=4,o[i]=4*t[i]+2*t[i+1];for(s[e-1]=2,h[e-1]=7,o[e-1]=8*t[e-1]+t[e],i=1;i<e;++i)n=s[i]/h[i-1],h[i]-=n,o[i]-=n*o[i-1];for(s[e-1]=o[e-1]/h[e-1],i=e-2;i>=0;--i)s[i]=(o[i]-s[i+1])/h[i];for(h[e-1]=(t[e]+s[e-1])/2,i=0;i<e-1;++i)h[i]=2*t[i+1]-s[i+1];return[s,h]}function D(t,i){this._context=t,this._t=i}function W(t){return new D(t,0)}function V(t){return new D(t,1)}function F(t,i){return t[i]}function G(t){for(var i,n=0,e=-1,s=t.length;++e<s;)(i=+t[e][1])&&(n+=i);return n}var H=function(t){return function(){return t}},J=Math.abs,K=Math.atan2,Q=Math.cos,U=Math.max,Z=Math.min,$=Math.sin,tt=Math.sqrt,it=1e-12,nt=Math.PI,et=nt/2,st=2*nt,ht=function(){function t(){var t,s,h=+l.apply(this,arguments),o=+u.apply(this,arguments),_=y.apply(this,arguments)-et,r=p.apply(this,arguments)-et,T=J(r-_),g=r>_;if(d||(d=t=i.path()),o<h&&(s=o,o=h,h=s),o>it)if(T>st-it)d.moveTo(o*Q(_),o*$(_)),d.arc(0,0,o,_,r,!g),h>it&&(d.moveTo(h*Q(r),h*$(r)),d.arc(0,0,h,r,_,g));else{var b,w,m=_,k=r,N=_,M=r,S=T,E=T,A=v.apply(this,arguments)/2,P=A>it&&(x?+x.apply(this,arguments):tt(h*h+o*o)),C=Z(J(o-h)/2,+f.apply(this,arguments)),q=C,O=C;if(P>it){var R=e(P/h*$(A)),z=e(P/o*$(A));(S-=2*R)>it?(R*=g?1:-1,N+=R,M-=R):(S=0,N=M=(_+r)/2),(E-=2*z)>it?(z*=g?1:-1,m+=z,k-=z):(E=0,m=k=(_+r)/2)}var X=o*Q(m),Y=o*$(m),B=h*Q(M),j=h*$(M);if(C>it){var I=o*Q(k),L=o*$(k),D=h*Q(N),W=h*$(N);if(T<nt){var V=S>it?a(X,Y,D,W,I,L,B,j):[B,j],F=X-V[0],G=Y-V[1],H=I-V[0],U=L-V[1],ht=1/$(n((F*H+G*U)/(tt(F*F+G*G)*tt(H*H+U*U)))/2),ot=tt(V[0]*V[0]+V[1]*V[1]);q=Z(C,(h-ot)/(ht-1)),O=Z(C,(o-ot)/(ht+1))}}E>it?O>it?(b=c(D,W,X,Y,o,O,g),w=c(I,L,B,j,o,O,g),d.moveTo(b.cx+b.x01,b.cy+b.y01),O<C?d.arc(b.cx,b.cy,O,K(b.y01,b.x01),K(w.y01,w.x01),!g):(d.arc(b.cx,b.cy,O,K(b.y01,b.x01),K(b.y11,b.x11),!g),d.arc(0,0,o,K(b.cy+b.y11,b.cx+b.x11),K(w.cy+w.y11,w.cx+w.x11),!g),d.arc(w.cx,w.cy,O,K(w.y11,w.x11),K(w.y01,w.x01),!g))):(d.moveTo(X,Y),d.arc(0,0,o,m,k,!g)):d.moveTo(X,Y),h>it&&S>it?q>it?(b=c(B,j,I,L,h,-q,g),w=c(X,Y,D,W,h,-q,g),d.lineTo(b.cx+b.x01,b.cy+b.y01),q<C?d.arc(b.cx,b.cy,q,K(b.y01,b.x01),K(w.y01,w.x01),!g):(d.arc(b.cx,b.cy,q,K(b.y01,b.x01),K(b.y11,b.x11),!g),d.arc(0,0,h,K(b.cy+b.y11,b.cx+b.x11),K(w.cy+w.y11,w.cx+w.x11),g),d.arc(w.cx,w.cy,q,K(w.y11,w.x11),K(w.y01,w.x01),!g))):d.arc(0,0,h,M,N,g):d.lineTo(B,j)}else d.moveTo(0,0);if(d.closePath(),t)return d=null,t+""||null}var l=s,u=h,f=H(0),x=null,y=o,p=_,v=r,d=null;return t.centroid=function(){var t=(+l.apply(this,arguments)+ +u.apply(this,arguments))/2,i=(+y.apply(this,arguments)+ +p.apply(this,arguments))/2-nt/2;return[Q(i)*t,$(i)*t]},t.innerRadius=function(i){return arguments.length?(l="function"==typeof i?i:H(+i),t):l},t.outerRadius=function(i){return arguments.length?(u="function"==typeof i?i:H(+i),t):u},t.cornerRadius=function(i){return arguments.length?(f="function"==typeof i?i:H(+i),t):f},t.padRadius=function(i){return arguments.length?(x=null==i?null:"function"==typeof i?i:H(+i),t):x},t.startAngle=function(i){return arguments.length?(y="function"==typeof i?i:H(+i),t):y},t.endAngle=function(i){return arguments.length?(p="function"==typeof i?i:H(+i),t):p},t.padAngle=function(i){return arguments.length?(v="function"==typeof i?i:H(+i),t):v},t.context=function(i){return arguments.length?(d=null==i?null:i,t):d},t};l.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:this._context.lineTo(t,i)}}};var ot=function(t){return new l(t)},_t=function(){function t(t){var r,a,c,l=t.length,u=!1;for(null==h&&(_=o(c=i.path())),r=0;r<=l;++r)!(r<l&&s(a=t[r],r,t))===u&&((u=!u)?_.lineStart():_.lineEnd()),u&&_.point(+n(a,r,t),+e(a,r,t));if(c)return _=null,c+""||null}var n=u,e=f,s=H(!0),h=null,o=ot,_=null;return t.x=function(i){return arguments.length?(n="function"==typeof i?i:H(+i),t):n},t.y=function(i){return arguments.length?(e="function"==typeof i?i:H(+i),t):e},t.defined=function(i){return arguments.length?(s="function"==typeof i?i:H(!!i),t):s},t.curve=function(i){return arguments.length?(o=i,null!=h&&(_=o(h)),t):o},t.context=function(i){return arguments.length?(null==i?h=_=null:_=o(h=i),t):h},t},rt=function(){function t(t){var n,l,u,f,x,y=t.length,p=!1,v=new Array(y),d=new Array(y);for(null==r&&(c=a(x=i.path())),n=0;n<=y;++n){if(!(n<y&&_(f=t[n],n,t))===p)if(p=!p)l=n,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),u=n-1;u>=l;--u)c.point(v[u],d[u]);c.lineEnd(),c.areaEnd()}p&&(v[n]=+e(f,n,t),d[n]=+h(f,n,t),c.point(s?+s(f,n,t):v[n],o?+o(f,n,t):d[n]))}if(x)return c=null,x+""||null}function n(){return _t().defined(_).curve(a).context(r)}var e=u,s=null,h=H(0),o=f,_=H(!0),r=null,a=ot,c=null;return t.x=function(i){return arguments.length?(e="function"==typeof i?i:H(+i),s=null,t):e},t.x0=function(i){return arguments.length?(e="function"==typeof i?i:H(+i),t):e},t.x1=function(i){return arguments.length?(s=null==i?null:"function"==typeof i?i:H(+i),t):s},t.y=function(i){return arguments.length?(h="function"==typeof i?i:H(+i),o=null,t):h},t.y0=function(i){return arguments.length?(h="function"==typeof i?i:H(+i),t):h},t.y1=function(i){return arguments.length?(o=null==i?null:"function"==typeof i?i:H(+i),t):o},t.lineX0=t.lineY0=function(){return n().x(e).y(h)},t.lineY1=function(){return n().x(e).y(o)},t.lineX1=function(){return n().x(s).y(h)},t.defined=function(i){return arguments.length?(_="function"==typeof i?i:H(!!i),t):_},t.curve=function(i){return arguments.length?(a=i,null!=r&&(c=a(r)),t):a},t.context=function(i){return arguments.length?(null==i?r=c=null:c=a(r=i),t):r},t},at=function(t,i){return i<t?-1:i>t?1:i>=t?0:NaN},ct=function(t){return t},lt=function(){function t(t){var _,r,a,c,l,u=t.length,f=0,x=new Array(u),y=new Array(u),p=+s.apply(this,arguments),v=Math.min(st,Math.max(-st,h.apply(this,arguments)-p)),d=Math.min(Math.abs(v)/u,o.apply(this,arguments)),T=d*(v<0?-1:1);for(_=0;_<u;++_)(l=y[x[_]=_]=+i(t[_],_,t))>0&&(f+=l);for(null!=n?x.sort(function(t,i){return n(y[t],y[i])}):null!=e&&x.sort(function(i,n){return e(t[i],t[n])}),_=0,a=f?(v-u*T)/f:0;_<u;++_,p=c)r=x[_],l=y[r],c=p+(l>0?l*a:0)+T,y[r]={data:t[r],index:_,value:l,startAngle:p,endAngle:c,padAngle:d};return y}var i=ct,n=at,e=null,s=H(0),h=H(st),o=H(0);return t.value=function(n){return arguments.length?(i="function"==typeof n?n:H(+n),t):i},t.sortValues=function(i){return arguments.length?(n=i,e=null,t):n},t.sort=function(i){return arguments.length?(e=i,n=null,t):e},t.startAngle=function(i){return arguments.length?(s="function"==typeof i?i:H(+i),t):s},t.endAngle=function(i){return arguments.length?(h="function"==typeof i?i:H(+i),t):h},t.padAngle=function(i){return arguments.length?(o="function"==typeof i?i:H(+i),t):o},t},ut=y(ot);x.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,i){this._curve.point(i*Math.sin(t),i*-Math.cos(t))}};var ft=function(){return p(_t().curve(ut))},xt=function(){var t=rt().curve(ut),i=t.curve,n=t.lineX0,e=t.lineX1,s=t.lineY0,h=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return p(n())},delete t.lineX0,t.lineEndAngle=function(){return p(e())},delete t.lineX1,t.lineInnerRadius=function(){return p(s())},delete t.lineY0,t.lineOuterRadius=function(){return p(h())},delete t.lineY1,t.curve=function(t){return arguments.length?i(y(t)):i()._curve},t},yt={draw:function(t,i){var n=Math.sqrt(i/nt);t.moveTo(n,0),t.arc(0,0,n,0,st)}},pt={draw:function(t,i){var n=Math.sqrt(i/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},vt=Math.sqrt(1/3),dt=2*vt,Tt={draw:function(t,i){var n=Math.sqrt(i/dt),e=n*vt;t.moveTo(0,-n),t.lineTo(e,0),t.lineTo(0,n),t.lineTo(-e,0),t.closePath()}},gt=Math.sin(nt/10)/Math.sin(7*nt/10),bt=Math.sin(st/10)*gt,wt=-Math.cos(st/10)*gt,mt={draw:function(t,i){var n=Math.sqrt(.8908130915292852*i),e=bt*n,s=wt*n;t.moveTo(0,-n),t.lineTo(e,s);for(var h=1;h<5;++h){var o=st*h/5,_=Math.cos(o),r=Math.sin(o);t.lineTo(r*n,-_*n),t.lineTo(_*e-r*s,r*e+_*s)}t.closePath()}},kt={draw:function(t,i){var n=Math.sqrt(i),e=-n/2;t.rect(e,e,n,n)}},Nt=Math.sqrt(3),Mt={draw:function(t,i){var n=-Math.sqrt(i/(3*Nt));t.moveTo(0,2*n),t.lineTo(-Nt*n,-n),t.lineTo(Nt*n,-n),t.closePath()}},St=-.5,Et=Math.sqrt(3)/2,At=1/Math.sqrt(12),Pt=3*(At/2+1),Ct={draw:function(t,i){var n=Math.sqrt(i/Pt),e=n/2,s=n*At,h=e,o=n*At+n,_=-h,r=o;t.moveTo(e,s),t.lineTo(h,o),t.lineTo(_,r),t.lineTo(St*e-Et*s,Et*e+St*s),t.lineTo(St*h-Et*o,Et*h+St*o),t.lineTo(St*_-Et*r,Et*_+St*r),t.lineTo(St*e+Et*s,St*s-Et*e),t.lineTo(St*h+Et*o,St*o-Et*h),t.lineTo(St*_+Et*r,St*r-Et*_),t.closePath()}},qt=[yt,pt,Tt,kt,mt,Mt,Ct],Ot=function(){function t(){var t;if(s||(s=t=i.path()),n.apply(this,arguments).draw(s,+e.apply(this,arguments)),t)return s=null,t+""||null}var n=H(yt),e=H(64),s=null;return t.type=function(i){return arguments.length?(n="function"==typeof i?i:H(i),t):n},t.size=function(i){return arguments.length?(e="function"==typeof i?i:H(+i),t):e},t.context=function(i){return arguments.length?(s=null==i?null:i,t):s},t},Rt=function(){};d.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:v(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);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:v(this,t,i)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};var zt=function(t){return new d(t)};T.prototype={areaStart:Rt,areaEnd:Rt,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)}},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x2=t,this._y2=i;break;case 1:this._point=2,this._x3=t,this._y3=i;break;case 2:this._point=3,this._x4=t,this._y4=i,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+i)/6);break;default:v(this,t,i)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};var Xt=function(t){return new T(t)};g.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(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,e=(this._y0+4*this._y1+i)/6;this._line?this._context.lineTo(n,e):this._context.moveTo(n,e);break;case 3:this._point=4;default:v(this,t,i)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};var Yt=function(t){return new g(t)};b.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,i=this._y,n=t.length-1;if(n>0)for(var e,s=t[0],h=i[0],o=t[n]-s,_=i[n]-h,r=-1;++r<=n;)e=r/n,this._basis.point(this._beta*t[r]+(1-this._beta)*(s+e*o),this._beta*i[r]+(1-this._beta)*(h+e*_));this._x=this._y=null,this._basis.lineEnd()},point:function(t,i){this._x.push(+t),this._y.push(+i)}};var Bt=function t(i){function n(t){return 1===i?new d(t):new b(t,i)}return n.beta=function(i){return t(+i)},n}(.85);m.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:w(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2,this._x1=t,this._y1=i;break;case 2:this._point=3;default:w(this,t,i)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var jt=function t(i){function n(t){return new m(t,i)}return n.tension=function(i){return t(+i)},n}(0);k.prototype={areaStart:Rt,areaEnd:Rt,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)}},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:w(this,t,i)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var It=function t(i){function n(t){return new k(t,i)}return n.tension=function(i){return t(+i)},n}(0);N.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(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,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:w(this,t,i)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var Lt=function t(i){function n(t){return new N(t,i)}return n.tension=function(i){return t(+i)},n}(0);S.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._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){if(t=+t,i=+i,this._point){var n=this._x2-t,e=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+e*e,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3;default:M(this,t,i)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var Dt=function t(i){function n(t){return i?new S(t,i):new m(t,0)}return n.alpha=function(i){return t(+i)},n}(.5);E.prototype={areaStart:Rt,areaEnd:Rt,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)}},point:function(t,i){if(t=+t,i=+i,this._point){var n=this._x2-t,e=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+e*e,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:M(this,t,i)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var Wt=function t(i){function n(t){return i?new E(t,i):new k(t,0)}return n.alpha=function(i){return t(+i)},n}(.5);A.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(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){if(t=+t,i=+i,this._point){var n=this._x2-t,e=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+e*e,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:M(this,t,i)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var Vt=function t(i){function n(t){return i?new A(t,i):new N(t,0)}return n.alpha=function(i){return t(+i)},n}(.5);P.prototype={areaStart:Rt,areaEnd:Rt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,i){t=+t,i=+i,this._point?this._context.lineTo(t,i):(this._point=1,this._context.moveTo(t,i))}};var Ft=function(t){return new P(t)};z.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:R(this,this._t0,O(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){var n=NaN;if(t=+t,i=+i,t!==this._x1||i!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3,R(this,O(this,n=q(this,t,i)),n);break;default:R(this,this._t0,n=q(this,t,i))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i,this._t0=n}}},(X.prototype=Object.create(z.prototype)).point=function(t,i){z.prototype.point.call(this,i,t)},Y.prototype={moveTo:function(t,i){this._context.moveTo(i,t)},closePath:function(){this._context.closePath()},lineTo:function(t,i){this._context.lineTo(i,t)},bezierCurveTo:function(t,i,n,e,s,h){this._context.bezierCurveTo(i,t,e,n,h,s)}},I.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,i=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],i[0]):this._context.moveTo(t[0],i[0]),2===n)this._context.lineTo(t[1],i[1]);else for(var e=L(t),s=L(i),h=0,o=1;o<n;++h,++o)this._context.bezierCurveTo(e[0][h],s[0][h],e[1][h],s[1][h],t[o],i[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,i){this._x.push(+t),this._y.push(+i)}};var Gt=function(t){return new I(t)};D.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,i),this._context.lineTo(t,i);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,i)}}this._x=t,this._y=i}};var Ht=function(t){return new D(t,.5)},Jt=Array.prototype.slice,Kt=function(t,i){if((e=t.length)>1)for(var n,e,s=1,h=t[i[0]],o=h.length;s<e;++s){n=h,h=t[i[s]];for(var _=0;_<o;++_)h[_][1]+=h[_][0]=isNaN(n[_][1])?n[_][0]:n[_][1]}},Qt=function(t){for(var i=t.length,n=new Array(i);--i>=0;)n[i]=i;return n},Ut=function(){function t(t){var h,o,_=i.apply(this,arguments),r=t.length,a=_.length,c=new Array(a);for(h=0;h<a;++h){for(var l,u=_[h],f=c[h]=new Array(r),x=0;x<r;++x)f[x]=l=[0,+s(t[x],u,x,t)],l.data=t[x];f.key=u}for(h=0,o=n(c);h<a;++h)c[o[h]].index=h;return e(c,o),c}var i=H([]),n=Qt,e=Kt,s=F;return t.keys=function(n){return arguments.length?(i="function"==typeof n?n:H(Jt.call(n)),t):i},t.value=function(i){return arguments.length?(s="function"==typeof i?i:H(+i),t):s},t.order=function(i){return arguments.length?(n=null==i?Qt:"function"==typeof i?i:H(Jt.call(i)),t):n},t.offset=function(i){return arguments.length?(e=null==i?Kt:i,t):e},t},Zt=function(t,i){if((e=t.length)>0){for(var n,e,s,h=0,o=t[0].length;h<o;++h){for(s=n=0;n<e;++n)s+=t[n][h][1]||0;if(s)for(n=0;n<e;++n)t[n][h][1]/=s}Kt(t,i)}},$t=function(t,i){if((n=t.length)>0){for(var n,e=0,s=t[i[0]],h=s.length;e<h;++e){for(var o=0,_=0;o<n;++o)_+=t[o][e][1]||0;s[e][1]+=s[e][0]=-_/2}Kt(t,i)}},ti=function(t,i){if((s=t.length)>0&&(e=(n=t[i[0]]).length)>0){for(var n,e,s,h=0,o=1;o<e;++o){for(var _=0,r=0,a=0;_<s;++_){for(var c=t[i[_]],l=c[o][1]||0,u=c[o-1][1]||0,f=(l-u)/2,x=0;x<_;++x){var y=t[i[x]];f+=(y[o][1]||0)-(y[o-1][1]||0)}r+=l,a+=f*l}n[o-1][1]+=n[o-1][0]=h,r&&(h-=a/r)}n[o-1][1]+=n[o-1][0]=h,Kt(t,i)}},ii=function(t){var i=t.map(G);return Qt(t).sort(function(t,n){return i[t]-i[n]})},ni=function(t){return ii(t).reverse()},ei=function(t){var i,n,e=t.length,s=t.map(G),h=Qt(t).sort(function(t,i){return s[i]-s[t]}),o=0,_=0,r=[],a=[];for(i=0;i<e;++i)n=h[i],o<_?(o+=s[n],r.push(n)):(_+=s[n],a.push(n));return a.reverse().concat(r)},si=function(t){return Qt(t).reverse()};t.arc=ht,t.area=rt,t.line=_t,t.pie=lt,t.radialArea=xt,t.radialLine=ft,t.symbol=Ot,t.symbols=qt,t.symbolCircle=yt,t.symbolCross=pt,t.symbolDiamond=Tt,t.symbolSquare=kt,t.symbolStar=mt,t.symbolTriangle=Mt,t.symbolWye=Ct,t.curveBasisClosed=Xt,t.curveBasisOpen=Yt,t.curveBasis=zt,t.curveBundle=Bt,t.curveCardinalClosed=It,t.curveCardinalOpen=Lt,t.curveCardinal=jt,t.curveCatmullRomClosed=Wt,t.curveCatmullRomOpen=Vt,t.curveCatmullRom=Dt,t.curveLinearClosed=Ft,t.curveLinear=ot,t.curveMonotoneX=B,t.curveMonotoneY=j,t.curveNatural=Gt,t.curveStep=Ht,t.curveStepAfter=V,t.curveStepBefore=W,t.stack=Ut,t.stackOffsetExpand=Zt,t.stackOffsetNone=Kt,t.stackOffsetSilhouette=$t,t.stackOffsetWiggle=ti,t.stackOrderAscending=ii,t.stackOrderDescending=ni,t.stackOrderInsideOut=ei,t.stackOrderNone=Qt,t.stackOrderReverse=si,Object.defineProperty(t,"__esModule",{value:!0})}); |
{ | ||
"name": "d3-shape", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Graphical primitives for visualization, such as lines and areas.", | ||
@@ -41,4 +41,4 @@ "keywords": [ | ||
"tape": "4", | ||
"uglify-js": "2" | ||
"uglify-js": "^2.8.11" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
932144
99
3205