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.

4 lines
77 KiB

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("lodash"),require("d3"),require("heap"),require("d3kit"),require("webcola/WebCola/cola.js")):"function"==typeof define&&define.amd?define(["lodash","d3","heap","d3kit","webcola/WebCola/cola.js"],n):"object"==typeof exports?exports.SentenTree=n(require("lodash"),require("d3"),require("heap"),require("d3kit"),require("webcola/WebCola/cola.js")):t.SentenTree=n(t._,t.d3,t.Heap,t.d3Kit,t.cola)}(this,function(t,n,e,r,i){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=137)}([function(t,n,e){"use strict";function r(t,n){this._groups=t,this._parents=n}function i(){return new r([[document.documentElement]],C)}var u=e(104),o=e(105),a=e(93),s=e(87),c=e(37),l=e(92),f=e(97),h=e(100),d=e(107),p=e(85),v=e(99),g=e(98),y=e(106),m=e(91),w=e(90),b=e(84),_=e(108),k=e(101),x=e(86),M=e(109),L=e(94),E=e(102),O=e(96),S=e(83),P=e(95),A=e(103),N=e(88),j=e(18),q=e(89);e.d(n,"c",function(){return C}),n.b=r;var C=[null];r.prototype=i.prototype={constructor:r,select:u.a,selectAll:o.a,filter:a.a,data:s.a,enter:c.a,exit:l.a,merge:f.a,order:h.a,sort:d.a,call:p.a,nodes:v.a,node:g.a,size:y.a,empty:m.a,each:w.a,attr:b.a,style:_.a,property:k.a,classed:x.a,text:M.a,html:L.a,raise:E.a,lower:O.a,append:S.a,insert:P.a,remove:A.a,datum:N.a,on:j.b,dispatch:q.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>f)throw new Error("too late");return e}function i(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>d)throw new Error("too late");return e}function u(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("too late");return e}function o(t,n,r){function i(t){r.state=h,r.timer.restart(u,r.delay,r.time),r.delay<=t&&u(t-r.delay)}function u(i){var f,g,m,w;if(r.state!==h)return a();for(f in l)if(w=l[f],w.name===r.name){if(w.state===p)return e.i(s.b)(u);w.state===v?(w.state=y,w.timer.stop(),w.on.call("interrupt",t,t.__data__,w.index,w.group),delete l[f]):n>+f&&(w.state=y,w.timer.stop(),delete l[f])}if(e.i(s.b)(function(){r.state===p&&(r.state=v,r.timer.restart(o,r.delay,r.time),o(i))}),r.state=d,r.on.call("start",t,t.__data__,r.index,r.group),r.state===d){for(r.state=p,c=new Array(m=r.tween.length),f=0,g=-1;m>f;++f)(w=r.tween[f].value.call(t,t.__data__,r.index,r.group))&&(c[++g]=w);c.length=g+1}}function o(n){for(var e=n<r.duration?r.ease.call(null,n/r.duration):(r.timer.restart(a),r.state=g,1),i=-1,u=c.length;++i<u;)c[i].call(null,e);r.state===g&&(r.on.call("end",t,t.__data__,r.index,r.group),a())}function a(){r.state=y,r.timer.stop(),delete l[n];for(var e in l)return;delete t.__transition}var c,l=t.__transition;l[n]=r,r.timer=e.i(s.a)(i,0,r.time)}var a=e(55),s=e(40);e.d(n,"d",function(){return h}),e.d(n,"a",function(){return d}),e.d(n,"b",function(){return g}),e.d(n,"c",function(){return y}),n.g=r,n.e=i,n.f=u;var c=e.i(a.a)("start","end","interrupt"),l=[],f=0,h=1,d=2,p=3,v=4,g=5,y=6;n.h=function(t,n,e,r,i,u){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};o(t,e,{name:n,index:r,group:i,on:c,tween:l,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:f})}},function(t,n,e){"use strict";var r=(e(14),e(79),e(36));e.d(n,"d",function(){return r.a});var i=(e(80),e(15));e.d(n,"c",function(){return i.a});var u=(e(16),e(81),e(82),e(0));e.d(n,"a",function(){return u.a});var o=e(19);e.d(n,"f",function(){return o.a});var a=e(39);e.d(n,"e",function(){return a.a});var s=(e(110),e(111),e(21));e.d(n,"b",function(){return s.a});e(18)},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(o.a)().transition(t)}function u(){return++M}var o=e(2),a=e(119),s=e(120),c=e(121),l=e(122),f=e(123),h=e(124),d=e(125),p=e(126),v=e(127),g=e(128),y=e(129),m=e(130),w=e(131),b=e(132),_=e(133),k=e(134),x=e(8);n.b=r,n.a=i,n.c=u;var M=0,L=o.a.prototype;r.prototype=i.prototype={constructor:r,select:g.a,selectAll:y.a,filter:h.a,merge:d.a,selection:m.a,transition:k.a,call:L.call,nodes:L.nodes,node:L.node,size:L.size,empty:L.empty,each:L.each,on:p.a,attr:a.a,attrTween:s.a,style:w.a,styleTween:b.a,text:_.a,remove:v.a,tween:x.a,delay:c.a,duration:l.a,ease:f.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(54);e.d(n,"d",function(){return i.b}),e.d(n,"c",function(){return i.a});var u=e(53);e.d(n,"b",function(){return u.a})},function(n){n.exports=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 u(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 o(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(31);n.b=u,n.c=o,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 u=e.i(o.e)(this,t),a=u.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}}u.tween=i}}function i(t,n,r){var i,u;if("function"!=typeof r)throw new Error;return function(){var a=e.i(o.e)(this,t),s=a.tween;if(s!==i){u=(i=s).slice();for(var c={name:n,value:r},l=0,f=u.length;f>l;++l)if(u[l].name===n){u[l]=c;break}l===f&&u.push(c)}a.tween=u}}function u(t,n,r){var i=t._id;return t.each(function(){var t=e.i(o.e)(this,i);(t.value||(t.value={}))[n]=r.apply(this,arguments)}),function(t){return e.i(o.f)(t,i).value[n]}}var o=e(1);n.b=u,n.a=function(t,n){var u=this._id;if(t+="",arguments.length<2){for(var a,s=e.i(o.f)(this.node(),u).tween,c=0,l=s.length;l>c;++c)if((a=s[c]).name===t)return a.value;return null}return this.each((null==n?r:i)(u,t,n))}},function(t,n,e){"use strict";function r(){}function i(t){var n;return t=(t+"").trim().toLowerCase(),(n=_.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=k.exec(t))?u(parseInt(n[1],16)):(n=x.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=L.exec(t))?o(n[1],n[2],n[3],n[4]):(n=E.exec(t))?o(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=O.exec(t))?l(n[1],n[2]/100,n[3]/100,1):(n=S.exec(t))?l(n[1],n[2]/100,n[3]/100,n[4]):P.hasOwnProperty(t)?u(P[t]):"transparent"===t?new c(0/0,0/0,0/0,0):null}function u(t){return new c(t>>16&255,t>>8&255,255&t,1)}function o(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 l(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 d(t,n,e,r)}function f(t){if(t instanceof d)return new d(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=i(t)),!t)return new d;if(t instanceof d)return t;t=t.rgb();var n=t.r/255,e=t.g/255,u=t.b/255,o=Math.min(n,e,u),a=Math.max(n,e,u),s=0/0,c=a-o,l=(a+o)/2;return c?(s=n===a?(e-u)/c+6*(u>e):e===a?(u-n)/c+2:(n-e)/c+4,c/=.5>l?a+o:2-a-o,s*=60):c=l>0&&1>l?0:s,new d(s,c,l,t.opacity)}function h(t,n,e,r){return 1===arguments.length?f(t):new d(t,n,e,null==r?1:r)}function d(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function p(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 v=e(10);n.d=r,e.d(n,"f",function(){return g}),e.d(n,"e",function(){return y}),n.a=i,n.c=a,n.h=s,n.b=c,n.g=h;var g=.7,y=1/g,m="\\s*([+-]?\\d+)\\s*",w="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",b="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_=/^#([0-9a-f]{3})$/,k=/^#([0-9a-f]{6})$/,x=new RegExp("^rgb\\("+[m,m,m]+"\\)$"),M=new RegExp("^rgb\\("+[b,b,b]+"\\)$"),L=new RegExp("^rgba\\("+[m,m,m,w]+"\\)$"),E=new RegExp("^rgba\\("+[b,b,b,w]+"\\)$"),O=new RegExp("^hsl\\("+[w,b,b]+"\\)$"),S=new RegExp("^hsla\\("+[w,b,b,w]+"\\)$"),P={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(v.a)(r,i,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),e.i(v.a)(c,s,e.i(v.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?g:Math.pow(g,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(v.a)(d,h,e.i(v.b)(r,{brighter:function(t){return t=null==t?y:Math.pow(y,t),new d(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?g:Math.pow(g,t),new d(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(p(t>=240?t-240:t+120,i,r),p(t,i,r),p(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(29),e(12),e(30),e(32),e(7));e.d(n,"b",function(){return r.a});var i=(e(33),e(73),e(35));e.d(n,"d",function(){return i.a});var u=e(75);e.d(n,"a",function(){return u.a}),e.d(n,"e",function(){return u.b});var o=(e(77),e(34));e.d(n,"c",function(){return o.a});e(70),e(71),e(69),e(68),e(72)},function(t,n){"use strict";function e(t,n,e,r,i){var u=t*t,o=u*t;return((1-3*t+3*u-o)*n+(4-6*u+3*o)*e+(1+3*t+3*u-3*o)*r+o*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),u=t[i],o=t[i+1],a=i>0?t[i-1]:2*u-o,s=n-1>i?t[i+2]:2*o-u;return e((r-i/n)*n,a,u,o,s)}}},function(t,n,e){"use strict";var r=e(4),i=e(34),u=e(29),o=e(32),a=e(7),s=e(33),c=e(35),l=e(31);n.a=function(t,n){var f,h=typeof n;return null==n||"boolean"===h?e.i(l.a)(n):("number"===h?a.a:"string"===h?(f=e.i(r.a)(n))?(n=f,i.a):c.a:n instanceof r.a?i.a:n instanceof Date?o.a:Array.isArray(n)?u.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===o.a&&n.documentElement.namespaceURI===o.a?n.createElement(t):n.createElementNS(e,t)}}function i(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var u=e(15),o=e(16);n.a=function(t){var n=e.i(u.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.b.hasOwnProperty(n)?{space:r.b[n],local:t}:t}},function(t,n,e){"use strict";e.d(n,"a",function(){return r});var r="http://www.w3.org/1999/xhtml";n.b={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=c;c=r;try{t.call(this,this.__data__,n,e)}finally{c=i}}}function u(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 o(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,u=n.length;u>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 u=s.hasOwnProperty(t.type)?r:i;return function(r,i,o){var a,s=this.__on,c=u(n,i,o);if(s)for(var l=0,f=s.length;f>l;++l)if((a=s[l]).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]}}e.d(n,"a",function(){return c});var s={},c=null;if("undefined"!=typeof document){var l=document.documentElement;"onmouseenter"in l||(s={mouseenter:"mouseover",mouseleave:"mouseout"})}n.b=function(t,n,e){var r,i,s=u(t+""),c=s.length;{if(!(arguments.length<2)){for(l=n?a:o,null==e&&(e=!1),r=0;c>r;++r)this.each(l(s[r],n,e));return this}var l=this.node().__on;if(l)for(var f,h=0,d=l.length;d>h;++h)for(r=0,f=l[h];c>r;++r)if((i=s[r]).type===f.type&&i.name===f.name)return f.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 m||(_(r),m=b.now()+w)}function r(){m=0}function i(){this._call=this._time=this._next=null}function u(t,n,e){var r=new i;return r.restart(t,n,e),r}function o(){e(),++d;for(var t,n=f;n;)(t=m-n._time)>=0&&n._call.call(null,t),n=n._next;--d}function a(){m=(y=b.now())+w,d=p=0;try{o()}finally{d=0,c(),m=0}}function s(){var t=b.now(),n=t-y;n>g&&(w-=n,y=t)}function c(){for(var t,n,e=f,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:f=n);h=t,l(r)}function l(t){if(!d){p&&(p=clearTimeout(p));var n=t-m;n>24?(1/0>t&&(p=setTimeout(a,n)),v&&(v=clearInterval(v))):(v||(y=m,v=setInterval(s,g)),d=1,_(a))}}n.c=e,n.b=i,n.a=u;var f,h,d=0,p=0,v=0,g=1e3,y=0,m=0,w=0,b="object"==typeof performance&&performance.now?performance:Date,_="function"==typeof requestAnimationFrame?requestAnimationFrame:function(t){setTimeout(t,17)};i.prototype=u.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||h===this||(h?h._next=this:f=this,h=this),this._call=t,this._time=r,l()},stop:function(){this._call&&(this._call=null,this._time=1/0,l())}}},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 u(t,n,e,r,i){for(var u=-1,o=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],u={},o=r;i>o;o++){var a=t.tokens[o];u[a]||(u[a]=!0,a in e?e[a]+=t.count:e[a]=t.count)}});var c=null,l=0,f=s>0,h=f?Object.keys(e):Object.keys(e).filter(function(t){return!i[t].startsWith("#")});h.forEach(function(t){var n=e[t];r>n&&n>l&&(c=+t,l=n)}),l>a&&(u=n,o=c,a=l)}),l=0;s>=l;l++)c(l);var f=null,h=null;if(a>=e){f={size:0,DBs:[]},h={size:0,DBs:[]};for(var d=t.words,p=0;p<t.DBs.length;p++){var v=t.DBs[p],g=0===u?0:v.seqIndices[u-1]+1,y=u===d.length?v.tokens.length:v.seqIndices[u],m=v.tokens.slice(g,y).indexOf(o);0>m?(f.DBs.push(v),f.size+=v.count):(m+=g,v.seqIndices.splice(u,0,m),h.DBs.push(v),h.size+=v.count)}}return{word:o,pos:u,count:a,s0:f,s1:h}}function o(t,n,e,r,i,o,a){t.words&&t.words.length>0&&(t.graph.nodes=t.graph.nodes.concat(t.words),e-=t.words.length);var s=new h["default"](function(t,n){return n.size-t.size});s.push(t);for(var c=[];!s.empty()&&e>0;){var l=s.pop(),f=l.graph,d=l.r,v=l.l;if(!d&&!v){var g=u(l,o,r,i,a);d=g.s0,v=g.s1;var y=g.word,m=g.pos,w=g.count;if(r>w)c.push(l);else{f||(f=new p["default"](r,i),n.push(f));var b={id:f.totalNodeCnt++,entity:a[y],freq:w,topEntries:v.DBs.slice(0,5),seq:v},_=l.words.slice();_.splice(m,0,b),d.words=l.words,v.words=_,v.newWord=b,d.graph=l.graph,v.graph=f}}v&&(v.graph.nodes.push(v.newWord),e--),l.l=v,l.r=d,v&&s.push(v),d&&d.size>=r&&s.push(d)}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],u=i.id,o=n[r+1].id;u in e||(e[u]={}),o in e[u]?e[u][o]+=t.size:e[u][o]=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,u=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done)&&(e.push(o.value),!n||e.length!==n);r=!0);}catch(s){i=!0,u=s}finally{try{!r&&a["return"]&&a["return"]()}finally{if(i)throw u}}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}}(),l=e(5),f=e(44),h=r(f),d=e(48),p=r(d),v=150,g=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,t);var r=e.termWeights,u=void 0===r?{}:r,c=e.minSupportCount,l=void 0===c?2:c,f=e.minSupportRatio,h=void 0===f?.001:f,d=e.maxSupportRatio,p=void 0===d?.75:d;this.options=e;var g=n.itemset,y=n.entries;this.tokenizedData=n,this.terms=n.encodeTermWeights(u);var m=n.computeSize();this.supportRange=[Math.max(m*h,l),m*p];var w=s(this.supportRange,2),b=w[0],_=w[1];this.rootSeq={words:[],newWord:null,graph:null,size:m,DBs:y};var k=[],x=o(this.rootSeq,k,v,b,_,this.terms,g);this.graphs=k.filter(function(t){return t.nodes.length>2}).slice(0,10),a(this.graphs,x)}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],u=o(n,this.graphs,v,r,i,this.terms,this.tokenizedData.itemset);return a(this.graphs,u),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=[l.min(e.map(function(t){return t.freqRange[0]})),l.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"]=g},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}}(),u=e(5),o=["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=u.uniq(o.concat(a).concat(s)),l=function(){function t(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.includeWords,o=void 0===i?[]:i,a=e.excludeWords,s=void 0===a?[]:a,l=e.includeDefault,f=void 0===l?!0:l;r(this,t),this.stopWords=f?c:[],o&&o.length>0&&(this.stopWords=u.uniq(this.stopWords.concat(o))),s&&s.length>0&&!function(){var t=u.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"]=l;var f=null;l.getDefault=function(){return f||(f=new l),f}},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}}(),u=e(5),o=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=u.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=u.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:u.min(n.map(function(t){return t.data.id})),entity:n[0].data.entity,freq:u.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"]=o},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";var r=e(13);n.a=function(t,n){var i,u=n?n.length:0,o=t?Math.min(u,t.length):0,a=new Array(u),s=new Array(u);for(i=0;o>i;++i)a[i]=e.i(r.a)(t[i],n[i]);for(;u>i;++i)s[i]=n[i];return function(t){for(i=0;o>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 u=Math.floor(((i%=1)<0?++i:i)*n),o=t[(u+n-1)%n],a=t[u%n],s=t[(u+1)%n],c=t[(u+2)%n];return e.i(r.b)((i-u/n)*n,o,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,u={},o={};(null===t||"object"!=typeof t)&&(t={}),(null===n||"object"!=typeof n)&&(n={});for(i in n)i in t?u[i]=e.i(r.a)(t[i],n[i]):o[i]=n[i];return function(t){for(i in u)o[i]=u[i](t);return o}}},function(t,n,e){"use strict";function r(t){return function(n){var r,u,o=n.length,a=new Array(o),s=new Array(o),c=new Array(o);for(r=0;o>r;++r)u=e.i(i.f)(n[r]),a[r]=u.r||0,s[r]=u.g||0,c[r]=u.b||0;return a=t(a),s=t(s),c=t(c),u.opacity=1,function(t){return u.r=a(t),u.g=s(t),u.b=c(t),u+""}}}var i=e(4),u=e(12),o=e(30),a=e(6);n.a=function s(t){function n(t,n){var u=r((t=e.i(i.f)(t)).r,(n=e.i(i.f)(n)).r),o=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=u(n),t.g=o(n),t.b=s(n),t.opacity=c(n),t+""}}var r=e.i(a.c)(t);return n.gamma=s,n}(1);r(u.a),r(o.a)},function(t,n,e){"use strict";function r(t){return function(){return t}}function i(t){return function(n){return t(n)+""}}var u=e(7),o=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(o.source,"g");n.a=function(t,n){var s,c,l,f=o.lastIndex=a.lastIndex=0,h=-1,d=[],p=[];for(t+="",n+="";(s=o.exec(t))&&(c=a.exec(n));)(l=c.index)>f&&(l=n.slice(f,l),d[h]?d[h]+=l:d[++h]=l),(s=s[0])===(c=c[0])?d[h]?d[h]+=c:d[++h]=c:(d[++h]=null,p.push({i:h,x:e.i(u.a)(s,c)})),f=a.lastIndex;return f<n.length&&(l=n.slice(f),d[h]?d[h]+=l:d[++h]=l),d.length<2?p[0]?i(p[0].x):r(n):(n=p.length,function(t){for(var e,r=0;n>r;++r)d[(e=p[r]).i]=e.x(t);return d.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(38),u=e(0);n.b=r,n.a=function(){return new u.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(113);e.d(n,"b",function(){return i.a});e(112)},function(t,n,e){"use strict";var r=e(1);n.a=function(t,n){var e,i,u,o=t.__transition,a=!0;if(o){n=null==n?null:n+"";for(u in o)(e=o[u]).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 o[u]):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 u;return("number"==typeof n?i.b:n instanceof r.a?i.c:(u=e.i(r.a)(n))?(n=u,i.c):i.d)(t,n)}},function(t){t.exports=n},function(t){t.exports=e},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 u=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(23),a=r(o),s=e(50),c=r(s),l=e(24),f=r(l),h=e(25),d=function(t){return t},p=function(){function t(){i(this,t),this._tokenize=h.tokenize,this._transformToken=d;var n=f["default"].getDefault();this._filterToken=function(t){return!n.test(t)}}return u(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"]=p},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 u(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(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 m(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:m(i,n,e)}if("value"in r)return r.value;var u=r.get;return void 0===u?void 0:u.call(e)};e(114);var l=e(43),f=i(l),h=e(135),d=e(5),p=e(51),v=r(p),g=e(52),y=function(t){function n(t,e){u(this,n);var r=o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t,e));return r.layers.create(["link","node"]),r.fontSizeScale=f.scaleSqrt().clamp(!0),r.strokeSizeScale=f.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 h.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,u=r.top,o=r.left,a=r.bottom,s=r.right;this.sNodeGraphs.each(function(e){var r=this.getBBox(),u=r.width,o=r.height;n=Math.max(u,n),e.x=-r.x,e.y=-r.y+t,t+=o+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+o+s,Math.max(0,t-i)+u+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 g.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=d.keyBy(d.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 v["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}(h.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 u=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),a=e(44),s=r(a),c=e(26),l=r(c),f=e(27),h=r(f),d=function(){function t(n,e){i(this,t),this.nodes=n,this.links=e,this.linkLookup=o.keyBy(this.links,function(t){return t.getKey()})}return u(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 u=e.rightLinks.map(function(t){return t.target});r=r.concat(this.groupMergeableNodes(u))}if(r.length>0){var o=r.map(function(n){return t.mergeNodes(n)});o.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 o.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],u=0;u<e.length;u++){var o=e[u];o.every(function(t){return!n[[t.id,i.id].join(",")]&&!n[[t.id,i.id].join(",")]})?o.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=h["default"].merge(t);return n.id=this.nodes.length,this.nodes.push(n),t.forEach(function(t){t.merged=!0}),n.rightLinks=o.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 l["default"](n,t[0].target,o.sum(t.map(function(t){return t.freq})));return e.leftLinks.push(r),r}).values().value(),this.addLinks(n.rightLinks),n.leftLinks=o.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 l["default"](t[0].source,n,o.sum(t.map(function(t){return t.freq})));return e.rightLinks.push(r),r}).values().value(),this.addLinks(n.leftLinks),n}}]),t}();n["default"]=d},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 u=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(49),a=r(o),s=function(){function t(n,e){i(this,t),this.nodes=[],this.linkadj=[],this.minSupport=n,this.maxSupport=e,this.totalNodeCnt=0}return u(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 u=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),a=e(47),s=r(a),c=e(26),l=r(c),f=e(27),h=r(f),d=function(){function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bundle,u=void 0===r?!0:r,a=e.highFrequencyOnTop,c=void 0===a?!0:a;i(this,t),this.options={bundle:u,highFrequencyOnTop:c},this.minSupport=n.minSupport,this.maxSupport=n.maxSupport;var f=n.nodes.map(function(t){return new h["default"](t)}),d=[];if(Object.keys(n.linkadj).forEach(function(t){var e=f[t],r=n.linkadj[t];Object.keys(r).forEach(function(t){var n=f[t],i=new l["default"](e,n,r[t]);d.push(i),e.rightLinks.push(i),n.leftLinks.push(i)})}),this.assignNodeIds(f),u){var p=new s["default"](f,d).bundle();this.nodes=p.nodes,this.links=p.links,this.assignNodeIds(this.nodes)}else this.nodes=f,this.links=d;this.linkLookup=o.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 v=this.nodes.map(function(t){return t.data.freq});this.freqRange=[o.min(v),o.max(v)],this.globalFreqRange=this.freqRange;var g=this.links.filter(function(t){return t.isTheOnlyBridge()}).map(function(t){return t.toOnlyBridgeConstraint()});this.baseConstraints=g.concat(this.getAlignmentConstraints())}return u(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 u=r.computeRightConstraints();u&&t.push(u);var o=r.getRightNodes();o.length>0&&(e=e.concat(o))}}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 l=s.computeLeftConstraints();l&&t.push(l);var f=s.getLeftNodes();f.length>0&&(e=e.concat(f))}}}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(o.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"]=d},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}}(),u=e(5),o=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,u=t.rawText;return{id:e,count:r,tokens:i.map(function(t){return n.encode(t)}),rawText:u,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 u.sum(this.entries.map(function(t){return t.count}))}}]),t}();n["default"]=o},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 u=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(43),a=r(o),s=e(136),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 u(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 u)return new u(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,o=(g*i+p*n-v*r)/(g+p-v),c=i-o,l=(d*(r-o)-f*c)/h,y=Math.sqrt(l*l+c*c)/(d*o*(1-o)),m=y?Math.atan2(l,c)*s.a-120:0/0;return new u(0>m?m+360:m,y,o,t.opacity)}function i(t,n,e,i){return 1===arguments.length?r(t):new u(t,n,e,null==i?1:i)}function u(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}var o=e(10),a=e(9),s=e(28);n.a=i;var c=-.14861,l=1.78277,f=-.29227,h=-.90649,d=1.97294,p=d*h,v=d*l,g=l*f-h*c;e.i(o.a)(u,i,e.i(o.b)(a.d,{brighter:function(t){return t=null==t?a.e:Math.pow(a.e,t),new u(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?a.f:Math.pow(a.f,t),new u(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+l*i)),255*(n+e*(f*r+h*i)),255*(n+e*d*r),this.opacity)}}))},function(t,n,e){"use strict";function r(t){if(t instanceof u)return new u(t.l,t.a,t.b,t.opacity);if(t instanceof h){var n=t.h*v.b;return new u(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof p.b||(t=e.i(p.c)(t));var r=c(t.r),i=c(t.g),a=c(t.b),s=o((.4124564*r+.3575761*i+.1804375*a)/y),l=o((.2126729*r+.7151522*i+.072175*a)/m),f=o((.0193339*r+.119192*i+.9503041*a)/w);return new u(116*l-16,500*(s-l),200*(l-f),t.opacity)}function i(t,n,e,i){return 1===arguments.length?r(t):new u(t,n,e,null==i?1:i)}function u(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function o(t){return t>x?Math.pow(t,1/3):t/k+b}function a(t){return t>_?t*t*t:k*(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 l(t){if(t instanceof h)return new h(t.h,t.c,t.l,t.opacity);t instanceof u||(t=r(t));var n=Math.atan2(t.b,t.a)*v.a;return new h(0>n?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function f(t,n,e,r){return 1===arguments.length?l(t):new h(t,n,e,null==r?1:r)}function h(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}var d=e(10),p=e(9),v=e(28);n.b=i,n.a=f;var g=18,y=.95047,m=1,w=1.08883,b=4/29,_=6/29,k=3*_*_,x=_*_*_;e.i(d.a)(u,i,e.i(d.b)(p.d,{brighter:function(t){return new u(this.l+g*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new u(this.l-g*(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=m*a(t),n=y*a(n),e=w*a(e),new p.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(d.a)(h,f,e.i(d.b)(p.d,{brighter:function(t){return new h(this.h,this.c,this.l+g*(null==t?1:t),this.opacity)},darker:function(t){return new h(this.h,this.c,this.l-g*(null==t?1:t),this.opacity)},rgb:function(){return r(this).rgb()}}))},function(t,n,e){"use strict";var r=e(56);e.d(n,"a",function(){return r.a})},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 u(t,n){for(var e,r=0,i=t.length;i>r;++r)if((e=t[r]).name===n)return e.value}function o(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]=o(r[e],t.name,n);else if(null==n)for(e in r)r[e]=o(r[e],t.name,null);return this}for(;++s<c;)if((e=(t=a[s]).type)&&(e=u(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),u=0;e>u;++u)i[u]=arguments[u+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],u=0,e=r.length;e>u;++u)r[u].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,u=r.length;u>i;++i)r[i].value.apply(n,e)}},n.a=e},function(t,n,e){"use strict";var r=(e(64),e(66),e(61));e.d(n,"a",function(){return r.a});e(65),e(67),e(63),e(60),e(59),e(58),e(62)},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((u-t)/e)}var u=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+u)/e)}var u=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 u(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 u(n,e*t)},r.period=function(t){return u(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 o(n,o){var a=t((n=e.i(i.b)(n)).h,(o=e.i(i.b)(o)).h),s=e.i(u.a)(n.s,o.s),c=e.i(u.a)(n.l,o.l),l=e.i(u.a)(n.opacity,o.opacity);return function(t){return n.h=a(t),n.s=s(t),n.l=c(Math.pow(t,r)),n.opacity=l(t),n+""}}return r=+r,o.gamma=n,o}(1)}{var i=e(4),u=e(6);r(u.b),r(u.a)}},function(t,n,e){"use strict";function r(t){return function(n,r){var o=t((n=e.i(i.c)(n)).h,(r=e.i(i.c)(r)).h),a=e.i(u.a)(n.c,r.c),s=e.i(u.a)(n.l,r.l),c=e.i(u.a)(n.opacity,r.opacity);return function(t){return n.h=o(t),n.c=a(t),n.l=s(t),n.opacity=c(t),n+""}}}{var i=e(4),u=e(6);r(u.b),r(u.a)}},function(t,n,e){"use strict";function r(t){return function(n,r){var o=t((n=e.i(i.e)(n)).h,(r=e.i(i.e)(r)).h),a=e.i(u.a)(n.s,r.s),s=e.i(u.a)(n.l,r.l),c=e.i(u.a)(n.opacity,r.opacity);return function(t){return n.h=o(t),n.s=a(t),n.l=s(t),n.opacity=c(t),n+""}}}{var i=e(4),u=e(6);r(u.b),r(u.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,u,o){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:u,translateY:o,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,u){function o(t){return t.length?t.pop()+" ":""}function a(t,u,o,a,s,c){if(t!==o||u!==a){var l=s.push("translate(",null,n,null,r);c.push({i:l-4,x:e.i(i.a)(t,o)},{i:l-2,x:e.i(i.a)(u,a)})}else(o||a)&&s.push("translate("+o+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(o(r)+"rotate(",null,u)-2,x:e.i(i.a)(t,n)})):n&&r.push(o(r)+"rotate("+n+u)}function c(t,n,r,a){t!==n?a.push({i:r.push(o(r)+"skewX(",null,u)-2,x:e.i(i.a)(t,n)}):n&&r.push(o(r)+"skewX("+n+u)}function l(t,n,r,u,a,s){if(t!==r||n!==u){var c=a.push(o(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,u)})}else(1!==r||1!==u)&&a.push(o(a)+"scale("+r+","+u+")")}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),l(n.scaleX,n.scaleY,e.scaleX,e.scaleY,r,i),n=e=null,function(t){for(var n,e=-1,u=i.length;++e<u;)r[(n=i[e]).i]=n.x(t);return r.join("")}}}var i=e(7),u=e(76);e.d(n,"a",function(){return o}),e.d(n,"b",function(){return a});var o=r(u.a,"px, ","px)","deg)"),a=r(u.b,", ",")",")")},function(t,n,e){"use strict";function r(t){return"none"===t?u.a:(o||(o=document.createElement("DIV"),a=document.documentElement,s=document.defaultView),o.style.transform=t,t=s.getComputedStyle(a.appendChild(o),null).getPropertyValue("transform"),a.removeChild(o),t=t.slice(7,-1).split(","),e.i(u.b)(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function i(t){return null==t?u.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(u.b)(t.a,t.b,t.c,t.d,t.e,t.f)):u.a)}var u=e(74);n.a=r,n.b=i;var o,a,s,c},function(){"use strict";Math.SQRT2},function(t,n){"use strict";n.a=function(t){return function(){return t}}},function(){"use strict";function t(){return new n}function n(){this._="@"+(++e).toString(36)}var e=0;n.prototype=t.prototype={constructor:n,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";e(20),e(17)},function(t,n,e){"use strict";e(0)},function(t,n,e){"use strict";e(0)},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 u(t,n){return function(){this.setAttribute(t,n)}}function o(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 l=e.i(c.a)(t);if(arguments.length<2){var f=this.node();return l.local?f.getAttributeNS(l.space,l.local):f.getAttribute(l)}return this.each((null==n?l.local?i:r:"function"==typeof n?l.local?s:a:l.local?o:u)(l,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 u(t,n){for(var e=r(t),i=-1,u=n.length;++i<u;)e.add(n[i])}function o(t,n){for(var e=r(t),i=-1,u=n.length;++i<u;)e.remove(n[i])}function a(t){return function(){u(this,t)}}function s(t){return function(){o(this,t)}}function c(t,n){return function(){(n.apply(this,arguments)?u:o)(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 u=r(this.node()),o=-1,l=i.length;++o<l;)if(!u.contains(i[o]))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,u){for(var a,s=0,c=n.length,l=u.length;l>s;++s)(a=n[s])?(a.__data__=u[s],r[s]=a):e[s]=new o.b(t,u[s]);for(;c>s;++s)(a=n[s])&&(i[s]=a);
}function i(t,n,e,r,i,u,a){var c,l,f,h={},d=n.length,p=u.length,v=new Array(d);for(c=0;d>c;++c)(l=n[c])&&(v[c]=f=s+a.call(l,l.__data__,c,n),f in h?i[c]=l:h[f]=l);for(c=0;p>c;++c)f=s+a.call(t,u[c],c,u),(l=h[f])?(r[c]=l,l.__data__=u[c],h[f]=null):e[c]=new o.b(t,u[c]);for(c=0;d>c;++c)(l=n[c])&&h[v[c]]===l&&(i[c]=l)}var u=e(0),o=e(37),a=e(78),s="$";n.a=function(t,n){if(!t)return m=new Array(this.size()),p=-1,this.each(function(t){m[++p]=t}),m;var o=n?i:r,s=this._parents,c=this._groups;"function"!=typeof t&&(t=e.i(a.a)(t));for(var l=c.length,f=new Array(l),h=new Array(l),d=new Array(l),p=0;l>p;++p){var v=s[p],g=c[p],y=g.length,m=t.call(v,v&&v.__data__,p,s),w=m.length,b=h[p]=new Array(w),_=f[p]=new Array(w),k=d[p]=new Array(y);o(v,g,b,_,k,m,n);for(var x,M,L=0,E=0;w>L;++L)if(x=b[L]){for(L>=E&&(E=L+1);!(M=_[E])&&++E<w;);x._next=M||null}}return f=new u.b(f,s),f._enter=h,f._exit=d,f}},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(o.a)(t),u=i.CustomEvent;u?u=new u(n,r):(u=i.document.createEvent("Event"),r?(u.initEvent(n,r.bubbles,r.cancelable),u.detail=r.detail):u.initEvent(n,!1,!1)),t.dispatchEvent(u)}function i(t,n){return function(){return r(this,t,n)}}function u(t,n){return function(){return r(this,t,n.apply(this,arguments))}}var o=e(21);n.a=function(t,n){return this.each(("function"==typeof n?u: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,u=n[e],o=0,a=u.length;a>o;++o)(i=u[o])&&t.call(i,i.__data__,o,u);return this}},function(t,n){"use strict";n.a=function(){return!this.node()}},function(t,n,e){"use strict";var r=e(38),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(36);n.a=function(t){"function"!=typeof t&&(t=e.i(i.a)(t));for(var n=this._groups,u=n.length,o=new Array(u),a=0;u>a;++a)for(var s,c=n[a],l=c.length,f=o[a]=[],h=0;l>h;++h)(s=c[h])&&t.call(s,s.__data__,h,c)&&f.push(s);return new r.b(o,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),u=e(19);n.a=function(t,n){var o="function"==typeof t?t:e.i(i.a)(t),a=null==n?r:"function"==typeof n?n:e.i(u.a)(n);return this.select(function(){return this.insertBefore(o.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,u=e.length,o=Math.min(i,u),a=new Array(i),s=0;o>s;++s)for(var c,l=n[s],f=e[s],h=l.length,d=a[s]=new Array(h),p=0;h>p;++p)(c=l[p]||f[p])&&(d[p]=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,u=r.length;u>i;++i){var o=r[i];if(o)return o}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],u=i.length-1,o=i[u];--u>=0;)(r=i[u])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=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,u=n.length,o=new Array(u),a=0;u>a;++a)for(var s,c,l=n[a],f=l.length,h=o[a]=new Array(f),d=0;f>d;++d)(s=l[d])&&(c=t.call(s,s.__data__,d,l))&&("__data__"in s&&(c.__data__=s.__data__),h[d]=c);return new r.b(o,this._parents)}},function(t,n,e){"use strict";var r=e(0),i=e(39);n.a=function(t){"function"!=typeof t&&(t=e.i(i.a)(t));for(var n=this._groups,u=n.length,o=[],a=[],s=0;u>s;++s)for(var c,l=n[s],f=l.length,h=0;f>h;++h)(c=l[h])&&(o.push(t.call(c,c.__data__,h,l)),a.push(c));return new r.b(o,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,u=e.length,o=new Array(u),a=0;u>a;++a){for(var s,c=e[a],l=c.length,f=o[a]=new Array(l),h=0;l>h;++h)(s=c[h])&&(f[h]=s);f.sort(n)}return new i.b(o,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 u(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}var o=e(21);n.a=function(t,n,a){var s;return arguments.length>1?this.each((null==n?r:"function"==typeof n?u:i)(t,n,null==a?"":a)):e.i(o.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";e(20),e(17)},function(t,n,e){"use strict";e(20),e(17)},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(116),e(3));e.d(n,"transition",function(){return r.a});var i=e(115);e.d(n,"active",function(){return i.a});var u=e(41);e.d(n,"interrupt",function(){return u.a})},function(t,n,e){"use strict";var r=e(3),i=e(1),u=[null];n.a=function(t,n){var e,o,a=t.__transition;if(a){n=null==n?null:n+"";for(o in a)if((e=a[o]).state>i.d&&e.name===n)return new r.b([[t]],u,n,+o)}return null}},function(t,n,e){"use strict";var r=e(2),i=e(117),u=e(118);r.a.prototype.interrupt=i.a,r.a.prototype.transition=u.a},function(t,n,e){"use strict";var r=e(41);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),u=e(1),o=e(57),a=e(40),s={time:null,delay:0,duration:250,ease:o.a};n.a=function(t){var n,o;t instanceof i.b?(n=t._id,t=t._name):(n=e.i(i.c)(),(o=s).time=e.i(a.c)(),t=null==t?null:t+"");for(var c=this._groups,l=c.length,f=0;l>f;++f)for(var h,d=c[f],p=d.length,v=0;p>v;++v)(h=d[v])&&e.i(u.h)(h,t,n,v,d,o||r(h,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 u(t,n,e){var r,i;return function(){var u=this.getAttribute(t);return u===e?null:u===r?i:i=n(r=u,e)}}function o(t,n,e){var r,i;return function(){var u=this.getAttributeNS(t.space,t.local);return u===e?null:u===r?i:i=n(r=u,e)}}function a(t,n,e){var r,i,u;return function(){var o,a=e(this);return null==a?void this.removeAttribute(t):(o=this.getAttribute(t),o===a?null:o===r&&a===i?u:u=n(r=o,i=a))}}function s(t,n,e){var r,i,u;return function(){var o,a=e(this);return null==a?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),o===a?null:o===r&&a===i?u:u=n(r=o,i=a))}}var c=e(11),l=e(2),f=e(8),h=e(42);n.a=function(t,n){var d=e.i(l.c)(t),p="transform"===d?c.e:h.a;return this.attrTween(t,"function"==typeof n?(d.local?s:a)(d,p,e.i(f.b)(this,"attr."+t,n)):null==n?(d.local?i:r)(d):(d.local?o:u)(d,p,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 u=e(2);n.a=function(t,n){var o="attr."+t;if(arguments.length<2)return(o=this.tween(o))&&o._value;if(null==n)return this.tween(o,null);if("function"!=typeof n)throw new Error;var a=e.i(u.c)(t);return this.tween(o,(a.local?r:i)(a,n))}},function(t,n,e){"use strict";function r(t,n){return function(){e.i(u.g)(this,t).delay=+n.apply(this,arguments)}}function i(t,n){return n=+n,function(){e.i(u.g)(this,t).delay=n}}var u=e(1);n.a=function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?r:i)(n,t)):e.i(u.f)(this.node(),n).delay}},function(t,n,e){"use strict";function r(t,n){return function(){e.i(u.e)(this,t).duration=+n.apply(this,arguments)}}function i(t,n){return n=+n,function(){e.i(u.e)(this,t).duration=n}}var u=e(1);n.a=function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?r:i)(n,t)):e.i(u.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.d)(t));for(var n=this._groups,u=n.length,o=new Array(u),a=0;u>a;++a)for(var s,c=n[a],l=c.length,f=o[a]=[],h=0;l>h;++h)(s=c[h])&&t.call(s,s.__data__,h,c)&&f.push(s);return new i.b(o,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,u=e.length,o=Math.min(i,u),a=new Array(i),s=0;o>s;++s)for(var c,l=n[s],f=e[s],h=l.length,d=a[s]=new Array(h),p=0;h>p;++p)(c=l[p]||f[p])&&(d[p]=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,o,a=r(n)?u.g:u.e;return function(){var r=a(this,t),u=r.on;u!==i&&(o=(i=u).copy()).on(n,e),r.on=o}}var u=e(1);n.a=function(t,n){var r=this._id;return arguments.length<2?e.i(u.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),u=e(1);n.a=function(t){var n=this._name,o=this._id;"function"!=typeof t&&(t=e.i(r.f)(t));for(var a=this._groups,s=a.length,c=new Array(s),l=0;s>l;++l)for(var f,h,d=a[l],p=d.length,v=c[l]=new Array(p),g=0;p>g;++g)(f=d[g])&&(h=t.call(f,f.__data__,g,d))&&("__data__"in f&&(h.__data__=f.__data__),v[g]=h,e.i(u.h)(v[g],n,o,g,v,e.i(u.f)(f,o)));return new i.b(c,this._parents,n,o)}},function(t,n,e){"use strict";var r=e(2),i=e(3),u=e(1);n.a=function(t){var n=this._name,o=this._id;"function"!=typeof t&&(t=e.i(r.e)(t));for(var a=this._groups,s=a.length,c=[],l=[],f=0;s>f;++f)for(var h,d=a[f],p=d.length,v=0;p>v;++v)if(h=d[v]){for(var g,y=t.call(h,h.__data__,v,d),m=e.i(u.f)(h,o),w=0,b=y.length;b>w;++w)(g=y[w])&&e.i(u.h)(g,n,o,w,y,m);c.push(y),l.push(h)}return new i.b(c,l,n,o)}},function(t,n,e){"use strict";var r=e(2),i=r.a.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,u;return function(){var o=e.i(s.b)(this).getComputedStyle(this,null),a=o.getPropertyValue(t),c=(this.style.removeProperty(t),o.getPropertyValue(t));return a===c?null:a===r&&c===i?u:u=n(r=a,i=c)}}function i(t){return function(){this.style.removeProperty(t)}}function u(t,n,r){var i,u;return function(){var o=e.i(s.b)(this).getComputedStyle(this,null).getPropertyValue(t);return o===r?null:o===i?u:u=n(i=o,r)}}function o(t,n,r){var i,u,o;return function(){var a=e.i(s.b)(this).getComputedStyle(this,null),c=a.getPropertyValue(t),l=r(this);return null==l&&(this.style.removeProperty(t),l=a.getPropertyValue(t)),c===l?null:c===i&&l===u?o:o=n(i=c,u=l)}}var a=e(11),s=e(2),c=e(8),l=e(42);n.a=function(t,n,s){var f="transform"==(t+="")?a.a:l.a;return null==n?this.styleTween(t,r(t,f)).on("end.style."+t,i(t)):this.styleTween(t,"function"==typeof n?o(t,f,e.i(c.b)(this,"style."+t,n)):u(t,f,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 u=e(8);n.a=function(t){return this.tween("text","function"==typeof t?i(e.i(u.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,u=e.i(r.c)(),o=this._groups,a=o.length,s=0;a>s;++s)for(var c,l=o[s],f=l.length,h=0;f>h;++h)if(c=l[h]){var d=e.i(i.f)(c,n);e.i(i.h)(c,t,u,h,l,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new r.b(o,this._parents,t,u)}},function(t){t.exports=r},function(t){t.exports=i},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 u=e(24);Object.defineProperty(n,"WordFilter",{enumerable:!0,get:function(){return i(u)["default"]}});var o=e(45);Object.defineProperty(n,"SentenTreeBuilder",{enumerable:!0,get:function(){return i(o)["default"]}});var a=e(23);Object.defineProperty(n,"SentenTreeModel",{enumerable:!0,get:function(){return i(a)["default"]}});var s=e(46);Object.defineProperty(n,"SentenTreeVis",{enumerable:!0,get:function(){return i(s)["default"]}});{var c=e(25),l=r(c);n.tokenizer=l}}])});