This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["-------"],{"./node_modules/dagre-d3-es/src/dagre/index.js":function(hn,W,h){h.d(W,{Zp:function(){returnGt}});varg=h("./node_modules/lodash-es/forEach.js"),R=h("./node_modules/lodash-es/uniqueId.js"),F=h("./node_modules/lodash-es/has.js"),M=h("./node_modules/lodash-es/constant.js"),z=h("./node_modules/lodash-es/flatten.js"),D=h("./node_modules/lodash-es/map.js"),H=h("./node_modules/lodash-es/range.js"),N=h("./node_modules/dagre-d3-es/src/graphlib/index.js");classY{constructor(){vart={};t._next=t._prev=t,this._sentinel=t}dequeue(){vart=this._sentinel,r=t._prev;if(r!==t)returnnn(r),r}enqueue(t){varr=this._sentinel;t._prev&&t._next&&nn(t),t._next=r._next,r._next._prev=t,r._next=t,t._prev=r}toString(){for(vart=[],r=this._sentinel,u=r._prev;u!==r;)t.push(JSON.stringify(u,an)),u=u._prev;return"["+t.join(", ")+"]"}}functionnn(e){e._prev._next=e._next,e._next._prev=e._prev,deletee._next,deletee._prev}functionan(e,t){if(e!=="_next"&&e!=="_prev")returnt}varQ=M.A(1);functionrn(e,t){if(e.nodeCount()<=1)return[];varr=Ln(e,t||Q),u=q(r.graph,r.buckets,r.zeroIdx);returnz.A(D.A(u,function(o){returne.outEdges(o.v,o.w)}))}functionq(e,t,r){for(varu=[],o=t[t.length-1],f=t[0],m;e.nodeCount();){for(;m=f.dequeue();)yn(e,t,r,m);for(;m=o.dequeue();)yn(e,t,r,m);if(e.nodeCount()){for(vary=t.length-2;y>0;--y)if(m=t[y].dequeue(),m){u=u.concat(yn(e,t,r,m,!0));break}}}returnu}functionyn(e,t,r,u,o){varf=o?[]:void0;returng.A(e.inEdges(u.v),function(m){vary=e.edge(m),C=e.node(m.v);o&&f.push({v:m.v,w:m.w}),C.out-=y,mn(t,r,C)}),g.A(e.outEdges(u.v),function(m){vary=e.edge(m),C=m.w,S=e.node(C);S.in-=y,mn(t,r,S)}),e.removeNode(u.v),f}functionLn(e,t){varr=newN.T,u=0,o=0;g.A(e.nodes(),function(y){r.setNode(y,{v:y,in:0,out:0})}),g.A(e.edges(),function(y){varC=r.edge(y.v,y.w)||0,S=t(y),P=C+S;r.setEdge(y.v,y.w,P),o=Math.max(o,r.node(y.v).out+=S),u=Math.max(u,r.node(y.w).in+=S)});varf=H.A(o+u+3).map(function(){returnnewY}),m=u+1;returng.A(r.nodes(),function(y){mn(f,m,r.node(y))}),{graph:r,buckets:f,zeroIdx:m}}functionmn(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}functionBn(e){vart=e.graph().acyclicer==="greedy"?rn(e,r(e)):ve(e);g.A(t,function(u){varo=e.edge(u);e.removeEdge(u),o.forwardName=u.name,o.reversed=!0,e.setEdge(u.w,u.v,o,R.A("rev"))});functionr(u){returnfunction(o){returnu.edge(o).weight}}}functionve(e){vart=[],r={},u={};functiono(f){F.A(u,f)||(u[f]=!0,r[f]=!0,g.A(e.outEdges(f),function(m){F.A(r,m.w)?t.push(m):o(m.w)}),deleter[f])}returng.A(e.nodes(),o),t}functionsn(e){g.A(e.edges(),function(t){varr=e.edge(t);if(r.reversed){e.removeEdge(t);varu=r.forwardName;deleter.reversed,deleter.forwardName,e.setEdge(t.w,t.v,r,u)}})}vargn=h("./node_modules/lodash-es/merge.js"),Rn=h("./node_modules/lodash-es/pick.js"),xe=h("./node_modules/lodash-es/defaults.js"),Z=h("./node_modules/lodash-es/isSymbol.js");functionMn(e,t,r){for(varu=-1,o=e.length;++u<o;){varf=e[u],m=t(f);if(m!=null&&(y===void0?m===m&&!(0,Z.A)(m):r(m,y)))vary=m,C=f}returnC}varln=Mn;function_e(e,t){returne>t}varte=_e,Nn=h("./node_modules/lodash-es/identity.js");functionvn(e){returne&&e.length?ln(e,Nn.A,te):void0}varue=vn;functionpt(e){vart=e==null?0:e.length;returnt?e[t-1]:void0}varye=pt,rt=h("./node_modules/lodash-es/_baseAssignValue.js"),it=h("./node_modules/lodash-es/_baseForOwn.js"),Pe=h("./node_modules/lodash-es/_baseIteratee.js");functionEe(e,t){varr={};returnt=(0,Pe.A)(t,3),(0,it.A)(e,function(u,o,f){(0,rt.A)(r,o,t(u,o,f))}),r}varNe=Ee,re=h("./node_modules/lodash-es/isUndefined.js");functionce(e,t){returne<t}varLe=ce;functionYe(e){returne&&e.length?ln(e,Nn.A,Le):void0}varwe=Ye,Qe=h("./node_modules/lodash-es/_root.js"),ke=function(){returnQe.A.Date.now()},Me=ke;functionAe(e,t,r,u){varo;doo=R.A(u);while(e.hasNode(o));returnr.dummy=t,e.setNode(o,r),o}functiondn(e){vart=newN.T().setGraph(e.graph());returng.A(e.nodes(),function(r){t.setNode(r,e.node(r))}),g.A(e.edges(),function(r){varu=t.edge(r.v,r.w)||{weight:0,minlen:1},o=e.edge(r);t.setEdge(r.v,r.w,{weight:u.weight+o.weight,minlen:Math.max(u.minlen,o.minlen)})}),t}functionw(e){vart=newN.T({multigraph:e.isMultigraph()}).setGraph(e.graph());returng.A(e.nodes(),function(r){e.children(r).length||t.setNode(r,e.node(r))}),g.A(e.edges(),function(r){t.setEdge(r,e.edge(r))}),t}functionL(e){vart=_.map(e.nodes(),function(r){varu={};return_.forEach(e.outEdges(r),function(o){u[o.w]=(u[o.w]||0)+e.edge(o).weight}),u});return_.zipObject(e.nodes(),t)}functionX(e){vart=_.map(e.nodes(),function(r){varu={};return_.forEach(e.inEdges(r),function(o){u[o.v]=(u[o.v]||0)+e.edge(o).weight}),u});return_.zipObject(e.nodes(),t)}functionJ(e,t){varr=e.x,u=e.y,o=t.x-r,f=t.y-u,m=e.width/2,y=e.height/2;if(!o&&!f)thrownewError("Not possible to find intersection inside of the rectangle");varC,S;returnMath.abs(f)*m>Math.abs(o)*y?(f<0&&(y=-y),C=y*o/f,S=y):(o<0&&(m=-m),C=m,S=m*f/o),{x:r+C,y:u+S}}functioncn(e){vart=D.A(H.A($e(e)+1),function(){return[]});returng.A(e.nodes(),function(r){varu=e.node(r),o=u.rank;re.A(o)||(t[o][u.order]=r)}),t}functionAn(e){vart=we(D.A(e.nodes(),function(r){returne.node(r).rank}));g.A(e.nodes(),function(r){varu=e.node(r);F.A(u,"rank")&&(u.rank-=t)})}functionkn(e){vart=we(D.A(e.nodes(),function(f){returne.node(f).rank})),r=[];g.A(e.nodes(),function(f){varm=e.node(f).rank-t;r[m]||(r[m]=[]),r[m].push(f)});varu=0,o=e.graph().nodeRankFactor;g.A(r,function(f,m){re.A(f)&&m%o!==0?--u:u&&g.A(f,function(y){e.node(y).rank+=u})})}function$n(e,t,r,u){varo={width:0,height:0};returnarguments.length>=4&&(o.rank=r,o.order=u),Ae(e,"border",o,t)}function$e(e){returnue(D.A(e.nodes(),function(t){varr=e.node(t).rank;if(!re.A(r))returnr}))}functionfe(e,t){varr={lhs:[],rhs:[]};returng.A(e,function(u){t(u)?r.lhs.push(u):r.rhs.push(u)}),r}functionCe(e,t){varr=Me();try{returnt()}finally{console.log(e+" time: "+(Me()-r)+"ms")}}functionZn(e,t){returnt()}functionTt(e){functiont(r){varu=e.children(r),o=e.node(r);if(u.length&&g.A(u,t),F.A(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(varf=o.minRank,m=o.maxRank+1;f<m;++f)xt(e,"borderLeft","_bl",r,o,f),xt(e,"borderRight","_br",r,o,f)}}g.A(e.children(),t)}functionxt(e,t,r,u,o,f){varm={width:0,height:0,rank:f,borderType:t},y=o[t][f-1],C=Ae(e,"border",m,r);o[t][f]=C,e.setParent(C,u),y&&e.setEdge(y,C,{weight:1})}functionFt(e){vart=e.graph().rankdir.toLowerCase();(t==="lr"||t==="rl")&>(e)}functionOt(e){vart=e.graph().rankdir.toLowerCase();(t==="bt"||t==="rl")&&Pt(e),(t==="lr"||t==="rl")&&(Et(e),gt(e))}functiongt(e){g.A(e.nodes(),function(t){yt(e.node(t))}),g.A(e.edges(),function(t){yt(e.edge(t))})}functionyt(e){vart=e.width;e.width=e.height,e.height=t}functionPt(e){g.A(e.nodes(),function(t){Ze(e.node(t))}),g.A(e.edges(),function(t){varr=e.edge(t);g.A(r.points,Ze),F.A(r,"y")&&Ze(r)})}functionZe(e){e.y=-e.y}functionEt(e){g.A(e.nodes(),function(t){_t(e.node(t))}),g.A(e.edges(),function(t){varr=e.edge(t);g.A(r.points,_t),F.A(r,"x")&&_t(r)})}function_t(e){vart=e.x;e.x=e.y,e.y=t}functionLt(e){e.graph().dummyChains=[],g.A(e.edges(),function(t){At(e,t)})}functionAt(e,t){varr=t.v,u=e.node(r).rank,o=t.w,f=e.node(o).rank,m=t.name,y=e.edge(t),C=y.labelRank;if(f!==u+1){e.removeEdge(t);varS,P,V;for(V=0,++u;u<f;++V,++u)y.points=[],P={width:0,height:0,edgeLabel:y,edgeObj:t,rank:u},S=Ae(e,"edge",P,"_d"),u===C&&(P.width=y.width,P.height=y.height,P.dummy="edge-label",P.labelpos=y.labelpos),e.setEdge(r,S,{weight:y.weight},m),V===0&&e.graph().dummyChains.push(S),r=S;e.setEdge(r,o,{weight:y.weight},m)}}functionst(e){g.A(e.graph().dummyChains,function(t){varr=e.node(t),u=r.edgeLabel,o;for(e.setEdge(r.edgeObj,u);r.dummy;)o=e.successors(t)[0],e.removeNode(t),u.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(u.x=r.x,u.y=r.y,u.width=r.width,u.height=r.height),t=o,r=e.node(t)})}functionXe(e,t){returne&&e.length?ln(e,(0,Pe.A)(t,2),Le):void0}varIe=Xe;functionSe(e){vart={};functionr(u){varo=e.node(u);if(F.A(t,u))returno.rank;t[u]=!0;varf=we(D.A(e.outEdges(u),function(m){returnr(m.w)-e.edge(m).minlen}));return(f===Number.POSITIVE_INFINITY||f===void0||f===null)&&(f=0),o.rank=f}g.A(e.sources(),r)}functionJe(e,t){returne.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}functionwt(e){vart=newN.T({directed:!1}),r=e.nodes()[0],u=e.nodeCount();t.setNode(r,{});for(varo,f;Mt(t,e)<u;)o=Dt(t,e),f=t.hasNode(o.v)?Je(e,o):-Je(e,o),vt(t,e,f);returnt}functionMt(e,t){functionr(u){g.A(t.nodeEdges(u),function(o){varf=o.v,m=u===f?o.w:f;!e.hasNode(m)&&!Je(t,o)&&(e.setNode(m,{}),e.setEdge(u,m,{}),r(m))})}returng.A(e.nodes(),r),e.nodeCount()}functionDt(e,t){returnIe(t.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))returnJe(t,r)})}functionvt(e,t,r){g.A(e.nodes(),function(u){t.node(u).rank+=r})}varbt=h("./node_modules/lodash-es/isArrayLike.js"),Bt=h("./node_modules/lodash-es/keys.js");functionRt(e){returnfunction(t,r,u){varo=Object(t);if(!(0,bt.A)(t)){varf=(0,Pe.A)(r,3);t=(0,Bt.A)(t),r=function(y){returnf(o[y],y,o)}}varm=e(t,r,u);returnm>-1?o[f?t[m]:m]:void0}}varzt=Rt,O=h("./node_modules/lodash-es/_baseFindIndex.js"),U=h("./node_modules/lodash-es/toFinite.js");functionun(e){vart=(0,U.A)(e),r=t%1;returnt===t?r?t-r:t:0}varfn=un,jn=Math.max;function_n(e,t,r){varu=e==null?0:e.length;if(!u)return-1;varo=r==null?0:fn(r);returno<0&&(o=jn(u+o,0)),(0,O.A)(e,(0,Pe.A)(t,3),o)}varGn=_n,Tn=zt(Gn),Un=Tn,Wn=h("./node_modules/lodash-es/filter.js"),oe=M.A(1);functionie(e,t,r,u){returnVn(e,String(t),r||oe,u||function(o){returne.outEdges(o)})}functionVn(e,t,r,u){varo={},f=newPriorityQueue,m,y,C=function(S){varP=S.v!==m?S.v:S.w,V=o[P],pn=r(S),En=y.distance+pn;if(pn<0)thrownewError("dijkstra does not allow negative edge weights. Bad edge: "+S+" Weight: "+pn);En<V.distance&&(V.distance=En,V.predecessor=m,f.decrease(P,En))};for(e.nodes().forEach(function(S){varP=S===t?0:Number.POSITIVE_INFINITY;o[S]={distance:P},f.add(S,P)});f.size()>0&&(m=f.removeMin(),y=o[m],y.distance!==Number.POSITIVE_INFINITY);)u(m).forEach(C);returno}functionje(e,t,r){return_.transform(e.nodes(),function(u,o){u[o]=dijkstra(e,o,t,r)},{})}varle=M.A(1);functionpe(e,t,r){returnTe(e,t||le,r||function(u){returne.outEdges(u)})}functionTe(e,t,r){varu={},o=e.nodes();returno.forEach(function(f){u[f]={},u[f][f]={distance:0},o.forEach(function(m){f!==m&&(u[f][m]={distance:Number.POSITIVE_INFINITY})}),r(f).forEach(function(m){vary=m.v===f?m.w:m.v,C=t(m);u[f][y]={distance:C,predecessor:f}})}),o.forEach(function(f){varm=u[f];o.forEach(function(y){varC=u[y];o.forEach(function(S){varP=C[f],V=m[S],pn=C[S],En=P.distance+V.distance;En<pn.distance&&(pn.distance=En,pn.predecessor=V.predecessor)})})}),u}varDe=h("./node_modules/lodash-es/_baseKeys.js"),Fe=h("./node_modules/lodash-es/_getTag.js"),at=h("./node_modules/lodash-es/_baseGetTag.js"),Be=h("./node_modules/lodash-es/isArray.js"),ut=h("./node_modules/lodash-es/isObjectLike.js"),Yt="[object String]";functionrr(e){returntypeofe=="string"||!(0,Be.A)(e)&&(0,ut.A)(e)&&(0,at.A)(e)==Yt}varNt=rr,ir=h("./node_modules/lodash-es/_baseProperty.js"),Ut=(0,ir.A)("length"),sr=Ut,Fn="\\ud800-\\udfff",kt="\\u0300-\\u036f",ar="\\ufe20-\\ufe2f",K="\\u20d0-\\u20ff",Cn=kt+ar+K,de="\\ufe0e\\ufe0f",ot="\\u200d",Ct=RegExp("["+ot+Fn+Cn+de+"]");functionUe(e){returnCt.test(e)}varhe=Ue,lt="\\ud800-\\udfff",dt="\\u0300-\\u036f",ur="\\ufe20-\\ufe2f",Qt="\\u20d0-\\u20ff",qe=dt+ur+Qt,$t="\\ufe0e\\ufe0f",Zt="["+lt+"]",Wt="["+qe+"]",It="\\ud83c[\\udffb-\\udfff]",We="(?:"+Wt+"|"+It+")",Ke="[^"+lt+"]",mr="(?:\\ud83c[\\udde6-\\uddff]){2}",pr="[\\ud800-\\udbff][\\udc00-\\udfff]",Dr="\\u200d",gr=We+"?",_r="["+$t+"]?",Br="(?:"+Dr+"(?:"+[Ke,mr,pr].join("|")+")"+_r+gr+")*",Rr=_r+gr+Br,zr="(?:"+[Ke+Wt+"?",Wt,mr,pr,Zt].join("|")+")",Ar=RegExp(It+"(?="+It+")|"+zr+Rr,"g");functionNr(e){for(vart=Ar.lastIndex=0;Ar.test(e);)++t;returnt}varUr=Nr;functionWr(e){returnhe(e)?Ur(e):sr(e)}varKr=Wr,Hr="[object Map]",Gr="[object Set]";functionVr(e){if(e==null)return0;if((0,bt.A)(e))returnNt(e)?Kr(e):e.length;vart=(0,Fe.A)(e);returnt==Hr||t==Gr?e.size:(0,De.A)(e).length}varvr=Vr;Yr.CycleException=Xt;functionYr(e){vart={},r={},u=[];functiono(f){if(F.A(r,f))thrownewXt;F.A(t,f)||(r[f]=!0,t[f]=!0,g.A(e.predecessors(f),o),deleter[f],u.push(f))}if(g.A(e.sinks(),o),vr(t)!==e.nodeCount())thrownewXt;returnu}functionXt(){}Xt.prototype=newError;functionQr(e){try{topsort(e)}catch(t){if(tinstanceofCycleException)return!1;throwt}return!0}functionbr(e,t,r){Be.A(t)||(t=[t]);varu=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],f={};returng.A(t,function(m){if(!e.hasNode(m))thrownewError("Graph does not have node: "+m);xr(e,m,r==="post",f,u,o)}),o}functionxr(e,t,r,u,o,f){F.A(u,t)||(u[t]=!0,r||f.push(t),g.A(o(t),function(m){xr(e,m,r,u,o,f)}),r&&f.push(t))}function$r(e,t){returnbr(e,t,"post")}functionJt(e,t){returnbr(e,t,"pre")}varyr=h("./node_modules/dagre-d3-es/src/graphlib/graph.js");functionZr(e,t){varr=newGraph,u={},o=newPriorityQueue,f;functionm(C){varS=C.v===f?C.w:C.v,P=o.priority(S);if(P!==void0){varV=t(C);V<P&&(u[S]=f,o.decrease(S,V))}}if(e.nodeCount()===0)returnr;_.each(e.nodes(),function(C){o.add(C,Number.POSITIVE_INFINITY),r.setNode(C)}),o.decrease(e.nodes()[0],0);for(vary=!1;o.size()>0;){if(f=o.removeMin(),_.has(u,f))r.setEdge(f,u[f]);else{if(y)thrownewError("Input graph is not connected: "+e);y=!0}e.nodeEdges(f).forEach(m)}returnr}ct.initLowLimValues=He,ct.initCutValues=qt,ct.calcCutValue=wr,ct.leaveEdge=kr,ct.enterEdge=lr,ct.exchangeEdges=Cr;functionct(e){e=dn(e),Se(e);vart=wt(e);He(t),qt(t,e);for(varr,u;r=kr(t);)u=lr(t,e,r),Cr(t,e,r,u)}functionqt(e,t){varr=$r(e,e.nodes());r=r.slice(0,r.length-1),g.A(r,function(u){Er(e,t,u)})}functionEr(e,t,r){varu=e.node(r),o=u.parent;e.edge(r,o).cutvalue=wr(e,t,r)}functionwr(e,t,r){varu=e.node(r),o=u.parent,f=!0,m=t.edge(r,o),y=0;returnm||(f=!1,m=t.edge(o,r)),y=m.weight,g.A(t.nodeEdges(r),function(C){varS=C.v===r,P=S?C.w:C.v;if(P!==o){varV=S===f,pn=t.edge(C).weight;if(y+=V?pn:-pn,Jr(e,r,P)){varEn=e.edge(r,P).cutvalue;y+=V?-En:En}}}),y}functionHe(e,t){arguments.length<2&&(t=e.nodes()[0]),or(e,{},1,t)}functionor(e,t,r,u,o){varf=r,m=e.node(u);returnt[u]=!0,g.A(e.neighbors(u),function(y){F.A(t,y)||(r=or(e,t,r,y,u))}),m.low=f,m.lim=r++,o?m.parent=o:deletem.parent,r}functionkr(e){returnUn(e.edges(),function(t){returne.edge(t).cutvalue<0})}functionlr(e,t,r){varu=r.v,o=r.w;t.hasEdge(u,o)||(u=r.w,o=r.v);varf=e.node(u),m=e.node(o),y=f,C=!1;f.lim>m.lim&&(y=m,C=!0);varS=Wn.A(t.edges(),function(P){returnC===Ir(e,e.node(P.v),y)&&C!==Ir(e,e.node(P.w),y)});returnIe(S,function(P){returnJe(t,P)})}functionCr(e,t,r,u){varo=r.v,f=r.w;e.removeEdge(o,f),e.setEdge(u.v,u.w,{}),He(e),qt(e,t),Xr(e,t)}functionXr(e,t){varr=Un(e.nodes(),function(o){return!t.node(o).parent}),u=Jt(e,r);u=u.slice(1),g.A(u,function(o){varf=e.node(o).parent,m=t.edge(o,f),y=!1;m||(m=t.edge(f,o),y=!0),t.node(o).rank=t.node(f).rank+(y?m.minlen:-m.minlen)})}functionJr(e,t,r){returne.hasEdge(t,r)}functionIr(e,t,r){returnr.low<=t.lim&&t.lim<=r.lim}functionqr(e){switch(e.graph().ranker){case"network-simplex":jr(e);break;case"tight-tree":Sr(e);break;case"longest-path":ni(e);break;default:jr(e)}}varni=Se;functionSr(e){Se(e),wt(e)}functionjr(e){ct(e)}varft=h("./node_modules/lodash-es/values.js"),nr=h("./node_modules/lodash-es/reduce.js");functionei(e){vart=Ae(e,"root",{},"_root"),r=ti(e),u=ue(ft.A(r))-1,o=2*u+1;e.graph().nestingRoot=t,g.A(e.edges(),function(m){e.edge(m).minlen*=o});varf=ri(e)+1;g.A(e.children(),function(m){er(e,t,o,f,u,r,m)}),e.graph().nodeRankFactor=o}functioner(e,t,r,u,o,f,m){vary=e.children(m);if(!y.length){m!==t&&e.setEdge(t,m,{weight:0,minlen:r});return}varC=$n(e,"_bt"),S=$n(e,"_bb"),P=e.node(m);e.setParent(C,m),P.borderTop=C,e.setParent(S,m),P.borderBottom=S,g.A(y,function(V){er(e,t,r,u,o,f,V);varpn=e.node(V),En=pn.borderTop?pn.borderTop:V,Pn=pn.borderBottom?pn.borderBottom:V,ge=pn.borderTop?u:2*u,hr=En!==Pn?1:o-f[m]+1;e.setEdge(C,En,{weight:ge,minlen:hr,nestingEdge:!0}),e.setEdge(Pn,S,{weight:ge,minlen:hr,nestingEdge:!0})}),e.parent(m)||e.setEdge(t,C,{weight:0,minlen:o+f[m]})}functionti(e){vart={};functionr(u,o){varf=e.children(u);f&&f.length&&g.A(f,function(m){r(m,o+1)}),t[u]=o}returng.A(e.children(),function(u){r(u,1)}),t}functionri(e){returnnr.A(e.edges(),function(t,r){returnt+e.edge(r).weight},0)}functionii(e){vart=e.graph();e.removeNode(t.nestingRoot),deletet.nestingRoot,g.A(e.edges(),function(r){varu=e.edge(r);u.nestingEdge&&e.removeEdge(r)})}vardr=h("./node_modules/lodash-es/_baseClone.js"),si=1,n=4;functiona(e){return(0,dr.A)(e,si|n)}vari=a;functions(e,t,r){varu={},o;g.A(r,function(f){for(varm=e.parent(f),y,C;m;){if(y=e.parent(m),y?(C=u[y],u[y]=m):(C=o,o=m),C&&C!==m){t.setEdge(C,m);return}m=y}})}functionc(e,t,r){varu=l(e),o=newN.T({compound:!0}).setGraph({root:u}).setDefaultNodeLabel(function(f){returne.node(f)});returng.A(e.nodes(),function(f){varm=e.node(f),y=e.parent(f);(m.rank===t||m.minRank<=t&&t<=m.maxRank)&&(o.setNode(f),o.setParent(f,y||u),g.A(e[r](f),function(C){varS=C.v===f?C.w:C.v,P=o.edge(S,f),V=re.A(P)?0:P.weight;o.setEdge(S,f,{weight:e.edge(C).weight+V})}),F.A(m,"minRank")&&o.setNode(f,{borderLeft:m.borderLeft[t],borderRight:m.borderRight[t]}))}),o}functionl(e){for(vart;e.hasNode(t=R.A("_root")););returnt}vard=h("./node_modules/lodash-es/_assignValue.js");functionp(e,t,r){for(varu=-1,o=e.length,f=t.length,m={};++u<o;){vary=u<f?t[u]:void0;r(m,e[u],y)}returnm}varI=p;functionE(e,t){returnI(e||[],t||[],d.A)}varb=E,j=h("./node_modules/lodash-es/_baseFlatten.js"),k=h("./node_modules/lodash-es/_arrayMap.js"),x=h("./node_modules/lodash-es/_baseGet.js"),In=h("./node_modules/lodash-es/_baseMap.js");functionSn(e,t){varr=e.length;for(e.sort(t);r--;)e[r]=e[r].value;returne}varKn=Sn,$=h("./node_modules/lodash-es/_baseUnary.js");functionXn(e,t){if(e!==t){varr=e!==void0,u=e===null,o=e===e,f=(0,Z.A)(e),m=t!==void0,y=t===null,C=t===t,S=(0,Z.A)(t);if(!y&&!S&&!f&&e>t||f&&m&&C&&!y&&!S||u&&m&&C||!r&&C||!o)return1;if(!u&&!f&&!S&&e<t||S&&r&&o&&!u&&!f||y&&r&&o||!m&&o||!C)return-1}return0}varen=Xn;functionYn(e,t,r){for(varu=-1,o=e.criteria,f=t.criteria,m=o.length,y=r.length;++u<m;){varC=en(o[u],f[u]);if(C){if(u>=y)returnC;varS=r[u];returnC*(S=="desc"?-1:1)}}returne.index-t.index}varQn=Yn;functionB(e,t,r){t.length?t=(0,k.A)(t,function(f){return(0,Be.A)(f)?function(m){return(0,x.A)(m,f.length===1?f[0]:f)}:f}):t=[Nn.A];varu=-1;t=(0,k.A)(t,(0,$.A)(Pe.A));varo=(0,In.A)(e,function(f,m,y){varC=(0,k.A)(t,function(S){returnS(f)});return{criteria:C,index:++u,value:f}});returnKn(o,function(f,m){returnQn(f,m,r)})}varzn=B,ee=h("./node_modules/lodash-es/_baseRest.js"),qn=h("./node_modules/lodash-es/_isIterateeCall.js"),me=(0,ee.A)(function(e,t){if(e==null)return[];varr=t.length;returnr>1&&(0,qn.A)(e,t[0],t[1])?t=[]:r>2&&(0,qn.A)(t[0],t[1],t[2])&&(t=[t[0]]),zn(e,(0,j.A)(t,1),[])}),Hn=me;functionwn(e,t){for(varr=0,u=1;u<t.length;++u)r+=tn(e,t[u-1],t[u]);returnr}functiontn(e,t,r){for(varu=b(r,D.A(r,function(S,P){returnP})),o=z.A(D.A(t,function(S){returnHn(D.A(e.outEdges(S),function(P){return{pos:u[P.w],weight:e.edge(P).weight}}),"pos")})),f=1;f<r.length;)f<<=1;varm=2*f-1;f-=1;vary=D.A(newArray(m),function(){return0}),C=0;returng.A(o.forEach(function(S){varP=S.pos+f;y[P]+=S.weight;for(varV=0;P>0;)P%2&&(V+=y[P+1]),P=P-1>>1,y[P]+=S.weight;C+=S.weight*V})),C}functionxn(e){vart={},r=Wn.A(e.nodes(),function(y){return!e.children(y).length}),u=ue(D.A(r,function(y){returne.node(y).rank})),o=D.A(H.A(u+1),function(){return[]});functionf(y){if(!F.A(t,y)){t[y]=!0;varC=e.node(y);o[C.rank].push(y),g.A(e.successors(y),f)}}varm=Hn(r,function(y){returne.node(y).rank});returng.A(m,f),o}functionbn(e,t){returnD.A(t,function(r){varu=e.inEdges(r);if(u.length){varo=nr.A(u,function(f,m){vary=e.edge(m),C=e.node(m.v);return{sum:f.sum+y.weight*C.order,weight:f.weight+y.weight}},{sum:0,weight:0});return{v:r,barycenter:o.sum/o.weight,weight:o.weight}}elsereturn{v:r}})}functionJn(e,t){varr={};g.A(e,function(o,f){varm=r[o.v]={indegree:0,in:[],out:[],vs:[o.v],i:f};re.A(o.barycenter)||(m.barycenter=o.barycenter,m.weight=o.weight)}),g.A(t.edges(),function(o){varf=r[o.v],m=r[o.w];!re.A(f)&&!re.A(m)&&(m.indegree++,f.out.push(r[o.w]))});varu=Wn.A(r,function(o){return!o.indegree});returnse(u)}functionse(e){vart=[];functionr(f){returnfunction(m){m.merged||(re.A(m.barycenter)||re.A(f.barycenter)||m.barycenter>=f.barycenter)&&Re(f,m)}}functionu(f){returnfunction(m){m.in.push(f),--m.indegree===0&&e.push(m)}}for(;e.length;){varo=e.pop();t.push(o),g.A(o.in.reverse(),r(o)),g.A(o.out,u(o))}returnD.A(Wn.A(t,function(f){return!f.merged}),function(f){returnRn.A(f,["vs","i","barycenter","weight"])})}functionRe(e,t){varr=0,u=0;e.weight&&(r+=e.barycenter*e.weight,u+=e.weight),t.weight&&(r+=t.barycenter*t.weight,u+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/u,e.weight=u,e.i=Math.min(t.i,e.i),t.merged=!0}functionGe(e,t){varr=fe(e,function(P){returnF.A(P,"barycenter")}),u=r.lhs,o=Hn(r.rhs,function(P){return-P.i}),f=[],m=0,y=0,C=0;u.sort(Oe(!!t)),C=A(f,o,C),g.A(u,function(P){C+=P.vs.length,f.push(P.vs),m+=P.barycenter*P.weight,y+=P.weight,C=A(f,o,C)});varS={vs:z.A(f)};returny&&(S.barycenter=m/y,S.weight=y),S}functionA(e,t,r){for(varu;t.length&&(u=ye(t)).i<=r;)t.pop(),e.push(u.vs),r++;returnr}functionOe(e){returnfunction(t,r){returnt.barycenter<r.barycenter?-1:t.barycenter>r.barycenter?1:e?r.i-t.i:t.i-r.i}}functionVe(e,t,r,u){varo=e.children(t),f=e.node(t),m=f?f.borderLeft:void0,y=f?f.borderRight:void0,C={};m&&(o=Wn.A(o,function(Pn){returnPn!==m&&Pn!==y}));varS=bn(e,o);g.A(S,function(Pn){if(e.children(Pn.v).length){varge=Ve(e,Pn.v,r,u);C[Pn.v]=ge,F.A(ge,"barycenter")&&be(Pn,ge)}});varP=Jn(S,r);v(P,C);varV=Ge(P,u);if(m&&(V.vs=z.A([m,V.vs,y]),e.predecessors(m).length)){varpn=e.node(e.predecessors(m)[0]),En=e.node(e.predecessors(y)[0]);F.A(V,"barycenter")||(V.barycenter=0,V.weight=0),V.barycenter=(V.barycenter*V.weight+pn.order+En.order)/(V.weight+2),V.weight+=2}returnV}functionv(e,t){g.A(e,function(r){r.vs=z.A(r.vs.map(function(u){returnt[u]?t[u].vs:u}))})}functionbe(e,t){re.A(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}functionSt(e){vart=$e(e),r=tr(e,H.A(1,t+1),"inEdges"),u=tr(e,H.A(t-1,-1,-1),"outEdges"),o=xn(e);ae(e,o);for(varf=Number.POSITIVE_INFINITY,m,y=0,C=0;C<4;++y,++C){Kt(y%2?r:u,y%4>=2),o=cn(e);varS=wn(e,o);S<f&&(C=0,m=i(o),f=S)}ae(e,m)}functiontr(e,t,r){returnD.A(t,function(u){returnc(e,u,r)})}functionKt(e,t){varr=newN.T;g.A(e,function(u){varo=u.graph().root,f=Ve(u,o,r,t);g.A(f.vs,function(m,y){u.node(m).order=y}),s(u,r,f.vs)})}functionae(e,t){g.A(t,function(r){g.A(r,function(u,o){e.node(u).order=o})})}functionHt(e){vart=jt(e);g.A(e.graph().dummyChains,function(r){for(varu=e.node(r),o=u.edgeObj,f=nt(e,t,o.v,o.w),m=f.path,y=f.lca,C=0,S=m[C],P=!0;r!==o.w;){if(u=e.node(r),P){for(;(S=m[C])!==y&&e.node(S).maxRank<u.rank;)C++;S===y&&(P=!1)}if(!P){for(;C<m.length-1&&e.node(S=m[C+1]).minRank<=u.rank;)C++;S=m[C]}e.setParent(r,S),r=e.successors(r)[0]}})}functionnt(e,t,r,u){varo=[],f=[],m=Math.min(t[r].low,t[u].low),y=Math.max(t[r].lim,t[u].lim),C,S;C=r;doC=e.parent(C),o.push(C);while(C&&(t[C].low>m||y>t[C].lim));for(S=C,C=u;(C=e.parent(C))!==S;)f.push(C);return{path:o.concat(f.reverse()),lca:S}}functionjt(e){vart={},r=0;functionu(o){varf=r;g.A(e.children(o),u),t[o]={low:f,lim:r++}}returng.A(e.children(),u),t}varht=h("./node_modules/lodash-es/_castFunction.js");functioncr(e,t){returne&&(0,it.A)(e,(0,ht.A)(t))}varai=cr,ui=h("./node_modules/lodash-es/_baseFor.js"),Tr=h("./node_modules/lodash-es/keysIn.js");functionFr(e,t){returne==null?e:(0,ui.A)(e,(0,ht.A)(t),Tr.A)}varOr=Fr;functionoi(e,t){varr={};functionu(o,f){varm=0,y=0,C=o.length,S=ye(f);returng.A(f,function(P,V){varpn=Lr(e,P),En=pn?e.node(pn).order:C;(pn||P===S)&&(g.A(f.slice(y,V+1),function(Pn){g.A(e.predecessors(Pn),function(ge){varhr=e.node(ge),pi=hr.order;(pi<m||En<pi)&&!(hr.dummy&&e.node(Pn).dummy)&&Mr(r,ge,Pn)})}),y=V+1,m=En)}),f}returnnr.A(t,u),r}functionPr(e,t){varr={};functionu(f,m,y,C,S){varP;g.A(H.A(m,y),function(V){P=f[V],e.node(P).dummy&&g.A(e.predecessors(P),function(pn){varEn=e.node(pn);En.dummy&&(En.order<C||En.order>S)&&Mr(r,pn,P)})})}functiono(f,m){vary=-1,C,S=0;returng.A(m,function(P,V){if(e.node(P).dummy==="border"){varpn=e.predecessors(P);pn.length&&(C=e.node(pn[0]).order,u(m,S,V,y,C),S=V,y=C)}u(m,S,m.length,C,f.length)}),m}returnnr.A(t,o),r}functionLr(e,t){if(e.node(t).dummy)returnUn(e.predecessors(t),function(r){returne.node(r).dummy})}functionMr(e,t,r){if(t>r){varu=t;t=r,r=u}varo=e[t];o||(e[t]=o={}),o[r]=!0}functionli(e,t,r){if(t>r){varu=t;t=r,r=u}returnF.A(e[t],r)}functiondi(e,t,r,u){varo={},f={},m={};returng.A(t,function(y){g.A(y,function(C,S){o[C]=C,f[C]=C,m[C]=S})}),g.A(t,function(y){varC=-1;g.A(y,function(S){varP=u(S);if(P.length){P=Hn(P,function(ge){returnm[ge]});for(varV=(P.length-1)/2,pn=Math.floor(V),En=Math.ceil(V);pn<=En;++pn){varPn=P[pn];f[S]===S&&C<m[Pn]&&!li(r,S,Pn)&&(f[Pn]=S,f[S]=o[S]=o[Pn],C=m[Pn])}}})}),{root:o,align:f}}functionci(e,t,r,u,o){varf={},m=fi(e,t,r,o),y=o?"borderLeft":"borderRight";functionC(V,pn){for(varEn=m.nodes(),Pn=En.pop(),ge={};Pn;)ge[Pn]?V(Pn):(ge[Pn]=!0,En.push(Pn),En=En.concat(pn(Pn))),Pn=En.pop()}functionS(V){f[V]=m.inEdges(V).reduce(function(pn,En){returnMath.max(pn,f[En.v]+m.edge(En))},0)}functionP(V){varpn=m.outEdges(V).reduce(function(Pn,ge){returnMath.min(Pn,f[ge.w]-m.edge(ge))},Number.POSITIVE_INFINITY),En=e.node(V);pn!==Number.POSITIVE_INFINITY&&En.borderType!==y&&(f[V]=Math.max(f[V],pn))}returnC(S,m.predecessors.bind(m)),C(P,m.successors.bind(m)),g.A(u,function(V){f[V]=f[r[V]]}),f}functionfi(e,t,r,u){varo=newN.T,f=e.graph(),m=Dn(f.nodesep,f.edgesep,u);returng.A(t,function(y){varC;g.A(y,function(S){varP=r[S];if(o.setNode(P),C){varV=r[C],pn=o.edge(V,P);o.setEdge(V,P,Math.max(m(e,S,C),pn||0))}C=S})}),o}functionT(e,t){returnIe(ft.A(t),function(r){varu=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;returnOr(r,function(f,m){vary=ze(e,m)/2;u=Math.max(f+y,u),o=Math.min(f-y,o)}),u-o})}functionG(e,t){varr=ft.A(t),u=we(r),o=ue(r);g.A(["u","d"],function(f){g.A(["l","r"],function(m){vary=f+m,C=e[y],S;if(C!==t){varP=ft.A(C);S=m==="l"?u-we(P):o-ue(P),S&&(e[y]=Ne(C,function(V){returnV+S}))}})})}functionon(e,t){returnNe(e.ul,function(r,u){if(t)returne[t.toLowerCase()][u];varo=Hn(D.A(e,u));return(o[1]+o[2])/2})}functionOn(e){vart=cn(e),r=gn.A(oi(e,t),Pr(e,t)),u={},o;g.A(["u","d"],function(m){o=m==="u"?t:ft.A(t).reverse(),g.A(["l","r"],function(y){y==="r"&&(o=D.A(o,function(V){returnft.A(V).reverse()}));varC=(m==="u"?e.predecessors:e.successors).bind(e),S=di(e,o,r,C),P=ci(e,o,S.root,S.align,y==="r");y==="r"&&(P=Ne(P,function(V){return-V})),u[m+y]=P})});varf=T(e,u);returnG(u,f),on(u,e.graph().align)}functionDn(e,t,r){returnfunction(u,o,f){varm=u.node(o),y=u.node(f),C=0,S;if(C+=m.width/2,F.A(m,"labelpos"))switch(m.labelpos.toLowerCase()){case"l":S=-m.width/2;break;case"r":S=m.width/2;break}if(S&&(C+=r?S:-S),S=0,C+=(m.dummy?t:e)/2,C+=(y.dummy?t:e)/2,C+=y.width/2,F.A(y,"labelpos"))switch(y.labelpos.toLowerCase()){case"l":S=y.width/2;break;case"r":S=-y.width/2;break}returnS&&(C+=r?S:-S),S=0,C}}functionze(e,t){returne.node(t).width}functionmt(e){e=w(e),et(e),ai(On(e),function(t,r){e.node(r).x=t})}functionet(e){vart=cn(e),r=e.graph().ranksep,u=0;g.A(t,function(o){varf=ue(D.A(o,function(m){returne.node(m).height}));g.A(o,function(m){e.node(m).y=u+f/2}),u+=f+r})}functionGt(e,t){varr=t&&t.debugTiming?Ce:Zn;r("layout",function(){varu=r(" buildLayoutGraph",function(){returnyi(e)});r(" runLayout",function(){Vt(u,r)}),r(" updateInputGraph",function(){ne(e,u)})})}functionVt(e,t){t(" makeSpaceForEdgeLabels",function(){Ei(e)}),t(" removeSelfEdges",function(){Oi(e)}),t(" acyclic",function(){Bn(e)}),t(" nestingGraph.run",function(){ei(e)}),t(" rank",function(){qr(w(e))}),t(" injectEdgeLabelProxies",function(){wi(e)}),t(" removeEmptyRanks",function(){kn(e)}),t(" nestingGraph.cleanup",function(){ii(e)}),t(" normalizeRanks",function(){An(e)}),t(" assignRankMinMax",function(){ki(e)}),t(" removeEdgeLabelProxies",function(){Ci(e)}),t(" normalize.run",function(){Lt(e)}),t(" parentDummyChains",function(){Ht(e)}),t(" addBorderSegments",function(){Tt(e)}),t(" order",function(){St(e)}),t(" insertSelfEdges",function(){Pi(e)}),t(" adjustCoordinateSystem",function(){Ft(e)}),t(" position",function(){mt(e)}),t(" positionSelfEdges",function(){Li(e)}),t(" removeBorderNodes",function(){Fi(e)}),t(" normalize.undo",function(){st(e)}),t(" fixupEdgeLabelCoords",function(){ji(e)}),t(" undoCoordinateSystem",function(){Ot(e)}),t(" translateGraph",function(){Ii(e)}),t(" assignNodeIntersects",function(){Si(e)}),t(" reversePoints",function(){Ti(e)}),t(" acyclic.undo",function(){sn(e)})}functionne(e,t){g.A(e.nodes(),function(r){varu=e.node(r),o=t.node(r);u&&(u.x=o.x,u.y=o.y,t.children(r).length&&(u.width=o.width,u.height=o.height))}),g.A(e.edges(),function(r){varu=e.edge(r),o=t.edge(r);u.points=o.points,F.A(o,"x")&&(u.x=o.x,u.y=o.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}varfr=["nodesep","edgesep","ranksep","marginx","marginy"],tt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},gi=["acyclicer","ranker","rankdir","align"],_i=["width","height"],Ai={width:0,height:0},vi=["minlen","weight","width","height","labeloffset"],bi={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},xi=["labelpos"];functionyi(e){vart=newN.T({multigraph:!0,compound:!0}),r=mi(e.graph());returnt.setGraph(gn.A({},tt,hi(r,fr),Rn.A(r,gi))),g.A(e.nodes(),function(u){varo=mi(e.node(u));t.setNode(u,xe.A(hi(o,_i),Ai)),t.setParent(u,e.parent(u))}),g.A(e.edges(),function(u){varo=mi(e.edge(u));t.setEdge(u,gn.A({},bi,hi(o,vi),Rn.A(o,xi)))}),t}functionEi(e){vart=e.graph();t.ranksep/=2,g.A(e.edges(),function(r){varu=e.edge(r);u.minlen*=2,u.labelpos.toLowerCase()!=="c"&&(t.rankdir==="TB"||t.rankdir==="BT"?u.width+=u.labeloffset:u.height+=u.labeloffset)})}functionwi(e){g.A(e.edges(),function(t){varr=e.edge(t);if(r.width&&r.height){varu=e.node(t.v),o=e.node(t.w),f={rank:(o.rank-u.rank)/2+u.rank,e:t};Ae(e,"edge-proxy",f,"_ep")}})}functionki(e){vart=0;g.A(e.nodes(),function(r){varu=e.node(r);u.borderTop&&(u.minRank=e.node(u.borderTop).rank,u.maxRank=e.node(u.borderBottom).rank,t=ue(t,u.maxRank))}),e.graph().maxRank=t}functionCi(e){g.A(e.nodes(),function(t){varr=e.node(t);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(t))})}functionIi(e){vart=Number.POSITIVE_INFINITY,r=0,u=Number.POSITIVE_INFINITY,o=0,f=e.graph(),m=f.marginx||0,y=f.marginy||0;functionC(S){varP=S.x,V=S.y,pn=S.width,En=S.height;t=Math.min(t,P-pn/2),r=Math.max(r,P+pn/2),u=Math.min(u,V-En/2),o=Math.max(o,V+En/2)}g.A(e.nodes(),function(S){C(e.node(S))}),g.A(e.edges(),function(S){varP=e.edge(S);F.A(P,"x")&&C(P)}),t-=m,u-=y,g.A(e.nodes(),function(S){varP=e.node(S);P.x-=t,P.y-=u}),g.A(e.edges(),function(S){varP=e.edge(S);g.A(P.points,function(V){V.x-=t,V.y-=u}),F.A(P,"x")&&(P.x-=t),F.A(P,"y")&&(P.y-=u)}),f.width=r-t+m,f.height=o-u+y}functionSi(e){g.A(e.edges(),function(t){varr=e.edge(t),u=e.node(t.v),o=e.node(t.w),f,m;r.points?(f=r.points[0],m=r.points[r.points.length-1]):(r.points=[],f=o,m=u),r.points.unshift(J(u,f)),r.points.push(J(o,m))})}functionji(e){g.A(e.edges(),function(t){varr=e.edge(t);if(F.A(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}functionTi(e){g.A(e.edges(),function(t){varr=e.edge(t);r.reversed&&r.points.reverse()})}functionFi(e){g.A(e.nodes(),function(t){if(e.children(t).length){varr=e.node(t),u=e.node(r.borderTop),o=e.node(r.borderBottom),f=e.node(ye(r.borderLeft)),m=e.node(ye(r.borderRight));r.width=Math.abs(m.x-f.x),r.height=Math.abs(o.y-u.y),r.x=f.x+r.width/2,r.y=u.y+r.height/2}}),g.A(e.nodes(),function(t){e.node(t).dummy==="border"&&e.removeNode(t)})}functionOi(e){g.A(e.edges(),function(t){if(t.v===t.w){varr=e.node(t.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}functionPi(e){vart=cn(e);g.A(t,function(r){varu=0;g.A(r,function(o,f){varm=e.node(o);m.order=f+u,g.A(m.selfEdges,function(y){Ae(e,"selfedge",{width:y.label.width,height:y.label.height,rank:m.rank,order:f+++u,e:y.e,label:y.label},"_se")}),deletem.selfEdges})})}functionLi(e){g.A(e.nodes(),function(t){varr=e.node(t);if(r.dummy==="selfedge"){varu=e.node(r.e.v),o=u.x+u.width/2,f=u.y,m=r.x-o,y=u.height/2;e.setEdge(r.e,r.label),e.removeNode(t),r.label.points=[{x:o+2*m/3,y:f-y},{x:o+5*m/6,y:f-y},{x:o+m,y:f},{x:o+5*m/6,y:f+y},{x:o+2*m/3,y:f+y}],r.label.x=r.x,r.label.y=r.y}})}functionhi(e,t){returnNe(Rn.A(e,t),Number)}functionmi(e){vart={};returng.A(e,function(r,u){t[u.toLowerCase()]=r}),t}},"./node_modules/dagre-d3-es/src/graphlib/graph.js":function(hn,W,h){h.d(W,{T:function(){returnYe}});varg=h("./node_modules/lodash-es/has.js"),R=h("./node_modules/lodash-es/constant.js"),F=h("./node_modules/lodash-es/isFunction.js"),M=h("./node_modules/lodash-es/keys.js"),z=h("./node_modules/lodash-es/filter.js"),D=h("./node_modules/lodash-es/isEmpty.js"),H=h("./node_modules/lodash-es/forEach.js"),N=h("./node_modules/lodash-es/isUndefined.js"),Y=h("./node_modules/lodash-es/_baseFlatten.js"),nn=h("./node_modules/lodash-es/_baseRest.js"),an=h("./node_modules/lodash-es/_SetCache.js"),Q=h("./node_modules/lodash-es/_baseFindIndex.js");functionrn(dn){returndn!==dn}varq=rn;functionyn(dn,w,L){for(varX=L-1,J=dn.length;++X<J;)if(dn[X]===w)returnX;return-1}varLn=yn;functionmn(dn,w,L){returnw===w?Ln(dn,w,L):(0,Q.A)(dn,q,L)}varBn=mn;functionve(dn,w){varL=dn==null?0:dn.length;return!!L&&Bn(dn,w,0)>-1}varsn=ve;functiongn(dn,w,L){for(varX=-1,J=dn==null?0:dn.length;++X<J;)if(L(w,dn[X]))return!0;return!1}varRn=gn,xe=h("./node_modules/lodash-es/_cacheHas.js"),Z=h("./node_modules/lodash-es/_Set.js");functionMn(){}varln=Mn,_e=h("./node_modules/lodash-es/_setToArray.js"),te=1/0,Nn=Z.A&&1/(0,_e.A)(newZ.A([,-0]))[1]==te?function(dn){returnnewZ.A(dn)}:ln,vn=Nn,ue=200;functionpt(dn,w,L){varX=-1,J=sn,cn=dn.length,An=!0,kn=[],$n=kn;if(L)An=!1,J=Rn;elseif(cn>=ue){var$e=w?null:vn(dn);if($e)return(0,_e.A)($e);An=!1,J=xe.A,$n=newan.A}else$n=w?[]:kn;n:for(;++X<cn;){varfe=dn[X],Ce=w?w(fe):fe;if(fe=L||fe!==0?fe:0,An&&Ce===Ce){for(varZn=$n.length;Zn--;)if($n[Zn]===Ce)continuen;w&&$n.push(Ce),kn.push(fe)}elseJ($n,Ce,L)||($n!==kn&&$n.push(Ce),kn.push(fe))}returnkn}varye=pt,rt=h("./node_modules/lodash-es/isArrayLikeObject.js"),it=(0,nn.A)(function(dn){returnye((0,Y.A)(dn,1,rt.A,!0))}),Pe=it,Ee=h("./node_modules/lodash-es/values.js"),Ne=h("./node_modules/lodash-es/reduce.js"),re="\0",ce="\0",Le="";classYe{constructor(w={}){this._isDirected=g.A(w,"directed")?w.directed:!0,this._isMultigraph=g.A(w,"multigraph")?w.multigraph:!1,this._isCompound=g.A(w,"compound")?w.compound:!1,this._label=void0,this._defaultNodeLabelFn=R.A(void0),this._defaultEdgeLabelFn=R.A(void0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[ce]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){returnthis._isDirected}isMultigraph(){returnthis._isMultigraph}isCompound(){returnthis._isCompound}setGraph(w){returnthis._label=w,this}graph(){returnthis._label}setDefaultNodeLabel(w){returnF.A(w)||(w=R.A(w)),this._defaultNodeLabelFn=w,this}nodeCount(){returnthis._nodeCount}nodes(){returnM.A(this._nodes)}sources(){varw=this;returnz.A(this.nodes(),function(L){returnD.A(w._in[L])})}sinks(){varw=this;returnz.A(this.nodes(),function(L){returnD.A(w._out[L])})}setNodes(w,L){varX=arguments,J=this;returnH.A(w,function(cn){X.length>1?J.setNode(cn,L):J.setNode(cn)}),this}setNode(w,L){returng.A(this._nodes,w)?(arguments.length>1&&(this._nodes[w]=L),this):(this._nodes[w]=arguments.length>1?L:this._defaultNodeLabelFn(w),this._isCompound&&(this._parent[w]=ce,this._children[w]={},this._children[ce][w]=!0),this._in[w]={},this._preds[w]={},this._out[w]={},this._sucs[w]={},++this._nodeCount,this)}node(w){returnthis._nodes[w]}hasNode(w){returng.A(this._nodes,w)}removeNode(w){varL=this;if(g.A(this._nodes,w)){varX=function(J){L.removeEdge(L._edgeObjs[J])};deletethis._nodes[w],this._isCompound&&(this._removeFromParentsChildList(w),deletethis._parent[w],H.A(this.children(w),function(J){L.setParent(J)}),deletethis._children[w]),H.A(M.A(this._in[w]),X),deletethis._in[w],deletethis._preds[w],H.A(M.A(this._out[w]),X),deletethis._out[w],deletethis._sucs[w],--this._nodeCount}returnthis}setParent(w,L){if(!this._isCompound)thrownewError("Cannot set parent in a non-compound graph");if(N.A(L))L=ce;else{L+="";for(varX=L;!N.A(X);X=this.parent(X))if(X===w)thrownewError("Setting "+L+" as parent of "+w+" would create a cycle");this.setNode(L)}returnthis.setNode(w),this._removeFromParentsChildList(w),this._parent[w]=L,this._children[L][w]=!0,this}_removeFromParentsChildList(w){deletethis._children[this._parent[w]][w]}parent(w){if(this._isCompound){varL=this._parent[w];if(L!==ce)returnL}}children(w){if(N.A(w)&&(w=ce),this._isCompound){varL=this._children[w];if(L)returnM.A(L)}else{if(w===ce)returnthis.nodes();if(this.hasNode(w))return[]}}predecessors(w){varL=this._preds[w];if(L)returnM.A(L)}successors(w){varL=this._sucs[w];if(L)returnM.A(L)}neighbors(w){varL=this.predecessors(w);if(L)returnPe(L,this.successors(w))}isLeaf(w){varL;returnthis.isDirected()?L=this.successors(w):L=this.neighbors(w),L.length===0}filterNodes(w){varL=newthis.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});L.setGraph(this.graph());varX=this;H.A(this._nodes,function(An,kn){w(kn)&&L.setNode(kn,An)}),H.A(this._edgeObjs,function(An){L.hasNode(An.v)&&L.hasNode(An.w)&&L.setEdge(An,X.edge(An))});varJ={};functioncn(An){varkn=X.parent(An);returnkn===void0||L.hasNode(kn)?(J[An]=kn,kn):kninJ?J[kn]:cn(kn)}returnthis._isCompound&&H.A(L.nodes(),function(An){L.setParent(An,cn(An))}),L}setDefaultEdgeLabel(w){returnF.A(w)||(w=R.A(w)),this._defaultEdgeLabelFn=w,this}edgeCount(){returnthis._edgeCount}edges(){returnEe.A(this._edgeObjs)}setPath(w,L){varX=this,J=arguments;returnNe.A(w,function(cn,An){returnJ.length>1?X.setEdge(cn,An,L):X.setEdge(cn,An),An}),this}setEdge(){varw,L,X,J,cn=!1,An=arguments[0];typeofAn=="object"&&An!==null&&"v"inAn?(w=An.v,L=An.w,X=An.name,arguments.length===2&&(J=arguments[1],cn=!0)):(w=An,L=arguments[1],X=arguments[3],arguments.length>2&&(J=arguments[2],cn=!0)),w=""+w,L=""+L,N.A(X)||(X=""+X);varkn=ke(this._isDirected,w,L,X);if(g.A(this._edgeLabels,kn))returncn&&(this._edgeLabels[kn]=J),this;if(!N.A(X)&&!this._isMultigraph)thrownewError("Cannot set a named edge when isMultigraph = false");this.setNode(w),this.setNode(L),this._edgeLabels[kn]=cn?J:this._defaultEdgeLabelFn(w,L,X);var$n=Me(this._isDirected,w,L,X);returnw=$n.v,L=$n.w,Object.freeze($n),this._edgeObjs[kn]=$n,we(this._preds[L],w),we(this._sucs[w],L),this._in[L][kn]=$n,this._out[w][kn]=$n,this._edgeCount++,this}edge(w,L,X){varJ=arguments.length===1?Ae(this._isDirected,arguments[0]):ke(this._isDirected,w,L,X);returnthis._edgeLabels[J]}hasEdge(w,L,X){varJ=arguments.length===1?Ae(this._isDirected,arguments[0]):ke(this._isDirected,w,L,X);returng.A(this._edgeLabels,J)}removeEdge(w,L,X){varJ=arguments.length===1?Ae(this._isDirected,arguments[0]):ke(this._isDirected,w,L,X),cn=this._edgeObjs[J];returncn&&(w=cn.v,L=cn.w,deletethis._edgeLabels[J],deletethis._edgeObjs[J],Qe(this._preds[L],w),Qe(this._sucs[w],L),deletethis._in[L][J],deletethis._out[w][J],this._edgeCount--),this}inEdges(w,L){varX=this._in[w];if(X){varJ=Ee.A(X);returnL?z.A(J,function(cn){returncn.v===L}):J}}outEdges(w,L){varX=this._out[w];if(X){varJ=Ee.A(X);returnL?z.A(J,function(cn){returncn.w===L}):J}}nodeEdges(w,L){varX=this.inEdges(w,L);if(X)returnX.concat(this.outEdges(w,L))}}Ye.prototype._nodeCount=0,Ye.prototype._edgeCount=0;functionwe(dn,w){dn[w]?dn[w]++:dn[w]=1}functionQe(dn,w){--dn[w]||deletedn[w]}functionke(dn,w,L,X){varJ=""+w,cn=""+L;if(!dn&&J>cn){varAn=J;J=cn,cn=An}returnJ+Le+cn+Le+(N.A(X)?re:X)}functionMe(dn,w,L,X){varJ=""+w,cn=""+L;if(!dn&&J>cn){varAn=J;J=cn,cn=An}varkn={v:J,w:cn};returnX&&(kn.name=X),kn}functionAe(dn,w){returnke(dn,w.v,w.w,w.name)}},"./node_modules/dagre-d3-es/src/graphlib/index.js":function(hn,W,h){h.d(W,{T:function(){returng.T}});varg=h("./node_modules/dagre-d3-es/src/graphlib/graph.js");constR="2.1.9-pre"},"./node_modules/lodash-es/_SetCache.js":function(hn,W,h){h.d(W,{A:function(){returnN}});varg=h("./node_modules/lodash-es/_MapCache.js"),R="__lodash_hash_undefined__";functionF(Y){returnthis.__data__.set(Y,R),this}varM=F;functionz(Y){returnthis.__data__.has(Y)}varD=z;functionH(Y){varnn=-1,an=Y==null?0:Y.length;for(this.__data__=newg.A;++nn<an;)this.add(Y[nn])}H.prototype.add=H.prototype.push=M,H.prototype.has=D;varN=H},"./node_modules/lodash-es/_arrayEach.js":function(hn,W){functionh(g,R){for(varF=-1,M=g==null?0:g.length;++F<M&&R(g[F],F,g)!==!1;);returng}W.A=h},"./node_modules/lodash-es/_arrayFilter.js":function(hn,W){functionh(g,R){for(varF=-1,M=g==null?0:g.length,z=0,D=[];++F<M;){varH=g[F];R(H,F,g)&&(D[z++]=H)}returnD}W.A=h},"./node_modules/lodash-es/_arrayMap.js":function(hn,W){functionh(g,R){for(varF=-1,M=g==null?0:g.length,z=Array(M);++F<M;)z[F]=R(g[F],F,g);returnz}W.A=h},"./node_modules/lodash-es/_arrayPush.js":function(hn,W){functionh(g,R){for(varF=-1,M=R.length,z=g.length;++F<M;)g[z+F]=R[F];returng}W.A=h},"./node_modules/lodash-es/_baseClone.js":function(hn,W,h){h.d(W,{A:function(){returnar}});varg=h("./node_modules/lodash-es/_Stack.js"),R=h("./node_modules/lodash-es/_arrayEach.js"),F=h("./node_modules/lodash-es/_assignValue.js"),M=h("./node_modules/lodash-es/_copyObject.js"),z=h("./node_modules/lodash-es/keys.js");functionD(K,Cn){returnK&&(0,M.A)(Cn,(0,z.A)(Cn),K)}varH=D,N=h("./node_modules/lodash-es/keysIn.js");functionY(K,Cn){returnK&&(0,M.A)(Cn,(0,N.A)(Cn),K)}varnn=Y,an=h("./node_modules/lodash-es/_cloneBuffer.js"),Q=h("./node_modules/lodash-es/_copyArray.js"),rn=h("./node_modules/lodash-es/_getSymbols.js");functionq(K,Cn){return(0,M.A)(K,(0,rn.A)(K),Cn)}varyn=q,Ln=h("./node_modules/lodash-es/_arrayPush.js"),mn=h("./node_modules/lodash-es/_getPrototype.js"),Bn=h("./node_modules/lodash-es/stubArray.js"),ve=Object.getOwnPropertySymbols,sn=ve?function(K){for(varCn=[];K;)(0,Ln.A)(Cn,(0,rn.A)(K)),K=(0,mn.A)(K);returnCn}:Bn.A,gn=sn;functionRn(K,Cn){return(0,M.A)(K,gn(K),Cn)}varxe=Rn,Z=h("./node_modules/lodash-es/_getAllKeys.js"),Mn=h("./node_modules/lodash-es/_baseGetAllKeys.js");functionln(K){return(0,Mn.A)(K,N.A,gn)}var_e=ln,te=h("./node_modules/lodash-es/_getTag.js"),Nn=Object.prototype,vn=Nn.hasOwnProperty;functionue(K){varCn=K.length,de=newK.constructor(Cn);returnCn&&typeofK[0]=="string"&&vn.call(K,"index")&&(de.index=K.index,de.input=K.input),de}varpt=ue,ye=h("./node_modules/lodash-es/_cloneArrayBuffer.js");functionrt(K,Cn){varde=Cn?(0,ye.A)(K.buffer):K.buffer;returnnewK.constructor(de,K.byteOffset,K.byteLength)}varit=rt,Pe=/\w*$/;functionEe(K){varCn=newK.constructor(K.source,Pe.exec(K));returnCn.lastIndex=K.lastIndex,Cn}varNe=Ee,re=h("./node_modules/lodash-es/_Symbol.js"),ce=re.A?re.A.prototype:void0,Le=ce?ce.valueOf:void0;functionYe(K){returnLe?Object(Le.call(K)):{}}varwe=Ye,Qe=h("./node_modules/lodash-es/_cloneTypedArray.js"),ke="[object Boolean]",Me="[object Date]",Ae="[object Map]",dn="[object Number]",w="[object RegExp]",L="[object Set]",X="[object String]",J="[object Symbol]",cn="[object ArrayBuffer]",An="[object DataView]",kn="[object Float32Array]",$n="[object Float64Array]",$e="[object Int8Array]",fe="[object Int16Array]",Ce="[object Int32Array]",Zn="[object Uint8Array]",Tt="[object Uint8ClampedArray]",xt="[object Uint16Array]",Ft="[object Uint32Array]";functionOt(K,Cn,de){varot=K.constructor;switch(Cn){casecn:return(0,ye.A)(K);caseke:caseMe:returnnewot(+K);caseAn:returnit(K,de);casekn:case$n:case$e:casefe:caseCe:caseZn:caseTt:casext:caseFt:return(0,Qe.A)(K,de);caseAe:returnnewot;casedn:caseX:returnnewot(K);casew:returnNe(K);caseL:returnnewot;caseJ:returnwe(K)}}vargt=Ot,yt=h("./node_modules/lodash-es/_initCloneObject.js"),Pt=h("./node_modules/lodash-es/isArray.js"),Ze=h("./node_modules/lodash-es/isBuffer.js"),Et=h("./node_modules/lodash-es/isObjectLike.js"),_t="[object Map]";functionLt(K){return(0,Et.A)(K)&&(0,te.A)(K)==_t}varAt=Lt,st=h("./node_modules/lodash-es/_baseUnary.js"),Xe=h("./node_modules/lodash-es/_nodeUtil.js"),Ie=Xe.A&&Xe.A.isMap,Se=Ie?(0,st.A)(Ie):At,Je=Se,wt=h("./node_modules/lodash-es/isObject.js"),Mt="[object Set]";functionDt(K){return(0,Et.A)(K)&&(0,te.A)(K)==Mt}varvt=Dt,bt=Xe.A&&Xe.A.isSet,Bt=bt?(0,st.A)(bt):vt,Rt=Bt,zt=1,O=2,U=4,un="[object Arguments]",fn="[object Array]",jn="[object Boolean]",_n="[object Date]",Gn="[object Error]",Tn="[object Function]",Un="[object GeneratorFunction]",Wn="[object Map]",oe="[object Number]",ie="[object Object]",Vn="[object RegExp]",je="[object Set]",le="[object String]",pe="[object Symbol]",Te="[object WeakMap]",De="[object ArrayBuffer]",Fe="[object DataView]",at="[object Float32Array]",Be="[object Float64Array]",ut="[object Int8Array]",Yt="[object Int16Array]",rr="[object Int32Array]",Nt="[object Uint8Array]",ir="[object Uint8ClampedArray]",Ut="[object Uint16Array]",sr="[object Uint32Array]",Fn={};Fn[un]=Fn[fn]=Fn[De]=Fn[Fe]=Fn[jn]=Fn[_n]=Fn[at]=Fn[Be]=Fn[ut]=Fn[Yt]=Fn[rr]=Fn[Wn]=Fn[oe]=Fn[ie]=Fn[Vn]=Fn[je]=Fn[le]=Fn[pe]=Fn[Nt]=Fn[ir]=Fn[Ut]=Fn[sr]=!0,Fn[Gn]=Fn[Tn]=Fn[Te]=!1;functionkt(K,Cn,de,ot,Ct,Ue){varhe,lt=Cn&zt,dt=Cn&O,ur=Cn&U;if(de&&(he=Ct?de(K,ot,Ct,Ue):de(K)),he!==void0)returnhe;if(!(0,wt.A)(K))returnK;varQt=(0,Pt.A)(K);if(Qt){if(he=pt(K),!lt)return(0,Q.A)(K,he)}else{varqe=(0,te.A)(K),$t=qe==Tn||qe==Un;if((0,Ze.A)(K))return(0,an.A)(K,lt);if(qe==ie||qe==un||$t&&!Ct){if(he=dt||$t?{}:(0,yt.A)(K),!lt)returndt?xe(K,nn(he,K)):yn(K,H(he,K))}else{if(!Fn[qe])returnCt?K:{};he=gt(K,qe,lt)}}Ue||(Ue=newg.A);varZt=Ue.get(K);if(Zt)returnZt;Ue.set(K,he),Rt(K)?K.forEach(function(We){he.add(kt(We,Cn,de,We,K,Ue))}):Je(K)&&K.forEach(function(We,Ke){he.set(Ke,kt(We,Cn,de,Ke,K,Ue))});varWt=ur?dt?_e:Z.A:dt?N.A:z.A,It=Qt?void0:Wt(K);return(0,R.A)(It||K,function(We,Ke){It&&(Ke=We,We=K[Ke]),(0,F.A)(he,Ke,kt(We,Cn,de,Ke,K,Ue))}),he}varar=kt},"./node_modules/lodash-es/_baseEach.js":function(hn,W,h){h.d(W,{A:function(){returnD}});varg=h("./node_modules/lodash-es/_baseForOwn.js"),R=h("./node_modules/lodash-es/isArrayLike.js");functionF(H,N){returnfunction(Y,nn){if(Y==null)returnY;if(!(0,R.A)(Y))returnH(Y,nn);for(varan=Y.length,Q=N?an:-1,rn=Object(Y);(N?Q--:++Q<an)&&nn(rn[Q],Q,rn)!==!1;);returnY}}varM=F,z=M(g.A),D=z},"./node_modules/lodash-es/_baseFindIndex.js":function(hn,W){functionh(g,R,F,M){for(varz=g.length,D=F+(M?1:-1);M?D--:++D<z;)if(R(g[D],D,g))returnD;return-1}W.A=h},"./node_modules/lodash-es/_baseFlatten.js":function(hn,W,h){h.d(W,{A:function(){returnY}});varg=h("./node_modules/lodash-es/_arrayPush.js"),R=h("./node_modules/lodash-es/_Symbol.js"),F=h("./node_modules/lodash-es/isArguments.js"),M=h("./node_modules/lodash-es/isArray.js"),z=R.A?R.A.isConcatSpreadable:void0;functionD(nn){return(0,M.A)(nn)||(0,F.A)(nn)||!!(z&&nn&&nn[z])}varH=D;functionN(nn,an,Q,rn,q){varyn=-1,Ln=nn.length;for(Q||(Q=H),q||(q=[]);++yn<Ln;){varmn=nn[yn];an>0&&Q(mn)?an>1?N(mn,an-1,Q,rn,q):(0,g.A)(q,mn):rn||(q[q.length]=mn)}returnq}varY=N},"./node_modules/lodash-es/_baseForOwn.js":function(hn,W,h){varg=h("./node_modules/lodash-es/_baseFor.js"),R=h("./node_modules/lodash-es/keys.js");functionF(M,z){returnM&&(0,g.A)(M,z,R.A)}W.A=F},"./node_modules/lodash-es/_baseGet.js":function(hn,W,h){varg=h("./node_modules/lodash-es/_castPath.js"),R=h("./node_modules/lodash-es/_toKey.js");functionF(M,z){z=(0,g.A)(z,M);for(varD=0,H=z.length;M!=null&&D<H;)M=M[(0,R.A)(z[D++])];returnD&&D==H?M:void0}W.A=F},"./node_modules/lodash-es/_baseGetAllKeys.js":function(hn,W,h){varg=h("./node_modules/lodash-es/_arrayPush.js"),R=h("./node_modules/lodash-es/isArray.js");functionF(M,z,D){varH=z(M);return(0,R.A)(M)?H:(0,g.A)(H,D(M))}W.A=F},"./node_modules/lodash-es/_baseIteratee.js":function(hn,W,h){h.d(W,{A:function(){returnzt}});varg=h("./node_modules/lodash-es/_Stack.js"),R=h("./node_modules/lodash-es/_SetCache.js");functionF(O,U){for(varun=-1,fn=O==null?0:O.length;++un<fn;)if(U(O[un],un,O))return!0;return!1}varM=F,z=h("./node_modules/lodash-es/_cacheHas.js"),D=1,H=2;functionN(O,U,un,fn,jn,_n){varGn=un&D,Tn=O.length,Un=U.length;if(Tn!=Un&&!(Gn&&Un>Tn))return!1;varWn=_n.get(O),oe=_n.get(U);if(Wn&&oe)returnWn==U&&oe==O;varie=-1,Vn=!0,je=un&H?newR.A:void0;for(_n.set(O,U),_n.set(U,O);++ie<Tn;){varle=O[ie],pe=U[ie];if(fn)varTe=Gn?fn(pe,le,ie,U,O,_n):fn(le,pe,ie,O,U,_n);if(Te!==void0){if(Te)continue;Vn=!1;break}if(je){if(!M(U,function(De,Fe){if(!(0,z.A)(je,Fe)&&(le===De||jn(le,De,un,fn,_n)))returnje.push(Fe)})){Vn=!1;break}}elseif(!(le===pe||jn(le,pe,un,fn,_n))){Vn=!1;break}}return_n.delete(O),_n.delete(U),Vn}varY=N,nn=h("./node_modules/lodash-es/_Symbol.js"),an=h("./node_modules/lodash-es/_Uint8Array.js"),Q=h("./node_modules/lodash-es/eq.js");functionrn(O){varU=-1,un=Array(O.size);returnO.forEach(function(fn,jn){un[++U]=[jn,fn]}),un}varq=rn,yn=h("./node_modules/lodash-es/_setToArray.js"),Ln=1,mn=2,Bn="[object Boolean]",ve="[object Date]",sn="[object Error]",gn="[object Map]",Rn="[object Number]",xe="[object RegExp]",Z="[object Set]",Mn="[object String]",ln="[object Symbol]",_e="[object ArrayBuffer]",te="[object DataView]",Nn=nn.A?nn.A.prototype:void0,vn=Nn?Nn.valueOf:void0;functionue(O,U,un,fn,jn,_n,Gn){switch(un){casete:if(O.byteLength!=U.byteLength||O.byteOffset!=U.byteOffset)return!1;O=O.buffer,U=U.buffer;case_e:return!(O.byteLength!=U.byteLength||!_n(newan.A(O),newan.A(U)));caseBn:caseve:caseRn:return(0,Q.A)(+O,+U);casesn:returnO.name==U.name&&O.message==U.message;casexe:caseMn:returnO==U+"";casegn:varTn=q;caseZ:varUn=fn&Ln;if(Tn||(Tn=yn.A),O.size!=U.size&&!Un)return!1;varWn=Gn.get(O);if(Wn)returnWn==U;fn|=mn,Gn.set(O,U);varoe=Y(Tn(O),Tn(U),fn,jn,_n,Gn);returnGn.delete(O),oe;caseln:if(vn)returnvn.call(O)==vn.call(U)}return!1}varpt=ue,ye=h("./node_modules/lodash-es/_getAllKeys.js"),rt=1,it=Object.prototype,Pe=it.hasOwnProperty;functionEe(O,U,un,fn,jn,_n){varGn=un&rt,Tn=(0,ye.A)(O),Un=Tn.length,Wn=(0,ye.A)(U),oe=Wn.length;if(Un!=oe&&!Gn)return!1;for(varie=Un;ie--;){varVn=Tn[ie];if(!(Gn?VninU:Pe.call(U,Vn)))return!1}varje=_n.get(O),le=_n.get(U);if(je&&le)returnje==U&&le==O;varpe=!0;_n.set(O,U),_n.set(U,O);for(varTe=Gn;++ie<Un;){Vn=Tn[ie];varDe=O[Vn],Fe=U[Vn];if(fn)varat=Gn?fn(Fe,De,Vn,U,O,_n):fn(De,Fe,Vn,O,U,_n);if(!(at===void0?De===Fe||jn(De,Fe,un,fn,_n):at)){pe=!1;break}Te||(Te=Vn=="constructor")}if(pe&&!Te){varBe=O.constructor,ut=U.constructor;Be!=ut&&"constructor"inO&&"constructor"inU&&!(typeofBe=="function"&&BeinstanceofBe&&typeofut=="function"&&utinstanceofut)&&(pe=!1)}return_n.delete(O),_n.delete(U),pe}varNe=Ee,re=h("./node_modules/lodash-es/_getTag.js"),ce=h("./node_modules/lodash-es/isArray.js"),Le=h("./node_modules/lodash-es/isBuffer.js"),Ye=h("./node_modules/lodash-es/isTypedArray.js"),we=1,Qe="[object Arguments]",ke="[object Array]",Me="[object Object]",Ae=Object.prototype,dn=Ae.hasOwnProperty;functionw(O,U,un,fn,jn,_n){varGn=(0,ce.A)(O),Tn=(0,ce.A)(U),Un=Gn?ke:(0,re.A)(O),Wn=Tn?ke:(0,re.A)(U);Un=Un==Qe?Me:Un,Wn=Wn==Qe?Me:Wn;varoe=Un==Me,ie=Wn==Me,Vn=Un==Wn;if(Vn&&(0,Le.A)(O)){if(!(0,Le.A)(U))return!1;Gn=!0,oe=!1}if(Vn&&!oe)return_n||(_n=newg.A),Gn||(0,Ye.A)(O)?Y(O,U,un,fn,jn,_n):pt(O,U,Un,un,fn,jn,_n);if(!(un&we)){varje=oe&&dn.call(O,"__wrapped__"),le=ie&&dn.call(U,"__wrapped__");if(je||le){varpe=je?O.value():O,Te=le?U.value():U;return_n||(_n=newg.A),jn(pe,Te,un,fn,_n)}}returnVn?(_n||(_n=newg.A),Ne(O,U,un,fn,jn,_n)):!1}varL=w,X=h("./node_modules/lodash-es/isObjectLike.js");functionJ(O,U,un,fn,jn){returnO===U?!0:O==null||U==null||!(0,X.A)(O)&&!(0,X.A)(U)?O!==O&&U!==U:L(O,U,un,fn,J,jn)}varcn=J,An=1,kn=2;function$n(O,U,un,fn){varjn=un.length,_n=jn,Gn=!fn;if(O==null)return!_n;for(O=Object(O);jn--;){varTn=un[jn];if(Gn&&Tn[2]?Tn[1]!==O[Tn[0]]:!(Tn[0]inO))return!1}for(;++jn<_n;){Tn=un[jn];varUn=Tn[0],Wn=O[Un],oe=Tn[1];if(Gn&&Tn[2]){if(Wn===void0&&!(UninO))return!1}else{varie=newg.A;if(fn)varVn=fn(Wn,oe,Un,O,U,ie);if(!(Vn===void0?cn(oe,Wn,An|kn,fn,ie):Vn))return!1}}return!0}var$e=$n,fe=h("./node_modules/lodash-es/isObject.js");functionCe(O){returnO===O&&!(0,fe.A)(O)}varZn=Ce,Tt=h("./node_modules/lodash-es/keys.js");functionxt(O){for(varU=(0,Tt.A)(O),un=U.length;un--;){varfn=U[un],jn=O[fn];U[un]=[fn,jn,Zn(jn)]}returnU}varFt=xt;functionOt(O,U){returnfunction(un){returnun==null?!1:un[O]===U&&(U!==void0||OinObject(un))}}vargt=Ot;functionyt(O){varU=Ft(O);returnU.length==1&&U[0][2]?gt(U[0][0],U[0][1]):function(un){returnun===O||$e(un,O,U)}}varPt=yt,Ze=h("./node_modules/lodash-es/_baseGet.js");functionEt(O,U,un){varfn=O==null?void0:(0,Ze.A)(O,U);returnfn===void0?un:fn}var_t=Et,Lt=h("./node_modules/lodash-es/hasIn.js"),At=h("./node_modules/lodash-es/_isKey.js"),st=h("./node_modules/lodash-es/_toKey.js"),Xe=1,Ie=2;functionSe(O,U){return(0,At.A)(O)&&Zn(U)?gt((0,st.A)(O),U):function(un){varfn=_t(un,O);returnfn===void0&&fn===U?(0,Lt.A)(un,O):cn(U,fn,Xe|Ie)}}varJe=Se,wt=h("./node_modules/lodash-es/identity.js"),Mt=h("./node_modules/lodash-es/_baseProperty.js");functionDt(O){returnfunction(U){return(0,Ze.A)(U,O)}}varvt=Dt;functionbt(O){return(0,At.A)(O)?(0,Mt.A)((0,st.A)(O)):vt(O)}varBt=bt;functionRt(O){returntypeofO=="function"?O:O==null?wt.A:typeofO=="object"?(0,ce.A)(O)?Je(O[0],O[1]):Pt(O):Bt(O)}varzt=Rt},"./node_modules/lodash-es/_baseMap.js":function(hn,W,h){varg=h("./node_modules/lodash-es/_baseEach.js"),R=h("./node_modules/lodash-es/isArrayLike.js");functionF(M,z){varD=-1,H=(0,R.A)(M)?Array(M.length):[];return(0,g.A)(M,function(N,Y,nn){H[++D]=z(N,Y,nn)}),H}W.A=F},"./node_modules/lodash-es/_baseProperty.js":function(hn,W){functionh(g){returnfunction(R){returnR?.[g]}}W.A=h},"./node_modules/lodash-es/_cacheHas.js":function(hn,W){functionh(g,R){returng.has(R)}W.A=h},"./node_modules/lodash-es/_castFunction.js":function(hn,W,h){varg=h("./node_modules/lodash-es/identity.js");functionR(F){returntypeofF=="function"?F:g.A}W.A=R},"./node_modules/lodash-es/_castPath.js":function(hn,W,h){h.d(W,{A:function(){returnrn}});varg=h("./node_modules/lodash-es/isArray.js"),R=h("./node_modules/lodash-es/_isKey.js"),F=h("./node_modules/lodash-es/memoize.js"),M=500;functionz(q){varyn=(0,F.A)(q,function(mn){returnLn.size===M&&Ln.clear(),mn}),Ln=yn.cache;returnyn}varD=z,H=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,N=/\\(\\)?/g,Y=D(function(q){varyn=[];returnq.charCodeAt(0)===46&&yn.push(""),q.replace(H,function(Ln,mn,Bn,ve){yn.push(Bn?ve.replace(N,"$1"):mn||Ln)}),yn}),nn=Y,an=h("./node_modules/lodash-es/toString.js");functionQ(q,yn){return(0,g.A)(q)?q:(0,R.A)(q,yn)?[q]:nn((0,an.A)(q))}varrn=Q},"./node_modules/lodash-es/_getAllKeys.js":function(hn,W,h){varg=h("./node_modules/lodash-es/_baseGetAllKeys.js"),R=h("./node_modules/lodash-es/_getSymbols.js"),F=h("./node_modules/lodash-es/keys.js");functionM(z){return(0,g.A)(z,F.A,R.A)}W.A=M},"./node_modules/lodash-es/_getSymbols.js":function(hn,W,h){varg=h("./node_modules/lodash-es/_arrayFilter.js"),R=h("./node_modules/lodash-es/stubArray.js"),F=Object.prototype,M=F.propertyIsEnumerable,z=Object.getOwnPropertySymbols,D=z?function(H){returnH==null?[]:(H=Object(H),(0,g.A)(z(H),function(N){returnM.call(H,N)}))}:R.A;W.A=D},"./node_modules/lodash-es/_hasPath.js":function(hn,W,h){varg=h("./node_modules/lodash-es/_castPath.js"),R=h("./node_modules/lodash-es/isArguments.js"),F=h("./node_modules/lodash-es/isArray.js"),M=h("./node_modules/lodash-es/_isIndex.js"),z=h("./node_modules/lodash-es/isLength.js"),D=h("./node_modules/lodash-es/_toKey.js");functionH(N,Y,nn){Y=(0,g.A)(Y,N);for(varan=-1,Q=Y.length,rn=!1;++an<Q;){varq=(0,D.A)(Y[an]);if(!(rn=N!=null&&nn(N,q)))break;N=N[q]}returnrn||++an!=Q?rn:(Q=N==null?0:N.length,!!Q&&(0,z.A)(Q)&&(0,M.A)(q,Q)&&((0,F.A)(N)||(0,R.A)(N)))}W.A=H},"./node_modules/lodash-es/_isKey.js":function(hn,W,h){varg=h("./node_modules/lodash-es/isArray.js"),R=h("./node_modules/lodash-es/isSymbol.js"),F=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,M=/^\w*$/;functionz(D,H){if((0,g.A)(D))return!1;varN=typeofD;returnN=="number"||N=="symbol"||N=="boolean"||D==null||(0,R.A)(D)?!0:M.test(D)||!F.test(D)||H!=null&&DinObject(H)}W.A=z},"./node_modules/lodash-es/_setToArray.js":function(hn,W){functionh(g){varR=-1,F=Array(g.size);returng.forEach(function(M){F[++R]=M}),F}W.A=h},"./node_modules/lodash-es/_toKey.js":function(hn,W,h){varg=h("./node_modules/lodash-es/isSymbol.js"),R=1/0;functionF(M){if(typeofM=="string"||(0,g.A)(M))returnM;varz=M+"";returnz=="0"&&1/M==-R?"-0":z}W.A=F},"./node_modules/lodash-es/defaults.js":function(hn,W,h){varg=h("./node_modules/lodash-es/_baseRest.js"),R=h("./node_modules/lodash-es/eq.js"),F=h("./node_modules/lodash-es/_isIterateeCall.js"),M=h("./node_modules/lodash-es/keysIn.js"),z=Object.prototype,D=z.hasOwnProperty,H=(0,g.A)(function(N,Y){N=Object(N);varnn=-1,an=Y.length,Q=an>2?Y[2]:void0;for(Q&&(0,F.A)(Y[0],Y[1],Q)&&(an=1);++nn<an;)for(varrn=Y[nn],q=(0,M.A)(rn),yn=-1,Ln=q.length;++yn<Ln;){varmn=q[yn],Bn=N[mn];(Bn===void0||(0,R.A)(Bn,z[mn])&&!D.call(N,mn))&&(N[mn]=rn[mn])}returnN});W.A=H},"./node_modules/lodash-es/filter.js":function(hn,W,h){h.d(W,{A:function(){returnN}});varg=h("./node_modules/lodash-es/_arrayFilter.js"),R=h("./node_modules/lodash-es/_baseEach.js");functionF(Y,nn){varan=[];return(0,R.A)(Y,function(Q,rn,q){nn(Q,rn,q)&&an.push(Q)}),an}varM=F,z=h("./node_modules/lodash-es/_baseIteratee.js"),D=h("./node_modules/lodash-es/isArray.js");functionH(Y,nn){varan=(0,D.A)(Y)?g.A:M;returnan(Y,(0,z.A)(nn,3))}varN=H},"./node_modules/lodash-es/flatten.js":function(hn,W,h){varg=h("./node_modules/lodash-es/_baseFlatten.js");functionR(F){varM=F==null?0:F.length;returnM?(0,g.A)(F,1):[]}W.A=R},"./node_modules/lodash-es/forEach.js":function(hn,W,h){varg=h("./node_modules/lodash-es/_arrayEach.js"),R=h("./node_modules/lodash-es/_baseEach.js"),F=h("./node_modules/lodash-es/_castFunction.js"),M=h("./node_modules/lodash-es/isArray.js");functionz(D,H){varN=(0,M.A)(D)?g.A:R.A;returnN(D,(0,F.A)(H))}W.A=z},"./node_modules/lodash-es/has.js":function(hn,W,h){h.d(W,{A:function(){returnH}});varg=Object.prototype,R=g.hasOwnProperty;functionF(N,Y){returnN!=null&&R.call(N,Y)}varM=F,z=h("./node_modules/lodash-es/_hasPath.js");functionD(N,Y){returnN!=null&&(0,z.A)(N,Y,M)}varH=D},"./node_modules/lodash-es/hasIn.js":function(hn,W,h){h.d(W,{A:function(){returnz}});functiong(D,H){returnD!=null&&HinObject(D)}varR=g,F=h("./node_modules/lodash-es/_hasPath.js");functionM(D,H){returnD!=null&&(0,F.A)(D,H,R)}varz=M},"./node_modules/lodash-es/isSymbol.js":function(hn,W,h){varg=h("./node_modules/lodash-es/_baseGetTag.js"),R=h("./node_modules/lodash-es/isObjectLike.js"),F="[object Symbol]";functionM(z){returntypeofz=="symbol"||(0,R.A)(z)&&(0,g.A)(z)==F}W.A=M},"./node_modules/lodash-es/isUndefined.js":function(hn,W){functionh(g){returng===void0}W.A=h},"./node_modules/lodash-es/keys.js":function(hn,W,h){varg=h("./node_modules/lodash-es/_arrayLikeKeys.js"),R=h("./node_modules/lodash-es/_baseKeys.js"),F=h("./node_modules/lodash-es/isArrayLike.js");functionM(z){return(0,F.A)(z)?(0,g.A)(z):(0,R.A)(z)}W.A=M},"./node_modules/lodash-es/map.js":function(hn,W,h){varg=h("./node_modules/lodash-es/_arrayMap.js"),R=h("./node_modules/lodash-es/_baseIteratee.js"),F=h("./node_modules/lodash-es/_baseMap.js"),M=h("./node_modules/lodash-es/isArray.js");functionz(D,H){varN=(0,M.A)(D)?g.A:F.A;returnN(D,(0,R.A)(H,3))}W.A=z},"./node_modules/lodash-es/pick.js":function(hn,W,h){h.d(W,{A:function(){returnsn}});varg=h("./node_modules/lodash-es/_baseGet.js"),R=h("./node_modules/lodash-es/_assignValue.js"),F=h("./node_modules/lodash-es/_castPath.js"),M=h("./node_modules/lodash-es/_isIndex.js"),z=h("./node_modules/lodash-es/isObject.js"),D=h("./node_modules/lodash-es/_toKey.js");functionH(gn,Rn,xe,Z){if(!(0,z.A)(gn))returngn;Rn=(0,F.A)(Rn,gn);for(varMn=-1,ln=Rn.length,_e=ln-1,te=gn;te!=null&&++Mn<ln;){varNn=(0,D.A)(Rn[Mn]),vn=xe;if(Nn==="__proto__"||Nn==="constructor"||Nn==="prototype")returngn;if(Mn!=_e){varue=te[Nn];vn=Z?Z(ue,Nn,te):void0,vn===void0&&(vn=(0,z.A)(ue)?ue:(0,M.A)(Rn[Mn+1])?[]:{})}(0,R.A)(te,Nn,vn),te=te[Nn]}returngn}varN=H;functionY(gn,Rn,xe){for(varZ=-1,Mn=Rn.length,ln={};++Z<Mn;){var_e=Rn[Z],te=(0,g.A)(gn,_e);xe(te,_e)&&N(ln,(0,F.A)(_e,gn),te)}returnln}varnn=Y,an=h("./node_modules/lodash-es/hasIn.js");functionQ(gn,Rn){returnnn(gn,Rn,function(xe,Z){return(0,an.A)(gn,Z)})}varrn=Q,q=h("./node_modules/lodash-es/flatten.js"),yn=h("./node_modules/lodash-es/_overRest.js"),Ln=h("./node_modules/lodash-es/_setToString.js");functionmn(gn){return(0,Ln.A)((0,yn.A)(gn,void0,q.A),gn+"")}varBn=mn,ve=Bn(function(gn,Rn){returngn==null?{}:rn(gn,Rn)}),sn=ve},"./node_modules/lodash-es/range.js":function(hn,W,h){h.d(W,{A:function(){returnnn}});varg=Math.ceil,R=Math.max;functionF(an,Q,rn,q){for(varyn=-1,Ln=R(g((Q-an)/(rn||1)),0),mn=Array(Ln);Ln--;)mn[q?Ln:++yn]=an,an+=rn;returnmn}varM=F,z=h("./node_modules/lodash-es/_isIterateeCall.js"),D=h("./node_modules/lodash-es/toFinite.js");functionH(an){returnfunction(Q,rn,q){returnq&&typeofq!="number"&&(0,z.A)(Q,rn,q)&&(rn=q=void0),Q=(0,D.A)(Q),rn===void0?(rn=Q,Q=0):rn=(0,D.A)(rn),q=q===void0?Q<rn?1:-1:(0,D.A)(q),M(Q,rn,q,an)}}varN=H,Y=N(),nn=Y},"./node_modules/lodash-es/reduce.js":function(hn,W,h){h.d(W,{A:function(){returnY}});functiong(nn,an,Q,rn){varq=-1,yn=nn==null?0:nn.length;for(rn&&yn&&(Q=nn[++q]);++q<yn;)Q=an(Q,nn[q],q,nn);returnQ}varR=g,F=h("./node_modules/lodash-es/_baseEach.js"),M=h("./node_modules/lodash-es/_baseIteratee.js");functionz(nn,an,Q,rn,q){returnq(nn,function(yn,Ln,mn){Q=rn?(rn=!1,yn):an(Q,yn,Ln,mn)}),Q}varD=z,H=h("./node_modules/lodash-es/isArray.js");functionN(nn,an,Q){varrn=(0,H.A)(nn)?R:D,q=arguments.length<3;returnrn(nn,(0,M.A)(an,4),Q,q,F.A)}varY=N},"./node_modules/lodash-es/stubArray.js":function(hn,W){functionh(){return[]}W.A=h},"./node_modules/lodash-es/toFinite.js":function(hn,W,h){h.d(W,{A:function(){returnve}});varg=/\s/;functionR(sn){for(vargn=sn.length;gn--&&g.test(sn.charAt(gn)););returngn}varF=R,M=/^\s+/;functionz(sn){returnsn&&sn.slice(0,F(sn)+1).replace(M,"")}varD=z,H=h("./node_modules/lodash-es/isObject.js"),N=h("./node_modules/lodash-es/isSymbol.js"),Y=NaN,nn=/^[-+]0x[0-9a-f]+$/i,an=/^0b[01]+$/i,Q=/^0o[0-7]+$/i,rn=parseInt;functionq(sn){if(typeofsn=="number")returnsn;if((0,N.A)(sn))returnY;if((0,H.A)(sn)){vargn=typeofsn.valueOf=="function"?sn.valueOf():sn;sn=(0,H.A)(gn)?gn+"":gn}if(typeofsn!="string")returnsn===0?sn:+sn;sn=D(sn);varRn=an.test(sn);returnRn||Q.test(sn)?rn(sn.slice(2),Rn?2:8):nn.test(sn)?Y:+sn}varyn=q,Ln=1/0,mn=17976931348623157e292;functionBn(sn){if(!sn)returnsn===0?sn:0;if(sn=yn(sn),sn===Ln||sn===-Ln){vargn=sn<0?-1:1;returngn*mn}returnsn===sn?sn:0}varve=Bn},"./node_modules/lodash-es/toString.js":function(hn,W,h){h.d(W,{A:function(){returnan}});varg=h("./node_modules/lodash-es/_Symbol.js"),R=h("./node_modules/lodash-es/_arrayMap.js"),F=h("./node_modules/lodash-es/isArray.js"),M=h("./node_modules/lodash-es/isSymbol.js"),z=1/0,D=g.A?g.A.prototype:void0,H=D?D.toString:void0;functionN(Q){if(typeofQ=="string")returnQ;if((0,F.A)(Q))return(0,R.A)(Q,N)+"";if((0,M.A)(Q))returnH?H.call(Q):"";varrn=Q+"";returnrn=="0"&&1/Q==-z?"-0":rn}varY=N;functionnn(Q){returnQ==null?"":Y(Q)}varan=nn},"./node_modules/lodash-es/uniqueId.js":function(hn,W,h){varg=h("./node_modules/lodash-es/toString.js"),R=0;functionF(M){varz=++R;return(0,g.A)(M)+z}W.A=F},"./node_modules/lodash-es/values.js":function(hn,W,h){h.d(W,{A:function(){returnD}});varg=h("./node_modules/lodash-es/_arrayMap.js");functionR(H,N){return(0,g.A)(N,function(Y){returnH[Y]})}varF=R,M=h("./node_modules/lodash-es/keys.js");functionz(H){returnH==null?[]:F(H,(0,M.A)(H))}varD=z},"./node_modules/mermaid/dist/createText-6b48ae7d.js":function(hn,W,h){h.d(W,{a:function(){returnsi},c:function(){returnri}});varg={};h.r(g),h.d(g,{attentionMarkers:function(){returnHr},contentInitial:function(){returnzr},disable:function(){returnGr},document:function(){returnRr},flow:function(){returnNr},flowInitial:function(){returnAr},insideSpan:function(){returnKr},string:function(){returnUr},text:function(){returnWr}});varR=h("./node_modules/mermaid/dist/mermaid-f47111a7.js");constF={};functionM(n,a){consti=a||F,s=typeofi.includeImageAlt=="boolean"?i.includeImageAlt:!0,c=typeofi.includeHtml=="boolean"?i.includeHtml:!0;returnz(n,s,c)}functionz(n,a,i){if(H(n)){if("value"inn)returnn.type==="html"&&!i?"":n.value;if(a&&"alt"inn&&n.alt)returnn.alt;if("children"inn)returnD(n.children,a,i)}returnArray.isArray(n)?D(n,a,i):""}functionD(n,a,i){consts=[];letc=-1;for(;++c<n.length;)s[c]=z(n[c],a,i);returns.join("")}functionH(n){return!!(n&&typeofn=="object")}functionN(n,a,i,s){constc=n.length;letl=0,d;if(a<0?a=-a>c?0:c+a:a=a>c?c:a,i=i>0?i:0,s.length<1e4)d=Array.from(s),d.unshift(a,i),n.splice(...d);elsefor(i&&n.splice(a,i);l<s.length;)d=s.slice(l,l+1e4),d.unshift(a,0),n.splice(...d),l+=1e4,a+=1e4}functionY(n,a){returnn.length>0?(N(n,n.length,0,a),n):a}constnn={}.hasOwnProperty;functionan(n){consta={};leti=-1;for(;++i<n.length;)Q(a,n[i]);returna}functionQ(n,a){leti;for(iina){constc=(nn.call(n,i)?n[i]:void0)||(n[i]={}),l=a[i];letd;if(l)for(dinl){nn.call(c,d)||(c[d]=[]);constp=l[d];rn(c[d],Array.isArray(p)?p:p?[p]:[])}}}functionrn(n,a){leti=-1;consts=[];for(;++i<a.length;)(a[i].add==="after"?n:s).push(a[i]);N(n,0,0,s)}functionq(n){consta={};leti=-1;for(;++i<n.length;)yn(a,n[i]);returna}functionyn(n,a){leti;for(iina){constc=(nn.call(n,i)?n[i]:void0)||(n[i]={}),l=a[i];letd;if(l)for(dinl)c[d]=l[d]}}constLn=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,mn=Nn(/[A-Za-z]/),Bn=Nn(/[\dA-Za-z]/),ve=Nn(/[#-'*+\--9=?A-Z^-~]/);functionsn(n){returnn!==null&&(n<32||n===127)}constgn=Nn(/\d/),Rn=Nn(/[\dA-Fa-f]/),xe=Nn(/[!-/:-@[-`{-~]/);functionZ(n){returnn!==null&&n<-2}functionMn(n){returnn!==null&&(n<0||n===32)}functionln(n){returnn===-2||n===-1||n===32}const_e=Nn(Ln),te=Nn(/\s/);functionNn(n){returna;functiona(i){returni!==null&&n.test(String.fromCharCode(i))}}functionvn(n,a,i,s){constc=s?s-1:Number.POSITIVE_INFINITY;letl=0;returnd;functiond(I){returnln(I)?(n.enter(i),p(I)):a(I)}functionp(I){returnln(I)&&l++<c?(n.consume(I),p):(n.exit(i),a(I))}}constue={tokenize:pt};functionpt(n){consta=n.attempt(this.parser.constructs.contentInitial,s,c);leti;returna;functions(p){if(p===null){n.consume(p);return}returnn.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),vn(n,a,"linePrefix")}functionc(p){returnn.enter("paragraph"),l(p)}functionl(p){constI=n.enter("chunkText",{contentType:"text",previous:i});returni&&(i.next=I),i=I,d(p)}functiond(p){if(p===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(p);return}returnZ(p)?(n.consume(p),n.exit("chunkText"),l):(n.consume(p),d)}}constye={tokenize:it},rt={tokenize:Pe};functionit(n){consta=this,i=[];lets=0,c,l,d;returnp;functionp(en){if(s<i.length){constYn=i[s];returna.containerState=Yn[1],n.attempt(Yn[0].continuation,I,E)(en)}returnE(en)}functionI(en){if(s++,a.containerState._closeFlow){a.containerState._closeFlow=void0,c&&Xn();constYn=a.events.length;letQn=Yn,B;for(;Qn--;)if(a.events[Qn][0]==="exit"&&a.events[Qn][1].type==="chunkFlow"){B=a.events[Qn][1].end;break}$(s);letzn=Yn;for(;zn<a.events.length;)a.events[zn][1].end=Object.assign({},B),zn++;returnN(a.events,Qn+1,0,a.events.slice(Yn)),a.events.length=zn,E(en)}returnp(en)}functionE(en){if(s===i.length){if(!c)returnk(en);if(c.currentConstruct&&c.currentConstruct.concrete)returnIn(en);a.interrupt=!!(c.currentConstruct&&!c._gfmTableDynamicInterruptHack)}returna.containerState={},n.check(rt,b,j)(en)}functionb(en){returnc&&Xn(),$(s),k(en)}functionj(en){returna.parser.lazy[a.now().line]=s!==i.length,d=a.now().offset,In(en)}functionk(en){returna.containerState={},n.attempt(rt,x,In)(en)}functionx(en){returns++,i.push([a.currentConstruct,a.containerState]),k(en)}functionIn(en){if(en===null){c&&Xn(),$(0),n.consume(en);return}returnc=c||a.parser.flow(a.now()),n.enter("chunkFlow",{contentType:"flow",previous:l,_tokenizer:c}),Sn(en)}functionSn(en){if(en===null){Kn(n.exit("chunkFlow"),!0),$(0),n.consume(en);return}returnZ(en)?(n.consume(en),Kn(n.exit("chunkFlow")),s=0,a.interrupt=void0,p):(n.consume(en),Sn)}functionKn(en,Yn){constQn=a.sliceStream(en);if(Yn&&Qn.push(null),en.previous=l,l&&(l.next=en),l=en,c.defineSkip(en.start),c.write(Qn),a.parser.lazy[en.start.line]){letB=c.events.length;for(;B--;)if(c.events[B][1].start.offset<d&&(!c.events[B][1].end||c.events[B][1].end.offset>d))return;constzn=a.events.length;letee=zn,qn,me;for(;ee--;)if(a.events[ee][0]==="exit"&&a.events[ee][1].type==="chunkFlow"){if(qn){me=a.events[ee][1].end;break}qn=!0}for($(s),B=zn;B<a.events.length;)a.events[B][1].end=Object.assign({},me),B++;N(a.events,ee+1,0,a.events.slice(zn)),a.events.length=B}}function$(en){letYn=i.length;for(;Yn-->en;){constQn=i[Yn];a.containerState=Qn[1],Qn[0].exit.call(a,n)}i.length=en}functionXn(){c.write([null]),l=void0,c=void0,a.containerState._closeFlow=void0}}functionPe(n,a,i){returnvn(n,n.attempt(this.parser.constructs.document,a,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void0:4)}constEe={tokenize:Ne,partial:!0};functionNe(n,a,i){returns;functions(l){returnln(l)?vn(n,c,"linePrefix")(l):c(l)}functionc(l){returnl===null||Z(l)?a(l):i(l)}}functionre(n){consta={};leti=-1,s,c,l,d,p,I,E;for(;++i<n.length;){for(;iina;)i=a[i];if(s=n[i],i&&s[1].type==="chunkFlow"&&n[i-1][1].type==="listItemPrefix"&&(I=s[1]._tokenizer.events,l=0,l<I.length&&I[l][1].type==="lineEndingBlank"&&(l+=2),l<I.length&&I[l][1].type==="content"))for(;++l<I.length&&I[l][1].type!=="content";)I[l][1].type==="chunkText"&&(I[l][1]._isInFirstContentOfListItem=!0,l++);if(s[0]==="enter")s[1].contentType&&(Object.assign(a,ce(n,i)),i=a[i],E=!0);elseif(s[1]._container){for(l=i,c=void0;l--&&(d=n[l],d[1].type==="lineEnding"||d[1].type==="lineEndingBlank");)d[0]==="enter"&&(c&&(n[c][1].type="lineEndingBlank"),d[1].type="lineEnding",c=l);c&&(s[1].end=Object.assign({},n[c][1].start),p=n.slice(c,i),p.unshift(s),N(n,c,i-c+1,p))}}return!E}functionce(n,a){consti=n[a][1],s=n[a][2];letc=a-1;constl=[],d=i._tokenizer||s.parser[i.contentType](i.start),p=d.events,I=[],E={};letb,j,k=-1,x=i,In=0,Sn=0;constKn=[Sn];for(;x;){for(;n[++c][1]!==x;);l.push(c),x._tokenizer||(b=s.sliceStream(x),x.next||b.push(null),j&&d.defineSkip(x.start),x._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=!0),d.write(b),x._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=void0)),j=x,x=x.next}for(x=i;++k<p.length;)p[k][0]==="exit"&&p[k-1][0]==="enter"&&p[k][1].type===p[k-1][1].type&&p[k][1].start.line!==p[k][1].end.line&&(Sn=k+1,Kn.push(Sn),x._tokenizer=void0,x.previous=void0,x=x.next);for(d.events=[],x?(x._tokenizer=void0,x.previous=void0):Kn.pop(),k=Kn.length;k--;){const$=p.slice(Kn[k],Kn[k+1]),Xn=l.pop();I.unshift([Xn,Xn+$.length-1]),N(n,Xn,2,$)}for(k=-1;++k<I.length;)E[In+I[k][0]]=In+I[k][1],In+=I[k][1]-I[k][0]-1;returnE}constLe={tokenize:Qe,resolve:we},Ye={tokenize:ke,partial:!0};functionwe(n){returnre(n),n}functionQe(n,a){leti;returns;functions(p){returnn.enter("content"),i=n.enter("chunkContent",{contentType:"content"}),c(p)}functionc(p){returnp===null?l(p):Z(p)?n.check(Ye,d,l)(p):(n.consume(p),c)}functionl(p){returnn.exit("chunkContent"),n.exit("content"),a(p)}functiond(p){returnn.consume(p),n.exit("chunkContent"),i.next=n.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,c}}functionke(n,a,i){consts=this;returnc;functionc(d){returnn.exit("chunkContent"),n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),vn(n,l,"linePrefix")}functionl(d){if(d===null||Z(d))returni(d);constp=s.events[s.events.length-1];return!s.parser.constructs.disable.null.includes("codeIndented")&&p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(d):n.interrupt(s.parser.constructs.flow,i,a)(d)}}constMe={tokenize:Ae};functionAe(n){consta=this,i=n.attempt(Ee,s,n.attempt(this.parser.constructs.flowInitial,c,vn(n,n.attempt(this.parser.constructs.flow,c,n.attempt(Le,c)),"linePrefix")));returni;functions(l){if(l===null){n.consume(l);return}returnn.enter("lineEndingBlank"),n.consume(l),n.exit("lineEndingBlank"),a.currentConstruct=void0,i}functionc(l){if(l===null){n.consume(l);return}returnn.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),a.currentConstruct=void0,i}}constdn={resolveAll:J()},w=X("string"),L=X("text");functionX(n){return{tokenize:a,resolveAll:J(n==="text"?cn:void0)};functiona(i){consts=this,c=this.parser.constructs[n],l=i.attempt(c,d,p);returnd;functiond(b){returnE(b)?l(b):p(b)}functionp(b){if(b===null){i.consume(b);return}returni.enter("data"),i.consume(b),I}functionI(b){returnE(b)?(i.exit("data"),l(b)):(i.consume(b),I)}functionE(b){if(b===null)return!0;constj=c[b];letk=-1;if(j)for(;++k<j.length;){constx=j[k];if(!x.previous||x.previous.call(s,s.previous))return!0}return!1}}}functionJ(n){returna;functiona(i,s){letc=-1,l;for(;++c<=i.length;)l===void0?i[c]&&i[c][1].type==="data"&&(l=c,c++):(!i[c]||i[c][1].type!=="data")&&(c!==l+2&&(i[l][1].end=i[c-1][1].end,i.splice(l+2,c-l-2),c=l+2),l=void0);returnn?n(i,s):i}}functioncn(n,a){leti=0;for(;++i<=n.length;)if((i===n.length||n[i][1].type==="lineEnding")&&n[i-1][1].type==="data"){consts=n[i-1][1],c=a.sliceStream(s);letl=c.length,d=-1,p=0,I;for(;l--;){constE=c[l];if(typeofE=="string"){for(d=E.length;E.charCodeAt(d-1)===32;)p++,d--;if(d)break;d=-1}elseif(E===-2)I=!0,p++;elseif(E!==-1){l++;break}}if(p){constE={type:i===n.length||I||p<2?"lineSuffix":"hardBreakTrailing",start:{line:s.end.line,column:s.end.column-p,offset:s.end.offset-p,_index:s.start._index+l,_bufferIndex:l?d:s.start._bufferIndex+d},end:Object.assign({},s.end)};s.end=Object.assign({},E.start),s.start.offset===s.end.offset?Object.assign(s,E):(n.splice(i,0,["enter",E,a],["exit",E,a]),i+=2)}i++}returnn}functionAn(n,a,i){consts=[];letc=-1;for(;++c<n.length;){constl=n[c].resolveAll;l&&!s.includes(l)&&(a=l(a,i),s.push(l))}returna}functionkn(n,a,i){lets=Object.assign(i?Object.assign({},i):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});constc={},l=[];letd=[],p=[],I=!0;constE={consume:Yn,enter:Qn,exit:B,attempt:qn(zn),check:qn(ee),interrupt:qn(ee,{interrupt:!0})},b={previous:null,code:null,containerState:{},events:[],parser:n,sliceStream:Sn,sliceSerialize:In,now:Kn,defineSkip:$,write:x};letj=a.tokenize.call(b,E),k;returna.resolveAll&&l.push(a),b;functionx(tn){returnd=Y(d,tn),Xn(),d[d.length-1]!==null?[]:(me(a,0),b.events=An(l,b.events,b),b.events)}functionIn(tn,xn){return$e(Sn(tn),xn)}functionSn(tn){return$n(d,tn)}functionKn(){const{line:tn,column:xn,offset:bn,_index:Jn,_bufferIndex:se}=s;return{line:tn,column:xn,offset:bn,_index:Jn,_bufferIndex:se}}function$(tn){c[tn.line]=tn.column,wn()}functionXn(){lettn;for(;s._index<d.length;){constxn=d[s._index];if(typeofxn=="string")for(tn=s._index,s._bufferIndex<0&&(s._bufferIndex=0);s._index===tn&&s._bufferIndex<xn.length;)en(xn.charCodeAt(s._bufferIndex));elseen(xn)}}functionen(tn){I=void0,k=tn,j=j(tn)}functionYn(tn){Z(tn)?(s.line++,s.column=1,s.offset+=tn===-3?2:1,wn()):tn!==-1&&(s.column++,s.offset++),s._bufferIndex<0?s._index++:(s._bufferIndex++,s._bufferIndex===d[s._index].length&&(s._bufferIndex=-1,s._index++)),b.previous=tn,I=!0}functionQn(tn,xn){constbn=xn||{};returnbn.type=tn,bn.start=Kn(),b.events.push(["enter",bn,b]),p.push(bn),bn}functionB(tn){constxn=p.pop();returnxn.end=Kn(),b.events.push(["exit",xn,b]),xn}functionzn(tn,xn){me(tn,xn.from)}functionee(tn,xn){xn.restore()}functionqn(tn,xn){returnbn;functionbn(Jn,se,Re){letGe,A,Oe,Ve;returnArray.isArray(Jn)?be(Jn):"tokenize"inJn?be([Jn]):v(Jn);functionv(ae){returnHt;functionHt(nt){constjt=nt!==null&&ae[nt],ht=nt!==null&&ae.null,cr=[...Array.isArray(jt)?jt:jt?[jt]:[],...Array.isArray(ht)?ht:ht?[ht]:[]];returnbe(cr)(nt)}}functionbe(ae){returnGe=ae,A=0,ae.length===0?Re:St(ae[A])}functionSt(ae){returnHt;functionHt(nt){returnVe=Hn(),Oe=ae,ae.partial||(b.currentConstruct=ae),ae.name&&b.parser.constructs.disable.null.includes(ae.name)?Kt(nt):ae.tokenize.call(xn?Object.assign(Object.create(b),xn):b,E,tr,Kt)(nt)}}functiontr(ae){returnI=!0,tn(Oe,Ve),se}functionKt(ae){returnI=!0,Ve.restore(),++A<Ge.length?St(Ge[A]):Re}}}functionme(tn,xn){tn.resolveAll&&!l.includes(tn)&&l.push(tn),tn.resolve&&N(b.events,xn,b.events.length-xn,tn.resolve(b.events.slice(xn),b)),tn.resolveTo&&(b.events=tn.resolveTo(b.events,b))}functionHn(){consttn=Kn(),xn=b.previous,bn=b.currentConstruct,Jn=b.events.length,se=Array.from(p);return{restore:Re,from:Jn};functionRe(){s=tn,b.previous=xn,b.currentConstruct=bn,b.events.length=Jn,p=se,wn()}}functionwn(){s.lineinc&&s.column<2&&(s.column=c[s.line],s.offset+=c[s.line]-1)}}function$n(n,a){consti=a.start._index,s=a.start._bufferIndex,c=a.end._index,l=a.end._bufferIndex;letd;if(i===c)d=[n[i].slice(s,l)];else{if(d=n.slice(i,c),s>-1){constp=d[0];typeofp=="string"?d[0]=p.slice(s):d.shift()}l>0&&d.push(n[c].slice(0,l))}returnd}function$e(n,a){leti=-1;consts=[];letc;for(;++i<n.length;){constl=n[i];letd;if(typeofl=="string")d=l;elseswitch(l){case-5:{d="\r";break}case-4:{d=`
`;break}case-3:{d=`\r
`;break}case-2:{d=a?" ":" ";break}case-1:{if(!a&&c)continue;d=" ";break}default:d=String.fromCharCode(l)}c=l===-2,s.push(d)}returns.join("")}constfe={name:"thematicBreak",tokenize:Ce};functionCe(n,a,i){lets=0,c;returnl;functionl(E){returnn.enter("thematicBreak"),d(E)}functiond(E){returnc=E,p(E)}functionp(E){returnE===c?(n.enter("thematicBreakSequence"),I(E)):s>=3&&(E===null||Z(E))?(n.exit("thematicBreak"),a(E)):i(E)}functionI(E){returnE===c?(n.consume(E),s++,I):(n.exit("thematicBreakSequence"),ln(E)?vn(n,p,"whitespace")(E):p(E))}}constZn={name:"list",tokenize:Ft,continuation:{tokenize:Ot},exit:yt},Tt={tokenize:Pt,partial:!0},xt={tokenize:gt,partial:!0};functionFt(n,a,i){consts=this,c=s.events[s.events.length-1];letl=c&&c[1].type==="linePrefix"?c[2].sliceSerialize(c[1],!0).length:0,d=0;returnp;functionp(x){constIn=s.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(In==="listUnordered"?!s.containerState.marker||x===s.containerState.marker:gn(x)){if(s.containerState.type||(s.containerState.type=In,n.enter(In,{_container:!0})),In==="listUnordered")returnn.enter("listItemPrefix"),x===42||x===45?n.check(fe,i,E)(x):E(x);if(!s.interrupt||x===49)returnn.enter("listItemPrefix"),n.enter("listItemValue"),I(x)}returni(x)}functionI(x){returngn(x)&&++d<10?(n.consume(x),I):(!s.interrupt||d<2)&&(s.containerState.marker?x===s.containerState.marker:x===41||x===46)?(n.exit("listItemValue"),E(x)):i(x)}functionE(x){returnn.enter("listItemMarker"),n.consume(x),n.exit("listItemMarker"),s.containerState.marker=s.containerState.marker||x,n.check(Ee,s.interrupt?i:b,n.attempt(Tt,k,j))}functionb(x){returns.containerState.initialBlankLine=!0,l++,k(x)}functionj(x){returnln(x)?(n.enter("listItemPrefixWhitespace"),n.consume(x),n.exit("listItemPrefixWhitespace"),k):i(x)}functionk(x){returns.containerState.size=l+s.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(x)}}functionOt(n,a,i){consts=this;returns.containerState._closeFlow=void0,n.check(Ee,c,l);functionc(p){returns.containerState.furtherBlankLines=s.containerState.furtherBlankLines||s.containerState.initialBlankLine,vn(n,a,"listItemIndent",s.containerState.size+1)(p)}functionl(p){returns.containerState.furtherBlankLines||!ln(p)?(s.containerState.furtherBlankLines=void0,s.containerState.initialBlankLine=void0,d(p)):(s.containerState.furtherBlankLines=void0,s.containerState.initialBlankLine=void0,n.attempt(xt,a,d)(p))}functiond(p){returns.containerState._closeFlow=!0,s.interrupt=void0,vn(n,n.attempt(Zn,a,i),"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void0:4)(p)}}functiongt(n,a,i){consts=this;returnvn(n,c,"listItemIndent",s.containerState.size+1);functionc(l){constd=s.events[s.events.length-1];returnd&&d[1].type==="listItemIndent"&&d[2].sliceSerialize(d[1],!0).length===s.containerState.size?a(l):i(l)}}functionyt(n){n.exit(this.containerState.type)}functionPt(n,a,i){consts=this;returnvn(n,c,"listItemPrefixWhitespace",s.parser.constructs.disable.null.includes("codeIndented")?void0:5);functionc(l){constd=s.events[s.events.length-1];return!ln(l)&&d&&d[1].type==="listItemPrefixWhitespace"?a(l):i(l)}}constZe={name:"blockQuote",tokenize:Et,continuation:{tokenize:_t},exit:Lt};functionEt(n,a,i){consts=this;returnc;functionc(d){if(d===62){constp=s.containerState;returnp.open||(n.enter("blockQuote",{_container:!0}),p.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(d),n.exit("blockQuoteMarker"),l}returni(d)}functionl(d){returnln(d)?(n.enter("blockQuotePrefixWhitespace"),n.consume(d),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(d))}}function_t(n,a,i){consts=this;returnc;functionc(d){returnln(d)?vn(n,l,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void0:4)(d):l(d)}functionl(d){returnn.attempt(Ze,a,i)(d)}}functionLt(n){n.exit("blockQuote")}functionAt(n,a,i,s,c,l,d,p,I){constE=I||Number.POSITIVE_INFINITY;letb=0;returnj;functionj($){return$===60?(n.enter(s),n.enter(c),n.enter(l),n.consume($),n.exit(l),k):$===null||$===32||$===41||sn($)?i($):(n.enter(s),n.enter(d),n.enter(p),n.enter("chunkString",{contentType:"string"}),Sn($))}functionk($){return$===62?(n.enter(l),n.consume($),n.exit(l),n.exit(c),n.exit(s),a):(n.enter(p),n.enter("chunkString",{contentType:"string"}),x($))}functionx($){return$===62?(n.exit("chunkString"),n.exit(p),k($)):$===null||$===60||Z($)?i($):(n.consume($),$===92?In:x)}functionIn($){return$===60||$===62||$===92?(n.consume($),x):x($)}functionSn($){return!b&&($===null||$===41||Mn($))?(n.exit("chunkString"),n.exit(p),n.exit(d),n.exit(s),a($)):b<E&&$===40?(n.consume($),b++,Sn):$===41?(n.consume($),b--,Sn):$===null||$===32||$===40||sn($)?i($):(n.consume($),$===92?Kn:Sn)}functionKn($){return$===40||$===41||$===92?(n.consume($),Sn):Sn($)}}functionst(n,a,i,s,c,l){constd=this;letp=0,I;returnE;functionE(x){returnn.enter(s),n.enter(c),n.consume(x),n.exit(c),n.enter(l),b}functionb(x){returnp>999||x===null||x===91||x===93&&!I||x===94&&!p&&"_hiddenFootnoteSupport"ind.parser.constructs?i(x):x===93?(n.exit(l),n.enter(c),n.consume(x),n.exit(c),n.exit(s),a):Z(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),b):(n.enter("chunkString",{contentType:"string"}),j(x))}functionj(x){returnx===null||x===91||x===93||Z(x)||p++>999?(n.exit("chunkString"),b(x)):(n.consume(x),I||(I=!ln(x)),x===92?k:j)}functionk(x){returnx===91||x===92||x===93?(n.consume(x),p++,j):j(x)}}functionXe(n,a,i,s,c,l){letd;returnp;functionp(k){returnk===34||k===39||k===40?(n.enter(s),n.enter(c),n.consume(k),n.exit(c),d=k===40?41:k,I):i(k)}functionI(k){returnk===d?(n.enter(c),n.consume(k),n.exit(c),n.exit(s),a):(n.enter(l),E(k))}functionE(k){returnk===d?(n.exit(l),I(d)):k===null?i(k):Z(k)?(n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),vn(n,E,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),b(k))}functionb(k){returnk===d||k===null||Z(k)?(n.exit("chunkString"),E(k)):(n.consume(k),k===92?j:b)}functionj(k){returnk===d||k===92?(n.consume(k),b):b(k)}}functionIe(n,a){leti;returns;functions(c){returnZ(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),i=!0,s):ln(c)?vn(n,s,i?"linePrefix":"lineSuffix")(c):a(c)}}functionSe(n){returnn.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}constJe={name:"definition",tokenize:Mt},wt={tokenize:Dt,partial:!0};functionMt(n,a,i){consts=this;letc;returnl;functionl(x){returnn.enter("definition"),d(x)}functiond(x){returnst.call(s,n,p,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}functionp(x){returnc=Se(s.sliceSerialize(s.events[s.events.length-1][1]).slice(1,-1)),x===58?(n.enter("definitionMarker"),n.consume(x),n.exit("definitionMarker"),I):i(x)}functionI(x){returnMn(x)?Ie(n,E)(x):E(x)}functionE(x){returnAt(n,b,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}functionb(x){returnn.attempt(wt,j,j)(x)}functionj(x){returnln(x)?vn(n,k,"whitespace")(x):k(x)}functionk(x){returnx===null||Z(x)?(n.exit("definition"),s.parser.defined.push(c),a(x)):i(x)}}functionDt(n,a,i){returns;functions(p){returnMn(p)?Ie(n,c)(p):i(p)}functionc(p){returnXe(n,l,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(p)}functionl(p){returnln(p)?vn(n,d,"whitespace")(p):d(p)}functiond(p){returnp===null||Z(p)?a(p):i(p)}}constvt={name:"codeIndented",tokenize:Bt},bt={tokenize:Rt,partial:!0};functionBt(n,a,i){consts=this;returnc;functionc(E){returnn.enter("codeIndented"),vn(n,l,"linePrefix",5)(E)}functionl(E){constb=s.events[s.events.length-1];returnb&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?d(E):i(E)}functiond(E){returnE===null?I(E):Z(E)?n.attempt(bt,d,I)(E):(n.enter("codeFlowValue"),p(E))}functionp(E){returnE===null||Z(E)?(n.exit("codeFlowValue"),d(E)):(n.consume(E),p)}functionI(E){returnn.exit("codeIndented"),a(E)}}functionRt(n,a,i){consts=this;returnc;functionc(d){returns.parser.lazy[s.now().line]?i(d):Z(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),c):vn(n,l,"linePrefix",5)(d)}functionl(d){constp=s.events[s.events.length-1];returnp&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(d):Z(d)?c(d):i(d)}}constzt={name:"headingAtx",tokenize:U,resolve:O};functionO(n,a){leti=n.length-2,s=3,c,l;returnn[s][1].type==="whitespace"&&(s+=2),i-2>s&&n[i][1].type==="whitespace"&&(i-=2),n[i][1].type==="atxHeadingSequence"&&(s===i-1||i-4>s&&n[i-2][1].type==="whitespace")&&(i-=s+1===i?2:4),i>s&&(c={type:"atxHeadingText",start:n[s][1].start,end:n[i][1].end},l={type:"chunkText",start:n[s][1].start,end:n[i][1].end,contentType:"text"},N(n,s,i-s+1,[["enter",c,a],["enter",l,a],["exit",l,a],["exit",c,a]])),n}functionU(n,a,i){lets=0;returnc;functionc(b){returnn.enter("atxHeading"),l(b)}functionl(b){returnn.enter("atxHeadingSequence"),d(b)}functiond(b){returnb===35&&s++<6?(n.consume(b),d):b===null||Mn(b)?(n.exit("atxHeadingSequence"),p(b)):i(b)}functionp(b){returnb===35?(n.enter("atxHeadingSequence"),I(b)):b===null||Z(b)?(n.exit("atxHeading"),a(b)):ln(b)?vn(n,p,"whitespace")(b):(n.enter("atxHeadingText"),E(b))}functionI(b){returnb===35?(n.consume(b),I):(n.exit("atxHeadingSequence"),p(b))}functionE(b){returnb===null||b===35||Mn(b)?(n.exit("atxHeadingText"),p(b)):(n.consume(b),E)}}constun={name:"setextUnderline",tokenize:jn,resolveTo:fn};functionfn(n,a){leti=n.length,s,c,l;for(;i--;)if(n[i][0]==="enter"){if(n[i][1].type==="content"){s=i;break}n[i][1].type==="paragraph"&&(c=i)}elsen[i][1].type==="content"&&n.splice(i,1),!l&&n[i][1].type==="definition"&&(l=i);constd={type:"setextHeading",start:Object.assign({},n[c][1].start),end:Object.assign({},n[n.length-1][1].end)};returnn[c][1].type="setextHeadingText",l?(n.splice(c,0,["enter",d,a]),n.splice(l+1,0,["exit",n[s][1],a]),n[s][1].end=Object.assign({},n[l][1].end)):n[s][1]=d,n.push(["exit",d,a]),n}functionjn(n,a,i){consts=this;letc;returnl;functionl(E){letb=s.events.length,j;for(;b--;)if(s.events[b][1].type!=="lineEnding"&&s.events[b][1].type!=="linePrefix"&&s.events[b][1].type!=="content"){j=s.events[b][1].type==="paragraph";break}return!s.parser.lazy[s.now().line]&&(s.interrupt||j)?(n.enter("setextHeadingLine"),c=E,d(E)):i(E)}functiond(E){returnn.enter("setextHeadingLineSequence"),p(E)}functionp(E){returnE===c?(n.consume(E),p):(n.exit("setextHeadingLineSequence"),ln(E)?vn(n,I,"lineSuffix")(E):I(E))}functionI(E){returnE===null||Z(E)?(n.exit("setextHeadingLine"),a(E)):i(E)}}const_n=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Gn=["pre","script","style","textarea"],Tn={name:"htmlFlow",tokenize:ie,resolveTo:oe,concrete:!0},Un={tokenize:je,partial:!0},Wn={tokenize:Vn,partial:!0};functionoe(n){leta=n.length;for(;a--&&!(n[a][0]==="enter"&&n[a][1].type==="htmlFlow"););returna>1&&n[a-2][1].type==="linePrefix"&&(n[a][1].start=n[a-2][1].start,n[a+1][1].start=n[a-2][1].start,n.splice(a-2,2)),n}functionie(n,a,i){consts=this;letc,l,d,p,I;returnE;functionE(v){returnb(v)}functionb(v){returnn.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(v),j}functionj(v){returnv===33?(n.consume(v),k):v===47?(n.consume(v),l=!0,Sn):v===63?(n.consume(v),c=3,s.interrupt?a:A):mn(v)?(n.consume(v),d=String.fromCharCode(v),Kn):i(v)}functionk(v){returnv===45?(n.consume(v),c=2,x):v===91?(n.consume(v),c=5,p=0,In):mn(v)?(n.consume(v),c=4,s.interrupt?a:A):i(v)}functionx(v){returnv===45?(n.consume(v),s.interrupt?a:A):i(v)}functionIn(v){constbe="CDATA[";returnv===be.charCodeAt(p++)?(n.consume(v),p===be.length?s.interrupt?a:wn:In):i(v)}functionSn(v){returnmn(v)?(n.consume(v),d=String.fromCharCode(v),Kn):i(v)}functionKn(v){if(v===null||v===47||v===62||Mn(v)){constbe=v===47,St=d.toLowerCase();return!be&&!l&&Gn.includes(St)?(c=1,s.interrupt?a(v):wn(v)):_n.includes(d.toLowerCase())?(c=6,be?(n.consume(v),$):s.interrupt?a(v):wn(v)):(c=7,s.interrupt&&!s.parser.lazy[s.now().line]?i(v):l?Xn(v):en(v))}returnv===45||Bn(v)?(n.consume(v),d+=String.fromCharCode(v),Kn):i(v)}function$(v){returnv===62?(n.consume(v),s.interrupt?a:wn):i(v)}functionXn(v){returnln(v)?(n.consume(v),Xn):me(v)}functionen(v){returnv===47?(n.consume(v),me):v===58||v===95||mn(v)?(n.consume(v),Yn):ln(v)?(n.consume(v),en):me(v)}functionYn(v){returnv===45||v===46||v===58||v===95||Bn(v)?(n.consume(v),Yn):Qn(v)}functionQn(v){returnv===61?(n.consume(v),B):ln(v)?(n.consume(v),Qn):en(v)}functionB(v){returnv===null||v===60||v===61||v===62||v===96?i(v):v===34||v===39?(n.consume(v),I=v,zn):ln(v)?(n.consume(v),B):ee(v)}functionzn(v){returnv===I?(n.consume(v),I=null,qn):v===null||Z(v)?i(v):(n.consume(v),zn)}functionee(v){returnv===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||Mn(v)?Qn(v):(n.consume(v),ee)}functionqn(v){returnv===47||v===62||ln(v)?en(v):i(v)}functionme(v){returnv===62?(n.consume(v),Hn):i(v)}functionHn(v){returnv===null||Z(v)?wn(v):ln(v)?(n.consume(v),Hn):i(v)}functionwn(v){returnv===45&&c===2?(n.consume(v),Jn):v===60&&c===1?(n.consume(v),se):v===62&&c===4?(n.consume(v),Oe):v===63&&c===3?(n.consume(v),A):v===93&&c===5?(n.consume(v),Ge):Z(v)&&(c===6||c===7)?(n.exit("htmlFlowData"),n.check(Un,Ve,tn)(v)):v===null||Z(v)?(n.exit("htmlFlowData"),tn(v)):(n.consume(v),wn)}functiontn(v){returnn.check(Wn,xn,Ve)(v)}functionxn(v){returnn.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),bn}functionbn(v){returnv===null||Z(v)?tn(v):(n.enter("htmlFlowData"),wn(v))}functionJn(v){returnv===45?(n.consume(v),A):wn(v)}functionse(v){returnv===47?(n.consume(v),d="",Re):wn(v)}functionRe(v){if(v===62){constbe=d.toLowerCase();returnGn.includes(be)?(n.consume(v),Oe):wn(v)}returnmn(v)&&d.length<8?(n.consume(v),d+=String.fromCharCode(v),Re):wn(v)}functionGe(v){returnv===93?(n.consume(v),A):wn(v)}functionA(v){returnv===62?(n.consume(v),Oe):v===45&&c===2?(n.consume(v),A):wn(v)}functionOe(v){returnv===null||Z(v)?(n.exit("htmlFlowData"),Ve(v)):(n.consume(v),Oe)}functionVe(v){returnn.exit("htmlFlow"),a(v)}}functionVn(n,a,i){consts=this;returnc;functionc(d){returnZ(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),l):i(d)}functionl(d){returns.parser.lazy[s.now().line]?i(d):a(d)}}functionje(n,a,i){returns;functions(c){returnn.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),n.attempt(Ee,a,i)}}constle={tokenize:De,partial:!0},pe={name:"codeFenced",tokenize:Te,concrete:!0};functionTe(n,a,i){consts=this,c={tokenize:Qn,partial:!0};letl=0,d=0,p;returnI;functionI(B){returnE(B)}functionE(B){constzn=s.events[s.events.length-1];returnl=zn&&zn[1].type==="linePrefix"?zn[2].sliceSerialize(zn[1],!0).length:0,p=B,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),b(B)}functionb(B){returnB===p?(d++,n.consume(B),b):d<3?i(B):(n.exit("codeFencedFenceSequence"),ln(B)?vn(n,j,"whitespace")(B):j(B))}functionj(B){returnB===null||Z(B)?(n.exit("codeFencedFence"),s.interrupt?a(B):n.check(le,Sn,Yn)(B)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),k(B))}functionk(B){returnB===null||Z(B)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),j(B)):ln(B)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),vn(n,x,"whitespace")(B)):B===96&&B===p?i(B):(n.consume(B),k)}functionx(B){returnB===null||Z(B)?j(B):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),In(B))}functionIn(B){returnB===null||Z(B)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),j(B)):B===96&&B===p?i(B):(n.consume(B),In)}functionSn(B){returnn.attempt(c,Yn,Kn)(B)}functionKn(B){returnn.enter("lineEnding"),n.consume(B),n.exit("lineEnding"),$}function$(B){returnl>0&&ln(B)?vn(n,Xn,"linePrefix",l+1)(B):Xn(B)}functionXn(B){returnB===null||Z(B)?n.check(le,Sn,Yn)(B):(n.enter("codeFlowValue"),en(B))}functionen(B){returnB===null||Z(B)?(n.exit("codeFlowValue"),Xn(B)):(n.consume(B),en)}functionYn(B){returnn.exit("codeFenced"),a(B)}functionQn(B,zn,ee){letqn=0;returnme;functionme(bn){returnB.enter("lineEnding"),B.consume(bn),B.exit("lineEnding"),Hn}functionHn(bn){returnB.enter("codeFencedFence"),ln(bn)?vn(B,wn,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void0:4)(bn):wn(bn)}functionwn(bn){returnbn===p?(B.enter("codeFencedFenceSequence"),tn(bn)):ee(bn)}functiontn(bn){returnbn===p?(qn++,B.consume(bn),tn):qn>=d?(B.exit("codeFencedFenceSequence"),ln(bn)?vn(B,xn,"whitespace")(bn):xn(bn)):ee(bn)}functionxn(bn){returnbn===null||Z(bn)?(B.exit("codeFencedFence"),zn(bn)):ee(bn)}}}functionDe(n,a,i){consts=this;returnc;functionc(d){returnd===null?i(d):(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),l)}functionl(d){returns.parser.lazy[s.now().line]?i(d):a(d)}}constFe=document.createElement("i");functionat(n){consta="&"+n+";";Fe.innerHTML=a;consti=Fe.textContent;returni.charCodeAt(i.length-1)===59&&n!=="semi"||i===a?!1:i}constBe={name:"characterReference",tokenize:ut};functionut(n,a,i){consts=this;letc=0,l,d;returnp;functionp(j){returnn.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(j),n.exit("characterReferenceMarker"),I}functionI(j){returnj===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(j),n.exit("characterReferenceMarkerNumeric"),E):(n.enter("characterReferenceValue"),l=31,d=Bn,b(j))}functionE(j){returnj===88||j===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(j),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),l=6,d=Rn,b):(n.enter("characterReferenceValue"),l=7,d=gn,b(j))}functionb(j){if(j===59&&c){constk=n.exit("characterReferenceValue");returnd===Bn&&!at(s.sliceSerialize(k))?i(j):(n.enter("characterReferenceMarker"),n.consume(j),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}returnd(j)&&c++<l?(n.consume(j),b):i(j)}}constYt={name:"characterEscape",tokenize:rr};functionrr(n,a,i){returns;functions(l){returnn.enter("characterEscape"),n.enter("escapeMarker"),n.consume(l),n.exit("escapeMarker"),c}functionc(l){returnxe(l)?(n.enter("characterEscapeValue"),n.consume(l),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):i(l)}}constNt={name:"lineEnding",tokenize:ir};functionir(n,a){returni;functioni(s){returnn.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),vn(n,a,"linePrefix")}}constUt={name:"labelEnd",tokenize:Cn,resolveTo:K,resolveAll:ar},sr={tokenize:de},Fn={tokenize:ot},kt={tokenize:Ct};functionar(n){leta=-1;for(;++a<n.length;){consti=n[a][1];(i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd")&&(n.splice(a+1,i.type==="labelImage"?4:2),i.type="data",a++)}returnn}functionK(n,a){leti=n.length,s=0,c,l,d,p;for(;i--;)if(c=n[i][1],l){if(c.type==="link"||c.type==="labelLink"&&c._inactive)break;n[i][0]==="enter"&&c.type==="labelLink"&&(c._inactive=!0)}elseif(d){if(n[i][0]==="enter"&&(c.type==="labelImage"||c.type==="labelLink")&&!c._balanced&&(l=i,c.type!=="labelLink")){s=2;break}}elsec.type==="labelEnd"&&(d=i);constI={type:n[l][1].type==="labelLink"?"link":"image",start:Object.assign({},n[l][1].start),end:Object.assign({},n[n.length-1][1].end)},E={type:"label",start:Object.assign({},n[l][1].start),end:Object.assign({},n[d][1].end)},b={type:"labelText",start:Object.assign({},n[l+s+2][1].end),end:Object.assign({},n[d-2][1].start)};returnp=[["enter",I,a],["enter",E,a]],p=Y(p,n.slice(l+1,l+s+3)),p=Y(p,[["enter",b,a]]),p=Y(p,An(a.parser.constructs.insideSpan.null,n.slice(l+s+4,d-3),a)),p=Y(p,[["exit",b,a],n[d-2],n[d-1],["exit",E,a]]),p=Y(p,n.slice(d+1)),p=Y(p,[["exit",I,a]]),N(n,l,n.length,p),n}functionCn(n,a,i){consts=this;letc=s.events.length,l,d;for(;c--;)if((s.events[c][1].type==="labelImage"||s.events[c][1].type==="labelLink")&&!s.events[c][1]._balanced){l=s.events[c][1];break}returnp;functionp(k){returnl?l._inactive?j(k):(d=s.parser.defined.includes(Se(s.sliceSerialize({start:l.end,end:s.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(k),n.exit("labelMarker"),n.exit("labelEnd"),I):i(k)}functionI(k){returnk===40?n.attempt(sr,b,d?b:j)(k):k===91?n.attempt(Fn,b,d?E:j)(k):d?b(k):j(k)}functionE(k){returnn.attempt(kt,b,j)(k)}functionb(k){returna(k)}functionj(k){returnl._balanced=!0,i(k)}}functionde(n,a,i){returns;functions(j){returnn.enter("resource"),n.enter("resourceMarker"),n.consume(j),n.exit("resourceMarker"),c}functionc(j){returnMn(j)?Ie(n,l)(j):l(j)}functionl(j){returnj===41?b(j):At(n,d,p,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(j)}functiond(j){returnMn(j)?Ie(n,I)(j):b(j)}functionp(j){returni(j)}functionI(j){returnj===34||j===39||j===40?Xe(n,E,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(j):b(j)}functionE(j){returnMn(j)?Ie(n,b)(j):b(j)}functionb(j){returnj===41?(n.enter("resourceMarker"),n.consume(j),n.exit("resourceMarker"),n.exit("resource"),a):i(j)}}functionot(n,a,i){consts=this;returnc;functionc(p){returnst.call(s,n,l,d,"reference","referenceMarker","referenceString")(p)}functionl(p){returns.parser.defined.includes(Se(s.sliceSerialize(s.events[s.events.length-1][1]).slice(1,-1)))?a(p):i(p)}functiond(p){returni(p)}}functionCt(n,a,i){returns;functions(l){returnn.enter("reference"),n.enter("referenceMarker"),n.consume(l),n.exit("referenceMarker"),c}functionc(l){returnl===93?(n.enter("referenceMarker"),n.consume(l),n.exit("referenceMarker"),n.exit("reference"),a):i(l)}}constUe={name:"labelStartImage",tokenize:he,resolveAll:Ut.resolveAll};functionhe(n,a,i){consts=this;returnc;functionc(p){returnn.enter("labelImage"),n.enter("labelImageMarker"),n.consume(p),n.exit("labelImageMarker"),l}functionl(p){returnp===91?(n.enter("labelMarker"),n.consume(p),n.exit("labelMarker"),n.exit("labelImage"),d):i(p)}functiond(p){returnp===94&&"_hiddenFootnoteSupport"ins.parser.constructs?i(p):a(p)}}functionlt(n){if(n===null||Mn(n)||te(n))return1;if(_e(n))return2}constdt={name:"attention",tokenize:Qt,resolveAll:ur};functionur(n,a){leti=-1,s,c,l,d,p,I,E,b;for(;++i<n.length;)if(n[i][0]==="enter"&&n[i][1].type==="attentionSequence"&&n[i][1]._close){for(s=i;s--;)if(n[s][0]==="exit"&&n[s][1].type==="attentionSequence"&&n[s][1]._open&&a.sliceSerialize(n[s][1]).charCodeAt(0)===a.sliceSerialize(n[i][1]).charCodeAt(0)){if((n[s][1]._close||n[i][1]._open)&&(n[i][1].end.offset-n[i][1].start.offset)%3&&!((n[s][1].end.offset-n[s][1].start.offset+n[i][1].end.offset-n[i][1].start.offset)%3))continue;I=n[s][1].end.offset-n[s][1].start.offset>1&&n[i][1].end.offset-n[i][1].start.offset>1?2:1;constj=Object.assign({},n[s][1].end),k=Object.assign({},n[i][1].start);qe(j,-I),qe(k,I),d={type:I>1?"strongSequence":"emphasisSequence",start:j,end:Object.assign({},n[s][1].end)},p={type:I>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[i][1].start),end:k},l={type:I>1?"strongText":"emphasisText",start:Object.assign({},n[s][1].end),end:Object.assign({},n[i][1].start)},c={type:I>1?"strong":"emphasis",start:Object.assign({},d.start),end:Object.assign({},p.end)},n[s][1].end=Object.assign({},d.start),n[i][1].start=Object.assign({},p.end),E=[],n[s][1].end.offset-n[s][1].start.offset&&(E=Y(E,[["enter",n[s][1],a],["exit",n[s][1],a]])),E=Y(E,[["enter",c,a],["enter",d,a],["exit",d,a],["enter",l,a]]),E=Y(E,An(a.parser.constructs.insideSpan.null,n.slice(s+1,i),a)),E=Y(E,[["exit",l,a],["enter",p,a],["exit",p,a],["exit",c,a]]),n[i][1].end.offset-n[i][1].start.offset?(b=2,E=Y(E,[["enter",n[i][1],a],["exit",n[i][1],a]])):b=0,N(n,s-1,i-s+3,E),i=s+E.length-b-2;break}}for(i=-1;++i<n.length;)n[i][1].type==="attentionSequence"&&(n[i][1].type="data");returnn}functionQt(n,a){consti=this.parser.constructs.attentionMarkers.null,s=this.previous,c=lt(s);letl;returnd;functiond(I){returnl=I,n.enter("attentionSequence"),p(I)}functionp(I){if(I===l)returnn.consume(I),p;constE=n.exit("attentionSequence"),b=lt(I),j=!b||b===2&&c||i.includes(I),k=!c||c===2&&b||i.includes(s);returnE._open=!!(l===42?j:j&&(c||!k)),E._close=!!(l===42?k:k&&(b||!j)),a(I)}}functionqe(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const$t={name:"autolink",tokenize:Zt};functionZt(n,a,i){lets=0;returnc;functionc(x){returnn.enter("autolink"),n.enter("autolinkMarker"),n.consume(x),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),l}functionl(x){returnmn(x)?(n.consume(x),d):E(x)}functiond(x){returnx===43||x===45||x===46||Bn(x)?(s=1,p(x)):E(x)}functionp(x){returnx===58?(n.consume(x),s=0,I):(x===43||x===45||x===46||Bn(x))&&s++<32?(n.consume(x),p):(s=0,E(x))}functionI(x){returnx===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(x),n.exit("autolinkMarker"),n.exit("autolink"),a):x===null||x===32||x===60||sn(x)?i(x):(n.consume(x),I)}functionE(x){returnx===64?(n.consume(x),b):ve(x)?(n.consume(x),E):i(x)}functionb(x){returnBn(x)?j(x):i(x)}functionj(x){returnx===46?(n.consume(x),s=0,b):x===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(x),n.exit("autolinkMarker"),n.exit("autolink"),a):k(x)}functionk(x){if((x===45||Bn(x))&&s++<63){constIn=x===45?k:j;returnn.consume(x),In}returni(x)}}constWt={name:"htmlText",tokenize:It};functionIt(n,a,i){consts=this;letc,l,d;returnp;functionp(A){returnn.enter("htmlText"),n.enter("htmlTextData"),n.consume(A),I}functionI(A){returnA===33?(n.consume(A),E):A===47?(n.consume(A),Qn):A===63?(n.consume(A),en):mn(A)?(n.consume(A),ee):i(A)}functionE(A){returnA===45?(n.consume(A),b):A===91?(n.consume(A),l=0,In):mn(A)?(n.consume(A),Xn):i(A)}functionb(A){returnA===45?(n.consume(A),x):i(A)}functionj(A){returnA===null?i(A):A===45?(n.consume(A),k):Z(A)?(d=j,se(A)):(n.consume(A),j)}functionk(A){returnA===45?(n.consume(A),x):j(A)}functionx(A){returnA===62?Jn(A):A===45?k(A):j(A)}functionIn(A){constOe="CDATA[";returnA===Oe.charCodeAt(l++)?(n.consume(A),l===Oe.length?Sn:In):i(A)}functionSn(A){returnA===null?i(A):A===93?(n.consume(A),Kn):Z(A)?(d=Sn,se(A)):(n.consume(A),Sn)}functionKn(A){returnA===93?(n.consume(A),$):Sn(A)}function$(A){returnA===62?Jn(A):A===93?(n.consume(A),$):Sn(A)}functionXn(A){returnA===null||A===62?Jn(A):Z(A)?(d=Xn,se(A)):(n.consume(A),Xn)}functionen(A){returnA===null?i(A):A===63?(n.consume(A),Yn):Z(A)?(d=en,se(A)):(n.consume(A),en)}functionYn(A){returnA===62?Jn(A):en(A)}functionQn(A){returnmn(A)?(n.consume(A),B):i(A)}functionB(A){returnA===45||Bn(A)?(n.consume(A),B):zn(A)}functionzn(A){returnZ(A)?(d=zn,se(A)):ln(A)?(n.consume(A),zn):Jn(A)}functionee(A){returnA===45||Bn(A)?(n.consume(A),ee):A===47||A===62||Mn(A)?qn(A):i(A)}functionqn(A){returnA===47?(n.consume(A),Jn):A===58||A===95||mn(A)?(n.consume(A),me):Z(A)?(d=qn,se(A)):ln(A)?(n.consume(A),qn):Jn(A)}functionme(A){returnA===45||A===46||A===58||A===95||Bn(A)?(n.consume(A),me):Hn(A)}functionHn(A){returnA===61?(n.consume(A),wn):Z(A)?(d=Hn,se(A)):ln(A)?(n.consume(A),Hn):qn(A)}functionwn(A){returnA===null||A===60||A===61||A===62||A===96?i(A):A===34||A===39?(n.consume(A),c=A,tn):Z(A)?(d=wn,se(A)):ln(A)?(n.consume(A),wn):(n.consume(A),xn)}functiontn(A){returnA===c?(n.consume(A),c=void0,bn):A===null?i(A):Z(A)?(d=tn,se(A)):(n.consume(A),tn)}functionxn(A){returnA===null||A===34||A===39||A===60||A===61||A===96?i(A):A===47||A===62||Mn(A)?qn(A):(n.consume(A),xn)}functionbn(A){returnA===47||A===62||Mn(A)?qn(A):i(A)}functionJn(A){returnA===62?(n.consume(A),n.exit("htmlTextData"),n.exit("htmlText"),a):i(A)}functionse(A){returnn.exit("htmlTextData"),n.enter("lineEnding"),n.consume(A),n.exit("lineEnding"),Re}functionRe(A){returnln(A)?vn(n,Ge,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void0:4)(A):Ge(A)}functionGe(A){returnn.enter("htmlTextData"),d(A)}}constWe={name:"labelStartLink",tokenize:Ke,resolveAll:Ut.resolveAll};functionKe(n,a,i){consts=this;returnc;functionc(d){returnn.enter("labelLink"),n.enter("labelMarker"),n.consume(d),n.exit("labelMarker"),n.exit("labelLink"),l}functionl(d){returnd===94&&"_hiddenFootnoteSupport"ins.parser.constructs?i(d):a(d)}}constmr={name:"hardBreakEscape",tokenize:pr};functionpr(n,a,i){returns;functions(l){returnn.enter("hardBreakEscape"),n.consume(l),c}functionc(l){returnZ(l)?(n.exit("hardBreakEscape"),a(l)):i(l)}}constDr={name:"codeText",tokenize:Br,resolve:gr,previous:_r};functiongr(n){leta=n.length-4,i=3,s,c;if((n[i][1].type==="lineEnding"||n[i][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(s=i;++s<a;)if(n[s][1].type==="codeTextData"){n[i][1].type="codeTextPadding",n[a][1].type="codeTextPadding",i+=2,a-=2;break}}for(s=i-1,a++;++s<=a;)c===void0?s!==a&&n[s][1].type!=="lineEnding"&&(c=s):(s===a||n[s][1].type==="lineEnding")&&(n[c][1].type="codeTextData",s!==c+2&&(n[c][1].end=n[s-1][1].end,n.splice(c+2,s-c-2),a-=s-c-2,s=c+2),c=void0);returnn}function_r(n){returnn!==96||this.events[this.events.length-1][1].type==="characterEscape"}functionBr(n,a,i){consts=this;letc=0,l,d;returnp;functionp(k){returnn.enter("codeText"),n.enter("codeTextSequence"),I(k)}functionI(k){returnk===96?(n.consume(k),c++,I):(n.exit("codeTextSequence"),E(k))}functionE(k){returnk===null?i(k):k===32?(n.enter("space"),n.consume(k),n.exit("space"),E):k===96?(d=n.enter("codeTextSequence"),l=0,j(k)):Z(k)?(n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),E):(n.enter("codeTextData"),b(k))}functionb(k){returnk===null||k===32||k===96||Z(k)?(n.exit("codeTextData"),E(k)):(n.consume(k),b)}functionj(k){returnk===96?(n.consume(k),l++,j):l===c?(n.exit("codeTextSequence"),n.exit("codeText"),a(k)):(d.type="codeTextData",b(k))}}constRr={42:Zn,43:Zn,45:Zn,48:Zn,49:Zn,50:Zn,51:Zn,52:Zn,53:Zn,54:Zn,55:Zn,56:Zn,57:Zn,62:Ze},zr={91:Je},Ar={[-2]:vt,[-1]:vt,32:vt},Nr={35:zt,42:fe,45:[un,fe],60:Tn,61:un,95:fe,96:pe,126:pe},Ur={38:Be,92:Yt},Wr={[-5]:Nt,[-4]:Nt,[-3]:Nt,33:Ue,38:Be,42:dt,60:[$t,Wt],91:We,92:[mr,Yt],93:Ut,95:dt,96:Dr},Kr={null:[dt,dn]},Hr={null:[42,95]},Gr={null:[]};functionVr(n){consti=an([g,...(n||{}).extensions||[]]),s={defined:[],lazy:{},constructs:i,content:c(ue),document:c(ye),flow:c(Me),string:c(w),text:c(L)};returns;functionc(l){returnd;functiond(p){returnkn(s,l,p)}}}constvr=/[\0\t\n\r]/g;functionYr(){letn=1,a="",i=!0,s;returnc;functionc(l,d,p){constI=[];letE,b,j,k,x;for(l=a+l.toString(d),j=0,a="",i&&(l.charCodeAt(0)===65279&&j++,i=void0);j<l.length;){if(vr.lastIndex=j,E=vr.exec(l),k=E&&E.index!==void0?E.index:l.length,x=l.charCodeAt(k),!E){a=l.slice(j);break}if(x===10&&j===k&&s)I.push(-3),s=void0;elseswitch(s&&(I.push(-5),s=void0),j<k&&(I.push(l.slice(j,k)),n+=k-j),x){case0:{I.push(65533),n++;break}case9:{for(b=Math.ceil(n/4)*4,I.push(-2);n++<b;)I.push(-1);break}case10:{I.push(-4),n=1;break}default:s=!0,n=1}j=k+1}returnp&&(s&&I.push(-5),a&&I.push(a),I.push(null)),I}}functionXt(n){for(;!re(n););returnn}functionQr(n,a){consti=Number.parseInt(n,a);returni<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"\uFFFD":String.fromCharCode(i)}constbr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;functionxr(n){returnn.replace(br,$r)}function$r(n,a,i){if(a)returna;if(i.charCodeAt(0)===35){constc=i.charCodeAt(1),l=c===120||c===88;returnQr(i.slice(l?2:1),l?16:10)}returnat(i)||n}functionJt(n){return!n||typeofn!="object"?"":"position"inn||"type"inn?Zr(n.position):"start"inn||"end"inn?Zr(n):"line"inn||"column"inn?yr(n):""}functionyr(n){returnct(n&&n.line)+":"+ct(n&&n.column)}functionZr(n){returnyr(n&&n.start)+"-"+yr(n&&n.end)}functionct(n){returnn&&typeofn=="number"?n:1}constqt={}.hasOwnProperty,Er=function(n,a,i){returntypeofa!="string"&&(i=a,a=void0),wr(i)(Xt(Vr(i).document().write(Yr()(n,a,!0))))};functionwr(n){consta={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:p(Pr),autolinkProtocol:Hn,autolinkEmail:Hn,atxHeading:p(Tr),blockQuote:p(jt),characterEscape:Hn,characterReference:Hn,codeFenced:p(ht),codeFencedFenceInfo:I,codeFencedFenceMeta:I,codeIndented:p(ht,I),codeText:p(cr,I),codeTextData:Hn,data:Hn,codeFlowValue:Hn,definition:p(ai),definitionDestinationString:I,definitionLabelString:I,definitionTitleString:I,emphasis:p(ui),hardBreakEscape:p(Fr),hardBreakTrailing:p(Fr),htmlFlow:p(Or,I),htmlFlowData:Hn,htmlText:p(Or,I),htmlTextData:Hn,image:p(oi),label:I,link:p(Pr),listItem:p(Mr),listItemValue:In,listOrdered:p(Lr,x),listUnordered:p(Lr),paragraph:p(li),reference:St,referenceString:I,resourceDestinationString:I,resourceTitleString:I,setextHeading:p(Tr),strong:p(di),thematicBreak:p(fi)},exit:{atxHeading:b(),atxHeadingSequence:zn,autolink:b(),autolinkEmail:nt,autolinkProtocol:Ht,blockQuote:b(),characterEscapeValue:wn,characterReferenceMarkerHexadecimal:Kt,characterReferenceMarkerNumeric:Kt,characterReferenceValue:ae,codeFenced:b(Xn),codeFencedFence:$,codeFencedFenceInfo:Sn,codeFencedFenceMeta:Kn,codeFlowValue:wn,codeIndented:b(en),codeText:b(se),codeTextData:wn,data:wn,definition:b(),definitionDestinationString:B,definitionLabelString:Yn,definitionTitleString:Qn,emphasis:b(),hardBreakEscape:b(xn),hardBreakTrailing:b(xn),htmlFlow:b(bn),htmlFlowData:wn,htmlText:b(Jn),htmlTextData:wn,image:b(Ge),label:Oe,labelText:A,lineEnding:tn,link:b(Re),listItem:b(),listOrdered:b(),listUnordered:b(),paragraph:b(),referenceString:tr,resourceDestinationString:Ve,resourceTitleString:v,resource:be,setextHeading:b(me),setextHeadingLineSequence:qn,setextHeadingText:ee,strong:b(),thematicBreak:b()}};or(a,(n||{}).mdastExtensions||[]);consti={};returns;functions(T){letG={type:"root",children:[]};conston={stack:[G],tokenStack:[],config:a,enter:E,exit:j,buffer:I,resume:k,setData:l,getData:d},On=[];letDn=-1;for(;++Dn<T.length;)if(T[Dn][1].type==="listOrdered"||T[Dn][1].type==="listUnordered")if(T[Dn][0]==="enter")On.push(Dn);else{constze=On.pop();Dn=c(T,ze,Dn)}for(Dn=-1;++Dn<T.length;){constze=a[T[Dn][0]];qt.call(ze,T[Dn][1].type)&&ze[T[Dn][1].type].call(Object.assign({sliceSerialize:T[Dn][2].sliceSerialize},on),T[Dn][1])}if(on.tokenStack.length>0){constze=on.tokenStack[on.tokenStack.length-1];(ze[1]||lr).call(on,void0,ze[0])}for(G.position={start:He(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:He(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},Dn=-1;++Dn<a.transforms.length;)G=a.transforms[Dn](G)||G;returnG}functionc(T,G,on){letOn=G-1,Dn=-1,ze=!1,mt,et,Gt,Vt;for(;++On<=on;){constne=T[On];if(ne[1].type==="listUnordered"||ne[1].type==="listOrdered"||ne[1].type==="blockQuote"?(ne[0]==="enter"?Dn++:Dn--,Vt=void0):ne[1].type==="lineEndingBlank"?ne[0]==="enter"&&(mt&&!Vt&&!Dn&&!Gt&&(Gt=On),Vt=void0):ne[1].type==="linePrefix"||ne[1].type==="listItemValue"||ne[1].type==="listItemMarker"||ne[1].type==="listItemPrefix"||ne[1].type==="listItemPrefixWhitespace"||(Vt=void0),!Dn&&ne[0]==="enter"&&ne[1].type==="listItemPrefix"||Dn===-1&&ne[0]==="exit"&&(ne[1].type==="listUnordered"||ne[1].type==="listOrdered")){if(mt){letfr=On;for(et=void0;fr--;){consttt=T[fr];if(tt[1].type==="lineEnding"||tt[1].type==="lineEndingBlank"){if(tt[0]==="exit")continue;et&&(T[et][1].type="lineEndingBlank",ze=!0),tt[1].type="lineEnding",et=fr}elseif(!(tt[1].type==="linePrefix"||tt[1].type==="blockQuotePrefix"||tt[1].type==="blockQuotePrefixWhitespace"||tt[1].type==="blockQuoteMarker"||tt[1].type==="listItemIndent"))break}Gt&&(!et||Gt<et)&&(mt._spread=!0),mt.end=Object.assign({},et?T[et][1].start:ne[1].end),T.splice(et||On,0,["exit",mt,ne[2]]),On++,on++}ne[1].type==="listItemPrefix"&&(mt={type:"listItem",_spread:!1,start:Object.assign({},ne[1].start),end:void0},T.splice(On,0,["enter",mt,ne[2]]),On++,on++,Gt=void0,Vt=!0)}}returnT[G][1]._spread=ze,on}functionl(T,G){i[T]=G}functiond(T){returni[T]}functionp(T,G){returnon;functionon(On){E.call(this,T(On),On),G&&G.call(this,On)}}functionI(){this.stack.push({type:"fragment",children:[]})}functionE(T,G,on){returnthis.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([G,on]),T.position={start:He(G.start)},T}functionb(T){returnG;functionG(on){T&&T.call(this,on),j.call(this,on)}}functionj(T,G){conston=this.stack.pop(),On=this.tokenStack.pop();if(On)On[0].type!==T.type&&(G?G.call(this,T,On[0]):(On[1]||lr).call(this,T,On[0]));elsethrownewError("Cannot close `"+T.type+"` ("+Jt({start:T.start,end:T.end})+"): it\u2019s not open");returnon.position.end=He(T.end),on}functionk(){returnM(this.stack.pop())}functionx(){l("expectingFirstListItemValue",!0)}functionIn(T){if(d("expectingFirstListItemValue")){constG=this.stack[this.stack.length-2];G.start=Number.parseInt(this.sliceSerialize(T),10),l("expectingFirstListItemValue")}}functionSn(){constT=this.resume(),G=this.stack[this.stack.length-1];G.lang=T}functionKn(){constT=this.resume(),G=this.stack[this.stack.length-1];G.meta=T}function$(){d("flowCodeInside")||(this.buffer(),l("flowCodeInside",!0))}functionXn(){constT=this.resume(),G=this.stack[this.stack.length-1];G.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),l("flowCodeInside")}functionen(){constT=this.resume(),G=this.stack[this.stack.length-1];G.value=T.replace(/(\r?\n|\r)$/g,"")}functionYn(T){constG=this.resume(),on=this.stack[this.stack.length-1];on.label=G,on.identifier=Se(this.sliceSerialize(T)).toLowerCase()}functionQn(){constT=this.resume(),G=this.stack[this.stack.length-1];G.title=T}functionB(){constT=this.resume(),G=this.stack[this.stack.length-1];G.url=T}functionzn(T){constG=this.stack[this.stack.length-1];if(!G.depth){conston=this.sliceSerialize(T).length;G.depth=on}}functionee(){l("setextHeadingSlurpLineEnding",!0)}functionqn(T){constG=this.stack[this.stack.length-1];G.depth=this.sliceSerialize(T).charCodeAt(0)===61?1:2}functionme(){l("setextHeadingSlurpLineEnding")}functionHn(T){constG=this.stack[this.stack.length-1];leton=G.children[G.children.length-1];(!on||on.type!=="text")&&(on=ci(),on.position={start:He(T.start)},G.children.push(on)),this.stack.push(on)}functionwn(T){constG=this.stack.pop();G.value+=this.sliceSerialize(T),G.position.end=He(T.end)}functiontn(T){constG=this.stack[this.stack.length-1];if(d("atHardBreak")){conston=G.children[G.children.length-1];on.position.end=He(T.end),l("atHardBreak");return}!d("setextHeadingSlurpLineEnding")&&a.canContainEols.includes(G.type)&&(Hn.call(this,T),wn.call(this,T))}functionxn(){l("atHardBreak",!0)}functionbn(){constT=this.resume(),G=this.stack[this.stack.length-1];G.value=T}functionJn(){constT=this.resume(),G=this.stack[this.stack.length-1];G.value=T}functionse(){constT=this.resume(),G=this.stack[this.stack.length-1];G.value=T}functionRe(){constT=this.stack[this.stack.length-1];if(d("inReference")){constG=d("referenceType")||"shortcut";T.type+="Reference",T.referenceType=G,deleteT.url,deleteT.title}elsedeleteT.identifier,deleteT.label;l("referenceType")}functionGe(){constT=this.stack[this.stack.length-1];if(d("inReference")){constG=d("referenceType")||"shortcut";T.type+="Reference",T.referenceType=G,deleteT.url,deleteT.title}elsedeleteT.identifier,deleteT.label;l("referenceType")}functionA(T){constG=this.sliceSerialize(T),on=this.stack[this.stack.length-2];on.label=xr(G),on.identifier=Se(G).toLowerCase()}functionOe(){constT=this.stack[this.stack.length-1],G=this.resume(),on=this.stack[this.stack.length-1];if(l("inReference",!0),on.type==="link"){constOn=T.children;on.children=On}elseon.alt=G}functionVe(){constT=this.resume(),G=this.stack[this.stack.length-1];G.url=T}functionv(){constT=this.resume(),G=this.stack[this.stack.length-1];G.title=T}functionbe(){l("inReference")}functionSt(){l("referenceType","collapsed")}functiontr(T){constG=this.resume(),on=this.stack[this.stack.length-1];on.label=G,on.identifier=Se(this.sliceSerialize(T)).toLowerCase(),l("referenceType","full")}functionKt(T){l("characterReferenceType",T.type)}functionae(T){constG=this.sliceSerialize(T),on=d("characterReferenceType");letOn;on?(On=Qr(G,on==="characterReferenceMarkerNumeric"?10:16),l("characterReferenceType")):On=at(G);constDn=this.stack.pop();Dn.value+=On,Dn.position.end=He(T.end)}functionHt(T){wn.call(this,T);constG=this.stack[this.stack.length-1];G.url=this.sliceSerialize(T)}functionnt(T){wn.call(this,T);constG=this.stack[this.stack.length-1];G.url="mailto:"+this.sliceSerialize(T)}functionjt(){return{type:"blockquote",children:[]}}functionht(){return{type:"code",lang:null,meta:null,value:""}}functioncr(){return{type:"inlineCode",value:""}}functionai(){return{type:"definition",identifier:"",label:null,title:null,url:""}}functionui(){return{type:"emphasis",children:[]}}functionTr(){return{type:"heading",depth:void0,children:[]}}functionFr(){return{type:"break"}}functionOr(){return{type:"html",value:""}}functionoi(){return{type:"image",title:null,url:"",alt:null}}functionPr(){return{type:"link",title:null,url:"",children:[]}}functionLr(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}functionMr(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}functionli(){return{type:"paragraph",children:[]}}functiondi(){return{type:"strong",children:[]}}functionci(){return{type:"text",value:""}}functionfi(){return{type:"thematicBreak"}}}functionHe(n){return{line:n.line,column:n.column,offset:n.offset}}functionor(n,a){leti=-1;for(;++i<a.length;){consts=a[i];Array.isArray(s)?or(n,s):kr(n,s)}}functionkr(n,a){leti;for(iina)if(qt.call(a,i)){if(i==="canContainEols"){consts=a[i];s&&n[i].push(...s)}elseif(i==="transforms"){consts=a[i];s&&n[i].push(...s)}elseif(i==="enter"||i==="exit"){consts=a[i];s&&Object.assign(n[i],s)}}}functionlr(n,a){thrown?newError("Cannot close `"+n.type+"` ("+Jt({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Jt({start:a.start,end:a.end})+") is open"):newError("Cannot close document, a token (`"+a.type+"`, "+Jt({start:a.start,end:a.end})+") is still open")}varCr=h("./node_modules/ts-dedent/esm/index.js");functionXr(n){consta=n.replace(/\n{2,}/g,`
`)))thrownewError("splitLineToFitWidth does not support newlines in the line");returnft(n,a)}functionft(n,a,i=[],s=[]){if(n.length===0)returns.length>0&&i.push(s),i.length>0?i:[];letc="";n[0].content===" "&&(c=" ",n.shift());constl=n.shift()??{content:" ",type:"normal"},d=[...s];if(c!==""&&d.push({content:c,type:"normal"}),d.push(l),a(d))returnft(n,a,i,d);if(s.length>0)i.push(s),n.unshift(l);elseif(l.content){const[p,I]=ni(a,l);i.push([p]),I.content&&n.unshift(I)}returnft(n,a,i)}functionnr(n,a){a&&n.attr("style",a)}functionei(n,a,i,s,c=!1){constl=n.append("foreignObject"),d=l.append("xhtml:div"),p=a.label,I=a.isNode?"nodeLabel":"edgeLabel";d.html(`