-
Notifications
You must be signed in to change notification settings - Fork 19
/
index.html
82 lines (77 loc) · 131 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html lang="en">
<head>
<!-- /* Begin Bootstrap CDN */ -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13" crossorigin="anonymous"></script>
<!-- /* End Bootstrap CDN */ -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta name="description" content="collection of tools, tips, cheat sheets, and resources">
<meta name="twitter:title" content="Ethical Hacking Toolkit">
<meta name="twitter:site" content="https://github.com/0xCyberY/ehtk">
<meta name="twitter:creator" content="@0xCyberY">
<meta property="og:title" content="Ethical Hacking Toolkit">
<meta property="og:description" content="collection of tools, cheat sheets, and resources." />">
<meta property="og:url" content="https://github.com/0xCyberY/ehtk">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type="text/css" rel="stylesheet" href="css/hack.css">
<link rel=“icon” href=”favicon.ico” type=“image/x-icon”>
<link rel=“shortcut icon” href=“/favicons/favicon.ico?” type=“image/x-icon”>
<link rel="icon" type="image/png" sizes="32x32" href="./favicons/favicon-32x32.png">
<link rel="apple-touch-icon" sizes="57x57" href="/favicons/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/favicons/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/favicons/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/favicons/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/favicons/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/favicons/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/favicons/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/favicons/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/favicons/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/favicons/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicons/favicon-16x16.png">
<link rel="manifest" href="/favicons/manifest.json">
<link rel="manifest" href="/favicons/browserconfig.xml">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/favicons/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<h1 hidden>Ethical Hacking Toolkit | collection of tools, cheat sheets, and resources</h1>
<script>d3=function(){function t(t){return t.target}function n(t){return t.source}function e(){}function r(t){return t}function u(){return!0}function i(t){return"function"==typeof t?t:function(){return t}}function a(t,n,e){return function(){var r=e.apply(n,arguments);return r===n?t:r}}function o(t){return null!=t&&!isNaN(t)}function c(t){return t.length}function l(t){return t.trim().replace(/\s+/g," ")}function f(t){for(var n=1;t*n%1;)n*=10;return n}function s(t){return 1===t.length?function(n,e){t(null==n?e:null)}:t}function h(t){return t.responseText}function g(t){return JSON.parse(t.responseText)}function p(t){var n=Rr.createRange();return n.selectNode(Rr.body),n.createContextualFragment(t.responseText)}function d(t){return t.responseXML}function m(){}function v(t){function n(){for(var n,e=r,u=-1,i=e.length;i>++u;)(n=e[u].on)&&n.apply(this,arguments);return t}var r=[],u=new e;return n.on=function(n,e){var i,a=u.get(n);return 2>arguments.length?a&&a.on:(a&&(a.on=null,r=r.slice(0,i=r.indexOf(a)).concat(r.slice(i+1)),u.remove(n)),e&&r.push(u.set(n,{on:e})),t)},n}function y(t,n){return n-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function M(t){return t+""}function b(t){return function(n){return 0>=n?0:n>=1?1:t(n)}}function x(t){return function(n){return 1-t(1-n)}}function _(t){return function(n){return.5*(.5>n?t(2*n):2-t(2-2*n))}}function w(t){return t*t}function S(t){return t*t*t}function k(t){return 1-Math.cos(t*Lr/2)}function E(t){return Math.pow(2,10*(t-1))}function N(t){return 1-Math.sqrt(1-t*t)}function A(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function T(){Hr.event.stopPropagation(),Hr.event.preventDefault()}function q(){for(var t,n=Hr.event;t=n.sourceEvent;)n=t;return n}function C(t){for(var n=new m,e=0,r=arguments.length;r>++e;)n[arguments[e]]=v(n);return n.of=function(e,r){return function(u){try{var i=u.sourceEvent=Hr.event;u.target=t,Hr.event=u,n[u.type].apply(e,r)}finally{Hr.event=i}}},n}function z(t){var n=[t.a,t.b],e=[t.c,t.d],r=L(n),u=D(n,e),i=L(function(t,n,e){return t[0]+=e*n[0],t[1]+=e*n[1],t}(e,n,-u))||0;n[0]*e[1]<e[0]*n[1]&&(n[0]*=-1,n[1]*=-1,r*=-1,u*=-1),this.rotate=(r?Math.atan2(n[1],n[0]):Math.atan2(-e[0],e[1]))*Pr,this.translate=[t.e,t.f],this.scale=[r,i],this.skew=i?Math.atan2(u,i)*Pr:0}function D(t,n){return t[0]*n[0]+t[1]*n[1]}function L(t){var n=Math.sqrt(D(t,t));return n&&(t[0]/=n,t[1]/=n),n}function F(t){return"transform"==t?Hr.interpolateTransform:Hr.interpolate}function H(t,n){return n=n-(t=+t)?1/(n-t):0,function(e){return(e-t)*n}}function j(t,n){return n=n-(t=+t)?1/(n-t):0,function(e){return Math.max(0,Math.min(1,(e-t)*n))}}function P(){}function R(t,n,e){return new O(t,n,e)}function O(t,n,e){this.r=t,this.g=n,this.b=e}function Y(t){return 16>t?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function U(t,n,e){var r,u,i,a=0,o=0,c=0;if(r=/([a-z]+)\((.*)\)/i.exec(t))switch(u=r[2].split(","),r[1]){case"hsl":return e(parseFloat(u[0]),parseFloat(u[1])/100,parseFloat(u[2])/100);case"rgb":return n(X(u[0]),X(u[1]),X(u[2]))}return(i=cu.get(t))?n(i.r,i.g,i.b):(null!=t&&"#"===t.charAt(0)&&(4===t.length?(a=t.charAt(1),a+=a,o=t.charAt(2),o+=o,c=t.charAt(3),c+=c):7===t.length&&(a=t.substring(1,3),o=t.substring(3,5),c=t.substring(5,7)),a=parseInt(a,16),o=parseInt(o,16),c=parseInt(c,16)),n(a,o,c))}function I(t,n,e){var r,u,i=Math.min(t/=255,n/=255,e/=255),a=Math.max(t,n,e),o=a-i,c=(a+i)/2;return o?(u=.5>c?o/(a+i):o/(2-a-i),r=t==a?(n-e)/o+(e>n?6:0):n==a?(e-t)/o+2:(t-n)/o+4,r*=60):u=r=0,B(r,u,c)}function V(t,n,e){var r=ut((.4124564*(t=Z(t))+.3575761*(n=Z(n))+.1804375*(e=Z(e)))/hu),u=ut((.2126729*t+.7151522*n+.072175*e)/gu);return Q(116*u-16,500*(r-u),200*(u-ut((.0193339*t+.119192*n+.9503041*e)/pu)))}function Z(t){return.04045>=(t/=255)?t/12.92:Math.pow((t+.055)/1.055,2.4)}function X(t){var n=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*n):n}function B(t,n,e){return new $(t,n,e)}function $(t,n,e){this.h=t,this.s=n,this.l=e}function J(t,n,e){function r(t){return Math.round(255*function(t){return t>360?t-=360:0>t&&(t+=360),60>t?u+(i-u)*t/60:180>t?i:240>t?u+(i-u)*(240-t)/60:u}(t))}var u,i;return 0>(t%=360)&&(t+=360),n=0>n?0:n>1?1:n,u=2*(e=0>e?0:e>1?1:e)-(i=.5>=e?e*(1+n):e+n-e*n),R(r(t+120),r(t),r(t-120))}function G(t,n,e){return new K(t,n,e)}function K(t,n,e){this.h=t,this.c=n,this.l=e}function W(t,n,e){return Q(e,Math.cos(t*=jr)*n,Math.sin(t)*n)}function Q(t,n,e){return new tt(t,n,e)}function tt(t,n,e){this.l=t,this.a=n,this.b=e}function nt(t,n,e){var r=(t+16)/116,u=r+n/500,i=r-e/200;return R(it(3.2404542*(u=rt(u)*hu)-1.5371385*(r=rt(r)*gu)-.4985314*(i=rt(i)*pu)),it(-.969266*u+1.8760108*r+.041556*i),it(.0556434*u-.2040259*r+1.0572252*i))}function et(t,n,e){return G(Math.atan2(e,n)/Lr*180,Math.sqrt(n*n+e*e),t)}function rt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function ut(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function it(t){return Math.round(255*(.00304>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function at(t){return Zr(t,xu),t}function ot(t){return function(){return mu(t,this)}}function ct(t){return function(){return vu(t,this)}}function lt(t,n){return t=Hr.ns.qualify(t),null==n?t.local?function(){this.removeAttributeNS(t.space,t.local)}:function(){this.removeAttribute(t)}:"function"==typeof n?t.local?function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}:function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}:t.local?function(){this.setAttributeNS(t.space,t.local,n)}:function(){this.setAttribute(t,n)}}function ft(t){return RegExp("(?:^|\\s+)"+Hr.requote(t)+"(?:\\s+|$)","g")}function st(t,n){var e=(t=t.trim().split(/\s+/).map(ht)).length;return"function"==typeof n?function(){for(var r=-1,u=n.apply(this,arguments);e>++r;)t[r](this,u)}:function(){for(var r=-1;e>++r;)t[r](this,n)}}function ht(t){var n=ft(t);return function(e,r){if(u=e.classList)return r?u.add(t):u.remove(t);var u=e.className,i=null!=u.baseVal,a=i?u.baseVal:u;r?(n.lastIndex=0,n.test(a)||(a=l(a+" "+t),i?u.baseVal=a:e.className=a)):a&&(a=l(a.replace(n," ")),i?u.baseVal=a:e.className=a)}}function gt(t,n,e){return null==n?function(){this.style.removeProperty(t)}:"function"==typeof n?function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}:function(){this.style.setProperty(t,n,e)}}function pt(t,n){return null==n?function(){delete this[t]}:"function"==typeof n?function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}:function(){this[t]=n}}function dt(t){return{__data__:t}}function mt(t){return function(){return bu(this,t)}}function vt(t){return arguments.length||(t=Hr.ascending),function(n,e){return!n-!e||t(n.__data__,e.__data__)}}function yt(t,n,e){function r(){var n=this[u];n&&(this.removeEventListener(t,n,n.$),delete this[u])}var u="__on"+t,i=t.indexOf(".");return i>0&&(t=t.substring(0,i)),n?function(){function i(t){var e=Hr.event;Hr.event=t,o[0]=a.__data__;try{n.apply(a,o)}finally{Hr.event=e}}var a=this,o=Vr(arguments);r.call(this),this.addEventListener(t,this[u]=i,i.$=e),i._=n}:r}function Mt(t,n){for(var e=0,r=t.length;r>e;e++)for(var u,i=t[e],a=0,o=i.length;o>a;a++)(u=i[a])&&n(u,a,e);return t}function bt(t){return Zr(t,wu),t}function xt(t,n){return Zr(t,ku),t.id=n,t}function _t(t,n,r,u){var i=t.__transition__||(t.__transition__={active:0,count:0}),a=i[r];if(!a){var o=u.time;return a=i[r]={tween:new e,event:Hr.dispatch("start","end"),time:o,ease:u.ease,delay:u.delay,duration:u.duration},++i.count,Hr.timer(function(e){function u(e){return i.active>r?l():(i.active=r,h.start.call(t,f,n),a.tween.forEach(function(e,r){(r=r.call(t,f,n))&&d.push(r)}),c(e)||Hr.timer(c,0,o),1)}function c(e){if(i.active!==r)return l();for(var u=(e-g)/p,a=s(u),o=d.length;o>0;)d[--o].call(t,a);return u>=1?(l(),h.end.call(t,f,n),1):void 0}function l(){return--i.count?delete i[r]:delete t.__transition__,1}var f=t.__data__,s=a.ease,h=a.event,g=a.delay,p=a.duration,d=[];return e>=g?u(e):Hr.timer(u,g,o),1},0,o),a}}function wt(t){return null==t&&(t=""),function(){this.textContent=t}}function St(t,n,e,r){var u=t.id;return Mt(t,"function"==typeof e?function(t,i,a){t.__transition__[u].tween.set(n,r(e.call(t,t.__data__,i,a)))}:(e=r(e),function(t){t.__transition__[u].tween.set(n,e)}))}function kt(){for(var t,n=Date.now(),e=zu;e;)(t=n-e.then)>=e.delay&&(e.flush=e.callback(t)),e=e.next;var r=Et()-n;r>24?(isFinite(r)&&(clearTimeout(Tu),Tu=setTimeout(kt,r)),Au=0):(Au=1,Du(kt))}function Et(){for(var t=null,n=zu,e=1/0;n;)n.flush?(delete Cu[n.callback.id],n=t?t.next=n.next:zu=n.next):(e=Math.min(e,n.then+n.delay),n=(t=n).next);return e}function Nt(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();if(0>Lu&&(Or.scrollX||Or.scrollY)){var u=(e=Hr.select(Rr.body).append("svg").style("position","absolute").style("top",0).style("left",0))[0][0].getScreenCTM();Lu=!(u.f||u.e),e.remove()}return Lu?(r.x=n.pageX,r.y=n.pageY):(r.x=n.clientX,r.y=n.clientY),[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop]}function At(){}function Tt(t){var n=t[0],e=t[t.length-1];return e>n?[n,e]:[e,n]}function qt(t){return t.rangeExtent?t.rangeExtent():Tt(t.range())}function Ct(t,n){var e,r=0,u=t.length-1,i=t[r],a=t[u];return i>a&&(e=r,r=u,u=e,e=i,i=a,a=e),(n=n(a-i))&&(t[r]=n.floor(i),t[u]=n.ceil(a)),t}function zt(){return Math}function Dt(t,n,e,r){function u(){var u=Math.min(t.length,n.length)>2?Ot:Rt,c=r?j:H;return a=u(t,n,c,e),o=u(n,t,c,Hr.interpolate),i}function i(t){return a(t)}var a,o;return i.invert=function(t){return o(t)},i.domain=function(n){return arguments.length?(t=n.map(Number),u()):t},i.range=function(t){return arguments.length?(n=t,u()):n},i.rangeRound=function(t){return i.range(t).interpolate(Hr.interpolateRound)},i.clamp=function(t){return arguments.length?(r=t,u()):r},i.interpolate=function(t){return arguments.length?(e=t,u()):e},i.ticks=function(n){return jt(t,n)},i.tickFormat=function(n){return Pt(t,n)},i.nice=function(){return Ct(t,Ft),u()},i.copy=function(){return Dt(t,n,e,r)},u()}function Lt(t,n){return Hr.rebind(t,n,"range","rangeRound","interpolate","clamp")}function Ft(t){return(t=Math.pow(10,Math.round(Math.log(t)/Math.LN10)-1))&&{floor:function(n){return Math.floor(n/t)*t},ceil:function(n){return Math.ceil(n/t)*t}}}function Ht(t,n){var e=Tt(t),r=e[1]-e[0],u=Math.pow(10,Math.floor(Math.log(r/n)/Math.LN10)),i=n/r*u;return.15>=i?u*=10:.35>=i?u*=5:.75>=i&&(u*=2),e[0]=Math.ceil(e[0]/u)*u,e[1]=Math.floor(e[1]/u)*u+.5*u,e[2]=u,e}function jt(t,n){return Hr.range.apply(Hr,Ht(t,n))}function Pt(t,n){return Hr.format(",."+Math.max(0,-Math.floor(Math.log(Ht(t,n)[2])/Math.LN10+.01))+"f")}function Rt(t,n,e,r){var u=e(t[0],t[1]),i=r(n[0],n[1]);return function(t){return i(u(t))}}function Ot(t,n,e,r){var u=[],i=[],a=0,o=Math.min(t.length,n.length)-1;for(t[o]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());o>=++a;)u.push(e(t[a-1],t[a])),i.push(r(n[a-1],n[a]));return function(n){var e=Hr.bisect(t,n,1,o)-1;return i[e](u[e](n))}}function Yt(t,n){function e(e){return t(n(e))}var r=n.pow;return e.invert=function(n){return r(t.invert(n))},e.domain=function(u){return arguments.length?(n=0>u[0]?It:Ut,r=n.pow,t.domain(u.map(n)),e):t.domain().map(r)},e.nice=function(){return t.domain(Ct(t.domain(),zt)),e},e.ticks=function(){var e=Tt(t.domain()),u=[];if(e.every(isFinite)){var i=Math.floor(e[0]),a=Math.ceil(e[1]),o=r(e[0]),c=r(e[1]);if(n===It)for(u.push(r(i));a>i++;)for(var l=9;l>0;l--)u.push(r(i)*l);else{for(;a>i;i++)for(l=1;10>l;l++)u.push(r(i)*l);u.push(r(i))}for(i=0;o>u[i];i++);for(a=u.length;u[a-1]>c;a--);u=u.slice(i,a)}return u},e.tickFormat=function(t,u){if(2>arguments.length&&(u=Fu),!arguments.length)return u;var i,a=Math.max(.1,t/e.ticks().length),o=n===It?(i=-1e-12,Math.floor):(i=1e-12,Math.ceil);return function(t){return a>=t/r(o(n(t)+i))?u(t):""}},e.copy=function(){return Yt(t.copy(),n)},Lt(e,t)}function Ut(t){return Math.log(0>t?0:t)/Math.LN10}function It(t){return-Math.log(t>0?0:-t)/Math.LN10}function Vt(t,n){function e(n){return t(r(n))}var r=Zt(n),u=Zt(1/n);return e.invert=function(n){return u(t.invert(n))},e.domain=function(n){return arguments.length?(t.domain(n.map(r)),e):t.domain().map(u)},e.ticks=function(t){return jt(e.domain(),t)},e.tickFormat=function(t){return Pt(e.domain(),t)},e.nice=function(){return e.domain(Ct(e.domain(),Ft))},e.exponent=function(t){if(!arguments.length)return n;var i=e.domain();return r=Zt(n=t),u=Zt(1/n),e.domain(i)},e.copy=function(){return Vt(t.copy(),n)},Lt(e,t)}function Zt(t){return function(n){return 0>n?-Math.pow(-n,t):Math.pow(n,t)}}function Xt(t,n){function r(n){return a[((i.get(n)||i.set(n,t.push(n)))-1)%a.length]}function u(n,e){return Hr.range(t.length).map(function(t){return n+e*t})}var i,a,o;return r.domain=function(u){if(!arguments.length)return t;t=[],i=new e;for(var a,o=-1,c=u.length;c>++o;)i.has(a=u[o])||i.set(a,t.push(a));return r[n.t].apply(r,n.a)},r.range=function(t){return arguments.length?(a=t,o=0,n={t:"range",a:arguments},r):a},r.rangePoints=function(e,i){2>arguments.length&&(i=0);var c=e[0],l=e[1],f=(l-c)/(Math.max(1,t.length-1)+i);return a=u(2>t.length?(c+l)/2:c+f*i/2,f),o=0,n={t:"rangePoints",a:arguments},r},r.rangeBands=function(e,i,c){2>arguments.length&&(i=0),3>arguments.length&&(c=i);var l=e[1]<e[0],f=e[l-0],s=e[1-l],h=(s-f)/(t.length-i+2*c);return a=u(f+h*c,h),l&&a.reverse(),o=h*(1-i),n={t:"rangeBands",a:arguments},r},r.rangeRoundBands=function(e,i,c){2>arguments.length&&(i=0),3>arguments.length&&(c=i);var l=e[1]<e[0],f=e[l-0],s=e[1-l],h=Math.floor((s-f)/(t.length-i+2*c)),g=s-f-(t.length-i)*h;return a=u(f+Math.round(g/2),h),l&&a.reverse(),o=Math.round(h*(1-i)),n={t:"rangeRoundBands",a:arguments},r},r.rangeBand=function(){return o},r.rangeExtent=function(){return Tt(n.a[0])},r.copy=function(){return Xt(t,n)},r.domain(t)}function Bt(t,n){function e(){var e=0,i=n.length;for(u=[];i>++e;)u[e-1]=Hr.quantile(t,e/i);return r}function r(t){return isNaN(t=+t)?NaN:n[Hr.bisect(u,t)]}var u;return r.domain=function(n){return arguments.length?(t=n.filter(function(t){return!isNaN(t)}).sort(Hr.ascending),e()):t},r.range=function(t){return arguments.length?(n=t,e()):n},r.quantiles=function(){return u},r.copy=function(){return Bt(t,n)},e()}function $t(t,n,e){function r(n){return e[Math.max(0,Math.min(a,Math.floor(i*(n-t))))]}function u(){return i=e.length/(n-t),a=e.length-1,r}var i,a;return r.domain=function(e){return arguments.length?(t=+e[0],n=+e[e.length-1],u()):[t,n]},r.range=function(t){return arguments.length?(e=t,u()):e},r.copy=function(){return $t(t,n,e)},u()}function Jt(t,n){function e(e){return n[Hr.bisect(t,e)]}return e.domain=function(n){return arguments.length?(t=n,e):t},e.range=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return Jt(t,n)},e}function Gt(t){function n(t){return+t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=e.map(n),n):t},n.ticks=function(n){return jt(t,n)},n.tickFormat=function(n){return Pt(t,n)},n.copy=function(){return Gt(t)},n}function Kt(t){return t.innerRadius}function Wt(t){return t.outerRadius}function Qt(t){return t.startAngle}function tn(t){return t.endAngle}function nn(t){function n(n){function u(){f.push("M",o(t(s),l))}for(var c,f=[],s=[],h=-1,g=n.length,p=i(e),d=i(r);g>++h;)a.call(this,c=n[h],h)?s.push([+p.call(this,c,h),+d.call(this,c,h)]):s.length&&(u(),s=[]);return s.length&&u(),f.length?f.join(""):null}var e=en,r=rn,a=u,o=un,c=o.key,l=.7;return n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,n):r},n.defined=function(t){return arguments.length?(a=t,n):a},n.interpolate=function(t){return arguments.length?(c="function"==typeof t?o=t:(o=Uu.get(t)||un).key,n):c},n.tension=function(t){return arguments.length?(l=t,n):l},n}function en(t){return t[0]}function rn(t){return t[1]}function un(t){return t.join("L")}function an(t){for(var n=0,e=t.length,r=t[0],u=[r[0],",",r[1]];e>++n;)u.push("V",(r=t[n])[1],"H",r[0]);return u.join("")}function on(t){for(var n=0,e=t.length,r=t[0],u=[r[0],",",r[1]];e>++n;)u.push("H",(r=t[n])[0],"V",r[1]);return u.join("")}function cn(t,n){if(1>n.length||t.length!=n.length&&t.length!=n.length+2)return un(t);var e=t.length!=n.length,r="",u=t[0],i=t[1],a=n[0],o=a,c=1;if(e&&(r+="Q"+(i[0]-2*a[0]/3)+","+(i[1]-2*a[1]/3)+","+i[0]+","+i[1],u=t[1],c=2),n.length>1){o=n[1],i=t[c],c++,r+="C"+(u[0]+a[0])+","+(u[1]+a[1])+","+(i[0]-o[0])+","+(i[1]-o[1])+","+i[0]+","+i[1];for(var l=2;n.length>l;l++,c++)i=t[c],o=n[l],r+="S"+(i[0]-o[0])+","+(i[1]-o[1])+","+i[0]+","+i[1]}if(e){var f=t[c];r+="Q"+(i[0]+2*o[0]/3)+","+(i[1]+2*o[1]/3)+","+f[0]+","+f[1]}return r}function ln(t,n){for(var e,r=[],u=(1-n)/2,i=t[0],a=t[1],o=1,c=t.length;c>++o;)e=i,i=a,a=t[o],r.push([u*(a[0]-e[0]),u*(a[1]-e[1])]);return r}function fn(t){if(3>t.length)return un(t);var n=1,e=t.length,r=t[0],u=r[0],i=r[1],a=[u,u,u,(r=t[1])[0]],o=[i,i,i,r[1]],c=[u,",",i];for(hn(c,a,o);e>++n;)r=t[n],a.shift(),a.push(r[0]),o.shift(),o.push(r[1]),hn(c,a,o);for(n=-1;2>++n;)a.shift(),a.push(r[0]),o.shift(),o.push(r[1]),hn(c,a,o);return c.join("")}function sn(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function hn(t,n,e){t.push("C",sn(Iu,n),",",sn(Iu,e),",",sn(Vu,n),",",sn(Vu,e),",",sn(Zu,n),",",sn(Zu,e))}function gn(t,n){return(n[1]-t[1])/(n[0]-t[0])}function pn(t){for(var n,e,r,u,i=[],a=function(t){for(var n=0,e=t.length-1,r=[],u=t[0],i=t[1],a=r[0]=gn(u,i);e>++n;)r[n]=(a+(a=gn(u=i,i=t[n+1])))/2;return r[n]=a,r}(t),o=-1,c=t.length-1;c>++o;)n=gn(t[o],t[o+1]),1e-6>Math.abs(n)?a[o]=a[o+1]=0:(u=(e=a[o]/n)*e+(r=a[o+1]/n)*r)>9&&(u=3*n/Math.sqrt(u),a[o]=u*e,a[o+1]=u*r);for(o=-1;c>=++o;)u=(t[Math.min(c,o+1)][0]-t[Math.max(0,o-1)][0])/(6*(1+a[o]*a[o])),i.push([u||0,a[o]*u||0]);return i}function dn(t){for(var n,e,r,u=-1,i=t.length;i>++u;)e=(n=t[u])[0],r=n[1]+Ou,n[0]=e*Math.cos(r),n[1]=e*Math.sin(r);return t}function mn(t){function n(n){function u(){m.push("M",l(t(y),g),h,s(t(v.reverse()),g),"Z")}for(var f,p,d,m=[],v=[],y=[],M=-1,b=n.length,x=i(e),_=i(a),w=e===r?function(){return p}:i(r),S=a===o?function(){return d}:i(o);b>++M;)c.call(this,f=n[M],M)?(v.push([p=+x.call(this,f,M),d=+_.call(this,f,M)]),y.push([+w.call(this,f,M),+S.call(this,f,M)])):v.length&&(u(),v=[],y=[]);return v.length&&u(),m.length?m.join(""):null}var e=en,r=en,a=0,o=rn,c=u,l=un,f=l.key,s=l,h="L",g=.7;return n.x=function(t){return arguments.length?(e=r=t,n):r},n.x0=function(t){return arguments.length?(e=t,n):e},n.x1=function(t){return arguments.length?(r=t,n):r},n.y=function(t){return arguments.length?(a=o=t,n):o},n.y0=function(t){return arguments.length?(a=t,n):a},n.y1=function(t){return arguments.length?(o=t,n):o},n.defined=function(t){return arguments.length?(c=t,n):c},n.interpolate=function(t){return arguments.length?(f="function"==typeof t?l=t:(l=Uu.get(t)||un).key,s=l.reverse||l,h=l.closed?"M":"L",n):f},n.tension=function(t){return arguments.length?(g=t,n):g},n}function vn(t){return t.radius}function yn(t){return[t.x,t.y]}function Mn(t){return function(){var n=t.apply(this,arguments),e=n[0],r=n[1]+Ou;return[e*Math.cos(r),e*Math.sin(r)]}}function bn(){return 64}function xn(){return"circle"}function _n(t){var n=Math.sqrt(t/Lr);return"M0,"+n+"A"+n+","+n+" 0 1,1 0,"+-n+"A"+n+","+n+" 0 1,1 0,"+n+"Z"}function wn(t,n){t.attr("transform",function(t){return"translate("+n(t)+",0)"})}function Sn(t,n){t.attr("transform",function(t){return"translate(0,"+n(t)+")"})}function kn(t){for(var n=t.source,e=t.target,r=function(t,n){if(t===n)return t;for(var e=En(t),r=En(n),u=e.pop(),i=r.pop(),a=null;u===i;)a=u,u=e.pop(),i=r.pop();return a}(n,e),u=[n];n!==r;)n=n.parent,u.push(n);for(var i=u.length;e!==r;)u.splice(i,0,e),e=e.parent;return u}function En(t){for(var n=[],e=t.parent;null!=e;)n.push(t),t=e,e=e.parent;return n.push(t),n}function Nn(t){t.fixed|=2}function An(t){t.fixed&=-7}function Tn(t){t.fixed|=4,t.px=t.x,t.py=t.y}function qn(t){t.fixed&=-5}function Cn(t,n,e){var r=0,u=0;if(t.charge=0,!t.leaf)for(var i,a=t.nodes,o=a.length,c=-1;o>++c;)null!=(i=a[c])&&(Cn(i,n,e),t.charge+=i.charge,r+=i.charge*i.cx,u+=i.charge*i.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var l=n*e[t.point.index];t.charge+=t.pointCharge=l,r+=l*t.point.x,u+=l*t.point.y}t.cx=r/t.charge,t.cy=u/t.charge}function zn(t){return t.x}function Dn(t){return t.y}function Ln(t,n,e){t.y0=n,t.y=e}function Fn(t){return Hr.range(t.length)}function Hn(t){for(var n=-1,e=t[0].length,r=[];e>++n;)r[n]=0;return r}function jn(t){for(var n,e=1,r=0,u=t[0][1],i=t.length;i>e;++e)(n=t[e][1])>u&&(r=e,u=n);return r}function Pn(t){return t.reduce(Rn,0)}function Rn(t,n){return t+n[1]}function On(t,n){return Yn(t,Math.ceil(Math.log(n.length)/Math.LN2+1))}function Yn(t,n){for(var e=-1,r=+t[0],u=(t[1]-r)/n,i=[];n>=++e;)i[e]=u*e+r;return i}function Un(t){return[Hr.min(t),Hr.max(t)]}function In(t,n){return Hr.rebind(t,n,"sort","children","value"),t.nodes=t,t.links=Bn,t}function Vn(t){return t.children}function Zn(t){return t.value}function Xn(t,n){return n.value-t.value}function Bn(t){return Hr.merge(t.map(function(t){return(t.children||[]).map(function(n){return{source:t,target:n}})}))}function $n(t,n){return t.value-n.value}function Jn(t,n){var e=t._pack_next;t._pack_next=n,n._pack_prev=t,n._pack_next=e,e._pack_prev=n}function Gn(t,n){t._pack_next=n,n._pack_prev=t}function Kn(t,n){var e=n.x-t.x,r=n.y-t.y,u=t.r+n.r;return u*u-e*e-r*r>.001}function Wn(t){function n(t){f=Math.min(t.x-t.r,f),s=Math.max(t.x+t.r,s),h=Math.min(t.y-t.r,h),g=Math.max(t.y+t.r,g)}if((e=t.children)&&(l=e.length)){var e,r,u,i,a,o,c,l,f=1/0,s=-1/0,h=1/0,g=-1/0;if(e.forEach(Qn),(r=e[0]).x=-r.r,r.y=0,n(r),l>1&&((u=e[1]).x=u.r,u.y=0,n(u),l>2))for(ee(r,u,i=e[2]),n(i),Jn(r,i),r._pack_prev=i,Jn(i,u),u=r._pack_next,a=3;l>a;a++){ee(r,u,i=e[a]);var p=0,d=1,m=1;for(o=u._pack_next;o!==u;o=o._pack_next,d++)if(Kn(o,i)){p=1;break}if(1==p)for(c=r._pack_prev;c!==o._pack_prev&&!Kn(c,i);c=c._pack_prev,m++);p?(m>d||d==m&&u.r<r.r?Gn(r,u=o):Gn(r=c,u),a--):(Jn(r,i),u=i,n(i))}var v=(f+s)/2,y=(h+g)/2,M=0;for(a=0;l>a;a++)(i=e[a]).x-=v,i.y-=y,M=Math.max(M,i.r+Math.sqrt(i.x*i.x+i.y*i.y));t.r=M,e.forEach(te)}}function Qn(t){t._pack_next=t._pack_prev=t}function te(t){delete t._pack_next,delete t._pack_prev}function ne(t,n,e,r){var u=t.children;if(t.x=n+=r*t.x,t.y=e+=r*t.y,t.r*=r,u)for(var i=-1,a=u.length;a>++i;)ne(u[i],n,e,r)}function ee(t,n,e){var r=t.r+e.r,u=n.x-t.x,i=n.y-t.y;if(r&&(u||i)){var a=n.r+e.r,o=u*u+i*i,c=.5+((r*=r)-(a*=a))/(2*o),l=Math.sqrt(Math.max(0,2*a*(r+o)-(r-=o)*r-a*a))/(2*o);e.x=t.x+c*u+l*i,e.y=t.y+c*i-l*u}else e.x=t.x+r,e.y=t.y}function re(t){var n=t.children;return n&&n.length?re(n[0]):t}function ue(t){var n,e=t.children;return e&&(n=e.length)?ue(e[n-1]):t}function ie(t,n){return t.parent==n.parent?1:2}function ae(t){var n=t.children;return n&&n.length?n[0]:t._tree.thread}function oe(t){var n,e=t.children;return e&&(n=e.length)?e[n-1]:t._tree.thread}function ce(t,n){var e=t.children;if(e&&(u=e.length))for(var r,u,i=-1;u>++i;)n(r=ce(e[i],n),t)>0&&(t=r);return t}function le(t,n){return t.x-n.x}function fe(t,n){return n.x-t.x}function se(t,n){return t.depth-n.depth}function he(t,n){!function e(t,r){var u=t.children;if(u&&(a=u.length))for(var i,a,o=null,c=-1;a>++c;)e(i=u[c],o),o=i;n(t,r)}(t,null)}function ge(t,n,e){t=t._tree;var r=e/((n=n._tree).number-t.number);t.change+=r,n.change-=r,n.shift+=e,n.prelim+=e,n.mod+=e}function pe(t,n,e){return t._tree.ancestor.parent==n.parent?t._tree.ancestor:e}function de(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function me(t,n){var e=t.x+n[3],r=t.y+n[0],u=t.dx-n[1]-n[3],i=t.dy-n[0]-n[2];return 0>u&&(e+=u/2,u=0),0>i&&(r+=i/2,i=0),{x:e,y:r,dx:u,dy:i}}function ve(t,n){function e(t,e){return Hr.xhr(t,n,e).response(r)}function r(t){return e.parse(t.responseText)}function u(n){return n.map(i).join(t)}function i(t){return a.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var a=RegExp('["'+t+"\n]"),o=t.charCodeAt(0);return e.parse=function(t){var n;return e.parseRows(t,function(t){return n?n(t):void(n=Function("d","return {"+t.map(function(t,n){return JSON.stringify(t)+": d["+n+"]"}).join(",")+"}"))})},e.parseRows=function(t,n){function e(){if(f>=l)return a;if(u)return u=!1,i;var n=f;if(34===t.charCodeAt(n)){for(var e=n;l>e++;)if(34===t.charCodeAt(e)){if(34!==t.charCodeAt(e+1))break;++e}return f=e+2,13===(r=t.charCodeAt(e+1))?(u=!0,10===t.charCodeAt(e+2)&&++f):10===r&&(u=!0),t.substring(n+1,e).replace(/""/g,'"')}for(;l>f;){var r,c=1;if(10===(r=t.charCodeAt(f++)))u=!0;else if(13===r)u=!0,10===t.charCodeAt(f)&&(++f,++c);else if(r!==o)continue;return t.substring(n,f-c)}return t.substring(n)}for(var r,u,i={},a={},c=[],l=t.length,f=0,s=0;(r=e())!==a;){for(var h=[];r!==i&&r!==a;)h.push(r),r=e();(!n||(h=n(h,s++)))&&c.push(h)}return c},e.format=function(t){return t.map(u).join("\n")},e}function ye(t,n){ci.hasOwnProperty(t.type)&&ci[t.type](t,n)}function Me(t,n,e){var r,u=-1,i=t.length-e;for(n.lineStart();i>++u;)r=t[u],n.point(r[0],r[1]);n.lineEnd()}function be(t,n){var e=-1,r=t.length;for(n.polygonStart();r>++e;)Me(t[e],n,1);n.polygonEnd()}function xe(t){return[Math.atan2(t[1],t[0]),Math.asin(Math.max(-1,Math.min(1,t[2])))]}function _e(t,n){return Fr>Math.abs(t[0]-n[0])&&Fr>Math.abs(t[1]-n[1])}function we(t){var n=t[0],e=t[1],r=Math.cos(e);return[r*Math.cos(n),r*Math.sin(n),Math.sin(e)]}function Se(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function ke(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function Ee(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function Ne(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Ae(t){function n(n){function r(e,r){e=t(e,r),n.point(e[0],e[1])}function i(){f=NaN,d.point=a,n.lineStart()}function a(r,i){var a=we([r,i]),o=t(r,i);e(f,s,l,h,g,p,f=o[0],s=o[1],l=r,h=a[0],g=a[1],p=a[2],u,n),n.point(f,s)}function o(){d.point=r,n.lineEnd()}function c(){var t,r,c,m,v,y;i(),d.point=function(n,e){a(t=n,e),r=f,c=s,m=h,v=g,y=p,d.point=a},d.lineEnd=function(){e(f,s,l,h,g,p,r,c,t,m,v,y,u,n),d.lineEnd=o,o()}}var l,f,s,h,g,p,d={point:r,lineStart:i,lineEnd:o,polygonStart:function(){n.polygonStart(),d.lineStart=c},polygonEnd:function(){n.polygonEnd(),d.lineStart=i}};return d}function e(n,u,i,a,o,c,l,f,s,h,g,p,d,m){var v=l-n,y=f-u,M=v*v+y*y;if(M>4*r&&d--){var b=a+h,x=o+g,_=c+p,w=Math.sqrt(b*b+x*x+_*_),S=Math.asin(_/=w),k=Fr>Math.abs(Math.abs(_)-1)?(i+s)/2:Math.atan2(x,b),E=t(k,S),N=E[0],A=E[1],T=N-n,q=A-u,C=y*T-v*q;(C*C/M>r||Math.abs((v*T+y*q)/M-.5)>.3)&&(e(n,u,i,a,o,c,N,A,k,b/=w,x/=w,_,d,m),m.point(N,A),e(N,A,k,b,x,_,l,f,s,h,g,p,d,m))}}var r=.5,u=16;return n.precision=function(t){return arguments.length?(u=(r=t*t)>0&&16,n):Math.sqrt(r)},n}function Te(t,n){function e(t,n){var e=Math.sqrt(i-2*u*Math.sin(n))/u;return[e*Math.sin(t*=u),a-e*Math.cos(t)]}var r=Math.sin(t),u=(r+Math.sin(n))/2,i=1+r*(2*u-r),a=Math.sqrt(i)/u;return e.invert=function(t,n){var e=a-n;return[Math.atan2(t,e)/u,Math.asin((i-(t*t+e*e)*u*u)/(2*u))]},e}function qe(t){function n(t,n){r>t&&(r=t),t>i&&(i=t),u>n&&(u=n),n>a&&(a=n)}function e(){o.point=o.lineEnd=At}var r,u,i,a,o={point:n,lineStart:At,lineEnd:At,polygonStart:function(){o.lineEnd=e},polygonEnd:function(){o.point=n}};return function(n){return a=i=-(r=u=1/0),Hr.geo.stream(n,t(o)),[[r,u],[i,a]]}}function Ce(t,n){if(!si){++hi,t*=jr;var e=Math.cos(n*=jr);gi+=(e*Math.cos(t)-gi)/hi,pi+=(e*Math.sin(t)-pi)/hi,di+=(Math.sin(n)-di)/hi}}function ze(){var t,n;si=1,De(),si=2;var e=mi.point;mi.point=function(r,u){e(t=r,n=u)},mi.lineEnd=function(){mi.point(t,n),Le(),mi.lineEnd=Le}}function De(){function t(t,u){t*=jr;var i=Math.cos(u*=jr),a=i*Math.cos(t),o=i*Math.sin(t),c=Math.sin(u),l=Math.atan2(Math.sqrt((l=e*c-r*o)*l+(l=r*a-n*c)*l+(l=n*o-e*a)*l),n*a+e*o+r*c);hi+=l,gi+=l*(n+(n=a)),pi+=l*(e+(e=o)),di+=l*(r+(r=c))}var n,e,r;si>1||(1>si&&(si=1,hi=gi=pi=di=0),mi.point=function(u,i){u*=jr;var a=Math.cos(i*=jr);n=a*Math.cos(u),e=a*Math.sin(u),r=Math.sin(i),mi.point=t})}function Le(){mi.point=Ce}function Fe(t,n){var e=Math.cos(t),r=Math.sin(t);return function(u,i,a,o){null!=u?(u=He(e,u),i=He(e,i),(a>0?i>u:u>i)&&(u+=2*a*Lr)):(u=t+2*a*Lr,i=t);for(var c,l=a*n,f=u;a>0?f>i:i>f;f-=l)o.point((c=xe([e,-r*Math.cos(f),-r*Math.sin(f)]))[0],c[1])}}function He(t,n){var e=we(n);e[0]-=t,function(t){var n=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}(e);var r=Math.acos(Math.max(-1,Math.min(1,-e[1])));return((0>-e[2]?-r:r)+2*Math.PI-Fr)%(2*Math.PI)}function je(t,n,e){return function(r){function u(n,e){t(n,e)&&r.point(n,e)}function i(t,n){m.point(t,n)}function a(){v.point=i,m.lineStart()}function o(){v.point=u,m.lineEnd()}function c(t,n){M.point(t,n),d.push([t,n])}function l(){M.lineStart(),d=[]}function f(){c(d[0][0],d[0][1]),M.lineEnd();var t,n=M.clean(),e=y.buffer();if(!(i=e.length))return p=!0,g+=Ye(d,-1),void(d=null);if(d=null,1&n){t=e[0],h+=Ye(t,1);var u,i=t.length-1,a=-1;for(r.lineStart();i>++a;)r.point((u=t[a])[0],u[1]);r.lineEnd()}else i>1&&2&n&&e.push(e.pop().concat(e.shift())),s.push(e.filter(Oe))}var s,h,g,p,d,m=n(r),v={point:u,lineStart:a,lineEnd:o,polygonStart:function(){v.point=c,v.lineStart=l,v.lineEnd=f,p=!1,g=h=0,s=[],r.polygonStart()},polygonEnd:function(){v.point=u,v.lineStart=a,v.lineEnd=o,(s=Hr.merge(s)).length?function(t,n,e){var r=[],u=[];if(t.forEach(function(t){if(!(1>=(n=t.length))){var n,i=t[0],a=t[n-1];if(_e(i,a)){e.lineStart();for(var o=0;n>o;++o)e.point((i=t[o])[0],i[1]);return void e.lineEnd()}var c={point:i,points:t,other:null,visited:!1,entry:!0,subject:!0},l={point:i,points:[i],other:c,visited:!1,entry:!1,subject:!1};c.other=l,r.push(c),u.push(l),l={point:a,points:[a],other:c={point:a,points:[a],other:null,visited:!1,entry:!1,subject:!0},visited:!1,entry:!0,subject:!1},c.other=l,r.push(c),u.push(l)}}),u.sort(Re),Pe(r),Pe(u),r.length)for(var i,a,o,c=r[0];;){for(i=c;i.visited;)if((i=i.next)===c)return;a=i.points,e.lineStart();do{if(i.visited=i.other.visited=!0,i.entry){if(i.subject)for(var l=0;a.length>l;l++)e.point((o=a[l])[0],o[1]);else n(i.point,i.next.point,1,e);i=i.next}else{if(i.subject)for(l=(a=i.prev.points).length;--l>=0;)e.point((o=a[l])[0],o[1]);else n(i.point,i.prev.point,-1,e);i=i.prev}a=(i=i.other).points}while(!i.visited);e.lineEnd()}}(s,e,r):(-Fr>h||p&&-Fr>g)&&(r.lineStart(),e(null,null,1,r),r.lineEnd()),r.polygonEnd(),s=null},sphere:function(){r.polygonStart(),r.lineStart(),e(null,null,1,r),r.lineEnd(),r.polygonEnd()}},y=function(){var t,n=[];return{lineStart:function(){n.push(t=[])},point:function(n,e){t.push([n,e])},lineEnd:At,buffer:function(){var e=n;return n=[],t=null,e}}}(),M=n(y);return v}}function Pe(t){if(n=t.length){for(var n,e,r=0,u=t[0];n>++r;)u.next=e=t[r],e.prev=u,u=e;u.next=e=t[0],e.prev=u}}function Re(t,n){return(0>(t=t.point)[0]?t[1]-Lr/2-Fr:Lr/2-t[1])-(0>(n=n.point)[0]?n[1]-Lr/2-Fr:Lr/2-n[1])}function Oe(t){return t.length>1}function Ye(t,n){if(!(e=t.length))return 0;for(var e,r,u,i=0,a=0,o=t[0],c=o[0],l=o[1],f=Math.cos(l),s=Math.atan2(n*Math.sin(c)*f,Math.sin(l)),h=1-n*Math.cos(c)*f,g=s;e>++i;)o=t[i],f=Math.cos(l=o[1]),r=Math.atan2(n*Math.sin(c=o[0])*f,Math.sin(l)),u=1-n*Math.cos(c)*f,Fr>Math.abs(h-2)&&Fr>Math.abs(u-2)||(Fr>Math.abs(u)||Fr>Math.abs(h)||(Fr>Math.abs(Math.abs(r-s)-Lr)?u+h>2&&(a+=4*(r-s)):a+=Fr>Math.abs(h-2)?4*(r-g):((3*Lr+r-s)%(2*Lr)-Lr)*(h+u)),g=s,s=r,h=u);return a}function Ue(t){function n(t,n){return Math.cos(t)*Math.cos(n)>u}function e(t,n){var e=[1,0,0],r=ke(we(t),we(n)),i=Se(r,r),a=r[0],o=i-a*a;if(!o)return t;var c=u*i/o,l=-u*a/o,f=ke(e,r),s=Ne(e,c);Ee(s,Ne(r,l));var h=f,g=Se(s,h),p=Se(h,h),d=Ne(h,(-g-Math.sqrt(g*g-p*(Se(s,s)-1)))/p);return Ee(d,s),xe(d)}var r=t*jr,u=Math.cos(r);return je(n,function(t){var r,u,i,a;return{lineStart:function(){i=u=!1,a=1},point:function(o,c){var l,f=[o,c],s=n(o,c);!r&&(i=u=s)&&t.lineStart(),s!==u&&(l=e(r,f),(_e(r,l)||_e(f,l))&&(f[0]+=Fr,f[1]+=Fr,s=n(f[0],f[1]))),s!==u&&(a=0,(u=s)?(t.lineStart(),l=e(f,r),t.point(l[0],l[1])):(l=e(r,f),t.point(l[0],l[1]),
t.lineEnd()),r=l),!s||r&&_e(r,f)||t.point(f[0],f[1]),r=f},lineEnd:function(){u&&t.lineEnd(),r=null},clean:function(){return a|(i&&u)<<1}}},Fe(r,6*jr))}function Ie(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return(e=n.invert(e,r))&&t.invert(e[0],e[1])}),e}function Ve(t,n){return[t,n]}function Ze(t,n,e){var r=Hr.range(t,n-Fr,e).concat(n);return function(t){return r.map(function(n){return[t,n]})}}function Xe(t,n,e){var r=Hr.range(t,n-Fr,e).concat(n);return function(t){return r.map(function(n){return[n,t]})}}function Be(t){return(t=Math.sin(t/2))*t}function $e(t,n){return[t/(2*Lr),Math.max(-.5,Math.min(.5,Math.log(Math.tan(Lr/4+n/2))/(2*Lr)))]}function Je(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Ge(t){var n=Ae(function(n,e){return t([n*Pr,e*Pr])});return function(t){return t=n(t),{point:function(n,e){t.point(n*jr,e*jr)},sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}}function Ke(){function t(t,n){a.push("M",t,",",n,i)}function n(t,n){a.push("M",t,",",n),o.point=e}function e(t,n){a.push("L",t,",",n)}function r(){o.point=t}function u(){a.push("Z")}var i=Je(4.5),a=[],o={point:t,lineStart:function(){o.point=n},lineEnd:r,polygonStart:function(){o.lineEnd=u},polygonEnd:function(){o.lineEnd=r,o.point=t},pointRadius:function(t){return i=Je(t),o},result:function(){if(a.length){var t=a.join("");return a=[],t}}};return o}function We(t){function n(n,e){t.moveTo(n,e),t.arc(n,e,a,0,2*Lr)}function e(n,e){t.moveTo(n,e),o.point=r}function r(n,e){t.lineTo(n,e)}function u(){o.point=n}function i(){t.closePath()}var a=4.5,o={point:n,lineStart:function(){o.point=e},lineEnd:u,polygonStart:function(){o.lineEnd=i},polygonEnd:function(){o.lineEnd=u,o.point=n},pointRadius:function(t){return a=t,o},result:At};return o}function Qe(){function t(t,n){xi+=u*t-r*n,r=t,u=n}var n,e,r,u;_i.point=function(i,a){_i.point=t,n=r=i,e=u=a},_i.lineEnd=function(){t(n,e)}}function tr(t,n){si||(gi+=t,pi+=n,++di)}function nr(){function t(t,r){var u=t-n,i=r-e,a=Math.sqrt(u*u+i*i);gi+=a*(n+t)/2,pi+=a*(e+r)/2,di+=a,n=t,e=r}var n,e;if(1!==si){if(!(1>si))return;si=1,gi=pi=di=0}wi.point=function(r,u){wi.point=t,n=r,e=u}}function er(){wi.point=tr}function rr(){function t(t,n){var e=u*t-r*n;gi+=e*(r+t),pi+=e*(u+n),di+=3*e,r=t,u=n}var n,e,r,u;2>si&&(si=2,gi=pi=di=0),wi.point=function(i,a){wi.point=t,n=r=i,e=u=a},wi.lineEnd=function(){t(n,e)}}function ur(){function t(t,n){n=n*jr/2+Lr/4;var e=(t*=jr)-r,a=Math.cos(n),o=Math.sin(n),c=i*o,l=ki,f=Ei,s=u*a+c*Math.cos(e),h=c*Math.sin(e);ki=l*s-f*h,Ei=f*s+l*h,r=t,u=a,i=o}var n,e,r,u,i;Ni.point=function(a,o){Ni.point=t,r=(n=a)*jr,u=Math.cos(o=(e=o)*jr/2+Lr/4),i=Math.sin(o)},Ni.lineEnd=function(){t(n,e)}}function ir(t){return ar(function(){return t})()}function ar(t){function n(t){return[(t=a(t[0]*jr,t[1]*jr))[0]*f+o,c-t[1]*f]}function e(t){return(t=a.invert((t[0]-o)/f,(c-t[1])/f))&&[t[0]*Pr,t[1]*Pr]}function r(){a=Ie(i=or(d,m,v),u);var t=u(g,p);return o=s-t[0]*f,c=h+t[1]*f,n}var u,i,a,o,c,l=Ae(function(t,n){return[(t=u(t,n))[0]*f+o,c-t[1]*f]}),f=150,s=480,h=250,g=0,p=0,d=0,m=0,v=0,y=vi,M=null;return n.stream=function(t){return function(t,n){return{point:function(e,r){e=(r=t(e*jr,r*jr))[0],n.point(e>Lr?e-2*Lr:-Lr>e?e+2*Lr:e,r[1])},sphere:function(){n.sphere()},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}}}(i,y(l(t)))},n.clipAngle=function(t){return arguments.length?(y=null==t?(M=t,vi):Ue(M=+t),n):M},n.scale=function(t){return arguments.length?(f=+t,r()):f},n.translate=function(t){return arguments.length?(s=+t[0],h=+t[1],r()):[s,h]},n.center=function(t){return arguments.length?(g=t[0]%360*jr,p=t[1]%360*jr,r()):[g*Pr,p*Pr]},n.rotate=function(t){return arguments.length?(d=t[0]%360*jr,m=t[1]%360*jr,v=t.length>2?t[2]%360*jr:0,r()):[d*Pr,m*Pr,v*Pr]},Hr.rebind(n,l,"precision"),function(){return u=t.apply(this,arguments),n.invert=u.invert&&e,r()}}function or(t,n,e){return t?n||e?Ie(lr(t),fr(n,e)):lr(t):n||e?fr(n,e):Ve}function cr(t){return function(n,e){return[(n+=t)>Lr?n-2*Lr:-Lr>n?n+2*Lr:n,e]}}function lr(t){var n=cr(t);return n.invert=cr(-t),n}function fr(t,n){function e(t,n){var e=Math.cos(n),o=Math.cos(t)*e,c=Math.sin(t)*e,l=Math.sin(n),f=l*r+o*u;return[Math.atan2(c*i-f*a,o*r-l*u),Math.asin(Math.max(-1,Math.min(1,f*i+c*a)))]}var r=Math.cos(t),u=Math.sin(t),i=Math.cos(n),a=Math.sin(n);return e.invert=function(t,n){var e=Math.cos(n),o=Math.cos(t)*e,c=Math.sin(t)*e,l=Math.sin(n),f=l*i-c*a;return[Math.atan2(c*i+l*a,o*r+f*u),Math.asin(Math.max(-1,Math.min(1,f*r-o*u)))]},e}function sr(t,n){function e(n,e){var r=Math.cos(n),u=Math.cos(e),i=t(r*u);return[i*u*Math.sin(n),i*Math.sin(e)]}return e.invert=function(t,e){var r=Math.sqrt(t*t+e*e),u=n(r),i=Math.sin(u),a=Math.cos(u);return[Math.atan2(t*i,r*a),Math.asin(r&&e*i/r)]},e}function hr(t,n,e,r){var u,i,a,o,c,l;return i=(u=r[t])[0],a=u[1],o=(u=r[n])[0],c=u[1],l=(u=r[e])[0],(u[1]-a)*(o-i)-(c-a)*(l-i)>0}function gr(t,n,e){return(e[0]-n[0])*(t[1]-n[1])<(e[1]-n[1])*(t[0]-n[0])}function pr(t,n,e,r){var u=t[0],i=e[0],a=n[0]-u,o=r[0]-i,c=t[1],l=e[1],f=n[1]-c,s=r[1]-l,h=(o*(c-l)-s*(u-i))/(s*a-o*f);return[u+h*a,c+h*f]}function dr(t,n){var e={list:t.map(function(t,n){return{index:n,x:t[0],y:t[1]}}).sort(function(t,n){return t.y<n.y?-1:t.y>n.y?1:t.x<n.x?-1:t.x>n.x?1:0}),bottomSite:null},r={list:[],leftEnd:null,rightEnd:null,init:function(){r.leftEnd=r.createHalfEdge(null,"l"),r.rightEnd=r.createHalfEdge(null,"l"),r.leftEnd.r=r.rightEnd,r.rightEnd.l=r.leftEnd,r.list.unshift(r.leftEnd,r.rightEnd)},createHalfEdge:function(t,n){return{edge:t,side:n,vertex:null,l:null,r:null}},insert:function(t,n){n.l=t,n.r=t.r,t.r.l=n,t.r=n},leftBound:function(t){var n=r.leftEnd;do n=n.r;while(n!=r.rightEnd&&u.rightOf(n,t));return n.l},del:function(t){t.l.r=t.r,t.r.l=t.l,t.edge=null},right:function(t){return t.r},left:function(t){return t.l},leftRegion:function(t){return null==t.edge?e.bottomSite:t.edge.region[t.side]},rightRegion:function(t){return null==t.edge?e.bottomSite:t.edge.region[Ti[t.side]]}},u={bisect:function(t,n){var e={region:{l:t,r:n},ep:{l:null,r:null}},r=n.x-t.x,u=n.y-t.y,i=r>0?r:-r,a=u>0?u:-u;return e.c=t.x*r+t.y*u+.5*(r*r+u*u),i>a?(e.a=1,e.b=u/r,e.c/=r):(e.b=1,e.a=r/u,e.c/=u),e},intersect:function(t,n){var e=t.edge,r=n.edge;if(!e||!r||e.region.r==r.region.r)return null;var u=e.a*r.b-e.b*r.a;if(1e-10>Math.abs(u))return null;var i,a,o=(e.c*r.b-r.c*e.b)/u,c=(r.c*e.a-e.c*r.a)/u,l=e.region.r,f=r.region.r;l.y<f.y||l.y==f.y&&l.x<f.x?(i=t,a=e):(i=n,a=r);var s=o>=a.region.r.x;return s&&"l"===i.side||!s&&"r"===i.side?null:{x:o,y:c}},rightOf:function(t,n){var e=t.edge,r=e.region.r,u=n.x>r.x;if(u&&"l"===t.side)return 1;if(!u&&"r"===t.side)return 0;if(1===e.a){var i=n.y-r.y,a=n.x-r.x,o=0,c=0;if(!u&&0>e.b||u&&e.b>=0?c=o=i>=e.b*a:(c=n.x+n.y*e.b>e.c,0>e.b&&(c=!c),c||(o=1)),!o){var l=r.x-e.region.l.x;c=e.b*(a*a-i*i)<l*i*(1+2*a/l+e.b*e.b),0>e.b&&(c=!c)}}else{var f=e.c-e.a*n.x,s=n.y-f,h=n.x-r.x,g=f-r.y;c=s*s>h*h+g*g}return"l"===t.side?c:!c},endPoint:function(t,e,r){t.ep[e]=r,t.ep[Ti[e]]&&n(t)},distance:function(t,n){var e=t.x-n.x,r=t.y-n.y;return Math.sqrt(e*e+r*r)}},i={list:[],insert:function(t,n,e){t.vertex=n,t.ystar=n.y+e;for(var r=0,u=i.list,a=u.length;a>r;r++){var o=u[r];if(!(t.ystar>o.ystar||t.ystar==o.ystar&&n.x>o.vertex.x))break}u.splice(r,0,t)},del:function(t){for(var n=0,e=i.list,r=e.length;r>n&&e[n]!=t;++n);e.splice(n,1)},empty:function(){return 0===i.list.length},nextEvent:function(t){for(var n=0,e=i.list,r=e.length;r>n;++n)if(e[n]==t)return e[n+1];return null},min:function(){var t=i.list[0];return{x:t.vertex.x,y:t.ystar}},extractMin:function(){return i.list.shift()}};r.init(),e.bottomSite=e.list.shift();for(var a,o,c,l,f,s,h,g,p,d,m,v,y,M=e.list.shift();;)if(i.empty()||(a=i.min()),M&&(i.empty()||M.y<a.y||M.y==a.y&&M.x<a.x))o=r.leftBound(M),c=r.right(o),h=r.rightRegion(o),v=u.bisect(h,M),s=r.createHalfEdge(v,"l"),r.insert(o,s),(d=u.intersect(o,s))&&(i.del(o),i.insert(o,d,u.distance(d,M))),o=s,s=r.createHalfEdge(v,"r"),r.insert(o,s),(d=u.intersect(s,c))&&i.insert(s,d,u.distance(d,M)),M=e.list.shift();else{if(i.empty())break;o=i.extractMin(),l=r.left(o),c=r.right(o),f=r.right(c),h=r.leftRegion(o),g=r.rightRegion(c),m=o.vertex,u.endPoint(o.edge,o.side,m),u.endPoint(c.edge,c.side,m),r.del(o),i.del(c),r.del(c),y="l",h.y>g.y&&(p=h,h=g,g=p,y="r"),v=u.bisect(h,g),s=r.createHalfEdge(v,y),r.insert(l,s),u.endPoint(v,Ti[y],m),(d=u.intersect(l,s))&&(i.del(l),i.insert(l,d,u.distance(d,h))),(d=u.intersect(s,f))&&i.insert(s,d,u.distance(d,h))}for(o=r.right(r.leftEnd);o!=r.rightEnd;o=r.right(o))n(o.edge)}function mr(t,n,e,r,u,i){if(!t(n,e,r,u,i)){var a=.5*(e+u),o=.5*(r+i),c=n.nodes;c[0]&&mr(t,c[0],e,r,a,o),c[1]&&mr(t,c[1],a,r,u,o),c[2]&&mr(t,c[2],e,o,a,i),c[3]&&mr(t,c[3],a,o,u,i)}}function vr(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function yr(t,n,e,r){for(var u,i,a=0,o=n.length,c=e.length;o>a;){if(r>=c)return-1;if(37===(u=n.charCodeAt(a++))){if(!(i=Vi[n.charAt(a++)])||0>(r=i(t,e,r)))return-1}else if(u!=e.charCodeAt(r++))return-1}return r}function Mr(t){return RegExp("^(?:"+t.map(Hr.requote).join("|")+")","i")}function br(t){for(var n=new e,r=-1,u=t.length;u>++r;)n.set(t[r].toLowerCase(),r);return n}function xr(t,n,e){var r=(t+="").length;return e>r?Array(e-r+1).join(n)+t:t}function _r(t,n,e){Zi.lastIndex=0;var r=Zi.exec(n.substring(e,e+2));return r?(t.d=+r[0],e+=r[0].length):-1}function wr(t,n,e){Zi.lastIndex=0;var r=Zi.exec(n.substring(e,e+2));return r?(t.H=+r[0],e+=r[0].length):-1}function Sr(t){return t.toISOString()}function kr(t,n,e){function r(n){var e=t(n),r=i(e,1);return r-n>n-e?e:r}function u(e){return n(e=t(new qi(e-1)),1),e}function i(t,e){return n(t=new qi(+t),e),t}function a(t,r,i){var a=u(t),o=[];if(i>1)for(;r>a;)e(a)%i||o.push(new Date(+a)),n(a,1);else for(;r>a;)o.push(new Date(+a)),n(a,1);return o}t.floor=t,t.round=r,t.ceil=u,t.offset=i,t.range=a;var o=t.utc=Er(t);return o.floor=o,o.round=Er(r),o.ceil=Er(u),o.offset=Er(i),o.range=function(t,n,e){try{qi=vr;var r=new vr;return r._=t,a(r,n,e)}finally{qi=Date}},t}function Er(t){return function(n,e){try{qi=vr;var r=new vr;return r._=n,t(r,e)._}finally{qi=Date}}}function Nr(t,n,e){function r(n){return t(n)}return r.invert=function(n){return Ar(t.invert(n))},r.domain=function(n){return arguments.length?(t.domain(n),r):t.domain().map(Ar)},r.nice=function(t){return r.domain(Ct(r.domain(),function(){return t}))},r.ticks=function(e,u){var i=function(t){var n=t[0],e=t[t.length-1];return e>n?[n,e]:[e,n]}(r.domain());if("function"!=typeof e){var a=(i[1]-i[0])/e,o=Hr.bisect($i,a);if(o==$i.length)return n.year(i,e);if(!o)return t.ticks(e).map(Ar);Math.log(a/$i[o-1])<Math.log($i[o]/a)&&--o,u=(e=n[o])[1],e=e[0].range}return e(i[0],new Date(+i[1]+1),u)},r.tickFormat=function(){return e},r.copy=function(){return Nr(t.copy(),n,e)},Hr.rebind(r,t,"range","rangeRound","interpolate","clamp")}function Ar(t){return new Date(t)}function Tr(t){return function(n){for(var e=t.length-1,r=t[e];!r[1](n);)r=t[--e];return r[0](n)}}function qr(t){var n=new Date(t,0,1);return n.setFullYear(t),n}function Cr(t){var n=t.getFullYear(),e=qr(n);return n+(t-e)/(qr(n+1)-e)}function zr(t){var n=new Date(Date.UTC(t,0,1));return n.setUTCFullYear(t),n}function Dr(t){var n=t.getUTCFullYear(),e=zr(n);return n+(t-e)/(zr(n+1)-e)}var Lr=Math.PI,Fr=1e-6,Hr={version:"3.0.8"},jr=Lr/180,Pr=180/Lr,Rr=document,Or=window,Yr=[3,3];Date.now||(Date.now=function(){return+new Date});try{Rr.createElement("div").style.setProperty("opacity",0,"")}catch(t){var Ur=Or.CSSStyleDeclaration.prototype,Ir=Ur.setProperty;Ur.setProperty=function(t,n,e){Ir.call(this,t,n+"",e)}}var Vr=function(t){return Array.prototype.slice.call(t)};try{Vr(Rr.documentElement.childNodes)[0].nodeType}catch(t){Vr=function(t){for(var n=-1,e=t.length,r=[];e>++n;)r.push(t[n]);return r}}var Zr=[].__proto__?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)t[e]=n[e]};Hr.map=function(t){var n=new e;for(var r in t)n.set(r,t[r]);return n},function(t,n){try{for(var e in n)Object.defineProperty(t.prototype,e,{value:n[e],enumerable:!1})}catch(e){t.prototype=n}}(e,{has:function(t){return Xr+t in this},get:function(t){return this[Xr+t]},set:function(t,n){return this[Xr+t]=n},remove:function(t){return(t=Xr+t)in this&&delete this[t]},keys:function(){var t=[];return this.forEach(function(n){t.push(n)}),t},values:function(){var t=[];return this.forEach(function(n,e){t.push(e)}),t},entries:function(){var t=[];return this.forEach(function(n,e){t.push({key:n,value:e})}),t},forEach:function(t){for(var n in this)n.charCodeAt(0)===Br&&t.call(this,n.substring(1),this[n])}});var Xr="\x00",Br=Xr.charCodeAt(0);Hr.functor=i,Hr.rebind=function(t,n){for(var e,r=1,u=arguments.length;u>++r;)t[e=arguments[r]]=a(t,n,n[e]);return t},Hr.ascending=function(t,n){return n>t?-1:t>n?1:t>=n?0:NaN},Hr.descending=function(t,n){return t>n?-1:n>t?1:n>=t?0:NaN},Hr.mean=function(t,n){var e,r=t.length,u=0,i=-1,a=0;if(1===arguments.length)for(;r>++i;)o(e=t[i])&&(u+=(e-u)/++a);else for(;r>++i;)o(e=n.call(t,t[i],i))&&(u+=(e-u)/++a);return a?u:void 0},Hr.median=function(t,n){return arguments.length>1&&(t=t.map(n)),(t=t.filter(o)).length?Hr.quantile(t.sort(Hr.ascending),.5):void 0},Hr.min=function(t,n){var e,r,u=-1,i=t.length;if(1===arguments.length){for(;i>++u&&(null==(e=t[u])||e!=e);)e=void 0;for(;i>++u;)null!=(r=t[u])&&e>r&&(e=r)}else{for(;i>++u&&(null==(e=n.call(t,t[u],u))||e!=e);)e=void 0;for(;i>++u;)null!=(r=n.call(t,t[u],u))&&e>r&&(e=r)}return e},Hr.max=function(t,n){var e,r,u=-1,i=t.length;if(1===arguments.length){for(;i>++u&&(null==(e=t[u])||e!=e);)e=void 0;for(;i>++u;)null!=(r=t[u])&&r>e&&(e=r)}else{for(;i>++u&&(null==(e=n.call(t,t[u],u))||e!=e);)e=void 0;for(;i>++u;)null!=(r=n.call(t,t[u],u))&&r>e&&(e=r)}return e},Hr.extent=function(t,n){var e,r,u,i=-1,a=t.length;if(1===arguments.length){for(;a>++i&&(null==(e=u=t[i])||e!=e);)e=u=void 0;for(;a>++i;)null!=(r=t[i])&&(e>r&&(e=r),r>u&&(u=r))}else{for(;a>++i&&(null==(e=u=n.call(t,t[i],i))||e!=e);)e=void 0;for(;a>++i;)null!=(r=n.call(t,t[i],i))&&(e>r&&(e=r),r>u&&(u=r))}return[e,u]},Hr.random={normal:function(t,n){var e=arguments.length;return 2>e&&(n=1),1>e&&(t=0),function(){var e,r,u;do u=(e=2*Math.random()-1)*e+(r=2*Math.random()-1)*r;while(!u||u>1);return t+n*e*Math.sqrt(-2*Math.log(u)/u)}},logNormal:function(){var t=Hr.random.normal.apply(Hr,arguments);return function(){return Math.exp(t())}},irwinHall:function(t){return function(){for(var n=0,e=0;t>e;e++)n+=Math.random();return n/t}}},Hr.sum=function(t,n){var e,r=0,u=t.length,i=-1;if(1===arguments.length)for(;u>++i;)isNaN(e=+t[i])||(r+=e);else for(;u>++i;)isNaN(e=+n.call(t,t[i],i))||(r+=e);return r},Hr.quantile=function(t,n){var e=(t.length-1)*n+1,r=Math.floor(e),u=+t[r-1],i=e-r;return i?u+i*(t[r]-u):u},Hr.shuffle=function(t){for(var n,e,r=t.length;r;)e=0|Math.random()*r--,n=t[r],t[r]=t[e],t[e]=n;return t},Hr.transpose=function(t){return Hr.zip.apply(Hr,t)},Hr.zip=function(){if(!(r=arguments.length))return[];for(var t=-1,n=Hr.min(arguments,c),e=Array(n);n>++t;)for(var r,u=-1,i=e[t]=Array(r);r>++u;)i[u]=arguments[u][t];return e},Hr.bisector=function(t){return{left:function(n,e,r,u){for(3>arguments.length&&(r=0),4>arguments.length&&(u=n.length);u>r;){var i=r+u>>>1;e>t.call(n,n[i],i)?r=i+1:u=i}return r},right:function(n,e,r,u){for(3>arguments.length&&(r=0),4>arguments.length&&(u=n.length);u>r;){var i=r+u>>>1;t.call(n,n[i],i)>e?u=i:r=i+1}return r}}};var $r=Hr.bisector(function(t){return t});Hr.bisectLeft=$r.left,Hr.bisect=Hr.bisectRight=$r.right,Hr.nest=function(){function t(n,o){if(o>=a.length)return u?u.call(i,n):r?n.sort(r):n;for(var c,l,f,s=-1,h=n.length,g=a[o++],p=new e,d={};h>++s;)(f=p.get(c=g(l=n[s])))?f.push(l):p.set(c,[l]);return p.forEach(function(n,e){d[n]=t(e,o)}),d}function n(t,e){if(e>=a.length)return t;var r,u=[],i=o[e++];for(r in t)u.push({key:r,values:n(t[r],e)});return i&&u.sort(function(t,n){return i(t.key,n.key)}),u}var r,u,i={},a=[],o=[];return i.map=function(n){return t(n,0)},i.entries=function(e){return n(t(e,0),0)},i.key=function(t){return a.push(t),i},i.sortKeys=function(t){return o[a.length-1]=t,i},i.sortValues=function(t){return r=t,i},i.rollup=function(t){return u=t,i},i},Hr.keys=function(t){var n=[];for(var e in t)n.push(e);return n},Hr.values=function(t){var n=[];for(var e in t)n.push(t[e]);return n},Hr.entries=function(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n},Hr.permute=function(t,n){for(var e=[],r=-1,u=n.length;u>++r;)e[r]=t[n[r]];return e},Hr.merge=function(t){return Array.prototype.concat.apply([],t)},Hr.range=function(t,n,e){if(3>arguments.length&&(e=1,2>arguments.length&&(n=t,t=0)),1/0==(n-t)/e)throw Error("infinite range");var r,u=[],i=f(Math.abs(e)),a=-1;if(t*=i,n*=i,0>(e*=i))for(;(r=t+e*++a)>n;)u.push(r/i);else for(;n>(r=t+e*++a);)u.push(r/i);return u},Hr.requote=function(t){return t.replace(Jr,"\\$&")};var Jr=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;Hr.round=function(t,n){return n?Math.round(t*(n=Math.pow(10,n)))/n:Math.round(t)},Hr.xhr=function(t,n,e){function u(){var t=l.status;!t&&l.responseText||t>=200&&300>t||304===t?a.load.call(i,c.call(i,l)):a.error.call(i,l)}var i={},a=Hr.dispatch("progress","load","error"),o={},c=r,l=new(Or.XDomainRequest&&/^(http(s)?:)?\/\//.test(t)?XDomainRequest:XMLHttpRequest);return"onload"in l?l.onload=l.onerror=u:l.onreadystatechange=function(){l.readyState>3&&u()},l.onprogress=function(t){var n=Hr.event;Hr.event=t;try{a.progress.call(i,l)}finally{Hr.event=n}},i.header=function(t,n){return t=(t+"").toLowerCase(),2>arguments.length?o[t]:(null==n?delete o[t]:o[t]=n+"",i)},i.mimeType=function(t){return arguments.length?(n=null==t?null:t+"",i):n},i.response=function(t){return c=t,i},["get","post"].forEach(function(t){i[t]=function(){return i.send.apply(i,[t].concat(Vr(arguments)))}}),i.send=function(e,r,u){if(2===arguments.length&&"function"==typeof r&&(u=r,r=null),l.open(e,t,!0),null==n||"accept"in o||(o.accept=n+",*/*"),l.setRequestHeader)for(var a in o)l.setRequestHeader(a,o[a]);return null!=n&&l.overrideMimeType&&l.overrideMimeType(n),null!=u&&i.on("error",u).on("load",function(t){u(null,t)}),l.send(null==r?null:r),i},i.abort=function(){return l.abort(),i},Hr.rebind(i,a,"on"),2===arguments.length&&"function"==typeof n&&(e=n,n=null),null==e?i:i.get(s(e))},Hr.text=function(){return Hr.xhr.apply(Hr,arguments).response(h)},Hr.json=function(t,n){return Hr.xhr(t,"application/json",n).response(g)},Hr.html=function(t,n){return Hr.xhr(t,"text/html",n).response(p)},Hr.xml=function(){return Hr.xhr.apply(Hr,arguments).response(d)};var Gr={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};Hr.ns={prefix:Gr,qualify:function(t){var n=t.indexOf(":"),e=t;return n>=0&&(e=t.substring(0,n),t=t.substring(n+1)),Gr.hasOwnProperty(e)?{space:Gr[e],local:t}:t}},Hr.dispatch=function(){for(var t=new m,n=-1,e=arguments.length;e>++n;)t[arguments[n]]=v(t);return t},m.prototype.on=function(t,n){var e=t.indexOf("."),r="";return e>0&&(r=t.substring(e+1),t=t.substring(0,e)),2>arguments.length?this[t].on(r):this[t].on(r,n)},Hr.format=function(t){var n=Kr.exec(t),e=n[1]||" ",r=n[2]||">",u=n[3]||"",i=n[4]||"",a=n[5],o=+n[6],c=n[7],l=n[8],f=n[9],s=1,h="",g=!1;switch(l&&(l=+l.substring(1)),(a||"0"===e&&"="===r)&&(a=e="0",r="=",c&&(o-=Math.floor((o-1)/4))),f){case"n":c=!0,f="g";break;case"%":s=100,h="%",f="f";break;case"p":s=100,h="%",f="r";break;case"b":case"o":case"x":case"X":i&&(i="0"+f.toLowerCase());case"c":case"d":g=!0,l=0;break;case"s":s=-1,f="r"}"#"===i&&(i=""),"r"!=f||l||(f="g"),f=Wr.get(f)||M;var p=a&&c;return function(t){if(g&&t%1)return"";var n=0>t||0===t&&0>1/t?(t=-t,"-"):u;if(0>s){var d=Hr.formatPrefix(t,l);t=d.scale(t),h=d.symbol}else t*=s;t=f(t,l),!a&&c&&(t=Qr(t));var m=i.length+t.length+(p?0:n.length),v=o>m?Array(m=o-m+1).join(e):"";return p&&(t=Qr(v+t)),t.replace(".","."),n+=i,("<"===r?n+t+v:">"===r?v+n+t:"^"===r?v.substring(0,m>>=1)+n+t+v.substring(m):n+(p?t:v+t))+h}};var Kr=/(?:([^{])?([<>=^]))?([+\- ])?(#)?(0)?([0-9]+)?(,)?(\.[0-9]+)?([a-zA-Z%])?/,Wr=Hr.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,n){return t.toPrecision(n)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},r:function(t,n){return(t=Hr.round(t,y(t,n))).toFixed(Math.max(0,Math.min(20,y(t*(1+1e-15),n))))}}),Qr=r;if(Yr){var tu=Yr.length;Qr=function(t){for(var n=t.lastIndexOf("."),e=n>=0?"."+t.substring(n+1):(n=t.length,""),r=[],u=0,i=Yr[0];n>0&&i>0;)r.push(t.substring(n-=i,n+i)),i=Yr[u=(u+1)%tu];return r.reverse().join(",")+e}}var nu=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(function(t,n){var e=Math.pow(10,3*Math.abs(8-n));return{scale:n>8?function(t){return t/e}:function(t){return t*e},symbol:t}});Hr.formatPrefix=function(t,n){var e=0;return t&&(0>t&&(t*=-1),n&&(t=Hr.round(t,y(t,n))),e=1+Math.floor(1e-12+Math.log(t)/Math.LN10),e=Math.max(-24,Math.min(24,3*Math.floor((0>=e?e+1:e-1)/3)))),nu[8+e/3]};var eu=function(){return r},ru=Hr.map({linear:eu,poly:function(t){return function(n){return Math.pow(n,t)}},quad:function(){return w},cubic:function(){return S},sin:function(){return k},exp:function(){return E},circle:function(){return N},elastic:function(t,n){var e;return 2>arguments.length&&(n=.45),arguments.length?e=n/(2*Lr)*Math.asin(1/t):(t=1,e=n/4),function(r){return 1+t*Math.pow(2,10*-r)*Math.sin(2*(r-e)*Lr/n)}},back:function(t){return t||(t=1.70158),function(n){return n*n*((t+1)*n-t)}},bounce:function(){return A}}),uu=Hr.map({"in":r,out:x,"in-out":_,"out-in":function(t){return _(x(t))}});Hr.ease=function(t){var n=t.indexOf("-"),e=n>=0?t.substring(0,n):t,u=n>=0?t.substring(n+1):"in";return e=ru.get(e)||eu,b((u=uu.get(u)||r)(e.apply(null,Array.prototype.slice.call(arguments,1))))},Hr.event=null,Hr.transform=function(t){var n=Rr.createElementNS(Hr.ns.prefix.svg,"g");return(Hr.transform=function(t){n.setAttribute("transform",t);var e=n.transform.baseVal.consolidate();return new z(e?e.matrix:iu)})(t)},z.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var iu={a:1,b:0,c:0,d:1,e:0,f:0};Hr.interpolate=function(t,n){for(var e,r=Hr.interpolators.length;--r>=0&&!(e=Hr.interpolators[r](t,n)););return e},Hr.interpolateNumber=function(t,n){return n-=t,function(e){return t+n*e}},Hr.interpolateRound=function(t,n){return n-=t,function(e){return Math.round(t+n*e)}},Hr.interpolateString=function(t,n){var e,r,u,i,a,o=0,c=[],l=[];for(au.lastIndex=0,r=0;e=au.exec(n);++r)e.index&&c.push(n.substring(o,e.index)),l.push({i:c.length,x:e[0]}),c.push(null),o=au.lastIndex;for(n.length>o&&c.push(n.substring(o)),r=0,i=l.length;(e=au.exec(t))&&i>r;++r)if((a=l[r]).x==e[0]){if(a.i)if(null==c[a.i+1])for(c[a.i-1]+=a.x,c.splice(a.i,1),u=r+1;i>u;++u)l[u].i--;else for(c[a.i-1]+=a.x+c[a.i+1],c.splice(a.i,2),u=r+1;i>u;++u)l[u].i-=2;else if(null==c[a.i+1])c[a.i]=a.x;else for(c[a.i]=a.x+c[a.i+1],c.splice(a.i+1,1),u=r+1;i>u;++u)l[u].i--;l.splice(r,1),i--,r--}else a.x=Hr.interpolateNumber(parseFloat(e[0]),parseFloat(a.x));for(;i>r;)a=l.pop(),null==c[a.i+1]?c[a.i]=a.x:(c[a.i]=a.x+c[a.i+1],c.splice(a.i+1,1)),i--;return 1===c.length?null==c[0]?l[0].x:function(){return n}:function(t){for(r=0;i>r;++r)c[(a=l[r]).i]=a.x(t);return c.join("")}},Hr.interpolateTransform=function(t,n){var e,r=[],u=[],i=Hr.transform(t),a=Hr.transform(n),o=i.translate,c=a.translate,l=i.rotate,f=a.rotate,s=i.skew,h=a.skew,g=i.scale,p=a.scale;return o[0]!=c[0]||o[1]!=c[1]?(r.push("translate(",null,",",null,")"),u.push({i:1,x:Hr.interpolateNumber(o[0],c[0])},{i:3,x:Hr.interpolateNumber(o[1],c[1])})):c[0]||c[1]?r.push("translate("+c+")"):r.push(""),l!=f?(l-f>180?f+=360:f-l>180&&(l+=360),u.push({i:r.push(r.pop()+"rotate(",null,")")-2,x:Hr.interpolateNumber(l,f)})):f&&r.push(r.pop()+"rotate("+f+")"),s!=h?u.push({i:r.push(r.pop()+"skewX(",null,")")-2,x:Hr.interpolateNumber(s,h)}):h&&r.push(r.pop()+"skewX("+h+")"),g[0]!=p[0]||g[1]!=p[1]?(e=r.push(r.pop()+"scale(",null,",",null,")"),u.push({i:e-4,x:Hr.interpolateNumber(g[0],p[0])},{i:e-2,x:Hr.interpolateNumber(g[1],p[1])})):(1!=p[0]||1!=p[1])&&r.push(r.pop()+"scale("+p+")"),e=u.length,function(t){for(var n,i=-1;e>++i;)r[(n=u[i]).i]=n.x(t);return r.join("")}},Hr.interpolateRgb=function(t,n){t=Hr.rgb(t),n=Hr.rgb(n);var e=t.r,r=t.g,u=t.b,i=n.r-e,a=n.g-r,o=n.b-u;return function(t){return"#"+Y(Math.round(e+i*t))+Y(Math.round(r+a*t))+Y(Math.round(u+o*t))}},Hr.interpolateHsl=function(t,n){t=Hr.hsl(t),n=Hr.hsl(n);var e=t.h,r=t.s,u=t.l,i=n.h-e,a=n.s-r,o=n.l-u;return i>180?i-=360:-180>i&&(i+=360),function(t){return J(e+i*t,r+a*t,u+o*t)+""}},Hr.interpolateLab=function(t,n){t=Hr.lab(t),n=Hr.lab(n);var e=t.l,r=t.a,u=t.b,i=n.l-e,a=n.a-r,o=n.b-u;return function(t){return nt(e+i*t,r+a*t,u+o*t)+""}},Hr.interpolateHcl=function(t,n){t=Hr.hcl(t),n=Hr.hcl(n);var e=t.h,r=t.c,u=t.l,i=n.h-e,a=n.c-r,o=n.l-u;return i>180?i-=360:-180>i&&(i+=360),function(t){return W(e+i*t,r+a*t,u+o*t)+""}},Hr.interpolateArray=function(t,n){var e,r=[],u=[],i=t.length,a=n.length,o=Math.min(t.length,n.length);for(e=0;o>e;++e)r.push(Hr.interpolate(t[e],n[e]));for(;i>e;++e)u[e]=t[e];for(;a>e;++e)u[e]=n[e];return function(t){for(e=0;o>e;++e)u[e]=r[e](t);return u}},Hr.interpolateObject=function(t,n){var e,r={},u={};for(e in t)e in n?r[e]=F(e)(t[e],n[e]):u[e]=t[e];for(e in n)e in t||(u[e]=n[e]);return function(t){for(e in r)u[e]=r[e](t);return u}};var au=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g;Hr.interpolators=[Hr.interpolateObject,function(t,n){return n instanceof Array&&Hr.interpolateArray(t,n)},function(t,n){return("string"==typeof t||"string"==typeof n)&&Hr.interpolateString(t+"",n+"")},function(t,n){return("string"==typeof n?cu.has(n)||/^(#|rgb\(|hsl\()/.test(n):n instanceof P)&&Hr.interpolateRgb(t,n)},function(t,n){return!isNaN(t=+t)&&!isNaN(n=+n)&&Hr.interpolateNumber(t,n)}],P.prototype.toString=function(){return this.rgb()+""},Hr.rgb=function(t,n,e){return 1===arguments.length?t instanceof O?R(t.r,t.g,t.b):U(""+t,R,J):R(~~t,~~n,~~e)};var ou=O.prototype=new P;ou.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var n=this.r,e=this.g,r=this.b,u=30;return n||e||r?(n&&u>n&&(n=u),e&&u>e&&(e=u),r&&u>r&&(r=u),R(Math.min(255,Math.floor(n/t)),Math.min(255,Math.floor(e/t)),Math.min(255,Math.floor(r/t)))):R(u,u,u)},ou.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),R(Math.floor(t*this.r),Math.floor(t*this.g),Math.floor(t*this.b))},ou.hsl=function(){return I(this.r,this.g,this.b)},ou.toString=function(){return"#"+Y(this.r)+Y(this.g)+Y(this.b)};var cu=Hr.map({aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"});cu.forEach(function(t,n){cu.set(t,U(n,R,J))}),Hr.hsl=function(t,n,e){return 1===arguments.length?t instanceof $?B(t.h,t.s,t.l):U(""+t,I,B):B(+t,+n,+e)};var lu=$.prototype=new P;lu.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),B(this.h,this.s,this.l/t)},lu.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),B(this.h,this.s,t*this.l)},lu.rgb=function(){return J(this.h,this.s,this.l)},Hr.hcl=function(t,n,e){return 1===arguments.length?t instanceof K?G(t.h,t.c,t.l):et(t instanceof tt?t.l:(t=V((t=Hr.rgb(t)).r,t.g,t.b)).l,t.a,t.b):G(+t,+n,+e)};var fu=K.prototype=new P;fu.brighter=function(t){return G(this.h,this.c,Math.min(100,this.l+su*(arguments.length?t:1)))},fu.darker=function(t){return G(this.h,this.c,Math.max(0,this.l-su*(arguments.length?t:1)))},fu.rgb=function(){return W(this.h,this.c,this.l).rgb()},Hr.lab=function(t,n,e){return 1===arguments.length?t instanceof tt?Q(t.l,t.a,t.b):t instanceof K?W(t.l,t.c,t.h):V((t=Hr.rgb(t)).r,t.g,t.b):Q(+t,+n,+e)};var su=18,hu=.95047,gu=1,pu=1.08883,du=tt.prototype=new P;du.brighter=function(t){return Q(Math.min(100,this.l+su*(arguments.length?t:1)),this.a,this.b)},du.darker=function(t){return Q(Math.max(0,this.l-su*(arguments.length?t:1)),this.a,this.b)},du.rgb=function(){return nt(this.l,this.a,this.b)};var mu=function(t,n){return n.querySelector(t)},vu=function(t,n){return n.querySelectorAll(t)},yu=Rr.documentElement,Mu=yu.matchesSelector||yu.webkitMatchesSelector||yu.mozMatchesSelector||yu.msMatchesSelector||yu.oMatchesSelector,bu=function(t,n){return Mu.call(t,n)};"function"==typeof Sizzle&&(mu=function(t,n){return Sizzle(t,n)[0]||null},vu=function(t,n){return Sizzle.uniqueSort(Sizzle(t,n))},bu=Sizzle.matchesSelector);var xu=[];Hr.selection=function(){return _u},Hr.selection.prototype=xu,xu.select=function(t){var n,e,r,u,i=[];"function"!=typeof t&&(t=ot(t));for(var a=-1,o=this.length;o>++a;){i.push(n=[]),n.parentNode=(r=this[a]).parentNode;for(var c=-1,l=r.length;l>++c;)(u=r[c])?(n.push(e=t.call(u,u.__data__,c)),e&&"__data__"in u&&(e.__data__=u.__data__)):n.push(null)}return at(i)},
xu.selectAll=function(t){var n,e,r=[];"function"!=typeof t&&(t=ct(t));for(var u=-1,i=this.length;i>++u;)for(var a=this[u],o=-1,c=a.length;c>++o;)(e=a[o])&&(r.push(n=Vr(t.call(e,e.__data__,o))),n.parentNode=e);return at(r)},xu.attr=function(t,n){if(2>arguments.length){if("string"==typeof t){var e=this.node();return(t=Hr.ns.qualify(t)).local?e.getAttributeNS(t.space,t.local):e.getAttribute(t)}for(n in t)this.each(lt(n,t[n]));return this}return this.each(lt(t,n))},xu.classed=function(t,n){if(2>arguments.length){if("string"==typeof t){var e=this.node(),r=(t=t.trim().split(/^|\s+/g)).length,u=-1;if(n=e.classList){for(;r>++u;)if(!n.contains(t[u]))return!1}else for(null!=(n=e.className).baseVal&&(n=n.baseVal);r>++u;)if(!ft(t[u]).test(n))return!1;return!0}for(n in t)this.each(st(n,t[n]));return this}return this.each(st(t,n))},xu.style=function(t,n,e){var r=arguments.length;if(3>r){if("string"!=typeof t){for(e in 2>r&&(n=""),t)this.each(gt(e,t[e],n));return this}if(2>r)return Or.getComputedStyle(this.node(),null).getPropertyValue(t);e=""}return this.each(gt(t,n,e))},xu.property=function(t,n){if(2>arguments.length){if("string"==typeof t)return this.node()[t];for(n in t)this.each(pt(n,t[n]));return this}return this.each(pt(t,n))},xu.text=function(t){return arguments.length?this.each("function"==typeof t?function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}:null==t?function(){this.textContent=""}:function(){this.textContent=t}):this.node().textContent},xu.html=function(t){return arguments.length?this.each("function"==typeof t?function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}:null==t?function(){this.innerHTML=""}:function(){this.innerHTML=t}):this.node().innerHTML},xu.append=function(t){return t=Hr.ns.qualify(t),this.select(t.local?function(){return this.appendChild(Rr.createElementNS(t.space,t.local))}:function(){return this.appendChild(Rr.createElementNS(this.namespaceURI,t))})},xu.insert=function(t,n){return t=Hr.ns.qualify(t),this.select(t.local?function(){return this.insertBefore(Rr.createElementNS(t.space,t.local),mu(n,this))}:function(){return this.insertBefore(Rr.createElementNS(this.namespaceURI,t),mu(n,this))})},xu.remove=function(){return this.each(function(){var t=this.parentNode;t&&t.removeChild(this)})},xu.data=function(t,n){function r(t,r){var u,i,a,o=t.length,s=r.length,h=Math.min(o,s),g=Array(s),p=Array(s),d=Array(o);if(n){var m,v=new e,y=new e,M=[];for(u=-1;o>++u;)m=n.call(i=t[u],i.__data__,u),v.has(m)?d[u]=i:v.set(m,i),M.push(m);for(u=-1;s>++u;)m=n.call(r,a=r[u],u),(i=v.get(m))?(g[u]=i,i.__data__=a):y.has(m)||(p[u]=dt(a)),y.set(m,a),v.remove(m);for(u=-1;o>++u;)v.has(M[u])&&(d[u]=t[u])}else{for(u=-1;h>++u;)i=t[u],a=r[u],i?(i.__data__=a,g[u]=i):p[u]=dt(a);for(;s>u;++u)p[u]=dt(r[u]);for(;o>u;++u)d[u]=t[u]}p.update=g,p.parentNode=g.parentNode=d.parentNode=t.parentNode,c.push(p),l.push(g),f.push(d)}var u,i,a=-1,o=this.length;if(!arguments.length){for(t=Array(o=(u=this[0]).length);o>++a;)(i=u[a])&&(t[a]=i.__data__);return t}var c=bt([]),l=at([]),f=at([]);if("function"==typeof t)for(;o>++a;)r(u=this[a],t.call(u,u.parentNode.__data__,a));else for(;o>++a;)r(u=this[a],t);return l.enter=function(){return c},l.exit=function(){return f},l},xu.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},xu.filter=function(t){var n,e,r,u=[];"function"!=typeof t&&(t=mt(t));for(var i=0,a=this.length;a>i;i++){u.push(n=[]),n.parentNode=(e=this[i]).parentNode;for(var o=0,c=e.length;c>o;o++)(r=e[o])&&t.call(r,r.__data__,o)&&n.push(r)}return at(u)},xu.order=function(){for(var t=-1,n=this.length;n>++t;)for(var e,r=this[t],u=r.length-1,i=r[u];--u>=0;)(e=r[u])&&(i&&i!==e.nextSibling&&i.parentNode.insertBefore(e,i),i=e);return this},xu.sort=function(t){t=vt.apply(this,arguments);for(var n=-1,e=this.length;e>++n;)this[n].sort(t);return this.order()},xu.on=function(t,n,e){var r=arguments.length;if(3>r){if("string"!=typeof t){for(e in 2>r&&(n=!1),t)this.each(yt(e,t[e],n));return this}if(2>r)return(r=this.node()["__on"+t])&&r._;e=!1}return this.each(yt(t,n,e))},xu.each=function(t){return Mt(this,function(n,e,r){t.call(n,n.__data__,e,r)})},xu.call=function(t){var n=Vr(arguments);return t.apply(n[0]=this,n),this},xu.empty=function(){return!this.node()},xu.node=function(){for(var t=0,n=this.length;n>t;t++)for(var e=this[t],r=0,u=e.length;u>r;r++){var i=e[r];if(i)return i}return null},xu.transition=function(){var t,n,e=Su||++Eu,r=[],u=Object.create(Nu);u.time=Date.now();for(var i=-1,a=this.length;a>++i;){r.push(t=[]);for(var o=this[i],c=-1,l=o.length;l>++c;)(n=o[c])&&_t(n,c,e,u),t.push(n)}return xt(r,e)};var _u=at([[Rr]]);_u[0].parentNode=yu,Hr.select=function(t){return"string"==typeof t?_u.select(t):at([[t]])},Hr.selectAll=function(t){return"string"==typeof t?_u.selectAll(t):at([Vr(t)])};var wu=[];Hr.selection.enter=bt,Hr.selection.enter.prototype=wu,wu.append=xu.append,wu.insert=xu.insert,wu.empty=xu.empty,wu.node=xu.node,wu.select=function(t){for(var n,e,r,u,i,a=[],o=-1,c=this.length;c>++o;){r=(u=this[o]).update,a.push(n=[]),n.parentNode=u.parentNode;for(var l=-1,f=u.length;f>++l;)(i=u[l])?(n.push(r[l]=e=t.call(u.parentNode,i.__data__,l)),e.__data__=i.__data__):n.push(null)}return at(a)};var Su,ku=[],Eu=0,Nu={ease:function(t){if(0>=t)return 0;if(t>=1)return 1;var n=t*t,e=n*t;return 4*(.5>t?e:3*(t-n)+e-.75)},delay:0,duration:250};ku.call=xu.call,ku.empty=xu.empty,ku.node=xu.node,Hr.transition=function(t){return arguments.length?Su?t.transition():t:_u.transition()},Hr.transition.prototype=ku,ku.select=function(t){var n,e,r,u=this.id,i=[];"function"!=typeof t&&(t=ot(t));for(var a=-1,o=this.length;o>++a;){i.push(n=[]);for(var c=this[a],l=-1,f=c.length;f>++l;)(r=c[l])&&(e=t.call(r,r.__data__,l))?("__data__"in r&&(e.__data__=r.__data__),_t(e,l,u,r.__transition__[u]),n.push(e)):n.push(null)}return xt(i,u)},ku.selectAll=function(t){var n,e,r,u,i,a=this.id,o=[];"function"!=typeof t&&(t=ct(t));for(var c=-1,l=this.length;l>++c;)for(var f=this[c],s=-1,h=f.length;h>++s;)if(r=f[s]){i=r.__transition__[a],e=t.call(r,r.__data__,s),o.push(n=[]);for(var g=-1,p=e.length;p>++g;)_t(u=e[g],g,a,i),n.push(u)}return xt(o,a)},ku.filter=function(t){var n,e,r=[];"function"!=typeof t&&(t=mt(t));for(var u=0,i=this.length;i>u;u++){r.push(n=[]);for(var a,o=0,c=(a=this[u]).length;c>o;o++)(e=a[o])&&t.call(e,e.__data__,o)&&n.push(e)}return xt(r,this.id,this.time).ease(this.ease())},ku.attr=function(t,n){function e(){this.removeAttribute(i)}function r(){this.removeAttributeNS(i.space,i.local)}if(2>arguments.length){for(n in t)this.attr(n,t[n]);return this}var u=F(t),i=Hr.ns.qualify(t);return St(this,"attr."+t,n,function(t){return null==t?i.local?r:e:(t+="",i.local?function(){var n,e=this.getAttributeNS(i.space,i.local);return e!==t&&(n=u(e,t),function(t){this.setAttributeNS(i.space,i.local,n(t))})}:function(){var n,e=this.getAttribute(i);return e!==t&&(n=u(e,t),function(t){this.setAttribute(i,n(t))})})})},ku.attrTween=function(t,n){var e=Hr.ns.qualify(t);return this.tween("attr."+t,e.local?function(t,r){var u=n.call(this,t,r,this.getAttributeNS(e.space,e.local));return u&&function(t){this.setAttributeNS(e.space,e.local,u(t))}}:function(t,r){var u=n.call(this,t,r,this.getAttribute(e));return u&&function(t){this.setAttribute(e,u(t))}})},ku.style=function(t,n,e){function r(){this.style.removeProperty(t)}var u=arguments.length;if(3>u){if("string"!=typeof t){for(e in 2>u&&(n=""),t)this.style(e,t[e],n);return this}e=""}var i=F(t);return St(this,"style."+t,n,function(n){return null==n?r:(n+="",function(){var r,u=Or.getComputedStyle(this,null).getPropertyValue(t);return u!==n&&(r=i(u,n),function(n){this.style.setProperty(t,r(n),e)})})})},ku.styleTween=function(t,n,e){return 3>arguments.length&&(e=""),this.tween("style."+t,function(r,u){var i=n.call(this,r,u,Or.getComputedStyle(this,null).getPropertyValue(t));return i&&function(n){this.style.setProperty(t,i(n),e)}})},ku.text=function(t){return St(this,"text",t,wt)},ku.remove=function(){return this.each("end.transition",function(){var t;!this.__transition__&&(t=this.parentNode)&&t.removeChild(this)})},ku.ease=function(t){var n=this.id;return 1>arguments.length?this.node().__transition__[n].ease:("function"!=typeof t&&(t=Hr.ease.apply(Hr,arguments)),Mt(this,function(e){e.__transition__[n].ease=t}))},ku.delay=function(t){var n=this.id;return Mt(this,"function"==typeof t?function(e,r,u){e.__transition__[n].delay=0|t.call(e,e.__data__,r,u)}:(t|=0,function(e){e.__transition__[n].delay=t}))},ku.duration=function(t){var n=this.id;return Mt(this,"function"==typeof t?function(e,r,u){e.__transition__[n].duration=Math.max(1,0|t.call(e,e.__data__,r,u))}:(t=Math.max(1,0|t),function(e){e.__transition__[n].duration=t}))},ku.each=function(t,n){var e=this.id;if(2>arguments.length){var r=Nu,u=Su;Su=e,Mt(this,function(n,r,u){Nu=n.__transition__[e],t.call(n,n.__data__,r,u)}),Nu=r,Su=u}else Mt(this,function(r){r.__transition__[e].event.on(t,n)});return this},ku.transition=function(){for(var t,n,e,r=this.id,u=++Eu,i=[],a=0,o=this.length;o>a;a++){i.push(t=[]);for(var c,l=0,f=(c=this[a]).length;f>l;l++)(n=c[l])&&((e=Object.create(n.__transition__[r])).delay+=e.duration,_t(n,l,u,e)),t.push(n)}return xt(i,u)},ku.tween=function(t,n){var e=this.id;return 2>arguments.length?this.node().__transition__[e].tween.get(t):Mt(this,null==n?function(n){n.__transition__[e].tween.remove(t)}:function(r){r.__transition__[e].tween.set(t,n)})};var Au,Tu,qu=0,Cu={},zu=null;Hr.timer=function(t,n,e){if(3>arguments.length){if(2>arguments.length)n=0;else if(!isFinite(n))return;e=Date.now()}var r=Cu[t.id];r&&r.callback===t?(r.then=e,r.delay=n):Cu[t.id=++qu]=zu={callback:t,then:e,delay:n,next:zu},Au||(Tu=clearTimeout(Tu),Au=1,Du(kt))},Hr.timer.flush=function(){for(var t,n=Date.now(),e=zu;e;)t=n-e.then,e.delay||(e.flush=e.callback(t)),e=e.next;Et()};var Du=Or.requestAnimationFrame||Or.webkitRequestAnimationFrame||Or.mozRequestAnimationFrame||Or.oRequestAnimationFrame||Or.msRequestAnimationFrame||function(t){setTimeout(t,17)};Hr.mouse=function(t){return Nt(t,q())};var Lu=/WebKit/.test(Or.navigator.userAgent)?-1:0;Hr.touches=function(t,n){return 2>arguments.length&&(n=q().touches),n?Vr(n).map(function(n){var e=Nt(t,n);return e.identifier=n.identifier,e}):[]},Hr.scale={},Hr.scale.linear=function(){return Dt([0,1],[0,1],Hr.interpolate,!1)},Hr.scale.log=function(){return Yt(Hr.scale.linear(),Ut)};var Fu=Hr.format(".0e");Ut.pow=function(t){return Math.pow(10,t)},It.pow=function(t){return-Math.pow(10,-t)},Hr.scale.pow=function(){return Vt(Hr.scale.linear(),1)},Hr.scale.sqrt=function(){return Hr.scale.pow().exponent(.5)},Hr.scale.ordinal=function(){return Xt([],{t:"range",a:[[]]})},Hr.scale.category10=function(){return Hr.scale.ordinal().range(Hu)},Hr.scale.category20=function(){return Hr.scale.ordinal().range(ju)},Hr.scale.category20b=function(){return Hr.scale.ordinal().range(Pu)},Hr.scale.category20c=function(){return Hr.scale.ordinal().range(Ru)};var Hu=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],ju=["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"],Pu=["#393b79","#5254a3","#6b6ecf","#9c9ede","#637939","#8ca252","#b5cf6b","#cedb9c","#8c6d31","#bd9e39","#e7ba52","#e7cb94","#843c39","#ad494a","#d6616b","#e7969c","#7b4173","#a55194","#ce6dbd","#de9ed6"],Ru=["#3182bd","#6baed6","#9ecae1","#c6dbef","#e6550d","#fd8d3c","#fdae6b","#fdd0a2","#31a354","#74c476","#a1d99b","#c7e9c0","#756bb1","#9e9ac8","#bcbddc","#dadaeb","#636363","#969696","#bdbdbd","#d9d9d9"];Hr.scale.quantile=function(){return Bt([],[])},Hr.scale.quantize=function(){return $t(0,1,[0,1])},Hr.scale.threshold=function(){return Jt([.5],[0,1])},Hr.scale.identity=function(){return Gt([0,1])},Hr.svg={},Hr.svg.arc=function(){function t(){var t=n.apply(this,arguments),i=e.apply(this,arguments),a=r.apply(this,arguments)+Ou,o=u.apply(this,arguments)+Ou,c=(a>o&&(c=a,a=o,o=c),o-a),l=Lr>c?"0":"1",f=Math.cos(a),s=Math.sin(a),h=Math.cos(o),g=Math.sin(o);return c>=Yu?t?"M0,"+i+"A"+i+","+i+" 0 1,1 0,"+-i+"A"+i+","+i+" 0 1,1 0,"+i+"M0,"+t+"A"+t+","+t+" 0 1,0 0,"+-t+"A"+t+","+t+" 0 1,0 0,"+t+"Z":"M0,"+i+"A"+i+","+i+" 0 1,1 0,"+-i+"A"+i+","+i+" 0 1,1 0,"+i+"Z":t?"M"+i*f+","+i*s+"A"+i+","+i+" 0 "+l+",1 "+i*h+","+i*g+"L"+t*h+","+t*g+"A"+t+","+t+" 0 "+l+",0 "+t*f+","+t*s+"Z":"M"+i*f+","+i*s+"A"+i+","+i+" 0 "+l+",1 "+i*h+","+i*g+"L0,0Z"}var n=Kt,e=Wt,r=Qt,u=tn;return t.innerRadius=function(e){return arguments.length?(n=i(e),t):n},t.outerRadius=function(n){return arguments.length?(e=i(n),t):e},t.startAngle=function(n){return arguments.length?(r=i(n),t):r},t.endAngle=function(n){return arguments.length?(u=i(n),t):u},t.centroid=function(){var t=(n.apply(this,arguments)+e.apply(this,arguments))/2,i=(r.apply(this,arguments)+u.apply(this,arguments))/2+Ou;return[Math.cos(i)*t,Math.sin(i)*t]},t};var Ou=-Lr/2,Yu=2*Lr-1e-6;Hr.svg.line=function(){return nn(r)};var Uu=Hr.map({linear:un,"linear-closed":function(t){return un(t)+"Z"},"step-before":an,"step-after":on,basis:fn,"basis-open":function(t){if(4>t.length)return un(t);for(var n,e=[],r=-1,u=t.length,i=[0],a=[0];3>++r;)n=t[r],i.push(n[0]),a.push(n[1]);for(e.push(sn(Zu,i)+","+sn(Zu,a)),--r;u>++r;)n=t[r],i.shift(),i.push(n[0]),a.shift(),a.push(n[1]),hn(e,i,a);return e.join("")},"basis-closed":function(t){for(var n,e,r=-1,u=t.length,i=u+4,a=[],o=[];4>++r;)e=t[r%u],a.push(e[0]),o.push(e[1]);for(n=[sn(Zu,a),",",sn(Zu,o)],--r;i>++r;)e=t[r%u],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),hn(n,a,o);return n.join("")},bundle:function(t,n){var e=t.length-1;if(e)for(var r,u,i=t[0][0],a=t[0][1],o=t[e][0]-i,c=t[e][1]-a,l=-1;e>=++l;)u=l/e,(r=t[l])[0]=n*r[0]+(1-n)*(i+u*o),r[1]=n*r[1]+(1-n)*(a+u*c);return fn(t)},cardinal:function(t,n){return 3>t.length?un(t):t[0]+cn(t,ln(t,n))},"cardinal-open":function(t,n){return 4>t.length?un(t):t[1]+cn(t.slice(1,t.length-1),ln(t,n))},"cardinal-closed":function(t,n){return 3>t.length?un(t):t[0]+cn((t.push(t[0]),t),ln([t[t.length-2]].concat(t,[t[1]]),n))},monotone:function(t){return 3>t.length?un(t):t[0]+cn(t,pn(t))}});Uu.forEach(function(t,n){n.key=t,n.closed=/-closed$/.test(t)});var Iu=[0,2/3,1/3,0],Vu=[0,1/3,2/3,0],Zu=[0,1/6,2/3,1/6];Hr.svg.line.radial=function(){var t=nn(dn);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},an.reverse=on,on.reverse=an,Hr.svg.area=function(){return mn(r)},Hr.svg.area.radial=function(){var t=mn(dn);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},Hr.svg.chord=function(){function e(t,n){var e=r(this,o,t,n),i=r(this,c,t,n);return"M"+e.p0+u(e.r,e.p1,e.a1-e.a0)+(function(t,n){return t.a0==n.a0&&t.a1==n.a1}(e,i)?a(e.r,e.p1,e.r,e.p0):a(e.r,e.p1,i.r,i.p0)+u(i.r,i.p1,i.a1-i.a0)+a(i.r,i.p1,e.r,e.p0))+"Z"}function r(t,n,e,r){var u=n.call(t,e,r),i=l.call(t,u,r),a=f.call(t,u,r)+Ou,o=s.call(t,u,r)+Ou;return{r:i,a0:a,a1:o,p0:[i*Math.cos(a),i*Math.sin(a)],p1:[i*Math.cos(o),i*Math.sin(o)]}}function u(t,n,e){return"A"+t+","+t+" 0 "+ +(e>Lr)+",1 "+n}function a(t,n,e,r){return"Q 0,0 "+r}var o=n,c=t,l=vn,f=Qt,s=tn;return e.radius=function(t){return arguments.length?(l=i(t),e):l},e.source=function(t){return arguments.length?(o=i(t),e):o},e.target=function(t){return arguments.length?(c=i(t),e):c},e.startAngle=function(t){return arguments.length?(f=i(t),e):f},e.endAngle=function(t){return arguments.length?(s=i(t),e):s},e},Hr.svg.diagonal=function(){function e(t,n){var e=r.call(this,t,n),i=u.call(this,t,n),o=(e.y+i.y)/2,c=[e,{x:e.x,y:o},{x:i.x,y:o},i];return"M"+(c=c.map(a))[0]+"C"+c[1]+" "+c[2]+" "+c[3]}var r=n,u=t,a=yn;return e.source=function(t){return arguments.length?(r=i(t),e):r},e.target=function(t){return arguments.length?(u=i(t),e):u},e.projection=function(t){return arguments.length?(a=t,e):a},e},Hr.svg.diagonal.radial=function(){var t=Hr.svg.diagonal(),n=yn,e=t.projection;return t.projection=function(t){return arguments.length?e(Mn(n=t)):n},t},Hr.svg.symbol=function(){function t(t,r){return(Xu.get(n.call(this,t,r))||_n)(e.call(this,t,r))}var n=xn,e=bn;return t.type=function(e){return arguments.length?(n=i(e),t):n},t.size=function(n){return arguments.length?(e=i(n),t):e},t};var Xu=Hr.map({circle:_n,cross:function(t){var n=Math.sqrt(t/5)/2;return"M"+-3*n+","+-n+"H"+-n+"V"+-3*n+"H"+n+"V"+-n+"H"+3*n+"V"+n+"H"+n+"V"+3*n+"H"+-n+"V"+n+"H"+-3*n+"Z"},diamond:function(t){var n=Math.sqrt(t/(2*$u)),e=n*$u;return"M0,"+-n+"L"+e+",0 0,"+n+" "+-e+",0Z"},square:function(t){var n=Math.sqrt(t)/2;return"M"+-n+","+-n+"L"+n+","+-n+" "+n+","+n+" "+-n+","+n+"Z"},"triangle-down":function(t){var n=Math.sqrt(t/Bu),e=n*Bu/2;return"M0,"+e+"L"+n+","+-e+" "+-n+","+-e+"Z"},"triangle-up":function(t){var n=Math.sqrt(t/Bu),e=n*Bu/2;return"M0,"+-e+"L"+n+","+e+" "+-n+","+e+"Z"}});Hr.svg.symbolTypes=Xu.keys();var Bu=Math.sqrt(3),$u=Math.tan(30*jr);Hr.svg.axis=function(){function t(t){t.each(function(){var t,s=Hr.select(this),h=null==l?e.ticks?e.ticks.apply(e,c):e.domain():l,g=null==n?e.tickFormat?e.tickFormat.apply(e,c):String:n,p=function(t,n,e){if(r=[],e&&n.length>1){for(var r,u,i,a=Tt(t.domain()),o=-1,c=n.length,l=(n[1]-n[0])/++e;c>++o;)for(u=e;--u>0;)(i=+n[o]-u*l)>=a[0]&&r.push(i);for(--o,u=0;e>++u&&(i=+n[o]+u*l)<a[1];)r.push(i)}return r}(e,h,f),d=s.selectAll(".tick.minor").data(p,String),m=d.enter().insert("line",".tick").attr("class","tick minor").style("opacity",1e-6),v=Hr.transition(d.exit()).style("opacity",1e-6).remove(),y=Hr.transition(d).style("opacity",1),M=s.selectAll(".tick.major").data(h,String),b=M.enter().insert("g","path").attr("class","tick major").style("opacity",1e-6),x=Hr.transition(M.exit()).style("opacity",1e-6).remove(),_=Hr.transition(M).style("opacity",1),w=qt(e),S=s.selectAll(".domain").data([0]),k=(S.enter().append("path").attr("class","domain"),Hr.transition(S)),E=e.copy(),N=this.__chart__||E;this.__chart__=E,b.append("line"),b.append("text");var A=b.select("line"),T=_.select("line"),q=M.select("text").text(g),C=b.select("text"),z=_.select("text");switch(r){case"bottom":t=wn,m.attr("y2",i),y.attr("x2",0).attr("y2",i),A.attr("y2",u),C.attr("y",Math.max(u,0)+o),T.attr("x2",0).attr("y2",u),z.attr("x",0).attr("y",Math.max(u,0)+o),q.attr("dy",".71em").style("text-anchor","middle"),k.attr("d","M"+w[0]+","+a+"V0H"+w[1]+"V"+a);break;case"top":t=wn,m.attr("y2",-i),y.attr("x2",0).attr("y2",-i),A.attr("y2",-u),C.attr("y",-(Math.max(u,0)+o)),T.attr("x2",0).attr("y2",-u),z.attr("x",0).attr("y",-(Math.max(u,0)+o)),q.attr("dy","0em").style("text-anchor","middle"),k.attr("d","M"+w[0]+","+-a+"V0H"+w[1]+"V"+-a);break;case"left":t=Sn,m.attr("x2",-i),y.attr("x2",-i).attr("y2",0),A.attr("x2",-u),C.attr("x",-(Math.max(u,0)+o)),T.attr("x2",-u).attr("y2",0),z.attr("x",-(Math.max(u,0)+o)).attr("y",0),q.attr("dy",".32em").style("text-anchor","end"),k.attr("d","M"+-a+","+w[0]+"H0V"+w[1]+"H"+-a);break;case"right":t=Sn,m.attr("x2",i),y.attr("x2",i).attr("y2",0),A.attr("x2",u),C.attr("x",Math.max(u,0)+o),T.attr("x2",u).attr("y2",0),z.attr("x",Math.max(u,0)+o).attr("y",0),q.attr("dy",".32em").style("text-anchor","start"),k.attr("d","M"+a+","+w[0]+"H0V"+w[1]+"H"+a)}if(e.ticks)b.call(t,N),_.call(t,E),x.call(t,E),m.call(t,N),y.call(t,E),v.call(t,E);else{var D=E.rangeBand()/2,L=function(t){return E(t)+D};b.call(t,L),_.call(t,L)}})}var n,e=Hr.scale.linear(),r=Ju,u=6,i=6,a=6,o=3,c=[10],l=null,f=0;return t.scale=function(n){return arguments.length?(e=n,t):e},t.orient=function(n){return arguments.length?(r=n in Gu?n+"":Ju,t):r},t.ticks=function(){return arguments.length?(c=arguments,t):c},t.tickValues=function(n){return arguments.length?(l=n,t):l},t.tickFormat=function(e){return arguments.length?(n=e,t):n},t.tickSize=function(n,e){if(!arguments.length)return u;var r=arguments.length-1;return u=+n,i=r>1?+e:u,a=r>0?+arguments[r]:u,t},t.tickPadding=function(n){return arguments.length?(o=+n,t):o},t.tickSubdivide=function(n){return arguments.length?(f=+n,t):f},t};var Ju="bottom",Gu={top:1,right:1,bottom:1,left:1};Hr.svg.brush=function(){function t(i){i.each(function(){var i,a=Hr.select(this),f=a.selectAll(".background").data([0]),s=a.selectAll(".extent").data([0]),h=a.selectAll(".resize").data(l,String);a.style("pointer-events","all").on("mousedown.brush",u).on("touchstart.brush",u),f.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),s.enter().append("rect").attr("class","extent").style("cursor","move"),h.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return Ku[t]}).append("rect").attr("x",function(t){return/[ew]$/.test(t)?-3:null}).attr("y",function(t){return/^[ns]/.test(t)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),h.style("display",t.empty()?"none":null),h.exit().remove(),o&&(i=qt(o),f.attr("x",i[0]).attr("width",i[1]-i[0]),e(a)),c&&(i=qt(c),f.attr("y",i[0]).attr("height",i[1]-i[0]),r(a)),n(a)})}function n(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+f[+/e$/.test(t)][0]+","+f[+/^s/.test(t)][1]+")"})}function e(t){t.select(".extent").attr("x",f[0][0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",f[1][0]-f[0][0])}function r(t){t.select(".extent").attr("y",f[0][1]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",f[1][1]-f[0][1])}function u(){function u(){var t=Hr.event.changedTouches;return t?Hr.touches(v,t)[0]:Hr.mouse(v)}function l(){32==Hr.event.keyCode&&(S||(d=null,k[0]-=f[1][0],k[1]-=f[1][1],S=2),T())}function s(){32==Hr.event.keyCode&&2==S&&(k[0]+=f[1][0],k[1]+=f[1][1],S=0,T())}function h(){var t=u(),i=!1;m&&(t[0]+=m[0],t[1]+=m[1]),S||(Hr.event.altKey?(d||(d=[(f[0][0]+f[1][0])/2,(f[0][1]+f[1][1])/2]),k[0]=f[+(t[0]<d[0])][0],k[1]=f[+(t[1]<d[1])][1]):d=null),_&&g(t,o,0)&&(e(b),i=!0),w&&g(t,c,1)&&(r(b),i=!0),i&&(n(b),M({type:"brush",mode:S?"move":"resize"}))}function g(t,n,e){var r,u,a=qt(n),o=a[0],c=a[1],l=k[e],s=f[1][e]-f[0][e];return S&&(o-=l,c-=s+l),r=Math.max(o,Math.min(c,t[e])),S?u=(r+=l)+s:(d&&(l=Math.max(o,Math.min(c,2*d[e]-r))),r>l?(u=r,r=l):u=l),f[0][e]!==r||f[1][e]!==u?(i=null,f[0][e]=r,f[1][e]=u,!0):void 0}function p(){h(),b.style("pointer-events","all").selectAll(".resize").style("display",t.empty()?"none":null),Hr.select("body").style("cursor",null),E.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),M({type:"brushend"}),T()}var d,m,v=this,y=Hr.select(Hr.event.target),M=a.of(v,arguments),b=Hr.select(v),x=y.datum(),_=!/^(n|s)$/.test(x)&&o,w=!/^(e|w)$/.test(x)&&c,S=y.classed("extent"),k=u(),E=Hr.select(Or).on("mousemove.brush",h).on("mouseup.brush",p).on("touchmove.brush",h).on("touchend.brush",p).on("keydown.brush",l).on("keyup.brush",s);if(S)k[0]=f[0][0]-k[0],k[1]=f[0][1]-k[1];else if(x){var N=+/w$/.test(x),A=+/^n/.test(x);m=[f[1-N][0]-k[0],f[1-A][1]-k[1]],k[0]=f[N][0],k[1]=f[A][1]}else Hr.event.altKey&&(d=k.slice());b.style("pointer-events","none").selectAll(".resize").style("display",null),Hr.select("body").style("cursor",y.style("cursor")),M({type:"brushstart"}),h(),T()}var i,a=C(t,"brushstart","brush","brushend"),o=null,c=null,l=Wu[0],f=[[0,0],[0,0]];return t.x=function(n){return arguments.length?(l=Wu[!(o=n)<<1|!c],t):o},t.y=function(n){return arguments.length?(l=Wu[!o<<1|!(c=n)],t):c},t.extent=function(n){var e,r,u,a,l;return arguments.length?(i=[[0,0],[0,0]],o&&(e=n[0],r=n[1],c&&(e=e[0],r=r[0]),i[0][0]=e,i[1][0]=r,o.invert&&(e=o(e),r=o(r)),e>r&&(l=e,e=r,r=l),f[0][0]=0|e,f[1][0]=0|r),c&&(u=n[0],a=n[1],o&&(u=u[1],a=a[1]),i[0][1]=u,i[1][1]=a,c.invert&&(u=c(u),a=c(a)),u>a&&(l=u,u=a,a=l),f[0][1]=0|u,f[1][1]=0|a),t):(n=i||f,o&&(e=n[0][0],r=n[1][0],i||(e=f[0][0],r=f[1][0],o.invert&&(e=o.invert(e),r=o.invert(r)),e>r&&(l=e,e=r,r=l))),c&&(u=n[0][1],a=n[1][1],i||(u=f[0][1],a=f[1][1],c.invert&&(u=c.invert(u),a=c.invert(a)),u>a&&(l=u,u=a,a=l))),o&&c?[[e,u],[r,a]]:o?[e,r]:c&&[u,a])},t.clear=function(){return i=null,f[0][0]=f[0][1]=f[1][0]=f[1][1]=0,t},t.empty=function(){return o&&f[0][0]===f[1][0]||c&&f[0][1]===f[1][1]},Hr.rebind(t,a,"on")};var Ku={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Wu=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];Hr.behavior={},Hr.behavior.drag=function(){function t(){this.on("mousedown.drag",n).on("touchstart.drag",n)}function n(){function t(){var t=o.parentNode;return null!=f?Hr.touches(t).filter(function(t){return t.identifier===f})[0]:Hr.mouse(t)}function n(){if(!o.parentNode)return u();var n=t(),e=n[0]-s[0],r=n[1]-s[1];h|=e|r,s=n,T(),c({type:"drag",x:n[0]+a[0],y:n[1]+a[1],dx:e,dy:r})}function u(){c({type:"dragend"}),h&&(T(),Hr.event.target===l&&g.on("click.drag",i,!0)),g.on(null!=f?"touchmove.drag-"+f:"mousemove.drag",null).on(null!=f?"touchend.drag-"+f:"mouseup.drag",null)}function i(){T(),g.on("click.drag",null)}var a,o=this,c=e.of(o,arguments),l=Hr.event.target,f=Hr.event.touches?Hr.event.changedTouches[0].identifier:null,s=t(),h=0,g=Hr.select(Or).on(null!=f?"touchmove.drag-"+f:"mousemove.drag",n).on(null!=f?"touchend.drag-"+f:"mouseup.drag",u,!0);a=r?[(a=r.apply(o,arguments)).x-s[0],a.y-s[1]]:[0,0],null==f&&T(),c({type:"dragstart"})}var e=C(t,"drag","dragstart","dragend"),r=null;return t.origin=function(n){return arguments.length?(r=n,t):r},Hr.rebind(t,e,"on")},Hr.behavior.zoom=function(){function t(){this.on("mousedown.zoom",a).on("mousemove.zoom",c).on(ni+".zoom",o).on("dblclick.zoom",l).on("touchstart.zoom",f).on("touchmove.zoom",s).on("touchend.zoom",f)}function n(t){return[(t[0]-M[0])/b,(t[1]-M[1])/b]}function e(t){b=Math.max(x[0],Math.min(x[1],t))}function r(t,n){n=function(t){return[t[0]*b+M[0],t[1]*b+M[1]]}(n),M[0]+=t[0]-n[0],M[1]+=t[1]-n[1]}function u(){d&&d.domain(p.range().map(function(t){return(t-M[0])/b}).map(p.invert)),v&&v.domain(m.range().map(function(t){return(t-M[1])/b}).map(m.invert))}function i(t){u(),Hr.event.preventDefault(),t({type:"zoom",scale:b,translate:M})}function a(){function t(){l=1,r(Hr.mouse(a),s),i(o)}function e(){l&&T(),f.on("mousemove.zoom",null).on("mouseup.zoom",null),l&&Hr.event.target===c&&f.on("click.zoom",u,!0)}function u(){T(),f.on("click.zoom",null)}var a=this,o=_.of(a,arguments),c=Hr.event.target,l=0,f=Hr.select(Or).on("mousemove.zoom",t).on("mouseup.zoom",e),s=n(Hr.mouse(a));Or.focus(),T()}function o(){h||(h=n(Hr.mouse(this))),e(Math.pow(2,.002*Qu())*b),r(Hr.mouse(this),h),i(_.of(this,arguments))}function c(){h=null}function l(){var t=Hr.mouse(this),u=n(t),a=Math.log(b)/Math.LN2;e(Math.pow(2,Hr.event.shiftKey?Math.ceil(a)-1:Math.floor(a)+1)),r(t,u),i(_.of(this,arguments))}function f(){var t=Hr.touches(this),u=Date.now();if(g=b,h={},t.forEach(function(t){h[t.identifier]=n(t)}),T(),1===t.length){if(500>u-y){var a=t[0],o=n(t[0]);e(2*b),r(a,o),i(_.of(this,arguments))}y=u}}function s(){var t=Hr.touches(this),n=t[0],u=h[n.identifier];if(a=t[1]){var a,o=h[a.identifier];n=[(n[0]+a[0])/2,(n[1]+a[1])/2],u=[(u[0]+o[0])/2,(u[1]+o[1])/2],e(Hr.event.scale*g)}r(n,u),y=null,i(_.of(this,arguments))}var h,g,p,d,m,v,y,M=[0,0],b=1,x=ti,_=C(t,"zoom");return t.translate=function(n){return arguments.length?(M=n.map(Number),u(),t):M},t.scale=function(n){return arguments.length?(b=+n,u(),t):b},t.scaleExtent=function(n){return arguments.length?(x=null==n?ti:n.map(Number),t):x},t.x=function(n){return arguments.length?(d=n,p=n.copy(),M=[0,0],b=1,t):d},t.y=function(n){return arguments.length?(v=n,m=n.copy(),M=[0,0],b=1,t):v},Hr.rebind(t,_,"on")};var Qu,ti=[0,1/0],ni="onwheel"in document?(Qu=function(){return-Hr.event.deltaY*(Hr.event.deltaMode?120:1)},"wheel"):"onmousewheel"in document?(Qu=function(){return Hr.event.wheelDelta},"mousewheel"):(Qu=function(){return-Hr.event.detail},"MozMousePixelScroll");Hr.layout={},Hr.layout.bundle=function(){return function(t){for(var n=[],e=-1,r=t.length;r>++e;)n.push(kn(t[e]));return n}},Hr.layout.chord=function(){function t(){var t,l,s,h,g,p={},d=[],m=Hr.range(i),v=[];for(e=[],r=[],t=0,h=-1;i>++h;){for(l=0,g=-1;i>++g;)l+=u[h][g];d.push(l),v.push(Hr.range(i)),t+=l}for(a&&m.sort(function(t,n){return a(d[t],d[n])}),o&&v.forEach(function(t,n){t.sort(function(t,e){return o(u[n][t],u[n][e])})}),t=(2*Lr-f*i)/t,l=0,h=-1;i>++h;){for(s=l,g=-1;i>++g;){var y=m[h],M=v[y][g],b=u[y][M],x=l,_=l+=b*t;p[y+"-"+M]={index:y,subindex:M,startAngle:x,endAngle:_,value:b}}r[y]={index:y,startAngle:s,endAngle:l,value:(l-s)/t},l+=f}for(h=-1;i>++h;)for(g=h-1;i>++g;){var w=p[h+"-"+g],S=p[g+"-"+h];(w.value||S.value)&&e.push(w.value<S.value?{source:S,target:w}:{source:w,target:S})}c&&n()}function n(){e.sort(function(t,n){return c((t.source.value+t.target.value)/2,(n.source.value+n.target.value)/2)})}var e,r,u,i,a,o,c,l={},f=0;return l.matrix=function(t){return arguments.length?(i=(u=t)&&u.length,e=r=null,l):u},l.padding=function(t){return arguments.length?(f=t,e=r=null,l):f},l.sortGroups=function(t){return arguments.length?(a=t,e=r=null,l):a},l.sortSubgroups=function(t){return arguments.length?(o=t,e=null,l):o},l.sortChords=function(t){return arguments.length?(c=t,e&&n(),l):c},l.chords=function(){return e||t(),e},l.groups=function(){return r||t(),r},l},Hr.layout.force=function(){function t(t){return function(n,e,r,u){if(n.point!==t){var i=n.cx-t.x,a=n.cy-t.y,o=1/Math.sqrt(i*i+a*a);if(m>(u-e)*o){var c=n.charge*o*o;return t.px-=i*c,t.py-=a*c,!0}n.point&&isFinite(o)&&(c=n.pointCharge*o*o,t.px-=i*c,t.py-=a*c)}return!n.charge}}function n(t){t.px=Hr.event.x,t.py=Hr.event.y,c.resume()}var e,u,i,a,o,c={},l=Hr.dispatch("start","tick","end"),f=[1,1],s=.9,h=ei,g=ri,p=-30,d=.1,m=.8,v=[],y=[];return c.tick=function(){if(.005>(u*=.99))return l.end({type:"end",alpha:u=0}),!0;var n,e,r,c,h,g,m,M,b,x=v.length,_=y.length;for(e=0;_>e;++e)c=(r=y[e]).source,(g=(M=(h=r.target).x-c.x)*M+(b=h.y-c.y)*b)&&(M*=g=u*a[e]*((g=Math.sqrt(g))-i[e])/g,b*=g,h.x-=M*(m=c.weight/(h.weight+c.weight)),h.y-=b*m,c.x+=M*(m=1-m),c.y+=b*m);if((m=u*d)&&(M=f[0]/2,b=f[1]/2,e=-1,m))for(;x>++e;)(r=v[e]).x+=(M-r.x)*m,r.y+=(b-r.y)*m;if(p)for(Cn(n=Hr.geom.quadtree(v),u,o),e=-1;x>++e;)(r=v[e]).fixed||n.visit(t(r));for(e=-1;x>++e;)(r=v[e]).fixed?(r.x=r.px,r.y=r.py):(r.x-=(r.px-(r.px=r.x))*s,r.y-=(r.py-(r.py=r.y))*s);l.tick({type:"tick",alpha:u})},c.nodes=function(t){return arguments.length?(v=t,c):v},c.links=function(t){return arguments.length?(y=t,c):y},c.size=function(t){return arguments.length?(f=t,c):f},c.linkDistance=function(t){return arguments.length?(h="function"==typeof t?t:+t,c):h},c.distance=c.linkDistance,c.linkStrength=function(t){return arguments.length?(g="function"==typeof t?t:+t,c):g},c.friction=function(t){return arguments.length?(s=+t,c):s},c.charge=function(t){return arguments.length?(p="function"==typeof t?t:+t,c):p},c.gravity=function(t){return arguments.length?(d=+t,c):d},c.theta=function(t){return arguments.length?(m=+t,c):m},c.alpha=function(t){return arguments.length?(t=+t,u?u=t>0?t:0:t>0&&(l.start({type:"start",alpha:u=t}),Hr.timer(c.tick)),c):u},c.start=function(){function t(t,e){for(var r,u=n(),i=-1,a=u.length;a>++i;)if(!isNaN(r=u[i][t]))return r;return Math.random()*e}function n(){if(!u){for(u=[],r=0;s>r;++r)u[r]=[];for(r=0;d>r;++r){var t=y[r];u[t.source.index].push(t.target),u[t.target.index].push(t.source)}}return u[e]}var e,r,u,l,s=v.length,d=y.length,m=f[0],M=f[1];for(e=0;s>e;++e)(l=v[e]).index=e,l.weight=0;for(e=0;d>e;++e)"number"==typeof(l=y[e]).source&&(l.source=v[l.source]),"number"==typeof l.target&&(l.target=v[l.target]),++l.source.weight,++l.target.weight;for(e=0;s>e;++e)l=v[e],isNaN(l.x)&&(l.x=t("x",m)),isNaN(l.y)&&(l.y=t("y",M)),isNaN(l.px)&&(l.px=l.x),isNaN(l.py)&&(l.py=l.y);if(i=[],"function"==typeof h)for(e=0;d>e;++e)i[e]=+h.call(this,y[e],e);else for(e=0;d>e;++e)i[e]=h;if(a=[],"function"==typeof g)for(e=0;d>e;++e)a[e]=+g.call(this,y[e],e);else for(e=0;d>e;++e)a[e]=g;if(o=[],"function"==typeof p)for(e=0;s>e;++e)o[e]=+p.call(this,v[e],e);else for(e=0;s>e;++e)o[e]=p;
return c.resume()},c.resume=function(){return c.alpha(.1)},c.stop=function(){return c.alpha(0)},c.drag=function(){return e||(e=Hr.behavior.drag().origin(r).on("dragstart.force",Nn).on("drag.force",n).on("dragend.force",An)),arguments.length?void this.on("mouseover.force",Tn).on("mouseout.force",qn).call(e):e},Hr.rebind(c,l,"on")};var ei=20,ri=1;Hr.layout.partition=function(){function t(n,e,r,u){var i=n.children;if(n.x=e,n.y=n.depth*u,n.dx=r,n.dy=u,i&&(a=i.length)){var a,o,c,l=-1;for(r=n.value?r/n.value:0;a>++l;)t(o=i[l],e,c=o.value*r,u),e+=c}}function n(t){var e=t.children,r=0;if(e&&(u=e.length))for(var u,i=-1;u>++i;)r=Math.max(r,n(e[i]));return 1+r}function e(e,i){var a=r.call(this,e,i);return t(a[0],0,u[0],u[1]/n(a[0])),a}var r=Hr.layout.hierarchy(),u=[1,1];return e.size=function(t){return arguments.length?(u=t,e):u},In(e,r)},Hr.layout.pie=function(){function t(i){var a=i.map(function(e,r){return+n.call(t,e,r)}),o=+("function"==typeof r?r.apply(this,arguments):r),c=(("function"==typeof u?u.apply(this,arguments):u)-r)/Hr.sum(a),l=Hr.range(i.length);null!=e&&l.sort(e===ui?function(t,n){return a[n]-a[t]}:function(t,n){return e(i[t],i[n])});var f=[];return l.forEach(function(t){var n;f[t]={data:i[t],value:n=a[t],startAngle:o,endAngle:o+=n*c}}),f}var n=Number,e=ui,r=0,u=2*Lr;return t.value=function(e){return arguments.length?(n=e,t):n},t.sort=function(n){return arguments.length?(e=n,t):e},t.startAngle=function(n){return arguments.length?(r=n,t):r},t.endAngle=function(n){return arguments.length?(u=n,t):u},t};var ui={};Hr.layout.stack=function(){function t(r,c){var l=r.map(function(e,r){return n.call(t,e,r)}),f=l.map(function(n){return n.map(function(n,e){return[a.call(t,n,e),o.call(t,n,e)]})}),s=e.call(t,f,c);l=Hr.permute(l,s),f=Hr.permute(f,s);var h,g,p,d=u.call(t,f,c),m=l.length,v=l[0].length;for(g=0;v>g;++g)for(i.call(t,l[0][g],p=d[g],f[0][g][1]),h=1;m>h;++h)i.call(t,l[h][g],p+=f[h-1][g][1],f[h][g][1]);return r}var n=r,e=Fn,u=Hn,i=Ln,a=zn,o=Dn;return t.values=function(e){return arguments.length?(n=e,t):n},t.order=function(n){return arguments.length?(e="function"==typeof n?n:ii.get(n)||Fn,t):e},t.offset=function(n){return arguments.length?(u="function"==typeof n?n:ai.get(n)||Hn,t):u},t.x=function(n){return arguments.length?(a=n,t):a},t.y=function(n){return arguments.length?(o=n,t):o},t.out=function(n){return arguments.length?(i=n,t):i},t};var ii=Hr.map({"inside-out":function(t){var n,e,r=t.length,u=t.map(jn),i=t.map(Pn),a=Hr.range(r).sort(function(t,n){return u[t]-u[n]}),o=0,c=0,l=[],f=[];for(n=0;r>n;++n)e=a[n],c>o?(o+=i[e],l.push(e)):(c+=i[e],f.push(e));return f.reverse().concat(l)},reverse:function(t){return Hr.range(t.length).reverse()},"default":Fn}),ai=Hr.map({silhouette:function(t){var n,e,r,u=t.length,i=t[0].length,a=[],o=0,c=[];for(e=0;i>e;++e){for(n=0,r=0;u>n;n++)r+=t[n][e][1];r>o&&(o=r),a.push(r)}for(e=0;i>e;++e)c[e]=(o-a[e])/2;return c},wiggle:function(t){var n,e,r,u,i,a,o,c,l,f=t.length,s=t[0],h=s.length,g=[];for(g[0]=c=l=0,e=1;h>e;++e){for(n=0,u=0;f>n;++n)u+=t[n][e][1];for(n=0,i=0,o=s[e][0]-s[e-1][0];f>n;++n){for(r=0,a=(t[n][e][1]-t[n][e-1][1])/(2*o);n>r;++r)a+=(t[r][e][1]-t[r][e-1][1])/o;i+=a*t[n][e][1]}g[e]=c-=u?i/u*o:0,l>c&&(l=c)}for(e=0;h>e;++e)g[e]-=l;return g},expand:function(t){var n,e,r,u=t.length,i=t[0].length,a=1/u,o=[];for(e=0;i>e;++e){for(n=0,r=0;u>n;n++)r+=t[n][e][1];if(r)for(n=0;u>n;n++)t[n][e][1]/=r;else for(n=0;u>n;n++)t[n][e][1]=a}for(e=0;i>e;++e)o[e]=0;return o},zero:Hn});Hr.layout.histogram=function(){function t(t,i){for(var a,o,c=[],l=t.map(e,this),f=r.call(this,l,i),s=u.call(this,f,l,i),h=(i=-1,l.length),g=s.length-1,p=n?1:1/h;g>++i;)(a=c[i]=[]).dx=s[i+1]-(a.x=s[i]),a.y=0;if(g>0)for(i=-1;h>++i;)(o=l[i])>=f[0]&&f[1]>=o&&((a=c[Hr.bisect(s,o,1,g)-1]).y+=p,a.push(t[i]));return c}var n=!0,e=Number,r=Un,u=On;return t.value=function(n){return arguments.length?(e=n,t):e},t.range=function(n){return arguments.length?(r=i(n),t):r},t.bins=function(n){return arguments.length?(u="number"==typeof n?function(t){return Yn(t,n)}:i(n),t):u},t.frequency=function(e){return arguments.length?(n=!!e,t):n},t},Hr.layout.hierarchy=function(){function t(n,a,o){var c=u.call(e,n,a);if(n.depth=a,o.push(n),c&&(l=c.length)){for(var l,f,s=-1,h=n.children=[],g=0,p=a+1;l>++s;)(f=t(c[s],p,o)).parent=n,h.push(f),g+=f.value;r&&h.sort(r),i&&(n.value=g)}else i&&(n.value=+i.call(e,n,a)||0);return n}function n(t,r){var u=t.children,a=0;if(u&&(o=u.length))for(var o,c=-1,l=r+1;o>++c;)a+=n(u[c],l);else i&&(a=+i.call(e,t,r)||0);return i&&(t.value=a),a}function e(n){var e=[];return t(n,0,e),e}var r=Xn,u=Vn,i=Zn;return e.sort=function(t){return arguments.length?(r=t,e):r},e.children=function(t){return arguments.length?(u=t,e):u},e.value=function(t){return arguments.length?(i=t,e):i},e.revalue=function(t){return n(t,0),t},e},Hr.layout.pack=function(){function t(t,u){var i=n.call(this,t,u),a=i[0];a.x=0,a.y=0,he(a,function(t){t.r=Math.sqrt(t.value)}),he(a,Wn);var o=r[0],c=r[1],l=Math.max(2*a.r/o,2*a.r/c);if(e>0){var f=e*l/2;he(a,function(t){t.r+=f}),he(a,Wn),he(a,function(t){t.r-=f}),l=Math.max(2*a.r/o,2*a.r/c)}return ne(a,o/2,c/2,1/l),i}var n=Hr.layout.hierarchy().sort($n),e=0,r=[1,1];return t.size=function(n){return arguments.length?(r=n,t):r},t.padding=function(n){return arguments.length?(e=+n,t):e},In(t,n)},Hr.layout.cluster=function(){function t(t,u){var i,a=n.call(this,t,u),o=a[0],c=0;he(o,function(t){var n=t.children;n&&n.length?(t.x=function(t){return t.reduce(function(t,n){return t+n.x},0)/t.length}(n),t.y=function(t){return 1+Hr.max(t,function(t){return t.y})}(n)):(t.x=i?c+=e(t,i):0,t.y=0,i=t)});var l=re(o),f=ue(o),s=l.x-e(l,f)/2,h=f.x+e(f,l)/2;return he(o,function(t){t.x=(t.x-s)/(h-s)*r[0],t.y=(1-(o.y?t.y/o.y:1))*r[1]}),a}var n=Hr.layout.hierarchy().sort(null).value(null),e=ie,r=[1,1];return t.separation=function(n){return arguments.length?(e=n,t):e},t.size=function(n){return arguments.length?(r=n,t):r},In(t,n)},Hr.layout.tree=function(){function t(t,u){function i(t,n,r){if(n){for(var u,i=t,a=t,o=n,c=t.parent.children[0],l=i._tree.mod,f=a._tree.mod,s=o._tree.mod,h=c._tree.mod;o=oe(o),i=ae(i),o&&i;)c=ae(c),(a=oe(a))._tree.ancestor=t,(u=o._tree.prelim+s-i._tree.prelim-l+e(o,i))>0&&(ge(pe(o,t,r),t,u),l+=u,f+=u),s+=o._tree.mod,l+=i._tree.mod,h+=c._tree.mod,f+=a._tree.mod;o&&!oe(a)&&(a._tree.thread=o,a._tree.mod+=s-f),i&&!ae(c)&&(c._tree.thread=i,c._tree.mod+=l-h,r=t)}return r}var a=n.call(this,t,u),o=a[0];he(o,function(t,n){t._tree={ancestor:t,prelim:0,mod:0,change:0,shift:0,number:n?n._tree.number+1:0}}),function p(t,n){var r=t.children,u=t._tree;if(r&&(a=r.length)){for(var a,o,c,l=r[0],f=l,s=-1;a>++s;)p(c=r[s],o),f=i(c,o,f),o=c;!function(t){for(var n,e=0,r=0,u=t.children,i=u.length;--i>=0;)(n=u[i]._tree).prelim+=e,n.mod+=e,e+=n.shift+(r+=n.change)}(t);var h=.5*(l._tree.prelim+c._tree.prelim);n?(u.prelim=n._tree.prelim+e(t,n),u.mod=u.prelim-h):u.prelim=h}else n&&(u.prelim=n._tree.prelim+e(t,n))}(o),function d(t,n){t.x=t._tree.prelim+n;var e=t.children;if(e&&(r=e.length)){var r,u=-1;for(n+=t._tree.mod;r>++u;)d(e[u],n)}}(o,-o._tree.prelim);var c=ce(o,fe),l=ce(o,le),f=ce(o,se),s=c.x-e(c,l)/2,h=l.x+e(l,c)/2,g=f.depth||1;return he(o,function(t){t.x=(t.x-s)/(h-s)*r[0],t.y=t.depth/g*r[1],delete t._tree}),a}var n=Hr.layout.hierarchy().sort(null).value(null),e=ie,r=[1,1];return t.separation=function(n){return arguments.length?(e=n,t):e},t.size=function(n){return arguments.length?(r=n,t):r},In(t,n)},Hr.layout.treemap=function(){function t(t,n){for(var e,r,u=-1,i=t.length;i>++u;)r=(e=t[u]).value*(0>n?0:n),e.area=isNaN(r)||0>=r?0:r}function n(e){var i=e.children;if(i&&i.length){var a,o,c,l=s(e),f=[],h=i.slice(),p=1/0,d="slice"===g?l.dx:"dice"===g?l.dy:"slice-dice"===g?1&e.depth?l.dy:l.dx:Math.min(l.dx,l.dy);for(t(h,l.dx*l.dy/e.value),f.area=0;(c=h.length)>0;)f.push(a=h[c-1]),f.area+=a.area,"squarify"!==g||p>=(o=r(f,d))?(h.pop(),p=o):(f.area-=f.pop().area,u(f,d,l,!1),d=Math.min(l.dx,l.dy),f.length=f.area=0,p=1/0);f.length&&(u(f,d,l,!0),f.length=f.area=0),i.forEach(n)}}function e(n){var r=n.children;if(r&&r.length){var i,a=s(n),o=r.slice(),c=[];for(t(o,a.dx*a.dy/n.value),c.area=0;i=o.pop();)c.push(i),c.area+=i.area,null!=i.z&&(u(c,i.z?a.dx:a.dy,a,!o.length),c.length=c.area=0);r.forEach(e)}}function r(t,n){for(var e,r=t.area,u=0,i=1/0,a=-1,o=t.length;o>++a;)(e=t[a].area)&&(i>e&&(i=e),e>u&&(u=e));return n*=n,(r*=r)?Math.max(n*u*p/r,r/(n*i*p)):1/0}function u(t,n,e,r){var u,i=-1,a=t.length,o=e.x,l=e.y,f=n?c(t.area/n):0;if(n==e.dx){for((r||f>e.dy)&&(f=e.dy);a>++i;)(u=t[i]).x=o,u.y=l,u.dy=f,o+=u.dx=Math.min(e.x+e.dx-o,f?c(u.area/f):0);u.z=!0,u.dx+=e.x+e.dx-o,e.y+=f,e.dy-=f}else{for((r||f>e.dx)&&(f=e.dx);a>++i;)(u=t[i]).x=o,u.y=l,u.dx=f,l+=u.dy=Math.min(e.y+e.dy-l,f?c(u.area/f):0);u.z=!1,u.dy+=e.y+e.dy-l,e.x+=f,e.dx-=f}}function i(r){var u=a||o(r),i=u[0];return i.x=0,i.y=0,i.dx=l[0],i.dy=l[1],a&&o.revalue(i),t([i],i.dx*i.dy/i.value),(a?e:n)(i),h&&(a=u),u}var a,o=Hr.layout.hierarchy(),c=Math.round,l=[1,1],f=null,s=de,h=!1,g="squarify",p=.5*(1+Math.sqrt(5));return i.size=function(t){return arguments.length?(l=t,i):l},i.padding=function(t){function n(n){var e=t.call(i,n,n.depth);return null==e?de(n):me(n,"number"==typeof e?[e,e,e,e]:e)}function e(n){return me(n,t)}return arguments.length?(s=null==(f=t)?de:"function"==(r=typeof t)?n:"number"===r?(t=[t,t,t,t],e):e,i):f;var r},i.round=function(t){return arguments.length?(c=t?Math.round:Number,i):c!=Number},i.sticky=function(t){return arguments.length?(h=t,a=null,i):h},i.ratio=function(t){return arguments.length?(p=t,i):p},i.mode=function(t){return arguments.length?(g=t+"",i):g},In(i,o)},Hr.csv=ve(",","text/csv"),Hr.tsv=ve(" ","text/tab-separated-values"),Hr.geo={},Hr.geo.stream=function(t,n){oi.hasOwnProperty(t.type)?oi[t.type](t,n):ye(t,n)};var oi={Feature:function(t,n){ye(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,u=e.length;u>++r;)ye(e[r].geometry,n)}},ci={Sphere:function(t,n){n.sphere()},Point:function(t,n){var e=t.coordinates;n.point(e[0],e[1])},MultiPoint:function(t,n){for(var e,r=t.coordinates,u=-1,i=r.length;i>++u;)e=r[u],n.point(e[0],e[1])},LineString:function(t,n){Me(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,u=e.length;u>++r;)Me(e[r],n,0)},Polygon:function(t,n){be(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,u=e.length;u>++r;)be(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,u=e.length;u>++r;)ye(e[r],n)}};Hr.geo.albersUsa=function(){function t(t){return function(t){var i=t[0],a=t[1];return a>50?e:-140>i?r:21>a?u:n}(t)(t)}var n=Hr.geo.albers(),e=Hr.geo.albers().rotate([160,0]).center([0,60]).parallels([55,65]),r=Hr.geo.albers().rotate([160,0]).center([0,20]).parallels([8,18]),u=Hr.geo.albers().rotate([60,0]).center([0,10]).parallels([8,18]);return t.scale=function(i){return arguments.length?(n.scale(i),e.scale(.6*i),r.scale(i),u.scale(1.5*i),t.translate(n.translate())):n.scale()},t.translate=function(i){if(!arguments.length)return n.translate();var a=n.scale(),o=i[0],c=i[1];return n.translate(i),e.translate([o-.4*a,c+.17*a]),r.translate([o-.19*a,c+.2*a]),u.translate([o+.58*a,c+.43*a]),t},t.scale(n.scale())},(Hr.geo.albers=function(){var t=29.5*jr,n=45.5*jr,e=ar(Te),r=e(t,n);return r.parallels=function(r){return arguments.length?e(t=r[0]*jr,n=r[1]*jr):[t*Pr,n*Pr]},r.rotate([98,0]).center([0,38]).scale(1e3)}).raw=Te;var li=sr(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(Hr.geo.azimuthalEqualArea=function(){return ir(li)}).raw=li;var fi=sr(function(t){var n=Math.acos(t);return n&&n/Math.sin(n)},r);(Hr.geo.azimuthalEquidistant=function(){return ir(fi)}).raw=fi,Hr.geo.bounds=qe(r),Hr.geo.centroid=function(t){var n;return si=hi=gi=pi=di=0,Hr.geo.stream(t,mi),hi&&Math.abs(n=Math.sqrt(gi*gi+pi*pi+di*di))>Fr?[Math.atan2(pi,gi)*Pr,Math.asin(Math.max(-1,Math.min(1,di/n)))*Pr]:void 0};var si,hi,gi,pi,di,mi={sphere:function(){2>si&&(si=2,hi=gi=pi=di=0)},point:Ce,lineStart:De,lineEnd:Le,polygonStart:function(){2>si&&(si=2,hi=gi=pi=di=0),mi.lineStart=ze},polygonEnd:function(){mi.lineStart=De}};Hr.geo.circle=function(){function t(){var t="function"==typeof r?r.apply(this,arguments):r,n=or(-t[0]*jr,-t[1]*jr,0).invert,u=[];return e(null,null,1,{point:function(t,e){u.push(t=n(t,e)),t[0]*=Pr,t[1]*=Pr}}),{type:"Polygon",coordinates:[u]}}var n,e,r=[0,0],u=6;return t.origin=function(n){return arguments.length?(r=n,t):r},t.angle=function(r){return arguments.length?(e=Fe((n=+r)*jr,u*jr),t):n},t.precision=function(r){return arguments.length?(e=Fe(n*jr,(u=+r)*jr),t):u},t.angle(90)};var vi=je(u,function(t){var n,e=NaN,r=NaN,u=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(i,a){var o=i>0?Lr:-Lr,c=Math.abs(i-e);Fr>Math.abs(c-Lr)?(t.point(e,r=(r+a)/2>0?Lr/2:-Lr/2),t.point(u,r),t.lineEnd(),t.lineStart(),t.point(o,r),t.point(i,r),n=0):u!==o&&c>=Lr&&(Fr>Math.abs(e-u)&&(e-=u*Fr),Fr>Math.abs(i-o)&&(i-=o*Fr),r=function(t,n,e,r){var u,i,a=Math.sin(t-e);return Math.abs(a)>Fr?Math.atan((Math.sin(n)*(i=Math.cos(r))*Math.sin(e)-Math.sin(r)*(u=Math.cos(n))*Math.sin(t))/(u*i*a)):(n+r)/2}(e,r,i,a),t.point(u,r),t.lineEnd(),t.lineStart(),t.point(o,r),n=0),t.point(e=i,r=a),u=o},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}},function(t,n,e,r){var u;if(null==t)u=e*Lr/2,r.point(-Lr,u),r.point(0,u),r.point(Lr,u),r.point(Lr,0),r.point(Lr,-u),r.point(0,-u),r.point(-Lr,-u),r.point(-Lr,0),r.point(-Lr,u);else if(Math.abs(t[0]-n[0])>Fr){var i=(t[0]<n[0]?1:-1)*Lr;u=e*i/2,r.point(-i,u),r.point(0,u),r.point(i,u)}else r.point(n[0],n[1])});(Hr.geo.equirectangular=function(){return ir(Ve).scale(250/Lr)}).raw=Ve.invert=Ve;var yi=sr(function(t){return 1/t},Math.atan);(Hr.geo.gnomonic=function(){return ir(yi)}).raw=yi,Hr.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:n()}}function n(){return Hr.range(Math.ceil(r/c)*c,e,c).map(a).concat(Hr.range(Math.ceil(i/l)*l,u,l).map(o))}var e,r,u,i,a,o,c=22.5,l=c,f=2.5;return t.lines=function(){return n().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[a(r).concat(o(u).slice(1),a(e).reverse().slice(1),o(i).reverse().slice(1))]}},t.extent=function(n){return arguments.length?(r=+n[0][0],e=+n[1][0],i=+n[0][1],u=+n[1][1],r>e&&(n=r,r=e,e=n),i>u&&(n=i,i=u,u=n),t.precision(f)):[[r,i],[e,u]]},t.step=function(n){return arguments.length?(c=+n[0],l=+n[1],t):[c,l]},t.precision=function(n){return arguments.length?(a=Ze(i,u,f=+n),o=Xe(r,e,f),t):f},t.extent([[-180+Fr,-90+Fr],[180-Fr,90-Fr]])},Hr.geo.interpolate=function(t,n){return function(t,n,e,r){var u=Math.cos(n),i=Math.sin(n),a=Math.cos(r),o=Math.sin(r),c=u*Math.cos(t),l=u*Math.sin(t),f=a*Math.cos(e),s=a*Math.sin(e),h=2*Math.asin(Math.sqrt(Be(r-n)+u*a*Be(e-t))),g=1/Math.sin(h),p=h?function(t){var n=Math.sin(t*=h)*g,e=Math.sin(h-t)*g,r=e*c+n*f,u=e*l+n*s,a=e*i+n*o;return[Math.atan2(u,r)*Pr,Math.atan2(a,Math.sqrt(r*r+u*u))*Pr]}:function(){return[t*Pr,n*Pr]};return p.distance=h,p}(t[0]*jr,t[1]*jr,n[0]*jr,n[1]*jr)},Hr.geo.greatArc=function(){function e(){for(var t=r||a.apply(this,arguments),n=u||o.apply(this,arguments),e=i||Hr.geo.interpolate(t,n),l=0,f=c/e.distance,s=[t];1>(l+=f);)s.push(e(l));return s.push(n),{type:"LineString",coordinates:s}}var r,u,i,a=n,o=t,c=6*jr;return e.distance=function(){return(i||Hr.geo.interpolate(r||a.apply(this,arguments),u||o.apply(this,arguments))).distance},e.source=function(t){return arguments.length?(a=t,i=(r="function"==typeof t?null:t)&&u?Hr.geo.interpolate(r,u):null,e):a},e.target=function(t){return arguments.length?(o=t,u="function"==typeof t?null:t,i=r&&u?Hr.geo.interpolate(r,u):null,e):o},e.precision=function(t){return arguments.length?(c=t*jr,e):c/jr},e},$e.invert=function(t,n){return[2*Lr*t,2*Math.atan(Math.exp(2*Lr*n))-Lr/2]},(Hr.geo.mercator=function(){return ir($e).scale(500)}).raw=$e;var Mi=sr(function(){return 1},Math.asin);(Hr.geo.orthographic=function(){return ir(Mi)}).raw=Mi,Hr.geo.path=function(){function t(t){return t&&Hr.geo.stream(t,u(i.pointRadius("function"==typeof a?+a.apply(this,arguments):a))),i.result()}var n,e,u,i,a=4.5;return t.area=function(t){return bi=0,Hr.geo.stream(t,u(_i)),bi},t.centroid=function(t){return si=gi=pi=di=0,Hr.geo.stream(t,u(wi)),di?[gi/di,pi/di]:void 0},t.bounds=function(t){return qe(u)(t)},t.projection=function(e){return arguments.length?(u=(n=e)?e.stream||Ge(e):r,t):n},t.context=function(n){return arguments.length?(i=null==(e=n)?new Ke:new We(n),t):e},t.pointRadius=function(n){return arguments.length?(a="function"==typeof n?n:+n,t):a},t.projection(Hr.geo.albersUsa()).context(null)};var bi,xi,_i={point:At,lineStart:At,lineEnd:At,polygonStart:function(){xi=0,_i.lineStart=Qe},polygonEnd:function(){_i.lineStart=_i.lineEnd=_i.point=At,bi+=Math.abs(xi/2)}},wi={point:tr,lineStart:nr,lineEnd:er,polygonStart:function(){wi.lineStart=rr},polygonEnd:function(){wi.point=tr,wi.lineStart=nr,wi.lineEnd=er}};Hr.geo.area=function(t){return Si=0,Hr.geo.stream(t,Ni),Si};var Si,ki,Ei,Ni={sphere:function(){Si+=4*Lr},point:At,lineStart:At,lineEnd:At,polygonStart:function(){ki=1,Ei=0,Ni.lineStart=ur},polygonEnd:function(){var t=2*Math.atan2(Ei,ki);Si+=0>t?4*Lr+t:t,Ni.lineStart=Ni.lineEnd=Ni.point=At}};Hr.geo.projection=ir,Hr.geo.projectionMutator=ar;var Ai=sr(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(Hr.geo.stereographic=function(){return ir(Ai)}).raw=Ai,Hr.geom={},Hr.geom.hull=function(t){if(3>t.length)return[];var n,e,r,u,i,a,o,c,l,f,s=t.length,h=s-1,g=[],p=[],d=0;for(n=1;s>n;++n)t[n][1]<t[d][1]?d=n:t[n][1]==t[d][1]&&(d=t[n][0]<t[d][0]?n:d);for(n=0;s>n;++n)n!==d&&(u=t[n][1]-t[d][1],r=t[n][0]-t[d][0],g.push({angle:Math.atan2(u,r),index:n}));for(g.sort(function(t,n){return t.angle-n.angle}),l=g[0].angle,c=g[0].index,o=0,n=1;h>n;++n)e=g[n].index,l==g[n].angle?(r=t[c][0]-t[d][0])*r+(u=t[c][1]-t[d][1])*u>=(i=t[e][0]-t[d][0])*i+(a=t[e][1]-t[d][1])*a?g[n].index=-1:(g[o].index=-1,l=g[n].angle,o=n,c=e):(l=g[n].angle,o=n,c=e);for(p.push(d),n=0,e=0;2>n;++e)-1!==g[e].index&&(p.push(g[e].index),n++);for(f=p.length;h>e;++e)if(-1!==g[e].index){for(;!hr(p[f-2],p[f-1],g[e].index,t);)--f;p[f++]=g[e].index}var m=[];for(n=0;f>n;++n)m.push(t[p[n]]);return m},Hr.geom.polygon=function(t){return t.area=function(){for(var n=0,e=t.length,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];e>++n;)r+=t[n-1][1]*t[n][0]-t[n-1][0]*t[n][1];return.5*r},t.centroid=function(n){var e,r,u=-1,i=t.length,a=0,o=0,c=t[i-1];for(arguments.length||(n=-1/(6*t.area()));i>++u;)e=c,c=t[u],r=e[0]*c[1]-c[0]*e[1],a+=(e[0]+c[0])*r,o+=(e[1]+c[1])*r;return[a*n,o*n]},t.clip=function(n){for(var e,r,u,i,a,o,c=-1,l=t.length,f=t[l-1];l>++c;){for(e=n.slice(),n.length=0,i=t[c],a=e[(u=e.length)-1],r=-1;u>++r;)gr(o=e[r],f,i)?(gr(a,f,i)||n.push(pr(a,o,f,i)),n.push(o)):gr(a,f,i)&&n.push(pr(a,o,f,i)),a=o;f=i}return n},t},Hr.geom.voronoi=function(t){var n=t.map(function(){return[]}),e=1e6;return dr(t,function(t){var r,u,i,a,o,c;1===t.a&&t.b>=0?(r=t.ep.r,u=t.ep.l):(r=t.ep.l,u=t.ep.r),1===t.a?(o=r?r.y:-e,i=t.c-t.b*o,c=u?u.y:e,a=t.c-t.b*c):(i=r?r.x:-e,o=t.c-t.a*i,a=u?u.x:e,c=t.c-t.a*a);var l=[i,o],f=[a,c];n[t.region.l.index].push(l,f),n[t.region.r.index].push(l,f)}),(n=n.map(function(n,e){var r=t[e][0],u=t[e][1],i=n.map(function(t){return Math.atan2(t[0]-r,t[1]-u)}),a=Hr.range(n.length).sort(function(t,n){return i[t]-i[n]});return a.filter(function(t,n){return!n||i[t]-i[a[n-1]]>Fr}).map(function(t){return n[t]})})).forEach(function(n,r){var u=n.length;if(!u)return n.push([-e,-e],[-e,e],[e,e],[e,-e]);if(!(u>2)){var i=t[r],a=n[0],o=n[1],c=i[0],l=i[1],f=a[0],s=a[1],h=o[0],g=o[1],p=Math.abs(h-f),d=g-s;if(Fr>Math.abs(d)){var m=s>l?-e:e;n.push([-e,m],[e,m])}else if(Fr>p){var v=f>c?-e:e;n.push([v,-e],[v,e])}else{m=(f-c)*(g-s)>(h-f)*(s-l)?e:-e;var y=Math.abs(d)-p;Fr>Math.abs(y)?n.push([0>d?m:-m,m]):(y>0&&(m*=-1),n.push([-e,m],[e,m]))}}}),n};var Ti={l:"r",r:"l"};Hr.geom.delaunay=function(t){var n=t.map(function(){return[]}),e=[];return dr(t,function(e){n[e.region.l.index].push(t[e.region.r.index])}),n.forEach(function(n,r){var u=t[r],i=u[0],a=u[1];n.forEach(function(t){t.angle=Math.atan2(t[0]-i,t[1]-a)}),n.sort(function(t,n){return t.angle-n.angle});for(var o=0,c=n.length-1;c>o;o++)e.push([u,n[o],n[o+1]])}),e},Hr.geom.quadtree=function(t,n,e,r,u){function i(t,n,e,r,u,i){if(!isNaN(n.x)&&!isNaN(n.y))if(t.leaf){var o=t.point;o?(.01>Math.abs(o.x-n.x)+Math.abs(o.y-n.y)||(t.point=null,a(t,o,e,r,u,i)),a(t,n,e,r,u,i)):t.point=n}else a(t,n,e,r,u,i)}function a(t,n,e,r,u,a){var o=.5*(e+u),c=.5*(r+a),l=n.x>=o,f=n.y>=c,s=(f<<1)+l;t.leaf=!1,l?e=o:u=o,f?r=c:a=c,i(t=t.nodes[s]||(t.nodes[s]={leaf:!0,nodes:[],point:null}),n,e,r,u,a)}var o,c=-1,l=t.length;if(5>arguments.length)if(3===arguments.length)u=e,r=n,e=n=0;else for(n=e=1/0,r=u=-1/0;l>++c;)o=t[c],n>o.x&&(n=o.x),e>o.y&&(e=o.y),o.x>r&&(r=o.x),o.y>u&&(u=o.y);var f=r-n,s=u-e;f>s?u=e+f:r=n+s;var h={leaf:!0,nodes:[],point:null,add:function(t){i(h,t,n,e,r,u)},visit:function(t){mr(t,h,n,e,r,u)}};return t.forEach(h.add),h},Hr.time={};var qi=Date;vr.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Ci.setUTCDate.apply(this._,arguments)},setDay:function(){Ci.setUTCDay.apply(this._,arguments)},setFullYear:function(){Ci.setUTCFullYear.apply(this._,arguments)},setHours:function(){Ci.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Ci.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Ci.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Ci.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Ci.setUTCSeconds.apply(this._,arguments)},setTime:function(){Ci.setTime.apply(this._,arguments)}};var Ci=Date.prototype,zi=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Di=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Li=["January","February","March","April","May","June","July","August","September","October","November","December"],Fi=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Hr.time.format=function(t){function n(n){for(var r,u,i,a=[],o=-1,c=0;e>++o;)37===t.charCodeAt(o)&&(a.push(t.substring(c,o)),null!=(u=Ui[r=t.charAt(++o)])&&(r=t.charAt(++o)),(i=Ii[r])&&(r=i(n,null==u?"e"===r?" ":"0":u)),a.push(r),c=o+1);return a.push(t.substring(c,o)),a.join("")}var e=t.length;return n.parse=function(n){var e={y:1900,m:0,d:1,H:0,M:0,S:0,L:0};if(yr(e,t,n,0)!=n.length)return null;"p"in e&&(e.H=e.H%12+12*e.p);var r=new qi;return r.setFullYear(e.y,e.m,e.d),r.setHours(e.H,e.M,e.S,e.L),r},n.toString=function(){return t},n};var Hi=Mr(zi),ji=Mr(Di),Pi=Mr(Li),Ri=br(Li),Oi=Mr(Fi),Yi=br(Fi),Ui={"-":"",_:" ",0:"0"},Ii={a:function(t){return Di[t.getDay()]},A:function(t){return zi[t.getDay()]},b:function(t){return Fi[t.getMonth()]},B:function(t){return Li[t.getMonth()]},c:Hr.time.format("%a %b %e %X %Y"),d:function(t,n){return xr(t.getDate(),n,2)},e:function(t,n){return xr(t.getDate(),n,2)},H:function(t,n){return xr(t.getHours(),n,2)},I:function(t,n){return xr(t.getHours()%12||12,n,2)},j:function(t,n){return xr(1+Hr.time.dayOfYear(t),n,3)},L:function(t,n){return xr(t.getMilliseconds(),n,3)},m:function(t,n){return xr(t.getMonth()+1,n,2)},M:function(t,n){return xr(t.getMinutes(),n,2)},p:function(t){return t.getHours()>=12?"PM":"AM"},S:function(t,n){return xr(t.getSeconds(),n,2)},U:function(t,n){return xr(Hr.time.sundayOfYear(t),n,2)},w:function(t){return t.getDay()},W:function(t,n){return xr(Hr.time.mondayOfYear(t),n,2)},x:Hr.time.format("%m/%d/%Y"),X:Hr.time.format("%H:%M:%S"),y:function(t,n){return xr(t.getFullYear()%100,n,2)},Y:function(t,n){return xr(t.getFullYear()%1e4,n,4)},Z:function(t){var n=t.getTimezoneOffset(),e=n>0?"-":"+",r=~~(Math.abs(n)/60),u=Math.abs(n)%60;return e+xr(r,"0",2)+xr(u,"0",2)},"%":function(){return"%"}},Vi={a:function(t,n,e){ji.lastIndex=0;var r=ji.exec(n.substring(e));return r?e+=r[0].length:-1},A:function(t,n,e){Hi.lastIndex=0;var r=Hi.exec(n.substring(e));return r?e+=r[0].length:-1},b:function(t,n,e){Oi.lastIndex=0;var r=Oi.exec(n.substring(e));return r?(t.m=Yi.get(r[0].toLowerCase()),e+=r[0].length):-1},B:function(t,n,e){Pi.lastIndex=0;var r=Pi.exec(n.substring(e));return r?(t.m=Ri.get(r[0].toLowerCase()),e+=r[0].length):-1},c:function(t,n,e){return yr(t,""+Ii.c,n,e)},d:_r,e:_r,H:wr,I:wr,L:function(t,n,e){Zi.lastIndex=0;var r=Zi.exec(n.substring(e,e+3));return r?(t.L=+r[0],e+=r[0].length):-1},m:function(t,n,e){Zi.lastIndex=0;var r=Zi.exec(n.substring(e,e+2));return r?(t.m=r[0]-1,e+=r[0].length):-1},M:function(t,n,e){Zi.lastIndex=0;var r=Zi.exec(n.substring(e,e+2));return r?(t.M=+r[0],e+=r[0].length):-1},p:function(t,n,e){var r=Xi.get(n.substring(e,e+=2).toLowerCase());return null==r?-1:(t.p=r,e)},S:function(t,n,e){Zi.lastIndex=0;var r=Zi.exec(n.substring(e,e+2));return r?(t.S=+r[0],e+=r[0].length):-1},x:function(t,n,e){return yr(t,""+Ii.x,n,e)},X:function(t,n,e){return yr(t,""+Ii.X,n,e)},y:function(t,n,e){Zi.lastIndex=0;var r=Zi.exec(n.substring(e,e+2));return r?(t.y=function(t){return t+(t>68?1900:2e3)}(+r[0]),e+=r[0].length):-1},Y:function(t,n,e){Zi.lastIndex=0;var r=Zi.exec(n.substring(e,e+4));return r?(t.y=+r[0],e+=r[0].length):-1}},Zi=/^\s*\d+/,Xi=Hr.map({am:0,pm:1});Hr.time.format.utc=function(t){function n(t){try{var n=new(qi=vr);return n._=t,e(n)}finally{qi=Date}}var e=Hr.time.format(t);return n.parse=function(t){try{qi=vr;var n=e.parse(t);return n&&n._}finally{qi=Date}},n.toString=e.toString,n};var Bi=Hr.time.format.utc("%Y-%m-%dT%H:%M:%S.%LZ");Hr.time.format.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Sr:Bi,Sr.parse=function(t){var n=new Date(t);return isNaN(n)?null:n},Sr.toString=Bi.toString,Hr.time.second=kr(function(t){return new qi(1e3*Math.floor(t/1e3))},function(t,n){t.setTime(t.getTime()+1e3*Math.floor(n))},function(t){return t.getSeconds()}),Hr.time.seconds=Hr.time.second.range,Hr.time.seconds.utc=Hr.time.second.utc.range,Hr.time.minute=kr(function(t){return new qi(6e4*Math.floor(t/6e4))},function(t,n){t.setTime(t.getTime()+6e4*Math.floor(n))},function(t){return t.getMinutes()}),Hr.time.minutes=Hr.time.minute.range,Hr.time.minutes.utc=Hr.time.minute.utc.range,Hr.time.hour=kr(function(t){var n=t.getTimezoneOffset()/60;return new qi(36e5*(Math.floor(t/36e5-n)+n))},function(t,n){t.setTime(t.getTime()+36e5*Math.floor(n))},function(t){return t.getHours()}),Hr.time.hours=Hr.time.hour.range,Hr.time.hours.utc=Hr.time.hour.utc.range,Hr.time.day=kr(function(t){var n=new qi(1970,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n},function(t,n){t.setDate(t.getDate()+n)},function(t){return t.getDate()-1}),Hr.time.days=Hr.time.day.range,Hr.time.days.utc=Hr.time.day.utc.range,Hr.time.dayOfYear=function(t){var n=Hr.time.year(t);return Math.floor((t-n-6e4*(t.getTimezoneOffset()-n.getTimezoneOffset()))/864e5)},["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].forEach(function(t,n){t=t.toLowerCase(),n=7-n;var e=Hr.time[t]=kr(function(t){return(t=Hr.time.day(t)).setDate(t.getDate()-(t.getDay()+n)%7),t},function(t,n){t.setDate(t.getDate()+7*Math.floor(n))},function(t){var e=Hr.time.year(t).getDay();return Math.floor((Hr.time.dayOfYear(t)+(e+n)%7)/7)-(e!==n)});Hr.time[t+"s"]=e.range,Hr.time[t+"s"].utc=e.utc.range,Hr.time[t+"OfYear"]=function(t){var e=Hr.time.year(t).getDay();return Math.floor((Hr.time.dayOfYear(t)+(e+n)%7)/7)}}),Hr.time.week=Hr.time.sunday,Hr.time.weeks=Hr.time.sunday.range,Hr.time.weeks.utc=Hr.time.sunday.utc.range,Hr.time.weekOfYear=Hr.time.sundayOfYear,Hr.time.month=kr(function(t){return(t=Hr.time.day(t)).setDate(1),t},function(t,n){t.setMonth(t.getMonth()+n)},function(t){return t.getMonth()}),Hr.time.months=Hr.time.month.range,Hr.time.months.utc=Hr.time.month.utc.range,Hr.time.year=kr(function(t){return(t=Hr.time.day(t)).setMonth(0,1),t},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t){return t.getFullYear()}),Hr.time.years=Hr.time.year.range,Hr.time.years.utc=Hr.time.year.utc.range;var $i=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Ji=[[Hr.time.second,1],[Hr.time.second,5],[Hr.time.second,15],[Hr.time.second,30],[Hr.time.minute,1],[Hr.time.minute,5],[Hr.time.minute,15],[Hr.time.minute,30],[Hr.time.hour,1],[Hr.time.hour,3],[Hr.time.hour,6],[Hr.time.hour,12],[Hr.time.day,1],[Hr.time.day,2],[Hr.time.week,1],[Hr.time.month,1],[Hr.time.month,3],[Hr.time.year,1]],Gi=[[Hr.time.format("%Y"),u],[Hr.time.format("%B"),function(t){return t.getMonth()}],[Hr.time.format("%b %d"),function(t){return 1!=t.getDate()}],[Hr.time.format("%a %d"),function(t){return t.getDay()&&1!=t.getDate()}],[Hr.time.format("%I %p"),function(t){return t.getHours()}],[Hr.time.format("%I:%M"),function(t){return t.getMinutes()}],[Hr.time.format(":%S"),function(t){return t.getSeconds()}],[Hr.time.format(".%L"),function(t){return t.getMilliseconds()}]],Ki=Hr.scale.linear(),Wi=Tr(Gi);Ji.year=function(t,n){return Ki.domain(t.map(Cr)).ticks(n).map(qr)},Hr.time.scale=function(){return Nr(Hr.scale.linear(),Ji,Wi)};var Qi=Ji.map(function(t){return[t[0].utc,t[1]]}),ta=Tr([[Hr.time.format.utc("%Y"),u],[Hr.time.format.utc("%B"),function(t){return t.getUTCMonth()}],[Hr.time.format.utc("%b %d"),function(t){return 1!=t.getUTCDate()}],[Hr.time.format.utc("%a %d"),function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],[Hr.time.format.utc("%I %p"),function(t){return t.getUTCHours()}],[Hr.time.format.utc("%I:%M"),function(t){return t.getUTCMinutes()}],[Hr.time.format.utc(":%S"),function(t){return t.getUTCSeconds()}],[Hr.time.format.utc(".%L"),function(t){return t.getUTCMilliseconds()}]]);return Qi.year=function(t,n){return Ki.domain(t.map(Dr)).ticks(n).map(zr)},Hr.time.scale.utc=function(){return Nr(Hr.scale.linear(),Qi,ta)},Hr}();
</script>
<title>Ethical Hacking Toolkit | collection of tools, cheat sheets, and resources</title>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-md-12 top-section">
<div class="follow-section">
<h3>Follow me on Twitter: <a href="https://twitter.com/0xCyberY">@0xCyberY</a><br>Star the project on Github: <a href="https://github.com/0xCyberY/ehtk">Ethical Hacking Toolkit</a></h3>
</div>
<div id="header">
Ethical Hacking Toolkit
</div>
<div class="list">
<h3>(A) - Commercial tool<br>(B) - Free or Open Source<br>(#) - Should be Tested in virtual Env. or Sandbox. </h3>
</div>
</div>
<div id="body">
</div>
<div class="row">
<div class="col-md-12">
<h4>Description</h4>
<p>Ethical Hacking Toolkit is a collection of tools, cheat sheets, and resources for Ethical hackers, Penetration Tester, and Security Researchers etc. It contains almost all tools mentioned in CEH, OSCP, eCPPT and PNPT.</p>
<h4>🛑 ATTENTION 🛑</h4>
<p>THE CREATOR IS NOT RESPONSIBLE FOR ANY ILLEGAL ACTIVITY USING THESE TOOLS. </p>
</div>
</div>
<script>function update(t){var n=tree.nodes(root).reverse();n.forEach(function(t){t.y=180*t.depth});var e=vis.selectAll("g.node").data(n,function(t){return t.id||(t.id=++i)}),r=e.enter().append("svg:g").attr("class","node").attr("transform",function(n){return"translate("+t.y0+","+t.x0+")"}).on("click",function(t){toggle(t),update(t)});r.append("svg:circle").attr("r",1e-6).style("fill",function(t){return t._children?"lightsteelblue":"#fff"}),r.append("a").attr("target","_blank").attr("xlink:href",function(t){return t.url}).append("svg:text").attr("x",function(t){return t.children||t._children?-10:10}).attr("dy",".35em").attr("text-anchor",function(t){return t.children||t._children?"end":"start"}).text(function(t){return t.name}).style("fill: rgb(0, 0, 0)",function(t){return t.free?"black":"#999"}).style("fill-opacity",1e-6),r.append("svg:title").text(function(t){return t.description});var u=e.transition().duration(duration).attr("transform",function(t){return"translate("+t.y+","+t.x+")"});u.select("circle").attr("r",6).style("fill",function(t){return t._children?"lightsteelblue":"#fff"}),u.select("text").style("fill-opacity",1);var a=e.exit().transition().duration(duration).attr("transform",function(n){return"translate("+t.y+","+t.x+")"}).remove();a.select("circle").attr("r",1e-6),a.select("text").style("fill-opacity",1e-6);var o=vis.selectAll("path.link").data(tree.links(n),function(t){return t.target.id});o.enter().insert("svg:path","g").attr("class","link").attr("d",function(n){var e={x:t.x0,y:t.y0};return diagonal({source:e,target:e})}).transition().duration(duration).attr("d",diagonal),o.transition().duration(duration).attr("d",diagonal),o.exit().transition().duration(duration).attr("d",function(n){var e={x:t.x,y:t.y};return diagonal({source:e,target:e})}).remove(),n.forEach(function(t){t.x0=t.x,t.y0=t.y})}function toggle(t){t.children?(t._children=t.children,t.children=null):(t.children=t._children,t._children=null)}var root,margin=[20,120,20,140],width=1280-margin[1]-margin[3],height=800-margin[0]-margin[2],i=0,duration=1250,tree=d3.layout.tree().size([height,width]),diagonal=d3.svg.diagonal().projection(function(t){return[t.y,t.x]}),vis=d3.select("#body").append("svg:svg").attr("width",width+margin[1]+margin[3]).attr("height",height+margin[0]+margin[2]).append("svg:g").attr("transform","translate("+margin[3]+","+margin[0]+")");d3.json("hacking.json",function(t){(root=t).x0=height/2,root.y0=0,root.children.forEach(function n(t){t.children&&(t._children=t.children,t._children.forEach(n),t.children=null)}),update(root)});</script>
</div>
</div>
</body>
</html>