Socket
Socket
Sign inDemoInstall

rollup-plugin-visualizer

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-visualizer - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

2

lib/pluginmain.js

@@ -1,1 +0,1 @@

!function(){"use strict";function t(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===ve&&n.documentElement.namespaceURI===ve?n.createElement(t):n.createElementNS(e,t)}}function n(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function e(t,n,e){return t=r(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function r(t,n,e){return function(r){var i=Ce;Ce=r;try{t.call(this,this.__data__,n,e)}finally{Ce=i}}}function i(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 o(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++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 u(t,n,i){var o=Ae.hasOwnProperty(t.type)?e:r;return function(e,r,u){var a,c=this.__on,s=o(n,r,u);if(c)for(var h=0,l=c.length;h<l;++h)if((a=c[h]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=s,a.capture=i),void(a.value=n);this.addEventListener(t.type,s,i),a={type:t.type,name:t.name,value:n,listener:s,capture:i},c?c.push(a):this.__on=[a]}}function a(){}function c(){return[]}function s(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function h(t,n,e,r,i,o){for(var u,a=0,c=n.length,h=o.length;a<h;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new s(t,o[a]);for(;a<c;++a)(u=n[a])&&(i[a]=u)}function l(t,n,e,r,i,o,u){var a,c,h,l={},f=n.length,p=o.length,g=new Array(f);for(a=0;a<f;++a)(c=n[a])&&(g[a]=h=De+u.call(c,c.__data__,a,n),h in l?i[a]=c:l[h]=c);for(a=0;a<p;++a)(c=l[h=De+u.call(t,o[a],a,o)])?(r[a]=c,c.__data__=o[a],l[h]=null):e[a]=new s(t,o[a]);for(a=0;a<f;++a)(c=n[a])&&l[g[a]]===c&&(i[a]=c)}function f(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function p(t){return function(){this.removeAttribute(t)}}function g(t){return function(){this.removeAttributeNS(t.space,t.local)}}function d(t,n){return function(){this.setAttribute(t,n)}}function y(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function v(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function m(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)}}function _(t){return function(){this.style.removeProperty(t)}}function M(t,n,e){return function(){this.style.setProperty(t,n,e)}}function w(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function x(t,n){return t.style.getPropertyValue(n)||Fe(t).getComputedStyle(t,null).getPropertyValue(n)}function b(t){return function(){delete this[t]}}function T(t,n){return function(){this[t]=n}}function A(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function C(t){return t.trim().split(/^|\s+/)}function N(t){return t.classList||new k(t)}function k(t){this._node=t,this._names=C(t.getAttribute("class")||"")}function S(t,n){for(var e=N(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function U(t,n){for(var e=N(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function D(t){return function(){S(this,t)}}function F(t){return function(){U(this,t)}}function E(t,n){return function(){(n.apply(this,arguments)?S:U)(this,t)}}function L(){this.textContent=""}function H(t){return function(){this.textContent=t}}function Y(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function P(){this.innerHTML=""}function $(t){return function(){this.innerHTML=t}}function z(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function q(){this.nextSibling&&this.parentNode.appendChild(this)}function B(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function O(){return null}function j(){var t=this.parentNode;t&&t.removeChild(this)}function I(t,n,e){var r=Fe(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function R(t,n){return function(){return I(this,t,n)}}function Z(t,n){return function(){return I(this,t,n.apply(this,arguments))}}function W(t,n){this._groups=t,this._parents=n}function X(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function J(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}function V(t,n){var e,r,i,o,u,a=new tt(t),c=+t.value&&(a.value=t.value),s=[a];for(null==n&&(n=G);e=s.pop();)if(c&&(e.value=+e.data.value),(i=n(e.data))&&(u=i.length))for(e.children=new Array(u),o=u-1;o>=0;--o)s.push(r=e.children[o]=new tt(i[o])),r.parent=e,r.depth=e.depth+1;return a.eachBefore(K)}function G(t){return t.children}function Q(t){t.data=t.data.data}function K(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function tt(t){this.data=t,this.depth=this.height=0,this.parent=null}function nt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function et(){return new nt}function rt(t){return t>1?0:t<-1?Je:Math.acos(t)}function it(t){return t>=1?Ve:t<=-1?-Ve:Math.asin(t)}function ot(t){return t.innerRadius}function ut(t){return t.outerRadius}function at(t){return t.startAngle}function ct(t){return t.endAngle}function st(t){return t&&t.padAngle}function ht(t,n,e,r,i,o,u,a){var c=e-t,s=r-n,h=u-i,l=a-o,f=(h*(n-o)-l*(t-i))/(l*c-h*s);return[t+f*c,n+f*s]}function lt(t,n,e,r,i,o,u){var a=t-e,c=n-r,s=(u?o:-o)/We(a*a+c*c),h=s*c,l=-s*a,f=t+h,p=n+l,g=e+h,d=r+l,y=(f+g)/2,v=(p+d)/2,m=g-f,_=d-p,M=m*m+_*_,w=i-o,x=f*d-g*p,b=(_<0?-1:1)*We(Ie(0,w*w*M-x*x)),T=(x*_-m*b)/M,A=(-x*m-_*b)/M,C=(x*_+m*b)/M,N=(-x*m+_*b)/M,k=T-y,S=A-v,U=C-y,D=N-v;return k*k+S*S>U*U+D*D&&(T=C,A=N),{cx:T,cy:A,x01:-h,y01:-l,x11:T*(i/w-1),y11:A*(i/w-1)}}function ft(t){this._context=t}function pt(t){return t<0?-1:1}function gt(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),u=(e-t._y1)/(i||r<0&&-0),a=(o*i+u*r)/(r+i);return(pt(o)+pt(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function dt(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function yt(t,n,e){var r=t._x0,i=t._y0,o=t._x1,u=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,i+a*n,o-a,u-a*e,o,u)}function vt(t){this._context=t}function mt(t){this._context=t}function _t(t){return function(n,e){return Qe(t(n),e)}}function Mt(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=tr?10:o>=nr?5:o>=er?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=tr?10:o>=nr?5:o>=er?2:1)}function wt(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=tr?i*=10:o>=nr?i*=5:o>=er&&(i*=2),n<t?-i:i}function xt(){}function bt(t,n){var e=new xt;if(t instanceof xt)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==n)for(;++i<o;)e.set(i,t[i]);else for(;++i<o;)e.set(n(r=t[i],i,t),r)}else if(t)for(var u in t)e.set(u,t[u]);return e}function Tt(){}function At(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Ct(){}function Nt(t){var n;return t=(t+"").trim().toLowerCase(),(n=fr.exec(t))?(n=parseInt(n[1],16),new Ft(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1)):(n=pr.exec(t))?kt(parseInt(n[1],16)):(n=gr.exec(t))?new Ft(n[1],n[2],n[3],1):(n=dr.exec(t))?new Ft(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=yr.exec(t))?St(n[1],n[2],n[3],n[4]):(n=vr.exec(t))?St(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=mr.exec(t))?Et(n[1],n[2]/100,n[3]/100,1):(n=_r.exec(t))?Et(n[1],n[2]/100,n[3]/100,n[4]):Mr.hasOwnProperty(t)?kt(Mr[t]):"transparent"===t?new Ft(NaN,NaN,NaN,0):null}function kt(t){return new Ft(t>>16&255,t>>8&255,255&t,1)}function St(t,n,e,r){return r<=0&&(t=n=e=NaN),new Ft(t,n,e,r)}function Ut(t){return t instanceof Ct||(t=Nt(t)),t?(t=t.rgb(),new Ft(t.r,t.g,t.b,t.opacity)):new Ft}function Dt(t,n,e,r){return 1===arguments.length?Ut(t):new Ft(t,n,e,null==r?1:r)}function Ft(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Et(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Ht(t,n,e,r)}function Lt(t){if(t instanceof Ht)return new Ht(t.h,t.s,t.l,t.opacity);if(t instanceof Ct||(t=Nt(t)),!t)return new Ht;if(t instanceof Ht)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,a=o-i,c=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(e<r):e===o?(r-n)/a+2:(n-e)/a+4,a/=c<.5?o+i:2-o-i,u*=60):a=c>0&&c<1?0:u,new Ht(u,a,c,t.opacity)}function Ht(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Yt(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function Pt(t){if(t instanceof $t)return new $t(t.l,t.a,t.b,t.opacity);if(t instanceof It){var n=t.h*wr;return new $t(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof Ft||(t=Ut(t));var e=Ot(t.r),r=Ot(t.g),i=Ot(t.b),o=zt((.4124564*e+.3575761*r+.1804375*i)/br),u=zt((.2126729*e+.7151522*r+.072175*i)/Tr);return new $t(116*u-16,500*(o-u),200*(u-zt((.0193339*e+.119192*r+.9503041*i)/Ar)),t.opacity)}function $t(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function zt(t){return t>Sr?Math.pow(t,1/3):t/kr+Cr}function qt(t){return t>Nr?t*t*t:kr*(t-Cr)}function Bt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ot(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function jt(t){if(t instanceof It)return new It(t.h,t.c,t.l,t.opacity);t instanceof $t||(t=Pt(t));var n=Math.atan2(t.b,t.a)*xr;return new It(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function It(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function Rt(t){if(t instanceof Wt)return new Wt(t.h,t.s,t.l,t.opacity);t instanceof Ft||(t=Ut(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Pr*r+Hr*n-Yr*e)/(Pr+Hr-Yr),o=r-i,u=(Lr*(e-i)-Fr*o)/Er,a=Math.sqrt(u*u+o*o)/(Lr*i*(1-i)),c=a?Math.atan2(u,o)*xr-120:NaN;return new Wt(c<0?c+360:c,a,i,t.opacity)}function Zt(t,n,e,r){return 1===arguments.length?Rt(t):new Wt(t,n,e,null==r?1:r)}function Wt(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Xt(t,n){return function(e){return t+e*n}}function Jt(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)}}function Vt(t){return 1==(t=+t)?Gt:function(n,e){return e-n?Jt(n,e,t):$r(isNaN(n)?e:n)}}function Gt(t,n){var e=n-t;return e?Xt(t,e):$r(isNaN(t)?n:t)}function Qt(t){return function(){return t}}function Kt(t){return function(n){return t(n)+""}}function tn(t){return function n(e){function r(n,r){var i=t((n=Zt(n)).h,(r=Zt(r)).h),o=Gt(n.s,r.s),u=Gt(n.l,r.l),a=Gt(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=u(Math.pow(t,e)),n.opacity=a(t),n+""}}return e=+e,r.gamma=n,r}(1)}function nn(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:Gr(n)}function en(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}function rn(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}function on(t,n,e,r){var i=t[0],o=t[1],u=n[0],a=n[1];return o<i?(i=e(o,i),u=r(a,u)):(i=e(i,o),u=r(u,a)),function(t){return u(i(t))}}function un(t,n,e,r){var i=Math.min(t.length,n.length)-1,o=new Array(i),u=new Array(i),a=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<i;)o[a]=e(t[a],t[a+1]),u[a]=r(n[a],n[a+1]);return function(n){var e=Ke(t,n,1,i)-1;return u[e](o[e](n))}}function an(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function cn(t,n){function e(){return i=Math.min(a.length,c.length)>2?un:on,o=u=null,r}function r(n){return(o||(o=i(a,c,h?en(t):t,s)))(+n)}var i,o,u,a=Kr,c=Kr,s=Wr,h=!1;return r.invert=function(t){return(u||(u=i(c,a,nn,h?rn(n):n)))(+t)},r.domain=function(t){return arguments.length?(a=ur.call(t,Qr),e()):a.slice()},r.range=function(t){return arguments.length?(c=ar.call(t),e()):c.slice()},r.rangeRound=function(t){return c=ar.call(t),s=Xr,e()},r.clamp=function(t){return arguments.length?(h=!!t,e()):h},r.interpolate=function(t){return arguments.length?(s=t,e()):s},e()}function sn(t){return new hn(t)}function hn(t){if(!(n=ui.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",r=n[2]||">",i=n[3]||"-",o=n[4]||"",u=!!n[5],a=n[6]&&+n[6],c=!!n[7],s=n[8]&&+n[8].slice(1),h=n[9]||"";"n"===h?(c=!0,h="g"):oi[h]||(h=""),(u||"0"===e&&"="===r)&&(u=!0,e="0",r="="),this.fill=e,this.align=r,this.sign=i,this.symbol=o,this.zero=u,this.width=a,this.comma=c,this.precision=s,this.type=h}function ln(t){var n=t.domain;return t.ticks=function(t){var e=n();return rr(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return di(n(),t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),o=0,u=i.length-1,a=i[o],c=i[u];return c<a&&(r=a,a=c,c=r,r=o,o=u,u=r),r=Mt(a,c,e),r>0?r=Mt(a=Math.floor(a/r)*r,c=Math.ceil(c/r)*r,e):r<0&&(r=Mt(a=Math.ceil(a*r)/r,c=Math.floor(c*r)/r,e)),r>0?(i[o]=Math.floor(a/r)*r,i[u]=Math.ceil(c/r)*r,n(i)):r<0&&(i[o]=Math.ceil(a*r)/r,i[u]=Math.floor(c*r)/r,n(i)),t},t}function fn(){var t=cn(nn,Or);return t.copy=function(){return an(t,fn())},ln(t)}function pn(t,n){return t<0?-Math.pow(-t,n):Math.pow(t,n)}function gn(){var t=1,n=cn(function(n,e){return(e=pn(e,t)-(n=pn(n,t)))?function(r){return(pn(r,t)-n)/e}:Gr(e)},function(n,e){return e=pn(e,t)-(n=pn(n,t)),function(r){return pn(n+e*r,1/t)}}),e=n.domain;return n.exponent=function(n){return arguments.length?(t=+n,e(e())):t},n.copy=function(){return an(n,gn().exponent(t))},ln(n)}function dn(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var u=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return u;do{u.push(new Date(+e))}while(n(e,o),t(e),e<r);return u},i.filter=function(e){return dn(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&&(i.count=function(n,r){return yi.setTime(+n),vi.setTime(+r),t(yi),t(vi),Math.floor(e(yi,vi))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}function yn(t){return dn(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)/Mi})}function vn(t){return dn(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)/Mi})}function mn(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 _n(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 Mn(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function wn(t){function n(t,n){return function(e){var r,i,o,u=[],a=-1,c=0,s=t.length;for(e instanceof Date||(e=new Date(+e));++a<s;)37===t.charCodeAt(a)&&(u.push(t.slice(c,a)),null!=(i=Fi[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),u.push(r),c=a+1);return u.push(t.slice(c,a)),u.join("")}}function e(t,n){return function(e){var i=Mn(1900);if(r(i,t,e+="",0)!=e.length)return null;if("p"in i&&(i.H=i.H%12+12*i.p),"W"in i||"U"in i){"w"in i||(i.w="W"in i?1:0);var o="Z"in i?_n(Mn(i.y)).getUTCDay():n(Mn(i.y)).getDay();i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7}return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,_n(i)):n(i)}}function r(t,n,e,r){for(var i,o,u=0,a=n.length,c=e.length;u<a;){if(r>=c)return-1;if(37===(i=n.charCodeAt(u++))){if(i=n.charAt(u++),!(o=T[i in Fi?n.charAt(u++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}var i=t.dateTime,o=t.date,u=t.time,a=t.periods,c=t.days,s=t.shortDays,h=t.months,l=t.shortMonths,f=Tn(a),p=An(a),g=Tn(c),d=An(c),y=Tn(s),v=An(s),m=Tn(h),_=An(h),M=Tn(l),w=An(l),x={a:function(t){return s[t.getDay()]},A:function(t){return c[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return h[t.getMonth()]},c:null,d:qn,e:qn,H:Bn,I:On,j:jn,L:In,m:Rn,M:Zn,p:function(t){return a[+(t.getHours()>=12)]},S:Wn,U:Xn,w:Jn,W:Vn,x:null,X:null,y:Gn,Y:Qn,Z:Kn,"%":ge},b={a:function(t){return s[t.getUTCDay()]},A:function(t){return c[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return h[t.getUTCMonth()]},c:null,d:te,e:te,H:ne,I:ee,j:re,L:ie,m:oe,M:ue,p:function(t){return a[+(t.getUTCHours()>=12)]},S:ae,U:ce,w:se,W:he,x:null,X:null,y:le,Y:fe,Z:pe,"%":ge},T={a:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.w=v[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.w=d[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=M.exec(n.slice(e));return r?(t.m=w[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=m.exec(n.slice(e));return r?(t.m=_[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,n,e){return r(t,i,n,e)},d:En,e:En,H:Hn,I:Hn,j:Ln,L:$n,m:Fn,M:Yn,p:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.p=p[r[0].toLowerCase()],e+r[0].length):-1},S:Pn,U:Nn,w:Cn,W:kn,x:function(t,n,e){return r(t,o,n,e)},X:function(t,n,e){return r(t,u,n,e)},y:Un,Y:Sn,Z:Dn,"%":zn};return x.x=n(o,x),x.X=n(u,x),x.c=n(i,x),b.x=n(o,b),b.X=n(u,b),b.c=n(i,b),{format:function(t){var e=n(t+="",x);return e.toString=function(){return t},e},parse:function(t){var n=e(t+="",mn);return n.toString=function(){return t},n},utcFormat:function(t){var e=n(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var n=e(t,_n);return n.toString=function(){return t},n}}}function xn(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function bn(t){return t.replace(Hi,"\\$&")}function Tn(t){return new RegExp("^(?:"+t.map(bn).join("|")+")","i")}function An(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function Cn(t,n,e){var r=Ei.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Nn(t,n,e){var r=Ei.exec(n.slice(e));return r?(t.U=+r[0],e+r[0].length):-1}function kn(t,n,e){var r=Ei.exec(n.slice(e));return r?(t.W=+r[0],e+r[0].length):-1}function Sn(t,n,e){var r=Ei.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Un(t,n,e){var r=Ei.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function Dn(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 Fn(t,n,e){var r=Ei.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function En(t,n,e){var r=Ei.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Ln(t,n,e){var r=Ei.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function Hn(t,n,e){var r=Ei.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function Yn(t,n,e){var r=Ei.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Pn(t,n,e){var r=Ei.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function $n(t,n,e){var r=Ei.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function zn(t,n,e){var r=Li.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function qn(t,n){return xn(t.getDate(),n,2)}function Bn(t,n){return xn(t.getHours(),n,2)}function On(t,n){return xn(t.getHours()%12||12,n,2)}function jn(t,n){return xn(1+wi.count(Ti(t),t),n,3)}function In(t,n){return xn(t.getMilliseconds(),n,3)}function Rn(t,n){return xn(t.getMonth()+1,n,2)}function Zn(t,n){return xn(t.getMinutes(),n,2)}function Wn(t,n){return xn(t.getSeconds(),n,2)}function Xn(t,n){return xn(xi.count(Ti(t),t),n,2)}function Jn(t){return t.getDay()}function Vn(t,n){return xn(bi.count(Ti(t),t),n,2)}function Gn(t,n){return xn(t.getFullYear()%100,n,2)}function Qn(t,n){return xn(t.getFullYear()%1e4,n,4)}function Kn(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+xn(n/60|0,"0",2)+xn(n%60,"0",2)}function te(t,n){return xn(t.getUTCDate(),n,2)}function ne(t,n){return xn(t.getUTCHours(),n,2)}function ee(t,n){return xn(t.getUTCHours()%12||12,n,2)}function re(t,n){return xn(1+Ai.count(ki(t),t),n,3)}function ie(t,n){return xn(t.getUTCMilliseconds(),n,3)}function oe(t,n){return xn(t.getUTCMonth()+1,n,2)}function ue(t,n){return xn(t.getUTCMinutes(),n,2)}function ae(t,n){return xn(t.getUTCSeconds(),n,2)}function ce(t,n){return xn(Ci.count(ki(t),t),n,2)}function se(t){return t.getUTCDay()}function he(t,n){return xn(Ni.count(ki(t),t),n,2)}function le(t,n){return xn(t.getUTCFullYear()%100,n,2)}function fe(t,n){return xn(t.getUTCFullYear()%1e4,n,4)}function pe(){return"+0000"}function ge(){return"%"}function de(t){return t.children&&t.children.length?!!ye(t).filter(function(t){return"node_modules"===t.data.name}).length?"#599e59":"#487ea4":"#db7100"}function ye(t){for(var n=[],e=t;e.parent;)n.unshift(e),e=e.parent;return n}var ve="http://www.w3.org/1999/xhtml",me={svg:"http://www.w3.org/2000/svg",xhtml:ve,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},_e=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),me.hasOwnProperty(n)?{space:me[n],local:t}:t},Me=function(e){var r=_e(e);return(r.local?n:t)(r)},we=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var xe=document.documentElement;if(!xe.matches){var be=xe.webkitMatchesSelector||xe.msMatchesSelector||xe.mozMatchesSelector||xe.oMatchesSelector;we=function(t){return function(){return be.call(this,t)}}}}var Te=we,Ae={},Ce=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Ae={mouseenter:"mouseover",mouseleave:"mouseout"}));var Ne=function(t){return null==t?a:function(){return this.querySelector(t)}},ke=function(t){return null==t?c:function(){return this.querySelectorAll(t)}},Se=function(t){return new Array(t.length)};s.prototype={constructor:s,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)}};var Ue=function(t){return function(){return t}},De="$",Fe=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};k.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}};var Ee=[null];W.prototype=function(){return new W([[document.documentElement]],Ee)}.prototype={constructor:W,select:function(t){"function"!=typeof t&&(t=Ne(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u,a=n[i],c=a.length,s=r[i]=new Array(c),h=0;h<c;++h)(o=a[h])&&(u=t.call(o,o.__data__,h,a))&&("__data__"in o&&(u.__data__=o.__data__),s[h]=u);return new W(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=ke(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,a=n[o],c=a.length,s=0;s<c;++s)(u=a[s])&&(r.push(t.call(u,u.__data__,s,a)),i.push(u));return new W(r,i)},filter:function(t){"function"!=typeof t&&(t=Te(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,c=r[i]=[],s=0;s<a;++s)(o=u[s])&&t.call(o,o.__data__,s,u)&&c.push(o);return new W(r,this._parents)},data:function(t,n){if(!t)return d=new Array(this.size()),s=-1,this.each(function(t){d[++s]=t}),d;var e=n?l:h,r=this._parents,i=this._groups;"function"!=typeof t&&(t=Ue(t));for(var o=i.length,u=new Array(o),a=new Array(o),c=new Array(o),s=0;s<o;++s){var f=r[s],p=i[s],g=p.length,d=t.call(f,f&&f.__data__,s,r),y=d.length,v=a[s]=new Array(y),m=u[s]=new Array(y);e(f,p,v,m,c[s]=new Array(g),d,n);for(var _,M,w=0,x=0;w<y;++w)if(_=v[w]){for(w>=x&&(x=w+1);!(M=m[x])&&++x<y;);_._next=M||null}}return u=new W(u,r),u._enter=a,u._exit=c,u},enter:function(){return new W(this._enter||this._groups.map(Se),this._parents)},exit:function(){return new W(this._exit||this._groups.map(Se),this._parents)},merge:function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var c,s=n[a],h=e[a],l=s.length,f=u[a]=new Array(l),p=0;p<l;++p)(c=s[p]||h[p])&&(f[p]=c);for(;a<r;++a)u[a]=n[a];return new W(u,this._parents)},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&u!==r.nextSibling&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){t||(t=f);for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i){for(var o,u=n[i],a=u.length,c=r[i]=new Array(a),s=0;s<a;++s)(o=u[s])&&(c[s]=o);c.sort(function(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e})}return new W(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},attr:function(t,n){var e=_e(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?g:p:"function"==typeof n?e.local?m:v:e.local?y:d)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?_:"function"==typeof n?w:M)(t,n,null==e?"":e)):x(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?b:"function"==typeof n?A:T)(t,n)):this.node()[t]},classed:function(t,n){var e=C(t+"");if(arguments.length<2){for(var r=N(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?E:n?D:F)(e,n))},text:function(t){return arguments.length?this.each(null==t?L:("function"==typeof t?Y:H)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?P:("function"==typeof t?z:$)(t)):this.node().innerHTML},raise:function(){return this.each(q)},lower:function(){return this.each(B)},append:function(t){var n="function"==typeof t?t:Me(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function(t,n){var e="function"==typeof t?t:Me(t),r=null==n?O:"function"==typeof n?n:Ne(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(j)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,a,c=i(t+""),s=c.length;{if(!(arguments.length<2)){for(h=n?u:o,null==e&&(e=!1),r=0;r<s;++r)this.each(h(c[r],n,e));return this}var h=this.node().__on;if(h)for(var l,f=0,p=h.length;f<p;++f)for(r=0,l=h[f];r<s;++r)if((a=c[r]).type===l.type&&a.name===l.name)return l.value}},dispatch:function(t,n){return this.each(("function"==typeof n?Z:R)(t,n))}};var Le=function(t){return"string"==typeof t?new W([[document.querySelector(t)]],[document.documentElement]):new W([[t]],Ee)};tt.prototype=V.prototype={constructor:tt,count:function(){return this.eachAfter(X)},each:function(t){var n,e,r,i,o=this,u=[o];do{for(n=u.reverse(),u=[];o=n.pop();)if(t(o),e=o.children)for(r=0,i=e.length;r<i;++r)u.push(e[r])}while(u.length);return this},eachAfter:function(t){for(var n,e,r,i=this,o=[i],u=[];i=o.pop();)if(u.push(i),n=i.children)for(e=0,r=n.length;e<r;++e)o.push(n[e]);for(;i=u.pop();)t(i);return this},eachBefore:function(t){for(var n,e,r=this,i=[r];r=i.pop();)if(t(r),n=r.children)for(e=n.length-1;e>=0;--e)i.push(n[e]);return this},sum:function(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e})},sort:function(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function(t){for(var n=this,e=J(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function(){return V(this).eachBefore(Q)}};var He=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},Ye=function(t,n,e,r,i){for(var o,u=t.children,a=-1,c=u.length,s=t.value&&(r-n)/t.value;++a<c;)(o=u[a]).y0=e,o.y1=i,o.x0=n,o.x1=n+=o.value*s};(function(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}).prototype=Object.create(tt.prototype);var Pe=Math.PI,$e=2*Pe,ze=$e-1e-6;nt.prototype=et.prototype={constructor:nt,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,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,u=this._y1,a=e-t,c=r-n,s=o-t,h=u-n,l=s*s+h*h;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(l>1e-6)if(Math.abs(h*a-c*s)>1e-6&&i){var f=e-o,p=r-u,g=a*a+c*c,d=f*f+p*p,y=Math.sqrt(g),v=Math.sqrt(l),m=i*Math.tan((Pe-Math.acos((g+l-d)/(2*y*v)))/2),_=m/v,M=m/y;Math.abs(_-1)>1e-6&&(this._+="L"+(t+_*s)+","+(n+_*h)),this._+="A"+i+","+i+",0,0,"+ +(h*f>s*p)+","+(this._x1=t+M*a)+","+(this._y1=n+M*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,o){t=+t,n=+n;var u=(e=+e)*Math.cos(r),a=e*Math.sin(r),c=t+u,s=n+a,h=1^o,l=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-s)>1e-6)&&(this._+="L"+c+","+s),e&&(l<0&&(l=l%$e+$e),l>ze?this._+="A"+e+","+e+",0,1,"+h+","+(t-u)+","+(n-a)+"A"+e+","+e+",0,1,"+h+","+(this._x1=c)+","+(this._y1=s):l>1e-6&&(this._+="A"+e+","+e+",0,"+ +(l>=Pe)+","+h+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},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._}};var qe=function(t){return function(){return t}},Be=Math.abs,Oe=Math.atan2,je=Math.cos,Ie=Math.max,Re=Math.min,Ze=Math.sin,We=Math.sqrt,Xe=1e-12,Je=Math.PI,Ve=Je/2,Ge=2*Je;ft.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)}}};vt.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:yt(this,this._t0,dt(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(t=+t,n=+n,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,yt(this,dt(this,e=gt(this,t,n)),e);break;default:yt(this,this._t0,e=gt(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(function(t){this._context=new mt(t)}.prototype=Object.create(vt.prototype)).point=function(t,n){vt.prototype.point.call(this,n,t)},mt.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,o){this._context.bezierCurveTo(n,t,r,e,o,i)}};var Qe=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},Ke=function(t){return 1===t.length&&(t=_t(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)>0?i=o:r=o+1}return r}}}(Qe).right,tr=Math.sqrt(50),nr=Math.sqrt(10),er=Math.sqrt(2),rr=function(t,n,e){var r,i,o,u=n<t,a=-1;if(u&&(r=t,t=n,n=r),0===(o=Mt(t,n,e))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),n=Math.floor(n/o),i=new Array(r=Math.ceil(n-t+1));++a<r;)i[a]=(t+a)*o;else for(t=Math.floor(t*o),n=Math.ceil(n*o),i=new Array(r=Math.ceil(t-n+1));++a<r;)i[a]=(t-a)/o;return u&&i.reverse(),i};xt.prototype=bt.prototype={constructor:xt,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,n){return this["$"+t]=n,this},remove:function(t){var n="$"+t;return n in this&&delete this[n]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)"$"===n[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var n in this)"$"===n[0]&&t(this[n],n.slice(1),this)}};var ir=bt.prototype;Tt.prototype=function(t,n){var e=new Tt;if(t instanceof Tt)t.each(function(t){e.add(t)});else if(t){var r=-1,i=t.length;if(null==n)for(;++r<i;)e.add(t[r]);else for(;++r<i;)e.add(n(t[r],r,t))}return e}.prototype={constructor:Tt,has:ir.has,add:function(t){return t+="",this["$"+t]=t,this},remove:ir.remove,clear:ir.clear,values:ir.keys,size:ir.size,empty:ir.empty,each:ir.each};var or=Array.prototype,ur=or.map,ar=or.slice,cr=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t},sr="\\s*([+-]?\\d+)\\s*",hr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",lr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fr=/^#([0-9a-f]{3})$/,pr=/^#([0-9a-f]{6})$/,gr=new RegExp("^rgb\\("+[sr,sr,sr]+"\\)$"),dr=new RegExp("^rgb\\("+[lr,lr,lr]+"\\)$"),yr=new RegExp("^rgba\\("+[sr,sr,sr,hr]+"\\)$"),vr=new RegExp("^rgba\\("+[lr,lr,lr,hr]+"\\)$"),mr=new RegExp("^hsl\\("+[hr,lr,lr]+"\\)$"),_r=new RegExp("^hsla\\("+[hr,lr,lr,hr]+"\\)$"),Mr={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};cr(Ct,Nt,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),cr(Ft,Dt,At(Ct,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Ft(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ft(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(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+")")}})),cr(Ht,function(t,n,e,r){return 1===arguments.length?Lt(t):new Ht(t,n,e,null==r?1:r)},At(Ct,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Ht(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ht(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 Ft(Yt(t>=240?t-240:t+120,i,r),Yt(t,i,r),Yt(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}}));var wr=Math.PI/180,xr=180/Math.PI,br=.95047,Tr=1,Ar=1.08883,Cr=4/29,Nr=6/29,kr=3*Nr*Nr,Sr=Nr*Nr*Nr;cr($t,function(t,n,e,r){return 1===arguments.length?Pt(t):new $t(t,n,e,null==r?1:r)},At(Ct,{brighter:function(t){return new $t(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new $t(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 t=Tr*qt(t),n=br*qt(n),e=Ar*qt(e),new Ft(Bt(3.2404542*n-1.5371385*t-.4985314*e),Bt(-.969266*n+1.8760108*t+.041556*e),Bt(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),cr(It,function(t,n,e,r){return 1===arguments.length?jt(t):new It(t,n,e,null==r?1:r)},At(Ct,{brighter:function(t){return new It(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new It(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Pt(this).rgb()}}));var Ur=-.14861,Dr=1.78277,Fr=-.29227,Er=-.90649,Lr=1.97294,Hr=Lr*Er,Yr=Lr*Dr,Pr=Dr*Fr-Er*Ur;cr(Wt,Zt,At(Ct,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Wt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Wt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*wr,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new Ft(255*(n+e*(Ur*r+Dr*i)),255*(n+e*(Fr*r+Er*i)),255*(n+e*(Lr*r)),this.opacity)}}));var $r=function(t){return function(){return t}},zr=function t(n){function e(t,n){var e=r((t=Dt(t)).r,(n=Dt(n)).r),i=r(t.g,n.g),o=r(t.b,n.b),u=Gt(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}var r=Vt(n);return e.gamma=t,e}(1),qr=function(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(r),u=new Array(r);for(e=0;e<i;++e)o[e]=Wr(t[e],n[e]);for(;e<r;++e)u[e]=n[e];return function(t){for(e=0;e<i;++e)u[e]=o[e](t);return u}},Br=function(t,n){var e=new Date;return t=+t,n-=t,function(r){return e.setTime(t+n*r),e}},Or=function(t,n){return t=+t,n-=t,function(e){return t+n*e}},jr=function(t,n){var e,r={},i={};null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={});for(e in n)e in t?r[e]=Wr(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}},Ir=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Rr=new RegExp(Ir.source,"g"),Zr=function(t,n){var e,r,i,o=Ir.lastIndex=Rr.lastIndex=0,u=-1,a=[],c=[];for(t+="",n+="";(e=Ir.exec(t))&&(r=Rr.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,c.push({i:u,x:Or(e,r)})),o=Rr.lastIndex;return o<n.length&&(i=n.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?c[0]?Kt(c[0].x):Qt(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)a[(e=c[r]).i]=e.x(t);return a.join("")})},Wr=function(t,n){var e,r=typeof n;return null==n||"boolean"===r?$r(n):("number"===r?Or:"string"===r?(e=Nt(n))?(n=e,zr):Zr:n instanceof Nt?zr:n instanceof Date?Br:Array.isArray(n)?qr:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?jr:Or)(t,n)},Xr=function(t,n){return t=+t,n-=t,function(e){return Math.round(t+n*e)}};tn(function(t,n){var e=n-t;return e?Xt(t,e>180||e<-180?e-360*Math.round(e/360):e):$r(isNaN(t)?n:t)});var Jr,Vr=tn(Gt),Gr=function(t){return function(){return t}},Qr=function(t){return+t},Kr=[0,1],ti=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)]},ni=function(t){return t=ti(Math.abs(t)),t?t[1]:NaN},ei=function(t,n){return function(e,r){for(var i=e.length,o=[],u=0,a=t[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(e.substring(i-=a,i+a)),!((c+=a+1)>r));)a=t[u=(u+1)%t.length];return o.reverse().join(n)}},ri=function(t){return function(n){return n.replace(/[0-9]/g,function(n){return t[+n]})}},ii=function(t,n){var e=ti(t,n);if(!e)return t+"";var r=e[0],i=e[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")},oi={"":function(t,n){t:for(var e,r=(t=t.toPrecision(n)).length,i=1,o=-1;i<r;++i)switch(t[i]){case".":o=e=i;break;case"0":0===o&&(o=i),e=i;break;case"e":break t;default:o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t},"%":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 ii(100*t,n)},r:ii,s:function(t,n){var e=ti(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(Jr=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+ti(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},ui=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;sn.prototype=hn.prototype,hn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var ai,ci,si,hi=function(t){return t},li=["y","z","a","f","p","n","ยต","m","","k","M","G","T","P","E","Z","Y"];ai=function(t){function n(t){function n(t){var n,r,u,h=y,M=v;if("c"===d)M=m(t)+M,t="";else{var w=(t=+t)<0;if(t=m(Math.abs(t),g),w&&0==+t&&(w=!1),h=(w?"("===s?s:"-":"-"===s||"("===s?"":s)+h,M=M+("s"===d?li[8+Jr/3]:"")+(w&&"("===s?")":""),_)for(n=-1,r=t.length;++n<r;)if(48>(u=t.charCodeAt(n))||u>57){M=(46===u?i+t.slice(n+1):t.slice(n))+M,t=t.slice(0,n);break}}p&&!l&&(t=e(t,1/0));var x=h.length+t.length+M.length,b=x<f?new Array(f-x+1).join(a):"";switch(p&&l&&(t=e(b+t,b.length?f-M.length:1/0),b=""),c){case"<":t=h+t+M+b;break;case"=":t=h+b+t+M;break;case"^":t=b.slice(0,x=b.length>>1)+h+t+M+b.slice(x);break;default:t=b+h+t+M}return o(t)}var a=(t=sn(t)).fill,c=t.align,s=t.sign,h=t.symbol,l=t.zero,f=t.width,p=t.comma,g=t.precision,d=t.type,y="$"===h?r[0]:"#"===h&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",v="$"===h?r[1]:/[%p]/.test(d)?u:"",m=oi[d],_=!d||/[defgprs%]/.test(d);return g=null==g?d?6:12:/[gprs]/.test(d)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),n.toString=function(){return t+""},n}var e=t.grouping&&t.thousands?ei(t.grouping,t.thousands):hi,r=t.currency,i=t.decimal,o=t.numerals?ri(t.numerals):hi,u=t.percent||"%";return{format:n,formatPrefix:function(t,e){var r=n((t=sn(t),t.type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(ni(e)/3))),o=Math.pow(10,-i),u=li[8+i/3];return function(t){return r(o*t)+u}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),ci=ai.format,si=ai.formatPrefix;var fi=function(t){return Math.max(0,-ni(Math.abs(t)))},pi=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ni(n)/3)))-ni(Math.abs(t)))},gi=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,ni(n)-ni(t))+1},di=function(t,n,e){var r,i=t[0],o=t[t.length-1],u=wt(i,o,null==n?10:n);switch((e=sn(null==e?",f":e)).type){case"s":var a=Math.max(Math.abs(i),Math.abs(o));return null!=e.precision||isNaN(r=pi(u,a))||(e.precision=r),si(e,a);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=gi(u,Math.max(Math.abs(i),Math.abs(o))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=fi(u))||(e.precision=r-2*("%"===e.type))}return ci(e)},yi=new Date,vi=new Date,mi=dn(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});mi.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?dn(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):mi:null};var _i=6e4,Mi=6048e5,wi=(dn(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,n){t.setTime(+t+1e3*n)},function(t,n){return(n-t)/1e3},function(t){return t.getUTCSeconds()}),dn(function(t){t.setTime(Math.floor(t/_i)*_i)},function(t,n){t.setTime(+t+n*_i)},function(t,n){return(n-t)/_i},function(t){return t.getMinutes()}),dn(function(t){var n=t.getTimezoneOffset()*_i%36e5;n<0&&(n+=36e5),t.setTime(36e5*Math.floor((+t-n)/36e5)+n)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getHours()}),dn(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)/864e5},function(t){return t.getDate()-1})),xi=yn(0),bi=yn(1),Ti=(yn(2),yn(3),yn(4),yn(5),yn(6),dn(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()}),dn(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()}));Ti.every=function(t){return isFinite(t=Math.floor(t))&&t>0?dn(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};dn(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*_i)},function(t,n){return(n-t)/_i},function(t){return t.getUTCMinutes()}),dn(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getUTCHours()});var Ai=dn(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}),Ci=vn(0),Ni=vn(1),ki=(vn(2),vn(3),vn(4),vn(5),vn(6),dn(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()}),dn(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()}));ki.every=function(t){return isFinite(t=Math.floor(t))&&t>0?dn(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};var Si,Ui,Di,Fi={"-":"",_:" ",0:"0"},Ei=/^\s*\d+/,Li=/^%/,Hi=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;(Si=wn({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"]})).format,Si.parse,Ui=Si.utcFormat,Di=Si.utcParse;Date.prototype.toISOString||Ui("%Y-%m-%dT%H:%M:%S.%LZ"),+new Date("2000-01-01T00:00:00.000Z")||Di("%Y-%m-%dT%H:%M:%S.%LZ");var Yi=function(t){return t.match(/.{6}/g).map(function(t){return"#"+t})};Yi("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Yi("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),Yi("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),Yi("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),Vr(Zt(300,.5,0),Zt(-240,.5,1));Vr(Zt(-100,.75,.35),Zt(80,1.5,.8)),Vr(Zt(260,.75,.35),Zt(80,1.5,.8)),Zt();var Pi=function(t,n){if(!Bi(t))return null;var e=Math.abs(t),r=n&&n.thousandsSeparator||"",i=n&&n.unitSeparator||"",o=n&&void 0!==n.decimalPlaces?n.decimalPlaces:2,u=Boolean(n&&n.fixedDecimals),a=n&&n.unit||"";a&&qi[a.toLowerCase()]||(a=e>=qi.tb?"TB":e>=qi.gb?"GB":e>=qi.mb?"MB":e>=qi.kb?"kB":"B");var c=(t/qi[a.toLowerCase()]).toFixed(o);return u||(c=c.replace(zi,"$1")),r&&(c=c.replace($i,r)),c+i+a},$i=/\B(?=(\d{3})+(?!\d))/g,zi=/(?:\.0*|(\.[^0]+)0+)$/,qi={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:1024*(1<<30)},Bi=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)},Oi=window.nodesData,ji=Math.min(700,700)/2-10,Ii=fn().range([0,2*Math.PI]),Ri=gn().exponent(.5).range([0,ji]),Zi=Le("#chart").append("svg").attr("width",700).attr("height",700).append("g").attr("transform","translate(350,350)"),Wi=function(){function t(t){var u=t.height+1;return t.x0=t.y0=i,t.x1=e,t.y1=r/u,t.eachBefore(n(r,u)),o&&t.eachBefore(He),t}function n(t,n){return function(e){e.children&&Ye(e,e.x0,t*(e.depth+1)/n,e.x1,t*(e.depth+2)/n);var r=e.x0,o=e.y0,u=e.x1-i,a=e.y1-i;u<r&&(r=u=(r+u)/2),a<o&&(o=a=(o+a)/2),e.x0=r,e.y0=o,e.x1=u,e.y1=a}}var e=1,r=1,i=0,o=!1;return t.round=function(n){return arguments.length?(o=!!n,t):o},t.size=function(n){return arguments.length?(e=+n[0],r=+n[1],t):[e,r]},t.padding=function(n){return arguments.length?(i=+n,t):i},t}(),Xi=function(){function t(){var t,s,h=+n.apply(this,arguments),l=+e.apply(this,arguments),f=o.apply(this,arguments)-Ve,p=u.apply(this,arguments)-Ve,g=Be(p-f),d=p>f;if(c||(c=t=et()),l<h&&(s=l,l=h,h=s),l>Xe)if(g>Ge-Xe)c.moveTo(l*je(f),l*Ze(f)),c.arc(0,0,l,f,p,!d),h>Xe&&(c.moveTo(h*je(p),h*Ze(p)),c.arc(0,0,h,p,f,d));else{var y,v,m=f,_=p,M=f,w=p,x=g,b=g,T=a.apply(this,arguments)/2,A=T>Xe&&(i?+i.apply(this,arguments):We(h*h+l*l)),C=Re(Be(l-h)/2,+r.apply(this,arguments)),N=C,k=C;if(A>Xe){var S=it(A/h*Ze(T)),U=it(A/l*Ze(T));(x-=2*S)>Xe?(S*=d?1:-1,M+=S,w-=S):(x=0,M=w=(f+p)/2),(b-=2*U)>Xe?(U*=d?1:-1,m+=U,_-=U):(b=0,m=_=(f+p)/2)}var D=l*je(m),F=l*Ze(m),E=h*je(w),L=h*Ze(w);if(C>Xe){var H=l*je(_),Y=l*Ze(_),P=h*je(M),$=h*Ze(M);if(g<Je){var z=x>Xe?ht(D,F,P,$,H,Y,E,L):[E,L],q=D-z[0],B=F-z[1],O=H-z[0],j=Y-z[1],I=1/Ze(rt((q*O+B*j)/(We(q*q+B*B)*We(O*O+j*j)))/2),R=We(z[0]*z[0]+z[1]*z[1]);N=Re(C,(h-R)/(I-1)),k=Re(C,(l-R)/(I+1))}}b>Xe?k>Xe?(y=lt(P,$,D,F,l,k,d),v=lt(H,Y,E,L,l,k,d),c.moveTo(y.cx+y.x01,y.cy+y.y01),k<C?c.arc(y.cx,y.cy,k,Oe(y.y01,y.x01),Oe(v.y01,v.x01),!d):(c.arc(y.cx,y.cy,k,Oe(y.y01,y.x01),Oe(y.y11,y.x11),!d),c.arc(0,0,l,Oe(y.cy+y.y11,y.cx+y.x11),Oe(v.cy+v.y11,v.cx+v.x11),!d),c.arc(v.cx,v.cy,k,Oe(v.y11,v.x11),Oe(v.y01,v.x01),!d))):(c.moveTo(D,F),c.arc(0,0,l,m,_,!d)):c.moveTo(D,F),h>Xe&&x>Xe?N>Xe?(y=lt(E,L,H,Y,h,-N,d),v=lt(D,F,P,$,h,-N,d),c.lineTo(y.cx+y.x01,y.cy+y.y01),N<C?c.arc(y.cx,y.cy,N,Oe(y.y01,y.x01),Oe(v.y01,v.x01),!d):(c.arc(y.cx,y.cy,N,Oe(y.y01,y.x01),Oe(y.y11,y.x11),!d),c.arc(0,0,h,Oe(y.cy+y.y11,y.cx+y.x11),Oe(v.cy+v.y11,v.cx+v.x11),d),c.arc(v.cx,v.cy,N,Oe(v.y11,v.x11),Oe(v.y01,v.x01),!d))):c.arc(0,0,h,w,M,d):c.lineTo(E,L)}else c.moveTo(0,0);if(c.closePath(),t)return c=null,t+""||null}var n=ot,e=ut,r=qe(0),i=null,o=at,u=ct,a=st,c=null;return t.centroid=function(){var t=(+n.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +u.apply(this,arguments))/2-Je/2;return[je(r)*t,Ze(r)*t]},t.innerRadius=function(e){return arguments.length?(n="function"==typeof e?e:qe(+e),t):n},t.outerRadius=function(n){return arguments.length?(e="function"==typeof n?n:qe(+n),t):e},t.cornerRadius=function(n){return arguments.length?(r="function"==typeof n?n:qe(+n),t):r},t.padRadius=function(n){return arguments.length?(i=null==n?null:"function"==typeof n?n:qe(+n),t):i},t.startAngle=function(n){return arguments.length?(o="function"==typeof n?n:qe(+n),t):o},t.endAngle=function(n){return arguments.length?(u="function"==typeof n?n:qe(+n),t):u},t.padAngle=function(n){return arguments.length?(a="function"==typeof n?n:qe(+n),t):a},t.context=function(n){return arguments.length?(c=null==n?null:n,t):c},t}().startAngle(function(t){return Math.max(0,Math.min(2*Math.PI,Ii(t.x0)))}).endAngle(function(t){return Math.max(0,Math.min(2*Math.PI,Ii(t.x1)))}).innerRadius(function(t){return Ri(t.y0)}).outerRadius(function(t){return Ri(t.y1)}),Ji=V(Oi).sum(function(t){return t.children&&t.children.length?0:t.size}).sort();Wi(Ji),Zi.selectAll("path").data(Wi(Ji).descendants()).enter().append("path").attr("display",function(t){return t.depth?null:"none"}).attr("d",Xi).attr("fill-rule","evenodd").style("stroke","#fff").style("fill",function(t){return de(t)}).on("mouseover",function(t){var n=(100*t.value/Vi).toPrecision(2),e=n+"%";n<.1&&(e="< 0.1%"),Le(".details-name").text(t.data.name),Le(".details-percentage").text(e),Le(".details-size").text(Pi(t.value)),Le(".details").style("display","block");var r=ye(t);Zi.selectAll("path").style("opacity",.3),Zi.selectAll("path").filter(function(t){return r.indexOf(t)>=0}).style("opacity",1)});var Vi=Ji.value;Le("#chart").on("mouseleave",function(){Zi.selectAll("path").style("opacity",1),Le(".details").style("display","none")})}();
!function(){"use strict";var t="http://www.w3.org/1999/xhtml",n={svg:"http://www.w3.org/2000/svg",xhtml:t,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function e(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),n.hasOwnProperty(e)?{space:n[e],local:t}:t}function r(n){var r=e(n);return(r.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(n){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===t&&e.documentElement.namespaceURI===t?e.createElement(n):e.createElementNS(r,n)}})(r)}function i(){}function u(t){return null==t?i:function(){return this.querySelector(t)}}function o(){return[]}var a=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var c=document.documentElement;if(!c.matches){var s=c.webkitMatchesSelector||c.msMatchesSelector||c.mozMatchesSelector||c.oMatchesSelector;a=function(t){return function(){return s.call(this,t)}}}}var h=a;function l(t){return new Array(t.length)}function f(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}f.prototype={constructor:f,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)}};var p="$";function g(t,n,e,r,i,u){for(var o,a=0,c=n.length,s=u.length;a<s;++a)(o=n[a])?(o.__data__=u[a],r[a]=o):e[a]=new f(t,u[a]);for(;a<c;++a)(o=n[a])&&(i[a]=o)}function y(t,n,e,r,i,u,o){var a,c,s,h={},l=n.length,g=u.length,y=new Array(l);for(a=0;a<l;++a)(c=n[a])&&(y[a]=s=p+o.call(c,c.__data__,a,n),s in h?i[a]=c:h[s]=c);for(a=0;a<g;++a)(c=h[s=p+o.call(t,u[a],a,u)])?(r[a]=c,c.__data__=u[a],h[s]=null):e[a]=new f(t,u[a]);for(a=0;a<l;++a)(c=n[a])&&h[y[a]]===c&&(i[a]=c)}function d(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function v(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function m(t){return t.trim().split(/^|\s+/)}function _(t){return t.classList||new M(t)}function M(t){this._node=t,this._names=m(t.getAttribute("class")||"")}function w(t,n){for(var e=_(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function x(t,n){for(var e=_(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function b(){this.textContent=""}function T(){this.innerHTML=""}function C(){this.nextSibling&&this.parentNode.appendChild(this)}function A(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function N(){return null}function U(){var t=this.parentNode;t&&t.removeChild(this)}function D(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function S(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}M.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}};var k={};"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(k={mouseenter:"mouseover",mouseleave:"mouseout"}));function F(t,n,e){return t=E(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function E(t,n,e){return function(r){try{t.call(this,this.__data__,n,e)}finally{}}}function L(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 Y(t,n,e){var r=k.hasOwnProperty(t.type)?F:E;return function(i,u,o){var a,c=this.__on,s=r(n,u,o);if(c)for(var h=0,l=c.length;h<l;++h)if((a=c[h]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=s,a.capture=e),void(a.value=n);this.addEventListener(t.type,s,e),a={type:t.type,name:t.name,value:n,listener:s,capture:e},c?c.push(a):this.__on=[a]}}function H(t,n,e){var r=v(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}var P=[null];function $(t,n){this._groups=t,this._parents=n}function z(t){return"string"==typeof t?new $([[document.querySelector(t)]],[document.documentElement]):new $([[t]],P)}function q(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function B(t,n){var e,r,i,u,o,a=new j(t),c=+t.value&&(a.value=t.value),s=[a];for(null==n&&(n=I);e=s.pop();)if(c&&(e.value=+e.data.value),(i=n(e.data))&&(o=i.length))for(e.children=new Array(o),u=o-1;u>=0;--u)s.push(r=e.children[u]=new j(i[u])),r.parent=e,r.depth=e.depth+1;return a.eachBefore(R)}function I(t){return t.children}function O(t){t.data=t.data.data}function R(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function j(t){this.data=t,this.depth=this.height=0,this.parent=null}function Z(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}$.prototype=function(){return new $([[document.documentElement]],P)}.prototype={constructor:$,select:function(t){"function"!=typeof t&&(t=u(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a,c=n[i],s=c.length,h=r[i]=new Array(s),l=0;l<s;++l)(o=c[l])&&(a=t.call(o,o.__data__,l,c))&&("__data__"in o&&(a.__data__=o.__data__),h[l]=a);return new $(r,this._parents)},selectAll:function(t){var n;"function"!=typeof t&&(t=null==(n=t)?o:function(){return this.querySelectorAll(n)});for(var e=this._groups,r=e.length,i=[],u=[],a=0;a<r;++a)for(var c,s=e[a],h=s.length,l=0;l<h;++l)(c=s[l])&&(i.push(t.call(c,c.__data__,l,s)),u.push(c));return new $(i,u)},filter:function(t){"function"!=typeof t&&(t=h(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var u,o=n[i],a=o.length,c=r[i]=[],s=0;s<a;++s)(u=o[s])&&t.call(u,u.__data__,s,o)&&c.push(u);return new $(r,this._parents)},data:function(t,n){if(!t)return d=new Array(this.size()),h=-1,this.each(function(t){d[++h]=t}),d;var e,r=n?y:g,i=this._parents,u=this._groups;"function"!=typeof t&&(e=t,t=function(){return e});for(var o=u.length,a=new Array(o),c=new Array(o),s=new Array(o),h=0;h<o;++h){var l=i[h],f=u[h],p=f.length,d=t.call(l,l&&l.__data__,h,i),v=d.length,m=c[h]=new Array(v),_=a[h]=new Array(v);r(l,f,m,_,s[h]=new Array(p),d,n);for(var M,w,x=0,b=0;x<v;++x)if(M=m[x]){for(x>=b&&(b=x+1);!(w=_[b])&&++b<v;);M._next=w||null}}return(a=new $(a,i))._enter=c,a._exit=s,a},enter:function(){return new $(this._enter||this._groups.map(l),this._parents)},exit:function(){return new $(this._exit||this._groups.map(l),this._parents)},merge:function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,u=Math.min(r,i),o=new Array(r),a=0;a<u;++a)for(var c,s=n[a],h=e[a],l=s.length,f=o[a]=new Array(l),p=0;p<l;++p)(c=s[p]||h[p])&&(f[p]=c);for(;a<r;++a)o[a]=n[a];return new $(o,this._parents)},order: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&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=d);for(var e=this._groups,r=e.length,i=new Array(r),u=0;u<r;++u){for(var o,a=e[u],c=a.length,s=i[u]=new Array(c),h=0;h<c;++h)(o=a[h])&&(s[h]=o);s.sort(n)}return new $(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},node: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},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each: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},attr:function(t,n){var r=e(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((null==n?r.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof n?r.local?function(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)}}:function(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}:r.local?function(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}:function(t,n){return function(){this.setAttribute(t,n)}})(r,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof n?function(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}:function(t,n,e){return function(){this.style.setProperty(t,n,e)}})(t,n,null==e?"":e)):function(t,n){return t.style.getPropertyValue(n)||v(t).getComputedStyle(t,null).getPropertyValue(n)}(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?function(t){return function(){delete this[t]}}:"function"==typeof n?function(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}:function(t,n){return function(){this[t]=n}})(t,n)):this.node()[t]},classed:function(t,n){var e=m(t+"");if(arguments.length<2){for(var r=_(this.node()),i=-1,u=e.length;++i<u;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?function(t,n){return function(){(n.apply(this,arguments)?w:x)(this,t)}}:n?function(t){return function(){w(this,t)}}:function(t){return function(){x(this,t)}})(e,n))},text:function(t){return arguments.length?this.each(null==t?b:("function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?T:("function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(C)},lower:function(){return this.each(A)},append:function(t){var n="function"==typeof t?t:r(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function(t,n){var e="function"==typeof t?t:r(t),i=null==n?N:"function"==typeof n?n:u(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(U)},clone:function(t){return this.select(t?S:D)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,u=function(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}})}(t+""),o=u.length;if(!(arguments.length<2)){for(a=n?Y:L,null==e&&(e=!1),r=0;r<o;++r)this.each(a(u[r],n,e));return this}var a=this.node().__on;if(a)for(var c,s=0,h=a.length;s<h;++s)for(r=0,c=a[s];r<o;++r)if((i=u[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,n){return this.each(("function"==typeof n?function(t,n){return function(){return H(this,t,n.apply(this,arguments))}}:function(t,n){return function(){return H(this,t,n)}})(t,n))}},j.prototype=B.prototype={constructor:j,count:function(){return this.eachAfter(q)},each:function(t){var n,e,r,i,u=this,o=[u];do{for(n=o.reverse(),o=[];u=n.pop();)if(t(u),e=u.children)for(r=0,i=e.length;r<i;++r)o.push(e[r])}while(o.length);return this},eachAfter:function(t){for(var n,e,r,i=this,u=[i],o=[];i=u.pop();)if(o.push(i),n=i.children)for(e=0,r=n.length;e<r;++e)u.push(n[e]);for(;i=o.pop();)t(i);return this},eachBefore:function(t){for(var n,e,r=this,i=[r];r=i.pop();)if(t(r),n=r.children)for(e=n.length-1;e>=0;--e)i.push(n[e]);return this},sum:function(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e})},sort:function(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function(){return B(this).eachBefore(O)}};var V=Math.PI,W=2*V,Q=W-1e-6;function X(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function J(){return new X}function G(t){return function(){return t}}X.prototype=J.prototype={constructor:X,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,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var u=this._x1,o=this._y1,a=e-t,c=r-n,s=u-t,h=o-n,l=s*s+h*h;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(l>1e-6)if(Math.abs(h*a-c*s)>1e-6&&i){var f=e-u,p=r-o,g=a*a+c*c,y=f*f+p*p,d=Math.sqrt(g),v=Math.sqrt(l),m=i*Math.tan((V-Math.acos((g+l-y)/(2*d*v)))/2),_=m/v,M=m/d;Math.abs(_-1)>1e-6&&(this._+="L"+(t+_*s)+","+(n+_*h)),this._+="A"+i+","+i+",0,0,"+ +(h*f>s*p)+","+(this._x1=t+M*a)+","+(this._y1=n+M*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,u){t=+t,n=+n;var o=(e=+e)*Math.cos(r),a=e*Math.sin(r),c=t+o,s=n+a,h=1^u,l=u?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-s)>1e-6)&&(this._+="L"+c+","+s),e&&(l<0&&(l=l%W+W),l>Q?this._+="A"+e+","+e+",0,1,"+h+","+(t-o)+","+(n-a)+"A"+e+","+e+",0,1,"+h+","+(this._x1=c)+","+(this._y1=s):l>1e-6&&(this._+="A"+e+","+e+",0,"+ +(l>=V)+","+h+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},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._}};var K=Math.abs,tt=Math.atan2,nt=Math.cos,et=Math.max,rt=Math.min,it=Math.sin,ut=Math.sqrt,ot=1e-12,at=Math.PI,ct=at/2,st=2*at;function ht(t){return t>=1?ct:t<=-1?-ct:Math.asin(t)}function lt(t){return t.innerRadius}function ft(t){return t.outerRadius}function pt(t){return t.startAngle}function gt(t){return t.endAngle}function yt(t){return t&&t.padAngle}function dt(t,n,e,r,i,u,o){var a=t-e,c=n-r,s=(o?u:-u)/ut(a*a+c*c),h=s*c,l=-s*a,f=t+h,p=n+l,g=e+h,y=r+l,d=(f+g)/2,v=(p+y)/2,m=g-f,_=y-p,M=m*m+_*_,w=i-u,x=f*y-g*p,b=(_<0?-1:1)*ut(et(0,w*w*M-x*x)),T=(x*_-m*b)/M,C=(-x*m-_*b)/M,A=(x*_+m*b)/M,N=(-x*m+_*b)/M,U=T-d,D=C-v,S=A-d,k=N-v;return U*U+D*D>S*S+k*k&&(T=A,C=N),{cx:T,cy:C,x01:-h,y01:-l,x11:T*(i/w-1),y11:C*(i/w-1)}}function vt(t){return t<0?-1:1}function mt(t,n,e){var r=t._x1-t._x0,i=n-t._x1,u=(t._y1-t._y0)/(r||i<0&&-0),o=(e-t._y1)/(i||r<0&&-0),a=(u*i+o*r)/(r+i);return(vt(u)+vt(o))*Math.min(Math.abs(u),Math.abs(o),.5*Math.abs(a))||0}function _t(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function Mt(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 wt(t){this._context=t}function xt(t){this._context=t}function bt(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}wt.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:Mt(this,this._t0,_t(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,Mt(this,_t(this,e=mt(this,t,n)),e);break;default:Mt(this,this._t0,e=mt(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(function(t){this._context=new xt(t)}.prototype=Object.create(wt.prototype)).point=function(t,n){wt.prototype.point.call(this,n,t)},xt.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)}};var Tt,Ct,At=(1===(Tt=bt).length&&(Ct=Tt,Tt=function(t,n){return bt(Ct(t),n)}),{left:function(t,n,e,r){for(null==e&&(e=0),null==r&&(r=t.length);e<r;){var i=e+r>>>1;Tt(t[i],n)<0?e=i+1:r=i}return e},right:function(t,n,e,r){for(null==e&&(e=0),null==r&&(r=t.length);e<r;){var i=e+r>>>1;Tt(t[i],n)>0?r=i:e=i+1}return e}}).right,Nt=Math.sqrt(50),Ut=Math.sqrt(10),Dt=Math.sqrt(2);function St(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),u=r/Math.pow(10,i);return i>=0?(u>=Nt?10:u>=Ut?5:u>=Dt?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(u>=Nt?10:u>=Ut?5:u>=Dt?2:1)}function kt(){}function Ft(t,n){var e=new kt;if(t instanceof kt)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,i=-1,u=t.length;if(null==n)for(;++i<u;)e.set(i,t[i]);else for(;++i<u;)e.set(n(r=t[i],i,t),r)}else if(t)for(var o in t)e.set(o,t[o]);return e}function Et(){}kt.prototype=Ft.prototype={constructor:kt,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,n){return this["$"+t]=n,this},remove:function(t){var n="$"+t;return n in this&&delete this[n]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)"$"===n[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var n in this)"$"===n[0]&&t(this[n],n.slice(1),this)}};var Lt=Ft.prototype;Et.prototype=function(t,n){var e=new Et;if(t instanceof Et)t.each(function(t){e.add(t)});else if(t){var r=-1,i=t.length;if(null==n)for(;++r<i;)e.add(t[r]);else for(;++r<i;)e.add(n(t[r],r,t))}return e}.prototype={constructor:Et,has:Lt.has,add:function(t){return this["$"+(t+="")]=t,this},remove:Lt.remove,clear:Lt.clear,values:Lt.keys,size:Lt.size,empty:Lt.empty,each:Lt.each};var Yt=Array.prototype,Ht=Yt.map,Pt=Yt.slice;function $t(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function zt(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function qt(){}var Bt="\\s*([+-]?\\d+)\\s*",It="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ot="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Rt=/^#([0-9a-f]{3})$/,jt=/^#([0-9a-f]{6})$/,Zt=new RegExp("^rgb\\("+[Bt,Bt,Bt]+"\\)$"),Vt=new RegExp("^rgb\\("+[Ot,Ot,Ot]+"\\)$"),Wt=new RegExp("^rgba\\("+[Bt,Bt,Bt,It]+"\\)$"),Qt=new RegExp("^rgba\\("+[Ot,Ot,Ot,It]+"\\)$"),Xt=new RegExp("^hsl\\("+[It,Ot,Ot]+"\\)$"),Jt=new RegExp("^hsla\\("+[It,Ot,Ot,It]+"\\)$"),Gt={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 Kt(t){var n;return t=(t+"").trim().toLowerCase(),(n=Rt.exec(t))?new un((n=parseInt(n[1],16))>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=jt.exec(t))?tn(parseInt(n[1],16)):(n=Zt.exec(t))?new un(n[1],n[2],n[3],1):(n=Vt.exec(t))?new un(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Wt.exec(t))?nn(n[1],n[2],n[3],n[4]):(n=Qt.exec(t))?nn(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Xt.exec(t))?on(n[1],n[2]/100,n[3]/100,1):(n=Jt.exec(t))?on(n[1],n[2]/100,n[3]/100,n[4]):Gt.hasOwnProperty(t)?tn(Gt[t]):"transparent"===t?new un(NaN,NaN,NaN,0):null}function tn(t){return new un(t>>16&255,t>>8&255,255&t,1)}function nn(t,n,e,r){return r<=0&&(t=n=e=NaN),new un(t,n,e,r)}function en(t){return t instanceof qt||(t=Kt(t)),t?new un((t=t.rgb()).r,t.g,t.b,t.opacity):new un}function rn(t,n,e,r){return 1===arguments.length?en(t):new un(t,n,e,null==r?1:r)}function un(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function on(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new an(t,n,e,r)}function an(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function cn(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}$t(qt,Kt,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),$t(un,rn,zt(qt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new un(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new un(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var 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+")")}})),$t(an,function(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof an)return new an(t.h,t.s,t.l,t.opacity);if(t instanceof qt||(t=Kt(t)),!t)return new an;if(t instanceof an)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),u=Math.max(n,e,r),o=NaN,a=u-i,c=(u+i)/2;return a?(o=n===u?(e-r)/a+6*(e<r):e===u?(r-n)/a+2:(n-e)/a+4,a/=c<.5?u+i:2-u-i,o*=60):a=c>0&&c<1?0:o,new an(o,a,c,t.opacity)}(t):new an(t,n,e,null==r?1:r)},zt(qt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new an(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new an(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 un(cn(t>=240?t-240:t+120,i,r),cn(t,i,r),cn(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}}));var sn=Math.PI/180,hn=180/Math.PI,ln=.95047,fn=1,pn=1.08883,gn=4/29,yn=6/29,dn=3*yn*yn,vn=yn*yn*yn;function mn(t){if(t instanceof _n)return new _n(t.l,t.a,t.b,t.opacity);if(t instanceof Tn){var n=t.h*sn;return new _n(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof un||(t=en(t));var e=bn(t.r),r=bn(t.g),i=bn(t.b),u=Mn((.4124564*e+.3575761*r+.1804375*i)/ln),o=Mn((.2126729*e+.7151522*r+.072175*i)/fn);return new _n(116*o-16,500*(u-o),200*(o-Mn((.0193339*e+.119192*r+.9503041*i)/pn)),t.opacity)}function _n(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function Mn(t){return t>vn?Math.pow(t,1/3):t/dn+gn}function wn(t){return t>yn?t*t*t:dn*(t-gn)}function xn(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function bn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Tn(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}$t(_n,function(t,n,e,r){return 1===arguments.length?mn(t):new _n(t,n,e,null==r?1:r)},zt(qt,{brighter:function(t){return new _n(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new _n(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 t=fn*wn(t),new un(xn(3.2404542*(n=ln*wn(n))-1.5371385*t-.4985314*(e=pn*wn(e))),xn(-.969266*n+1.8760108*t+.041556*e),xn(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),$t(Tn,function(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Tn)return new Tn(t.h,t.c,t.l,t.opacity);t instanceof _n||(t=mn(t));var n=Math.atan2(t.b,t.a)*hn;return new Tn(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Tn(t,n,e,null==r?1:r)},zt(qt,{brighter:function(t){return new Tn(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Tn(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return mn(this).rgb()}}));var Cn=-.14861,An=1.78277,Nn=-.29227,Un=-.90649,Dn=1.97294,Sn=Dn*Un,kn=Dn*An,Fn=An*Nn-Un*Cn;function En(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Ln(t){return function(){return t}}function Yn(t){return 1==(t=+t)?Hn: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):Ln(isNaN(n)?e:n)}}function Hn(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):Ln(isNaN(t)?n:t)}$t(En,function(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof En)return new En(t.h,t.s,t.l,t.opacity);t instanceof un||(t=en(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Fn*r+Sn*n-kn*e)/(Fn+Sn-kn),u=r-i,o=(Dn*(e-i)-Nn*u)/Un,a=Math.sqrt(o*o+u*u)/(Dn*i*(1-i)),c=a?Math.atan2(o,u)*hn-120:NaN;return new En(c<0?c+360:c,a,i,t.opacity)}(t):new En(t,n,e,null==r?1:r)},zt(qt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new En(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new En(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*sn,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new un(255*(n+e*(Cn*r+An*i)),255*(n+e*(Nn*r+Un*i)),255*(n+e*(Dn*r)),this.opacity)}}));var Pn=function t(n){var e=Yn(n);function r(t,n){var r=e((t=rn(t)).r,(n=rn(n)).r),i=e(t.g,n.g),u=e(t.b,n.b),o=Hn(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=u(n),t.opacity=o(n),t+""}}return r.gamma=t,r}(1);function $n(t,n){return n-=t=+t,function(e){return t+n*e}}var zn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qn=new RegExp(zn.source,"g");function Bn(t,n){var e,r=typeof n;return null==n||"boolean"===r?Ln(n):("number"===r?$n:"string"===r?(e=Kt(n))?(n=e,Pn):function(t,n){var e,r,i,u=zn.lastIndex=qn.lastIndex=0,o=-1,a=[],c=[];for(t+="",n+="";(e=zn.exec(t))&&(r=qn.exec(n));)(i=r.index)>u&&(i=n.slice(u,i),a[o]?a[o]+=i:a[++o]=i),(e=e[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,c.push({i:o,x:$n(e,r)})),u=qn.lastIndex;return u<n.length&&(i=n.slice(u),a[o]?a[o]+=i:a[++o]=i),a.length<2?c[0]?function(t){return function(n){return t(n)+""}}(c[0].x):function(t){return function(){return t}}(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)a[(e=c[r]).i]=e.x(t);return a.join("")})}:n instanceof Kt?Pn:n instanceof Date?function(t,n){var e=new Date;return n-=t=+t,function(r){return e.setTime(t+n*r),e}}:Array.isArray(n)?function(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,u=new Array(i),o=new Array(r);for(e=0;e<i;++e)u[e]=Bn(t[e],n[e]);for(;e<r;++e)o[e]=n[e];return function(t){for(e=0;e<i;++e)o[e]=u[e](t);return o}}:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?function(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=Bn(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}:$n)(t,n)}function In(t,n){return n-=t=+t,function(e){return Math.round(t+n*e)}}Math.PI,Math.SQRT2;function On(t){return function(){return t}}function Rn(t){return+t}var jn,Zn=[0,1];function Vn(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:On(n)}function Wn(t,n,e,r){var i=t[0],u=t[1],o=n[0],a=n[1];return u<i?(i=e(u,i),o=r(a,o)):(i=e(i,u),o=r(o,a)),function(t){return o(i(t))}}function Qn(t,n,e,r){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]=e(t[a],t[a+1]),o[a]=r(n[a],n[a+1]);return function(n){var e=At(t,n,1,i)-1;return o[e](u[e](n))}}function Xn(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function Jn(t,n){var e,r,i,u=Zn,o=Zn,a=Bn,c=!1;function s(){return e=Math.min(u.length,o.length)>2?Qn:Wn,r=i=null,h}function h(n){return(r||(r=e(u,o,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}(t):t,a)))(+n)}return h.invert=function(t){return(i||(i=e(o,u,Vn,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}(n):n)))(+t)},h.domain=function(t){return arguments.length?(u=Ht.call(t,Rn),s()):u.slice()},h.range=function(t){return arguments.length?(o=Pt.call(t),s()):o.slice()},h.rangeRound=function(t){return o=Pt.call(t),a=In,s()},h.clamp=function(t){return arguments.length?(c=!!t,s()):c},h.interpolate=function(t){return arguments.length?(a=t,s()):a},s()}function Gn(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 Kn(t){return(t=Gn(Math.abs(t)))?t[1]:NaN}function te(t,n){var e=Gn(t,n);if(!e)return t+"";var r=e[0],i=e[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")}var ne={"":function(t,n){t=t.toPrecision(n);t:for(var e,r=t.length,i=1,u=-1;i<r;++i)switch(t[i]){case".":u=e=i;break;case"0":0===u&&(u=i),e=i;break;case"e":break t;default:u>0&&(u=0)}return u>0?t.slice(0,u)+t.slice(e+1):t},"%":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 te(100*t,n)},r:te,s:function(t,n){var e=Gn(t,n);if(!e)return t+"";var r=e[0],i=e[1],u=i-(jn=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return u===o?r:u>o?r+new Array(u-o+1).join("0"):u>0?r.slice(0,u)+"."+r.slice(u):"0."+new Array(1-u).join("0")+Gn(t,Math.max(0,n+u-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},ee=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function re(t){return new ie(t)}function ie(t){if(!(n=ee.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",r=n[2]||">",i=n[3]||"-",u=n[4]||"",o=!!n[5],a=n[6]&&+n[6],c=!!n[7],s=n[8]&&+n[8].slice(1),h=n[9]||"";"n"===h?(c=!0,h="g"):ne[h]||(h=""),(o||"0"===e&&"="===r)&&(o=!0,e="0",r="="),this.fill=e,this.align=r,this.sign=i,this.symbol=u,this.zero=o,this.width=a,this.comma=c,this.precision=s,this.type=h}function ue(t){return t}re.prototype=ie.prototype,ie.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var oe,ae,ce,se=["y","z","a","f","p","n","ยต","m","","k","M","G","T","P","E","Z","Y"];function he(t){var n,e,r=t.grouping&&t.thousands?(n=t.grouping,e=t.thousands,function(t,r){for(var i=t.length,u=[],o=0,a=n[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),u.push(t.substring(i-=a,i+a)),!((c+=a+1)>r));)a=n[o=(o+1)%n.length];return u.reverse().join(e)}):ue,i=t.currency,u=t.decimal,o=t.numerals?function(t){return function(n){return n.replace(/[0-9]/g,function(n){return t[+n]})}}(t.numerals):ue,a=t.percent||"%";function c(t){var n=(t=re(t)).fill,e=t.align,c=t.sign,s=t.symbol,h=t.zero,l=t.width,f=t.comma,p=t.precision,g=t.type,y="$"===s?i[0]:"#"===s&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",d="$"===s?i[1]:/[%p]/.test(g)?a:"",v=ne[g],m=!g||/[defgprs%]/.test(g);function _(t){var i,a,s,_=y,M=d;if("c"===g)M=v(t)+M,t="";else{var w=(t=+t)<0;if(t=v(Math.abs(t),p),w&&0==+t&&(w=!1),_=(w?"("===c?c:"-":"-"===c||"("===c?"":c)+_,M=("s"===g?se[8+jn/3]:"")+M+(w&&"("===c?")":""),m)for(i=-1,a=t.length;++i<a;)if(48>(s=t.charCodeAt(i))||s>57){M=(46===s?u+t.slice(i+1):t.slice(i))+M,t=t.slice(0,i);break}}f&&!h&&(t=r(t,1/0));var x=_.length+t.length+M.length,b=x<l?new Array(l-x+1).join(n):"";switch(f&&h&&(t=r(b+t,b.length?l-M.length:1/0),b=""),e){case"<":t=_+t+M+b;break;case"=":t=_+b+t+M;break;case"^":t=b.slice(0,x=b.length>>1)+_+t+M+b.slice(x);break;default:t=b+_+t+M}return o(t)}return p=null==p?g?6:12:/[gprs]/.test(g)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),_.toString=function(){return t+""},_}return{format:c,formatPrefix:function(t,n){var e=c(((t=re(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Kn(n)/3))),i=Math.pow(10,-r),u=se[8+r/3];return function(t){return e(i*t)+u}}}}function le(t,n,e){var r,i=t[0],u=t[t.length-1],o=function(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),u=r/i;return u>=Nt?i*=10:u>=Ut?i*=5:u>=Dt&&(i*=2),n<t?-i:i}(i,u,null==n?10:n);switch((e=re(null==e?",f":e)).type){case"s":var a=Math.max(Math.abs(i),Math.abs(u));return null!=e.precision||isNaN(r=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Kn(n)/3)))-Kn(Math.abs(t)))}(o,a))||(e.precision=r),ce(e,a);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Kn(n)-Kn(t))+1}(o,Math.max(Math.abs(i),Math.abs(u))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=function(t){return Math.max(0,-Kn(Math.abs(t)))}(o))||(e.precision=r-2*("%"===e.type))}return ae(e)}function fe(t){var n=t.domain;return t.ticks=function(t){var e=n();return function(t,n,e){var r,i,u,o,a=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(o=St(t,n,e))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),n=Math.floor(n/o),u=new Array(i=Math.ceil(n-t+1));++a<i;)u[a]=(t+a)*o;else for(t=Math.floor(t*o),n=Math.ceil(n*o),u=new Array(i=Math.ceil(t-n+1));++a<i;)u[a]=(t-a)/o;return r&&u.reverse(),u}(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return le(n(),t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),u=0,o=i.length-1,a=i[u],c=i[o];return c<a&&(r=a,a=c,c=r,r=u,u=o,o=r),(r=St(a,c,e))>0?r=St(a=Math.floor(a/r)*r,c=Math.ceil(c/r)*r,e):r<0&&(r=St(a=Math.ceil(a*r)/r,c=Math.floor(c*r)/r,e)),r>0?(i[u]=Math.floor(a/r)*r,i[o]=Math.ceil(c/r)*r,n(i)):r<0&&(i[u]=Math.ceil(a*r)/r,i[o]=Math.floor(c*r)/r,n(i)),t},t}function pe(t,n){return t<0?-Math.pow(-t,n):Math.pow(t,n)}oe=he({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),ae=oe.format,ce=oe.formatPrefix;var ge=new Date,ye=new Date;function de(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,u){var o,a=[];if(e=i.ceil(e),u=null==u?1:Math.floor(u),!(e<r&&u>0))return a;do{a.push(o=new Date(+e)),n(e,u),t(e)}while(o<e&&e<r);return a},i.filter=function(e){return de(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&&(i.count=function(n,r){return ge.setTime(+n),ye.setTime(+r),t(ge),t(ye),Math.floor(e(ge,ye))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var ve=de(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});ve.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?de(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):ve:null};var me=6e4,_e=6048e5,Me=(de(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,n){t.setTime(+t+1e3*n)},function(t,n){return(n-t)/1e3},function(t){return t.getUTCSeconds()}),de(function(t){t.setTime(Math.floor(t/me)*me)},function(t,n){t.setTime(+t+n*me)},function(t,n){return(n-t)/me},function(t){return t.getMinutes()}),de(function(t){var n=t.getTimezoneOffset()*me%36e5;n<0&&(n+=36e5),t.setTime(36e5*Math.floor((+t-n)/36e5)+n)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getHours()}),de(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())*me)/864e5},function(t){return t.getDate()-1}));function we(t){return de(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())*me)/_e})}var xe=we(0),be=we(1),Te=(we(2),we(3),we(4)),Ce=(we(5),we(6),de(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()}),de(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()}));Ce.every=function(t){return isFinite(t=Math.floor(t))&&t>0?de(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};de(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*me)},function(t,n){return(n-t)/me},function(t){return t.getUTCMinutes()}),de(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getUTCHours()});var Ae=de(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1});function Ne(t){return de(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)/_e})}var Ue=Ne(0),De=Ne(1),Se=(Ne(2),Ne(3),Ne(4)),ke=(Ne(5),Ne(6),de(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()}),de(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()}));function Fe(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 Ee(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 Le(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}ke.every=function(t){return isFinite(t=Math.floor(t))&&t>0?de(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};var Ye,He,Pe,$e={"-":"",_:" ",0:"0"},ze=/^\s*\d+/,qe=/^%/,Be=/[\\^$*+?|[\]().{}]/g;function Ie(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 Oe(t){return t.replace(Be,"\\$&")}function Re(t){return new RegExp("^(?:"+t.map(Oe).join("|")+")","i")}function je(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function Ze(t,n,e){var r=ze.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Ve(t,n,e){var r=ze.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function We(t,n,e){var r=ze.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function Qe(t,n,e){var r=ze.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function Xe(t,n,e){var r=ze.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function Je(t,n,e){var r=ze.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Ge(t,n,e){var r=ze.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function Ke(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 tr(t,n,e){var r=ze.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function nr(t,n,e){var r=ze.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function er(t,n,e){var r=ze.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function rr(t,n,e){var r=ze.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function ir(t,n,e){var r=ze.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function ur(t,n,e){var r=ze.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function or(t,n,e){var r=ze.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function ar(t,n,e){var r=ze.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function cr(t,n,e){var r=qe.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function sr(t,n,e){var r=ze.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function hr(t,n,e){var r=ze.exec(n.slice(e));return r?(t.Q=1e3*+r[0],e+r[0].length):-1}function lr(t,n){return Ie(t.getDate(),n,2)}function fr(t,n){return Ie(t.getHours(),n,2)}function pr(t,n){return Ie(t.getHours()%12||12,n,2)}function gr(t,n){return Ie(1+Me.count(Ce(t),t),n,3)}function yr(t,n){return Ie(t.getMilliseconds(),n,3)}function dr(t,n){return yr(t,n)+"000"}function vr(t,n){return Ie(t.getMonth()+1,n,2)}function mr(t,n){return Ie(t.getMinutes(),n,2)}function _r(t,n){return Ie(t.getSeconds(),n,2)}function Mr(t){var n=t.getDay();return 0===n?7:n}function wr(t,n){return Ie(xe.count(Ce(t),t),n,2)}function xr(t,n){var e=t.getDay();return t=e>=4||0===e?Te(t):Te.ceil(t),Ie(Te.count(Ce(t),t)+(4===Ce(t).getDay()),n,2)}function br(t){return t.getDay()}function Tr(t,n){return Ie(be.count(Ce(t),t),n,2)}function Cr(t,n){return Ie(t.getFullYear()%100,n,2)}function Ar(t,n){return Ie(t.getFullYear()%1e4,n,4)}function Nr(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Ie(n/60|0,"0",2)+Ie(n%60,"0",2)}function Ur(t,n){return Ie(t.getUTCDate(),n,2)}function Dr(t,n){return Ie(t.getUTCHours(),n,2)}function Sr(t,n){return Ie(t.getUTCHours()%12||12,n,2)}function kr(t,n){return Ie(1+Ae.count(ke(t),t),n,3)}function Fr(t,n){return Ie(t.getUTCMilliseconds(),n,3)}function Er(t,n){return Fr(t,n)+"000"}function Lr(t,n){return Ie(t.getUTCMonth()+1,n,2)}function Yr(t,n){return Ie(t.getUTCMinutes(),n,2)}function Hr(t,n){return Ie(t.getUTCSeconds(),n,2)}function Pr(t){var n=t.getUTCDay();return 0===n?7:n}function $r(t,n){return Ie(Ue.count(ke(t),t),n,2)}function zr(t,n){var e=t.getUTCDay();return t=e>=4||0===e?Se(t):Se.ceil(t),Ie(Se.count(ke(t),t)+(4===ke(t).getUTCDay()),n,2)}function qr(t){return t.getUTCDay()}function Br(t,n){return Ie(De.count(ke(t),t),n,2)}function Ir(t,n){return Ie(t.getUTCFullYear()%100,n,2)}function Or(t,n){return Ie(t.getUTCFullYear()%1e4,n,4)}function Rr(){return"+0000"}function jr(){return"%"}function Zr(t){return+t}function Vr(t){return Math.floor(+t/1e3)}!function(t){Ye=function(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,u=t.days,o=t.shortDays,a=t.months,c=t.shortMonths,s=Re(i),h=je(i),l=Re(u),f=je(u),p=Re(o),g=je(o),y=Re(a),d=je(a),v=Re(c),m=je(c),_={a:function(t){return o[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:lr,e:lr,f:dr,H:fr,I:pr,j:gr,L:yr,m:vr,M:mr,p:function(t){return i[+(t.getHours()>=12)]},Q:Zr,s:Vr,S:_r,u:Mr,U:wr,V:xr,w:br,W:Tr,x:null,X:null,y:Cr,Y:Ar,Z:Nr,"%":jr},M={a:function(t){return o[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:Ur,e:Ur,f:Er,H:Dr,I:Sr,j:kr,L:Fr,m:Lr,M:Yr,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:Zr,s:Vr,S:Hr,u:Pr,U:$r,V:zr,w:qr,W:Br,x:null,X:null,y:Ir,Y:Or,Z:Rr,"%":jr},w={a:function(t,n,e){var r=p.exec(n.slice(e));return r?(t.w=g[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.w=f[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=v.exec(n.slice(e));return r?(t.m=m[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=d[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return T(t,n,e,r)},d:nr,e:nr,f:ar,H:rr,I:rr,j:er,L:or,m:tr,M:ir,p:function(t,n,e){var r=s.exec(n.slice(e));return r?(t.p=h[r[0].toLowerCase()],e+r[0].length):-1},Q:sr,s:hr,S:ur,u:Ve,U:We,V:Qe,w:Ze,W:Xe,x:function(t,n,r){return T(t,e,n,r)},X:function(t,n,e){return T(t,r,n,e)},y:Ge,Y:Je,Z:Ke,"%":cr};function x(t,n){return function(e){var r,i,u,o=[],a=-1,c=0,s=t.length;for(e instanceof Date||(e=new Date(+e));++a<s;)37===t.charCodeAt(a)&&(o.push(t.slice(c,a)),null!=(i=$e[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(u=n[r])&&(r=u(e,i)),o.push(r),c=a+1);return o.push(t.slice(c,a)),o.join("")}}function b(t,n){return function(e){var r,i,u=Le(1900);if(T(u,t,e+="",0)!=e.length)return null;if("Q"in u)return new Date(u.Q);if("p"in u&&(u.H=u.H%12+12*u.p),"V"in u){if(u.V<1||u.V>53)return null;"w"in u||(u.w=1),"Z"in u?(r=(i=(r=Ee(Le(u.y))).getUTCDay())>4||0===i?De.ceil(r):De(r),r=Ae.offset(r,7*(u.V-1)),u.y=r.getUTCFullYear(),u.m=r.getUTCMonth(),u.d=r.getUTCDate()+(u.w+6)%7):(r=(i=(r=n(Le(u.y))).getDay())>4||0===i?be.ceil(r):be(r),r=Me.offset(r,7*(u.V-1)),u.y=r.getFullYear(),u.m=r.getMonth(),u.d=r.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),i="Z"in u?Ee(Le(u.y)).getUTCDay():n(Le(u.y)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(i+5)%7:u.w+7*u.U-(i+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,Ee(u)):n(u)}}function T(t,n,e,r){for(var i,u,o=0,a=n.length,c=e.length;o<a;){if(r>=c)return-1;if(37===(i=n.charCodeAt(o++))){if(i=n.charAt(o++),!(u=w[i in $e?n.charAt(o++):i])||(r=u(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return _.x=x(e,_),_.X=x(r,_),_.c=x(n,_),M.x=x(e,M),M.X=x(r,M),M.c=x(n,M),{format:function(t){var n=x(t+="",_);return n.toString=function(){return t},n},parse:function(t){var n=b(t+="",Fe);return n.toString=function(){return t},n},utcFormat:function(t){var n=x(t+="",M);return n.toString=function(){return t},n},utcParse:function(t){var n=b(t,Ee);return n.toString=function(){return t},n}}}(t),Ye.format,Ye.parse,He=Ye.utcFormat,Pe=Ye.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"]});Date.prototype.toISOString||He("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Pe("%Y-%m-%dT%H:%M:%S.%LZ");var Wr=function(t,n){if(!Number.isFinite(t))return null;var e=Math.abs(t),r=n&&n.thousandsSeparator||"",i=n&&n.unitSeparator||"",u=n&&void 0!==n.decimalPlaces?n.decimalPlaces:2,o=Boolean(n&&n.fixedDecimals),a=n&&n.unit||"";a&&Jr[a.toLowerCase()]||(a=e>=Jr.tb?"TB":e>=Jr.gb?"GB":e>=Jr.mb?"MB":e>=Jr.kb?"KB":"B");var c=(t/Jr[a.toLowerCase()]).toFixed(u);o||(c=c.replace(Xr,"$1"));r&&(c=c.replace(Qr,r));return c+i+a},Qr=/\B(?=(\d{3})+(?!\d))/g,Xr=/(?:\.0*|(\.[^0]+)0+)$/,Jr={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:1024*(1<<30)};var Gr=window.nodesData,Kr=Math.min(700,700)/2-10;var ti=function t(){var n=Jn(Vn,$n);return n.copy=function(){return Xn(n,t())},fe(n)}().range([0,2*Math.PI]),ni=function t(){var n=1,e=Jn(function(t,e){return(e=pe(e,n)-(t=pe(t,n)))?function(r){return(pe(r,n)-t)/e}:On(e)},function(t,e){return e=pe(e,n)-(t=pe(t,n)),function(r){return pe(t+e*r,1/n)}}),r=e.domain;return e.exponent=function(t){return arguments.length?(n=+t,r(r())):n},e.copy=function(){return Xn(e,t().exponent(n))},fe(e)}().exponent(.5).range([0,Kr]),ei=z("#chart").append("svg").attr("width",700).attr("height",700).append("g").attr("transform","translate(350,350)"),ri=function(){var t=1,n=1,e=0,r=!1;function i(i){var u=i.height+1;return i.x0=i.y0=e,i.x1=t,i.y1=n/u,i.eachBefore(function(t,n){return function(r){r.children&&function(t,n,e,r,i){for(var u,o=t.children,a=-1,c=o.length,s=t.value&&(r-n)/t.value;++a<c;)(u=o[a]).y0=e,u.y1=i,u.x0=n,u.x1=n+=u.value*s}(r,r.x0,t*(r.depth+1)/n,r.x1,t*(r.depth+2)/n);var i=r.x0,u=r.y0,o=r.x1-e,a=r.y1-e;o<i&&(i=o=(i+o)/2),a<u&&(u=a=(u+a)/2),r.x0=i,r.y0=u,r.x1=o,r.y1=a}}(n,u)),r&&i.eachBefore(Z),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(t){return arguments.length?(e=+t,i):e},i}(),ii=function(){var t=lt,n=ft,e=G(0),r=null,i=pt,u=gt,o=yt,a=null;function c(){var c,s,h,l=+t.apply(this,arguments),f=+n.apply(this,arguments),p=i.apply(this,arguments)-ct,g=u.apply(this,arguments)-ct,y=K(g-p),d=g>p;if(a||(a=c=J()),f<l&&(s=f,f=l,l=s),f>ot)if(y>st-ot)a.moveTo(f*nt(p),f*it(p)),a.arc(0,0,f,p,g,!d),l>ot&&(a.moveTo(l*nt(g),l*it(g)),a.arc(0,0,l,g,p,d));else{var v,m,_=p,M=g,w=p,x=g,b=y,T=y,C=o.apply(this,arguments)/2,A=C>ot&&(r?+r.apply(this,arguments):ut(l*l+f*f)),N=rt(K(f-l)/2,+e.apply(this,arguments)),U=N,D=N;if(A>ot){var S=ht(A/l*it(C)),k=ht(A/f*it(C));(b-=2*S)>ot?(w+=S*=d?1:-1,x-=S):(b=0,w=x=(p+g)/2),(T-=2*k)>ot?(_+=k*=d?1:-1,M-=k):(T=0,_=M=(p+g)/2)}var F=f*nt(_),E=f*it(_),L=l*nt(x),Y=l*it(x);if(N>ot){var H=f*nt(M),P=f*it(M),$=l*nt(w),z=l*it(w);if(y<at){var q=b>ot?function(t,n,e,r,i,u,o,a){var c=e-t,s=r-n,h=o-i,l=a-u,f=(h*(n-u)-l*(t-i))/(l*c-h*s);return[t+f*c,n+f*s]}(F,E,$,z,H,P,L,Y):[L,Y],B=F-q[0],I=E-q[1],O=H-q[0],R=P-q[1],j=1/it(((h=(B*O+I*R)/(ut(B*B+I*I)*ut(O*O+R*R)))>1?0:h<-1?at:Math.acos(h))/2),Z=ut(q[0]*q[0]+q[1]*q[1]);U=rt(N,(l-Z)/(j-1)),D=rt(N,(f-Z)/(j+1))}}T>ot?D>ot?(v=dt($,z,F,E,f,D,d),m=dt(H,P,L,Y,f,D,d),a.moveTo(v.cx+v.x01,v.cy+v.y01),D<N?a.arc(v.cx,v.cy,D,tt(v.y01,v.x01),tt(m.y01,m.x01),!d):(a.arc(v.cx,v.cy,D,tt(v.y01,v.x01),tt(v.y11,v.x11),!d),a.arc(0,0,f,tt(v.cy+v.y11,v.cx+v.x11),tt(m.cy+m.y11,m.cx+m.x11),!d),a.arc(m.cx,m.cy,D,tt(m.y11,m.x11),tt(m.y01,m.x01),!d))):(a.moveTo(F,E),a.arc(0,0,f,_,M,!d)):a.moveTo(F,E),l>ot&&b>ot?U>ot?(v=dt(L,Y,H,P,l,-U,d),m=dt(F,E,$,z,l,-U,d),a.lineTo(v.cx+v.x01,v.cy+v.y01),U<N?a.arc(v.cx,v.cy,U,tt(v.y01,v.x01),tt(m.y01,m.x01),!d):(a.arc(v.cx,v.cy,U,tt(v.y01,v.x01),tt(v.y11,v.x11),!d),a.arc(0,0,l,tt(v.cy+v.y11,v.cx+v.x11),tt(m.cy+m.y11,m.cx+m.x11),d),a.arc(m.cx,m.cy,U,tt(m.y11,m.x11),tt(m.y01,m.x01),!d))):a.arc(0,0,l,x,w,d):a.lineTo(L,Y)}else a.moveTo(0,0);if(a.closePath(),c)return a=null,c+""||null}return c.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +u.apply(this,arguments))/2-at/2;return[nt(r)*e,it(r)*e]},c.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:G(+n),c):t},c.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:G(+t),c):n},c.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:G(+t),c):e},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:G(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:G(+t),c):i},c.endAngle=function(t){return arguments.length?(u="function"==typeof t?t:G(+t),c):u},c.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:G(+t),c):o},c.context=function(t){return arguments.length?(a=null==t?null:t,c):a},c}().startAngle(function(t){return Math.max(0,Math.min(2*Math.PI,ti(t.x0)))}).endAngle(function(t){return Math.max(0,Math.min(2*Math.PI,ti(t.x1)))}).innerRadius(function(t){return ni(t.y0)}).outerRadius(function(t){return ni(t.y1)}),ui=B(Gr).sum(function(t){return t.children&&t.children.length?0:t.size}).sort();ri(ui),ei.selectAll("path").data(ri(ui).descendants()).enter().append("path").attr("display",function(t){return t.depth?null:"none"}).attr("d",ii).attr("fill-rule","evenodd").style("stroke","#fff").style("fill",function(t){return(n=t).children&&n.children.length?ai(n).filter(function(t){return"node_modules"===t.data.name}).length?"#599e59":"#487ea4":"#db7100";var n}).on("mouseover",function(t){var n=(100*t.value/oi).toPrecision(2),e=n+"%";n<.1&&(e="< 0.1%");z(".details-name").text(t.data.name),z(".details-percentage").text(e),z(".details-size").text(Wr(t.value)),z(".details").style("display","block");var r=ai(t);ei.selectAll("path").style("opacity",.3),ei.selectAll("path").filter(function(t){return r.indexOf(t)>=0}).style("opacity",1)});var oi=ui.value;function ai(t){for(var n=[],e=t;e.parent;)n.unshift(e),e=e.parent;return n}z("#chart").on("mouseleave",function(){ei.selectAll("path").style("opacity",1),z(".details").style("display","none")})}();
{
"name": "rollup-plugin-visualizer",
"version": "0.3.1",
"version": "0.4.0",
"main": "plugin.js",

@@ -18,19 +18,20 @@ "author": "Denis Bardadym <bardadymchik@gmail.com>",

"buildplugin": "rollup -c rollup.config.js -o ./lib/pluginmain.js",
"prepublish": "npm run build"
"prepare": "npm run build"
},
"dependencies": {
"source-map": "^0.5.6"
"source-map": "^0.7.2"
},
"devDependencies": {
"bytes": "^2.4.0",
"bytes": "^3.0.0",
"d3-hierarchy": "^1.0.2",
"d3-scale": "^1.0.3",
"d3-selection": "^1.0.2",
"d3-scale": "^2.0.0",
"d3-selection": "^1.3.0",
"d3-shape": "^1.0.3",
"eslint": "^3.8.1",
"rollup": "^0.43.0",
"rollup-plugin-commonjs": "^8.0.2",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-uglify": "^2.0.1"
"prettier": "^1.11.1",
"rollup": "^0.56.5",
"rollup-plugin-commonjs": "^9.1.0",
"rollup-plugin-node-resolve": "^3.2.0",
"rollup-plugin-uglify": "^3.0.0"
}
}

@@ -13,2 +13,3 @@ const fs = require("fs");

var filename = opts.filename || "stats.html";
var title = opts.title || "RollUp Visualizer";
var useSourceMap = !!opts.sourcemap;

@@ -46,3 +47,3 @@

var html = `<!doctype html>
<title>RollUp Visualizer</title>
<title>${title}</title>
<meta charset="utf-8">

@@ -52,3 +53,3 @@ <style>${cssString}</style>

<div>
<h1>RollUp Visualizer</h1>
<h1>${title}</h1>

@@ -55,0 +56,0 @@ <div id="chart">

# Rollup Plugin Visualizer
[![NPM Version](https://img.shields.io/npm/v/rollup-plugin-visualizer.svg)](https://npmjs.org/package/rollup-plugin-visualizer)
Visualize and analyze your Rollup bundle to see which modules are taking up space.

@@ -8,24 +11,38 @@

## Plugin Usage
## Installation
```sh
npm install --save-dev rollup-plugin-visualizer
```
npm i -D rollup-plugin-visualizer
or via yarn:
```sh
yarn add --dev rollup-plugin-visualizer
```
## Usage
```javascript
var Visualizer = require('rollup-plugin-visualizer');
import visualizer from 'rollup-plugin-visualizer';
//...
plugins: [Visualizer()],
plugins: [
visualizer()
],
//...
```
This will output a file named `stats.html` in current directory. You can modify the name/location by passing a `filename` parameter into the constructor.
This will output a file named `stats.html` in current directory. You can modify the name/location by passing a `filename` parameter into the constructor. You can also set a title by passing a `title` parameter.
```javascript
var Visualizer = require('rollup-plugin-visualizer');
import visualizer from 'rollup-plugin-visualizer';
//...
plugins: [Visualizer({
filename: './statistics.html'
})],
plugins: [
visualizer({
filename: './statistics.html',
title: 'My Bundle'
})
],
//...

@@ -39,12 +56,15 @@ ```

```javascript
var Visualizer = require('rollup-plugin-visualizer');
import visualizer from 'rollup-plugin-visualizer';
//...
plugins: [Visualizer({
sourcemap: true
})],
plugins: [
visualizer({
sourcemap: true
})
],
//...
```
## Acknowledges
Initially this plugin is based on [webpack-visualizer](http://chrisbateman.github.io/webpack-visualizer/), but at the end rest only styles and layout. Thanks tons of people around internet for great examples of d3 usage.
## Acknowledgements
Initially this plugin was based on [webpack-visualizer](http://chrisbateman.github.io/webpack-visualizer/), but in the end used only styles and layout. Thanks to the tons of people around internet for great examples of d3 usage.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc