You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
456 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.SentenTree=n():t.SentenTree=n()}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var e={};return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=140)}([function(t,n,e){"use strict";function r(t,n){this._groups=t,this._parents=n}function i(){return new r([[document.documentElement]],D)}var o=e(105),u=e(106),a=e(94),s=e(88),c=e(38),f=e(93),h=e(98),l=e(101),p=e(108),d=e(86),g=e(100),v=e(99),y=e(107),_=e(92),m=e(91),b=e(85),x=e(109),w=e(102),k=e(87),M=e(110),E=e(95),A=e(103),S=e(97),T=e(84),C=e(96),O=e(104),P=e(89),L=e(18),N=e(90);e.d(n,"c",function(){return D}),n.b=r;var D=[null];r.prototype=i.prototype={constructor:r,select:o.a,selectAll:u.a,filter:a.a,data:s.a,enter:c.a,exit:f.a,merge:h.a,order:l.a,sort:p.a,call:d.a,nodes:g.a,node:v.a,size:y.a,empty:_.a,each:m.a,attr:b.a,style:x.a,property:w.a,classed:k.a,text:M.a,html:E.a,raise:A.a,lower:S.a,append:T.a,insert:C.a,remove:O.a,datum:P.a,on:L.c,dispatch:N.a},n.a=i},function(t,n,e){"use strict";function r(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>h)throw new Error("too late");return e}function i(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>p)throw new Error("too late");return e}function o(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("too late");return e}function u(t,n,r){function i(t){r.state=l,r.timer.restart(o,r.delay,r.time),r.delay<=t&&o(t-r.delay)}function o(i){var h,v,_,m;if(r.state!==l)return a();for(h in f)if(m=f[h],m.name===r.name){if(m.state===d)return e.i(s.b)(o);m.state===g?(m.state=y,m.timer.stop(),m.on.call("interrupt",t,t.__data__,m.index,m.group),delete f[h]):n>+h&&(m.state=y,m.timer.stop(),delete f[h])}if(e.i(s.b)(function(){r.state===d&&(r.state=g,r.timer.restart(u,r.delay,r.time),u(i))}),r.state=p,r.on.call("start",t,t.__data__,r.index,r.group),r.state===p){for(r.state=d,c=new Array(_=r.tween.length),h=0,v=-1;_>h;++h)(m=r.tween[h].value.call(t,t.__data__,r.index,r.group))&&(c[++v]=m);c.length=v+1}}function u(n){for(var e=n<r.duration?r.ease.call(null,n/r.duration):(r.timer.restart(a),r.state=v,1),i=-1,o=c.length;++i<o;)c[i].call(null,e);r.state===v&&(r.on.call("end",t,t.__data__,r.index,r.group),a())}function a(){r.state=y,r.timer.stop(),delete f[n];for(var e in f)return;delete t.__transition}var c,f=t.__transition;f[n]=r,r.timer=e.i(s.a)(i,0,r.time)}var a=e(29),s=e(41);e.d(n,"d",function(){return l}),e.d(n,"a",function(){return p}),e.d(n,"b",function(){return v}),e.d(n,"c",function(){return y}),n.g=r,n.e=i,n.f=o;var c=e.i(a.dispatch)("start","end","interrupt"),f=[],h=0,l=1,p=2,d=3,g=4,v=5,y=6;n.h=function(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};u(t,e,{name:n,index:r,group:i,on:c,tween:f,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:h})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(14);e.d(n,"creator",function(){return r.a});var i=e(80);e.d(n,"local",function(){return i.a});var o=e(37);e.d(n,"matcher",function(){return o.a});var u=e(81);e.d(n,"mouse",function(){return u.a});var a=e(15);e.d(n,"namespace",function(){return a.a});var s=e(16);e.d(n,"namespaces",function(){return s.a});var c=e(82);e.d(n,"select",function(){return c.a});var f=e(83);e.d(n,"selectAll",function(){return f.a});var h=e(0);e.d(n,"selection",function(){return h.a});var l=e(19);e.d(n,"selector",function(){return l.a});var p=e(40);e.d(n,"selectorAll",function(){return p.a});var d=e(111);e.d(n,"touch",function(){return d.a});var g=e(112);e.d(n,"touches",function(){return g.a});var v=e(21);e.d(n,"window",function(){return v.a});var y=e(18);e.d(n,"event",function(){return y.a}),e.d(n,"customEvent",function(){return y.b})},function(t,n,e){"use strict";function r(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function i(t){return e.i(u.selection)().transition(t)}function o(){return++M}var u=e(2),a=e(120),s=e(121),c=e(122),f=e(123),h=e(124),l=e(125),p=e(126),d=e(127),g=e(128),v=e(129),y=e(130),_=e(131),m=e(132),b=e(133),x=e(134),w=e(135),k=e(8);n.b=r,n.a=i,n.c=o;var M=0,E=u.selection.prototype;r.prototype=i.prototype={constructor:r,select:v.a,selectAll:y.a,filter:l.a,merge:p.a,selection:_.a,transition:w.a,call:E.call,nodes:E.nodes,node:E.node,size:E.size,empty:E.empty,each:E.each,on:d.a,attr:a.a,attrTween:s.a,style:m.a,styleTween:b.a,text:x.a,remove:g.a,tween:k.a,delay:c.a,duration:f.a,ease:h.a}},function(t,n,e){"use strict";var r=e(9);e.d(n,"a",function(){return r.a}),e.d(n,"f",function(){return r.h}),e.d(n,"e",function(){return r.g});var i=e(56);e.d(n,"d",function(){return i.b}),e.d(n,"c",function(){return i.a});var o=e(55);e.d(n,"b",function(){return o.a})},function(t,n,e){(function(t,r){var i;(function(){function o(t,n){return t.set(n[0],n[1]),t}function u(t,n){return t.add(n),t}function a(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function s(t,n,e,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var u=t[i];n(r,u,e(u),t)}return r}function c(t,n){for(var e=-1,r=null==t?0:t.length;++e<r&&n(t[e],e,t)!==!1;);return t}function f(t,n){for(var e=null==t?0:t.length;e--&&n(t[e],e,t)!==!1;);return t}function h(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(!n(t[e],e,t))return!1;return!0}function l(t,n){for(var e=-1,r=null==t?0:t.length,i=0,o=[];++e<r;){var u=t[e];n(u,e,t)&&(o[i++]=u)}return o}function p(t,n){var e=null==t?0:t.length;return!!e&&M(t,n,0)>-1}function d(t,n,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(n,t[r]))return!0;return!1}function g(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}function v(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}function y(t,n,e,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(e=t[++i]);++i<o;)e=n(e,t[i],i,t);return e}function _(t,n,e,r){var i=null==t?0:t.length;for(r&&i&&(e=t[--i]);i--;)e=n(e,t[i],i,t);return e}function m(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}function b(t){return t.split("")}function x(t){return t.match(Wn)||[]}function w(t,n,e){var r;return e(t,function(t,e,i){return n(t,e,i)?(r=e,!1):void 0}),r}function k(t,n,e,r){for(var i=t.length,o=e+(r?1:-1);r?o--:++o<i;)if(n(t[o],o,t))return o;return-1}function M(t,n,e){return n===n?K(t,n,e):k(t,A,e)}function E(t,n,e,r){for(var i=e-1,o=t.length;++i<o;)if(r(t[i],n))return i;return-1}function A(t){return t!==t}function S(t,n){var e=null==t?0:t.length;return e?L(t,n)/e:zt}function T(t){return function(n){return null==n?it:n[t]}}function C(t){return function(n){return null==t?it:t[n]}}function O(t,n,e,r,i){return i(t,function(t,i,o){e=r?(r=!1,t):n(e,t,i,o)}),e}function P(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}function L(t,n){for(var e,r=-1,i=t.length;++r<i;){var o=n(t[r]);o!==it&&(e=e===it?o:e+o)}return e}function N(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}function D(t,n){return g(n,function(n){return[n,t[n]]})}function j(t){return function(n){return t(n)}}function I(t,n){return g(n,function(n){return t[n]})}function z(t,n){return t.has(n)}function R(t,n){for(var e=-1,r=t.length;++e<r&&M(n,t[e],0)>-1;);return e}function q(t,n){for(var e=t.length;e--&&M(n,t[e],0)>-1;);return e}function B(t,n){for(var e=t.length,r=0;e--;)t[e]===n&&++r;return r}function F(t){return"\\"+er[t]}function U(t,n){return null==t?it:t[n]}function V(t){return Xe.test(t)}function W(t){return He.test(t)}function G(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}function Y(t){var n=-1,e=Array(t.size);return t.forEach(function(t,r){e[++n]=[r,t]}),e}function X(t,n){return function(e){return t(n(e))}}function H(t,n){for(var e=-1,r=t.length,i=0,o=[];++e<r;){var u=t[e];(u===n||u===ht)&&(t[e]=ht,o[i++]=e)}return o}function $(t){var n=-1,e=Array(t.size);return t.forEach(function(t){e[++n]=t}),e}function Z(t){var n=-1,e=Array(t.size);return t.forEach(function(t){e[++n]=[t,t]}),e}function K(t,n,e){for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}function J(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}function Q(t){return V(t)?nt(t):mr(t)}function tt(t){return V(t)?et(t):b(t)}function nt(t){for(var n=Ge.lastIndex=0;Ge.test(t);)++n;return n}function et(t){return t.match(Ge)||[]}function rt(t){return t.match(Ye)||[]}var it,ot="4.17.4",ut=200,at="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",st="Expected a function",ct="__lodash_hash_undefined__",ft=500,ht="__lodash_placeholder__",lt=1,pt=2,dt=4,gt=1,vt=2,yt=1,_t=2,mt=4,bt=8,xt=16,wt=32,kt=64,Mt=128,Et=256,At=512,St=30,Tt="...",Ct=800,Ot=16,Pt=1,Lt=2,Nt=3,Dt=1/0,jt=9007199254740991,It=1.7976931348623157e308,zt=0/0,Rt=4294967295,qt=Rt-1,Bt=Rt>>>1,Ft=[["ary",Mt],["bind",yt],["bindKey",_t],["curry",bt],["curryRight",xt],["flip",At],["partial",wt],["partialRight",kt],["rearg",Et]],Ut="[object Arguments]",Vt="[object Array]",Wt="[object AsyncFunction]",Gt="[object Boolean]",Yt="[object Date]",Xt="[object DOMException]",Ht="[object Error]",$t="[object Function]",Zt="[object GeneratorFunction]",Kt="[object Map]",Jt="[object Number]",Qt="[object Null]",tn="[object Object]",nn="[object Promise]",en="[object Proxy]",rn="[object RegExp]",on="[object Set]",un="[object String]",an="[object Symbol]",sn="[object Undefined]",cn="[object WeakMap]",fn="[object WeakSet]",hn="[object ArrayBuffer]",ln="[object DataView]",pn="[object Float32Array]",dn="[object Float64Array]",gn="[object Int8Array]",vn="[object Int16Array]",yn="[object Int32Array]",_n="[object Uint8Array]",mn="[object Uint8ClampedArray]",bn="[object Uint16Array]",xn="[object Uint32Array]",wn=/\b__p \+= '';/g,kn=/\b(__p \+=) '' \+/g,Mn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,En=/&(?:amp|lt|gt|quot|#39);/g,An=/[&<>"']/g,Sn=RegExp(En.source),Tn=RegExp(An.source),Cn=/<%-([\s\S]+?)%>/g,On=/<%([\s\S]+?)%>/g,Pn=/<%=([\s\S]+?)%>/g,Ln=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nn=/^\w*$/,Dn=/^\./,jn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,In=/[\\^$.*+?()[\]{}|]/g,zn=RegExp(In.source),Rn=/^\s+|\s+$/g,qn=/^\s+/,Bn=/\s+$/,Fn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Un=/\{\n\/\* \[wrapped with (.+)\] \*/,Vn=/,? & /,Wn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Gn=/\\(\\)?/g,Yn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Xn=/\w*$/,Hn=/^[-+]0x[0-9a-f]+$/i,$n=/^0b[01]+$/i,Zn=/^\[object .+?Constructor\]$/,Kn=/^0o[0-7]+$/i,Jn=/^(?:0|[1-9]\d*)$/,Qn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,te=/($^)/,ne=/['\n\r\u2028\u2029\\]/g,ee="\\ud800-\\udfff",re="\\u0300-\\u036f",ie="\\ufe20-\\ufe2f",oe="\\u20d0-\\u20ff",ue=re+ie+oe,ae="\\u2700-\\u27bf",se="a-z\\xdf-\\xf6\\xf8-\\xff",ce="\\xac\\xb1\\xd7\\xf7",fe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",he="\\u2000-\\u206f",le=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pe="A-Z\\xc0-\\xd6\\xd8-\\xde",de="\\ufe0e\\ufe0f",ge=ce+fe+he+le,ve="[']",ye="["+ee+"]",_e="["+ge+"]",me="["+ue+"]",be="\\d+",xe="["+ae+"]",we="["+se+"]",ke="[^"+ee+ge+be+ae+se+pe+"]",Me="\\ud83c[\\udffb-\\udfff]",Ee="(?:"+me+"|"+Me+")",Ae="[^"+ee+"]",Se="(?:\\ud83c[\\udde6-\\uddff]){2}",Te="[\\ud800-\\udbff][\\udc00-\\udfff]",Ce="["+pe+"]",Oe="\\u200d",Pe="(?:"+we+"|"+ke+")",Le="(?:"+Ce+"|"+ke+")",Ne="(?:"+ve+"(?:d|ll|m|re|s|t|ve))?",De="(?:"+ve+"(?:D|LL|M|RE|S|T|VE))?",je=Ee+"?",Ie="["+de+"]?",ze="(?:"+Oe+"(?:"+[Ae,Se,Te].join("|")+")"+Ie+je+")*",Re="\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",qe="\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)",Be=Ie+je+ze,Fe="(?:"+[xe,Se,Te].join("|")+")"+Be,Ue="(?:"+[Ae+me+"?",me,Se,Te,ye].join("|")+")",Ve=RegExp(ve,"g"),We=RegExp(me,"g"),Ge=RegExp(Me+"(?="+Me+")|"+Ue+Be,"g"),Ye=RegExp([Ce+"?"+we+"+"+Ne+"(?="+[_e,Ce,"$"].join("|")+")",Le+"+"+De+"(?="+[_e,Ce+Pe,"$"].join("|")+")",Ce+"?"+Pe+"+"+Ne,Ce+"+"+De,qe,Re,be,Fe].join("|"),"g"),Xe=RegExp("["+Oe+ee+ue+de+"]"),He=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$e=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ze=-1,Ke={};Ke[pn]=Ke[dn]=Ke[gn]=Ke[vn]=Ke[yn]=Ke[_n]=Ke[mn]=Ke[bn]=Ke[xn]=!0,Ke[Ut]=Ke[Vt]=Ke[hn]=Ke[Gt]=Ke[ln]=Ke[Yt]=Ke[Ht]=Ke[$t]=Ke[Kt]=Ke[Jt]=Ke[tn]=Ke[rn]=Ke[on]=Ke[un]=Ke[cn]=!1;var Je={};Je[Ut]=Je[Vt]=Je[hn]=Je[ln]=Je[Gt]=Je[Yt]=Je[pn]=Je[dn]=Je[gn]=Je[vn]=Je[yn]=Je[Kt]=Je[Jt]=Je[tn]=Je[rn]=Je[on]=Je[un]=Je[an]=Je[_n]=Je[mn]=Je[bn]=Je[xn]=!0,Je[Ht]=Je[$t]=Je[cn]=!1;var Qe={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},tr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},nr={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},er={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rr=parseFloat,ir=parseInt,or="object"==typeof t&&t&&t.Object===Object&&t,ur="object"==typeof self&&self&&self.Object===Object&&self,ar=or||ur||Function("return this")(),sr="object"==typeof n&&n&&!n.nodeType&&n,cr=sr&&"object"==typeof r&&r&&!r.nodeType&&r,fr=cr&&cr.exports===sr,hr=fr&&or.process,lr=function(){try{return hr&&hr.binding&&hr.binding("util")}catch(t){}}(),pr=lr&&lr.isArrayBuffer,dr=lr&&lr.isDate,gr=lr&&lr.isMap,vr=lr&&lr.isRegExp,yr=lr&&lr.isSet,_r=lr&&lr.isTypedArray,mr=T("length"),br=C(Qe),xr=C(tr),wr=C(nr),kr=function Er(t){function n(t){if(cs(t)&&!xl(t)&&!(t instanceof i)){if(t instanceof r)return t;if(xf.call(t,"__wrapped__"))return uu(t)}return new r(t)}function e(){}function r(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=it}function i(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Rt,this.__views__=[]}function b(){var t=new i(this.__wrapped__);return t.__actions__=Bi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Bi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Bi(this.__views__),t}function C(){if(this.__filtered__){var t=new i(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function K(){var t=this.__wrapped__.value(),n=this.__dir__,e=xl(t),r=0>n,i=e?t.length:0,o=Oo(0,i,this.__views__),u=o.start,a=o.end,s=a-u,c=r?a:u-1,f=this.__iteratees__,h=f.length,l=0,p=Kf(s,this.__takeCount__);if(!e||!r&&i==s&&p==s)return xi(t,this.__actions__);var d=[];t:for(;s--&&p>l;){c+=n;for(var g=-1,v=t[c];++g<h;){var y=f[g],_=y.iteratee,m=y.type,b=_(v);if(m==Lt)v=b;else if(!b){if(m==Pt)continue t;break t}}d[l++]=v}return d}function nt(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function et(){this.__data__=ah?ah(null):{},this.size=0}function Wn(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}function ee(t){var n=this.__data__;if(ah){var e=n[t];return e===ct?it:e}return xf.call(n,t)?n[t]:it}function re(t){var n=this.__data__;return ah?n[t]!==it:xf.call(n,t)}function ie(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=ah&&n===it?ct:n,this}function oe(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function ue(){this.__data__=[],this.size=0}function ae(t){var n=this.__data__,e=Le(n,t);if(0>e)return!1;var r=n.length-1;return e==r?n.pop():jf.call(n,e,1),--this.size,!0}function se(t){var n=this.__data__,e=Le(n,t);return 0>e?it:n[e][1]}function ce(t){return Le(this.__data__,t)>-1}function fe(t,n){var e=this.__data__,r=Le(e,t);return 0>r?(++this.size,e.push([t,n])):e[r][1]=n,this}function he(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function le(){this.size=0,this.__data__={hash:new nt,map:new(rh||oe),string:new nt}}function pe(t){var n=Ao(this,t)["delete"](t);return this.size-=n?1:0,n}function de(t){return Ao(this,t).get(t)}function ge(t){return Ao(this,t).has(t)}function ve(t,n){var e=Ao(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this}function ye(t){var n=-1,e=null==t?0:t.length;for(this.__data__=new he;++n<e;)this.add(t[n])}function _e(t){return this.__data__.set(t,ct),this}function me(t){return this.__data__.has(t)}function be(t){var n=this.__data__=new oe(t);this.size=n.size}function xe(){this.__data__=new oe,this.size=0}function we(t){var n=this.__data__,e=n["delete"](t);return this.size=n.size,e}function ke(t){return this.__data__.get(t)}function Me(t){return this.__data__.has(t)}function Ee(t,n){var e=this.__data__;if(e instanceof oe){var r=e.__data__;if(!rh||r.length<ut-1)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new he(r)}return e.set(t,n),this.size=e.size,this}function Ae(t,n){var e=xl(t),r=!e&&bl(t),i=!e&&!r&&kl(t),o=!e&&!r&&!i&&Tl(t),u=e||r||i||o,a=u?N(t.length,df):[],s=a.length;for(var c in t)!n&&!xf.call(t,c)||u&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ro(c,s))||a.push(c);return a}function Se(t){var n=t.length;return n?t[ei(0,n-1)]:it}function Te(t,n){return eu(Bi(t),Re(n,0,t.length))}function Ce(t){return eu(Bi(t))}function Oe(t,n,e){(e!==it&&!$a(t[n],e)||e===it&&!(n in t))&&Ie(t,n,e)}function Pe(t,n,e){var r=t[n];xf.call(t,n)&&$a(r,e)&&(e!==it||n in t)||Ie(t,n,e)}function Le(t,n){for(var e=t.length;e--;)if($a(t[e][0],n))return e;return-1}function Ne(t,n,e,r){return mh(t,function(t,i,o){n(r,t,e(t),o)}),r}function De(t,n){return t&&Fi(n,Ws(n),t)}function je(t,n){return t&&Fi(n,Gs(n),t)}function Ie(t,n,e){"__proto__"==n&&qf?qf(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}function ze(t,n){for(var e=-1,r=n.length,i=af(r),o=null==t;++e<r;)i[e]=o?it:Fs(t,n[e]);return i}function Re(t,n,e){return t===t&&(e!==it&&(t=e>=t?t:e),n!==it&&(t=t>=n?t:n)),t}function qe(t,n,e,r,i,o){var u,a=n&lt,s=n&pt,f=n&dt;if(e&&(u=i?e(t,r,i,o):e(t)),u!==it)return u;if(!ss(t))return t;var h=xl(t);if(h){if(u=No(t),!a)return Bi(t,u)}else{var l=Ph(t),p=l==$t||l==Zt;if(kl(t))return Ti(t,a);if(l==tn||l==Ut||p&&!i){if(u=s||p?{}:Do(t),!a)return s?Vi(t,je(u,t)):Ui(t,De(u,t))}else{if(!Je[l])return i?t:{};u=jo(t,l,qe,a)}}o||(o=new be);var d=o.get(t);if(d)return d;o.set(t,u);var g=f?s?wo:xo:s?Gs:Ws,v=h?it:g(t);return c(v||t,function(r,i){v&&(i=r,r=t[i]),Pe(u,i,qe(r,n,e,i,t,o))}),u}function Be(t){var n=Ws(t);return function(e){return Fe(e,t,n)}}function Fe(t,n,e){var r=e.length;if(null==t)return!r;for(t=lf(t);r--;){var i=e[r],o=n[i],u=t[i];if(u===it&&!(i in t)||!o(u))return!1}return!0}function Ue(t,n,e){if("function"!=typeof t)throw new gf(st);return Dh(function(){t.apply(it,e)},n)}function Ge(t,n,e,r){var i=-1,o=p,u=!0,a=t.length,s=[],c=n.length;if(!a)return s;e&&(n=g(n,j(e))),r?(o=d,u=!1):n.length>=ut&&(o=z,u=!1,n=new ye(n));t:for(;++i<a;){var f=t[i],h=null==e?f:e(f);if(f=r||0!==f?f:0,u&&h===h){for(var l=c;l--;)if(n[l]===h)continue t;s.push(f)}else o(n,h,r)||s.push(f)}return s}function Ye(t,n){var e=!0;return mh(t,function(t,r,i){return e=!!n(t,r,i)}),e}function Xe(t,n,e){for(var r=-1,i=t.length;++r<i;){var o=t[r],u=n(o);if(null!=u&&(a===it?u===u&&!bs(u):e(u,a)))var a=u,s=o}return s}function He(t,n,e,r){var i=t.length;for(e=As(e),0>e&&(e=-e>i?0:i+e),r=r===it||r>i?i:As(r),0>r&&(r+=i),r=e>r?0:Ss(r);r>e;)t[e++]=n;return t}function Qe(t,n){var e=[];return mh(t,function(t,r,i){n(t,r,i)&&e.push(t)}),e}function tr(t,n,e,r,i){var o=-1,u=t.length;for(e||(e=zo),i||(i=[]);++o<u;){var a=t[o];n>0&&e(a)?n>1?tr(a,n-1,e,r,i):v(i,a):r||(i[i.length]=a)}return i}function nr(t,n){return t&&xh(t,n,Ws)}function er(t,n){return t&&wh(t,n,Ws)}function or(t,n){return l(n,function(n){return os(t[n])})}function ur(t,n){n=Ai(n,t);for(var e=0,r=n.length;null!=t&&r>e;)t=t[ru(n[e++])];return e&&e==r?t:it}function sr(t,n,e){var r=n(t);return xl(t)?r:v(r,e(t))}function cr(t){return null==t?t===it?sn:Qt:Rf&&Rf in lf(t)?Co(t):Zo(t)}function hr(t,n){return t>n}function lr(t,n){return null!=t&&xf.call(t,n)}function mr(t,n){return null!=t&&n in lf(t)}function kr(t,n,e){return t>=Kf(n,e)&&t<Zf(n,e)}function Ar(t,n,e){for(var r=e?d:p,i=t[0].length,o=t.length,u=o,a=af(o),s=1/0,c=[];u--;){var f=t[u];u&&n&&(f=g(f,j(n))),s=Kf(f.length,s),a[u]=!e&&(n||i>=120&&f.length>=120)?new ye(u&&f):it}f=t[0];var h=-1,l=a[0];t:for(;++h<i&&c.length<s;){var v=f[h],y=n?n(v):v;if(v=e||0!==v?v:0,!(l?z(l,y):r(c,y,e))){for(u=o;--u;){var _=a[u];if(!(_?z(_,y):r(t[u],y,e)))continue t}l&&l.push(y),c.push(v)}}return c}function Sr(t,n,e,r){return nr(t,function(t,i,o){n(r,e(t),i,o)}),r}function Tr(t,n,e){n=Ai(n,t),t=Jo(t,n);var r=null==t?t:t[ru(Eu(n))];return null==r?it:a(r,t,e)}function Cr(t){return cs(t)&&cr(t)==Ut}function Or(t){return cs(t)&&cr(t)==hn}function Pr(t){return cs(t)&&cr(t)==Yt}function Lr(t,n,e,r,i){return t===n?!0:null==t||null==n||!cs(t)&&!cs(n)?t!==t&&n!==n:Nr(t,n,e,r,Lr,i)}function Nr(t,n,e,r,i,o){var u=xl(t),a=xl(n),s=u?Vt:Ph(t),c=a?Vt:Ph(n);s=s==Ut?tn:s,c=c==Ut?tn:c;var f=s==tn,h=c==tn,l=s==c;if(l&&kl(t)){if(!kl(n))return!1;u=!0,f=!1}if(l&&!f)return o||(o=new be),u||Tl(t)?yo(t,n,e,r,i,o):_o(t,n,s,e,r,i,o);if(!(e&gt)){var p=f&&xf.call(t,"__wrapped__"),d=h&&xf.call(n,"__wrapped__");if(p||d){var g=p?t.value():t,v=d?n.value():n;return o||(o=new be),i(g,v,e,r,o)}}return l?(o||(o=new be),mo(t,n,e,r,i,o)):!1}function Dr(t){return cs(t)&&Ph(t)==Kt}function jr(t,n,e,r){var i=e.length,o=i,u=!r;if(null==t)return!o;for(t=lf(t);i--;){var a=e[i];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){a=e[i];var s=a[0],c=t[s],f=a[1];if(u&&a[2]){if(c===it&&!(s in t))return!1}else{var h=new be;if(r)var l=r(c,f,s,t,n,h);if(!(l===it?Lr(f,c,gt|vt,r,h):l))return!1}}return!0}function Ir(t){if(!ss(t)||Vo(t))return!1;var n=os(t)?Sf:Zn;return n.test(iu(t))}function zr(t){return cs(t)&&cr(t)==rn}function Rr(t){return cs(t)&&Ph(t)==on}function qr(t){return cs(t)&&as(t.length)&&!!Ke[cr(t)]}function Br(t){return"function"==typeof t?t:null==t?Dc:"object"==typeof t?xl(t)?Yr(t[0],t[1]):Gr(t):Uc(t)}function Fr(t){if(!Wo(t))return $f(t);var n=[];for(var e in lf(t))xf.call(t,e)&&"constructor"!=e&&n.push(e);return n}function Ur(t){if(!ss(t))return $o(t);var n=Wo(t),e=[];for(var r in t)("constructor"!=r||!n&&xf.call(t,r))&&e.push(r);return e}function Vr(t,n){return n>t}function Wr(t,n){var e=-1,r=Za(t)?af(t.length):[];return mh(t,function(t,i,o){r[++e]=n(t,i,o)}),r}function Gr(t){var n=So(t);return 1==n.length&&n[0][2]?Yo(n[0][0],n[0][1]):function(e){return e===t||jr(e,t,n)}}function Yr(t,n){return Bo(t)&&Go(n)?Yo(ru(t),n):function(e){var r=Fs(e,t);return r===it&&r===n?Vs(e,t):Lr(n,r,gt|vt)}}function Xr(t,n,e,r,i){t!==n&&xh(n,function(o,u){if(ss(o))i||(i=new be),Hr(t,n,u,e,Xr,r,i);else{var a=r?r(t[u],o,u+"",t,n,i):it;a===it&&(a=o),Oe(t,u,a)}},Gs)}function Hr(t,n,e,r,i,o,u){var a=t[e],s=n[e],c=u.get(s);if(c)return void Oe(t,e,c);var f=o?o(a,s,e+"",t,n,u):it,h=f===it;if(h){var l=xl(s),p=!l&&kl(s),d=!l&&!p&&Tl(s);f=s,l||p||d?xl(a)?f=a:Ka(a)?f=Bi(a):p?(h=!1,f=Ti(s,!0)):d?(h=!1,f=ji(s,!0)):f=[]:ys(s)||bl(s)?(f=a,bl(a)?f=Cs(a):(!ss(a)||r&&os(a))&&(f=Do(s))):h=!1}h&&(u.set(s,f),i(f,s,r,o,u),u["delete"](s)),Oe(t,e,f)}function $r(t,n){var e=t.length;if(e)return n+=0>n?e:0,Ro(n,e)?t[n]:it}function Zr(t,n,e){var r=-1;n=g(n.length?n:[Dc],j(Eo()));var i=Wr(t,function(t){var e=g(n,function(n){return n(t)});return{criteria:e,index:++r,value:t}});return P(i,function(t,n){return zi(t,n,e)})}function Kr(t,n){return Jr(t,n,function(n,e){return Vs(t,e)})}function Jr(t,n,e){for(var r=-1,i=n.length,o={};++r<i;){var u=n[r],a=ur(t,u);e(a,u)&&si(o,Ai(u,t),a)}return o}function Qr(t){return function(n){return ur(n,t)}}function ti(t,n,e,r){var i=r?E:M,o=-1,u=n.length,a=t;for(t===n&&(n=Bi(n)),e&&(a=g(t,j(e)));++o<u;)for(var s=0,c=n[o],f=e?e(c):c;(s=i(a,f,s,r))>-1;)a!==t&&jf.call(a,s,1),jf.call(t,s,1);return t}function ni(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==o){var o=i;Ro(i)?jf.call(t,i,1):_i(t,i)}}return t}function ei(t,n){return t+Wf(th()*(n-t+1))}function ri(t,n,e,r){for(var i=-1,o=Zf(Vf((n-t)/(e||1)),0),u=af(o);o--;)u[r?o:++i]=t,t+=e;return u}function ii(t,n){var e="";if(!t||1>n||n>jt)return e;do n%2&&(e+=t),n=Wf(n/2),n&&(t+=t);while(n);return e}function oi(t,n){return jh(Ko(t,n,Dc),t+"")}function ui(t){return Se(rc(t))}function ai(t,n){var e=rc(t);return eu(e,Re(n,0,e.length))}function si(t,n,e,r){if(!ss(t))return t;n=Ai(n,t);for(var i=-1,o=n.length,u=o-1,a=t;null!=a&&++i<o;){var s=ru(n[i]),c=e;if(i!=u){var f=a[s];c=r?r(f,s,a):it,c===it&&(c=ss(f)?f:Ro(n[i+1])?[]:{})}Pe(a,s,c),a=a[s]}return t}function ci(t){return eu(rc(t))}function fi(t,n,e){var r=-1,i=t.length;0>n&&(n=-n>i?0:i+n),e=e>i?i:e,0>e&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var o=af(i);++r<i;)o[r]=t[r+n];return o}function hi(t,n){var e;return mh(t,function(t,r,i){return e=n(t,r,i),!e}),!!e}function li(t,n,e){var r=0,i=null==t?r:t.length;if("number"==typeof n&&n===n&&Bt>=i){for(;i>r;){var o=r+i>>>1,u=t[o];null!==u&&!bs(u)&&(e?n>=u:n>u)?r=o+1:i=o}return i}return pi(t,n,Dc,e)}function pi(t,n,e,r){n=e(n);for(var i=0,o=null==t?0:t.length,u=n!==n,a=null===n,s=bs(n),c=n===it;o>i;){var f=Wf((i+o)/2),h=e(t[f]),l=h!==it,p=null===h,d=h===h,g=bs(h);if(u)var v=r||d;else v=c?d&&(r||l):a?d&&l&&(r||!p):s?d&&l&&!p&&(r||!g):p||g?!1:r?n>=h:n>h;v?i=f+1:o=f}return Kf(o,qt)}function di(t,n){for(var e=-1,r=t.length,i=0,o=[];++e<r;){var u=t[e],a=n?n(u):u;if(!e||!$a(a,s)){var s=a;o[i++]=0===u?0:u}}return o}function gi(t){return"number"==typeof t?t:bs(t)?zt:+t}function vi(t){if("string"==typeof t)return t;if(xl(t))return g(t,vi)+"";if(bs(t))return yh?yh.call(t):"";var n=t+"";return"0"==n&&1/t==-Dt?"-0":n}function yi(t,n,e){var r=-1,i=p,o=t.length,u=!0,a=[],s=a;if(e)u=!1,i=d;else if(o>=ut){var c=n?null:Sh(t);if(c)return $(c);u=!1,i=z,s=new ye}else s=n?[]:a;t:for(;++r<o;){var f=t[r],h=n?n(f):f;if(f=e||0!==f?f:0,u&&h===h){for(var l=s.length;l--;)if(s[l]===h)continue t;n&&s.push(h),a.push(f)}else i(s,h,e)||(s!==a&&s.push(h),a.push(f))}return a}function _i(t,n){return n=Ai(n,t),t=Jo(t,n),null==t||delete t[ru(Eu(n))]}function mi(t,n,e,r){return si(t,n,e(ur(t,n)),r)}function bi(t,n,e,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&n(t[o],o,t););return e?fi(t,r?0:o,r?o+1:i):fi(t,r?o+1:0,r?i:o)}function xi(t,n){var e=t;return e instanceof i&&(e=e.value()),y(n,function(t,n){return n.func.apply(n.thisArg,v([t],n.args))},e)}function wi(t,n,e){var r=t.length;if(2>r)return r?yi(t[0]):[];for(var i=-1,o=af(r);++i<r;)for(var u=t[i],a=-1;++a<r;)a!=i&&(o[i]=Ge(o[i]||u,t[a],n,e));return yi(tr(o,1),n,e)}function ki(t,n,e){for(var r=-1,i=t.length,o=n.length,u={};++r<i;){var a=o>r?n[r]:it;e(u,t[r],a)}return u}function Mi(t){return Ka(t)?t:[]}function Ei(t){return"function"==typeof t?t:Dc}function Ai(t,n){return xl(t)?t:Bo(t,n)?[t]:Ih(Ps(t))}function Si(t,n,e){var r=t.length;return e=e===it?r:e,!n&&e>=r?t:fi(t,n,e)}function Ti(t,n){if(n)return t.slice();var e=t.length,r=Pf?Pf(e):new t.constructor(e);return t.copy(r),r}function Ci(t){var n=new t.constructor(t.byteLength);return new Of(n).set(new Of(t)),n}function Oi(t,n){var e=n?Ci(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}function Pi(t,n,e){var r=n?e(Y(t),lt):Y(t);return y(r,o,new t.constructor)}function Li(t){var n=new t.constructor(t.source,Xn.exec(t));return n.lastIndex=t.lastIndex,n}function Ni(t,n,e){var r=n?e($(t),lt):$(t);return y(r,u,new t.constructor)}function Di(t){return vh?lf(vh.call(t)):{}}function ji(t,n){var e=n?Ci(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function Ii(t,n){if(t!==n){var e=t!==it,r=null===t,i=t===t,o=bs(t),u=n!==it,a=null===n,s=n===n,c=bs(n);if(!a&&!c&&!o&&t>n||o&&u&&s&&!a&&!c||r&&u&&s||!e&&s||!i)return 1;if(!r&&!o&&!c&&n>t||c&&e&&i&&!r&&!o||a&&e&&i||!u&&i||!s)return-1}return 0}function zi(t,n,e){for(var r=-1,i=t.criteria,o=n.criteria,u=i.length,a=e.length;++r<u;){var s=Ii(i[r],o[r]);if(s){if(r>=a)return s;var c=e[r];return s*("desc"==c?-1:1)}}return t.index-n.index}function Ri(t,n,e,r){for(var i=-1,o=t.length,u=e.length,a=-1,s=n.length,c=Zf(o-u,0),f=af(s+c),h=!r;++a<s;)f[a]=n[a];for(;++i<u;)(h||o>i)&&(f[e[i]]=t[i]);for(;c--;)f[a++]=t[i++];return f}function qi(t,n,e,r){for(var i=-1,o=t.length,u=-1,a=e.length,s=-1,c=n.length,f=Zf(o-a,0),h=af(f+c),l=!r;++i<f;)h[i]=t[i];for(var p=i;++s<c;)h[p+s]=n[s];for(;++u<a;)(l||o>i)&&(h[p+e[u]]=t[i++]);return h}function Bi(t,n){var e=-1,r=t.length;for(n||(n=af(r));++e<r;)n[e]=t[e];return n}function Fi(t,n,e,r){var i=!e;e||(e={});for(var o=-1,u=n.length;++o<u;){var a=n[o],s=r?r(e[a],t[a],a,e,t):it;s===it&&(s=t[a]),i?Ie(e,a,s):Pe(e,a,s)}return e}function Ui(t,n){return Fi(t,Ch(t),n)}function Vi(t,n){return Fi(t,Oh(t),n)}function Wi(t,n){return function(e,r){var i=xl(e)?s:Ne,o=n?n():{};return i(e,t,Eo(r,2),o)}}function Gi(t){return oi(function(n,e){var r=-1,i=e.length,o=i>1?e[i-1]:it,u=i>2?e[2]:it;for(o=t.length>3&&"function"==typeof o?(i--,o):it,u&&qo(e[0],e[1],u)&&(o=3>i?it:o,i=1),n=lf(n);++r<i;){var a=e[r];a&&t(n,a,r,o)}return n})}function Yi(t,n){return function(e,r){if(null==e)return e;if(!Za(e))return t(e,r);for(var i=e.length,o=n?i:-1,u=lf(e);(n?o--:++o<i)&&r(u[o],o,u)!==!1;);return e}}function Xi(t){return function(n,e,r){for(var i=-1,o=lf(n),u=r(n),a=u.length;a--;){var s=u[t?a:++i];if(e(o[s],s,o)===!1)break}return n}}function Hi(t,n,e){function r(){var n=this&&this!==ar&&this instanceof r?o:t;return n.apply(i?e:this,arguments)}var i=n&yt,o=Ki(t);return r}function $i(t){return function(n){n=Ps(n);var e=V(n)?tt(n):it,r=e?e[0]:n.charAt(0),i=e?Si(e,1).join(""):n.slice(1);return r[t]()+i}}function Zi(t){return function(n){return y(Cc(cc(n).replace(Ve,"")),t,"")}}function Ki(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6]);
}var e=_h(t.prototype),r=t.apply(e,n);return ss(r)?r:e}}function Ji(t,n,e){function r(){for(var o=arguments.length,u=af(o),s=o,c=Mo(r);s--;)u[s]=arguments[s];var f=3>o&&u[0]!==c&&u[o-1]!==c?[]:H(u,c);if(o-=f.length,e>o)return co(t,n,no,r.placeholder,it,u,f,it,it,e-o);var h=this&&this!==ar&&this instanceof r?i:t;return a(h,this,u)}var i=Ki(t);return r}function Qi(t){return function(n,e,r){var i=lf(n);if(!Za(n)){var o=Eo(e,3);n=Ws(n),e=function(t){return o(i[t],t,i)}}var u=t(n,e,r);return u>-1?i[o?n[u]:u]:it}}function to(t){return bo(function(n){var e=n.length,i=e,o=r.prototype.thru;for(t&&n.reverse();i--;){var u=n[i];if("function"!=typeof u)throw new gf(st);if(o&&!a&&"wrapper"==ko(u))var a=new r([],!0)}for(i=a?i:e;++i<e;){u=n[i];var s=ko(u),c="wrapper"==s?Th(u):it;a=c&&Uo(c[0])&&c[1]==(Mt|bt|wt|Et)&&!c[4].length&&1==c[9]?a[ko(c[0])].apply(a,c[3]):1==u.length&&Uo(u)?a[s]():a.thru(u)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&xl(r))return a.plant(r).value();for(var i=0,o=e?n[i].apply(this,t):r;++i<e;)o=n[i].call(this,o);return o}})}function no(t,n,e,r,i,o,u,a,s,c){function f(){for(var y=arguments.length,_=af(y),m=y;m--;)_[m]=arguments[m];if(d)var b=Mo(f),x=B(_,b);if(r&&(_=Ri(_,r,i,d)),o&&(_=qi(_,o,u,d)),y-=x,d&&c>y){var w=H(_,b);return co(t,n,no,f.placeholder,e,_,w,a,s,c-y)}var k=l?e:this,M=p?k[t]:t;return y=_.length,a?_=Qo(_,a):g&&y>1&&_.reverse(),h&&y>s&&(_.length=s),this&&this!==ar&&this instanceof f&&(M=v||Ki(M)),M.apply(k,_)}var h=n&Mt,l=n&yt,p=n&_t,d=n&(bt|xt),g=n&At,v=p?it:Ki(t);return f}function eo(t,n){return function(e,r){return Sr(e,t,n(r),{})}}function ro(t,n){return function(e,r){var i;if(e===it&&r===it)return n;if(e!==it&&(i=e),r!==it){if(i===it)return r;"string"==typeof e||"string"==typeof r?(e=vi(e),r=vi(r)):(e=gi(e),r=gi(r)),i=t(e,r)}return i}}function io(t){return bo(function(n){return n=g(n,j(Eo())),oi(function(e){var r=this;return t(n,function(t){return a(t,r,e)})})})}function oo(t,n){n=n===it?" ":vi(n);var e=n.length;if(2>e)return e?ii(n,t):n;var r=ii(n,Vf(t/Q(n)));return V(n)?Si(tt(r),0,t).join(""):r.slice(0,t)}function uo(t,n,e,r){function i(){for(var n=-1,s=arguments.length,c=-1,f=r.length,h=af(f+s),l=this&&this!==ar&&this instanceof i?u:t;++c<f;)h[c]=r[c];for(;s--;)h[c++]=arguments[++n];return a(l,o?e:this,h)}var o=n&yt,u=Ki(t);return i}function ao(t){return function(n,e,r){return r&&"number"!=typeof r&&qo(n,e,r)&&(e=r=it),n=Es(n),e===it?(e=n,n=0):e=Es(e),r=r===it?e>n?1:-1:Es(r),ri(n,e,r,t)}}function so(t){return function(n,e){return("string"!=typeof n||"string"!=typeof e)&&(n=Ts(n),e=Ts(e)),t(n,e)}}function co(t,n,e,r,i,o,u,a,s,c){var f=n&bt,h=f?u:it,l=f?it:u,p=f?o:it,d=f?it:o;n|=f?wt:kt,n&=~(f?kt:wt),n&mt||(n&=~(yt|_t));var g=[t,n,i,p,h,d,l,a,s,c],v=e.apply(it,g);return Uo(t)&&Nh(v,g),v.placeholder=r,tu(v,t,n)}function fo(t){var n=hf[t];return function(t,e){if(t=Ts(t),e=null==e?0:Kf(As(e),292)){var r=(Ps(t)+"e").split("e"),i=n(r[0]+"e"+(+r[1]+e));return r=(Ps(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-e))}return n(t)}}function ho(t){return function(n){var e=Ph(n);return e==Kt?Y(n):e==on?Z(n):D(n,t(n))}}function lo(t,n,e,r,i,o,u,a){var s=n&_t;if(!s&&"function"!=typeof t)throw new gf(st);var c=r?r.length:0;if(c||(n&=~(wt|kt),r=i=it),u=u===it?u:Zf(As(u),0),a=a===it?a:As(a),c-=i?i.length:0,n&kt){var f=r,h=i;r=i=it}var l=s?it:Th(t),p=[t,n,e,r,i,f,h,o,u,a];if(l&&Ho(p,l),t=p[0],n=p[1],e=p[2],r=p[3],i=p[4],a=p[9]=p[9]===it?s?0:t.length:Zf(p[9]-c,0),!a&&n&(bt|xt)&&(n&=~(bt|xt)),n&&n!=yt)d=n==bt||n==xt?Ji(t,n,a):n!=wt&&n!=(yt|wt)||i.length?no.apply(it,p):uo(t,n,e,r);else var d=Hi(t,n,e);var g=l?kh:Nh;return tu(g(d,p),t,n)}function po(t,n,e,r){return t===it||$a(t,_f[e])&&!xf.call(r,e)?n:t}function go(t,n,e,r,i,o){return ss(t)&&ss(n)&&(o.set(n,t),Xr(t,n,it,go,o),o["delete"](n)),t}function vo(t){return ys(t)?it:t}function yo(t,n,e,r,i,o){var u=e&gt,a=t.length,s=n.length;if(a!=s&&!(u&&s>a))return!1;var c=o.get(t);if(c&&o.get(n))return c==n;var f=-1,h=!0,l=e&vt?new ye:it;for(o.set(t,n),o.set(n,t);++f<a;){var p=t[f],d=n[f];if(r)var g=u?r(d,p,f,n,t,o):r(p,d,f,t,n,o);if(g!==it){if(g)continue;h=!1;break}if(l){if(!m(n,function(t,n){return z(l,n)||p!==t&&!i(p,t,e,r,o)?void 0:l.push(n)})){h=!1;break}}else if(p!==d&&!i(p,d,e,r,o)){h=!1;break}}return o["delete"](t),o["delete"](n),h}function _o(t,n,e,r,i,o,u){switch(e){case ln:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case hn:return t.byteLength==n.byteLength&&o(new Of(t),new Of(n))?!0:!1;case Gt:case Yt:case Jt:return $a(+t,+n);case Ht:return t.name==n.name&&t.message==n.message;case rn:case un:return t==n+"";case Kt:var a=Y;case on:var s=r&gt;if(a||(a=$),t.size!=n.size&&!s)return!1;var c=u.get(t);if(c)return c==n;r|=vt,u.set(t,n);var f=yo(a(t),a(n),r,i,o,u);return u["delete"](t),f;case an:if(vh)return vh.call(t)==vh.call(n)}return!1}function mo(t,n,e,r,i,o){var u=e&gt,a=xo(t),s=a.length,c=xo(n),f=c.length;if(s!=f&&!u)return!1;for(var h=s;h--;){var l=a[h];if(!(u?l in n:xf.call(n,l)))return!1}var p=o.get(t);if(p&&o.get(n))return p==n;var d=!0;o.set(t,n),o.set(n,t);for(var g=u;++h<s;){l=a[h];var v=t[l],y=n[l];if(r)var _=u?r(y,v,l,n,t,o):r(v,y,l,t,n,o);if(!(_===it?v===y||i(v,y,e,r,o):_)){d=!1;break}g||(g="constructor"==l)}if(d&&!g){var m=t.constructor,b=n.constructor;m!=b&&"constructor"in t&&"constructor"in n&&!("function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b)&&(d=!1)}return o["delete"](t),o["delete"](n),d}function bo(t){return jh(Ko(t,it,yu),t+"")}function xo(t){return sr(t,Ws,Ch)}function wo(t){return sr(t,Gs,Oh)}function ko(t){for(var n=t.name+"",e=ch[n],r=xf.call(ch,n)?e.length:0;r--;){var i=e[r],o=i.func;if(null==o||o==t)return i.name}return n}function Mo(t){var e=xf.call(n,"placeholder")?n:t;return e.placeholder}function Eo(){var t=n.iteratee||jc;return t=t===jc?Br:t,arguments.length?t(arguments[0],arguments[1]):t}function Ao(t,n){var e=t.__data__;return Fo(n)?e["string"==typeof n?"string":"hash"]:e.map}function So(t){for(var n=Ws(t),e=n.length;e--;){var r=n[e],i=t[r];n[e]=[r,i,Go(i)]}return n}function To(t,n){var e=U(t,n);return Ir(e)?e:it}function Co(t){var n=xf.call(t,Rf),e=t[Rf];try{t[Rf]=it;var r=!0}catch(i){}var o=Mf.call(t);return r&&(n?t[Rf]=e:delete t[Rf]),o}function Oo(t,n,e){for(var r=-1,i=e.length;++r<i;){var o=e[r],u=o.size;switch(o.type){case"drop":t+=u;break;case"dropRight":n-=u;break;case"take":n=Kf(n,t+u);break;case"takeRight":t=Zf(t,n-u)}}return{start:t,end:n}}function Po(t){var n=t.match(Un);return n?n[1].split(Vn):[]}function Lo(t,n,e){n=Ai(n,t);for(var r=-1,i=n.length,o=!1;++r<i;){var u=ru(n[r]);if(!(o=null!=t&&e(t,u)))break;t=t[u]}return o||++r!=i?o:(i=null==t?0:t.length,!!i&&as(i)&&Ro(u,i)&&(xl(t)||bl(t)))}function No(t){var n=t.length,e=t.constructor(n);return n&&"string"==typeof t[0]&&xf.call(t,"index")&&(e.index=t.index,e.input=t.input),e}function Do(t){return"function"!=typeof t.constructor||Wo(t)?{}:_h(Lf(t))}function jo(t,n,e,r){var i=t.constructor;switch(n){case hn:return Ci(t);case Gt:case Yt:return new i(+t);case ln:return Oi(t,r);case pn:case dn:case gn:case vn:case yn:case _n:case mn:case bn:case xn:return ji(t,r);case Kt:return Pi(t,r,e);case Jt:case un:return new i(t);case rn:return Li(t);case on:return Ni(t,r,e);case an:return Di(t)}}function Io(t,n){var e=n.length;if(!e)return t;var r=e-1;return n[r]=(e>1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(Fn,"{\n/* [wrapped with "+n+"] */\n")}function zo(t){return xl(t)||bl(t)||!!(If&&t&&t[If])}function Ro(t,n){return n=null==n?jt:n,!!n&&("number"==typeof t||Jn.test(t))&&t>-1&&t%1==0&&n>t}function qo(t,n,e){if(!ss(e))return!1;var r=typeof n;return("number"==r?Za(e)&&Ro(n,e.length):"string"==r&&n in e)?$a(e[n],t):!1}function Bo(t,n){if(xl(t))return!1;var e=typeof t;return"number"==e||"symbol"==e||"boolean"==e||null==t||bs(t)?!0:Nn.test(t)||!Ln.test(t)||null!=n&&t in lf(n)}function Fo(t){var n=typeof t;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t}function Uo(t){var e=ko(t),r=n[e];if("function"!=typeof r||!(e in i.prototype))return!1;if(t===r)return!0;var o=Th(r);return!!o&&t===o[0]}function Vo(t){return!!kf&&kf in t}function Wo(t){var n=t&&t.constructor,e="function"==typeof n&&n.prototype||_f;return t===e}function Go(t){return t===t&&!ss(t)}function Yo(t,n){return function(e){return null==e?!1:e[t]===n&&(n!==it||t in lf(e))}}function Xo(t){var n=ja(t,function(t){return e.size===ft&&e.clear(),t}),e=n.cache;return n}function Ho(t,n){var e=t[1],r=n[1],i=e|r,o=(yt|_t|Mt)>i,u=r==Mt&&e==bt||r==Mt&&e==Et&&t[7].length<=n[8]||r==(Mt|Et)&&n[7].length<=n[8]&&e==bt;if(!o&&!u)return t;r&yt&&(t[2]=n[2],i|=e&yt?0:mt);var a=n[3];if(a){var s=t[3];t[3]=s?Ri(s,a,n[4]):a,t[4]=s?H(t[3],ht):n[4]}return a=n[5],a&&(s=t[5],t[5]=s?qi(s,a,n[6]):a,t[6]=s?H(t[5],ht):n[6]),a=n[7],a&&(t[7]=a),r&Mt&&(t[8]=null==t[8]?n[8]:Kf(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=i,t}function $o(t){var n=[];if(null!=t)for(var e in lf(t))n.push(e);return n}function Zo(t){return Mf.call(t)}function Ko(t,n,e){return n=Zf(n===it?t.length-1:n,0),function(){for(var r=arguments,i=-1,o=Zf(r.length-n,0),u=af(o);++i<o;)u[i]=r[n+i];i=-1;for(var s=af(n+1);++i<n;)s[i]=r[i];return s[n]=e(u),a(t,this,s)}}function Jo(t,n){return n.length<2?t:ur(t,fi(n,0,-1))}function Qo(t,n){for(var e=t.length,r=Kf(n.length,e),i=Bi(t);r--;){var o=n[r];t[r]=Ro(o,e)?i[o]:it}return t}function tu(t,n,e){var r=n+"";return jh(t,Io(r,ou(Po(r),e)))}function nu(t){var n=0,e=0;return function(){var r=Jf(),i=Ot-(r-e);if(e=r,i>0){if(++n>=Ct)return arguments[0]}else n=0;return t.apply(it,arguments)}}function eu(t,n){var e=-1,r=t.length,i=r-1;for(n=n===it?r:n;++e<n;){var o=ei(e,i),u=t[o];t[o]=t[e],t[e]=u}return t.length=n,t}function ru(t){if("string"==typeof t||bs(t))return t;var n=t+"";return"0"==n&&1/t==-Dt?"-0":n}function iu(t){if(null!=t){try{return bf.call(t)}catch(n){}try{return t+""}catch(n){}}return""}function ou(t,n){return c(Ft,function(e){var r="_."+e[0];n&e[1]&&!p(t,r)&&t.push(r)}),t.sort()}function uu(t){if(t instanceof i)return t.clone();var n=new r(t.__wrapped__,t.__chain__);return n.__actions__=Bi(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}function au(t,n,e){n=(e?qo(t,n,e):n===it)?1:Zf(As(n),0);var r=null==t?0:t.length;if(!r||1>n)return[];for(var i=0,o=0,u=af(Vf(r/n));r>i;)u[o++]=fi(t,i,i+=n);return u}function su(t){for(var n=-1,e=null==t?0:t.length,r=0,i=[];++n<e;){var o=t[n];o&&(i[r++]=o)}return i}function cu(){var t=arguments.length;if(!t)return[];for(var n=af(t-1),e=arguments[0],r=t;r--;)n[r-1]=arguments[r];return v(xl(e)?Bi(e):[e],tr(n,1))}function fu(t,n,e){var r=null==t?0:t.length;return r?(n=e||n===it?1:As(n),fi(t,0>n?0:n,r)):[]}function hu(t,n,e){var r=null==t?0:t.length;return r?(n=e||n===it?1:As(n),n=r-n,fi(t,0,0>n?0:n)):[]}function lu(t,n){return t&&t.length?bi(t,Eo(n,3),!0,!0):[]}function pu(t,n){return t&&t.length?bi(t,Eo(n,3),!0):[]}function du(t,n,e,r){var i=null==t?0:t.length;return i?(e&&"number"!=typeof e&&qo(t,n,e)&&(e=0,r=i),He(t,n,e,r)):[]}function gu(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:As(e);return 0>i&&(i=Zf(r+i,0)),k(t,Eo(n,3),i)}function vu(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return e!==it&&(i=As(e),i=0>e?Zf(r+i,0):Kf(i,r-1)),k(t,Eo(n,3),i,!0)}function yu(t){var n=null==t?0:t.length;return n?tr(t,1):[]}function _u(t){var n=null==t?0:t.length;return n?tr(t,Dt):[]}function mu(t,n){var e=null==t?0:t.length;return e?(n=n===it?1:As(n),tr(t,n)):[]}function bu(t){for(var n=-1,e=null==t?0:t.length,r={};++n<e;){var i=t[n];r[i[0]]=i[1]}return r}function xu(t){return t&&t.length?t[0]:it}function wu(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:As(e);return 0>i&&(i=Zf(r+i,0)),M(t,n,i)}function ku(t){var n=null==t?0:t.length;return n?fi(t,0,-1):[]}function Mu(t,n){return null==t?"":Hf.call(t,n)}function Eu(t){var n=null==t?0:t.length;return n?t[n-1]:it}function Au(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=r;return e!==it&&(i=As(e),i=0>i?Zf(r+i,0):Kf(i,r-1)),n===n?J(t,n,i):k(t,A,i,!0)}function Su(t,n){return t&&t.length?$r(t,As(n)):it}function Tu(t,n){return t&&t.length&&n&&n.length?ti(t,n):t}function Cu(t,n,e){return t&&t.length&&n&&n.length?ti(t,n,Eo(e,2)):t}function Ou(t,n,e){return t&&t.length&&n&&n.length?ti(t,n,it,e):t}function Pu(t,n){var e=[];if(!t||!t.length)return e;var r=-1,i=[],o=t.length;for(n=Eo(n,3);++r<o;){var u=t[r];n(u,r,t)&&(e.push(u),i.push(r))}return ni(t,i),e}function Lu(t){return null==t?t:nh.call(t)}function Nu(t,n,e){var r=null==t?0:t.length;return r?(e&&"number"!=typeof e&&qo(t,n,e)?(n=0,e=r):(n=null==n?0:As(n),e=e===it?r:As(e)),fi(t,n,e)):[]}function Du(t,n){return li(t,n)}function ju(t,n,e){return pi(t,n,Eo(e,2))}function Iu(t,n){var e=null==t?0:t.length;if(e){var r=li(t,n);if(e>r&&$a(t[r],n))return r}return-1}function zu(t,n){return li(t,n,!0)}function Ru(t,n,e){return pi(t,n,Eo(e,2),!0)}function qu(t,n){var e=null==t?0:t.length;if(e){var r=li(t,n,!0)-1;if($a(t[r],n))return r}return-1}function Bu(t){return t&&t.length?di(t):[]}function Fu(t,n){return t&&t.length?di(t,Eo(n,2)):[]}function Uu(t){var n=null==t?0:t.length;return n?fi(t,1,n):[]}function Vu(t,n,e){return t&&t.length?(n=e||n===it?1:As(n),fi(t,0,0>n?0:n)):[]}function Wu(t,n,e){var r=null==t?0:t.length;return r?(n=e||n===it?1:As(n),n=r-n,fi(t,0>n?0:n,r)):[]}function Gu(t,n){return t&&t.length?bi(t,Eo(n,3),!1,!0):[]}function Yu(t,n){return t&&t.length?bi(t,Eo(n,3)):[]}function Xu(t){return t&&t.length?yi(t):[]}function Hu(t,n){return t&&t.length?yi(t,Eo(n,2)):[]}function $u(t,n){return n="function"==typeof n?n:it,t&&t.length?yi(t,it,n):[]}function Zu(t){if(!t||!t.length)return[];var n=0;return t=l(t,function(t){return Ka(t)?(n=Zf(t.length,n),!0):void 0}),N(n,function(n){return g(t,T(n))})}function Ku(t,n){if(!t||!t.length)return[];var e=Zu(t);return null==n?e:g(e,function(t){return a(n,it,t)})}function Ju(t,n){return ki(t||[],n||[],Pe)}function Qu(t,n){return ki(t||[],n||[],si)}function ta(t){var e=n(t);return e.__chain__=!0,e}function na(t,n){return n(t),t}function ea(t,n){return n(t)}function ra(){return ta(this)}function ia(){return new r(this.value(),this.__chain__)}function oa(){this.__values__===it&&(this.__values__=Ms(this.value()));var t=this.__index__>=this.__values__.length,n=t?it:this.__values__[this.__index__++];return{done:t,value:n}}function ua(){return this}function aa(t){for(var n,r=this;r instanceof e;){var i=uu(r);i.__index__=0,i.__values__=it,n?o.__wrapped__=i:n=i;var o=i;r=r.__wrapped__}return o.__wrapped__=t,n}function sa(){var t=this.__wrapped__;if(t instanceof i){var n=t;return this.__actions__.length&&(n=new i(this)),n=n.reverse(),n.__actions__.push({func:ea,args:[Lu],thisArg:it}),new r(n,this.__chain__)}return this.thru(Lu)}function ca(){return xi(this.__wrapped__,this.__actions__)}function fa(t,n,e){var r=xl(t)?h:Ye;return e&&qo(t,n,e)&&(n=it),r(t,Eo(n,3))}function ha(t,n){var e=xl(t)?l:Qe;return e(t,Eo(n,3))}function la(t,n){return tr(_a(t,n),1)}function pa(t,n){return tr(_a(t,n),Dt)}function da(t,n,e){return e=e===it?1:As(e),tr(_a(t,n),e)}function ga(t,n){var e=xl(t)?c:mh;return e(t,Eo(n,3))}function va(t,n){var e=xl(t)?f:bh;return e(t,Eo(n,3))}function ya(t,n,e,r){t=Za(t)?t:rc(t),e=e&&!r?As(e):0;var i=t.length;return 0>e&&(e=Zf(i+e,0)),ms(t)?i>=e&&t.indexOf(n,e)>-1:!!i&&M(t,n,e)>-1}function _a(t,n){var e=xl(t)?g:Wr;return e(t,Eo(n,3))}function ma(t,n,e,r){return null==t?[]:(xl(n)||(n=null==n?[]:[n]),e=r?it:e,xl(e)||(e=null==e?[]:[e]),Zr(t,n,e))}function ba(t,n,e){var r=xl(t)?y:O,i=arguments.length<3;return r(t,Eo(n,4),e,i,mh)}function xa(t,n,e){var r=xl(t)?_:O,i=arguments.length<3;return r(t,Eo(n,4),e,i,bh)}function wa(t,n){var e=xl(t)?l:Qe;return e(t,Ia(Eo(n,3)))}function ka(t){var n=xl(t)?Se:ui;return n(t)}function Ma(t,n,e){n=(e?qo(t,n,e):n===it)?1:As(n);var r=xl(t)?Te:ai;return r(t,n)}function Ea(t){var n=xl(t)?Ce:ci;return n(t)}function Aa(t){if(null==t)return 0;if(Za(t))return ms(t)?Q(t):t.length;var n=Ph(t);return n==Kt||n==on?t.size:Fr(t).length}function Sa(t,n,e){var r=xl(t)?m:hi;return e&&qo(t,n,e)&&(n=it),r(t,Eo(n,3))}function Ta(t,n){if("function"!=typeof n)throw new gf(st);return t=As(t),function(){return--t<1?n.apply(this,arguments):void 0}}function Ca(t,n,e){return n=e?it:n,n=t&&null==n?t.length:n,lo(t,Mt,it,it,it,it,n)}function Oa(t,n){var e;if("function"!=typeof n)throw new gf(st);return t=As(t),function(){return--t>0&&(e=n.apply(this,arguments)),1>=t&&(n=it),e}}function Pa(t,n,e){n=e?it:n;var r=lo(t,bt,it,it,it,it,it,n);return r.placeholder=Pa.placeholder,r}function La(t,n,e){n=e?it:n;var r=lo(t,xt,it,it,it,it,it,n);return r.placeholder=La.placeholder,r}function Na(t,n,e){function r(n){var e=l,r=p;return l=p=it,_=n,g=t.apply(r,e)}function i(t){return _=t,v=Dh(a,n),m?r(t):g}function o(t){var e=t-y,r=t-_,i=n-e;return b?Kf(i,d-r):i}function u(t){var e=t-y,r=t-_;return y===it||e>=n||0>e||b&&r>=d}function a(){var t=cl();return u(t)?s(t):void(v=Dh(a,o(t)))}function s(t){return v=it,x&&l?r(t):(l=p=it,g)}function c(){v!==it&&Ah(v),_=0,l=y=p=v=it}function f(){return v===it?g:s(cl())}function h(){var t=cl(),e=u(t);if(l=arguments,p=this,y=t,e){if(v===it)return i(y);if(b)return v=Dh(a,n),r(y)}return v===it&&(v=Dh(a,n)),g}var l,p,d,g,v,y,_=0,m=!1,b=!1,x=!0;if("function"!=typeof t)throw new gf(st);return n=Ts(n)||0,ss(e)&&(m=!!e.leading,b="maxWait"in e,d=b?Zf(Ts(e.maxWait)||0,n):d,x="trailing"in e?!!e.trailing:x),h.cancel=c,h.flush=f,h}function Da(t){return lo(t,At)}function ja(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new gf(st);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var u=t.apply(this,r);return e.cache=o.set(i,u)||o,u};return e.cache=new(ja.Cache||he),e}function Ia(t){if("function"!=typeof t)throw new gf(st);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}function za(t){return Oa(2,t)}function Ra(t,n){if("function"!=typeof t)throw new gf(st);return n=n===it?n:As(n),oi(t,n)}function qa(t,n){if("function"!=typeof t)throw new gf(st);return n=null==n?0:Zf(As(n),0),oi(function(e){var r=e[n],i=Si(e,0,n);return r&&v(i,r),a(t,this,i)})}function Ba(t,n,e){var r=!0,i=!0;if("function"!=typeof t)throw new gf(st);return ss(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),Na(t,n,{leading:r,maxWait:n,trailing:i})}function Fa(t){return Ca(t,1)}function Ua(t,n){return gl(Ei(n),t)}function Va(){if(!arguments.length)return[];var t=arguments[0];return xl(t)?t:[t]}function Wa(t){return qe(t,dt)}function Ga(t,n){return n="function"==typeof n?n:it,qe(t,dt,n)}function Ya(t){return qe(t,lt|dt)}function Xa(t,n){return n="function"==typeof n?n:it,qe(t,lt|dt,n)}function Ha(t,n){return null==n||Fe(t,n,Ws(n))}function $a(t,n){return t===n||t!==t&&n!==n}function Za(t){return null!=t&&as(t.length)&&!os(t)}function Ka(t){return cs(t)&&Za(t)}function Ja(t){return t===!0||t===!1||cs(t)&&cr(t)==Gt}function Qa(t){return cs(t)&&1===t.nodeType&&!ys(t)}function ts(t){if(null==t)return!0;if(Za(t)&&(xl(t)||"string"==typeof t||"function"==typeof t.splice||kl(t)||Tl(t)||bl(t)))return!t.length;var n=Ph(t);if(n==Kt||n==on)return!t.size;if(Wo(t))return!Fr(t).length;for(var e in t)if(xf.call(t,e))return!1;return!0}function ns(t,n){return Lr(t,n)}function es(t,n,e){e="function"==typeof e?e:it;var r=e?e(t,n):it;return r===it?Lr(t,n,it,e):!!r}function rs(t){if(!cs(t))return!1;var n=cr(t);return n==Ht||n==Xt||"string"==typeof t.message&&"string"==typeof t.name&&!ys(t)}function is(t){return"number"==typeof t&&Xf(t)}function os(t){if(!ss(t))return!1;var n=cr(t);return n==$t||n==Zt||n==Wt||n==en}function us(t){return"number"==typeof t&&t==As(t)}function as(t){return"number"==typeof t&&t>-1&&t%1==0&&jt>=t}function ss(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function cs(t){return null!=t&&"object"==typeof t}function fs(t,n){return t===n||jr(t,n,So(n))}function hs(t,n,e){return e="function"==typeof e?e:it,jr(t,n,So(n),e)}function ls(t){return vs(t)&&t!=+t}function ps(t){if(Lh(t))throw new cf(at);return Ir(t)}function ds(t){return null===t}function gs(t){return null==t}function vs(t){return"number"==typeof t||cs(t)&&cr(t)==Jt}function ys(t){if(!cs(t)||cr(t)!=tn)return!1;var n=Lf(t);if(null===n)return!0;var e=xf.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&bf.call(e)==Ef}function _s(t){return us(t)&&t>=-jt&&jt>=t}function ms(t){return"string"==typeof t||!xl(t)&&cs(t)&&cr(t)==un}function bs(t){return"symbol"==typeof t||cs(t)&&cr(t)==an}function xs(t){return t===it}function ws(t){return cs(t)&&Ph(t)==cn}function ks(t){return cs(t)&&cr(t)==fn}function Ms(t){if(!t)return[];if(Za(t))return ms(t)?tt(t):Bi(t);if(zf&&t[zf])return G(t[zf]());var n=Ph(t),e=n==Kt?Y:n==on?$:rc;return e(t)}function Es(t){if(!t)return 0===t?t:0;if(t=Ts(t),t===Dt||t===-Dt){var n=0>t?-1:1;return n*It}return t===t?t:0}function As(t){var n=Es(t),e=n%1;return n===n?e?n-e:n:0}function Ss(t){return t?Re(As(t),0,Rt):0}function Ts(t){if("number"==typeof t)return t;if(bs(t))return zt;if(ss(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=ss(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Rn,"");var e=$n.test(t);return e||Kn.test(t)?ir(t.slice(2),e?2:8):Hn.test(t)?zt:+t}function Cs(t){return Fi(t,Gs(t))}function Os(t){return t?Re(As(t),-jt,jt):0===t?t:0}function Ps(t){return null==t?"":vi(t)}function Ls(t,n){var e=_h(t);return null==n?e:De(e,n)}function Ns(t,n){return w(t,Eo(n,3),nr)}function Ds(t,n){return w(t,Eo(n,3),er)}function js(t,n){return null==t?t:xh(t,Eo(n,3),Gs)}function Is(t,n){return null==t?t:wh(t,Eo(n,3),Gs)}function zs(t,n){return t&&nr(t,Eo(n,3))}function Rs(t,n){return t&&er(t,Eo(n,3))}function qs(t){return null==t?[]:or(t,Ws(t))}function Bs(t){return null==t?[]:or(t,Gs(t))}function Fs(t,n,e){var r=null==t?it:ur(t,n);return r===it?e:r}function Us(t,n){return null!=t&&Lo(t,n,lr)}function Vs(t,n){return null!=t&&Lo(t,n,mr)}function Ws(t){return Za(t)?Ae(t):Fr(t)}function Gs(t){return Za(t)?Ae(t,!0):Ur(t)}function Ys(t,n){var e={};return n=Eo(n,3),nr(t,function(t,r,i){Ie(e,n(t,r,i),t)}),e}function Xs(t,n){var e={};return n=Eo(n,3),nr(t,function(t,r,i){Ie(e,r,n(t,r,i))}),e}function Hs(t,n){return $s(t,Ia(Eo(n)))}function $s(t,n){if(null==t)return{};var e=g(wo(t),function(t){return[t]});return n=Eo(n),Jr(t,e,function(t,e){return n(t,e[0])})}function Zs(t,n,e){n=Ai(n,t);var r=-1,i=n.length;for(i||(i=1,t=it);++r<i;){var o=null==t?it:t[ru(n[r])];o===it&&(r=i,o=e),t=os(o)?o.call(t):o}return t}function Ks(t,n,e){return null==t?t:si(t,n,e)}function Js(t,n,e,r){return r="function"==typeof r?r:it,null==t?t:si(t,n,e,r)}function Qs(t,n,e){var r=xl(t),i=r||kl(t)||Tl(t);if(n=Eo(n,4),null==e){var o=t&&t.constructor;e=i?r?new o:[]:ss(t)&&os(o)?_h(Lf(t)):{}}return(i?c:nr)(t,function(t,r,i){return n(e,t,r,i)}),e}function tc(t,n){return null==t?!0:_i(t,n)}function nc(t,n,e){return null==t?t:mi(t,n,Ei(e))}function ec(t,n,e,r){return r="function"==typeof r?r:it,null==t?t:mi(t,n,Ei(e),r)}function rc(t){return null==t?[]:I(t,Ws(t))}function ic(t){return null==t?[]:I(t,Gs(t))}function oc(t,n,e){return e===it&&(e=n,n=it),e!==it&&(e=Ts(e),e=e===e?e:0),n!==it&&(n=Ts(n),n=n===n?n:0),Re(Ts(t),n,e)}function uc(t,n,e){return n=Es(n),e===it?(e=n,n=0):e=Es(e),t=Ts(t),kr(t,n,e)}function ac(t,n,e){if(e&&"boolean"!=typeof e&&qo(t,n,e)&&(n=e=it),e===it&&("boolean"==typeof n?(e=n,n=it):"boolean"==typeof t&&(e=t,t=it)),t===it&&n===it?(t=0,n=1):(t=Es(t),n===it?(n=t,t=0):n=Es(n)),t>n){var r=t;t=n,n=r}if(e||t%1||n%1){var i=th();return Kf(t+i*(n-t+rr("1e-"+((i+"").length-1))),n)}return ei(t,n)}function sc(t){return tp(Ps(t).toLowerCase())}function cc(t){return t=Ps(t),t&&t.replace(Qn,br).replace(We,"")}function fc(t,n,e){t=Ps(t),n=vi(n);var r=t.length;e=e===it?r:Re(As(e),0,r);var i=e;return e-=n.length,e>=0&&t.slice(e,i)==n}function hc(t){return t=Ps(t),t&&Tn.test(t)?t.replace(An,xr):t}function lc(t){return t=Ps(t),t&&zn.test(t)?t.replace(In,"\\$&"):t}function pc(t,n,e){t=Ps(t),n=As(n);var r=n?Q(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return oo(Wf(i),e)+t+oo(Vf(i),e)}function dc(t,n,e){t=Ps(t),n=As(n);var r=n?Q(t):0;return n&&n>r?t+oo(n-r,e):t}function gc(t,n,e){t=Ps(t),n=As(n);var r=n?Q(t):0;return n&&n>r?oo(n-r,e)+t:t}function vc(t,n,e){return e||null==n?n=0:n&&(n=+n),Qf(Ps(t).replace(qn,""),n||0)}function yc(t,n,e){return n=(e?qo(t,n,e):n===it)?1:As(n),ii(Ps(t),n)}function _c(){var t=arguments,n=Ps(t[0]);return t.length<3?n:n.replace(t[1],t[2])}function mc(t,n,e){return e&&"number"!=typeof e&&qo(t,n,e)&&(n=e=it),(e=e===it?Rt:e>>>0)?(t=Ps(t),t&&("string"==typeof n||null!=n&&!Al(n))&&(n=vi(n),!n&&V(t))?Si(tt(t),0,e):t.split(n,e)):[]}function bc(t,n,e){return t=Ps(t),e=null==e?0:Re(As(e),0,t.length),n=vi(n),t.slice(e,e+n.length)==n}function xc(t,e,r){var i=n.templateSettings;r&&qo(t,e,r)&&(e=it),t=Ps(t),e=Nl({},e,i,po);var o,u,a=Nl({},e.imports,i.imports,po),s=Ws(a),c=I(a,s),f=0,h=e.interpolate||te,l="__p += '",p=pf((e.escape||te).source+"|"+h.source+"|"+(h===Pn?Yn:te).source+"|"+(e.evaluate||te).source+"|$","g"),d="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++Ze+"]")+"\n";t.replace(p,function(n,e,r,i,a,s){return r||(r=i),l+=t.slice(f,s).replace(ne,F),e&&(o=!0,l+="' +\n__e("+e+") +\n'"),a&&(u=!0,l+="';\n"+a+";\n__p += '"),r&&(l+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=s+n.length,n}),l+="';\n";var g=e.variable;g||(l="with (obj) {\n"+l+"\n}\n"),l=(u?l.replace(wn,""):l).replace(kn,"$1").replace(Mn,"$1;"),l="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var v=np(function(){return ff(s,d+"return "+l).apply(it,c)});if(v.source=l,rs(v))throw v;return v}function wc(t){return Ps(t).toLowerCase()}function kc(t){return Ps(t).toUpperCase()}function Mc(t,n,e){if(t=Ps(t),t&&(e||n===it))return t.replace(Rn,"");if(!t||!(n=vi(n)))return t;var r=tt(t),i=tt(n),o=R(r,i),u=q(r,i)+1;return Si(r,o,u).join("")}function Ec(t,n,e){if(t=Ps(t),t&&(e||n===it))return t.replace(Bn,"");if(!t||!(n=vi(n)))return t;var r=tt(t),i=q(r,tt(n))+1;return Si(r,0,i).join("")}function Ac(t,n,e){if(t=Ps(t),t&&(e||n===it))return t.replace(qn,"");if(!t||!(n=vi(n)))return t;var r=tt(t),i=R(r,tt(n));return Si(r,i).join("")}function Sc(t,n){var e=St,r=Tt;if(ss(n)){var i="separator"in n?n.separator:i;e="length"in n?As(n.length):e,r="omission"in n?vi(n.omission):r}t=Ps(t);var o=t.length;if(V(t)){var u=tt(t);o=u.length}if(e>=o)return t;var a=e-Q(r);if(1>a)return r;var s=u?Si(u,0,a).join(""):t.slice(0,a);if(i===it)return s+r;if(u&&(a+=s.length-a),Al(i)){if(t.slice(a).search(i)){var c,f=s;for(i.global||(i=pf(i.source,Ps(Xn.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var h=c.index;s=s.slice(0,h===it?a:h)}}else if(t.indexOf(vi(i),a)!=a){var l=s.lastIndexOf(i);l>-1&&(s=s.slice(0,l))}return s+r}function Tc(t){return t=Ps(t),t&&Sn.test(t)?t.replace(En,wr):t}function Cc(t,n,e){return t=Ps(t),n=e?it:n,n===it?W(t)?rt(t):x(t):t.match(n)||[]}function Oc(t){var n=null==t?0:t.length,e=Eo();return t=n?g(t,function(t){if("function"!=typeof t[1])throw new gf(st);return[e(t[0]),t[1]]}):[],oi(function(e){for(var r=-1;++r<n;){var i=t[r];if(a(i[0],this,e))return a(i[1],this,e)}})}function Pc(t){return Be(qe(t,lt))}function Lc(t){return function(){return t}}function Nc(t,n){return null==t||t!==t?n:t}function Dc(t){return t}function jc(t){return Br("function"==typeof t?t:qe(t,lt))}function Ic(t){return Gr(qe(t,lt))}function zc(t,n){return Yr(t,qe(n,lt))}function Rc(t,n,e){var r=Ws(n),i=or(n,r);null!=e||ss(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=or(n,Ws(n)));var o=!(ss(e)&&"chain"in e&&!e.chain),u=os(t);return c(i,function(e){var r=n[e];t[e]=r,u&&(t.prototype[e]=function(){var n=this.__chain__;if(o||n){var e=t(this.__wrapped__),i=e.__actions__=Bi(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,v([this.value()],arguments))})}),t}function qc(){return ar._===this&&(ar._=Af),this}function Bc(){}function Fc(t){return t=As(t),oi(function(n){return $r(n,t)})}function Uc(t){return Bo(t)?T(ru(t)):Qr(t)}function Vc(t){return function(n){return null==t?it:ur(t,n)}}function Wc(){return[]}function Gc(){return!1}function Yc(){return{}}function Xc(){return""}function Hc(){return!0}function $c(t,n){if(t=As(t),1>t||t>jt)return[];var e=Rt,r=Kf(t,Rt);n=Eo(n),t-=Rt;for(var i=N(r,n);++e<t;)n(e);return i}function Zc(t){return xl(t)?g(t,ru):bs(t)?[t]:Bi(Ih(Ps(t)))}function Kc(t){var n=++wf;return Ps(t)+n}function Jc(t){return t&&t.length?Xe(t,Dc,hr):it}function Qc(t,n){return t&&t.length?Xe(t,Eo(n,2),hr):it}function tf(t){return S(t,Dc)}function nf(t,n){return S(t,Eo(n,2))}function ef(t){return t&&t.length?Xe(t,Dc,Vr):it}function rf(t,n){return t&&t.length?Xe(t,Eo(n,2),Vr):it}function of(t){return t&&t.length?L(t,Dc):0}function uf(t,n){return t&&t.length?L(t,Eo(n,2)):0}t=null==t?ar:Mr.defaults(ar.Object(),t,Mr.pick(ar,$e));var af=t.Array,sf=t.Date,cf=t.Error,ff=t.Function,hf=t.Math,lf=t.Object,pf=t.RegExp,df=t.String,gf=t.TypeError,vf=af.prototype,yf=ff.prototype,_f=lf.prototype,mf=t["__core-js_shared__"],bf=yf.toString,xf=_f.hasOwnProperty,wf=0,kf=function(){var t=/[^.]+$/.exec(mf&&mf.keys&&mf.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Mf=_f.toString,Ef=bf.call(lf),Af=ar._,Sf=pf("^"+bf.call(xf).replace(In,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tf=fr?t.Buffer:it,Cf=t.Symbol,Of=t.Uint8Array,Pf=Tf?Tf.allocUnsafe:it,Lf=X(lf.getPrototypeOf,lf),Nf=lf.create,Df=_f.propertyIsEnumerable,jf=vf.splice,If=Cf?Cf.isConcatSpreadable:it,zf=Cf?Cf.iterator:it,Rf=Cf?Cf.toStringTag:it,qf=function(){try{var t=To(lf,"defineProperty");return t({},"",{}),t}catch(n){}}(),Bf=t.clearTimeout!==ar.clearTimeout&&t.clearTimeout,Ff=sf&&sf.now!==ar.Date.now&&sf.now,Uf=t.setTimeout!==ar.setTimeout&&t.setTimeout,Vf=hf.ceil,Wf=hf.floor,Gf=lf.getOwnPropertySymbols,Yf=Tf?Tf.isBuffer:it,Xf=t.isFinite,Hf=vf.join,$f=X(lf.keys,lf),Zf=hf.max,Kf=hf.min,Jf=sf.now,Qf=t.parseInt,th=hf.random,nh=vf.reverse,eh=To(t,"DataView"),rh=To(t,"Map"),ih=To(t,"Promise"),oh=To(t,"Set"),uh=To(t,"WeakMap"),ah=To(lf,"create"),sh=uh&&new uh,ch={},fh=iu(eh),hh=iu(rh),lh=iu(ih),ph=iu(oh),dh=iu(uh),gh=Cf?Cf.prototype:it,vh=gh?gh.valueOf:it,yh=gh?gh.toString:it,_h=function(){function t(){}return function(n){if(!ss(n))return{};if(Nf)return Nf(n);t.prototype=n;var e=new t;return t.prototype=it,e}}();n.templateSettings={escape:Cn,evaluate:On,interpolate:Pn,variable:"",imports:{_:n}},n.prototype=e.prototype,n.prototype.constructor=n,r.prototype=_h(e.prototype),r.prototype.constructor=r,i.prototype=_h(e.prototype),i.prototype.constructor=i,nt.prototype.clear=et,nt.prototype["delete"]=Wn,nt.prototype.get=ee,nt.prototype.has=re,nt.prototype.set=ie,oe.prototype.clear=ue,oe.prototype["delete"]=ae,oe.prototype.get=se,oe.prototype.has=ce,oe.prototype.set=fe,he.prototype.clear=le,he.prototype["delete"]=pe,he.prototype.get=de,he.prototype.has=ge,he.prototype.set=ve,ye.prototype.add=ye.prototype.push=_e,ye.prototype.has=me,be.prototype.clear=xe,be.prototype["delete"]=we,be.prototype.get=ke,be.prototype.has=Me,be.prototype.set=Ee;var mh=Yi(nr),bh=Yi(er,!0),xh=Xi(),wh=Xi(!0),kh=sh?function(t,n){return sh.set(t,n),t}:Dc,Mh=qf?function(t,n){return qf(t,"toString",{configurable:!0,enumerable:!1,value:Lc(n),writable:!0})}:Dc,Eh=oi,Ah=Bf||function(t){return ar.clearTimeout(t)},Sh=oh&&1/$(new oh([,-0]))[1]==Dt?function(t){return new oh(t)}:Bc,Th=sh?function(t){return sh.get(t)}:Bc,Ch=Gf?function(t){return null==t?[]:(t=lf(t),l(Gf(t),function(n){return Df.call(t,n)}))}:Wc,Oh=Gf?function(t){for(var n=[];t;)v(n,Ch(t)),t=Lf(t);return n}:Wc,Ph=cr;(eh&&Ph(new eh(new ArrayBuffer(1)))!=ln||rh&&Ph(new rh)!=Kt||ih&&Ph(ih.resolve())!=nn||oh&&Ph(new oh)!=on||uh&&Ph(new uh)!=cn)&&(Ph=function(t){var n=cr(t),e=n==tn?t.constructor:it,r=e?iu(e):"";
if(r)switch(r){case fh:return ln;case hh:return Kt;case lh:return nn;case ph:return on;case dh:return cn}return n});var Lh=mf?os:Gc,Nh=nu(kh),Dh=Uf||function(t,n){return ar.setTimeout(t,n)},jh=nu(Mh),Ih=Xo(function(t){var n=[];return Dn.test(t)&&n.push(""),t.replace(jn,function(t,e,r,i){n.push(r?i.replace(Gn,"$1"):e||t)}),n}),zh=oi(function(t,n){return Ka(t)?Ge(t,tr(n,1,Ka,!0)):[]}),Rh=oi(function(t,n){var e=Eu(n);return Ka(e)&&(e=it),Ka(t)?Ge(t,tr(n,1,Ka,!0),Eo(e,2)):[]}),qh=oi(function(t,n){var e=Eu(n);return Ka(e)&&(e=it),Ka(t)?Ge(t,tr(n,1,Ka,!0),it,e):[]}),Bh=oi(function(t){var n=g(t,Mi);return n.length&&n[0]===t[0]?Ar(n):[]}),Fh=oi(function(t){var n=Eu(t),e=g(t,Mi);return n===Eu(e)?n=it:e.pop(),e.length&&e[0]===t[0]?Ar(e,Eo(n,2)):[]}),Uh=oi(function(t){var n=Eu(t),e=g(t,Mi);return n="function"==typeof n?n:it,n&&e.pop(),e.length&&e[0]===t[0]?Ar(e,it,n):[]}),Vh=oi(Tu),Wh=bo(function(t,n){var e=null==t?0:t.length,r=ze(t,n);return ni(t,g(n,function(t){return Ro(t,e)?+t:t}).sort(Ii)),r}),Gh=oi(function(t){return yi(tr(t,1,Ka,!0))}),Yh=oi(function(t){var n=Eu(t);return Ka(n)&&(n=it),yi(tr(t,1,Ka,!0),Eo(n,2))}),Xh=oi(function(t){var n=Eu(t);return n="function"==typeof n?n:it,yi(tr(t,1,Ka,!0),it,n)}),Hh=oi(function(t,n){return Ka(t)?Ge(t,n):[]}),$h=oi(function(t){return wi(l(t,Ka))}),Zh=oi(function(t){var n=Eu(t);return Ka(n)&&(n=it),wi(l(t,Ka),Eo(n,2))}),Kh=oi(function(t){var n=Eu(t);return n="function"==typeof n?n:it,wi(l(t,Ka),it,n)}),Jh=oi(Zu),Qh=oi(function(t){var n=t.length,e=n>1?t[n-1]:it;return e="function"==typeof e?(t.pop(),e):it,Ku(t,e)}),tl=bo(function(t){var n=t.length,e=n?t[0]:0,o=this.__wrapped__,u=function(n){return ze(n,t)};return!(n>1||this.__actions__.length)&&o instanceof i&&Ro(e)?(o=o.slice(e,+e+(n?1:0)),o.__actions__.push({func:ea,args:[u],thisArg:it}),new r(o,this.__chain__).thru(function(t){return n&&!t.length&&t.push(it),t})):this.thru(u)}),nl=Wi(function(t,n,e){xf.call(t,e)?++t[e]:Ie(t,e,1)}),el=Qi(gu),rl=Qi(vu),il=Wi(function(t,n,e){xf.call(t,e)?t[e].push(n):Ie(t,e,[n])}),ol=oi(function(t,n,e){var r=-1,i="function"==typeof n,o=Za(t)?af(t.length):[];return mh(t,function(t){o[++r]=i?a(n,t,e):Tr(t,n,e)}),o}),ul=Wi(function(t,n,e){Ie(t,e,n)}),al=Wi(function(t,n,e){t[e?0:1].push(n)},function(){return[[],[]]}),sl=oi(function(t,n){if(null==t)return[];var e=n.length;return e>1&&qo(t,n[0],n[1])?n=[]:e>2&&qo(n[0],n[1],n[2])&&(n=[n[0]]),Zr(t,tr(n,1),[])}),cl=Ff||function(){return ar.Date.now()},fl=oi(function(t,n,e){var r=yt;if(e.length){var i=H(e,Mo(fl));r|=wt}return lo(t,r,n,e,i)}),hl=oi(function(t,n,e){var r=yt|_t;if(e.length){var i=H(e,Mo(hl));r|=wt}return lo(n,r,t,e,i)}),ll=oi(function(t,n){return Ue(t,1,n)}),pl=oi(function(t,n,e){return Ue(t,Ts(n)||0,e)});ja.Cache=he;var dl=Eh(function(t,n){n=1==n.length&&xl(n[0])?g(n[0],j(Eo())):g(tr(n,1),j(Eo()));var e=n.length;return oi(function(r){for(var i=-1,o=Kf(r.length,e);++i<o;)r[i]=n[i].call(this,r[i]);return a(t,this,r)})}),gl=oi(function(t,n){var e=H(n,Mo(gl));return lo(t,wt,it,n,e)}),vl=oi(function(t,n){var e=H(n,Mo(vl));return lo(t,kt,it,n,e)}),yl=bo(function(t,n){return lo(t,Et,it,it,it,n)}),_l=so(hr),ml=so(function(t,n){return t>=n}),bl=Cr(function(){return arguments}())?Cr:function(t){return cs(t)&&xf.call(t,"callee")&&!Df.call(t,"callee")},xl=af.isArray,wl=pr?j(pr):Or,kl=Yf||Gc,Ml=dr?j(dr):Pr,El=gr?j(gr):Dr,Al=vr?j(vr):zr,Sl=yr?j(yr):Rr,Tl=_r?j(_r):qr,Cl=so(Vr),Ol=so(function(t,n){return n>=t}),Pl=Gi(function(t,n){if(Wo(n)||Za(n))return void Fi(n,Ws(n),t);for(var e in n)xf.call(n,e)&&Pe(t,e,n[e])}),Ll=Gi(function(t,n){Fi(n,Gs(n),t)}),Nl=Gi(function(t,n,e,r){Fi(n,Gs(n),t,r)}),Dl=Gi(function(t,n,e,r){Fi(n,Ws(n),t,r)}),jl=bo(ze),Il=oi(function(t){return t.push(it,po),a(Nl,it,t)}),zl=oi(function(t){return t.push(it,go),a(Ul,it,t)}),Rl=eo(function(t,n,e){t[n]=e},Lc(Dc)),ql=eo(function(t,n,e){xf.call(t,n)?t[n].push(e):t[n]=[e]},Eo),Bl=oi(Tr),Fl=Gi(function(t,n,e){Xr(t,n,e)}),Ul=Gi(function(t,n,e,r){Xr(t,n,e,r)}),Vl=bo(function(t,n){var e={};if(null==t)return e;var r=!1;n=g(n,function(n){return n=Ai(n,t),r||(r=n.length>1),n}),Fi(t,wo(t),e),r&&(e=qe(e,lt|pt|dt,vo));for(var i=n.length;i--;)_i(e,n[i]);return e}),Wl=bo(function(t,n){return null==t?{}:Kr(t,n)}),Gl=ho(Ws),Yl=ho(Gs),Xl=Zi(function(t,n,e){return n=n.toLowerCase(),t+(e?sc(n):n)}),Hl=Zi(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),$l=Zi(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),Zl=$i("toLowerCase"),Kl=Zi(function(t,n,e){return t+(e?"_":"")+n.toLowerCase()}),Jl=Zi(function(t,n,e){return t+(e?" ":"")+tp(n)}),Ql=Zi(function(t,n,e){return t+(e?" ":"")+n.toUpperCase()}),tp=$i("toUpperCase"),np=oi(function(t,n){try{return a(t,it,n)}catch(e){return rs(e)?e:new cf(e)}}),ep=bo(function(t,n){return c(n,function(n){n=ru(n),Ie(t,n,fl(t[n],t))}),t}),rp=to(),ip=to(!0),op=oi(function(t,n){return function(e){return Tr(e,t,n)}}),up=oi(function(t,n){return function(e){return Tr(t,e,n)}}),ap=io(g),sp=io(h),cp=io(m),fp=ao(),hp=ao(!0),lp=ro(function(t,n){return t+n},0),pp=fo("ceil"),dp=ro(function(t,n){return t/n},1),gp=fo("floor"),vp=ro(function(t,n){return t*n},1),yp=fo("round"),_p=ro(function(t,n){return t-n},0);return n.after=Ta,n.ary=Ca,n.assign=Pl,n.assignIn=Ll,n.assignInWith=Nl,n.assignWith=Dl,n.at=jl,n.before=Oa,n.bind=fl,n.bindAll=ep,n.bindKey=hl,n.castArray=Va,n.chain=ta,n.chunk=au,n.compact=su,n.concat=cu,n.cond=Oc,n.conforms=Pc,n.constant=Lc,n.countBy=nl,n.create=Ls,n.curry=Pa,n.curryRight=La,n.debounce=Na,n.defaults=Il,n.defaultsDeep=zl,n.defer=ll,n.delay=pl,n.difference=zh,n.differenceBy=Rh,n.differenceWith=qh,n.drop=fu,n.dropRight=hu,n.dropRightWhile=lu,n.dropWhile=pu,n.fill=du,n.filter=ha,n.flatMap=la,n.flatMapDeep=pa,n.flatMapDepth=da,n.flatten=yu,n.flattenDeep=_u,n.flattenDepth=mu,n.flip=Da,n.flow=rp,n.flowRight=ip,n.fromPairs=bu,n.functions=qs,n.functionsIn=Bs,n.groupBy=il,n.initial=ku,n.intersection=Bh,n.intersectionBy=Fh,n.intersectionWith=Uh,n.invert=Rl,n.invertBy=ql,n.invokeMap=ol,n.iteratee=jc,n.keyBy=ul,n.keys=Ws,n.keysIn=Gs,n.map=_a,n.mapKeys=Ys,n.mapValues=Xs,n.matches=Ic,n.matchesProperty=zc,n.memoize=ja,n.merge=Fl,n.mergeWith=Ul,n.method=op,n.methodOf=up,n.mixin=Rc,n.negate=Ia,n.nthArg=Fc,n.omit=Vl,n.omitBy=Hs,n.once=za,n.orderBy=ma,n.over=ap,n.overArgs=dl,n.overEvery=sp,n.overSome=cp,n.partial=gl,n.partialRight=vl,n.partition=al,n.pick=Wl,n.pickBy=$s,n.property=Uc,n.propertyOf=Vc,n.pull=Vh,n.pullAll=Tu,n.pullAllBy=Cu,n.pullAllWith=Ou,n.pullAt=Wh,n.range=fp,n.rangeRight=hp,n.rearg=yl,n.reject=wa,n.remove=Pu,n.rest=Ra,n.reverse=Lu,n.sampleSize=Ma,n.set=Ks,n.setWith=Js,n.shuffle=Ea,n.slice=Nu,n.sortBy=sl,n.sortedUniq=Bu,n.sortedUniqBy=Fu,n.split=mc,n.spread=qa,n.tail=Uu,n.take=Vu,n.takeRight=Wu,n.takeRightWhile=Gu,n.takeWhile=Yu,n.tap=na,n.throttle=Ba,n.thru=ea,n.toArray=Ms,n.toPairs=Gl,n.toPairsIn=Yl,n.toPath=Zc,n.toPlainObject=Cs,n.transform=Qs,n.unary=Fa,n.union=Gh,n.unionBy=Yh,n.unionWith=Xh,n.uniq=Xu,n.uniqBy=Hu,n.uniqWith=$u,n.unset=tc,n.unzip=Zu,n.unzipWith=Ku,n.update=nc,n.updateWith=ec,n.values=rc,n.valuesIn=ic,n.without=Hh,n.words=Cc,n.wrap=Ua,n.xor=$h,n.xorBy=Zh,n.xorWith=Kh,n.zip=Jh,n.zipObject=Ju,n.zipObjectDeep=Qu,n.zipWith=Qh,n.entries=Gl,n.entriesIn=Yl,n.extend=Ll,n.extendWith=Nl,Rc(n,n),n.add=lp,n.attempt=np,n.camelCase=Xl,n.capitalize=sc,n.ceil=pp,n.clamp=oc,n.clone=Wa,n.cloneDeep=Ya,n.cloneDeepWith=Xa,n.cloneWith=Ga,n.conformsTo=Ha,n.deburr=cc,n.defaultTo=Nc,n.divide=dp,n.endsWith=fc,n.eq=$a,n.escape=hc,n.escapeRegExp=lc,n.every=fa,n.find=el,n.findIndex=gu,n.findKey=Ns,n.findLast=rl,n.findLastIndex=vu,n.findLastKey=Ds,n.floor=gp,n.forEach=ga,n.forEachRight=va,n.forIn=js,n.forInRight=Is,n.forOwn=zs,n.forOwnRight=Rs,n.get=Fs,n.gt=_l,n.gte=ml,n.has=Us,n.hasIn=Vs,n.head=xu,n.identity=Dc,n.includes=ya,n.indexOf=wu,n.inRange=uc,n.invoke=Bl,n.isArguments=bl,n.isArray=xl,n.isArrayBuffer=wl,n.isArrayLike=Za,n.isArrayLikeObject=Ka,n.isBoolean=Ja,n.isBuffer=kl,n.isDate=Ml,n.isElement=Qa,n.isEmpty=ts,n.isEqual=ns,n.isEqualWith=es,n.isError=rs,n.isFinite=is,n.isFunction=os,n.isInteger=us,n.isLength=as,n.isMap=El,n.isMatch=fs,n.isMatchWith=hs,n.isNaN=ls,n.isNative=ps,n.isNil=gs,n.isNull=ds,n.isNumber=vs,n.isObject=ss,n.isObjectLike=cs,n.isPlainObject=ys,n.isRegExp=Al,n.isSafeInteger=_s,n.isSet=Sl,n.isString=ms,n.isSymbol=bs,n.isTypedArray=Tl,n.isUndefined=xs,n.isWeakMap=ws,n.isWeakSet=ks,n.join=Mu,n.kebabCase=Hl,n.last=Eu,n.lastIndexOf=Au,n.lowerCase=$l,n.lowerFirst=Zl,n.lt=Cl,n.lte=Ol,n.max=Jc,n.maxBy=Qc,n.mean=tf,n.meanBy=nf,n.min=ef,n.minBy=rf,n.stubArray=Wc,n.stubFalse=Gc,n.stubObject=Yc,n.stubString=Xc,n.stubTrue=Hc,n.multiply=vp,n.nth=Su,n.noConflict=qc,n.noop=Bc,n.now=cl,n.pad=pc,n.padEnd=dc,n.padStart=gc,n.parseInt=vc,n.random=ac,n.reduce=ba,n.reduceRight=xa,n.repeat=yc,n.replace=_c,n.result=Zs,n.round=yp,n.runInContext=Er,n.sample=ka,n.size=Aa,n.snakeCase=Kl,n.some=Sa,n.sortedIndex=Du,n.sortedIndexBy=ju,n.sortedIndexOf=Iu,n.sortedLastIndex=zu,n.sortedLastIndexBy=Ru,n.sortedLastIndexOf=qu,n.startCase=Jl,n.startsWith=bc,n.subtract=_p,n.sum=of,n.sumBy=uf,n.template=xc,n.times=$c,n.toFinite=Es,n.toInteger=As,n.toLength=Ss,n.toLower=wc,n.toNumber=Ts,n.toSafeInteger=Os,n.toString=Ps,n.toUpper=kc,n.trim=Mc,n.trimEnd=Ec,n.trimStart=Ac,n.truncate=Sc,n.unescape=Tc,n.uniqueId=Kc,n.upperCase=Ql,n.upperFirst=tp,n.each=ga,n.eachRight=va,n.first=xu,Rc(n,function(){var t={};return nr(n,function(e,r){xf.call(n.prototype,r)||(t[r]=e)}),t}(),{chain:!1}),n.VERSION=ot,c(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){n[t].placeholder=n}),c(["drop","take"],function(t,n){i.prototype[t]=function(e){e=e===it?1:Zf(As(e),0);var r=this.__filtered__&&!n?new i(this):this.clone();return r.__filtered__?r.__takeCount__=Kf(e,r.__takeCount__):r.__views__.push({size:Kf(e,Rt),type:t+(r.__dir__<0?"Right":"")}),r},i.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}}),c(["filter","map","takeWhile"],function(t,n){var e=n+1,r=e==Pt||e==Nt;i.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:Eo(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}}),c(["head","last"],function(t,n){var e="take"+(n?"Right":"");i.prototype[t]=function(){return this[e](1).value()[0]}}),c(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");i.prototype[t]=function(){return this.__filtered__?new i(this):this[e](1)}}),i.prototype.compact=function(){return this.filter(Dc)},i.prototype.find=function(t){return this.filter(t).head()},i.prototype.findLast=function(t){return this.reverse().find(t)},i.prototype.invokeMap=oi(function(t,n){return"function"==typeof t?new i(this):this.map(function(e){return Tr(e,t,n)})}),i.prototype.reject=function(t){return this.filter(Ia(Eo(t)))},i.prototype.slice=function(t,n){t=As(t);var e=this;return e.__filtered__&&(t>0||0>n)?new i(e):(0>t?e=e.takeRight(-t):t&&(e=e.drop(t)),n!==it&&(n=As(n),e=0>n?e.dropRight(-n):e.take(n-t)),e)},i.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},i.prototype.toArray=function(){return this.take(Rt)},nr(i.prototype,function(t,e){var o=/^(?:filter|find|map|reject)|While$/.test(e),u=/^(?:head|last)$/.test(e),a=n[u?"take"+("last"==e?"Right":""):e],s=u||/^find/.test(e);a&&(n.prototype[e]=function(){var e=this.__wrapped__,c=u?[1]:arguments,f=e instanceof i,h=c[0],l=f||xl(e),p=function(t){var e=a.apply(n,v([t],c));return u&&d?e[0]:e};l&&o&&"function"==typeof h&&1!=h.length&&(f=l=!1);var d=this.__chain__,g=!!this.__actions__.length,y=s&&!d,_=f&&!g;if(!s&&l){e=_?e:new i(this);var m=t.apply(e,c);return m.__actions__.push({func:ea,args:[p],thisArg:it}),new r(m,d)}return y&&_?t.apply(this,c):(m=this.thru(p),y?u?m.value()[0]:m.value():m)})}),c(["pop","push","shift","sort","splice","unshift"],function(t){var e=vf[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var n=this.value();return e.apply(xl(n)?n:[],t)}return this[r](function(n){return e.apply(xl(n)?n:[],t)})}}),nr(i.prototype,function(t,e){var r=n[e];if(r){var i=r.name+"",o=ch[i]||(ch[i]=[]);o.push({name:e,func:r})}}),ch[no(it,_t).name]=[{name:"wrapper",func:it}],i.prototype.clone=b,i.prototype.reverse=C,i.prototype.value=K,n.prototype.at=tl,n.prototype.chain=ra,n.prototype.commit=ia,n.prototype.next=oa,n.prototype.plant=aa,n.prototype.reverse=sa,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=ca,n.prototype.first=n.prototype.head,zf&&(n.prototype[zf]=ua),n},Mr=kr();ar._=Mr,i=function(){return Mr}.call(n,e,n,r),!(i!==it&&(r.exports=i))}).call(this)}).call(n,e(46),e(139)(t))},function(t,n,e){"use strict";function r(t,n){return function(e){return t+e*n}}function i(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}function o(t,n){var i=n-t;return i?r(t,i>180||-180>i?i-360*Math.round(i/360):i):e.i(s.a)(isNaN(t)?n:t)}function u(t){return 1===(t=+t)?a:function(n,r){return r-n?i(n,r,t):e.i(s.a)(isNaN(n)?r:n)}}function a(t,n){var i=n-t;return i?r(t,i):e.i(s.a)(isNaN(t)?n:t)}var s=e(32);n.b=o,n.c=u,n.a=a},function(t,n){"use strict";n.a=function(t,n){return t=+t,n-=t,function(e){return t+n*e}}},function(t,n,e){"use strict";function r(t,n){var r,i;return function(){var o=e.i(u.e)(this,t),a=o.tween;if(a!==r){i=r=a;for(var s=0,c=i.length;c>s;++s)if(i[s].name===n){i=i.slice(),i.splice(s,1);break}}o.tween=i}}function i(t,n,r){var i,o;if("function"!=typeof r)throw new Error;return function(){var a=e.i(u.e)(this,t),s=a.tween;if(s!==i){o=(i=s).slice();for(var c={name:n,value:r},f=0,h=o.length;h>f;++f)if(o[f].name===n){o[f]=c;break}f===h&&o.push(c)}a.tween=o}}function o(t,n,r){var i=t._id;return t.each(function(){var t=e.i(u.e)(this,i);(t.value||(t.value={}))[n]=r.apply(this,arguments)}),function(t){return e.i(u.f)(t,i).value[n]}}var u=e(1);n.b=o,n.a=function(t,n){var o=this._id;if(t+="",arguments.length<2){for(var a,s=e.i(u.f)(this.node(),o).tween,c=0,f=s.length;f>c;++c)if((a=s[c]).name===t)return a.value;return null}return this.each((null==n?r:i)(o,t,n))}},function(t,n,e){"use strict";function r(){}function i(t){var n;return t=(t+"").trim().toLowerCase(),(n=x.exec(t))?(n=parseInt(n[1],16),new c(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1)):(n=w.exec(t))?o(parseInt(n[1],16)):(n=k.exec(t))?new c(n[1],n[2],n[3],1):(n=M.exec(t))?new c(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=E.exec(t))?u(n[1],n[2],n[3],n[4]):(n=A.exec(t))?u(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=S.exec(t))?f(n[1],n[2]/100,n[3]/100,1):(n=T.exec(t))?f(n[1],n[2]/100,n[3]/100,n[4]):C.hasOwnProperty(t)?o(C[t]):"transparent"===t?new c(0/0,0/0,0/0,0):null}function o(t){return new c(t>>16&255,t>>8&255,255&t,1)}function u(t,n,e,r){return 0>=r&&(t=n=e=0/0),new c(t,n,e,r)}function a(t){return t instanceof r||(t=i(t)),t?(t=t.rgb(),new c(t.r,t.g,t.b,t.opacity)):new c}function s(t,n,e,r){return 1===arguments.length?a(t):new c(t,n,e,null==r?1:r)}function c(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function f(t,n,e,r){return 0>=r?t=n=e=0/0:0>=e||e>=1?t=n=0/0:0>=n&&(t=0/0),new p(t,n,e,r)}function h(t){if(t instanceof p)return new p(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=i(t)),!t)return new p;if(t instanceof p)return t;t=t.rgb();var n=t.r/255,e=t.g/255,o=t.b/255,u=Math.min(n,e,o),a=Math.max(n,e,o),s=0/0,c=a-u,f=(a+u)/2;return c?(s=n===a?(e-o)/c+6*(o>e):e===a?(o-n)/c+2:(n-e)/c+4,c/=.5>f?a+u:2-a-u,s*=60):c=f>0&&1>f?0:s,new p(s,c,f,t.opacity)}function l(t,n,e,r){return 1===arguments.length?h(t):new p(t,n,e,null==r?1:r)}function p(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function d(t,n,e){return 255*(60>t?n+(e-n)*t/60:180>t?e:240>t?n+(e-n)*(240-t)/60:n)}var g=e(10);n.d=r,e.d(n,"f",function(){return v}),e.d(n,"e",function(){return y}),n.a=i,n.c=a,n.h=s,n.b=c,n.g=l;var v=.7,y=1/v,_="\\s*([+-]?\\d+)\\s*",m="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",b="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",x=/^#([0-9a-f]{3})$/,w=/^#([0-9a-f]{6})$/,k=new RegExp("^rgb\\("+[_,_,_]+"\\)$"),M=new RegExp("^rgb\\("+[b,b,b]+"\\)$"),E=new RegExp("^rgba\\("+[_,_,_,m]+"\\)$"),A=new RegExp("^rgba\\("+[b,b,b,m]+"\\)$"),S=new RegExp("^hsl\\("+[m,b,b]+"\\)$"),T=new RegExp("^hsla\\("+[m,b,b,m]+"\\)$"),C={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};e.i(g.a)(r,i,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),e.i(g.a)(c,s,e.i(g.b)(r,{brighter:function(t){return t=null==t?y:Math.pow(y,t),new c(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?v:Math.pow(v,t),new c(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),e.i(g.a)(p,l,e.i(g.b)(r,{brighter:function(t){return t=null==t?y:Math.pow(y,t),new p(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?v:Math.pow(v,t),new p(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(.5>e?e:1-e)*n,i=2*e-r;return new c(d(t>=240?t-240:t+120,i,r),d(t,i,r),d(120>t?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}))},function(t,n){"use strict";function e(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}n.b=e,n.a=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t}},function(t,n,e){"use strict";var r=(e(13),e(30),e(12),e(31),e(33),e(7));e.d(n,"b",function(){return r.a});var i=(e(34),e(74),e(36));e.d(n,"d",function(){return i.a});var o=e(76);e.d(n,"a",function(){return o.a}),e.d(n,"e",function(){return o.b});var u=(e(78),e(35));e.d(n,"c",function(){return u.a});e(71),e(72),e(70),e(69),e(73)},function(t,n){"use strict";function e(t,n,e,r,i){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*e+(1+3*t+3*o-3*u)*r+u*i)/6}n.b=e,n.a=function(t){var n=t.length-1;return function(r){var i=0>=r?r=0:r>=1?(r=1,n-1):Math.floor(r*n),o=t[i],u=t[i+1],a=i>0?t[i-1]:2*o-u,s=n-1>i?t[i+2]:2*u-o;return e((r-i/n)*n,a,o,u,s)}}},function(t,n,e){"use strict";var r=e(4),i=e(35),o=e(30),u=e(33),a=e(7),s=e(34),c=e(36),f=e(32);n.a=function(t,n){var h,l=typeof n;return null==n||"boolean"===l?e.i(f.a)(n):("number"===l?a.a:"string"===l?(h=e.i(r.a)(n))?(n=h,i.a):c.a:n instanceof r.a?i.a:n instanceof Date?u.a:Array.isArray(n)?o.a:isNaN(n)?s.a:a.a)(t,n)}},function(t,n,e){"use strict";function r(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===u.b&&n.documentElement.namespaceURI===u.b?n.createElement(t):n.createElementNS(e,t)}}function i(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var o=e(15),u=e(16);n.a=function(t){var n=e.i(o.a)(t);return(n.local?i:r)(n)}},function(t,n,e){"use strict";var r=e(16);n.a=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),r.a.hasOwnProperty(n)?{space:r.a[n],local:t}:t}},function(t,n,e){"use strict";e.d(n,"b",function(){return r});var r="http://www.w3.org/1999/xhtml";n.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(t,n){"use strict";n.a=function(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=n.clientX,r.y=n.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var i=t.getBoundingClientRect();return[n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop]}},function(t,n,e){"use strict";function r(t,n,e){return t=i(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function i(t,n,e){return function(r){var i=f;f=r;try{t.call(this,this.__data__,n,e)}finally{f=i}}}function o(t){return t.trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}function u(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;o>r;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function a(t,n,e){var o=c.hasOwnProperty(t.type)?r:i;return function(r,i,u){var a,s=this.__on,c=o(n,i,u);if(s)for(var f=0,h=s.length;h>f;++f)if((a=s[f]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=c,a.capture=e),void(a.value=n);this.addEventListener(t.type,c,e),a={type:t.type,name:t.name,value:n,listener:c,capture:e},s?s.push(a):this.__on=[a]}}function s(t,n,e,r){var i=f;t.sourceEvent=f,f=t;try{return n.apply(e,r)}finally{f=i}}e.d(n,"a",function(){return f}),n.b=s;var c={},f=null;if("undefined"!=typeof document){var h=document.documentElement;"onmouseenter"in h||(c={mouseenter:"mouseover",mouseleave:"mouseout"})}n.c=function(t,n,e){var r,i,s=o(t+""),c=s.length;{if(!(arguments.length<2)){for(f=n?a:u,null==e&&(e=!1),r=0;c>r;++r)this.each(f(s[r],n,e));return this}var f=this.node().__on;if(f)for(var h,l=0,p=f.length;p>l;++l)for(r=0,h=f[l];c>r;++r)if((i=s[r]).type===h.type&&i.name===h.name)return h.value}}},function(t,n){"use strict";function e(){}n.a=function(t){return null==t?e:function(){return this.querySelector(t)}}},function(t,n,e){"use strict";var r=e(18);n.a=function(){for(var t,n=r.a;t=n.sourceEvent;)n=t;return n}},function(t,n){"use strict";n.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,n){"use strict";function e(){return _||(x(r),_=b.now()+m)}function r(){_=0}function i(){this._call=this._time=this._next=null}function o(t,n,e){var r=new i;return r.restart(t,n,e),r}function u(){e(),++p;for(var t,n=h;n;)(t=_-n._time)>=0&&n._call.call(null,t),n=n._next;--p}function a(){_=(y=b.now())+m,p=d=0;try{u()}finally{p=0,c(),_=0}}function s(){var t=b.now(),n=t-y;n>v&&(m-=n,y=t)}function c(){for(var t,n,e=h,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:h=n);l=t,f(r)}function f(t){if(!p){d&&(d=clearTimeout(d));var n=t-_;n>24?(1/0>t&&(d=setTimeout(a,n)),g&&(g=clearInterval(g))):(g||(y=_,g=setInterval(s,v)),p=1,x(a))}}n.c=e,n.b=i,n.a=o;var h,l,p=0,d=0,g=0,v=1e3,y=0,_=0,m=0,b="object"==typeof performance&&performance.now?performance:Date,x="function"==typeof requestAnimationFrame?requestAnimationFrame:function(t){setTimeout(t,17)};i.prototype=o.prototype={constructor:i,restart:function(t,n,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?e():+r)+(null==n?0:+n),this._next||l===this||(l?l._next=this:h=this,l=this),this._call=t,this._time=r,f()},stop:function(){this._call&&(this._call=null,this._time=1/0,f())}}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n,e,r,i){for(var o=-1,u=null,a=0,s=t.words.length,c=(function(n){var e={};t.DBs.forEach(function(t){for(var r=0===n?0:t.seqIndices[n-1]+1,i=n===s?t.tokens.length:t.seqIndices[n],o={},u=r;i>u;u++){var a=t.tokens[u];o[a]||(o[a]=!0,a in e?e[a]+=t.count:e[a]=t.count)}});var c=null,f=0,h=s>0,l=h?Object.keys(e):Object.keys(e).filter(function(t){return!i[t].startsWith("#")});l.forEach(function(t){var n=e[t];r>n&&n>f&&(c=+t,f=n)}),f>a&&(o=n,u=c,a=f)}),f=0;s>=f;f++)c(f);var h=null,l=null;if(a>=e){h={size:0,DBs:[]},l={size:0,DBs:[]};for(var p=t.words,d=0;d<t.DBs.length;d++){var g=t.DBs[d],v=0===o?0:g.seqIndices[o-1]+1,y=o===p.length?g.tokens.length:g.seqIndices[o],_=g.tokens.slice(v,y).indexOf(u);0>_?(h.DBs.push(g),h.size+=g.count):(_+=v,g.seqIndices.splice(o,0,_),l.DBs.push(g),l.size+=g.count)}}return{word:u,pos:o,count:a,s0:h,s1:l}}function u(t,n,e,r,i,u,a){t.words&&t.words.length>0&&(t.graph.nodes=t.graph.nodes.concat(t.words),e-=t.words.length);var s=new l["default"](function(t,n){return n.size-t.size});s.push(t);for(var c=[];!s.empty()&&e>0;){var f=s.pop(),h=f.graph,p=f.r,g=f.l;if(!p&&!g){var v=o(f,u,r,i,a);p=v.s0,g=v.s1;var y=v.word,_=v.pos,m=v.count;if(r>m)c.push(f);else{h||(h=new d["default"](r,i),n.push(h));var b={id:h.totalNodeCnt++,entity:a[y],freq:m,topEntries:g.DBs.slice(0,5),seq:g},x=f.words.slice();x.splice(_,0,b),p.words=f.words,g.words=x,g.newWord=b,p.graph=f.graph,g.graph=h}}g&&(g.graph.nodes.push(g.newWord),e--),f.l=g,f.r=p,g&&s.push(g),p&&p.size>=r&&s.push(p)}return c.concat(s.toArray())}function a(t,n){n.filter(function(n){return t.indexOf(n.graph)>=0}).forEach(function(t){for(var n=t.words,e=t.graph.linkadj,r=0;r<n.length-1;r++){var i=n[r],o=i.id,u=n[r+1].id;o in e||(e[o]={}),u in e[o]?e[o][u]+=t.size:e[o][u]=t.size}n.filter(function(n){return!n.leafSeq||n.leafSeq<t.size}).forEach(function(n){n.leafSeq=t})})}Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function t(t,n){var e=[],r=!0,i=!1,o=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(e.push(u.value),!n||e.length!==n);r=!0);}catch(s){i=!0,o=s}finally{try{!r&&a["return"]&&a["return"]()}finally{if(i)throw o}}return e}return function(n,e){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return t(n,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),f=e(5),h=e(45),l=r(h),p=e(50),d=r(p),g=150,v=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,t);var r=e.termWeights,o=void 0===r?{}:r,c=e.minSupportCount,f=void 0===c?2:c,h=e.minSupportRatio,l=void 0===h?.001:h,p=e.maxSupportRatio,d=void 0===p?.75:p;this.options=e;var v=n.itemset,y=n.entries;this.tokenizedData=n,this.terms=n.encodeTermWeights(o);var _=n.computeSize();this.supportRange=[Math.max(_*l,f),_*d];var m=s(this.supportRange,2),b=m[0],x=m[1];this.rootSeq={words:[],newWord:null,graph:null,size:_,DBs:y};var w=[],k=u(this.rootSeq,w,g,b,x,this.terms,v);this.graphs=w.filter(function(t){return t.nodes.length>2}).slice(0,10),a(this.graphs,k)}return c(t,[{key:"updateGraphs",value:function(t){this.graphs.forEach(function(t){return t.clear()});var n=t||this.rootSeq,e=s(this.supportRange,2),r=e[0],i=e[1],o=u(n,this.graphs,g,r,i,this.terms,this.tokenizedData.itemset);return a(this.graphs,o),this}},{key:"size",value:function(){return this.rootSeq.size}},{key:"getRenderedGraphs",value:function(t){var n=1===arguments.length?this.graphs.slice(0,t):this.graphs,e=n.map(function(t){return t.toRenderedGraph()}),r=[f.min(e.map(function(t){return t.freqRange[0]})),f.max(e.map(function(t){return t.freqRange[1]}))],i=0;return e.forEach(function(t){t.globalFreqRange=r,t.nodes.forEach(function(t){t.gid=i,i++})}),e}}]),t}();n["default"]=v},function(t,n,e){"use strict";function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),o=e(5),u=["i","me","my","myself","we","our","ours","ourselves","you","your","yours","yourself","yourselves","he","him","his","himself","she","her","hers","herself","it","its","itself","they","them","their","theirs","themselves","what","which","who","whom","this","that","these","those","am","is","are","was","were","be","been","being","have","has","had","having","do","does","did","doing","a","an","the","and","but","if","or","because","as","until","while","of","at","by","for","with","about","against","between","into","through","during","before","after","above","below","to","from","up","down","in","out","on","off","over","under","again","further","then","once","here","there","when","where","why","how","all","any","both","each","few","more","most","other","some","such","nor","only","same","so","than","too","very","s","t","can","will","just","don","should","now"],a=["de","la","y","un","que","en","el","shit","fuck","fucking"],s=["rt","via","amp","http","https","m","re","co"],c=o.uniq(u.concat(a).concat(s)),f=function(){function t(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.includeWords,u=void 0===i?[]:i,a=e.excludeWords,s=void 0===a?[]:a,f=e.includeDefault,h=void 0===f?!0:f;r(this,t),this.stopWords=h?c:[],u&&u.length>0&&(this.stopWords=o.uniq(this.stopWords.concat(u))),s&&s.length>0&&!function(){var t=o.keyBy(s,function(t){return t});n.stopWords=n.stopWords.filter(function(n){return!t[n]})}(),this.regex=new RegExp("^("+this.stopWords.join("|")+")$")}return i(t,[{key:"test",value:function(t){return this.regex.test(t)}}]),t}();n["default"]=f;var h=null;f.getDefault=function(){return h||(h=new f),h}},function(t,n){"use strict";function e(t){var n=[];i.lastIndex=0;for(var e=i.exec(t);null!=e;)n.push(e[0].trim()),
e=i.exec(t);return n}function r(t){return t.split(" ").filter(function(t){return t.length>0})}Object.defineProperty(n,"__esModule",{value:!0}),n.tokenize=e,n.tokenizeBySpace=r;var i=/http:\/\/t\.co\/\w+|http:\/\/vine\.co\/\w+|http:\/\/t\.co\w+|http:\/\/vine\.co\w+|http:\/\/t\.\w+|http:\/\/vine\.\w+|http:\/\/\w+|\@\w+|\#\w+|\d+(,\d+)+|\w+(-\w+)*|\$?\d+(\.\d+)?\%?|([A-Za-z]\.)+/g},function(t,n){"use strict";function e(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),i=function(){function t(n,r,i){e(this,t),this.source=n,this.target=r,this.freq=i,this.attachPoints={x1:0,y1:0,x2:1,y2:1}}return r(t,[{key:"getKey",value:function(){return[this.source.id,this.target.id].join(",")}},{key:"isTheOnlyBridge",value:function(){return 1===this.source.rightLinks.length&&1===this.target.leftLinks.length}},{key:"toConstraint",value:function(){var t=this.isTheOnlyBridge()?5:15;return{axis:"x",left:this.source.id,right:this.target.id,gap:(this.source.width+this.target.width)/2+t}}},{key:"toOnlyBridgeConstraint",value:function(){return{type:"alignment",axis:"y",offsets:[{node:this.source.id,offset:0},{node:this.target.id,offset:0}]}}}]),t}();n["default"]=i},function(t,n,e){"use strict";function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),o=e(5),u=function(){function t(n){r(this,t),this.data=n,this.leftLinks=[],this.rightLinks=[],this.id=-1,this.x=0,this.y=0,this.width=50,this.height=18}return i(t,[{key:"isLeaf",value:function(){return 0===this.leftLinks.length||0===this.rightLinks.length}},{key:"isLeftLeaf",value:function(){return 0===this.leftLinks.length}},{key:"isRightLeaf",value:function(){return 0===this.rightLinks.length}},{key:"leftEdge",value:function(){return this.x-this.width/2}},{key:"rightEdge",value:function(){return this.x+this.width/2}},{key:"getLeftNodes",value:function(){return this.leftLinks.map(function(t){return t.source})}},{key:"getRightNodes",value:function(){return this.rightLinks.map(function(t){return t.target})}},{key:"createAlignmentConstraints",value:function(t,n){return n.length>1?{type:"alignment",axis:t,offsets:n.map(function(t){return{node:t.id,offset:0}})}:null}},{key:"computeLeftConstraints",value:function(){var t=this.getLeftNodes().filter(function(t){return 1===t.rightLinks.length});return this.createAlignmentConstraints("x",t)}},{key:"computeRightConstraints",value:function(){var t=this.getRightNodes().filter(function(t){return 1===t.leftLinks.length});return this.createAlignmentConstraints("x",t)}},{key:"computeOrderConstraints",value:function(){var t=[];if(this.getRightNodes().length>1)for(var n=this.getRightNodes(),e=1;e<n.length;e++)t.push({axis:"y",left:n[e-1].id,right:n[e].id,gap:5});if(this.getLeftNodes().length>1)for(var r=this.getLeftNodes(),i=1;i<r.length;i++)t.push({axis:"y",left:r[i-1].id,right:r[i].id,gap:5});return t}},{key:"updateAttachPoints",value:function(){var t=this;1===this.leftLinks.length?this.leftLinks[0].attachPoints.y2=this.y:this.leftLinks.length>1&&!function(){var n=o.sum(t.leftLinks.map(function(t){return t.strokeWidth})),e=t.y-(n+2*(t.leftLinks.length-1))/2;t.leftLinks.concat().sort(function(t,n){return t.source.y-n.source.y}).forEach(function(t){t.attachPoints.y2=e+t.strokeWidth/2,e+=t.strokeWidth+2})}(),1===this.rightLinks.length?this.rightLinks[0].attachPoints.y1=this.y:this.rightLinks.length>1&&!function(){var n=o.sum(t.rightLinks.map(function(t){return t.strokeWidth})),e=t.y-(n+2*(t.rightLinks.length-1))/2;t.rightLinks.concat().sort(function(t,n){return t.target.y-n.target.y}).forEach(function(t){t.attachPoints.y1=e+t.strokeWidth/2,e+=t.strokeWidth+2})}()}},{key:"canMerge",value:function(t){return this.data.entity===t.data.entity}}],[{key:"merge",value:function(n){return new t({id:o.min(n.map(function(t){return t.data.id})),entity:n[0].data.entity,freq:o.sum(n.map(function(t){return t.data.freq})),mergedData:n.map(function(t){return t.data}),topEntries:n.reduce(function(t,n){return t.concat(n.data.topEntries)},[]).slice(0,5)})}}]),t}();n["default"]=u},function(t,n,e){"use strict";e.d(n,"b",function(){return r}),e.d(n,"a",function(){return i});var r=Math.PI/180,i=180/Math.PI},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(57);e.d(n,"dispatch",function(){return r.a})},function(t,n,e){"use strict";var r=e(13);n.a=function(t,n){var i,o=n?n.length:0,u=t?Math.min(o,t.length):0,a=new Array(o),s=new Array(o);for(i=0;u>i;++i)a[i]=e.i(r.a)(t[i],n[i]);for(;o>i;++i)s[i]=n[i];return function(t){for(i=0;u>i;++i)s[i]=a[i](t);return s}}},function(t,n,e){"use strict";var r=e(12);n.a=function(t){var n=t.length;return function(i){var o=Math.floor(((i%=1)<0?++i:i)*n),u=t[(o+n-1)%n],a=t[o%n],s=t[(o+1)%n],c=t[(o+2)%n];return e.i(r.b)((i-o/n)*n,u,a,s,c)}}},function(t,n){"use strict";n.a=function(t){return function(){return t}}},function(t,n){"use strict";n.a=function(t,n){var e=new Date;return t=+t,n-=t,function(r){return e.setTime(t+n*r),e}}},function(t,n,e){"use strict";var r=e(13);n.a=function(t,n){var i,o={},u={};(null===t||"object"!=typeof t)&&(t={}),(null===n||"object"!=typeof n)&&(n={});for(i in n)i in t?o[i]=e.i(r.a)(t[i],n[i]):u[i]=n[i];return function(t){for(i in o)u[i]=o[i](t);return u}}},function(t,n,e){"use strict";function r(t){return function(n){var r,o,u=n.length,a=new Array(u),s=new Array(u),c=new Array(u);for(r=0;u>r;++r)o=e.i(i.f)(n[r]),a[r]=o.r||0,s[r]=o.g||0,c[r]=o.b||0;return a=t(a),s=t(s),c=t(c),o.opacity=1,function(t){return o.r=a(t),o.g=s(t),o.b=c(t),o+""}}}var i=e(4),o=e(12),u=e(31),a=e(6);n.a=function s(t){function n(t,n){var o=r((t=e.i(i.f)(t)).r,(n=e.i(i.f)(n)).r),u=r(t.g,n.g),s=r(t.b,n.b),c=e.i(a.a)(t.opacity,n.opacity);return function(n){return t.r=o(n),t.g=u(n),t.b=s(n),t.opacity=c(n),t+""}}var r=e.i(a.c)(t);return n.gamma=s,n}(1);r(o.a),r(u.a)},function(t,n,e){"use strict";function r(t){return function(){return t}}function i(t){return function(n){return t(n)+""}}var o=e(7),u=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(u.source,"g");n.a=function(t,n){var s,c,f,h=u.lastIndex=a.lastIndex=0,l=-1,p=[],d=[];for(t+="",n+="";(s=u.exec(t))&&(c=a.exec(n));)(f=c.index)>h&&(f=n.slice(h,f),p[l]?p[l]+=f:p[++l]=f),(s=s[0])===(c=c[0])?p[l]?p[l]+=c:p[++l]=c:(p[++l]=null,d.push({i:l,x:e.i(o.a)(s,c)})),h=a.lastIndex;return h<n.length&&(f=n.slice(h),p[l]?p[l]+=f:p[++l]=f),p.length<2?d[0]?i(d[0].x):r(n):(n=d.length,function(t){for(var e,r=0;n>r;++r)p[(e=d[r]).i]=e.x(t);return p.join("")})}},function(t,n){"use strict";var e=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var r=document.documentElement;if(!r.matches){var i=r.webkitMatchesSelector||r.msMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector;e=function(t){return function(){return i.call(this,t)}}}}n.a=e},function(t,n,e){"use strict";function r(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}var i=e(39),o=e(0);n.b=r,n.a=function(){return new o.b(this._enter||this._groups.map(i.a),this._parents)},r.prototype={constructor:r,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}}},function(t,n){"use strict";n.a=function(t){return new Array(t.length)}},function(t,n){"use strict";function e(){return[]}n.a=function(t){return null==t?e:function(){return this.querySelectorAll(t)}}},function(t,n,e){"use strict";var r=e(22);e.d(n,"c",function(){return r.c}),e.d(n,"a",function(){return r.a});var i=e(114);e.d(n,"b",function(){return i.a});e(113)},function(t,n,e){"use strict";var r=e(1);n.a=function(t,n){var e,i,o,u=t.__transition,a=!0;if(u){n=null==n?null:n+"";for(o in u)(e=u[o]).name===n?(i=e.state>r.a&&e.state<r.b,e.state=r.c,e.timer.stop(),i&&e.on.call("interrupt",t,t.__data__,e.index,e.group),delete u[o]):a=!1;a&&delete t.__transition}}},function(t,n,e){"use strict";var r=e(4),i=e(11);n.a=function(t,n){var o;return("number"==typeof n?i.b:n instanceof r.a?i.c:(o=e.i(r.a)(n))?(n=o,i.c):i.d)(t,n)}},function(t,n){!function(t,e){e(n)}(this,function(t){"use strict";function n(t){return function(n,e){return Ec(t(n),e)}}function e(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Fc?i*=10:o>=Uc?i*=5:o>=Vc&&(i*=2),t>n?-i:i}function r(t){return t.length}function i(t,n,e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"}function o(t,n,e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"}function u(t){var n=t.bandwidth()/2;return t.round()&&(n=Math.round(n)),function(e){return t(e)+n}}function a(){return!this.__axis}function s(t,n){function e(e){var p,d=null==s?n.ticks?n.ticks.apply(n,r):n.domain():s,g=null==c?n.tickFormat?n.tickFormat.apply(n,r):ff:c,v=Math.max(f,0)+l,y=t===hf||t===pf?i:o,_=n.range(),m=_[0]+.5,b=_[_.length-1]+.5,x=(n.bandwidth?u:ff)(n.copy()),w=e.selection?e.selection():e,k=w.selectAll(".domain").data([null]),M=w.selectAll(".tick").data(d,n).order(),E=M.exit(),A=M.enter().append("g").attr("class","tick"),S=M.select("line"),T=M.select("text"),C=t===hf||t===df?-1:1,O=t===df||t===lf?(p="x","y"):(p="y","x");k=k.merge(k.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),M=M.merge(A),S=S.merge(A.append("line").attr("stroke","#000").attr(p+"2",C*f).attr(O+"1",.5).attr(O+"2",.5)),T=T.merge(A.append("text").attr("fill","#000").attr(p,C*v).attr(O,.5).attr("dy",t===hf?"0em":t===pf?"0.71em":"0.32em")),e!==w&&(k=k.transition(e),M=M.transition(e),S=S.transition(e),T=T.transition(e),E=E.transition(e).attr("opacity",gf).attr("transform",function(t){return y(x,this.parentNode.__axis||x,t)}),A.attr("opacity",gf).attr("transform",function(t){return y(this.parentNode.__axis||x,x,t)})),E.remove(),k.attr("d",t===df||t==lf?"M"+C*h+","+m+"H0.5V"+b+"H"+C*h:"M"+m+","+C*h+"V0.5H"+b+"V"+C*h),M.attr("opacity",1).attr("transform",function(t){return y(x,x,t)}),S.attr(p+"2",C*f),T.attr(p,C*v).text(g),w.filter(a).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===lf?"start":t===df?"end":"middle"),w.each(function(){this.__axis=x})}var r=[],s=null,c=null,f=6,h=6,l=3;return e.scale=function(t){return arguments.length?(n=t,e):n},e.ticks=function(){return r=cf.call(arguments),e},e.tickArguments=function(t){return arguments.length?(r=null==t?[]:cf.call(t),e):r.slice()},e.tickValues=function(t){return arguments.length?(s=null==t?null:cf.call(t),e):s&&s.slice()},e.tickFormat=function(t){return arguments.length?(c=t,e):c},e.tickSize=function(t){return arguments.length?(f=h=+t,e):f},e.tickSizeInner=function(t){return arguments.length?(f=+t,e):f},e.tickSizeOuter=function(t){return arguments.length?(h=+t,e):h},e.tickPadding=function(t){return arguments.length?(l=+t,e):l},e}function c(t){return s(hf,t)}function f(t){return s(lf,t)}function h(t){return s(pf,t)}function l(t){return s(df,t)}function p(){for(var t,n=0,e=arguments.length,r={};e>n;++n){if(!(t=arguments[n]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new d(r)}function d(t){this._=t}function g(t,n){return t.trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}function v(t,n){for(var e,r=0,i=t.length;i>r;++r)if((e=t[r]).name===n)return e.value}function y(t,n,e){for(var r=0,i=t.length;i>r;++r)if(t[r].name===n){t[r]=vf,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}function _(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===yf&&n.documentElement.namespaceURI===yf?n.createElement(t):n.createElementNS(e,t)}}function m(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function b(){return new x}function x(){this._="@"+(++xf).toString(36)}function w(t,n,e){return t=k(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function k(n,e,r){return function(i){var o=t.event;t.event=i;try{n.call(this,this.__data__,e,r)}finally{t.event=o}}}function M(t){return t.trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}function E(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;o>r;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function A(t,n,e){var r=Af.hasOwnProperty(t.type)?w:k;return function(i,o,u){var a,s=this.__on,c=r(n,o,u);if(s)for(var f=0,h=s.length;h>f;++f)if((a=s[f]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=c,a.capture=e),void(a.value=n);this.addEventListener(t.type,c,e),a={type:t.type,name:t.name,value:n,listener:c,capture:e},s?s.push(a):this.__on=[a]}}function S(n,e,r,i){var o=t.event;n.sourceEvent=t.event,t.event=n;try{return e.apply(r,i)}finally{t.event=o}}function T(){}function C(){return[]}function O(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function P(t,n,e,r,i,o){for(var u,a=0,s=n.length,c=o.length;c>a;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new O(t,o[a]);for(;s>a;++a)(u=n[a])&&(i[a]=u)}function L(t,n,e,r,i,o,u){var a,s,c,f={},h=n.length,l=o.length,p=new Array(h);for(a=0;h>a;++a)(s=n[a])&&(p[a]=c=Bf+u.call(s,s.__data__,a,n),c in f?i[a]=s:f[c]=s);for(a=0;l>a;++a)c=Bf+u.call(t,o[a],a,o),(s=f[c])?(r[a]=s,s.__data__=o[a],f[c]=null):e[a]=new O(t,o[a]);for(a=0;h>a;++a)(s=n[a])&&f[p[a]]===s&&(i[a]=s)}function N(t,n){return n>t?-1:t>n?1:t>=n?0:0/0}function D(t){return function(){this.removeAttribute(t)}}function j(t){return function(){this.removeAttributeNS(t.space,t.local)}}function I(t,n){return function(){this.setAttribute(t,n)}}function z(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function R(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function q(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function B(t){return function(){this.style.removeProperty(t)}}function F(t,n,e){return function(){this.style.setProperty(t,n,e)}}function U(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function V(t){return function(){delete this[t]}}function W(t,n){return function(){this[t]=n}}function G(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Y(t){return t.trim().split(/^|\s+/)}function X(t){return t.classList||new H(t)}function H(t){this._node=t,this._names=Y(t.getAttribute("class")||"")}function $(t,n){for(var e=X(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function Z(t,n){for(var e=X(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function K(t){return function(){$(this,t)}}function J(t){return function(){Z(this,t)}}function Q(t,n){return function(){(n.apply(this,arguments)?$:Z)(this,t)}}function tt(){this.textContent=""}function nt(t){return function(){this.textContent=t}}function et(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function rt(){this.innerHTML=""}function it(t){return function(){this.innerHTML=t}}function ot(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function ut(){this.nextSibling&&this.parentNode.appendChild(this)}function at(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function st(){return null}function ct(){var t=this.parentNode;t&&t.removeChild(this)}function ft(t,n,e){var r=Qf(t),i=r.CustomEvent;i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function ht(t,n){return function(){return ft(this,t,n)}}function lt(t,n){return function(){return ft(this,t,n.apply(this,arguments))}}function pt(t,n){this._groups=t,this._parents=n}function dt(){return new pt([[document.documentElement]],lh)}function gt(){t.event.stopImmediatePropagation()}function vt(t,n){var e=t.document.documentElement,r=ph(t).on("dragstart.drag",null);n&&(r.on("click.drag",yh,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}function yt(t,n,e,r,i,o,u,a,s,c){this.target=t,this.type=n,this.subject=e,this.identifier=r,this.active=i,this.x=o,this.y=u,this.dx=a,this.dy=s,this._=c}function _t(){return!t.event.button}function mt(){return this.parentNode}function bt(n){return null==n?{x:t.event.x,y:t.event.y}:n}function xt(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function wt(){}function kt(t){var n;return t=(t+"").trim().toLowerCase(),(n=Sh.exec(t))?(n=parseInt(n[1],16),new Tt(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1)):(n=Th.exec(t))?Mt(parseInt(n[1],16)):(n=Ch.exec(t))?new Tt(n[1],n[2],n[3],1):(n=Oh.exec(t))?new Tt(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Ph.exec(t))?Et(n[1],n[2],n[3],n[4]):(n=Lh.exec(t))?Et(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Nh.exec(t))?Ct(n[1],n[2]/100,n[3]/100,1):(n=Dh.exec(t))?Ct(n[1],n[2]/100,n[3]/100,n[4]):jh.hasOwnProperty(t)?Mt(jh[t]):"transparent"===t?new Tt(0/0,0/0,0/0,0):null}function Mt(t){return new Tt(t>>16&255,t>>8&255,255&t,1)}function Et(t,n,e,r){return 0>=r&&(t=n=e=0/0),new Tt(t,n,e,r)}function At(t){return t instanceof wt||(t=kt(t)),t?(t=t.rgb(),new Tt(t.r,t.g,t.b,t.opacity)):new Tt}function St(t,n,e,r){return 1===arguments.length?At(t):new Tt(t,n,e,null==r?1:r)}function Tt(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Ct(t,n,e,r){return 0>=r?t=n=e=0/0:0>=e||e>=1?t=n=0/0:0>=n&&(t=0/0),new Lt(t,n,e,r)}function Ot(t){if(t instanceof Lt)return new Lt(t.h,t.s,t.l,t.opacity);if(t instanceof wt||(t=kt(t)),!t)return new Lt;if(t instanceof Lt)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=0/0,a=o-i,s=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(r>e):e===o?(r-n)/a+2:(n-e)/a+4,a/=.5>s?o+i:2-o-i,u*=60):a=s>0&&1>s?0:u,new Lt(u,a,s,t.opacity)}function Pt(t,n,e,r){return 1===arguments.length?Ot(t):new Lt(t,n,e,null==r?1:r)}function Lt(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Nt(t,n,e){return 255*(60>t?n+(e-n)*t/60:180>t?e:240>t?n+(e-n)*(240-t)/60:n)}function Dt(t){if(t instanceof It)return new It(t.l,t.a,t.b,t.opacity);if(t instanceof Vt){var n=t.h*Ih;return new It(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof Tt||(t=At(t));var e=Bt(t.r),r=Bt(t.g),i=Bt(t.b),o=zt((.4124564*e+.3575761*r+.1804375*i)/qh),u=zt((.2126729*e+.7151522*r+.072175*i)/Bh),a=zt((.0193339*e+.119192*r+.9503041*i)/Fh);return new It(116*u-16,500*(o-u),200*(u-a),t.opacity)}function jt(t,n,e,r){return 1===arguments.length?Dt(t):new It(t,n,e,null==r?1:r)}function It(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function zt(t){return t>Gh?Math.pow(t,1/3):t/Wh+Uh}function Rt(t){return t>Vh?t*t*t:Wh*(t-Uh)}function qt(t){return 255*(.0031308>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Bt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ft(t){if(t instanceof Vt)return new Vt(t.h,t.c,t.l,t.opacity);t instanceof It||(t=Dt(t));var n=Math.atan2(t.b,t.a)*zh;return new Vt(0>n?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Ut(t,n,e,r){return 1===arguments.length?Ft(t):new Vt(t,n,e,null==r?1:r)}function Vt(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function Wt(t){if(t instanceof Yt)return new Yt(t.h,t.s,t.l,t.opacity);t instanceof Tt||(t=At(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Qh*r+Kh*n-Jh*e)/(Qh+Kh-Jh),o=r-i,u=(Zh*(e-i)-Hh*o)/$h,a=Math.sqrt(u*u+o*o)/(Zh*i*(1-i)),s=a?Math.atan2(u,o)*zh-120:0/0;return new Yt(0>s?s+360:s,a,i,t.opacity)}function Gt(t,n,e,r){return 1===arguments.length?Wt(t):new Yt(t,n,e,null==r?1:r)}function Yt(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Xt(t,n,e,r,i){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*e+(1+3*t+3*o-3*u)*r+u*i)/6}function Ht(t,n){return function(e){return t+e*n}}function $t(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}function Zt(t,n){var e=n-t;return e?Ht(t,e>180||-180>e?e-360*Math.round(e/360):e):sl(isNaN(t)?n:t)}function Kt(t){return 1===(t=+t)?Jt:function(n,e){return e-n?$t(n,e,t):sl(isNaN(n)?e:n)}}function Jt(t,n){var e=n-t;return e?Ht(t,e):sl(isNaN(t)?n:t)}function Qt(t){return function(n){var e,r,i=n.length,o=new Array(i),u=new Array(i),a=new Array(i);for(e=0;i>e;++e)r=St(n[e]),o[e]=r.r||0,u[e]=r.g||0,a[e]=r.b||0;return o=t(o),u=t(u),a=t(a),r.opacity=1,function(t){return r.r=o(t),r.g=u(t),r.b=a(t),r+""}}}function tn(t){return function(){return t}}function nn(t){return function(n){return t(n)+""}}function en(t){return"none"===t?wl:(tl||(tl=document.createElement("DIV"),nl=document.documentElement,el=document.defaultView),tl.style.transform=t,t=el.getComputedStyle(nl.appendChild(tl),null).getPropertyValue("transform"),nl.removeChild(tl),t=t.slice(7,-1).split(","),kl(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function rn(t){return null==t?wl:(rl||(rl=document.createElementNS("http://www.w3.org/2000/svg","g")),rl.setAttribute("transform",t),(t=rl.transform.baseVal.consolidate())?(t=t.matrix,kl(t.a,t.b,t.c,t.d,t.e,t.f)):wl)}function on(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}function o(t,r,i,o,u,a){if(t!==i||r!==o){var s=u.push("translate(",null,n,null,e);a.push({i:s-4,x:dl(t,i)},{i:s-2,x:dl(r,o)})}else(i||o)&&u.push("translate("+i+n+o+e)}function u(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:dl(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}function a(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:dl(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}function s(t,n,e,r,o,u){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:dl(t,e)},{i:a-2,x:dl(n,r)})}else(1!==e||1!==r)&&o.push(i(o)+"scale("+e+","+r+")")}return function(n,e){var r=[],i=[];return n=t(n),e=t(e),o(n.translateX,n.translateY,e.translateX,e.translateY,r,i),u(n.rotate,e.rotate,r,i),a(n.skewX,e.skewX,r,i),s(n.scaleX,n.scaleY,e.scaleX,e.scaleY,r,i),n=e=null,function(t){for(var n,e=-1,o=i.length;++e<o;)r[(n=i[e]).i]=n.x(t);return r.join("")}}}function un(t){return((t=Math.exp(t))+1/t)/2}function an(t){return((t=Math.exp(t))-1/t)/2}function sn(t){return((t=Math.exp(2*t))-1)/(t+1)}function cn(t){return function(n,e){var r=t((n=Pt(n)).h,(e=Pt(e)).h),i=Jt(n.s,e.s),o=Jt(n.l,e.l),u=Jt(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=o(t),n.opacity=u(t),n+""}}}function fn(t,n){var e=Jt((t=jt(t)).l,(n=jt(n)).l),r=Jt(t.a,n.a),i=Jt(t.b,n.b),o=Jt(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=o(n),t+""}}function hn(t){return function(n,e){var r=t((n=Ut(n)).h,(e=Ut(e)).h),i=Jt(n.c,e.c),o=Jt(n.l,e.l),u=Jt(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=o(t),n.opacity=u(t),n+""}}}function ln(t){return function n(e){function r(n,r){var i=t((n=Gt(n)).h,(r=Gt(r)).h),o=Jt(n.s,r.s),u=Jt(n.l,r.l),a=Jt(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=u(Math.pow(t,e)),n.opacity=a(t),n+""}}return e=+e,r.gamma=n,r}(1)}function pn(){return Vl||(Yl(dn),Vl=Gl.now()+Wl)}function dn(){Vl=0}function gn(){this._call=this._time=this._next=null}function vn(t,n,e){var r=new gn;return r.restart(t,n,e),r}function yn(){pn(),++Rl;for(var t,n=il;n;)(t=Vl-n._time)>=0&&n._call.call(null,t),n=n._next;--Rl}function _n(){Vl=(Ul=Gl.now())+Wl,Rl=ql=0;try{yn()}finally{Rl=0,bn(),Vl=0}}function mn(){var t=Gl.now(),n=t-Ul;n>Fl&&(Wl-=n,Ul=t)}function bn(){for(var t,n,e=il,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:il=n);ol=t,xn(r)}function xn(t){if(!Rl){ql&&(ql=clearTimeout(ql));var n=t-Vl;n>24?(1/0>t&&(ql=setTimeout(_n,n)),Bl&&(Bl=clearInterval(Bl))):(Bl||(Ul=Vl,Bl=setInterval(mn,Fl)),Rl=1,Yl(_n))}}function wn(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>Kl)throw new Error("too late");return e}function kn(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>Ql)throw new Error("too late");return e}function Mn(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("too late");return e}function En(t,n,e){function r(t){e.state=Jl,e.timer.restart(i,e.delay,e.time),e.delay<=t&&i(t-e.delay)}function i(r){var c,f,h,l;if(e.state!==Jl)return u();for(c in s)if(l=s[c],l.name===e.name){if(l.state===tp)return Xl(i);l.state===np?(l.state=rp,l.timer.stop(),l.on.call("interrupt",t,t.__data__,l.index,l.group),delete s[c]):n>+c&&(l.state=rp,l.timer.stop(),delete s[c])}if(Xl(function(){e.state===tp&&(e.state=np,e.timer.restart(o,e.delay,e.time),o(r))}),e.state=Ql,e.on.call("start",t,t.__data__,e.index,e.group),e.state===Ql){for(e.state=tp,a=new Array(h=e.tween.length),c=0,f=-1;h>c;++c)(l=e.tween[c].value.call(t,t.__data__,e.index,e.group))&&(a[++f]=l);a.length=f+1}}function o(n){for(var r=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(u),e.state=ep,1),i=-1,o=a.length;++i<o;)a[i].call(null,r);e.state===ep&&(e.on.call("end",t,t.__data__,e.index,e.group),u())}function u(){e.state=rp,e.timer.stop(),delete s[n];for(var r in s)return;delete t.__transition}var a,s=t.__transition;s[n]=e,e.timer=vn(r,0,e.time)}function An(t,n){var e,r;return function(){var i=kn(this,t),o=i.tween;if(o!==e){r=e=o;for(var u=0,a=r.length;a>u;++u)if(r[u].name===n){r=r.slice(),r.splice(u,1);break}}i.tween=r}}function Sn(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=kn(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},s=0,c=i.length;c>s;++s)if(i[s].name===n){i[s]=a;break}s===c&&i.push(a)}o.tween=i}}function Tn(t,n,e){var r=t._id;return t.each(function(){var t=kn(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)}),function(t){return Mn(t,r).value[n]}}function Cn(t){return function(){this.removeAttribute(t)}}function On(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Pn(t,n,e){var r,i;return function(){var o=this.getAttribute(t);return o===e?null:o===r?i:i=n(r=o,e)}}function Ln(t,n,e){var r,i;return function(){var o=this.getAttributeNS(t.space,t.local);return o===e?null:o===r?i:i=n(r=o,e)}}function Nn(t,n,e){var r,i,o;return function(){var u,a=e(this);return null==a?void this.removeAttribute(t):(u=this.getAttribute(t),u===a?null:u===r&&a===i?o:o=n(r=u,i=a))}}function Dn(t,n,e){var r,i,o;return function(){var u,a=e(this);return null==a?void this.removeAttributeNS(t.space,t.local):(u=this.getAttributeNS(t.space,t.local),u===a?null:u===r&&a===i?o:o=n(r=u,i=a))}}function jn(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttributeNS(t.space,t.local,r(n))}}return e._value=n,e}function In(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttribute(t,r(n))}}return e._value=n,e}function zn(t,n){return function(){wn(this,t).delay=+n.apply(this,arguments)}}function Rn(t,n){return n=+n,function(){wn(this,t).delay=n}}function qn(t,n){return function(){kn(this,t).duration=+n.apply(this,arguments)}}function Bn(t,n){return n=+n,function(){kn(this,t).duration=n}}function Fn(t,n){if("function"!=typeof n)throw new Error;return function(){kn(this,t).ease=n}}function Un(t){return(t+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t})}function Vn(t,n,e){var r,i,o=Un(n)?wn:kn;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}function Wn(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function Gn(t,n){var e,r,i;return function(){var o=Qf(this).getComputedStyle(this,null),u=o.getPropertyValue(t),a=(this.style.removeProperty(t),o.getPropertyValue(t));return u===a?null:u===e&&a===r?i:i=n(e=u,r=a)}}function Yn(t){return function(){this.style.removeProperty(t)}}function Xn(t,n,e){var r,i;return function(){var o=Qf(this).getComputedStyle(this,null).getPropertyValue(t);return o===e?null:o===r?i:i=n(r=o,e)}}function Hn(t,n,e){var r,i,o;return function(){var u=Qf(this).getComputedStyle(this,null),a=u.getPropertyValue(t),s=e(this);return null==s&&(this.style.removeProperty(t),s=u.getPropertyValue(t)),a===s?null:a===r&&s===i?o:o=n(r=a,i=s)}}function $n(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}function Zn(t){return function(){this.textContent=t}}function Kn(t){return function(){var n=t(this);this.textContent=null==n?"":n}}function Jn(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Qn(t){return dt().transition(t)}function te(){return++Ap}function ne(t){return+t}function ee(t){return t*t}function re(t){return t*(2-t)}function ie(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function oe(t){return t*t*t}function ue(t){return--t*t*t+1}function ae(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function se(t){return 1-Math.cos(t*Np)}function ce(t){return Math.sin(t*Np)}function fe(t){return(1-Math.cos(Lp*t))/2}function he(t){return Math.pow(2,10*t-10)}function le(t){return 1-Math.pow(2,-10*t)}function pe(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function de(t){return 1-Math.sqrt(1-t*t)}function ge(t){return Math.sqrt(1- --t*t)}function ve(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}function ye(t){return 1-_e(1-t)}function _e(t){return(t=+t)<Dp?Vp*t*t:Ip>t?Vp*(t-=jp)*t+zp:qp>t?Vp*(t-=Rp)*t+Bp:Vp*(t-=Fp)*t+Up}function me(t){return((t*=2)<=1?1-_e(1-t):_e(t-1)+1)/2}function be(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return td.time=pn(),td;return e}function xe(){t.event.stopImmediatePropagation()}function we(t){return{type:t}}function ke(){return!t.event.button}function Me(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Ee(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Ae(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Se(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function Te(){return Oe(hd)}function Ce(){return Oe(ld)}function Oe(n){function e(t){var e=t.property("__brush",a).selectAll(".overlay").data([we("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",dd.overlay).merge(e).each(function(){var t=Ee(this).extent;ph(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])}),t.selectAll(".selection").data([we("selection")]).enter().append("rect").attr("class","selection").attr("cursor",dd.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=t.selectAll(".handle").data(n.handles,function(t){return t.type});i.exit().remove(),i.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return dd[t.type]}),t.each(r).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",u);
}function r(){var t=ph(this),n=Ee(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?n[1][0]-l/2:n[0][0]-l/2}).attr("y",function(t){return"s"===t.type[0]?n[1][1]-l/2:n[0][1]-l/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+l:l}).attr("height",function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+l:l})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function i(t,n){return t.__brush.emitter||new o(t,n)}function o(t,n){this.that=t,this.args=n,this.state=t.__brush,this.active=0}function u(){function e(){var t=Pf(M);!I||w||k||(Math.abs(t[0]-R[0])>Math.abs(t[1]-R[1])?k=!0:w=!0),R=t,x=!0,ud(),o()}function o(){var t;switch(m=R[0]-z[0],b=R[1]-z[1],A){case sd:case ad:S&&(m=Math.max(L-h,Math.min(D-g,m)),l=h+m,v=g+m),T&&(b=Math.max(N-p,Math.min(j-y,b)),d=p+b,_=y+b);break;case cd:0>S?(m=Math.max(L-h,Math.min(D-h,m)),l=h+m,v=g):S>0&&(m=Math.max(L-g,Math.min(D-g,m)),l=h,v=g+m),0>T?(b=Math.max(N-p,Math.min(j-p,b)),d=p+b,_=y):T>0&&(b=Math.max(N-y,Math.min(j-y,b)),d=p,_=y+b);break;case fd:S&&(l=Math.max(L,Math.min(D,h-m*S)),v=Math.max(L,Math.min(D,g+m*S))),T&&(d=Math.max(N,Math.min(j,p-b*T)),_=Math.max(N,Math.min(j,y+b*T)))}l>v&&(S*=-1,t=h,h=g,g=t,t=l,l=v,v=t,E in gd&&F.attr("cursor",dd[E=gd[E]])),d>_&&(T*=-1,t=p,p=y,y=t,t=d,d=_,_=t,E in vd&&F.attr("cursor",dd[E=vd[E]])),C.selection&&(P=C.selection),w&&(l=P[0][0],v=P[1][0]),k&&(d=P[0][1],_=P[1][1]),(P[0][0]!==l||P[0][1]!==d||P[1][0]!==v||P[1][1]!==_)&&(C.selection=[[l,d],[v,_]],r.call(M),q.brush())}function u(){if(xe(),t.event.touches){if(t.event.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500),B.on("touchmove.brush touchend.brush touchcancel.brush",null)}else vt(t.event.view,x),U.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);B.attr("pointer-events","all"),F.attr("cursor",dd.overlay),C.selection&&(P=C.selection),Ae(P)&&(C.selection=null,r.call(M)),q.end()}function a(){switch(t.event.keyCode){case 16:I=S&&T;break;case 18:A===cd&&(S&&(g=v-m*S,h=l+m*S),T&&(y=_-b*T,p=d+b*T),A=fd,o());break;case 32:(A===cd||A===fd)&&(0>S?g=v-m:S>0&&(h=l-m),0>T?y=_-b:T>0&&(p=d-b),A=sd,F.attr("cursor",dd.selection),o());break;default:return}ud()}function c(){switch(t.event.keyCode){case 16:I&&(w=k=I=!1,o());break;case 18:A===fd&&(0>S?g=v:S>0&&(h=l),0>T?y=_:T>0&&(p=d),A=cd,o());break;case 32:A===sd&&(t.event.altKey?(S&&(g=v-m*S,h=l+m*S),T&&(y=_-b*T,p=d+b*T),A=fd):(0>S?g=v:S>0&&(h=l),0>T?y=_:T>0&&(p=d),A=cd),F.attr("cursor",dd[E]),o());break;default:return}ud()}if(t.event.touches){if(t.event.changedTouches.length<t.event.touches.length)return ud()}else if(s)return;if(f.apply(this,arguments)){var h,l,p,d,g,v,y,_,m,b,x,w,k,M=this,E=t.event.target.__data__.type,A="selection"===(t.event.metaKey?E="overlay":E)?ad:t.event.altKey?fd:cd,S=n===ld?null:yd[E],T=n===hd?null:_d[E],C=Ee(M),O=C.extent,P=C.selection,L=O[0][0],N=O[0][1],D=O[1][0],j=O[1][1],I=S&&T&&t.event.shiftKey,z=Pf(M),R=z,q=i(M,arguments).beforestart();"overlay"===E?C.selection=P=[[h=n===ld?L:z[0],p=n===hd?N:z[1]],[g=n===ld?D:h,y=n===hd?j:p]]:(h=P[0][0],p=P[0][1],g=P[1][0],y=P[1][1]),l=h,d=p,v=g,_=y;var B=ph(M).attr("pointer-events","none"),F=B.selectAll(".overlay").attr("cursor",dd[E]);if(t.event.touches)B.on("touchmove.brush",e,!0).on("touchend.brush touchcancel.brush",u,!0);else{var U=ph(t.event.view).on("keydown.brush",a,!0).on("keyup.brush",c,!0).on("mousemove.brush",e,!0).on("mouseup.brush",u,!0);_h(t.event.view)}xe(),op(M),r.call(M),q.start()}}function a(){var t=this.__brush||{selection:null};return t.extent=c.apply(this,arguments),t.dim=n,t}var s,c=Me,f=ke,h=p(e,"start","brush","end"),l=6;return e.move=function(t,e){t.selection?t.on("start.brush",function(){i(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){i(this,arguments).end()}).tween("brush",function(){function t(t){u.selection=1===t&&Ae(c)?null:f(t),r.call(o),a.brush()}var o=this,u=o.__brush,a=i(o,arguments),s=u.selection,c=n.input("function"==typeof e?e.apply(this,arguments):e,u.extent),f=ml(s,c);return s&&c?t:t(1)}):t.each(function(){var t=this,o=arguments,u=t.__brush,a=n.input("function"==typeof e?e.apply(t,o):e,u.extent),s=i(t,o).beforestart();op(t),u.selection=null==a||Ae(a)?null:a,r.call(t),s.start().brush().end()})},o.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0===--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(t){S(new od(e,t,n.output(this.state.selection)),h.apply,h,[t,this.that,this.args])}},e.extent=function(t){return arguments.length?(c="function"==typeof t?t:id([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),e):c},e.filter=function(t){return arguments.length?(f="function"==typeof t?t:id(!!t),e):f},e.handleSize=function(t){return arguments.length?(l=+t,e):l},e.on=function(){var t=h.on.apply(h,arguments);return t===h?e:t},e}function Pe(t){return function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)}}function Le(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Ne(){return new Le}function De(t){return t.source}function je(t){return t.target}function Ie(t){return t.radius}function ze(t){return t.startAngle}function Re(t){return t.endAngle}function qe(){}function Be(t,n){var e=new qe;if(t instanceof qe)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==n)for(;++i<o;)e.set(i,t[i]);else for(;++i<o;)e.set(n(r=t[i],i,t),r)}else if(t)for(var u in t)e.set(u,t[u]);return e}function Fe(){return{}}function Ue(t,n,e){t[n]=e}function Ve(){return Be()}function We(t,n,e){t.set(n,e)}function Ge(){}function Ye(t,n){var e=new Ge;if(t instanceof Ge)t.each(function(t){e.add(t)});else if(t){var r=-1,i=t.length;if(null==n)for(;++r<i;)e.add(t[r]);else for(;++r<i;)e.add(n(t[r],r,t))}return e}function Xe(t){return new Function("d","return {"+t.map(function(t,n){return JSON.stringify(t)+": d["+n+"]"}).join(",")+"}")}function He(t,n){var e=Xe(t);return function(r,i){return n(e(r),i,t)}}function $e(t){var n=Object.create(null),e=[];return t.forEach(function(t){for(var r in t)r in n||e.push(n[r]=r)}),e}function Ze(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,u,a,s,c,f,h,l,p=t._root,d={data:r},g=t._x0,v=t._y0,y=t._x1,_=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((c=n>=(o=(g+y)/2))?g=o:y=o,(f=e>=(u=(v+_)/2))?v=u:_=u,i=p,!(p=p[h=f<<1|c]))return i[h]=d,t;if(a=+t._x.call(null,p.data),s=+t._y.call(null,p.data),n===a&&e===s)return d.next=p,i?i[h]=d:t._root=d,t;do i=i?i[h]=new Array(4):t._root=new Array(4),(c=n>=(o=(g+y)/2))?g=o:y=o,(f=e>=(u=(v+_)/2))?v=u:_=u;while((h=f<<1|c)===(l=(s>=u)<<1|a>=o));return i[l]=p,i[h]=d,t}function Ke(t){var n,e,r,i,o=t.length,u=new Array(o),a=new Array(o),s=1/0,c=1/0,f=-(1/0),h=-(1/0);for(e=0;o>e;++e)isNaN(r=+this._x.call(null,n=t[e]))||isNaN(i=+this._y.call(null,n))||(u[e]=r,a[e]=i,s>r&&(s=r),r>f&&(f=r),c>i&&(c=i),i>h&&(h=i));for(s>f&&(s=this._x0,f=this._x1),c>h&&(c=this._y0,h=this._y1),this.cover(s,c).cover(f,h),e=0;o>e;++e)Ze(this,u[e],a[e],t[e]);return this}function Je(t){for(var n=0,e=t.length;e>n;++n)this.remove(t[n]);return this}function Qe(t){return t[0]}function tr(t){return t[1]}function nr(t,n,e){var r=new er(null==n?Qe:n,null==e?tr:e,0/0,0/0,0/0,0/0);return null==t?r:r.addAll(t)}function er(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function rr(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}function ir(t){return t.x+t.vx}function or(t){return t.y+t.vy}function ur(t){return t.index}function ar(t,n){var e=t.get(n);if(!e)throw new Error("missing: "+n);return e}function sr(t){return t.x}function cr(t){return t.y}function fr(t){if(!(n=Og.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",r=n[2]||">",i=n[3]||"-",o=n[4]||"",u=!!n[5],a=n[6]&&+n[6],s=!!n[7],c=n[8]&&+n[8].slice(1),f=n[9]||"";"n"===f?(s=!0,f="g"):Cg[f]||(f=""),(u||"0"===e&&"="===r)&&(u=!0,e="0",r="="),this.fill=e,this.align=r,this.sign=i,this.symbol=o,this.zero=u,this.width=a,this.comma=s,this.precision=c,this.type=f}function hr(t){return t}function lr(n){return Lg=Dg(n),t.format=Lg.format,t.formatPrefix=Lg.formatPrefix,Lg}function pr(){this.reset()}function dr(t,n,e){var r=t.s=n+e,i=r-n,o=r-i;t.t=n-o+(e-i)}function gr(t){return t>1?0:-1>t?mv:Math.acos(t)}function vr(t){return t>1?bv:-1>t?-bv:Math.asin(t)}function yr(t){return(t=Nv(t/2))*t}function _r(){}function mr(t,n){t&&Rv.hasOwnProperty(t.type)&&Rv[t.type](t,n)}function br(t,n,e){var r,i=-1,o=t.length-e;for(n.lineStart();++i<o;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function xr(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)br(t[e],n,1);n.polygonEnd()}function wr(){Uv.point=Mr}function kr(){Er(qg,Bg)}function Mr(t,n){Uv.point=Er,qg=t,Bg=n,t*=Mv,n*=Mv,Fg=t,Ug=Tv(n=n/2+xv),Vg=Nv(n)}function Er(t,n){t*=Mv,n*=Mv,n=n/2+xv;var e=t-Fg,r=e>=0?1:-1,i=r*e,o=Tv(n),u=Nv(n),a=Vg*u,s=Ug*o+a*Tv(i),c=a*r*Nv(i);Bv.add(Sv(c,s)),Fg=t,Ug=o,Vg=u}function Ar(t){return[Sv(t[1],t[0]),vr(t[2])]}function Sr(t){var n=t[0],e=t[1],r=Tv(e);return[r*Tv(n),r*Nv(n),Nv(e)]}function Tr(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function Cr(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 Or(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function Pr(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Lr(t){var n=jv(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}function Nr(t,n){Jg.push(Qg=[Wg=t,Yg=t]),Gg>n&&(Gg=n),n>Xg&&(Xg=n)}function Dr(t,n){var e=Sr([t*Mv,n*Mv]);if(Kg){var r=Cr(Kg,e),i=[r[1],-r[0],0],o=Cr(i,r);Lr(o),o=Ar(o);var u,a=t-Hg,s=a>0?1:-1,c=o[0]*kv*s,f=Ev(a)>180;f^(c>s*Hg&&s*t>c)?(u=o[1]*kv,u>Xg&&(Xg=u)):(c=(c+360)%360-180,f^(c>s*Hg&&s*t>c)?(u=-o[1]*kv,Gg>u&&(Gg=u)):(Gg>n&&(Gg=n),n>Xg&&(Xg=n))),f?Hg>t?Br(Wg,t)>Br(Wg,Yg)&&(Yg=t):Br(t,Yg)>Br(Wg,Yg)&&(Wg=t):Yg>=Wg?(Wg>t&&(Wg=t),t>Yg&&(Yg=t)):t>Hg?Br(Wg,t)>Br(Wg,Yg)&&(Yg=t):Br(t,Yg)>Br(Wg,Yg)&&(Wg=t)}else Nr(t,n);Kg=e,Hg=t}function jr(){Gv.point=Dr}function Ir(){Qg[0]=Wg,Qg[1]=Yg,Gv.point=Nr,Kg=null}function zr(t,n){if(Kg){var e=t-Hg;Wv.add(Ev(e)>180?e+(e>0?360:-360):e)}else $g=t,Zg=n;Uv.point(t,n),Dr(t,n)}function Rr(){Uv.lineStart()}function qr(){zr($g,Zg),Uv.lineEnd(),Ev(Wv)>yv&&(Wg=-(Yg=180)),Qg[0]=Wg,Qg[1]=Yg,Kg=null}function Br(t,n){return(n-=t)<0?n+360:n}function Fr(t,n){return t[0]-n[0]}function Ur(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}function Vr(t,n){t*=Mv,n*=Mv;var e=Tv(n);Wr(e*Tv(t),e*Nv(t),Nv(n))}function Wr(t,n,e){++tv,ev+=(t-ev)/tv,rv+=(n-rv)/tv,iv+=(e-iv)/tv}function Gr(){Xv.point=Yr}function Yr(t,n){t*=Mv,n*=Mv;var e=Tv(n);pv=e*Tv(t),dv=e*Nv(t),gv=Nv(n),Xv.point=Xr,Wr(pv,dv,gv)}function Xr(t,n){t*=Mv,n*=Mv;var e=Tv(n),r=e*Tv(t),i=e*Nv(t),o=Nv(n),u=Sv(jv((u=dv*o-gv*i)*u+(u=gv*r-pv*o)*u+(u=pv*i-dv*r)*u),pv*r+dv*i+gv*o);nv+=u,ov+=u*(pv+(pv=r)),uv+=u*(dv+(dv=i)),av+=u*(gv+(gv=o)),Wr(pv,dv,gv)}function Hr(){Xv.point=Vr}function $r(){Xv.point=Kr}function Zr(){Jr(hv,lv),Xv.point=Vr}function Kr(t,n){hv=t,lv=n,t*=Mv,n*=Mv,Xv.point=Jr;var e=Tv(n);pv=e*Tv(t),dv=e*Nv(t),gv=Nv(n),Wr(pv,dv,gv)}function Jr(t,n){t*=Mv,n*=Mv;var e=Tv(n),r=e*Tv(t),i=e*Nv(t),o=Nv(n),u=dv*o-gv*i,a=gv*r-pv*o,s=pv*i-dv*r,c=jv(u*u+a*a+s*s),f=pv*r+dv*i+gv*o,h=c&&-gr(f)/c,l=Sv(c,f);sv+=h*u,cv+=h*a,fv+=h*s,nv+=l,ov+=l*(pv+(pv=r)),uv+=l*(dv+(dv=i)),av+=l*(gv+(gv=o)),Wr(pv,dv,gv)}function Qr(t,n){return[t>mv?t-wv:-mv>t?t+wv:t,n]}function ti(t,n,e){return(t%=wv)?n||e?Zv(ei(t),ri(n,e)):ei(t):n||e?ri(n,e):Qr}function ni(t){return function(n,e){return n+=t,[n>mv?n-wv:-mv>n?n+wv:n,e]}}function ei(t){var n=ni(t);return n.invert=ni(-t),n}function ri(t,n){function e(t,n){var e=Tv(n),a=Tv(t)*e,s=Nv(t)*e,c=Nv(n),f=c*r+a*i;return[Sv(s*o-f*u,a*r-c*i),vr(f*o+s*u)]}var r=Tv(t),i=Nv(t),o=Tv(n),u=Nv(n);return e.invert=function(t,n){var e=Tv(n),a=Tv(t)*e,s=Nv(t)*e,c=Nv(n),f=c*o-s*u;return[Sv(s*o+c*u,a*r+f*i),vr(f*r-a*i)]},e}function ii(t,n,e,r,i,o){if(e){var u=Tv(n),a=Nv(n),s=r*e;null==i?(i=n+r*wv,o=n-s/2):(i=oi(u,i),o=oi(u,o),(r>0?o>i:i>o)&&(i+=r*wv));for(var c,f=i;r>0?f>o:o>f;f-=s)c=Ar([u,-a*Tv(f),-a*Nv(f)]),t.point(c[0],c[1])}}function oi(t,n){n=Sr(n),n[0]-=t,Lr(n);var e=gr(-n[1]);return((-n[2]<0?-e:e)+wv-yv)%wv}function ui(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function ai(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}function si(t,n,e,r){function i(i,o){return i>=t&&e>=i&&o>=n&&r>=o}function o(i,o,a,c){var f=0,h=0;if(null==i||(f=u(i,a))!==(h=u(o,a))||s(i,o)<0^a>0){do c.point(0===f||3===f?t:e,f>1?r:n);while((f=(f+a+4)%4)!==h)}else c.point(o[0],o[1])}function u(r,i){return Ev(r[0]-t)<yv?i>0?0:3:Ev(r[0]-e)<yv?i>0?2:1:Ev(r[1]-n)<yv?i>0?1:0:i>0?3:2}function a(t,n){return s(t.x,n.x)}function s(t,n){var e=u(t,1),r=u(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(u){function s(t,n){i(t,n)&&A.point(t,n)}function c(){for(var n=0,e=0,i=v.length;i>e;++e)for(var o,u,a=v[e],s=1,c=a.length,f=a[0],h=f[0],l=f[1];c>s;++s)o=h,u=l,f=a[s],h=f[0],l=f[1],r>=u?l>r&&(h-o)*(r-u)>(l-u)*(t-o)&&++n:r>=l&&(l-u)*(t-o)>(h-o)*(r-u)&&--n;return n}function f(){A=S,g=[],v=[],E=!0}function h(){var t=c(),n=E&&t,e=(g=Qc(g)).length;(n||e)&&(u.polygonStart(),n&&(u.lineStart(),o(null,null,1,u),u.lineEnd()),e&&py(g,a,t,o,u),u.polygonEnd()),A=u,g=v=y=null}function l(){T.point=d,v&&v.push(y=[]),M=!0,k=!1,x=w=0/0}function p(){g&&(d(_,m),b&&k&&S.rejoin(),g.push(S.result())),T.point=s,k&&A.lineEnd()}function d(o,u){var a=i(o,u);if(v&&y.push([o,u]),M)_=o,m=u,b=a,M=!1,a&&(A.lineStart(),A.point(o,u));else if(a&&k)A.point(o,u);else{var s=[x=Math.max(gy,Math.min(dy,x)),w=Math.max(gy,Math.min(dy,w))],c=[o=Math.max(gy,Math.min(dy,o)),u=Math.max(gy,Math.min(dy,u))];hy(s,c,t,n,e,r)?(k||(A.lineStart(),A.point(s[0],s[1])),A.point(c[0],c[1]),a||A.lineEnd(),E=!1):a&&(A.lineStart(),A.point(o,u),E=!1)}x=o,w=u,k=a}var g,v,y,_,m,b,x,w,k,M,E,A=u,S=fy(),T={point:s,lineStart:l,lineEnd:p,polygonStart:f,polygonEnd:h};return T}}function ci(){_y.point=hi,_y.lineEnd=fi}function fi(){_y.point=_y.lineEnd=_r}function hi(t,n){t*=Mv,n*=Mv,Kv=t,Jv=Nv(n),Qv=Tv(n),_y.point=li}function li(t,n){t*=Mv,n*=Mv;var e=Nv(n),r=Tv(n),i=Ev(t-Kv),o=Tv(i),u=Nv(i),a=r*u,s=Qv*e-Jv*r*o,c=Jv*e+Qv*r*o;yy.add(Sv(jv(a*a+s*s),c)),Kv=t,Jv=e,Qv=r}function pi(t,n,e){var r=Bc(t,n-yv,e).concat(n);return function(t){return r.map(function(n){return[t,n]})}}function di(t,n,e){var r=Bc(t,n-yv,e).concat(n);return function(t){return r.map(function(n){return[n,t]})}}function gi(){function t(){return{type:"MultiLineString",coordinates:n()}}function n(){return Bc(Cv(o/v)*v,i,v).map(l).concat(Bc(Cv(c/y)*y,s,y).map(p)).concat(Bc(Cv(r/d)*d,e,d).filter(function(t){return Ev(t%v)>yv}).map(f)).concat(Bc(Cv(a/g)*g,u,g).filter(function(t){return Ev(t%y)>yv}).map(h))}var e,r,i,o,u,a,s,c,f,h,l,p,d=10,g=d,v=90,y=360,_=2.5;return t.lines=function(){return n().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[l(o).concat(p(s).slice(1),l(i).reverse().slice(1),p(c).reverse().slice(1))]}},t.extent=function(n){return arguments.length?t.extentMajor(n).extentMinor(n):t.extentMinor()},t.extentMajor=function(n){return arguments.length?(o=+n[0][0],i=+n[1][0],c=+n[0][1],s=+n[1][1],o>i&&(n=o,o=i,i=n),c>s&&(n=c,c=s,s=n),t.precision(_)):[[o,c],[i,s]]},t.extentMinor=function(n){return arguments.length?(r=+n[0][0],e=+n[1][0],a=+n[0][1],u=+n[1][1],r>e&&(n=r,r=e,e=n),a>u&&(n=a,a=u,u=n),t.precision(_)):[[r,a],[e,u]]},t.step=function(n){return arguments.length?t.stepMajor(n).stepMinor(n):t.stepMinor()},t.stepMajor=function(n){return arguments.length?(v=+n[0],y=+n[1],t):[v,y]},t.stepMinor=function(n){return arguments.length?(d=+n[0],g=+n[1],t):[d,g]},t.precision=function(n){return arguments.length?(_=+n,f=pi(a,u,90),h=di(r,e,_),l=pi(c,s,90),p=di(o,i,_),t):_},t.extentMajor([[-180,-90+yv],[180,90-yv]]).extentMinor([[-180,-80-yv],[180,80+yv]])}function vi(){return gi()()}function yi(){Sy.point=_i}function _i(t,n){Sy.point=mi,ty=ey=t,ny=ry=n}function mi(t,n){Ay.add(ry*t-ey*n),ey=t,ry=n}function bi(){mi(ty,ny)}function xi(t,n){Ty>t&&(Ty=t),t>Oy&&(Oy=t),Cy>n&&(Cy=n),n>Py&&(Py=n)}function wi(t,n){Ny+=t,Dy+=n,++jy}function ki(){Uy.point=Mi}function Mi(t,n){Uy.point=Ei,wi(uy=t,ay=n)}function Ei(t,n){var e=t-uy,r=n-ay,i=jv(e*e+r*r);Iy+=i*(uy+t)/2,zy+=i*(ay+n)/2,Ry+=i,wi(uy=t,ay=n)}function Ai(){Uy.point=wi}function Si(){Uy.point=Ci}function Ti(){Oi(iy,oy)}function Ci(t,n){Uy.point=Oi,wi(iy=uy=t,oy=ay=n)}function Oi(t,n){var e=t-uy,r=n-ay,i=jv(e*e+r*r);Iy+=i*(uy+t)/2,zy+=i*(ay+n)/2,Ry+=i,i=ay*t-uy*n,qy+=i*(uy+t),By+=i*(ay+n),Fy+=3*i,wi(uy=t,ay=n)}function Pi(t){this._context=t}function Li(){this._string=[]}function Ni(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Di(t){return t.length>1}function ji(t,n){return((t=t.x)[0]<0?t[1]-bv-yv:bv-t[1])-((n=n.x)[0]<0?n[1]-bv-yv:bv-n[1])}function Ii(t){var n,e=0/0,r=0/0,i=0/0;return{lineStart:function(){t.lineStart(),n=1},point:function(o,u){var a=o>0?mv:-mv,s=Ev(o-e);Ev(s-mv)<yv?(t.point(e,r=(r+u)/2>0?bv:-bv),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(o,r),n=0):i!==a&&s>=mv&&(Ev(e-i)<yv&&(e-=i*yv),Ev(o-a)<yv&&(o-=a*yv),r=zi(e,r,o,u),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),n=0),t.point(e=o,r=u),i=a},lineEnd:function(){t.lineEnd(),e=r=0/0},clean:function(){return 2-n}}}function zi(t,n,e,r){var i,o,u=Nv(t-e);return Ev(u)>yv?Av((Nv(n)*(o=Tv(r))*Nv(e)-Nv(r)*(i=Tv(n))*Nv(t))/(i*o*u)):(n+r)/2}function Ri(t,n,e,r){var i;if(null==t)i=e*bv,r.point(-mv,i),r.point(0,i),r.point(mv,i),r.point(mv,0),r.point(mv,-i),r.point(0,-i),r.point(-mv,-i),r.point(-mv,0),r.point(-mv,i);else if(Ev(t[0]-n[0])>yv){var o=t[0]<n[0]?mv:-mv;i=e*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(n[0],n[1])}function qi(t){return function(n){var e=new Bi;for(var r in t)e[r]=t[r];return e.stream=n,e}}function Bi(){}function Fi(t,n,e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),qv(e,t.stream(Ly));var u=Ly.result(),a=Math.min(r/(u[1][0]-u[0][0]),i/(u[1][1]-u[0][1])),s=+n[0][0]+(r-a*(u[1][0]+u[0][0]))/2,c=+n[0][1]+(i-a*(u[1][1]+u[0][1]))/2;return null!=o&&t.clipExtent(o),t.scale(150*a).translate([s,c])}function Ui(t,n,e){return Fi(t,[[0,0],n],e)}function Vi(t){return qi({point:function(n,e){n=t(n,e),this.stream.point(n[0],n[1])}})}function Wi(t,n){function e(r,i,o,u,a,s,c,f,h,l,p,d,g,v){var y=c-r,_=f-i,m=y*y+_*_;if(m>4*n&&g--){var b=u+l,x=a+p,w=s+d,k=jv(b*b+x*x+w*w),M=vr(w/=k),E=Ev(Ev(w)-1)<yv||Ev(o-h)<yv?(o+h)/2:Sv(x,b),A=t(E,M),S=A[0],T=A[1],C=S-r,O=T-i,P=_*C-y*O;(P*P/m>n||Ev((y*C+_*O)/m-.5)>.3||Ky>u*l+a*p+s*d)&&(e(r,i,o,u,a,s,S,T,E,b/=k,x/=k,w,g,v),v.point(S,T),e(S,T,E,b,x,w,c,f,h,l,p,d,g,v))}}return function(n){function r(e,r){e=t(e,r),n.point(e[0],e[1])}function i(){y=0/0,w.point=o,n.lineStart()}function o(r,i){var o=Sr([r,i]),u=t(r,i);e(y,_,v,m,b,x,y=u[0],_=u[1],v=r,m=o[0],b=o[1],x=o[2],Zy,n),n.point(y,_)}function u(){w.point=r,n.lineEnd()}function a(){i(),w.point=s,w.lineEnd=c}function s(t,n){o(f=t,n),h=y,l=_,p=m,d=b,g=x,w.point=o}function c(){e(y,_,v,m,b,x,h,l,f,p,d,g,Zy,n),w.lineEnd=u,u()}var f,h,l,p,d,g,v,y,_,m,b,x,w={point:r,lineStart:i,lineEnd:u,polygonStart:function(){n.polygonStart(),w.lineStart=a},polygonEnd:function(){n.polygonEnd(),w.lineStart=i}};return w}}function Gi(t){return Yi(function(){return t})()}function Yi(t){function n(t){return t=f(t[0]*Mv,t[1]*Mv),[t[0]*v+a,s-t[1]*v]}function e(t){return t=f.invert((t[0]-a)/v,(s-t[1])/v),t&&[t[0]*kv,t[1]*kv]}function r(t,n){return t=u(t,n),[t[0]*v+a,s-t[1]*v]}function i(){f=Zv(c=ti(x,w,k),u);var t=u(m,b);return a=y-t[0]*v,s=_+t[1]*v,o()}function o(){return d=g=null,n}var u,a,s,c,f,h,l,p,d,g,v=150,y=480,_=250,m=0,b=0,x=0,w=0,k=0,M=null,E=Xy,A=null,S=My,T=.5,C=Jy(r,T);return n.stream=function(t){return d&&g===t?d:d=Qy(E(c,C(S(g=t))))},n.clipAngle=function(t){return arguments.length?(E=+t?Hy(M=t*Mv,6*Mv):(M=null,Xy),o()):M*kv},n.clipExtent=function(t){return arguments.length?(S=null==t?(A=h=l=p=null,My):si(A=+t[0][0],h=+t[0][1],l=+t[1][0],p=+t[1][1]),o()):null==A?null:[[A,h],[l,p]]},n.scale=function(t){return arguments.length?(v=+t,i()):v},n.translate=function(t){return arguments.length?(y=+t[0],_=+t[1],i()):[y,_]},n.center=function(t){return arguments.length?(m=t[0]%360*Mv,b=t[1]%360*Mv,i()):[m*kv,b*kv]},n.rotate=function(t){return arguments.length?(x=t[0]%360*Mv,w=t[1]%360*Mv,k=t.length>2?t[2]%360*Mv:0,i()):[x*kv,w*kv,k*kv]},n.precision=function(t){return arguments.length?(C=Jy(r,T=t*t),o()):jv(T)},n.fitExtent=function(t,e){return Fi(n,t,e)},n.fitSize=function(t,e){return Ui(n,t,e)},function(){return u=t.apply(this,arguments),n.invert=u.invert&&e,i()}}function Xi(t){var n=0,e=mv/3,r=Yi(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*Mv,e=t[1]*Mv):[n*kv,e*kv]},i}function Hi(t){function n(t,n){return[t*e,Nv(n)/e]}var e=Tv(t);return n.invert=function(t,n){return[t/e,vr(n*e)]},n}function $i(t,n){function e(t,n){var e=jv(o-2*i*Nv(n))/i;return[e*Nv(t*=i),u-e*Tv(t)]}var r=Nv(t),i=(r+Nv(n))/2;if(Ev(i)<yv)return Hi(t);var o=1+r*(2*i-r),u=jv(o)/i;return e.invert=function(t,n){var e=u-n;return[Sv(t,Ev(e))/i*Dv(e),vr((o-(t*t+e*e)*i*i)/(2*i))]},e}function Zi(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i<n;)t[i].point(e,r)},sphere:function(){for(var e=-1;++e<n;)t[e].sphere()},lineStart:function(){for(var e=-1;++e<n;)t[e].lineStart()},lineEnd:function(){for(var e=-1;++e<n;)t[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<n;)t[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<n;)t[e].polygonEnd()}}}function Ki(t){return function(n,e){var r=Tv(n),i=Tv(e),o=t(r*i);return[o*i*Nv(n),o*Nv(e)]}}function Ji(t){return function(n,e){var r=jv(n*n+e*e),i=t(r),o=Nv(i),u=Tv(i);return[Sv(n*o,r*u),vr(r&&e*o/r)]}}function Qi(t,n){return[t,Pv(Iv((bv+n)/2))]}function to(t){var n,e=Gi(t),r=e.scale,i=e.translate,o=e.clipExtent;return e.scale=function(t){return arguments.length?(r(t),n&&e.clipExtent(null),e):r()},e.translate=function(t){return arguments.length?(i(t),n&&e.clipExtent(null),e):i()},e.clipExtent=function(t){if(!arguments.length)return n?null:o();if(n=null==t){var u=mv*r(),a=i();t=[[a[0]-u,a[1]-u],[a[0]+u,a[1]+u]]}return o(t),e},e.clipExtent(null)}function no(t){return Iv((bv+t)/2)}function eo(t,n){function e(t,n){o>0?-bv+yv>n&&(n=-bv+yv):n>bv-yv&&(n=bv-yv);var e=o/Lv(no(n),i);return[e*Nv(i*t),o-e*Tv(i*t)]}var r=Tv(t),i=t===n?Nv(t):Pv(r/Tv(n))/Pv(no(n)/no(t)),o=r*Lv(no(t),i)/i;return i?(e.invert=function(t,n){var e=o-n,r=Dv(i)*jv(t*t+e*e);return[Sv(t,Ev(e))/i*Dv(e),2*Av(Lv(o/r,1/i))-bv]},e):Qi}function ro(t,n){return[t,n]}function io(t,n){function e(t,n){var e=o-n,r=i*t;return[e*Nv(r),o-e*Tv(r)]}var r=Tv(t),i=t===n?Nv(t):(r-Tv(n))/(n-t),o=r/i+t;return Ev(i)<yv?ro:(e.invert=function(t,n){var e=o-n;return[Sv(t,Ev(e))/i*Dv(e),o-Dv(i)*jv(t*t+e*e)]},e)}function oo(t,n){var e=Tv(n),r=Tv(t)*e;return[e*Nv(t)/r,Nv(n)/r]}function uo(t,n,e,r){return 1===t&&1===n&&0===e&&0===r?My:qi({point:function(i,o){this.stream.point(i*t+e,o*n+r)}})}function ao(t,n){return[Tv(n)*Nv(t),Nv(n)]}function so(t,n){var e=Tv(n),r=1+Tv(t)*e;return[e*Nv(t)/r,Nv(n)/r]}function co(t,n){return[Pv(Iv((bv+n)/2)),-t]}function fo(t,n){return t.parent===n.parent?1:2}function ho(t){return t.reduce(lo,0)/t.length}function lo(t,n){return t+n.x}function po(t){return 1+t.reduce(go,0)}function go(t,n){return Math.max(t,n.y)}function vo(t){for(var n;n=t.children;)t=n[0];return t}function yo(t){for(var n;n=t.children;)t=n[n.length-1];return t}function _o(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function mo(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}function bo(t,n){var e,r,i,o,u,a=new Eo(t),s=+t.value&&(a.value=t.value),c=[a];for(null==n&&(n=wo);e=c.pop();)if(s&&(e.value=+e.data.value),(i=n(e.data))&&(u=i.length))for(e.children=new Array(u),o=u-1;o>=0;--o)c.push(r=e.children[o]=new Eo(i[o])),r.parent=e,r.depth=e.depth+1;return a.eachBefore(Mo)}function xo(){return bo(this).eachBefore(ko)}function wo(t){return t.children}function ko(t){t.data=t.data.data}function Mo(t){var n=0;do t.height=n;while((t=t.parent)&&t.height<++n)}function Eo(t){this.data=t,this.depth=this.height=0,this.parent=null}function Ao(t){this._=t,this.next=null}function So(t,n){var e=n.x-t.x,r=n.y-t.y,i=t.r-n.r;return i*i+1e-6>e*e+r*r}function To(t,n){var e,r,i,o=null,u=t.head;switch(n.length){case 1:e=Co(n[0]);break;case 2:e=Oo(n[0],n[1]);break;case 3:e=Po(n[0],n[1],n[2])}for(;u;)i=u._,r=u.next,e&&So(e,i)?o=u:(o?(t.tail=o,o.next=null):t.head=t.tail=null,n.push(i),e=To(t,n),n.pop(),t.head?(u.next=t.head,t.head=u):(u.next=null,t.head=t.tail=u),o=t.tail,o.next=r),u=r;return t.tail=o,e}function Co(t){return{x:t.x,y:t.y,r:t.r}}function Oo(t,n){var e=t.x,r=t.y,i=t.r,o=n.x,u=n.y,a=n.r,s=o-e,c=u-r,f=a-i,h=Math.sqrt(s*s+c*c);return{x:(e+o+s/h*f)/2,y:(r+u+c/h*f)/2,r:(h+i+a)/2}}function Po(t,n,e){var r=t.x,i=t.y,o=t.r,u=n.x,a=n.y,s=n.r,c=e.x,f=e.y,h=e.r,l=2*(r-u),p=2*(i-a),d=2*(s-o),g=r*r+i*i-o*o-u*u-a*a+s*s,v=2*(r-c),y=2*(i-f),_=2*(h-o),m=r*r+i*i-o*o-c*c-f*f+h*h,b=v*p-l*y,x=(p*m-y*g)/b-r,w=(y*d-p*_)/b,k=(v*g-l*m)/b-i,M=(l*_-v*d)/b,E=w*w+M*M-1,A=2*(x*w+k*M+o),S=x*x+k*k-o*o,T=(-A-Math.sqrt(A*A-4*E*S))/(2*E);return{x:x+w*T+r,y:k+M*T+i,r:T}}function Lo(t,n,e){var r=t.x,i=t.y,o=n.r+e.r,u=t.r+e.r,a=n.x-r,s=n.y-i,c=a*a+s*s;if(c){var f=.5+((u*=u)-(o*=o))/(2*c),h=Math.sqrt(Math.max(0,2*o*(u+c)-(u-=c)*u-o*o))/(2*c);e.x=r+f*a+h*s,e.y=i+f*s-h*a}else e.x=r+u,e.y=i}function No(t,n){var e=n.x-t.x,r=n.y-t.y,i=t.r+n.r;return i*i-1e-6>e*e+r*r}function Do(t,n){for(var e=t._.r;t!==n;)e+=2*(t=t.next)._.r;return e-n._.r}function jo(t,n,e){var r=t.x-n,i=t.y-e;return r*r+i*i}function Io(t){this._=t,this.next=null,this.previous=null}function zo(t){if(!(i=t.length))return 0;var n,e,r,i;if(n=t[0],n.x=0,n.y=0,!(i>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(i>2))return n.r+e.r;Lo(e,n,r=t[2]);var o,u,a,s,c,f,h,l=n.r*n.r,p=e.r*e.r,d=r.r*r.r,g=l+p+d,v=l*n.x+p*e.x+d*r.x,y=l*n.y+p*e.y+d*r.y;n=new Io(n),e=new Io(e),r=new Io(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(a=3;i>a;++a){Lo(n._,e._,r=t[a]),r=new Io(r),s=e.next,c=n.previous,f=e._.r,h=n._.r;do if(h>=f){if(No(s._,r._)){f+n._.r+e._.r>Do(s,e)?n=s:e=s,n.next=e,e.previous=n,--a;continue t}f+=s._.r,s=s.next}else{if(No(c._,r._)){Do(n,c)>h+n._.r+e._.r?n=c:e=c,n.next=e,e.previous=n,--a;continue t}h+=c._.r,c=c.previous}while(s!==c.next);for(r.previous=n,r.next=e,n.next=e.previous=e=r,g+=d=r._.r*r._.r,v+=d*r._.x,y+=d*r._.y,l=jo(n._,o=v/g,u=y/g);(r=r.next)!==e;)(d=jo(r._,o,u))<l&&(n=r,l=d);e=n.next}for(n=[e._],r=e;(r=r.next)!==e;)n.push(r._);for(r=C_(n),a=0;i>a;++a)n=t[a],n.x-=r.x,n.y-=r.y;return r.r}function Ro(t){return null==t?null:qo(t)}function qo(t){if("function"!=typeof t)throw new Error;return t}function Bo(){return 0}function Fo(t){return Math.sqrt(t.value)}function Uo(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function Vo(t,n){return function(e){if(r=e.children){var r,i,o,u=r.length,a=t(e)*n||0;if(a)for(i=0;u>i;++i)r[i].r+=a;if(o=zo(r),a)for(i=0;u>i;++i)r[i].r-=a;e.r=o+a}}}function Wo(t){return function(n){var e=n.parent;n.r*=t,e&&(n.x=e.x+t*n.x,n.y=e.y+t*n.y)}}function Go(t){return t.id}function Yo(t){return t.parentId}function Xo(t,n){return t.parent===n.parent?1:2}function Ho(t){var n=t.children;return n?n[0]:t.t}function $o(t){var n=t.children;return n?n[n.length-1]:t.t}function Zo(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function Ko(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)n=i[o],n.z+=e,n.m+=e,e+=n.s+(r+=n.c)}function Jo(t,n,e){return t.a.parent===n.parent?t.a:e}function Qo(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}function tu(t){for(var n,e,r,i,o,u=new Qo(t,0),a=[u];n=a.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)a.push(e=n.children[i]=new Qo(r[i],i)),e.parent=n;return(u.parent=new Qo(null,0)).children=[u],u}function nu(t,n,e,r,i,o){for(var u,a,s,c,f,h,l,p,d,g,v,y=[],_=n.children,m=0,b=0,x=_.length,w=n.value;x>m;){s=i-e,c=o-r;do f=_[b++].value;while(!f&&x>b);for(h=l=f,g=Math.max(c/s,s/c)/(w*t),v=f*f*g,d=Math.max(l/v,v/h);x>b;++b){if(f+=a=_[b].value,h>a&&(h=a),a>l&&(l=a),v=f*f*g,p=Math.max(l/v,v/h),p>d){f-=a;break}d=p}y.push(u={value:f,dice:c>s,children:_.slice(m,b)}),u.dice?D_(u,e,r,i,w?r+=c*f/w:o):F_(u,e,r,w?e+=s*f/w:i,o),w-=f,m=b}return y}function eu(t,n){return t[0]-n[0]||t[1]-n[1]}function ru(t){for(var n=t.length,e=[0,1],r=2,i=2;n>i;++i){for(;r>1&&Z_(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function iu(t){if(!(t>=1))throw new Error;this._size=t,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function ou(t){if(!t._start)try{uu(t)}catch(n){if(t._tasks[t._ended+t._active-1])su(t,n);else if(!t._data)throw n}}function uu(t){for(;t._start=t._waiting&&t._active<t._size;){var n=t._ended+t._active,e=t._tasks[n],r=e.length-1,i=e[r];e[r]=au(t,n),--t._waiting,++t._active,e=i.apply(null,e),t._tasks[n]&&(t._tasks[n]=e||nm)}}function au(t,n){return function(e,r){t._tasks[n]&&(--t._active,++t._ended,t._tasks[n]=null,null==t._error&&(null!=e?su(t,e):(t._data[n]=r,t._waiting?ou(t):cu(t))))}}function su(t,n){var e,r=t._tasks.length;for(t._error=n,t._data=void 0,t._waiting=0/0;--r>=0;)if((e=t._tasks[r])&&(t._tasks[r]=null,e.abort))try{e.abort()}catch(n){}t._active=0/0,cu(t)}function cu(t){if(!t._active&&t._call){var n=t._data;t._data=void 0,t._call(t._error,n)}}function fu(t){return new iu(arguments.length?+t:1/0)}function hu(t){return function(n,e){t(null==n?e:null)}}function lu(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}function pu(t,n){return function(e){return t(e.responseText,n)}}function du(t){function n(n){var o=n+"",u=e.get(o);if(!u){if(i!==bm)return i;e.set(o,u=r.push(n))}return t[(u-1)%t.length]}var e=Be(),r=[],i=bm;return t=null==t?[]:mm.call(t),n.domain=function(t){if(!arguments.length)return r.slice();r=[],e=Be();for(var i,o,u=-1,a=t.length;++u<a;)e.has(o=(i=t[u])+"")||e.set(o,r.push(i));return n},n.range=function(e){return arguments.length?(t=mm.call(e),n):t.slice()},n.unknown=function(t){return arguments.length?(i=t,n):i},n.copy=function(){return du().domain(r).range(t).unknown(i)},n}function gu(){function t(){var t=i().length,r=u[1]<u[0],h=u[r-0],l=u[1-r];n=(l-h)/Math.max(1,t-s+2*c),a&&(n=Math.floor(n)),h+=(l-h-n*(t-s))*f,e=n*(1-s),a&&(h=Math.round(h),e=Math.round(e));var p=Bc(t).map(function(t){return h+n*t});return o(r?p.reverse():p)}var n,e,r=du().unknown(void 0),i=r.domain,o=r.range,u=[0,1],a=!1,s=0,c=0,f=.5;return delete r.unknown,r.domain=function(n){return arguments.length?(i(n),t()):i()},r.range=function(n){return arguments.length?(u=[+n[0],+n[1]],t()):u.slice()},r.rangeRound=function(n){return u=[+n[0],+n[1]],a=!0,t()},r.bandwidth=function(){return e},r.step=function(){return n},r.round=function(n){return arguments.length?(a=!!n,t()):a},r.padding=function(n){return arguments.length?(s=c=Math.max(0,Math.min(1,n)),t()):s},r.paddingInner=function(n){return arguments.length?(s=Math.max(0,Math.min(1,n)),t()):s},r.paddingOuter=function(n){return arguments.length?(c=Math.max(0,Math.min(1,n)),t()):c},r.align=function(n){return arguments.length?(f=Math.max(0,Math.min(1,n)),t()):f},r.copy=function(){return gu().domain(i()).range(u).round(a).paddingInner(s).paddingOuter(c).align(f)},t()}function vu(t){var n=t.copy;
return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return vu(n())},t}function yu(){return vu(gu().paddingInner(1))}function _u(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:xm(n)}function mu(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return n>=t?0:t>=e?1:r(t)}}}function bu(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return 0>=t?n:t>=1?e:r(t)}}}function xu(t,n,e,r){var i=t[0],o=t[1],u=n[0],a=n[1];return i>o?(i=e(o,i),u=r(a,u)):(i=e(i,o),u=r(u,a)),function(t){return u(i(t))}}function wu(t,n,e,r){var i=Math.min(t.length,n.length)-1,o=new Array(i),u=new Array(i),a=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<i;)o[a]=e(t[a],t[a+1]),u[a]=r(n[a],n[a+1]);return function(n){var e=Tc(t,n,1,i)-1;return u[e](o[e](n))}}function ku(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function Mu(t,n){function e(){return i=Math.min(a.length,s.length)>2?wu:xu,o=u=null,r}function r(n){return(o||(o=i(a,s,f?mu(t):t,c)))(+n)}var i,o,u,a=km,s=km,c=ml,f=!1;return r.invert=function(t){return(u||(u=i(s,a,_u,f?bu(n):n)))(+t)},r.domain=function(t){return arguments.length?(a=_m.call(t,wm),e()):a.slice()},r.range=function(t){return arguments.length?(s=mm.call(t),e()):s.slice()},r.rangeRound=function(t){return s=mm.call(t),c=bl,e()},r.clamp=function(t){return arguments.length?(f=!!t,e()):f},r.interpolate=function(t){return arguments.length?(c=t,e()):c},e()}function Eu(t){var n=t.domain;return t.ticks=function(t){var e=n();return Wc(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return Mm(n(),t,e)},t.nice=function(r){var i=n(),o=i.length-1,u=null==r?10:r,a=i[0],s=i[o],c=e(a,s,u);return c&&(c=e(Math.floor(a/c)*c,Math.ceil(s/c)*c,u),i[0]=Math.floor(a/c)*c,i[o]=Math.ceil(s/c)*c,n(i)),t},t}function Au(){var t=Mu(_u,dl);return t.copy=function(){return ku(t,Au())},Eu(t)}function Su(){function t(t){return+t}var n=[0,1];return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=_m.call(e,wm),t):n.slice()},t.copy=function(){return Su().domain(n)},Eu(t)}function Tu(t,n){return(n=Math.log(n/t))?function(e){return Math.log(e/t)/n}:xm(n)}function Cu(t,n){return 0>t?function(e){return-Math.pow(-n,e)*Math.pow(-t,1-e)}:function(e){return Math.pow(n,e)*Math.pow(t,1-e)}}function Ou(t){return isFinite(t)?+("1e"+t):0>t?0:t}function Pu(t){return 10===t?Ou:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}function Lu(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(n){return Math.log(n)/t})}function Nu(t){return function(n){return-t(-n)}}function Du(){function n(){return o=Lu(i),u=Pu(i),r()[0]<0&&(o=Nu(o),u=Nu(u)),e}var e=Mu(Tu,Cu).domain([1,10]),r=e.domain,i=10,o=Lu(10),u=Pu(10);return e.base=function(t){return arguments.length?(i=+t,n()):i},e.domain=function(t){return arguments.length?(r(t),n()):r()},e.ticks=function(t){var n,e=r(),a=e[0],s=e[e.length-1];(n=a>s)&&(l=a,a=s,s=l);var c,f,h,l=o(a),p=o(s),d=null==t?10:+t,g=[];if(!(i%1)&&d>p-l){if(l=Math.round(l)-1,p=Math.round(p)+1,a>0){for(;p>l;++l)for(f=1,c=u(l);i>f;++f)if(h=c*f,!(a>h)){if(h>s)break;g.push(h)}}else for(;p>l;++l)for(f=i-1,c=u(l);f>=1;--f)if(h=c*f,!(a>h)){if(h>s)break;g.push(h)}}else g=Wc(l,p,Math.min(p-l,d)).map(u);return n?g.reverse():g},e.tickFormat=function(n,r){if(null==r&&(r=10===i?".0e":","),"function"!=typeof r&&(r=t.format(r)),n===1/0)return r;null==n&&(n=10);var a=Math.max(1,i*n/e.ticks().length);return function(t){var n=t/u(Math.round(o(t)));return i-.5>n*i&&(n*=i),a>=n?r(t):""}},e.nice=function(){return r(Em(r(),{floor:function(t){return u(Math.floor(o(t)))},ceil:function(t){return u(Math.ceil(o(t)))}}))},e.copy=function(){return ku(e,Du().base(i))},e}function ju(t,n){return 0>t?-Math.pow(-t,n):Math.pow(t,n)}function Iu(){function t(t,n){return(n=ju(n,e)-(t=ju(t,e)))?function(r){return(ju(r,e)-t)/n}:xm(n)}function n(t,n){return n=ju(n,e)-(t=ju(t,e)),function(r){return ju(t+n*r,1/e)}}var e=1,r=Mu(t,n),i=r.domain;return r.exponent=function(t){return arguments.length?(e=+t,i(i())):e},r.copy=function(){return ku(r,Iu().exponent(e))},Eu(r)}function zu(){return Iu().exponent(.5)}function Ru(){function t(){var t=0,o=Math.max(1,r.length);for(i=new Array(o-1);++t<o;)i[t-1]=Xc(e,t/o);return n}function n(t){return isNaN(t=+t)?void 0:r[Tc(i,t)]}var e=[],r=[],i=[];return n.invertExtent=function(t){var n=r.indexOf(t);return 0>n?[0/0,0/0]:[n>0?i[n-1]:e[0],n<i.length?i[n]:e[e.length-1]]},n.domain=function(n){if(!arguments.length)return e.slice();e=[];for(var r,i=0,o=n.length;o>i;++i)r=n[i],null==r||isNaN(r=+r)||e.push(r);return e.sort(Ec),t()},n.range=function(n){return arguments.length?(r=mm.call(n),t()):r.slice()},n.quantiles=function(){return i.slice()},n.copy=function(){return Ru().domain(e).range(r)},n}function qu(){function t(t){return t>=t?u[Tc(o,t,0,i)]:void 0}function n(){var n=-1;for(o=new Array(i);++n<i;)o[n]=((n+1)*r-(n-i)*e)/(i+1);return t}var e=0,r=1,i=1,o=[.5],u=[0,1];return t.domain=function(t){return arguments.length?(e=+t[0],r=+t[1],n()):[e,r]},t.range=function(t){return arguments.length?(i=(u=mm.call(t)).length-1,n()):u.slice()},t.invertExtent=function(t){var n=u.indexOf(t);return 0>n?[0/0,0/0]:1>n?[e,o[0]]:n>=i?[o[i-1],r]:[o[n-1],o[n]]},t.copy=function(){return qu().domain([e,r]).range(u)},Eu(t)}function Bu(){function t(t){return t>=t?e[Tc(n,t,0,r)]:void 0}var n=[.5],e=[0,1],r=1;return t.domain=function(i){return arguments.length?(n=mm.call(i),r=Math.min(n.length,e.length-1),t):n.slice()},t.range=function(i){return arguments.length?(e=mm.call(i),r=Math.min(n.length,e.length-1),t):e.slice()},t.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},t.copy=function(){return Bu().domain(n).range(e)},t}function Fu(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return e-t>t-n?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var u=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(r>e&&o>0))return u;do u.push(new Date(+e));while(n(e,o),t(e),r>e);return u},i.filter=function(e){return Fu(function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)},function(t,r){if(t>=t)for(;--r>=0;)for(;n(t,1),!e(t););})},e&&(i.count=function(n,r){return Am.setTime(+n),Sm.setTime(+r),t(Am),t(Sm),Math.floor(e(Am,Sm))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t===0}:function(n){return i.count(0,n)%t===0}):i:null}),i}function Uu(t){return Fu(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+7*n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Pm)/Dm})}function Vu(t){return Fu(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+7*n)},function(t,n){return(n-t)/Dm})}function Wu(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Gu(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Yu(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function Xu(t){function n(t,n){return function(e){var r,i,o,u=[],a=-1,s=0,c=t.length;for(e instanceof Date||(e=new Date(+e));++a<c;)37===t.charCodeAt(a)&&(u.push(t.slice(s,a)),null!=(i=Lb[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),u.push(r),s=a+1);return u.push(t.slice(s,a)),u.join("")}}function e(t,n){return function(e){var i=Yu(1900),o=r(i,t,e+="",0);if(o!=e.length)return null;if("p"in i&&(i.H=i.H%12+12*i.p),"W"in i||"U"in i){"w"in i||(i.w="W"in i?1:0);var u="Z"in i?Gu(Yu(i.y)).getUTCDay():n(Yu(i.y)).getDay();i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(u+5)%7:i.w+7*i.U-(u+6)%7}return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Gu(i)):n(i)}}function r(t,n,e,r){for(var i,o,u=0,a=n.length,s=e.length;a>u;){if(r>=s)return-1;if(i=n.charCodeAt(u++),37===i){if(i=n.charAt(u++),o=U[i in Lb?n.charAt(u++):i],!o||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}function i(t,n,e){var r=O.exec(n.slice(e));return r?(t.p=P[r[0].toLowerCase()],e+r[0].length):-1}function o(t,n,e){var r=D.exec(n.slice(e));return r?(t.w=j[r[0].toLowerCase()],e+r[0].length):-1}function u(t,n,e){var r=L.exec(n.slice(e));return r?(t.w=N[r[0].toLowerCase()],e+r[0].length):-1}function a(t,n,e){var r=R.exec(n.slice(e));return r?(t.m=q[r[0].toLowerCase()],e+r[0].length):-1}function s(t,n,e){var r=I.exec(n.slice(e));return r?(t.m=z[r[0].toLowerCase()],e+r[0].length):-1}function c(t,n,e){return r(t,w,n,e)}function f(t,n,e){return r(t,k,n,e)}function h(t,n,e){return r(t,M,n,e)}function l(t){return S[t.getDay()]}function p(t){return A[t.getDay()]}function d(t){return C[t.getMonth()]}function g(t){return T[t.getMonth()]}function v(t){return E[+(t.getHours()>=12)]}function y(t){return S[t.getUTCDay()]}function _(t){return A[t.getUTCDay()]}function m(t){return C[t.getUTCMonth()]}function b(t){return T[t.getUTCMonth()]}function x(t){return E[+(t.getUTCHours()>=12)]}var w=t.dateTime,k=t.date,M=t.time,E=t.periods,A=t.days,S=t.shortDays,T=t.months,C=t.shortMonths,O=Zu(E),P=Ku(E),L=Zu(A),N=Ku(A),D=Zu(S),j=Ku(S),I=Zu(T),z=Ku(T),R=Zu(C),q=Ku(C),B={a:l,A:p,b:d,B:g,c:null,d:la,e:la,H:pa,I:da,j:ga,L:va,m:ya,M:_a,p:v,S:ma,U:ba,w:xa,W:wa,x:null,X:null,y:ka,Y:Ma,Z:Ea,"%":Ba},F={a:y,A:_,b:m,B:b,c:null,d:Aa,e:Aa,H:Sa,I:Ta,j:Ca,L:Oa,m:Pa,M:La,p:x,S:Na,U:Da,w:ja,W:Ia,x:null,X:null,y:za,Y:Ra,Z:qa,"%":Ba},U={a:o,A:u,b:a,B:s,c:c,d:oa,e:oa,H:aa,I:aa,j:ua,L:fa,m:ia,M:sa,p:i,S:ca,U:Qu,w:Ju,W:ta,x:f,X:h,y:ea,Y:na,Z:ra,"%":ha};return B.x=n(k,B),B.X=n(M,B),B.c=n(w,B),F.x=n(k,F),F.X=n(M,F),F.c=n(w,F),{format:function(t){var e=n(t+="",B);return e.toString=function(){return t},e},parse:function(t){var n=e(t+="",Wu);return n.toString=function(){return t},n},utcFormat:function(t){var e=n(t+="",F);return e.toString=function(){return t},e},utcParse:function(t){var n=e(t,Gu);return n.toString=function(){return t},n}}}function Hu(t,n,e){var r=0>t?"-":"",i=(r?-t:t)+"",o=i.length;return r+(e>o?new Array(e-o+1).join(n)+i:i)}function $u(t){return t.replace(jb,"\\$&")}function Zu(t){return new RegExp("^(?:"+t.map($u).join("|")+")","i")}function Ku(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function Ju(t,n,e){var r=Nb.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Qu(t,n,e){var r=Nb.exec(n.slice(e));return r?(t.U=+r[0],e+r[0].length):-1}function ta(t,n,e){var r=Nb.exec(n.slice(e));return r?(t.W=+r[0],e+r[0].length):-1}function na(t,n,e){var r=Nb.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function ea(t,n,e){var r=Nb.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function ra(t,n,e){var r=/^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function ia(t,n,e){var r=Nb.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function oa(t,n,e){var r=Nb.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function ua(t,n,e){var r=Nb.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function aa(t,n,e){var r=Nb.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function sa(t,n,e){var r=Nb.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function ca(t,n,e){var r=Nb.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function fa(t,n,e){var r=Nb.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function ha(t,n,e){var r=Db.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function la(t,n){return Hu(t.getDate(),n,2)}function pa(t,n){return Hu(t.getHours(),n,2)}function da(t,n){return Hu(t.getHours()%12||12,n,2)}function ga(t,n){return Hu(1+Fm.count(ob(t),t),n,3)}function va(t,n){return Hu(t.getMilliseconds(),n,3)}function ya(t,n){return Hu(t.getMonth()+1,n,2)}function _a(t,n){return Hu(t.getMinutes(),n,2)}function ma(t,n){return Hu(t.getSeconds(),n,2)}function ba(t,n){return Hu(Vm.count(ob(t),t),n,2)}function xa(t){return t.getDay()}function wa(t,n){return Hu(Wm.count(ob(t),t),n,2)}function ka(t,n){return Hu(t.getFullYear()%100,n,2)}function Ma(t,n){return Hu(t.getFullYear()%1e4,n,4)}function Ea(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Hu(n/60|0,"0",2)+Hu(n%60,"0",2)}function Aa(t,n){return Hu(t.getUTCDate(),n,2)}function Sa(t,n){return Hu(t.getUTCHours(),n,2)}function Ta(t,n){return Hu(t.getUTCHours()%12||12,n,2)}function Ca(t,n){return Hu(1+hb.count(Cb(t),t),n,3)}function Oa(t,n){return Hu(t.getUTCMilliseconds(),n,3)}function Pa(t,n){return Hu(t.getUTCMonth()+1,n,2)}function La(t,n){return Hu(t.getUTCMinutes(),n,2)}function Na(t,n){return Hu(t.getUTCSeconds(),n,2)}function Da(t,n){return Hu(pb.count(Cb(t),t),n,2)}function ja(t){return t.getUTCDay()}function Ia(t,n){return Hu(db.count(Cb(t),t),n,2)}function za(t,n){return Hu(t.getUTCFullYear()%100,n,2)}function Ra(t,n){return Hu(t.getUTCFullYear()%1e4,n,4)}function qa(){return"+0000"}function Ba(){return"%"}function Fa(n){return Ob=Xu(n),t.timeFormat=Ob.format,t.timeParse=Ob.parse,t.utcFormat=Ob.utcFormat,t.utcParse=Ob.utcParse,Ob}function Ua(t){return t.toISOString()}function Va(t){var n=new Date(t);return isNaN(n)?null:n}function Wa(t){return new Date(t)}function Ga(t){return t instanceof Date?+t:+new Date(+t)}function Ya(t,n,r,i,o,u,a,s,c){function f(e){return(a(e)<e?g:u(e)<e?v:o(e)<e?y:i(e)<e?_:n(e)<e?r(e)<e?m:b:t(e)<e?x:w)(e)}function h(n,r,i,o){if(null==n&&(n=10),"number"==typeof n){var u=Math.abs(i-r)/n,a=Ac(function(t){return t[2]}).right(k,u);a===k.length?(o=e(r/Gb,i/Gb,n),n=t):a?(a=k[u/k[a-1][2]<k[a][2]/u?a-1:a],o=a[1],n=a[0]):(o=e(r,i,n),n=s)}return null==o?n:n.every(o)}var l=Mu(_u,dl),p=l.invert,d=l.domain,g=c(".%L"),v=c(":%S"),y=c("%I:%M"),_=c("%I %p"),m=c("%a %d"),b=c("%b %d"),x=c("%B"),w=c("%Y"),k=[[a,1,qb],[a,5,5*qb],[a,15,15*qb],[a,30,30*qb],[u,1,Bb],[u,5,5*Bb],[u,15,15*Bb],[u,30,30*Bb],[o,1,Fb],[o,3,3*Fb],[o,6,6*Fb],[o,12,12*Fb],[i,1,Ub],[i,2,2*Ub],[r,1,Vb],[n,1,Wb],[n,3,3*Wb],[t,1,Gb]];return l.invert=function(t){return new Date(p(t))},l.domain=function(t){return arguments.length?d(_m.call(t,Ga)):d().map(Wa)},l.ticks=function(t,n){var e,r=d(),i=r[0],o=r[r.length-1],u=i>o;return u&&(e=i,i=o,o=e),e=h(t,i,o,n),e=e?e.range(i,o+1):[],u?e.reverse():e},l.tickFormat=function(t,n){return null==n?f:c(n)},l.nice=function(t,n){var e=d();return(t=h(t,e[0],e[e.length-1],n))?d(Em(e,t)):l},l.copy=function(){return ku(l,Ya(t,n,r,i,o,u,a,s,c))},l}function Xa(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}function Ha(t){function n(n){var o=(n-e)/(r-e);return t(i?Math.max(0,Math.min(1,o)):o)}var e=0,r=1,i=!1;return n.domain=function(t){return arguments.length?(e=+t[0],r=+t[1],n):[e,r]},n.clamp=function(t){return arguments.length?(i=!!t,n):i},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return Ha(t).domain([e,r]).clamp(i)},Eu(n)}function $a(t){return t.innerRadius}function Za(t){return t.outerRadius}function Ka(t){return t.startAngle}function Ja(t){return t.endAngle}function Qa(t){return t&&t.padAngle}function ts(t){return t>=1?hx:-1>=t?-hx:Math.asin(t)}function ns(t,n,e,r,i,o,u,a){var s=e-t,c=r-n,f=u-i,h=a-o,l=(f*(n-o)-h*(t-i))/(h*s-f*c);return[t+l*s,n+l*c]}function es(t,n,e,r,i,o,u){var a=t-e,s=n-r,c=(u?o:-o)/Math.sqrt(a*a+s*s),f=c*s,h=-c*a,l=t+f,p=n+h,d=e+f,g=r+h,v=(l+d)/2,y=(p+g)/2,_=d-l,m=g-p,b=_*_+m*m,x=i-o,w=l*g-d*p,k=(0>m?-1:1)*Math.sqrt(Math.max(0,x*x*b-w*w)),M=(w*m-_*k)/b,E=(-w*_-m*k)/b,A=(w*m+_*k)/b,S=(-w*_+m*k)/b,T=M-v,C=E-y,O=A-v,P=S-y;return T*T+C*C>O*O+P*P&&(M=A,E=S),{cx:M,cy:E,x01:-f,y01:-h,x11:M*(i/x-1),y11:E*(i/x-1)}}function rs(t){this._context=t}function is(t){return t[0]}function os(t){return t[1]}function us(t){this._curve=t}function as(t){function n(n){return new us(t(n))}return n._curve=t,n}function ss(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(as(t)):n()._curve},t}function cs(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function fs(t){this._context=t}function hs(t){this._context=t}function ls(t){this._context=t}function ps(t,n){this._basis=new fs(t),this._beta=n}function ds(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function gs(t,n){this._context=t,this._k=(1-n)/6}function vs(t,n){this._context=t,this._k=(1-n)/6}function ys(t,n){this._context=t,this._k=(1-n)/6}function _s(t,n,e){var r=t._x1,i=t._y1,o=t._x2,u=t._y2;if(t._l01_a>cx){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,s=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/s,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>cx){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-n*t._l12_2a)/f,u=(u*c+t._y1*t._l23_2a-e*t._l12_2a)/f}t._context.bezierCurveTo(r,i,o,u,t._x2,t._y2)}function ms(t,n){this._context=t,this._alpha=n}function bs(t,n){this._context=t,this._alpha=n}function xs(t,n){this._context=t,this._alpha=n}function ws(t){this._context=t}function ks(t){return 0>t?-1:1}function Ms(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||0>i&&-0),u=(e-t._y1)/(i||0>r&&-0),a=(o*i+u*r)/(r+i);return(ks(o)+ks(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function Es(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function As(t,n,e){var r=t._x0,i=t._y0,o=t._x1,u=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,i+a*n,o-a,u-a*e,o,u)}function Ss(t){this._context=t}function Ts(t){this._context=new Cs(t)}function Cs(t){this._context=t}function Os(t){return new Ss(t)}function Ps(t){return new Ts(t)}function Ls(t){this._context=t}function Ns(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),u=new Array(r);for(i[0]=0,o[0]=2,u[0]=t[0]+2*t[1],n=1;r-1>n;++n)i[n]=1,o[n]=4,u[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,u[r-1]=8*t[r-1]+t[r],n=1;r>n;++n)e=i[n]/o[n-1],o[n]-=e,u[n]-=e*u[n-1];for(i[r-1]=u[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(u[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;r-1>n;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}function Ds(t,n){this._context=t,this._t=n}function js(t){return new Ds(t,0)}function Is(t){return new Ds(t,1)}function zs(t,n){return t[n]}function Rs(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function qs(t){return t[0]}function Bs(t){return t[1]}function Fs(){this._=null}function Us(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Vs(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function Ws(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function Gs(t){for(;t.L;)t=t.L;return t}function Ys(t,n,e,r){var i=[null,null],o=mw.push(i)-1;return i.left=t,i.right=n,e&&Hs(i,t,n,e),r&&Hs(i,n,t,r),yw[t.index].halfedges.push(o),yw[n.index].halfedges.push(o),i}function Xs(t,n,e){var r=[n,e];return r.left=t,r}function Hs(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function $s(t,n,e,r,i){var o,u=t[0],a=t[1],s=u[0],c=u[1],f=a[0],h=a[1],l=0,p=1,d=f-s,g=h-c;if(o=n-s,d||!(o>0)){if(o/=d,0>d){if(l>o)return;p>o&&(p=o)}else if(d>0){if(o>p)return;o>l&&(l=o)}if(o=r-s,d||!(0>o)){if(o/=d,0>d){if(o>p)return;o>l&&(l=o)}else if(d>0){if(l>o)return;p>o&&(p=o)}if(o=e-c,g||!(o>0)){if(o/=g,0>g){if(l>o)return;p>o&&(p=o)}else if(g>0){if(o>p)return;o>l&&(l=o)}if(o=i-c,g||!(0>o)){if(o/=g,0>g){if(o>p)return;o>l&&(l=o)}else if(g>0){if(l>o)return;p>o&&(p=o)}return l>0||1>p?(l>0&&(t[0]=[s+l*d,c+l*g]),1>p&&(t[1]=[s+p*d,c+p*g]),!0):!0}}}}}function Zs(t,n,e,r,i){var o=t[1];if(o)return!0;var u,a,s=t[0],c=t.left,f=t.right,h=c[0],l=c[1],p=f[0],d=f[1],g=(h+p)/2,v=(l+d)/2;if(d===l){if(n>g||g>=r)return;if(h>p){if(s){if(s[1]>=i)return}else s=[g,e];o=[g,i]}else{if(s){if(s[1]<e)return}else s=[g,i];o=[g,e]}}else if(u=(h-p)/(d-l),a=v-u*g,-1>u||u>1)if(h>p){if(s){if(s[1]>=i)return}else s=[(e-a)/u,e];o=[(i-a)/u,i]}else{if(s){if(s[1]<e)return}else s=[(i-a)/u,i];o=[(e-a)/u,e]}else if(d>l){if(s){if(s[0]>=r)return}else s=[n,u*n+a];o=[r,u*r+a]}else{if(s){if(s[0]<n)return}else s=[r,u*r+a];o=[n,u*n+a]}return t[0]=s,t[1]=o,!0}function Ks(t,n,e,r){for(var i,o=mw.length;o--;)Zs(i=mw[o],t,n,e,r)&&$s(i,t,n,e,r)&&(Math.abs(i[0][0]-i[1][0])>ww||Math.abs(i[0][1]-i[1][1])>ww)||delete mw[o]}function Js(t){return yw[t.index]={site:t,halfedges:[]}}function Qs(t,n){var e=t.site,r=n.left,i=n.right;return e===i&&(i=r,r=e),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(e===r?(r=n[1],i=n[0]):(r=n[0],i=n[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function tc(t,n){return n[+(n.left!==t.site)]}function nc(t,n){return n[+(n.left===t.site)]}function ec(){for(var t,n,e,r,i=0,o=yw.length;o>i;++i)if((t=yw[i])&&(r=(n=t.halfedges).length)){var u=new Array(r),a=new Array(r);for(e=0;r>e;++e)u[e]=e,a[e]=Qs(t,mw[n[e]]);for(u.sort(function(t,n){return a[n]-a[t]}),e=0;r>e;++e)a[e]=n[u[e]];for(e=0;r>e;++e)n[e]=a[e]}}function rc(t,n,e,r){var i,o,u,a,s,c,f,h,l,p,d,g,v=yw.length,y=!0;for(i=0;v>i;++i)if(o=yw[i]){for(u=o.site,s=o.halfedges,a=s.length;a--;)mw[s[a]]||s.splice(a,1);for(a=0,c=s.length;c>a;)p=nc(o,mw[s[a]]),d=p[0],g=p[1],f=tc(o,mw[s[++a%c]]),h=f[0],l=f[1],(Math.abs(d-h)>ww||Math.abs(g-l)>ww)&&(s.splice(a,0,mw.push(Xs(u,p,Math.abs(d-t)<ww&&r-g>ww?[t,Math.abs(h-t)<ww?l:r]:Math.abs(g-r)<ww&&e-d>ww?[Math.abs(l-r)<ww?h:e,r]:Math.abs(d-e)<ww&&g-n>ww?[e,Math.abs(h-e)<ww?l:n]:Math.abs(g-n)<ww&&d-t>ww?[Math.abs(l-n)<ww?h:t,n]:null))-1),++c);c&&(y=!1)}if(y){var _,m,b,x=1/0;for(i=0,y=null;v>i;++i)(o=yw[i])&&(u=o.site,_=u[0]-t,m=u[1]-n,b=_*_+m*m,x>b&&(x=b,y=o));if(y){var w=[t,n],k=[t,r],M=[e,r],E=[e,n];y.halfedges.push(mw.push(Xs(u=y.site,w,k))-1,mw.push(Xs(u,k,M))-1,mw.push(Xs(u,M,E))-1,mw.push(Xs(u,E,w))-1)}}for(i=0;v>i;++i)(o=yw[i])&&(o.halfedges.length||delete yw[i])}function ic(){Us(this),this.x=this.y=this.arc=this.site=this.cy=null}function oc(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,o=e.site;if(r!==o){var u=i[0],a=i[1],s=r[0]-u,c=r[1]-a,f=o[0]-u,h=o[1]-a,l=2*(s*h-c*f);if(!(l>=-kw)){var p=s*s+c*c,d=f*f+h*h,g=(h*p-c*d)/l,v=(s*d-f*p)/l,y=bw.pop()||new ic;y.arc=t,y.site=i,y.x=g+u,y.y=(y.cy=v+a)+Math.sqrt(g*g+v*v),t.circle=y;for(var _=null,m=_w._;m;)if(y.y<m.y||y.y===m.y&&y.x<=m.x){if(!m.L){_=m.P;break}m=m.L}else{if(!m.R){_=m;break}m=m.R}_w.insert(_,y),_||(gw=y)}}}}function uc(t){var n=t.circle;n&&(n.P||(gw=n.N),_w.remove(n),bw.push(n),Us(n),t.circle=null)}function ac(){Us(this),this.edge=this.site=this.circle=null}function sc(t){var n=xw.pop()||new ac;return n.site=t,n}function cc(t){uc(t),vw.remove(t),xw.push(t),Us(t)}function fc(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],o=t.P,u=t.N,a=[t];cc(t);for(var s=o;s.circle&&Math.abs(e-s.circle.x)<ww&&Math.abs(r-s.circle.cy)<ww;)o=s.P,a.unshift(s),cc(s),s=o;a.unshift(s),uc(s);for(var c=u;c.circle&&Math.abs(e-c.circle.x)<ww&&Math.abs(r-c.circle.cy)<ww;)u=c.N,a.push(c),cc(c),c=u;a.push(c),uc(c);var f,h=a.length;for(f=1;h>f;++f)c=a[f],s=a[f-1],Hs(c.edge,s.site,c.site,i);s=a[0],c=a[h-1],c.edge=Ys(s.site,c.site,null,i),oc(s),oc(c)}function hc(t){for(var n,e,r,i,o=t[0],u=t[1],a=vw._;a;)if(r=lc(a,u)-o,r>ww)a=a.L;else{if(i=o-pc(a,u),!(i>ww)){r>-ww?(n=a.P,e=a):i>-ww?(n=a,e=a.N):n=e=a;break}if(!a.R){n=a;break}a=a.R}Js(t);var s=sc(t);if(vw.insert(n,s),n||e){if(n===e)return uc(n),e=sc(n.site),vw.insert(s,e),s.edge=e.edge=Ys(n.site,s.site),oc(n),void oc(e);if(!e)return void(s.edge=Ys(n.site,s.site));uc(n),uc(e);var c=n.site,f=c[0],h=c[1],l=t[0]-f,p=t[1]-h,d=e.site,g=d[0]-f,v=d[1]-h,y=2*(l*v-p*g),_=l*l+p*p,m=g*g+v*v,b=[(v*_-p*m)/y+f,(l*m-g*_)/y+h];Hs(e.edge,c,d,b),s.edge=Ys(c,t,null,b),e.edge=Ys(t,d,null,b),oc(n),oc(e)}}function lc(t,n){var e=t.site,r=e[0],i=e[1],o=i-n;if(!o)return r;var u=t.P;if(!u)return-(1/0);e=u.site;var a=e[0],s=e[1],c=s-n;if(!c)return a;var f=a-r,h=1/o-1/c,l=f/c;return h?(-l+Math.sqrt(l*l-2*h*(f*f/(-2*c)-s+c/2+i-o/2)))/h+r:(r+a)/2}function pc(t,n){var e=t.N;if(e)return lc(e,n);var r=t.site;return r[1]===n?r[0]:1/0}function dc(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function gc(t,n){return n[1]-t[1]||n[0]-t[0]}function vc(t,n){var e,r,i,o=t.sort(gc).pop();for(mw=[],yw=new Array(t.length),vw=new Fs,_w=new Fs;;)if(i=gw,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))(o[0]!==e||o[1]!==r)&&(hc(o),e=o[0],r=o[1]),o=t.pop();else{if(!i)break;fc(i.arc)}if(ec(),n){var u=+n[0][0],a=+n[0][1],s=+n[1][0],c=+n[1][1];Ks(u,a,s,c),rc(u,a,s,c)}this.edges=mw,this.cells=yw,vw=_w=mw=yw=null}function yc(t,n,e){this.target=t,this.type=n,this.transform=e}function _c(t,n,e){this.k=t,this.x=n,this.y=e}function mc(t){return t.__zoom||Aw}function bc(){t.event.stopImmediatePropagation()}function xc(){return!t.event.button}function wc(){var t,n,e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,t=e.width.baseVal.value,n=e.height.baseVal.value):(t=e.clientWidth,n=e.clientHeight),[[0,0],[t,n]]}function kc(){return this.__zoom||Aw}var Mc="4.5.0",Ec=function(t,n){return n>t?-1:t>n?1:t>=n?0:0/0},Ac=function(t){return 1===t.length&&(t=n(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);i>r;){var o=r+i>>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);i>r;){var o=r+i>>>1;t(n[o],e)>0?i=o:r=o+1}return r}}},Sc=Ac(Ec),Tc=Sc.right,Cc=Sc.left,Oc=function(t,n){return t>n?-1:n>t?1:n>=t?0:0/0},Pc=function(t){return null===t?0/0:+t},Lc=function(t,n){var e,r,i=t.length,o=0,u=0,a=-1,s=0;if(null==n)for(;++a<i;)isNaN(e=Pc(t[a]))||(r=e-o,o+=r/++s,u+=r*(e-o));else for(;++a<i;)isNaN(e=Pc(n(t[a],a,t)))||(r=e-o,o+=r/++s,u+=r*(e-o));return s>1?u/(s-1):void 0},Nc=function(t,n){var e=Lc(t,n);return e?Math.sqrt(e):e},Dc=function(t,n){var e,r,i,o=-1,u=t.length;if(null==n){for(;++o<u;)if(null!=(r=t[o])&&r>=r){e=i=r;break}for(;++o<u;)null!=(r=t[o])&&(e>r&&(e=r),r>i&&(i=r))}else{for(;++o<u;)if(null!=(r=n(t[o],o,t))&&r>=r){e=i=r;break}for(;++o<u;)null!=(r=n(t[o],o,t))&&(e>r&&(e=r),r>i&&(i=r))}return[e,i]},jc=Array.prototype,Ic=jc.slice,zc=jc.map,Rc=function(t){return function(){return t}},qc=function(t){return t},Bc=function(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):3>i?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o},Fc=Math.sqrt(50),Uc=Math.sqrt(10),Vc=Math.sqrt(2),Wc=function(t,n,r){var i=e(t,n,r);return Bc(Math.ceil(t/i)*i,Math.floor(n/i)*i+i/2,i)},Gc=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},Yc=function(){function t(t){var i,o,u=t.length,a=new Array(u);for(i=0;u>i;++i)a[i]=n(t[i],i,t);var s=e(a),c=s[0],f=s[1],h=r(a,c,f);Array.isArray(h)||(h=Wc(c,f,h));for(var l=h.length;h[0]<=c;)h.shift(),--l;for(;h[l-1]>=f;)h.pop(),--l;var p,d=new Array(l+1);for(i=0;l>=i;++i)p=d[i]=[],p.x0=i>0?h[i-1]:c,p.x1=l>i?h[i]:f;for(i=0;u>i;++i)o=a[i],o>=c&&f>=o&&d[Tc(h,o,0,l)].push(t[i]);return d}var n=qc,e=Dc,r=Gc;return t.value=function(e){return arguments.length?(n="function"==typeof e?e:Rc(e),t):n},t.domain=function(n){return arguments.length?(e="function"==typeof n?n:Rc([n[0],n[1]]),t):e},t.thresholds=function(n){return arguments.length?(r="function"==typeof n?n:Rc(Array.isArray(n)?Ic.call(n):n),t):r},t},Xc=function(t,n,e){if(null==e&&(e=Pc),r=t.length){if((n=+n)<=0||2>r)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),u=+e(t[o],o,t),a=+e(t[o+1],o+1,t);return u+(a-u)*(i-o)}},Hc=function(t,n,e){return t=zc.call(t,Pc).sort(Ec),Math.ceil((e-n)/(2*(Xc(t,.75)-Xc(t,.25))*Math.pow(t.length,-1/3)))},$c=function(t,n,e){return Math.ceil((e-n)/(3.5*Nc(t)*Math.pow(t.length,-1/3)))},Zc=function(t,n){var e,r,i=-1,o=t.length;if(null==n){for(;++i<o;)if(null!=(r=t[i])&&r>=r){e=r;break}for(;++i<o;)null!=(r=t[i])&&r>e&&(e=r)}else{for(;++i<o;)if(null!=(r=n(t[i],i,t))&&r>=r){e=r;break}for(;++i<o;)null!=(r=n(t[i],i,t))&&r>e&&(e=r)}return e},Kc=function(t,n){var e,r=0,i=t.length,o=-1,u=i;if(null==n)for(;++o<i;)isNaN(e=Pc(t[o]))?--u:r+=e;else for(;++o<i;)isNaN(e=Pc(n(t[o],o,t)))?--u:r+=e;return u?r/u:void 0},Jc=function(t,n){var e,r=[],i=t.length,o=-1;if(null==n)for(;++o<i;)isNaN(e=Pc(t[o]))||r.push(e);else for(;++o<i;)isNaN(e=Pc(n(t[o],o,t)))||r.push(e);return Xc(r.sort(Ec),.5)},Qc=function(t){for(var n,e,r,i=t.length,o=-1,u=0;++o<i;)u+=t[o].length;for(e=new Array(u);--i>=0;)for(r=t[i],n=r.length;--n>=0;)e[--u]=r[n];return e},tf=function(t,n){var e,r,i=-1,o=t.length;if(null==n){for(;++i<o;)if(null!=(r=t[i])&&r>=r){e=r;break}for(;++i<o;)null!=(r=t[i])&&e>r&&(e=r)}else{for(;++i<o;)if(null!=(r=n(t[i],i,t))&&r>=r){e=r;break}for(;++i<o;)null!=(r=n(t[i],i,t))&&e>r&&(e=r)}return e},nf=function(t){for(var n=0,e=t.length-1,r=t[0],i=new Array(0>e?0:e);e>n;)i[n]=[r,r=t[++n]];return i},ef=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},rf=function(t,n){if(e=t.length){var e,r,i=0,o=0,u=t[o];for(n||(n=Ec);++i<e;)(n(r=t[i],u)<0||0!==n(u,u))&&(u=r,o=i);return 0===n(u,u)?o:void 0}},of=function(t,n,e){for(var r,i,o=(null==e?t.length:e)-(n=null==n?0:+n);o;)i=Math.random()*o--|0,r=t[o+n],t[o+n]=t[i+n],t[i+n]=r;return t},uf=function(t,n){var e,r=0,i=t.length,o=-1;if(null==n)for(;++o<i;)(e=+t[o])&&(r+=e);else for(;++o<i;)(e=+n(t[o],o,t))&&(r+=e);return r},af=function(t){if(!(o=t.length))return[];for(var n=-1,e=tf(t,r),i=new Array(e);++n<e;)for(var o,u=-1,a=i[n]=new Array(o);++u<o;)a[u]=t[u][n];return i},sf=function(){return af(arguments)},cf=Array.prototype.slice,ff=function(t){return t},hf=1,lf=2,pf=3,df=4,gf=1e-6,vf={value:function(){}};d.prototype=p.prototype={constructor:d,on:function(t,n){var e,r=this._,i=g(t+"",r),o=-1,u=i.length;{if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<u;)if(e=(t=i[o]).type)r[e]=y(r[e],t.name,n);else if(null==n)for(e in r)r[e]=y(r[e],t.name,null);return this}for(;++o<u;)if((e=(t=i[o]).type)&&(e=v(r[e],t.name)))return e}},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new d(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;e>o;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],o=0,e=r.length;e>o;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;o>i;++i)r[i].value.apply(n,e)}};var yf="http://www.w3.org/1999/xhtml",_f={svg:"http://www.w3.org/2000/svg",xhtml:yf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},mf=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),_f.hasOwnProperty(n)?{space:_f[n],local:t}:t},bf=function(t){var n=mf(t);return(n.local?m:_)(n)},xf=0;x.prototype=b.prototype={constructor:x,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var wf=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var kf=document.documentElement;if(!kf.matches){var Mf=kf.webkitMatchesSelector||kf.msMatchesSelector||kf.mozMatchesSelector||kf.oMatchesSelector;wf=function(t){return function(){return Mf.call(this,t)}}}}var Ef=wf,Af={};if(t.event=null,"undefined"!=typeof document){var Sf=document.documentElement;"onmouseenter"in Sf||(Af={mouseenter:"mouseover",mouseleave:"mouseout"})}var Tf=function(t,n,e){var r,i,o=M(t+""),u=o.length;{if(!(arguments.length<2)){for(a=n?A:E,null==e&&(e=!1),r=0;u>r;++r)this.each(a(o[r],n,e));return this}var a=this.node().__on;if(a)for(var s,c=0,f=a.length;f>c;++c)for(r=0,s=a[c];u>r;++r)if((i=o[r]).type===s.type&&i.name===s.name)return s.value}},Cf=function(){for(var n,e=t.event;n=e.sourceEvent;)e=n;return e},Of=function(t,n){
var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=n.clientX,r.y=n.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var i=t.getBoundingClientRect();return[n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop]},Pf=function(t){var n=Cf();return n.changedTouches&&(n=n.changedTouches[0]),Of(t,n)},Lf=function(t){return null==t?T:function(){return this.querySelector(t)}},Nf=function(t){"function"!=typeof t&&(t=Lf(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;e>i;++i)for(var o,u,a=n[i],s=a.length,c=r[i]=new Array(s),f=0;s>f;++f)(o=a[f])&&(u=t.call(o,o.__data__,f,a))&&("__data__"in o&&(u.__data__=o.__data__),c[f]=u);return new pt(r,this._parents)},Df=function(t){return null==t?C:function(){return this.querySelectorAll(t)}},jf=function(t){"function"!=typeof t&&(t=Df(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;e>o;++o)for(var u,a=n[o],s=a.length,c=0;s>c;++c)(u=a[c])&&(r.push(t.call(u,u.__data__,c,a)),i.push(u));return new pt(r,i)},If=function(t){"function"!=typeof t&&(t=Ef(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;e>i;++i)for(var o,u=n[i],a=u.length,s=r[i]=[],c=0;a>c;++c)(o=u[c])&&t.call(o,o.__data__,c,u)&&s.push(o);return new pt(r,this._parents)},zf=function(t){return new Array(t.length)},Rf=function(){return new pt(this._enter||this._groups.map(zf),this._parents)};O.prototype={constructor:O,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var qf=function(t){return function(){return t}},Bf="$",Ff=function(t,n){if(!t)return p=new Array(this.size()),c=-1,this.each(function(t){p[++c]=t}),p;var e=n?L:P,r=this._parents,i=this._groups;"function"!=typeof t&&(t=qf(t));for(var o=i.length,u=new Array(o),a=new Array(o),s=new Array(o),c=0;o>c;++c){var f=r[c],h=i[c],l=h.length,p=t.call(f,f&&f.__data__,c,r),d=p.length,g=a[c]=new Array(d),v=u[c]=new Array(d),y=s[c]=new Array(l);e(f,h,g,v,y,p,n);for(var _,m,b=0,x=0;d>b;++b)if(_=g[b]){for(b>=x&&(x=b+1);!(m=v[x])&&++x<d;);_._next=m||null}}return u=new pt(u,r),u._enter=a,u._exit=s,u},Uf=function(){return new pt(this._exit||this._groups.map(zf),this._parents)},Vf=function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;o>a;++a)for(var s,c=n[a],f=e[a],h=c.length,l=u[a]=new Array(h),p=0;h>p;++p)(s=c[p]||f[p])&&(l[p]=s);for(;r>a;++a)u[a]=n[a];return new pt(u,this._parents)},Wf=function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&u!==r.nextSibling&&u.parentNode.insertBefore(r,u),u=r);return this},Gf=function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=N);for(var e=this._groups,r=e.length,i=new Array(r),o=0;r>o;++o){for(var u,a=e[o],s=a.length,c=i[o]=new Array(s),f=0;s>f;++f)(u=a[f])&&(c[f]=u);c.sort(n)}return new pt(i,this._parents).order()},Yf=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},Xf=function(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},Hf=function(){for(var t=this._groups,n=0,e=t.length;e>n;++n)for(var r=t[n],i=0,o=r.length;o>i;++i){var u=r[i];if(u)return u}return null},$f=function(){var t=0;return this.each(function(){++t}),t},Zf=function(){return!this.node()},Kf=function(t){for(var n=this._groups,e=0,r=n.length;r>e;++e)for(var i,o=n[e],u=0,a=o.length;a>u;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},Jf=function(t,n){var e=mf(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?j:D:"function"==typeof n?e.local?q:R:e.local?z:I)(e,n))},Qf=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView},th=function(t,n,e){var r;return arguments.length>1?this.each((null==n?B:"function"==typeof n?U:F)(t,n,null==e?"":e)):Qf(r=this.node()).getComputedStyle(r,null).getPropertyValue(t)},nh=function(t,n){return arguments.length>1?this.each((null==n?V:"function"==typeof n?G:W)(t,n)):this.node()[t]};H.prototype={add:function(t){var n=this._names.indexOf(t);0>n&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var eh=function(t,n){var e=Y(t+"");if(arguments.length<2){for(var r=X(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?Q:n?K:J)(e,n))},rh=function(t){return arguments.length?this.each(null==t?tt:("function"==typeof t?et:nt)(t)):this.node().textContent},ih=function(t){return arguments.length?this.each(null==t?rt:("function"==typeof t?ot:it)(t)):this.node().innerHTML},oh=function(){return this.each(ut)},uh=function(){return this.each(at)},ah=function(t){var n="function"==typeof t?t:bf(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},sh=function(t,n){var e="function"==typeof t?t:bf(t),r=null==n?st:"function"==typeof n?n:Lf(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})},ch=function(){return this.each(ct)},fh=function(t){return arguments.length?this.property("__data__",t):this.node().__data__},hh=function(t,n){return this.each(("function"==typeof n?lt:ht)(t,n))},lh=[null];pt.prototype=dt.prototype={constructor:pt,select:Nf,selectAll:jf,filter:If,data:Ff,enter:Rf,exit:Uf,merge:Vf,order:Wf,sort:Gf,call:Yf,nodes:Xf,node:Hf,size:$f,empty:Zf,each:Kf,attr:Jf,style:th,property:nh,classed:eh,text:rh,html:ih,raise:oh,lower:uh,append:ah,insert:sh,remove:ch,datum:fh,on:Tf,dispatch:hh};var ph=function(t){return"string"==typeof t?new pt([[document.querySelector(t)]],[document.documentElement]):new pt([[t]],lh)},dh=function(t){return"string"==typeof t?new pt([document.querySelectorAll(t)],[document.documentElement]):new pt([null==t?[]:t],lh)},gh=function(t,n,e){arguments.length<3&&(e=n,n=Cf().changedTouches);for(var r,i=0,o=n?n.length:0;o>i;++i)if((r=n[i]).identifier===e)return Of(t,r);return null},vh=function(t,n){null==n&&(n=Cf().touches);for(var e=0,r=n?n.length:0,i=new Array(r);r>e;++e)i[e]=Of(t,n[e]);return i},yh=function(){t.event.preventDefault(),t.event.stopImmediatePropagation()},_h=function(t){var n=t.document.documentElement,e=ph(t).on("dragstart.drag",yh,!0);"onselectstart"in n?e.on("selectstart.drag",yh,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")},mh=function(t){return function(){return t}};yt.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var bh=function(){function n(t){t.on("mousedown.drag",e).on("touchstart.drag",o).on("touchmove.drag",u).on("touchend.drag touchcancel.drag",a).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function e(){if(!f&&h.apply(this,arguments)){var n=s("mouse",l.apply(this,arguments),Pf,this,arguments);n&&(ph(t.event.view).on("mousemove.drag",r,!0).on("mouseup.drag",i,!0),_h(t.event.view),gt(),c=!1,n("start"))}}function r(){yh(),c=!0,g.mouse("drag")}function i(){ph(t.event.view).on("mousemove.drag mouseup.drag",null),vt(t.event.view,c),yh(),g.mouse("end")}function o(){if(h.apply(this,arguments)){var n,e,r=t.event.changedTouches,i=l.apply(this,arguments),o=r.length;for(n=0;o>n;++n)(e=s(r[n].identifier,i,gh,this,arguments))&&(gt(),e("start"))}}function u(){var n,e,r=t.event.changedTouches,i=r.length;for(n=0;i>n;++n)(e=g[r[n].identifier])&&(yh(),e("drag"))}function a(){var n,e,r=t.event.changedTouches,i=r.length;for(f&&clearTimeout(f),f=setTimeout(function(){f=null},500),n=0;i>n;++n)(e=g[r[n].identifier])&&(gt(),e("end"))}function s(e,r,i,o,u){var a,s,c,f=i(r,e),h=v.copy();if(S(new yt(n,"beforestart",a,e,y,f[0],f[1],0,0,h),function(){return null==(t.event.subject=a=d.apply(o,u))?!1:(s=a.x-f[0]||0,c=a.y-f[1]||0,!0)}))return function l(t){var p,d=f;switch(t){case"start":g[e]=l,p=y++;break;case"end":delete g[e],--y;case"drag":f=i(r,e),p=y}S(new yt(n,t,a,e,p,f[0]+s,f[1]+c,f[0]-d[0],f[1]-d[1],h),h.apply,h,[t,o,u])}}var c,f,h=_t,l=mt,d=bt,g={},v=p("start","drag","end"),y=0;return n.filter=function(t){return arguments.length?(h="function"==typeof t?t:mh(!!t),n):h},n.container=function(t){return arguments.length?(l="function"==typeof t?t:mh(t),n):l},n.subject=function(t){return arguments.length?(d="function"==typeof t?t:mh(t),n):d},n.on=function(){var t=v.on.apply(v,arguments);return t===v?n:t},n},xh=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t},wh=.7,kh=1/wh,Mh="\\s*([+-]?\\d+)\\s*",Eh="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ah="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Sh=/^#([0-9a-f]{3})$/,Th=/^#([0-9a-f]{6})$/,Ch=new RegExp("^rgb\\("+[Mh,Mh,Mh]+"\\)$"),Oh=new RegExp("^rgb\\("+[Ah,Ah,Ah]+"\\)$"),Ph=new RegExp("^rgba\\("+[Mh,Mh,Mh,Eh]+"\\)$"),Lh=new RegExp("^rgba\\("+[Ah,Ah,Ah,Eh]+"\\)$"),Nh=new RegExp("^hsl\\("+[Eh,Ah,Ah]+"\\)$"),Dh=new RegExp("^hsla\\("+[Eh,Ah,Ah,Eh]+"\\)$"),jh={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};xh(wt,kt,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),xh(Tt,St,xt(wt,{brighter:function(t){return t=null==t?kh:Math.pow(kh,t),new Tt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?wh:Math.pow(wh,t),new Tt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),xh(Lt,Pt,xt(wt,{brighter:function(t){return t=null==t?kh:Math.pow(kh,t),new Lt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?wh:Math.pow(wh,t),new Lt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(.5>e?e:1-e)*n,i=2*e-r;return new Tt(Nt(t>=240?t-240:t+120,i,r),Nt(t,i,r),Nt(120>t?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Ih=Math.PI/180,zh=180/Math.PI,Rh=18,qh=.95047,Bh=1,Fh=1.08883,Uh=4/29,Vh=6/29,Wh=3*Vh*Vh,Gh=Vh*Vh*Vh;xh(It,jt,xt(wt,{brighter:function(t){return new It(this.l+Rh*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new It(this.l-Rh*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return t=Bh*Rt(t),n=qh*Rt(n),e=Fh*Rt(e),new Tt(qt(3.2404542*n-1.5371385*t-.4985314*e),qt(-.969266*n+1.8760108*t+.041556*e),qt(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),xh(Vt,Ut,xt(wt,{brighter:function(t){return new Vt(this.h,this.c,this.l+Rh*(null==t?1:t),this.opacity)},darker:function(t){return new Vt(this.h,this.c,this.l-Rh*(null==t?1:t),this.opacity)},rgb:function(){return Dt(this).rgb()}}));var Yh=-.14861,Xh=1.78277,Hh=-.29227,$h=-.90649,Zh=1.97294,Kh=Zh*$h,Jh=Zh*Xh,Qh=Xh*Hh-$h*Yh;xh(Yt,Gt,xt(wt,{brighter:function(t){return t=null==t?kh:Math.pow(kh,t),new Yt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?wh:Math.pow(wh,t),new Yt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Ih,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new Tt(255*(n+e*(Yh*r+Xh*i)),255*(n+e*(Hh*r+$h*i)),255*(n+e*Zh*r),this.opacity)}}));var tl,nl,el,rl,il,ol,ul=function(t){var n=t.length-1;return function(e){var r=0>=e?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],u=r>0?t[r-1]:2*i-o,a=n-1>r?t[r+2]:2*o-i;return Xt((e-r/n)*n,u,i,o,a)}},al=function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],o=t[r%n],u=t[(r+1)%n],a=t[(r+2)%n];return Xt((e-r/n)*n,i,o,u,a)}},sl=function(t){return function(){return t}},cl=function Cw(t){function n(t,n){var r=e((t=St(t)).r,(n=St(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),u=Jt(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}var e=Kt(t);return n.gamma=Cw,n}(1),fl=Qt(ul),hl=Qt(al),ll=function(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(r),u=new Array(r);for(e=0;i>e;++e)o[e]=ml(t[e],n[e]);for(;r>e;++e)u[e]=n[e];return function(t){for(e=0;i>e;++e)u[e]=o[e](t);return u}},pl=function(t,n){var e=new Date;return t=+t,n-=t,function(r){return e.setTime(t+n*r),e}},dl=function(t,n){return t=+t,n-=t,function(e){return t+n*e}},gl=function(t,n){var e,r={},i={};(null===t||"object"!=typeof t)&&(t={}),(null===n||"object"!=typeof n)&&(n={});for(e in n)e in t?r[e]=ml(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}},vl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yl=new RegExp(vl.source,"g"),_l=function(t,n){var e,r,i,o=vl.lastIndex=yl.lastIndex=0,u=-1,a=[],s=[];for(t+="",n+="";(e=vl.exec(t))&&(r=yl.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,s.push({i:u,x:dl(e,r)})),o=yl.lastIndex;return o<n.length&&(i=n.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?s[0]?nn(s[0].x):tn(n):(n=s.length,function(t){for(var e,r=0;n>r;++r)a[(e=s[r]).i]=e.x(t);return a.join("")})},ml=function(t,n){var e,r=typeof n;return null==n||"boolean"===r?sl(n):("number"===r?dl:"string"===r?(e=kt(n))?(n=e,cl):_l:n instanceof kt?cl:n instanceof Date?pl:Array.isArray(n)?ll:isNaN(n)?gl:dl)(t,n)},bl=function(t,n){return t=+t,n-=t,function(e){return Math.round(t+n*e)}},xl=180/Math.PI,wl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},kl=function(t,n,e,r,i,o){var u,a,s;return(u=Math.sqrt(t*t+n*n))&&(t/=u,n/=u),(s=t*e+n*r)&&(e-=t*s,r-=n*s),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,s/=a),n*e>t*r&&(t=-t,n=-n,s=-s,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*xl,skewX:Math.atan(s)*xl,scaleX:u,scaleY:a}},Ml=on(en,"px, ","px)","deg)"),El=on(rn,", ",")",")"),Al=Math.SQRT2,Sl=2,Tl=4,Cl=1e-12,Ol=function(t,n){var e,r,i=t[0],o=t[1],u=t[2],a=n[0],s=n[1],c=n[2],f=a-i,h=s-o,l=f*f+h*h;if(Cl>l)r=Math.log(c/u)/Al,e=function(t){return[i+t*f,o+t*h,u*Math.exp(Al*t*r)]};else{var p=Math.sqrt(l),d=(c*c-u*u+Tl*l)/(2*u*Sl*p),g=(c*c-u*u-Tl*l)/(2*c*Sl*p),v=Math.log(Math.sqrt(d*d+1)-d),y=Math.log(Math.sqrt(g*g+1)-g);r=(y-v)/Al,e=function(t){var n=t*r,e=un(v),a=u/(Sl*p)*(e*sn(Al*n+v)-an(v));return[i+a*f,o+a*h,u*e/un(Al*n+v)]}}return e.duration=1e3*r,e},Pl=cn(Zt),Ll=cn(Jt),Nl=hn(Zt),Dl=hn(Jt),jl=ln(Zt),Il=ln(Jt),zl=function(t,n){for(var e=new Array(n),r=0;n>r;++r)e[r]=t(r/(n-1));return e},Rl=0,ql=0,Bl=0,Fl=1e3,Ul=0,Vl=0,Wl=0,Gl="object"==typeof performance&&performance.now?performance:Date,Yl="function"==typeof requestAnimationFrame?requestAnimationFrame:function(t){setTimeout(t,17)};gn.prototype=vn.prototype={constructor:gn,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?pn():+e)+(null==n?0:+n),this._next||ol===this||(ol?ol._next=this:il=this,ol=this),this._call=t,this._time=e,xn()},stop:function(){this._call&&(this._call=null,this._time=1/0,xn())}};var Xl=function(t,n,e){var r=new gn;return n=null==n?0:+n,r.restart(function(e){r.stop(),t(e+n)},n,e),r},Hl=function(t,n,e){var r=new gn,i=n;return null==n?(r.restart(t,n,e),r):(n=+n,e=null==e?pn():+e,r.restart(function o(u){u+=i,r.restart(o,i+=n,e),t(u)},n,e),r)},$l=p("start","end","interrupt"),Zl=[],Kl=0,Jl=1,Ql=2,tp=3,np=4,ep=5,rp=6,ip=function(t,n,e,r,i,o){var u=t.__transition;if(u){if(e in u)return}else t.__transition={};En(t,e,{name:n,index:r,group:i,on:$l,tween:Zl,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Kl})},op=function(t,n){var e,r,i,o=t.__transition,u=!0;if(o){n=null==n?null:n+"";for(i in o)(e=o[i]).name===n?(r=e.state>Ql&&e.state<ep,e.state=rp,e.timer.stop(),r&&e.on.call("interrupt",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}},up=function(t){return this.each(function(){op(this,t)})},ap=function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=Mn(this.node(),e).tween,o=0,u=i.length;u>o;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?An:Sn)(e,t,n))},sp=function(t,n){var e;return("number"==typeof n?dl:n instanceof kt?cl:(e=kt(n))?(n=e,cl):_l)(t,n)},cp=function(t,n){var e=mf(t),r="transform"===e?El:sp;return this.attrTween(t,"function"==typeof n?(e.local?Dn:Nn)(e,r,Tn(this,"attr."+t,n)):null==n?(e.local?On:Cn)(e):(e.local?Ln:Pn)(e,r,n))},fp=function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=mf(t);return this.tween(e,(r.local?jn:In)(r,n))},hp=function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?zn:Rn)(n,t)):Mn(this.node(),n).delay},lp=function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?qn:Bn)(n,t)):Mn(this.node(),n).duration},pp=function(t){var n=this._id;return arguments.length?this.each(Fn(n,t)):Mn(this.node(),n).ease},dp=function(t){"function"!=typeof t&&(t=Ef(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;e>i;++i)for(var o,u=n[i],a=u.length,s=r[i]=[],c=0;a>c;++c)(o=u[c])&&t.call(o,o.__data__,c,u)&&s.push(o);return new Jn(r,this._parents,this._name,this._id)},gp=function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;o>a;++a)for(var s,c=n[a],f=e[a],h=c.length,l=u[a]=new Array(h),p=0;h>p;++p)(s=c[p]||f[p])&&(l[p]=s);for(;r>a;++a)u[a]=n[a];return new Jn(u,this._parents,this._name,this._id)},vp=function(t,n){var e=this._id;return arguments.length<2?Mn(this.node(),e).on.on(t):this.each(Vn(e,t,n))},yp=function(){return this.on("end.remove",Wn(this._id))},_p=function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Lf(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;i>u;++u)for(var a,s,c=r[u],f=c.length,h=o[u]=new Array(f),l=0;f>l;++l)(a=c[l])&&(s=t.call(a,a.__data__,l,c))&&("__data__"in a&&(s.__data__=a.__data__),h[l]=s,ip(h[l],n,e,l,h,Mn(a,e)));return new Jn(o,this._parents,n,e)},mp=function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Df(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;i>a;++a)for(var s,c=r[a],f=c.length,h=0;f>h;++h)if(s=c[h]){for(var l,p=t.call(s,s.__data__,h,c),d=Mn(s,e),g=0,v=p.length;v>g;++g)(l=p[g])&&ip(l,n,e,g,p,d);o.push(p),u.push(s)}return new Jn(o,u,n,e)},bp=dt.prototype.constructor,xp=function(){return new bp(this._groups,this._parents)},wp=function(t,n,e){var r="transform"==(t+="")?Ml:sp;return null==n?this.styleTween(t,Gn(t,r)).on("end.style."+t,Yn(t)):this.styleTween(t,"function"==typeof n?Hn(t,r,Tn(this,"style."+t,n)):Xn(t,r,n),e)},kp=function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,$n(t,n,null==e?"":e))},Mp=function(t){return this.tween("text","function"==typeof t?Kn(Tn(this,"text",t)):Zn(null==t?"":t+""))},Ep=function(){for(var t=this._name,n=this._id,e=te(),r=this._groups,i=r.length,o=0;i>o;++o)for(var u,a=r[o],s=a.length,c=0;s>c;++c)if(u=a[c]){var f=Mn(u,n);ip(u,t,e,c,a,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new Jn(r,this._parents,t,e)},Ap=0,Sp=dt.prototype;Jn.prototype=Qn.prototype={constructor:Jn,select:_p,selectAll:mp,filter:dp,merge:gp,selection:xp,transition:Ep,call:Sp.call,nodes:Sp.nodes,node:Sp.node,size:Sp.size,empty:Sp.empty,each:Sp.each,on:vp,attr:cp,attrTween:fp,style:wp,styleTween:kp,text:Mp,remove:yp,tween:ap,delay:hp,duration:lp,ease:pp};var Tp=3,Cp=function Ow(t){function n(n){return Math.pow(n,t)}return t=+t,n.exponent=Ow,n}(Tp),Op=function Pw(t){function n(n){return 1-Math.pow(1-n,t)}return t=+t,n.exponent=Pw,n}(Tp),Pp=function Lw(t){function n(n){return((n*=2)<=1?Math.pow(n,t):2-Math.pow(2-n,t))/2}return t=+t,n.exponent=Lw,n}(Tp),Lp=Math.PI,Np=Lp/2,Dp=4/11,jp=6/11,Ip=8/11,zp=.75,Rp=9/11,qp=10/11,Bp=.9375,Fp=21/22,Up=63/64,Vp=1/Dp/Dp,Wp=1.70158,Gp=function Nw(t){function n(n){return n*n*((t+1)*n-t)}return t=+t,n.overshoot=Nw,n}(Wp),Yp=function Dw(t){function n(n){return--n*n*((t+1)*n+t)+1}return t=+t,n.overshoot=Dw,n}(Wp),Xp=function jw(t){function n(n){return((n*=2)<1?n*n*((t+1)*n-t):(n-=2)*n*((t+1)*n+t)+2)/2}return t=+t,n.overshoot=jw,n}(Wp),Hp=2*Math.PI,$p=1,Zp=.3,Kp=function Iw(t,n){function e(e){return t*Math.pow(2,10*--e)*Math.sin((r-e)/n)}var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Hp);return e.amplitude=function(t){return Iw(t,n*Hp)},e.period=function(n){return Iw(t,n)},e}($p,Zp),Jp=function zw(t,n){function e(e){return 1-t*Math.pow(2,-10*(e=+e))*Math.sin((e+r)/n)}var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Hp);return e.amplitude=function(t){return zw(t,n*Hp)},e.period=function(n){return zw(t,n)},e}($p,Zp),Qp=function Rw(t,n){function e(e){return((e=2*e-1)<0?t*Math.pow(2,10*e)*Math.sin((r-e)/n):2-t*Math.pow(2,-10*e)*Math.sin((r+e)/n))/2}var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Hp);return e.amplitude=function(t){return Rw(t,n*Hp)},e.period=function(n){return Rw(t,n)},e}($p,Zp),td={time:null,delay:0,duration:250,ease:ae},nd=function(t){var n,e;t instanceof Jn?(n=t._id,t=t._name):(n=te(),(e=td).time=pn(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;i>o;++o)for(var u,a=r[o],s=a.length,c=0;s>c;++c)(u=a[c])&&ip(u,t,n,c,a,e||be(u,n));return new Jn(r,this._parents,t,n)};dt.prototype.interrupt=up,dt.prototype.transition=nd;var ed=[null],rd=function(t,n){var e,r,i=t.__transition;if(i){n=null==n?null:n+"";for(r in i)if((e=i[r]).state>Jl&&e.name===n)return new Jn([[t]],ed,n,+r)}return null},id=function(t){return function(){return t}},od=function(t,n,e){this.target=t,this.type=n,this.selection=e},ud=function(){t.event.preventDefault(),t.event.stopImmediatePropagation()},ad={name:"drag"},sd={name:"space"},cd={name:"handle"},fd={name:"center"},hd={name:"x",handles:["e","w"].map(we),input:function(t,n){return t&&[[t[0],n[0][1]],[t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},ld={name:"y",handles:["n","s"].map(we),input:function(t,n){return t&&[[n[0][0],t[0]],[n[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},pd={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(we),input:function(t){return t},output:function(t){return t}},dd={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},gd={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},vd={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},yd={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},_d={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1},md=function(){return Oe(pd)},bd=Math.cos,xd=Math.sin,wd=Math.PI,kd=wd/2,Md=2*wd,Ed=Math.max,Ad=function(){function t(t){var o,u,a,s,c,f,h=t.length,l=[],p=Bc(h),d=[],g=[],v=g.groups=new Array(h),y=new Array(h*h);for(o=0,c=-1;++c<h;){for(u=0,f=-1;++f<h;)u+=t[c][f];l.push(u),d.push(Bc(h)),o+=u}for(e&&p.sort(function(t,n){return e(l[t],l[n])}),r&&d.forEach(function(n,e){n.sort(function(n,i){return r(t[e][n],t[e][i])})}),o=Ed(0,Md-n*h)/o,s=o?n:Md/h,u=0,c=-1;++c<h;){for(a=u,f=-1;++f<h;){var _=p[c],m=d[_][f],b=t[_][m],x=u,w=u+=b*o;y[m*h+_]={index:_,subindex:m,startAngle:x,endAngle:w,value:b}}v[_]={index:_,startAngle:a,endAngle:u,value:l[_]},u+=s}for(c=-1;++c<h;)for(f=c-1;++f<h;){var k=y[f*h+c],M=y[c*h+f];(k.value||M.value)&&g.push(k.value<M.value?{source:M,target:k}:{source:k,target:M})}return i?g.sort(i):g}var n=0,e=null,r=null,i=null;return t.padAngle=function(e){return arguments.length?(n=Ed(0,e),t):n},t.sortGroups=function(n){return arguments.length?(e=n,t):e},t.sortSubgroups=function(n){return arguments.length?(r=n,t):r},t.sortChords=function(n){return arguments.length?(null==n?i=null:(i=Pe(n))._=n,t):i&&i._},t},Sd=Array.prototype.slice,Td=function(t){return function(){return t}},Cd=Math.PI,Od=2*Cd,Pd=1e-6,Ld=Od-Pd;Le.prototype=Ne.prototype={constructor:Le,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,u=this._y1,a=e-t,s=r-n,c=o-t,f=u-n,h=c*c+f*f;if(0>i)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(h>Pd)if(Math.abs(f*a-s*c)>Pd&&i){var l=e-o,p=r-u,d=a*a+s*s,g=l*l+p*p,v=Math.sqrt(d),y=Math.sqrt(h),_=i*Math.tan((Cd-Math.acos((d+h-g)/(2*v*y)))/2),m=_/y,b=_/v;Math.abs(m-1)>Pd&&(this._+="L"+(t+m*c)+","+(n+m*f)),this._+="A"+i+","+i+",0,0,"+ +(f*l>c*p)+","+(this._x1=t+b*a)+","+(this._y1=n+b*s)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,o){t=+t,n=+n,e=+e;var u=e*Math.cos(r),a=e*Math.sin(r),s=t+u,c=n+a,f=1^o,h=o?r-i:i-r;if(0>e)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+s+","+c:(Math.abs(this._x1-s)>Pd||Math.abs(this._y1-c)>Pd)&&(this._+="L"+s+","+c),e&&(h>Ld?this._+="A"+e+","+e+",0,1,"+f+","+(t-u)+","+(n-a)+"A"+e+","+e+",0,1,"+f+","+(this._x1=s)+","+(this._y1=c):(0>h&&(h=h%Od+Od),this._+="A"+e+","+e+",0,"+ +(h>=Cd)+","+f+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};var Nd=function(){function t(){var t,a=Sd.call(arguments),s=n.apply(this,a),c=e.apply(this,a),f=+r.apply(this,(a[0]=s,a)),h=i.apply(this,a)-kd,l=o.apply(this,a)-kd,p=f*bd(h),d=f*xd(h),g=+r.apply(this,(a[0]=c,a)),v=i.apply(this,a)-kd,y=o.apply(this,a)-kd;return u||(u=t=Ne()),u.moveTo(p,d),u.arc(0,0,f,h,l),(h!==v||l!==y)&&(u.quadraticCurveTo(0,0,g*bd(v),g*xd(v)),u.arc(0,0,g,v,y)),u.quadraticCurveTo(0,0,p,d),u.closePath(),t?(u=null,t+""||null):void 0}var n=De,e=je,r=Ie,i=ze,o=Re,u=null;return t.radius=function(n){return arguments.length?(r="function"==typeof n?n:Td(+n),t):r},t.startAngle=function(n){return arguments.length?(i="function"==typeof n?n:Td(+n),t):i},t.endAngle=function(n){return arguments.length?(o="function"==typeof n?n:Td(+n),t):o},t.source=function(e){return arguments.length?(n=e,t):n},t.target=function(n){return arguments.length?(e=n,t):e},t.context=function(n){return arguments.length?(u=null==n?null:n,t):u},t},Dd="$";qe.prototype=Be.prototype={constructor:qe,has:function(t){return Dd+t in this},get:function(t){return this[Dd+t]},set:function(t,n){return this[Dd+t]=n,this},remove:function(t){var n=Dd+t;return n in this&&delete this[n]},clear:function(){for(var t in this)t[0]===Dd&&delete this[t]},keys:function(){var t=[];for(var n in this)n[0]===Dd&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)n[0]===Dd&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)n[0]===Dd&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)n[0]===Dd&&++t;return t},empty:function(){for(var t in this)if(t[0]===Dd)return!1;return!0},each:function(t){for(var n in this)n[0]===Dd&&t(this[n],n.slice(1),this)}};var jd=function(){function t(n,i,u,a){if(i>=o.length)return null!=r?r(n):null!=e?n.sort(e):n;for(var s,c,f,h=-1,l=n.length,p=o[i++],d=Be(),g=u();++h<l;)(f=d.get(s=p(c=n[h])+""))?f.push(c):d.set(s,[c]);return d.each(function(n,e){a(g,e,t(n,i,u,a))}),g}function n(t,e){if(++e>o.length)return t;var i,a=u[e-1];return null!=r&&e>=o.length?i=t.entries():(i=[],t.each(function(t,r){i.push({key:r,values:n(t,e)})})),null!=a?i.sort(function(t,n){return a(t.key,n.key)}):i}var e,r,i,o=[],u=[];return i={object:function(n){return t(n,0,Fe,Ue)},map:function(n){return t(n,0,Ve,We)},entries:function(e){return n(t(e,0,Ve,We),0)},key:function(t){return o.push(t),i},sortKeys:function(t){return u[o.length-1]=t,i},sortValues:function(t){return e=t,i},rollup:function(t){return r=t,i}}},Id=Be.prototype;Ge.prototype=Ye.prototype={constructor:Ge,has:Id.has,add:function(t){return t+="",this[Dd+t]=t,this},remove:Id.remove,clear:Id.clear,values:Id.keys,size:Id.size,empty:Id.empty,each:Id.each};var zd=function(t){var n=[];for(var e in t)n.push(e);return n},Rd=function(t){var n=[];for(var e in t)n.push(t[e]);return n},qd=function(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n},Bd=function(t){function n(t,n){var r,i,o=e(t,function(t,e){return r?r(t,e-1):(i=t,void(r=n?He(t,n):Xe(t)))});return o.columns=i,o}function e(t,n){function e(){if(f>=c)return u;if(i)return i=!1,o;var n,e=f;if(34===t.charCodeAt(e)){for(var r=e;r++<c;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}return f=r+2,n=t.charCodeAt(r+1),
13===n?(i=!0,10===t.charCodeAt(r+2)&&++f):10===n&&(i=!0),t.slice(e+1,r).replace(/""/g,'"')}for(;c>f;){var a=1;if(n=t.charCodeAt(f++),10===n)i=!0;else if(13===n)i=!0,10===t.charCodeAt(f)&&(++f,++a);else if(n!==s)continue;return t.slice(e,f-a)}return t.slice(e)}for(var r,i,o={},u={},a=[],c=t.length,f=0,h=0;(r=e())!==u;){for(var l=[];r!==o&&r!==u;)l.push(r),r=e();n&&null==(l=n(l,h++))||a.push(l)}return a}function r(n,e){return null==e&&(e=$e(n)),[e.map(u).join(t)].concat(n.map(function(n){return e.map(function(t){return u(n[t])}).join(t)})).join("\n")}function i(t){return t.map(o).join("\n")}function o(n){return n.map(u).join(t)}function u(t){return null==t?"":a.test(t+="")?'"'+t.replace(/\"/g,'""')+'"':t}var a=new RegExp('["'+t+"\n]"),s=t.charCodeAt(0);return{parse:n,parseRows:e,format:r,formatRows:i}},Fd=Bd(","),Ud=Fd.parse,Vd=Fd.parseRows,Wd=Fd.format,Gd=Fd.formatRows,Yd=Bd(" "),Xd=Yd.parse,Hd=Yd.parseRows,$d=Yd.format,Zd=Yd.formatRows,Kd=function(t,n){function e(){var e,i,o=r.length,u=0,a=0;for(e=0;o>e;++e)i=r[e],u+=i.x,a+=i.y;for(u=u/o-t,a=a/o-n,e=0;o>e;++e)i=r[e],i.x-=u,i.y-=a}var r;return null==t&&(t=0),null==n&&(n=0),e.initialize=function(t){r=t},e.x=function(n){return arguments.length?(t=+n,e):t},e.y=function(t){return arguments.length?(n=+t,e):n},e},Jd=function(t){return function(){return t}},Qd=function(){return 1e-6*(Math.random()-.5)},tg=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return Ze(this.cover(n,e),n,e,t)},ng=function(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,o=(r=Math.floor(n))+1;else{if(!(e>t||t>i||r>n||n>o))return this;var u,a,s=i-e,c=this._root;switch(a=((r+o)/2>n)<<1|(e+i)/2>t){case 0:do u=new Array(4),u[a]=c,c=u;while(s*=2,i=e+s,o=r+s,t>i||n>o);break;case 1:do u=new Array(4),u[a]=c,c=u;while(s*=2,e=i-s,o=r+s,e>t||n>o);break;case 2:do u=new Array(4),u[a]=c,c=u;while(s*=2,i=e+s,r=o-s,t>i||r>n);break;case 3:do u=new Array(4),u[a]=c,c=u;while(s*=2,e=i-s,r=o-s,e>t||r>n)}this._root&&this._root.length&&(this._root=c)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},eg=function(){var t=[];return this.visit(function(n){if(!n.length)do t.push(n.data);while(n=n.next)}),t},rg=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},ig=function(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i},og=function(t,n,e){var r,i,o,u,a,s,c,f=this._x0,h=this._y0,l=this._x1,p=this._y1,d=[],g=this._root;for(g&&d.push(new ig(g,f,h,l,p)),null==e?e=1/0:(f=t-e,h=n-e,l=t+e,p=n+e,e*=e);s=d.pop();)if(!(!(g=s.node)||(i=s.x0)>l||(o=s.y0)>p||(u=s.x1)<f||(a=s.y1)<h))if(g.length){var v=(i+u)/2,y=(o+a)/2;d.push(new ig(g[3],v,y,u,a),new ig(g[2],i,y,v,a),new ig(g[1],v,o,u,y),new ig(g[0],i,o,v,y)),(c=(n>=y)<<1|t>=v)&&(s=d[d.length-1],d[d.length-1]=d[d.length-1-c],d[d.length-1-c]=s)}else{var _=t-+this._x.call(null,g.data),m=n-+this._y.call(null,g.data),b=_*_+m*m;if(e>b){var x=Math.sqrt(e=b);f=t-x,h=n-x,l=t+x,p=n+x,r=g.data}}return r},ug=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(u=+this._y.call(null,t)))return this;var n,e,r,i,o,u,a,s,c,f,h,l,p=this._root,d=this._x0,g=this._y0,v=this._x1,y=this._y1;if(!p)return this;if(p.length)for(;;){if((c=o>=(a=(d+v)/2))?d=a:v=a,(f=u>=(s=(g+y)/2))?g=s:y=s,n=p,!(p=p[h=f<<1|c]))return this;if(!p.length)break;(n[h+1&3]||n[h+2&3]||n[h+3&3])&&(e=n,l=h)}for(;p.data!==t;)if(r=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,r?(i?r.next=i:delete r.next,this):n?(i?n[h]=i:delete n[h],(p=n[0]||n[1]||n[2]||n[3])&&p===(n[3]||n[2]||n[1]||n[0])&&!p.length&&(e?e[l]=p:this._root=p),this):(this._root=i,this)},ag=function(){return this._root},sg=function(){var t=0;return this.visit(function(n){if(!n.length)do++t;while(n=n.next)}),t},cg=function(t){var n,e,r,i,o,u,a=[],s=this._root;for(s&&a.push(new ig(s,this._x0,this._y0,this._x1,this._y1));n=a.pop();)if(!t(s=n.node,r=n.x0,i=n.y0,o=n.x1,u=n.y1)&&s.length){var c=(r+o)/2,f=(i+u)/2;(e=s[3])&&a.push(new ig(e,c,f,o,u)),(e=s[2])&&a.push(new ig(e,r,f,c,u)),(e=s[1])&&a.push(new ig(e,c,i,o,f)),(e=s[0])&&a.push(new ig(e,r,i,c,f))}return this},fg=function(t){var n,e=[],r=[];for(this._root&&e.push(new ig(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var o,u=n.x0,a=n.y0,s=n.x1,c=n.y1,f=(u+s)/2,h=(a+c)/2;(o=i[0])&&e.push(new ig(o,u,a,f,h)),(o=i[1])&&e.push(new ig(o,f,a,s,h)),(o=i[2])&&e.push(new ig(o,u,h,f,c)),(o=i[3])&&e.push(new ig(o,f,h,s,c))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},hg=function(t){return arguments.length?(this._x=t,this):this._x},lg=function(t){return arguments.length?(this._y=t,this):this._y},pg=nr.prototype=er.prototype;pg.copy=function(){var t,n,e=new er(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=rr(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;4>i;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=rr(n));return e},pg.add=tg,pg.addAll=Ke,pg.cover=ng,pg.data=eg,pg.extent=rg,pg.find=og,pg.remove=ug,pg.removeAll=Je,pg.root=ag,pg.size=sg,pg.visit=cg,pg.visitAfter=fg,pg.x=hg,pg.y=lg;var dg,gg=function(t){function n(){function t(t,n,e,r,i){var o=t.data,a=t.r,p=h+a;{if(!o)return n>c+p||c-p>r||e>f+p||f-p>i;if(o.index>s.index){var d=c-o.x-o.vx,g=f-o.y-o.vy,v=d*d+g*g;p*p>v&&(0===d&&(d=Qd(),v+=d*d),0===g&&(g=Qd(),v+=g*g),v=(p-(v=Math.sqrt(v)))/v*u,s.vx+=(d*=v)*(p=(a*=a)/(l+a)),s.vy+=(g*=v)*p,o.vx-=d*(p=1-p),o.vy-=g*p)}}}for(var n,r,s,c,f,h,l,p=i.length,d=0;a>d;++d)for(r=nr(i,ir,or).visitAfter(e),n=0;p>n;++n)s=i[n],h=o[s.index],l=h*h,c=s.x+s.vx,f=s.y+s.vy,r.visit(t)}function e(t){if(t.data)return t.r=o[t.data.index];for(var n=t.r=0;4>n;++n)t[n]&&t[n].r>t.r&&(t.r=t[n].r)}function r(){if(i){var n,e,r=i.length;for(o=new Array(r),n=0;r>n;++n)e=i[n],o[e.index]=+t(e,n,i)}}var i,o,u=1,a=1;return"function"!=typeof t&&(t=Jd(null==t?1:+t)),n.initialize=function(t){i=t,r()},n.iterations=function(t){return arguments.length?(a=+t,n):a},n.strength=function(t){return arguments.length?(u=+t,n):u},n.radius=function(e){return arguments.length?(t="function"==typeof e?e:Jd(+e),r(),n):t},n},vg=function(t){function n(t){return 1/Math.min(c[t.source.index],c[t.target.index])}function e(n){for(var e=0,r=t.length;d>e;++e)for(var i,o,s,c,h,l,p,g=0;r>g;++g)i=t[g],o=i.source,s=i.target,c=s.x+s.vx-o.x-o.vx||Qd(),h=s.y+s.vy-o.y-o.vy||Qd(),l=Math.sqrt(c*c+h*h),l=(l-a[g])/l*n*u[g],c*=l,h*=l,s.vx-=c*(p=f[g]),s.vy-=h*p,o.vx+=c*(p=1-p),o.vy+=h*p}function r(){if(s){var n,e,r=s.length,l=t.length,p=Be(s,h);for(n=0,c=new Array(r);l>n;++n)e=t[n],e.index=n,"object"!=typeof e.source&&(e.source=ar(p,e.source)),"object"!=typeof e.target&&(e.target=ar(p,e.target)),c[e.source.index]=(c[e.source.index]||0)+1,c[e.target.index]=(c[e.target.index]||0)+1;for(n=0,f=new Array(l);l>n;++n)e=t[n],f[n]=c[e.source.index]/(c[e.source.index]+c[e.target.index]);u=new Array(l),i(),a=new Array(l),o()}}function i(){if(s)for(var n=0,e=t.length;e>n;++n)u[n]=+l(t[n],n,t)}function o(){if(s)for(var n=0,e=t.length;e>n;++n)a[n]=+p(t[n],n,t)}var u,a,s,c,f,h=ur,l=n,p=Jd(30),d=1;return null==t&&(t=[]),e.initialize=function(t){s=t,r()},e.links=function(n){return arguments.length?(t=n,r(),e):t},e.id=function(t){return arguments.length?(h=t,e):h},e.iterations=function(t){return arguments.length?(d=+t,e):d},e.strength=function(t){return arguments.length?(l="function"==typeof t?t:Jd(+t),i(),e):l},e.distance=function(t){return arguments.length?(p="function"==typeof t?t:Jd(+t),o(),e):p},e},yg=10,_g=Math.PI*(3-Math.sqrt(5)),mg=function(t){function n(){e(),d.call("tick",o),a>u&&(l.stop(),d.call("end",o))}function e(){var n,e,r=t.length;for(u+=(c-u)*s,h.each(function(t){t(u)}),n=0;r>n;++n)e=t[n],null==e.fx?e.x+=e.vx*=f:(e.x=e.fx,e.vx=0),null==e.fy?e.y+=e.vy*=f:(e.y=e.fy,e.vy=0)}function r(){for(var n,e=0,r=t.length;r>e;++e){if(n=t[e],n.index=e,isNaN(n.x)||isNaN(n.y)){var i=yg*Math.sqrt(e),o=e*_g;n.x=i*Math.cos(o),n.y=i*Math.sin(o)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function i(n){return n.initialize&&n.initialize(t),n}var o,u=1,a=.001,s=1-Math.pow(a,1/300),c=0,f=.6,h=Be(),l=vn(n),d=p("tick","end");return null==t&&(t=[]),r(),o={tick:e,restart:function(){return l.restart(n),o},stop:function(){return l.stop(),o},nodes:function(n){return arguments.length?(t=n,r(),h.each(i),o):t},alpha:function(t){return arguments.length?(u=+t,o):u},alphaMin:function(t){return arguments.length?(a=+t,o):a},alphaDecay:function(t){return arguments.length?(s=+t,o):+s},alphaTarget:function(t){return arguments.length?(c=+t,o):c},velocityDecay:function(t){return arguments.length?(f=1-t,o):1-f},force:function(t,n){return arguments.length>1?(null==n?h.remove(t):h.set(t,i(n)),o):h.get(t)},find:function(n,e,r){var i,o,u,a,s,c=0,f=t.length;for(null==r?r=1/0:r*=r,c=0;f>c;++c)a=t[c],i=n-a.x,o=e-a.y,u=i*i+o*o,r>u&&(s=a,r=u);return s},on:function(t,n){return arguments.length>1?(d.on(t,n),o):d.on(t)}}},bg=function(){function t(t){var n,a=i.length,s=nr(i,sr,cr).visitAfter(e);for(u=t,n=0;a>n;++n)o=i[n],s.visit(r)}function n(){if(i){var t,n,e=i.length;for(a=new Array(e),t=0;e>t;++t)n=i[t],a[n.index]=+s(n,t,i)}}function e(t){var n,e,r,i,o,u=0;if(t.length){for(r=i=o=0;4>o;++o)(n=t[o])&&(e=n.value)&&(u+=e,r+=e*n.x,i+=e*n.y);t.x=r/u,t.y=i/u}else{n=t,n.x=n.data.x,n.y=n.data.y;do u+=a[n.data.index];while(n=n.next)}t.value=u}function r(t,n,e,r){if(!t.value)return!0;var i=t.x-o.x,s=t.y-o.y,l=r-n,p=i*i+s*s;if(p>l*l/h)return f>p&&(0===i&&(i=Qd(),p+=i*i),0===s&&(s=Qd(),p+=s*s),c>p&&(p=Math.sqrt(c*p)),o.vx+=i*t.value*u/p,o.vy+=s*t.value*u/p),!0;if(!(t.length||p>=f)){(t.data!==o||t.next)&&(0===i&&(i=Qd(),p+=i*i),0===s&&(s=Qd(),p+=s*s),c>p&&(p=Math.sqrt(c*p)));do t.data!==o&&(l=a[t.data.index]*u/p,o.vx+=i*l,o.vy+=s*l);while(t=t.next)}}var i,o,u,a,s=Jd(-30),c=1,f=1/0,h=.81;return t.initialize=function(t){i=t,n()},t.strength=function(e){return arguments.length?(s="function"==typeof e?e:Jd(+e),n(),t):s},t.distanceMin=function(n){return arguments.length?(c=n*n,t):Math.sqrt(c)},t.distanceMax=function(n){return arguments.length?(f=n*n,t):Math.sqrt(f)},t.theta=function(n){return arguments.length?(h=n*n,t):Math.sqrt(h)},t},xg=function(t){function n(t){for(var n,e=0,u=r.length;u>e;++e)n=r[e],n.vx+=(o[e]-n.x)*i[e]*t}function e(){if(r){var n,e=r.length;for(i=new Array(e),o=new Array(e),n=0;e>n;++n)i[n]=isNaN(o[n]=+t(r[n],n,r))?0:+u(r[n],n,r)}}var r,i,o,u=Jd(.1);return"function"!=typeof t&&(t=Jd(null==t?0:+t)),n.initialize=function(t){r=t,e()},n.strength=function(t){return arguments.length?(u="function"==typeof t?t:Jd(+t),e(),n):u},n.x=function(r){return arguments.length?(t="function"==typeof r?r:Jd(+r),e(),n):t},n},wg=function(t){function n(t){for(var n,e=0,u=r.length;u>e;++e)n=r[e],n.vy+=(o[e]-n.y)*i[e]*t}function e(){if(r){var n,e=r.length;for(i=new Array(e),o=new Array(e),n=0;e>n;++n)i[n]=isNaN(o[n]=+t(r[n],n,r))?0:+u(r[n],n,r)}}var r,i,o,u=Jd(.1);return"function"!=typeof t&&(t=Jd(null==t?0:+t)),n.initialize=function(t){r=t,e()},n.strength=function(t){return arguments.length?(u="function"==typeof t?t:Jd(+t),e(),n):u},n.y=function(r){return arguments.length?(t="function"==typeof r?r:Jd(+r),e(),n):t},n},kg=function(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]},Mg=function(t){return t=kg(Math.abs(t)),t?t[1]:0/0},Eg=function(t,n){return function(e,r){for(var i=e.length,o=[],u=0,a=t[0],s=0;i>0&&a>0&&(s+a+1>r&&(a=Math.max(1,r-s)),o.push(e.substring(i-=a,i+a)),!((s+=a+1)>r));)a=t[u=(u+1)%t.length];return o.reverse().join(n)}},Ag=function(t,n){t=t.toPrecision(n);t:for(var e,r=t.length,i=1,o=-1;r>i;++i)switch(t[i]){case".":o=e=i;break;case"0":0===o&&(o=i),e=i;break;case"e":break t;default:o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t},Sg=function(t,n){var e=kg(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(dg=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+kg(t,Math.max(0,n+o-1))[0]},Tg=function(t,n){var e=kg(t,n);if(!e)return t+"";var r=e[0],i=e[1];return 0>i?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Cg={"":Ag,"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Tg(100*t,n)},r:Tg,s:Sg,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Og=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i,Pg=function(t){return new fr(t)};fr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var Lg,Ng=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Dg=function(t){function n(t){function n(t){var n,i,s,_=d,m=g;if("c"===p)m=v(t)+m,t="";else{t=+t;var b=(0>t||0>1/t)&&(t*=-1,!0);if(t=v(t,l),b)for(n=-1,i=t.length,b=!1;++n<i;)if(s=t.charCodeAt(n),s>48&&58>s||"x"===p&&s>96&&103>s||"X"===p&&s>64&&71>s){b=!0;break}if(_=(b?"("===a?a:"-":"-"===a||"("===a?"":a)+_,m=m+("s"===p?Ng[8+dg/3]:"")+(b&&"("===a?")":""),y)for(n=-1,i=t.length;++n<i;)if(s=t.charCodeAt(n),48>s||s>57){m=(46===s?o+t.slice(n+1):t.slice(n))+m,t=t.slice(0,n);break}}h&&!c&&(t=r(t,1/0));var x=_.length+t.length+m.length,w=f>x?new Array(f-x+1).join(e):"";switch(h&&c&&(t=r(w+t,w.length?f-m.length:1/0),w=""),u){case"<":return _+t+m+w;case"=":return _+w+t+m;case"^":return w.slice(0,x=w.length>>1)+_+t+m+w.slice(x)}return w+_+t+m}t=Pg(t);var e=t.fill,u=t.align,a=t.sign,s=t.symbol,c=t.zero,f=t.width,h=t.comma,l=t.precision,p=t.type,d="$"===s?i[0]:"#"===s&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",g="$"===s?i[1]:/[%p]/.test(p)?"%":"",v=Cg[p],y=!p||/[defgprs%]/.test(p);return l=null==l?p?6:12:/[gprs]/.test(p)?Math.max(1,Math.min(21,l)):Math.max(0,Math.min(20,l)),n.toString=function(){return t+""},n}function e(t,e){var r=n((t=Pg(t),t.type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Mg(e)/3))),o=Math.pow(10,-i),u=Ng[8+i/3];return function(t){return r(o*t)+u}}var r=t.grouping&&t.thousands?Eg(t.grouping,t.thousands):hr,i=t.currency,o=t.decimal;return{format:n,formatPrefix:e}};lr({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var jg=function(t){return Math.max(0,-Mg(Math.abs(t)))},Ig=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Mg(n)/3)))-Mg(Math.abs(t)))},zg=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Mg(n)-Mg(t))+1},Rg=function(){return new pr};pr.prototype={constructor:pr,reset:function(){this.s=this.t=0},add:function(t){dr(vv,t,this.t),dr(this,vv.s,this.s),this.s?this.t+=vv.t:this.s=vv.t},valueOf:function(){return this.s}};var qg,Bg,Fg,Ug,Vg,Wg,Gg,Yg,Xg,Hg,$g,Zg,Kg,Jg,Qg,tv,nv,ev,rv,iv,ov,uv,av,sv,cv,fv,hv,lv,pv,dv,gv,vv=new pr,yv=1e-6,_v=1e-12,mv=Math.PI,bv=mv/2,xv=mv/4,wv=2*mv,kv=180/mv,Mv=mv/180,Ev=Math.abs,Av=Math.atan,Sv=Math.atan2,Tv=Math.cos,Cv=Math.ceil,Ov=Math.exp,Pv=Math.log,Lv=Math.pow,Nv=Math.sin,Dv=Math.sign||function(t){return t>0?1:0>t?-1:0},jv=Math.sqrt,Iv=Math.tan,zv={Feature:function(t,n){mr(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)mr(e[r].geometry,n)}},Rv={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 e=t.coordinates,r=-1,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){br(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)br(e[r],n,0)},Polygon:function(t,n){xr(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)xr(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)mr(e[r],n)}},qv=function(t,n){t&&zv.hasOwnProperty(t.type)?zv[t.type](t,n):mr(t,n)},Bv=Rg(),Fv=Rg(),Uv={point:_r,lineStart:_r,lineEnd:_r,polygonStart:function(){Bv.reset(),Uv.lineStart=wr,Uv.lineEnd=kr},polygonEnd:function(){var t=+Bv;Fv.add(0>t?wv+t:t),this.lineStart=this.lineEnd=this.point=_r},sphere:function(){Fv.add(wv)}},Vv=function(t){return Fv.reset(),qv(t,Uv),2*Fv},Wv=Rg(),Gv={point:Nr,lineStart:jr,lineEnd:Ir,polygonStart:function(){Gv.point=zr,Gv.lineStart=Rr,Gv.lineEnd=qr,Wv.reset(),Uv.polygonStart()},polygonEnd:function(){Uv.polygonEnd(),Gv.point=Nr,Gv.lineStart=jr,Gv.lineEnd=Ir,0>Bv?(Wg=-(Yg=180),Gg=-(Xg=90)):Wv>yv?Xg=90:-yv>Wv&&(Gg=-90),Qg[0]=Wg,Qg[1]=Yg}},Yv=function(t){var n,e,r,i,o,u,a;if(Xg=Yg=-(Wg=Gg=1/0),Jg=[],qv(t,Gv),e=Jg.length){for(Jg.sort(Fr),n=1,r=Jg[0],o=[r];e>n;++n)i=Jg[n],Ur(r,i[0])||Ur(r,i[1])?(Br(r[0],i[1])>Br(r[0],r[1])&&(r[1]=i[1]),Br(i[0],r[1])>Br(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(u=-(1/0),e=o.length-1,n=0,r=o[e];e>=n;r=i,++n)i=o[n],(a=Br(r[1],i[0]))>u&&(u=a,Wg=i[0],Yg=r[1])}return Jg=Qg=null,Wg===1/0||Gg===1/0?[[0/0,0/0],[0/0,0/0]]:[[Wg,Gg],[Yg,Xg]]},Xv={sphere:_r,point:Vr,lineStart:Gr,lineEnd:Hr,polygonStart:function(){Xv.lineStart=$r,Xv.lineEnd=Zr},polygonEnd:function(){Xv.lineStart=Gr,Xv.lineEnd=Hr}},Hv=function(t){tv=nv=ev=rv=iv=ov=uv=av=sv=cv=fv=0,qv(t,Xv);var n=sv,e=cv,r=fv,i=n*n+e*e+r*r;return _v>i&&(n=ov,e=uv,r=av,yv>nv&&(n=ev,e=rv,r=iv),i=n*n+e*e+r*r,_v>i)?[0/0,0/0]:[Sv(e,n)*kv,vr(r/jv(i))*kv]},$v=function(t){return function(){return t}},Zv=function(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return e=n.invert(e,r),e&&t.invert(e[0],e[1])}),e};Qr.invert=Qr;var Kv,Jv,Qv,ty,ny,ey,ry,iy,oy,uy,ay,sy=function(t){function n(n){return n=t(n[0]*Mv,n[1]*Mv),n[0]*=kv,n[1]*=kv,n}return t=ti(t[0]*Mv,t[1]*Mv,t.length>2?t[2]*Mv:0),n.invert=function(n){return n=t.invert(n[0]*Mv,n[1]*Mv),n[0]*=kv,n[1]*=kv,n},n},cy=function(){function t(t,n){e.push(t=r(t,n)),t[0]*=kv,t[1]*=kv}function n(){var t=i.apply(this,arguments),n=o.apply(this,arguments)*Mv,s=u.apply(this,arguments)*Mv;return e=[],r=ti(-t[0]*Mv,-t[1]*Mv,0).invert,ii(a,n,s,1),t={type:"Polygon",coordinates:[e]},e=r=null,t}var e,r,i=$v([0,0]),o=$v(90),u=$v(6),a={point:t};return n.center=function(t){return arguments.length?(i="function"==typeof t?t:$v([+t[0],+t[1]]),n):i},n.radius=function(t){return arguments.length?(o="function"==typeof t?t:$v(+t),n):o},n.precision=function(t){return arguments.length?(u="function"==typeof t?t:$v(+t),n):u},n},fy=function(){var t,n=[];return{point:function(n,e){t.push([n,e])},lineStart:function(){n.push(t=[])},lineEnd:_r,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}},hy=function(t,n,e,r,i,o){var u,a=t[0],s=t[1],c=n[0],f=n[1],h=0,l=1,p=c-a,d=f-s;if(u=e-a,p||!(u>0)){if(u/=p,0>p){if(h>u)return;l>u&&(l=u)}else if(p>0){if(u>l)return;u>h&&(h=u)}if(u=i-a,p||!(0>u)){if(u/=p,0>p){if(u>l)return;u>h&&(h=u)}else if(p>0){if(h>u)return;l>u&&(l=u)}if(u=r-s,d||!(u>0)){if(u/=d,0>d){if(h>u)return;l>u&&(l=u)}else if(d>0){if(u>l)return;u>h&&(h=u)}if(u=o-s,d||!(0>u)){if(u/=d,0>d){if(u>l)return;u>h&&(h=u)}else if(d>0){if(h>u)return;l>u&&(l=u)}return h>0&&(t[0]=a+h*p,t[1]=s+h*d),1>l&&(n[0]=a+l*p,n[1]=s+l*d),!0}}}}},ly=function(t,n){return Ev(t[0]-n[0])<yv&&Ev(t[1]-n[1])<yv},py=function(t,n,e,r,i){var o,u,a=[],s=[];if(t.forEach(function(t){if(!((n=t.length-1)<=0)){var n,e,r=t[0],u=t[n];if(ly(r,u)){for(i.lineStart(),o=0;n>o;++o)i.point((r=t[o])[0],r[1]);return void i.lineEnd()}a.push(e=new ui(r,t,null,!0)),s.push(e.o=new ui(r,null,e,!1)),a.push(e=new ui(u,t,null,!1)),s.push(e.o=new ui(u,null,e,!0))}}),a.length){for(s.sort(n),ai(a),ai(s),o=0,u=s.length;u>o;++o)s[o].e=e=!e;for(var c,f,h=a[0];;){for(var l=h,p=!0;l.v;)if((l=l.n)===h)return;c=l.z,i.lineStart();do{if(l.v=l.o.v=!0,l.e){if(p)for(o=0,u=c.length;u>o;++o)i.point((f=c[o])[0],f[1]);else r(l.x,l.n.x,1,i);l=l.n}else{if(p)for(c=l.p.z,o=c.length-1;o>=0;--o)i.point((f=c[o])[0],f[1]);else r(l.x,l.p.x,-1,i);l=l.p}l=l.o,c=l.z,p=!p}while(!l.v);i.lineEnd()}}},dy=1e9,gy=-dy,vy=function(){var t,n,e,r=0,i=0,o=960,u=500;return e={stream:function(e){return t&&n===e?t:t=si(r,i,o,u)(n=e)},extent:function(a){return arguments.length?(r=+a[0][0],i=+a[0][1],o=+a[1][0],u=+a[1][1],t=n=null,e):[[r,i],[o,u]]}}},yy=Rg(),_y={sphere:_r,point:_r,lineStart:ci,lineEnd:_r,polygonStart:_r,polygonEnd:_r},my=function(t){return yy.reset(),qv(t,_y),+yy},by=[null,null],xy={type:"LineString",coordinates:by},wy=function(t,n){return by[0]=t,by[1]=n,my(xy)},ky=function(t,n){var e=t[0]*Mv,r=t[1]*Mv,i=n[0]*Mv,o=n[1]*Mv,u=Tv(r),a=Nv(r),s=Tv(o),c=Nv(o),f=u*Tv(e),h=u*Nv(e),l=s*Tv(i),p=s*Nv(i),d=2*vr(jv(yr(o-r)+u*s*yr(i-e))),g=Nv(d),v=d?function(t){var n=Nv(t*=d)/g,e=Nv(d-t)/g,r=e*f+n*l,i=e*h+n*p,o=e*a+n*c;return[Sv(i,r)*kv,Sv(o,jv(r*r+i*i))*kv]}:function(){return[e*kv,r*kv]};return v.distance=d,v},My=function(t){return t},Ey=Rg(),Ay=Rg(),Sy={point:_r,lineStart:_r,lineEnd:_r,polygonStart:function(){Sy.lineStart=yi,Sy.lineEnd=bi},polygonEnd:function(){Sy.lineStart=Sy.lineEnd=Sy.point=_r,Ey.add(Ev(Ay)),Ay.reset()},result:function(){var t=Ey/2;return Ey.reset(),t}},Ty=1/0,Cy=Ty,Oy=-Ty,Py=Oy,Ly={point:xi,lineStart:_r,lineEnd:_r,polygonStart:_r,polygonEnd:_r,result:function(){var t=[[Ty,Cy],[Oy,Py]];return Oy=Py=-(Cy=Ty=1/0),t}},Ny=0,Dy=0,jy=0,Iy=0,zy=0,Ry=0,qy=0,By=0,Fy=0,Uy={point:wi,lineStart:ki,lineEnd:Ai,polygonStart:function(){Uy.lineStart=Si,Uy.lineEnd=Ti},polygonEnd:function(){Uy.point=wi,Uy.lineStart=ki,Uy.lineEnd=Ai},result:function(){var t=Fy?[qy/Fy,By/Fy]:Ry?[Iy/Ry,zy/Ry]:jy?[Ny/jy,Dy/jy]:[0/0,0/0];return Ny=Dy=jy=Iy=zy=Ry=qy=By=Fy=0,t}};Pi.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=0/0},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=0/0},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,wv)}},result:_r},Li.prototype={_circle:Ni(4.5),pointRadius:function(t){return this._circle=Ni(t),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=0/0},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=0/0},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}}};var Vy=function(t,n){function e(t){return t&&("function"==typeof o&&i.pointRadius(+o.apply(this,arguments)),qv(t,r(i))),i.result()}var r,i,o=4.5;return e.area=function(t){return qv(t,r(Sy)),Sy.result()},e.bounds=function(t){return qv(t,r(Ly)),Ly.result()},e.centroid=function(t){return qv(t,r(Uy)),Uy.result()},e.projection=function(n){return arguments.length?(r=null==n?(t=null,My):(t=n).stream,e):t},e.context=function(t){return arguments.length?(i=null==t?(n=null,new Li):new Pi(n=t),"function"!=typeof o&&i.pointRadius(o),e):n},e.pointRadius=function(t){return arguments.length?(o="function"==typeof t?t:(i.pointRadius(+t),+t),e):o},e.projection(t).context(n)},Wy=Rg(),Gy=function(t,n){var e=n[0],r=n[1],i=[Nv(e),-Tv(e),0],o=0,u=0;Wy.reset();for(var a=0,s=t.length;s>a;++a)if(f=(c=t[a]).length)for(var c,f,h=c[f-1],l=h[0],p=h[1]/2+xv,d=Nv(p),g=Tv(p),v=0;f>v;++v,l=_,d=b,g=x,h=y){var y=c[v],_=y[0],m=y[1]/2+xv,b=Nv(m),x=Tv(m),w=_-l,k=w>=0?1:-1,M=k*w,E=M>mv,A=d*b;if(Wy.add(Sv(A*k*Nv(M),g*x+A*Tv(M))),o+=E?w+k*wv:w,E^l>=e^_>=e){var S=Cr(Sr(h),Sr(y));Lr(S);var T=Cr(i,S);Lr(T);var C=(E^w>=0?-1:1)*vr(T[2]);(r>C||r===C&&(S[0]||S[1]))&&(u+=E^w>=0?1:-1)}}return(-yv>o||yv>o&&-yv>Wy)^1&u},Yy=function(t,n,e,r){return function(i,o){function u(n,e){var r=i(n,e);t(n=r[0],e=r[1])&&o.point(n,e)}function a(t,n){var e=i(t,n);v.point(e[0],e[1])}function s(){x.point=a,v.lineStart()}function c(){x.point=u,v.lineEnd()}function f(t,n){g.push([t,n]);var e=i(t,n);m.point(e[0],e[1])}function h(){m.lineStart(),g=[]}function l(){f(g[0][0],g[0][1]),m.lineEnd();var t,n,e,r,i=m.clean(),u=_.result(),a=u.length;if(g.pop(),p.push(g),g=null,a)if(1&i){if(e=u[0],(n=e.length-1)>0){for(b||(o.polygonStart(),b=!0),o.lineStart(),t=0;n>t;++t)o.point((r=e[t])[0],r[1]);o.lineEnd()}}else a>1&&2&i&&u.push(u.pop().concat(u.shift())),d.push(u.filter(Di))}var p,d,g,v=n(o),y=i.invert(r[0],r[1]),_=fy(),m=n(_),b=!1,x={point:u,lineStart:s,lineEnd:c,polygonStart:function(){x.point=f,x.lineStart=h,x.lineEnd=l,d=[],p=[]},polygonEnd:function(){x.point=u,x.lineStart=s,x.lineEnd=c,d=Qc(d);var t=Gy(p,y);d.length?(b||(o.polygonStart(),b=!0),py(d,ji,t,e,o)):t&&(b||(o.polygonStart(),b=!0),o.lineStart(),e(null,null,1,o),o.lineEnd()),b&&(o.polygonEnd(),b=!1),d=p=null},sphere:function(){o.polygonStart(),o.lineStart(),e(null,null,1,o),o.lineEnd(),o.polygonEnd()}};return x}},Xy=Yy(function(){return!0},Ii,Ri,[-mv,-bv]),Hy=function(t,n){function e(e,r,i,o){ii(o,t,n,i,e,r)}function r(t,n){return Tv(t)*Tv(n)>a}function i(t){var n,e,i,a,f;return{lineStart:function(){a=i=!1,f=1},point:function(h,l){var p,d=[h,l],g=r(h,l),v=s?g?0:u(h,l):g?u(h+(0>h?mv:-mv),l):0;if(!n&&(a=i=g)&&t.lineStart(),g!==i&&(p=o(n,d),(ly(n,p)||ly(d,p))&&(d[0]+=yv,d[1]+=yv,g=r(d[0],d[1]))),g!==i)f=0,g?(t.lineStart(),p=o(d,n),t.point(p[0],p[1])):(p=o(n,d),t.point(p[0],p[1]),t.lineEnd()),n=p;else if(c&&n&&s^g){var y;v&e||!(y=o(d,n,!0))||(f=0,s?(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])))}!g||n&&ly(n,d)||t.point(d[0],d[1]),n=d,i=g,e=v},lineEnd:function(){i&&t.lineEnd(),n=null},clean:function(){return f|(a&&i)<<1}}}function o(t,n,e){var r=Sr(t),i=Sr(n),o=[1,0,0],u=Cr(r,i),s=Tr(u,u),c=u[0],f=s-c*c;if(!f)return!e&&t;var h=a*s/f,l=-a*c/f,p=Cr(o,u),d=Pr(o,h),g=Pr(u,l);Or(d,g);var v=p,y=Tr(d,v),_=Tr(v,v),m=y*y-_*(Tr(d,d)-1);if(!(0>m)){var b=jv(m),x=Pr(v,(-y-b)/_);if(Or(x,d),x=Ar(x),!e)return x;var w,k=t[0],M=n[0],E=t[1],A=n[1];k>M&&(w=k,k=M,M=w);var S=M-k,T=Ev(S-mv)<yv,C=T||yv>S;if(!T&&E>A&&(w=E,E=A,A=w),C?T?E+A>0^x[1]<(Ev(x[0]-k)<yv?E:A):E<=x[1]&&x[1]<=A:S>mv^(k<=x[0]&&x[0]<=M)){var O=Pr(v,(-y+b)/_);return Or(O,d),[x,Ar(O)]}}}function u(n,e){var r=s?t:mv-t,i=0;return-r>n?i|=1:n>r&&(i|=2),-r>e?i|=4:e>r&&(i|=8),i}var a=Tv(t),s=a>0,c=Ev(a)>yv;return Yy(r,i,e,s?[0,-t]:[-mv,t-mv])},$y=function(t){return{stream:qi(t)}};Bi.prototype={constructor:Bi,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()}};var Zy=16,Ky=Tv(30*Mv),Jy=function(t,n){return+n?Wi(t,n):Vi(t)},Qy=qi({point:function(t,n){this.stream.point(t*Mv,n*Mv)}}),t_=function(){return Xi($i).scale(155.424).center([0,33.6442])},n_=function(){return t_().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},e_=function(){function t(t){var n=t[0],e=t[1];return a=null,i.point(n,e),a||(o.point(n,e),a)||(u.point(n,e),a)}function n(){return e=r=null,t}var e,r,i,o,u,a,s=n_(),c=t_().rotate([154,0]).center([-2,58.5]).parallels([55,65]),f=t_().rotate([157,0]).center([-3,19.9]).parallels([8,18]),h={point:function(t,n){a=[t,n]}};return t.invert=function(t){var n=s.scale(),e=s.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?c:i>=.166&&.234>i&&r>=-.214&&-.115>r?f:s).invert(t)},t.stream=function(t){return e&&r===t?e:e=Zi([s.stream(r=t),c.stream(t),f.stream(t)])},t.precision=function(t){return arguments.length?(s.precision(t),c.precision(t),f.precision(t),n()):s.precision()},t.scale=function(n){return arguments.length?(s.scale(n),c.scale(.35*n),f.scale(n),t.translate(s.translate())):s.scale()},t.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),r=+t[0],a=+t[1];return i=s.translate(t).clipExtent([[r-.455*e,a-.238*e],[r+.455*e,a+.238*e]]).stream(h),o=c.translate([r-.307*e,a+.201*e]).clipExtent([[r-.425*e+yv,a+.12*e+yv],[r-.214*e-yv,a+.234*e-yv]]).stream(h),u=f.translate([r-.205*e,a+.212*e]).clipExtent([[r-.214*e+yv,a+.166*e+yv],[r-.115*e-yv,a+.234*e-yv]]).stream(h),n()},t.fitExtent=function(n,e){return Fi(t,n,e)},t.fitSize=function(n,e){return Ui(t,n,e)},t.scale(1070)},r_=Ki(function(t){return jv(2/(1+t))});r_.invert=Ji(function(t){return 2*vr(t/2)});var i_=function(){return Gi(r_).scale(124.75).clipAngle(179.999)},o_=Ki(function(t){return(t=gr(t))&&t/Nv(t)});o_.invert=Ji(function(t){return t});var u_=function(){return Gi(o_).scale(79.4188).clipAngle(179.999)};Qi.invert=function(t,n){return[t,2*Av(Ov(n))-bv]};var a_=function(){return to(Qi).scale(961/wv)},s_=function(){return Xi(eo).scale(109.5).parallels([30,30])};ro.invert=ro;var c_=function(){return Gi(ro).scale(152.63)},f_=function(){return Xi(io).scale(131.154).center([0,13.9389])};oo.invert=Ji(Av);var h_=function(){return Gi(oo).scale(144.049).clipAngle(60)},l_=function(){function t(){return i=o=null,u}var n,e,r,i,o,u,a=1,s=0,c=0,f=1,h=1,l=My,p=null,d=My;return u={stream:function(t){return i&&o===t?i:i=l(d(o=t))},clipExtent:function(i){return arguments.length?(d=null==i?(p=n=e=r=null,My):si(p=+i[0][0],n=+i[0][1],e=+i[1][0],r=+i[1][1]),t()):null==p?null:[[p,n],[e,r]]},scale:function(n){return arguments.length?(l=uo((a=+n)*f,a*h,s,c),t()):a},translate:function(n){return arguments.length?(l=uo(a*f,a*h,s=+n[0],c=+n[1]),t()):[s,c]},reflectX:function(n){return arguments.length?(l=uo(a*(f=n?-1:1),a*h,s,c),t()):0>f},reflectY:function(n){return arguments.length?(l=uo(a*f,a*(h=n?-1:1),s,c),t()):0>h},fitExtent:function(t,n){return Fi(u,t,n)},fitSize:function(t,n){return Ui(u,t,n)}}};ao.invert=Ji(vr);var p_=function(){return Gi(ao).scale(249.5).clipAngle(90+yv)};so.invert=Ji(function(t){return 2*Av(t)});var d_=function(){return Gi(so).scale(250).clipAngle(142)};co.invert=function(t,n){return[-n,2*Av(Ov(t))-bv]};var g_=function(){var t=to(co),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):(t=n(),[t[1],-t[0]])},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):(t=e(),[t[0],t[1],t[2]-90])},e([0,0,90]).scale(159.155)},v_=function(){function t(t){var o,u=0;t.eachAfter(function(t){var e=t.children;e?(t.x=ho(e),t.y=po(e)):(t.x=o?u+=n(t,o):0,t.y=0,o=t)});var a=vo(t),s=yo(t),c=a.x-n(a,s)/2,f=s.x+n(s,a)/2;return t.eachAfter(i?function(n){n.x=(n.x-t.x)*e,n.y=(t.y-n.y)*r}:function(n){n.x=(n.x-c)/(f-c)*e,n.y=(1-(t.y?n.y/t.y:1))*r})}var n=fo,e=1,r=1,i=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(n){return arguments.length?(i=!1,e=+n[0],r=+n[1],t):i?null:[e,r]},t.nodeSize=function(n){return arguments.length?(i=!0,e=+n[0],r=+n[1],t):i?[e,r]:null},t},y_=function(){return this.eachAfter(_o)},__=function(t){var n,e,r,i,o=this,u=[o];do for(n=u.reverse(),u=[];o=n.pop();)if(t(o),e=o.children)for(r=0,i=e.length;i>r;++r)u.push(e[r]);while(u.length);return this},m_=function(t){for(var n,e,r=this,i=[r];r=i.pop();)if(t(r),n=r.children)for(e=n.length-1;e>=0;--e)i.push(n[e]);return this},b_=function(t){for(var n,e,r,i=this,o=[i],u=[];i=o.pop();)if(u.push(i),n=i.children)for(e=0,r=n.length;r>e;++e)o.push(n[e]);for(;i=u.pop();)t(i);return this},x_=function(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e})},w_=function(t){return this.eachBefore(function(n){n.children&&n.children.sort(t);
})},k_=function(t){for(var n=this,e=mo(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},M_=function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},E_=function(){var t=[];return this.each(function(n){t.push(n)}),t},A_=function(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},S_=function(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n};Eo.prototype=bo.prototype={constructor:Eo,count:y_,each:__,eachAfter:b_,eachBefore:m_,sum:x_,sort:w_,path:k_,ancestors:M_,descendants:E_,leaves:A_,links:S_,copy:xo};var T_=function(t){for(var n,e=(t=t.slice()).length,r=null,i=r;e;){var o=new Ao(t[e-1]);i=i?i.next=o:r=o,t[n]=t[--e]}return{head:r,tail:i}},C_=function(t){return To(T_(t),[])},O_=function(t){return zo(t),t},P_=function(t){return function(){return t}},L_=function(){function t(t){return t.x=e/2,t.y=r/2,n?t.eachBefore(Uo(n)).eachAfter(Vo(i,.5)).eachBefore(Wo(1)):t.eachBefore(Uo(Fo)).eachAfter(Vo(Bo,1)).eachAfter(Vo(i,t.r/Math.min(e,r))).eachBefore(Wo(Math.min(e,r)/(2*t.r))),t}var n=null,e=1,r=1,i=Bo;return t.radius=function(e){return arguments.length?(n=Ro(e),t):n},t.size=function(n){return arguments.length?(e=+n[0],r=+n[1],t):[e,r]},t.padding=function(n){return arguments.length?(i="function"==typeof n?n:P_(+n),t):i},t},N_=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},D_=function(t,n,e,r,i){for(var o,u=t.children,a=-1,s=u.length,c=t.value&&(r-n)/t.value;++a<s;)o=u[a],o.y0=e,o.y1=i,o.x0=n,o.x1=n+=o.value*c},j_=function(){function t(t){var u=t.height+1;return t.x0=t.y0=i,t.x1=e,t.y1=r/u,t.eachBefore(n(r,u)),o&&t.eachBefore(N_),t}function n(t,n){return function(e){e.children&&D_(e,e.x0,t*(e.depth+1)/n,e.x1,t*(e.depth+2)/n);var r=e.x0,o=e.y0,u=e.x1-i,a=e.y1-i;r>u&&(r=u=(r+u)/2),o>a&&(o=a=(o+a)/2),e.x0=r,e.y0=o,e.x1=u,e.y1=a}}var e=1,r=1,i=0,o=!1;return t.round=function(n){return arguments.length?(o=!!n,t):o},t.size=function(n){return arguments.length?(e=+n[0],r=+n[1],t):[e,r]},t.padding=function(n){return arguments.length?(i=+n,t):i},t},I_="$",z_={depth:-1},R_={},q_=function(){function t(t){var r,i,o,u,a,s,c,f=t.length,h=new Array(f),l={};for(i=0;f>i;++i)r=t[i],a=h[i]=new Eo(r),null!=(s=n(r,i,t))&&(s+="")&&(c=I_+(a.id=s),l[c]=c in l?R_:a);for(i=0;f>i;++i)if(a=h[i],s=e(t[i],i,t),null!=s&&(s+="")){if(u=l[I_+s],!u)throw new Error("missing: "+s);if(u===R_)throw new Error("ambiguous: "+s);u.children?u.children.push(a):u.children=[a],a.parent=u}else{if(o)throw new Error("multiple roots");o=a}if(!o)throw new Error("no root");if(o.parent=z_,o.eachBefore(function(t){t.depth=t.parent.depth+1,--f}).eachBefore(Mo),o.parent=null,f>0)throw new Error("cycle");return o}var n=Go,e=Yo;return t.id=function(e){return arguments.length?(n=qo(e),t):n},t.parentId=function(n){return arguments.length?(e=qo(n),t):e},t};Qo.prototype=Object.create(Eo.prototype);var B_=function(){function t(t){var r=tu(t);if(r.eachAfter(n),r.parent.m=-r.z,r.eachBefore(e),s)t.eachBefore(i);else{var c=t,f=t,h=t;t.eachBefore(function(t){t.x<c.x&&(c=t),t.x>f.x&&(f=t),t.depth>h.depth&&(h=t)});var l=c===f?1:o(c,f)/2,p=l-c.x,d=u/(f.x+l+p),g=a/(h.depth||1);t.eachBefore(function(t){t.x=(t.x+p)*d,t.y=t.depth*g})}return t}function n(t){var n=t.children,e=t.parent.children,i=t.i?e[t.i-1]:null;if(n){Ko(t);var u=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+o(t._,i._),t.m=t.z-u):t.z=u}else i&&(t.z=i.z+o(t._,i._));t.parent.A=r(t,i,t.parent.A||e[0])}function e(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function r(t,n,e){if(n){for(var r,i=t,u=t,a=n,s=i.parent.children[0],c=i.m,f=u.m,h=a.m,l=s.m;a=$o(a),i=Ho(i),a&&i;)s=Ho(s),u=$o(u),u.a=t,r=a.z+h-i.z-c+o(a._,i._),r>0&&(Zo(Jo(a,t,e),t,r),c+=r,f+=r),h+=a.m,c+=i.m,l+=s.m,f+=u.m;a&&!$o(u)&&(u.t=a,u.m+=h-f),i&&!Ho(s)&&(s.t=i,s.m+=c-l,e=t)}return e}function i(t){t.x*=u,t.y=t.depth*a}var o=Xo,u=1,a=1,s=null;return t.separation=function(n){return arguments.length?(o=n,t):o},t.size=function(n){return arguments.length?(s=!1,u=+n[0],a=+n[1],t):s?null:[u,a]},t.nodeSize=function(n){return arguments.length?(s=!0,u=+n[0],a=+n[1],t):s?[u,a]:null},t},F_=function(t,n,e,r,i){for(var o,u=t.children,a=-1,s=u.length,c=t.value&&(i-e)/t.value;++a<s;)o=u[a],o.x0=n,o.x1=r,o.y0=e,o.y1=e+=o.value*c},U_=(1+Math.sqrt(5))/2,V_=function qw(t){function n(n,e,r,i,o){nu(t,n,e,r,i,o)}return n.ratio=function(t){return qw((t=+t)>1?t:1)},n}(U_),W_=function(){function t(t){return t.x0=t.y0=0,t.x1=i,t.y1=o,t.eachBefore(n),u=[0],r&&t.eachBefore(N_),t}function n(t){var n=u[t.depth],r=t.x0+n,i=t.y0+n,o=t.x1-n,l=t.y1-n;r>o&&(r=o=(r+o)/2),i>l&&(i=l=(i+l)/2),t.x0=r,t.y0=i,t.x1=o,t.y1=l,t.children&&(n=u[t.depth+1]=a(t)/2,r+=h(t)-n,i+=s(t)-n,o-=c(t)-n,l-=f(t)-n,r>o&&(r=o=(r+o)/2),i>l&&(i=l=(i+l)/2),e(t,r,i,o,l))}var e=V_,r=!1,i=1,o=1,u=[0],a=Bo,s=Bo,c=Bo,f=Bo,h=Bo;return t.round=function(n){return arguments.length?(r=!!n,t):r},t.size=function(n){return arguments.length?(i=+n[0],o=+n[1],t):[i,o]},t.tile=function(n){return arguments.length?(e=qo(n),t):e},t.padding=function(n){return arguments.length?t.paddingInner(n).paddingOuter(n):t.paddingInner()},t.paddingInner=function(n){return arguments.length?(a="function"==typeof n?n:P_(+n),t):a},t.paddingOuter=function(n){return arguments.length?t.paddingTop(n).paddingRight(n).paddingBottom(n).paddingLeft(n):t.paddingTop()},t.paddingTop=function(n){return arguments.length?(s="function"==typeof n?n:P_(+n),t):s},t.paddingRight=function(n){return arguments.length?(c="function"==typeof n?n:P_(+n),t):c},t.paddingBottom=function(n){return arguments.length?(f="function"==typeof n?n:P_(+n),t):f},t.paddingLeft=function(n){return arguments.length?(h="function"==typeof n?n:P_(+n),t):h},t},G_=function(t,n,e,r,i){function o(t,n,e,r,i,u,a){if(t>=n-1){var c=s[t];return c.x0=r,c.y0=i,c.x1=u,c.y1=a,void 0}for(var h=f[t],l=e/2+h,p=t+1,d=n-1;d>p;){var g=p+d>>>1;f[g]<l?p=g+1:d=g}var v=f[p]-h,y=e-v;if(a-i>u-r){var _=(i*y+a*v)/e;o(t,p,v,r,i,u,_),o(p,n,y,r,_,u,a)}else{var m=(r*y+u*v)/e;o(t,p,v,r,i,m,a),o(p,n,y,m,i,u,a)}}var u,a,s=t.children,c=s.length,f=new Array(c+1);for(f[0]=a=u=0;c>u;++u)f[u+1]=a+=s[u].value;o(0,c,t.value,n,e,r,i)},Y_=function(t,n,e,r,i){(1&t.depth?F_:D_)(t,n,e,r,i)},X_=function Bw(t){function n(n,e,r,i,o){if((u=n._squarify)&&u.ratio===t)for(var u,a,s,c,f,h=-1,l=u.length,p=n.value;++h<l;){for(a=u[h],s=a.children,c=a.value=0,f=s.length;f>c;++c)a.value+=s[c].value;a.dice?D_(a,e,r,i,r+=(o-r)*a.value/p):F_(a,e,r,e+=(i-e)*a.value/p,o),p-=a.value}else n._squarify=u=nu(t,n,e,r,i,o),u.ratio=t}return n.ratio=function(t){return Bw((t=+t)>1?t:1)},n}(U_),H_=function(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++e<r;)n=i,i=t[e],o+=n[1]*i[0]-n[0]*i[1];return o/2},$_=function(t){for(var n,e,r=-1,i=t.length,o=0,u=0,a=t[i-1],s=0;++r<i;)n=a,a=t[r],s+=e=n[0]*a[1]-a[0]*n[1],o+=(n[0]+a[0])*e,u+=(n[1]+a[1])*e;return s*=3,[o/s,u/s]},Z_=function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])},K_=function(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;e>n;++n)r[n]=[+t[n][0],+t[n][1],n];for(r.sort(eu),n=0;e>n;++n)i[n]=[r[n][0],-r[n][1]];var o=ru(r),u=ru(i),a=u[0]===o[0],s=u[u.length-1]===o[o.length-1],c=[];for(n=o.length-1;n>=0;--n)c.push(t[r[o[n]][2]]);for(n=+a;n<u.length-s;++n)c.push(t[r[u[n]][2]]);return c},J_=function(t,n){for(var e,r,i=t.length,o=t[i-1],u=n[0],a=n[1],s=o[0],c=o[1],f=!1,h=0;i>h;++h)o=t[h],e=o[0],r=o[1],r>a!=c>a&&(s-e)*(a-r)/(c-r)+e>u&&(f=!f),s=e,c=r;return f},Q_=function(t){for(var n,e,r=-1,i=t.length,o=t[i-1],u=o[0],a=o[1],s=0;++r<i;)n=u,e=a,o=t[r],u=o[0],a=o[1],n-=u,e-=a,s+=Math.sqrt(n*n+e*e);return s},tm=[].slice,nm={};iu.prototype=fu.prototype={constructor:iu,defer:function(t){if("function"!=typeof t||this._call)throw new Error;if(null!=this._error)return this;var n=tm.call(arguments,1);return n.push(t),++this._waiting,this._tasks.push(n),ou(this),this},abort:function(){return null==this._error&&su(this,new Error("abort")),this},await:function(t){if("function"!=typeof t||this._call)throw new Error;return this._call=function(n,e){t.apply(null,[n].concat(e))},cu(this),this},awaitAll:function(t){if("function"!=typeof t||this._call)throw new Error;return this._call=t,cu(this),this}};var em=function(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return Math.random()*n+t}},rm=function(t,n){var e,r;return t=null==t?0:+t,n=null==n?1:+n,function(){var i;if(null!=e)i=e,e=null;else do e=2*Math.random()-1,i=2*Math.random()-1,r=e*e+i*i;while(!r||r>1);return t+n*i*Math.sqrt(-2*Math.log(r)/r)}},im=function(){var t=rm.apply(this,arguments);return function(){return Math.exp(t())}},om=function(t){return function(){for(var n=0,e=0;t>e;++e)n+=Math.random();return n}},um=function(t){var n=om(t);return function(){return n()/t}},am=function(t){return function(){return-Math.log(1-Math.random())/t}},sm=function(t,n){function e(t){var n,e=c.status;if(!e&&lu(c)||e>=200&&300>e||304===e){if(o)try{n=o.call(r,c)}catch(i){return void a.call("error",r,i)}else n=c;a.call("load",r,n)}else a.call("error",r,t)}var r,i,o,u,a=p("beforesend","progress","load","error"),s=Be(),c=new XMLHttpRequest,f=null,h=null,l=0;if("undefined"==typeof XDomainRequest||"withCredentials"in c||!/^(http(s)?:)?\/\//.test(t)||(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=c.ontimeout=e:c.onreadystatechange=function(t){c.readyState>3&&e(t)},c.onprogress=function(t){a.call("progress",r,t)},r={header:function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?s.get(t):(null==n?s.remove(t):s.set(t,n+""),r)},mimeType:function(t){return arguments.length?(i=null==t?null:t+"",r):i},responseType:function(t){return arguments.length?(u=t,r):u},timeout:function(t){return arguments.length?(l=+t,r):l},user:function(t){return arguments.length<1?f:(f=null==t?null:t+"",r)},password:function(t){return arguments.length<1?h:(h=null==t?null:t+"",r)},response:function(t){return o=t,r},get:function(t,n){return r.send("GET",t,n)},post:function(t,n){return r.send("POST",t,n)},send:function(n,e,o){return c.open(n,t,!0,f,h),null==i||s.has("accept")||s.set("accept",i+",*/*"),c.setRequestHeader&&s.each(function(t,n){c.setRequestHeader(n,t)}),null!=i&&c.overrideMimeType&&c.overrideMimeType(i),null!=u&&(c.responseType=u),l>0&&(c.timeout=l),null==o&&"function"==typeof e&&(o=e,e=null),null!=o&&1===o.length&&(o=hu(o)),null!=o&&r.on("error",o).on("load",function(t){o(null,t)}),a.call("beforesend",r,c),c.send(null==e?null:e),r},abort:function(){return c.abort(),r},on:function(){var t=a.on.apply(a,arguments);return t===a?r:t}},null!=n){if("function"!=typeof n)throw new Error("invalid callback: "+n);return r.get(n)}return r},cm=function(t,n){return function(e,r){var i=sm(e).mimeType(t).response(n);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return i.get(r)}return i}},fm=cm("text/html",function(t){return document.createRange().createContextualFragment(t.responseText)}),hm=cm("application/json",function(t){return JSON.parse(t.responseText)}),lm=cm("text/plain",function(t){return t.responseText}),pm=cm("application/xml",function(t){var n=t.responseXML;if(!n)throw new Error("parse error");return n}),dm=function(t,n){return function(e,r,i){arguments.length<3&&(i=r,r=null);var o=sm(e).mimeType(t);return o.row=function(t){return arguments.length?o.response(pu(n,r=t)):r},o.row(r),i?o.get(i):o}},gm=dm("text/csv",Ud),vm=dm("text/tab-separated-values",Xd),ym=Array.prototype,_m=ym.map,mm=ym.slice,bm={name:"implicit"},xm=function(t){return function(){return t}},wm=function(t){return+t},km=[0,1],Mm=function(n,r,i){var o,u=n[0],a=n[n.length-1],s=e(u,a,null==r?10:r);switch(i=Pg(null==i?",f":i),i.type){case"s":var c=Math.max(Math.abs(u),Math.abs(a));return null!=i.precision||isNaN(o=Ig(s,c))||(i.precision=o),t.formatPrefix(i,c);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=zg(s,Math.max(Math.abs(u),Math.abs(a))))||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=jg(s))||(i.precision=o-2*("%"===i.type))}return t.format(i)},Em=function(t,n){t=t.slice();var e,r=0,i=t.length-1,o=t[r],u=t[i];return o>u&&(e=r,r=i,i=e,e=o,o=u,u=e),t[r]=n.floor(o),t[i]=n.ceil(u),t},Am=new Date,Sm=new Date,Tm=Fu(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});Tm.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Fu(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):Tm:null};var Cm=Tm.range,Om=1e3,Pm=6e4,Lm=36e5,Nm=864e5,Dm=6048e5,jm=Fu(function(t){t.setTime(Math.floor(t/Om)*Om)},function(t,n){t.setTime(+t+n*Om)},function(t,n){return(n-t)/Om},function(t){return t.getUTCSeconds()}),Im=jm.range,zm=Fu(function(t){t.setTime(Math.floor(t/Pm)*Pm)},function(t,n){t.setTime(+t+n*Pm)},function(t,n){return(n-t)/Pm},function(t){return t.getMinutes()}),Rm=zm.range,qm=Fu(function(t){var n=t.getTimezoneOffset()*Pm%Lm;0>n&&(n+=Lm),t.setTime(Math.floor((+t-n)/Lm)*Lm+n)},function(t,n){t.setTime(+t+n*Lm)},function(t,n){return(n-t)/Lm},function(t){return t.getHours()}),Bm=qm.range,Fm=Fu(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Pm)/Nm},function(t){return t.getDate()-1}),Um=Fm.range,Vm=Uu(0),Wm=Uu(1),Gm=Uu(2),Ym=Uu(3),Xm=Uu(4),Hm=Uu(5),$m=Uu(6),Zm=Vm.range,Km=Wm.range,Jm=Gm.range,Qm=Ym.range,tb=Xm.range,nb=Hm.range,eb=$m.range,rb=Fu(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),ib=rb.range,ob=Fu(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});ob.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Fu(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};var ub=ob.range,ab=Fu(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*Pm)},function(t,n){return(n-t)/Pm},function(t){return t.getUTCMinutes()}),sb=ab.range,cb=Fu(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*Lm)},function(t,n){return(n-t)/Lm},function(t){return t.getUTCHours()}),fb=cb.range,hb=Fu(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/Nm},function(t){return t.getUTCDate()-1}),lb=hb.range,pb=Vu(0),db=Vu(1),gb=Vu(2),vb=Vu(3),yb=Vu(4),_b=Vu(5),mb=Vu(6),bb=pb.range,xb=db.range,wb=gb.range,kb=vb.range,Mb=yb.range,Eb=_b.range,Ab=mb.range,Sb=Fu(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),Tb=Sb.range,Cb=Fu(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Cb.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Fu(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};var Ob,Pb=Cb.range,Lb={"-":"",_:" ",0:"0"},Nb=/^\s*\d+/,Db=/^%/,jb=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;Fa({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Ib="%Y-%m-%dT%H:%M:%S.%LZ",zb=Date.prototype.toISOString?Ua:t.utcFormat(Ib),Rb=+new Date("2000-01-01T00:00:00.000Z")?Va:t.utcParse(Ib),qb=1e3,Bb=60*qb,Fb=60*Bb,Ub=24*Fb,Vb=7*Ub,Wb=30*Ub,Gb=365*Ub,Yb=function(){return Ya(ob,rb,Vm,Fm,qm,zm,jm,Tm,t.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},Xb=function(){return Ya(Cb,Sb,pb,hb,cb,ab,jm,Tm,t.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},Hb=function(t){return t.match(/.{6}/g).map(function(t){return"#"+t})},$b=Hb("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Zb=Hb("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),Kb=Hb("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),Jb=Hb("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),Qb=Il(Gt(300,.5,0),Gt(-240,.5,1)),tx=Il(Gt(-100,.75,.35),Gt(80,1.5,.8)),nx=Il(Gt(260,.75,.35),Gt(80,1.5,.8)),ex=Gt(),rx=function(t){(0>t||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return ex.h=360*t-100,ex.s=1.5-1.5*n,ex.l=.8-.9*n,ex+""},ix=Xa(Hb("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),ox=Xa(Hb("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),ux=Xa(Hb("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ax=Xa(Hb("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),sx=function(t){return function(){return t}},cx=1e-12,fx=Math.PI,hx=fx/2,lx=2*fx,px=function(){function t(){var t,c,f=+n.apply(this,arguments),h=+e.apply(this,arguments),l=o.apply(this,arguments)-hx,p=u.apply(this,arguments)-hx,d=Math.abs(p-l),g=p>l;if(s||(s=t=Ne()),f>h&&(c=h,h=f,f=c),h>cx)if(d>lx-cx)s.moveTo(h*Math.cos(l),h*Math.sin(l)),s.arc(0,0,h,l,p,!g),f>cx&&(s.moveTo(f*Math.cos(p),f*Math.sin(p)),s.arc(0,0,f,p,l,g));else{var v,y,_=l,m=p,b=l,x=p,w=d,k=d,M=a.apply(this,arguments)/2,E=M>cx&&(i?+i.apply(this,arguments):Math.sqrt(f*f+h*h)),A=Math.min(Math.abs(h-f)/2,+r.apply(this,arguments)),S=A,T=A;if(E>cx){var C=ts(E/f*Math.sin(M)),O=ts(E/h*Math.sin(M));(w-=2*C)>cx?(C*=g?1:-1,b+=C,x-=C):(w=0,b=x=(l+p)/2),(k-=2*O)>cx?(O*=g?1:-1,_+=O,m-=O):(k=0,_=m=(l+p)/2)}var P=h*Math.cos(_),L=h*Math.sin(_),N=f*Math.cos(x),D=f*Math.sin(x);if(A>cx){var j=h*Math.cos(m),I=h*Math.sin(m),z=f*Math.cos(b),R=f*Math.sin(b);if(fx>d){var q=w>cx?ns(P,L,z,R,j,I,N,D):[N,D],B=P-q[0],F=L-q[1],U=j-q[0],V=I-q[1],W=1/Math.sin(Math.acos((B*U+F*V)/(Math.sqrt(B*B+F*F)*Math.sqrt(U*U+V*V)))/2),G=Math.sqrt(q[0]*q[0]+q[1]*q[1]);S=Math.min(A,(f-G)/(W-1)),T=Math.min(A,(h-G)/(W+1))}}k>cx?T>cx?(v=es(z,R,P,L,h,T,g),y=es(j,I,N,D,h,T,g),s.moveTo(v.cx+v.x01,v.cy+v.y01),A>T?s.arc(v.cx,v.cy,T,Math.atan2(v.y01,v.x01),Math.atan2(y.y01,y.x01),!g):(s.arc(v.cx,v.cy,T,Math.atan2(v.y01,v.x01),Math.atan2(v.y11,v.x11),!g),s.arc(0,0,h,Math.atan2(v.cy+v.y11,v.cx+v.x11),Math.atan2(y.cy+y.y11,y.cx+y.x11),!g),s.arc(y.cx,y.cy,T,Math.atan2(y.y11,y.x11),Math.atan2(y.y01,y.x01),!g))):(s.moveTo(P,L),s.arc(0,0,h,_,m,!g)):s.moveTo(P,L),f>cx&&w>cx?S>cx?(v=es(N,D,j,I,f,-S,g),y=es(P,L,z,R,f,-S,g),s.lineTo(v.cx+v.x01,v.cy+v.y01),A>S?s.arc(v.cx,v.cy,S,Math.atan2(v.y01,v.x01),Math.atan2(y.y01,y.x01),!g):(s.arc(v.cx,v.cy,S,Math.atan2(v.y01,v.x01),Math.atan2(v.y11,v.x11),!g),s.arc(0,0,f,Math.atan2(v.cy+v.y11,v.cx+v.x11),Math.atan2(y.cy+y.y11,y.cx+y.x11),g),s.arc(y.cx,y.cy,S,Math.atan2(y.y11,y.x11),Math.atan2(y.y01,y.x01),!g))):s.arc(0,0,f,x,b,g):s.lineTo(N,D)}else s.moveTo(0,0);return s.closePath(),t?(s=null,t+""||null):void 0}var n=$a,e=Za,r=sx(0),i=null,o=Ka,u=Ja,a=Qa,s=null;return t.centroid=function(){var t=(+n.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +u.apply(this,arguments))/2-fx/2;return[Math.cos(r)*t,Math.sin(r)*t]},t.innerRadius=function(e){return arguments.length?(n="function"==typeof e?e:sx(+e),t):n},t.outerRadius=function(n){return arguments.length?(e="function"==typeof n?n:sx(+n),t):e},t.cornerRadius=function(n){return arguments.length?(r="function"==typeof n?n:sx(+n),t):r},t.padRadius=function(n){return arguments.length?(i=null==n?null:"function"==typeof n?n:sx(+n),t):i},t.startAngle=function(n){return arguments.length?(o="function"==typeof n?n:sx(+n),t):o},t.endAngle=function(n){return arguments.length?(u="function"==typeof n?n:sx(+n),t):u},t.padAngle=function(n){return arguments.length?(a="function"==typeof n?n:sx(+n),t):a},t.context=function(n){return arguments.length?(s=null==n?null:n,t):s},t};rs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var dx=function(t){return new rs(t)},gx=function(){function t(t){var a,s,c,f=t.length,h=!1;for(null==i&&(u=o(c=Ne())),a=0;f>=a;++a)!(f>a&&r(s=t[a],a,t))===h&&((h=!h)?u.lineStart():u.lineEnd()),h&&u.point(+n(s,a,t),+e(s,a,t));return c?(u=null,c+""||null):void 0}var n=is,e=os,r=sx(!0),i=null,o=dx,u=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:sx(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:sx(+n),t):e},t.defined=function(n){return arguments.length?(r="function"==typeof n?n:sx(!!n),t):r},t.curve=function(n){return arguments.length?(o=n,null!=i&&(u=o(i)),t):o},t.context=function(n){return arguments.length?(null==n?i=u=null:u=o(i=n),t):i},t},vx=function(){function t(t){var n,f,h,l,p,d=t.length,g=!1,v=new Array(d),y=new Array(d);for(null==a&&(c=s(p=Ne())),n=0;d>=n;++n){if(!(d>n&&u(l=t[n],n,t))===g)if(g=!g)f=n,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),h=n-1;h>=f;--h)c.point(v[h],y[h]);c.lineEnd(),c.areaEnd()}g&&(v[n]=+e(l,n,t),y[n]=+i(l,n,t),c.point(r?+r(l,n,t):v[n],o?+o(l,n,t):y[n]))}return p?(c=null,p+""||null):void 0}function n(){return gx().defined(u).curve(s).context(a)}var e=is,r=null,i=sx(0),o=os,u=sx(!0),a=null,s=dx,c=null;return t.x=function(n){return arguments.length?(e="function"==typeof n?n:sx(+n),r=null,t):e},t.x0=function(n){return arguments.length?(e="function"==typeof n?n:sx(+n),t):e},t.x1=function(n){return arguments.length?(r=null==n?null:"function"==typeof n?n:sx(+n),t):r},t.y=function(n){return arguments.length?(i="function"==typeof n?n:sx(+n),o=null,t):i},t.y0=function(n){return arguments.length?(i="function"==typeof n?n:sx(+n),t):i},t.y1=function(n){return arguments.length?(o=null==n?null:"function"==typeof n?n:sx(+n),t):o},t.lineX0=t.lineY0=function(){return n().x(e).y(i)},t.lineY1=function(){return n().x(e).y(o)},t.lineX1=function(){return n().x(r).y(i)},t.defined=function(n){return arguments.length?(u="function"==typeof n?n:sx(!!n),t):u},t.curve=function(n){return arguments.length?(s=n,null!=a&&(c=s(a)),t):s},t.context=function(n){return arguments.length?(null==n?a=c=null:c=s(a=n),t):a},t},yx=function(t,n){return t>n?-1:n>t?1:n>=t?0:0/0},_x=function(t){return t},mx=function(){function t(t){var a,s,c,f,h,l=t.length,p=0,d=new Array(l),g=new Array(l),v=+i.apply(this,arguments),y=Math.min(lx,Math.max(-lx,o.apply(this,arguments)-v)),_=Math.min(Math.abs(y)/l,u.apply(this,arguments)),m=_*(0>y?-1:1);for(a=0;l>a;++a)(h=g[d[a]=a]=+n(t[a],a,t))>0&&(p+=h);for(null!=e?d.sort(function(t,n){return e(g[t],g[n])}):null!=r&&d.sort(function(n,e){return r(t[n],t[e])}),a=0,c=p?(y-l*m)/p:0;l>a;++a,v=f)s=d[a],h=g[s],f=v+(h>0?h*c:0)+m,g[s]={data:t[s],index:a,value:h,startAngle:v,endAngle:f,padAngle:_};return g}var n=_x,e=yx,r=null,i=sx(0),o=sx(lx),u=sx(0);return t.value=function(e){return arguments.length?(n="function"==typeof e?e:sx(+e),t):n},t.sortValues=function(n){return arguments.length?(e=n,r=null,t):e},t.sort=function(n){return arguments.length?(r=n,e=null,t):r},t.startAngle=function(n){return arguments.length?(i="function"==typeof n?n:sx(+n),t):i},t.endAngle=function(n){return arguments.length?(o="function"==typeof n?n:sx(+n),t):o},t.padAngle=function(n){return arguments.length?(u="function"==typeof n?n:sx(+n),t):u},t},bx=as(dx);us.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var xx=function(){return ss(gx().curve(bx))},wx=function(){var t=vx().curve(bx),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return ss(e())},delete t.lineX0,t.lineEndAngle=function(){return ss(r())},delete t.lineX1,t.lineInnerRadius=function(){return ss(i())},delete t.lineY0,t.lineOuterRadius=function(){return ss(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(as(t)):n()._curve},t},kx={draw:function(t,n){var e=Math.sqrt(n/fx);t.moveTo(e,0),t.arc(0,0,e,0,lx)}},Mx={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},Ex=Math.sqrt(1/3),Ax=2*Ex,Sx={draw:function(t,n){var e=Math.sqrt(n/Ax),r=e*Ex;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},Tx=.8908130915292852,Cx=Math.sin(fx/10)/Math.sin(7*fx/10),Ox=Math.sin(lx/10)*Cx,Px=-Math.cos(lx/10)*Cx,Lx={draw:function(t,n){var e=Math.sqrt(n*Tx),r=Ox*e,i=Px*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;5>o;++o){var u=lx*o/5,a=Math.cos(u),s=Math.sin(u);t.lineTo(s*e,-a*e),t.lineTo(a*r-s*i,s*r+a*i)}t.closePath()}},Nx={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}},Dx=Math.sqrt(3),jx={draw:function(t,n){var e=-Math.sqrt(n/(3*Dx));t.moveTo(0,2*e),t.lineTo(-Dx*e,-e),t.lineTo(Dx*e,-e),t.closePath()}},Ix=-.5,zx=Math.sqrt(3)/2,Rx=1/Math.sqrt(12),qx=3*(Rx/2+1),Bx={draw:function(t,n){var e=Math.sqrt(n/qx),r=e/2,i=e*Rx,o=r,u=e*Rx+e,a=-o,s=u;
t.moveTo(r,i),t.lineTo(o,u),t.lineTo(a,s),t.lineTo(Ix*r-zx*i,zx*r+Ix*i),t.lineTo(Ix*o-zx*u,zx*o+Ix*u),t.lineTo(Ix*a-zx*s,zx*a+Ix*s),t.lineTo(Ix*r+zx*i,Ix*i-zx*r),t.lineTo(Ix*o+zx*u,Ix*u-zx*o),t.lineTo(Ix*a+zx*s,Ix*s-zx*a),t.closePath()}},Fx=[kx,Mx,Sx,Nx,Lx,jx,Bx],Ux=function(){function t(){var t;return r||(r=t=Ne()),n.apply(this,arguments).draw(r,+e.apply(this,arguments)),t?(r=null,t+""||null):void 0}var n=sx(kx),e=sx(64),r=null;return t.type=function(e){return arguments.length?(n="function"==typeof e?e:sx(e),t):n},t.size=function(n){return arguments.length?(e="function"==typeof n?n:sx(+n),t):e},t.context=function(n){return arguments.length?(r=null==n?null:n,t):r},t},Vx=function(){};fs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x0=this._x1=this._y0=this._y1=0/0,this._point=0},lineEnd:function(){switch(this._point){case 3:cs(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:cs(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Wx=function(t){return new fs(t)};hs.prototype={areaStart:Vx,areaEnd:Vx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=0/0,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:cs(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Gx=function(t){return new hs(t)};ls.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x0=this._x1=this._y0=this._y1=0/0,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:cs(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Yx=function(t){return new ls(t)};ps.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],u=t[e]-i,a=n[e]-o,s=-1;++s<=e;)r=s/e,this._basis.point(this._beta*t[s]+(1-this._beta)*(i+r*u),this._beta*n[s]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var Xx=function Fw(t){function n(n){return 1===t?new fs(n):new ps(n,t)}return n.beta=function(t){return Fw(+t)},n}(.85);gs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=0/0,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ds(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:ds(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Hx=function Uw(t){function n(n){return new gs(n,t)}return n.tension=function(t){return Uw(+t)},n}(0);vs.prototype={areaStart:Vx,areaEnd:Vx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=0/0,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:ds(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var $x=function Vw(t){function n(n){return new vs(n,t)}return n.tension=function(t){return Vw(+t)},n}(0);ys.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=0/0,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ds(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Zx=function Ww(t){function n(n){return new ys(n,t)}return n.tension=function(t){return Ww(+t)},n}(0);ms.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=0/0,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:_s(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Kx=function Gw(t){function n(n){return t?new ms(n,t):new gs(n,0)}return n.alpha=function(t){return Gw(+t)},n}(.5);bs.prototype={areaStart:Vx,areaEnd:Vx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=0/0,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:_s(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Jx=function Yw(t){function n(n){return t?new bs(n,t):new vs(n,0)}return n.alpha=function(t){return Yw(+t)},n}(.5);xs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=0/0,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_s(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Qx=function Xw(t){function n(n){return t?new xs(n,t):new ys(n,0)}return n.alpha=function(t){return Xw(+t)},n}(.5);ws.prototype={areaStart:Vx,areaEnd:Vx,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}};var tw=function(t){return new ws(t)};Ss.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=0/0,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:As(this,this._t0,Es(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=0/0;if(t=+t,n=+n,t!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,As(this,Es(this,e=Ms(this,t,n)),e);break;default:As(this,this._t0,e=Ms(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(Ts.prototype=Object.create(Ss.prototype)).point=function(t,n){Ss.prototype.point.call(this,n,t)},Cs.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},Ls.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=Ns(t),i=Ns(n),o=0,u=1;e>u;++o,++u)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[u],n[u]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var nw=function(t){return new Ls(t)};Ds.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=0/0},lineStart:function(){this._x=this._y=0/0,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var ew=function(t){return new Ds(t,.5)},rw=Array.prototype.slice,iw=function(t,n){if((r=t.length)>1)for(var e,r,i=1,o=t[n[0]],u=o.length;r>i;++i){e=o,o=t[n[i]];for(var a=0;u>a;++a)o[a][1]+=o[a][0]=isNaN(e[a][1])?e[a][0]:e[a][1]}},ow=function(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e},uw=function(){function t(t){var o,u,a=n.apply(this,arguments),s=t.length,c=a.length,f=new Array(c);for(o=0;c>o;++o){for(var h,l=a[o],p=f[o]=new Array(s),d=0;s>d;++d)p[d]=h=[0,+i(t[d],l,d,t)],h.data=t[d];p.key=l}for(o=0,u=e(f);c>o;++o)f[u[o]].index=o;return r(f,u),f}var n=sx([]),e=ow,r=iw,i=zs;return t.keys=function(e){return arguments.length?(n="function"==typeof e?e:sx(rw.call(e)),t):n},t.value=function(n){return arguments.length?(i="function"==typeof n?n:sx(+n),t):i},t.order=function(n){return arguments.length?(e=null==n?ow:"function"==typeof n?n:sx(rw.call(n)),t):e},t.offset=function(n){return arguments.length?(r=null==n?iw:n,t):r},t},aw=function(t,n){if((r=t.length)>0){for(var e,r,i,o=0,u=t[0].length;u>o;++o){for(i=e=0;r>e;++e)i+=t[e][o][1]||0;if(i)for(e=0;r>e;++e)t[e][o][1]/=i}iw(t,n)}},sw=function(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;o>r;++r){for(var u=0,a=0;e>u;++u)a+=t[u][r][1]||0;i[r][1]+=i[r][0]=-a/2}iw(t,n)}},cw=function(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,u=1;r>u;++u){for(var a=0,s=0,c=0;i>a;++a){for(var f=t[n[a]],h=f[u][1]||0,l=f[u-1][1]||0,p=(h-l)/2,d=0;a>d;++d){var g=t[n[d]],v=g[u][1]||0,y=g[u-1][1]||0;p+=v-y}s+=h,c+=p*h}e[u-1][1]+=e[u-1][0]=o,s&&(o-=c/s)}e[u-1][1]+=e[u-1][0]=o,iw(t,n)}},fw=function(t){var n=t.map(Rs);return ow(t).sort(function(t,e){return n[t]-n[e]})},hw=function(t){return fw(t).reverse()},lw=function(t){var n,e,r=t.length,i=t.map(Rs),o=ow(t).sort(function(t,n){return i[n]-i[t]}),u=0,a=0,s=[],c=[];for(n=0;r>n;++n)e=o[n],a>u?(u+=i[e],s.push(e)):(a+=i[e],c.push(e));return c.reverse().concat(s)},pw=function(t){return ow(t).reverse()},dw=function(t){return function(){return t}};Fs.prototype={constructor:Fs,insert:function(t,n){var e,r,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;e=t}else this._?(t=Gs(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)r=e.U,e===r.L?(i=r.R,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(Vs(this,e),t=e,e=t.U),e.C=!1,r.C=!0,Ws(this,r))):(i=r.L,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(Ws(this,e),t=e,e=t.U),e.C=!1,r.C=!0,Vs(this,r))),e=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,e,r,i=t.U,o=t.L,u=t.R;if(e=o?u?Gs(u):o:u,i?i.L===t?i.L=e:i.R=e:this._=e,o&&u?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==u?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=u,u.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r){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,Vs(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,Ws(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,Vs(this,i),t=this._;break}}else if(n=i.L,n.C&&(n.C=!1,i.C=!0,Ws(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,Vs(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,Ws(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var gw,vw,yw,_w,mw,bw=[],xw=[],ww=1e-6,kw=1e-12;vc.prototype={constructor:vc,polygons:function(){var t=this.edges;return this.cells.map(function(n){var e=n.halfedges.map(function(e){return tc(n,t[e])});return e.data=n.site.data,e})},triangles:function(){var t=[],n=this.edges;return this.cells.forEach(function(e,r){if(o=(i=e.halfedges).length)for(var i,o,u,a=e.site,s=-1,c=n[i[o-1]],f=c.left===a?c.right:c.left;++s<o;)u=f,c=n[i[s]],f=c.left===a?c.right:c.left,u&&f&&r<u.index&&r<f.index&&dc(a,u,f)<0&&t.push([a.data,u.data,f.data])}),t},links:function(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})},find:function(t,n,e){for(var r,i,o=this,u=o._found||0,a=o.cells.length;!(i=o.cells[u]);)if(++u>=a)return null;var s=t-i.site[0],c=n-i.site[1],f=s*s+c*c;do i=o.cells[r=u],u=null,i.halfedges.forEach(function(e){var r=o.edges[e],a=r.left;if(a!==i.site&&a||(a=r.right)){var s=t-a[0],c=n-a[1],h=s*s+c*c;f>h&&(f=h,u=a.index)}});while(null!==u);return o._found=r,null==e||e*e>=f?i.site:null}};var Mw=function(){function t(t){return new vc(t.map(function(r,i){var o=[Math.round(n(r,i,t)/ww)*ww,Math.round(e(r,i,t)/ww)*ww];return o.index=i,o.data=r,o}),r)}var n=qs,e=Bs,r=null;return t.polygons=function(n){return t(n).polygons()},t.links=function(n){return t(n).links()},t.triangles=function(n){return t(n).triangles()},t.x=function(e){return arguments.length?(n="function"==typeof e?e:dw(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:dw(+n),t):e},t.extent=function(n){return arguments.length?(r=null==n?null:[[+n[0][0],+n[0][1]],[+n[1][0],+n[1][1]]],t):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},t.size=function(n){return arguments.length?(r=null==n?null:[[0,0],[+n[0],+n[1]]],t):r&&[r[1][0]-r[0][0],r[1][1]-r[0][1]]},t},Ew=function(t){return function(){return t}};_c.prototype={constructor:_c,scale:function(t){return 1===t?this:new _c(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new _c(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Aw=new _c(1,0,0);mc.prototype=_c.prototype;var Sw=function(){t.event.preventDefault(),t.event.stopImmediatePropagation()},Tw=function(){function n(t){t.on("wheel.zoom",c).on("mousedown.zoom",f).on("dblclick.zoom",h).on("touchstart.zoom",l).on("touchmove.zoom",d).on("touchend.zoom touchcancel.zoom",g).style("-webkit-tap-highlight-color","rgba(0,0,0,0)").property("__zoom",kc)}function e(t,n){return n=Math.max(b,Math.min(x,n)),n===t.k?t:new _c(n,t.x,t.y)}function r(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new _c(t.k,r,i)}function i(t,n){var e=t.invertX(n[0][0])-w,r=t.invertX(n[1][0])-k,i=t.invertY(n[0][1])-M,o=t.invertY(n[1][1])-E;return t.translate(r>e?(e+r)/2:Math.min(0,e)||Math.max(0,r),o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o))}function o(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function u(t,n,e){t.on("start.zoom",function(){a(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){a(this,arguments).end()}).tween("zoom",function(){var t=this,r=arguments,i=a(t,r),u=m.apply(t,r),s=e||o(u),c=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),f=t.__zoom,h="function"==typeof n?n.apply(t,r):n,l=T(f.invert(s).concat(c/f.k),h.invert(s).concat(c/h.k));return function(t){if(1===t)t=h;else{var n=l(t),e=c/n[2];t=new _c(e,s[0]-n[0]*e,s[1]-n[1]*e)}i.zoom(null,t)}})}function a(t,n){for(var e,r=0,i=C.length;i>r;++r)if((e=C[r]).that===t)return e;return new s(t,n)}function s(t,n){this.that=t,this.args=n,this.index=-1,this.active=0,this.extent=m.apply(t,n)}function c(){function n(){o.wheel=null,o.end()}if(_.apply(this,arguments)){var o=a(this,arguments),u=this.__zoom,s=Math.max(b,Math.min(x,u.k*Math.pow(2,-t.event.deltaY*(t.event.deltaMode?120:1)/500))),c=Pf(this);if(o.wheel)(o.mouse[0][0]!==c[0]||o.mouse[0][1]!==c[1])&&(o.mouse[1]=u.invert(o.mouse[0]=c)),clearTimeout(o.wheel);else{if(u.k===s)return;o.mouse=[c,u.invert(c)],op(this),o.start()}Sw(),o.wheel=setTimeout(n,L),o.zoom("mouse",i(r(e(u,s),o.mouse[0],o.mouse[1]),o.extent))}}function f(){function n(){Sw(),o.moved=!0,o.zoom("mouse",i(r(o.that.__zoom,o.mouse[0]=Pf(o.that),o.mouse[1]),o.extent))}function e(){u.on("mousemove.zoom mouseup.zoom",null),vt(t.event.view,o.moved),Sw(),o.end()}if(!y&&_.apply(this,arguments)){var o=a(this,arguments),u=ph(t.event.view).on("mousemove.zoom",n,!0).on("mouseup.zoom",e,!0),s=Pf(this);_h(t.event.view),bc(),o.mouse=[s,this.__zoom.invert(s)],op(this),o.start()}}function h(){if(_.apply(this,arguments)){var o=this.__zoom,a=Pf(this),s=o.invert(a),c=o.k*(t.event.shiftKey?.5:2),f=i(r(e(o,c),a,s),m.apply(this,arguments));Sw(),A>0?ph(this).transition().duration(A).call(u,f,a):ph(this).call(n.transform,f)}}function l(){if(_.apply(this,arguments)){var n,e,r,i,o=a(this,arguments),u=t.event.changedTouches,s=u.length;for(bc(),e=0;s>e;++e)r=u[e],i=gh(this,u,r.identifier),i=[i,this.__zoom.invert(i),r.identifier],o.touch0?o.touch1||(o.touch1=i):(o.touch0=i,n=!0);return v&&(v=clearTimeout(v),!o.touch1)?(o.end(),i=ph(this).on("dblclick.zoom"),void(i&&i.apply(this,arguments))):void(n&&(v=setTimeout(function(){v=null},P),op(this),o.start()))}}function d(){var n,o,u,s,c=a(this,arguments),f=t.event.changedTouches,h=f.length;for(Sw(),v&&(v=clearTimeout(v)),n=0;h>n;++n)o=f[n],u=gh(this,f,o.identifier),c.touch0&&c.touch0[2]===o.identifier?c.touch0[0]=u:c.touch1&&c.touch1[2]===o.identifier&&(c.touch1[0]=u);if(o=c.that.__zoom,c.touch1){var l=c.touch0[0],p=c.touch0[1],d=c.touch1[0],g=c.touch1[1],y=(y=d[0]-l[0])*y+(y=d[1]-l[1])*y,_=(_=g[0]-p[0])*_+(_=g[1]-p[1])*_;o=e(o,Math.sqrt(y/_)),u=[(l[0]+d[0])/2,(l[1]+d[1])/2],s=[(p[0]+g[0])/2,(p[1]+g[1])/2]}else{if(!c.touch0)return;u=c.touch0[0],s=c.touch0[1]}c.zoom("touch",i(r(o,u,s),c.extent))}function g(){var n,e,r=a(this,arguments),i=t.event.changedTouches,o=i.length;for(bc(),y&&clearTimeout(y),y=setTimeout(function(){y=null},P),n=0;o>n;++n)e=i[n],r.touch0&&r.touch0[2]===e.identifier?delete r.touch0:r.touch1&&r.touch1[2]===e.identifier&&delete r.touch1;r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0||r.end()}var v,y,_=xc,m=wc,b=0,x=1/0,w=-x,k=x,M=w,E=k,A=250,T=Ol,C=[],O=p("start","zoom","end"),P=500,L=150;return n.transform=function(t,n){var e=t.selection?t.selection():t;e.property("__zoom",kc),t!==e?u(t,n):e.interrupt().each(function(){a(this,arguments).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()})},n.scaleBy=function(t,e){n.scaleTo(t,function(){var t=this.__zoom.k,n="function"==typeof e?e.apply(this,arguments):e;return t*n})},n.scaleTo=function(t,u){n.transform(t,function(){var t=m.apply(this,arguments),n=this.__zoom,a=o(t),s=n.invert(a),c="function"==typeof u?u.apply(this,arguments):u;return i(r(e(n,c),a,s),t)})},n.translateBy=function(t,e,r){n.transform(t,function(){return i(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof r?r.apply(this,arguments):r),m.apply(this,arguments))})},s.prototype={start:function(){return 1===++this.active&&(this.index=C.push(this)-1,this.emit("start")),this},zoom:function(t,n){return this.mouse&&"mouse"!==t&&(this.mouse[1]=n.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=n.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=n.invert(this.touch1[0])),this.that.__zoom=n,this.emit("zoom"),this},end:function(){return 0===--this.active&&(C.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(t){S(new yc(n,t,this.that.__zoom),O.apply,O,[t,this.that,this.args])}},n.filter=function(t){return arguments.length?(_="function"==typeof t?t:Ew(!!t),n):_},n.extent=function(t){return arguments.length?(m="function"==typeof t?t:Ew([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),n):m},n.scaleExtent=function(t){return arguments.length?(b=+t[0],x=+t[1],n):[b,x]},n.translateExtent=function(t){return arguments.length?(w=+t[0][0],k=+t[1][0],M=+t[0][1],E=+t[1][1],n):[[w,M],[k,E]]},n.duration=function(t){return arguments.length?(A=+t,n):A},n.interpolate=function(t){return arguments.length?(T=t,n):T},n.on=function(){var t=O.on.apply(O,arguments);return t===O?n:t},n};t.version=Mc,t.bisect=Tc,t.bisectRight=Tc,t.bisectLeft=Cc,t.ascending=Ec,t.bisector=Ac,t.descending=Oc,t.deviation=Nc,t.extent=Dc,t.histogram=Yc,t.thresholdFreedmanDiaconis=Hc,t.thresholdScott=$c,t.thresholdSturges=Gc,t.max=Zc,t.mean=Kc,t.median=Jc,t.merge=Qc,t.min=tf,t.pairs=nf,t.permute=ef,t.quantile=Xc,t.range=Bc,t.scan=rf,t.shuffle=of,t.sum=uf,t.ticks=Wc,t.tickStep=e,t.transpose=af,t.variance=Lc,t.zip=sf,t.axisTop=c,t.axisRight=f,t.axisBottom=h,t.axisLeft=l,t.brush=md,t.brushX=Te,t.brushY=Ce,t.brushSelection=Se,t.chord=Ad,t.ribbon=Nd,t.nest=jd,t.set=Ye,t.map=Be,t.keys=zd,t.values=Rd,t.entries=qd,t.color=kt,t.rgb=St,t.hsl=Pt,t.lab=jt,t.hcl=Ut,t.cubehelix=Gt,t.dispatch=p,t.drag=bh,t.dragDisable=_h,t.dragEnable=vt,t.dsvFormat=Bd,t.csvParse=Ud,t.csvParseRows=Vd,t.csvFormat=Wd,t.csvFormatRows=Gd,t.tsvParse=Xd,t.tsvParseRows=Hd,t.tsvFormat=$d,t.tsvFormatRows=Zd,t.easeLinear=ne,t.easeQuad=ie,t.easeQuadIn=ee,t.easeQuadOut=re,t.easeQuadInOut=ie,t.easeCubic=ae,t.easeCubicIn=oe,t.easeCubicOut=ue,t.easeCubicInOut=ae,t.easePoly=Pp,t.easePolyIn=Cp,t.easePolyOut=Op,t.easePolyInOut=Pp,t.easeSin=fe,t.easeSinIn=se,t.easeSinOut=ce,t.easeSinInOut=fe,t.easeExp=pe,t.easeExpIn=he,t.easeExpOut=le,t.easeExpInOut=pe,t.easeCircle=ve,t.easeCircleIn=de,t.easeCircleOut=ge,t.easeCircleInOut=ve,t.easeBounce=_e,t.easeBounceIn=ye,t.easeBounceOut=_e,t.easeBounceInOut=me,t.easeBack=Xp,t.easeBackIn=Gp,t.easeBackOut=Yp,t.easeBackInOut=Xp,t.easeElastic=Jp,t.easeElasticIn=Kp,t.easeElasticOut=Jp,t.easeElasticInOut=Qp,t.forceCenter=Kd,t.forceCollide=gg,t.forceLink=vg,t.forceManyBody=bg,t.forceSimulation=mg,t.forceX=xg,t.forceY=wg,t.formatDefaultLocale=lr,t.formatLocale=Dg,t.formatSpecifier=Pg,t.precisionFixed=jg,t.precisionPrefix=Ig,t.precisionRound=zg,t.geoArea=Vv,t.geoBounds=Yv,t.geoCentroid=Hv,t.geoCircle=cy,t.geoClipExtent=vy,t.geoDistance=wy,t.geoGraticule=gi,t.geoGraticule10=vi,t.geoInterpolate=ky,t.geoLength=my,t.geoPath=Vy,t.geoAlbers=n_,t.geoAlbersUsa=e_,t.geoAzimuthalEqualArea=i_,t.geoAzimuthalEqualAreaRaw=r_,t.geoAzimuthalEquidistant=u_,t.geoAzimuthalEquidistantRaw=o_,t.geoConicConformal=s_,t.geoConicConformalRaw=eo,t.geoConicEqualArea=t_,t.geoConicEqualAreaRaw=$i,t.geoConicEquidistant=f_,t.geoConicEquidistantRaw=io,t.geoEquirectangular=c_,t.geoEquirectangularRaw=ro,t.geoGnomonic=h_,t.geoGnomonicRaw=oo,t.geoIdentity=l_,t.geoProjection=Gi,t.geoProjectionMutator=Yi,t.geoMercator=a_,t.geoMercatorRaw=Qi,t.geoOrthographic=p_,t.geoOrthographicRaw=ao,t.geoStereographic=d_,t.geoStereographicRaw=so,t.geoTransverseMercator=g_,t.geoTransverseMercatorRaw=co,t.geoRotation=sy,t.geoStream=qv,t.geoTransform=$y,t.cluster=v_,t.hierarchy=bo,t.pack=L_,t.packSiblings=O_,t.packEnclose=C_,t.partition=j_,t.stratify=q_,t.tree=B_,t.treemap=W_,t.treemapBinary=G_,t.treemapDice=D_,t.treemapSlice=F_,t.treemapSliceDice=Y_,t.treemapSquarify=V_,t.treemapResquarify=X_,t.interpolate=ml,t.interpolateArray=ll,t.interpolateBasis=ul,t.interpolateBasisClosed=al,t.interpolateDate=pl,t.interpolateNumber=dl,t.interpolateObject=gl,t.interpolateRound=bl,t.interpolateString=_l,t.interpolateTransformCss=Ml,t.interpolateTransformSvg=El,t.interpolateZoom=Ol,t.interpolateRgb=cl,t.interpolateRgbBasis=fl,t.interpolateRgbBasisClosed=hl,t.interpolateHsl=Pl,t.interpolateHslLong=Ll,t.interpolateLab=fn,t.interpolateHcl=Nl,t.interpolateHclLong=Dl,t.interpolateCubehelix=jl,t.interpolateCubehelixLong=Il,t.quantize=zl,t.path=Ne,t.polygonArea=H_,t.polygonCentroid=$_,t.polygonHull=K_,t.polygonContains=J_,t.polygonLength=Q_,t.quadtree=nr,t.queue=fu,t.randomUniform=em,t.randomNormal=rm,t.randomLogNormal=im,t.randomBates=um,t.randomIrwinHall=om,t.randomExponential=am,t.request=sm,t.html=fm,t.json=hm,t.text=lm,t.xml=pm,t.csv=gm,t.tsv=vm,t.scaleBand=gu,t.scalePoint=yu,t.scaleIdentity=Su,t.scaleLinear=Au,t.scaleLog=Du,t.scaleOrdinal=du,t.scaleImplicit=bm,t.scalePow=Iu,t.scaleSqrt=zu,t.scaleQuantile=Ru,t.scaleQuantize=qu,t.scaleThreshold=Bu,t.scaleTime=Yb,t.scaleUtc=Xb,t.schemeCategory10=$b,t.schemeCategory20b=Zb,t.schemeCategory20c=Kb,t.schemeCategory20=Jb,t.interpolateCubehelixDefault=Qb,t.interpolateRainbow=rx,t.interpolateWarm=tx,t.interpolateCool=nx,t.interpolateViridis=ix,t.interpolateMagma=ox,t.interpolateInferno=ux,t.interpolatePlasma=ax,t.scaleSequential=Ha,t.creator=bf,t.local=b,t.matcher=Ef,t.mouse=Pf,t.namespace=mf,t.namespaces=_f,t.select=ph,t.selectAll=dh,t.selection=dt,t.selector=Lf,t.selectorAll=Df,t.touch=gh,t.touches=vh,t.window=Qf,t.customEvent=S,t.arc=px,t.area=vx,t.line=gx,t.pie=mx,t.radialArea=wx,t.radialLine=xx,t.symbol=Ux,t.symbols=Fx,t.symbolCircle=kx,t.symbolCross=Mx,t.symbolDiamond=Sx,t.symbolSquare=Nx,t.symbolStar=Lx,t.symbolTriangle=jx,t.symbolWye=Bx,t.curveBasisClosed=Gx,t.curveBasisOpen=Yx,t.curveBasis=Wx,t.curveBundle=Xx,t.curveCardinalClosed=$x,t.curveCardinalOpen=Zx,t.curveCardinal=Hx,t.curveCatmullRomClosed=Jx,t.curveCatmullRomOpen=Qx,t.curveCatmullRom=Kx,t.curveLinearClosed=tw,t.curveLinear=dx,t.curveMonotoneX=Os,t.curveMonotoneY=Ps,t.curveNatural=nw,t.curveStep=ew,t.curveStepAfter=Is,t.curveStepBefore=js,t.stack=uw,t.stackOffsetExpand=aw,t.stackOffsetNone=iw,t.stackOffsetSilhouette=sw,t.stackOffsetWiggle=cw,t.stackOrderAscending=fw,t.stackOrderDescending=hw,t.stackOrderInsideOut=lw,t.stackOrderNone=ow,t.stackOrderReverse=pw,t.timeInterval=Fu,t.timeMillisecond=Tm,t.timeMilliseconds=Cm,t.utcMillisecond=Tm,t.utcMilliseconds=Cm,t.timeSecond=jm,t.timeSeconds=Im,t.utcSecond=jm,t.utcSeconds=Im,t.timeMinute=zm,t.timeMinutes=Rm,t.timeHour=qm,t.timeHours=Bm,t.timeDay=Fm,t.timeDays=Um,t.timeWeek=Vm,t.timeWeeks=Zm,t.timeSunday=Vm,t.timeSundays=Zm,t.timeMonday=Wm,t.timeMondays=Km,t.timeTuesday=Gm,t.timeTuesdays=Jm,t.timeWednesday=Ym,t.timeWednesdays=Qm,t.timeThursday=Xm,t.timeThursdays=tb,t.timeFriday=Hm,t.timeFridays=nb,t.timeSaturday=$m,t.timeSaturdays=eb,t.timeMonth=rb,t.timeMonths=ib,t.timeYear=ob,t.timeYears=ub,t.utcMinute=ab,t.utcMinutes=sb,t.utcHour=cb,t.utcHours=fb,t.utcDay=hb,t.utcDays=lb,t.utcWeek=pb,t.utcWeeks=bb,t.utcSunday=pb,t.utcSundays=bb,t.utcMonday=db,t.utcMondays=xb,t.utcTuesday=gb,t.utcTuesdays=wb,t.utcWednesday=vb,t.utcWednesdays=kb,t.utcThursday=yb,t.utcThursdays=Mb,t.utcFriday=_b,t.utcFridays=Eb,t.utcSaturday=mb,t.utcSaturdays=Ab,t.utcMonth=Sb,t.utcMonths=Tb,t.utcYear=Cb,t.utcYears=Pb,t.timeFormatDefaultLocale=Fa,t.timeFormatLocale=Xu,t.isoFormat=zb,t.isoParse=Rb,t.now=pn,t.timer=vn,t.timerFlush=yn,t.timeout=Xl,t.interval=Hl,t.transition=Qn,t.active=rd,t.interrupt=op,t.voronoi=Mw,t.zoom=Tw,t.zoomTransform=mc,t.zoomIdentity=Aw,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,n,e){t.exports=e(137)},function(t){var n;n=function(){return this}();try{n=n||Function("return this")()||(1,eval)("this")}catch(e){"object"==typeof window&&(n=window)}t.exports=n},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),u=e(23),a=r(u),s=e(52),c=r(s),f=e(24),h=r(f),l=e(25),p=function(t){return t},d=function(){function t(){i(this,t),this._tokenize=l.tokenize,this._transformToken=p;var n=h["default"].getDefault();this._filterToken=function(t){return!n.test(t)}}return o(t,[{key:"tokenize",value:function(){return 0===arguments.length?this._tokenize:(this._tokenize=arguments.length<=0?void 0:arguments[0],this)}},{key:"transformToken",value:function(){return 0===arguments.length?this._transformToken:(this._transformToken=arguments.length<=0?void 0:arguments[0],this)}},{key:"filterToken",value:function(){return 0===arguments.length?this._filterToken:(this._filterToken=arguments.length<=0?void 0:arguments[0],
this)}},{key:"buildTokenizedDataset",value:function(t){var n=this,e=t.map(function(t){return{id:t.id,count:t.count||1,tokens:n._tokenize(t.text).map(n._transformToken).filter(n._filterToken),rawText:t.text}}).filter(function(t){return t.tokens.length>0});return new c["default"](e)}},{key:"buildModel",value:function(t,n){return new a["default"](this.buildTokenizedDataset(t),n)}}]),t}();n["default"]=d},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n["default"]=t,n}function o(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function u(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function a(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),c=function _(t,n,e){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:_(i,n,e)}if("value"in r)return r.value;var o=r.get;return void 0===o?void 0:o.call(e)};e(115);var f=e(44),h=i(f),l=e(136),p=e(5),d=e(53),g=r(d),v=e(54),y=function(t){function n(t,e){o(this,n);var r=u(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t,e));return r.layers.create(["link","node"]),r.fontSizeScale=h.scaleSqrt().clamp(!0),r.strokeSizeScale=h.scaleSqrt().domain([1,100]).range([1,6]).clamp(!0),r.layouts=[],r.updatePosition=r.updatePosition.bind(r),r.visualize=r.visualize.bind(r),r.on("data",r.visualize),r.on("options",r.visualize),r}return a(n,t),s(n,null,[{key:"getDefaultOptions",value:function(){return l.helper.deepExtend(c(n.__proto__||Object.getPrototypeOf(n),"getDefaultOptions",this).call(this),{initialWidth:800,initialHeight:200,margin:{left:0,top:0,bottom:0,right:0},fontSize:[10,32],gapBetweenGraph:10})}},{key:"getCustomEventNames",value:function(){return["layoutStart","layoutTick","layoutEnd","nodeMouseenter","nodeMouseleave","nodeMousemove","nodeClick","linkMouseenter","linkMouseleave","linkMousemove","linkClick"]}}]),s(n,[{key:"fontSize",value:function(t){return Math.round(this.fontSizeScale(t.data.freq))+"px"}},{key:"renderNodes",value:function(t){var n=this,e=this.layers.get("node").selectAll("g.graph").data(t);e.exit().remove();var r=e.enter().append("g").classed("graph",!0);this.sNodeGraphs=e.merge(r).attr("transform","translate("+this.getInnerWidth()/2+","+this.getInnerHeight()/2+")");var i=r.selectAll("g").data(function(t){return t.nodes},function(t){return t.id});i.exit().remove(),i.enter().append("g").classed("node",!0).on("click.event",this.dispatchAs("nodeClick")).on("mouseenter.event",this.dispatchAs("nodeMouseenter")).on("mousemove.event",this.dispatchAs("nodeMousemove")).on("mouseleave.event",this.dispatchAs("nodeMouseleave")).append("text").attr("dy",".28em").text(function(t){return t.data.entity}).style("cursor","pointer"),this.sNodes=this.layers.get("node").selectAll("g.node"),this.sNodes.select("text").style("font-size",function(t){return n.fontSize(t)}).style("text-anchor","middle")}},{key:"renderLinks",value:function(t){var n=this,e=this.layers.get("link").selectAll("g.graph").data(t);e.exit().remove();var r=e.enter().append("g").classed("graph",!0);this.sLinkGraphs=e.merge(r).attr("transform","translate("+this.getInnerWidth()/2+","+this.getInnerHeight()/2+")");var i=r.selectAll("path.link").data(function(t){return t.links},function(t){return t.getKey()});i.exit().remove(),i.enter().append("path").classed("link",!0).on("click.event",this.dispatchAs("linkClick")).on("mouseenter.event",this.dispatchAs("linkMouseenter")).on("mousemove.event",this.dispatchAs("linkMousemove")).on("mouseleave.event",this.dispatchAs("linkMouseleave")).style("vector-effect","non-scaling-stroke").style("opacity",.5).style("stroke","#222").style("fill","none"),t.forEach(function(t){t.links.forEach(function(e){e.strokeWidth=Math.round(n.strokeSizeScale(e.freq/t.minSupport))})}),this.sLinks=this.layers.get("link").selectAll("path.link").style("stroke-width",function(t){return t.strokeWidth+"px"}).style("stroke",function(t){return t.isTheOnlyBridge()?"#777":"#FF9800"})}},{key:"updatePosition",value:function(){var t=0,n=0,e=this.options(),r=e.margin,i=e.gapBetweenGraph,o=r.top,u=r.left,a=r.bottom,s=r.right;this.sNodeGraphs.each(function(e){var r=this.getBBox(),o=r.width,u=r.height;n=Math.max(o,n),e.x=-r.x,e.y=-r.y+t,t+=u+i}),this.sNodeGraphs.attr("transform",function(t){return"translate("+t.x+","+t.y+")"}),this.sLinkGraphs.attr("transform",function(t){return"translate("+t.x+","+t.y+")"}),this.dimension([n+u+s,Math.max(0,t-i)+o+a]),this.placeNodes(),this.placeLinks()}},{key:"placeNodes",value:function(){this.sNodes.attr("transform",function(t){return"translate("+t.x+", "+t.y+")"})}},{key:"placeLinks",value:function(){var t=this.data();t.forEach(function(t){t.nodes.forEach(function(t){t.updateAttachPoints()})}),this.sLinks.attr("d",function(t){var n=[t.source.rightEdge(),t.attachPoints.y1,t.target.leftEdge(),t.attachPoints.y2];return v.diagonal.apply(void 0,n)})}},{key:"visualize",value:function(){if(this.hasData()){var t=this.data();if(t.length>0){var n=this.options(),e=n.fontSize;this.fontSizeScale.domain(t[0].globalFreqRange).range(e)}this.linkLookup=p.keyBy(p.flatMap(t,function(t){return t.links}),function(t){return[t.source.gid,t.target.gid].join(",")}),this.renderNodes(t),this.renderLinks(t),this.sNodes.each(function(t){var n=this.getBBox();t.width=n.width+4,t.height=n.height+4});for(var r=Math.max(t.length,this.layouts.length),i=0;r>i;i++)i>=this.layouts.length&&this.layouts.push((new g["default"]).on("tick",this.updatePosition)),i>=t.length?this.layouts[i].stop().destroy():this.layouts[i].stop().setGraph(t[i]).start();this.layouts=this.layouts.slice(0,t.length),this.updatePosition()}}},{key:"highlightNeighbors",value:function(t){var n=this;this.sNodes.transition().style("opacity",function(e){return e.gid===t.gid||n.linkLookup[[e.gid,t.gid].join(",")]||n.linkLookup[[t.gid,e.gid].join(",")]?1:.3}),this.sLinks.transition().style("opacity",function(n){return n.source.gid===t.gid||n.target.gid===t.gid?1:.3})}},{key:"clearHighlightNeighbors",value:function(){this.sNodes.style("opacity",1),this.sLinks.style("opacity",1)}}]),n}(l.SvgChart);n["default"]=y},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),u=e(5),a=e(45),s=r(a),c=e(26),f=r(c),h=e(27),l=r(h),p=function(){function t(n,e){i(this,t),this.nodes=n,this.links=e,this.linkLookup=u.keyBy(this.links,function(t){return t.getKey()})}return o(t,[{key:"addLinks",value:function(t){var n=this;this.links=this.links.concat(t),t.forEach(function(t){n.linkLookup[t.getKey()]=t})}},{key:"bundle",value:function(){var t=this,n=new s["default"](function(t,n){return t.data.id-n.data.id});for(this.nodes.filter(function(n){return t.hasPotential(n)}).forEach(function(t){n.push(t)});n.size()>0;){var e=n.pop();if(!e.merged){var r=[];if(e.leftLinks.length>1){var i=e.leftLinks.map(function(t){return t.source});r=r.concat(this.groupMergeableNodes(i))}if(e.rightLinks.length>1){var o=e.rightLinks.map(function(t){return t.target});r=r.concat(this.groupMergeableNodes(o))}if(r.length>0){var u=r.map(function(n){return t.mergeNodes(n)});u.filter(function(n){return t.hasPotential(n)}).forEach(function(t){n.push(t)})}}}return{nodes:this.nodes.filter(function(t){return!t.merged}),links:this.links.filter(function(t){return!t.source.merged&&!t.target.merged})}}},{key:"groupMergeableNodes",value:function(t){var n=this.linkLookup;return u.chain(t).groupBy(function(t){return t.data.entity}).values().filter(function(t){return t.length>1}).flatMap(function(t){for(var e=[[t[0]]],r=function(r){for(var i=t[r],o=0;o<e.length;o++){var u=e[o];u.every(function(t){return!n[[t.id,i.id].join(",")]&&!n[[t.id,i.id].join(",")]})?u.push(i):e.push([i])}},i=1;i<t.length;i++)r(i);return e.filter(function(t){return t.length>1})}).value()}},{key:"hasPotential",value:function(t){return t.rightLinks.length>1||t.leftLinks.length>1}},{key:"mergeNodes",value:function(t){var n=l["default"].merge(t);return n.id=this.nodes.length,this.nodes.push(n),t.forEach(function(t){t.merged=!0}),n.rightLinks=u.chain(t).flatMap(function(t){return t.rightLinks}).groupBy(function(t){return t.target.id}).mapValues(function(t){var e=t[0].target;e.leftLinks=e.leftLinks.filter(function(t){return!t.source.merged});var r=new f["default"](n,t[0].target,u.sum(t.map(function(t){return t.freq})));return e.leftLinks.push(r),r}).values().value(),this.addLinks(n.rightLinks),n.leftLinks=u.chain(t).flatMap(function(t){return t.leftLinks}).groupBy(function(t){return t.source.id}).mapValues(function(t){var e=t[0].source;e.rightLinks=e.rightLinks.filter(function(t){return!t.target.merged});var r=new f["default"](t[0].source,n,u.sum(t.map(function(t){return t.freq})));return e.rightLinks.push(r),r}).values().value(),this.addLinks(n.leftLinks),n}}]),t}();n["default"]=p},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),u=e(51),a=r(u),s=function(){function t(n,e){i(this,t),this.nodes=[],this.linkadj=[],this.minSupport=n,this.maxSupport=e,this.totalNodeCnt=0}return o(t,[{key:"clear",value:function(){return this.nodes=[],this.linkadj=[],this}},{key:"toRenderedGraph",value:function(){return new a["default"](this)}}]),t}();n["default"]=s},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),u=e(5),a=e(49),s=r(a),c=e(26),f=r(c),h=e(27),l=r(h),p=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bundle,o=void 0===r?!0:r,a=e.highFrequencyOnTop,c=void 0===a?!0:a;i(this,t),this.options={bundle:o,highFrequencyOnTop:c},this.minSupport=n.minSupport,this.maxSupport=n.maxSupport;var h=n.nodes.map(function(t){return new l["default"](t)}),p=[];if(Object.keys(n.linkadj).forEach(function(t){var e=h[t],r=n.linkadj[t];Object.keys(r).forEach(function(t){var n=h[t],i=new f["default"](e,n,r[t]);p.push(i),e.rightLinks.push(i),n.leftLinks.push(i)})}),this.assignNodeIds(h),o){var d=new s["default"](h,p).bundle();this.nodes=d.nodes,this.links=d.links,this.assignNodeIds(this.nodes)}else this.nodes=h,this.links=p;this.linkLookup=u.keyBy(this.links,function(t){return t.getKey()}),c&&this.nodes.forEach(function(t){t.rightLinks.sort(function(t,n){return n.freq-t.freq}),t.leftLinks.sort(function(t,n){return n.freq-t.freq})});var g=this.nodes.map(function(t){return t.data.freq});this.freqRange=[u.min(g),u.max(g)],this.globalFreqRange=this.freqRange;var v=this.links.filter(function(t){return t.isTheOnlyBridge()}).map(function(t){return t.toOnlyBridgeConstraint()});this.baseConstraints=v.concat(this.getAlignmentConstraints())}return o(t,[{key:"updateNodeSize",value:function(t){return this.nodes.forEach(function(n){var e=t(n),r=e.width,i=e.height;n.width=r,n.height=i}),this}},{key:"assignNodeIds",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.forEach(function(t,e){t.id=e+n}),this}},{key:"getAlignmentConstraints",value:function(){var t=[];if(this.nodes.length>0){for(var n=this.nodes.map(function(){return!1}),e=[this.nodes[0]];e.length>0;){var r=e.shift(),i=r.id;if(!n[i]){n[i]=!0;var o=r.computeRightConstraints();o&&t.push(o);var u=r.getRightNodes();u.length>0&&(e=e.concat(u))}}for(var a=0;a<this.nodes.length;a++)n[a]=!1;for(e=[this.nodes[0]];e.length>0;){var s=e.shift(),c=s.id;if(!n[c]){n[c]=!0;var f=s.computeLeftConstraints();f&&t.push(f);var h=s.getLeftNodes();h.length>0&&(e=e.concat(h))}}}return t}},{key:"getLinkConstraints",value:function(){return this.links.map(function(t){return t.toConstraint()})}},{key:"getConstraints",value:function(){var t=this.baseConstraints.concat(this.links.map(function(t){return t.toConstraint()}));return this.options.highFrequencyOnTop?t.concat(u.flatMap(this.nodes,function(t){return t.computeOrderConstraints()})):t}},{key:"toGroupConstraint",value:function(){return{leaves:this.nodes.map(function(t){return t.id})}}}]),t}();n["default"]=p},function(t,n,e){"use strict";function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),o=e(5),u=function(){function t(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];r(this,t),this.vocabularies={},this.itemset=[],this.entries=e.map(function(t){var e=t.id,r=t.count,i=t.tokens,o=t.rawText;return{id:e,count:r,tokens:i.map(function(t){return n.encode(t)}),rawText:o,seqIndices:[]}})}return i(t,[{key:"hasToken",value:function(t){return this.vocabularies.hasOwnProperty(t)}},{key:"hasCode",value:function(t){return t>=0&&t<this.itemset.length}},{key:"getCode",value:function(t){return this.vocabularies[t]}},{key:"encode",value:function(t){if(this.vocabularies.hasOwnProperty(t))return this.vocabularies[t];var n=this.itemset.length;return this.itemset.push(t),this.vocabularies[t]=n,n}},{key:"decode",value:function(t){return this.itemset[t]}},{key:"encodeTermWeights",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(n).filter(function(n){return t.hasToken(n)}).reduce(function(e,r){return e[t.getCode(r)]=n[r],e},{})}},{key:"computeSize",value:function(){return o.sum(this.entries.map(function(t){return t.count}))}}]),t}();n["default"]=u},function(t,n,e){"use strict";function r(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n["default"]=t,n}function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),u=e(44),a=r(u),s=e(138),c=function(){function t(){var n=this;i(this,t),this.isRunning=!1,this.simulation=s.d3adaptor(a).flowLayout("x",5).avoidOverlaps(!0).jaccardLinkLengths(10).linkDistance(5),this.dispatcher=a.dispatch("start","tick","end"),this.simulation.on("start.default",function(){n.isRunning=!0,n.dispatcher.call("start",n)}),this.simulation.on("tick.default",function(){n.dispatcher.call("tick",n)}),this.simulation.on("end.default",function(){n.isRunning&&(n.isRunning=!1,n.dispatcher.call("end",n))})}return o(t,[{key:"on",value:function(){var t;return(t=this.dispatcher).on.apply(t,arguments),this}},{key:"setGraph",value:function(t){return this.simulation.nodes(t.nodes).links(t.links).constraints(t.getConstraints()),this}},{key:"start",value:function(){return this.simulation.start(10,10,10),this}},{key:"stop",value:function(){return this.simulation.stop(),this}},{key:"destroy",value:function(){return this.dispatcher.on("start",null),this.dispatcher.on("tick",null),this.dispatcher.on("end",null),this.simulation.on("start",null),this.simulation.on("tick",null),this.simulation.on("end",null),this}}]),t}();n["default"]=c},function(t,n){"use strict";function e(t,n,e,r){return"M"+t+","+n+"C"+(t+e)/2+","+n+" "+(t+e)/2+","+r+" "+e+","+r}function r(t,n,e,r){return"M "+t+","+n+" L "+e+","+r}Object.defineProperty(n,"__esModule",{value:!0}),n.diagonal=e,n.line=r},function(t,n,e){"use strict";function r(t){if(t instanceof o)return new o(t.h,t.s,t.l,t.opacity);t instanceof a.b||(t=e.i(a.c)(t));var n=t.r/255,r=t.g/255,i=t.b/255,u=(v*i+d*n-g*r)/(v+d-g),c=i-u,f=(p*(r-u)-h*c)/l,y=Math.sqrt(f*f+c*c)/(p*u*(1-u)),_=y?Math.atan2(f,c)*s.a-120:0/0;return new o(0>_?_+360:_,y,u,t.opacity)}function i(t,n,e,i){return 1===arguments.length?r(t):new o(t,n,e,null==i?1:i)}function o(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}var u=e(10),a=e(9),s=e(28);n.a=i;var c=-.14861,f=1.78277,h=-.29227,l=-.90649,p=1.97294,d=p*l,g=p*f,v=f*h-l*c;e.i(u.a)(o,i,e.i(u.b)(a.d,{brighter:function(t){return t=null==t?a.e:Math.pow(a.e,t),new o(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?a.f:Math.pow(a.f,t),new o(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*s.b,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new a.b(255*(n+e*(c*r+f*i)),255*(n+e*(h*r+l*i)),255*(n+e*p*r),this.opacity)}}))},function(t,n,e){"use strict";function r(t){if(t instanceof o)return new o(t.l,t.a,t.b,t.opacity);if(t instanceof l){var n=t.h*g.b;return new o(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof d.b||(t=e.i(d.c)(t));var r=c(t.r),i=c(t.g),a=c(t.b),s=u((.4124564*r+.3575761*i+.1804375*a)/y),f=u((.2126729*r+.7151522*i+.072175*a)/_),h=u((.0193339*r+.119192*i+.9503041*a)/m);return new o(116*f-16,500*(s-f),200*(f-h),t.opacity)}function i(t,n,e,i){return 1===arguments.length?r(t):new o(t,n,e,null==i?1:i)}function o(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function u(t){return t>k?Math.pow(t,1/3):t/w+b}function a(t){return t>x?t*t*t:w*(t-b)}function s(t){return 255*(.0031308>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function c(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function f(t){if(t instanceof l)return new l(t.h,t.c,t.l,t.opacity);t instanceof o||(t=r(t));var n=Math.atan2(t.b,t.a)*g.a;return new l(0>n?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function h(t,n,e,r){return 1===arguments.length?f(t):new l(t,n,e,null==r?1:r)}function l(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}var p=e(10),d=e(9),g=e(28);n.b=i,n.a=h;var v=18,y=.95047,_=1,m=1.08883,b=4/29,x=6/29,w=3*x*x,k=x*x*x;e.i(p.a)(o,i,e.i(p.b)(d.d,{brighter:function(t){return new o(this.l+v*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new o(this.l-v*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return t=_*a(t),n=y*a(n),e=m*a(e),new d.b(s(3.2404542*n-1.5371385*t-.4985314*e),s(-.969266*n+1.8760108*t+.041556*e),s(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),e.i(p.a)(l,h,e.i(p.b)(d.d,{brighter:function(t){return new l(this.h,this.c,this.l+v*(null==t?1:t),this.opacity)},darker:function(t){return new l(this.h,this.c,this.l-v*(null==t?1:t),this.opacity)},rgb:function(){return r(this).rgb()}}))},function(t,n){"use strict";function e(){for(var t,n=0,e=arguments.length,i={};e>n;++n){if(!(t=arguments[n]+"")||t in i)throw new Error("illegal type: "+t);i[t]=[]}return new r(i)}function r(t){this._=t}function i(t,n){return t.trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}function o(t,n){for(var e,r=0,i=t.length;i>r;++r)if((e=t[r]).name===n)return e.value}function u(t,n,e){for(var r=0,i=t.length;i>r;++r)if(t[r].name===n){t[r]=a,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}var a={value:function(){}};r.prototype=e.prototype={constructor:r,on:function(t,n){var e,r=this._,a=i(t+"",r),s=-1,c=a.length;{if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++s<c;)if(e=(t=a[s]).type)r[e]=u(r[e],t.name,n);else if(null==n)for(e in r)r[e]=u(r[e],t.name,null);return this}for(;++s<c;)if((e=(t=a[s]).type)&&(e=o(r[e],t.name)))return e}},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new r(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;e>o;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],o=0,e=r.length;e>o;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;o>i;++i)r[i].value.apply(n,e)}},n.a=e},function(t,n,e){"use strict";var r=(e(65),e(67),e(62));e.d(n,"a",function(){return r.a});e(66),e(68),e(64),e(61),e(60),e(59),e(63)},function(){"use strict";{var t=1.70158;!function n(t){function e(n){return n*n*((t+1)*n-t)}return t=+t,e.overshoot=n,e}(t),function e(t){function n(n){return--n*n*((t+1)*n+t)+1}return t=+t,n.overshoot=e,n}(t),function r(t){function n(n){return((n*=2)<1?n*n*((t+1)*n-t):(n-=2)*n*((t+1)*n+t)+2)/2}return t=+t,n.overshoot=r,n}(t)}},function(){"use strict"},function(){"use strict"},function(t,n){"use strict";function e(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.a=e},function(){"use strict";{var t=2*Math.PI,n=1,e=.3;!function r(n,e){function i(t){return n*Math.pow(2,10*--t)*Math.sin((o-t)/e)}var o=Math.asin(1/(n=Math.max(1,n)))*(e/=t);return i.amplitude=function(n){return r(n,e*t)},i.period=function(t){return r(n,t)},i}(n,e),function i(n,e){function r(t){return 1-n*Math.pow(2,-10*(t=+t))*Math.sin((t+o)/e)}var o=Math.asin(1/(n=Math.max(1,n)))*(e/=t);return r.amplitude=function(n){return i(n,e*t)},r.period=function(t){return i(n,t)},r}(n,e),function o(n,e){function r(t){return((t=2*t-1)<0?n*Math.pow(2,10*t)*Math.sin((i-t)/e):2-n*Math.pow(2,-10*t)*Math.sin((i+t)/e))/2}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=t);return r.amplitude=function(n){return o(n,e*t)},r.period=function(t){return o(n,t)},r}(n,e)}},function(){"use strict"},function(){"use strict"},function(){"use strict";{var t=3;!function n(t){function e(n){return Math.pow(n,t)}return t=+t,e.exponent=n,e}(t),function e(t){function n(n){return 1-Math.pow(1-n,t)}return t=+t,n.exponent=e,n}(t),function r(t){function n(n){return((n*=2)<=1?Math.pow(n,t):2-Math.pow(2-n,t))/2}return t=+t,n.exponent=r,n}(t)}},function(){"use strict"},function(){"use strict";Math.PI},function(t,n,e){"use strict";function r(t){return function n(r){function u(n,u){var a=t((n=e.i(i.b)(n)).h,(u=e.i(i.b)(u)).h),s=e.i(o.a)(n.s,u.s),c=e.i(o.a)(n.l,u.l),f=e.i(o.a)(n.opacity,u.opacity);return function(t){return n.h=a(t),n.s=s(t),n.l=c(Math.pow(t,r)),n.opacity=f(t),n+""}}return r=+r,u.gamma=n,u}(1)}{var i=e(4),o=e(6);r(o.b),r(o.a)}},function(t,n,e){"use strict";function r(t){return function(n,r){var u=t((n=e.i(i.c)(n)).h,(r=e.i(i.c)(r)).h),a=e.i(o.a)(n.c,r.c),s=e.i(o.a)(n.l,r.l),c=e.i(o.a)(n.opacity,r.opacity);return function(t){return n.h=u(t),n.c=a(t),n.l=s(t),n.opacity=c(t),n+""}}}{var i=e(4),o=e(6);r(o.b),r(o.a)}},function(t,n,e){"use strict";function r(t){return function(n,r){var u=t((n=e.i(i.e)(n)).h,(r=e.i(i.e)(r)).h),a=e.i(o.a)(n.s,r.s),s=e.i(o.a)(n.l,r.l),c=e.i(o.a)(n.opacity,r.opacity);return function(t){return n.h=u(t),n.s=a(t),n.l=s(t),n.opacity=c(t),n+""}}}{var i=e(4),o=e(6);r(o.b),r(o.a)}},function(t,n,e){"use strict";e(4),e(6)},function(){"use strict"},function(){"use strict"},function(t,n,e){"use strict";e.d(n,"a",function(){return i});var r=180/Math.PI,i={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};n.b=function(t,n,e,i,o,u){var a,s,c;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(c=t*e+n*i)&&(e-=t*c,i-=n*c),(s=Math.sqrt(e*e+i*i))&&(e/=s,i/=s,c/=s),n*e>t*i&&(t=-t,n=-n,c=-c,a=-a),{translateX:o,translateY:u,rotate:Math.atan2(n,t)*r,skewX:Math.atan(c)*r,scaleX:a,scaleY:s}}},function(t,n,e){"use strict";function r(t,n,r,o){function u(t){return t.length?t.pop()+" ":""}function a(t,o,u,a,s,c){if(t!==u||o!==a){var f=s.push("translate(",null,n,null,r);c.push({i:f-4,x:e.i(i.a)(t,u)},{i:f-2,x:e.i(i.a)(o,a)})}else(u||a)&&s.push("translate("+u+n+a+r)}function s(t,n,r,a){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),a.push({i:r.push(u(r)+"rotate(",null,o)-2,x:e.i(i.a)(t,n)})):n&&r.push(u(r)+"rotate("+n+o)}function c(t,n,r,a){t!==n?a.push({i:r.push(u(r)+"skewX(",null,o)-2,x:e.i(i.a)(t,n)}):n&&r.push(u(r)+"skewX("+n+o)}function f(t,n,r,o,a,s){if(t!==r||n!==o){var c=a.push(u(a)+"scale(",null,",",null,")");s.push({i:c-4,x:e.i(i.a)(t,r)},{i:c-2,x:e.i(i.a)(n,o)})}else(1!==r||1!==o)&&a.push(u(a)+"scale("+r+","+o+")")}return function(n,e){var r=[],i=[];return n=t(n),e=t(e),a(n.translateX,n.translateY,e.translateX,e.translateY,r,i),s(n.rotate,e.rotate,r,i),c(n.skewX,e.skewX,r,i),f(n.scaleX,n.scaleY,e.scaleX,e.scaleY,r,i),n=e=null,function(t){for(var n,e=-1,o=i.length;++e<o;)r[(n=i[e]).i]=n.x(t);return r.join("")}}}var i=e(7),o=e(77);e.d(n,"a",function(){return u}),e.d(n,"b",function(){return a});var u=r(o.a,"px, ","px)","deg)"),a=r(o.b,", ",")",")")},function(t,n,e){"use strict";function r(t){return"none"===t?o.a:(u||(u=document.createElement("DIV"),a=document.documentElement,s=document.defaultView),u.style.transform=t,t=s.getComputedStyle(a.appendChild(u),null).getPropertyValue("transform"),a.removeChild(u),t=t.slice(7,-1).split(","),e.i(o.b)(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function i(t){return null==t?o.a:(c||(c=document.createElementNS("http://www.w3.org/2000/svg","g")),c.setAttribute("transform",t),(t=c.transform.baseVal.consolidate())?(t=t.matrix,e.i(o.b)(t.a,t.b,t.c,t.d,t.e,t.f)):o.a)}var o=e(75);n.a=r,n.b=i;var u,a,s,c},function(){"use strict";Math.SQRT2},function(t,n){"use strict";n.a=function(t){return function(){return t}}},function(t,n){"use strict";function e(){return new r}function r(){this._="@"+(++i).toString(36)}n.a=e;var i=0;r.prototype=e.prototype={constructor:r,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}}},function(t,n,e){"use strict";var r=e(20),i=e(17);n.a=function(t){var n=e.i(r.a)();return n.changedTouches&&(n=n.changedTouches[0]),e.i(i.a)(t,n)}},function(t,n,e){"use strict";var r=e(0);n.a=function(t){return"string"==typeof t?new r.b([[document.querySelector(t)]],[document.documentElement]):new r.b([[t]],r.c)}},function(t,n,e){"use strict";var r=e(0);n.a=function(t){return"string"==typeof t?new r.b([document.querySelectorAll(t)],[document.documentElement]):new r.b([null==t?[]:t],r.c)}},function(t,n,e){"use strict";var r=e(14);n.a=function(t){var n="function"==typeof t?t:e.i(r.a)(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}},function(t,n,e){"use strict";function r(t){return function(){this.removeAttribute(t)}}function i(t){return function(){this.removeAttributeNS(t.space,t.local)}}function o(t,n){return function(){this.setAttribute(t,n)}}function u(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function a(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function s(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}var c=e(15);n.a=function(t,n){var f=e.i(c.a)(t);if(arguments.length<2){var h=this.node();return f.local?h.getAttributeNS(f.space,f.local):h.getAttribute(f)}return this.each((null==n?f.local?i:r:"function"==typeof n?f.local?s:a:f.local?u:o)(f,n))}},function(t,n){"use strict";n.a=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}},function(t,n){"use strict";function e(t){return t.trim().split(/^|\s+/)}function r(t){return t.classList||new i(t)}function i(t){this._node=t,this._names=e(t.getAttribute("class")||"")}function o(t,n){for(var e=r(t),i=-1,o=n.length;++i<o;)e.add(n[i])}function u(t,n){for(var e=r(t),i=-1,o=n.length;++i<o;)e.remove(n[i])}function a(t){return function(){o(this,t)}}function s(t){return function(){u(this,t)}}function c(t,n){return function(){(n.apply(this,arguments)?o:u)(this,t)}}i.prototype={add:function(t){var n=this._names.indexOf(t);0>n&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}},n.a=function(t,n){var i=e(t+"");if(arguments.length<2){for(var o=r(this.node()),u=-1,f=i.length;++u<f;)if(!o.contains(i[u]))return!1;return!0}return this.each(("function"==typeof n?c:n?a:s)(i,n))}},function(t,n,e){"use strict";function r(t,n,e,r,i,o){for(var a,s=0,c=n.length,f=o.length;f>s;++s)(a=n[s])?(a.__data__=o[s],r[s]=a):e[s]=new u.b(t,o[s]);for(;c>s;++s)(a=n[s])&&(i[s]=a)}function i(t,n,e,r,i,o,a){var c,f,h,l={},p=n.length,d=o.length,g=new Array(p);for(c=0;p>c;++c)(f=n[c])&&(g[c]=h=s+a.call(f,f.__data__,c,n),h in l?i[c]=f:l[h]=f);for(c=0;d>c;++c)h=s+a.call(t,o[c],c,o),(f=l[h])?(r[c]=f,f.__data__=o[c],l[h]=null):e[c]=new u.b(t,o[c]);for(c=0;p>c;++c)(f=n[c])&&l[g[c]]===f&&(i[c]=f)}var o=e(0),u=e(38),a=e(79),s="$";n.a=function(t,n){if(!t)return _=new Array(this.size()),d=-1,this.each(function(t){_[++d]=t}),_;var u=n?i:r,s=this._parents,c=this._groups;"function"!=typeof t&&(t=e.i(a.a)(t));for(var f=c.length,h=new Array(f),l=new Array(f),p=new Array(f),d=0;f>d;++d){var g=s[d],v=c[d],y=v.length,_=t.call(g,g&&g.__data__,d,s),m=_.length,b=l[d]=new Array(m),x=h[d]=new Array(m),w=p[d]=new Array(y);u(g,v,b,x,w,_,n);for(var k,M,E=0,A=0;m>E;++E)if(k=b[E]){for(E>=A&&(A=E+1);!(M=x[A])&&++A<m;);k._next=M||null}}return h=new o.b(h,s),h._enter=l,h._exit=p,h}},function(t,n){"use strict";n.a=function(t){return arguments.length?this.property("__data__",t):this.node().__data__}},function(t,n,e){"use strict";function r(t,n,r){var i=e.i(u.a)(t),o=i.CustomEvent;o?o=new o(n,r):(o=i.document.createEvent("Event"),r?(o.initEvent(n,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(n,!1,!1)),t.dispatchEvent(o)}function i(t,n){return function(){return r(this,t,n)}}function o(t,n){return function(){return r(this,t,n.apply(this,arguments))}}var u=e(21);n.a=function(t,n){return this.each(("function"==typeof n?o:i)(t,n))}},function(t,n){"use strict";n.a=function(t){for(var n=this._groups,e=0,r=n.length;r>e;++e)for(var i,o=n[e],u=0,a=o.length;a>u;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this}},function(t,n){"use strict";n.a=function(){return!this.node()}},function(t,n,e){"use strict";var r=e(39),i=e(0);n.a=function(){return new i.b(this._exit||this._groups.map(r.a),this._parents)}},function(t,n,e){"use strict";var r=e(0),i=e(37);n.a=function(t){"function"!=typeof t&&(t=e.i(i.a)(t));
for(var n=this._groups,o=n.length,u=new Array(o),a=0;o>a;++a)for(var s,c=n[a],f=c.length,h=u[a]=[],l=0;f>l;++l)(s=c[l])&&t.call(s,s.__data__,l,c)&&h.push(s);return new r.b(u,this._parents)}},function(t,n){"use strict";function e(){this.innerHTML=""}function r(t){return function(){this.innerHTML=t}}function i(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}n.a=function(t){return arguments.length?this.each(null==t?e:("function"==typeof t?i:r)(t)):this.node().innerHTML}},function(t,n,e){"use strict";function r(){return null}var i=e(14),o=e(19);n.a=function(t,n){var u="function"==typeof t?t:e.i(i.a)(t),a=null==n?r:"function"==typeof n?n:e.i(o.a)(n);return this.select(function(){return this.insertBefore(u.apply(this,arguments),a.apply(this,arguments)||null)})}},function(t,n){"use strict";function e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}n.a=function(){return this.each(e)}},function(t,n,e){"use strict";var r=e(0);n.a=function(t){for(var n=this._groups,e=t._groups,i=n.length,o=e.length,u=Math.min(i,o),a=new Array(i),s=0;u>s;++s)for(var c,f=n[s],h=e[s],l=f.length,p=a[s]=new Array(l),d=0;l>d;++d)(c=f[d]||h[d])&&(p[d]=c);for(;i>s;++s)a[s]=n[s];return new r.b(a,this._parents)}},function(t,n){"use strict";n.a=function(){for(var t=this._groups,n=0,e=t.length;e>n;++n)for(var r=t[n],i=0,o=r.length;o>i;++i){var u=r[i];if(u)return u}return null}},function(t,n){"use strict";n.a=function(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t}},function(t,n){"use strict";n.a=function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&u!==r.nextSibling&&u.parentNode.insertBefore(r,u),u=r);return this}},function(t,n){"use strict";function e(t){return function(){delete this[t]}}function r(t,n){return function(){this[t]=n}}function i(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}n.a=function(t,n){return arguments.length>1?this.each((null==n?e:"function"==typeof n?i:r)(t,n)):this.node()[t]}},function(t,n){"use strict";function e(){this.nextSibling&&this.parentNode.appendChild(this)}n.a=function(){return this.each(e)}},function(t,n){"use strict";function e(){var t=this.parentNode;t&&t.removeChild(this)}n.a=function(){return this.each(e)}},function(t,n,e){"use strict";var r=e(0),i=e(19);n.a=function(t){"function"!=typeof t&&(t=e.i(i.a)(t));for(var n=this._groups,o=n.length,u=new Array(o),a=0;o>a;++a)for(var s,c,f=n[a],h=f.length,l=u[a]=new Array(h),p=0;h>p;++p)(s=f[p])&&(c=t.call(s,s.__data__,p,f))&&("__data__"in s&&(c.__data__=s.__data__),l[p]=c);return new r.b(u,this._parents)}},function(t,n,e){"use strict";var r=e(0),i=e(40);n.a=function(t){"function"!=typeof t&&(t=e.i(i.a)(t));for(var n=this._groups,o=n.length,u=[],a=[],s=0;o>s;++s)for(var c,f=n[s],h=f.length,l=0;h>l;++l)(c=f[l])&&(u.push(t.call(c,c.__data__,l,f)),a.push(c));return new r.b(u,a)}},function(t,n){"use strict";n.a=function(){var t=0;return this.each(function(){++t}),t}},function(t,n,e){"use strict";function r(t,n){return n>t?-1:t>n?1:t>=n?0:0/0}var i=e(0);n.a=function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=r);for(var e=this._groups,o=e.length,u=new Array(o),a=0;o>a;++a){for(var s,c=e[a],f=c.length,h=u[a]=new Array(f),l=0;f>l;++l)(s=c[l])&&(h[l]=s);h.sort(n)}return new i.b(u,this._parents).order()}},function(t,n,e){"use strict";function r(t){return function(){this.style.removeProperty(t)}}function i(t,n,e){return function(){this.style.setProperty(t,n,e)}}function o(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}var u=e(21);n.a=function(t,n,a){var s;return arguments.length>1?this.each((null==n?r:"function"==typeof n?o:i)(t,n,null==a?"":a)):e.i(u.a)(s=this.node()).getComputedStyle(s,null).getPropertyValue(t)}},function(t,n){"use strict";function e(){this.textContent=""}function r(t){return function(){this.textContent=t}}function i(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}n.a=function(t){return arguments.length?this.each(null==t?e:("function"==typeof t?i:r)(t)):this.node().textContent}},function(t,n,e){"use strict";var r=e(20),i=e(17);n.a=function(t,n,o){arguments.length<3&&(o=n,n=e.i(r.a)().changedTouches);for(var u,a=0,s=n?n.length:0;s>a;++a)if((u=n[a]).identifier===o)return e.i(i.a)(t,u);return null}},function(t,n,e){"use strict";var r=e(20),i=e(17);n.a=function(t,n){null==n&&(n=e.i(r.a)().touches);for(var o=0,u=n?n.length:0,a=new Array(u);u>o;++o)a[o]=e.i(i.a)(t,n[o]);return a}},function(t,n,e){"use strict";e(22)},function(t,n,e){"use strict";var r=e(22);n.a=function(t,n,e){var i=new r.b;return n=null==n?0:+n,i.restart(function(e){i.stop(),t(e+n)},n,e),i}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=(e(117),e(3));e.d(n,"transition",function(){return r.a});var i=e(116);e.d(n,"active",function(){return i.a});var o=e(42);e.d(n,"interrupt",function(){return o.a})},function(t,n,e){"use strict";var r=e(3),i=e(1),o=[null];n.a=function(t,n){var e,u,a=t.__transition;if(a){n=null==n?null:n+"";for(u in a)if((e=a[u]).state>i.d&&e.name===n)return new r.b([[t]],o,n,+u)}return null}},function(t,n,e){"use strict";var r=e(2),i=e(118),o=e(119);r.selection.prototype.interrupt=i.a,r.selection.prototype.transition=o.a},function(t,n,e){"use strict";var r=e(42);n.a=function(t){return this.each(function(){e.i(r.a)(this,t)})}},function(t,n,e){"use strict";function r(t,n){for(var r;!(r=t.__transition)||!(r=r[n]);)if(!(t=t.parentNode))return s.time=e.i(a.c)(),s;return r}var i=e(3),o=e(1),u=e(58),a=e(41),s={time:null,delay:0,duration:250,ease:u.a};n.a=function(t){var n,u;t instanceof i.b?(n=t._id,t=t._name):(n=e.i(i.c)(),(u=s).time=e.i(a.c)(),t=null==t?null:t+"");for(var c=this._groups,f=c.length,h=0;f>h;++h)for(var l,p=c[h],d=p.length,g=0;d>g;++g)(l=p[g])&&e.i(o.h)(l,t,n,g,p,u||r(l,n));return new i.b(c,this._parents,t,n)}},function(t,n,e){"use strict";function r(t){return function(){this.removeAttribute(t)}}function i(t){return function(){this.removeAttributeNS(t.space,t.local)}}function o(t,n,e){var r,i;return function(){var o=this.getAttribute(t);return o===e?null:o===r?i:i=n(r=o,e)}}function u(t,n,e){var r,i;return function(){var o=this.getAttributeNS(t.space,t.local);return o===e?null:o===r?i:i=n(r=o,e)}}function a(t,n,e){var r,i,o;return function(){var u,a=e(this);return null==a?void this.removeAttribute(t):(u=this.getAttribute(t),u===a?null:u===r&&a===i?o:o=n(r=u,i=a))}}function s(t,n,e){var r,i,o;return function(){var u,a=e(this);return null==a?void this.removeAttributeNS(t.space,t.local):(u=this.getAttributeNS(t.space,t.local),u===a?null:u===r&&a===i?o:o=n(r=u,i=a))}}var c=e(11),f=e(2),h=e(8),l=e(43);n.a=function(t,n){var p=e.i(f.namespace)(t),d="transform"===p?c.e:l.a;return this.attrTween(t,"function"==typeof n?(p.local?s:a)(p,d,e.i(h.b)(this,"attr."+t,n)):null==n?(p.local?i:r)(p):(p.local?u:o)(p,d,n))}},function(t,n,e){"use strict";function r(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttributeNS(t.space,t.local,r(n))}}return e._value=n,e}function i(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttribute(t,r(n))}}return e._value=n,e}var o=e(2);n.a=function(t,n){var u="attr."+t;if(arguments.length<2)return(u=this.tween(u))&&u._value;if(null==n)return this.tween(u,null);if("function"!=typeof n)throw new Error;var a=e.i(o.namespace)(t);return this.tween(u,(a.local?r:i)(a,n))}},function(t,n,e){"use strict";function r(t,n){return function(){e.i(o.g)(this,t).delay=+n.apply(this,arguments)}}function i(t,n){return n=+n,function(){e.i(o.g)(this,t).delay=n}}var o=e(1);n.a=function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?r:i)(n,t)):e.i(o.f)(this.node(),n).delay}},function(t,n,e){"use strict";function r(t,n){return function(){e.i(o.e)(this,t).duration=+n.apply(this,arguments)}}function i(t,n){return n=+n,function(){e.i(o.e)(this,t).duration=n}}var o=e(1);n.a=function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?r:i)(n,t)):e.i(o.f)(this.node(),n).duration}},function(t,n,e){"use strict";function r(t,n){if("function"!=typeof n)throw new Error;return function(){e.i(i.e)(this,t).ease=n}}var i=e(1);n.a=function(t){var n=this._id;return arguments.length?this.each(r(n,t)):e.i(i.f)(this.node(),n).ease}},function(t,n,e){"use strict";var r=e(2),i=e(3);n.a=function(t){"function"!=typeof t&&(t=e.i(r.matcher)(t));for(var n=this._groups,o=n.length,u=new Array(o),a=0;o>a;++a)for(var s,c=n[a],f=c.length,h=u[a]=[],l=0;f>l;++l)(s=c[l])&&t.call(s,s.__data__,l,c)&&h.push(s);return new i.b(u,this._parents,this._name,this._id)}},function(t,n,e){"use strict";var r=e(3);n.a=function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,i=n.length,o=e.length,u=Math.min(i,o),a=new Array(i),s=0;u>s;++s)for(var c,f=n[s],h=e[s],l=f.length,p=a[s]=new Array(l),d=0;l>d;++d)(c=f[d]||h[d])&&(p[d]=c);for(;i>s;++s)a[s]=n[s];return new r.b(a,this._parents,this._name,this._id)}},function(t,n,e){"use strict";function r(t){return(t+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t})}function i(t,n,e){var i,u,a=r(n)?o.g:o.e;return function(){var r=a(this,t),o=r.on;o!==i&&(u=(i=o).copy()).on(n,e),r.on=u}}var o=e(1);n.a=function(t,n){var r=this._id;return arguments.length<2?e.i(o.f)(this.node(),r).on.on(t):this.each(i(r,t,n))}},function(t,n){"use strict";function e(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}n.a=function(){return this.on("end.remove",e(this._id))}},function(t,n,e){"use strict";var r=e(2),i=e(3),o=e(1);n.a=function(t){var n=this._name,u=this._id;"function"!=typeof t&&(t=e.i(r.selector)(t));for(var a=this._groups,s=a.length,c=new Array(s),f=0;s>f;++f)for(var h,l,p=a[f],d=p.length,g=c[f]=new Array(d),v=0;d>v;++v)(h=p[v])&&(l=t.call(h,h.__data__,v,p))&&("__data__"in h&&(l.__data__=h.__data__),g[v]=l,e.i(o.h)(g[v],n,u,v,g,e.i(o.f)(h,u)));return new i.b(c,this._parents,n,u)}},function(t,n,e){"use strict";var r=e(2),i=e(3),o=e(1);n.a=function(t){var n=this._name,u=this._id;"function"!=typeof t&&(t=e.i(r.selectorAll)(t));for(var a=this._groups,s=a.length,c=[],f=[],h=0;s>h;++h)for(var l,p=a[h],d=p.length,g=0;d>g;++g)if(l=p[g]){for(var v,y=t.call(l,l.__data__,g,p),_=e.i(o.f)(l,u),m=0,b=y.length;b>m;++m)(v=y[m])&&e.i(o.h)(v,n,u,m,y,_);c.push(y),f.push(l)}return new i.b(c,f,n,u)}},function(t,n,e){"use strict";var r=e(2),i=r.selection.prototype.constructor;n.a=function(){return new i(this._groups,this._parents)}},function(t,n,e){"use strict";function r(t,n){var r,i,o;return function(){var u=e.i(s.window)(this).getComputedStyle(this,null),a=u.getPropertyValue(t),c=(this.style.removeProperty(t),u.getPropertyValue(t));return a===c?null:a===r&&c===i?o:o=n(r=a,i=c)}}function i(t){return function(){this.style.removeProperty(t)}}function o(t,n,r){var i,o;return function(){var u=e.i(s.window)(this).getComputedStyle(this,null).getPropertyValue(t);return u===r?null:u===i?o:o=n(i=u,r)}}function u(t,n,r){var i,o,u;return function(){var a=e.i(s.window)(this).getComputedStyle(this,null),c=a.getPropertyValue(t),f=r(this);return null==f&&(this.style.removeProperty(t),f=a.getPropertyValue(t)),c===f?null:c===i&&f===o?u:u=n(i=c,o=f)}}var a=e(11),s=e(2),c=e(8),f=e(43);n.a=function(t,n,s){var h="transform"==(t+="")?a.a:f.a;return null==n?this.styleTween(t,r(t,h)).on("end.style."+t,i(t)):this.styleTween(t,"function"==typeof n?u(t,h,e.i(c.b)(this,"style."+t,n)):o(t,h,n),s)}},function(t,n){"use strict";function e(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}n.a=function(t,n,r){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,e(t,n,null==r?"":r))}},function(t,n,e){"use strict";function r(t){return function(){this.textContent=t}}function i(t){return function(){var n=t(this);this.textContent=null==n?"":n}}var o=e(8);n.a=function(t){return this.tween("text","function"==typeof t?i(e.i(o.b)(this,"text",t)):r(null==t?"":t+""))}},function(t,n,e){"use strict";var r=e(3),i=e(1);n.a=function(){for(var t=this._name,n=this._id,o=e.i(r.c)(),u=this._groups,a=u.length,s=0;a>s;++s)for(var c,f=u[s],h=f.length,l=0;h>l;++l)if(c=f[l]){var p=e.i(i.f)(c,n);e.i(i.h)(c,t,o,l,f,{time:p.time+p.delay+p.duration,delay:0,duration:p.duration,ease:p.ease})}return new r.b(u,this._parents,t,o)}},function(t,n,e){(function(t){!function(t,r){r(n,e(2),e(29))}(this,function(n,e,r){"use strict";function i(t){var n="undefined"==typeof t?"undefined":A(t);return null!=t&&("object"==n||"function"==n)}function o(t){var n=i(t)?I.call(t):"";return n==L||n==N||n==D}function u(t){return null!=t&&"object"==("undefined"==typeof t?"undefined":A(t))}function a(t){return"symbol"==("undefined"==typeof t?"undefined":A(t))||u(t)&&V.call(t)==F}function s(t){if("number"==typeof t)return t;if(a(t))return W;if(i(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(G,"");var e=X.test(t);return e||H.test(t)?$(t.slice(2),e?2:8):Y.test(t)?W:+t}function c(t,n,e){function r(n){var e=d,r=g;return d=g=void 0,b=n,y=t.apply(r,e)}function o(t){return b=t,_=setTimeout(c,n),x?r(t):y}function u(t){var e=t-m,r=t-b,i=n-e;return w?J(i,v-r):i}function a(t){var e=t-m,r=t-b;return void 0===m||e>=n||0>e||w&&r>=v}function c(){var t=B();return a(t)?f(t):void(_=setTimeout(c,u(t)))}function f(t){return _=void 0,k&&d?r(t):(d=g=void 0,y)}function h(){void 0!==_&&clearTimeout(_),b=0,d=m=g=_=void 0}function l(){return void 0===_?y:f(B())}function p(){var t=B(),e=a(t);if(d=arguments,g=this,m=t,e){if(void 0===_)return o(m);if(w)return _=setTimeout(c,n),r(m)}return void 0===_&&(_=setTimeout(c,n)),y}var d,g,v,y,_,m,b=0,x=!1,w=!1,k=!0;if("function"!=typeof t)throw new TypeError(Z);return n=s(n)||0,i(e)&&(x=!!e.leading,w="maxWait"in e,v=w?K(s(e.maxWait)||0,n):v,k="trailing"in e?!!e.trailing:k),p.cancel=h,p.flush=l,p}function f(t,n,e){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError(Q);return i(e)&&(r="leading"in e?!!e.leading:r,o="trailing"in e?!!e.trailing:o),c(t,n,{leading:r,maxWait:n,trailing:o})}function h(t){return null==t?"":String(t).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function l(t){return null==t?"\\s":t.source?t.source:"["+h(t)+"]"}function p(t,n){if(null==t)return"";if(!n&&tt)return tt.call(t);var e=l(n),r=new RegExp("^"+e+"+|"+e+"+$","g");return String(t).replace(r,"")}function d(t){return p(t).replace(/([A-Z])/g,"-$1").replace(/[-_\s]+/g,"-").toLowerCase()}function g(t){t=t||{};for(var n=1;n<arguments.length;n++){var e=arguments[n];if(e)for(var r in e)if(e.hasOwnProperty(r)){var u=e[r];t[r]=!i(u)||Array.isArray(u)||o(u)?u:g(t[r],u)}}return t}function v(t){t=t||{};for(var n=1;n<arguments.length;n++)if(arguments[n])for(var e in arguments[n])arguments[n].hasOwnProperty(e)&&(t[e]=arguments[n][e]);return t}function y(t,n,e){return function(){var r=e.apply(n,arguments);return r===n?t:r}}function _(t,n){for(var e=1,r=arguments.length,i=void 0;++e<r;)t[i=arguments[e]]=y(t,n,n[i]);return t}function m(t){return o(t)?t:function(){return t}}function b(t){throw new Error("Missing parameter "+t)}function x(t){return null!==t&&void 0!==t}function w(t){return null===t||void 0===t}function k(t){return!(!t||1!==t.nodeType)}function M(t){if(w(t))return function(t,n){return Math.min(t,n)};var n=(""+t).trim().toLowerCase();if(n.indexOf("%")>-1){var e=function(){var t=+n.replace("%","")/100;return{v:function(n,e){return e*t}}}();if("object"===("undefined"==typeof e?"undefined":A(e)))return e.v}return function(){return+n.replace("px","")}}function E(t){function n(t,n){var e=arguments.length<=2||void 0===arguments[2]?"":arguments[2],r=n.split("."),i=void 0,o=void 0;r.length>1?(o=r[0].length>0?r[0]:s,i=r[1]):(o=s,i=r[0]);var u=""+e+i;if(c.hasOwnProperty(u))throw new Error("invalid or duplicate layer id: "+u);var a=d(i)+"-layer",f=t.append(o).classed(a,!0);return c[u]=f,f}function e(t,r){var o=arguments.length<=2||void 0===arguments[2]?"":arguments[2];if(Array.isArray(r))return r.map(function(n){return e(t,n,o)});if(i(r)){var u=Object.keys(r),a=P(u,1),s=a[0],c=n(t,s,o);return e(c,r[s],""+o+s+"/"),c}return n(t,r,o)}function r(n){return e(t,n)}function o(t){return Array.isArray(t)?t.map(r):r(t)}function u(t){return c[t]}function a(t){return!!c[t]}var s=arguments.length<=1||void 0===arguments[1]?"g":arguments[1],c={};return{create:o,get:u,has:a}}var A="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},S=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")},T=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),C=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)},O=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n},P=function(){function t(t,n){var e=[],r=!0,i=!1,o=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(e.push(u.value),!n||e.length!==n);r=!0);}catch(s){i=!0,o=s}finally{try{!r&&a["return"]&&a["return"]()}finally{if(i)throw o}}return e}return function(n,e){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return t(n,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),L="[object Function]",N="[object GeneratorFunction]",D="[object Proxy]",j=Object.prototype,I=j.toString,z="object"==("undefined"==typeof t?"undefined":A(t))&&t&&t.Object===Object&&t,R="object"==("undefined"==typeof self?"undefined":A(self))&&self&&self.Object===Object&&self,q=z||R||Function("return this")(),B=function(){return q.Date.now()},F="[object Symbol]",U=Object.prototype,V=U.toString,W=0/0,G=/^\s+|\s+$/g,Y=/^[-+]0x[0-9a-f]+$/i,X=/^0b[01]+$/i,H=/^0o[0-7]+$/i,$=parseInt,Z="Expected a function",K=Math.max,J=Math.min,Q="Expected a function",tt=String.prototype.trim,nt=Object.freeze({isObject:i,isFunction:o,kebabCase:d,deepExtend:g,extend:v,rebind:_,functor:m,debounce:c,throttle:f}),et=function(){function t(){S(this,t);for(var n=arguments.length,e=Array(n),r=0;n>r;r++)e[r]=arguments[r];if(1===e.length){var i=e[0],u=o(i)?i():i;if(u instanceof t)this.width=u.width,this.height=u.height;else if(k(u))this.width=u.clientWidth,this.height=u.clientHeight;else if(Array.isArray(u))this.width=u[0],this.height=u[1];else{if(!(x(u)&&x(u.width)&&x(u.height))){var a=new Error("Unsupported input. Must be either\n DOMNode, Array or Object with field width and height,\n or a function that returns any of the above.");throw a.value=i,a}this.width=u.width,this.height=u.height}}else{var s=e[0],c=e[1];this.width=s,this.height=c}}return T(t,[{key:"isEqual",value:function(n){if(n instanceof t)return this.width===n.width&&this.height===n.height;var e=new t(n);return this.width===e.width&&this.height===e.height}},{key:"toArray",value:function(){return[this.width,this.height]}},{key:"toObject",value:function(){return{width:this.width,height:this.height}}}]),t}(),rt=function(){function t(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];S(this,t);var e=n||{},r=e.mode,i=void 0===r?t.MODE_BASIC:r,o=e.width,u=void 0===o?"100%":o,a=e.height,s=void 0===a?null:a,c=e.ratio,f=void 0===c?1:c,h=e.maxWidth,l=void 0===h?null:h,p=e.maxHeight,d=void 0===p?null:p;i===t.MODE_ASPECT_RATIO?(this.wFn=M(l),this.hFn=M(d),this.options={mode:i,ratio:f,maxWidth:l,maxHeight:d}):(this.wFn=M(u),this.hFn=M(s),this.options={mode:i,width:u,height:s})}return T(t,[{key:"fit",value:function(){var n=arguments.length<=0||void 0===arguments[0]?b("box"):arguments[0],e=arguments.length<=1||void 0===arguments[1]?b("container"):arguments[1],r=new et(n),i=r.width,o=r.height,u=new et(e),a=u.width,s=u.height,c=void 0;if(this.options.mode===t.MODE_ASPECT_RATIO){var f=this.options.ratio,h=this.wFn(a,a),l=this.hFn(s,s),p=Math.floor(f*l);c=h>=p?new et(p,l):new et(h,Math.floor(h/f))}else c=new et(this.wFn(i,a),this.hFn(o,s));return{dimension:c,changed:!c.isEqual(r)}}}]),t}();rt.MODE_BASIC="basic",rt.MODE_ASPECT_RATIO="aspectRatio";var it=function(){function t(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];S(this,t);var e=n||{},r=e.mode,i=void 0===r?t.MODE_WINDOW:r,o=e.target,u=void 0===o?null:o,a=e.interval,s=void 0===a?200:a;i!==t.MODE_POLLING||u||b("options.target"),this.mode=i,this.target=u,this.interval=s,this.check=this.check.bind(this),this.throttledCheck=f(this.check,this.interval),this.isWatching=!1,this.listeners={change:[]}}return T(t,[{key:"hasTargetChanged",value:function(){if(!this.target)return!0;var t=new et(this.target);return this.currentDim&&t.isEqual(this.currentDim)?!1:(this.currentDim=t,!0)}},{key:"check",value:function(){return this.hasTargetChanged()&&this.dispatch("change",this.currentDim),this}},{key:"dispatch",value:function(t){for(var n=this,e=arguments.length,r=Array(e>1?e-1:0),i=1;e>i;i++)r[i-1]=arguments[i];return this.listeners[t].forEach(function(t){return t.apply(n,r)}),this}},{key:"on",value:function(t,n){return-1===this.listeners[t].indexOf(n)&&this.listeners[t].push(n),this}},{key:"off",value:function(t,n){return this.listeners[t]=this.listeners[t].filter(function(t){return t!==n}),this}},{key:"start",value:function(){return this.isWatching||(this.target&&(this.currentDim=new et(this.target)),this.mode===t.MODE_WINDOW?window.addEventListener("resize",this.throttledCheck):this.mode===t.MODE_POLLING&&(this.intervalId=window.setInterval(this.check,this.interval)),this.isWatching=!0),this}},{key:"stop",value:function(){return this.isWatching&&(this.mode===t.MODE_WINDOW?window.removeEventListener("resize",this.throttledCheck):this.mode===t.MODE_POLLING&&this.intervalId&&(window.clearInterval(this.intervalId),this.intervalId=null),this.isWatching=!1),this}},{key:"destroy",value:function(){return this.stop(),this.listeners.change=[],this}}]),t}();it.MODE_WINDOW="window",it.MODE_POLLING="polling";var ot=function(t){function n(){var t=arguments.length<=0||void 0===arguments[0]?b("box"):arguments[0],e=arguments.length<=1||void 0===arguments[1]?b("container"):arguments[1],r=arguments[2],i=arguments[3];S(this,n);var o=O(this,Object.getPrototypeOf(n).call(this,i)),u=new rt(r);return o.fit=function(){return u.fit(t,e)},o}return C(n,t),T(n,[{key:"check",value:function(){if(this.hasTargetChanged()){var t=this.fit(),n=t.changed,e=t.dimension;n&&this.dispatch("change",e)}return this}}]),n}(it),ut=function(){function t(){S(this,t);for(var n=arguments.length,e=Array(n),r=0;n>r;r++)e[r]=arguments[r];var i=g.apply(void 0,[this.constructor.getDefaultOptions()].concat(e));this._state={width:i.initialWidth,height:i.initialHeight,options:i},this._updateDimension=c(this._updateDimension.bind(this),1)}return T(t,null,[{key:"getDefaultOptions",value:function(){for(var t=arguments.length,n=Array(t),e=0;t>e;e++)n[e]=arguments[e];return g.apply(void 0,[{initialWidth:720,initialHeight:500,margin:{top:30,right:30,bottom:30,left:30},offset:[.5,.5],pixelRatio:window.devicePixelRatio||1}].concat(n))}}]),T(t,[{key:"copyDimension",value:function(t){if(t){var n=t._state,e=n.width,r=n.height,i=t._state.options,o=i.offset,u=i.margin,a=i.pixelRatio;g(this._state,{width:e,height:r,options:{offset:o.concat(),margin:u,pixelRatio:a}}),this._updateDimension()}return this}},{key:"width",value:function(){if(0===arguments.length)return this._state.width;var t=Math.floor(+(arguments.length<=0?void 0:arguments[0]));return t!==this._state.width&&(this._state.width=t,this._updateDimension()),this}},{key:"height",value:function(){if(0===arguments.length)return this._state.height;var t=Math.floor(+(arguments.length<=0?void 0:arguments[0]));return t!==this._state.height&&(this._state.height=t,this._updateDimension()),this}},{key:"dimension",value:function(){if(0===arguments.length)return[this._state.width,this._state.height];var t=arguments.length<=0?void 0:arguments[0],n=P(t,2),e=n[0],r=n[1];return this.width(e).height(r),this}},{key:"margin",value:function(){if(0===arguments.length)return this._state.options.margin;var t=this._state.options.margin,n=v({},this._state.options.margin,arguments.length<=0?void 0:arguments[0]),e=Object.keys(n).some(function(e){return t[e]!==n[e]});return e&&(this._state.options.margin=n,this._updateDimension()),this}},{key:"offset",value:function(){if(0===arguments.length)return this._state.options.offset;var t=arguments.length<=0?void 0:arguments[0],n=P(this._state.options.offset,2),e=n[0],r=n[1],i=P(t,2),o=i[0],u=i[1];return(e!==o||r!==u)&&(this._state.options.offset=t,this._updateDimension()),this}},{key:"pixelRatio",value:function(){if(0===arguments.length)return this._state.options.pixelRatio;var t=+(arguments.length<=0?void 0:arguments[0]);return t!==this._state.options.pixelRatio&&(this._state.options.pixelRatio=t,this._updateDimension()),this}},{key:"_updateDimension",value:function(){return this}},{key:"updateDimensionNow",value:function(){return this._updateDimension(),this._updateDimension.flush(),this}}]),t}(),at=function(t){function n(t){var r;S(this,n);for(var i=arguments.length,o=Array(i>1?i-1:0),u=1;i>u;u++)o[u-1]=arguments[u];var a=O(this,(r=Object.getPrototypeOf(n)).call.apply(r,[this].concat(o)));v(a._state,{innerWidth:0,innerHeight:0,fitOptions:null,data:null,plates:[]}),a.container=e.select(t),a.container.style("line-height",0),a.chartRoot=a.container.append("div").classed("d3kit-chart-root",!0).style("display","inline-block").style("position","relative").style("line-height",0),a.plates={};var s=a.constructor.getCustomEventNames();return a.setupDispatcher(s),a._dispatchData=c(a._dispatchData.bind(a),1),a._dispatchOptions=c(a._dispatchOptions.bind(a),1),a}return C(n,t),T(n,null,[{key:"getCustomEventNames",value:function(){return[]}}]),T(n,[{key:"addPlate",value:function(t,n,e){if(this.plates[t])throw new Error("Plate with this name already exists",t);return this._state.plates.push(n),this.plates[t]=n,e?n:(n.getSelection().classed("d3kit-plate",!0).style("position","absolute").style("top",0).style("left",0),this.chartRoot.append(function(){return n.getNode()}),this)}},{key:"removePlate",value:function(t){var n=this.plates[t];if(n){var e=this._state.plates.indexOf(n);e>-1&&this._state.plates.splice(e,1),n.getNode().parentNode===this.chartRoot.node()&&this.chartRoot.node().removeChild(n.getNode()),delete this.plates[t]}return this}},{key:"setupDispatcher",value:function(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];return this._customEventNames=t,this._eventNames=n.DEFAULT_EVENTS.concat(t),this.dispatcher=r.dispatch.apply(this,this._eventNames),this}},{key:"getCustomEventNames",value:function(){return this._customEventNames}},{key:"getInnerWidth",value:function(){return this._state.innerWidth}},{key:"getInnerHeight",value:function(){return this._state.innerHeight}},{key:"data",value:function(){for(var t=arguments.length,n=Array(t),e=0;t>e;e++)n[e]=arguments[e];if(0===n.length)return this._state.data;var r=n[0];return this._state.data=r,this._dispatchData(),this}},{key:"options",value:function(){for(var t=arguments.length,n=Array(t),e=0;t>e;e++)n[e]=arguments[e];if(0===n.length)return this._state.options;var r=n[0],i=v({},r);return r.margin&&(this.margin(r.margin),delete i.margin),r.offset&&(this.offset(r.offset),delete i.offset),r.pixelRatio&&(this.pixelRatio(r.pixelRatio),delete i.pixelRatio),this._state.options=g(this._state.options,i),this._dispatchOptions(),this}},{key:"_updateDimension",value:function(){var t=this,n=this._state,e=n.width,r=n.height,i=n.plates,o=this._state.options.margin,u=o.top,a=o.right,s=o.bottom,c=o.left;this._state.innerWidth=e-c-a,this._state.innerHeight=r-u-s,this.chartRoot.style("width",e+"px").style("height",r+"px"),i.forEach(function(n){n.copyDimension(t).updateDimensionNow()});var f=this._state,h=f.innerWidth,l=f.innerHeight;return this.dispatcher.apply("resize",this,[e,r,h,l]),this}},{key:"hasData",value:function(){var t=this._state.data;return null!==t&&void 0!==t}},{key:"hasNonZeroArea",value:function(){var t=this._state,n=t.innerWidth,e=t.innerHeight;return n>0&&e>0}},{key:"fit",value:function(t){var n=this,e=arguments.length<=1||void 0===arguments[1]?!1:arguments[1];t&&(this._state.fitOptions=t);var r=new rt(this._state.fitOptions),o=r.fit(this.dimension(),this.container.node()),u=o.changed,a=o.dimension;u&&this.dimension([a.width,a.height]);var s=!!e;return s&&(this.fitWatcher&&this.fitWatcher.destroy(),this.fitWatcher=new ot(function(){return n.dimension()},this.container.node(),this._state.fitOptions,i(e)?e:null).on("change",function(t){return n.dimension([t.width,t.height])}).start()),this}},{key:"stopFitWatcher",value:function(){return this.fitWatcher&&(this.fitWatcher.destroy(),this.fitWatcher=null),this}},{key:"_dispatchData",value:function(){return this.dispatcher.call("data",this,this._state.data),this}},{key:"_dispatchOptions",value:function(){return this.dispatcher.call("options",this,this._state.options),this}},{key:"on",value:function(t,n){return this.dispatcher.on(t,n),this}},{key:"off",value:function(t){return this.dispatcher.on(t,null),this}},{key:"dispatchAs",value:function(t){var n=this;return function(){for(var e=arguments.length,r=Array(e),i=0;e>i;i++)r[i]=arguments[i];n.dispatcher.apply(t,n,r)}}},{key:"destroy",value:function(){var t=this;return this._eventNames.forEach(function(n){t.off(n)}),this.stopFitWatcher(),this}}]),n}(ut);at.DEFAULT_EVENTS=["data","options","resize"];var st=function(t){function n(t){var r;S(this,n);for(var i=arguments.length,o=Array(i>1?i-1:0),u=1;i>u;u++)o[u-1]=arguments[u];var a=O(this,(r=Object.getPrototypeOf(n)).call.apply(r,[this].concat(o)));return a.node=t,a.selection=e.select(a.node),a}return C(n,t),T(n,[{key:"getNode",value:function(){return this.node}},{key:"getSelection",value:function(){return this.selection}}]),n}(ut),ct=function(t){function n(){var t;S(this,n);for(var e=arguments.length,r=Array(e),i=0;e>i;i++)r[i]=arguments[i];return O(this,(t=Object.getPrototypeOf(n)).call.apply(t,[this,document.createElement("canvas")].concat(r)))}return C(n,t),T(n,[{key:"getContext2d",value:function(){var t=(this.width(),this.height(),this.pixelRatio()),n=this.margin(),e=n.top,r=n.left,i=this.offset(),o=P(i,2),u=o[0],a=o[1],s=this.node.getContext("2d");return s.setTransform(1,0,0,1,0,0),s.scale(t,t),s.translate(r+u,e+a),s}},{key:"clear",value:function(){var t=this.width(),n=this.height(),e=this.pixelRatio(),r=this.node.getContext("2d");return r.setTransform(1,0,0,1,0,0),r.scale(e,e),r.clearRect(0,0,t,n),this}},{key:"_updateDimension",value:function(){var t=this.width(),n=this.height(),e=this.pixelRatio();return this.node.setAttribute("width",t*e),this.node.setAttribute("height",n*e),this.node.style.width=t+"px",this.node.style.height=n+"px",this}}]),n}(st),ft=function(t){function n(t){var e;S(this,n);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;r>o;o++)i[o-1]=arguments[o];var u=O(this,(e=Object.getPrototypeOf(n)).call.apply(e,[this,t].concat(i)));return u.addPlate("canvas",new ct),u.canvas=u.plates.canvas.getSelection(),u.updateDimensionNow(),u}return C(n,t),T(n,[{key:"getContext2d",value:function(){return this.plates.canvas.getContext2d()}},{key:"clear",
value:function(){return this.plates.canvas.clear(),this}}]),n}(at),ht=function(t){function n(){var t;S(this,n);for(var e=arguments.length,r=Array(e),i=0;e>i;i++)r[i]=arguments[i];var o=O(this,(t=Object.getPrototypeOf(n)).call.apply(t,[this,document.createElementNS("http://www.w3.org/2000/svg","svg")].concat(r)));return o.rootG=o.selection.append("g"),o.layers=new E(o.rootG),o}return C(n,t),T(n,[{key:"_updateDimension",value:function(){var t=this.width(),n=this.height(),e=this.margin(),r=e.top,i=e.left,o=this.offset(),u=P(o,2),a=u[0],s=u[1];return this.selection.attr("width",t).attr("height",n),this.rootG.attr("transform","translate("+(i+a)+","+(r+s)+")"),this}}]),n}(st),lt=function(t){function n(t){var e;S(this,n);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;r>o;o++)i[o-1]=arguments[o];var u=O(this,(e=Object.getPrototypeOf(n)).call.apply(e,[this,t].concat(i)));u.addPlate("svg",new ht);var a=u.plates.svg;return u.svg=a.getSelection(),u.rootG=a.rootG,u.layers=a.layers,u.updateDimensionNow(),u}return C(n,t),n}(ft),pt=function(t){function n(t){var e;S(this,n);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;r>o;o++)i[o-1]=arguments[o];var u=O(this,(e=Object.getPrototypeOf(n)).call.apply(e,[this,t].concat(i)));u.addPlate("svg",new ht);var a=u.plates.svg;return u.svg=a.getSelection(),u.rootG=a.rootG,u.layers=a.layers,u.updateDimensionNow(),u}return C(n,t),n}(at),dt=function(t){function n(){var t;S(this,n);for(var e=arguments.length,r=Array(e),i=0;e>i;i++)r[i]=arguments[i];return O(this,(t=Object.getPrototypeOf(n)).call.apply(t,[this,document.createElement("div")].concat(r)))}return C(n,t),T(n,[{key:"_updateDimension",value:function(){var t=this.width(),n=this.height(),e=this.margin();return this.node.style.width=t-e.left-e.right+"px",this.node.style.height=n-e.top-e.bottom+"px",this.node.style.marginLeft=e.left+"px",this.node.style.marginRight=e.right+"px",this.node.style.marginTop=e.top+"px",this.node.style.marginBottom=e.bottom+"px",this}}]),n}(st);n.helper=nt,n.AbstractChart=at,n.CanvasChart=ft,n.HybridChart=lt,n.SvgChart=pt,n.AbstractPlate=st,n.CanvasPlate=ct,n.DivPlate=dt,n.SvgPlate=ht,n.LayerOrganizer=E,Object.defineProperty(n,"__esModule",{value:!0})})}).call(n,e(46))},function(t,n){var e,r,i;(function(){var o,u,a,s,c,f,h,l,p,d,g,v,y,_,m;a=Math.floor,d=Math.min,u=function(t,n){return n>t?-1:t>n?1:0},p=function(t,n,e,r,i){var o;if(null==e&&(e=0),null==i&&(i=u),0>e)throw new Error("lo must be non-negative");for(null==r&&(r=t.length);r>e;)o=a((e+r)/2),i(n,t[o])<0?r=o:e=o+1;return[].splice.apply(t,[e,e-e].concat(n)),n},f=function(t,n,e){return null==e&&(e=u),t.push(n),_(t,0,t.length-1,e)},c=function(t,n){var e,r;return null==n&&(n=u),e=t.pop(),t.length?(r=t[0],t[0]=e,m(t,0,n)):r=e,r},l=function(t,n,e){var r;return null==e&&(e=u),r=t[0],t[0]=n,m(t,0,e),r},h=function(t,n,e){var r;return null==e&&(e=u),t.length&&e(t[0],n)<0&&(r=[t[0],n],n=r[0],t[0]=r[1],m(t,0,e)),n},s=function(t,n){var e,r,i,o,s,c;for(null==n&&(n=u),o=function(){c=[];for(var n=0,e=a(t.length/2);e>=0?e>n:n>e;e>=0?n++:n--)c.push(n);return c}.apply(this).reverse(),s=[],r=0,i=o.length;i>r;r++)e=o[r],s.push(m(t,e,n));return s},y=function(t,n,e){var r;return null==e&&(e=u),r=t.indexOf(n),-1!==r?(_(t,0,r,e),m(t,r,e)):void 0},g=function(t,n,e){var r,i,o,a,c;if(null==e&&(e=u),i=t.slice(0,n),!i.length)return i;for(s(i,e),c=t.slice(n),o=0,a=c.length;a>o;o++)r=c[o],h(i,r,e);return i.sort(e).reverse()},v=function(t,n,e){var r,i,o,a,f,h,l,g,v,y;if(null==e&&(e=u),10*n<=t.length){if(a=t.slice(0,n).sort(e),!a.length)return a;for(o=a[a.length-1],g=t.slice(n),f=0,l=g.length;l>f;f++)r=g[f],e(r,o)<0&&(p(a,r,0,null,e),a.pop(),o=a[a.length-1]);return a}for(s(t,e),y=[],i=h=0,v=d(n,t.length);v>=0?v>h:h>v;i=v>=0?++h:--h)y.push(c(t,e));return y},_=function(t,n,e,r){var i,o,a;for(null==r&&(r=u),i=t[e];e>n&&(a=e-1>>1,o=t[a],r(i,o)<0);)t[e]=o,e=a;return t[e]=i},m=function(t,n,e){var r,i,o,a,s;for(null==e&&(e=u),i=t.length,s=n,o=t[n],r=2*n+1;i>r;)a=r+1,i>a&&!(e(t[r],t[a])<0)&&(r=a),t[n]=t[r],n=r,r=2*n+1;return t[n]=o,_(t,s,n,e)},o=function(){function t(t){this.cmp=null!=t?t:u,this.nodes=[]}return t.push=f,t.pop=c,t.replace=l,t.pushpop=h,t.heapify=s,t.updateItem=y,t.nlargest=g,t.nsmallest=v,t.prototype.push=function(t){return f(this.nodes,t,this.cmp)},t.prototype.pop=function(){return c(this.nodes,this.cmp)},t.prototype.peek=function(){return this.nodes[0]},t.prototype.contains=function(t){return-1!==this.nodes.indexOf(t)},t.prototype.replace=function(t){return l(this.nodes,t,this.cmp)},t.prototype.pushpop=function(t){return h(this.nodes,t,this.cmp)},t.prototype.heapify=function(){return s(this.nodes,this.cmp)},t.prototype.updateItem=function(t){return y(this.nodes,t,this.cmp)},t.prototype.clear=function(){return this.nodes=[]},t.prototype.empty=function(){return 0===this.nodes.length},t.prototype.size=function(){return this.nodes.length},t.prototype.clone=function(){var n;return n=new t,n.nodes=this.nodes.slice(0),n},t.prototype.toArray=function(){return this.nodes.slice(0)},t.prototype.insert=t.prototype.push,t.prototype.top=t.prototype.peek,t.prototype.front=t.prototype.peek,t.prototype.has=t.prototype.contains,t.prototype.copy=t.prototype.clone,t}(),function(o,u){return r=[],e=u,i="function"==typeof e?e.apply(n,r):e,!(void 0!==i&&(t.exports=i))}(this,function(){return o})}).call(this)},function(t){var n,n;!function(n){t.exports=n()}(function(){return function t(e,r,i){function o(a,s){if(!r[a]){if(!e[a]){var c="function"==typeof n&&n;if(!s&&c)return n(a,!0);if(u)return u(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var h=r[a]={exports:{}};e[a][0].call(h.exports,function(t){var n=e[a][1][t];return o(n?n:t)},h,h.exports,t,e,r,i)}return r[a].exports}for(var u="function"==typeof n&&n,a=0;a<i.length;a++)o(i[a]);return o}({1:[function(t,n,e){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}r(t("./src/adaptor")),r(t("./src/d3adaptor")),r(t("./src/descent")),r(t("./src/geom")),r(t("./src/gridrouter")),r(t("./src/handledisconnected")),r(t("./src/layout")),r(t("./src/layout3d")),r(t("./src/linklengths")),r(t("./src/powergraph")),r(t("./src/pqueue")),r(t("./src/rbtree")),r(t("./src/rectangle")),r(t("./src/shortestpaths")),r(t("./src/vpsc"))},{"./src/adaptor":2,"./src/d3adaptor":3,"./src/descent":6,"./src/geom":7,"./src/gridrouter":8,"./src/handledisconnected":9,"./src/layout":10,"./src/layout3d":11,"./src/linklengths":12,"./src/powergraph":13,"./src/pqueue":14,"./src/rbtree":15,"./src/rectangle":16,"./src/shortestpaths":17,"./src/vpsc":18}],2:[function(t,n,e){"use strict";function r(t){return new u(t)}var i=this&&this.__extends||function(t,n){function e(){this.constructor=t}for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r]);t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)},o=t("./layout"),u=function(t){function n(n){var e=t.call(this)||this,r=n;return r.trigger&&(e.trigger=r.trigger),r.kick&&(e.kick=r.kick),r.drag&&(e.drag=r.drag),r.on&&(e.on=r.on),e.dragstart=e.dragStart=o.Layout.dragStart,e.dragend=e.dragEnd=o.Layout.dragEnd,e}return i(n,t),n.prototype.trigger=function(){},n.prototype.kick=function(){},n.prototype.drag=function(){},n.prototype.on=function(){return this},n}(o.Layout);e.LayoutAdaptor=u,e.adaptor=r},{"./layout":10}],3:[function(t,n,e){"use strict";function r(t){return!t||i(t)?new o.D3StyleLayoutAdaptor:new u.D3StyleLayoutAdaptor(t)}function i(t){var n=/^3\./;return t.version&&null!==t.version.match(n)}var o=t("./d3v3adaptor"),u=t("./d3v4adaptor");e.d3adaptor=r},{"./d3v3adaptor":4,"./d3v4adaptor":5}],4:[function(t,n,e){"use strict";function r(){return new u}var i=this&&this.__extends||function(t,n){function e(){this.constructor=t}for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r]);t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)},o=t("./layout"),u=function(t){function n(){var n=t.call(this)||this;n.event=d3.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var e=n;return n.drag=function(){if(!t)var t=d3.behavior.drag().origin(o.Layout.dragOrigin).on("dragstart.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",function(t){o.Layout.drag(t,d3.event),e.resume()}).on("dragend.d3adaptor",o.Layout.dragEnd);return arguments.length?void this.call(t):t},n}return i(n,t),n.prototype.trigger=function(t){var n={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event[n.type](n)},n.prototype.kick=function(){var n=this;d3.timer(function(){return t.prototype.tick.call(n)})},n.prototype.on=function(t,n){return"string"==typeof t?this.event.on(t,n):this.event.on(o.EventType[t],n),this},n}(o.Layout);e.D3StyleLayoutAdaptor=u,e.d3adaptor=r},{"./layout":10}],5:[function(t,n,e){"use strict";var r=this&&this.__extends||function(t,n){function e(){this.constructor=t}for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r]);t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)},i=t("./layout"),o=function(t){function n(n){var e=t.call(this)||this;e.d3Context=n,e.event=n.dispatch(i.EventType[i.EventType.start],i.EventType[i.EventType.tick],i.EventType[i.EventType.end]);var r=e;return e.drag=function(){if(!t)var t=n.drag().subject(i.Layout.dragOrigin).on("start.d3adaptor",i.Layout.dragStart).on("drag.d3adaptor",function(t){i.Layout.drag(t,n.event),r.resume()}).on("end.d3adaptor",i.Layout.dragEnd);return arguments.length?void arguments[0].call(t):t},e}return r(n,t),n.prototype.trigger=function(t){var n={type:i.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(n.type,n)},n.prototype.kick=function(){var n=this;this.d3Context.timer(function(){return t.prototype.tick.call(n)})},n.prototype.on=function(t,n){return"string"==typeof t?this.event.on(t,n):this.event.on(i.EventType[t],n),this},n}(i.Layout);e.D3StyleLayoutAdaptor=o},{"./layout":10}],6:[function(t,n,e){"use strict";var r=function(){function t(){this.locks={}}return t.prototype.add=function(t,n){this.locks[t]=n},t.prototype.clear=function(){this.locks={}},t.prototype.isEmpty=function(){for(var t in this.locks)return!1;return!0},t.prototype.apply=function(t){for(var n in this.locks)t(Number(n),this.locks[n])},t}();e.Locks=r;var i=function(){function t(t,n,e){void 0===e&&(e=null),this.D=n,this.G=e,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new o,this.project=null,this.x=t,this.k=t.length;var i=this.n=t[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new r,this.minD=Number.MAX_VALUE;for(var u,a=i;a--;)for(u=i;--u>a;){var s=n[a][u];s>0&&s<this.minD&&(this.minD=s)}for(this.minD===Number.MAX_VALUE&&(this.minD=1),a=this.k;a--;){for(this.g[a]=new Array(i),this.H[a]=new Array(i),u=i;u--;)this.H[a][u]=new Array(i);this.Hd[a]=new Array(i),this.a[a]=new Array(i),this.b[a]=new Array(i),this.c[a]=new Array(i),this.d[a]=new Array(i),this.e[a]=new Array(i),this.ia[a]=new Array(i),this.ib[a]=new Array(i),this.xtmp[a]=new Array(i)}}return t.createSquareMatrix=function(t,n){for(var e=new Array(t),r=0;t>r;++r){e[r]=new Array(t);for(var i=0;t>i;++i)e[r][i]=n(r,i)}return e},t.prototype.offsetDir=function(){for(var t=this,n=new Array(this.k),e=0,r=0;r<this.k;++r){var i=n[r]=this.random.getNextBetween(.01,1)-.5;e+=i*i}return e=Math.sqrt(e),n.map(function(n){return n*=t.minD/e})},t.prototype.computeDerivatives=function(t){var n=this,e=this.n;if(!(1>e)){for(var r,i=new Array(this.k),o=new Array(this.k),u=new Array(this.k),a=0,s=0;e>s;++s){for(r=0;r<this.k;++r)u[r]=this.g[r][s]=0;for(var c=0;e>c;++c)if(s!==c){for(var f=e;f--;){var h=0;for(r=0;r<this.k;++r){var l=i[r]=t[r][s]-t[r][c];h+=o[r]=l*l}if(h>1e-9)break;var p=this.offsetDir();for(r=0;r<this.k;++r)t[r][c]+=p[r]}var d=Math.sqrt(h),g=this.D[s][c],v=null!=this.G?this.G[s][c]:1;if(v>1&&d>g||!isFinite(g))for(r=0;r<this.k;++r)this.H[r][s][c]=0;else{v>1&&(v=1);var y=g*g,_=2*v*(d-g)/(y*d),m=d*d*d,b=2*-v/(y*m);for(isFinite(_)||console.log(_),r=0;r<this.k;++r)this.g[r][s]+=i[r]*_,u[r]-=this.H[r][s][c]=b*(m+g*(o[r]-h)+d*h)}}for(r=0;r<this.k;++r)a=Math.max(a,this.H[r][s][s]=u[r])}for(var x=this.snapGridSize/2,w=this.snapGridSize,k=this.snapStrength,M=k/(x*x),E=this.numGridSnapNodes,s=0;E>s;++s)for(r=0;r<this.k;++r){var A=this.x[r][s],S=A/w,T=S%1,C=S-T,O=Math.abs(T),l=.5>=O?A-C*w:A>0?A-(C+1)*w:A-(C-1)*w;l>-x&&x>=l&&(this.scaleSnapByMaxH?(this.g[r][s]+=a*M*l,this.H[r][s][s]+=a*M):(this.g[r][s]+=M*l,this.H[r][s][s]+=M))}this.locks.isEmpty()||this.locks.apply(function(e,i){for(r=0;r<n.k;++r)n.H[r][e][e]+=a,n.g[r][e]-=a*(i[r]-t[r][e])})}},t.dotProd=function(t,n){for(var e=0,r=t.length;r--;)e+=t[r]*n[r];return e},t.rightMultiply=function(n,e,r){for(var i=n.length;i--;)r[i]=t.dotProd(n[i],e)},t.prototype.computeStepSize=function(n){for(var e=0,r=0,i=0;i<this.k;++i)e+=t.dotProd(this.g[i],n[i]),t.rightMultiply(this.H[i],n[i],this.Hd[i]),r+=t.dotProd(n[i],this.Hd[i]);return 0!==r&&isFinite(r)?1*e/r:0},t.prototype.reduceStress=function(){this.computeDerivatives(this.x);for(var t=this.computeStepSize(this.g),n=0;n<this.k;++n)this.takeDescentStep(this.x[n],this.g[n],t);return this.computeStress()},t.copy=function(t,n){for(var e=t.length,r=n[0].length,i=0;e>i;++i)for(var o=0;r>o;++o)n[i][o]=t[i][o]},t.prototype.stepAndProject=function(n,e,r,i){t.copy(n,e),this.takeDescentStep(e[0],r[0],i),this.project&&this.project[0](n[0],n[1],e[0]),this.takeDescentStep(e[1],r[1],i),this.project&&this.project[1](e[0],n[1],e[1]);for(var o=2;o<this.k;o++)this.takeDescentStep(e[o],r[o],i)},t.mApply=function(t,n,e){for(var r=t;r-->0;)for(var i=n;i-->0;)e(r,i)},t.prototype.matrixApply=function(n){t.mApply(this.k,this.n,n)},t.prototype.computeNextPosition=function(t,n){var e=this;this.computeDerivatives(t);var r=this.computeStepSize(this.g);if(this.stepAndProject(t,n,this.g,r),this.project){this.matrixApply(function(r,i){return e.e[r][i]=t[r][i]-n[r][i]});var i=this.computeStepSize(this.e);i=Math.max(.2,Math.min(i,1)),this.stepAndProject(t,n,this.e,i)}},t.prototype.run=function(t){for(var n=Number.MAX_VALUE,e=!1;!e&&t-->0;){var r=this.rungeKutta();e=Math.abs(n/r-1)<this.threshold,n=r}return n},t.prototype.rungeKutta=function(){var n=this;this.computeNextPosition(this.x,this.a),t.mid(this.x,this.a,this.ia),this.computeNextPosition(this.ia,this.b),t.mid(this.x,this.b,this.ib),this.computeNextPosition(this.ib,this.c),this.computeNextPosition(this.c,this.d);var e=0;return this.matrixApply(function(t,r){var i=(n.a[t][r]+2*n.b[t][r]+2*n.c[t][r]+n.d[t][r])/6,o=n.x[t][r]-i;e+=o*o,n.x[t][r]=i}),e},t.mid=function(n,e,r){t.mApply(n.length,n[0].length,function(t,i){return r[t][i]=n[t][i]+(e[t][i]-n[t][i])/2})},t.prototype.takeDescentStep=function(t,n,e){for(var r=0;r<this.n;++r)t[r]=t[r]-e*n[r]},t.prototype.computeStress=function(){for(var t=0,n=0,e=this.n-1;e>n;++n)for(var r=n+1,i=this.n;i>r;++r){for(var o=0,u=0;u<this.k;++u){var a=this.x[u][n]-this.x[u][r];o+=a*a}o=Math.sqrt(o);var s=this.D[n][r];if(isFinite(s)){var c=s-o,f=s*s;t+=c*c/f}}return t},t}();i.zeroDistance=1e-10,e.Descent=i;var o=function(){function t(t){void 0===t&&(t=1),this.seed=t,this.a=214013,this.c=2531011,this.m=2147483648,this.range=32767}return t.prototype.getNext=function(){return this.seed=(this.seed*this.a+this.c)%this.m,(this.seed>>16)/this.range},t.prototype.getNextBetween=function(t,n){return t+this.getNext()*(n-t)},t}();e.PseudoRandom=o},{}],7:[function(t,n,e){"use strict";function r(t,n,e){return(n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y)}function i(t,n,e){return r(t,n,e)>0}function o(t,n,e){return r(t,n,e)<0}function u(t){var n,e=t.slice(0).sort(function(t,n){return t.x!==n.x?n.x-t.x:n.y-t.y}),i=t.length,o=0,u=e[0].x;for(n=1;i>n&&e[n].x===u;++n);var a=n-1,s=[];if(s.push(e[o]),a===i-1)e[a].y!==e[o].y&&s.push(e[a]);else{var c,f=i-1,h=e[i-1].x;for(n=i-2;n>=0&&e[n].x===h;n--);for(c=n+1,n=a;++n<=c;)if(!(r(e[o],e[c],e[n])>=0&&c>n)){for(;s.length>1&&!(r(s[s.length-2],s[s.length-1],e[n])>0);)s.length-=1;n!=o&&s.push(e[n])}f!=c&&s.push(e[f]);var l=s.length;for(n=c;--n>=a;)if(!(r(e[f],e[a],e[n])>=0&&n>a)){for(;s.length>l&&!(r(s[s.length-2],s[s.length-1],e[n])>0);)s.length-=1;n!=o&&s.push(e[n])}}return s}function a(t,n,e){n.slice(0).sort(function(n,e){return Math.atan2(n.y-t.y,n.x-t.x)-Math.atan2(e.y-t.y,e.x-t.x)}).forEach(e)}function s(t,n){return{rtan:c(t,n),ltan:f(t,n)}}function c(t,n){var e,r,u,a,s,c=n.length-1;if(o(t,n[1],n[0])&&!i(t,n[c-1],n[0]))return 0;for(e=0,r=c;;){if(r-e===1)return i(t,n[e],n[r])?e:r;if(u=Math.floor((e+r)/2),s=o(t,n[u+1],n[u]),s&&!i(t,n[u-1],n[u]))return u;a=i(t,n[e+1],n[e]),a?s?r=u:i(t,n[e],n[u])?r=u:e=u:s&&o(t,n[e],n[u])?r=u:e=u}}function f(t,n){var e,r,u,a,s,c=n.length-1;if(i(t,n[c-1],n[0])&&!o(t,n[1],n[0]))return 0;for(e=0,r=c;;){if(r-e===1)return o(t,n[e],n[r])?e:r;if(u=Math.floor((e+r)/2),s=o(t,n[u+1],n[u]),i(t,n[u-1],n[u])&&!s)return u;a=o(t,n[e+1],n[e]),a?s?o(t,n[e],n[u])?r=u:e=u:r=u:s?e=u:i(t,n[e],n[u])?r=u:e=u}}function h(t,n,e,r,i,o){var u,a;u=e(n[0],t),a=r(t[u],n);for(var s=!1;!s;){for(s=!0;;){if(u===t.length-1&&(u=0),i(n[a],t[u],t[u+1]))break;++u}for(;;){if(0===a&&(a=n.length-1),o(t[u],n[a],n[a-1]))break;--a,s=!1}}return{t1:u,t2:a}}function l(t,n){var e=p(n,t);return{t1:e.t2,t2:e.t1}}function p(t,n){return h(t,n,c,f,i,o)}function d(t,n){return h(t,n,f,f,o,o)}function g(t,n){return h(t,n,c,c,i,i)}function v(t,n){for(var e=[],r=1,i=n.length;i>r;++r){var o=w.Rectangle.lineIntersection(t.x1,t.y1,t.x2,t.y2,n[r-1].x,n[r-1].y,n[r].x,n[r].y);o&&e.push(o)}return e}function y(t,n){for(var e=t.length-1,i=n.length-1,o=new S,u=0;e>u;++u)for(var a=0;i>a;++a){var s=t[0==u?e-1:u-1],c=t[u],f=t[u+1],h=n[0==a?i-1:a-1],l=n[a],p=n[a+1],d=r(s,c,l),g=r(c,h,l),v=r(c,l,p),y=r(h,l,c),_=r(l,s,c),m=r(l,c,f);d>=0&&g>=0&&0>v&&y>=0&&_>=0&&0>m?o.ll=new A(u,a):0>=d&&0>=g&&v>0&&0>=y&&0>=_&&m>0?o.rr=new A(u,a):0>=d&&g>0&&0>=v&&y>=0&&0>_&&m>=0?o.rl=new A(u,a):d>=0&&0>g&&v>=0&&0>=y&&_>0&&0>=m&&(o.lr=new A(u,a))}return o}function _(t,n){for(var e=1,r=n.length;r>e;++e)if(o(n[e-1],n[e],t))return!1;return!0}function m(t,n){return!t.every(function(t){return!_(t,n)})}function b(t,n){if(m(t,n))return!0;if(m(n,t))return!0;for(var e=1,r=t.length;r>e;++e){var i=t[e],o=t[e-1];if(v(new M(o.x,o.y,i.x,i.y),n).length>0)return!0}return!1}var x=this&&this.__extends||function(t,n){function e(){this.constructor=t}for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r]);t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)},w=t("./rectangle"),k=function(){function t(){}return t}();e.Point=k;var M=function(){function t(t,n,e,r){this.x1=t,this.y1=n,this.x2=e,this.y2=r}return t}();e.LineSegment=M;var E=function(t){function n(){return t.apply(this,arguments)||this}return x(n,t),n}(k);e.PolyPoint=E,e.isLeft=r,e.ConvexHull=u,e.clockwiseRadialSweep=a,e.tangent_PolyPolyC=h,e.LRtangent_PolyPolyC=l,e.RLtangent_PolyPolyC=p,e.LLtangent_PolyPolyC=d,e.RRtangent_PolyPolyC=g;var A=function(){function t(t,n){this.t1=t,this.t2=n}return t}();e.BiTangent=A;var S=function(){function t(){}return t}();e.BiTangents=S;var T=function(t){function n(){return t.apply(this,arguments)||this}return x(n,t),n}(k);e.TVGPoint=T;var C=function(){function t(t,n,e,r){this.id=t,this.polyid=n,this.polyvertid=e,this.p=r,r.vv=this}return t}();e.VisibilityVertex=C;var O=function(){function t(t,n){this.source=t,this.target=n}return t.prototype.length=function(){var t=this.source.p.x-this.target.p.x,n=this.source.p.y-this.target.p.y;return Math.sqrt(t*t+n*n)},t}();e.VisibilityEdge=O;var P=function(){function t(t,n){if(this.P=t,this.V=[],this.E=[],n)this.V=n.V.slice(0),this.E=n.E.slice(0);else{for(var e=t.length,r=0;e>r;r++)for(var i=t[r],o=0;o<i.length;++o){var u=i[o],a=new C(this.V.length,r,o,u);this.V.push(a),o>0&&this.E.push(new O(i[o-1].vv,a))}for(var r=0;e-1>r;r++)for(var s=t[r],o=r+1;e>o;o++){var c=t[o],f=y(s,c);for(var h in f){var l=f[h],p=s[l.t1],d=c[l.t2];this.addEdgeIfVisible(p,d,r,o)}}}}return t.prototype.addEdgeIfVisible=function(t,n,e,r){this.intersectsPolys(new M(t.x,t.y,n.x,n.y),e,r)||this.E.push(new O(t.vv,n.vv))},t.prototype.addPoint=function(t,n){var e=this.P.length;this.V.push(new C(this.V.length,e,0,t));for(var r=0;e>r;++r)if(r!==n){var i=this.P[r],o=s(t,i);this.addEdgeIfVisible(t,i[o.ltan],n,r),this.addEdgeIfVisible(t,i[o.rtan],n,r)}return t.vv},t.prototype.intersectsPolys=function(t,n,e){for(var r=0,i=this.P.length;i>r;++r)if(r!=n&&r!=e&&v(t,this.P[r]).length>0)return!0;return!1},t}();e.TangentVisibilityGraph=P,e.tangents=y,e.polysOverlap=b},{"./rectangle":16}],8:[function(t,n,e){"use strict";var r=t("./rectangle"),i=t("./vpsc"),o=t("./shortestpaths"),u=function(){function t(t,n,e){this.id=t,this.rect=n,this.children=e,this.leaf="undefined"==typeof e||0===e.length}return t}();e.NodeWrapper=u;var a=function(){function t(t,n,e,r,i){void 0===r&&(r=null),void 0===i&&(i=null),this.id=t,this.x=n,this.y=e,this.node=r,this.line=i}return t}();e.Vert=a;var s=function(){function t(n,e){this.s=n,this.t=e;var r=t.findMatch(n,e),i=e.slice(0).reverse(),o=t.findMatch(n,i);r.length>=o.length?(this.length=r.length,this.si=r.si,this.ti=r.ti,this.reversed=!1):(this.length=o.length,this.si=o.si,this.ti=e.length-o.ti-o.length,this.reversed=!0)}return t.findMatch=function(t,n){for(var e=t.length,r=n.length,i={length:0,si:-1,ti:-1},o=new Array(e),u=0;e>u;u++){o[u]=new Array(r);for(var a=0;r>a;a++)if(t[u]===n[a]){var s=o[u][a]=0===u||0===a?1:o[u-1][a-1]+1;s>i.length&&(i.length=s,i.si=u-s+1,i.ti=a-s+1)}else o[u][a]=0}return i},t.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},t}();e.LongestCommonSubsequence=s;var c=function(){function t(t,n,e){void 0===e&&(e=12);var i=this;this.originalnodes=t,this.groupPadding=e,this.leaves=null,this.nodes=t.map(function(t,e){return new u(e,n.getBounds(t),n.getChildren(t))}),this.leaves=this.nodes.filter(function(t){return t.leaf}),this.groups=this.nodes.filter(function(t){return!t.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(t){return t.children.forEach(function(n){return i.nodes[n].parent=t})}),this.root={children:[]},this.nodes.forEach(function(t){"undefined"==typeof t.parent&&(t.parent=i.root,i.root.children.push(t.id)),t.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(t,n){return i.getDepth(t)-i.getDepth(n)});var o=this.backToFront.slice(0).reverse().filter(function(t){return!t.leaf});o.forEach(function(t){var n=r.Rectangle.empty();t.children.forEach(function(t){return n=n.union(i.nodes[t].rect)}),t.rect=n.inflate(i.groupPadding)});var s=this.midPoints(this.cols.map(function(t){return t.pos})),c=this.midPoints(this.rows.map(function(t){return t.pos})),f=s[0],h=s[s.length-1],l=c[0],p=c[c.length-1],d=this.rows.map(function(t){return{x1:f,x2:h,y1:t.pos,y2:t.pos}}).concat(c.map(function(t){return{x1:f,x2:h,y1:t,y2:t}})),g=this.cols.map(function(t){return{x1:t.pos,x2:t.pos,y1:l,y2:p}}).concat(s.map(function(t){return{x1:t,x2:t,y1:l,y2:p}})),v=d.concat(g);v.forEach(function(t){return t.verts=[]}),this.verts=[],this.edges=[],d.forEach(function(t){return g.forEach(function(n){var e=new a(i.verts.length,n.x1,t.y1);t.verts.push(e),n.verts.push(e),i.verts.push(e);for(var r=i.backToFront.length;r-->0;){var o=i.backToFront[r],u=o.rect,s=Math.abs(e.x-u.cx()),c=Math.abs(e.y-u.cy());if(s<u.width()/2&&c<u.height()/2){e.node=o;break}}})}),v.forEach(function(t){i.nodes.forEach(function(n){n.rect.lineIntersections(t.x1,t.y1,t.x2,t.y2).forEach(function(e){var r=new a(i.verts.length,e.x,e.y,n,t);i.verts.push(r),t.verts.push(r),n.ports.push(r)})});var n=Math.abs(t.y1-t.y2)<.1,e=function(t,e){return n?e.x-t.x:e.y-t.y};t.verts.sort(e);for(var r=1;r<t.verts.length;r++){var o=t.verts[r-1],u=t.verts[r];o.node&&o.node===u.node&&o.node.leaf||i.edges.push({source:o.id,target:u.id,length:Math.abs(e(o,u))})}})}return t.prototype.avg=function(t){return t.reduce(function(t,n){return t+n})/t.length},t.prototype.getGridLines=function(t){for(var n=[],e=this.leaves.slice(0,this.leaves.length);e.length>0;){var r=e.filter(function(n){return n.rect["overlap"+t.toUpperCase()](e[0].rect)}),i={nodes:r,pos:this.avg(r.map(function(n){return n.rect["c"+t]()}))};n.push(i),i.nodes.forEach(function(t){return e.splice(e.indexOf(t),1)})}return n.sort(function(t,n){return t.pos-n.pos}),n},t.prototype.getDepth=function(t){for(var n=0;t.parent!==this.root;)n++,t=t.parent;return n},t.prototype.midPoints=function(t){for(var n=t[1]-t[0],e=[t[0]-n/2],r=1;r<t.length;r++)e.push((t[r]+t[r-1])/2);return e.push(t[t.length-1]+n/2),e},t.prototype.findLineage=function(t){var n=[t];do t=t.parent,n.push(t);while(t!==this.root);return n.reverse()},t.prototype.findAncestorPathBetween=function(t,n){for(var e=this.findLineage(t),r=this.findLineage(n),i=0;e[i]===r[i];)i++;return{commonAncestor:e[i-1],lineages:e.slice(i).concat(r.slice(i))}},t.prototype.siblingObstacles=function(t,n){var e=this,r=this.findAncestorPathBetween(t,n),i={};r.lineages.forEach(function(t){return i[t.id]={}});var o=r.commonAncestor.children.filter(function(t){return!(t in i)});return r.lineages.filter(function(t){return t.parent!==r.commonAncestor}).forEach(function(t){return o=o.concat(t.parent.children.filter(function(n){return n!==t.id}))}),o.map(function(t){return e.nodes[t]})},t.getSegmentSets=function(t,n){for(var e=[],r=0;r<t.length;r++)for(var i=t[r],o=0;o<i.length;o++){var u=i[o];u.edgeid=r,u.i=o;var a=u[1][n]-u[0][n];Math.abs(a)<.1&&e.push(u)}e.sort(function(t,e){return t[0][n]-e[0][n]});for(var s=[],c=null,f=0;f<e.length;f++){var u=e[f];(!c||Math.abs(u[0][n]-c.pos)>.1)&&(c={pos:u[0][n],segments:[]},s.push(c)),c.segments.push(u)}return s},t.nudgeSegs=function(t,n,e,r,o,u){var a=r.length;if(!(1>=a)){for(var s=r.map(function(n){return new i.Variable(n[0][t])}),c=[],f=0;a>f;f++)for(var h=0;a>h;h++)if(f!==h){var l=r[f],p=r[h],d=l.edgeid,g=p.edgeid,v=-1,y=-1;"x"==t?o(d,g)&&(l[0][n]<l[1][n]?(v=h,y=f):(v=f,y=h)):o(d,g)&&(l[0][n]<l[1][n]?(v=f,y=h):(v=h,y=f)),v>=0&&c.push(new i.Constraint(s[v],s[y],u))}var _=new i.Solver(s,c);_.solve(),s.forEach(function(n,i){var o=r[i],u=n.position();o[0][t]=o[1][t]=u;var a=e[o.edgeid];o.i>0&&(a[o.i-1][1][t]=u),o.i<a.length-1&&(a[o.i+1][0][t]=u)})}},t.nudgeSegments=function(n,e,r,i,o){for(var u=t.getSegmentSets(n,e,r),a=0;a<u.length;a++){for(var s=u[a],c=[],f=0;f<s.segments.length;f++){var h=s.segments[f];c.push({type:0,s:h,pos:Math.min(h[0][r],h[1][r])}),c.push({type:1,s:h,pos:Math.max(h[0][r],h[1][r])})}c.sort(function(t,n){return t.pos-n.pos+t.type-n.type});var l=[],p=0;c.forEach(function(u){0===u.type?(l.push(u.s),p++):p--,0==p&&(t.nudgeSegs(e,r,n,l,i,o),l=[])})}},t.prototype.routeEdges=function(n,e,r,i){var o=this,u=n.map(function(t){return o.route(r(t),i(t))}),a=t.orderEdges(u),s=u.map(function(n){return t.makeSegments(n)});return t.nudgeSegments(s,"x","y",a,e),t.nudgeSegments(s,"y","x",a,e),t.unreverseEdges(s,u),s},t.unreverseEdges=function(t,n){t.forEach(function(t,e){var r=n[e];r.reversed&&(t.reverse(),t.forEach(function(t){t.reverse()}))})},t.angleBetween2Lines=function(t,n){var e=Math.atan2(t[0].y-t[1].y,t[0].x-t[1].x),r=Math.atan2(n[0].y-n[1].y,n[0].x-n[1].x),i=e-r;return(i>Math.PI||i<-Math.PI)&&(i=r-e),i},t.isLeft=function(t,n,e){return(n.x-t.x)*(e.y-t.y)-(n.y-t.y)*(e.x-t.x)<=0},t.getOrder=function(t){for(var n={},e=0;e<t.length;e++){var r=t[e];"undefined"==typeof n[r.l]&&(n[r.l]={}),n[r.l][r.r]=!0}return function(t,e){return"undefined"!=typeof n[t]&&n[t][e]}},t.orderEdges=function(n){for(var e=[],r=0;r<n.length-1;r++)for(var i=r+1;i<n.length;i++){var o,u,a,c=n[r],f=n[i],h=new s(c,f);0!==h.length&&(h.reversed&&(f.reverse(),f.reversed=!0,h=new s(c,f)),(h.si<=0||h.ti<=0)&&(h.si+h.length>=c.length||h.ti+h.length>=f.length)?e.push({l:r,r:i}):(h.si+h.length>=c.length||h.ti+h.length>=f.length?(o=c[h.si+1],a=c[h.si-1],u=f[h.ti-1]):(o=c[h.si+h.length-2],u=c[h.si+h.length],a=f[h.ti+h.length]),e.push(t.isLeft(o,u,a)?{l:i,r:r}:{l:r,r:i})))}return t.getOrder(e)},t.makeSegments=function(t){function n(t){return{x:t.x,y:t.y}}for(var e=function(t,n,e){return Math.abs((n.x-t.x)*(e.y-t.y)-(n.y-t.y)*(e.x-t.x))<.001},r=[],i=n(t[0]),o=1;o<t.length;o++){var u=n(t[o]),a=o<t.length-1?t[o+1]:null;a&&e(i,u,a)||(r.push([i,u]),i=u)}return r},t.prototype.route=function(t,n){var e=this,r=this.nodes[t],i=this.nodes[n];this.obstacles=this.siblingObstacles(r,i);var u={};this.obstacles.forEach(function(t){return u[t.id]=t}),this.passableEdges=this.edges.filter(function(t){var n=e.verts[t.source],r=e.verts[t.target];return!(n.node&&n.node.id in u||r.node&&r.node.id in u)});for(var a=1;a<r.ports.length;a++){var s=r.ports[0].id,c=r.ports[a].id;this.passableEdges.push({source:s,target:c,length:0})}for(var a=1;a<i.ports.length;a++){var s=i.ports[0].id,c=i.ports[a].id;this.passableEdges.push({source:s,target:c,length:0})}var f=function(t){return t.source},h=function(t){return t.target},l=function(t){return t.length},p=new o.Calculator(this.verts.length,this.passableEdges,f,h,l),d=function(t,n,o){var u=e.verts[t],a=e.verts[n],s=e.verts[o],c=Math.abs(s.x-u.x),f=Math.abs(s.y-u.y);return u.node===r&&u.node===a.node||a.node===i&&a.node===s.node?0:c>1&&f>1?1e3:0},g=p.PathFromNodeToNodeWithPrevCost(r.ports[0].id,i.ports[0].id,d),v=g.reverse().map(function(t){return e.verts[t]});return v.push(this.nodes[i.id].ports[0]),v.filter(function(t,n){return!(n<v.length-1&&v[n+1].node===r&&t.node===r||n>0&&t.node===i&&v[n-1].node===i)})},t.getRoutePath=function(n,e,r,i){var o={routepath:"M "+n[0][0].x+" "+n[0][0].y+" ",arrowpath:""};if(n.length>1)for(var u=0;u<n.length;u++){var a=n[u],s=a[1].x,c=a[1].y,f=s-a[0].x,h=c-a[0].y;if(u<n.length-1){Math.abs(f)>0?s-=f/Math.abs(f)*e:c-=h/Math.abs(h)*e,o.routepath+="L "+s+" "+c+" ";var l=n[u+1],p=l[0].x,d=l[0].y,g=l[1].x,v=l[1].y;f=g-p,h=v-d;var y,_,m=t.angleBetween2Lines(a,l)<0?1:0;Math.abs(f)>0?(y=p+f/Math.abs(f)*e,_=d):(y=p,_=d+h/Math.abs(h)*e);var b=Math.abs(y-s),x=Math.abs(_-c);o.routepath+="A "+b+" "+x+" 0 0 "+m+" "+y+" "+_+" "}else{var w,k,M=[s,c];Math.abs(f)>0?(s-=f/Math.abs(f)*i,w=[s,c+r],k=[s,c-r]):(c-=h/Math.abs(h)*i,w=[s+r,c],k=[s-r,c]),o.routepath+="L "+s+" "+c+" ",i>0&&(o.arrowpath="M "+M[0]+" "+M[1]+" L "+w[0]+" "+w[1]+" L "+k[0]+" "+k[1])}}else{var w,k,a=n[0],s=a[1].x,c=a[1].y,f=s-a[0].x,h=c-a[0].y,M=[s,c];Math.abs(f)>0?(s-=f/Math.abs(f)*i,w=[s,c+r],k=[s,c-r]):(c-=h/Math.abs(h)*i,w=[s+r,c],k=[s-r,c]),o.routepath+="L "+s+" "+c+" ",i>0&&(o.arrowpath="M "+M[0]+" "+M[1]+" L "+w[0]+" "+w[1]+" L "+k[0]+" "+k[1])}return o},t}();e.GridRouter=c},{"./rectangle":16,"./shortestpaths":17,"./vpsc":18}],9:[function(t,n,e){"use strict";function r(t,n,e,r,i){function u(t){function n(t){var n=Number.MAX_VALUE,e=Number.MAX_VALUE,i=0,o=0;t.array.forEach(function(t){var u="undefined"!=typeof t.width?t.width:r,a="undefined"!=typeof t.height?t.height:r;u/=2,a/=2,i=Math.max(t.x+u,i),n=Math.min(t.x-u,n),o=Math.max(t.y+a,o),e=Math.min(t.y-a,e)}),t.width=i-n,t.height=o-e}t.forEach(function(t){n(t)})}function a(t){t.forEach(function(t){var n={x:0,y:0};t.array.forEach(function(t){n.x+=t.x,n.y+=t.y}),n.x/=t.array.length,n.y/=t.array.length;var e={x:n.x-t.width/2,y:n.y-t.height/2},r={x:t.x-e.x+g/2-y/2,y:t.y-e.y+v/2-_/2};t.array.forEach(function(t){t.x+=r.x,t.y+=r.y})})}function s(t){var n=Number.POSITIVE_INFINITY,e=0;t.sort(function(t,n){return n.height-t.height}),m=t.reduce(function(t,n){return t.width<n.width?t.width:n.width});for(var r=d=m,i=g=h(t),u=0,a=Number.MAX_VALUE,s=Number.MAX_VALUE,f=-1,l=Number.MAX_VALUE,p=Number.MAX_VALUE;l>m||p>o.FLOAT_EPSILON;){if(1!=f)var d=i-(i-r)/o.GOLDEN_SECTION,a=c(t,d);if(0!=f)var g=r+(i-r)/o.GOLDEN_SECTION,s=c(t,g);if(l=Math.abs(d-g),p=Math.abs(a-s),n>a&&(n=a,e=d),n>s&&(n=s,e=g),a>s?(r=d,d=g,a=s,f=1):(i=g,g=d,s=a,f=0),u++>100)break}c(t,e)}function c(t,n){x=[],y=0,_=0,b=d;for(var e=0;e<t.length;e++){var r=t[e];f(r,n)}return Math.abs(l()-i)}function f(t,n){for(var e=void 0,r=0;r<x.length;r++)if(x[r].space_left>=t.height&&x[r].x+x[r].width+t.width+o.PADDING-n<=o.FLOAT_EPSILON){
e=x[r];break}x.push(t),void 0!==e?(t.x=e.x+e.width+o.PADDING,t.y=e.bottom,t.space_left=t.height,t.bottom=t.y,e.space_left-=t.height+o.PADDING,e.bottom+=t.height+o.PADDING):(t.y=b,b+=t.height+o.PADDING,t.x=p,t.bottom=t.y,t.space_left=t.height),t.y+t.height-_>-o.FLOAT_EPSILON&&(_=t.y+t.height-d),t.x+t.width-y>-o.FLOAT_EPSILON&&(y=t.x+t.width-p)}function h(t){var n=0;return t.forEach(function(t){return n+=t.width+o.PADDING}),n}function l(){return y/_}void 0===i&&(i=1);var p=0,d=0,g=n,v=e,i="undefined"!=typeof i?i:1,r="undefined"!=typeof r?r:0,y=0,_=0,m=0,b=0,x=[];0!=t.length&&(u(t),s(t,i),a(t))}function i(t,n){function e(t,n){if(void 0===r[t.index]){n&&(u++,o.push({array:[]})),r[t.index]=u,o[u-1].array.push(t);var a=i[t.index];if(a)for(var s=0;s<a.length;s++)e(a[s],!1)}}for(var r={},i={},o=[],u=0,a=0;a<n.length;a++){var s=n[a],c=s.source,f=s.target;i[c.index]?i[c.index].push(f):i[c.index]=[f],i[f.index]?i[f.index].push(c):i[f.index]=[c]}for(var a=0;a<t.length;a++){var h=t[a];r[h.index]||e(h,!0)}return o}var o={PADDING:10,GOLDEN_SECTION:(1+Math.sqrt(5))/2,FLOAT_EPSILON:1e-4,MAX_INERATIONS:100};e.applyPacking=r,e.separateGraphs=i},{}],10:[function(t,n,e){"use strict";function r(t){return"undefined"!=typeof t.leaves||"undefined"!=typeof t.groups}var i,o=t("./powergraph"),u=t("./linklengths"),a=t("./descent"),s=t("./rectangle"),c=t("./shortestpaths"),f=t("./geom"),h=t("./handledisconnected");!function(t){t[t.start=0]="start",t[t.tick=1]="tick",t[t.end=2]="end"}(i=e.EventType||(e.EventType={}));var l=function(){function t(){var n=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:t.getSourceIndex,getTargetIndex:t.getTargetIndex,setLength:t.setLinkLength,getType:function(t){return"function"==typeof n._linkType?n._linkType(t):0}}}return t.prototype.on=function(t,n){return this.event||(this.event={}),"string"==typeof t?this.event[i[t]]=n:this.event[t]=n,this},t.prototype.trigger=function(t){this.event&&"undefined"!=typeof this.event[t.type]&&this.event[t.type](t)},t.prototype.kick=function(){for(;!this.tick(););},t.prototype.tick=function(){if(this._alpha<this._threshold)return this._running=!1,this.trigger({type:i.end,alpha:this._alpha=0,stress:this._lastStress}),!0;{var t,n,e=this._nodes.length;this._links.length}for(this._descent.locks.clear(),n=0;e>n;++n)if(t=this._nodes[n],t.fixed){("undefined"==typeof t.px||"undefined"==typeof t.py)&&(t.px=t.x,t.py=t.y);var r=[t.px,t.py];this._descent.locks.add(n,r)}var o=this._descent.rungeKutta();return 0===o?this._alpha=0:"undefined"!=typeof this._lastStress&&(this._alpha=o),this._lastStress=o,this.updateNodePositions(),this.trigger({type:i.tick,alpha:this._alpha,stress:this._lastStress}),!1},t.prototype.updateNodePositions=function(){for(var t,n=this._descent.x[0],e=this._descent.x[1],r=this._nodes.length;r--;)t=this._nodes[r],t.x=n[r],t.y=e[r]},t.prototype.nodes=function(t){if(!t){if(0===this._nodes.length&&this._links.length>0){var n=0;this._links.forEach(function(t){n=Math.max(n,t.source,t.target)}),this._nodes=new Array(++n);for(var e=0;n>e;++e)this._nodes[e]={}}return this._nodes}return this._nodes=t,this},t.prototype.groups=function(t){var n=this;return t?(this._groups=t,this._rootGroup={},this._groups.forEach(function(t){"undefined"==typeof t.padding&&(t.padding=1),"undefined"!=typeof t.leaves&&t.leaves.forEach(function(e,r){"number"==typeof e&&((t.leaves[r]=n._nodes[e]).parent=t)}),"undefined"!=typeof t.groups&&t.groups.forEach(function(e,r){"number"==typeof e&&((t.groups[r]=n._groups[e]).parent=t)})}),this._rootGroup.leaves=this._nodes.filter(function(t){return"undefined"==typeof t.parent}),this._rootGroup.groups=this._groups.filter(function(t){return"undefined"==typeof t.parent}),this):this._groups},t.prototype.powerGraphGroups=function(t){var n=o.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(n.groups),t(n),this},t.prototype.avoidOverlaps=function(t){return arguments.length?(this._avoidOverlaps=t,this):this._avoidOverlaps},t.prototype.handleDisconnected=function(t){return arguments.length?(this._handleDisconnected=t,this):this._handleDisconnected},t.prototype.flowLayout=function(t,n){return arguments.length||(t="y"),this._directedLinkConstraints={axis:t,getMinSeparation:"number"==typeof n?function(){return n}:n},this},t.prototype.links=function(t){return arguments.length?(this._links=t,this):this._links},t.prototype.constraints=function(t){return arguments.length?(this._constraints=t,this):this._constraints},t.prototype.distanceMatrix=function(t){return arguments.length?(this._distanceMatrix=t,this):this._distanceMatrix},t.prototype.size=function(t){return t?(this._canvasSize=t,this):this._canvasSize},t.prototype.defaultNodeSize=function(t){return t?(this._defaultNodeSize=t,this):this._defaultNodeSize},t.prototype.groupCompactness=function(t){return t?(this._groupCompactness=t,this):this._groupCompactness},t.prototype.linkDistance=function(t){return t?(this._linkDistance="function"==typeof t?t:+t,this._linkLengthCalculator=null,this):this._linkDistance},t.prototype.linkType=function(t){return this._linkType=t,this},t.prototype.convergenceThreshold=function(t){return t?(this._threshold="function"==typeof t?t:+t,this):this._threshold},t.prototype.alpha=function(t){return arguments.length?(t=+t,this._alpha?this._alpha=t>0?t:0:t>0&&(this._running||(this._running=!0,this.trigger({type:i.start,alpha:this._alpha=t}),this.kick())),this):this._alpha},t.prototype.getLinkLength=function(t){return"function"==typeof this._linkDistance?+this._linkDistance(t):this._linkDistance},t.setLinkLength=function(t,n){t.length=n},t.prototype.getLinkType=function(t){return"function"==typeof this._linkType?this._linkType(t):0},t.prototype.symmetricDiffLinkLengths=function(t,n){var e=this;return void 0===n&&(n=1),this.linkDistance(function(n){return t*n.length}),this._linkLengthCalculator=function(){return u.symmetricDiffLinkLengths(e._links,e.linkAccessor,n)},this},t.prototype.jaccardLinkLengths=function(t,n){var e=this;return void 0===n&&(n=1),this.linkDistance(function(n){return t*n.length}),this._linkLengthCalculator=function(){return u.jaccardLinkLengths(e._links,e.linkAccessor,n)},this},t.prototype.start=function(n,e,r,i,o){var f=this;void 0===n&&(n=0),void 0===e&&(e=0),void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=!0);var h,l=this.nodes().length,p=l+2*this._groups.length,d=(this._links.length,this._canvasSize[0]),g=this._canvasSize[1],v=new Array(p),y=new Array(p),_=null,m=this._avoidOverlaps;this._nodes.forEach(function(t,n){t.index=n,"undefined"==typeof t.x&&(t.x=d/2,t.y=g/2),v[n]=t.x,y[n]=t.y}),this._linkLengthCalculator&&this._linkLengthCalculator();var b;this._distanceMatrix?b=this._distanceMatrix:(b=new c.Calculator(p,this._links,t.getSourceIndex,t.getTargetIndex,function(t){return f.getLinkLength(t)}).DistanceMatrix(),_=a.Descent.createSquareMatrix(p,function(){return 2}),this._links.forEach(function(t){"number"==typeof t.source&&(t.source=f._nodes[t.source]),"number"==typeof t.target&&(t.target=f._nodes[t.target])}),this._links.forEach(function(n){var e=t.getSourceIndex(n),r=t.getTargetIndex(n);_[e][r]=_[r][e]=n.weight||1}));var x=a.Descent.createSquareMatrix(p,function(t,n){return b[t][n]});if(this._rootGroup&&"undefined"!=typeof this._rootGroup.groups){var h=l,w=function(t,n,e,r){_[t][n]=_[n][t]=e,x[t][n]=x[n][t]=r};this._groups.forEach(function(){w(h,h+1,f._groupCompactness,.1),v[h]=0,y[h++]=0,v[h]=0,y[h++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var k=this._constraints||[];this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,k=k.concat(u.generateDirectedEdgeConstraints(l,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new a.Descent([v,y],x),this._descent.locks.clear();for(var h=0;l>h;++h){var M=this._nodes[h];if(M.fixed){M.px=M.x,M.py=M.y;var E=[M.x,M.y];this._descent.locks.add(h,E)}}if(this._descent.threshold=this._threshold,this.initialLayout(n,v,y),k.length>0&&(this._descent.project=new s.Projection(this._nodes,this._groups,this._rootGroup,k).projectFunctions()),this._descent.run(e),this.separateOverlappingComponents(d,g),this.avoidOverlaps(m),m&&(this._nodes.forEach(function(t,n){t.x=v[n],t.y=y[n]}),this._descent.project=new s.Projection(this._nodes,this._groups,this._rootGroup,k,!0).projectFunctions(),this._nodes.forEach(function(t,n){v[n]=t.x,y[n]=t.y})),this._descent.G=_,this._descent.run(r),i){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=l,this._descent.scaleSnapByMaxH=l!=p;var A=a.Descent.createSquareMatrix(p,function(t,n){return t>=l||n>=l?_[t][n]:0});this._descent.G=A,this._descent.run(i)}return this.updateNodePositions(),this.separateOverlappingComponents(d,g),o?this.resume():this},t.prototype.initialLayout=function(n,e,r){if(this._groups.length>0&&n>0){var i=this._nodes.length,o=this._links.map(function(t){return{source:t.source.index,target:t.target.index}}),u=this._nodes.map(function(t){return{index:t.index}});this._groups.forEach(function(t,n){u.push({index:t.index=i+n})}),this._groups.forEach(function(t){"undefined"!=typeof t.leaves&&t.leaves.forEach(function(n){return o.push({source:t.index,target:n.index})}),"undefined"!=typeof t.groups&&t.groups.forEach(function(n){return o.push({source:t.index,target:n.index})})}),(new t).size(this.size()).nodes(u).links(o).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(n,0,0,0,!1),this._nodes.forEach(function(t){e[t.index]=u[t.index].x,r[t.index]=u[t.index].y})}else this._descent.run(n)},t.prototype.separateOverlappingComponents=function(t,n){var e=this;if(!this._distanceMatrix&&this._handleDisconnected){var r=this._descent.x[0],i=this._descent.x[1];this._nodes.forEach(function(t,n){t.x=r[n],t.y=i[n]});var o=h.separateGraphs(this._nodes,this._links);h.applyPacking(o,t,n,this._defaultNodeSize),this._nodes.forEach(function(t,n){e._descent.x[0][n]=t.x,e._descent.x[1][n]=t.y,t.bounds&&(t.bounds.setXCentre(t.x),t.bounds.setYCentre(t.y))})}},t.prototype.resume=function(){return this.alpha(.1)},t.prototype.stop=function(){return this.alpha(0)},t.prototype.prepareEdgeRouting=function(t){void 0===t&&(t=0),this._visibilityGraph=new f.TangentVisibilityGraph(this._nodes.map(function(n){return n.bounds.inflate(-t).vertices()}))},t.prototype.routeEdge=function(t,n){var e=[],r=new f.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),i={x:t.source.x,y:t.source.y},o={x:t.target.x,y:t.target.y},u=r.addPoint(i,t.source.index),a=r.addPoint(o,t.target.index);r.addEdgeIfVisible(i,o,t.source.index,t.target.index),"undefined"!=typeof n&&n(r);var h=function(t){return t.source.id},l=function(t){return t.target.id},p=function(t){return t.length()},d=new c.Calculator(r.V.length,r.E,h,l,p),g=d.PathFromNodeToNode(u.id,a.id);if(1===g.length||g.length===r.V.length){var v=s.makeEdgeBetween(t.source.innerBounds,t.target.innerBounds,5);e=[v.sourceIntersection,v.arrowStart]}else{for(var y=g.length-2,_=r.V[g[y]].p,m=r.V[g[0]].p,e=[t.source.innerBounds.rayIntersection(_.x,_.y)],b=y;b>=0;--b)e.push(r.V[g[b]].p);e.push(s.makeEdgeTo(m,t.target.innerBounds,5))}return e},t.getSourceIndex=function(t){return"number"==typeof t.source?t.source:t.source.index},t.getTargetIndex=function(t){return"number"==typeof t.target?t.target:t.target.index},t.linkId=function(n){return t.getSourceIndex(n)+"-"+t.getTargetIndex(n)},t.dragStart=function(n){r(n)?t.storeOffset(n,t.dragOrigin(n)):(t.stopNode(n),n.fixed|=2)},t.stopNode=function(t){t.px=t.x,t.py=t.y},t.storeOffset=function(n,e){"undefined"!=typeof n.leaves&&n.leaves.forEach(function(n){n.fixed|=2,t.stopNode(n),n._dragGroupOffsetX=n.x-e.x,n._dragGroupOffsetY=n.y-e.y}),"undefined"!=typeof n.groups&&n.groups.forEach(function(n){return t.storeOffset(n,e)})},t.dragOrigin=function(t){return r(t)?{x:t.bounds.cx(),y:t.bounds.cy()}:t},t.drag=function(n,e){r(n)?("undefined"!=typeof n.leaves&&n.leaves.forEach(function(t){n.bounds.setXCentre(e.x),n.bounds.setYCentre(e.y),t.px=t._dragGroupOffsetX+e.x,t.py=t._dragGroupOffsetY+e.y}),"undefined"!=typeof n.groups&&n.groups.forEach(function(n){return t.drag(n,e)})):(n.px=e.x,n.py=e.y)},t.dragEnd=function(n){r(n)?("undefined"!=typeof n.leaves&&n.leaves.forEach(function(n){t.dragEnd(n),delete n._dragGroupOffsetX,delete n._dragGroupOffsetY}),"undefined"!=typeof n.groups&&n.groups.forEach(t.dragEnd)):n.fixed&=-7},t.mouseOver=function(t){t.fixed|=4,t.px=t.x,t.py=t.y},t.mouseOut=function(t){t.fixed&=-5},t}();e.Layout=l},{"./descent":6,"./geom":7,"./handledisconnected":9,"./linklengths":12,"./powergraph":13,"./rectangle":16,"./shortestpaths":17}],11:[function(t,n,e){"use strict";var r=t("./shortestpaths"),i=t("./descent"),o=t("./rectangle"),u=t("./linklengths"),a=function(){function t(t,n){this.source=t,this.target=n}return t.prototype.actualLength=function(t){var n=this;return Math.sqrt(t.reduce(function(t,e){var r=e[n.target]-e[n.source];return t+r*r},0))},t}();e.Link3D=a;var s=function(){function t(t,n,e){void 0===t&&(t=0),void 0===n&&(n=0),void 0===e&&(e=0),this.x=t,this.y=n,this.z=e}return t}();e.Node3D=s;var c=function(){function t(n,e,r){void 0===r&&(r=1);var i=this;this.nodes=n,this.links=e,this.idealLinkLength=r,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(t.k);for(var o=0;o<t.k;++o)this.result[o]=new Array(n.length);n.forEach(function(n,e){for(var r=0,o=t.dims;r<o.length;r++){var u=o[r];"undefined"==typeof n[u]&&(n[u]=Math.random())}i.result[0][e]=n.x,i.result[1][e]=n.y,i.result[2][e]=n.z})}return t.prototype.linkLength=function(t){return t.actualLength(this.result)},t.prototype.start=function(t){var n=this;void 0===t&&(t=100);var e=this.nodes.length,a=new f;this.useJaccardLinkLengths&&u.jaccardLinkLengths(this.links,a,1.5),this.links.forEach(function(t){return t.length*=n.idealLinkLength});var s=new r.Calculator(e,this.links,function(t){return t.source},function(t){return t.target},function(t){return t.length}).DistanceMatrix(),c=i.Descent.createSquareMatrix(e,function(t,n){return s[t][n]}),h=i.Descent.createSquareMatrix(e,function(){return 2});this.links.forEach(function(t){var n=t.source,e=t.target;return h[n][e]=h[e][n]=1}),this.descent=new i.Descent(this.result,c),this.descent.threshold=.001,this.descent.G=h,this.constraints&&(this.descent.project=new o.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var l=0;l<this.nodes.length;l++){var p=this.nodes[l];p.fixed&&this.descent.locks.add(l,[p.x,p.y,p.z])}return this.descent.run(t),this},t.prototype.tick=function(){this.descent.locks.clear();for(var t=0;t<this.nodes.length;t++){var n=this.nodes[t];n.fixed&&this.descent.locks.add(t,[n.x,n.y,n.z])}return this.descent.rungeKutta()},t}();c.dims=["x","y","z"],c.k=c.dims.length,e.Layout3D=c;var f=function(){function t(){}return t.prototype.getSourceIndex=function(t){return t.source},t.prototype.getTargetIndex=function(t){return t.target},t.prototype.getLength=function(t){return t.length},t.prototype.setLength=function(t,n){t.length=n},t}()},{"./descent":6,"./linklengths":12,"./rectangle":16,"./shortestpaths":17}],12:[function(t,n,e){"use strict";function r(t,n){var e={};for(var r in t)e[r]={};for(var r in n)e[r]={};return Object.keys(e).length}function i(t,n){var e=0;for(var r in t)"undefined"!=typeof n[r]&&++e;return e}function o(t,n){var e={},r=function(t,n){"undefined"==typeof e[t]&&(e[t]={}),e[t][n]={}};return t.forEach(function(t){var e=n.getSourceIndex(t),i=n.getTargetIndex(t);r(e,i),r(i,e)}),e}function u(t,n,e,r){var i=o(t,r);t.forEach(function(t){var o=i[r.getSourceIndex(t)],u=i[r.getTargetIndex(t)];r.setLength(t,1+n*e(o,u))})}function a(t,n,e){void 0===e&&(e=1),u(t,e,function(t,n){return Math.sqrt(r(t,n)-i(t,n))},n)}function s(t,n,e){void 0===e&&(e=1),u(t,e,function(t,n){return Math.min(Object.keys(t).length,Object.keys(n).length)<1.1?0:i(t,n)/r(t,n)},n)}function c(t,n,e,r){var i=f(t,n,r),o={};i.forEach(function(t,n){return t.forEach(function(t){return o[t]=n})});var u=[];return n.forEach(function(t){var n=r.getSourceIndex(t),i=r.getTargetIndex(t),a=o[n],s=o[i];a!==s&&u.push({axis:e,left:n,right:i,gap:r.getMinSeparation(t)})}),u}function f(t,n,e){function r(t){t.index=t.lowlink=o++,u.push(t),t.onStack=!0;for(var n=0,e=t.out;n<e.length;n++){var i=e[n];"undefined"==typeof i.index?(r(i),t.lowlink=Math.min(t.lowlink,i.lowlink)):i.onStack&&(t.lowlink=Math.min(t.lowlink,i.index))}if(t.lowlink===t.index){for(var s=[];u.length&&(i=u.pop(),i.onStack=!1,s.push(i),i!==t););a.push(s.map(function(t){return t.id}))}}for(var i=[],o=0,u=[],a=[],s=0;t>s;s++)i.push({id:s,out:[]});for(var c=0,f=n;c<f.length;c++){var h=f[c],l=i[e.getSourceIndex(h)],p=i[e.getTargetIndex(h)];l.out.push(p)}for(var d=0,g=i;d<g.length;d++){var v=g[d];"undefined"==typeof v.index&&r(v)}return a}e.symmetricDiffLinkLengths=a,e.jaccardLinkLengths=s,e.generateDirectedEdgeConstraints=c,e.stronglyConnectedComponents=f},{}],13:[function(t,n,e){"use strict";function r(t,n,e){t.forAll(function(t){if(t.isLeaf())n.leaves||(n.leaves=[]),n.leaves.push(t.id);else{var i=n;if(t.gid=e.length,!t.isIsland()||t.isPredefined()){if(i={id:t.gid},t.isPredefined())for(var o in t.definition)i[o]=t.definition[o];n.groups||(n.groups=[]),n.groups.push(t.gid),e.push(i)}r(t.children,i,e)}})}function i(t,n){var e={};for(var r in t)r in n&&(e[r]=t[r]);return e}function o(t,n,e,r){for(var i=t.length,o=new a(i,n,e,r);o.greedyMerge(););var u=[],s=o.getGroupHierarchy(u);return u.forEach(function(n){var e=function(e){var r=n[e];"number"==typeof r&&(n[e]=t[r])};e("source"),e("target")}),{groups:s,powerEdges:u}}var u=function(){function t(t,n,e){this.source=t,this.target=n,this.type=e}return t}();e.PowerEdge=u;var a=function(){function t(t,n,e,r){var i=this;if(this.linkAccessor=e,this.modules=new Array(t),this.roots=[],r)this.initModulesFromGroup(r);else{this.roots.push(new c);for(var o=0;t>o;++o)this.roots[0].add(this.modules[o]=new s(o))}this.R=n.length,n.forEach(function(t){var n=i.modules[e.getSourceIndex(t)],r=i.modules[e.getTargetIndex(t)],o=e.getType(t);n.outgoing.add(o,r),r.incoming.add(o,n)})}return t.prototype.initModulesFromGroup=function(t){var n=new c;this.roots.push(n);for(var e=0;e<t.leaves.length;++e){var r=t.leaves[e],i=new s(r.id);this.modules[r.id]=i,n.add(i)}if(t.groups)for(var o=0;o<t.groups.length;++o){var u=t.groups[o],a={};for(var h in u)"leaves"!==h&&"groups"!==h&&u.hasOwnProperty(h)&&(a[h]=u[h]);n.add(new s(-1-o,new f,new f,this.initModulesFromGroup(u),a))}return n},t.prototype.merge=function(t,n,e){void 0===e&&(e=0);var r=t.incoming.intersection(n.incoming),i=t.outgoing.intersection(n.outgoing),o=new c;o.add(t),o.add(n);var u=new s(this.modules.length,i,r,o);this.modules.push(u);var a=function(e,r,i){e.forAll(function(e,o){e.forAll(function(e){var a=e[r];a.add(o,u),a.remove(o,t),a.remove(o,n),t[i].remove(o,e),n[i].remove(o,e)})})};return a(i,"incoming","outgoing"),a(r,"outgoing","incoming"),this.R-=r.count()+i.count(),this.roots[e].remove(t),this.roots[e].remove(n),this.roots[e].add(u),u},t.prototype.rootMerges=function(t){void 0===t&&(t=0);for(var n=this.roots[t].modules(),e=n.length,r=new Array(e*(e-1)),i=0,o=0,u=e-1;u>o;++o)for(var a=o+1;e>a;++a){var s=n[o],c=n[a];r[i]={id:i,nEdges:this.nEdges(s,c),a:s,b:c},i++}return r},t.prototype.greedyMerge=function(){for(var t=0;t<this.roots.length;++t)if(!(this.roots[t].modules().length<2)){var n=this.rootMerges(t).sort(function(t,n){return t.nEdges==n.nEdges?t.id-n.id:t.nEdges-n.nEdges}),e=n[0];if(!(e.nEdges>=this.R))return this.merge(e.a,e.b,t),!0}},t.prototype.nEdges=function(t,n){var e=t.incoming.intersection(n.incoming),r=t.outgoing.intersection(n.outgoing);return this.R-e.count()-r.count()},t.prototype.getGroupHierarchy=function(t){var n=this,e=[],i={};r(this.roots[0],i,e);var o=this.allEdges();return o.forEach(function(r){var i=n.modules[r.source],o=n.modules[r.target];t.push(new u("undefined"==typeof i.gid?r.source:e[i.gid],"undefined"==typeof o.gid?r.target:e[o.gid],r.type))}),e},t.prototype.allEdges=function(){var n=[];return t.getEdges(this.roots[0],n),n},t.getEdges=function(n,e){n.forAll(function(n){n.getEdges(e),t.getEdges(n.children,e)})},t}();e.Configuration=a;var s=function(){function t(t,n,e,r,i){void 0===n&&(n=new f),void 0===e&&(e=new f),void 0===r&&(r=new c),this.id=t,this.outgoing=n,this.incoming=e,this.children=r,this.definition=i}return t.prototype.getEdges=function(t){var n=this;this.outgoing.forAll(function(e,r){e.forAll(function(e){t.push(new u(n.id,e.id,r))})})},t.prototype.isLeaf=function(){return 0===this.children.count()},t.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},t.prototype.isPredefined=function(){return"undefined"!=typeof this.definition},t}();e.Module=s;var c=function(){function t(){this.table={}}return t.prototype.count=function(){return Object.keys(this.table).length},t.prototype.intersection=function(n){var e=new t;return e.table=i(this.table,n.table),e},t.prototype.intersectionCount=function(t){return this.intersection(t).count()},t.prototype.contains=function(t){return t in this.table},t.prototype.add=function(t){this.table[t.id]=t},t.prototype.remove=function(t){delete this.table[t.id]},t.prototype.forAll=function(t){for(var n in this.table)t(this.table[n])},t.prototype.modules=function(){var t=[];return this.forAll(function(n){n.isPredefined()||t.push(n)}),t},t}();e.ModuleSet=c;var f=function(){function t(){this.sets={},this.n=0}return t.prototype.count=function(){return this.n},t.prototype.contains=function(t){var n=!1;return this.forAllModules(function(e){n||e.id!=t||(n=!0)}),n},t.prototype.add=function(t,n){var e=t in this.sets?this.sets[t]:this.sets[t]=new c;e.add(n),++this.n},t.prototype.remove=function(t,n){var e=this.sets[t];e.remove(n),0===e.count()&&delete this.sets[t],--this.n},t.prototype.forAll=function(t){for(var n in this.sets)t(this.sets[n],Number(n))},t.prototype.forAllModules=function(t){this.forAll(function(n){return n.forAll(t)})},t.prototype.intersection=function(n){var e=new t;return this.forAll(function(t,r){if(r in n.sets){var i=t.intersection(n.sets[r]),o=i.count();o>0&&(e.sets[r]=i,e.n+=o)}}),e},t}();e.LinkSets=f,e.getGroups=o},{}],14:[function(t,n,e){"use strict";var r=function(){function t(t){this.elem=t,this.subheaps=[]}return t.prototype.toString=function(t){for(var n="",e=!1,r=0;r<this.subheaps.length;++r){var i=this.subheaps[r];i.elem?(e&&(n+=","),n+=i.toString(t),e=!0):e=!1}return""!==n&&(n="("+n+")"),(this.elem?t(this.elem):"")+n},t.prototype.forEach=function(t){this.empty()||(t(this.elem,this),this.subheaps.forEach(function(n){return n.forEach(t)}))},t.prototype.count=function(){return this.empty()?0:1+this.subheaps.reduce(function(t,n){return t+n.count()},0)},t.prototype.min=function(){return this.elem},t.prototype.empty=function(){return null==this.elem},t.prototype.contains=function(t){if(this===t)return!0;for(var n=0;n<this.subheaps.length;n++)if(this.subheaps[n].contains(t))return!0;return!1},t.prototype.isHeap=function(t){var n=this;return this.subheaps.every(function(e){return t(n.elem,e.elem)&&e.isHeap(t)})},t.prototype.insert=function(n,e){return this.merge(new t(n),e)},t.prototype.merge=function(t,n){return this.empty()?t:t.empty()?this:n(this.elem,t.elem)?(this.subheaps.push(t),this):(t.subheaps.push(this),t)},t.prototype.removeMin=function(t){return this.empty()?null:this.mergePairs(t)},t.prototype.mergePairs=function(n){if(0==this.subheaps.length)return new t(null);if(1==this.subheaps.length)return this.subheaps[0];var e=this.subheaps.pop().merge(this.subheaps.pop(),n),r=this.mergePairs(n);return e.merge(r,n)},t.prototype.decreaseKey=function(n,e,r,i){var o=n.removeMin(i);n.elem=o.elem,n.subheaps=o.subheaps,null!==r&&null!==o.elem&&r(n.elem,n);var u=new t(e);return null!==r&&r(e,u),this.merge(u,i)},t}();e.PairingHeap=r;var i=function(){function t(t){this.lessThan=t}return t.prototype.top=function(){return this.empty()?null:this.root.elem},t.prototype.push=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var e,i,o=0;i=t[o];++o)e=new r(i),this.root=this.empty()?e:this.root.merge(e,this.lessThan);return e},t.prototype.empty=function(){return!this.root||!this.root.elem},t.prototype.isHeap=function(){return this.root.isHeap(this.lessThan)},t.prototype.forEach=function(t){this.root.forEach(t)},t.prototype.pop=function(){if(this.empty())return null;var t=this.root.min();return this.root=this.root.removeMin(this.lessThan),t},t.prototype.reduceKey=function(t,n,e){void 0===e&&(e=null),this.root=this.root.decreaseKey(t,n,e,this.lessThan)},t.prototype.toString=function(t){return this.root.toString(t)},t.prototype.count=function(){return this.root.count()},t}();e.PriorityQueue=i},{}],15:[function(t,n,e){"use strict";var r=this&&this.__extends||function(t,n){function e(){this.constructor=t}for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r]);t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)},i=function(){function t(){this.findIter=function(t){for(var n=this._root,e=this.iterator();null!==n;){var r=this._comparator(t,n.data);if(0===r)return e._cursor=n,e;e._ancestors.push(n),n=n.get_child(r>0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(t){for(var n=this._root;null!==n;){var e=this._comparator(t,n.data);if(0===e)return n.data;n=n.get_child(e>0)}return null},t.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},t.prototype.upperBound=function(t){function n(t,n){return e(n,t)}var e=this._comparator;return this._bound(t,n)},t.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},t.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},t.prototype.iterator=function(){return new o(this)},t.prototype.each=function(t){for(var n,e=this.iterator();null!==(n=e.next());)t(n)},t.prototype.reach=function(t){for(var n,e=this.iterator();null!==(n=e.prev());)t(n)},t.prototype._bound=function(t,n){for(var e=this._root,r=this.iterator();null!==e;){var i=this._comparator(t,e.data);if(0===i)return r._cursor=e,r;r._ancestors.push(e),e=e.get_child(i>0)}for(var o=r._ancestors.length-1;o>=0;--o)if(e=r._ancestors[o],n(t,e.data)>0)return r._cursor=e,r._ancestors.length=o,r;return r._ancestors.length=0,r},t}();e.TreeBase=i;var o=function(){function t(t){this._tree=t,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else if(null===this._cursor.right){var n;do{if(n=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===n)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else if(null===this._cursor.left){var n;do{if(n=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===n)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},t.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},t}();e.Iterator=o;var u=function(){function t(t){this.data=t,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(t){return t?this.right:this.left},t.prototype.set_child=function(t,n){t?this.right=n:this.left=n},t}(),a=function(t){function n(n){var e=t.call(this)||this;return e._root=null,e._comparator=n,e.size=0,e}return r(n,t),n.prototype.insert=function(t){var e=!1;if(null===this._root)this._root=new u(t),e=!0,this.size++;else{var r=new u(void 0),i=!1,o=!1,a=null,s=r,c=null,f=this._root;for(s.right=this._root;;){if(null===f?(f=new u(t),c.set_child(i,f),e=!0,this.size++):n.is_red(f.left)&&n.is_red(f.right)&&(f.red=!0,f.left.red=!1,f.right.red=!1),n.is_red(f)&&n.is_red(c)){var h=s.right===a;f===c.get_child(o)?s.set_child(h,n.single_rotate(a,!o)):s.set_child(h,n.double_rotate(a,!o))}var l=this._comparator(f.data,t);if(0===l)break;o=i,i=0>l,null!==a&&(s=a),a=c,c=f,f=f.get_child(i)}this._root=r.right}return this._root.red=!1,e},n.prototype.remove=function(t){if(null===this._root)return!1;var e=new u(void 0),r=e;r.right=this._root;for(var i=null,o=null,a=null,s=!0;null!==r.get_child(s);){var c=s;o=i,i=r,r=r.get_child(s);var f=this._comparator(t,r.data);if(s=f>0,0===f&&(a=r),!n.is_red(r)&&!n.is_red(r.get_child(s)))if(n.is_red(r.get_child(!s))){var h=n.single_rotate(r,s);i.set_child(c,h),i=h}else if(!n.is_red(r.get_child(!s))){var l=i.get_child(!c);if(null!==l)if(n.is_red(l.get_child(!c))||n.is_red(l.get_child(c))){var p=o.right===i;n.is_red(l.get_child(c))?o.set_child(p,n.double_rotate(i,c)):n.is_red(l.get_child(!c))&&o.set_child(p,n.single_rotate(i,c));var d=o.get_child(p);d.red=!0,r.red=!0,d.left.red=!1,d.right.red=!1}else i.red=!1,l.red=!0,r.red=!0}}return null!==a&&(a.data=r.data,i.set_child(i.right===r,r.get_child(null===r.left)),this.size--),this._root=e.right,null!==this._root&&(this._root.red=!1),null!==a},n.is_red=function(t){return null!==t&&t.red},n.single_rotate=function(t,n){var e=t.get_child(!n);return t.set_child(!n,e.get_child(n)),e.set_child(n,t),t.red=!0,e.red=!1,e},n.double_rotate=function(t,e){return t.set_child(!e,n.single_rotate(t.get_child(!e),!e)),n.single_rotate(t,e)},n}(i);e.RBTree=a},{}],16:[function(t,n,e){"use strict";function r(t){return t.bounds="undefined"!=typeof t.leaves?t.leaves.reduce(function(t,n){return n.bounds.union(t)},b.empty()):b.empty(),"undefined"!=typeof t.groups&&(t.bounds=t.groups.reduce(function(t,n){return r(n).union(t)},t.bounds)),t.bounds=t.bounds.inflate(t.padding),t.bounds}function i(t,n,e){var r=t.rayIntersection(n.cx(),n.cy())||{x:t.cx(),y:t.cy()},i=n.rayIntersection(t.cx(),t.cy())||{x:n.cx(),y:n.cy()},o=i.x-r.x,u=i.y-r.y,a=Math.sqrt(o*o+u*u),s=a-e;return{sourceIntersection:r,targetIntersection:i,arrowStart:{x:r.x+s*o/a,y:r.y+s*u/a}}}function o(t,n,e){var r=n.rayIntersection(t.x,t.y);r||(r={x:n.cx(),y:n.cy()});var i=r.x-t.x,o=r.y-t.y,u=Math.sqrt(i*i+o*o);return{x:r.x-e*i/u,y:r.y-e*o/u}}function u(t,n){return t.pos>n.pos?1:t.pos<n.pos?-1:t.isOpen?-1:n.isOpen?1:0}function a(){return new m.RBTree(function(t,n){return t.pos-n.pos})}function s(t,n,e,r){void 0===r&&(r=!1);var i=t.padding,o="undefined"!=typeof t.groups?t.groups.length:0,u="undefined"!=typeof t.leaves?t.leaves.length:0,a=o?t.groups.reduce(function(t,r){return t.concat(s(r,n,e,!0))},[]):[],f=(r?2:0)+u+o,h=new Array(f),l=new Array(f),p=0,d=function(t,n){l[p]=t,h[p++]=n};if(r){var g=t.bounds,v=n.getCentre(g),y=n.getSize(g)/2,_=n.getOpen(g),m=n.getClose(g),b=v-y+i/2,x=v+y-i/2;t.minVar.desiredPosition=b,d(n.makeRect(_,m,b,i),t.minVar),t.maxVar.desiredPosition=x,d(n.makeRect(_,m,x,i),t.maxVar)}u&&t.leaves.forEach(function(t){return d(t.bounds,t.variable)}),o&&t.groups.forEach(function(t){var e=t.bounds;d(n.makeRect(n.getOpen(e),n.getClose(e),n.getCentre(e),n.getSize(e)),t.minVar)});var w=c(l,h,n,e);return o&&(h.forEach(function(t){t.cOut=[],t.cIn=[]}),w.forEach(function(t){t.left.cOut.push(t),t.right.cIn.push(t);
}),t.groups.forEach(function(t){var e=(t.padding-n.getSize(t.bounds))/2;t.minVar.cIn.forEach(function(t){return t.gap+=e}),t.minVar.cOut.forEach(function(n){n.left=t.maxVar,n.gap+=e})})),a.concat(w)}function c(t,n,e,r){var i,o=t.length,s=2*o;console.assert(n.length>=o);var c=new Array(s);for(i=0;o>i;++i){var f=t[i],h=new x(n[i],f,e.getCentre(f));c[i]=new w(!0,h,e.getOpen(f)),c[i+o]=new w(!1,h,e.getClose(f))}c.sort(u);var l=new Array,p=a();for(i=0;s>i;++i){var d=c[i],h=d.v;if(d.isOpen)p.insert(h),e.findNeighbours(h,p);else{p.remove(h);var g=function(t,n){var i=(e.getSize(t.r)+e.getSize(n.r))/2+r;l.push(new _.Constraint(t.v,n.v,i))},v=function(t,n,e){for(var r,i=h[t].iterator();null!==(r=i[t]());)e(r,h),r[n].remove(h)};v("prev","next",function(t,n){return g(t,n)}),v("next","prev",function(t,n){return g(n,t)})}}return console.assert(0===p.size),l}function f(t,n){var e=function(e,r){for(var i,o=n.findIter(t);null!==(i=o[e]());){var u=i.r.overlapX(t.r);if((0>=u||u<=i.r.overlapY(t.r))&&(t[e].insert(i),i[r].insert(t)),0>=u)break}};e("next","prev"),e("prev","next")}function h(t,n){var e=function(e,r){var i=n.findIter(t)[e]();null!==i&&i.r.overlapX(t.r)>0&&(t[e].insert(i),i[r].insert(t))};e("next","prev"),e("prev","next")}function l(t,n){return c(t,n,k,1e-6)}function p(t,n){return c(t,n,M,1e-6)}function d(t){return s(t,k,1e-6)}function g(t){return s(t,M,1e-6)}function v(t){var n=t.map(function(t){return new _.Variable(t.cx())}),e=l(t,n),r=new _.Solver(n,e);r.solve(),n.forEach(function(n,e){return t[e].setXCentre(n.position())}),n=t.map(function(t){return new _.Variable(t.cy())}),e=p(t,n),r=new _.Solver(n,e),r.solve(),n.forEach(function(n,e){return t[e].setYCentre(n.position())})}var y=this&&this.__extends||function(t,n){function e(){this.constructor=t}for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r]);t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)},_=t("./vpsc"),m=t("./rbtree");e.computeGroupBounds=r;var b=function(){function t(t,n,e,r){this.x=t,this.X=n,this.y=e,this.Y=r}return t.empty=function(){return new t(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},t.prototype.cx=function(){return(this.x+this.X)/2},t.prototype.cy=function(){return(this.y+this.Y)/2},t.prototype.overlapX=function(t){var n=this.cx(),e=t.cx();return e>=n&&t.x<this.X?this.X-t.x:n>=e&&this.x<t.X?t.X-this.x:0},t.prototype.overlapY=function(t){var n=this.cy(),e=t.cy();return e>=n&&t.y<this.Y?this.Y-t.y:n>=e&&this.y<t.Y?t.Y-this.y:0},t.prototype.setXCentre=function(t){var n=t-this.cx();this.x+=n,this.X+=n},t.prototype.setYCentre=function(t){var n=t-this.cy();this.y+=n,this.Y+=n},t.prototype.width=function(){return this.X-this.x},t.prototype.height=function(){return this.Y-this.y},t.prototype.union=function(n){return new t(Math.min(this.x,n.x),Math.max(this.X,n.X),Math.min(this.y,n.y),Math.max(this.Y,n.Y))},t.prototype.lineIntersections=function(n,e,r,i){for(var o=[[this.x,this.y,this.X,this.y],[this.X,this.y,this.X,this.Y],[this.X,this.Y,this.x,this.Y],[this.x,this.Y,this.x,this.y]],u=[],a=0;4>a;++a){var s=t.lineIntersection(n,e,r,i,o[a][0],o[a][1],o[a][2],o[a][3]);null!==s&&u.push({x:s.x,y:s.y})}return u},t.prototype.rayIntersection=function(t,n){var e=this.lineIntersections(this.cx(),this.cy(),t,n);return e.length>0?e[0]:null},t.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y},{x:this.x,y:this.y}]},t.lineIntersection=function(t,n,e,r,i,o,u,a){var s=e-t,c=u-i,f=r-n,h=a-o,l=h*s-c*f;if(0==l)return null;var p=t-i,d=n-o,g=c*d-h*p,v=g/l,y=s*d-f*p,_=y/l;return v>=0&&1>=v&&_>=0&&1>=_?{x:t+v*s,y:n+v*f}:null},t.prototype.inflate=function(n){return new t(this.x-n,this.X+n,this.y-n,this.Y+n)},t}();e.Rectangle=b,e.makeEdgeBetween=i,e.makeEdgeTo=o;var x=function(){function t(t,n,e){this.v=t,this.r=n,this.pos=e,this.prev=a(),this.next=a()}return t}(),w=function(){function t(t,n,e){this.isOpen=t,this.v=n,this.pos=e}return t}(),k={getCentre:function(t){return t.cx()},getOpen:function(t){return t.y},getClose:function(t){return t.Y},getSize:function(t){return t.width()},makeRect:function(t,n,e,r){return new b(e-r/2,e+r/2,t,n)},findNeighbours:f},M={getCentre:function(t){return t.cy()},getOpen:function(t){return t.x},getClose:function(t){return t.X},getSize:function(t){return t.height()},makeRect:function(t,n,e,r){return new b(t,n,e-r/2,e+r/2)},findNeighbours:h};e.generateXConstraints=l,e.generateYConstraints=p,e.generateXGroupConstraints=d,e.generateYGroupConstraints=g,e.removeOverlaps=v;var E=function(t){function n(n,e){var r=t.call(this,0,e)||this;return r.index=n,r}return y(n,t),n}(_.Variable);e.IndexedVariable=E;var A=function(){function t(t,n,e,i,o){void 0===e&&(e=null),void 0===i&&(i=null),void 0===o&&(o=!1);var u=this;if(this.nodes=t,this.groups=n,this.rootGroup=e,this.avoidOverlaps=o,this.variables=t.map(function(t,n){return t.variable=new E(n,1)}),i&&this.createConstraints(i),o&&e&&"undefined"!=typeof e.groups){t.forEach(function(t){if(!t.width||!t.height)return void(t.bounds=new b(t.x,t.x,t.y,t.y));var n=t.width/2,e=t.height/2;t.bounds=new b(t.x-n,t.x+n,t.y-e,t.y+e)}),r(e);var a=t.length;n.forEach(function(t){u.variables[a]=t.minVar=new E(a++,"undefined"!=typeof t.stiffness?t.stiffness:.01),u.variables[a]=t.maxVar=new E(a++,"undefined"!=typeof t.stiffness?t.stiffness:.01)})}}return t.prototype.createSeparation=function(t){return new _.Constraint(this.nodes[t.left].variable,this.nodes[t.right].variable,t.gap,"undefined"!=typeof t.equality?t.equality:!1)},t.prototype.makeFeasible=function(t){var n=this;if(this.avoidOverlaps){var e="x",r="width";"x"===t.axis&&(e="y",r="height");var i=t.offsets.map(function(t){return n.nodes[t.node]}).sort(function(t,n){return t[e]-n[e]}),o=null;i.forEach(function(t){o&&(t[e]=o[e]+o[r]+1),o=t})}},t.prototype.createAlignment=function(t){var n=this,e=this.nodes[t.offsets[0].node].variable;this.makeFeasible(t);var r="x"===t.axis?this.xConstraints:this.yConstraints;t.offsets.slice(1).forEach(function(t){var i=n.nodes[t.node].variable;r.push(new _.Constraint(e,i,t.offset,!0))})},t.prototype.createConstraints=function(t){var n=this,e=function(t){return"undefined"==typeof t.type||"separation"===t.type};this.xConstraints=t.filter(function(t){return"x"===t.axis&&e(t)}).map(function(t){return n.createSeparation(t)}),this.yConstraints=t.filter(function(t){return"y"===t.axis&&e(t)}).map(function(t){return n.createSeparation(t)}),t.filter(function(t){return"alignment"===t.type}).forEach(function(t){return n.createAlignment(t)})},t.prototype.setupVariablesAndBounds=function(t,n,e,r){this.nodes.forEach(function(i,o){i.fixed?(i.variable.weight=i.fixedWeight?i.fixedWeight:1e3,e[o]=r(i)):i.variable.weight=1;var u=(i.width||0)/2,a=(i.height||0)/2,s=t[o],c=n[o];i.bounds=new b(s-u,s+u,c-a,c+a)})},t.prototype.xProject=function(t,n,e){(this.rootGroup||this.avoidOverlaps||this.xConstraints)&&this.project(t,n,t,e,function(t){return t.px},this.xConstraints,d,function(t){return t.bounds.setXCentre(e[t.variable.index]=t.variable.position())},function(t){var n=e[t.minVar.index]=t.minVar.position(),r=e[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.x=n-i,t.bounds.X=r+i})},t.prototype.yProject=function(t,n,e){(this.rootGroup||this.yConstraints)&&this.project(t,n,n,e,function(t){return t.py},this.yConstraints,g,function(t){return t.bounds.setYCentre(e[t.variable.index]=t.variable.position())},function(t){var n=e[t.minVar.index]=t.minVar.position(),r=e[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.y=n-i,t.bounds.Y=r+i})},t.prototype.projectFunctions=function(){var t=this;return[function(n,e,r){return t.xProject(n,e,r)},function(n,e,r){return t.yProject(n,e,r)}]},t.prototype.project=function(t,n,e,i,o,u,a,s,c){this.setupVariablesAndBounds(t,n,i,o),this.rootGroup&&this.avoidOverlaps&&(r(this.rootGroup),u=u.concat(a(this.rootGroup))),this.solve(this.variables,u,e,i),this.nodes.forEach(s),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(c),r(this.rootGroup))},t.prototype.solve=function(t,n,e,r){var i=new _.Solver(t,n);i.setStartingPositions(e),i.setDesiredPositions(r),i.solve()},t}();e.Projection=A},{"./rbtree":15,"./vpsc":18}],17:[function(t,n,e){"use strict";var r=t("./pqueue"),i=function(){function t(t,n){this.id=t,this.distance=n}return t}(),o=function(){function t(t){this.id=t,this.neighbours=[]}return t}(),u=function(){function t(t,n,e){this.node=t,this.prev=n,this.d=e}return t}(),a=function(){function t(t,n,e,r,u){this.n=t,this.es=n,this.neighbours=new Array(this.n);for(var a=this.n;a--;)this.neighbours[a]=new o(a);for(a=this.es.length;a--;){var s=this.es[a],c=e(s),f=r(s),h=u(s);this.neighbours[c].neighbours.push(new i(f,h)),this.neighbours[f].neighbours.push(new i(c,h))}}return t.prototype.DistanceMatrix=function(){for(var t=new Array(this.n),n=0;n<this.n;++n)t[n]=this.dijkstraNeighbours(n);return t},t.prototype.DistancesFromNode=function(t){return this.dijkstraNeighbours(t)},t.prototype.PathFromNodeToNode=function(t,n){return this.dijkstraNeighbours(t,n)},t.prototype.PathFromNodeToNodeWithPrevCost=function(t,n,e){var i=new r.PriorityQueue(function(t,n){return t.d<=n.d}),o=this.neighbours[t],a=new u(o,null,0),s={};for(i.push(a);!i.empty()&&(a=i.pop(),o=a.node,o.id!==n);)for(var c=o.neighbours.length;c--;){var f=o.neighbours[c],h=this.neighbours[f.id];if(!a.prev||h.id!==a.prev.node.id){var l=h.id+","+o.id;if(!(l in s&&s[l]<=a.d)){var p=a.prev?e(a.prev.node.id,o.id,h.id):0,d=a.d+f.distance+p;s[l]=d,i.push(new u(h,a,d))}}}for(var g=[];a.prev;)a=a.prev,g.push(a.node.id);return g},t.prototype.dijkstraNeighbours=function(t,n){void 0===n&&(n=-1);for(var e=new r.PriorityQueue(function(t,n){return t.d<=n.d}),i=this.neighbours.length,o=new Array(i);i--;){var u=this.neighbours[i];u.d=i===t?0:Number.POSITIVE_INFINITY,u.q=e.push(u)}for(;!e.empty();){var a=e.pop();if(o[a.id]=a.d,a.id===n){for(var s=[],c=a;"undefined"!=typeof c.prev;)s.push(c.prev.id),c=c.prev;return s}for(i=a.neighbours.length;i--;){var f=a.neighbours[i],c=this.neighbours[f.id],h=a.d+f.distance;a.d!==Number.MAX_VALUE&&c.d>h&&(c.d=h,c.prev=a,e.reduceKey(c.q,c,function(t,n){return t.q=n}))}}return o},t}();e.Calculator=a},{"./pqueue":14}],18:[function(t,n,e){"use strict";function r(t,n,e){for(var r=t.map(function(t){return new u(t.desiredCenter)}),i=[],a=t.length,s=0;a-1>s;s++){var f=t[s],h=t[s+1];i.push(new o(r[s],r[s+1],(f.size+h.size)/2))}var l=r[0],p=r[a-1],d=t[0].size/2,g=t[a-1].size/2,v=null,y=null;n&&(v=new u(n,1e3*l.weight),r.push(v),i.push(new o(v,l,d))),e&&(y=new u(e,1e3*p.weight),r.push(y),i.push(new o(p,y,g)));var _=new c(r,i);return _.solve(),{newCenters:r.slice(0,t.length).map(function(t){return t.position()}),lowerBound:v?v.position():l.position()-d,upperBound:y?y.position():p.position()+g}}var i=function(){function t(t){this.scale=t,this.AB=0,this.AD=0,this.A2=0}return t.prototype.addVariable=function(t){var n=this.scale/t.scale,e=t.offset/t.scale,r=t.weight;this.AB+=r*n*e,this.AD+=r*n*t.desiredPosition,this.A2+=r*n*n},t.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},t}();e.PositionStats=i;var o=function(){function t(t,n,e,r){void 0===r&&(r=!1),this.left=t,this.right=n,this.gap=e,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=t,this.right=n,this.gap=e,this.equality=r}return t.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},t}();e.Constraint=o;var u=function(){function t(t,n,e){void 0===n&&(n=1),void 0===e&&(e=1),this.desiredPosition=t,this.weight=n,this.scale=e,this.offset=0}return t.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},t.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},t.prototype.visitNeighbours=function(t,n){var e=function(e,r){return e.active&&t!==r&&n(e,r)};this.cOut.forEach(function(t){return e(t,t.right)}),this.cIn.forEach(function(t){return e(t,t.left)})},t}();e.Variable=u;var a=function(){function t(t){this.vars=[],t.offset=0,this.ps=new i(t.scale),this.addVariable(t)}return t.prototype.addVariable=function(t){t.block=this,this.vars.push(t),this.ps.addVariable(t),this.posn=this.ps.getPosn()},t.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var t=0,n=this.vars.length;n>t;++t)this.ps.addVariable(this.vars[t]);this.posn=this.ps.getPosn()},t.prototype.compute_lm=function(t,n,e){var r=this,i=t.dfdv();return t.visitNeighbours(n,function(n,o){var u=r.compute_lm(o,t,e);o===n.right?(i+=u*n.left.scale,n.lm=u):(i+=u*n.right.scale,n.lm=-u),e(n)}),i/t.scale},t.prototype.populateSplitBlock=function(t,n){var e=this;t.visitNeighbours(n,function(n,r){r.offset=t.offset+(r===n.right?n.gap:-n.gap),e.addVariable(r),e.populateSplitBlock(r,t)})},t.prototype.traverse=function(t,n,e,r){var i=this;void 0===e&&(e=this.vars[0]),void 0===r&&(r=null),e.visitNeighbours(r,function(r,o){n.push(t(r)),i.traverse(t,n,o,e)})},t.prototype.findMinLM=function(){var t=null;return this.compute_lm(this.vars[0],null,function(n){!n.equality&&(null===t||n.lm<t.lm)&&(t=n)}),t},t.prototype.findMinLMBetween=function(t,n){this.compute_lm(t,null,function(){});var e=null;return this.findPath(t,null,n,function(t,n){!t.equality&&t.right===n&&(null===e||t.lm<e.lm)&&(e=t)}),e},t.prototype.findPath=function(t,n,e,r){var i=this,o=!1;return t.visitNeighbours(n,function(n,u){o||u!==e&&!i.findPath(u,t,e,r)||(o=!0,r(n,u))}),o},t.prototype.isActiveDirectedPathBetween=function(t,n){if(t===n)return!0;for(var e=t.cOut.length;e--;){var r=t.cOut[e];if(r.active&&this.isActiveDirectedPathBetween(r.right,n))return!0}return!1},t.split=function(n){return n.active=!1,[t.createSplitBlock(n.left),t.createSplitBlock(n.right)]},t.createSplitBlock=function(n){var e=new t(n);return e.populateSplitBlock(n,null),e},t.prototype.splitBetween=function(n,e){var r=this.findMinLMBetween(n,e);if(null!==r){var i=t.split(r);return{constraint:r,lb:i[0],rb:i[1]}}return null},t.prototype.mergeAcross=function(t,n,e){n.active=!0;for(var r=0,i=t.vars.length;i>r;++r){var o=t.vars[r];o.offset+=e,this.addVariable(o)}this.posn=this.ps.getPosn()},t.prototype.cost=function(){for(var t=0,n=this.vars.length;n--;){var e=this.vars[n],r=e.position()-e.desiredPosition;t+=r*r*e.weight}return t},t}();e.Block=a;var s=function(){function t(t){this.vs=t;var n=t.length;for(this.list=new Array(n);n--;){var e=new a(t[n]);this.list[n]=e,e.blockInd=n}}return t.prototype.cost=function(){for(var t=0,n=this.list.length;n--;)t+=this.list[n].cost();return t},t.prototype.insert=function(t){t.blockInd=this.list.length,this.list.push(t)},t.prototype.remove=function(t){var n=this.list.length-1,e=this.list[n];this.list.length=n,t!==e&&(this.list[t.blockInd]=e,e.blockInd=t.blockInd)},t.prototype.merge=function(t){var n=t.left.block,e=t.right.block,r=t.right.offset-t.left.offset-t.gap;n.vars.length<e.vars.length?(e.mergeAcross(n,t,r),this.remove(n)):(n.mergeAcross(e,t,-r),this.remove(e))},t.prototype.forEach=function(t){this.list.forEach(t)},t.prototype.updateBlockPositions=function(){this.list.forEach(function(t){return t.updateWeightedPosition()})},t.prototype.split=function(t){var n=this;this.updateBlockPositions(),this.list.forEach(function(e){var r=e.findMinLM();null!==r&&r.lm<c.LAGRANGIAN_TOLERANCE&&(e=r.left.block,a.split(r).forEach(function(t){return n.insert(t)}),n.remove(e),t.push(r))})},t}();e.Blocks=s;var c=function(){function t(t,n){this.vs=t,this.cs=n,this.vs=t,t.forEach(function(t){t.cIn=[],t.cOut=[]}),this.cs=n,n.forEach(function(t){t.left.cOut.push(t),t.right.cIn.push(t)}),this.inactive=n.map(function(t){return t.active=!1,t}),this.bs=null}return t.prototype.cost=function(){return this.bs.cost()},t.prototype.setStartingPositions=function(t){this.inactive=this.cs.map(function(t){return t.active=!1,t}),this.bs=new s(this.vs),this.bs.forEach(function(n,e){return n.posn=t[e]})},t.prototype.setDesiredPositions=function(t){this.vs.forEach(function(n,e){return n.desiredPosition=t[e]})},t.prototype.mostViolated=function(){for(var n=Number.MAX_VALUE,e=null,r=this.inactive,i=r.length,o=i,u=0;i>u;++u){var a=r[u];if(!a.unsatisfiable){var s=a.slack();if((a.equality||n>s)&&(n=s,e=a,o=u,a.equality))break}}return o!==i&&(n<t.ZERO_UPPERBOUND&&!e.active||e.equality)&&(r[o]=r[i-1],r.length=i-1),e},t.prototype.satisfy=function(){null==this.bs&&(this.bs=new s(this.vs)),this.bs.split(this.inactive);for(var n=null;(n=this.mostViolated())&&(n.equality||n.slack()<t.ZERO_UPPERBOUND&&!n.active);){var e=n.left.block,r=n.right.block;if(e!==r)this.bs.merge(n);else{if(e.isActiveDirectedPathBetween(n.right,n.left)){n.unsatisfiable=!0;continue}var i=e.splitBetween(n.left,n.right);if(null===i){n.unsatisfiable=!0;continue}this.bs.insert(i.lb),this.bs.insert(i.rb),this.bs.remove(e),this.inactive.push(i.constraint),n.slack()>=0?this.inactive.push(n):this.bs.merge(n)}}},t.prototype.solve=function(){this.satisfy();for(var t=Number.MAX_VALUE,n=this.bs.cost();Math.abs(t-n)>1e-4;)this.satisfy(),t=n,n=this.bs.cost();return n},t}();c.LAGRANGIAN_TOLERANCE=-1e-4,c.ZERO_UPPERBOUND=-1e-10,e.Solver=c,e.removeOverlapInOneDimension=r},{}]},{},[1])(1)})},function(t){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n,e){"use strict";function r(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n["default"]=t,n}function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(n,"__esModule",{value:!0}),n.SentenTreeVis=n.SentenTreeModel=n.SentenTreeBuilder=n.WordFilter=n.tokenizer=void 0;var o=e(24);Object.defineProperty(n,"WordFilter",{enumerable:!0,get:function(){return i(o)["default"]}});var u=e(47);Object.defineProperty(n,"SentenTreeBuilder",{enumerable:!0,get:function(){return i(u)["default"]}});var a=e(23);Object.defineProperty(n,"SentenTreeModel",{enumerable:!0,get:function(){return i(a)["default"]}});var s=e(48);Object.defineProperty(n,"SentenTreeVis",{enumerable:!0,get:function(){return i(s)["default"]}});{var c=e(25),f=r(c);n.tokenizer=f}}])});