PageSourceSearch

https://preview-8215-ng-zorro-antd.surge.sh/1929.586afa2af25f92f7.js

js preview-8215-ng-zorro-antd.surge.sh collected 2026-10-03 14:57:43 UTC 223,612 bytes, 1 lines download raw bytes

vendor: 4,923 bytes, line 1
1"use strict";(self.webpackChunkng_zorro_antd_doc=self.webpackChunkng_zorro_antd_doc||[]).push([[1929],{1929:(Jr,an,b)=>{b.r(an),b.d(an,{NzDemoGraphModule:()=>f0});var x=b(4190),q=b(6242),Gt=b(8337),It=b(5619),Rt=b(3019),kt=b(8645),rt=b(2438),jt=b(7328),Pt=b(9315),zn=b(7398),un=b(8180),sn=b(2181),St=b(9773),xn=b(4716),K=b(6814),n=b(9212),ht=b(8381),wt=b(227),Lt=b(5589);const $t=Math.PI,M=2*$t,Ut=1e-6,U=M-Ut;function B(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function E(){return new B}B.prototype=E.prototype={constructor:B,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,r,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+r)+","+(this._y1=+i)},bezierCurveTo:function(t,e,r,i,o,a){this._+="C"+ +t+","+ +e+","+ +r+","+ +i+","+(this._x1=+o)+","+(this._y1=+a)},arcTo:function(t,e,r,i,o){var a=this._x1,u=this._y1,s=(r=+r)-(t=+t),c=(i=+i)-(e=+e),h=a-t,d=u-e,l=h*h+d*d;if((o=+o)<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(l>Ut)if(Math.abs(d*s-c*h)>Ut&&o){var f=r-a,g=i-u,_=s*s+c*c,m=f*f+g*g,y=Math.sqrt(_),Z=Math.sqrt(l),w=o*Math.tan(($t-Math.acos((_+l-m)/(2*y*Z)))/2),C=w/Z,N=w/y;Math.abs(C-1)>Ut&&(this._+="L"+(t+C*h)+","+(e+C*d)),this._+="A"+o+","+o+",0,0,"+ +(d*f>h*g)+","+(this._x1=t+N*s)+","+(this._y1=e+N*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,r,i,o,a){t=+t,e=+e,a=!!a;var u=(r=+r)*Math.cos(i),s=r*Math.sin(i),c=t+u,h=e+s,d=1^a,l=a?i-o:o-i;if(r<0)throw new Error("negative radius: "+r);null===this._x1?this._+="M"+c+","+h:(Math.abs(this._x1-c)>Ut||Math.abs(this._y1-h)>Ut)&&(this._+="L"+c+","+h),r&&(l<0&&(l=l%M+M),l>U?this._+="A"+r+","+r+",0,1,"+d+","+(t-u)+","+(e-s)+"A"+r+","+r+",0,1,"+d+","+(this._x1=c)+","+(this._y1=h):l>Ut&&(this._+="A"+r+","+r+",0,"+ +(l>=$t)+","+d+","+(this._x1=t+r*Math.cos(o))+","+(this._y1=e+r*Math.sin(o))))},rect:function(t,e,r,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +i+"h"+-r+"Z"},toString:function(){return this._}};const Dt=E;function vt(t){return function(){return t}}function I(t){this._context=t}function Zt(t){return new I(t)}function j(t){return t[0]}function P(t){return t[1]}function J(t,e){var r=vt(!0),i=null,o=Zt,a=null;function u(s){var c,d,f,h=(s=function qn(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}(s)).length,l=!1;for(null==i&&(a=o(f=Dt())),c=0;c<=h;++c)!(c<h&&r(d=s[c],c,s))===l&&((l=!l)?a.lineStart():a.lineEnd()),l&&a.point(+t(d,c,s),+e(d,c,s));if(f)return a=null,f+""||null}return t="function"==typeof t?t:void 0===t?j:vt(t),e="function"==typeof e?e:void 0===e?P:vt(e),u.x=function(s){return arguments.length?(t="function"==typeof s?s:vt(+s),u):t},u.y=function(s){return arguments.length?(e="function"==typeof s?s:vt(+s),u):e},u.defined=function(s){return arguments.length?(r="function"==typeof s?s:vt(!!s),u):r},u.curve=function(s){return arguments.length?(o=s,null!=i&&(a=o(i)),u):o},u.context=function(s){return arguments.length?(null==s?i=a=null:a=o(i=s),u):i},u}function it(t,e,r){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+r)/6)}function Nn(t){this._context=t}function cn(t){return new Nn(t)}I.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,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:this._context.lineTo(t,e)}}},Nn.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:it(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:it(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var _u={value:()=>{}};function Wr(){for(var i,t=0,e=arguments.length,r={};t<e;++t){if(!(i=arguments[t]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new Xn(r)}function Xn(t){this._=t}function Zu(t,e){for(var o,r=0,i=t.length;r<i;++r)if((o=t[r]).name===e)return o.value}function Xr(t,e,r){for(var i=0,o=t.length;i<o;
vendor: 6,787 bytes, line 1
1++i)if(t[i].name===e){t[i]=_u,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=r&&t.push({name:e,value:r}),t}Xn.prototype=Wr.prototype={constructor:Xn,on:function(t,e){var o,r=this._,i=function vu(t,e){return t.trim().split(/^|\s+/).map(function(r){var i="",o=r.indexOf(".");if(o>=0&&(i=r.slice(o+1),r=r.slice(0,o)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}(t+"",r),a=-1,u=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<u;)if(o=(t=i[a]).type)r[o]=Xr(r[o],t.name,e);else if(null==e)for(o in r)r[o]=Xr(r[o],t.name,null);return this}for(;++a<u;)if((o=(t=i[a]).type)&&(o=Zu(r[o],t.name)))return o},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new Xn(t)},call:function(t,e){if((o=arguments.length-2)>0)for(var o,a,r=new Array(o),i=0;i<o;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=0,o=(a=this._[t]).length;i<o;++i)a[i].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],o=0,a=i.length;o<a;++o)i[o].value.apply(e,r)}};const Kr=Wr;function yu(){}function $e(t){return null==t?yu:function(){return this.querySelector(t)}}function ti(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Tu(){return[]}function ni(t){return null==t?Tu:function(){return this.querySelectorAll(t)}}function ei(t){return function(){return this.matches(t)}}function ri(t){return function(e){return e.matches(t)}}var Uu=Array.prototype.find;function xu(){return this.firstElementChild}var qu=Array.prototype.filter;function Nu(){return this.children}function ii(t){return new Array(t.length)}function Kn(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Ou(t,e,r,i,o,a){for(var s,u=0,c=e.length,h=a.length;u<h;++u)(s=e[u])?(s.__data__=a[u],i[u]=s):r[u]=new Kn(t,a[u]);for(;u<c;++u)(s=e[u])&&(o[u]=s)}function Bu(t,e,r,i,o,a,u){var s,c,g,h=new Map,d=e.length,l=a.length,f=new Array(d);for(s=0;s<d;++s)(c=e[s])&&(f[s]=g=u.call(c,c.__data__,s,e)+"",h.has(g)?o[s]=c:h.set(g,c));for(s=0;s<l;++s)g=u.call(t,a[s],s,a)+"",(c=h.get(g))?(i[s]=c,c.__data__=a[s],h.delete(g)):r[s]=new Kn(t,a[s]);for(s=0;s<d;++s)(c=e[s])&&h.get(f[s])===c&&(o[s]=c)}function Fu(t){return t.__data__}function $u(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Kn.prototype={constructor:Kn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Ve="http://www.w3.org/1999/xhtml";const oi={svg:"http://www.w3.org/2000/svg",xhtml:Ve,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function te(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),oi.hasOwnProperty(e)?{space:oi[e],local:t}:t}function Xu(t){return function(){this.removeAttribute(t)}}function Ku(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ts(t,e){return function(){this.setAttribute(t,e)}}function ns(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function es(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}}function rs(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function ai(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function os(t){return function(){this.style.removeProperty(t)}}function as(t,e,r){return function(){this.style.setProperty(t,e,r)}}function us(t,e,r){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}function hn(t,e){return t.style.getPropertyValue(e)||ai(t).getComputedStyle(t,null).getPropertyValue(e)}function cs(t){return function(){delete this[t]}}function hs(t,e){return function(){this[t]=e}}function ds(t,e){return function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}}function ui(t){return t.trim().split(/^|\s+/)}function He(t){return t.classList||new si(t)}function si(t){this._node=t,this._names=ui(t.getAttribute("class")||"")}function ci(t,e){for(var r=He(t),i=-1,o=e.length;++i<o;)r.add(e[i])}function hi(t,e){for(var r=He(t),i=-1,o=e.length;++i<o;)r.remove(e[i])}function fs(t){return function(){ci(this,t)}}function ps(t){return function(){hi(this,t)}}function gs(t,e){return function(){(e.apply(this,arguments)?ci:hi)(this,t)}}function _s(){this.textContent=""}function vs(t){return function(){this.textContent=t}}function Zs(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function As(){this.innerHTML=""}function Ts(t){return function(){this.innerHTML=t}}function bs(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Us(){this.nextSibling&&this.parentNode.appendChild(this)}function xs(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function qs(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Ve&&e.documentElement.namespaceURI===Ve?e.createElement(t):e.createElementNS(r,t)}}function Ns(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function di(t){var e=te(t);return(e.local?Ns:qs)(e)}function ks(){return null}function Ds(){var t=this.parentNode;t&&t.removeChild(this)}function Os(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Bs(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function js(t){return function(){var e=this.__on;if(e){for(var a,r=0,i=-1,o=e.length;r<o;++r)a=e[r],t.type&&a.type!==t.type||a.name!==t.name?e[++i]=a:this.removeEventListener(a.type,a.listener,a.options);++i?e.length=i:delete this.__on}}}function Ps(t,e,r){return function(){var o,i=this.__on,a=function Is(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var u=0,s=i.length;u<s;++u)if((o=i[u]).type===t.type&&o.name===t.name)return this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=r),void(o.value=e);this.addEventListener(t.type,a,r),o={type:t.type,name:t.name,value:e,listener:a,options:r},i?i.push(o):this.__on=[o]}}function li(t,e,r){var i=ai(t),o=i.CustomEvent;"function"==typeof o?o=new o(e,r):(o=i.document.createEvent("Event"),r?(o.initEvent(e,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(e,!1,!1)),t.dis
1patchEvent(o)}function $s(t,e){return function(){return li(this,t,e)}}function Vs(t,e){return function(){return li(this,t,e.apply(this,arguments))}}si.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var fi=[null];function tt(t,e){this._groups=t,this._parents=e}function pi(){return new tt([[document.documentElement]],fi)}tt.prototype=pi.prototype={constructor:tt,select:function Au(t){"function"!=typeof t&&(t=$e(t));for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o)for(var c,h,a=e[o],u=a.length,s=i[o]=new Array(u),d=0;d<u;++d)(c=a[d])&&(h=t.call(c,c.__data__,d,a))&&("__data__"in c&&(h.__data__=c.__data__),s[d]=h);return new tt(i,this._parents)},selectAll:function wu(t){t="function"==typeof t?function bu(t){return function(){var e=t.apply(this,arguments);return null==e?[]:ti(e)}}(t):ni(t);for(var e=this._groups,r=e.length,i=[],o=[],a=0;a<r;++a)for(var c,u=e[a],s=u.length,h=0;h<s;++h)(c=u[h])&&(i.push(t.call(c,c.__data__,h,u)),o.push(c));return new tt(i,o)},selectChild:function Eu(t){return this.select(null==t?xu:function zu(t){return function(){return Uu.call(this.children,t)}}("function"==typeof t?t:ri(t)))},selectChildren:function ku(t){return this.selectAll(null==t?Nu:function Cu(t){return function(){return qu.call(this.children,t)}}("function"==typeof t?t:ri(t)))},filter:function Su(t){"function"!=typeof t&&(t=ei(t));for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o)for(var c,a=e[o],u=a.length,s=i[o]=[],h=0;h<u;++h)(c=a[h])&&t.call(c,c.__data__,h,a)&&s.push(c);return new tt(i,this._parents)},data:function Gu(t,e){if(!arguments.length)return Array.from(this,Fu);var r=e?Bu:Ou,i=this._parents,o=this._groups;"function"!=typeof t&&(t=function Mu(t){return function(){return t}}(t));for(var a=o.length,u=new Array(a),s=new Array(a),c=new Array(a),h=0;h<a;++h){var d=i[h],l=o[h],f=l.length,g=ti(t.call(d,d&&d.__data__,h,i)),_=g.length,m=s[h]=new Array(_),y=u[h]=new Array(_);r(d,l,m,y,c[h]=new Array(f),g,e);for(var N,R,w=0,C=0;w<_;++w)if(N=m[w]){for(w>=C&&(C=w+1);!(R=y[C])&&++C<_;);N._next=R||null}}return(u=new tt(u,i))._enter=s,u._exit=c,u},enter:function Du(){return new tt(this._enter||this._groups.map(ii),this._parents)},exit:function Iu(){return new tt(this._exit||this._groups.map(ii),this._parents)},join:function Ru(t,e,r){var i=this.enter(),o=this,a=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=e&&(o=e(o)),null==r?a.remove():r(a),i&&o?i.merge(o).order():o},merge:function ju(t){if(!(t instanceof tt))throw new Error("invalid merge");for(var e=this._groups,r=t._groups,i=e.length,a=Math.min(i,r.length),u=new Array(i),s=0;s<a;++s)for(var f,c=e[s],h=r[s],d=c.length,l=u[s]=new Array(d),g=0;g<d;++g)(f=c[g]||h[g])&&(l[g]=f);for(;s<i;++s)u[s]=e[s];return new tt(u,this._parents)},selection:function Qs(){return this},order:function Pu(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var u,i=t[e],o=i.length-1,a=i[o];--o>=0;)(u=i[o])&&(a&&4^u.compareDocumentPosition(a)&&a.parentNode.insertBefore(u,a),a=u);return this},sort:function Lu(t){function e(l,f){return l&&f?t(l.__data__,f.__data__):!l-!f}t||(t=$u);for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a){for(var h,u=r[a],s=u.length,c=o[a]=new Array(s),d=0;d<s;++d)(h=u[d])&&(c[d]=h);c.sort(e)}return new tt(o,this._parents).order()},call:function Vu(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function Hu(){return Array.from(this)},node:function Yu(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i=t[e],o=0,a=i.length;o<a;++o){var u=i[o];if(u)return u}return null},size:function Qu(){let t=0;for(const e of this)++t;return t},empty:function Ju(){return!this.node()},each:function Wu(t){for(var e=this._groups,r=0,i=e.length;r<i;++r)for(var s,o=e[r],a=0,u=o.length;a<u;++a)(s=o[a])&&t.call(s,s.__data__,a,o);return this},attr:function is(t,e){var r=te(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((null==e?r.local?Ku:Xu:"function"==typeof e?r.local?rs:es:r.local?ns:ts)(r,e))},style:function ss(t,e,r){return arguments.length>1?this.each((null==e?os:"function"==typeof e?us:as)(t,e,r??"")):hn(this.node(),t)},property:function ls(t,e){return arguments.length>1?this.each((null==e?cs:"function"==typeof e?ds:hs)(t,e)):this.node()[t]},classed:function ms(t,e){var r=ui(t+"");
1if(arguments.length<2){for(var i=He(this.node()),o=-1,a=r.length;++o<a;)if(!i.contains(r[o]))return!1;return!0}return this.each(("function"==typeof e?gs:e?fs:ps)(r,e))},text:function ys(t){return arguments.length?this.each(null==t?_s:("function"==typeof t?Zs:vs)(t)):this.node().textContent},html:function ws(t){return arguments.length?this.each(null==t?As:("function"==typeof t?bs:Ts)(t)):this.node().innerHTML},raise:function zs(){return this.each(Us)},lower:function Es(){return this.each(xs)},append:function Cs(t){var e="function"==typeof t?t:di(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function Ss(t,e){var r="function"==typeof t?t:di(t),i=null==e?ks:"function"==typeof e?e:$e(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function Ms(){return this.each(Ds)},clone:function Fs(t){return this.select(t?Bs:Os)},datum:function Gs(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function Ls(t,e,r){var o,u,i=function Rs(t){return t.trim().split(/^|\s+/).map(function(e){var r="",i=e.indexOf(".");return i>=0&&(r=e.slice(i+1),e=e.slice(0,i)),{type:e,name:r}})}(t+""),a=i.length;if(!(arguments.length<2)){for(s=e?Ps:js,o=0;o<a;++o)this.each(s(i[o],e,r));return this}var s=this.node().__on;if(s)for(var d,c=0,h=s.length;c<h;++c)for(o=0,d=s[c];o<a;++o)if((u=i[o]).type===d.type&&u.name===d.name)return d.value},dispatch:function Hs(t,e){return this.each(("function"==typeof e?Vs:$s)(t,e))},[Symbol.iterator]:function*Ys(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var u,i=t[e],o=0,a=i.length;o<a;++o)(u=i[o])&&(yield u)}};const Cn=pi;function Vt(t){return"string"==typeof t?new tt([[document.querySelector(t)]],[document.documentElement]):new tt([[t]],fi)}function Ye(t){t.preventDefault(),t.stopImmediatePropagation()}function gi(t){return((t=Math.exp(t))+1/t)/2}const nc=function t(e,r,i){function o(a,u){var y,Z,s=a[0],c=a[1],h=a[2],f=u[2],g=u[0]-s,_=u[1]-c,m=g*g+_*_;if(m<1e-12)Z=Math.log(f/h)/e,y=function(Q){return[s+Q*g,c+Q*_,h*Math.exp(e*Q*Z)]};else{var w=Math.sqrt(m),C=(f*f-h*h+i*m)/(2*h*r*w),N=(f*f-h*h-i*m)/(2*f*r*w),R=Math.log(Math.sqrt(C*C+1)-C),G=Math.log(Math.sqrt(N*N+1)-N);Z=(G-R)/e,y=function(Q){var gt=Q*Z,ct=gi(R),Le=h/(r*w)*(ct*function tc(t){return((t=Math.exp(2*t))-1)/(t+1)}(e*gt+R)-function Ks(t){return((t=Math.exp(t))-1/t)/2}(R));return[s+Le*g,c+Le*_,h*ct/gi(e*gt+R)]}}return y.duration=1e3*Z*e/Math.SQRT2,y}return o.rho=function(a){var u=Math.max(.001,+a),s=u*u;return t(u,s,s*s)},o}(Math.SQRT2,2,4);function Ht(t,e){if(t=function ec(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var r=e.ownerSVGElement||e;if(r.createSVGPoint){var i=r.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}var ne,Dn,dn=0,kn=0,Sn=0,mi=1e3,ee=0,Yt=0,re=0,Mn="object"==typeof performance&&performance.now?performance:Date,_i="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Qe(){return Yt||(_i(rc),Yt=Mn.now()+re)}function rc(){Yt=0}function ie(){this._call=this._time=this._next=null}function vi(t,e,r){var i=new ie;return i.restart(t,e,r),i}function Zi(){Yt=(ee=Mn.now())+re,dn=kn=0;try{!function ic(){Qe(),++dn;for(var e,t=ne;t;)(e=Yt-t._time)>=0&&t._call.call(null,e),t=t._next;--dn}()}finally{dn=0,function ac(){for(var t,r,e=ne,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:ne=r);Dn=t,Je(i)}(),Yt=0}}function oc(){var t=Mn.now(),e=t-ee;e>mi&&(re-=e,ee=t)}function Je(t){dn||(kn&&(kn=clearTimeout(kn)),t-Yt>24?(t<1/0&&(kn=setTimeout(Zi,t-Mn.now()-re)),Sn&&(Sn=clearInterval(Sn))):(Sn||(ee=Mn.now(),Sn=setInterval(oc,mi)),dn=1,_i(Zi)))}function yi(t,e,r){var i=new ie;return i.restart(o=>{i.stop(),t(o+e)},e=null==e?0:+e,r),i}ie.prototype=vi.prototype={constructor:ie,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?Qe():+r)+(null==e?0:+e),!this._next&&Dn!==this&&(Dn?Dn._next=this:ne=this,Dn=this),this._call=t,this._time=r,Je()},stop:function(){this._call&&(this._call=null,this._time=1/0,Je())}};var uc=Kr("start","end","cancel","interrupt"),sc=[],Ai=0,We=2,oe
1=3,Xe=5,ae=6;function ue(t,e,r,i,o,a){var u=t.__transition;if(u){if(r in u)return}else t.__transition={};!function cc(t,e,r){var o,i=t.__transition;function u(h){var d,l,f,g;if(1!==r.state)return c();for(d in i)if((g=i[d]).name===r.name){if(g.state===oe)return yi(u);4===g.state?(g.state=ae,g.timer.stop(),g.on.call("interrupt",t,t.__data__,g.index,g.group),delete i[d]):+d<e&&(g.state=ae,g.timer.stop(),g.on.call("cancel",t,t.__data__,g.index,g.group),delete i[d])}if(yi(function(){r.state===oe&&(r.state=4,r.timer.restart(s,r.delay,r.time),s(h))}),r.state=We,r.on.call("start",t,t.__data__,r.index,r.group),r.state===We){for(r.state=oe,o=new Array(f=r.tween.length),d=0,l=-1;d<f;++d)(g=r.tween[d].value.call(t,t.__data__,r.index,r.group))&&(o[++l]=g);o.length=l+1}}function s(h){for(var d=h<r.duration?r.ease.call(null,h/r.duration):(r.timer.restart(c),r.state=Xe,1),l=-1,f=o.length;++l<f;)o[l].call(t,d);r.state===Xe&&(r.on.call("end",t,t.__data__,r.index,r.group),c())}function c(){for(var h in r.state=ae,r.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=r,r.timer=vi(function a(h){r.state=1,r.timer.restart(u,r.delay,r.time),r.delay<=h&&u(h-r.delay)},0,r.time)}(t,r,{name:e,index:i,group:o,on:uc,tween:sc,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Ai})}function Ke(t,e){var r=dt(t,e);if(r.state>Ai)throw new Error("too late; already scheduled");return r}function yt(t,e){var r=dt(t,e);if(r.state>oe)throw new Error("too late; already running");return r}function dt(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function se(t,e){var i,o,u,r=t.__transition,a=!0;if(r){for(u in e=null==e?null:e+"",r)(i=r[u]).name===e?(o=i.state>We&&i.state<Xe,i.state=ae,i.timer.stop(),i.on.call(o?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[u]):a=!1;a&&delete t.__transition}}function Mt(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var ce,wi=180/Math.PI,tr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ui(t,e,r,i,o,a){var u,s,c;return(u=Math.sqrt(t*t+e*e))&&(t/=u,e/=u),(c=t*r+e*i)&&(r-=t*c,i-=e*c),(s=Math.sqrt(r*r+i*i))&&(r/=s,i/=s,c/=s),t*i<e*r&&(t=-t,e=-e,c=-c,u=-u),{translateX:o,translateY:a,rotate:Math.atan2(e,t)*wi,skewX:Math.atan(c)*wi,scaleX:u,scaleY:s}}function zi(t,e,r,i){function o(h){return h.length?h.pop()+" ":""}return function(h,d){var l=[],f=[];return h=t(h),d=t(d),function a(h,d,l,f,g,_){if(h!==l||d!==f){var m=g.push("translate(",null,e,null,r);_.push({i:m-4,x:Mt(h,l)},{i:m-2,x:Mt(d,f)})}else(l||f)&&g.push("translate("+l+e+f+r)}(h.translateX,h.translateY,d.translateX,d.translateY,l,f),function u(h,d,l,f){h!==d?(h-d>180?d+=360:d-h>180&&(h+=360),f.push({i:l.push(o(l)+"rotate(",null,i)-2,x:Mt(h,d)})):d&&l.push(o(l)+"rotate("+d+i)}(h.rotate,d.rotate,l,f),function s(h,d,l,f){h!==d?f.push({i:l.push(o(l)+"skewX(",null,i)-2,x:Mt(h,d)}):d&&l.push(o(l)+"skewX("+d+i)}(h.skewX,d.skewX,l,f),function c(h,d,l,f,g,_){if(h!==l||d!==f){var m=g.push(o(g)+"scale(",null,",",null,")");_.push({i:m-4,x:Mt(h,l)},{i:m-2,x:Mt(d,f)})}else(1!==l||1!==f)&&g.push(o(g)+"scale("+l+","+f+")")}(h.scaleX,h.scaleY,d.scaleX,d.scaleY,l,f),h=d=null,function(g){for(var y,_=-1,m=f.length;++_<m;)l[(y=f[_]).i]=y.x(g);return l.join("")}}}var fc=zi(function dc(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?tr:Ui(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),pc=zi(function lc(t){return null!=t&&(ce||(ce=document.createElementNS("http://www.w3.org/2000/svg","g")),ce.setAttribute("transform",t),t=ce.transform.baseVal.consolidate())?Ui((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tr},", ",")",")");function gc(t,e){var r,i;return function(){var o=yt(this,t),a=o.tween;if(a!==r)for(var u=0,s=(i=r=a).length;u<s;++u)if(i[u].name===e){(i=i.slice()).splice(u,1);break}o.tween=i}}function mc(t,e,r){var i,o;if("function"!=typeof r)throw new Error;return function(){var a=yt(this,t),u=a.tween;if(u!==i){o=(i=u).slice();for(var s={name:e,value:r},c=0,h=o.length;c<h;++c)if(o[c].name===e){o[c]=s;break}c===h&&o.push(s)}a.tween=o}}function nr(t,e,r){var i=t._id;return t.each(function(){var o=yt(this,i);(o.value||(o.value={}))[e]=r.apply(this,arguments)}),function(o){return dt(o,i).value[e]}}function er(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function xi(t,e){var r=Object.create(t.prototype);for(var i in e)r[i]=e[i];return r}function On(){}var he=1/.7,ln="\\s*([+-]?\\d+)\\s*",Fn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",At="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vc=/^#([0-9a-f]{3,8})$/,Zc=new RegExp("^rgb\\("+[ln,ln,ln]+"\\)$"),yc=new RegExp("^rgb\\("+[At,At,At]+"\\)$"),Ac=new RegExp("^rgba\\("+[ln,ln,ln,Fn]+"\\)$"),Tc=new RegExp("^rgba\\("+[At,At,At,Fn]+"\\)$"),bc=new RegExp("^hsl\\("+[Fn,At,At]+"\\)$"),wc=new RegExp("^hsla\\("+[Fn,At,At,Fn]+"\\)$"),Ei={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function qi(){return this.rgb().formatHex()}function Ni(){return this.rgb().formatRgb()}function Gn(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=vc.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?Ci(e):3===r?new ot(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?de(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?de(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Zc.exec(t))?new ot(e[1],e[2],e[3],1):(e=yc.exec(t))?new ot(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ac.exec(t))?de(e[1],e[2],e[3],e[4]):(e=Tc.exec(t))?de(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=bc.exec(t))?Di(e[1],e[2]/100,e[3]/100,1):(e=wc.exec(t))?Di(e[1],e[2]/100,e[3]/100,e[4]):Ei.hasOwnProperty(t)?Ci(Ei[t]):"transparent"===t?new ot(NaN,NaN,NaN,0):null}function Ci(t){return new ot(t>>16&255,t>>8&255,255&t,1)}function de(t,e,r,i){return i<=0&&(t=e=r=NaN),new ot(t,e,r,i)}function le(t,e,r,i){return 1===arguments.length?function zc(t){return t instanceof On||(t=Gn(t)),t?new ot((t=t.rgb()).r,t.g,t.b,t.opacity):new ot}(t):new ot(t,e,r,i??1)}function ot(t,e,r,i){this.r=+t,this.g=+e,this.b=+r,this.opacity=+i}function ki(){return"#"+rr(this.r)+rr(this.g)+rr(this.b)}function Si(){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)||
10))+", "+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+")")}function rr(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Di(t,e,r,i){return i<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Tt(t,e,r,i)}function Mi(t){if(t instanceof Tt)return new Tt(t.h,t.s,t.l,t.opacity);if(t instanceof On||(t=Gn(t)),!t)return new Tt;if(t instanceof Tt)return t;var e=(t=t.rgb()).r/255,r=t.g/255,i=t.b/255,o=Math.min(e,r,i),a=Math.max(e,r,i),u=NaN,s=a-o,c=(a+o)/2;return s?(u=e===a?(r-i)/s+6*(r<i):r===a?(i-e)/s+2:(e-r)/s+4,s/=c<.5?a+o:2-a-o,u*=60):s=c>0&&c<1?0:u,new Tt(u,s,c,t.opacity)}function Tt(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}function ir(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}function Oi(t,e,r,i,o){var a=t*t,u=a*t;return((1-3*t+3*a-u)*e+(4-6*a+3*u)*r+(1+3*t+3*a-3*u)*i+u*o)/6}er(On,Gn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:qi,formatHex:qi,formatHsl:function Uc(){return Mi(this).formatHsl()},formatRgb:Ni,toString:Ni}),er(ot,le,xi(On,{brighter:function(t){return t=null==t?he:Math.pow(he,t),new ot(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ot(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ki,formatHex:ki,formatRgb:Si,toString:Si})),er(Tt,function xc(t,e,r,i){return 1===arguments.length?Mi(t):new Tt(t,e,r,i??1)},xi(On,{brighter:function(t){return t=null==t?he:Math.pow(he,t),new Tt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Tt(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,r=this.l,i=r+(r<.5?r:1-r)*e,o=2*r-i;return new ot(ir(t>=240?t-240:t+120,o,i),ir(t,o,i),ir(t<120?t+240:t-120,o,i),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},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const Bi=t=>()=>t;function Gi(t,e){var r=e-t;return r?function Fi(t,e){return function(r){return t+r*e}}(t,r):Bi(isNaN(t)?e:t)}const Ii=function t(e){var r=function Cc(t){return 1==(t=+t)?Gi:function(e,r){return r-e?function Nc(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(i){return Math.pow(t+i*e,r)}}(e,r,t):Bi(isNaN(e)?r:e)}}(e);function i(o,a){var u=r((o=le(o)).r,(a=le(a)).r),s=r(o.g,a.g),c=r(o.b,a.b),h=Gi(o.opacity,a.opacity);return function(d){return o.r=u(d),o.g=s(d),o.b=c(d),o.opacity=h(d),o+""}}return i.gamma=t,i}(1);function Ri(t){return function(e){var u,s,r=e.length,i=new Array(r),o=new Array(r),a=new Array(r);for(u=0;u<r;++u)s=le(e[u]),i[u]=s.r||0,o[u]=s.g||0,a[u]=s.b||0;return i=t(i),o=t(o),a=t(a),s.opacity=1,function(c){return s.r=i(c),s.g=o(c),s.b=a(c),s+""}}}Ri(function Ec(t){var e=t.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[i],a=t[i+1];return Oi((r-i/e)*e,i>0?t[i-1]:2*o-a,o,a,i<e-1?t[i+2]:2*a-o)}}),Ri(function qc(t){var e=t.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*e);return Oi((r-i/e)*e,t[(i+e-1)%e],t[i%e],t[(i+1)%e],t[(i+2)%e])}});var or=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ar=new RegExp(or.source,"g");function Dc(t,e){var i,o,a,r=or.lastIndex=ar.lastIndex=0,u=-1,s=[],c=[];for(t+="",e+="";(i=or.exec(t))&&(o=ar.exec(e));)(a=o.index)>r&&(a=e.slice(r,a),s[u]?s[u]+=a:s[++u]=a),(i=i[0])===(o=o[0])?s[u]?s[u]+=o:s[++u]=o:(s[++u]=null,c.push({i:u,x:Mt(i,o)})),r=ar.lastIndex;return r<e.length&&(a=e.slice(r),s[u]?s[u]+=a:s[++u]=a),s.length<2?c[0]?function Sc(t){return function(e){return t(e)+""}}(c[0].x):function kc(t){return function(){return t}}(e):(e=c.length,function(h){for(var l,d=0;d<e;++d)s[(l=c[d]).i]=l.x(h);return s.join("")})}function ji(t,e){var r;return("number"==typeof e?Mt:e instanceof Gn?Ii:(r=Gn(e))?(e=r,Ii):Dc)(t,e)}function Mc(t){return function(){this.removeAttribute(t)}}function Oc(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Bc(t,e,r){var i,a,o=r+"";return function(){var u=this.getAttribute(t);return u===o?null:u===i?a:a=e(i=u,r)}}function Fc(t,e,r){var i,a,o=r+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===o?null:u===i?a:a=e(i=u,r)}}function Gc(t,e,r){var i,o,a;return function(){var u,c,s=r(this);return null==s?void this.removeAttribute(t):(u=this.getAttribute(t))===(c=s+"")?null:u===i&&c===o?a:(o=c,a=e(i=u,s))}}function Ic(t,e,r){var i,o,a;return function(){var u,c,s=r(this);return null==s?void this.removeAttributeNS(t.space,t.local):(u=this.getAttributeNS(t.space,t.local))===(c=s+"")?null:u===i&&c===o?a:(o=c,a=e(i=u,s))}}function Lc(t,e){var r,i;function o(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&function Pc(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}(t,a)),r}return o._value=e,o}function $c(t,e){var r,i;function o(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&function jc(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}(t,a)),r}return o._value=e,o}function Hc(t,e){return function(){Ke(this,t).delay=+e.apply(this,arguments)}}function Yc(t,e){return e=+e,function(){Ke(this,t).delay=e}}
1function Jc(t,e){return function(){yt(this,t).duration=+e.apply(this,arguments)}}function Wc(t,e){return e=+e,function(){yt(this,t).duration=e}}var lh=Cn.prototype.constructor;function Pi(t){return function(){this.style.removeProperty(t)}}var Nh=0;function zt(t,e,r,i){this._groups=t,this._parents=e,this._name=r,this._id=i}function Li(t){return Cn().transition(t)}function $i(){return++Nh}var Qt=Cn.prototype;zt.prototype=Li.prototype={constructor:zt,select:function hh(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=$e(t));for(var i=this._groups,o=i.length,a=new Array(o),u=0;u<o;++u)for(var d,l,s=i[u],c=s.length,h=a[u]=new Array(c),f=0;f<c;++f)(d=s[f])&&(l=t.call(d,d.__data__,f,s))&&("__data__"in d&&(l.__data__=d.__data__),h[f]=l,ue(h[f],e,r,f,h,dt(d,r)));return new zt(a,this._parents,e,r)},selectAll:function dh(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=ni(t));for(var i=this._groups,o=i.length,a=[],u=[],s=0;s<o;++s)for(var d,c=i[s],h=c.length,l=0;l<h;++l)if(d=c[l]){for(var g,f=t.call(d,d.__data__,l,c),_=dt(d,r),m=0,y=f.length;m<y;++m)(g=f[m])&&ue(g,e,r,m,f,_);a.push(f),u.push(d)}return new zt(a,u,e,r)},filter:function rh(t){"function"!=typeof t&&(t=ei(t));for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o)for(var c,a=e[o],u=a.length,s=i[o]=[],h=0;h<u;++h)(c=a[h])&&t.call(c,c.__data__,h,a)&&s.push(c);return new zt(i,this._parents,this._name,this._id)},merge:function ih(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,i=e.length,a=Math.min(i,r.length),u=new Array(i),s=0;s<a;++s)for(var f,c=e[s],h=r[s],d=c.length,l=u[s]=new Array(d),g=0;g<d;++g)(f=c[g]||h[g])&&(l[g]=f);for(;s<i;++s)u[s]=e[s];return new zt(u,this._parents,this._name,this._id)},selection:function fh(){return new lh(this._groups,this._parents)},transition:function Eh(){for(var t=this._name,e=this._id,r=$i(),i=this._groups,o=i.length,a=0;a<o;++a)for(var c,u=i[a],s=u.length,h=0;h<s;++h)if(c=u[h]){var d=dt(c,e);ue(c,t,r,h,u,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new zt(i,this._parents,t,r)},call:Qt.call,nodes:Qt.nodes,node:Qt.node,size:Qt.size,empty:Qt.empty,each:Qt.each,on:function uh(t,e){var r=this._id;return arguments.length<2?dt(this.node(),r).on.on(t):this.each(function ah(t,e,r){var i,o,a=function oh(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||"start"===e})}(e)?Ke:yt;return function(){var u=a(this,t),s=u.on;s!==i&&(o=(i=s).copy()).on(e,r),u.on=o}}(r,t,e))},attr:function Rc(t,e){var r=te(t),i="transform"===r?pc:ji;return this.attrTween(t,"function"==typeof e?(r.local?Ic:Gc)(r,i,nr(this,"attr."+t,e)):null==e?(r.local?Oc:Mc)(r):(r.local?Fc:Bc)(r,i,e))},attrTween:function Vc(t,e){var r="attr."+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;var i=te(t);return this.tween(r,(i.local?Lc:$c)(i,e))},style:function vh(t,e,r){var i="transform"==(t+="")?fc:ji;return null==e?this.styleTween(t,function ph(t,e){var r,i,o;return function(){var a=hn(this,t),u=(this.style.removeProperty(t),hn(this,t));return a===u?null:a===r&&u===i?o:o=e(r=a,i=u)}}(t,i)).on("end.style."+t,Pi(t)):"function"==typeof e?this.styleTween(t,function mh(t,e,r){var i,o,a;return function(){var u=hn(this,t),s=r(this),c=s+"";return null==s&&(this.style.removeProperty(t),c=s=hn(this,t)),u===c?null:u===i&&c===o?a:(o=c,a=e(i=u,s))}}(t,i,nr(this,"style."+t,e))).each(function _h(t,e){var r,i,o,s,a="style."+e,u="end."+a;return function(){var c=yt(this,t),h=c.on,d=null==c.value[a]?s||(s=Pi(e)):void 0;(h!==r||o!==d)&&(i=(r=h).copy()).on(u,o=d),c.on=i}}(this._id,t)):this.styleTween(t,function gh(t,e,r){var i,a,o=r+"";return function(){var u=hn(this,t);return u===o?null:u===i?a:a=e(i=u,r)}}(t,i,e),r).on("end.style."+t,null)},styleTween:function Ah(t,e,r){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,function yh(t,e,r){var i,o;function a(){var u=e.apply(this,arguments);return u!==o&&(i=(o=u)&&function Zh(t,e,r){return function(i){this.style.setProperty(t,e.call(this,i),r)}}(t,u,r)),i}return a._value=e,a}(t,e,r??""))},text:function wh(t){return this.tween("text","function"==typeof t?function bh(t){return function(){var e=t(this);this.textContent=e??""}}(nr(this,"text",t)):function Th(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function xh(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function zh(t){var e,r;
1function i(){var o=t.apply(this,arguments);return o!==r&&(e=(r=o)&&function Uh(t){return function(e){this.textContent=t.call(this,e)}}(o)),e}return i._value=t,i}(t))},remove:function ch(){return this.on("end.remove",function sh(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function _c(t,e){var r=this._id;if(t+="",arguments.length<2){for(var u,i=dt(this.node(),r).tween,o=0,a=i.length;o<a;++o)if((u=i[o]).name===t)return u.value;return null}return this.each((null==e?gc:mc)(r,t,e))},delay:function Qc(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Hc:Yc)(e,t)):dt(this.node(),e).delay},duration:function Xc(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Jc:Wc)(e,t)):dt(this.node(),e).duration},ease:function th(t){var e=this._id;return arguments.length?this.each(function Kc(t,e){if("function"!=typeof e)throw new Error;return function(){yt(this,t).ease=e}}(e,t)):dt(this.node(),e).ease},easeVarying:function eh(t){if("function"!=typeof t)throw new Error;return this.each(function nh(t,e){return function(){var r=e.apply(this,arguments);if("function"!=typeof r)throw new Error;yt(this,t).ease=r}}(this._id,t))},end:function qh(){var t,e,r=this,i=r._id,o=r.size();return new Promise(function(a,u){var s={value:u},c={value:function(){0==--o&&a()}};r.each(function(){var h=yt(this,i),d=h.on;d!==t&&((e=(t=d).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(c)),h.on=e}),0===o&&a()})},[Symbol.iterator]:Qt[Symbol.iterator]};var kh={time:null,delay:0,duration:250,ease:function Ch(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Sh(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}Cn.prototype.interrupt=function hc(t){return this.each(function(){se(this,t)})},Cn.prototype.transition=function Dh(t){var e,r;t instanceof zt?(e=t._id,t=t._name):(e=$i(),(r=kh).time=Qe(),t=null==t?null:t+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var c,u=i[a],s=u.length,h=0;h<s;++h)(c=u[h])&&ue(c,t,e,h,u,r||Sh(c,e));return new zt(i,this._parents,t,e)};const fe=t=>()=>t;function Oh(t,{sourceEvent:e,target:r,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function xt(t,e,r){this.k=t,this.x=e,this.y=r}xt.prototype={constructor:xt,scale:function(t){return 1===t?this:new xt(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new xt(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var In=new xt(1,0,0);function Vi(t){for(;!t.__zoom;)if(!(t=t.parentNode))return In;return t.__zoom}function ur(t){t.stopImmediatePropagation()}function Rn(t){t.preventDefault(),t.stopImmediatePropagation()}function Bh(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function Fh(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function Hi(){return this.__zoom||In}function Gh(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Ih(){return navigator.maxTouchPoints||"ontouchstart"in this}function Rh(t,e,r){var i=t.invertX(e[0][0])-r[0][0],o=t.invertX(e[1][0])-r[1][0],a=t.invertY(e[0][1])-r[0][1],u=t.invertY(e[1][1])-r[1][1];return t.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),u>a?(a+u)/2:Math.min(0,a)||Math.max(0,u))}Vi.prototype=xt.prototype;var Ji,nt,fn,jn,t,Ph=b(2905),Yi=b(7582),at=b(6825),Qi=b(6700);(t=Ji||(Ji={}))[t.META=0]="META",t[t.OP=1]="OP",t[t.SERIES=2]="SERIES",function(t){t[t.META=0]="META",t[t.NODE=1]="NODE",t[t.BRIDGE=2]="BRIDGE"}(nt||(nt={})),function(t){t[t.INCLUDE=0]="INCLUDE",t[t.EXCLUDE=1]="EXCLUDE",t[t.UNSPECIFIED=2]="UNSPECIFIED"}(fn||(fn={})),function(t){t[t.META=0]="META",t[t.CORE=1]="CORE",t[t.BRIDGE=2]="BRIDGE"}(jn||(jn={}));var pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sr(t,e){return t(e={exports:{}},e.exports),e.exports}var pn=function(t,e){return t===e||t!=t&&e!=e},ge=function(t,e){for(var r=t.length;r--;)if(pn(t[r][0],e))return r;return-1},$h=Array.prototype.splice;function gn(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}gn.prototype.clear=function(){this.__data__=[],this.size=0},gn.prototype.delete=function(t){var e=this.__data__,r=ge(e,t);return!(r<0||(r==e.length-1?e.pop():$h.call(e,r,1),--this.size,0))},gn.prototype.get=function(t){var e=this.__data__,r=ge(e,t);return r<0?void 0:e[r][1]},gn.prototype.has=function(t){return ge(this.__data__,t)>-1}
1,gn.prototype.set=function(t,e){var r=this.__data__,i=ge(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this};var to,me=gn,Wi="object"==typeof pe&&pe&&pe.Object===Object&&pe,td="object"==typeof self&&self&&self.Object===Object&&self,lt=Wi||td||Function("return this")(),ut=lt.Symbol,Xi=Object.prototype,nd=Xi.hasOwnProperty,ed=Xi.toString,Pn=ut?ut.toStringTag:void 0,id=Object.prototype.toString,Ki=ut?ut.toStringTag:void 0,Ot=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Ki&&Ki in Object(t)?function(t){var e=nd.call(t,Pn),r=t[Pn];try{t[Pn]=void 0;var i=!0}catch{}var o=ed.call(t);return i&&(e?t[Pn]=r:delete t[Pn]),o}(t):function(t){return id.call(t)}(t)},et=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Ln=function(t){if(!et(t))return!1;var e=Ot(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},cr=lt["__core-js_shared__"],no=(to=/[^.]+$/.exec(cr&&cr.keys&&cr.keys.IE_PROTO||""))?"Symbol(src)_1."+to:"",ud=Function.prototype.toString,Jt=function(t){if(null!=t){try{return ud.call(t)}catch{}try{return t+""}catch{}}return""},sd=/^\[object .+?Constructor\]$/,fd=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wt=function(t,e){var r=function(t,e){return t?.[e]}(t,e);return function(t){return!(!et(t)||function(t){return!!no&&no in t}(t))&&(Ln(t)?fd:sd).test(Jt(t))}(r)?r:void 0},$n=Wt(lt,"Map"),Vn=Wt(Object,"create"),vd=Object.prototype.hasOwnProperty,yd=Object.prototype.hasOwnProperty;function mn(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}mn.prototype.clear=function(){this.__data__=Vn?Vn(null):{},this.size=0},mn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},mn.prototype.get=function(t){var e=this.__data__;if(Vn){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return vd.call(e,t)?e[t]:void 0},mn.prototype.has=function(t){var e=this.__data__;return Vn?void 0!==e[t]:yd.call(e,t)},mn.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Vn&&void 0===e?"__lodash_hash_undefined__":e,this};var eo=mn,_e=function(t,e){var r=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?r["string"==typeof e?"string":"hash"]:r.map};function _n(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}_n.prototype.clear=function(){this.size=0,this.__data__={hash:new eo,map:new($n||me),string:new eo}},_n.prototype.delete=function(t){var e=_e(this,t).delete(t);return this.size-=e?1:0,e},_n.prototype.get=function(t){return _e(this,t).get(t)},_n.prototype.has=function(t){return _e(this,t).has(t)},_n.prototype.set=function(t,e){var r=_e(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this};var ve=_n;function vn(t){var e=this.__data__=new me(t);this.size=e.size}vn.prototype.clear=function(){this.__data__=new me,this.size=0},vn.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},vn.prototype.get=function(t){return this.__data__.get(t)},vn.prototype.has=function(t){return this.__data__.has(t)},vn.prototype.set=function(t,e){var r=this.__data__;if(r instanceof me){var i=r.__data__;if(!$n||i.length<199)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new ve(i)}return r.set(t,e),this.size=r.size,this};var Zn=vn,hr=function(t,e){for(var r=-1,i=null==t?0:t.length;++r<i&&!1!==e(t[r],r,t););return t},Ze=function(){try{var t=Wt(Object,"defineProperty");return t({},"",{}),t}catch{}}(),ye=function(t,e,r){"__proto__"==e&&Ze?Ze(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r},Nd=Object.prototype.hasOwnProperty,Ae=function(t,e,r){var i=t[e];Nd.call(t,e)&&pn(i,r)&&(void 0!==r||e in t)||ye(t,e,r)},Hn=function(t,e,r,i){var o=!r;r||(r={});for(var a=-1,u=e.length;++a<u;){var s=e[a],c=i?i(r[s],t[s],s,r,t):void 0;void 0===c&&(c=t[s]),o?ye(r,s,c):Ae(r,s,c)}return r},ft=function(t){return null!=t&&"object"==typeof t},ro=function(t){return ft(t)&&"[object Arguments]"==Ot(t)},io=Object.prototype,kd=io.hasOwnProperty,Sd=io.propertyIsEnumerable,yn=ro(function(){return arguments}())?ro:function(t){return ft(t)&&kd.call(t,"callee")&&!Sd.call(t,"callee")},H=Array.isArray,Dd=function(){return!1},Xt=sr(function(t,e){var r=e&&!e.nodeType&&e,i=r&&t&&!t.nodeType&&t,o=i&&i.exports===r?lt.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||Dd}),Md=/^(?:0|[1-9]\d*)$/,Te=function(t,e){var r=typeof t;return!!(e=e??9007199254740991)&&("number"==r||"symbol"!=r&&Md.test(t))&&t>-1&&t%1==0&&t<e},dr=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},V={};
1V["[object Float32Array]"]=V["[object Float64Array]"]=V["[object Int8Array]"]=V["[object Int16Array]"]=V["[object Int32Array]"]=V["[object Uint8Array]"]=V["[object Uint8ClampedArray]"]=V["[object Uint16Array]"]=V["[object Uint32Array]"]=!0,V["[object Arguments]"]=V["[object Array]"]=V["[object ArrayBuffer]"]=V["[object Boolean]"]=V["[object DataView]"]=V["[object Date]"]=V["[object Error]"]=V["[object Function]"]=V["[object Map]"]=V["[object Number]"]=V["[object Object]"]=V["[object RegExp]"]=V["[object Set]"]=V["[object String]"]=V["[object WeakMap]"]=!1;var be=function(t){return function(e){return t(e)}},An=sr(function(t,e){var r=e&&!e.nodeType&&e,i=r&&t&&!t.nodeType&&t,o=i&&i.exports===r&&Wi.process,a=function(){try{return i&&i.require&&i.require("util").types||o&&o.binding&&o.binding("util")}catch{}}();t.exports=a}),oo=An&&An.isTypedArray,Yn=oo?be(oo):function(t){return ft(t)&&dr(t.length)&&!!V[Ot(t)]},Bd=Object.prototype.hasOwnProperty,ao=function(t,e){var r=H(t),i=!r&&yn(t),o=!r&&!i&&Xt(t),a=!r&&!i&&!o&&Yn(t),u=r||i||o||a,s=u?function(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}(t.length,String):[],c=s.length;
1for(var h in t)!e&&!Bd.call(t,h)||u&&("length"==h||o&&("offset"==h||"parent"==h)||a&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||Te(h,c))||s.push(h);return s},Fd=Object.prototype,we=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Fd)},uo=function(t,e){return function(r){return t(e(r))}},Gd=uo(Object.keys,Object),Id=Object.prototype.hasOwnProperty,lr=function(t){if(!we(t))return Gd(t);var e=[];for(var r in Object(t))Id.call(t,r)&&"constructor"!=r&&e.push(r);return e},Et=function(t){return null!=t&&dr(t.length)&&!Ln(t)},Bt=function(t){return Et(t)?ao(t):lr(t)},Pd=Object.prototype.hasOwnProperty,Kt=function(t){return Et(t)?ao(t,!0):function(t){if(!et(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=we(t),r=[];for(var i in t)("constructor"!=i||!e&&Pd.call(t,i))&&r.push(i);return r}(t)},so=sr(function(t,e){var r=e&&!e.nodeType&&e,i=r&&t&&!t.nodeType&&t,o=i&&i.exports===r?lt.Buffer:void 0,a=o?o.allocUnsafe:void 0;t.exports=function(u,s){if(s)return u.slice();var c=u.length,h=a?a(c):new u.constructor(c);return u.copy(h),h}}),co=function(t,e){var r=-1,i=t.length;for(e||(e=Array(i));++r<i;)e[r]=t[r];return e},ho=function(t,e){for(var r=-1,i=null==t?0:t.length,o=0,a=[];++r<i;){var u=t[r];e(u,r,t)&&(a[o++]=u)}return a},lo=function(){return[]},Vd=Object.prototype.propertyIsEnumerable,fo=Object.getOwnPropertySymbols,fr=fo?function(t){return null==t?[]:(t=Object(t),ho(fo(t),function(e){return Vd.call(t,e)}))}:lo,pr=function(t,e){for(var r=-1,i=e.length,o=t.length;++r<i;)t[o+r]=e[r];return t},Ue=uo(Object.getPrototypeOf,Object),po=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)pr(e,fr(t)),t=Ue(t);return e}:lo,go=function(t,e,r){var i=e(t);return H(t)?i:pr(i,r(t))},gr=function(t){return go(t,Bt,fr)},Qd=function(t){return go(t,Kt,po)},mr=Wt(lt,"DataView"),_r=Wt(lt,"Promise"),Tn=Wt(lt,"Set"),vr=Wt(lt,"WeakMap"),Jd=Jt(mr),Wd=Jt($n),Xd=Jt(_r),Kd=Jt(Tn),tl=Jt(vr),tn=Ot;(mr&&"[object DataView]"!=tn(new mr(new ArrayBuffer(1)))||$n&&"[object Map]"!=tn(new $n)||_r&&"[object Promise]"!=tn(_r.resolve())||Tn&&"[object Set]"!=tn(new Tn)||vr&&"[object WeakMap]"!=tn(new vr))&&(tn=function(t){var e=Ot(t),r="[object Object]"==e?t.constructor:void 0,i=r?Jt(r):"";if(i)switch(i){case Jd:return"[object DataView]";case Wd:return"[object Map]";case Xd:return"[object Promise]";case Kd:return"[object Set]";case tl:return"[object WeakMap]"}return e});var nn=tn,nl=Object.prototype.hasOwnProperty,ze=lt.Uint8Array,Zr=function(t){var e=new t.constructor(t.byteLength);return new ze(e).set(new ze(t)),e},il=/\w*$/,mo=ut?ut.prototype:void 0,_o=mo?mo.valueOf:void 0,vo=function(t,e){var r=e?Zr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)},Zo=Object.create,yo=function(){function t(){}return function(e){if(!et(e))return{};if(Zo)return Zo(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),Ao=function(t){return"function"!=typeof t.constructor||we(t)?{}:yo(Ue(t))},To=An&&An.isMap,cl=To?be(To):function(t){return ft(t)&&"[object Map]"==nn(t)},bo=An&&An.isSet,dl=bo?be(bo):function(t){return ft(t)&&"[object Set]"==nn(t)},L={};L["[object Arguments]"]=L["[object Array]"]=L["[object ArrayBuffer]"]=L["[object DataView]"]=L["[object Boolean]"]=L["[object Date]"]=L["[object Float32Array]"]=L["[object Float64Array]"]=L["[object Int8Array]"]=L["[object Int16Array]"]=L["[object Int32Array]"]=L["[object Map]"]=L["[object Number]"]=L["[object Object]"]=L["[object RegExp]"]=L["[object Set]"]=L["[object String]"]=L["[object Symbol]"]=L["[object Uint8Array]"]=L["[object Uint8ClampedArray]"]=L["[object Uint16Array]"]=L["[object Uint32Array]"]=!0,L["[object Error]"]=L["[object Function]"]=L["[object WeakMap]"]=!1;var wo=function t(e,r,i,o,a,u){var s,c=1&r,h=2&r,d=4&r;if(i&&(s=a?i(e,o,a,u):i(e)),void 0!==s)return s;if(!et(e))return e;var l=H(e);if(l){if(s=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&nl.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(e),!c)return co(e,s)}else{var f=nn(e),g="[object Function]"==f||"[object GeneratorFunction]"==f;if(Xt(e))return so(e,c);if("[object Object]"==f||"[object Arguments]"==f||g&&!a){if(s=h||g?{}:Ao(e),!c)return h?function(t,e){return Hn(t,po(t),e)}(e,function(t,e){return t&&Hn(e,Kt(e),t)}(s,e)):function(t,e){return Hn(t,fr(t),e)}(e,function(t,e){return t&&Hn(e,Bt(e),t)}(s,e))}else{if(!L[f])return a?e:{};s=function(t,e,r){var i=t.constructor;switch(e){case"[object ArrayBuffer]":return Zr(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return function(t,e){var r=e?Zr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);
1case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return vo(t,r);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,il.exec(t));return e.lastIndex=t.lastIndex,e}(t);case"[object Symbol]":return function(t){return _o?Object(_o.call(t)):{}}(t)}}(e,f,c)}}u||(u=new Zn);var _=u.get(e);if(_)return _;u.set(e,s),dl(e)?e.forEach(function(y){s.add(t(y,r,i,y,e,u))}):cl(e)&&e.forEach(function(y,Z){s.set(Z,t(y,r,i,Z,e,u))});var m=l?void 0:(d?h?Qd:gr:h?Kt:Bt)(e);return hr(m||e,function(y,Z){m&&(y=e[Z=y]),Ae(s,Z,t(y,r,i,Z,e,u))}),s},yr=function(t){return function(){return t}},Ar=function(e,r,i){for(var o=-1,a=Object(e),u=i(e),s=u.length;s--;){var c=u[++o];if(!1===r(a[c],c,a))break}return e},Tr=function(t,e){return t&&Ar(t,e,Bt)},xe=function(t,e){return function(r,i){if(null==r)return r;if(!Et(r))return t(r,i);for(var o=r.length,a=-1,u=Object(r);++a<o&&!1!==i(u[a],a,u););return r}}(Tr),en=function(t){return t},Uo=function(t){return"function"==typeof t?t:en},zo=function(t,e){return(H(t)?hr:xe)(t,Uo(e))},xo=zo,fl=function(t,e){var r=[];return xe(t,function(i,o,a){e(i,o,a)&&r.push(i)}),r};function Ee(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new ve;++e<r;)this.add(t[e])}Ee.prototype.add=Ee.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Ee.prototype.has=function(t){return this.__data__.has(t)};var Eo=Ee,ml=function(t,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(t[r],r,t))return!0;return!1},qo=function(t,e){return t.has(e)},No=function(t,e,r,i,o,a){var u=1&r,s=t.length,c=e.length;if(s!=c&&!(u&&c>s))return!1;var h=a.get(t),d=a.get(e);if(h&&d)return h==e&&d==t;var l=-1,f=!0,g=2&r?new Eo:void 0;for(a.set(t,e),a.set(e,t);++l<s;){var _=t[l],m=e[l];if(i)var y=u?i(m,_,l,e,t,a):i(_,m,l,t,e,a);if(void 0!==y){if(y)continue;f=!1;break}if(g){if(!ml(e,function(Z,w){if(!qo(g,w)&&(_===Z||o(_,Z,r,i,a)))return g.push(w)})){f=!1;break}}else if(_!==m&&!o(_,m,r,i,a)){f=!1;break}}return a.delete(t),a.delete(e),f},_l=function(t){var e=-1,r=Array(t.size);return t.forEach(function(i,o){r[++e]=[o,i]}),r},br=function(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r},Co=ut?ut.prototype:void 0,wr=Co?Co.valueOf:void 0,Zl=Object.prototype.hasOwnProperty,ko=Object.prototype.hasOwnProperty,So=function t(e,r,i,o,a){return e===r||(null==e||null==r||!ft(e)&&!ft(r)?e!=e&&r!=r:function(t,e,r,i,o,a){var u=H(t),s=H(e),c=u?"[object Array]":nn(t),h=s?"[object Array]":nn(e),d="[object Object]"==(c="[object Arguments]"==c?"[object Object]":c),l="[object Object]"==(h="[object Arguments]"==h?"[object Object]":h),f=c==h;if(f&&Xt(t)){if(!Xt(e))return!1;u=!0,d=!1}if(f&&!d)return a||(a=new Zn),u||Yn(t)?No(t,e,r,i,o,a):function(t,e,r,i,o,a,u){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!a(new ze(t),new ze(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return pn(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=_l;case"[object Set]":if(s||(s=br),t.size!=e.size&&!(1&i))return!1;var h=u.get(t);if(h)return h==e;i|=2,u.set(t,e);var d=No(s(t),s(e),i,o,a,u);return u.delete(t),d;case"[object Symbol]":if(wr)return wr.call(t)==wr.call(e)}return!1}(t,e,c,r,i,o,a);if(!(1&r)){var g=d&&ko.call(t,"__wrapped__"),_=l&&ko.call(e,"__wrapped__");
1if(g||_){var m=g?t.value():t,y=_?e.value():e;return a||(a=new Zn),o(m,y,r,i,a)}}return!!f&&(a||(a=new Zn),function(t,e,r,i,o,a){var u=1&r,s=gr(t),c=s.length;if(c!=gr(e).length&&!u)return!1;for(var h=c;h--;){var d=s[h];if(!(u?d in e:Zl.call(e,d)))return!1}var l=a.get(t),f=a.get(e);if(l&&f)return l==e&&f==t;var g=!0;a.set(t,e),a.set(e,t);for(var _=u;++h<c;){var m=t[d=s[h]],y=e[d];if(i)var Z=u?i(y,m,d,e,t,a):i(m,y,d,t,e,a);if(!(void 0===Z?m===y||o(m,y,r,i,a):Z)){g=!1;break}_||(_="constructor"==d)}if(g&&!_){var w=t.constructor,C=e.constructor;w==C||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof C&&C instanceof C||(g=!1)}return a.delete(t),a.delete(e),g}(t,e,r,i,o,a))}(e,r,i,o,t,a))},Do=function(t){return t==t&&!et(t)},Mo=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}},rn=function(t){return"symbol"==typeof t||ft(t)&&"[object Symbol]"==Ot(t)},Ul=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zl=/^\w*$/,Ur=function(t,e){if(H(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!rn(t))||zl.test(t)||!Ul.test(t)||null!=e&&t in Object(e)};function zr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var i=arguments,o=e?e.apply(this,i):i[0],a=r.cache;if(a.has(o))return a.get(o);var u=t.apply(this,i);return r.cache=a.set(o,u)||a,u};return r.cache=new(zr.Cache||ve),r}zr.Cache=ve;var ke,e,r,El=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ql=/\\(\\)?/g,Nl=(e=zr(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(El,function(r,i,o,a){e.push(o?a.replace(ql,"$1"):i||r)}),e},function(i){return 500===r.size&&r.clear(),i}),r=e.cache,e),bn=function(t,e){for(var r=-1,i=null==t?0:t.length,o=Array(i);++r<i;)o[r]=e(t[r],r,t);return o},Oo=ut?ut.prototype:void 0,Bo=Oo?Oo.toString:void 0,Cl=function t(e){if("string"==typeof e)return e;if(H(e))return bn(e,t)+"";if(rn(e))return Bo?Bo.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r},Fo=function(t){return null==t?"":Cl(t)},qe=function(t,e){return H(t)?t:Ur(t,e)?[t]:Nl(Fo(t))},Qn=function(t){if("string"==typeof t||rn(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},Ne=function(t,e){for(var r=0,i=(e=qe(e,t)).length;null!=t&&r<i;)t=t[Qn(e[r++])];return r&&r==i?t:void 0},Sl=function(t,e){return null!=t&&e in Object(t)},Go=function(t,e,r){for(var i=-1,o=(e=qe(e,t)).length,a=!1;++i<o;){var u=Qn(e[i]);if(!(a=null!=t&&r(t,u)))break;t=t[u]}return a||++i!=o?a:!!(o=null==t?0:t.length)&&dr(o)&&Te(u,o)&&(H(t)||yn(t))},Io=function(t,e){return null!=t&&Go(t,e,Sl)},Ro=function(t){return function(e){return e?.[t]}},qt=function(t){return"function"==typeof t?t:null==t?en:"object"==typeof t?H(t)?function(t,e){return Ur(t)&&Do(e)?Mo(Qn(t),e):function(r){var i=function(t,e,r){var i=null==t?void 0:Ne(t,e);return void 0===i?void 0:i}(r,t);return void 0===i&&i===e?Io(r,t):So(e,i,3)}}(t[0],t[1]):function(t){var e=function(t){for(var e=Bt(t),r=e.length;r--;){var i=e[r],o=t[i];e[r]=[i,o,Do(o)]}return e}(t);return 1==e.length&&e[0][2]?Mo(e[0][0],e[0][1]):function(r){return r===t||function(t,e,r,i){var o=r.length,a=o;if(null==t)return!a;for(t=Object(t);o--;){var s=r[o];if(s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++o<a;){var c=(s=r[o])[0],h=t[c],d=s[1];if(s[2]){if(void 0===h&&!(c in t))return!1}else{var f,l=new Zn;if(!(void 0===f?So(d,h,3,i,l):f))return!1}}return!0}(r,0,e)}}(t):function(t){return Ur(t)?Ro(Qn(t)):function(t){return function(e){return Ne(e,t)}}(t)}(t)},jo=function(t,e){return(H(t)?ho:fl)(t,qt(e))},Bl=Object.prototype.hasOwnProperty,Fl=function(t,e){return null!=t&&Bl.call(t,e)},Po=function(t,e){return null!=t&&Go(t,e,Fl)},Gl=Object.prototype.hasOwnProperty,Lo=function(t){return void 0===t},$o=function(t,e){var r=-1,i=Et(t)?Array(t.length):[];return xe(t,function(o,a,u){i[++r]=e(o,a,u)}),i},Vo=function(t,e){return(H(t)?bn:$o)(t,qt(e))},Rl=function(t,e,r,i){var o=-1,a=null==t?0:t.length;for(i&&a&&(r=t[++o]);++o<a;)r=e(r,t[o],o,t);return r},jl=function(t,e,r,i,o){return o(t,function(a,u,s){r=i?(i=!1,a):e(r,a,u,s)}),r},Ho=function(t,e,r){var i=H(t)?Rl:jl,o=arguments.length<3;return i(t,qt(e),r,o,xe)},Ll=Ro("length"),$l=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),xr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Er="\\ud83c[\\udffb-\\udfff]",Yo="[^\\ud800-\\udfff]",Qo="(?:\\ud83c[\\udde6-\\uddff]){2}",Jo="[\\ud800-\\udbff][\\udc00-\\udfff]",Wo="(?:"+xr+"|"+Er+")?",Yl="[\\ufe0e\\ufe0f]?"+Wo+"(?:\\u200d(?:"+[Yo,Qo,Jo].join("|")+")[\\ufe0e\\ufe0f]?"+Wo+")*",Ql="(?:"+[Yo+xr+"?",xr,Qo,Jo,"[\\ud800-\\udfff]"].join("|")+")",Xo=RegExp(Er+"(?="+Er+")|"+Ql+Yl,"g"),Ko=ut?ut.isConcatSpreadable:void 0,tf=function(t){return H(t)||yn(t)||!!(Ko&&t&&t[Ko])},qr=function t(e,r,i,o,a){var u=-1,s=e.length;for(i||(i=tf),a||(a=[]);++u<s;){var c=e[u];r>0&&i(c)?r>1?t(c,r-1,i,o,a):pr(a,c):o||(a[a.length]=c)}return a},ta=Math.max,na=function(t,e,r){return e=ta(void 0===e?t.length-1:e,0),function(){for(var i=arguments,o=-1,a=ta(i.length-e,0),u=Array(a);++o<a;)u[o]=i[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=i[o];return s[e]=r(u),function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(t,this,s)}},ef=Ze?function(t,e){return Ze(t,"toString",{configurable:!0,enumerable:!1,value:yr(e),writable:!0})}:en,rf=Date.now,ea=function(t){var e=0,r=0;return function(){var i=rf(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(ef),Ce=function(t,e){return ea(na(t,e,en),t+"")},ra=function(t,e,r,i){for(var o=t.length,a=r+(i?1:-1);i?a--:++a<o;)if(e(t[a],a,t))return a;return-1},of=function(t){return t!=t},sf=function(t,e){return!(null==t||!t.length)&&function(t,e,r){return e==e?function(t,e,r){for(var i=-1,o=t.length;++i<o;)if(t[i]===e)return i;return-1}(t,e):ra(t,of,0)}(t,e)>-1},df=Tn&&1/br(new Tn([,-0]))[1]==1/0?function(t){return new Tn(t)}:function(){},ia=function(t){return ft(t)&&Et(t)},ff=Ce(function(t){return function(t,e,r){var i=-1,o=sf,a=t.length,u=!0,s=[],c=s;if(a>=200){var h=df(t);if(h)return br(h);u=!1,o=qo,c=new Eo}else c=s;t:for(;++i<a;){var d=t[i],l=d;if(d=0!==d?d:0,u&&l==l){for(var f=c.length;f--;)if(c[f]===l)continue t;s.push(d)}else o(c,l,r)||(c!==s&&c.push(l),s.push(d))}return s}(qr(t,1,ia,!0))}),oa=function(t){return null==t?[]:function(t,e){return bn(e,function(r){return t[r]})}(t,Bt(t))};try{ke={clone:function(t){return wo(t,4)},constant:yr,each:xo,filter:jo,has:Po,isArray:H,isEmpty:function(t){if(null==t)return!0;
1if(Et(t)&&(H(t)||"string"==typeof t||"function"==typeof t.splice||Xt(t)||Yn(t)||yn(t)))return!t.length;var e=nn(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(we(t))return!lr(t).length;for(var r in t)if(Gl.call(t,r))return!1;return!0},isFunction:Ln,isUndefined:Lo,keys:Bt,map:Vo,reduce:Ho,size:function(t){if(null==t)return 0;if(Et(t))return function(t){return"string"==typeof t||!H(t)&&ft(t)&&"[object String]"==Ot(t)}(t)?function(t){return function(t){return $l.test(t)}(t)?function(t){for(var e=Xo.lastIndex=0;Xo.test(t);)++e;return e}(t):Ll(t)}(t):t.length;var e=nn(t);return"[object Map]"==e||"[object Set]"==e?t.size:lr(t).length},transform:function(t,e,r){var i=H(t),o=i||Xt(t)||Yn(t);if(e=qt(e),null==r){var a=t&&t.constructor;r=o?i?new a:[]:et(t)&&Ln(a)?yo(Ue(t)):{}}return(o?hr:Tr)(t,function(u,s,c){return e(r,u,s,c)}),r},union:ff,values:oa}}catch{}ke||(ke=window._);var T=ke,Nr=D;function D(t){this._isDirected=!T.has(t,"directed")||t.directed,this._isMultigraph=!!T.has(t,"multigraph")&&t.multigraph,this._isCompound=!!T.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=T.constant(void 0),this._defaultEdgeLabelFn=T.constant(void 0),this._nodes={}
vendor: 6,218 bytes, line 1
1,this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function aa(t,e){t[e]?t[e]++:t[e]=1}function ua(t,e){--t[e]||delete t[e]}function Jn(t,e,r,i){var o=""+e,a=""+r;if(!t&&o>a){var u=o;o=a,a=u}return o+"\x01"+a+"\x01"+(T.isUndefined(i)?"\0":i)}function Cr(t,e){return Jn(t,e.v,e.w,e.name)}D.prototype._nodeCount=0,D.prototype._edgeCount=0,D.prototype.isDirected=function(){return this._isDirected},D.prototype.isMultigraph=function(){return this._isMultigraph},D.prototype.isCompound=function(){return this._isCompound},D.prototype.setGraph=function(t){return this._label=t,this},D.prototype.graph=function(){return this._label},D.prototype.setDefaultNodeLabel=function(t){return T.isFunction(t)||(t=T.constant(t)),this._defaultNodeLabelFn=t,this},D.prototype.nodeCount=function(){return this._nodeCount},D.prototype.nodes=function(){return T.keys(this._nodes)},D.prototype.sources=function(){var t=this;return T.filter(this.nodes(),function(e){return T.isEmpty(t._in[e])})},D.prototype.sinks=function(){var t=this;return T.filter(this.nodes(),function(e){return T.isEmpty(t._out[e])})},D.prototype.setNodes=function(t,e){var r=arguments,i=this;return T.each(t,function(o){r.length>1?i.setNode(o,e):i.setNode(o)}),this},D.prototype.setNode=function(t,e){return T.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},D.prototype.node=function(t){return this._nodes[t]},D.prototype.hasNode=function(t){return T.has(this._nodes,t)},D.prototype.removeNode=function(t){var e=this;if(T.has(this._nodes,t)){var r=function(i){e.removeEdge(e._edgeObjs[i])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],T.each(this.children(t),function(i){e.setParent(i)}),delete this._children[t]),T.each(T.keys(this._in[t]),r),delete this._in[t],delete this._preds[t],T.each(T.keys(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},D.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(T.isUndefined(e))e="\0";else{for(var r=e+="";!T.isUndefined(r);r=this.parent(r))if(r===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},D.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},D.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},D.prototype.children=function(t){if(T.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return T.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},D.prototype.predecessors=function(t){var e=this._preds[t];if(e)return T.keys(e)},D.prototype.successors=function(t){var e=this._sucs[t];if(e)return T.keys(e)},D.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return T.union(e,this.successors(t))},D.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},D.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;T.each(this._nodes,function(a,u){t(u)&&e.setNode(u,a)}),T.each(this._edgeObjs,function(a){e.hasNode(a.v)&&e.hasNode(a.w)&&e.setEdge(a,r.edge(a))});var i={};function o(a){var u=r.parent(a);return void 0===u||e.hasNode(u)?(i[a]=u,u):u in i?i[u]:o(u)}return this._isCompound&&T.each(e.nodes(),function(a){e.setParent(a,o(a))}),e},D.prototype.setDefaultEdgeLabel=function(t){return T.isFunction(t)||(t=T.constant(t)),this._defaultEdgeLabelFn=t,this},D.prototype.edgeCount=function(){return this._edgeCount},D.prototype.edges=function(){return T.values(this._edgeObjs)},D.prototype.setPath=function(t,e){var r=this,i=arguments;return T.reduce(t,function(o,a){return i.length>1?r.setEdge(o,a,e):r.setEdge(o,a),a}),this},D.prototype.setEdge=function(){var t,e,r,i,o=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,r=a.name,2===arguments.length&&(i=arguments[1],o=!0)):(t=a,e=arguments[1],r=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),t=""+t,e=""+e,T.isUndefined(r)||(r=""+r);var u=Jn(this._isDirected,t,e,r);if(T.has(this._edgeLabels,u))return o&&(this._edgeLabels[u]=i),this;if(!T.isUndefined(r)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[u]=o?i:this._defaultEdgeLabelFn(t,e,r);var s=function gf(t,e,r,i){var o=""+e,a=""+r;if(!t&&o>a){var u=o;o=a,a=u}var s={v:o,w:a};return i&&(s.name=i),s}(this._isDirected,t,e,r);return t=s.v,e=s.w,Object.freeze(s),this._edgeObjs[u]=s,aa(this._preds[e],t),aa(this._sucs[t],e),this._in[e][u]=s,this._out[t][u]=s,this._edgeCount++,this},D.prototype.edge=function(t,e,r){var i=1===arguments.length?Cr(this._isDirected,arguments[0]):Jn(this._isDirected,t,e,r);return this._edgeLabels[i]},D.prototype.hasEdge=function(t,e,r){var i=1===arguments.length?Cr(this._isDirected,arguments[0]):Jn(this._isDirected,t,e,r);return T.has(this._edgeLabels,i)},D.prototype.removeEdge=function(t,e,r){var i=1===arguments.length?Cr(this._isDirected,arguments[0]):Jn(this._isDirected,t,e,r),o=this._edgeObjs[i];return o&&(t=o.v,e=o.w,delete this._edgeLabels[i],delete this._edgeObjs[i],ua(this._preds[e],t),ua(this._sucs[t],e),delete this._in[e][i],delete this._out[t][i],this._edgeCount--),this},D.prototype.inEdges=function(t,e){var r=this._in[t];if(r){var i=T.values(r);return e?T.filter(i,function(o){return o.v===e}):i}},D.prototype.outEdges=function(t,e){var r=this._out[t];if(r){var i=T.values(r);return e?T.filter(i,function(o){return o.w===e}):i}},D.prototype.nodeEdges=function(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))};
1var sa={Graph:Nr,version:"2.1.8"},mf={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:_f(t),edges:vf(t)};return T.isUndefined(t.graph())||(e.value=T.clone(t.graph())),e},read:function(t){var e=new Nr(t.options).setGraph(t.value);return T.each(t.nodes,function(r){e.setNode(r.v,r.value),r.parent&&e.setParent(r.v,r.parent)}),T.each(t.edges,function(r){e.setEdge({v:r.v,w:r.w,name:r.name},r.value)}),e}};function _f(t){return T.map(t.nodes(),function(e){var r=t.node(e),i=t.parent(e),o={v:e};return T.isUndefined(r)||(o.value=r),T.isUndefined(i)||(o.parent=i),o})}function vf(t){return T.map(t.edges(),function(e){var r=t.edge(e),i={v:e.v,w:e.w};return T.isUndefined(e.name)||(i.name=e.name),T.isUndefined(r)||(i.value=r),i})}var ca=st;function st(){this._arr=[],this._keyIndices={}}st.prototype.size=function(){return this._arr.length},st.prototype.keys=function(){return this._arr.map(function(t){return t.key})},st.prototype.has=function(t){return T.has(this._keyIndices,t)},st.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},st.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},st.prototype.add=function(t,e){var r=this._keyIndices;if(t=String(t),!T.has(r,t)){var i=this._arr,o=i.length;return r[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},st.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},st.prototype.decrease=function(t,e){var r=this._keyIndices[t];if(e>this._arr[r].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[r].priority+" New: "+e);this._arr[r].priority=e,this._decrease(r)},st.prototype._heapify=function(t){var e=this._arr,r=2*t,i=r+1,o=t;r<e.length&&(o=e[r].priority<e[o].priority?r:o,i<e.length&&(o=e[i].priority<e[o].priority?i:o),o!==t&&(this._swap(t,o),this._heapify(o)
1))},st.prototype._decrease=function(t){for(var e,r=this._arr,i=r[t].priority;0!==t&&!(r[e=t>>1].priority<i);)this._swap(t,e),t=e},st.prototype._swap=function(t,e){var r=this._arr,i=this._keyIndices,o=r[t],a=r[e];r[t]=a,r[e]=o,i[a.key]=t,i[o.key]=e};var ha=function(t,e,r,i){return function(o,a,u,s){var c,h,d={},l=new ca,f=function(g){var _=g.v!==c?g.v:g.w,m=d[_],y=u(g),Z=h.distance+y;if(y<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+g+" Weight: "+y);Z<m.distance&&(m.distance=Z,m.predecessor=c,l.decrease(_,Z))};for(o.nodes().forEach(function(g){var _=g===a?0:Number.POSITIVE_INFINITY;d[g]={distance:_},l.add(g,_)});l.size()>0&&(c=l.removeMin(),(h=d[c]).distance!==Number.POSITIVE_INFINITY);)s(c).forEach(f);return d}(t,String(e),r||yf,i||function(o){return t.outEdges(o)})},yf=T.constant(1),da=function(t){var e=0,r=[],i={},o=[];function a(u){var s=i[u]={onStack:!0,lowlink:e,index:e++};if(r.push(u),t.successors(u).forEach(function(d){T.has(i,d)?i[d].onStack&&(s.lowlink=Math.min(s.lowlink,i[d].index)):(a(d),s.lowlink=Math.min(s.lowlink,i[d].lowlink))}),s.lowlink===s.index){var c,h=[];do{c=r.pop(),i[c].onStack=!1,h.push(c)}while(u!==c);o.push(h)}}return t.nodes().forEach(function(u){T.has(i,u)||a(u)}),o},wf=T.constant(1),kr=la;function la(t){var e={},r={},i=[];if(T.each(t.sinks(),function o(a){if(T.has(r,a))throw new Se;T.has(e,a)||(r[a]=!0,e[a]=!0,T.each(t.predecessors(a),o),delete r[a],i.push(a))}),T.size(e)!==t.nodeCount())throw new Se;return i}function Se(){}la.CycleException=Se,Se.prototype=new Error;var fa=function(t,e,r){T.isArray(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),o=[],a={};return T.each(e,function(u){if(!t.hasNode(u))throw new Error("Graph does not have node: "+u);pa(t,u,"post"===r,a,i,o)}),o};function pa(t,e,r,i,o,a){T.has(i,e)||(i[e]=!0,r||a.push(e),T.each(o(e),function(u){pa(t,u,r,i,o,a)}),r&&a.push(e))}var De,Uf={Graph:sa.Graph,json:mf,alg:{components:function(t){var e,r={},i=[];function o(a){T.has(r,a)||(r[a]=!0,e.push(a),T.each(t.successors(a),o),T.each(t.predecessors(a),o))}return T.each(t.nodes(),function(a){e=[],o(a),e.length&&i.push(e)}),i},dijkstra:ha,dijkstraAll:function(t,e,r){return T.transform(t.nodes(),function(i,o){i[o]=ha(t,o,e,r)},{})},findCycles:function(t){return T.filter(da(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})},floydWarshall:function(t,e,r){return o=e||wf,a=r||function(i){return t.outEdges(i)},u={},(s=t.nodes()).forEach(function(c){u[c]={},u[c][c]={distance:0},s.forEach(function(h){c!==h&&(u[c][h]={distance:Number.POSITIVE_INFINITY})}),a(c).forEach(function(h){var d=h.v===c?h.w:h.v,l=o(h);u[c][d]={distance:l,predecessor:c}})}),s.forEach(function(c){var h=u[c];s.forEach(function(d){var l=u[d];s.forEach(function(f){var _=h[f],m=l[f],y=l[c].distance+_.distance;y<m.distance&&(m.distance=y,m.predecessor=_.predecessor)})})}),u;var o,a,u,s},isAcyclic:function(t){try{kr(t)}catch(e){if(e instanceof kr.CycleException)return!1;throw e}return!0},postorder:function(t,e){return fa(t,e,"post")},preorder:function(t,e){return fa(t,e,"pre")},prim:function(t,e){var r,i=new Nr,o={},a=new ca;function u(c){var h=c.v===r?c.w:c.v,d=a.priority(h);if(void 0!==d){var l=e(c);l<d&&(o[h]=r,a.decrease(h,l))}}if(0===t.nodeCount())return i;T.each(t.nodes(),function(c){a.add(c,Number.POSITIVE_INFINITY),i.setNode(c)}),a.decrease(t.nodes()[0],0);for(var s=!1;a.size()>0;){if(r=a.removeMin(),T.has(o,r))i.setEdge(r,o[r]);else{if(s)throw new Error("Input graph is not connected: "+t);s=!0}t.nodeEdges(r).forEach(u)}return i},tarjan:da,topsort:kr},version:sa.version};try{De=Uf}catch{}De||(De=window.graphlib);var Oe,pt=De,Wn=function(t,e,r){if(!et(r))return!1;var i=typeof e;return!!("number"==i?Et(r)&&Te(e,r.length):"string"==i&&e in r)&&pn(r[e],t)},ga=Object.prototype,xf=ga.hasOwnProperty,Ef=Ce(function(t,e){t=Object(t);var r=-1,i=e.length,o=i>2?e[2]:void 0;for(o&&Wn(e[0],e[1],o)&&(i=1);++r<i;)for(var a=e[r],u=Kt(a),s=-1,c=u.length;++s<c;){var h=u[s],d=t[h];(void 0===d||pn(d,ga[h])&&!xf.call(t,h))&&(t[h]=a[h])}return t}),Nf=/^\s+|\s+$/g,Cf=/^[-+]0x[0-9a-f]+$/i,kf=/^0b[01]+$/i,Sf=/^0o[0-7]+$/i,Df=parseInt,Me=function(t){return t?(t=function(t){if("number"==typeof t)return t;if(rn(t))return NaN;if(et(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=et(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Nf,"");var r=kf.test(t);return r||Sf.test(t)?Df(t.slice(2),r?2:8):Cf.test(t)?NaN:+t}(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},Bf=Math.max,Ff=function(e,r,i){var o=Object(e);
1if(!Et(e)){var a=qt(r);e=Bt(e),r=function(s){return a(o[s],s,o)}}var u=function(t,e,r){var i=null==t?0:t.length;if(!i)return-1;var o=null==r?0:function(t){var e=Me(t),r=e%1;return e==e?r?e-r:e:0}(r);return o<0&&(o=Bf(i+o,0)),ra(t,qt(e),o)}(e,r,i);return u>-1?o[a?e[u]:u]:void 0},ma=function(t){return null!=t&&t.length?qr(t,1):[]},Sr=function(t,e,r){for(var i=-1,o=t.length;++i<o;){var a=t[i],u=e(a);if(null!=u&&(void 0===s?u==u&&!rn(u):r(u,s)))var s=u,c=a}return c},jf=function(t,e){return t>e},Dr=function(t,e,r){(void 0!==r&&!pn(t[e],r)||void 0===r&&!(e in t))&&ye(t,e,r)},_a=Function.prototype.toString,Vf=Object.prototype.hasOwnProperty,Hf=_a.call(Object),Mr=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},Wf=function t(e,r,i,o,a){e!==r&&Ar(r,function(u,s){if(a||(a=new Zn),et(u))!function(t,e,r,i,o,a,u){var s=Mr(t,r),c=Mr(e,r),h=u.get(c);if(h)Dr(t,r,h);else{var d=a?a(s,c,r+"",t,e,u):void 0,l=void 0===d;if(l){var f=H(c),g=!f&&Xt(c),_=!f&&!g&&Yn(c);d=c,f||g||_?H(s)?d=s:ia(s)?d=co(s):g?(l=!1,d=so(c,!0)):_?(l=!1,d=vo(c,!0)):d=[]:function(t){if(!ft(t)||"[object Object]"!=Ot(t))return!1;var e=Ue(t);if(null===e)return!0;var r=Vf.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&_a.call(r)==Hf}(c)||yn(c)?(d=s,yn(s)?d=function(t){return Hn(t,Kt(t))}(s):et(s)&&!Ln(s)||(d=Ao(c))):l=!1}l&&(u.set(c,d),o(d,c,i,a,u),u.delete(c)),Dr(t,r,d)}}(e,r,s,i,t,o,a);else{var c=o?o(Mr(e,s),u,s+"",e,r,a):void 0;void 0===c&&(c=u),Dr(e,s,c)}},Kt)},Xf=function(t){return Ce(function(e,r){var i=-1,o=r.length,a=o>1?r[o-1]:void 0,u=o>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,u&&Wn(r[0],r[1],u)&&(a=o<3?void 0:a,o=1),e=Object(e);++i<o;){var s=r[i];s&&t(e,s,i)}return e})}(function(t,e,r){Wf(t,e,r)}),va=function(t,e){return t<e},ep=function(t,e,r,i){if(!et(t))return t;for(var o=-1,a=(e=qe(e,t)).length,u=a-1,s=t;null!=s&&++o<a;){var c=Qn(e[o]),h=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=u){var d=s[c];void 0===(h=i?i(d,c,s):void 0)&&(h=et(d)?d:Te(e[o+1])?[]:{})}Ae(s,c,h),s=s[c]}return t},op=function(t){return ea(na(t,void 0,ma),t+"")}(function(t,e){return null==t?{}:function(t,e){return function(t,e,r){for(var i=-1,o=e.length,a={};++i<o;){var u=e[i],s=Ne(t,u);r(0,u)&&ep(a,qe(u,t),s)}return a}(t,e,function(r,i){return Io(t,i)})}(t,e)}),ap=Math.ceil,up=Math.max,dp=function(t,e){if(t!==e){var r=void 0!==t,i=null===t,o=t==t,a=rn(t),u=void 0!==e,s=null===e,c=e==e,h=rn(e);if(!s&&!h&&!a&&t>e||a&&u&&c&&!s&&!h||i&&u&&c||!r&&c||!o)return 1;if(!i&&!a&&!h&&t<e||h&&r&&o&&!i&&!a||s&&r&&o||!u&&o||!c)return-1}return 0},pp=Ce(function(t,e){if(null==t)return[];var r=e.length;return r>1&&Wn(t,e[0],e[1])?e=[]:r>2&&Wn(e[0],e[1],e[2])&&(e=[e[0]]),function(t,e,r){e=e.length?bn(e,function(a){return H(a)?function(u){return Ne(u,1===a.length?a[0]:a)}:a}):[en];var i=-1;return e=bn(e,be(qt)),function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}($o(t,function(a,u,s){return{criteria:bn(e,function(c){return c(a)}),index:++i,value:a}}),function(a,u){return function(t,e,r){for(var i=-1,o=t.criteria,a=e.criteria,u=o.length,s=r.length;++i<u;){var c=dp(o[i],a[i]);if(c)return i>=s?c:c*("desc"==r[i]?-1:1)}return t.index-e.index}(a,u,r)})}(t,qr(e,1),[])}),gp=0;try{Oe={cloneDeep:function(t){return wo(t,5)},constant:yr,defaults:Ef,each:xo,filter:jo,find:Ff,flatten:ma,forEach:zo,forIn:function(t,e){return null==t?t:Ar(t,Uo(e),Kt)},has:Po,isUndefined:Lo,last:function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},map:Vo,mapValues:function(t,e){var r={};return e=qt(e),Tr(t,function(i,o,a){ye(r,o,e(i,o,a))}),r},max:function(t){return t&&t.length?Sr(t,en,jf):void 0},merge:Xf,min:function(t){return t&&t.length?Sr(t,en,va):void 0},minBy:function(t,e){return t&&t.length?Sr(t,qt(e),va):void 0},now:function(){return lt.Date.now()},pick:op,range:function(e,r,i){return i&&"number"!=typeof i&&Wn(e,r,i)&&(r=i=void 0),e=Me(e),void 0===r?(r=e,e=0):r=Me(r),function(t,e,r,i){for(var o=-1,a=up(ap((e-t)/(r||1)),0),u=Array(a);a--;)u[++o]=t,t+=r;return u}(e,r,i=void 0===i?e<r?1:-1:Me(i))},reduce:Ho,sortBy:pp,uniqueId:function(t){var e=++gp;return Fo(t)+e},values:oa,zipObject:function(t,e){return function(t,e,r){for(var i=-1,o=t.length,a=e.length,u={};++i<o;)r(u,t[i],i<a?e[i]:void 0);return u}(t||[],e||[],Ae)}}}catch{}Oe||(Oe=window._);var p=Oe,Zp=Be;function Be(){var t={};t._next=t._prev=t,this._sentinel=t}function Za(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function yp(t,e){if("_next"!==t&&"_prev"!==t)return e}Be.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return Za(e),e},Be.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&Za(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},Be.prototype.toString=function(){for(var t=[],e=this._sentinel,r=e._prev;r!==e;)t.push(JSON.stringify(r,yp)),r=r._prev;return"["+t.join(", ")+"]"};var Ap=pt.Graph,bp=p.constant(1);function Or(t,e,r,i,o){var a=o?[]:void 0;return p.forEach(t.inEdges(i.v),function(u){var s=t.edge(u),c=t.node(u.v);o&&a.push({v:u.v,w:u.w}),c.out-=s,Br(e,r,c)}),p.forEach(t.outEdges(i.v),function(u){var s=t.edge(u),h=t.node(u.w);h.in-=s,Br(e,r,h)}),t.removeNode(i.v),a}function Br(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}var Aa=pt.Graph,W={addDummyNode:Ta,simplify:function(t){var e=(new Aa).setGraph(t.graph());return p.forEach(t.nodes(),function(r){e.setNode(r,t.node(r))}),p.forEach(t.edges(),function(r){var i=e.edge(r.v,r.w)||{weight:0,minlen:1},o=t.edge(r);e.setEdge(r.v,r.w,{weight:i.weight+o.weight,minlen:Math.max(i.minlen,o.minlen)})}),e}
1,asNonCompoundGraph:function(t){var e=new Aa({multigraph:t.isMultigraph()}).setGraph(t.graph());return p.forEach(t.nodes(),function(r){t.children(r).length||e.setNode(r,t.node(r))}),p.forEach(t.edges(),function(r){e.setEdge(r,t.edge(r))}),e},successorWeights:function(t){var e=p.map(t.nodes(),function(r){var i={};return p.forEach(t.outEdges(r),function(o){i[o.w]=(i[o.w]||0)+t.edge(o).weight}),i});return p.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=p.map(t.nodes(),function(r){var i={};return p.forEach(t.inEdges(r),function(o){i[o.v]=(i[o.v]||0)+t.edge(o).weight}),i});return p.zipObject(t.nodes(),e)},intersectRect:function(t,e){var r,i,o=t.x,a=t.y,u=e.x-o,s=e.y-a,c=t.width/2,h=t.height/2;if(!u&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*c>Math.abs(u)*h?(s<0&&(h=-h),r=h*u/s,i=h):(u<0&&(c=-c),r=c,i=c*s/u),{x:o+r,y:a+i}},buildLayerMatrix:function(t){var e=p.map(p.range(ba(t)+1),function(){return[]});return p.forEach(t.nodes(),function(r){var i=t.node(r),o=i.rank;p.isUndefined(o)||(e[o][i.order]=r)}),e},normalizeRanks:function(t){var e=p.min(p.map(t.nodes(),function(r){return t.node(r).rank}));p.forEach(t.nodes(),function(r){var i=t.node(r);p.has(i,"rank")&&(i.rank-=e)})},removeEmptyRanks:function(t){var e=p.min(p.map(t.nodes(),function(a){return t.node(a).rank})),r=[];p.forEach(t.nodes(),function(a){var u=t.node(a).rank-e;r[u]||(r[u]=[]),r[u].push(a)});var i=0,o=t.graph().nodeRankFactor;p.forEach(r,function(a,u){p.isUndefined(a)&&u%o!=0?--i:i&&p.forEach(a,function(s){t.node(s).rank+=i})})},addBorderNode:function(t,e,r,i){var o={width:0,height:0};return arguments.length>=4&&(o.rank=r,o.order=i),Ta(t,"border",o,e)},maxRank:ba,partition:function(t,e){var r={lhs:[],rhs:[]};return p.forEach(t,function(i){e(i)?r.lhs.push(i):r.rhs.push(i)}),r},time:function(t,e){var r=p.now();try{return e()}finally{console.log(t+" time: "+(p.now()-r)+"ms")}},notime:function(t,e){return e()}};function Ta(t,e,r,i){var o;do{o=p.uniqueId(i)}while(t.hasNode(o));return r.dummy=e,t.setNode(o,r),o}function ba(t){return p.max(p.map(t.nodes(),function(e){var r=t.node(e).rank;if(!p.isUndefined(r))return r}))}var Ua=function(t){var e={};p.forEach(t.sources(),function r(i){var o=t.node(i);if(p.has(e,i))return o.rank;e[i]=!0;var a=p.min(p.map(t.outEdges(i),function(u){return r(u.w)-t.edge(u).minlen}));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),o.rank=a})},za=function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen},wp=pt.Graph,Fe=za,xa=function(t){var e,r,i=new wp({directed:!1}),o=t.nodes()[0],a=t.nodeCount();for(i.setNode(o,{});Up(i,t)<a;)e=zp(i,t),r=i.hasNode(e.v)?Fe(t,e):-Fe(t,e),xp(i,t,r);return i};function Up(t,e){return p.forEach(t.nodes(),function r(i){p.forEach(e.nodeEdges(i),function(o){var a=o.v,u=i===a?o.w:a;t.hasNode(u)||Fe(e,o)||(t.setNode(u,{}),t.setEdge(i,u,{}),r(u))})}),t.nodeCount()}function zp(t,e){return p.minBy(e.edges(),function(r){if(t.hasNode(r.v)!==t.hasNode(r.w))return Fe(e,r)})}function xp(t,e,r){p.forEach(t.nodes(),function(i){e.node(i).rank+=r})}var Ep=za,qp=Ua,Np=pt.alg.preorder,Cp=pt.alg.postorder,kp=W.simplify,Sp=on;function on(t){t=kp(t),qp(t);var e,r=xa(t);for(Gr(r),Fr(r,t);e=Na(r);)ka(r,t,e,Ca(r,t,e))}function Fr(t,e){var r=Cp(t,t.nodes());r=r.slice(0,r.length-1),p.forEach(r,function(i){var o,a,u,s;a=e,s=(o=t).node(u=i).parent,o.edge(u,s).cutvalue=Ea(o,a,u)})}function Ea(t,e,r){var i=t.node(r).parent,o=!0,a=e.edge(r,i),u=0;return a||(o=!1,a=e.edge(i,r)),u=a.weight,p.forEach(e.nodeEdges(r),function(s){var d=s.v===r,l=d?s.w:s.v;if(l!==i){var f=d===o,g=e.edge(s).weight;if(u+=f?g:-g,t.hasEdge(r,l)){var _=t.edge(r,l).cutvalue;u+=f?-_:_}}}),u}function Gr(t,e){arguments.length<2&&(e=t.nodes()[0]),qa(t,{},1,e)}function qa(t,e,r,i,o){var a=r,u=t.node(i);return e[i]=!0,p.forEach(t.neighbors(i),function(s){p.has(e,s)||(r=qa(t,e,r,s,i))}),u.low=a,u.lim=r++,o?u.parent=o:delete u.parent,r}function Na(t){return p.find(t.edges(),function(e){return t.edge(e).cutvalue<0})}function Ca(t,e,r){var i=r.v,o=r.w;e.hasEdge(i,o)||(i=r.w,o=r.v);var a=t.node(i),u=t.node(o),s=a,c=!1;a.lim>u.lim&&(s=u,c=!0);var h=p.filter(e.edges(),function(d){return c===Sa(0,t.node(d.v),s)&&c!==Sa(0,t.node(d.w),s)});return p.minBy(h,function(d){return Ep(e,d)})}function ka(t,e,r,i){var u,s,c,h;t.removeEdge(r.v,r.w),t.setEdge(i.v,i.w,{}),Gr(t),Fr(t,e),s=e,c=p.find((u=t).nodes(),function(d){return!s.node(d
1).parent}),h=(h=Np(u,c)).slice(1),p.forEach(h,function(d){var l=u.node(d).parent,f=s.edge(d,l),g=!1;f||(f=s.edge(l,d),g=!0),s.node(d).rank=s.node(l).rank+(g?f.minlen:-f.minlen)})}function Sa(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}on.initLowLimValues=Gr,on.initCutValues=Fr,on.calcCutValue=Ea,on.leaveEdge=Na,on.enterEdge=Ca,on.exchangeEdges=ka;var Da=Ua,Mp=Da;var Oa_run=function(t){var e=W.addDummyNode(t,"root",{},"_root"),r=function(u){var s={};function c(h,d){var l=u.children(h);l&&l.length&&p.forEach(l,function(f){c(f,d+1)}),s[h]=d}return p.forEach(u.children(),function(h){c(h,1)}),s}(t),i=p.max(p.values(r))-1,o=2*i+1;t.graph().nestingRoot=e,p.forEach(t.edges(),function(u){t.edge(u).minlen*=o});var u,a=p.reduce((u=t).edges(),function(s,c){return s+u.edge(c).weight},0)+1;p.forEach(t.children(),function(u){Ba(t,e,o,a,i,r,u)}),t.graph().nodeRankFactor=o};function Ba(t,e,r,i,o,a,u){var s=t.children(u);if(s.length){var c=W.addBorderNode(t,"_bt"),h=W.addBorderNode(t,"_bb"),d=t.node(u);t.setParent(c,u),d.borderTop=c,t.setParent(h,u),d.borderBottom=h,p.forEach(s,function(l){Ba(t,e,r,i,o,a,l);var f=t.node(l),g=f.borderTop?f.borderTop:l,_=f.borderBottom?f.borderBottom:l,m=f.borderTop?i:2*i,y=g!==_?1:o-a[u]+1;
1t.setEdge(c,g,{weight:m,minlen:y,nestingEdge:!0}),t.setEdge(_,h,{weight:m,minlen:y,nestingEdge:!0})}),t.parent(u)||t.setEdge(e,c,{weight:0,minlen:o+a[u]})}else u!==e&&t.setEdge(e,u,{weight:0,minlen:r})}function Fa(t,e,r,i,o,a){var s=o[e][a-1],c=W.addDummyNode(t,"border",{width:0,height:0,rank:a,borderType:e},r);o[e][a]=c,t.setParent(c,i),s&&t.setEdge(s,c,{weight:1})}function Ia(t){p.forEach(t.nodes(),function(e){Ra(t.node(e))}),p.forEach(t.edges(),function(e){Ra(t.edge(e))})}function Ra(t){var e=t.width;t.width=t.height,t.height=e}function Ir(t){t.y=-t.y}function Rr(t){var e=t.x;t.x=t.y,t.y=e}var Gp=function(t,e){for(var r=0,i=1;i<e.length;++i)r+=Ip(t,e[i-1],e[i]);return r};function Ip(t,e,r){for(var i=p.zipObject(r,p.map(r,function(h,d){return d})),o=p.flatten(p.map(e,function(h){return p.sortBy(p.map(t.outEdges(h),function(d){return{pos:i[d.w],weight:t.edge(d).weight}}),"pos")}),!0),a=1;a<r.length;)a<<=1;var u=2*a-1;a-=1;var s=p.map(new Array(u),function(){return 0}),c=0;return p.forEach(o.forEach(function(h){var d=h.pos+a;s[d]+=h.weight;for(var l=0;d>0;)d%2&&(l+=s[d+1]),s[d=d-1>>1]+=h.weight;c+=h.weight*l})),c}function ja(t,e,r){for(var i;e.length&&(i=p.last(e)).i<=r;)e.pop(),t.push(i.vs),r++;return r}var Lp=function t(e,r,i,o){var a=e.children(r),u=e.node(r),s=u?u.borderLeft:void 0,c=u?u.borderRight:void 0,h={};s&&(a=p.filter(a,function(m){return m!==s&&m!==c}));var d=function(t,e){return p.map(e,function(r){var i=t.inEdges(r);if(i.length){var o=p.reduce(i,function(a,u){var s=t.edge(u),c=t.node(u.v);return{sum:a.sum+s.weight*c.order,weight:a.weight+s.weight}},{sum:0,weight:0});return{v:r,barycenter:o.sum/o.weight,weight:o.weight}}return{v:r}})}(e,a);p.forEach(d,function(m){if(e.children(m.v).length){var y=t(e,m.v,i,o);h[m.v]=y,p.has(y,"barycenter")&&(w=y,p.isUndefined((Z=m).barycenter)?(Z.barycenter=w.barycenter,Z.weight=w.weight):(Z.barycenter=(Z.barycenter*Z.weight+w.barycenter*w.weight)/(Z.weight+w.weight),Z.weight+=w.weight))}var Z,w});var y,l=function(t,e){var r={};return p.forEach(t,function(i,o){var a=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};p.isUndefined(i.barycenter)||(a.barycenter=i.barycenter,a.weight=i.weight)}),p.forEach(e.edges(),function(i){var o=r[i.v],a=r[i.w];p.isUndefined(o)||p.isUndefined(a)||(a.indegree++,o.out.push(r[i.w]))}),function(i){var o=[];function a(c){return function(h){var d,l,f,g;h.merged||(p.isUndefined(h.barycenter)||p.isUndefined(c.barycenter)||h.barycenter>=c.barycenter)&&(f=0,g=0,(d=c).weight&&(f+=d.barycenter*d.weight,g+=d.weight),(l=h).weight&&(f+=l.barycenter*l.weight,g+=l.weight),d.vs=l.vs.concat(d.vs),d.barycenter=f/g,d.weight=g,d.i=Math.min(l.i,d.i),l.merged=!0)}}function u(c){return function(h){h.in.push(c),0==--h.indegree&&i.push(h)}}for(;i.length;){var s=i.pop();o.push(s),p.forEach(s.in.reverse(),a(s)),p.forEach(s.out,u(s))}return p.map(p.filter(o,function(c){return!c.merged}),function(c){return p.pick(c,["vs","i","barycenter","weight"])})}(p.filter(r,function(i){return!i.indegree}))}(d,i);y=h,p.forEach(l,function(Z){Z.vs=p.flatten(Z.vs.map(function(w){return y[w]?y[w].vs:w}),!0)});var f=function(t,e){var r=W.partition(t,function(l){return p.has(l,"barycenter")}),i=r.lhs,o=p.sortBy(r.rhs,function(l){return-l.i}),a=[],u=0,s=0,c=0;i.sort((h=!!e,function(l,f){return l.barycenter<f.barycenter?-1:l.barycenter>f.barycenter?1:h?f.i-l.i:l.i-f.i})),c=ja(a,o,c),p.forEach(i,function(l){c+=l.vs.length,a.push(l.vs),u+=l.barycenter*l.weight,s+=l.weight,c=ja(a,o,c)});var h,d={vs:p.flatten(a,!0)};return s&&(d.barycenter=u/s,d.weight=s),d}(l,o);if(s&&(f.vs=p.flatten([s,f.vs,c],!0),e.predecessors(s).length)){var g=e.node(e.predecessors(s)[0]),_=e.node(e.predecessors(c)[0]);p.has(f,"barycenter")||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+g.order+_.order)/(f.weight+2),f.weight+=2}return f},$p=pt.Graph,Yp=pt.Graph;function Pa(t,e,r){return p.map(e,function(i){return function(t,e,r){var i=function(a){for(var u;a.hasNode(u=p.uniqueId("_root")););return u}(t),o=new $p({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(function(a){return t.node(a)});return p.forEach(t.nodes(),function(a){var u=t.node(a),s=t.parent(a);(u.rank===e||u.minRank<=e&&e<=u.maxRank)&&(o.setNode(a),o.setParent(a,s||i),p.forEach(t[r](a),function(c){var h=c.v===a?c.w:c.v,d=o.edge(h,a),l=p.isUndefined(d)?0:d.weight;o.setEdge(h,a,{weight:t.edge(c).weight+l})}),p.has(u,"minRank")&&o.setNode(a,{borderLeft:u.borderLeft[e],borderRight:u.borderRight[e]}))}),o}(t,i,r)})}function Jp(t,e){var r=new Yp;p.forEach(t,function(i){var o=i.graph().root,a=Lp(i,o,r,e);p.forEach(a.vs,function(u,s){i.node(u).order=s}),function(t,e,r){var i,o={};p.forEach(r,function(a){for(var u,s,c=t.parent(a);c;){if((u=t.parent(c))?(s=o[u],o[u]=c):(s=i,i=c),s&&s!==c)return void e.setEdge(s,c);c=u}})}(i,r,a.vs)})}function La(t,e){p.forEach(e,function(r){p.forEach(r,function(i,o){t.node(i).order=o})})}var Wp=pt.Graph;function $a(t,e,r){if(e>r){var i=e;e=r,r=i}var o=t[e];o||(t[e]=o={}),o[r]=!0}
1function ng(t,e,r){if(e>r){var i=e;e=r,r=i}return p.has(t[e],r)}var cg=W.normalizeRanks,hg=W.removeEmptyRanks,Ft=W,dg=pt.Graph,fg=["nodesep","edgesep","ranksep","marginx","marginy"],pg={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},gg=["acyclicer","ranker","rankdir","align"],mg=["width","height"],_g={width:0,height:0},vg=["minlen","weight","width","height","labeloffset"],Zg={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},yg=["labelpos"];function jr(t,e){return p.mapValues(p.pick(t,e),Number)}function Pr(t){var e={};return p.forEach(t,function(r,i){e[i.toLowerCase()]=r}),e}var Ag=pt.Graph,Va={graphlib:pt,layout:function(t,e){var r=e&&e.debugTiming?Ft.time:Ft.notime;r("layout",function(){var i=r("  buildLayoutGraph",function(){return o=t,a=new dg({multigraph:!0,compound:!0}),u=Pr(o.graph()),a.setGraph(p.merge({},pg,jr(u,fg),p.pick(u,gg))),p.forEach(o.nodes(),function(s){var c=Pr(o.node(s));a.setNode(s,p.defaults(jr(c,mg),_g)),a.setParent(s,o.parent(s))}),p.forEach(o.edges(),function(s){var c=Pr(o.edge(s));a.setEdge(s,p.merge({},Zg,jr(c,vg),p.pick(c,yg)))}),a;var o,a,u});r("  runLayout",function(){var o,a;o=i,(a=r)("    makeSpaceForEdgeLabels",function(){var u,s;(s=(u=o).graph()).ranksep/=2,p.forEach(u.edges(),function(c){var h=u.edge(c);h.minlen*=2,"c"!==h.labelpos.toLowerCase()&&("TB"===s.rankdir||"BT"===s.rankdir?h.width+=h.labeloffset:h.height+=h.labeloffset)})}),a("    removeSelfEdges",function(){var u;p.forEach((u=o).edges(),function(s){if(s.v===s.w){var c=u.node(s.v);c.selfEdges||(c.selfEdges=[]),c.selfEdges.push({e:s,label:u.edge(s)}),u.removeEdge(s)}})}),a("    acyclic",function(){!function(t){var e="greedy"===t.graph().acyclicer?function(t,e){if(t.nodeCount()<=1)return[];var r=function(o,a){var u=new Ap,s=0,c=0;p.forEach(o.nodes(),function(l){u.setNode(l,{v:l,in:0,out:0})}),p.forEach(o.edges(),function(l){var f=u.edge(l.v,l.w)||0,g=a(l);u.setEdge(l.v,l.w,f+g),c=Math.max(c,u.node(l.v).out+=g),s=Math.max(s,u.node(l.w).in+=g)});var h=p.range(c+s+3).map(function(){return new Zp}),d=s+1;return p.forEach(u.nodes(),function(l){Br(h,d,u.node(l))}),{graph:u,buckets:h,zeroIdx:d}}(t,e||bp),i=function(o,a,u){for(var s,c=[],h=a[a.length-1],d=a[0];o.nodeCount();){for(;s=d.dequeue();)Or(o,a,u,s);for(;s=h.dequeue();)Or(o,a,u,s);if(o.nodeCount())for(var l=a.length-2;l>0;--l)if(s=a[l].dequeue()){c=c.concat(Or(o,a,u,s,!0));break}}return c}(r.graph,r.buckets,r.zeroIdx);return p.flatten(p.map(i,function(o){return t.outEdges(o.v,o.w)}),!0)}(t,function(r){return function(i){return r.edge(i).weight}}(t)):function(r){var i=[],o={},a={};return p.forEach(r.nodes(),function u(s){p.has(a,s)||(a[s]=!0,o[s]=!0,p.forEach(r.outEdges(s),function(c){p.has(o,c.w)?i.push(c):u(c.w)}),delete o[s])}),i}(t);p.forEach(e,function(r){var i=t.edge(r);t.removeEdge(r),i.forwardName=r.name,i.reversed=!0,t.setEdge(r.w,r.v,i,p.uniqueId("rev"))})}(o)}),a("    nestingGraph.run",function(){Oa_run(o)}),a("    rank",function(){!function(t){switch(t.graph().ranker){case"network-simplex":default:!function Ma(t){Sp(t)}(t);break;case"tight-tree":!function(e){Da(e),xa(e)}(t);break;case"longest-path":Mp(t)}}(Ft.asNonCompoundGraph(o))}),a("    injectEdgeLabelProxies",function(){var u;p.forEach((u=o).edges(),function(s){var c=u.edge(s);if(c.width&&c.height){var h=u.node(s.v),d={rank:(u.node(s.w).rank-h.rank)/2+h.rank,e:s};Ft.addDummyNode(u,"edge-proxy",d,"_ep")}})}),a("    removeEmptyRanks",function(){hg(o)}),a("    nestingGraph.cleanup",function(){!function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,p.forEach(t.edges(),function(r){t.edge(r).nestingEdge&&t.removeEdge(r)})}(o)}),a("    normalizeRanks",function(){cg(o)}),a("    assignRankMinMax",function(){var u,s;s=0,p.forEach((u=o).nodes(),function(c){var h=u.node(c);h.borderTop&&(h.minRank=u.node(h.borderTop).rank,h.maxRank=u.node(h.borderBottom).rank,s=p.max(s,h.maxRank))}),u.graph().maxRank=s}),a("    removeEdgeLabelProxies",function(){var u;p.forEach((u=o).nodes(),function(s){var c=u.node(s);"edge-proxy"===c.dummy&&(u.edge(c.e).labelRank=c.rank,u.removeNode(s))})}),a("    normalize.run",function(){!function(t){t.graph().dummyChains=[],p.forEach(t.edges(),function(e){!function(r,i){var o,a,u,s=i.v,c=r.node(s).rank,h=i.w,d=r.
1node(h).rank,l=i.name,f=r.edge(i),g=f.labelRank;if(d!==c+1){for(r.removeEdge(i),u=0,++c;c<d;++u,++c)f.points=[],o=W.addDummyNode(r,"edge",a={width:0,height:0,edgeLabel:f,edgeObj:i,rank:c},"_d"),c===g&&(a.width=f.width,a.height=f.height,a.dummy="edge-label",a.labelpos=f.labelpos),r.setEdge(s,o,{weight:f.weight},l),0===u&&r.graph().dummyChains.push(o),s=o;r.setEdge(s,h,{weight:f.weight},l)}}(t,e)})}(o)}),a("    parentDummyChains",function(){!function(t){var e=function(r){var i={},o=0;return p.forEach(r.children(),function a(u){var s=o;p.forEach(r.children(u),a),i[u]={low:s,lim:o++}}),i}(t);p.forEach(t.graph().dummyChains,function(r){for(var i=t.node(r),o=i.edgeObj,a=function(l,f,g,_){var m,y,Z=[],w=[],C=Math.min(f[g].low,f[_].low),N=Math.max(f[g].lim,f[_].lim);m=g;do{m=l.parent(m),Z.push(m)}while(m&&(f[m].low>C||N>f[m].lim));for(y=m,m=_;(m=l.parent(m))!==y;)w.push(m);return{path:Z.concat(w.reverse()),lca:y}}(t,e,o.v,o.w),u=a.path,s=a.lca,c=0,h=u[c],d=!0;r!==o.w;){if(i=t.node(r),d){for(;(h=u[c])!==s&&t.node(h).maxRank<i.rank;)c++;h===s&&(d=!1)}if(!d){for(;c<u.length-1&&t.node(h=u[c+1]).minRank<=i.rank;)c++;h=u[c]}t.setParent(r,h),r=t.successors(r)[0]}})}(o)}),a("    addBorderSegments",function(){!function(t){p.forEach(t.children(),function e(r){var i=t.children(r),o=t.node(r);if(i.length&&p.forEach(i,e),p.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var a=o.minRank,u=o.maxRank+1;a<u;++a)Fa(t,"borderLeft","_bl",r,o,a),Fa(t,"borderRight","_br",r,o,a)}})}(o)}),a("    order",function(){!function(t){var e=W.maxRank(t),r=Pa(t,p.range(1,e+1),"inEdges"),i=Pa(t,p.range(e-1,-1,-1),"outEdges"),o=function(t){var e={},r=p.filter(t.nodes(),function(s){return!t.children(s).length}),i=p.max(p.map(r,function(s){return t.node(s).rank})),o=p.map(p.range(i+1),function(){return[]}),u=p.sortBy(r,function(s){return t.node(s).rank});return p.forEach(u,function a(s){if(!p.has(e,s)){e[s]=!0;var c=t.node(s);o[c.rank].push(s),p.forEach(t.successors(s),a)}}),o}(t);La(t,o);for(var a,u=Number.POSITIVE_INFINITY,s=0,c=0;c<4;++s,++c){Jp(s%2?r:i,s%4>=2),o=W.buildLayerMatrix(t);var h=Gp(t,o);h<u&&(c=0,a=p.cloneDeep(o),u=h)}La(t,a)}(o)}),a("    insertSelfEdges",function(){var u,s;s=Ft.buildLayerMatrix(u=o),p.forEach(s,function(c){var h=0;p.forEach(c,function(d,l){var f=u.node(d);f.order=l+h,p.forEach(f.selfEdges,function(g){Ft.addDummyNode(u,"selfedge",{width:g.label.width,height:g.label.height,rank:f.rank,order:l+ ++h,e:g.e,label:g.label},"_se")}),delete f.selfEdges})})}),a("    adjustCoordinateSystem",function(){!function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||Ia(t)}(o)}),a("    position",function(){!function(t){(function(e){var r=W.buildLayerMatrix(e),i=e.graph().ranksep,o=0;p.forEach(r,function(a){var u=p.max(p.map(a,function(s){return e.node(s).height}));p.forEach(a,function(s){e.node(s).y=o+u/2}),o+=u+i})})(t=W.asNonCompoundGraph(t)),p.forEach(function(t){var e,r=W.buildLayerMatrix(t),i=p.merge(function Kp(t,e){var r={};return p.reduce(e,function(i,o){var a=0,u=0,s=i.length,c=p.last(o);return p.forEach(o,function(h,d){var l=function(g,_){if(g.node(_).dummy)return p.find(g.predecessors(_),function(m){return g.node(m).dummy})}(t,h),f=l?t.node(l).order:s;(l||h===c)&&(p.forEach(o.slice(u,d+1),function(g){p.forEach(t.predecessors(g),function(_){var m=t.node(_),y=m.order;!(y<a||f<y)||m.dummy&&t.node(g).dummy||$a(r,_,g)})}),u=d+1,a=f)}),o}),r}(t,r),function tg(t,e){var r={};function i(o,a,u,s,c){var h;p.forEach(p.range(a,u),function(d){t.node(h=o[d]).dummy&&p.forEach(t.predecessors(h),function(l){var f=t.node(l);f.dummy&&(f.order<s||f.order>c)&&$a(r,l,h)})})}return p.reduce(e,function(o,a){var u,s=-1,c=0;return p.forEach(a,function(h,d){if("border"===t.node(h).dummy){var l=t.predecessors(h);l.length&&(u=t.node(l[0]).order,i(a,c,d,s,u),c=d,s=u)}i(a,c,a.length,u,o.length)}),a}),r}(t,r)),o={};p.forEach(["u","d"],function(u){e="u"===u?r:p.values(r).reverse(),p.forEach(["l","r"],function(s){"r"===s&&(e=p.map(e,function(l){return p.values(l).reverse()}));var c=("u"===u?t.predecessors:t.successors).bind(t),h=function eg(t,e,r,i){var o={},a={},u={};return p.forEach(e,function(s){p.forEach(s,function(c,h){o[c]=c,a[c]=c,u[c]=h})}),p.forEach(e,function(s){var c=-1;p.forEach(s,function(h){var d=i(h);if(d.length)for(var l=((d=p.sortBy(d,function(m){return u[m]})).length-1)/2,f=Math.floor(l),g=Math.ceil(l);f<=g;++f){var _=d[f];a[h]===h&&c<u[_]&&!ng(r,h,_)&&(a[_]=h,a[h]=o[h]=o[_],c=u[_])}})}),{root:o,align:a}}(0,e,i,c),d=function rg(t,e,r,i,o){var a={},u=function(h,d,l,f){var y,Z,w,g=new Wp,_=h.graph(),m=(y=_.nodesep,Z=_.edgesep,w=f,function(C,N,R){var G,Q=C.node(N),gt
1=C.node(R),ct=0;if(ct+=Q.width/2,p.has(Q,"labelpos"))switch(Q.labelpos.toLowerCase()){case"l":G=-Q.width/2;break;case"r":G=Q.width/2}if(G&&(ct+=w?G:-G),G=0,ct+=(Q.dummy?Z:y)/2,ct+=(gt.dummy?Z:y)/2,ct+=gt.width/2,p.has(gt,"labelpos"))switch(gt.labelpos.toLowerCase()){case"l":G=gt.width/2;break;case"r":G=-gt.width/2}return G&&(ct+=w?G:-G),G=0,ct});return p.forEach(d,function(y){var Z;p.forEach(y,function(w){var C=l[w];if(g.setNode(C),Z){var N=l[Z],R=g.edge(N,C);g.setEdge(N,C,Math.max(m(h,w,Z),R||0))}Z=w})}),g}(t,e,r,o),s=o?"borderLeft":"borderRight";function c(h,d){for(var l=u.nodes(),f=l.pop(),g={};f;)g[f]?h(f):(g[f]=!0,l.push(f),l=l.concat(d(f))),f=l.pop()}return c(function(h){a[h]=u.inEdges(h).reduce(function(d,l){return Math.max(d,a[l.v]+u.edge(l))},0)},u.predecessors.bind(u)),c(function(h){var d=u.outEdges(h).reduce(function(f,g){return Math.min(f,a[g.w]-u.edge(g))},Number.POSITIVE_INFINITY),l=t.node(h);d!==Number.POSITIVE_INFINITY&&l.borderType!==s&&(a[h]=Math.max(a[h],d))},u.successors.bind(u)),p.forEach(i,function(h){a[h]=a[r[h]]}),a}(t,e,h.root,h.align,"r"===s);"r"===s&&(d=p.mapValues(d,function(l){return-l})),o[u+s]=d})});var a=function ig(t,e){return p.minBy(p.values(e),function(r){var i=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return p.forIn(r,function(a,u){var s=t.node(u).width/2;i=Math.max(a+s,i),o=Math.min(a-s,o)}),i-o})}(t,o);return function og(t,e){var r=p.values(e),i=p.min(r),o=p.max(r);p.forEach(["u","d"],function(a){p.forEach(["l","r"],function(u){var s,c=a+u,h=t[c];if(h!==e){var d=p.values(h);(s="l"===u?i-p.min(d):o-p.max(d))&&(t[c]=p.mapValues(h,function(l){return l+s}))}})})}(o,a),function ag(t,e){return p.mapValues(t.ul,function(r,i){if(e)return t[e.toLowerCase()][i];var o=p.sortBy(p.map(t,i));return(o[1]+o[2])/2})}(o,t.graph().align)}(t),function(e,r){t.node(r).x=e})}(o)}),a("    positionSelfEdges",function(){var u;p.forEach((u=o).nodes(),function(s){var c=u.node(s);if("selfedge"===c.dummy){var h=u.node(c.e.v),d=h.x+h.width/2,l=h.y,f=c.x-d,g=h.height/2;u.setEdge(c.e,c.label),u.removeNode(s),c.label.points=[{x:d+2*f/3,y:l-g},{x:d+5*f/6,y:l-g},{x:d+f,y:l},{x:d+5*f/6,y:l+g},{x:d+2*f/3,y:l+g}],c.label.x=c.x,c.label.y=c.y}})}),a("    removeBorderNodes",function(){var u;p.forEach((u=o).nodes(),function(s){if(u.children(s).length){var c=u.node(s),h=u.node(c.borderTop),d=u.node(c.borderBottom),l=u.node(p.last(c.borderLeft)),f=u.node(p.last(c.borderRight));c.width=Math.abs(f.x-l.x),c.height=Math.abs(d.y-h.y),c.x=l.x+c.width/2,c.y=h.y+c.height/2}}),p.forEach(u.nodes(),function(s){"border"===u.node(s).dummy&&u.removeNode(s)})}),a("    normalize.undo",function(){!function(t){p.forEach(t.graph().dummyChains,function(e){var r,i=t.node(e),o=i.edgeLabel;for(t.setEdge(i.edgeObj,o);i.dummy;)r=t.successors(e)[0],t.removeNode(e),o.points.push({x:i.x,y:i.y}),"edge-label"===i.dummy&&(o.x=i.x,o.y=i.y,o.width=i.width,o.height=i.height),i=t.node(e=r)})}(o)}),a("    fixupEdgeLabelCoords",function(){var u;p.forEach((u=o).edges(),function(s){var c=u.edge(s);if(p.has(c,"x"))switch("l"!==c.labelpos&&"r"!==c.labelpos||(c.width-=c.labeloffset),c.labelpos){case"l":c.x-=c.width/2+c.labeloffset;break;case"r":c.x+=c.width/2+c.labeloffset}})}),a("    undoCoordinateSystem",function(){!function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(r){p.forEach(r.nodes(),function(i){Ir(r.node(i))}),p.forEach(r.edges(),function(i){var o=r.edge(i);p.forEach(o.points,Ir),p.has(o,"y")&&Ir(o)})}(t),"lr"!==e&&"rl"!==e||(function(r){p.forEach(r.nodes(),function(i){Rr(r.node(i))}),p.forEach(r.edges(),function(i){var o=r.edge(i);p.forEach(o.points,Rr),p.has(o,"x")&&Rr(o)})}(t),Ia(t))}(o)}),a("    translateGraph",function(){!function(u){var s=Number.POSITIVE_INFINITY,c=0,h=Number.POSITIVE_INFINITY,d=0,l=u.graph(),f=l.marginx||0,g=l.marginy||0;function _(m){var y=m.x,Z=m.y,w=m.width,C=m.height;s=Math.min(s,y-w/2),c=Math.max(c,y+w/2),h=Math.min(h,Z-C/2),d=Math.max(d,Z+C/2)}p.forEach(u.nodes(),function(m){_(u.node(m))}),p.forEach(u.edges(),function(m){var y=u.edge(m);p.has(y,"x")&&_(y)}),s-=f,h-=g,p.forEach(u.nodes(),function(m){var y=u.node(m);y.x-=s,y.y-=h}),p.forEach(u.edges(),function(m){var y=u.edge(m);p.forEach(y.points,function(Z){Z.x-=s,Z.y-=h}),p.has(y,"x")&&(y.x-=s),p.has(y,"y")&&(y.y-=h)}),l.width=c-s+f,l.height=d-h+g}(o)}),a("    assignNodeIntersects",function(){var u;p.forEach((u=o).edges(),function(s){var c,h,d=u.edge(s),l=u.node(s.v),f=u.node(s.w);d.points?(c=d.points[0],h=d.points[d.points.length-1]):(d.points=[],c=f,h=l),d.points.unshift(Ft.intersectRect(l,c)),d.points.push(Ft.intersectRect(f,h))})}),a("    reversePoints",function(){var u;p.forEach((u=o).edges(),function(s){var c=u.edge(s);c.reversed&&c.points.reverse()})}
1),a("    acyclic.undo",function(){!function(t){p.forEach(t.edges(),function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var i=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,i)}})}(o)})}),r("  updateInputGraph",function(){var o,a;a=i,p.forEach((o=t).nodes(),function(u){var s=o.node(u),c=a.node(u);s&&(s.x=c.x,s.y=c.y,a.children(u).length&&(s.width=c.width,s.height=c.height))}),p.forEach(o.edges(),function(u){var s=o.edge(u),c=a.edge(u);s.points=c.points,p.has(c,"x")&&(s.x=c.x,s.y=c.y)}),o.graph().width=a.graph().width,o.graph().height=a.graph().height})})},debug:{debugOrdering:function(t){var e=W.buildLayerMatrix(t),r=new Ag({compound:!0,multigraph:!0}).setGraph({});return p.forEach(t.nodes(),function(i){r.setNode(i,{label:i}),r.setParent(i,"layer"+t.node(i).rank)}),p.forEach(t.edges(),function(i){r.setEdge(i.v,i.w,{},i.name)}),p.forEach(e,function(i,o){r.setNode("layer"+o,{rank:"same"}),p.reduce(i,function(u,s){return r.setEdge(u,s,{style:"invis"}),s})}),r}},util:{time:W.time,notime:W.notime},version:"0.8.5"},Tg=Va.graphlib,bg=Va.layout;class wg{constructor(e){this.cardinality=1,this.include=fn.UNSPECIFIED,this.isGroupNode=!1,this.parentNode=null,this.type=nt.NODE,this.name=e.name,this.attr=e.attr||{},this.inputs=e.inputs,this.path=e.path||[],this.width=e.width,this.height=e.height}}class Ug{constructor(){this.nodes={},this.edges=[]}}class xg{constructor(e,r={}){this.attr=null,this.bridgeGraph=null,this.cardinality=0,this.depth=1,this.include=fn.UNSPECIFIED,this.isGroupNode=!0,this.parentNode=null,this.type=nt.META,this.name=e,this.metaGraph=Lr(e,jn.META,r)}getFirstChild(){return this.metaGraph.node(this.metaGraph.nodes()[0])}getChildren(){return this.metaGraph.nodes().map(e=>this.metaGraph.node(e))}getRootNode(){let e=this.name.split("/");return this.metaGraph.node(this.name+"/("+e[e.length-1]+")")}leaves(){let e,r=[],i=[this];for(;i.length;){let o=i.shift();o.isGroupNode?(e=o.metaGraph,e.nodes().forEach(a=>i.push(e.node(a)))):r.push(o.name)}return r}}class Eg{constructor(e,r){this.v=e,this.w=r,this.baseEdgeList=[],this.inbound=null,this.name=null}addBaseEdge(e,r){this.baseEdgeList.push(e)}}function Ha(t,e={}){return new xg(t,e)}function Ya(t,e){return new Eg(t,e)}function Lr(t,e,r){const i=r||{},o=new Tg.Graph(i);return o.setGraph({name:t,rankdir:i.rankdir||"BT",type:e}),o}function Qa(t){return`\u25ec${t}\u25ec`}const Ja=Qa("ROOT"),qg=Qa("BRIDGE_GRAPH"),wn={graph:{meta:{nodeSep:50,rankSep:50,edgeSep:5,align:void 0}},subScene:{meta:{paddingTop:20,paddingBottom:20,paddingLeft:20,paddingRight:20,labelHeight:20}},nodeSize:{meta:{width:100,maxLabelWidth:0,height:20},node:{width:80,height:20,labelOffset:10,maxLabelWidth:40},bridge:{width:5,height:5,radius:2,labelOffset:0}}};class Ng{constructor(e={}){this.graphOptions=e,this.index={},this.graphOptions.compound=!0,this.root=Ha(Ja,this.graphOptions),this.index[Ja]=this.root}getNodeMap(){return this.index}node(e){return this.index[e]}setNode(e,r){this.index[e]=r}getBridgeGraph(e){const r=this.index[e];if(!r)throw Error("Could not find node in hierarchy: "+e);if(!("metaGraph"in r))return null;const i=r;if(i.bridgeGraph)return i.bridgeGraph;const o=Lr(qg,jn.BRIDGE,this.graphOptions);if(i.bridgeGraph=o,!r.parentNode||!("metaGraph"in r.parentNode))return o;const a=r.parentNode;return[a.metaGraph,this.getBridgeGraph(a.name)].forEach(u=>{u.edges().filter(s=>s.v===e||s.w===e).forEach(s=>{const c=s.w===e;u.edge(s).baseEdgeList.forEach(h=>{const[d,l]=c?[h.w,s.v]:[h.v,s.w],f=this.getChildName(e,d),g={v:c?l:f,w:c?f:l};let _=o.edge(g);_||(_=Ya(g.v,g.w),_.inbound=c,o.setEdge(g.v,g.w,_)),_.addBaseEdge(h,this)})})}),o}getChildName(e,r){let i=this.index[r];for(;i;){if(i.parentNode&&i.parentNode.name===e)return i.name;i=i.parentNode}throw Error("Could not find immediate child for descendant: "+r)}getPredecessors(e){const r=this.index[e];if(!r)throw Error("Could not find node with name: "+e);return this.getOneWayEdges(r,!0)}getSuccessors(e){const r=this.index[e];if(!r)throw Error("Could not find node with name: "+e);return this.getOneWayEdges(r,!1)}getOneWayEdges(e,r){const i=[];if(!e.parentNode||!e.parentNode.isGroupNode)return i;const o=e.parentNode,a=o.metaGraph,u=this.getBridgeGraph(o.name);return Wa(a,e,r,i),Wa(u,e,r,i),i}}function Wa(t,e,r,i){(r?t.inEdges(e.name):t.outEdges(e.name)).forEac
1h(o=>{const a=t.edge(o);i.push(a)})}class kg{constructor(e){this.hierarchy=e,this.index={},this.hasSubHierarchy={},this.root=new Ka(this.hierarchy.root,this.hierarchy.graphOptions),this.index[e.root.name]=this.root,this.buildSubHierarchy(e.root.name),this.root.expanded=!0}getRenderInfoNodes(){return Object.values(this.index)}getSubHierarchy(){return this.hasSubHierarchy}buildSubHierarchy(e){if(e in this.hasSubHierarchy)return;this.hasSubHierarchy[e]=!0;const r=this.index[e];if(r.node.type!==nt.META)return;const i=r,o=i.node.metaGraph,a=i.coreGraph;o.nodes().forEach(d=>{const l=this.getOrCreateRenderNodeByName(d);a.setNode(d,l)}),o.edges().forEach(d=>{const l=o.edge(d),f=new Xa(l);a.setEdge(d.v,d.w,f)});const u=i.node.parentNode;if(!u)return;const s=this.getRenderNodeByName(u.name),c=(d,...l)=>l.concat([d?"IN":"OUT"]).join("~~"),h=this.hierarchy.getBridgeGraph(e);h.edges().forEach(d=>{o.node(d.w)}),h.edges().forEach(d=>{const l=h.edge(d),f=!!o.node(d.w),[g,_]=f?[d.w,d.v]:[d.v,d.w],m=R=>s.coreGraph.edge(f?{v:R,w:e}:{v:e,w:R});let y=m(_);y||(y=m(c(f,_,u.name)));const Z=c(f,e),w=c(f,_,e);let C=a.node(w);if(!C){let R=a.node(Z);R||(R=new Ge({name:Z,type:nt.BRIDGE,isGroupNode:!1,cardinality:0,parentNode:null,include:fn.UNSPECIFIED,inbound:f,attr:{}}),this.index[Z]=R,a.setNode(Z,R)),C=new Ge({name:w,type:nt.BRIDGE,isGroupNode:!1,cardinality:1,parentNode:null,include:fn.UNSPECIFIED,inbound:f,attr:{}}),this.index[w]=C,a.setNode(w,C),a.setParent(w,Z),R.node.cardinality++}const N=new Xa(l);N.adjoiningMetaEdge=y,f?a.setEdge(w,g,N):a.setEdge(g,w,N)}),[!0,!1].forEach(d=>{const l=c(d,e);a.node(l)&&a.nodes().forEach(f=>{a.node(f).node.type!==nt.BRIDGE&&(d?a.predecessors(f):a.successors(f))})})}getOrCreateRenderNodeByName(e){if(!e)return null;if(e in this.index)return this.index[e];const r=this.getNodeByName(e);return r?(this.index[e]=r.isGroupNode?new Ka(r,this.hierarchy.graphOptions):new Ge(r),this.index[e]):null}getRenderNodeByName(e){return this.index[e]}getNodeByName(e){return this.hierarchy.node(e)}}class Ge{constructor(e){this.node=e,this.expanded=!1,this.x=0,this.y=0,this.coreBox={width:0,height:0},this.outboxWidth=0,this.labelOffset=0,this.radius=0,this.labelHeight=0,this.paddingTop=0,this.paddingLeft=0,this.paddingRight=0,this.paddingBottom=0,this.width=e.width||0,this.height=e.height||0,this.displayName=e.name,this.attr=e.attr}}class Xa{constructor(e){this.metaEdge=e,this.adjoiningMetaEdge=null,this.weight=1,this.points=[],this.startMarkerId=null,this.endMarkerId=null}}class Ka extends Ge{constructor(e,r){super(e);const i=e.metaGraph.graph();r.compound=!0,this.coreGraph=Lr(i.name,jn.CORE,r)}}function tu(t,e=wn){t.node.isGroupNode&&function(r,i){r.coreGraph.nodes().map(o=>r.coreGraph.node(o)).forEach(o=>{const{height:a,width:u}=o;switch(o.node.type){case nt.NODE:Object.assign(o,i.nodeSize.node),o.height=a||i.nodeSize.node.height,o.width=u||i.nodeSize.node.width;break;case nt.BRIDGE:Object.assign(o,i.nodeSize.bridge);break;case nt.META:o.expanded?tu(o,i):(Object.assign(o,i.nodeSize.meta),o.height=i.nodeSize.meta.height,o.width=i.nodeSize.meta.width);break;default:throw Error("Unrecognized node type: "+o.node.type)}var s;o.expanded||((s=o).coreBox.width=s.width,s.coreBox.height=s.height,s.width=Math.max(s.coreBox.width,3*`${s.displayName}`.length))})}(t,e),t.node.type===nt.META&&function(r,i){const o=i.subScene.meta;Object.assign(r,o),Object.assign(r.coreBox,function(s,c){Object.assign(s.graph(),{nodesep:c.nodeSep,ranksep:c.rankSep,edgesep:c.edgeSep,align:c.align});const h=[];if(s.nodes().forEach(_=>{s.node(_).node.type!==nt.BRIDGE&&h.push(_)}),!h.length)return{width:0,height:0};bg(s);let d=1/0,l=1/0,f=-1/0,g=-1/0;return h.forEach(_=>{const m=s.node(_),y=.5*m.width,Z=m.x-y,w=m.x+y;d=Z<d?Z:d,f=w>f?w:f;const C=.5*m.height,N=m.y-C,R=m.y+C;l=N<l?N:l,g=R>g?R:g}
1),s.edges().forEach(_=>{const m=s.edge(_),y=s.node(m.metaEdge.v),Z=s.node(m.metaEdge.w);if(3===m.points.length&&function(N){let R=nu(N[0],N[1]);for(let G=1;G<N.length-1;G++){const Q=nu(N[G],N[G+1]);if(Math.abs(Q-R)>1)return!1;R=Q}return!0}(m.points)){if(null!=y){const N=y.expanded?y.x:$r(y);m.points[0].x=N}if(null!=Z){const N=Z.expanded?Z.x:$r(Z);m.points[2].x=N}m.points=[m.points[0],m.points[1]]}null!=Z&&(m.points[m.points.length-1]=eu(m.points[m.points.length-2],Z)),null!=y&&(m.points[0]=eu(m.points[1],y)),m.points.forEach(N=>{d=N.x<d?N.x:d,f=N.x>f?N.x:f,l=N.y<l?N.y:l,g=N.y>g?N.y:g})}),s.nodes().forEach(_=>{const m=s.node(_);m.x-=d,m.y-=l}),s.edges().forEach(_=>{s.edge(_).points.forEach(m=>{m.x-=d,m.y-=l})}),{width:f-d,height:g-l}}(r.coreGraph,i.graph.meta));let a=0;r.coreGraph.nodeCount()>0&&a++;const u=a<=1?0:a;r.coreBox.width+=u+u,r.coreBox.height=o.labelHeight+r.coreBox.height,r.width=r.coreBox.width+o.paddingLeft+o.paddingRight,r.height=r.paddingTop+r.coreBox.height+r.paddingBottom}(t,e)}function nu(t,e){return 180*Math.atan((e.y-t.y)/(e.x-t.x))/Math.PI}function $r(t){return t.expanded?t.x:t.x-t.width/2+0+t.coreBox.width/2}function eu(t,e){const r=e.expanded?e.x:$r(e),i=e.y,o=t.x-r,a=t.y-i;let u,s,c=e.expanded?e.width:e.coreBox.width,h=e.expanded?e.height:e.coreBox.height;return Math.abs(a)*c/2>Math.abs(o)*h/2?(a<0&&(h=-h),u=0===a?0:h/2*o/a,s=h/2):(o<0&&(c=-c),u=c/2,s=0===o?0:c/2*a/o),{x:r+u,y:i+s}}function Sg(t,e,r){const i=t.nodes.filter((s,c,h)=>h.findIndex(d=>d.id===s.id)!==c).map(s=>s.id);if(i.length)throw new Error(`Duplicated ids found: ${i.join(", ")}`);const o=function(s){const c={nodes:[]},h=Object.keys(s.compound||{}),d=new Map,l=(g,_=[])=>{const m=0===_.length;if(d.has(g))return d.get(g);for(let y=0;y<h.length;y++){let Z=h[y];if(s.compound&&-1!==s.compound[Z].indexOf(g))return _.unshift(Z),l(Z,_)}return m&&d.set(g,_),_};return s.nodes.forEach(g=>{const _=g.id,m=[...l(_),_];let y=(g=>s.edges.filter(_=>_.w===g).map(_=>({name:_.v})))(_);c.nodes.push({name:_,path:m,inputs:y,width:g.width,height:g.height,attr:Object.assign({},g)})}),c}(t),a=function(s,c){const h=(l,f)=>{for(let g of f.values())if(g.includes(l))return!0;return!1},d=(l,f=[])=>{if(0===Object.keys(l).length)return[...new Set(f)];const g=new Map(Object.keys(l).map(m=>[m,l[m]])),_={};for(let[m,y]of g)h(m,g)?_[m]=y:f=f.concat(m,y);return d(_,f)};return d(s).filter(l=>c.includes(l))}(t.compound||{},e?.expanded||[]),{renderInfo:u}=function(s,c="LR"){const h=function Cg(t,e){const r=new Ng({rankdir:e.rankDirection});return i=r,o=t,Object.keys(o.nodes).forEach(a=>{const u=o.nodes[a],s=u.path;let c=i.root;c.depth=Math.max(s.length,c.depth);for(let h=0;h<s.length&&(c.depth=Math.max(c.depth,s.length-h),c.cardinality+=u.cardinality,h!==s.length-1);h++){const d=s[h];let l=i.node(d);l||(l=Ha(d,i.graphOptions),l.path=u.path.slice(0,h+1),l.parentNode=c,i.setNode(d,l),c.metaGraph.setNode(d,l)),c=l}i.setNode(u.name,u),u.parentNode=c,c.metaGraph.setNode(u.name,u)}),function(i,o){const a=i.getNodeMap();let u=[],s=[];const c=(h,d)=>{let l=0;for(;h;)d[l++]=h.name,h=h.parentNode;return l-1};
1o.edges.forEach(h=>{u=[],s=[];let d=c(o.nodes[h.v],u),l=c(o.nodes[h.w],s);for(;u[d]===s[l];)if(d--,l--,d<0||l<0)throw Error("No difference found between ancestor paths.");const f=a[u[d+1]],g=u[d],_=s[l];let m=f.metaGraph.edge(g,_);m||(m=Ya(g,_),f.metaGraph.setEdge(g,_,m)),m.addBaseEdge(h,i)})}(r,t),r;var i,o}(function zg(t){const e=new Ug;return t.nodes.map(r=>new wg(r)).forEach(r=>{e.nodes[r.name]=r,r.inputs.forEach(i=>{var a,u;(u=i).name!==(a=r).name&&e.edges.push(Object.assign(Object.assign({},u.attr),{v:u.name,w:a.name}))})}),e}(s),{rankDirection:c});return{hierarchy:h,renderInfo:new kg(h)}}(o,e&&e.rankDirection?e.rankDirection:"LR");return s=u,a.forEach(h=>{const d=s.getRenderInfoNodes().find(g=>g.displayName===h);let l=d&&d.node&&d.node.name||"";const f=s.getRenderNodeByName(l);if(!f)throw new Error(`No nodes found: ${l}`);f.expanded=!0,s.buildSubHierarchy(l)}),tu(u.root,function(s={}){var c,h,d,l;const f=(null===(c=s?.graph)||void 0===c?void 0:c.meta)||{},g=(null===(h=s?.subScene)||void 0===h?void 0:h.meta)||{},_=(null===(d=s?.nodeSize)||void 0===d?void 0:d.meta)||{},m=(null===(l=s?.nodeSize)||void 0===l?void 0:l.node)||{},y=wn.nodeSize.bridge;return{graph:{meta:Object.assign(wn.graph.meta,f)},subScene:{meta:Object.assign(wn.subScene.meta,g)},nodeSize:{meta:Object.assign(wn.nodeSize.meta,_),node:Object.assign(wn.nodeSize.node,m),bridge:y}}}(r)),ru(u.root);var s}function ru(t){const e=t.coreGraph.nodes().map(i=>t.coreGraph.node(i));return Object.assign(Object.assign({},iu(t)),{expanded:t.expanded,nodes:t.expanded?(r=e,r.map(i=>i.node.type===nt.META?ru(i):iu(i))):[],edges:t.expanded?Dg(t):[]});var r}function iu(t){return{id:t.node.name,name:t.node.name,type:t.node.type,attr:t.attr,parentNodeName:t.node.parentNode?t.node.parentNode.name:null,coreBox:Object.assign({},t.coreBox),x:t.x,y:t.y,width:t.width,height:t.height,radius:t.radius,labelHeight:t.labelHeight,labelOffset:t.labelOffset,outboxWidth:t.outboxWidth,paddingLeft:t.paddingLeft,paddingTop:t.paddingTop,paddingRight:t.paddingRight,paddingBottom:t.paddingBottom}}function Dg(t){return t.coreGraph.edges().map(e=>({renderInfoEdge:t.coreGraph.edge(e),edge:e})).filter(({renderInfoEdge:e})=>e.metaEdge).map(({edge:e,renderInfoEdge:r})=>{const i=function(o,a){const u=a.points.map(s=>Object.assign({},s));if(a.adjoiningMetaEdge){const s=a.adjoiningMetaEdge.points,c=a.metaEdge.inbound,h=c?s[s.length-1]:s[0],d=u[c?0:u.length-1],_=h.y-(o.y-o.height/2),y=-(o.paddingTop+o.labelHeight);d.x=h.x-(o.x-o.width/2)-o.paddingLeft,d.y=_+y}return u}(t,r);return{adjoiningEdge:r.adjoiningMetaEdge?{w:r.adjoiningMetaEdge.metaEdge.w,v:r.adjoiningMetaEdge.metaEdge.v}:null,inbound:r.metaEdge.inbound,w:e.w,v:e.v,points:i,weight:r.weight,baseEdgeList:r.metaEdge.baseEdgeList}})}const Mg=["nz-graph-defs",""],Og=["nz-graph-edge",""],ou=t=>({$implicit:t});function Bg(t,e){if(1&t&&n.GkF(0,2),2&t){const r=n.oxw();n.Q6J("ngTemplateOutlet",r.customTemplate)("ngTemplateOutletContext",n.VKq(2,ou,r.edge))}}function Fg(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"text",5)(1,"textPath",6),n._uU(2),n.qZA()()),2&t){const r=n.oxw(2);n.xp6(1),n.uIk("href","#"+r.id),n.xp6(1),n.Oqu(r.edge.label)}}function Gg(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n._UZ(1,"path",3),n.YNc(2,Fg,3,2,"text",4),n.qZA()),2&t){const r=n.oxw();n.xp6(1),n.uIk("marker-end","url(#edge-end-arrow)"),n.xp6(1),n.Q6J("ngIf",r.edge.label)}}const Ig=["nz-graph-node",""];function Rg(t,e){if(1&t&&(n.O4$(),n.GkF(0,2)),2&t){const r=n.oxw();n.Q6J("ngTemplateOutlet",r.customTemplate)("ngTemplateOutletContext",n.VKq(2,ou,r.node))}}function jg(t,e){if(1&t&&(n.O4$(),n.ynx(0),n._UZ(1,"rect",3),n.TgZ(2,"text",4),n._uU(3),n.qZA(),n.BQk()),2&t){const r=n.oxw();n.xp6(1),n.uIk("width",r.node.width)("height",r.node.height),n.xp6(2),n.Oqu(r.node.id||r.node.name)}}function Pg(t,e){if(1&t&&(n.O4$(),n.ynx(0),n._UZ(1,"g",8),n.BQk()),2&t){const r=e.$implicit,i=n.oxw(2);n.xp6(1),n.Q6J("edge",r)("edgeType",null==i.nzGraphLayoutConfig||null==i.nzGraphLayoutConfig.defaultEdge?null:i.nzGraphLayoutConfig.defaultEdge.type)("customTemplate",i.customGraphEdgeTemplate)}}function Lg(t,e){if(1&t&&(n.O4$(),n._UZ(0,"g",11)),2&t){const r=n.oxw().$implicit,i=n.oxw(2);n.Q6J("node",r)("customTemplate",i.nodeTemplate)}}function $g(t,e){if(1&t&&(n.O4$(),n._UZ(0,"g",11)),2&t){const r=n.oxw().$implicit,i=n.oxw(2);n.Q6J("node",r)("customTemplate",i.groupNodeTemplate)}}const Vg=t=>({renderNode:t,type:"sub"});function Hg(t,e){if(1&t&&(n.O4$(),n.GkF(0,2)),2&t){const r=n.oxw().$implicit;n.oxw(2);const i=n.MAs(6);n.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",n.VKq(2,Vg,r))}}function Yg(t,e){if(1&t&&(n.O4$(),n.ynx(0),n.YNc(1,Lg,1,2,"g",9)(2,$g,1,2,"g",9)(3,Hg,1,4,"ng-container",10),n.BQk()),2&t){const r=e.$implicit;n.xp6(1),n.Q6J("ngIf",1===r.type),n.xp6(1),n.Q6J("ngIf",0===r.type),n.xp6(1),n.Q6J("ngIf",r.expanded)}}function Qg(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g")(1,"g",4)(2,"g",5),n.YNc(3,Pg,2,3,"ng-container",6),n.qZA(),n.TgZ(4,"g",7),n.YNc(5,Yg,4,3,"ng-container",6),n.qZA()()()),2&t){const r=e.renderNode,i=e.type,o=n.oxw();n.uIk("transform","sub"===i?o.subGraphTransform(r):null),n.xp6(1),n.uIk("transform",o.coreTransform(r)),n.xp6(2),n.Q6J("ngForOf",o.$asNzGraphEdges(r.edges))("ngForTrackBy",o.edgeTrackByFun),n.xp6(2),n.Q6J("ngForOf",o.typedNodes(r.nodes))("ngForTrackBy",o.nodeTrackByFun)}}const Jg=t=>({renderNode:t,type:"root"}),Wg=["*"];var au=function(t){return t.LINE="line",t.CURVE="curve",t}(au||{});const Un={graph:{meta:{nodeSep:50,rankSep:50,edgeSep:5}},subScene:{meta:{paddingTop:20,paddingBottom:20,paddingLeft:20,paddingRight:20,labelHeight:20}},nodeSize:{meta:{width:50,maxLabelWidth:0,height:50},node:{width:50,height:50,labelOffset:10,maxLabelWidth:40},bridge:{width:5,height:5,radius:2,labelOffset:0}}};class Kg{toggle(e){this.expansionModel.toggle(e)}expand(e){const i=this.findParents(this.dataSource.compound||{},e,[e]);this.expansionModel.select(...i)}collapse(e){const i=this.findChildren(this.dataSource.compound||{},e,[e]);this.expansionModel.deselect(...i)}isExpanded(e){return this.expansionModel.isSelected(e)}collapseAll(){this.expansionModel.clear()}
1expandAll(){this.expansionModel.select(...Object.keys(this._data.value.compound||{}))}setData(e){this.expansionModel?.clear(),this.dataSource=e,this._data.next(e)}constructor(e){this._data=new It.X({}),this.expansionModel=new Gt.Ov(!0),e&&(this.expansionModel?.clear(),this.dataSource=e,this._data.next(e))}connect(){return(0,Rt.T)(this._data,this.expansionModel.changed).pipe((0,zn.U)(()=>this._data.value))}disconnect(){}findParents(e,r,i=[]){const o=Object.keys(e).filter(a=>a!==r).find(a=>e[a].includes(r));return o?this.findParents(e,o,[o,...i]):i}findChildren(e,r,i=[]){const o=Object.keys(e),a=(e[r]||[]).filter(u=>o.includes(u));return a&&a.length>0?a.reduce((u,s)=>Array.from(new Set([...u,...this.findChildren(e,s,[...i,s])])),i):i}}let t0=(()=>{class t{constructor(){}static#t=this.\u0275fac=function(i){return new(i||t)};static#n=this.\u0275cmp=n.Xpm({type:t,selectors:[["defs","nz-graph-defs",""]],attrs:Mg,decls:2,vars:0,consts:[["id","edge-end-arrow","viewBox","1 0 20 20","refX","8","refY","3.5","markerWidth","10","markerHeight","10","orient","auto",1,"nz-graph-edge-marker"],["points","0 0, 10 3.5, 0 7"]],template:function(i,o){1&i&&(n.O4$(),n.TgZ(0,"marker",0),n._UZ(1,"polygon",1),n.qZA())},encapsulation:2})}return t})(),n0=(()=>{class t{get id(){return this.edge?.id||`${this.edge.v}--${this.edge.w}`}constructor(r,i,o){this.elementRef=r,this.ngZone=i,this.cdr=o,this.line=J().x(a=>a.x).y(a=>a.y).curve(Zt),this.el=this.elementRef.nativeElement}ngOnInit(){this.initElementStyle()}ngOnChanges(r){const{edge:i,customTemplate:o,edgeType:a}=r;if(i&&this.ngZone.onStable.pipe((0,un.q)(1)).subscribe(()=>{o&&this.initElementStyle(),this.setLine(),this.cdr.markForCheck()}),a){const u=this.edgeType===au.LINE?Zt:cn;this.line=J().x(s=>s.x).y(s=>s.y).curve(u)}}initElementStyle(){this.path=this.el.querySelector("path"),this.setElementData()}setLine(){this.setPath(this.line(this.edge.points))}setPath(r){this.path.setAttribute("d",r)}setElementData(){this.path&&(this.path.setAttribute("id",this.id),this.path.setAttribute("data-edge",this.id),this.path.setAttribute("data-v",`${this.edge.v}`),this.path.setAttribute("data-w",`${this.edge.w}`))}static#t=this.\u0275fac=function(i){return new(i||t)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO))};static#n=this.\u0275cmp=n.Xpm({type:t,selectors:[["","nz-graph-edge",""]],inputs:{edge:"edge",edgeType:"edgeType",customTemplate:"customTemplate"},features:[n.TTD],attrs:Og,decls:2,vars:2,consts:[[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"nz-graph-edge-line"],["class","nz-graph-edge-text","text-anchor","middle","dy","10",4,"ngIf"],["text-anchor","middle","dy","10",1,"nz-graph-edge-text"],["startOffset","50%"]],template:function(i,o){1&i&&n.YNc(0,Bg,1,4,"ng-container",0)(1,Gg,3,2,"g",1),2&i&&(n.Q6J("ngIf",o.customTemplate),n.xp6(1),n.Q6J("ngIf",!o.customTemplate))},dependencies:[K.O5,K.tP],encapsulation:2,changeDetection:0})}return t})(),e0=(()=>{class t{static#t=this.\u0275fac=function(i){return new(i||t)};static#n=this.\u0275dir=n.lG2({type:t,selectors:[["","nzGraphEdge",""]],exportAs:["nzGraphEdge"]})}return t})(),uu=(()=>{class t{static#t=this.\u0275fac=function(i){return new(i||t)};static#n=this.\u0275dir=n.lG2({type:t,selectors:[["","nzGraphGroupNode",""]],exportAs:["nzGraphGroupNode"]})}return t})();class su{}let Vr=(()=>{class t{constructor(r,i,o,a,u){this.ngZone=r,this.el=i,this.builder=o,this.renderer2=a,this.graphComponent=u,this.animationInfo=null,this.initialState=!0,this.destroy$=new kt.x,this.animationPlayer=null}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,rt.R)(this.el.nativeElement,"click").pipe((0,sn.h)(r=>(r.preventDefault(),this.graphComponent.nzNodeClick.observers.length>0)),(0,St.R)(this.destroy$)).subscribe(()=>{this.ngZone.run(()=>this.graphComponent.nzNodeClick.emit(this.node))})})}ngOnDestroy(){this.destroy$.next()}makeAnimation(){const r=this.getAnimationInfo();let i;this.animationPlayer&&this.animationPlayer.destroy();const o={...this.animationInfo};this.initialState?(i=this.builder.build([(0,at.oB)({transform:`translate(${r.x}px, ${r.y}px)`}),(0,at.IO)("g",[(0,at.oB)({width:`${r.width}px`,height:`${r.height}px`})])]),this.initialState=!1):i=this.builder.build([(0,at.oB)({transform:`translate(${o.x}px, ${o.y}px)`}),(0,at.IO)("g",[(0,at.oB)({width:`${o.width}px`,height:`${o.height}px`})]),(0,at.ru)([(0,at.IO)("g",[(0,at.jt)("150ms ease-out",(0,at.oB)({width:`${r.width}px`,height:`${r.height}px`}))]),(0,at.jt)("150ms ease-out",(0,at.oB)({transform:`translate(${r.x}px, ${r.y}px)`}))])]),this.animationInfo=r,this.animationPlayer=i.create(this.el.nativeElement),this.animationPlayer.play();const a=new kt.x;return this.animationPlayer.onDone(()=>{this.renderer2.setAttribute(this.el.nativeElement,"transform",`translate(${r.x}, ${r.y})`),a.next(),a.complete()}),a.asObservable()}makeNoAnimation(){const r=this.getAnimationInfo();this.renderer2.setAttribute(this.el.nativeElement,"transform",`translate(${r.x}, ${r.y})`)}getAnimationInfo(){const{x:r,y:i}=this.nodeTransform();return{width:this.node.width,height:this.node.height,x:r,y:i}}nodeTransform(){return{x:this.computeCXPositionOfNodeShape()-this.node.width/2,y:this.node.y-this.node.height/2}}computeCXPositionOfNodeShape(){return this.node.expanded?this.node.x:this.node.x-this.node.width/2+this.node.coreBox.width/2}static#t=this.\u0275fac=function(i){return new(i||t)(n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(at._j),n.Y36(n.Qsj),n.Y36(su))};static#n=this.\u0275cmp=n.Xpm({type:t,selectors:[["","nz-graph-node",""]],hostVars:7,hostBindings:function(i,o){2&i&&(n.Ikx("id",o.node.id||o.node.name),n.ekj("nz-graph-node-expanded",o.node.expanded)("nz-graph-group-node",0===o.node.type)("nz-graph-base-node",1===o.node.type))},inputs:{node:"node",noAnimation:"noAnimation",customTemplate:"customTemplate"},attrs:Ig,decls:3,vars:2,consts:[[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"nz-graph-node-rect"],["x","10","y","20"]],template:function(i,o){1&i&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,Rg,1,4,"ng-container",0)(2,jg,4,3,"ng-container",1),n.qZA()),2&i&&(n.xp6(1),n.Q6J("ngIf",o.customTemplate),n.xp6(1),n.Q6J("ngIf",!o.customTemplate))},dependencies:[K.O5,K.tP],encapsulation:2,changeDetection:0})}return(0,Yi.gn)([(0,Qi.yF)()],t.prototype,"noAnimation",void 0),t})(),cu=(()=>{class t{static#t=this.\u0275fac=function(i){return new(i||t)};static#n=this.\u0275dir=n.lG2({type:t,selectors:[["","nzGraphNode",""]],exportAs:["nzGraphNode"]})}return t})();const hu=(t,e,r)=>{const i=t.getBoundingClientRect(),o=e.getBBox();if(!o.width)return null;const a=(i.width-48)/i.width,u=r||Math.min(i.width/o.width,i.height/o.height,1)*a;return{x:(i.width-o.width*u)/2,y:(i.height-o.height*u)/2,k:u}};let Hr=(()=>{class t{constructor(r,i){this.element=r,this.cdr=i,this.nzMinZoom=.1,this.nzMaxZoom=10,this.nzTransformEvent=ne
1w n.vpe,this.nzZoomChange=new n.vpe,this.destroy$=new kt.x}ngAfterViewInit(){this.bind()}ngOnDestroy(){this.unbind(),this.destroy$.next(),this.destroy$.complete()}bind(){this.svgElement=this.element.nativeElement.querySelector("svg"),this.gZoomElement=this.element.nativeElement.querySelector("svg > g");const{width:r,height:i}=this.element.nativeElement.getBoundingClientRect();this.svgSelection=Li().selection().select(()=>this.svgElement),this.zoomBehavior=function jh(){var d,l,f,t=Bh,e=Fh,r=Rh,i=Gh,o=Ih,a=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],s=250,c=nc,h=Kr("start","zoom","end"),g=500,_=150,m=0,y=10;function Z(v){v.property("__zoom",Hi).on("wheel.zoom",gt).on("mousedown.zoom",ct).on("dblclick.zoom",Le).filter(o).on("touchstart.zoom",p0).on("touchmove.zoom",g0).on("touchend.zoom touchcancel.zoom",m0).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(v,z){return(z=Math.max(a[0],Math.min(a[1],z)))===v.k?v:new xt(z,v.x,v.y)}function C(v,z,A){var k=z[0]-A[0]*v.k,S=z[1]-A[1]*v.k;return k===v.x&&S===v.y?v:new xt(v.k,k,S)}function N(v){return[(+v[0][0]+ +v[1][0])/2,(+v[0][1]+ +v[1][1])/2]}function R(v,z,A,k){v.on("start.zoom",function(){G(this,arguments).event(k).start()}).on("interrupt.zoom end.zoom",function(){G(this,arguments).event(k).end()}).tween("zoom",function(){var S=this,O=arguments,F=G(S,O).event(k),$=e.apply(S,O),Y=null==A?N($):"function"==typeof A?A.apply(S,O):A,bt=Math.max($[1][0]-$[0][0],$[1][1]-$[0][1]),X=S.__zoom,mt="function"==typeof z?z.apply(S,O):z,Nt=c(X.invert(Y).concat(bt/X.k),mt.invert(Y).concat(bt/mt.k));return function(_t){if(1===_t)_t=mt;else{var Ct=Nt(_t),Qr=bt/Ct[2];_t=new xt(Qr,Y[0]-Ct[0]*Qr,Y[1]-Ct[1]*Qr)}F.zoom(null,_t)}})}function G(v,z,A){return!A&&v.__zooming||new Q(v,z)}function Q(v,z){this.that=v,this.args=z,this.active=0,this.sourceEvent=null,this.extent=e.apply(v,z),this.taps=0}function gt(v,...z){if(t.apply(this,arguments)){var A=G(this,z).event(v),k=this.__zoom,S=Math.max(a[0],Math.min(a[1],k.k*Math.pow(2,i.apply(this,arguments)))),O=Ht(v);if(A.wheel)(A.mouse[0][0]!==O[0]||A.mouse[0][1]!==O[1])&&(A.mouse[1]=k.invert(A.mouse[0]=O)),clearTimeout(A.wheel);else{if(k.k===S)return;A.mouse=[O,k.invert(O)],se(this),A.start()}Rn(v),A.wheel=setTimeout(function F(){A.wheel=null,A.end()},_),A.zoom("mouse",r(C(w(k,S),A.mouse[0],A.mouse[1]),A.extent,u))}}function ct(v,...z){if(!f&&t.apply(this,arguments)){var A=G(this,z,!0).event(v),k=Vt(v.view).on("mousemove.zoom",function Y(X){if(Rn(X),!A.moved){var mt=X.clientX-F,Nt=X.clientY-$;A.moved=mt*mt+Nt*Nt>m}A.event(X).zoom("mouse",r(C(A.that.__zoom,A.mouse[0]=Ht(X,O),A.mouse[1]),A.extent,u))},!0).on("mouseup.zoom",function bt(X){k.on("mousemove.zoom mouseup.zoom",null),function Ws(t,e){var r=t.document.documentElement,i=Vt(t).on("dragstart.drag",null);e&&(i.on("click.drag",Ye,!0),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in r?i.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}(X.view,A.moved),Rn(X),A.event(X).end()},!0),S=Ht(v,O),O=v.currentTarget,F=v.clientX,$=v.clientY;(function Js(t){var e=t.document.documentElement,r=Vt(t).on("dragstart.drag",Ye,!0);"onselectstart"in e?r.on("selectstart.drag",Ye,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")})(v.view),ur(v),A.mouse=[S,this.__zoom.invert(S)],se(this),A.start()}}function Le(v,...z){if(t.apply(this,arguments)){var A=this.__zoom,k=Ht(v.changedTouches?v.changedTouches[0]:v,this),S=A.invert(k),F=r(C(w(A,A.k*(v.shiftKey?.5:2)),k,S),e.apply(this,z),u);Rn(v),s>0?Vt(this).transition().duration(s).call(R,F,k,v):Vt(this).call(Z.transform,F,k,v)}}function p0(v,...z){if(t.apply(this,arguments)){var O,F,$,Y,A=v.touches,k=A.length,S=G(this,z,v.changedTouches.length===k).event(v);for(ur(v),F=0;F<k;++F)Y=[Y=Ht($=A[F],this),this.__zoom.invert(Y),$.identifier],S.touch0?!S.touch1&&S.touch0[2]!==Y[2]&&(S.touch1=Y,S.taps=0):(S.touch0=Y,O=!0,S.taps=1+!!d);d&&(d=clearTimeout(d)),O&&(S.taps<2&&(l=Y[0],d=setTimeout(function(){d=null},g)),se(this),S.start())}}function g0(v,...z){if(this.__zooming){var O,F,$,Y,A=G(this,z).event(v),k=v.changedTouches,S=k.length;for(Rn(v),O=0;O<S;++O)$=Ht(F=k[O],this),A.touch0&&A.touch0[2]===F.identifier?A.touch0[0]=$:A.touch1&&A.touch1[2]===F.identifier&&(A.touch1[0]=$);if(F=A.that.__zoom,A.touch1){var bt=A.touch0[0],X=A.touch0[1],mt=A.touch1[0],Nt=A.touch1[1],_t=(_t=mt[0]-bt[0])*_t+(_t=mt[1]-bt[1])*_t,Ct=(Ct=Nt[0]-X[0])*Ct+(Ct=Nt[1]-X[1])*Ct;F=w(F,Math.sqrt(_t/Ct)),$=[(bt[0]+mt[0])/2,(bt[1]+mt[1])/2],Y=[(X[0]+Nt[0])/2,(X[1]+Nt[1])/2]}else{if(!A.touch0)return;$=A.touch0[0],Y=A.touch0[1]}A.zoom("touch",r(C(F,$,Y),A.extent,u))}}function m0(v,...z){if(this.__zooming){var O,F,A=G(this,z).event(v),k=v.changedTouches,S=k.length;for(ur(v),f&&clearTimeout(f),f=setTimeout(function(){f=null},g),O=0;O<S;++O)F=k[O],A.touch0&&A.touch0[2]===F.identifier?delete A.touch0:A.touch1&&A.touch1[2]===F.identifier&&delete A.touch1;if(A.touch1&&!A.touch0&&(A.touch0=A.touch1,delete A.touch1),A.touch0)A.touch0[1]=this.__zoom.invert(A.touch0[0]);else if(A.end(),2===A.taps&&(F=Ht(F,this),Math.hypot(l[0]-F[0],l[1]-F[1])<y)){var $=Vt(this).on("dblclick.zoom");$&&$.apply(this,arguments)}}}return Z.transform=function(v,z,A,k){var S=v.selection?v.selection():v;S.property("__zoom",Hi),v!==S?R(v,z,A,k):S.interrupt().each(function(){G(this,arguments).event(k).start().zoom(null,"function"==typeof z?z.apply(this,arguments):z).end()})},Z.scaleBy=function(v,z,A,k){Z.scaleTo(v,function(){return this.__zoom.k*("function"==typeof z?z.apply(this,arguments):z)},A,k)},Z.scaleTo=function(v,z,A,k){Z.transform(v,function(){var S=e.apply(this,arguments),O=this.__zoom,F=null==A?N(S):"function"==typeof A?A.apply(this,arguments):A,$=O.invert(F),Y="function"==typeof z?z.apply(this,arguments):z;return r(C(w(O,Y),F,$),S,u)},A,k)},Z.translateBy=function(v,z,A,k){Z.transform(v,function(){return r(this.__zoom.translate("function"==typeof z?z.apply(this,arguments):z,"function"==typeof A?A.apply(this,arguments):A),e.apply(this,arguments),u)},null,k)},Z.translateTo=function(v,z,A,k,S){Z.transform(v,function(){var O=e.apply(this,arguments),F=this.__zoom,$=null==k?N(O):"function"==typeof k?k.apply(this,arguments):k;return r(In.translate($[0],$[1]).scale(F.k).translate("function"==typeof z?-z.apply(this,arguments):-z,"function"==typeof A?-A.apply(this,arguments):-A),O,u)},k,S)},Q.prototype={event:function(v){return v&&(this.sourceEvent=v),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit
1("start")),this},zoom:function(v,z){return this.mouse&&"mouse"!==v&&(this.mouse[1]=z.invert(this.mouse[0])),this.touch0&&"touch"!==v&&(this.touch0[1]=z.invert(this.touch0[0])),this.touch1&&"touch"!==v&&(this.touch1[1]=z.invert(this.touch1[0])),this.that.__zoom=z,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(v){var z=Vt(this.that).datum();h.call(v,this.that,new Oh(v,{sourceEvent:this.sourceEvent,target:Z,type:v,transform:this.that.__zoom,dispatch:h}),z)}},Z.wheelDelta=function(v){return arguments.length?(i="function"==typeof v?v:fe(+v),Z):i},Z.filter=function(v){return arguments.length?(t="function"==typeof v?v:fe(!!v),Z):t},Z.touchable=function(v){return arguments.length?(o="function"==typeof v?v:fe(!!v),Z):o},Z.extent=function(v){return arguments.length?(e="function"==typeof v?v:fe([[+v[0][0],+v[0][1]],[+v[1][0],+v[1][1]]]),Z):e},Z.scaleExtent=function(v){return arguments.length?(a[0]=+v[0],a[1]=+v[1],Z):[a[0],a[1]]},Z.translateExtent=function(v){return arguments.length?(u[0][0]=+v[0][0],u[1][0]=+v[1][0],u[0][1]=+v[0][1],u[1][1]=+v[1][1],Z):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},Z.constrain=function(v){return arguments.length?(r=v,Z):r},Z.duration=function(v){return arguments.length?(s=+v,Z):s},Z.interpolate=function(v){return arguments.length?(c=v,Z):c},Z.on=function(){var v=h.on.apply(h,arguments);return v===h?Z:v},Z.clickDistance=function(v){return arguments.length?(m=(v=+v)*v,Z):Math.sqrt(m)},Z.tapDistance=function(v){return arguments.length?(y=+v,Z):y},Z}().extent([[0,0],[r,i]]).scaleExtent([this.nzMinZoom,this.nzMaxZoom]).on("zoom",o=>{this.zoomed(o)}),this.svgSelection.call(this.zoomBehavior,In.translate(0,0).scale(this.nzZoom||1)),this.reScale(0,this.nzZoom)}unbind(){this.svgSelection?.interrupt().selectAll("*").interrupt(),this.zoomBehavior&&this.zoomBehavior.on("end",null).on("zoom",null)}fitCenter(r=0){this.reScale(r)}focus(r,i=0){if(!this.svgElement.getElementById(`${r}`))return;const o=this.svgElement.getElementById(`${r}`),a=this.svgElement.getBoundingClientRect(),u=this.getRelativePositionInfo(o),s=Vi(this.svgElement),d=a.left+a.width/2-(u.topLeft.x+u.bottomRight.x)/2,l=a.top+a.height/2-(u.topLeft.y+u.bottomRight.y)/2;this.svgSelection.transition().duration(i).call(this.zoomBehavior.translateBy,d/s.k,l/s.k)}zoomed({transform:r}){const{x:i,y:o,k:a}=r;this.gZoomElement.setAttribute("transform",`translate(${i}, ${o})scale(${a})`),this.nzZoom=a,this.nzZoomChange.emit(this.nzZoom),this.nzTransformEvent.emit(r),this.cdr.markForCheck()}reScale(r,i){const o=hu(this.svgElement,this.gZoomElement,i);if(!o)return;const{x:a,y:u,k:s}=o,c=In.translate(a,u).scale(Math.max(s,this.nzMinZoom));this.svgSelection.transition().duration(r).call(this.zoomBehavior.transform,c).on("end.fitted",()=>{this.zoomBehavior.on("end.fitted",null)})}getRelativePositionInfo(r){const i=r.getBBox(),o=r.getScreenCTM();let a=this.svgElement.createSVGPoint(),u=this.svgElement.createSVGPoint();return a.x=i.x,a.y=i.y,u.x=i.x+i.width,u.y=i.y+i.height,a=a.matrixTransform(o),u=u.matrixTransform(o),{topLeft:a,bottomRight:u}}static#t=this.\u0275fac=function(i){return new(i||t)(n.Y36(n.SBq),n.Y36(n.sBO))};static#n=this.\u0275dir=n.lG2({type:t,selectors:[["","nz-graph-zoom",""]],inputs:{nzZoom:"nzZoom",nzMinZoom:"nzMinZoom",nzMaxZoom:"nzMaxZoom"},outputs:{nzTransformEvent:"nzTransformEvent",nzZoomChange:"nzZoomChange"},exportAs:["nzGraphZoom"]})}return t})(),du=(()=>{class t{constructor(r,i,o,a){this.cdr=r,this.elementRef=i,this.noAnimation=o,this.nzGraphZoom=a,this.nzRankDirection="LR",this.nzAutoSize=!1,this.nzGraphInitialized=new n.vpe,this.nzGraphRendered=new n.vpe,this.nzNodeClick=new n.vpe,this.requestId=-1,this.transformStyle="",this.graphRenderedSubject$=new jt.t(1),this.renderInfo={labelHeight:0},this.mapOfNodeAttr={},this.mapOfEdgeAttr={},this.zoom=1,this.typedNodes=t=>t,this.layoutSetting=Un,this.destroy$=new kt.x,this.nodeTrackByFun=(u,s)=>s.name,this.edgeTrackByFun=(u,s)=>`${s.v}-${s.w}`,this.subGraphTransform=u=>`translate(${u.x-u.coreBox.width/2}, ${u.y-u.height/2+u.paddingTop})`,this.$asNzGraphEdges=u=>u,this.coreTransform=u=>`translate(0, ${u.parentNodeName?u.labelHeight:0})`}ngOnInit(){this.graphRenderedSubject$.pipe((0,un.q)(1),(0,St.R)(this.destroy$)).subscribe(()=>{this.nzGraphZoom||this.fitCenter(),this.nzGraphInitialized.emit(this)})}ngOnChanges(r){const{nzAutoFit:i,nzRankDirection:o,nzGraphData:a,nzGraphLayoutConfig:u}=r;u&&(this.layoutSetting=this.mergeConfig(u.currentValue)),a&&this.dataSource!==this.nzGraphData&&this._switchDataSource(this.nzGraphData),(i&&!i.firstChange||o&&!o.firstChange)&&this.dataSource.dataSource&&this.drawGraph(this.dataSource.dataSource,{rankDirection:this.nzRankDirection,expanded:this.dataSource.expansionModel.selected||[]}).then(()=>{this.cdr.markForCheck()}),this.cdr.markForCheck()}ngAfterContentChecked(){this.dataSource&&!this._dataSubscription&&this.observeRenderChanges()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.dataSource&&"function"==typeof this.dataSource.disconnect&&this.dataSource.disconnect(),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),(0,Ph.h)(this.requestId)}fitCenter(){const{x:r,y:i,k:o}=hu(this.elementRef.nativeElement.querySelector("svg"),this.elementRef.nativeElement.querySelector("svg > g"));o&&(this.zoom=o,this.transformStyle=`translate(${r}, ${i})scale(${o})`),this.cdr.markForCheck()}drawGraph(r,i,o=!1){return new Promise(a=>{this.requestId=requestAnimationFrame(()=>{const u=this.buildGraphInfo(r,i);this.renderInfo=u,this.cdr.markForCheck(),this.requestId=requestAnimationFrame(()=>{this.drawNodes(!this.noAnimation?.nzNoAnimation).then(()=>{this.cdr.markForCheck(),o?this.resizeNodeSize().then(()=>{this.drawGraph(this.dataSource.dataSource,i,!1).then(()=>a())}):(this.graphRenderedSubject$.next(),this.nzGraphRendered.emit(this),a())})})}),this.cdr.markForCheck()})}drawNodes(r=!0){return new Promise(i=>{r?this.makeNodesAnimation().subscribe(()=>{i()}):(this.listOfNodeComponent.map(o=>{o.makeNoAnimation()}),i())})}resizeNodeSize(){return new Promise(r=>{const i=this.dataSource.dataSource;let o=this.nzGraphZoom?.nzZoom||this.zoom||1;this.listOfNodeElement.forEach(a=>{const u=a.nativeElement;if(u){let s,c;const h=u.querySelector("foreignObject >
1 :first-child")?.getBoundingClientRect();if(h)s=h.width,c=h.height;else{const l=u.getBBox();s=l.width,c=l.height,o=1}const d=i.nodes.find(l=>`${l.id}`===a.nativeElement.id);d&&s&&c&&(d.height=c/o,d.width=s/o)}}),r()})}_switchDataSource(r){this.dataSource&&"function"==typeof this.dataSource.disconnect&&this.nzGraphData.disconnect(),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),this.dataSource=r,this.observeRenderChanges()}observeRenderChanges(){let r,i={rankDirection:this.nzRankDirection};if(function o0(t){return t&&"function"==typeof t.connect}(this.dataSource)&&(r=this.dataSource.connect()),!r)throw Error("A valid data source must be provided.");this._dataSubscription=r.pipe((0,St.R)(this.destroy$)).subscribe(o=>{i={rankDirection:this.nzRankDirection,expanded:this.nzGraphData.expansionModel.selected},this.drawGraph(o,i,this.nzAutoSize).then(()=>{this.cdr.detectChanges()})})}buildGraphInfo(r,i){this.parseInfo(r);const o=Sg(r,i,this.layoutSetting),a=u=>{u.forEach(s=>{const{x:c,y:h}=s;s.xOffset=c,s.yOffset=h,1===s.type&&this.mapOfNodeAttr.hasOwnProperty(s.name)?Object.assign(s,this.mapOfNodeAttr[s.name]):0===s.type&&(s.edges.forEac
1h(d=>{this.mapOfEdgeAttr.hasOwnProperty(`${d.v}-${d.w}`)&&Object.assign(d,this.mapOfEdgeAttr[`${d.v}-${d.w}`])}),a(s.nodes))})};return a(o.nodes),o.edges.forEach(u=>{this.mapOfEdgeAttr.hasOwnProperty(`${u.v}-${u.w}`)&&Object.assign(u,this.mapOfEdgeAttr[`${u.v}-${u.w}`])}),o}makeNodesAnimation(){return(0,Pt.D)(this.listOfNodeComponent.map(r=>r.makeAnimation())).pipe((0,xn.x)(()=>{this.cdr.detectChanges()}))}parseInfo(r){r.nodes.forEach(i=>{this.mapOfNodeAttr[i.id]=i}),r.edges.forEach(i=>{this.mapOfEdgeAttr[`${i.v}-${i.w}`]=i})}mergeConfig(r){const i=r?.layout||{},o=r?.subScene||{},a=r?.defaultNode||{};return{graph:{meta:{...Un.graph.meta,...i}},subScene:{meta:{...Un.subScene.meta,...o}},nodeSize:{meta:{...Un.nodeSize.meta,...r?.defaultCompoundNode||{}},node:{...Un.nodeSize.node,...a},bridge:Un.nodeSize.bridge}}}static#t=this.\u0275fac=function(i){return new(i||t)(n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(ht.P,9),n.Y36(Hr,8))};static#n=this.\u0275cmp=n.Xpm({type:t,selectors:[["nz-graph"]],contentQueries:function(i,o,a){if(1&i&&(n.Suo(a,cu,7,n.Rgc),n.Suo(a,uu,7,n.Rgc),n.Suo(a,e0,7,n.Rgc)),2&i){let u;n.iGM(u=n.CRH())&&(o.nodeTemplate=u.first),n.iGM(u=n.CRH())&&(o.groupNodeTemplate=u.first),n.iGM(u=n.CRH())&&(o.customGraphEdgeTemplate=u.first)}},viewQuery:function(i,o){if(1&i&&(n.Gf(Vr,5,n.SBq),n.Gf(Vr,5)),2&i){let a;n.iGM(a=n.CRH())&&(o.listOfNodeElement=a),n.iGM(a=n.CRH())&&(o.listOfNodeComponent=a)}},hostVars:4,hostBindings:function(i,o){2&i&&n.ekj("nz-graph",!0)("nz-graph-auto-size",o.nzAutoSize)},inputs:{nzGraphData:"nzGraphData",nzRankDirection:"nzRankDirection",nzGraphLayoutConfig:"nzGraphLayoutConfig",nzAutoSize:"nzAutoSize"},outputs:{nzGraphInitialized:"nzGraphInitialized",nzGraphRendered:"nzGraphRendered",nzNodeClick:"nzNodeClick"},exportAs:["nzGraph"],features:[n._Bn([{provide:su,useExisting:t}]),n.TTD],ngContentSelectors:Wg,decls:7,vars:5,consts:[["width","100%","height","100%"],["nz-graph-defs",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["groupTemplate",""],[1,"core"],[1,"nz-graph-edges"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"nz-graph-nodes"],["nz-graph-edge","",1,"nz-graph-edge",3,"edge","edgeType","customTemplate"],["class","nz-graph-node","nz-graph-node","",3,"node","customTemplate",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["nz-graph-node","",1,"nz-graph-node",3,"node","customTemplate"]],template:function(i,o){if(1&i&&(n.F$t(),n.Hsn(0),n.O4$(),n.TgZ(1,"svg",0),n._UZ(2,"defs",1),n.TgZ(3,"g"),n.GkF(4,2),n.qZA()(),n.YNc(5,Qg,6,6,"ng-template",null,3,n.W1O)),2&i){const a=n.MAs(6);n.xp6(3),n.uIk("transform",o.transformStyle),n.xp6(1),n.Q6J("ngTemplateOutlet",a)("ngTemplateOutletContext",n.VKq(3,Jg,o.renderInfo))}},dependencies:[K.sg,K.O5,K.tP,t0,Vr,n0],encapsulation:2,changeDetection:0})}return(0,Yi.gn)([(0,Qi.yF)()],t.prototype,"nzAutoSize",void 0),t})(),a0=(()=>{class t{static#t=this.\u0275fac=function(i){return new(i||t)};static#n=this.\u0275mod=n.oAB({type:t});static#e=this.\u0275inj=n.cJS({imports:[K.ez,wt.PV,Lt.j,ht.g]})}return t})();var lu=b(4119),Ie=b(7225);const u0=[a0,lu.sL,wt.PV,Ie.aF,ht.g];var Re=b(379),je=b(5393),fu=b(8101),Pe=b(3185),pu=b(8332),Yr=b(1687),gu=b(6223),s0=b(2987);function c0(t,e){if(1&t){const r=n.EpF();n.ynx(0),n.O4$(),n.TgZ(1,"foreignObject",10),n.kcU(),n.TgZ(2,"div",11),n.NdJ("click",function(){const a=n.CHM(r).$implicit,u=n.oxw();return n.KtG(u.focusNode(a.id||a.name))}),n.TgZ(3,"div",12),n._uU(4),n.qZA()()(),n.BQk()}if(2&t){const r=e.$implicit;n.xp6(1),n.uIk("width",r.width)("height",r.height),n.xp6(3),n.hij(" ",r.name," ")}}function h0(t,e){if(1&t){const r=n.EpF();n.ynx(0),n.O4$(),n.TgZ(1,"foreignObject",10),n.kcU(),n.TgZ(2,"div",13),n.NdJ("click",function(){const a=n.CHM(r).$implicit,u=n.oxw();return n.KtG(u.focusNode(a.id||a.name))}),n.TgZ(3,"div",12),n._uU(4),n.qZA()()(),n.BQk()}if(2&t){const r=e.$implicit;n.xp6(1),n.uIk("width",r.width)("height",r.height),n.xp6(3),n.hij(" ",r.name," ")}}let mu=(()=>{class t{constructor(){this.zoom=.5,this.testDef={nodes:[{id:"0",label:"0"},{id:"1",label:"1"},{id:"2",label:"2"},{id:"3",label:"3"},{id:"4",label:"4"},{id:"5",label:"5"},{id:"6",label:"6"},{id:"7",label:"7"},{id:"8",label:"8"},{id:"9",label:"9"},{id:"10",label:"10"},{id:"11",label:"11"},{id:"12",label:"12"},{id:"13",label:"13"},{id:"14",label:"14"},{id:"15",label:"15"}],edges:[{v:"0",w:"1"},{v:"0",w:"2"},{v:"0",w:"3"},{v:"0",w:"4"},{v:"0",w:"5"},{v:"0",w:"7"},{v:"0",w:"8"},{v:"0",w:"9"},{v:"0",w:"10"},{v:"0",w:"11"},{v:"0",w:"13"},{v:"0",w:"14"},{v:"0",w:"15"},{v:"2",w:"3"},{v:"4",w:"5"},{v:"4",w:"6"},{v:"5",w:"6"},{v:"7",w:"13"},{v:"8",w:"14"},{v:"9",w:"10"},{v:"10",w:"14"},{v:"10",w:"12"},{v:"11",w:"14"},{v:"12",w:"13"}],compound:{G0:["4","5","15"]}},this.rankDirection="TB",this.graphData=new Kg(this.testDef)}expand(r){this.graphData.expand(r)}collapse(r){this.graphData.collapse(r)}
1expandAll(){this.graphData.expandAll()}collapseAll(){this.graphData.collapseAll()}fit(){this.zoomController?.fitCenter()}focusNode(r){this.zoomController?.focus(r)}graphInitialized(r){this.zoomController?.fitCenter()}static#t=this.\u0275fac=function(i){return new(i||t)};static#n=this.\u0275cmp=n.Xpm({type:t,selectors:[["nz-demo-graph-customized"]],viewQuery:function(i,o){if(1&i&&(n.Gf(du,7),n.Gf(Hr,7)),2&i){let a;n.iGM(a=n.CRH())&&(o.nzGraphComponent=a.first),n.iGM(a=n.CRH())&&(o.zoomController=a.first)}},decls:18,vars:4,consts:[["nz-button","","nzType","default",3,"click"],["nz-button","","nzType","primary",3,"click"],[3,"ngModel","ngModelChange"],["nz-radio-button","","nzValue","LR"],["nz-radio-button","","nzValue","RL"],["nz-radio-button","","nzValue","TB"],["nz-radio-button","","nzValue","BT"],["nz-graph-zoom","",3,"nzGraphData","nzAutoSize","nzRankDirection","nzGraphInitialized"],[4,"nzGraphNode"],[4,"nzGraphGroupNode"],["x","0","y","0"],[1,"graph-node","leaf-node",3,"click"],[1,"title"],[1,"graph-node","group-node",3,"click"]],template:function(i,o){1&i&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return o.expandAll()}),n._uU(1,"ExpandAll"),n.qZA(),n.TgZ(2,"button",0),n.NdJ("click",function(){return o.collapseAll()}),n._uU(3,"CollapseAll"),n.qZA(),n.TgZ(4,"button",1),n.NdJ("click",function(){return o.fit()}),n._uU(5,"Fit"),n.qZA(),n.TgZ(6,"nz-radio-group",2),n.NdJ("ngModelChange",function(u){return o.rankDirection=u}),n.TgZ(7,"label",3),n._uU(8,"LR"),n.qZA(),n.TgZ(9,"label",4),n._uU(10,"RL"),n.qZA(),n.TgZ(11,"label",5),n._uU(12,"TB"),n.qZA(),n.TgZ(13,"label",6),n._uU(14,"BT"),n.qZA()(),n.TgZ(15,"nz-graph",7),n.NdJ("nzGraphInitialized",function(u){return o.graphInitialized(u)}),n.YNc(16,c0,5,3,"ng-container",8)(17,h0,5,3,"ng-container",9),n.qZA()),2&i&&(n.xp6(6),n.Q6J("ngModel",o.rankDirection),n.xp6(9),n.Q6J("nzGraphData",o.graphData)("nzAutoSize",!0)("nzRankDirection",o.rankDirection))},dependencies:[gu.JJ,gu.On,du,cu,uu,Hr,lu.ix,Yr.w,s0.dQ,Ie.Of,Ie.Bq,Ie.Dg],styles:["nz-radio-group[_ngcontent-%COMP%]{float:right}button[_ngcontent-%COMP%]{margin-right:12px}nz-graph[_ngcontent-%COMP%]{height:400px}.graph-node[_ngcontent-%COMP%]{border:1px solid #8cc8ff;cursor:pointer;font-size:12px;height:100%;line-height:1.2;border-radius:0;text-align:center;word-break:break-all;display:block}.group-node[_ngcontent-%COMP%]{border-width:4px}.leaf-node[_ngcontent-%COMP%]{color:#1a90ff;background:rgba(26,144,255,.15);min-height:30px;height:-moz-fit-content;height:fit-content}.title[_ngcontent-%COMP%]{padding:4px;word-break:keep-all}"]})}return t})(),d0=(()=>{class t{constructor(){this.expanded=!1}goLink(r){window&&(window.location.hash=r)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(r=>{r.nzExpanded=this.expanded,r.expandCode(this.expanded),r.check()})}static#t=this.\u0275fac=function(i){return new(i||t)};static#n=this.\u0275cmp=n.Xpm({type:t,selectors:[["nz-demo-graph"]],viewQuery:function(i,o){if(1&i&&n.Gf(Re.G,5),2&i){let a;n.iGM(a=n.CRH())&&(o.codeBoxes=a)}},decls:1015,vars:8,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzAffix","nzClick"],["nzHref","#components-graph-demo-customized","nzTitle","\u81ea\u5b9a\u4e49"],["nzHref","#api","nzTitle","API"],[1,"markdown"],[1,"subtitle"],[1,"widget"],["aria-label","Edit this page on Github","href","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/graph/doc/index.zh-CN.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nz-icon","","nzType","edit"],[2,"border-color","#faad14"],["id","\u4f55\u65f6\u4f7f\u7528"],["onclick","window.location.hash = '\u4f55\u65f6\u4f7f\u7528'",1,"anchor"],["id","\u5f15\u5165\u6a21\u5757"],["onclick","window.location.hash = '\u5f15\u5165\u6a21\u5757'",1,"anchor"],[1,"language-ts"],[1,"token","keyword"],[1,"token","punctuation"],[1,"token","string"],["id","\u5f15\u5165\u6837\u5f0f"],["onclick","window.location.hash = '\u5f15\u5165\u6837\u5f0f'",1,"anchor"],[1,"language-less"],[1,"token","variable"],["nz-icon","","nzType","appstore","nz-tooltip","","nzTooltipTitle","\u5c55\u5f00\u5168\u90e8\u4ee3\u7801",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan"],["nzTitle","\u81ea\u5b9a\u4e49","nzSelector","nz-demo-graph-customized","nzGenerateCommand","ng g ng-zorro-antd:graph-customized <name>","nzComponentName","NzDemoGraphCustomizedComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["demo",""],["intro",""],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],[1,"language-sh"],[1,"token","operator"],["id","nz-graph"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-graph'",1,"anchor"],["id","\u7ec4\u4ef6\u65b9\u6cd5"],["onclick","window.location.hash = '\u7ec4\u4ef6\u65b9\u6cd5'",1,"anchor"],["id","[nz-graph-zoom]"],[1,"api-type-label","directive"],["onclick","window.location.hash = '[nz-graph-zoom]'",1,"anchor"],["id","nzgraphd
1ata"],["onclick","window.location.hash = 'nzgraphdata'",1,"anchor"],["id","nzgraphlayoutconfig"],["onclick","window.location.hash = 'nzgraphlayoutconfig'",1,"anchor"],["id","nzgraphdatadef"],["onclick","window.location.hash = 'nzgraphdatadef'",1,"anchor"],["id","nzgraphnode"],["onclick","window.location.hash = 'nzgraphnode'",1,"anchor"],["id","nzgraphedge"],["onclick","window.location.hash = 'nzgraphedge'",1,"anchor"],["id","nzgraphgroupnode"],["onclick","window.location.hash = 'nzgraphgroupnode'",1,"anchor"],["id","[nzgraphnode]"],["onclick","window.location.hash = '[nzgraphnode]'",1,"anchor"],[1,"language-html"],[1,"token","tag"],[1,"token","attr-name"],[1,"token","attr-value"],["id","[nzgraphgroupnode]"],["onclick","window.location.hash = '[nzgraphgroupnode]'",1,"anchor"],["id","[nzgraphedge]"],["onclick","window.location.hash = '[nzgraphedge]'",1,"anchor"],[1,"token","namespace"],["id","\u6837\u5f0f"],["onclick","window.location.hash = '\u6837\u5f0f'",1,"anchor"],["id","\u8bf4\u660e"],["onclick","window.location.hash = '\u8bf4\u660e'",1,"anchor"],["href","https://www.npmjs.com/package/dagre-compound","target","_blank","rel","noopener"],["href","https://github.com/angular/components/blob/master/src/cdk/collections/selection-model.ts","target","_blank","rel","noopener"]],template:function(i,o){1&i&&(n.TgZ(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),n.NdJ("nzClick",function(u){return o.goLink(u)}),n._UZ(3,"nz-link",2)(4,"nz-link",3),n.qZA()(),n.TgZ(5,"section",4)(6,"h1"),n._uU(7,"Graph"),n.TgZ(8,"span",5),n._uU(9,"\u6d41\u7a0b\u56fe"),n.qZA(),n._UZ(10,"span",6),n.TgZ(11,"a",7),n._UZ(12,"span",8),n.qZA()(),n.TgZ(13,"section",4),n.IAx(),n.TgZ(14,"blockquote",9)(15,"p"),n._uU(16,"NG-ZORRO \u5b9e\u9a8c\u6027\u529f\u80fd\u662f\u6307\u5df2\u53d1\u5e03\u4f46\u4e0d\u7a33\u5b9a\u6216\u8005\u8fd8\u672a\u51c6\u5907\u597d\u7528\u4e8e\u751f\u4ea7\u73af\u5883\u7684\u529f\u80fd\u3002"),n.qZA(),n.TgZ(17,"p"),n._uU(18,"\u5f00\u53d1\u8005\u6216\u7528\u6237\u53ef\u4ee5\u9009\u62e9\u5728\u6b63\u5f0f\u53d1\u5e03\u524d\u4f7f\u7528\u8fd9\u4e9b\u529f\u80fd\uff0c\u4f46\u662f\u6bcf\u6b21\u53d1\u5e03\u7248\u672c\u65f6\u90fd\u53ef\u80fd\u5b58\u5728 "),n.TgZ(19,"strong"),n._uU(20,"breaking changes"),n.qZA(),n._uU(21,"\u3002"),n.qZA()(),n.TgZ(22,"h2",10)(23,"span"),n._uU(24,"\u4f55\u65f6\u4f7f\u7528"),n.qZA(),n.TgZ(25,"a",11),n._uU(26,"#"),n.qZA()(),n.TgZ(27,"p"),n._uU(28,"\u9700\u8981\u5728\u7f51\u9875\u4e0a\u6e32\u67d3 GRAPH \u56fe\u65f6\u4f7f\u7528\u3002"),n.qZA(),n.TgZ(29,"h3",12)(30,"span"),n._uU(31,"\u5f15\u5165\u6a21\u5757"),n.qZA(),n.TgZ(32,"a",13),n._uU(33,"#"),n.qZA()(),n.TgZ(34,"blockquote")(35,"p"),n._uU(36,"\u76ee\u524d\u7ec4\u4ef6\u4f9d\u8d56 d3-drag d3-zoom d3-selection d3-transition d3-shape \u7528\u4e8e\u7ed8\u5236\u76f8\u5173\u5c5e\u6027\uff08\u53ef\u80fd\u4f1a\u5728\u4e4b\u540e\u7684\u7248\u672c\u4e2d\u9010\u6b65\u66ff\u6362\uff09"),n.qZA()(),n.TgZ(37,"pre",14)(38,"code")(39,"span",15),n._uU(40,"import"),n.qZA(),n._uU(41," "),n.TgZ(42,"span",16),n._uU(43,"{"),n.qZA(),n._uU(44," NzGraphModule "),n.TgZ(45,"span",16),n._uU(46,"}"),n.qZA(),n._uU(47," "),n.TgZ(48,"span",15),n._uU(49,"from"),n.qZA(),n._uU(50," "),n.TgZ(51,"span",17),n._uU(52,"'ng-zorro-antd/graph'"),n.qZA(),n.TgZ(53,"span",16),n._uU(54,";"),n.qZA()()(),n.TgZ(55,"h3",18)(56,"span"),n._uU(57,"\u5f15\u5165\u6837\u5f0f"),n.qZA(),n.TgZ(58,"a",19),n._uU(59,"#"),n.qZA()(),n.TgZ(60,"pre",20)(61,"code")(62,"span",21),n._uU(63,"@import"),n.qZA(),n._uU(64," "),n.TgZ(65,"span",17),n._uU(66,'"node_modules/ng-zorro-antd/graph/style/entry.less"'),n.qZA(),n.TgZ(67,"span",16),n._uU(68,";"),n.qZA()()(),n.fQ9(),n.qZA(),n.TgZ(69,"h2")(70,"span"),n._uU(71,"\u4ee3\u7801\u6f14\u793a"),n.qZA(),n.TgZ(72,"span",22),n.NdJ("click",function(){return o.expandAllCode()}),n.qZA()()(),n.TgZ(73,"div",23)(74,"div",24)(75,"nz-code-box",25),n._UZ(76,"nz-demo-graph-customized",26),n.TgZ(77,"div",27),n.IAx(),n.TgZ(78,"p"),n._uU(79,"\u81ea\u5b9a\u4e49 node \u6837\u5f0f\u3002"),n.qZA(),n.fQ9(),n.qZA()()()(),n.TgZ(80,"section",28),n.IAx(),n.TgZ(81,"h2",29)(82,"span"),n._uU(83,"API"),n.qZA(),n.TgZ(84,"a",30),n._uU(85,"#"),n.qZA()(),n.TgZ(86,"p"),n._uU(87,"\u5b89\u88c5\u4f9d\u8d56\uff1a"),n.qZA(),n.TgZ(88,"pre",31)(89,"code"),n._uU(90,"npm install dagre"),n.TgZ(91,"span",32),n._uU(92,"-"),n.qZA(),n._uU(93,"compound dagre d3"),n.TgZ(94,"span",32),n._uU(95,"-"),n.qZA(),n._uU(96,"transition d3"),n.TgZ(97,"span",32),n._uU(98,"-"),n.qZA(),n._uU(99,"zoom d3"),n.TgZ(100,"span",32),n._uU(101,"-"),n.qZA(),n._uU(102,"selection d3"),n.TgZ(103,"span",32),n._uU(104,"-"),n.qZA(),n._uU(105,"shape d3"),n.TgZ(106,"span",32),n._uU(107,"-"),n.qZA(),n._uU(108,"drag "),n.TgZ(109,"span",21),n._uU(110,"@types"),n.qZA(),n.TgZ(111,"span",32),n._uU(112,"/"),n.qZA(),n._uU(113,"d3"),n.qZA()(),n.TgZ(114,"h3",33)(115,"span"),n._uU(116,"nz-graph"),n.qZA(),n.TgZ(117,"label",34),n._uU(118,"component"),n.qZA(),n.TgZ(119,"a",35),n._uU(120,"#"),n.qZA()(),n.TgZ(121,"table")(122,"thead")(123,"tr")(124,"th"),n._uU(125,"\u53c2\u6570"),n.qZA(),n.TgZ(126,"th"),n._uU(127,"\u8bf4\u660e"),n.qZA(),n.TgZ(128,"th"),n._uU(129,"\u7c7b\u578b"),n.qZA(),n.TgZ(130,"th"),n._uU(131,"\u9ed8\u8ba4\u503c"),n.qZA()()(),n.TgZ(132,"tbody")(133,"tr")(134,"td")(135,"code"),n._uU(136,"[nzGraphData]"),n.qZA()(),n.TgZ(137,"td"),n._uU(138,"\u6570\u636e\u6e90"),n.qZA(),n.TgZ(139,"td")(140,"code"),n._uU(141,"NzGraphData(data: NzGraphDataDef?)"),n.qZA()(),n.TgZ(142,"td"),n._uU(143,"``"),n.qZA()(),n.TgZ(144,"tr")(145,"td")(146,"code"),n._uU(147,"[nzRankDirection]"),n.qZA()(),n.TgZ(148,"td"),n._uU(149,"\u56fe\u65b9\u5411"),n.qZA(),n.TgZ(150,"td")(151,"code"),n._uU(152,"TB"),n.qZA(),n._uU(153," | "),n.TgZ(154,"code"),n._uU(155,"BT"),n.qZA(),n._uU(156," | "),n.TgZ(157,"code"),n._uU(158,"LR"),n.qZA(),n._uU(159," | "),n.TgZ(160,"code"),n._uU(161,"RL"),n.qZA()(),n.TgZ(162,"td")(163,"code"),n._uU(164,"LR"),n.qZA()()(),n.TgZ(165,"tr")(166,"td")(167,"code"),n._uU(168,"[nzAutoSize]"),n.qZA()(),n.TgZ(169,"td"),n._uU(170,"\u662f\u5426\u6839\u636e\u8282\u70b9\u5185\u5bb9\u81ea\u9002\u5e94\u9ad8\u5ea6(\u9ed8\u8ba4\u7b49\u9ad8)"),n.qZA(),n.TgZ(171,"td")(172,"code"),n._uU(173,"boolean"),n.qZA()(),n.TgZ(174,"td")(175,"code"),n._uU(176,"false"),n.qZA()()(),n.TgZ(177,"tr")(178,"td")(179,"code"),n._uU(180,"[nzGraphLayoutConfig]"),n.qZA()(),n.TgZ(181,"td"),n._uU(182,"\u5168\u5c40\u914d\u7f6e"),n.qZA(),n.TgZ(183,"td")(184,"code"),n._uU(185,"NzGraphLayoutConfig"),n.qZA()(),n.TgZ(186,"td"),n._uU(187,"``"),n.qZA()()()(),n.TgZ(188,"h4",36)(189,"span"),n._uU(190,"\u7ec4\u4ef6\u65b9\u6cd5"),n.qZA(),n.TgZ(191,"a",37),n._uU(192,"#"),n.qZA()(),n.TgZ(193,"table")(194,"thead")(195,"tr")(196,"th"),n._uU(197,"\u540d\u79f0"),n.qZA(),n.TgZ(198,"th"),n._uU(199,"\u63cf\u8ff0"),n.qZA()()(),n.TgZ(200,"tbody")(201,"tr")(202,"td")(203,"code"),n._uU(204,"fitCenter()"),n.qZA()(),n.TgZ(205,"td"),n._uU(206,"\u5c45\u4e2d\u56fe\u5e76\u81ea\u9002\u5e94\u7f29\u653e\uff08\u5982\u4f7f\u7528\u7f29\u653e\u529f\u80fd\u8bf7\u4f7f\u7528 "),n.TgZ(207,"code"),n._uU(208,"nz-graph-zoom"),n.qZA(),n._uU(209,"\uff09"),n.qZA()()()(),n.TgZ(210,"h3",38)(211,"span"),n._uU(212,"[nz-graph-zoom]"),n.qZA(),n.TgZ(213,"label",39),n._uU(214,"directive"),n.qZA(),n.TgZ(215,"a",40),n._uU(216,"#"),n.qZA()(),n.TgZ(217,"table")(218,"thead")(219,"tr")(220,"th"),n._uU(221,"\u53c2\u6570"),n.qZA(),n.TgZ(222,"th"),n._uU(223,"\u8bf4\u660e"),n.qZA(),n.TgZ(224,"th"),n._uU(225,"\u7c7b\u578b"),n.qZA(),n.TgZ(226,"th"),n._uU(227,"\u9ed8\u8ba4\u503c"),n.qZA()()(),n.TgZ(228,"tbody")(229,"tr")(230,"td")(231,"code"),n._uU(232,"[(nzZoom)]"),n.qZA()(),n.TgZ(233,"td"),n._uU(234,"\u7f29\u653e\u6bd4\u4f8b"),n.qZA(),n.TgZ(235,"td")(236,"code"),n._uU(237,"number"),n.qZA()(),n.TgZ(238,"td")(239,"code"),n._uU(240,"1"),n.qZA()()(),n.TgZ(241,"tr")(242,"td")(243,"code"),n._uU(244,"[nzMinZoom]"),n.qZA()(),n.TgZ(245,"td"),n._uU(246,"\u6700\u5c0f\u7f29\u653e"),n.qZA(),n.TgZ(247,"td")(248,"code"),n._uU(249,"number"),n.qZA()(),n.TgZ(250,"td")(251,"code"),n._uU(252,"0.1"),n.qZA()()(),n.TgZ(253,"tr")(254,"td")(255,"code"),n._uU(256,"[nzMaxZoom]"),n.qZA()(),n.TgZ(257,"td"),n._uU(258,"\u6700\u5927\u7f29\u653e"),n.qZA(),n.TgZ(259,"td")(260,"code"),n._uU(261,"number"),n.qZA()(),n.TgZ(262,"td")(263,"code"),n._uU(264,"10"),n.qZA()()(),n.TgZ(265,"tr")(266,"td")(267,"code"),n._uU(268,"(nzTransformEvent)"),n.qZA()(),n.TgZ(269,"td"),n._uU(270,"\u7f29\u653e\u4e8b\u4ef6"),n.qZA(),n.TgZ(271,"td")(272,"code"),n._uU(273,"() => NzZoomTransform"),n.qZA()(),n.TgZ(274,"td"),n._uU(275,"``"),n.qZA()(),n.TgZ(276,"tr")(277,"td")(278,"code"),n._uU(279,"(fitCenter)"),n.qZA()(),n.TgZ(280,"td"),n._uU(281,"\u5c45\u4e2d\u56fe\u5e76\u81ea\u9002\u5e94\u7f29\u653e"),n.qZA(),n.TgZ(282,"td")(283,"code"),n._uU(284,"() => void"),n.qZA()(),n.TgZ(285,"td")(286,"code"),n._uU(287,"void"),n.qZA()()(),n.TgZ(288,"tr")(289,"td")(290,"code"),n._uU(291,"(focus)"),n.qZA()(),n.TgZ(292,"td"),n._uU(293,"\u5c45\u4e2d\u5355\u4e2a\u8282\u70b9"),n.qZA(),n.TgZ(294,"td")(295,"code"),n._uU(296,"(e: SVGGElement, duration: number) => void"),n.qZA()(),n.TgZ(297,"td")(298,"code"),n._uU(299,"void"),n.qZA()()()()(),n.TgZ(300,"h4",41)(301,"span"),n._uU(302,"NzGraphData"),n.qZA(),n.TgZ(303,"a",42),n._uU(304,"#"),n.qZA()(),n.TgZ(305,"table")(306,"thead")(307,"tr")(308,"th"),n._uU(309,"\u5c5e\u6027/\u65b9\u6cd5"),n.qZA(),n.TgZ(310,"th"),n._uU(311,"\u8bf4\u660e"),n.qZA(),n.TgZ(312,"th"),n._uU(313,"\u7c7b\u578b"),n.qZA()()(),n.TgZ(314,"tbody")(315,"tr")(316,"td")(317,"code"),n._uU(318,"setData"),n.qZA()(),n.TgZ(319,"td"),n._uU(320,"\u8bbe\u7f6e\u6570\u636e\u6e90"),n.qZA(),n.TgZ(321,"td")(322,"code"),n._uU(323,"(data: NzGraphDataDef) => void"),n.qZA()()(),n.TgZ(324,"tr")(325,"td")(326,"code"),n._uU(327,"toggle"),n.qZA()(),n.TgZ(328,"td"),n._uU(329,"\u6536\u8d77/\u5c55\u5f00 group \u8282\u70b9"),n.qZA(),n.TgZ(330,"td")(331,"code"),n._uU(332,"(nodeName: string) => void"),n.qZA()()(),n.TgZ(333,"tr")(334,"td")(335,"code"),n._uU(336,"expand"),n.qZA()(),n.TgZ(337,"td"),n._uU(338,"\u5c55\u5f00 group \u8282\u70b9"),n.qZA(),n.TgZ(339,"td")(340,"code"),n._uU(341,"(nodeName: string) => void"),n.qZA()()(),n.TgZ(342,"tr")(343,"td")(344,"code"),n._uU(345,"expandAll"),n.qZA()(),n.TgZ(346,"td"),n._uU(347,"\u5c55\u5f00\u5168\u90e8 group \u8282\u70b9"),n.qZA(),n.TgZ(348,"td")(349,"code"),n._uU(350,"(nodeName: string) => void"),n.qZA()()(),n.TgZ(351,"tr")(352,"td")(353,"code"),n._uU(354,"collapse"),n.qZA()(),n.TgZ(355,"td"),n._uU(356,"\u6536\u8d77\u5168\u90e8 group \u8282\u70b9"),n.qZA(),n.TgZ(357,"td")(358,"code"),n._uU(359,"(nodeName: string) => void"),n.qZA()()(),n.TgZ(360,"tr")(361,"td")(362,"code"),n._uU(363,"isExpand"),n.qZA()(),n.TgZ(364,"td"),n._uU(365,"\u83b7\u53d6 group \u8282\u70b9\u5c55\u5f00\u72b6\u6001"),n.qZA(),n.TgZ(366,"td")(367,"code"),n._uU(368,"(nodeName: string) => boolean"),n.qZA()()(),n.TgZ(369,"tr")(370,"td")(371,"code"),n._uU(372,"expansionModel"),n.qZA()(),n.TgZ(373,"td"),n._uU(374,"\u5c55\u5f00\u8282\u70b9\u5b58\u50a8\u5bf9\u8c61"),n.qZA(),n.TgZ(375,"td")(376,"code"),n._uU(377,"SelectionModel<string>"),n.qZA()()()()(),n.TgZ(378,"h3",43)(379,"span"),n._uU(380,"NzGraphLayoutConfig"),n.qZA(),n.TgZ(381,"a",44),n._uU(382,"#"),n.qZA()(),n.TgZ(383,"table")(384,"thead")(385,"tr")(386,"th"),n._uU(387,"\u5c5e\u6027"),n.qZA(),n.TgZ(388,"th"),n._uU(389,"\u8bf4\u660e"),n.qZA(),n.TgZ(390,"th"),n._uU(391,"\u7c7b\u578b"),n.qZA()()(),n.TgZ(392,"tbody")(393,"tr")(394,"td")(395,"code"),n._uU(396,"layout"),n.qZA()(),n.TgZ(397,"td"),n._uU(398,"\u5e03\u5c40\u53c2\u6570"),n.qZA(),n.TgZ(399,"td")(400,"code"),n._uU(401,"{ nodeSep: number; rankSep: number; edgeSep: number; }"),n.qZA()()(),n.TgZ(402,"tr")(403,"td")(404,"code"),n._uU(405,"subScene"),n.qZA()(),n.TgZ(406,"td"),n._uU(407,"group \u8282\u70b9"),n.qZA(),n.TgZ(408,"td")(409,"code"),n._uU(410,"{ paddingTop: number; paddingBottom: number; paddingLeft: number; paddingRight: number; labelHeight: number; }"),n.qZA()()(),n.TgZ(411,"tr")(412,"td")(413,"code"),n._uU(414,"defaultCompoundNode"),n.qZA()(),n.TgZ(415,"td"),n._uU(416,"group \u8282\u70b9 size"),n.qZA(),n.TgZ(417,"td")(418,"code"),n._uU(419,"{ width: number; height: number; maxLabelWidth: number; }"),n.qZA()()(),n.TgZ(420,"tr")(421,"td")(422,"code"),n._uU(423,"defaultNode"),n.qZA()(),n.TgZ(424,"td"),n._uU(425,"\u9ed8\u8ba4\u8282\u70b9 size"),n.qZA(),n.TgZ(426,"td")(427,"code"),n._uU(428,"{ width: number; height: number; labelOffset: number; maxLabelWidth: number; }"),n.qZA()()()()(),n.TgZ(429,"h4",45)(430,"span"),n._uU(431,"NzGraphDataDef"),n.qZA(),n.TgZ(432,"a",46),n._uU(433,"#"),n.qZA()(),n.TgZ(434,"table")(435,"thead")(436,"tr")(437,"th"),n._uU(438,"\u5c5e\u6027"),n.qZA(),n.TgZ(439,"th"),n._uU(440,"\u8bf4\u660e"),n.qZA(),n.TgZ(441,"th"),n._uU(442,"\u7c7b\u578b"),n.qZA(),n.TgZ(443,"th"),n._uU(444,"\u9ed8\u8ba4\u503c"),n.qZA()()(),n.TgZ(445,"tbody")(446,"tr")(447,"td")(448,"code"),n._uU(449,"nodes"),n.qZA()(),n.TgZ(450,"td"),n._uU(451,"\u8282\u70b9"),n.qZA(),n.TgZ(452,"td")(453,"code"),n._uU(454,"Array<{ id: number|string; label?: string; width?: number; height?: number; [key: string]: any; }>"),n.qZA()(),n.TgZ(455,"td")(456,"code"),n._uU(457,"[]"),n.qZA()()(),n.TgZ(458,"tr")(459,"td")(460,"code"),n._uU(461,"edges"),n.qZA()(),n.TgZ(462,"td"),n._uU(463,"\u7ebf"),n.qZA(),n.TgZ(464,"td")(465,"code"),n._uU(466,"Array<{ v: number|string; w: number|string; [key: string]: any; }>"),n.qZA()(),n.TgZ(467,"td")(468,"code"),n._uU(469,"[]"),n.qZA()()(),n.TgZ(470,"tr")(471,"td")(472,"code"),n._uU(473,"compound"),n.qZA()(),n.TgZ(474,"td"),n._uU(475,"\u5206\u7ec4"),n.qZA(),n.TgZ(476,"td")(477,"code"),n._uU(478,"{ [parent: string]: string[]; }"),n.qZA()(),n.TgZ(479,"td")(480,"code"),n._uU(481,"null"),n.qZA()()()()(),n.TgZ(482,"h4",47)(483,"span"),n._uU(484,"NzGraphNode"),n.qZA(),n.TgZ(485,"a",48),n._uU(486,"#"),n.qZA()(),n.TgZ(487,"table")(488,"thead")(489,"tr")(490,"th"),n._uU(491,"\u5c5e\u6027"),n.qZA(),n.TgZ(492,"th"),n._uU(493,"\u8bf4\u660e"),n.qZA(),n.TgZ(494,"th"),n._uU(495,"\u7c7b\u578b"),n.qZA()()(),n.TgZ(496,"tbody")(497,"tr")(498,"td")(499,"code"),n._uU(500,"id"),n.qZA()(),n.TgZ(501,"td"),n._uU(502,"id"),n.qZA(),n.TgZ(503,"td")(504,"code"),n._uU(505,"number|string"),n.qZA()()(),n.TgZ(506,"tr")(507,"td")(508,"code"),n._uU(509,"label?"),n.qZA()(),n.TgZ(510,"td"),n._uU(511,"\u8282\u70b9\u5185\u5bb9"),n.qZA(),n.TgZ(512,"td")(513,"code"),n._uU(514,"string"),n.qZA()()(),n.TgZ(515,"tr")(516,"td")(517,"code"),n._uU(518,"name"),n.qZA()(),n.TgZ(519,"td"),n._uU(520,"\u8282\u70b9\u540d\u79f0"),n.qZA(),n.TgZ(521,"td")(522,"code"),n._uU(523,"number|string"),n.qZA()()(),n.TgZ(524,"tr")(525,"td")(526,"code"),n._uU(527,"type"),n.qZA()(),n.TgZ(528,"td"),n._uU(529,"\u8282\u70b9\u7c7b\u578b(\u7ec4: 0, \u8282\u70b9: 1)"),n.qZA(),n.TgZ(530,"td")(531,"code"),n._uU(532,"number"),n.qZA()()(),n.TgZ(533,"tr")(
1534,"td")(535,"code"),n._uU(536,"parentNodeName"),n.qZA()(),n.TgZ(537,"td"),n._uU(538,"\u7236\u8282\u70b9\u540d\u79f0"),n.qZA(),n.TgZ(539,"td")(540,"code"),n._uU(541,"string"),n.qZA()()(),n.TgZ(542,"tr")(543,"td")(544,"code"),n._uU(545,"coreBox"),n.qZA()(),n.TgZ(546,"td"),n._uU(547,"\u5e03\u5c40\u9ad8\u5bbd"),n.qZA(),n.TgZ(548,"td")(549,"code"),n._uU(550,"{ width: number; height: number; }"),n.qZA()()(),n.TgZ(551,"tr")(552,"td")(553,"code"),n._uU(554,"xOffset"),n.qZA()(),n.TgZ(555,"td"),n._uU(556,"x\u504f\u79fb"),n.qZA(),n.TgZ(557,"td")(558,"code"),n._uU(559,"number"),n.qZA()()(),n.TgZ(560,"tr")(561,"td")(562,"code"),n._uU(563,"yOffset"),n.qZA()(),n.TgZ(564,"td"),n._uU(565,"y\u504f\u79fb"),n.qZA(),n.TgZ(566,"td")(567,"code"),n._uU(568,"number"),n.qZA()()(),n.TgZ(569,"tr")(570,"td")(571,"code"),n._uU(572,"width"),n.qZA()(),n.TgZ(573,"td"),n._uU(574,"\u5bbd\u5ea6"),n.qZA(),n.TgZ(575,"td")(576,"code"),n._uU(577,"number"),n.qZA()()(),n.TgZ(578,"tr")(579,"td")(580,"code"),n._uU(581,"height"),n.qZA()(),n.TgZ(582,"td"),n._uU(583,"\u9ad8\u5ea6"),n.qZA(),n.TgZ(584,"td")(585,"code"),n._uU(586,"number"),n.qZA()()(),n.TgZ(587,"tr")(588,"td")(589,"code"),n._uU(590,"[key: string]"),n.qZA()(),n.TgZ(591,"td"),n._uU(592,"\u7528\u6237\u8f93\u5165"),n.qZA(),n.TgZ(593,"td")(594,"code"),n._uU(595,"any"),n.qZA()()()()(),n.TgZ(596,"h4",49)(597,"span"),n._uU(598,"NzGraphEdge"),n.qZA(),n.TgZ(599,"a",50),n._uU(600,"#"),n.qZA()(),n.TgZ(601,"table")(602,"thead")(603,"tr")(604,"th"),n._uU(605,"\u5c5e\u6027"),n.qZA(),n.TgZ(606,"th"),n._uU(607,"\u8bf4\u660e"),n.qZA(),n.TgZ(608,"th"),n._uU(609,"\u7c7b\u578b"),n.qZA()()(),n.TgZ(610,"tbody")(611,"tr")(612,"td")(613,"code"),n._uU(614,"id"),n.qZA()(),n.TgZ(615,"td"),n._uU(616,"id"),n.qZA(),n.TgZ(617,"td")(618,"code"),n._uU(619,"string"),n.qZA()()(),n.TgZ(620,"tr")(621,"td")(622,"code"),n._uU(623,"v"),n.qZA()(),n.TgZ(624,"td"),n._uU(625,"\u8d77\u59cb\u8282\u70b9"),n.qZA(),n.TgZ(626,"td")(627,"code"),n._uU(628,"number|string"),n.qZA()()(),n.TgZ(629,"tr")(630,"td")(631,"code"),n._uU(632,"w"),n.qZA()(),n.TgZ(633,"td"),n._uU(634,"\u76ee\u6807\u8282\u70b9"),n.qZA(),n.TgZ(635,"td")(636,"code"),n._uU(637,"number|string"),n.qZA()()(),n.TgZ(638,"tr")(639,"td")(640,"code"),n._uU(641,"label?"),n.qZA()(),n.TgZ(642,"td"),n._uU(643,"\u7ebf\u5185\u5bb9"),n.qZA(),n.TgZ(644,"td")(645,"code"),n._uU(646,"string"),n.qZA()()(),n.TgZ(647,"tr")(648,"td")(649,"code"),n._uU(650,"points"),n.qZA()(),n.TgZ(651,"td"),n._uU(652,"points"),n.qZA(),n.TgZ(653,"td")(654,"code"),n._uU(655,"Array<{ x: number; y: number; }>"),n.qZA()()()()(),n.TgZ(656,"h4",51)(657,"span"),n._uU(658,"NzGraphGroupNode"),n.qZA(),n.TgZ(659,"a",52),n._uU(660,"#"),n.qZA()(),n.TgZ(661,"table")(662,"thead")(663,"tr")(664,"th"),n._uU(665,"\u5c5e\u6027"),n.qZA(),n.TgZ(666,"th"),n._uU(667,"\u7c7b\u578b"),n.qZA()()(),n.TgZ(668,"tbody")(669,"tr")(670,"td")(671,"code"),n._uU(672,"expanded"),n.qZA()(),n.TgZ(673,"td")(674,"code"),n._uU(675,"boolean"),n.qZA()()(),n.TgZ(676,"tr")(677,"td")(678,"code"),n._uU(679,"nodes"),n.qZA()(),n.TgZ(680,"td")(681,"code"),n._uU(682,"Array<NzGraphNode|NzGraphGroupNode>"),n.qZA()()(),n.TgZ(683,"tr")(684,"td")(685,"code"),n._uU(686,"edges"),n.qZA()(),n.TgZ(687,"td")(688,"code"),n._uU(689,"NzGraphEdge[]"),n.qZA()()()()(),n.TgZ(690,"h3",53)(691,"span"),n._uU(692,"[nzGraphNode]"),n.qZA(),n.TgZ(693,"label",39),n._uU(694,"directive"),n.qZA(),n.TgZ(695,"a",54),n._uU(696,"#"),n.qZA()(),n.TgZ(697,"p"),n._uU(698,"\u81ea\u5b9a\u4e49\u53f6\u5b50\u8282\u70b9\u6e32\u67d3\u6a21\u677f"),n.qZA(),n.TgZ(699,"pre",55)(700,"code")(701,"span",56)(702,"span",56)(703,"span",16),n._uU(704,"<"),n.qZA(),n._uU(705,"nz-graph"),n.qZA(),n._uU(706," "),n.TgZ(707,"span",57),n._uU(708,"[nzGraphData]"),n.qZA(),n.TgZ(709,"span",58)(710,"span",16),n._uU(711,"="),n.qZA(),n.TgZ(712,"span",16),n._uU(713,'"'),n.qZA(),n._uU(714,"data"),n.TgZ(715,"span",16),n._uU(716,'"'),n.qZA()(),n.TgZ(717,"span",16),n._uU(718,">"),n.qZA()(),n._uU(719,"\n  "),n.TgZ(720,"span",56)(721,"span",56)(722,"span",16),n._uU(723,"<"),n.qZA(),n._uU(724,"ng-container"),n.qZA(),n._uU(725," "),n.TgZ(726,"span",57),n._uU(727,"*nzGraphNode"),n.qZA(),n.TgZ(728,"span",58)(729,"span",16),n._uU(730,"="),n.qZA(),n.TgZ(731,"span",16),n._uU(732,'"'),n.qZA(),n._uU(733,"let node"),n.TgZ(734,"span",16),n._uU(735,'"'),n.qZA()(),n.TgZ(736,"span",16),n._uU(737,">"),n.qZA()(),n._uU(738,"\n    "),n.TgZ(739,"span",56)(740,"span",56)(741,"span",16),n._uU(742,"<"),n.qZA(),n._uU(743,"span"),n.qZA(),n.TgZ(744,"span",16),n._uU(745,">"),n.qZA()(),n._uU(746,"{{ node.name }} - {{ node.label }}"),n.TgZ(747,"span",56)(748,"span",56)(749,"span",16),n._uU(750,"</"),n.qZA(),n._uU(751,"span"),n.qZA(),n.TgZ(752,"span",16),n._uU(753,">"),n.qZA()(),n._uU(754,"\n  "),n.TgZ(755,"span",56)(756,"span",56)(757,"span",16),n._uU(758,"</"),n.qZA(),n._uU(759,"ng-container"),n.qZA(),n.TgZ(760,"span",16),n._uU(761,">"),n.qZA()(),n._uU(762,"\n"),n.TgZ(763,"span",56)(764,"span",56)(765,"span",16),n._uU(766,"</"),n.qZA(),n._uU(767,"nz-graph"),n.qZA(),n.TgZ(768,"span",16),n._uU(769,">"),n.qZA()()()(),n.TgZ(770,"h3",59)(771,"span"),n._uU(772,"[nzGraphGroupNode]"),n.qZA(),n.TgZ(773,"label",39),n._uU(774,"directive"),n.qZA(),n.TgZ(775,"a",60),n._uU(776,"#"),n.qZA()(),n.TgZ(777,"p"),n._uU(778,"\u81ea\u5b9a\u4e49\u7ec4\u8282\u70b9\u6e32\u67d3\u6a21\u677f"),n.qZA(),n.TgZ(779,"pre",55)(780,"code")(781,"span",56)(782,"span",56)(783,"span",16),n._uU(784,"<"),n.qZA(),n._uU(785,"nz-graph"),n.qZA(),n._uU(786," "),n.TgZ(787,"span",57),n._uU(788,"[nzGraphData]"),n.qZA(),n.TgZ(789,"span",58)(790,"span",16),n._uU(791,"="),n.qZA(),n.TgZ(792,"span",16),n._uU(793,'"'),n.qZA(),n._uU(794,"data"),n.TgZ(795,"span",16),n._uU(796,'"'),n.qZA()(),n.TgZ(797,"span",16),n._uU(798,">"),n.qZA()(),n._uU(799,"\n  "),n.TgZ(800,"span",56)(801,"span",56)(802,"span",16),n._uU(803,"<"),n.qZA(),n._uU(804,"ng-container"),n.qZA(),n._uU(805," "),n.TgZ(806,"span",57),n._uU(807,"*nzGraphGroupNode"),n.qZA(),n.TgZ(808,"span",58)(809,"span",16),n._uU(810,"="),n.qZA(),n.TgZ(811,"span",16),n._uU(812,'"'),n.qZA(),n._uU(813,"let node"),n.TgZ(814,"span",16),n._uU(815,'"'),n.qZA()(),n.TgZ(816,"span",16),n._uU(817,">"),n.qZA()(),n._uU(818,"\n    "),n.TgZ(819,"span",56)(820,"span",56)(821,"span",16),n._uU(822,"<"),n.qZA(),n._uU(823,"span"),n.qZA(),n.TgZ(824,"span",16),n._uU(825,">"),n.qZA()(),n._uU(826,"{{ node.name }} - {{ node.label }}"),n.TgZ(827,"span",56)(828,"span",56)(829,"span",16),n._uU(830,"</"),n.qZA(),n._uU(831,"span"),n.qZA(),n.TgZ(832,"span",16),n._uU(833,">"),n.qZA()(),n._uU(834,"\n  "),n.TgZ(835,"span",56)(836,"span",56)(837,"span",16),n._uU(838,"</"),n.qZA(),n._uU(839,"ng-container"),n.qZA(),n.TgZ(840,"span",16),n._uU(841,">"),n.qZA()(),n._uU(842,"\n"),n.TgZ(843,"span",56)(844,"span",56)(845,"span",16),n._uU(846,"</"),n.qZA(),n._uU(847,"nz-graph"),n.qZA(),n.TgZ(848,"span",16),n._uU(849,">"),n.qZA()()()(),n.TgZ(850,"h3",61)(851,"span"),n._uU(852,"[nzGraphEdge]"),n.qZA(),n.TgZ(853,"label",39),n._uU(854,"directive"),n.qZA(),n.TgZ(855,"a",62),n._uU(856,"#"),n.qZA()(),n.TgZ(857,"p"),n._uU(858,"\u81ea\u5b9a\u4e49\u8fb9\u6e32\u67d3\u6a21\u677f"),n.qZA(),n.TgZ(859,"pre",55)(860,"code")(861,"span",56)(862,"span",56)(863,"span",16),n._uU(864,"<"),n.qZA(),n._uU(865,"nz-graph"),n.qZA(),n._uU(866," "),n.TgZ(867,"span",57),n._uU(868,"[nzGraphData]"),n.qZA(),n.TgZ(869,"span",58)(870,"span",16),n._uU(871,"="),n.qZA(),n.TgZ(872,"span",16),n._uU(873,'"'),n.qZA(),n._uU(874,"data"),n.TgZ(875,"span",16),n._uU(876,'"'),n.qZA()(),n.TgZ(877,"span",16),n._uU(878,">
1"),n.qZA()(),n._uU(879,"\n  "),n.TgZ(880,"span",56)(881,"span",56)(882,"span",16),n._uU(883,"<"),n.qZA(),n._uU(884,"ng-container"),n.qZA(),n._uU(885," "),n.TgZ(886,"span",57),n._uU(887,"*nzGraphEdge"),n.qZA(),n.TgZ(888,"span",58)(889,"span",16),n._uU(890,"="),n.qZA(),n.TgZ(891,"span",16),n._uU(892,'"'),n.qZA(),n._uU(893,"let edge"),n.TgZ(894,"span",16),n._uU(895,'"'),n.qZA()(),n.TgZ(896,"span",16),n._uU(897,">"),n.qZA()(),n._uU(898,"\n    "),n.TgZ(899,"span",56)(900,"span",56)(901,"span",16),n._uU(902,"<"),n.qZA(),n.TgZ(903,"span",63),n._uU(904,"svg:"),n.qZA(),n._uU(905,"g"),n.qZA(),n.TgZ(906,"span",16),n._uU(907,">"),n.qZA()(),n._uU(908,"\n      "),n.TgZ(909,"span",56)(910,"span",56)(911,"span",16),n._uU(912,"<"),n.qZA(),n._uU(913,"path"),n.qZA(),n.TgZ(914,"span",16),n._uU(915,">"),n.qZA()(),n.TgZ(916,"span",56)(917,"span",56)(918,"span",16),n._uU(919,"</"),n.qZA(),n._uU(920,"path"),n.qZA(),n.TgZ(921,"span",16),n._uU(922,">"),n.qZA()(),n._uU(923,"\n    "),n.TgZ(924,"span",56)(925,"span",56)(926,"span",16),n._uU(927,"</"),n.qZA(),n.TgZ(928,"span",63),n._uU(929,"svg:"),n.qZA(),n._uU(930,"g"),n.qZA(),n.TgZ(931,"span",16),n._uU(932,">"),n.qZA()(),n._uU(933,"\n  "),n.TgZ(934,"span",56)(935,"span",56)(936,"span",16),n._uU(937,"</"),n.qZA(),n._uU(938,"ng-container"),n.qZA(),n.TgZ(939,"span",16),n._uU(940,">"),n.qZA()(),n._uU(941,"\n"),n.TgZ(942,"span",56)(943,"span",56)(944,"span",16),n._uU(945,"</"),n.qZA(),n._uU(946,"nz-graph"),n.qZA(),n.TgZ(947,"span",16),n._uU(948,">"),n.qZA()()()(),n.TgZ(949,"h3",64)(950,"span"),n._uU(951,"\u6837\u5f0f"),n.qZA(),n.TgZ(952,"a",65),n._uU(953,"#"),n.qZA()(),n.TgZ(954,"p"),n._uU(955,"\u7ec4\u4ef6\u6837\u5f0f\u5305\u542b\u4e86\u5fc5\u8981\u7684\u5c5e\u6027\u548c\u7b80\u5355\u7684\u6837\u5f0f\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u8986\u5199\u4e0b\u5217\u7c7b\u540d\u81ea\u5b9a\u4e49\u6837\u5f0f\u3002"),n.qZA(),n.TgZ(956,"ul")(957,"li")(958,"code"),n._uU(959,".nz-graph"),n.qZA(),n.TgZ(960,"code"),n._uU(961,"nz-graph"),n.qZA(),n._uU(962," \u7ec4\u4ef6\u547d\u540d\u7a7a\u95f4"),n.qZA(),n.TgZ(963,"li")(964,"code"),n._uU(965,".nz-graph-nodes"),n.qZA(),n._uU(966," \u8282\u70b9"),n.TgZ(967,"ul")(968,"li")(969,"code"),n._uU(970,".nz-graph-node"),n.qZA(),n._uU(971," \u5355\u4e2a\u8282\u70b9"),n.qZA(),n.TgZ(972,"li")(973,"code"),n._uU(974,".nz-graph-node-expanded"),n.qZA(),n._uU(975," \u5c55\u5f00\u8282\u70b9"),n.qZA(),n.TgZ(976,"li")(977,"code"),n._uU(978,".nz-graph-group-node"),n.qZA(),n._uU(979," \u7ec4\u8282\u70b9"),n.qZA(),n.TgZ(980,"li")(981,"code"),n._uU(982,".nz-graph-base-node"),n.qZA(),n._uU(983," \u53f6\u5b50\u8282\u70b9"),n.qZA()()(),n.TgZ(984,"li")(985,"code"),n._uU(986,".nz-graph-edges"),n.qZA(),n._uU(987," \u8fde\u63a5\u7ebf"),n.TgZ(988,"ul")(989,"li")(990,"code"),n._uU(991,".nz-graph-edge"),n.qZA(),n._uU(992," \u5355\u6761\u7ebf"),n.TgZ(993,"ul")(994,"li")(995,"code"),n._uU(996,"path.nz-graph-edge-line"),n.qZA(),n._uU(997," \u7ebf path \u5143\u7d20"),n.qZA(),n.TgZ(998,"li")(999,"code"),n._uU(1e3,".nz-graph-edge-text"),n.qZA(),n._uU(1001," \u7ebf\u6587\u672c\u5143\u7d20"),n.qZA()()()()()(),n.TgZ(1002,"h2",66)(1003,"span"),n._uU(1004,"\u8bf4\u660e"),n.qZA(),n.TgZ(1005,"a",67),n._uU(1006,"#"),n.qZA()(),n.TgZ(1007,"ul")(1008,"li")(1009,"a",68),n._uU(1010,"dagre-compound"),n.qZA(),n._uU(1011,": \u57fa\u4e8e Dagre \u7684 \u5d4c\u5957\u5e03\u5c40\u8ba1\u7b97\u5e93"),n.qZA(),n.TgZ(1012,"li")(1013,"a",69),n._uU(1014,"SelectionModel"),n.qZA()()(),n.fQ9(),n.qZA()()),2&i&&(n.xp6(1),n.Q6J("nzOffsetTop",16),n.xp6(1),n.Q6J("nzAffix",!1),n.xp6(71),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",24),n.xp6(1),n.Q6J("nzId","components-graph-demo-customized")("nzLink","components-graph-demo-customized")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/graph/demo/customized.md"))},dependencies:[Re.G,je.IT,je.Fp,fu.$,Pe.t3,Pe.SK,pu.SY,wt.Ls,Yr.w,mu],encapsulation:2})}return t})(),l0=(()=>{class t{constructor(){this.expanded=!1}goLink(r){window&&(window.location.hash=r)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(r=>{r.nzExpanded=this.expanded,r.expandCode(this.expanded),r.check()})}static#t=this.\u0275fac=function(i){return new(i||t)};static#n=this.\u0275cmp=n.Xpm({type:t,selectors:[["nz-demo-graph"]],viewQuery:function(i,o){if(1&i&&n.Gf(Re.G,5),2&i){let a;n.iGM(a=n.CRH())&&(o.codeBoxes=a)}},decls:1019,vars:8,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzAffix","nzClick"],["nzHref","#components-graph-demo-customized","nzTitle","Custom graph node"],["nzHref","#api","nzTitle","API"],[1,"markdown"],[1,"subtitle"],[1,"widget"],["aria-label","Edit this page on Github","href","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/graph/doc/index.en-US.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nz-icon","","nzType","edit"],[2,"border-color","#faad14"],["id","when-to-use"],["onclick","window.location.hash = 'when-to-use'",1,"anchor"],["id","import-module"],["onclick","window.location.hash = 'import-module'",1,"anchor"],[1,"language-ts"],[1,"token","keyword"],[1,"token","punctuation"],[1,"token","string"],["id","import-style"],["onclick","window.location.hash = 'import-style'",1,"anchor"],[1,"language-less"],[1,"token","variable"],["nz-icon","","nzType","appstore","nz-tooltip","","nzTooltipTitle","Expand All Code",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan"],["nzTitle","Custom graph node","nzSelector","nz-demo-graph-customized","nzGenerateCommand","ng g ng-zorro-antd:graph-customized <name>","nzComponentName","NzDemoGraphCustomizedComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["demo",""],["intro",""],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],[1,"language-sh"],[1,"token","operator"],["id","nz-graph"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-graph'",1,"anchor"],["id","methods"],["onclick","window.location.hash = 'methods'",1,"anchor"],["id","[nz-graph-zoom]"],[1,"api-type-label","directive"],["onclick","window.location.hash = '[nz-graph-zoom]'",1,"anchor"],["id","nzgraphd
1ata"],["onclick","window.location.hash = 'nzgraphdata'",1,"anchor"],["id","nzgraphlayoutconfig"],["onclick","window.location.hash = 'nzgraphlayoutconfig'",1,"anchor"],["id","nzgraphdatadef"],["onclick","window.location.hash = 'nzgraphdatadef'",1,"anchor"],["id","nzgraphnode"],["onclick","window.location.hash = 'nzgraphnode'",1,"anchor"],["id","nzgraphedge"],["onclick","window.location.hash = 'nzgraphedge'",1,"anchor"],["id","nzgraphgroupnode"],["onclick","window.location.hash = 'nzgraphgroupnode'",1,"anchor"],["id","[nzgraphnode]"],["onclick","window.location.hash = '[nzgraphnode]'",1,"anchor"],[1,"language-html"],[1,"token","tag"],[1,"token","attr-name"],[1,"token","attr-value"],["id","[nzgraphgroupnode]"],["onclick","window.location.hash = '[nzgraphgroupnode]'",1,"anchor"],["id","[nzgraphedge]"],["onclick","window.location.hash = '[nzgraphedge]'",1,"anchor"],[1,"token","namespace"],["id","styling"],["onclick","window.location.hash = 'styling'",1,"anchor"],["id","more"],["onclick","window.location.hash = 'more'",1,"anchor"],["href","https://www.npmjs.com/package/dagre-compound","target","_blank","rel","noopener"],["href","https://github.com/angular/components/blob/master/src/cdk/collections/selection-model.ts","target","_blank","rel","noopener"]],template:function(i,o){1&i&&(n.TgZ(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),n.NdJ("nzClick",function(u){return o.goLink(u)}),n._UZ(3,"nz-link",2)(4,"nz-link",3),n.qZA()(),n.TgZ(5,"section",4)(6,"h1"),n._uU(7,"Graph"),n._UZ(8,"span",5)(9,"span",6),n.TgZ(10,"a",7),n._UZ(11,"span",8),n.qZA()(),n.TgZ(12,"section",4),n.IAx(),n.TgZ(13,"blockquote",9)(14,"p"),n._uU(15,"NG-ZORRO experiments are features that are released but not yet considered stable or production ready"),n.qZA(),n.TgZ(16,"p"),n._uU(17,"Developers and users can opt-in into these features before they are fully released. But "),n.TgZ(18,"strong"),n._uU(19,"breaking changes"),n.qZA(),n._uU(20," may occur with any release."),n.qZA()(),n.TgZ(21,"h2",10)(22,"span"),n._uU(23,"When To Use"),n.qZA(),n.TgZ(24,"a",11),n._uU(25,"#"),n.qZA()(),n.TgZ(26,"p"),n._uU(27,"When you want to use graph in Angular."),n.qZA(),n.TgZ(28,"h3",12)(29,"span"),n._uU(30,"Import Module"),n.qZA(),n.TgZ(31,"a",13),n._uU(32,"#"),n.qZA()(),n.TgZ(33,"blockquote")(34,"p"),n._uU(35,"Now, the graph depends on d3-drag d3-zoom d3-selection d3-transition d3-shape (may be removed in next major version)"),n.qZA()(),n.TgZ(36,"pre",14)(37,"code")(38,"span",15),n._uU(39,"import"),n.qZA(),n._uU(40," "),n.TgZ(41,"span",16),n._uU(42,"{"),n.qZA(),n._uU(43," NzGraphModule "),n.TgZ(44,"span",16),n._uU(45,"}"),n.qZA(),n._uU(46," "),n.TgZ(47,"span",15),n._uU(48,"from"),n.qZA(),n._uU(49," "),n.TgZ(50,"span",17),n._uU(51,"'ng-zorro-antd/graph'"),n.qZA(),n.TgZ(52,"span",16),n._uU(53,";"),n.qZA()()(),n.TgZ(54,"h3",18)(55,"span"),n._uU(56,"Import Style"),n.qZA(),n.TgZ(57,"a",19),n._uU(58,"#"),n.qZA()(),n.TgZ(59,"pre",20)(60,"code")(61,"span",21),n._uU(62,"@import"),n.qZA(),n._uU(63," "),n.TgZ(64,"span",17),n._uU(65,'"node_modules/ng-zorro-antd/graph/style/entry.less"'),n.qZA(),n.TgZ(66,"span",16),n._uU(67,";"),n.qZA()()(),n.fQ9(),n.qZA(),n.TgZ(68,"h2")(69,"span"),n._uU(70,"Examples"),n.qZA(),n.TgZ(71,"span",22),n.NdJ("click",function(){return o.expandAllCode()}),n.qZA()()(),n.TgZ(72,"div",23)(73,"div",24)(74,"nz-code-box",25),n._UZ(75,"nz-demo-graph-customized",26),n.TgZ(76,"div",27),n.IAx(),n.TgZ(77,"p"),n._uU(78,"Custom node style of graph."),n.qZA(),n.fQ9(),n.qZA()()()(),n.TgZ(79,"section",28),n.IAx(),n.TgZ(80,"h2",29)(81,"span"),n._uU(82,"API"),n.qZA(),n.TgZ(83,"a",30),n._uU(84,"#"),n.qZA()(),n.TgZ(85,"p"),n._uU(86,"Dependencies:"),n.qZA(),n.TgZ(87,"pre",31)(88,"code"),n._uU(89,"npm install dagre"),n.TgZ(90,"span",32),n._uU(91,"-"),n.qZA(),n._uU(92,"compound dagre d3"),n.TgZ(93,"span",32),n._uU(94,"-"),n.qZA(),n._uU(95,"transition d3"),n.TgZ(96,"span",32),n._uU(97,"-"),n.qZA(),n._uU(98,"zoom d3"),n.TgZ(99,"span",32),n._uU(100,"-"),n.qZA(),n._uU(101,"selection d3"),n.TgZ(102,"span",32),n._uU(103,"-"),n.qZA(),n._uU(104,"shape d3"),n.TgZ(105,"span",32),n._uU(106,"-"),n.qZA(),n._uU(107,"drag "),n.TgZ(108,"span",21),n._uU(109,"@types"),n.qZA(),n.TgZ(110,"span",32),n._uU(111,"/"),n.qZA(),n._uU(112,"d3"),n.qZA()(),n.TgZ(113,"h3",33)(114,"span"),n._uU(115,"nz-graph"),n.qZA(),n.TgZ(116,"label",34),n._uU(117,"component"),n.qZA(),n.TgZ(118,"a",35),n._uU(119,"#"),n.qZA()(),n.TgZ(120,"table")(121,"thead")(122,"tr")(123,"th"),n._uU(124,"Parameter"),n.qZA(),n.TgZ(125,"th"),n._uU(126,"Description"),n.qZA(),n.TgZ(127,"th"),n._uU(128,"Type"),n.qZA(),n.TgZ(129,"th"),n._uU(130,"Default"),n.qZA()()(),n.TgZ(131,"tbody")(132,"tr")(133,"td")(134,"code"),n._uU(135,"[nzGraphData]"),n.qZA()(),n.TgZ(136,"td"),n._uU(137,"Data source"),n.qZA(),n.TgZ(138,"td")(139,"code"),n._uU(140,"NzGraphData(data: NzGraphDataDef?)"),n.qZA()(),n.TgZ(141,"td"),n._uU(142,"``"),n.qZA()(),n.TgZ(143,"tr")(144,"td")(145,"code"),n._uU(146,"[nzRankDirection]"),n.qZA()(),n.TgZ(147,"td"),n._uU(148,"Graph Direction"),n.qZA(),n.TgZ(149,"td")(150,"code"),n._uU(151,"TB"),n.qZA(),n._uU(152," | "),n.TgZ(153,"code"),n._uU(154,"BT"),n.qZA(),n._uU(155," | "),n.TgZ(156,"code"),n._uU(157,"LR"),n.qZA(),n._uU(158," | "),n.TgZ(159,"code"),n._uU(160,"RL"),n.qZA()(),n.TgZ(161,"td")(162,"code"),n._uU(163,"LR"),n.qZA()()(),n.TgZ(164,"tr")(165,"td")(166,"code"),n._uU(167,"[nzAutoSize]"),n.qZA()(),n.TgZ(168,"td"),n._uU(169,"Whether to automatically adjust the height of the node, the default equal height"),n.qZA(),n.TgZ(170,"td")(171,"code"),n._uU(172,"boolean"),n.qZA()(),n.TgZ(173,"td")(174,"code"),n._uU(175,"false"),n.qZA()()(),n.TgZ(176,"tr")(177,"td")(178,"code"),n._uU(179,"[nzGraphLayoutConfig]"),n.qZA()(),n.TgZ(180,"td"),n._uU(181,"Global config of graph"),n.qZA(),n.TgZ(182,"td")(183,"code"),n._uU(184,"NzGraphLayoutConfig"),n.qZA()(),n.TgZ(185,"td"),n._uU(186,"``"),n.qZA()()()(),n.TgZ(187,"h4",36)(188,"span"),n._uU(189,"Methods"),n.qZA(),n.TgZ(190,"a",37),n._uU(191,"#"),n.qZA()(),n.TgZ(192,"table")(193,"thead")(194,"tr")(195,"th"),n._uU(196,"Method"),n.qZA(),n.TgZ(197,"th"),n._uU(198,"Description"),n.qZA()()(),n.TgZ(199,"tbody")(200,"tr")(201,"td")(202,"code"),n._uU(203,"fitCenter()"),n.qZA()(),n.TgZ(204,"td"),n._uU(205,"Move graph to center(use "),n.TgZ(206,"code"),n._uU(207,"nz-graph-zoom"),n.qZA(),n._uU(208," instead if zooming is enabled)"),n.qZA()()()(),n.TgZ(209,"h3",38)(210,"span"),n._uU(211,"[nz-graph-zoom]"),n.qZA(),n.TgZ(212,"label",39),n._uU(213,"directive"),n.qZA(),n.TgZ(214,"a",40),n._uU(215,"#"),n.qZA()(),n.TgZ(216,"table")(217,"thead")(218,"tr")(219,"th"),n._uU(220,"Parameter"),n.qZA(),n.TgZ(221,"th"),n._uU(222,"Description"),n.qZA(),n.TgZ(223,"th"),n._uU(224,"Type"),n.qZA(),n.TgZ(225,"th"),n._uU(226,"Default"),n.qZA()()(),n.TgZ(227,"tbody")(228,"tr")(229,"td")(230,"code"),n._uU(231,"[(nzZoom)]"),n.qZA()(),n.TgZ(232,"td"),n._uU(233,"Default zoom scale"),n.qZA(),n.TgZ(234,"td")(235,"code"),n._uU(236,"number"),n.qZA()(),n.TgZ(237,"td")(238,"code"),n._uU(239,"1"),n.qZA()()(),n.TgZ(240,"tr")(241,"td")(242,"code"),n._uU(243,"[nzMinZoom]"),n.qZA()(),n.TgZ(244,"td"),n._uU(245,"Minimum zoom scale"),n.qZA(),n.TgZ(246,"td")(247,"code"),n._uU(248,"number"),n.qZA()(),n.TgZ(249,"td")(250,"code"),n._uU(251,"0.1"),n.qZA()()(),n.TgZ(252,"tr")(253,"td")(254,"code"),n._uU(255,"[nzMaxZoom]"),n.qZA()(),n.TgZ(256,"td"),n._uU(257,"Maximum zoom scale"),n.qZA(),n.TgZ(258,"td")(259,"code"),n._uU(260,"number"),n.qZA()(),n.TgZ(261,"td")(262,"code"),n._uU(263,"10"),n.qZA()()(),n.TgZ(264,"tr")(265,"td")(266,"code"),n._uU(267,"(nzTransformEvent)"),n.qZA()(),n.TgZ(268,"td"),n._uU(269,"Event of zooming"),n.qZA(),n.TgZ(270,"td")(271,"code"),n._uU(272,"() => NzZoomTransform"),n.qZA()(),n.TgZ(273,"td"),n._uU(274,"``"),n.qZA()(),n.TgZ(275,"tr")(276,"td")(277,"code"),n._uU(278,"(fitCenter)"),n.qZA()(),n.TgZ(279,"td"),n._uU(280,"Move graph to center"),n.qZA(),n.TgZ(281,"td")(282,"code"),n._uU(283,"() => void"),n.qZA()(),n.TgZ(284,"td")(285,"code"),n._uU(286,"void"),n.qZA()()(),n.TgZ(287,"tr")(288,"td")(289,"code"),n._uU(290,"(focus)"),n.qZA()(),n.TgZ(291,"td"),n._uU(292,"Move target node to center"),n.qZA(),n.TgZ(293,"td")(294,"code"),n._uU(295,"(e: SVGGElement, duration: number) => void"),n.qZA()(),n.TgZ(296,"td")(297,"code"),n._uU(298,"void"),n.qZA()()()()(),n.TgZ(299,"h4",41)(300,"span"),n._uU(301,"NzGraphData"),n.qZA(),n.TgZ(302,"a",42),n._uU(303,"#"),n.qZA()(),n.TgZ(304,"table")(305,"thead")(306,"tr")(307,"th"),n._uU(308,"Method"),n.qZA(),n.TgZ(309,"th"),n._uU(310,"Description"),n.qZA(),n.TgZ(311,"th"),n._uU(312,"Type"),n.qZA()()(),n.TgZ(313,"tbody")(314,"tr")(315,"td")(316,"code"),n._uU(317,"setData"),n.qZA()(),n.TgZ(318,"td"),n._uU(319,"set data source"),n.qZA(),n.TgZ(320,"td")(321,"code"),n._uU(322,"(data: NzGraphDataDef) => void"),n.qZA()()(),n.TgZ(323,"tr")(324,"td")(325,"code"),n._uU(326,"toggle"),n.qZA()(),n.TgZ(327,"td"),n._uU(328,"toggle group node"),n.qZA(),n.TgZ(329,"td")(330,"code"),n._uU(331,"(nodeName: string) => void"),n.qZA()()(),n.TgZ(332,"tr")(333,"td")(334,"code"),n._uU(335,"expand"),n.qZA()(),n.TgZ(336,"td"),n._uU(337,"expand group node"),n.qZA(),n.TgZ(338,"td")(339,"code"),n._uU(340,"(nodeName: string) => void"),n.qZA()()(),n.TgZ(341,"tr")(342,"td")(343,"code"),n._uU(344,"expandAll"),n.qZA()(),n.TgZ(345,"td"),n._uU(346,"expand all group nodes"),n.qZA(),n.TgZ(347,"td")(348,"code"),n._uU(349,"(nodeName: string) => void"),n.qZA()()(),n.TgZ(350,"tr")(351,"td")(352,"code"),n._uU(353,"collapse"),n.qZA()(),n.TgZ(354,"td"),n._uU(355,"collapse group node"),n.qZA(),n.TgZ(356,"td")(357,"code"),n._uU(358,"(nodeName: string) => void"),n.qZA()()(),n.TgZ(359,"tr")(360,"td")(361,"code"),n._uU(362,"isExpand"),n.qZA()(),n.TgZ(363,"td"),n._uU(364,"get if expanded of node"),n.qZA(),n.TgZ(365,"td")(366,"code"),n._uU(367,"(nodeName: string) => boolean"),n.qZA()()(),n.TgZ(368,"tr")(369,"td")(370,"code"),n._uU(371,"expansionModel"),n.qZA()(),n.TgZ(372,"td"),n._uU(373,"model of expanded nodes' info"),n.qZA(),n.TgZ(374,"td")(375,"code"),n._uU(376,"SelectionModel<string>"),n.qZA()()()()(),n.TgZ(377,"h3",43)(378,"span"),n._uU(379,"NzGraphLayoutConfig"),n.qZA(),n.TgZ(380,"a",44),n._uU(381,"#"),n.qZA()(),n.TgZ(382,"table")(383,"thead")(384,"tr")(385,"th"),n._uU(386,"Method"),n.qZA(),n.TgZ(387,"th"),n._uU(388,"Description"),n.qZA(),n.TgZ(389,"th"),n._uU(390,"Type"),n.qZA()()(),n.TgZ(391,"tbody")(392,"tr")(393,"td")(394,"code"),n._uU(395,"layout"),n.qZA()(),n.TgZ(396,"td"),n._uU(397,"graph layout config"),n.qZA(),n.TgZ(398,"td")(399,"code"),n._uU(400,"{ nodeSep: number; rankSep: number; edgeSep: number; }"),n.qZA()()(),n.TgZ(401,"tr")(402,"td")(403,"code"),n._uU(404,"subScene"),n.qZA()(),n.TgZ(405,"td"),n._uU(406,"group node config"),n.qZA(),n.TgZ(407,"td")(408,"code"),n._uU(409,"{ paddingTop: number; paddingBottom: number; paddingLeft: number; paddingRight: number; labelHeight: number; }"),n.qZA()()(),n.TgZ(410,"tr")(411,"td")(412,"code"),n._uU(413,"defaultCompoundNode"),n.qZA()(),n.TgZ(414,"td"),n._uU(415,"group node size"),n.qZA(),n.TgZ(416,"td")(417,"code"),n._uU(418,"{ width: number; height: number; maxLabelWidth: number; }"),n.qZA()()(),n.TgZ(419,"tr")(420,"td")(421,"code"),n._uU(422,"defaultNode"),n.qZA()(),n.TgZ(423,"td"),n._uU(424,"default node size"),n.qZA(),n.TgZ(425,"td")(426,"code"),n._uU(427,"{ width: number; height: number; labelOffset: number; maxLabelWidth: number; }"),n.qZA()()()()(),n.TgZ(428,"h4",45)(429,"span"),n._uU(430,"NzGraphDataDef"),n.qZA(),n.TgZ(431,"a",46),n._uU(432,"#"),n.qZA()(),n.TgZ(433,"table")(434,"thead")(435,"tr")(436,"th"),n._uU(437,"Parameter"),n.qZA(),n.TgZ(438,"th"),n._uU(439,"Description"),n.qZA(),n.TgZ(440,"th"),n._uU(441,"Type"),n.qZA(),n.TgZ(442,"th"),n._uU(443,"Default"),n.qZA()()(),n.TgZ(444,"tbody")(445,"tr")(446,"td")(447,"code"),n._uU(448,"nodes"),n.qZA()(),n.TgZ(449,"td"),n._uU(450,"nodes"),n.qZA(),n.TgZ(451,"td")(452,"code"),n._uU(453,"Array<{ id: number|string; label?: string; width?: number; height?: number; [key: string]: any; }>"),n.qZA()(),n.TgZ(454,"td")(455,"code"),n._uU(456,"[]"),n.qZA()()(),n.TgZ(457,"tr")(458,"td")(459,"code"),n._uU(460,"edges"),n.qZA()(),n.TgZ(461,"td"),n._uU(462,"edges"),n.qZA(),n.TgZ(463,"td")(464,"code"),n._uU(465,"Array<{ v: number|string; w: number|string; [key: string]: any; }>"),n.qZA()(),n.TgZ(466,"td")(467,"code"),n._uU(468,"[]"),n.qZA()()(),n.TgZ(469,"tr")(470,"td")(471,"code"),n._uU(472,"compound"),n.qZA()(),n.TgZ(473,"td"),n._uU(474,"group"),n.qZA(),n.TgZ(475,"td")(476,"code"),n._uU(477,"{ [parent: string]: string[]; }"),n.qZA()(),n.TgZ(478,"td")(479,"code"),n._uU(480,"null"),n.qZA()()()()(),n.TgZ(481,"h4",47)(482,"span"),n._uU(483,"NzGraphNode"),n.qZA(),n.TgZ(484,"a",48),n._uU(485,"#"),n.qZA()(),n.TgZ(486,"table")(487,"thead")(488,"tr")(489,"th"),n._uU(490,"Parameter"),n.qZA(),n.TgZ(491,"th"),n._uU(492,"Description"),n.qZA(),n.TgZ(493,"th"),n._uU(494,"Type"),n.qZA()()(),n.TgZ(495,"tbody")(496,"tr")(497,"td")(498,"code"),n._uU(499,"id"),n.qZA()(),n.TgZ(500,"td"),n._uU(501,"id"),n.qZA(),n.TgZ(502,"td")(503,"code"),n._uU(504,"number|string"),n.qZA()()(),n.TgZ(505,"tr")(506,"td")(507,"code"),n._uU(508,"label?"),n.qZA()(),n.TgZ(509,"td"),n._uU(510,"node content"),n.qZA(),n.TgZ(511,"td")(512,"code"),n._uU(513,"string"),n.qZA()()(),n.TgZ(514,"tr")(
1515,"td")(516,"code"),n._uU(517,"name"),n.qZA()(),n.TgZ(518,"td"),n._uU(519,"node name"),n.qZA(),n.TgZ(520,"td")(521,"code"),n._uU(522,"number|string"),n.qZA()()(),n.TgZ(523,"tr")(524,"td")(525,"code"),n._uU(526,"type"),n.qZA()(),n.TgZ(527,"td"),n._uU(528,"node type(group: 0, node: 1)"),n.qZA(),n.TgZ(529,"td")(530,"code"),n._uU(531,"number"),n.qZA()()(),n.TgZ(532,"tr")(533,"td")(534,"code"),n._uU(535,"parentNodeName"),n.qZA()(),n.TgZ(536,"td"),n._uU(537,"parentNode name"),n.qZA(),n.TgZ(538,"td")(539,"code"),n._uU(540,"string"),n.qZA()()(),n.TgZ(541,"tr")(542,"td")(543,"code"),n._uU(544,"coreBox"),n.qZA()(),n.TgZ(545,"td"),n._uU(546,"coreBox"),n.qZA(),n.TgZ(547,"td")(548,"code"),n._uU(549,"{ width: number; height: number; }"),n.qZA()()(),n.TgZ(550,"tr")(551,"td")(552,"code"),n._uU(553,"xOffset"),n.qZA()(),n.TgZ(554,"td"),n._uU(555,"x-offset"),n.qZA(),n.TgZ(556,"td")(557,"code"),n._uU(558,"number"),n.qZA()()(),n.TgZ(559,"tr")(560,"td")(561,"code"),n._uU(562,"yOffset"),n.qZA()(),n.TgZ(563,"td"),n._uU(564,"y-offset"),n.qZA(),n.TgZ(565,"td")(566,"code"),n._uU(567,"number"),n.qZA()()(),n.TgZ(568,"tr")(569,"td")(570,"code"),n._uU(571,"width"),n.qZA()(),n.TgZ(572,"td"),n._uU(573,"width"),n.qZA(),n.TgZ(574,"td")(575,"code"),n._uU(576,"number"),n.qZA()()(),n.TgZ(577,"tr")(578,"td")(579,"code"),n._uU(580,"height"),n.qZA()(),n.TgZ(581,"td"),n._uU(582,"height"),n.qZA(),n.TgZ(583,"td")(584,"code"),n._uU(585,"number"),n.qZA()()(),n.TgZ(586,"tr")(587,"td")(588,"code"),n._uU(589,"[key: string]"),n.qZA()(),n.TgZ(590,"td"),n._uU(591,"user inputs"),n.qZA(),n.TgZ(592,"td")(593,"code"),n._uU(594,"any"),n.qZA()()()()(),n.TgZ(595,"h4",49)(596,"span"),n._uU(597,"NzGraphEdge"),n.qZA(),n.TgZ(598,"a",50),n._uU(599,"#"),n.qZA()(),n.TgZ(600,"table")(601,"thead")(602,"tr")(603,"th"),n._uU(604,"Parameter"),n.qZA(),n.TgZ(605,"th"),n._uU(606,"Description"),n.qZA(),n.TgZ(607,"th"),n._uU(608,"Type"),n.qZA()()(),n.TgZ(609,"tbody")(610,"tr")(611,"td")(612,"code"),n._uU(613,"id"),n.qZA()(),n.TgZ(614,"td"),n._uU(615,"id"),n.qZA(),n.TgZ(616,"td")(617,"code"),n._uU(618,"string"),n.qZA()()(),n.TgZ(619,"tr")(620,"td")(621,"code"),n._uU(622,"v"),n.qZA()(),n.TgZ(623,"td"),n._uU(624,"source node"),n.qZA(),n.TgZ(625,"td")(626,"code"),n._uU(627,"number|string"),n.qZA()()(),n.TgZ(628,"tr")(629,"td")(630,"code"),n._uU(631,"w"),n.qZA()(),n.TgZ(632,"td"),n._uU(633,"target node"),n.qZA(),n.TgZ(634,"td")(635,"code"),n._uU(636,"number|string"),n.qZA()()(),n.TgZ(637,"tr")(638,"td")(639,"code"),n._uU(640,"label?"),n.qZA()(),n.TgZ(641,"td"),n._uU(642,"edge content"),n.qZA(),n.TgZ(643,"td")(644,"code"),n._uU(645,"string"),n.qZA()()(),n.TgZ(646,"tr")(647,"td")(648,"code"),n._uU(649,"points"),n.qZA()(),n.TgZ(650,"td"),n._uU(651,"points"),n.qZA(),n.TgZ(652,"td")(653,"code"),n._uU(654,"Array<{ x: number; y: number; }>"),n.qZA()()()()(),n.TgZ(655,"h4",51)(656,"span"),n._uU(657,"NzGraphGroupNode"),n.qZA(),n.TgZ(658,"a",52),n._uU(659,"#"),n.qZA()(),n.TgZ(660,"table")(661,"thead")(662,"tr")(663,"th"),n._uU(664,"Parameter"),n.qZA(),n.TgZ(665,"th"),n._uU(666,"Type"),n.qZA()()(),n.TgZ(667,"tbody")(668,"tr")(669,"td")(670,"code"),n._uU(671,"expanded"),n.qZA()(),n.TgZ(672,"td")(673,"code"),n._uU(674,"boolean"),n.qZA()()(),n.TgZ(675,"tr")(676,"td")(677,"code"),n._uU(678,"nodes"),n.qZA()(),n.TgZ(679,"td")(680,"code"),n._uU(681,"Array<NzGraphNode|NzGraphGroupNode>"),n.qZA()()(),n.TgZ(682,"tr")(683,"td")(684,"code"),n._uU(685,"edges"),n.qZA()(),n.TgZ(686,"td")(687,"code"),n._uU(688,"NzGraphEdge[]"),n.qZA()()()()(),n.TgZ(689,"h3",53)(690,"span"),n._uU(691,"[nzGraphNode]"),n.qZA(),n.TgZ(692,"label",39),n._uU(693,"directive"),n.qZA(),n.TgZ(694,"a",54),n._uU(695,"#"),n.qZA()(),n.TgZ(696,"p"),n._uU(697,"Customize the graph node template"),n.qZA(),n.TgZ(698,"pre",55)(699,"code")(700,"span",56)(701,"span",56)(702,"span",16),n._uU(703,"<"),n.qZA(),n._uU(704,"nz-graph"),n.qZA(),n._uU(705," "),n.TgZ(706,"span",57),n._uU(707,"[nzGraphData]"),n.qZA(),n.TgZ(708,"span",58)(709,"span",16),n._uU(710,"="),n.qZA(),n.TgZ(711,"span",16),n._uU(712,'"'),n.qZA(),n._uU(713,"data"),n.TgZ(714,"span",16),n._uU(715,'"'),n.qZA()(),n.TgZ(716,"span",16),n._uU(717,">"),n.qZA()(),n._uU(718,"\n  "),n.TgZ(719,"span",56)(720,"span",56)(721,"span",16),n._uU(722,"<"),n.qZA(),n._uU(723,"ng-container"),n.qZA(),n._uU(724," "),n.TgZ(725,"span",57),n._uU(726,"*nzGraphNode"),n.qZA(),n.TgZ(727,"span",58)(728,"span",16),n._uU(729,"="),n.qZA(),n.TgZ(730,"span",16),n._uU(731,'"'),n.qZA(),n._uU(732,"let node"),n.TgZ(733,"span",16),n._uU(734,'"'),n.qZA()(),n.TgZ(735,"span",16),n._uU(736,">"),n.qZA()(),n._uU(737,"\n    "),n.TgZ(738,"span",56)(739,"span",56)(740,"span",16),n._uU(741,"<"),n.qZA(),n._uU(742,"span"),n.qZA(),n.TgZ(743,"span",16),n._uU(744,">"),n.qZA()(),n._uU(745,"{{ node.name }} - {{ node.label }}"),n.TgZ(746,"span",56)(747,"span",56)(748,"span",16),n._uU(749,"</"),n.qZA(),n._uU(750,"span"),n.qZA(),n.TgZ(751,"span",16),n._uU(752,">"),n.qZA()(),n._uU(753,"\n  "),n.TgZ(754,"span",56)(755,"span",56)(756,"span",16),n._uU(757,"</"),n.qZA(),n._uU(758,"ng-container"),n.qZA(),n.TgZ(759,"span",16),n._uU(760,">"),n.qZA()(),n._uU(761,"\n"),n.TgZ(762,"span",56)(763,"span",56)(764,"span",16),n._uU(765,"</"),n.qZA(),n._uU(766,"nz-graph"),n.qZA(),n.TgZ(767,"span",16),n._uU(768,">"),n.qZA()()()(),n.TgZ(769,"h3",59)(770,"span"),n._uU(771,"[nzGraphGroupNode]"),n.qZA(),n.TgZ(772,"label",39),n._uU(773,"directive"),n.qZA(),n.TgZ(774,"a",60),n._uU(775,"#"),n.qZA()(),n.TgZ(776,"p"),n._uU(777,"Customize the graph group-node template"),n.qZA(),n.TgZ(778,"pre",55)(779,"code")(780,"span",56)(781,"span",56)(782,"span",16),n._uU(783,"<"),n.qZA(),n._uU(784,"nz-graph"),n.qZA(),n._uU(785," "),n.TgZ(786,"span",57),n._uU(787,"[nzGraphData]"),n.qZA(),n.TgZ(788,"span",58)(789,"span",16),n._uU(790,"="),n.qZA(),n.TgZ(791,"span",16),n._uU(792,'"'),n.qZA(),n._uU(793,"data"),n.TgZ(794,"span",16),n._uU(795,'"'),n.qZA()(),n.TgZ(796,"span",16),n._uU(797,">"),n.qZA()(),n._uU(798,"\n  "),n.TgZ(799,"span",56)(800,"span",56)(801,"span",16),n._uU(802,"<"),n.qZA(),n._uU(803,"ng-container"),n.qZA(),n._uU(804," "),n.TgZ(805,"span",57),n._uU(806,"*nzGraphGroupNode"),n.qZA(),n.TgZ(807,"span",58)(808,"span",16),n._uU(809,"="),n.qZA(),n.TgZ(810,"span",16),n._uU(811,'"'),n.qZA(),n._uU(812,"let node"),n.TgZ(813,"span",16),n._uU(814,'"'),n.qZA()(),n.TgZ(815,"span",16),n._uU(816,">"),n.qZA()(),n._uU(817,"\n    "),n.TgZ(818,"span",56)(819,"span",56)(820,"span",16),n._uU(821,"<"),n.qZA(),n._uU(822,"span"),n.qZA(),n.TgZ(823,"span",16),n._uU(824,">"),n.qZA()(),n._uU(825,"{{ node.name }} - {{ node.label }}"),n.TgZ(826,"span",56)(827,"span",56)(828,"span",16),n._uU(829,"</"),n.qZA(),n._uU(830,"span"),n.qZA(),n.TgZ(831,"span",16),n._uU(832,">"),n.qZA()(),n._uU(833,"\n  "),n.TgZ(834,"span",56)(835,"span",56)(836,"span",16),n._uU(837,"</"),n.qZA(),n._uU(838,"ng-container"),n.qZA(),n.TgZ(839,"span",16),n._uU(840,">"),n.qZA()(),n._uU(841,"\n"),n.TgZ(842,"span",56)(843,"span",56)(844,"span",16),n._uU(845,"</"),n.qZA(),n._uU(846,"nz-graph"),n.qZA(),n.TgZ(847,"span",16),n._uU(848,">"),n.qZA()()()(),n.TgZ(849,"h3",61)(850,"span"),n._uU(851,"[nzGraphEdge]"),n.qZA(),n.TgZ(852,"label",39),n._uU(853,"directive"),n.qZA(),n.TgZ(854,"a",62),n._uU(855,"#"),n.qZA()(),n.TgZ(856,"p"),n._uU(857,"Customize the graph edge template"),n.qZA(),n.TgZ(858,"pre",55)(859,"code")(860,"span",56)(861,"span",56)(862,"span",16),n._uU(863,"<"),n.qZA(),n._uU(864,"nz-graph"),n.qZA(),n._uU(865," "),n.TgZ(866,"span",57),n._uU(867,"[nzGraphData]"),n.qZA(),n.TgZ(868,"span",58)(869,"span",16),n._uU(870,"="),n.qZA(),n.TgZ(871,"span",16),n._uU(872,'"'),n.qZA(),n._uU(873,"data"),n.TgZ(874,"span",16),n._uU(875,'"'),n.qZA()(),n.TgZ(876,"span",16),n._uU(877,">"),n.qZA()(),n._uU(878,"\n  "),n.TgZ(879,"span",56)(880,"span",56)(88
11,"span",16),n._uU(882,"<"),n.qZA(),n._uU(883,"ng-container"),n.qZA(),n._uU(884," "),n.TgZ(885,"span",57),n._uU(886,"*nzGraphEdge"),n.qZA(),n.TgZ(887,"span",58)(888,"span",16),n._uU(889,"="),n.qZA(),n.TgZ(890,"span",16),n._uU(891,'"'),n.qZA(),n._uU(892,"let edge"),n.TgZ(893,"span",16),n._uU(894,'"'),n.qZA()(),n.TgZ(895,"span",16),n._uU(896,">"),n.qZA()(),n._uU(897,"\n    "),n.TgZ(898,"span",56)(899,"span",56)(900,"span",16),n._uU(901,"<"),n.qZA(),n.TgZ(902,"span",63),n._uU(903,"svg:"),n.qZA(),n._uU(904,"g"),n.qZA(),n.TgZ(905,"span",16),n._uU(906,">"),n.qZA()(),n._uU(907,"\n      "),n.TgZ(908,"span",56)(909,"span",56)(910,"span",16),n._uU(911,"<"),n.qZA(),n._uU(912,"path"),n.qZA(),n.TgZ(913,"span",16),n._uU(914,">"),n.qZA()(),n.TgZ(915,"span",56)(916,"span",56)(917,"span",16),n._uU(918,"</"),n.qZA(),n._uU(919,"path"),n.qZA(),n.TgZ(920,"span",16),n._uU(921,">"),n.qZA()(),n._uU(922,"\n    "),n.TgZ(923,"span",56)(924,"span",56)(925,"span",16),n._uU(926,"</"),n.qZA(),n.TgZ(927,"span",63),n._uU(928,"svg:"),n.qZA(),n._uU(929,"g"),n.qZA(),n.TgZ(930,"span",16),n._uU(931,">"),n.qZA()(),n._uU(932,"\n  "),n.TgZ(933,"span",56)(934,"span",56)(935,"span",16),n._uU(936,"</"),n.qZA(),n._uU(937,"ng-container"),n.qZA(),n.TgZ(938,"span",16),n._uU(939,">"),n.qZA()(),n._uU(940,"\n"),n.TgZ(941,"span",56)(942,"span",56)(943,"span",16),n._uU(944,"</"),n.qZA(),n._uU(945,"nz-graph"),n.qZA(),n.TgZ(946,"span",16),n._uU(947,">"),n.qZA()()()(),n.TgZ(948,"h3",64)(949,"span"),n._uU(950,"Styling"),n.qZA(),n.TgZ(951,"a",65),n._uU(952,"#"),n.qZA()(),n.TgZ(953,"p"),n._uU(954,"The Component styles only contain the necessary positional properties and simple styles, you can customize the style by overriding the following class."),n.qZA(),n.TgZ(955,"ul")(956,"li")(957,"code"),n._uU(958,".nz-graph"),n.qZA(),n.TgZ(959,"code"),n._uU(960,"nz-graph"),n.qZA(),n._uU(961," The "),n.TgZ(962,"code"),n._uU(963,"nz-graph"),n.qZA(),n._uU(964," component namespace"),n.qZA(),n.TgZ(965,"li")(966,"code"),n._uU(967,".nz-graph-nodes"),n.qZA(),n._uU(968," The class name of container covered all nodes"),n.TgZ(969,"ul")(970,"li")(971,"code"),n._uU(972,".nz-graph-node"),n.qZA(),n._uU(973," The class name of "),n.TgZ(974,"code"),n._uU(975,"nz-graph-node"),n.qZA()(),n.TgZ(976,"li")(977,"code"),n._uU(978,".nz-graph-node-expanded"),n.qZA(),n._uU(979," The class name of expanded node"),n.qZA(),n.TgZ(980,"li")(981,"code"),n._uU(982,".nz-graph-group-node"),n.qZA(),n._uU(983," The class name of group node"),n.qZA(),n.TgZ(984,"li")(985,"code"),n._uU(986,".nz-graph-base-node"),n.qZA(),n._uU(987," The class name of leaf(OP) node"),n.qZA()()(),n.TgZ(988,"li")(989,"code"),n._uU(990,".nz-graph-edges"),n.qZA(),n._uU(991," The class name of container covered edges in the target node"),n.TgZ(992,"ul")(993,"li")(994,"code"),n._uU(995,".nz-graph-edge"),n.qZA(),n._uU(996," The class name of edge"),n.TgZ(997,"ul")(998,"li")(999,"code"),n._uU(1e3,"path.nz-graph-edge-line"),n.qZA(),n._uU(1001," The class name of svg:path element"),n.qZA(),n.TgZ(1002,"li")(1003,"code"),n._uU(1004,".nz-graph-edge-text"),n.qZA(),n._uU(1005," The class name of svg:text element"),n.qZA()()()()()(),n.TgZ(1006,"h2",66)(1007,"span"),n._uU(1008,"More"),n.qZA(),n.TgZ(1009,"a",67),n._uU(1010,"#"),n.qZA()(),n.TgZ(1011,"ul")(1012,"li")(1013,"a",68),n._uU(1014,"dagre-compound"),n.qZA(),n._uU(1015,": Dagre-based nested layout calculation library"),n.qZA(),n.TgZ(1016,"li")(1017,"a",69),n._uU(1018,"SelectionModel"),n.qZA()()(),n.fQ9(),n.qZA()()),2&i&&(n.xp6(1),n.Q6J("nzOffsetTop",16),n.xp6(1),n.Q6J("nzAffix",!1),n.xp6(70),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",24),n.xp6(1),n.Q6J("nzId","components-graph-demo-customized")("nzLink","components-graph-demo-customized")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/graph/demo/customized.md"))},dependencies:[Re.G,je.IT,je.Fp,fu.$,Pe.t3,Pe.SK,pu.SY,wt.Ls,Yr.w,mu],encapsulation:2})}return t})(),f0=(()=>{class t{static#t=this.\u0275fac=function(i){return new(i||t)};static#n=this.\u0275mod=n.oAB({type:t});static#e=this.\u0275inj=n.cJS({imports:[q.G,u0,x.Bz.forChild([{path:"en",component:l0},{path:"zh",component:d0}])]})}return t})()},7225:(Jr,an,b)=>{b.d(an,{Bq:()=>n,Dg:()=>wt,Of:()=>Lt,aF:()=>$t});var x=b(9212),q=b(7582),Gt=b(6223),It=b(7328),Rt=b(8645),kt=b(2438),rt=b(9773),jt=b(6700),Pt=b(9388),zn=b(4300),un=b(8188),sn=b(6814);const St=["*"],xn=["inputElement"],K=["nz-radio",""];let n=(()=>{class M{static#t=this.\u0275fac=function(B){return new(B||M)};static#n=this.\u0275dir=x.lG2({type:M,selectors:[["","nz-radio-button",""]]})}return M})(),ht=(()=>{class M{constructor(){this.selected$=new It.t(1),this.touched$=new Rt.x,this.disabled$=new It.t(1),this.name$=new It.t(1)}touch(){this.touched$.next()}select(U){this.selected$.next(U)}setDisabled(U){this.disabled$.next(U)}setName(U){this.name$.next(U)}static#t=this.\u0275fac=function(B){return new(B||M)};static#n=this.\u0275prov=x.Yz7({token:M,factory:M.\u0275fac})}return M})(),wt=(()=>{class M{constructor(U,B,E){this.cdr=U,this.nzRadioService=B,this.directionality=E,this.value=null,this.destroy$=new Rt.x,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.nzDisabled=!1,this.nzButtonStyle="outline",this.nzSize="default",this.nzName=null,this.dir="ltr"}ngOnInit(){this.nzRadioService.selected$.pipe((0,rt.R)(this.destroy$)).subscribe(U=>{this.value!==U&&(this.value=U,this.onChange(this.value))}),this.nzRadioService.touched$.pipe((0,rt.R)(this.destroy$)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe((0,rt.R)(this.destroy$)).subscribe(U=>{this.dir=U,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(U){const{nzDisabled:B,nzName:E}=U;B&&this.nzRadioService.setDisabled(this.nzDisabled),E&&this.nzRadioService.setName(this.nzName)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}writeValue(U){this.value=U,this.nzRadioService.select(U),this.cdr.markForCheck()}registerOnChange(U){this.onChange=U}registerOnTouched(U){this.onTouched=U}setDisabledState(U){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||U,this.isNzDisableFirstChange=!1,this.nzRadioService.setDisabled(this.nzDisabled),this.cdr.markForCheck()}static#t=this.\u0275fac=function(B){return new(B||M)(x.Y36(x.sBO),x.Y36(ht),x.Y36(Pt.Is,8))};static#n=this.\u0275cmp=x.Xpm({type:M,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(B,E){2&B&&x.ekj("ant-radio-group-large","large"===E.nzSize)("ant-radio-group-small","small"===E.nzSize)("ant-radio-group-solid","solid"===E.nzButtonStyle)("ant-radio-group-rtl","rtl"===E.dir)},inputs:{nzDisabled:"nzDisabled",nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],features:[x._Bn([ht,{provide:Gt.JU,useExisting:(0,x.Gpc)(()=>M),multi:!0}]),x.TTD],ngContentSelectors:St,decls:1,vars:0,template:function(B,E){1&B&&(x.F$t(),x.Hsn(0))},encapsulation:2,changeDetection:0})}return(0,q.gn)([(0,jt.yF)()],M.prototype,"nzDisabled",void 0),M})(),Lt=(()=>{class M{focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(U,B,E,Dt,En,qn,vt,I){this.ngZone=U,this.elementRef=B,this.cdr=E,this.focusMonitor=Dt,this.directionality=En,this.nzRadioService=qn,this.nzRadioButtonDirective=vt,this.nzFormStatusService=I,this.isNgModel=!1,this.destroy$=new Rt.x,this.isNzDisableFirstChange=!0,this.isChecked=!1,this.name=null,this.isRadioButton=!!this.nzRadioButtonDirective,this.onChange=()=>{},this.onTouched=()=>{},this.nzValue=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.dir="ltr"}setDisabledState(U){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||U,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}writeValue(U){this.isChecked=U,this.cdr.markForCheck()}registerOnChange(U){this.isNgModel=!0,this.onChange=U}registerOnTouched(U){this.onTouched=U}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe((0,rt.R)(this.destroy$)).subscribe(U=>{this.name=U,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe((0,rt.R)(this.destroy$)).subscribe(U=>{this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||U,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe((0,rt.R)(this.destroy$)).subscribe(U=>{const B=this.isChecked;this.isChecked=this.nzValue===U,this.isNgModel&&B!==this.isChecked&&!1===this.isChecked&&this.onChange(!1),this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,rt.R)(this.destroy$)).subscribe(U=>{U||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe((0,rt.R)(this.destroy$)).subscribe(U=>{this.dir=U,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}setupClickListener(){this.ngZone.runOutsideAngular(()=>{(0,kt.R)(this.elementRef.nativeElement,"click").pipe((0,rt.R)(this.destroy$)).subscribe(U=>{U.stopPropagation(),U.preventDefault(),!this.nzDisabled&&!this.isChecked&&this.ngZone.run(()=>{this.focus(),this.nzRadioService?.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})})}static#t=this.\u0275fac=function(B){return new(B||M)(x.Y36(x.R0b),x.Y36(x.SBq),x.Y36(x.sBO),x.Y36(zn.tE),x.Y36(Pt.Is,8),x.Y36(ht,8),x.Y36(n,8),x.Y36(un.kH,8))};static#n=this.\u0275cmp=x.Xpm({type:M,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(B,E){if(1&B&&x.Gf(xn,7),2&B){let Dt;x.iGM(Dt=x.CRH())&&(E.inputElement=Dt.first)}},hostVars:18,hostBindings:function(B,E){2&B&&x.ekj("ant-radio-wrapper-in-form-item",!!E.nzFormStatusService)("ant-radio-wrapper",!E.isRadioButton)("ant-radio-button-wrapper",E.isRadioButton)("ant-radio-wrapper-checked",E.isChecked&&!E.isRadioButton)("ant-radio-button-wrapper-checked",E.isChecked&&E.isRadioButton)("ant-radio-wrapper-disabled",E.nzDisabled&&!E.isRadioButton)("ant-radio-button-wrapper-disabled",E.nzDisabled&&E.isRadioButton)("ant-radio-wrapper-rtl",!E.isRadioButton&&"rtl"===E.dir)("ant-radio-button-wrapper-rtl",E.isRadioButton&&"rtl"===E.dir)},inputs:{nzValue:"nzValue",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus"},exportAs:["nzRadio"],features:[x._Bn([{provide:Gt.JU,useExisting:(0,x.Gpc)(()=>M),multi:!0}])],attrs:K,ngContentSelectors:St,decls:6,vars:24,consts:[["type","radio",3,"disabled","checked"],["
1inputElement",""]],template:function(B,E){1&B&&(x.F$t(),x.TgZ(0,"span"),x._UZ(1,"input",0,1)(3,"span"),x.qZA(),x.TgZ(4,"span"),x.Hsn(5),x.qZA()),2&B&&(x.ekj("ant-radio",!E.isRadioButton)("ant-radio-checked",E.isChecked&&!E.isRadioButton)("ant-radio-disabled",E.nzDisabled&&!E.isRadioButton)("ant-radio-button",E.isRadioButton)("ant-radio-button-checked",E.isChecked&&E.isRadioButton)("ant-radio-button-disabled",E.nzDisabled&&E.isRadioButton),x.xp6(1),x.ekj("ant-radio-input",!E.isRadioButton)("ant-radio-button-input",E.isRadioButton),x.Q6J("disabled",E.nzDisabled)("checked",E.isChecked),x.uIk("autofocus",E.nzAutoFocus?"autofocus":null)("name",E.name),x.xp6(2),x.ekj("ant-radio-inner",!E.isRadioButton)("ant-radio-button-inner",E.isRadioButton))},encapsulation:2,changeDetection:0})}return(0,q.gn)([(0,jt.yF)()],M.prototype,"nzDisabled",void 0),(0,q.gn)([(0,jt.yF)()],M.prototype,"nzAutoFocus",void 0),M})(),$t=(()=>{class M{static#t=this.\u0275fac=function(B){return new(B||M)};static#n=this.\u0275mod=x.oAB({type:M});static#e=this.\u0275inj=x.cJS({imports:[Pt.vT,sn.ez,Gt.u5]})}return M})()},5589:(Jr,an,b)=>{b.d(an,{W:()=>qn,j:()=>vt});var x=b(7582),q=b(9212),Gt=b(8645),It=b(5619),Rt=b(7328),kt=b(4825),rt=b(7921),jt=b(3997),Pt=b(4664),zn=b(9360),un=b(2420),sn=b(8251),St=b(4829),K=b(9773),n=b(2196),ht=b(6700),wt=b(9388),Lt=b(6814),$t=b(7131);function M(I,Zt){1&I&&(q.TgZ(0,"span",3),q._UZ(1,"i",4)(2,"i",4)(3,"i",4)(4,"i",4),q.qZA())}function Ut(I,Zt){}function U(I,Zt){if(1&I&&(q.TgZ(0,"div",8),q._uU(1),q.qZA()),2&I){const j=q.oxw(2);q.xp6(1),q.Oqu(j.nzTip)}}function B(I,Zt){if(1&I&&(q.TgZ(0,"div")(1,"div",5),q.YNc(2,Ut,0,0,"ng-template",6)(3,U,2,1,"div",7),q.qZA()()),2&I){const j=q.oxw(),P=q.MAs(1);q.xp6(1),q.ekj("ant-spin-rtl","rtl"===j.dir)("ant-spin-spinning",j.isLoading)("ant-spin-lg","large"===j.nzSize)("ant-spin-sm","small"===j.nzSize)("ant-spin-show-text",j.nzTip),q.xp6(1),q.Q6J("ngTemplateOutlet",j.nzIndicator||P),q.xp6(1),q.Q6J("ngIf",j.nzTip)}}function E(I,Zt){if(1&I&&(q.TgZ(0,"div",9),q.Hsn(1),q.qZA()),2&I){const j=q.oxw();q.ekj("ant-spin-blur",j.isLoading)}}const Dt=["*"];let qn=(()=>{class I{constructor(j,P,J){this.nzConfigService=j,this.cdr=P,this.directionality=J,this._nzModuleName="spin",this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new Gt.x,this.spinning$=new It.X(this.nzSpinning),this.delay$=new Rt.t(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){this.delay$.pipe((0,rt.O)(this.nzDelay),(0,jt.x)(),(0,Pt.w)(P=>0===P?this.spinning$:this.spinning$.pipe(function xn(I){return(0,zn.e)((Zt,j)=>{let P=!1,J=null,it=null;const Nn=()=>{if(it?.unsubscribe(),it=null,P){P=!1;const cn=J;J=null,j.next(cn)}};Zt.subscribe((0,sn.x)(j,cn=>{it?.unsubscribe(),P=!0,J=cn,it=(0,sn.x)(j,Nn,un.Z),(0,St.Xf)(I(cn)).subscribe(it)},()=>{Nn(),j.complete()},void 0,()=>{J=it=null}))})}(J=>(0,kt.H)(J?P:0)))),(0,K.R)(this.destroy$)).subscribe(P=>{this.isLoading=P,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent("spin").pipe((0,K.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.directionality.change?.pipe((0,K.R)(this.destroy$)).subscribe(P=>{this.dir=P,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(j){const{nzSpinning:P,nzDelay:J}=j;P&&this.spinning$.next(this.nzSpinning),J&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#t=this.\u0275fac=function(P){return new(P||I)(q.Y36(n.jY),q.Y36(q.sBO),q.Y36(wt.Is,8))};static#n=this.\u0275cmp=q.Xpm({type:I,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(P,J){2&P&&q.ekj("ant-spin-nested-loading",!J.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],features:[q.TTD],ngContentSelectors:Dt,decls:4,vars:2,consts:[["defaultTemplate",""],[4,"ngIf"],["class","ant-spin-container",3,"ant-spin-blur",4,"ngIf"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin"],[3,"ngTemplateOutlet"],["class","ant-spin-text",4,"ngIf"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(P,J){1&P&&(q.F$t(),q.YNc(0,M,5,0,"ng-template",null,0,q.W1O)(2,B,4,12,"div",1)(3,E,2,2,"div",2)),2&P&&(q.xp6(2),q.Q6J("ngIf",J.isLoading),q.xp6(1),q.Q6J("ngIf",!J.nzSimple))},dependencies:[Lt.O5,Lt.tP],encapsulation:2})}return(0,x.gn)([(0,n.oS)()],I.prototype,"nzIndicator",void 0),(0,x.gn)([(0,ht.Rn)()],I.prototype,"nzDelay",void 0),(0,x.gn)([(0,ht.yF)()],I.prototype,"nzSimple",void 0),(0,x.gn)([(0,ht.yF)()],I.prototype,"nzSpinning",void 0),I})(),vt=(()=>{class I{static#t=this.\u0275fac=function(P){return new(P||I)};static#n=this.\u0275mod=q.oAB({type:I});static#e=this.\u0275inj=q.cJS({imports:[wt.vT,Lt.ez,$t.Q8]})}return I})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.