@thameeranpm/tf-chart-demo1
Version:
Showing positive/negative topic frequency results
1 lines • 325 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.TFChart=t(require("react"),require("react-dom")):e.TFChart=t(e.React,e.ReactDOM)}(window,(function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=361)}([function(e,t,n){e.exports=n(224)()},function(t,n){t.exports=e},function(e,t,n){"use strict";t.a=function(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var i=n(222);t.Motion=r(i);var o=n(226);t.StaggeredMotion=r(o);var a=n(227);t.TransitionMotion=r(a);var c=n(229);t.spring=r(c);var u=n(123);t.presets=r(u);var f=n(60);t.stripStyle=r(f);var s=n(230);t.reorderKeys=r(s)},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){"use strict";var r=n(16);function i(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}var o=n(30);(function e(t){var n=Object(o.b)(t);function i(e,t){var i=n((e=Object(r.f)(e)).r,(t=Object(r.f)(t)).r),a=n(e.g,t.g),c=n(e.b,t.b),u=Object(o.a)(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=a(t),e.b=c(t),e.opacity=u(t),e+""}}return i.gamma=e,i})(1);function a(e){return function(t){var n,i,o=t.length,a=new Array(o),c=new Array(o),u=new Array(o);for(n=0;n<o;++n)i=Object(r.f)(t[n]),a[n]=i.r||0,c[n]=i.g||0,u[n]=i.b||0;return a=e(a),c=e(c),u=e(u),i.opacity=1,function(e){return i.r=a(e),i.g=c(e),i.b=u(e),i+""}}}var c=a((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],c=r>0?e[r-1]:2*o-a,u=r<t-1?e[r+2]:2*a-o;return i((n-r/t)*t,c,o,a,u)}}));a((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],a=e[r%t],c=e[(r+1)%t],u=e[(r+2)%t];return i((n-r/t)*t,o,a,c,u)}})),t.a=function(e){return c(e[e.length-1])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return qo})),n.d(t,"b",(function(){return Ji})),n.d(t,"c",(function(){return ao})),n.d(t,"d",(function(){return Li})),n.d(t,"e",(function(){return So})),n.d(t,"f",(function(){return po})),n.d(t,"g",(function(){return $o})),n.d(t,"h",(function(){return yi})),n.d(t,"i",(function(){return so})),n.d(t,"j",(function(){return Wo})),n.d(t,"k",(function(){return Do})),n.d(t,"l",(function(){return Yo})),n.d(t,"m",(function(){return Lo})),n.d(t,"n",(function(){return Gr})),n.d(t,"o",(function(){return ho})),n.d(t,"p",(function(){return lo})),n.d(t,"q",(function(){return bo})),n.d(t,"r",(function(){return Bi})),n.d(t,"s",(function(){return Pi})),n.d(t,"t",(function(){return ki})),n.d(t,"u",(function(){return Ao})),n.d(t,"v",(function(){return zo})),n.d(t,"w",(function(){return Uo}));var r=n(1),i=n.n(r),o=n(0),a=n.n(o),c=n(33),u=n(180),f=n.n(u),s=n(28),l=n.n(s),d=n(35),h=n.n(d),p=n(4),b=n.n(p);n(9),n(181),n(385),n(19),n(7);var y=n(44);n(383),n(382),n(8),n(381),n(384);var g=n(187),v=n(188),m=n(189),_=n(190),x=n(191),O=n(192),w=n(193),j=n(194),S=n(195),k=n(196),T=n(197),M=n(198),R=n(199),P=n(200),E=n(201),C=n(202),q=n(203),A=n(204),D=n(205),W=n(206),z=n(207),N=n(208),U=n(209),I=n(210),F=n(211),L=n(212),Y=n(213),V=n(362),B=n(363),H=n(364),X=n(365),G=n(366),Z=n(367),$=n(368),J=n(369),K=n(370),Q=n(76),ee=n(118),te=n(371),ne=n(372),re=n(13),ie=n.n(re),oe=n(108),ae=n.n(oe);function ce(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function ue(e){this._context=e}ue.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:ce(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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:ce(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var fe=function(){};function se(e){this._context=e}se.prototype={areaStart:fe,areaEnd:fe,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ce(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function le(e){this._context=e}le.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ce(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function de(e,t){this._basis=new ue(e),this._beta=t}de.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,c=t[n]-o,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(i+r*a),this._beta*t[u]+(1-this._beta)*(o+r*c));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var he=function e(t){function n(e){return 1===t?new ue(e):new de(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function pe(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function be(e,t){this._context=e,this._k=(1-t)/6}be.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:pe(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:pe(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ye=function e(t){function n(e){return new be(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ge(e,t){this._context=e,this._k=(1-t)/6}ge.prototype={areaStart:fe,areaEnd:fe,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:pe(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ve=function e(t){function n(e){return new ge(e,t)}return n.tension=function(t){return e(+t)},n}(0);function me(e,t){this._context=e,this._k=(1-t)/6}me.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(e,t){switch(e=+e,t=+t,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:pe(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var _e=function e(t){function n(e){return new me(e,t)}return n.tension=function(t){return e(+t)},n}(0);Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI;function xe(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>1e-12){var c=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*c-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*c-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>1e-12){var f=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,s=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*f+e._x1*e._l23_2a-t*e._l12_2a)/s,a=(a*f+e._y1*e._l23_2a-n*e._l12_2a)/s}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function Oe(e,t){this._context=e,this._alpha=t}Oe.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(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:xe(this,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var we=function e(t){function n(e){return t?new Oe(e,t):new be(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function je(e,t){this._context=e,this._alpha=t}je.prototype={areaStart:fe,areaEnd:fe,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(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:xe(this,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Se=function e(t){function n(e){return t?new je(e,t):new ge(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ke(e,t){this._context=e,this._alpha=t}ke.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(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+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:xe(this,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Te=function e(t){function n(e){return t?new ke(e,t):new me(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Me(e){this._context=e}Me.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function Re(e){this._context=e}Re.prototype={areaStart:fe,areaEnd:fe,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Pe(e){return e<0?-1:1}function Ee(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),c=(o*i+a*r)/(r+i);return(Pe(o)+Pe(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(c))||0}function Ce(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function qe(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,c=(o-r)/3;e._context.bezierCurveTo(r+c,i+c*t,o-c,a-c*n,o,a)}function Ae(e){this._context=e}function De(e){this._context=new We(e)}function We(e){this._context=e}function ze(e){this._context=e}function Ne(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}Ae.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:qe(this,this._t0,Ce(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,qe(this,Ce(this,n=Ee(this,e,t)),n);break;default:qe(this,this._t0,n=Ee(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(De.prototype=Object.create(Ae.prototype)).point=function(e,t){Ae.prototype.point.call(this,t,e)},We.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},ze.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Ne(e),i=Ne(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Ue(e,t){this._context=e,this._t=t}Ue.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var Ie=n(26),Fe=function(e){var t=e.map(Le);return Object(Ie.a)(e).sort((function(e,n){return t[e]-t[n]}))};function Le(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}function Ye(e){for(var t,n=-1,r=0,i=e.length,o=-1/0;++n<i;)(t=+e[n][1])>o&&(o=t,r=n);return r}var Ve=n(27),Be=n(214),He=function(e,t,n,r,i){for(var o,a=e.children,c=-1,u=a.length,f=e.value&&(r-t)/e.value;++c<u;)(o=a[c]).y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*f},Xe=function(e,t,n,r,i){for(var o,a=e.children,c=-1,u=a.length,f=e.value&&(i-n)/e.value;++c<u;)(o=a[c]).x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*f},Ge=(1+Math.sqrt(5))/2;function Ze(e,t,n,r,i,o){for(var a,c,u,f,s,l,d,h,p,b,y,g=[],v=t.children,m=0,_=0,x=v.length,O=t.value;m<x;){u=i-n,f=o-r;do{s=v[_++].value}while(!s&&_<x);for(l=d=s,y=s*s*(b=Math.max(f/u,u/f)/(O*e)),p=Math.max(d/y,y/l);_<x;++_){if(s+=c=v[_].value,c<l&&(l=c),c>d&&(d=c),y=s*s*b,(h=Math.max(d/y,y/l))>p){s-=c;break}p=h}g.push(a={value:s,dice:u<f,children:v.slice(m,_)}),a.dice?He(a,n,r,i,O?r+=f*s/O:o):Xe(a,n,r,O?n+=u*s/O:i,o),O-=s,m=_}return g}var $e=function e(t){function n(e,n,r,i,o){Ze(t,e,n,r,i,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(Ge),Je=function e(t){function n(e,n,r,i,o){if((a=e._squarify)&&a.ratio===t)for(var a,c,u,f,s,l=-1,d=a.length,h=e.value;++l<d;){for(u=(c=a[l]).children,f=c.value=0,s=u.length;f<s;++f)c.value+=u[f].value;c.dice?He(c,n,r,i,r+=(o-r)*c.value/h):Xe(c,n,r,n+=(i-n)*c.value/h,o),h-=c.value}else e._squarify=a=Ze(t,e,n,r,i,o),a.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(Ge);function Ke(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Qe(e,t){var n,r,i,o,a,c=new rt(e),u=+e.value&&(c.value=e.value),f=[c];for(null==t&&(t=et);n=f.pop();)if(u&&(n.value=+n.data.value),(i=t(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)f.push(r=n.children[o]=new rt(i[o])),r.parent=n,r.depth=n.depth+1;return c.eachBefore(nt)}function et(e){return e.children}function tt(e){e.data=e.data.data}function nt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function rt(e){this.data=e,this.depth=this.height=0,this.parent=null}rt.prototype=Qe.prototype={constructor:rt,count:function(){return this.eachAfter(Ke)},each:function(e){var t,n,r,i,o=this,a=[o];do{for(t=a.reverse(),a=[];o=t.pop();)if(e(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r])}while(a.length);return this},eachAfter:function(e){for(var t,n,r,i=this,o=[i],a=[];i=o.pop();)if(a.push(i),t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n]);for(;i=a.pop();)e(i);return this},eachBefore:function(e){for(var t,n,r=this,i=[r];r=i.pop();)if(e(r),t=r.children)for(n=t.length-1;n>=0;--n)i.push(t[n]);return this},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each((function(t){e.push(t)})),e},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Qe(this).eachBefore(tt)}};function it(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var ot=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function at(e){if(!(t=ot.exec(e)))throw new Error("invalid format: "+e);var t;return new ct({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function ct(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}at.prototype=ct.prototype,ct.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};var ut,ft,st,lt=function(e,t){var n=it(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},dt={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return lt(100*e,t)},r:lt,s:function(e,t){var n=it(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(ut=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+it(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},ht=function(e){return e},pt=Array.prototype.map,bt=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];ft=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?ht:(t=pt.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,c=t[0],u=0;i>0&&c>0&&(u+c+1>r&&(c=Math.max(1,r-u)),o.push(e.substring(i-=c,i+c)),!((u+=c+1)>r));)c=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",c=void 0===e.numerals?ht:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(pt.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",f=void 0===e.minus?"-":e.minus+"",s=void 0===e.nan?"NaN":e.nan+"";function l(e){var t=(e=at(e)).fill,n=e.align,l=e.sign,d=e.symbol,h=e.zero,p=e.width,b=e.comma,y=e.precision,g=e.trim,v=e.type;"n"===v?(b=!0,v="g"):dt[v]||(void 0===y&&(y=12),g=!0,v="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var m="$"===d?i:"#"===d&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",_="$"===d?o:/[%p]/.test(v)?u:"",x=dt[v],O=/[defgprs%]/.test(v);function w(e){var i,o,u,d=m,w=_;if("c"===v)w=x(e)+w,e="";else{var j=(e=+e)<0||1/e<0;if(e=isNaN(e)?s:x(Math.abs(e),y),g&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),j&&0==+e&&"+"!==l&&(j=!1),d=(j?"("===l?l:f:"-"===l||"("===l?"":l)+d,w=("s"===v?bt[8+ut/3]:"")+w+(j&&"("===l?")":""),O)for(i=-1,o=e.length;++i<o;)if(48>(u=e.charCodeAt(i))||u>57){w=(46===u?a+e.slice(i+1):e.slice(i))+w,e=e.slice(0,i);break}}b&&!h&&(e=r(e,1/0));var S=d.length+e.length+w.length,k=S<p?new Array(p-S+1).join(t):"";switch(b&&h&&(e=r(k+e,k.length?p-w.length:1/0),k=""),n){case"<":e=d+e+w+k;break;case"=":e=d+k+e+w;break;case"^":e=k.slice(0,S=k.length>>1)+d+e+w+k.slice(S);break;default:e=k+d+e+w}return c(e)}return y=void 0===y?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),w.toString=function(){return e+""},w}return{format:l,formatPrefix:function(e,t){var n,r=l(((e=at(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor((n=t,((n=it(Math.abs(n)))?n[1]:NaN)/3)))),o=Math.pow(10,-i),a=bt[8+i/3];return function(e){return r(o*e)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),st=ft.format,ft.formatPrefix;var yt=new Date,gt=new Date;function vt(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,c=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return c;do{c.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return c},i.filter=function(n){return vt((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return yt.setTime(+t),gt.setTime(+r),e(yt),e(gt),Math.floor(n(yt,gt))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}function mt(e){return vt((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/6048e5}))}var _t=mt(0),xt=mt(1),Ot=mt(2),wt=mt(3),jt=mt(4),St=mt(5),kt=mt(6),Tt=(_t.range,xt.range,Ot.range,wt.range,jt.range,St.range,kt.range,vt((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}))),Mt=Tt;Tt.range;function Rt(e){return vt((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}var Pt=Rt(0),Et=Rt(1),Ct=Rt(2),qt=Rt(3),At=Rt(4),Dt=Rt(5),Wt=Rt(6),zt=(Pt.range,Et.range,Ct.range,qt.range,At.range,Dt.range,Wt.range,vt((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5}),(function(e){return e.getDate()-1}))),Nt=zt,Ut=(zt.range,vt((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));Ut.every=function(e){return isFinite(e=Math.floor(e))&&e>0?vt((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var It=Ut,Ft=(Ut.range,vt((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));Ft.every=function(e){return isFinite(e=Math.floor(e))&&e>0?vt((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var Lt=Ft;Ft.range;function Yt(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Vt(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Bt(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var Ht,Xt,Gt={"-":"",_:" ",0:"0"},Zt=/^\s*\d+/,$t=/^%/,Jt=/[\\^$*+?|[\]().{}]/g;function Kt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function Qt(e){return e.replace(Jt,"\\$&")}function en(e){return new RegExp("^(?:"+e.map(Qt).join("|")+")","i")}function tn(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function nn(e,t,n){var r=Zt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function rn(e,t,n){var r=Zt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function on(e,t,n){var r=Zt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function an(e,t,n){var r=Zt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function cn(e,t,n){var r=Zt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function un(e,t,n){var r=Zt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function fn(e,t,n){var r=Zt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function sn(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ln(e,t,n){var r=Zt.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function dn(e,t,n){var r=Zt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function hn(e,t,n){var r=Zt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function pn(e,t,n){var r=Zt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function bn(e,t,n){var r=Zt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function yn(e,t,n){var r=Zt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function gn(e,t,n){var r=Zt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function vn(e,t,n){var r=Zt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function mn(e,t,n){var r=Zt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function _n(e,t,n){var r=$t.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function xn(e,t,n){var r=Zt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function On(e,t,n){var r=Zt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function wn(e,t){return Kt(e.getDate(),t,2)}function jn(e,t){return Kt(e.getHours(),t,2)}function Sn(e,t){return Kt(e.getHours()%12||12,t,2)}function kn(e,t){return Kt(1+Nt.count(It(e),e),t,3)}function Tn(e,t){return Kt(e.getMilliseconds(),t,3)}function Mn(e,t){return Tn(e,t)+"000"}function Rn(e,t){return Kt(e.getMonth()+1,t,2)}function Pn(e,t){return Kt(e.getMinutes(),t,2)}function En(e,t){return Kt(e.getSeconds(),t,2)}function Cn(e){var t=e.getDay();return 0===t?7:t}function qn(e,t){return Kt(Pt.count(It(e)-1,e),t,2)}function An(e){var t=e.getDay();return t>=4||0===t?At(e):At.ceil(e)}function Dn(e,t){return e=An(e),Kt(At.count(It(e),e)+(4===It(e).getDay()),t,2)}function Wn(e){return e.getDay()}function zn(e,t){return Kt(Et.count(It(e)-1,e),t,2)}function Nn(e,t){return Kt(e.getFullYear()%100,t,2)}function Un(e,t){return Kt((e=An(e)).getFullYear()%100,t,2)}function In(e,t){return Kt(e.getFullYear()%1e4,t,4)}function Fn(e,t){var n=e.getDay();return Kt((e=n>=4||0===n?At(e):At.ceil(e)).getFullYear()%1e4,t,4)}function Ln(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Kt(t/60|0,"0",2)+Kt(t%60,"0",2)}function Yn(e,t){return Kt(e.getUTCDate(),t,2)}function Vn(e,t){return Kt(e.getUTCHours(),t,2)}function Bn(e,t){return Kt(e.getUTCHours()%12||12,t,2)}function Hn(e,t){return Kt(1+Mt.count(Lt(e),e),t,3)}function Xn(e,t){return Kt(e.getUTCMilliseconds(),t,3)}function Gn(e,t){return Xn(e,t)+"000"}function Zn(e,t){return Kt(e.getUTCMonth()+1,t,2)}function $n(e,t){return Kt(e.getUTCMinutes(),t,2)}function Jn(e,t){return Kt(e.getUTCSeconds(),t,2)}function Kn(e){var t=e.getUTCDay();return 0===t?7:t}function Qn(e,t){return Kt(_t.count(Lt(e)-1,e),t,2)}function er(e){var t=e.getUTCDay();return t>=4||0===t?jt(e):jt.ceil(e)}function tr(e,t){return e=er(e),Kt(jt.count(Lt(e),e)+(4===Lt(e).getUTCDay()),t,2)}function nr(e){return e.getUTCDay()}function rr(e,t){return Kt(xt.count(Lt(e)-1,e),t,2)}function ir(e,t){return Kt(e.getUTCFullYear()%100,t,2)}function or(e,t){return Kt((e=er(e)).getUTCFullYear()%100,t,2)}function ar(e,t){return Kt(e.getUTCFullYear()%1e4,t,4)}function cr(e,t){var n=e.getUTCDay();return Kt((e=n>=4||0===n?jt(e):jt.ceil(e)).getUTCFullYear()%1e4,t,4)}function ur(){return"+0000"}function fr(){return"%"}function sr(e){return+e}function lr(e){return Math.floor(+e/1e3)}!function(e){Ht=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,c=e.months,u=e.shortMonths,f=en(i),s=tn(i),l=en(o),d=tn(o),h=en(a),p=tn(a),b=en(c),y=tn(c),g=en(u),v=tn(u),m={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return c[e.getMonth()]},c:null,d:wn,e:wn,f:Mn,g:Un,G:Fn,H:jn,I:Sn,j:kn,L:Tn,m:Rn,M:Pn,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:sr,s:lr,S:En,u:Cn,U:qn,V:Dn,w:Wn,W:zn,x:null,X:null,y:Nn,Y:In,Z:Ln,"%":fr},_={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return c[e.getUTCMonth()]},c:null,d:Yn,e:Yn,f:Gn,g:or,G:cr,H:Vn,I:Bn,j:Hn,L:Xn,m:Zn,M:$n,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:sr,s:lr,S:Jn,u:Kn,U:Qn,V:tr,w:nr,W:rr,x:null,X:null,y:ir,Y:ar,Z:ur,"%":fr},x={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return j(e,t,n,r)},d:hn,e:hn,f:mn,g:fn,G:un,H:bn,I:bn,j:pn,L:vn,m:dn,M:yn,p:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.p=s[r[0].toLowerCase()],n+r[0].length):-1},q:ln,Q:xn,s:On,S:gn,u:rn,U:on,V:an,w:nn,W:cn,x:function(e,t,r){return j(e,n,t,r)},X:function(e,t,n){return j(e,r,t,n)},y:fn,Y:un,Z:sn,"%":_n};function O(e,t){return function(n){var r,i,o,a=[],c=-1,u=0,f=e.length;for(n instanceof Date||(n=new Date(+n));++c<f;)37===e.charCodeAt(c)&&(a.push(e.slice(u,c)),null!=(i=Gt[r=e.charAt(++c)])?r=e.charAt(++c):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),u=c+1);return a.push(e.slice(u,c)),a.join("")}}function w(e,t){return function(n){var r,i,o=Bt(1900,void 0,1);if(j(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Vt(Bt(o.y,0,1))).getUTCDay(),r=i>4||0===i?xt.ceil(r):xt(r),r=Mt.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Yt(Bt(o.y,0,1))).getDay(),r=i>4||0===i?Et.ceil(r):Et(r),r=Nt.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Vt(Bt(o.y,0,1)).getUTCDay():Yt(Bt(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Vt(o)):Yt(o)}}function j(e,t,n,r){for(var i,o,a=0,c=t.length,u=n.length;a<c;){if(r>=u)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=x[i in Gt?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return m.x=O(n,m),m.X=O(r,m),m.c=O(t,m),_.x=O(n,_),_.X=O(r,_),_.c=O(t,_),{format:function(e){var t=O(e+="",m);return t.toString=function(){return e},t},parse:function(e){var t=w(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=w(e+="",!0);return t.toString=function(){return e},t}}}(e),Xt=Ht.format,Ht.parse,Ht.utcFormat,Ht.utcParse}({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"]});var dr=n(3),hr=n(16);function pr(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}var br=function(e){return function(){return e}};function yr(e,t){return function(n){return e+n*t}}function gr(e){return 1==(e=+e)?vr:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):br(isNaN(t)?n:t)}}function vr(e,t){var n=t-e;return n?yr(e,n):br(isNaN(e)?t:e)}var mr=function e(t){var n=gr(t);function r(e,t){var r=n((e=Object(hr.f)(e)).r,(t=Object(hr.f)(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=vr(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function _r(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),c=new Array(i);for(n=0;n<i;++n)r=Object(hr.f)(t[n]),o[n]=r.r||0,a[n]=r.g||0,c[n]=r.b||0;return o=e(o),a=e(a),c=e(c),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=c(e),r+""}}}_r((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,c=r<t-1?e[r+2]:2*o-i;return pr((n-r/t)*t,a,i,o,c)}})),_r((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],c=e[(r+2)%t];return pr((n-r/t)*t,i,o,a,c)}}));var xr=function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}};function Or(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function wr(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Pr(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}var jr=function(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}},Sr=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}},kr=function(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Pr(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}},Tr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mr=new RegExp(Tr.source,"g");var Rr=function(e,t){var n,r,i,o=Tr.lastIndex=Mr.lastIndex=0,a=-1,c=[],u=[];for(e+="",t+="";(n=Tr.exec(e))&&(r=Mr.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),c[a]?c[a]+=i:c[++a]=i),(n=n[0])===(r=r[0])?c[a]?c[a]+=r:c[++a]=r:(c[++a]=null,u.push({i:a,x:Sr(n,r)})),o=Mr.lastIndex;return o<t.length&&(i=t.slice(o),c[a]?c[a]+=i:c[++a]=i),c.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)c[(n=u[r]).i]=n.x(e);return c.join("")})},Pr=function(e,t){var n,r=typeof t;return null==t||"boolean"===r?br(t):("number"===r?Sr:"string"===r?(n=Object(hr.e)(t))?(t=n,mr):Rr:t instanceof hr.e?mr:t instanceof Date?jr:Or(t)?xr:Array.isArray(t)?wr:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?kr:Sr)(e,t)},Er=n(55),Cr=(n(182),n(109)),qr=n.n(Cr),Ar=n(34),Dr=n.n(Ar),Wr=n(56),zr=n.n(Wr),Nr=n(43),Ur=n.n(Nr),Ir=n(10),Fr=n.n(Ir),Lr=n(183),Yr=n.n(Lr),Vr=n(24),Br=n.n(Vr),Hr=n(184),Xr=n.n(Hr),Gr=function(){};function Zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(Object(n));"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$r(e,t,n[t])}))}return e}function $r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jr={fill:a.a.string,fontSize:a.a.number,fontFamily:a.a.string},Kr=a.a.shape({domain:a.a.shape({line:a.a.shape({stroke:a.a.string.isRequired,strokeWidth:a.a.number.isRequired,strokeDasharray:a.a.string}).isRequired}).isRequired,ticks:a.a.shape({line:a.a.shape({stroke:a.a.string.isRequired,strokeWidth:a.a.number.isRequired,strokeDasharray:a.a.string}).isRequired,text:a.a.shape(Zr({},Jr)).isRequired}).isRequired,legend:a.a.shape({text:a.a.shape(Zr({},Jr)).isRequired}).isRequired}),Qr=a.a.shape({line:a.a.shape({stroke:a.a.string.isRequired,strokeWidth:a.a.number.isRequired,strokeDasharray:a.a.string}).isRequired}),ei=a.a.shape({text:a.a.shape(Zr({},Jr)).isRequired}),ti=a.a.shape({text:a.a.shape(Zr({},Jr)).isRequired}),ni=a.a.shape({text:a.a.shape(Zr({},Jr)).isRequired}),ri=a.a.shape({text:a.a.shape(Zr({},Jr)).isRequired}),ii=a.a.shape({line:a.a.shape({stroke:a.a.string.isRequired,strokeWidth:a.a.number.isRequired,strokeDasharray:a.a.string}).isRequired}),oi=a.a.shape({text:a.a.shape(Zr({},Jr,{outlineWidth:a.a.number.isRequired,outlineColor:a.a.string.isRequired})).isRequired,link:a.a.shape({stroke:a.a.string.isRequired,strokeWidth:a.a.number.isRequired,outlineWidth:a.a.number.isRequired,outlineColor:a.a.string.isRequired}).isRequired,outline:a.a.shape({stroke:a.a.string.isRequired,strokeWidth:a.a.number.isRequired,outlineWidth:a.a.number.isRequired,outlineColor:a.a.string.isRequired}).isRequired,symbol:a.a.shape({fill:a.a.string.isRequired,outlineWidth:a.a.number.isRequired,outlineColor:a.a.string.isRequired}).isRequired}),ai=(a.a.shape({background:a.a.string.isRequired,fontFamily:a.a.string.isRequired,fontSize:a.a.number.isRequired,textColor:a.a.string.isRequired,axis:Kr.isRequired,grid:Qr.isRequired,legends:ei.isRequired,labels:ti.isRequired,dots:ni.isRequired,markers:ri,crosshair:ii.isRequired,annotations:oi.isRequired}),{background:"transparent",fontFamily:"sans-serif",fontSize:11,textColor:"#333333",axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{text:{fill:"#333333"}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff"},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff"},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff"},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff"}}}),ci=["axis.ticks.text","axis.legend.text","legends.text","labels.text","dots.text","markers.text","annotations.text"],ui=function(e,t){var n=f()({},e,t);return ci.forEach((function(e){void 0===l()(n,"".concat(e,".fontFamily"))&&h()(n,"".concat(e,".fontFamily"),n.fontFamily),void 0===l()(n,"".concat(e,".fontSize"))&&h()(n,"".concat(e,".fontSize"),n.fontSize),void 0===l()(n,"".concat(e,".fill"))&&h()(n,"".concat(e,".fill"),n.textColor)})),n},fi={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:b()(g.b),PRGn:b()(v.b),PiYG:b()(m.b),PuOr:b()(_.b),RdBu:b()(x.b),RdGy:b()(O.b),RdYlBu:b()(w.b),RdYlGn:b()(j.b),spectral:b()(S.b),blues:b()(k.b),greens:b()(T.b),greys:b()(M.b),oranges:b()(R.b),purples:b()(P.b),reds:b()(E.b),BuGn:b()(C.b),BuPu:b()(q.b),GnBu:b()(A.b),OrRd:b()(D.b),PuBuGn:b()(W.b),PuBu:b()(z.b),PuRd:b()(N.b),RdPu:b()(U.b),YlGnBu:b()(I.b),YlGn:b()(F.b),YlOrBr:b()(L.b),YlOrRd:b()(Y.b)},si=Object.keys(fi),li=(V.a,B.a,H.a,X.a,G.a,Z.a,$.a,J.a,K.a,b()(g.b),b()(v.b),b()(m.b),b()(_.b),b()(x.b),b()(O.b),b()(w.b),b()(j.b),b()(S.b),b()(k.b),b()(T.b),b()(M.b),b()(R.b),b()(P.b),b()(E.b),b()(C.b),b()(q.b),b()(A.b),b()(D.b),b()(W.b),b()(z.b),b()(N.b),b()(U.b),b()(I.b),b()(F.b),b()(L.b),b()(Y.b),g.a,v.a,m.a,_.a,x.a,O.a,w.a,j.a,S.a,k.a,T.a,M.a,R.a,P.a,E.a,Q.a,Q.b,Q.c,Q.d,ee.c,ee.a,te.a,C.a,q.a,A.a,D.a,W.a,z.a,N.a,U.a,I.a,F.a,L.a,Y.a,ee.b,ne.a,a.a.oneOfType([a.a.oneOf(si),a.a.func,a.a.arrayOf(a.a.string)]),{basis:function(e){return new ue(e)},basisClosed:function(e){return new se(e)},basisOpen:function(e){return new le(e)},bundle:he,cardinal:ye,cardinalClosed:ve,cardinalOpen:_e,catmullRom:we,catmullRomClosed:Se,catmullRomOpen:Te,linear:function(e){return new Me(e)},linearClosed:function(e){return new Re(e)},monotoneX:function(e){return new Ae(e)},monotoneY:function(e){return new De(e)},natural:function(e){return new ze(e)},step:function(e){return new Ue(e,.5)},stepAfter:function(e){return new Ue(e,1)},stepBefore:function(e){return new Ue(e,0)}}),di=Object.keys(li),hi=(a.a.oneOf(di),di.filter((function(e){return e.endsWith("Closed")}))),pi=(a.a.oneOf(hi),ae()(di,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed")),bi=(a.a.oneOf(pi),ae()(di,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed")),yi=(a.a.oneOf(bi),{defs:a.a.arrayOf(a.a.shape({id:a.a.string.isRequired})).isRequired,fill:a.a.arrayOf(a.a.shape({id:a.a.string.isRequired,match:a.a.oneOfType([a.a.oneOf(["*"]),a.a.object,a.a.func]).isRequired})).isRequired}),gi={ascending:Fe,descending:function(e){return Fe(e).reverse()},insideOut:function(e){var t,n,r=e.length,i=e.map(Le),o=function(e){var t=e.map(Ye);return Object(Ie.a)(e).sort((function(e,n){return t[e]-t[n]}))}(e),a=0,c=0,u=[],f=[];for(t=0;t<r;++t)n=o[t],a<c?(a+=i[n],u.push(n)):(c+=i[n],f.push(n));return f.reverse().concat(u)},none:Ie.a,reverse:function(e){return Object(Ie.a)(e).reverse()}},vi=Object.keys(gi),mi=(a.a.oneOf(vi),{expand:function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}Object(Ve.a)(e,t)}},diverging:Be.a,none:Ve.a,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,c=0;a<n;++a)c+=e[a][r][1]||0;i[r][1]+=i[r][0]=-c/2}Object(Ve.a)(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var c=0,u=0,f=0;c<i;++c){for(var s=e[t[c]],l=s[a][1]||0,d=(l-(s[a-1][1]||0))/2,h=0;h<c;++h){var p=e[t[h]];d+=(p[a][1]||0)-(p[a-1][1]||0)}u+=l,f+=d*l}n[a-1][1]+=n[a-1][0]=o,u&&(o-=f/u)}n[a-1][1]+=n[a-1][0]=o,Object(Ve.a)(e,t)}}}),_i=Object.keys(mi),xi=(a.a.oneOf(_i),{binary:function(e,t,n,r,i){var o,a,c=e.children,u=c.length,f=new Array(u+1);for(f[0]=a=o=0;o<u;++o)f[o+1]=a+=c[o].value;!function e(t,n,r,i,o,a,u){if(t>=n-1){var s=c[t];return s.x0=i,s.y0=o,s.x1=a,void(s.y1=u)}var l=f[t],d=r/2+l,h=t+1,p=n-1;for(;h<p;){var b=h+p>>>1;f[b]<d?h=b+1:p=b}d-f[h-1]<f[h]-d&&t+1<h&&--h;var y=f[h]-l,g=r-y;if(a-i>u-o){var v=(i*g+a*y)/r;e(t,h,y,i,o,v,u),e(h,n,g,v,o,a,u)}else{var m=(o*g+u*y)/r;e(t,h,y,i,o,a,m),e(h,n,g,i,m,a,u)}}(0,u,e.value,t,n,r,i)},dice:He,slice:Xe,sliceDice:function(e,t,n,r,i){(1&e.depth?Xe:He)(e,t,n,r,i)},squarify:$e,resquarify:Je}),Oi=Object.keys(xi),wi=(a.a.oneOf(Oi),a.a.shape({top:a.a.number,right:a.a.number,bottom:a.a.number,left:a.a.number}).isRequired),ji={animate:a.a.bool.isRequired,motionStiffness:a.a.number.isRequired,motionDamping:a.a.number.isRequired},Si=(a.a.oneOf(["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]),Objec