marmotta-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wik...@apache.org
Subject [033/100] [abbrv] [partial] Reverting the erroneous merge by Sebastian according to the instructions in INFRA-6876
Date Fri, 13 Jun 2014 08:57:53 GMT
http://git-wip-us.apache.org/repos/asf/marmotta/blob/582abb5b/extras/webjars/sgvizler/src/main/java/META-INF/resources/webjars/sgvizler/0.5.1/lib/d3.v2.min.js
----------------------------------------------------------------------
diff --git a/extras/webjars/sgvizler/src/main/java/META-INF/resources/webjars/sgvizler/0.5.1/lib/d3.v2.min.js b/extras/webjars/sgvizler/src/main/java/META-INF/resources/webjars/sgvizler/0.5.1/lib/d3.v2.min.js
new file mode 100644
index 0000000..8f53330
--- /dev/null
+++ b/extras/webjars/sgvizler/src/main/java/META-INF/resources/webjars/sgvizler/0.5.1/lib/d3.v2.min.js
@@ -0,0 +1 @@
+(function(){function h4(b,a){try{for(var e in a){Object.defineProperty(b.prototype,e,{value:a[e],enumerable:!1})}}catch(c){b.prototype=a}}function js(b){var a=-1,e=b.length,c=[];while(++a<e){c.push(b[a])}return c}function i4(a){return Array.prototype.slice.call(a)}function gW(){}function gz(a){return a}function iE(){return this}function kk(){return !0}function ke(a){return typeof a=="function"?a:function(){return a}}function j4(b,a,c){return function(){var e=c.apply(a,arguments);return arguments.length?b:e}}function jW(a){return a!=null&&!isNaN(a)}function iq(a){return a.length}function hC(a){return a==null}function hl(a){return a.replace(/(^\s+)|(\s+$)/g,"").replace(/\s+/g," ")}function jN(b){var a=1;while(b*a%1){a*=10}return a}function i8(){}function iV(b){function c(){var g=a,f=-1,i=g.length,h;while(++f<i){(h=g[f].on)&&h.apply(this,arguments)}return b}var a=[],e=new gW;return c.on=function(g,f){var i=e.get(g),h;return arguments.length<2?i&&i.on:(i&&(i.on=null,a=a.slice(0,h=a.inde
 xOf(i)).concat(a.slice(h+1)),e.remove(g)),f&&a.push(e.set(g,{on:f})),b)},c}function hI(b,a){return a-(b?1+Math.floor(Math.log(b+Math.pow(10,1+Math.floor(Math.log(b)/Math.LN10)-a))/Math.LN10):1)}function hy(a){return a+""}function hs(b){var a=b.lastIndexOf("."),e=a>=0?b.substring(a):(a=b.length,""),c=[];while(a>0){c.push(b.substring(a-=3,a+3))}return c.reverse().join(",")+e}function jJ(b,a){return{scale:Math.pow(10,(8-a)*3),symbol:b}}function ki(a){return function(b){return b<=0?0:b>=1?1:a(b)}}function kf(a){return function(b){return 1-a(1-b)}}function j5(a){return function(b){return 0.5*(b<0.5?a(2*b):2-a(2-2*b))}}function iC(a){return a}function h7(a){return function(b){return Math.pow(b,a)}}function hO(a){return 1-Math.cos(a*Math.PI/2)}function hx(a){return Math.pow(2,10*(a-1))}function jR(a){return 1-Math.sqrt(1-a*a)}function jB(b,a){var c;return arguments.length<2&&(a=0.45),arguments.length<1?(b=1,c=a/4):c=a/(2*Math.PI)*Math.asin(1/b),function(e){return 1+b*Math.pow(2,10*-e)*Math
 .sin((e-c)*2*Math.PI/a)}}function jf(a){return a||(a=1.70158),function(b){return b*b*((a+1)*b-a)}}function iX(a){return a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+0.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+0.9375:7.5625*(a-=2.625/2.75)*a+0.984375}function ai(){d3.event.stopPropagation(),d3.event.preventDefault()}function j6(){var b=d3.event,a;while(a=b.sourceEvent){b=a}return b}function jQ(b){var a=new i8,e=0,c=arguments.length;while(++e<c){a[arguments[e]]=iV(a)}return a.of=function(g,f){return function(i){try{var h=i.sourceEvent=d3.event;i.target=b,d3.event=i,a[i.type].apply(g,f)}finally{d3.event=h}}},a}function h0(a){return a=="transform"?d3.interpolateTransform:d3.interpolate}function hN(b,a){return a=a-(b=+b)?1/(a-b):0,function(c){return(c-b)*a}}function hE(b,a){return a=a-(b=+b)?1/(a-b):0,function(c){return Math.max(0,Math.min(1,(c-b)*a))}}function hv(b,a,c){return new hm(b,a,c)}function hm(b,a,c){this.r=b,this.g=a,this.b=c}function jP(a){return a<16?"0"+Math.max(0,a).toS
 tring(16):Math.min(255,a).toString(16)}function jH(a,j,i){var h=0,g=0,f=0,e,c,b;e=/([a-z]+)\((.*)\)/i.exec(a);if(e){c=e[2].split(",");switch(e[1]){case"hsl":return i(parseFloat(c[0]),parseFloat(c[1])/100,parseFloat(c[2])/100);case"rgb":return j(jg(c[0]),jg(c[1]),jg(c[2]))}}return(b=iM.get(a))?j(b.r,b.g,b.b):(a!=null&&a.charAt(0)==="#"&&(a.length===4?(h=a.charAt(1),h+=h,g=a.charAt(2),g+=g,f=a.charAt(3),f+=f):a.length===7&&(h=a.substring(1,3),g=a.substring(3,5),f=a.substring(5,7)),h=parseInt(h,16),g=parseInt(g,16),f=parseInt(f,16)),j(h,g,f))}function jx(a,j,i){var h=Math.min(a/=255,j/=255,i/=255),g=Math.max(a,j,i),f=g-h,e,c,b=(g+h)/2;return f?(c=b<0.5?f/(g+h):f/(2-g-h),a==g?e=(j-i)/f+(j<i?6:0):j==g?e=(i-a)/f+2:e=(a-j)/f+4,e*=60):c=e=0,g9(e,c,b)}function jg(b){var a=parseFloat(b);return b.charAt(b.length-1)==="%"?Math.round(a*2.55):a}function g9(b,a,c){return new gV(b,a,c)}function gV(b,a,c){this.h=b,this.s=a,this.l=c}function kg(c,b,a){function f(i){return i>360?i-=360:i<0&&(i+=360),i
 <60?h+(g-h)*i/60:i<180?g:i<240?h+(g-h)*(240-i)/60:h}function e(i){return Math.round(f(i)*255)}var h,g;return c%=360,c<0&&(c+=360),b=b<0?0:b>1?1:b,a=a<0?0:a>1?1:a,g=a<=0.5?a*(1+b):a+b-a*b,h=2*a-g,hv(e(c+120),e(c),e(c-120))}function j8(a){return g3(a,jL),a}function jo(a){return function(){return jY(a,this)}}function i9(a){return function(){return ik(a,this)}}function ag(f,e){function i(){if(j=this.classList){return j.add(f)}var j=this.className,l=j.baseVal!=null,k=l?j.baseVal:j;c.lastIndex=0,c.test(k)||(k=hl(k+" "+f),l?j.baseVal=k:this.className=k)}function h(){if(j=this.classList){return j.remove(f)}var j=this.className,l=j.baseVal!=null,k=l?j.baseVal:j;k=hl(k.replace(c," ")),l?j.baseVal=k:this.className=k}function g(){(e.apply(this,arguments)?i:h).call(this)}var c=new RegExp("(^|\\s+)"+d3.requote(f)+"(\\s+|$)","g");if(arguments.length<2){var b=this.node();if(a=b.classList){return a.contains(f)}var a=b.className;return c.lastIndex=0,c.test(a.baseVal!=null?a.baseVal:a)}return this.eac
 h(typeof e=="function"?g:e?i:h)}function ab(a){return{__data__:a}}function ka(a){return function(){return hr(this,a)}}function j7(a){return arguments.length||(a=d3.ascending),function(c,b){return a(c&&c.__data__,b&&b.__data__)}}function jV(a){return g3(a,iz),a}function im(b,a,g){g3(b,i0);var f=new gW,e=d3.dispatch("start","end"),c=ac;return b.id=a,b.time=g,b.tween=function(i,h){return arguments.length<2?f.get(i):(h==null?f.remove(i):f.set(i,h),b)},b.ease=function(h){return arguments.length?(c=typeof h=="function"?h:d3.ease.apply(d3,arguments),b):c},b.each=function(i,h){return arguments.length<2?aa.call(b,i):(e.on(i,h),b)},d3.timer(function(h){return b.each(function(p,n,m){function r(t){return s.active>a?o():(s.active=a,f.forEach(function(v,u){(u=u.call(k,p,n))&&l.push(u)}),e.start.call(k,p,n),q(t)||d3.timer(q,0,g),1)}function q(t){if(s.active!==a){return o()}var w=(t-j)/i,v=c(w),u=l.length;while(u>0){l[--u].call(k,v)}if(w>=1){return o(),iP=a,e.end.call(k,p,n),iP=0,1}}function o(){re
 turn --s.count||delete k.__transition__,1}var l=[],k=this,j=b[m][n].delay,i=b[m][n].duration,s=k.__transition__||(k.__transition__={active:0,count:0});++s.count,j<=h?r(h):d3.timer(r,j,g)}),1},0,g),b}function jc(b,a,c){return c!=""&&ji}function i6(b,a){function e(j,i,h){var g=a.call(this,j,i);return g==null?h!=""&&ji:h!=g&&f(h,g)}function c(i,h,g){return g!=a&&f(g,a)}var f=h0(b);return typeof a=="function"?e:a==null?jc:(a+="",c)}function aa(f){var e=iP,c=ac,b=af,a=ad;iP=this.id,ac=this.ease();for(var l=0,k=this.length;l<k;l++){for(var j=this[l],i=0,h=j.length;i<h;i++){var g=j[i];g&&(af=this[l][i].delay,ad=this[l][i].duration,f.call(g=g.node,g.__data__,i,l))}}return iP=e,ac=c,af=b,ad=a,this}function jz(){var b,a=Date.now(),e=jO;while(e){b=a-e.then,b>=e.delay&&(e.flush=e.callback(b)),e=e.next}var c=jt()-a;c>24?(isFinite(c)&&(clearTimeout(jC),jC=setTimeout(jz,c)),jI=0):(jI=1,jk(jz))}function jt(){var b=null,a=jO,c=Infinity;while(a){a.flush?a=b?b.next=a.next:jO=a.next:(c=Math.min(c,a.the
 n+a.delay),a=(b=a).next)}return c}function jh(b){var a=[b.a,b.b],g=[b.c,b.d],f=jd(a),e=kd(a,g),c=jd(jp(g,a,-e))||0;a[0]*g[1]<g[0]*a[1]&&(a[0]*=-1,a[1]*=-1,f*=-1,e*=-1),this.rotate=(f?Math.atan2(a[1],a[0]):Math.atan2(-g[0],g[1]))*i5,this.translate=[b.e,b.f],this.scale=[f,c],this.skew=c?Math.atan2(e,c)*i5:0}function kd(b,a){return b[0]*a[0]+b[1]*a[1]}function jd(b){var a=Math.sqrt(kd(b,b));return a&&(b[0]/=a,b[1]/=a),a}function jp(b,a,c){return b[0]+=c*a[0],b[1]+=c*a[1],b}function id(b,a){var g=b.ownerSVGElement||b;if(g.createSVGPoint){var f=g.createSVGPoint();if(io<0&&(window.scrollX||window.scrollY)){g=d3.select(document.body).append("svg").style("position","absolute").style("top",0).style("left",0);var e=g[0][0].getScreenCTM();io=!e.f&&!e.e,g.remove()}return io?(f.x=a.pageX,f.y=a.pageY):(f.x=a.clientX,f.y=a.clientY),f=f.matrixTransform(b.getScreenCTM().inverse()),[f.x,f.y]}var c=b.getBoundingClientRect();return[a.clientX-c.left-b.clientLeft,a.clientY-c.top-b.clientTop]}function hS(
 ){}function hD(b){var a=b[0],c=b[b.length-1];return a<c?[a,c]:[c,a]}function jq(a){return a.rangeExtent?a.rangeExtent():hD(a.range())}function i1(c,b){var a=0,h=c.length-1,g=c[a],f=c[h],e;f<g&&(e=a,a=h,h=e,e=g,g=f,f=e);if(e=f-g){b=b(e),c[a]=b.floor(g),c[h]=b.ceil(f)}return c}function he(){return Math}function g0(f,e,c,b){function h(){var j=Math.min(f.length,e.length)>2?kb:kj,k=b?hE:hN;return a=j(f,e,k,c),i=j(e,f,k,d3.interpolate),g}function g(j){return a(j)}var a,i;return g.invert=function(j){return i(j)},g.domain=function(j){return arguments.length?(f=j.map(Number),h()):f},g.range=function(j){return arguments.length?(e=j,h()):e},g.rangeRound=function(j){return g.range(j).interpolate(d3.interpolateRound)},g.clamp=function(j){return arguments.length?(b=j,h()):b},g.interpolate=function(j){return arguments.length?(c=j,h()):c},g.ticks=function(j){return gy(f,j)},g.tickFormat=function(j){return iB(f,j)},g.nice=function(){return i1(f,gJ),h()},g.copy=function(){return g0(f,e,c,b)},h()}func
 tion gP(b,a){return d3.rebind(b,a,"range","rangeRound","interpolate","clamp")}function gJ(a){return a=Math.pow(10,Math.round(Math.log(a)/Math.LN10)-1),{floor:function(b){return Math.floor(b/a)*a},ceil:function(b){return Math.ceil(b/a)*a}}}function gD(b,a){var g=hD(b),f=g[1]-g[0],e=Math.pow(10,Math.floor(Math.log(f/a)/Math.LN10)),c=a/f*e;return c<=0.15?e*=10:c<=0.35?e*=5:c<=0.75&&(e*=2),g[0]=Math.ceil(g[0]/e)*e,g[1]=Math.floor(g[1]/e)*e+e*0.5,g[2]=e,g}function gy(b,a){return d3.range.apply(d3,gD(b,a))}function iB(b,a){return d3.format(",."+Math.max(0,-Math.floor(Math.log(gD(b,a)[2])/Math.LN10+0.01))+"f")}function kj(b,a,g,f){var e=g(b[0],b[1]),c=f(a[0],a[1]);return function(h){return c(e(h))}}function kb(f,e,c,b){var a=[],i=[],h=0,g=Math.min(f.length,e.length)-1;f[g]<f[0]&&(f=f.slice().reverse(),e=e.slice().reverse());while(++h<=g){a.push(c(f[h-1],f[h])),i.push(b(e[h-1],e[h]))}return function(j){var k=d3.bisect(f,j,1,g)-1;return i[k](a[k](j))}}function j2(b,a){function c(f){return b(
 a(f))}var e=a.pow;return c.invert=function(f){return e(b.invert(f))},c.domain=function(f){return arguments.length?(a=f[0]<0?hR:h9,e=a.pow,b.domain(f.map(a)),c):b.domain().map(e)},c.nice=function(){return b.domain(i1(b.domain(),he)),c},c.ticks=function(){var k=hD(b.domain()),i=[];if(k.every(isFinite)){var g=Math.floor(k[0]),f=Math.ceil(k[1]),l=e(k[0]),j=e(k[1]);if(a===hR){i.push(e(g));for(;g++<f;){for(var h=9;h>0;h--){i.push(e(g)*h)}}}else{for(;g<f;g++){for(var h=1;h<10;h++){i.push(e(g)*h)}}i.push(e(g))}for(g=0;i[g]<l;g++){}for(f=i.length;i[f-1]>j;f--){}i=i.slice(g,f)}return i},c.tickFormat=function(j,i){arguments.length<2&&(i=iw);if(arguments.length<1){return i}var h=j/c.ticks().length,g=a===hR?(f=-1e-12,Math.floor):(f=1e-12,Math.ceil),f;return function(k){return k/e(g(a(k)+f))<h?i(k):""}},c.copy=function(){return j2(b.copy(),a)},gP(c,b)}function h9(a){return Math.log(a<0?0:a)/Math.LN10}function hR(a){return -Math.log(a>0?0:-a)/Math.LN10}function hz(b,a){function c(g){return b(f(g))
 }var f=jT(a),e=jT(1/a);return c.invert=function(g){return e(b.invert(g))},c.domain=function(g){return arguments.length?(b.domain(g.map(f)),c):b.domain().map(e)},c.ticks=function(g){return gy(c.domain(),g)},c.tickFormat=function(g){return iB(c.domain(),g)},c.nice=function(){return c.domain(i1(c.domain(),gJ))},c.exponent=function(h){if(!arguments.length){return a}var g=c.domain();return f=jT(a=h),e=jT(1/a),c.domain(g)},c.copy=function(){return hz(b.copy(),a)},gP(c,b)}function jT(a){return function(b){return b<0?-Math.pow(-b,a):Math.pow(b,a)}}function d9(c,b){function f(i){return h[((a.get(i)||a.set(i,c.push(i)))-1)%h.length]}function e(j,i){return d3.range(c.length).map(function(k){return j+i*k})}var a,h,g;return f.domain=function(l){if(!arguments.length){return c}c=[],a=new gW;var k=-1,j=l.length,i;while(++k<j){a.has(i=l[k])||a.set(i,c.push(i))}return f[b.t](b.x,b.p)},f.range=function(i){return arguments.length?(h=i,g=0,b={t:"range",x:i},f):h},f.rangePoints=function(m,l){arguments.le
 ngth<2&&(l=0);var k=m[0],j=m[1],i=(j-k)/(c.length-1+l);return h=e(c.length<2?(k+j)/2:k+i*l/2,i),g=0,b={t:"rangePoints",x:m,p:l},f},f.rangeBands=function(k,n){arguments.length<2&&(n=0);var m=k[1]<k[0],l=k[m-0],j=k[1-m],i=(j-l)/(c.length+n);return h=e(l+i*n,i),m&&h.reverse(),g=i*(1-n),b={t:"rangeBands",x:k,p:n},f},f.rangeRoundBands=function(l,k){arguments.length<2&&(k=0);var o=l[1]<l[0],n=l[o-0],m=l[1-o],j=Math.floor((m-n)/(c.length+k)),i=m-n-(c.length-k)*j;return h=e(n+Math.round(i/2),j),o&&h.reverse(),g=Math.round(j*(1-k)),b={t:"rangeRoundBands",x:l,p:k},f},f.rangeBand=function(){return g},f.rangeExtent=function(){return hD(b.x)},f.copy=function(){return d9(c,b)},f.domain(c)}function hW(b,a){function e(){var g=0,i=b.length,h=a.length;f=[];while(++g<h){f[g-1]=d3.quantile(b,g/h)}return c}function c(g){return isNaN(g=+g)?NaN:a[d3.bisect(f,g)]}var f;return c.domain=function(g){return arguments.length?(b=g.filter(function(h){return !isNaN(h)}).sort(d3.ascending),e()):b},c.range=function(
 g){return arguments.length?(a=g,e()):a},c.quantiles=function(){return f},c.copy=function(){return hW(b,a)},e()}function hK(c,b,a){function f(i){return a[Math.max(0,Math.min(g,Math.floor(h*(i-c))))]}function e(){return h=a.length/(b-c),g=a.length-1,f}var h,g;return f.domain=function(i){return arguments.length?(c=+i[0],b=+i[i.length-1],e()):[c,b]},f.range=function(i){return arguments.length?(a=i,e()):a},f.copy=function(){return hK(c,b,a)},e()}function hB(b){function a(c){return +c}return a.invert=a,a.domain=a.range=function(c){return arguments.length?(b=c.map(a),a):b},a.ticks=function(c){return gy(b,c)},a.tickFormat=function(c){return iB(b,c)},a.copy=function(){return hB(b)},a}function jM(a){return a.innerRadius}function jD(a){return a.outerRadius}function jv(a){return a.startAngle}function i7(a){return a.endAngle}function iH(f){function g(k){function l(){j.push("M",i(f(r),h))}var j=[],r=[],q=-1,p=k.length,o,n=ke(e),m=ke(c);while(++q<p){b.call(this,o=k[q],q)?r.push([+n.call(this,o,q),
 +m.call(this,o,q)]):r.length&&(l(),r=[])}return r.length&&l(),j.length?j.join(""):null}var e=g5,c=iF,b=kk,a=kc,i=jX,h=0.7;return g.x=function(j){return arguments.length?(e=j,g):e},g.y=function(j){return arguments.length?(c=j,g):c},g.defined=function(j){return arguments.length?(b=j,g):b},g.interpolate=function(j){return arguments.length?(j3.has(j+="")||(j=kc),i=j3.get(a=j),g):a},g.tension=function(j){return arguments.length?(h=j,g):h},g}function g5(a){return a[0]}function iF(a){return a[1]}function jX(b){var a=0,f=b.length,e=b[0],c=[e[0],",",e[1]];while(++a<f){c.push("L",(e=b[a])[0],",",e[1])}return c.join("")}function ic(b){var a=0,f=b.length,e=b[0],c=[e[0],",",e[1]];while(++a<f){c.push("V",(e=b[a])[1],"H",e[0])}return c.join("")}function hX(b){var a=0,f=b.length,e=b[0],c=[e[0],",",e[1]];while(++a<f){c.push("H",(e=b[a])[0],"V",e[1])}return c.join("")}function hG(b,a){return b.length<4?jX(b):b[1]+jl(b.slice(1,b.length-1),i3(b,a))}function ho(b,a){return b.length<3?jX(b):b[0]+jl((b.pu
 sh(b[0]),b),i3([b[b.length-2]].concat(b,[b[1]]),a))}function jF(b,a,c){return b.length<3?jX(b):b[0]+jl(b,i3(b,a))}function jl(f,e){if(e.length<1||f.length!=e.length&&f.length!=e.length+2){return jX(f)}var c=f.length!=e.length,b="",a=f[0],l=f[1],k=e[0],j=k,i=1;c&&(b+="Q"+(l[0]-k[0]*2/3)+","+(l[1]-k[1]*2/3)+","+l[0]+","+l[1],a=f[1],i=2);if(e.length>1){j=e[1],l=f[i],i++,b+="C"+(a[0]+k[0])+","+(a[1]+k[1])+","+(l[0]-j[0])+","+(l[1]-j[1])+","+l[0]+","+l[1];for(var h=2;h<e.length;h++,i++){l=f[i],j=e[h],b+="S"+(l[0]-j[0])+","+(l[1]-j[1])+","+l[0]+","+l[1]}}if(c){var g=f[i];b+="Q"+(l[0]+j[0]*2/3)+","+(l[1]+j[1]*2/3)+","+g[0]+","+g[1]}return b}function i3(a,j){var i=[],h=(1-j)/2,g,f=a[0],e=a[1],c=1,b=a.length;while(++c<b){g=f,f=e,e=a[c],i.push([h*(e[0]-g[0]),h*(e[1]-g[1])])}return i}function iI(a){if(a.length<3){return jX(a)}var j=1,i=a.length,h=a[0],g=h[0],f=h[1],e=[g,g,g,(h=a[1])[0]],c=[f,f,f,h[1]],b=[g,",",f];hF(b,e,c);while(++j<i){h=a[j],e.shift(),e.push(h[0]),c.shift(),c.push(h[1]),hF(b,
 e,c)}j=-1;while(++j<2){e.shift(),e.push(h[0]),c.shift(),c.push(h[1]),hF(b,e,c)}return b.join("")}function ae(c){if(c.length<4){return jX(c)}var b=[],a=-1,h=c.length,g,f=[0],e=[0];while(++a<3){g=c[a],f.push(g[0]),e.push(g[1])}b.push(iy(hT,f)+","+iy(hT,e)),--a;while(++a<h){g=c[a],f.shift(),f.push(g[0]),e.shift(),e.push(g[1]),hF(b,f,e)}return b.join("")}function jZ(f){var e,c=-1,b=f.length,a=b+4,i,h=[],g=[];while(++c<4){i=f[c%b],h.push(i[0]),g.push(i[1])}e=[iy(hT,h),",",iy(hT,g)],--c;while(++c<a){i=f[c%b],h.shift(),h.push(i[0]),g.shift(),g.push(i[1]),hF(e,h,g)}return e.join("")}function jK(c,b){var a=c.length-1,k=c[0][0],j=c[0][1],i=c[a][0]-k,h=c[a][1]-j,g=-1,f,e;while(++g<=a){f=c[g],e=g/a,f[0]=b*f[0]+(1-b)*(k+e*i),f[1]=b*f[1]+(1-b)*(j+e*h)}return iI(c)}function iy(b,a){return b[0]*a[0]+b[1]*a[1]+b[2]*a[2]+b[3]*a[3]}function hF(b,a,c){b.push("C",iy(ih,a),",",iy(ih,c),",",iy(h5,a),",",iy(h5,c),",",iy(hT,a),",",iy(hT,c))}function hu(b,a){return(a[1]-b[1])/(a[0]-b[0])}function hn(c){var b
 =0,a=c.length-1,h=[],g=c[0],f=c[1],e=h[0]=hu(g,f);while(++b<a){h[b]=e+(e=hu(g=f,f=c[b+1]))}return h[b]=e,h}function gs(a){var j=[],i,h,g,f,e=hn(a),c=-1,b=a.length-1;while(++c<b){i=hu(a[c],a[c+1]),Math.abs(i)<0.000001?e[c]=e[c+1]=0:(h=e[c]/i,g=e[c+1]/i,f=h*h+g*g,f>9&&(f=i*3/Math.sqrt(f),e[c]=f*h,e[c+1]=f*g))}c=-1;while(++c<=b){f=(a[Math.min(b,c+1)][0]-a[Math.max(0,c-1)][0])/(6*(1+e[c]*e[c])),j.push([f||0,e[c]*f||0])}return j}function f8(a){return a.length<3?jX(a):a[0]+jl(a,gs(a))}function f3(b){var a,g=-1,f=b.length,e,c;while(++g<f){a=b[g],e=a[0],c=a[1]+hp,a[0]=e*Math.cos(c),a[1]=e*Math.sin(c)}return b}function f0(h){function i(r){function s(){q.push("M",m(h(o),j),k,l(h(p.reverse()),j),"Z")}var q=[],p=[],o=[],A=-1,z=r.length,w,y=ke(g),x=ke(e),v=g===f?function(){return n}:ke(f),u=e===c?function(){return t}:ke(c),n,t;while(++A<z){b.call(this,w=r[A],A)?(p.push([n=+y.call(this,w,A),t=+x.call(this,w,A)]),o.push([+v.call(this,w,A),+u.call(this,w,A)])):p.length&&(s(),p=[],o=[])}return p.len
 gth&&s(),q.length?q.join(""):null}var g=g5,f=g5,e=0,c=iF,b=kk,a=kc,m=jX,l=jX,k="L",j=0.7;return i.x=function(n){return arguments.length?(g=f=n,i):f},i.x0=function(n){return arguments.length?(g=n,i):g},i.x1=function(n){return arguments.length?(f=n,i):f},i.y=function(n){return arguments.length?(e=c=n,i):c},i.y0=function(n){return arguments.length?(e=n,i):e},i.y1=function(n){return arguments.length?(c=n,i):c},i.defined=function(n){return arguments.length?(b=n,i):b},i.interpolate=function(n){return arguments.length?(j3.has(n+="")||(n=kc),m=j3.get(a=n),l=m.reverse||m,k=/-closed$/.test(n)?"M":"L",i):a},i.tension=function(n){return arguments.length?(j=n,i):j},i}function e5(a){return a.source}function e1(a){return a.target}function jy(a){return a.radius}function ja(a){return a.startAngle}function iQ(a){return a.endAngle}function iJ(a){return[a.x,a.y]}function b8(a){return function(){var e=a.apply(this,arguments),c=e[0],b=e[1]+hp;return[c*Math.cos(b),c*Math.sin(b)]}}function b4(){return 64}f
 unction hk(){return"circle"}function hh(b){var a=Math.sqrt(b/Math.PI);return"M0,"+a+"A"+a+","+a+" 0 1,1 0,"+-a+"A"+a+","+a+" 0 1,1 0,"+a+"Z"}function g2(b,a){b.attr("transform",function(c){return"translate("+a(c)+",0)"})}function jE(b,a){b.attr("transform",function(c){return"translate(0,"+a(c)+")"})}function jm(c,b,a){j=[];if(a&&b.length>1){var k=hD(c.domain()),j,i=-1,h=b.length,g=(b[1]-b[0])/++a,f,e;while(++i<h){for(f=a;--f>0;){(e=+b[i]-f*g)>=k[0]&&j.push(e)}}for(--i,f=0;++f<a&&(e=+b[i]+f*g)<k[1];){j.push(e)}}return j}function hw(){hZ||(hZ=d3.select("body").append("div").style("visibility","hidden").style("top",0).style("height",0).style("width",0).style("overflow-y","scroll").append("div").style("height","2000px").node().parentNode);var b=d3.event,a;try{hZ.scrollTop=1000,hZ.dispatchEvent(b),a=1000-hZ.scrollTop}catch(c){a=b.wheelDelta||-b.detail*5}return a}function jj(b){var a=b.source,g=b.target,f=ha(a,g),e=[a];while(a!==f){a=a.parent,e.push(a)}var c=e.length;while(g!==f){e.splice
 (c,0,g),g=g.parent}return e}function iS(b){var a=[],c=b.parent;while(c!=null){a.push(b),b=c,c=c.parent}return a.push(b),a}function ha(c,b){if(c===b){return c}var a=iS(c),h=iS(b),g=a.pop(),f=h.pop(),e=null;while(g===f){e=g,g=a.pop(),f=h.pop()}return e}function gH(a){a.fixed|=2}function gC(a){a!==gL&&(a.fixed&=1)}function gw(){gL.fixed&=1,gS=gL=null}function iG(){gL.px=d3.event.x,gL.py=d3.event.y,gS.resume()}function kh(c,b,a){var k=0,j=0;c.charge=0;if(!c.leaf){var i=c.nodes,h=i.length,g=-1,f;while(++g<h){f=i[g];if(f==null){continue}kh(f,b,a),c.charge+=f.charge,k+=f.charge*f.cx,j+=f.charge*f.cy}}if(c.point){c.leaf||(c.point.x+=Math.random()-0.5,c.point.y+=Math.random()-0.5);var e=b*a[c.point.index];c.charge+=c.pointCharge=e,k+=e*c.point.x,j+=e*c.point.y}c.cx=k/c.charge,c.cy=j/c.charge}function j9(a){return 20}function j0(a){return 1}function h3(a){return a.x}function hL(a){return a.y}function ht(b,a,c){b.y0=a,b.y=c}function d0(a){return d3.range(a.length)}function hU(b){var a=-1,e=b[0
 ].length,c=[];while(++a<e){c[a]=0}return c}function c4(b){var a=1,g=0,f=b[0][1],e,c=b.length;for(;a<c;++a){(e=b[a][1])>f&&(g=a,f=e)}return g}function gX(a){return a.reduce(gR,0)}function gR(b,a){return b+a[1]}function gQ(b,a){return gK(b,Math.ceil(Math.log(a.length)/Math.LN2+1))}function gK(b,a){var g=-1,f=+b[0],e=(b[1]-f)/a,c=[];while(++g<=a){c[g]=e*g+f}return c}function gI(a){return[d3.min(a),d3.max(a)]}function gE(b,a){return d3.rebind(b,a,"sort","children","value"),b.links=aO,b.nodes=function(c){return aL=!0,(b.nodes=b)(c)},b}function gA(a){return a.children}function aV(a){return a.value}function aS(b,a){return a.value-b.value}function aO(a){return d3.merge(a.map(function(b){return(b.children||[]).map(function(c){return{source:b,target:c}})}))}function e6(b,a){return b.value-a.value}function d6(b,a){var c=b._pack_next;b._pack_next=a,a._pack_prev=b,a._pack_next=c,c._pack_prev=a}function c8(b,a){b._pack_next=a,a._pack_prev=b}function c0(b,a){var f=a.x-b.x,e=a.y-b.y,c=b.r+a.r;retur
 n c*c-f*f-e*e>0.001}function aC(u){function c(v){t=Math.min(v.x-v.r,t),s=Math.max(v.x+v.r,s),r=Math.min(v.y-v.r,r),p=Math.max(v.y+v.r,p)}var t=Infinity,s=-Infinity,r=Infinity,p=-Infinity,n=u.length,k,i,g,f,e;u.forEach(iD),k=u[0],k.x=-k.r,k.y=0,c(k);if(n>1){i=u[1],i.x=i.r,i.y=0,c(i);if(n>2){g=u[2],h8(k,i,g),c(g),d6(k,g),k._pack_prev=g,d6(g,i),i=k._pack_next;for(var b=3;b<n;b++){h8(k,i,g=u[b]);var a=0,q=1,o=1;for(f=i._pack_next;f!==i;f=f._pack_next,q++){if(c0(f,g)){a=1;break}}if(a==1){for(e=k._pack_prev;e!==f._pack_prev;e=e._pack_prev,o++){if(c0(e,g)){break}}}a?(q<o||q==o&&i.r<k.r?c8(k,i=f):c8(k=e,i),b--):(d6(k,g),i=g,c(g))}}}var m=(t+s)/2,l=(r+p)/2,j=0;for(var b=0;b<n;b++){var h=u[b];h.x-=m,h.y-=l,j=Math.max(j,h.r+Math.sqrt(h.x*h.x+h.y*h.y))}return u.forEach(ix),j}function iD(a){a._pack_next=a._pack_prev=a}function ix(a){delete a._pack_next,delete a._pack_prev}function il(b){var a=b.children;a&&a.length?(a.forEach(il),b.r=aC(a)):b.r=Math.sqrt(b.value)}function ij(c,b,a,h){var g=c.chi
 ldren;c.x=b+=h*c.x,c.y=a+=h*c.y,c.r*=h;if(g){var f=-1,e=g.length;while(++f<e){ij(g[f],b,a,h)}}}function h8(h,g,f){var e=h.r+f.r,c=g.x-h.x,b=g.y-h.y;if(e&&(c||b)){var a=g.r+f.r,m=Math.sqrt(c*c+b*b),l=Math.max(-1,Math.min(1,(e*e+m*m-a*a)/(2*e*m))),k=Math.acos(l),j=l*(e/=m),i=Math.sin(k)*e;f.x=h.x+j*c+i*b,f.y=h.y+j*b-i*c}else{f.x=h.x+e,f.y=h.y}}function h6(a){return 1+d3.max(a,function(b){return b.y})}function e3(a){return a.reduce(function(c,b){return c+b.x},0)/a.length}function e2(b){var a=b.children;return a&&a.length?e2(a[0]):b}function c6(b){var a=b.children,c;return a&&(c=a.length)?c6(a[c-1]):b}function c5(b,a){return b.parent==a.parent?1:2}function c2(b){var a=b.children;return a&&a.length?a[0]:b._tree.thread}function c1(b){var a=b.children,c;return a&&(c=a.length)?a[c-1]:b._tree.thread}function iu(b,a){var g=b.children;if(g&&(e=g.length)){var f,e,c=-1;while(++c<e){a(f=iu(g[c],a),b)>0&&(b=f)}}return b}function ia(b,a){return b.x-a.x}function hY(b,a){return a.x-b.x}function hP(b,
 a){return b.depth-a.depth}function hA(b,a){function c(i,k){var j=i.children;if(j&&(e=j.length)){var h,g=null,f=-1,e;while(++f<e){h=j[f],c(h,g),g=h}}a(i,k)}c(b,null)}function hq(b){var a=0,g=0,f=b.children,e=f.length,c;while(--e>=0){c=f[e]._tree,c.prelim+=a,c.mod+=a,a+=c.shift+(g+=c.change)}}function gu(b,a,e){b=b._tree,a=a._tree;var c=e/(a.number-b.number);b.change+=c,a.change-=c,a.shift+=e,a.prelim+=e,a.mod+=e}function gq(b,a,c){return b._tree.ancestor.parent==a.parent?b._tree.ancestor:c}function f6(a){return{x:a.x,y:a.y,dx:a.dx,dy:a.dy}}function f1(b,a){var g=b.x+a[3],f=b.y+a[0],e=b.dx-a[1]-a[3],c=b.dy-a[0]-a[2];return e<0&&(g+=e/2,e=0),c<0&&(f+=c/2,c=0),{x:g,y:f,dx:e,dy:c}}function e7(a){return a.map(e4).join(",")}function e4(a){return/[",\n]/.test(a)?'"'+a.replace(/\"/g,'""')+'"':a}function jn(b,a){return function(c){return c&&b.hasOwnProperty(c.type)?b[c.type](c):a}}function je(a){return"m0,"+a+"a"+a+","+a+" 0 1,1 0,"+-2*a+"a"+a+","+a+" 0 1,1 0,"+2*a+"z"}function iY(b,a){hg.has
 OwnProperty(b.type)&&hg[b.type](b,a)}function g6(b,a){iY(b.geometry,a)}function b6(b,a){for(var f=b.features,e=0,c=f.length;e<c;e++){iY(f[e].geometry,a)}}function b3(b,a){for(var f=b.geometries,e=0,c=f.length;e<c;e++){iY(f[e],a)}}function hi(b,a){for(var f=b.coordinates,e=0,c=f.length;e<c;e++){a.apply(null,f[e])}}function hf(f,e){for(var c=f.coordinates,b=0,a=c.length;b<a;b++){for(var i=c[b],h=0,g=i.length;h<g;h++){e.apply(null,i[h])}}}function hb(f,e){for(var c=f.coordinates,b=0,a=c.length;b<a;b++){for(var i=c[b][0],h=0,g=i.length;h<g;h++){e.apply(null,i[h])}}}function g7(b,a){a.apply(null,b.coordinates)}function i2(b,a){for(var f=b.coordinates[0],e=0,c=f.length;e<c;e++){a.apply(null,f[e])}}function g1(a){return a.source}function b7(a){return a.target}function aB(i,g){function r(w){var u=Math.sin(f-(w*=f))/c,t=Math.sin(w)/c,s=u*p*b+t*j*m,x=u*p*a+t*j*l,v=u*o+t*h;return[Math.atan2(x,s)/ju,Math.atan2(v,Math.sqrt(s*s+x*x))/ju]}var e=i[0]*ju,b=Math.cos(e),a=Math.sin(e),q=i[1]*ju,p=Math.
 cos(q),o=Math.sin(q),n=g[0]*ju,m=Math.cos(n),l=Math.sin(n),k=g[1]*ju,j=Math.cos(k),h=Math.sin(k),f=r.d=Math.acos(Math.max(-1,Math.min(1,o*h+p*j*Math.cos(n-e)))),c=Math.sin(f);return r}function ax(b){var a=0,c=0;for(;;){if(b(a,c)){return[a,c]}a===0?(a=c+1,c=0):(a-=1,c+=1)}}function aw(f,e,c,b){var a,l,k,j,i,h,g;return a=b[f],l=a[0],k=a[1],a=b[e],j=a[0],i=a[1],a=b[c],h=a[0],g=a[1],(g-k)*(j-l)-(i-k)*(h-l)>0}function av(b,a,c){return(c[0]-a[0])*(b[1]-a[1])<(c[1]-a[1])*(b[0]-a[0])}function au(t,s,q,o){var m=t[0],k=s[0],h=q[0],f=o[0],e=t[1],c=s[1],b=q[1],a=o[1],r=m-h,p=k-m,n=f-h,l=e-b,j=c-e,i=a-b,g=(n*l-i*r)/(i*p-n*j);return[m+g*p,e+g*j]}function ar(u,t){var s={list:u.map(function(w,v){return{index:v,x:w[0],y:w[1]}}).sort(function(w,v){return w.y<v.y?-1:w.y>v.y?1:w.x<v.x?-1:w.x>v.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.unshi
 ft(r.leftEnd,r.rightEnd)},createHalfEdge:function(w,v){return{edge:w,side:v,vertex:null,l:null,r:null}},insert:function(w,v){v.l=w,v.r=w.r,w.r.l=v,w.r=v},leftBound:function(w){var v=r.leftEnd;do{v=v.r}while(v!=r.rightEnd&&p.rightOf(v,w));return v=v.l,v},del:function(v){v.l.r=v.r,v.r.l=v.l,v.edge=null},right:function(v){return v.r},left:function(v){return v.l},leftRegion:function(v){return v.edge==null?s.bottomSite:v.edge.region[v.side]},rightRegion:function(v){return v.edge==null?s.bottomSite:v.edge.region[at[v.side]]}},p={bisect:function(v,z){var x={region:{l:v,r:z},ep:{l:null,r:null}},B=z.x-v.x,A=z.y-v.y,y=B>0?B:-B,w=A>0?A:-A;return x.c=v.x*B+v.y*A+(B*B+A*A)*0.5,y>w?(x.a=1,x.b=A/B,x.c/=B):(x.b=1,x.a=B/A,x.c/=A),x},intersect:function(D,C){var B=D.edge,A=C.edge;if(!B||!A||B.region.r==A.region.r){return null}var z=B.a*A.b-B.b*A.a;if(Math.abs(z)<1e-10){return null}var y=(B.c*A.b-A.c*B.b)/z,x=(A.c*B.a-B.c*A.a)/z,w=B.region.r,v=A.region.r,G,F;w.y<v.y||w.y==v.y&&w.x<v.x?(G=D,F=B):(G=C,F=
 A);var E=y>=F.region.r.x;return E&&G.side==="l"||!E&&G.side==="r"?null:{x:y,y:x}},rightOf:function(H,G){var F=H.edge,E=F.region.r,D=G.x>E.x;if(D&&H.side==="l"){return 1}if(!D&&H.side==="r"){return 0}if(F.a===1){var C=G.y-E.y,B=G.x-E.x,A=0,z=0;!D&&F.b<0||D&&F.b>=0?z=A=C>=F.b*B:(z=G.x+G.y*F.b>F.c,F.b<0&&(z=!z),z||(A=1));if(!A){var x=E.x-F.region.l.x;z=F.b*(B*B-C*C)<x*C*(1+2*B/x+F.b*F.b),F.b<0&&(z=!z)}}else{var y=F.c-F.a*G.x,w=G.y-y,v=G.x-E.x,I=y-E.y;z=w*w>v*v+I*I}return H.side==="l"?z:!z},endPoint:function(x,w,v){x.ep[w]=v;if(!x.ep[at[w]]){return}t(x)},distance:function(w,v){var y=w.x-v.x,x=w.y-v.y;return Math.sqrt(y*y+x*x)}},n={list:[],insert:function(v,z,x){v.vertex=z,v.ystar=z.y+x;for(var B=0,A=n.list,y=A.length;B<y;B++){var w=A[B];if(v.ystar>w.ystar||v.ystar==w.ystar&&z.x>w.vertex.x){continue}break}A.splice(B,0,v)},del:function(w){for(var v=0,y=n.list,x=y.length;v<x&&y[v]!=w;++v){}y.splice(v,1)},empty:function(){return n.list.length===0},nextEvent:function(w){for(var v=0,y=n.list,
 x=y.length;v<x;++v){if(y[v]==w){return y[v+1]}}return null},min:function(){var v=n.list[0];return{x:v.vertex.x,y:v.ystar}},extractMin:function(){return n.list.shift()}};r.init(),s.bottomSite=s.list.shift();var k=s.list.shift(),i,g,f,e,c,b,a,q,o,m,l,j,h;for(;;){n.empty()||(i=n.min());if(k&&(n.empty()||k.y<i.y||k.y==i.y&&k.x<i.x)){g=r.leftBound(k),f=r.right(g),a=r.rightRegion(g),j=p.bisect(a,k),b=r.createHalfEdge(j,"l"),r.insert(g,b),m=p.intersect(g,b),m&&(n.del(g),n.insert(g,m,p.distance(m,k))),g=b,b=r.createHalfEdge(j,"r"),r.insert(g,b),m=p.intersect(b,f),m&&n.insert(b,m,p.distance(m,k)),k=s.list.shift()}else{if(!n.empty()){g=n.extractMin(),e=r.left(g),f=r.right(g),c=r.right(f),a=r.leftRegion(g),q=r.rightRegion(f),l=g.vertex,p.endPoint(g.edge,g.side,l),p.endPoint(f.edge,f.side,l),r.del(g),n.del(f),r.del(f),h="l",a.y>q.y&&(o=a,a=q,q=o,h="r"),j=p.bisect(a,q),b=r.createHalfEdge(j,h),r.insert(e,b),p.endPoint(j,at[h],l),m=p.intersect(e,b),m&&(n.del(e),n.insert(e,m,p.distance(m,a))),m=p.i
 ntersect(b,c),m&&n.insert(b,m,p.distance(m,a))}else{break}}}for(g=r.right(r.leftEnd);g!=r.rightEnd;g=r.right(g)){t(g.edge)}}function aq(){return{leaf:!0,nodes:[],point:null}}function ap(a,j,i,h,g,f){if(!a(j,i,h,g,f)){var e=(i+g)*0.5,c=(h+f)*0.5,b=j.nodes;b[0]&&ap(a,b[0],i,h,e,c),b[1]&&ap(a,b[1],e,h,g,c),b[2]&&ap(a,b[2],i,c,e,f),b[3]&&ap(a,b[3],e,c,g,f)}}function ao(a){return{x:a[0],y:a[1]}}function am(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function ak(a,j,i,h){var g,f,e=0,c=j.length,b=i.length;while(e<c){if(h>=b){return -1}g=j.charCodeAt(e++);if(g==37){f=aW[j.charAt(e++)];if(!f||(h=f(a,i,h))<0){return -1}}else{if(g!=i.charCodeAt(h++)){return -1}}}return h}function aU(b,a,c){return aP.test(a.substring(c,c+=3))?c:-1}function aR(b,a,e){gY.lastIndex=0;var c=gY.exec(a.substring(e,e+10));return c?e+=c[0].length:-1}function gT(b,a,e){var c=gN.get(a.substring(e,e+=3).toLowerCase());return c==null?-1:(b.m=c,e)}function gM(b,a,e){gF.lastIndex=0;var c
 =gF.exec(a.substring(e,e+12));return c?(b.m=gB.get(c[0].toLowerCase()),e+=c[0].length):-1}function aX(b,a,c){return ak(b,aY.c.toString(),a,c)}function aT(b,a,c){return ak(b,aY.x.toString(),a,c)}function aQ(b,a,c){return ak(b,aY.X.toString(),a,c)}function aN(b,a,e){ie.lastIndex=0;var c=ie.exec(a.substring(e,e+4));return c?(b.y=+c[0],e+=c[0].length):-1}function aJ(b,a,e){ie.lastIndex=0;var c=ie.exec(a.substring(e,e+2));return c?(b.y=e0()+ +c[0],e+=c[0].length):-1}function e0(){return ~~((new Date).getFullYear()/1000)*1000}function d2(b,a,e){ie.lastIndex=0;var c=ie.exec(a.substring(e,e+2));return c?(b.m=c[0]-1,e+=c[0].length):-1}function c3(b,a,e){ie.lastIndex=0;var c=ie.exec(a.substring(e,e+2));return c?(b.d=+c[0],e+=c[0].length):-1}function b5(b,a,e){ie.lastIndex=0;var c=ie.exec(a.substring(e,e+2));return c?(b.H=+c[0],e+=c[0].length):-1}function az(b,a,e){ie.lastIndex=0;var c=ie.exec(a.substring(e,e+2));return c?(b.M=+c[0],e+=c[0].length):-1}function iA(b,a,e){ie.lastIndex=0;var c=ie
 .exec(a.substring(e,e+2));return c?(b.S=+c[0],e+=c[0].length):-1}function ip(b,a,e){ie.lastIndex=0;var c=ie.exec(a.substring(e,e+3));return c?(b.L=+c[0],e+=c[0].length):-1}function ib(b,a,e){var c=e9.get(a.substring(e,e+=2).toLowerCase());return c==null?-1:(b.p=c,e)}function e8(b){var a=b.getTimezoneOffset(),f=a>0?"-":"+",e=~~(Math.abs(a)/60),c=Math.abs(a)%60;return f+gx(e)+gx(c)}function d1(a){return a.toISOString()}function iv(a,j,i){function h(m){var l=a(m),k=f(l,1);return m-l<k-m?l:k}function g(k){return j(k=a(new an(k-1)),1),k}function f(l,k){return j(l=new an(+l),k),l}function e(o,m,n){var l=g(o),k=[];if(n>1){while(l<m){i(l)%n||k.push(new Date(+l)),j(l,1)}}else{while(l<m){k.push(new Date(+l)),j(l,1)}}return k}function c(l,k,n){try{an=am;var m=new am;return m._=l,e(m,k,n)}finally{an=Date}}a.floor=a,a.round=h,a.ceil=g,a.offset=f,a.range=e;var b=a.utc=b9(a);return b.floor=b,b.round=b9(h),b.ceil=b9(g),b.offset=b9(f),b.range=c,a}function b9(a){return function(e,c){try{an=am;var b=n
 ew am;return b._=e,a(b,c)._}finally{an=Date}}}function aM(b,a,e){function c(f){return b(f)}return c.invert=function(f){return aI(b.invert(f))},c.domain=function(f){return arguments.length?(b.domain(f),c):b.domain().map(aI)},c.nice=function(g){var f=aK(c.domain());return c.domain([g.floor(f[0]),g.ceil(f[1])])},c.ticks=function(i,g){var f=aK(c.domain());if(typeof i!="function"){var k=f[1]-f[0],j=k/i,h=d3.bisect(aE,j);if(h==aE.length){return a.year(f,i)}if(!h){return b.ticks(i).map(aI)}Math.log(j/aE[h-1])<Math.log(aE[h]/j)&&--h,i=a[h],g=i[1],i=i[0].range}return i(f[0],new Date(+f[1]+1),g)},c.tickFormat=function(){return e},c.copy=function(){return aM(b.copy(),a,e)},d3.rebind(c,b,"range","rangeRound","interpolate","clamp")}function aK(b){var a=b[0],c=b[b.length-1];return a<c?[a,c]:[c,a]}function aI(a){return new Date(a)}function aH(a){return function(e){var c=a.length-1,b=a[c];while(!b[1](e)){b=a[--c]}return b[0](e)}}function aG(b){var a=new Date(b,0,1);return a.setFullYear(b),a}functio
 n aF(b){var a=b.getFullYear(),e=aG(a),c=aG(a+1);return a+(b-e)/(c-e)}function f4(b){var a=new Date(Date.UTC(b,0,1));return a.setUTCFullYear(b),a}function f2(b){var a=b.getUTCFullYear(),e=f4(a),c=f4(a+1);return a+(b-e)/(c-e)}Date.now||(Date.now=function(){return +(new Date)});try{document.createElement("div").style.setProperty("opacity",0,"")}catch(jw){var jb=CSSStyleDeclaration.prototype,iT=jb.setProperty;jb.setProperty=function(b,a,c){iT.call(this,b,a+"",c)}}d3={version:"2.9.1"};var hM=i4;try{hM(document.documentElement.childNodes)[0].nodeType}catch(hj){hM=js}var g3=[].__proto__?function(b,a){b.__proto__=a}:function(b,a){for(var c in a){b[c]=a[c]}};d3.map=function(b){var a=new gW;for(var c in b){a.set(c,b[c])}return a},h4(gW,{has:function(a){return gO+a in this},get:function(a){return this[gO+a]},set:function(b,a){return this[gO+b]=a},remove:function(a){return a=gO+a,a in this&&delete this[a]},keys:function(){var a=[];return this.forEach(function(b){a.push(b)}),a},values:function()
 {var a=[];return this.forEach(function(c,b){a.push(b)}),a},entries:function(){var a=[];return this.forEach(function(c,b){a.push({key:c,value:b})}),a},forEach:function(b){for(var a in this){a.charCodeAt(0)===gG&&b.call(this,a.substring(1),this[a])}}});var gO="\0",gG=gO.charCodeAt(0);d3.functor=ke,d3.rebind=function(b,a){var f=1,e=arguments.length,c;while(++f<e){b[c=arguments[f]]=j4(b,a,a[c])}return b},d3.ascending=function(b,a){return b<a?-1:b>a?1:b>=a?0:NaN},d3.descending=function(b,a){return a<b?-1:a>b?1:a>=b?0:NaN},d3.mean=function(c,b){var a=c.length,h,g=0,f=-1,e=0;if(arguments.length===1){while(++f<a){jW(h=c[f])&&(g+=(h-g)/++e)}}else{while(++f<a){jW(h=b.call(c,c[f],f))&&(g+=(h-g)/++e)}}return e?g:undefined},d3.median=function(b,a){return arguments.length>1&&(b=b.map(a)),b=b.filter(jW),b.length?d3.quantile(b.sort(d3.ascending),0.5):undefined},d3.min=function(b,a){var g=-1,f=b.length,e,c;if(arguments.length===1){while(++g<f&&((e=b[g])==null||e!=e)){e=undefined}while(++g<f){(c=b[g]
 )!=null&&e>c&&(e=c)}}else{while(++g<f&&((e=a.call(b,b[g],g))==null||e!=e)){e=undefined}while(++g<f){(c=a.call(b,b[g],g))!=null&&e>c&&(e=c)}}return e},d3.max=function(b,a){var g=-1,f=b.length,e,c;if(arguments.length===1){while(++g<f&&((e=b[g])==null||e!=e)){e=undefined}while(++g<f){(c=b[g])!=null&&c>e&&(e=c)}}else{while(++g<f&&((e=a.call(b,b[g],g))==null||e!=e)){e=undefined}while(++g<f){(c=a.call(b,b[g],g))!=null&&c>e&&(e=c)}}return e},d3.extent=function(c,b){var a=-1,h=c.length,g,f,e;if(arguments.length===1){while(++a<h&&((g=e=c[a])==null||g!=g)){g=e=undefined}while(++a<h){(f=c[a])!=null&&(g>f&&(g=f),e<f&&(e=f))}}else{while(++a<h&&((g=e=b.call(c,c[a],a))==null||g!=g)){g=undefined}while(++a<h){(f=b.call(c,c[a],a))!=null&&(g>f&&(g=f),e<f&&(e=f))}}return[g,e]},d3.random={normal:function(b,a){return arguments.length<2&&(a=1),arguments.length<1&&(b=0),function(){var c,f,e;do{c=Math.random()*2-1,f=Math.random()*2-1,e=c*c+f*f}while(!e||e>1);return b+a*c*Math.sqrt(-2*Math.log(e)/e)}}},d3.su
 m=function(b,a){var g=0,f=b.length,e,c=-1;if(arguments.length===1){while(++c<f){isNaN(e=+b[c])||(g+=e)}}else{while(++c<f){isNaN(e=+a.call(b,b[c],c))||(g+=e)}}return g},d3.quantile=function(b,a){var g=(b.length-1)*a+1,f=Math.floor(g),e=b[f-1],c=g-f;return c?e+c*(b[f]-e):e},d3.transpose=function(a){return d3.zip.apply(d3,a)},d3.zip=function(){if(!(e=arguments.length)){return[]}for(var b=-1,a=d3.min(arguments,iq),g=new Array(a);++b<a;){for(var f=-1,e,c=g[b]=new Array(e);++f<e;){c[f]=arguments[f][b]}}return g},d3.bisector=function(a){return{left:function(g,f,e,c){arguments.length<3&&(e=0),arguments.length<4&&(c=g.length);while(e<c){var b=e+c>>1;a.call(g,g[b],b)<f?e=b+1:c=b}return e},right:function(g,f,e,c){arguments.length<3&&(e=0),arguments.length<4&&(c=g.length);while(e<c){var b=e+c>>1;f<a.call(g,g[b],b)?c=b:e=b+1}return e}}};var hV=d3.bisector(function(a){return a});d3.bisectLeft=hV.left,d3.bisect=d3.bisectRight=hV.right,d3.first=function(b,a){var g=0,f=b.length,e=b[0],c;arguments.le
 ngth===1&&(a=d3.ascending);while(++g<f){a.call(b,e,c=b[g])>0&&(e=c)}return e},d3.last=function(b,a){var g=0,f=b.length,e=b[0],c;arguments.length===1&&(a=d3.ascending);while(++g<f){a.call(b,e,c=b[g])<=0&&(e=c)}return e},d3.nest=function(){function f(l,k){if(k>=b.length){return g?g.call(c,l):h?l.sort(h):l}var j=-1,i=l.length,r=b[k++],q,p,o=new gW,n,m={};while(++j<i){(n=o.get(q=r(p=l[j])))?n.push(p):o.set(q,[p])}return o.forEach(function(s){m[s]=f(o.get(s),k)}),m}function e(j,m){if(m>=b.length){return j}var l=[],i=a[m++],k;for(k in j){l.push({key:k,values:e(j[k],m)})}return i&&l.sort(function(o,n){return i(o.key,n.key)}),l}var c={},b=[],a=[],h,g;return c.map=function(i){return f(i,0)},c.entries=function(i){return e(f(i,0),0)},c.key=function(i){return b.push(i),c},c.sortKeys=function(i){return a[b.length-1]=i,c},c.sortValues=function(i){return h=i,c},c.rollup=function(i){return g=i,c},c},d3.keys=function(b){var a=[];for(var c in b){a.push(c)}return a},d3.values=function(b){var a=[];for(
 var c in b){a.push(b[c])}return a},d3.entries=function(b){var a=[];for(var c in b){a.push({key:c,value:b[c]})}return a},d3.permute=function(b,a){var f=[],e=-1,c=a.length;while(++e<c){f[e]=b[a[e]]}return f},d3.merge=function(a){return Array.prototype.concat.apply([],a)},d3.split=function(c,b){var a=[],h=[],g,f=-1,e=c.length;arguments.length<2&&(b=hC);while(++f<e){b.call(h,g=c[f],f)?h=[]:(h.length||a.push(h),h.push(g))}return a},d3.range=function(c,b,a){arguments.length<3&&(a=1,arguments.length<2&&(b=c,c=0));if((b-c)/a===Infinity){throw new Error("infinite range")}var h=[],g=jN(Math.abs(a)),f=-1,e;c*=g,b*=g,a*=g;if(a<0){while((e=c+a*++f)>b){h.push(e/g)}}else{while((e=c+a*++f)<b){h.push(e/g)}}return h},d3.requote=function(a){return a.replace(d8,"\\$&")};var d8=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;d3.round=function(b,a){return a?Math.round(b*(a=Math.pow(10,a)))/a:Math.round(b)},d3.xhr=function(b,a,e){var c=new XMLHttpRequest;arguments.length<3?(e=a,a=null):a&&c.overrideMimeType&&c.override
 MimeType(a),c.open("GET",b,!0),a&&c.setRequestHeader("Accept",a),c.onreadystatechange=function(){if(c.readyState===4){var f=c.status;e(f>=200&&f<300||f===304?c:null)}},c.send(null)},d3.text=function(b,a,e){function c(f){e(f&&f.responseText)}arguments.length<3&&(e=a,a=null),d3.xhr(b,a,c)},d3.json=function(b,a){d3.text(b,"application/json",function(c){a(c?JSON.parse(c):null)})},d3.html=function(b,a){d3.text(b,"text/html",function(e){if(e!=null){var c=document.createRange();c.selectNode(document.body),e=c.createContextualFragment(e)}a(e)})},d3.xml=function(b,a,e){function c(f){e(f&&f.responseXML)}arguments.length<3&&(e=a,a=null),d3.xhr(b,a,c)};var c9={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/"};d3.ns={prefix:c9,qualify:function(b){var a=b.indexOf(":"),c=b;return a>=0&&(c=b.substring(0,a),b=b.substring(a+1)),c9.hasOwnProperty(c)?{space:c9[c],lo
 cal:b}:b}},d3.dispatch=function(){var b=new i8,a=-1,c=arguments.length;while(++a<c){b[arguments[a]]=iV(b)}return b},i8.prototype.on=function(b,a){var e=b.indexOf("."),c="";return e>0&&(c=b.substring(e+1),b=b.substring(0,e)),arguments.length<2?this[b].on(c):this[b].on(c,a)},d3.format=function(h){var g=h2.exec(h),f=g[1]||" ",e=g[3]||"",c=g[5],b=+g[6],a=g[7],m=g[8],l=g[9],k=1,j="",i=!1;m&&(m=+m.substring(1)),c&&(f="0",a&&(b-=Math.floor((b-1)/4)));switch(l){case"n":a=!0,l="g";break;case"%":k=100,j="%",l="f";break;case"p":k=100,j="%",l="r";break;case"d":i=!0,m=0;break;case"s":k=-1,l="r"}return l=="r"&&!m&&(l="g"),l=hQ.get(l)||hy,function(p){if(i&&p%1){return""}var o=p<0&&(p=-p)?"−":e;if(k<0){var n=d3.formatPrefix(p,m);p*=n.scale,j=n.symbol}else{p*=k}p=l(p,m);if(c){var q=p.length+o.length;q<b&&(p=(new Array(b-q+1)).join(f)+p),a&&(p=hs(p)),p=o+p}else{a&&(p=hs(p)),p=o+p;var q=p.length;q<b&&(p=(new Array(b-q+1)).join(f)+p)}return p+j}};var h2=/(?:([^{])?([<>=^]))?([+\- ])?(#)?(0)?([0-9]+)?
 (,)?(\.[0-9]+)?([a-zA-Z%])?/,hQ=d3.map({g:function(b,a){return b.toPrecision(a)},e:function(b,a){return b.toExponential(a)},f:function(b,a){return b.toFixed(a)},r:function(b,a){return d3.round(b,a=hI(b,a)).toFixed(Math.max(0,Math.min(20,a)))}}),jU=["y","z","a","f","p","n","μ","m","","k","M","G","T","P","E","Z","Y"].map(jJ);d3.formatPrefix=function(b,a){var c=0;return b&&(b<0&&(b*=-1),a&&(b=d3.round(b,hI(b,a))),c=1+Math.floor(1e-12+Math.log(b)/Math.LN10),c=Math.max(-24,Math.min(24,Math.floor((c<=0?c+1:c-1)/3)*3))),jU[8+c/3]};var jA=h7(2),jr=h7(3),iW=function(){return iC},hd=d3.map({linear:iW,poly:h7,quad:function(){return jA},cubic:function(){return jr},sin:function(){return hO},exp:function(){return hx},circle:function(){return jR},elastic:jB,back:jf,bounce:function(){return iX}}),gZ=d3.map({"in":iC,out:kf,"in-out":j5,"out-in":function(a){return j5(kf(a))}});d3.ease=function(b){var a=b.indexOf("-"),e=a>=0?b.substring(0,a):b,c=a>=0?b.substring(a+1):"in";return e=hd.get(e)||iW,c=gZ.g
 et(c)||iC,ki(c(e.apply(null,Array.prototype.slice.call(arguments,1))))},d3.event=null,d3.interpolate=function(b,a){var e=d3.interpolators.length,c;while(--e>=0&&!(c=d3.interpolators[e](b,a))){}return c},d3.interpolateNumber=function(b,a){return a-=b,function(c){return b+a*c}},d3.interpolateRound=function(b,a){return a-=b,function(c){return Math.round(b+a*c)}},d3.interpolateString=function(f,e){var c,b,a,l=0,k=0,j=[],i=[],h,g;iK.lastIndex=0;for(b=0;c=iK.exec(e);++b){c.index&&j.push(e.substring(l,k=c.index)),i.push({i:j.length,x:c[0]}),j.push(null),l=iK.lastIndex}l<e.length&&j.push(e.substring(l));for(b=0,h=i.length;(c=iK.exec(f))&&b<h;++b){g=i[b];if(g.x==c[0]){if(g.i){if(j[g.i+1]==null){j[g.i-1]+=g.x,j.splice(g.i,1);for(a=b+1;a<h;++a){i[a].i--}}else{j[g.i-1]+=g.x+j[g.i+1],j.splice(g.i,2);for(a=b+1;a<h;++a){i[a].i-=2}}}else{if(j[g.i+1]==null){j[g.i]=g.x}else{j[g.i]=g.x+j[g.i+1],j.splice(g.i+1,1);for(a=b+1;a<h;++a){i[a].i--}}}i.splice(b,1),h--,b--}else{g.x=d3.interpolateNumber(parseFlo
 at(c[0]),parseFloat(g.x))}}while(b<h){g=i.pop(),j[g.i+1]==null?j[g.i]=g.x:(j[g.i]=g.x+j[g.i+1],j.splice(g.i+1,1)),h--}return j.length===1?j[0]==null?i[0].x:function(){return e}:function(m){for(b=0;b<h;++b){j[(g=i[b]).i]=g.x(m)}return j.join("")}},d3.interpolateTransform=function(p,n){var l=[],k=[],j,i=d3.transform(p),h=d3.transform(n),g=i.translate,f=h.translate,e=i.rotate,c=h.rotate,b=i.skew,a=h.skew,o=i.scale,m=h.scale;return g[0]!=f[0]||g[1]!=f[1]?(l.push("translate(",null,",",null,")"),k.push({i:1,x:d3.interpolateNumber(g[0],f[0])},{i:3,x:d3.interpolateNumber(g[1],f[1])})):f[0]||f[1]?l.push("translate("+f+")"):l.push(""),e!=c?k.push({i:l.push(l.pop()+"rotate(",null,")")-2,x:d3.interpolateNumber(e,c)}):c&&l.push(l.pop()+"rotate("+c+")"),b!=a?k.push({i:l.push(l.pop()+"skewX(",null,")")-2,x:d3.interpolateNumber(b,a)}):a&&l.push(l.pop()+"skewX("+a+")"),o[0]!=m[0]||o[1]!=m[1]?(j=l.push(l.pop()+"scale(",null,",",null,")"),k.push({i:j-4,x:d3.interpolateNumber(o[0],m[0])},{i:j-2,x:d3.in
 terpolateNumber(o[1],m[1])})):(m[0]!=1||m[1]!=1)&&l.push(l.pop()+"scale("+m+")"),j=k.length,function(r){var q=-1,s;while(++q<j){l[(s=k[q]).i]=s.x(r)}return l.join("")}},d3.interpolateRgb=function(f,e){f=d3.rgb(f),e=d3.rgb(e);var c=f.r,b=f.g,a=f.b,i=e.r-c,h=e.g-b,g=e.b-a;return function(j){return"#"+jP(Math.round(c+i*j))+jP(Math.round(b+h*j))+jP(Math.round(a+g*j))}},d3.interpolateHsl=function(f,e){f=d3.hsl(f),e=d3.hsl(e);var c=f.h,b=f.s,a=f.l,i=e.h-c,h=e.s-b,g=e.l-a;return function(j){return kg(c+i*j,b+h*j,a+g*j).toString()}},d3.interpolateArray=function(f,e){var c=[],b=[],a=f.length,i=e.length,h=Math.min(f.length,e.length),g;for(g=0;g<h;++g){c.push(d3.interpolate(f[g],e[g]))}for(;g<a;++g){b[g]=f[g]}for(;g<i;++g){b[g]=e[g]}return function(j){for(g=0;g<h;++g){b[g]=c[g](j)}return b}},d3.interpolateObject=function(b,a){var f={},e={},c;for(c in b){c in a?f[c]=h0(c)(b[c],a[c]):e[c]=b[c]}for(c in a){c in b||(e[c]=a[c])}return function(g){for(c in f){e[c]=f[c](g)}return e}};var iK=/[-+]?(?:
 \d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g;d3.interpolators=[d3.interpolateObject,function(b,a){return a instanceof Array&&d3.interpolateArray(b,a)},function(b,a){return(typeof b=="string"||typeof a=="string")&&d3.interpolateString(b+"",a+"")},function(b,a){return(typeof a=="string"?iM.has(a)||/^(#|rgb\(|hsl\()/.test(a):a instanceof hm||a instanceof gV)&&d3.interpolateRgb(b,a)},function(b,a){return !isNaN(b=+b)&&!isNaN(a=+a)&&d3.interpolateNumber(b,a)}],d3.rgb=function(b,a,c){return arguments.length===1?b instanceof hm?hv(b.r,b.g,b.b):jH(""+b,hv,kg):hv(~~b,~~a,~~c)},hm.prototype.brighter=function(b){b=Math.pow(0.7,arguments.length?b:1);var a=this.r,f=this.g,e=this.b,c=30;return !a&&!f&&!e?hv(c,c,c):(a&&a<c&&(a=c),f&&f<c&&(f=c),e&&e<c&&(e=c),hv(Math.min(255,Math.floor(a/b)),Math.min(255,Math.floor(f/b)),Math.min(255,Math.floor(e/b))))},hm.prototype.darker=function(a){return a=Math.pow(0.7,arguments.length?a:1),hv(Math.floor(a*this.r),Math.floor(a*this.g),Math.floor(a*this.b))},hm.prototype
 .hsl=function(){return jx(this.r,this.g,this.b)},hm.prototype.toString=function(){return"#"+jP(this.r)+jP(this.g)+jP(this.b)};var iM=d3.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:"#69
 6969",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"});iM.forEach(function(b,a){iM.set(b,jH(a,hv,kg))}),d3.hsl=function(b,a,c){return arguments.length===1?b instanceof gV?g9(b.h,b.s,b.l):jH(""+b,jx,g9):g9(+b,+a,+c)},gV.prototype.brighter=function(a){return a=Math.pow(0.7,arguments.length?a:1),g9(this.h,this.s,this.l/a)},gV.prototype.darker=function(a){return a=Math.pow(0.7,arguments.length?a:1),g9(this.h,this.s,a*this.l)},gV.prototype.rgb=function(){return kg(this.h,this.s,this.l)},gV.prototype.toString=function(){return this.rgb().toString()};var jY=function(b,a){return a.querySelector(b)},ik=function(b,a){return a.querySelectorAll(b)},h1=document.documentElement,hJ=h1.matchesSelector||h1.webkitMatchesSelector||h1.mozMatchesSelector||h1.msMatchesSelector||h1.oMatchesSelector,hr=function(b,a){return hJ.call(b,a)};typeof Sizzle=="function"&&(jY=function(b,a){return Sizzle(b,a)[0]},ik=function(b,a){return Sizzle.uniqueSort(Sizzle(b,a))},hr=Sizzle.matchesSelector
 );var jL=[];d3.selection=function(){return j1},d3.selection.prototype=jL,jL.select=function(c){var b=[],a,k,j,i;typeof c!="function"&&(c=jo(c));for(var h=-1,g=this.length;++h<g;){b.push(a=[]),a.parentNode=(j=this[h]).parentNode;for(var f=-1,e=j.length;++f<e;){(i=j[f])?(a.push(k=c.call(i,i.__data__,f)),k&&"__data__" in i&&(k.__data__=i.__data__)):a.push(null)}}return j8(b)},jL.selectAll=function(a){var j=[],i,h;typeof a!="function"&&(a=i9(a));for(var g=-1,f=this.length;++g<f;){for(var e=this[g],c=-1,b=e.length;++c<b;){if(h=e[c]){j.push(i=hM(a.call(h,h.__data__,c))),i.parentNode=h}}}return j8(j)},jL.attr=function(a,j){function h(){this.removeAttribute(a)}function g(){this.removeAttributeNS(a.space,a.local)}function f(){this.setAttribute(a,j)}function e(){this.setAttributeNS(a.space,a.local,j)}function c(){var k=j.apply(this,arguments);k==null?this.removeAttribute(a):this.setAttribute(a,k)}function b(){var k=j.apply(this,arguments);k==null?this.removeAttributeNS(a.space,a.local):this.s
 etAttributeNS(a.space,a.local,k)}a=d3.ns.qualify(a);if(arguments.length<2){var i=this.node();return a.local?i.getAttributeNS(a.space,a.local):i.getAttribute(a)}return this.each(j==null?a.local?g:h:typeof j=="function"?a.local?b:c:a.local?e:f)},jL.classed=function(b,a){var f=b.split(iR),e=f.length,c=-1;if(arguments.length>1){while(++c<e){ag.call(this,f[c],a)}return this}while(++c<e){if(!ag.call(this,f[c])){return !1}}return !0};var iR=/\s+/g;jL.style=function(b,a,g){function f(){this.style.removeProperty(b)}function e(){this.style.setProperty(b,a,g)}function c(){var h=a.apply(this,arguments);h==null?this.style.removeProperty(b):this.style.setProperty(b,h,g)}return arguments.length<3&&(g=""),arguments.length<2?window.getComputedStyle(this.node(),null).getPropertyValue(b):this.each(a==null?f:typeof a=="function"?c:e)},jL.property=function(b,a){function f(){delete this[b]}function e(){this[b]=a}function c(){var g=a.apply(this,arguments);g==null?delete this[b]:this[b]=g}return arguments.
 length<2?this.node()[b]:this.each(a==null?f:typeof a=="function"?c:e)},jL.text=function(a){return arguments.length<1?this.node().textContent:this.each(typeof a=="function"?function(){var b=a.apply(this,arguments);this.textContent=b==null?"":b}:a==null?function(){this.textContent=""}:function(){this.textContent=a})},jL.html=function(a){return arguments.length<1?this.node().innerHTML:this.each(typeof a=="function"?function(){var b=a.apply(this,arguments);this.innerHTML=b==null?"":b}:a==null?function(){this.innerHTML=""}:function(){this.innerHTML=a})},jL.append=function(b){function a(){return this.appendChild(document.createElementNS(this.namespaceURI,b))}function c(){return this.appendChild(document.createElementNS(b.space,b.local))}return b=d3.ns.qualify(b),this.select(b.local?c:a)},jL.insert=function(b,a){function e(){return this.insertBefore(document.createElementNS(this.namespaceURI,b),jY(a,this))}function c(){return this.insertBefore(document.createElementNS(b.space,b.local),jY(a
 ,this))}return b=d3.ns.qualify(b),this.select(b.local?c:e)},jL.remove=function(){return this.each(function(){var a=this.parentNode;a&&a.removeChild(this)})},jL.data=function(c,b){function h(y,x){var w,v=y.length,q=x.length,o=Math.min(v,q),n=Math.max(v,q),m=[],l=[],u=[],s,r;if(b){var p=new gW,A=[],z,t=x.length;for(w=-1;++w<v;){z=b.call(s=y[w],s.__data__,w),p.has(z)?u[t++]=s:p.set(z,s),A.push(z)}for(w=-1;++w<q;){z=b.call(x,r=x[w],w),p.has(z)?(m[w]=s=p.get(z),s.__data__=r,l[w]=u[w]=null):(l[w]=ab(r),m[w]=u[w]=null),p.remove(z)}for(w=-1;++w<v;){p.has(A[w])&&(u[w]=y[w])}}else{for(w=-1;++w<o;){s=y[w],r=x[w],s?(s.__data__=r,m[w]=s,l[w]=u[w]=null):(l[w]=ab(r),m[w]=u[w]=null)}for(;w<q;++w){l[w]=ab(x[w]),m[w]=u[w]=null}for(;w<n;++w){u[w]=y[w],l[w]=m[w]=null}}l.update=m,l.parentNode=m.parentNode=u.parentNode=y.parentNode,g.push(l),f.push(m),e.push(u)}var a=-1,k=this.length,j,i;if(!arguments.length){c=new Array(k=(j=this[0]).length);while(++a<k){if(i=j[a]){c[a]=i.__data__}}return c}var g=jV([])
 ,f=j8([]),e=j8([]);if(typeof c=="function"){while(++a<k){h(j=this[a],c.call(j,j.parentNode.__data__,a))}}else{while(++a<k){h(j=this[a],c)}}return f.enter=function(){return g},f.exit=function(){return e},f},jL.datum=jL.map=function(a){return arguments.length<1?this.property("__data__"):this.property("__data__",a)},jL.filter=function(a){var j=[],i,h,g;typeof a!="function"&&(a=ka(a));for(var f=0,e=this.length;f<e;f++){j.push(i=[]),i.parentNode=(h=this[f]).parentNode;for(var c=0,b=h.length;c<b;c++){(g=h[c])&&a.call(g,g.__data__,c)&&i.push(g)}}return j8(j)},jL.order=function(){for(var b=-1,a=this.length;++b<a;){for(var g=this[b],f=g.length-1,e=g[f],c;--f>=0;){if(c=g[f]){e&&e!==c.nextSibling&&e.parentNode.insertBefore(c,e),e=c}}}return this},jL.sort=function(b){b=j7.apply(this,arguments);for(var a=-1,c=this.length;++a<c;){this[a].sort(b)}return this.order()},jL.on=function(b,a,f){arguments.length<3&&(f=!1);var e="__on"+b,c=b.indexOf(".");return c>0&&(b=b.substring(0,c)),arguments.length<2
 ?(c=this.node()[e])&&c._:this.each(function(h,g){function i(l){var m=d3.event;d3.event=l;try{a.call(k,k.__data__,g)}finally{d3.event=m}}var k=this,j=k[e];j&&(k.removeEventListener(b,j,j.$),delete k[e]),a&&(k.addEventListener(b,k[e]=i,i.$=f),i._=a)})},jL.each=function(c){for(var b=-1,a=this.length;++b<a;){for(var h=this[b],g=-1,f=h.length;++g<f;){var e=h[g];e&&c.call(e,e.__data__,g,b)}}return this},jL.call=function(a){return a.apply(this,(arguments[0]=this,arguments)),this},jL.empty=function(){return !this.node()},jL.node=function(c){for(var b=0,a=this.length;b<a;b++){for(var h=this[b],g=0,f=h.length;g<f;g++){var e=h[g];if(e){return e}}}return null},jL.transition=function(){var f=[],e,c;for(var b=-1,a=this.length;++b<a;){f.push(e=[]);for(var i=this[b],h=-1,g=i.length;++h<g;){e.push((c=i[h])?{node:c,delay:af,duration:ad}:null)}}return im(f,iP||++iU,Date.now())};var j1=j8([[document]]);j1[0].parentNode=h1,d3.select=function(a){return typeof a=="string"?j1.select(a):j8([[a]])},d3.select
 All=function(a){return typeof a=="string"?j1.selectAll(a):j8([hM(a)])};var iz=[];d3.selection.enter=jV,d3.selection.enter.prototype=iz,iz.append=jL.append,iz.insert=jL.insert,iz.empty=jL.empty,iz.node=jL.node,iz.select=function(f){var e=[],c,b,a,l,k;for(var j=-1,i=this.length;++j<i;){a=(l=this[j]).update,e.push(c=[]),c.parentNode=l.parentNode;for(var h=-1,g=l.length;++h<g;){(k=l[h])?(c.push(a[h]=b=f.call(l.parentNode,k.__data__,h)),b.__data__=k.__data__):c.push(null)}}return j8(e)};var ji={},i0=[],iU=0,iP=0,iL=0,aj=250,ah=d3.ease("cubic-in-out"),af=iL,ad=aj,ac=ah;i0.call=jL.call,d3.transition=function(a){return arguments.length?iP?a.transition():a:j1.transition()},d3.transition.prototype=i0,i0.select=function(c){var b=[],a,k,j;typeof c!="function"&&(c=jo(c));for(var i=-1,h=this.length;++i<h;){b.push(a=[]);for(var g=this[i],f=-1,e=g.length;++f<e;){(j=g[f])&&(k=c.call(j.node,j.node.__data__,f))?("__data__" in j.node&&(k.__data__=j.node.__data__),a.push({node:k,delay:j.delay,duration:j
 .duration})):a.push(null)}}return im(b,this.id,this.time).ease(this.ease())},i0.selectAll=function(h){var g=[],f,e,c;typeof h!="function"&&(h=i9(h));for(var b=-1,a=this.length;++b<a;){for(var m=this[b],l=-1,k=m.length;++l<k;){if(c=m[l]){e=h.call(c.node,c.node.__data__,l),g.push(f=[]);for(var j=-1,i=e.length;++j<i;){f.push({node:e[j],delay:c.delay,duration:c.duration})}}}}return im(g,this.id,this.time).ease(this.ease())},i0.attr=function(b,a){return this.attrTween(b,i6(b,a))},i0.attrTween=function(b,a){function e(i,h){var g=a.call(this,i,h,this.getAttribute(f));return g===ji?(this.removeAttribute(f),null):g&&function(j){this.setAttribute(f,g(j))}}function c(i,h){var g=a.call(this,i,h,this.getAttributeNS(f.space,f.local));return g===ji?(this.removeAttributeNS(f.space,f.local),null):g&&function(j){this.setAttributeNS(f.space,f.local,g(j))}}var f=d3.ns.qualify(b);return this.tween("attr."+b,f.local?c:e)},i0.style=function(b,a,c){return arguments.length<3&&(c=""),this.styleTween(b,i6(b,a
 ),c)},i0.styleTween=function(b,a,c){return arguments.length<3&&(c=""),this.tween("style."+b,function(e,g){var f=a.call(this,e,g,window.getComputedStyle(this,null).getPropertyValue(b));return f===ji?(this.style.removeProperty(b),null):f&&function(h){this.style.setProperty(b,f(h),c)}})},i0.text=function(a){return this.tween("text",function(c,b){this.textContent=typeof a=="function"?a.call(this,c,b):a})},i0.remove=function(){return this.each("end.transition",function(){var a;!this.__transition__&&(a=this.parentNode)&&a.removeChild(this)})},i0.delay=function(b){var a=this;return a.each(typeof b=="function"?function(c,f,e){a[e][f].delay=b.apply(this,arguments)|0}:(b|=0,function(c,f,e){a[e][f].delay=b}))},i0.duration=function(b){var a=this;return a.each(typeof b=="function"?function(c,f,e){a[e][f].duration=Math.max(1,b.apply(this,arguments)|0)}:(b=Math.max(1,b|0),function(c,f,e){a[e][f].duration=b}))},i0.transition=function(){return this.select(iE)};var jO=null,jI,jC;d3.timer=function(b,a
 ,g){var f=!1,e,c=jO;if(arguments.length<3){if(arguments.length<2){a=0}else{if(!isFinite(a)){return}}g=Date.now()}while(c){if(c.callback===b){c.then=g,c.delay=a,f=!0;break}e=c,c=c.next}f||(jO={callback:b,then:g,delay:a,next:jO}),jI||(jC=clearTimeout(jC),jI=1,jk(jz))},d3.timer.flush=function(){var b,a=Date.now(),c=jO;while(c){b=a-c.then,c.delay||(c.flush=c.callback(b)),c=c.next}jt()};var jk=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){setTimeout(a,17)};d3.transform=function(b){var a=document.createElementNS(d3.ns.prefix.svg,"g"),c={a:1,b:0,c:0,d:1,e:0,f:0};return(d3.transform=function(f){a.setAttribute("transform",f);var e=a.transform.baseVal.consolidate();return new jh(e?e.matrix:c)})(b)},jh.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var i5=180/Math.PI;d3.mouse=functio
 n(a){return id(a,j6())};var io=/WebKit/.test(navigator.userAgent)?-1:0;d3.touches=function(b,a){return arguments.length<2&&(a=j6().touches),a?hM(a).map(function(e){var c=id(b,e);return c.identifier=e.identifier,c}):[]},d3.scale={},d3.scale.linear=function(){return g0([0,1],[0,1],d3.interpolate,!1)},d3.scale.log=function(){return j2(d3.scale.linear(),h9)};var iw=d3.format(".0e");h9.pow=function(a){return Math.pow(10,a)},hR.pow=function(a){return -Math.pow(10,-a)},d3.scale.pow=function(){return hz(d3.scale.linear(),1)},d3.scale.sqrt=function(){return d3.scale.pow().exponent(0.5)},d3.scale.ordinal=function(){return d9([],{t:"range",x:[]})},d3.scale.category10=function(){return d3.scale.ordinal().range(d4)},d3.scale.category20=function(){return d3.scale.ordinal().range(c7)},d3.scale.category20b=function(){return d3.scale.ordinal().range(iZ)},d3.scale.category20c=function(){return d3.scale.ordinal().range(iN)};var d4=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2",
 "#7f7f7f","#bcbd22","#17becf"],c7=["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"],iZ=["#393b79","#5254a3","#6b6ecf","#9c9ede","#637939","#8ca252","#b5cf6b","#cedb9c","#8c6d31","#bd9e39","#e7ba52","#e7cb94","#843c39","#ad494a","#d6616b","#e7969c","#7b4173","#a55194","#ce6dbd","#de9ed6"],iN=["#3182bd","#6baed6","#9ecae1","#c6dbef","#e6550d","#fd8d3c","#fdae6b","#fdd0a2","#31a354","#74c476","#a1d99b","#c7e9c0","#756bb1","#9e9ac8","#bcbddc","#dadaeb","#636363","#969696","#bdbdbd","#d9d9d9"];d3.scale.quantile=function(){return hW([],[])},d3.scale.quantize=function(){return hK(0,1,[0,1])},d3.scale.identity=function(){return hB([0,1])},d3.svg={},d3.svg.arc=function(){function c(){var i=b.apply(this,arguments),h=a.apply(this,arguments),g=f.apply(this,arguments)+hp,p=e.apply(this,arguments)+hp,o=(p<g&&(o=g,g=p,p=o),p-g),n=o<Math.PI?"0":"1",
 m=Math.cos(g),l=Math.sin(g),k=Math.cos(p),j=Math.sin(p);return o>=jS?i?"M0,"+h+"A"+h+","+h+" 0 1,1 0,"+-h+"A"+h+","+h+" 0 1,1 0,"+h+"M0,"+i+"A"+i+","+i+" 0 1,0 0,"+-i+"A"+i+","+i+" 0 1,0 0,"+i+"Z":"M0,"+h+"A"+h+","+h+" 0 1,1 0,"+-h+"A"+h+","+h+" 0 1,1 0,"+h+"Z":i?"M"+h*m+","+h*l+"A"+h+","+h+" 0 "+n+",1 "+h*k+","+h*j+"L"+i*k+","+i*j+"A"+i+","+i+" 0 "+n+",0 "+i*m+","+i*l+"Z":"M"+h*m+","+h*l+"A"+h+","+h+" 0 "+n+",1 "+h*k+","+h*j+"L0,0Z"}var b=jM,a=jD,f=jv,e=i7;return c.innerRadius=function(g){return arguments.length?(b=ke(g),c):b},c.outerRadius=function(g){return arguments.length?(a=ke(g),c):a},c.startAngle=function(g){return arguments.length?(f=ke(g),c):f},c.endAngle=function(g){return arguments.length?(e=ke(g),c):e},c.centroid=function(){var h=(b.apply(this,arguments)+a.apply(this,arguments))/2,g=(f.apply(this,arguments)+e.apply(this,arguments))/2+hp;return[Math.cos(g)*h,Math.sin(g)*h]},c};var hp=-Math.PI/2,jS=2*Math.PI-0.000001;d3.svg.line=function(){return iH(gz)};var kc="linear",j
 3=d3.map({linear:jX,"step-before":ic,"step-after":hX,basis:iI,"basis-open":ae,"basis-closed":jZ,bundle:jK,cardinal:jF,"cardinal-open":hG,"cardinal-closed":ho,monotone:f8}),ih=[0,2/3,1/3,0],h5=[0,1/3,2/3,0],hT=[0,1/6,2/3,1/6];d3.svg.line.radial=function(){var a=iH(f3);return a.radius=a.x,delete a.x,a.angle=a.y,delete a.y,a},ic.reverse=hX,hX.reverse=ic,d3.svg.area=function(){return f0(Object)},d3.svg.area.radial=function(){var a=f0(f3);return a.radius=a.x,delete a.x,a.innerRadius=a.x0,delete a.x0,a.outerRadius=a.x1,delete a.x1,a.angle=a.y,delete a.y,a.startAngle=a.y0,delete a.y0,a.endAngle=a.y1,delete a.y1,a},d3.svg.chord=function(){function i(m,l){var o=h(this,c,m,l),n=h(this,b,m,l);return"M"+o.p0+f(o.r,o.p1,o.a1-o.a0)+(g(o,n)?e(o.r,o.p1,o.r,o.p0):e(o.r,o.p1,n.r,n.p0)+f(n.r,n.p1,n.a1-n.a0)+e(n.r,n.p1,o.r,o.p0))+"Z"}function h(o,l,n,m){var s=l.call(o,n,m),r=a.call(o,s,m),q=k.call(o,s,m)+hp,p=j.call(o,s,m)+hp;return{r:r,a0:q,a1:p,p0:[r*Math.cos(q),r*Math.sin(q)],p1:[r*Math.cos(p),r*Mat
 h.sin(p)]}}function g(m,l){return m.a0==l.a0&&m.a1==l.a1}function f(m,l,n){return"A"+m+","+m+" 0 "+ +(n>Math.PI)+",1 "+l}function e(m,l,o,n){return"Q 0,0 "+n}var c=e5,b=e1,a=jy,k=jv,j=i7;return i.radius=function(l){return arguments.length?(a=ke(l),i):a},i.source=function(l){return arguments.length?(c=ke(l),i):c},i.target=function(l){return arguments.length?(b=ke(l),i):b},i.startAngle=function(l){return arguments.length?(k=ke(l),i):k},i.endAngle=function(l){return arguments.length?(j=ke(l),i):j},i},d3.svg.diagonal=function(){function c(h,g){var f=b.call(this,h,g),k=a.call(this,h,g),j=(f.y+k.y)/2,i=[f,{x:f.x,y:j},{x:k.x,y:j},k];return i=i.map(e),"M"+i[0]+"C"+i[1]+" "+i[2]+" "+i[3]}var b=e5,a=e1,e=iJ;return c.source=function(f){return arguments.length?(b=ke(f),c):b},c.target=function(f){return arguments.length?(a=ke(f),c):a},c.projection=function(f){return arguments.length?(e=f,c):e},c},d3.svg.diagonal.radial=function(){var b=d3.svg.diagonal(),a=iJ,c=b.projection;return b.projection=fu
 nction(e){return arguments.length?c(b8(a=e)):a},b},d3.svg.mouse=d3.mouse,d3.svg.touches=d3.touches,d3.svg.symbol=function(){function c(f,e){return(hc.get(b.call(this,f,e))||hh)(a.call(this,f,e))}var b=hk,a=b4;return c.type=function(e){return arguments.length?(b=ke(e),c):b},c.size=function(e){return arguments.length?(a=ke(e),c):a},c};var hc=d3.map({circle:hh,cross:function(b){var a=Math.sqrt(b/5)/2;return"M"+-3*a+","+-a+"H"+-a+"V"+-3*a+"H"+a+"V"+-a+"H"+3*a+"V"+a+"H"+a+"V"+3*a+"H"+-a+"V"+a+"H"+-3*a+"Z"},diamond:function(b){var a=Math.sqrt(b/(2*g4)),c=a*g4;return"M0,"+-a+"L"+c+",0 0,"+a+" "+-c+",0Z"},square:function(b){var a=Math.sqrt(b)/2;return"M"+-a+","+-a+"L"+a+","+-a+" "+a+","+a+" "+-a+","+a+"Z"},"triangle-down":function(b){var a=Math.sqrt(b/g8),c=a*g8/2;return"M0,"+c+"L"+a+","+-c+" "+-a+","+-c+"Z"},"triangle-up":function(b){var a=Math.sqrt(b/g8),c=a*g8/2;return"M0,"+-c+"L"+a+","+c+" "+-a+","+c+"Z"}});d3.svg.symbolTypes=hc.keys();var g8=Math.sqrt(3),g4=Math.tan(30*Math.PI/180);d3.
 svg.axis=function(){function g(m){m.each(function(){var H=d3.select(this),G=j==null?f.ticks?f.ticks.apply(f,k):f.domain():j,F=i==null?f.tickFormat?f.tickFormat.apply(f,k):String:i,E=jm(f,G,h),C=H.selectAll(".minor").data(E,String),A=C.enter().insert("line","g").attr("class","tick minor").style("opacity",0.000001),v=d3.transition(C.exit()).style("opacity",0.000001).remove(),r=d3.transition(C).style("opacity",1),o=H.selectAll("g").data(G,String),D=o.enter().insert("g","path").style("opacity",0.000001),z=d3.transition(o.exit()).style("opacity",0.000001).remove(),y=d3.transition(o).style("opacity",1),w,u=jq(f),t=H.selectAll(".domain").data([0]),q=t.enter().append("path").attr("class","domain"),x=d3.transition(t),s=f.copy(),p=this.__chart__||s;this.__chart__=s,D.append("line").attr("class","tick"),D.append("text"),y.select("text").text(F);switch(e){case"bottom":w=g2,A.attr("y2",b),r.attr("x2",0).attr("y2",b),D.select("line").attr("y2",c),D.select("text").attr("y",Math.max(c,0)+l),y.selec
 t("line").attr("x2",0).attr("y2",c),y.select("text").attr("x",0).attr("y",Math.max(c,0)+l).attr("dy",".71em").attr("text-anchor","middle"),x.attr("d","M"+u[0]+","+a+"V0H"+u[1]+"V"+a);break;case"top":w=g2,A.attr("y2",-b),r.attr("x2",0).attr("y2",-b),D.select("line").attr("y2",-c),D.select("text").attr("y",-(Math.max(c,0)+l)),y.select("line").attr("x2",0).attr("y2",-c),y.select("text").attr("x",0).attr("y",-(Math.max(c,0)+l)).attr("dy","0em").attr("text-anchor","middle"),x.attr("d","M"+u[0]+","+-a+"V0H"+u[1]+"V"+-a);break;case"left":w=jE,A.attr("x2",-b),r.attr("x2",-b).attr("y2",0),D.select("line").attr("x2",-c),D.select("text").attr("x",-(Math.max(c,0)+l)),y.select("line").attr("x2",-c).attr("y2",0),y.select("text").attr("x",-(Math.max(c,0)+l)).attr("y",0).attr("dy",".32em").attr("text-anchor","end"),x.attr("d","M"+-a+","+u[0]+"H0V"+u[1]+"H"+-a);break;case"right":w=jE,A.attr("x2",b),r.attr("x2",b).attr("y2",0),D.select("line").attr("x2",c),D.select("text").attr("x",Math.max(c,0)+l),y
 .select("line").attr("x2",c).attr("y2",0),y.select("text").attr("x",Math.max(c,0)+l).attr("y",0).attr("dy",".32em").attr("text-anchor","start"),x.attr("d","M"+a+","+u[0]+"H0V"+u[1]+"H"+a)}if(f.ticks){D.call(w,p),y.call(w,s),z.call(w,s),A.call(w,p),r.call(w,s),v.call(w,s)}else{var n=s.rangeBand()/2,B=function(I){return s(I)+n};D.call(w,B),y.call(w,B)}})}var f=d3.scale.linear(),e="bottom",c=6,b=6,a=6,l=3,k=[10],j=null,i,h=0;return g.scale=function(m){return arguments.length?(f=m,g):f},g.orient=function(m){return arguments.length?(e=m,g):e},g.ticks=function(){return arguments.length?(k=arguments,g):k},g.tickValues=function(m){return arguments.length?(j=m,g):j},g.tickFormat=function(m){return arguments.length?(i=m,g):i},g.tickSize=function(n,m,p){if(!arguments.length){return c}var o=arguments.length-1;return c=+n,b=o>1?+m:c,a=o>0?+arguments[o]:c,g},g.tickPadding=function(m){return arguments.length?(l=+m,g):l},g.tickSubdivide=function(m){return arguments.length?(h=+m,g):h},g},d3.svg.brus
 h=function(){function k(m){m.each(function(){var p=d3.select(this),r=p.selectAll(".background").data([0]),q=p.selectAll(".extent").data([0]),o=p.selectAll(".resize").data(b,String),n;p.style("pointer-events","all").on("mousedown.brush",g).on("touchstart.brush",g),r.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),q.enter().append("rect").attr("class","extent").style("cursor","move"),o.enter().append("g").attr("class",function(s){return"resize "+s}).style("cursor",function(s){return iO[s]}).append("rect").attr("x",function(s){return/[ew]$/.test(s)?-3:null}).attr("y",function(s){return/^[ns]/.test(s)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),o.style("display",k.empty()?"none":null),o.exit().remove(),e&&(n=jq(e),r.attr("x",n[0]).attr("width",n[1]-n[0]),i(p)),c&&(n=jq(c),r.attr("y",n[0]).attr("height",n[1]-n[0]),h(p)),j(p)})}function j(m){m.selectAll(".resize").attr("transform",function(n){return"tra
 nslate("+a[+/e$/.test(n)][0]+","+a[+/^s/.test(n)][1]+")"})}function i(m){m.select(".extent").attr("x",a[0][0]),m.selectAll(".extent,.n>rect,.s>rect").attr("width",a[1][0]-a[0][0])}function h(m){m.select(".extent").attr("y",a[0][1]),m.selectAll(".extent,.e>rect,.w>rect").attr("height",a[1][1]-a[0][1])}function g(){function v(){var G=d3.event.changedTouches;return G?d3.touches(F,G)[0]:d3.mouse(F)}function t(){d3.event.keyCode==32&&(s||(p=null,n[0]-=a[1][0],n[1]-=a[1][1],s=2),ai())}function r(){d3.event.keyCode==32&&s==2&&(n[0]+=a[1][0],n[1]+=a[1][1],s=0,ai())}function u(){var G=v(),H=!1;m&&(G[0]+=m[0],G[1]+=m[1]),s||(d3.event.altKey?(p||(p=[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]),n[0]=a[+(G[0]<p[0])][0],n[1]=a[+(G[1]<p[1])][1]):p=null),z&&q(G,e,0)&&(i(C),H=!0),x&&q(G,c,1)&&(h(C),H=!0),H&&(j(C),D({type:"brush",mode:s?"move":"resize"}))}function q(G,P,O){var J=jq(P),I=J[0],H=J[1],N=n[O],M=a[1][O]-a[0][O],L,K;s&&(I-=N,H-=M+N),L=Math.max(I,Math.min(H,G[O])),s?K=(L+=N)+M:(p&&(N=Math.max(
 I,Math.min(H,2*p[O]-L))),N<L?(K=L,L=N):K=N);if(a[0][O]!==L||a[1][O]!==K){return l=null,a[0][O]=L,a[1][O]=K,!0}}function o(){u(),C.style("pointer-events","all").selectAll(".resize").style("display",k.empty()?"none":null),d3.select("body").style("cursor",null),A.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),D({type:"brushend"}),ai()}var F=this,E=d3.select(d3.event.target),D=f.of(F,arguments),C=d3.select(F),B=E.datum(),z=!/^(n|s)$/.test(B)&&e,x=!/^(e|w)$/.test(B)&&c,s=E.classed("extent"),p,n=v(),m,A=d3.select(window).on("mousemove.brush",u).on("mouseup.brush",o).on("touchmove.brush",u).on("touchend.brush",o).on("keydown.brush",t).on("keyup.brush",r);if(s){n[0]=a[0][0]-n[0],n[1]=a[0][1]-n[1]}else{if(B){var y=+/w$/.test(B),w=+/^n/.test(B);m=[a[1-y][0]-n[0],a[1-w][1]-n[1]],n[0]=a[y][0],n[1]=a[w][1]}else{d3.event.altKey&&(p=n.slice())}}C.style("pointer-events","none").selectAll(".resi
 ze").style("display",null),d3.select("body").style("cursor",E.style("cursor")),D({type:"brushstart"}),u(),ai()}var f=jQ(k,"brushstart","brush","brushend"),e=null,c=null,b=ii[0],a=[[0,0],[0,0]],l;return k.x=function(m){return arguments.length?(e=m,b=ii[!e<<1|!c],k):e},k.y=function(m){return arguments.length?(c=m,b=ii[!e<<1|!c],k):c},k.extent=function(r){var q,p,o,n,m;return arguments.length?(l=[[0,0],[0,0]],e&&(q=r[0],p=r[1],c&&(q=q[0],p=p[0]),l[0][0]=q,l[1][0]=p,e.invert&&(q=e(q),p=e(p)),p<q&&(m=q,q=p,p=m),a[0][0]=q|0,a[1][0]=p|0),c&&(o=r[0],n=r[1],e&&(o=o[1],n=n[1]),l[0][1]=o,l[1][1]=n,c.invert&&(o=c(o),n=c(n)),n<o&&(m=o,o=n,n=m),a[0][1]=o|0,a[1][1]=n|0),k):(r=l||a,e&&(q=r[0][0],p=r[1][0],l||(q=a[0][0],p=a[1][0],e.invert&&(q=e.invert(q),p=e.invert(p)),p<q&&(m=q,q=p,p=m))),c&&(o=r[0][1],n=r[1][1],l||(o=a[0][1],n=a[1][1],c.invert&&(o=c.invert(o),n=c.invert(n)),n<o&&(m=o,o=n,n=m))),e&&c?[[q,o],[p,n]]:e?[q,p]:c&&[o,n])},k.clear=function(){return l=null,a[0][0]=a[0][1]=a[1][0]=a[1][1]=0
 ,k},k.empty=function(){return e&&a[0][0]===a[1][0]||c&&a[0][1]===a[1][1]},d3.rebind(k,f,"on")};var iO={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},ii=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];d3.behavior={},d3.behavior.drag=function(){function e(){this.on("mousedown.drag",c).on("touchstart.drag",c)}function c(){function m(){var r=i.parentNode,q=d3.event.changedTouches;return q?d3.touches(r,q)[0]:d3.mouse(r)}function l(){if(!i.parentNode){return k()}var r=m(),q=r[0]-p[0],s=r[1]-p[1];o|=q|s,p=r,ai(),h({type:"drag",x:r[0]+f[0],y:r[1]+f[1],dx:q,dy:s})}function k(){h({type:"dragend"}),o&&(ai(),d3.event.target===g&&n.on("click.drag",j,!0)),n.on("mousemove.drag",null).on("touchmove.drag",null).on("mouseup.drag",null).on("touchend.drag",null)}function j(){ai(),n.on("click.drag",null)}var i=this,h=b.of(i,arguments),g=d3.event.target,f,p=m(),o=0,n=d3.select(window).on("mousemove.drag",l).on("
 touchmove.drag",l).on("mouseup.drag",k,!0).on("touchend.drag",k,!0);a?(f=a.apply(i,arguments),f=[f.x-p[0],f.y-p[1]]):f=[0,0],ai(),h({type:"dragstart"})}var b=jQ(e,"drag","dragstart","dragend"),a=null;return e.origin=function(f){return arguments.length?(a=f,e):a},d3.rebind(e,b,"on")},d3.behavior.zoom=function(){function k(){this.on("mousedown.zoom",c).on("mousewheel.zoom",b).on("mousemove.zoom",a).on("DOMMouseScroll.zoom",b).on("dblclick.zoom",n).on("touchstart.zoom",l).on("touchmove.zoom",j).on("touchend.zoom",l)}function i(y){return[(y[0]-x[0])/v,(y[1]-x[1])/v]}function h(y){return[y[0]*v+x[0],y[1]*v+x[1]]}function g(y){v=Math.max(t[0],Math.min(t[1],y))}function f(z,y){y=h(y),x[0]+=z[0]-y[0],x[1]+=z[1]-y[1]}function e(y){q&&q.domain(r.range().map(function(z){return(z-x[0])/v}).map(r.invert)),o&&o.domain(p.range().map(function(z){return(z-x[1])/v}).map(p.invert)),d3.event.preventDefault(),y({type:"zoom",scale:v,translate:x})}function c(){function A(){D=1,f(d3.mouse(G),B),e(F)}functi
 on z(){D&&ai(),C.on("mousemove.zoom",null).on("mouseup.zoom",null),D&&d3.event.target===E&&C.on("click.zoom",y,!0)}function y(){ai(),C.on("click.zoom",null)}var G=this,F=s.of(G,arguments),E=d3.event.target,D=0,C=d3.select(window).on("mousemove.zoom",A).on("mouseup.zoom",z),B=i(d3.mouse(G));window.focus(),ai()}function b(){w||(w=i(d3.mouse(this))),g(Math.pow(2,hw()*0.002)*v),f(d3.mouse(this),w),e(s.of(this,arguments))}function a(){w=null}function n(){var z=d3.mouse(this),y=i(z);g(d3.event.shiftKey?v/2:v*2),f(z,y),e(s.of(this,arguments))}function l(){var A=d3.touches(this),y=Date.now();u=v,w={},A.forEach(function(C){w[C.identifier]=i(C)}),ai();if(A.length===1&&y-m<500){var B=A[0],z=i(A[0]);g(v*2),f(B,z),e(s.of(this,arguments))}m=y}function j(){var B=d3.touches(this),z=B[0],C=w[z.identifier];if(A=B[1]){var A,y=w[A.identifier];z=[(z[0]+A[0])/2,(z[1]+A[1])/2],C=[(C[0]+y[0])/2,(C[1]+y[1])/2],g(d3.event.scale*u)}f(z,C),e(s.of(this,arguments))}var x=[0,0],w,v=1,u,t=hH,s=jQ(k,"zoom"),r,q,p,o
 ,m;return k.translate=function(y){return arguments.length?(x=y.map(Number),k):x},k.scale=function(y){return arguments.length?(v=+y,k):v},k.scaleExtent=function(y){return arguments.length?(t=y==null?hH:y.map(Number),k):t},k.x=function(y){return arguments.length?(q=y,r=y.copy(),k):q},k.y=function(y){return arguments.length?(o=y,p=y.copy(),k):o},d3.rebind(k,s,"on")};var hZ,hH=[0,Infinity];d3.layout={},d3.layout.bundle=function(){return function(b){var a=[],e=-1,c=b.length;while(++e<c){a.push(jj(b[e]))}return a}},d3.layout.chord=function(){function h(){var x={},u=[],s=d3.range(a),r=[],q,p,o,m,B;e=[],c=[],q=0,m=-1;while(++m<a){p=0,B=-1;while(++B<a){p+=b[m][B]}u.push(p),r.push(d3.range(a)),q+=p}k&&s.sort(function(D,C){return k(u[D],u[C])}),j&&r.forEach(function(D,C){D.sort(function(F,E){return j(b[C][F],b[C][E])})}),q=(2*Math.PI-l*a)/q,p=0,m=-1;while(++m<a){o=p,B=-1;while(++B<a){var A=s[m],w=r[A][B],t=b[A][w],z=p,y=p+=t*q;x[A+"-"+w]={index:A,subindex:w,startAngle:z,endAngle:y,value:t}}c[A
 ]={index:A,startAngle:o,endAngle:p,value:(p-o)/q},p+=l}m=-1;while(++m<a){B=m-1;while(++B<a){var v=x[m+"-"+B],n=x[B+"-"+m];(v.value||n.value)&&e.push(v.value<n.value?{source:n,target:v}:{source:v,target:n})}}i&&g()}function g(){e.sort(function(n,m){return i((n.source.value+n.target.value)/2,(m.source.value+m.target.value)/2)})}var f={},e,c,b,a,l=0,k,j,i;return f.matrix=function(m){return arguments.length?(a=(b=m)&&b.length,e=c=null,f):b},f.padding=function(m){return arguments.length?(l=m,e=c=null,f):l},f.sortGroups=function(m){return arguments.length?(k=m,e=c=null,f):k},f.sortSubgroups=function(m){return arguments.length?(j=m,e=null,f):j},f.sortChords=function(m){return arguments.length?(i=m,e&&g(),f):i},f.chords=function(){return e||h(),e},f.groups=function(){return c||h(),c},f},d3.layout.force=function(){function c(u){return function(z,y,x,w,v){if(z.point!==u){var D=z.cx-u.x,C=z.cy-u.y,B=1/Math.sqrt(D*D+C*C);if((w-y)*B<e){var A=z.charge*B*B;return u.px-=D*A,u.py-=C*A,!0}if(z.point&
 &isFinite(B)){var A=z.pointCharge*B*B;u.px-=D*A,u.py-=C*A}}return !z.charge}}function a(u){gH(gL=u),gS=t}var t={},s=d3.dispatch("start","tick","end"),q=[1,1],o,l,j=0.9,i=j9,h=j0,g=-30,f=0.1,e=0.8,b,r=[],p=[],n,m,k;return t.tick=function(){if((l*=0.99)<0.005){return s.end({type:"end",alpha:l=0}),!0}var v=r.length,u=p.length,E,D,C,B,A,z,y,x,w;for(D=0;D<u;++D){C=p[D],B=C.source,A=C.target,x=A.x-B.x,w=A.y-B.y;if(z=x*x+w*w){z=l*m[D]*((z=Math.sqrt(z))-n[D])/z,x*=z,w*=z,A.x-=x*(y=B.weight/(A.weight+B.weight)),A.y-=w*y,B.x+=x*(y=1-y),B.y+=w*y}}if(y=l*f){x=q[0]/2,w=q[1]/2,D=-1;if(y){while(++D<v){C=r[D],C.x+=(x-C.x)*y,C.y+=(w-C.y)*y}}}if(g){kh(E=d3.geom.quadtree(r),l,k),D=-1;while(++D<v){(C=r[D]).fixed||E.visit(c(C))}}D=-1;while(++D<v){C=r[D],C.fixed?(C.x=C.px,C.y=C.py):(C.x-=(C.px-(C.px=C.x))*j,C.y-=(C.py-(C.py=C.y))*j)}s.tick({type:"tick",alpha:l})},t.nodes=function(u){return arguments.length?(r=u,t):r},t.links=function(u){return arguments.length?(p=u,t):p},t.size=function(u){return argumen
 ts.length?(q=u,t):q},t.linkDistance=function(u){return arguments.length?(i=ke(u),t):i},t.distance=t.linkDistance,t.linkStrength=function(u){return arguments.length?(h=ke(u),t):h},t.friction=function(u){return arguments.length?(j=u,t):j},t.charge=function(u){return arguments.length?(g=typeof u=="function"?u:+u,t):g},t.gravity=function(u){return arguments.length?(f=u,t):f},t.theta=function(u){return arguments.length?(e=u,t):e},t.alpha=function(u){return arguments.length?(l?u>0?l=u:l=0:u>0&&(s.start({type:"start",alpha:l=u}),d3.timer(t.tick)),t):l},t.start=function(){function z(H,J){var I=y(x),G=-1,F=I.length,E;while(++G<F){if(!isNaN(E=I[G][H])){return E}}return Math.random()*J}function y(){if(!B){B=[];for(w=0;w<v;++w){B[w]=[]}for(w=0;w<u;++w){var E=p[w];B[E.source.index].push(E.target),B[E.target.index].push(E.source)}}return B[x]}var x,w,v=r.length,u=p.length,D=q[0],C=q[1],B,A;for(x=0;x<v;++x){(A=r[x]).index=x,A.weight=0}n=[],m=[];for(x=0;x<u;++x){A=p[x],typeof A.source=="number"&&(A
 .source=r[A.source]),typeof A.target=="number"&&(A.target=r[A.target]),n[x]=i.call(this,A,x),m[x]=h.call(this,A,x),++A.source.weight,++A.target.weight}for(x=0;x<v;++x){A=r[x],isNaN(A.x)&&(A.x=z("x",D)),isNaN(A.y)&&(A.y=z("y",C)),isNaN(A.px)&&(A.px=A.x),isNaN(A.py)&&(A.py=A.y)}k=[];if(typeof g=="function"){for(x=0;x<v;++x){k[x]=+g.call(this,r[x],x)}}else{for(x=0;x<v;++x){k[x]=g}}return t.resume()},t.resume=function(){return t.alpha(0.1)},t.stop=function(){return t.alpha(0)},t.drag=function(){o||(o=d3.behavior.drag().origin(gz).on("dragstart",a).on("drag",iG).on("dragend",gw)),this.on("mouseover.force",gH).on("mouseout.force",gC).call(o)},d3.rebind(t,s,"on")};var gS,gL;d3.layout.partition=function(){function f(o,n,m,l){var k=o.children;o.x=n,o.y=o.depth*l,o.dx=m,o.dy=l;if(k&&(i=k.length)){var j=-1,i,h,g;m=o.value?m/o.value:0;while(++j<i){f(h=k[j],n,g=h.value*m,l),n+=g}}}function e(i){var h=i.children,g=0;if(h&&(j=h.length)){var k=-1,j;while(++k<j){g=Math.max(g,e(h[k]))}}return 1+g}fun
 ction c(g,i){var h=b.call(this,g,i);return f(h[0],0,a[0],a[1]/e(h[0])),h}var b=d3.layout.hierarchy(),a=[1,1];return c.size=function(g){return arguments.length?(a=g,c):a},gE(c,b)},d3.layout.pie=function(){function c(m,k){var h=m.map(function(n,o){return +b.call(c,n,o)}),g=+(typeof f=="function"?f.apply(this,arguments):f),l=((typeof e=="function"?e.apply(this,arguments):e)-f)/d3.sum(h),j=d3.range(m.length);a!=null&&j.sort(a===ig?function(o,n){return h[n]-h[o]}:function(n,o){return a(m[n],m[o])});var i=[];return j.forEach(function(n){i[n]={data:m[n],value:d=h[n],startAngle:g,endAngle:g+=d*l}}),i}var b=Number,a=ig,f=0,e=2*Math.PI;return c.value=function(g){return arguments.length?(b=g,c):b},c.sort=function(g){return arguments.length?(a=g,c):a},c.startAngle=function(g){return arguments.length?(f=g,c):f},c.endAngle=function(g){return arguments.length?(e=g,c):e},c};var ig={};d3.layout.stack=function(){function e(m,l){var k=m.map(function(u,t){return c.call(e,u,t)}),j=k.map(function(t,u){re
 turn t.map(function(w,v){return[g.call(e,w,v),f.call(e,w,v)]})}),i=b.call(e,j,l);k=d3.permute(k,i),j=d3.permute(j,i);var s=a.call(e,j,l),r=k.length,q=k[0].length,p,o,n;for(o=0;o<q;++o){h.call(e,k[0][o],n=s[o],j[0][o][1]);for(p=1;p<r;++p){h.call(e,k[p][o],n+=j[p-1][o][1],j[p][o][1])}}return m}var c=gz,b=d0,a=hU,h=ht,g=h3,f=hL;return e.values=function(i){return arguments.length?(c=i,e):c},e.order=function(i){return arguments.length?(b=typeof i=="function"?i:jG.get(i)||d0,e):b},e.offset=function(i){return arguments.length?(a=typeof i=="function"?i:d5.get(i)||hU,e):a},e.x=function(i){return arguments.length?(g=i,e):g},e.y=function(i){return arguments.length?(f=i,e):f},e.out=function(i){return arguments.length?(h=i,e):h},e};var jG=d3.map({"inside-out":function(f){var e=f.length,c,b,a=f.map(c4),l=f.map(gX),k=d3.range(e).sort(function(n,m){return a[n]-a[m]}),j=0,i=0,h=[],g=[];for(c=0;c<e;++c){b=k[c],j<i?(j+=l[b],h.push(b)):(i+=l[b],g.push(b))}return g.reverse().concat(h)},reverse:function(
 a){return d3.range(a.length).reverse()},"default":d0}),d5=d3.map({silhouette:function(a){var j=a.length,i=a[0].length,h=[],g=0,f,e,c,b=[];for(e=0;e<i;++e){for(f=0,c=0;f<j;f++){c+=a[f][e][1]}c>g&&(g=c),h.push(c)}for(e=0;e<i;++e){b[e]=(g-h[e])/2}return b},wiggle:function(p){var n=p.length,l=p[0],k=l.length,j=0,i,h,g,f,e,c,b,a,o,m=[];m[0]=a=o=0;for(h=1;h<k;++h){for(i=0,f=0;i<n;++i){f+=p[i][h][1]}for(i=0,e=0,b=l[h][0]-l[h-1][0];i<n;++i){for(g=0,c=(p[i][h][1]-p[i][h-1][1])/(2*b);g<i;++g){c+=(p[g][h][1]-p[g][h-1][1])/b}e+=c*p[i][h][1]}m[h]=a-=f?e/f*b:0,a<o&&(o=a)}for(h=0;h<k;++h){m[h]-=o}return m},expand:function(f){var e=f.length,c=f[0].length,b=1/e,a,i,h,g=[];for(i=0;i<c;++i){for(a=0,h=0;a<e;a++){h+=f[a][i][1]}if(h){for(a=0;a<e;a++){f[a][i][1]/=h}}else{for(a=0;a<e;a++){f[a][i][1]=b}}}for(i=0;i<c;++i){g[i]=0}return g},zero:hU});d3.layout.histogram=function(){function c(k,j){var i=[],h=k.map(a,this),g=f.call(this,h,j),q=e.call(this,g,h,j),p,j=-1,o=h.length,n=q.length-1,m=b?1:1/o,l;while(+
 +j<n){p=i[j]=[],p.dx=q[j+1]-(p.x=q[j]),p.y=0}if(n>0){j=-1;while(++j<o){l=h[j],l>=g[0]&&l<=g[1]&&(p=i[d3.bisect(q,l,1,n)-1],p.y+=m,p.push(k[j]))}}return i}var b=!0,a=Number,f=gI,e=gQ;return c.value=function(g){return arguments.length?(a=g,c):a},c.range=function(g){return arguments.length?(f=ke(g),c):f},c.bins=function(g){return arguments.length?(e=typeof g=="number"?function(h){return gK(h,g)}:ke(g),c):e},c.frequency=function(g){return arguments.length?(b=!!g,c):b},c},d3.layout.hierarchy=function(){function f(j,i,h){var q=a.call(c,j,i),p=aL?j:{data:j};p.depth=i,h.push(p);if(q&&(n=q.length)){var o=-1,n,m=p.children=[],l=0,k=i+1;while(++o<n){d=f(q[o],k,h),d.parent=p,m.push(d),l+=d.value}b&&m.sort(b),g&&(p.value=l)}else{g&&(p.value=+g.call(c,j,i)||0)}return p}function e(h,k){var i=h.children,n=0;if(i&&(l=i.length)){var m=-1,l,j=k+1;while(++m<l){n+=e(i[m],j)}}else{g&&(n=+g.call(c,aL?h:h.data,k)||0)}return g&&(h.value=n),n}function c(i){var h=[];return f(i,0,h),h}var b=aS,a=gA,g=aV;return
  c.sort=function(h){return arguments.length?(b=h,c):b},c.children=function(h){return arguments.length?(a=h,c):a},c.value=function(h){return arguments.length?(g=h,c):g},c.revalue=function(h){return e(h,0),h},c};var aL=!1;d3.layout.pack=function(){function c(k,i){var g=b.call(this,k,i),f=g[0];f.x=0,f.y=0,il(f);var e=a[0],j=a[1],h=1/Math.max(2*f.r/e,2*f.r/j);return ij(f,e/2,j/2,h),g}var b=d3.layout.hierarchy().sort(e6),a=[1,1];return c.size=function(e){return arguments.length?(a=e,c):a},gE(c,b)},d3.layout.cluster=function(){function c(k,j){var i=b.call(this,k,j),h=i[0],g,f=0,q,p;hA(h,function(r){var s=r.children;s&&s.length?(r.x=e3(s),r.y=h6(s)):(r.x=g?f+=a(r,g):0,r.y=0,g=r)});var o=e2(h),n=c6(h),m=o.x-a(o,n)/2,l=n.x+a(n,o)/2;return hA(h,function(r){r.x=(r.x-m)/(l-m)*e[0],r.y=(1-(h.y?r.y/h.y:1))*e[1]}),i}var b=d3.layout.hierarchy().sort(null).value(null),a=c5,e=[1,1];return c.separation=function(f){return arguments.length?(a=f,c):a},c.size=function(f){return arguments.length?(e=f,c):e}
 ,gE(c,b)},d3.layout.tree=function(){function c(o,m){function i(B,A){var z=B.children,y=B._tree;if(z&&(x=z.length)){var x,w=z[0],u,s=w,v,t=-1;while(++t<x){v=z[t],i(v,u),s=g(v,u,s),u=v}hq(B);var C=0.5*(w._tree.prelim+v._tree.prelim);A?(y.prelim=A._tree.prelim+a(B,A),y.mod=y.prelim-C):y.prelim=C}else{A&&(y.prelim=A._tree.prelim+a(B,A))}}function h(v,u){v.x=v._tree.prelim+u;var t=v.children;if(t&&(w=t.length)){var s=-1,w;u+=v._tree.mod;while(++s<w){h(t[s],u)}}}function g(C,B,A){if(B){var z=C,x=C,y=B,w=C.parent.children[0],u=z._tree.mod,s=x._tree.mod,v=y._tree.mod,t=w._tree.mod,D;while(y=c1(y),z=c2(z),y&&z){w=c2(w),x=c1(x),x._tree.ancestor=C,D=y._tree.prelim+v-z._tree.prelim-u+a(y,z),D>0&&(gu(gq(y,C,A),C,D),u+=D,s+=D),v+=y._tree.mod,u+=z._tree.mod,t+=w._tree.mod,s+=x._tree.mod}y&&!c1(x)&&(x._tree.thread=y,x._tree.mod+=v-s),z&&!c2(w)&&(w._tree.thread=z,w._tree.mod+=u-t,A=C)}return A}var k=b.call(this,o,m),j=k[0];hA(j,function(t,s){t._tree={ancestor:t,prelim:0,mod:0,change:0,shift:0,number
 :s?s._tree.number+1:0}}),i(j),h(j,-j._tree.prelim);var f=iu(j,hY),r=iu(j,ia),q=iu(j,hP),p=f.x-a(f,r)/2,n=r.x+a(r,f)/2,l=q.depth||1;return hA(j,function(s){s.x=(s.x-p)/(n-p)*e[0],s.y=s.depth/l*e[1],delete s._tree}),k}var b=d3.layout.hierarchy().sort(null).value(null),a=c5,e=[1,1];return c.separation=function(f){return arguments.length?(a=f,c):a},c.size=function(f){return arguments.length?(e=f,c):e},gE(c,b)},d3.layout.treemap=function(){function c(p,u){var t=-1,s=p.length,r,q;while(++t<s){q=(r=p[t]).value*(u<0?0:u),r.area=isNaN(q)||q<=0?0:q}}function b(q){var p=q.children;if(p&&p.length){var y=h(q),x=[],w=p.slice(),v,u=Infinity,t,s=Math.min(y.dx,y.dy),r;c(w,y.dx*y.dy/q.value),x.area=0;while((r=w.length)>0){x.push(v=w[r-1]),x.area+=v.area,(t=o(x,s))<=u?(w.pop(),u=t):(x.area-=x.pop().area,m(x,s,y,!1),s=Math.min(y.dx,y.dy),x.length=x.area=0,u=Infinity)}x.length&&(m(x,s,y,!0),x.length=x.area=0),p.forEach(b)}}function a(p){var u=p.children;if(u&&u.length){var t=h(p),s=u.slice(),r,q=[];c(s,
 t.dx*t.dy/p.value),q.area=0;while(r=s.pop()){q.push(r),q.area+=r.area,r.z!=null&&(m(q,r.z?t.dx:t.dy,t,!s.length),q.length=q.area=0)}u.forEach(a

<TRUNCATED>

Mime
View raw message