=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Nt(){this.textContent=""}function Rt(){this.innerHTML=""}function It(){this.nextSibling&&this.parentNode.appendChild(this)}function Bt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function zt(){return null}function qt(){var t=this.parentNode;t&&t.removeChild(this)}function Wt(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Ut(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var Vt={},$t=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Vt={mouseenter:"mouseover",mouseleave:"mouseout"}));function Gt(t,e,n){return t=Jt(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Jt(t,e,n){return function(r){var i=$t;$t=r;try{t.call(this,this.__data__,e,n)}finally{$t=i}}}function Zt(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=M&&(M=b+1);!(v=y[M])&&++M=0;)(r=i[a])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Et);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):jt(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=Ot(t+"");if(arguments.length<2){for(var r=Ct(this.node()),i=-1,a=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),o=a.length;if(!(arguments.length<2)){for(u=e?Kt:Zt,null==n&&(n=!1),r=0;rf}s.mouse("drag")}function p(){ie($t.view).on("mousemove.drag mouseup.drag",null),ge($t.view,n),me(),s.mouse("end")}function m(){if(i.apply(this,arguments)){var t,e,n=$t.changedTouches,r=a.apply(this,arguments),o=n.length;for(t=0;t>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=Oe.exec(t))?ze(parseInt(e[1],16)):(e=Ce.exec(t))?new Ve(e[1],e[2],e[3],1):(e=He.exec(t))?new Ve(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Pe.exec(t))?qe(e[1],e[2],e[3],e[4]):(e=Fe.exec(t))?qe(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ne.exec(t))?Ge(e[1],e[2]/100,e[3]/100,1):(e=Re.exec(t))?Ge(e[1],e[2]/100,e[3]/100,e[4]):Ie.hasOwnProperty(t)?ze(Ie[t]):"transparent"===t?new Ve(NaN,NaN,NaN,0):null}function ze(t){return new Ve(t>>16&255,t>>8&255,255&t,1)}function qe(t,e,n,r){return r<=0&&(t=e=n=NaN),new Ve(t,e,n,r)}function We(t){return t instanceof Ye||(t=Be(t)),t?new Ve((t=t.rgb()).r,t.g,t.b,t.opacity):new Ve}function Ue(t,e,n,r){return 1===arguments.length?We(t):new Ve(t,e,n,null==r?1:r)}function Ve(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function $e(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ge(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ze(t,e,n,r)}function Je(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Ze)return new Ze(t.h,t.s,t.l,t.opacity);if(t instanceof Ye||(t=Be(t)),!t)return new Ze;if(t instanceof Ze)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,u=a-i,s=(a+i)/2;return u?(o=e===a?(n-r)/u+6*(n0&&s<1?0:o,new Ze(o,u,s,t.opacity)}(t):new Ze(t,e,n,null==r?1:r)}function Ze(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Ke(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}De(Ye,Be,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),De(Ve,Ue,Te(Ye,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Ve(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ve(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},hex:function(){return"#"+$e(this.r)+$e(this.g)+$e(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(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+")")}})),De(Ze,Je,Te(Ye,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Ze(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ze(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Ve(Ke(t>=240?t-240:t+120,i,r),Ke(t,i,r),Ke(t<120?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 Xe=Math.PI/180,Qe=180/Math.PI,tn=.96422,en=1,nn=.82521,rn=4/29,an=6/29,on=3*an*an,un=an*an*an;function sn(t){if(t instanceof fn)return new fn(t.l,t.a,t.b,t.opacity);if(t instanceof vn){if(isNaN(t.h))return new fn(t.l,0,0,t.opacity);var e=t.h*Xe;return new fn(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof Ve||(t=We(t));var n,r,i=pn(t.r),a=pn(t.g),o=pn(t.b),u=dn((.2225045*i+.7168786*a+.0606169*o)/en);return i===a&&a===o?n=r=u:(n=dn((.4360747*i+.3850649*a+.1430804*o)/tn),r=dn((.0139322*i+.0971045*a+.7141733*o)/nn)),new fn(116*u-16,500*(n-u),200*(u-r),t.opacity)}function cn(t,e){return new fn(t,0,0,null==e?1:e)}function ln(t,e,n,r){return 1===arguments.length?sn(t):new fn(t,e,n,null==r?1:r)}function fn(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function dn(t){return t>un?Math.pow(t,1/3):t/on+rn}function hn(t){return t>an?t*t*t:on*(t-rn)}function _n(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function pn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function mn(t){if(t instanceof vn)return new vn(t.h,t.c,t.l,t.opacity);if(t instanceof fn||(t=sn(t)),0===t.a&&0===t.b)return new vn(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Qe;return new vn(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function yn(t,e,n,r){return 1===arguments.length?mn(t):new vn(n,e,t,null==r?1:r)}function gn(t,e,n,r){return 1===arguments.length?mn(t):new vn(t,e,n,null==r?1:r)}function vn(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}De(fn,ln,Te(Ye,{brighter:function(t){return new fn(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new fn(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new Ve(_n(3.1338561*(e=tn*hn(e))-1.6168667*(t=en*hn(t))-.4906146*(n=nn*hn(n))),_n(-.9787684*e+1.9161415*t+.033454*n),_n(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),De(vn,gn,Te(Ye,{brighter:function(t){return new vn(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new vn(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return sn(this).rgb()}}));var bn=-.29227,Mn=-.90649,wn=1.97294,kn=wn*Mn,Ln=1.78277*wn,xn=1.78277*bn- -.14861*Mn;function Dn(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Tn)return new Tn(t.h,t.s,t.l,t.opacity);t instanceof Ve||(t=We(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(xn*r+kn*e-Ln*n)/(xn+kn-Ln),a=r-i,o=(wn*(n-i)-bn*a)/Mn,u=Math.sqrt(o*o+a*a)/(wn*i*(1-i)),s=u?Math.atan2(o,a)*Qe-120:NaN;return new Tn(s<0?s+360:s,u,i,t.opacity)}(t):new Tn(t,e,n,null==r?1:r)}function Tn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Yn(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}De(Tn,Dn,Te(Ye,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Tn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Tn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Xe,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new Ve(255*(e+n*(-.14861*r+1.78277*i)),255*(e+n*(bn*r+Mn*i)),255*(e+n*(wn*r)),this.opacity)}}));var An=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,u=r180||n<-180?n-360*Math.round(n/360):n):Sn(isNaN(t)?e:t)}function Cn(t){return 1==(t=+t)?Hn:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Sn(isNaN(e)?n:e)}}function Hn(t,e){var n=e-t;return n?jn(t,n):Sn(isNaN(t)?e:t)}var Pn=function t(e){var n=Cn(e);function r(t,e){var r=n((t=Ue(t)).r,(e=Ue(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=Hn(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function Fn(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),u=new Array(i);for(n=0;na&&(i=e.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,s.push({i:o,x:zn(n,r)})),a=Un.lastIndex;return a180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:zn(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,u,s),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:zn(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,u,s),function(t,e,n,r,a,o){if(t!==n||e!==r){var u=a.push(i(a)+"scale(",null,",",null,")");o.push({i:u-4,x:zn(t,n)},{i:u-2,x:zn(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,u,s),a=o=null,function(t){for(var e,n=-1,r=s.length;++n=0&&e._call.call(null,t),e=e._next;--Lr}function Nr(){Ar=(Yr=Sr.now())+Er,Lr=xr=0;try{Fr()}finally{Lr=0,function(){var t,e,n=Mr,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Mr=e);wr=t,Ir(r)}(),Ar=0}}function Rr(){var t=Sr.now(),e=t-Yr;e>Tr&&(Er-=e,Yr=t)}function Ir(t){Lr||(xr&&(xr=clearTimeout(xr)),t-Ar>24?(t<1/0&&(xr=setTimeout(Nr,t-Sr.now()-Er)),Dr&&(Dr=clearInterval(Dr))):(Dr||(Yr=Sr.now(),Dr=setInterval(Rr,Tr)),Lr=1,jr(Nr)))}Hr.prototype=Pr.prototype={constructor:Hr,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Or():+n)+(null==e?0:+e),this._next||wr===this||(wr?wr._next=this:Mr=this,wr=this),this._call=t,this._time=n,Ir()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ir())}};var Br=function(t,e,n){var r=new Hr;return e=null==e?0:+e,r.restart(function(n){r.stop(),t(n+e)},e,n),r},zr=function(t,e,n){var r=new Hr,i=e;return null==e?(r.restart(t,e,n),r):(e=+e,n=null==n?Or():+n,r.restart(function a(o){o+=i,r.restart(a,i+=e,n),t(o)},e,n),r)},qr=dt("start","end","interrupt"),Wr=[],Ur=0,Vr=1,$r=2,Gr=3,Jr=4,Zr=5,Kr=6,Xr=function(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(s){var c,l,f,d;if(n.state!==Vr)return u();for(c in i)if((d=i[c]).name===n.name){if(d.state===Gr)return Br(a);d.state===Jr?(d.state=Kr,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[c]):+cUr)throw new Error("too late; already scheduled");return n}function ti(t,e){var n=ei(t,e);if(n.state>$r)throw new Error("too late; already started");return n}function ei(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var ni=function(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>$r&&n.state=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Qr:ti;return function(){var o=a(this,t),u=o.on;u!==r&&(i=(r=u).copy()).on(e,n),o.on=i}}(n,t,e))},attr:function(t,e){var n=pt(t),r="transform"===n?or:ii;return this.attrTween(t,"function"==typeof e?(n.local?function(t,e,n){var r,i,a;return function(){var o,u=n(this);if(null!=u)return(o=this.getAttributeNS(t.space,t.local))===u?null:o===r&&u===i?a:a=e(r=o,i=u);this.removeAttributeNS(t.space,t.local)}}:function(t,e,n){var r,i,a;return function(){var o,u=n(this);if(null!=u)return(o=this.getAttribute(t))===u?null:o===r&&u===i?a:a=e(r=o,i=u);this.removeAttribute(t)}})(n,r,ri(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(t,e,n){var r,i;return function(){var a=this.getAttributeNS(t.space,t.local);return a===n?null:a===r?i:i=e(r=a,n)}}:function(t,e,n){var r,i;return function(){var a=this.getAttribute(t);return a===n?null:a===r?i:i=e(r=a,n)}})(n,r,e+""))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=pt(t);return this.tween(n,(r.local?function(t,e){function n(){var n=this,r=e.apply(n,arguments);return r&&function(e){n.setAttributeNS(t.space,t.local,r(e))}}return n._value=e,n}:function(t,e){function n(){var n=this,r=e.apply(n,arguments);return r&&function(e){n.setAttribute(t,r(e))}}return n._value=e,n})(r,e))},style:function(t,e,n){var r="transform"==(t+="")?ar:ii;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=jt(this,t),o=(this.style.removeProperty(t),jt(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof e?function(t,e,n){var r,i,a;return function(){var o=jt(this,t),u=n(this);return null==u&&(this.style.removeProperty(t),u=jt(this,t)),o===u?null:o===r&&u===i?a:a=e(r=o,i=u)}}(t,r,ri(this,"style."+t,e)):function(t,e,n){var r,i;return function(){var a=jt(this,t);return a===n?null:a===r?i:i=e(r=a,n)}}(t,r,e+""),n)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){function r(){var r=this,i=e.apply(r,arguments);return i&&function(e){r.style.setProperty(t,i(e),n)}}return r._value=e,r}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(ri(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=ei(this.node(),n).tween,a=0,o=i.length;aVr&&n.name===e)return new ui([[t]],ta,e,+r);return null},na=function(t){return function(){return t}},ra=function(t,e,n){this.target=t,this.type=e,this.selection=n};function ia(){$t.stopImmediatePropagation()}var aa=function(){$t.preventDefault(),$t.stopImmediatePropagation()},oa={name:"drag"},ua={name:"space"},sa={name:"handle"},ca={name:"center"},la={name:"x",handles:["e","w"].map(ga),input:function(t,e){return t&&[[t[0],e[0][1]],[t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},fa={name:"y",handles:["n","s"].map(ga),input:function(t,e){return t&&[[e[0][0],t[0]],[e[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},da={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(ga),input:function(t){return t},output:function(t){return t}},ha={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"},_a={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},pa={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},ma={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},ya={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function ga(t){return{type:t}}function va(){return!$t.button}function ba(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Ma(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function wa(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function ka(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function La(){return Ta(la)}function xa(){return Ta(fa)}var Da=function(){return Ta(da)};function Ta(t){var e,n=ba,r=va,i=dt(o,"start","brush","end"),a=6;function o(e){var n=e.property("__brush",f).selectAll(".overlay").data([ga("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ha.overlay).merge(n).each(function(){var t=Ma(this).extent;ie(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])}),e.selectAll(".selection").data([ga("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ha.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,function(t){return t.type});r.exit().remove(),r.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return ha[t.type]}),e.each(u).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",l)}function u(){var t=ie(this),e=Ma(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?e[1][0]-a/2:e[0][0]-a/2}).attr("y",function(t){return"s"===t.type[0]?e[1][1]-a/2:e[0][1]-a/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+a:a}).attr("height",function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+a:a})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function s(t,e){return t.__brush.emitter||new c(t,e)}function c(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function l(){if($t.touches){if($t.changedTouches.length<$t.touches.length)return aa()}else if(e)return;if(r.apply(this,arguments)){var n,i,a,o,c,l,f,d,h,_,p,m,y,g=this,v=$t.target.__data__.type,b="selection"===($t.metaKey?v="overlay":v)?oa:$t.altKey?ca:sa,M=t===fa?null:ma[v],w=t===la?null:ya[v],k=Ma(g),L=k.extent,x=k.selection,D=L[0][0],T=L[0][1],Y=L[1][0],A=L[1][1],E=M&&w&&$t.shiftKey,S=fe(g),j=S,O=s(g,arguments).beforestart();"overlay"===v?k.selection=x=[[n=t===fa?D:S[0],a=t===la?T:S[1]],[c=t===fa?Y:n,f=t===la?A:a]]:(n=x[0][0],a=x[0][1],c=x[1][0],f=x[1][1]),i=n,o=a,l=c,d=f;var C=ie(g).attr("pointer-events","none"),H=C.selectAll(".overlay").attr("cursor",ha[v]);if($t.touches)C.on("touchmove.brush",F,!0).on("touchend.brush touchcancel.brush",R,!0);else{var P=ie($t.view).on("keydown.brush",function(){switch($t.keyCode){case 16:E=M&&w;break;case 18:b===sa&&(M&&(c=l-h*M,n=i+h*M),w&&(f=d-_*w,a=o+_*w),b=ca,N());break;case 32:b!==sa&&b!==ca||(M<0?c=l-h:M>0&&(n=i-h),w<0?f=d-_:w>0&&(a=o-_),b=ua,H.attr("cursor",ha.selection),N());break;default:return}aa()},!0).on("keyup.brush",function(){switch($t.keyCode){case 16:E&&(m=y=E=!1,N());break;case 18:b===ca&&(M<0?c=l:M>0&&(n=i),w<0?f=d:w>0&&(a=o),b=sa,N());break;case 32:b===ua&&($t.altKey?(M&&(c=l-h*M,n=i+h*M),w&&(f=d-_*w,a=o+_*w),b=ca):(M<0?c=l:M>0&&(n=i),w<0?f=d:w>0&&(a=o),b=sa),H.attr("cursor",ha[v]),N());break;default:return}aa()},!0).on("mousemove.brush",F,!0).on("mouseup.brush",R,!0);ye($t.view)}ia(),ni(g),u.call(g),O.start()}function F(){var t=fe(g);!E||m||y||(Math.abs(t[0]-j[0])>Math.abs(t[1]-j[1])?y=!0:m=!0),j=t,p=!0,aa(),N()}function N(){var t;switch(h=j[0]-S[0],_=j[1]-S[1],b){case ua:case oa:M&&(h=Math.max(D-n,Math.min(Y-c,h)),i=n+h,l=c+h),w&&(_=Math.max(T-a,Math.min(A-f,_)),o=a+_,d=f+_);break;case sa:M<0?(h=Math.max(D-n,Math.min(Y-n,h)),i=n+h,l=c):M>0&&(h=Math.max(D-c,Math.min(Y-c,h)),i=n,l=c+h),w<0?(_=Math.max(T-a,Math.min(A-a,_)),o=a+_,d=f):w>0&&(_=Math.max(T-f,Math.min(A-f,_)),o=a,d=f+_);break;case ca:M&&(i=Math.max(D,Math.min(Y,n-h*M)),l=Math.max(D,Math.min(Y,c+h*M))),w&&(o=Math.max(T,Math.min(A,a-_*w)),d=Math.max(T,Math.min(A,f+_*w)))}l1e-6)if(Math.abs(l*u-s*c)>1e-6&&i){var d=n-a,h=r-o,_=u*u+s*s,p=d*d+h*h,m=Math.sqrt(_),y=Math.sqrt(f),g=i*Math.tan((Fa-Math.acos((_+f-p)/(2*m*y)))/2),v=g/y,b=g/m;Math.abs(v-1)>1e-6&&(this._+="L"+(t+v*c)+","+(e+v*l)),this._+="A"+i+","+i+",0,0,"+ +(l*d>c*h)+","+(this._x1=t+b*u)+","+(this._y1=e+b*s)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,a){t=+t,e=+e;var o=(n=+n)*Math.cos(r),u=n*Math.sin(r),s=t+o,c=e+u,l=1^a,f=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+s+","+c:(Math.abs(this._x1-s)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+s+","+c),n&&(f<0&&(f=f%Na+Na),f>Ra?this._+="A"+n+","+n+",0,1,"+l+","+(t-o)+","+(e-u)+"A"+n+","+n+",0,1,"+l+","+(this._x1=s)+","+(this._y1=c):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=Fa)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var za=Ba;function qa(t){return t.source}function Wa(t){return t.target}function Ua(t){return t.radius}function Va(t){return t.startAngle}function $a(t){return t.endAngle}var Ga=function(){var t=qa,e=Wa,n=Ua,r=Va,i=$a,a=null;function o(){var o,u=Ha.call(arguments),s=t.apply(this,u),c=e.apply(this,u),l=+n.apply(this,(u[0]=s,u)),f=r.apply(this,u)-Sa,d=i.apply(this,u)-Sa,h=l*Ya(f),_=l*Aa(f),p=+n.apply(this,(u[0]=c,u)),m=r.apply(this,u)-Sa,y=i.apply(this,u)-Sa;if(a||(a=o=za()),a.moveTo(h,_),a.arc(0,0,l,f,d),f===m&&d===y||(a.quadraticCurveTo(0,0,p*Ya(m),p*Aa(m)),a.arc(0,0,p,m,y)),a.quadraticCurveTo(0,0,h,_),a.closePath(),o)return a=null,o+""||null}return o.radius=function(t){return arguments.length?(n="function"==typeof t?t:Pa(+t),o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Pa(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Pa(+t),o):i},o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(t){return arguments.length?(e=t,o):e},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o};function Ja(){}function Za(t,e){var n=new Ja;if(t instanceof Ja)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==e)for(;++i=r.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var s,c,l,f=-1,d=n.length,h=r[i++],_=Ka(),p=o();++fr.length)return n;var o,u=i[a-1];return null!=e&&a>=r.length?o=n.entries():(o=[],n.each(function(e,n){o.push({key:n,values:t(e,a)})})),null!=u?o.sort(function(t,e){return u(t.key,e.key)}):o}(a(t,0,eo,no),0)},key:function(t){return r.push(t),n},sortKeys:function(t){return i[r.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}};function Qa(){return{}}function to(t,e,n){t[e]=n}function eo(){return Ka()}function no(t,e,n){t.set(e,n)}function ro(){}var io=Ka.prototype;function ao(t,e){var n=new ro;if(t instanceof ro)t.each(function(t){n.add(t)});else if(t){var r=-1,i=t.length;if(null==e)for(;++rr!=h>r&&n<(d-c)*(r-l)/(h-l)+c&&(i=-i)}return i}function yo(t,e,n){var r,i,a,o;return function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])==(n[0]-t[0])*(e[1]-t[1])}(t,e,n)&&(i=t[r=+(t[0]===e[0])],a=n[r],o=e[r],i<=a&&a<=o||o<=a&&a<=i)}var go=function(){},vo=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],bo=function(){var t=1,e=1,n=A,r=u;function i(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort(fo);else{var r=m(t),i=r[0],o=r[1];e=Y(i,o,e),e=w(Math.floor(i/e)*e,Math.floor(o/e)*e,e)}return e.map(function(e){return a(t,e)})}function a(n,i){var a=[],u=[];return function(n,r,i){var a,u,s,c,l,f,d=new Array,h=new Array;a=u=-1,c=n[0]>=r,vo[c<<1].forEach(_);for(;++a=r,vo[s|c<<1].forEach(_);vo[c<<0].forEach(_);for(;++u=r,l=n[u*t]>=r,vo[c<<1|l<<2].forEach(_);++a=r,f=l,l=n[u*t+a+1]>=r,vo[s|c<<1|l<<2|f<<3].forEach(_);vo[c|l<<3].forEach(_)}a=-1,l=n[u*t]>=r,vo[l<<2].forEach(_);for(;++a=r,vo[l<<2|f<<3].forEach(_);function _(t){var e,n,r=[t[0][0]+a,t[0][1]+u],s=[t[1][0]+a,t[1][1]+u],c=o(r),l=o(s);(e=h[c])?(n=d[l])?(delete h[e.end],delete d[n.start],e===n?(e.ring.push(s),i(e.ring)):d[e.start]=h[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete h[e.end],e.ring.push(s),h[e.end=l]=e):(e=d[l])?(n=h[c])?(delete d[e.start],delete h[n.end],e===n?(e.ring.push(s),i(e.ring)):d[n.start]=h[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete d[e.start],e.ring.unshift(r),d[e.start=c]=e):d[c]=h[l]={start:c,end:l,ring:[r,s]}}vo[l<<3].forEach(_)}(n,i,function(t){r(t,n,i),ho(t)>0?a.push([t]):u.push(t)}),u.forEach(function(t){for(var e,n=0,r=a.length;n0&&o0&&u0&&a>0))throw new Error("invalid size");return t=r,e=a,i},i.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?_o(lo.call(t)):_o(t),i):n},i.smooth=function(t){return arguments.length?(r=t?u:go,i):r===u},i};function Mo(t,e,n){for(var r=t.width,i=t.height,a=1+(n<<1),o=0;o=n&&(u>=a&&(s-=t.data[u-a+o*r]),e.data[u-n+o*r]=s/Math.min(u+1,r-1+a-u,a))}function wo(t,e,n){for(var r=t.width,i=t.height,a=1+(n<<1),o=0;o=n&&(u>=a&&(s-=t.data[o+(u-a)*r]),e.data[o+(u-n)*r]=s/Math.min(u+1,i-1+a-u,a))}function ko(t){return t[0]}function Lo(t){return t[1]}function xo(){return 1}var Do=function(){var t=ko,e=Lo,n=xo,r=960,i=500,a=20,o=2,u=3*a,s=r+2*u>>o,c=i+2*u>>o,l=_o(20);function f(r){var i=new Float32Array(s*c),f=new Float32Array(s*c);r.forEach(function(r,a,l){var f=+t(r,a,l)+u>>o,d=+e(r,a,l)+u>>o,h=+n(r,a,l);f>=0&&f=0&&d>o),wo({width:s,height:c,data:f},{width:s,height:c,data:i},a>>o),Mo({width:s,height:c,data:i},{width:s,height:c,data:f},a>>o),wo({width:s,height:c,data:f},{width:s,height:c,data:i},a>>o),Mo({width:s,height:c,data:i},{width:s,height:c,data:f},a>>o),wo({width:s,height:c,data:f},{width:s,height:c,data:i},a>>o);var h=l(i);if(!Array.isArray(h)){var _=C(i);h=Y(0,_,h),(h=w(0,Math.floor(_/h)*h,h)).shift()}return bo().thresholds(h).size([s,c])(i).map(d)}function d(t){return t.value*=Math.pow(2,-2*o),t.coordinates.forEach(h),t}function h(t){t.forEach(_)}function _(t){t.forEach(p)}function p(t){t[0]=t[0]*Math.pow(2,o)-u,t[1]=t[1]*Math.pow(2,o)-u}function m(){return s=r+2*(u=3*a)>>o,c=i+2*u>>o,f}return f.x=function(e){return arguments.length?(t="function"==typeof e?e:_o(+e),f):t},f.y=function(t){return arguments.length?(e="function"==typeof t?t:_o(+t),f):e},f.weight=function(t){return arguments.length?(n="function"==typeof t?t:_o(+t),f):n},f.size=function(t){if(!arguments.length)return[r,i];var e=Math.ceil(t[0]),n=Math.ceil(t[1]);if(!(e>=0||e>=0))throw new Error("invalid size");return r=e,i=n,m()},f.cellSize=function(t){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(t)/Math.LN2),m()},f.thresholds=function(t){return arguments.length?(l="function"==typeof t?t:Array.isArray(t)?_o(lo.call(t)):_o(t),f):l},f.bandwidth=function(t){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return a=Math.round((Math.sqrt(4*t*t+1)-1)/2),m()},f},To={},Yo={},Ao=34,Eo=10,So=13;function jo(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}")}var Oo=function(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],a=t.length,o=0,u=0,s=a<=0,c=!1;function l(){if(s)return Yo;if(c)return c=!1,To;var e,r,i=o;if(t.charCodeAt(i)===Ao){for(;o++=a?s=!0:(r=t.charCodeAt(o++))===Eo?c=!0:r===So&&(c=!0,t.charCodeAt(o)===Eo&&++o),t.slice(i+1,e-1).replace(/""/g,'"')}for(;o=(a=(p+y)/2))?p=a:y=a,(l=n>=(o=(m+g)/2))?m=o:g=o,i=h,!(h=h[f=l<<1|c]))return i[f]=_,t;if(u=+t._x.call(null,h.data),s=+t._y.call(null,h.data),e===u&&n===s)return _.next=h,i?i[f]=_:t._root=_,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(c=e>=(a=(p+y)/2))?p=a:y=a,(l=n>=(o=(m+g)/2))?m=o:g=o}while((f=l<<1|c)==(d=(s>=o)<<1|u>=a));return i[d]=h,i[f]=_,t}var fu=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i};function du(t){return t[0]}function hu(t){return t[1]}function _u(t,e,n){var r=new pu(null==e?du:e,null==n?hu:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function pu(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function mu(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var yu=_u.prototype=pu.prototype;function gu(t){return t.x+t.vx}function vu(t){return t.y+t.vy}yu.copy=function(){var t,e,n=new pu(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=mu(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=mu(e));return n},yu.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return lu(this.cover(e,n),e,n,t)},yu.addAll=function(t){var e,n,r,i,a=t.length,o=new Array(a),u=new Array(a),s=1/0,c=1/0,l=-1/0,f=-1/0;for(n=0;nl&&(l=r),if&&(f=i));for(lt||t>i||r>e||e>a))return this;var o,u,s=i-n,c=this._root;switch(u=(e<(r+a)/2)<<1|t<(n+i)/2){case 0:do{(o=new Array(4))[u]=c,c=o}while(a=r+(s*=2),t>(i=n+s)||e>a);break;case 1:do{(o=new Array(4))[u]=c,c=o}while(a=r+(s*=2),(n=i-s)>t||e>a);break;case 2:do{(o=new Array(4))[u]=c,c=o}while(r=a-(s*=2),t>(i=n+s)||r>e);break;case 3:do{(o=new Array(4))[u]=c,c=o}while(r=a-(s*=2),(n=i-s)>t||r>e)}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this},yu.data=function(){var t=[];return this.visit(function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)}),t},yu.extent=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]]},yu.find=function(t,e,n){var r,i,a,o,u,s,c,l=this._x0,f=this._y0,d=this._x1,h=this._y1,_=[],p=this._root;for(p&&_.push(new fu(p,l,f,d,h)),null==n?n=1/0:(l=t-n,f=e-n,d=t+n,h=e+n,n*=n);s=_.pop();)if(!(!(p=s.node)||(i=s.x0)>d||(a=s.y0)>h||(o=s.x1)=y)<<1|t>=m)&&(s=_[_.length-1],_[_.length-1]=_[_.length-1-c],_[_.length-1-c]=s)}else{var g=t-+this._x.call(null,p.data),v=e-+this._y.call(null,p.data),b=g*g+v*v;if(b=(u=(_+m)/2))?_=u:m=u,(l=o>=(s=(p+y)/2))?p=s:y=s,e=h,!(h=h[f=l<<1|c]))return this;if(!h.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,d=f)}for(;h.data!==t;)if(r=h,!(h=h.next))return this;return(i=h.next)&&delete h.next,r?(i?r.next=i:delete r.next,this):e?(i?e[f]=i:delete e[f],(h=e[0]||e[1]||e[2]||e[3])&&h===(e[3]||e[2]||e[1]||e[0])&&!h.length&&(n?n[d]=h:this._root=h),this):(this._root=i,this)},yu.removeAll=function(t){for(var e=0,n=t.length;es+h||ic+h||au.index){var _=s-o.x-o.vx,p=c-o.y-o.vy,m=_*_+p*p;mt.r&&(t.r=t[e].r)}function u(){if(e){var r,i,a=e.length;for(n=new Array(a),r=0;r1?(null==n?u.remove(t):u.set(t,h(n)),e):u.get(t)},find:function(e,n,r){var i,a,o,u,s,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(t,n),e):c.on(t)}}},Au=function(){var t,e,n,r,i=su(-30),a=1,o=1/0,u=.81;function s(r){var i,a=t.length,o=_u(t,Lu,xu).visitAfter(l);for(n=r,i=0;i=o)){(t.data!==e||t.next)&&(0===l&&(h+=(l=cu())*l),0===f&&(h+=(f=cu())*f),h1?r[0]+r.slice(2):r,+t.slice(n+1)]},Cu=function(t){return(t=Ou(Math.abs(t)))?t[1]:NaN},Hu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pu(t){return new Fu(t)}function Fu(t){if(!(e=Hu.exec(t)))throw new Error("invalid format: "+t);var e;this.fill=e[1]||" ",this.align=e[2]||">",this.sign=e[3]||"-",this.symbol=e[4]||"",this.zero=!!e[5],this.width=e[6]&&+e[6],this.comma=!!e[7],this.precision=e[8]&&+e[8].slice(1),this.trim=!!e[9],this.type=e[10]||""}Pu.prototype=Fu.prototype,Fu.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.trim?"~":"")+this.type};var Nu,Ru,Iu,Bu,zu=function(t){t:for(var e,n=t.length,r=1,i=-1;r0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(e+1):t},qu=function(t,e){var n=Ou(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"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")},Wu={"%":function(t,e){return(100*t).toFixed(e)},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,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return qu(100*t,e)},r:qu,s:function(t,e){var n=Ou(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(Nu=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Ou(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Uu=function(t){return t},Vu=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],$u=function(t){var e,n,r=t.grouping&&t.thousands?(e=t.grouping,n=t.thousands,function(t,r){for(var i=t.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),a.push(t.substring(i-=u,i+u)),!((s+=u+1)>r));)u=e[o=(o+1)%e.length];return a.reverse().join(n)}):Uu,i=t.currency,a=t.decimal,o=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(t.numerals):Uu,u=t.percent||"%";function s(t){var e=(t=Pu(t)).fill,n=t.align,s=t.sign,c=t.symbol,l=t.zero,f=t.width,d=t.comma,h=t.precision,_=t.trim,p=t.type;"n"===p?(d=!0,p="g"):Wu[p]||(null==h&&(h=12),_=!0,p="g"),(l||"0"===e&&"="===n)&&(l=!0,e="0",n="=");var m="$"===c?i[0]:"#"===c&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",y="$"===c?i[1]:/[%p]/.test(p)?u:"",g=Wu[p],v=/[defgprs%]/.test(p);function b(t){var i,u,c,b=m,M=y;if("c"===p)M=g(t)+M,t="";else{var w=(t=+t)<0;if(t=g(Math.abs(t),h),_&&(t=zu(t)),w&&0==+t&&(w=!1),b=(w?"("===s?s:"-":"-"===s||"("===s?"":s)+b,M=("s"===p?Vu[8+Nu/3]:"")+M+(w&&"("===s?")":""),v)for(i=-1,u=t.length;++i(c=t.charCodeAt(i))||c>57){M=(46===c?a+t.slice(i+1):t.slice(i))+M,t=t.slice(0,i);break}}d&&!l&&(t=r(t,1/0));var k=b.length+t.length+M.length,L=k>1)+b+t+M+L.slice(k);break;default:t=L+b+t+M}return o(t)}return h=null==h?6:/[gprs]/.test(p)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),b.toString=function(){return t+""},b}return{format:s,formatPrefix:function(t,e){var n=s(((t=Pu(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Cu(e)/3))),i=Math.pow(10,-r),a=Vu[8+r/3];return function(t){return n(i*t)+a}}}};function Gu(t){return Ru=$u(t),Iu=Ru.format,Bu=Ru.formatPrefix,Ru}Gu({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Ju=function(t){return Math.max(0,-Cu(Math.abs(t)))},Zu=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Cu(e)/3)))-Cu(Math.abs(t)))},Ku=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Cu(e)-Cu(t))+1},Xu=function(){return new Qu};function Qu(){this.reset()}Qu.prototype={constructor:Qu,reset:function(){this.s=this.t=0},add:function(t){es(ts,t,this.t),es(this,ts.s,this.s),this.s?this.t+=ts.t:this.s=ts.t},valueOf:function(){return this.s}};var ts=new Qu;function es(t,e,n){var r=t.s=e+n,i=r-e,a=r-i;t.t=e-a+(n-i)}var ns=1e-6,rs=Math.PI,is=rs/2,as=rs/4,os=2*rs,us=180/rs,ss=rs/180,cs=Math.abs,ls=Math.atan,fs=Math.atan2,ds=Math.cos,hs=Math.ceil,_s=Math.exp,ps=(Math.floor,Math.log),ms=Math.pow,ys=Math.sin,gs=Math.sign||function(t){return t>0?1:t<0?-1:0},vs=Math.sqrt,bs=Math.tan;function Ms(t){return t>1?0:t<-1?rs:Math.acos(t)}function ws(t){return t>1?is:t<-1?-is:Math.asin(t)}function ks(t){return(t=ys(t/2))*t}function Ls(){}function xs(t,e){t&&Ts.hasOwnProperty(t.type)&&Ts[t.type](t,e)}var Ds={Feature:function(t,e){xs(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,a=ds(e=(e*=ss)/2+as),o=ys(e),u=Cs*o,s=Os*a+u*ds(i),c=u*r*ys(i);Ps.add(fs(c,s)),js=t,Os=a,Cs=o}var qs=function(t){return Fs.reset(),Hs(t,Ns),2*Fs};function Ws(t){return[fs(t[1],t[0]),ws(t[2])]}function Us(t){var e=t[0],n=t[1],r=ds(n);return[r*ds(e),r*ys(e),ys(n)]}function Vs(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function $s(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Gs(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Js(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Zs(t){var e=vs(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var Ks,Xs,Qs,tc,ec,nc,rc,ic,ac,oc,uc=Xu(),sc={point:cc,lineStart:fc,lineEnd:dc,polygonStart:function(){sc.point=hc,sc.lineStart=_c,sc.lineEnd=pc,uc.reset(),Ns.polygonStart()},polygonEnd:function(){Ns.polygonEnd(),sc.point=cc,sc.lineStart=fc,sc.lineEnd=dc,Ps<0?(Ks=-(Qs=180),Xs=-(tc=90)):uc>ns?tc=90:uc<-ns&&(Xs=-90),oc[0]=Ks,oc[1]=Qs}};function cc(t,e){ac.push(oc=[Ks=t,Qs=t]),etc&&(tc=e)}function lc(t,e){var n=Us([t*ss,e*ss]);if(ic){var r=$s(ic,n),i=$s([r[1],-r[0],0],r);Zs(i),i=Ws(i);var a,o=t-ec,u=o>0?1:-1,s=i[0]*us*u,c=cs(o)>180;c^(u*ectc&&(tc=a):c^(u*ec<(s=(s+360)%360-180)&&stc&&(tc=e)),c?tmc(Ks,Qs)&&(Qs=t):mc(t,Qs)>mc(Ks,Qs)&&(Ks=t):Qs>=Ks?(tQs&&(Qs=t)):t>ec?mc(Ks,t)>mc(Ks,Qs)&&(Qs=t):mc(t,Qs)>mc(Ks,Qs)&&(Ks=t)}else ac.push(oc=[Ks=t,Qs=t]);etc&&(tc=e),ic=n,ec=t}function fc(){sc.point=lc}function dc(){oc[0]=Ks,oc[1]=Qs,sc.point=cc,ic=null}function hc(t,e){if(ic){var n=t-ec;uc.add(cs(n)>180?n+(n>0?360:-360):n)}else nc=t,rc=e;Ns.point(t,e),lc(t,e)}function _c(){Ns.lineStart()}function pc(){hc(nc,rc),Ns.lineEnd(),cs(uc)>ns&&(Ks=-(Qs=180)),oc[0]=Ks,oc[1]=Qs,ic=null}function mc(t,e){return(e-=t)<0?e+360:e}function yc(t,e){return t[0]-e[0]}function gc(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:emc(r[0],r[1])&&(r[1]=i[1]),mc(i[0],r[1])>mc(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,e=0,r=a[n=a.length-1];e<=n;r=i,++e)i=a[e],(u=mc(r[1],i[0]))>o&&(o=u,Ks=i[0],Qs=r[1])}return ac=oc=null,Ks===1/0||Xs===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ks,Xs],[Qs,tc]]},Pc={sphere:Ls,point:Fc,lineStart:Rc,lineEnd:zc,polygonStart:function(){Pc.lineStart=qc,Pc.lineEnd=Wc},polygonEnd:function(){Pc.lineStart=Rc,Pc.lineEnd=zc}};function Fc(t,e){t*=ss;var n=ds(e*=ss);Nc(n*ds(t),n*ys(t),ys(e))}function Nc(t,e,n){Mc+=(t-Mc)/++vc,wc+=(e-wc)/vc,kc+=(n-kc)/vc}function Rc(){Pc.point=Ic}function Ic(t,e){t*=ss;var n=ds(e*=ss);jc=n*ds(t),Oc=n*ys(t),Cc=ys(e),Pc.point=Bc,Nc(jc,Oc,Cc)}function Bc(t,e){t*=ss;var n=ds(e*=ss),r=n*ds(t),i=n*ys(t),a=ys(e),o=fs(vs((o=Oc*a-Cc*i)*o+(o=Cc*r-jc*a)*o+(o=jc*i-Oc*r)*o),jc*r+Oc*i+Cc*a);bc+=o,Lc+=o*(jc+(jc=r)),xc+=o*(Oc+(Oc=i)),Dc+=o*(Cc+(Cc=a)),Nc(jc,Oc,Cc)}function zc(){Pc.point=Fc}function qc(){Pc.point=Uc}function Wc(){Vc(Ec,Sc),Pc.point=Fc}function Uc(t,e){Ec=t,Sc=e,t*=ss,e*=ss,Pc.point=Vc;var n=ds(e);jc=n*ds(t),Oc=n*ys(t),Cc=ys(e),Nc(jc,Oc,Cc)}function Vc(t,e){t*=ss;var n=ds(e*=ss),r=n*ds(t),i=n*ys(t),a=ys(e),o=Oc*a-Cc*i,u=Cc*r-jc*a,s=jc*i-Oc*r,c=vs(o*o+u*u+s*s),l=ws(c),f=c&&-l/c;Tc+=f*o,Yc+=f*u,Ac+=f*s,bc+=l,Lc+=l*(jc+(jc=r)),xc+=l*(Oc+(Oc=i)),Dc+=l*(Cc+(Cc=a)),Nc(jc,Oc,Cc)}var $c=function(t){vc=bc=Mc=wc=kc=Lc=xc=Dc=Tc=Yc=Ac=0,Hs(t,Pc);var e=Tc,n=Yc,r=Ac,i=e*e+n*n+r*r;return i<1e-12&&(e=Lc,n=xc,r=Dc,bcrs?t+Math.round(-t/os)*os:t,e]}function Kc(t,e,n){return(t%=os)?e||n?Jc(Qc(t),tl(e,n)):Qc(t):e||n?tl(e,n):Zc}function Xc(t){return function(e,n){return[(e+=t)>rs?e-os:e<-rs?e+os:e,n]}}function Qc(t){var e=Xc(t);return e.invert=Xc(-t),e}function tl(t,e){var n=ds(t),r=ys(t),i=ds(e),a=ys(e);function o(t,e){var o=ds(e),u=ds(t)*o,s=ys(t)*o,c=ys(e),l=c*n+u*r;return[fs(s*i-l*a,u*n-c*r),ws(l*i+s*a)]}return o.invert=function(t,e){var o=ds(e),u=ds(t)*o,s=ys(t)*o,c=ys(e),l=c*i-s*a;return[fs(s*i+c*a,u*n+l*r),ws(l*n-u*r)]},o}Zc.invert=Zc;var el=function(t){function e(e){return(e=t(e[0]*ss,e[1]*ss))[0]*=us,e[1]*=us,e}return t=Kc(t[0]*ss,t[1]*ss,t.length>2?t[2]*ss:0),e.invert=function(e){return(e=t.invert(e[0]*ss,e[1]*ss))[0]*=us,e[1]*=us,e},e};function nl(t,e,n,r,i,a){if(n){var o=ds(e),u=ys(e),s=r*n;null==i?(i=e+r*os,a=e-s/2):(i=rl(o,i),a=rl(o,a),(r>0?ia)&&(i+=r*os));for(var c,l=i;r>0?l>a:l1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},ol=function(t,e){return cs(t[0]-e[0])=0;--a)i.point((l=c[a])[0],l[1]);else r(d.x,d.p.x,-1,i);d=d.p}c=(d=d.o).z,h=!h}while(!d.v);i.lineEnd()}}};function cl(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,x=L*k,D=x>rs,T=p*M;if(ll.add(fs(T*L*ys(x),m*w+T*ds(x))),o+=D?k+L*os:k,D^h>=n^v>=n){var Y=$s(Us(d),Us(g));Zs(Y);var A=$s(a,Y);Zs(A);var E=(D^k>=0?-1:1)*ws(A[2]);(r>E||r===E&&(Y[0]||Y[1]))&&(u+=D^k>=0?1:-1)}}return(o<-ns||o0){for(f||(i.polygonStart(),f=!0),i.lineStart(),t=0;t1&&2&s&&d.push(d.pop().concat(d.shift())),o.push(d.filter(hl))}return d}};function hl(t){return t.length>1}function _l(t,e){return((t=t.x)[0]<0?t[1]-is-ns:is-t[1])-((e=e.x)[0]<0?e[1]-is-ns:is-e[1])}var pl=dl(function(){return!0},function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var u=a>0?rs:-rs,s=cs(a-n);cs(s-rs)0?is:-is),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(a,r),e=0):i!==u&&s>=rs&&(cs(n-i)ns?ls((ys(e)*(a=ds(r))*ys(n)-ys(r)*(i=ds(e))*ys(t))/(i*a*o)):(e+r)/2}(n,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=a,r=o),i=u},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var i;if(null==t)i=n*is,r.point(-rs,i),r.point(0,i),r.point(rs,i),r.point(rs,0),r.point(rs,-i),r.point(0,-i),r.point(-rs,-i),r.point(-rs,0),r.point(-rs,i);else if(cs(t[0]-e[0])>ns){var a=t[0]0,i=cs(e)>ns;function a(t,n){return ds(t)*ds(n)>e}function o(t,n,r){var i=[1,0,0],a=$s(Us(t),Us(n)),o=Vs(a,a),u=a[0],s=o-u*u;if(!s)return!r&&t;var c=e*o/s,l=-e*u/s,f=$s(i,a),d=Js(i,c);Gs(d,Js(a,l));var h=f,_=Vs(d,h),p=Vs(h,h),m=_*_-p*(Vs(d,d)-1);if(!(m<0)){var y=vs(m),g=Js(h,(-_-y)/p);if(Gs(g,d),g=Ws(g),!r)return g;var v,b=t[0],M=n[0],w=t[1],k=n[1];M0^g[1]<(cs(g[0]-b)rs^(b<=g[0]&&g[0]<=M)){var D=Js(h,(-_+y)/p);return Gs(D,d),[g,Ws(D)]}}}function u(e,n){var i=r?t:rs-t,a=0;return e<-i?a|=1:e>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return dl(a,function(t){var e,n,s,c,l;return{lineStart:function(){c=s=!1,l=1},point:function(f,d){var h,_=[f,d],p=a(f,d),m=r?p?0:u(f,d):p?u(f+(f<0?rs:-rs),d):0;if(!e&&(c=s=p)&&t.lineStart(),p!==s&&(!(h=o(e,_))||ol(e,h)||ol(_,h))&&(_[0]+=ns,_[1]+=ns,p=a(_[0],_[1])),p!==s)l=0,p?(t.lineStart(),h=o(_,e),t.point(h[0],h[1])):(h=o(e,_),t.point(h[0],h[1]),t.lineEnd()),e=h;else if(i&&e&&r^p){var y;m&n||!(y=o(_,e,!0))||(l=0,r?(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])))}!p||e&&ol(e,_)||t.point(_[0],_[1]),e=_,s=p,n=m},lineEnd:function(){s&&t.lineEnd(),e=null},clean:function(){return l|(c&&s)<<1}}},function(e,r,i,a){nl(a,t,n,i,e,r)},r?[0,-t]:[-rs,t-rs])},yl=function(t,e,n,r,i,a){var o,u=t[0],s=t[1],c=0,l=1,f=e[0]-u,d=e[1]-s;if(o=n-u,f||!(o>0)){if(o/=f,f<0){if(o0){if(o>l)return;o>c&&(c=o)}if(o=i-u,f||!(o<0)){if(o/=f,f<0){if(o>l)return;o>c&&(c=o)}else if(f>0){if(o0)){if(o/=d,d<0){if(o0){if(o>l)return;o>c&&(c=o)}if(o=a-s,d||!(o<0)){if(o/=d,d<0){if(o>l)return;o>c&&(c=o)}else if(d>0){if(o0&&(t[0]=u+c*f,t[1]=s+c*d),l<1&&(e[0]=u+l*f,e[1]=s+l*d),!0}}}}},gl=1e9,vl=-gl;function bl(t,e,n,r){function i(i,a){return t<=i&&i<=n&&e<=a&&a<=r}function a(i,a,u,c){var l=0,f=0;if(null==i||(l=o(i,u))!==(f=o(a,u))||s(i,a)<0^u>0)do{c.point(0===l||3===l?t:n,l>1?r:e)}while((l=(l+u+4)%4)!==f);else c.point(a[0],a[1])}function o(r,i){return cs(r[0]-t)0?0:3:cs(r[0]-n)0?2:1:cs(r[1]-e)0?1:0:i>0?3:2}function u(t,e){return s(t.x,e.x)}function s(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(o){var s,c,l,f,d,h,_,p,m,y,g,v=o,b=al(),M={point:w,lineStart:function(){M.point=k,c&&c.push(l=[]);y=!0,m=!1,_=p=NaN},lineEnd:function(){s&&(k(f,d),h&&m&&b.rejoin(),s.push(b.result()));M.point=w,m&&v.lineEnd()},polygonStart:function(){v=b,s=[],c=[],g=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=c.length;nr&&(d-a)*(r-o)>(h-o)*(t-a)&&++e:h<=r&&(d-a)*(r-o)<(h-o)*(t-a)&&--e;return e}(),n=g&&e,i=(s=F(s)).length;(n||i)&&(o.polygonStart(),n&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),i&&sl(s,u,e,a,o),o.polygonEnd());v=o,s=c=l=null}};function w(t,e){i(t,e)&&v.point(t,e)}function k(a,o){var u=i(a,o);if(c&&l.push([a,o]),y)f=a,d=o,h=u,y=!1,u&&(v.lineStart(),v.point(a,o));else if(u&&m)v.point(a,o);else{var s=[_=Math.max(vl,Math.min(gl,_)),p=Math.max(vl,Math.min(gl,p))],b=[a=Math.max(vl,Math.min(gl,a)),o=Math.max(vl,Math.min(gl,o))];yl(s,b,t,e,n,r)?(m||(v.lineStart(),v.point(s[0],s[1])),v.point(b[0],b[1]),u||v.lineEnd(),g=!1):u&&(v.lineStart(),v.point(a,o),g=!1)}_=a,p=o,m=u}return M}}var Ml,wl,kl,Ll=function(){var t,e,n,r=0,i=0,a=960,o=500;return n={stream:function(n){return t&&e===n?t:t=bl(r,i,a,o)(e=n)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],a=+u[1][0],o=+u[1][1],t=e=null,n):[[r,i],[a,o]]}}},xl=Xu(),Dl={sphere:Ls,point:Ls,lineStart:function(){Dl.point=Yl,Dl.lineEnd=Tl},lineEnd:Ls,polygonStart:Ls,polygonEnd:Ls};function Tl(){Dl.point=Dl.lineEnd=Ls}function Yl(t,e){Ml=t*=ss,wl=ys(e*=ss),kl=ds(e),Dl.point=Al}function Al(t,e){t*=ss;var n=ys(e*=ss),r=ds(e),i=cs(t-Ml),a=ds(i),o=r*ys(i),u=kl*n-wl*r*a,s=wl*n+kl*r*a;xl.add(fs(vs(o*o+u*u),s)),Ml=t,wl=n,kl=r}var El=function(t){return xl.reset(),Hs(t,Dl),+xl},Sl=[null,null],jl={type:"LineString",coordinates:Sl},Ol=function(t,e){return Sl[0]=t,Sl[1]=e,El(jl)},Cl={Feature:function(t,e){return Pl(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++rns}).map(s)).concat(w(hs(a/h)*h,i,h).filter(function(t){return cs(t%p)>ns}).map(c))}return y.lines=function(){return g().map(function(t){return{type:"LineString",coordinates:t}})},y.outline=function(){return{type:"Polygon",coordinates:[l(r).concat(f(o).slice(1),l(n).reverse().slice(1),f(u).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.extentMajor(t).extentMinor(t):y.extentMinor()},y.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],u=+t[0][1],o=+t[1][1],r>n&&(t=r,r=n,n=t),u>o&&(t=u,u=o,o=t),y.precision(m)):[[r,u],[n,o]]},y.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),a>i&&(n=a,a=i,i=n),y.precision(m)):[[e,a],[t,i]]},y.step=function(t){return arguments.length?y.stepMajor(t).stepMinor(t):y.stepMinor()},y.stepMajor=function(t){return arguments.length?(_=+t[0],p=+t[1],y):[_,p]},y.stepMinor=function(t){return arguments.length?(d=+t[0],h=+t[1],y):[d,h]},y.precision=function(d){return arguments.length?(m=+d,s=ql(a,i,90),c=Wl(e,t,m),l=ql(u,o,90),f=Wl(r,n,m),y):m},y.extentMajor([[-180,-90+ns],[180,90-ns]]).extentMinor([[-180,-80-ns],[180,80+ns]])}function Vl(){return Ul()()}var $l,Gl,Jl,Zl,Kl=function(t,e){var n=t[0]*ss,r=t[1]*ss,i=e[0]*ss,a=e[1]*ss,o=ds(r),u=ys(r),s=ds(a),c=ys(a),l=o*ds(n),f=o*ys(n),d=s*ds(i),h=s*ys(i),_=2*ws(vs(ks(a-r)+o*s*ks(i-n))),p=ys(_),m=_?function(t){var e=ys(t*=_)/p,n=ys(_-t)/p,r=n*l+e*d,i=n*f+e*h,a=n*u+e*c;return[fs(i,r)*us,fs(a,vs(r*r+i*i))*us]}:function(){return[n*us,r*us]};return m.distance=_,m},Xl=function(t){return t},Ql=Xu(),tf=Xu(),ef={point:Ls,lineStart:Ls,lineEnd:Ls,polygonStart:function(){ef.lineStart=nf,ef.lineEnd=of},polygonEnd:function(){ef.lineStart=ef.lineEnd=ef.point=Ls,Ql.add(cs(tf)),tf.reset()},result:function(){var t=Ql/2;return Ql.reset(),t}};function nf(){ef.point=rf}function rf(t,e){ef.point=af,$l=Jl=t,Gl=Zl=e}function af(t,e){tf.add(Zl*t-Jl*e),Jl=t,Zl=e}function of(){af($l,Gl)}var uf=ef,sf=1/0,cf=sf,lf=-sf,ff=lf;var df,hf,_f,pf,mf={point:function(t,e){tlf&&(lf=t);eff&&(ff=e)},lineStart:Ls,lineEnd:Ls,polygonStart:Ls,polygonEnd:Ls,result:function(){var t=[[sf,cf],[lf,ff]];return lf=ff=-(cf=sf=1/0),t}},yf=0,gf=0,vf=0,bf=0,Mf=0,wf=0,kf=0,Lf=0,xf=0,Df={point:Tf,lineStart:Yf,lineEnd:Sf,polygonStart:function(){Df.lineStart=jf,Df.lineEnd=Of},polygonEnd:function(){Df.point=Tf,Df.lineStart=Yf,Df.lineEnd=Sf},result:function(){var t=xf?[kf/xf,Lf/xf]:wf?[bf/wf,Mf/wf]:vf?[yf/vf,gf/vf]:[NaN,NaN];return yf=gf=vf=bf=Mf=wf=kf=Lf=xf=0,t}};function Tf(t,e){yf+=t,gf+=e,++vf}function Yf(){Df.point=Af}function Af(t,e){Df.point=Ef,Tf(_f=t,pf=e)}function Ef(t,e){var n=t-_f,r=e-pf,i=vs(n*n+r*r);bf+=i*(_f+t)/2,Mf+=i*(pf+e)/2,wf+=i,Tf(_f=t,pf=e)}function Sf(){Df.point=Tf}function jf(){Df.point=Cf}function Of(){Hf(df,hf)}function Cf(t,e){Df.point=Hf,Tf(df=_f=t,hf=pf=e)}function Hf(t,e){var n=t-_f,r=e-pf,i=vs(n*n+r*r);bf+=i*(_f+t)/2,Mf+=i*(pf+e)/2,wf+=i,kf+=(i=pf*t-_f*e)*(_f+t),Lf+=i*(pf+e),xf+=3*i,Tf(_f=t,pf=e)}var Pf=Df;function Ff(t){this._context=t}Ff.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,os)}},result:Ls};var Nf,Rf,If,Bf,zf,qf=Xu(),Wf={point:Ls,lineStart:function(){Wf.point=Uf},lineEnd:function(){Nf&&Vf(Rf,If),Wf.point=Ls},polygonStart:function(){Nf=!0},polygonEnd:function(){Nf=null},result:function(){var t=+qf;return qf.reset(),t}};function Uf(t,e){Wf.point=Vf,Rf=Bf=t,If=zf=e}function Vf(t,e){Bf-=t,zf-=e,qf.add(vs(Bf*Bf+zf*zf)),Bf=t,zf=e}var $f=Wf;function Gf(){this._string=[]}function Jf(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}Gf.prototype={_radius:4.5,_circle:Jf(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Jf(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var Zf=function(t,e){var n,r,i=4.5;function a(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),Hs(t,n(r))),r.result()}return a.area=function(t){return Hs(t,n(uf)),uf.result()},a.measure=function(t){return Hs(t,n($f)),$f.result()},a.bounds=function(t){return Hs(t,n(mf)),mf.result()},a.centroid=function(t){return Hs(t,n(Pf)),Pf.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,Xl):(t=e).stream,a):t},a.context=function(t){return arguments.length?(r=null==t?(e=null,new Gf):new Ff(e=t),"function"!=typeof i&&r.pointRadius(i),a):e},a.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),a):i},a.projection(t).context(e)},Kf=function(t){return{stream:Xf(t)}};function Xf(t){return function(e){var n=new Qf;for(var r in t)n[r]=t[r];return n.stream=e,n}}function Qf(){}function td(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Hs(n,t.stream(mf)),e(mf.result()),null!=r&&t.clipExtent(r),t}function ed(t,e,n){return td(t,function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+e[0][0]+(r-a*(n[1][0]+n[0][0]))/2,u=+e[0][1]+(i-a*(n[1][1]+n[0][1]))/2;t.scale(150*a).translate([o,u])},n)}function nd(t,e,n){return ed(t,[[0,0],e],n)}function rd(t,e,n){return td(t,function(n){var r=+e,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];t.scale(150*i).translate([a,o])},n)}function id(t,e,n){return td(t,function(n){var r=+e,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([a,o])},n)}Qf.prototype={constructor:Qf,point:function(t,e){this.stream.point(t,e)},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 ad=16,od=ds(30*ss),ud=function(t,e){return+e?function(t,e){function n(r,i,a,o,u,s,c,l,f,d,h,_,p,m){var y=c-r,g=l-i,v=y*y+g*g;if(v>4*e&&p--){var b=o+d,M=u+h,w=s+_,k=vs(b*b+M*M+w*w),L=ws(w/=k),x=cs(cs(w)-1)e||cs((y*A+g*E)/v-.5)>.3||o*d+u*h+s*_2?t[2]%360*ss:0,T()):[m*us,y*us,g*us]},x.angle=function(t){return arguments.length?(v=t%360*ss,T()):v*us},x.precision=function(t){return arguments.length?(o=ud(u,L=t*t),Y()):vs(L)},x.fitExtent=function(t,e){return ed(x,t,e)},x.fitSize=function(t,e){return nd(x,t,e)},x.fitWidth=function(t,e){return rd(x,t,e)},x.fitHeight=function(t,e){return id(x,t,e)},function(){return e=t.apply(this,arguments),x.invert=e.invert&&D,T()}}function dd(t){var e=0,n=rs/3,r=fd(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*ss,n=t[1]*ss):[e*us,n*us]},i}function hd(t,e){var n=ys(t),r=(n+ys(e))/2;if(cs(r)=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?s:o).invert(t)},l.stream=function(n){return t&&e===n?t:(r=[o.stream(e=n),u.stream(n),s.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n0?e<-is+ns&&(e=-is+ns):e>is-ns&&(e=is-ns);var n=i/ms(Dd(e),r);return[n*ys(r*t),i-n*ds(r*t)]}return a.invert=function(t,e){var n=i-e,a=gs(r)*vs(t*t+n*n);return[fs(t,cs(n))/r*gs(n),2*ls(ms(i/a,1/r))-is]},a}var Yd=function(){return dd(Td).scale(109.5).parallels([30,30])};function Ad(t,e){return[t,e]}Ad.invert=Ad;var Ed=function(){return ld(Ad).scale(152.63)};function Sd(t,e){var n=ds(t),r=t===e?ys(t):(n-ds(e))/(e-t),i=n/r+t;if(cs(r)ns&&--i>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]};var Ud=function(){return ld(Wd).scale(175.295)};function Vd(t,e){return[ds(e)*ys(t),ys(e)]}Vd.invert=gd(ws);var $d=function(){return ld(Vd).scale(249.5).clipAngle(90+ns)};function Gd(t,e){var n=ds(e),r=1+ds(t)*n;return[n*ys(t)/r,ys(e)/r]}Gd.invert=gd(function(t){return 2*ls(t)});var Jd=function(){return ld(Gd).scale(250).clipAngle(142)};function Zd(t,e){return[ps(bs((is+e)/2)),-t]}Zd.invert=function(t,e){return[-e,2*ls(_s(t))-is]};var Kd=function(){var t=xd(Zd),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)};function Xd(t,e){return t.parent===e.parent?1:2}function Qd(t,e){return t+e.x}function th(t,e){return Math.max(t,e.y)}var eh=function(){var t=Xd,e=1,n=1,r=!1;function i(i){var a,o=0;i.eachAfter(function(e){var n=e.children;n?(e.x=function(t){return t.reduce(Qd,0)/t.length}(n),e.y=function(t){return 1+t.reduce(th,0)}(n)):(e.x=a?o+=t(e,a):0,e.y=0,a=e)});var u=function(t){for(var e;e=t.children;)t=e[0];return t}(i),s=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),c=u.x-t(u,s)/2,l=s.x+t(s,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-c)/(l-c)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i};function nh(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function rh(t,e){var n,r,i,a,o,u=new uh(t),s=+t.value&&(u.value=t.value),c=[u];for(null==e&&(e=ih);n=c.pop();)if(s&&(n.value=+n.data.value),(i=e(n.data))&&(o=i.length))for(n.children=new Array(o),a=o-1;a>=0;--a)c.push(r=n.children[a]=new uh(i[a])),r.parent=n,r.depth=n.depth+1;return u.eachBefore(oh)}function ih(t){return t.children}function ah(t){t.data=t.data.data}function oh(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function uh(t){this.data=t,this.depth=this.height=0,this.parent=null}uh.prototype=rh.prototype={constructor:uh,count:function(){return this.eachAfter(nh)},each:function(t){var e,n,r,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),n=a.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return rh(this).eachBefore(ah)}};var sh=Array.prototype.slice;var ch=function(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(sh.call(t))).length,a=[];r0&&n*n>r*r+i*i}function hh(t,e){for(var n=0;n(o*=o)?(r=(c+o-i)/(2*c),a=Math.sqrt(Math.max(0,o/c-r*r)),n.x=t.x-r*u-a*s,n.y=t.y-r*s+a*u):(r=(c+i-o)/(2*c),a=Math.sqrt(Math.max(0,i/c-r*r)),n.x=e.x+r*u-a*s,n.y=e.y+r*s+a*u)):(n.x=e.x+n.r,n.y=e.y)}function gh(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function vh(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function bh(t){this._=t,this.next=null,this.previous=null}function Mh(t){if(!(i=t.length))return 0;var e,n,r,i,a,o,u,s,c,l,f;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;yh(n,e,r=t[2]),e=new bh(e),n=new bh(n),r=new bh(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(u=3;u0)throw new Error("cycle");return a}return n.id=function(e){return arguments.length?(t=kh(e),n):t},n.parentId=function(t){return arguments.length?(e=kh(t),n):e},n};function Ih(t,e){return t.parent===e.parent?1:2}function Bh(t){var e=t.children;return e?e[0]:t.t}function zh(t){var e=t.children;return e?e[e.length-1]:t.t}function qh(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Wh(t,e,n){return t.a.parent===e.parent?t.a:n}function Uh(t,e){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=e}Uh.prototype=Object.create(uh.prototype);var Vh=function(){var t=Ih,e=1,n=1,r=null;function i(i){var s=function(t){for(var e,n,r,i,a,o=new Uh(t,0),u=[o];e=u.pop();)if(r=e._.children)for(e.children=new Array(a=r.length),i=a-1;i>=0;--i)u.push(n=e.children[i]=new Uh(r[i],i)),n.parent=e;return(o.parent=new Uh(null,0)).children=[o],o}(i);if(s.eachAfter(a),s.parent.m=-s.z,s.eachBefore(o),r)i.eachBefore(u);else{var c=i,l=i,f=i;i.eachBefore(function(t){t.xl.x&&(l=t),t.depth>f.depth&&(f=t)});var d=c===l?1:t(c,l)/2,h=d-c.x,_=e/(l.x+d+h),p=n/(f.depth||1);i.eachBefore(function(t){t.x=(t.x+h)*_,t.y=t.depth*p})}return i}function a(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)(e=i[a]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var a=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,a=e,o=e,u=n,s=a.parent.children[0],c=a.m,l=o.m,f=u.m,d=s.m;u=zh(u),a=Bh(a),u&&a;)s=Bh(s),(o=zh(o)).a=e,(i=u.z+f-a.z-c+t(u._,a._))>0&&(qh(Wh(u,e,r),e,i),c+=i,l+=i),f+=u.m,c+=a.m,d+=s.m,l+=o.m;u&&!zh(o)&&(o.t=u,o.m+=f-l),a&&!Bh(s)&&(s.t=a,s.m+=c-d,r=e)}return r}(e,i,e.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i},$h=function(t,e,n,r,i){for(var a,o=t.children,u=-1,s=o.length,c=t.value&&(i-n)/t.value;++ud&&(d=u),m=l*l*p,(h=Math.max(d/m,m/f))>_){l-=u;break}_=h}y.push(o={value:l,dice:s1?e:1)},n}(Gh),Kh=function(){var t=Zh,e=!1,n=1,r=1,i=[0],a=Lh,o=Lh,u=Lh,s=Lh,c=Lh;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(f),i=[0],e&&t.eachBefore(Sh),t}function f(e){var n=i[e.depth],r=e.x0+n,l=e.y0+n,f=e.x1-n,d=e.y1-n;f=n-1){var l=u[e];return l.x0=i,l.y0=a,l.x1=o,void(l.y1=s)}var f=c[e],d=r/2+f,h=e+1,_=n-1;for(;h<_;){var p=h+_>>>1;c[p]s-a){var g=(i*y+o*m)/r;t(e,h,m,i,a,g,s),t(h,n,y,g,a,o,s)}else{var v=(a*y+s*m)/r;t(e,h,m,i,a,o,v),t(h,n,y,i,v,o,s)}}(0,s,t.value,e,n,r,i)},Qh=function(t,e,n,r,i){(1&t.depth?$h:jh)(t,e,n,r,i)},t_=function t(e){function n(t,n,r,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,u,s,c,l,f=-1,d=o.length,h=t.value;++f1?e:1)},n}(Gh),e_=function(t){for(var e,n=-1,r=t.length,i=t[r-1],a=0;++n1&&r_(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}var o_=function(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e=0;--e)c.push(t[r[a[e]][2]]);for(e=+u;eu!=c>u&&o<(s-n)*(u-r)/(c-r)+n&&(l=!l),s=n,c=r;return l},s_=function(t){for(var e,n,r=-1,i=t.length,a=t[i-1],o=a[0],u=a[1],s=0;++r1);return t+n*a*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(c_),d_=function t(e){function n(){var t=f_.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(c_),h_=function t(e){function n(t){return function(){for(var n=0,r=0;r2?Y_:T_,r=i=null,l}function l(e){return(r||(r=n(a,o,s?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}(t):t,u)))(+e)}return l.invert=function(t){return(i||(i=n(o,a,D_,s?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}(e):e)))(+t)},l.domain=function(t){return arguments.length?(a=y_.call(t,L_),c()):a.slice()},l.range=function(t){return arguments.length?(o=g_.call(t),c()):o.slice()},l.rangeRound=function(t){return o=g_.call(t),u=tr,c()},l.clamp=function(t){return arguments.length?(s=!!t,c()):s},l.interpolate=function(t){return arguments.length?(u=t,c()):u},c()}var S_=function(t,e,n){var r,i=t[0],a=t[t.length-1],o=Y(i,a,null==e?10:e);switch((n=Pu(null==n?",f":n)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(a));return null!=n.precision||isNaN(r=Zu(o,u))||(n.precision=r),Bu(n,u);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=Ku(o,Math.max(Math.abs(i),Math.abs(a))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=Ju(o))||(n.precision=r-2*("%"===n.type))}return Iu(n)};function j_(t){var e=t.domain;return t.ticks=function(t){var n=e();return D(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return S_(e(),t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),a=0,o=i.length-1,u=i[a],s=i[o];return s0?r=T(u=Math.floor(u/r)*r,s=Math.ceil(s/r)*r,n):r<0&&(r=T(u=Math.ceil(u*r)/r,s=Math.floor(s*r)/r,n)),r>0?(i[a]=Math.floor(u/r)*r,i[o]=Math.ceil(s/r)*r,e(i)):r<0&&(i[a]=Math.ceil(u*r)/r,i[o]=Math.floor(s*r)/r,e(i)),t},t}function O_(){var t=E_(D_,zn);return t.copy=function(){return A_(t,O_())},j_(t)}function C_(){var t=[0,1];function e(t){return+t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=y_.call(n,L_),e):t.slice()},e.copy=function(){return C_().domain(t)},j_(e)}var H_=function(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o0){for(;ds)break;p.push(f)}}else for(;d=1;--l)if(!((f=c*l)s)break;p.push(f)}}else p=D(d,h,Math.min(h-d,_)).map(i);return a?p.reverse():p},t.tickFormat=function(e,a){if(null==a&&(a=10===n?".0e":","),"function"!=typeof a&&(a=Iu(a)),e===1/0)return a;null==e&&(e=10);var o=Math.max(1,n*e/t.ticks().length);return function(t){var e=t/i(Math.round(r(t)));return e*n0?n[i-1]:t[0],i=n?[r[n-1],e]:[r[o-1],r[o]]},a.copy=function(){return $_().domain([t,e]).range(i)},j_(a)}function G_(){var t=[.5],e=[0,1],n=1;function r(r){if(r<=r)return e[s(t,r,0,n)]}return r.domain=function(i){return arguments.length?(t=g_.call(i),n=Math.min(t.length,e.length-1),r):t.slice()},r.range=function(i){return arguments.length?(e=g_.call(i),n=Math.min(t.length,e.length-1),r):e.slice()},r.invertExtent=function(n){var r=e.indexOf(n);return[t[r-1],t[r]]},r.copy=function(){return G_().domain(t).range(e)},r}var J_=new Date,Z_=new Date;function K_(t,e,n,r){function i(e){return t(e=new Date(+e)),e}return i.floor=i,i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return u;do{u.push(o=new Date(+n)),e(n,a),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return J_.setTime(+e),Z_.setTime(+r),t(J_),t(Z_),Math.floor(n(J_,Z_))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var X_=K_(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});X_.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?K_(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):X_:null};var Q_=X_,tp=X_.range,ep=6e4,np=6048e5,rp=K_(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),ip=rp,ap=rp.range,op=K_(function(t){t.setTime(Math.floor(t/ep)*ep)},function(t,e){t.setTime(+t+e*ep)},function(t,e){return(e-t)/ep},function(t){return t.getMinutes()}),up=op,sp=op.range,cp=K_(function(t){var e=t.getTimezoneOffset()*ep%36e5;e<0&&(e+=36e5),t.setTime(36e5*Math.floor((+t-e)/36e5)+e)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),lp=cp,fp=cp.range,dp=K_(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ep)/864e5},function(t){return t.getDate()-1}),hp=dp,_p=dp.range;function pp(t){return K_(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ep)/np})}var mp=pp(0),yp=pp(1),gp=pp(2),vp=pp(3),bp=pp(4),Mp=pp(5),wp=pp(6),kp=mp.range,Lp=yp.range,xp=gp.range,Dp=vp.range,Tp=bp.range,Yp=Mp.range,Ap=wp.range,Ep=K_(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),Sp=Ep,jp=Ep.range,Op=K_(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Op.every=function(t){return isFinite(t=Math.floor(t))&&t>0?K_(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var Cp=Op,Hp=Op.range,Pp=K_(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*ep)},function(t,e){return(e-t)/ep},function(t){return t.getUTCMinutes()}),Fp=Pp,Np=Pp.range,Rp=K_(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),Ip=Rp,Bp=Rp.range,zp=K_(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}),qp=zp,Wp=zp.range;function Up(t){return K_(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/np})}var Vp=Up(0),$p=Up(1),Gp=Up(2),Jp=Up(3),Zp=Up(4),Kp=Up(5),Xp=Up(6),Qp=Vp.range,tm=$p.range,em=Gp.range,nm=Jp.range,rm=Zp.range,im=Kp.range,am=Xp.range,om=K_(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),um=om,sm=om.range,cm=K_(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});cm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?K_(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var lm=cm,fm=cm.range;function dm(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function hm(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function _m(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function pm(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,u=t.months,s=t.shortMonths,c=Tm(i),l=Ym(i),f=Tm(a),d=Ym(a),h=Tm(o),_=Ym(o),p=Tm(u),m=Ym(u),y=Tm(s),g=Ym(s),v={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:Gm,e:Gm,f:Qm,H:Jm,I:Zm,j:Km,L:Xm,m:ty,M:ey,p:function(t){return i[+(t.getHours()>=12)]},Q:Ay,s:Ey,S:ny,u:ry,U:iy,V:ay,w:oy,W:uy,x:null,X:null,y:sy,Y:cy,Z:ly,"%":Yy},b={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:fy,e:fy,f:my,H:dy,I:hy,j:_y,L:py,m:yy,M:gy,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:Ay,s:Ey,S:vy,u:by,U:My,V:wy,w:ky,W:Ly,x:null,X:null,y:xy,Y:Dy,Z:Ty,"%":Yy},M={a:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=_[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return L(t,e,n,r)},d:Nm,e:Nm,f:Wm,H:Im,I:Im,j:Rm,L:qm,m:Fm,M:Bm,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1},Q:Vm,s:$m,S:zm,u:Em,U:Sm,V:jm,w:Am,W:Om,x:function(t,e,r){return L(t,n,e,r)},X:function(t,e,n){return L(t,r,e,n)},y:Hm,Y:Cm,Z:Pm,"%":Um};function w(t,e){return function(n){var r,i,a,o=[],u=-1,s=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++u53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=hm(_m(a.y))).getUTCDay(),r=i>4||0===i?$p.ceil(r):$p(r),r=qp.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=e(_m(a.y))).getDay(),r=i>4||0===i?yp.ceil(r):yp(r),r=hp.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?hm(_m(a.y)).getUTCDay():e(_m(a.y)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,hm(a)):e(a)}}function L(t,e,n,r){for(var i,a,o=0,u=e.length,s=n.length;o=s)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=M[i in Mm?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return v.x=w(n,v),v.X=w(r,v),v.c=w(e,v),b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),{format:function(t){var e=w(t+="",v);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",dm);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t,hm);return e.toString=function(){return t},e}}}var mm,ym,gm,vm,bm,Mm={"-":"",_:" ",0:"0"},wm=/^\s*\d+/,km=/^%/,Lm=/[\\^$*+?|[\]().{}]/g;function xm(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a68?1900:2e3),n+r[0].length):-1}function Pm(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Fm(t,e,n){var r=wm.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Nm(t,e,n){var r=wm.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Rm(t,e,n){var r=wm.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Im(t,e,n){var r=wm.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Bm(t,e,n){var r=wm.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function zm(t,e,n){var r=wm.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function qm(t,e,n){var r=wm.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Wm(t,e,n){var r=wm.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Um(t,e,n){var r=km.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Vm(t,e,n){var r=wm.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function $m(t,e,n){var r=wm.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function Gm(t,e){return xm(t.getDate(),e,2)}function Jm(t,e){return xm(t.getHours(),e,2)}function Zm(t,e){return xm(t.getHours()%12||12,e,2)}function Km(t,e){return xm(1+hp.count(Cp(t),t),e,3)}function Xm(t,e){return xm(t.getMilliseconds(),e,3)}function Qm(t,e){return Xm(t,e)+"000"}function ty(t,e){return xm(t.getMonth()+1,e,2)}function ey(t,e){return xm(t.getMinutes(),e,2)}function ny(t,e){return xm(t.getSeconds(),e,2)}function ry(t){var e=t.getDay();return 0===e?7:e}function iy(t,e){return xm(mp.count(Cp(t),t),e,2)}function ay(t,e){var n=t.getDay();return t=n>=4||0===n?bp(t):bp.ceil(t),xm(bp.count(Cp(t),t)+(4===Cp(t).getDay()),e,2)}function oy(t){return t.getDay()}function uy(t,e){return xm(yp.count(Cp(t),t),e,2)}function sy(t,e){return xm(t.getFullYear()%100,e,2)}function cy(t,e){return xm(t.getFullYear()%1e4,e,4)}function ly(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+xm(e/60|0,"0",2)+xm(e%60,"0",2)}function fy(t,e){return xm(t.getUTCDate(),e,2)}function dy(t,e){return xm(t.getUTCHours(),e,2)}function hy(t,e){return xm(t.getUTCHours()%12||12,e,2)}function _y(t,e){return xm(1+qp.count(lm(t),t),e,3)}function py(t,e){return xm(t.getUTCMilliseconds(),e,3)}function my(t,e){return py(t,e)+"000"}function yy(t,e){return xm(t.getUTCMonth()+1,e,2)}function gy(t,e){return xm(t.getUTCMinutes(),e,2)}function vy(t,e){return xm(t.getUTCSeconds(),e,2)}function by(t){var e=t.getUTCDay();return 0===e?7:e}function My(t,e){return xm(Vp.count(lm(t),t),e,2)}function wy(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Zp(t):Zp.ceil(t),xm(Zp.count(lm(t),t)+(4===lm(t).getUTCDay()),e,2)}function ky(t){return t.getUTCDay()}function Ly(t,e){return xm($p.count(lm(t),t),e,2)}function xy(t,e){return xm(t.getUTCFullYear()%100,e,2)}function Dy(t,e){return xm(t.getUTCFullYear()%1e4,e,4)}function Ty(){return"+0000"}function Yy(){return"%"}function Ay(t){return+t}function Ey(t){return Math.floor(+t/1e3)}function Sy(t){return mm=pm(t),ym=mm.format,gm=mm.parse,vm=mm.utcFormat,bm=mm.utcParse,mm}Sy({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 jy=Date.prototype.toISOString?function(t){return t.toISOString()}:vm("%Y-%m-%dT%H:%M:%S.%LZ");var Oy=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:bm("%Y-%m-%dT%H:%M:%S.%LZ"),Cy=1e3,Hy=60*Cy,Py=60*Hy,Fy=24*Py,Ny=7*Fy,Ry=30*Fy,Iy=365*Fy;function By(t){return new Date(t)}function zy(t){return t instanceof Date?+t:+new Date(+t)}function qy(t,e,n,r,a,o,u,s,c){var l=E_(D_,zn),f=l.invert,d=l.domain,h=c(".%L"),_=c(":%S"),p=c("%I:%M"),m=c("%I %p"),y=c("%a %d"),g=c("%b %d"),v=c("%B"),b=c("%Y"),M=[[u,1,Cy],[u,5,5*Cy],[u,15,15*Cy],[u,30,30*Cy],[o,1,Hy],[o,5,5*Hy],[o,15,15*Hy],[o,30,30*Hy],[a,1,Py],[a,3,3*Py],[a,6,6*Py],[a,12,12*Py],[r,1,Fy],[r,2,2*Fy],[n,1,Ny],[e,1,Ry],[e,3,3*Ry],[t,1,Iy]];function w(i){return(u(i)1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return sv.h=360*t-100,sv.s=1.5-1.5*e,sv.l=.8-.9*e,sv+""},lv=Ue(),fv=Math.PI/3,dv=2*Math.PI/3,hv=function(t){var e;return t=(.5-t)*Math.PI,lv.r=255*(e=Math.sin(t))*e,lv.g=255*(e=Math.sin(t+fv))*e,lv.b=255*(e=Math.sin(t+dv))*e,lv+""};function _v(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var pv=_v(Gy("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),mv=_v(Gy("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),yv=_v(Gy("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),gv=_v(Gy("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),vv=function(t){return function(){return t}},bv=Math.abs,Mv=Math.atan2,wv=Math.cos,kv=Math.max,Lv=Math.min,xv=Math.sin,Dv=Math.sqrt,Tv=1e-12,Yv=Math.PI,Av=Yv/2,Ev=2*Yv;function Sv(t){return t>=1?Av:t<=-1?-Av:Math.asin(t)}function jv(t){return t.innerRadius}function Ov(t){return t.outerRadius}function Cv(t){return t.startAngle}function Hv(t){return t.endAngle}function Pv(t){return t&&t.padAngle}function Fv(t,e,n,r,i,a,o){var u=t-n,s=e-r,c=(o?a:-a)/Dv(u*u+s*s),l=c*s,f=-c*u,d=t+l,h=e+f,_=n+l,p=r+f,m=(d+_)/2,y=(h+p)/2,g=_-d,v=p-h,b=g*g+v*v,M=i-a,w=d*p-_*h,k=(v<0?-1:1)*Dv(kv(0,M*M*b-w*w)),L=(w*v-g*k)/b,x=(-w*g-v*k)/b,D=(w*v+g*k)/b,T=(-w*g+v*k)/b,Y=L-m,A=x-y,E=D-m,S=T-y;return Y*Y+A*A>E*E+S*S&&(L=D,x=T),{cx:L,cy:x,x01:-l,y01:-f,x11:L*(i/M-1),y11:x*(i/M-1)}}var Nv=function(){var t=jv,e=Ov,n=vv(0),r=null,i=Cv,a=Hv,o=Pv,u=null;function s(){var s,c,l,f=+t.apply(this,arguments),d=+e.apply(this,arguments),h=i.apply(this,arguments)-Av,_=a.apply(this,arguments)-Av,p=bv(_-h),m=_>h;if(u||(u=s=za()),dTv)if(p>Ev-Tv)u.moveTo(d*wv(h),d*xv(h)),u.arc(0,0,d,h,_,!m),f>Tv&&(u.moveTo(f*wv(_),f*xv(_)),u.arc(0,0,f,_,h,m));else{var y,g,v=h,b=_,M=h,w=_,k=p,L=p,x=o.apply(this,arguments)/2,D=x>Tv&&(r?+r.apply(this,arguments):Dv(f*f+d*d)),T=Lv(bv(d-f)/2,+n.apply(this,arguments)),Y=T,A=T;if(D>Tv){var E=Sv(D/f*xv(x)),S=Sv(D/d*xv(x));(k-=2*E)>Tv?(M+=E*=m?1:-1,w-=E):(k=0,M=w=(h+_)/2),(L-=2*S)>Tv?(v+=S*=m?1:-1,b-=S):(L=0,v=b=(h+_)/2)}var j=d*wv(v),O=d*xv(v),C=f*wv(w),H=f*xv(w);if(T>Tv){var P=d*wv(b),F=d*xv(b),N=f*wv(M),R=f*xv(M);if(pTv?function(t,e,n,r,i,a,o,u){var s=n-t,c=r-e,l=o-i,f=u-a,d=(l*(e-a)-f*(t-i))/(f*s-l*c);return[t+d*s,e+d*c]}(j,O,N,R,P,F,C,H):[C,H],B=j-I[0],z=O-I[1],q=P-I[0],W=F-I[1],U=1/xv(((l=(B*q+z*W)/(Dv(B*B+z*z)*Dv(q*q+W*W)))>1?0:l<-1?Yv:Math.acos(l))/2),V=Dv(I[0]*I[0]+I[1]*I[1]);Y=Lv(T,(f-V)/(U-1)),A=Lv(T,(d-V)/(U+1))}}L>Tv?A>Tv?(y=Fv(N,R,j,O,d,A,m),g=Fv(P,F,C,H,d,A,m),u.moveTo(y.cx+y.x01,y.cy+y.y01),ATv&&k>Tv?Y>Tv?(y=Fv(C,H,P,F,f,-Y,m),g=Fv(j,O,N,R,f,-Y,m),u.lineTo(y.cx+y.x01,y.cy+y.y01),Y=l;--f)u.point(m[f],y[f]);u.lineEnd(),u.areaEnd()}p&&(m[c]=+t(d,c,s),y[c]=+n(d,c,s),u.point(e?+e(d,c,s):m[c],r?+r(d,c,s):y[c]))}if(h)return u=null,h+""||null}function c(){return qv().defined(i).curve(o).context(a)}return s.x=function(n){return arguments.length?(t="function"==typeof n?n:vv(+n),e=null,s):t},s.x0=function(e){return arguments.length?(t="function"==typeof e?e:vv(+e),s):t},s.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:vv(+t),s):e},s.y=function(t){return arguments.length?(n="function"==typeof t?t:vv(+t),r=null,s):n},s.y0=function(t){return arguments.length?(n="function"==typeof t?t:vv(+t),s):n},s.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:vv(+t),s):r},s.lineX0=s.lineY0=function(){return c().x(t).y(n)},s.lineY1=function(){return c().x(t).y(r)},s.lineX1=function(){return c().x(e).y(n)},s.defined=function(t){return arguments.length?(i="function"==typeof t?t:vv(!!t),s):i},s.curve=function(t){return arguments.length?(o=t,null!=a&&(u=o(a)),s):o},s.context=function(t){return arguments.length?(null==t?a=u=null:u=o(a=t),s):a},s},Uv=function(t,e){return et?1:e>=t?0:NaN},Vv=function(t){return t},$v=function(){var t=Vv,e=Uv,n=null,r=vv(0),i=vv(Ev),a=vv(0);function o(o){var u,s,c,l,f,d=o.length,h=0,_=new Array(d),p=new Array(d),m=+r.apply(this,arguments),y=Math.min(Ev,Math.max(-Ev,i.apply(this,arguments)-m)),g=Math.min(Math.abs(y)/d,a.apply(this,arguments)),v=g*(y<0?-1:1);for(u=0;u0&&(h+=f);for(null!=e?_.sort(function(t,n){return e(p[t],p[n])}):null!=n&&_.sort(function(t,e){return n(o[t],o[e])}),u=0,c=h?(y-d*v)/h:0;u0?f*c:0)+v,p[s]={data:o[s],index:u,value:f,startAngle:m,endAngle:l,padAngle:g};return p}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:vv(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:vv(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:vv(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:vv(+t),o):a},o},Gv=Zv(Iv);function Jv(t){this._curve=t}function Zv(t){function e(e){return new Jv(t(e))}return e._curve=t,e}function Kv(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(Zv(t)):e()._curve},t}Jv.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var Xv=function(){return Kv(qv().curve(Gv))},Qv=function(){var t=Wv().curve(Gv),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=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 Kv(n())},delete t.lineX0,t.lineEndAngle=function(){return Kv(r())},delete t.lineX1,t.lineInnerRadius=function(){return Kv(i())},delete t.lineY0,t.lineOuterRadius=function(){return Kv(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(Zv(t)):e()._curve},t},tb=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]},eb=Array.prototype.slice;function nb(t){return t.source}function rb(t){return t.target}function ib(t){var e=nb,n=rb,r=Bv,i=zv,a=null;function o(){var o,u=eb.call(arguments),s=e.apply(this,u),c=n.apply(this,u);if(a||(a=o=za()),t(a,+r.apply(this,(u[0]=s,u)),+i.apply(this,u),+r.apply(this,(u[0]=c,u)),+i.apply(this,u)),o)return a=null,o+""||null}return o.source=function(t){return arguments.length?(e=t,o):e},o.target=function(t){return arguments.length?(n=t,o):n},o.x=function(t){return arguments.length?(r="function"==typeof t?t:vv(+t),o):r},o.y=function(t){return arguments.length?(i="function"==typeof t?t:vv(+t),o):i},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o}function ab(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function ob(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function ub(t,e,n,r,i){var a=tb(e,n),o=tb(e,n=(n+i)/2),u=tb(r,n),s=tb(r,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],u[0],u[1],s[0],s[1])}function sb(){return ib(ab)}function cb(){return ib(ob)}function lb(){var t=ib(ub);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var fb={draw:function(t,e){var n=Math.sqrt(e/Yv);t.moveTo(n,0),t.arc(0,0,n,0,Ev)}},db={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},hb=Math.sqrt(1/3),_b=2*hb,pb={draw:function(t,e){var n=Math.sqrt(e/_b),r=n*hb;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},mb=Math.sin(Yv/10)/Math.sin(7*Yv/10),yb=Math.sin(Ev/10)*mb,gb=-Math.cos(Ev/10)*mb,vb={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=yb*n,i=gb*n;t.moveTo(0,-n),t.lineTo(r,i);for(var a=1;a<5;++a){var o=Ev*a/5,u=Math.cos(o),s=Math.sin(o);t.lineTo(s*n,-u*n),t.lineTo(u*r-s*i,s*r+u*i)}t.closePath()}},bb={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},Mb=Math.sqrt(3),wb={draw:function(t,e){var n=-Math.sqrt(e/(3*Mb));t.moveTo(0,2*n),t.lineTo(-Mb*n,-n),t.lineTo(Mb*n,-n),t.closePath()}},kb=Math.sqrt(3)/2,Lb=1/Math.sqrt(12),xb=3*(Lb/2+1),Db={draw:function(t,e){var n=Math.sqrt(e/xb),r=n/2,i=n*Lb,a=r,o=n*Lb+n,u=-a,s=o;t.moveTo(r,i),t.lineTo(a,o),t.lineTo(u,s),t.lineTo(-.5*r-kb*i,kb*r+-.5*i),t.lineTo(-.5*a-kb*o,kb*a+-.5*o),t.lineTo(-.5*u-kb*s,kb*u+-.5*s),t.lineTo(-.5*r+kb*i,-.5*i-kb*r),t.lineTo(-.5*a+kb*o,-.5*o-kb*a),t.lineTo(-.5*u+kb*s,-.5*s-kb*u),t.closePath()}},Tb=[fb,db,pb,bb,vb,wb,Db],Yb=function(){var t=vv(fb),e=vv(64),n=null;function r(){var r;if(n||(n=r=za()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(e){return arguments.length?(t="function"==typeof e?e:vv(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:vv(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r},Ab=function(){};function Eb(t,e,n){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+e)/6,(t._y0+4*t._y1+n)/6)}function Sb(t){this._context=t}Sb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Eb(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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:Eb(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var jb=function(t){return new Sb(t)};function Ob(t){this._context=t}Ob.prototype={areaStart:Ab,areaEnd:Ab,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Eb(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Cb=function(t){return new Ob(t)};function Hb(t){this._context=t}Hb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Eb(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Pb=function(t){return new Hb(t)};function Fb(t,e){this._basis=new Sb(t),this._beta=e}Fb.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,u=e[n]-a,s=-1;++s<=n;)r=s/n,this._basis.point(this._beta*t[s]+(1-this._beta)*(i+r*o),this._beta*e[s]+(1-this._beta)*(a+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Nb=function t(e){function n(t){return 1===e?new Sb(t):new Fb(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function Rb(t,e,n){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-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Ib(t,e){this._context=t,this._k=(1-e)/6}Ib.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Rb(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Rb(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Bb=function t(e){function n(t){return new Ib(t,e)}return n.tension=function(e){return t(+e)},n}(0);function zb(t,e){this._context=t,this._k=(1-e)/6}zb.prototype={areaStart:Ab,areaEnd:Ab,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=NaN,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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Rb(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var qb=function t(e){function n(t){return new zb(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Wb(t,e){this._context=t,this._k=(1-e)/6}Wb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,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:Rb(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ub=function t(e){function n(t){return new Wb(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Vb(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Tv){var u=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*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/s,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>Tv){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/l,o=(o*c+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function $b(t,e){this._context=t,this._alpha=e}$b.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Vb(this,t,e)}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=e}};var Gb=function t(e){function n(t){return e?new $b(t,e):new Ib(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Jb(t,e){this._context=t,this._alpha=e}Jb.prototype={areaStart:Ab,areaEnd:Ab,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=NaN,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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Vb(this,t,e)}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=e}};var Zb=function t(e){function n(t){return e?new Jb(t,e):new zb(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Kb(t,e){this._context=t,this._alpha=e}Kb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+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:Vb(this,t,e)}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=e}};var Xb=function t(e){function n(t){return e?new Kb(t,e):new Wb(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Qb(t){this._context=t}Qb.prototype={areaStart:Ab,areaEnd:Ab,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var tM=function(t){return new Qb(t)};function eM(t){return t<0?-1:1}function nM(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),u=(a*i+o*r)/(r+i);return(eM(a)+eM(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function rM(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function iM(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,u=(a-r)/3;t._context.bezierCurveTo(r+u,i+u*e,a-u,o-u*n,a,o)}function aM(t){this._context=t}function oM(t){this._context=new uM(t)}function uM(t){this._context=t}function sM(t){return new aM(t)}function cM(t){return new oM(t)}function lM(t){this._context=t}function fM(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var _M=function(t){return new hM(t,.5)};function pM(t){return new hM(t,0)}function mM(t){return new hM(t,1)}var yM=function(t,e){if((i=t.length)>1)for(var n,r,i,a=1,o=t[e[0]],u=o.length;a=0;)n[e]=e;return n};function vM(t,e){return t[e]}var bM=function(){var t=vv([]),e=gM,n=yM,r=vM;function i(i){var a,o,u=t.apply(this,arguments),s=i.length,c=u.length,l=new Array(c);for(a=0;a0){for(var n,r,i,a=0,o=t[0].length;a1)for(var n,r,i,a,o,u,s=0,c=t[e[0]].length;s=0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):r[0]=a},kM=function(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],a=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,a=0,o=1;o0)){if(a/=d,d<0){if(a0){if(a>f)return;a>l&&(l=a)}if(a=r-s,d||!(a<0)){if(a/=d,d<0){if(a>f)return;a>l&&(l=a)}else if(d>0){if(a0)){if(a/=h,h<0){if(a0){if(a>f)return;a>l&&(l=a)}if(a=i-c,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>l&&(l=a)}else if(h>0){if(a0||f<1)||(l>0&&(t[0]=[s+l*d,c+l*h]),f<1&&(t[1]=[s+f*d,c+f*h]),!0)}}}}}function qM(t,e,n,r,i){var a=t[1];if(a)return!0;var o,u,s=t[0],c=t.left,l=t.right,f=c[0],d=c[1],h=l[0],_=l[1],p=(f+h)/2,m=(d+_)/2;if(_===d){if(p=r)return;if(f>h){if(s){if(s[1]>=i)return}else s=[p,n];a=[p,i]}else{if(s){if(s[1]1)if(f>h){if(s){if(s[1]>=i)return}else s=[(n-u)/o,n];a=[(i-u)/o,i]}else{if(s){if(s[1]=r)return}else s=[e,o*e+u];a=[r,o*r+u]}else{if(s){if(s[0]=-fw)){var h=s*s+c*c,_=l*l+f*f,p=(f*h-c*_)/d,m=(s*_-l*h)/d,y=GM.pop()||new JM;y.arc=t,y.site=i,y.x=p+o,y.y=(y.cy=m+u)+Math.sqrt(p*p+m*m),t.circle=y;for(var g=null,v=sw._;v;)if(y.ylw)u=u.L;else{if(!((i=a-aw(u,o))>lw)){r>-lw?(e=u.P,n=u):i>-lw?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}!function(t){uw[t.index]={site:t,halfedges:[]}}(t);var s=tw(t);if(ow.insert(e,s),e||n){if(e===n)return KM(e),n=tw(e.site),ow.insert(s,n),s.edge=n.edge=RM(e.site,s.site),ZM(e),void ZM(n);if(n){KM(e),KM(n);var c=e.site,l=c[0],f=c[1],d=t[0]-l,h=t[1]-f,_=n.site,p=_[0]-l,m=_[1]-f,y=2*(d*m-h*p),g=d*d+h*h,v=p*p+m*m,b=[(m*g-h*v)/y+l,(d*v-p*g)/y+f];BM(n.edge,c,_,b),s.edge=RM(c,t,null,b),n.edge=RM(t,_,null,b),ZM(e),ZM(n)}else s.edge=RM(e.site,s.site)}}function iw(t,e){var n=t.site,r=n[0],i=n[1],a=i-e;if(!a)return r;var o=t.P;if(!o)return-1/0;var u=(n=o.site)[0],s=n[1],c=s-e;if(!c)return u;var l=u-r,f=1/a-1/c,d=l/c;return f?(-d+Math.sqrt(d*d-2*f*(l*l/(-2*c)-s+c/2+i-a/2)))/f+r:(r+u)/2}function aw(t,e){var n=t.N;if(n)return iw(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var ow,uw,sw,cw,lw=1e-6,fw=1e-12;function dw(t,e){return e[1]-t[1]||e[0]-t[0]}function hw(t,e){var n,r,i,a=t.sort(dw).pop();for(cw=[],uw=new Array(t.length),ow=new NM,sw=new NM;;)if(i=$M,a&&(!i||a[1]lw||Math.abs(i[0][1]-i[1][1])>lw)||delete cw[a]}(o,u,s,c),function(t,e,n,r){var i,a,o,u,s,c,l,f,d,h,_,p,m=uw.length,y=!0;for(i=0;ilw||Math.abs(p-d)>lw)&&(s.splice(u,0,cw.push(IM(o,h,Math.abs(_-t)lw?[t,Math.abs(f-t)lw?[Math.abs(d-r)lw?[n,Math.abs(f-n)lw?[Math.abs(d-e)=u)return null;var s=t-i.site[0],c=e-i.site[1],l=s*s+c*c;do{i=a.cells[r=o],o=null,i.halfedges.forEach(function(n){var r=a.edges[n],u=r.left;if(u!==i.site&&u||(u=r.right)){var s=t-u[0],c=e-u[1],f=s*s+c*c;fr?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}var Yw=function(){var t,e,n=ww,r=kw,i=Tw,a=xw,o=Dw,u=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],c=250,l=cr,f=[],d=dt("start","zoom","end"),h=500,_=150,p=0;function m(t){t.property("__zoom",Lw).on("wheel.zoom",k).on("mousedown.zoom",L).on("dblclick.zoom",x).filter(o).on("touchstart.zoom",D).on("touchmove.zoom",T).on("touchend.zoom touchcancel.zoom",Y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(t,e){return(e=Math.max(u[0],Math.min(u[1],e)))===t.k?t:new yw(e,t.x,t.y)}function g(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new yw(t.k,r,i)}function v(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,e,n){t.on("start.zoom",function(){M(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){M(this,arguments).end()}).tween("zoom",function(){var t=arguments,i=M(this,t),a=r.apply(this,t),o=n||v(a),u=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),s=this.__zoom,c="function"==typeof e?e.apply(this,t):e,f=l(s.invert(o).concat(u/s.k),c.invert(o).concat(u/c.k));return function(t){if(1===t)t=c;else{var e=f(t),n=u/e[2];t=new yw(n,o[0]-e[0]*n,o[1]-e[1]*n)}i.zoom(null,t)}})}function M(t,e){for(var n,r=0,i=f.length;rp}t.zoom("mouse",i(g(t.that.__zoom,t.mouse[0]=fe(t.that),t.mouse[1]),t.extent,s))},!0).on("mouseup.zoom",function(){r.on("mousemove.zoom mouseup.zoom",null),ge($t.view,t.moved),Mw(),t.end()},!0),a=fe(this),o=$t.clientX,u=$t.clientY;ye($t.view),bw(),t.mouse=[a,this.__zoom.invert(a)],ni(this),t.start()}}function x(){if(n.apply(this,arguments)){var t=this.__zoom,e=fe(this),a=t.invert(e),o=t.k*($t.shiftKey?.5:2),u=i(g(y(t,o),e,a),r.apply(this,arguments),s);Mw(),c>0?ie(this).transition().duration(c).call(b,u,e):ie(this).call(m.transform,u)}}function D(){if(n.apply(this,arguments)){var e,r,i,a,o=M(this,arguments),u=$t.changedTouches,s=u.length;for(bw(),r=0;r2&&D.push("'"+this.terminals_[k]+"'");A=h.showPosition?"Parse error on line "+(s+1)+":\n"+h.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[g]||g)+"'":"Parse error on line "+(s+1)+": Unexpected "+(g==f?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(A,{text:h.match,token:this.terminals_[g]||g,line:h.yylineno,loc:m,expected:D})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+g);switch(M[0]){case 1:n.push(g),i.push(h.yytext),a.push(h.yylloc),n.push(M[1]),g=null,v?(g=v,v=null):(c=h.yyleng,u=h.yytext,s=h.yylineno,m=h.yylloc,l>0&&l--);break;case 2:if(L=this.productions_[M[1]][1],Y.$=i[i.length-L],Y._$={first_line:a[a.length-(L||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(L||1)].first_column,last_column:a[a.length-1].last_column},y&&(Y._$.range=[a[a.length-(L||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(Y,[u,c,s,_.yy,M[1],i,a].concat(d))))return w;L&&(n=n.slice(0,-1*L*2),i=i.slice(0,-1*L),a=a.slice(0,-1*L)),n.push(this.productions_[M[1]][0]),i.push(Y.$),a.push(Y._$),x=o[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},L={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return 5;case 1:case 2:case 3:case 4:break;case 5:return this.begin("ID"),10;case 6:return this.begin("ALIAS"),40;case 7:return this.popState(),this.popState(),this.begin("LINE"),12;case 8:return this.popState(),this.popState(),5;case 9:return this.begin("LINE"),20;case 10:return this.begin("LINE"),22;case 11:return this.begin("LINE"),23;case 12:return this.begin("LINE"),28;case 13:return this.begin("LINE"),25;case 14:return this.begin("LINE"),27;case 15:return this.popState(),13;case 16:return 21;case 17:return 35;case 18:return 36;case 19:return 31;case 20:return 29;case 21:return this.begin("ID"),15;case 22:return this.begin("ID"),16;case 23:return 18;case 24:return 6;case 25:return 34;case 26:return 5;case 27:return e.yytext=e.yytext.trim(),40;case 28:return 43;case 29:return 44;case 30:return 41;case 31:return 42;case 32:return 45;case 33:return 46;case 34:return 47;case 35:return 38;case 36:return 39;case 37:return 5;case 38:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:participant\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\b)/i,/^(?:sequenceDiagram\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[2,3,15],inclusive:!1},ALIAS:{rules:[2,3,7,8],inclusive:!1},ID:{rules:[2,3,6],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,9,10,11,12,13,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],inclusive:!0}}};function x(){this.yy={}}return k.lexer=L,x.prototype=k,k.Parser=x,new x}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(11).readFileSync(n(12).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(7),n(5)(t))},function(t,e,n){(function(t,n){(function(){var r,i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",u="__lodash_hash_undefined__",s=500,c="__lodash_placeholder__",l=1,f=2,d=4,h=1,_=2,p=1,m=2,y=4,g=8,v=16,b=32,M=64,w=128,k=256,L=512,x=30,D="...",T=800,Y=16,A=1,E=2,S=1/0,j=9007199254740991,O=1.7976931348623157e308,C=NaN,H=4294967295,P=H-1,F=H>>>1,N=[["ary",w],["bind",p],["bindKey",m],["curry",g],["curryRight",v],["flip",L],["partial",b],["partialRight",M],["rearg",k]],R="[object Arguments]",I="[object Array]",B="[object AsyncFunction]",z="[object Boolean]",q="[object Date]",W="[object DOMException]",U="[object Error]",V="[object Function]",$="[object GeneratorFunction]",G="[object Map]",J="[object Number]",Z="[object Null]",K="[object Object]",X="[object Proxy]",Q="[object RegExp]",tt="[object Set]",et="[object String]",nt="[object Symbol]",rt="[object Undefined]",it="[object WeakMap]",at="[object WeakSet]",ot="[object ArrayBuffer]",ut="[object DataView]",st="[object Float32Array]",ct="[object Float64Array]",lt="[object Int8Array]",ft="[object Int16Array]",dt="[object Int32Array]",ht="[object Uint8Array]",_t="[object Uint8ClampedArray]",pt="[object Uint16Array]",mt="[object Uint32Array]",yt=/\b__p \+= '';/g,gt=/\b(__p \+=) '' \+/g,vt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bt=/&(?:amp|lt|gt|quot|#39);/g,Mt=/[&<>"']/g,wt=RegExp(bt.source),kt=RegExp(Mt.source),Lt=/<%-([\s\S]+?)%>/g,xt=/<%([\s\S]+?)%>/g,Dt=/<%=([\s\S]+?)%>/g,Tt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yt=/^\w*$/,At=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Et=/[\\^$.*+?()[\]{}|]/g,St=RegExp(Et.source),jt=/^\s+|\s+$/g,Ot=/^\s+/,Ct=/\s+$/,Ht=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Pt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ft=/,? & /,Nt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Rt=/\\(\\)?/g,It=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Bt=/\w*$/,zt=/^[-+]0x[0-9a-f]+$/i,qt=/^0b[01]+$/i,Wt=/^\[object .+?Constructor\]$/,Ut=/^0o[0-7]+$/i,Vt=/^(?:0|[1-9]\d*)$/,$t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gt=/($^)/,Jt=/['\n\r\u2028\u2029\\]/g,Zt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Kt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",Xt="[\\ud800-\\udfff]",Qt="["+Kt+"]",te="["+Zt+"]",ee="\\d+",ne="[\\u2700-\\u27bf]",re="[a-z\\xdf-\\xf6\\xf8-\\xff]",ie="[^\\ud800-\\udfff"+Kt+ee+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ae="\\ud83c[\\udffb-\\udfff]",oe="[^\\ud800-\\udfff]",ue="(?:\\ud83c[\\udde6-\\uddff]){2}",se="[\\ud800-\\udbff][\\udc00-\\udfff]",ce="[A-Z\\xc0-\\xd6\\xd8-\\xde]",le="(?:"+re+"|"+ie+")",fe="(?:"+ce+"|"+ie+")",de="(?:"+te+"|"+ae+")"+"?",he="[\\ufe0e\\ufe0f]?"+de+("(?:\\u200d(?:"+[oe,ue,se].join("|")+")[\\ufe0e\\ufe0f]?"+de+")*"),_e="(?:"+[ne,ue,se].join("|")+")"+he,pe="(?:"+[oe+te+"?",te,ue,se,Xt].join("|")+")",me=RegExp("['’]","g"),ye=RegExp(te,"g"),ge=RegExp(ae+"(?="+ae+")|"+pe+he,"g"),ve=RegExp([ce+"?"+re+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Qt,ce,"$"].join("|")+")",fe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Qt,ce+le,"$"].join("|")+")",ce+"?"+le+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ce+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ee,_e].join("|"),"g"),be=RegExp("[\\u200d\\ud800-\\udfff"+Zt+"\\ufe0e\\ufe0f]"),Me=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,we=["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"],ke=-1,Le={};Le[st]=Le[ct]=Le[lt]=Le[ft]=Le[dt]=Le[ht]=Le[_t]=Le[pt]=Le[mt]=!0,Le[R]=Le[I]=Le[ot]=Le[z]=Le[ut]=Le[q]=Le[U]=Le[V]=Le[G]=Le[J]=Le[K]=Le[Q]=Le[tt]=Le[et]=Le[it]=!1;var xe={};xe[R]=xe[I]=xe[ot]=xe[ut]=xe[z]=xe[q]=xe[st]=xe[ct]=xe[lt]=xe[ft]=xe[dt]=xe[G]=xe[J]=xe[K]=xe[Q]=xe[tt]=xe[et]=xe[nt]=xe[ht]=xe[_t]=xe[pt]=xe[mt]=!0,xe[U]=xe[V]=xe[it]=!1;var De={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Te=parseFloat,Ye=parseInt,Ae="object"==typeof t&&t&&t.Object===Object&&t,Ee="object"==typeof self&&self&&self.Object===Object&&self,Se=Ae||Ee||Function("return this")(),je=e&&!e.nodeType&&e,Oe=je&&"object"==typeof n&&n&&!n.nodeType&&n,Ce=Oe&&Oe.exports===je,He=Ce&&Ae.process,Pe=function(){try{var t=Oe&&Oe.require&&Oe.require("util").types;return t||He&&He.binding&&He.binding("util")}catch(t){}}(),Fe=Pe&&Pe.isArrayBuffer,Ne=Pe&&Pe.isDate,Re=Pe&&Pe.isMap,Ie=Pe&&Pe.isRegExp,Be=Pe&&Pe.isSet,ze=Pe&&Pe.isTypedArray;function qe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function We(t,e,n,r){for(var i=-1,a=null==t?0:t.length;++i-1}function Ze(t,e,n){for(var r=-1,i=null==t?0:t.length;++r-1;);return n}function vn(t,e){for(var n=t.length;n--&&on(e,t[n],0)>-1;);return n}var bn=fn({"À":"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"}),Mn=fn({"&":"&","<":"<",">":">",'"':""","'":"'"});function wn(t){return"\\"+De[t]}function kn(t){return be.test(t)}function Ln(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function xn(t,e){return function(n){return t(e(n))}}function Dn(t,e){for(var n=-1,r=t.length,i=0,a=[];++n",""":'"',"'":"'"});var jn=function t(e){var n,Zt=(e=null==e?Se:jn.defaults(Se.Object(),e,jn.pick(Se,we))).Array,Kt=e.Date,Xt=e.Error,Qt=e.Function,te=e.Math,ee=e.Object,ne=e.RegExp,re=e.String,ie=e.TypeError,ae=Zt.prototype,oe=Qt.prototype,ue=ee.prototype,se=e["__core-js_shared__"],ce=oe.toString,le=ue.hasOwnProperty,fe=0,de=(n=/[^.]+$/.exec(se&&se.keys&&se.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",he=ue.toString,_e=ce.call(ee),pe=Se._,ge=ne("^"+ce.call(le).replace(Et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),be=Ce?e.Buffer:r,De=e.Symbol,Ae=e.Uint8Array,Ee=be?be.allocUnsafe:r,je=xn(ee.getPrototypeOf,ee),Oe=ee.create,He=ue.propertyIsEnumerable,Pe=ae.splice,nn=De?De.isConcatSpreadable:r,fn=De?De.iterator:r,On=De?De.toStringTag:r,Cn=function(){try{var t=Na(ee,"defineProperty");return t({},"",{}),t}catch(t){}}(),Hn=e.clearTimeout!==Se.clearTimeout&&e.clearTimeout,Pn=Kt&&Kt.now!==Se.Date.now&&Kt.now,Fn=e.setTimeout!==Se.setTimeout&&e.setTimeout,Nn=te.ceil,Rn=te.floor,In=ee.getOwnPropertySymbols,Bn=be?be.isBuffer:r,zn=e.isFinite,qn=ae.join,Wn=xn(ee.keys,ee),Un=te.max,Vn=te.min,$n=Kt.now,Gn=e.parseInt,Jn=te.random,Zn=ae.reverse,Kn=Na(e,"DataView"),Xn=Na(e,"Map"),Qn=Na(e,"Promise"),tr=Na(e,"Set"),er=Na(e,"WeakMap"),nr=Na(ee,"create"),rr=er&&new er,ir={},ar=lo(Kn),or=lo(Xn),ur=lo(Qn),sr=lo(tr),cr=lo(er),lr=De?De.prototype:r,fr=lr?lr.valueOf:r,dr=lr?lr.toString:r;function hr(t){if(Yu(t)&&!yu(t)&&!(t instanceof yr)){if(t instanceof mr)return t;if(le.call(t,"__wrapped__"))return fo(t)}return new mr(t)}var _r=function(){function t(){}return function(e){if(!Tu(e))return{};if(Oe)return Oe(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function pr(){}function mr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function yr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=H,this.__views__=[]}function gr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Hr(t,e,n,i,a,o){var u,s=e&l,c=e&f,h=e&d;if(n&&(u=a?n(t,i,a,o):n(t)),u!==r)return u;if(!Tu(t))return t;var _=yu(t);if(_){if(u=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&le.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!s)return na(t,u)}else{var p=Ba(t),m=p==V||p==$;if(Mu(t))return Zi(t,s);if(p==K||p==R||m&&!a){if(u=c||m?{}:qa(t),!s)return c?function(t,e){return ra(t,Ia(t),e)}(t,function(t,e){return t&&ra(e,as(e),t)}(u,t)):function(t,e){return ra(t,Ra(t),e)}(t,Sr(u,t))}else{if(!xe[p])return a?t:{};u=function(t,e,n){var r,i,a,o=t.constructor;switch(e){case ot:return Ki(t);case z:case q:return new o(+t);case ut:return function(t,e){var n=e?Ki(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case st:case ct:case lt:case ft:case dt:case ht:case _t:case pt:case mt:return Xi(t,n);case G:return new o;case J:case et:return new o(t);case Q:return(a=new(i=t).constructor(i.source,Bt.exec(i))).lastIndex=i.lastIndex,a;case tt:return new o;case nt:return r=t,fr?ee(fr.call(r)):{}}}(t,p,s)}}o||(o=new wr);var y=o.get(t);if(y)return y;if(o.set(t,u),Ou(t))return t.forEach(function(r){u.add(Hr(r,e,n,r,t,o))}),u;if(Au(t))return t.forEach(function(r,i){u.set(i,Hr(r,e,n,i,t,o))}),u;var g=_?r:(h?c?Sa:Ea:c?as:is)(t);return Ue(g||t,function(r,i){g&&(r=t[i=r]),Yr(u,i,Hr(r,e,n,i,t,o))}),u}function Pr(t,e,n){var i=n.length;if(null==t)return!i;for(t=ee(t);i--;){var a=n[i],o=e[a],u=t[a];if(u===r&&!(a in t)||!o(u))return!1}return!0}function Fr(t,e,n){if("function"!=typeof t)throw new ie(o);return ro(function(){t.apply(r,n)},e)}function Nr(t,e,n,r){var a=-1,o=Je,u=!0,s=t.length,c=[],l=e.length;if(!s)return c;n&&(e=Ke(e,pn(n))),r?(o=Ze,u=!1):e.length>=i&&(o=yn,u=!1,e=new Mr(e));t:for(;++a-1},vr.prototype.set=function(t,e){var n=this.__data__,r=Ar(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},br.prototype.clear=function(){this.size=0,this.__data__={hash:new gr,map:new(Xn||vr),string:new gr}},br.prototype.delete=function(t){var e=Pa(this,t).delete(t);return this.size-=e?1:0,e},br.prototype.get=function(t){return Pa(this,t).get(t)},br.prototype.has=function(t){return Pa(this,t).has(t)},br.prototype.set=function(t,e){var n=Pa(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Mr.prototype.add=Mr.prototype.push=function(t){return this.__data__.set(t,u),this},Mr.prototype.has=function(t){return this.__data__.has(t)},wr.prototype.clear=function(){this.__data__=new vr,this.size=0},wr.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},wr.prototype.get=function(t){return this.__data__.get(t)},wr.prototype.has=function(t){return this.__data__.has(t)},wr.prototype.set=function(t,e){var n=this.__data__;if(n instanceof vr){var r=n.__data__;if(!Xn||r.length0&&n(u)?e>1?Wr(u,e-1,n,r,i):Xe(i,u):r||(i[i.length]=u)}return i}var Ur=ua(),Vr=ua(!0);function $r(t,e){return t&&Ur(t,e,is)}function Gr(t,e){return t&&Vr(t,e,is)}function Jr(t,e){return Ge(e,function(e){return Lu(t[e])})}function Zr(t,e){for(var n=0,i=(e=Vi(e,t)).length;null!=t&&ne}function ti(t,e){return null!=t&&le.call(t,e)}function ei(t,e){return null!=t&&e in ee(t)}function ni(t,e,n){for(var i=n?Ze:Je,a=t[0].length,o=t.length,u=o,s=Zt(o),c=1/0,l=[];u--;){var f=t[u];u&&e&&(f=Ke(f,pn(e))),c=Vn(f.length,c),s[u]=!n&&(e||a>=120&&f.length>=120)?new Mr(u&&f):r}f=t[0];var d=-1,h=s[0];t:for(;++d=u)return s;var c=n[r];return s*("desc"==c?-1:1)}}return t.index-e.index}(t,e,n)})}function gi(t,e,n){for(var r=-1,i=e.length,a={};++r-1;)u!==t&&Pe.call(u,s,1),Pe.call(t,s,1);return t}function bi(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==a){var a=i;Ua(i)?Pe.call(t,i,1):Ni(t,i)}}return t}function Mi(t,e){return t+Rn(Jn()*(e-t+1))}function wi(t,e){var n="";if(!t||e<1||e>j)return n;do{e%2&&(n+=t),(e=Rn(e/2))&&(t+=t)}while(e);return n}function ki(t,e){return io(Qa(t,e,Es),t+"")}function Li(t){return Lr(hs(t))}function xi(t,e){var n=hs(t);return uo(n,Cr(e,0,n.length))}function Di(t,e,n,i){if(!Tu(t))return t;for(var a=-1,o=(e=Vi(e,t)).length,u=o-1,s=t;null!=s&&++ai?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=Zt(i);++r>>1,o=t[a];null!==o&&!Hu(o)&&(n?o<=e:o=i){var l=e?null:wa(t);if(l)return Tn(l);u=!1,a=yn,c=new Mr}else c=e?[]:s;t:for(;++r=i?t:Ei(t,e,n)}var Ji=Hn||function(t){return Se.clearTimeout(t)};function Zi(t,e){if(e)return t.slice();var n=t.length,r=Ee?Ee(n):new t.constructor(n);return t.copy(r),r}function Ki(t){var e=new t.constructor(t.byteLength);return new Ae(e).set(new Ae(t)),e}function Xi(t,e){var n=e?Ki(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Qi(t,e){if(t!==e){var n=t!==r,i=null===t,a=t==t,o=Hu(t),u=e!==r,s=null===e,c=e==e,l=Hu(e);if(!s&&!l&&!o&&t>e||o&&u&&c&&!s&&!l||i&&u&&c||!n&&c||!a)return 1;if(!i&&!o&&!l&&t1?n[a-1]:r,u=a>2?n[2]:r;for(o=t.length>3&&"function"==typeof o?(a--,o):r,u&&Va(n[0],n[1],u)&&(o=a<3?r:o,a=1),e=ee(e);++i-1?a[o?e[u]:u]:r}}function da(t){return Aa(function(e){var n=e.length,i=n,a=mr.prototype.thru;for(t&&e.reverse();i--;){var u=e[i];if("function"!=typeof u)throw new ie(o);if(a&&!s&&"wrapper"==Oa(u))var s=new mr([],!0)}for(i=s?i:n;++i1&&g.reverse(),f&&cs))return!1;var l=o.get(t);if(l&&o.get(e))return l==e;var f=-1,d=!0,p=n&_?new Mr:r;for(o.set(t,e),o.set(e,t);++f-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Ht,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ue(N,function(n){var r="_."+n[0];e&n[1]&&!Je(t,r)&&t.push(r)}),t.sort()}(function(t){var e=t.match(Pt);return e?e[1].split(Ft):[]}(r),n)))}function oo(t){var e=0,n=0;return function(){var i=$n(),a=Y-(i-n);if(n=i,a>0){if(++e>=T)return arguments[0]}else e=0;return t.apply(r,arguments)}}function uo(t,e){var n=-1,i=t.length,a=i-1;for(e=e===r?i:e;++n1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,jo(t,n)});function Ro(t){var e=hr(t);return e.__chain__=!0,e}function Io(t,e){return e(t)}var Bo=Aa(function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,a=function(e){return Or(e,t)};return!(e>1||this.__actions__.length)&&i instanceof yr&&Ua(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:Io,args:[a],thisArg:r}),new mr(i,this.__chain__).thru(function(t){return e&&!t.length&&t.push(r),t})):this.thru(a)});var zo=ia(function(t,e,n){le.call(t,n)?++t[n]:jr(t,n,1)});var qo=fa(mo),Wo=fa(yo);function Uo(t,e){return(yu(t)?Ue:Rr)(t,Ha(e,3))}function Vo(t,e){return(yu(t)?Ve:Ir)(t,Ha(e,3))}var $o=ia(function(t,e,n){le.call(t,n)?t[n].push(e):jr(t,n,[e])});var Go=ki(function(t,e,n){var r=-1,i="function"==typeof e,a=vu(t)?Zt(t.length):[];return Rr(t,function(t){a[++r]=i?qe(e,t,n):ri(t,e,n)}),a}),Jo=ia(function(t,e,n){jr(t,n,e)});function Zo(t,e){return(yu(t)?Ke:di)(t,Ha(e,3))}var Ko=ia(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});var Xo=ki(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Va(t,e[0],e[1])?e=[]:n>2&&Va(e[0],e[1],e[2])&&(e=[e[0]]),yi(t,Wr(e,1),[])}),Qo=Pn||function(){return Se.Date.now()};function tu(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,La(t,w,r,r,r,r,e)}function eu(t,e){var n;if("function"!=typeof e)throw new ie(o);return t=Bu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=r),n}}var nu=ki(function(t,e,n){var r=p;if(n.length){var i=Dn(n,Ca(nu));r|=b}return La(t,r,e,n,i)}),ru=ki(function(t,e,n){var r=p|m;if(n.length){var i=Dn(n,Ca(ru));r|=b}return La(e,r,t,n,i)});function iu(t,e,n){var i,a,u,s,c,l,f=0,d=!1,h=!1,_=!0;if("function"!=typeof t)throw new ie(o);function p(e){var n=i,o=a;return i=a=r,f=e,s=t.apply(o,n)}function m(t){var n=t-l;return l===r||n>=e||n<0||h&&t-f>=u}function y(){var t=Qo();if(m(t))return g(t);c=ro(y,function(t){var n=e-(t-l);return h?Vn(n,u-(t-f)):n}(t))}function g(t){return c=r,_&&i?p(t):(i=a=r,s)}function v(){var t=Qo(),n=m(t);if(i=arguments,a=this,l=t,n){if(c===r)return function(t){return f=t,c=ro(y,e),d?p(t):s}(l);if(h)return c=ro(y,e),p(l)}return c===r&&(c=ro(y,e)),s}return e=qu(e)||0,Tu(n)&&(d=!!n.leading,u=(h="maxWait"in n)?Un(qu(n.maxWait)||0,e):u,_="trailing"in n?!!n.trailing:_),v.cancel=function(){c!==r&&Ji(c),f=0,i=l=a=c=r},v.flush=function(){return c===r?s:g(Qo())},v}var au=ki(function(t,e){return Fr(t,1,e)}),ou=ki(function(t,e,n){return Fr(t,qu(e)||0,n)});function uu(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new ie(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(uu.Cache||br),n}function su(t){if("function"!=typeof t)throw new ie(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}uu.Cache=br;var cu=$i(function(t,e){var n=(e=1==e.length&&yu(e[0])?Ke(e[0],pn(Ha())):Ke(Wr(e,1),pn(Ha()))).length;return ki(function(r){for(var i=-1,a=Vn(r.length,n);++i=e}),mu=ii(function(){return arguments}())?ii:function(t){return Yu(t)&&le.call(t,"callee")&&!He.call(t,"callee")},yu=Zt.isArray,gu=Fe?pn(Fe):function(t){return Yu(t)&&Xr(t)==ot};function vu(t){return null!=t&&Du(t.length)&&!Lu(t)}function bu(t){return Yu(t)&&vu(t)}var Mu=Bn||qs,wu=Ne?pn(Ne):function(t){return Yu(t)&&Xr(t)==q};function ku(t){if(!Yu(t))return!1;var e=Xr(t);return e==U||e==W||"string"==typeof t.message&&"string"==typeof t.name&&!Su(t)}function Lu(t){if(!Tu(t))return!1;var e=Xr(t);return e==V||e==$||e==B||e==X}function xu(t){return"number"==typeof t&&t==Bu(t)}function Du(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=j}function Tu(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Yu(t){return null!=t&&"object"==typeof t}var Au=Re?pn(Re):function(t){return Yu(t)&&Ba(t)==G};function Eu(t){return"number"==typeof t||Yu(t)&&Xr(t)==J}function Su(t){if(!Yu(t)||Xr(t)!=K)return!1;var e=je(t);if(null===e)return!0;var n=le.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ce.call(n)==_e}var ju=Ie?pn(Ie):function(t){return Yu(t)&&Xr(t)==Q};var Ou=Be?pn(Be):function(t){return Yu(t)&&Ba(t)==tt};function Cu(t){return"string"==typeof t||!yu(t)&&Yu(t)&&Xr(t)==et}function Hu(t){return"symbol"==typeof t||Yu(t)&&Xr(t)==nt}var Pu=ze?pn(ze):function(t){return Yu(t)&&Du(t.length)&&!!Le[Xr(t)]};var Fu=va(fi),Nu=va(function(t,e){return t<=e});function Ru(t){if(!t)return[];if(vu(t))return Cu(t)?En(t):na(t);if(fn&&t[fn])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[fn]());var e=Ba(t);return(e==G?Ln:e==tt?Tn:hs)(t)}function Iu(t){return t?(t=qu(t))===S||t===-S?(t<0?-1:1)*O:t==t?t:0:0===t?t:0}function Bu(t){var e=Iu(t),n=e%1;return e==e?n?e-n:e:0}function zu(t){return t?Cr(Bu(t),0,H):0}function qu(t){if("number"==typeof t)return t;if(Hu(t))return C;if(Tu(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Tu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(jt,"");var n=qt.test(t);return n||Ut.test(t)?Ye(t.slice(2),n?2:8):zt.test(t)?C:+t}function Wu(t){return ra(t,as(t))}function Uu(t){return null==t?"":Pi(t)}var Vu=aa(function(t,e){if(Za(e)||vu(e))ra(e,is(e),t);else for(var n in e)le.call(e,n)&&Yr(t,n,e[n])}),$u=aa(function(t,e){ra(e,as(e),t)}),Gu=aa(function(t,e,n,r){ra(e,as(e),t,r)}),Ju=aa(function(t,e,n,r){ra(e,is(e),t,r)}),Zu=Aa(Or);var Ku=ki(function(t,e){t=ee(t);var n=-1,i=e.length,a=i>2?e[2]:r;for(a&&Va(e[0],e[1],a)&&(i=1);++n1),e}),ra(t,Sa(t),n),r&&(n=Hr(n,l|f|d,Ta));for(var i=e.length;i--;)Ni(n,e[i]);return n});var cs=Aa(function(t,e){return null==t?{}:function(t,e){return gi(t,e,function(e,n){return ts(t,n)})}(t,e)});function ls(t,e){if(null==t)return{};var n=Ke(Sa(t),function(t){return[t]});return e=Ha(e),gi(t,n,function(t,n){return e(t,n[0])})}var fs=ka(is),ds=ka(as);function hs(t){return null==t?[]:mn(t,is(t))}var _s=ca(function(t,e,n){return e=e.toLowerCase(),t+(n?ps(e):e)});function ps(t){return ks(Uu(t).toLowerCase())}function ms(t){return(t=Uu(t))&&t.replace($t,bn).replace(ye,"")}var ys=ca(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),gs=ca(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),vs=sa("toLowerCase");var bs=ca(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});var Ms=ca(function(t,e,n){return t+(n?" ":"")+ks(e)});var ws=ca(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),ks=sa("toUpperCase");function Ls(t,e,n){return t=Uu(t),(e=n?r:e)===r?function(t){return Me.test(t)}(t)?function(t){return t.match(ve)||[]}(t):function(t){return t.match(Nt)||[]}(t):t.match(e)||[]}var xs=ki(function(t,e){try{return qe(t,r,e)}catch(t){return ku(t)?t:new Xt(t)}}),Ds=Aa(function(t,e){return Ue(e,function(e){e=co(e),jr(t,e,nu(t[e],t))}),t});function Ts(t){return function(){return t}}var Ys=da(),As=da(!0);function Es(t){return t}function Ss(t){return si("function"==typeof t?t:Hr(t,l))}var js=ki(function(t,e){return function(n){return ri(n,t,e)}}),Os=ki(function(t,e){return function(n){return ri(t,n,e)}});function Cs(t,e,n){var r=is(e),i=Jr(e,r);null!=n||Tu(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Jr(e,is(e)));var a=!(Tu(n)&&"chain"in n&&!n.chain),o=Lu(t);return Ue(i,function(n){var r=e[n];t[n]=r,o&&(t.prototype[n]=function(){var e=this.__chain__;if(a||e){var n=t(this.__wrapped__);return(n.__actions__=na(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Xe([this.value()],arguments))})}),t}function Hs(){}var Ps=ma(Ke),Fs=ma($e),Ns=ma(en);function Rs(t){return $a(t)?ln(co(t)):function(t){return function(e){return Zr(e,t)}}(t)}var Is=ga(),Bs=ga(!0);function zs(){return[]}function qs(){return!1}var Ws=pa(function(t,e){return t+e},0),Us=Ma("ceil"),Vs=pa(function(t,e){return t/e},1),$s=Ma("floor");var Gs,Js=pa(function(t,e){return t*e},1),Zs=Ma("round"),Ks=pa(function(t,e){return t-e},0);return hr.after=function(t,e){if("function"!=typeof e)throw new ie(o);return t=Bu(t),function(){if(--t<1)return e.apply(this,arguments)}},hr.ary=tu,hr.assign=Vu,hr.assignIn=$u,hr.assignInWith=Gu,hr.assignWith=Ju,hr.at=Zu,hr.before=eu,hr.bind=nu,hr.bindAll=Ds,hr.bindKey=ru,hr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return yu(t)?t:[t]},hr.chain=Ro,hr.chunk=function(t,e,n){e=(n?Va(t,e,n):e===r)?1:Un(Bu(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var a=0,o=0,u=Zt(Nn(i/e));aa?0:a+n),(i=i===r||i>a?a:Bu(i))<0&&(i+=a),i=n>i?0:zu(i);n>>0)?(t=Uu(t))&&("string"==typeof e||null!=e&&!ju(e))&&!(e=Pi(e))&&kn(t)?Gi(En(t),0,n):t.split(e,n):[]},hr.spread=function(t,e){if("function"!=typeof t)throw new ie(o);return e=null==e?0:Un(Bu(e),0),ki(function(n){var r=n[e],i=Gi(n,0,e);return r&&Xe(i,r),qe(t,this,i)})},hr.tail=function(t){var e=null==t?0:t.length;return e?Ei(t,1,e):[]},hr.take=function(t,e,n){return t&&t.length?Ei(t,0,(e=n||e===r?1:Bu(e))<0?0:e):[]},hr.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?Ei(t,(e=i-(e=n||e===r?1:Bu(e)))<0?0:e,i):[]},hr.takeRightWhile=function(t,e){return t&&t.length?Ii(t,Ha(e,3),!1,!0):[]},hr.takeWhile=function(t,e){return t&&t.length?Ii(t,Ha(e,3)):[]},hr.tap=function(t,e){return e(t),t},hr.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new ie(o);return Tu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),iu(t,e,{leading:r,maxWait:e,trailing:i})},hr.thru=Io,hr.toArray=Ru,hr.toPairs=fs,hr.toPairsIn=ds,hr.toPath=function(t){return yu(t)?Ke(t,co):Hu(t)?[t]:na(so(Uu(t)))},hr.toPlainObject=Wu,hr.transform=function(t,e,n){var r=yu(t),i=r||Mu(t)||Pu(t);if(e=Ha(e,4),null==n){var a=t&&t.constructor;n=i?r?new a:[]:Tu(t)&&Lu(a)?_r(je(t)):{}}return(i?Ue:$r)(t,function(t,r,i){return e(n,t,r,i)}),n},hr.unary=function(t){return tu(t,1)},hr.union=Yo,hr.unionBy=Ao,hr.unionWith=Eo,hr.uniq=function(t){return t&&t.length?Fi(t):[]},hr.uniqBy=function(t,e){return t&&t.length?Fi(t,Ha(e,2)):[]},hr.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?Fi(t,r,e):[]},hr.unset=function(t,e){return null==t||Ni(t,e)},hr.unzip=So,hr.unzipWith=jo,hr.update=function(t,e,n){return null==t?t:Ri(t,e,Ui(n))},hr.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:Ri(t,e,Ui(n),i)},hr.values=hs,hr.valuesIn=function(t){return null==t?[]:mn(t,as(t))},hr.without=Oo,hr.words=Ls,hr.wrap=function(t,e){return lu(Ui(e),t)},hr.xor=Co,hr.xorBy=Ho,hr.xorWith=Po,hr.zip=Fo,hr.zipObject=function(t,e){return qi(t||[],e||[],Yr)},hr.zipObjectDeep=function(t,e){return qi(t||[],e||[],Di)},hr.zipWith=No,hr.entries=fs,hr.entriesIn=ds,hr.extend=$u,hr.extendWith=Gu,Cs(hr,hr),hr.add=Ws,hr.attempt=xs,hr.camelCase=_s,hr.capitalize=ps,hr.ceil=Us,hr.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=qu(n))==n?n:0),e!==r&&(e=(e=qu(e))==e?e:0),Cr(qu(t),e,n)},hr.clone=function(t){return Hr(t,d)},hr.cloneDeep=function(t){return Hr(t,l|d)},hr.cloneDeepWith=function(t,e){return Hr(t,l|d,e="function"==typeof e?e:r)},hr.cloneWith=function(t,e){return Hr(t,d,e="function"==typeof e?e:r)},hr.conformsTo=function(t,e){return null==e||Pr(t,e,is(e))},hr.deburr=ms,hr.defaultTo=function(t,e){return null==t||t!=t?e:t},hr.divide=Vs,hr.endsWith=function(t,e,n){t=Uu(t),e=Pi(e);var i=t.length,a=n=n===r?i:Cr(Bu(n),0,i);return(n-=e.length)>=0&&t.slice(n,a)==e},hr.eq=hu,hr.escape=function(t){return(t=Uu(t))&&kt.test(t)?t.replace(Mt,Mn):t},hr.escapeRegExp=function(t){return(t=Uu(t))&&St.test(t)?t.replace(Et,"\\$&"):t},hr.every=function(t,e,n){var i=yu(t)?$e:Br;return n&&Va(t,e,n)&&(e=r),i(t,Ha(e,3))},hr.find=qo,hr.findIndex=mo,hr.findKey=function(t,e){return rn(t,Ha(e,3),$r)},hr.findLast=Wo,hr.findLastIndex=yo,hr.findLastKey=function(t,e){return rn(t,Ha(e,3),Gr)},hr.floor=$s,hr.forEach=Uo,hr.forEachRight=Vo,hr.forIn=function(t,e){return null==t?t:Ur(t,Ha(e,3),as)},hr.forInRight=function(t,e){return null==t?t:Vr(t,Ha(e,3),as)},hr.forOwn=function(t,e){return t&&$r(t,Ha(e,3))},hr.forOwnRight=function(t,e){return t&&Gr(t,Ha(e,3))},hr.get=Qu,hr.gt=_u,hr.gte=pu,hr.has=function(t,e){return null!=t&&za(t,e,ti)},hr.hasIn=ts,hr.head=vo,hr.identity=Es,hr.includes=function(t,e,n,r){t=vu(t)?t:hs(t),n=n&&!r?Bu(n):0;var i=t.length;return n<0&&(n=Un(i+n,0)),Cu(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&on(t,e,n)>-1},hr.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Bu(n);return i<0&&(i=Un(r+i,0)),on(t,e,i)},hr.inRange=function(t,e,n){return e=Iu(e),n===r?(n=e,e=0):n=Iu(n),function(t,e,n){return t>=Vn(e,n)&&t=-j&&t<=j},hr.isSet=Ou,hr.isString=Cu,hr.isSymbol=Hu,hr.isTypedArray=Pu,hr.isUndefined=function(t){return t===r},hr.isWeakMap=function(t){return Yu(t)&&Ba(t)==it},hr.isWeakSet=function(t){return Yu(t)&&Xr(t)==at},hr.join=function(t,e){return null==t?"":qn.call(t,e)},hr.kebabCase=ys,hr.last=ko,hr.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var a=i;return n!==r&&(a=(a=Bu(n))<0?Un(i+a,0):Vn(a,i-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,a):an(t,sn,a,!0)},hr.lowerCase=gs,hr.lowerFirst=vs,hr.lt=Fu,hr.lte=Nu,hr.max=function(t){return t&&t.length?zr(t,Es,Qr):r},hr.maxBy=function(t,e){return t&&t.length?zr(t,Ha(e,2),Qr):r},hr.mean=function(t){return cn(t,Es)},hr.meanBy=function(t,e){return cn(t,Ha(e,2))},hr.min=function(t){return t&&t.length?zr(t,Es,fi):r},hr.minBy=function(t,e){return t&&t.length?zr(t,Ha(e,2),fi):r},hr.stubArray=zs,hr.stubFalse=qs,hr.stubObject=function(){return{}},hr.stubString=function(){return""},hr.stubTrue=function(){return!0},hr.multiply=Js,hr.nth=function(t,e){return t&&t.length?mi(t,Bu(e)):r},hr.noConflict=function(){return Se._===this&&(Se._=pe),this},hr.noop=Hs,hr.now=Qo,hr.pad=function(t,e,n){t=Uu(t);var r=(e=Bu(e))?An(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return ya(Rn(i),n)+t+ya(Nn(i),n)},hr.padEnd=function(t,e,n){t=Uu(t);var r=(e=Bu(e))?An(t):0;return e&&re){var i=t;t=e,e=i}if(n||t%1||e%1){var a=Jn();return Vn(t+a*(e-t+Te("1e-"+((a+"").length-1))),e)}return Mi(t,e)},hr.reduce=function(t,e,n){var r=yu(t)?Qe:dn,i=arguments.length<3;return r(t,Ha(e,4),n,i,Rr)},hr.reduceRight=function(t,e,n){var r=yu(t)?tn:dn,i=arguments.length<3;return r(t,Ha(e,4),n,i,Ir)},hr.repeat=function(t,e,n){return e=(n?Va(t,e,n):e===r)?1:Bu(e),wi(Uu(t),e)},hr.replace=function(){var t=arguments,e=Uu(t[0]);return t.length<3?e:e.replace(t[1],t[2])},hr.result=function(t,e,n){var i=-1,a=(e=Vi(e,t)).length;for(a||(a=1,t=r);++ij)return[];var n=H,r=Vn(t,H);e=Ha(e),t-=H;for(var i=_n(r,e);++n=o)return t;var s=n-An(i);if(s<1)return i;var c=u?Gi(u,0,s).join(""):t.slice(0,s);if(a===r)return c+i;if(u&&(s+=c.length-s),ju(a)){if(t.slice(s).search(a)){var l,f=c;for(a.global||(a=ne(a.source,Uu(Bt.exec(a))+"g")),a.lastIndex=0;l=a.exec(f);)var d=l.index;c=c.slice(0,d===r?s:d)}}else if(t.indexOf(Pi(a),s)!=s){var h=c.lastIndexOf(a);h>-1&&(c=c.slice(0,h))}return c+i},hr.unescape=function(t){return(t=Uu(t))&&wt.test(t)?t.replace(bt,Sn):t},hr.uniqueId=function(t){var e=++fe;return Uu(t)+e},hr.upperCase=ws,hr.upperFirst=ks,hr.each=Uo,hr.eachRight=Vo,hr.first=vo,Cs(hr,(Gs={},$r(hr,function(t,e){le.call(hr.prototype,e)||(Gs[e]=t)}),Gs),{chain:!1}),hr.VERSION="4.17.11",Ue(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){hr[t].placeholder=hr}),Ue(["drop","take"],function(t,e){yr.prototype[t]=function(n){n=n===r?1:Un(Bu(n),0);var i=this.__filtered__&&!e?new yr(this):this.clone();return i.__filtered__?i.__takeCount__=Vn(n,i.__takeCount__):i.__views__.push({size:Vn(n,H),type:t+(i.__dir__<0?"Right":"")}),i},yr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Ue(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==A||3==n;yr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Ha(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),Ue(["head","last"],function(t,e){var n="take"+(e?"Right":"");yr.prototype[t]=function(){return this[n](1).value()[0]}}),Ue(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");yr.prototype[t]=function(){return this.__filtered__?new yr(this):this[n](1)}}),yr.prototype.compact=function(){return this.filter(Es)},yr.prototype.find=function(t){return this.filter(t).head()},yr.prototype.findLast=function(t){return this.reverse().find(t)},yr.prototype.invokeMap=ki(function(t,e){return"function"==typeof t?new yr(this):this.map(function(n){return ri(n,t,e)})}),yr.prototype.reject=function(t){return this.filter(su(Ha(t)))},yr.prototype.slice=function(t,e){t=Bu(t);var n=this;return n.__filtered__&&(t>0||e<0)?new yr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=Bu(e))<0?n.dropRight(-e):n.take(e-t)),n)},yr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},yr.prototype.toArray=function(){return this.take(H)},$r(yr.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),a=hr[i?"take"+("last"==e?"Right":""):e],o=i||/^find/.test(e);a&&(hr.prototype[e]=function(){var e=this.__wrapped__,u=i?[1]:arguments,s=e instanceof yr,c=u[0],l=s||yu(e),f=function(t){var e=a.apply(hr,Xe([t],u));return i&&d?e[0]:e};l&&n&&"function"==typeof c&&1!=c.length&&(s=l=!1);var d=this.__chain__,h=!!this.__actions__.length,_=o&&!d,p=s&&!h;if(!o&&l){e=p?e:new yr(this);var m=t.apply(e,u);return m.__actions__.push({func:Io,args:[f],thisArg:r}),new mr(m,d)}return _&&p?t.apply(this,u):(m=this.thru(f),_?i?m.value()[0]:m.value():m)})}),Ue(["pop","push","shift","sort","splice","unshift"],function(t){var e=ae[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);hr.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(yu(i)?i:[],t)}return this[n](function(n){return e.apply(yu(n)?n:[],t)})}}),$r(yr.prototype,function(t,e){var n=hr[e];if(n){var r=n.name+"";(ir[r]||(ir[r]=[])).push({name:e,func:n})}}),ir[ha(r,m).name]=[{name:"wrapper",func:r}],yr.prototype.clone=function(){var t=new yr(this.__wrapped__);return t.__actions__=na(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=na(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=na(this.__views__),t},yr.prototype.reverse=function(){if(this.__filtered__){var t=new yr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},yr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=yu(t),r=e<0,i=n?t.length:0,a=function(t,e,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},hr.prototype.plant=function(t){for(var e,n=this;n instanceof pr;){var i=fo(n);i.__index__=0,i.__values__=r,e?a.__wrapped__=i:e=i;var a=i;n=n.__wrapped__}return a.__wrapped__=t,e},hr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof yr){var e=t;return this.__actions__.length&&(e=new yr(this)),(e=e.reverse()).__actions__.push({func:Io,args:[To],thisArg:r}),new mr(e,this.__chain__)}return this.thru(To)},hr.prototype.toJSON=hr.prototype.valueOf=hr.prototype.value=function(){return Bi(this.__wrapped__,this.__actions__)},hr.prototype.first=hr.prototype.head,fn&&(hr.prototype[fn]=function(){return this}),hr}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Se._=jn,define(function(){return jn})):Oe?((Oe.exports=jn)._=jn,je._=jn):Se._=jn}).call(this)}).call(this,n(10),n(5)(t))},function(t,e,n){var r;try{r=n(155)}catch(t){}r||(r=window._),t.exports=r},function(t,e){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,e,n){(function(t,r){var i=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[6,8,10,11,12,13,14,15],n=[1,9],r=[1,10],i=[1,11],a=[1,12],o=[1,13],u={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,dateFormat:11,axisFormat:12,title:13,section:14,taskTxt:15,taskData:16,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",11:"dateFormat",12:"axisFormat",13:"title",14:"section",15:"taskTxt",16:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,1],[9,1],[9,2]],performAction:function(t,e,n,r,i,a,o){var u=a.length-1;switch(i){case 1:return a[u-1];case 2:this.$=[];break;case 3:a[u-1].push(a[u]),this.$=a[u-1];break;case 4:case 5:this.$=a[u];break;case 6:case 7:this.$=[];break;case 8:r.setDateFormat(a[u].substr(11)),this.$=a[u].substr(11);break;case 9:r.setAxisFormat(a[u].substr(11)),this.$=a[u].substr(11);break;case 10:r.setTitle(a[u].substr(6)),this.$=a[u].substr(6);break;case 11:r.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 12:r.addTask(a[u-1],a[u]),this.$="task"}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:r,13:i,14:a,15:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:14,11:n,12:r,13:i,14:a,15:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),{16:[1,15]},t(e,[2,4]),t(e,[2,12])],defaultActions:{},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,u="",s=0,c=0,l=0,f=1,d=a.slice.call(arguments,1),h=Object.create(this.lexer),_={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(_.yy[p]=this.yy[p]);h.setInput(t,_.yy),_.yy.lexer=h,_.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var m=h.yylloc;a.push(m);var y=h.options&&h.options.ranges;"function"==typeof _.yy.parseError?this.parseError=_.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var g,v,b,M,w,k,L,x,D,T,Y={};;){if(b=n[n.length-1],this.defaultActions[b]?M=this.defaultActions[b]:(null==g&&(T=void 0,"number"!=typeof(T=r.pop()||h.lex()||f)&&(T instanceof Array&&(T=(r=T).pop()),T=e.symbols_[T]||T),g=T),M=o[b]&&o[b][g]),void 0===M||!M.length||!M[0]){var A="";for(k in D=[],o[b])this.terminals_[k]&&k>2&&D.push("'"+this.terminals_[k]+"'");A=h.showPosition?"Parse error on line "+(s+1)+":\n"+h.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[g]||g)+"'":"Parse error on line "+(s+1)+": Unexpected "+(g==f?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(A,{text:h.match,token:this.terminals_[g]||g,line:h.yylineno,loc:m,expected:D})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+g);switch(M[0]){case 1:n.push(g),i.push(h.yytext),a.push(h.yylloc),n.push(M[1]),g=null,v?(g=v,v=null):(c=h.yyleng,u=h.yytext,s=h.yylineno,m=h.yylloc,l>0&&l--);break;case 2:if(L=this.productions_[M[1]][1],Y.$=i[i.length-L],Y._$={first_line:a[a.length-(L||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(L||1)].first_column,last_column:a[a.length-1].last_column},y&&(Y._$.range=[a[a.length-(L||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(Y,[u,c,s,_.yy,M[1],i,a].concat(d))))return w;L&&(n=n.slice(0,-1*L*2),i=i.slice(0,-1*L),a=a.slice(0,-1*L)),n.push(this.productions_[M[1]][0]),i.push(Y.$),a.push(Y._$),x=o[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},s={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return 10;case 1:case 2:case 3:break;case 4:return 4;case 5:return 11;case 6:return 12;case 7:return"date";case 8:return 13;case 9:return 14;case 10:return 15;case 11:return 16;case 12:return":";case 13:return 6;case 14:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],inclusive:!0}}};function c(){this.yy={}}return u.lexer=s,c.prototype=u,u.Parser=c,new c}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(11).readFileSync(n(12).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(7),n(5)(t))},function(t,e){var n,r,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var s,c=[],l=!1,f=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):f=-1,c.length&&h())}function h(){if(!l){var t=u(d);l=!0;for(var e=c.length;e;){for(s=c,c=[];++f1)for(var n=1;n2&&D.push("'"+this.terminals_[k]+"'");A=h.showPosition?"Parse error on line "+(s+1)+":\n"+h.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[g]||g)+"'":"Parse error on line "+(s+1)+": Unexpected "+(g==f?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(A,{text:h.match,token:this.terminals_[g]||g,line:h.yylineno,loc:m,expected:D})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+g);switch(M[0]){case 1:n.push(g),i.push(h.yytext),a.push(h.yylloc),n.push(M[1]),g=null,v?(g=v,v=null):(c=h.yyleng,u=h.yytext,s=h.yylineno,m=h.yylloc,l>0&&l--);break;case 2:if(L=this.productions_[M[1]][1],Y.$=i[i.length-L],Y._$={first_line:a[a.length-(L||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(L||1)].first_column,last_column:a[a.length-1].last_column},y&&(Y._$.range=[a[a.length-(L||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(Y,[u,c,s,_.yy,M[1],i,a].concat(d))))return w;L&&(n=n.slice(0,-1*L*2),i=i.slice(0,-1*L),a=a.slice(0,-1*L)),n.push(this.productions_[M[1]][0]),i.push(Y.$),a.push(Y._$),x=o[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},w={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,r){switch(n){case 0:break;case 1:return 6;case 2:break;case 3:return 5;case 4:return this.begin("struct"),17;case 5:return this.popState(),19;case 6:break;case 7:return"MEMBER";case 8:return 16;case 9:this.begin("string");break;case 10:this.popState();break;case 11:return"STR";case 12:case 13:return 27;case 14:case 15:return 29;case 16:return 28;case 17:return 26;case 18:return 30;case 19:return 31;case 20:return 13;case 21:return 43;case 22:return"DOT";case 23:return"PLUS";case 24:return 40;case 25:case 26:return"EQUALS";case 27:return 47;case 28:return"PUNCTUATION";case 29:return 46;case 30:return 45;case 31:return 42;case 32:return 8}},rules:[/^(?:%%[^\n]*)/,/^(?:\n+)/,/^(?:\s+)/,/^(?:classDiagram\b)/,/^(?:[\{])/,/^(?:\})/,/^(?:[\n])/,/^(?:[^\{\}\n]*)/,/^(?:class\b)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::[^#\n;]+)/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:[A-Za-z]+)/,/^(?:[!"#$%&'*+,-.`?\\_\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{string:{rules:[10,11],inclusive:!1},struct:{rules:[5,6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,8,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],inclusive:!0}}};function k(){this.yy={}}return M.lexer=w,k.prototype=M,M.Parser=k,new k}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(11).readFileSync(n(12).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(7),n(5)(t))},function(t,e,n){t.exports=function(t){var e={};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}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},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,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n.w={},n(n.s=25)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n(2))&&r.__esModule?r:{default:r},a=/:/g;function o(t){return t?String(t).replace(a,"\\:"):""}e.default={isSubgraph:function(t,e){return!!t.children(e).length},edgeToId:function(t){return o(t.v)+":"+o(t.w)+":"+o(t.name)},applyStyle:function(t,e){e&&t.attr("style",e)},applyClass:function(t,e,n){e&&t.attr("class",e).attr("class",n+" "+t.attr("class"))},applyTransition:function(t,e){var n=e.graph();if(i.default.isPlainObject(n)){var r=n.transition;if(i.default.isFunction(r))return r(t)}return t}}},function(t,e){t.exports=n(1)},function(t,e){t.exports=n(166)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(16)),i=o(n(15)),a=o(n(14));function o(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,n){var o=e.label,u=t.append("g");"svg"===e.labelType?(0,a.default)(u,e):"string"!=typeof o||"html"===e.labelType?(0,i.default)(u,e):(0,r.default)(u,e);var s=u.node().getBBox(),c=void 0;switch(n){case"top":c=-e.height/2;break;case"bottom":c=e.height/2-s.height;break;default:c=-s.height/2}return u.attr("transform","translate("+-s.width/2+","+c+")"),u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r){var i=t.x,a=t.y,o=i-r.x,u=a-r.y,s=Math.sqrt(e*e*u*u+n*n*o*o),c=Math.abs(e*n*o/s);r.x