UNPKG

214 kBJavaScriptView Raw
1!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["d3-state-visualizer"]=t():n["d3-state-visualizer"]=t()}(this,function(){return function(n){function t(e){if(r[e])return r[e].exports;var u=r[e]={exports:{},id:e,loaded:!1};return n[e].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var r={};return t.m=n,t.c=r,t.p="",t(0)}([function(n,t,r){"use strict";function e(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t.default=n,t}t.__esModule=!0,t.tree=void 0;var u=r(34);Object.defineProperty(t,"tree",{enumerable:!0,get:function(){return u.tree}});var i=e(u);t.default=i},function(n,t){var r=Array.isArray;n.exports=r},function(n,t){function r(n){return!!n&&"object"==typeof n}n.exports=r},function(n,t,r){var e=r(10),u=r(8),i=e(u,"Map");n.exports=i},function(n,t,r){(function(){"use strict";var t={"@@functional/placeholder":!0},r=function(n,t){switch(n){case 0:return function(){return t.apply(this,arguments)};case 1:return function(n){return t.apply(this,arguments)};case 2:return function(n,r){return t.apply(this,arguments)};case 3:return function(n,r,e){return t.apply(this,arguments)};case 4:return function(n,r,e,u){return t.apply(this,arguments)};case 5:return function(n,r,e,u,i){return t.apply(this,arguments)};case 6:return function(n,r,e,u,i,o){return t.apply(this,arguments)};case 7:return function(n,r,e,u,i,o,a){return t.apply(this,arguments)};case 8:return function(n,r,e,u,i,o,a,c){return t.apply(this,arguments)};case 9:return function(n,r,e,u,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(n,r,e,u,i,o,a,c,l,f){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}},e=function(n){return new RegExp(n.source,(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":""))},u=function(n){return function(){return!n.apply(this,arguments)}},i=function(n,t){n=n||[],t=t||[];var r,e=n.length,u=t.length,i=[];for(r=0;r<e;)i[i.length]=n[r],r+=1;for(r=0;r<u;)i[i.length]=t[r],r+=1;return i},o=function(n,t,r){for(var e=0,u=r.length;e<u;){if(n(t,r[e]))return!0;e+=1}return!1},a=function(n){return function t(r){return 0===arguments.length?t:null!=r&&r["@@functional/placeholder"]===!0?t:n.apply(this,arguments)}},c=function(n){return function t(r,e){var u=arguments.length;return 0===u?t:1===u&&null!=r&&r["@@functional/placeholder"]===!0?t:1===u?a(function(t){return n(r,t)}):2===u&&null!=r&&r["@@functional/placeholder"]===!0&&null!=e&&e["@@functional/placeholder"]===!0?t:2===u&&null!=r&&r["@@functional/placeholder"]===!0?a(function(t){return n(t,e)}):2===u&&null!=e&&e["@@functional/placeholder"]===!0?a(function(t){return n(r,t)}):n(r,e)}},l=function(n){return function t(r,e,u){var i=arguments.length;return 0===i?t:1===i&&null!=r&&r["@@functional/placeholder"]===!0?t:1===i?c(function(t,e){return n(r,t,e)}):2===i&&null!=r&&r["@@functional/placeholder"]===!0&&null!=e&&e["@@functional/placeholder"]===!0?t:2===i&&null!=r&&r["@@functional/placeholder"]===!0?c(function(t,r){return n(t,e,r)}):2===i&&null!=e&&e["@@functional/placeholder"]===!0?c(function(t,e){return n(r,t,e)}):2===i?a(function(t){return n(r,e,t)}):3===i&&null!=r&&r["@@functional/placeholder"]===!0&&null!=e&&e["@@functional/placeholder"]===!0&&null!=u&&u["@@functional/placeholder"]===!0?t:3===i&&null!=r&&r["@@functional/placeholder"]===!0&&null!=e&&e["@@functional/placeholder"]===!0?c(function(t,r){return n(t,r,u)}):3===i&&null!=r&&r["@@functional/placeholder"]===!0&&null!=u&&u["@@functional/placeholder"]===!0?c(function(t,r){return n(t,e,r)}):3===i&&null!=e&&e["@@functional/placeholder"]===!0&&null!=u&&u["@@functional/placeholder"]===!0?c(function(t,e){return n(r,t,e)}):3===i&&null!=r&&r["@@functional/placeholder"]===!0?a(function(t){return n(t,e,u)}):3===i&&null!=e&&e["@@functional/placeholder"]===!0?a(function(t){return n(r,t,u)}):3===i&&null!=u&&u["@@functional/placeholder"]===!0?a(function(t){return n(r,e,t)}):n(r,e,u)}},f=function cu(n,t,e){return function(){for(var u=[],i=0,o=n,a=0;a<t.length||i<arguments.length;){var c;a<t.length&&(null==t[a]||t[a]["@@functional/placeholder"]!==!0||i>=arguments.length)?c=t[a]:(c=arguments[i],i+=1),u[a]=c,null!=c&&c["@@functional/placeholder"]===!0||(o-=1),a+=1}return o<=0?e.apply(this,u):r(o,cu(n,u,e))}},s=function(n,t){for(var r=0,e=t.length,u=[];r<e;)n(t[r])&&(u[u.length]=t[r]),r+=1;return u},h=function(n){return{"@@transducer/value":n,"@@transducer/reduced":!0}},p=function(n){return function(t){return s(function(n){return"function"==typeof t[n]},n(t))}},d=function(n,t){return Object.prototype.hasOwnProperty.call(t,n)},g=function(n){return n},v=Array.isArray||function(n){return null!=n&&n.length>=0&&"[object Array]"===Object.prototype.toString.call(n)},y=Number.isInteger||function(n){return n<<0===n},m=function(n){return"[object Number]"===Object.prototype.toString.call(n)},x=function(n){return"[object String]"===Object.prototype.toString.call(n)},M=function(n){return"function"==typeof n["@@transducer/step"]},b=function(n,t){for(var r=0,e=t.length,u=Array(e);r<e;)u[r]=n(t[r]),r+=1;return u},_=function(n,t){return function(){return t.call(this,n.apply(this,arguments))}},w=function(n,t){return function(){var r=this;return n.apply(r,arguments).then(function(n){return t.call(r,n)})}},S=function(n){return'"'+n.replace(/"/g,'\\"')+'"'},k=function(n){return n&&n["@@transducer/reduced"]?n:{"@@transducer/value":n,"@@transducer/reduced":!0}},E=function lu(n,t,r){switch(arguments.length){case 1:return lu(n,0,n.length);case 2:return lu(n,t,n.length);default:for(var e=[],u=0,i=Math.max(0,Math.min(n.length,r)-t);u<i;)e[u]=n[t+u],u+=1;return e}},j=function(){var n=function(n){return(n<10?"0":"")+n};return"function"==typeof Date.prototype.toISOString?function(n){return n.toISOString()}:function(t){return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}}(),N=function(){function n(n,t){this.xf=t,this.pred=n,this.lastValue=void 0,this.seenFirstValue=!1}return n.prototype["@@transducer/init"]=function(){return this.xf["@@transducer/init"]()},n.prototype["@@transducer/result"]=function(n){return this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){var r=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(r=!0):this.seenFirstValue=!0,this.lastValue=t,r?n:this.xf["@@transducer/step"](n,t)},c(function(t,r){return new n(t,r)})}(),A={init:function(){return this.xf["@@transducer/init"]()},result:function(n){return this.xf["@@transducer/result"](n)}},C=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=A.init,n.prototype["@@transducer/result"]=A.result,n.prototype["@@transducer/step"]=function(n,t){return this.f(t)?this.xf["@@transducer/step"](n,t):n},c(function(t,r){return new n(t,r)})}(),O=function(){function n(n,t){this.xf=t,this.f=n,this.found=!1}return n.prototype["@@transducer/init"]=A.init,n.prototype["@@transducer/result"]=function(n){return this.found||(n=this.xf["@@transducer/step"](n,void 0)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){return this.f(t)&&(this.found=!0,n=k(this.xf["@@transducer/step"](n,t))),n},c(function(t,r){return new n(t,r)})}(),z=function(){function n(n,t){this.xf=t,this.f=n,this.idx=-1,this.found=!1}return n.prototype["@@transducer/init"]=A.init,n.prototype["@@transducer/result"]=function(n){return this.found||(n=this.xf["@@transducer/step"](n,-1)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){return this.idx+=1,this.f(t)&&(this.found=!0,n=k(this.xf["@@transducer/step"](n,this.idx))),n},c(function(t,r){return new n(t,r)})}(),T=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=A.init,n.prototype["@@transducer/result"]=function(n){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](n,this.last))},n.prototype["@@transducer/step"]=function(n,t){return this.f(t)&&(this.last=t),n},c(function(t,r){return new n(t,r)})}(),L=function(){function n(n,t){this.xf=t,this.f=n,this.idx=-1,this.lastIdx=-1}return n.prototype["@@transducer/init"]=A.init,n.prototype["@@transducer/result"]=function(n){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](n,this.lastIdx))},n.prototype["@@transducer/step"]=function(n,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),n},c(function(t,r){return new n(t,r)})}(),q=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=A.init,n.prototype["@@transducer/result"]=A.result,n.prototype["@@transducer/step"]=function(n,t){return this.xf["@@transducer/step"](n,this.f(t))},c(function(t,r){return new n(t,r)})}(),P=function(){function n(n,t){this.xf=t,this.n=n}return n.prototype["@@transducer/init"]=A.init,n.prototype["@@transducer/result"]=A.result,n.prototype["@@transducer/step"]=function(n,t){return 0===this.n?k(n):(this.n-=1,this.xf["@@transducer/step"](n,t))},c(function(t,r){return new n(t,r)})}(),R=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=A.init,n.prototype["@@transducer/result"]=A.result,n.prototype["@@transducer/step"]=function(n,t){return this.f(t)?this.xf["@@transducer/step"](n,t):k(n)},c(function(t,r){return new n(t,r)})}(),D=function(){function n(n){this.f=n}return n.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},n.prototype["@@transducer/result"]=function(n){return n},n.prototype["@@transducer/step"]=function(n,t){return this.f(n,t)},function(t){return new n(t)}}(),U=c(function(n,t){return n+t}),I=l(function(n,t,r){if(t>=r.length||t<-r.length)return r;var e=t<0?r.length:0,u=e+t,o=i(r);return o[u]=n(r[u]),o}),F=a(function(n){return function(){return n}}),H=c(function(n,t){for(var r=0,e=t.length-(n-1),u=new Array(e>=0?e:0);r<e;)u[r]=E(t,r,r+n),r+=1;return u}),B=c(function(n,t){return i(t,[n])}),Y=c(function(n,t){return n.apply(this,t)}),V=l(function(n,t,r){var e={};for(var u in r)e[u]=r[u];return e[n]=t,e}),Z=l(function fu(n,t,r){switch(n.length){case 0:return r;case 1:return V(n[0],t,r);default:return V(n[0],fu(E(n,1),t,Object(r[n[0]])),r)}}),W=c(function(n,t){return r(n.length,function(){return n.apply(t,arguments)})}),$=c(function(n,t){return function(){return n.apply(this,arguments)&&t.apply(this,arguments)}}),X=a(function(n){return function(t,r){return n(t,r)?-1:n(r,t)?1:0}}),J=a(u),G=a(function(n){return function(){for(var t=0;t<n.length;){if(n[t][0].apply(this,arguments))return n[t][1].apply(this,arguments);t+=1}}}),K=l(o),Q=c(function(n,t){for(var r={},e=t.length,u=0;u<e;){var i=n(t[u]);r[i]=(d(i,r)?r[i]:0)+1,u+=1}return r}),nn=c(function(n,t){var r={};return r[n]=t,r}),tn=c(function(n,t){return 1===n?a(t):r(n,f(n,[],t))}),rn=U(-1),en=c(function(n,t){return null==t?n:t}),un=l(function(n,t,r){for(var e=[],u=0,i=t.length,o=K(n);u<i;)o(t[u],r)||o(t[u],e)||(e[e.length]=t[u]),u+=1;return e}),on=c(function(n,t){var r={};for(var e in t)e!==n&&(r[e]=t[e]);return r}),an=c(function su(n,t){switch(n.length){case 0:return t;case 1:return on(n[0],t);default:var r=n[0],e=E(n,1);return null==t[r]?t:V(r,su(e,t[r]),t)}}),cn=c(function(n,t){return n/t}),ln=c(function(n,t){for(var r=t.length-1;r>=0&&n(t[r]);)r-=1;return E(t,0,r+1)}),fn=c(function(n,t){return function(){return n.apply(this,arguments)||t.apply(this,arguments)}}),sn=a(function(n){if(null!=n&&"function"==typeof n.empty)return n.empty();if(null!=n&&null!=typeof n.constructor&&"function"==typeof n.constructor.empty)return n.constructor.empty();switch(Object.prototype.toString.call(n)){case"[object Array]":return[];case"[object Object]":return{};case"[object String]":return""}}),hn=c(function hu(n,t){var r,e,u,i={};for(e in t)r=n[e],u=typeof r,i[e]="function"===u?r(t[e]):"object"===u?hu(n[e],t[e]):t[e];return i}),pn=a(function(n){for(var t=0,r=n.length,e={};t<r;)v(n[t])&&n[t].length&&(e[n[t][0]]=n[t][1]),t+=1;return e}),dn=c(function(n,t){return n>t}),gn=c(function(n,t){return n>=t}),vn=c(d),yn=c(function(n,t){return n in t}),mn=c(function(n,t){return n===t?0!==n||1/n===1/t:n!==n&&t!==t}),xn=a(g),Mn=l(function(n,t,r){return tn(Math.max(n.length,t.length,r.length),function(){return n.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)})}),bn=U(1),_n=l(function(n,t,r){n=n<r.length&&n>=0?n:r.length;var e=E(r);return e.splice(n,0,t),e}),wn=l(function(n,t,r){return n=n<r.length&&n>=0?n:r.length,i(i(E(r,0,n),t),E(r,n))}),Sn=c(function(n,t){return null!=t&&t.constructor===n||t instanceof n}),kn=a(function(n){return!!v(n)||!!n&&("object"==typeof n&&(!(n instanceof String)&&(1===n.nodeType?!!n.length:0===n.length||n.length>0&&(n.hasOwnProperty(0)&&n.hasOwnProperty(n.length-1)))))}),En=a(function(n){return 0===Object(n).length}),jn=a(function(n){return null==n}),Nn=function(){var n=!{toString:null}.propertyIsEnumerable("toString"),t=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],r=function(n,t){for(var r=0;r<n.length;){if(n[r]===t)return!0;r+=1}return!1};return a("function"==typeof Object.keys?function(n){return Object(n)!==n?[]:Object.keys(n)}:function(e){if(Object(e)!==e)return[];var u,i,o=[];for(u in e)d(u,e)&&(o[o.length]=u);if(n)for(i=t.length-1;i>=0;)u=t[i],d(u,e)&&!r(o,u)&&(o[o.length]=u),i-=1;return o})}(),An=a(function(n){var t,r=[];for(t in n)r[r.length]=t;return r}),Cn=a(function(n){return null!=n&&Sn(Number,n.length)?n.length:NaN}),On=c(function(n,t){return n<t}),zn=c(function(n,t){return n<=t}),Tn=l(function(n,t,r){for(var e=0,u=r.length,i=[],o=[t];e<u;)o=n(o[0],r[e]),i[e]=o[1],e+=1;return[o[0],i]}),Ln=l(function(n,t,r){for(var e=r.length-1,u=[],i=[t];e>=0;)i=n(i[0],r[e]),u[e]=i[1],e-=1;return[i[0],u]}),qn=c(function(n,t){return t.match(n)||[]}),Pn=c(function(n,t){return y(n)?!y(t)||t<1?NaN:(n%t+t)%t:NaN}),Rn=c(function(n,t){return t>n?t:n}),Dn=l(function(n,t,r){return n(r)>n(t)?r:t}),Un=c(function(n,t){for(var r={},e=Nn(n),u=0;u<e.length;)r[e[u]]=n[e[u]],u+=1;for(e=Nn(t),u=0;u<e.length;)r[e[u]]=t[e[u]],u+=1;return r}),In=c(function(n,t){return t<n?t:n}),Fn=l(function(n,t,r){return n(r)<n(t)?r:t}),Hn=c(function(n,t){return n%t}),Bn=c(function(n,t){return n*t}),Yn=c(function(n,t){switch(n){case 0:return function(){return t.call(this)};case 1:return function(n){return t.call(this,n)};case 2:return function(n,r){return t.call(this,n,r)};case 3:return function(n,r,e){return t.call(this,n,r,e)};case 4:return function(n,r,e,u){return t.call(this,n,r,e,u)};case 5:return function(n,r,e,u,i){return t.call(this,n,r,e,u,i)};case 6:return function(n,r,e,u,i,o){return t.call(this,n,r,e,u,i,o)};case 7:return function(n,r,e,u,i,o,a){return t.call(this,n,r,e,u,i,o,a)};case 8:return function(n,r,e,u,i,o,a,c){return t.call(this,n,r,e,u,i,o,a,c)};case 9:return function(n,r,e,u,i,o,a,c,l){return t.call(this,n,r,e,u,i,o,a,c,l)};case 10:return function(n,r,e,u,i,o,a,c,l,f){return t.call(this,n,r,e,u,i,o,a,c,l,f)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}),Vn=a(function(n){return-n}),Zn=a(function(n){return!n}),Wn=c(function(n,t){var r=n<0?t.length+n:n;return x(t)?t.charAt(r):t[r]}),$n=a(function(n){return function(){return Wn(n,arguments)}}),Xn=c(function(n,t){return t.charAt(n<0?t.length+n:n)}),Jn=c(function(n,t){return t.charCodeAt(n<0?t.length+n:n)}),Gn=a(function(n){return[n]}),Kn=a(function(n){var t,r=!1;return function(){return r?t:(r=!0,t=n.apply(this,arguments))}}),Qn=function(){var n=function(t){return{value:t,map:function(r){return n(r(t))}}};return l(function(t,r,e){return t(function(t){return n(r(t))})(e).value})}(),nt=c(function(n,t){if(null!=t){for(var r=t,e=0,u=n.length;e<u&&null!=r;e+=1)r=r[n[e]];return r}}),tt=c(function(n,t){for(var r={},e=0;e<n.length;)n[e]in t&&(r[n[e]]=t[n[e]]),e+=1;return r}),rt=c(function(n,t){for(var r={},e=0,u=n.length;e<u;){var i=n[e];r[i]=t[i],e+=1}return r}),et=c(function(n,t){var r={};for(var e in t)n(t[e],e,t)&&(r[e]=t[e]);return r}),ut=c(function(n,t){return i([n],t)}),it=c(function(n,t){return t[n]}),ot=l(function(n,t,r){return null!=r&&d(t,r)?r[t]:n}),at=l(function(n,t,r){return n(r[t])}),ct=c(function(n,t){for(var r=n.length,e=[],u=0;u<r;)e[u]=t[n[u]],u+=1;return e}),lt=c(function(n,t){if(!m(n)||!m(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],e=n;e<t;)r.push(e),e+=1;return r}),ft=l(function(n,t,r){for(var e=r.length-1;e>=0;)t=n(t,r[e]),e-=1;return t}),st=a(k),ht=l(function(n,t,r){return i(E(r,0,Math.min(n,r.length)),E(r,Math.min(r.length,n+t)))}),pt=l(function(n,t,r){return r.replace(n,t)}),dt=a(function(n){return E(n).reverse()}),gt=l(function(n,t,r){for(var e=0,u=r.length,i=[t];e<u;)t=n(t,r[e]),i[e+1]=t,e+=1;return i}),vt=l(function(n,t,r){return Qn(n,F(t),r)}),yt=c(function(n,t){return E(t).sort(n)}),mt=c(function(n,t){return E(t).sort(function(t,r){var e=n(t),u=n(r);return e<u?-1:e>u?1:0})}),xt=c(function(n,t){return n-t}),Mt=c(function(n,t){for(var r=t.length-1;r>=0&&n(t[r]);)r-=1;return E(t,r+1,1/0)}),bt=c(function(n,t){return n(t),t}),_t=c(function(n,t){return e(n).test(t)}),wt=c(function(n,t){for(var r=Number(t),e=new Array(r),u=0;u<r;)e[u]=n(u),u+=1;return e}),St=a(function(n){var t=[];for(var r in n)d(r,n)&&(t[t.length]=[r,n[r]]);return t}),kt=a(function(n){var t=[];for(var r in n)t[t.length]=[r,n[r]];return t}),Et=function(){var n="\t\n\x0B\f\r   ᠎              \u2028\u2029\ufeff",t="​",r="function"==typeof String.prototype.trim;return a(r&&!n.trim()&&t.trim()?function(n){return n.trim()}:function(t){var r=new RegExp("^["+n+"]["+n+"]*"),e=new RegExp("["+n+"]["+n+"]*$");return t.replace(r,"").replace(e,"")})}(),jt=a(function(n){return null===n?"Null":void 0===n?"Undefined":Object.prototype.toString.call(n).slice(8,-1)}),Nt=a(function(n){return function(){return n(E(arguments))}}),At=a(function(n){return Yn(1,n)}),Ct=c(function(n,t){return tn(n,function(){for(var r,e=1,u=t,i=0;e<=n&&"function"==typeof u;)r=e===n?arguments.length:i+u.length,u=u.apply(this,E(arguments,i,r)),e+=1,i=r;return u})}),Ot=c(function(n,t){for(var r=n(t),e=[];r&&r.length;)e[e.length]=r[0],r=n(r[1]);return e}),zt=c(function(n,t){for(var r,e=0,u=t.length,i=[];e<u;)r=t[e],o(n,r,i)||(i[i.length]=r),e+=1;return i}),Tt=l(function(n,t,r){return I(F(t),n,r)}),Lt=a(function(n){for(var t=Nn(n),r=t.length,e=[],u=0;u<r;)e[u]=n[t[u]],u+=1;return e}),qt=a(function(n){var t,r=[];for(t in n)r[r.length]=n[t];return r}),Pt=function(){var n=function(n){return{value:n,map:function(){return this}}};return c(function(t,r){return t(n)(r).value})}(),Rt=c(function(n,t){for(var r in n)if(d(r,n)&&!n[r](t[r]))return!1;return!0}),Dt=c(function(n,t){return tn(n.length,function(){return t.apply(this,i([n],arguments))})}),Ut=c(function(n,t){for(var r,e=0,u=n.length,i=t.length,o=[];e<u;){for(r=0;r<i;)o[o.length]=[n[e],t[r]],r+=1;e+=1}return o}),It=c(function(n,t){for(var r=[],e=0,u=Math.min(n.length,t.length);e<u;)r[e]=[n[e],t[e]],e+=1;return r}),Ft=c(function(n,t){for(var r=0,e=n.length,u={};r<e;)u[n[r]]=t[r],r+=1;return u}),Ht=l(function(n,t,r){for(var e=[],u=0,i=Math.min(t.length,r.length);u<i;)e[u]=n(t[u],r[u]),u+=1;return e}),Bt=F(!1),Yt=F(!0),Vt=function(n,t){return function(){var r=arguments.length;if(0===r)return t();var e=arguments[r-1];return v(e)||"function"!=typeof e[n]?t.apply(this,arguments):e[n].apply(e,E(arguments,0,r-1))}},Zt=function pu(n,t,r){var u=function(e){for(var u=t.length,i=0;i<u;){if(n===t[i])return r[i];i+=1}t[i+1]=n,r[i+1]=e;for(var o in n)e[o]=pu(n[o],t,r);return e};switch(jt(n)){case"Object":return u({});case"Array":return u([]);case"Date":return new Date(n);case"RegExp":return e(n);default:return n}},Wt=function(n){return function(t){var e=E(arguments,1);return r(Math.max(0,t.length-e.length),function(){return t.apply(this,n(e,arguments))})}},$t=function(n,t,r){return function(){var e=arguments.length;if(0===e)return r();var u=arguments[e-1];if(!v(u)){var i=E(arguments,0,e-1);if("function"==typeof u[n])return u[n].apply(u,i);if(M(u)){var o=t.apply(null,i);return o(u)}}return r.apply(this,arguments)}},Xt=function du(n,t,r,e){var u=jt(n);if(u!==jt(t))return!1;if("Boolean"===u||"Number"===u||"String"===u)return"object"==typeof n?"object"==typeof t&&mn(n.valueOf(),t.valueOf()):mn(n,t);if(mn(n,t))return!0;if("RegExp"===u)return n.source===t.source&&n.global===t.global&&n.ignoreCase===t.ignoreCase&&n.multiline===t.multiline&&n.sticky===t.sticky&&n.unicode===t.unicode;if(Object(n)===n){if("Date"===u&&n.getTime()!==t.getTime())return!1;var i=Nn(n);if(i.length!==Nn(t).length)return!1;for(var o=r.length-1;o>=0;){if(r[o]===n)return e[o]===t;o-=1}for(r[r.length]=n,e[e.length]=t,o=i.length-1;o>=0;){var a=i[o];if(!d(a,t)||!du(t[a],n[a],r,e))return!1;o-=1}return r.pop(),e.pop(),!0}return!1},Jt=function(n,t){return null!=t&&!v(t)&&"function"==typeof t[n]},Gt=function(n){return function t(r){for(var e,u,i,o=[],a=0,c=r.length;a<c;){if(kn(r[a]))for(e=n?t(r[a]):r[a],u=0,i=e.length;u<i;)o[o.length]=e[u],u+=1;else o[o.length]=r[a];a+=1}return o}},Kt=function(){function n(n,t,r){for(var e=0,u=r.length;e<u;){if(t=n["@@transducer/step"](t,r[e]),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}e+=1}return n["@@transducer/result"](t)}function t(n,t,r){for(var e=r.next();!e.done;){if(t=n["@@transducer/step"](t,e.value),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}e=r.next()}return n["@@transducer/result"](t)}function r(n,t,r){return n["@@transducer/result"](r.reduce(W(n["@@transducer/step"],n),t))}var e="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";return function(u,i,o){if("function"==typeof u&&(u=D(u)),kn(o))return n(u,i,o);if("function"==typeof o.reduce)return r(u,i,o);if(null!=o[e])return t(u,i,o[e]());if("function"==typeof o.next)return t(u,i,o);throw new TypeError("reduce: list must be array or iterable")}}(),Qt=function(){var n={"@@transducer/init":Array,"@@transducer/step":function(n,t){return i(n,[t])},"@@transducer/result":g},t={"@@transducer/init":String,"@@transducer/step":function(n,t){return n+t},"@@transducer/result":g},r={"@@transducer/init":Object,"@@transducer/step":function(n,t){return Un(n,kn(t)?nn(t[0],t[1]):t)},"@@transducer/result":g};return function(e){if(M(e))return e;if(kn(e))return n;if("string"==typeof e)return t;if("object"==typeof e)return r;throw new Error("Cannot create transformer for "+e)}}(),nr=function(){function n(n,t){this.xf=t,this.f=n,this.all=!0}return n.prototype["@@transducer/init"]=A.init,n.prototype["@@transducer/result"]=function(n){return this.all&&(n=this.xf["@@transducer/step"](n,!0)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){return this.f(t)||(this.all=!1,n=k(this.xf["@@transducer/step"](n,!1))),n},c(function(t,r){return new n(t,r)})}(),tr=function(){function n(n,t){this.xf=t,this.f=n,this.any=!1}return n.prototype["@@transducer/init"]=A.init,n.prototype["@@transducer/result"]=function(n){return this.any||(n=this.xf["@@transducer/step"](n,!1)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){return this.f(t)&&(this.any=!0,n=k(this.xf["@@transducer/step"](n,!0))),n},c(function(t,r){return new n(t,r)})}(),rr=function(){function n(n,t){this.xf=t,this.n=n}return n.prototype["@@transducer/init"]=A.init,n.prototype["@@transducer/result"]=A.result,n.prototype["@@transducer/step"]=function(n,t){return this.n>0?(this.n-=1,n):this.xf["@@transducer/step"](n,t)},c(function(t,r){return new n(t,r)})}(),er=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=A.init,n.prototype["@@transducer/result"]=A.result,n.prototype["@@transducer/step"]=function(n,t){if(this.f){if(this.f(t))return n;this.f=null}return this.xf["@@transducer/step"](n,t)},c(function(t,r){return new n(t,r)})}(),ur=function(){function n(n,t){this.xf=t,this.f=n,this.inputs={}}return n.prototype["@@transducer/init"]=A.init,n.prototype["@@transducer/result"]=function(n){var t;for(t in this.inputs)if(d(t,this.inputs)&&(n=this.xf["@@transducer/step"](n,this.inputs[t]),n["@@transducer/reduced"])){n=n["@@transducer/value"];break}return this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){var r=this.f(t);return this.inputs[r]=this.inputs[r]||[r,[]],this.inputs[r][1]=B(t,this.inputs[r][1]),n},c(function(t,r){return new n(t,r)})}(),ir=a(function(n){return tn(n.length,function(){var t=0,r=arguments[0],e=arguments[arguments.length-1],u=E(arguments);return u[0]=function(){var n=r.apply(this,i(arguments,[t,e]));return t+=1,n},n.apply(this,u)})}),or=c($t("all",nr,function(n,t){for(var r=0;r<t.length;){if(!n(t[r]))return!1;r+=1}return!0})),ar=c(function(n,t){return Jt("and",n)?n.and(t):n&&t}),cr=c($t("any",tr,function(n,t){for(var r=0;r<t.length;){if(n(t[r]))return!0;r+=1}return!1})),lr=a(function(n){return Yn(2,n)}),fr=a(function(n){return Zt(n,[],[])}),sr=c(function(n,t){if(v(t))return i(n,t);if(Jt("concat",n))return n.concat(t);throw new TypeError("can't concat "+typeof n)}),hr=a(function(n){return tn(n.length,n)}),pr=c($t("dropWhile",er,function(n,t){for(var r=0,e=t.length;r<e&&n(t[r]);)r+=1;return E(t,r)})),dr=c(function(n,t){return Jt("equals",n)?n.equals(t):Jt("equals",t)?t.equals(n):Xt(n,t,[],[])}),gr=c($t("filter",C,s)),vr=c($t("find",O,function(n,t){for(var r=0,e=t.length;r<e;){if(n(t[r]))return t[r];r+=1}})),yr=c($t("findIndex",z,function(n,t){for(var r=0,e=t.length;r<e;){if(n(t[r]))return r;r+=1}return-1})),mr=c($t("findLast",T,function(n,t){for(var r=t.length-1;r>=0;){if(n(t[r]))return t[r];r-=1}})),xr=c($t("findLastIndex",L,function(n,t){for(var r=t.length-1;r>=0;){if(n(t[r]))return r;r-=1}return-1})),Mr=a(Gt(!0)),br=a(function(n){return hr(function(t,r){var e=E(arguments);return e[0]=r,e[1]=t,n.apply(this,e)})}),_r=c(Vt("forEach",function(n,t){for(var r=t.length,e=0;e<r;)n(t[e]),e+=1;return t})),wr=a(p(Nn)),Sr=a(p(An)),kr=c($t("groupBy",ur,function(n,t){return Kt(function(t,r){var e=n(r);return t[e]=B(r,t[e]||(t[e]=[])),t},{},t)})),Er=Wn(0),jr=l(function(n,t,r){for(var e=[],u=0;u<t.length;)o(n,t[u],r)&&(e[e.length]=t[u]),u+=1;return zt(n,e)}),Nr=c(Vt("intersperse",function(n,t){for(var r=[],e=0,u=t.length;e<u;)e===u-1?r.push(t[e]):r.push(t[e],n),e+=1;return r})),Ar=l(function(n,t,r){return M(n)?Kt(t(n),n["@@transducer/init"](),r):Kt(t(Qt(n)),n,r)}),Cr=a(function(n){for(var t=Nn(n),r=t.length,e=0,u={};e<r;){var i=t[e],o=n[i],a=d(o,u)?u[o]:u[o]=[];a[a.length]=i,e+=1}return u}),Or=a(function(n){for(var t=Nn(n),r=t.length,e=0,u={};e<r;){var i=t[e];u[n[i]]=i,e+=1}return u}),zr=Wn(-1),Tr=c(function(n,t){if(Jt("lastIndexOf",t))return t.lastIndexOf(n);for(var r=t.length-1;r>=0;){if(dr(t[r],n))return r;r-=1}return-1}),Lr=c($t("map",q,b)),qr=c(function(n,t){return Kt(function(r,e){return r[e]=n(t[e]),r},{},Nn(t))}),Pr=c(function(n,t){return Kt(function(r,e){return r[e]=n(t[e],e,t),r},{},Nn(t))}),Rr=c(u($t("any",tr,cr))),Dr=c(function(n,t){return Jt("or",n)?n.or(t):n||t}),Ur=hr(Wt(i)),Ir=hr(Wt(br(i))),Fr=c(function(n,t){return Kt(function(t,r){var e=t[n(r)?0:1];return e[e.length]=r,t},[[],[]],t)}),Hr=l(function(n,t,r){return dr(nt(n,r),t)}),Br=c(function(n,t){return Lr(it(n),t)}),Yr=l(function(n,t,r){return at(dr(t),n,r)}),Vr=l(function(n,t,r){return at(Sn(n),t,r)}),Zr=l(Kt),Wr=c(function(n,t){return gr(u(n),t)}),$r=c(function(n,t){return wt(F(n),t)}),Xr=l(Vt("slice",function(n,t,r){return Array.prototype.slice.call(r,n,t)})),Jr=c(function(n,t){if(n<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var r=[],e=0;e<t.length;)r.push(Xr(e,e+=n,t));return r}),Gr=Zr(U,0),Kr=Vt("tail",Xr(1,1/0)),Qr=c($t("take",P,function(n,t){return Xr(0,n<0?1/0:n,t)})),ne=c($t("takeWhile",R,function(n,t){for(var r=0,e=t.length;r<e&&n(t[r]);)r+=1;return E(t,0,r)})),te=tn(4,function(n,t,r,e){return Kt(n("function"==typeof t?D(t):t),r,e)}),re=l(function(n,t,r){return zt(n,i(t,r))}),ee=zt(dr),ue=a(Gt(!1)),ie=hr(function(n){var t=E(arguments,1),e=t.length;return hr(r(e,function(){for(var r=[],u=0;u<e;)r[u]=t[u](arguments[u]),u+=1;return n.apply(this,r.concat(E(arguments,e)))}))}),oe=c(function(n,t){return Rt(qr(dr,n),t)}),ae=function(){var n=function(n){return{"@@transducer/init":A.init,"@@transducer/result":function(t){return n["@@transducer/result"](t)},"@@transducer/step":function(t,r){var e=n["@@transducer/step"](t,r);return e["@@transducer/reduced"]?h(e):e}}};return function(t){var r=n(t);return{"@@transducer/init":A.init,"@@transducer/result":function(n){return r["@@transducer/result"](n)},"@@transducer/step":function(n,t){return kn(t)?Kt(r,n,t):Kt(r,n,[t])}}}}(),ce=function(n,t,r){for(var e=r;e<n.length;){if(dr(n[e],t))return e;e+=1}return-1},le=function(n){return function(t){var e=function(){var r=arguments;return n(function(n){return n.apply(null,r)},t)};return arguments.length>1?e.apply(null,E(arguments,1)):r(Math.max.apply(Math,Br("length",t)),e)}},fe=c(function(n,t){return Lr(n,ae(t))}),se=a(le(or)),he=a(le(cr)),pe=c(function(n,t){return Jt("ap",n)?n.ap(t):Kt(function(n,r){return i(n,Lr(r,t))},[],n)}),de=hr(function(n){return n.apply(this,E(arguments,1))}),ge=c($t("chain",fe,function(n,t){return ue(Lr(n,t))})),ve=l(function(n,t,r){function e(t,r){return pe(Lr(B,n(r)),t)}return Kt(e,t([]),r)}),ye=c(function(n,t){if(n>10)throw new Error("Constructor with greater than ten arguments");return 0===n?function(){return new t}:hr(Yn(n,function(n,r,e,u,i,o,a,c,l,f){switch(arguments.length){case 1:return new t(n);case 2:return new t(n,r);case 3:return new t(n,r,e);case 4:return new t(n,r,e,u);case 5:return new t(n,r,e,u,i);case 6:return new t(n,r,e,u,i,o);case 7:return new t(n,r,e,u,i,o,a);case 8:return new t(n,r,e,u,i,o,a,c);case 9:return new t(n,r,e,u,i,o,a,c,l);case 10:return new t(n,r,e,u,i,o,a,c,l,f)}}))}),me=tn(3,function(n){var t=E(arguments,1);return tn(Math.max.apply(Math,Br("length",t)),function(){var r=arguments,e=this;return n.apply(e,b(function(n){return n.apply(e,r)},t))})}),xe=c($t("drop",rr,function(n,t){return Xr(Math.max(0,n),1/0,t)})),Me=c(function(n,t){return Qr(n<t.length?t.length-n:0,t)}),be=c($t("dropRepeatsWith",N,function(n,t){var r=[],e=1,u=t.length;if(0!==u)for(r[0]=t[0];e<u;)n(zr(r),t[e])||(r[r.length]=t[e]),e+=1;return r})),_e=l(function(n,t,r){return dr(t[n],r[n])}),we=c(function(n,t){return Jt("indexOf",t)?t.indexOf(n):ce(t,n,0)}),Se=Xr(0,-1),ke=a(function(n){for(var t=n.length,r=0;r<t;){if(ce(n,n[r],r+1)>=0)return!1;r+=1}return!0}),Ee=c(function(n,t){return function(r){return function(e){return Lr(function(n){return t(n,e)},r(n(e)))}}}),je=a(function(n){return Ee(Wn(n),Tt(n))}),Ne=a(function(n){return Ee(it(n),V(n))}),Ae=c(function(n,t){var r=tn(n,t);return tn(n,function(){return Kt(pe,Lr(r,arguments[0]),E(arguments,1))})}),Ce=a(function(n){return Gr(n)/n.length}),Oe=a(function(n){var t=n.length;if(0===t)return NaN;var r=2-t%2,e=(t-r)/2;return Ce(E(n).sort(function(n,t){return n<t?-1:n>t?1:0}).slice(e,e+r))}),ze=a(function(n){return Zr(Un,{},n)}),Te=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return tn(arguments[0].length,Zr(_,arguments[0],Kr(arguments)))},Le=function(){if(0===arguments.length)throw new Error("pipeP requires at least one argument");return tn(arguments[0].length,Zr(w,arguments[0],Kr(arguments)))},qe=Zr(Bn,1),Pe=ie(b,rt,xn),Re=c(function(n,t){return xe(n>=0?t.length-n:0,t)}),De=function(n,t){return ce(t,n,0)>=0},Ue=function gu(n,t){var r=function(r){var e=t.concat([n]);return De(r,e)?"<Circular>":gu(r,e)},e=function(n,t){return b(function(t){return S(t)+": "+r(n[t])},t.slice().sort())};switch(Object.prototype.toString.call(n)){case"[object Arguments]":return"(function() { return arguments; }("+b(r,n).join(", ")+"))";case"[object Array]":return"["+b(r,n).concat(e(n,Wr(_t(/^\d+$/),Nn(n)))).join(", ")+"]";case"[object Boolean]":
2return"object"==typeof n?"new Boolean("+r(n.valueOf())+")":n.toString();case"[object Date]":return"new Date("+S(j(n))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof n?"new Number("+r(n.valueOf())+")":1/n===-(1/0)?"-0":n.toString(10);case"[object String]":return"object"==typeof n?"new String("+r(n.valueOf())+")":S(n);case"[object Undefined]":return"undefined";default:return"function"==typeof n.constructor&&"Object"!==n.constructor.name&&"function"==typeof n.toString&&"[object Object]"!==n.toString()?n.toString():"{"+e(n,Nn(n)).join(", ")+"}"}},Ie=ve(xn),Fe=function(){if(0===arguments.length)throw new Error("compose requires at least one argument");return Te.apply(this,dt(arguments))},He=function(){return 0===arguments.length?xn:Fe.apply(this,Lr(ge,arguments))},Be=function(){if(0===arguments.length)throw new Error("composeP requires at least one argument");return Le.apply(this,dt(arguments))},Ye=a(function(n){return ye(n.length,n)}),Ve=c(De),Ze=c(function(n,t){for(var r=[],e=0,u=n.length;e<u;)De(n[e],t)||De(n[e],r)||(r[r.length]=n[e]),e+=1;return r}),We=a($t("dropRepeats",N(dr),be(dr))),$e=c(function(n,t){return ee(s(br(De)(n),t))}),Xe=a(function(n){return Ae(n.length,n)}),Je=c(function(n,t){var r={};for(var e in t)De(e,n)||(r[e]=t[e]);return r}),Ge=function(){return He.apply(this,dt(arguments))},Ke=a(function(n){return Ue(n,[])}),Qe=c(Fe(ee,i)),nu=c(function(n,t){for(var r,e,u=0,i=[],o=[];u<t.length;)e=t[u],r=n(e),De(r,i)||(o.push(e),i.push(r)),u+=1;return o}),tu=c(function(n,t){return tn(n+1,function(){var r=arguments[n];if(null!=r&&Sn(Function,r[t]))return r[t].apply(r,E(arguments,0,n));throw new TypeError(Ke(r)+' does not have a method named "'+t+'"')})}),ru=tu(1,"join"),eu=a(function(n){var t={};return function(){var r=Ke(arguments);return d(r,t)||(t[r]=n.apply(this,arguments)),t[r]}}),uu=tu(1,"split"),iu=tu(0,"toLowerCase"),ou=tu(0,"toUpperCase"),au={F:Bt,T:Yt,__:t,add:U,addIndex:ir,adjust:I,all:or,allPass:se,always:F,and:ar,any:cr,anyPass:he,ap:pe,aperture:H,append:B,apply:Y,assoc:V,assocPath:Z,binary:lr,bind:W,both:$,call:de,chain:ge,clone:fr,commute:Ie,commuteMap:ve,comparator:X,complement:J,compose:Fe,composeK:He,composeP:Be,concat:sr,cond:G,construct:Ye,constructN:ye,contains:Ve,containsWith:K,converge:me,countBy:Q,createMapEntry:nn,curry:hr,curryN:tn,dec:rn,defaultTo:en,difference:Ze,differenceWith:un,dissoc:on,dissocPath:an,divide:cn,drop:xe,dropLast:Me,dropLastWhile:ln,dropRepeats:We,dropRepeatsWith:be,dropWhile:pr,either:fn,empty:sn,eqProps:_e,equals:dr,evolve:hn,filter:gr,find:vr,findIndex:yr,findLast:mr,findLastIndex:xr,flatten:Mr,flip:br,forEach:_r,fromPairs:pn,functions:wr,functionsIn:Sr,groupBy:kr,gt:dn,gte:gn,has:vn,hasIn:yn,head:Er,identical:mn,identity:xn,ifElse:Mn,inc:bn,indexOf:we,init:Se,insert:_n,insertAll:wn,intersection:$e,intersectionWith:jr,intersperse:Nr,into:Ar,invert:Cr,invertObj:Or,invoker:tu,is:Sn,isArrayLike:kn,isEmpty:En,isNil:jn,isSet:ke,join:ru,keys:Nn,keysIn:An,last:zr,lastIndexOf:Tr,length:Cn,lens:Ee,lensIndex:je,lensProp:Ne,lift:Xe,liftN:Ae,lt:On,lte:zn,map:Lr,mapAccum:Tn,mapAccumRight:Ln,mapObj:qr,mapObjIndexed:Pr,match:qn,mathMod:Pn,max:Rn,maxBy:Dn,mean:Ce,median:Oe,memoize:eu,merge:Un,mergeAll:ze,min:In,minBy:Fn,modulo:Hn,multiply:Bn,nAry:Yn,negate:Vn,none:Rr,not:Zn,nth:Wn,nthArg:$n,nthChar:Xn,nthCharCode:Jn,of:Gn,omit:Je,once:Kn,or:Dr,over:Qn,partial:Ur,partialRight:Ir,partition:Fr,path:nt,pathEq:Hr,pick:tt,pickAll:rt,pickBy:et,pipe:Te,pipeK:Ge,pipeP:Le,pluck:Br,prepend:ut,product:qe,project:Pe,prop:it,propEq:Yr,propIs:Vr,propOr:ot,propSatisfies:at,props:ct,range:lt,reduce:Zr,reduceRight:ft,reduced:st,reject:Wr,remove:ht,repeat:$r,replace:pt,reverse:dt,scan:gt,set:vt,slice:Xr,sort:yt,sortBy:mt,split:uu,splitEvery:Jr,subtract:xt,sum:Gr,tail:Kr,take:Qr,takeLast:Re,takeLastWhile:Mt,takeWhile:ne,tap:bt,test:_t,times:wt,toLower:iu,toPairs:St,toPairsIn:kt,toString:Ke,toUpper:ou,transduce:te,trim:Et,type:jt,unapply:Nt,unary:At,uncurryN:Ct,unfold:Ot,union:Qe,unionWith:re,uniq:ee,uniqBy:nu,uniqWith:zt,unnest:ue,update:Tt,useWith:ie,values:Lt,valuesIn:qt,view:Pt,where:Rt,whereEq:oe,wrap:Dt,xprod:Ut,zip:It,zipObj:Ft,zipWith:Ht};n.exports=au}).call(this)},function(n,t,r){function e(n,t){for(var r=n.length;r--;)if(u(n[r][0],t))return r;return-1}var u=r(92);n.exports=e},function(n,t){function r(n){var t=typeof n;return"number"==t||"boolean"==t||"string"==t&&"__proto__"!==n||null==n}n.exports=r},function(n,t,r){var e=r(10),u=e(Object,"create");n.exports=u},function(n,t,r){(function(n,e){var u=r(63),i={"function":!0,object:!0},o=i[typeof t]&&t&&!t.nodeType?t:null,a=i[typeof n]&&n&&!n.nodeType?n:null,c=u(o&&a&&"object"==typeof e&&e),l=u(i[typeof self]&&self),f=u(i[typeof window]&&window),s=u(i[typeof this]&&this),h=c||f!==(s&&s.window)&&f||l||s||Function("return this")();n.exports=h}).call(t,r(106)(n),function(){return this}())},function(n,t){function r(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=e}var e=9007199254740991;n.exports=r},function(n,t,r){function e(n,t){var r=null==n?void 0:n[t];return u(r)?r:void 0}var u=r(96);n.exports=e},function(n,t){function r(n){var t=!1;if(null!=n&&"function"!=typeof n.toString)try{t=!!(n+"")}catch(r){}return t}n.exports=r},function(n,t,r){function e(n,t){return"number"==typeof n||!u(n)&&(o.test(n)||!i.test(n)||null!=t&&n in Object(t))}var u=r(1),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;n.exports=e},function(n,t){function r(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}n.exports=r},function(n,t,r){function e(n){var t=l(n);if(!t&&!a(n))return i(n);var r=o(n),e=!!r,f=r||[],s=f.length;for(var h in n)!u(n,h)||e&&("length"==h||c(h,s))||t&&"constructor"==h||f.push(h);return f}var u=r(23),i=r(56),o=r(75),a=r(31),c=r(28),l=r(76);n.exports=e},function(n,t,r){"use strict";function e(n){return(0,u.is)(Function,n)?n:function(){return n}}t.__esModule=!0,t.default=e;var u=r(4)},function(n,t,r){function e(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}var u=r(86),i=r(87),o=r(88),a=r(89),c=r(90);e.prototype.clear=u,e.prototype.delete=i,e.prototype.get=o,e.prototype.has=a,e.prototype.set=c,n.exports=e},function(n,t,r){var e=r(8),u=e.Symbol;n.exports=u},function(n,t,r){function e(n,t){var r=u(n,t);if(r<0)return!1;var e=n.length-1;return r==e?n.pop():o.call(n,r,1),!0}var u=r(5),i=Array.prototype,o=i.splice;n.exports=e},function(n,t,r){function e(n,t){var r=u(n,t);return r<0?void 0:n[r][1]}var u=r(5);n.exports=e},function(n,t,r){function e(n,t){return u(n,t)>-1}var u=r(5);n.exports=e},function(n,t,r){function e(n,t,r){var e=u(n,t);e<0?n.push([t,r]):n[e][1]=r}var u=r(5);n.exports=e},function(n,t,r){function e(n,t){t=i(t,n)?[t+""]:u(t);for(var r=0,e=t.length;null!=n&&r<e;)n=n[t[r++]];return r&&r==e?n:void 0}var u=r(26),i=r(12);n.exports=e},function(n,t){function r(n,t){return u.call(n,t)||"object"==typeof n&&t in n&&null===i(n)}var e=Object.prototype,u=e.hasOwnProperty,i=Object.getPrototypeOf;n.exports=r},function(n,t,r){function e(n,t,r,a,c){return n===t||(null==n||null==t||!i(n)&&!o(t)?n!==n&&t!==t:u(n,t,e,r,a,c))}var u=r(53),i=r(13),o=r(2);n.exports=e},function(n,t){function r(n){return function(t){return null==t?void 0:t[n]}}n.exports=r},function(n,t,r){function e(n){return u(n)?n:i(n)}var u=r(1),i=r(91);n.exports=e},function(n,t,r){function e(n,t){return u?void 0!==n[t]:o.call(n,t)}var u=r(7),i=Object.prototype,o=i.hasOwnProperty;n.exports=e},function(n,t){function r(n,t){return n="number"==typeof n||u.test(n)?+n:-1,t=null==t?e:t,n>-1&&n%1==0&&n<t}var e=9007199254740991,u=/^(?:0|[1-9]\d*)$/;n.exports=r},function(n,t,r){function e(n,t,r){var e=null==n?void 0:u(n,t);return void 0===e?r:e}var u=r(22);n.exports=e},function(n,t,r){function e(n){return u(n)&&a.call(n,"callee")&&(!l.call(n,"callee")||c.call(n)==i)}var u=r(95),i="[object Arguments]",o=Object.prototype,a=o.hasOwnProperty,c=o.toString,l=o.propertyIsEnumerable;n.exports=e},function(n,t,r){function e(n){return null!=n&&!("function"==typeof n&&i(n))&&o(u(n))}var u=r(68),i=r(32),o=r(9);n.exports=e},function(n,t,r){function e(n){var t=u(n)?c.call(n):"";return t==i||t==o}var u=r(13),i="[object Function]",o="[object GeneratorFunction]",a=Object.prototype,c=a.toString;n.exports=e},function(n,t,r){function e(n){return"string"==typeof n||!u(n)&&i(n)&&c.call(n)==o}var u=r(1),i=r(2),o="[object String]",a=Object.prototype,c=a.toString;n.exports=e},function(n,t,r){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}t.__esModule=!0,t.tree=void 0;var u=r(36),i=e(u);t.tree=i.default},function(n,t,r){"use strict";function e(n,t){if(n instanceof Array){var r=void 0;return r=t?n.sort():n}if(n&&"object"===("undefined"==typeof n?"undefined":i(n))){var u=function(){var t={};return Object.keys(n).sort().forEach(function(r){return t[r]=e(n[r])}),{v:t}}();if("object"===("undefined"==typeof u?"undefined":i(u)))return u.v}return n}function u(n){return JSON.stringify(e(n,!0),void 0,2)}t.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};t.default=u;r(4)},function(n,t,r){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}t.__esModule=!0;var u=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e])}return n};t.default=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,s.default)(g,t),e=r.id,i=r.style,c=r.size,f=r.aspectRatio,p=r.initialZoom,v=r.margin,y=r.isSorted,m=r.widthBetweenNodesCoeff,x=r.heightBetweenNodesCoeff,M=r.transitionDuration,b=r.state,_=r.rootKeyName,w=r.pushMethod,S=r.tree,k=r.tooltipOptions,E=r.onClickText,j=c-v.left-v.right,N=c*f-v.top-v.bottom,A=c,C=c*f,O={id:e,preserveAspectRatio:"xMinYMin slice"};i.width||(O.width=A),i.width&&i.height||(O.viewBox="0 0 "+A+" "+C);var z=o.default.select(n),T=o.default.behavior.zoom().scaleExtent([.1,3]).scale(p),L=z.append("svg").attr(O).style(u({cursor:"-webkit-grab"},i)).call(T.on("zoom",function(){var n=o.default.event,t=n.translate,r=n.scale;L.attr("transform","translate("+t+")scale("+r+")")})).append("g").attr({transform:"translate("+(v.left+i.node.radius)+", "+v.top+") scale("+p+")"}),q=o.default.layout.tree().size([j,N]),P=void 0;return y&&q.sort(function(n,t){return t.name.toLowerCase()<n.name.toLowerCase()?1:-1}),function(){function n(t){var a=o.default.svg.diagonal().projection(function(n){return[n.y,n.x]}),c=Math.max.apply(Math,(0,h.getNodeGroupByDepthCount)(P));q=q.size([25*c*x,j]);var l=q.nodes(P),f=q.links(l);l.forEach(function(n){return n.y=n.depth*(7*e*m)});var s=L.selectAll("g.node").property("__oldData__",function(n){return n}).data(l,function(n){return n.id||(n.id=++r)}),p=s.enter().append("g").attr({"class":"node",transform:function(n){return"translate("+t.y0+","+t.x0+")"}}).style({fill:i.text.colors.default,cursor:"pointer"}).on({mouseover:function(n,t){o.default.select(this).style({fill:i.text.colors.hover})},mouseout:function(n,t){o.default.select(this).style({fill:i.text.colors.default})}});k.disabled||p.call((0,d.default)(o.default,"tooltip",u({},k,{root:z})).text(function(n,t){return(0,h.getTooltipString)(n,t,k)}).style(k.style)),p.append("circle").attr({"class":"nodeCircle"}).on({click:function(t){o.default.event.defaultPrevented||n((0,h.toggleChildren)(t))}}),p.append("text").attr({"class":"nodeText",dy:".35em"}).style({"fill-opacity":0}).text(function(n){return n.name}).on({click:E}),s.select("text").attr({x:function(n){return n.children||n._children?-(i.node.radius+10):i.node.radius+10},"text-anchor":function(n){return n.children||n._children?"end":"start"}}).text(function(n){return n.name}),s.select("circle.nodeCircle").attr({r:i.node.radius}).style({stroke:"black","stroke-width":"1.5px",fill:function(n){return n._children?i.node.colors.collapsed:n.children?i.node.colors.parent:i.node.colors.default}});var g=s.transition().duration(M).attr({transform:function(n){return"translate("+n.y+","+n.x+")"}});g.select("text").style("fill-opacity",1),g.select("circle").attr("r",7),g.filter(function(n){return!this.__oldData__||n.value!==this.__oldData__.value}).style("fill-opacity","0.3").transition().duration(100).style("fill-opacity","1");var v=s.exit().transition().duration(M).attr({transform:function(n){return"translate("+t.y+","+t.x+")"}}).remove();v.select("circle").attr("r",0),v.select("text").style("fill-opacity",0);var y=L.selectAll("path.link").data(f,function(n){return n.target.id});y.enter().insert("path","g").attr({"class":"link",d:function(n){var r={x:t.x0,y:t.y0};return a({source:r,target:r})}}).style(i.link),y.transition().duration(M).attr({d:a}),y.exit().transition().duration(M).attr({d:function(n){var r={x:t.x,y:t.y};return a({source:r,target:r})}}).remove(),s.property("__oldData__",null),l.forEach(function(n){n.x0=n.x,n.y0=n.y})}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S||b;P=S?t:(0,l.default)(t,{key:_,pushMethod:w}),!(0,a.isEmpty)(P)&&P.name||(P={name:"error",message:"Please provide a state map or a tree structure"});var r=0,e=0;(0,h.visit)(P,function(n){return e=Math.max(n.name.length,e)},function(n){return n.children&&n.children.length>0?n.children:null}),P.x0=N/2,P.y0=0,n(P)}};var i=r(38),o=e(i),a=r(4),c=r(105),l=e(c),f=r(42),s=e(f),h=r(37),p=r(39),d=e(p),g={state:void 0,rootKeyName:"state",pushMethod:"push",tree:void 0,id:"d3svg",style:{node:{colors:{"default":"#ccc",collapsed:"lightsteelblue",parent:"white"},radius:5},text:{colors:{"default":"black",hover:"skyblue"}},link:{stroke:"#000",fill:"none"}},size:500,aspectRatio:1,initialZoom:1,margin:{top:10,right:10,bottom:10,left:50},isSorted:!1,heightBetweenNodesCoeff:2,widthBetweenNodesCoeff:1,transitionDuration:750,onClickText:function(){},tooltipOptions:{disabled:!1,left:void 0,right:void 0,offset:{left:0,top:0},style:void 0}}},function(n,t,r){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function u(n){n.children&&(n._children=n.children,n._children.forEach(u),n.children=null)}function i(n){n._children&&(n.children=n._children,n.children.forEach(i),n._children=null)}function o(n){return n.children?(n._children=n.children,n.children=null):n._children&&(n.children=n._children,n._children=null),n}function a(n,t,r){if(n){t(n);var e=r(n);if(e)for(var u=e.length,i=0;i<u;i++)a(e[i],t,r)}}function c(n){var t=[1],r=function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n.children&&0!==n.children.length?(t.length<=r+1&&t.push(0),t[r+1]+=n.children.length,void n.children.forEach(function(n){e(n,r+1)})):0};return r(n),t}function l(n,t,r){var e=r.indentationSize,u=void 0===e?4:e;if(!(0,s.is)(Object,n))return"";var i=(0,s.join)("&nbsp;&nbsp;"),o=(0,s.replace)(/\n/g,"<br/>"),a=(0,s.replace)(/\s{2}/g,i(new Array(u))),c=(0,s.pipe)(p.default,o,a),l=n.children||n._children,f=(0,s.omit)(["parent","children","_children","depth","id","x","x0","y","y0"],n);return l&&(f.childrenCount=l.length),c(f)}t.__esModule=!0,t.collapseChildren=u,t.expandChildren=i,t.toggleChildren=o,t.visit=a,t.getNodeGroupByDepthCount=c,t.getTooltipString=l;var f=r(43),s=(e(f),r(4)),h=r(35),p=e(h)},function(n,t,r){var e,u;!function(){function i(n){return n&&(n.ownerDocument||n.document||n).documentElement}function o(n){return n&&(n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView)}function a(n,t){return n<t?-1:n>t?1:n>=t?0:NaN}function c(n){return null===n?NaN:+n}function l(n){return!isNaN(n)}function f(n){return{left:function(t,r,e,u){for(arguments.length<3&&(e=0),arguments.length<4&&(u=t.length);e<u;){var i=e+u>>>1;n(t[i],r)<0?e=i+1:u=i}return e},right:function(t,r,e,u){for(arguments.length<3&&(e=0),arguments.length<4&&(u=t.length);e<u;){var i=e+u>>>1;n(t[i],r)>0?u=i:e=i+1}return e}}}function s(n){return n.length}function h(n){for(var t=1;n*t%1;)t*=10;return t}function p(n,t){for(var r in t)Object.defineProperty(n.prototype,r,{value:t[r],enumerable:!1})}function d(){this._=Object.create(null)}function g(n){return(n+="")===Eo||n[0]===jo?jo+n:n}function v(n){return(n+="")[0]===jo?n.slice(1):n}function y(n){return g(n)in this._}function m(n){return(n=g(n))in this._&&delete this._[n]}function x(){var n=[];for(var t in this._)n.push(v(t));return n}function M(){var n=0;for(var t in this._)++n;return n}function b(){for(var n in this._)return!1;return!0}function _(){this._=Object.create(null)}function w(n){return n}function S(n,t,r){return function(){var e=r.apply(t,arguments);return e===t?n:e}}function k(n,t){if(t in n)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var r=0,e=No.length;r<e;++r){var u=No[r]+t;if(u in n)return u}}function E(){}function j(){}function N(n){function t(){for(var t,e=r,u=-1,i=e.length;++u<i;)(t=e[u].on)&&t.apply(this,arguments);return n}var r=[],e=new d;return t.on=function(t,u){var i,o=e.get(t);return arguments.length<2?o&&o.on:(o&&(o.on=null,r=r.slice(0,i=r.indexOf(o)).concat(r.slice(i+1)),e.remove(t)),u&&r.push(e.set(t,{on:u})),n)},t}function A(){ho.event.preventDefault()}function C(){for(var n,t=ho.event;n=t.sourceEvent;)t=n;return t}function O(n){for(var t=new j,r=0,e=arguments.length;++r<e;)t[arguments[r]]=N(t);return t.of=function(r,e){return function(u){try{var i=u.sourceEvent=ho.event;u.target=n,ho.event=u,t[u.type].apply(r,e)}finally{ho.event=i}}},t}function z(n){return Co(n,Lo),n}function T(n){return"function"==typeof n?n:function(){return Oo(n,this)}}function L(n){return"function"==typeof n?n:function(){return zo(n,this)}}function q(n,t){function r(){this.removeAttribute(n)}function e(){this.removeAttributeNS(n.space,n.local)}function u(){this.setAttribute(n,t)}function i(){this.setAttributeNS(n.space,n.local,t)}function o(){var r=t.apply(this,arguments);null==r?this.removeAttribute(n):this.setAttribute(n,r)}function a(){var r=t.apply(this,arguments);null==r?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,r)}return n=ho.ns.qualify(n),null==t?n.local?e:r:"function"==typeof t?n.local?a:o:n.local?i:u}function P(n){return n.trim().replace(/\s+/g," ")}function R(n){return new RegExp("(?:^|\\s+)"+ho.requote(n)+"(?:\\s+|$)","g")}function D(n){return(n+"").trim().split(/^|\s+/)}function U(n,t){function r(){for(var r=-1;++r<u;)n[r](this,t)}function e(){for(var r=-1,e=t.apply(this,arguments);++r<u;)n[r](this,e)}n=D(n).map(I);var u=n.length;return"function"==typeof t?e:r}function I(n){var t=R(n);return function(r,e){if(u=r.classList)return e?u.add(n):u.remove(n);var u=r.getAttribute("class")||"";e?(t.lastIndex=0,t.test(u)||r.setAttribute("class",P(u+" "+n))):r.setAttribute("class",P(u.replace(t," ")))}}function F(n,t,r){function e(){this.style.removeProperty(n)}function u(){this.style.setProperty(n,t,r)}function i(){var e=t.apply(this,arguments);null==e?this.style.removeProperty(n):this.style.setProperty(n,e,r)}return null==t?e:"function"==typeof t?i:u}function H(n,t){function r(){delete this[n]}function e(){this[n]=t}function u(){var r=t.apply(this,arguments);null==r?delete this[n]:this[n]=r}return null==t?r:"function"==typeof t?u:e}function B(n){function t(){var t=this.ownerDocument,r=this.namespaceURI;return r===qo&&t.documentElement.namespaceURI===qo?t.createElement(n):t.createElementNS(r,n)}function r(){return this.ownerDocument.createElementNS(n.space,n.local)}return"function"==typeof n?n:(n=ho.ns.qualify(n)).local?r:t}function Y(){var n=this.parentNode;n&&n.removeChild(this)}function V(n){return{__data__:n}}function Z(n){return function(){return To(this,n)}}function W(n){return arguments.length||(n=a),function(t,r){return t&&r?n(t.__data__,r.__data__):!t-!r}}function $(n,t){for(var r=0,e=n.length;r<e;r++)for(var u,i=n[r],o=0,a=i.length;o<a;o++)(u=i[o])&&t(u,o,r);return n}function X(n){return Co(n,Ro),n}function J(n){var t,r;return function(e,u,i){var o,a=n[i].update,c=a.length;for(i!=r&&(r=i,t=0),u>=t&&(t=u+1);!(o=a[t])&&++t<c;);return o}}function G(n,t,r){function e(){var t=this[o];t&&(this.removeEventListener(n,t,t.$),delete this[o])}function u(){var u=c(t,go(arguments));e.call(this),this.addEventListener(n,this[o]=u,u.$=r),u._=t}function i(){var t,r=new RegExp("^__on([^.]+)"+ho.requote(n)+"$");for(var e in this)if(t=e.match(r)){var u=this[e];this.removeEventListener(t[1],u,u.$),delete this[e]}}var o="__on"+n,a=n.indexOf("."),c=K;a>0&&(n=n.slice(0,a));var l=Do.get(n);return l&&(n=l,c=Q),a?t?u:e:t?E:i}function K(n,t){return function(r){var e=ho.event;ho.event=r,t[0]=this.__data__;try{n.apply(this,t)}finally{ho.event=e}}}function Q(n,t){var r=K(n,t);return function(n){var t=this,e=n.relatedTarget;e&&(e===t||8&e.compareDocumentPosition(t))||r.call(t,n)}}function nn(n){var t=".dragsuppress-"+ ++Io,r="click"+t,e=ho.select(o(n)).on("touchmove"+t,A).on("dragstart"+t,A).on("selectstart"+t,A);if(null==Uo&&(Uo=!("onselectstart"in n)&&k(n.style,"userSelect")),Uo){var u=i(n).style,a=u[Uo];u[Uo]="none"}return function(n){if(e.on(t,null),Uo&&(u[Uo]=a),n){var i=function(){e.on(r,null)};e.on(r,function(){A(),i()},!0),setTimeout(i,0)}}}function tn(n,t){t.changedTouches&&(t=t.changedTouches[0]);var r=n.ownerSVGElement||n;if(r.createSVGPoint){var e=r.createSVGPoint();if(Fo<0){var u=o(n);if(u.scrollX||u.scrollY){r=ho.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var i=r[0][0].getScreenCTM();Fo=!(i.f||i.e),r.remove()}}return Fo?(e.x=t.pageX,e.y=t.pageY):(e.x=t.clientX,e.y=t.clientY),e=e.matrixTransform(n.getScreenCTM().inverse()),[e.x,e.y]}var a=n.getBoundingClientRect();return[t.clientX-a.left-n.clientLeft,t.clientY-a.top-n.clientTop]}function rn(){return ho.event.changedTouches[0].identifier}function en(n){return n>0?1:n<0?-1:0}function un(n,t,r){return(t[0]-n[0])*(r[1]-n[1])-(t[1]-n[1])*(r[0]-n[0])}function on(n){return n>1?0:n<-1?Yo:Math.acos(n)}function an(n){return n>1?Wo:n<-1?-Wo:Math.asin(n)}function cn(n){return((n=Math.exp(n))-1/n)/2}function ln(n){return((n=Math.exp(n))+1/n)/2}function fn(n){return((n=Math.exp(2*n))-1)/(n+1)}function sn(n){return(n=Math.sin(n/2))*n}function hn(){}function pn(n,t,r){return this instanceof pn?(this.h=+n,this.s=+t,void(this.l=+r)):arguments.length<2?n instanceof pn?new pn(n.h,n.s,n.l):jn(""+n,Nn,pn):new pn(n,t,r)}function dn(n,t,r){function e(n){return n>360?n-=360:n<0&&(n+=360),n<60?i+(o-i)*n/60:n<180?o:n<240?i+(o-i)*(240-n)/60:i}function u(n){return Math.round(255*e(n))}var i,o;return n=isNaN(n)?0:(n%=360)<0?n+360:n,t=isNaN(t)?0:t<0?0:t>1?1:t,r=r<0?0:r>1?1:r,o=r<=.5?r*(1+t):r+t-r*t,i=2*r-o,new wn(u(n+120),u(n),u(n-120))}function gn(n,t,r){return this instanceof gn?(this.h=+n,this.c=+t,void(this.l=+r)):arguments.length<2?n instanceof gn?new gn(n.h,n.c,n.l):n instanceof yn?xn(n.l,n.a,n.b):xn((n=An((n=ho.rgb(n)).r,n.g,n.b)).l,n.a,n.b):new gn(n,t,r)}function vn(n,t,r){return isNaN(n)&&(n=0),isNaN(t)&&(t=0),new yn(r,Math.cos(n*=$o)*t,Math.sin(n)*t)}function yn(n,t,r){return this instanceof yn?(this.l=+n,this.a=+t,void(this.b=+r)):arguments.length<2?n instanceof yn?new yn(n.l,n.a,n.b):n instanceof gn?vn(n.h,n.c,n.l):An((n=wn(n)).r,n.g,n.b):new yn(n,t,r)}function mn(n,t,r){var e=(n+16)/116,u=e+t/500,i=e-r/200;return u=Mn(u)*ia,e=Mn(e)*oa,i=Mn(i)*aa,new wn(_n(3.2404542*u-1.5371385*e-.4985314*i),_n(-.969266*u+1.8760108*e+.041556*i),_n(.0556434*u-.2040259*e+1.0572252*i))}function xn(n,t,r){return n>0?new gn(Math.atan2(r,t)*Xo,Math.sqrt(t*t+r*r),n):new gn(NaN,NaN,n)}function Mn(n){return n>.206893034?n*n*n:(n-4/29)/7.787037}function bn(n){return n>.008856?Math.pow(n,1/3):7.787037*n+4/29}function _n(n){return Math.round(255*(n<=.00304?12.92*n:1.055*Math.pow(n,1/2.4)-.055))}function wn(n,t,r){return this instanceof wn?(this.r=~~n,this.g=~~t,void(this.b=~~r)):arguments.length<2?n instanceof wn?new wn(n.r,n.g,n.b):jn(""+n,wn,dn):new wn(n,t,r)}function Sn(n){return new wn(n>>16,n>>8&255,255&n)}function kn(n){return Sn(n)+""}function En(n){return n<16?"0"+Math.max(0,n).toString(16):Math.min(255,n).toString(16)}function jn(n,t,r){var e,u,i,o=0,a=0,c=0;if(e=/([a-z]+)\((.*)\)/.exec(n=n.toLowerCase()))switch(u=e[2].split(","),e[1]){case"hsl":return r(parseFloat(u[0]),parseFloat(u[1])/100,parseFloat(u[2])/100);case"rgb":return t(On(u[0]),On(u[1]),On(u[2]))}return(i=fa.get(n))?t(i.r,i.g,i.b):(null==n||"#"!==n.charAt(0)||isNaN(i=parseInt(n.slice(1),16))||(4===n.length?(o=(3840&i)>>4,o=o>>4|o,a=240&i,a=a>>4|a,c=15&i,c=c<<4|c):7===n.length&&(o=(16711680&i)>>16,a=(65280&i)>>8,c=255&i)),t(o,a,c))}function Nn(n,t,r){var e,u,i=Math.min(n/=255,t/=255,r/=255),o=Math.max(n,t,r),a=o-i,c=(o+i)/2;return a?(u=c<.5?a/(o+i):a/(2-o-i),e=n==o?(t-r)/a+(t<r?6:0):t==o?(r-n)/a+2:(n-t)/a+4,e*=60):(e=NaN,u=c>0&&c<1?0:e),new pn(e,u,c)}function An(n,t,r){n=Cn(n),t=Cn(t),r=Cn(r);var e=bn((.4124564*n+.3575761*t+.1804375*r)/ia),u=bn((.2126729*n+.7151522*t+.072175*r)/oa),i=bn((.0193339*n+.119192*t+.9503041*r)/aa);return yn(116*u-16,500*(e-u),200*(u-i))}function Cn(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function On(n){var t=parseFloat(n);return"%"===n.charAt(n.length-1)?Math.round(2.55*t):t}function zn(n){return"function"==typeof n?n:function(){return n}}function Tn(n){return function(t,r,e){return 2===arguments.length&&"function"==typeof r&&(e=r,r=null),Ln(t,r,n,e)}}function Ln(n,t,r,e){function u(){var n,t=c.status;if(!t&&Pn(c)||t>=200&&t<300||304===t){try{n=r.call(i,c)}catch(e){return void o.error.call(i,e)}o.load.call(i,n)}else o.error.call(i,c)}var i={},o=ho.dispatch("beforesend","progress","load","error"),a={},c=new XMLHttpRequest,l=null;return!this.XDomainRequest||"withCredentials"in c||!/^(http(s)?:)?\/\//.test(n)||(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=u:c.onreadystatechange=function(){c.readyState>3&&u()},c.onprogress=function(n){var t=ho.event;ho.event=n;try{o.progress.call(i,c)}finally{ho.event=t}},i.header=function(n,t){return n=(n+"").toLowerCase(),arguments.length<2?a[n]:(null==t?delete a[n]:a[n]=t+"",i)},i.mimeType=function(n){return arguments.length?(t=null==n?null:n+"",i):t},i.responseType=function(n){return arguments.length?(l=n,i):l},i.response=function(n){return r=n,i},["get","post"].forEach(function(n){i[n]=function(){return i.send.apply(i,[n].concat(go(arguments)))}}),i.send=function(r,e,u){if(2===arguments.length&&"function"==typeof e&&(u=e,e=null),c.open(r,n,!0),null==t||"accept"in a||(a.accept=t+",*/*"),c.setRequestHeader)for(var f in a)c.setRequestHeader(f,a[f]);return null!=t&&c.overrideMimeType&&c.overrideMimeType(t),null!=l&&(c.responseType=l),null!=u&&i.on("error",u).on("load",function(n){u(null,n)}),o.beforesend.call(i,c),c.send(null==e?null:e),i},i.abort=function(){return c.abort(),i},ho.rebind(i,o,"on"),null==e?i:i.get(qn(e))}function qn(n){return 1===n.length?function(t,r){n(null==t?r:null)}:n}function Pn(n){var t=n.responseType;return t&&"text"!==t?n.response:n.responseText}function Rn(n,t,r){var e=arguments.length;e<2&&(t=0),e<3&&(r=Date.now());var u=r+t,i={c:n,t:u,n:null};return ha?ha.n=i:sa=i,ha=i,pa||(da=clearTimeout(da),pa=1,ga(Dn)),i}function Dn(){var n=Un(),t=In()-n;t>24?(isFinite(t)&&(clearTimeout(da),da=setTimeout(Dn,t)),pa=0):(pa=1,ga(Dn))}function Un(){for(var n=Date.now(),t=sa;t;)n>=t.t&&t.c(n-t.t)&&(t.c=null),t=t.n;return n}function In(){for(var n,t=sa,r=1/0;t;)t.c?(t.t<r&&(r=t.t),t=(n=t).n):t=n?n.n=t.n:sa=t.n;return ha=n,r}function Fn(n,t){return t-(n?Math.ceil(Math.log(n)/Math.LN10):1)}function Hn(n,t){var r=Math.pow(10,3*ko(8-t));return{scale:t>8?function(n){return n/r}:function(n){return n*r},symbol:n}}function Bn(n){var t=n.decimal,r=n.thousands,e=n.grouping,u=n.currency,i=e&&r?function(n,t){for(var u=n.length,i=[],o=0,a=e[0],c=0;u>0&&a>0&&(c+a+1>t&&(a=Math.max(1,t-c)),i.push(n.substring(u-=a,u+a)),!((c+=a+1)>t));)a=e[o=(o+1)%e.length];return i.reverse().join(r)}:w;return function(n){var r=ya.exec(n),e=r[1]||" ",o=r[2]||">",a=r[3]||"-",c=r[4]||"",l=r[5],f=+r[6],s=r[7],h=r[8],p=r[9],d=1,g="",v="",y=!1,m=!0;switch(h&&(h=+h.substring(1)),(l||"0"===e&&"="===o)&&(l=e="0",o="="),p){case"n":s=!0,p="g";break;case"%":d=100,v="%",p="f";break;case"p":d=100,v="%",p="r";break;case"b":case"o":case"x":case"X":"#"===c&&(g="0"+p.toLowerCase());case"c":m=!1;case"d":y=!0,h=0;break;case"s":d=-1,p="r"}"$"===c&&(g=u[0],v=u[1]),"r"!=p||h||(p="g"),null!=h&&("g"==p?h=Math.max(1,Math.min(21,h)):"e"!=p&&"f"!=p||(h=Math.max(0,Math.min(20,h)))),p=ma.get(p)||Yn;var x=l&&s;return function(n){var r=v;if(y&&n%1)return"";var u=n<0||0===n&&1/n<0?(n=-n,"-"):"-"===a?"":a;if(d<0){var c=ho.formatPrefix(n,h);n=c.scale(n),r=c.symbol+v}else n*=d;n=p(n,h);var M,b,_=n.lastIndexOf(".");if(_<0){var w=m?n.lastIndexOf("e"):-1;w<0?(M=n,b=""):(M=n.substring(0,w),b=n.substring(w))}else M=n.substring(0,_),b=t+n.substring(_+1);!l&&s&&(M=i(M,1/0));var S=g.length+M.length+b.length+(x?0:u.length),k=S<f?new Array(S=f-S+1).join(e):"";return x&&(M=i(k+M,k.length?f-b.length:1/0)),u+=g,n=M+b,("<"===o?u+n+k:">"===o?k+u+n:"^"===o?k.substring(0,S>>=1)+u+n+k.substring(S):u+(x?n:k+n))+r}}}function Yn(n){return n+""}function Vn(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Zn(n,t,r){function e(t){var r=n(t),e=i(r,1);return t-r<e-t?r:e}function u(r){return t(r=n(new Ma(r-1)),1),r}function i(n,r){return t(n=new Ma((+n)),r),n}function o(n,e,i){var o=u(n),a=[];if(i>1)for(;o<e;)r(o)%i||a.push(new Date((+o))),t(o,1);else for(;o<e;)a.push(new Date((+o))),t(o,1);return a}function a(n,t,r){try{Ma=Vn;var e=new Vn;return e._=n,o(e,t,r)}finally{Ma=Date}}n.floor=n,n.round=e,n.ceil=u,n.offset=i,n.range=o;var c=n.utc=Wn(n);return c.floor=c,c.round=Wn(e),c.ceil=Wn(u),c.offset=Wn(i),c.range=a,n}function Wn(n){return function(t,r){try{Ma=Vn;var e=new Vn;return e._=t,n(e,r)._}finally{Ma=Date}}}function $n(n){function t(n){function t(t){for(var r,u,i,o=[],a=-1,c=0;++a<e;)37===n.charCodeAt(a)&&(o.push(n.slice(c,a)),null!=(u=_a[r=n.charAt(++a)])&&(r=n.charAt(++a)),(i=N[r])&&(r=i(t,null==u?"e"===r?" ":"0":u)),o.push(r),c=a+1);return o.push(n.slice(c,a)),o.join("")}var e=n.length;return t.parse=function(t){var e={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},u=r(e,n,t,0);if(u!=t.length)return null;"p"in e&&(e.H=e.H%12+12*e.p);var i=null!=e.Z&&Ma!==Vn,o=new(i?Vn:Ma);return"j"in e?o.setFullYear(e.y,0,e.j):"W"in e||"U"in e?("w"in e||(e.w="W"in e?1:0),o.setFullYear(e.y,0,1),o.setFullYear(e.y,0,"W"in e?(e.w+6)%7+7*e.W-(o.getDay()+5)%7:e.w+7*e.U-(o.getDay()+6)%7)):o.setFullYear(e.y,e.m,e.d),o.setHours(e.H+(e.Z/100|0),e.M+e.Z%100,e.S,e.L),i?o._:o},t.toString=function(){return n},t}function r(n,t,r,e){for(var u,i,o,a=0,c=t.length,l=r.length;a<c;){if(e>=l)return-1;if(u=t.charCodeAt(a++),37===u){if(o=t.charAt(a++),i=A[o in _a?t.charAt(a++):o],!i||(e=i(n,r,e))<0)return-1}else if(u!=r.charCodeAt(e++))return-1}return e}function e(n,t,r){_.lastIndex=0;var e=_.exec(t.slice(r));return e?(n.w=w.get(e[0].toLowerCase()),r+e[0].length):-1}function u(n,t,r){M.lastIndex=0;var e=M.exec(t.slice(r));return e?(n.w=b.get(e[0].toLowerCase()),r+e[0].length):-1}function i(n,t,r){E.lastIndex=0;var e=E.exec(t.slice(r));return e?(n.m=j.get(e[0].toLowerCase()),r+e[0].length):-1}function o(n,t,r){S.lastIndex=0;var e=S.exec(t.slice(r));return e?(n.m=k.get(e[0].toLowerCase()),r+e[0].length):-1}function a(n,t,e){return r(n,N.c.toString(),t,e)}function c(n,t,e){return r(n,N.x.toString(),t,e)}function l(n,t,e){return r(n,N.X.toString(),t,e)}function f(n,t,r){var e=x.get(t.slice(r,r+=2).toLowerCase());return null==e?-1:(n.p=e,r)}var s=n.dateTime,h=n.date,p=n.time,d=n.periods,g=n.days,v=n.shortDays,y=n.months,m=n.shortMonths;t.utc=function(n){function r(n){try{Ma=Vn;var t=new Ma;return t._=n,e(t)}finally{Ma=Date}}var e=t(n);return r.parse=function(n){try{Ma=Vn;var t=e.parse(n);return t&&t._}finally{Ma=Date}},r.toString=e.toString,r},t.multi=t.utc.multi=dt;var x=ho.map(),M=Jn(g),b=Gn(g),_=Jn(v),w=Gn(v),S=Jn(y),k=Gn(y),E=Jn(m),j=Gn(m);d.forEach(function(n,t){x.set(n.toLowerCase(),t)});var N={a:function(n){return v[n.getDay()]},A:function(n){return g[n.getDay()]},b:function(n){return m[n.getMonth()];
3},B:function(n){return y[n.getMonth()]},c:t(s),d:function(n,t){return Xn(n.getDate(),t,2)},e:function(n,t){return Xn(n.getDate(),t,2)},H:function(n,t){return Xn(n.getHours(),t,2)},I:function(n,t){return Xn(n.getHours()%12||12,t,2)},j:function(n,t){return Xn(1+xa.dayOfYear(n),t,3)},L:function(n,t){return Xn(n.getMilliseconds(),t,3)},m:function(n,t){return Xn(n.getMonth()+1,t,2)},M:function(n,t){return Xn(n.getMinutes(),t,2)},p:function(n){return d[+(n.getHours()>=12)]},S:function(n,t){return Xn(n.getSeconds(),t,2)},U:function(n,t){return Xn(xa.sundayOfYear(n),t,2)},w:function(n){return n.getDay()},W:function(n,t){return Xn(xa.mondayOfYear(n),t,2)},x:t(h),X:t(p),y:function(n,t){return Xn(n.getFullYear()%100,t,2)},Y:function(n,t){return Xn(n.getFullYear()%1e4,t,4)},Z:ht,"%":function(){return"%"}},A={a:e,A:u,b:i,B:o,c:a,d:ot,e:ot,H:ct,I:ct,j:at,L:st,m:it,M:lt,p:f,S:ft,U:Qn,w:Kn,W:nt,x:c,X:l,y:rt,Y:tt,Z:et,"%":pt};return t}function Xn(n,t,r){var e=n<0?"-":"",u=(e?-n:n)+"",i=u.length;return e+(i<r?new Array(r-i+1).join(t)+u:u)}function Jn(n){return new RegExp("^(?:"+n.map(ho.requote).join("|")+")","i")}function Gn(n){for(var t=new d,r=-1,e=n.length;++r<e;)t.set(n[r].toLowerCase(),r);return t}function Kn(n,t,r){wa.lastIndex=0;var e=wa.exec(t.slice(r,r+1));return e?(n.w=+e[0],r+e[0].length):-1}function Qn(n,t,r){wa.lastIndex=0;var e=wa.exec(t.slice(r));return e?(n.U=+e[0],r+e[0].length):-1}function nt(n,t,r){wa.lastIndex=0;var e=wa.exec(t.slice(r));return e?(n.W=+e[0],r+e[0].length):-1}function tt(n,t,r){wa.lastIndex=0;var e=wa.exec(t.slice(r,r+4));return e?(n.y=+e[0],r+e[0].length):-1}function rt(n,t,r){wa.lastIndex=0;var e=wa.exec(t.slice(r,r+2));return e?(n.y=ut(+e[0]),r+e[0].length):-1}function et(n,t,r){return/^[+-]\d{4}$/.test(t=t.slice(r,r+5))?(n.Z=-t,r+5):-1}function ut(n){return n+(n>68?1900:2e3)}function it(n,t,r){wa.lastIndex=0;var e=wa.exec(t.slice(r,r+2));return e?(n.m=e[0]-1,r+e[0].length):-1}function ot(n,t,r){wa.lastIndex=0;var e=wa.exec(t.slice(r,r+2));return e?(n.d=+e[0],r+e[0].length):-1}function at(n,t,r){wa.lastIndex=0;var e=wa.exec(t.slice(r,r+3));return e?(n.j=+e[0],r+e[0].length):-1}function ct(n,t,r){wa.lastIndex=0;var e=wa.exec(t.slice(r,r+2));return e?(n.H=+e[0],r+e[0].length):-1}function lt(n,t,r){wa.lastIndex=0;var e=wa.exec(t.slice(r,r+2));return e?(n.M=+e[0],r+e[0].length):-1}function ft(n,t,r){wa.lastIndex=0;var e=wa.exec(t.slice(r,r+2));return e?(n.S=+e[0],r+e[0].length):-1}function st(n,t,r){wa.lastIndex=0;var e=wa.exec(t.slice(r,r+3));return e?(n.L=+e[0],r+e[0].length):-1}function ht(n){var t=n.getTimezoneOffset(),r=t>0?"-":"+",e=ko(t)/60|0,u=ko(t)%60;return r+Xn(e,"0",2)+Xn(u,"0",2)}function pt(n,t,r){Sa.lastIndex=0;var e=Sa.exec(t.slice(r,r+1));return e?r+e[0].length:-1}function dt(n){for(var t=n.length,r=-1;++r<t;)n[r][0]=this(n[r][0]);return function(t){for(var r=0,e=n[r];!e[1](t);)e=n[++r];return e[0](t)}}function gt(){}function vt(n,t,r){var e=r.s=n+t,u=e-n,i=e-u;r.t=n-i+(t-u)}function yt(n,t){n&&Na.hasOwnProperty(n.type)&&Na[n.type](n,t)}function mt(n,t,r){var e,u=-1,i=n.length-r;for(t.lineStart();++u<i;)e=n[u],t.point(e[0],e[1],e[2]);t.lineEnd()}function xt(n,t){var r=-1,e=n.length;for(t.polygonStart();++r<e;)mt(n[r],t,1);t.polygonEnd()}function Mt(){function n(n,t){n*=$o,t=t*$o/2+Yo/4;var r=n-e,o=r>=0?1:-1,a=o*r,c=Math.cos(t),l=Math.sin(t),f=i*l,s=u*c+f*Math.cos(a),h=f*o*Math.sin(a);Ca.add(Math.atan2(h,s)),e=n,u=c,i=l}var t,r,e,u,i;Oa.point=function(o,a){Oa.point=n,e=(t=o)*$o,u=Math.cos(a=(r=a)*$o/2+Yo/4),i=Math.sin(a)},Oa.lineEnd=function(){n(t,r)}}function bt(n){var t=n[0],r=n[1],e=Math.cos(r);return[e*Math.cos(t),e*Math.sin(t),Math.sin(r)]}function _t(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function wt(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function St(n,t){n[0]+=t[0],n[1]+=t[1],n[2]+=t[2]}function kt(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function Et(n){var t=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t,n[1]/=t,n[2]/=t}function jt(n){return[Math.atan2(n[1],n[0]),an(n[2])]}function Nt(n,t){return ko(n[0]-t[0])<Ho&&ko(n[1]-t[1])<Ho}function At(n,t){n*=$o;var r=Math.cos(t*=$o);Ct(r*Math.cos(n),r*Math.sin(n),Math.sin(t))}function Ct(n,t,r){++za,La+=(n-La)/za,qa+=(t-qa)/za,Pa+=(r-Pa)/za}function Ot(){function n(n,u){n*=$o;var i=Math.cos(u*=$o),o=i*Math.cos(n),a=i*Math.sin(n),c=Math.sin(u),l=Math.atan2(Math.sqrt((l=r*c-e*a)*l+(l=e*o-t*c)*l+(l=t*a-r*o)*l),t*o+r*a+e*c);Ta+=l,Ra+=l*(t+(t=o)),Da+=l*(r+(r=a)),Ua+=l*(e+(e=c)),Ct(t,r,e)}var t,r,e;Ba.point=function(u,i){u*=$o;var o=Math.cos(i*=$o);t=o*Math.cos(u),r=o*Math.sin(u),e=Math.sin(i),Ba.point=n,Ct(t,r,e)}}function zt(){Ba.point=At}function Tt(){function n(n,t){n*=$o;var r=Math.cos(t*=$o),o=r*Math.cos(n),a=r*Math.sin(n),c=Math.sin(t),l=u*c-i*a,f=i*o-e*c,s=e*a-u*o,h=Math.sqrt(l*l+f*f+s*s),p=e*o+u*a+i*c,d=h&&-on(p)/h,g=Math.atan2(h,p);Ia+=d*l,Fa+=d*f,Ha+=d*s,Ta+=g,Ra+=g*(e+(e=o)),Da+=g*(u+(u=a)),Ua+=g*(i+(i=c)),Ct(e,u,i)}var t,r,e,u,i;Ba.point=function(o,a){t=o,r=a,Ba.point=n,o*=$o;var c=Math.cos(a*=$o);e=c*Math.cos(o),u=c*Math.sin(o),i=Math.sin(a),Ct(e,u,i)},Ba.lineEnd=function(){n(t,r),Ba.lineEnd=zt,Ba.point=At}}function Lt(n,t){function r(r,e){return r=n(r,e),t(r[0],r[1])}return n.invert&&t.invert&&(r.invert=function(r,e){return r=t.invert(r,e),r&&n.invert(r[0],r[1])}),r}function qt(){return!0}function Pt(n,t,r,e,u){var i=[],o=[];if(n.forEach(function(n){if(!((t=n.length-1)<=0)){var t,r=n[0],e=n[t];if(Nt(r,e)){u.lineStart();for(var a=0;a<t;++a)u.point((r=n[a])[0],r[1]);return void u.lineEnd()}var c=new Dt(r,n,null,(!0)),l=new Dt(r,null,c,(!1));c.o=l,i.push(c),o.push(l),c=new Dt(e,n,null,(!1)),l=new Dt(e,null,c,(!0)),c.o=l,i.push(c),o.push(l)}}),o.sort(t),Rt(i),Rt(o),i.length){for(var a=0,c=r,l=o.length;a<l;++a)o[a].e=c=!c;for(var f,s,h=i[0];;){for(var p=h,d=!0;p.v;)if((p=p.n)===h)return;f=p.z,u.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(var a=0,l=f.length;a<l;++a)u.point((s=f[a])[0],s[1]);else e(p.x,p.n.x,1,u);p=p.n}else{if(d){f=p.p.z;for(var a=f.length-1;a>=0;--a)u.point((s=f[a])[0],s[1])}else e(p.x,p.p.x,-1,u);p=p.p}p=p.o,f=p.z,d=!d}while(!p.v);u.lineEnd()}}}function Rt(n){if(t=n.length){for(var t,r,e=0,u=n[0];++e<t;)u.n=r=n[e],r.p=u,u=r;u.n=r=n[0],r.p=u}}function Dt(n,t,r,e){this.x=n,this.z=t,this.o=r,this.e=e,this.v=!1,this.n=this.p=null}function Ut(n,t,r,e){return function(u,i){function o(t,r){var e=u(t,r);n(t=e[0],r=e[1])&&i.point(t,r)}function a(n,t){var r=u(n,t);v.point(r[0],r[1])}function c(){m.point=a,v.lineStart()}function l(){m.point=o,v.lineEnd()}function f(n,t){g.push([n,t]);var r=u(n,t);M.point(r[0],r[1])}function s(){M.lineStart(),g=[]}function h(){f(g[0][0],g[0][1]),M.lineEnd();var n,t=M.clean(),r=x.buffer(),e=r.length;if(g.pop(),d.push(g),g=null,e)if(1&t){n=r[0];var u,e=n.length-1,o=-1;if(e>0){for(b||(i.polygonStart(),b=!0),i.lineStart();++o<e;)i.point((u=n[o])[0],u[1]);i.lineEnd()}}else e>1&&2&t&&r.push(r.pop().concat(r.shift())),p.push(r.filter(It))}var p,d,g,v=t(i),y=u.invert(e[0],e[1]),m={point:o,lineStart:c,lineEnd:l,polygonStart:function(){m.point=f,m.lineStart=s,m.lineEnd=h,p=[],d=[]},polygonEnd:function(){m.point=o,m.lineStart=c,m.lineEnd=l,p=ho.merge(p);var n=Zt(y,d);p.length?(b||(i.polygonStart(),b=!0),Pt(p,Ht,n,r,i)):n&&(b||(i.polygonStart(),b=!0),i.lineStart(),r(null,null,1,i),i.lineEnd()),b&&(i.polygonEnd(),b=!1),p=d=null},sphere:function(){i.polygonStart(),i.lineStart(),r(null,null,1,i),i.lineEnd(),i.polygonEnd()}},x=Ft(),M=t(x),b=!1;return m}}function It(n){return n.length>1}function Ft(){var n,t=[];return{lineStart:function(){t.push(n=[])},point:function(t,r){n.push([t,r])},lineEnd:E,buffer:function(){var r=t;return t=[],n=null,r},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function Ht(n,t){return((n=n.x)[0]<0?n[1]-Wo-Ho:Wo-n[1])-((t=t.x)[0]<0?t[1]-Wo-Ho:Wo-t[1])}function Bt(n){var t,r=NaN,e=NaN,u=NaN;return{lineStart:function(){n.lineStart(),t=1},point:function(i,o){var a=i>0?Yo:-Yo,c=ko(i-r);ko(c-Yo)<Ho?(n.point(r,e=(e+o)/2>0?Wo:-Wo),n.point(u,e),n.lineEnd(),n.lineStart(),n.point(a,e),n.point(i,e),t=0):u!==a&&c>=Yo&&(ko(r-u)<Ho&&(r-=u*Ho),ko(i-a)<Ho&&(i-=a*Ho),e=Yt(r,e,i,o),n.point(u,e),n.lineEnd(),n.lineStart(),n.point(a,e),t=0),n.point(r=i,e=o),u=a},lineEnd:function(){n.lineEnd(),r=e=NaN},clean:function(){return 2-t}}}function Yt(n,t,r,e){var u,i,o=Math.sin(n-r);return ko(o)>Ho?Math.atan((Math.sin(t)*(i=Math.cos(e))*Math.sin(r)-Math.sin(e)*(u=Math.cos(t))*Math.sin(n))/(u*i*o)):(t+e)/2}function Vt(n,t,r,e){var u;if(null==n)u=r*Wo,e.point(-Yo,u),e.point(0,u),e.point(Yo,u),e.point(Yo,0),e.point(Yo,-u),e.point(0,-u),e.point(-Yo,-u),e.point(-Yo,0),e.point(-Yo,u);else if(ko(n[0]-t[0])>Ho){var i=n[0]<t[0]?Yo:-Yo;u=r*i/2,e.point(-i,u),e.point(0,u),e.point(i,u)}else e.point(t[0],t[1])}function Zt(n,t){var r=n[0],e=n[1],u=[Math.sin(r),-Math.cos(r),0],i=0,o=0;Ca.reset();for(var a=0,c=t.length;a<c;++a){var l=t[a],f=l.length;if(f)for(var s=l[0],h=s[0],p=s[1]/2+Yo/4,d=Math.sin(p),g=Math.cos(p),v=1;;){v===f&&(v=0),n=l[v];var y=n[0],m=n[1]/2+Yo/4,x=Math.sin(m),M=Math.cos(m),b=y-h,_=b>=0?1:-1,w=_*b,S=w>Yo,k=d*x;if(Ca.add(Math.atan2(k*_*Math.sin(w),g*M+k*Math.cos(w))),i+=S?b+_*Vo:b,S^h>=r^y>=r){var E=wt(bt(s),bt(n));Et(E);var j=wt(u,E);Et(j);var N=(S^b>=0?-1:1)*an(j[2]);(e>N||e===N&&(E[0]||E[1]))&&(o+=S^b>=0?1:-1)}if(!v++)break;h=y,d=x,g=M,s=n}}return(i<-Ho||i<Ho&&Ca<-Ho)^1&o}function Wt(n){function t(n,t){return Math.cos(n)*Math.cos(t)>i}function r(n){var r,i,c,l,f;return{lineStart:function(){l=c=!1,f=1},point:function(s,h){var p,d=[s,h],g=t(s,h),v=o?g?0:u(s,h):g?u(s+(s<0?Yo:-Yo),h):0;if(!r&&(l=c=g)&&n.lineStart(),g!==c&&(p=e(r,d),(Nt(r,p)||Nt(d,p))&&(d[0]+=Ho,d[1]+=Ho,g=t(d[0],d[1]))),g!==c)f=0,g?(n.lineStart(),p=e(d,r),n.point(p[0],p[1])):(p=e(r,d),n.point(p[0],p[1]),n.lineEnd()),r=p;else if(a&&r&&o^g){var y;v&i||!(y=e(d,r,!0))||(f=0,o?(n.lineStart(),n.point(y[0][0],y[0][1]),n.point(y[1][0],y[1][1]),n.lineEnd()):(n.point(y[1][0],y[1][1]),n.lineEnd(),n.lineStart(),n.point(y[0][0],y[0][1])))}!g||r&&Nt(r,d)||n.point(d[0],d[1]),r=d,c=g,i=v},lineEnd:function(){c&&n.lineEnd(),r=null},clean:function(){return f|(l&&c)<<1}}}function e(n,t,r){var e=bt(n),u=bt(t),o=[1,0,0],a=wt(e,u),c=_t(a,a),l=a[0],f=c-l*l;if(!f)return!r&&n;var s=i*c/f,h=-i*l/f,p=wt(o,a),d=kt(o,s),g=kt(a,h);St(d,g);var v=p,y=_t(d,v),m=_t(v,v),x=y*y-m*(_t(d,d)-1);if(!(x<0)){var M=Math.sqrt(x),b=kt(v,(-y-M)/m);if(St(b,d),b=jt(b),!r)return b;var _,w=n[0],S=t[0],k=n[1],E=t[1];S<w&&(_=w,w=S,S=_);var j=S-w,N=ko(j-Yo)<Ho,A=N||j<Ho;if(!N&&E<k&&(_=k,k=E,E=_),A?N?k+E>0^b[1]<(ko(b[0]-w)<Ho?k:E):k<=b[1]&&b[1]<=E:j>Yo^(w<=b[0]&&b[0]<=S)){var C=kt(v,(-y+M)/m);return St(C,d),[b,jt(C)]}}}function u(t,r){var e=o?n:Yo-n,u=0;return t<-e?u|=1:t>e&&(u|=2),r<-e?u|=4:r>e&&(u|=8),u}var i=Math.cos(n),o=i>0,a=ko(i)>Ho,c=Mr(n,6*$o);return Ut(t,r,c,o?[0,-n]:[-Yo,n-Yo])}function $t(n,t,r,e){return function(u){var i,o=u.a,a=u.b,c=o.x,l=o.y,f=a.x,s=a.y,h=0,p=1,d=f-c,g=s-l;if(i=n-c,d||!(i>0)){if(i/=d,d<0){if(i<h)return;i<p&&(p=i)}else if(d>0){if(i>p)return;i>h&&(h=i)}if(i=r-c,d||!(i<0)){if(i/=d,d<0){if(i>p)return;i>h&&(h=i)}else if(d>0){if(i<h)return;i<p&&(p=i)}if(i=t-l,g||!(i>0)){if(i/=g,g<0){if(i<h)return;i<p&&(p=i)}else if(g>0){if(i>p)return;i>h&&(h=i)}if(i=e-l,g||!(i<0)){if(i/=g,g<0){if(i>p)return;i>h&&(h=i)}else if(g>0){if(i<h)return;i<p&&(p=i)}return h>0&&(u.a={x:c+h*d,y:l+h*g}),p<1&&(u.b={x:c+p*d,y:l+p*g}),u}}}}}}function Xt(n,t,r,e){function u(e,u){return ko(e[0]-n)<Ho?u>0?0:3:ko(e[0]-r)<Ho?u>0?2:1:ko(e[1]-t)<Ho?u>0?1:0:u>0?3:2}function i(n,t){return o(n.x,t.x)}function o(n,t){var r=u(n,1),e=u(t,1);return r!==e?r-e:0===r?t[1]-n[1]:1===r?n[0]-t[0]:2===r?n[1]-t[1]:t[0]-n[0]}return function(a){function c(n){for(var t=0,r=v.length,e=n[1],u=0;u<r;++u)for(var i,o=1,a=v[u],c=a.length,l=a[0];o<c;++o)i=a[o],l[1]<=e?i[1]>e&&un(l,i,n)>0&&++t:i[1]<=e&&un(l,i,n)<0&&--t,l=i;return 0!==t}function l(i,a,c,l){var f=0,s=0;if(null==i||(f=u(i,c))!==(s=u(a,c))||o(i,a)<0^c>0){do l.point(0===f||3===f?n:r,f>1?e:t);while((f=(f+c+4)%4)!==s)}else l.point(a[0],a[1])}function f(u,i){return n<=u&&u<=r&&t<=i&&i<=e}function s(n,t){f(n,t)&&a.point(n,t)}function h(){A.point=d,v&&v.push(y=[]),S=!0,w=!1,b=_=NaN}function p(){g&&(d(m,x),M&&w&&j.rejoin(),g.push(j.buffer())),A.point=s,w&&a.lineEnd()}function d(n,t){n=Math.max(-Va,Math.min(Va,n)),t=Math.max(-Va,Math.min(Va,t));var r=f(n,t);if(v&&y.push([n,t]),S)m=n,x=t,M=r,S=!1,r&&(a.lineStart(),a.point(n,t));else if(r&&w)a.point(n,t);else{var e={a:{x:b,y:_},b:{x:n,y:t}};N(e)?(w||(a.lineStart(),a.point(e.a.x,e.a.y)),a.point(e.b.x,e.b.y),r||a.lineEnd(),k=!1):r&&(a.lineStart(),a.point(n,t),k=!1)}b=n,_=t,w=r}var g,v,y,m,x,M,b,_,w,S,k,E=a,j=Ft(),N=$t(n,t,r,e),A={point:s,lineStart:h,lineEnd:p,polygonStart:function(){a=j,g=[],v=[],k=!0},polygonEnd:function(){a=E,g=ho.merge(g);var t=c([n,e]),r=k&&t,u=g.length;(r||u)&&(a.polygonStart(),r&&(a.lineStart(),l(null,null,1,a),a.lineEnd()),u&&Pt(g,i,t,l,a),a.polygonEnd()),g=v=y=null}};return A}}function Jt(n){var t=0,r=Yo/3,e=hr(n),u=e(t,r);return u.parallels=function(n){return arguments.length?e(t=n[0]*Yo/180,r=n[1]*Yo/180):[t/Yo*180,r/Yo*180]},u}function Gt(n,t){function r(n,t){var r=Math.sqrt(i-2*u*Math.sin(t))/u;return[r*Math.sin(n*=u),o-r*Math.cos(n)]}var e=Math.sin(n),u=(e+Math.sin(t))/2,i=1+e*(2*u-e),o=Math.sqrt(i)/u;return r.invert=function(n,t){var r=o-t;return[Math.atan2(n,r)/u,an((i-(n*n+r*r)*u*u)/(2*u))]},r}function Kt(){function n(n,t){Wa+=u*n-e*t,e=n,u=t}var t,r,e,u;Ka.point=function(i,o){Ka.point=n,t=e=i,r=u=o},Ka.lineEnd=function(){n(t,r)}}function Qt(n,t){n<$a&&($a=n),n>Ja&&(Ja=n),t<Xa&&(Xa=t),t>Ga&&(Ga=t)}function nr(){function n(n,t){o.push("M",n,",",t,i)}function t(n,t){o.push("M",n,",",t),a.point=r}function r(n,t){o.push("L",n,",",t)}function e(){a.point=n}function u(){o.push("Z")}var i=tr(4.5),o=[],a={point:n,lineStart:function(){a.point=t},lineEnd:e,polygonStart:function(){a.lineEnd=u},polygonEnd:function(){a.lineEnd=e,a.point=n},pointRadius:function(n){return i=tr(n),a},result:function(){if(o.length){var n=o.join("");return o=[],n}}};return a}function tr(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function rr(n,t){La+=n,qa+=t,++Pa}function er(){function n(n,e){var u=n-t,i=e-r,o=Math.sqrt(u*u+i*i);Ra+=o*(t+n)/2,Da+=o*(r+e)/2,Ua+=o,rr(t=n,r=e)}var t,r;nc.point=function(e,u){nc.point=n,rr(t=e,r=u)}}function ur(){nc.point=rr}function ir(){function n(n,t){var r=n-e,i=t-u,o=Math.sqrt(r*r+i*i);Ra+=o*(e+n)/2,Da+=o*(u+t)/2,Ua+=o,o=u*n-e*t,Ia+=o*(e+n),Fa+=o*(u+t),Ha+=3*o,rr(e=n,u=t)}var t,r,e,u;nc.point=function(i,o){nc.point=n,rr(t=e=i,r=u=o)},nc.lineEnd=function(){n(t,r)}}function or(n){function t(t,r){n.moveTo(t+o,r),n.arc(t,r,o,0,Vo)}function r(t,r){n.moveTo(t,r),a.point=e}function e(t,r){n.lineTo(t,r)}function u(){a.point=t}function i(){n.closePath()}var o=4.5,a={point:t,lineStart:function(){a.point=r},lineEnd:u,polygonStart:function(){a.lineEnd=i},polygonEnd:function(){a.lineEnd=u,a.point=t},pointRadius:function(n){return o=n,a},result:E};return a}function ar(n){function t(n){return(a?e:r)(n)}function r(t){return fr(t,function(r,e){r=n(r,e),t.point(r[0],r[1])})}function e(t){function r(r,e){r=n(r,e),t.point(r[0],r[1])}function e(){x=NaN,S.point=i,t.lineStart()}function i(r,e){var i=bt([r,e]),o=n(r,e);u(x,M,m,b,_,w,x=o[0],M=o[1],m=r,b=i[0],_=i[1],w=i[2],a,t),t.point(x,M)}function o(){S.point=r,t.lineEnd()}function c(){e(),S.point=l,S.lineEnd=f}function l(n,t){i(s=n,h=t),p=x,d=M,g=b,v=_,y=w,S.point=i}function f(){u(x,M,m,b,_,w,p,d,s,g,v,y,a,t),S.lineEnd=o,o()}var s,h,p,d,g,v,y,m,x,M,b,_,w,S={point:r,lineStart:e,lineEnd:o,polygonStart:function(){t.polygonStart(),S.lineStart=c},polygonEnd:function(){t.polygonEnd(),S.lineStart=e}};return S}function u(t,r,e,a,c,l,f,s,h,p,d,g,v,y){var m=f-t,x=s-r,M=m*m+x*x;if(M>4*i&&v--){var b=a+p,_=c+d,w=l+g,S=Math.sqrt(b*b+_*_+w*w),k=Math.asin(w/=S),E=ko(ko(w)-1)<Ho||ko(e-h)<Ho?(e+h)/2:Math.atan2(_,b),j=n(E,k),N=j[0],A=j[1],C=N-t,O=A-r,z=x*C-m*O;(z*z/M>i||ko((m*C+x*O)/M-.5)>.3||a*p+c*d+l*g<o)&&(u(t,r,e,a,c,l,N,A,E,b/=S,_/=S,w,v,y),y.point(N,A),u(N,A,E,b,_,w,f,s,h,p,d,g,v,y))}}var i=.5,o=Math.cos(30*$o),a=16;return t.precision=function(n){return arguments.length?(a=(i=n*n)>0&&16,t):Math.sqrt(i)},t}function cr(n){var t=ar(function(t,r){return n([t*Xo,r*Xo])});return function(n){return pr(t(n))}}function lr(n){this.stream=n}function fr(n,t){return{point:t,sphere:function(){n.sphere()},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}}}function sr(n){return hr(function(){return n})()}function hr(n){function t(n){return n=a(n[0]*$o,n[1]*$o),[n[0]*h+c,l-n[1]*h]}function r(n){return n=a.invert((n[0]-c)/h,(l-n[1])/h),n&&[n[0]*Xo,n[1]*Xo]}function e(){a=Lt(o=vr(y,m,x),i);var n=i(g,v);return c=p-n[0]*h,l=d+n[1]*h,u()}function u(){return f&&(f.valid=!1,f=null),t}var i,o,a,c,l,f,s=ar(function(n,t){return n=i(n,t),[n[0]*h+c,l-n[1]*h]}),h=150,p=480,d=250,g=0,v=0,y=0,m=0,x=0,M=Ya,b=w,_=null,S=null;return t.stream=function(n){return f&&(f.valid=!1),f=pr(M(o,s(b(n)))),f.valid=!0,f},t.clipAngle=function(n){return arguments.length?(M=null==n?(_=n,Ya):Wt((_=+n)*$o),u()):_},t.clipExtent=function(n){return arguments.length?(S=n,b=n?Xt(n[0][0],n[0][1],n[1][0],n[1][1]):w,u()):S},t.scale=function(n){return arguments.length?(h=+n,e()):h},t.translate=function(n){return arguments.length?(p=+n[0],d=+n[1],e()):[p,d]},t.center=function(n){return arguments.length?(g=n[0]%360*$o,v=n[1]%360*$o,e()):[g*Xo,v*Xo]},t.rotate=function(n){return arguments.length?(y=n[0]%360*$o,m=n[1]%360*$o,x=n.length>2?n[2]%360*$o:0,e()):[y*Xo,m*Xo,x*Xo]},ho.rebind(t,s,"precision"),function(){return i=n.apply(this,arguments),t.invert=i.invert&&r,e()}}function pr(n){return fr(n,function(t,r){n.point(t*$o,r*$o)})}function dr(n,t){return[n,t]}function gr(n,t){return[n>Yo?n-Vo:n<-Yo?n+Vo:n,t]}function vr(n,t,r){return n?t||r?Lt(mr(n),xr(t,r)):mr(n):t||r?xr(t,r):gr}function yr(n){return function(t,r){return t+=n,[t>Yo?t-Vo:t<-Yo?t+Vo:t,r]}}function mr(n){var t=yr(n);return t.invert=yr(-n),t}function xr(n,t){function r(n,t){var r=Math.cos(t),a=Math.cos(n)*r,c=Math.sin(n)*r,l=Math.sin(t),f=l*e+a*u;return[Math.atan2(c*i-f*o,a*e-l*u),an(f*i+c*o)]}var e=Math.cos(n),u=Math.sin(n),i=Math.cos(t),o=Math.sin(t);return r.invert=function(n,t){var r=Math.cos(t),a=Math.cos(n)*r,c=Math.sin(n)*r,l=Math.sin(t),f=l*i-c*o;return[Math.atan2(c*i+l*o,a*e+f*u),an(f*e-a*u)]},r}function Mr(n,t){var r=Math.cos(n),e=Math.sin(n);return function(u,i,o,a){var c=o*t;null!=u?(u=br(r,u),i=br(r,i),(o>0?u<i:u>i)&&(u+=o*Vo)):(u=n+o*Vo,i=n-.5*c);for(var l,f=u;o>0?f>i:f<i;f-=c)a.point((l=jt([r,-e*Math.cos(f),-e*Math.sin(f)]))[0],l[1])}}function br(n,t){var r=bt(t);r[0]-=n,Et(r);var e=on(-r[1]);return((-r[2]<0?-e:e)+2*Math.PI-Ho)%(2*Math.PI)}function _r(n,t,r){var e=ho.range(n,t-Ho,r).concat(t);return function(n){return e.map(function(t){return[n,t]})}}function wr(n,t,r){var e=ho.range(n,t-Ho,r).concat(t);return function(n){return e.map(function(t){return[t,n]})}}function Sr(n){return n.source}function kr(n){return n.target}function Er(n,t,r,e){var u=Math.cos(t),i=Math.sin(t),o=Math.cos(e),a=Math.sin(e),c=u*Math.cos(n),l=u*Math.sin(n),f=o*Math.cos(r),s=o*Math.sin(r),h=2*Math.asin(Math.sqrt(sn(e-t)+u*o*sn(r-n))),p=1/Math.sin(h),d=h?function(n){var t=Math.sin(n*=h)*p,r=Math.sin(h-n)*p,e=r*c+t*f,u=r*l+t*s,o=r*i+t*a;return[Math.atan2(u,e)*Xo,Math.atan2(o,Math.sqrt(e*e+u*u))*Xo]}:function(){return[n*Xo,t*Xo]};return d.distance=h,d}function jr(){function n(n,u){var i=Math.sin(u*=$o),o=Math.cos(u),a=ko((n*=$o)-t),c=Math.cos(a);tc+=Math.atan2(Math.sqrt((a=o*Math.sin(a))*a+(a=e*i-r*o*c)*a),r*i+e*o*c),t=n,r=i,e=o}var t,r,e;rc.point=function(u,i){t=u*$o,r=Math.sin(i*=$o),e=Math.cos(i),rc.point=n},rc.lineEnd=function(){rc.point=rc.lineEnd=E}}function Nr(n,t){function r(t,r){var e=Math.cos(t),u=Math.cos(r),i=n(e*u);return[i*u*Math.sin(t),i*Math.sin(r)]}return r.invert=function(n,r){var e=Math.sqrt(n*n+r*r),u=t(e),i=Math.sin(u),o=Math.cos(u);return[Math.atan2(n*i,e*o),Math.asin(e&&r*i/e)]},r}function Ar(n,t){function r(n,t){o>0?t<-Wo+Ho&&(t=-Wo+Ho):t>Wo-Ho&&(t=Wo-Ho);var r=o/Math.pow(u(t),i);return[r*Math.sin(i*n),o-r*Math.cos(i*n)]}var e=Math.cos(n),u=function(n){return Math.tan(Yo/4+n/2)},i=n===t?Math.sin(n):Math.log(e/Math.cos(t))/Math.log(u(t)/u(n)),o=e*Math.pow(u(n),i)/i;return i?(r.invert=function(n,t){var r=o-t,e=en(i)*Math.sqrt(n*n+r*r);return[Math.atan2(n,r)/i,2*Math.atan(Math.pow(o/e,1/i))-Wo]},r):Or}function Cr(n,t){function r(n,t){var r=i-t;return[r*Math.sin(u*n),i-r*Math.cos(u*n)]}var e=Math.cos(n),u=n===t?Math.sin(n):(e-Math.cos(t))/(t-n),i=e/u+n;return ko(u)<Ho?dr:(r.invert=function(n,t){var r=i-t;return[Math.atan2(n,r)/u,i-en(u)*Math.sqrt(n*n+r*r)]},r)}function Or(n,t){return[n,Math.log(Math.tan(Yo/4+t/2))]}function zr(n){var t,r=sr(n),e=r.scale,u=r.translate,i=r.clipExtent;return r.scale=function(){var n=e.apply(r,arguments);return n===r?t?r.clipExtent(null):r:n},r.translate=function(){var n=u.apply(r,arguments);return n===r?t?r.clipExtent(null):r:n},r.clipExtent=function(n){var o=i.apply(r,arguments);if(o===r){if(t=null==n){var a=Yo*e(),c=u();i([[c[0]-a,c[1]-a],[c[0]+a,c[1]+a]])}}else t&&(o=null);return o},r.clipExtent(null)}function Tr(n,t){return[Math.log(Math.tan(Yo/4+t/2)),-n]}function Lr(n){return n[0]}function qr(n){return n[1]}function Pr(n){for(var t=n.length,r=[0,1],e=2,u=2;u<t;u++){for(;e>1&&un(n[r[e-2]],n[r[e-1]],n[u])<=0;)--e;r[e++]=u}return r.slice(0,e)}function Rr(n,t){return n[0]-t[0]||n[1]-t[1]}function Dr(n,t,r){return(r[0]-t[0])*(n[1]-t[1])<(r[1]-t[1])*(n[0]-t[0])}function Ur(n,t,r,e){var u=n[0],i=r[0],o=t[0]-u,a=e[0]-i,c=n[1],l=r[1],f=t[1]-c,s=e[1]-l,h=(a*(c-l)-s*(u-i))/(s*o-a*f);return[u+h*o,c+h*f]}function Ir(n){var t=n[0],r=n[n.length-1];return!(t[0]-r[0]||t[1]-r[1])}function Fr(){ce(this),this.edge=this.site=this.circle=null}function Hr(n){var t=dc.pop()||new Fr;return t.site=n,t}function Br(n){Qr(n),sc.remove(n),dc.push(n),ce(n)}function Yr(n){var t=n.circle,r=t.x,e=t.cy,u={x:r,y:e},i=n.P,o=n.N,a=[n];Br(n);for(var c=i;c.circle&&ko(r-c.circle.x)<Ho&&ko(e-c.circle.cy)<Ho;)i=c.P,a.unshift(c),Br(c),c=i;a.unshift(c),Qr(c);for(var l=o;l.circle&&ko(r-l.circle.x)<Ho&&ko(e-l.circle.cy)<Ho;)o=l.N,a.push(l),Br(l),l=o;a.push(l),Qr(l);var f,s=a.length;for(f=1;f<s;++f)l=a[f],c=a[f-1],ie(l.edge,c.site,l.site,u);c=a[0],l=a[s-1],l.edge=ee(c.site,l.site,null,u),Kr(c),Kr(l)}function Vr(n){for(var t,r,e,u,i=n.x,o=n.y,a=sc._;a;)if(e=Zr(a,o)-i,e>Ho)a=a.L;else{if(u=i-Wr(a,o),!(u>Ho)){e>-Ho?(t=a.P,r=a):u>-Ho?(t=a,r=a.N):t=r=a;break}if(!a.R){t=a;break}a=a.R}var c=Hr(n);if(sc.insert(t,c),t||r){if(t===r)return Qr(t),r=Hr(t.site),sc.insert(c,r),c.edge=r.edge=ee(t.site,c.site),Kr(t),void Kr(r);if(!r)return void(c.edge=ee(t.site,c.site));Qr(t),Qr(r);var l=t.site,f=l.x,s=l.y,h=n.x-f,p=n.y-s,d=r.site,g=d.x-f,v=d.y-s,y=2*(h*v-p*g),m=h*h+p*p,x=g*g+v*v,M={x:(v*m-p*x)/y+f,y:(h*x-g*m)/y+s};ie(r.edge,l,d,M),c.edge=ee(l,n,null,M),r.edge=ee(n,d,null,M),Kr(t),Kr(r)}}function Zr(n,t){var r=n.site,e=r.x,u=r.y,i=u-t;if(!i)return e;var o=n.P;if(!o)return-(1/0);r=o.site;var a=r.x,c=r.y,l=c-t;if(!l)return a;var f=a-e,s=1/i-1/l,h=f/l;return s?(-h+Math.sqrt(h*h-2*s*(f*f/(-2*l)-c+l/2+u-i/2)))/s+e:(e+a)/2}function Wr(n,t){var r=n.N;if(r)return Zr(r,t);var e=n.site;return e.y===t?e.x:1/0}function $r(n){this.site=n,this.edges=[]}function Xr(n){for(var t,r,e,u,i,o,a,c,l,f,s=n[0][0],h=n[1][0],p=n[0][1],d=n[1][1],g=fc,v=g.length;v--;)if(i=g[v],i&&i.prepare())for(a=i.edges,c=a.length,o=0;o<c;)f=a[o].end(),e=f.x,u=f.y,l=a[++o%c].start(),t=l.x,r=l.y,(ko(e-t)>Ho||ko(u-r)>Ho)&&(a.splice(o,0,new oe(ue(i.site,f,ko(e-s)<Ho&&d-u>Ho?{x:s,y:ko(t-s)<Ho?r:d}:ko(u-d)<Ho&&h-e>Ho?{x:ko(r-d)<Ho?t:h,y:d}:ko(e-h)<Ho&&u-p>Ho?{x:h,y:ko(t-h)<Ho?r:p}:ko(u-p)<Ho&&e-s>Ho?{x:ko(r-p)<Ho?t:s,y:p}:null),i.site,null)),++c)}function Jr(n,t){return t.angle-n.angle}function Gr(){ce(this),this.x=this.y=this.arc=this.site=this.cy=null}function Kr(n){var t=n.P,r=n.N;if(t&&r){var e=t.site,u=n.site,i=r.site;if(e!==i){var o=u.x,a=u.y,c=e.x-o,l=e.y-a,f=i.x-o,s=i.y-a,h=2*(c*s-l*f);if(!(h>=-Bo)){var p=c*c+l*l,d=f*f+s*s,g=(s*p-l*d)/h,v=(c*d-f*p)/h,s=v+a,y=gc.pop()||new Gr;y.arc=n,y.site=u,y.x=g+o,y.y=s+Math.sqrt(g*g+v*v),y.cy=s,n.circle=y;for(var m=null,x=pc._;x;)if(y.y<x.y||y.y===x.y&&y.x<=x.x){if(!x.L){m=x.P;break}x=x.L}else{if(!x.R){m=x;break}x=x.R}pc.insert(m,y),m||(hc=y)}}}}function Qr(n){var t=n.circle;t&&(t.P||(hc=t.N),pc.remove(t),gc.push(t),ce(t),n.circle=null)}function ne(n){for(var t,r=lc,e=$t(n[0][0],n[0][1],n[1][0],n[1][1]),u=r.length;u--;)t=r[u],(!te(t,n)||!e(t)||ko(t.a.x-t.b.x)<Ho&&ko(t.a.y-t.b.y)<Ho)&&(t.a=t.b=null,r.splice(u,1))}function te(n,t){var r=n.b;if(r)return!0;var e,u,i=n.a,o=t[0][0],a=t[1][0],c=t[0][1],l=t[1][1],f=n.l,s=n.r,h=f.x,p=f.y,d=s.x,g=s.y,v=(h+d)/2,y=(p+g)/2;if(g===p){if(v<o||v>=a)return;if(h>d){if(i){if(i.y>=l)return}else i={x:v,y:c};r={x:v,y:l}}else{if(i){if(i.y<c)return}else i={x:v,y:l};r={x:v,y:c}}}else if(e=(h-d)/(g-p),u=y-e*v,e<-1||e>1)if(h>d){if(i){if(i.y>=l)return}else i={x:(c-u)/e,y:c};r={x:(l-u)/e,y:l}}else{if(i){if(i.y<c)return}else i={x:(l-u)/e,y:l};r={x:(c-u)/e,y:c}}else if(p<g){if(i){if(i.x>=a)return}else i={x:o,y:e*o+u};r={x:a,y:e*a+u}}else{if(i){if(i.x<o)return}else i={x:a,y:e*a+u};r={x:o,y:e*o+u}}return n.a=i,n.b=r,!0}function re(n,t){this.l=n,this.r=t,this.a=this.b=null}function ee(n,t,r,e){var u=new re(n,t);return lc.push(u),r&&ie(u,n,t,r),e&&ie(u,t,n,e),fc[n.i].edges.push(new oe(u,n,t)),fc[t.i].edges.push(new oe(u,t,n)),u}function ue(n,t,r){var e=new re(n,null);return e.a=t,e.b=r,lc.push(e),e}function ie(n,t,r,e){n.a||n.b?n.l===r?n.b=e:n.a=e:(n.a=e,n.l=t,n.r=r)}function oe(n,t,r){var e=n.a,u=n.b;this.edge=n,this.site=t,this.angle=r?Math.atan2(r.y-t.y,r.x-t.x):n.l===t?Math.atan2(u.x-e.x,e.y-u.y):Math.atan2(e.x-u.x,u.y-e.y)}function ae(){this._=null}function ce(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function le(n,t){var r=t,e=t.R,u=r.U;u?u.L===r?u.L=e:u.R=e:n._=e,e.U=u,r.U=e,r.R=e.L,r.R&&(r.R.U=r),e.L=r}function fe(n,t){var r=t,e=t.L,u=r.U;u?u.L===r?u.L=e:u.R=e:n._=e,e.U=u,r.U=e,r.L=e.R,r.L&&(r.L.U=r),e.R=r}function se(n){for(;n.L;)n=n.L;return n}function he(n,t){var r,e,u,i=n.sort(pe).pop();for(lc=[],fc=new Array(n.length),sc=new ae,pc=new ae;;)if(u=hc,i&&(!u||i.y<u.y||i.y===u.y&&i.x<u.x))i.x===r&&i.y===e||(fc[i.i]=new $r(i),Vr(i),r=i.x,e=i.y),i=n.pop();else{if(!u)break;Yr(u.arc)}t&&(ne(t),Xr(t));var o={cells:fc,edges:lc};return sc=pc=lc=fc=null,o}function pe(n,t){return t.y-n.y||t.x-n.x}function de(n,t,r){return(n.x-r.x)*(t.y-n.y)-(n.x-t.x)*(r.y-n.y)}function ge(n){return n.x}function ve(n){return n.y}function ye(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function me(n,t,r,e,u,i){if(!n(t,r,e,u,i)){var o=.5*(r+u),a=.5*(e+i),c=t.nodes;c[0]&&me(n,c[0],r,e,o,a),c[1]&&me(n,c[1],o,e,u,a),c[2]&&me(n,c[2],r,a,o,i),c[3]&&me(n,c[3],o,a,u,i)}}function xe(n,t,r,e,u,i,o){var a,c=1/0;return function l(n,f,s,h,p){if(!(f>i||s>o||h<e||p<u)){if(d=n.point){var d,g=t-n.x,v=r-n.y,y=g*g+v*v;if(y<c){var m=Math.sqrt(c=y);e=t-m,u=r-m,i=t+m,o=r+m,a=d}}for(var x=n.nodes,M=.5*(f+h),b=.5*(s+p),_=t>=M,w=r>=b,S=w<<1|_,k=S+4;S<k;++S)if(n=x[3&S])switch(3&S){case 0:l(n,f,s,M,b);break;case 1:l(n,M,s,h,b);break;case 2:l(n,f,b,M,p);break;case 3:l(n,M,b,h,p)}}}(n,e,u,i,o),a}function Me(n,t){n=ho.rgb(n),t=ho.rgb(t);var r=n.r,e=n.g,u=n.b,i=t.r-r,o=t.g-e,a=t.b-u;return function(n){return"#"+En(Math.round(r+i*n))+En(Math.round(e+o*n))+En(Math.round(u+a*n))}}function be(n,t){var r,e={},u={};for(r in n)r in t?e[r]=Se(n[r],t[r]):u[r]=n[r];for(r in t)r in n||(u[r]=t[r]);return function(n){for(r in e)u[r]=e[r](n);return u}}function _e(n,t){return n=+n,t=+t,function(r){return n*(1-r)+t*r}}function we(n,t){var r,e,u,i=yc.lastIndex=mc.lastIndex=0,o=-1,a=[],c=[];for(n+="",t+="";(r=yc.exec(n))&&(e=mc.exec(t));)(u=e.index)>i&&(u=t.slice(i,u),a[o]?a[o]+=u:a[++o]=u),(r=r[0])===(e=e[0])?a[o]?a[o]+=e:a[++o]=e:(a[++o]=null,c.push({i:o,x:_e(r,e)})),i=mc.lastIndex;return i<t.length&&(u=t.slice(i),a[o]?a[o]+=u:a[++o]=u),a.length<2?c[0]?(t=c[0].x,function(n){return t(n)+""}):function(){return t}:(t=c.length,function(n){for(var r,e=0;e<t;++e)a[(r=c[e]).i]=r.x(n);return a.join("")})}function Se(n,t){for(var r,e=ho.interpolators.length;--e>=0&&!(r=ho.interpolators[e](n,t)););return r}function ke(n,t){var r,e=[],u=[],i=n.length,o=t.length,a=Math.min(n.length,t.length);for(r=0;r<a;++r)e.push(Se(n[r],t[r]));for(;r<i;++r)u[r]=n[r];for(;r<o;++r)u[r]=t[r];return function(n){for(r=0;r<a;++r)u[r]=e[r](n);return u}}function Ee(n){return function(t){return t<=0?0:t>=1?1:n(t)}}function je(n){return function(t){return 1-n(1-t)}}function Ne(n){return function(t){return.5*(t<.5?n(2*t):2-n(2-2*t))}}function Ae(n){return n*n}function Ce(n){return n*n*n}function Oe(n){if(n<=0)return 0;if(n>=1)return 1;var t=n*n,r=t*n;return 4*(n<.5?r:3*(n-t)+r-.75)}function ze(n){return function(t){return Math.pow(t,n)}}function Te(n){return 1-Math.cos(n*Wo)}function Le(n){return Math.pow(2,10*(n-1))}function qe(n){return 1-Math.sqrt(1-n*n)}function Pe(n,t){var r;return arguments.length<2&&(t=.45),arguments.length?r=t/Vo*Math.asin(1/n):(n=1,r=t/4),function(e){return 1+n*Math.pow(2,-10*e)*Math.sin((e-r)*Vo/t)}}function Re(n){return n||(n=1.70158),function(t){return t*t*((n+1)*t-n)}}function De(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}function Ue(n,t){n=ho.hcl(n),t=ho.hcl(t);var r=n.h,e=n.c,u=n.l,i=t.h-r,o=t.c-e,a=t.l-u;return isNaN(o)&&(o=0,e=isNaN(e)?t.c:e),isNaN(i)?(i=0,r=isNaN(r)?t.h:r):i>180?i-=360:i<-180&&(i+=360),function(n){return vn(r+i*n,e+o*n,u+a*n)+""}}function Ie(n,t){n=ho.hsl(n),t=ho.hsl(t);var r=n.h,e=n.s,u=n.l,i=t.h-r,o=t.s-e,a=t.l-u;return isNaN(o)&&(o=0,e=isNaN(e)?t.s:e),isNaN(i)?(i=0,r=isNaN(r)?t.h:r):i>180?i-=360:i<-180&&(i+=360),function(n){return dn(r+i*n,e+o*n,u+a*n)+""}}function Fe(n,t){n=ho.lab(n),t=ho.lab(t);var r=n.l,e=n.a,u=n.b,i=t.l-r,o=t.a-e,a=t.b-u;return function(n){return mn(r+i*n,e+o*n,u+a*n)+""}}function He(n,t){return t-=n,function(r){return Math.round(n+t*r)}}function Be(n){var t=[n.a,n.b],r=[n.c,n.d],e=Ve(t),u=Ye(t,r),i=Ve(Ze(r,t,-u))||0;t[0]*r[1]<r[0]*t[1]&&(t[0]*=-1,t[1]*=-1,e*=-1,u*=-1),this.rotate=(e?Math.atan2(t[1],t[0]):Math.atan2(-r[0],r[1]))*Xo,this.translate=[n.e,n.f],this.scale=[e,i],this.skew=i?Math.atan2(u,i)*Xo:0}function Ye(n,t){return n[0]*t[0]+n[1]*t[1]}function Ve(n){var t=Math.sqrt(Ye(n,n));return t&&(n[0]/=t,n[1]/=t),t}function Ze(n,t,r){return n[0]+=r*t[0],n[1]+=r*t[1],n}function We(n){return n.length?n.pop()+",":""}function $e(n,t,r,e){if(n[0]!==t[0]||n[1]!==t[1]){var u=r.push("translate(",null,",",null,")");e.push({i:u-4,x:_e(n[0],t[0])},{i:u-2,x:_e(n[1],t[1])})}else(t[0]||t[1])&&r.push("translate("+t+")")}function Xe(n,t,r,e){n!==t?(n-t>180?t+=360:t-n>180&&(n+=360),e.push({i:r.push(We(r)+"rotate(",null,")")-2,x:_e(n,t)})):t&&r.push(We(r)+"rotate("+t+")")}function Je(n,t,r,e){n!==t?e.push({i:r.push(We(r)+"skewX(",null,")")-2,x:_e(n,t)}):t&&r.push(We(r)+"skewX("+t+")")}function Ge(n,t,r,e){if(n[0]!==t[0]||n[1]!==t[1]){var u=r.push(We(r)+"scale(",null,",",null,")");e.push({i:u-4,x:_e(n[0],t[0])},{i:u-2,x:_e(n[1],t[1])})}else 1===t[0]&&1===t[1]||r.push(We(r)+"scale("+t+")")}function Ke(n,t){var r=[],e=[];return n=ho.transform(n),t=ho.transform(t),$e(n.translate,t.translate,r,e),Xe(n.rotate,t.rotate,r,e),Je(n.skew,t.skew,r,e),Ge(n.scale,t.scale,r,e),n=t=null,function(n){for(var t,u=-1,i=e.length;++u<i;)r[(t=e[u]).i]=t.x(n);return r.join("")}}function Qe(n,t){return t=(t-=n=+n)||1/t,function(r){return(r-n)/t}}function nu(n,t){return t=(t-=n=+n)||1/t,function(r){return Math.max(0,Math.min(1,(r-n)/t))}}function tu(n){for(var t=n.source,r=n.target,e=eu(t,r),u=[t];t!==e;)t=t.parent,u.push(t);for(var i=u.length;r!==e;)u.splice(i,0,r),r=r.parent;return u}function ru(n){for(var t=[],r=n.parent;null!=r;)t.push(n),n=r,r=r.parent;return t.push(n),t}function eu(n,t){if(n===t)return n;for(var r=ru(n),e=ru(t),u=r.pop(),i=e.pop(),o=null;u===i;)o=u,u=r.pop(),i=e.pop();return o}function uu(n){n.fixed|=2}function iu(n){n.fixed&=-7}function ou(n){
4n.fixed|=4,n.px=n.x,n.py=n.y}function au(n){n.fixed&=-5}function cu(n,t,r){var e=0,u=0;if(n.charge=0,!n.leaf)for(var i,o=n.nodes,a=o.length,c=-1;++c<a;)i=o[c],null!=i&&(cu(i,t,r),n.charge+=i.charge,e+=i.charge*i.cx,u+=i.charge*i.cy);if(n.point){n.leaf||(n.point.x+=Math.random()-.5,n.point.y+=Math.random()-.5);var l=t*r[n.point.index];n.charge+=n.pointCharge=l,e+=l*n.point.x,u+=l*n.point.y}n.cx=e/n.charge,n.cy=u/n.charge}function lu(n,t){return ho.rebind(n,t,"sort","children","value"),n.nodes=n,n.links=gu,n}function fu(n,t){for(var r=[n];null!=(n=r.pop());)if(t(n),(u=n.children)&&(e=u.length))for(var e,u;--e>=0;)r.push(u[e])}function su(n,t){for(var r=[n],e=[];null!=(n=r.pop());)if(e.push(n),(i=n.children)&&(u=i.length))for(var u,i,o=-1;++o<u;)r.push(i[o]);for(;null!=(n=e.pop());)t(n)}function hu(n){return n.children}function pu(n){return n.value}function du(n,t){return t.value-n.value}function gu(n){return ho.merge(n.map(function(n){return(n.children||[]).map(function(t){return{source:n,target:t}})}))}function vu(n){return n.x}function yu(n){return n.y}function mu(n,t,r){n.y0=t,n.y=r}function xu(n){return ho.range(n.length)}function Mu(n){for(var t=-1,r=n[0].length,e=[];++t<r;)e[t]=0;return e}function bu(n){for(var t,r=1,e=0,u=n[0][1],i=n.length;r<i;++r)(t=n[r][1])>u&&(e=r,u=t);return e}function _u(n){return n.reduce(wu,0)}function wu(n,t){return n+t[1]}function Su(n,t){return ku(n,Math.ceil(Math.log(t.length)/Math.LN2+1))}function ku(n,t){for(var r=-1,e=+n[0],u=(n[1]-e)/t,i=[];++r<=t;)i[r]=u*r+e;return i}function Eu(n){return[ho.min(n),ho.max(n)]}function ju(n,t){return n.value-t.value}function Nu(n,t){var r=n._pack_next;n._pack_next=t,t._pack_prev=n,t._pack_next=r,r._pack_prev=t}function Au(n,t){n._pack_next=t,t._pack_prev=n}function Cu(n,t){var r=t.x-n.x,e=t.y-n.y,u=n.r+t.r;return.999*u*u>r*r+e*e}function Ou(n){function t(n){f=Math.min(n.x-n.r,f),s=Math.max(n.x+n.r,s),h=Math.min(n.y-n.r,h),p=Math.max(n.y+n.r,p)}if((r=n.children)&&(l=r.length)){var r,e,u,i,o,a,c,l,f=1/0,s=-(1/0),h=1/0,p=-(1/0);if(r.forEach(zu),e=r[0],e.x=-e.r,e.y=0,t(e),l>1&&(u=r[1],u.x=u.r,u.y=0,t(u),l>2))for(i=r[2],qu(e,u,i),t(i),Nu(e,i),e._pack_prev=i,Nu(i,u),u=e._pack_next,o=3;o<l;o++){qu(e,u,i=r[o]);var d=0,g=1,v=1;for(a=u._pack_next;a!==u;a=a._pack_next,g++)if(Cu(a,i)){d=1;break}if(1==d)for(c=e._pack_prev;c!==a._pack_prev&&!Cu(c,i);c=c._pack_prev,v++);d?(g<v||g==v&&u.r<e.r?Au(e,u=a):Au(e=c,u),o--):(Nu(e,i),u=i,t(i))}var y=(f+s)/2,m=(h+p)/2,x=0;for(o=0;o<l;o++)i=r[o],i.x-=y,i.y-=m,x=Math.max(x,i.r+Math.sqrt(i.x*i.x+i.y*i.y));n.r=x,r.forEach(Tu)}}function zu(n){n._pack_next=n._pack_prev=n}function Tu(n){delete n._pack_next,delete n._pack_prev}function Lu(n,t,r,e){var u=n.children;if(n.x=t+=e*n.x,n.y=r+=e*n.y,n.r*=e,u)for(var i=-1,o=u.length;++i<o;)Lu(u[i],t,r,e)}function qu(n,t,r){var e=n.r+r.r,u=t.x-n.x,i=t.y-n.y;if(e&&(u||i)){var o=t.r+r.r,a=u*u+i*i;o*=o,e*=e;var c=.5+(e-o)/(2*a),l=Math.sqrt(Math.max(0,2*o*(e+a)-(e-=a)*e-o*o))/(2*a);r.x=n.x+c*u+l*i,r.y=n.y+c*i-l*u}else r.x=n.x+e,r.y=n.y}function Pu(n,t){return n.parent==t.parent?1:2}function Ru(n){var t=n.children;return t.length?t[0]:n.t}function Du(n){var t,r=n.children;return(t=r.length)?r[t-1]:n.t}function Uu(n,t,r){var e=r/(t.i-n.i);t.c-=e,t.s+=r,n.c+=e,t.z+=r,t.m+=r}function Iu(n){for(var t,r=0,e=0,u=n.children,i=u.length;--i>=0;)t=u[i],t.z+=r,t.m+=r,r+=t.s+(e+=t.c)}function Fu(n,t,r){return n.a.parent===t.parent?n.a:r}function Hu(n){return 1+ho.max(n,function(n){return n.y})}function Bu(n){return n.reduce(function(n,t){return n+t.x},0)/n.length}function Yu(n){var t=n.children;return t&&t.length?Yu(t[0]):n}function Vu(n){var t,r=n.children;return r&&(t=r.length)?Vu(r[t-1]):n}function Zu(n){return{x:n.x,y:n.y,dx:n.dx,dy:n.dy}}function Wu(n,t){var r=n.x+t[3],e=n.y+t[0],u=n.dx-t[1]-t[3],i=n.dy-t[0]-t[2];return u<0&&(r+=u/2,u=0),i<0&&(e+=i/2,i=0),{x:r,y:e,dx:u,dy:i}}function $u(n){var t=n[0],r=n[n.length-1];return t<r?[t,r]:[r,t]}function Xu(n){return n.rangeExtent?n.rangeExtent():$u(n.range())}function Ju(n,t,r,e){var u=r(n[0],n[1]),i=e(t[0],t[1]);return function(n){return i(u(n))}}function Gu(n,t){var r,e=0,u=n.length-1,i=n[e],o=n[u];return o<i&&(r=e,e=u,u=r,r=i,i=o,o=r),n[e]=t.floor(i),n[u]=t.ceil(o),n}function Ku(n){return n?{floor:function(t){return Math.floor(t/n)*n},ceil:function(t){return Math.ceil(t/n)*n}}:Ac}function Qu(n,t,r,e){var u=[],i=[],o=0,a=Math.min(n.length,t.length)-1;for(n[a]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++o<=a;)u.push(r(n[o-1],n[o])),i.push(e(t[o-1],t[o]));return function(t){var r=ho.bisect(n,t,1,a)-1;return i[r](u[r](t))}}function ni(n,t,r,e){function u(){var u=Math.min(n.length,t.length)>2?Qu:Ju,c=e?nu:Qe;return o=u(n,t,c,r),a=u(t,n,c,Se),i}function i(n){return o(n)}var o,a;return i.invert=function(n){return a(n)},i.domain=function(t){return arguments.length?(n=t.map(Number),u()):n},i.range=function(n){return arguments.length?(t=n,u()):t},i.rangeRound=function(n){return i.range(n).interpolate(He)},i.clamp=function(n){return arguments.length?(e=n,u()):e},i.interpolate=function(n){return arguments.length?(r=n,u()):r},i.ticks=function(t){return ui(n,t)},i.tickFormat=function(t,r){return ii(n,t,r)},i.nice=function(t){return ri(n,t),u()},i.copy=function(){return ni(n,t,r,e)},u()}function ti(n,t){return ho.rebind(n,t,"range","rangeRound","interpolate","clamp")}function ri(n,t){return Gu(n,Ku(ei(n,t)[2])),Gu(n,Ku(ei(n,t)[2])),n}function ei(n,t){null==t&&(t=10);var r=$u(n),e=r[1]-r[0],u=Math.pow(10,Math.floor(Math.log(e/t)/Math.LN10)),i=t/e*u;return i<=.15?u*=10:i<=.35?u*=5:i<=.75&&(u*=2),r[0]=Math.ceil(r[0]/u)*u,r[1]=Math.floor(r[1]/u)*u+.5*u,r[2]=u,r}function ui(n,t){return ho.range.apply(ho,ei(n,t))}function ii(n,t,r){var e=ei(n,t);if(r){var u=ya.exec(r);if(u.shift(),"s"===u[8]){var i=ho.formatPrefix(Math.max(ko(e[0]),ko(e[1])));return u[7]||(u[7]="."+oi(i.scale(e[2]))),u[8]="f",r=ho.format(u.join("")),function(n){return r(i.scale(n))+i.symbol}}u[7]||(u[7]="."+ai(u[8],e)),r=u.join("")}else r=",."+oi(e[2])+"f";return ho.format(r)}function oi(n){return-Math.floor(Math.log(n)/Math.LN10+.01)}function ai(n,t){var r=oi(t[2]);return n in Cc?Math.abs(r-oi(Math.max(ko(t[0]),ko(t[1]))))+ +("e"!==n):r-2*("%"===n)}function ci(n,t,r,e){function u(n){return(r?Math.log(n<0?0:n):-Math.log(n>0?0:-n))/Math.log(t)}function i(n){return r?Math.pow(t,n):-Math.pow(t,-n)}function o(t){return n(u(t))}return o.invert=function(t){return i(n.invert(t))},o.domain=function(t){return arguments.length?(r=t[0]>=0,n.domain((e=t.map(Number)).map(u)),o):e},o.base=function(r){return arguments.length?(t=+r,n.domain(e.map(u)),o):t},o.nice=function(){var t=Gu(e.map(u),r?Math:zc);return n.domain(t),e=t.map(i),o},o.ticks=function(){var n=$u(e),o=[],a=n[0],c=n[1],l=Math.floor(u(a)),f=Math.ceil(u(c)),s=t%1?2:t;if(isFinite(f-l)){if(r){for(;l<f;l++)for(var h=1;h<s;h++)o.push(i(l)*h);o.push(i(l))}else for(o.push(i(l));l++<f;)for(var h=s-1;h>0;h--)o.push(i(l)*h);for(l=0;o[l]<a;l++);for(f=o.length;o[f-1]>c;f--);o=o.slice(l,f)}return o},o.tickFormat=function(n,r){if(!arguments.length)return Oc;arguments.length<2?r=Oc:"function"!=typeof r&&(r=ho.format(r));var e=Math.max(1,t*n/o.ticks().length);return function(n){var o=n/i(Math.round(u(n)));return o*t<t-.5&&(o*=t),o<=e?r(n):""}},o.copy=function(){return ci(n.copy(),t,r,e)},ti(o,n)}function li(n,t,r){function e(t){return n(u(t))}var u=fi(t),i=fi(1/t);return e.invert=function(t){return i(n.invert(t))},e.domain=function(t){return arguments.length?(n.domain((r=t.map(Number)).map(u)),e):r},e.ticks=function(n){return ui(r,n)},e.tickFormat=function(n,t){return ii(r,n,t)},e.nice=function(n){return e.domain(ri(r,n))},e.exponent=function(o){return arguments.length?(u=fi(t=o),i=fi(1/t),n.domain(r.map(u)),e):t},e.copy=function(){return li(n.copy(),t,r)},ti(e,n)}function fi(n){return function(t){return t<0?-Math.pow(-t,n):Math.pow(t,n)}}function si(n,t){function r(r){return i[((u.get(r)||("range"===t.t?u.set(r,n.push(r)):NaN))-1)%i.length]}function e(t,r){return ho.range(n.length).map(function(n){return t+r*n})}var u,i,o;return r.domain=function(e){if(!arguments.length)return n;n=[],u=new d;for(var i,o=-1,a=e.length;++o<a;)u.has(i=e[o])||u.set(i,n.push(i));return r[t.t].apply(r,t.a)},r.range=function(n){return arguments.length?(i=n,o=0,t={t:"range",a:arguments},r):i},r.rangePoints=function(u,a){arguments.length<2&&(a=0);var c=u[0],l=u[1],f=n.length<2?(c=(c+l)/2,0):(l-c)/(n.length-1+a);return i=e(c+f*a/2,f),o=0,t={t:"rangePoints",a:arguments},r},r.rangeRoundPoints=function(u,a){arguments.length<2&&(a=0);var c=u[0],l=u[1],f=n.length<2?(c=l=Math.round((c+l)/2),0):(l-c)/(n.length-1+a)|0;return i=e(c+Math.round(f*a/2+(l-c-(n.length-1+a)*f)/2),f),o=0,t={t:"rangeRoundPoints",a:arguments},r},r.rangeBands=function(u,a,c){arguments.length<2&&(a=0),arguments.length<3&&(c=a);var l=u[1]<u[0],f=u[l-0],s=u[1-l],h=(s-f)/(n.length-a+2*c);return i=e(f+h*c,h),l&&i.reverse(),o=h*(1-a),t={t:"rangeBands",a:arguments},r},r.rangeRoundBands=function(u,a,c){arguments.length<2&&(a=0),arguments.length<3&&(c=a);var l=u[1]<u[0],f=u[l-0],s=u[1-l],h=Math.floor((s-f)/(n.length-a+2*c));return i=e(f+Math.round((s-f-(n.length-a)*h)/2),h),l&&i.reverse(),o=Math.round(h*(1-a)),t={t:"rangeRoundBands",a:arguments},r},r.rangeBand=function(){return o},r.rangeExtent=function(){return $u(t.a[0])},r.copy=function(){return si(n,t)},r.domain(n)}function hi(n,t){function r(){var r=0,i=t.length;for(u=[];++r<i;)u[r-1]=ho.quantile(n,r/i);return e}function e(n){if(!isNaN(n=+n))return t[ho.bisect(u,n)]}var u;return e.domain=function(t){return arguments.length?(n=t.map(c).filter(l).sort(a),r()):n},e.range=function(n){return arguments.length?(t=n,r()):t},e.quantiles=function(){return u},e.invertExtent=function(r){return r=t.indexOf(r),r<0?[NaN,NaN]:[r>0?u[r-1]:n[0],r<u.length?u[r]:n[n.length-1]]},e.copy=function(){return hi(n,t)},r()}function pi(n,t,r){function e(t){return r[Math.max(0,Math.min(o,Math.floor(i*(t-n))))]}function u(){return i=r.length/(t-n),o=r.length-1,e}var i,o;return e.domain=function(r){return arguments.length?(n=+r[0],t=+r[r.length-1],u()):[n,t]},e.range=function(n){return arguments.length?(r=n,u()):r},e.invertExtent=function(t){return t=r.indexOf(t),t=t<0?NaN:t/i+n,[t,t+1/i]},e.copy=function(){return pi(n,t,r)},u()}function di(n,t){function r(r){if(r<=r)return t[ho.bisect(n,r)]}return r.domain=function(t){return arguments.length?(n=t,r):n},r.range=function(n){return arguments.length?(t=n,r):t},r.invertExtent=function(r){return r=t.indexOf(r),[n[r-1],n[r]]},r.copy=function(){return di(n,t)},r}function gi(n){function t(n){return+n}return t.invert=t,t.domain=t.range=function(r){return arguments.length?(n=r.map(t),t):n},t.ticks=function(t){return ui(n,t)},t.tickFormat=function(t,r){return ii(n,t,r)},t.copy=function(){return gi(n)},t}function vi(){return 0}function yi(n){return n.innerRadius}function mi(n){return n.outerRadius}function xi(n){return n.startAngle}function Mi(n){return n.endAngle}function bi(n){return n&&n.padAngle}function _i(n,t,r,e){return(n-r)*t-(t-e)*n>0?0:1}function wi(n,t,r,e,u){var i=n[0]-t[0],o=n[1]-t[1],a=(u?e:-e)/Math.sqrt(i*i+o*o),c=a*o,l=-a*i,f=n[0]+c,s=n[1]+l,h=t[0]+c,p=t[1]+l,d=(f+h)/2,g=(s+p)/2,v=h-f,y=p-s,m=v*v+y*y,x=r-e,M=f*p-h*s,b=(y<0?-1:1)*Math.sqrt(Math.max(0,x*x*m-M*M)),_=(M*y-v*b)/m,w=(-M*v-y*b)/m,S=(M*y+v*b)/m,k=(-M*v+y*b)/m,E=_-d,j=w-g,N=S-d,A=k-g;return E*E+j*j>N*N+A*A&&(_=S,w=k),[[_-c,w-l],[_*r/x,w*r/x]]}function Si(n){function t(t){function o(){l.push("M",i(n(f),a))}for(var c,l=[],f=[],s=-1,h=t.length,p=zn(r),d=zn(e);++s<h;)u.call(this,c=t[s],s)?f.push([+p.call(this,c,s),+d.call(this,c,s)]):f.length&&(o(),f=[]);return f.length&&o(),l.length?l.join(""):null}var r=Lr,e=qr,u=qt,i=ki,o=i.key,a=.7;return t.x=function(n){return arguments.length?(r=n,t):r},t.y=function(n){return arguments.length?(e=n,t):e},t.defined=function(n){return arguments.length?(u=n,t):u},t.interpolate=function(n){return arguments.length?(o="function"==typeof n?i=n:(i=Dc.get(n)||ki).key,t):o},t.tension=function(n){return arguments.length?(a=n,t):a},t}function ki(n){return n.length>1?n.join("L"):n+"Z"}function Ei(n){return n.join("L")+"Z"}function ji(n){for(var t=0,r=n.length,e=n[0],u=[e[0],",",e[1]];++t<r;)u.push("H",(e[0]+(e=n[t])[0])/2,"V",e[1]);return r>1&&u.push("H",e[0]),u.join("")}function Ni(n){for(var t=0,r=n.length,e=n[0],u=[e[0],",",e[1]];++t<r;)u.push("V",(e=n[t])[1],"H",e[0]);return u.join("")}function Ai(n){for(var t=0,r=n.length,e=n[0],u=[e[0],",",e[1]];++t<r;)u.push("H",(e=n[t])[0],"V",e[1]);return u.join("")}function Ci(n,t){return n.length<4?ki(n):n[1]+Ti(n.slice(1,-1),Li(n,t))}function Oi(n,t){return n.length<3?Ei(n):n[0]+Ti((n.push(n[0]),n),Li([n[n.length-2]].concat(n,[n[1]]),t))}function zi(n,t){return n.length<3?ki(n):n[0]+Ti(n,Li(n,t))}function Ti(n,t){if(t.length<1||n.length!=t.length&&n.length!=t.length+2)return ki(n);var r=n.length!=t.length,e="",u=n[0],i=n[1],o=t[0],a=o,c=1;if(r&&(e+="Q"+(i[0]-2*o[0]/3)+","+(i[1]-2*o[1]/3)+","+i[0]+","+i[1],u=n[1],c=2),t.length>1){a=t[1],i=n[c],c++,e+="C"+(u[0]+o[0])+","+(u[1]+o[1])+","+(i[0]-a[0])+","+(i[1]-a[1])+","+i[0]+","+i[1];for(var l=2;l<t.length;l++,c++)i=n[c],a=t[l],e+="S"+(i[0]-a[0])+","+(i[1]-a[1])+","+i[0]+","+i[1]}if(r){var f=n[c];e+="Q"+(i[0]+2*a[0]/3)+","+(i[1]+2*a[1]/3)+","+f[0]+","+f[1]}return e}function Li(n,t){for(var r,e=[],u=(1-t)/2,i=n[0],o=n[1],a=1,c=n.length;++a<c;)r=i,i=o,o=n[a],e.push([u*(o[0]-r[0]),u*(o[1]-r[1])]);return e}function qi(n){if(n.length<3)return ki(n);var t=1,r=n.length,e=n[0],u=e[0],i=e[1],o=[u,u,u,(e=n[1])[0]],a=[i,i,i,e[1]],c=[u,",",i,"L",Ui(Fc,o),",",Ui(Fc,a)];for(n.push(n[r-1]);++t<=r;)e=n[t],o.shift(),o.push(e[0]),a.shift(),a.push(e[1]),Ii(c,o,a);return n.pop(),c.push("L",e),c.join("")}function Pi(n){if(n.length<4)return ki(n);for(var t,r=[],e=-1,u=n.length,i=[0],o=[0];++e<3;)t=n[e],i.push(t[0]),o.push(t[1]);for(r.push(Ui(Fc,i)+","+Ui(Fc,o)),--e;++e<u;)t=n[e],i.shift(),i.push(t[0]),o.shift(),o.push(t[1]),Ii(r,i,o);return r.join("")}function Ri(n){for(var t,r,e=-1,u=n.length,i=u+4,o=[],a=[];++e<4;)r=n[e%u],o.push(r[0]),a.push(r[1]);for(t=[Ui(Fc,o),",",Ui(Fc,a)],--e;++e<i;)r=n[e%u],o.shift(),o.push(r[0]),a.shift(),a.push(r[1]),Ii(t,o,a);return t.join("")}function Di(n,t){var r=n.length-1;if(r)for(var e,u,i=n[0][0],o=n[0][1],a=n[r][0]-i,c=n[r][1]-o,l=-1;++l<=r;)e=n[l],u=l/r,e[0]=t*e[0]+(1-t)*(i+u*a),e[1]=t*e[1]+(1-t)*(o+u*c);return qi(n)}function Ui(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]+n[3]*t[3]}function Ii(n,t,r){n.push("C",Ui(Uc,t),",",Ui(Uc,r),",",Ui(Ic,t),",",Ui(Ic,r),",",Ui(Fc,t),",",Ui(Fc,r))}function Fi(n,t){return(t[1]-n[1])/(t[0]-n[0])}function Hi(n){for(var t=0,r=n.length-1,e=[],u=n[0],i=n[1],o=e[0]=Fi(u,i);++t<r;)e[t]=(o+(o=Fi(u=i,i=n[t+1])))/2;return e[t]=o,e}function Bi(n){for(var t,r,e,u,i=[],o=Hi(n),a=-1,c=n.length-1;++a<c;)t=Fi(n[a],n[a+1]),ko(t)<Ho?o[a]=o[a+1]=0:(r=o[a]/t,e=o[a+1]/t,u=r*r+e*e,u>9&&(u=3*t/Math.sqrt(u),o[a]=u*r,o[a+1]=u*e));for(a=-1;++a<=c;)u=(n[Math.min(c,a+1)][0]-n[Math.max(0,a-1)][0])/(6*(1+o[a]*o[a])),i.push([u||0,o[a]*u||0]);return i}function Yi(n){return n.length<3?ki(n):n[0]+Ti(n,Bi(n))}function Vi(n){for(var t,r,e,u=-1,i=n.length;++u<i;)t=n[u],r=t[0],e=t[1]-Wo,t[0]=r*Math.cos(e),t[1]=r*Math.sin(e);return n}function Zi(n){function t(t){function c(){g.push("M",a(n(y),s),f,l(n(v.reverse()),s),"Z")}for(var h,p,d,g=[],v=[],y=[],m=-1,x=t.length,M=zn(r),b=zn(u),_=r===e?function(){return p}:zn(e),w=u===i?function(){return d}:zn(i);++m<x;)o.call(this,h=t[m],m)?(v.push([p=+M.call(this,h,m),d=+b.call(this,h,m)]),y.push([+_.call(this,h,m),+w.call(this,h,m)])):v.length&&(c(),v=[],y=[]);return v.length&&c(),g.length?g.join(""):null}var r=Lr,e=Lr,u=0,i=qr,o=qt,a=ki,c=a.key,l=a,f="L",s=.7;return t.x=function(n){return arguments.length?(r=e=n,t):e},t.x0=function(n){return arguments.length?(r=n,t):r},t.x1=function(n){return arguments.length?(e=n,t):e},t.y=function(n){return arguments.length?(u=i=n,t):i},t.y0=function(n){return arguments.length?(u=n,t):u},t.y1=function(n){return arguments.length?(i=n,t):i},t.defined=function(n){return arguments.length?(o=n,t):o},t.interpolate=function(n){return arguments.length?(c="function"==typeof n?a=n:(a=Dc.get(n)||ki).key,l=a.reverse||a,f=a.closed?"M":"L",t):c},t.tension=function(n){return arguments.length?(s=n,t):s},t}function Wi(n){return n.radius}function $i(n){return[n.x,n.y]}function Xi(n){return function(){var t=n.apply(this,arguments),r=t[0],e=t[1]-Wo;return[r*Math.cos(e),r*Math.sin(e)]}}function Ji(){return 64}function Gi(){return"circle"}function Ki(n){var t=Math.sqrt(n/Yo);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function Qi(n){return function(){var t,r,e;(t=this[n])&&(e=t[r=t.active])&&(e.timer.c=null,e.timer.t=NaN,--t.count?delete t[r]:delete this[n],t.active+=.5,e.event&&e.event.interrupt.call(this,this.__data__,e.index))}}function no(n,t,r){return Co(n,$c),n.namespace=t,n.id=r,n}function to(n,t,r,e){var u=n.id,i=n.namespace;return $(n,"function"==typeof r?function(n,o,a){n[i][u].tween.set(t,e(r.call(n,n.__data__,o,a)))}:(r=e(r),function(n){n[i][u].tween.set(t,r)}))}function ro(n){return null==n&&(n=""),function(){this.textContent=n}}function eo(n){return null==n?"__transition__":"__transition_"+n+"__"}function uo(n,t,r,e,u){function i(n){var t=g.delay;return l.t=t+c,t<=n?o(n-t):void(l.c=o)}function o(r){var u=p.active,i=p[u];i&&(i.timer.c=null,i.timer.t=NaN,--p.count,delete p[u],i.event&&i.event.interrupt.call(n,n.__data__,i.index));for(var o in p)if(+o<e){var d=p[o];d.timer.c=null,d.timer.t=NaN,--p.count,delete p[o]}l.c=a,Rn(function(){return l.c&&a(r||1)&&(l.c=null,l.t=NaN),1},0,c),p.active=e,g.event&&g.event.start.call(n,n.__data__,t),h=[],g.tween.forEach(function(r,e){(e=e.call(n,n.__data__,t))&&h.push(e)}),s=g.ease,f=g.duration}function a(u){for(var i=u/f,o=s(i),a=h.length;a>0;)h[--a].call(n,o);if(i>=1)return g.event&&g.event.end.call(n,n.__data__,t),--p.count?delete p[e]:delete n[r],1}var c,l,f,s,h,p=n[r]||(n[r]={active:0,count:0}),g=p[e];g||(c=u.time,l=Rn(i,0,c),g=p[e]={tween:new d,time:c,timer:l,delay:u.delay,duration:u.duration,ease:u.ease,index:t},u=null,++p.count)}function io(n,t,r){n.attr("transform",function(n){var e=t(n);return"translate("+(isFinite(e)?e:r(n))+",0)"})}function oo(n,t,r){n.attr("transform",function(n){var e=t(n);return"translate(0,"+(isFinite(e)?e:r(n))+")"})}function ao(n){return n.toISOString()}function co(n,t,r){function e(t){return n(t)}function u(n,r){var e=n[1]-n[0],u=e/r,i=ho.bisect(el,u);return i==el.length?[t.year,ei(n.map(function(n){return n/31536e6}),r)[2]]:i?t[u/el[i-1]<el[i]/u?i-1:i]:[ol,ei(n,r)[2]]}return e.invert=function(t){return lo(n.invert(t))},e.domain=function(t){return arguments.length?(n.domain(t),e):n.domain().map(lo)},e.nice=function(n,t){function r(r){return!isNaN(r)&&!n.range(r,lo(+r+1),t).length}var i=e.domain(),o=$u(i),a=null==n?u(o,10):"number"==typeof n&&u(o,n);return a&&(n=a[0],t=a[1]),e.domain(Gu(i,t>1?{floor:function(t){for(;r(t=n.floor(t));)t=lo(t-1);return t},ceil:function(t){for(;r(t=n.ceil(t));)t=lo(+t+1);return t}}:n))},e.ticks=function(n,t){var r=$u(e.domain()),i=null==n?u(r,10):"number"==typeof n?u(r,n):!n.range&&[{range:n},t];return i&&(n=i[0],t=i[1]),n.range(r[0],lo(+r[1]+1),t<1?1:t)},e.tickFormat=function(){return r},e.copy=function(){return co(n.copy(),t,r)},ti(e,n)}function lo(n){return new Date(n)}function fo(n){return JSON.parse(n.responseText)}function so(n){var t=vo.createRange();return t.selectNode(vo.body),t.createContextualFragment(n.responseText)}var ho={version:"3.5.17"},po=[].slice,go=function(n){return po.call(n)},vo=this.document;if(vo)try{go(vo.documentElement.childNodes)[0].nodeType}catch(yo){go=function(n){for(var t=n.length,r=new Array(t);t--;)r[t]=n[t];return r}}if(Date.now||(Date.now=function(){return+new Date}),vo)try{vo.createElement("DIV").style.setProperty("opacity",0,"")}catch(mo){var xo=this.Element.prototype,Mo=xo.setAttribute,bo=xo.setAttributeNS,_o=this.CSSStyleDeclaration.prototype,wo=_o.setProperty;xo.setAttribute=function(n,t){Mo.call(this,n,t+"")},xo.setAttributeNS=function(n,t,r){bo.call(this,n,t,r+"")},_o.setProperty=function(n,t,r){wo.call(this,n,t+"",r)}}ho.ascending=a,ho.descending=function(n,t){return t<n?-1:t>n?1:t>=n?0:NaN},ho.min=function(n,t){var r,e,u=-1,i=n.length;if(1===arguments.length){for(;++u<i;)if(null!=(e=n[u])&&e>=e){r=e;break}for(;++u<i;)null!=(e=n[u])&&r>e&&(r=e)}else{for(;++u<i;)if(null!=(e=t.call(n,n[u],u))&&e>=e){r=e;break}for(;++u<i;)null!=(e=t.call(n,n[u],u))&&r>e&&(r=e)}return r},ho.max=function(n,t){var r,e,u=-1,i=n.length;if(1===arguments.length){for(;++u<i;)if(null!=(e=n[u])&&e>=e){r=e;break}for(;++u<i;)null!=(e=n[u])&&e>r&&(r=e)}else{for(;++u<i;)if(null!=(e=t.call(n,n[u],u))&&e>=e){r=e;break}for(;++u<i;)null!=(e=t.call(n,n[u],u))&&e>r&&(r=e)}return r},ho.extent=function(n,t){var r,e,u,i=-1,o=n.length;if(1===arguments.length){for(;++i<o;)if(null!=(e=n[i])&&e>=e){r=u=e;break}for(;++i<o;)null!=(e=n[i])&&(r>e&&(r=e),u<e&&(u=e))}else{for(;++i<o;)if(null!=(e=t.call(n,n[i],i))&&e>=e){r=u=e;break}for(;++i<o;)null!=(e=t.call(n,n[i],i))&&(r>e&&(r=e),u<e&&(u=e))}return[r,u]},ho.sum=function(n,t){var r,e=0,u=n.length,i=-1;if(1===arguments.length)for(;++i<u;)l(r=+n[i])&&(e+=r);else for(;++i<u;)l(r=+t.call(n,n[i],i))&&(e+=r);return e},ho.mean=function(n,t){var r,e=0,u=n.length,i=-1,o=u;if(1===arguments.length)for(;++i<u;)l(r=c(n[i]))?e+=r:--o;else for(;++i<u;)l(r=c(t.call(n,n[i],i)))?e+=r:--o;if(o)return e/o},ho.quantile=function(n,t){var r=(n.length-1)*t+1,e=Math.floor(r),u=+n[e-1],i=r-e;return i?u+i*(n[e]-u):u},ho.median=function(n,t){var r,e=[],u=n.length,i=-1;if(1===arguments.length)for(;++i<u;)l(r=c(n[i]))&&e.push(r);else for(;++i<u;)l(r=c(t.call(n,n[i],i)))&&e.push(r);if(e.length)return ho.quantile(e.sort(a),.5)},ho.variance=function(n,t){var r,e,u=n.length,i=0,o=0,a=-1,f=0;if(1===arguments.length)for(;++a<u;)l(r=c(n[a]))&&(e=r-i,i+=e/++f,o+=e*(r-i));else for(;++a<u;)l(r=c(t.call(n,n[a],a)))&&(e=r-i,i+=e/++f,o+=e*(r-i));if(f>1)return o/(f-1)},ho.deviation=function(){var n=ho.variance.apply(this,arguments);return n?Math.sqrt(n):n};var So=f(a);ho.bisectLeft=So.left,ho.bisect=ho.bisectRight=So.right,ho.bisector=function(n){return f(1===n.length?function(t,r){return a(n(t),r)}:n)},ho.shuffle=function(n,t,r){(i=arguments.length)<3&&(r=n.length,i<2&&(t=0));for(var e,u,i=r-t;i;)u=Math.random()*i--|0,e=n[i+t],n[i+t]=n[u+t],n[u+t]=e;return n},ho.permute=function(n,t){for(var r=t.length,e=new Array(r);r--;)e[r]=n[t[r]];return e},ho.pairs=function(n){for(var t,r=0,e=n.length-1,u=n[0],i=new Array(e<0?0:e);r<e;)i[r]=[t=u,u=n[++r]];return i},ho.transpose=function(n){if(!(u=n.length))return[];for(var t=-1,r=ho.min(n,s),e=new Array(r);++t<r;)for(var u,i=-1,o=e[t]=new Array(u);++i<u;)o[i]=n[i][t];return e},ho.zip=function(){return ho.transpose(arguments)},ho.keys=function(n){var t=[];for(var r in n)t.push(r);return t},ho.values=function(n){var t=[];for(var r in n)t.push(n[r]);return t},ho.entries=function(n){var t=[];for(var r in n)t.push({key:r,value:n[r]});return t},ho.merge=function(n){for(var t,r,e,u=n.length,i=-1,o=0;++i<u;)o+=n[i].length;for(r=new Array(o);--u>=0;)for(e=n[u],t=e.length;--t>=0;)r[--o]=e[t];return r};var ko=Math.abs;ho.range=function(n,t,r){if(arguments.length<3&&(r=1,arguments.length<2&&(t=n,n=0)),(t-n)/r===1/0)throw new Error("infinite range");var e,u=[],i=h(ko(r)),o=-1;if(n*=i,t*=i,r*=i,r<0)for(;(e=n+r*++o)>t;)u.push(e/i);else for(;(e=n+r*++o)<t;)u.push(e/i);return u},ho.map=function(n,t){var r=new d;if(n instanceof d)n.forEach(function(n,t){r.set(n,t)});else if(Array.isArray(n)){var e,u=-1,i=n.length;if(1===arguments.length)for(;++u<i;)r.set(u,n[u]);else for(;++u<i;)r.set(t.call(n,e=n[u],u),e)}else for(var o in n)r.set(o,n[o]);return r};var Eo="__proto__",jo="\0";p(d,{has:y,get:function(n){return this._[g(n)]},set:function(n,t){return this._[g(n)]=t},remove:m,keys:x,values:function(){var n=[];for(var t in this._)n.push(this._[t]);return n},entries:function(){var n=[];for(var t in this._)n.push({key:v(t),value:this._[t]});return n},size:M,empty:b,forEach:function(n){for(var t in this._)n.call(this,v(t),this._[t])}}),ho.nest=function(){function n(t,o,a){if(a>=i.length)return e?e.call(u,o):r?o.sort(r):o;for(var c,l,f,s,h=-1,p=o.length,g=i[a++],v=new d;++h<p;)(s=v.get(c=g(l=o[h])))?s.push(l):v.set(c,[l]);return t?(l=t(),f=function(r,e){l.set(r,n(t,e,a))}):(l={},f=function(r,e){l[r]=n(t,e,a)}),v.forEach(f),l}function t(n,r){if(r>=i.length)return n;var e=[],u=o[r++];return n.forEach(function(n,u){e.push({key:n,values:t(u,r)})}),u?e.sort(function(n,t){return u(n.key,t.key)}):e}var r,e,u={},i=[],o=[];return u.map=function(t,r){return n(r,t,0)},u.entries=function(r){return t(n(ho.map,r,0),0)},u.key=function(n){return i.push(n),u},u.sortKeys=function(n){return o[i.length-1]=n,u},u.sortValues=function(n){return r=n,u},u.rollup=function(n){return e=n,u},u},ho.set=function(n){var t=new _;if(n)for(var r=0,e=n.length;r<e;++r)t.add(n[r]);return t},p(_,{has:y,add:function(n){return this._[g(n+="")]=!0,n},remove:m,values:x,size:M,empty:b,forEach:function(n){for(var t in this._)n.call(this,v(t))}}),ho.behavior={},ho.rebind=function(n,t){for(var r,e=1,u=arguments.length;++e<u;)n[r=arguments[e]]=S(n,t,t[r]);return n};var No=["webkit","ms","moz","Moz","o","O"];ho.dispatch=function(){for(var n=new j,t=-1,r=arguments.length;++t<r;)n[arguments[t]]=N(n);return n},j.prototype.on=function(n,t){var r=n.indexOf("."),e="";if(r>=0&&(e=n.slice(r+1),n=n.slice(0,r)),n)return arguments.length<2?this[n].on(e):this[n].on(e,t);if(2===arguments.length){if(null==t)for(n in this)this.hasOwnProperty(n)&&this[n].on(e,null);return this}},ho.event=null,ho.requote=function(n){return n.replace(Ao,"\\$&")};var Ao=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Co={}.__proto__?function(n,t){n.__proto__=t}:function(n,t){for(var r in t)n[r]=t[r]},Oo=function(n,t){return t.querySelector(n)},zo=function(n,t){return t.querySelectorAll(n)},To=function(n,t){var r=n.matches||n[k(n,"matchesSelector")];return(To=function(n,t){return r.call(n,t)})(n,t)};"function"==typeof Sizzle&&(Oo=function(n,t){return Sizzle(n,t)[0]||null},zo=Sizzle,To=Sizzle.matchesSelector),ho.selection=function(){return ho.select(vo.documentElement)};var Lo=ho.selection.prototype=[];Lo.select=function(n){var t,r,e,u,i=[];n=T(n);for(var o=-1,a=this.length;++o<a;){i.push(t=[]),t.parentNode=(e=this[o]).parentNode;for(var c=-1,l=e.length;++c<l;)(u=e[c])?(t.push(r=n.call(u,u.__data__,c,o)),r&&"__data__"in u&&(r.__data__=u.__data__)):t.push(null)}return z(i)},Lo.selectAll=function(n){var t,r,e=[];n=L(n);for(var u=-1,i=this.length;++u<i;)for(var o=this[u],a=-1,c=o.length;++a<c;)(r=o[a])&&(e.push(t=go(n.call(r,r.__data__,a,u))),t.parentNode=r);return z(e)};var qo="http://www.w3.org/1999/xhtml",Po={svg:"http://www.w3.org/2000/svg",xhtml:qo,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};ho.ns={prefix:Po,qualify:function(n){var t=n.indexOf(":"),r=n;return t>=0&&"xmlns"!==(r=n.slice(0,t))&&(n=n.slice(t+1)),Po.hasOwnProperty(r)?{space:Po[r],local:n}:n}},Lo.attr=function(n,t){if(arguments.length<2){if("string"==typeof n){var r=this.node();return n=ho.ns.qualify(n),n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}for(t in n)this.each(q(t,n[t]));return this}return this.each(q(n,t))},Lo.classed=function(n,t){if(arguments.length<2){if("string"==typeof n){var r=this.node(),e=(n=D(n)).length,u=-1;if(t=r.classList){for(;++u<e;)if(!t.contains(n[u]))return!1}else for(t=r.getAttribute("class");++u<e;)if(!R(n[u]).test(t))return!1;return!0}for(t in n)this.each(U(t,n[t]));return this}return this.each(U(n,t))},Lo.style=function(n,t,r){var e=arguments.length;if(e<3){if("string"!=typeof n){e<2&&(t="");for(r in n)this.each(F(r,n[r],t));return this}if(e<2){var u=this.node();return o(u).getComputedStyle(u,null).getPropertyValue(n)}r=""}return this.each(F(n,t,r))},Lo.property=function(n,t){if(arguments.length<2){if("string"==typeof n)return this.node()[n];for(t in n)this.each(H(t,n[t]));return this}return this.each(H(n,t))},Lo.text=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.textContent=null==t?"":t}:null==n?function(){this.textContent=""}:function(){this.textContent=n}):this.node().textContent},Lo.html=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.innerHTML=null==t?"":t}:null==n?function(){this.innerHTML=""}:function(){this.innerHTML=n}):this.node().innerHTML},Lo.append=function(n){return n=B(n),this.select(function(){return this.appendChild(n.apply(this,arguments))})},Lo.insert=function(n,t){return n=B(n),t=T(t),this.select(function(){return this.insertBefore(n.apply(this,arguments),t.apply(this,arguments)||null)})},Lo.remove=function(){return this.each(Y)},Lo.data=function(n,t){function r(n,r){var e,u,i,o=n.length,f=r.length,s=Math.min(o,f),h=new Array(f),p=new Array(f),g=new Array(o);if(t){var v,y=new d,m=new Array(o);for(e=-1;++e<o;)(u=n[e])&&(y.has(v=t.call(u,u.__data__,e))?g[e]=u:y.set(v,u),m[e]=v);for(e=-1;++e<f;)(u=y.get(v=t.call(r,i=r[e],e)))?u!==!0&&(h[e]=u,u.__data__=i):p[e]=V(i),y.set(v,!0);for(e=-1;++e<o;)e in m&&y.get(m[e])!==!0&&(g[e]=n[e])}else{for(e=-1;++e<s;)u=n[e],i=r[e],u?(u.__data__=i,h[e]=u):p[e]=V(i);for(;e<f;++e)p[e]=V(r[e]);for(;e<o;++e)g[e]=n[e]}p.update=h,p.parentNode=h.parentNode=g.parentNode=n.parentNode,a.push(p),c.push(h),l.push(g)}var e,u,i=-1,o=this.length;if(!arguments.length){for(n=new Array(o=(e=this[0]).length);++i<o;)(u=e[i])&&(n[i]=u.__data__);return n}var a=X([]),c=z([]),l=z([]);if("function"==typeof n)for(;++i<o;)r(e=this[i],n.call(e,e.parentNode.__data__,i));else for(;++i<o;)r(e=this[i],n);return c.enter=function(){return a},c.exit=function(){return l},c},Lo.datum=function(n){return arguments.length?this.property("__data__",n):this.property("__data__")},Lo.filter=function(n){var t,r,e,u=[];"function"!=typeof n&&(n=Z(n));for(var i=0,o=this.length;i<o;i++){u.push(t=[]),t.parentNode=(r=this[i]).parentNode;for(var a=0,c=r.length;a<c;a++)(e=r[a])&&n.call(e,e.__data__,a,i)&&t.push(e)}return z(u)},Lo.order=function(){for(var n=-1,t=this.length;++n<t;)for(var r,e=this[n],u=e.length-1,i=e[u];--u>=0;)(r=e[u])&&(i&&i!==r.nextSibling&&i.parentNode.insertBefore(r,i),i=r);return this},Lo.sort=function(n){n=W.apply(this,arguments);for(var t=-1,r=this.length;++t<r;)this[t].sort(n);return this.order()},Lo.each=function(n){return $(this,function(t,r,e){n.call(t,t.__data__,r,e)})},Lo.call=function(n){var t=go(arguments);return n.apply(t[0]=this,t),this},Lo.empty=function(){return!this.node()},Lo.node=function(){for(var n=0,t=this.length;n<t;n++)for(var r=this[n],e=0,u=r.length;e<u;e++){var i=r[e];if(i)return i}return null},Lo.size=function(){var n=0;return $(this,function(){++n}),n};var Ro=[];ho.selection.enter=X,ho.selection.enter.prototype=Ro,Ro.append=Lo.append,Ro.empty=Lo.empty,Ro.node=Lo.node,Ro.call=Lo.call,Ro.size=Lo.size,Ro.select=function(n){for(var t,r,e,u,i,o=[],a=-1,c=this.length;++a<c;){e=(u=this[a]).update,o.push(t=[]),t.parentNode=u.parentNode;for(var l=-1,f=u.length;++l<f;)(i=u[l])?(t.push(e[l]=r=n.call(u.parentNode,i.__data__,l,a)),r.__data__=i.__data__):t.push(null)}return z(o)},Ro.insert=function(n,t){return arguments.length<2&&(t=J(this)),Lo.insert.call(this,n,t)},ho.select=function(n){var t;return"string"==typeof n?(t=[Oo(n,vo)],t.parentNode=vo.documentElement):(t=[n],t.parentNode=i(n)),z([t])},ho.selectAll=function(n){var t;return"string"==typeof n?(t=go(zo(n,vo)),t.parentNode=vo.documentElement):(t=go(n),t.parentNode=null),z([t])},Lo.on=function(n,t,r){var e=arguments.length;if(e<3){if("string"!=typeof n){e<2&&(t=!1);for(r in n)this.each(G(r,n[r],t));return this}if(e<2)return(e=this.node()["__on"+n])&&e._;r=!1}return this.each(G(n,t,r))};var Do=ho.map({mouseenter:"mouseover",mouseleave:"mouseout"});vo&&Do.forEach(function(n){"on"+n in vo&&Do.remove(n)});var Uo,Io=0;ho.mouse=function(n){return tn(n,C())};var Fo=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;ho.touch=function(n,t,r){
5if(arguments.length<3&&(r=t,t=C().changedTouches),t)for(var e,u=0,i=t.length;u<i;++u)if((e=t[u]).identifier===r)return tn(n,e)},ho.behavior.drag=function(){function n(){this.on("mousedown.drag",u).on("touchstart.drag",i)}function t(n,t,u,i,o){return function(){function a(){var n,r,e=t(h,g);e&&(n=e[0]-x[0],r=e[1]-x[1],d|=n|r,x=e,p({type:"drag",x:e[0]+l[0],y:e[1]+l[1],dx:n,dy:r}))}function c(){t(h,g)&&(y.on(i+v,null).on(o+v,null),m(d),p({type:"dragend"}))}var l,f=this,s=ho.event.target.correspondingElement||ho.event.target,h=f.parentNode,p=r.of(f,arguments),d=0,g=n(),v=".drag"+(null==g?"":"-"+g),y=ho.select(u(s)).on(i+v,a).on(o+v,c),m=nn(s),x=t(h,g);e?(l=e.apply(f,arguments),l=[l.x-x[0],l.y-x[1]]):l=[0,0],p({type:"dragstart"})}}var r=O(n,"drag","dragstart","dragend"),e=null,u=t(E,ho.mouse,o,"mousemove","mouseup"),i=t(rn,ho.touch,w,"touchmove","touchend");return n.origin=function(t){return arguments.length?(e=t,n):e},ho.rebind(n,r,"on")},ho.touches=function(n,t){return arguments.length<2&&(t=C().touches),t?go(t).map(function(t){var r=tn(n,t);return r.identifier=t.identifier,r}):[]};var Ho=1e-6,Bo=Ho*Ho,Yo=Math.PI,Vo=2*Yo,Zo=Vo-Ho,Wo=Yo/2,$o=Yo/180,Xo=180/Yo,Jo=Math.SQRT2,Go=2,Ko=4;ho.interpolateZoom=function(n,t){var r,e,u=n[0],i=n[1],o=n[2],a=t[0],c=t[1],l=t[2],f=a-u,s=c-i,h=f*f+s*s;if(h<Bo)e=Math.log(l/o)/Jo,r=function(n){return[u+n*f,i+n*s,o*Math.exp(Jo*n*e)]};else{var p=Math.sqrt(h),d=(l*l-o*o+Ko*h)/(2*o*Go*p),g=(l*l-o*o-Ko*h)/(2*l*Go*p),v=Math.log(Math.sqrt(d*d+1)-d),y=Math.log(Math.sqrt(g*g+1)-g);e=(y-v)/Jo,r=function(n){var t=n*e,r=ln(v),a=o/(Go*p)*(r*fn(Jo*t+v)-cn(v));return[u+a*f,i+a*s,o*r/ln(Jo*t+v)]}}return r.duration=1e3*e,r},ho.behavior.zoom=function(){function n(n){n.on(C,s).on(na+".zoom",p).on("dblclick.zoom",d).on(L,h)}function t(n){return[(n[0]-S.x)/S.k,(n[1]-S.y)/S.k]}function r(n){return[n[0]*S.k+S.x,n[1]*S.k+S.y]}function e(n){S.k=Math.max(E[0],Math.min(E[1],n))}function u(n,t){t=r(t),S.x+=n[0]-t[0],S.y+=n[1]-t[1]}function i(t,r,i,o){t.__chart__={x:S.x,y:S.y,k:S.k},e(Math.pow(2,o)),u(v=r,i),t=ho.select(t),j>0&&(t=t.transition().duration(j)),t.call(n.event)}function a(){b&&b.domain(M.range().map(function(n){return(n-S.x)/S.k}).map(M.invert)),w&&w.domain(_.range().map(function(n){return(n-S.y)/S.k}).map(_.invert))}function c(n){N++||n({type:"zoomstart"})}function l(n){a(),n({type:"zoom",scale:S.k,translate:[S.x,S.y]})}function f(n){--N||(n({type:"zoomend"}),v=null)}function s(){function n(){a=1,u(ho.mouse(e),h),l(i)}function r(){s.on(z,null).on(T,null),p(a),f(i)}var e=this,i=q.of(e,arguments),a=0,s=ho.select(o(e)).on(z,n).on(T,r),h=t(ho.mouse(e)),p=nn(e);Wc.call(e),c(i)}function h(){function n(){var n=ho.touches(d);return p=S.k,n.forEach(function(n){n.identifier in v&&(v[n.identifier]=t(n))}),n}function r(){var t=ho.event.target;ho.select(t).on(M,o).on(b,a),_.push(t);for(var r=ho.event.changedTouches,e=0,u=r.length;e<u;++e)v[r[e].identifier]=null;var c=n(),l=Date.now();if(1===c.length){if(l-x<500){var f=c[0];i(d,f,v[f.identifier],Math.floor(Math.log(S.k)/Math.LN2)+1),A()}x=l}else if(c.length>1){var f=c[0],s=c[1],h=f[0]-s[0],p=f[1]-s[1];y=h*h+p*p}}function o(){var n,t,r,i,o=ho.touches(d);Wc.call(d);for(var a=0,c=o.length;a<c;++a,i=null)if(r=o[a],i=v[r.identifier]){if(t)break;n=r,t=i}if(i){var f=(f=r[0]-n[0])*f+(f=r[1]-n[1])*f,s=y&&Math.sqrt(f/y);n=[(n[0]+r[0])/2,(n[1]+r[1])/2],t=[(t[0]+i[0])/2,(t[1]+i[1])/2],e(s*p)}x=null,u(n,t),l(g)}function a(){if(ho.event.touches.length){for(var t=ho.event.changedTouches,r=0,e=t.length;r<e;++r)delete v[t[r].identifier];for(var u in v)return void n()}ho.selectAll(_).on(m,null),w.on(C,s).on(L,h),k(),f(g)}var p,d=this,g=q.of(d,arguments),v={},y=0,m=".zoom-"+ho.event.changedTouches[0].identifier,M="touchmove"+m,b="touchend"+m,_=[],w=ho.select(d),k=nn(d);r(),c(g),w.on(C,null).on(L,r)}function p(){var n=q.of(this,arguments);m?clearTimeout(m):(Wc.call(this),g=t(v=y||ho.mouse(this)),c(n)),m=setTimeout(function(){m=null,f(n)},50),A(),e(Math.pow(2,.002*Qo())*S.k),u(v,g),l(n)}function d(){var n=ho.mouse(this),r=Math.log(S.k)/Math.LN2;i(this,n,t(n),ho.event.shiftKey?Math.ceil(r)-1:Math.floor(r)+1)}var g,v,y,m,x,M,b,_,w,S={x:0,y:0,k:1},k=[960,500],E=ta,j=250,N=0,C="mousedown.zoom",z="mousemove.zoom",T="mouseup.zoom",L="touchstart.zoom",q=O(n,"zoomstart","zoom","zoomend");return na||(na="onwheel"in vo?(Qo=function(){return-ho.event.deltaY*(ho.event.deltaMode?120:1)},"wheel"):"onmousewheel"in vo?(Qo=function(){return ho.event.wheelDelta},"mousewheel"):(Qo=function(){return-ho.event.detail},"MozMousePixelScroll")),n.event=function(n){n.each(function(){var n=q.of(this,arguments),t=S;Vc?ho.select(this).transition().each("start.zoom",function(){S=this.__chart__||{x:0,y:0,k:1},c(n)}).tween("zoom:zoom",function(){var r=k[0],e=k[1],u=v?v[0]:r/2,i=v?v[1]:e/2,o=ho.interpolateZoom([(u-S.x)/S.k,(i-S.y)/S.k,r/S.k],[(u-t.x)/t.k,(i-t.y)/t.k,r/t.k]);return function(t){var e=o(t),a=r/e[2];this.__chart__=S={x:u-e[0]*a,y:i-e[1]*a,k:a},l(n)}}).each("interrupt.zoom",function(){f(n)}).each("end.zoom",function(){f(n)}):(this.__chart__=S,c(n),l(n),f(n))})},n.translate=function(t){return arguments.length?(S={x:+t[0],y:+t[1],k:S.k},a(),n):[S.x,S.y]},n.scale=function(t){return arguments.length?(S={x:S.x,y:S.y,k:null},e(+t),a(),n):S.k},n.scaleExtent=function(t){return arguments.length?(E=null==t?ta:[+t[0],+t[1]],n):E},n.center=function(t){return arguments.length?(y=t&&[+t[0],+t[1]],n):y},n.size=function(t){return arguments.length?(k=t&&[+t[0],+t[1]],n):k},n.duration=function(t){return arguments.length?(j=+t,n):j},n.x=function(t){return arguments.length?(b=t,M=t.copy(),S={x:0,y:0,k:1},n):b},n.y=function(t){return arguments.length?(w=t,_=t.copy(),S={x:0,y:0,k:1},n):w},ho.rebind(n,q,"on")};var Qo,na,ta=[0,1/0];ho.color=hn,hn.prototype.toString=function(){return this.rgb()+""},ho.hsl=pn;var ra=pn.prototype=new hn;ra.brighter=function(n){return n=Math.pow(.7,arguments.length?n:1),new pn(this.h,this.s,this.l/n)},ra.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new pn(this.h,this.s,n*this.l)},ra.rgb=function(){return dn(this.h,this.s,this.l)},ho.hcl=gn;var ea=gn.prototype=new hn;ea.brighter=function(n){return new gn(this.h,this.c,Math.min(100,this.l+ua*(arguments.length?n:1)))},ea.darker=function(n){return new gn(this.h,this.c,Math.max(0,this.l-ua*(arguments.length?n:1)))},ea.rgb=function(){return vn(this.h,this.c,this.l).rgb()},ho.lab=yn;var ua=18,ia=.95047,oa=1,aa=1.08883,ca=yn.prototype=new hn;ca.brighter=function(n){return new yn(Math.min(100,this.l+ua*(arguments.length?n:1)),this.a,this.b)},ca.darker=function(n){return new yn(Math.max(0,this.l-ua*(arguments.length?n:1)),this.a,this.b)},ca.rgb=function(){return mn(this.l,this.a,this.b)},ho.rgb=wn;var la=wn.prototype=new hn;la.brighter=function(n){n=Math.pow(.7,arguments.length?n:1);var t=this.r,r=this.g,e=this.b,u=30;return t||r||e?(t&&t<u&&(t=u),r&&r<u&&(r=u),e&&e<u&&(e=u),new wn(Math.min(255,t/n),Math.min(255,r/n),Math.min(255,e/n))):new wn(u,u,u)},la.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new wn(n*this.r,n*this.g,n*this.b)},la.hsl=function(){return Nn(this.r,this.g,this.b)},la.toString=function(){return"#"+En(this.r)+En(this.g)+En(this.b)};var fa=ho.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});fa.forEach(function(n,t){fa.set(n,Sn(t))}),ho.functor=zn,ho.xhr=Tn(w),ho.dsv=function(n,t){function r(n,r,i){arguments.length<3&&(i=r,r=null);var o=Ln(n,t,null==r?e:u(r),i);return o.row=function(n){return arguments.length?o.response(null==(r=n)?e:u(n)):r},o}function e(n){return r.parse(n.responseText)}function u(n){return function(t){return r.parse(t.responseText,n)}}function i(t){return t.map(o).join(n)}function o(n){return a.test(n)?'"'+n.replace(/\"/g,'""')+'"':n}var a=new RegExp('["'+n+"\n]"),c=n.charCodeAt(0);return r.parse=function(n,t){var e;return r.parseRows(n,function(n,r){if(e)return e(n,r-1);var u=new Function("d","return {"+n.map(function(n,t){return JSON.stringify(n)+": d["+t+"]"}).join(",")+"}");e=t?function(n,r){return t(u(n),r)}:u})},r.parseRows=function(n,t){function r(){if(f>=l)return o;if(u)return u=!1,i;var t=f;if(34===n.charCodeAt(t)){for(var r=t;r++<l;)if(34===n.charCodeAt(r)){if(34!==n.charCodeAt(r+1))break;++r}f=r+2;var e=n.charCodeAt(r+1);return 13===e?(u=!0,10===n.charCodeAt(r+2)&&++f):10===e&&(u=!0),n.slice(t+1,r).replace(/""/g,'"')}for(;f<l;){var e=n.charCodeAt(f++),a=1;if(10===e)u=!0;else if(13===e)u=!0,10===n.charCodeAt(f)&&(++f,++a);else if(e!==c)continue;return n.slice(t,f-a)}return n.slice(t)}for(var e,u,i={},o={},a=[],l=n.length,f=0,s=0;(e=r())!==o;){for(var h=[];e!==i&&e!==o;)h.push(e),e=r();t&&null==(h=t(h,s++))||a.push(h)}return a},r.format=function(t){if(Array.isArray(t[0]))return r.formatRows(t);var e=new _,u=[];return t.forEach(function(n){for(var t in n)e.has(t)||u.push(e.add(t))}),[u.map(o).join(n)].concat(t.map(function(t){return u.map(function(n){return o(t[n])}).join(n)})).join("\n")},r.formatRows=function(n){return n.map(i).join("\n")},r},ho.csv=ho.dsv(",","text/csv"),ho.tsv=ho.dsv("\t","text/tab-separated-values");var sa,ha,pa,da,ga=this[k(this,"requestAnimationFrame")]||function(n){setTimeout(n,17)};ho.timer=function(){Rn.apply(this,arguments)},ho.timer.flush=function(){Un(),In()},ho.round=function(n,t){return t?Math.round(n*(t=Math.pow(10,t)))/t:Math.round(n)};var va=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(Hn);ho.formatPrefix=function(n,t){var r=0;return(n=+n)&&(n<0&&(n*=-1),t&&(n=ho.round(n,Fn(n,t))),r=1+Math.floor(1e-12+Math.log(n)/Math.LN10),r=Math.max(-24,Math.min(24,3*Math.floor((r-1)/3)))),va[8+r/3]};var ya=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,ma=ho.map({b:function(n){return n.toString(2)},c:function(n){return String.fromCharCode(n)},o:function(n){return n.toString(8)},x:function(n){return n.toString(16)},X:function(n){return n.toString(16).toUpperCase()},g:function(n,t){return n.toPrecision(t)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},r:function(n,t){return(n=ho.round(n,Fn(n,t))).toFixed(Math.max(0,Math.min(20,Fn(n*(1+1e-15),t))))}}),xa=ho.time={},Ma=Date;Vn.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(){ba.setUTCDate.apply(this._,arguments)},setDay:function(){ba.setUTCDay.apply(this._,arguments)},setFullYear:function(){ba.setUTCFullYear.apply(this._,arguments)},setHours:function(){ba.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){ba.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){ba.setUTCMinutes.apply(this._,arguments)},setMonth:function(){ba.setUTCMonth.apply(this._,arguments)},setSeconds:function(){ba.setUTCSeconds.apply(this._,arguments)},setTime:function(){ba.setTime.apply(this._,arguments)}};var ba=Date.prototype;xa.year=Zn(function(n){return n=xa.day(n),n.setMonth(0,1),n},function(n,t){n.setFullYear(n.getFullYear()+t)},function(n){return n.getFullYear()}),xa.years=xa.year.range,xa.years.utc=xa.year.utc.range,xa.day=Zn(function(n){var t=new Ma(2e3,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t},function(n,t){n.setDate(n.getDate()+t)},function(n){return n.getDate()-1}),xa.days=xa.day.range,xa.days.utc=xa.day.utc.range,xa.dayOfYear=function(n){var t=xa.year(n);return Math.floor((n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(n,t){t=7-t;var r=xa[n]=Zn(function(n){return(n=xa.day(n)).setDate(n.getDate()-(n.getDay()+t)%7),n},function(n,t){n.setDate(n.getDate()+7*Math.floor(t))},function(n){var r=xa.year(n).getDay();return Math.floor((xa.dayOfYear(n)+(r+t)%7)/7)-(r!==t)});xa[n+"s"]=r.range,xa[n+"s"].utc=r.utc.range,xa[n+"OfYear"]=function(n){var r=xa.year(n).getDay();return Math.floor((xa.dayOfYear(n)+(r+t)%7)/7)}}),xa.week=xa.sunday,xa.weeks=xa.sunday.range,xa.weeks.utc=xa.sunday.utc.range,xa.weekOfYear=xa.sundayOfYear;var _a={"-":"",_:" ",0:"0"},wa=/^\s*\d+/,Sa=/^%/;ho.locale=function(n){return{numberFormat:Bn(n),timeFormat:$n(n)}};var ka=ho.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});ho.format=ka.numberFormat,ho.geo={},gt.prototype={s:0,t:0,add:function(n){vt(n,this.t,Ea),vt(Ea.s,this.s,this),this.s?this.t+=Ea.t:this.s=Ea.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var Ea=new gt;ho.geo.stream=function(n,t){n&&ja.hasOwnProperty(n.type)?ja[n.type](n,t):yt(n,t)};var ja={Feature:function(n,t){yt(n.geometry,t)},FeatureCollection:function(n,t){for(var r=n.features,e=-1,u=r.length;++e<u;)yt(r[e].geometry,t)}},Na={Sphere:function(n,t){t.sphere()},Point:function(n,t){n=n.coordinates,t.point(n[0],n[1],n[2])},MultiPoint:function(n,t){for(var r=n.coordinates,e=-1,u=r.length;++e<u;)n=r[e],t.point(n[0],n[1],n[2])},LineString:function(n,t){mt(n.coordinates,t,0)},MultiLineString:function(n,t){for(var r=n.coordinates,e=-1,u=r.length;++e<u;)mt(r[e],t,0)},Polygon:function(n,t){xt(n.coordinates,t)},MultiPolygon:function(n,t){for(var r=n.coordinates,e=-1,u=r.length;++e<u;)xt(r[e],t)},GeometryCollection:function(n,t){for(var r=n.geometries,e=-1,u=r.length;++e<u;)yt(r[e],t)}};ho.geo.area=function(n){return Aa=0,ho.geo.stream(n,Oa),Aa};var Aa,Ca=new gt,Oa={sphere:function(){Aa+=4*Yo},point:E,lineStart:E,lineEnd:E,polygonStart:function(){Ca.reset(),Oa.lineStart=Mt},polygonEnd:function(){var n=2*Ca;Aa+=n<0?4*Yo+n:n,Oa.lineStart=Oa.lineEnd=Oa.point=E}};ho.geo.bounds=function(){function n(n,t){x.push(M=[f=n,h=n]),t<s&&(s=t),t>p&&(p=t)}function t(t,r){var e=bt([t*$o,r*$o]);if(y){var u=wt(y,e),i=[u[1],-u[0],0],o=wt(i,u);Et(o),o=jt(o);var c=t-d,l=c>0?1:-1,g=o[0]*Xo*l,v=ko(c)>180;if(v^(l*d<g&&g<l*t)){var m=o[1]*Xo;m>p&&(p=m)}else if(g=(g+360)%360-180,v^(l*d<g&&g<l*t)){var m=-o[1]*Xo;m<s&&(s=m)}else r<s&&(s=r),r>p&&(p=r);v?t<d?a(f,t)>a(f,h)&&(h=t):a(t,h)>a(f,h)&&(f=t):h>=f?(t<f&&(f=t),t>h&&(h=t)):t>d?a(f,t)>a(f,h)&&(h=t):a(t,h)>a(f,h)&&(f=t)}else n(t,r);y=e,d=t}function r(){b.point=t}function e(){M[0]=f,M[1]=h,b.point=n,y=null}function u(n,r){if(y){var e=n-d;m+=ko(e)>180?e+(e>0?360:-360):e}else g=n,v=r;Oa.point(n,r),t(n,r)}function i(){Oa.lineStart()}function o(){u(g,v),Oa.lineEnd(),ko(m)>Ho&&(f=-(h=180)),M[0]=f,M[1]=h,y=null}function a(n,t){return(t-=n)<0?t+360:t}function c(n,t){return n[0]-t[0]}function l(n,t){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}var f,s,h,p,d,g,v,y,m,x,M,b={point:n,lineStart:r,lineEnd:e,polygonStart:function(){b.point=u,b.lineStart=i,b.lineEnd=o,m=0,Oa.polygonStart()},polygonEnd:function(){Oa.polygonEnd(),b.point=n,b.lineStart=r,b.lineEnd=e,Ca<0?(f=-(h=180),s=-(p=90)):m>Ho?p=90:m<-Ho&&(s=-90),M[0]=f,M[1]=h}};return function(n){p=h=-(f=s=1/0),x=[],ho.geo.stream(n,b);var t=x.length;if(t){x.sort(c);for(var r,e=1,u=x[0],i=[u];e<t;++e)r=x[e],l(r[0],u)||l(r[1],u)?(a(u[0],r[1])>a(u[0],u[1])&&(u[1]=r[1]),a(r[0],u[1])>a(u[0],u[1])&&(u[0]=r[0])):i.push(u=r);for(var o,r,d=-(1/0),t=i.length-1,e=0,u=i[t];e<=t;u=r,++e)r=i[e],(o=a(u[1],r[0]))>d&&(d=o,f=r[0],h=u[1])}return x=M=null,f===1/0||s===1/0?[[NaN,NaN],[NaN,NaN]]:[[f,s],[h,p]]}}(),ho.geo.centroid=function(n){za=Ta=La=qa=Pa=Ra=Da=Ua=Ia=Fa=Ha=0,ho.geo.stream(n,Ba);var t=Ia,r=Fa,e=Ha,u=t*t+r*r+e*e;return u<Bo&&(t=Ra,r=Da,e=Ua,Ta<Ho&&(t=La,r=qa,e=Pa),u=t*t+r*r+e*e,u<Bo)?[NaN,NaN]:[Math.atan2(r,t)*Xo,an(e/Math.sqrt(u))*Xo]};var za,Ta,La,qa,Pa,Ra,Da,Ua,Ia,Fa,Ha,Ba={sphere:E,point:At,lineStart:Ot,lineEnd:zt,polygonStart:function(){Ba.lineStart=Tt},polygonEnd:function(){Ba.lineStart=Ot}},Ya=Ut(qt,Bt,Vt,[-Yo,-Yo/2]),Va=1e9;ho.geo.clipExtent=function(){var n,t,r,e,u,i,o={stream:function(n){return u&&(u.valid=!1),u=i(n),u.valid=!0,u},extent:function(a){return arguments.length?(i=Xt(n=+a[0][0],t=+a[0][1],r=+a[1][0],e=+a[1][1]),u&&(u.valid=!1,u=null),o):[[n,t],[r,e]]}};return o.extent([[0,0],[960,500]])},(ho.geo.conicEqualArea=function(){return Jt(Gt)}).raw=Gt,ho.geo.albers=function(){return ho.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},ho.geo.albersUsa=function(){function n(n){var i=n[0],o=n[1];return t=null,r(i,o),t||(e(i,o),t)||u(i,o),t}var t,r,e,u,i=ho.geo.albers(),o=ho.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a=ho.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(n,r){t=[n,r]}};return n.invert=function(n){var t=i.scale(),r=i.translate(),e=(n[0]-r[0])/t,u=(n[1]-r[1])/t;return(u>=.12&&u<.234&&e>=-.425&&e<-.214?o:u>=.166&&u<.234&&e>=-.214&&e<-.115?a:i).invert(n)},n.stream=function(n){var t=i.stream(n),r=o.stream(n),e=a.stream(n);return{point:function(n,u){t.point(n,u),r.point(n,u),e.point(n,u)},sphere:function(){t.sphere(),r.sphere(),e.sphere()},lineStart:function(){t.lineStart(),r.lineStart(),e.lineStart()},lineEnd:function(){t.lineEnd(),r.lineEnd(),e.lineEnd()},polygonStart:function(){t.polygonStart(),r.polygonStart(),e.polygonStart()},polygonEnd:function(){t.polygonEnd(),r.polygonEnd(),e.polygonEnd()}}},n.precision=function(t){return arguments.length?(i.precision(t),o.precision(t),a.precision(t),n):i.precision()},n.scale=function(t){return arguments.length?(i.scale(t),o.scale(.35*t),a.scale(t),n.translate(i.translate())):i.scale()},n.translate=function(t){if(!arguments.length)return i.translate();var l=i.scale(),f=+t[0],s=+t[1];return r=i.translate(t).clipExtent([[f-.455*l,s-.238*l],[f+.455*l,s+.238*l]]).stream(c).point,e=o.translate([f-.307*l,s+.201*l]).clipExtent([[f-.425*l+Ho,s+.12*l+Ho],[f-.214*l-Ho,s+.234*l-Ho]]).stream(c).point,u=a.translate([f-.205*l,s+.212*l]).clipExtent([[f-.214*l+Ho,s+.166*l+Ho],[f-.115*l-Ho,s+.234*l-Ho]]).stream(c).point,n},n.scale(1070)};var Za,Wa,$a,Xa,Ja,Ga,Ka={point:E,lineStart:E,lineEnd:E,polygonStart:function(){Wa=0,Ka.lineStart=Kt},polygonEnd:function(){Ka.lineStart=Ka.lineEnd=Ka.point=E,Za+=ko(Wa/2)}},Qa={point:Qt,lineStart:E,lineEnd:E,polygonStart:E,polygonEnd:E},nc={point:rr,lineStart:er,lineEnd:ur,polygonStart:function(){nc.lineStart=ir},polygonEnd:function(){nc.point=rr,nc.lineStart=er,nc.lineEnd=ur}};ho.geo.path=function(){function n(n){return n&&("function"==typeof a&&i.pointRadius(+a.apply(this,arguments)),o&&o.valid||(o=u(i)),ho.geo.stream(n,o)),i.result()}function t(){return o=null,n}var r,e,u,i,o,a=4.5;return n.area=function(n){return Za=0,ho.geo.stream(n,u(Ka)),Za},n.centroid=function(n){return La=qa=Pa=Ra=Da=Ua=Ia=Fa=Ha=0,ho.geo.stream(n,u(nc)),Ha?[Ia/Ha,Fa/Ha]:Ua?[Ra/Ua,Da/Ua]:Pa?[La/Pa,qa/Pa]:[NaN,NaN]},n.bounds=function(n){return Ja=Ga=-($a=Xa=1/0),ho.geo.stream(n,u(Qa)),[[$a,Xa],[Ja,Ga]]},n.projection=function(n){return arguments.length?(u=(r=n)?n.stream||cr(n):w,t()):r},n.context=function(n){return arguments.length?(i=null==(e=n)?new nr:new or(n),"function"!=typeof a&&i.pointRadius(a),t()):e},n.pointRadius=function(t){return arguments.length?(a="function"==typeof t?t:(i.pointRadius(+t),+t),n):a},n.projection(ho.geo.albersUsa()).context(null)},ho.geo.transform=function(n){return{stream:function(t){var r=new lr(t);for(var e in n)r[e]=n[e];return r}}},lr.prototype={point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},ho.geo.projection=sr,ho.geo.projectionMutator=hr,(ho.geo.equirectangular=function(){return sr(dr)}).raw=dr.invert=dr,ho.geo.rotation=function(n){function t(t){return t=n(t[0]*$o,t[1]*$o),t[0]*=Xo,t[1]*=Xo,t}return n=vr(n[0]%360*$o,n[1]*$o,n.length>2?n[2]*$o:0),t.invert=function(t){return t=n.invert(t[0]*$o,t[1]*$o),t[0]*=Xo,t[1]*=Xo,t},t},gr.invert=dr,ho.geo.circle=function(){function n(){var n="function"==typeof e?e.apply(this,arguments):e,t=vr(-n[0]*$o,-n[1]*$o,0).invert,u=[];return r(null,null,1,{point:function(n,r){u.push(n=t(n,r)),n[0]*=Xo,n[1]*=Xo}}),{type:"Polygon",coordinates:[u]}}var t,r,e=[0,0],u=6;return n.origin=function(t){return arguments.length?(e=t,n):e},n.angle=function(e){return arguments.length?(r=Mr((t=+e)*$o,u*$o),n):t},n.precision=function(e){return arguments.length?(r=Mr(t*$o,(u=+e)*$o),n):u},n.angle(90)},ho.geo.distance=function(n,t){var r,e=(t[0]-n[0])*$o,u=n[1]*$o,i=t[1]*$o,o=Math.sin(e),a=Math.cos(e),c=Math.sin(u),l=Math.cos(u),f=Math.sin(i),s=Math.cos(i);return Math.atan2(Math.sqrt((r=s*o)*r+(r=l*f-c*s*a)*r),c*f+l*s*a)},ho.geo.graticule=function(){function n(){return{type:"MultiLineString",coordinates:t()}}function t(){return ho.range(Math.ceil(i/v)*v,u,v).map(h).concat(ho.range(Math.ceil(l/y)*y,c,y).map(p)).concat(ho.range(Math.ceil(e/d)*d,r,d).filter(function(n){return ko(n%v)>Ho}).map(f)).concat(ho.range(Math.ceil(a/g)*g,o,g).filter(function(n){return ko(n%y)>Ho}).map(s))}var r,e,u,i,o,a,c,l,f,s,h,p,d=10,g=d,v=90,y=360,m=2.5;return n.lines=function(){return t().map(function(n){return{type:"LineString",coordinates:n}})},n.outline=function(){return{type:"Polygon",coordinates:[h(i).concat(p(c).slice(1),h(u).reverse().slice(1),p(l).reverse().slice(1))]}},n.extent=function(t){return arguments.length?n.majorExtent(t).minorExtent(t):n.minorExtent()},n.majorExtent=function(t){return arguments.length?(i=+t[0][0],u=+t[1][0],l=+t[0][1],c=+t[1][1],i>u&&(t=i,i=u,u=t),l>c&&(t=l,l=c,c=t),n.precision(m)):[[i,l],[u,c]]},n.minorExtent=function(t){return arguments.length?(e=+t[0][0],r=+t[1][0],a=+t[0][1],o=+t[1][1],e>r&&(t=e,e=r,r=t),a>o&&(t=a,a=o,o=t),n.precision(m)):[[e,a],[r,o]]},n.step=function(t){return arguments.length?n.majorStep(t).minorStep(t):n.minorStep()},n.majorStep=function(t){return arguments.length?(v=+t[0],y=+t[1],n):[v,y]},n.minorStep=function(t){return arguments.length?(d=+t[0],g=+t[1],n):[d,g]},n.precision=function(t){return arguments.length?(m=+t,f=_r(a,o,90),s=wr(e,r,m),h=_r(l,c,90),p=wr(i,u,m),n):m},n.majorExtent([[-180,-90+Ho],[180,90-Ho]]).minorExtent([[-180,-80-Ho],[180,80+Ho]])},ho.geo.greatArc=function(){function n(){return{type:"LineString",coordinates:[t||e.apply(this,arguments),r||u.apply(this,arguments)]}}var t,r,e=Sr,u=kr;return n.distance=function(){return ho.geo.distance(t||e.apply(this,arguments),r||u.apply(this,arguments))},n.source=function(r){return arguments.length?(e=r,t="function"==typeof r?null:r,n):e},n.target=function(t){return arguments.length?(u=t,r="function"==typeof t?null:t,n):u},n.precision=function(){return arguments.length?n:0},n},ho.geo.interpolate=function(n,t){return Er(n[0]*$o,n[1]*$o,t[0]*$o,t[1]*$o)},ho.geo.length=function(n){return tc=0,ho.geo.stream(n,rc),tc};var tc,rc={sphere:E,point:E,lineStart:jr,lineEnd:E,polygonStart:E,polygonEnd:E},ec=Nr(function(n){return Math.sqrt(2/(1+n))},function(n){return 2*Math.asin(n/2)});(ho.geo.azimuthalEqualArea=function(){return sr(ec)}).raw=ec;var uc=Nr(function(n){var t=Math.acos(n);return t&&t/Math.sin(t)},w);(ho.geo.azimuthalEquidistant=function(){return sr(uc)}).raw=uc,(ho.geo.conicConformal=function(){return Jt(Ar)}).raw=Ar,(ho.geo.conicEquidistant=function(){return Jt(Cr)}).raw=Cr;var ic=Nr(function(n){return 1/n},Math.atan);(ho.geo.gnomonic=function(){return sr(ic)}).raw=ic,Or.invert=function(n,t){return[n,2*Math.atan(Math.exp(t))-Wo]},(ho.geo.mercator=function(){return zr(Or)}).raw=Or;var oc=Nr(function(){return 1},Math.asin);(ho.geo.orthographic=function(){return sr(oc)}).raw=oc;var ac=Nr(function(n){return 1/(1+n)},function(n){return 2*Math.atan(n)});(ho.geo.stereographic=function(){return sr(ac)}).raw=ac,Tr.invert=function(n,t){return[-t,2*Math.atan(Math.exp(n))-Wo]},(ho.geo.transverseMercator=function(){var n=zr(Tr),t=n.center,r=n.rotate;return n.center=function(n){return n?t([-n[1],n[0]]):(n=t(),[n[1],-n[0]])},n.rotate=function(n){return n?r([n[0],n[1],n.length>2?n[2]+90:90]):(n=r(),[n[0],n[1],n[2]-90])},r([0,0,90])}).raw=Tr,ho.geom={},ho.geom.hull=function(n){function t(n){if(n.length<3)return[];var t,u=zn(r),i=zn(e),o=n.length,a=[],c=[];for(t=0;t<o;t++)a.push([+u.call(this,n[t],t),+i.call(this,n[t],t),t]);for(a.sort(Rr),t=0;t<o;t++)c.push([a[t][0],-a[t][1]]);var l=Pr(a),f=Pr(c),s=f[0]===l[0],h=f[f.length-1]===l[l.length-1],p=[];for(t=l.length-1;t>=0;--t)p.push(n[a[l[t]][2]]);for(t=+s;t<f.length-h;++t)p.push(n[a[f[t]][2]]);return p}var r=Lr,e=qr;return arguments.length?t(n):(t.x=function(n){return arguments.length?(r=n,t):r},t.y=function(n){return arguments.length?(e=n,t):e},t)},ho.geom.polygon=function(n){return Co(n,cc),n};var cc=ho.geom.polygon.prototype=[];cc.area=function(){for(var n,t=-1,r=this.length,e=this[r-1],u=0;++t<r;)n=e,e=this[t],u+=n[1]*e[0]-n[0]*e[1];return.5*u},cc.centroid=function(n){var t,r,e=-1,u=this.length,i=0,o=0,a=this[u-1];for(arguments.length||(n=-1/(6*this.area()));++e<u;)t=a,a=this[e],r=t[0]*a[1]-a[0]*t[1],i+=(t[0]+a[0])*r,o+=(t[1]+a[1])*r;return[i*n,o*n]},cc.clip=function(n){for(var t,r,e,u,i,o,a=Ir(n),c=-1,l=this.length-Ir(this),f=this[l-1];++c<l;){for(t=n.slice(),n.length=0,u=this[c],i=t[(e=t.length-a)-1],r=-1;++r<e;)o=t[r],Dr(o,f,u)?(Dr(i,f,u)||n.push(Ur(i,o,f,u)),n.push(o)):Dr(i,f,u)&&n.push(Ur(i,o,f,u)),i=o;a&&n.push(n[0]),f=u}return n};var lc,fc,sc,hc,pc,dc=[],gc=[];$r.prototype.prepare=function(){for(var n,t=this.edges,r=t.length;r--;)n=t[r].edge,n.b&&n.a||t.splice(r,1);return t.sort(Jr),t.length},oe.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},ae.prototype={insert:function(n,t){var r,e,u;if(n){if(t.P=n,t.N=n.N,n.N&&(n.N.P=t),n.N=t,n.R){for(n=n.R;n.L;)n=n.L;n.L=t}else n.R=t;r=n}else this._?(n=se(this._),t.P=null,t.N=n,n.P=n.L=t,r=n):(t.P=t.N=null,this._=t,r=null);for(t.L=t.R=null,t.U=r,t.C=!0,n=t;r&&r.C;)e=r.U,r===e.L?(u=e.R,u&&u.C?(r.C=u.C=!1,e.C=!0,n=e):(n===r.R&&(le(this,r),n=r,r=n.U),r.C=!1,e.C=!0,fe(this,e))):(u=e.L,u&&u.C?(r.C=u.C=!1,e.C=!0,n=e):(n===r.L&&(fe(this,r),n=r,r=n.U),r.C=!1,e.C=!0,le(this,e))),r=n.U;this._.C=!1},remove:function(n){n.N&&(n.N.P=n.P),n.P&&(n.P.N=n.N),n.N=n.P=null;var t,r,e,u=n.U,i=n.L,o=n.R;if(r=i?o?se(o):i:o,u?u.L===n?u.L=r:u.R=r:this._=r,i&&o?(e=r.C,r.C=n.C,r.L=i,i.U=r,r!==o?(u=r.U,r.U=n.U,n=r.R,u.L=n,r.R=o,o.U=r):(r.U=u,u=r,n=r.R)):(e=n.C,n=r),n&&(n.U=u),!e){if(n&&n.C)return void(n.C=!1);do{if(n===this._)break;if(n===u.L){if(t=u.R,t.C&&(t.C=!1,u.C=!0,le(this,u),t=u.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,fe(this,t),t=u.R),t.C=u.C,u.C=t.R.C=!1,le(this,u),n=this._;break}}else if(t=u.L,t.C&&(t.C=!1,u.C=!0,fe(this,u),t=u.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,le(this,t),t=u.L),t.C=u.C,u.C=t.L.C=!1,fe(this,u),n=this._;break}t.C=!0,n=u,u=u.U}while(!n.C);n&&(n.C=!1)}}},ho.geom.voronoi=function(n){function t(n){var t=new Array(n.length),e=a[0][0],u=a[0][1],i=a[1][0],o=a[1][1];return he(r(n),a).cells.forEach(function(r,a){var c=r.edges,l=r.site,f=t[a]=c.length?c.map(function(n){var t=n.start();return[t.x,t.y]}):l.x>=e&&l.x<=i&&l.y>=u&&l.y<=o?[[e,o],[i,o],[i,u],[e,u]]:[];f.point=n[a]}),t}function r(n){return n.map(function(n,t){return{x:Math.round(i(n,t)/Ho)*Ho,y:Math.round(o(n,t)/Ho)*Ho,i:t}})}var e=Lr,u=qr,i=e,o=u,a=vc;return n?t(n):(t.links=function(n){return he(r(n)).edges.filter(function(n){return n.l&&n.r}).map(function(t){return{source:n[t.l.i],target:n[t.r.i]}})},t.triangles=function(n){var t=[];return he(r(n)).cells.forEach(function(r,e){for(var u,i,o=r.site,a=r.edges.sort(Jr),c=-1,l=a.length,f=a[l-1].edge,s=f.l===o?f.r:f.l;++c<l;)u=f,i=s,f=a[c].edge,s=f.l===o?f.r:f.l,e<i.i&&e<s.i&&de(o,i,s)<0&&t.push([n[e],n[i.i],n[s.i]])}),t},t.x=function(n){return arguments.length?(i=zn(e=n),t):e},t.y=function(n){return arguments.length?(o=zn(u=n),t):u},t.clipExtent=function(n){return arguments.length?(a=null==n?vc:n,t):a===vc?null:a},t.size=function(n){return arguments.length?t.clipExtent(n&&[[0,0],n]):a===vc?null:a&&a[1]},t)};var vc=[[-1e6,-1e6],[1e6,1e6]];ho.geom.delaunay=function(n){return ho.geom.voronoi().triangles(n)},ho.geom.quadtree=function(n,t,r,e,u){function i(n){function i(n,t,r,e,u,i,o,a){if(!isNaN(r)&&!isNaN(e))if(n.leaf){var c=n.x,f=n.y;if(null!=c)if(ko(c-r)+ko(f-e)<.01)l(n,t,r,e,u,i,o,a);else{var s=n.point;n.x=n.y=n.point=null,l(n,s,c,f,u,i,o,a),l(n,t,r,e,u,i,o,a)}else n.x=r,n.y=e,n.point=t}else l(n,t,r,e,u,i,o,a)}function l(n,t,r,e,u,o,a,c){var l=.5*(u+a),f=.5*(o+c),s=r>=l,h=e>=f,p=h<<1|s;n.leaf=!1,n=n.nodes[p]||(n.nodes[p]=ye()),s?u=l:a=l,h?o=f:c=f,i(n,t,r,e,u,o,a,c)}var f,s,h,p,d,g,v,y,m,x=zn(a),M=zn(c);if(null!=t)g=t,v=r,y=e,m=u;else if(y=m=-(g=v=1/0),s=[],h=[],d=n.length,o)for(p=0;p<d;++p)f=n[p],f.x<g&&(g=f.x),f.y<v&&(v=f.y),f.x>y&&(y=f.x),f.y>m&&(m=f.y),s.push(f.x),h.push(f.y);else for(p=0;p<d;++p){var b=+x(f=n[p],p),_=+M(f,p);
6b<g&&(g=b),_<v&&(v=_),b>y&&(y=b),_>m&&(m=_),s.push(b),h.push(_)}var w=y-g,S=m-v;w>S?m=v+w:y=g+S;var k=ye();if(k.add=function(n){i(k,n,+x(n,++p),+M(n,p),g,v,y,m)},k.visit=function(n){me(n,k,g,v,y,m)},k.find=function(n){return xe(k,n[0],n[1],g,v,y,m)},p=-1,null==t){for(;++p<d;)i(k,n[p],s[p],h[p],g,v,y,m);--p}else n.forEach(k.add);return s=h=n=f=null,k}var o,a=Lr,c=qr;return(o=arguments.length)?(a=ge,c=ve,3===o&&(u=r,e=t,r=t=0),i(n)):(i.x=function(n){return arguments.length?(a=n,i):a},i.y=function(n){return arguments.length?(c=n,i):c},i.extent=function(n){return arguments.length?(null==n?t=r=e=u=null:(t=+n[0][0],r=+n[0][1],e=+n[1][0],u=+n[1][1]),i):null==t?null:[[t,r],[e,u]]},i.size=function(n){return arguments.length?(null==n?t=r=e=u=null:(t=r=0,e=+n[0],u=+n[1]),i):null==t?null:[e-t,u-r]},i)},ho.interpolateRgb=Me,ho.interpolateObject=be,ho.interpolateNumber=_e,ho.interpolateString=we;var yc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,mc=new RegExp(yc.source,"g");ho.interpolate=Se,ho.interpolators=[function(n,t){var r=typeof t;return("string"===r?fa.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?Me:we:t instanceof hn?Me:Array.isArray(t)?ke:"object"===r&&isNaN(t)?be:_e)(n,t)}],ho.interpolateArray=ke;var xc=function(){return w},Mc=ho.map({linear:xc,poly:ze,quad:function(){return Ae},cubic:function(){return Ce},sin:function(){return Te},exp:function(){return Le},circle:function(){return qe},elastic:Pe,back:Re,bounce:function(){return De}}),bc=ho.map({"in":w,out:je,"in-out":Ne,"out-in":function(n){return Ne(je(n))}});ho.ease=function(n){var t=n.indexOf("-"),r=t>=0?n.slice(0,t):n,e=t>=0?n.slice(t+1):"in";return r=Mc.get(r)||xc,e=bc.get(e)||w,Ee(e(r.apply(null,po.call(arguments,1))))},ho.interpolateHcl=Ue,ho.interpolateHsl=Ie,ho.interpolateLab=Fe,ho.interpolateRound=He,ho.transform=function(n){var t=vo.createElementNS(ho.ns.prefix.svg,"g");return(ho.transform=function(n){if(null!=n){t.setAttribute("transform",n);var r=t.transform.baseVal.consolidate()}return new Be(r?r.matrix:_c)})(n)},Be.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var _c={a:1,b:0,c:0,d:1,e:0,f:0};ho.interpolateTransform=Ke,ho.layout={},ho.layout.bundle=function(){return function(n){for(var t=[],r=-1,e=n.length;++r<e;)t.push(tu(n[r]));return t}},ho.layout.chord=function(){function n(){var n,l,s,h,p,d={},g=[],v=ho.range(i),y=[];for(r=[],e=[],n=0,h=-1;++h<i;){for(l=0,p=-1;++p<i;)l+=u[h][p];g.push(l),y.push(ho.range(i)),n+=l}for(o&&v.sort(function(n,t){return o(g[n],g[t])}),a&&y.forEach(function(n,t){n.sort(function(n,r){return a(u[t][n],u[t][r])})}),n=(Vo-f*i)/n,l=0,h=-1;++h<i;){for(s=l,p=-1;++p<i;){var m=v[h],x=y[m][p],M=u[m][x],b=l,_=l+=M*n;d[m+"-"+x]={index:m,subindex:x,startAngle:b,endAngle:_,value:M}}e[m]={index:m,startAngle:s,endAngle:l,value:g[m]},l+=f}for(h=-1;++h<i;)for(p=h-1;++p<i;){var w=d[h+"-"+p],S=d[p+"-"+h];(w.value||S.value)&&r.push(w.value<S.value?{source:S,target:w}:{source:w,target:S})}c&&t()}function t(){r.sort(function(n,t){return c((n.source.value+n.target.value)/2,(t.source.value+t.target.value)/2)})}var r,e,u,i,o,a,c,l={},f=0;return l.matrix=function(n){return arguments.length?(i=(u=n)&&u.length,r=e=null,l):u},l.padding=function(n){return arguments.length?(f=n,r=e=null,l):f},l.sortGroups=function(n){return arguments.length?(o=n,r=e=null,l):o},l.sortSubgroups=function(n){return arguments.length?(a=n,r=null,l):a},l.sortChords=function(n){return arguments.length?(c=n,r&&t(),l):c},l.chords=function(){return r||n(),r},l.groups=function(){return e||n(),e},l},ho.layout.force=function(){function n(n){return function(t,r,e,u){if(t.point!==n){var i=t.cx-n.x,o=t.cy-n.y,a=u-r,c=i*i+o*o;if(a*a/y<c){if(c<g){var l=t.charge/c;n.px-=i*l,n.py-=o*l}return!0}if(t.point&&c&&c<g){var l=t.pointCharge/c;n.px-=i*l,n.py-=o*l}}return!t.charge}}function t(n){n.px=ho.event.x,n.py=ho.event.y,c.resume()}var r,e,u,i,o,a,c={},l=ho.dispatch("start","tick","end"),f=[1,1],s=.9,h=wc,p=Sc,d=-30,g=kc,v=.1,y=.64,m=[],x=[];return c.tick=function(){if((u*=.99)<.005)return r=null,l.end({type:"end",alpha:u=0}),!0;var t,e,c,h,p,g,y,M,b,_=m.length,w=x.length;for(e=0;e<w;++e)c=x[e],h=c.source,p=c.target,M=p.x-h.x,b=p.y-h.y,(g=M*M+b*b)&&(g=u*o[e]*((g=Math.sqrt(g))-i[e])/g,M*=g,b*=g,p.x-=M*(y=h.weight+p.weight?h.weight/(h.weight+p.weight):.5),p.y-=b*y,h.x+=M*(y=1-y),h.y+=b*y);if((y=u*v)&&(M=f[0]/2,b=f[1]/2,e=-1,y))for(;++e<_;)c=m[e],c.x+=(M-c.x)*y,c.y+=(b-c.y)*y;if(d)for(cu(t=ho.geom.quadtree(m),u,a),e=-1;++e<_;)(c=m[e]).fixed||t.visit(n(c));for(e=-1;++e<_;)c=m[e],c.fixed?(c.x=c.px,c.y=c.py):(c.x-=(c.px-(c.px=c.x))*s,c.y-=(c.py-(c.py=c.y))*s);l.tick({type:"tick",alpha:u})},c.nodes=function(n){return arguments.length?(m=n,c):m},c.links=function(n){return arguments.length?(x=n,c):x},c.size=function(n){return arguments.length?(f=n,c):f},c.linkDistance=function(n){return arguments.length?(h="function"==typeof n?n:+n,c):h},c.distance=c.linkDistance,c.linkStrength=function(n){return arguments.length?(p="function"==typeof n?n:+n,c):p},c.friction=function(n){return arguments.length?(s=+n,c):s},c.charge=function(n){return arguments.length?(d="function"==typeof n?n:+n,c):d},c.chargeDistance=function(n){return arguments.length?(g=n*n,c):Math.sqrt(g)},c.gravity=function(n){return arguments.length?(v=+n,c):v},c.theta=function(n){return arguments.length?(y=n*n,c):Math.sqrt(y)},c.alpha=function(n){return arguments.length?(n=+n,u?n>0?u=n:(r.c=null,r.t=NaN,r=null,l.end({type:"end",alpha:u=0})):n>0&&(l.start({type:"start",alpha:u=n}),r=Rn(c.tick)),c):u},c.start=function(){function n(n,e){if(!r){for(r=new Array(u),c=0;c<u;++c)r[c]=[];for(c=0;c<l;++c){var i=x[c];r[i.source.index].push(i.target),r[i.target.index].push(i.source)}}for(var o,a=r[t],c=-1,f=a.length;++c<f;)if(!isNaN(o=a[c][n]))return o;return Math.random()*e}var t,r,e,u=m.length,l=x.length,s=f[0],g=f[1];for(t=0;t<u;++t)(e=m[t]).index=t,e.weight=0;for(t=0;t<l;++t)e=x[t],"number"==typeof e.source&&(e.source=m[e.source]),"number"==typeof e.target&&(e.target=m[e.target]),++e.source.weight,++e.target.weight;for(t=0;t<u;++t)e=m[t],isNaN(e.x)&&(e.x=n("x",s)),isNaN(e.y)&&(e.y=n("y",g)),isNaN(e.px)&&(e.px=e.x),isNaN(e.py)&&(e.py=e.y);if(i=[],"function"==typeof h)for(t=0;t<l;++t)i[t]=+h.call(this,x[t],t);else for(t=0;t<l;++t)i[t]=h;if(o=[],"function"==typeof p)for(t=0;t<l;++t)o[t]=+p.call(this,x[t],t);else for(t=0;t<l;++t)o[t]=p;if(a=[],"function"==typeof d)for(t=0;t<u;++t)a[t]=+d.call(this,m[t],t);else for(t=0;t<u;++t)a[t]=d;return c.resume()},c.resume=function(){return c.alpha(.1)},c.stop=function(){return c.alpha(0)},c.drag=function(){return e||(e=ho.behavior.drag().origin(w).on("dragstart.force",uu).on("drag.force",t).on("dragend.force",iu)),arguments.length?void this.on("mouseover.force",ou).on("mouseout.force",au).call(e):e},ho.rebind(c,l,"on")};var wc=20,Sc=1,kc=1/0;ho.layout.hierarchy=function(){function n(u){var i,o=[u],a=[];for(u.depth=0;null!=(i=o.pop());)if(a.push(i),(l=r.call(n,i,i.depth))&&(c=l.length)){for(var c,l,f;--c>=0;)o.push(f=l[c]),f.parent=i,f.depth=i.depth+1;e&&(i.value=0),i.children=l}else e&&(i.value=+e.call(n,i,i.depth)||0),delete i.children;return su(u,function(n){var r,u;t&&(r=n.children)&&r.sort(t),e&&(u=n.parent)&&(u.value+=n.value)}),a}var t=du,r=hu,e=pu;return n.sort=function(r){return arguments.length?(t=r,n):t},n.children=function(t){return arguments.length?(r=t,n):r},n.value=function(t){return arguments.length?(e=t,n):e},n.revalue=function(t){return e&&(fu(t,function(n){n.children&&(n.value=0)}),su(t,function(t){var r;t.children||(t.value=+e.call(n,t,t.depth)||0),(r=t.parent)&&(r.value+=t.value)})),t},n},ho.layout.partition=function(){function n(t,r,e,u){var i=t.children;if(t.x=r,t.y=t.depth*u,t.dx=e,t.dy=u,i&&(o=i.length)){var o,a,c,l=-1;for(e=t.value?e/t.value:0;++l<o;)n(a=i[l],r,c=a.value*e,u),r+=c}}function t(n){var r=n.children,e=0;if(r&&(u=r.length))for(var u,i=-1;++i<u;)e=Math.max(e,t(r[i]));return 1+e}function r(r,i){var o=e.call(this,r,i);return n(o[0],0,u[0],u[1]/t(o[0])),o}var e=ho.layout.hierarchy(),u=[1,1];return r.size=function(n){return arguments.length?(u=n,r):u},lu(r,e)},ho.layout.pie=function(){function n(o){var a,c=o.length,l=o.map(function(r,e){return+t.call(n,r,e)}),f=+("function"==typeof e?e.apply(this,arguments):e),s=("function"==typeof u?u.apply(this,arguments):u)-f,h=Math.min(Math.abs(s)/c,+("function"==typeof i?i.apply(this,arguments):i)),p=h*(s<0?-1:1),d=ho.sum(l),g=d?(s-c*p)/d:0,v=ho.range(c),y=[];return null!=r&&v.sort(r===Ec?function(n,t){return l[t]-l[n]}:function(n,t){return r(o[n],o[t])}),v.forEach(function(n){y[n]={data:o[n],value:a=l[n],startAngle:f,endAngle:f+=a*g+p,padAngle:h}}),y}var t=Number,r=Ec,e=0,u=Vo,i=0;return n.value=function(r){return arguments.length?(t=r,n):t},n.sort=function(t){return arguments.length?(r=t,n):r},n.startAngle=function(t){return arguments.length?(e=t,n):e},n.endAngle=function(t){return arguments.length?(u=t,n):u},n.padAngle=function(t){return arguments.length?(i=t,n):i},n};var Ec={};ho.layout.stack=function(){function n(a,c){if(!(h=a.length))return a;var l=a.map(function(r,e){return t.call(n,r,e)}),f=l.map(function(t){return t.map(function(t,r){return[i.call(n,t,r),o.call(n,t,r)]})}),s=r.call(n,f,c);l=ho.permute(l,s),f=ho.permute(f,s);var h,p,d,g,v=e.call(n,f,c),y=l[0].length;for(d=0;d<y;++d)for(u.call(n,l[0][d],g=v[d],f[0][d][1]),p=1;p<h;++p)u.call(n,l[p][d],g+=f[p-1][d][1],f[p][d][1]);return a}var t=w,r=xu,e=Mu,u=mu,i=vu,o=yu;return n.values=function(r){return arguments.length?(t=r,n):t},n.order=function(t){return arguments.length?(r="function"==typeof t?t:jc.get(t)||xu,n):r},n.offset=function(t){return arguments.length?(e="function"==typeof t?t:Nc.get(t)||Mu,n):e},n.x=function(t){return arguments.length?(i=t,n):i},n.y=function(t){return arguments.length?(o=t,n):o},n.out=function(t){return arguments.length?(u=t,n):u},n};var jc=ho.map({"inside-out":function(n){var t,r,e=n.length,u=n.map(bu),i=n.map(_u),o=ho.range(e).sort(function(n,t){return u[n]-u[t]}),a=0,c=0,l=[],f=[];for(t=0;t<e;++t)r=o[t],a<c?(a+=i[r],l.push(r)):(c+=i[r],f.push(r));return f.reverse().concat(l)},reverse:function(n){return ho.range(n.length).reverse()},"default":xu}),Nc=ho.map({silhouette:function(n){var t,r,e,u=n.length,i=n[0].length,o=[],a=0,c=[];for(r=0;r<i;++r){for(t=0,e=0;t<u;t++)e+=n[t][r][1];e>a&&(a=e),o.push(e)}for(r=0;r<i;++r)c[r]=(a-o[r])/2;return c},wiggle:function(n){var t,r,e,u,i,o,a,c,l,f=n.length,s=n[0],h=s.length,p=[];for(p[0]=c=l=0,r=1;r<h;++r){for(t=0,u=0;t<f;++t)u+=n[t][r][1];for(t=0,i=0,a=s[r][0]-s[r-1][0];t<f;++t){for(e=0,o=(n[t][r][1]-n[t][r-1][1])/(2*a);e<t;++e)o+=(n[e][r][1]-n[e][r-1][1])/a;i+=o*n[t][r][1]}p[r]=c-=u?i/u*a:0,c<l&&(l=c)}for(r=0;r<h;++r)p[r]-=l;return p},expand:function(n){var t,r,e,u=n.length,i=n[0].length,o=1/u,a=[];for(r=0;r<i;++r){for(t=0,e=0;t<u;t++)e+=n[t][r][1];if(e)for(t=0;t<u;t++)n[t][r][1]/=e;else for(t=0;t<u;t++)n[t][r][1]=o}for(r=0;r<i;++r)a[r]=0;return a},zero:Mu});ho.layout.histogram=function(){function n(n,i){for(var o,a,c=[],l=n.map(r,this),f=e.call(this,l,i),s=u.call(this,f,l,i),i=-1,h=l.length,p=s.length-1,d=t?1:1/h;++i<p;)o=c[i]=[],o.dx=s[i+1]-(o.x=s[i]),o.y=0;if(p>0)for(i=-1;++i<h;)a=l[i],a>=f[0]&&a<=f[1]&&(o=c[ho.bisect(s,a,1,p)-1],o.y+=d,o.push(n[i]));return c}var t=!0,r=Number,e=Eu,u=Su;return n.value=function(t){return arguments.length?(r=t,n):r},n.range=function(t){return arguments.length?(e=zn(t),n):e},n.bins=function(t){return arguments.length?(u="number"==typeof t?function(n){return ku(n,t)}:zn(t),n):u},n.frequency=function(r){return arguments.length?(t=!!r,n):t},n},ho.layout.pack=function(){function n(n,i){var o=r.call(this,n,i),a=o[0],c=u[0],l=u[1],f=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(a.x=a.y=0,su(a,function(n){n.r=+f(n.value)}),su(a,Ou),e){var s=e*(t?1:Math.max(2*a.r/c,2*a.r/l))/2;su(a,function(n){n.r+=s}),su(a,Ou),su(a,function(n){n.r-=s})}return Lu(a,c/2,l/2,t?1:1/Math.max(2*a.r/c,2*a.r/l)),o}var t,r=ho.layout.hierarchy().sort(ju),e=0,u=[1,1];return n.size=function(t){return arguments.length?(u=t,n):u},n.radius=function(r){return arguments.length?(t=null==r||"function"==typeof r?r:+r,n):t},n.padding=function(t){return arguments.length?(e=+t,n):e},lu(n,r)},ho.layout.tree=function(){function n(n,u){var f=o.call(this,n,u),s=f[0],h=t(s);if(su(h,r),h.parent.m=-h.z,fu(h,e),l)fu(s,i);else{var p=s,d=s,g=s;fu(s,function(n){n.x<p.x&&(p=n),n.x>d.x&&(d=n),n.depth>g.depth&&(g=n)});var v=a(p,d)/2-p.x,y=c[0]/(d.x+a(d,p)/2+v),m=c[1]/(g.depth||1);fu(s,function(n){n.x=(n.x+v)*y,n.y=n.depth*m})}return f}function t(n){for(var t,r={A:null,children:[n]},e=[r];null!=(t=e.pop());)for(var u,i=t.children,o=0,a=i.length;o<a;++o)e.push((i[o]=u={_:i[o],parent:t,children:(u=i[o].children)&&u.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=u);return r.children[0]}function r(n){var t=n.children,r=n.parent.children,e=n.i?r[n.i-1]:null;if(t.length){Iu(n);var i=(t[0].z+t[t.length-1].z)/2;e?(n.z=e.z+a(n._,e._),n.m=n.z-i):n.z=i}else e&&(n.z=e.z+a(n._,e._));n.parent.A=u(n,e,n.parent.A||r[0])}function e(n){n._.x=n.z+n.parent.m,n.m+=n.parent.m}function u(n,t,r){if(t){for(var e,u=n,i=n,o=t,c=u.parent.children[0],l=u.m,f=i.m,s=o.m,h=c.m;o=Du(o),u=Ru(u),o&&u;)c=Ru(c),i=Du(i),i.a=n,e=o.z+s-u.z-l+a(o._,u._),e>0&&(Uu(Fu(o,n,r),n,e),l+=e,f+=e),s+=o.m,l+=u.m,h+=c.m,f+=i.m;o&&!Du(i)&&(i.t=o,i.m+=s-f),u&&!Ru(c)&&(c.t=u,c.m+=l-h,r=n)}return r}function i(n){n.x*=c[0],n.y=n.depth*c[1]}var o=ho.layout.hierarchy().sort(null).value(null),a=Pu,c=[1,1],l=null;return n.separation=function(t){return arguments.length?(a=t,n):a},n.size=function(t){return arguments.length?(l=null==(c=t)?i:null,n):l?null:c},n.nodeSize=function(t){return arguments.length?(l=null==(c=t)?null:i,n):l?c:null},lu(n,o)},ho.layout.cluster=function(){function n(n,i){var o,a=t.call(this,n,i),c=a[0],l=0;su(c,function(n){var t=n.children;t&&t.length?(n.x=Bu(t),n.y=Hu(t)):(n.x=o?l+=r(n,o):0,n.y=0,o=n)});var f=Yu(c),s=Vu(c),h=f.x-r(f,s)/2,p=s.x+r(s,f)/2;return su(c,u?function(n){n.x=(n.x-c.x)*e[0],n.y=(c.y-n.y)*e[1]}:function(n){n.x=(n.x-h)/(p-h)*e[0],n.y=(1-(c.y?n.y/c.y:1))*e[1]}),a}var t=ho.layout.hierarchy().sort(null).value(null),r=Pu,e=[1,1],u=!1;return n.separation=function(t){return arguments.length?(r=t,n):r},n.size=function(t){return arguments.length?(u=null==(e=t),n):u?null:e},n.nodeSize=function(t){return arguments.length?(u=null!=(e=t),n):u?e:null},lu(n,t)},ho.layout.treemap=function(){function n(n,t){for(var r,e,u=-1,i=n.length;++u<i;)e=(r=n[u]).value*(t<0?0:t),r.area=isNaN(e)||e<=0?0:e}function t(r){var i=r.children;if(i&&i.length){var o,a,c,l=s(r),f=[],h=i.slice(),d=1/0,g="slice"===p?l.dx:"dice"===p?l.dy:"slice-dice"===p?1&r.depth?l.dy:l.dx:Math.min(l.dx,l.dy);for(n(h,l.dx*l.dy/r.value),f.area=0;(c=h.length)>0;)f.push(o=h[c-1]),f.area+=o.area,"squarify"!==p||(a=e(f,g))<=d?(h.pop(),d=a):(f.area-=f.pop().area,u(f,g,l,!1),g=Math.min(l.dx,l.dy),f.length=f.area=0,d=1/0);f.length&&(u(f,g,l,!0),f.length=f.area=0),i.forEach(t)}}function r(t){var e=t.children;if(e&&e.length){var i,o=s(t),a=e.slice(),c=[];for(n(a,o.dx*o.dy/t.value),c.area=0;i=a.pop();)c.push(i),c.area+=i.area,null!=i.z&&(u(c,i.z?o.dx:o.dy,o,!a.length),c.length=c.area=0);e.forEach(r)}}function e(n,t){for(var r,e=n.area,u=0,i=1/0,o=-1,a=n.length;++o<a;)(r=n[o].area)&&(r<i&&(i=r),r>u&&(u=r));return e*=e,t*=t,e?Math.max(t*u*d/e,e/(t*i*d)):1/0}function u(n,t,r,e){var u,i=-1,o=n.length,a=r.x,l=r.y,f=t?c(n.area/t):0;if(t==r.dx){for((e||f>r.dy)&&(f=r.dy);++i<o;)u=n[i],u.x=a,u.y=l,u.dy=f,a+=u.dx=Math.min(r.x+r.dx-a,f?c(u.area/f):0);u.z=!0,u.dx+=r.x+r.dx-a,r.y+=f,r.dy-=f}else{for((e||f>r.dx)&&(f=r.dx);++i<o;)u=n[i],u.x=a,u.y=l,u.dx=f,l+=u.dy=Math.min(r.y+r.dy-l,f?c(u.area/f):0);u.z=!1,u.dy+=r.y+r.dy-l,r.x+=f,r.dx-=f}}function i(e){var u=o||a(e),i=u[0];return i.x=i.y=0,i.value?(i.dx=l[0],i.dy=l[1]):i.dx=i.dy=0,o&&a.revalue(i),n([i],i.dx*i.dy/i.value),(o?r:t)(i),h&&(o=u),u}var o,a=ho.layout.hierarchy(),c=Math.round,l=[1,1],f=null,s=Zu,h=!1,p="squarify",d=.5*(1+Math.sqrt(5));return i.size=function(n){return arguments.length?(l=n,i):l},i.padding=function(n){function t(t){var r=n.call(i,t,t.depth);return null==r?Zu(t):Wu(t,"number"==typeof r?[r,r,r,r]:r)}function r(t){return Wu(t,n)}if(!arguments.length)return f;var e;return s=null==(f=n)?Zu:"function"==(e=typeof n)?t:"number"===e?(n=[n,n,n,n],r):r,i},i.round=function(n){return arguments.length?(c=n?Math.round:Number,i):c!=Number},i.sticky=function(n){return arguments.length?(h=n,o=null,i):h},i.ratio=function(n){return arguments.length?(d=n,i):d},i.mode=function(n){return arguments.length?(p=n+"",i):p},lu(i,a)},ho.random={normal:function(n,t){var r=arguments.length;return r<2&&(t=1),r<1&&(n=0),function(){var r,e,u;do r=2*Math.random()-1,e=2*Math.random()-1,u=r*r+e*e;while(!u||u>1);return n+t*r*Math.sqrt(-2*Math.log(u)/u)}},logNormal:function(){var n=ho.random.normal.apply(ho,arguments);return function(){return Math.exp(n())}},bates:function(n){var t=ho.random.irwinHall(n);return function(){return t()/n}},irwinHall:function(n){return function(){for(var t=0,r=0;r<n;r++)t+=Math.random();return t}}},ho.scale={};var Ac={floor:w,ceil:w};ho.scale.linear=function(){return ni([0,1],[0,1],Se,!1)};var Cc={s:1,g:1,p:1,r:1,e:1};ho.scale.log=function(){return ci(ho.scale.linear().domain([0,1]),10,!0,[1,10])};var Oc=ho.format(".0e"),zc={floor:function(n){return-Math.ceil(-n)},ceil:function(n){return-Math.floor(-n)}};ho.scale.pow=function(){return li(ho.scale.linear(),1,[0,1])},ho.scale.sqrt=function(){return ho.scale.pow().exponent(.5)},ho.scale.ordinal=function(){return si([],{t:"range",a:[[]]})},ho.scale.category10=function(){return ho.scale.ordinal().range(Tc)},ho.scale.category20=function(){return ho.scale.ordinal().range(Lc)},ho.scale.category20b=function(){return ho.scale.ordinal().range(qc)},ho.scale.category20c=function(){return ho.scale.ordinal().range(Pc)};var Tc=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(kn),Lc=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(kn),qc=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(kn),Pc=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(kn);ho.scale.quantile=function(){return hi([],[])},ho.scale.quantize=function(){return pi(0,1,[0,1])},ho.scale.threshold=function(){return di([.5],[0,1])},ho.scale.identity=function(){return gi([0,1])},ho.svg={},ho.svg.arc=function(){function n(){var n=Math.max(0,+r.apply(this,arguments)),l=Math.max(0,+e.apply(this,arguments)),f=o.apply(this,arguments)-Wo,s=a.apply(this,arguments)-Wo,h=Math.abs(s-f),p=f>s?0:1;if(l<n&&(d=l,l=n,n=d),h>=Zo)return t(l,p)+(n?t(n,1-p):"")+"Z";var d,g,v,y,m,x,M,b,_,w,S,k,E=0,j=0,N=[];if((y=(+c.apply(this,arguments)||0)/2)&&(v=i===Rc?Math.sqrt(n*n+l*l):+i.apply(this,arguments),p||(j*=-1),l&&(j=an(v/l*Math.sin(y))),n&&(E=an(v/n*Math.sin(y)))),l){m=l*Math.cos(f+j),x=l*Math.sin(f+j),M=l*Math.cos(s-j),b=l*Math.sin(s-j);var A=Math.abs(s-f-2*j)<=Yo?0:1;if(j&&_i(m,x,M,b)===p^A){var C=(f+s)/2;m=l*Math.cos(C),x=l*Math.sin(C),M=b=null}}else m=x=0;if(n){_=n*Math.cos(s-E),w=n*Math.sin(s-E),S=n*Math.cos(f+E),k=n*Math.sin(f+E);var O=Math.abs(f-s+2*E)<=Yo?0:1;if(E&&_i(_,w,S,k)===1-p^O){var z=(f+s)/2;_=n*Math.cos(z),w=n*Math.sin(z),S=k=null}}else _=w=0;if(h>Ho&&(d=Math.min(Math.abs(l-n)/2,+u.apply(this,arguments)))>.001){g=n<l^p?0:1;var T=d,L=d;if(h<Yo){var q=null==S?[_,w]:null==M?[m,x]:Ur([m,x],[S,k],[M,b],[_,w]),P=m-q[0],R=x-q[1],D=M-q[0],U=b-q[1],I=1/Math.sin(Math.acos((P*D+R*U)/(Math.sqrt(P*P+R*R)*Math.sqrt(D*D+U*U)))/2),F=Math.sqrt(q[0]*q[0]+q[1]*q[1]);L=Math.min(d,(n-F)/(I-1)),T=Math.min(d,(l-F)/(I+1))}if(null!=M){var H=wi(null==S?[_,w]:[S,k],[m,x],l,T,p),B=wi([M,b],[_,w],l,T,p);d===T?N.push("M",H[0],"A",T,",",T," 0 0,",g," ",H[1],"A",l,",",l," 0 ",1-p^_i(H[1][0],H[1][1],B[1][0],B[1][1]),",",p," ",B[1],"A",T,",",T," 0 0,",g," ",B[0]):N.push("M",H[0],"A",T,",",T," 0 1,",g," ",B[0])}else N.push("M",m,",",x);if(null!=S){var Y=wi([m,x],[S,k],n,-L,p),V=wi([_,w],null==M?[m,x]:[M,b],n,-L,p);d===L?N.push("L",V[0],"A",L,",",L," 0 0,",g," ",V[1],"A",n,",",n," 0 ",p^_i(V[1][0],V[1][1],Y[1][0],Y[1][1]),",",1-p," ",Y[1],"A",L,",",L," 0 0,",g," ",Y[0]):N.push("L",V[0],"A",L,",",L," 0 0,",g," ",Y[0])}else N.push("L",_,",",w)}else N.push("M",m,",",x),null!=M&&N.push("A",l,",",l," 0 ",A,",",p," ",M,",",b),N.push("L",_,",",w),null!=S&&N.push("A",n,",",n," 0 ",O,",",1-p," ",S,",",k);return N.push("Z"),N.join("")}function t(n,t){return"M0,"+n+"A"+n+","+n+" 0 1,"+t+" 0,"+-n+"A"+n+","+n+" 0 1,"+t+" 0,"+n}var r=yi,e=mi,u=vi,i=Rc,o=xi,a=Mi,c=bi;return n.innerRadius=function(t){return arguments.length?(r=zn(t),n):r},n.outerRadius=function(t){return arguments.length?(e=zn(t),n):e},n.cornerRadius=function(t){return arguments.length?(u=zn(t),n):u},n.padRadius=function(t){return arguments.length?(i=t==Rc?Rc:zn(t),n):i},n.startAngle=function(t){return arguments.length?(o=zn(t),n):o},n.endAngle=function(t){return arguments.length?(a=zn(t),n):a},n.padAngle=function(t){return arguments.length?(c=zn(t),n):c},n.centroid=function(){var n=(+r.apply(this,arguments)+ +e.apply(this,arguments))/2,t=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-Wo;return[Math.cos(t)*n,Math.sin(t)*n]},n};var Rc="auto";ho.svg.line=function(){return Si(w)};var Dc=ho.map({linear:ki,"linear-closed":Ei,step:ji,"step-before":Ni,"step-after":Ai,basis:qi,"basis-open":Pi,"basis-closed":Ri,bundle:Di,cardinal:zi,"cardinal-open":Ci,"cardinal-closed":Oi,monotone:Yi});Dc.forEach(function(n,t){t.key=n,t.closed=/-closed$/.test(n)});var Uc=[0,2/3,1/3,0],Ic=[0,1/3,2/3,0],Fc=[0,1/6,2/3,1/6];ho.svg.line.radial=function(){var n=Si(Vi);return n.radius=n.x,delete n.x,n.angle=n.y,delete n.y,n},Ni.reverse=Ai,Ai.reverse=Ni,ho.svg.area=function(){return Zi(w)},ho.svg.area.radial=function(){var n=Zi(Vi);return n.radius=n.x,delete n.x,n.innerRadius=n.x0,delete n.x0,n.outerRadius=n.x1,delete n.x1,n.angle=n.y,delete n.y,n.startAngle=n.y0,delete n.y0,n.endAngle=n.y1,delete n.y1,n},ho.svg.chord=function(){function n(n,a){var c=t(this,i,n,a),l=t(this,o,n,a);return"M"+c.p0+e(c.r,c.p1,c.a1-c.a0)+(r(c,l)?u(c.r,c.p1,c.r,c.p0):u(c.r,c.p1,l.r,l.p0)+e(l.r,l.p1,l.a1-l.a0)+u(l.r,l.p1,c.r,c.p0))+"Z"}function t(n,t,r,e){var u=t.call(n,r,e),i=a.call(n,u,e),o=c.call(n,u,e)-Wo,f=l.call(n,u,e)-Wo;return{r:i,a0:o,a1:f,p0:[i*Math.cos(o),i*Math.sin(o)],p1:[i*Math.cos(f),i*Math.sin(f)]}}function r(n,t){return n.a0==t.a0&&n.a1==t.a1}function e(n,t,r){return"A"+n+","+n+" 0 "+ +(r>Yo)+",1 "+t}function u(n,t,r,e){return"Q 0,0 "+e}var i=Sr,o=kr,a=Wi,c=xi,l=Mi;return n.radius=function(t){return arguments.length?(a=zn(t),n):a},n.source=function(t){return arguments.length?(i=zn(t),n):i},n.target=function(t){return arguments.length?(o=zn(t),n):o},n.startAngle=function(t){return arguments.length?(c=zn(t),n):c},n.endAngle=function(t){return arguments.length?(l=zn(t),n):l},n},ho.svg.diagonal=function(){function n(n,u){var i=t.call(this,n,u),o=r.call(this,n,u),a=(i.y+o.y)/2,c=[i,{x:i.x,y:a},{x:o.x,y:a},o];return c=c.map(e),"M"+c[0]+"C"+c[1]+" "+c[2]+" "+c[3]}var t=Sr,r=kr,e=$i;return n.source=function(r){return arguments.length?(t=zn(r),n):t},n.target=function(t){return arguments.length?(r=zn(t),n):r},n.projection=function(t){return arguments.length?(e=t,n):e},n},ho.svg.diagonal.radial=function(){var n=ho.svg.diagonal(),t=$i,r=n.projection;return n.projection=function(n){return arguments.length?r(Xi(t=n)):t},n},ho.svg.symbol=function(){function n(n,e){return(Hc.get(t.call(this,n,e))||Ki)(r.call(this,n,e))}var t=Gi,r=Ji;return n.type=function(r){return arguments.length?(t=zn(r),n):t},n.size=function(t){return arguments.length?(r=zn(t),n):r},n};var Hc=ho.map({circle:Ki,cross:function(n){var t=Math.sqrt(n/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(n){var t=Math.sqrt(n/(2*Yc)),r=t*Yc;return"M0,"+-t+"L"+r+",0 0,"+t+" "+-r+",0Z"},square:function(n){var t=Math.sqrt(n)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(n){var t=Math.sqrt(n/Bc),r=t*Bc/2;return"M0,"+r+"L"+t+","+-r+" "+-t+","+-r+"Z"},"triangle-up":function(n){var t=Math.sqrt(n/Bc),r=t*Bc/2;return"M0,"+-r+"L"+t+","+r+" "+-t+","+r+"Z"}});ho.svg.symbolTypes=Hc.keys();var Bc=Math.sqrt(3),Yc=Math.tan(30*$o);Lo.transition=function(n){for(var t,r,e=Vc||++Xc,u=eo(n),i=[],o=Zc||{time:Date.now(),ease:Oe,delay:0,duration:250},a=-1,c=this.length;++a<c;){i.push(t=[]);for(var l=this[a],f=-1,s=l.length;++f<s;)(r=l[f])&&uo(r,f,u,e,o),t.push(r)}return no(i,u,e)},Lo.interrupt=function(n){return this.each(null==n?Wc:Qi(eo(n)))};var Vc,Zc,Wc=Qi(eo()),$c=[],Xc=0;$c.call=Lo.call,$c.empty=Lo.empty,$c.node=Lo.node,$c.size=Lo.size,ho.transition=function(n,t){return n&&n.transition?Vc?n.transition(t):n:ho.selection().transition(n)},ho.transition.prototype=$c,$c.select=function(n){var t,r,e,u=this.id,i=this.namespace,o=[];n=T(n);for(var a=-1,c=this.length;++a<c;){o.push(t=[]);for(var l=this[a],f=-1,s=l.length;++f<s;)(e=l[f])&&(r=n.call(e,e.__data__,f,a))?("__data__"in e&&(r.__data__=e.__data__),uo(r,f,i,u,e[i][u]),t.push(r)):t.push(null)}return no(o,i,u)},$c.selectAll=function(n){var t,r,e,u,i,o=this.id,a=this.namespace,c=[];n=L(n);for(var l=-1,f=this.length;++l<f;)for(var s=this[l],h=-1,p=s.length;++h<p;)if(e=s[h]){i=e[a][o],r=n.call(e,e.__data__,h,l),c.push(t=[]);for(var d=-1,g=r.length;++d<g;)(u=r[d])&&uo(u,d,a,o,i),t.push(u)}return no(c,a,o)},$c.filter=function(n){var t,r,e,u=[];"function"!=typeof n&&(n=Z(n));for(var i=0,o=this.length;i<o;i++){u.push(t=[]);for(var r=this[i],a=0,c=r.length;a<c;a++)(e=r[a])&&n.call(e,e.__data__,a,i)&&t.push(e)}return no(u,this.namespace,this.id)},$c.tween=function(n,t){var r=this.id,e=this.namespace;return arguments.length<2?this.node()[e][r].tween.get(n):$(this,null==t?function(t){t[e][r].tween.remove(n)}:function(u){u[e][r].tween.set(n,t)})},$c.attr=function(n,t){function r(){this.removeAttribute(a)}function e(){this.removeAttributeNS(a.space,a.local)}function u(n){return null==n?r:(n+="",function(){var t,r=this.getAttribute(a);return r!==n&&(t=o(r,n),function(n){this.setAttribute(a,t(n))})})}function i(n){return null==n?e:(n+="",function(){var t,r=this.getAttributeNS(a.space,a.local);return r!==n&&(t=o(r,n),function(n){this.setAttributeNS(a.space,a.local,t(n))})})}if(arguments.length<2){for(t in n)this.attr(t,n[t]);return this}var o="transform"==n?Ke:Se,a=ho.ns.qualify(n);return to(this,"attr."+n,t,a.local?i:u)},$c.attrTween=function(n,t){function r(n,r){var e=t.call(this,n,r,this.getAttribute(u));return e&&function(n){this.setAttribute(u,e(n))}}function e(n,r){var e=t.call(this,n,r,this.getAttributeNS(u.space,u.local));return e&&function(n){this.setAttributeNS(u.space,u.local,e(n))}}var u=ho.ns.qualify(n);return this.tween("attr."+n,u.local?e:r)},$c.style=function(n,t,r){function e(){this.style.removeProperty(n)}function u(t){return null==t?e:(t+="",function(){var e,u=o(this).getComputedStyle(this,null).getPropertyValue(n);return u!==t&&(e=Se(u,t),function(t){this.style.setProperty(n,e(t),r)})})}var i=arguments.length;if(i<3){if("string"!=typeof n){i<2&&(t="");for(r in n)this.style(r,n[r],t);return this}r=""}return to(this,"style."+n,t,u)},$c.styleTween=function(n,t,r){function e(e,u){var i=t.call(this,e,u,o(this).getComputedStyle(this,null).getPropertyValue(n));return i&&function(t){this.style.setProperty(n,i(t),r)}}return arguments.length<3&&(r=""),this.tween("style."+n,e)},$c.text=function(n){return to(this,"text",n,ro)},$c.remove=function(){var n=this.namespace;return this.each("end.transition",function(){var t;this[n].count<2&&(t=this.parentNode)&&t.removeChild(this)})},$c.ease=function(n){var t=this.id,r=this.namespace;return arguments.length<1?this.node()[r][t].ease:("function"!=typeof n&&(n=ho.ease.apply(ho,arguments)),$(this,function(e){e[r][t].ease=n}))},$c.delay=function(n){var t=this.id,r=this.namespace;return arguments.length<1?this.node()[r][t].delay:$(this,"function"==typeof n?function(e,u,i){e[r][t].delay=+n.call(e,e.__data__,u,i)}:(n=+n,function(e){e[r][t].delay=n}))},$c.duration=function(n){var t=this.id,r=this.namespace;return arguments.length<1?this.node()[r][t].duration:$(this,"function"==typeof n?function(e,u,i){e[r][t].duration=Math.max(1,n.call(e,e.__data__,u,i))}:(n=Math.max(1,n),function(e){e[r][t].duration=n}))},$c.each=function(n,t){var r=this.id,e=this.namespace;if(arguments.length<2){var u=Zc,i=Vc;try{Vc=r,$(this,function(t,u,i){Zc=t[e][r],n.call(t,t.__data__,u,i)})}finally{Zc=u,Vc=i}}else $(this,function(u){var i=u[e][r];(i.event||(i.event=ho.dispatch("start","end","interrupt"))).on(n,t)});return this},$c.transition=function(){for(var n,t,r,e,u=this.id,i=++Xc,o=this.namespace,a=[],c=0,l=this.length;c<l;c++){a.push(n=[]);for(var t=this[c],f=0,s=t.length;f<s;f++)(r=t[f])&&(e=r[o][u],uo(r,f,o,i,{time:e.time,ease:e.ease,delay:e.delay+e.duration,duration:e.duration})),n.push(r)}return no(a,o,i)},ho.svg.axis=function(){function n(n){n.each(function(){var n,l=ho.select(this),f=this.__chart__||r,s=this.__chart__=r.copy(),h=null==c?s.ticks?s.ticks.apply(s,a):s.domain():c,p=null==t?s.tickFormat?s.tickFormat.apply(s,a):w:t,d=l.selectAll(".tick").data(h,s),g=d.enter().insert("g",".domain").attr("class","tick").style("opacity",Ho),v=ho.transition(d.exit()).style("opacity",Ho).remove(),y=ho.transition(d.order()).style("opacity",1),m=Math.max(u,0)+o,x=Xu(s),M=l.selectAll(".domain").data([0]),b=(M.enter().append("path").attr("class","domain"),ho.transition(M));g.append("line"),g.append("text");var _,S,k,E,j=g.select("line"),N=y.select("line"),A=d.select("text").text(p),C=g.select("text"),O=y.select("text"),z="top"===e||"left"===e?-1:1;if("bottom"===e||"top"===e?(n=io,_="x",k="y",S="x2",E="y2",A.attr("dy",z<0?"0em":".71em").style("text-anchor","middle"),b.attr("d","M"+x[0]+","+z*i+"V0H"+x[1]+"V"+z*i)):(n=oo,_="y",k="x",S="y2",E="x2",A.attr("dy",".32em").style("text-anchor",z<0?"end":"start"),b.attr("d","M"+z*i+","+x[0]+"H0V"+x[1]+"H"+z*i)),j.attr(E,z*u),C.attr(k,z*m),N.attr(S,0).attr(E,z*u),O.attr(_,0).attr(k,z*m),s.rangeBand){var T=s,L=T.rangeBand()/2;f=s=function(n){return T(n)+L}}else f.rangeBand?f=s:v.call(n,s,f);g.call(n,f,s),y.call(n,s,s)})}var t,r=ho.scale.linear(),e=Jc,u=6,i=6,o=3,a=[10],c=null;return n.scale=function(t){return arguments.length?(r=t,n):r},n.orient=function(t){return arguments.length?(e=t in Gc?t+"":Jc,n):e},n.ticks=function(){return arguments.length?(a=go(arguments),n):a},n.tickValues=function(t){return arguments.length?(c=t,n):c},n.tickFormat=function(r){return arguments.length?(t=r,n):t},n.tickSize=function(t){var r=arguments.length;return r?(u=+t,i=+arguments[r-1],n):u},n.innerTickSize=function(t){return arguments.length?(u=+t,n):u},n.outerTickSize=function(t){return arguments.length?(i=+t,n):i},n.tickPadding=function(t){return arguments.length?(o=+t,n):o},n.tickSubdivide=function(){return arguments.length&&n},n};var Jc="bottom",Gc={top:1,right:1,bottom:1,left:1};ho.svg.brush=function(){function n(i){i.each(function(){var i=ho.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",u).on("touchstart.brush",u),o=i.selectAll(".background").data([0]);o.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),i.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var a=i.selectAll(".resize").data(g,w);a.exit().remove(),a.enter().append("g").attr("class",function(n){return"resize "+n}).style("cursor",function(n){return Kc[n]}).append("rect").attr("x",function(n){return/[ew]$/.test(n)?-3:null}).attr("y",function(n){return/^[ns]/.test(n)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),
7a.style("display",n.empty()?"none":null);var c,s=ho.transition(i),h=ho.transition(o);l&&(c=Xu(l),h.attr("x",c[0]).attr("width",c[1]-c[0]),r(s)),f&&(c=Xu(f),h.attr("y",c[0]).attr("height",c[1]-c[0]),e(s)),t(s)})}function t(n){n.selectAll(".resize").attr("transform",function(n){return"translate("+s[+/e$/.test(n)]+","+h[+/^s/.test(n)]+")"})}function r(n){n.select(".extent").attr("x",s[0]),n.selectAll(".extent,.n>rect,.s>rect").attr("width",s[1]-s[0])}function e(n){n.select(".extent").attr("y",h[0]),n.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1]-h[0])}function u(){function u(){32==ho.event.keyCode&&(N||(x=null,O[0]-=s[1],O[1]-=h[1],N=2),A())}function g(){32==ho.event.keyCode&&2==N&&(O[0]+=s[1],O[1]+=h[1],N=0,A())}function v(){var n=ho.mouse(b),u=!1;M&&(n[0]+=M[0],n[1]+=M[1]),N||(ho.event.altKey?(x||(x=[(s[0]+s[1])/2,(h[0]+h[1])/2]),O[0]=s[+(n[0]<x[0])],O[1]=h[+(n[1]<x[1])]):x=null),E&&y(n,l,0)&&(r(S),u=!0),j&&y(n,f,1)&&(e(S),u=!0),u&&(t(S),w({type:"brush",mode:N?"move":"resize"}))}function y(n,t,r){var e,u,o=Xu(t),c=o[0],l=o[1],f=O[r],g=r?h:s,v=g[1]-g[0];if(N&&(c-=f,l-=v+f),e=(r?d:p)?Math.max(c,Math.min(l,n[r])):n[r],N?u=(e+=f)+v:(x&&(f=Math.max(c,Math.min(l,2*x[r]-e))),f<e?(u=e,e=f):u=f),g[0]!=e||g[1]!=u)return r?a=null:i=null,g[0]=e,g[1]=u,!0}function m(){v(),S.style("pointer-events","all").selectAll(".resize").style("display",n.empty()?"none":null),ho.select("body").style("cursor",null),z.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),C(),w({type:"brushend"})}var x,M,b=this,_=ho.select(ho.event.target),w=c.of(b,arguments),S=ho.select(b),k=_.datum(),E=!/^(n|s)$/.test(k)&&l,j=!/^(e|w)$/.test(k)&&f,N=_.classed("extent"),C=nn(b),O=ho.mouse(b),z=ho.select(o(b)).on("keydown.brush",u).on("keyup.brush",g);if(ho.event.changedTouches?z.on("touchmove.brush",v).on("touchend.brush",m):z.on("mousemove.brush",v).on("mouseup.brush",m),S.interrupt().selectAll("*").interrupt(),N)O[0]=s[0]-O[0],O[1]=h[0]-O[1];else if(k){var T=+/w$/.test(k),L=+/^n/.test(k);M=[s[1-T]-O[0],h[1-L]-O[1]],O[0]=s[T],O[1]=h[L]}else ho.event.altKey&&(x=O.slice());S.style("pointer-events","none").selectAll(".resize").style("display",null),ho.select("body").style("cursor",_.style("cursor")),w({type:"brushstart"}),v()}var i,a,c=O(n,"brushstart","brush","brushend"),l=null,f=null,s=[0,0],h=[0,0],p=!0,d=!0,g=Qc[0];return n.event=function(n){n.each(function(){var n=c.of(this,arguments),t={x:s,y:h,i:i,j:a},r=this.__chart__||t;this.__chart__=t,Vc?ho.select(this).transition().each("start.brush",function(){i=r.i,a=r.j,s=r.x,h=r.y,n({type:"brushstart"})}).tween("brush:brush",function(){var r=ke(s,t.x),e=ke(h,t.y);return i=a=null,function(u){s=t.x=r(u),h=t.y=e(u),n({type:"brush",mode:"resize"})}}).each("end.brush",function(){i=t.i,a=t.j,n({type:"brush",mode:"resize"}),n({type:"brushend"})}):(n({type:"brushstart"}),n({type:"brush",mode:"resize"}),n({type:"brushend"}))})},n.x=function(t){return arguments.length?(l=t,g=Qc[!l<<1|!f],n):l},n.y=function(t){return arguments.length?(f=t,g=Qc[!l<<1|!f],n):f},n.clamp=function(t){return arguments.length?(l&&f?(p=!!t[0],d=!!t[1]):l?p=!!t:f&&(d=!!t),n):l&&f?[p,d]:l?p:f?d:null},n.extent=function(t){var r,e,u,o,c;return arguments.length?(l&&(r=t[0],e=t[1],f&&(r=r[0],e=e[0]),i=[r,e],l.invert&&(r=l(r),e=l(e)),e<r&&(c=r,r=e,e=c),r==s[0]&&e==s[1]||(s=[r,e])),f&&(u=t[0],o=t[1],l&&(u=u[1],o=o[1]),a=[u,o],f.invert&&(u=f(u),o=f(o)),o<u&&(c=u,u=o,o=c),u==h[0]&&o==h[1]||(h=[u,o])),n):(l&&(i?(r=i[0],e=i[1]):(r=s[0],e=s[1],l.invert&&(r=l.invert(r),e=l.invert(e)),e<r&&(c=r,r=e,e=c))),f&&(a?(u=a[0],o=a[1]):(u=h[0],o=h[1],f.invert&&(u=f.invert(u),o=f.invert(o)),o<u&&(c=u,u=o,o=c))),l&&f?[[r,u],[e,o]]:l?[r,e]:f&&[u,o])},n.clear=function(){return n.empty()||(s=[0,0],h=[0,0],i=a=null),n},n.empty=function(){return!!l&&s[0]==s[1]||!!f&&h[0]==h[1]},ho.rebind(n,c,"on")};var Kc={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Qc=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],nl=xa.format=ka.timeFormat,tl=nl.utc,rl=tl("%Y-%m-%dT%H:%M:%S.%LZ");nl.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?ao:rl,ao.parse=function(n){var t=new Date(n);return isNaN(t)?null:t},ao.toString=rl.toString,xa.second=Zn(function(n){return new Ma(1e3*Math.floor(n/1e3))},function(n,t){n.setTime(n.getTime()+1e3*Math.floor(t))},function(n){return n.getSeconds()}),xa.seconds=xa.second.range,xa.seconds.utc=xa.second.utc.range,xa.minute=Zn(function(n){return new Ma(6e4*Math.floor(n/6e4))},function(n,t){n.setTime(n.getTime()+6e4*Math.floor(t))},function(n){return n.getMinutes()}),xa.minutes=xa.minute.range,xa.minutes.utc=xa.minute.utc.range,xa.hour=Zn(function(n){var t=n.getTimezoneOffset()/60;return new Ma(36e5*(Math.floor(n/36e5-t)+t))},function(n,t){n.setTime(n.getTime()+36e5*Math.floor(t))},function(n){return n.getHours()}),xa.hours=xa.hour.range,xa.hours.utc=xa.hour.utc.range,xa.month=Zn(function(n){return n=xa.day(n),n.setDate(1),n},function(n,t){n.setMonth(n.getMonth()+t)},function(n){return n.getMonth()}),xa.months=xa.month.range,xa.months.utc=xa.month.utc.range;var el=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],ul=[[xa.second,1],[xa.second,5],[xa.second,15],[xa.second,30],[xa.minute,1],[xa.minute,5],[xa.minute,15],[xa.minute,30],[xa.hour,1],[xa.hour,3],[xa.hour,6],[xa.hour,12],[xa.day,1],[xa.day,2],[xa.week,1],[xa.month,1],[xa.month,3],[xa.year,1]],il=nl.multi([[".%L",function(n){return n.getMilliseconds()}],[":%S",function(n){return n.getSeconds()}],["%I:%M",function(n){return n.getMinutes()}],["%I %p",function(n){return n.getHours()}],["%a %d",function(n){return n.getDay()&&1!=n.getDate()}],["%b %d",function(n){return 1!=n.getDate()}],["%B",function(n){return n.getMonth()}],["%Y",qt]]),ol={range:function(n,t,r){return ho.range(Math.ceil(n/r)*r,+t,r).map(lo)},floor:w,ceil:w};ul.year=xa.year,xa.scale=function(){return co(ho.scale.linear(),ul,il)};var al=ul.map(function(n){return[n[0].utc,n[1]]}),cl=tl.multi([[".%L",function(n){return n.getUTCMilliseconds()}],[":%S",function(n){return n.getUTCSeconds()}],["%I:%M",function(n){return n.getUTCMinutes()}],["%I %p",function(n){return n.getUTCHours()}],["%a %d",function(n){return n.getUTCDay()&&1!=n.getUTCDate()}],["%b %d",function(n){return 1!=n.getUTCDate()}],["%B",function(n){return n.getUTCMonth()}],["%Y",qt]]);al.year=xa.year.utc,xa.scale.utc=function(){return co(ho.scale.linear(),al,cl)},ho.text=Tn(function(n){return n.responseText}),ho.json=function(n,t){return Ln(n,"application/json",fo,t)},ho.html=function(n,t){return Ln(n,"text/html",so,t)},ho.xml=Tn(function(n){return n.responseXML}),this.d3=ho,e=ho,u="function"==typeof e?e.call(t,r,t,n):e,!(void 0!==u&&(n.exports=u))}()},function(n,t,r){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function u(n){function t(t){t.on({"mouseover.tip":function(t){var e=n.mouse(x),u=e[0],o=e[1],s=a||u+l.left,h=c||o-l.top;m.selectAll("div."+r).remove(),y=m.append("div").attr(f(r)(d)).style(i({position:"absolute","z-index":1001,left:s+"px",top:h+"px"},v)).html(function(){return g(t)})},"mousemove.tip":function(t){var r=n.mouse(x),e=r[0],u=r[1],i=a||e+l.left,o=c||u-l.top;y.style({left:i+"px",top:o+"px"}).html(function(){return g(t)})},"mouseout.tip":function(){return y.remove()}})}var r=arguments.length<=1||void 0===arguments[1]?"tooltip":arguments[1],e=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],u=i({},h,e),a=u.left,c=u.top,l=u.offset,p=u.root,d={"class":r},g=function(){return""},v={},y=void 0,m=p||n.select("body"),x=m.node();return t.attr=function(n){return(0,o.is)(Object,n)&&(d=i({},d,n)),this},t.style=function(n){return(0,o.is)(Object,n)&&(v=i({},v,n)),this},t.text=function(n){return g=s(n),this},t}var i=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e])}return n};t.__esModule=!0,t.default=u;var o=r(4),a=r(40),c=e(a),l=c.default.default||c.default,f=l.prependClass,s=l.functor,h={left:void 0,top:void 0,offset:{left:0,top:0},root:void 0}},function(n,t,r){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}t.__esModule=!0;var u=r(41),i=e(u),o=r(15),a=e(o);t.default={prependClass:i.default,functor:a.default}},function(n,t,r){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function u(n){return(0,o.mapObjIndexed)(function(t,r){if("class"===r){var e=function(){var r=(0,c.default)(t);return{v:function(t,e){var u=r(t,e);return u!==n?(0,o.join)(" ",[n,u]):u}}}();if("object"===("undefined"==typeof e?"undefined":i(e)))return e.v}return t})}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};t.__esModule=!0,t.default=u;var o=r(4),a=r(15),c=e(a)},function(n,t,r){var e,u;!function(i,o){e=o,u="function"==typeof e?e.call(t,r,t,n):e,!(void 0!==u&&(n.exports=u))}(this,function(){return function n(t,r){var e=Array.isArray(r),u=e&&[]||{};return e?(t=t||[],u=u.concat(t),r.forEach(function(r,e){"undefined"==typeof u[e]?u[e]=r:"object"==typeof r?u[e]=n(t[e],r):t.indexOf(r)===-1&&u.push(r)})):(t&&"object"==typeof t&&Object.keys(t).forEach(function(n){u[n]=t[n]}),Object.keys(r).forEach(function(e){"object"==typeof r[e]&&r[e]&&t[e]?u[e]=n(t[e],r[e]):u[e]=r[e]})),u}})},function(n,t){n.exports=function(){function n(t,r){if(t instanceof Array){var e;return e=r?t.sort():t}if("object"==typeof t){var u={};return Object.keys(t).sort().forEach(function(r){u[r]=n(t[r])}),u}return t}return function(t){return JSON.stringify(n(t,!0),void 0,2)}}()},function(n,t,r){function e(){}var u=r(7),i=Object.prototype;e.prototype=u?u(null):i,n.exports=e},function(n,t,r){function e(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}var u=r(78),i=r(79),o=r(80),a=r(81),c=r(82);e.prototype.clear=u,e.prototype.delete=i,e.prototype.get=o,e.prototype.has=a,e.prototype.set=c,n.exports=e},function(n,t,r){var e=r(10),u=r(8),i=e(u,"Set");n.exports=i},function(n,t,r){var e=r(8),u=e.Uint8Array;n.exports=u},function(n,t){function r(n,t){for(var r=-1,e=n.length,u=Array(e);++r<e;)u[r]=t(n[r],r,n);return u}n.exports=r},function(n,t){function r(n,t){for(var r=-1,e=n.length;++r<e;)if(t(n[r],r,n))return!0;return!1}n.exports=r},function(n,t,r){var e=r(64),u=e();n.exports=u},function(n,t,r){function e(n,t){return n&&u(n,t,i)}var u=r(50),i=r(14);n.exports=e},function(n,t){function r(n,t){return t in Object(n)}n.exports=r},function(n,t,r){function e(n,t,r,e,v,m){var x=l(n),M=l(t),b=d,_=d;x||(b=c(n),b==p?b=g:b!=g&&(x=s(n))),M||(_=c(t),_==p?_=g:_!=g&&(M=s(t)));var w=b==g&&!f(n),S=_==g&&!f(t),k=b==_;if(k&&!x&&!w)return o(n,t,b,r,e,v);var E=v&h;if(!E){var j=w&&y.call(n,"__wrapped__"),N=S&&y.call(t,"__wrapped__");if(j||N)return r(j?n.value():n,N?t.value():t,e,v,m)}return!!k&&(m||(m=new u),(x?i:a)(n,t,r,e,v,m))}var u=r(16),i=r(65),o=r(66),a=r(67),c=r(70),l=r(1),f=r(11),s=r(99),h=2,p="[object Arguments]",d="[object Array]",g="[object Object]",v=Object.prototype,y=v.hasOwnProperty;n.exports=e},function(n,t,r){function e(n,t,r,e){var c=r.length,l=c,f=!e;if(null==n)return!l;for(n=Object(n);c--;){var s=r[c];if(f&&s[2]?s[1]!==n[s[0]]:!(s[0]in n))return!1}for(;++c<l;){s=r[c];var h=s[0],p=n[h],d=s[1];if(f&&s[2]){if(void 0===p&&!(h in n))return!1}else{var g=new u,v=e?e(p,d,h,n,t,g):void 0;if(!(void 0===v?i(d,p,e,o|a,g):v))return!1}}return!0}var u=r(16),i=r(24),o=1,a=2;n.exports=e},function(n,t,r){function e(n){var t=typeof n;return"function"==t?n:null==n?o:"object"==t?a(n)?i(n[0],n[1]):u(n):c(n)}var u=r(57),i=r(58),o=r(94),a=r(1),c=r(102);n.exports=e},function(n,t){function r(n){return e(Object(n))}var e=Object.keys;n.exports=r},function(n,t,r){function e(n){var t=i(n);if(1==t.length&&t[0][2]){var r=t[0][0],e=t[0][1];return function(n){return null!=n&&(n[r]===e&&(void 0!==e||r in Object(n)))}}return function(r){return r===n||u(r,n,t)}}var u=r(54),i=r(69);n.exports=e},function(n,t,r){function e(n,t){return function(r){var e=i(r,n);return void 0===e&&e===t?o(r,n):u(t,e,void 0,a|c)}}var u=r(24),i=r(29),o=r(93),a=1,c=2;n.exports=e},function(n,t,r){function e(n){return function(t){return u(t,n)}}var u=r(22);n.exports=e},function(n,t){function r(n,t,r){var e=-1,u=n.length;t<0&&(t=-t>u?0:u+t),r=r>u?u:r,r<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(u);++e<u;)i[e]=n[e+t];return i}n.exports=r},function(n,t){function r(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}n.exports=r},function(n,t,r){function e(n,t){return u(t,function(t){return[t,n[t]]})}var u=r(48);n.exports=e},function(n,t){function r(n){return n&&n.Object===Object?n:null}n.exports=r},function(n,t){function r(n){return function(t,r,e){for(var u=-1,i=Object(t),o=e(t),a=o.length;a--;){var c=o[n?a:++u];if(r(i[c],c,i)===!1)break}return t}}n.exports=r},function(n,t,r){function e(n,t,r,e,a,c){var l=-1,f=a&o,s=a&i,h=n.length,p=t.length;if(h!=p&&!(f&&p>h))return!1;var d=c.get(n);if(d)return d==t;var g=!0;for(c.set(n,t);++l<h;){var v=n[l],y=t[l];if(e)var m=f?e(y,v,l,t,n,c):e(v,y,l,n,t,c);if(void 0!==m){if(m)continue;g=!1;break}if(s){if(!u(t,function(n){return v===n||r(v,n,e,a,c)})){g=!1;break}}else if(v!==y&&!r(v,y,e,a,c)){g=!1;break}}return c.delete(n),g}var u=r(49),i=1,o=2;n.exports=e},function(n,t,r){function e(n,t,r,e,M,_){switch(r){case x:return!(n.byteLength!=t.byteLength||!e(new i(n),new i(t)));case f:case s:return+n==+t;case h:return n.name==t.name&&n.message==t.message;case d:return n!=+n?t!=+t:n==+t;case g:case y:return n==t+"";case p:var w=o;case v:var S=_&l;return w||(w=a),(S||n.size==t.size)&&e(w(n),w(t),M,_|c);case m:return!!u&&b.call(n)==b.call(t)}return!1}var u=r(17),i=r(47),o=r(83),a=r(85),c=1,l=2,f="[object Boolean]",s="[object Date]",h="[object Error]",p="[object Map]",d="[object Number]",g="[object RegExp]",v="[object Set]",y="[object String]",m="[object Symbol]",x="[object ArrayBuffer]",M=u?u.prototype:void 0,b=u?M.valueOf:void 0;n.exports=e},function(n,t,r){function e(n,t,r,e,a,c){var l=a&o,f=i(n),s=f.length,h=i(t),p=h.length;if(s!=p&&!l)return!1;for(var d=s;d--;){var g=f[d];if(!(l?g in t:u(t,g)))return!1}var v=c.get(n);if(v)return v==t;var y=!0;c.set(n,t);for(var m=l;++d<s;){g=f[d];var x=n[g],M=t[g];if(e)var b=l?e(M,x,g,t,n,c):e(x,M,g,n,t,c);if(!(void 0===b?x===M||r(x,M,e,a,c):b)){y=!1;break}m||(m="constructor"==g)}if(y&&!m){var _=n.constructor,w=t.constructor;_!=w&&"constructor"in n&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w)&&(y=!1)}return c.delete(n),y}var u=r(23),i=r(14),o=2;n.exports=e},function(n,t,r){var e=r(25),u=e("length");n.exports=u},function(n,t,r){function e(n){for(var t=i(n),r=t.length;r--;)t[r][2]=u(t[r][1]);return t}var u=r(77),i=r(103);n.exports=e},function(n,t,r){function e(n){return s.call(n)}var u=r(3),i=r(46),o="[object Map]",a="[object Object]",c="[object Set]",l=Object.prototype,f=Function.prototype.toString,s=l.toString,h=u?f.call(u):"",p=i?f.call(i):"";(u&&e(new u)!=o||i&&e(new i)!=c)&&(e=function(n){var t=s.call(n),r=t==a?n.constructor:null,e="function"==typeof r?f.call(r):"";if(e){if(e==h)return o;if(e==p)return c}return t}),n.exports=e},function(n,t,r){function e(n,t,r){if(null==n)return!1;var e=r(n,t);e||c(t)||(t=u(t),n=h(n,t),null!=n&&(t=s(t),e=r(n,t)));var p=n?n.length:void 0;return e||!!p&&l(p)&&a(t,p)&&(o(n)||f(n)||i(n))}var u=r(26),i=r(30),o=r(1),a=r(28),c=r(12),l=r(9),f=r(33),s=r(100),h=r(84);n.exports=e},function(n,t,r){function e(n,t){return u(n,t)&&delete n[t]}var u=r(27);n.exports=e},function(n,t,r){function e(n,t){if(u){var r=n[t];return r===i?void 0:r}return a.call(n,t)?n[t]:void 0}var u=r(7),i="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;n.exports=e},function(n,t,r){function e(n,t,r){n[t]=u&&void 0===r?i:r}var u=r(7),i="__lodash_hash_undefined__";n.exports=e},function(n,t,r){function e(n){var t=n?n.length:void 0;return a(t)&&(o(n)||c(n)||i(n))?u(t,String):null}var u=r(61),i=r(30),o=r(1),a=r(9),c=r(33);n.exports=e},function(n,t){function r(n){var t=n&&n.constructor,r="function"==typeof t&&t.prototype||e;return n===r}var e=Object.prototype;n.exports=r},function(n,t,r){function e(n){return n===n&&!u(n)}var u=r(13);n.exports=e},function(n,t,r){function e(){this.__data__={hash:new u,map:i?new i:[],string:new u}}var u=r(44),i=r(3);n.exports=e},function(n,t,r){function e(n){var t=this.__data__;return a(n)?o("string"==typeof n?t.string:t.hash,n):u?t.map.delete(n):i(t.map,n)}var u=r(3),i=r(18),o=r(72),a=r(6);n.exports=e},function(n,t,r){function e(n){var t=this.__data__;return a(n)?o("string"==typeof n?t.string:t.hash,n):u?t.map.get(n):i(t.map,n)}var u=r(3),i=r(19),o=r(73),a=r(6);n.exports=e},function(n,t,r){function e(n){var t=this.__data__;return a(n)?o("string"==typeof n?t.string:t.hash,n):u?t.map.has(n):i(t.map,n)}var u=r(3),i=r(20),o=r(27),a=r(6);n.exports=e},function(n,t,r){function e(n,t){var r=this.__data__;return a(n)?o("string"==typeof n?r.string:r.hash,n,t):u?r.map.set(n,t):i(r.map,n,t),this}var u=r(3),i=r(21),o=r(74),a=r(6);n.exports=e},function(n,t){function r(n){var t=-1,r=Array(n.size);return n.forEach(function(n,e){r[++t]=[e,n]}),r}n.exports=r},function(n,t,r){function e(n,t){return 1==t.length?n:i(n,u(t,0,-1))}var u=r(60),i=r(29);n.exports=e},function(n,t){function r(n){var t=-1,r=Array(n.size);return n.forEach(function(n){r[++t]=n}),r}n.exports=r},function(n,t){function r(){this.__data__={array:[],map:null}}n.exports=r},function(n,t,r){function e(n){var t=this.__data__,r=t.array;return r?u(r,n):t.map.delete(n)}var u=r(18);n.exports=e},function(n,t,r){function e(n){var t=this.__data__,r=t.array;return r?u(r,n):t.map.get(n)}var u=r(19);n.exports=e},function(n,t,r){function e(n){var t=this.__data__,r=t.array;return r?u(r,n):t.map.has(n)}var u=r(20);n.exports=e},function(n,t,r){function e(n,t){var r=this.__data__,e=r.array;e&&(e.length<o-1?i(e,n,t):(r.array=null,r.map=new u(e)));var a=r.map;return a&&a.set(n,t),this}var u=r(45),i=r(21),o=200;n.exports=e},function(n,t,r){function e(n){var t=[];return u(n).replace(i,function(n,r,e,u){t.push(e?u.replace(o,"$1"):r||n)}),t}var u=r(104),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,o=/\\(\\)?/g;n.exports=e},function(n,t){function r(n,t){return n===t||n!==n&&t!==t}n.exports=r},function(n,t,r){function e(n,t){return i(n,t,u)}var u=r(52),i=r(71);n.exports=e},function(n,t){function r(n){return n}n.exports=r},function(n,t,r){function e(n){return i(n)&&u(n)}var u=r(31),i=r(2);n.exports=e},function(n,t,r){function e(n){return null!=n&&(u(n)?h.test(f.call(n)):o(n)&&(i(n)?h:c).test(n))}var u=r(32),i=r(11),o=r(2),a=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,l=Object.prototype,f=Function.prototype.toString,s=l.hasOwnProperty,h=RegExp("^"+f.call(s).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");n.exports=e},function(n,t,r){function e(n){if(!i(n)||f.call(n)!=o||u(n))return!1;var t=a;if("function"==typeof n.constructor&&(t=s(n)),null===t)return!0;var r=t.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==l}var u=r(11),i=r(2),o="[object Object]",a=Object.prototype,c=Function.prototype.toString,l=c.call(Object),f=a.toString,s=Object.getPrototypeOf;n.exports=e},function(n,t,r){function e(n){return"symbol"==typeof n||u(n)&&a.call(n)==i}var u=r(2),i="[object Symbol]",o=Object.prototype,a=o.toString;n.exports=e},function(n,t,r){function e(n){return i(n)&&u(n.length)&&!!A[O.call(n)]}var u=r(9),i=r(2),o="[object Arguments]",a="[object Array]",c="[object Boolean]",l="[object Date]",f="[object Error]",s="[object Function]",h="[object Map]",p="[object Number]",d="[object Object]",g="[object RegExp]",v="[object Set]",y="[object String]",m="[object WeakMap]",x="[object ArrayBuffer]",M="[object Float32Array]",b="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",S="[object Int32Array]",k="[object Uint8Array]",E="[object Uint8ClampedArray]",j="[object Uint16Array]",N="[object Uint32Array]",A={};A[M]=A[b]=A[_]=A[w]=A[S]=A[k]=A[E]=A[j]=A[N]=!0,A[o]=A[a]=A[x]=A[c]=A[l]=A[f]=A[s]=A[h]=A[p]=A[d]=A[g]=A[v]=A[y]=A[m]=!1;var C=Object.prototype,O=C.toString;n.exports=e},function(n,t){function r(n){var t=n?n.length:0;return t?n[t-1]:void 0}n.exports=r},function(n,t,r){function e(n,t){var r={};return t=i(t,3),u(n,function(n,e,u){r[e]=t(n,e,u)}),r}var u=r(51),i=r(55);n.exports=e},function(n,t,r){function e(n){return o(n)?u(n):i(n)}var u=r(25),i=r(59),o=r(12);n.exports=e},function(n,t,r){function e(n){return u(n,i(n))}var u=r(62),i=r(14);n.exports=e},function(n,t,r){function e(n){if("string"==typeof n)return n;if(null==n)return"";if(i(n))return u?c.call(n):"";var t=n+"";return"0"==t&&1/n==-o?"-0":t}var u=r(17),i=r(98),o=1/0,a=u?u.prototype:void 0,c=u?a.toString:void 0;n.exports=e},function(n,t,r){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function u(n,t,r){if(n){t(n);var e=r(n);if(e)for(var i=e.length,o=0;o<i;o++)u(e[o],t,r)}}function i(n,t){var r=null;return u(n,function(n){n.name===t&&(r=n)},function(n){return n.children}),r}function o(n){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=arguments.length<=2||void 0===arguments[2]?{name:t.key||"state",children:[]}:arguments[2];if(!(0,f.default)(n)&&n&&!n.toJS)return{};var e=t.key,u=void 0===e?"state":e,a=t.pushMethod,l=void 0===a?"push":a,s=i(r,u);return null===s?{}:((0,h.default)(n&&n.toJS?n.toJS():n,function(n,t){var e=n&&n.toJS?n.toJS():n,u={name:t};if((0,c.default)(e)){u.children=[];for(var i=0;i<e.length;i++){var a;u.children[l]((a={name:t+"["+i+"]"},a[(0,f.default)(e[i])?"object":"value"]=e[i],a))}}else(0,f.default)(e)?u.children=[]:u.value=e;s.children[l](u),o(e,{key:t,pushMethod:l},r)}),r)}t.__esModule=!0,t.default=o;var a=r(1),c=e(a),l=r(97),f=e(l),s=r(101),h=e(s)},function(n,t){n.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children=[],n.webpackPolyfill=1),n}}])});
\No newline at end of file