@bkm016/basalt 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/{chunk-bng72094.js → chunk-03wzwnn6.js} +1 -1
- package/{chunk-9e8vhzy7.js → chunk-0crbhhna.js} +1 -1
- package/{chunk-h9zxqeqr.js → chunk-0rasqm8y.js} +2 -2
- package/{chunk-0x9netvr.js → chunk-1w4nh5t6.js} +1 -1
- package/{chunk-dk6fgprw.js → chunk-2eaehpp6.js} +1 -1
- package/{chunk-6sea12mw.js → chunk-30dxcr91.js} +1 -1
- package/{chunk-2zbj8ny6.js → chunk-343jsm46.js} +2 -2
- package/chunk-38g4jd6v.js +5 -0
- package/{chunk-zx75vnw8.js → chunk-39mh7h58.js} +22 -22
- package/chunk-44b9yx79.js +2 -0
- package/{chunk-r1jn77q6.js → chunk-4f6p4n7k.js} +2 -2
- package/{chunk-sgz87ht5.js → chunk-4w8j6n7z.js} +1 -1
- package/{chunk-szj85dqe.js → chunk-4yxd2kg1.js} +2 -2
- package/{chunk-bp61xdsc.js → chunk-59hg9a84.js} +1 -1
- package/{chunk-bq54argx.js → chunk-62ebm0bn.js} +1 -1
- package/{chunk-6d9r9p91.js → chunk-6ef085c1.js} +4 -4
- package/{chunk-zk91579b.js → chunk-6hx9y86d.js} +2 -2
- package/chunk-73t051r6.js +2 -0
- package/{chunk-pryvvs96.js → chunk-7mgkpn94.js} +22 -22
- package/{chunk-2q56egb8.js → chunk-81x8r8w4.js} +1 -1
- package/{chunk-rn3jwyh1.js → chunk-8np9b2y8.js} +2 -2
- package/{chunk-1q6e3mj7.js → chunk-9ew8cap5.js} +2 -2
- package/chunk-9v3b7jjv.js +2 -0
- package/{chunk-tjg0gcks.js → chunk-9vam83py.js} +1 -1
- package/{chunk-ct77cdg7.js → chunk-9xjecw6c.js} +1 -1
- package/{chunk-8cgz8xv7.js → chunk-b2wpj81x.js} +2 -2
- package/{chunk-302n9g7p.js → chunk-bjvv3403.js} +1 -1
- package/{chunk-tfhze1vq.js → chunk-c8g9jjqs.js} +2 -2
- package/{chunk-0a7ft50x.js → chunk-cs91rmbf.js} +8 -8
- package/{chunk-gpnqmtbk.js → chunk-edcf97ka.js} +1 -1
- package/{chunk-74wwdx3y.js → chunk-en7z6ne5.js} +2 -2
- package/{chunk-f0h2bv11.js → chunk-evnqkyt7.js} +10 -10
- package/{chunk-4rnmxtpx.js → chunk-ge38dhv9.js} +2 -2
- package/chunk-hggam3je.js +2 -0
- package/{chunk-mf04h0yy.js → chunk-k38jaz6c.js} +4 -4
- package/{chunk-jjtt9aq8.js → chunk-kcn05erf.js} +3 -3
- package/{chunk-y23dpz5e.js → chunk-m5km74eq.js} +2 -2
- package/{chunk-095adzn5.js → chunk-mfb3dgs8.js} +2 -2
- package/{chunk-0nedq669.js → chunk-mh4bjtfs.js} +3 -3
- package/{chunk-yy1f9jxc.js → chunk-nysatg77.js} +429 -312
- package/{chunk-bja7p3em.js → chunk-p886jr17.js} +13 -13
- package/{chunk-xvm0y99b.js → chunk-pdt65s31.js} +2 -2
- package/{chunk-ymg7mtcx.js → chunk-pjgt1bdx.js} +2 -2
- package/{chunk-959z9efn.js → chunk-pyj6avd5.js} +2 -2
- package/chunk-qd2enpr2.js +3 -0
- package/{chunk-tnj2kqb8.js → chunk-qe76naq9.js} +1 -1
- package/{chunk-z0c8ek0j.js → chunk-qjnx4fsn.js} +2 -2
- package/{chunk-2tf7qfbx.js → chunk-qs161f2q.js} +2 -2
- package/{chunk-nbjnwd54.js → chunk-rghqprav.js} +1 -1
- package/{chunk-7chv3knf.js → chunk-t33bm5aa.js} +1 -1
- package/chunk-vd5332ps.js +2 -0
- package/{chunk-22az84sh.js → chunk-w55cnj0f.js} +2 -2
- package/{chunk-4k9t9jvx.js → chunk-wnd3y4c0.js} +1 -1
- package/{chunk-snz19yc2.js → chunk-xafx1p7z.js} +2 -2
- package/{chunk-15ve3nmv.js → chunk-xf7zw32f.js} +12 -12
- package/chunk-xk3t5ves.js +482 -0
- package/{chunk-kbpbrr11.js → chunk-xq74x4gc.js} +2 -2
- package/{chunk-mdkfm1ak.js → chunk-y0274xr2.js} +3 -3
- package/{chunk-y4pvhes1.js → chunk-z9p6s986.js} +6 -6
- package/{chunk-41das1ty.js → chunk-zcwz44db.js} +1 -1
- package/{chunk-77c2cqp2.js → chunk-zhyzhekt.js} +1 -1
- package/compiled.js +12 -12
- package/package.json +1 -1
- package/ui-test-worker.js +51 -51
- package/web/chunk-15g9pnzy.js +1 -0
- package/web/{chunk-16jc5m0f.js → chunk-17wwzrp4.js} +1 -1
- package/web/chunk-19tkjg9w.js +1 -0
- package/web/chunk-1y387f45.js +1 -0
- package/web/{chunk-mykrm8ba.js → chunk-25sn840r.js} +2 -2
- package/web/chunk-26sp6jre.js +1 -0
- package/web/{chunk-wpxtkxjt.js → chunk-2c7kxr4v.js} +2 -2
- package/web/{chunk-et1rsgmp.js → chunk-2gsf89vs.js} +2 -2
- package/web/{chunk-jpem3qvs.js → chunk-2gvz70wr.js} +5 -5
- package/web/chunk-2s3my1jn.js +1 -0
- package/web/{chunk-yn4t5s9r.js → chunk-32dh0hft.js} +1 -1
- package/web/{chunk-5cwxhhae.js → chunk-3haw3wcw.js} +2 -2
- package/web/{chunk-t82sngk9.js → chunk-3rxhs9qm.js} +7 -7
- package/web/chunk-410qdvmv.js +1 -0
- package/web/chunk-4qehf2xx.js +2 -0
- package/web/{chunk-b9jry5a3.js → chunk-51b8n5e1.js} +1 -1
- package/web/{chunk-xe121vg7.js → chunk-54mgncq3.js} +1 -1
- package/web/{chunk-ze6azq7z.js → chunk-59g6rrew.js} +4 -4
- package/web/{chunk-h6k1x096.js → chunk-5d9veaef.js} +2 -2
- package/web/chunk-6481wt3t.js +1 -0
- package/web/chunk-6ehecat3.js +1 -0
- package/web/chunk-6m8hq6ph.js +1 -0
- package/web/chunk-73941p08.js +1 -0
- package/web/{chunk-0jbf73pr.js → chunk-783s8jds.js} +3 -3
- package/web/{chunk-qbmtah1x.js → chunk-78m018ya.js} +1 -1
- package/web/{chunk-3p9w8sg5.js → chunk-797bh7z6.js} +3 -3
- package/web/{chunk-1xm9x7d6.js → chunk-7hpqrfgg.js} +2 -2
- package/web/{chunk-zxrbbbtp.js → chunk-7kywe73f.js} +2 -2
- package/web/chunk-7qq1ypvj.js +1 -0
- package/web/{chunk-awkdw9rw.js → chunk-7wzszsf5.js} +2 -2
- package/web/{chunk-c57f714b.js → chunk-7zfqppsx.js} +2 -2
- package/web/{chunk-jh33m2mq.js → chunk-8sr9w61v.js} +3 -3
- package/web/{chunk-4py9sndw.js → chunk-8ttp8fh3.js} +6 -6
- package/web/chunk-8zg89764.js +1 -0
- package/web/{chunk-ct7z7bea.js → chunk-988e9wx6.js} +3 -3
- package/web/{chunk-vk7ch6fh.js → chunk-9h0f3gar.js} +2 -2
- package/web/{chunk-p6e2vr51.js → chunk-9vr6hpmk.js} +6 -6
- package/web/chunk-9vrp249f.js +2 -0
- package/web/{chunk-eqxy6535.js → chunk-a205cj09.js} +2 -2
- package/web/{chunk-980zhtht.js → chunk-ahn2frbt.js} +1 -1
- package/web/{chunk-xvm66b7v.js → chunk-aknsydan.js} +4 -4
- package/web/chunk-at0xtfhy.js +1 -0
- package/web/chunk-bahccwb9.js +1 -0
- package/web/{chunk-w4tfad6c.js → chunk-c7fqrs8j.js} +1 -1
- package/web/{chunk-zqcg6frm.js → chunk-d3hyf9yd.js} +1 -1
- package/web/chunk-dcegr80c.js +1 -0
- package/web/{chunk-v4cqc9f9.js → chunk-dwtatme7.js} +1 -1
- package/web/{chunk-cr04125j.js → chunk-ex8rmqn1.js} +12 -12
- package/web/{chunk-jh3k7xex.js → chunk-faskbfjf.js} +3 -3
- package/web/{chunk-zb61mf0a.js → chunk-feanedhx.js} +1 -1
- package/web/{chunk-xk1vkcj4.js → chunk-ffywf5w5.js} +4 -4
- package/web/chunk-fx3d48e6.js +1 -0
- package/web/{chunk-3jjksgze.js → chunk-g3szt4c4.js} +1 -1
- package/web/chunk-g7bcntpm.js +1 -0
- package/web/chunk-gr1tjqbd.js +1 -0
- package/web/{chunk-2sef2wft.js → chunk-hbwxtbq3.js} +2 -2
- package/web/{chunk-6e87m0nm.js → chunk-hdtvrh0f.js} +2 -2
- package/web/chunk-j031r08w.js +1 -0
- package/web/{chunk-5ym5ffd5.js → chunk-j6wcszxq.js} +2 -2
- package/web/{chunk-jccz14ye.js → chunk-jdx7qp2w.js} +2 -2
- package/web/chunk-jge7nn3s.js +1 -0
- package/web/chunk-jy8zat04.js +1 -0
- package/web/{chunk-0rhx7qb8.js → chunk-jzge034r.js} +1 -1
- package/web/{chunk-qq6m2my8.js → chunk-k4qrqmdk.js} +2 -2
- package/web/chunk-k8s7kye3.js +1 -0
- package/web/{chunk-ke8dffnk.js → chunk-k9fyqrhp.js} +2 -2
- package/web/chunk-k9zn1n6d.js +1 -0
- package/web/chunk-kg3tksv7.js +1 -0
- package/web/chunk-kk5rw81s.js +2 -0
- package/web/{chunk-y9waq403.js → chunk-kpmd893m.js} +2 -2
- package/web/chunk-md9j949p.js +1 -0
- package/web/{chunk-e57h40qa.js → chunk-mn2wv9ye.js} +2 -2
- package/web/{chunk-14vmr99v.js → chunk-mv7jgmnb.js} +3 -3
- package/web/{chunk-qq06x2ce.js → chunk-mvm68qtt.js} +2 -2
- package/web/chunk-nbcpbqq4.js +1 -0
- package/web/{chunk-6rsr2cyw.js → chunk-nfpff7yf.js} +8 -8
- package/web/chunk-nk7jkpam.js +1 -0
- package/web/chunk-nmvt1rn3.js +1 -0
- package/web/{chunk-3ctmehg4.js → chunk-npw1s1h2.js} +1 -1
- package/web/chunk-nzzxv84v.js +8 -0
- package/web/{chunk-a9er7a7c.js → chunk-p4pqtybm.js} +19 -19
- package/web/{chunk-ba9qy65y.js → chunk-p79c7aak.js} +1 -1
- package/web/{chunk-frnh4zqf.js → chunk-pafw34vg.js} +2 -2
- package/web/{chunk-ct90yf8z.js → chunk-pf65cank.js} +2 -2
- package/web/{chunk-g0be12na.js → chunk-ppa21760.js} +1 -1
- package/web/{chunk-g7hqafb8.js → chunk-ptpkv0te.js} +1 -1
- package/web/{chunk-ddg8rz82.js → chunk-qcdej581.js} +1 -1
- package/web/{chunk-xxmaqj1m.js → chunk-qftcdcps.js} +2 -2
- package/web/{chunk-eqndhs21.js → chunk-qv1w36ja.js} +2 -2
- package/web/{chunk-mnf4ngj9.js → chunk-r8p741qj.js} +2 -2
- package/web/chunk-rcexbkjj.js +1 -0
- package/web/{chunk-w28dn4dw.js → chunk-rjakb64x.js} +1 -1
- package/web/{chunk-k0cg4n2k.js → chunk-s0xy00v5.js} +2 -2
- package/web/{chunk-cr05dttm.js → chunk-s2ps0ct5.js} +1 -1
- package/web/{chunk-xcyqd7cn.js → chunk-s45g7fp6.js} +1 -1
- package/web/{chunk-h1k2kqbs.js → chunk-s70aj1v5.js} +4 -4
- package/web/chunk-say8bvkc.js +1 -0
- package/web/{chunk-qh62nkem.js → chunk-sd3cdqcm.js} +2 -2
- package/web/{chunk-a6g3nqp0.js → chunk-sgkevxdf.js} +2 -2
- package/web/chunk-sjffrcq9.js +1 -0
- package/web/{chunk-2y1avvqj.js → chunk-snaepr87.js} +3 -3
- package/web/{chunk-p7pa02k9.js → chunk-tdzh6nsz.js} +2 -2
- package/web/{chunk-ga07tv37.js → chunk-tjd8qp87.js} +1 -1
- package/web/chunk-tncc9e57.js +1 -0
- package/web/{chunk-ve8gy05p.js → chunk-ty2rmwda.js} +92 -92
- package/web/chunk-v22hp18w.js +1 -0
- package/web/{chunk-zh7193nq.js → chunk-ve9dz857.js} +2 -2
- package/web/{chunk-s935z8er.js → chunk-vg346gxc.js} +2 -2
- package/web/{chunk-b4gcpsbg.js → chunk-vpegzgzb.js} +5 -5
- package/web/{chunk-pzg25qqe.js → chunk-vvvd3grf.js} +2 -2
- package/web/{chunk-ss96cz1f.js → chunk-vwv6pqy7.js} +1 -1
- package/web/{chunk-sq75q603.js → chunk-vxm7n7w6.js} +6 -6
- package/web/{chunk-qb8mbptk.js → chunk-w5q7978e.js} +1 -1
- package/web/{chunk-97t3ngqf.js → chunk-we4mhfmq.js} +7 -7
- package/web/{chunk-20jxvmbw.js → chunk-wfgrdabk.js} +1 -1
- package/web/{chunk-3wpxymxa.js → chunk-wkhj4hsw.js} +3 -3
- package/web/{chunk-q4vy3dkk.js → chunk-wspk8qbg.js} +2 -2
- package/web/{chunk-9wz8jne3.js → chunk-xf1hnpme.js} +1 -1
- package/web/{chunk-fnvgdvrg.js → chunk-xhqvzmfj.js} +4 -4
- package/web/chunk-xq70hgre.js +1 -0
- package/web/chunk-xtss82z2.js +1 -0
- package/web/{chunk-8j4tzff5.js → chunk-y3tb6410.js} +3 -3
- package/web/{chunk-mkxeenph.js → chunk-y6mcxfm0.js} +1 -1
- package/web/{chunk-0rvwj2wh.js → chunk-ya696bfe.js} +2 -2
- package/web/{chunk-2x7vmhm0.js → chunk-ysw5fs45.js} +3 -3
- package/web/{chunk-atppv8fk.js → chunk-zkq1xknc.js} +1 -1
- package/web/chunk-zkv025s5.js +1 -0
- package/web/{chunk-dmha2y9c.js → chunk-zpzvz973.js} +18 -18
- package/web/{chunk-c6m4vfn5.js → chunk-zsat72qd.js} +68 -68
- package/web/{chunk-9k7fkx80.js → chunk-zx3h7v72.js} +1 -1
- package/web/index.html +1 -1
- package/chunk-1dbfmejf.js +0 -2
- package/chunk-4w9zqv0k.js +0 -2
- package/chunk-6f4ht2hw.js +0 -2
- package/chunk-edbq461k.js +0 -5
- package/chunk-m71pj3g1.js +0 -2
- package/chunk-n22vd4at.js +0 -2
- package/chunk-sgrrxsnz.js +0 -482
- package/chunk-ydzag81d.js +0 -3
- package/web/chunk-12qf1r6m.js +0 -1
- package/web/chunk-1m6fx2h7.js +0 -2
- package/web/chunk-2n5xbnrt.js +0 -1
- package/web/chunk-36s08nye.js +0 -1
- package/web/chunk-4swea9sn.js +0 -1
- package/web/chunk-4zz5a483.js +0 -1
- package/web/chunk-6y55gk1n.js +0 -1
- package/web/chunk-7aep7k4v.js +0 -1
- package/web/chunk-8tgavnwx.js +0 -1
- package/web/chunk-a00vg115.js +0 -1
- package/web/chunk-a4gbxnm3.js +0 -1
- package/web/chunk-bq6mep6p.js +0 -2
- package/web/chunk-bwy3e58v.js +0 -1
- package/web/chunk-de29pe57.js +0 -1
- package/web/chunk-eeesa5q1.js +0 -1
- package/web/chunk-f7jpakwh.js +0 -1
- package/web/chunk-fp62avjh.js +0 -1
- package/web/chunk-gr163fex.js +0 -1
- package/web/chunk-gx340asc.js +0 -1
- package/web/chunk-gxtz10wf.js +0 -1
- package/web/chunk-k9qnvx86.js +0 -2
- package/web/chunk-kcnj0gan.js +0 -1
- package/web/chunk-kpp5xqsb.js +0 -1
- package/web/chunk-m33yted6.js +0 -1
- package/web/chunk-me5jqqn6.js +0 -1
- package/web/chunk-mzqqwbmr.js +0 -1
- package/web/chunk-mzzaet63.js +0 -1
- package/web/chunk-q34as3v6.js +0 -1
- package/web/chunk-q6c8p73w.js +0 -1
- package/web/chunk-qn93we3a.js +0 -1
- package/web/chunk-r1f1egve.js +0 -1
- package/web/chunk-tt9410zw.js +0 -8
- package/web/chunk-vg1ebkce.js +0 -1
- package/web/chunk-vnt34mkb.js +0 -1
- package/web/chunk-xh4xn1az.js +0 -1
- package/web/chunk-xrk5ewsn.js +0 -1
- package/web/chunk-xzwxcxb4.js +0 -1
- package/web/chunk-ydhnkws0.js +0 -1
- package/web/chunk-ys2tns0p.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ri}from"./chunk-p4pqtybm.js";export{Ri as createCynefinServices};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{o,r,m,e,n,y,
|
|
2
|
-
`).length>8,h=t?.retried??0,b=l&&h>0,K=b?`重试中 (${h})`:Y[f]??f,V=b?"danger":Z[f]??"neutral",C=[t&&l&&t.lastTool&&`最近 ${t.lastTool}`,t&&ee(t.elapsedMs),t&&`输入 ${S(t.usage.input)}`,t&&`输出 ${S(t.usage.output)}`,t&&t.usage.cacheRead>0&&`缓存 ${S(t.usage.cacheRead)}`,t&&t.usage.cost>0&&`$${t.usage.cost.toFixed(4)}`].filter((i)=>Boolean(i)),E=b&&t?.lastError?`模型请求异常:${t.lastError}`:void 0,X=Boolean(c||s.state==="waiting"&&!x||E||N),z=s.model||t?.session.model;return e(B,{className:"my-2 animate-fade",header:n(m,{children:[z?e(Q,{modelID:z,className:"size-3.5 shrink-0",size:14}):e(Ue,{className:u("size-3.5 shrink-0",l?"text-warning":"text-faint")}),e("h4",{className:"truncate font-medium text-ink",title:s.description,children:s.description}),b&&n("span",{className:"shrink-0 text-xs font-medium text-danger tabular-nums",children:["已失败重试 ",h," 次"]}),C.length>0&&e("span",{className:"min-w-0 truncate text-xs text-faint tabular-nums",title:C.join(" "),children:C.join(" ")})]}),actions:n(m,{children:[e(U,{tone:V,pulse:f==="running",children:K}),l&&e(D,{size:"sm",variant:"danger-ghost",className:"h-6 rounded-md px-2 text-xs",disabled:R,onClick:()=>{J()},children:"取消"}),!W&&n(D,{size:"sm",variant:"ghost",className:"h-6 gap-1 rounded-md px-2 text-xs text-faint hover:text-ink",onClick:()=>_(s.childSessionID),children:["进入子会话",e(ot,{className:"size-3.5"})]})]}),children:X&&n(m,{children:[E&&n("div",{className:"flex items-center gap-2 border-b border-line bg-danger/10 px-4 py-2 text-xs text-danger",children:[n("span",{className:"font-medium",children:["已自动重试 ",h," 次:"]}),e("span",{className:"truncate",title:t?.lastError,children:t?.lastError})]}),s.state==="waiting"&&!x&&n("div",{className:u("px-4 py-3",c&&"border-b border-line"),children:[n("p",{className:"flex items-center gap-1.5 text-xs font-medium text-warning",children:[e(
|
|
1
|
+
import{o,r,m,e,n,y,It,ot,ie,Ue}from"./chunk-ty2rmwda.js";var Y={running:"运行中",waiting:"等待回答",context_exhausted:"上下文耗尽",done:"完成",error:"失败",failed:"失败",aborted:"已取消",cancelled:"已取消",interrupted:"已中断"},Z={running:"warning",waiting:"warning",context_exhausted:"warning",done:"success",error:"danger",failed:"danger",aborted:"neutral",cancelled:"neutral",interrupted:"warning"},S=(a)=>a>=1000?`${(a/1000).toFixed(a>=1e4?0:1)}k`:String(a),ee=(a)=>a>=60000?`${Math.floor(a/60000)} 分 ${Math.round(a%60000/1000)} 秒`:`${Math.round(a/1000)} 秒`;function ae(a){let{Button:D,Panel:B,StatusChip:U,Markdown:A,ModelIcon:Q,cn:u,style:q,useTheme:F}=y();F();let{connection:k,sessionID:w,payload:O,onOpen:_}=a,s=O,[t,L]=r(),[W,P]=r(!1),[N,g]=r(),[R,T]=r(!1),[p,j]=r(!1),[G,H]=r(!1),x=G||s.state==="aborted"||s.state==="cancelled",f=x?"aborted":s.state,l=(s.state==="running"||s.state==="waiting")&&!x;o(()=>{let i,I=!1,M=()=>{k.request(`/api/sessions/${encodeURIComponent(w)}/tasks/${encodeURIComponent(s.childSessionID)}`).then((d)=>{if(!I)L(d),P(!1),g(void 0)}).catch((d)=>{if(!I){if(d instanceof Error&&d.message==="Task is not a direct child"){P(!0),g(void 0);return}g(d instanceof Error?d.message:"任务详情加载失败")}})};if(M(),l)i=setInterval(M,1500);return()=>{if(I=!0,i)clearInterval(i)}},[k,w,s.childSessionID,l]);let J=async()=>{if(R)return;T(!0);try{await k.request(`/api/sessions/${encodeURIComponent(w)}/tasks/${encodeURIComponent(s.childSessionID)}/kill`,{method:"POST"}),H(!0)}catch(i){g(i instanceof Error?i.message:"取消任务失败")}finally{T(!1)}},c=s.summary?.trim()||s.handoff?.conclusion.trim()||"",v=c.length>360||c.split(`
|
|
2
|
+
`).length>8,h=t?.retried??0,b=l&&h>0,K=b?`重试中 (${h})`:Y[f]??f,V=b?"danger":Z[f]??"neutral",C=[t&&l&&t.lastTool&&`最近 ${t.lastTool}`,t&&ee(t.elapsedMs),t&&`输入 ${S(t.usage.input)}`,t&&`输出 ${S(t.usage.output)}`,t&&t.usage.cacheRead>0&&`缓存 ${S(t.usage.cacheRead)}`,t&&t.usage.cost>0&&`$${t.usage.cost.toFixed(4)}`].filter((i)=>Boolean(i)),E=b&&t?.lastError?`模型请求异常:${t.lastError}`:void 0,X=Boolean(c||s.state==="waiting"&&!x||E||N),z=s.model||t?.session.model;return e(B,{className:"my-2 animate-fade",header:n(m,{children:[z?e(Q,{modelID:z,className:"size-3.5 shrink-0",size:14}):e(Ue,{className:u("size-3.5 shrink-0",l?"text-warning":"text-faint")}),e("h4",{className:"truncate font-medium text-ink",title:s.description,children:s.description}),b&&n("span",{className:"shrink-0 text-xs font-medium text-danger tabular-nums",children:["已失败重试 ",h," 次"]}),C.length>0&&e("span",{className:"min-w-0 truncate text-xs text-faint tabular-nums",title:C.join(" "),children:C.join(" ")})]}),actions:n(m,{children:[e(U,{tone:V,pulse:f==="running",children:K}),l&&e(D,{size:"sm",variant:"danger-ghost",className:"h-6 rounded-md px-2 text-xs",disabled:R,onClick:()=>{J()},children:"取消"}),!W&&n(D,{size:"sm",variant:"ghost",className:"h-6 gap-1 rounded-md px-2 text-xs text-faint hover:text-ink",onClick:()=>_(s.childSessionID),children:["进入子会话",e(ot,{className:"size-3.5"})]})]}),children:X&&n(m,{children:[E&&n("div",{className:"flex items-center gap-2 border-b border-line bg-danger/10 px-4 py-2 text-xs text-danger",children:[n("span",{className:"font-medium",children:["已自动重试 ",h," 次:"]}),e("span",{className:"truncate",title:t?.lastError,children:t?.lastError})]}),s.state==="waiting"&&!x&&n("div",{className:u("px-4 py-3",c&&"border-b border-line"),children:[n("p",{className:"flex items-center gap-1.5 text-xs font-medium text-warning",children:[e(It,{className:"size-3.5"}),"子任务向主代理提问,等待回答"]}),s.pendingQuestions&&s.pendingQuestions.length>0&&e("ul",{className:"mt-1.5 flex flex-col gap-1 text-[13px] leading-relaxed text-ink",children:s.pendingQuestions.map((i)=>e("li",{className:"break-words",children:i.text},i.askedAt))})]}),c&&n("div",{className:"px-4 py-3",children:[n("div",{className:u("relative text-[13.5px] leading-[1.65] break-words text-ink/90 overflow-hidden transition-[max-height] duration-300 ease-out-quint [&_p]:my-1.5 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",v&&!p?"max-h-40":"max-h-[1800px]"),children:[e(A,{text:c}),v&&e("div",{className:u("pointer-events-none absolute inset-x-0 bottom-0 h-10 bg-gradient-to-t from-panel via-panel/70 to-transparent transition-opacity duration-300",p?"opacity-0":"opacity-100")})]}),v&&n("button",{type:"button",className:q("chat.timelineRow","cursor-pointer select-none"),onClick:()=>j(!p),children:[e("span",{children:p?"收起":"展开全部"}),e(ie,{className:u("size-3.5 transition-transform duration-300 ease-out-quint",p&&"rotate-180")})]})]}),N&&e("p",{role:"status",className:"px-4 py-2.5 text-xs text-danger",children:N})]})})}export{ae as TaskCard};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{ae,
|
|
2
|
-
export{
|
|
1
|
+
import{ae,Gi,We,In,xo,Fa,Ut,Vn,Be,Rr,Xr,Wn,_o,Hi,Gn}from"./chunk-zsat72qd.js";function Z(l){return l.innerRadius}function k(l){return l.outerRadius}function b(l){return l.startAngle}function _(l){return l.endAngle}function nn(l){return l&&l.padAngle}function en(l,d,q,P,x,h,S,r){var D=q-l,a=P-d,n=S-x,y=r-h,u=y*D-n*a;if(u*u<Be)return;return u=(n*(d-h)-y*(l-x))/u,[l+u*D,d+u*a]}function L(l,d,q,P,x,h,S){var r=l-q,D=d-P,a=(S?h:-h)/Vn(r*r+D*D),n=a*D,y=-a*r,u=l+n,s=d+y,t=q+n,f=P+y,j=(u+t)/2,o=(s+f)/2,g=t-u,c=f-s,v=g*g+c*c,A=x-h,R=u*f-t*s,E=(c<0?-1:1)*Vn(xo(0,A*A*v-R*R)),I=(R*c-g*E)/v,O=(-R*g-c*E)/v,T=(R*c+g*E)/v,m=(-R*g+c*E)/v,p=I-j,e=O-o,i=T-j,z=m-o;if(p*p+e*e>i*i+z*z)I=T,O=m;return{cx:I,cy:O,x01:-n,y01:-y,x11:I*(x/A-1),y11:O*(x/A-1)}}function _t(){var l=Z,d=k,q=ae(0),P=null,x=b,h=_,S=nn,r=null,D=Gn(a);function a(){var n,y,u=+l.apply(this,arguments),s=+d.apply(this,arguments),t=x.apply(this,arguments)-Xr,f=h.apply(this,arguments)-Xr,j=Gi(f-t),o=f>t;if(!r)r=n=D();if(s<u)y=s,s=u,u=y;if(!(s>Be))r.moveTo(0,0);else if(j>Wn-Be){if(r.moveTo(s*In(t),s*Ut(t)),r.arc(0,0,s,t,f,!o),u>Be)r.moveTo(u*In(f),u*Ut(f)),r.arc(0,0,u,f,t,o)}else{var g=t,c=f,v=t,A=f,R=j,E=j,I=S.apply(this,arguments)/2,O=I>Be&&(P?+P.apply(this,arguments):Vn(u*u+s*s)),T=Fa(Gi(s-u)/2,+q.apply(this,arguments)),m=T,p=T,e,i;if(O>Be){var z=Hi(O/u*Ut(I)),F=Hi(O/s*Ut(I));if((R-=z*2)>Be)z*=o?1:-1,v+=z,A-=z;else R=0,v=A=(t+f)/2;if((E-=F*2)>Be)F*=o?1:-1,g+=F,c-=F;else E=0,g=c=(t+f)/2}var B=s*In(g),C=s*Ut(g),G=u*In(A),H=u*Ut(A);if(T>Be){var J=s*In(c),K=s*Ut(c),M=u*In(v),N=u*Ut(v),w;if(j<Rr)if(w=en(B,C,M,N,J,K,G,H)){var Q=B-w[0],U=C-w[1],V=J-w[0],W=K-w[1],X=1/Ut(_o((Q*V+U*W)/(Vn(Q*Q+U*U)*Vn(V*V+W*W)))/2),Y=Vn(w[0]*w[0]+w[1]*w[1]);m=Fa(T,(u-Y)/(X-1)),p=Fa(T,(s-Y)/(X+1))}else m=p=0}if(!(E>Be))r.moveTo(B,C);else if(p>Be)if(e=L(M,N,B,C,s,p,o),i=L(J,K,G,H,s,p,o),r.moveTo(e.cx+e.x01,e.cy+e.y01),p<T)r.arc(e.cx,e.cy,p,We(e.y01,e.x01),We(i.y01,i.x01),!o);else r.arc(e.cx,e.cy,p,We(e.y01,e.x01),We(e.y11,e.x11),!o),r.arc(0,0,s,We(e.cy+e.y11,e.cx+e.x11),We(i.cy+i.y11,i.cx+i.x11),!o),r.arc(i.cx,i.cy,p,We(i.y11,i.x11),We(i.y01,i.x01),!o);else r.moveTo(B,C),r.arc(0,0,s,g,c,!o);if(!(u>Be)||!(R>Be))r.lineTo(G,H);else if(m>Be)if(e=L(G,H,J,K,u,-m,o),i=L(B,C,M,N,u,-m,o),r.lineTo(e.cx+e.x01,e.cy+e.y01),m<T)r.arc(e.cx,e.cy,m,We(e.y01,e.x01),We(i.y01,i.x01),!o);else r.arc(e.cx,e.cy,m,We(e.y01,e.x01),We(e.y11,e.x11),!o),r.arc(0,0,u,We(e.cy+e.y11,e.cx+e.x11),We(i.cy+i.y11,i.cx+i.x11),o),r.arc(i.cx,i.cy,m,We(i.y11,i.x11),We(i.y01,i.x01),!o);else r.arc(0,0,u,A,v,o)}if(r.closePath(),n)return r=null,n+""||null}return a.centroid=function(){var n=(+l.apply(this,arguments)+ +d.apply(this,arguments))/2,y=(+x.apply(this,arguments)+ +h.apply(this,arguments))/2-Rr/2;return[In(y)*n,Ut(y)*n]},a.innerRadius=function(n){return arguments.length?(l=typeof n==="function"?n:ae(+n),a):l},a.outerRadius=function(n){return arguments.length?(d=typeof n==="function"?n:ae(+n),a):d},a.cornerRadius=function(n){return arguments.length?(q=typeof n==="function"?n:ae(+n),a):q},a.padRadius=function(n){return arguments.length?(P=n==null?null:typeof n==="function"?n:ae(+n),a):P},a.startAngle=function(n){return arguments.length?(x=typeof n==="function"?n:ae(+n),a):x},a.endAngle=function(n){return arguments.length?(h=typeof n==="function"?n:ae(+n),a):h},a.padAngle=function(n){return arguments.length?(S=typeof n==="function"?n:ae(+n),a):S},a.context=function(n){return arguments.length?(r=n==null?null:n,a):r},a}
|
|
2
|
+
export{_t};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import{t,a,de,Re,b,C,S,E,T,A,L,R,l,
|
|
1
|
+
import{t,a,de,Re,b,C,S,E,T,A,L,R,l,ln,An,p,nt,rt,M,Fe,pe,le,ce,Ze,Pr,ge,ye}from"./chunk-zsat72qd.js";import{Ft}from"./chunk-k9fyqrhp.js";import{qe}from"./chunk-w5q7978e.js";import{Bt}from"./chunk-9vrp249f.js";import{he}from"./chunk-y6mcxfm0.js";import{ue}from"./chunk-51b8n5e1.js";var A1="flowchart-",m1=class{constructor(){this.vertexCounter=0,this.config=l(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=S,this.setAccDescription=T,this.setDiagramTitle=L,this.getAccTitle=E,this.getAccDescription=A,this.getDiagramTitle=R,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{t(this,"FlowDB")}sanitizeText(e){return b.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let r of this.vertices.values())if(r.id===e)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,r,n,u,c,m,d={},y){if(!e||e.trim().length===0)return;let f;if(y!==void 0){let _;if(!y.includes(`
|
|
2
2
|
`))_=`{
|
|
3
3
|
`+y+`
|
|
4
4
|
}`;else _=y+`
|
|
5
|
-
`;f=rt(_,{schema:nt})}let U=this.subGraphLookup.get(e);if(U&&f){U.metadata={...U.metadata,...f};return}let B=this.edges.find((_)=>_.id===e);if(B){let _=f;if(_?.animate!==void 0)B.animate=_.animate;if(_?.animation!==void 0)B.animation=_.animation;if(_?.curve!==void 0)B.interpolate=_.curve;return}let W,x=this.vertices.get(e);if(x===void 0){if(r===void 0&&n===void 0&&u!==void 0&&u!==null)a.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`);x={id:e,labelType:"text",domId:A1+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,x)}if(this.vertexCounter++,r!==void 0){if(this.config=l(),W=this.sanitizeText(r.text.trim()),x.labelType=r.type,W.startsWith('"')&&W.endsWith('"'))W=W.substring(1,W.length-1);x.text=W}else if(x.text===void 0)x.text=e;if(n!==void 0)x.type=n;if(u!==void 0&&u!==null)u.forEach((_)=>{x.styles.push(_)});if(c!==void 0&&c!==null)c.forEach((_)=>{x.classes.push(_)});if(m!==void 0)x.dir=m;if(x.props===void 0)x.props=d;else if(d!==void 0)Object.assign(x.props,d);if(f!==void 0){if(f.shape){if(f.shape!==f.shape.toLowerCase()||f.shape.includes("_"))throw Error(`No such shape: ${f.shape}. Shape names should be lowercase.`);else if(!
|
|
5
|
+
`;f=rt(_,{schema:nt})}let U=this.subGraphLookup.get(e);if(U&&f){U.metadata={...U.metadata,...f};return}let B=this.edges.find((_)=>_.id===e);if(B){let _=f;if(_?.animate!==void 0)B.animate=_.animate;if(_?.animation!==void 0)B.animation=_.animation;if(_?.curve!==void 0)B.interpolate=_.curve;return}let W,x=this.vertices.get(e);if(x===void 0){if(r===void 0&&n===void 0&&u!==void 0&&u!==null)a.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`);x={id:e,labelType:"text",domId:A1+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,x)}if(this.vertexCounter++,r!==void 0){if(this.config=l(),W=this.sanitizeText(r.text.trim()),x.labelType=r.type,W.startsWith('"')&&W.endsWith('"'))W=W.substring(1,W.length-1);x.text=W}else if(x.text===void 0)x.text=e;if(n!==void 0)x.type=n;if(u!==void 0&&u!==null)u.forEach((_)=>{x.styles.push(_)});if(c!==void 0&&c!==null)c.forEach((_)=>{x.classes.push(_)});if(m!==void 0)x.dir=m;if(x.props===void 0)x.props=d;else if(d!==void 0)Object.assign(x.props,d);if(f!==void 0){if(f.shape){if(f.shape!==f.shape.toLowerCase()||f.shape.includes("_"))throw Error(`No such shape: ${f.shape}. Shape names should be lowercase.`);else if(!Pr(f.shape))throw Error(`No such shape: ${f.shape}.`);x.type=f?.shape}if(f?.label)x.text=f?.label,x.labelType=this.sanitizeNodeLabelType(f?.labelType);if(f?.icon){if(x.icon=f?.icon,!f.label?.trim()&&x.text===e)x.text=""}if(f?.form)x.form=f?.form;if(f?.pos)x.pos=f?.pos;if(f?.img){if(x.img=f?.img,!f.label?.trim()&&x.text===e)x.text=""}if(f?.constraint)x.constraint=f.constraint;if(f.w)x.assetWidth=Number(f.w);if(f.h)x.assetHeight=Number(f.h)}}addSingleLink(e,r,n,u){let d={start:e,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};a.info("abc78 Got edge...",d);let y=n.text;if(y!==void 0){if(d.text=this.sanitizeText(y.text.trim()),d.text.startsWith('"')&&d.text.endsWith('"'))d.text=d.text.substring(1,d.text.length-1);d.labelType=this.sanitizeNodeLabelType(y.type)}if(n!==void 0)d.type=n.type,d.stroke=n.stroke,d.length=n.length>10?10:n.length;if(u&&!this.edges.some((f)=>f.id===u))d.id=u,d.isUserDefinedId=!0;else{let f=this.edges.filter((U)=>U.start===d.start&&U.end===d.end);if(f.length===0)d.id=Fe(d.start,d.end,{counter:0,prefix:"L"});else d.id=Fe(d.start,d.end,{counter:f.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))a.info("Pushing edge..."),this.edges.push(d);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
|
|
6
6
|
|
|
7
7
|
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|
8
8
|
You cannot set this config via configuration inside the diagram as it is a secure config.
|
|
9
|
-
You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e==="object"&&"id"in e&&typeof e.id==="string"}addLink(e,r,n){let u=this.isLinkData(n)?n.id.replace("@",""):void 0;a.info("addLink",e,r,u);for(let c of e)for(let m of r){let d=c===e[e.length-1],y=m===r[0];if(d&&y)this.addSingleLink(c,m,n,u);else this.addSingleLink(c,m,n,void 0)}}updateLinkInterpolate(e,r){e.forEach((n)=>{if(n==="default")this.edges.defaultInterpolate=r;else this.edges[n].interpolate=r})}updateLink(e,r){e.forEach((n)=>{if(typeof n==="number"&&n>=this.edges.length)throw Error(`The index ${n} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);if(n==="default")this.edges.defaultStyle=r;else if(this.edges[n].style=r,(this.edges[n]?.style?.length??0)>0&&!this.edges[n]?.style?.some((u)=>u?.startsWith("fill")))this.edges[n]?.style?.push("fill:none")})}addClass(e,r){let n=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach((u)=>{let c=this.classes.get(u);if(c===void 0)c={id:u,styles:[],textStyles:[]},this.classes.set(u,c);if(n!==void 0&&n!==null)n.forEach((m)=>{if(/color/.exec(m)){let d=m.replace("fill","bgFill");c.textStyles.push(d)}c.styles.push(m)})})}setDirection(e){if(this.direction=e.trim(),/.*</.exec(this.direction))this.direction="RL";if(/.*\^/.exec(this.direction))this.direction="BT";if(/.*>/.exec(this.direction))this.direction="LR";if(/.*v/.exec(this.direction))this.direction="TB";if(this.direction==="TD")this.direction="TB"}setClass(e,r){for(let n of e.split(",")){let u=this.vertices.get(n);if(u)u.classes.push(r);let c=this.edges.find((d)=>d.id===n);if(c)c.classes.push(r);let m=this.subGraphLookup.get(n);if(m)m.classes.push(r)}}setTooltip(e,r){if(r===void 0)return;r=this.sanitizeText(r);for(let n of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(n):n,r)}setClickFun(e,r,n){if(l().securityLevel!=="loose")return;if(r===void 0)return;let u=[];if(typeof n==="string"){u=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let m=0;m<u.length;m++){let d=u[m].trim();if(d.startsWith('"')&&d.endsWith('"'))d=d.substr(1,d.length-2);u[m]=d}}if(u.length===0)u.push(e);let c=this.vertices.get(e);if(c)c.haveCallback=!0,this.funs.push(()=>{let m=this.lookUpDomId(e),d=document.querySelector(`[id="${m}"]`);if(d!==null)d.addEventListener("click",()=>{M.runFunc(r,...u)},!1)})}setLink(e,r,n){e.split(",").forEach((u)=>{let c=this.vertices.get(u);if(c!==void 0)c.link=M.formatUrl(r,this.config),c.linkTarget=n}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,r,n){e.split(",").forEach((u)=>{this.setClickFun(u,r,n)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach((r)=>{r(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let r=Ft();p(e).select("svg").selectAll("g.node").on("mouseover",(c)=>{let m=p(c.currentTarget),d=m.attr("title");if(d===null)return;let y=c.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(m.attr("title")).style("left",window.scrollX+y.left+(y.right-y.left)/2+"px").style("top",window.scrollY+y.bottom+"px"),r.html(Re.sanitize(d)),m.classed("hover",!0)}).on("mouseout",(c)=>{r.transition().duration(500).style("opacity",0),p(c.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=l(),C()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,r,n){let u=e.text.trim(),c=n.text;if(e===n&&/\s/.exec(n.text))u=void 0;let d=t((x)=>{let _={boolean:{},number:{},string:{}},N=[],j;return{nodeList:x.filter(function(h){let g=typeof h;if(h.stmt&&h.stmt==="dir")return j=h.value,!1;if(h.trim()==="")return!1;if(g in _)return _[g].hasOwnProperty(h)?!1:_[g][h]=!0;else return N.includes(h)?!1:N.push(h)}),dir:j}},"uniq")(r.flat()),{nodeList:y,dir:f}=d,U=l().flowchart??{};if(f=f??(U.inheritDir?this.getDirection()??l().direction??void 0:void 0),this.version==="gen-1")for(let x=0;x<y.length;x++)y[x]=this.lookUpDomId(y[x]);u=u??"subGraph"+this.subCount,c=c||"",c=this.sanitizeText(c),this.subCount=this.subCount+1;let B={id:u,nodes:y,title:c.trim(),classes:[],dir:f,labelType:this.sanitizeNodeLabelType(n?.type)};a.info("Adding",B.id,B.nodes,B.dir),B.nodes=this.makeUniq(B,this.subGraphs).nodes.filter((x)=>x!==u);let W=this.subGraphs.find((x)=>x.id===u);if(W)W.nodes.push(...B.nodes);else this.subGraphs.push(B);return this.subGraphLookup.set(u,W??B),u}getPosForId(e){for(let[r,n]of this.subGraphs.entries())if(n.id===e)return r;return-1}indexNodes2(e,r){let n=this.subGraphs[r].nodes;if(this.secCount=this.secCount+1,this.secCount>2000)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===e)return{result:!0,count:0};let u=0,c=1;while(u<n.length){let m=this.getPosForId(n[u]);if(m>=0){let d=this.indexNodes2(e,m);if(d.result)return{result:!0,count:c+d.count};else c=c+d.count}u=u+1}return{result:!1,count:c}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){if(this.secCount=-1,this.subGraphs.length>0)this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){if(this.firstGraphFlag)return this.firstGraphFlag=!1,!0;return!1}destructStartLink(e){let r=e.trim(),n="arrow_open";switch(r[0]){case"<":n="arrow_point",r=r.slice(1);break;case"x":n="arrow_cross",r=r.slice(1);break;case"o":n="arrow_circle",r=r.slice(1);break}let u="normal";if(r.includes("="))u="thick";if(r.includes("."))u="dotted";return{type:n,stroke:u}}countChar(e,r){let n=r.length,u=0;for(let c=0;c<n;++c)if(r[c]===e)++u;return u}destructEndLink(e){let r=e.trim(),n=r.slice(0,-1),u="arrow_open";switch(r.slice(-1)){case"x":if(u="arrow_cross",r.startsWith("x"))u="double_"+u,n=n.slice(1);break;case">":if(u="arrow_point",r.startsWith("<"))u="double_"+u,n=n.slice(1);break;case"o":if(u="arrow_circle",r.startsWith("o"))u="double_"+u,n=n.slice(1);break}let c="normal",m=n.length-1;if(n.startsWith("="))c="thick";if(n.startsWith("~"))c="invisible";let d=this.countChar(".",n);if(d)c="dotted",m=d;return{type:u,stroke:c,length:m}}destructLink(e,r){let n=this.destructEndLink(e),u;if(r){if(u=this.destructStartLink(r),u.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if(u.type==="arrow_open")u.type=n.type;else{if(u.type!==n.type)return{type:"INVALID",stroke:"INVALID"};u.type="double_"+u.type}if(u.type==="double_arrow")u.type="double_arrow_point";return u.length=n.length,u}return n}exists(e,r){for(let n of e)if(n.nodes.includes(r))return!0;return!1}makeUniq(e,r){let n=[];return e.nodes.forEach((u,c)=>{if(!this.exists(r,u))n.push(e.nodes[c])}),{nodes:n}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon){if(e.form==="circle")return"iconCircle";if(e.form==="square")return"iconSquare";if(e.form==="rounded")return"iconRounded";return"icon"}switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,r){return e.find((n)=>n.id===r)}destructEdgeType(e){let r="none",n="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":n=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=e.replace("double_",""),n=r;break}return{arrowTypeStart:r,arrowTypeEnd:n}}addNodeFromVertex(e,r,n,u,c,m){let d=n.get(e.id),y=u.get(e.id)??!1,f=this.findNode(r,e.id);if(f)f.cssStyles=e.styles,f.cssCompiledStyles=this.getCompiledStyles(e.classes),f.cssClasses=e.classes.join(" ");else{let U={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:d,padding:c.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:m,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};if(y)r.push({...U,isGroup:!0,shape:"rect"});else r.push({...U,isGroup:!1,shape:this.getTypeFromVertex(e),minWidth:c.flowchart?.minNodeWidth})}}getCompiledStyles(e){let r=[];for(let n of e){let u=this.classes.get(n);if(u?.styles)r=[...r,...u.styles??[]].map((c)=>c.trim());if(u?.textStyles)r=[...r,...u.textStyles??[]].map((c)=>c.trim())}return r}getData(){let e=l(),r=[],n=[],u=this.getSubGraphs(),c=new Map,m=new Map,d=new Map;for(let h of u)for(let g of h.nodes)if(this.subGraphLookup.has(g))d.set(g,h.id);let y=new Map,f=new Map;for(let h of u){let g=d.get(h.id);if(g!==void 0)f.set(g,[...f.get(g)??[],h.id])}let U=0,B=t((h)=>{y.set(h,U++);for(let g of f.get(h)??[])B(g)},"walk");for(let h of u)if(!d.has(h.id))B(h.id);let W=t((h)=>this.subGraphLookup.get(h)?.metadata?.view==="collapsed","isCollapsed"),x=t((h)=>{let g,ne=new Set,fe=h;while(fe!==void 0&&!ne.has(fe)){if(ne.add(fe),W(fe))g=fe;fe=d.get(fe)}return g},"outermostCollapsed"),_=new Set,N=new Map;for(let h of u){let g=x(h.id);if(g===void 0)continue;if(h.id!==g)_.add(h.id),N.set(h.id,g);for(let ne of h.nodes){if(ne===g)continue;_.add(ne),N.set(ne,g)}}for(let h=u.length-1;h>=0;h--){let g=u[h];if(_.has(g.id))continue;if(g.nodes.length>0)m.set(g.id,!0);for(let ne of g.nodes)c.set(ne,g.id)}for(let h=u.length-1;h>=0;h--){let g=u[h];if(_.has(g.id))continue;if(g.metadata?.view==="collapsed")r.push({id:g.id,label:g.title,labelStyle:"",labelType:g.labelType,parentId:c.get(g.id),padding:8,cssCompiledStyles:this.getCompiledStyles(g.classes),cssClasses:g.classes.join(" "),shape:"collapsedGroup",dir:g.dir,isGroup:!1,look:e.look,colorIndex:y.get(g.id)});else r.push({id:g.id,label:g.title,labelStyle:"",labelType:g.labelType,parentId:c.get(g.id),padding:8,cssCompiledStyles:this.getCompiledStyles(g.classes),cssClasses:g.classes.join(" "),shape:"rect",dir:g.dir,isGroup:!0,look:e.look,colorIndex:y.get(g.id),metadata:g.metadata})}this.getVertices().forEach((h)=>{if(_.has(h.id))return;this.addNodeFromVertex(h,r,c,m,e,e.look||"classic")});let Ne=this.getEdges();return Ne.forEach((h,g)=>{let{arrowTypeStart:ne,arrowTypeEnd:fe}=this.destructEdgeType(h.type),K=[...Ne.defaultStyle??[]],Y=N.get(h.start)??h.start,H=N.get(h.end)??h.end;if(Y===H&&(N.has(h.start)||N.has(h.end)))return;if(h.style)K.push(...h.style);let q={id:Fe(Y,H,{counter:g,prefix:"L"},h.id),isUserDefinedId:h.isUserDefinedId,start:Y,end:H,type:h.type??"normal",label:h.text,labelType:h.labelType,labelpos:"c",thickness:h.stroke,minlen:h.length,classes:h?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":ne,arrowTypeEnd:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":fe,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(h.classes),labelStyle:K,style:K,pattern:h.stroke,look:e.look,animate:h.animate,animation:h.animation,curve:h.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};n.push(q)}),{nodes:r,edges:n,other:{},config:e}}defaultConfig(){return En.flowchart}},C1=t(function(e,r){return r.db.getClasses()},"getClasses"),D1=t(async function(e,r,n,u){a.info("REF0:"),a.info("Drawing state diagram (v2)",r);let{securityLevel:c,flowchart:m,layout:d}=l();u.db.setDiagramId(r),a.debug("Before getData: ");let y=u.db.getData();a.debug("Data: ",y);let f=he(r,c),U=u.db.getDirection();y.type=u.type,y.layoutAlgorithm=ye(d),y.direction=U,y.nodeSpacing=m?.nodeSpacing||50,y.rankSpacing=m?.rankSpacing||50,y.markers=["point","circle","cross"],y.diagramId=r,a.debug("REF1:",y),await ge(y,f);let B=y.config.flowchart?.diagramPadding??8;M.insertTitle(f,"flowchartTitleText",m?.titleTopMargin||0,u.db.getDiagramTitle()),ue(f,B,"flowchart",m?.useMaxWidth||!1)},"draw"),T1={getClasses:C1,draw:D1},_t=function(){var e=t(function(Oe,k,D,F){for(D=D||{},F=Oe.length;F--;D[Oe[F]]=k);return D},"o"),r=[1,4],n=[1,3],u=[1,5],c=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],m=[2,2],d=[1,13],y=[1,14],f=[1,15],U=[1,16],B=[1,23],W=[1,25],x=[1,26],_=[1,27],N=[1,50],j=[1,49],Ne=[1,29],h=[1,30],g=[1,31],ne=[1,32],fe=[1,33],K=[1,45],Y=[1,47],H=[1,43],q=[1,48],Q=[1,44],J=[1,51],Z=[1,46],ee=[1,52],te=[1,53],ct=[1,34],ht=[1,35],dt=[1,36],pt=[1,37],ft=[1,38],Ge=[1,58],G=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],De=[1,62],Te=[1,61],Ee=[1,63],je=[8,9,11,75,77,78],vt=[1,79],Ke=[1,92],Ye=[1,97],He=[1,96],Xe=[1,93],Qe=[1,89],Je=[1,95],$e=[1,91],et=[1,98],tt=[1,94],st=[1,99],it=[1,90],Me=[8,9,10,11,40,75,77,78],ie=[8,9,10,11,40,46,75,77,78],be=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],Lt=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],at=[44,60,89,102,105,106,109,111,114,115,116],Vt=[1,122],wt=[1,123],bt=[1,125],kt=[1,124],It=[44,60,62,74,89,102,105,106,109,111,114,115,116],Rt=[1,134],Nt=[1,148],Gt=[1,149],Pt=[1,150],Ot=[1,151],Mt=[1,136],Ut=[1,138],Wt=[1,142],zt=[1,143],jt=[1,144],Kt=[1,145],Yt=[1,146],Ht=[1,147],qt=[1,152],Xt=[1,153],Qt=[1,132],Jt=[1,133],Zt=[1,140],$t=[1,135],e1=[1,139],t1=[1,137],Ct=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],s1=[1,155],i1=[1,157],z=[8,9,11],ke=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],v=[1,177],re=[1,173],ae=[1,174],V=[1,178],w=[1,175],I=[1,176],ut=[77,116,119],P=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],r1=[10,106],Pe=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],Se=[1,248],xe=[1,246],_e=[1,250],Be=[1,244],ve=[1,245],Le=[1,247],Ve=[1,249],we=[1,251],ot=[1,269],a1=[8,9,11,106],Ce=[8,9,10,11,60,84,105,106,109,110,111,112],Dt={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:t(function(k,D,F,o,O,s,Ue){var i=s.length-1;switch(O){case 2:this.$=[];break;case 3:if(!Array.isArray(s[i])||s[i].length>0)s[i-1].push(s[i]);this.$=s[i-1];break;case 4:case 183:this.$=s[i];break;case 11:o.setDirection("TB"),this.$="TB";break;case 12:o.setDirection(s[i-1]),this.$=s[i-1];break;case 27:this.$=s[i-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=o.addSubGraph(s[i-6],s[i-1],s[i-4]);break;case 34:this.$=o.addSubGraph(s[i-3],s[i-1],s[i-3]);break;case 35:this.$=o.addSubGraph(void 0,s[i-1],void 0);break;case 37:this.$=s[i].trim(),o.setAccTitle(this.$);break;case 38:case 39:this.$=s[i].trim(),o.setAccDescription(this.$);break;case 43:this.$=s[i-1]+s[i];break;case 44:this.$=s[i];break;case 45:o.addVertex(s[i-1][s[i-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i]),o.addLink(s[i-3].stmt,s[i-1],s[i-2]),this.$={stmt:s[i-1],nodes:s[i-1].concat(s[i-3].nodes)};break;case 46:o.addLink(s[i-2].stmt,s[i],s[i-1]),this.$={stmt:s[i],nodes:s[i].concat(s[i-2].nodes)};break;case 47:o.addLink(s[i-3].stmt,s[i-1],s[i-2]),this.$={stmt:s[i-1],nodes:s[i-1].concat(s[i-3].nodes)};break;case 48:this.$={stmt:s[i-1],nodes:s[i-1]};break;case 49:o.addVertex(s[i-1][s[i-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i]),this.$={stmt:s[i-1],nodes:s[i-1],shapeData:s[i]};break;case 50:this.$={stmt:s[i],nodes:s[i]};break;case 51:this.$=[s[i]];break;case 52:o.addVertex(s[i-5][s[i-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i-4]),this.$=s[i-5].concat(s[i]);break;case 53:this.$=s[i-4].concat(s[i]);break;case 54:this.$=s[i];break;case 55:this.$=s[i-2],o.setClass(s[i-2],s[i]);break;case 56:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"square");break;case 57:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"doublecircle");break;case 58:this.$=s[i-5],o.addVertex(s[i-5],s[i-2],"circle");break;case 59:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"ellipse");break;case 60:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"stadium");break;case 61:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"subroutine");break;case 62:this.$=s[i-7],o.addVertex(s[i-7],s[i-1],"rect",void 0,void 0,void 0,Object.fromEntries([[s[i-5],s[i-3]]]));break;case 63:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"cylinder");break;case 64:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"round");break;case 65:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"diamond");break;case 66:this.$=s[i-5],o.addVertex(s[i-5],s[i-2],"hexagon");break;case 67:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"odd");break;case 68:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"trapezoid");break;case 69:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"inv_trapezoid");break;case 70:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"lean_right");break;case 71:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"lean_left");break;case 72:this.$=s[i],o.addVertex(s[i]);break;case 73:s[i-1].text=s[i],this.$=s[i-1];break;case 74:case 75:s[i-2].text=s[i-1],this.$=s[i-2];break;case 76:this.$=s[i];break;case 77:var X=o.destructLink(s[i],s[i-2]);this.$={type:X.type,stroke:X.stroke,length:X.length,text:s[i-1]};break;case 78:var X=o.destructLink(s[i],s[i-2]);this.$={type:X.type,stroke:X.stroke,length:X.length,text:s[i-1],id:s[i-3]};break;case 79:this.$={text:s[i],type:"text"};break;case 80:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 81:this.$={text:s[i],type:"string"};break;case 82:this.$={text:s[i],type:"markdown"};break;case 83:var X=o.destructLink(s[i]);this.$={type:X.type,stroke:X.stroke,length:X.length};break;case 84:var X=o.destructLink(s[i]);this.$={type:X.type,stroke:X.stroke,length:X.length,id:s[i-1]};break;case 85:this.$=s[i-1];break;case 86:this.$={text:s[i],type:"text"};break;case 87:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 88:this.$={text:s[i],type:"string"};break;case 89:case 104:this.$={text:s[i],type:"markdown"};break;case 101:this.$={text:s[i],type:"text"};break;case 102:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 103:this.$={text:s[i],type:"text"};break;case 105:this.$=s[i-4],o.addClass(s[i-2],s[i]);break;case 106:this.$=s[i-4],o.setClass(s[i-2],s[i]);break;case 107:case 115:this.$=s[i-1],o.setClickEvent(s[i-1],s[i]);break;case 108:case 116:this.$=s[i-3],o.setClickEvent(s[i-3],s[i-2]),o.setTooltip(s[i-3],s[i]);break;case 109:this.$=s[i-2],o.setClickEvent(s[i-2],s[i-1],s[i]);break;case 110:this.$=s[i-4],o.setClickEvent(s[i-4],s[i-3],s[i-2]),o.setTooltip(s[i-4],s[i]);break;case 111:this.$=s[i-2],o.setLink(s[i-2],s[i]);break;case 112:this.$=s[i-4],o.setLink(s[i-4],s[i-2]),o.setTooltip(s[i-4],s[i]);break;case 113:this.$=s[i-4],o.setLink(s[i-4],s[i-2],s[i]);break;case 114:this.$=s[i-6],o.setLink(s[i-6],s[i-4],s[i]),o.setTooltip(s[i-6],s[i-2]);break;case 117:this.$=s[i-1],o.setLink(s[i-1],s[i]);break;case 118:this.$=s[i-3],o.setLink(s[i-3],s[i-2]),o.setTooltip(s[i-3],s[i]);break;case 119:this.$=s[i-3],o.setLink(s[i-3],s[i-2],s[i]);break;case 120:this.$=s[i-5],o.setLink(s[i-5],s[i-4],s[i]),o.setTooltip(s[i-5],s[i-2]);break;case 121:this.$=s[i-4],o.addVertex(s[i-2],void 0,void 0,s[i]);break;case 122:this.$=s[i-4],o.updateLink([s[i-2]],s[i]);break;case 123:this.$=s[i-4],o.updateLink(s[i-2],s[i]);break;case 124:this.$=s[i-8],o.updateLinkInterpolate([s[i-6]],s[i-2]),o.updateLink([s[i-6]],s[i]);break;case 125:this.$=s[i-8],o.updateLinkInterpolate(s[i-6],s[i-2]),o.updateLink(s[i-6],s[i]);break;case 126:this.$=s[i-6],o.updateLinkInterpolate([s[i-4]],s[i]);break;case 127:this.$=s[i-6],o.updateLinkInterpolate(s[i-4],s[i]);break;case 128:case 130:this.$=[s[i]];break;case 129:case 131:s[i-2].push(s[i]),this.$=s[i-2];break;case 133:this.$=s[i-1]+s[i];break;case 181:this.$=s[i];break;case 182:this.$=s[i-1]+""+s[i];break;case 184:this.$=s[i-1]+""+s[i];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:r,10:n,12:u},{1:[3]},e(c,m,{5:6}),{4:7,9:r,10:n,12:u},{4:8,9:r,10:n,12:u},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:d,9:y,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,33:24,34:W,36:x,38:_,42:28,43:39,44:N,45:40,47:41,60:j,84:Ne,85:h,86:g,87:ne,88:fe,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,55],9:[1,56],10:Ge,15:54,18:57},e(G,[2,3]),e(G,[2,4]),e(G,[2,5]),e(G,[2,6]),e(G,[2,7]),e(G,[2,8]),{8:De,9:Te,11:Ee,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:De,9:Te,11:Ee,21:68},{8:De,9:Te,11:Ee,21:69},{8:De,9:Te,11:Ee,21:70},{8:De,9:Te,11:Ee,21:71},{8:De,9:Te,11:Ee,21:72},{8:De,9:Te,10:[1,73],11:Ee,21:74},e(G,[2,36]),{35:[1,75]},{37:[1,76]},e(G,[2,39]),e(je,[2,50],{18:77,39:78,10:Ge,40:vt}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:Ke,44:Ye,60:He,80:[1,87],89:Xe,95:[1,84],97:[1,85],101:86,105:Qe,106:Je,109:$e,111:et,114:tt,115:st,116:it,120:88},e(G,[2,185]),e(G,[2,186]),e(G,[2,187]),e(G,[2,188]),e(G,[2,189]),e(Me,[2,51]),e(Me,[2,54],{46:[1,100]}),e(ie,[2,72],{113:113,29:[1,101],44:N,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:j,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),e(be,[2,181]),e(be,[2,142]),e(be,[2,143]),e(be,[2,144]),e(be,[2,145]),e(be,[2,146]),e(be,[2,147]),e(be,[2,148]),e(be,[2,149]),e(be,[2,150]),e(be,[2,151]),e(be,[2,152]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,114]},e(Lt,[2,26],{18:115,10:Ge}),e(G,[2,27]),{42:116,43:39,44:N,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},e(G,[2,40]),e(G,[2,41]),e(G,[2,42]),e(at,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:Vt,81:wt,116:bt,119:kt},{75:[1,126],77:[1,127]},e(It,[2,83]),e(G,[2,28]),e(G,[2,29]),e(G,[2,30]),e(G,[2,31]),e(G,[2,32]),{10:Rt,12:Nt,14:Gt,27:Pt,28:128,32:Ot,44:Mt,60:Ut,75:Wt,80:[1,130],81:[1,131],83:141,84:zt,85:jt,86:Kt,87:Yt,88:Ht,89:qt,90:Xt,91:129,105:Qt,109:Jt,111:Zt,114:$t,115:e1,116:t1},e(Ct,m,{5:154}),e(G,[2,37]),e(G,[2,38]),e(je,[2,48],{44:s1}),e(je,[2,49],{18:156,10:Ge,40:i1}),e(Me,[2,44]),{44:N,47:158,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{102:[1,159],103:160,105:[1,161]},{44:N,47:162,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{44:N,47:163,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},e(z,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(z,[2,115],{120:168,10:[1,167],14:Ke,44:Ye,60:He,89:Xe,105:Qe,106:Je,109:$e,111:et,114:tt,115:st,116:it}),e(z,[2,117],{10:[1,169]}),e(ke,[2,183]),e(ke,[2,170]),e(ke,[2,171]),e(ke,[2,172]),e(ke,[2,173]),e(ke,[2,174]),e(ke,[2,175]),e(ke,[2,176]),e(ke,[2,177]),e(ke,[2,178]),e(ke,[2,179]),e(ke,[2,180]),{44:N,47:170,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{30:171,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{30:179,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{30:181,50:[1,180],67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{30:182,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{30:183,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{30:184,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{109:[1,185]},{30:186,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{30:187,65:[1,188],67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{30:189,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{30:190,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{30:191,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},e(be,[2,182]),e(c,[2,20]),e(Lt,[2,25]),e(je,[2,46],{39:192,18:193,10:Ge,40:vt}),e(at,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{77:[1,197],79:198,116:bt,119:kt},e(ut,[2,79]),e(ut,[2,81]),e(ut,[2,82]),e(ut,[2,168]),e(ut,[2,169]),{76:199,79:121,80:Vt,81:wt,116:bt,119:kt},e(It,[2,84]),{8:De,9:Te,10:Rt,11:Ee,12:Nt,14:Gt,21:201,27:Pt,29:[1,200],32:Ot,44:Mt,60:Ut,75:Wt,83:141,84:zt,85:jt,86:Kt,87:Yt,88:Ht,89:qt,90:Xt,91:202,105:Qt,109:Jt,111:Zt,114:$t,115:e1,116:t1},e(P,[2,101]),e(P,[2,103]),e(P,[2,104]),e(P,[2,157]),e(P,[2,158]),e(P,[2,159]),e(P,[2,160]),e(P,[2,161]),e(P,[2,162]),e(P,[2,163]),e(P,[2,164]),e(P,[2,165]),e(P,[2,166]),e(P,[2,167]),e(P,[2,90]),e(P,[2,91]),e(P,[2,92]),e(P,[2,93]),e(P,[2,94]),e(P,[2,95]),e(P,[2,96]),e(P,[2,97]),e(P,[2,98]),e(P,[2,99]),e(P,[2,100]),{6:11,7:12,8:d,9:y,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,203],33:24,34:W,36:x,38:_,42:28,43:39,44:N,45:40,47:41,60:j,84:Ne,85:h,86:g,87:ne,88:fe,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},{10:Ge,18:204},{44:[1,205]},e(Me,[2,43]),{10:[1,206],44:N,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{10:[1,207]},{10:[1,208],106:[1,209]},e(r1,[2,128]),{10:[1,210],44:N,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{10:[1,211],44:N,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{80:[1,212]},e(z,[2,109],{10:[1,213]}),e(z,[2,111],{10:[1,214]}),{80:[1,215]},e(ke,[2,184]),{80:[1,216],98:[1,217]},e(Me,[2,55],{113:113,44:N,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),{31:[1,218],67:v,82:219,116:V,117:w,118:I},e(Pe,[2,86]),e(Pe,[2,88]),e(Pe,[2,89]),e(Pe,[2,153]),e(Pe,[2,154]),e(Pe,[2,155]),e(Pe,[2,156]),{49:[1,220],67:v,82:219,116:V,117:w,118:I},{30:221,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{51:[1,222],67:v,82:219,116:V,117:w,118:I},{53:[1,223],67:v,82:219,116:V,117:w,118:I},{55:[1,224],67:v,82:219,116:V,117:w,118:I},{57:[1,225],67:v,82:219,116:V,117:w,118:I},{60:[1,226]},{64:[1,227],67:v,82:219,116:V,117:w,118:I},{66:[1,228],67:v,82:219,116:V,117:w,118:I},{30:229,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{31:[1,230],67:v,82:219,116:V,117:w,118:I},{67:v,69:[1,231],71:[1,232],82:219,116:V,117:w,118:I},{67:v,69:[1,234],71:[1,233],82:219,116:V,117:w,118:I},e(je,[2,45],{18:156,10:Ge,40:i1}),e(je,[2,47],{44:s1}),e(at,[2,75]),e(at,[2,74]),{62:[1,235],67:v,82:219,116:V,117:w,118:I},e(at,[2,77]),e(ut,[2,80]),{77:[1,236],79:198,116:bt,119:kt},{30:237,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},e(Ct,m,{5:238}),e(P,[2,102]),e(G,[2,35]),{43:239,44:N,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{10:Ge,18:240},{10:Se,60:xe,84:_e,92:241,105:Be,107:242,108:243,109:ve,110:Le,111:Ve,112:we},{10:Se,60:xe,84:_e,92:252,104:[1,253],105:Be,107:242,108:243,109:ve,110:Le,111:Ve,112:we},{10:Se,60:xe,84:_e,92:254,104:[1,255],105:Be,107:242,108:243,109:ve,110:Le,111:Ve,112:we},{105:[1,256]},{10:Se,60:xe,84:_e,92:257,105:Be,107:242,108:243,109:ve,110:Le,111:Ve,112:we},{44:N,47:258,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},e(z,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(z,[2,116]),e(z,[2,118],{10:[1,262]}),e(z,[2,119]),e(ie,[2,56]),e(Pe,[2,87]),e(ie,[2,57]),{51:[1,263],67:v,82:219,116:V,117:w,118:I},e(ie,[2,64]),e(ie,[2,59]),e(ie,[2,60]),e(ie,[2,61]),{109:[1,264]},e(ie,[2,63]),e(ie,[2,65]),{66:[1,265],67:v,82:219,116:V,117:w,118:I},e(ie,[2,67]),e(ie,[2,68]),e(ie,[2,70]),e(ie,[2,69]),e(ie,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(at,[2,78]),{31:[1,266],67:v,82:219,116:V,117:w,118:I},{6:11,7:12,8:d,9:y,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,267],33:24,34:W,36:x,38:_,42:28,43:39,44:N,45:40,47:41,60:j,84:Ne,85:h,86:g,87:ne,88:fe,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},e(Me,[2,53]),{43:268,44:N,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},e(z,[2,121],{106:ot}),e(a1,[2,130],{108:270,10:Se,60:xe,84:_e,105:Be,109:ve,110:Le,111:Ve,112:we}),e(Ce,[2,132]),e(Ce,[2,134]),e(Ce,[2,135]),e(Ce,[2,136]),e(Ce,[2,137]),e(Ce,[2,138]),e(Ce,[2,139]),e(Ce,[2,140]),e(Ce,[2,141]),e(z,[2,122],{106:ot}),{10:[1,271]},e(z,[2,123],{106:ot}),{10:[1,272]},e(r1,[2,129]),e(z,[2,105],{106:ot}),e(z,[2,106],{113:113,44:N,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),e(z,[2,110]),e(z,[2,112],{10:[1,273]}),e(z,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:De,9:Te,11:Ee,21:278},e(G,[2,34]),e(Me,[2,52]),{10:Se,60:xe,84:_e,105:Be,107:279,108:243,109:ve,110:Le,111:Ve,112:we},e(Ce,[2,133]),{14:Ke,44:Ye,60:He,89:Xe,101:280,105:Qe,106:Je,109:$e,111:et,114:tt,115:st,116:it,120:88},{14:Ke,44:Ye,60:He,89:Xe,101:281,105:Qe,106:Je,109:$e,111:et,114:tt,115:st,116:it,120:88},{98:[1,282]},e(z,[2,120]),e(ie,[2,58]),{30:283,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},e(ie,[2,66]),e(Ct,m,{5:284}),e(a1,[2,131],{108:270,10:Se,60:xe,84:_e,105:Be,109:ve,110:Le,111:Ve,112:we}),e(z,[2,126],{120:168,10:[1,285],14:Ke,44:Ye,60:He,89:Xe,105:Qe,106:Je,109:$e,111:et,114:tt,115:st,116:it}),e(z,[2,127],{120:168,10:[1,286],14:Ke,44:Ye,60:He,89:Xe,105:Qe,106:Je,109:$e,111:et,114:tt,115:st,116:it}),e(z,[2,114]),{31:[1,287],67:v,82:219,116:V,117:w,118:I},{6:11,7:12,8:d,9:y,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,288],33:24,34:W,36:x,38:_,42:28,43:39,44:N,45:40,47:41,60:j,84:Ne,85:h,86:g,87:ne,88:fe,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},{10:Se,60:xe,84:_e,92:289,105:Be,107:242,108:243,109:ve,110:Le,111:Ve,112:we},{10:Se,60:xe,84:_e,92:290,105:Be,107:242,108:243,109:ve,110:Le,111:Ve,112:we},e(ie,[2,62]),e(G,[2,33]),e(z,[2,124],{106:ot}),e(z,[2,125],{106:ot})],defaultActions:{},parseError:t(function(k,D){if(D.recoverable)this.trace(k);else{var F=Error(k);throw F.hash=D,F}},"parseError"),parse:t(function(k){var D=this,F=[0],o=[],O=[null],s=[],Ue=this.table,i="",X=0,n1=0,u1=0,f1=2,o1=1,b1=s.slice.call(arguments,1),se=Object.create(this.lexer),We={yy:{}};for(var Tt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Tt))We.yy[Tt]=this.yy[Tt];if(se.setInput(k,We.yy),We.yy.lexer=se,We.yy.parser=this,typeof se.yylloc>"u")se.yylloc={};var Et=se.yylloc;s.push(Et);var k1=se.options&&se.options.ranges;if(typeof We.yy.parseError==="function")this.parseError=We.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function g1(me){F.length=F.length-2*me,O.length=O.length-me,s.length=s.length-me}t(g1,"popStack");function l1(){var me=o.pop()||se.lex()||o1;if(typeof me!=="number"){if(me instanceof Array)o=me,me=o.pop();me=D.symbols_[me]||me}return me}t(l1,"lex");var oe,St,ze,Ae,F1,yt,lt={},At,Ie,c1,mt;while(!0){if(ze=F[F.length-1],this.defaultActions[ze])Ae=this.defaultActions[ze];else{if(oe===null||typeof oe>"u")oe=l1();Ae=Ue[ze]&&Ue[ze][oe]}if(typeof Ae>"u"||!Ae.length||!Ae[0]){var xt="";mt=[];for(At in Ue[ze])if(this.terminals_[At]&&At>f1)mt.push("'"+this.terminals_[At]+"'");if(se.showPosition)xt="Parse error on line "+(X+1)+`:
|
|
9
|
+
You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e==="object"&&"id"in e&&typeof e.id==="string"}addLink(e,r,n){let u=this.isLinkData(n)?n.id.replace("@",""):void 0;a.info("addLink",e,r,u);for(let c of e)for(let m of r){let d=c===e[e.length-1],y=m===r[0];if(d&&y)this.addSingleLink(c,m,n,u);else this.addSingleLink(c,m,n,void 0)}}updateLinkInterpolate(e,r){e.forEach((n)=>{if(n==="default")this.edges.defaultInterpolate=r;else this.edges[n].interpolate=r})}updateLink(e,r){e.forEach((n)=>{if(typeof n==="number"&&n>=this.edges.length)throw Error(`The index ${n} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);if(n==="default")this.edges.defaultStyle=r;else if(this.edges[n].style=r,(this.edges[n]?.style?.length??0)>0&&!this.edges[n]?.style?.some((u)=>u?.startsWith("fill")))this.edges[n]?.style?.push("fill:none")})}addClass(e,r){let n=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach((u)=>{let c=this.classes.get(u);if(c===void 0)c={id:u,styles:[],textStyles:[]},this.classes.set(u,c);if(n!==void 0&&n!==null)n.forEach((m)=>{if(/color/.exec(m)){let d=m.replace("fill","bgFill");c.textStyles.push(d)}c.styles.push(m)})})}setDirection(e){if(this.direction=e.trim(),/.*</.exec(this.direction))this.direction="RL";if(/.*\^/.exec(this.direction))this.direction="BT";if(/.*>/.exec(this.direction))this.direction="LR";if(/.*v/.exec(this.direction))this.direction="TB";if(this.direction==="TD")this.direction="TB"}setClass(e,r){for(let n of e.split(",")){let u=this.vertices.get(n);if(u)u.classes.push(r);let c=this.edges.find((d)=>d.id===n);if(c)c.classes.push(r);let m=this.subGraphLookup.get(n);if(m)m.classes.push(r)}}setTooltip(e,r){if(r===void 0)return;r=this.sanitizeText(r);for(let n of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(n):n,r)}setClickFun(e,r,n){if(l().securityLevel!=="loose")return;if(r===void 0)return;let u=[];if(typeof n==="string"){u=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let m=0;m<u.length;m++){let d=u[m].trim();if(d.startsWith('"')&&d.endsWith('"'))d=d.substr(1,d.length-2);u[m]=d}}if(u.length===0)u.push(e);let c=this.vertices.get(e);if(c)c.haveCallback=!0,this.funs.push(()=>{let m=this.lookUpDomId(e),d=document.querySelector(`[id="${m}"]`);if(d!==null)d.addEventListener("click",()=>{M.runFunc(r,...u)},!1)})}setLink(e,r,n){e.split(",").forEach((u)=>{let c=this.vertices.get(u);if(c!==void 0)c.link=M.formatUrl(r,this.config),c.linkTarget=n}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,r,n){e.split(",").forEach((u)=>{this.setClickFun(u,r,n)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach((r)=>{r(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let r=Ft();p(e).select("svg").selectAll("g.node").on("mouseover",(c)=>{let m=p(c.currentTarget),d=m.attr("title");if(d===null)return;let y=c.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(m.attr("title")).style("left",window.scrollX+y.left+(y.right-y.left)/2+"px").style("top",window.scrollY+y.bottom+"px"),r.html(Re.sanitize(d)),m.classed("hover",!0)}).on("mouseout",(c)=>{r.transition().duration(500).style("opacity",0),p(c.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=l(),C()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,r,n){let u=e.text.trim(),c=n.text;if(e===n&&/\s/.exec(n.text))u=void 0;let d=t((x)=>{let _={boolean:{},number:{},string:{}},N=[],j;return{nodeList:x.filter(function(h){let g=typeof h;if(h.stmt&&h.stmt==="dir")return j=h.value,!1;if(h.trim()==="")return!1;if(g in _)return _[g].hasOwnProperty(h)?!1:_[g][h]=!0;else return N.includes(h)?!1:N.push(h)}),dir:j}},"uniq")(r.flat()),{nodeList:y,dir:f}=d,U=l().flowchart??{};if(f=f??(U.inheritDir?this.getDirection()??l().direction??void 0:void 0),this.version==="gen-1")for(let x=0;x<y.length;x++)y[x]=this.lookUpDomId(y[x]);u=u??"subGraph"+this.subCount,c=c||"",c=this.sanitizeText(c),this.subCount=this.subCount+1;let B={id:u,nodes:y,title:c.trim(),classes:[],dir:f,labelType:this.sanitizeNodeLabelType(n?.type)};a.info("Adding",B.id,B.nodes,B.dir),B.nodes=this.makeUniq(B,this.subGraphs).nodes.filter((x)=>x!==u);let W=this.subGraphs.find((x)=>x.id===u);if(W)W.nodes.push(...B.nodes);else this.subGraphs.push(B);return this.subGraphLookup.set(u,W??B),u}getPosForId(e){for(let[r,n]of this.subGraphs.entries())if(n.id===e)return r;return-1}indexNodes2(e,r){let n=this.subGraphs[r].nodes;if(this.secCount=this.secCount+1,this.secCount>2000)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===e)return{result:!0,count:0};let u=0,c=1;while(u<n.length){let m=this.getPosForId(n[u]);if(m>=0){let d=this.indexNodes2(e,m);if(d.result)return{result:!0,count:c+d.count};else c=c+d.count}u=u+1}return{result:!1,count:c}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){if(this.secCount=-1,this.subGraphs.length>0)this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){if(this.firstGraphFlag)return this.firstGraphFlag=!1,!0;return!1}destructStartLink(e){let r=e.trim(),n="arrow_open";switch(r[0]){case"<":n="arrow_point",r=r.slice(1);break;case"x":n="arrow_cross",r=r.slice(1);break;case"o":n="arrow_circle",r=r.slice(1);break}let u="normal";if(r.includes("="))u="thick";if(r.includes("."))u="dotted";return{type:n,stroke:u}}countChar(e,r){let n=r.length,u=0;for(let c=0;c<n;++c)if(r[c]===e)++u;return u}destructEndLink(e){let r=e.trim(),n=r.slice(0,-1),u="arrow_open";switch(r.slice(-1)){case"x":if(u="arrow_cross",r.startsWith("x"))u="double_"+u,n=n.slice(1);break;case">":if(u="arrow_point",r.startsWith("<"))u="double_"+u,n=n.slice(1);break;case"o":if(u="arrow_circle",r.startsWith("o"))u="double_"+u,n=n.slice(1);break}let c="normal",m=n.length-1;if(n.startsWith("="))c="thick";if(n.startsWith("~"))c="invisible";let d=this.countChar(".",n);if(d)c="dotted",m=d;return{type:u,stroke:c,length:m}}destructLink(e,r){let n=this.destructEndLink(e),u;if(r){if(u=this.destructStartLink(r),u.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if(u.type==="arrow_open")u.type=n.type;else{if(u.type!==n.type)return{type:"INVALID",stroke:"INVALID"};u.type="double_"+u.type}if(u.type==="double_arrow")u.type="double_arrow_point";return u.length=n.length,u}return n}exists(e,r){for(let n of e)if(n.nodes.includes(r))return!0;return!1}makeUniq(e,r){let n=[];return e.nodes.forEach((u,c)=>{if(!this.exists(r,u))n.push(e.nodes[c])}),{nodes:n}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon){if(e.form==="circle")return"iconCircle";if(e.form==="square")return"iconSquare";if(e.form==="rounded")return"iconRounded";return"icon"}switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,r){return e.find((n)=>n.id===r)}destructEdgeType(e){let r="none",n="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":n=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=e.replace("double_",""),n=r;break}return{arrowTypeStart:r,arrowTypeEnd:n}}addNodeFromVertex(e,r,n,u,c,m){let d=n.get(e.id),y=u.get(e.id)??!1,f=this.findNode(r,e.id);if(f)f.cssStyles=e.styles,f.cssCompiledStyles=this.getCompiledStyles(e.classes),f.cssClasses=e.classes.join(" ");else{let U={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:d,padding:c.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:m,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};if(y)r.push({...U,isGroup:!0,shape:"rect"});else r.push({...U,isGroup:!1,shape:this.getTypeFromVertex(e),minWidth:c.flowchart?.minNodeWidth})}}getCompiledStyles(e){let r=[];for(let n of e){let u=this.classes.get(n);if(u?.styles)r=[...r,...u.styles??[]].map((c)=>c.trim());if(u?.textStyles)r=[...r,...u.textStyles??[]].map((c)=>c.trim())}return r}getData(){let e=l(),r=[],n=[],u=this.getSubGraphs(),c=new Map,m=new Map,d=new Map;for(let h of u)for(let g of h.nodes)if(this.subGraphLookup.has(g))d.set(g,h.id);let y=new Map,f=new Map;for(let h of u){let g=d.get(h.id);if(g!==void 0)f.set(g,[...f.get(g)??[],h.id])}let U=0,B=t((h)=>{y.set(h,U++);for(let g of f.get(h)??[])B(g)},"walk");for(let h of u)if(!d.has(h.id))B(h.id);let W=t((h)=>this.subGraphLookup.get(h)?.metadata?.view==="collapsed","isCollapsed"),x=t((h)=>{let g,ne=new Set,fe=h;while(fe!==void 0&&!ne.has(fe)){if(ne.add(fe),W(fe))g=fe;fe=d.get(fe)}return g},"outermostCollapsed"),_=new Set,N=new Map;for(let h of u){let g=x(h.id);if(g===void 0)continue;if(h.id!==g)_.add(h.id),N.set(h.id,g);for(let ne of h.nodes){if(ne===g)continue;_.add(ne),N.set(ne,g)}}for(let h=u.length-1;h>=0;h--){let g=u[h];if(_.has(g.id))continue;if(g.nodes.length>0)m.set(g.id,!0);for(let ne of g.nodes)c.set(ne,g.id)}for(let h=u.length-1;h>=0;h--){let g=u[h];if(_.has(g.id))continue;if(g.metadata?.view==="collapsed")r.push({id:g.id,label:g.title,labelStyle:"",labelType:g.labelType,parentId:c.get(g.id),padding:8,cssCompiledStyles:this.getCompiledStyles(g.classes),cssClasses:g.classes.join(" "),shape:"collapsedGroup",dir:g.dir,isGroup:!1,look:e.look,colorIndex:y.get(g.id)});else r.push({id:g.id,label:g.title,labelStyle:"",labelType:g.labelType,parentId:c.get(g.id),padding:8,cssCompiledStyles:this.getCompiledStyles(g.classes),cssClasses:g.classes.join(" "),shape:"rect",dir:g.dir,isGroup:!0,look:e.look,colorIndex:y.get(g.id),metadata:g.metadata})}this.getVertices().forEach((h)=>{if(_.has(h.id))return;this.addNodeFromVertex(h,r,c,m,e,e.look||"classic")});let Ne=this.getEdges();return Ne.forEach((h,g)=>{let{arrowTypeStart:ne,arrowTypeEnd:fe}=this.destructEdgeType(h.type),K=[...Ne.defaultStyle??[]],Y=N.get(h.start)??h.start,H=N.get(h.end)??h.end;if(Y===H&&(N.has(h.start)||N.has(h.end)))return;if(h.style)K.push(...h.style);let q={id:Fe(Y,H,{counter:g,prefix:"L"},h.id),isUserDefinedId:h.isUserDefinedId,start:Y,end:H,type:h.type??"normal",label:h.text,labelType:h.labelType,labelpos:"c",thickness:h.stroke,minlen:h.length,classes:h?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":ne,arrowTypeEnd:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":fe,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(h.classes),labelStyle:K,style:K,pattern:h.stroke,look:e.look,animate:h.animate,animation:h.animation,curve:h.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};n.push(q)}),{nodes:r,edges:n,other:{},config:e}}defaultConfig(){return An.flowchart}},C1=t(function(e,r){return r.db.getClasses()},"getClasses"),D1=t(async function(e,r,n,u){a.info("REF0:"),a.info("Drawing state diagram (v2)",r);let{securityLevel:c,flowchart:m,layout:d}=l();u.db.setDiagramId(r),a.debug("Before getData: ");let y=u.db.getData();a.debug("Data: ",y);let f=he(r,c),U=u.db.getDirection();y.type=u.type,y.layoutAlgorithm=ye(d),y.direction=U,y.nodeSpacing=m?.nodeSpacing||50,y.rankSpacing=m?.rankSpacing||50,y.markers=["point","circle","cross"],y.diagramId=r,a.debug("REF1:",y),await ge(y,f);let B=y.config.flowchart?.diagramPadding??8;M.insertTitle(f,"flowchartTitleText",m?.titleTopMargin||0,u.db.getDiagramTitle()),ue(f,B,"flowchart",m?.useMaxWidth||!1)},"draw"),T1={getClasses:C1,draw:D1},_t=function(){var e=t(function(Oe,k,D,F){for(D=D||{},F=Oe.length;F--;D[Oe[F]]=k);return D},"o"),r=[1,4],n=[1,3],u=[1,5],c=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],m=[2,2],d=[1,13],y=[1,14],f=[1,15],U=[1,16],B=[1,23],W=[1,25],x=[1,26],_=[1,27],N=[1,50],j=[1,49],Ne=[1,29],h=[1,30],g=[1,31],ne=[1,32],fe=[1,33],K=[1,45],Y=[1,47],H=[1,43],q=[1,48],Q=[1,44],J=[1,51],Z=[1,46],ee=[1,52],te=[1,53],ct=[1,34],ht=[1,35],dt=[1,36],pt=[1,37],ft=[1,38],Ge=[1,58],G=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],De=[1,62],Te=[1,61],Ee=[1,63],je=[8,9,11,75,77,78],vt=[1,79],Ke=[1,92],Ye=[1,97],He=[1,96],Xe=[1,93],Qe=[1,89],Je=[1,95],$e=[1,91],et=[1,98],tt=[1,94],st=[1,99],it=[1,90],Me=[8,9,10,11,40,75,77,78],ie=[8,9,10,11,40,46,75,77,78],be=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],Lt=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],at=[44,60,89,102,105,106,109,111,114,115,116],Vt=[1,122],wt=[1,123],bt=[1,125],kt=[1,124],It=[44,60,62,74,89,102,105,106,109,111,114,115,116],Rt=[1,134],Nt=[1,148],Gt=[1,149],Pt=[1,150],Ot=[1,151],Mt=[1,136],Ut=[1,138],Wt=[1,142],zt=[1,143],jt=[1,144],Kt=[1,145],Yt=[1,146],Ht=[1,147],qt=[1,152],Xt=[1,153],Qt=[1,132],Jt=[1,133],Zt=[1,140],$t=[1,135],e1=[1,139],t1=[1,137],Ct=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],s1=[1,155],i1=[1,157],z=[8,9,11],ke=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],v=[1,177],re=[1,173],ae=[1,174],V=[1,178],w=[1,175],I=[1,176],ut=[77,116,119],P=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],r1=[10,106],Pe=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],Se=[1,248],xe=[1,246],_e=[1,250],Be=[1,244],ve=[1,245],Le=[1,247],Ve=[1,249],we=[1,251],ot=[1,269],a1=[8,9,11,106],Ce=[8,9,10,11,60,84,105,106,109,110,111,112],Dt={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:t(function(k,D,F,o,O,s,Ue){var i=s.length-1;switch(O){case 2:this.$=[];break;case 3:if(!Array.isArray(s[i])||s[i].length>0)s[i-1].push(s[i]);this.$=s[i-1];break;case 4:case 183:this.$=s[i];break;case 11:o.setDirection("TB"),this.$="TB";break;case 12:o.setDirection(s[i-1]),this.$=s[i-1];break;case 27:this.$=s[i-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=o.addSubGraph(s[i-6],s[i-1],s[i-4]);break;case 34:this.$=o.addSubGraph(s[i-3],s[i-1],s[i-3]);break;case 35:this.$=o.addSubGraph(void 0,s[i-1],void 0);break;case 37:this.$=s[i].trim(),o.setAccTitle(this.$);break;case 38:case 39:this.$=s[i].trim(),o.setAccDescription(this.$);break;case 43:this.$=s[i-1]+s[i];break;case 44:this.$=s[i];break;case 45:o.addVertex(s[i-1][s[i-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i]),o.addLink(s[i-3].stmt,s[i-1],s[i-2]),this.$={stmt:s[i-1],nodes:s[i-1].concat(s[i-3].nodes)};break;case 46:o.addLink(s[i-2].stmt,s[i],s[i-1]),this.$={stmt:s[i],nodes:s[i].concat(s[i-2].nodes)};break;case 47:o.addLink(s[i-3].stmt,s[i-1],s[i-2]),this.$={stmt:s[i-1],nodes:s[i-1].concat(s[i-3].nodes)};break;case 48:this.$={stmt:s[i-1],nodes:s[i-1]};break;case 49:o.addVertex(s[i-1][s[i-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i]),this.$={stmt:s[i-1],nodes:s[i-1],shapeData:s[i]};break;case 50:this.$={stmt:s[i],nodes:s[i]};break;case 51:this.$=[s[i]];break;case 52:o.addVertex(s[i-5][s[i-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i-4]),this.$=s[i-5].concat(s[i]);break;case 53:this.$=s[i-4].concat(s[i]);break;case 54:this.$=s[i];break;case 55:this.$=s[i-2],o.setClass(s[i-2],s[i]);break;case 56:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"square");break;case 57:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"doublecircle");break;case 58:this.$=s[i-5],o.addVertex(s[i-5],s[i-2],"circle");break;case 59:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"ellipse");break;case 60:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"stadium");break;case 61:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"subroutine");break;case 62:this.$=s[i-7],o.addVertex(s[i-7],s[i-1],"rect",void 0,void 0,void 0,Object.fromEntries([[s[i-5],s[i-3]]]));break;case 63:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"cylinder");break;case 64:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"round");break;case 65:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"diamond");break;case 66:this.$=s[i-5],o.addVertex(s[i-5],s[i-2],"hexagon");break;case 67:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"odd");break;case 68:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"trapezoid");break;case 69:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"inv_trapezoid");break;case 70:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"lean_right");break;case 71:this.$=s[i-3],o.addVertex(s[i-3],s[i-1],"lean_left");break;case 72:this.$=s[i],o.addVertex(s[i]);break;case 73:s[i-1].text=s[i],this.$=s[i-1];break;case 74:case 75:s[i-2].text=s[i-1],this.$=s[i-2];break;case 76:this.$=s[i];break;case 77:var X=o.destructLink(s[i],s[i-2]);this.$={type:X.type,stroke:X.stroke,length:X.length,text:s[i-1]};break;case 78:var X=o.destructLink(s[i],s[i-2]);this.$={type:X.type,stroke:X.stroke,length:X.length,text:s[i-1],id:s[i-3]};break;case 79:this.$={text:s[i],type:"text"};break;case 80:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 81:this.$={text:s[i],type:"string"};break;case 82:this.$={text:s[i],type:"markdown"};break;case 83:var X=o.destructLink(s[i]);this.$={type:X.type,stroke:X.stroke,length:X.length};break;case 84:var X=o.destructLink(s[i]);this.$={type:X.type,stroke:X.stroke,length:X.length,id:s[i-1]};break;case 85:this.$=s[i-1];break;case 86:this.$={text:s[i],type:"text"};break;case 87:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 88:this.$={text:s[i],type:"string"};break;case 89:case 104:this.$={text:s[i],type:"markdown"};break;case 101:this.$={text:s[i],type:"text"};break;case 102:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 103:this.$={text:s[i],type:"text"};break;case 105:this.$=s[i-4],o.addClass(s[i-2],s[i]);break;case 106:this.$=s[i-4],o.setClass(s[i-2],s[i]);break;case 107:case 115:this.$=s[i-1],o.setClickEvent(s[i-1],s[i]);break;case 108:case 116:this.$=s[i-3],o.setClickEvent(s[i-3],s[i-2]),o.setTooltip(s[i-3],s[i]);break;case 109:this.$=s[i-2],o.setClickEvent(s[i-2],s[i-1],s[i]);break;case 110:this.$=s[i-4],o.setClickEvent(s[i-4],s[i-3],s[i-2]),o.setTooltip(s[i-4],s[i]);break;case 111:this.$=s[i-2],o.setLink(s[i-2],s[i]);break;case 112:this.$=s[i-4],o.setLink(s[i-4],s[i-2]),o.setTooltip(s[i-4],s[i]);break;case 113:this.$=s[i-4],o.setLink(s[i-4],s[i-2],s[i]);break;case 114:this.$=s[i-6],o.setLink(s[i-6],s[i-4],s[i]),o.setTooltip(s[i-6],s[i-2]);break;case 117:this.$=s[i-1],o.setLink(s[i-1],s[i]);break;case 118:this.$=s[i-3],o.setLink(s[i-3],s[i-2]),o.setTooltip(s[i-3],s[i]);break;case 119:this.$=s[i-3],o.setLink(s[i-3],s[i-2],s[i]);break;case 120:this.$=s[i-5],o.setLink(s[i-5],s[i-4],s[i]),o.setTooltip(s[i-5],s[i-2]);break;case 121:this.$=s[i-4],o.addVertex(s[i-2],void 0,void 0,s[i]);break;case 122:this.$=s[i-4],o.updateLink([s[i-2]],s[i]);break;case 123:this.$=s[i-4],o.updateLink(s[i-2],s[i]);break;case 124:this.$=s[i-8],o.updateLinkInterpolate([s[i-6]],s[i-2]),o.updateLink([s[i-6]],s[i]);break;case 125:this.$=s[i-8],o.updateLinkInterpolate(s[i-6],s[i-2]),o.updateLink(s[i-6],s[i]);break;case 126:this.$=s[i-6],o.updateLinkInterpolate([s[i-4]],s[i]);break;case 127:this.$=s[i-6],o.updateLinkInterpolate(s[i-4],s[i]);break;case 128:case 130:this.$=[s[i]];break;case 129:case 131:s[i-2].push(s[i]),this.$=s[i-2];break;case 133:this.$=s[i-1]+s[i];break;case 181:this.$=s[i];break;case 182:this.$=s[i-1]+""+s[i];break;case 184:this.$=s[i-1]+""+s[i];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:r,10:n,12:u},{1:[3]},e(c,m,{5:6}),{4:7,9:r,10:n,12:u},{4:8,9:r,10:n,12:u},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:d,9:y,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,33:24,34:W,36:x,38:_,42:28,43:39,44:N,45:40,47:41,60:j,84:Ne,85:h,86:g,87:ne,88:fe,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,55],9:[1,56],10:Ge,15:54,18:57},e(G,[2,3]),e(G,[2,4]),e(G,[2,5]),e(G,[2,6]),e(G,[2,7]),e(G,[2,8]),{8:De,9:Te,11:Ee,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:De,9:Te,11:Ee,21:68},{8:De,9:Te,11:Ee,21:69},{8:De,9:Te,11:Ee,21:70},{8:De,9:Te,11:Ee,21:71},{8:De,9:Te,11:Ee,21:72},{8:De,9:Te,10:[1,73],11:Ee,21:74},e(G,[2,36]),{35:[1,75]},{37:[1,76]},e(G,[2,39]),e(je,[2,50],{18:77,39:78,10:Ge,40:vt}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:Ke,44:Ye,60:He,80:[1,87],89:Xe,95:[1,84],97:[1,85],101:86,105:Qe,106:Je,109:$e,111:et,114:tt,115:st,116:it,120:88},e(G,[2,185]),e(G,[2,186]),e(G,[2,187]),e(G,[2,188]),e(G,[2,189]),e(Me,[2,51]),e(Me,[2,54],{46:[1,100]}),e(ie,[2,72],{113:113,29:[1,101],44:N,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:j,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),e(be,[2,181]),e(be,[2,142]),e(be,[2,143]),e(be,[2,144]),e(be,[2,145]),e(be,[2,146]),e(be,[2,147]),e(be,[2,148]),e(be,[2,149]),e(be,[2,150]),e(be,[2,151]),e(be,[2,152]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,114]},e(Lt,[2,26],{18:115,10:Ge}),e(G,[2,27]),{42:116,43:39,44:N,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},e(G,[2,40]),e(G,[2,41]),e(G,[2,42]),e(at,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:Vt,81:wt,116:bt,119:kt},{75:[1,126],77:[1,127]},e(It,[2,83]),e(G,[2,28]),e(G,[2,29]),e(G,[2,30]),e(G,[2,31]),e(G,[2,32]),{10:Rt,12:Nt,14:Gt,27:Pt,28:128,32:Ot,44:Mt,60:Ut,75:Wt,80:[1,130],81:[1,131],83:141,84:zt,85:jt,86:Kt,87:Yt,88:Ht,89:qt,90:Xt,91:129,105:Qt,109:Jt,111:Zt,114:$t,115:e1,116:t1},e(Ct,m,{5:154}),e(G,[2,37]),e(G,[2,38]),e(je,[2,48],{44:s1}),e(je,[2,49],{18:156,10:Ge,40:i1}),e(Me,[2,44]),{44:N,47:158,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{102:[1,159],103:160,105:[1,161]},{44:N,47:162,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{44:N,47:163,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},e(z,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(z,[2,115],{120:168,10:[1,167],14:Ke,44:Ye,60:He,89:Xe,105:Qe,106:Je,109:$e,111:et,114:tt,115:st,116:it}),e(z,[2,117],{10:[1,169]}),e(ke,[2,183]),e(ke,[2,170]),e(ke,[2,171]),e(ke,[2,172]),e(ke,[2,173]),e(ke,[2,174]),e(ke,[2,175]),e(ke,[2,176]),e(ke,[2,177]),e(ke,[2,178]),e(ke,[2,179]),e(ke,[2,180]),{44:N,47:170,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{30:171,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{30:179,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{30:181,50:[1,180],67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{30:182,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{30:183,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{30:184,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{109:[1,185]},{30:186,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{30:187,65:[1,188],67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{30:189,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{30:190,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{30:191,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},e(be,[2,182]),e(c,[2,20]),e(Lt,[2,25]),e(je,[2,46],{39:192,18:193,10:Ge,40:vt}),e(at,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{77:[1,197],79:198,116:bt,119:kt},e(ut,[2,79]),e(ut,[2,81]),e(ut,[2,82]),e(ut,[2,168]),e(ut,[2,169]),{76:199,79:121,80:Vt,81:wt,116:bt,119:kt},e(It,[2,84]),{8:De,9:Te,10:Rt,11:Ee,12:Nt,14:Gt,21:201,27:Pt,29:[1,200],32:Ot,44:Mt,60:Ut,75:Wt,83:141,84:zt,85:jt,86:Kt,87:Yt,88:Ht,89:qt,90:Xt,91:202,105:Qt,109:Jt,111:Zt,114:$t,115:e1,116:t1},e(P,[2,101]),e(P,[2,103]),e(P,[2,104]),e(P,[2,157]),e(P,[2,158]),e(P,[2,159]),e(P,[2,160]),e(P,[2,161]),e(P,[2,162]),e(P,[2,163]),e(P,[2,164]),e(P,[2,165]),e(P,[2,166]),e(P,[2,167]),e(P,[2,90]),e(P,[2,91]),e(P,[2,92]),e(P,[2,93]),e(P,[2,94]),e(P,[2,95]),e(P,[2,96]),e(P,[2,97]),e(P,[2,98]),e(P,[2,99]),e(P,[2,100]),{6:11,7:12,8:d,9:y,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,203],33:24,34:W,36:x,38:_,42:28,43:39,44:N,45:40,47:41,60:j,84:Ne,85:h,86:g,87:ne,88:fe,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},{10:Ge,18:204},{44:[1,205]},e(Me,[2,43]),{10:[1,206],44:N,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{10:[1,207]},{10:[1,208],106:[1,209]},e(r1,[2,128]),{10:[1,210],44:N,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{10:[1,211],44:N,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{80:[1,212]},e(z,[2,109],{10:[1,213]}),e(z,[2,111],{10:[1,214]}),{80:[1,215]},e(ke,[2,184]),{80:[1,216],98:[1,217]},e(Me,[2,55],{113:113,44:N,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),{31:[1,218],67:v,82:219,116:V,117:w,118:I},e(Pe,[2,86]),e(Pe,[2,88]),e(Pe,[2,89]),e(Pe,[2,153]),e(Pe,[2,154]),e(Pe,[2,155]),e(Pe,[2,156]),{49:[1,220],67:v,82:219,116:V,117:w,118:I},{30:221,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{51:[1,222],67:v,82:219,116:V,117:w,118:I},{53:[1,223],67:v,82:219,116:V,117:w,118:I},{55:[1,224],67:v,82:219,116:V,117:w,118:I},{57:[1,225],67:v,82:219,116:V,117:w,118:I},{60:[1,226]},{64:[1,227],67:v,82:219,116:V,117:w,118:I},{66:[1,228],67:v,82:219,116:V,117:w,118:I},{30:229,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},{31:[1,230],67:v,82:219,116:V,117:w,118:I},{67:v,69:[1,231],71:[1,232],82:219,116:V,117:w,118:I},{67:v,69:[1,234],71:[1,233],82:219,116:V,117:w,118:I},e(je,[2,45],{18:156,10:Ge,40:i1}),e(je,[2,47],{44:s1}),e(at,[2,75]),e(at,[2,74]),{62:[1,235],67:v,82:219,116:V,117:w,118:I},e(at,[2,77]),e(ut,[2,80]),{77:[1,236],79:198,116:bt,119:kt},{30:237,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},e(Ct,m,{5:238}),e(P,[2,102]),e(G,[2,35]),{43:239,44:N,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{10:Ge,18:240},{10:Se,60:xe,84:_e,92:241,105:Be,107:242,108:243,109:ve,110:Le,111:Ve,112:we},{10:Se,60:xe,84:_e,92:252,104:[1,253],105:Be,107:242,108:243,109:ve,110:Le,111:Ve,112:we},{10:Se,60:xe,84:_e,92:254,104:[1,255],105:Be,107:242,108:243,109:ve,110:Le,111:Ve,112:we},{105:[1,256]},{10:Se,60:xe,84:_e,92:257,105:Be,107:242,108:243,109:ve,110:Le,111:Ve,112:we},{44:N,47:258,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},e(z,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(z,[2,116]),e(z,[2,118],{10:[1,262]}),e(z,[2,119]),e(ie,[2,56]),e(Pe,[2,87]),e(ie,[2,57]),{51:[1,263],67:v,82:219,116:V,117:w,118:I},e(ie,[2,64]),e(ie,[2,59]),e(ie,[2,60]),e(ie,[2,61]),{109:[1,264]},e(ie,[2,63]),e(ie,[2,65]),{66:[1,265],67:v,82:219,116:V,117:w,118:I},e(ie,[2,67]),e(ie,[2,68]),e(ie,[2,70]),e(ie,[2,69]),e(ie,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(at,[2,78]),{31:[1,266],67:v,82:219,116:V,117:w,118:I},{6:11,7:12,8:d,9:y,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,267],33:24,34:W,36:x,38:_,42:28,43:39,44:N,45:40,47:41,60:j,84:Ne,85:h,86:g,87:ne,88:fe,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},e(Me,[2,53]),{43:268,44:N,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},e(z,[2,121],{106:ot}),e(a1,[2,130],{108:270,10:Se,60:xe,84:_e,105:Be,109:ve,110:Le,111:Ve,112:we}),e(Ce,[2,132]),e(Ce,[2,134]),e(Ce,[2,135]),e(Ce,[2,136]),e(Ce,[2,137]),e(Ce,[2,138]),e(Ce,[2,139]),e(Ce,[2,140]),e(Ce,[2,141]),e(z,[2,122],{106:ot}),{10:[1,271]},e(z,[2,123],{106:ot}),{10:[1,272]},e(r1,[2,129]),e(z,[2,105],{106:ot}),e(z,[2,106],{113:113,44:N,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),e(z,[2,110]),e(z,[2,112],{10:[1,273]}),e(z,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:De,9:Te,11:Ee,21:278},e(G,[2,34]),e(Me,[2,52]),{10:Se,60:xe,84:_e,105:Be,107:279,108:243,109:ve,110:Le,111:Ve,112:we},e(Ce,[2,133]),{14:Ke,44:Ye,60:He,89:Xe,101:280,105:Qe,106:Je,109:$e,111:et,114:tt,115:st,116:it,120:88},{14:Ke,44:Ye,60:He,89:Xe,101:281,105:Qe,106:Je,109:$e,111:et,114:tt,115:st,116:it,120:88},{98:[1,282]},e(z,[2,120]),e(ie,[2,58]),{30:283,67:v,80:re,81:ae,82:172,116:V,117:w,118:I},e(ie,[2,66]),e(Ct,m,{5:284}),e(a1,[2,131],{108:270,10:Se,60:xe,84:_e,105:Be,109:ve,110:Le,111:Ve,112:we}),e(z,[2,126],{120:168,10:[1,285],14:Ke,44:Ye,60:He,89:Xe,105:Qe,106:Je,109:$e,111:et,114:tt,115:st,116:it}),e(z,[2,127],{120:168,10:[1,286],14:Ke,44:Ye,60:He,89:Xe,105:Qe,106:Je,109:$e,111:et,114:tt,115:st,116:it}),e(z,[2,114]),{31:[1,287],67:v,82:219,116:V,117:w,118:I},{6:11,7:12,8:d,9:y,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:B,32:[1,288],33:24,34:W,36:x,38:_,42:28,43:39,44:N,45:40,47:41,60:j,84:Ne,85:h,86:g,87:ne,88:fe,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:ct,122:ht,123:dt,124:pt,125:ft},{10:Se,60:xe,84:_e,92:289,105:Be,107:242,108:243,109:ve,110:Le,111:Ve,112:we},{10:Se,60:xe,84:_e,92:290,105:Be,107:242,108:243,109:ve,110:Le,111:Ve,112:we},e(ie,[2,62]),e(G,[2,33]),e(z,[2,124],{106:ot}),e(z,[2,125],{106:ot})],defaultActions:{},parseError:t(function(k,D){if(D.recoverable)this.trace(k);else{var F=Error(k);throw F.hash=D,F}},"parseError"),parse:t(function(k){var D=this,F=[0],o=[],O=[null],s=[],Ue=this.table,i="",X=0,n1=0,u1=0,f1=2,o1=1,b1=s.slice.call(arguments,1),se=Object.create(this.lexer),We={yy:{}};for(var Tt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Tt))We.yy[Tt]=this.yy[Tt];if(se.setInput(k,We.yy),We.yy.lexer=se,We.yy.parser=this,typeof se.yylloc>"u")se.yylloc={};var Et=se.yylloc;s.push(Et);var k1=se.options&&se.options.ranges;if(typeof We.yy.parseError==="function")this.parseError=We.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function g1(me){F.length=F.length-2*me,O.length=O.length-me,s.length=s.length-me}t(g1,"popStack");function l1(){var me=o.pop()||se.lex()||o1;if(typeof me!=="number"){if(me instanceof Array)o=me,me=o.pop();me=D.symbols_[me]||me}return me}t(l1,"lex");var oe,St,ze,Ae,F1,yt,lt={},At,Ie,c1,mt;while(!0){if(ze=F[F.length-1],this.defaultActions[ze])Ae=this.defaultActions[ze];else{if(oe===null||typeof oe>"u")oe=l1();Ae=Ue[ze]&&Ue[ze][oe]}if(typeof Ae>"u"||!Ae.length||!Ae[0]){var xt="";mt=[];for(At in Ue[ze])if(this.terminals_[At]&&At>f1)mt.push("'"+this.terminals_[At]+"'");if(se.showPosition)xt="Parse error on line "+(X+1)+`:
|
|
10
10
|
`+se.showPosition()+`
|
|
11
11
|
Expecting `+mt.join(", ")+", got '"+(this.terminals_[oe]||oe)+"'";else xt="Parse error on line "+(X+1)+": Unexpected "+(oe==o1?"end of input":"'"+(this.terminals_[oe]||oe)+"'");this.parseError(xt,{text:se.match,token:this.terminals_[oe]||oe,line:se.yylineno,loc:Et,expected:mt})}if(Ae[0]instanceof Array&&Ae.length>1)throw Error("Parse Error: multiple actions possible at state: "+ze+", token: "+oe);switch(Ae[0]){case 1:if(F.push(oe),O.push(se.yytext),s.push(se.yylloc),F.push(Ae[1]),oe=null,!St){if(n1=se.yyleng,i=se.yytext,X=se.yylineno,Et=se.yylloc,u1>0)u1--}else oe=St,St=null;break;case 2:if(Ie=this.productions_[Ae[1]][1],lt.$=O[O.length-Ie],lt._$={first_line:s[s.length-(Ie||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(Ie||1)].first_column,last_column:s[s.length-1].last_column},k1)lt._$.range=[s[s.length-(Ie||1)].range[0],s[s.length-1].range[1]];if(yt=this.performAction.apply(lt,[i,n1,X,We.yy,Ae[1],O,s].concat(b1)),typeof yt<"u")return yt;if(Ie)F=F.slice(0,-1*Ie*2),O=O.slice(0,-1*Ie),s=s.slice(0,-1*Ie);F.push(this.productions_[Ae[1]][0]),O.push(lt.$),s.push(lt._$),c1=Ue[F[F.length-2]][F[F.length-1]],F.push(c1);break;case 3:return!0}}return!0},"parse")},p1=function(){var Oe={EOF:1,parseError:t(function(D,F){if(this.yy.parser)this.yy.parser.parseError(D,F);else throw Error(D)},"parseError"),setInput:t(function(k,D){if(this.yy=D||this.yy||{},this._input=k,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var k=this._input[0];this.yytext+=k,this.yyleng++,this.offset++,this.match+=k,this.matched+=k;var D=k.match(/(?:\r\n?|\n).*/g);if(D)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),k},"input"),unput:t(function(k){var D=k.length,F=k.split(/(?:\r\n?|\n)/g);this._input=k+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-D),this.offset-=D;var o=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),F.length-1)this.yylineno-=F.length-1;var O=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:F?(F.length===o.length?this.yylloc.first_column:0)+o[o.length-F.length].length-F[0].length:this.yylloc.first_column-D},this.options.ranges)this.yylloc.range=[O[0],O[0]+this.yyleng-D];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
12
12
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(k){this.unput(this.match.slice(k))},"less"),pastInput:t(function(){var k=this.matched.substr(0,this.matched.length-this.match.length);return(k.length>20?"...":"")+k.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var k=this.match;if(k.length<20)k+=this._input.substr(0,20-k.length);return(k.substr(0,20)+(k.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var k=this.pastInput(),D=Array(k.length+1).join("-");return k+this.upcomingInput()+`
|
|
@@ -210,5 +210,5 @@ ${m?`
|
|
|
210
210
|
text-align: center;
|
|
211
211
|
}
|
|
212
212
|
${qe()}
|
|
213
|
-
`,"getStyles")
|
|
214
|
-
export{
|
|
213
|
+
`,"getStyles"),$i=x1,Bi=t(({styles:e=$i}={})=>({parser:E1,get db(){return new m1},renderer:T1,styles:e,init:t((r)=>{if(!r.flowchart)r.flowchart={};r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,ln({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),$o=Bi();
|
|
214
|
+
export{$i,Bi,$o};
|