@bkm016/basalt 0.1.3 → 0.1.5
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 +53 -5
- package/{chunk-y648fzx0.js → chunk-0039s4jt.js} +3 -3
- package/{chunk-m40gxwq4.js → chunk-00gwse5r.js} +3 -3
- package/{chunk-t6zs4kw0.js → chunk-0fwdxd45.js} +2 -2
- package/{chunk-6hssbcgj.js → chunk-0j0qggej.js} +1 -1
- package/chunk-0n99m9m4.js +2 -0
- package/{chunk-d8gtbw9g.js → chunk-0stvywr8.js} +1 -1
- package/{chunk-ztsjgssj.js → chunk-1xa7d5mh.js} +1 -1
- package/chunk-2nb3d92s.js +2 -0
- package/chunk-2nkfxhef.js +3868 -0
- package/chunk-2pa1z37c.js +2 -0
- package/{chunk-fw2bpqmw.js → chunk-2qcpq99g.js} +1 -1
- package/{chunk-981f9dw8.js → chunk-36cqq0ga.js} +6 -6
- package/{chunk-3cjsd292.js → chunk-3c330qna.js} +2 -2
- package/chunk-3k627vf2.js +3 -0
- package/{chunk-r7fpkb49.js → chunk-3k7ejpkc.js} +1 -1
- package/chunk-4g5f43ea.js +3 -0
- package/{chunk-fjtvjrkg.js → chunk-539ekagy.js} +4 -4
- package/{chunk-97rzj7f6.js → chunk-5v4g21rw.js} +1 -1
- package/{chunk-aefadsy6.js → chunk-6dsq0fns.js} +2 -2
- package/{chunk-pbcy6zdt.js → chunk-7as47pcw.js} +1 -1
- package/{chunk-g2t6t8fk.js → chunk-7jezts2n.js} +2 -2
- package/{chunk-8tjad3r0.js → chunk-7qq99360.js} +6 -6
- package/{chunk-gp7y0fja.js → chunk-7tgqhveh.js} +15 -15
- package/{chunk-mvfsxdx6.js → chunk-7w0mefgk.js} +10 -10
- package/{chunk-y58ygzn9.js → chunk-818nd6s1.js} +3 -3
- package/{chunk-vv7fp27r.js → chunk-8mezk0cb.js} +2 -2
- package/{chunk-rtzqqngy.js → chunk-8xb636vr.js} +5 -5
- package/{chunk-2esbgxps.js → chunk-980drajf.js} +15 -15
- package/{chunk-c7x1zq39.js → chunk-9z7sdh5e.js} +3 -3
- package/{chunk-10xzzn07.js → chunk-a4b75ekk.js} +2 -2
- package/{chunk-5j1krv9v.js → chunk-ar3dbfp9.js} +1 -1
- package/{chunk-vk1gxk1t.js → chunk-aw65h276.js} +1 -1
- package/{chunk-75m78j7x.js → chunk-b9fqretv.js} +2 -2
- package/{chunk-y0m980k3.js → chunk-bgkegf0k.js} +22 -22
- package/{chunk-0y7ne3d0.js → chunk-bwawt15q.js} +2 -2
- package/{chunk-pxsrqrd0.js → chunk-c4qr1f41.js} +2 -2
- package/chunk-dddsrff6.js +478 -0
- package/{chunk-xfvvh1s5.js → chunk-e63c1186.js} +1 -1
- package/{chunk-8296hw9m.js → chunk-ebzkckyw.js} +2 -2
- package/chunk-eegztdzb.js +2 -0
- package/{chunk-hwr56pfj.js → chunk-gw05p4g3.js} +1 -1
- package/{chunk-k23t7vhs.js → chunk-h1rypb99.js} +5 -5
- package/{chunk-nbb9trwz.js → chunk-hq5ke1yp.js} +2 -2
- package/{chunk-jwdb0ccj.js → chunk-jvwg4rn1.js} +3 -3
- package/{chunk-fm0k0qtz.js → chunk-jyrwk08p.js} +2 -2
- package/chunk-kns4kv7b.js +3 -0
- package/{chunk-8d46jtbj.js → chunk-mat08ab1.js} +2 -2
- package/{chunk-bannb9xm.js → chunk-mkp28k1x.js} +2 -2
- package/{chunk-d2j735sd.js → chunk-npez1492.js} +2 -2
- package/{chunk-shadcb9z.js → chunk-nx3jnbv8.js} +2 -2
- package/{chunk-ykens1hy.js → chunk-nxkmd29x.js} +1 -1
- package/{chunk-y7nma9rk.js → chunk-pjr91g6k.js} +2 -2
- package/{chunk-m8vkwdgr.js → chunk-r0jc8e7t.js} +4 -4
- package/chunk-rxj6tct8.js +2 -0
- package/{chunk-362g64pd.js → chunk-sqaam5ak.js} +1 -1
- package/{chunk-gzxnene8.js → chunk-srjgvdvs.js} +12 -12
- package/{chunk-r9aatvwm.js → chunk-stj493dn.js} +2 -2
- package/{chunk-k6w6y71k.js → chunk-t7sc0wwc.js} +2 -2
- package/{chunk-27gntzs5.js → chunk-v4k3qmdm.js} +2 -2
- package/{chunk-x1xss1d7.js → chunk-vt1anydc.js} +4 -4
- package/chunk-wd3z74av.js +2 -0
- package/{chunk-z55bmysw.js → chunk-wfyrfvfn.js} +1 -1
- package/{chunk-v9fea96h.js → chunk-wnzvnskb.js} +2 -2
- package/{chunk-cjc90f84.js → chunk-x89em726.js} +3 -3
- package/{chunk-1qpces5a.js → chunk-xtq1xpq0.js} +2 -2
- package/chunk-yna8bwqc.js +2 -0
- package/{chunk-k506w58v.js → chunk-zn0g0859.js} +2 -2
- package/{chunk-qe0teyn1.js → chunk-zrkh5dw7.js} +1 -1
- package/chunk-zzwjt7fp.js +2 -0
- package/compiled.js +12 -12
- package/package.json +1 -1
- package/ui-test-worker.js +20 -20
- package/web/chunk-01hcjafh.js +2 -0
- package/web/{chunk-n8sky2q6.js → chunk-07agqp8h.js} +1 -1
- package/web/{chunk-tx8240k4.js → chunk-0k9aec1s.js} +20 -20
- package/web/{chunk-74j07k8k.js → chunk-0p1nmj5n.js} +2 -2
- package/web/chunk-0qr891eq.js +70 -0
- package/web/{chunk-ts7zrf5b.js → chunk-0whceqes.js} +2 -2
- package/web/chunk-0ytga215.js +1 -0
- package/web/{chunk-h288yd5w.js → chunk-12z7d0hp.js} +3 -3
- package/web/chunk-14bad871.js +2 -0
- package/web/chunk-1amzv4ha.js +1 -0
- package/web/chunk-1cfh0e2e.js +324 -0
- package/web/chunk-1pasbxwh.js +89 -0
- package/web/{chunk-j0bwwc1g.js → chunk-1s2hp6h1.js} +1 -1
- package/web/chunk-26bwh1sb.js +169 -0
- package/web/{chunk-b0a8nbj0.js → chunk-2nht58dc.js} +5 -5
- package/web/chunk-2y0rc1fe.js +1 -0
- package/web/chunk-3hkgdw6f.js +36 -0
- package/web/chunk-4a4j030b.js +1 -0
- package/web/{chunk-4fzj0azw.js → chunk-4m3zdd41.js} +6 -6
- package/web/chunk-4w298aqs.js +1 -0
- package/web/{chunk-2hd1pe9w.js → chunk-56krfj3b.js} +7 -7
- package/web/{chunk-ds7srg4p.js → chunk-5nda24gv.js} +1 -1
- package/web/{chunk-5hmfk69r.js → chunk-5shygfgb.js} +19 -19
- package/web/chunk-65nwc4cf.js +1 -0
- package/web/chunk-6bwgdvf6.js +1 -0
- package/web/chunk-6enn8p66.js +1 -0
- package/web/chunk-6stt9d18.js +1 -0
- package/web/{chunk-4gavbw65.js → chunk-7a3c137d.js} +1 -1
- package/web/chunk-7e47b1sn.js +1 -0
- package/web/chunk-7pypx5h8.js +2 -0
- package/web/chunk-7znyd1mj.js +39 -0
- package/web/{chunk-0z0jycs8.js → chunk-892nf39p.js} +7 -7
- package/web/chunk-8r0s8tx7.js +1 -0
- package/web/chunk-9dy7z3ej.js +2 -0
- package/web/chunk-9mq2cdtq.js +1 -0
- package/web/chunk-9w5tf22s.js +1 -0
- package/web/{chunk-es28k2t7.js → chunk-9xgspn75.js} +2 -2
- package/web/{chunk-0xc2c540.js → chunk-abhad4zj.js} +56 -56
- package/web/chunk-advfpyb9.js +140 -0
- package/web/chunk-affear07.js +3 -0
- package/web/chunk-ahztazsg.js +1 -0
- package/web/chunk-aqt7kc3s.js +106 -0
- package/web/chunk-b5hah4mf.js +1 -0
- package/web/chunk-b8tfetd8.js +1 -0
- package/web/{chunk-7yc083xj.js → chunk-bnb9xhgw.js} +15 -15
- package/web/{chunk-n1dmrz44.js → chunk-c01176kn.js} +2 -2
- package/web/chunk-c3nn0vvc.js +1 -0
- package/web/chunk-c53xmf48.js +30 -0
- package/web/chunk-ckgpy4r4.js +1 -0
- package/web/chunk-crzseqbx.js +24 -0
- package/web/chunk-d22wq71s.js +1 -0
- package/web/{chunk-97b62pvb.js → chunk-d60dpf69.js} +19 -19
- package/web/{chunk-sn9ecfvy.js → chunk-d6ddkh6e.js} +1 -1
- package/web/{chunk-cg3jterp.js → chunk-d9wdsjkk.js} +2 -2
- package/web/{chunk-ttg6tbwx.js → chunk-da7m1kva.js} +2 -2
- package/web/chunk-dbnrfxt1.js +8 -0
- package/web/chunk-ddxf8e84.js +1 -0
- package/web/chunk-dzg1pv80.js +200 -0
- package/web/{chunk-xnq41dgs.js → chunk-e8h45nyr.js} +1 -1
- package/web/chunk-ej9vb61c.js +1 -0
- package/web/chunk-f9k3xrwb.js +2 -0
- package/web/{chunk-7xk0ntav.js → chunk-fjag6yg8.js} +2 -2
- package/web/chunk-fnnrrzqa.js +78 -0
- package/web/{chunk-n90cqdvg.js → chunk-fv6vm14n.js} +2 -2
- package/web/{chunk-axkyft9f.js → chunk-g5jxwkdh.js} +1 -1
- package/web/{chunk-ep37qp12.js → chunk-g8kkc6vz.js} +1 -1
- package/web/chunk-g9sqbafw.js +2 -0
- package/web/{chunk-g46f421r.js → chunk-gcv91974.js} +4 -4
- package/web/{chunk-7qxhk1kz.js → chunk-gxqaa4sv.js} +7 -7
- package/web/chunk-gxsb5tx3.js +1 -0
- package/web/{chunk-54thej0t.js → chunk-gyp6v7jd.js} +2 -2
- package/web/chunk-h0c42zy3.js +1 -0
- package/web/chunk-h2ag4kvz.js +2 -0
- package/web/{chunk-eqsd8zta.js → chunk-h6gh63xj.js} +2 -2
- package/web/{chunk-6m69hczt.js → chunk-h6k1x096.js} +2 -2
- package/web/{chunk-24mfx6w1.js → chunk-j1bw5v1g.js} +2 -2
- package/web/chunk-j34q5jn6.js +1 -0
- package/web/{chunk-0pbjgdgp.js → chunk-ja7w629n.js} +2 -2
- package/web/{chunk-zbj1trar.js → chunk-jam45rqg.js} +2 -2
- package/web/{chunk-23c1df7e.js → chunk-jcdw85mv.js} +1 -1
- package/web/chunk-jfvxxp5c.js +1 -0
- package/web/chunk-jg6fmz2d.js +1 -0
- package/web/{chunk-90xqeczk.js → chunk-k67v6dyg.js} +40 -40
- package/web/chunk-ka7c5rhx.js +99 -0
- package/web/{chunk-acybsx44.js → chunk-kza0t0gj.js} +1 -1
- package/web/{chunk-7520nrbb.js → chunk-m8knte9z.js} +1 -1
- package/web/{chunk-v5cnt7c8.js → chunk-mnzramhc.js} +1 -1
- package/web/{chunk-7v5rxabp.js → chunk-mpfgr049.js} +1 -1
- package/web/chunk-mz1dabxh.js +1 -0
- package/web/chunk-mz9b5bsa.js +1 -0
- package/web/chunk-p53n0hwr.js +1 -0
- package/web/chunk-paywgcf7.js +40 -0
- package/web/chunk-pfcnr9tw.js +1 -0
- package/web/chunk-pyg1mr80.js +303 -0
- package/web/chunk-q7xkscc5.js +1 -0
- package/web/{chunk-xzp7jf7e.js → chunk-qcge7d6s.js} +2 -2
- package/web/chunk-qmbgb79a.js +1139 -0
- package/web/{chunk-5b2nw6j1.js → chunk-qq5gh5zr.js} +1 -1
- package/web/chunk-qrdh9j62.js +1 -0
- package/web/{chunk-w7snhcyg.js → chunk-s24qs1bn.js} +9 -9
- package/web/chunk-sd22cnjy.js +1 -0
- package/web/{chunk-ydtrc1ay.js → chunk-sd3cdqcm.js} +2 -2
- package/web/{chunk-rykfak98.js → chunk-sf101c23.js} +2 -2
- package/web/{chunk-p9hsd3rn.js → chunk-sfq6cw45.js} +2 -2
- package/web/chunk-svqj4az8.js +1 -0
- package/web/chunk-t7jwyvvr.js +1 -0
- package/web/{chunk-47q4hmfp.js → chunk-tcp77cp2.js} +2 -2
- package/web/chunk-tf18d2dk.css +1 -0
- package/web/chunk-thbqwq6b.js +1 -0
- package/web/chunk-v0g4cqc1.js +4 -0
- package/web/chunk-vhzys0rr.js +292 -0
- package/web/chunk-vnt34mkb.js +1 -0
- package/web/chunk-vqfz99ff.js +1 -0
- package/web/chunk-vttgyb5v.js +2 -0
- package/web/chunk-x7sb3bwf.js +370 -0
- package/web/chunk-xce8n339.js +1 -0
- package/web/{chunk-mb4qx9hy.js → chunk-xk1t58c4.js} +12 -12
- package/web/chunk-xsrvw7dt.js +4 -0
- package/web/chunk-xtss82z2.js +1 -0
- package/web/{chunk-2j4m0bh1.js → chunk-y7jq61nv.js} +2 -2
- package/web/{chunk-7ba8vrfc.js → chunk-ybw6vgf6.js} +2 -2
- package/web/{chunk-24h1rfje.js → chunk-yvgs6bm3.js} +4 -4
- package/web/{chunk-sb1cjpq8.js → chunk-z4aj066q.js} +1 -1
- package/web/chunk-zazs8p6c.js +1 -0
- package/web/{chunk-n8gfjj9a.js → chunk-zc1mk10n.js} +19 -19
- package/web/{chunk-5qqw2e0t.js → chunk-zqht0jzx.js} +6 -6
- package/web/{chunk-mwj9tpkz.js → chunk-zz397b0v.js} +12 -12
- package/web/index.html +1 -1
- package/worker.js +1 -1
- package/chunk-06hdzq5n.js +0 -2
- package/chunk-09rj27b2.js +0 -2
- package/chunk-1zdwrgd4.js +0 -2
- package/chunk-5c9j8qe4.js +0 -478
- package/chunk-9mmz6wt3.js +0 -2
- package/chunk-bpw6q7g0.js +0 -3
- package/chunk-bxn5kmpz.js +0 -3753
- package/chunk-n6e43rvk.js +0 -3
- package/chunk-pmqtkqsf.js +0 -2
- package/chunk-ry0z4ev6.js +0 -2
- package/chunk-v258nxcz.js +0 -2
- package/chunk-zmsgwr3s.js +0 -2
- package/web/chunk-0s80zw00.js +0 -1
- package/web/chunk-166qe5j6.js +0 -2
- package/web/chunk-1c95wfvq.js +0 -1
- package/web/chunk-329rtxa9.js +0 -1
- package/web/chunk-33qwz9bc.js +0 -2
- package/web/chunk-3qjnwsph.js +0 -1
- package/web/chunk-4rm1vy7w.js +0 -1
- package/web/chunk-59kqahb3.js +0 -1
- package/web/chunk-61jahh35.js +0 -292
- package/web/chunk-6beqrmtq.js +0 -1
- package/web/chunk-6gxf3vsg.js +0 -1
- package/web/chunk-6parf7sy.js +0 -2
- package/web/chunk-89fkdgbp.js +0 -2
- package/web/chunk-8qgpfxkz.js +0 -1
- package/web/chunk-9a3q0jsh.js +0 -36
- package/web/chunk-9bgey148.js +0 -169
- package/web/chunk-9xh96b33.js +0 -2
- package/web/chunk-a5sg33w2.js +0 -3
- package/web/chunk-a91vxtx4.js +0 -1
- package/web/chunk-agec7jj4.js +0 -1
- package/web/chunk-c516cghj.js +0 -1
- package/web/chunk-cqp1d4p0.js +0 -1
- package/web/chunk-cwtdnacf.js +0 -1
- package/web/chunk-dg1vas6z.js +0 -8
- package/web/chunk-dy2gm1fs.js +0 -1
- package/web/chunk-f91wzwtk.js +0 -1
- package/web/chunk-fc0nx23g.js +0 -1
- package/web/chunk-fhnypcrm.js +0 -1139
- package/web/chunk-fv60p68p.js +0 -1
- package/web/chunk-g1ev11wx.js +0 -1
- package/web/chunk-h18tnrf2.js +0 -1
- package/web/chunk-hfaffkrh.js +0 -1
- package/web/chunk-hszjc2ny.js +0 -70
- package/web/chunk-j2vt8c8v.js +0 -1
- package/web/chunk-jqa39f8t.js +0 -78
- package/web/chunk-jvbbrnpa.js +0 -1
- package/web/chunk-jzfd7cyh.js +0 -2
- package/web/chunk-ka3q31t1.js +0 -1
- package/web/chunk-ka9ak8wr.js +0 -1
- package/web/chunk-m2d1sp30.js +0 -1
- package/web/chunk-mnjd59jk.js +0 -1
- package/web/chunk-ng0nbfhh.js +0 -1
- package/web/chunk-nz9nxk48.js +0 -1
- package/web/chunk-phw908hn.js +0 -1
- package/web/chunk-pjmmma1k.js +0 -1
- package/web/chunk-pxe3vna4.js +0 -1
- package/web/chunk-q7yn4m3t.js +0 -1
- package/web/chunk-qh15dxav.css +0 -1
- package/web/chunk-qnhqexe0.js +0 -1
- package/web/chunk-rcx1aee5.js +0 -99
- package/web/chunk-rjqj6ffe.js +0 -1
- package/web/chunk-rks7ksv3.js +0 -106
- package/web/chunk-rtf2zzzv.js +0 -1
- package/web/chunk-sgvp8vge.js +0 -1
- package/web/chunk-sjjwte12.js +0 -1
- package/web/chunk-srrfphes.js +0 -1
- package/web/chunk-t7bwsdbr.js +0 -1
- package/web/chunk-tse9gvyq.js +0 -89
- package/web/chunk-vd6y2pcm.js +0 -39
- package/web/chunk-vpa55vje.js +0 -4
- package/web/chunk-vymqrpm3.js +0 -303
- package/web/chunk-wdtnhpd6.js +0 -4
- package/web/chunk-wmvd6j0b.js +0 -200
- package/web/chunk-xvsmtetz.js +0 -30
- package/web/chunk-y3ajqthy.js +0 -370
- package/web/chunk-yd1ez3wd.js +0 -2
- package/web/chunk-yfbxtg5p.js +0 -1
- package/web/chunk-ywp4s71k.js +0 -40
- package/web/chunk-z4x331rx.js +0 -140
- package/web/chunk-z6bpamwq.js +0 -24
- package/web/chunk-zmdnxn6m.js +0 -2
- package/web/install.ps1 +0 -91
- package/web/install.sh +0 -177
package/web/chunk-9bgey148.js
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import{hn}from"./chunk-7ba8vrfc.js";import{e,r,ne,b,O,Mi,fe,xr,_r,y,B,C,S,E,T,A,I,L,s,an,p,et,tt,Gn,Fi,Ge,N}from"./chunk-vymqrpm3.js";import{nn,Br,aa,ia,Ke,oa}from"./chunk-47q4hmfp.js";import{Ce}from"./chunk-fhnypcrm.js";var xe=Ce(Gn(),1),ue=function(){var a=e(function(kt,q,Q,G){for(Q=Q||{},G=kt.length;G--;Q[kt[G]]=q);return Q},"o"),t=[1,2],n=[1,3],i=[1,4],c=[2,4],d=[1,9],o=[1,11],l=[1,12],x=[1,14],_=[1,15],R=[1,17],m=[1,18],k=[1,19],V=[1,25],w=[1,26],M=[1,27],f=[1,28],Y=[1,29],P=[1,30],K=[1,31],F=[1,32],W=[1,33],z=[1,34],U=[1,35],Z=[1,36],rt=[1,37],st=[1,38],lt=[1,39],dt=[1,40],ft=[1,42],_t=[1,43],ht=[1,44],bt=[1,45],gt=[1,46],at=[1,47],J=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],pt=[1,56],Ut=[1,75],H=[1,81],X=[1,82],Ot=[1,83],xt=[1,84],it=[1,85],Yt=[1,86],Ie=[1,87],ye=[1,88],Re=[1,89],Oe=[1,90],Le=[1,91],me=[1,92],Se=[1,93],Ae=[1,94],ke=[1,95],Ne=[1,96],we=[1,97],Pe=[1,98],De=[1,99],ve=[1,100],Me=[1,101],Be=[1,102],Ye=[1,103],Ve=[1,104],We=[1,105],He=[1,106],Fe=[2,79],qe=[2,78],Ht=[4,5,17,51,53,54],Gt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],ze=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],ie=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Ue=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],oe=[5,52],nt=[62,70,71,72,73],Xe=[62,73],It=[1,152],ce={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:e(function(q,Q,G,D,ot,h,Ft){var g=h.length-1;switch(ot){case 3:return D.apply(h[g]),h[g];break;case 4:case 10:this.$=[];break;case 5:case 11:h[g-1].push(h[g]),this.$=h[g-1];break;case 6:case 7:case 12:case 13:this.$=h[g];break;case 8:case 9:case 14:this.$=[];break;case 16:h[g].type="createParticipant",this.$=h[g];break;case 17:h[g-1].unshift({type:"boxStart",boxData:D.parseBoxData(h[g-2])}),h[g-1].push({type:"boxEnd",boxText:h[g-2]}),this.$=h[g-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[g-2]),sequenceIndexStep:Number(h[g-1]),sequenceVisible:!0,signalType:D.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(h[g-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:D.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:D.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:D.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:D.LINETYPE.ACTIVE_START,actor:h[g-1].actor};break;case 24:this.$={type:"activeEnd",signalType:D.LINETYPE.ACTIVE_END,actor:h[g-1].actor};break;case 30:D.setDiagramTitle(h[g].substring(6)),this.$=h[g].substring(6);break;case 31:D.setDiagramTitle(h[g].substring(7)),this.$=h[g].substring(7);break;case 32:this.$=h[g].trim(),D.setAccTitle(this.$);break;case 33:case 34:this.$=h[g].trim(),D.setAccDescription(this.$);break;case 35:h[g-1].unshift({type:"loopStart",loopText:D.parseMessage(h[g-2]),signalType:D.LINETYPE.LOOP_START}),h[g-1].push({type:"loopEnd",loopText:h[g-2],signalType:D.LINETYPE.LOOP_END}),this.$=h[g-1];break;case 36:h[g-1].unshift({type:"rectStart",color:D.parseMessage(h[g-2]),signalType:D.LINETYPE.RECT_START}),h[g-1].push({type:"rectEnd",color:D.parseMessage(h[g-2]),signalType:D.LINETYPE.RECT_END}),this.$=h[g-1];break;case 37:h[g-1].unshift({type:"optStart",optText:D.parseMessage(h[g-2]),signalType:D.LINETYPE.OPT_START}),h[g-1].push({type:"optEnd",optText:D.parseMessage(h[g-2]),signalType:D.LINETYPE.OPT_END}),this.$=h[g-1];break;case 38:h[g-1].unshift({type:"altStart",altText:D.parseMessage(h[g-2]),signalType:D.LINETYPE.ALT_START}),h[g-1].push({type:"altEnd",signalType:D.LINETYPE.ALT_END}),this.$=h[g-1];break;case 39:h[g-1].unshift({type:"parStart",parText:D.parseMessage(h[g-2]),signalType:D.LINETYPE.PAR_START}),h[g-1].push({type:"parEnd",signalType:D.LINETYPE.PAR_END}),this.$=h[g-1];break;case 40:h[g-1].unshift({type:"parStart",parText:D.parseMessage(h[g-2]),signalType:D.LINETYPE.PAR_OVER_START}),h[g-1].push({type:"parEnd",signalType:D.LINETYPE.PAR_END}),this.$=h[g-1];break;case 41:h[g-1].unshift({type:"criticalStart",criticalText:D.parseMessage(h[g-2]),signalType:D.LINETYPE.CRITICAL_START}),h[g-1].push({type:"criticalEnd",signalType:D.LINETYPE.CRITICAL_END}),this.$=h[g-1];break;case 42:h[g-1].unshift({type:"breakStart",breakText:D.parseMessage(h[g-2]),signalType:D.LINETYPE.BREAK_START}),h[g-1].push({type:"breakEnd",optText:D.parseMessage(h[g-2]),signalType:D.LINETYPE.BREAK_END}),this.$=h[g-1];break;case 44:this.$=h[g-3].concat([{type:"option",optionText:D.parseMessage(h[g-1]),signalType:D.LINETYPE.CRITICAL_OPTION},h[g]]);break;case 46:this.$=h[g-3].concat([{type:"and",parText:D.parseMessage(h[g-1]),signalType:D.LINETYPE.PAR_AND},h[g]]);break;case 48:this.$=h[g-3].concat([{type:"else",altText:D.parseMessage(h[g-1]),signalType:D.LINETYPE.ALT_ELSE},h[g]]);break;case 49:h[g-3].draw="participant",h[g-3].type="addParticipant",h[g-3].description=D.parseMessage(h[g-1]),this.$=h[g-3];break;case 50:h[g-1].draw="participant",h[g-1].type="addParticipant",this.$=h[g-1];break;case 51:h[g-3].draw="actor",h[g-3].type="addParticipant",h[g-3].description=D.parseMessage(h[g-1]),this.$=h[g-3];break;case 52:case 57:h[g-1].draw="actor",h[g-1].type="addParticipant",this.$=h[g-1];break;case 53:h[g-1].type="destroyParticipant",this.$=h[g-1];break;case 54:h[g-3].draw="participant",h[g-3].type="addParticipant",h[g-3].description=D.parseMessage(h[g-1]),this.$=h[g-3];break;case 55:h[g-1].draw="participant",h[g-1].type="addParticipant",this.$=h[g-1];break;case 56:h[g-3].draw="actor",h[g-3].type="addParticipant",h[g-3].description=D.parseMessage(h[g-1]),this.$=h[g-3];break;case 58:this.$=[h[g-1],{type:"addNote",placement:h[g-2],actor:h[g-1].actor,text:h[g]}];break;case 59:h[g-2]=[].concat(h[g-1],h[g-1]).slice(0,2),h[g-2][0]=h[g-2][0].actor,h[g-2][1]=h[g-2][1].actor,this.$=[h[g-1],{type:"addNote",placement:D.PLACEMENT.OVER,actor:h[g-2].slice(0,2),text:h[g]}];break;case 60:this.$=[h[g-1],{type:"addLinks",actor:h[g-1].actor,text:h[g]}];break;case 61:this.$=[h[g-1],{type:"addALink",actor:h[g-1].actor,text:h[g]}];break;case 62:this.$=[h[g-1],{type:"addProperties",actor:h[g-1].actor,text:h[g]}];break;case 63:this.$=[h[g-1],{type:"addDetails",actor:h[g-1].actor,text:h[g]}];break;case 66:this.$=[h[g-2],h[g]];break;case 67:this.$=h[g];break;case 68:this.$=D.PLACEMENT.LEFTOF;break;case 69:this.$=D.PLACEMENT.RIGHTOF;break;case 70:this.$=[h[g-4],h[g-1],{type:"addMessage",from:h[g-4].actor,to:h[g-1].actor,signalType:h[g-3],msg:h[g],activate:!0},{type:"activeStart",signalType:D.LINETYPE.ACTIVE_START,actor:h[g-1].actor}];break;case 71:this.$=[h[g-4],h[g-1],{type:"addMessage",from:h[g-4].actor,to:h[g-1].actor,signalType:h[g-3],msg:h[g]},{type:"activeEnd",signalType:D.LINETYPE.ACTIVE_END,actor:h[g-4].actor}];break;case 72:this.$=[h[g-4],h[g-1],{type:"addMessage",from:h[g-4].actor,to:h[g-1].actor,signalType:h[g-3],msg:h[g],activate:!0,centralConnection:D.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:D.LINETYPE.CENTRAL_CONNECTION,actor:h[g-1].actor}];break;case 73:this.$=[h[g-4],h[g-1],{type:"addMessage",from:h[g-4].actor,to:h[g-1].actor,signalType:h[g-2],msg:h[g],activate:!1,centralConnection:D.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:D.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:h[g-4].actor}];break;case 74:this.$=[h[g-5],h[g-1],{type:"addMessage",from:h[g-5].actor,to:h[g-1].actor,signalType:h[g-3],msg:h[g],activate:!0,centralConnection:D.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:D.LINETYPE.CENTRAL_CONNECTION,actor:h[g-1].actor},{type:"centralConnectionReverse",signalType:D.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:h[g-5].actor}];break;case 75:this.$=[h[g-3],h[g-1],{type:"addMessage",from:h[g-3].actor,to:h[g-1].actor,signalType:h[g-2],msg:h[g]}];break;case 76:this.$={type:"addParticipant",actor:h[g-1],config:h[g]};break;case 77:this.$=h[g-1].trim();break;case 78:case 79:this.$={type:"addParticipant",actor:h[g]};break;case 80:this.$=D.LINETYPE.SOLID_OPEN;break;case 81:this.$=D.LINETYPE.DOTTED_OPEN;break;case 82:this.$=D.LINETYPE.SOLID;break;case 83:this.$=D.LINETYPE.SOLID_TOP;break;case 84:this.$=D.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=D.LINETYPE.STICK_TOP;break;case 86:this.$=D.LINETYPE.STICK_BOTTOM;break;case 87:this.$=D.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=D.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=D.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=D.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=D.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=D.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=D.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=D.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=D.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=D.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=D.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=D.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=D.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=D.LINETYPE.DOTTED;break;case 101:this.$=D.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=D.LINETYPE.SOLID_CROSS;break;case 103:this.$=D.LINETYPE.DOTTED_CROSS;break;case 104:this.$=D.LINETYPE.SOLID_POINT;break;case 105:this.$=D.LINETYPE.DOTTED_POINT;break;case 106:this.$=D.parseMessage(h[g].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:n,6:i},{1:[3]},{3:5,4:t,5:n,6:i},{3:6,4:t,5:n,6:i},a([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],c,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:o,8:8,9:10,10:l,13:13,14:x,15:_,18:16,19:R,22:m,23:41,24:k,25:20,26:21,27:22,28:23,29:24,30:V,31:w,32:M,34:f,36:Y,37:P,38:K,39:F,40:W,42:z,44:U,45:Z,47:rt,51:st,53:lt,54:dt,56:ft,61:_t,62:ht,63:bt,64:gt,73:at},a(J,[2,5]),{9:48,13:13,14:x,15:_,18:16,19:R,22:m,23:41,24:k,25:20,26:21,27:22,28:23,29:24,30:V,31:w,32:M,34:f,36:Y,37:P,38:K,39:F,40:W,42:z,44:U,45:Z,47:rt,51:st,53:lt,54:dt,56:ft,61:_t,62:ht,63:bt,64:gt,73:at},a(J,[2,7]),a(J,[2,8]),a(J,[2,9]),a(J,[2,15]),{13:49,51:st,53:lt,54:dt},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:pt,73:at},{23:57,62:pt,73:at},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},a(J,[2,30]),a(J,[2,31]),{33:[1,63]},{35:[1,64]},a(J,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:pt,73:Ut},{23:76,55:77,62:pt,73:Ut},{23:78,62:pt,73:at},{69:79,72:[1,80],78:H,79:X,80:Ot,81:xt,82:it,83:Yt,84:Ie,85:ye,86:Re,87:Oe,88:Le,89:me,90:Se,91:Ae,92:ke,93:Ne,94:we,95:Pe,96:De,97:ve,98:Me,99:Be,100:Ye,101:Ve,102:We,103:He},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:pt,73:at},a([72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],Fe,{23:112,62:pt,73:at}),{23:113,62:pt,73:at},{23:114,62:pt,73:at},a([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],qe),a(J,[2,6]),a(J,[2,16]),a(Ht,[2,10],{11:115}),a(J,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},a(J,[2,22]),{5:[1,119]},a([5,52,66,104],Fe),{5:[1,120]},a(J,[2,25]),a(J,[2,26]),a(J,[2,27]),a(J,[2,28]),a(J,[2,29]),a(J,[2,32]),a(J,[2,33]),a(Gt,c,{7:121}),a(Gt,c,{7:122}),a(Gt,c,{7:123}),a(ze,c,{41:124,7:125}),a(ie,c,{43:126,7:127}),a(ie,c,{7:127,43:128}),a(Ue,c,{46:129,7:130}),a(Gt,c,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},a(oe,qe,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:pt,70:[1,143],71:[1,144],72:[1,145],73:at},{69:147,78:H,79:X,80:Ot,81:xt,82:it,83:Yt,84:Ie,85:ye,86:Re,87:Oe,88:Le,89:me,90:Se,91:Ae,92:ke,93:Ne,94:we,95:Pe,96:De,97:ve,98:Me,99:Be,100:Ye,101:Ve,102:We,103:He},a(nt,[2,80]),a(nt,[2,81]),a(nt,[2,82]),a(nt,[2,83]),a(nt,[2,84]),a(nt,[2,85]),a(nt,[2,86]),a(nt,[2,87]),a(nt,[2,88]),a(nt,[2,89]),a(nt,[2,90]),a(nt,[2,91]),a(nt,[2,92]),a(nt,[2,93]),a(nt,[2,94]),a(nt,[2,95]),a(nt,[2,96]),a(nt,[2,97]),a(nt,[2,98]),a(nt,[2,99]),a(nt,[2,100]),a(nt,[2,101]),a(nt,[2,102]),a(nt,[2,103]),a(nt,[2,104]),a(nt,[2,105]),{23:148,62:pt,73:at},{23:150,60:149,62:pt,73:at},a(Xe,[2,68]),a(Xe,[2,69]),{58:151,104:It},{58:153,104:It},{58:154,104:It},{58:155,104:It},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:st,53:lt,54:dt},{5:[1,161]},a(J,[2,20]),a(J,[2,21]),a(J,[2,23]),a(J,[2,24]),{4:d,5:o,8:8,9:10,10:l,13:13,14:x,15:_,17:[1,162],18:16,19:R,22:m,23:41,24:k,25:20,26:21,27:22,28:23,29:24,30:V,31:w,32:M,34:f,36:Y,37:P,38:K,39:F,40:W,42:z,44:U,45:Z,47:rt,51:st,53:lt,54:dt,56:ft,61:_t,62:ht,63:bt,64:gt,73:at},{4:d,5:o,8:8,9:10,10:l,13:13,14:x,15:_,17:[1,163],18:16,19:R,22:m,23:41,24:k,25:20,26:21,27:22,28:23,29:24,30:V,31:w,32:M,34:f,36:Y,37:P,38:K,39:F,40:W,42:z,44:U,45:Z,47:rt,51:st,53:lt,54:dt,56:ft,61:_t,62:ht,63:bt,64:gt,73:at},{4:d,5:o,8:8,9:10,10:l,13:13,14:x,15:_,17:[1,164],18:16,19:R,22:m,23:41,24:k,25:20,26:21,27:22,28:23,29:24,30:V,31:w,32:M,34:f,36:Y,37:P,38:K,39:F,40:W,42:z,44:U,45:Z,47:rt,51:st,53:lt,54:dt,56:ft,61:_t,62:ht,63:bt,64:gt,73:at},{17:[1,165]},{4:d,5:o,8:8,9:10,10:l,13:13,14:x,15:_,17:[2,47],18:16,19:R,22:m,23:41,24:k,25:20,26:21,27:22,28:23,29:24,30:V,31:w,32:M,34:f,36:Y,37:P,38:K,39:F,40:W,42:z,44:U,45:Z,47:rt,50:[1,166],51:st,53:lt,54:dt,56:ft,61:_t,62:ht,63:bt,64:gt,73:at},{17:[1,167]},{4:d,5:o,8:8,9:10,10:l,13:13,14:x,15:_,17:[2,45],18:16,19:R,22:m,23:41,24:k,25:20,26:21,27:22,28:23,29:24,30:V,31:w,32:M,34:f,36:Y,37:P,38:K,39:F,40:W,42:z,44:U,45:Z,47:rt,49:[1,168],51:st,53:lt,54:dt,56:ft,61:_t,62:ht,63:bt,64:gt,73:at},{17:[1,169]},{17:[1,170]},{4:d,5:o,8:8,9:10,10:l,13:13,14:x,15:_,17:[2,43],18:16,19:R,22:m,23:41,24:k,25:20,26:21,27:22,28:23,29:24,30:V,31:w,32:M,34:f,36:Y,37:P,38:K,39:F,40:W,42:z,44:U,45:Z,47:rt,48:[1,171],51:st,53:lt,54:dt,56:ft,61:_t,62:ht,63:bt,64:gt,73:at},{4:d,5:o,8:8,9:10,10:l,13:13,14:x,15:_,17:[1,172],18:16,19:R,22:m,23:41,24:k,25:20,26:21,27:22,28:23,29:24,30:V,31:w,32:M,34:f,36:Y,37:P,38:K,39:F,40:W,42:z,44:U,45:Z,47:rt,51:st,53:lt,54:dt,56:ft,61:_t,62:ht,63:bt,64:gt,73:at},{16:[1,173]},a(J,[2,50]),{16:[1,174]},a(J,[2,55]),a(oe,[2,76]),{76:[1,175]},{16:[1,176]},a(J,[2,52]),{16:[1,177]},a(J,[2,57]),a(J,[2,53]),{23:178,62:pt,73:at},{23:179,62:pt,73:at},{23:180,62:pt,73:at},{58:181,104:It},{23:182,62:pt,72:[1,183],73:at},{58:184,104:It},{58:185,104:It},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},a(J,[2,17]),a(Ht,[2,11]),{13:187,51:st,53:lt,54:dt},a(Ht,[2,13]),a(Ht,[2,14]),a(J,[2,19]),a(J,[2,35]),a(J,[2,36]),a(J,[2,37]),a(J,[2,38]),{16:[1,188]},a(J,[2,39]),{16:[1,189]},a(J,[2,40]),a(J,[2,41]),{16:[1,190]},a(J,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:It},{58:197,104:It},{58:198,104:It},{5:[2,75]},{58:199,104:It},{23:200,62:pt,73:at},{5:[2,58]},{5:[2,59]},{23:201,62:pt,73:at},a(Ht,[2,12]),a(ze,c,{7:125,41:202}),a(ie,c,{7:127,43:203}),a(Ue,c,{7:130,46:204}),a(J,[2,49]),a(J,[2,54]),a(oe,[2,77]),a(J,[2,51]),a(J,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:It},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:e(function(q,Q){if(Q.recoverable)this.trace(q);else{var G=Error(q);throw G.hash=Q,G}},"parseError"),parse:e(function(q){var Q=this,G=[0],D=[],ot=[null],h=[],Ft=this.table,g="",Qt=0,Qe=0,Je=0,gr=2,Ze=1,br=h.slice.call(arguments,1),Et=Object.create(this.lexer),Dt={yy:{}};for(var le in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,le))Dt.yy[le]=this.yy[le];if(Et.setInput(q,Dt.yy),Dt.yy.lexer=Et,Dt.yy.parser=this,typeof Et.yylloc>"u")Et.yylloc={};var he=Et.yylloc;h.push(he);var Ir=Et.options&&Et.options.ranges;if(typeof Dt.yy.parseError==="function")this.parseError=Dt.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function yr(Rt){G.length=G.length-2*Rt,ot.length=ot.length-Rt,h.length=h.length-Rt}e(yr,"popStack");function $e(){var Rt=D.pop()||Et.lex()||Ze;if(typeof Rt!=="number"){if(Rt instanceof Array)D=Rt,Rt=D.pop();Rt=Q.symbols_[Rt]||Rt}return Rt}e($e,"lex");var ut,de,vt,yt,La,Te,Vt={},Jt,mt,je,Zt;while(!0){if(vt=G[G.length-1],this.defaultActions[vt])yt=this.defaultActions[vt];else{if(ut===null||typeof ut>"u")ut=$e();yt=Ft[vt]&&Ft[vt][ut]}if(typeof yt>"u"||!yt.length||!yt[0]){var pe="";Zt=[];for(Jt in Ft[vt])if(this.terminals_[Jt]&&Jt>gr)Zt.push("'"+this.terminals_[Jt]+"'");if(Et.showPosition)pe="Parse error on line "+(Qt+1)+`:
|
|
2
|
-
`+Et.showPosition()+`
|
|
3
|
-
Expecting `+Zt.join(", ")+", got '"+(this.terminals_[ut]||ut)+"'";else pe="Parse error on line "+(Qt+1)+": Unexpected "+(ut==Ze?"end of input":"'"+(this.terminals_[ut]||ut)+"'");this.parseError(pe,{text:Et.match,token:this.terminals_[ut]||ut,line:Et.yylineno,loc:he,expected:Zt})}if(yt[0]instanceof Array&&yt.length>1)throw Error("Parse Error: multiple actions possible at state: "+vt+", token: "+ut);switch(yt[0]){case 1:if(G.push(ut),ot.push(Et.yytext),h.push(Et.yylloc),G.push(yt[1]),ut=null,!de){if(Qe=Et.yyleng,g=Et.yytext,Qt=Et.yylineno,he=Et.yylloc,Je>0)Je--}else ut=de,de=null;break;case 2:if(mt=this.productions_[yt[1]][1],Vt.$=ot[ot.length-mt],Vt._$={first_line:h[h.length-(mt||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(mt||1)].first_column,last_column:h[h.length-1].last_column},Ir)Vt._$.range=[h[h.length-(mt||1)].range[0],h[h.length-1].range[1]];if(Te=this.performAction.apply(Vt,[g,Qe,Qt,Dt.yy,yt[1],ot,h].concat(br)),typeof Te<"u")return Te;if(mt)G=G.slice(0,-1*mt*2),ot=ot.slice(0,-1*mt),h=h.slice(0,-1*mt);G.push(this.productions_[yt[1]][0]),ot.push(Vt.$),h.push(Vt._$),je=Ft[G[G.length-2]][G[G.length-1]],G.push(je);break;case 3:return!0}}return!0},"parse")},fr=function(){var kt={EOF:1,parseError:e(function(Q,G){if(this.yy.parser)this.yy.parser.parseError(Q,G);else throw Error(Q)},"parseError"),setInput:e(function(q,Q){if(this.yy=Q||this.yy||{},this._input=q,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:e(function(){var q=this._input[0];this.yytext+=q,this.yyleng++,this.offset++,this.match+=q,this.matched+=q;var Q=q.match(/(?:\r\n?|\n).*/g);if(Q)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),q},"input"),unput:e(function(q){var Q=q.length,G=q.split(/(?:\r\n?|\n)/g);this._input=q+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Q),this.offset-=Q;var D=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),G.length-1)this.yylineno-=G.length-1;var ot=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:G?(G.length===D.length?this.yylloc.first_column:0)+D[D.length-G.length].length-G[0].length:this.yylloc.first_column-Q},this.options.ranges)this.yylloc.range=[ot[0],ot[0]+this.yyleng-Q];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(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).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(q){this.unput(this.match.slice(q))},"less"),pastInput:e(function(){var q=this.matched.substr(0,this.matched.length-this.match.length);return(q.length>20?"...":"")+q.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var q=this.match;if(q.length<20)q+=this._input.substr(0,20-q.length);return(q.substr(0,20)+(q.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var q=this.pastInput(),Q=Array(q.length+1).join("-");return q+this.upcomingInput()+`
|
|
5
|
-
`+Q+"^"},"showPosition"),test_match:e(function(q,Q){var G,D,ot;if(this.options.backtrack_lexer){if(ot={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)ot.yylloc.range=this.yylloc.range.slice(0)}if(D=q[0].match(/(?:\r\n?|\n).*/g),D)this.yylineno+=D.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:D?D[D.length-1].length-D[D.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+q[0].length},this.yytext+=q[0],this.match+=q[0],this.matches=q,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(q[0].length),this.matched+=q[0],G=this.performAction.call(this,this.yy,this,Q,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(G)return G;else if(this._backtrack){for(var h in ot)this[h]=ot[h];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var q,Q,G,D;if(!this._more)this.yytext="",this.match="";var ot=this._currentRules();for(var h=0;h<ot.length;h++)if(G=this._input.match(this.rules[ot[h]]),G&&(!Q||G[0].length>Q[0].length)){if(Q=G,D=h,this.options.backtrack_lexer)if(q=this.test_match(G,ot[h]),q!==!1)return q;else if(this._backtrack){Q=!1;continue}else return!1;else if(!this.options.flex)break}if(Q){if(q=this.test_match(Q,ot[D]),q!==!1)return q;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var Q=this.next();if(Q)return Q;else return this.lex()},"lex"),begin:e(function(Q){this.conditionStack.push(Q)},"begin"),popState:e(function(){var Q=this.conditionStack.length-1;if(Q>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:e(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:e(function(Q){if(Q=this.conditionStack.length-1-Math.abs(Q||0),Q>=0)return this.conditionStack[Q];else return"INITIAL"},"topState"),pushState:e(function(Q){this.begin(Q)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:e(function(Q,G,D,ot){var h=ot;switch(D){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;break;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;break;case 10:return this.popState(),this.popState(),77;break;case 11:return G.yytext=G.yytext.trim(),73;break;case 12:return G.yytext=G.yytext.trim(),this.begin("ALIAS"),73;break;case 13:return G.yytext=G.yytext.trim(),this.popState(),73;break;case 14:return this.popState(),10;break;case 15:return G.yytext=G.yytext.trim(),this.popState(),10;break;case 16:return this.begin("LINE"),15;break;case 17:return this.begin("ID"),51;break;case 18:return this.begin("ID"),53;break;case 19:return 14;case 20:return this.begin("ID"),54;break;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;break;case 22:return this.popState(),this.popState(),5;break;case 23:return this.begin("LINE"),37;break;case 24:return this.begin("LINE"),38;break;case 25:return this.begin("LINE"),39;break;case 26:return this.begin("LINE"),40;break;case 27:return this.begin("LINE"),50;break;case 28:return this.begin("LINE"),42;break;case 29:return this.begin("LINE"),44;break;case 30:return this.begin("LINE"),49;break;case 31:return this.begin("LINE"),45;break;case 32:return this.begin("LINE"),48;break;case 33:return this.begin("LINE"),47;break;case 34:return this.popState(),16;break;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;break;case 45:return this.begin("ID"),24;break;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;break;case 49:return this.popState(),"acc_title_value";break;case 50:return this.begin("acc_descr"),34;break;case 51:return this.popState(),"acc_descr_value";break;case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 59:return 5;case 60:return G.yytext=G.yytext.trim(),73;break;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:return 104;case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 92:return 5;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^<>:\n,;@\s]+(?=\s*@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:link(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:properties(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:details(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}};return kt}();ce.lexer=fr;function Xt(){this.yy={}}return e(Xt,"Parser"),Xt.prototype=ce,ce.Parser=Xt,new Xt}();ue.parser=ue;var Rr=ue,Or={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},Lr={FILLED:0,OPEN:1},mr={LEFTOF:0,RIGHTOF:1,OVER:2},$t={ACTOR:"actor",BOUNDARY:"boundary",COLLECTIONS:"collections",CONTROL:"control",DATABASE:"database",ENTITY:"entity",PARTICIPANT:"participant",QUEUE:"queue"},Sr=class{constructor(){this.state=new hn(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=S,this.setAccDescription=T,this.setDiagramTitle=I,this.getAccTitle=E,this.getAccDescription=A,this.getDiagramTitle=L,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(s().wrap),this.LINETYPE=Or,this.ARROWTYPE=Lr,this.PLACEMENT=mr}static{e(this,"SequenceDB")}addBox(a){this.state.records.boxes.push({name:a.text,wrap:a.wrap??this.autoWrap(),fill:a.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(a,t,n,i,c){let d=this.state.records.currentBox,o;if(c!==void 0){let x;if(!c.includes(`
|
|
7
|
-
`))x=`{
|
|
8
|
-
`+c+`
|
|
9
|
-
}`;else x=c+`
|
|
10
|
-
`;o=tt(x,{schema:et})}if(i=o?.type??i,o?.alias&&(!n||n.text===t))n={text:o.alias,wrap:n?.wrap,type:i};let l=this.state.records.actors.get(a);if(l){if(this.state.records.currentBox&&l.box&&this.state.records.currentBox!==l.box)throw Error(`A same participant should only be defined in one Box: ${l.name} can't be in '${l.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(d=l.box?l.box:this.state.records.currentBox,l.box=d,l&&t===l.name&&n==null)return}if(n?.text==null)n={text:t,type:i};if(i==null||n.text==null)n={text:t,type:i};if(this.state.records.actors.set(a,{box:d,name:t,description:n.text,wrap:n.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:i??"participant"}),this.state.records.prevActor){let x=this.state.records.actors.get(this.state.records.prevActor);if(x)x.nextActor=a}if(this.state.records.currentBox)this.state.records.currentBox.actorKeys.push(a);this.state.records.prevActor=a}activationCount(a){let t,n=0;if(!a)return 0;for(t=0;t<this.state.records.messages.length;t++){if(this.state.records.messages[t].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[t].from===a)n++;if(this.state.records.messages[t].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[t].from===a)n--}return n}addMessage(a,t,n,i){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:a,to:t,message:n.text,wrap:n.wrap??this.autoWrap(),answer:i})}addSignal(a,t,n,i,c=!1,d){if(i===this.LINETYPE.ACTIVE_END){if(this.activationCount(a??"")<1){let l=Error("Trying to inactivate an inactive participant ("+a+")");throw l.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},l}}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:a,to:t,message:n?.text??"",wrap:n?.wrap??this.autoWrap(),type:i,activate:c,centralConnection:d??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some((a)=>a.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(a){return this.state.records.actors.get(a)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(a){this.state.records.wrapEnabled=a}extractWrap(a){if(a===void 0)return{};a=a.trim();let t=/^:?wrap:/.exec(a)!==null?!0:/^:?nowrap:/.exec(a)!==null?!1:void 0;return{cleanedText:(t===void 0?a:a.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:t}}autoWrap(){if(this.state.records.wrapEnabled!==void 0)return this.state.records.wrapEnabled;return s().sequence?.wrap??!1}clear(){this.state.reset(),C()}parseMessage(a){let t=a.trim(),{wrap:n,cleanedText:i}=this.extractWrap(t),c={text:i,wrap:n};return r.debug(`parseMessage: ${JSON.stringify(c)}`),c}parseBoxData(a){let t=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(a),n=t?.[1]?t[1].trim():"transparent",i=t?.[2]?t[2].trim():void 0;if(window?.CSS){if(!window.CSS.supports("color",n))n="transparent",i=a.trim()}else{let o=new Option().style;if(o.color=n,o.color!==n)n="transparent",i=a.trim()}let{wrap:c,cleanedText:d}=this.extractWrap(i);return{text:d?O(d,s()):void 0,color:n,wrap:c}}addNote(a,t,n){let i={actor:a,placement:t,message:n.text,wrap:n.wrap??this.autoWrap()},c=[].concat(a,a);this.state.records.notes.push(i),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:c[0],to:c[1],message:n.text,wrap:n.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:t})}addLinks(a,t){let n=this.getActor(a);try{let i=O(t.text,s());i=i.replace(/=/g,"="),i=i.replace(/&/g,"&");let c=JSON.parse(i);this.insertLinks(n,c)}catch(i){r.error("error while parsing actor link text",i)}}addALink(a,t){let n=this.getActor(a);try{let i={},c=O(t.text,s()),d=c.indexOf("@");c=c.replace(/=/g,"="),c=c.replace(/&/g,"&");let o=c.slice(0,d-1).trim(),l=c.slice(d+1).trim();i[o]=l,this.insertLinks(n,i)}catch(i){r.error("error while parsing actor link text",i)}}insertLinks(a,t){if(a.links==null)a.links=t;else for(let n in t)a.links[n]=t[n]}addProperties(a,t){let n=this.getActor(a);try{let i=O(t.text,s()),c=JSON.parse(i);this.insertProperties(n,c)}catch(i){r.error("error while parsing actor properties text",i)}}insertProperties(a,t){if(a.properties==null)a.properties=t;else for(let n in t)a.properties[n]=t[n]}boxEnd(){this.state.records.currentBox=void 0}addDetails(a,t){let n=this.getActor(a),i=document.getElementById(t.text);try{let c=i.innerHTML,d=JSON.parse(c);if(d.properties)this.insertProperties(n,d.properties);if(d.links)this.insertLinks(n,d.links)}catch(c){r.error("error while parsing actor details text",c)}}getActorProperty(a,t){if(a?.properties!==void 0)return a.properties[t];return}apply(a){if(Array.isArray(a))a.forEach((t)=>{this.apply(t)});else switch(a.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:a.sequenceIndex,step:a.sequenceIndexStep,visible:a.sequenceVisible},wrap:!1,type:a.signalType});break;case"addParticipant":this.addActor(a.actor,a.actor,a.description,a.draw,a.config);break;case"createParticipant":if(this.state.records.actors.has(a.actor))throw Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=a.actor,this.addActor(a.actor,a.actor,a.description,a.draw,a.config),this.state.records.createdActors.set(a.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=a.actor,this.state.records.destroyedActors.set(a.actor,this.state.records.messages.length);break;case"activeStart":this.addSignal(a.actor,void 0,void 0,a.signalType);break;case"centralConnection":this.addSignal(a.actor,void 0,void 0,a.signalType);break;case"centralConnectionReverse":this.addSignal(a.actor,void 0,void 0,a.signalType);break;case"activeEnd":this.addSignal(a.actor,void 0,void 0,a.signalType);break;case"addNote":this.addNote(a.actor,a.placement,a.text);break;case"addLinks":this.addLinks(a.actor,a.text);break;case"addALink":this.addALink(a.actor,a.text);break;case"addProperties":this.addProperties(a.actor,a.text);break;case"addDetails":this.addDetails(a.actor,a.text);break;case"addMessage":if(this.state.records.lastCreated)if(a.to!==this.state.records.lastCreated)throw Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");else this.state.records.lastCreated=void 0;else if(this.state.records.lastDestroyed)if(a.to!==this.state.records.lastDestroyed&&a.from!==this.state.records.lastDestroyed)throw Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");else this.state.records.lastDestroyed=void 0;this.addSignal(a.from,a.to,a.msg,a.signalType,a.activate,a.centralConnection);break;case"boxStart":this.addBox(a.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,a.loopText,a.signalType);break;case"loopEnd":this.addSignal(void 0,void 0,void 0,a.signalType);break;case"rectStart":this.addSignal(void 0,void 0,a.color,a.signalType);break;case"rectEnd":this.addSignal(void 0,void 0,void 0,a.signalType);break;case"optStart":this.addSignal(void 0,void 0,a.optText,a.signalType);break;case"optEnd":this.addSignal(void 0,void 0,void 0,a.signalType);break;case"altStart":this.addSignal(void 0,void 0,a.altText,a.signalType);break;case"else":this.addSignal(void 0,void 0,a.altText,a.signalType);break;case"altEnd":this.addSignal(void 0,void 0,void 0,a.signalType);break;case"setAccTitle":S(a.text);break;case"parStart":this.addSignal(void 0,void 0,a.parText,a.signalType);break;case"and":this.addSignal(void 0,void 0,a.parText,a.signalType);break;case"parEnd":this.addSignal(void 0,void 0,void 0,a.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,a.criticalText,a.signalType);break;case"option":this.addSignal(void 0,void 0,a.optionText,a.signalType);break;case"criticalEnd":this.addSignal(void 0,void 0,void 0,a.signalType);break;case"breakStart":this.addSignal(void 0,void 0,a.breakText,a.signalType);break;case"breakEnd":this.addSignal(void 0,void 0,void 0,a.signalType);break}}getConfig(){return s().sequence}},Ar=e((a)=>{let t=a.dropShadow??"none",{look:n}=s();return`.actor {
|
|
11
|
-
stroke: ${a.actorBorder};
|
|
12
|
-
fill: ${a.actorBkg};
|
|
13
|
-
stroke-width: ${a.strokeWidth??1};
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
rect.actor.outer-path[data-look="neo"] {
|
|
17
|
-
filter: ${t};
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
rect.note[data-look="neo"] {
|
|
21
|
-
stroke:${a.noteBorderColor};
|
|
22
|
-
fill:${a.noteBkgColor};
|
|
23
|
-
filter: ${t};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
text.actor > tspan {
|
|
27
|
-
fill: ${a.actorTextColor};
|
|
28
|
-
stroke: none;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.actor-line {
|
|
32
|
-
stroke: ${a.actorLineColor};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.innerArc {
|
|
36
|
-
stroke-width: 1.5;
|
|
37
|
-
stroke-dasharray: none;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.messageLine0 {
|
|
41
|
-
stroke-width: 1.5;
|
|
42
|
-
stroke-dasharray: none;
|
|
43
|
-
stroke: ${a.signalColor};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.messageLine1 {
|
|
47
|
-
stroke-width: 1.5;
|
|
48
|
-
stroke-dasharray: 2, 2;
|
|
49
|
-
stroke: ${a.signalColor};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
[id$="-arrowhead"] path {
|
|
53
|
-
fill: ${a.signalColor};
|
|
54
|
-
stroke: ${a.signalColor};
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.sequenceNumber {
|
|
58
|
-
fill: ${a.sequenceNumberColor};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
[id$="-sequencenumber"] {
|
|
62
|
-
fill: ${a.signalColor};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
[id$="-crosshead"] path {
|
|
66
|
-
fill: ${a.signalColor};
|
|
67
|
-
stroke: ${a.signalColor};
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.messageText {
|
|
71
|
-
fill: ${a.signalTextColor};
|
|
72
|
-
stroke: none;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.labelBox {
|
|
76
|
-
stroke: ${a.labelBoxBorderColor};
|
|
77
|
-
fill: ${a.labelBoxBkgColor};
|
|
78
|
-
filter: ${n==="neo"?t:"none"};
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.labelText, .labelText > tspan {
|
|
82
|
-
fill: ${a.labelTextColor};
|
|
83
|
-
stroke: none;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.loopText, .loopText > tspan {
|
|
87
|
-
fill: ${a.loopTextColor};
|
|
88
|
-
stroke: none;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.sectionTitle, .sectionTitle > tspan {
|
|
92
|
-
fill: ${a.loopTextColor};
|
|
93
|
-
stroke: none;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.loopLine {
|
|
97
|
-
stroke-width: 2px;
|
|
98
|
-
stroke-dasharray: 2, 2;
|
|
99
|
-
stroke: ${a.labelBoxBorderColor};
|
|
100
|
-
fill: ${a.labelBoxBorderColor};
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.note {
|
|
104
|
-
//stroke: #decc93;
|
|
105
|
-
stroke: ${a.noteBorderColor};
|
|
106
|
-
fill: ${a.noteBkgColor};
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/*
|
|
110
|
-
* No font-weight here, deliberately. Note text renders inside tspan elements, and a weight emitted at
|
|
111
|
-
* tspan level outranks the inline style drawText puts on the parent text element from the
|
|
112
|
-
* sequence.noteFontWeight config key -- so that documented key would never reach the glyphs.
|
|
113
|
-
* The theme variable formerly emitted here is a different value from that config key, and
|
|
114
|
-
* git/styles.js reads it as its own bold-label weight under redux and neo, so it cannot be
|
|
115
|
-
* lowered there either.
|
|
116
|
-
*/
|
|
117
|
-
.noteText, .noteText > tspan {
|
|
118
|
-
fill: ${a.noteTextColor};
|
|
119
|
-
stroke: none;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.activation0 {
|
|
123
|
-
fill: ${a.activationBkgColor};
|
|
124
|
-
stroke: ${a.activationBorderColor};
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.activation1 {
|
|
128
|
-
fill: ${a.activationBkgColor};
|
|
129
|
-
stroke: ${a.activationBorderColor};
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.activation2 {
|
|
133
|
-
fill: ${a.activationBkgColor};
|
|
134
|
-
stroke: ${a.activationBorderColor};
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.actorPopupMenu {
|
|
138
|
-
position: absolute;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.actorPopupMenuPanel {
|
|
142
|
-
position: absolute;
|
|
143
|
-
fill: ${a.actorBkg};
|
|
144
|
-
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|
145
|
-
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
|
|
146
|
-
}
|
|
147
|
-
.actor-man circle, line {
|
|
148
|
-
fill: ${a.actorBkg};
|
|
149
|
-
stroke-width: 2px;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
g rect.rect {
|
|
153
|
-
filter: ${t};
|
|
154
|
-
stroke: ${a.nodeBorder};
|
|
155
|
-
}
|
|
156
|
-
`},"getStyles"),kr=Ar,ee=44,be=6,jt=6,Nr=e((a,t)=>a.actorTextHeight??N.calculateTextDimensions(a.description??"",{fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}).height,"actorLabelHeight"),ar=e((a)=>ee+be+a+jt,"actorStackHeight"),wr=e((a,t,n)=>{let i=a+t,c=i-jt-n/2;return{lifelineStartY:i,glyphBottomY:i-jt-n-be,labelCenterY:c}},"headerBands"),Pr=e((a,t)=>{let n=a+jt,i=n+ee;return{glyphTopY:n,glyphBottomY:i,labelCenterY:i+be+t/2,stackHeight:ar(t)}},"footerBands"),Ct=36,Dr=-5,sr=60,tr=sr-Dr,zt=e((a,t,n,i)=>{if(t.look!=="neo")return null;let c=Nr(a,t);return n?Pr(i,c):wr(i,a.height,c)},"neoBands"),Nt="actor-top",wt="actor-bottom",re="actor-box",Mt="actor-man",St=new Set(["redux-color","redux-dark-color"]),Tt=e((a,t)=>a?.length?a[t%a.length]:void 0,"paletteColor"),qt=e(function(a,t){let n=nn(a,t);if(b().look==="neo")n.attr("data-look","neo");return n},"drawRect"),vr=e(function(a,t,n,i,c){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};let{links:d,actorCnt:o,rectData:l}=t;var x="none";if(c)x="block !important";let _=a.append("g");_.attr("id","actor"+o+"_popup"),_.attr("class","actorPopupMenu"),_.attr("display",x);var R="";if(l.class!==void 0)R=" "+l.class;let m=l.width>n?l.width:n,k=_.append("rect");if(k.attr("class","actorPopupMenuPanel"+R),k.attr("x",l.x),k.attr("y",l.height),k.attr("fill",l.fill),k.attr("stroke",l.stroke),k.attr("width",m),k.attr("height",l.height),k.attr("rx",l.rx),k.attr("ry",l.ry),d!=null){var V=20;for(let f in d){var w=_.append("a"),M=xe.sanitizeUrl(d[f]);w.attr("xlink:href",M),w.attr("target","_blank"),na(i)(f,w,l.x+10,l.height+V,m,20,{class:"actor"},i),V+=30}}return k.attr("height",V),{height:l.height+V,width:m}},"drawPopup"),ae=e(function(a){return"var pu = document.getElementById('"+a+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),te=e(async function(a,t,n=null){let i=a.append("foreignObject"),c=await _r(t.text,b()),o=i.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(c).node().getBoundingClientRect();if(i.attr("height",Math.round(o.height)).attr("width",Math.round(o.width)),t.class==="noteText"){let l=a.node().firstChild;l.setAttribute("height",o.height+2*t.textMargin);let x=l.getBBox();i.attr("x",Math.round(x.x+x.width/2-o.width/2)).attr("y",Math.round(x.y+x.height/2-o.height/2))}else if(n){let{startx:l,stopx:x,starty:_}=n;if(l>x){let R=l;l=x,x=R}if(i.attr("x",Math.round(l+Math.abs(l-x)/2-o.width/2)),t.class==="loopText")i.attr("y",Math.round(_));else i.attr("y",Math.round(_-o.height))}return[i]},"drawKatex"),Kt=e(function(a,t){let n=0,i=0,c=t.text.split(y.lineBreakRegex),[d,o]=Ge(t.fontSize),l=[],x=0,_=e(()=>t.y,"yfunc");if(t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0)switch(t.valign){case"top":case"start":_=e(()=>Math.round(t.y+t.textMargin),"yfunc");break;case"middle":case"center":_=e(()=>Math.round(t.y+(n+i+t.textMargin)/2),"yfunc");break;case"bottom":case"end":_=e(()=>Math.round(t.y+(n+i+2*t.textMargin)-t.textMargin),"yfunc");break}if(t.anchor!==void 0&&t.textMargin!==void 0&&t.width!==void 0)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="middle",t.alignmentBaseline="middle";break}for(let[R,m]of c.entries()){if(t.textMargin!==void 0&&t.textMargin===0&&d!==void 0)x=R*d;let k=a.append("text");if(k.attr("x",t.x),k.attr("y",_()),t.anchor!==void 0)k.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline);if(t.fontFamily!==void 0)k.style("font-family",t.fontFamily);if(o!==void 0)k.style("font-size",o);if(t.fontWeight!==void 0)k.style("font-weight",t.fontWeight);if(t.fill!==void 0)k.attr("fill",t.fill);if(t.class!==void 0)k.attr("class",t.class);if(t.dy!==void 0)k.attr("dy",t.dy);else if(x!==0)k.attr("dy",x);let V=m||Fi;if(t.tspan){let w=k.append("tspan");if(w.attr("x",t.x),t.fill!==void 0)w.attr("fill",t.fill);w.text(V)}else k.text(V);if(t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0)i+=(k._groups||k)[0][0].getBBox().height,n=i;l.push(k)}return l},"drawText"),ir=e(function(a,t){function n(c,d,o,l,x){return c+","+d+" "+(c+o)+","+d+" "+(c+o)+","+(d+l-x)+" "+(c+o-x*1.2)+","+(d+l)+" "+c+","+(d+l)}e(n,"genPoints");let i=a.append("polygon");return i.attr("points",n(t.x,t.y,t.width,t.height,7)),i.attr("class","labelBox"),t.y=t.y+t.height/2,Kt(a,t),i},"drawLabel"),j=-1,nr=e((a,t,n,i)=>{if(!a.select)return;n.forEach((c)=>{let d=t.get(c),o=a.select("#actor"+d.actorCnt);if(!i.mirrorActors&&d.stopy)o.attr("y2",d.stopy+d.height/2);else if(i.mirrorActors)o.attr("y2",d.stopy)})},"fixLifeLineHeights"),Cr=e(function(a,t,n,i,c,d){let o=i?t.stopy:t.starty,l=t.x+t.width/2,x=o+t.height,{look:_,theme:R,themeVariables:m}=n,{bkgColorArray:k,borderColorArray:V}=m,w=a.append("g").lower();var M=w;if(!i){if(j++,Object.keys(t.links||{}).length&&!n.forceMenus)M.attr("onclick",ae(`actor${j}_popup`)).attr("cursor","pointer");if(M.append("line").attr("id","actor"+j).attr("x1",l).attr("y1",x).attr("x2",l).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),M=w.append("g"),t.actorCnt=j,t.links!=null)M.attr("id","root-"+j);if(_==="neo")M.attr("data-look","neo")}let f=Ke();var Y="actor";if(t.properties?.class)Y=t.properties.class;else f.fill="#eaeaea";if(i)Y+=` ${wt}`;else Y+=` ${Nt}`;if(f.x=t.x,f.y=o,f.width=t.width,f.height=t.height,f.class=Y,f.rx=3,f.ry=3,f.name=t.name,_==="neo")f.rx=6,f.ry=6;let P=qt(M,f),K=d.get(t.name)??0;if(St.has(R))P.style("stroke",Tt(V,K)),P.style("fill",Tt(k,K));if(_==="neo")P.attr("filter",`url(#${Pt(c)})`);if(t.rectData=f,t.properties?.icon){let W=t.properties.icon.trim();if(W.charAt(0)==="@")ia(M,f.x+f.width-20,f.y+10,W.substr(1));else aa(M,f.x+f.width-20,f.y+10,W)}if(!i)M.attr("data-et","participant"),M.attr("data-type","participant"),M.attr("data-id",t.name);At(n,fe(t.description))(t.description,M,f.x,f.y,f.width,f.height,{class:`actor ${re}`},n);let F=t.height;if(P.node){let W=P.node().getBBox();if(n.look!=="neo")t.height=W.height,F=W.height}return F},"drawActorTypeParticipant"),Mr=e(function(a,t,n,i,c,d){let o=i?t.stopy:t.starty,l=t.x+t.width/2,x=o+t.height,{look:_,theme:R,themeVariables:m}=n,{bkgColorArray:k,borderColorArray:V}=m,w=a.append("g").lower();var M=w;if(!i){if(j++,Object.keys(t.links||{}).length&&!n.forceMenus)M.attr("onclick",ae(`actor${j}_popup`)).attr("cursor","pointer");if(M.append("line").attr("id","actor"+j).attr("x1",l).attr("y1",x).attr("x2",l).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),M=w.append("g"),t.actorCnt=j,t.links!=null)M.attr("id","root-"+j);if(_==="neo")M.attr("data-look","neo")}let f=Ke();var Y="actor";if(t.properties?.class)Y=t.properties.class;else f.fill="#eaeaea";if(i)Y+=` ${wt}`;else Y+=` ${Nt}`;f.x=t.x,f.y=o,f.width=t.width,f.height=t.height,f.class=Y,f.name=t.name;let P=6;if(n.look==="neo")f.height=t.height-P;let K={...f,x:f.x+(i?-P:-P),y:f.y+(i?+P:+P),class:"actor"},F=qt(M,f),W=qt(M,K);if(t.rectData=f,_==="neo")M.attr("filter",`url(#${Pt(c)})`);let z=d.get(t.name)??0;if(St.has(R))F.style("stroke",Tt(V,z)),F.style("fill",Tt(k,z)),W.style("stroke",Tt(V,z)),W.style("fill",Tt(k,z));if(t.properties?.icon){let Z=t.properties.icon.trim();if(Z.charAt(0)==="@")ia(M,f.x+f.width-20,f.y+10,Z.substr(1));else aa(M,f.x+f.width-20,f.y+10,Z)}At(n,fe(t.description))(t.description,M,f.x-P,f.y+P,f.width,f.height,{class:`actor ${re}`},n);let U=t.height;if(F.node){let Z=F.node().getBBox();if(n.look!=="neo")t.height=Z.height,U=Z.height}if(!i)M.attr("data-et","participant"),M.attr("data-type","collections"),M.attr("data-id",t.name);return U},"drawActorTypeCollections"),Yr=e(function(a,t,n,i,c,d){let o=i?t.stopy:t.starty,l=t.x+t.width/2,x=o+t.height,{look:_,theme:R,themeVariables:m}=n,{bkgColorArray:k,borderColorArray:V}=m,w=a.append("g").lower(),M=w;if(!i){if(j++,Object.keys(t.links||{}).length&&!n.forceMenus)M.attr("onclick",ae(`actor${j}_popup`)).attr("cursor","pointer");if(M.append("line").attr("id","actor"+j).attr("x1",l).attr("y1",x).attr("x2",l).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),M=w.append("g"),t.actorCnt=j,t.links!=null)M.attr("id","root-"+j);if(_==="neo")M.attr("data-look","neo")}let f=Ke(),Y="actor";if(t.properties?.class)Y=t.properties.class;else f.fill="#eaeaea";if(i)Y+=` ${wt}`;else Y+=` ${Nt}`;M.attr("class",Y),f.x=t.x,f.y=o,f.width=t.width,f.height=t.height,f.name=t.name;let P=f.height/2,K=P/(2.5+f.height/50),F=M.append("g"),W=M.append("g"),z=`M ${f.x},${f.y+P}
|
|
157
|
-
a ${K},${P} 0 0 0 0,${f.height}
|
|
158
|
-
h ${f.width-2*K}
|
|
159
|
-
a ${K},${P} 0 0 0 0,-${f.height}
|
|
160
|
-
Z
|
|
161
|
-
`;if(F.append("path").attr("d",z),W.append("path").attr("d",`M ${f.x},${f.y+P}
|
|
162
|
-
a ${K},${P} 0 0 0 0,${f.height}`),F.attr("transform",`translate(${K}, ${-(f.height/2)})`),W.attr("transform",`translate(${f.width-K}, ${-f.height/2})`),t.rectData=f,_==="neo")F.attr("filter",`url(#${Pt(c)})`);let U=d.get(t.name)??0;if(St.has(R))F.style("stroke",Tt(V,U)),F.style("fill",Tt(k,U)),W.style("stroke",Tt(V,U)),W.style("fill",Tt(k,U));if(t.properties?.icon){let st=t.properties.icon.trim(),lt=f.x+f.width-20,dt=f.y+10;if(st.charAt(0)==="@")ia(M,lt,dt,st.substr(1));else aa(M,lt,dt,st)}At(n,fe(t.description))(t.description,M,f.x,f.y,f.width,f.height,{class:`actor ${re}`},n);let Z=t.height,rt=F.select("path:last-child");if(rt.node()){let st=rt.node().getBBox();if(n.look!=="neo")t.height=st.height,Z=st.height}if(!i)M.attr("data-et","participant"),M.attr("data-type","queue"),M.attr("data-id",t.name);return Z},"drawActorTypeQueue"),Vr=e(function(a,t,n,i,c,d){let o=i?t.stopy:t.starty,l=t.x+t.width/2,x=zt(t,n,i,o),_=x?x.lifelineStartY:o+75,{look:R,theme:m,themeVariables:k}=n,{bkgColorArray:V,borderColorArray:w,actorBorder:M,actorBkg:f}=k,Y=a.append("g").lower();if(!i)j++,Y.append("line").attr("id","actor"+j).attr("x1",l).attr("y1",_).attr("x2",l).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=j;let P=a.append("g"),K=Mt;if(i)K+=` ${wt}`;else K+=` ${Nt}`;P.attr("class",K),P.attr("name",t.name);let F=Ke();F.x=t.x,F.y=o,F.fill="#eaeaea",F.width=t.width,F.height=t.height,F.class="actor";let W=t.x+t.width/2,z=x?x.glyphBottomY-22:o+32,U=22;P.append("defs").append("marker").attr("id",c+"-filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").attr("stroke-width",1.2).append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"),P.append("circle").attr("cx",W).attr("cy",z).attr("r",U).attr("filter",`${R==="neo"?`url(#${Pt(c)})`:""}`),P.append("line").attr("marker-end","url(#"+c+"-filled-head-control)").attr("transform",`translate(${W}, ${z-U})`);let Z=d.get(t.name)??0;if(St.has(m))P.style("stroke",Tt(w,Z)),P.style("fill",Tt(V,Z));else P.style("stroke",M),P.style("fill",f);if(!x){let rt=P.node().getBBox();t.height=rt.height+2*(n?.sequence?.labelBoxHeight??0)}if(At(n,fe(t.description))(t.description,P,F.x,x?x.labelCenterY-F.height/2:F.y+U+(!i?12:5),F.width,F.height,{class:`actor ${Mt}`},n),!i)P.attr("data-et","participant"),P.attr("data-type","control"),P.attr("data-id",t.name);return t.height},"drawActorTypeControl"),Wr=e(function(a,t,n,i,c,d){let o=i?t.stopy:t.starty,l=t.x+t.width/2,x=zt(t,n,i,o),_=x?x.lifelineStartY:o+75,{look:R,theme:m,themeVariables:k}=n,{bkgColorArray:V,borderColorArray:w}=k,M=a.append("g").lower(),f=a.append("g"),Y="actor";if(i)Y+=` ${wt}`;else Y+=` ${Nt}`;f.attr("class",Y),f.attr("name",t.name);let P=Ke();P.x=t.x,P.y=o,P.fill="#eaeaea",P.width=t.width,P.height=t.height,P.class="actor";let K=t.x+t.width/2,F=x?x.glyphBottomY-22:o+(!i?25:10),W=22;if(f.append("circle").attr("cx",K).attr("cy",F).attr("r",W).attr("width",t.width).attr("height",t.height),f.append("line").attr("x1",K-W).attr("x2",K+W).attr("y1",F+W).attr("y2",F+W).attr("stroke-width",2),R==="neo")f.attr("filter",`url(#${Pt(c)})`);let z=d.get(t.name)??0;if(St.has(m))f.style("stroke",Tt(w,z)),f.style("fill",Tt(V,z));if(!x){let U=f.node().getBBox();t.height=U.height+(n?.sequence?.labelBoxHeight??0)}if(!i)j++,M.append("line").attr("id","actor"+j).attr("x1",l).attr("y1",_).attr("x2",l).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=j;if(At(n,fe(t.description))(t.description,f,P.x,x?x.labelCenterY-P.height/2:P.y+(!i?30:15),P.width,P.height,{class:`actor ${Mt}`},n),!x)f.attr("transform",`translate(0, ${i?W:W/2-5})`);if(!i)f.attr("data-et","participant"),f.attr("data-type","entity"),f.attr("data-id",t.name);return t.height},"drawActorTypeEntity"),Kr=e(function(a,t,n,i,c,d){let o=i?t.stopy:t.starty,l=t.x+t.width/2,x=zt(t,n,i,o),_=x?x.lifelineStartY:o+t.height+2*n.boxTextMargin,{theme:R,themeVariables:m,look:k}=n,{bkgColorArray:V,borderColorArray:w,actorBorder:M}=m,f=a.append("g").lower(),Y=f;if(!i){if(j++,Object.keys(t.links||{}).length&&!n.forceMenus)Y.attr("onclick",ae(`actor${j}_popup`)).attr("cursor","pointer");if(Y.append("line").attr("id","actor"+j).attr("x1",l).attr("y1",_).attr("x2",l).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),Y=f.append("g"),t.actorCnt=j,t.links!=null)Y.attr("id","root-"+j);if(k==="neo")Y.attr("data-look","neo")}let P=Ke(),K="actor";if(t.properties?.class)K=t.properties.class;else P.fill="#eaeaea";if(i)K+=` ${wt}`;else K+=` ${Nt}`;P.x=t.x,P.y=o,P.width=t.width,P.height=t.height,P.class=K,P.name=t.name,P.x=t.x,P.y=o;let F=P.width/3,W=F/2,z=W/(2.5+F/50),U=x?ee:P.width/3,Z=x?x.glyphBottomY-U-z:P.y,rt=Y.append("g");rt.attr("class",K);let st=`
|
|
163
|
-
M ${P.x},${Z+z}
|
|
164
|
-
a ${W},${z} 0 0 0 ${F},0
|
|
165
|
-
a ${W},${z} 0 0 0 -${F},0
|
|
166
|
-
l 0,${U-2*z}
|
|
167
|
-
a ${W},${z} 0 0 0 ${F},0
|
|
168
|
-
l 0,-${U-2*z}
|
|
169
|
-
`;if(rt.append("path").attr("d",st),k==="neo")rt.attr("filter",`url(#${Pt(c)})`);let lt=d.get(t.name)??0;if(St.has(R))rt.style("stroke",Tt(w,lt)),rt.style("fill",Tt(V,lt));else rt.style("stroke",M);if(rt.attr("transform",`translate(${F}, ${z})`),t.rectData=P,At(n,fe(t.description))(t.description,Y,P.x,x?x.labelCenterY-P.height/2:P.y+35,P.width,P.height,{class:`actor ${re}`},n),!x){let dt=rt.select("path:last-child");if(dt.node()){let ft=dt.node().getBBox();t.height=ft.height+(n.sequence.labelBoxHeight??0)}}if(!i)Y.attr("data-et","participant"),Y.attr("data-type","database"),Y.attr("data-id",t.name);return t.height},"drawActorTypeDatabase"),Hr=e(function(a,t,n,i,c,d){let o=i?t.stopy:t.starty,l=t.x+t.width/2,x=zt(t,n,i,o),_=x?x.lifelineStartY:o+80,R=22,m=x?x.glyphBottomY-22:o+12,k=a.append("g").lower(),{look:V,theme:w,themeVariables:M}=n,{bkgColorArray:f,borderColorArray:Y,actorBorder:P}=M;if(!i)j++,k.append("line").attr("id","actor"+j).attr("x1",l).attr("y1",_).attr("x2",l).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=j;let K=a.append("g"),F=Mt;if(i)F+=` ${wt}`;else F+=` ${Nt}`;K.attr("class",F),K.attr("name",t.name);let W=Ke();if(W.x=t.x,W.y=o,W.fill="#eaeaea",W.width=t.width,W.height=t.height,W.class="actor",K.append("line").attr("id","actor-man-torso"+j).attr("x1",t.x+t.width/2-55).attr("y1",m).attr("x2",t.x+t.width/2-15).attr("y2",m),K.append("line").attr("id","actor-man-arms"+j).attr("x1",t.x+t.width/2-55).attr("y1",m-10).attr("x2",t.x+t.width/2-55).attr("y2",m+10),K.append("circle").attr("cx",t.x+t.width/2).attr("cy",m).attr("r",22),V==="neo")K.attr("filter",`url(#${Pt(c)})`);let z=d.get(t.name)??0;if(St.has(w))K.style("stroke",Tt(Y,z)),K.style("fill",Tt(f,z));else K.style("stroke",P);if(!x){let U=K.node().getBBox();t.height=U.height+(n.sequence.labelBoxHeight??0)}if(At(n,fe(t.description))(t.description,K,W.x,x?x.labelCenterY-W.height/2:W.y+15,W.width,W.height,{class:`actor ${Mt}`},n),!x)K.attr("transform","translate(0,21)");if(!i)K.attr("data-et","participant"),K.attr("data-type","boundary"),K.attr("data-id",t.name);return t.height},"drawActorTypeBoundary"),Fr=e(function(a,t,n,i,c){let d=i?t.stopy:t.starty,o=t.x+t.width/2,l=zt(t,n,i,d),x=l?l.lifelineStartY:d+80,{theme:_,themeVariables:R}=n,{bkgColorArray:m,borderColorArray:k,actorBorder:V}=R,w=a.append("g").lower();if(!i)j++,w.append("line").attr("id","actor"+j).attr("x1",o).attr("y1",x).attr("x2",o).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=j;let M=a.append("g"),f=Mt;if(i)f+=` ${wt}`;else f+=` ${Nt}`;if(M.attr("class",f),M.attr("name",t.name),!i)M.attr("data-et","participant").attr("data-type","actor").attr("data-id",t.name);let Y=l?ee/tr:1,P=e((U)=>l?l.glyphBottomY-(sr-U)*Y:d+U,"gy"),K=e((U)=>o+U*Y,"gx");M.append("line").attr("id","actor-man-torso"+j).attr("x1",o).attr("y1",P(25)).attr("x2",o).attr("y2",P(45)),M.append("line").attr("id","actor-man-arms"+j).attr("x1",K(-Ct/2)).attr("y1",P(33)).attr("x2",K(Ct/2)).attr("y2",P(33)),M.append("line").attr("x1",K(-Ct/2)).attr("y1",P(60)).attr("x2",o).attr("y2",P(45)),M.append("line").attr("x1",o).attr("y1",P(45)).attr("x2",K(Ct/2-2)).attr("y2",P(60));let F=M.append("circle");if(F.attr("cx",t.x+t.width/2),F.attr("cy",P(10)),F.attr("r",15*Y),F.attr("width",t.width),F.attr("height",t.height),!l)t.height=tr;let W=Ke();W.x=t.x,W.y=d,W.fill="#eaeaea",W.width=t.width,W.height=t.height,W.class="actor",W.rx=3,W.ry=3;let z=c.get(t.name)??0;if(St.has(_))M.style("stroke",Tt(k,z)),M.style("fill",Tt(m,z));else M.style("stroke",V);return At(n,fe(t.description))(t.description,M,W.x,l?l.labelCenterY-W.height/2:d+35,W.width,W.height,{class:`actor ${Mt}`},n),t.height},"drawActorTypeActor"),qr=e(async function(a,t,n,i,c,d,o){let l=o??new Map([...d.db.getActors().values()].map((x,_)=>[x.name,_]));switch(t.type){case"actor":return await Fr(a,t,n,i,l);case"participant":return await Cr(a,t,n,i,c,l);case"boundary":return await Hr(a,t,n,i,c,l);case"control":return await Vr(a,t,n,i,c,l);case"entity":return await Wr(a,t,n,i,c,l);case"database":return await Kr(a,t,n,i,c,l);case"collections":return await Mr(a,t,n,i,c,l);case"queue":return await Yr(a,t,n,i,c,l)}},"drawActor"),zr=e(function(a,t,n){let c=a.append("g");if(or(c,t),t.name)At(n)(t.name,c,t.x,t.y+n.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},n);c.lower()},"drawBox"),Ur=e(function(a){return a.append("g")},"anchorElement"),Gr=e(function(a,t,n,i,c,d,o){let{theme:l,themeVariables:x}=i,{bkgColorArray:_,borderColorArray:R,mainBkg:m}=x,k=Ke(),{anchored:V,actor:w}=t;k.x=t.startx,k.y=t.starty,k.class="activation"+c%3,k.width=t.stopx-t.startx,k.height=n-t.starty;let M=qt(V,k),Y=(o??new Map([...d.db.getActors().values()].map((P,K)=>[P.name,K]))).get(w)??0;if(St.has(l))M.style("stroke",Tt(R,Y)),M.style("fill",Tt(_,Y)??m)},"drawActivation"),Xr=e(async function(a,t,n,i,c){let{boxMargin:d,boxTextMargin:o,labelBoxHeight:l,labelBoxWidth:x,messageFontFamily:_,messageFontSize:R,messageFontWeight:m}=i,k=a.append("g").attr("data-et","control-structure").attr("data-id","i"+c.id),V=e(function(f,Y,P,K){return k.append("line").attr("x1",f).attr("y1",Y).attr("x2",P).attr("y2",K).attr("class","loopLine")},"drawLoopLine");if(V(t.startx,t.starty,t.stopx,t.starty),V(t.stopx,t.starty,t.stopx,t.stopy),V(t.startx,t.stopy,t.stopx,t.stopy),V(t.startx,t.starty,t.startx,t.stopy),t.sections!==void 0)t.sections.forEach(function(f){V(t.startx,f.y,t.stopx,f.y).style("stroke-dasharray","3, 3")});let w=oa();w.text=n,w.x=t.startx,w.y=t.starty,w.fontFamily=_,w.fontSize=R,w.fontWeight=m,w.anchor="middle",w.valign="middle",w.tspan=!1,w.width=Math.max(x??0,50),w.height=l+(i.look==="neo"?15:0)||20,w.textMargin=o,w.class="labelText",ir(k,w),w=cr(),w.text=t.title,w.x=t.startx+x/2+(t.stopx-t.startx)/2,w.y=t.starty+d+o,w.anchor="middle",w.valign="middle",w.textMargin=o,w.class="loopText",w.fontFamily=_,w.fontSize=R,w.fontWeight=m,w.wrap=!0;let M=fe(w.text)?await te(k,w,t):Kt(k,w);if(t.sectionTitles!==void 0){for(let[f,Y]of Object.entries(t.sectionTitles))if(Y.message){if(w.text=Y.message,w.x=t.startx+(t.stopx-t.startx)/2,w.y=t.sections[f].y+d+o,w.class="sectionTitle",w.anchor="middle",w.valign="middle",w.tspan=!1,w.fontFamily=_,w.fontSize=R,w.fontWeight=m,w.wrap=t.wrap,fe(w.text))t.starty=t.sections[f].y,await te(k,w,t);else Kt(k,w);let P=Math.round(M.map((K)=>(K._groups||K)[0][0].getBBox().height).reduce((K,F)=>K+F));t.sections[f].height+=P-(d+o)}}return t.height=Math.round(t.stopy-t.starty),k},"drawLoop"),or=e(function(a,t){Br(a,t)},"drawBackgroundRect"),Qr=e(function(a,t){a.append("defs").append("symbol").attr("id",t+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),Jr=e(function(a,t){a.append("defs").append("symbol").attr("id",t+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),Zr=e(function(a,t){a.append("defs").append("symbol").attr("id",t+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),$r=e(function(a,t){a.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),jr=e(function(a,t){a.append("defs").append("marker").attr("id",t+"-filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),ta=e(function(a,t){a.append("defs").append("marker").attr("id",t+"-sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertSequenceNumber"),ea=e(function(a,t){a.append("defs").append("marker").attr("id",t+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),Pt=e((a)=>a?`${a}-drop-shadow`:"drop-shadow","dropShadowId"),ra=e(function(a,t,n){let{theme:i}=t;a.append("defs").append("filter").attr("id",Pt(n)).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i==="redux"||i==="redux-color"?"#000000":"#FFFFFF"}`)},"insertDropShadow"),cr=e(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),sa=e(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),At=function(){function a(d,o,l,x,_,R,m){let k=o.append("text").attr("x",l+_/2).attr("y",x+R/2+5).style("text-anchor","middle").text(d);c(k,m)}e(a,"byText");function t(d,o,l,x,_,R,m,k){let{actorFontSize:V,actorFontFamily:w,actorFontWeight:M}=k,[f,Y]=Ge(V),P=d.split(y.lineBreakRegex);for(let K=0;K<P.length;K++){let F=K*f-f*(P.length-1)/2,W=o.append("text").attr("x",l+_/2).attr("y",x).style("text-anchor","middle").style("font-size",Y).style("font-weight",M).style("font-family",w);W.append("tspan").attr("x",l+_/2).attr("dy",F).text(P[K]),W.attr("y",x+R/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),c(W,m)}}e(t,"byTspan");function n(d,o,l,x,_,R,m,k){let V=o.append("switch"),M=V.append("foreignObject").attr("x",l).attr("y",x).attr("width",_).attr("height",R).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");M.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(d),t(d,V,l,x,_,R,m,k),c(M,m)}e(n,"byFo");async function i(d,o,l,x,_,R,m,k){let V=await xr(d,b()),w=o.append("switch"),f=w.append("foreignObject").attr("x",l+_/2-V.width/2).attr("y",x+R/2-V.height/2).attr("width",V.width).attr("height",V.height).append("xhtml:div").style("height","100%").style("width","100%");f.append("div").style("text-align","center").style("vertical-align","middle").html(await _r(d,b())),t(d,w,l,x,_,R,m,k),c(f,m)}e(i,"byKatex");function c(d,o){for(let l in o)if(o.hasOwnProperty(l))d.attr(l,o[l])}return e(c,"_setTextAttrs"),function(d,o=!1){if(o)return i;return d.textPlacement==="fo"?n:d.textPlacement==="old"?a:t}}(),na=function(){function a(c,d,o,l,x,_,R){let m=d.append("text").attr("x",o).attr("y",l).style("text-anchor","start").text(c);i(m,R)}e(a,"byText");function t(c,d,o,l,x,_,R,m){let{actorFontSize:k,actorFontFamily:V,actorFontWeight:w}=m,M=c.split(y.lineBreakRegex);for(let f=0;f<M.length;f++){let Y=f*k-k*(M.length-1)/2,P=d.append("text").attr("x",o).attr("y",l).style("text-anchor","start").style("font-size",k).style("font-weight",w).style("font-family",V);P.append("tspan").attr("x",o).attr("dy",Y).text(M[f]),P.attr("y",l+_/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(P,R)}}e(t,"byTspan");function n(c,d,o,l,x,_,R,m){let k=d.append("switch"),w=k.append("foreignObject").attr("x",o).attr("y",l).attr("width",x).attr("height",_).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");w.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(c),t(c,k,o,l,x,_,R,m),i(w,R)}e(n,"byFo");function i(c,d){for(let o in d)if(d.hasOwnProperty(o))c.attr(o,d[o])}return e(i,"_setTextAttrs"),function(c){return c.textPlacement==="fo"?n:c.textPlacement==="old"?a:t}}(),ca=e(function(a,t){a.append("defs").append("marker").attr("id",t+"-solidTopArrowHead").attr("refX",7.9).attr("refY",7.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 8 L 0 8 z")},"insertSolidTopArrowHead"),la=e(function(a,t){a.append("defs").append("marker").attr("id",t+"-solidBottomArrowHead").attr("refX",7.9).attr("refY",0.75).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 0 L 0 8 z")},"insertSolidBottomArrowHead"),ha=e(function(a,t){a.append("defs").append("marker").attr("id",t+"-stickTopArrowHead").attr("refX",7.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 7 7").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickTopArrowHead"),da=e(function(a,t){a.append("defs").append("marker").attr("id",t+"-stickBottomArrowHead").attr("refX",7.5).attr("refY",0).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 7 L 7 0").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickBottomArrowHead"),ct={drawRect:qt,drawText:Kt,drawLabel:ir,drawActor:qr,drawBox:zr,drawPopup:vr,anchorElement:Ur,drawActivation:Gr,drawLoop:Xr,drawBackgroundRect:or,insertArrowHead:$r,insertArrowFilledHead:jr,insertSequenceNumber:ta,insertArrowCrossHead:ea,insertDatabaseIcon:Qr,insertComputerIcon:Jr,insertClockIcon:Zr,getTextObj:cr,getNoteRect:sa,fixLifeLineHeights:nr,sanitizeUrl:xe.sanitizeUrl,insertDropShadow:ra,insertSolidTopArrowHead:ca,insertSolidBottomArrowHead:la,insertStickTopArrowHead:ha,insertStickBottomArrowHead:da},u={},v={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:e(function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map((a)=>a.height||0))+(this.loops.length===0?0:this.loops.map((a)=>a.height||0).reduce((a,t)=>a+t))+(this.messages.length===0?0:this.messages.map((a)=>a.height||0).reduce((a,t)=>a+t))+(this.notes.length===0?0:this.notes.map((a)=>a.height||0).reduce((a,t)=>a+t))},"getHeight"),clear:e(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:e(function(a){this.boxes.push(a)},"addBox"),addActor:e(function(a){this.actors.push(a)},"addActor"),addLoop:e(function(a){this.loops.push(a)},"addLoop"),addMessage:e(function(a){this.messages.push(a)},"addMessage"),addNote:e(function(a){this.notes.push(a)},"addNote"),lastActor:e(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:e(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:e(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:e(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:e(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,dr(s())},"init"),updateVal:e(function(a,t,n,i){if(a[t]===void 0)a[t]=n;else a[t]=i(n,a[t])},"updateVal"),updateBounds:e(function(a,t,n,i){let c=this,d=0;function o(l){return e(function(_){d++;let R=c.sequenceItems.length-d+1;if(c.updateVal(_,"starty",t-R*u.boxMargin,Math.min),c.updateVal(_,"stopy",i+R*u.boxMargin,Math.max),c.updateVal(v.data,"startx",a-R*u.boxMargin,Math.min),c.updateVal(v.data,"stopx",n+R*u.boxMargin,Math.max),l!=="activation")c.updateVal(_,"startx",a-R*u.boxMargin,Math.min),c.updateVal(_,"stopx",n+R*u.boxMargin,Math.max),c.updateVal(v.data,"starty",t-R*u.boxMargin,Math.min),c.updateVal(v.data,"stopy",i+R*u.boxMargin,Math.max)},"updateItemBounds")}e(o,"updateFn"),this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},"updateBounds"),insert:e(function(a,t,n,i){let c=y.getMin(a,n),d=y.getMax(a,n),o=y.getMin(t,i),l=y.getMax(t,i);this.updateVal(v.data,"startx",c,Math.min),this.updateVal(v.data,"starty",o,Math.min),this.updateVal(v.data,"stopx",d,Math.max),this.updateVal(v.data,"stopy",l,Math.max),this.updateBounds(c,o,d,l)},"insert"),newActivation:e(function(a,t,n){let i=n.get(a.from),c=se(a.from).length||0,d=i.x+i.width/2+(c-1)*u.activationWidth/2;this.activations.push({startx:d,starty:this.verticalPos+2,stopx:d+u.activationWidth,stopy:void 0,actor:a.from,anchored:ct.anchorElement(t)})},"newActivation"),endActivation:e(function(a){let t=this.activations.map(function(n){return n.actor}).lastIndexOf(a.from);return this.activations.splice(t,1)[0]},"endActivation"),createLoop:e(function(a={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:a.message,wrap:a.wrap,width:a.width,height:0,fill:t}},"createLoop"),newLoop:e(function(a={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(a,t))},"newLoop"),endLoop:e(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:e(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:e(function(a){let t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:v.getVerticalPos(),height:0}),t.sectionTitles.push(a),this.sequenceItems.push(t)},"addSectionToLoop"),saveVerticalPos:e(function(){if(this.isLoopOverlap())this.savedVerticalPos=this.verticalPos},"saveVerticalPos"),resetVerticalPos:e(function(){if(this.isLoopOverlap())this.verticalPos=this.savedVerticalPos},"resetVerticalPos"),bumpVerticalPos:e(function(a){this.verticalPos=this.verticalPos+a,this.data.stopy=y.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:e(function(){return this.verticalPos},"getVerticalPos"),getBounds:e(function(){return{bounds:this.data,models:this.models}},"getBounds")},Ta=e(async function(a,t,n){v.bumpVerticalPos(u.boxMargin),t.height=u.boxMargin,t.starty=v.getVerticalPos();let i=Ke();i.x=t.startx,i.y=t.starty,i.width=t.width||u.width,i.class="note";let c=a.append("g");c.attr("data-et","note"),c.attr("data-id","i"+n);let d=ct.drawRect(c,i),o=oa();o.x=t.startx,o.y=t.starty,o.width=i.width,o.dy="1em",o.text=t.message,o.class="noteText",o.fontFamily=u.noteFontFamily,o.fontSize=u.noteFontSize,o.fontWeight=u.noteFontWeight,o.anchor=u.noteAlign,o.textMargin=u.noteMargin,o.valign="center";let l=fe(o.text)?await te(c,o):Kt(c,o),x=Math.round(l.map((_)=>(_._groups||_)[0][0].getBBox().height).reduce((_,R)=>_+R));d.attr("height",x+2*u.noteMargin),t.height+=x+2*u.noteMargin,v.bumpVerticalPos(x+2*u.noteMargin),t.stopy=t.starty+x+2*u.noteMargin,t.stopx=t.startx+i.width,v.insert(t.startx,t.starty,t.stopx,t.stopy),v.models.addNote(t)},"drawNote"),er=e(function(a,t,n,i,c,d,o){let l=i.db.getActors(),x=l.get(t.from),_=l.get(t.to),R=n.sequenceVisible,m=x.x+x.width/2,k=_.x+_.width/2,V=m<=k,w=ur(t,i),M=a.append("g"),f=16.5,Y=e((z,U)=>{let Z=z?f:-f;return U?-Z:Z},"getCircleOffset"),P=e((z)=>{M.append("circle").attr("cx",z).attr("cy",o).attr("r",5).attr("width",10).attr("height",10)},"drawCircle"),{CENTRAL_CONNECTION:K,CENTRAL_CONNECTION_REVERSE:F,CENTRAL_CONNECTION_DUAL:W}=i.db.LINETYPE;if(R)switch(t.centralConnection){case K:if(w)k+=Y(V,!0);break;case F:if(!w)m+=Y(V,!1);break;case W:if(w)k+=Y(V,!0);else m+=Y(V,!1);break}switch(t.centralConnection){case K:P(k);break;case F:P(m);break;case W:P(m),P(k);break}},"drawCentralConnection"),Bt=e((a)=>({fontFamily:a.messageFontFamily,fontSize:a.messageFontSize,fontWeight:a.messageFontWeight}),"messageFont"),Wt=e((a)=>({fontFamily:a.noteFontFamily,fontSize:a.noteFontSize,fontWeight:a.noteFontWeight}),"noteFont"),_e=e((a)=>({fontFamily:a.actorFontFamily,fontSize:a.actorFontSize,fontWeight:a.actorFontWeight}),"actorFont");async function lr(a,t){v.bumpVerticalPos(10);let{startx:n,stopx:i,message:c}=t,d=y.splitBreaks(c).length,o=fe(c),l=o?await xr(c,s()):N.calculateTextDimensions(c,Bt(u));if(!o){let m=l.height/d;t.height+=m,v.bumpVerticalPos(m)}let x,_=l.height-10,R=l.width;if(n===i){if(x=v.getVerticalPos()+_,!u.rightAngles)_+=u.boxMargin,x=v.getVerticalPos()+_;_+=30;let m=y.getMax(R/2,u.width/2);v.insert(n-m,v.getVerticalPos()-10+_,i+m,v.getVerticalPos()+30+_)}else _+=u.boxMargin,x=v.getVerticalPos()+_,v.insert(n,x-10,i,x);return v.bumpVerticalPos(_),t.height+=_,t.stopy=t.starty+t.height,v.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),x}e(lr,"boundMessage");var pa=e(async function(a,t,n,i,c,d){let{startx:o,stopx:l,starty:x,message:_,type:R,sequenceIndex:m,sequenceVisible:k}=t,V=N.calculateTextDimensions(_,Bt(u)),w=oa();if(w.x=Math.min(o,l),w.y=x+10,w.width=Math.abs(l-o),w.class="messageText",w.dy="1em",w.text=_,w.fontFamily=u.messageFontFamily,w.fontSize=u.messageFontSize,w.fontWeight=u.messageFontWeight,w.anchor=u.messageAlign,w.valign="center",w.textMargin=u.wrapPadding,w.tspan=!1,fe(w.text))await te(a,w,{startx:o,stopx:l,starty:n});else Kt(a,w);let M=V.width,f;if(o===l){let P=k||u.showSequenceNumbers,K=ur(c,i),F=Ia(c,i),W=o+(P&&(K||F)?10:0);if(u.rightAngles)f=a.append("path").attr("d",`M ${W},${n} H ${o+y.getMax(u.width/2,M/2)} V ${n+25} H ${o}`);else f=a.append("path").attr("d","M "+W+","+n+" C "+(W+60)+","+(n-10)+" "+(o+60)+","+(n+30)+" "+o+","+(n+20));if(Ee(c,i))er(a,c,t,i,o,l,n)}else if(f=a.append("line"),f.attr("x1",o),f.attr("y1",n),f.attr("x2",l),f.attr("y2",n),Ee(c,i))er(a,c,t,i,o,l,n);if(R===i.db.LINETYPE.DOTTED||R===i.db.LINETYPE.DOTTED_CROSS||R===i.db.LINETYPE.DOTTED_POINT||R===i.db.LINETYPE.DOTTED_OPEN||R===i.db.LINETYPE.BIDIRECTIONAL_DOTTED||R===i.db.LINETYPE.SOLID_TOP_DOTTED||R===i.db.LINETYPE.SOLID_BOTTOM_DOTTED||R===i.db.LINETYPE.STICK_TOP_DOTTED||R===i.db.LINETYPE.STICK_BOTTOM_DOTTED||R===i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||R===i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||R===i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||R===i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)f.style("stroke-dasharray","3, 3"),f.attr("class","messageLine1");else f.attr("class","messageLine0");f.attr("data-et","message"),f.attr("data-id","i"+t.id),f.attr("data-from",t.from),f.attr("data-to",t.to);let Y="";if(u.arrowMarkerAbsolute)Y=Mi(!0);if(f.attr("stroke-width",2),f.attr("stroke","none"),f.style("fill","none"),R===i.db.LINETYPE.SOLID_TOP||R===i.db.LINETYPE.SOLID_TOP_DOTTED)f.attr("marker-end","url("+Y+"#"+d+"-solidTopArrowHead)");if(R===i.db.LINETYPE.SOLID_BOTTOM||R===i.db.LINETYPE.SOLID_BOTTOM_DOTTED)f.attr("marker-end","url("+Y+"#"+d+"-solidBottomArrowHead)");if(R===i.db.LINETYPE.STICK_TOP||R===i.db.LINETYPE.STICK_TOP_DOTTED)f.attr("marker-end","url("+Y+"#"+d+"-stickTopArrowHead)");if(R===i.db.LINETYPE.STICK_BOTTOM||R===i.db.LINETYPE.STICK_BOTTOM_DOTTED)f.attr("marker-end","url("+Y+"#"+d+"-stickBottomArrowHead)");if(R===i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||R===i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)f.attr("marker-start","url("+Y+"#"+d+"-solidBottomArrowHead)");if(R===i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||R===i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)f.attr("marker-start","url("+Y+"#"+d+"-solidTopArrowHead)");if(R===i.db.LINETYPE.STICK_ARROW_TOP_REVERSE||R===i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)f.attr("marker-start","url("+Y+"#"+d+"-stickBottomArrowHead)");if(R===i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||R===i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)f.attr("marker-start","url("+Y+"#"+d+"-stickTopArrowHead)");if(R===i.db.LINETYPE.SOLID||R===i.db.LINETYPE.DOTTED)f.attr("marker-end","url("+Y+"#"+d+"-arrowhead)");if(R===i.db.LINETYPE.BIDIRECTIONAL_SOLID||R===i.db.LINETYPE.BIDIRECTIONAL_DOTTED)f.attr("marker-start","url("+Y+"#"+d+"-arrowhead)"),f.attr("marker-end","url("+Y+"#"+d+"-arrowhead)");if(R===i.db.LINETYPE.SOLID_POINT||R===i.db.LINETYPE.DOTTED_POINT)f.attr("marker-end","url("+Y+"#"+d+"-filled-head)");if(R===i.db.LINETYPE.SOLID_CROSS||R===i.db.LINETYPE.DOTTED_CROSS)f.attr("marker-end","url("+Y+"#"+d+"-crosshead)");if(k||u.showSequenceNumbers){let P=R===i.db.LINETYPE.BIDIRECTIONAL_SOLID||R===i.db.LINETYPE.BIDIRECTIONAL_DOTTED,K=R===i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||R===i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||R===i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||R===i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||R===i.db.LINETYPE.STICK_ARROW_TOP_REVERSE||R===i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||R===i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||R===i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,F=6,W=Ee(c,i),z=o,U=l;if(P){if(o<l)z=o+12;else z=o-6+(W?-5:0),z+=c?.centralConnection===i.db.LINETYPE.CENTRAL_CONNECTION_DUAL||c?.centralConnection===i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0;f.attr("x1",z)}else if(K){if(l>o)U=l-12;else U=l-6,z+=c?.centralConnection===i.db.LINETYPE.CENTRAL_CONNECTION_DUAL||c?.centralConnection===i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0;U+=W?15:0,f.attr("x2",U),f.attr("x1",z)}else f.attr("x1",o+6);let Z=0,rt=o===l,st=o<=l;if(rt)Z=t.fromBounds+1;else if(K)Z=st?t.toBounds-1:t.fromBounds+1;else Z=st?t.fromBounds+1:t.toBounds-1;let lt="12px",dt=m.toString().length;if(dt>5)lt="7px";else if(dt>3)lt="9px";a.append("line").attr("x1",Z).attr("y1",n).attr("x2",Z).attr("y2",n).attr("stroke-width",0).attr("marker-start","url("+Y+"#"+d+"-sequencenumber)"),a.append("text").attr("x",Z).attr("y",n+4).attr("font-family","sans-serif").attr("font-size",lt).attr("text-anchor","middle").attr("class","sequenceNumber").text(m)}},"drawMessage"),Ea=e(function(a,t,n,i,c,d,o){let l=0,x=0,_=void 0,R=0;for(let m of i){let k=t.get(m),V=k.box;if(_&&_!=V){if(!o)v.models.addBox(_);x+=u.boxMargin+_.margin}if(V&&V!=_){if(!o)V.x=l+x,V.y=c;x+=V.margin}if(k.width=y.getMax(k.width||u.width,u.width),k.height=y.getMax(k.height||u.height,u.height),k.margin=k.margin||u.actorMargin,R=y.getMax(R,k.height),n.get(k.name))x+=k.width/2;if(k.x=l+x,k.starty=v.getVerticalPos(),v.insert(k.x,c,k.x+k.width,k.height),l+=k.width+x,k.box)k.box.width=l+V.margin-k.box.x;x=k.margin,_=k.box,v.models.addActor(k)}if(_&&!o)v.models.addBox(_);v.bumpVerticalPos(R)},"addActorRenderingData"),ge=e(async function(a,t,n,i,c,d,o){if(!i)for(let l of n){let x=t.get(l);await ct.drawActor(a,x,u,!1,c,d,o)}else{let l=0;v.bumpVerticalPos(u.boxMargin*2);for(let x of n){let _=t.get(x);if(!_.stopy)_.stopy=v.getVerticalPos();let R=await ct.drawActor(a,_,u,!0,c,d,o);l=y.getMax(l,R)}v.bumpVerticalPos(l+u.boxMargin)}},"drawActors"),hr=e(function(a,t,n,i){let c=0,d=0;for(let o of n){let l=t.get(o),x=fa(l),_=ct.drawPopup(a,l,x,u,u.forceMenus,i);if(_.height>c)c=_.height;if(_.width+l.x>d)d=_.width+l.x}return{maxHeight:c,maxWidth:d}},"drawActorsPopup"),dr=e(function(a){if(ne(u,a),a.fontFamily)u.actorFontFamily=u.noteFontFamily=u.messageFontFamily=a.fontFamily;if(a.fontSize)u.actorFontSize=u.noteFontSize=u.messageFontSize=a.fontSize;if(a.fontWeight)u.actorFontWeight=u.noteFontWeight=u.messageFontWeight=a.fontWeight},"setConf"),se=e(function(a){return v.activations.filter(function(t){return t.actor===a})},"actorActivations"),rr=e(function(a,t){let n=t.get(a),i=se(a),c=i.reduce(function(o,l){return y.getMin(o,l.startx)},n.x+n.width/2-1),d=i.reduce(function(o,l){return y.getMax(o,l.stopx)},n.x+n.width/2+1);return[c,d]},"activationBounds");function Lt(a,t,n,i,c){v.bumpVerticalPos(n);let d=i;if(t.id&&t.message&&a[t.id]){let o=a[t.id].width,l=Bt(u);t.message=N.wrapLabel(`[${t.message}]`,o-2*u.wrapPadding,l),t.width=o,t.wrap=!0;let x=N.calculateTextDimensions(t.message,l),_=y.getMax(x.height,u.labelBoxHeight);d=i+_,r.debug(`${_} - ${t.message}`)}c(t),v.bumpVerticalPos(d)}e(Lt,"adjustLoopHeightForWrap");function Tr(a,t,n,i,c,d,o){function l(R,m){if(R.x<c.get(a.from).x)v.insert(t.stopx-m,t.starty,t.startx,t.stopy+R.height/2+u.noteMargin),t.stopx=t.stopx+m;else v.insert(t.startx,t.starty,t.stopx+m,t.stopy+R.height/2+u.noteMargin),t.stopx=t.stopx-m}e(l,"receiverAdjustment");function x(R,m){if(R.x<c.get(a.to).x)v.insert(t.startx-m,t.starty,t.stopx,t.stopy+R.height/2+u.noteMargin),t.startx=t.startx+m;else v.insert(t.stopx,t.starty,t.startx+m,t.stopy+R.height/2+u.noteMargin),t.startx=t.startx-m}e(x,"senderAdjustment");let _=[$t.ACTOR,$t.CONTROL,$t.ENTITY,$t.DATABASE];if(d.get(a.to)==i){let R=c.get(a.to),m=_.includes(R.type)?Ct/2+3:R.width/2+3;l(R,m),R.starty=n-R.height/2,v.bumpVerticalPos(R.height/2)}else if(o.get(a.from)==i){let R=c.get(a.from);if(u.mirrorActors){let m=_.includes(R.type)?Ct/2:R.width/2;x(R,m)}R.stopy=n-R.height/2,v.bumpVerticalPos(R.height/2)}else if(o.get(a.to)==i){let R=c.get(a.to);if(u.mirrorActors){let m=_.includes(R.type)?Ct/2+3:R.width/2+3;l(R,m)}R.stopy=n-R.height/2,v.bumpVerticalPos(R.height/2)}}e(Tr,"adjustCreatedDestroyedData");var ua=e(async function(a,t,n,i){let{securityLevel:c,sequence:d,look:o,themeVariables:l}=s();u=d;let x;if(c==="sandbox")x=p("#i"+t);let _=c==="sandbox"?p(x.nodes()[0].contentDocument.body):p("body"),R=c==="sandbox"?x.nodes()[0].contentDocument:document;v.init(),r.debug(i.db);let m=c==="sandbox"?_.select(`[id="${t}"]`):p(`[id="${t}"]`),k=i.db.getActors(),V=i.db.getCreatedActors(),w=i.db.getDestroyedActors(),M=i.db.getBoxes(),f=i.db.getActorKeys(),Y=i.db.getMessages(),P=i.db.getDiagramTitle(),K=i.db.hasAtLeastOneBox(),F=i.db.hasAtLeastOneBoxWithTitle(),W=await pr(k,Y,i);if(u.height=await Er(k,W,M),ct.insertComputerIcon(m,t),ct.insertDatabaseIcon(m,t),ct.insertClockIcon(m,t),K){if(v.bumpVerticalPos(u.boxMargin),F)v.bumpVerticalPos(M[0].textMaxHeight)}if(u.hideUnusedParticipants===!0){let H=new Set;Y.forEach((X)=>{H.add(X.from),H.add(X.to)}),f=f.filter((X)=>H.has(X))}let z=new Map(f.map((H,X)=>[k.get(H)?.name??H,X]));Ea(m,k,V,f,0,Y,!1);let U=await Ra(Y,k,W,i);if(ct.insertArrowHead(m,t),ct.insertArrowCrossHead(m,t),ct.insertArrowFilledHead(m,t),ct.insertSequenceNumber(m,t),ct.insertSolidTopArrowHead(m,t),ct.insertSolidBottomArrowHead(m,t),ct.insertStickTopArrowHead(m,t),ct.insertStickBottomArrowHead(m,t),o==="neo")ct.insertDropShadow(m,u,t);function Z(H,X){let Ot=v.endActivation(H);if(Ot.starty+18>X)Ot.starty=X-6,X+=12;ct.drawActivation(m,Ot,X,u,se(H.from).length,i,z),v.insert(Ot.startx,X-10,Ot.stopx,X)}e(Z,"activeEnd");let rt=1,st=1,lt=[],dt=[],ft=0;for(let H of Y){let X,Ot,xt;switch(H.type){case i.db.LINETYPE.NOTE:v.resetVerticalPos(),Ot=H.noteModel,await Ta(m,Ot,H.id);break;case i.db.LINETYPE.ACTIVE_START:v.newActivation(H,m,k);break;case i.db.LINETYPE.CENTRAL_CONNECTION:v.newActivation(H,m,k);break;case i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:v.newActivation(H,m,k);break;case i.db.LINETYPE.ACTIVE_END:Z(H,v.getVerticalPos());break;case i.db.LINETYPE.LOOP_START:Lt(U,H,u.boxMargin,u.boxMargin+u.boxTextMargin,(it)=>v.newLoop(it));break;case i.db.LINETYPE.LOOP_END:X=v.endLoop(),await ct.drawLoop(m,X,"loop",u,H),v.bumpVerticalPos(X.stopy-v.getVerticalPos()),v.models.addLoop(X);break;case i.db.LINETYPE.RECT_START:Lt(U,H,u.boxMargin,u.boxMargin,(it)=>{let Yt=it.message;if(!Yt)Yt=l?.rectBkgColor||l?.actorBkg||"rgba(128, 128, 128, 0.5)";v.newLoop(void 0,Yt)});break;case i.db.LINETYPE.RECT_END:X=v.endLoop(),dt.push(X),v.models.addLoop(X),v.bumpVerticalPos(X.stopy-v.getVerticalPos());break;case i.db.LINETYPE.OPT_START:Lt(U,H,u.boxMargin,u.boxMargin+u.boxTextMargin,(it)=>v.newLoop(it));break;case i.db.LINETYPE.OPT_END:X=v.endLoop(),await ct.drawLoop(m,X,"opt",u,H),v.bumpVerticalPos(X.stopy-v.getVerticalPos()),v.models.addLoop(X);break;case i.db.LINETYPE.ALT_START:Lt(U,H,u.boxMargin,u.boxMargin+u.boxTextMargin,(it)=>v.newLoop(it));break;case i.db.LINETYPE.ALT_ELSE:Lt(U,H,u.boxMargin+u.boxTextMargin,u.boxMargin,(it)=>v.addSectionToLoop(it));break;case i.db.LINETYPE.ALT_END:X=v.endLoop(),await ct.drawLoop(m,X,"alt",u,H),v.bumpVerticalPos(X.stopy-v.getVerticalPos()),v.models.addLoop(X);break;case i.db.LINETYPE.PAR_START:case i.db.LINETYPE.PAR_OVER_START:Lt(U,H,u.boxMargin,u.boxMargin+u.boxTextMargin,(it)=>v.newLoop(it)),v.saveVerticalPos();break;case i.db.LINETYPE.PAR_AND:Lt(U,H,u.boxMargin+u.boxTextMargin,u.boxMargin,(it)=>v.addSectionToLoop(it));break;case i.db.LINETYPE.PAR_END:X=v.endLoop(),await ct.drawLoop(m,X,"par",u,H),v.bumpVerticalPos(X.stopy-v.getVerticalPos()),v.models.addLoop(X);break;case i.db.LINETYPE.AUTONUMBER:if(rt=H.message.start||rt,st=H.message.step||st,H.message.visible)i.db.enableSequenceNumbers();else i.db.disableSequenceNumbers();break;case i.db.LINETYPE.CRITICAL_START:Lt(U,H,u.boxMargin,u.boxMargin+u.boxTextMargin,(it)=>v.newLoop(it));break;case i.db.LINETYPE.CRITICAL_OPTION:Lt(U,H,u.boxMargin+u.boxTextMargin,u.boxMargin,(it)=>v.addSectionToLoop(it));break;case i.db.LINETYPE.CRITICAL_END:X=v.endLoop(),await ct.drawLoop(m,X,"critical",u,H),v.bumpVerticalPos(X.stopy-v.getVerticalPos()),v.models.addLoop(X);break;case i.db.LINETYPE.BREAK_START:Lt(U,H,u.boxMargin,u.boxMargin+u.boxTextMargin,(it)=>v.newLoop(it));break;case i.db.LINETYPE.BREAK_END:X=v.endLoop(),await ct.drawLoop(m,X,"break",u,H),v.bumpVerticalPos(X.stopy-v.getVerticalPos()),v.models.addLoop(X);break;default:try{xt=H.msgModel,xt.starty=v.getVerticalPos(),xt.sequenceIndex=rt,xt.sequenceVisible=i.db.showSequenceNumbers(),xt.id=H.id,xt.from=H.from,xt.to=H.to;let it=await lr(m,xt);Tr(H,xt,it,ft,k,V,w),lt.push({messageModel:xt,lineStartY:it,msg:H}),v.models.addMessage(xt)}catch(it){r.error("error while drawing message",it)}}if([i.db.LINETYPE.SOLID_OPEN,i.db.LINETYPE.DOTTED_OPEN,i.db.LINETYPE.SOLID,i.db.LINETYPE.SOLID_TOP,i.db.LINETYPE.SOLID_BOTTOM,i.db.LINETYPE.STICK_TOP,i.db.LINETYPE.STICK_BOTTOM,i.db.LINETYPE.SOLID_TOP_DOTTED,i.db.LINETYPE.SOLID_BOTTOM_DOTTED,i.db.LINETYPE.STICK_TOP_DOTTED,i.db.LINETYPE.STICK_BOTTOM_DOTTED,i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,i.db.LINETYPE.STICK_ARROW_TOP_REVERSE,i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,i.db.LINETYPE.DOTTED,i.db.LINETYPE.SOLID_CROSS,i.db.LINETYPE.DOTTED_CROSS,i.db.LINETYPE.SOLID_POINT,i.db.LINETYPE.DOTTED_POINT,i.db.LINETYPE.BIDIRECTIONAL_SOLID,i.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(H.type))rt=Math.round((rt+st)*100)/100;ft++}r.debug("createdActors",V),r.debug("destroyedActors",w),await ge(m,k,f,!1,t,i,z);for(let H of lt)await pa(m,H.messageModel,H.lineStartY,i,H.msg,t);if(u.mirrorActors)await ge(m,k,f,!0,t,i,z);dt.forEach((H)=>ct.drawBackgroundRect(m,H)),nr(m,k,f,u);for(let H of v.models.boxes){H.height=v.getVerticalPos()-H.y,v.insert(H.x,H.y,H.x+H.width,H.height);let X=u.boxMargin*2;H.startx=H.x-X,H.starty=H.y-X*0.25,H.stopx=H.startx+H.width+2*X,H.stopy=H.starty+H.height+X*0.75,H.stroke="rgb(0,0,0, 0.5)",ct.drawBox(m,H,u)}if(K)v.bumpVerticalPos(u.boxMargin);let _t=hr(m,k,f,R),{bounds:ht}=v.getBounds();if(ht.startx===void 0)ht.startx=0;if(ht.starty===void 0)ht.starty=0;if(ht.stopx===void 0)ht.stopx=0;if(ht.stopy===void 0)ht.stopy=0;let bt=ht.stopy-ht.starty;if(bt<_t.maxHeight)bt=_t.maxHeight;let gt=bt+2*u.diagramMarginY;if(u.mirrorActors)gt=gt-u.boxMargin+u.bottomMarginAdj;let at=ht.stopx-ht.startx;if(at<_t.maxWidth)at=_t.maxWidth;let J=at+2*u.diagramMarginX;if(P)m.append("text").text(P).attr("x",(ht.stopx-ht.startx)/2-2*u.diagramMarginX).attr("y",-25);B(m,gt,J,u.useMaxWidth);let pt=P?40:0,Ut=k.size&&o==="neo"?30:0;m.attr("viewBox",ht.startx-u.diagramMarginX+" -"+(u.diagramMarginY+pt)+" "+J+" "+(gt+pt+Ut)),r.debug("models:",v.models)},"draw");async function pr(a,t,n){let i={};for(let c of t)if(a.get(c.to)&&a.get(c.from)){let d=a.get(c.to);if(c.placement===n.db.PLACEMENT.LEFTOF&&!d.prevActor)continue;if(c.placement===n.db.PLACEMENT.RIGHTOF&&!d.nextActor)continue;let o=c.placement!==void 0,l=!o,x=o?Wt(u):Bt(u),_=c.wrap?N.wrapLabel(c.message,u.width-2*u.wrapPadding,x):c.message,m=(fe(_)?await xr(c.message,s()):N.calculateTextDimensions(_,x)).width+2*u.wrapPadding;if(l&&c.from===d.nextActor)i[c.to]=y.getMax(i[c.to]||0,m);else if(l&&c.from===d.prevActor)i[c.from]=y.getMax(i[c.from]||0,m);else if(l&&c.from===c.to)i[c.from]=y.getMax(i[c.from]||0,m/2),i[c.to]=y.getMax(i[c.to]||0,m/2);else if(c.placement===n.db.PLACEMENT.RIGHTOF)i[c.from]=y.getMax(i[c.from]||0,m);else if(c.placement===n.db.PLACEMENT.LEFTOF)i[d.prevActor]=y.getMax(i[d.prevActor]||0,m);else if(c.placement===n.db.PLACEMENT.OVER){if(d.prevActor)i[d.prevActor]=y.getMax(i[d.prevActor]||0,m/2);if(d.nextActor)i[c.from]=y.getMax(i[c.from]||0,m/2)}}return r.debug("maxMessageWidthPerActor:",i),i}e(pr,"getMaxMessageWidthPerActor");var fa=e(function(a){let t=0,n=_e(u);for(let i in a.links){let d=N.calculateTextDimensions(i,n).width+2*u.wrapPadding+2*u.boxMargin;if(t<d)t=d}return t},"getRequiredPopupWidth");async function Er(a,t,n){let i=0;for(let d of a.keys()){let o=a.get(d);if(o.wrap)o.description=N.wrapLabel(o.description,u.width-2*u.wrapPadding,_e(u));let l=fe(o.description)?await xr(o.description,s()):N.calculateTextDimensions(o.description,_e(u));if(o.width=o.wrap?u.width:y.getMax(u.width,l.width+2*u.wrapPadding),s().look==="neo")o.actorTextHeight=l.height,o.height=y.getMax(ar(l.height),u.height);else o.height=o.wrap?y.getMax(l.height,u.height):u.height;i=y.getMax(i,o.height)}for(let d in t){let o=a.get(d);if(!o)continue;let l=a.get(o.nextActor);if(!l){let m=t[d]+u.actorMargin-o.width/2;o.margin=y.getMax(m,u.actorMargin);continue}let _=t[d]+u.actorMargin-o.width/2-l.width/2;o.margin=y.getMax(_,u.actorMargin)}let c=0;return n.forEach((d)=>{let o=Bt(u),l=d.actorKeys.reduce((m,k)=>m+=a.get(k).width+(a.get(k).margin||0),0),x=u.boxMargin*8;if(l+=x,l-=2*u.boxTextMargin,d.wrap)d.name=N.wrapLabel(d.name,l-2*u.wrapPadding,o);let _=N.calculateTextDimensions(d.name,o);c=y.getMax(_.height,c);let R=y.getMax(l,_.width+2*u.wrapPadding);if(d.margin=u.boxTextMargin,l<R){let m=(R-l)/2;d.margin+=m}}),n.forEach((d)=>d.textMaxHeight=c),y.getMax(i,u.height)}e(Er,"calculateActorMargins");var _a=e(async function(a,t,n){let i=t.get(a.from),c=t.get(a.to),d=i.x,o=c.x,l=a.wrap&&a.message,x=fe(a.message)?await xr(a.message,s()):N.calculateTextDimensions(l?N.wrapLabel(a.message,u.width,Wt(u)):a.message,Wt(u)),_={width:l?u.width:y.getMax(u.width,x.width+2*u.noteMargin),height:0,startx:i.x,stopx:0,starty:0,stopy:0,message:a.message};if(a.placement===n.db.PLACEMENT.RIGHTOF)_.width=l?y.getMax(u.width,x.width):y.getMax(i.width/2+c.width/2,x.width+2*u.noteMargin),_.startx=d+(i.width+u.actorMargin)/2;else if(a.placement===n.db.PLACEMENT.LEFTOF)_.width=l?y.getMax(u.width,x.width+2*u.noteMargin):y.getMax(i.width/2+c.width/2,x.width+2*u.noteMargin),_.startx=d-_.width+(i.width-u.actorMargin)/2;else if(a.to===a.from)x=N.calculateTextDimensions(l?N.wrapLabel(a.message,y.getMax(u.width,i.width),Wt(u)):a.message,Wt(u)),_.width=l?y.getMax(u.width,i.width):y.getMax(i.width,u.width,x.width+2*u.noteMargin),_.startx=d+(i.width-_.width)/2;else _.width=Math.abs(d+i.width/2-(o+c.width/2))+u.actorMargin,_.startx=d<o?d+i.width/2-u.actorMargin/2:o+c.width/2-u.actorMargin/2;if(l)_.message=N.wrapLabel(a.message,_.width-2*u.wrapPadding,Wt(u));return r.debug(`NM:[${_.startx},${_.stopx},${_.starty},${_.stopy}:${_.width},${_.height}=${a.message}]`),_},"buildNoteModel"),ga=4,xa=6,Ee=e(function(a,t){let{CENTRAL_CONNECTION:n,CENTRAL_CONNECTION_REVERSE:i,CENTRAL_CONNECTION_DUAL:c}=t.db.LINETYPE;return[n,i,c].includes(a.centralConnection)},"hasCentralConnection"),ba=e(function(a,t,n){let{CENTRAL_CONNECTION_REVERSE:i,CENTRAL_CONNECTION_DUAL:c,BIDIRECTIONAL_SOLID:d,BIDIRECTIONAL_DOTTED:o}=t.db.LINETYPE,l=0;if(a.centralConnection===i||a.centralConnection===c)l+=ga;if((a.centralConnection===i||a.centralConnection===c)&&(a.type===d||a.type===o))l+=n?0:-xa;return l},"calculateCentralConnectionOffset"),ur=e(function(a,t){let{SOLID_ARROW_TOP_REVERSE:n,SOLID_ARROW_TOP_REVERSE_DOTTED:i,SOLID_ARROW_BOTTOM_REVERSE:c,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:d,STICK_ARROW_TOP_REVERSE:o,STICK_ARROW_TOP_REVERSE_DOTTED:l,STICK_ARROW_BOTTOM_REVERSE:x,STICK_ARROW_BOTTOM_REVERSE_DOTTED:_}=t.db.LINETYPE;return[n,i,c,d,o,l,x,_].includes(a.type)},"isReverseArrowType"),Ia=e(function(a,t){let{BIDIRECTIONAL_SOLID:n,BIDIRECTIONAL_DOTTED:i}=t.db.LINETYPE;return[n,i].includes(a.type)},"isBidirectionalArrowType"),ya=e(function(a,t,n){let{look:i}=s();if(![n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.SOLID,n.db.LINETYPE.SOLID_TOP,n.db.LINETYPE.SOLID_BOTTOM,n.db.LINETYPE.STICK_TOP,n.db.LINETYPE.STICK_BOTTOM,n.db.LINETYPE.SOLID_TOP_DOTTED,n.db.LINETYPE.SOLID_BOTTOM_DOTTED,n.db.LINETYPE.STICK_TOP_DOTTED,n.db.LINETYPE.STICK_BOTTOM_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.DOTTED,n.db.LINETYPE.SOLID_CROSS,n.db.LINETYPE.DOTTED_CROSS,n.db.LINETYPE.SOLID_POINT,n.db.LINETYPE.DOTTED_POINT,n.db.LINETYPE.BIDIRECTIONAL_SOLID,n.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(a.type))return{};let[c,d]=rr(a.from,t),[o,l]=rr(a.to,t),x=c<=o,_=x?d:c,R=x?o:l;if(i==="neo"){if(a.type!==n.db.LINETYPE.SOLID_OPEN)R+=x?-3:3;if(a.type===n.db.LINETYPE.BIDIRECTIONAL_SOLID||a.type===n.db.LINETYPE.BIDIRECTIONAL_DOTTED)_+=x?3:-3}_+=ba(a,n,x);let m=Math.abs(o-l)>2,k=e((f)=>x?-f:f,"adjustValue");if(a.from===a.to)R=_;else{if(a.activate&&!m)R+=k(u.activationWidth/2-1);if(![n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.STICK_TOP,n.db.LINETYPE.STICK_BOTTOM,n.db.LINETYPE.STICK_TOP_DOTTED,n.db.LINETYPE.STICK_BOTTOM_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(a.type))R+=k(3);if([n.db.LINETYPE.BIDIRECTIONAL_SOLID,n.db.LINETYPE.BIDIRECTIONAL_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(a.type))_-=k(3)}let V=[c,d,o,l],w=Math.abs(_-R);if(a.wrap&&a.message)a.message=N.wrapLabel(a.message,y.getMax(w+2*u.wrapPadding,u.width),Bt(u));let M=N.calculateTextDimensions(a.message,Bt(u));return{width:y.getMax(a.wrap?0:M.width+2*u.wrapPadding,w+2*u.wrapPadding,u.width),height:0,startx:_,stopx:R,starty:0,stopy:0,message:a.message,type:a.type,wrap:a.wrap,fromBounds:Math.min.apply(null,V),toBounds:Math.max.apply(null,V)}},"buildMessageModel"),Ra=e(async function(a,t,n,i){let c={},d=[],o,l,x;for(let _ of a){switch(_.type){case i.db.LINETYPE.LOOP_START:case i.db.LINETYPE.ALT_START:case i.db.LINETYPE.OPT_START:case i.db.LINETYPE.PAR_START:case i.db.LINETYPE.PAR_OVER_START:case i.db.LINETYPE.CRITICAL_START:case i.db.LINETYPE.BREAK_START:d.push({id:_.id,msg:_.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case i.db.LINETYPE.ALT_ELSE:case i.db.LINETYPE.PAR_AND:case i.db.LINETYPE.CRITICAL_OPTION:if(_.message)o=d.pop(),c[o.id]=o,c[_.id]=o,d.push(o);break;case i.db.LINETYPE.LOOP_END:case i.db.LINETYPE.ALT_END:case i.db.LINETYPE.OPT_END:case i.db.LINETYPE.PAR_END:case i.db.LINETYPE.CRITICAL_END:case i.db.LINETYPE.BREAK_END:o=d.pop(),c[o.id]=o;break;case i.db.LINETYPE.ACTIVE_START:{let m=t.get(_.from?_.from:_.to.actor),k=se(_.from?_.from:_.to.actor).length,V=m.x+m.width/2+(k-1)*u.activationWidth/2,w={startx:V,stopx:V+u.activationWidth,actor:_.from,enabled:!0};v.activations.push(w)}break;case i.db.LINETYPE.ACTIVE_END:{let m=v.activations.map((k)=>k.actor).lastIndexOf(_.from);v.activations.splice(m,1).splice(0,1)}break}if(_.placement!==void 0)l=await _a(_,t,i),_.noteModel=l,d.forEach((m)=>{o=m,o.from=y.getMin(o.from,l.startx),o.to=y.getMax(o.to,l.startx+l.width),o.width=y.getMax(o.width,Math.abs(o.from-o.to))-u.labelBoxWidth});else if(x=ya(_,t,i),_.msgModel=x,x.startx&&x.stopx&&d.length>0)d.forEach((m)=>{if(o=m,x.startx===x.stopx){let k=t.get(_.from),V=t.get(_.to);o.from=y.getMin(k.x-x.width/2,k.x-k.width/2,o.from),o.to=y.getMax(V.x+x.width/2,V.x+k.width/2,o.to),o.width=y.getMax(o.width,Math.abs(o.to-o.from))-u.labelBoxWidth}else o.from=y.getMin(x.startx,o.from),o.to=y.getMax(x.stopx,o.to),o.width=y.getMax(o.width,x.width)-u.labelBoxWidth})}return v.activations=[],r.debug("Loop type widths:",c),c},"calculateLoopBounds"),Oa={bounds:v,drawActors:ge,drawActorsPopup:hr,setConf:dr,draw:ua},va={parser:Rr,get db(){return new Sr},renderer:Oa,styles:kr,init:e((a)=>{if(!a.sequence)a.sequence={};if(a.wrap)a.sequence.wrap=a.wrap,an({sequence:{wrap:a.wrap}})},"init")};export{va as diagram};
|
package/web/chunk-9xh96b33.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a,v,t,n,_,l,Z,ue,Jn}from"./chunk-fhnypcrm.js";var u=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],s=l("code-xml",u);function Fr(e){let o=_();o.useTheme();let[m,c]=a("preview"),r=e.streaming&&!e.rendered,d=!e.streaming&&!e.rendered&&Boolean(e.error),i=m==="code"||r;return n(o.Panel,{"aria-label":e.title,"data-render-pending":e.pending&&!d?"true":void 0,className:"group/graph relative my-4 font-sans not-italic first:mt-0 last:mb-0",children:[t("div",{role:"toolbar","aria-label":`${e.title}操作`,className:r?"absolute top-2 right-2 z-10 flex items-center":o.style("surface.toolbarFloating","absolute top-2 right-2 z-10 opacity-0 transition-opacity duration-150 group-hover/graph:opacity-100 focus-within:opacity-100 [@media(hover:none)]:opacity-70"),children:r?n("span",{className:o.style("control.badge","gap-1.5 rounded-full px-2 py-0.5 text-[11px]"),children:[t(ue,{className:"size-3 animate-spin"}),"生成",e.title]}):n(v,{children:[t("button",{type:"button","aria-label":i?"查看图表":"查看代码",title:i?"查看图表":"查看代码",onClick:()=>c(i?"preview":"code"),className:"flex size-6 items-center justify-center rounded-md text-dim hover:bg-raised hover:text-ink [&_svg]:size-3.5",children:i?t(Jn,{}):t(s,{})}),t(o.CopyButton,{text:e.code,size:"icon-sm",label:"复制代码"})]})}),i&&t(o.Code,{code:e.code,lang:e.codeLang,className:"px-4 py-3"}),d&&!i&&n("div",{role:"alert",className:"flex flex-col items-center gap-2 px-4 py-8 text-center",children:[t(Z,{className:"size-5 text-warning"}),t("p",{className:"max-w-full text-xs break-words text-dim",children:e.error}),t("button",{type:"button",onClick:()=>c("code"),className:"text-xs text-accent-strong underline underline-offset-2",children:"查看代码"})]}),t("div",{hidden:i||d,children:e.children})]})}
|
|
2
|
-
export{Fr};
|
package/web/chunk-a5sg33w2.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{W}from"./chunk-89fkdgbp.js";import{e,r,D,b,O,C,S,E,T,A,I,L,s,wr,p,Dn,Zr,U}from"./chunk-vymqrpm3.js";import{$r,X}from"./chunk-n8gfjj9a.js";var G="position frame",V="frame positioned",F="position relation",j="relation positioned",pe=e(function(t){r.debug("options str",t)},"setOptions"),ve=e(function(){return{}},"getOptions"),be=e(function(){Y(),C()},"clear");function Y(){M={}}e(Y,"reset");var we=D.eventmodeling,ye=e(()=>U({...we,...b().eventmodeling}),"getConfig"),M={};function z(){let t=Pe,{ast:i}=M,n=N();if(!i)throw Error("No data for EventModel");return i.frames.forEach((a,o)=>{let d=te(a,i.dataEntities,n);t=P(t,{$kind:G,index:o,frame:a,textProps:d});let c=void 0;if(se(a))r.debug("source frame",a.sourceFrames),c=i.frames.filter((m)=>a.sourceFrames.some((u)=>u.$refText===m.name)),c.forEach((m)=>{t=P(t,{$kind:F,index:o,frame:a,sourceFrame:m})});else t=P(t,{$kind:F,index:o,frame:a})}),t={...t,sortedSwimlanesArray:H(t.swimlanes)},t}e(z,"getState");function K(t){M.ast=void 0;let i=new Set;for(let n of t.frames){if(i.has(n.name)){let a=n.$cstNode?.range.start.line,o=a===void 0?"":` on line ${a+1}`;throw Error(`Duplicate event modeling frame ID "${n.name}"${o}`)}i.add(n.name)}M.ast=t}e(K,"setAst");var l={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function N(){return l}e(N,"getDiagramProps");var Pe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function q(t){let i=t.split(".");if(i.length===2)return i[0];return}e(q,"extractNamespace");function J(t){let i=t.split(".");if(i.length===2)return i[1];return t}e(J,"extractName");function Q(t,i){if(!i||i.length===0)return;return Object.values(t).find((n)=>n.namespace===i)}e(Q,"findSwimlaneByNamespace");function y(t,i,n){return Math.max(i,...Object.keys(t).filter((a)=>{let o=Number.parseInt(a);return o>i&&o<n}).map((a)=>Number.parseInt(a)))+1}e(y,"findNextAvailableIndex");function Z(t,i){let n=q(t.entityIdentifier),a=Q(i,n);switch(t.modelEntityType){case"ui":case"pcr":case"processor":if(a)return{index:a.index,label:a.namespace||l.labelUiAutomation};else if(n)return{index:y(i,0,100),label:l.labelUiAutomationPrefix+n};return{index:0,label:l.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":if(a)return{index:a.index,label:a.namespace||l.labelCommandReadModel};else if(n)return{index:y(i,100,200),label:l.labelCommandReadModelPrefix+n};return{index:100,label:l.labelCommandReadModel};case"evt":case"event":default:if(a)return{index:a.index,label:a.namespace||l.labelEvents};else if(n)return{index:y(i,200,300),label:l.labelEventsPrefix+n};return{index:200,label:l.labelEvents}}}e(Z,"calculateSwimlaneProps");function ee(t){let{themeVariables:i}=b();switch(t.modelEntityType){case"ui":return{fill:i.emUiFill??"white",stroke:i.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:i.emProcessorFill??"#edb3f6",stroke:i.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:i.emReadModelFill??"#d3f1a2",stroke:i.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:i.emCommandFill??"#bcd6fe",stroke:i.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:i.emEventFill??"#ffb778",stroke:i.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}e(ee,"calculateEntityVisualProps");function te(t,i,n){let a=b(),o=O(J(t.entityIdentifier)??"",a),d,c={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"},u=`<b>${Dn(o,n.textMaxWidth,c)}</b>`;if(t.dataInlineValue)d=t.dataInlineValue,d=d.substring(d.indexOf("{")+1),d=d.substring(0,d.lastIndexOf("}")-1),d=O(d,a),d=Dn(d,n.textMaxWidth,c),d=d.replaceAll(" "," ");if(t.dataReference){let w=i.find((k)=>k.name===t.dataReference?.$refText);if(w)d=w.dataBlockValue,d=d.substring(d.indexOf(`{
|
|
2
|
-
`)+2),d=d.substring(0,d.lastIndexOf("}")-1),d=O(d,a),d=Dn(d,n.textMaxWidth,c),d=d.replaceAll(" "," "),d+="<br/>"}let x=d!==void 0;if(x)u+=`<br/><br/><code style="text-align: left; display: block;max-width:${n.textMaxWidth}px">${d}</code>`;let g={fontSize:c.fontSize,fontWeight:c.fontWeight,fontFamily:c.fontFamily},f=Zr(u,g),v=x?f.width/3:f.width,h={content:u,width:v,height:f.height};return r.debug(`[${t.name}] ${t.entityIdentifier} text`,h),h}e(te,"calculateTextProps");function ne(t,i){let n=i,a=ee(n.frame),o={width:n.textProps.width+2*l.boxTextPadding,height:n.textProps.height+2*l.boxTextPadding};return[{$kind:V,frame:n.frame,index:n.index,visual:a,dimension:o,textProps:n.textProps}]}e(ne,"decidePositionFrame");function ie(t,i,n){if(i===void 0)return l.contentStartX;if(i.index===t.index&&t.r)return t.r+l.boxPadding;if(n===void 0)return l.contentStartX;return n.r-l.boxOverlap+l.boxPadding}e(ie,"calculateX");function re(t,i){let n=[...t.map((a)=>a.r),i];return Math.max(...n)}e(re,"calculateMaxRight");function H(t){return Object.values(t).sort((i,n)=>i.index-n.index)}e(H,"sortedSwimlanesArray");function ae(t,i){let n=i,a=Z(n.frame,t.swimlanes),o;if(a.index in t.swimlanes)o=t.swimlanes[a.index];else o={index:a.index,label:a.label,r:0,y:a.index*l.swimlaneMinHeight+l.swimlaneGap,height:l.swimlaneMinHeight,maxHeight:l.swimlaneMinHeight};let d=t.boxes.length>0?t.boxes[t.boxes.length-1]:void 0,c=t.previousSwimlaneNumber!==void 0?t.swimlanes[t.previousSwimlaneNumber]:void 0,m={width:Math.max(l.boxMinWidth,Math.min(l.boxMaxWidth,n.dimension.width))+2*l.boxPadding,height:Math.max(l.boxMinHeight,Math.min(l.boxMaxHeight,n.dimension.height))+2*l.boxPadding},u=ie(o,c,d),x=u+m.width+l.boxPadding,g=re(Object.values(t.swimlanes),x);o.r=u+m.width,o.maxHeight=Math.max(o.maxHeight,m.height),o.height=Math.max(l.swimlaneMinHeight,o.maxHeight)+2*l.swimlanePadding;let f={x:u,y:l.swimlanePadding+o.y,r:x,dimension:m,leftSibling:!1,swimlane:o,visual:n.visual,text:n.textProps.content,frame:n.frame,index:n.index},v={...t,boxes:[...t.boxes,f],swimlanes:{...t.swimlanes,[`${o.index}`]:o},previousSwimlaneNumber:a.index,previousFrame:n.frame,maxR:g},h=H(v.swimlanes);if(h.length>0)h[0].y=0;for(let w=1;w<h.length;w++){let k=h[w],_=h[w-1];k.y=_.y+_.height+l.swimlaneGap}return v}e(ae,"evolveFramePositioned");function oe(t,i){if(t===0&&i.sourceFrames.length===0)return!0;return!1}e(oe,"isFirstFrame");function se(t){return t.sourceFrames!==void 0&&t.sourceFrames!==null&&t.sourceFrames.length>0}e(se,"hasSourceFrame");function B(t,i){if(i===void 0||i===null)return;return t.find((n)=>n.frame.name===i.name)}e(B,"findBoxByFrame");function de(t,i,n){if(n<0)return;for(let a=n;a>=0;a--){let o=t[a];if(o.swimlane.index!==i)return o}return}e(de,"findBoxByLineIndex");function le(t,i){let n=i;if(oe(n.index,n.frame))return[];let a=B(t.boxes,n.frame);if(a===void 0)throw Error(`Target box not found for frame ${n.frame.name}`);let o;if(n.sourceFrame)o=B(t.boxes,n.sourceFrame);else{if($r(n.frame))return[];o=de(t.boxes,a.swimlane.index,n.index-1)}if(o===void 0)return[];return[{$kind:j,frame:n.frame,index:n.index,sourceBox:o,targetBox:a}]}e(le,"decidePositionRelation");function ce(t,i){let n=i,a={visual:{fill:"none",stroke:"#000"},source:{x:n.sourceBox.x,y:n.sourceBox.y},target:{x:n.targetBox.x,y:n.targetBox.y},sourceBox:n.sourceBox,targetBox:n.targetBox};return{...t,relations:[...t.relations,a]}}e(ce,"evolveRelationPositioned");var Se={[G]:ne,[F]:le},Me={[V]:ae,[j]:ce};function me(t,i){let n=Se[i.$kind];if(n===void 0||n===null)return[];let a=n(t,i);return r.debug("decided events",a),a}e(me,"decide");function ue(t,i){let n=i.reduce((a,o)=>{let d=Me[o.$kind];if(d===void 0||d===null)return a;return d(a,o)},t);return r.debug("evolve events",{state:t,newState:n,events:i}),n}e(ue,"evolve");function P(t,i){let n=me(t,i);return ue(t,n)}e(P,"dispatch");var R={getConfig:ye,preserveCommentsWhenParsing:!0,setOptions:pe,getOptions:ve,clear:be,setAccTitle:S,getAccTitle:E,getAccDescription:A,setAccDescription:T,setDiagramTitle:I,getDiagramTitle:L,setAst:K,getDiagramProps:N,getState:z},ke={parse:e(async(t)=>{let i=await X("eventmodeling",t);r.debug(i),R.setAst(i),W(i,R)},"parse")},Fe=s(),Be=Fe?.eventmodeling;function xe(t,i){return(n)=>{let a=n.swimlane.y+i.swimlanePadding,o=t.append("g").attr("class","em-box");o.append("rect").attr("x",n.x).attr("y",a).attr("rx","3").attr("width",n.dimension.width).attr("height",n.dimension.height).attr("stroke",n.visual.stroke).attr("fill",n.visual.fill),o.append("foreignObject").attr("x",n.x+i.boxPadding).attr("y",a+10).attr("width",n.dimension.width-2*i.boxPadding).attr("height",n.dimension.height-2*i.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(n.text)}}e(xe,"renderD3Box");function fe(t,i){return t>i}e(fe,"dirUpwards");function ge(t,i,n,a){return(o)=>{let d=o.sourceBox.swimlane.y+i.swimlanePadding,c=o.targetBox.swimlane.y+i.swimlanePadding,m=fe(d,c),u=o.sourceBox.x+o.sourceBox.dimension.width*2/3,x=o.targetBox.x+o.targetBox.dimension.width/3,g,f;if(r.debug(`rendering relation up=${m} for `,{sourceBox:o.sourceBox,targetBox:o.targetBox}),m)g=d,f=c+o.targetBox.dimension.height;else g=d+o.sourceBox.dimension.height,f=c;let v=a.emRelationStroke??o.visual.stroke;t.append("path").attr("class","em-relation").attr("fill",o.visual.fill).attr("stroke",v).attr("stroke-width","1").attr("marker-end",`url(#${n})`).attr("d",`M${u} ${g} L${x} ${f}`)}}e(ge,"renderD3Relation");function he(t,i,n,a){return(o)=>{let d=t.append("g").attr("class","em-swimlane"),c=a.emSwimlaneBackgroundOdd??"rgb(250,250,250)",m=a.emSwimlaneBackgroundStroke??"rgb(240,240,240)";d.append("rect").attr("x",0).attr("y",o.y).attr("rx","3").attr("width",i+n.swimlanePadding).attr("height",o.height).attr("fill",c).attr("stroke",m),d.append("text").attr("font-weight",n.swimlaneTextFontWeight).attr("x",30).attr("y",o.y+30).text(o.label)}}e(he,"renderD3Swimlane");var Ee=e(function(t,i,n,a){if(r.debug("in eventmodeling renderer",t+`
|
|
3
|
-
`,"id:",i,n),!Be)throw Error("EventModeling config not found");let o=a.db,{themeVariables:d,eventmodeling:c}=s(),m=p(`[id="${i}"]`),u=o.getDiagramProps(),x=o.getState(),g=`em-arrowhead-${i}`,f=d.emArrowhead??"#000000";x.sortedSwimlanesArray.forEach(he(m,x.maxR,u,d)),x.boxes.forEach(xe(m,u)),x.relations.forEach(ge(m,u,g,d)),m.append("defs").append("marker").attr("id",g).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",f),wr(void 0,m,c?.padding??30,c?.useMaxWidth)},"draw"),Ae={draw:Ee},$e=e((t)=>"","getStyles"),Re=$e,Ue={parser:ke,db:R,renderer:Ae,styles:Re};export{Ue as diagram};
|
package/web/chunk-a91vxtx4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{or}from"./chunk-n8gfjj9a.js";export{or as createRailroadPegServices};
|
package/web/chunk-agec7jj4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ki,Co,Qi,So,To,Ji}from"./chunk-wdtnhpd6.js";import"./chunk-jzfd7cyh.js";import"./chunk-7xk0ntav.js";import"./chunk-vymqrpm3.js";export{Co as applyDagreLayoutResult,Ki as getEdgesToRender,So as measureDagreLayout,Qi as prepareLayoutForDagre,Ji as render,To as runDagreLayoutCore};
|
package/web/chunk-c516cghj.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-vymqrpm3.js";import"./chunk-47q4hmfp.js";import{ko}from"./chunk-tx8240k4.js";import"./chunk-7520nrbb.js";import"./chunk-166qe5j6.js";import"./chunk-es28k2t7.js";import"./chunk-zmdnxn6m.js";export{ko as diagram};
|
package/web/chunk-cqp1d4p0.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function Mt(e,a){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(a).domain(e);break}return this}export{Mt};
|
package/web/chunk-cwtdnacf.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,v,t,n,_,l,Z,ue,q,ot}from"./chunk-fhnypcrm.js";var P=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],g=l("circle-slash",P);function J(o){let{Button:h,Panel:N,style:y}=_(),e=o.payload,[i,r]=a(!1),[k,b]=a(!1),[c,p]=a();if(!e)return null;let s=k?"killed":e.state,m=s==="running",d=s==="exited"&&e.code===0,u=s==="killed"||s==="timeout",f=e.output?.trim(),C=async()=>{if(i)return;r(!0),p(void 0);try{await o.connection.request(`/api/sessions/${encodeURIComponent(o.sessionID)}/jobs/${encodeURIComponent(e.id)}/kill`,{method:"POST"}),b(!0)}catch(x){p(x instanceof Error?x.message:"停止失败,后台任务可能已结束")}finally{r(!1)}};return n(N,{className:"my-2",header:n(v,{children:[t(ot,{className:"size-3.5 shrink-0 text-faint"}),t("span",{className:"truncate font-mono text-ink/90",title:e.command??e.id,children:e.command??`任务 ${e.id}`})]}),actions:n(v,{children:[m&&n(v,{children:[n("span",{className:"flex items-center gap-1 text-warning",children:[t(ue,{className:"size-3.5 animate-spin"}),t("span",{children:"后台运行中"})]}),t(h,{size:"sm",variant:"danger-ghost",className:"h-6 rounded-md px-2 text-xs",disabled:i,onClick:()=>{C()},children:"停止"})]}),d&&n("span",{className:"flex items-center gap-1 text-success",children:[t(q,{className:"size-3.5"}),t("span",{children:"已完成"})]}),u&&n("span",{className:"flex items-center gap-1 text-faint",children:[t(g,{className:"size-3.5"}),t("span",{children:s==="timeout"?"已超时":"已停止"})]}),!m&&!d&&!u&&n("span",{className:"flex items-center gap-1 text-danger",children:[t(Z,{className:"size-3.5"}),n("span",{children:["退出码 ",e.code??"异常"]})]})]}),children:[c&&t("p",{role:"status",className:"border-b border-line px-4 py-2.5 text-xs text-danger",children:c}),f&&t("pre",{className:y("chat.toolOutput","max-h-60 text-ink/90 select-text"),children:f})]})}export{J as BashJobCard};
|
package/web/chunk-dg1vas6z.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{e}from"./chunk-vymqrpm3.js";import"./chunk-47q4hmfp.js";import{Ei,Ai}from"./chunk-tx8240k4.js";import"./chunk-7520nrbb.js";import"./chunk-166qe5j6.js";import"./chunk-es28k2t7.js";import"./chunk-zmdnxn6m.js";var r=e((t)=>`${Ei(t)}
|
|
2
|
-
.swimlane.cluster:not([data-color-id]) rect {
|
|
3
|
-
stroke: ${t.clusterBorder} !important;
|
|
4
|
-
}
|
|
5
|
-
[data-look="neo"].cluster rect {
|
|
6
|
-
filter: none;
|
|
7
|
-
}
|
|
8
|
-
`,"getStyles"),o=r,D=Ai({styles:o});export{D as diagram};
|
package/web/chunk-dy2gm1fs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ri}from"./chunk-n1dmrz44.js";export{ri as default};
|
package/web/chunk-f91wzwtk.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{fi}from"./chunk-xzp7jf7e.js";export{fi as default};
|
package/web/chunk-fc0nx23g.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ci}from"./chunk-n8gfjj9a.js";export{Ci as createTreeViewServices};
|