text: !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.chart=n():t.chart=n()}(this,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=0)}([function(t,n,e){"use strict";e.r(n);var r=e(1);e.d(n,"getLineSet",(function(){return r.getLineSet})),e.d(n,"getBarSet",(function(){return r.getBarSet})),e.d(n,"getStackedSets",(function(){return r.getStackedSets}));var i=e(56);e.d(n,"default",(function(){return i.default}))},function(t,n,e){"use strict";e.r(n),e.d(n,"getLineSet",(function(){return a})),e.d(n,"getBarSet",(function(){return c})),e.d(n,"getStackedSets",(function(){return f}));var r=e(2);function i(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function u(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?i(Object(e),!0).forEach((function(n){o(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):i(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function o(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function a(t,n){return u(u({},n),{},{type:"line",values:t.map((function(t){return{x:t.date,y:t[n.key]}}))})}function c(t,n){return u(u({},n),{},{type:"bars",values:t.map((function(t){return{x:t.date,y1:0,y2:t[n.key]}}))})}function f(t,n,e){var i=e.map((function(t){return t.key})),o=Object(r.stack)().keys(i)(t);return e.map((function(t,e){var r=o[e];return u(u({},t),{},{type:n,values:r.map((function(t){return{x:t.data.date,y1:t[0],y2:t[1]}}))})}))}},function(t,n,e){"use strict";e.r(n);var r=e(3);e.d(n,"arc",(function(){return r.default}));var i=e(8);e.d(n,"area",(function(){return i.default}));var u=e(10);e.d(n,"line",(function(){return u.default}));var o=e(12);e.d(n,"pie",(function(){return o.default}));var a=e(15);e.d(n,"areaRadial",(function(){return a.default})),e.d(n,"radialArea",(function(){return a.default}));var c=e(17);e.d(n,"lineRadial",(function(){return c.default})),e.d(n,"radialLine",(function(){return c.default}));var f=e(18);e.d(n,"pointRadial",(function(){return f.default}));var s=e(19);e.d(n,"linkHorizontal",(function(){return s.linkHorizontal})),e.d(n,"linkVertical",(function(){return s.linkVertical})),e.d(n,"linkRadial",(function(){return s.linkRadial}));var l=e(21);e.d(n,"symbol",(function(){return l.default})),e.d(n,"symbols",(function(){return l.symbols}));var h=e(22);e.d(n,"symbolCircle",(function(){return h.default}));var d=e(23);e.d(n,"symbolCross",(function(){return d.default}));var p=e(24);e.d(n,"symbolDiamond",(function(){return p.default}));var v=e(26);e.d(n,"symbolSquare",(function(){return v.default}));var y=e(25);e.d(n,"symbolStar",(function(){return y.default}));var g=e(27);e.d(n,"symbolTriangle",(function(){return g.default}));var b=e(28);e.d(n,"symbolWye",(function(){return b.default}));var _=e(29);e.d(n,"curveBasisClosed",(function(){return _.default}));var m=e(32);e.d(n,"curveBasisOpen",(function(){return m.default}));var x=e(31);e.d(n,"curveBasis",(function(){return x.default}));var w=e(33);e.d(n,"curveBundle",(function(){return w.default}));var j=e(34);e.d(n,"curveCardinalClosed",(function(){return j.default}));var O=e(36);e.d(n,"curveCardinalOpen",(function(){return O.default}));var M=e(35);e.d(n,"curveCardinal",(function(){return M.default}));var k=e(37);e.d(n,"curveCatmullRomClosed",(function(){return k.default}));var S=e(39);e.d(n,"curveCatmullRomOpen",(function(){return S.default}));var A=e(38);e.d(n,"curveCatmullRom",(function(){return A.default}));var T=e(40);e.d(n,"curveLinearClosed",(function(){return T.default}));var N=e(9);e.d(n,"curveLinear",(function(){return N.default}));var C=e(41);e.d(n,"curveMonotoneX",(function(){return C.monotoneX})),e.d(n,"curveMonotoneY",(function(){return C.monotoneY}));var P=e(42);e.d(n,"curveNatural",(function(){return P.default}));var E=e(43);e.d(n,"curveStep",(function(){return E.default})),e.d(n,"curveStepAfter",(function(){return E.stepAfter})),e.d(n,"curveStepBefore",(function(){return E.stepBefore}));var D=e(44);e.d(n,"stack",(function(){return D.default}));var R=e(47);e.d(n,"stackOffsetExpand",(function(){return R.default}));var L=e(48);e.d(n,"stackOffsetDiverging",(function(){return L.default}));var F=e(45);e.d(n,"stackOffsetNone",(function(){return F.default}));var q=e(49);e.d(n,"stackOffsetSilhouette",(function(){return q.default}));var U=e(50);e.d(n,"stackOffsetWiggle",(function(){return U.default}));var I=e(51);e.d(n,"stackOrderAppearance",(function(){return I.default}));var H=e(52);e.d(n,"stackOrderAscending",(function(){return H.default}));var z=e(53);e.d(n,"stackOrderDescending",(function(){return z.default}));var Y=e(54);e.d(n,"stackOrderInsideOut",(function(){return Y.default}));var B=e(46);e.d(n,"stackOrderNone",(function(){return B.default}));var V=e(55);e.d(n,"stackOrderReverse",(function(){return V.default}))},function(t,n,e){"use strict";e.r(n);var r=e(4),i=e(6),u=e(7);function o(t){return t.innerRadius}function a(t){return t.outerRadius}function c(t){return t.startAngle}function f(t){return t.endAngle}function s(t){return t&&t.padAngle}function l(t,n,e,r,i,o,a,c){var f=e-t,s=r-n,l=a-i,h=c-o,d=h*f-l*s;if(!(d*d<u.epsilon))return[t+(d=(l*(n-o)-h*(t-i))/d)*f,n+d*s]}function h(t,n,e,r,i,o,a){var c=t-e,f=n-r,s=(a?o:-o)/Object(u.sqrt)(c*c+f*f),l=s*f,h=-s*c,d=t+l,p=n+h,v=e+l,y=r+h,g=(d+v)/2,b=(p+y)/2,_=v-d,m=y-p,x=_*_+m*m,w=i-o,j=d*y-v*p,O=(m<0?-1:1)*Object(u.sqrt)(Object(u.max)(0,w*w*x-j*j)),M=(j*m-_*O)/x,k=(-j*_-m*O)/x,S=(j*m+_*O)/x,A=(-j*_+m*O)/x,T=M-g,N=k-b,C=S-g,P=A-b;return T*T+N*N>C*C+P*P&&(M=S,k=A),{cx:M,cy:k,x01:-l,y01:-h,x11:M*(i/w-1),y11:k*(i/w-1)}}n.default=function(){var t=o,n=a,e=Object(i.default)(0),d=null,p=c,v=f,y=s,g=null;function b(){var i,o,a=+t.apply(this,arguments),c=+n.apply(this,arguments),f=p.apply(this,arguments)-u.halfPi,s=v.apply(this,arguments)-u.halfPi,b=Object(u.abs)(s-f),_=s>f;if(g||(g=i=Object(r.path)()),c<a&&(o=c,c=a,a=o),c>u.epsilon)if(b>u.tau-u.epsilon)g.moveTo(c*Object(u.cos)(f),c*Object(u.sin)(f)),g.arc(0,0,c,f,s,!_),a>u.epsilon&&(g.moveTo(a*Object(u.cos)(s),a*Object(u.sin)(s)),g.arc(0,0,a,s,f,_));else{var m,x,w=f,j=s,O=f,M=s,k=b,S=b,A=y.apply(this,arguments)/2,T=A>u.epsilon&&(d?+d.apply(this,arguments):Object(u.sqrt)(a*a+c*c)),N=Object(u.min)(Object(u.abs)(c-a)/2,+e.apply(this,arguments)),C=N,P=N;if(T>u.epsilon){var E=Object(u.asin)(T/a*Object(u.sin)(A)),D=Object(u.asin)(T/c*Object(u.sin)(A));(k-=2*E)>u.epsilon?(O+=E*=_?1:-1,M-=E):(k=0,O=M=(f+s)/2),(S-=2*D)>u.epsilon?(w+=D*=_?1:-1,j-=D):(S=0,w=j=(f+s)/2)}var R=c*Object(u.cos)(w),L=c*Object(u.sin)(w),F=a*Object(u.cos)(M),q=a*Object(u.sin)(M);if(N>u.epsilon){var U,I=c*Object(u.cos)(j),H=c*Object(u.sin)(j),z=a*Object(u.cos)(O),Y=a*Object(u.sin)(O);if(b<u.pi&&(U=l(R,L,z,Y,I,H,F,q))){var B=R-U[0],V=L-U[1],W=I-U[0],$=H-U[1],X=1/Object(u.sin)(Object(u.acos)((B*W+V*$)/(Object(u.sqrt)(B*B+V*V)*Object(u.sqrt)(W*W+$*$)))/2),G=Object(u.sqrt)(U[0]*U[0]+U[1]*U[1]);C=Object(u.min)(N,(a-G)/(X-1)),P=Object(u.min)(N,(c-G)/(X+1))}}S>u.epsilon?P>u.epsilon?(m=h(z,Y,R,L,c,P,_),x=h(I,H,F,q,c,P,_),g.moveTo(m.cx+m.x01,m.cy+m.y01),P<N?g.arc(m.cx,m.cy,P,Object(u.atan2)(m.y01,m.x01),Object(u.atan2)(x.y01,x.x01),!_):(g.arc(m.cx,m.cy,P,Object(u.atan2)(m.y01,m.x01),Object(u.atan2)(m.y11,m.x11),!_),g.arc(0,0,c,Object(u.atan2)(m.cy+m.y11,m.cx+m.x11),Object(u.atan2)(x.cy+x.y11,x.cx+x.x11),!_),g.arc(x.cx,x.cy,P,Object(u.atan2)(x.y11,x.x11),Object(u.atan2)(x.y01,x.x01),!_))):(g.moveTo(R,L),g.arc(0,0,c,w,j,!_)):g.moveTo(R,L),a>u.epsilon&&k>u.epsilon?C>u.epsilon?(m=h(F,q,I,H,a,-C,_),x=h(R,L,z,Y,a,-C,_),g.lineTo(m.cx+m.x01,m.cy+m.y01),C<N?g.arc(m.cx,m.cy,C,Object(u.atan2)(m.y01,m.x01),Object(u.atan2)(x.y01,x.x01),!_):(g.arc(m.cx,m.cy,C,Object(u.atan2)(m.y01,m.x01),Object(u.atan2)(m.y11,m.x11),!_),g.arc(0,0,a,Object(u.atan2)(m.cy+m.y11,m.cx+m.x11),Object(u.atan2)(x.cy+x.y11,x.cx+x.x11),_),g.arc(x.cx,x.cy,C,Object(u.atan2)(x.y11,x.x11),Object(u.atan2)(x.y01,x.x01),!_))):g.arc(0,0,a,M,O,_):g.lineTo(F,q)}else g.moveTo(0,0);if(g.closePath(),i)return g=null,i+""||null}return b.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+p.apply(this,arguments)+ +v.apply(this,arguments))/2-u.pi/2;return[Object(u.cos)(r)*e,Object(u.sin)(r)*e]},b.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:Object(i.default)(+n),b):t},b.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Object(i.default)(+t),b):n},b.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Object(i.default)(+t),b):e},b.padRadius=function(t){return arguments.length?(d=null==t?null:"function"==typeof t?t:Object(i.default)(+t),b):d},b.startAngle=function(t){return arguments.length?(p="function"==typeof t?t:Object(i.default)(+t),b):p},b.endAngle=function(t){return arguments.length?(v="function"==typeof t?t:Object(i.default)(+t),b):v},b.padAngle=function(t){return arguments.length?(y="function"==typeof t?t:Object(i.default)(+t),b):y},b.context=function(t){return arguments.length?(g=null==t?null:t,b):g},b}},function(t,n,e){"use strict";e.r(n);var r=e(5);e.d(n,"path",(function(){return r.default}))},function(t,n,e){"use strict";e.r(n);var r=Math.PI,i=2*r,u=i-1e-6;function o(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function a(){return new o}o.prototype=a.prototype={constructor:o,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,u){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+u)},arcTo:function(t,n,e,i,u){t=+t,n=+n,e=+e,i=+i,u=+u;var o=this._x1,a=this._y1,c=e-t,f=i-n,s=o-t,l=a-n,h=s*s+l*l;if(u<0)throw new Error("negative radius: "+u);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(h>1e-6)if(Math.abs(l*c-f*s)>1e-6&&u){var d=e-o,p=i-a,v=c*c+f*f,y=d*d+p*p,g=Math.sqrt(v),b=Math.sqrt(h),_=u*Math.tan((r-Math.acos((v+h-y)/(2*g*b)))/2),m=_/b,x=_/g;Math.abs(m-1)>1e-6&&(this._+="L"+(t+m*s)+","+(n+m*l)),this._+="A"+u+","+u+",0,0,"+ +(l*d>s*p)+","+(this._x1=t+x*c)+","+(this._y1=n+x*f)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,o,a,c){t=+t,n=+n,c=!!c;var f=(e=+e)*Math.cos(o),s=e*Math.sin(o),l=t+f,h=n+s,d=1^c,p=c?o-a:a-o;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+h:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+l+","+h),e&&(p<0&&(p=p%i+i),p>u?this._+="A"+e+","+e+",0,1,"+d+","+(t-f)+","+(n-s)+"A"+e+","+e+",0,1,"+d+","+(this._x1=l)+","+(this._y1=h):p>1e-6&&(this._+="A"+e+","+e+",0,"+ +(p>=r)+","+d+","+(this._x1=t+e*Math.cos(a))+","+(this._y1=n+e*Math.sin(a))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}},n.default=a},function(t,n,e){"use strict";e.r(n),n.default=function(t){return function(){return t}}},function(t,n,e){"use strict";e.r(n),e.d(n,"abs",(function(){return r})),e.d(n,"atan2",(function(){return i})),e.d(n,"cos",(function(){return u})),e.d(n,"max",(function(){return o})),e.d(n,"min",(function(){return a})),e.d(n,"sin",(function(){return c})),e.d(n,"sqrt",(function(){return f})),e.d(n,"epsilon",(function(){return s})),e.d(n,"pi",(function(){return l})),e.d(n,"halfPi",(function(){return h})),e.d(n,"tau",(function(){return d})),e.d(n,"acos",(function(){return p})),e.d(n,"asin",(function(){return v}));var r=Math.abs,i=Math.atan2,u=Math.cos,o=Math.max,a=Math.min,c=Math.sin,f=Math.sqrt,s=1e-12,l=Math.PI,h=l/2,d=2*l;function p(t){return t>1?0:t<-1?l:Math.acos(t)}function v(t){return t>=1?h:t<=-1?-h:Math.asin(t)}},function(t,n,e){"use strict";e.r(n);var r=e(4),i=e(6),u=e(9),o=e(10),a=e(11);n.default=function(){var t=a.x,n=null,e=Object(i.default)(0),c=a.y,f=Object(i.default)(!0),s=null,l=u.default,h=null;function d(i){var u,o,a,d,p,v=i.length,y=!1,g=new Array(v),b=new Array(v);for(null==s&&(h=l(p=Object(r.path)())),u=0;u<=v;++u){if(!(u<v&&f(d=i[u],u,i))===y)if(y=!y)o=u,h.areaStart(),h.lineStart();else{for(h.lineEnd(),h.lineStart(),a=u-1;a>=o;--a)h.point(g[a],b[a]);h.lineEnd(),h.areaEnd()}y&&(g[u]=+t(d,u,i),b[u]=+e(d,u,i),h.point(n?+n(d,u,i):g[u],c?+c(d,u,i):b[u]))}if(p)return h=null,p+""||null}function p(){return Object(o.default)().defined(f).curve(l).context(s)}return d.x=function(e){return arguments.length?(t="function"==typeof e?e:Object(i.default)(+e),n=null,d):t},d.x0=function(n){return arguments.length?(t="function"==typeof n?n:Object(i.default)(+n),d):t},d.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Object(i.default)(+t),d):n},d.y=function(t){return arguments.length?(e="function"==typeof t?t:Object(i.default)(+t),c=null,d):e},d.y0=function(t){return arguments.length?(e="function"==typeof t?t:Object(i.default)(+t),d):e},d.y1=function(t){return arguments.length?(c=null==t?null:"function"==typeof t?t:Object(i.default)(+t),d):c},d.lineX0=d.lineY0=function(){return p().x(t).y(e)},d.lineY1=function(){return p().x(t).y(c)},d.lineX1=function(){return p().x(n).y(e)},d.defined=function(t){return arguments.length?(f="function"==typeof t?t:Object(i.default)(!!t),d):f},d.curve=function(t){return arguments.length?(l=t,null!=s&&(h=l(s)),d):l},d.context=function(t){return arguments.length?(null==t?s=h=null:h=l(s=t),d):s},d}},function(t,n,e){"use strict";function r(t){this._context=t}e.r(n),r.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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}},n.default=function(t){return new r(t)}},function(t,n,e){"use strict";e.r(n);var r=e(4),i=e(6),u=e(9),o=e(11);n.default=function(){var t=o.x,n=o.y,e=Object(i.default)(!0),a=null,c=u.default,f=null;function s(i){var u,o,s,l=i.length,h=!1;for(null==a&&(f=c(s=Object(r.path)())),u=0;u<=l;++u)!(u<l&&e(o=i[u],u,i))===h&&((h=!h)?f.lineStart():f.lineEnd()),h&&f.point(+t(o,u,i),+n(o,u,i));if(s)return f=null,s+""||null}return s.x=function(n){return arguments.length?(t="function"==typeof n?n:Object(i.default)(+n),s):t},s.y=function(t){return arguments.length?(n="function"==typeof t?t:Object(i.default)(+t),s):n},s.defined=function(t){return arguments.length?(e="function"==typeof t?t:Object(i.default)(!!t),s):e},s.curve=function(t){return arguments.length?(c=t,null!=a&&(f=c(a)),s):c},s.context=function(t){return arguments.length?(null==t?a=f=null:f=c(a=t),s):a},s}},function(t,n,e){"use strict";function r(t){return t[0]}function i(t){return t[1]}e.r(n),e.d(n,"x",(function(){return r})),e.d(n,"y",(function(){return i}))},function(t,n,e){"use strict";e.r(n);var r=e(6),i=e(13),u=e(14),o=e(7);n.default=function(){var t=u.default,n=i.default,e=null,a=Object(r.default)(0),c=Object(r.default)(o.tau),f=Object(r.default)(0);function s(r){var i,u,s,l,h,d=r.length,p=0,v=new Array(d),y=new Array(d),g=+a.apply(this,arguments),b=Math.min(o.tau,Math.max(-o.tau,c.apply(this,arguments)-g)),_=Math.min(Math.abs(b)/d,f.apply(this,arguments)),m=_*(b<0?-1:1);for(i=0;i<d;++i)(h=y[v[i]=i]=+t(r[i],i,r))>0&&(p+=h);for(null!=n?v.sort((function(t,e){return n(y[t],y[e])})):null!=e&&v.sort((function(t,n){return e(r[t],r[n])})),i=0,s=p?(b-d*m)/p:0;i<d;++i,g=l)u=v[i],l=g+((h=y[u])>0?h*s:0)+m,y[u]={data:r[u],index:i,value:h,startAngle:g,endAngle:l,padAngle:_};return y}return s.value=function(n){return arguments.length?(t="function"==typeof n?n:Object(r.default)(+n),s):t},s.sortValues=function(t){return arguments.length?(n=t,e=null,s):n},s.sort=function(t){return arguments.length?(e=t,n=null,s):e},s.startAngle=function(t){return arguments.length?(a="function"==typeof t?t:Object(r.default)(+t),s):a},s.endAngle=function(t){return arguments.length?(c="function"==typeof t?t:Object(r.default)(+t),s):c},s.padAngle=function(t){return arguments.length?(f="function"==typeof t?t:Object(r.default)(+t),s):f},s}},function(t,n,e){"use strict";e.r(n),n.default=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}},function(t,n,e){"use strict";e.r(n),n.default=function(t){return t}},function(t,n,e){"use strict";e.r(n);var r=e(16),i=e(8),u=e(17);n.default=function(){var t=Object(i.default)().curve(r.curveRadialLinear),n=t.curve,e=t.lineX0,o=t.lineX1,a=t.lineY0,c=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 Object(u.lineRadial)(e())},delete t.lineX0,t.lineEndAngle=function(){return Object(u.lineRadial)(o())},delete t.lineX1,t.lineInnerRadius=function(){return Object(u.lineRadial)(a())},delete t.lineY0,t.lineOuterRadius=function(){return Object(u.lineRadial)(c())},delete t.lineY1,t.curve=function(t){return arguments.length?n(Object(r.default)(t)):n()._curve},t}},function(t,n,e){"use strict";e.r(n),e.d(n,"curveRadialLinear",(function(){return r})),e.d(n,"default",(function(){return u}));var r=u(e(9).default);function i(t){this._curve=t}function u(t){function n(n){return new i(t(n))}return n._curve=t,n}i.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}}},function(t,n,e){"use strict";e.r(n),e.d(n,"lineRadial",(function(){return u}));var r=e(16),i=e(10);function u(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(Object(r.default)(t)):n()._curve},t}n.default=function(){return u(Object(i.default)().curve(r.curveRadialLinear))}},function(t,n,e){"use strict";e.r(n),n.default=function(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}},function(t,n,e){"use strict";e.r(n),e.d(n,"linkHorizontal",(function(){return p})),e.d(n,"linkVertical",(function(){return v})),e.d(n,"linkRadial",(function(){return y}));var r=e(4),i=e(20),u=e(6),o=e(11),a=e(18);function c(t){return t.source}function f(t){return t.target}function s(t){var n=c,e=f,a=o.x,s=o.y,l=null;function h(){var u,o=i.slice.call(arguments),c=n.apply(this,o),f=e.apply(this,o);if(l||(l=u=Object(r.path)()),t(l,+a.apply(this,(o[0]=c,o)),+s.apply(this,o),+a.apply(this,(o[0]=f,o)),+s.apply(this,o)),u)return l=null,u+""||null}return h.source=function(t){return arguments.length?(n=t,h):n},h.target=function(t){return arguments.length?(e=t,h):e},h.x=function(t){return arguments.length?(a="function"==typeof t?t:Object(u.default)(+t),h):a},h.y=function(t){return arguments.length?(s="function"==typeof t?t:Object(u.default)(+t),h):s},h.context=function(t){return arguments.length?(l=null==t?null:t,h):l},h}function l(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function h(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function d(t,n,e,r,i){var u=Object(a.default)(n,e),o=Object(a.default)(n,e=(e+i)/2),c=Object(a.default)(r,e),f=Object(a.default)(r,i);t.moveTo(u[0],u[1]),t.bezierCurveTo(o[0],o[1],c[0],c[1],f[0],f[1])}function p(){return s(l)}function v(){return s(h)}function y(){var t=s(d);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}},function(t,n,e){"use strict";e.r(n),e.d(n,"slice",(function(){return r}));var r=Array.prototype.slice},function(t,n,e){"use strict";e.r(n),e.d(n,"symbols",(function(){return h}));var r=e(4),i=e(22),u=e(23),o=e(24),a=e(25),c=e(26),f=e(27),s=e(28),l=e(6),h=[i.default,u.default,o.default,c.default,a.default,f.default,s.default];n.default=function(){var t=Object(l.default)(i.default),n=Object(l.default)(64),e=null;function u(){var i;if(e||(e=i=Object(r.path)()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),i)return e=null,i+""||null}return u.type=function(n){return arguments.length?(t="function"==typeof n?n:Object(l.default)(n),u):t},u.size=function(t){return arguments.length?(n="function"==typeof t?t:Object(l.default)(+t),u):n},u.context=function(t){return arguments.length?(e=null==t?null:t,u):e},u}},function(t,n,e){"use strict";e.r(n);var r=e(7);n.default={draw:function(t,n){var e=Math.sqrt(n/r.pi);t.moveTo(e,0),t.arc(0,0,e,0,r.tau)}}},function(t,n,e){"use strict";e.r(n),n.default={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}}},function(t,n,e){"use strict";e.r(n);var r=Math.sqrt(1/3),i=2*r;n.default={draw:function(t,n){var e=Math.sqrt(n/i),u=e*r;t.moveTo(0,-e),t.lineTo(u,0),t.lineTo(0,e),t.lineTo(-u,0),t.closePath()}}},function(t,n,e){"use strict";e.r(n);var r=e(7),i=Math.sin(r.pi/10)/Math.sin(7*r.pi/10),u=Math.sin(r.tau/10)*i,o=-Math.cos(r.tau/10)*i;n.default={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),i=u*e,a=o*e;t.moveTo(0,-e),t.lineTo(i,a);for(var c=1;c<5;++c){var f=r.tau*c/5,s=Math.cos(f),l=Math.sin(f);t.lineTo(l*e,-s*e),t.lineTo(s*i-l*a,l*i+s*a)}t.closePath()}}},function(t,n,e){"use strict";e.r(n),n.default={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}}},function(t,n,e){"use strict";e.r(n);var r=Math.sqrt(3);n.default={draw:function(t,n){var e=-Math.sqrt(n/(3*r));t.moveTo(0,2*e),t.lineTo(-r*e,-e),t.lineTo(r*e,-e),t.closePath()}}},function(t,n,e){"use strict";e.r(n);var r=-.5,i=Math.sqrt(3)/2,u=1/Math.sqrt(12),o=3*(u/2+1);n.default={draw:function(t,n){var e=Math.sqrt(n/o),a=e/2,c=e*u,f=a,s=e*u+e,l=-f,h=s;t.moveTo(a,c),t.lineTo(f,s),t.lineTo(l,h),t.lineTo(r*a-i*c,i*a+r*c),t.lineTo(r*f-i*s,i*f+r*s),t.lineTo(r*l-i*h,i*l+r*h),t.lineTo(r*a+i*c,r*c-i*a),t.lineTo(r*f+i*s,r*s-i*f),t.lineTo(r*l+i*h,r*h-i*l),t.closePath()}}},function(t,n,e){"use strict";e.r(n);var r=e(30),i=e(31);function u(t){this._context=t}u.prototype={areaStart:r.default,areaEnd:r.default,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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:Object(i.point)(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},n.default=function(t){return new u(t)}},function(t,n,e){"use strict";e.r(n),n.default=function(){}},function(t,n,e){"use strict";function r(t,n,e){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+n)/6,(t._y0+4*t._y1+e)/6)}function i(t){this._context=t}e.r(n),e.d(n,"point",(function(){return r})),e.d(n,"Basis",(function(){return i})),i.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:r(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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);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:r(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},n.default=function(t){return new i(t)}},function(t,n,e){"use strict";e.r(n);var r=e(31);function i(t){this._context=t}i.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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break;case 3:this._point=4;default:Object(r.point)(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},n.default=function(t){return new i(t)}},function(t,n,e){"use strict";e.r(n);var r=e(31);function i(t,n){this._basis=new r.Basis(t),this._beta=n}i.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],u=n[0],o=t[e]-i,a=n[e]-u,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*o),this._beta*n[c]+(1-this._beta)*(u+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}},n.default=function t(n){function e(t){return 1===n?new r.Basis(t):new i(t,n)}return e.beta=function(n){return t(+n)},e}(.85)},function(t,n,e){"use strict";e.r(n),e.d(n,"CardinalClosed",(function(){return u}));var r=e(30),i=e(35);function u(t,n){this._context=t,this._k=(1-n)/6}u.prototype={areaStart:r.default,areaEnd:r.default,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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Object(i.point)(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},n.default=function t(n){function e(t){return new u(t,n)}return e.tension=function(n){return t(+n)},e}(0)},function(t,n,e){"use strict";function r(t,n,e){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-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function i(t,n){this._context=t,this._k=(1-n)/6}e.r(n),e.d(n,"point",(function(){return r})),e.d(n,"Cardinal",(function(){return i})),i.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:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:r(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},n.default=function t(n){function e(t){return new i(t,n)}return e.tension=function(n){return t(+n)},e}(0)},function(t,n,e){"use strict";e.r(n),e.d(n,"CardinalOpen",(function(){return i}));var r=e(35);function i(t,n){this._context=t,this._k=(1-n)/6}i.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,n){switch(t=+t,n=+n,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:Object(r.point)(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},n.default=function t(n){function e(t){return new i(t,n)}return e.tension=function(n){return t(+n)},e}(0)},function(t,n,e){"use strict";e.r(n);var r=e(34),i=e(30),u=e(38);function o(t,n){this._context=t,this._alpha=n}o.prototype={areaStart:i.default,areaEnd:i.default,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,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Object(u.point)(this,t,n)}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=n}},n.default=function t(n){function e(t){return n?new o(t,n):new r.CardinalClosed(t,0)}return e.alpha=function(n){return t(+n)},e}(.5)},function(t,n,e){"use strict";e.r(n),e.d(n,"point",(function(){return u}));var r=e(7),i=e(35);function u(t,n,e){var i=t._x1,u=t._y1,o=t._x2,a=t._y2;if(t._l01_a>r.epsilon){var c=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,f=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*c-t._x0*t._l12_2a+t._x2*t._l01_2a)/f,u=(u*c-t._y0*t._l12_2a+t._y2*t._l01_2a)/f}if(t._l23_a>r.epsilon){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*s+t._x1*t._l23_2a-n*t._l12_2a)/l,a=(a*s+t._y1*t._l23_2a-e*t._l12_2a)/l}t._context.bezierCurveTo(i,u,o,a,t._x2,t._y2)}function o(t,n){this._context=t,this._alpha=n}o.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,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:u(this,t,n)}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=n}},n.default=function t(n){function e(t){return n?new o(t,n):new i.Cardinal(t,0)}return e.alpha=function(n){return t(+n)},e}(.5)},function(t,n,e){"use strict";e.r(n);var r=e(36),i=e(38);function u(t,n){this._context=t,this._alpha=n}u.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,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,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:Object(i.point)(this,t,n)}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=n}},n.default=function t(n){function e(t){return n?new u(t,n):new r.CardinalOpen(t,0)}return e.alpha=function(n){return t(+n)},e}(.5)},function(t,n,e){"use strict";e.r(n);var r=e(30);function i(t){this._context=t}i.prototype={areaStart:r.default,areaEnd:r.default,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}},n.default=function(t){return new i(t)}},function(t,n,e){"use strict";function r(t){return t<0?-1:1}function i(t,n,e){var i=t._x1-t._x0,u=n-t._x1,o=(t._y1-t._y0)/(i||u<0&&-0),a=(e-t._y1)/(u||i<0&&-0),c=(o*u+a*i)/(i+u);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(c))||0}function u(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function o(t,n,e){var r=t._x0,i=t._y0,u=t._x1,o=t._y1,a=(u-r)/3;t._context.bezierCurveTo(r+a,i+a*n,u-a,o-a*e,u,o)}function a(t){this._context=t}function c(t){this._context=new f(t)}function f(t){this._context=t}function s(t){return new a(t)}function l(t){return new c(t)}e.r(n),e.d(n,"monotoneX",(function(){return s})),e.d(n,"monotoneY",(function(){return l})),a.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:o(this,this._t0,u(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,o(this,u(this,e=i(this,t,n)),e);break;default:o(this,this._t0,e=i(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(c.prototype=Object.create(a.prototype)).point=function(t,n){a.prototype.point.call(this,n,t)},f.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,u){this._context.bezierCurveTo(n,t,r,e,u,i)}}},function(t,n,e){"use strict";function r(t){this._context=t}function i(t){var n,e,r=t.length-1,i=new Array(r),u=new Array(r),o=new Array(r);for(i[0]=0,u[0]=2,o[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,u[n]=4,o[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,u[r-1]=7,o[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/u[n-1],u[n]-=e,o[n]-=e*o[n-1];for(i[r-1]=o[r-1]/u[r-1],n=r-2;n>=0;--n)i[n]=(o[n]-i[n+1])/u[n];for(u[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)u[n]=2*t[n+1]-i[n+1];return[i,u]}e.r(n),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=i(t),u=i(n),o=0,a=1;a<e;++o,++a)this._context.bezierCurveTo(r[0][o],u[0][o],r[1][o],u[1][o],t[a],n[a]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}},n.default=function(t){return new r(t)}},function(t,n,e){"use strict";function r(t,n){this._context=t,this._t=n}function i(t){return new r(t,0)}function u(t){return new r(t,1)}e.r(n),e.d(n,"stepBefore",(function(){return i})),e.d(n,"stepAfter",(function(){return u})),r.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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}},n.default=function(t){return new r(t,.5)}},function(t,n,e){"use strict";e.r(n);var r=e(20),i=e(6),u=e(45),o=e(46);function a(t,n){return t[n]}n.default=function(){var t=Object(i.default)([]),n=o.default,e=u.default,c=a;function f(r){var i,u,o=t.apply(this,arguments),a=r.length,f=o.length,s=new Array(f);for(i=0;i<f;++i){for(var l,h=o[i],d=s[i]=new Array(a),p=0;p<a;++p)d[p]=l=[0,+c(r[p],h,p,r)],l.data=r[p];d.key=h}for(i=0,u=n(s);i<f;++i)s[u[i]].index=i;return e(s,u),s}return f.keys=function(n){return arguments.length?(t="function"==typeof n?n:Object(i.default)(r.slice.call(n)),f):t},f.value=function(t){return arguments.length?(c="function"==typeof t?t:Object(i.default)(+t),f):c},f.order=function(t){return arguments.length?(n=null==t?o.default:"function"==typeof t?t:Object(i.default)(r.slice.call(t)),f):n},f.offset=function(t){return arguments.length?(e=null==t?u.default:t,f):e},f}},function(t,n,e){"use strict";e.r(n),n.default=function(t,n){if((i=t.length)>1)for(var e,r,i,u=1,o=t[n[0]],a=o.length;u<i;++u)for(r=o,o=t[n[u]],e=0;e<a;++e)o[e][1]+=o[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}},function(t,n,e){"use strict";e.r(n),n.default=function(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e}},function(t,n,e){"use strict";e.r(n);var r=e(45);n.default=function(t,n){if((i=t.length)>0){for(var e,i,u,o=0,a=t[0].length;o<a;++o){for(u=e=0;e<i;++e)u+=t[e][o][1]||0;if(u)for(e=0;e<i;++e)t[e][o][1]/=u}Object(r.default)(t,n)}}},function(t,n,e){"use strict";e.r(n),n.default=function(t,n){if((a=t.length)>0)for(var e,r,i,u,o,a,c=0,f=t[n[0]].length;c<f;++c)for(u=o=0,e=0;e<a;++e)(i=(r=t[n[e]][c])[1]-r[0])>0?(r[0]=u,r[1]=u+=i):i<0?(r[1]=o,r[0]=o+=i):(r[0]=0,r[1]=i)}},function(t,n,e){"use strict";e.r(n);var r=e(45);n.default=function(t,n){if((e=t.length)>0){for(var e,i=0,u=t[n[0]],o=u.length;i<o;++i){for(var a=0,c=0;a<e;++a)c+=t[a][i][1]||0;u[i][1]+=u[i][0]=-c/2}Object(r.default)(t,n)}}},function(t,n,e){"use strict";e.r(n);var r=e(45);n.default=function(t,n){if((u=t.length)>0&&(i=(e=t[n[0]]).length)>0){for(var e,i,u,o=0,a=1;a<i;++a){for(var c=0,f=0,s=0;c<u;++c){for(var l=t[n[c]],h=l[a][1]||0,d=(h-(l[a-1][1]||0))/2,p=0;p<c;++p){var v=t[n[p]];d+=(v[a][1]||0)-(v[a-1][1]||0)}f+=h,s+=d*h}e[a-1][1]+=e[a-1][0]=o,f&&(o-=s/f)}e[a-1][1]+=e[a-1][0]=o,Object(r.default)(t,n)}}},function(t,n,e){"use strict";e.r(n);var r=e(46);function i(t){for(var n,e=-1,r=0,i=t.length,u=-1/0;++e<i;)(n=+t[e][1])>u&&(u=n,r=e);return r}n.default=function(t){var n=t.map(i);return Object(r.default)(t).sort((function(t,e){return n[t]-n[e]}))}},function(t,n,e){"use strict";e.r(n),e.d(n,"sum",(function(){return i}));var r=e(46);function i(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}n.default=function(t){var n=t.map(i);return Object(r.default)(t).sort((function(t,e){return n[t]-n[e]}))}},function(t,n,e){"use strict";e.r(n);var r=e(52);n.default=function(t){return Object(r.default)(t).reverse()}},function(t,n,e){"use strict";e.r(n);var r=e(51),i=e(52);n.default=function(t){var n,e,u=t.length,o=t.map(i.sum),a=Object(r.default)(t),c=0,f=0,s=[],l=[];for(n=0;n<u;++n)e=a[n],c<f?(c+=o[e],s.push(e)):(f+=o[e],l.push(e));return l.reverse().concat(s)}},function(t,n,e){"use strict";e.r(n);var r=e(46);n.default=function(t){return Object(r.default)(t).reverse()}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return j}));var r=e(57),i=e(108),u=e.n(i),o=e(109),a=e.n(o),c=e(122),f=e(307),s=e(341),l=e(397),h=e(452),d=e(453),p=e(454);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function g(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function b(t,n){return(b=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function _(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=w(t);if(n){var i=w(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return m(this,e)}}function m(t,n){return!n||"object"!==v(n)&&"function"!=typeof n?x(t):n}function x(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var j=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&b(t,n)}(o,t);var n,e,i,u=_(o);function o(t){var n;if(y(this,o),(n=u.apply(this,arguments)).config=t,n.container=Object(r.select)(t.container),n.datasets=[],n.container.empty())throw new Error('Parent node "'.concat(t.container,'" not found.'));return n.update=a()(n.update.bind(x(n)),10),n.draw=a()(n.draw.bind(x(n)),10),n.drawData=a()(n.drawData.bind(x(n)),10),n.container.attr("class","chart"),n.svg=n.container.append("svg"),n.viewport=n.svg.append("g").attr("class","viewport"),n.data=n.viewport.append("g"),n.update(),n.sources=new f.default(x(n),t.sources),n.xAxis=new s.default(x(n),t.xAxis),n.yAxisLeft=new l.yAxisLeft(x(n),t.yAxisLeft),t.yAxisRight&&(n.yAxisRight=new l.yAxisRight(x(n),t.yAxisRight)),n.tooltip=new h.default(x(n),t.tooltip),n.frame=new d.default(x(n),t.frame),n.glass=new p.default(x(n),t.glass),n.emit("dimension"),n}return n=o,(e=[{key:"setConfig",value:function(t){for(var n in t)Object.assign(this.config[n],t[n]);this.emit("config")}},{key:"setDatasets",value:function(t){this.datasets=t,this.emit("datasets"),setTimeout(this.drawData,1e3)}},{key:"setSources",value:function(t){this.sources._sources=t,this.emit("sources")}},{key:"update",value:function(){var t=this.container.node(),n=t.offsetWidth,e=t.offsetHeight;if(this.width!==n||!isNaN(this.config.ratio)||this.height!==e){var r=this.config.padding;this.width=n,this.innerWidth=this.width-r.left-r.right,this.config.ratio?(this.innerHeight=this.innerWidth*this.config.ratio,this.height=this.innerHeight+r.top+r.bottom):(this.height=e,this.innerHeight=this.height-r.top-r.bottom),this.emit("dimension"),this.draw(),this.drawData()}}},{key:"draw",value:function(){this.svg.attr("width",this.width).attr("height",this.height);var t=this.config.padding,n=t.top,e=t.left;this.viewport.attr("transform","translate(".concat(e,", ").concat(n,")"))}},{key:"drawData",value:function(){var t=this;this.data.html(null),this.datasets.forEach((function(n){return t.data.call(c.default,t,n)}))}},{key:"destroy",value:function(){this.sources.destroy(),this.xAxis.destroy(),this.yAxisLeft.destroy(),this.yAxisRight&&this.yAxisRight.destroy(),this.tooltip.destroy(),this.frame.destroy(),this.glass.destroy(),this.data.remove(),this.viewport.remove(),this.svg.remove(),this.container.remove(),this.config.container=null}}])&&g(n.prototype,e),i&&g(n,i),o}(u.a)},function(t,n,e){"use strict";e.r(n);var r=e(58);e.d(n,"create",(function(){return r.default}));var i=e(59);e.d(n,"creator",(function(){return i.default}));var u=e(101);e.d(n,"local",(function(){return u.default}));var o=e(69);e.d(n,"matcher",(function(){return o.default}));var a=e(102);e.d(n,"mouse",(function(){return a.default}));var c=e(60);e.d(n,"namespace",(function(){return c.default}));var f=e(61);e.d(n,"namespaces",(function(){return f.default}));var s=e(104);e.d(n,"clientPoint",(function(){return s.default}));var l=e(62);e.d(n,"select",(function(){return l.default}));var h=e(105);e.d(n,"selectAll",(function(){return h.default}));var d=e(63);e.d(n,"selection",(function(){return d.default}));var p=e(65);e.d(n,"selector",(function(){return p.default}));var v=e(67);e.d(n,"selectorAll",(function(){return v.default}));var y=e(86);e.d(n,"style",(function(){return y.styleValue}));var g=e(106);e.d(n,"touch",(function(){return g.default}));var b=e(107);e.d(n,"touches",(function(){return b.default}));var _=e(87);e.d(n,"window",(function(){return _.default}));var m=e(99);e.d(n,"event",(function(){return m.event})),e.d(n,"customEvent",(function(){return m.customEvent}))},function(t,n,e){"use strict";e.r(n);var r=e(59),i=e(62);n.default=function(t){return Object(i.default)(Object(r.default)(t).call(document.documentElement))}},function(t,n,e){"use strict";e.r(n);var r=e(60),i=e(61);function u(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===i.xhtml&&n.documentElement.namespaceURI===i.xhtml?n.createElement(t):n.createElementNS(e,t)}}function o(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}n.default=function(t){var n=Object(r.default)(t);return(n.local?o:u)(n)}},function(t,n,e){"use strict";e.r(n);var r=e(61);n.default=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),r.default.hasOwnProperty(n)?{space:r.default[n],local:t}:t}},function(t,n,e){"use strict";e.r(n),e.d(n,"xhtml",(function(){return r}));var r="http://www.w3.org/1999/xhtml";n.default={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(t,n,e){"use strict";e.r(n);var r=e(63);n.default=function(t){return"string"==typeof t?new r.Selection([[document.querySelector(t)]],[document.documentElement]):new r.Selection([[t]],r.root)}},function(t,n,e){"use strict";e.r(n),e.d(n,"root",(function(){return D})),e.d(n,"Selection",(function(){return R}));var r=e(64),i=e(66),u=e(68),o=e(70),a=e(71),c=e(74),f=e(75),s=e(76),l=e(77),h=e(78),d=e(79),p=e(80),v=e(81),y=e(82),g=e(83),b=e(84),_=e(85),m=e(86),x=e(88),w=e(89),j=e(90),O=e(91),M=e(92),k=e(93),S=e(94),A=e(95),T=e(96),N=e(97),C=e(98),P=e(99),E=e(100),D=[null];function R(t,n){this._groups=t,this._parents=n}function L(){return new R([[document.documentElement]],D)}R.prototype=L.prototype={constructor:R,select:r.default,selectAll:i.default,filter:u.default,data:o.default,enter:a.default,exit:c.default,join:f.default,merge:s.default,order:l.default,sort:h.default,call:d.default,nodes:p.default,node:v.default,size:y.default,empty:g.default,each:b.default,attr:_.default,style:m.default,property:x.default,classed:w.default,text:j.default,html:O.default,raise:M.default,lower:k.default,append:S.default,insert:A.default,remove:T.default,clone:N.default,datum:C.default,on:P.default,dispatch:E.default},n.default=L},function(t,n,e){"use strict";e.r(n);var r=e(63),i=e(65);n.default=function(t){"function"!=typeof t&&(t=Object(i.default)(t));for(var n=this._groups,e=n.length,u=new Array(e),o=0;o<e;++o)for(var a,c,f=n[o],s=f.length,l=u[o]=new Array(s),h=0;h<s;++h)(a=f[h])&&(c=t.call(a,a.__data__,h,f))&&("__data__"in a&&(c.__data__=a.__data__),l[h]=c);return new r.Selection(u,this._parents)}},function(t,n,e){"use strict";function r(){}e.r(n),n.default=function(t){return null==t?r:function(){return this.querySelector(t)}}},function(t,n,e){"use strict";e.r(n);var r=e(63),i=e(67);n.default=function(t){"function"!=typeof t&&(t=Object(i.default)(t));for(var n=this._groups,e=n.length,u=[],o=[],a=0;a<e;++a)for(var c,f=n[a],s=f.length,l=0;l<s;++l)(c=f[l])&&(u.push(t.call(c,c.__data__,l,f)),o.push(c));return new r.Selection(u,o)}},function(t,n,e){"use strict";function r(){return[]}e.r(n),n.default=function(t){return null==t?r:function(){return this.querySelectorAll(t)}}},function(t,n,e){"use strict";e.r(n);var r=e(63),i=e(69);n.default=function(t){"function"!=typeof t&&(t=Object(i.default)(t));for(var n=this._groups,e=n.length,u=new Array(e),o=0;o<e;++o)for(var a,c=n[o],f=c.length,s=u[o]=[],l=0;l<f;++l)(a=c[l])&&t.call(a,a.__data__,l,c)&&s.push(a);return new r.Selection(u,this._parents)}},function(t,n,e){"use strict";e.r(n),n.default=function(t){return function(){return this.matches(t)}}},function(t,n,e){"use strict";e.r(n);var r=e(63),i=e(71),u=e(73);function o(t,n,e,r,u,o){for(var a,c=0,f=n.length,s=o.length;c<s;++c)(a=n[c])?(a.__data__=o[c],r[c]=a):e[c]=new i.EnterNode(t,o[c]);for(;c<f;++c)(a=n[c])&&(u[c]=a)}function a(t,n,e,r,u,o,a){var c,f,s,l={},h=n.length,d=o.length,p=new Array(h);for(c=0;c<h;++c)(f=n[c])&&(p[c]=s="$"+a.call(f,f.__data__,c,n),s in l?u[c]=f:l[s]=f);for(c=0;c<d;++c)(f=l[s="$"+a.call(t,o[c],c,o)])?(r[c]=f,f.__data__=o[c],l[s]=null):e[c]=new i.EnterNode(t,o[c]);for(c=0;c<h;++c)(f=n[c])&&l[p[c]]===f&&(u[c]=f)}n.default=function(t,n){if(!t)return g=new Array(this.size()),d=-1,this.each((function(t){g[++d]=t})),g;var e=n?a:o,i=this._parents,c=this._groups;"function"!=typeof t&&(t=Object(u.default)(t));for(var f=c.length,s=new Array(f),l=new Array(f),h=new Array(f),d=0;d<f;++d){var p=i[d],v=c[d],y=v.length,g=t.call(p,p&&p.__data__,d,i),b=g.length,_=l[d]=new Array(b),m=s[d]=new Array(b);e(p,v,_,m,h[d]=new Array(y),g,n);for(var x,w,j=0,O=0;j<b;++j)if(x=_[j]){for(j>=O&&(O=j+1);!(w=m[O])&&++O<b;);x._next=w||null}}return(s=new r.Selection(s,i))._enter=l,s._exit=h,s}},function(t,n,e){"use strict";e.r(n),e.d(n,"EnterNode",(function(){return u}));var r=e(72),i=e(63);function u(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}n.default=function(){return new i.Selection(this._enter||this._groups.map(r.default),this._parents)},u.prototype={constructor:u,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}}},function(t,n,e){"use strict";e.r(n),n.default=function(t){return new Array(t.length)}},function(t,n,e){"use strict";e.r(n),n.default=function(t){return function(){return t}}},function(t,n,e){"use strict";e.r(n);var r=e(72),i=e(63);n.default=function(){return new i.Selection(this._exit||this._groups.map(r.default),this._parents)}},function(t,n,e){"use strict";e.r(n),n.default=function(t,n,e){var r=this.enter(),i=this,u=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=n&&(i=n(i)),null==e?u.remove():e(u),r&&i?r.merge(i).order():i}},function(t,n,e){"use strict";e.r(n);var r=e(63);n.default=function(t){for(var n=this._groups,e=t._groups,i=n.length,u=e.length,o=Math.min(i,u),a=new Array(i),c=0;c<o;++c)for(var f,s=n[c],l=e[c],h=s.length,d=a[c]=new Array(h),p=0;p<h;++p)(f=s[p]||l[p])&&(d[p]=f);for(;c<i;++c)a[c]=n[c];return new r.Selection(a,this._parents)}},function(t,n,e){"use strict";e.r(n),n.default=function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],u=i.length-1,o=i[u];--u>=0;)(r=i[u])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this}},function(t,n,e){"use strict";e.r(n);var r=e(63);function i(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}n.default=function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=i);for(var e=this._groups,u=e.length,o=new Array(u),a=0;a<u;++a){for(var c,f=e[a],s=f.length,l=o[a]=new Array(s),h=0;h<s;++h)(c=f[h])&&(l[h]=c);l.sort(n)}return new r.Selection(o,this._parents).order()}},function(t,n,e){"use strict";e.r(n),n.default=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}},function(t,n,e){"use strict";e.r(n),n.default=function(){var t=new Array(this.size()),n=-1;return this.each((function(){t[++n]=this})),t}},function(t,n,e){"use strict";e.r(n),n.default=function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,u=r.length;i<u;++i){var o=r[i];if(o)return o}return null}},function(t,n,e){"use strict";e.r(n),n.default=function(){var t=0;return this.each((function(){++t})),t}},function(t,n,e){"use strict";e.r(n),n.default=function(){return!this.node()}},function(t,n,e){"use strict";e.r(n),n.default=function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,u=n[e],o=0,a=u.length;o<a;++o)(i=u[o])&&t.call(i,i.__data__,o,u);return this}},function(t,n,e){"use strict";e.r(n);var r=e(60);function i(t){return function(){this.removeAttribute(t)}}function u(t){return function(){this.removeAttributeNS(t.space,t.local)}}function o(t,n){return function(){this.setAttribute(t,n)}}function a(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function c(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function f(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}n.default=function(t,n){var e=Object(r.default)(t);if(arguments.length<2){var s=this.node();return e.local?s.getAttributeNS(e.space,e.local):s.getAttribute(e)}return this.each((null==n?e.local?u:i:"function"==typeof n?e.local?f:c:e.local?a:o)(e,n))}},function(t,n,e){"use strict";e.r(n),e.d(n,"styleValue",(function(){return a}));var r=e(87);function i(t){return function(){this.style.removeProperty(t)}}function u(t,n,e){return function(){this.style.setProperty(t,n,e)}}function o(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function a(t,n){return t.style.getPropertyValue(n)||Object(r.default)(t).getComputedStyle(t,null).getPropertyValue(n)}n.default=function(t,n,e){return arguments.length>1?this.each((null==n?i:"function"==typeof n?o:u)(t,n,null==e?"":e)):a(this.node(),t)}},function(t,n,e){"use strict";e.r(n),n.default=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,n,e){"use strict";function r(t){return function(){delete this[t]}}function i(t,n){return function(){this[t]=n}}function u(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}e.r(n),n.default=function(t,n){return arguments.length>1?this.each((null==n?r:"function"==typeof n?u:i)(t,n)):this.node()[t]}},function(t,n,e){"use strict";function r(t){return t.trim().split(/^|\s+/)}function i(t){return t.classList||new u(t)}function u(t){this._node=t,this._names=r(t.getAttribute("class")||"")}function o(t,n){for(var e=i(t),r=-1,u=n.length;++r<u;)e.add(n[r])}function a(t,n){for(var e=i(t),r=-1,u=n.length;++r<u;)e.remove(n[r])}function c(t){return function(){o(this,t)}}function f(t){return function(){a(this,t)}}function s(t,n){return function(){(n.apply(this,arguments)?o:a)(this,t)}}e.r(n),u.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}},n.default=function(t,n){var e=r(t+"");if(arguments.length<2){for(var u=i(this.node()),o=-1,a=e.length;++o<a;)if(!u.contains(e[o]))return!1;return!0}return this.each(("function"==typeof n?s:n?c:f)(e,n))}},function(t,n,e){"use strict";function r(){this.textContent=""}function i(t){return function(){this.textContent=t}}function u(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}e.r(n),n.default=function(t){return arguments.length?this.each(null==t?r:("function"==typeof t?u:i)(t)):this.node().textContent}},function(t,n,e){"use strict";function r(){this.innerHTML=""}function i(t){return function(){this.innerHTML=t}}function u(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}e.r(n),n.default=function(t){return arguments.length?this.each(null==t?r:("function"==typeof t?u:i)(t)):this.node().innerHTML}},function(t,n,e){"use strict";function r(){this.nextSibling&&this.parentNode.appendChild(this)}e.r(n),n.default=function(){return this.each(r)}},function(t,n,e){"use strict";function r(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}e.r(n),n.default=function(){return this.each(r)}},function(t,n,e){"use strict";e.r(n);var r=e(59);n.default=function(t){var n="function"==typeof t?t:Object(r.default)(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))}},function(t,n,e){"use strict";e.r(n);var r=e(59),i=e(65);function u(){return null}n.default=function(t,n){var e="function"==typeof t?t:Object(r.default)(t),o=null==n?u:"function"==typeof n?n:Object(i.default)(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),o.apply(this,arguments)||null)}))}},function(t,n,e){"use strict";function r(){var t=this.parentNode;t&&t.removeChild(this)}e.r(n),n.default=function(){return this.each(r)}},function(t,n,e){"use strict";function r(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function i(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}e.r(n),n.default=function(t){return this.select(t?i:r)}},function(t,n,e){"use strict";e.r(n),n.default=function(t){return arguments.length?this.property("__data__",t):this.node().__data__}},function(t,n,e){"use strict";e.r(n),e.d(n,"event",(function(){return i})),e.d(n,"customEvent",(function(){return s}));var r={},i=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(r={mouseenter:"mouseover",mouseleave:"mouseout"}));function u(t,n,e){return t=o(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function o(t,n,e){return function(r){var u=i;i=r;try{t.call(this,this.__data__,n,e)}finally{i=u}}}function a(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}function c(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,u=n.length;r<u;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function f(t,n,e){var i=r.hasOwnProperty(t.type)?u:o;return function(r,u,o){var a,c=this.__on,f=i(n,u,o);if(c)for(var s=0,l=c.length;s<l;++s)if((a=c[s]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=f,a.capture=e),void(a.value=n);this.addEventListener(t.type,f,e),a={type:t.type,name:t.name,value:n,listener:f,capture:e},c?c.push(a):this.__on=[a]}}function s(t,n,e,r){var u=i;t.sourceEvent=i,i=t;try{return n.apply(e,r)}finally{i=u}}n.default=function(t,n,e){var r,i,u=a(t+""),o=u.length;if(!(arguments.length<2)){for(s=n?f:c,null==e&&(e=!1),r=0;r<o;++r)this.each(s(u[r],n,e));return this}var s=this.node().__on;if(s)for(var l,h=0,d=s.length;h<d;++h)for(r=0,l=s[h];r<o;++r)if((i=u[r]).type===l.type&&i.name===l.name)return l.value}},function(t,n,e){"use strict";e.r(n);var r=e(87);function i(t,n,e){var i=Object(r.default)(t),u=i.CustomEvent;"function"==typeof u?u=new u(n,e):(u=i.document.createEvent("Event"),e?(u.initEvent(n,e.bubbles,e.cancelable),u.detail=e.detail):u.initEvent(n,!1,!1)),t.dispatchEvent(u)}function u(t,n){return function(){return i(this,t,n)}}function o(t,n){return function(){return i(this,t,n.apply(this,arguments))}}n.default=function(t,n){return this.each(("function"==typeof n?o:u)(t,n))}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return i}));var r=0;function i(){return new u}function u(){this._="@"+(++r).toString(36)}u.prototype=i.prototype={constructor:u,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}}},function(t,n,e){"use strict";e.r(n);var r=e(103),i=e(104);n.default=function(t){var n=Object(r.default)();return n.changedTouches&&(n=n.changedTouches[0]),Object(i.default)(t,n)}},function(t,n,e){"use strict";e.r(n);var r=e(99);n.default=function(){for(var t,n=r.event;t=n.sourceEvent;)n=t;return n}},function(t,n,e){"use strict";e.r(n),n.default=function(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=n.clientX,r.y=n.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop]}},function(t,n,e){"use strict";e.r(n);var r=e(63);n.default=function(t){return"string"==typeof t?new r.Selection([document.querySelectorAll(t)],[document.documentElement]):new r.Selection([null==t?[]:t],r.root)}},function(t,n,e){"use strict";e.r(n);var r=e(103),i=e(104);n.default=function(t,n,e){arguments.length<3&&(e=n,n=Object(r.default)().changedTouches);for(var u,o=0,a=n?n.length:0;o<a;++o)if((u=n[o]).identifier===e)return Object(i.default)(t,u);return null}},function(t,n,e){"use strict";e.r(n);var r=e(103),i=e(104);n.default=function(t,n){null==n&&(n=Object(r.default)().touches);for(var e=0,u=n?n.length:0,o=new Array(u);e<u;++e)o[e]=Object(i.default)(t,n[e]);return o}},function(t,n,e){"use strict";var r,i="object"==typeof Reflect?Reflect:null,u=i&&"function"==typeof i.apply?i.apply:function(t,n,e){return Function.prototype.apply.call(t,n,e)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function a(){a.init.call(this)}t.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var c=10;function f(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function s(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function l(t,n,e,r){var i,u,o,a;if(f(e),void 0===(u=t._events)?(u=t._events=Object.create(null),t._eventsCount=0):(void 0!==u.newListener&&(t.emit("newListener",n,e.listener?e.listener:e),u=t._events),o=u[n]),void 0===o)o=u[n]=e,++t._eventsCount;else if("function"==typeof o?o=u[n]=r?[e,o]:[o,e]:r?o.unshift(e):o.push(e),(i=s(t))>0&&o.length>i&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=n,c.count=o.length,a=c,console&&console.warn&&console.warn(a)}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(t,n,e){var r={fired:!1,wrapFn:void 0,target:t,type:n,listener:e},i=h.bind(r);return i.listener=e,r.wrapFn=i,i}function p(t,n,e){var r=t._events;if(void 0===r)return[];var i=r[n];return void 0===i?[]:"function"==typeof i?e?[i.listener||i]:[i]:e?function(t){for(var n=new Array(t.length),e=0;e<n.length;++e)n[e]=t[e].listener||t[e];return n}(i):y(i,i.length)}function v(t){var n=this._events;if(void 0!==n){var e=n[t];if("function"==typeof e)return 1;if(void 0!==e)return e.length}return 0}function y(t,n){for(var e=new Array(n),r=0;r<n;++r)e[r]=t[r];return e}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");c=t}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},a.prototype.getMaxListeners=function(){return s(this)},a.prototype.emit=function(t){for(var n=[],e=1;e<arguments.length;e++)n.push(arguments[e]);var r="error"===t,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var o;if(n.length>0&&(o=n[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var c=i[t];if(void 0===c)return!1;if("function"==typeof c)u(c,this,n);else{var f=c.length,s=y(c,f);for(e=0;e<f;++e)u(s[e],this,n)}return!0},a.prototype.addListener=function(t,n){return l(this,t,n,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(t,n){return l(this,t,n,!0)},a.prototype.once=function(t,n){return f(n),this.on(t,d(this,t,n)),this},a.prototype.prependOnceListener=function(t,n){return f(n),this.prependListener(t,d(this,t,n)),this},a.prototype.removeListener=function(t,n){var e,r,i,u,o;if(f(n),void 0===(r=this._events))return this;if(void 0===(e=r[t]))return this;if(e===n||e.listener===n)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,e.listener||n));else if("function"!=typeof e){for(i=-1,u=e.length-1;u>=0;u--)if(e[u]===n||e[u].listener===n){o=e[u].listener,i=u;break}if(i<0)return this;0===i?e.shift():function(t,n){for(;n+1<t.length;n++)t[n]=t[n+1];t.pop()}(e,i),1===e.length&&(r[t]=e[0]),void 0!==r.removeListener&&this.emit("removeListener",t,o||n)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(t){var n,e,r;if(void 0===(e=this._events))return this;if(void 0===e.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==e[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete e[t]),this;if(0===arguments.length){var i,u=Object.keys(e);for(r=0;r<u.length;++r)"removeListener"!==(i=u[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(n=e[t]))this.removeListener(t,n);else if(void 0!==n)for(r=n.length-1;r>=0;r--)this.removeListener(t,n[r]);return this},a.prototype.listeners=function(t){return p(this,t,!0)},a.prototype.rawListeners=function(t){return p(this,t,!1)},a.listenerCount=function(t,n){return"function"==typeof t.listenerCount?t.listenerCount(n):v.call(t,n)},a.prototype.listenerCount=v,a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(t,n,e){var r=e(110),i=e(111),u=e(115),o=Math.max,a=Math.min;t.exports=function(t,n,e){var c,f,s,l,h,d,p=0,v=!1,y=!1,g=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function b(n){var e=c,r=f;return c=f=void 0,p=n,l=t.apply(r,e)}function _(t){return p=t,h=setTimeout(x,n),v?b(t):l}function m(t){var e=t-d;return void 0===d||e>=n||e<0||y&&t-p>=s}function x(){var t=i();if(m(t))return w(t);h=setTimeout(x,function(t){var e=n-(t-d);return y?a(e,s-(t-p)):e}(t))}function w(t){return h=void 0,g&&c?b(t):(c=f=void 0,l)}function j(){var t=i(),e=m(t);if(c=arguments,f=this,d=t,e){if(void 0===h)return _(d);if(y)return clearTimeout(h),h=setTimeout(x,n),b(d)}return void 0===h&&(h=setTimeout(x,n)),l}return n=u(n)||0,r(e)&&(v=!!e.leading,s=(y="maxWait"in e)?o(u(e.maxWait)||0,n):s,g="trailing"in e?!!e.trailing:g),j.cancel=function(){void 0!==h&&clearTimeout(h),p=0,c=d=f=h=void 0},j.flush=function(){return void 0===h?l:w(i())},j}},function(t,n){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},function(t,n,e){var r=e(112);t.exports=function(){return r.Date.now()}},function(t,n,e){var r=e(113),i="object"==typeof self&&self&&self.Object===Object&&self,u=r||i||Function("return this")();t.exports=u},function(t,n,e){(function(n){var e="object"==typeof n&&n&&n.Object===Object&&n;t.exports=e}).call(this,e(114))},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){var r=e(110),i=e(116),u=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(r(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=r(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(u,"");var e=a.test(t);return e||c.test(t)?f(t.slice(2),e?2:8):o.test(t)?NaN:+t}},function(t,n,e){var r=e(117),i=e(121);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},function(t,n,e){var r=e(118),i=e(119),u=e(120),o=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?i(t):u(t)}},function(t,n,e){var r=e(112).Symbol;t.exports=r},function(t,n,e){var r=e(118),i=Object.prototype,u=i.hasOwnProperty,o=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var n=u.call(t,a),e=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=o.call(t);return r&&(n?t[a]=e:delete t[a]),i}},function(t,n){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},function(t,n){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return c}));var r=e(123),i=e.n(r),u=e(124),o=e(2),a=e(259);function c(t,n,e){var r=Object(a.getColorConverter)(e),c=n.yAxisRight&&e.unit===n.yAxisRight.unit?"yAxisRight":"yAxisLeft";switch(e.type){case"line":var f=Object(o.line)().defined((function(t){return null!==t.y})).x((function(t){return n.xAxis.scale(t.x)})).y((function(t){return n[c].scale(t.y)})).curve(o.curveCatmullRom.alpha(.5));t.selectAll(".dataset__line--".concat(e.key)).remove(),t.append("path").datum(e.values).attr("class","dataset__line dataset__line--".concat(e.key)).attr("clip-path","url(#clip--".concat(n.config.key,")")).attr("stroke",r(null)).attr("d",f);break;case"bars":var s=Object(u.scaleBand)().domain(e.values.map((function(t){return t.x}))).range(n.xAxis.range).padding(.1),l=t.selectAll(".dataset__bars--".concat(e.key)).data(e.values);l.enter().append("rect").attr("class","dataset__bars dataset__bars--".concat(e.key)).attr("clip-path","url(#clip--".concat(n.config.key,")")).attr("fill",(function(t){return r(t.y2-t.y1)})).attr("x",(function(t){return s(t.x)})).attr("y",(function(t){return n[c].scale(t.y2)})).attr("width",s.bandwidth()).attr("height",(function(t){return n.innerHeight-n[c].scale(t.y2-t.y1)})),l.exit().remove();break;case"polygon":var h=Object(o.area)().defined((function(t){return null!==t.y1&&null!==t.y2})).x((function(t){return n.xAxis.scale(t.x)})).y0((function(t){return n[c].scale(t.y1)})).y1((function(t){return n[c].scale(t.y2)})).curve(o.curveMonotoneX);t.selectAll(".dataset__polygon--".concat(e.key)).remove(),t.append("path").datum(e.values).attr("class","dataset__polygon dataset__polygon--".concat(e.key)).attr("clip-path","url(#clip--".concat(n.config.key,")")).attr("fill",r(null)).attr("d",h);break;case"static":var d=e.values[0];t.selectAll(".dataset__static--".concat(e.key)).remove();var p=t.append("g").attr("class","dataset__static dataset__static--".concat(e.key));d.hasOwnProperty("y")?(p.append("line").attr("class","dataset__static__line").attr("clip-path","url(#clip--".concat(n.config.key,")")).attr("stroke",r(null)).attr("x1",0).attr("x2",n.innerWidth).attr("y1",n[c].scale(d.y)).attr("y2",n[c].scale(d.y)+1),p.append("text").attr("class","dataset__static__label").attr("fill",r(null)).attr("x",10).attr("y",n[c].scale(d.y)-6).text(e.label)):(p.append("line").attr("class","dataset__static__line").attr("clip-path","url(#clip--".concat(n.config.key,")")).attr("stroke",r(null)).attr("x1",n.xAxis.scale(d.x)).attr("x2",n.xAxis.scale(d.x)+1).attr("y1",0).attr("y2",n.innerHeight),p.append("text").attr("class","dataset__static__label").attr("fill",r(null)).attr("x",0).attr("y",0).attr("transform","rotate(90) translate(5, -".concat(n.xAxis.scale(d.x)+8,")")).text(e.label));break;case"area":var v=e.values[0];t.selectAll(".dataset__area--".concat(e.key)).remove();var y=t.append("g").attr("class","dataset__area dataset__area--".concat(e.key));v.hasOwnProperty("x1")?(y.append("rect").attr("class","dataset__area__rect").attr("clip-path","url(#clip--".concat(n.config.key,")")).attr("fill",r(null)).attr("x",n.xAxis.scale(v.x1)).attr("y",0).attr("width",n.xAxis.scale(v.x2)-n.xAxis.scale(v.x1)).attr("height",n.innerHeight),y.append("text").attr("class","dataset__area__label").attr("fill",i()(r(null)).darken(1).css()).attr("x",0).attr("y",0).attr("transform","rotate(90) translate(5, -".concat(n.xAxis.scale(v.x1)+10,")")).text(e.label)):(y.append("rect").attr("class","dataset__area__rect").attr("clip-path","url(#clip--".concat(n.config.key,")")).attr("fill",r(null)).attr("x",0).attr("width",n.innerWidth).attr("y",n[c].scale(v.y1)).attr("height",n.innerHeight-n[c].scale(v.y2-v.y1)),y.append("text").attr("class","dataset__area__label").attr("fill",i()(r(null)).darken(1).css()).attr("x",10).attr("y",n.innerHeight-n[c].scale(v.y2)-6).text(e.label))}}},function(t,n,e){t.exports=function(){"use strict";for(var t=function(t,n,e){return void 0===n&&(n=0),void 0===e&&(e=1),t<n?n:t>e?e:t},n={},e=0,r=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];e<r.length;e+=1){var i=r[e];n["[object "+i+"]"]=i.toLowerCase()}var u=function(t){return n[Object.prototype.toString.call(t)]||"object"},o=Math.PI,a={clip_rgb:function(n){n._clipped=!1,n._unclipped=n.slice(0);for(var e=0;e<=3;e++)e<3?((n[e]<0||n[e]>255)&&(n._clipped=!0),n[e]=t(n[e],0,255)):3===e&&(n[e]=t(n[e],0,1));return n},limit:t,type:u,unpack:function(t,n){return void 0===n&&(n=null),t.length>=3?Array.prototype.slice.call(t):"object"==u(t[0])&&n?n.split("").filter((function(n){return void 0!==t[0][n]})).map((function(n){return t[0][n]})):t[0]},last:function(t){if(t.length<2)return null;var n=t.length-1;return"string"==u(t[n])?t[n].toLowerCase():null},PI:o,TWOPI:2*o,PITHIRD:o/3,DEG2RAD:o/180,RAD2DEG:180/o},c={format:{},autodetect:[]},f=a.last,s=a.clip_rgb,l=a.type,h=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e=this;if("object"===l(t[0])&&t[0].constructor&&t[0].constructor===this.constructor)return t[0];var r=f(t),i=!1;if(!r){i=!0,c.sorted||(c.autodetect=c.autodetect.sort((function(t,n){return n.p-t.p})),c.sorted=!0);for(var u=0,o=c.autodetect;u<o.length;u+=1){var a=o[u];if(r=a.test.apply(a,t))break}}if(!c.format[r])throw new Error("unknown format: "+t);var h=c.format[r].apply(null,i?t:t.slice(0,-1));e._rgb=s(h),3===e._rgb.length&&e._rgb.push(1)};h.prototype.toString=function(){return"function"==l(this.hex)?this.hex():"["+this._rgb.join(",")+"]"};var d=h,p=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return new(Function.prototype.bind.apply(p.Color,[null].concat(t)))};p.Color=d,p.version="2.1.0";var v=p,y=a.unpack,g=Math.max,b=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e=y(t,"rgb"),r=e[0],i=e[1],u=e[2],o=1-g(r/=255,g(i/=255,u/=255)),a=o<1?1/(1-o):0,c=(1-r-o)*a,f=(1-i-o)*a,s=(1-u-o)*a;return[c,f,s,o]},_=a.unpack,m=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e=(t=_(t,"cmyk"))[0],r=t[1],i=t[2],u=t[3],o=t.length>4?t[4]:1;return 1===u?[0,0,0,o]:[e>=1?0:255*(1-e)*(1-u),r>=1?0:255*(1-r)*(1-u),i>=1?0:255*(1-i)*(1-u),o]},x=a.unpack,w=a.type;d.prototype.cmyk=function(){return b(this._rgb)},v.cmyk=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return new(Function.prototype.bind.apply(d,[null].concat(t,["cmyk"])))},c.format.cmyk=m,c.autodetect.push({p:2,test:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t=x(t,"cmyk"),"array"===w(t)&&4===t.length)return"cmyk"}});var j=a.unpack,O=a.last,M=function(t){return Math.round(100*t)/100},k=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e=j(t,"hsla"),r=O(t)||"lsa";return e[0]=M(e[0]||0),e[1]=M(100*e[1])+"%",e[2]=M(100*e[2])+"%","hsla"===r||e.length>3&&e[3]<1?(e[3]=e.length>3?e[3]:1,r="hsla"):e.length=3,r+"("+e.join(",")+")"},S=a.unpack,A=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e=(t=S(t,"rgba"))[0],r=t[1],i=t[2];e/=255,r/=255,i/=255;var u,o,a=Math.min(e,r,i),c=Math.max(e,r,i),f=(c+a)/2;return c===a?(u=0,o=Number.NaN):u=f<.5?(c-a)/(c+a):(c-a)/(2-c-a),e==c?o=(r-i)/(c-a):r==c?o=2+(i-e)/(c-a):i==c&&(o=4+(e-r)/(c-a)),(o*=60)<0&&(o+=360),t.length>3&&void 0!==t[3]?[o,u,f,t[3]]:[o,u,f]},T=a.unpack,N=a.last,C=Math.round,P=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e=T(t,"rgba"),r=N(t)||"rgb";return"hsl"==r.substr(0,3)?k(A(e),r):(e[0]=C(e[0]),e[1]=C(e[1]),e[2]=C(e[2]),("rgba"===r||e.length>3&&e[3]<1)&&(e[3]=e.length>3?e[3]:1,r="rgba"),r+"("+e.slice(0,"rgb"===r?3:4).join(",")+")")},E=a.unpack,D=Math.round,R=function(){for(var t,n=[],e=arguments.length;e--;)n[e]=arguments[e];var r,i,u,o=(n=E(n,"hsl"))[0],a=n[1],c=n[2];if(0===a)r=i=u=255*c;else{var f=[0,0,0],s=[0,0,0],l=c<.5?c*(1+a):c+a-c*a,h=2*c-l,d=o/360;f[0]=d+1/3,f[1]=d,f[2]=d-1/3;for(var p=0;p<3;p++)f[p]<0&&(f[p]+=1),f[p]>1&&(f[p]-=1),6*f[p]<1?s[p]=h+6*(l-h)*f[p]:2*f[p]<1?s[p]=l:3*f[p]<2?s[p]=h+(l-h)*(2/3-f[p])*6:s[p]=h;r=(t=[D(255*s[0]),D(255*s[1]),D(255*s[2])])[0],i=t[1],u=t[2]}return n.length>3?[r,i,u,n[3]]:[r,i,u,1]},L=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,F=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,q=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,U=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,I=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,H=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,z=Math.round,Y=function(t){var n;if(t=t.toLowerCase().trim(),c.format.named)try{return c.format.named(t)}catch(t){}if(n=t.match(L)){for(var e=n.slice(1,4),r=0;r<3;r++)e[r]=+e[r];return e[3]=1,e}if(n=t.match(F)){for(var i=n.slice(1,5),u=0;u<4;u++)i[u]=+i[u];return i}if(n=t.match(q)){for(var o=n.slice(1,4),a=0;a<3;a++)o[a]=z(2.55*o[a]);return o[3]=1,o}if(n=t.match(U)){for(var f=n.slice(1,5),s=0;s<3;s++)f[s]=z(2.55*f[s]);return f[3]=+f[3],f}if(n=t.match(I)){var l=n.slice(1,4);l[1]*=.01,l[2]*=.01;var h=R(l);return h[3]=1,h}if(n=t.match(H)){var d=n.slice(1,4);d[1]*=.01,d[2]*=.01;var p=R(d);return p[3]=+n[4],p}};Y.test=function(t){return L.test(t)||F.test(t)||q.test(t)||U.test(t)||I.test(t)||H.test(t)};var B=Y,V=a.type;d.prototype.css=function(t){return P(this._rgb,t)},v.css=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return new(Function.prototype.bind.apply(d,[null].concat(t,["css"])))},c.format.css=B,c.autodetect.push({p:5,test:function(t){for(var n=[],e=arguments.length-1;e-- >0;)n[e]=arguments[e+1];if(!n.length&&"string"===V(t)&&B.test(t))return"css"}});var W=a.unpack;c.format.gl=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e=W(t,"rgba");return e[0]*=255,e[1]*=255,e[2]*=255,e},v.gl=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return new(Function.prototype.bind.apply(d,[null].concat(t,["gl"])))},d.prototype.gl=function(){var t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]};var $=a.unpack,X=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e,r=$(t,"rgb"),i=r[0],u=r[1],o=r[2],a=Math.min(i,u,o),c=Math.max(i,u,o),f=c-a,s=100*f/255,l=a/(255-f)*100;return 0===f?e=Number.NaN:(i===c&&(e=(u-o)/f),u===c&&(e=2+(o-i)/f),o===c&&(e=4+(i-u)/f),(e*=60)<0&&(e+=360)),[e,s,l]},G=a.unpack,Z=Math.floor,Q=function(){for(var t,n,e,r,i,u,o=[],a=arguments.length;a--;)o[a]=arguments[a];var c,f,s,l=(o=G(o,"hcg"))[0],h=o[1],d=o[2];d*=255;var p=255*h;if(0===h)c=f=s=d;else{360===l&&(l=0),l>360&&(l-=360),l<0&&(l+=360);var v=Z(l/=60),y=l-v,g=d*(1-h),b=g+p*(1-y),_=g+p*y,m=g+p;switch(v){case 0:c=(t=[m,_,g])[0],f=t[1],s=t[2];break;case 1:c=(n=[b,m,g])[0],f=n[1],s=n[2];break;case 2:c=(e=[g,m,_])[0],f=e[1],s=e[2];break;case 3:c=(r=[g,b,m])[0],f=r[1],s=r[2];break;case 4:c=(i=[_,g,m])[0],f=i[1],s=i[2];break;case 5:c=(u=[m,g,b])[0],f=u[1],s=u[2]}}return[c,f,s,o.length>3?o[3]:1]},J=a.unpack,K=a.type;d.prototype.hcg=function(){return X(this._rgb)},v.hcg=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return new(Function.prototype.bind.apply(d,[null].concat(t,["hcg"])))},c.format.hcg=Q,c.autodetect.push({p:1,test:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t=J(t,"hcg"),"array"===K(t)&&3===t.length)return"hcg"}});var tt=a.unpack,nt=a.last,et=Math.round,rt=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e=tt(t,"rgba"),r=e[0],i=e[1],u=e[2],o=e[3],a=nt(t)||"auto";void 0===o&&(o=1),"auto"===a&&(a=o<1?"rgba":"rgb");var c=(r=et(r))<<16|(i=et(i))<<8|(u=et(u)),f="000000"+c.toString(16);f=f.substr(f.length-6);var s="0"+et(255*o).toString(16);switch(s=s.substr(s.length-2),a.toLowerCase()){case"rgba":return"#"+f+s;case"argb":return"#"+s+f;default:return"#"+f}},it=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,ut=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,ot=function(t){if(t.match(it)){4!==t.length&&7!==t.length||(t=t.substr(1)),3===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]);var n=parseInt(t,16);return[n>>16,n>>8&255,255&n,1]}if(t.match(ut)){5!==t.length&&9!==t.length||(t=t.substr(1)),4===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);var e=parseInt(t,16);return[e>>24&255,e>>16&255,e>>8&255,Math.round((255&e)/255*100)/100]}throw new Error("unknown hex color: "+t)},at=a.type;d.prototype.hex=function(t){return rt(this._rgb,t)},v.hex=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return new(Function.prototype.bind.apply(d,[null].concat(t,["hex"])))},c.format.hex=ot,c.autodetect.push({p:4,test:function(t){for(var n=[],e=arguments.length-1;e-- >0;)n[e]=arguments[e+1];if(!n.length&&"string"===at(t)&&[3,4,5,6,7,8,9].indexOf(t.length)>=0)return"hex"}});var ct=a.unpack,ft=a.TWOPI,st=Math.min,lt=Math.sqrt,ht=Math.acos,dt=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e,r=ct(t,"rgb"),i=r[0],u=r[1],o=r[2],a=st(i/=255,u/=255,o/=255),c=(i+u+o)/3,f=c>0?1-a/c:0;return 0===f?e=NaN:(e=(i-u+(i-o))/2,e/=lt((i-u)*(i-u)+(i-o)*(u-o)),e=ht(e),o>u&&(e=ft-e),e/=ft),[360*e,f,c]},pt=a.unpack,vt=a.limit,yt=a.TWOPI,gt=a.PITHIRD,bt=Math.cos,_t=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e,r,i,u=(t=pt(t,"hsi"))[0],o=t[1],a=t[2];return isNaN(u)&&(u=0),isNaN(o)&&(o=0),u>360&&(u-=360),u<0&&(u+=360),(u/=360)<1/3?r=1-((i=(1-o)/3)+(e=(1+o*bt(yt*u)/bt(gt-yt*u))/3)):u<2/3?i=1-((e=(1-o)/3)+(r=(1+o*bt(yt*(u-=1/3))/bt(gt-yt*u))/3)):e=1-((r=(1-o)/3)+(i=(1+o*bt(yt*(u-=2/3))/bt(gt-yt*u))/3)),[255*(e=vt(a*e*3)),255*(r=vt(a*r*3)),255*(i=vt(a*i*3)),t.length>3?t[3]:1]},mt=a.unpack,xt=a.type;d.prototype.hsi=function(){return dt(this._rgb)},v.hsi=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return new(Function.prototype.bind.apply(d,[null].concat(t,["hsi"])))},c.format.hsi=_t,c.autodetect.push({p:2,test:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t=mt(t,"hsi"),"array"===xt(t)&&3===t.length)return"hsi"}});var wt=a.unpack,jt=a.type;d.prototype.hsl=function(){return A(this._rgb)},v.hsl=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return new(Function.prototype.bind.apply(d,[null].concat(t,["hsl"])))},c.format.hsl=R,c.autodetect.push({p:2,test:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t=wt(t,"hsl"),"array"===jt(t)&&3===t.length)return"hsl"}});var Ot=a.unpack,Mt=Math.min,kt=Math.max,St=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e,r,i,u=(t=Ot(t,"rgb"))[0],o=t[1],a=t[2],c=Mt(u,o,a),f=kt(u,o,a),s=f-c;return i=f/255,0===f?(e=Number.NaN,r=0):(r=s/f,u===f&&(e=(o-a)/s),o===f&&(e=2+(a-u)/s),a===f&&(e=4+(u-o)/s),(e*=60)<0&&(e+=360)),[e,r,i]},At=a.unpack,Tt=Math.floor,Nt=function(){for(var t,n,e,r,i,u,o=[],a=arguments.length;a--;)o[a]=arguments[a];var c,f,s,l=(o=At(o,"hsv"))[0],h=o[1],d=o[2];if(d*=255,0===h)c=f=s=d;else{360===l&&(l=0),l>360&&(l-=360),l<0&&(l+=360);var p=Tt(l/=60),v=l-p,y=d*(1-h),g=d*(1-h*v),b=d*(1-h*(1-v));switch(p){case 0:c=(t=[d,b,y])[0],f=t[1],s=t[2];break;case 1:c=(n=[g,d,y])[0],f=n[1],s=n[2];break;case 2:c=(e=[y,d,b])[0],f=e[1],s=e[2];break;case 3:c=(r=[y,g,d])[0],f=r[1],s=r[2];break;case 4:c=(i=[b,y,d])[0],f=i[1],s=i[2];break;case 5:c=(u=[d,y,g])[0],f=u[1],s=u[2]}}return[c,f,s,o.length>3?o[3]:1]},Ct=a.unpack,Pt=a.type;d.prototype.hsv=function(){return St(this._rgb)},v.hsv=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return new(Function.prototype.bind.apply(d,[null].concat(t,["hsv"])))},c.format.hsv=Nt,c.autodetect.push({p:2,test:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t=Ct(t,"hsv"),"array"===Pt(t)&&3===t.length)return"hsv"}});var Et=18,Dt=.95047,Rt=1,Lt=1.08883,Ft=.137931034,qt=.206896552,Ut=.12841855,It=.008856452,Ht=a.unpack,zt=Math.pow,Yt=function(t){return(t/=255)<=.04045?t/12.92:zt((t+.055)/1.055,2.4)},Bt=function(t){return t>It?zt(t,1/3):t/Ut+Ft},Vt=function(t,n,e){return t=Yt(t),n=Yt(n),e=Yt(e),[Bt((.4124564*t+.3575761*n+.1804375*e)/Dt),Bt((.2126729*t+.7151522*n+.072175*e)/Rt),Bt((.0193339*t+.119192*n+.9503041*e)/Lt)]},Wt=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e=Ht(t,"rgb"),r=e[0],i=e[1],u=e[2],o=Vt(r,i,u),a=o[0],c=o[1],f=o[2],s=116*c-16;return[s<0?0:s,500*(a-c),200*(c-f)]},$t=a.unpack,Xt=Math.pow,Gt=function(t){return 255*(t<=.00304?12.92*t:1.055*Xt(t,1/2.4)-.055)},Zt=function(t){return t>qt?t*t*t:Ut*(t-Ft)},Qt=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e,r,i,u=(t=$t(t,"lab"))[0],o=t[1],a=t[2];return r=(u+16)/116,e=isNaN(o)?r:r+o/500,i=isNaN(a)?r:r-a/200,r=Rt*Zt(r),e=Dt*Zt(e),i=Lt*Zt(i),[Gt(3.2404542*e-1.5371385*r-.4985314*i),Gt(-.969266*e+1.8760108*r+.041556*i),Gt(.0556434*e-.2040259*r+1.0572252*i),t.length>3?t[3]:1]},Jt=a.unpack,Kt=a.type;d.prototype.lab=function(){return Wt(this._rgb)},v.lab=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return new(Function.prototype.bind.apply(d,[null].concat(t,["lab"])))},c.format.lab=Qt,c.autodetect.push({p:2,test:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t=Jt(t,"lab"),"array"===Kt(t)&&3===t.length)return"lab"}});var tn=a.unpack,nn=a.RAD2DEG,en=Math.sqrt,rn=Math.atan2,un=Math.round,on=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e=tn(t,"lab"),r=e[0],i=e[1],u=e[2],o=en(i*i+u*u),a=(rn(u,i)*nn+360)%360;return 0===un(1e4*o)&&(a=Number.NaN),[r,o,a]},an=a.unpack,cn=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e=an(t,"rgb"),r=e[0],i=e[1],u=e[2],o=Wt(r,i,u),a=o[0],c=o[1],f=o[2];return on(a,c,f)},fn=a.unpack,sn=a.DEG2RAD,ln=Math.sin,hn=Math.cos,dn=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e=fn(t,"lch"),r=e[0],i=e[1],u=e[2];return isNaN(u)&&(u=0),[r,hn(u*=sn)*i,ln(u)*i]},pn=a.unpack,vn=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e=(t=pn(t,"lch"))[0],r=t[1],i=t[2],u=dn(e,r,i),o=u[0],a=u[1],c=u[2],f=Qt(o,a,c),s=f[0],l=f[1],h=f[2];return[s,l,h,t.length>3?t[3]:1]},yn=a.unpack,gn=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e=yn(t,"hcl").reverse();return vn.apply(void 0,e)},bn=a.unpack,_n=a.type;d.prototype.lch=function(){return cn(this._rgb)},d.prototype.hcl=function(){return cn(this._rgb).reverse()},v.lch=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return new(Function.prototype.bind.apply(d,[null].concat(t,["lch"])))},v.hcl=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return new(Function.prototype.bind.apply(d,[null].concat(t,["hcl"])))},c.format.lch=vn,c.format.hcl=gn,["lch","hcl"].forEach((function(t){return c.autodetect.push({p:2,test:function(){for(var n=[],e=arguments.length;e--;)n[e]=arguments[e];if(n=bn(n,t),"array"===_n(n)&&3===n.length)return t}})}));var mn={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},xn=a.type;d.prototype.name=function(){for(var t=rt(this._rgb,"rgb"),n=0,e=Object.keys(mn);n<e.length;n+=1){var r=e[n];if(mn[r]===t)return r.toLowerCase()}return t},c.format.named=function(t){if(t=t.toLowerCase(),mn[t])return ot(mn[t]);throw new Error("unknown color name: "+t)},c.autodetect.push({p:5,test:function(t){for(var n=[],e=arguments.length-1;e-- >0;)n[e]=arguments[e+1];if(!n.length&&"string"===xn(t)&&mn[t.toLowerCase()])return"named"}});var wn=a.unpack,jn=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e=wn(t,"rgb"),r=e[0],i=e[1],u=e[2];return(r<<16)+(i<<8)+u},On=a.type,Mn=function(t){if("number"==On(t)&&t>=0&&t<=16777215)return[t>>16,t>>8&255,255&t,1];throw new Error("unknown num color: "+t)},kn=a.type;d.prototype.num=function(){return jn(this._rgb)},v.num=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return new(Function.prototype.bind.apply(d,[null].concat(t,["num"])))},c.format.num=Mn,c.autodetect.push({p:5,test:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(1===t.length&&"number"===kn(t[0])&&t[0]>=0&&t[0]<=16777215)return"num"}});var Sn=a.unpack,An=a.type,Tn=Math.round;d.prototype.rgb=function(t){return void 0===t&&(t=!0),!1===t?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Tn)},d.prototype.rgba=function(t){return void 0===t&&(t=!0),this._rgb.slice(0,4).map((function(n,e){return e<3?!1===t?n:Tn(n):n}))},v.rgb=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return new(Function.prototype.bind.apply(d,[null].concat(t,["rgb"])))},c.format.rgb=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var e=Sn(t,"rgba");return void 0===e[3]&&(e[3]=1),e},c.autodetect.push({p:3,test:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t=Sn(t,"rgba"),"array"===An(t)&&(3===t.length||4===t.length&&"number"==An(t[3])&&t[3]>=0&&t[3]<=1))return"rgb"}});var Nn=Math.log,Cn=function(t){var n,e,r,i=t/100;return i<66?(n=255,e=-155.25485562709179-.44596950469579133*(e=i-2)+104.49216199393888*Nn(e),r=i<20?0:.8274096064007395*(r=i-10)-254.76935184120902+115.67994401066147*Nn(r)):(n=351.97690566805693+.114206453784165*(n=i-55)-40.25366309332127*Nn(n),e=325.4494125711974+.07943456536662342*(e=i-50)-28.0852963507957*Nn(e),r=255),[n,e,r,1]},Pn=a.unpack,En=Math.round,Dn=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];for(var e,r=Pn(t,"rgb"),i=r[0],u=r[2],o=1e3,a=4e4,c=.4;a-o>c;){var f=Cn(e=.5*(a+o));f[2]/f[0]>=u/i?a=e:o=e}return En(e)};d.prototype.temp=d.prototype.kelvin=d.prototype.temperature=function(){return Dn(this._rgb)},v.temp=v.kelvin=v.temperature=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return new(Function.prototype.bind.apply(d,[null].concat(t,["temp"])))},c.format.temp=c.format.kelvin=c.format.temperature=Cn;var Rn=a.type;d.prototype.alpha=function(t,n){return void 0===n&&(n=!1),void 0!==t&&"number"===Rn(t)?n?(this._rgb[3]=t,this):new d([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]},d.prototype.clipped=function(){return this._rgb._clipped||!1},d.prototype.darken=function(t){void 0===t&&(t=1);var n=this.lab();return n[0]-=Et*t,new d(n,"lab").alpha(this.alpha(),!0)},d.prototype.brighten=function(t){return void 0===t&&(t=1),this.darken(-t)},d.prototype.darker=d.prototype.darken,d.prototype.brighter=d.prototype.brighten,d.prototype.get=function(t){var n=t.split("."),e=n[0],r=n[1],i=this[e]();if(r){var u=e.indexOf(r);if(u>-1)return i[u];throw new Error("unknown channel "+r+" in mode "+e)}return i};var Ln=a.type,Fn=Math.pow;d.prototype.luminance=function(t){if(void 0!==t&&"number"===Ln(t)){if(0===t)return new d([0,0,0,this._rgb[3]],"rgb");if(1===t)return new d([255,255,255,this._rgb[3]],"rgb");var n=this.luminance(),e=20,r=function(n,i){var u=n.interpolate(i,.5,"rgb"),o=u.luminance();return Math.abs(t-o)<1e-7||!e--?u:o>t?r(n,u):r(u,i)},i=(n>t?r(new d([0,0,0]),this):r(this,new d([255,255,255]))).rgb();return new d(i.concat([this._rgb[3]]))}return qn.apply(void 0,this._rgb.slice(0,3))};var qn=function(t,n,e){return.2126*(t=Un(t))+.7152*(n=Un(n))+.0722*(e=Un(e))},Un=function(t){return(t/=255)<=.03928?t/12.92:Fn((t+.055)/1.055,2.4)},In={},Hn=a.type,zn=function(t,n,e){void 0===e&&(e=.5);for(var r=[],i=arguments.length-3;i-- >0;)r[i]=arguments[i+3];var u=r[0]||"lrgb";if(In[u]||r.length||(u=Object.keys(In)[0]),!In[u])throw new Error("interpolation mode "+u+" is not defined");return"object"!==Hn(t)&&(t=new d(t)),"object"!==Hn(n)&&(n=new d(n)),In[u](t,n,e).alpha(t.alpha()+e*(n.alpha()-t.alpha()))};d.prototype.mix=d.prototype.interpolate=function(t,n){void 0===n&&(n=.5);for(var e=[],r=arguments.length-2;r-- >0;)e[r]=arguments[r+2];return zn.apply(void 0,[this,t,n].concat(e))},d.prototype.premultiply=function(t){void 0===t&&(t=!1);var n=this._rgb,e=n[3];return t?(this._rgb=[n[0]*e,n[1]*e,n[2]*e,e],this):new d([n[0]*e,n[1]*e,n[2]*e,e],"rgb")},d.prototype.saturate=function(t){void 0===t&&(t=1);var n=this.lch();return n[1]+=Et*t,n[1]<0&&(n[1]=0),new d(n,"lch").alpha(this.alpha(),!0)},d.prototype.desaturate=function(t){return void 0===t&&(t=1),this.saturate(-t)};var Yn=a.type;d.prototype.set=function(t,n,e){void 0===e&&(e=!1);var r=t.split("."),i=r[0],u=r[1],o=this[i]();if(u){var a=i.indexOf(u);if(a>-1){if("string"==Yn(n))switch(n.charAt(0)){case"+":case"-":o[a]+=+n;break;case"*":o[a]*=+n.substr(1);break;case"/":o[a]/=+n.substr(1);break;default:o[a]=+n}else{if("number"!==Yn(n))throw new Error("unsupported value for Color.set");o[a]=n}var c=new d(o,i);return e?(this._rgb=c._rgb,this):c}throw new Error("unknown channel "+u+" in mode "+i)}return o},In.rgb=function(t,n,e){var r=t._rgb,i=n._rgb;return new d(r[0]+e*(i[0]-r[0]),r[1]+e*(i[1]-r[1]),r[2]+e*(i[2]-r[2]),"rgb")};var Bn=Math.sqrt,Vn=Math.pow;In.lrgb=function(t,n,e){var r=t._rgb,i=r[0],u=r[1],o=r[2],a=n._rgb,c=a[0],f=a[1],s=a[2];return new d(Bn(Vn(i,2)*(1-e)+Vn(c,2)*e),Bn(Vn(u,2)*(1-e)+Vn(f,2)*e),Bn(Vn(o,2)*(1-e)+Vn(s,2)*e),"rgb")},In.lab=function(t,n,e){var r=t.lab(),i=n.lab();return new d(r[0]+e*(i[0]-r[0]),r[1]+e*(i[1]-r[1]),r[2]+e*(i[2]-r[2]),"lab")};var Wn=function(t,n,e,r){var i,u,o,a,c,f,s,l,h,p,v,y;return"hsl"===r?(o=t.hsl(),a=n.hsl()):"hsv"===r?(o=t.hsv(),a=n.hsv()):"hcg"===r?(o=t.hcg(),a=n.hcg()):"hsi"===r?(o=t.hsi(),a=n.hsi()):"lch"!==r&&"hcl"!==r||(r="hcl",o=t.hcl(),a=n.hcl()),"h"===r.substr(0,1)&&(c=(i=o)[0],s=i[1],h=i[2],f=(u=a)[0],l=u[1],p=u[2]),isNaN(c)||isNaN(f)?isNaN(c)?isNaN(f)?y=Number.NaN:(y=f,1!=h&&0!=h||"hsv"==r||(v=l)):(y=c,1!=p&&0!=p||"hsv"==r||(v=s)):y=c+e*(f>c&&f-c>180?f-(c+360):f<c&&c-f>180?f+360-c:f-c),void 0===v&&(v=s+e*(l-s)),new d([y,v,h+e*(p-h)],r)},$n=function(t,n,e){return Wn(t,n,e,"lch")};In.lch=$n,In.hcl=$n,In.num=function(t,n,e){var r=t.num(),i=n.num();return new d(r+e*(i-r),"num")},In.hcg=function(t,n,e){return Wn(t,n,e,"hcg")},In.hsi=function(t,n,e){return Wn(t,n,e,"hsi")},In.hsl=function(t,n,e){return Wn(t,n,e,"hsl")},In.hsv=function(t,n,e){return Wn(t,n,e,"hsv")};var Xn=a.clip_rgb,Gn=Math.pow,Zn=Math.sqrt,Qn=Math.PI,Jn=Math.cos,Kn=Math.sin,te=Math.atan2,ne=function(t,n){for(var e=t.length,r=[0,0,0,0],i=0;i<t.length;i++){var u=t[i],o=n[i]/e,a=u._rgb;r[0]+=Gn(a[0],2)*o,r[1]+=Gn(a[1],2)*o,r[2]+=Gn(a[2],2)*o,r[3]+=a[3]*o}return r[0]=Zn(r[0]),r[1]=Zn(r[1]),r[2]=Zn(r[2]),r[3]>.9999999&&(r[3]=1),new d(Xn(r))},ee=a.type,re=Math.pow,ie=function(t){var n="rgb",e=v("#ccc"),r=0,i=[0,1],u=[],o=[0,0],a=!1,c=[],f=!1,s=0,l=1,h=!1,d={},p=!0,y=1,g=function(t){if((t=t||["#fff","#000"])&&"string"===ee(t)&&v.brewer&&v.brewer[t.toLowerCase()]&&(t=v.brewer[t.toLowerCase()]),"array"===ee(t)){1===t.length&&(t=[t[0],t[0]]),t=t.slice(0);for(var n=0;n<t.length;n++)t[n]=v(t[n]);u.length=0;for(var e=0;e<t.length;e++)u.push(e/(t.length-1))}return x(),c=t},b=function(t){return t},_=function(t){return t},m=function(t,r){var i,f;if(null==r&&(r=!1),isNaN(t)||null===t)return e;f=r?t:a&&a.length>2?function(t){if(null!=a){for(var n=a.length-1,e=0;e<n&&t>=a[e];)e++;return e-1}return 0}(t)/(a.length-2):l!==s?(t-s)/(l-s):1,f=_(f),r||(f=b(f)),1!==y&&(f=re(f,y)),f=o[0]+f*(1-o[0]-o[1]),f=Math.min(1,Math.max(0,f));var h=Math.floor(1e4*f);if(p&&d[h])i=d[h];else{if("array"===ee(c))for(var g=0;g<u.length;g++){var m=u[g];if(f<=m){i=c[g];break}if(f>=m&&g===u.length-1){i=c[g];break}if(f>m&&f<u[g+1]){f=(f-m)/(u[g+1]-m),i=v.interpolate(c[g],c[g+1],f,n);break}}else"function"===ee(c)&&(i=c(f));p&&(d[h]=i)}return i},x=function(){return d={}};g(t);var w=function(t){var n=v(m(t));return f&&n[f]?n[f]():n};return w.classes=function(t){if(null!=t){if("array"===ee(t))a=t,i=[t[0],t[t.length-1]];else{var n=v.analyze(i);a=0===t?[n.min,n.max]:v.limits(n,"e",t)}return w}return a},w.domain=function(t){if(!arguments.length)return i;s=t[0],l=t[t.length-1],u=[];var n=c.length;if(t.length===n&&s!==l)for(var e=0,r=Array.from(t);e<r.length;e+=1){var o=r[e];u.push((o-s)/(l-s))}else{for(var a=0;a<n;a++)u.push(a/(n-1));if(t.length>2){var f=t.map((function(n,e){return e/(t.length-1)})),h=t.map((function(t){return(t-s)/(l-s)}));h.every((function(t,n){return f[n]===t}))||(_=function(t){if(t<=0||t>=1)return t;for(var n=0;t>=h[n+1];)n++;var e=(t-h[n])/(h[n+1]-h[n]);return f[n]+e*(f[n+1]-f[n])})}}return i=[s,l],w},w.mode=function(t){return arguments.length?(n=t,x(),w):n},w.range=function(t,n){return g(t),w},w.out=function(t){return f=t,w},w.spread=function(t){return arguments.length?(r=t,w):r},w.correctLightness=function(t){return null==t&&(t=!0),h=t,x(),b=h?function(t){for(var n=m(0,!0).lab()[0],e=m(1,!0).lab()[0],r=n>e,i=m(t,!0).lab()[0],u=n+(e-n)*t,o=i-u,a=0,c=1,f=20;Math.abs(o)>.01&&f-- >0;)r&&(o*=-1),o<0?(a=t,t+=.5*(c-t)):(c=t,t+=.5*(a-t)),i=m(t,!0).lab()[0],o=i-u;return t}:function(t){return t},w},w.padding=function(t){return null!=t?("number"===ee(t)&&(t=[t,t]),o=t,w):o},w.colors=function(n,e){arguments.length<2&&(e="hex");var r=[];if(0===arguments.length)r=c.slice(0);else if(1===n)r=[w(.5)];else if(n>1){var u=i[0],o=i[1]-u;r=ue(0,n,!1).map((function(t){return w(u+t/(n-1)*o)}))}else{t=[];var f=[];if(a&&a.length>2)for(var s=1,l=a.length,h=1<=l;h?s<l:s>l;h?s++:s--)f.push(.5*(a[s-1]+a[s]));else f=i;r=f.map((function(t){return w(t)}))}return v[e]&&(r=r.map((function(t){return t[e]()}))),r},w.cache=function(t){return null!=t?(p=t,w):p},w.gamma=function(t){return null!=t?(y=t,w):y},w.nodata=function(t){return null!=t?(e=v(t),w):e},w};function ue(t,n,e){for(var r=[],i=t<n,u=e?i?n+1:n-1:n,o=t;i?o<u:o>u;i?o++:o--)r.push(o);return r}var oe=function(t){var n,e,r,i,u,o,a;if(2===(t=t.map((function(t){return new d(t)}))).length)n=t.map((function(t){return t.lab()})),u=n[0],o=n[1],i=function(t){var n=[0,1,2].map((function(n){return u[n]+t*(o[n]-u[n])}));return new d(n,"lab")};else if(3===t.length)e=t.map((function(t){return t.lab()})),u=e[0],o=e[1],a=e[2],i=function(t){var n=[0,1,2].map((function(n){return(1-t)*(1-t)*u[n]+2*(1-t)*t*o[n]+t*t*a[n]}));return new d(n,"lab")};else if(4===t.length){var c;r=t.map((function(t){return t.lab()})),u=r[0],o=r[1],a=r[2],c=r[3],i=function(t){var n=[0,1,2].map((function(n){return(1-t)*(1-t)*(1-t)*u[n]+3*(1-t)*(1-t)*t*o[n]+3*(1-t)*t*t*a[n]+t*t*t*c[n]}));return new d(n,"lab")}}else if(5===t.length){var f=oe(t.slice(0,3)),s=oe(t.slice(2,5));i=function(t){return t<.5?f(2*t):s(2*(t-.5))}}return i},ae=function(t,n,e){if(!ae[e])throw new Error("unknown blend mode "+e);return ae[e](t,n)},ce=function(t){return function(n,e){var r=v(e).rgb(),i=v(n).rgb();return v.rgb(t(r,i))}},fe=function(t){return function(n,e){var r=[];return r[0]=t(n[0],e[0]),r[1]=t(n[1],e[1]),r[2]=t(n[2],e[2]),r}};ae.normal=ce(fe((function(t){return t}))),ae.multiply=ce(fe((function(t,n){return t*n/255}))),ae.screen=ce(fe((function(t,n){return 255*(1-(1-t/255)*(1-n/255))}))),ae.overlay=ce(fe((function(t,n){return n<128?2*t*n/255:255*(1-2*(1-t/255)*(1-n/255))}))),ae.darken=ce(fe((function(t,n){return t>n?n:t}))),ae.lighten=ce(fe((function(t,n){return t>n?t:n}))),ae.dodge=ce(fe((function(t,n){return 255===t||(t=n/255*255/(1-t/255))>255?255:t}))),ae.burn=ce(fe((function(t,n){return 255*(1-(1-n/255)/(t/255))})));for(var se=ae,le=a.type,he=a.clip_rgb,de=a.TWOPI,pe=Math.pow,ve=Math.sin,ye=Math.cos,ge=Math.floor,be=Math.random,_e=Math.log,me=Math.pow,xe=Math.floor,we=Math.abs,je=function(t,n){void 0===n&&(n=null);var e={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===u(t)&&(t=Object.values(t)),t.forEach((function(t){n&&"object"===u(t)&&(t=t[n]),null==t||isNaN(t)||(e.values.push(t),e.sum+=t,t<e.min&&(e.min=t),t>e.max&&(e.max=t),e.count+=1)})),e.domain=[e.min,e.max],e.limits=function(t,n){return Oe(e,t,n)},e},Oe=function(t,n,e){void 0===n&&(n="equal"),void 0===e&&(e=7),"array"==u(t)&&(t=je(t));var r=t.min,i=t.max,o=t.values.sort((function(t,n){return t-n}));if(1===e)return[r,i];var a=[];if("c"===n.substr(0,1)&&(a.push(r),a.push(i)),"e"===n.substr(0,1)){a.push(r);for(var c=1;c<e;c++)a.push(r+c/e*(i-r));a.push(i)}else if("l"===n.substr(0,1)){if(r<=0)throw new Error("Logarithmic scales are only possible for values > 0");var f=Math.LOG10E*_e(r),s=Math.LOG10E*_e(i);a.push(r);for(var l=1;l<e;l++)a.push(me(10,f+l/e*(s-f)));a.push(i)}else if("q"===n.substr(0,1)){a.push(r);for(var h=1;h<e;h++){var d=(o.length-1)*h/e,p=xe(d);if(p===d)a.push(o[p]);else{var v=d-p;a.push(o[p]*(1-v)+o[p+1]*v)}}a.push(i)}else if("k"===n.substr(0,1)){var y,g=o.length,b=new Array(g),_=new Array(e),m=!0,x=0,w=null;(w=[]).push(r);for(var j=1;j<e;j++)w.push(r+j/e*(i-r));for(w.push(i);m;){for(var O=0;O<e;O++)_[O]=0;for(var M=0;M<g;M++)for(var k=o[M],S=Number.MAX_VALUE,A=void 0,T=0;T<e;T++){var N=we(w[T]-k);N<S&&(S=N,A=T),_[A]++,b[M]=A}for(var C=new Array(e),P=0;P<e;P++)C[P]=null;for(var E=0;E<g;E++)null===C[y=b[E]]?C[y]=o[E]:C[y]+=o[E];for(var D=0;D<e;D++)C[D]*=1/_[D];m=!1;for(var R=0;R<e;R++)if(C[R]!==w[R]){m=!0;break}w=C,++x>200&&(m=!1)}for(var L={},F=0;F<e;F++)L[F]=[];for(var q=0;q<g;q++)L[y=b[q]].push(o[q]);for(var U=[],I=0;I<e;I++)U.push(L[I][0]),U.push(L[I][L[I].length-1]);U=U.sort((function(t,n){return t-n})),a.push(U[0]);for(var H=1;H<U.length;H+=2){var z=U[H];isNaN(z)||-1!==a.indexOf(z)||a.push(z)}}return a},Me={analyze:je,limits:Oe},ke=Math.sqrt,Se=Math.atan2,Ae=Math.abs,Te=Math.cos,Ne=Math.PI,Ce={cool:function(){return ie([v.hsl(180,1,.9),v.hsl(250,.7,.4)])},hot:function(){return ie(["#000","#f00","#ff0","#fff"]).mode("rgb")}},Pe={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},Ee=0,De=Object.keys(Pe);Ee<De.length;Ee+=1){var Re=De[Ee];Pe[Re.toLowerCase()]=Pe[Re]}var Le=Pe;return v.average=function(t,n,e){void 0===n&&(n="lrgb"),void 0===e&&(e=null);var r=t.length;e||(e=Array.from(new Array(r)).map((function(){return 1})));var i=r/e.reduce((function(t,n){return t+n}));if(e.forEach((function(t,n){e[n]*=i})),t=t.map((function(t){return new d(t)})),"lrgb"===n)return ne(t,e);for(var u=t.shift(),o=u.get(n),a=[],c=0,f=0,s=0;s<o.length;s++)if(o[s]=(o[s]||0)*e[0],a.push(isNaN(o[s])?0:e[0]),"h"===n.charAt(s)&&!isNaN(o[s])){var l=o[s]/180*Qn;c+=Jn(l)*e[0],f+=Kn(l)*e[0]}var h=u.alpha()*e[0];t.forEach((function(t,r){var i=t.get(n);h+=t.alpha()*e[r+1];for(var u=0;u<o.length;u++)if(!isNaN(i[u]))if(a[u]+=e[r+1],"h"===n.charAt(u)){var s=i[u]/180*Qn;c+=Jn(s)*e[r+1],f+=Kn(s)*e[r+1]}else o[u]+=i[u]*e[r+1]}));for(var p=0;p<o.length;p++)if("h"===n.charAt(p)){for(var v=te(f/a[p],c/a[p])/Qn*180;v<0;)v+=360;for(;v>=360;)v-=360;o[p]=v}else o[p]=o[p]/a[p];return h/=r,new d(o,n).alpha(h>.99999?1:h,!0)},v.bezier=function(t){var n=oe(t);return n.scale=function(){return ie(n)},n},v.blend=se,v.cubehelix=function(t,n,e,r,i){void 0===t&&(t=300),void 0===n&&(n=-1.5),void 0===e&&(e=1),void 0===r&&(r=1),void 0===i&&(i=[0,1]);var u,o=0;"array"===le(i)?u=i[1]-i[0]:(u=0,i=[i,i]);var a=function(a){var c=de*((t+120)/360+n*a),f=pe(i[0]+u*a,r),s=(0!==o?e[0]+a*o:e)*f*(1-f)/2,l=ye(c),h=ve(c);return v(he([255*(f+s*(-.14861*l+1.78277*h)),255*(f+s*(-.29227*l-.90649*h)),255*(f+s*(1.97294*l)),1]))};return a.start=function(n){return null==n?t:(t=n,a)},a.rotations=function(t){return null==t?n:(n=t,a)},a.gamma=function(t){return null==t?r:(r=t,a)},a.hue=function(t){return null==t?e:("array"===le(e=t)?0==(o=e[1]-e[0])&&(e=e[1]):o=0,a)},a.lightness=function(t){return null==t?i:("array"===le(t)?(i=t,u=t[1]-t[0]):(i=[t,t],u=0),a)},a.scale=function(){return v.scale(a)},a.hue(e),a},v.mix=v.interpolate=zn,v.random=function(){for(var t="#",n=0;n<6;n++)t+="0123456789abcdef".charAt(ge(16*be()));return new d(t,"hex")},v.scale=ie,v.analyze=Me.analyze,v.contrast=function(t,n){t=new d(t),n=new d(n);var e=t.luminance(),r=n.luminance();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},v.deltaE=function(t,n,e,r){void 0===e&&(e=1),void 0===r&&(r=1),t=new d(t),n=new d(n);for(var i=Array.from(t.lab()),u=i[0],o=i[1],a=i[2],c=Array.from(n.lab()),f=c[0],s=c[1],l=c[2],h=ke(o*o+a*a),p=ke(s*s+l*l),v=u<16?.511:.040975*u/(1+.01765*u),y=.0638*h/(1+.0131*h)+.638,g=h<1e-6?0:180*Se(a,o)/Ne;g<0;)g+=360;for(;g>=360;)g-=360;var b=g>=164&&g<=345?.56+Ae(.2*Te(Ne*(g+168)/180)):.36+Ae(.4*Te(Ne*(g+35)/180)),_=h*h*h*h,m=ke(_/(_+1900)),x=y*(m*b+1-m),w=h-p,j=o-s,O=a-l,M=(u-f)/(e*v),k=w/(r*y);return ke(M*M+k*k+(j*j+O*O-w*w)/(x*x))},v.distance=function(t,n,e){void 0===e&&(e="lab"),t=new d(t),n=new d(n);var r=t.get(e),i=n.get(e),u=0;for(var o in r){var a=(r[o]||0)-(i[o]||0);u+=a*a}return Math.sqrt(u)},v.limits=Me.limits,v.valid=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];try{return new(Function.prototype.bind.apply(d,[null].concat(t))),!0}catch(t){return!1}},v.scales=Ce,v.colors=mn,v.brewer=Le,v}()},function(t,n,e){"use strict";e.r(n);var r=e(125);e.d(n,"scaleBand",(function(){return r.default})),e.d(n,"scalePoint",(function(){return r.point}));var i=e(170);e.d(n,"scaleIdentity",(function(){return i.default}));var u=e(171);e.d(n,"scaleLinear",(function(){return u.default}));var o=e(224);e.d(n,"scaleLog",(function(){return o.default}));var a=e(226);e.d(n,"scaleSymlog",(function(){return a.default}));var c=e(169);e.d(n,"scaleOrdinal",(function(){return c.default})),e.d(n,"scaleImplicit",(function(){return c.implicit}));var f=e(227);e.d(n,"scalePow",(function(){return f.default})),e.d(n,"scaleSqrt",(function(){return f.sqrt}));var s=e(228);e.d(n,"scaleRadial",(function(){return s.default}));var l=e(229);e.d(n,"scaleQuantile",(function(){return l.default}));var h=e(230);e.d(n,"scaleQuantize",(function(){return h.default}));var d=e(231);e.d(n,"scaleThreshold",(function(){return d.default}));var p=e(232);e.d(n,"scaleTime",(function(){return p.default}));var v=e(255);e.d(n,"scaleUtc",(function(){return v.default}));var y=e(256);e.d(n,"scaleSequential",(function(){return y.default})),e.d(n,"scaleSequentialLog",(function(){return y.sequentialLog})),e.d(n,"scaleSequentialPow",(function(){return y.sequentialPow})),e.d(n,"scaleSequentialSqrt",(function(){return y.sequentialSqrt})),e.d(n,"scaleSequentialSymlog",(function(){return y.sequentialSymlog}));var g=e(257);e.d(n,"scaleSequentialQuantile",(function(){return g.default}));var b=e(258);e.d(n,"scaleDiverging",(function(){return b.default})),e.d(n,"scaleDivergingLog",(function(){return b.divergingLog})),e.d(n,"scaleDivergingPow",(function(){return b.divergingPow})),e.d(n,"scaleDivergingSqrt",(function(){return b.divergingSqrt})),e.d(n,"scaleDivergingSymlog",(function(){return b.divergingSymlog}));var _=e(207);e.d(n,"tickFormat",(function(){return _.default}))},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return o})),e.d(n,"point",(function(){return c}));var r=e(126),i=e(168),u=e(169);function o(){var t,n,e=Object(u.default)().unknown(void 0),a=e.domain,c=e.range,f=0,s=1,l=!1,h=0,d=0,p=.5;function v(){var e=a().length,i=s<f,u=i?s:f,o=i?f:s;t=(o-u)/Math.max(1,e-h+2*d),l&&(t=Math.floor(t)),u+=(o-u-t*(e-h))*p,n=t*(1-h),l&&(u=Math.round(u),n=Math.round(n));var v=Object(r.range)(e).map((function(n){return u+t*n}));return c(i?v.reverse():v)}return delete e.unknown,e.domain=function(t){return arguments.length?(a(t),v()):a()},e.range=function(t){return arguments.length?([f,s]=t,f=+f,s=+s,v()):[f,s]},e.rangeRound=function(t){return[f,s]=t,f=+f,s=+s,l=!0,v()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(l=!!t,v()):l},e.padding=function(t){return arguments.length?(h=Math.min(1,d=+t),v()):h},e.paddingInner=function(t){return arguments.length?(h=Math.min(1,t),v()):h},e.paddingOuter=function(t){return arguments.length?(d=+t,v()):d},e.align=function(t){return arguments.length?(p=Math.max(0,Math.min(1,t)),v()):p},e.copy=function(){return o(a(),[f,s]).round(l).paddingInner(h).paddingOuter(d).align(p)},i.initRange.apply(v(),arguments)}function a(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return a(n())},t}function c(){return a(o.apply(null,arguments).paddingInner(1))}},function(t,n,e){"use strict";e.r(n);var r=e(127);e.d(n,"bisect",(function(){return r.default})),e.d(n,"bisectRight",(function(){return r.bisectRight})),e.d(n,"bisectLeft",(function(){return r.bisectLeft}));var i=e(128);e.d(n,"ascending",(function(){return i.default}));var u=e(129);e.d(n,"bisector",(function(){return u.default}));var o=e(130);e.d(n,"count",(function(){return o.default}));var a=e(131);e.d(n,"cross",(function(){return a.default}));var c=e(132);e.d(n,"cumsum",(function(){return c.default}));var f=e(133);e.d(n,"descending",(function(){return f.default}));var s=e(134);e.d(n,"deviation",(function(){return s.default}));var l=e(136);e.d(n,"extent",(function(){return l.default}));var h=e(137);e.d(n,"group",(function(){return h.default})),e.d(n,"groups",(function(){return h.groups})),e.d(n,"rollup",(function(){return h.rollup})),e.d(n,"rollups",(function(){return h.rollups}));var d=e(139);e.d(n,"bin",(function(){return d.default})),e.d(n,"histogram",(function(){return d.default}));var p=e(145);e.d(n,"thresholdFreedmanDiaconis",(function(){return p.default}));var v=e(151);e.d(n,"thresholdScott",(function(){return v.default}));var y=e(144);e.d(n,"thresholdSturges",(function(){return y.default}));var g=e(147);e.d(n,"max",(function(){return g.default}));var b=e(152);e.d(n,"maxIndex",(function(){return b.default}));var _=e(153);e.d(n,"mean",(function(){return _.default}));var m=e(154);e.d(n,"median",(function(){return m.default}));var x=e(155);e.d(n,"merge",(function(){return x.default}));var w=e(148);e.d(n,"min",(function(){return w.default}));var j=e(156);e.d(n,"minIndex",(function(){return j.default}));var O=e(157);e.d(n,"pairs",(function(){return O.default}));var M=e(158);e.d(n,"permute",(function(){return M.default}));var k=e(146);e.d(n,"quantile",(function(){return k.default})),e.d(n,"quantileSorted",(function(){return k.quantileSorted}));var S=e(149);e.d(n,"quickselect",(function(){return S.default}));var A=e(142);e.d(n,"range",(function(){return A.default}));var T=e(159);e.d(n,"least",(function(){return T.default}));var N=e(160);e.d(n,"leastIndex",(function(){return N.default}));var C=e(161);e.d(n,"greatest",(function(){return C.default}));var P=e(162);e.d(n,"greatestIndex",(function(){return P.default}));var E=e(163);e.d(n,"scan",(function(){return E.default}));var D=e(164);e.d(n,"shuffle",(function(){return D.default}));var R=e(165);e.d(n,"sum",(function(){return R.default}));var L=e(143);e.d(n,"ticks",(function(){return L.default})),e.d(n,"tickIncrement",(function(){return L.tickIncrement})),e.d(n,"tickStep",(function(){return L.tickStep}));var F=e(166);e.d(n,"transpose",(function(){return F.default}));var q=e(135);e.d(n,"variance",(function(){return q.default}));var U=e(167);e.d(n,"zip",(function(){return U.default}))},function(t,n,e){"use strict";e.r(n),e.d(n,"bisectRight",(function(){return o})),e.d(n,"bisectLeft",(function(){return a}));var r=e(128),i=e(129),u=Object(i.default)(r.default),o=u.right,a=u.left;n.default=o},function(t,n,e){"use strict";e.r(n),n.default=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}},function(t,n,e){"use strict";e.r(n);var r=e(128);n.default=function(t){var n;return 1===t.length&&(n=t,t=function(t,e){return Object(r.default)(n(t),e)}),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var u=r+i>>>1;t(n[u],e)<0?r=u+1:i=u}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var u=r+i>>>1;t(n[u],e)>0?i=u:r=u+1}return r}}}},function(t,n,e){"use strict";function r(t,n){let e=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&++e;else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(i=+i)>=i&&++e}return e}e.r(n),e.d(n,"default",(function(){return r}))},function(t,n,e){"use strict";function r(t){return 0|t.length}function i(t){return!(t>0)}function u(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function o(...t){const n="function"==typeof t[t.length-1]&&function(t){return n=>t(...n)}(t.pop()),e=(t=t.map(u)).map(r),o=t.length-1,a=new Array(o+1).fill(0),c=[];if(o<0||e.some(i))return c;for(;;){c.push(a.map((n,e)=>t[e][n]));let r=o;for(;++a[r]===e[r];){if(0===r)return n?c.map(n):c;a[r--]=0}}}e.r(n),e.d(n,"default",(function(){return o}))},function(t,n,e){"use strict";function r(t,n){var e=0,r=0;return Float64Array.from(t,void 0===n?t=>e+=+t||0:i=>e+=+n(i,r++,t)||0)}e.r(n),e.d(n,"default",(function(){return r}))},function(t,n,e){"use strict";e.r(n),n.default=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return i}));var r=e(135);function i(t,n){const e=Object(r.default)(t,n);return e?Math.sqrt(e):e}},function(t,n,e){"use strict";function r(t,n){let e,r=0,i=0,u=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(e=n-i,i+=e/++r,u+=e*(n-i));else{let o=-1;for(let a of t)null!=(a=n(a,++o,t))&&(a=+a)>=a&&(e=a-i,i+=e/++r,u+=e*(a-i))}if(r>1)return u/(r-1)}e.r(n),e.d(n,"default",(function(){return r}))},function(t,n,e){"use strict";e.r(n),n.default=function(t,n){let e,r;if(void 0===n)for(const n of t)null!=n&&(void 0===e?n>=n&&(e=r=n):(e>n&&(e=n),r<n&&(r=n)));else{let i=-1;for(let u of t)null!=(u=n(u,++i,t))&&(void 0===e?u>=u&&(e=r=u):(e>u&&(e=u),r<u&&(r=u)))}return[e,r]}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return i})),e.d(n,"groups",(function(){return u})),e.d(n,"rollup",(function(){return o})),e.d(n,"rollups",(function(){return a}));var r=e(138);function i(t,...n){return c(t,r.default,r.default,n)}function u(t,...n){return c(t,Array.from,r.default,n)}function o(t,n,...e){return c(t,r.default,n,e)}function a(t,n,...e){return c(t,Array.from,n,e)}function c(t,n,e,r){return function t(i,u){if(u>=r.length)return e(i);const o=new Map,a=r[u++];let c=-1;for(const t of i){const n=a(t,++c,i),e=o.get(n);e?e.push(t):o.set(n,[t])}for(const[n,e]of o)o.set(n,t(e,u));return n(o)}(t,0)}},function(t,n,e){"use strict";e.r(n),n.default=function(t){return t}},function(t,n,e){"use strict";e.r(n);var r=e(140),i=e(127),u=e(141),o=e(136),a=e(138),c=e(142),f=e(143),s=e(144);n.default=function(){var t=a.default,n=o.default,e=s.default;function l(r){Array.isArray(r)||(r=Array.from(r));var u,o,a=r.length,s=new Array(a);for(u=0;u<a;++u)s[u]=t(r[u],u,r);var l=n(s),h=l[0],d=l[1],p=e(s,h,d);Array.isArray(p)||(p=Object(f.tickStep)(h,d,p),p=Object(c.default)(Math.ceil(h/p)*p,d,p));for(var v=p.length;p[0]<=h;)p.shift(),--v;for(;p[v-1]>d;)p.pop(),--v;var y,g=new Array(v+1);for(u=0;u<=v;++u)(y=g[u]=[]).x0=u>0?p[u-1]:h,y.x1=u<v?p[u]:d;for(u=0;u<a;++u)h<=(o=s[u])&&o<=d&&g[Object(i.default)(p,o,0,v)].push(r[u]);return g}return l.value=function(n){return arguments.length?(t="function"==typeof n?n:Object(u.default)(n),l):t},l.domain=function(t){return arguments.length?(n="function"==typeof t?t:Object(u.default)([t[0],t[1]]),l):n},l.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?Object(u.default)(r.slice.call(t)):Object(u.default)(t),l):e},l}},function(t,n,e){"use strict";e.r(n),e.d(n,"slice",(function(){return i})),e.d(n,"map",(function(){return u}));var r=Array.prototype,i=r.slice,u=r.map},function(t,n,e){"use strict";e.r(n),n.default=function(t){return function(){return t}}},function(t,n,e){"use strict";e.r(n),n.default=function(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),u=new Array(i);++r<i;)u[r]=t+r*e;return u}},function(t,n,e){"use strict";e.r(n),e.d(n,"tickIncrement",(function(){return o})),e.d(n,"tickStep",(function(){return a}));var r=Math.sqrt(50),i=Math.sqrt(10),u=Math.sqrt(2);function o(t,n,e){var o=(n-t)/Math.max(0,e),a=Math.floor(Math.log(o)/Math.LN10),c=o/Math.pow(10,a);return a>=0?(c>=r?10:c>=i?5:c>=u?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(c>=r?10:c>=i?5:c>=u?2:1)}function a(t,n,e){var o=Math.abs(n-t)/Math.max(0,e),a=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),c=o/a;return c>=r?a*=10:c>=i?a*=5:c>=u&&(a*=2),n<t?-a:a}n.default=function(t,n,e){var r,i,u,a,c=-1;if(e=+e,(t=+t)===(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(a=o(t,n,e))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),n=Math.floor(n/a),u=new Array(i=Math.ceil(n-t+1));++c<i;)u[c]=(t+c)*a;else for(t=Math.floor(t*a),n=Math.ceil(n*a),u=new Array(i=Math.ceil(t-n+1));++c<i;)u[c]=(t-c)/a;return r&&u.reverse(),u}},function(t,n,e){"use strict";e.r(n);var r=e(130);n.default=function(t){return Math.ceil(Math.log(Object(r.default)(t))/Math.LN2)+1}},function(t,n,e){"use strict";e.r(n);var r=e(130),i=e(146);n.default=function(t,n,e){return Math.ceil((e-n)/(2*(Object(i.default)(t,.75)-Object(i.default)(t,.25))*Math.pow(Object(r.default)(t),-1/3)))}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return a})),e.d(n,"quantileSorted",(function(){return c}));var r=e(147),i=e(148),u=e(149),o=e(150);function a(t,n,e){if(a=(t=Float64Array.from(Object(o.numbers)(t,e))).length){if((n=+n)<=0||a<2)return Object(i.default)(t);if(n>=1)return Object(r.default)(t);var a,c=(a-1)*n,f=Math.floor(c),s=Object(r.default)(Object(u.default)(t,f).subarray(0,f+1));return s+(Object(i.default)(t.subarray(f+1))-s)*(c-f)}}function c(t,n,e=o.default){if(r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,u=Math.floor(i),a=+e(t[u],u,t);return a+(+e(t[u+1],u+1,t)-a)*(i-u)}}},function(t,n,e){"use strict";function r(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e<n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e<i||void 0===e&&i>=i)&&(e=i)}return e}e.r(n),e.d(n,"default",(function(){return r}))},function(t,n,e){"use strict";function r(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e>n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e>i||void 0===e&&i>=i)&&(e=i)}return e}e.r(n),e.d(n,"default",(function(){return r}))},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return i}));var r=e(128);function i(t,n,e=0,o=t.length-1,a=r.default){for(;o>e;){if(o-e>600){const r=o-e+1,u=n-e+1,c=Math.log(r),f=.5*Math.exp(2*c/3),s=.5*Math.sqrt(c*f*(r-f)/r)*(u-r/2<0?-1:1);i(t,n,Math.max(e,Math.floor(n-u*f/r+s)),Math.min(o,Math.floor(n+(r-u)*f/r+s)),a)}const r=t[n];let c=e,f=o;for(u(t,e,n),a(t[o],r)>0&&u(t,e,o);c<f;){for(u(t,c,f),++c,--f;a(t[c],r)<0;)++c;for(;a(t[f],r)>0;)--f}0===a(t[e],r)?u(t,e,f):(++f,u(t,f,o)),f<=n&&(e=f+1),n<=f&&(o=f-1)}return t}function u(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}},function(t,n,e){"use strict";function*r(t,n){if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(r=+r)>=r&&(yield r)}}e.r(n),e.d(n,"numbers",(function(){return r})),n.default=function(t){return null===t?NaN:+t}},function(t,n,e){"use strict";e.r(n);var r=e(130),i=e(134);n.default=function(t,n,e){return Math.ceil((e-n)/(3.5*Object(i.default)(t)*Math.pow(Object(r.default)(t),-1/3)))}},function(t,n,e){"use strict";function r(t,n){let e,r=-1,i=-1;if(void 0===n)for(const n of t)++i,null!=n&&(e<n||void 0===e&&n>=n)&&(e=n,r=i);else for(let u of t)null!=(u=n(u,++i,t))&&(e<u||void 0===e&&u>=u)&&(e=u,r=i);return r}e.r(n),e.d(n,"default",(function(){return r}))},function(t,n,e){"use strict";function r(t,n){let e=0,r=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(++e,r+=n);else{let i=-1;for(let u of t)null!=(u=n(u,++i,t))&&(u=+u)>=u&&(++e,r+=u)}if(e)return r/e}e.r(n),e.d(n,"default",(function(){return r}))},function(t,n,e){"use strict";e.r(n);var r=e(146);n.default=function(t,n){return Object(r.default)(t,.5,n)}},function(t,n,e){"use strict";function r(t){return Array.from(function*(t){for(const n of t)yield*n}(t))}e.r(n),e.d(n,"default",(function(){return r}))},function(t,n,e){"use strict";function r(t,n){let e,r=-1,i=-1;if(void 0===n)for(const n of t)++i,null!=n&&(e>n||void 0===e&&n>=n)&&(e=n,r=i);else for(let u of t)null!=(u=n(u,++i,t))&&(e>u||void 0===e&&u>=u)&&(e=u,r=i);return r}e.r(n),e.d(n,"default",(function(){return r}))},function(t,n,e){"use strict";function r(t,n=i){const e=[];let r,u=!1;for(const i of t)u&&e.push(n(r,i)),r=i,u=!0;return e}function i(t,n){return[t,n]}e.r(n),e.d(n,"default",(function(){return r})),e.d(n,"pair",(function(){return i}))},function(t,n,e){"use strict";e.r(n),n.default=function(t,n){return Array.from(n,n=>t[n])}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return i}));var r=e(128);function i(t,n=r.default){let e,i=!1;if(1===n.length){let u;for(const o of t){const t=n(o);(i?Object(r.default)(t,u)<0:0===Object(r.default)(t,t))&&(e=o,u=t,i=!0)}}else for(const r of t)(i?n(r,e)<0:0===n(r,r))&&(e=r,i=!0);return e}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return u}));var r=e(128),i=e(156);function u(t,n=r.default){if(1===n.length)return Object(i.default)(t,n);let e,u=-1,o=-1;for(const r of t)++o,(u<0?0===n(r,r):n(r,e)<0)&&(e=r,u=o);return u}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return i}));var r=e(128);function i(t,n=r.default){let e,i=!1;if(1===n.length){let u;for(const o of t){const t=n(o);(i?Object(r.default)(t,u)>0:0===Object(r.default)(t,t))&&(e=o,u=t,i=!0)}}else for(const r of t)(i?n(r,e)>0:0===n(r,r))&&(e=r,i=!0);return e}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return u}));var r=e(128),i=e(152);function u(t,n=r.default){if(1===n.length)return Object(i.default)(t,n);let e,u=-1,o=-1;for(const r of t)++o,(u<0?0===n(r,r):n(r,e)>0)&&(e=r,u=o);return u}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return i}));var r=e(160);function i(t,n){const e=Object(r.default)(t,n);return e<0?void 0:e}},function(t,n,e){"use strict";function r(t,n=0,e=t.length){for(var r,i,u=e-(n=+n);u;)i=Math.random()*u--|0,r=t[u+n],t[u+n]=t[i+n],t[i+n]=r;return t}e.r(n),e.d(n,"default",(function(){return r}))},function(t,n,e){"use strict";function r(t,n){let e=0;if(void 0===n)for(let n of t)(n=+n)&&(e+=n);else{let r=-1;for(let i of t)(i=+n(i,++r,t))&&(e+=i)}return e}e.r(n),e.d(n,"default",(function(){return r}))},function(t,n,e){"use strict";e.r(n);var r=e(148);function i(t){return t.length}n.default=function(t){if(!(o=t.length))return[];for(var n=-1,e=Object(r.default)(t,i),u=new Array(e);++n<e;)for(var o,a=-1,c=u[n]=new Array(o);++a<o;)c[a]=t[a][n];return u}},function(t,n,e){"use strict";e.r(n);var r=e(166);n.default=function(){return Object(r.default)(arguments)}},function(t,n,e){"use strict";function r(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function i(t,n){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof n?this.interpolator(n):this.range(n)}return this}e.r(n),e.d(n,"initRange",(function(){return r})),e.d(n,"initInterpolator",(function(){return i}))},function(t,n,e){"use strict";e.r(n),e.d(n,"implicit",(function(){return i})),e.d(n,"default",(function(){return u}));var r=e(168);const i=Symbol("implicit");function u(){var t=new Map,n=[],e=[],o=i;function a(r){var u=r+"",a=t.get(u);if(!a){if(o!==i)return o;t.set(u,a=n.push(r))}return e[(a-1)%e.length]}return a.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new Map;for(const r of e){const e=r+"";t.has(e)||t.set(e,n.push(r))}return a},a.range=function(t){return arguments.length?(e=Array.from(t),a):e.slice()},a.unknown=function(t){return arguments.length?(o=t,a):o},a.copy=function(){return u(n,e).unknown(o)},r.initRange.apply(a,arguments),a}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return u}));var r=e(171),i=e(206);function u(t){var n;function e(t){return isNaN(t=+t)?n:t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=Array.from(n,i.default),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return u(t).unknown(n)},t=arguments.length?Array.from(t,i.default):[0,1],Object(r.linearish)(e)}},function(t,n,e){"use strict";e.r(n),e.d(n,"linearish",(function(){return a})),e.d(n,"default",(function(){return c}));var r=e(126),i=e(172),u=e(168),o=e(207);function a(t){var n=t.domain;return t.ticks=function(t){var e=n();return Object(r.ticks)(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return Object(o.default)(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var i,u=n(),o=0,a=u.length-1,c=u[o],f=u[a];return f<c&&(i=c,c=f,f=i,i=o,o=a,a=i),(i=Object(r.tickIncrement)(c,f,e))>0?(c=Math.floor(c/i)*i,f=Math.ceil(f/i)*i,i=Object(r.tickIncrement)(c,f,e)):i<0&&(c=Math.ceil(c*i)/i,f=Math.floor(f*i)/i,i=Object(r.tickIncrement)(c,f,e)),i>0?(u[o]=Math.floor(c/i)*i,u[a]=Math.ceil(f/i)*i,n(u)):i<0&&(u[o]=Math.ceil(c*i)/i,u[a]=Math.floor(f*i)/i,n(u)),t},t}function c(){var t=Object(i.default)();return t.copy=function(){return Object(i.copy)(t,c())},u.initRange.apply(t,arguments),a(t)}},function(t,n,e){"use strict";e.r(n),e.d(n,"identity",(function(){return c})),e.d(n,"copy",(function(){return h})),e.d(n,"transformer",(function(){return d})),e.d(n,"default",(function(){return p}));var r=e(126),i=e(173),u=e(205),o=e(206),a=[0,1];function c(t){return t}function f(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:Object(u.default)(isNaN(n)?NaN:.5)}function s(t,n,e){var r=t[0],i=t[1],u=n[0],o=n[1];return i<r?(r=f(i,r),u=e(o,u)):(r=f(r,i),u=e(u,o)),function(t){return u(r(t))}}function l(t,n,e){var i=Math.min(t.length,n.length)-1,u=new Array(i),o=new Array(i),a=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<i;)u[a]=f(t[a],t[a+1]),o[a]=e(n[a],n[a+1]);return function(n){var e=Object(r.bisect)(t,n,1,i)-1;return o[e](u[e](n))}}function h(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function d(){var t,n,e,r,u,f,h=a,d=a,p=i.interpolate,v=c;function y(){var t,n,e,i=Math.min(h.length,d.length);return v!==c&&(t=h[0],n=h[i-1],t>n&&(e=t,t=n,n=e),v=function(e){return Math.max(t,Math.min(n,e))}),r=i>2?l:s,u=f=null,g}function g(n){return isNaN(n=+n)?e:(u||(u=r(h.map(t),d,p)))(t(v(n)))}return g.invert=function(e){return v(n((f||(f=r(d,h.map(t),i.interpolateNumber)))(e)))},g.domain=function(t){return arguments.length?(h=Array.from(t,o.default),y()):h.slice()},g.range=function(t){return arguments.length?(d=Array.from(t),y()):d.slice()},g.rangeRound=function(t){return d=Array.from(t),p=i.interpolateRound,y()},g.clamp=function(t){return arguments.length?(v=!!t||c,y()):v!==c},g.interpolate=function(t){return arguments.length?(p=t,y()):p},g.unknown=function(t){return arguments.length?(e=t,g):e},function(e,r){return t=e,n=r,y()}}function p(){return d()(c,c)}},function(t,n,e){"use strict";e.r(n);var r=e(174);e.d(n,"interpolate",(function(){return r.default}));var i=e(186);e.d(n,"interpolateArray",(function(){return i.default}));var u=e(182);e.d(n,"interpolateBasis",(function(){return u.default}));var o=e(183);e.d(n,"interpolateBasisClosed",(function(){return o.default}));var a=e(188);e.d(n,"interpolateDate",(function(){return a.default}));var c=e(192);e.d(n,"interpolateDiscrete",(function(){return c.default}));var f=e(193);e.d(n,"interpolateHue",(function(){return f.default}));var s=e(189);e.d(n,"interpolateNumber",(function(){return s.default}));var l=e(187);e.d(n,"interpolateNumberArray",(function(){return l.default}));var h=e(190);e.d(n,"interpolateObject",(function(){return h.default}));var d=e(194);e.d(n,"interpolateRound",(function(){return d.default}));var p=e(191);e.d(n,"interpolateString",(function(){return p.default}));var v=e(195);e.d(n,"interpolateTransformCss",(function(){return v.interpolateTransformCss})),e.d(n,"interpolateTransformSvg",(function(){return v.interpolateTransformSvg}));var y=e(198);e.d(n,"interpolateZoom",(function(){return y.default}));var g=e(181);e.d(n,"interpolateRgb",(function(){return g.default})),e.d(n,"interpolateRgbBasis",(function(){return g.rgbBasis})),e.d(n,"interpolateRgbBasisClosed",(function(){return g.rgbBasisClosed}));var b=e(199);e.d(n,"interpolateHsl",(function(){return b.default})),e.d(n,"interpolateHslLong",(function(){return b.hslLong}));var _=e(200);e.d(n,"interpolateLab",(function(){return _.default}));var m=e(201);e.d(n,"interpolateHcl",(function(){return m.default})),e.d(n,"interpolateHclLong",(function(){return m.hclLong}));var x=e(202);e.d(n,"interpolateCubehelix",(function(){return x.default})),e.d(n,"interpolateCubehelixLong",(function(){return x.cubehelixLong}));var w=e(203);e.d(n,"piecewise",(function(){return w.default}));var j=e(204);e.d(n,"quantize",(function(){return j.default}))},function(t,n,e){"use strict";e.r(n);var r=e(175),i=e(181),u=e(186),o=e(188),a=e(189),c=e(190),f=e(191),s=e(185),l=e(187);n.default=function(t,n){var e,h=typeof n;return null==n||"boolean"===h?Object(s.default)(n):("number"===h?a.default:"string"===h?(e=Object(r.color)(n))?(n=e,i.default):f.default:n instanceof r.color?i.default:n instanceof Date?o.default:Object(l.isNumberArray)(n)?l.default:Array.isArray(n)?u.genericArray:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?c.default:a.default)(t,n)}},function(t,n,e){"use strict";e.r(n);var r=e(176);e.d(n,"color",(function(){return r.default})),e.d(n,"rgb",(function(){return r.rgb})),e.d(n,"hsl",(function(){return r.hsl}));var i=e(178);e.d(n,"lab",(function(){return i.default})),e.d(n,"hcl",(function(){return i.hcl})),e.d(n,"lch",(function(){return i.lch})),e.d(n,"gray",(function(){return i.gray}));var u=e(180);e.d(n,"cubehelix",(function(){return u.default}))},function(t,n,e){"use strict";e.r(n),e.d(n,"Color",(function(){return i})),e.d(n,"darker",(function(){return u})),e.d(n,"brighter",(function(){return o})),e.d(n,"default",(function(){return m})),e.d(n,"rgbConvert",(function(){return j})),e.d(n,"rgb",(function(){return O})),e.d(n,"Rgb",(function(){return M})),e.d(n,"hslConvert",(function(){return N})),e.d(n,"hsl",(function(){return C}));var r=e(177);function i(){}var u=.7,o=1/u,a="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",f="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s=/^#([0-9a-f]{3,8})$/,l=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),h=new RegExp("^rgb\\("+[f,f,f]+"\\)$"),d=new RegExp("^rgba\\("+[a,a,a,c]+"\\)$"),p=new RegExp("^rgba\\("+[f,f,f,c]+"\\)$"),v=new RegExp("^hsl\\("+[c,f,f]+"\\)$"),y=new RegExp("^hsla\\("+[c,f,f,c]+"\\)$"),g={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function b(){return this.rgb().formatHex()}function _(){return this.rgb().formatRgb()}function m(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=s.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?x(n):3===e?new M(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?w(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?w(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=l.exec(t))?new M(n[1],n[2],n[3],1):(n=h.exec(t))?new M(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=d.exec(t))?w(n[1],n[2],n[3],n[4]):(n=p.exec(t))?w(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=v.exec(t))?T(n[1],n[2]/100,n[3]/100,1):(n=y.exec(t))?T(n[1],n[2]/100,n[3]/100,n[4]):g.hasOwnProperty(t)?x(g[t]):"transparent"===t?new M(NaN,NaN,NaN,0):null}function x(t){return new M(t>>16&255,t>>8&255,255&t,1)}function w(t,n,e,r){return r<=0&&(t=n=e=NaN),new M(t,n,e,r)}function j(t){return t instanceof i||(t=m(t)),t?new M((t=t.rgb()).r,t.g,t.b,t.opacity):new M}function O(t,n,e,r){return 1===arguments.length?j(t):new M(t,n,e,null==r?1:r)}function M(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function k(){return"#"+A(this.r)+A(this.g)+A(this.b)}function S(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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))+(1===t?")":", "+t+")")}function A(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function T(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new P(t,n,e,r)}function N(t){if(t instanceof P)return new P(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=m(t)),!t)return new P;if(t instanceof P)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,u=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,c=o-u,f=(o+u)/2;return c?(a=n===o?(e-r)/c+6*(e<r):e===o?(r-n)/c+2:(n-e)/c+4,c/=f<.5?o+u:2-o-u,a*=60):c=f>0&&f<1?0:a,new P(a,c,f,t.opacity)}function C(t,n,e,r){return 1===arguments.length?N(t):new P(t,n,e,null==r?1:r)}function P(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function E(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}Object(r.default)(i,m,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:b,formatHex:b,formatHsl:function(){return N(this).formatHsl()},formatRgb:_,toString:_}),Object(r.default)(M,O,Object(r.extend)(i,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new M(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?u:Math.pow(u,t),new M(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:k,formatHex:k,formatRgb:S,toString:S})),Object(r.default)(P,C,Object(r.extend)(i,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new P(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?u:Math.pow(u,t),new P(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new M(E(t>=240?t-240:t+120,i,r),E(t,i,r),E(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,n,e){"use strict";function r(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}e.r(n),e.d(n,"extend",(function(){return r})),n.default=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t}},function(t,n,e){"use strict";e.r(n),e.d(n,"gray",(function(){return f})),e.d(n,"default",(function(){return s})),e.d(n,"Lab",(function(){return l})),e.d(n,"lch",(function(){return g})),e.d(n,"hcl",(function(){return b})),e.d(n,"Hcl",(function(){return _}));var r=e(177),i=e(176),u=e(179),o=6/29,a=3*o*o;function c(t){if(t instanceof l)return new l(t.l,t.a,t.b,t.opacity);if(t instanceof _)return m(t);t instanceof i.Rgb||(t=Object(i.rgbConvert)(t));var n,e,r=v(t.r),u=v(t.g),o=v(t.b),a=h((.2225045*r+.7168786*u+.0606169*o)/1);return r===u&&u===o?n=e=a:(n=h((.4360747*r+.3850649*u+.1430804*o)/.96422),e=h((.0139322*r+.0971045*u+.7141733*o)/.82521)),new l(116*a-16,500*(n-a),200*(a-e),t.opacity)}function f(t,n){return new l(t,0,0,null==n?1:n)}function s(t,n,e,r){return 1===arguments.length?c(t):new l(t,n,e,null==r?1:r)}function l(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function h(t){return t>.008856451679035631?Math.pow(t,1/3):t/a+4/29}function d(t){return t>o?t*t*t:a*(t-4/29)}function p(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function v(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function y(t){if(t instanceof _)return new _(t.h,t.c,t.l,t.opacity);if(t instanceof l||(t=c(t)),0===t.a&&0===t.b)return new _(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*u.rad2deg;return new _(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function g(t,n,e,r){return 1===arguments.length?y(t):new _(e,n,t,null==r?1:r)}function b(t,n,e,r){return 1===arguments.length?y(t):new _(t,n,e,null==r?1:r)}function _(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function m(t){if(isNaN(t.h))return new l(t.l,0,0,t.opacity);var n=t.h*u.deg2rad;return new l(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}Object(r.default)(l,s,Object(r.extend)(i.Color,{brighter:function(t){return new l(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new l(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return n=.96422*d(n),t=1*d(t),e=.82521*d(e),new i.Rgb(p(3.1338561*n-1.6168667*t-.4906146*e),p(-.9787684*n+1.9161415*t+.033454*e),p(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),Object(r.default)(_,b,Object(r.extend)(i.Color,{brighter:function(t){return new _(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new _(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return m(this).rgb()}}))},function(t,n,e){"use strict";e.r(n),e.d(n,"deg2rad",(function(){return r})),e.d(n,"rad2deg",(function(){return i}));var r=Math.PI/180,i=180/Math.PI},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return v})),e.d(n,"Cubehelix",(function(){return y}));var r=e(177),i=e(176),u=e(179),o=-.14861,a=1.78277,c=-.29227,f=-.90649,s=1.97294,l=s*f,h=s*a,d=a*c-f*o;function p(t){if(t instanceof y)return new y(t.h,t.s,t.l,t.opacity);t instanceof i.Rgb||(t=Object(i.rgbConvert)(t));var n=t.r/255,e=t.g/255,r=t.b/255,o=(d*r+l*n-h*e)/(d+l-h),a=r-o,p=(s*(e-o)-c*a)/f,v=Math.sqrt(p*p+a*a)/(s*o*(1-o)),g=v?Math.atan2(p,a)*u.rad2deg-120:NaN;return new y(g<0?g+360:g,v,o,t.opacity)}function v(t,n,e,r){return 1===arguments.length?p(t):new y(t,n,e,null==r?1:r)}function y(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}Object(r.default)(y,v,Object(r.extend)(i.Color,{brighter:function(t){return t=null==t?i.brighter:Math.pow(i.brighter,t),new y(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?i.darker:Math.pow(i.darker,t),new y(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*u.deg2rad,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),l=Math.sin(t);return new i.Rgb(255*(n+e*(o*r+a*l)),255*(n+e*(c*r+f*l)),255*(n+e*(s*r)),this.opacity)}}))},function(t,n,e){"use strict";e.r(n),e.d(n,"rgbBasis",(function(){return c})),e.d(n,"rgbBasisClosed",(function(){return f}));var r=e(175),i=e(182),u=e(183),o=e(184);function a(t){return function(n){var e,i,u=n.length,o=new Array(u),a=new Array(u),c=new Array(u);for(e=0;e<u;++e)i=Object(r.rgb)(n[e]),o[e]=i.r||0,a[e]=i.g||0,c[e]=i.b||0;return o=t(o),a=t(a),c=t(c),i.opacity=1,function(t){return i.r=o(t),i.g=a(t),i.b=c(t),i+""}}}n.default=function t(n){var e=Object(o.gamma)(n);function i(t,n){var i=e((t=Object(r.rgb)(t)).r,(n=Object(r.rgb)(n)).r),u=e(t.g,n.g),a=e(t.b,n.b),c=Object(o.default)(t.opacity,n.opacity);return function(n){return t.r=i(n),t.g=u(n),t.b=a(n),t.opacity=c(n),t+""}}return i.gamma=t,i}(1);var c=a(i.default),f=a(u.default)},function(t,n,e){"use strict";function r(t,n,e,r,i){var u=t*t,o=u*t;return((1-3*t+3*u-o)*n+(4-6*u+3*o)*e+(1+3*t+3*u-3*o)*r+o*i)/6}e.r(n),e.d(n,"basis",(function(){return r})),n.default=function(t){var n=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),u=t[i],o=t[i+1],a=i>0?t[i-1]:2*u-o,c=i<n-1?t[i+2]:2*o-u;return r((e-i/n)*n,a,u,o,c)}}},function(t,n,e){"use strict";e.r(n);var r=e(182);n.default=function(t){var n=t.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*n),u=t[(i+n-1)%n],o=t[i%n],a=t[(i+1)%n],c=t[(i+2)%n];return Object(r.basis)((e-i/n)*n,u,o,a,c)}}},function(t,n,e){"use strict";e.r(n),e.d(n,"hue",(function(){return u})),e.d(n,"gamma",(function(){return o})),e.d(n,"default",(function(){return a}));var r=e(185);function i(t,n){return function(e){return t+e*n}}function u(t,n){var e=n-t;return e?i(t,e>180||e<-180?e-360*Math.round(e/360):e):Object(r.default)(isNaN(t)?n:t)}function o(t){return 1==(t=+t)?a:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):Object(r.default)(isNaN(n)?e:n)}}function a(t,n){var e=n-t;return e?i(t,e):Object(r.default)(isNaN(t)?n:t)}},function(t,n,e){"use strict";e.r(n),n.default=function(t){return function(){return t}}},function(t,n,e){"use strict";e.r(n),e.d(n,"genericArray",(function(){return u}));var r=e(174),i=e(187);function u(t,n){var e,i=n?n.length:0,u=t?Math.min(i,t.length):0,o=new Array(u),a=new Array(i);for(e=0;e<u;++e)o[e]=Object(r.default)(t[e],n[e]);for(;e<i;++e)a[e]=n[e];return function(t){for(e=0;e<u;++e)a[e]=o[e](t);return a}}n.default=function(t,n){return(Object(i.isNumberArray)(n)?i.default:u)(t,n)}},function(t,n,e){"use strict";function r(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}e.r(n),e.d(n,"isNumberArray",(function(){return r})),n.default=function(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(u){for(e=0;e<r;++e)i[e]=t[e]*(1-u)+n[e]*u;return i}}},function(t,n,e){"use strict";e.r(n),n.default=function(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}},function(t,n,e){"use strict";e.r(n),n.default=function(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}},function(t,n,e){"use strict";e.r(n);var r=e(174);n.default=function(t,n){var e,i={},u={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?i[e]=Object(r.default)(t[e],n[e]):u[e]=n[e];return function(t){for(e in i)u[e]=i[e](t);return u}}},function(t,n,e){"use strict";e.r(n);var r=e(189),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,u=new RegExp(i.source,"g");n.default=function(t,n){var e,o,a,c=i.lastIndex=u.lastIndex=0,f=-1,s=[],l=[];for(t+="",n+="";(e=i.exec(t))&&(o=u.exec(n));)(a=o.index)>c&&(a=n.slice(c,a),s[f]?s[f]+=a:s[++f]=a),(e=e[0])===(o=o[0])?s[f]?s[f]+=o:s[++f]=o:(s[++f]=null,l.push({i:f,x:Object(r.default)(e,o)})),c=u.lastIndex;return c<n.length&&(a=n.slice(c),s[f]?s[f]+=a:s[++f]=a),s.length<2?l[0]?function(t){return function(n){return t(n)+""}}(l[0].x):function(t){return function(){return t}}(n):(n=l.length,function(t){for(var e,r=0;r<n;++r)s[(e=l[r]).i]=e.x(t);return s.join("")})}},function(t,n,e){"use strict";e.r(n),n.default=function(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}},function(t,n,e){"use strict";e.r(n);var r=e(184);n.default=function(t,n){var e=Object(r.hue)(+t,+n);return function(t){var n=e(t);return n-360*Math.floor(n/360)}}},function(t,n,e){"use strict";e.r(n),n.default=function(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}},function(t,n,e){"use strict";e.r(n),e.d(n,"interpolateTransformCss",(function(){return o})),e.d(n,"interpolateTransformSvg",(function(){return a}));var r=e(189),i=e(196);function u(t,n,e,i){function u(t){return t.length?t.pop()+" ":""}return function(o,a){var c=[],f=[];return o=t(o),a=t(a),function(t,i,u,o,a,c){if(t!==u||i!==o){var f=a.push("translate(",null,n,null,e);c.push({i:f-4,x:Object(r.default)(t,u)},{i:f-2,x:Object(r.default)(i,o)})}else(u||o)&&a.push("translate("+u+n+o+e)}(o.translateX,o.translateY,a.translateX,a.translateY,c,f),function(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(u(e)+"rotate(",null,i)-2,x:Object(r.default)(t,n)})):n&&e.push(u(e)+"rotate("+n+i)}(o.rotate,a.rotate,c,f),function(t,n,e,o){t!==n?o.push({i:e.push(u(e)+"skewX(",null,i)-2,x:Object(r.default)(t,n)}):n&&e.push(u(e)+"skewX("+n+i)}(o.skewX,a.skewX,c,f),function(t,n,e,i,o,a){if(t!==e||n!==i){var c=o.push(u(o)+"scale(",null,",",null,")");a.push({i:c-4,x:Object(r.default)(t,e)},{i:c-2,x:Object(r.default)(n,i)})}else 1===e&&1===i||o.push(u(o)+"scale("+e+","+i+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,c,f),o=a=null,function(t){for(var n,e=-1,r=f.length;++e<r;)c[(n=f[e]).i]=n.x(t);return c.join("")}}}var o=u(i.parseCss,"px, ","px)","deg)"),a=u(i.parseSvg,", ",")",")")},function(t,n,e){"use strict";e.r(n),e.d(n,"parseCss",(function(){return c})),e.d(n,"parseSvg",(function(){return f}));var r,i,u,o,a=e(197);function c(t){return"none"===t?a.identity:(r||(r=document.createElement("DIV"),i=document.documentElement,u=document.defaultView),r.style.transform=t,t=u.getComputedStyle(i.appendChild(r),null).getPropertyValue("transform"),i.removeChild(r),t=t.slice(7,-1).split(","),Object(a.default)(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function f(t){return null==t?a.identity:(o||(o=document.createElementNS("http://www.w3.org/2000/svg","g")),o.setAttribute("transform",t),(t=o.transform.baseVal.consolidate())?(t=t.matrix,Object(a.default)(t.a,t.b,t.c,t.d,t.e,t.f)):a.identity)}},function(t,n,e){"use strict";e.r(n),e.d(n,"identity",(function(){return i}));var r=180/Math.PI,i={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};n.default=function(t,n,e,i,u,o){var a,c,f;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(f=t*e+n*i)&&(e-=t*f,i-=n*f),(c=Math.sqrt(e*e+i*i))&&(e/=c,i/=c,f/=c),t*i<n*e&&(t=-t,n=-n,f=-f,a=-a),{translateX:u,translateY:o,rotate:Math.atan2(n,t)*r,skewX:Math.atan(f)*r,scaleX:a,scaleY:c}}},function(t,n,e){"use strict";e.r(n);var r=Math.SQRT2;function i(t){return((t=Math.exp(t))+1/t)/2}n.default=function(t,n){var e,u,o=t[0],a=t[1],c=t[2],f=n[0],s=n[1],l=n[2],h=f-o,d=s-a,p=h*h+d*d;if(p<1e-12)u=Math.log(l/c)/r,e=function(t){return[o+t*h,a+t*d,c*Math.exp(r*t*u)]};else{var v=Math.sqrt(p),y=(l*l-c*c+4*p)/(2*c*2*v),g=(l*l-c*c-4*p)/(2*l*2*v),b=Math.log(Math.sqrt(y*y+1)-y),_=Math.log(Math.sqrt(g*g+1)-g);u=(_-b)/r,e=function(t){var n,e=t*u,f=i(b),s=c/(2*v)*(f*(n=r*e+b,((n=Math.exp(2*n))-1)/(n+1))-function(t){return((t=Math.exp(t))-1/t)/2}(b));return[o+s*h,a+s*d,c*f/i(r*e+b)]}}return e.duration=1e3*u,e}},function(t,n,e){"use strict";e.r(n),e.d(n,"hslLong",(function(){return o}));var r=e(175),i=e(184);function u(t){return function(n,e){var u=t((n=Object(r.hsl)(n)).h,(e=Object(r.hsl)(e)).h),o=Object(i.default)(n.s,e.s),a=Object(i.default)(n.l,e.l),c=Object(i.default)(n.opacity,e.opacity);return function(t){return n.h=u(t),n.s=o(t),n.l=a(t),n.opacity=c(t),n+""}}}n.default=u(i.hue);var o=u(i.default)},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return u}));var r=e(175),i=e(184);function u(t,n){var e=Object(i.default)((t=Object(r.lab)(t)).l,(n=Object(r.lab)(n)).l),u=Object(i.default)(t.a,n.a),o=Object(i.default)(t.b,n.b),a=Object(i.default)(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=u(n),t.b=o(n),t.opacity=a(n),t+""}}},function(t,n,e){"use strict";e.r(n),e.d(n,"hclLong",(function(){return o}));var r=e(175),i=e(184);function u(t){return function(n,e){var u=t((n=Object(r.hcl)(n)).h,(e=Object(r.hcl)(e)).h),o=Object(i.default)(n.c,e.c),a=Object(i.default)(n.l,e.l),c=Object(i.default)(n.opacity,e.opacity);return function(t){return n.h=u(t),n.c=o(t),n.l=a(t),n.opacity=c(t),n+""}}}n.default=u(i.hue);var o=u(i.default)},function(t,n,e){"use strict";e.r(n),e.d(n,"cubehelixLong",(function(){return o}));var r=e(175),i=e(184);function u(t){return function n(e){function u(n,u){var o=t((n=Object(r.cubehelix)(n)).h,(u=Object(r.cubehelix)(u)).h),a=Object(i.default)(n.s,u.s),c=Object(i.default)(n.l,u.l),f=Object(i.default)(n.opacity,u.opacity);return function(t){return n.h=o(t),n.s=a(t),n.l=c(Math.pow(t,e)),n.opacity=f(t),n+""}}return e=+e,u.gamma=n,u}(1)}n.default=u(i.hue);var o=u(i.default)},function(t,n,e){"use strict";function r(t,n){for(var e=0,r=n.length-1,i=n[0],u=new Array(r<0?0:r);e<r;)u[e]=t(i,i=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return u[n](t-n)}}e.r(n),e.d(n,"default",(function(){return r}))},function(t,n,e){"use strict";e.r(n),n.default=function(t,n){for(var e=new Array(n),r=0;r<n;++r)e[r]=t(r/(n-1));return e}},function(t,n,e){"use strict";e.r(n),n.default=function(t){return function(){return t}}},function(t,n,e){"use strict";e.r(n),n.default=function(t){return+t}},function(t,n,e){"use strict";e.r(n);var r=e(126),i=e(208);n.default=function(t,n,e,u){var o,a=Object(r.tickStep)(t,n,e);switch((u=Object(i.formatSpecifier)(null==u?",f":u)).type){case"s":var c=Math.max(Math.abs(t),Math.abs(n));return null!=u.precision||isNaN(o=Object(i.precisionPrefix)(a,c))||(u.precision=o),Object(i.formatPrefix)(u,c);case"":case"e":case"g":case"p":case"r":null!=u.precision||isNaN(o=Object(i.precisionRound)(a,Math.max(Math.abs(t),Math.abs(n))))||(u.precision=o-("e"===u.type));break;case"f":case"%":null!=u.precision||isNaN(o=Object(i.precisionFixed)(a))||(u.precision=o-2*("%"===u.type))}return Object(i.format)(u)}},function(t,n,e){"use strict";e.r(n);var r=e(209);e.d(n,"formatDefaultLocale",(function(){return r.default})),e.d(n,"format",(function(){return r.format})),e.d(n,"formatPrefix",(function(){return r.formatPrefix}));var i=e(210);e.d(n,"formatLocale",(function(){return i.default}));var u=e(215);e.d(n,"formatSpecifier",(function(){return u.default})),e.d(n,"FormatSpecifier",(function(){return u.FormatSpecifier}));var o=e(221);e.d(n,"precisionFixed",(function(){return o.default}));var a=e(222);e.d(n,"precisionPrefix",(function(){return a.default}));var c=e(223);e.d(n,"precisionRound",(function(){return c.default}))},function(t,n,e){"use strict";e.r(n),e.d(n,"format",(function(){return i})),e.d(n,"formatPrefix",(function(){return u})),e.d(n,"default",(function(){return a}));var r,i,u,o=e(210);function a(t){return r=Object(o.default)(t),i=r.format,u=r.formatPrefix,r}a({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})},function(t,n,e){"use strict";e.r(n);var r=e(211),i=e(213),u=e(214),o=e(215),a=e(216),c=e(217),f=e(218),s=e(220),l=Array.prototype.map,h=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];n.default=function(t){var n=void 0===t.grouping||void 0===t.thousands?s.default:Object(i.default)(l.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",d=void 0===t.currency?"":t.currency[1]+"",p=void 0===t.decimal?".":t.decimal+"",v=void 0===t.numerals?s.default:Object(u.default)(l.call(t.numerals,String)),y=void 0===t.percent?"%":t.percent+"",g=void 0===t.minus?"-":t.minus+"",b=void 0===t.nan?"NaN":t.nan+"";function _(t){var r=(t=Object(o.default)(t)).fill,i=t.align,u=t.sign,s=t.symbol,l=t.zero,_=t.width,m=t.comma,x=t.precision,w=t.trim,j=t.type;"n"===j?(m=!0,j="g"):c.default[j]||(void 0===x&&(x=12),w=!0,j="g"),(l||"0"===r&&"="===i)&&(l=!0,r="0",i="=");var O="$"===s?e:"#"===s&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",M="$"===s?d:/[%p]/.test(j)?y:"",k=c.default[j],S=/[defgprs%]/.test(j);function A(t){var e,o,c,s=O,d=M;if("c"===j)d=k(t)+d,t="";else{var y=(t=+t)<0||1/t<0;if(t=isNaN(t)?b:k(Math.abs(t),x),w&&(t=Object(a.default)(t)),y&&0==+t&&"+"!==u&&(y=!1),s=(y?"("===u?u:g:"-"===u||"("===u?"":u)+s,d=("s"===j?h[8+f.prefixExponent/3]:"")+d+(y&&"("===u?")":""),S)for(e=-1,o=t.length;++e<o;)if(48>(c=t.charCodeAt(e))||c>57){d=(46===c?p+t.slice(e+1):t.slice(e))+d,t=t.slice(0,e);break}}m&&!l&&(t=n(t,1/0));var A=s.length+t.length+d.length,T=A<_?new Array(_-A+1).join(r):"";switch(m&&l&&(t=n(T+t,T.length?_-d.length:1/0),T=""),i){case"<":t=s+t+d+T;break;case"=":t=s+T+t+d;break;case"^":t=T.slice(0,A=T.length>>1)+s+t+d+T.slice(A);break;default:t=T+s+t+d}return v(t)}return x=void 0===x?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),A.toString=function(){return t+""},A}return{format:_,formatPrefix:function(t,n){var e=_(((t=Object(o.default)(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Object(r.default)(n)/3))),u=Math.pow(10,-i),a=h[8+i/3];return function(t){return e(u*t)+a}}}}},function(t,n,e){"use strict";e.r(n);var r=e(212);n.default=function(t){return(t=Object(r.default)(Math.abs(t)))?t[1]:NaN}},function(t,n,e){"use strict";e.r(n),n.default=function(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}},function(t,n,e){"use strict";e.r(n),n.default=function(t,n){return function(e,r){for(var i=e.length,u=[],o=0,a=t[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),u.push(e.substring(i-=a,i+a)),!((c+=a+1)>r));)a=t[o=(o+1)%t.length];return u.reverse().join(n)}}},function(t,n,e){"use strict";e.r(n),n.default=function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return i})),e.d(n,"FormatSpecifier",(function(){return u}));var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(n=r.exec(t)))throw new Error("invalid format: "+t);var n;return new u({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function u(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=u.prototype,u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(t,n,e){"use strict";e.r(n),n.default=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}},function(t,n,e){"use strict";e.r(n);var r=e(218),i=e(219);n.default={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Object(i.default)(100*t,n)},r:i.default,s:r.default,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}}},function(t,n,e){"use strict";e.r(n),e.d(n,"prefixExponent",(function(){return r}));var r,i=e(212);n.default=function(t,n){var e=Object(i.default)(t,n);if(!e)return t+"";var u=e[0],o=e[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,c=u.length;return a===c?u:a>c?u+new Array(a-c+1).join("0"):a>0?u.slice(0,a)+"."+u.slice(a):"0."+new Array(1-a).join("0")+Object(i.default)(t,Math.max(0,n+a-1))[0]}},function(t,n,e){"use strict";e.r(n);var r=e(212);n.default=function(t,n){var e=Object(r.default)(t,n);if(!e)return t+"";var i=e[0],u=e[1];return u<0?"0."+new Array(-u).join("0")+i:i.length>u+1?i.slice(0,u+1)+"."+i.slice(u+1):i+new Array(u-i.length+2).join("0")}},function(t,n,e){"use strict";e.r(n),n.default=function(t){return t}},function(t,n,e){"use strict";e.r(n);var r=e(211);n.default=function(t){return Math.max(0,-Object(r.default)(Math.abs(t)))}},function(t,n,e){"use strict";e.r(n);var r=e(211);n.default=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Object(r.default)(n)/3)))-Object(r.default)(Math.abs(t)))}},function(t,n,e){"use strict";e.r(n);var r=e(211);n.default=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Object(r.default)(n)-Object(r.default)(t))+1}},function(t,n,e){"use strict";e.r(n),e.d(n,"loggish",(function(){return p})),e.d(n,"default",(function(){return v}));var r=e(126),i=e(208),u=e(225),o=e(172),a=e(168);function c(t){return Math.log(t)}function f(t){return Math.exp(t)}function s(t){return-Math.log(-t)}function l(t){return-Math.exp(-t)}function h(t){return isFinite(t)?+("1e"+t):t<0?0:t}function d(t){return function(n){return-t(-n)}}function p(t){var n,e,o=t(c,f),a=o.domain,p=10;function v(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(n){return Math.log(n)/t})}(p),e=function(t){return 10===t?h:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}(p),a()[0]<0?(n=d(n),e=d(e),t(s,l)):t(c,f),o}return o.base=function(t){return arguments.length?(p=+t,v()):p},o.domain=function(t){return arguments.length?(a(t),v()):a()},o.ticks=function(t){var i,u=a(),o=u[0],c=u[u.length-1];(i=c<o)&&(h=o,o=c,c=h);var f,s,l,h=n(o),d=n(c),v=null==t?10:+t,y=[];if(!(p%1)&&d-h<v){if(h=Math.floor(h),d=Math.ceil(d),o>0){for(;h<=d;++h)for(s=1,f=e(h);s<p;++s)if(!((l=f*s)<o)){if(l>c)break;y.push(l)}}else for(;h<=d;++h)for(s=p-1,f=e(h);s>=1;--s)if(!((l=f*s)<o)){if(l>c)break;y.push(l)}2*y.length<v&&(y=Object(r.ticks)(o,c,v))}else y=Object(r.ticks)(h,d,Math.min(d-h,v)).map(e);return i?y.reverse():y},o.tickFormat=function(t,r){if(null==r&&(r=10===p?".0e":","),"function"!=typeof r&&(r=Object(i.format)(r)),t===1/0)return r;null==t&&(t=10);var u=Math.max(1,p*t/o.ticks().length);return function(t){var i=t/e(Math.round(n(t)));return i*p<p-.5&&(i*=p),i<=u?r(t):""}},o.nice=function(){return a(Object(u.default)(a(),{floor:function(t){return e(Math.floor(n(t)))},ceil:function(t){return e(Math.ceil(n(t)))}}))},o}function v(){var t=p(Object(o.transformer)()).domain([1,10]);return t.copy=function(){return Object(o.copy)(t,v()).base(t.base())},a.initRange.apply(t,arguments),t}},function(t,n,e){"use strict";e.r(n),n.default=function(t,n){var e,r=0,i=(t=t.slice()).length-1,u=t[r],o=t[i];return o<u&&(e=r,r=i,i=e,e=u,u=o,o=e),t[r]=n.floor(u),t[i]=n.ceil(o),t}},function(t,n,e){"use strict";e.r(n),e.d(n,"symlogish",(function(){return c})),e.d(n,"default",(function(){return f}));var r=e(171),i=e(172),u=e(168);function o(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function a(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function c(t){var n=1,e=t(o(n),a(n));return e.constant=function(e){return arguments.length?t(o(n=+e),a(n)):n},Object(r.linearish)(e)}function f(){var t=c(Object(i.transformer)());return t.copy=function(){return Object(i.copy)(t,f()).constant(t.constant())},u.initRange.apply(t,arguments)}},function(t,n,e){"use strict";e.r(n),e.d(n,"powish",(function(){return f})),e.d(n,"default",(function(){return s})),e.d(n,"sqrt",(function(){return l}));var r=e(171),i=e(172),u=e(168);function o(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function a(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function c(t){return t<0?-t*t:t*t}function f(t){var n=t(i.identity,i.identity),e=1;function u(){return 1===e?t(i.identity,i.identity):.5===e?t(a,c):t(o(e),o(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,u()):e},Object(r.linearish)(n)}function s(){var t=f(Object(i.transformer)());return t.copy=function(){return Object(i.copy)(t,s()).exponent(t.exponent())},u.initRange.apply(t,arguments),t}function l(){return s.apply(null,arguments).exponent(.5)}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return f}));var r=e(172),i=e(168),u=e(171),o=e(206);function a(t){return Math.sign(t)*t*t}function c(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function f(){var t,n=Object(r.default)(),e=[0,1],s=!1;function l(e){var r=c(n(e));return isNaN(r)?t:s?Math.round(r):r}return l.invert=function(t){return n.invert(a(t))},l.domain=function(t){return arguments.length?(n.domain(t),l):n.domain()},l.range=function(t){return arguments.length?(n.range((e=Array.from(t,o.default)).map(a)),l):e.slice()},l.rangeRound=function(t){return l.range(t).round(!0)},l.round=function(t){return arguments.length?(s=!!t,l):s},l.clamp=function(t){return arguments.length?(n.clamp(t),l):n.clamp()},l.unknown=function(n){return arguments.length?(t=n,l):t},l.copy=function(){return f(n.domain(),e).round(s).clamp(n.clamp()).unknown(t)},i.initRange.apply(l,arguments),Object(u.linearish)(l)}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return u}));var r=e(126),i=e(168);function u(){var t,n=[],e=[],o=[];function a(){var t=0,i=Math.max(1,e.length);for(o=new Array(i-1);++t<i;)o[t-1]=Object(r.quantile)(n,t/i);return c}function c(n){return isNaN(n=+n)?t:e[Object(r.bisect)(o,n)]}return c.invertExtent=function(t){var r=e.indexOf(t);return r<0?[NaN,NaN]:[r>0?o[r-1]:n[0],r<o.length?o[r]:n[n.length-1]]},c.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(r.ascending),a()},c.range=function(t){return arguments.length?(e=Array.from(t),a()):e.slice()},c.unknown=function(n){return arguments.length?(t=n,c):t},c.quantiles=function(){return o.slice()},c.copy=function(){return u().domain(n).range(e).unknown(t)},i.initRange.apply(c,arguments)}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return o}));var r=e(126),i=e(171),u=e(168);function o(){var t,n=0,e=1,a=1,c=[.5],f=[0,1];function s(n){return n<=n?f[Object(r.bisect)(c,n,0,a)]:t}function l(){var t=-1;for(c=new Array(a);++t<a;)c[t]=((t+1)*e-(t-a)*n)/(a+1);return s}return s.domain=function(t){return arguments.length?([n,e]=t,n=+n,e=+e,l()):[n,e]},s.range=function(t){return arguments.length?(a=(f=Array.from(t)).length-1,l()):f.slice()},s.invertExtent=function(t){var r=f.indexOf(t);return r<0?[NaN,NaN]:r<1?[n,c[0]]:r>=a?[c[a-1],e]:[c[r-1],c[r]]},s.unknown=function(n){return arguments.length?(t=n,s):s},s.thresholds=function(){return c.slice()},s.copy=function(){return o().domain([n,e]).range(f).unknown(t)},u.initRange.apply(Object(i.linearish)(s),arguments)}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return u}));var r=e(126),i=e(168);function u(){var t,n=[.5],e=[0,1],o=1;function a(i){return i<=i?e[Object(r.bisect)(n,i,0,o)]:t}return a.domain=function(t){return arguments.length?(n=Array.from(t),o=Math.min(n.length,e.length-1),a):n.slice()},a.range=function(t){return arguments.length?(e=Array.from(t),o=Math.min(n.length,e.length-1),a):e.slice()},a.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},a.unknown=function(n){return arguments.length?(t=n,a):t},a.copy=function(){return u().domain(n).range(e).unknown(t)},i.initRange.apply(a,arguments)}},function(t,n,e){"use strict";e.r(n),e.d(n,"calendar",(function(){return l}));var r=e(126),i=e(233),u=e(250),o=e(172),a=e(168),c=e(225);function f(t){return new Date(t)}function s(t){return t instanceof Date?+t:+new Date(+t)}function l(t,n,e,i,u,a,h,d,p){var v=Object(o.default)(),y=v.invert,g=v.domain,b=p(".%L"),_=p(":%S"),m=p("%I:%M"),x=p("%I %p"),w=p("%a %d"),j=p("%b %d"),O=p("%B"),M=p("%Y"),k=[[h,1,1e3],[h,5,5e3],[h,15,15e3],[h,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[u,1,36e5],[u,3,108e5],[u,6,216e5],[u,12,432e5],[i,1,864e5],[i,2,1728e5],[e,1,6048e5],[n,1,2592e6],[n,3,7776e6],[t,1,31536e6]];function S(r){return(h(r)<r?b:a(r)<r?_:u(r)<r?m:i(r)<r?x:n(r)<r?e(r)<r?w:j:t(r)<r?O:M)(r)}function A(n,e,i){if(null==n&&(n=10),"number"==typeof n){var u,o=Math.abs(i-e)/n,a=Object(r.bisector)((function(t){return t[2]})).right(k,o);return a===k.length?(u=Object(r.tickStep)(e/31536e6,i/31536e6,n),n=t):a?(u=(a=k[o/k[a-1][2]<k[a][2]/o?a-1:a])[1],n=a[0]):(u=Math.max(Object(r.tickStep)(e,i,n),1),n=d),n.every(u)}return n}return v.invert=function(t){return new Date(y(t))},v.domain=function(t){return arguments.length?g(Array.from(t,s)):g().map(f)},v.ticks=function(t){var n,e=g(),r=e[0],i=e[e.length-1],u=i<r;return u&&(n=r,r=i,i=n),n=(n=A(t,r,i))?n.range(r,i+1):[],u?n.reverse():n},v.tickFormat=function(t,n){return null==n?S:p(n)},v.nice=function(t){var n=g();return(t=A(t,n[0],n[n.length-1]))?g(Object(c.default)(n,t)):v},v.copy=function(){return Object(o.copy)(v,l(t,n,e,i,u,a,h,d,p))},v}n.default=function(){return a.initRange.apply(l(i.timeYear,i.timeMonth,i.timeWeek,i.timeDay,i.timeHour,i.timeMinute,i.timeSecond,i.timeMillisecond,u.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}},function(t,n,e){"use strict";e.r(n);var r=e(234);e.d(n,"timeInterval",(function(){return r.default}));var i=e(235);e.d(n,"timeMillisecond",(function(){return i.default})),e.d(n,"timeMilliseconds",(function(){return i.milliseconds})),e.d(n,"utcMillisecond",(function(){return i.default})),e.d(n,"utcMilliseconds",(function(){return i.milliseconds}));var u=e(236);e.d(n,"timeSecond",(function(){return u.default})),e.d(n,"timeSeconds",(function(){return u.seconds})),e.d(n,"utcSecond",(function(){return u.default})),e.d(n,"utcSeconds",(function(){return u.seconds}));var o=e(238);e.d(n,"timeMinute",(function(){return o.default})),e.d(n,"timeMinutes",(function(){return o.minutes}));var a=e(239);e.d(n,"timeHour",(function(){return a.default})),e.d(n,"timeHours",(function(){return a.hours}));var c=e(240);e.d(n,"timeDay",(function(){return c.default})),e.d(n,"timeDays",(function(){return c.days}));var f=e(241);e.d(n,"timeWeek",(function(){return f.sunday})),e.d(n,"timeWeeks",(function(){return f.sundays})),e.d(n,"timeSunday",(function(){return f.sunday})),e.d(n,"timeSundays",(function(){return f.sundays})),e.d(n,"timeMonday",(function(){return f.monday})),e.d(n,"timeMondays",(function(){return f.mondays})),e.d(n,"timeTuesday",(function(){return f.tuesday})),e.d(n,"timeTuesdays",(function(){return f.tuesdays})),e.d(n,"timeWednesday",(function(){return f.wednesday})),e.d(n,"timeWednesdays",(function(){return f.wednesdays})),e.d(n,"timeThursday",(function(){return f.thursday})),e.d(n,"timeThursdays",(function(){return f.thursdays})),e.d(n,"timeFriday",(function(){return f.friday})),e.d(n,"timeFridays",(function(){return f.fridays})),e.d(n,"timeSaturday",(function(){return f.saturday})),e.d(n,"timeSaturdays",(function(){return f.saturdays}));var s=e(242);e.d(n,"timeMonth",(function(){return s.default})),e.d(n,"timeMonths",(function(){return s.months}));var l=e(243);e.d(n,"timeYear",(function(){return l.default})),e.d(n,"timeYears",(function(){return l.years}));var h=e(244);e.d(n,"utcMinute",(function(){return h.default})),e.d(n,"utcMinutes",(function(){return h.utcMinutes}));var d=e(245);e.d(n,"utcHour",(function(){return d.default})),e.d(n,"utcHours",(function(){return d.utcHours}));var p=e(246);e.d(n,"utcDay",(function(){return p.default})),e.d(n,"utcDays",(function(){return p.utcDays}));var v=e(247);e.d(n,"utcWeek",(function(){return v.utcSunday})),e.d(n,"utcWeeks",(function(){return v.utcSundays})),e.d(n,"utcSunday",(function(){return v.utcSunday})),e.d(n,"utcSundays",(function(){return v.utcSundays})),e.d(n,"utcMonday",(function(){return v.utcMonday})),e.d(n,"utcMondays",(function(){return v.utcMondays})),e.d(n,"utcTuesday",(function(){return v.utcTuesday})),e.d(n,"utcTuesdays",(function(){return v.utcTuesdays})),e.d(n,"utcWednesday",(function(){return v.utcWednesday})),e.d(n,"utcWednesdays",(function(){return v.utcWednesdays})),e.d(n,"utcThursday",(function(){return v.utcThursday})),e.d(n,"utcThursdays",(function(){return v.utcThursdays})),e.d(n,"utcFriday",(function(){return v.utcFriday})),e.d(n,"utcFridays",(function(){return v.utcFridays})),e.d(n,"utcSaturday",(function(){return v.utcSaturday})),e.d(n,"utcSaturdays",(function(){return v.utcSaturdays}));var y=e(248);e.d(n,"utcMonth",(function(){return y.default})),e.d(n,"utcMonths",(function(){return y.utcMonths}));var g=e(249);e.d(n,"utcYear",(function(){return g.default})),e.d(n,"utcYears",(function(){return g.utcYears}))},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return u}));var r=new Date,i=new Date;function u(t,n,e,o){function a(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return a.floor=function(n){return t(n=new Date(+n)),n},a.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},a.round=function(t){var n=a(t),e=a.ceil(t);return t-n<e-t?n:e},a.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},a.range=function(e,r,i){var u,o=[];if(e=a.ceil(e),i=null==i?1:Math.floor(i),!(e<r&&i>0))return o;do{o.push(u=new Date(+e)),n(e,i),t(e)}while(u<e&&e<r);return o},a.filter=function(e){return u((function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(a.count=function(n,u){return r.setTime(+n),i.setTime(+u),t(r),t(i),Math.floor(e(r,i))},a.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?a.filter(o?function(n){return o(n)%t==0}:function(n){return a.count(0,n)%t==0}):a:null}),a}},function(t,n,e){"use strict";e.r(n),e.d(n,"milliseconds",(function(){return u}));var r=e(234),i=Object(r.default)((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Object(r.default)((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):i:null},n.default=i;var u=i.range},function(t,n,e){"use strict";e.r(n),e.d(n,"seconds",(function(){return o}));var r=e(234),i=e(237),u=Object(r.default)((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*i.durationSecond)}),(function(t,n){return(n-t)/i.durationSecond}),(function(t){return t.getUTCSeconds()}));n.default=u;var o=u.range},function(t,n,e){"use strict";e.r(n),e.d(n,"durationSecond",(function(){return r})),e.d(n,"durationMinute",(function(){return i})),e.d(n,"durationHour",(function(){return u})),e.d(n,"durationDay",(function(){return o})),e.d(n,"durationWeek",(function(){return a}));var r=1e3,i=6e4,u=36e5,o=864e5,a=6048e5},function(t,n,e){"use strict";e.r(n),e.d(n,"minutes",(function(){return o}));var r=e(234),i=e(237),u=Object(r.default)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.durationSecond)}),(function(t,n){t.setTime(+t+n*i.durationMinute)}),(function(t,n){return(n-t)/i.durationMinute}),(function(t){return t.getMinutes()}));n.default=u;var o=u.range},function(t,n,e){"use strict";e.r(n),e.d(n,"hours",(function(){return o}));var r=e(234),i=e(237),u=Object(r.default)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.durationSecond-t.getMinutes()*i.durationMinute)}),(function(t,n){t.setTime(+t+n*i.durationHour)}),(function(t,n){return(n-t)/i.durationHour}),(function(t){return t.getHours()}));n.default=u;var o=u.range},function(t,n,e){"use strict";e.r(n),e.d(n,"days",(function(){return o}));var r=e(234),i=e(237),u=Object(r.default)((function(t){t.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*i.durationMinute)/i.durationDay}),(function(t){return t.getDate()-1}));n.default=u;var o=u.range},function(t,n,e){"use strict";e.r(n),e.d(n,"sunday",(function(){return o})),e.d(n,"monday",(function(){return a})),e.d(n,"tuesday",(function(){return c})),e.d(n,"wednesday",(function(){return f})),e.d(n,"thursday",(function(){return s})),e.d(n,"friday",(function(){return l})),e.d(n,"saturday",(function(){return h})),e.d(n,"sundays",(function(){return d})),e.d(n,"mondays",(function(){return p})),e.d(n,"tuesdays",(function(){return v})),e.d(n,"wednesdays",(function(){return y})),e.d(n,"thursdays",(function(){return g})),e.d(n,"fridays",(function(){return b})),e.d(n,"saturdays",(function(){return _}));var r=e(234),i=e(237);function u(t){return Object(r.default)((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*i.durationMinute)/i.durationWeek}))}var o=u(0),a=u(1),c=u(2),f=u(3),s=u(4),l=u(5),h=u(6),d=o.range,p=a.range,v=c.range,y=f.range,g=s.range,b=l.range,_=h.range},function(t,n,e){"use strict";e.r(n),e.d(n,"months",(function(){return u}));var r=e(234),i=Object(r.default)((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));n.default=i;var u=i.range},function(t,n,e){"use strict";e.r(n),e.d(n,"years",(function(){return u}));var r=e(234),i=Object(r.default)((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.default)((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null},n.default=i;var u=i.range},function(t,n,e){"use strict";e.r(n),e.d(n,"utcMinutes",(function(){return o}));var r=e(234),i=e(237),u=Object(r.default)((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*i.durationMinute)}),(function(t,n){return(n-t)/i.durationMinute}),(function(t){return t.getUTCMinutes()}));n.default=u;var o=u.range},function(t,n,e){"use strict";e.r(n),e.d(n,"utcHours",(function(){return o}));var r=e(234),i=e(237),u=Object(r.default)((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*i.durationHour)}),(function(t,n){return(n-t)/i.durationHour}),(function(t){return t.getUTCHours()}));n.default=u;var o=u.range},function(t,n,e){"use strict";e.r(n),e.d(n,"utcDays",(function(){return o}));var r=e(234),i=e(237),u=Object(r.default)((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/i.durationDay}),(function(t){return t.getUTCDate()-1}));n.default=u;var o=u.range},function(t,n,e){"use strict";e.r(n),e.d(n,"utcSunday",(function(){return o})),e.d(n,"utcMonday",(function(){return a})),e.d(n,"utcTuesday",(function(){return c})),e.d(n,"utcWednesday",(function(){return f})),e.d(n,"utcThursday",(function(){return s})),e.d(n,"utcFriday",(function(){return l})),e.d(n,"utcSaturday",(function(){return h})),e.d(n,"utcSundays",(function(){return d})),e.d(n,"utcMondays",(function(){return p})),e.d(n,"utcTuesdays",(function(){return v})),e.d(n,"utcWednesdays",(function(){return y})),e.d(n,"utcThursdays",(function(){return g})),e.d(n,"utcFridays",(function(){return b})),e.d(n,"utcSaturdays",(function(){return _}));var r=e(234),i=e(237);function u(t){return Object(r.default)((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/i.durationWeek}))}var o=u(0),a=u(1),c=u(2),f=u(3),s=u(4),l=u(5),h=u(6),d=o.range,p=a.range,v=c.range,y=f.range,g=s.range,b=l.range,_=h.range},function(t,n,e){"use strict";e.r(n),e.d(n,"utcMonths",(function(){return u}));var r=e(234),i=Object(r.default)((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));n.default=i;var u=i.range},function(t,n,e){"use strict";e.r(n),e.d(n,"utcYears",(function(){return u}));var r=e(234),i=Object(r.default)((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.default)((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null},n.default=i;var u=i.range},function(t,n,e){"use strict";e.r(n);var r=e(251);e.d(n,"timeFormatDefaultLocale",(function(){return r.default})),e.d(n,"timeFormat",(function(){return r.timeFormat})),e.d(n,"timeParse",(function(){return r.timeParse})),e.d(n,"utcFormat",(function(){return r.utcFormat})),e.d(n,"utcParse",(function(){return r.utcParse}));var i=e(252);e.d(n,"timeFormatLocale",(function(){return i.default}));var u=e(253);e.d(n,"isoFormat",(function(){return u.default}));var o=e(254);e.d(n,"isoParse",(function(){return o.default}))},function(t,n,e){"use strict";e.r(n),e.d(n,"timeFormat",(function(){return i})),e.d(n,"timeParse",(function(){return u})),e.d(n,"utcFormat",(function(){return o})),e.d(n,"utcParse",(function(){return a})),e.d(n,"default",(function(){return f}));var r,i,u,o,a,c=e(252);function f(t){return r=Object(c.default)(t),i=r.format,u=r.parse,o=r.utcFormat,a=r.utcParse,r}f({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(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return a}));var r=e(233);function i(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function u(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function o(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}function a(t){var n=t.dateTime,e=t.date,a=t.time,f=t.periods,s=t.days,l=t.shortDays,h=t.months,d=t.shortMonths,_t=p(f),mt=v(f),xt=p(s),wt=v(s),jt=p(l),Ot=v(l),Mt=p(h),kt=v(h),St=p(d),At=v(d),Tt={a:function(t){return l[t.getDay()]},A:function(t){return s[t.getDay()]},b:function(t){return d[t.getMonth()]},B:function(t){return h[t.getMonth()]},c:null,d:L,e:L,f:H,H:F,I:q,j:U,L:I,m:z,M:Y,p:function(t){return f[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:gt,s:bt,S:B,u:V,U:W,V:$,w:X,W:G,x:null,X:null,y:Z,Y:Q,Z:J,"%":yt},Nt={a:function(t){return l[t.getUTCDay()]},A:function(t){return s[t.getUTCDay()]},b:function(t){return d[t.getUTCMonth()]},B:function(t){return h[t.getUTCMonth()]},c:null,d:K,e:K,f:it,H:tt,I:nt,j:et,L:rt,m:ut,M:ot,p:function(t){return f[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:gt,s:bt,S:at,u:ct,U:ft,V:st,w:lt,W:ht,x:null,X:null,y:dt,Y:pt,Z:vt,"%":yt},Ct={a:function(t,n,e){var r=jt.exec(n.slice(e));return r?(t.w=Ot[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=xt.exec(n.slice(e));return r?(t.w=wt[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=St.exec(n.slice(e));return r?(t.m=At[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=Mt.exec(n.slice(e));return r?(t.m=kt[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return Dt(t,n,e,r)},d:k,e:k,f:P,H:A,I:A,j:S,L:C,m:M,M:T,p:function(t,n,e){var r=_t.exec(n.slice(e));return r?(t.p=mt[r[0].toLowerCase()],e+r[0].length):-1},q:O,Q:D,s:R,S:N,u:g,U:b,V:_,w:y,W:m,x:function(t,n,r){return Dt(t,e,n,r)},X:function(t,n,e){return Dt(t,a,n,e)},y:w,Y:x,Z:j,"%":E};function Pt(t,n){return function(e){var r,i,u,o=[],a=-1,f=0,s=t.length;for(e instanceof Date||(e=new Date(+e));++a<s;)37===t.charCodeAt(a)&&(o.push(t.slice(f,a)),null!=(i=c[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(u=n[r])&&(r=u(e,i)),o.push(r),f=a+1);return o.push(t.slice(f,a)),o.join("")}}function Et(t,n){return function(e){var a,c,f=o(1900,void 0,1);if(Dt(f,t,e+="",0)!=e.length)return null;if("Q"in f)return new Date(f.Q);if("s"in f)return new Date(1e3*f.s+("L"in f?f.L:0));if(n&&!("Z"in f)&&(f.Z=0),"p"in f&&(f.H=f.H%12+12*f.p),void 0===f.m&&(f.m="q"in f?f.q:0),"V"in f){if(f.V<1||f.V>53)return null;"w"in f||(f.w=1),"Z"in f?(c=(a=u(o(f.y,0,1))).getUTCDay(),a=c>4||0===c?r.utcMonday.ceil(a):Object(r.utcMonday)(a),a=r.utcDay.offset(a,7*(f.V-1)),f.y=a.getUTCFullYear(),f.m=a.getUTCMonth(),f.d=a.getUTCDate()+(f.w+6)%7):(c=(a=i(o(f.y,0,1))).getDay(),a=c>4||0===c?r.timeMonday.ceil(a):Object(r.timeMonday)(a),a=r.timeDay.offset(a,7*(f.V-1)),f.y=a.getFullYear(),f.m=a.getMonth(),f.d=a.getDate()+(f.w+6)%7)}else("W"in f||"U"in f)&&("w"in f||(f.w="u"in f?f.u%7:"W"in f?1:0),c="Z"in f?u(o(f.y,0,1)).getUTCDay():i(o(f.y,0,1)).getDay(),f.m=0,f.d="W"in f?(f.w+6)%7+7*f.W-(c+5)%7:f.w+7*f.U-(c+6)%7);return"Z"in f?(f.H+=f.Z/100|0,f.M+=f.Z%100,u(f)):i(f)}}function Dt(t,n,e,r){for(var i,u,o=0,a=n.length,f=e.length;o<a;){if(r>=f)return-1;if(37===(i=n.charCodeAt(o++))){if(i=n.charAt(o++),!(u=Ct[i in c?n.charAt(o++):i])||(r=u(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return Tt.x=Pt(e,Tt),Tt.X=Pt(a,Tt),Tt.c=Pt(n,Tt),Nt.x=Pt(e,Nt),Nt.X=Pt(a,Nt),Nt.c=Pt(n,Nt),{format:function(t){var n=Pt(t+="",Tt);return n.toString=function(){return t},n},parse:function(t){var n=Et(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=Pt(t+="",Nt);return n.toString=function(){return t},n},utcParse:function(t){var n=Et(t+="",!0);return n.toString=function(){return t},n}}}var c={"-":"",_:" ",0:"0"},f=/^\s*\d+/,s=/^%/,l=/[\\^$*+?|[\]().{}]/g;function h(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",u=i.length;return r+(u<e?new Array(e-u+1).join(n)+i:i)}function d(t){return t.replace(l,"\\$&")}function p(t){return new RegExp("^(?:"+t.map(d).join("|")+")","i")}function v(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function y(t,n,e){var r=f.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function g(t,n,e){var r=f.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function b(t,n,e){var r=f.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function _(t,n,e){var r=f.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function m(t,n,e){var r=f.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function x(t,n,e){var r=f.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function w(t,n,e){var r=f.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function j(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function O(t,n,e){var r=f.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function M(t,n,e){var r=f.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function k(t,n,e){var r=f.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function S(t,n,e){var r=f.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function A(t,n,e){var r=f.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function T(t,n,e){var r=f.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function N(t,n,e){var r=f.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function C(t,n,e){var r=f.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function P(t,n,e){var r=f.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function E(t,n,e){var r=s.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function D(t,n,e){var r=f.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function R(t,n,e){var r=f.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function L(t,n){return h(t.getDate(),n,2)}function F(t,n){return h(t.getHours(),n,2)}function q(t,n){return h(t.getHours()%12||12,n,2)}function U(t,n){return h(1+r.timeDay.count(Object(r.timeYear)(t),t),n,3)}function I(t,n){return h(t.getMilliseconds(),n,3)}function H(t,n){return I(t,n)+"000"}function z(t,n){return h(t.getMonth()+1,n,2)}function Y(t,n){return h(t.getMinutes(),n,2)}function B(t,n){return h(t.getSeconds(),n,2)}function V(t){var n=t.getDay();return 0===n?7:n}function W(t,n){return h(r.timeSunday.count(Object(r.timeYear)(t)-1,t),n,2)}function $(t,n){var e=t.getDay();return t=e>=4||0===e?Object(r.timeThursday)(t):r.timeThursday.ceil(t),h(r.timeThursday.count(Object(r.timeYear)(t),t)+(4===Object(r.timeYear)(t).getDay()),n,2)}function X(t){return t.getDay()}function G(t,n){return h(r.timeMonday.count(Object(r.timeYear)(t)-1,t),n,2)}function Z(t,n){return h(t.getFullYear()%100,n,2)}function Q(t,n){return h(t.getFullYear()%1e4,n,4)}function J(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+h(n/60|0,"0",2)+h(n%60,"0",2)}function K(t,n){return h(t.getUTCDate(),n,2)}function tt(t,n){return h(t.getUTCHours(),n,2)}function nt(t,n){return h(t.getUTCHours()%12||12,n,2)}function et(t,n){return h(1+r.utcDay.count(Object(r.utcYear)(t),t),n,3)}function rt(t,n){return h(t.getUTCMilliseconds(),n,3)}function it(t,n){return rt(t,n)+"000"}function ut(t,n){return h(t.getUTCMonth()+1,n,2)}function ot(t,n){return h(t.getUTCMinutes(),n,2)}function at(t,n){return h(t.getUTCSeconds(),n,2)}function ct(t){var n=t.getUTCDay();return 0===n?7:n}function ft(t,n){return h(r.utcSunday.count(Object(r.utcYear)(t)-1,t),n,2)}function st(t,n){var e=t.getUTCDay();return t=e>=4||0===e?Object(r.utcThursday)(t):r.utcThursday.ceil(t),h(r.utcThursday.count(Object(r.utcYear)(t),t)+(4===Object(r.utcYear)(t).getUTCDay()),n,2)}function lt(t){return t.getUTCDay()}function ht(t,n){return h(r.utcMonday.count(Object(r.utcYear)(t)-1,t),n,2)}function dt(t,n){return h(t.getUTCFullYear()%100,n,2)}function pt(t,n){return h(t.getUTCFullYear()%1e4,n,4)}function vt(){return"+0000"}function yt(){return"%"}function gt(t){return+t}function bt(t){return Math.floor(+t/1e3)}},function(t,n,e){"use strict";e.r(n),e.d(n,"isoSpecifier",(function(){return i}));var r=e(251),i="%Y-%m-%dT%H:%M:%S.%LZ";var u=Date.prototype.toISOString?function(t){return t.toISOString()}:Object(r.utcFormat)(i);n.default=u},function(t,n,e){"use strict";e.r(n);var r=e(253),i=e(251);var u=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:Object(i.utcParse)(r.isoSpecifier);n.default=u},function(t,n,e){"use strict";e.r(n);var r=e(232),i=e(250),u=e(233),o=e(168);n.default=function(){return o.initRange.apply(Object(r.calendar)(u.utcYear,u.utcMonth,u.utcWeek,u.utcDay,u.utcHour,u.utcMinute,u.utcSecond,u.utcMillisecond,i.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}},function(t,n,e){"use strict";e.r(n),e.d(n,"copy",(function(){return l})),e.d(n,"default",(function(){return h})),e.d(n,"sequentialLog",(function(){return d})),e.d(n,"sequentialSymlog",(function(){return p})),e.d(n,"sequentialPow",(function(){return v})),e.d(n,"sequentialSqrt",(function(){return y}));var r=e(173),i=e(172),u=e(168),o=e(171),a=e(224),c=e(226),f=e(227);function s(){var t,n,e,u,o,a=0,c=1,f=i.identity,s=!1;function l(n){return isNaN(n=+n)?o:f(0===e?.5:(n=(u(n)-t)*e,s?Math.max(0,Math.min(1,n)):n))}function h(t){return function(n){var e,r;return arguments.length?([e,r]=n,f=t(e,r),l):[f(0),f(1)]}}return l.domain=function(r){return arguments.length?([a,c]=r,t=u(a=+a),n=u(c=+c),e=t===n?0:1/(n-t),l):[a,c]},l.clamp=function(t){return arguments.length?(s=!!t,l):s},l.interpolator=function(t){return arguments.length?(f=t,l):f},l.range=h(r.interpolate),l.rangeRound=h(r.interpolateRound),l.unknown=function(t){return arguments.length?(o=t,l):o},function(r){return u=r,t=r(a),n=r(c),e=t===n?0:1/(n-t),l}}function l(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function h(){var t=Object(o.linearish)(s()(i.identity));return t.copy=function(){return l(t,h())},u.initInterpolator.apply(t,arguments)}function d(){var t=Object(a.loggish)(s()).domain([1,10]);return t.copy=function(){return l(t,d()).base(t.base())},u.initInterpolator.apply(t,arguments)}function p(){var t=Object(c.symlogish)(s());return t.copy=function(){return l(t,p()).constant(t.constant())},u.initInterpolator.apply(t,arguments)}function v(){var t=Object(f.powish)(s());return t.copy=function(){return l(t,v()).exponent(t.exponent())},u.initInterpolator.apply(t,arguments)}function y(){return v.apply(null,arguments).exponent(.5)}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return o}));var r=e(126),i=e(172),u=e(168);function o(){var t=[],n=i.identity;function e(e){if(!isNaN(e=+e))return n((Object(r.bisect)(t,e,1)-1)/(t.length-1))}return e.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let e of n)null==e||isNaN(e=+e)||t.push(e);return t.sort(r.ascending),e},e.interpolator=function(t){return arguments.length?(n=t,e):n},e.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},e.quantiles=function(n){return Array.from({length:n+1},(e,i)=>Object(r.quantile)(t,i/n))},e.copy=function(){return o(n).domain(t)},u.initInterpolator.apply(e,arguments)}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return h})),e.d(n,"divergingLog",(function(){return d})),e.d(n,"divergingSymlog",(function(){return p})),e.d(n,"divergingPow",(function(){return v})),e.d(n,"divergingSqrt",(function(){return y}));var r=e(173),i=e(172),u=e(168),o=e(171),a=e(224),c=e(256),f=e(226),s=e(227);function l(){var t,n,e,u,o,a,c,f=0,s=.5,l=1,h=1,d=i.identity,p=!1;function v(t){return isNaN(t=+t)?c:(t=.5+((t=+a(t))-n)*(h*t<h*n?u:o),d(p?Math.max(0,Math.min(1,t)):t))}function y(t){return function(n){var e,i,u;return arguments.length?([e,i,u]=n,d=Object(r.piecewise)(t,[e,i,u]),v):[d(0),d(.5),d(1)]}}return v.domain=function(r){return arguments.length?([f,s,l]=r,t=a(f=+f),n=a(s=+s),e=a(l=+l),u=t===n?0:.5/(n-t),o=n===e?0:.5/(e-n),h=n<t?-1:1,v):[f,s,l]},v.clamp=function(t){return arguments.length?(p=!!t,v):p},v.interpolator=function(t){return arguments.length?(d=t,v):d},v.range=y(r.interpolate),v.rangeRound=y(r.interpolateRound),v.unknown=function(t){return arguments.length?(c=t,v):c},function(r){return a=r,t=r(f),n=r(s),e=r(l),u=t===n?0:.5/(n-t),o=n===e?0:.5/(e-n),h=n<t?-1:1,v}}function h(){var t=Object(o.linearish)(l()(i.identity));return t.copy=function(){return Object(c.copy)(t,h())},u.initInterpolator.apply(t,arguments)}function d(){var t=Object(a.loggish)(l()).domain([.1,1,10]);return t.copy=function(){return Object(c.copy)(t,d()).base(t.base())},u.initInterpolator.apply(t,arguments)}function p(){var t=Object(f.symlogish)(l());return t.copy=function(){return Object(c.copy)(t,p()).constant(t.constant())},u.initInterpolator.apply(t,arguments)}function v(){var t=Object(s.powish)(l());return t.copy=function(){return Object(c.copy)(t,v()).exponent(t.exponent())},u.initInterpolator.apply(t,arguments)}function y(){return v.apply(null,arguments).exponent(.5)}},function(t,n,e){"use strict";e.r(n),e.d(n,"calculateTickRange",(function(){return c})),e.d(n,"getColorConverter",(function(){return f}));var r=e(126),i=e(260),u=e.n(i);function o(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var e=[],r=!0,i=!1,u=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done)&&(e.push(o.value),!n||e.length!==n);r=!0);}catch(t){i=!0,u=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw u}}return e}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return a(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return a(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function c(t){var n=t.zero,e=t.interval,i=o(t.domain,2),a=i[0],c=i[1];return u()(Object(r.merge)([[a],Object(r.range)(n,a,-1*e).reverse(),Object(r.range)(n,c,e),[c]]))}function f(t){var n=t.colors||t.color;if("string"==typeof n)return function(t){return n};if("function"==typeof n)return n(t);var e=Object.keys(n).map((function(t){return Number(t)})).sort((function(t,n){return n-t}));return function(t){var r=e.find((function(n){return t>=n}));return n[r]}}},function(t,n,e){var r=e(261);t.exports=function(t){return t&&t.length?r(t):[]}},function(t,n,e){var r=e(262),i=e(296),u=e(301),o=e(302),a=e(303),c=e(306);t.exports=function(t,n,e){var f=-1,s=i,l=t.length,h=!0,d=[],p=d;if(e)h=!1,s=u;else if(l>=200){var v=n?null:a(t);if(v)return c(v);h=!1,s=o,p=new r}else p=n?[]:d;t:for(;++f<l;){var y=t[f],g=n?n(y):y;if(y=e||0!==y?y:0,h&&g==g){for(var b=p.length;b--;)if(p[b]===g)continue t;n&&p.push(g),d.push(y)}else s(p,g,e)||(p!==d&&p.push(g),d.push(y))}return d}},function(t,n,e){var r=e(263),i=e(294),u=e(295);function o(t){var n=-1,e=null==t?0:t.length;for(this.__data__=new r;++n<e;)this.add(t[n])}o.prototype.add=o.prototype.push=i,o.prototype.has=u,t.exports=o},function(t,n,e){var r=e(264),i=e(288),u=e(291),o=e(292),a=e(293);function c(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=u,c.prototype.has=o,c.prototype.set=a,t.exports=c},function(t,n,e){var r=e(265),i=e(279),u=e(287);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(u||i),string:new r}}},function(t,n,e){var r=e(266),i=e(275),u=e(276),o=e(277),a=e(278);function c(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=u,c.prototype.has=o,c.prototype.set=a,t.exports=c},function(t,n,e){var r=e(267);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,n,e){var r=e(268)(Object,"create");t.exports=r},function(t,n,e){var r=e(269),i=e(274);t.exports=function(t,n){var e=i(t,n);return r(e)?e:void 0}},function(t,n,e){var r=e(270),i=e(271),u=e(110),o=e(273),a=/^\[object .+?Constructor\]$/,c=Function.prototype,f=Object.prototype,s=c.toString,l=f.hasOwnProperty,h=RegExp("^"+s.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!u(t)||i(t))&&(r(t)?h:a).test(o(t))}},function(t,n,e){var r=e(117),i=e(110);t.exports=function(t){if(!i(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},function(t,n,e){var r,i=e(272),u=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!u&&u in t}},function(t,n,e){var r=e(112)["__core-js_shared__"];t.exports=r},function(t,n){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,n){t.exports=function(t,n){return null==t?void 0:t[n]}},function(t,n){t.exports=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}},function(t,n,e){var r=e(267),i=Object.prototype.hasOwnProperty;t.exports=function(t){var n=this.__data__;if(r){var e=n[t];return"__lodash_hash_undefined__"===e?void 0:e}return i.call(n,t)?n[t]:void 0}},function(t,n,e){var r=e(267),i=Object.prototype.hasOwnProperty;t.exports=function(t){var n=this.__data__;return r?void 0!==n[t]:i.call(n,t)}},function(t,n,e){var r=e(267);t.exports=function(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=r&&void 0===n?"__lodash_hash_undefined__":n,this}},function(t,n,e){var r=e(280),i=e(281),u=e(284),o=e(285),a=e(286);function c(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=u,c.prototype.has=o,c.prototype.set=a,t.exports=c},function(t,n){t.exports=function(){this.__data__=[],this.size=0}},function(t,n,e){var r=e(282),i=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0)&&(e==n.length-1?n.pop():i.call(n,e,1),--this.size,!0)}},function(t,n,e){var r=e(283);t.exports=function(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}},function(t,n){t.exports=function(t,n){return t===n||t!=t&&n!=n}},function(t,n,e){var r=e(282);t.exports=function(t){var n=this.__data__,e=r(n,t);return e<0?void 0:n[e][1]}},function(t,n,e){var r=e(282);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,n,e){var r=e(282);t.exports=function(t,n){var e=this.__data__,i=r(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}},function(t,n,e){var r=e(268)(e(112),"Map");t.exports=r},function(t,n,e){var r=e(289);t.exports=function(t){var n=r(this,t).delete(t);return this.size-=n?1:0,n}},function(t,n,e){var r=e(290);t.exports=function(t,n){var e=t.__data__;return r(n)?e["string"==typeof n?"string":"hash"]:e.map}},function(t,n){t.exports=function(t){var n=typeof t;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t}},function(t,n,e){var r=e(289);t.exports=function(t){return r(this,t).get(t)}},function(t,n,e){var r=e(289);t.exports=function(t){return r(this,t).has(t)}},function(t,n,e){var r=e(289);t.exports=function(t,n){var e=r(this,t),i=e.size;return e.set(t,n),this.size+=e.size==i?0:1,this}},function(t,n){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,n){t.exports=function(t){return this.__data__.has(t)}},function(t,n,e){var r=e(297);t.exports=function(t,n){return!!(null==t?0:t.length)&&r(t,n,0)>-1}},function(t,n,e){var r=e(298),i=e(299),u=e(300);t.exports=function(t,n,e){return n==n?u(t,n,e):r(t,i,e)}},function(t,n){t.exports=function(t,n,e,r){for(var i=t.length,u=e+(r?1:-1);r?u--:++u<i;)if(n(t[u],u,t))return u;return-1}},function(t,n){t.exports=function(t){return t!=t}},function(t,n){t.exports=function(t,n,e){for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}},function(t,n){t.exports=function(t,n,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(n,t[r]))return!0;return!1}},function(t,n){t.exports=function(t,n){return t.has(n)}},function(t,n,e){var r=e(304),i=e(305),u=e(306),o=r&&1/u(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=o},function(t,n,e){var r=e(268)(e(112),"Set");t.exports=r},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=t})),e}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return p}));var r=e(308),i=e.n(r),u=e(329),o=e.n(u),a=e(109),c=e.n(a),f=e(339),s=e.n(f),l=e(270),h=e.n(l);function d(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var p=function(){function t(n,e){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.chart=n,this.config=e,this.group=n.svg.append("g").attr("class","sources"),this.update=c()(this.update.bind(this),10),this.draw=c()(this.draw.bind(this),10),n.on("sources",this.update),n.on("dimension",this.draw)}var n,e,r;return n=t,(e=[{key:"format",value:function(t){var n;if(s()(this.config)){var e=o()(this.config).find((function(n){return new RegExp(n[0],"i").test(t)}));n=e?e[1]:t}else n=h()(this.config)?this.config(t):t;return n}},{key:"update",value:function(){var t=this;this.list=this._sources.map((function(n){return{label:t.format(n),address:n}})),this.draw()}},{key:"draw",value:function(){var t=this;if(this.group.html(null),!i()(this.list)){var n=[this.chart.config.padding.left,this.chart.height-12].join(",");this.group.attr("transform","translate(".concat(n,")")),this.group.append("text").attr("class","sources__label").text("Sources:"),this.list.forEach((function(n,e){t.group.append("a").attr("class","sources__link").attr("href",n.address).append("text").attr("x",50+100*e).text(n.label)}))}}},{key:"destroy",value:function(){this.chart.off("sources",this.update),this.chart.off("dimension",this.draw),this.group.remove()}}])&&d(n.prototype,e),r&&d(n,r),t}()},function(t,n,e){var r=e(309),i=e(313),u=e(317),o=e(319),a=e(320),c=e(322),f=e(310),s=e(325),l=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(o(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||s(t)||u(t)))return!t.length;var n=i(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(f(t))return!r(t).length;for(var e in t)if(l.call(t,e))return!1;return!0}},function(t,n,e){var r=e(310),i=e(311),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var n=[];for(var e in Object(t))u.call(t,e)&&"constructor"!=e&&n.push(e);return n}},function(t,n){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},function(t,n,e){var r=e(312)(Object.keys,Object);t.exports=r},function(t,n){t.exports=function(t,n){return function(e){return t(n(e))}}},function(t,n,e){var r=e(314),i=e(287),u=e(315),o=e(304),a=e(316),c=e(117),f=e(273),s=f(r),l=f(i),h=f(u),d=f(o),p=f(a),v=c;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=v(new i)||u&&"[object Promise]"!=v(u.resolve())||o&&"[object Set]"!=v(new o)||a&&"[object WeakMap]"!=v(new a))&&(v=function(t){var n=c(t),e="[object Object]"==n?t.constructor:void 0,r=e?f(e):"";if(r)switch(r){case s:return"[object DataView]";case l:return"[object Map]";case h:return"[object Promise]";case d:return"[object Set]";case p:return"[object WeakMap]"}return n}),t.exports=v},function(t,n,e){var r=e(268)(e(112),"DataView");t.exports=r},function(t,n,e){var r=e(268)(e(112),"Promise");t.exports=r},function(t,n,e){var r=e(268)(e(112),"WeakMap");t.exports=r},function(t,n,e){var r=e(318),i=e(121),u=Object.prototype,o=u.hasOwnProperty,a=u.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&o.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},function(t,n,e){var r=e(117),i=e(121);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},function(t,n){var e=Array.isArray;t.exports=e},function(t,n,e){var r=e(270),i=e(321);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,n){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,n,e){(function(t){var r=e(112),i=e(324),u=n&&!n.nodeType&&n,o=u&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===u?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||i;t.exports=c}).call(this,e(323)(t))},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n){t.exports=function(){return!1}},function(t,n,e){var r=e(326),i=e(327),u=e(328),o=u&&u.isTypedArray,a=o?i(o):r;t.exports=a},function(t,n,e){var r=e(117),i=e(321),u=e(121),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,t.exports=function(t){return u(t)&&i(t.length)&&!!o[r(t)]}},function(t,n){t.exports=function(t){return function(n){return t(n)}}},function(t,n,e){(function(t){var r=e(113),i=n&&!n.nodeType&&n,u=i&&"object"==typeof t&&t&&!t.nodeType&&t,o=u&&u.exports===i&&r.process,a=function(){try{var t=u&&u.require&&u.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a}).call(this,e(323)(t))},function(t,n,e){var r=e(330)(e(335));t.exports=r},function(t,n,e){var r=e(331),i=e(313),u=e(333),o=e(334);t.exports=function(t){return function(n){var e=i(n);return"[object Map]"==e?u(n):"[object Set]"==e?o(n):r(n,t(n))}}},function(t,n,e){var r=e(332);t.exports=function(t,n){return r(n,(function(n){return[n,t[n]]}))}},function(t,n){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},function(t,n){t.exports=function(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}},function(t,n){t.exports=function(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=[t,t]})),e}},function(t,n,e){var r=e(336),i=e(309),u=e(320);t.exports=function(t){return u(t)?r(t):i(t)}},function(t,n,e){var r=e(337),i=e(317),u=e(319),o=e(322),a=e(338),c=e(325),f=Object.prototype.hasOwnProperty;t.exports=function(t,n){var e=u(t),s=!e&&i(t),l=!e&&!s&&o(t),h=!e&&!s&&!l&&c(t),d=e||s||l||h,p=d?r(t.length,String):[],v=p.length;for(var y in t)!n&&!f.call(t,y)||d&&("length"==y||l&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,v))||p.push(y);return p}},function(t,n){t.exports=function(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}},function(t,n){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},function(t,n,e){var r=e(117),i=e(340),u=e(121),o=Function.prototype,a=Object.prototype,c=o.toString,f=a.hasOwnProperty,s=c.call(Object);t.exports=function(t){if(!u(t)||"[object Object]"!=r(t))return!1;var n=i(t);if(null===n)return!0;var e=f.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&c.call(e)==s}},function(t,n,e){var r=e(312)(Object.getPrototypeOf,Object);t.exports=r},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return M}));var r=e(342),i=e(126),u=e(343),o=e(124),a=e(233),c=e(250),f=e(108),s=e.n(f),l=e(347),h=e.n(l),d=e(109),p=e.n(d),v=e(308),y=e.n(v);function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function _(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,n){return(m=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function x(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=O(t);if(n){var i=O(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return w(this,e)}}function w(t,n){return!n||"object"!==g(n)&&"function"!=typeof n?j(t):n}function j(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var M=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&m(t,n)}(l,t);var n,e,f,s=x(l);function l(t,n){var e;return b(this,l),(e=s.apply(this,arguments)).chart=t,e.config=n,e.ticks=t.viewport.append("g").attr("class","ticks__x"),e.parseData=p()(e.parseData.bind(j(e)),10),e.update=p()(e.update.bind(j(e)),10),e.draw=p()(e.draw.bind(j(e)),10),t.on("datasets",e.parseData),t.on("dimension",e.update),e}return n=l,(e=[{key:"parseData",value:function(){this.dates=this.chart.datasets.map((function(t){return h()(t.values,"x")})).reduce(r.concatArrays,[]).filter(r.isDefined).filter(r.keepUniqueDates).sort(r.ascendingDates),this.domain=Object(i.extent)(this.dates),this.update()}},{key:"update",value:function(){this.range=[0,this.chart.innerWidth],y()(this.domain)||(this.scale=Object(o.scaleTime)().domain(this.domain).range(this.range),this.scaleBand=Object(o.scaleBand)().domain(this.dates).range(this.range).padding(.1),this.axis=Object(u.axisBottom)(this.scale).ticks(a.timeMonth.every(1)).tickFormat(Object(c.timeFormat)("%B")),this.emit("axis"),this.draw())}},{key:"draw",value:function(){this.ticks.html(null).attr("transform","translate(0, ".concat(this.chart.innerHeight,")")).call(this.axis)}},{key:"destroy",value:function(){this.chart.off("datasets",this.parseData),this.chart.off("dimension",this.update)}}])&&_(n.prototype,e),f&&_(n,f),l}(s.a)},function(t,n,e){t.exports=function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=0)}([function(t,n,e){"use strict";e.r(n);var r=e(1);e.d(n,"isDefined",(function(){return r.isDefined})),e.d(n,"isNotEmptyString",(function(){return r.isNotEmptyString})),e.d(n,"keepUniqueValues",(function(){return r.keepUniqueValues})),e.d(n,"keepUniqueDates",(function(){return r.keepUniqueDates}));var i=e(6);e.d(n,"concatArrays",(function(){return i.concatArrays})),e.d(n,"concatNestedArrays",(function(){return i.concatNestedArrays})),e.d(n,"mergeObjects",(function(){return i.mergeObjects}));var u=e(10);e.d(n,"ascendingDates",(function(){return u.ascendingDates}))},function(t,n,e){"use strict";e.r(n);var r=e(2);e.d(n,"isDefined",(function(){return r.default}));var i=e(3);e.d(n,"isNotEmptyString",(function(){return i.default}));var u=e(4);e.d(n,"keepUniqueValues",(function(){return u.default}));var o=e(5);e.d(n,"keepUniqueDates",(function(){return o.default}))},function(t,n,e){"use strict";function r(t){return void 0!==t}e.r(n),e.d(n,"default",(function(){return r}))},function(t,n,e){"use strict";function r(t){return""!==t}e.r(n),e.d(n,"default",(function(){return r}))},function(t,n,e){"use strict";function r(t,n,e){return e.indexOf(t)===n}e.r(n),e.d(n,"default",(function(){return r}))},function(t,n,e){"use strict";function r(t,n,e){return e.findIndex((function(n){return n.valueOf()===t.valueOf()}))===n}e.r(n),e.d(n,"default",(function(){return r}))},function(t,n,e){"use strict";e.r(n);var r=e(7);e.d(n,"concatArrays",(function(){return r.default}));var i=e(8);e.d(n,"concatNestedArrays",(function(){return i.default}));var u=e(9);e.d(n,"mergeObjects",(function(){return u.default}))},function(t,n,e){"use strict";function r(t,n){return t.concat(n)}e.r(n),e.d(n,"default",(function(){return r}))},function(t,n,e){"use strict";function r(t,n){return Array.isArray(n)&&(n=n.reduce(r,[])),t.concat(n)}e.r(n),e.d(n,"default",(function(){return r}))},function(t,n,e){"use strict";function r(t,n){return Object.assign(t,n)}e.r(n),e.d(n,"default",(function(){return r}))},function(t,n,e){"use strict";e.r(n);var r=e(11);e.d(n,"ascendingDates",(function(){return r.default}))},function(t,n,e){"use strict";function r(t,n){return t.valueOf()-n.valueOf()}e.r(n),e.d(n,"default",(function(){return r}))}])},function(t,n,e){"use strict";e.r(n);var r=e(344);e.d(n,"axisTop",(function(){return r.axisTop})),e.d(n,"axisRight",(function(){return r.axisRight})),e.d(n,"axisBottom",(function(){return r.axisBottom})),e.d(n,"axisLeft",(function(){return r.axisLeft}))},function(t,n,e){"use strict";e.r(n),e.d(n,"axisTop",(function(){return l})),e.d(n,"axisRight",(function(){return h})),e.d(n,"axisBottom",(function(){return d})),e.d(n,"axisLeft",(function(){return p}));var r=e(345),i=e(346);function u(t){return"translate("+(t+.5)+",0)"}function o(t){return"translate(0,"+(t+.5)+")"}function a(t){return function(n){return+t(n)}}function c(t){var n=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(n=Math.round(n)),function(e){return+t(e)+n}}function f(){return!this.__axis}function s(t,n){var e=[],s=null,l=null,h=6,d=6,p=3,v=1===t||4===t?-1:1,y=4===t||2===t?"x":"y",g=1===t||3===t?u:o;function b(r){var u=null==s?n.ticks?n.ticks.apply(n,e):n.domain():s,o=null==l?n.tickFormat?n.tickFormat.apply(n,e):i.default:l,b=Math.max(h,0)+p,_=n.range(),m=+_[0]+.5,x=+_[_.length-1]+.5,w=(n.bandwidth?c:a)(n.copy()),j=r.selection?r.selection():r,O=j.selectAll(".domain").data([null]),M=j.selectAll(".tick").data(u,n).order(),k=M.exit(),S=M.enter().append("g").attr("class","tick"),A=M.select("line"),T=M.select("text");O=O.merge(O.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),M=M.merge(S),A=A.merge(S.append("line").attr("stroke","currentColor").attr(y+"2",v*h)),T=T.merge(S.append("text").attr("fill","currentColor").attr(y,v*b).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),r!==j&&(O=O.transition(r),M=M.transition(r),A=A.transition(r),T=T.transition(r),k=k.transition(r).attr("opacity",1e-6).attr("transform",(function(t){return isFinite(t=w(t))?g(t):this.getAttribute("transform")})),S.attr("opacity",1e-6).attr("transform",(function(t){var n=this.parentNode.__axis;return g(n&&isFinite(n=n(t))?n:w(t))}))),k.remove(),O.attr("d",4===t||2==t?d?"M"+v*d+","+m+"H0.5V"+x+"H"+v*d:"M0.5,"+m+"V"+x:d?"M"+m+","+v*d+"V0.5H"+x+"V"+v*d:"M"+m+",0.5H"+x),M.attr("opacity",1).attr("transform",(function(t){return g(w(t))})),A.attr(y+"2",v*h),T.attr(y,v*b).text(o),j.filter(f).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),j.each((function(){this.__axis=w}))}return b.scale=function(t){return arguments.length?(n=t,b):n},b.ticks=function(){return e=r.slice.call(arguments),b},b.tickArguments=function(t){return arguments.length?(e=null==t?[]:r.slice.call(t),b):e.slice()},b.tickValues=function(t){return arguments.length?(s=null==t?null:r.slice.call(t),b):s&&s.slice()},b.tickFormat=function(t){return arguments.length?(l=t,b):l},b.tickSize=function(t){return arguments.length?(h=d=+t,b):h},b.tickSizeInner=function(t){return arguments.length?(h=+t,b):h},b.tickSizeOuter=function(t){return arguments.length?(d=+t,b):d},b.tickPadding=function(t){return arguments.length?(p=+t,b):p},b}function l(t){return s(1,t)}function h(t){return s(2,t)}function d(t){return s(3,t)}function p(t){return s(4,t)}},function(t,n,e){"use strict";e.r(n),e.d(n,"slice",(function(){return r}));var r=Array.prototype.slice},function(t,n,e){"use strict";e.r(n),n.default=function(t){return t}},function(t,n,e){var r=e(332),i=e(348),u=e(391),o=e(319);t.exports=function(t,n){return(o(t)?r:u)(t,i(n,3))}},function(t,n,e){var r=e(349),i=e(373),u=e(387),o=e(319),a=e(388);t.exports=function(t){return"function"==typeof t?t:null==t?u:"object"==typeof t?o(t)?i(t[0],t[1]):r(t):a(t)}},function(t,n,e){var r=e(350),i=e(370),u=e(372);t.exports=function(t){var n=i(t);return 1==n.length&&n[0][2]?u(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},function(t,n,e){var r=e(351),i=e(357);t.exports=function(t,n,e,u){var o=e.length,a=o,c=!u;if(null==t)return!a;for(t=Object(t);o--;){var f=e[o];if(c&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++o<a;){var s=(f=e[o])[0],l=t[s],h=f[1];if(c&&f[2]){if(void 0===l&&!(s in t))return!1}else{var d=new r;if(u)var p=u(l,h,s,t,n,d);if(!(void 0===p?i(h,l,3,u,d):p))return!1}}return!0}},function(t,n,e){var r=e(279),i=e(352),u=e(353),o=e(354),a=e(355),c=e(356);function f(t){var n=this.__data__=new r(t);this.size=n.size}f.prototype.clear=i,f.prototype.delete=u,f.prototype.get=o,f.prototype.has=a,f.prototype.set=c,t.exports=f},function(t,n,e){var r=e(279);t.exports=function(){this.__data__=new r,this.size=0}},function(t,n){t.exports=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e}},function(t,n){t.exports=function(t){return this.__data__.get(t)}},function(t,n){t.exports=function(t){return this.__data__.has(t)}},function(t,n,e){var r=e(279),i=e(287),u=e(263);t.exports=function(t,n){var e=this.__data__;if(e instanceof r){var o=e.__data__;if(!i||o.length<199)return o.push([t,n]),this.size=++e.size,this;e=this.__data__=new u(o)}return e.set(t,n),this.size=e.size,this}},function(t,n,e){var r=e(358),i=e(121);t.exports=function t(n,e,u,o,a){return n===e||(null==n||null==e||!i(n)&&!i(e)?n!=n&&e!=e:r(n,e,u,o,t,a))}},function(t,n,e){var r=e(351),i=e(359),u=e(361),o=e(363),a=e(313),c=e(319),f=e(322),s=e(325),l="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,d,p,v){var y=c(t),g=c(n),b=y?"[object Array]":a(t),_=g?"[object Array]":a(n),m=(b="[object Arguments]"==b?l:b)==l,x=(_="[object Arguments]"==_?l:_)==l,w=b==_;if(w&&f(t)){if(!f(n))return!1;y=!0,m=!1}if(w&&!m)return v||(v=new r),y||s(t)?i(t,n,e,d,p,v):u(t,n,b,e,d,p,v);if(!(1&e)){var j=m&&h.call(t,"__wrapped__"),O=x&&h.call(n,"__wrapped__");if(j||O){var M=j?t.value():t,k=O?n.value():n;return v||(v=new r),p(M,k,e,d,v)}}return!!w&&(v||(v=new r),o(t,n,e,d,p,v))}},function(t,n,e){var r=e(262),i=e(360),u=e(302);t.exports=function(t,n,e,o,a,c){var f=1&e,s=t.length,l=n.length;if(s!=l&&!(f&&l>s))return!1;var h=c.get(t);if(h&&c.get(n))return h==n;var d=-1,p=!0,v=2&e?new r:void 0;for(c.set(t,n),c.set(n,t);++d<s;){var y=t[d],g=n[d];if(o)var b=f?o(g,y,d,n,t,c):o(y,g,d,t,n,c);if(void 0!==b){if(b)continue;p=!1;break}if(v){if(!i(n,(function(t,n){if(!u(v,n)&&(y===t||a(y,t,e,o,c)))return v.push(n)}))){p=!1;break}}else if(y!==g&&!a(y,g,e,o,c)){p=!1;break}}return c.delete(t),c.delete(n),p}},function(t,n){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}},function(t,n,e){var r=e(118),i=e(362),u=e(283),o=e(359),a=e(333),c=e(306),f=r?r.prototype:void 0,s=f?f.valueOf:void 0;t.exports=function(t,n,e,r,f,l,h){switch(e){case"[object DataView]":if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=n.byteLength||!l(new i(t),new i(n)));case"[object Boolean]":case"[object Date]":case"[object Number]":return u(+t,+n);case"[object Error]":return t.name==n.name&&t.message==n.message;case"[object RegExp]":case"[object String]":return t==n+"";case"[object Map]":var d=a;case"[object Set]":var p=1&r;if(d||(d=c),t.size!=n.size&&!p)return!1;var v=h.get(t);if(v)return v==n;r|=2,h.set(t,n);var y=o(d(t),d(n),r,f,l,h);return h.delete(t),y;case"[object Symbol]":if(s)return s.call(t)==s.call(n)}return!1}},function(t,n,e){var r=e(112).Uint8Array;t.exports=r},function(t,n,e){var r=e(364),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,u,o,a){var c=1&e,f=r(t),s=f.length;if(s!=r(n).length&&!c)return!1;for(var l=s;l--;){var h=f[l];if(!(c?h in n:i.call(n,h)))return!1}var d=a.get(t);if(d&&a.get(n))return d==n;var p=!0;a.set(t,n),a.set(n,t);for(var v=c;++l<s;){var y=t[h=f[l]],g=n[h];if(u)var b=c?u(g,y,h,n,t,a):u(y,g,h,t,n,a);if(!(void 0===b?y===g||o(y,g,e,u,a):b)){p=!1;break}v||(v="constructor"==h)}if(p&&!v){var _=t.constructor,m=n.constructor;_==m||!("constructor"in t)||!("constructor"in n)||"function"==typeof _&&_ instanceof _&&"function"==typeof m&&m instanceof m||(p=!1)}return a.delete(t),a.delete(n),p}},function(t,n,e){var r=e(365),i=e(367),u=e(335);t.exports=function(t){return r(t,u,i)}},function(t,n,e){var r=e(366),i=e(319);t.exports=function(t,n,e){var u=n(t);return i(t)?u:r(u,e(t))}},function(t,n){t.exports=function(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}},function(t,n,e){var r=e(368),i=e(369),u=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(t){return null==t?[]:(t=Object(t),r(o(t),(function(n){return u.call(t,n)})))}:i;t.exports=a},function(t,n){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=0,u=[];++e<r;){var o=t[e];n(o,e,t)&&(u[i++]=o)}return u}},function(t,n){t.exports=function(){return[]}},function(t,n,e){var r=e(371),i=e(335);t.exports=function(t){for(var n=i(t),e=n.length;e--;){var u=n[e],o=t[u];n[e]=[u,o,r(o)]}return n}},function(t,n,e){var r=e(110);t.exports=function(t){return t==t&&!r(t)}},function(t,n){t.exports=function(t,n){return function(e){return null!=e&&(e[t]===n&&(void 0!==n||t in Object(e)))}}},function(t,n,e){var r=e(357),i=e(374),u=e(384),o=e(377),a=e(371),c=e(372),f=e(383);t.exports=function(t,n){return o(t)&&a(n)?c(f(t),n):function(e){var o=i(e,t);return void 0===o&&o===n?u(e,t):r(n,o,3)}}},function(t,n,e){var r=e(375);t.exports=function(t,n,e){var i=null==t?void 0:r(t,n);return void 0===i?e:i}},function(t,n,e){var r=e(376),i=e(383);t.exports=function(t,n){for(var e=0,u=(n=r(n,t)).length;null!=t&&e<u;)t=t[i(n[e++])];return e&&e==u?t:void 0}},function(t,n,e){var r=e(319),i=e(377),u=e(378),o=e(381);t.exports=function(t,n){return r(t)?t:i(t,n)?[t]:u(o(t))}},function(t,n,e){var r=e(319),i=e(116),u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;t.exports=function(t,n){if(r(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!i(t))||(o.test(t)||!u.test(t)||null!=n&&t in Object(n))}},function(t,n,e){var r=e(379),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,o=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(i,(function(t,e,r,i){n.push(r?i.replace(u,"$1"):e||t)})),n}));t.exports=o},function(t,n,e){var r=e(380);t.exports=function(t){var n=r(t,(function(t){return 500===e.size&&e.clear(),t})),e=n.cache;return n}},function(t,n,e){var r=e(263);function i(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],u=e.cache;if(u.has(i))return u.get(i);var o=t.apply(this,r);return e.cache=u.set(i,o)||u,o};return e.cache=new(i.Cache||r),e}i.Cache=r,t.exports=i},function(t,n,e){var r=e(382);t.exports=function(t){return null==t?"":r(t)}},function(t,n,e){var r=e(118),i=e(332),u=e(319),o=e(116),a=r?r.prototype:void 0,c=a?a.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(u(n))return i(n,t)+"";if(o(n))return c?c.call(n):"";var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}},function(t,n,e){var r=e(116);t.exports=function(t){if("string"==typeof t||r(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(t,n,e){var r=e(385),i=e(386);t.exports=function(t,n){return null!=t&&i(t,n,r)}},function(t,n){t.exports=function(t,n){return null!=t&&n in Object(t)}},function(t,n,e){var r=e(376),i=e(317),u=e(319),o=e(338),a=e(321),c=e(383);t.exports=function(t,n,e){for(var f=-1,s=(n=r(n,t)).length,l=!1;++f<s;){var h=c(n[f]);if(!(l=null!=t&&e(t,h)))break;t=t[h]}return l||++f!=s?l:!!(s=null==t?0:t.length)&&a(s)&&o(h,s)&&(u(t)||i(t))}},function(t,n){t.exports=function(t){return t}},function(t,n,e){var r=e(389),i=e(390),u=e(377),o=e(383);t.exports=function(t){return u(t)?r(o(t)):i(t)}},function(t,n){t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},function(t,n,e){var r=e(375);t.exports=function(t){return function(n){return r(n,t)}}},function(t,n,e){var r=e(392),i=e(320);t.exports=function(t,n){var e=-1,u=i(t)?Array(t.length):[];return r(t,(function(t,r,i){u[++e]=n(t,r,i)})),u}},function(t,n,e){var r=e(393),i=e(396)(r);t.exports=i},function(t,n,e){var r=e(394),i=e(335);t.exports=function(t,n){return t&&r(t,n,i)}},function(t,n,e){var r=e(395)();t.exports=r},function(t,n){t.exports=function(t){return function(n,e,r){for(var i=-1,u=Object(n),o=r(n),a=o.length;a--;){var c=o[t?a:++i];if(!1===e(u[c],c,u))break}return n}}},function(t,n,e){var r=e(320);t.exports=function(t,n){return function(e,i){if(null==e)return e;if(!r(e))return t(e,i);for(var u=e.length,o=n?u:-1,a=Object(e);(n?o--:++o<u)&&!1!==i(a[o],o,a););return e}}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return N})),e.d(n,"yAxisLeft",(function(){return C})),e.d(n,"yAxisRight",(function(){return P}));var r=e(126),i=e(124),u=e(108),o=e.n(u),a=e(398),c=e.n(a),f=e(401),s=e.n(f),l=e(402),h=e.n(l),d=e(109),p=e.n(d),v=e(308),y=e.n(v),g=e(446),b=e(451);function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var e=[],r=!0,i=!1,u=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done)&&(e.push(o.value),!n||e.length!==n);r=!0);}catch(t){i=!0,u=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw u}}return e}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return x(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return x(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function w(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function j(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function O(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&M(t,n)}function M(t,n){return(M=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function k(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=T(t);if(n){var i=T(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return S(this,e)}}function S(t,n){return!n||"object"!==_(n)&&"function"!=typeof n?A(t):n}function A(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function T(t){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var N=function(t){O(a,t);var n,e,u,o=k(a);function a(t,n,e){var r;return w(this,a),(r=o.apply(this,arguments)).chart=t,r.config=n,r.position=e,r.ignoreTypes=["static","area"],r.ticks=new g.default(A(r),n.ticks),r.grid=new b.default(A(r),n),r.parseData=p()(r.parseData.bind(A(r)),10),r.update=p()(r.update.bind(A(r)),10),t.on("datasets",r.parseData),t.on("dimension",r.update),r}return n=a,(e=[{key:"adjustDomain",value:function(){var t=this.config.ticks.major.interval||1,n=m(this.domain,2),e=n[0],r=n[1];e-=t-Math.abs(e%t),r+=t-Math.abs(r%t),s()(this.config.min)&&(e=Math.max(e,this.config.min)),s()(this.config.max)&&(r=Math.min(r,this.config.max)),this.domain=[e,r]}},{key:"parseData",value:function(){var t=this,n=this.chart.datasets.filter((function(n){return!t.ignoreTypes.includes(n.type)})).filter((function(n){return"left"===t.position&&(void 0===n.unit||n.unit===t.config.unit)||"right"===t.position&&void 0!==n.unit&&n.unit===t.config.unit})).map((function(t){return t.values.map((function(t){return Object.values(h()(t,["x","x1","x2"]))}))}));this.domain=Object(r.extent)(c()(n)),this.adjustDomain(),this.update()}},{key:"update",value:function(){this.range=[this.chart.innerHeight,0],y()(this.domain)||(this.scale=Object(i.scaleLinear)().domain(this.domain).range(this.range),this.emit("axis"))}},{key:"destroy",value:function(){this.chart.off("datasets",this.parseData),this.chart.off("dimension",this.update),this.ticks.destroy(),this.grid.destroy()}}])&&j(n.prototype,e),u&&j(n,u),a}(o.a),C=function(t){O(e,t);var n=k(e);function e(){return w(this,e),n.call.apply(n,[this].concat(Array.prototype.slice.call(arguments),["left"]))}return e}(N),P=function(t){O(e,t);var n=k(e);function e(){return w(this,e),n.call.apply(n,[this].concat(Array.prototype.slice.call(arguments),["right"]))}return e}(N)},function(t,n,e){var r=e(399);t.exports=function(t){return(null==t?0:t.length)?r(t,1/0):[]}},function(t,n,e){var r=e(366),i=e(400);t.exports=function t(n,e,u,o,a){var c=-1,f=n.length;for(u||(u=i),a||(a=[]);++c<f;){var s=n[c];e>0&&u(s)?e>1?t(s,e-1,u,o,a):r(a,s):o||(a[a.length]=s)}return a}},function(t,n,e){var r=e(118),i=e(317),u=e(319),o=r?r.isConcatSpreadable:void 0;t.exports=function(t){return u(t)||i(t)||!!(o&&t&&t[o])}},function(t,n,e){var r=e(117),i=e(121);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},function(t,n,e){var r=e(332),i=e(403),u=e(433),o=e(376),a=e(409),c=e(437),f=e(438),s=e(419),l=f((function(t,n){var e={};if(null==t)return e;var f=!1;n=r(n,(function(n){return n=o(n,t),f||(f=n.length>1),n})),a(t,s(t),e),f&&(e=i(e,7,c));for(var l=n.length;l--;)u(e,n[l]);return e}));t.exports=l},function(t,n,e){var r=e(351),i=e(404),u=e(405),o=e(408),a=e(410),c=e(414),f=e(415),s=e(416),l=e(417),h=e(364),d=e(419),p=e(313),v=e(420),y=e(421),g=e(427),b=e(319),_=e(322),m=e(429),x=e(110),w=e(431),j=e(335),O={};O["[object Arguments]"]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O["[object Object]"]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O["[object Function]"]=O["[object WeakMap]"]=!1,t.exports=function t(n,e,M,k,S,A){var T,N=1&e,C=2&e,P=4&e;if(M&&(T=S?M(n,k,S,A):M(n)),void 0!==T)return T;if(!x(n))return n;var E=b(n);if(E){if(T=v(n),!N)return f(n,T)}else{var D=p(n),R="[object Function]"==D||"[object GeneratorFunction]"==D;if(_(n))return c(n,N);if("[object Object]"==D||"[object Arguments]"==D||R&&!S){if(T=C||R?{}:g(n),!N)return C?l(n,a(T,n)):s(n,o(T,n))}else{if(!O[D])return S?n:{};T=y(n,D,N)}}A||(A=new r);var L=A.get(n);if(L)return L;A.set(n,T),w(n)?n.forEach((function(r){T.add(t(r,e,M,r,n,A))})):m(n)&&n.forEach((function(r,i){T.set(i,t(r,e,M,i,n,A))}));var F=P?C?d:h:C?keysIn:j,q=E?void 0:F(n);return i(q||n,(function(r,i){q&&(r=n[i=r]),u(T,i,t(r,e,M,i,n,A))})),T}},function(t,n){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r&&!1!==n(t[e],e,t););return t}},function(t,n,e){var r=e(406),i=e(283),u=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var o=t[n];u.call(t,n)&&i(o,e)&&(void 0!==e||n in t)||r(t,n,e)}},function(t,n,e){var r=e(407);t.exports=function(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}},function(t,n,e){var r=e(268),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,n,e){var r=e(409),i=e(335);t.exports=function(t,n){return t&&r(n,i(n),t)}},function(t,n,e){var r=e(405),i=e(406);t.exports=function(t,n,e,u){var o=!e;e||(e={});for(var a=-1,c=n.length;++a<c;){var f=n[a],s=u?u(e[f],t[f],f,e,t):void 0;void 0===s&&(s=t[f]),o?i(e,f,s):r(e,f,s)}return e}},function(t,n,e){var r=e(409),i=e(411);t.exports=function(t,n){return t&&r(n,i(n),t)}},function(t,n,e){var r=e(336),i=e(412),u=e(320);t.exports=function(t){return u(t)?r(t,!0):i(t)}},function(t,n,e){var r=e(110),i=e(310),u=e(413),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return u(t);var n=i(t),e=[];for(var a in t)("constructor"!=a||!n&&o.call(t,a))&&e.push(a);return e}},function(t,n){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},function(t,n,e){(function(t){var r=e(112),i=n&&!n.nodeType&&n,u=i&&"object"==typeof t&&t&&!t.nodeType&&t,o=u&&u.exports===i?r.Buffer:void 0,a=o?o.allocUnsafe:void 0;t.exports=function(t,n){if(n)return t.slice();var e=t.length,r=a?a(e):new t.constructor(e);return t.copy(r),r}}).call(this,e(323)(t))},function(t,n){t.exports=function(t,n){var e=-1,r=t.length;for(n||(n=Array(r));++e<r;)n[e]=t[e];return n}},function(t,n,e){var r=e(409),i=e(367);t.exports=function(t,n){return r(t,i(t),n)}},function(t,n,e){var r=e(409),i=e(418);t.exports=function(t,n){return r(t,i(t),n)}},function(t,n,e){var r=e(366),i=e(340),u=e(367),o=e(369),a=Object.getOwnPropertySymbols?function(t){for(var n=[];t;)r(n,u(t)),t=i(t);return n}:o;t.exports=a},function(t,n,e){var r=e(365),i=e(418),u=e(411);t.exports=function(t){return r(t,u,i)}},function(t,n){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,n,e){var r=e(422),i=e(423),u=e(424),o=e(425),a=e(426);t.exports=function(t,n,e){var c=t.constructor;switch(n){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return i(t,e);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,e);case"[object Map]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return u(t);case"[object Set]":return new c;case"[object Symbol]":return o(t)}}},function(t,n,e){var r=e(362);t.exports=function(t){var n=new t.constructor(t.byteLength);return new r(n).set(new r(t)),n}},function(t,n,e){var r=e(422);t.exports=function(t,n){var e=n?r(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}},function(t,n){var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},function(t,n,e){var r=e(118),i=r?r.prototype:void 0,u=i?i.valueOf:void 0;t.exports=function(t){return u?Object(u.call(t)):{}}},function(t,n,e){var r=e(422);t.exports=function(t,n){var e=n?r(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}},function(t,n,e){var r=e(428),i=e(340),u=e(310);t.exports=function(t){return"function"!=typeof t.constructor||u(t)?{}:r(i(t))}},function(t,n,e){var r=e(110),i=Object.create,u=function(){function t(){}return function(n){if(!r(n))return{};if(i)return i(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}}();t.exports=u},function(t,n,e){var r=e(430),i=e(327),u=e(328),o=u&&u.isMap,a=o?i(o):r;t.exports=a},function(t,n,e){var r=e(313),i=e(121);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},function(t,n,e){var r=e(432),i=e(327),u=e(328),o=u&&u.isSet,a=o?i(o):r;t.exports=a},function(t,n,e){var r=e(313),i=e(121);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},function(t,n,e){var r=e(376),i=e(434),u=e(435),o=e(383);t.exports=function(t,n){return n=r(n,t),null==(t=u(t,n))||delete t[o(i(n))]}},function(t,n){t.exports=function(t){var n=null==t?0:t.length;return n?t[n-1]:void 0}},function(t,n,e){var r=e(375),i=e(436);t.exports=function(t,n){return n.length<2?t:r(t,i(n,0,-1))}},function(t,n){t.exports=function(t,n,e){var r=-1,i=t.length;n<0&&(n=-n>i?0:i+n),(e=e>i?i:e)<0&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var u=Array(i);++r<i;)u[r]=t[r+n];return u}},function(t,n,e){var r=e(339);t.exports=function(t){return r(t)?void 0:t}},function(t,n,e){var r=e(439),i=e(440),u=e(442);t.exports=function(t){return u(i(t,void 0,r),t+"")}},function(t,n,e){var r=e(399);t.exports=function(t){return(null==t?0:t.length)?r(t,1):[]}},function(t,n,e){var r=e(441),i=Math.max;t.exports=function(t,n,e){return n=i(void 0===n?t.length-1:n,0),function(){for(var u=arguments,o=-1,a=i(u.length-n,0),c=Array(a);++o<a;)c[o]=u[n+o];o=-1;for(var f=Array(n+1);++o<n;)f[o]=u[o];return f[n]=e(c),r(t,this,f)}}},function(t,n){t.exports=function(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}},function(t,n,e){var r=e(443),i=e(445)(r);t.exports=i},function(t,n,e){var r=e(444),i=e(407),u=e(387),o=i?function(t,n){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(n),writable:!0})}:u;t.exports=o},function(t,n){t.exports=function(t){return function(){return t}}},function(t,n){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),u=16-(i-r);if(r=i,u>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return w}));var r=e(208),i=e(343),u=e(108),o=e.n(u),a=e(447),c=e.n(a),f=e(448),s=e.n(f),l=e(109),h=e.n(l),d=e(259);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function y(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function g(t,n){return(g=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function b(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=x(t);if(n){var i=x(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return _(this,e)}}function _(t,n){return!n||"object"!==p(n)&&"function"!=typeof n?m(t):n}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function x(t){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var w=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&g(t,n)}(a,t);var n,e,u,o=b(a);function a(t,n){var e;return v(this,a),(e=o.apply(this,arguments)).axis=t,e.config=n,e.majorGroup=t.chart.viewport.append("g").attr("class","ticks__y__".concat(t.position,"__major")),e.minorGroup=t.chart.viewport.append("g").attr("class","ticks__y__".concat(t.position,"__minor")),e.update=h()(e.update.bind(m(e)),10),e.draw=h()(e.draw.bind(m(e)),10),t.on("axis",e.update),e}return n=a,(e=[{key:"update",value:function(){var t=this.config.major,n=t.showLabels,e=t.tickFormat;n?c()(e)?this.formatter=Object(r.format)(e):this.formatter=e||null:this.formatter="",this.majorValues=Object(d.calculateTickRange)({zero:this.axis.config.zero||0,interval:this.config.major.interval||1,domain:this.axis.domain}),this.config.minor&&(this.minorValues=s()(Object(d.calculateTickRange)({zero:this.axis.config.zero||0,interval:this.config.minor.interval||(this.config.major.interval||1)/5,domain:this.axis.domain}),this.majorValues)),this.draw()}},{key:"draw",value:function(){var t="right"===this.axis.position?i.axisRight:i.axisLeft;"right"===this.axis.position&&(this.majorGroup.attr("transform","translate(".concat(this.axis.chart.innerWidth,",0)")),this.minorGroup.attr("transform","translate(".concat(this.axis.chart.innerWidth,",0)")));var n=t(this.axis.scale).tickValues(this.majorValues).tickFormat(this.formatter).tickSizeInner(this.config.major.tickSizeInner||0).tickSizeOuter(this.config.major.tickSizeOuter||0).tickPadding(this.config.major.tickPadding||0),e=this.majorGroup.html(null).call(n);if(this.config.major.showLabels&&this.config.major.rotateLabels){var r=this.config.major.rotateLabels,u=r.degree,o=r.anchor,a=r.dx,c=r.dy;e.selectAll("text").style("text-anchor",o||"start").attr("dx",a||0).attr("dy",c||0).attr("transform","rotate(".concat(u||0,")"))}if(this.minorValues){var f=t(this.axis.scale).tickValues(this.minorValues).tickFormat("").tickSizeInner(this.config.minor.tickSizeInner||0).tickSizeOuter(0).tickPadding(0);this.minorGroup.html(null).call(f)}}},{key:"destroy",value:function(){this.axis.off("axis",this.update),this.majorGroup.remove(),this.minorGroup.remove(),this.formatter=null}}])&&y(n.prototype,e),u&&y(n,u),a}(o.a)},function(t,n,e){var r=e(117),i=e(319),u=e(121);t.exports=function(t){return"string"==typeof t||!i(t)&&u(t)&&"[object String]"==r(t)}},function(t,n,e){var r=e(449);t.exports=function(t,n){return t&&t.length&&n&&n.length?r(t,n):t}},function(t,n,e){var r=e(332),i=e(297),u=e(450),o=e(327),a=e(415),c=Array.prototype.splice;t.exports=function(t,n,e,f){var s=f?u:i,l=-1,h=n.length,d=t;for(t===n&&(n=a(n)),e&&(d=r(t,o(e)));++l<h;)for(var p=0,v=n[l],y=e?e(v):v;(p=s(d,y,p,f))>-1;)d!==t&&c.call(d,p,1),c.call(t,p,1);return t}},function(t,n){t.exports=function(t,n,e,r){for(var i=e-1,u=t.length;++i<u;)if(r(t[i],n))return i;return-1}},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return c}));var r=e(343),i=e(109),u=e.n(i),o=e(259);function a(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var c=function(){function t(n,e){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.axis=n,this.config=e,this.group=n.chart.viewport.append("g").attr("class","grid"),this.update=u()(this.update.bind(this),10),this.draw=u()(this.draw.bind(this),10),n.on("axis",this.update)}var n,e,i;return n=t,(e=[{key:"update",value:function(){this.values=Object(o.calculateTickRange)({zero:this.axis.config.zero||0,interval:this.config.ticks.major.interval||1,domain:this.axis.domain}),this.draw()}},{key:"draw",value:function(){var t=Object(r.axisLeft)(this.axis.scale).tickValues(this.values).tickFormat("").tickSizeInner(-this.axis.chart.innerWidth).tickSizeOuter(0);this.group.html(null).call(t)}},{key:"destroy",value:function(){this.axis.off("axis",this.update),this.group.remove()}}])&&a(n.prototype,e),i&&a(n,i),t}()},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return f}));var r=e(126),i=e(250),u=e(109),o=e.n(u),a=e(259);function c(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var f=function(){function t(n,e){var u=this;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.chart=n,this.config=e,this.ignoreTypes=["static","area"],this.formatter=Object(i.timeFormat)(e.format),this.group=n.viewport.append("g").style("display","none"),this.text=n.container.append("div").attr("class","tooltip__text").style("width",e.width+"px").style("display","none"),this.datetime=this.text.append("p").attr("class","tooltip__datetime"),this.list=this.text.append("dl").attr("class","tooltip__list"),this.line=this.group.append("line").attr("class","tooltip__line").attr("stroke-dasharray","5 3").attr("x1",0).attr("x2",1).attr("y1",0).attr("y2",n.innerHeight),n.on("glassover",(function(){u.group.style("display","block"),u.text.style("display","block")})).on("glassout",(function(){u.group.style("display","none"),u.text.style("display","none")})).on("glassmove",(function(t){var i=n.xAxis.dates,o=n.xAxis.scale.invert(t.x),a=Object(r.bisectLeft)(i,o),c=i[a-1],f=i[a],s=Math.abs(o-c)>Math.abs(f-o)?a:Math.max(a-1,0),l=i[s];if(l){var h=n.xAxis.scale(l);u.datetime.text(u.formatter(l)),u.group.selectAll(".tooltip__circle").remove(),u.list.html(null),n.datasets.filter((function(t){return!u.ignoreTypes.includes(t.type)})).forEach((function(t,r){var i=u.getRealValue(t,s),o=u.getColor[r](i);if(u.list.append("dt").text(t.label),u.list.append("dd").html(null!==i?i:"-").style("border-bottom-color",o),null!==i){var a=n.yAxisLeft.scale(u.getPaintValue(t,s));u.group.append("circle").attr("class","tooltip__circle").attr("fill",o).attr("cx",h).attr("cy",a).attr("r",e.radius)}})),u.height||(u.height=u.text.node().offsetHeight);var d=t.y+n.config.padding.top,p=n.height-n.config.padding.bottom-u.height-e.margin,v=Math.min(d,p),y=n.config.padding.left+h,g=n.width-n.config.padding.right,b=y+e.margin+e.width>g;if(u.text.style("top","".concat(v,"px")),b){var _=g-e.margin-h;u.text.style("right","".concat(_,"px")).style("left",null)}else{var m=y+e.margin;u.text.style("left","".concat(m,"px")).style("right",null)}u.line.attr("transform","translate(".concat(h,", 0)")).attr("y2",n.innerHeight)}})),this.update=o()(this.update.bind(this),10),this.draw=o()(this.draw.bind(this),10),n.on("datasets",this.update)}var n,e,u;return n=t,(e=[{key:"getRealValue",value:function(t,n){var e=t.values[n];switch(t.type){case"line":return e.y;case"bars":case"polygon":return e.y2-e.y1;default:throw new Error("Invalid dataset type. ".concat(t.type))}}},{key:"getPaintValue",value:function(t,n){var e=t.values[n];switch(t.type){case"line":return e.y;case"bars":case"polygon":return e.y2;default:throw new Error("Invalid dataset type. ".concat(t.type))}}},{key:"update",value:function(){var t=this;this.getColor=this.chart.datasets.filter((function(n){return!t.ignoreTypes.includes(n.type)})).map((function(t){return Object(a.getColorConverter)(t)})),this.draw()}},{key:"draw",value:function(){this.text.style("width",this.config.width+"px"),this.line.attr("y2",this.chart.innerHeight)}},{key:"destroy",value:function(){chart.off("datasets",this.update),this.line.remove(),this.datetime.remove(),this.list.remove(),this.text.remove(),this.group.remove(),this.getColor=null}}])&&c(n.prototype,e),u&&c(n,u),t}()},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return o}));var r=e(109),i=e.n(r);function u(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=function(){function t(n,e){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.chart=n,this.config=e,this.clipPath=n.viewport.append("clipPath").attr("id","clip--".concat(n.config.key)).append("rect"),this.border=n.viewport.append("rect").attr("class","frame__border"),this.draw=i()(this.draw.bind(this),10),n.on("dimension",this.draw)}var n,e,r;return n=t,(e=[{key:"draw",value:function(){this.clipPath.attr("width",this.chart.innerWidth).attr("height",this.chart.innerHeight),this.border.attr("width",this.chart.innerWidth).attr("height",this.chart.innerHeight)}},{key:"destroy",value:function(){this.chart.off("dimension",this.draw),this.clipPath.remove(),this.border.remove()}}])&&u(n.prototype,e),r&&u(n,r),t}()},function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return f}));var r=e(57),i=e(109),u=e.n(i);function o(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var e=[],r=!0,i=!1,u=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done)&&(e.push(o.value),!n||e.length!==n);r=!0);}catch(t){i=!0,u=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw u}}return e}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return a(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return a(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function c(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var f=function(){function t(n,e){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.chart=n,this.config=e,this.rect=n.viewport.append("rect").attr("class","glass").on("mouseover",(function(){return n.emit("glassover")})).on("mouseout",(function(){return n.emit("glassout")})).on("mousemove",(function(){var t=o(Object(r.clientPoint)(this,r.event),2),e=t[0],i=t[1],u={x:Math.max(0,Math.min(e,n.innerWidth)),y:Math.max(0,Math.min(i,n.innerHeight))};n.emit("glassmove",u)})),this.draw=u()(this.draw.bind(this),10),n.on("dimension",this.draw)}var n,e,i;return n=t,(e=[{key:"draw",value:function(){this.rect.attr("width",this.chart.innerWidth).attr("height",this.chart.innerHeight)}},{key:"destroy",value:function(){this.chart.off("dimension",this.draw),this.rect.remove()}}])&&c(n.prototype,e),i&&c(n,i),t}()}])}));