UNPKG

238 kBJavaScriptView Raw
1!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["d3-state-visualizer"]=n():t["d3-state-visualizer"]=n()}(this,function(){return function(t){function n(e){if(r[e])return r[e].exports;var i=r[e]={exports:{},id:e,loaded:!1};return t[e].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var r={};return n.m=t,n.c=r,n.p="",n(0)}([function(t,n,r){"use strict";function e(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n.default=t,n}n.__esModule=!0,n.tree=void 0;var i=r(35);Object.defineProperty(n,"tree",{enumerable:!0,get:function(){return i.tree}});var o=e(i);n.default=o},function(t,n){var r=Array.isArray;t.exports=r},function(t,n){function r(t){return!!t&&"object"==typeof t}t.exports=r},function(t,n,r){var e=r(10),i=r(8),o=e(i,"Map");t.exports=o},function(t,n,r){(function(){"use strict";var n={"@@functional/placeholder":!0},r=function(t,n){switch(t){case 0:return function(){return n.apply(this,arguments)};case 1:return function(t){return n.apply(this,arguments)};case 2:return function(t,r){return n.apply(this,arguments)};case 3:return function(t,r,e){return n.apply(this,arguments)};case 4:return function(t,r,e,i){return n.apply(this,arguments)};case 5:return function(t,r,e,i,o){return n.apply(this,arguments)};case 6:return function(t,r,e,i,o,u){return n.apply(this,arguments)};case 7:return function(t,r,e,i,o,u,a){return n.apply(this,arguments)};case 8:return function(t,r,e,i,o,u,a,c){return n.apply(this,arguments)};case 9:return function(t,r,e,i,o,u,a,c,f){return n.apply(this,arguments)};case 10:return function(t,r,e,i,o,u,a,c,f,l){return n.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}},e=function(t){return new RegExp(t.source,(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":""))},i=function(t){return function(){return!t.apply(this,arguments)}},o=function(t,n){t=t||[],n=n||[];var r,e=t.length,i=n.length,o=[];for(r=0;r<e;)o[o.length]=t[r],r+=1;for(r=0;r<i;)o[o.length]=n[r],r+=1;return o},u=function(t,n,r){for(var e=0,i=r.length;e<i;){if(t(n,r[e]))return!0;e+=1}return!1},a=function(t){return function n(r){return 0===arguments.length?n:null!=r&&r["@@functional/placeholder"]===!0?n:t.apply(this,arguments)}},c=function(t){return function n(r,e){var i=arguments.length;return 0===i?n:1===i&&null!=r&&r["@@functional/placeholder"]===!0?n:1===i?a(function(n){return t(r,n)}):2===i&&null!=r&&r["@@functional/placeholder"]===!0&&null!=e&&e["@@functional/placeholder"]===!0?n:2===i&&null!=r&&r["@@functional/placeholder"]===!0?a(function(n){return t(n,e)}):2===i&&null!=e&&e["@@functional/placeholder"]===!0?a(function(n){return t(r,n)}):t(r,e)}},f=function(t){return function n(r,e,i){var o=arguments.length;return 0===o?n:1===o&&null!=r&&r["@@functional/placeholder"]===!0?n:1===o?c(function(n,e){return t(r,n,e)}):2===o&&null!=r&&r["@@functional/placeholder"]===!0&&null!=e&&e["@@functional/placeholder"]===!0?n:2===o&&null!=r&&r["@@functional/placeholder"]===!0?c(function(n,r){return t(n,e,r)}):2===o&&null!=e&&e["@@functional/placeholder"]===!0?c(function(n,e){return t(r,n,e)}):2===o?a(function(n){return t(r,e,n)}):3===o&&null!=r&&r["@@functional/placeholder"]===!0&&null!=e&&e["@@functional/placeholder"]===!0&&null!=i&&i["@@functional/placeholder"]===!0?n:3===o&&null!=r&&r["@@functional/placeholder"]===!0&&null!=e&&e["@@functional/placeholder"]===!0?c(function(n,r){return t(n,r,i)}):3===o&&null!=r&&r["@@functional/placeholder"]===!0&&null!=i&&i["@@functional/placeholder"]===!0?c(function(n,r){return t(n,e,r)}):3===o&&null!=e&&e["@@functional/placeholder"]===!0&&null!=i&&i["@@functional/placeholder"]===!0?c(function(n,e){return t(r,n,e)}):3===o&&null!=r&&r["@@functional/placeholder"]===!0?a(function(n){return t(n,e,i)}):3===o&&null!=e&&e["@@functional/placeholder"]===!0?a(function(n){return t(r,n,i)}):3===o&&null!=i&&i["@@functional/placeholder"]===!0?a(function(n){return t(r,e,n)}):t(r,e,i)}},l=function ci(t,n,e){return function(){for(var i=[],o=0,u=t,a=0;a<n.length||o<arguments.length;){var c;a<n.length&&(null==n[a]||n[a]["@@functional/placeholder"]!==!0||o>=arguments.length)?c=n[a]:(c=arguments[o],o+=1),i[a]=c,null!=c&&c["@@functional/placeholder"]===!0||(u-=1),a+=1}return u<=0?e.apply(this,i):r(u,ci(t,i,e))}},s=function(t,n){for(var r=0,e=n.length,i=[];r<e;)t(n[r])&&(i[i.length]=n[r]),r+=1;return i},h=function(t){return{"@@transducer/value":t,"@@transducer/reduced":!0}},p=function(t){return function(n){return s(function(t){return"function"==typeof n[t]},t(n))}},g=function(t,n){return Object.prototype.hasOwnProperty.call(n,t)},d=function(t){return t},v=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)},y=Number.isInteger||function(t){return t<<0===t},m=function(t){return"[object Number]"===Object.prototype.toString.call(t)},x=function(t){return"[object String]"===Object.prototype.toString.call(t)},b=function(t){return"function"==typeof t["@@transducer/step"]},M=function(t,n){for(var r=0,e=n.length,i=Array(e);r<e;)i[r]=t(n[r]),r+=1;return i},w=function(t,n){return function(){return n.call(this,t.apply(this,arguments))}},_=function(t,n){return function(){var r=this;return t.apply(r,arguments).then(function(t){return n.call(r,t)})}},E=function(t){return'"'+t.replace(/"/g,'\\"')+'"'},S=function(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}},A=function fi(t,n,r){switch(arguments.length){case 1:return fi(t,0,t.length);case 2:return fi(t,n,t.length);default:for(var e=[],i=0,o=Math.max(0,Math.min(t.length,r)-n);i<o;)e[i]=t[n+i],i+=1;return e}},k=function(){var t=function(t){return(t<10?"0":"")+t};return"function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(n){return n.getUTCFullYear()+"-"+t(n.getUTCMonth()+1)+"-"+t(n.getUTCDate())+"T"+t(n.getUTCHours())+":"+t(n.getUTCMinutes())+":"+t(n.getUTCSeconds())+"."+(n.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}}(),N=function(){function t(t,n){this.xf=n,this.pred=t,this.lastValue=void 0,this.seenFirstValue=!1}return t.prototype["@@transducer/init"]=function(){return this.xf["@@transducer/init"]()},t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){var r=!1;return this.seenFirstValue?this.pred(this.lastValue,n)&&(r=!0):this.seenFirstValue=!0,this.lastValue=n,r?t:this.xf["@@transducer/step"](t,n)},c(function(n,r){return new t(n,r)})}(),j={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}},C=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=j.init,t.prototype["@@transducer/result"]=j.result,t.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t},c(function(n,r){return new t(n,r)})}(),T=function(){function t(t,n){this.xf=n,this.f=t,this.found=!1}return t.prototype["@@transducer/init"]=j.init,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.found=!0,t=S(this.xf["@@transducer/step"](t,n))),t},c(function(n,r){return new t(n,r)})}(),O=function(){function t(t,n){this.xf=n,this.f=t,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=j.init,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,-1)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.idx+=1,this.f(n)&&(this.found=!0,t=S(this.xf["@@transducer/step"](t,this.idx))),t},c(function(n,r){return new t(n,r)})}(),R=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=j.init,t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.last))},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.last=n),t},c(function(n,r){return new t(n,r)})}(),P=function(){function t(t,n){this.xf=n,this.f=t,this.idx=-1,this.lastIdx=-1}return t.prototype["@@transducer/init"]=j.init,t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.lastIdx))},t.prototype["@@transducer/step"]=function(t,n){return this.idx+=1,this.f(n)&&(this.lastIdx=this.idx),t},c(function(n,r){return new t(n,r)})}(),L=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=j.init,t.prototype["@@transducer/result"]=j.result,t.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))},c(function(n,r){return new t(n,r)})}(),z=function(){function t(t,n){this.xf=n,this.n=t}return t.prototype["@@transducer/init"]=j.init,t.prototype["@@transducer/result"]=j.result,t.prototype["@@transducer/step"]=function(t,n){return 0===this.n?S(t):(this.n-=1,this.xf["@@transducer/step"](t,n))},c(function(n,r){return new t(n,r)})}(),U=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=j.init,t.prototype["@@transducer/result"]=j.result,t.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):S(t)},c(function(n,r){return new t(n,r)})}(),q=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},function(n){return new t(n)}}(),D=c(function(t,n){return t+n}),I=f(function(t,n,r){if(n>=r.length||n<-r.length)return r;var e=n<0?r.length:0,i=e+n,u=o(r);return u[i]=t(r[i]),u}),B=a(function(t){return function(){return t}}),Y=c(function(t,n){for(var r=0,e=n.length-(t-1),i=new Array(e>=0?e:0);r<e;)i[r]=A(n,r,r+t),r+=1;return i}),F=c(function(t,n){return o(n,[t])}),H=c(function(t,n){return t.apply(this,n)}),V=f(function(t,n,r){var e={};for(var i in r)e[i]=r[i];return e[t]=n,e}),Z=f(function li(t,n,r){switch(t.length){case 0:return r;case 1:return V(t[0],n,r);default:return V(t[0],li(A(t,1),n,Object(r[t[0]])),r)}}),$=c(function(t,n){return r(t.length,function(){return t.apply(n,arguments)})}),W=c(function(t,n){return function(){return t.apply(this,arguments)&&n.apply(this,arguments)}}),X=a(function(t){return function(n,r){return t(n,r)?-1:t(r,n)?1:0}}),J=a(i),G=a(function(t){return function(){for(var n=0;n<t.length;){if(t[n][0].apply(this,arguments))return t[n][1].apply(this,arguments);n+=1}}}),K=f(u),Q=c(function(t,n){for(var r={},e=n.length,i=0;i<e;){var o=t(n[i]);r[o]=(g(o,r)?r[o]:0)+1,i+=1}return r}),tt=c(function(t,n){var r={};return r[t]=n,r}),nt=c(function(t,n){return 1===t?a(n):r(t,l(t,[],n))}),rt=D(-1),et=c(function(t,n){return null==n?t:n}),it=f(function(t,n,r){for(var e=[],i=0,o=n.length,u=K(t);i<o;)u(n[i],r)||u(n[i],e)||(e[e.length]=n[i]),i+=1;return e}),ot=c(function(t,n){var r={};for(var e in n)e!==t&&(r[e]=n[e]);return r}),ut=c(function si(t,n){switch(t.length){case 0:return n;case 1:return ot(t[0],n);default:var r=t[0],e=A(t,1);return null==n[r]?n:V(r,si(e,n[r]),n)}}),at=c(function(t,n){return t/n}),ct=c(function(t,n){for(var r=n.length-1;r>=0&&t(n[r]);)r-=1;return A(n,0,r+1)}),ft=c(function(t,n){return function(){return t.apply(this,arguments)||n.apply(this,arguments)}}),lt=a(function(t){if(null!=t&&"function"==typeof t.empty)return t.empty();if(null!=t&&null!=typeof t.constructor&&"function"==typeof t.constructor.empty)return t.constructor.empty();switch(Object.prototype.toString.call(t)){case"[object Array]":return[];case"[object Object]":return{};case"[object String]":return""}}),st=c(function hi(t,n){var r,e,i,o={};for(e in n)r=t[e],i=typeof r,o[e]="function"===i?r(n[e]):"object"===i?hi(t[e],n[e]):n[e];return o}),ht=a(function(t){for(var n=0,r=t.length,e={};n<r;)v(t[n])&&t[n].length&&(e[t[n][0]]=t[n][1]),n+=1;return e}),pt=c(function(t,n){return t>n}),gt=c(function(t,n){return t>=n}),dt=c(g),vt=c(function(t,n){return t in n}),yt=c(function(t,n){return t===n?0!==t||1/t===1/n:t!==t&&n!==n}),mt=a(d),xt=f(function(t,n,r){return nt(Math.max(t.length,n.length,r.length),function(){return t.apply(this,arguments)?n.apply(this,arguments):r.apply(this,arguments)})}),bt=D(1),Mt=f(function(t,n,r){t=t<r.length&&t>=0?t:r.length;var e=A(r);return e.splice(t,0,n),e}),wt=f(function(t,n,r){return t=t<r.length&&t>=0?t:r.length,o(o(A(r,0,t),n),A(r,t))}),_t=c(function(t,n){return null!=n&&n.constructor===t||n instanceof t}),Et=a(function(t){return!!v(t)||!!t&&("object"==typeof t&&(!(t instanceof String)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}),St=a(function(t){return 0===Object(t).length}),At=a(function(t){return null==t}),kt=function(){var t=!{toString:null}.propertyIsEnumerable("toString"),n=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],r=function(t,n){for(var r=0;r<t.length;){if(t[r]===n)return!0;r+=1}return!1};return a("function"==typeof Object.keys?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(e){if(Object(e)!==e)return[];var i,o,u=[];for(i in e)g(i,e)&&(u[u.length]=i);if(t)for(o=n.length-1;o>=0;)i=n[o],g(i,e)&&!r(u,i)&&(u[u.length]=i),o-=1;return u})}(),Nt=a(function(t){var n,r=[];for(n in t)r[r.length]=n;return r}),jt=a(function(t){return null!=t&&_t(Number,t.length)?t.length:NaN}),Ct=c(function(t,n){return t<n}),Tt=c(function(t,n){return t<=n}),Ot=f(function(t,n,r){for(var e=0,i=r.length,o=[],u=[n];e<i;)u=t(u[0],r[e]),o[e]=u[1],e+=1;return[u[0],o]}),Rt=f(function(t,n,r){for(var e=r.length-1,i=[],o=[n];e>=0;)o=t(o[0],r[e]),i[e]=o[1],e-=1;return[o[0],i]}),Pt=c(function(t,n){return n.match(t)||[]}),Lt=c(function(t,n){return y(t)?!y(n)||n<1?NaN:(t%n+n)%n:NaN}),zt=c(function(t,n){return n>t?n:t}),Ut=f(function(t,n,r){return t(r)>t(n)?r:n}),qt=c(function(t,n){for(var r={},e=kt(t),i=0;i<e.length;)r[e[i]]=t[e[i]],i+=1;for(e=kt(n),i=0;i<e.length;)r[e[i]]=n[e[i]],i+=1;return r}),Dt=c(function(t,n){return n<t?n:t}),It=f(function(t,n,r){return t(r)<t(n)?r:n}),Bt=c(function(t,n){return t%n}),Yt=c(function(t,n){return t*n}),Ft=c(function(t,n){switch(t){case 0:return function(){return n.call(this)};case 1:return function(t){return n.call(this,t)};case 2:return function(t,r){return n.call(this,t,r)};case 3:return function(t,r,e){return n.call(this,t,r,e)};case 4:return function(t,r,e,i){return n.call(this,t,r,e,i)};case 5:return function(t,r,e,i,o){return n.call(this,t,r,e,i,o)};case 6:return function(t,r,e,i,o,u){return n.call(this,t,r,e,i,o,u)};case 7:return function(t,r,e,i,o,u,a){return n.call(this,t,r,e,i,o,u,a)};case 8:return function(t,r,e,i,o,u,a,c){return n.call(this,t,r,e,i,o,u,a,c)};case 9:return function(t,r,e,i,o,u,a,c,f){return n.call(this,t,r,e,i,o,u,a,c,f)};case 10:return function(t,r,e,i,o,u,a,c,f,l){return n.call(this,t,r,e,i,o,u,a,c,f,l)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}),Ht=a(function(t){return-t}),Vt=a(function(t){return!t}),Zt=c(function(t,n){var r=t<0?n.length+t:t;return x(n)?n.charAt(r):n[r]}),$t=a(function(t){return function(){return Zt(t,arguments)}}),Wt=c(function(t,n){return n.charAt(t<0?n.length+t:t)}),Xt=c(function(t,n){return n.charCodeAt(t<0?n.length+t:t)}),Jt=a(function(t){return[t]}),Gt=a(function(t){var n,r=!1;return function(){return r?n:(r=!0,n=t.apply(this,arguments))}}),Kt=function(){var t=function(n){return{value:n,map:function(r){return t(r(n))}}};return f(function(n,r,e){return n(function(n){return t(r(n))})(e).value})}(),Qt=c(function(t,n){if(null!=n){for(var r=n,e=0,i=t.length;e<i&&null!=r;e+=1)r=r[t[e]];return r}}),tn=c(function(t,n){for(var r={},e=0;e<t.length;)t[e]in n&&(r[t[e]]=n[t[e]]),e+=1;return r}),nn=c(function(t,n){for(var r={},e=0,i=t.length;e<i;){var o=t[e];r[o]=n[o],e+=1}return r}),rn=c(function(t,n){var r={};for(var e in n)t(n[e],e,n)&&(r[e]=n[e]);return r}),en=c(function(t,n){return o([t],n)}),on=c(function(t,n){return n[t]}),un=f(function(t,n,r){return null!=r&&g(n,r)?r[n]:t}),an=f(function(t,n,r){return t(r[n])}),cn=c(function(t,n){for(var r=t.length,e=[],i=0;i<r;)e[i]=n[t[i]],i+=1;return e}),fn=c(function(t,n){if(!m(t)||!m(n))throw new TypeError("Both arguments to range must be numbers");for(var r=[],e=t;e<n;)r.push(e),e+=1;return r}),ln=f(function(t,n,r){for(var e=r.length-1;e>=0;)n=t(n,r[e]),e-=1;return n}),sn=a(S),hn=f(function(t,n,r){return o(A(r,0,Math.min(t,r.length)),A(r,Math.min(r.length,t+n)))}),pn=f(function(t,n,r){return r.replace(t,n)}),gn=a(function(t){return A(t).reverse()}),dn=f(function(t,n,r){for(var e=0,i=r.length,o=[n];e<i;)n=t(n,r[e]),o[e+1]=n,e+=1;return o}),vn=f(function(t,n,r){return Kt(t,B(n),r)}),yn=c(function(t,n){return A(n).sort(t)}),mn=c(function(t,n){return A(n).sort(function(n,r){var e=t(n),i=t(r);return e<i?-1:e>i?1:0})}),xn=c(function(t,n){return t-n}),bn=c(function(t,n){for(var r=n.length-1;r>=0&&t(n[r]);)r-=1;return A(n,r+1,1/0)}),Mn=c(function(t,n){return t(n),n}),wn=c(function(t,n){return e(t).test(n)}),_n=c(function(t,n){for(var r=Number(n),e=new Array(r),i=0;i<r;)e[i]=t(i),i+=1;return e}),En=a(function(t){var n=[];for(var r in t)g(r,t)&&(n[n.length]=[r,t[r]]);return n}),Sn=a(function(t){var n=[];for(var r in t)n[n.length]=[r,t[r]];return n}),An=function(){var t="\t\n\x0B\f\r   ᠎              \u2028\u2029\ufeff",n="​",r="function"==typeof String.prototype.trim;return a(r&&!t.trim()&&n.trim()?function(t){return t.trim()}:function(n){var r=new RegExp("^["+t+"]["+t+"]*"),e=new RegExp("["+t+"]["+t+"]*$");return n.replace(r,"").replace(e,"")})}(),kn=a(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}),Nn=a(function(t){return function(){return t(A(arguments))}}),jn=a(function(t){return Ft(1,t)}),Cn=c(function(t,n){return nt(t,function(){for(var r,e=1,i=n,o=0;e<=t&&"function"==typeof i;)r=e===t?arguments.length:o+i.length,i=i.apply(this,A(arguments,o,r)),e+=1,o=r;return i})}),Tn=c(function(t,n){for(var r=t(n),e=[];r&&r.length;)e[e.length]=r[0],r=t(r[1]);return e}),On=c(function(t,n){for(var r,e=0,i=n.length,o=[];e<i;)r=n[e],u(t,r,o)||(o[o.length]=r),e+=1;return o}),Rn=f(function(t,n,r){return I(B(n),t,r)}),Pn=a(function(t){for(var n=kt(t),r=n.length,e=[],i=0;i<r;)e[i]=t[n[i]],i+=1;return e}),Ln=a(function(t){var n,r=[];for(n in t)r[r.length]=t[n];return r}),zn=function(){var t=function(t){return{value:t,map:function(){return this}}};return c(function(n,r){return n(t)(r).value})}(),Un=c(function(t,n){for(var r in t)if(g(r,t)&&!t[r](n[r]))return!1;return!0}),qn=c(function(t,n){return nt(t.length,function(){return n.apply(this,o([t],arguments))})}),Dn=c(function(t,n){for(var r,e=0,i=t.length,o=n.length,u=[];e<i;){for(r=0;r<o;)u[u.length]=[t[e],n[r]],r+=1;e+=1}return u}),In=c(function(t,n){for(var r=[],e=0,i=Math.min(t.length,n.length);e<i;)r[e]=[t[e],n[e]],e+=1;return r}),Bn=c(function(t,n){for(var r=0,e=t.length,i={};r<e;)i[t[r]]=n[r],r+=1;return i}),Yn=f(function(t,n,r){for(var e=[],i=0,o=Math.min(n.length,r.length);i<o;)e[i]=t(n[i],r[i]),i+=1;return e}),Fn=B(!1),Hn=B(!0),Vn=function(t,n){return function(){var r=arguments.length;if(0===r)return n();var e=arguments[r-1];return v(e)||"function"!=typeof e[t]?n.apply(this,arguments):e[t].apply(e,A(arguments,0,r-1))}},Zn=function pi(t,n,r){var i=function(e){for(var i=n.length,o=0;o<i;){if(t===n[o])return r[o];o+=1}n[o+1]=t,r[o+1]=e;for(var u in t)e[u]=pi(t[u],n,r);return e};switch(kn(t)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(t);case"RegExp":return e(t);default:return t}},$n=function(t){return function(n){var e=A(arguments,1);return r(Math.max(0,n.length-e.length),function(){return n.apply(this,t(e,arguments))})}},Wn=function(t,n,r){return function(){var e=arguments.length;if(0===e)return r();var i=arguments[e-1];if(!v(i)){var o=A(arguments,0,e-1);if("function"==typeof i[t])return i[t].apply(i,o);if(b(i)){var u=n.apply(null,o);return u(i)}}return r.apply(this,arguments)}},Xn=function gi(t,n,r,e){var i=kn(t);if(i!==kn(n))return!1;if("Boolean"===i||"Number"===i||"String"===i)return"object"==typeof t?"object"==typeof n&&yt(t.valueOf(),n.valueOf()):yt(t,n);if(yt(t,n))return!0;if("RegExp"===i)return t.source===n.source&&t.global===n.global&&t.ignoreCase===n.ignoreCase&&t.multiline===n.multiline&&t.sticky===n.sticky&&t.unicode===n.unicode;if(Object(t)===t){if("Date"===i&&t.getTime()!==n.getTime())return!1;var o=kt(t);if(o.length!==kt(n).length)return!1;for(var u=r.length-1;u>=0;){if(r[u]===t)return e[u]===n;u-=1}for(r[r.length]=t,e[e.length]=n,u=o.length-1;u>=0;){var a=o[u];if(!g(a,n)||!gi(n[a],t[a],r,e))return!1;u-=1}return r.pop(),e.pop(),!0}return!1},Jn=function(t,n){return null!=n&&!v(n)&&"function"==typeof n[t]},Gn=function(t){return function n(r){for(var e,i,o,u=[],a=0,c=r.length;a<c;){if(Et(r[a]))for(e=t?n(r[a]):r[a],i=0,o=e.length;i<o;)u[u.length]=e[i],i+=1;else u[u.length]=r[a];a+=1}return u}},Kn=function(){function t(t,n,r){for(var e=0,i=r.length;e<i;){if(n=t["@@transducer/step"](n,r[e]),n&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e+=1}return t["@@transducer/result"](n)}function n(t,n,r){for(var e=r.next();!e.done;){if(n=t["@@transducer/step"](n,e.value),n&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e=r.next()}return t["@@transducer/result"](n)}function r(t,n,r){return t["@@transducer/result"](r.reduce($(t["@@transducer/step"],t),n))}var e="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";return function(i,o,u){if("function"==typeof i&&(i=q(i)),Et(u))return t(i,o,u);if("function"==typeof u.reduce)return r(i,o,u);if(null!=u[e])return n(i,o,u[e]());if("function"==typeof u.next)return n(i,o,u);throw new TypeError("reduce: list must be array or iterable")}}(),Qn=function(){var t={"@@transducer/init":Array,"@@transducer/step":function(t,n){return o(t,[n])},"@@transducer/result":d},n={"@@transducer/init":String,"@@transducer/step":function(t,n){return t+n},"@@transducer/result":d},r={"@@transducer/init":Object,"@@transducer/step":function(t,n){return qt(t,Et(n)?tt(n[0],n[1]):n)},"@@transducer/result":d};return function(e){if(b(e))return e;if(Et(e))return t;if("string"==typeof e)return n;if("object"==typeof e)return r;throw new Error("Cannot create transformer for "+e)}}(),tr=function(){function t(t,n){this.xf=n,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=j.init,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)||(this.all=!1,t=S(this.xf["@@transducer/step"](t,!1))),t},c(function(n,r){return new t(n,r)})}(),nr=function(){function t(t,n){this.xf=n,this.f=t,this.any=!1}return t.prototype["@@transducer/init"]=j.init,t.prototype["@@transducer/result"]=function(t){return this.any||(t=this.xf["@@transducer/step"](t,!1)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.any=!0,t=S(this.xf["@@transducer/step"](t,!0))),t},c(function(n,r){return new t(n,r)})}(),rr=function(){function t(t,n){this.xf=n,this.n=t}return t.prototype["@@transducer/init"]=j.init,t.prototype["@@transducer/result"]=j.result,t.prototype["@@transducer/step"]=function(t,n){return this.n>0?(this.n-=1,t):this.xf["@@transducer/step"](t,n)},c(function(n,r){return new t(n,r)})}(),er=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=j.init,t.prototype["@@transducer/result"]=j.result,t.prototype["@@transducer/step"]=function(t,n){if(this.f){if(this.f(n))return t;this.f=null}return this.xf["@@transducer/step"](t,n)},c(function(n,r){return new t(n,r)})}(),ir=function(){function t(t,n){this.xf=n,this.f=t,this.inputs={}}return t.prototype["@@transducer/init"]=j.init,t.prototype["@@transducer/result"]=function(t){var n;for(n in this.inputs)if(g(n,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[n]),t["@@transducer/reduced"])){t=t["@@transducer/value"];break}return this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){var r=this.f(n);return this.inputs[r]=this.inputs[r]||[r,[]],this.inputs[r][1]=F(n,this.inputs[r][1]),t},c(function(n,r){return new t(n,r)})}(),or=a(function(t){return nt(t.length,function(){var n=0,r=arguments[0],e=arguments[arguments.length-1],i=A(arguments);return i[0]=function(){var t=r.apply(this,o(arguments,[n,e]));return n+=1,t},t.apply(this,i)})}),ur=c(Wn("all",tr,function(t,n){for(var r=0;r<n.length;){if(!t(n[r]))return!1;r+=1}return!0})),ar=c(function(t,n){return Jn("and",t)?t.and(n):t&&n}),cr=c(Wn("any",nr,function(t,n){for(var r=0;r<n.length;){if(t(n[r]))return!0;r+=1}return!1})),fr=a(function(t){return Ft(2,t)}),lr=a(function(t){return Zn(t,[],[])}),sr=c(function(t,n){if(v(n))return o(t,n);if(Jn("concat",t))return t.concat(n);throw new TypeError("can't concat "+typeof t)}),hr=a(function(t){return nt(t.length,t)}),pr=c(Wn("dropWhile",er,function(t,n){for(var r=0,e=n.length;r<e&&t(n[r]);)r+=1;return A(n,r)})),gr=c(function(t,n){return Jn("equals",t)?t.equals(n):Jn("equals",n)?n.equals(t):Xn(t,n,[],[])}),dr=c(Wn("filter",C,s)),vr=c(Wn("find",T,function(t,n){for(var r=0,e=n.length;r<e;){if(t(n[r]))return n[r];r+=1}})),yr=c(Wn("findIndex",O,function(t,n){for(var r=0,e=n.length;r<e;){if(t(n[r]))return r;r+=1}return-1})),mr=c(Wn("findLast",R,function(t,n){for(var r=n.length-1;r>=0;){if(t(n[r]))return n[r];r-=1}})),xr=c(Wn("findLastIndex",P,function(t,n){for(var r=n.length-1;r>=0;){if(t(n[r]))return r;r-=1}return-1})),br=a(Gn(!0)),Mr=a(function(t){return hr(function(n,r){var e=A(arguments);return e[0]=r,e[1]=n,t.apply(this,e)})}),wr=c(Vn("forEach",function(t,n){for(var r=n.length,e=0;e<r;)t(n[e]),e+=1;return n})),_r=a(p(kt)),Er=a(p(Nt)),Sr=c(Wn("groupBy",ir,function(t,n){return Kn(function(n,r){var e=t(r);return n[e]=F(r,n[e]||(n[e]=[])),n},{},n)})),Ar=Zt(0),kr=f(function(t,n,r){for(var e=[],i=0;i<n.length;)u(t,n[i],r)&&(e[e.length]=n[i]),i+=1;return On(t,e)}),Nr=c(Vn("intersperse",function(t,n){for(var r=[],e=0,i=n.length;e<i;)e===i-1?r.push(n[e]):r.push(n[e],t),e+=1;return r})),jr=f(function(t,n,r){return b(t)?Kn(n(t),t["@@transducer/init"](),r):Kn(n(Qn(t)),t,r)}),Cr=a(function(t){for(var n=kt(t),r=n.length,e=0,i={};e<r;){var o=n[e],u=t[o],a=g(u,i)?i[u]:i[u]=[];a[a.length]=o,e+=1}return i}),Tr=a(function(t){for(var n=kt(t),r=n.length,e=0,i={};e<r;){var o=n[e];i[t[o]]=o,e+=1}return i}),Or=Zt(-1),Rr=c(function(t,n){if(Jn("lastIndexOf",n))return n.lastIndexOf(t);for(var r=n.length-1;r>=0;){if(gr(n[r],t))return r;r-=1}return-1}),Pr=c(Wn("map",L,M)),Lr=c(function(t,n){return Kn(function(r,e){return r[e]=t(n[e]),r},{},kt(n))}),zr=c(function(t,n){return Kn(function(r,e){return r[e]=t(n[e],e,n),r},{},kt(n))}),Ur=c(i(Wn("any",nr,cr))),qr=c(function(t,n){return Jn("or",t)?t.or(n):t||n}),Dr=hr($n(o)),Ir=hr($n(Mr(o))),Br=c(function(t,n){return Kn(function(n,r){var e=n[t(r)?0:1];return e[e.length]=r,n},[[],[]],n)}),Yr=f(function(t,n,r){return gr(Qt(t,r),n)}),Fr=c(function(t,n){return Pr(on(t),n)}),Hr=f(function(t,n,r){return an(gr(n),t,r)}),Vr=f(function(t,n,r){return an(_t(t),n,r)}),Zr=f(Kn),$r=c(function(t,n){return dr(i(t),n)}),Wr=c(function(t,n){return _n(B(t),n)}),Xr=f(Vn("slice",function(t,n,r){return Array.prototype.slice.call(r,t,n)})),Jr=c(function(t,n){if(t<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var r=[],e=0;e<n.length;)r.push(Xr(e,e+=t,n));return r}),Gr=Zr(D,0),Kr=Vn("tail",Xr(1,1/0)),Qr=c(Wn("take",z,function(t,n){return Xr(0,t<0?1/0:t,n)})),te=c(Wn("takeWhile",U,function(t,n){for(var r=0,e=n.length;r<e&&t(n[r]);)r+=1;return A(n,0,r)})),ne=nt(4,function(t,n,r,e){return Kn(t("function"==typeof n?q(n):n),r,e)}),re=f(function(t,n,r){return On(t,o(n,r))}),ee=On(gr),ie=a(Gn(!1)),oe=hr(function(t){var n=A(arguments,1),e=n.length;return hr(r(e,function(){for(var r=[],i=0;i<e;)r[i]=n[i](arguments[i]),i+=1;return t.apply(this,r.concat(A(arguments,e)))}))}),ue=c(function(t,n){return Un(Lr(gr,t),n)}),ae=function(){var t=function(t){return{"@@transducer/init":j.init,"@@transducer/result":function(n){return t["@@transducer/result"](n)},"@@transducer/step":function(n,r){var e=t["@@transducer/step"](n,r);return e["@@transducer/reduced"]?h(e):e}}};return function(n){var r=t(n);return{"@@transducer/init":j.init,"@@transducer/result":function(t){return r["@@transducer/result"](t)},"@@transducer/step":function(t,n){return Et(n)?Kn(r,t,n):Kn(r,t,[n])}}}}(),ce=function(t,n,r){for(var e=r;e<t.length;){if(gr(t[e],n))return e;e+=1}return-1},fe=function(t){return function(n){var e=function(){var r=arguments;return t(function(t){return t.apply(null,r)},n)};return arguments.length>1?e.apply(null,A(arguments,1)):r(Math.max.apply(Math,Fr("length",n)),e)}},le=c(function(t,n){return Pr(t,ae(n))}),se=a(fe(ur)),he=a(fe(cr)),pe=c(function(t,n){return Jn("ap",t)?t.ap(n):Kn(function(t,r){return o(t,Pr(r,n))},[],t)}),ge=hr(function(t){return t.apply(this,A(arguments,1))}),de=c(Wn("chain",le,function(t,n){return ie(Pr(t,n))})),ve=f(function(t,n,r){function e(n,r){return pe(Pr(F,t(r)),n)}return Kn(e,n([]),r)}),ye=c(function(t,n){if(t>10)throw new Error("Constructor with greater than ten arguments");return 0===t?function(){return new n}:hr(Ft(t,function(t,r,e,i,o,u,a,c,f,l){switch(arguments.length){case 1:return new n(t);case 2:return new n(t,r);case 3:return new n(t,r,e);case 4:return new n(t,r,e,i);case 5:return new n(t,r,e,i,o);case 6:return new n(t,r,e,i,o,u);case 7:return new n(t,r,e,i,o,u,a);case 8:return new n(t,r,e,i,o,u,a,c);case 9:return new n(t,r,e,i,o,u,a,c,f);case 10:return new n(t,r,e,i,o,u,a,c,f,l)}}))}),me=nt(3,function(t){var n=A(arguments,1);return nt(Math.max.apply(Math,Fr("length",n)),function(){var r=arguments,e=this;return t.apply(e,M(function(t){return t.apply(e,r)},n))})}),xe=c(Wn("drop",rr,function(t,n){return Xr(Math.max(0,t),1/0,n)})),be=c(function(t,n){return Qr(t<n.length?n.length-t:0,n)}),Me=c(Wn("dropRepeatsWith",N,function(t,n){var r=[],e=1,i=n.length;if(0!==i)for(r[0]=n[0];e<i;)t(Or(r),n[e])||(r[r.length]=n[e]),e+=1;return r})),we=f(function(t,n,r){return gr(n[t],r[t])}),_e=c(function(t,n){return Jn("indexOf",n)?n.indexOf(t):ce(n,t,0)}),Ee=Xr(0,-1),Se=a(function(t){for(var n=t.length,r=0;r<n;){if(ce(t,t[r],r+1)>=0)return!1;r+=1}return!0}),Ae=c(function(t,n){return function(r){return function(e){return Pr(function(t){return n(t,e)},r(t(e)))}}}),ke=a(function(t){return Ae(Zt(t),Rn(t))}),Ne=a(function(t){return Ae(on(t),V(t))}),je=c(function(t,n){var r=nt(t,n);return nt(t,function(){return Kn(pe,Pr(r,arguments[0]),A(arguments,1))})}),Ce=a(function(t){return Gr(t)/t.length}),Te=a(function(t){var n=t.length;if(0===n)return NaN;var r=2-n%2,e=(n-r)/2;return Ce(A(t).sort(function(t,n){return t<n?-1:t>n?1:0}).slice(e,e+r))}),Oe=a(function(t){return Zr(qt,{},t)}),Re=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return nt(arguments[0].length,Zr(w,arguments[0],Kr(arguments)))},Pe=function(){if(0===arguments.length)throw new Error("pipeP requires at least one argument");return nt(arguments[0].length,Zr(_,arguments[0],Kr(arguments)))},Le=Zr(Yt,1),ze=oe(M,nn,mt),Ue=c(function(t,n){return xe(t>=0?n.length-t:0,n)}),qe=function(t,n){return ce(n,t,0)>=0},De=function di(t,n){var r=function(r){var e=n.concat([t]);return qe(r,e)?"<Circular>":di(r,e)},e=function(t,n){return M(function(n){return E(n)+": "+r(t[n])},n.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+M(r,t).join(", ")+"))";case"[object Array]":return"["+M(r,t).concat(e(t,$r(wn(/^\d+$/),kt(t)))).join(", ")+"]";case"[object Boolean]":
2return"object"==typeof t?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+E(k(t))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+r(t.valueOf())+")":1/t===-(1/0)?"-0":t.toString(10);case"[object String]":return"object"==typeof t?"new String("+r(t.valueOf())+")":E(t);case"[object Undefined]":return"undefined";default:return"function"==typeof t.constructor&&"Object"!==t.constructor.name&&"function"==typeof t.toString&&"[object Object]"!==t.toString()?t.toString():"{"+e(t,kt(t)).join(", ")+"}"}},Ie=ve(mt),Be=function(){if(0===arguments.length)throw new Error("compose requires at least one argument");return Re.apply(this,gn(arguments))},Ye=function(){return 0===arguments.length?mt:Be.apply(this,Pr(de,arguments))},Fe=function(){if(0===arguments.length)throw new Error("composeP requires at least one argument");return Pe.apply(this,gn(arguments))},He=a(function(t){return ye(t.length,t)}),Ve=c(qe),Ze=c(function(t,n){for(var r=[],e=0,i=t.length;e<i;)qe(t[e],n)||qe(t[e],r)||(r[r.length]=t[e]),e+=1;return r}),$e=a(Wn("dropRepeats",N(gr),Me(gr))),We=c(function(t,n){return ee(s(Mr(qe)(t),n))}),Xe=a(function(t){return je(t.length,t)}),Je=c(function(t,n){var r={};for(var e in n)qe(e,t)||(r[e]=n[e]);return r}),Ge=function(){return Ye.apply(this,gn(arguments))},Ke=a(function(t){return De(t,[])}),Qe=c(Be(ee,o)),ti=c(function(t,n){for(var r,e,i=0,o=[],u=[];i<n.length;)e=n[i],r=t(e),qe(r,o)||(u.push(e),o.push(r)),i+=1;return u}),ni=c(function(t,n){return nt(t+1,function(){var r=arguments[t];if(null!=r&&_t(Function,r[n]))return r[n].apply(r,A(arguments,0,t));throw new TypeError(Ke(r)+' does not have a method named "'+n+'"')})}),ri=ni(1,"join"),ei=a(function(t){var n={};return function(){var r=Ke(arguments);return g(r,n)||(n[r]=t.apply(this,arguments)),n[r]}}),ii=ni(1,"split"),oi=ni(0,"toLowerCase"),ui=ni(0,"toUpperCase"),ai={F:Fn,T:Hn,__:n,add:D,addIndex:or,adjust:I,all:ur,allPass:se,always:B,and:ar,any:cr,anyPass:he,ap:pe,aperture:Y,append:F,apply:H,assoc:V,assocPath:Z,binary:fr,bind:$,both:W,call:ge,chain:de,clone:lr,commute:Ie,commuteMap:ve,comparator:X,complement:J,compose:Be,composeK:Ye,composeP:Fe,concat:sr,cond:G,construct:He,constructN:ye,contains:Ve,containsWith:K,converge:me,countBy:Q,createMapEntry:tt,curry:hr,curryN:nt,dec:rt,defaultTo:et,difference:Ze,differenceWith:it,dissoc:ot,dissocPath:ut,divide:at,drop:xe,dropLast:be,dropLastWhile:ct,dropRepeats:$e,dropRepeatsWith:Me,dropWhile:pr,either:ft,empty:lt,eqProps:we,equals:gr,evolve:st,filter:dr,find:vr,findIndex:yr,findLast:mr,findLastIndex:xr,flatten:br,flip:Mr,forEach:wr,fromPairs:ht,functions:_r,functionsIn:Er,groupBy:Sr,gt:pt,gte:gt,has:dt,hasIn:vt,head:Ar,identical:yt,identity:mt,ifElse:xt,inc:bt,indexOf:_e,init:Ee,insert:Mt,insertAll:wt,intersection:We,intersectionWith:kr,intersperse:Nr,into:jr,invert:Cr,invertObj:Tr,invoker:ni,is:_t,isArrayLike:Et,isEmpty:St,isNil:At,isSet:Se,join:ri,keys:kt,keysIn:Nt,last:Or,lastIndexOf:Rr,length:jt,lens:Ae,lensIndex:ke,lensProp:Ne,lift:Xe,liftN:je,lt:Ct,lte:Tt,map:Pr,mapAccum:Ot,mapAccumRight:Rt,mapObj:Lr,mapObjIndexed:zr,match:Pt,mathMod:Lt,max:zt,maxBy:Ut,mean:Ce,median:Te,memoize:ei,merge:qt,mergeAll:Oe,min:Dt,minBy:It,modulo:Bt,multiply:Yt,nAry:Ft,negate:Ht,none:Ur,not:Vt,nth:Zt,nthArg:$t,nthChar:Wt,nthCharCode:Xt,of:Jt,omit:Je,once:Gt,or:qr,over:Kt,partial:Dr,partialRight:Ir,partition:Br,path:Qt,pathEq:Yr,pick:tn,pickAll:nn,pickBy:rn,pipe:Re,pipeK:Ge,pipeP:Pe,pluck:Fr,prepend:en,product:Le,project:ze,prop:on,propEq:Hr,propIs:Vr,propOr:un,propSatisfies:an,props:cn,range:fn,reduce:Zr,reduceRight:ln,reduced:sn,reject:$r,remove:hn,repeat:Wr,replace:pn,reverse:gn,scan:dn,set:vn,slice:Xr,sort:yn,sortBy:mn,split:ii,splitEvery:Jr,subtract:xn,sum:Gr,tail:Kr,take:Qr,takeLast:Ue,takeLastWhile:bn,takeWhile:te,tap:Mn,test:wn,times:_n,toLower:oi,toPairs:En,toPairsIn:Sn,toString:Ke,toUpper:ui,transduce:ne,trim:An,type:kn,unapply:Nn,unary:jn,uncurryN:Cn,unfold:Tn,union:Qe,unionWith:re,uniq:ee,uniqBy:ti,uniqWith:On,unnest:ie,update:Rn,useWith:oe,values:Pn,valuesIn:Ln,view:zn,where:Un,whereEq:ue,wrap:qn,xprod:Dn,zip:In,zipObj:Bn,zipWith:Yn};t.exports=ai}).call(this)},function(t,n,r){function e(t,n){for(var r=t.length;r--;)if(i(t[r][0],n))return r;return-1}var i=r(97);t.exports=e},function(t,n){function r(t){var n=typeof t;return"number"==n||"boolean"==n||"string"==n&&"__proto__"!==t||null==t}t.exports=r},function(t,n,r){var e=r(10),i=e(Object,"create");t.exports=i},function(t,n,r){(function(t,e){var i=r(68),o={"function":!0,object:!0},u=o[typeof n]&&n&&!n.nodeType?n:null,a=o[typeof t]&&t&&!t.nodeType?t:null,c=i(u&&a&&"object"==typeof e&&e),f=i(o[typeof self]&&self),l=i(o[typeof window]&&window),s=i(o[typeof this]&&this),h=c||l!==(s&&s.window)&&l||f||s||Function("return this")();t.exports=h}).call(n,r(111)(t),function(){return this}())},function(t,n){function r(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=e}var e=9007199254740991;t.exports=r},function(t,n,r){function e(t,n){var r=null==t?void 0:t[n];return i(r)?r:void 0}var i=r(101);t.exports=e},function(t,n){function r(t){var n=!1;if(null!=t&&"function"!=typeof t.toString)try{n=!!(t+"")}catch(r){}return n}t.exports=r},function(t,n,r){function e(t,n){return"number"==typeof t||!i(t)&&(u.test(t)||!o.test(t)||null!=n&&t in Object(n))}var i=r(1),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=e},function(t,n){function r(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}t.exports=r},function(t,n,r){function e(t){var n=f(t);if(!n&&!a(t))return o(t);var r=u(t),e=!!r,l=r||[],s=l.length;for(var h in t)!i(t,h)||e&&("length"==h||c(h,s))||n&&"constructor"==h||l.push(h);return l}var i=r(24),o=r(61),u=r(80),a=r(32),c=r(29),f=r(81);t.exports=e},function(t,n,r){(function(t,e){/*!
3 * The buffer module from node.js, for the browser.
4 *
5 * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
6 * @license MIT
7 */
8"use strict";function i(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(n){return!1}}function o(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(n,r){if(o()<r)throw new RangeError("Invalid typed array length");return t.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(r),n.__proto__=t.prototype):(null===n&&(n=new t(r)),n.length=r),n}function t(n,r,e){if(!(t.TYPED_ARRAY_SUPPORT||this instanceof t))return new t(n,r,e);if("number"==typeof n){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return l(this,n)}return a(this,n,r,e)}function a(t,n,r,e){if("number"==typeof n)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer?p(t,n,r,e):"string"==typeof n?s(t,n,r):g(t,n)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,n,r,e){return c(n),n<=0?u(t,n):void 0!==r?"string"==typeof e?u(t,n).fill(r,e):u(t,n).fill(r):u(t,n)}function l(n,r){if(c(r),n=u(n,r<0?0:0|d(r)),!t.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)n[e]=0;return n}function s(n,r,e){if("string"==typeof e&&""!==e||(e="utf8"),!t.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var i=0|y(r,e);n=u(n,i);var o=n.write(r,e);return o!==i&&(n=n.slice(0,o)),n}function h(t,n){var r=n.length<0?0:0|d(n.length);t=u(t,r);for(var e=0;e<r;e+=1)t[e]=255&n[e];return t}function p(n,r,e,i){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(i||0))throw new RangeError("'length' is out of bounds");return r=void 0===e&&void 0===i?new Uint8Array(r):void 0===i?new Uint8Array(r,e):new Uint8Array(r,e,i),t.TYPED_ARRAY_SUPPORT?(n=r,n.__proto__=t.prototype):n=h(n,r),n}function g(n,r){if(t.isBuffer(r)){var e=0|d(r.length);return n=u(n,e),0===n.length?n:(r.copy(n,0,0,e),n)}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||J(r.length)?u(n,0):h(n,r);if("Buffer"===r.type&&Q(r.data))return h(n,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function v(n){return+n!=n&&(n=0),t.alloc(+n)}function y(n,r){if(t.isBuffer(n))return n.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(n)||n instanceof ArrayBuffer))return n.byteLength;"string"!=typeof n&&(n=""+n);var e=n.length;if(0===e)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return V(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return W(n).length;default:if(i)return V(n).length;r=(""+r).toLowerCase(),i=!0}}function m(t,n,r){var e=!1;if((void 0===n||n<0)&&(n=0),n>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,n>>>=0,r<=n)return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,n,r);case"utf8":case"utf-8":return j(this,n,r);case"ascii":return T(this,n,r);case"latin1":case"binary":return O(this,n,r);case"base64":return N(this,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,n,r);default:if(e)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),e=!0}}function x(t,n,r){var e=t[n];t[n]=t[r],t[r]=e}function b(n,r,e,i,o){if(0===n.length)return-1;if("string"==typeof e?(i=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=o?0:n.length-1),e<0&&(e=n.length+e),e>=n.length){if(o)return-1;e=n.length-1}else if(e<0){if(!o)return-1;e=0}if("string"==typeof r&&(r=t.from(r,i)),t.isBuffer(r))return 0===r.length?-1:M(n,r,e,i,o);if("number"==typeof r)return r=255&r,t.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(n,r,e):Uint8Array.prototype.lastIndexOf.call(n,r,e):M(n,[r],e,i,o);throw new TypeError("val must be string, number or Buffer")}function M(t,n,r,e,i){function o(t,n){return 1===u?t[n]:t.readUInt16BE(n*u)}var u=1,a=t.length,c=n.length;if(void 0!==e&&(e=String(e).toLowerCase(),"ucs2"===e||"ucs-2"===e||"utf16le"===e||"utf-16le"===e)){if(t.length<2||n.length<2)return-1;u=2,a/=2,c/=2,r/=2}var f;if(i){var l=-1;for(f=r;f<a;f++)if(o(t,f)===o(n,l===-1?0:f-l)){if(l===-1&&(l=f),f-l+1===c)return l*u}else l!==-1&&(f-=f-l),l=-1}else for(r+c>a&&(r=a-c),f=r;f>=0;f--){for(var s=!0,h=0;h<c;h++)if(o(t,f+h)!==o(n,h)){s=!1;break}if(s)return f}return-1}function w(t,n,r,e){r=Number(r)||0;var i=t.length-r;e?(e=Number(e),e>i&&(e=i)):e=i;var o=n.length;if(o%2!==0)throw new TypeError("Invalid hex string");e>o/2&&(e=o/2);for(var u=0;u<e;++u){var a=parseInt(n.substr(2*u,2),16);if(isNaN(a))return u;t[r+u]=a}return u}function _(t,n,r,e){return X(V(n,t.length-r),t,r,e)}function E(t,n,r,e){return X(Z(n),t,r,e)}function S(t,n,r,e){return E(t,n,r,e)}function A(t,n,r,e){return X(W(n),t,r,e)}function k(t,n,r,e){return X($(n,t.length-r),t,r,e)}function N(t,n,r){return 0===n&&r===t.length?G.fromByteArray(t):G.fromByteArray(t.slice(n,r))}function j(t,n,r){r=Math.min(t.length,r);for(var e=[],i=n;i<r;){var o=t[i],u=null,a=o>239?4:o>223?3:o>191?2:1;if(i+a<=r){var c,f,l,s;switch(a){case 1:o<128&&(u=o);break;case 2:c=t[i+1],128===(192&c)&&(s=(31&o)<<6|63&c,s>127&&(u=s));break;case 3:c=t[i+1],f=t[i+2],128===(192&c)&&128===(192&f)&&(s=(15&o)<<12|(63&c)<<6|63&f,s>2047&&(s<55296||s>57343)&&(u=s));break;case 4:c=t[i+1],f=t[i+2],l=t[i+3],128===(192&c)&&128===(192&f)&&128===(192&l)&&(s=(15&o)<<18|(63&c)<<12|(63&f)<<6|63&l,s>65535&&s<1114112&&(u=s))}}null===u?(u=65533,a=1):u>65535&&(u-=65536,e.push(u>>>10&1023|55296),u=56320|1023&u),e.push(u),i+=a}return C(e)}function C(t){var n=t.length;if(n<=tt)return String.fromCharCode.apply(String,t);for(var r="",e=0;e<n;)r+=String.fromCharCode.apply(String,t.slice(e,e+=tt));return r}function T(t,n,r){var e="";r=Math.min(t.length,r);for(var i=n;i<r;++i)e+=String.fromCharCode(127&t[i]);return e}function O(t,n,r){var e="";r=Math.min(t.length,r);for(var i=n;i<r;++i)e+=String.fromCharCode(t[i]);return e}function R(t,n,r){var e=t.length;(!n||n<0)&&(n=0),(!r||r<0||r>e)&&(r=e);for(var i="",o=n;o<r;++o)i+=H(t[o]);return i}function P(t,n,r){for(var e=t.slice(n,r),i="",o=0;o<e.length;o+=2)i+=String.fromCharCode(e[o]+256*e[o+1]);return i}function L(t,n,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+n>r)throw new RangeError("Trying to access beyond buffer length")}function z(n,r,e,i,o,u){if(!t.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>o||r<u)throw new RangeError('"value" argument is out of bounds');if(e+i>n.length)throw new RangeError("Index out of range")}function U(t,n,r,e){n<0&&(n=65535+n+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(n&255<<8*(e?i:1-i))>>>8*(e?i:1-i)}function q(t,n,r,e){n<0&&(n=4294967295+n+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=n>>>8*(e?i:3-i)&255}function D(t,n,r,e,i,o){if(r+e>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function I(t,n,r,e,i){return i||D(t,n,r,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(t,n,r,e,23,4),r+4}function B(t,n,r,e,i){return i||D(t,n,r,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(t,n,r,e,52,8),r+8}function Y(t){if(t=F(t).replace(nt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function F(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function H(t){return t<16?"0"+t.toString(16):t.toString(16)}function V(t,n){n=n||1/0;for(var r,e=t.length,i=null,o=[],u=0;u<e;++u){if(r=t.charCodeAt(u),r>55295&&r<57344){if(!i){if(r>56319){(n-=3)>-1&&o.push(239,191,189);continue}if(u+1===e){(n-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(n-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(n-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((n-=1)<0)break;o.push(r)}else if(r<2048){if((n-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((n-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Z(t){for(var n=[],r=0;r<t.length;++r)n.push(255&t.charCodeAt(r));return n}function $(t,n){for(var r,e,i,o=[],u=0;u<t.length&&!((n-=2)<0);++u)r=t.charCodeAt(u),e=r>>8,i=r%256,o.push(i),o.push(e);return o}function W(t){return G.toByteArray(Y(t))}function X(t,n,r,e){for(var i=0;i<e&&!(i+r>=n.length||i>=t.length);++i)n[i+r]=t[i];return i}function J(t){return t!==t}var G=r(39),K=r(46),Q=r(47);n.Buffer=t,n.SlowBuffer=v,n.INSPECT_MAX_BYTES=50,t.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:i(),n.kMaxLength=o(),t.poolSize=8192,t._augment=function(n){return n.__proto__=t.prototype,n},t.from=function(t,n,r){return a(null,t,n,r)},t.TYPED_ARRAY_SUPPORT&&(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0})),t.alloc=function(t,n,r){return f(null,t,n,r)},t.allocUnsafe=function(t){return l(null,t)},t.allocUnsafeSlow=function(t){return l(null,t)},t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(n,r){if(!t.isBuffer(n)||!t.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(n===r)return 0;for(var e=n.length,i=r.length,o=0,u=Math.min(e,i);o<u;++o)if(n[o]!==r[o]){e=n[o],i=r[o];break}return e<i?-1:i<e?1:0},t.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(n,r){if(!Q(n))throw new TypeError('"list" argument must be an Array of Buffers');if(0===n.length)return t.alloc(0);var e;if(void 0===r)for(r=0,e=0;e<n.length;++e)r+=n[e].length;var i=t.allocUnsafe(r),o=0;for(e=0;e<n.length;++e){var u=n[e];if(!t.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(i,o),o+=u.length}return i},t.byteLength=y,t.prototype._isBuffer=!0,t.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<t;n+=2)x(this,n,n+1);return this},t.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<t;n+=4)x(this,n,n+3),x(this,n+1,n+2);return this},t.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<t;n+=8)x(this,n,n+7),x(this,n+1,n+6),x(this,n+2,n+5),x(this,n+3,n+4);return this},t.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?j(this,0,t):m.apply(this,arguments)},t.prototype.equals=function(n){if(!t.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n||0===t.compare(this,n)},t.prototype.inspect=function(){var t="",r=n.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},t.prototype.compare=function(n,r,e,i,o){if(!t.isBuffer(n))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===e&&(e=n?n.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),r<0||e>n.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=e)return 0;if(i>=o)return-1;if(r>=e)return 1;if(r>>>=0,e>>>=0,i>>>=0,o>>>=0,this===n)return 0;for(var u=o-i,a=e-r,c=Math.min(u,a),f=this.slice(i,o),l=n.slice(r,e),s=0;s<c;++s)if(f[s]!==l[s]){u=f[s],a=l[s];break}return u<a?-1:a<u?1:0},t.prototype.includes=function(t,n,r){return this.indexOf(t,n,r)!==-1},t.prototype.indexOf=function(t,n,r){return b(this,t,n,r,!0)},t.prototype.lastIndexOf=function(t,n,r){return b(this,t,n,r,!1)},t.prototype.write=function(t,n,r,e){if(void 0===n)e="utf8",r=this.length,n=0;else if(void 0===r&&"string"==typeof n)e=n,r=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n=0|n,isFinite(r)?(r=0|r,void 0===e&&(e="utf8")):(e=r,r=void 0)}var i=this.length-n;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");for(var o=!1;;)switch(e){case"hex":return w(this,t,n,r);case"utf8":case"utf-8":return _(this,t,n,r);case"ascii":return E(this,t,n,r);case"latin1":case"binary":return S(this,t,n,r);case"base64":return A(this,t,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,n,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),o=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tt=4096;t.prototype.slice=function(n,r){var e=this.length;n=~~n,r=void 0===r?e:~~r,n<0?(n+=e,n<0&&(n=0)):n>e&&(n=e),r<0?(r+=e,r<0&&(r=0)):r>e&&(r=e),r<n&&(r=n);var i;if(t.TYPED_ARRAY_SUPPORT)i=this.subarray(n,r),i.__proto__=t.prototype;else{var o=r-n;i=new t(o,(void 0));for(var u=0;u<o;++u)i[u]=this[u+n]}return i},t.prototype.readUIntLE=function(t,n,r){t=0|t,n=0|n,r||L(t,n,this.length);for(var e=this[t],i=1,o=0;++o<n&&(i*=256);)e+=this[t+o]*i;return e},t.prototype.readUIntBE=function(t,n,r){t=0|t,n=0|n,r||L(t,n,this.length);for(var e=this[t+--n],i=1;n>0&&(i*=256);)e+=this[t+--n]*i;return e},t.prototype.readUInt8=function(t,n){return n||L(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,n){return n||L(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,n){return n||L(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,n){return n||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,n){return n||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,n,r){t=0|t,n=0|n,r||L(t,n,this.length);for(var e=this[t],i=1,o=0;++o<n&&(i*=256);)e+=this[t+o]*i;return i*=128,e>=i&&(e-=Math.pow(2,8*n)),e},t.prototype.readIntBE=function(t,n,r){t=0|t,n=0|n,r||L(t,n,this.length);for(var e=n,i=1,o=this[t+--e];e>0&&(i*=256);)o+=this[t+--e]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*n)),o},t.prototype.readInt8=function(t,n){return n||L(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},t.prototype.readInt16LE=function(t,n){n||L(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt16BE=function(t,n){n||L(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt32LE=function(t,n){return n||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,n){return n||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,n){return n||L(t,4,this.length),K.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,n){return n||L(t,4,this.length),K.read(this,t,!1,23,4)},t.prototype.readDoubleLE=function(t,n){return n||L(t,8,this.length),K.read(this,t,!0,52,8)},t.prototype.readDoubleBE=function(t,n){return n||L(t,8,this.length),K.read(this,t,!1,52,8)},t.prototype.writeUIntLE=function(t,n,r,e){if(t=+t,n=0|n,r=0|r,!e){var i=Math.pow(2,8*r)-1;z(this,t,n,r,i,0)}var o=1,u=0;for(this[n]=255&t;++u<r&&(o*=256);)this[n+u]=t/o&255;return n+r},t.prototype.writeUIntBE=function(t,n,r,e){if(t=+t,n=0|n,r=0|r,!e){var i=Math.pow(2,8*r)-1;z(this,t,n,r,i,0)}var o=r-1,u=1;for(this[n+o]=255&t;--o>=0&&(u*=256);)this[n+o]=t/u&255;return n+r},t.prototype.writeUInt8=function(n,r,e){return n=+n,r=0|r,e||z(this,n,r,1,255,0),t.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),this[r]=255&n,r+1},t.prototype.writeUInt16LE=function(n,r,e){return n=+n,r=0|r,e||z(this,n,r,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[r]=255&n,this[r+1]=n>>>8):U(this,n,r,!0),r+2},t.prototype.writeUInt16BE=function(n,r,e){return n=+n,r=0|r,e||z(this,n,r,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[r]=n>>>8,this[r+1]=255&n):U(this,n,r,!1),r+2},t.prototype.writeUInt32LE=function(n,r,e){return n=+n,r=0|r,e||z(this,n,r,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[r+3]=n>>>24,this[r+2]=n>>>16,this[r+1]=n>>>8,this[r]=255&n):q(this,n,r,!0),r+4},t.prototype.writeUInt32BE=function(n,r,e){return n=+n,r=0|r,e||z(this,n,r,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[r]=n>>>24,this[r+1]=n>>>16,this[r+2]=n>>>8,this[r+3]=255&n):q(this,n,r,!1),r+4},t.prototype.writeIntLE=function(t,n,r,e){if(t=+t,n=0|n,!e){var i=Math.pow(2,8*r-1);z(this,t,n,r,i-1,-i)}var o=0,u=1,a=0;for(this[n]=255&t;++o<r&&(u*=256);)t<0&&0===a&&0!==this[n+o-1]&&(a=1),this[n+o]=(t/u>>0)-a&255;return n+r},t.prototype.writeIntBE=function(t,n,r,e){if(t=+t,n=0|n,!e){var i=Math.pow(2,8*r-1);z(this,t,n,r,i-1,-i)}var o=r-1,u=1,a=0;for(this[n+o]=255&t;--o>=0&&(u*=256);)t<0&&0===a&&0!==this[n+o+1]&&(a=1),this[n+o]=(t/u>>0)-a&255;return n+r},t.prototype.writeInt8=function(n,r,e){return n=+n,r=0|r,e||z(this,n,r,1,127,-128),t.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),n<0&&(n=255+n+1),this[r]=255&n,r+1},t.prototype.writeInt16LE=function(n,r,e){return n=+n,r=0|r,e||z(this,n,r,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[r]=255&n,this[r+1]=n>>>8):U(this,n,r,!0),r+2},t.prototype.writeInt16BE=function(n,r,e){return n=+n,r=0|r,e||z(this,n,r,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[r]=n>>>8,this[r+1]=255&n):U(this,n,r,!1),r+2},t.prototype.writeInt32LE=function(n,r,e){return n=+n,r=0|r,e||z(this,n,r,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[r]=255&n,this[r+1]=n>>>8,this[r+2]=n>>>16,this[r+3]=n>>>24):q(this,n,r,!0),r+4},t.prototype.writeInt32BE=function(n,r,e){return n=+n,r=0|r,e||z(this,n,r,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),t.TYPED_ARRAY_SUPPORT?(this[r]=n>>>24,this[r+1]=n>>>16,this[r+2]=n>>>8,this[r+3]=255&n):q(this,n,r,!1),r+4},t.prototype.writeFloatLE=function(t,n,r){return I(this,t,n,!0,r)},t.prototype.writeFloatBE=function(t,n,r){return I(this,t,n,!1,r)},t.prototype.writeDoubleLE=function(t,n,r){return B(this,t,n,!0,r)},t.prototype.writeDoubleBE=function(t,n,r){return B(this,t,n,!1,r)},t.prototype.copy=function(n,r,e,i){if(e||(e=0),i||0===i||(i=this.length),r>=n.length&&(r=n.length),r||(r=0),i>0&&i<e&&(i=e),i===e)return 0;if(0===n.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),n.length-r<i-e&&(i=n.length-r+e);var o,u=i-e;if(this===n&&e<r&&r<i)for(o=u-1;o>=0;--o)n[o+r]=this[o+e];else if(u<1e3||!t.TYPED_ARRAY_SUPPORT)for(o=0;o<u;++o)n[o+r]=this[o+e];else Uint8Array.prototype.set.call(n,this.subarray(e,e+u),r);return u},t.prototype.fill=function(n,r,e,i){if("string"==typeof n){if("string"==typeof r?(i=r,r=0,e=this.length):"string"==typeof e&&(i=e,e=this.length),1===n.length){var o=n.charCodeAt(0);o<256&&(n=o)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!t.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof n&&(n=255&n);if(r<0||this.length<r||this.length<e)throw new RangeError("Out of range index");if(e<=r)return this;r>>>=0,e=void 0===e?this.length:e>>>0,n||(n=0);var u;if("number"==typeof n)for(u=r;u<e;++u)this[u]=n;else{var a=t.isBuffer(n)?n:V(new t(n,i).toString()),c=a.length;for(u=0;u<e-r;++u)this[u+r]=a[u%c]}return this};var nt=/[^+\/0-9A-Za-z-_]/g}).call(n,r(15).Buffer,function(){return this}())},function(t,n,r){"use strict";function e(t){return(0,i.is)(Function,t)?t:function(){return t}}n.__esModule=!0,n.default=e;var i=r(4)},function(t,n,r){function e(t){var n=-1,r=t?t.length:0;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}var i=r(91),o=r(92),u=r(93),a=r(94),c=r(95);e.prototype.clear=i,e.prototype.delete=o,e.prototype.get=u,e.prototype.has=a,e.prototype.set=c,t.exports=e},function(t,n,r){var e=r(8),i=e.Symbol;t.exports=i},function(t,n,r){function e(t,n){var r=i(t,n);if(r<0)return!1;var e=t.length-1;return r==e?t.pop():u.call(t,r,1),!0}var i=r(5),o=Array.prototype,u=o.splice;t.exports=e},function(t,n,r){function e(t,n){var r=i(t,n);return r<0?void 0:t[r][1]}var i=r(5);t.exports=e},function(t,n,r){function e(t,n){return i(t,n)>-1}var i=r(5);t.exports=e},function(t,n,r){function e(t,n,r){var e=i(t,n);e<0?t.push([n,r]):t[e][1]=r}var i=r(5);t.exports=e},function(t,n,r){function e(t,n){n=o(n,t)?[n+""]:i(n);for(var r=0,e=n.length;null!=t&&r<e;)t=t[n[r++]];return r&&r==e?t:void 0}var i=r(27),o=r(12);t.exports=e},function(t,n){function r(t,n){return i.call(t,n)||"object"==typeof t&&n in t&&null===o(t)}var e=Object.prototype,i=e.hasOwnProperty,o=Object.getPrototypeOf;t.exports=r},function(t,n,r){function e(t,n,r,a,c){return t===n||(null==t||null==n||!o(t)&&!u(n)?t!==t&&n!==n:i(t,n,e,r,a,c))}var i=r(58),o=r(13),u=r(2);t.exports=e},function(t,n){function r(t){return function(n){return null==n?void 0:n[t]}}t.exports=r},function(t,n,r){function e(t){return i(t)?t:o(t)}var i=r(1),o=r(96);t.exports=e},function(t,n,r){function e(t,n){return i?void 0!==t[n]:u.call(t,n)}var i=r(7),o=Object.prototype,u=o.hasOwnProperty;t.exports=e},function(t,n){function r(t,n){return t="number"==typeof t||i.test(t)?+t:-1,n=null==n?e:n,t>-1&&t%1==0&&t<n}var e=9007199254740991,i=/^(?:0|[1-9]\d*)$/;t.exports=r},function(t,n,r){function e(t,n,r){var e=null==t?void 0:i(t,n);return void 0===e?r:e}var i=r(23);t.exports=e},function(t,n,r){function e(t){return i(t)&&a.call(t,"callee")&&(!f.call(t,"callee")||c.call(t)==o)}var i=r(100),o="[object Arguments]",u=Object.prototype,a=u.hasOwnProperty,c=u.toString,f=u.propertyIsEnumerable;t.exports=e},function(t,n,r){function e(t){return null!=t&&!("function"==typeof t&&o(t))&&u(i(t))}var i=r(73),o=r(33),u=r(9);t.exports=e},function(t,n,r){function e(t){var n=i(t)?c.call(t):"";return n==o||n==u}var i=r(13),o="[object Function]",u="[object GeneratorFunction]",a=Object.prototype,c=a.toString;t.exports=e},function(t,n,r){function e(t){return"string"==typeof t||!i(t)&&o(t)&&c.call(t)==u}var i=r(1),o=r(2),u="[object String]",a=Object.prototype,c=a.toString;t.exports=e},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0,n.tree=void 0;var i=r(37),o=e(i);n.tree=o.default},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}function i(t,n){if(t instanceof Array){var r=void 0;return r=n?t.sort():t}if(t&&"object"===("undefined"==typeof t?"undefined":u(t))){var e=function(){var n={};return Object.keys(t).sort().forEach(function(r){return n[r]=i(t[r])}),{v:n}}();if("object"===("undefined"==typeof e?"undefined":u(e)))return e.v}return t}function o(t){return JSON.stringify(i((0,c.default)(t),!0),void 0,2)}n.__esModule=!0;var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n.default=o;var a=(r(4),r(45)),c=e(a)},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0;var i=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t};n.default=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,s.default)(d,n),e=r.id,o=r.style,c=r.size,l=r.aspectRatio,p=r.initialZoom,v=r.margin,y=r.isSorted,m=r.widthBetweenNodesCoeff,x=r.heightBetweenNodesCoeff,b=r.transitionDuration,M=r.state,w=r.rootKeyName,_=r.pushMethod,E=r.tree,S=r.tooltipOptions,A=r.onClickText,k=c-v.left-v.right,N=c*l-v.top-v.bottom,j=c,C=c*l,T={id:e,preserveAspectRatio:"xMinYMin slice"};o.width||(T.width=j),o.width&&o.height||(T.viewBox="0 0 "+j+" "+C);var O=u.default.select(t),R=u.default.behavior.zoom().scaleExtent([.1,3]).scale(p),P=O.append("svg").attr(T).style(i({cursor:"-webkit-grab"},o)).call(R.on("zoom",function(){var t=u.default.event,n=t.translate,r=t.scale;P.attr("transform","translate("+n+")scale("+r+")")})).append("g").attr({transform:"translate("+(v.left+o.node.radius)+", "+v.top+") scale("+p+")"}),L=u.default.layout.tree().size([k,N]),z=void 0;return y&&L.sort(function(t,n){return n.name.toLowerCase()<t.name.toLowerCase()?1:-1}),function(){function t(n){var a=u.default.svg.diagonal().projection(function(t){return[t.y,t.x]}),c=Math.max.apply(Math,(0,h.getNodeGroupByDepthCount)(z));L=L.size([25*c*x,k]);var f=L.nodes(z),l=L.links(f);f.forEach(function(t){return t.y=t.depth*(7*e*m)});var s=P.selectAll("g.node").property("__oldData__",function(t){return t}).data(f,function(t){return t.id||(t.id=++r)}),p=s.enter().append("g").attr({"class":"node",transform:function(t){return"translate("+n.y0+","+n.x0+")"}}).style({fill:o.text.colors.default,cursor:"pointer"}).on({mouseover:function(t,n){u.default.select(this).style({fill:o.text.colors.hover})},mouseout:function(t,n){u.default.select(this).style({fill:o.text.colors.default})}});S.disabled||p.call((0,g.default)(u.default,"tooltip",i({},S,{root:O})).text(function(t,n){return(0,h.getTooltipString)(t,n,S)}).style(S.style)),p.append("circle").attr({"class":"nodeCircle"}).on({click:function(n){u.default.event.defaultPrevented||t((0,h.toggleChildren)(n))}}),p.append("text").attr({"class":"nodeText",dy:".35em"}).style({"fill-opacity":0}).text(function(t){return t.name}).on({click:A}),s.select("text").attr({x:function(t){return t.children||t._children?-(o.node.radius+10):o.node.radius+10},"text-anchor":function(t){return t.children||t._children?"end":"start"}}).text(function(t){return t.name}),s.select("circle.nodeCircle").attr({r:o.node.radius}).style({stroke:"black","stroke-width":"1.5px",fill:function(t){return t._children?o.node.colors.collapsed:t.children?o.node.colors.parent:o.node.colors.default}});var d=s.transition().duration(b).attr({transform:function(t){return"translate("+t.y+","+t.x+")"}});d.select("text").style("fill-opacity",1),d.select("circle").attr("r",7),d.filter(function(t){return!this.__oldData__||t.value!==this.__oldData__.value}).style("fill-opacity","0.3").transition().duration(100).style("fill-opacity","1");var v=s.exit().transition().duration(b).attr({transform:function(t){return"translate("+n.y+","+n.x+")"}}).remove();v.select("circle").attr("r",0),v.select("text").style("fill-opacity",0);var y=P.selectAll("path.link").data(l,function(t){return t.target.id});y.enter().insert("path","g").attr({"class":"link",d:function(t){var r={x:n.x0,y:n.y0};return a({source:r,target:r})}}).style(o.link),y.transition().duration(b).attr({d:a}),y.exit().transition().duration(b).attr({d:function(t){var r={x:n.x,y:n.y};return a({source:r,target:r})}}).remove(),s.property("__oldData__",null),f.forEach(function(t){t.x0=t.x,t.y0=t.y})}var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E||M;z=E?n:(0,f.default)(n,{key:w,pushMethod:_}),!(0,a.isEmpty)(z)&&z.name||(z={name:"error",message:"Please provide a state map or a tree structure"});var r=0,e=0;(0,h.visit)(z,function(t){return e=Math.max(t.name.length,e)},function(t){return t.children&&t.children.length>0?t.children:null}),z.x0=N/2,z.y0=0,t(z)}};var o=r(40),u=e(o),a=r(4),c=r(110),f=e(c),l=r(44),s=e(l),h=r(38),p=r(41),g=e(p),d={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(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}function i(t){t.children&&(t._children=t.children,t._children.forEach(i),t.children=null)}function o(t){t._children&&(t.children=t._children,t.children.forEach(o),t._children=null)}function u(t){return t.children?(t._children=t.children,t.children=null):t._children&&(t.children=t._children,t._children=null),t}function a(t,n,r){if(t){n(t);var e=r(t);if(e)for(var i=e.length,o=0;o<i;o++)a(e[o],n,r)}}function c(t){var n=[1],r=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.children&&0!==t.children.length?(n.length<=r+1&&n.push(0),n[r+1]+=t.children.length,void t.children.forEach(function(t){e(t,r+1)})):0};return r(t),n}function f(t,n,r){var e=r.indentationSize,i=void 0===e?4:e;if(!(0,s.is)(Object,t))return"";var o=(0,s.join)("&nbsp;&nbsp;"),u=(0,s.replace)(/\n/g,"<br/>"),a=(0,s.replace)(/\s{2}/g,o(new Array(i))),c=(0,s.pipe)(p.default,u,a),f=t.children||t._children,l=(0,s.omit)(["parent","children","_children","depth","id","x","x0","y","y0"],t);return f&&(l.childrenCount=f.length),c(l)}n.__esModule=!0,n.collapseChildren=i,n.expandChildren=o,n.toggleChildren=u,n.visit=a,n.getNodeGroupByDepthCount=c,n.getTooltipString=f;var l=r(48),s=(e(l),r(4)),h=r(36),p=e(h)},function(t,n){"use strict";function r(t){var n=t.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[n-2]?2:"="===t[n-1]?1:0}function e(t){return 3*t.length/4-r(t)}function i(t){var n,e,i,o,u,a,c=t.length;u=r(t),a=new l(3*c/4-u),i=u>0?c-4:c;var s=0;for(n=0,e=0;n<i;n+=4,e+=3)o=f[t.charCodeAt(n)]<<18|f[t.charCodeAt(n+1)]<<12|f[t.charCodeAt(n+2)]<<6|f[t.charCodeAt(n+3)],a[s++]=o>>16&255,a[s++]=o>>8&255,a[s++]=255&o;return 2===u?(o=f[t.charCodeAt(n)]<<2|f[t.charCodeAt(n+1)]>>4,a[s++]=255&o):1===u&&(o=f[t.charCodeAt(n)]<<10|f[t.charCodeAt(n+1)]<<4|f[t.charCodeAt(n+2)]>>2,a[s++]=o>>8&255,a[s++]=255&o),a}function o(t){return c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}function u(t,n,r){for(var e,i=[],u=n;u<r;u+=3)e=(t[u]<<16)+(t[u+1]<<8)+t[u+2],i.push(o(e));return i.join("")}function a(t){for(var n,r=t.length,e=r%3,i="",o=[],a=16383,f=0,l=r-e;f<l;f+=a)o.push(u(t,f,f+a>l?l:f+a));return 1===e?(n=t[r-1],i+=c[n>>2],i+=c[n<<4&63],i+="=="):2===e&&(n=(t[r-2]<<8)+t[r-1],i+=c[n>>10],i+=c[n>>4&63],i+=c[n<<2&63],i+="="),o.push(i),o.join("")}n.byteLength=e,n.toByteArray=i,n.fromByteArray=a;for(var c=[],f=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,p=s.length;h<p;++h)c[h]=s[h],f[s.charCodeAt(h)]=h;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},function(t,n,r){var e,i;!function(){function o(t){return t&&(t.ownerDocument||t.document||t).documentElement}function u(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}function a(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function c(t){return null===t?NaN:+t}function f(t){return!isNaN(t)}function l(t){return{left:function(n,r,e,i){for(arguments.length<3&&(e=0),arguments.length<4&&(i=n.length);e<i;){var o=e+i>>>1;t(n[o],r)<0?e=o+1:i=o}return e},right:function(n,r,e,i){for(arguments.length<3&&(e=0),arguments.length<4&&(i=n.length);e<i;){var o=e+i>>>1;t(n[o],r)>0?i=o:e=o+1}return e}}}function s(t){return t.length}function h(t){for(var n=1;t*n%1;)n*=10;return n}function p(t,n){for(var r in n)Object.defineProperty(t.prototype,r,{value:n[r],enumerable:!1})}function g(){this._=Object.create(null)}function d(t){return(t+="")===Au||t[0]===ku?ku+t:t}function v(t){return(t+="")[0]===ku?t.slice(1):t}function y(t){return d(t)in this._}function m(t){return(t=d(t))in this._&&delete this._[t]}function x(){var t=[];for(var n in this._)t.push(v(n));return t}function b(){var t=0;for(var n in this._)++t;
9return t}function M(){for(var t in this._)return!1;return!0}function w(){this._=Object.create(null)}function _(t){return t}function E(t,n,r){return function(){var e=r.apply(n,arguments);return e===n?t:e}}function S(t,n){if(n in t)return n;n=n.charAt(0).toUpperCase()+n.slice(1);for(var r=0,e=Nu.length;r<e;++r){var i=Nu[r]+n;if(i in t)return i}}function A(){}function k(){}function N(t){function n(){for(var n,e=r,i=-1,o=e.length;++i<o;)(n=e[i].on)&&n.apply(this,arguments);return t}var r=[],e=new g;return n.on=function(n,i){var o,u=e.get(n);return arguments.length<2?u&&u.on:(u&&(u.on=null,r=r.slice(0,o=r.indexOf(u)).concat(r.slice(o+1)),e.remove(n)),i&&r.push(e.set(n,{on:i})),t)},n}function j(){pu.event.preventDefault()}function C(){for(var t,n=pu.event;t=n.sourceEvent;)n=t;return n}function T(t){for(var n=new k,r=0,e=arguments.length;++r<e;)n[arguments[r]]=N(n);return n.of=function(r,e){return function(i){try{var o=i.sourceEvent=pu.event;i.target=t,pu.event=i,n[i.type].apply(r,e)}finally{pu.event=o}}},n}function O(t){return Cu(t,Pu),t}function R(t){return"function"==typeof t?t:function(){return Tu(t,this)}}function P(t){return"function"==typeof t?t:function(){return Ou(t,this)}}function L(t,n){function r(){this.removeAttribute(t)}function e(){this.removeAttributeNS(t.space,t.local)}function i(){this.setAttribute(t,n)}function o(){this.setAttributeNS(t.space,t.local,n)}function u(){var r=n.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}function a(){var r=n.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}return t=pu.ns.qualify(t),null==n?t.local?e:r:"function"==typeof n?t.local?a:u:t.local?o:i}function z(t){return t.trim().replace(/\s+/g," ")}function U(t){return new RegExp("(?:^|\\s+)"+pu.requote(t)+"(?:\\s+|$)","g")}function q(t){return(t+"").trim().split(/^|\s+/)}function D(t,n){function r(){for(var r=-1;++r<i;)t[r](this,n)}function e(){for(var r=-1,e=n.apply(this,arguments);++r<i;)t[r](this,e)}t=q(t).map(I);var i=t.length;return"function"==typeof n?e:r}function I(t){var n=U(t);return function(r,e){if(i=r.classList)return e?i.add(t):i.remove(t);var i=r.getAttribute("class")||"";e?(n.lastIndex=0,n.test(i)||r.setAttribute("class",z(i+" "+t))):r.setAttribute("class",z(i.replace(n," ")))}}function B(t,n,r){function e(){this.style.removeProperty(t)}function i(){this.style.setProperty(t,n,r)}function o(){var e=n.apply(this,arguments);null==e?this.style.removeProperty(t):this.style.setProperty(t,e,r)}return null==n?e:"function"==typeof n?o:i}function Y(t,n){function r(){delete this[t]}function e(){this[t]=n}function i(){var r=n.apply(this,arguments);null==r?delete this[t]:this[t]=r}return null==n?r:"function"==typeof n?i:e}function F(t){function n(){var n=this.ownerDocument,r=this.namespaceURI;return r===Lu&&n.documentElement.namespaceURI===Lu?n.createElement(t):n.createElementNS(r,t)}function r(){return this.ownerDocument.createElementNS(t.space,t.local)}return"function"==typeof t?t:(t=pu.ns.qualify(t)).local?r:n}function H(){var t=this.parentNode;t&&t.removeChild(this)}function V(t){return{__data__:t}}function Z(t){return function(){return Ru(this,t)}}function $(t){return arguments.length||(t=a),function(n,r){return n&&r?t(n.__data__,r.__data__):!n-!r}}function W(t,n){for(var r=0,e=t.length;r<e;r++)for(var i,o=t[r],u=0,a=o.length;u<a;u++)(i=o[u])&&n(i,u,r);return t}function X(t){return Cu(t,Uu),t}function J(t){var n,r;return function(e,i,o){var u,a=t[o].update,c=a.length;for(o!=r&&(r=o,n=0),i>=n&&(n=i+1);!(u=a[n])&&++n<c;);return u}}function G(t,n,r){function e(){var n=this[u];n&&(this.removeEventListener(t,n,n.$),delete this[u])}function i(){var i=c(n,du(arguments));e.call(this),this.addEventListener(t,this[u]=i,i.$=r),i._=n}function o(){var n,r=new RegExp("^__on([^.]+)"+pu.requote(t)+"$");for(var e in this)if(n=e.match(r)){var i=this[e];this.removeEventListener(n[1],i,i.$),delete this[e]}}var u="__on"+t,a=t.indexOf("."),c=K;a>0&&(t=t.slice(0,a));var f=qu.get(t);return f&&(t=f,c=Q),a?n?i:e:n?A:o}function K(t,n){return function(r){var e=pu.event;pu.event=r,n[0]=this.__data__;try{t.apply(this,n)}finally{pu.event=e}}}function Q(t,n){var r=K(t,n);return function(t){var n=this,e=t.relatedTarget;e&&(e===n||8&e.compareDocumentPosition(n))||r.call(n,t)}}function tt(t){var n=".dragsuppress-"+ ++Iu,r="click"+n,e=pu.select(u(t)).on("touchmove"+n,j).on("dragstart"+n,j).on("selectstart"+n,j);if(null==Du&&(Du=!("onselectstart"in t)&&S(t.style,"userSelect")),Du){var i=o(t).style,a=i[Du];i[Du]="none"}return function(t){if(e.on(n,null),Du&&(i[Du]=a),t){var o=function(){e.on(r,null)};e.on(r,function(){j(),o()},!0),setTimeout(o,0)}}}function nt(t,n){n.changedTouches&&(n=n.changedTouches[0]);var r=t.ownerSVGElement||t;if(r.createSVGPoint){var e=r.createSVGPoint();if(Bu<0){var i=u(t);if(i.scrollX||i.scrollY){r=pu.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var o=r[0][0].getScreenCTM();Bu=!(o.f||o.e),r.remove()}}return Bu?(e.x=n.pageX,e.y=n.pageY):(e.x=n.clientX,e.y=n.clientY),e=e.matrixTransform(t.getScreenCTM().inverse()),[e.x,e.y]}var a=t.getBoundingClientRect();return[n.clientX-a.left-t.clientLeft,n.clientY-a.top-t.clientTop]}function rt(){return pu.event.changedTouches[0].identifier}function et(t){return t>0?1:t<0?-1:0}function it(t,n,r){return(n[0]-t[0])*(r[1]-t[1])-(n[1]-t[1])*(r[0]-t[0])}function ot(t){return t>1?0:t<-1?Hu:Math.acos(t)}function ut(t){return t>1?$u:t<-1?-$u:Math.asin(t)}function at(t){return((t=Math.exp(t))-1/t)/2}function ct(t){return((t=Math.exp(t))+1/t)/2}function ft(t){return((t=Math.exp(2*t))-1)/(t+1)}function lt(t){return(t=Math.sin(t/2))*t}function st(){}function ht(t,n,r){return this instanceof ht?(this.h=+t,this.s=+n,void(this.l=+r)):arguments.length<2?t instanceof ht?new ht(t.h,t.s,t.l):At(""+t,kt,ht):new ht(t,n,r)}function pt(t,n,r){function e(t){return t>360?t-=360:t<0&&(t+=360),t<60?o+(u-o)*t/60:t<180?u:t<240?o+(u-o)*(240-t)/60:o}function i(t){return Math.round(255*e(t))}var o,u;return t=isNaN(t)?0:(t%=360)<0?t+360:t,n=isNaN(n)?0:n<0?0:n>1?1:n,r=r<0?0:r>1?1:r,u=r<=.5?r*(1+n):r+n-r*n,o=2*r-u,new wt(i(t+120),i(t),i(t-120))}function gt(t,n,r){return this instanceof gt?(this.h=+t,this.c=+n,void(this.l=+r)):arguments.length<2?t instanceof gt?new gt(t.h,t.c,t.l):t instanceof vt?mt(t.l,t.a,t.b):mt((t=Nt((t=pu.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new gt(t,n,r)}function dt(t,n,r){return isNaN(t)&&(t=0),isNaN(n)&&(n=0),new vt(r,Math.cos(t*=Wu)*n,Math.sin(t)*n)}function vt(t,n,r){return this instanceof vt?(this.l=+t,this.a=+n,void(this.b=+r)):arguments.length<2?t instanceof vt?new vt(t.l,t.a,t.b):t instanceof gt?dt(t.h,t.c,t.l):Nt((t=wt(t)).r,t.g,t.b):new vt(t,n,r)}function yt(t,n,r){var e=(t+16)/116,i=e+n/500,o=e-r/200;return i=xt(i)*oa,e=xt(e)*ua,o=xt(o)*aa,new wt(Mt(3.2404542*i-1.5371385*e-.4985314*o),Mt(-.969266*i+1.8760108*e+.041556*o),Mt(.0556434*i-.2040259*e+1.0572252*o))}function mt(t,n,r){return t>0?new gt(Math.atan2(r,n)*Xu,Math.sqrt(n*n+r*r),t):new gt(NaN,NaN,t)}function xt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function bt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function Mt(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function wt(t,n,r){return this instanceof wt?(this.r=~~t,this.g=~~n,void(this.b=~~r)):arguments.length<2?t instanceof wt?new wt(t.r,t.g,t.b):At(""+t,wt,pt):new wt(t,n,r)}function _t(t){return new wt(t>>16,t>>8&255,255&t)}function Et(t){return _t(t)+""}function St(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function At(t,n,r){var e,i,o,u=0,a=0,c=0;if(e=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=e[2].split(","),e[1]){case"hsl":return r(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return n(Ct(i[0]),Ct(i[1]),Ct(i[2]))}return(o=la.get(t))?n(o.r,o.g,o.b):(null==t||"#"!==t.charAt(0)||isNaN(o=parseInt(t.slice(1),16))||(4===t.length?(u=(3840&o)>>4,u=u>>4|u,a=240&o,a=a>>4|a,c=15&o,c=c<<4|c):7===t.length&&(u=(16711680&o)>>16,a=(65280&o)>>8,c=255&o)),n(u,a,c))}function kt(t,n,r){var e,i,o=Math.min(t/=255,n/=255,r/=255),u=Math.max(t,n,r),a=u-o,c=(u+o)/2;return a?(i=c<.5?a/(u+o):a/(2-u-o),e=t==u?(n-r)/a+(n<r?6:0):n==u?(r-t)/a+2:(t-n)/a+4,e*=60):(e=NaN,i=c>0&&c<1?0:e),new ht(e,i,c)}function Nt(t,n,r){t=jt(t),n=jt(n),r=jt(r);var e=bt((.4124564*t+.3575761*n+.1804375*r)/oa),i=bt((.2126729*t+.7151522*n+.072175*r)/ua),o=bt((.0193339*t+.119192*n+.9503041*r)/aa);return vt(116*i-16,500*(e-i),200*(i-o))}function jt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ct(t){var n=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*n):n}function Tt(t){return"function"==typeof t?t:function(){return t}}function Ot(t){return function(n,r,e){return 2===arguments.length&&"function"==typeof r&&(e=r,r=null),Rt(n,r,t,e)}}function Rt(t,n,r,e){function i(){var t,n=c.status;if(!n&&Lt(c)||n>=200&&n<300||304===n){try{t=r.call(o,c)}catch(e){return void u.error.call(o,e)}u.load.call(o,t)}else u.error.call(o,c)}var o={},u=pu.dispatch("beforesend","progress","load","error"),a={},c=new XMLHttpRequest,f=null;return!this.XDomainRequest||"withCredentials"in c||!/^(http(s)?:)?\/\//.test(t)||(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=i:c.onreadystatechange=function(){c.readyState>3&&i()},c.onprogress=function(t){var n=pu.event;pu.event=t;try{u.progress.call(o,c)}finally{pu.event=n}},o.header=function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?a[t]:(null==n?delete a[t]:a[t]=n+"",o)},o.mimeType=function(t){return arguments.length?(n=null==t?null:t+"",o):n},o.responseType=function(t){return arguments.length?(f=t,o):f},o.response=function(t){return r=t,o},["get","post"].forEach(function(t){o[t]=function(){return o.send.apply(o,[t].concat(du(arguments)))}}),o.send=function(r,e,i){if(2===arguments.length&&"function"==typeof e&&(i=e,e=null),c.open(r,t,!0),null==n||"accept"in a||(a.accept=n+",*/*"),c.setRequestHeader)for(var l in a)c.setRequestHeader(l,a[l]);return null!=n&&c.overrideMimeType&&c.overrideMimeType(n),null!=f&&(c.responseType=f),null!=i&&o.on("error",i).on("load",function(t){i(null,t)}),u.beforesend.call(o,c),c.send(null==e?null:e),o},o.abort=function(){return c.abort(),o},pu.rebind(o,u,"on"),null==e?o:o.get(Pt(e))}function Pt(t){return 1===t.length?function(n,r){t(null==n?r:null)}:t}function Lt(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}function zt(t,n,r){var e=arguments.length;e<2&&(n=0),e<3&&(r=Date.now());var i=r+n,o={c:t,t:i,n:null};return ha?ha.n=o:sa=o,ha=o,pa||(ga=clearTimeout(ga),pa=1,da(Ut)),o}function Ut(){var t=qt(),n=Dt()-t;n>24?(isFinite(n)&&(clearTimeout(ga),ga=setTimeout(Ut,n)),pa=0):(pa=1,da(Ut))}function qt(){for(var t=Date.now(),n=sa;n;)t>=n.t&&n.c(t-n.t)&&(n.c=null),n=n.n;return t}function Dt(){for(var t,n=sa,r=1/0;n;)n.c?(n.t<r&&(r=n.t),n=(t=n).n):n=t?t.n=n.n:sa=n.n;return ha=t,r}function It(t,n){return n-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function Bt(t,n){var r=Math.pow(10,3*Su(8-n));return{scale:n>8?function(t){return t/r}:function(t){return t*r},symbol:t}}function Yt(t){var n=t.decimal,r=t.thousands,e=t.grouping,i=t.currency,o=e&&r?function(t,n){for(var i=t.length,o=[],u=0,a=e[0],c=0;i>0&&a>0&&(c+a+1>n&&(a=Math.max(1,n-c)),o.push(t.substring(i-=a,i+a)),!((c+=a+1)>n));)a=e[u=(u+1)%e.length];return o.reverse().join(r)}:_;return function(t){var r=ya.exec(t),e=r[1]||" ",u=r[2]||">",a=r[3]||"-",c=r[4]||"",f=r[5],l=+r[6],s=r[7],h=r[8],p=r[9],g=1,d="",v="",y=!1,m=!0;switch(h&&(h=+h.substring(1)),(f||"0"===e&&"="===u)&&(f=e="0",u="="),p){case"n":s=!0,p="g";break;case"%":g=100,v="%",p="f";break;case"p":g=100,v="%",p="r";break;case"b":case"o":case"x":case"X":"#"===c&&(d="0"+p.toLowerCase());case"c":m=!1;case"d":y=!0,h=0;break;case"s":g=-1,p="r"}"$"===c&&(d=i[0],v=i[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)||Ft;var x=f&&s;return function(t){var r=v;if(y&&t%1)return"";var i=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===a?"":a;if(g<0){var c=pu.formatPrefix(t,h);t=c.scale(t),r=c.symbol+v}else t*=g;t=p(t,h);var b,M,w=t.lastIndexOf(".");if(w<0){var _=m?t.lastIndexOf("e"):-1;_<0?(b=t,M=""):(b=t.substring(0,_),M=t.substring(_))}else b=t.substring(0,w),M=n+t.substring(w+1);!f&&s&&(b=o(b,1/0));var E=d.length+b.length+M.length+(x?0:i.length),S=E<l?new Array(E=l-E+1).join(e):"";return x&&(b=o(S+b,S.length?l-M.length:1/0)),i+=d,t=b+M,("<"===u?i+t+S:">"===u?S+i+t:"^"===u?S.substring(0,E>>=1)+i+t+S.substring(E):i+(x?t:S+t))+r}}}function Ft(t){return t+""}function Ht(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Vt(t,n,r){function e(n){var r=t(n),e=o(r,1);return n-r<e-n?r:e}function i(r){return n(r=t(new ba(r-1)),1),r}function o(t,r){return n(t=new ba((+t)),r),t}function u(t,e,o){var u=i(t),a=[];if(o>1)for(;u<e;)r(u)%o||a.push(new Date((+u))),n(u,1);else for(;u<e;)a.push(new Date((+u))),n(u,1);return a}function a(t,n,r){try{ba=Ht;var e=new Ht;return e._=t,u(e,n,r)}finally{ba=Date}}t.floor=t,t.round=e,t.ceil=i,t.offset=o,t.range=u;var c=t.utc=Zt(t);return c.floor=c,c.round=Zt(e),c.ceil=Zt(i),c.offset=Zt(o),c.range=a,t}function Zt(t){return function(n,r){try{ba=Ht;var e=new Ht;return e._=n,t(e,r)._}finally{ba=Date}}}function $t(t){function n(t){function n(n){for(var r,i,o,u=[],a=-1,c=0;++a<e;)37===t.charCodeAt(a)&&(u.push(t.slice(c,a)),null!=(i=wa[r=t.charAt(++a)])&&(r=t.charAt(++a)),(o=N[r])&&(r=o(n,null==i?"e"===r?" ":"0":i)),u.push(r),c=a+1);return u.push(t.slice(c,a)),u.join("")}var e=t.length;return n.parse=function(n){var e={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},i=r(e,t,n,0);if(i!=n.length)return null;"p"in e&&(e.H=e.H%12+12*e.p);var o=null!=e.Z&&ba!==Ht,u=new(o?Ht:ba);return"j"in e?u.setFullYear(e.y,0,e.j):"W"in e||"U"in e?("w"in e||(e.w="W"in e?1:0),u.setFullYear(e.y,0,1),u.setFullYear(e.y,0,"W"in e?(e.w+6)%7+7*e.W-(u.getDay()+5)%7:e.w+7*e.U-(u.getDay()+6)%7)):u.setFullYear(e.y,e.m,e.d),u.setHours(e.H+(e.Z/100|0),e.M+e.Z%100,e.S,e.L),o?u._:u},n.toString=function(){return t},n}function r(t,n,r,e){for(var i,o,u,a=0,c=n.length,f=r.length;a<c;){if(e>=f)return-1;if(i=n.charCodeAt(a++),37===i){if(u=n.charAt(a++),o=j[u in wa?n.charAt(a++):u],!o||(e=o(t,r,e))<0)return-1}else if(i!=r.charCodeAt(e++))return-1}return e}function e(t,n,r){w.lastIndex=0;var e=w.exec(n.slice(r));return e?(t.w=_.get(e[0].toLowerCase()),r+e[0].length):-1}function i(t,n,r){b.lastIndex=0;var e=b.exec(n.slice(r));return e?(t.w=M.get(e[0].toLowerCase()),r+e[0].length):-1}function o(t,n,r){A.lastIndex=0;var e=A.exec(n.slice(r));return e?(t.m=k.get(e[0].toLowerCase()),r+e[0].length):-1}function u(t,n,r){E.lastIndex=0;var e=E.exec(n.slice(r));return e?(t.m=S.get(e[0].toLowerCase()),r+e[0].length):-1}function a(t,n,e){return r(t,N.c.toString(),n,e)}function c(t,n,e){return r(t,N.x.toString(),n,e)}function f(t,n,e){return r(t,N.X.toString(),n,e)}function l(t,n,r){var e=x.get(n.slice(r,r+=2).toLowerCase());return null==e?-1:(t.p=e,r)}var s=t.dateTime,h=t.date,p=t.time,g=t.periods,d=t.days,v=t.shortDays,y=t.months,m=t.shortMonths;n.utc=function(t){function r(t){try{ba=Ht;var n=new ba;return n._=t,e(n)}finally{ba=Date}}var e=n(t);return r.parse=function(t){try{ba=Ht;var n=e.parse(t);return n&&n._}finally{ba=Date}},r.toString=e.toString,r},n.multi=n.utc.multi=gn;var x=pu.map(),b=Xt(d),M=Jt(d),w=Xt(v),_=Jt(v),E=Xt(y),S=Jt(y),A=Xt(m),k=Jt(m);g.forEach(function(t,n){x.set(t.toLowerCase(),n)});var N={a:function(t){return v[t.getDay()]},A:function(t){return d[t.getDay()]},b:function(t){return m[t.getMonth()]},B:function(t){return y[t.getMonth()]},c:n(s),d:function(t,n){return Wt(t.getDate(),n,2)},e:function(t,n){return Wt(t.getDate(),n,2)},H:function(t,n){return Wt(t.getHours(),n,2)},I:function(t,n){return Wt(t.getHours()%12||12,n,2)},j:function(t,n){return Wt(1+xa.dayOfYear(t),n,3)},L:function(t,n){return Wt(t.getMilliseconds(),n,3)},m:function(t,n){return Wt(t.getMonth()+1,n,2)},M:function(t,n){return Wt(t.getMinutes(),n,2)},p:function(t){return g[+(t.getHours()>=12)]},S:function(t,n){return Wt(t.getSeconds(),n,2)},U:function(t,n){return Wt(xa.sundayOfYear(t),n,2)},w:function(t){return t.getDay()},W:function(t,n){return Wt(xa.mondayOfYear(t),n,2)},x:n(h),X:n(p),y:function(t,n){return Wt(t.getFullYear()%100,n,2)},Y:function(t,n){return Wt(t.getFullYear()%1e4,n,4)},Z:hn,"%":function(){return"%"}},j={a:e,A:i,b:o,B:u,c:a,d:un,e:un,H:cn,I:cn,j:an,L:sn,m:on,M:fn,p:l,S:ln,U:Kt,w:Gt,W:Qt,x:c,X:f,y:nn,Y:tn,Z:rn,"%":pn};return n}function Wt(t,n,r){var e=t<0?"-":"",i=(e?-t:t)+"",o=i.length;return e+(o<r?new Array(r-o+1).join(n)+i:i)}function Xt(t){return new RegExp("^(?:"+t.map(pu.requote).join("|")+")","i")}function Jt(t){for(var n=new g,r=-1,e=t.length;++r<e;)n.set(t[r].toLowerCase(),r);return n}function Gt(t,n,r){_a.lastIndex=0;var e=_a.exec(n.slice(r,r+1));return e?(t.w=+e[0],r+e[0].length):-1}function Kt(t,n,r){_a.lastIndex=0;var e=_a.exec(n.slice(r));return e?(t.U=+e[0],r+e[0].length):-1}function Qt(t,n,r){_a.lastIndex=0;var e=_a.exec(n.slice(r));return e?(t.W=+e[0],r+e[0].length):-1}function tn(t,n,r){_a.lastIndex=0;var e=_a.exec(n.slice(r,r+4));return e?(t.y=+e[0],r+e[0].length):-1}function nn(t,n,r){_a.lastIndex=0;var e=_a.exec(n.slice(r,r+2));return e?(t.y=en(+e[0]),r+e[0].length):-1}function rn(t,n,r){return/^[+-]\d{4}$/.test(n=n.slice(r,r+5))?(t.Z=-n,r+5):-1}function en(t){return t+(t>68?1900:2e3)}function on(t,n,r){_a.lastIndex=0;var e=_a.exec(n.slice(r,r+2));return e?(t.m=e[0]-1,r+e[0].length):-1}function un(t,n,r){_a.lastIndex=0;var e=_a.exec(n.slice(r,r+2));return e?(t.d=+e[0],r+e[0].length):-1}function an(t,n,r){_a.lastIndex=0;var e=_a.exec(n.slice(r,r+3));return e?(t.j=+e[0],r+e[0].length):-1}function cn(t,n,r){_a.lastIndex=0;var e=_a.exec(n.slice(r,r+2));return e?(t.H=+e[0],r+e[0].length):-1}function fn(t,n,r){_a.lastIndex=0;var e=_a.exec(n.slice(r,r+2));return e?(t.M=+e[0],r+e[0].length):-1}function ln(t,n,r){_a.lastIndex=0;var e=_a.exec(n.slice(r,r+2));return e?(t.S=+e[0],r+e[0].length):-1}function sn(t,n,r){_a.lastIndex=0;var e=_a.exec(n.slice(r,r+3));return e?(t.L=+e[0],r+e[0].length):-1}function hn(t){var n=t.getTimezoneOffset(),r=n>0?"-":"+",e=Su(n)/60|0,i=Su(n)%60;return r+Wt(e,"0",2)+Wt(i,"0",2)}function pn(t,n,r){Ea.lastIndex=0;var e=Ea.exec(n.slice(r,r+1));return e?r+e[0].length:-1}function gn(t){for(var n=t.length,r=-1;++r<n;)t[r][0]=this(t[r][0]);return function(n){for(var r=0,e=t[r];!e[1](n);)e=t[++r];return e[0](n)}}function dn(){}function vn(t,n,r){var e=r.s=t+n,i=e-t,o=e-i;r.t=t-o+(n-i)}function yn(t,n){t&&Na.hasOwnProperty(t.type)&&Na[t.type](t,n)}function mn(t,n,r){var e,i=-1,o=t.length-r;for(n.lineStart();++i<o;)e=t[i],n.point(e[0],e[1],e[2]);n.lineEnd()}function xn(t,n){var r=-1,e=t.length;for(n.polygonStart();++r<e;)mn(t[r],n,1);n.polygonEnd()}function bn(){function t(t,n){t*=Wu,n=n*Wu/2+Hu/4;var r=t-e,u=r>=0?1:-1,a=u*r,c=Math.cos(n),f=Math.sin(n),l=o*f,s=i*c+l*Math.cos(a),h=l*u*Math.sin(a);Ca.add(Math.atan2(h,s)),e=t,i=c,o=f}var n,r,e,i,o;Ta.point=function(u,a){Ta.point=t,e=(n=u)*Wu,i=Math.cos(a=(r=a)*Wu/2+Hu/4),o=Math.sin(a)},Ta.lineEnd=function(){t(n,r)}}function Mn(t){var n=t[0],r=t[1],e=Math.cos(r);return[e*Math.cos(n),e*Math.sin(n),Math.sin(r)]}function wn(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function _n(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function En(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function Sn(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function An(t){var n=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}function kn(t){return[Math.atan2(t[1],t[0]),ut(t[2])]}function Nn(t,n){return Su(t[0]-n[0])<Yu&&Su(t[1]-n[1])<Yu}function jn(t,n){t*=Wu;var r=Math.cos(n*=Wu);Cn(r*Math.cos(t),r*Math.sin(t),Math.sin(n))}function Cn(t,n,r){++Oa,Pa+=(t-Pa)/Oa,La+=(n-La)/Oa,za+=(r-za)/Oa}function Tn(){function t(t,i){t*=Wu;var o=Math.cos(i*=Wu),u=o*Math.cos(t),a=o*Math.sin(t),c=Math.sin(i),f=Math.atan2(Math.sqrt((f=r*c-e*a)*f+(f=e*u-n*c)*f+(f=n*a-r*u)*f),n*u+r*a+e*c);Ra+=f,Ua+=f*(n+(n=u)),qa+=f*(r+(r=a)),Da+=f*(e+(e=c)),Cn(n,r,e)}var n,r,e;Fa.point=function(i,o){i*=Wu;var u=Math.cos(o*=Wu);n=u*Math.cos(i),r=u*Math.sin(i),e=Math.sin(o),Fa.point=t,Cn(n,r,e)}}function On(){Fa.point=jn}function Rn(){function t(t,n){t*=Wu;var r=Math.cos(n*=Wu),u=r*Math.cos(t),a=r*Math.sin(t),c=Math.sin(n),f=i*c-o*a,l=o*u-e*c,s=e*a-i*u,h=Math.sqrt(f*f+l*l+s*s),p=e*u+i*a+o*c,g=h&&-ot(p)/h,d=Math.atan2(h,p);Ia+=g*f,Ba+=g*l,Ya+=g*s,Ra+=d,Ua+=d*(e+(e=u)),qa+=d*(i+(i=a)),Da+=d*(o+(o=c)),Cn(e,i,o)}var n,r,e,i,o;Fa.point=function(u,a){n=u,r=a,Fa.point=t,u*=Wu;var c=Math.cos(a*=Wu);e=c*Math.cos(u),i=c*Math.sin(u),o=Math.sin(a),Cn(e,i,o)},Fa.lineEnd=function(){t(n,r),Fa.lineEnd=On,Fa.point=jn}}function Pn(t,n){function r(r,e){return r=t(r,e),n(r[0],r[1])}return t.invert&&n.invert&&(r.invert=function(r,e){return r=n.invert(r,e),r&&t.invert(r[0],r[1])}),r}function Ln(){return!0}function zn(t,n,r,e,i){var o=[],u=[];if(t.forEach(function(t){if(!((n=t.length-1)<=0)){var n,r=t[0],e=t[n];if(Nn(r,e)){i.lineStart();for(var a=0;a<n;++a)i.point((r=t[a])[0],r[1]);return void i.lineEnd()}var c=new qn(r,t,null,(!0)),f=new qn(r,null,c,(!1));c.o=f,o.push(c),u.push(f),c=new qn(e,t,null,(!1)),f=new qn(e,null,c,(!0)),c.o=f,o.push(c),u.push(f)}}),u.sort(n),Un(o),Un(u),o.length){for(var a=0,c=r,f=u.length;a<f;++a)u[a].e=c=!c;for(var l,s,h=o[0];;){for(var p=h,g=!0;p.v;)if((p=p.n)===h)return;l=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(g)for(var a=0,f=l.length;a<f;++a)i.point((s=l[a])[0],s[1]);else e(p.x,p.n.x,1,i);p=p.n}else{if(g){l=p.p.z;for(var a=l.length-1;a>=0;--a)i.point((s=l[a])[0],s[1])}else e(p.x,p.p.x,-1,i);p=p.p}p=p.o,l=p.z,g=!g}while(!p.v);i.lineEnd()}}}function Un(t){if(n=t.length){for(var n,r,e=0,i=t[0];++e<n;)i.n=r=t[e],r.p=i,i=r;i.n=r=t[0],r.p=i}}function qn(t,n,r,e){this.x=t,this.z=n,this.o=r,this.e=e,this.v=!1,this.n=this.p=null}function Dn(t,n,r,e){return function(i,o){function u(n,r){var e=i(n,r);t(n=e[0],r=e[1])&&o.point(n,r)}function a(t,n){var r=i(t,n);v.point(r[0],r[1])}function c(){m.point=a,v.lineStart()}function f(){m.point=u,v.lineEnd()}function l(t,n){d.push([t,n]);var r=i(t,n);b.point(r[0],r[1])}function s(){b.lineStart(),d=[]}function h(){l(d[0][0],d[0][1]),b.lineEnd();var t,n=b.clean(),r=x.buffer(),e=r.length;if(d.pop(),g.push(d),d=null,e)if(1&n){t=r[0];var i,e=t.length-1,u=-1;if(e>0){for(M||(o.polygonStart(),M=!0),o.lineStart();++u<e;)o.point((i=t[u])[0],i[1]);o.lineEnd()}}else e>1&&2&n&&r.push(r.pop().concat(r.shift())),p.push(r.filter(In))}var p,g,d,v=n(o),y=i.invert(e[0],e[1]),m={point:u,lineStart:c,lineEnd:f,polygonStart:function(){m.point=l,m.lineStart=s,m.lineEnd=h,p=[],g=[]},polygonEnd:function(){m.point=u,m.lineStart=c,m.lineEnd=f,p=pu.merge(p);var t=Zn(y,g);p.length?(M||(o.polygonStart(),M=!0),zn(p,Yn,t,r,o)):t&&(M||(o.polygonStart(),M=!0),o.lineStart(),r(null,null,1,o),o.lineEnd()),M&&(o.polygonEnd(),M=!1),p=g=null},sphere:function(){o.polygonStart(),o.lineStart(),r(null,null,1,o),o.lineEnd(),o.polygonEnd()}},x=Bn(),b=n(x),M=!1;return m}}function In(t){return t.length>1}function Bn(){var t,n=[];return{lineStart:function(){n.push(t=[])},point:function(n,r){t.push([n,r])},lineEnd:A,buffer:function(){var r=n;return n=[],t=null,r},rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))}}}function Yn(t,n){return((t=t.x)[0]<0?t[1]-$u-Yu:$u-t[1])-((n=n.x)[0]<0?n[1]-$u-Yu:$u-n[1])}function Fn(t){var n,r=NaN,e=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,u){var a=o>0?Hu:-Hu,c=Su(o-r);Su(c-Hu)<Yu?(t.point(r,e=(e+u)/2>0?$u:-$u),t.point(i,e),t.lineEnd(),t.lineStart(),t.point(a,e),t.point(o,e),n=0):i!==a&&c>=Hu&&(Su(r-i)<Yu&&(r-=i*Yu),Su(o-a)<Yu&&(o-=a*Yu),e=Hn(r,e,o,u),t.point(i,e),t.lineEnd(),t.lineStart(),t.point(a,e),n=0),t.point(r=o,e=u),i=a},lineEnd:function(){t.lineEnd(),r=e=NaN},clean:function(){return 2-n}}}function Hn(t,n,r,e){var i,o,u=Math.sin(t-r);return Su(u)>Yu?Math.atan((Math.sin(n)*(o=Math.cos(e))*Math.sin(r)-Math.sin(e)*(i=Math.cos(n))*Math.sin(t))/(i*o*u)):(n+e)/2}function Vn(t,n,r,e){var i;if(null==t)i=r*$u,e.point(-Hu,i),e.point(0,i),e.point(Hu,i),e.point(Hu,0),e.point(Hu,-i),e.point(0,-i),e.point(-Hu,-i),e.point(-Hu,0),e.point(-Hu,i);else if(Su(t[0]-n[0])>Yu){var o=t[0]<n[0]?Hu:-Hu;i=r*o/2,e.point(-o,i),e.point(0,i),e.point(o,i)}else e.point(n[0],n[1])}function Zn(t,n){var r=t[0],e=t[1],i=[Math.sin(r),-Math.cos(r),0],o=0,u=0;Ca.reset();for(var a=0,c=n.length;a<c;++a){var f=n[a],l=f.length;if(l)for(var s=f[0],h=s[0],p=s[1]/2+Hu/4,g=Math.sin(p),d=Math.cos(p),v=1;;){v===l&&(v=0),t=f[v];var y=t[0],m=t[1]/2+Hu/4,x=Math.sin(m),b=Math.cos(m),M=y-h,w=M>=0?1:-1,_=w*M,E=_>Hu,S=g*x;if(Ca.add(Math.atan2(S*w*Math.sin(_),d*b+S*Math.cos(_))),o+=E?M+w*Vu:M,E^h>=r^y>=r){var A=_n(Mn(s),Mn(t));An(A);var k=_n(i,A);An(k);var N=(E^M>=0?-1:1)*ut(k[2]);(e>N||e===N&&(A[0]||A[1]))&&(u+=E^M>=0?1:-1)}if(!v++)break;h=y,g=x,d=b,s=t}}return(o<-Yu||o<Yu&&Ca<-Yu)^1&u}function $n(t){function n(t,n){return Math.cos(t)*Math.cos(n)>o}function r(t){var r,o,c,f,l;return{lineStart:function(){f=c=!1,l=1},point:function(s,h){var p,g=[s,h],d=n(s,h),v=u?d?0:i(s,h):d?i(s+(s<0?Hu:-Hu),h):0;if(!r&&(f=c=d)&&t.lineStart(),d!==c&&(p=e(r,g),(Nn(r,p)||Nn(g,p))&&(g[0]+=Yu,g[1]+=Yu,d=n(g[0],g[1]))),d!==c)l=0,d?(t.lineStart(),p=e(g,r),t.point(p[0],p[1])):(p=e(r,g),t.point(p[0],p[1]),t.lineEnd()),r=p;else if(a&&r&&u^d){var y;v&o||!(y=e(g,r,!0))||(l=0,u?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!d||r&&Nn(r,g)||t.point(g[0],g[1]),r=g,c=d,o=v},lineEnd:function(){c&&t.lineEnd(),r=null},clean:function(){return l|(f&&c)<<1}}}function e(t,n,r){var e=Mn(t),i=Mn(n),u=[1,0,0],a=_n(e,i),c=wn(a,a),f=a[0],l=c-f*f;if(!l)return!r&&t;var s=o*c/l,h=-o*f/l,p=_n(u,a),g=Sn(u,s),d=Sn(a,h);En(g,d);var v=p,y=wn(g,v),m=wn(v,v),x=y*y-m*(wn(g,g)-1);if(!(x<0)){var b=Math.sqrt(x),M=Sn(v,(-y-b)/m);if(En(M,g),M=kn(M),!r)return M;var w,_=t[0],E=n[0],S=t[1],A=n[1];E<_&&(w=_,_=E,E=w);var k=E-_,N=Su(k-Hu)<Yu,j=N||k<Yu;if(!N&&A<S&&(w=S,S=A,A=w),j?N?S+A>0^M[1]<(Su(M[0]-_)<Yu?S:A):S<=M[1]&&M[1]<=A:k>Hu^(_<=M[0]&&M[0]<=E)){var C=Sn(v,(-y+b)/m);return En(C,g),[M,kn(C)]}}}function i(n,r){var e=u?t:Hu-t,i=0;return n<-e?i|=1:n>e&&(i|=2),r<-e?i|=4:r>e&&(i|=8),i}var o=Math.cos(t),u=o>0,a=Su(o)>Yu,c=br(t,6*Wu);return Dn(n,r,c,u?[0,-t]:[-Hu,t-Hu])}function Wn(t,n,r,e){return function(i){var o,u=i.a,a=i.b,c=u.x,f=u.y,l=a.x,s=a.y,h=0,p=1,g=l-c,d=s-f;if(o=t-c,g||!(o>0)){if(o/=g,g<0){if(o<h)return;o<p&&(p=o)}else if(g>0){if(o>p)return;o>h&&(h=o)}if(o=r-c,g||!(o<0)){if(o/=g,g<0){if(o>p)return;o>h&&(h=o)}else if(g>0){if(o<h)return;o<p&&(p=o)}if(o=n-f,d||!(o>0)){if(o/=d,d<0){if(o<h)return;o<p&&(p=o)}else if(d>0){if(o>p)return;o>h&&(h=o)}if(o=e-f,d||!(o<0)){if(o/=d,d<0){if(o>p)return;o>h&&(h=o)}else if(d>0){if(o<h)return;o<p&&(p=o)}return h>0&&(i.a={x:c+h*g,y:f+h*d}),p<1&&(i.b={x:c+p*g,y:f+p*d}),i}}}}}}function Xn(t,n,r,e){function i(e,i){return Su(e[0]-t)<Yu?i>0?0:3:Su(e[0]-r)<Yu?i>0?2:1:Su(e[1]-n)<Yu?i>0?1:0:i>0?3:2}function o(t,n){return u(t.x,n.x)}function u(t,n){var r=i(t,1),e=i(n,1);return r!==e?r-e:0===r?n[1]-t[1]:1===r?t[0]-n[0]:2===r?t[1]-n[1]:n[0]-t[0]}return function(a){function c(t){for(var n=0,r=v.length,e=t[1],i=0;i<r;++i)for(var o,u=1,a=v[i],c=a.length,f=a[0];u<c;++u)o=a[u],f[1]<=e?o[1]>e&&it(f,o,t)>0&&++n:o[1]<=e&&it(f,o,t)<0&&--n,f=o;return 0!==n}function f(o,a,c,f){var l=0,s=0;if(null==o||(l=i(o,c))!==(s=i(a,c))||u(o,a)<0^c>0){do f.point(0===l||3===l?t:r,l>1?e:n);while((l=(l+c+4)%4)!==s)}else f.point(a[0],a[1])}function l(i,o){return t<=i&&i<=r&&n<=o&&o<=e}function s(t,n){l(t,n)&&a.point(t,n)}function h(){j.point=g,v&&v.push(y=[]),E=!0,_=!1,M=w=NaN}function p(){d&&(g(m,x),b&&_&&k.rejoin(),d.push(k.buffer())),j.point=s,_&&a.lineEnd()}function g(t,n){t=Math.max(-Va,Math.min(Va,t)),n=Math.max(-Va,Math.min(Va,n));var r=l(t,n);if(v&&y.push([t,n]),E)m=t,x=n,b=r,E=!1,r&&(a.lineStart(),a.point(t,n));else if(r&&_)a.point(t,n);else{var e={a:{x:M,y:w},b:{x:t,y:n}};N(e)?(_||(a.lineStart(),a.point(e.a.x,e.a.y)),a.point(e.b.x,e.b.y),r||a.lineEnd(),S=!1):r&&(a.lineStart(),a.point(t,n),S=!1)}M=t,w=n,_=r}var d,v,y,m,x,b,M,w,_,E,S,A=a,k=Bn(),N=Wn(t,n,r,e),j={point:s,lineStart:h,lineEnd:p,polygonStart:function(){a=k,d=[],v=[],S=!0},polygonEnd:function(){a=A,d=pu.merge(d);var n=c([t,e]),r=S&&n,i=d.length;(r||i)&&(a.polygonStart(),r&&(a.lineStart(),f(null,null,1,a),a.lineEnd()),i&&zn(d,o,n,f,a),a.polygonEnd()),d=v=y=null}};return j}}function Jn(t){var n=0,r=Hu/3,e=hr(t),i=e(n,r);return i.parallels=function(t){return arguments.length?e(n=t[0]*Hu/180,r=t[1]*Hu/180):[n/Hu*180,r/Hu*180]},i}function Gn(t,n){function r(t,n){var r=Math.sqrt(o-2*i*Math.sin(n))/i;return[r*Math.sin(t*=i),u-r*Math.cos(t)]}var e=Math.sin(t),i=(e+Math.sin(n))/2,o=1+e*(2*i-e),u=Math.sqrt(o)/i;return r.invert=function(t,n){var r=u-n;return[Math.atan2(t,r)/i,ut((o-(t*t+r*r)*i*i)/(2*i))]},r}function Kn(){function t(t,n){$a+=i*t-e*n,e=t,i=n}var n,r,e,i;Ka.point=function(o,u){Ka.point=t,n=e=o,r=i=u},Ka.lineEnd=function(){t(n,r)}}function Qn(t,n){t<Wa&&(Wa=t),t>Ja&&(Ja=t),n<Xa&&(Xa=n),n>Ga&&(Ga=n)}function tr(){function t(t,n){u.push("M",t,",",n,o)}function n(t,n){u.push("M",t,",",n),a.point=r}function r(t,n){u.push("L",t,",",n)}function e(){a.point=t}function i(){u.push("Z")}var o=nr(4.5),u=[],a={point:t,lineStart:function(){a.point=n},lineEnd:e,polygonStart:function(){a.lineEnd=i},polygonEnd:function(){a.lineEnd=e,a.point=t},pointRadius:function(t){return o=nr(t),a},result:function(){if(u.length){var t=u.join("");return u=[],t}}};return a}function nr(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function rr(t,n){Pa+=t,La+=n,++za}function er(){function t(t,e){var i=t-n,o=e-r,u=Math.sqrt(i*i+o*o);Ua+=u*(n+t)/2,qa+=u*(r+e)/2,Da+=u,rr(n=t,r=e)}var n,r;tc.point=function(e,i){tc.point=t,rr(n=e,r=i)}}function ir(){tc.point=rr}function or(){function t(t,n){var r=t-e,o=n-i,u=Math.sqrt(r*r+o*o);Ua+=u*(e+t)/2,qa+=u*(i+n)/2,Da+=u,u=i*t-e*n,Ia+=u*(e+t),Ba+=u*(i+n),Ya+=3*u,rr(e=t,i=n)}var n,r,e,i;tc.point=function(o,u){tc.point=t,rr(n=e=o,r=i=u)},tc.lineEnd=function(){t(n,r)}}function ur(t){function n(n,r){t.moveTo(n+u,r),t.arc(n,r,u,0,Vu)}function r(n,r){t.moveTo(n,r),a.point=e}function e(n,r){t.lineTo(n,r)}function i(){a.point=n}function o(){t.closePath()}var u=4.5,a={point:n,lineStart:function(){a.point=r},lineEnd:i,polygonStart:function(){a.lineEnd=o},polygonEnd:function(){a.lineEnd=i,a.point=n},pointRadius:function(t){return u=t,a},result:A};return a}function ar(t){function n(t){return(a?e:r)(t)}function r(n){return lr(n,function(r,e){r=t(r,e),n.point(r[0],r[1])})}function e(n){function r(r,e){r=t(r,e),n.point(r[0],r[1])}function e(){x=NaN,E.point=o,n.lineStart()}function o(r,e){var o=Mn([r,e]),u=t(r,e);i(x,b,m,M,w,_,x=u[0],b=u[1],m=r,M=o[0],w=o[1],_=o[2],a,n),n.point(x,b)}function u(){E.point=r,n.lineEnd()}function c(){e(),E.point=f,E.lineEnd=l}function f(t,n){o(s=t,h=n),p=x,g=b,d=M,v=w,y=_,E.point=o}function l(){i(x,b,m,M,w,_,p,g,s,d,v,y,a,n),E.lineEnd=u,u()}var s,h,p,g,d,v,y,m,x,b,M,w,_,E={point:r,lineStart:e,lineEnd:u,polygonStart:function(){n.polygonStart(),E.lineStart=c},polygonEnd:function(){n.polygonEnd(),E.lineStart=e}};return E}function i(n,r,e,a,c,f,l,s,h,p,g,d,v,y){var m=l-n,x=s-r,b=m*m+x*x;if(b>4*o&&v--){var M=a+p,w=c+g,_=f+d,E=Math.sqrt(M*M+w*w+_*_),S=Math.asin(_/=E),A=Su(Su(_)-1)<Yu||Su(e-h)<Yu?(e+h)/2:Math.atan2(w,M),k=t(A,S),N=k[0],j=k[1],C=N-n,T=j-r,O=x*C-m*T;(O*O/b>o||Su((m*C+x*T)/b-.5)>.3||a*p+c*g+f*d<u)&&(i(n,r,e,a,c,f,N,j,A,M/=E,w/=E,_,v,y),y.point(N,j),i(N,j,A,M,w,_,l,s,h,p,g,d,v,y))}}var o=.5,u=Math.cos(30*Wu),a=16;return n.precision=function(t){return arguments.length?(a=(o=t*t)>0&&16,n):Math.sqrt(o)},n}function cr(t){var n=ar(function(n,r){return t([n*Xu,r*Xu])});return function(t){return pr(n(t))}}function fr(t){this.stream=t}function lr(t,n){return{point:n,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd();
10},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function sr(t){return hr(function(){return t})()}function hr(t){function n(t){return t=a(t[0]*Wu,t[1]*Wu),[t[0]*h+c,f-t[1]*h]}function r(t){return t=a.invert((t[0]-c)/h,(f-t[1])/h),t&&[t[0]*Xu,t[1]*Xu]}function e(){a=Pn(u=vr(y,m,x),o);var t=o(d,v);return c=p-t[0]*h,f=g+t[1]*h,i()}function i(){return l&&(l.valid=!1,l=null),n}var o,u,a,c,f,l,s=ar(function(t,n){return t=o(t,n),[t[0]*h+c,f-t[1]*h]}),h=150,p=480,g=250,d=0,v=0,y=0,m=0,x=0,b=Ha,M=_,w=null,E=null;return n.stream=function(t){return l&&(l.valid=!1),l=pr(b(u,s(M(t)))),l.valid=!0,l},n.clipAngle=function(t){return arguments.length?(b=null==t?(w=t,Ha):$n((w=+t)*Wu),i()):w},n.clipExtent=function(t){return arguments.length?(E=t,M=t?Xn(t[0][0],t[0][1],t[1][0],t[1][1]):_,i()):E},n.scale=function(t){return arguments.length?(h=+t,e()):h},n.translate=function(t){return arguments.length?(p=+t[0],g=+t[1],e()):[p,g]},n.center=function(t){return arguments.length?(d=t[0]%360*Wu,v=t[1]%360*Wu,e()):[d*Xu,v*Xu]},n.rotate=function(t){return arguments.length?(y=t[0]%360*Wu,m=t[1]%360*Wu,x=t.length>2?t[2]%360*Wu:0,e()):[y*Xu,m*Xu,x*Xu]},pu.rebind(n,s,"precision"),function(){return o=t.apply(this,arguments),n.invert=o.invert&&r,e()}}function pr(t){return lr(t,function(n,r){t.point(n*Wu,r*Wu)})}function gr(t,n){return[t,n]}function dr(t,n){return[t>Hu?t-Vu:t<-Hu?t+Vu:t,n]}function vr(t,n,r){return t?n||r?Pn(mr(t),xr(n,r)):mr(t):n||r?xr(n,r):dr}function yr(t){return function(n,r){return n+=t,[n>Hu?n-Vu:n<-Hu?n+Vu:n,r]}}function mr(t){var n=yr(t);return n.invert=yr(-t),n}function xr(t,n){function r(t,n){var r=Math.cos(n),a=Math.cos(t)*r,c=Math.sin(t)*r,f=Math.sin(n),l=f*e+a*i;return[Math.atan2(c*o-l*u,a*e-f*i),ut(l*o+c*u)]}var e=Math.cos(t),i=Math.sin(t),o=Math.cos(n),u=Math.sin(n);return r.invert=function(t,n){var r=Math.cos(n),a=Math.cos(t)*r,c=Math.sin(t)*r,f=Math.sin(n),l=f*o-c*u;return[Math.atan2(c*o+f*u,a*e+l*i),ut(l*e-a*i)]},r}function br(t,n){var r=Math.cos(t),e=Math.sin(t);return function(i,o,u,a){var c=u*n;null!=i?(i=Mr(r,i),o=Mr(r,o),(u>0?i<o:i>o)&&(i+=u*Vu)):(i=t+u*Vu,o=t-.5*c);for(var f,l=i;u>0?l>o:l<o;l-=c)a.point((f=kn([r,-e*Math.cos(l),-e*Math.sin(l)]))[0],f[1])}}function Mr(t,n){var r=Mn(n);r[0]-=t,An(r);var e=ot(-r[1]);return((-r[2]<0?-e:e)+2*Math.PI-Yu)%(2*Math.PI)}function wr(t,n,r){var e=pu.range(t,n-Yu,r).concat(n);return function(t){return e.map(function(n){return[t,n]})}}function _r(t,n,r){var e=pu.range(t,n-Yu,r).concat(n);return function(t){return e.map(function(n){return[n,t]})}}function Er(t){return t.source}function Sr(t){return t.target}function Ar(t,n,r,e){var i=Math.cos(n),o=Math.sin(n),u=Math.cos(e),a=Math.sin(e),c=i*Math.cos(t),f=i*Math.sin(t),l=u*Math.cos(r),s=u*Math.sin(r),h=2*Math.asin(Math.sqrt(lt(e-n)+i*u*lt(r-t))),p=1/Math.sin(h),g=h?function(t){var n=Math.sin(t*=h)*p,r=Math.sin(h-t)*p,e=r*c+n*l,i=r*f+n*s,u=r*o+n*a;return[Math.atan2(i,e)*Xu,Math.atan2(u,Math.sqrt(e*e+i*i))*Xu]}:function(){return[t*Xu,n*Xu]};return g.distance=h,g}function kr(){function t(t,i){var o=Math.sin(i*=Wu),u=Math.cos(i),a=Su((t*=Wu)-n),c=Math.cos(a);nc+=Math.atan2(Math.sqrt((a=u*Math.sin(a))*a+(a=e*o-r*u*c)*a),r*o+e*u*c),n=t,r=o,e=u}var n,r,e;rc.point=function(i,o){n=i*Wu,r=Math.sin(o*=Wu),e=Math.cos(o),rc.point=t},rc.lineEnd=function(){rc.point=rc.lineEnd=A}}function Nr(t,n){function r(n,r){var e=Math.cos(n),i=Math.cos(r),o=t(e*i);return[o*i*Math.sin(n),o*Math.sin(r)]}return r.invert=function(t,r){var e=Math.sqrt(t*t+r*r),i=n(e),o=Math.sin(i),u=Math.cos(i);return[Math.atan2(t*o,e*u),Math.asin(e&&r*o/e)]},r}function jr(t,n){function r(t,n){u>0?n<-$u+Yu&&(n=-$u+Yu):n>$u-Yu&&(n=$u-Yu);var r=u/Math.pow(i(n),o);return[r*Math.sin(o*t),u-r*Math.cos(o*t)]}var e=Math.cos(t),i=function(t){return Math.tan(Hu/4+t/2)},o=t===n?Math.sin(t):Math.log(e/Math.cos(n))/Math.log(i(n)/i(t)),u=e*Math.pow(i(t),o)/o;return o?(r.invert=function(t,n){var r=u-n,e=et(o)*Math.sqrt(t*t+r*r);return[Math.atan2(t,r)/o,2*Math.atan(Math.pow(u/e,1/o))-$u]},r):Tr}function Cr(t,n){function r(t,n){var r=o-n;return[r*Math.sin(i*t),o-r*Math.cos(i*t)]}var e=Math.cos(t),i=t===n?Math.sin(t):(e-Math.cos(n))/(n-t),o=e/i+t;return Su(i)<Yu?gr:(r.invert=function(t,n){var r=o-n;return[Math.atan2(t,r)/i,o-et(i)*Math.sqrt(t*t+r*r)]},r)}function Tr(t,n){return[t,Math.log(Math.tan(Hu/4+n/2))]}function Or(t){var n,r=sr(t),e=r.scale,i=r.translate,o=r.clipExtent;return r.scale=function(){var t=e.apply(r,arguments);return t===r?n?r.clipExtent(null):r:t},r.translate=function(){var t=i.apply(r,arguments);return t===r?n?r.clipExtent(null):r:t},r.clipExtent=function(t){var u=o.apply(r,arguments);if(u===r){if(n=null==t){var a=Hu*e(),c=i();o([[c[0]-a,c[1]-a],[c[0]+a,c[1]+a]])}}else n&&(u=null);return u},r.clipExtent(null)}function Rr(t,n){return[Math.log(Math.tan(Hu/4+n/2)),-t]}function Pr(t){return t[0]}function Lr(t){return t[1]}function zr(t){for(var n=t.length,r=[0,1],e=2,i=2;i<n;i++){for(;e>1&&it(t[r[e-2]],t[r[e-1]],t[i])<=0;)--e;r[e++]=i}return r.slice(0,e)}function Ur(t,n){return t[0]-n[0]||t[1]-n[1]}function qr(t,n,r){return(r[0]-n[0])*(t[1]-n[1])<(r[1]-n[1])*(t[0]-n[0])}function Dr(t,n,r,e){var i=t[0],o=r[0],u=n[0]-i,a=e[0]-o,c=t[1],f=r[1],l=n[1]-c,s=e[1]-f,h=(a*(c-f)-s*(i-o))/(s*u-a*l);return[i+h*u,c+h*l]}function Ir(t){var n=t[0],r=t[t.length-1];return!(n[0]-r[0]||n[1]-r[1])}function Br(){ce(this),this.edge=this.site=this.circle=null}function Yr(t){var n=gc.pop()||new Br;return n.site=t,n}function Fr(t){Qr(t),sc.remove(t),gc.push(t),ce(t)}function Hr(t){var n=t.circle,r=n.x,e=n.cy,i={x:r,y:e},o=t.P,u=t.N,a=[t];Fr(t);for(var c=o;c.circle&&Su(r-c.circle.x)<Yu&&Su(e-c.circle.cy)<Yu;)o=c.P,a.unshift(c),Fr(c),c=o;a.unshift(c),Qr(c);for(var f=u;f.circle&&Su(r-f.circle.x)<Yu&&Su(e-f.circle.cy)<Yu;)u=f.N,a.push(f),Fr(f),f=u;a.push(f),Qr(f);var l,s=a.length;for(l=1;l<s;++l)f=a[l],c=a[l-1],oe(f.edge,c.site,f.site,i);c=a[0],f=a[s-1],f.edge=ee(c.site,f.site,null,i),Kr(c),Kr(f)}function Vr(t){for(var n,r,e,i,o=t.x,u=t.y,a=sc._;a;)if(e=Zr(a,u)-o,e>Yu)a=a.L;else{if(i=o-$r(a,u),!(i>Yu)){e>-Yu?(n=a.P,r=a):i>-Yu?(n=a,r=a.N):n=r=a;break}if(!a.R){n=a;break}a=a.R}var c=Yr(t);if(sc.insert(n,c),n||r){if(n===r)return Qr(n),r=Yr(n.site),sc.insert(c,r),c.edge=r.edge=ee(n.site,c.site),Kr(n),void Kr(r);if(!r)return void(c.edge=ee(n.site,c.site));Qr(n),Qr(r);var f=n.site,l=f.x,s=f.y,h=t.x-l,p=t.y-s,g=r.site,d=g.x-l,v=g.y-s,y=2*(h*v-p*d),m=h*h+p*p,x=d*d+v*v,b={x:(v*m-p*x)/y+l,y:(h*x-d*m)/y+s};oe(r.edge,f,g,b),c.edge=ee(f,t,null,b),r.edge=ee(t,g,null,b),Kr(n),Kr(r)}}function Zr(t,n){var r=t.site,e=r.x,i=r.y,o=i-n;if(!o)return e;var u=t.P;if(!u)return-(1/0);r=u.site;var a=r.x,c=r.y,f=c-n;if(!f)return a;var l=a-e,s=1/o-1/f,h=l/f;return s?(-h+Math.sqrt(h*h-2*s*(l*l/(-2*f)-c+f/2+i-o/2)))/s+e:(e+a)/2}function $r(t,n){var r=t.N;if(r)return Zr(r,n);var e=t.site;return e.y===n?e.x:1/0}function Wr(t){this.site=t,this.edges=[]}function Xr(t){for(var n,r,e,i,o,u,a,c,f,l,s=t[0][0],h=t[1][0],p=t[0][1],g=t[1][1],d=lc,v=d.length;v--;)if(o=d[v],o&&o.prepare())for(a=o.edges,c=a.length,u=0;u<c;)l=a[u].end(),e=l.x,i=l.y,f=a[++u%c].start(),n=f.x,r=f.y,(Su(e-n)>Yu||Su(i-r)>Yu)&&(a.splice(u,0,new ue(ie(o.site,l,Su(e-s)<Yu&&g-i>Yu?{x:s,y:Su(n-s)<Yu?r:g}:Su(i-g)<Yu&&h-e>Yu?{x:Su(r-g)<Yu?n:h,y:g}:Su(e-h)<Yu&&i-p>Yu?{x:h,y:Su(n-h)<Yu?r:p}:Su(i-p)<Yu&&e-s>Yu?{x:Su(r-p)<Yu?n:s,y:p}:null),o.site,null)),++c)}function Jr(t,n){return n.angle-t.angle}function Gr(){ce(this),this.x=this.y=this.arc=this.site=this.cy=null}function Kr(t){var n=t.P,r=t.N;if(n&&r){var e=n.site,i=t.site,o=r.site;if(e!==o){var u=i.x,a=i.y,c=e.x-u,f=e.y-a,l=o.x-u,s=o.y-a,h=2*(c*s-f*l);if(!(h>=-Fu)){var p=c*c+f*f,g=l*l+s*s,d=(s*p-f*g)/h,v=(c*g-l*p)/h,s=v+a,y=dc.pop()||new Gr;y.arc=t,y.site=i,y.x=d+u,y.y=s+Math.sqrt(d*d+v*v),y.cy=s,t.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(t){var n=t.circle;n&&(n.P||(hc=n.N),pc.remove(n),dc.push(n),ce(n),t.circle=null)}function te(t){for(var n,r=fc,e=Wn(t[0][0],t[0][1],t[1][0],t[1][1]),i=r.length;i--;)n=r[i],(!ne(n,t)||!e(n)||Su(n.a.x-n.b.x)<Yu&&Su(n.a.y-n.b.y)<Yu)&&(n.a=n.b=null,r.splice(i,1))}function ne(t,n){var r=t.b;if(r)return!0;var e,i,o=t.a,u=n[0][0],a=n[1][0],c=n[0][1],f=n[1][1],l=t.l,s=t.r,h=l.x,p=l.y,g=s.x,d=s.y,v=(h+g)/2,y=(p+d)/2;if(d===p){if(v<u||v>=a)return;if(h>g){if(o){if(o.y>=f)return}else o={x:v,y:c};r={x:v,y:f}}else{if(o){if(o.y<c)return}else o={x:v,y:f};r={x:v,y:c}}}else if(e=(h-g)/(d-p),i=y-e*v,e<-1||e>1)if(h>g){if(o){if(o.y>=f)return}else o={x:(c-i)/e,y:c};r={x:(f-i)/e,y:f}}else{if(o){if(o.y<c)return}else o={x:(f-i)/e,y:f};r={x:(c-i)/e,y:c}}else if(p<d){if(o){if(o.x>=a)return}else o={x:u,y:e*u+i};r={x:a,y:e*a+i}}else{if(o){if(o.x<u)return}else o={x:a,y:e*a+i};r={x:u,y:e*u+i}}return t.a=o,t.b=r,!0}function re(t,n){this.l=t,this.r=n,this.a=this.b=null}function ee(t,n,r,e){var i=new re(t,n);return fc.push(i),r&&oe(i,t,n,r),e&&oe(i,n,t,e),lc[t.i].edges.push(new ue(i,t,n)),lc[n.i].edges.push(new ue(i,n,t)),i}function ie(t,n,r){var e=new re(t,null);return e.a=n,e.b=r,fc.push(e),e}function oe(t,n,r,e){t.a||t.b?t.l===r?t.b=e:t.a=e:(t.a=e,t.l=n,t.r=r)}function ue(t,n,r){var e=t.a,i=t.b;this.edge=t,this.site=n,this.angle=r?Math.atan2(r.y-n.y,r.x-n.x):t.l===n?Math.atan2(i.x-e.x,e.y-i.y):Math.atan2(e.x-i.x,i.y-e.y)}function ae(){this._=null}function ce(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function fe(t,n){var r=n,e=n.R,i=r.U;i?i.L===r?i.L=e:i.R=e:t._=e,e.U=i,r.U=e,r.R=e.L,r.R&&(r.R.U=r),e.L=r}function le(t,n){var r=n,e=n.L,i=r.U;i?i.L===r?i.L=e:i.R=e:t._=e,e.U=i,r.U=e,r.L=e.R,r.L&&(r.L.U=r),e.R=r}function se(t){for(;t.L;)t=t.L;return t}function he(t,n){var r,e,i,o=t.sort(pe).pop();for(fc=[],lc=new Array(t.length),sc=new ae,pc=new ae;;)if(i=hc,o&&(!i||o.y<i.y||o.y===i.y&&o.x<i.x))o.x===r&&o.y===e||(lc[o.i]=new Wr(o),Vr(o),r=o.x,e=o.y),o=t.pop();else{if(!i)break;Hr(i.arc)}n&&(te(n),Xr(n));var u={cells:lc,edges:fc};return sc=pc=fc=lc=null,u}function pe(t,n){return n.y-t.y||n.x-t.x}function ge(t,n,r){return(t.x-r.x)*(n.y-t.y)-(t.x-n.x)*(r.y-t.y)}function de(t){return t.x}function ve(t){return t.y}function ye(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function me(t,n,r,e,i,o){if(!t(n,r,e,i,o)){var u=.5*(r+i),a=.5*(e+o),c=n.nodes;c[0]&&me(t,c[0],r,e,u,a),c[1]&&me(t,c[1],u,e,i,a),c[2]&&me(t,c[2],r,a,u,o),c[3]&&me(t,c[3],u,a,i,o)}}function xe(t,n,r,e,i,o,u){var a,c=1/0;return function f(t,l,s,h,p){if(!(l>o||s>u||h<e||p<i)){if(g=t.point){var g,d=n-t.x,v=r-t.y,y=d*d+v*v;if(y<c){var m=Math.sqrt(c=y);e=n-m,i=r-m,o=n+m,u=r+m,a=g}}for(var x=t.nodes,b=.5*(l+h),M=.5*(s+p),w=n>=b,_=r>=M,E=_<<1|w,S=E+4;E<S;++E)if(t=x[3&E])switch(3&E){case 0:f(t,l,s,b,M);break;case 1:f(t,b,s,h,M);break;case 2:f(t,l,M,b,p);break;case 3:f(t,b,M,h,p)}}}(t,e,i,o,u),a}function be(t,n){t=pu.rgb(t),n=pu.rgb(n);var r=t.r,e=t.g,i=t.b,o=n.r-r,u=n.g-e,a=n.b-i;return function(t){return"#"+St(Math.round(r+o*t))+St(Math.round(e+u*t))+St(Math.round(i+a*t))}}function Me(t,n){var r,e={},i={};for(r in t)r in n?e[r]=Ee(t[r],n[r]):i[r]=t[r];for(r in n)r in t||(i[r]=n[r]);return function(t){for(r in e)i[r]=e[r](t);return i}}function we(t,n){return t=+t,n=+n,function(r){return t*(1-r)+n*r}}function _e(t,n){var r,e,i,o=yc.lastIndex=mc.lastIndex=0,u=-1,a=[],c=[];for(t+="",n+="";(r=yc.exec(t))&&(e=mc.exec(n));)(i=e.index)>o&&(i=n.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(r=r[0])===(e=e[0])?a[u]?a[u]+=e:a[++u]=e:(a[++u]=null,c.push({i:u,x:we(r,e)})),o=mc.lastIndex;return o<n.length&&(i=n.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?c[0]?(n=c[0].x,function(t){return n(t)+""}):function(){return n}:(n=c.length,function(t){for(var r,e=0;e<n;++e)a[(r=c[e]).i]=r.x(t);return a.join("")})}function Ee(t,n){for(var r,e=pu.interpolators.length;--e>=0&&!(r=pu.interpolators[e](t,n)););return r}function Se(t,n){var r,e=[],i=[],o=t.length,u=n.length,a=Math.min(t.length,n.length);for(r=0;r<a;++r)e.push(Ee(t[r],n[r]));for(;r<o;++r)i[r]=t[r];for(;r<u;++r)i[r]=n[r];return function(t){for(r=0;r<a;++r)i[r]=e[r](t);return i}}function Ae(t){return function(n){return n<=0?0:n>=1?1:t(n)}}function ke(t){return function(n){return 1-t(1-n)}}function Ne(t){return function(n){return.5*(n<.5?t(2*n):2-t(2-2*n))}}function je(t){return t*t}function Ce(t){return t*t*t}function Te(t){if(t<=0)return 0;if(t>=1)return 1;var n=t*t,r=n*t;return 4*(t<.5?r:3*(t-n)+r-.75)}function Oe(t){return function(n){return Math.pow(n,t)}}function Re(t){return 1-Math.cos(t*$u)}function Pe(t){return Math.pow(2,10*(t-1))}function Le(t){return 1-Math.sqrt(1-t*t)}function ze(t,n){var r;return arguments.length<2&&(n=.45),arguments.length?r=n/Vu*Math.asin(1/t):(t=1,r=n/4),function(e){return 1+t*Math.pow(2,-10*e)*Math.sin((e-r)*Vu/n)}}function Ue(t){return t||(t=1.70158),function(n){return n*n*((t+1)*n-t)}}function qe(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function De(t,n){t=pu.hcl(t),n=pu.hcl(n);var r=t.h,e=t.c,i=t.l,o=n.h-r,u=n.c-e,a=n.l-i;return isNaN(u)&&(u=0,e=isNaN(e)?n.c:e),isNaN(o)?(o=0,r=isNaN(r)?n.h:r):o>180?o-=360:o<-180&&(o+=360),function(t){return dt(r+o*t,e+u*t,i+a*t)+""}}function Ie(t,n){t=pu.hsl(t),n=pu.hsl(n);var r=t.h,e=t.s,i=t.l,o=n.h-r,u=n.s-e,a=n.l-i;return isNaN(u)&&(u=0,e=isNaN(e)?n.s:e),isNaN(o)?(o=0,r=isNaN(r)?n.h:r):o>180?o-=360:o<-180&&(o+=360),function(t){return pt(r+o*t,e+u*t,i+a*t)+""}}function Be(t,n){t=pu.lab(t),n=pu.lab(n);var r=t.l,e=t.a,i=t.b,o=n.l-r,u=n.a-e,a=n.b-i;return function(t){return yt(r+o*t,e+u*t,i+a*t)+""}}function Ye(t,n){return n-=t,function(r){return Math.round(t+n*r)}}function Fe(t){var n=[t.a,t.b],r=[t.c,t.d],e=Ve(n),i=He(n,r),o=Ve(Ze(r,n,-i))||0;n[0]*r[1]<r[0]*n[1]&&(n[0]*=-1,n[1]*=-1,e*=-1,i*=-1),this.rotate=(e?Math.atan2(n[1],n[0]):Math.atan2(-r[0],r[1]))*Xu,this.translate=[t.e,t.f],this.scale=[e,o],this.skew=o?Math.atan2(i,o)*Xu:0}function He(t,n){return t[0]*n[0]+t[1]*n[1]}function Ve(t){var n=Math.sqrt(He(t,t));return n&&(t[0]/=n,t[1]/=n),n}function Ze(t,n,r){return t[0]+=r*n[0],t[1]+=r*n[1],t}function $e(t){return t.length?t.pop()+",":""}function We(t,n,r,e){if(t[0]!==n[0]||t[1]!==n[1]){var i=r.push("translate(",null,",",null,")");e.push({i:i-4,x:we(t[0],n[0])},{i:i-2,x:we(t[1],n[1])})}else(n[0]||n[1])&&r.push("translate("+n+")")}function Xe(t,n,r,e){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),e.push({i:r.push($e(r)+"rotate(",null,")")-2,x:we(t,n)})):n&&r.push($e(r)+"rotate("+n+")")}function Je(t,n,r,e){t!==n?e.push({i:r.push($e(r)+"skewX(",null,")")-2,x:we(t,n)}):n&&r.push($e(r)+"skewX("+n+")")}function Ge(t,n,r,e){if(t[0]!==n[0]||t[1]!==n[1]){var i=r.push($e(r)+"scale(",null,",",null,")");e.push({i:i-4,x:we(t[0],n[0])},{i:i-2,x:we(t[1],n[1])})}else 1===n[0]&&1===n[1]||r.push($e(r)+"scale("+n+")")}function Ke(t,n){var r=[],e=[];return t=pu.transform(t),n=pu.transform(n),We(t.translate,n.translate,r,e),Xe(t.rotate,n.rotate,r,e),Je(t.skew,n.skew,r,e),Ge(t.scale,n.scale,r,e),t=n=null,function(t){for(var n,i=-1,o=e.length;++i<o;)r[(n=e[i]).i]=n.x(t);return r.join("")}}function Qe(t,n){return n=(n-=t=+t)||1/n,function(r){return(r-t)/n}}function ti(t,n){return n=(n-=t=+t)||1/n,function(r){return Math.max(0,Math.min(1,(r-t)/n))}}function ni(t){for(var n=t.source,r=t.target,e=ei(n,r),i=[n];n!==e;)n=n.parent,i.push(n);for(var o=i.length;r!==e;)i.splice(o,0,r),r=r.parent;return i}function ri(t){for(var n=[],r=t.parent;null!=r;)n.push(t),t=r,r=r.parent;return n.push(t),n}function ei(t,n){if(t===n)return t;for(var r=ri(t),e=ri(n),i=r.pop(),o=e.pop(),u=null;i===o;)u=i,i=r.pop(),o=e.pop();return u}function ii(t){t.fixed|=2}function oi(t){t.fixed&=-7}function ui(t){t.fixed|=4,t.px=t.x,t.py=t.y}function ai(t){t.fixed&=-5}function ci(t,n,r){var e=0,i=0;if(t.charge=0,!t.leaf)for(var o,u=t.nodes,a=u.length,c=-1;++c<a;)o=u[c],null!=o&&(ci(o,n,r),t.charge+=o.charge,e+=o.charge*o.cx,i+=o.charge*o.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var f=n*r[t.point.index];t.charge+=t.pointCharge=f,e+=f*t.point.x,i+=f*t.point.y}t.cx=e/t.charge,t.cy=i/t.charge}function fi(t,n){return pu.rebind(t,n,"sort","children","value"),t.nodes=t,t.links=di,t}function li(t,n){for(var r=[t];null!=(t=r.pop());)if(n(t),(i=t.children)&&(e=i.length))for(var e,i;--e>=0;)r.push(i[e])}function si(t,n){for(var r=[t],e=[];null!=(t=r.pop());)if(e.push(t),(o=t.children)&&(i=o.length))for(var i,o,u=-1;++u<i;)r.push(o[u]);for(;null!=(t=e.pop());)n(t)}function hi(t){return t.children}function pi(t){return t.value}function gi(t,n){return n.value-t.value}function di(t){return pu.merge(t.map(function(t){return(t.children||[]).map(function(n){return{source:t,target:n}})}))}function vi(t){return t.x}function yi(t){return t.y}function mi(t,n,r){t.y0=n,t.y=r}function xi(t){return pu.range(t.length)}function bi(t){for(var n=-1,r=t[0].length,e=[];++n<r;)e[n]=0;return e}function Mi(t){for(var n,r=1,e=0,i=t[0][1],o=t.length;r<o;++r)(n=t[r][1])>i&&(e=r,i=n);return e}function wi(t){return t.reduce(_i,0)}function _i(t,n){return t+n[1]}function Ei(t,n){return Si(t,Math.ceil(Math.log(n.length)/Math.LN2+1))}function Si(t,n){for(var r=-1,e=+t[0],i=(t[1]-e)/n,o=[];++r<=n;)o[r]=i*r+e;return o}function Ai(t){return[pu.min(t),pu.max(t)]}function ki(t,n){return t.value-n.value}function Ni(t,n){var r=t._pack_next;t._pack_next=n,n._pack_prev=t,n._pack_next=r,r._pack_prev=n}function ji(t,n){t._pack_next=n,n._pack_prev=t}function Ci(t,n){var r=n.x-t.x,e=n.y-t.y,i=t.r+n.r;return.999*i*i>r*r+e*e}function Ti(t){function n(t){l=Math.min(t.x-t.r,l),s=Math.max(t.x+t.r,s),h=Math.min(t.y-t.r,h),p=Math.max(t.y+t.r,p)}if((r=t.children)&&(f=r.length)){var r,e,i,o,u,a,c,f,l=1/0,s=-(1/0),h=1/0,p=-(1/0);if(r.forEach(Oi),e=r[0],e.x=-e.r,e.y=0,n(e),f>1&&(i=r[1],i.x=i.r,i.y=0,n(i),f>2))for(o=r[2],Li(e,i,o),n(o),Ni(e,o),e._pack_prev=o,Ni(o,i),i=e._pack_next,u=3;u<f;u++){Li(e,i,o=r[u]);var g=0,d=1,v=1;for(a=i._pack_next;a!==i;a=a._pack_next,d++)if(Ci(a,o)){g=1;break}if(1==g)for(c=e._pack_prev;c!==a._pack_prev&&!Ci(c,o);c=c._pack_prev,v++);g?(d<v||d==v&&i.r<e.r?ji(e,i=a):ji(e=c,i),u--):(Ni(e,o),i=o,n(o))}var y=(l+s)/2,m=(h+p)/2,x=0;for(u=0;u<f;u++)o=r[u],o.x-=y,o.y-=m,x=Math.max(x,o.r+Math.sqrt(o.x*o.x+o.y*o.y));t.r=x,r.forEach(Ri)}}function Oi(t){t._pack_next=t._pack_prev=t}function Ri(t){delete t._pack_next,delete t._pack_prev}function Pi(t,n,r,e){var i=t.children;if(t.x=n+=e*t.x,t.y=r+=e*t.y,t.r*=e,i)for(var o=-1,u=i.length;++o<u;)Pi(i[o],n,r,e)}function Li(t,n,r){var e=t.r+r.r,i=n.x-t.x,o=n.y-t.y;if(e&&(i||o)){var u=n.r+r.r,a=i*i+o*o;u*=u,e*=e;var c=.5+(e-u)/(2*a),f=Math.sqrt(Math.max(0,2*u*(e+a)-(e-=a)*e-u*u))/(2*a);r.x=t.x+c*i+f*o,r.y=t.y+c*o-f*i}else r.x=t.x+e,r.y=t.y}function zi(t,n){return t.parent==n.parent?1:2}function Ui(t){var n=t.children;return n.length?n[0]:t.t}function qi(t){var n,r=t.children;return(n=r.length)?r[n-1]:t.t}function Di(t,n,r){var e=r/(n.i-t.i);n.c-=e,n.s+=r,t.c+=e,n.z+=r,n.m+=r}function Ii(t){for(var n,r=0,e=0,i=t.children,o=i.length;--o>=0;)n=i[o],n.z+=r,n.m+=r,r+=n.s+(e+=n.c)}function Bi(t,n,r){return t.a.parent===n.parent?t.a:r}function Yi(t){return 1+pu.max(t,function(t){return t.y})}function Fi(t){return t.reduce(function(t,n){return t+n.x},0)/t.length}function Hi(t){var n=t.children;return n&&n.length?Hi(n[0]):t}function Vi(t){var n,r=t.children;return r&&(n=r.length)?Vi(r[n-1]):t}function Zi(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function $i(t,n){var r=t.x+n[3],e=t.y+n[0],i=t.dx-n[1]-n[3],o=t.dy-n[0]-n[2];return i<0&&(r+=i/2,i=0),o<0&&(e+=o/2,o=0),{x:r,y:e,dx:i,dy:o}}function Wi(t){var n=t[0],r=t[t.length-1];return n<r?[n,r]:[r,n]}function Xi(t){return t.rangeExtent?t.rangeExtent():Wi(t.range())}function Ji(t,n,r,e){var i=r(t[0],t[1]),o=e(n[0],n[1]);return function(t){return o(i(t))}}function Gi(t,n){var r,e=0,i=t.length-1,o=t[e],u=t[i];return u<o&&(r=e,e=i,i=r,r=o,o=u,u=r),t[e]=n.floor(o),t[i]=n.ceil(u),t}function Ki(t){return t?{floor:function(n){return Math.floor(n/t)*t},ceil:function(n){return Math.ceil(n/t)*t}}:jc}function Qi(t,n,r,e){var i=[],o=[],u=0,a=Math.min(t.length,n.length)-1;for(t[a]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<=a;)i.push(r(t[u-1],t[u])),o.push(e(n[u-1],n[u]));return function(n){var r=pu.bisect(t,n,1,a)-1;return o[r](i[r](n))}}function to(t,n,r,e){function i(){var i=Math.min(t.length,n.length)>2?Qi:Ji,c=e?ti:Qe;return u=i(t,n,c,r),a=i(n,t,c,Ee),o}function o(t){return u(t)}var u,a;return o.invert=function(t){return a(t)},o.domain=function(n){return arguments.length?(t=n.map(Number),i()):t},o.range=function(t){return arguments.length?(n=t,i()):n},o.rangeRound=function(t){return o.range(t).interpolate(Ye)},o.clamp=function(t){return arguments.length?(e=t,i()):e},o.interpolate=function(t){return arguments.length?(r=t,i()):r},o.ticks=function(n){return io(t,n)},o.tickFormat=function(n,r){return oo(t,n,r)},o.nice=function(n){return ro(t,n),i()},o.copy=function(){return to(t,n,r,e)},i()}function no(t,n){return pu.rebind(t,n,"range","rangeRound","interpolate","clamp")}function ro(t,n){return Gi(t,Ki(eo(t,n)[2])),Gi(t,Ki(eo(t,n)[2])),t}function eo(t,n){null==n&&(n=10);var r=Wi(t),e=r[1]-r[0],i=Math.pow(10,Math.floor(Math.log(e/n)/Math.LN10)),o=n/e*i;return o<=.15?i*=10:o<=.35?i*=5:o<=.75&&(i*=2),r[0]=Math.ceil(r[0]/i)*i,r[1]=Math.floor(r[1]/i)*i+.5*i,r[2]=i,r}function io(t,n){return pu.range.apply(pu,eo(t,n))}function oo(t,n,r){var e=eo(t,n);if(r){var i=ya.exec(r);if(i.shift(),"s"===i[8]){var o=pu.formatPrefix(Math.max(Su(e[0]),Su(e[1])));return i[7]||(i[7]="."+uo(o.scale(e[2]))),i[8]="f",r=pu.format(i.join("")),function(t){return r(o.scale(t))+o.symbol}}i[7]||(i[7]="."+ao(i[8],e)),r=i.join("")}else r=",."+uo(e[2])+"f";return pu.format(r)}function uo(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function ao(t,n){var r=uo(n[2]);return t in Cc?Math.abs(r-uo(Math.max(Su(n[0]),Su(n[1]))))+ +("e"!==t):r-2*("%"===t)}function co(t,n,r,e){function i(t){return(r?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(n)}function o(t){return r?Math.pow(n,t):-Math.pow(n,-t)}function u(n){return t(i(n))}return u.invert=function(n){return o(t.invert(n))},u.domain=function(n){return arguments.length?(r=n[0]>=0,t.domain((e=n.map(Number)).map(i)),u):e},u.base=function(r){return arguments.length?(n=+r,t.domain(e.map(i)),u):n},u.nice=function(){var n=Gi(e.map(i),r?Math:Oc);return t.domain(n),e=n.map(o),u},u.ticks=function(){var t=Wi(e),u=[],a=t[0],c=t[1],f=Math.floor(i(a)),l=Math.ceil(i(c)),s=n%1?2:n;if(isFinite(l-f)){if(r){for(;f<l;f++)for(var h=1;h<s;h++)u.push(o(f)*h);u.push(o(f))}else for(u.push(o(f));f++<l;)for(var h=s-1;h>0;h--)u.push(o(f)*h);for(f=0;u[f]<a;f++);for(l=u.length;u[l-1]>c;l--);u=u.slice(f,l)}return u},u.tickFormat=function(t,r){if(!arguments.length)return Tc;arguments.length<2?r=Tc:"function"!=typeof r&&(r=pu.format(r));var e=Math.max(1,n*t/u.ticks().length);return function(t){var u=t/o(Math.round(i(t)));return u*n<n-.5&&(u*=n),u<=e?r(t):""}},u.copy=function(){return co(t.copy(),n,r,e)},no(u,t)}function fo(t,n,r){function e(n){return t(i(n))}var i=lo(n),o=lo(1/n);return e.invert=function(n){return o(t.invert(n))},e.domain=function(n){return arguments.length?(t.domain((r=n.map(Number)).map(i)),e):r},e.ticks=function(t){return io(r,t)},e.tickFormat=function(t,n){return oo(r,t,n)},e.nice=function(t){return e.domain(ro(r,t))},e.exponent=function(u){return arguments.length?(i=lo(n=u),o=lo(1/n),t.domain(r.map(i)),e):n},e.copy=function(){return fo(t.copy(),n,r)},no(e,t)}function lo(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function so(t,n){function r(r){return o[((i.get(r)||("range"===n.t?i.set(r,t.push(r)):NaN))-1)%o.length]}function e(n,r){return pu.range(t.length).map(function(t){return n+r*t})}var i,o,u;return r.domain=function(e){if(!arguments.length)return t;t=[],i=new g;for(var o,u=-1,a=e.length;++u<a;)i.has(o=e[u])||i.set(o,t.push(o));return r[n.t].apply(r,n.a)},r.range=function(t){return arguments.length?(o=t,u=0,n={t:"range",a:arguments},r):o},r.rangePoints=function(i,a){arguments.length<2&&(a=0);var c=i[0],f=i[1],l=t.length<2?(c=(c+f)/2,0):(f-c)/(t.length-1+a);return o=e(c+l*a/2,l),u=0,n={t:"rangePoints",a:arguments},r},r.rangeRoundPoints=function(i,a){arguments.length<2&&(a=0);var c=i[0],f=i[1],l=t.length<2?(c=f=Math.round((c+f)/2),0):(f-c)/(t.length-1+a)|0;return o=e(c+Math.round(l*a/2+(f-c-(t.length-1+a)*l)/2),l),u=0,n={t:"rangeRoundPoints",a:arguments},r},r.rangeBands=function(i,a,c){arguments.length<2&&(a=0),arguments.length<3&&(c=a);var f=i[1]<i[0],l=i[f-0],s=i[1-f],h=(s-l)/(t.length-a+2*c);return o=e(l+h*c,h),f&&o.reverse(),u=h*(1-a),n={t:"rangeBands",a:arguments},r},r.rangeRoundBands=function(i,a,c){arguments.length<2&&(a=0),arguments.length<3&&(c=a);var f=i[1]<i[0],l=i[f-0],s=i[1-f],h=Math.floor((s-l)/(t.length-a+2*c));return o=e(l+Math.round((s-l-(t.length-a)*h)/2),h),f&&o.reverse(),u=Math.round(h*(1-a)),n={t:"rangeRoundBands",a:arguments},r},r.rangeBand=function(){return u},r.rangeExtent=function(){return Wi(n.a[0])},r.copy=function(){return so(t,n)},r.domain(t)}function ho(t,n){function r(){var r=0,o=n.length;for(i=[];++r<o;)i[r-1]=pu.quantile(t,r/o);return e}function e(t){if(!isNaN(t=+t))return n[pu.bisect(i,t)]}var i;return e.domain=function(n){return arguments.length?(t=n.map(c).filter(f).sort(a),r()):t},e.range=function(t){return arguments.length?(n=t,r()):n},e.quantiles=function(){return i},e.invertExtent=function(r){return r=n.indexOf(r),r<0?[NaN,NaN]:[r>0?i[r-1]:t[0],r<i.length?i[r]:t[t.length-1]]},e.copy=function(){return ho(t,n)},r()}function po(t,n,r){function e(n){return r[Math.max(0,Math.min(u,Math.floor(o*(n-t))))]}function i(){return o=r.length/(n-t),u=r.length-1,e}var o,u;return e.domain=function(r){return arguments.length?(t=+r[0],n=+r[r.length-1],i()):[t,n]},e.range=function(t){return arguments.length?(r=t,i()):r},e.invertExtent=function(n){return n=r.indexOf(n),n=n<0?NaN:n/o+t,[n,n+1/o]},e.copy=function(){return po(t,n,r)},i()}function go(t,n){function r(r){if(r<=r)return n[pu.bisect(t,r)]}return r.domain=function(n){return arguments.length?(t=n,r):t},r.range=function(t){return arguments.length?(n=t,r):n},r.invertExtent=function(r){return r=n.indexOf(r),[t[r-1],t[r]]},r.copy=function(){return go(t,n)},r}function vo(t){function n(t){return+t}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(t=r.map(n),n):t},n.ticks=function(n){return io(t,n)},n.tickFormat=function(n,r){return oo(t,n,r)},n.copy=function(){return vo(t)},n}function yo(){return 0}function mo(t){return t.innerRadius}function xo(t){return t.outerRadius}function bo(t){return t.startAngle}function Mo(t){return t.endAngle}function wo(t){return t&&t.padAngle}function _o(t,n,r,e){return(t-r)*n-(n-e)*t>0?0:1}function Eo(t,n,r,e,i){var o=t[0]-n[0],u=t[1]-n[1],a=(i?e:-e)/Math.sqrt(o*o+u*u),c=a*u,f=-a*o,l=t[0]+c,s=t[1]+f,h=n[0]+c,p=n[1]+f,g=(l+h)/2,d=(s+p)/2,v=h-l,y=p-s,m=v*v+y*y,x=r-e,b=l*p-h*s,M=(y<0?-1:1)*Math.sqrt(Math.max(0,x*x*m-b*b)),w=(b*y-v*M)/m,_=(-b*v-y*M)/m,E=(b*y+v*M)/m,S=(-b*v+y*M)/m,A=w-g,k=_-d,N=E-g,j=S-d;return A*A+k*k>N*N+j*j&&(w=E,_=S),[[w-c,_-f],[w*r/x,_*r/x]]}function So(t){function n(n){function u(){f.push("M",o(t(l),a))}for(var c,f=[],l=[],s=-1,h=n.length,p=Tt(r),g=Tt(e);++s<h;)i.call(this,c=n[s],s)?l.push([+p.call(this,c,s),+g.call(this,c,s)]):l.length&&(u(),l=[]);return l.length&&u(),f.length?f.join(""):null}var r=Pr,e=Lr,i=Ln,o=Ao,u=o.key,a=.7;return n.x=function(t){return arguments.length?(r=t,n):r},n.y=function(t){return arguments.length?(e=t,n):e},n.defined=function(t){return arguments.length?(i=t,n):i},n.interpolate=function(t){return arguments.length?(u="function"==typeof t?o=t:(o=qc.get(t)||Ao).key,n):u},n.tension=function(t){return arguments.length?(a=t,n):a},n}function Ao(t){return t.length>1?t.join("L"):t+"Z"}function ko(t){return t.join("L")+"Z"}function No(t){for(var n=0,r=t.length,e=t[0],i=[e[0],",",e[1]];++n<r;)i.push("H",(e[0]+(e=t[n])[0])/2,"V",e[1]);return r>1&&i.push("H",e[0]),i.join("")}function jo(t){for(var n=0,r=t.length,e=t[0],i=[e[0],",",e[1]];++n<r;)i.push("V",(e=t[n])[1],"H",e[0]);return i.join("")}function Co(t){for(var n=0,r=t.length,e=t[0],i=[e[0],",",e[1]];++n<r;)i.push("H",(e=t[n])[0],"V",e[1]);return i.join("")}function To(t,n){return t.length<4?Ao(t):t[1]+Po(t.slice(1,-1),Lo(t,n))}function Oo(t,n){return t.length<3?ko(t):t[0]+Po((t.push(t[0]),t),Lo([t[t.length-2]].concat(t,[t[1]]),n))}function Ro(t,n){return t.length<3?Ao(t):t[0]+Po(t,Lo(t,n))}function Po(t,n){if(n.length<1||t.length!=n.length&&t.length!=n.length+2)return Ao(t);var r=t.length!=n.length,e="",i=t[0],o=t[1],u=n[0],a=u,c=1;if(r&&(e+="Q"+(o[0]-2*u[0]/3)+","+(o[1]-2*u[1]/3)+","+o[0]+","+o[1],i=t[1],c=2),n.length>1){a=n[1],o=t[c],c++,e+="C"+(i[0]+u[0])+","+(i[1]+u[1])+","+(o[0]-a[0])+","+(o[1]-a[1])+","+o[0]+","+o[1];for(var f=2;f<n.length;f++,c++)o=t[c],a=n[f],e+="S"+(o[0]-a[0])+","+(o[1]-a[1])+","+o[0]+","+o[1]}if(r){var l=t[c];e+="Q"+(o[0]+2*a[0]/3)+","+(o[1]+2*a[1]/3)+","+l[0]+","+l[1]}return e}function Lo(t,n){for(var r,e=[],i=(1-n)/2,o=t[0],u=t[1],a=1,c=t.length;++a<c;)r=o,o=u,u=t[a],e.push([i*(u[0]-r[0]),i*(u[1]-r[1])]);return e}function zo(t){if(t.length<3)return Ao(t);var n=1,r=t.length,e=t[0],i=e[0],o=e[1],u=[i,i,i,(e=t[1])[0]],a=[o,o,o,e[1]],c=[i,",",o,"L",Io(Bc,u),",",Io(Bc,a)];for(t.push(t[r-1]);++n<=r;)e=t[n],u.shift(),u.push(e[0]),a.shift(),a.push(e[1]),Bo(c,u,a);return t.pop(),c.push("L",e),c.join("")}function Uo(t){if(t.length<4)return Ao(t);for(var n,r=[],e=-1,i=t.length,o=[0],u=[0];++e<3;)n=t[e],o.push(n[0]),u.push(n[1]);for(r.push(Io(Bc,o)+","+Io(Bc,u)),--e;++e<i;)n=t[e],o.shift(),o.push(n[0]),u.shift(),u.push(n[1]),Bo(r,o,u);return r.join("")}function qo(t){for(var n,r,e=-1,i=t.length,o=i+4,u=[],a=[];++e<4;)r=t[e%i],u.push(r[0]),a.push(r[1]);for(n=[Io(Bc,u),",",Io(Bc,a)],--e;++e<o;)r=t[e%i],u.shift(),u.push(r[0]),a.shift(),a.push(r[1]),Bo(n,u,a);return n.join("")}function Do(t,n){var r=t.length-1;if(r)for(var e,i,o=t[0][0],u=t[0][1],a=t[r][0]-o,c=t[r][1]-u,f=-1;++f<=r;)e=t[f],i=f/r,e[0]=n*e[0]+(1-n)*(o+i*a),e[1]=n*e[1]+(1-n)*(u+i*c);return zo(t)}function Io(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function Bo(t,n,r){t.push("C",Io(Dc,n),",",Io(Dc,r),",",Io(Ic,n),",",Io(Ic,r),",",Io(Bc,n),",",Io(Bc,r))}function Yo(t,n){return(n[1]-t[1])/(n[0]-t[0])}function Fo(t){for(var n=0,r=t.length-1,e=[],i=t[0],o=t[1],u=e[0]=Yo(i,o);++n<r;)e[n]=(u+(u=Yo(i=o,o=t[n+1])))/2;return e[n]=u,e}function Ho(t){for(var n,r,e,i,o=[],u=Fo(t),a=-1,c=t.length-1;++a<c;)n=Yo(t[a],t[a+1]),Su(n)<Yu?u[a]=u[a+1]=0:(r=u[a]/n,e=u[a+1]/n,i=r*r+e*e,i>9&&(i=3*n/Math.sqrt(i),u[a]=i*r,u[a+1]=i*e));for(a=-1;++a<=c;)i=(t[Math.min(c,a+1)][0]-t[Math.max(0,a-1)][0])/(6*(1+u[a]*u[a])),o.push([i||0,u[a]*i||0]);return o}function Vo(t){return t.length<3?Ao(t):t[0]+Po(t,Ho(t))}function Zo(t){for(var n,r,e,i=-1,o=t.length;++i<o;)n=t[i],r=n[0],e=n[1]-$u,n[0]=r*Math.cos(e),n[1]=r*Math.sin(e);return t}function $o(t){function n(n){function c(){d.push("M",a(t(y),s),l,f(t(v.reverse()),s),"Z")}for(var h,p,g,d=[],v=[],y=[],m=-1,x=n.length,b=Tt(r),M=Tt(i),w=r===e?function(){return p}:Tt(e),_=i===o?function(){return g}:Tt(o);++m<x;)u.call(this,h=n[m],m)?(v.push([p=+b.call(this,h,m),g=+M.call(this,h,m)]),y.push([+w.call(this,h,m),+_.call(this,h,m)])):v.length&&(c(),v=[],y=[]);return v.length&&c(),d.length?d.join(""):null}var r=Pr,e=Pr,i=0,o=Lr,u=Ln,a=Ao,c=a.key,f=a,l="L",s=.7;return n.x=function(t){return arguments.length?(r=e=t,n):e},n.x0=function(t){return arguments.length?(r=t,n):r},n.x1=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(i=o=t,n):o},n.y0=function(t){return arguments.length?(i=t,n):i},n.y1=function(t){return arguments.length?(o=t,n):o},n.defined=function(t){return arguments.length?(u=t,n):u},n.interpolate=function(t){return arguments.length?(c="function"==typeof t?a=t:(a=qc.get(t)||Ao).key,f=a.reverse||a,l=a.closed?"M":"L",n):c},n.tension=function(t){return arguments.length?(s=t,n):s},n}function Wo(t){return t.radius}function Xo(t){return[t.x,t.y]}function Jo(t){return function(){var n=t.apply(this,arguments),r=n[0],e=n[1]-$u;return[r*Math.cos(e),r*Math.sin(e)];
11}}function Go(){return 64}function Ko(){return"circle"}function Qo(t){var n=Math.sqrt(t/Hu);return"M0,"+n+"A"+n+","+n+" 0 1,1 0,"+-n+"A"+n+","+n+" 0 1,1 0,"+n+"Z"}function tu(t){return function(){var n,r,e;(n=this[t])&&(e=n[r=n.active])&&(e.timer.c=null,e.timer.t=NaN,--n.count?delete n[r]:delete this[t],n.active+=.5,e.event&&e.event.interrupt.call(this,this.__data__,e.index))}}function nu(t,n,r){return Cu(t,Wc),t.namespace=n,t.id=r,t}function ru(t,n,r,e){var i=t.id,o=t.namespace;return W(t,"function"==typeof r?function(t,u,a){t[o][i].tween.set(n,e(r.call(t,t.__data__,u,a)))}:(r=e(r),function(t){t[o][i].tween.set(n,r)}))}function eu(t){return null==t&&(t=""),function(){this.textContent=t}}function iu(t){return null==t?"__transition__":"__transition_"+t+"__"}function ou(t,n,r,e,i){function o(t){var n=d.delay;return f.t=n+c,n<=t?u(t-n):void(f.c=u)}function u(r){var i=p.active,o=p[i];o&&(o.timer.c=null,o.timer.t=NaN,--p.count,delete p[i],o.event&&o.event.interrupt.call(t,t.__data__,o.index));for(var u in p)if(+u<e){var g=p[u];g.timer.c=null,g.timer.t=NaN,--p.count,delete p[u]}f.c=a,zt(function(){return f.c&&a(r||1)&&(f.c=null,f.t=NaN),1},0,c),p.active=e,d.event&&d.event.start.call(t,t.__data__,n),h=[],d.tween.forEach(function(r,e){(e=e.call(t,t.__data__,n))&&h.push(e)}),s=d.ease,l=d.duration}function a(i){for(var o=i/l,u=s(o),a=h.length;a>0;)h[--a].call(t,u);if(o>=1)return d.event&&d.event.end.call(t,t.__data__,n),--p.count?delete p[e]:delete t[r],1}var c,f,l,s,h,p=t[r]||(t[r]={active:0,count:0}),d=p[e];d||(c=i.time,f=zt(o,0,c),d=p[e]={tween:new g,time:c,timer:f,delay:i.delay,duration:i.duration,ease:i.ease,index:n},i=null,++p.count)}function uu(t,n,r){t.attr("transform",function(t){var e=n(t);return"translate("+(isFinite(e)?e:r(t))+",0)"})}function au(t,n,r){t.attr("transform",function(t){var e=n(t);return"translate(0,"+(isFinite(e)?e:r(t))+")"})}function cu(t){return t.toISOString()}function fu(t,n,r){function e(n){return t(n)}function i(t,r){var e=t[1]-t[0],i=e/r,o=pu.bisect(ef,i);return o==ef.length?[n.year,eo(t.map(function(t){return t/31536e6}),r)[2]]:o?n[i/ef[o-1]<ef[o]/i?o-1:o]:[af,eo(t,r)[2]]}return e.invert=function(n){return lu(t.invert(n))},e.domain=function(n){return arguments.length?(t.domain(n),e):t.domain().map(lu)},e.nice=function(t,n){function r(r){return!isNaN(r)&&!t.range(r,lu(+r+1),n).length}var o=e.domain(),u=Wi(o),a=null==t?i(u,10):"number"==typeof t&&i(u,t);return a&&(t=a[0],n=a[1]),e.domain(Gi(o,n>1?{floor:function(n){for(;r(n=t.floor(n));)n=lu(n-1);return n},ceil:function(n){for(;r(n=t.ceil(n));)n=lu(+n+1);return n}}:t))},e.ticks=function(t,n){var r=Wi(e.domain()),o=null==t?i(r,10):"number"==typeof t?i(r,t):!t.range&&[{range:t},n];return o&&(t=o[0],n=o[1]),t.range(r[0],lu(+r[1]+1),n<1?1:n)},e.tickFormat=function(){return r},e.copy=function(){return fu(t.copy(),n,r)},no(e,t)}function lu(t){return new Date(t)}function su(t){return JSON.parse(t.responseText)}function hu(t){var n=vu.createRange();return n.selectNode(vu.body),n.createContextualFragment(t.responseText)}var pu={version:"3.5.17"},gu=[].slice,du=function(t){return gu.call(t)},vu=this.document;if(vu)try{du(vu.documentElement.childNodes)[0].nodeType}catch(yu){du=function(t){for(var n=t.length,r=new Array(n);n--;)r[n]=t[n];return r}}if(Date.now||(Date.now=function(){return+new Date}),vu)try{vu.createElement("DIV").style.setProperty("opacity",0,"")}catch(mu){var xu=this.Element.prototype,bu=xu.setAttribute,Mu=xu.setAttributeNS,wu=this.CSSStyleDeclaration.prototype,_u=wu.setProperty;xu.setAttribute=function(t,n){bu.call(this,t,n+"")},xu.setAttributeNS=function(t,n,r){Mu.call(this,t,n,r+"")},wu.setProperty=function(t,n,r){_u.call(this,t,n+"",r)}}pu.ascending=a,pu.descending=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},pu.min=function(t,n){var r,e,i=-1,o=t.length;if(1===arguments.length){for(;++i<o;)if(null!=(e=t[i])&&e>=e){r=e;break}for(;++i<o;)null!=(e=t[i])&&r>e&&(r=e)}else{for(;++i<o;)if(null!=(e=n.call(t,t[i],i))&&e>=e){r=e;break}for(;++i<o;)null!=(e=n.call(t,t[i],i))&&r>e&&(r=e)}return r},pu.max=function(t,n){var r,e,i=-1,o=t.length;if(1===arguments.length){for(;++i<o;)if(null!=(e=t[i])&&e>=e){r=e;break}for(;++i<o;)null!=(e=t[i])&&e>r&&(r=e)}else{for(;++i<o;)if(null!=(e=n.call(t,t[i],i))&&e>=e){r=e;break}for(;++i<o;)null!=(e=n.call(t,t[i],i))&&e>r&&(r=e)}return r},pu.extent=function(t,n){var r,e,i,o=-1,u=t.length;if(1===arguments.length){for(;++o<u;)if(null!=(e=t[o])&&e>=e){r=i=e;break}for(;++o<u;)null!=(e=t[o])&&(r>e&&(r=e),i<e&&(i=e))}else{for(;++o<u;)if(null!=(e=n.call(t,t[o],o))&&e>=e){r=i=e;break}for(;++o<u;)null!=(e=n.call(t,t[o],o))&&(r>e&&(r=e),i<e&&(i=e))}return[r,i]},pu.sum=function(t,n){var r,e=0,i=t.length,o=-1;if(1===arguments.length)for(;++o<i;)f(r=+t[o])&&(e+=r);else for(;++o<i;)f(r=+n.call(t,t[o],o))&&(e+=r);return e},pu.mean=function(t,n){var r,e=0,i=t.length,o=-1,u=i;if(1===arguments.length)for(;++o<i;)f(r=c(t[o]))?e+=r:--u;else for(;++o<i;)f(r=c(n.call(t,t[o],o)))?e+=r:--u;if(u)return e/u},pu.quantile=function(t,n){var r=(t.length-1)*n+1,e=Math.floor(r),i=+t[e-1],o=r-e;return o?i+o*(t[e]-i):i},pu.median=function(t,n){var r,e=[],i=t.length,o=-1;if(1===arguments.length)for(;++o<i;)f(r=c(t[o]))&&e.push(r);else for(;++o<i;)f(r=c(n.call(t,t[o],o)))&&e.push(r);if(e.length)return pu.quantile(e.sort(a),.5)},pu.variance=function(t,n){var r,e,i=t.length,o=0,u=0,a=-1,l=0;if(1===arguments.length)for(;++a<i;)f(r=c(t[a]))&&(e=r-o,o+=e/++l,u+=e*(r-o));else for(;++a<i;)f(r=c(n.call(t,t[a],a)))&&(e=r-o,o+=e/++l,u+=e*(r-o));if(l>1)return u/(l-1)},pu.deviation=function(){var t=pu.variance.apply(this,arguments);return t?Math.sqrt(t):t};var Eu=l(a);pu.bisectLeft=Eu.left,pu.bisect=pu.bisectRight=Eu.right,pu.bisector=function(t){return l(1===t.length?function(n,r){return a(t(n),r)}:t)},pu.shuffle=function(t,n,r){(o=arguments.length)<3&&(r=t.length,o<2&&(n=0));for(var e,i,o=r-n;o;)i=Math.random()*o--|0,e=t[o+n],t[o+n]=t[i+n],t[i+n]=e;return t},pu.permute=function(t,n){for(var r=n.length,e=new Array(r);r--;)e[r]=t[n[r]];return e},pu.pairs=function(t){for(var n,r=0,e=t.length-1,i=t[0],o=new Array(e<0?0:e);r<e;)o[r]=[n=i,i=t[++r]];return o},pu.transpose=function(t){if(!(i=t.length))return[];for(var n=-1,r=pu.min(t,s),e=new Array(r);++n<r;)for(var i,o=-1,u=e[n]=new Array(i);++o<i;)u[o]=t[o][n];return e},pu.zip=function(){return pu.transpose(arguments)},pu.keys=function(t){var n=[];for(var r in t)n.push(r);return n},pu.values=function(t){var n=[];for(var r in t)n.push(t[r]);return n},pu.entries=function(t){var n=[];for(var r in t)n.push({key:r,value:t[r]});return n},pu.merge=function(t){for(var n,r,e,i=t.length,o=-1,u=0;++o<i;)u+=t[o].length;for(r=new Array(u);--i>=0;)for(e=t[i],n=e.length;--n>=0;)r[--u]=e[n];return r};var Su=Math.abs;pu.range=function(t,n,r){if(arguments.length<3&&(r=1,arguments.length<2&&(n=t,t=0)),(n-t)/r===1/0)throw new Error("infinite range");var e,i=[],o=h(Su(r)),u=-1;if(t*=o,n*=o,r*=o,r<0)for(;(e=t+r*++u)>n;)i.push(e/o);else for(;(e=t+r*++u)<n;)i.push(e/o);return i},pu.map=function(t,n){var r=new g;if(t instanceof g)t.forEach(function(t,n){r.set(t,n)});else if(Array.isArray(t)){var e,i=-1,o=t.length;if(1===arguments.length)for(;++i<o;)r.set(i,t[i]);else for(;++i<o;)r.set(n.call(t,e=t[i],i),e)}else for(var u in t)r.set(u,t[u]);return r};var Au="__proto__",ku="\0";p(g,{has:y,get:function(t){return this._[d(t)]},set:function(t,n){return this._[d(t)]=n},remove:m,keys:x,values:function(){var t=[];for(var n in this._)t.push(this._[n]);return t},entries:function(){var t=[];for(var n in this._)t.push({key:v(n),value:this._[n]});return t},size:b,empty:M,forEach:function(t){for(var n in this._)t.call(this,v(n),this._[n])}}),pu.nest=function(){function t(n,u,a){if(a>=o.length)return e?e.call(i,u):r?u.sort(r):u;for(var c,f,l,s,h=-1,p=u.length,d=o[a++],v=new g;++h<p;)(s=v.get(c=d(f=u[h])))?s.push(f):v.set(c,[f]);return n?(f=n(),l=function(r,e){f.set(r,t(n,e,a))}):(f={},l=function(r,e){f[r]=t(n,e,a)}),v.forEach(l),f}function n(t,r){if(r>=o.length)return t;var e=[],i=u[r++];return t.forEach(function(t,i){e.push({key:t,values:n(i,r)})}),i?e.sort(function(t,n){return i(t.key,n.key)}):e}var r,e,i={},o=[],u=[];return i.map=function(n,r){return t(r,n,0)},i.entries=function(r){return n(t(pu.map,r,0),0)},i.key=function(t){return o.push(t),i},i.sortKeys=function(t){return u[o.length-1]=t,i},i.sortValues=function(t){return r=t,i},i.rollup=function(t){return e=t,i},i},pu.set=function(t){var n=new w;if(t)for(var r=0,e=t.length;r<e;++r)n.add(t[r]);return n},p(w,{has:y,add:function(t){return this._[d(t+="")]=!0,t},remove:m,values:x,size:b,empty:M,forEach:function(t){for(var n in this._)t.call(this,v(n))}}),pu.behavior={},pu.rebind=function(t,n){for(var r,e=1,i=arguments.length;++e<i;)t[r=arguments[e]]=E(t,n,n[r]);return t};var Nu=["webkit","ms","moz","Moz","o","O"];pu.dispatch=function(){for(var t=new k,n=-1,r=arguments.length;++n<r;)t[arguments[n]]=N(t);return t},k.prototype.on=function(t,n){var r=t.indexOf("."),e="";if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length<2?this[t].on(e):this[t].on(e,n);if(2===arguments.length){if(null==n)for(t in this)this.hasOwnProperty(t)&&this[t].on(e,null);return this}},pu.event=null,pu.requote=function(t){return t.replace(ju,"\\$&")};var ju=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Cu={}.__proto__?function(t,n){t.__proto__=n}:function(t,n){for(var r in n)t[r]=n[r]},Tu=function(t,n){return n.querySelector(t)},Ou=function(t,n){return n.querySelectorAll(t)},Ru=function(t,n){var r=t.matches||t[S(t,"matchesSelector")];return(Ru=function(t,n){return r.call(t,n)})(t,n)};"function"==typeof Sizzle&&(Tu=function(t,n){return Sizzle(t,n)[0]||null},Ou=Sizzle,Ru=Sizzle.matchesSelector),pu.selection=function(){return pu.select(vu.documentElement)};var Pu=pu.selection.prototype=[];Pu.select=function(t){var n,r,e,i,o=[];t=R(t);for(var u=-1,a=this.length;++u<a;){o.push(n=[]),n.parentNode=(e=this[u]).parentNode;for(var c=-1,f=e.length;++c<f;)(i=e[c])?(n.push(r=t.call(i,i.__data__,c,u)),r&&"__data__"in i&&(r.__data__=i.__data__)):n.push(null)}return O(o)},Pu.selectAll=function(t){var n,r,e=[];t=P(t);for(var i=-1,o=this.length;++i<o;)for(var u=this[i],a=-1,c=u.length;++a<c;)(r=u[a])&&(e.push(n=du(t.call(r,r.__data__,a,i))),n.parentNode=r);return O(e)};var Lu="http://www.w3.org/1999/xhtml",zu={svg:"http://www.w3.org/2000/svg",xhtml:Lu,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};pu.ns={prefix:zu,qualify:function(t){var n=t.indexOf(":"),r=t;return n>=0&&"xmlns"!==(r=t.slice(0,n))&&(t=t.slice(n+1)),zu.hasOwnProperty(r)?{space:zu[r],local:t}:t}},Pu.attr=function(t,n){if(arguments.length<2){if("string"==typeof t){var r=this.node();return t=pu.ns.qualify(t),t.local?r.getAttributeNS(t.space,t.local):r.getAttribute(t)}for(n in t)this.each(L(n,t[n]));return this}return this.each(L(t,n))},Pu.classed=function(t,n){if(arguments.length<2){if("string"==typeof t){var r=this.node(),e=(t=q(t)).length,i=-1;if(n=r.classList){for(;++i<e;)if(!n.contains(t[i]))return!1}else for(n=r.getAttribute("class");++i<e;)if(!U(t[i]).test(n))return!1;return!0}for(n in t)this.each(D(n,t[n]));return this}return this.each(D(t,n))},Pu.style=function(t,n,r){var e=arguments.length;if(e<3){if("string"!=typeof t){e<2&&(n="");for(r in t)this.each(B(r,t[r],n));return this}if(e<2){var i=this.node();return u(i).getComputedStyle(i,null).getPropertyValue(t)}r=""}return this.each(B(t,n,r))},Pu.property=function(t,n){if(arguments.length<2){if("string"==typeof t)return this.node()[t];for(n in t)this.each(Y(n,t[n]));return this}return this.each(Y(t,n))},Pu.text=function(t){return arguments.length?this.each("function"==typeof t?function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}:null==t?function(){this.textContent=""}:function(){this.textContent=t}):this.node().textContent},Pu.html=function(t){return arguments.length?this.each("function"==typeof t?function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}:null==t?function(){this.innerHTML=""}:function(){this.innerHTML=t}):this.node().innerHTML},Pu.append=function(t){return t=F(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},Pu.insert=function(t,n){return t=F(t),n=R(n),this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})},Pu.remove=function(){return this.each(H)},Pu.data=function(t,n){function r(t,r){var e,i,o,u=t.length,l=r.length,s=Math.min(u,l),h=new Array(l),p=new Array(l),d=new Array(u);if(n){var v,y=new g,m=new Array(u);for(e=-1;++e<u;)(i=t[e])&&(y.has(v=n.call(i,i.__data__,e))?d[e]=i:y.set(v,i),m[e]=v);for(e=-1;++e<l;)(i=y.get(v=n.call(r,o=r[e],e)))?i!==!0&&(h[e]=i,i.__data__=o):p[e]=V(o),y.set(v,!0);for(e=-1;++e<u;)e in m&&y.get(m[e])!==!0&&(d[e]=t[e])}else{for(e=-1;++e<s;)i=t[e],o=r[e],i?(i.__data__=o,h[e]=i):p[e]=V(o);for(;e<l;++e)p[e]=V(r[e]);for(;e<u;++e)d[e]=t[e]}p.update=h,p.parentNode=h.parentNode=d.parentNode=t.parentNode,a.push(p),c.push(h),f.push(d)}var e,i,o=-1,u=this.length;if(!arguments.length){for(t=new Array(u=(e=this[0]).length);++o<u;)(i=e[o])&&(t[o]=i.__data__);return t}var a=X([]),c=O([]),f=O([]);if("function"==typeof t)for(;++o<u;)r(e=this[o],t.call(e,e.parentNode.__data__,o));else for(;++o<u;)r(e=this[o],t);return c.enter=function(){return a},c.exit=function(){return f},c},Pu.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},Pu.filter=function(t){var n,r,e,i=[];"function"!=typeof t&&(t=Z(t));for(var o=0,u=this.length;o<u;o++){i.push(n=[]),n.parentNode=(r=this[o]).parentNode;for(var a=0,c=r.length;a<c;a++)(e=r[a])&&t.call(e,e.__data__,a,o)&&n.push(e)}return O(i)},Pu.order=function(){for(var t=-1,n=this.length;++t<n;)for(var r,e=this[t],i=e.length-1,o=e[i];--i>=0;)(r=e[i])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this},Pu.sort=function(t){t=$.apply(this,arguments);for(var n=-1,r=this.length;++n<r;)this[n].sort(t);return this.order()},Pu.each=function(t){return W(this,function(n,r,e){t.call(n,n.__data__,r,e)})},Pu.call=function(t){var n=du(arguments);return t.apply(n[0]=this,n),this},Pu.empty=function(){return!this.node()},Pu.node=function(){for(var t=0,n=this.length;t<n;t++)for(var r=this[t],e=0,i=r.length;e<i;e++){var o=r[e];if(o)return o}return null},Pu.size=function(){var t=0;return W(this,function(){++t}),t};var Uu=[];pu.selection.enter=X,pu.selection.enter.prototype=Uu,Uu.append=Pu.append,Uu.empty=Pu.empty,Uu.node=Pu.node,Uu.call=Pu.call,Uu.size=Pu.size,Uu.select=function(t){for(var n,r,e,i,o,u=[],a=-1,c=this.length;++a<c;){e=(i=this[a]).update,u.push(n=[]),n.parentNode=i.parentNode;for(var f=-1,l=i.length;++f<l;)(o=i[f])?(n.push(e[f]=r=t.call(i.parentNode,o.__data__,f,a)),r.__data__=o.__data__):n.push(null)}return O(u)},Uu.insert=function(t,n){return arguments.length<2&&(n=J(this)),Pu.insert.call(this,t,n)},pu.select=function(t){var n;return"string"==typeof t?(n=[Tu(t,vu)],n.parentNode=vu.documentElement):(n=[t],n.parentNode=o(t)),O([n])},pu.selectAll=function(t){var n;return"string"==typeof t?(n=du(Ou(t,vu)),n.parentNode=vu.documentElement):(n=du(t),n.parentNode=null),O([n])},Pu.on=function(t,n,r){var e=arguments.length;if(e<3){if("string"!=typeof t){e<2&&(n=!1);for(r in t)this.each(G(r,t[r],n));return this}if(e<2)return(e=this.node()["__on"+t])&&e._;r=!1}return this.each(G(t,n,r))};var qu=pu.map({mouseenter:"mouseover",mouseleave:"mouseout"});vu&&qu.forEach(function(t){"on"+t in vu&&qu.remove(t)});var Du,Iu=0;pu.mouse=function(t){return nt(t,C())};var Bu=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;pu.touch=function(t,n,r){if(arguments.length<3&&(r=n,n=C().changedTouches),n)for(var e,i=0,o=n.length;i<o;++i)if((e=n[i]).identifier===r)return nt(t,e)},pu.behavior.drag=function(){function t(){this.on("mousedown.drag",i).on("touchstart.drag",o)}function n(t,n,i,o,u){return function(){function a(){var t,r,e=n(h,d);e&&(t=e[0]-x[0],r=e[1]-x[1],g|=t|r,x=e,p({type:"drag",x:e[0]+f[0],y:e[1]+f[1],dx:t,dy:r}))}function c(){n(h,d)&&(y.on(o+v,null).on(u+v,null),m(g),p({type:"dragend"}))}var f,l=this,s=pu.event.target.correspondingElement||pu.event.target,h=l.parentNode,p=r.of(l,arguments),g=0,d=t(),v=".drag"+(null==d?"":"-"+d),y=pu.select(i(s)).on(o+v,a).on(u+v,c),m=tt(s),x=n(h,d);e?(f=e.apply(l,arguments),f=[f.x-x[0],f.y-x[1]]):f=[0,0],p({type:"dragstart"})}}var r=T(t,"drag","dragstart","dragend"),e=null,i=n(A,pu.mouse,u,"mousemove","mouseup"),o=n(rt,pu.touch,_,"touchmove","touchend");return t.origin=function(n){return arguments.length?(e=n,t):e},pu.rebind(t,r,"on")},pu.touches=function(t,n){return arguments.length<2&&(n=C().touches),n?du(n).map(function(n){var r=nt(t,n);return r.identifier=n.identifier,r}):[]};var Yu=1e-6,Fu=Yu*Yu,Hu=Math.PI,Vu=2*Hu,Zu=Vu-Yu,$u=Hu/2,Wu=Hu/180,Xu=180/Hu,Ju=Math.SQRT2,Gu=2,Ku=4;pu.interpolateZoom=function(t,n){var r,e,i=t[0],o=t[1],u=t[2],a=n[0],c=n[1],f=n[2],l=a-i,s=c-o,h=l*l+s*s;if(h<Fu)e=Math.log(f/u)/Ju,r=function(t){return[i+t*l,o+t*s,u*Math.exp(Ju*t*e)]};else{var p=Math.sqrt(h),g=(f*f-u*u+Ku*h)/(2*u*Gu*p),d=(f*f-u*u-Ku*h)/(2*f*Gu*p),v=Math.log(Math.sqrt(g*g+1)-g),y=Math.log(Math.sqrt(d*d+1)-d);e=(y-v)/Ju,r=function(t){var n=t*e,r=ct(v),a=u/(Gu*p)*(r*ft(Ju*n+v)-at(v));return[i+a*l,o+a*s,u*r/ct(Ju*n+v)]}}return r.duration=1e3*e,r},pu.behavior.zoom=function(){function t(t){t.on(C,s).on(ta+".zoom",p).on("dblclick.zoom",g).on(P,h)}function n(t){return[(t[0]-E.x)/E.k,(t[1]-E.y)/E.k]}function r(t){return[t[0]*E.k+E.x,t[1]*E.k+E.y]}function e(t){E.k=Math.max(A[0],Math.min(A[1],t))}function i(t,n){n=r(n),E.x+=t[0]-n[0],E.y+=t[1]-n[1]}function o(n,r,o,u){n.__chart__={x:E.x,y:E.y,k:E.k},e(Math.pow(2,u)),i(v=r,o),n=pu.select(n),k>0&&(n=n.transition().duration(k)),n.call(t.event)}function a(){M&&M.domain(b.range().map(function(t){return(t-E.x)/E.k}).map(b.invert)),_&&_.domain(w.range().map(function(t){return(t-E.y)/E.k}).map(w.invert))}function c(t){N++||t({type:"zoomstart"})}function f(t){a(),t({type:"zoom",scale:E.k,translate:[E.x,E.y]})}function l(t){--N||(t({type:"zoomend"}),v=null)}function s(){function t(){a=1,i(pu.mouse(e),h),f(o)}function r(){s.on(O,null).on(R,null),p(a),l(o)}var e=this,o=L.of(e,arguments),a=0,s=pu.select(u(e)).on(O,t).on(R,r),h=n(pu.mouse(e)),p=tt(e);$c.call(e),c(o)}function h(){function t(){var t=pu.touches(g);return p=E.k,t.forEach(function(t){t.identifier in v&&(v[t.identifier]=n(t))}),t}function r(){var n=pu.event.target;pu.select(n).on(b,u).on(M,a),w.push(n);for(var r=pu.event.changedTouches,e=0,i=r.length;e<i;++e)v[r[e].identifier]=null;var c=t(),f=Date.now();if(1===c.length){if(f-x<500){var l=c[0];o(g,l,v[l.identifier],Math.floor(Math.log(E.k)/Math.LN2)+1),j()}x=f}else if(c.length>1){var l=c[0],s=c[1],h=l[0]-s[0],p=l[1]-s[1];y=h*h+p*p}}function u(){var t,n,r,o,u=pu.touches(g);$c.call(g);for(var a=0,c=u.length;a<c;++a,o=null)if(r=u[a],o=v[r.identifier]){if(n)break;t=r,n=o}if(o){var l=(l=r[0]-t[0])*l+(l=r[1]-t[1])*l,s=y&&Math.sqrt(l/y);t=[(t[0]+r[0])/2,(t[1]+r[1])/2],n=[(n[0]+o[0])/2,(n[1]+o[1])/2],e(s*p)}x=null,i(t,n),f(d)}function a(){if(pu.event.touches.length){for(var n=pu.event.changedTouches,r=0,e=n.length;r<e;++r)delete v[n[r].identifier];for(var i in v)return void t()}pu.selectAll(w).on(m,null),_.on(C,s).on(P,h),S(),l(d)}var p,g=this,d=L.of(g,arguments),v={},y=0,m=".zoom-"+pu.event.changedTouches[0].identifier,b="touchmove"+m,M="touchend"+m,w=[],_=pu.select(g),S=tt(g);r(),c(d),_.on(C,null).on(P,r)}function p(){var t=L.of(this,arguments);m?clearTimeout(m):($c.call(this),d=n(v=y||pu.mouse(this)),c(t)),m=setTimeout(function(){m=null,l(t)},50),j(),e(Math.pow(2,.002*Qu())*E.k),i(v,d),f(t)}function g(){var t=pu.mouse(this),r=Math.log(E.k)/Math.LN2;o(this,t,n(t),pu.event.shiftKey?Math.ceil(r)-1:Math.floor(r)+1)}var d,v,y,m,x,b,M,w,_,E={x:0,y:0,k:1},S=[960,500],A=na,k=250,N=0,C="mousedown.zoom",O="mousemove.zoom",R="mouseup.zoom",P="touchstart.zoom",L=T(t,"zoomstart","zoom","zoomend");return ta||(ta="onwheel"in vu?(Qu=function(){return-pu.event.deltaY*(pu.event.deltaMode?120:1)},"wheel"):"onmousewheel"in vu?(Qu=function(){return pu.event.wheelDelta},"mousewheel"):(Qu=function(){return-pu.event.detail},"MozMousePixelScroll")),t.event=function(t){t.each(function(){var t=L.of(this,arguments),n=E;Vc?pu.select(this).transition().each("start.zoom",function(){E=this.__chart__||{x:0,y:0,k:1},c(t)}).tween("zoom:zoom",function(){var r=S[0],e=S[1],i=v?v[0]:r/2,o=v?v[1]:e/2,u=pu.interpolateZoom([(i-E.x)/E.k,(o-E.y)/E.k,r/E.k],[(i-n.x)/n.k,(o-n.y)/n.k,r/n.k]);return function(n){var e=u(n),a=r/e[2];this.__chart__=E={x:i-e[0]*a,y:o-e[1]*a,k:a},f(t)}}).each("interrupt.zoom",function(){l(t)}).each("end.zoom",function(){l(t)}):(this.__chart__=E,c(t),f(t),l(t))})},t.translate=function(n){return arguments.length?(E={x:+n[0],y:+n[1],k:E.k},a(),t):[E.x,E.y]},t.scale=function(n){return arguments.length?(E={x:E.x,y:E.y,k:null},e(+n),a(),t):E.k},t.scaleExtent=function(n){return arguments.length?(A=null==n?na:[+n[0],+n[1]],t):A},t.center=function(n){return arguments.length?(y=n&&[+n[0],+n[1]],t):y},t.size=function(n){return arguments.length?(S=n&&[+n[0],+n[1]],t):S},t.duration=function(n){return arguments.length?(k=+n,t):k},t.x=function(n){return arguments.length?(M=n,b=n.copy(),E={x:0,y:0,k:1},t):M},t.y=function(n){return arguments.length?(_=n,w=n.copy(),E={x:0,y:0,k:1},t):_},pu.rebind(t,L,"on")};var Qu,ta,na=[0,1/0];pu.color=st,st.prototype.toString=function(){return this.rgb()+""},pu.hsl=ht;var ra=ht.prototype=new st;ra.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new ht(this.h,this.s,this.l/t)},ra.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new ht(this.h,this.s,t*this.l)},ra.rgb=function(){return pt(this.h,this.s,this.l)},pu.hcl=gt;var ea=gt.prototype=new st;ea.brighter=function(t){return new gt(this.h,this.c,Math.min(100,this.l+ia*(arguments.length?t:1)))},ea.darker=function(t){return new gt(this.h,this.c,Math.max(0,this.l-ia*(arguments.length?t:1)))},ea.rgb=function(){return dt(this.h,this.c,this.l).rgb()},pu.lab=vt;var ia=18,oa=.95047,ua=1,aa=1.08883,ca=vt.prototype=new st;ca.brighter=function(t){return new vt(Math.min(100,this.l+ia*(arguments.length?t:1)),this.a,this.b)},ca.darker=function(t){return new vt(Math.max(0,this.l-ia*(arguments.length?t:1)),this.a,this.b)},ca.rgb=function(){return yt(this.l,this.a,this.b)},pu.rgb=wt;var fa=wt.prototype=new st;fa.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var n=this.r,r=this.g,e=this.b,i=30;return n||r||e?(n&&n<i&&(n=i),r&&r<i&&(r=i),e&&e<i&&(e=i),new wt(Math.min(255,n/t),Math.min(255,r/t),Math.min(255,e/t))):new wt(i,i,i)},fa.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new wt(t*this.r,t*this.g,t*this.b)},fa.hsl=function(){return kt(this.r,this.g,this.b)},fa.toString=function(){return"#"+St(this.r)+St(this.g)+St(this.b)};var la=pu.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});la.forEach(function(t,n){la.set(t,_t(n))}),pu.functor=Tt,pu.xhr=Ot(_),pu.dsv=function(t,n){function r(t,r,o){arguments.length<3&&(o=r,r=null);var u=Rt(t,n,null==r?e:i(r),o);return u.row=function(t){return arguments.length?u.response(null==(r=t)?e:i(t)):r},u}function e(t){return r.parse(t.responseText)}function i(t){return function(n){return r.parse(n.responseText,t)}}function o(n){return n.map(u).join(t)}function u(t){return a.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var a=new RegExp('["'+t+"\n]"),c=t.charCodeAt(0);return r.parse=function(t,n){var e;return r.parseRows(t,function(t,r){if(e)return e(t,r-1);var i=new Function("d","return {"+t.map(function(t,n){return JSON.stringify(t)+": d["+n+"]"}).join(",")+"}");e=n?function(t,r){return n(i(t),r)}:i})},r.parseRows=function(t,n){function r(){if(l>=f)return u;if(i)return i=!1,o;var n=l;if(34===t.charCodeAt(n)){for(var r=n;r++<f;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}l=r+2;var e=t.charCodeAt(r+1);return 13===e?(i=!0,10===t.charCodeAt(r+2)&&++l):10===e&&(i=!0),t.slice(n+1,r).replace(/""/g,'"')}for(;l<f;){var e=t.charCodeAt(l++),a=1;if(10===e)i=!0;else if(13===e)i=!0,10===t.charCodeAt(l)&&(++l,++a);else if(e!==c)continue;return t.slice(n,l-a)}return t.slice(n)}for(var e,i,o={},u={},a=[],f=t.length,l=0,s=0;(e=r())!==u;){for(var h=[];e!==o&&e!==u;)h.push(e),e=r();n&&null==(h=n(h,s++))||a.push(h)}return a},r.format=function(n){if(Array.isArray(n[0]))return r.formatRows(n);var e=new w,i=[];return n.forEach(function(t){for(var n in t)e.has(n)||i.push(e.add(n))}),[i.map(u).join(t)].concat(n.map(function(n){return i.map(function(t){return u(n[t])}).join(t)})).join("\n")},r.formatRows=function(t){return t.map(o).join("\n")},r},pu.csv=pu.dsv(",","text/csv"),pu.tsv=pu.dsv("\t","text/tab-separated-values");var sa,ha,pa,ga,da=this[S(this,"requestAnimationFrame")]||function(t){setTimeout(t,17)};pu.timer=function(){zt.apply(this,arguments)},pu.timer.flush=function(){qt(),Dt()},pu.round=function(t,n){return n?Math.round(t*(n=Math.pow(10,n)))/n:Math.round(t)};var va=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(Bt);pu.formatPrefix=function(t,n){var r=0;return(t=+t)&&(t<0&&(t*=-1),n&&(t=pu.round(t,It(t,n))),r=1+Math.floor(1e-12+Math.log(t)/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=pu.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,n){return t.toPrecision(n)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},r:function(t,n){return(t=pu.round(t,It(t,n))).toFixed(Math.max(0,Math.min(20,It(t*(1+1e-15),n))))}}),xa=pu.time={},ba=Date;Ht.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(){Ma.setUTCDate.apply(this._,arguments)},setDay:function(){Ma.setUTCDay.apply(this._,arguments)},setFullYear:function(){Ma.setUTCFullYear.apply(this._,arguments)},setHours:function(){Ma.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Ma.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Ma.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Ma.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Ma.setUTCSeconds.apply(this._,arguments)},setTime:function(){Ma.setTime.apply(this._,arguments)}};var Ma=Date.prototype;xa.year=Vt(function(t){return t=xa.day(t),t.setMonth(0,1),t},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t){return t.getFullYear()}),xa.years=xa.year.range,xa.years.utc=xa.year.utc.range,xa.day=Vt(function(t){var n=new ba(2e3,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n},function(t,n){t.setDate(t.getDate()+n)},function(t){return t.getDate()-1}),xa.days=xa.day.range,xa.days.utc=xa.day.utc.range,xa.dayOfYear=function(t){var n=xa.year(t);return Math.floor((t-n-6e4*(t.getTimezoneOffset()-n.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(t,n){n=7-n;var r=xa[t]=Vt(function(t){return(t=xa.day(t)).setDate(t.getDate()-(t.getDay()+n)%7),t},function(t,n){t.setDate(t.getDate()+7*Math.floor(n))},function(t){var r=xa.year(t).getDay();return Math.floor((xa.dayOfYear(t)+(r+n)%7)/7)-(r!==n)});xa[t+"s"]=r.range,xa[t+"s"].utc=r.utc.range,xa[t+"OfYear"]=function(t){var r=xa.year(t).getDay();return Math.floor((xa.dayOfYear(t)+(r+n)%7)/7)}}),xa.week=xa.sunday,xa.weeks=xa.sunday.range,xa.weeks.utc=xa.sunday.utc.range,xa.weekOfYear=xa.sundayOfYear;var wa={"-":"",_:" ",0:"0"},_a=/^\s*\d+/,Ea=/^%/;pu.locale=function(t){return{numberFormat:Yt(t),timeFormat:$t(t)}};var Sa=pu.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"]});pu.format=Sa.numberFormat,pu.geo={},dn.prototype={s:0,t:0,add:function(t){vn(t,this.t,Aa),vn(Aa.s,this.s,this),this.s?this.t+=Aa.t:this.s=Aa.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var Aa=new dn;pu.geo.stream=function(t,n){t&&ka.hasOwnProperty(t.type)?ka[t.type](t,n):yn(t,n)};var ka={Feature:function(t,n){yn(t.geometry,n)},FeatureCollection:function(t,n){for(var r=t.features,e=-1,i=r.length;++e<i;)yn(r[e].geometry,n)}},Na={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var r=t.coordinates,e=-1,i=r.length;++e<i;)t=r[e],n.point(t[0],t[1],t[2])},LineString:function(t,n){mn(t.coordinates,n,0)},MultiLineString:function(t,n){for(var r=t.coordinates,e=-1,i=r.length;++e<i;)mn(r[e],n,0);
12},Polygon:function(t,n){xn(t.coordinates,n)},MultiPolygon:function(t,n){for(var r=t.coordinates,e=-1,i=r.length;++e<i;)xn(r[e],n)},GeometryCollection:function(t,n){for(var r=t.geometries,e=-1,i=r.length;++e<i;)yn(r[e],n)}};pu.geo.area=function(t){return ja=0,pu.geo.stream(t,Ta),ja};var ja,Ca=new dn,Ta={sphere:function(){ja+=4*Hu},point:A,lineStart:A,lineEnd:A,polygonStart:function(){Ca.reset(),Ta.lineStart=bn},polygonEnd:function(){var t=2*Ca;ja+=t<0?4*Hu+t:t,Ta.lineStart=Ta.lineEnd=Ta.point=A}};pu.geo.bounds=function(){function t(t,n){x.push(b=[l=t,h=t]),n<s&&(s=n),n>p&&(p=n)}function n(n,r){var e=Mn([n*Wu,r*Wu]);if(y){var i=_n(y,e),o=[i[1],-i[0],0],u=_n(o,i);An(u),u=kn(u);var c=n-g,f=c>0?1:-1,d=u[0]*Xu*f,v=Su(c)>180;if(v^(f*g<d&&d<f*n)){var m=u[1]*Xu;m>p&&(p=m)}else if(d=(d+360)%360-180,v^(f*g<d&&d<f*n)){var m=-u[1]*Xu;m<s&&(s=m)}else r<s&&(s=r),r>p&&(p=r);v?n<g?a(l,n)>a(l,h)&&(h=n):a(n,h)>a(l,h)&&(l=n):h>=l?(n<l&&(l=n),n>h&&(h=n)):n>g?a(l,n)>a(l,h)&&(h=n):a(n,h)>a(l,h)&&(l=n)}else t(n,r);y=e,g=n}function r(){M.point=n}function e(){b[0]=l,b[1]=h,M.point=t,y=null}function i(t,r){if(y){var e=t-g;m+=Su(e)>180?e+(e>0?360:-360):e}else d=t,v=r;Ta.point(t,r),n(t,r)}function o(){Ta.lineStart()}function u(){i(d,v),Ta.lineEnd(),Su(m)>Yu&&(l=-(h=180)),b[0]=l,b[1]=h,y=null}function a(t,n){return(n-=t)<0?n+360:n}function c(t,n){return t[0]-n[0]}function f(t,n){return n[0]<=n[1]?n[0]<=t&&t<=n[1]:t<n[0]||n[1]<t}var l,s,h,p,g,d,v,y,m,x,b,M={point:t,lineStart:r,lineEnd:e,polygonStart:function(){M.point=i,M.lineStart=o,M.lineEnd=u,m=0,Ta.polygonStart()},polygonEnd:function(){Ta.polygonEnd(),M.point=t,M.lineStart=r,M.lineEnd=e,Ca<0?(l=-(h=180),s=-(p=90)):m>Yu?p=90:m<-Yu&&(s=-90),b[0]=l,b[1]=h}};return function(t){p=h=-(l=s=1/0),x=[],pu.geo.stream(t,M);var n=x.length;if(n){x.sort(c);for(var r,e=1,i=x[0],o=[i];e<n;++e)r=x[e],f(r[0],i)||f(r[1],i)?(a(i[0],r[1])>a(i[0],i[1])&&(i[1]=r[1]),a(r[0],i[1])>a(i[0],i[1])&&(i[0]=r[0])):o.push(i=r);for(var u,r,g=-(1/0),n=o.length-1,e=0,i=o[n];e<=n;i=r,++e)r=o[e],(u=a(i[1],r[0]))>g&&(g=u,l=r[0],h=i[1])}return x=b=null,l===1/0||s===1/0?[[NaN,NaN],[NaN,NaN]]:[[l,s],[h,p]]}}(),pu.geo.centroid=function(t){Oa=Ra=Pa=La=za=Ua=qa=Da=Ia=Ba=Ya=0,pu.geo.stream(t,Fa);var n=Ia,r=Ba,e=Ya,i=n*n+r*r+e*e;return i<Fu&&(n=Ua,r=qa,e=Da,Ra<Yu&&(n=Pa,r=La,e=za),i=n*n+r*r+e*e,i<Fu)?[NaN,NaN]:[Math.atan2(r,n)*Xu,ut(e/Math.sqrt(i))*Xu]};var Oa,Ra,Pa,La,za,Ua,qa,Da,Ia,Ba,Ya,Fa={sphere:A,point:jn,lineStart:Tn,lineEnd:On,polygonStart:function(){Fa.lineStart=Rn},polygonEnd:function(){Fa.lineStart=Tn}},Ha=Dn(Ln,Fn,Vn,[-Hu,-Hu/2]),Va=1e9;pu.geo.clipExtent=function(){var t,n,r,e,i,o,u={stream:function(t){return i&&(i.valid=!1),i=o(t),i.valid=!0,i},extent:function(a){return arguments.length?(o=Xn(t=+a[0][0],n=+a[0][1],r=+a[1][0],e=+a[1][1]),i&&(i.valid=!1,i=null),u):[[t,n],[r,e]]}};return u.extent([[0,0],[960,500]])},(pu.geo.conicEqualArea=function(){return Jn(Gn)}).raw=Gn,pu.geo.albers=function(){return pu.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},pu.geo.albersUsa=function(){function t(t){var o=t[0],u=t[1];return n=null,r(o,u),n||(e(o,u),n)||i(o,u),n}var n,r,e,i,o=pu.geo.albers(),u=pu.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a=pu.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(t,r){n=[t,r]}};return t.invert=function(t){var n=o.scale(),r=o.translate(),e=(t[0]-r[0])/n,i=(t[1]-r[1])/n;return(i>=.12&&i<.234&&e>=-.425&&e<-.214?u:i>=.166&&i<.234&&e>=-.214&&e<-.115?a:o).invert(t)},t.stream=function(t){var n=o.stream(t),r=u.stream(t),e=a.stream(t);return{point:function(t,i){n.point(t,i),r.point(t,i),e.point(t,i)},sphere:function(){n.sphere(),r.sphere(),e.sphere()},lineStart:function(){n.lineStart(),r.lineStart(),e.lineStart()},lineEnd:function(){n.lineEnd(),r.lineEnd(),e.lineEnd()},polygonStart:function(){n.polygonStart(),r.polygonStart(),e.polygonStart()},polygonEnd:function(){n.polygonEnd(),r.polygonEnd(),e.polygonEnd()}}},t.precision=function(n){return arguments.length?(o.precision(n),u.precision(n),a.precision(n),t):o.precision()},t.scale=function(n){return arguments.length?(o.scale(n),u.scale(.35*n),a.scale(n),t.translate(o.translate())):o.scale()},t.translate=function(n){if(!arguments.length)return o.translate();var f=o.scale(),l=+n[0],s=+n[1];return r=o.translate(n).clipExtent([[l-.455*f,s-.238*f],[l+.455*f,s+.238*f]]).stream(c).point,e=u.translate([l-.307*f,s+.201*f]).clipExtent([[l-.425*f+Yu,s+.12*f+Yu],[l-.214*f-Yu,s+.234*f-Yu]]).stream(c).point,i=a.translate([l-.205*f,s+.212*f]).clipExtent([[l-.214*f+Yu,s+.166*f+Yu],[l-.115*f-Yu,s+.234*f-Yu]]).stream(c).point,t},t.scale(1070)};var Za,$a,Wa,Xa,Ja,Ga,Ka={point:A,lineStart:A,lineEnd:A,polygonStart:function(){$a=0,Ka.lineStart=Kn},polygonEnd:function(){Ka.lineStart=Ka.lineEnd=Ka.point=A,Za+=Su($a/2)}},Qa={point:Qn,lineStart:A,lineEnd:A,polygonStart:A,polygonEnd:A},tc={point:rr,lineStart:er,lineEnd:ir,polygonStart:function(){tc.lineStart=or},polygonEnd:function(){tc.point=rr,tc.lineStart=er,tc.lineEnd=ir}};pu.geo.path=function(){function t(t){return t&&("function"==typeof a&&o.pointRadius(+a.apply(this,arguments)),u&&u.valid||(u=i(o)),pu.geo.stream(t,u)),o.result()}function n(){return u=null,t}var r,e,i,o,u,a=4.5;return t.area=function(t){return Za=0,pu.geo.stream(t,i(Ka)),Za},t.centroid=function(t){return Pa=La=za=Ua=qa=Da=Ia=Ba=Ya=0,pu.geo.stream(t,i(tc)),Ya?[Ia/Ya,Ba/Ya]:Da?[Ua/Da,qa/Da]:za?[Pa/za,La/za]:[NaN,NaN]},t.bounds=function(t){return Ja=Ga=-(Wa=Xa=1/0),pu.geo.stream(t,i(Qa)),[[Wa,Xa],[Ja,Ga]]},t.projection=function(t){return arguments.length?(i=(r=t)?t.stream||cr(t):_,n()):r},t.context=function(t){return arguments.length?(o=null==(e=t)?new tr:new ur(t),"function"!=typeof a&&o.pointRadius(a),n()):e},t.pointRadius=function(n){return arguments.length?(a="function"==typeof n?n:(o.pointRadius(+n),+n),t):a},t.projection(pu.geo.albersUsa()).context(null)},pu.geo.transform=function(t){return{stream:function(n){var r=new fr(n);for(var e in t)r[e]=t[e];return r}}},fr.prototype={point:function(t,n){this.stream.point(t,n)},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()}},pu.geo.projection=sr,pu.geo.projectionMutator=hr,(pu.geo.equirectangular=function(){return sr(gr)}).raw=gr.invert=gr,pu.geo.rotation=function(t){function n(n){return n=t(n[0]*Wu,n[1]*Wu),n[0]*=Xu,n[1]*=Xu,n}return t=vr(t[0]%360*Wu,t[1]*Wu,t.length>2?t[2]*Wu:0),n.invert=function(n){return n=t.invert(n[0]*Wu,n[1]*Wu),n[0]*=Xu,n[1]*=Xu,n},n},dr.invert=gr,pu.geo.circle=function(){function t(){var t="function"==typeof e?e.apply(this,arguments):e,n=vr(-t[0]*Wu,-t[1]*Wu,0).invert,i=[];return r(null,null,1,{point:function(t,r){i.push(t=n(t,r)),t[0]*=Xu,t[1]*=Xu}}),{type:"Polygon",coordinates:[i]}}var n,r,e=[0,0],i=6;return t.origin=function(n){return arguments.length?(e=n,t):e},t.angle=function(e){return arguments.length?(r=br((n=+e)*Wu,i*Wu),t):n},t.precision=function(e){return arguments.length?(r=br(n*Wu,(i=+e)*Wu),t):i},t.angle(90)},pu.geo.distance=function(t,n){var r,e=(n[0]-t[0])*Wu,i=t[1]*Wu,o=n[1]*Wu,u=Math.sin(e),a=Math.cos(e),c=Math.sin(i),f=Math.cos(i),l=Math.sin(o),s=Math.cos(o);return Math.atan2(Math.sqrt((r=s*u)*r+(r=f*l-c*s*a)*r),c*l+f*s*a)},pu.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:n()}}function n(){return pu.range(Math.ceil(o/v)*v,i,v).map(h).concat(pu.range(Math.ceil(f/y)*y,c,y).map(p)).concat(pu.range(Math.ceil(e/g)*g,r,g).filter(function(t){return Su(t%v)>Yu}).map(l)).concat(pu.range(Math.ceil(a/d)*d,u,d).filter(function(t){return Su(t%y)>Yu}).map(s))}var r,e,i,o,u,a,c,f,l,s,h,p,g=10,d=g,v=90,y=360,m=2.5;return t.lines=function(){return n().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[h(o).concat(p(c).slice(1),h(i).reverse().slice(1),p(f).reverse().slice(1))]}},t.extent=function(n){return arguments.length?t.majorExtent(n).minorExtent(n):t.minorExtent()},t.majorExtent=function(n){return arguments.length?(o=+n[0][0],i=+n[1][0],f=+n[0][1],c=+n[1][1],o>i&&(n=o,o=i,i=n),f>c&&(n=f,f=c,c=n),t.precision(m)):[[o,f],[i,c]]},t.minorExtent=function(n){return arguments.length?(e=+n[0][0],r=+n[1][0],a=+n[0][1],u=+n[1][1],e>r&&(n=e,e=r,r=n),a>u&&(n=a,a=u,u=n),t.precision(m)):[[e,a],[r,u]]},t.step=function(n){return arguments.length?t.majorStep(n).minorStep(n):t.minorStep()},t.majorStep=function(n){return arguments.length?(v=+n[0],y=+n[1],t):[v,y]},t.minorStep=function(n){return arguments.length?(g=+n[0],d=+n[1],t):[g,d]},t.precision=function(n){return arguments.length?(m=+n,l=wr(a,u,90),s=_r(e,r,m),h=wr(f,c,90),p=_r(o,i,m),t):m},t.majorExtent([[-180,-90+Yu],[180,90-Yu]]).minorExtent([[-180,-80-Yu],[180,80+Yu]])},pu.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[n||e.apply(this,arguments),r||i.apply(this,arguments)]}}var n,r,e=Er,i=Sr;return t.distance=function(){return pu.geo.distance(n||e.apply(this,arguments),r||i.apply(this,arguments))},t.source=function(r){return arguments.length?(e=r,n="function"==typeof r?null:r,t):e},t.target=function(n){return arguments.length?(i=n,r="function"==typeof n?null:n,t):i},t.precision=function(){return arguments.length?t:0},t},pu.geo.interpolate=function(t,n){return Ar(t[0]*Wu,t[1]*Wu,n[0]*Wu,n[1]*Wu)},pu.geo.length=function(t){return nc=0,pu.geo.stream(t,rc),nc};var nc,rc={sphere:A,point:A,lineStart:kr,lineEnd:A,polygonStart:A,polygonEnd:A},ec=Nr(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(pu.geo.azimuthalEqualArea=function(){return sr(ec)}).raw=ec;var ic=Nr(function(t){var n=Math.acos(t);return n&&n/Math.sin(n)},_);(pu.geo.azimuthalEquidistant=function(){return sr(ic)}).raw=ic,(pu.geo.conicConformal=function(){return Jn(jr)}).raw=jr,(pu.geo.conicEquidistant=function(){return Jn(Cr)}).raw=Cr;var oc=Nr(function(t){return 1/t},Math.atan);(pu.geo.gnomonic=function(){return sr(oc)}).raw=oc,Tr.invert=function(t,n){return[t,2*Math.atan(Math.exp(n))-$u]},(pu.geo.mercator=function(){return Or(Tr)}).raw=Tr;var uc=Nr(function(){return 1},Math.asin);(pu.geo.orthographic=function(){return sr(uc)}).raw=uc;var ac=Nr(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(pu.geo.stereographic=function(){return sr(ac)}).raw=ac,Rr.invert=function(t,n){return[-n,2*Math.atan(Math.exp(t))-$u]},(pu.geo.transverseMercator=function(){var t=Or(Rr),n=t.center,r=t.rotate;return t.center=function(t){return t?n([-t[1],t[0]]):(t=n(),[t[1],-t[0]])},t.rotate=function(t){return t?r([t[0],t[1],t.length>2?t[2]+90:90]):(t=r(),[t[0],t[1],t[2]-90])},r([0,0,90])}).raw=Rr,pu.geom={},pu.geom.hull=function(t){function n(t){if(t.length<3)return[];var n,i=Tt(r),o=Tt(e),u=t.length,a=[],c=[];for(n=0;n<u;n++)a.push([+i.call(this,t[n],n),+o.call(this,t[n],n),n]);for(a.sort(Ur),n=0;n<u;n++)c.push([a[n][0],-a[n][1]]);var f=zr(a),l=zr(c),s=l[0]===f[0],h=l[l.length-1]===f[f.length-1],p=[];for(n=f.length-1;n>=0;--n)p.push(t[a[f[n]][2]]);for(n=+s;n<l.length-h;++n)p.push(t[a[l[n]][2]]);return p}var r=Pr,e=Lr;return arguments.length?n(t):(n.x=function(t){return arguments.length?(r=t,n):r},n.y=function(t){return arguments.length?(e=t,n):e},n)},pu.geom.polygon=function(t){return Cu(t,cc),t};var cc=pu.geom.polygon.prototype=[];cc.area=function(){for(var t,n=-1,r=this.length,e=this[r-1],i=0;++n<r;)t=e,e=this[n],i+=t[1]*e[0]-t[0]*e[1];return.5*i},cc.centroid=function(t){var n,r,e=-1,i=this.length,o=0,u=0,a=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++e<i;)n=a,a=this[e],r=n[0]*a[1]-a[0]*n[1],o+=(n[0]+a[0])*r,u+=(n[1]+a[1])*r;return[o*t,u*t]},cc.clip=function(t){for(var n,r,e,i,o,u,a=Ir(t),c=-1,f=this.length-Ir(this),l=this[f-1];++c<f;){for(n=t.slice(),t.length=0,i=this[c],o=n[(e=n.length-a)-1],r=-1;++r<e;)u=n[r],qr(u,l,i)?(qr(o,l,i)||t.push(Dr(o,u,l,i)),t.push(u)):qr(o,l,i)&&t.push(Dr(o,u,l,i)),o=u;a&&t.push(t[0]),l=i}return t};var fc,lc,sc,hc,pc,gc=[],dc=[];Wr.prototype.prepare=function(){for(var t,n=this.edges,r=n.length;r--;)t=n[r].edge,t.b&&t.a||n.splice(r,1);return n.sort(Jr),n.length},ue.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(t,n){var r,e,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;r=t}else this._?(t=se(this._),n.P=null,n.N=t,t.P=t.L=n,r=t):(n.P=n.N=null,this._=n,r=null);for(n.L=n.R=null,n.U=r,n.C=!0,t=n;r&&r.C;)e=r.U,r===e.L?(i=e.R,i&&i.C?(r.C=i.C=!1,e.C=!0,t=e):(t===r.R&&(fe(this,r),t=r,r=t.U),r.C=!1,e.C=!0,le(this,e))):(i=e.L,i&&i.C?(r.C=i.C=!1,e.C=!0,t=e):(t===r.L&&(le(this,r),t=r,r=t.U),r.C=!1,e.C=!0,fe(this,e))),r=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,r,e,i=t.U,o=t.L,u=t.R;if(r=o?u?se(u):o:u,i?i.L===t?i.L=r:i.R=r:this._=r,o&&u?(e=r.C,r.C=t.C,r.L=o,o.U=r,r!==u?(i=r.U,r.U=t.U,t=r.R,i.L=t,r.R=u,u.U=r):(r.U=i,i=r,t=r.R)):(e=t.C,t=r),t&&(t.U=i),!e){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(n=i.R,n.C&&(n.C=!1,i.C=!0,fe(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,le(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,fe(this,i),t=this._;break}}else if(n=i.L,n.C&&(n.C=!1,i.C=!0,le(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,fe(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,le(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},pu.geom.voronoi=function(t){function n(t){var n=new Array(t.length),e=a[0][0],i=a[0][1],o=a[1][0],u=a[1][1];return he(r(t),a).cells.forEach(function(r,a){var c=r.edges,f=r.site,l=n[a]=c.length?c.map(function(t){var n=t.start();return[n.x,n.y]}):f.x>=e&&f.x<=o&&f.y>=i&&f.y<=u?[[e,u],[o,u],[o,i],[e,i]]:[];l.point=t[a]}),n}function r(t){return t.map(function(t,n){return{x:Math.round(o(t,n)/Yu)*Yu,y:Math.round(u(t,n)/Yu)*Yu,i:n}})}var e=Pr,i=Lr,o=e,u=i,a=vc;return t?n(t):(n.links=function(t){return he(r(t)).edges.filter(function(t){return t.l&&t.r}).map(function(n){return{source:t[n.l.i],target:t[n.r.i]}})},n.triangles=function(t){var n=[];return he(r(t)).cells.forEach(function(r,e){for(var i,o,u=r.site,a=r.edges.sort(Jr),c=-1,f=a.length,l=a[f-1].edge,s=l.l===u?l.r:l.l;++c<f;)i=l,o=s,l=a[c].edge,s=l.l===u?l.r:l.l,e<o.i&&e<s.i&&ge(u,o,s)<0&&n.push([t[e],t[o.i],t[s.i]])}),n},n.x=function(t){return arguments.length?(o=Tt(e=t),n):e},n.y=function(t){return arguments.length?(u=Tt(i=t),n):i},n.clipExtent=function(t){return arguments.length?(a=null==t?vc:t,n):a===vc?null:a},n.size=function(t){return arguments.length?n.clipExtent(t&&[[0,0],t]):a===vc?null:a&&a[1]},n)};var vc=[[-1e6,-1e6],[1e6,1e6]];pu.geom.delaunay=function(t){return pu.geom.voronoi().triangles(t)},pu.geom.quadtree=function(t,n,r,e,i){function o(t){function o(t,n,r,e,i,o,u,a){if(!isNaN(r)&&!isNaN(e))if(t.leaf){var c=t.x,l=t.y;if(null!=c)if(Su(c-r)+Su(l-e)<.01)f(t,n,r,e,i,o,u,a);else{var s=t.point;t.x=t.y=t.point=null,f(t,s,c,l,i,o,u,a),f(t,n,r,e,i,o,u,a)}else t.x=r,t.y=e,t.point=n}else f(t,n,r,e,i,o,u,a)}function f(t,n,r,e,i,u,a,c){var f=.5*(i+a),l=.5*(u+c),s=r>=f,h=e>=l,p=h<<1|s;t.leaf=!1,t=t.nodes[p]||(t.nodes[p]=ye()),s?i=f:a=f,h?u=l:c=l,o(t,n,r,e,i,u,a,c)}var l,s,h,p,g,d,v,y,m,x=Tt(a),b=Tt(c);if(null!=n)d=n,v=r,y=e,m=i;else if(y=m=-(d=v=1/0),s=[],h=[],g=t.length,u)for(p=0;p<g;++p)l=t[p],l.x<d&&(d=l.x),l.y<v&&(v=l.y),l.x>y&&(y=l.x),l.y>m&&(m=l.y),s.push(l.x),h.push(l.y);else for(p=0;p<g;++p){var M=+x(l=t[p],p),w=+b(l,p);M<d&&(d=M),w<v&&(v=w),M>y&&(y=M),w>m&&(m=w),s.push(M),h.push(w)}var _=y-d,E=m-v;_>E?m=v+_:y=d+E;var S=ye();if(S.add=function(t){o(S,t,+x(t,++p),+b(t,p),d,v,y,m)},S.visit=function(t){me(t,S,d,v,y,m)},S.find=function(t){return xe(S,t[0],t[1],d,v,y,m)},p=-1,null==n){for(;++p<g;)o(S,t[p],s[p],h[p],d,v,y,m);--p}else t.forEach(S.add);return s=h=t=l=null,S}var u,a=Pr,c=Lr;return(u=arguments.length)?(a=de,c=ve,3===u&&(i=r,e=n,r=n=0),o(t)):(o.x=function(t){return arguments.length?(a=t,o):a},o.y=function(t){return arguments.length?(c=t,o):c},o.extent=function(t){return arguments.length?(null==t?n=r=e=i=null:(n=+t[0][0],r=+t[0][1],e=+t[1][0],i=+t[1][1]),o):null==n?null:[[n,r],[e,i]]},o.size=function(t){return arguments.length?(null==t?n=r=e=i=null:(n=r=0,e=+t[0],i=+t[1]),o):null==n?null:[e-n,i-r]},o)},pu.interpolateRgb=be,pu.interpolateObject=Me,pu.interpolateNumber=we,pu.interpolateString=_e;var yc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,mc=new RegExp(yc.source,"g");pu.interpolate=Ee,pu.interpolators=[function(t,n){var r=typeof n;return("string"===r?la.has(n.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(n)?be:_e:n instanceof st?be:Array.isArray(n)?Se:"object"===r&&isNaN(n)?Me:we)(t,n)}],pu.interpolateArray=Se;var xc=function(){return _},bc=pu.map({linear:xc,poly:Oe,quad:function(){return je},cubic:function(){return Ce},sin:function(){return Re},exp:function(){return Pe},circle:function(){return Le},elastic:ze,back:Ue,bounce:function(){return qe}}),Mc=pu.map({"in":_,out:ke,"in-out":Ne,"out-in":function(t){return Ne(ke(t))}});pu.ease=function(t){var n=t.indexOf("-"),r=n>=0?t.slice(0,n):t,e=n>=0?t.slice(n+1):"in";return r=bc.get(r)||xc,e=Mc.get(e)||_,Ae(e(r.apply(null,gu.call(arguments,1))))},pu.interpolateHcl=De,pu.interpolateHsl=Ie,pu.interpolateLab=Be,pu.interpolateRound=Ye,pu.transform=function(t){var n=vu.createElementNS(pu.ns.prefix.svg,"g");return(pu.transform=function(t){if(null!=t){n.setAttribute("transform",t);var r=n.transform.baseVal.consolidate()}return new Fe(r?r.matrix:wc)})(t)},Fe.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var wc={a:1,b:0,c:0,d:1,e:0,f:0};pu.interpolateTransform=Ke,pu.layout={},pu.layout.bundle=function(){return function(t){for(var n=[],r=-1,e=t.length;++r<e;)n.push(ni(t[r]));return n}},pu.layout.chord=function(){function t(){var t,f,s,h,p,g={},d=[],v=pu.range(o),y=[];for(r=[],e=[],t=0,h=-1;++h<o;){for(f=0,p=-1;++p<o;)f+=i[h][p];d.push(f),y.push(pu.range(o)),t+=f}for(u&&v.sort(function(t,n){return u(d[t],d[n])}),a&&y.forEach(function(t,n){t.sort(function(t,r){return a(i[n][t],i[n][r])})}),t=(Vu-l*o)/t,f=0,h=-1;++h<o;){for(s=f,p=-1;++p<o;){var m=v[h],x=y[m][p],b=i[m][x],M=f,w=f+=b*t;g[m+"-"+x]={index:m,subindex:x,startAngle:M,endAngle:w,value:b}}e[m]={index:m,startAngle:s,endAngle:f,value:d[m]},f+=l}for(h=-1;++h<o;)for(p=h-1;++p<o;){var _=g[h+"-"+p],E=g[p+"-"+h];(_.value||E.value)&&r.push(_.value<E.value?{source:E,target:_}:{source:_,target:E})}c&&n()}function n(){r.sort(function(t,n){return c((t.source.value+t.target.value)/2,(n.source.value+n.target.value)/2)})}var r,e,i,o,u,a,c,f={},l=0;return f.matrix=function(t){return arguments.length?(o=(i=t)&&i.length,r=e=null,f):i},f.padding=function(t){return arguments.length?(l=t,r=e=null,f):l},f.sortGroups=function(t){return arguments.length?(u=t,r=e=null,f):u},f.sortSubgroups=function(t){return arguments.length?(a=t,r=null,f):a},f.sortChords=function(t){return arguments.length?(c=t,r&&n(),f):c},f.chords=function(){return r||t(),r},f.groups=function(){return e||t(),e},f},pu.layout.force=function(){function t(t){return function(n,r,e,i){if(n.point!==t){var o=n.cx-t.x,u=n.cy-t.y,a=i-r,c=o*o+u*u;if(a*a/y<c){if(c<d){var f=n.charge/c;t.px-=o*f,t.py-=u*f}return!0}if(n.point&&c&&c<d){var f=n.pointCharge/c;t.px-=o*f,t.py-=u*f}}return!n.charge}}function n(t){t.px=pu.event.x,t.py=pu.event.y,c.resume()}var r,e,i,o,u,a,c={},f=pu.dispatch("start","tick","end"),l=[1,1],s=.9,h=_c,p=Ec,g=-30,d=Sc,v=.1,y=.64,m=[],x=[];return c.tick=function(){if((i*=.99)<.005)return r=null,f.end({type:"end",alpha:i=0}),!0;var n,e,c,h,p,d,y,b,M,w=m.length,_=x.length;for(e=0;e<_;++e)c=x[e],h=c.source,p=c.target,b=p.x-h.x,M=p.y-h.y,(d=b*b+M*M)&&(d=i*u[e]*((d=Math.sqrt(d))-o[e])/d,b*=d,M*=d,p.x-=b*(y=h.weight+p.weight?h.weight/(h.weight+p.weight):.5),p.y-=M*y,h.x+=b*(y=1-y),h.y+=M*y);if((y=i*v)&&(b=l[0]/2,M=l[1]/2,e=-1,y))for(;++e<w;)c=m[e],c.x+=(b-c.x)*y,c.y+=(M-c.y)*y;if(g)for(ci(n=pu.geom.quadtree(m),i,a),e=-1;++e<w;)(c=m[e]).fixed||n.visit(t(c));for(e=-1;++e<w;)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);f.tick({type:"tick",alpha:i})},c.nodes=function(t){return arguments.length?(m=t,c):m},c.links=function(t){return arguments.length?(x=t,c):x},c.size=function(t){return arguments.length?(l=t,c):l},c.linkDistance=function(t){return arguments.length?(h="function"==typeof t?t:+t,c):h},c.distance=c.linkDistance,c.linkStrength=function(t){return arguments.length?(p="function"==typeof t?t:+t,c):p},c.friction=function(t){return arguments.length?(s=+t,c):s},c.charge=function(t){return arguments.length?(g="function"==typeof t?t:+t,c):g},c.chargeDistance=function(t){return arguments.length?(d=t*t,c):Math.sqrt(d)},c.gravity=function(t){return arguments.length?(v=+t,c):v},c.theta=function(t){return arguments.length?(y=t*t,c):Math.sqrt(y)},c.alpha=function(t){return arguments.length?(t=+t,i?t>0?i=t:(r.c=null,r.t=NaN,r=null,f.end({type:"end",alpha:i=0})):t>0&&(f.start({type:"start",alpha:i=t}),r=zt(c.tick)),c):i},c.start=function(){function t(t,e){if(!r){for(r=new Array(i),c=0;c<i;++c)r[c]=[];for(c=0;c<f;++c){var o=x[c];r[o.source.index].push(o.target),r[o.target.index].push(o.source)}}for(var u,a=r[n],c=-1,l=a.length;++c<l;)if(!isNaN(u=a[c][t]))return u;return Math.random()*e}var n,r,e,i=m.length,f=x.length,s=l[0],d=l[1];for(n=0;n<i;++n)(e=m[n]).index=n,e.weight=0;for(n=0;n<f;++n)e=x[n],"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(n=0;n<i;++n)e=m[n],isNaN(e.x)&&(e.x=t("x",s)),isNaN(e.y)&&(e.y=t("y",d)),isNaN(e.px)&&(e.px=e.x),isNaN(e.py)&&(e.py=e.y);if(o=[],"function"==typeof h)for(n=0;n<f;++n)o[n]=+h.call(this,x[n],n);else for(n=0;n<f;++n)o[n]=h;if(u=[],"function"==typeof p)for(n=0;n<f;++n)u[n]=+p.call(this,x[n],n);else for(n=0;n<f;++n)u[n]=p;if(a=[],"function"==typeof g)for(n=0;n<i;++n)a[n]=+g.call(this,m[n],n);else for(n=0;n<i;++n)a[n]=g;return c.resume()},c.resume=function(){return c.alpha(.1)},c.stop=function(){return c.alpha(0)},c.drag=function(){return e||(e=pu.behavior.drag().origin(_).on("dragstart.force",ii).on("drag.force",n).on("dragend.force",oi)),arguments.length?void this.on("mouseover.force",ui).on("mouseout.force",ai).call(e):e},pu.rebind(c,f,"on")};var _c=20,Ec=1,Sc=1/0;pu.layout.hierarchy=function(){function t(i){var o,u=[i],a=[];for(i.depth=0;null!=(o=u.pop());)if(a.push(o),(f=r.call(t,o,o.depth))&&(c=f.length)){for(var c,f,l;--c>=0;)u.push(l=f[c]),l.parent=o,l.depth=o.depth+1;e&&(o.value=0),o.children=f}else e&&(o.value=+e.call(t,o,o.depth)||0),delete o.children;return si(i,function(t){var r,i;n&&(r=t.children)&&r.sort(n),e&&(i=t.parent)&&(i.value+=t.value)}),a}var n=gi,r=hi,e=pi;return t.sort=function(r){return arguments.length?(n=r,t):n},t.children=function(n){return arguments.length?(r=n,t):r},t.value=function(n){return arguments.length?(e=n,t):e},t.revalue=function(n){return e&&(li(n,function(t){t.children&&(t.value=0)}),si(n,function(n){var r;n.children||(n.value=+e.call(t,n,n.depth)||0),(r=n.parent)&&(r.value+=n.value)})),n},t},pu.layout.partition=function(){function t(n,r,e,i){var o=n.children;if(n.x=r,n.y=n.depth*i,n.dx=e,n.dy=i,o&&(u=o.length)){var u,a,c,f=-1;for(e=n.value?e/n.value:0;++f<u;)t(a=o[f],r,c=a.value*e,i),r+=c}}function n(t){var r=t.children,e=0;if(r&&(i=r.length))for(var i,o=-1;++o<i;)e=Math.max(e,n(r[o]));return 1+e}function r(r,o){var u=e.call(this,r,o);return t(u[0],0,i[0],i[1]/n(u[0])),u}var e=pu.layout.hierarchy(),i=[1,1];return r.size=function(t){return arguments.length?(i=t,r):i},fi(r,e)},pu.layout.pie=function(){function t(u){var a,c=u.length,f=u.map(function(r,e){return+n.call(t,r,e)}),l=+("function"==typeof e?e.apply(this,arguments):e),s=("function"==typeof i?i.apply(this,arguments):i)-l,h=Math.min(Math.abs(s)/c,+("function"==typeof o?o.apply(this,arguments):o)),p=h*(s<0?-1:1),g=pu.sum(f),d=g?(s-c*p)/g:0,v=pu.range(c),y=[];return null!=r&&v.sort(r===Ac?function(t,n){return f[n]-f[t]}:function(t,n){return r(u[t],u[n])}),v.forEach(function(t){y[t]={data:u[t],value:a=f[t],startAngle:l,endAngle:l+=a*d+p,padAngle:h}}),y}var n=Number,r=Ac,e=0,i=Vu,o=0;return t.value=function(r){return arguments.length?(n=r,t):n},t.sort=function(n){return arguments.length?(r=n,t):r},t.startAngle=function(n){return arguments.length?(e=n,t):e},t.endAngle=function(n){return arguments.length?(i=n,t):i},t.padAngle=function(n){return arguments.length?(o=n,t):o},t};var Ac={};pu.layout.stack=function(){function t(a,c){if(!(h=a.length))return a;var f=a.map(function(r,e){return n.call(t,r,e)}),l=f.map(function(n){return n.map(function(n,r){return[o.call(t,n,r),u.call(t,n,r)]})}),s=r.call(t,l,c);f=pu.permute(f,s),l=pu.permute(l,s);var h,p,g,d,v=e.call(t,l,c),y=f[0].length;for(g=0;g<y;++g)for(i.call(t,f[0][g],d=v[g],l[0][g][1]),p=1;p<h;++p)i.call(t,f[p][g],d+=l[p-1][g][1],l[p][g][1]);return a}var n=_,r=xi,e=bi,i=mi,o=vi,u=yi;return t.values=function(r){return arguments.length?(n=r,t):n},t.order=function(n){return arguments.length?(r="function"==typeof n?n:kc.get(n)||xi,t):r},t.offset=function(n){return arguments.length?(e="function"==typeof n?n:Nc.get(n)||bi,t):e},t.x=function(n){return arguments.length?(o=n,t):o},t.y=function(n){return arguments.length?(u=n,t):u},t.out=function(n){return arguments.length?(i=n,t):i},t};var kc=pu.map({"inside-out":function(t){var n,r,e=t.length,i=t.map(Mi),o=t.map(wi),u=pu.range(e).sort(function(t,n){return i[t]-i[n]}),a=0,c=0,f=[],l=[];for(n=0;n<e;++n)r=u[n],a<c?(a+=o[r],f.push(r)):(c+=o[r],l.push(r));return l.reverse().concat(f)},reverse:function(t){return pu.range(t.length).reverse()},"default":xi}),Nc=pu.map({silhouette:function(t){var n,r,e,i=t.length,o=t[0].length,u=[],a=0,c=[];for(r=0;r<o;++r){for(n=0,e=0;n<i;n++)e+=t[n][r][1];e>a&&(a=e),u.push(e)}for(r=0;r<o;++r)c[r]=(a-u[r])/2;return c},wiggle:function(t){var n,r,e,i,o,u,a,c,f,l=t.length,s=t[0],h=s.length,p=[];for(p[0]=c=f=0,r=1;r<h;++r){for(n=0,i=0;n<l;++n)i+=t[n][r][1];for(n=0,o=0,a=s[r][0]-s[r-1][0];n<l;++n){for(e=0,u=(t[n][r][1]-t[n][r-1][1])/(2*a);e<n;++e)u+=(t[e][r][1]-t[e][r-1][1])/a;o+=u*t[n][r][1]}p[r]=c-=i?o/i*a:0,c<f&&(f=c)}for(r=0;r<h;++r)p[r]-=f;return p},expand:function(t){var n,r,e,i=t.length,o=t[0].length,u=1/i,a=[];for(r=0;r<o;++r){for(n=0,e=0;n<i;n++)e+=t[n][r][1];if(e)for(n=0;n<i;n++)t[n][r][1]/=e;else for(n=0;n<i;n++)t[n][r][1]=u}for(r=0;r<o;++r)a[r]=0;return a},zero:bi});pu.layout.histogram=function(){function t(t,o){for(var u,a,c=[],f=t.map(r,this),l=e.call(this,f,o),s=i.call(this,l,f,o),o=-1,h=f.length,p=s.length-1,g=n?1:1/h;++o<p;)u=c[o]=[],u.dx=s[o+1]-(u.x=s[o]),u.y=0;if(p>0)for(o=-1;++o<h;)a=f[o],a>=l[0]&&a<=l[1]&&(u=c[pu.bisect(s,a,1,p)-1],u.y+=g,u.push(t[o]));return c}var n=!0,r=Number,e=Ai,i=Ei;return t.value=function(n){return arguments.length?(r=n,t):r},t.range=function(n){return arguments.length?(e=Tt(n),t):e},t.bins=function(n){return arguments.length?(i="number"==typeof n?function(t){return Si(t,n)}:Tt(n),t):i},t.frequency=function(r){return arguments.length?(n=!!r,t):n},t},pu.layout.pack=function(){function t(t,o){var u=r.call(this,t,o),a=u[0],c=i[0],f=i[1],l=null==n?Math.sqrt:"function"==typeof n?n:function(){return n};if(a.x=a.y=0,si(a,function(t){t.r=+l(t.value)}),si(a,Ti),e){var s=e*(n?1:Math.max(2*a.r/c,2*a.r/f))/2;si(a,function(t){t.r+=s}),si(a,Ti),si(a,function(t){t.r-=s})}return Pi(a,c/2,f/2,n?1:1/Math.max(2*a.r/c,2*a.r/f)),u}var n,r=pu.layout.hierarchy().sort(ki),e=0,i=[1,1];return t.size=function(n){return arguments.length?(i=n,t):i},t.radius=function(r){return arguments.length?(n=null==r||"function"==typeof r?r:+r,t):n},t.padding=function(n){return arguments.length?(e=+n,t):e},fi(t,r)},pu.layout.tree=function(){function t(t,i){var l=u.call(this,t,i),s=l[0],h=n(s);if(si(h,r),h.parent.m=-h.z,li(h,e),f)li(s,o);else{var p=s,g=s,d=s;li(s,function(t){t.x<p.x&&(p=t),t.x>g.x&&(g=t),t.depth>d.depth&&(d=t)});var v=a(p,g)/2-p.x,y=c[0]/(g.x+a(g,p)/2+v),m=c[1]/(d.depth||1);li(s,function(t){t.x=(t.x+v)*y,t.y=t.depth*m})}return l}function n(t){for(var n,r={A:null,children:[t]},e=[r];null!=(n=e.pop());)for(var i,o=n.children,u=0,a=o.length;u<a;++u)e.push((o[u]=i={_:o[u],parent:n,children:(i=o[u].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:u}).a=i);return r.children[0]}function r(t){var n=t.children,r=t.parent.children,e=t.i?r[t.i-1]:null;if(n.length){Ii(t);var o=(n[0].z+n[n.length-1].z)/2;e?(t.z=e.z+a(t._,e._),t.m=t.z-o):t.z=o}else e&&(t.z=e.z+a(t._,e._));t.parent.A=i(t,e,t.parent.A||r[0])}function e(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function i(t,n,r){if(n){for(var e,i=t,o=t,u=n,c=i.parent.children[0],f=i.m,l=o.m,s=u.m,h=c.m;u=qi(u),i=Ui(i),u&&i;)c=Ui(c),o=qi(o),o.a=t,e=u.z+s-i.z-f+a(u._,i._),e>0&&(Di(Bi(u,t,r),t,e),f+=e,l+=e),s+=u.m,f+=i.m,h+=c.m,l+=o.m;u&&!qi(o)&&(o.t=u,o.m+=s-l),i&&!Ui(c)&&(c.t=i,c.m+=f-h,r=t)}return r}function o(t){t.x*=c[0],t.y=t.depth*c[1]}var u=pu.layout.hierarchy().sort(null).value(null),a=zi,c=[1,1],f=null;return t.separation=function(n){return arguments.length?(a=n,t):a},t.size=function(n){return arguments.length?(f=null==(c=n)?o:null,t):f?null:c},t.nodeSize=function(n){return arguments.length?(f=null==(c=n)?null:o,t):f?c:null},fi(t,u)},pu.layout.cluster=function(){function t(t,o){var u,a=n.call(this,t,o),c=a[0],f=0;si(c,function(t){var n=t.children;n&&n.length?(t.x=Fi(n),t.y=Yi(n)):(t.x=u?f+=r(t,u):0,t.y=0,u=t)});var l=Hi(c),s=Vi(c),h=l.x-r(l,s)/2,p=s.x+r(s,l)/2;return si(c,i?function(t){t.x=(t.x-c.x)*e[0],t.y=(c.y-t.y)*e[1]}:function(t){t.x=(t.x-h)/(p-h)*e[0],t.y=(1-(c.y?t.y/c.y:1))*e[1]}),a}var n=pu.layout.hierarchy().sort(null).value(null),r=zi,e=[1,1],i=!1;return t.separation=function(n){return arguments.length?(r=n,t):r},t.size=function(n){return arguments.length?(i=null==(e=n),t):i?null:e},t.nodeSize=function(n){return arguments.length?(i=null!=(e=n),t):i?e:null},fi(t,n)},pu.layout.treemap=function(){function t(t,n){for(var r,e,i=-1,o=t.length;++i<o;)e=(r=t[i]).value*(n<0?0:n),r.area=isNaN(e)||e<=0?0:e}function n(r){var o=r.children;if(o&&o.length){var u,a,c,f=s(r),l=[],h=o.slice(),g=1/0,d="slice"===p?f.dx:"dice"===p?f.dy:"slice-dice"===p?1&r.depth?f.dy:f.dx:Math.min(f.dx,f.dy);for(t(h,f.dx*f.dy/r.value),l.area=0;(c=h.length)>0;)l.push(u=h[c-1]),l.area+=u.area,"squarify"!==p||(a=e(l,d))<=g?(h.pop(),g=a):(l.area-=l.pop().area,i(l,d,f,!1),d=Math.min(f.dx,f.dy),l.length=l.area=0,g=1/0);l.length&&(i(l,d,f,!0),l.length=l.area=0),o.forEach(n)}}function r(n){var e=n.children;if(e&&e.length){var o,u=s(n),a=e.slice(),c=[];for(t(a,u.dx*u.dy/n.value),c.area=0;o=a.pop();)c.push(o),c.area+=o.area,null!=o.z&&(i(c,o.z?u.dx:u.dy,u,!a.length),c.length=c.area=0);e.forEach(r)}}function e(t,n){for(var r,e=t.area,i=0,o=1/0,u=-1,a=t.length;++u<a;)(r=t[u].area)&&(r<o&&(o=r),r>i&&(i=r));return e*=e,n*=n,e?Math.max(n*i*g/e,e/(n*o*g)):1/0}function i(t,n,r,e){var i,o=-1,u=t.length,a=r.x,f=r.y,l=n?c(t.area/n):0;if(n==r.dx){for((e||l>r.dy)&&(l=r.dy);++o<u;)i=t[o],i.x=a,i.y=f,i.dy=l,a+=i.dx=Math.min(r.x+r.dx-a,l?c(i.area/l):0);i.z=!0,i.dx+=r.x+r.dx-a,r.y+=l,r.dy-=l}else{for((e||l>r.dx)&&(l=r.dx);++o<u;)i=t[o],i.x=a,i.y=f,i.dx=l,f+=i.dy=Math.min(r.y+r.dy-f,l?c(i.area/l):0);i.z=!1,i.dy+=r.y+r.dy-f,r.x+=l,r.dx-=l}}function o(e){var i=u||a(e),o=i[0];return o.x=o.y=0,o.value?(o.dx=f[0],o.dy=f[1]):o.dx=o.dy=0,u&&a.revalue(o),t([o],o.dx*o.dy/o.value),(u?r:n)(o),h&&(u=i),i}var u,a=pu.layout.hierarchy(),c=Math.round,f=[1,1],l=null,s=Zi,h=!1,p="squarify",g=.5*(1+Math.sqrt(5));return o.size=function(t){return arguments.length?(f=t,o):f},o.padding=function(t){function n(n){var r=t.call(o,n,n.depth);return null==r?Zi(n):$i(n,"number"==typeof r?[r,r,r,r]:r)}function r(n){return $i(n,t)}if(!arguments.length)return l;var e;return s=null==(l=t)?Zi:"function"==(e=typeof t)?n:"number"===e?(t=[t,t,t,t],r):r,o},o.round=function(t){return arguments.length?(c=t?Math.round:Number,o):c!=Number},o.sticky=function(t){return arguments.length?(h=t,
13u=null,o):h},o.ratio=function(t){return arguments.length?(g=t,o):g},o.mode=function(t){return arguments.length?(p=t+"",o):p},fi(o,a)},pu.random={normal:function(t,n){var r=arguments.length;return r<2&&(n=1),r<1&&(t=0),function(){var r,e,i;do r=2*Math.random()-1,e=2*Math.random()-1,i=r*r+e*e;while(!i||i>1);return t+n*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=pu.random.normal.apply(pu,arguments);return function(){return Math.exp(t())}},bates:function(t){var n=pu.random.irwinHall(t);return function(){return n()/t}},irwinHall:function(t){return function(){for(var n=0,r=0;r<t;r++)n+=Math.random();return n}}},pu.scale={};var jc={floor:_,ceil:_};pu.scale.linear=function(){return to([0,1],[0,1],Ee,!1)};var Cc={s:1,g:1,p:1,r:1,e:1};pu.scale.log=function(){return co(pu.scale.linear().domain([0,1]),10,!0,[1,10])};var Tc=pu.format(".0e"),Oc={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};pu.scale.pow=function(){return fo(pu.scale.linear(),1,[0,1])},pu.scale.sqrt=function(){return pu.scale.pow().exponent(.5)},pu.scale.ordinal=function(){return so([],{t:"range",a:[[]]})},pu.scale.category10=function(){return pu.scale.ordinal().range(Rc)},pu.scale.category20=function(){return pu.scale.ordinal().range(Pc)},pu.scale.category20b=function(){return pu.scale.ordinal().range(Lc)},pu.scale.category20c=function(){return pu.scale.ordinal().range(zc)};var Rc=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Et),Pc=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Et),Lc=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Et),zc=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Et);pu.scale.quantile=function(){return ho([],[])},pu.scale.quantize=function(){return po(0,1,[0,1])},pu.scale.threshold=function(){return go([.5],[0,1])},pu.scale.identity=function(){return vo([0,1])},pu.svg={},pu.svg.arc=function(){function t(){var t=Math.max(0,+r.apply(this,arguments)),f=Math.max(0,+e.apply(this,arguments)),l=u.apply(this,arguments)-$u,s=a.apply(this,arguments)-$u,h=Math.abs(s-l),p=l>s?0:1;if(f<t&&(g=f,f=t,t=g),h>=Zu)return n(f,p)+(t?n(t,1-p):"")+"Z";var g,d,v,y,m,x,b,M,w,_,E,S,A=0,k=0,N=[];if((y=(+c.apply(this,arguments)||0)/2)&&(v=o===Uc?Math.sqrt(t*t+f*f):+o.apply(this,arguments),p||(k*=-1),f&&(k=ut(v/f*Math.sin(y))),t&&(A=ut(v/t*Math.sin(y)))),f){m=f*Math.cos(l+k),x=f*Math.sin(l+k),b=f*Math.cos(s-k),M=f*Math.sin(s-k);var j=Math.abs(s-l-2*k)<=Hu?0:1;if(k&&_o(m,x,b,M)===p^j){var C=(l+s)/2;m=f*Math.cos(C),x=f*Math.sin(C),b=M=null}}else m=x=0;if(t){w=t*Math.cos(s-A),_=t*Math.sin(s-A),E=t*Math.cos(l+A),S=t*Math.sin(l+A);var T=Math.abs(l-s+2*A)<=Hu?0:1;if(A&&_o(w,_,E,S)===1-p^T){var O=(l+s)/2;w=t*Math.cos(O),_=t*Math.sin(O),E=S=null}}else w=_=0;if(h>Yu&&(g=Math.min(Math.abs(f-t)/2,+i.apply(this,arguments)))>.001){d=t<f^p?0:1;var R=g,P=g;if(h<Hu){var L=null==E?[w,_]:null==b?[m,x]:Dr([m,x],[E,S],[b,M],[w,_]),z=m-L[0],U=x-L[1],q=b-L[0],D=M-L[1],I=1/Math.sin(Math.acos((z*q+U*D)/(Math.sqrt(z*z+U*U)*Math.sqrt(q*q+D*D)))/2),B=Math.sqrt(L[0]*L[0]+L[1]*L[1]);P=Math.min(g,(t-B)/(I-1)),R=Math.min(g,(f-B)/(I+1))}if(null!=b){var Y=Eo(null==E?[w,_]:[E,S],[m,x],f,R,p),F=Eo([b,M],[w,_],f,R,p);g===R?N.push("M",Y[0],"A",R,",",R," 0 0,",d," ",Y[1],"A",f,",",f," 0 ",1-p^_o(Y[1][0],Y[1][1],F[1][0],F[1][1]),",",p," ",F[1],"A",R,",",R," 0 0,",d," ",F[0]):N.push("M",Y[0],"A",R,",",R," 0 1,",d," ",F[0])}else N.push("M",m,",",x);if(null!=E){var H=Eo([m,x],[E,S],t,-P,p),V=Eo([w,_],null==b?[m,x]:[b,M],t,-P,p);g===P?N.push("L",V[0],"A",P,",",P," 0 0,",d," ",V[1],"A",t,",",t," 0 ",p^_o(V[1][0],V[1][1],H[1][0],H[1][1]),",",1-p," ",H[1],"A",P,",",P," 0 0,",d," ",H[0]):N.push("L",V[0],"A",P,",",P," 0 0,",d," ",H[0])}else N.push("L",w,",",_)}else N.push("M",m,",",x),null!=b&&N.push("A",f,",",f," 0 ",j,",",p," ",b,",",M),N.push("L",w,",",_),null!=E&&N.push("A",t,",",t," 0 ",T,",",1-p," ",E,",",S);return N.push("Z"),N.join("")}function n(t,n){return"M0,"+t+"A"+t+","+t+" 0 1,"+n+" 0,"+-t+"A"+t+","+t+" 0 1,"+n+" 0,"+t}var r=mo,e=xo,i=yo,o=Uc,u=bo,a=Mo,c=wo;return t.innerRadius=function(n){return arguments.length?(r=Tt(n),t):r},t.outerRadius=function(n){return arguments.length?(e=Tt(n),t):e},t.cornerRadius=function(n){return arguments.length?(i=Tt(n),t):i},t.padRadius=function(n){return arguments.length?(o=n==Uc?Uc:Tt(n),t):o},t.startAngle=function(n){return arguments.length?(u=Tt(n),t):u},t.endAngle=function(n){return arguments.length?(a=Tt(n),t):a},t.padAngle=function(n){return arguments.length?(c=Tt(n),t):c},t.centroid=function(){var t=(+r.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+u.apply(this,arguments)+ +a.apply(this,arguments))/2-$u;return[Math.cos(n)*t,Math.sin(n)*t]},t};var Uc="auto";pu.svg.line=function(){return So(_)};var qc=pu.map({linear:Ao,"linear-closed":ko,step:No,"step-before":jo,"step-after":Co,basis:zo,"basis-open":Uo,"basis-closed":qo,bundle:Do,cardinal:Ro,"cardinal-open":To,"cardinal-closed":Oo,monotone:Vo});qc.forEach(function(t,n){n.key=t,n.closed=/-closed$/.test(t)});var Dc=[0,2/3,1/3,0],Ic=[0,1/3,2/3,0],Bc=[0,1/6,2/3,1/6];pu.svg.line.radial=function(){var t=So(Zo);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},jo.reverse=Co,Co.reverse=jo,pu.svg.area=function(){return $o(_)},pu.svg.area.radial=function(){var t=$o(Zo);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},pu.svg.chord=function(){function t(t,a){var c=n(this,o,t,a),f=n(this,u,t,a);return"M"+c.p0+e(c.r,c.p1,c.a1-c.a0)+(r(c,f)?i(c.r,c.p1,c.r,c.p0):i(c.r,c.p1,f.r,f.p0)+e(f.r,f.p1,f.a1-f.a0)+i(f.r,f.p1,c.r,c.p0))+"Z"}function n(t,n,r,e){var i=n.call(t,r,e),o=a.call(t,i,e),u=c.call(t,i,e)-$u,l=f.call(t,i,e)-$u;return{r:o,a0:u,a1:l,p0:[o*Math.cos(u),o*Math.sin(u)],p1:[o*Math.cos(l),o*Math.sin(l)]}}function r(t,n){return t.a0==n.a0&&t.a1==n.a1}function e(t,n,r){return"A"+t+","+t+" 0 "+ +(r>Hu)+",1 "+n}function i(t,n,r,e){return"Q 0,0 "+e}var o=Er,u=Sr,a=Wo,c=bo,f=Mo;return t.radius=function(n){return arguments.length?(a=Tt(n),t):a},t.source=function(n){return arguments.length?(o=Tt(n),t):o},t.target=function(n){return arguments.length?(u=Tt(n),t):u},t.startAngle=function(n){return arguments.length?(c=Tt(n),t):c},t.endAngle=function(n){return arguments.length?(f=Tt(n),t):f},t},pu.svg.diagonal=function(){function t(t,i){var o=n.call(this,t,i),u=r.call(this,t,i),a=(o.y+u.y)/2,c=[o,{x:o.x,y:a},{x:u.x,y:a},u];return c=c.map(e),"M"+c[0]+"C"+c[1]+" "+c[2]+" "+c[3]}var n=Er,r=Sr,e=Xo;return t.source=function(r){return arguments.length?(n=Tt(r),t):n},t.target=function(n){return arguments.length?(r=Tt(n),t):r},t.projection=function(n){return arguments.length?(e=n,t):e},t},pu.svg.diagonal.radial=function(){var t=pu.svg.diagonal(),n=Xo,r=t.projection;return t.projection=function(t){return arguments.length?r(Jo(n=t)):n},t},pu.svg.symbol=function(){function t(t,e){return(Yc.get(n.call(this,t,e))||Qo)(r.call(this,t,e))}var n=Ko,r=Go;return t.type=function(r){return arguments.length?(n=Tt(r),t):n},t.size=function(n){return arguments.length?(r=Tt(n),t):r},t};var Yc=pu.map({circle:Qo,cross:function(t){var n=Math.sqrt(t/5)/2;return"M"+-3*n+","+-n+"H"+-n+"V"+-3*n+"H"+n+"V"+-n+"H"+3*n+"V"+n+"H"+n+"V"+3*n+"H"+-n+"V"+n+"H"+-3*n+"Z"},diamond:function(t){var n=Math.sqrt(t/(2*Hc)),r=n*Hc;return"M0,"+-n+"L"+r+",0 0,"+n+" "+-r+",0Z"},square:function(t){var n=Math.sqrt(t)/2;return"M"+-n+","+-n+"L"+n+","+-n+" "+n+","+n+" "+-n+","+n+"Z"},"triangle-down":function(t){var n=Math.sqrt(t/Fc),r=n*Fc/2;return"M0,"+r+"L"+n+","+-r+" "+-n+","+-r+"Z"},"triangle-up":function(t){var n=Math.sqrt(t/Fc),r=n*Fc/2;return"M0,"+-r+"L"+n+","+r+" "+-n+","+r+"Z"}});pu.svg.symbolTypes=Yc.keys();var Fc=Math.sqrt(3),Hc=Math.tan(30*Wu);Pu.transition=function(t){for(var n,r,e=Vc||++Xc,i=iu(t),o=[],u=Zc||{time:Date.now(),ease:Te,delay:0,duration:250},a=-1,c=this.length;++a<c;){o.push(n=[]);for(var f=this[a],l=-1,s=f.length;++l<s;)(r=f[l])&&ou(r,l,i,e,u),n.push(r)}return nu(o,i,e)},Pu.interrupt=function(t){return this.each(null==t?$c:tu(iu(t)))};var Vc,Zc,$c=tu(iu()),Wc=[],Xc=0;Wc.call=Pu.call,Wc.empty=Pu.empty,Wc.node=Pu.node,Wc.size=Pu.size,pu.transition=function(t,n){return t&&t.transition?Vc?t.transition(n):t:pu.selection().transition(t)},pu.transition.prototype=Wc,Wc.select=function(t){var n,r,e,i=this.id,o=this.namespace,u=[];t=R(t);for(var a=-1,c=this.length;++a<c;){u.push(n=[]);for(var f=this[a],l=-1,s=f.length;++l<s;)(e=f[l])&&(r=t.call(e,e.__data__,l,a))?("__data__"in e&&(r.__data__=e.__data__),ou(r,l,o,i,e[o][i]),n.push(r)):n.push(null)}return nu(u,o,i)},Wc.selectAll=function(t){var n,r,e,i,o,u=this.id,a=this.namespace,c=[];t=P(t);for(var f=-1,l=this.length;++f<l;)for(var s=this[f],h=-1,p=s.length;++h<p;)if(e=s[h]){o=e[a][u],r=t.call(e,e.__data__,h,f),c.push(n=[]);for(var g=-1,d=r.length;++g<d;)(i=r[g])&&ou(i,g,a,u,o),n.push(i)}return nu(c,a,u)},Wc.filter=function(t){var n,r,e,i=[];"function"!=typeof t&&(t=Z(t));for(var o=0,u=this.length;o<u;o++){i.push(n=[]);for(var r=this[o],a=0,c=r.length;a<c;a++)(e=r[a])&&t.call(e,e.__data__,a,o)&&n.push(e)}return nu(i,this.namespace,this.id)},Wc.tween=function(t,n){var r=this.id,e=this.namespace;return arguments.length<2?this.node()[e][r].tween.get(t):W(this,null==n?function(n){n[e][r].tween.remove(t)}:function(i){i[e][r].tween.set(t,n)})},Wc.attr=function(t,n){function r(){this.removeAttribute(a)}function e(){this.removeAttributeNS(a.space,a.local)}function i(t){return null==t?r:(t+="",function(){var n,r=this.getAttribute(a);return r!==t&&(n=u(r,t),function(t){this.setAttribute(a,n(t))})})}function o(t){return null==t?e:(t+="",function(){var n,r=this.getAttributeNS(a.space,a.local);return r!==t&&(n=u(r,t),function(t){this.setAttributeNS(a.space,a.local,n(t))})})}if(arguments.length<2){for(n in t)this.attr(n,t[n]);return this}var u="transform"==t?Ke:Ee,a=pu.ns.qualify(t);return ru(this,"attr."+t,n,a.local?o:i)},Wc.attrTween=function(t,n){function r(t,r){var e=n.call(this,t,r,this.getAttribute(i));return e&&function(t){this.setAttribute(i,e(t))}}function e(t,r){var e=n.call(this,t,r,this.getAttributeNS(i.space,i.local));return e&&function(t){this.setAttributeNS(i.space,i.local,e(t))}}var i=pu.ns.qualify(t);return this.tween("attr."+t,i.local?e:r)},Wc.style=function(t,n,r){function e(){this.style.removeProperty(t)}function i(n){return null==n?e:(n+="",function(){var e,i=u(this).getComputedStyle(this,null).getPropertyValue(t);return i!==n&&(e=Ee(i,n),function(n){this.style.setProperty(t,e(n),r)})})}var o=arguments.length;if(o<3){if("string"!=typeof t){o<2&&(n="");for(r in t)this.style(r,t[r],n);return this}r=""}return ru(this,"style."+t,n,i)},Wc.styleTween=function(t,n,r){function e(e,i){var o=n.call(this,e,i,u(this).getComputedStyle(this,null).getPropertyValue(t));return o&&function(n){this.style.setProperty(t,o(n),r)}}return arguments.length<3&&(r=""),this.tween("style."+t,e)},Wc.text=function(t){return ru(this,"text",t,eu)},Wc.remove=function(){var t=this.namespace;return this.each("end.transition",function(){var n;this[t].count<2&&(n=this.parentNode)&&n.removeChild(this)})},Wc.ease=function(t){var n=this.id,r=this.namespace;return arguments.length<1?this.node()[r][n].ease:("function"!=typeof t&&(t=pu.ease.apply(pu,arguments)),W(this,function(e){e[r][n].ease=t}))},Wc.delay=function(t){var n=this.id,r=this.namespace;return arguments.length<1?this.node()[r][n].delay:W(this,"function"==typeof t?function(e,i,o){e[r][n].delay=+t.call(e,e.__data__,i,o)}:(t=+t,function(e){e[r][n].delay=t}))},Wc.duration=function(t){var n=this.id,r=this.namespace;return arguments.length<1?this.node()[r][n].duration:W(this,"function"==typeof t?function(e,i,o){e[r][n].duration=Math.max(1,t.call(e,e.__data__,i,o))}:(t=Math.max(1,t),function(e){e[r][n].duration=t}))},Wc.each=function(t,n){var r=this.id,e=this.namespace;if(arguments.length<2){var i=Zc,o=Vc;try{Vc=r,W(this,function(n,i,o){Zc=n[e][r],t.call(n,n.__data__,i,o)})}finally{Zc=i,Vc=o}}else W(this,function(i){var o=i[e][r];(o.event||(o.event=pu.dispatch("start","end","interrupt"))).on(t,n)});return this},Wc.transition=function(){for(var t,n,r,e,i=this.id,o=++Xc,u=this.namespace,a=[],c=0,f=this.length;c<f;c++){a.push(t=[]);for(var n=this[c],l=0,s=n.length;l<s;l++)(r=n[l])&&(e=r[u][i],ou(r,l,u,o,{time:e.time,ease:e.ease,delay:e.delay+e.duration,duration:e.duration})),t.push(r)}return nu(a,u,o)},pu.svg.axis=function(){function t(t){t.each(function(){var t,f=pu.select(this),l=this.__chart__||r,s=this.__chart__=r.copy(),h=null==c?s.ticks?s.ticks.apply(s,a):s.domain():c,p=null==n?s.tickFormat?s.tickFormat.apply(s,a):_:n,g=f.selectAll(".tick").data(h,s),d=g.enter().insert("g",".domain").attr("class","tick").style("opacity",Yu),v=pu.transition(g.exit()).style("opacity",Yu).remove(),y=pu.transition(g.order()).style("opacity",1),m=Math.max(i,0)+u,x=Xi(s),b=f.selectAll(".domain").data([0]),M=(b.enter().append("path").attr("class","domain"),pu.transition(b));d.append("line"),d.append("text");var w,E,S,A,k=d.select("line"),N=y.select("line"),j=g.select("text").text(p),C=d.select("text"),T=y.select("text"),O="top"===e||"left"===e?-1:1;if("bottom"===e||"top"===e?(t=uu,w="x",S="y",E="x2",A="y2",j.attr("dy",O<0?"0em":".71em").style("text-anchor","middle"),M.attr("d","M"+x[0]+","+O*o+"V0H"+x[1]+"V"+O*o)):(t=au,w="y",S="x",E="y2",A="x2",j.attr("dy",".32em").style("text-anchor",O<0?"end":"start"),M.attr("d","M"+O*o+","+x[0]+"H0V"+x[1]+"H"+O*o)),k.attr(A,O*i),C.attr(S,O*m),N.attr(E,0).attr(A,O*i),T.attr(w,0).attr(S,O*m),s.rangeBand){var R=s,P=R.rangeBand()/2;l=s=function(t){return R(t)+P}}else l.rangeBand?l=s:v.call(t,s,l);d.call(t,l,s),y.call(t,s,s)})}var n,r=pu.scale.linear(),e=Jc,i=6,o=6,u=3,a=[10],c=null;return t.scale=function(n){return arguments.length?(r=n,t):r},t.orient=function(n){return arguments.length?(e=n in Gc?n+"":Jc,t):e},t.ticks=function(){return arguments.length?(a=du(arguments),t):a},t.tickValues=function(n){return arguments.length?(c=n,t):c},t.tickFormat=function(r){return arguments.length?(n=r,t):n},t.tickSize=function(n){var r=arguments.length;return r?(i=+n,o=+arguments[r-1],t):i},t.innerTickSize=function(n){return arguments.length?(i=+n,t):i},t.outerTickSize=function(n){return arguments.length?(o=+n,t):o},t.tickPadding=function(n){return arguments.length?(u=+n,t):u},t.tickSubdivide=function(){return arguments.length&&t},t};var Jc="bottom",Gc={top:1,right:1,bottom:1,left:1};pu.svg.brush=function(){function t(o){o.each(function(){var o=pu.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",i).on("touchstart.brush",i),u=o.selectAll(".background").data([0]);u.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),o.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var a=o.selectAll(".resize").data(d,_);a.exit().remove(),a.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return Kc[t]}).append("rect").attr("x",function(t){return/[ew]$/.test(t)?-3:null}).attr("y",function(t){return/^[ns]/.test(t)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),a.style("display",t.empty()?"none":null);var c,s=pu.transition(o),h=pu.transition(u);f&&(c=Xi(f),h.attr("x",c[0]).attr("width",c[1]-c[0]),r(s)),l&&(c=Xi(l),h.attr("y",c[0]).attr("height",c[1]-c[0]),e(s)),n(s)})}function n(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+s[+/e$/.test(t)]+","+h[+/^s/.test(t)]+")"})}function r(t){t.select(".extent").attr("x",s[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",s[1]-s[0])}function e(t){t.select(".extent").attr("y",h[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1]-h[0])}function i(){function i(){32==pu.event.keyCode&&(N||(x=null,T[0]-=s[1],T[1]-=h[1],N=2),j())}function d(){32==pu.event.keyCode&&2==N&&(T[0]+=s[1],T[1]+=h[1],N=0,j())}function v(){var t=pu.mouse(M),i=!1;b&&(t[0]+=b[0],t[1]+=b[1]),N||(pu.event.altKey?(x||(x=[(s[0]+s[1])/2,(h[0]+h[1])/2]),T[0]=s[+(t[0]<x[0])],T[1]=h[+(t[1]<x[1])]):x=null),A&&y(t,f,0)&&(r(E),i=!0),k&&y(t,l,1)&&(e(E),i=!0),i&&(n(E),_({type:"brush",mode:N?"move":"resize"}))}function y(t,n,r){var e,i,u=Xi(n),c=u[0],f=u[1],l=T[r],d=r?h:s,v=d[1]-d[0];if(N&&(c-=l,f-=v+l),e=(r?g:p)?Math.max(c,Math.min(f,t[r])):t[r],N?i=(e+=l)+v:(x&&(l=Math.max(c,Math.min(f,2*x[r]-e))),l<e?(i=e,e=l):i=l),d[0]!=e||d[1]!=i)return r?a=null:o=null,d[0]=e,d[1]=i,!0}function m(){v(),E.style("pointer-events","all").selectAll(".resize").style("display",t.empty()?"none":null),pu.select("body").style("cursor",null),O.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(),_({type:"brushend"})}var x,b,M=this,w=pu.select(pu.event.target),_=c.of(M,arguments),E=pu.select(M),S=w.datum(),A=!/^(n|s)$/.test(S)&&f,k=!/^(e|w)$/.test(S)&&l,N=w.classed("extent"),C=tt(M),T=pu.mouse(M),O=pu.select(u(M)).on("keydown.brush",i).on("keyup.brush",d);if(pu.event.changedTouches?O.on("touchmove.brush",v).on("touchend.brush",m):O.on("mousemove.brush",v).on("mouseup.brush",m),E.interrupt().selectAll("*").interrupt(),N)T[0]=s[0]-T[0],T[1]=h[0]-T[1];else if(S){var R=+/w$/.test(S),P=+/^n/.test(S);b=[s[1-R]-T[0],h[1-P]-T[1]],T[0]=s[R],T[1]=h[P]}else pu.event.altKey&&(x=T.slice());E.style("pointer-events","none").selectAll(".resize").style("display",null),pu.select("body").style("cursor",w.style("cursor")),_({type:"brushstart"}),v()}var o,a,c=T(t,"brushstart","brush","brushend"),f=null,l=null,s=[0,0],h=[0,0],p=!0,g=!0,d=Qc[0];return t.event=function(t){t.each(function(){var t=c.of(this,arguments),n={x:s,y:h,i:o,j:a},r=this.__chart__||n;this.__chart__=n,Vc?pu.select(this).transition().each("start.brush",function(){o=r.i,a=r.j,s=r.x,h=r.y,t({type:"brushstart"})}).tween("brush:brush",function(){var r=Se(s,n.x),e=Se(h,n.y);return o=a=null,function(i){s=n.x=r(i),h=n.y=e(i),t({type:"brush",mode:"resize"})}}).each("end.brush",function(){o=n.i,a=n.j,t({type:"brush",mode:"resize"}),t({type:"brushend"})}):(t({type:"brushstart"}),t({type:"brush",mode:"resize"}),t({type:"brushend"}))})},t.x=function(n){return arguments.length?(f=n,d=Qc[!f<<1|!l],t):f},t.y=function(n){return arguments.length?(l=n,d=Qc[!f<<1|!l],t):l},t.clamp=function(n){return arguments.length?(f&&l?(p=!!n[0],g=!!n[1]):f?p=!!n:l&&(g=!!n),t):f&&l?[p,g]:f?p:l?g:null},t.extent=function(n){var r,e,i,u,c;return arguments.length?(f&&(r=n[0],e=n[1],l&&(r=r[0],e=e[0]),o=[r,e],f.invert&&(r=f(r),e=f(e)),e<r&&(c=r,r=e,e=c),r==s[0]&&e==s[1]||(s=[r,e])),l&&(i=n[0],u=n[1],f&&(i=i[1],u=u[1]),a=[i,u],l.invert&&(i=l(i),u=l(u)),u<i&&(c=i,i=u,u=c),i==h[0]&&u==h[1]||(h=[i,u])),t):(f&&(o?(r=o[0],e=o[1]):(r=s[0],e=s[1],f.invert&&(r=f.invert(r),e=f.invert(e)),e<r&&(c=r,r=e,e=c))),l&&(a?(i=a[0],u=a[1]):(i=h[0],u=h[1],l.invert&&(i=l.invert(i),u=l.invert(u)),u<i&&(c=i,i=u,u=c))),f&&l?[[r,i],[e,u]]:f?[r,e]:l&&[i,u])},t.clear=function(){return t.empty()||(s=[0,0],h=[0,0],o=a=null),t},t.empty=function(){return!!f&&s[0]==s[1]||!!l&&h[0]==h[1]},pu.rebind(t,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"],[]],tf=xa.format=Sa.timeFormat,nf=tf.utc,rf=nf("%Y-%m-%dT%H:%M:%S.%LZ");tf.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?cu:rf,cu.parse=function(t){var n=new Date(t);return isNaN(n)?null:n},cu.toString=rf.toString,xa.second=Vt(function(t){return new ba(1e3*Math.floor(t/1e3))},function(t,n){t.setTime(t.getTime()+1e3*Math.floor(n))},function(t){return t.getSeconds()}),xa.seconds=xa.second.range,xa.seconds.utc=xa.second.utc.range,xa.minute=Vt(function(t){return new ba(6e4*Math.floor(t/6e4))},function(t,n){t.setTime(t.getTime()+6e4*Math.floor(n))},function(t){return t.getMinutes()}),xa.minutes=xa.minute.range,xa.minutes.utc=xa.minute.utc.range,xa.hour=Vt(function(t){var n=t.getTimezoneOffset()/60;return new ba(36e5*(Math.floor(t/36e5-n)+n))},function(t,n){t.setTime(t.getTime()+36e5*Math.floor(n))},function(t){return t.getHours()}),xa.hours=xa.hour.range,xa.hours.utc=xa.hour.utc.range,xa.month=Vt(function(t){return t=xa.day(t),t.setDate(1),t},function(t,n){t.setMonth(t.getMonth()+n)},function(t){return t.getMonth()}),xa.months=xa.month.range,xa.months.utc=xa.month.utc.range;var ef=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],of=[[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]],uf=tf.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",Ln]]),af={range:function(t,n,r){return pu.range(Math.ceil(t/r)*r,+n,r).map(lu)},floor:_,ceil:_};of.year=xa.year,xa.scale=function(){return fu(pu.scale.linear(),of,uf)};var cf=of.map(function(t){return[t[0].utc,t[1]]}),ff=nf.multi([[".%L",function(t){return t.getUTCMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",Ln]]);cf.year=xa.year.utc,xa.scale.utc=function(){return fu(pu.scale.linear(),cf,ff)},pu.text=Ot(function(t){return t.responseText}),pu.json=function(t,n){return Rt(t,"application/json",su,n)},pu.html=function(t,n){return Rt(t,"text/html",hu,n)},pu.xml=Ot(function(t){return t.responseXML}),this.d3=pu,e=pu,i="function"==typeof e?e.call(n,r,n,t):e,!(void 0!==i&&(t.exports=i))}()},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}function i(t){function n(n){n.on({"mouseover.tip":function(n){var e=t.mouse(x),i=e[0],u=e[1],s=a||i+f.left,h=c||u-f.top;m.selectAll("div."+r).remove(),y=m.append("div").attr(l(r)(g)).style(o({position:"absolute","z-index":1001,left:s+"px",top:h+"px"},v)).html(function(){return d(n)})},"mousemove.tip":function(n){var r=t.mouse(x),e=r[0],i=r[1],o=a||e+f.left,u=c||i-f.top;y.style({left:o+"px",top:u+"px"}).html(function(){return d(n)})},"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],i=o({},h,e),a=i.left,c=i.top,f=i.offset,p=i.root,g={"class":r},d=function(){return""},v={},y=void 0,m=p||t.select("body"),x=m.node();return n.attr=function(t){return(0,u.is)(Object,t)&&(g=o({},g,t)),this},n.style=function(t){return(0,u.is)(Object,t)&&(v=o({},v,t)),this},n.text=function(t){return d=s(t),this},n}var o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t};n.__esModule=!0,n.default=i;var u=r(4),a=r(42),c=e(a),f=c.default.default||c.default,l=f.prependClass,s=f.functor,h={left:void 0,top:void 0,offset:{left:0,top:0},root:void 0}},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0;var i=r(43),o=e(i),u=r(16),a=e(u);n.default={prependClass:o.default,functor:a.default}},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}function i(t){return(0,u.mapObjIndexed)(function(n,r){if("class"===r){var e=function(){var r=(0,c.default)(n);return{v:function(n,e){var i=r(n,e);return i!==t?(0,u.join)(" ",[t,i]):i}}}();if("object"===("undefined"==typeof e?"undefined":o(e)))return e.v}return n})}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};n.__esModule=!0,n.default=i;var u=r(4),a=r(16),c=e(a)},function(t,n,r){var e,i;!function(o,u){e=u,i="function"==typeof e?e.call(n,r,n,t):e,!(void 0!==i&&(t.exports=i))}(this,function(){return function t(n,r){var e=Array.isArray(r),i=e&&[]||{};return e?(n=n||[],i=i.concat(n),r.forEach(function(r,e){"undefined"==typeof i[e]?i[e]=r:"object"==typeof r?i[e]=t(n[e],r):n.indexOf(r)===-1&&i.push(r)})):(n&&"object"==typeof n&&Object.keys(n).forEach(function(t){i[t]=n[t]}),Object.keys(r).forEach(function(e){"object"==typeof r[e]&&r[e]&&n[e]?i[e]=t(n[e],r[e]):i[e]=r[e]})),i}})},function(t,n,r){var e,i,o;(function(r){!function(r,u){i=[],e=u,o="function"==typeof e?e.apply(n,i):e,!(void 0!==o&&(t.exports=o))}(this,function(){"use strict";function t(t){if(Array.isArray(t))return!0;var n=t&&t.length;return"number"==typeof n&&(0===n||n-1 in t)&&"function"==typeof t.indexOf}function n(i,o){if(!i||"object"!==("undefined"==typeof i?"undefined":e(i)))return i;if(i instanceof Date)return new Date(i);if("undefined"!=typeof r&&r.isBuffer(i))return new r(i);if(/\d[a-z]*Array]$/i.test(Object.prototype.toString.call(i)))return i.subarray(0);if(o||(o=[]),t(i)){o[o.length]=i;for(var u=i.length,a=-1,c=[];u>++a;)c[a]=~o.indexOf(i[a])?"[Circular]":n(i[a],o);return o.length&&o.length--,c}o[o.length]=i;var f={};i instanceof Error&&(f.name=i.name,f.message=i.message,f.stack=i.stack);for(var l=Object.keys(i),s=l.length;s--;){var h=l[s];f[h]=~o.indexOf(i[h])?"[Circular]":n(i[h],o)}return o.length&&o.length--,f}var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};return n})}).call(n,r(15).Buffer)},function(t,n){n.read=function(t,n,r,e,i){var o,u,a=8*i-e-1,c=(1<<a)-1,f=c>>1,l=-7,s=r?i-1:0,h=r?-1:1,p=t[n+s];for(s+=h,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+t[n+s],s+=h,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=e;l>0;u=256*u+t[n+s],s+=h,l-=8);if(0===o)o=1-f;else{if(o===c)return u?NaN:(p?-1:1)*(1/0);u+=Math.pow(2,e),o-=f}return(p?-1:1)*u*Math.pow(2,o-e)},n.write=function(t,n,r,e,i,o){var u,a,c,f=8*o-i-1,l=(1<<f)-1,s=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=e?0:o-1,g=e?1:-1,d=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(a=isNaN(n)?1:0,u=l):(u=Math.floor(Math.log(n)/Math.LN2),n*(c=Math.pow(2,-u))<1&&(u--,c*=2),n+=u+s>=1?h/c:h*Math.pow(2,1-s),n*c>=2&&(u++,c/=2),u+s>=l?(a=0,u=l):u+s>=1?(a=(n*c-1)*Math.pow(2,i),u+=s):(a=n*Math.pow(2,s-1)*Math.pow(2,i),u=0));i>=8;t[r+p]=255&a,p+=g,a/=256,i-=8);for(u=u<<i|a,f+=i;f>0;t[r+p]=255&u,p+=g,u/=256,f-=8);t[r+p-g]|=128*d}},function(t,n){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,n){t.exports=function(){function t(n,r){if(n instanceof Array){var e;return e=r?n.sort():n}if("object"==typeof n){var i={};return Object.keys(n).sort().forEach(function(r){i[r]=t(n[r])}),i}return n}return function(n){return JSON.stringify(t(n,!0),void 0,2)}}()},function(t,n,r){function e(){}var i=r(7),o=Object.prototype;e.prototype=i?i(null):o,t.exports=e},function(t,n,r){function e(t){var n=-1,r=t?t.length:0;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}var i=r(83),o=r(84),u=r(85),a=r(86),c=r(87);e.prototype.clear=i,e.prototype.delete=o,e.prototype.get=u,e.prototype.has=a,e.prototype.set=c,t.exports=e},function(t,n,r){var e=r(10),i=r(8),o=e(i,"Set");t.exports=o},function(t,n,r){var e=r(8),i=e.Uint8Array;t.exports=i},function(t,n){function r(t,n){for(var r=-1,e=t.length,i=Array(e);++r<e;)i[r]=n(t[r],r,t);return i}t.exports=r},function(t,n){function r(t,n){for(var r=-1,e=t.length;++r<e;)if(n(t[r],r,t))return!0;return!1}t.exports=r},function(t,n,r){var e=r(69),i=e();t.exports=i},function(t,n,r){function e(t,n){return t&&i(t,n,o)}var i=r(55),o=r(14);t.exports=e},function(t,n){function r(t,n){return n in Object(t)}t.exports=r},function(t,n,r){function e(t,n,r,e,v,m){var x=f(t),b=f(n),M=g,w=g;x||(M=c(t),M==p?M=d:M!=d&&(x=s(t))),b||(w=c(n),w==p?w=d:w!=d&&(b=s(n)));var _=M==d&&!l(t),E=w==d&&!l(n),S=M==w;if(S&&!x&&!_)return u(t,n,M,r,e,v);var A=v&h;if(!A){var k=_&&y.call(t,"__wrapped__"),N=E&&y.call(n,"__wrapped__");if(k||N)return r(k?t.value():t,N?n.value():n,e,v,m)}return!!S&&(m||(m=new i),(x?o:a)(t,n,r,e,v,m))}var i=r(17),o=r(70),u=r(71),a=r(72),c=r(75),f=r(1),l=r(11),s=r(104),h=2,p="[object Arguments]",g="[object Array]",d="[object Object]",v=Object.prototype,y=v.hasOwnProperty;t.exports=e},function(t,n,r){function e(t,n,r,e){var c=r.length,f=c,l=!e;if(null==t)return!f;for(t=Object(t);c--;){var s=r[c];if(l&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++c<f;){s=r[c];var h=s[0],p=t[h],g=s[1];if(l&&s[2]){if(void 0===p&&!(h in t))return!1}else{var d=new i,v=e?e(p,g,h,t,n,d):void 0;if(!(void 0===v?o(g,p,e,u|a,d):v))return!1}}return!0}var i=r(17),o=r(25),u=1,a=2;t.exports=e},function(t,n,r){function e(t){var n=typeof t;return"function"==n?t:null==t?u:"object"==n?a(t)?o(t[0],t[1]):i(t):c(t)}var i=r(62),o=r(63),u=r(99),a=r(1),c=r(107);t.exports=e},function(t,n){function r(t){return e(Object(t))}var e=Object.keys;t.exports=r},function(t,n,r){function e(t){var n=o(t);if(1==n.length&&n[0][2]){var r=n[0][0],e=n[0][1];return function(t){return null!=t&&(t[r]===e&&(void 0!==e||r in Object(t)))}}return function(r){return r===t||i(r,t,n)}}var i=r(59),o=r(74);t.exports=e},function(t,n,r){function e(t,n){return function(r){var e=o(r,t);return void 0===e&&e===n?u(r,t):i(n,e,void 0,a|c)}}var i=r(25),o=r(30),u=r(98),a=1,c=2;t.exports=e},function(t,n,r){function e(t){return function(n){return i(n,t)}}var i=r(23);t.exports=e},function(t,n){function r(t,n,r){var e=-1,i=t.length;n<0&&(n=-n>i?0:i+n),r=r>i?i:r,r<0&&(r+=i),i=n>r?0:r-n>>>0,n>>>=0;for(var o=Array(i);++e<i;)o[e]=t[e+n];return o}t.exports=r},function(t,n){function r(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e}t.exports=r},function(t,n,r){function e(t,n){return i(n,function(n){return[n,t[n]]})}var i=r(53);t.exports=e},function(t,n){function r(t){return t&&t.Object===Object?t:null}t.exports=r},function(t,n){function r(t){return function(n,r,e){for(var i=-1,o=Object(n),u=e(n),a=u.length;a--;){var c=u[t?a:++i];if(r(o[c],c,o)===!1)break}return n}}t.exports=r},function(t,n,r){function e(t,n,r,e,a,c){var f=-1,l=a&u,s=a&o,h=t.length,p=n.length;if(h!=p&&!(l&&p>h))return!1;var g=c.get(t);if(g)return g==n;var d=!0;for(c.set(t,n);++f<h;){var v=t[f],y=n[f];if(e)var m=l?e(y,v,f,n,t,c):e(v,y,f,t,n,c);if(void 0!==m){if(m)continue;d=!1;break}if(s){if(!i(n,function(t){return v===t||r(v,t,e,a,c)})){d=!1;break}}else if(v!==y&&!r(v,y,e,a,c)){d=!1;break}}return c.delete(t),d}var i=r(54),o=1,u=2;t.exports=e},function(t,n,r){function e(t,n,r,e,b,w){switch(r){case x:return!(t.byteLength!=n.byteLength||!e(new o(t),new o(n)));case l:case s:return+t==+n;case h:return t.name==n.name&&t.message==n.message;case g:return t!=+t?n!=+n:t==+n;case d:case y:return t==n+"";case p:var _=u;case v:var E=w&f;return _||(_=a),(E||t.size==n.size)&&e(_(t),_(n),b,w|c);case m:return!!i&&M.call(t)==M.call(n)}return!1}var i=r(18),o=r(52),u=r(88),a=r(90),c=1,f=2,l="[object Boolean]",s="[object Date]",h="[object Error]",p="[object Map]",g="[object Number]",d="[object RegExp]",v="[object Set]",y="[object String]",m="[object Symbol]",x="[object ArrayBuffer]",b=i?i.prototype:void 0,M=i?b.valueOf:void 0;t.exports=e},function(t,n,r){function e(t,n,r,e,a,c){var f=a&u,l=o(t),s=l.length,h=o(n),p=h.length;if(s!=p&&!f)return!1;for(var g=s;g--;){var d=l[g];
14if(!(f?d in n:i(n,d)))return!1}var v=c.get(t);if(v)return v==n;var y=!0;c.set(t,n);for(var m=f;++g<s;){d=l[g];var x=t[d],b=n[d];if(e)var M=f?e(b,x,d,n,t,c):e(x,b,d,t,n,c);if(!(void 0===M?x===b||r(x,b,e,a,c):M)){y=!1;break}m||(m="constructor"==d)}if(y&&!m){var w=t.constructor,_=n.constructor;w!=_&&"constructor"in t&&"constructor"in n&&!("function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _)&&(y=!1)}return c.delete(t),y}var i=r(24),o=r(14),u=2;t.exports=e},function(t,n,r){var e=r(26),i=e("length");t.exports=i},function(t,n,r){function e(t){for(var n=o(t),r=n.length;r--;)n[r][2]=i(n[r][1]);return n}var i=r(82),o=r(108);t.exports=e},function(t,n,r){function e(t){return s.call(t)}var i=r(3),o=r(51),u="[object Map]",a="[object Object]",c="[object Set]",f=Object.prototype,l=Function.prototype.toString,s=f.toString,h=i?l.call(i):"",p=o?l.call(o):"";(i&&e(new i)!=u||o&&e(new o)!=c)&&(e=function(t){var n=s.call(t),r=n==a?t.constructor:null,e="function"==typeof r?l.call(r):"";if(e){if(e==h)return u;if(e==p)return c}return n}),t.exports=e},function(t,n,r){function e(t,n,r){if(null==t)return!1;var e=r(t,n);e||c(n)||(n=i(n),t=h(t,n),null!=t&&(n=s(n),e=r(t,n)));var p=t?t.length:void 0;return e||!!p&&f(p)&&a(n,p)&&(u(t)||l(t)||o(t))}var i=r(27),o=r(31),u=r(1),a=r(29),c=r(12),f=r(9),l=r(34),s=r(105),h=r(89);t.exports=e},function(t,n,r){function e(t,n){return i(t,n)&&delete t[n]}var i=r(28);t.exports=e},function(t,n,r){function e(t,n){if(i){var r=t[n];return r===o?void 0:r}return a.call(t,n)?t[n]:void 0}var i=r(7),o="__lodash_hash_undefined__",u=Object.prototype,a=u.hasOwnProperty;t.exports=e},function(t,n,r){function e(t,n,r){t[n]=i&&void 0===r?o:r}var i=r(7),o="__lodash_hash_undefined__";t.exports=e},function(t,n,r){function e(t){var n=t?t.length:void 0;return a(n)&&(u(t)||c(t)||o(t))?i(n,String):null}var i=r(66),o=r(31),u=r(1),a=r(9),c=r(34);t.exports=e},function(t,n){function r(t){var n=t&&t.constructor,r="function"==typeof n&&n.prototype||e;return t===r}var e=Object.prototype;t.exports=r},function(t,n,r){function e(t){return t===t&&!i(t)}var i=r(13);t.exports=e},function(t,n,r){function e(){this.__data__={hash:new i,map:o?new o:[],string:new i}}var i=r(49),o=r(3);t.exports=e},function(t,n,r){function e(t){var n=this.__data__;return a(t)?u("string"==typeof t?n.string:n.hash,t):i?n.map.delete(t):o(n.map,t)}var i=r(3),o=r(19),u=r(77),a=r(6);t.exports=e},function(t,n,r){function e(t){var n=this.__data__;return a(t)?u("string"==typeof t?n.string:n.hash,t):i?n.map.get(t):o(n.map,t)}var i=r(3),o=r(20),u=r(78),a=r(6);t.exports=e},function(t,n,r){function e(t){var n=this.__data__;return a(t)?u("string"==typeof t?n.string:n.hash,t):i?n.map.has(t):o(n.map,t)}var i=r(3),o=r(21),u=r(28),a=r(6);t.exports=e},function(t,n,r){function e(t,n){var r=this.__data__;return a(t)?u("string"==typeof t?r.string:r.hash,t,n):i?r.map.set(t,n):o(r.map,t,n),this}var i=r(3),o=r(22),u=r(79),a=r(6);t.exports=e},function(t,n){function r(t){var n=-1,r=Array(t.size);return t.forEach(function(t,e){r[++n]=[e,t]}),r}t.exports=r},function(t,n,r){function e(t,n){return 1==n.length?t:o(t,i(n,0,-1))}var i=r(65),o=r(30);t.exports=e},function(t,n){function r(t){var n=-1,r=Array(t.size);return t.forEach(function(t){r[++n]=t}),r}t.exports=r},function(t,n){function r(){this.__data__={array:[],map:null}}t.exports=r},function(t,n,r){function e(t){var n=this.__data__,r=n.array;return r?i(r,t):n.map.delete(t)}var i=r(19);t.exports=e},function(t,n,r){function e(t){var n=this.__data__,r=n.array;return r?i(r,t):n.map.get(t)}var i=r(20);t.exports=e},function(t,n,r){function e(t){var n=this.__data__,r=n.array;return r?i(r,t):n.map.has(t)}var i=r(21);t.exports=e},function(t,n,r){function e(t,n){var r=this.__data__,e=r.array;e&&(e.length<u-1?o(e,t,n):(r.array=null,r.map=new i(e)));var a=r.map;return a&&a.set(t,n),this}var i=r(50),o=r(22),u=200;t.exports=e},function(t,n,r){function e(t){var n=[];return i(t).replace(o,function(t,r,e,i){n.push(e?i.replace(u,"$1"):r||t)}),n}var i=r(109),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,u=/\\(\\)?/g;t.exports=e},function(t,n){function r(t,n){return t===n||t!==t&&n!==n}t.exports=r},function(t,n,r){function e(t,n){return o(t,n,i)}var i=r(57),o=r(76);t.exports=e},function(t,n){function r(t){return t}t.exports=r},function(t,n,r){function e(t){return o(t)&&i(t)}var i=r(32),o=r(2);t.exports=e},function(t,n,r){function e(t){return null!=t&&(i(t)?h.test(l.call(t)):u(t)&&(o(t)?h:c).test(t))}var i=r(33),o=r(11),u=r(2),a=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,f=Object.prototype,l=Function.prototype.toString,s=f.hasOwnProperty,h=RegExp("^"+l.call(s).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=e},function(t,n,r){function e(t){if(!o(t)||l.call(t)!=u||i(t))return!1;var n=a;if("function"==typeof t.constructor&&(n=s(t)),null===n)return!0;var r=n.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==f}var i=r(11),o=r(2),u="[object Object]",a=Object.prototype,c=Function.prototype.toString,f=c.call(Object),l=a.toString,s=Object.getPrototypeOf;t.exports=e},function(t,n,r){function e(t){return"symbol"==typeof t||i(t)&&a.call(t)==o}var i=r(2),o="[object Symbol]",u=Object.prototype,a=u.toString;t.exports=e},function(t,n,r){function e(t){return o(t)&&i(t.length)&&!!j[T.call(t)]}var i=r(9),o=r(2),u="[object Arguments]",a="[object Array]",c="[object Boolean]",f="[object Date]",l="[object Error]",s="[object Function]",h="[object Map]",p="[object Number]",g="[object Object]",d="[object RegExp]",v="[object Set]",y="[object String]",m="[object WeakMap]",x="[object ArrayBuffer]",b="[object Float32Array]",M="[object Float64Array]",w="[object Int8Array]",_="[object Int16Array]",E="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",k="[object Uint16Array]",N="[object Uint32Array]",j={};j[b]=j[M]=j[w]=j[_]=j[E]=j[S]=j[A]=j[k]=j[N]=!0,j[u]=j[a]=j[x]=j[c]=j[f]=j[l]=j[s]=j[h]=j[p]=j[g]=j[d]=j[v]=j[y]=j[m]=!1;var C=Object.prototype,T=C.toString;t.exports=e},function(t,n){function r(t){var n=t?t.length:0;return n?t[n-1]:void 0}t.exports=r},function(t,n,r){function e(t,n){var r={};return n=o(n,3),i(t,function(t,e,i){r[e]=n(t,e,i)}),r}var i=r(56),o=r(60);t.exports=e},function(t,n,r){function e(t){return u(t)?i(t):o(t)}var i=r(26),o=r(64),u=r(12);t.exports=e},function(t,n,r){function e(t){return i(t,o(t))}var i=r(67),o=r(14);t.exports=e},function(t,n,r){function e(t){if("string"==typeof t)return t;if(null==t)return"";if(o(t))return i?c.call(t):"";var n=t+"";return"0"==n&&1/t==-u?"-0":n}var i=r(18),o=r(103),u=1/0,a=i?i.prototype:void 0,c=i?a.toString:void 0;t.exports=e},function(t,n,r){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}function i(t,n,r){if(t){n(t);var e=r(t);if(e)for(var o=e.length,u=0;u<o;u++)i(e[u],n,r)}}function o(t,n){var r=null;return i(t,function(t){t.name===n&&(r=t)},function(t){return t.children}),r}function u(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=arguments.length<=2||void 0===arguments[2]?{name:n.key||"state",children:[]}:arguments[2];if(!(0,l.default)(t)&&t&&!t.toJS)return{};var e=n.key,i=void 0===e?"state":e,a=n.pushMethod,f=void 0===a?"push":a,s=o(r,i);return null===s?{}:((0,h.default)(t&&t.toJS?t.toJS():t,function(t,n){var e=t&&t.toJS?t.toJS():t,i={name:n};if((0,c.default)(e)){i.children=[];for(var o=0;o<e.length;o++){var a;i.children[f]((a={name:n+"["+o+"]"},a[(0,l.default)(e[o])?"object":"value"]=e[o],a))}}else(0,l.default)(e)?i.children=[]:i.value=e;s.children[f](i),u(e,{key:n,pushMethod:f},r)}),r)}n.__esModule=!0,n.default=u;var a=r(1),c=e(a),f=r(102),l=e(f),s=r(106),h=e(s)},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}}])});
\No newline at end of file