@bkm016/basalt 0.1.20 → 0.1.22
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/{chunk-tb3zsqe8.js → chunk-09tdbx7b.js} +1 -1
- package/{chunk-cks36jdh.js → chunk-0rsyawz5.js} +2 -2
- package/{chunk-nszq2z0w.js → chunk-16yz5ebn.js} +1 -1
- package/chunk-1kdd7xry.js +2 -0
- package/chunk-1td9hjn9.js +25 -0
- package/{chunk-s819vmwh.js → chunk-1xjkzzyh.js} +2 -2
- package/{chunk-gg3kfa12.js → chunk-38932kzp.js} +2 -2
- package/chunk-3qxq264t.js +2 -0
- package/{chunk-cwrf78vs.js → chunk-3s8rpc1w.js} +2 -2
- package/{chunk-5ja0vsam.js → chunk-5415fcz7.js} +3 -3
- package/{chunk-3phf8eg6.js → chunk-5kezbmgw.js} +2 -2
- package/{chunk-bkhsva5n.js → chunk-5m51j40e.js} +3 -3
- package/{chunk-2fts9k52.js → chunk-5mt8xxex.js} +2 -2
- package/{chunk-tp885r8h.js → chunk-5ph58x6w.js} +11 -11
- package/{chunk-eps1epfr.js → chunk-6jdqe7sz.js} +2 -2
- package/{chunk-mde2dd79.js → chunk-6ztgzx9s.js} +1 -1
- package/{chunk-3r38vbt5.js → chunk-7dzcdpdt.js} +1 -1
- package/{chunk-w9fdcchk.js → chunk-82djd5fk.js} +1 -1
- package/{chunk-x1y4s01x.js → chunk-86vhsd3y.js} +11 -11
- package/chunk-8rfv9mm1.js +15 -0
- package/{chunk-30bbdzma.js → chunk-8tvz5ht1.js} +12 -12
- package/{chunk-a2z1cy84.js → chunk-9pjmwz01.js} +1 -1
- package/{chunk-7kz9435k.js → chunk-9w1m9av8.js} +3 -3
- package/{chunk-w6nc3jn7.js → chunk-9wjd9bxm.js} +1 -1
- package/chunk-b49005n2.js +471 -0
- package/{chunk-w045zk55.js → chunk-bdz2561d.js} +1 -1
- package/{chunk-wj09qkyw.js → chunk-bkvhwgeb.js} +2 -2
- package/{chunk-1gaj43fx.js → chunk-bp9tfav3.js} +1 -1
- package/chunk-cc9htxzx.js +3557 -0
- package/chunk-chfzk1fx.js +3 -0
- package/{chunk-p0e82mee.js → chunk-cr0tqn6j.js} +2 -2
- package/{chunk-e3bgzeb3.js → chunk-cv5kdnsw.js} +2 -2
- package/{chunk-svx7mz0w.js → chunk-d79s1s4t.js} +4 -4
- package/{chunk-29g01nrz.js → chunk-ec6bzt7w.js} +5 -5
- package/{chunk-h2pp8mnh.js → chunk-eq54cmsa.js} +1 -1
- package/{chunk-1tbv5t08.js → chunk-g54nd4fd.js} +1 -1
- package/{chunk-v7da0aqn.js → chunk-g8p5c4vx.js} +5 -5
- package/chunk-g9bemxpt.js +3 -0
- package/{chunk-fgjw0r6g.js → chunk-hk5p2eee.js} +4 -4
- package/{chunk-0bgg0hdd.js → chunk-jerp4pj5.js} +1 -1
- package/{chunk-3sg32v3n.js → chunk-jsvqp20s.js} +1 -1
- package/{chunk-0g8rtf05.js → chunk-k9x1r69s.js} +8 -8
- package/{chunk-5e7yegea.js → chunk-kb526065.js} +1 -1
- package/{chunk-y83tnkr3.js → chunk-kpw1qa2n.js} +3 -3
- package/chunk-mbvy2t23.js +2 -0
- package/{chunk-sm9fpy18.js → chunk-mmnsdje8.js} +9 -9
- package/{chunk-d2f0hq8z.js → chunk-nffwakxq.js} +1 -1
- package/chunk-nfj8sj53.js +2 -0
- package/{chunk-ak9rkrf3.js → chunk-pzwaz2ew.js} +2 -2
- package/{chunk-yk29stq0.js → chunk-qtgc74er.js} +2 -2
- package/chunk-qtrd33pp.js +7 -0
- package/{chunk-6en06hkk.js → chunk-rbk6jxcr.js} +1 -1
- package/{chunk-y3vap4a1.js → chunk-rpbxbb92.js} +1 -1
- package/{chunk-agb771ak.js → chunk-rx812nrp.js} +2 -2
- package/{chunk-tpetsqzt.js → chunk-scy1p7x2.js} +3 -3
- package/{chunk-4dgqcp6q.js → chunk-sfgw0vmt.js} +1 -1
- package/chunk-tmefdwxy.js +2 -0
- package/chunk-tvg54x0x.js +2 -0
- package/{chunk-eyyxqb6y.js → chunk-v878x8zr.js} +2 -2
- package/chunk-v89f2k9b.js +2 -0
- package/{chunk-ewr51fwc.js → chunk-vhe16b65.js} +2 -2
- package/{chunk-z9p2ry9w.js → chunk-w3skxmvx.js} +2 -2
- package/{chunk-qxpx8dn6.js → chunk-w4kasz4j.js} +5 -5
- package/chunk-w4zkgn1c.js +4 -0
- package/chunk-we5emq6f.js +2 -0
- package/{chunk-11xxfc0x.js → chunk-x0dcabw6.js} +2 -2
- package/chunk-xtj7b70y.js +5 -0
- package/{chunk-a1vdrgsh.js → chunk-xwew53k7.js} +5 -5
- package/{chunk-np2xnt1g.js → chunk-xyhr89y5.js} +2 -2
- package/chunk-yce46csn.js +2 -0
- package/{chunk-s8m4svhf.js → chunk-yetcb1z9.js} +2 -2
- package/chunk-ypmpf75h.js +2 -0
- package/chunk-zz48zvk5.js +2 -0
- package/compiled.js +8 -8
- package/package.json +1 -1
- package/ui-test-worker.js +16 -16
- package/web/chunk-04c54f1s.js +1 -0
- package/web/chunk-04c54f1s.js.br +2 -0
- package/web/chunk-04c54f1s.js.gz +0 -0
- package/web/chunk-04m1cb8w.js +1 -0
- package/web/chunk-04m1cb8w.js.br +0 -0
- package/web/chunk-04m1cb8w.js.gz +0 -0
- package/web/{chunk-js940jjj.js → chunk-08z6mkgz.js} +4 -4
- package/web/chunk-08z6mkgz.js.br +0 -0
- package/web/chunk-08z6mkgz.js.gz +0 -0
- package/web/{chunk-x2hxq5yr.js → chunk-0g9m3rpw.js} +1 -1
- package/web/chunk-0g9m3rpw.js.br +0 -0
- package/web/chunk-0g9m3rpw.js.gz +0 -0
- package/web/{chunk-gk1bc3c3.js → chunk-0jccrdw3.js} +1 -1
- package/web/chunk-0jccrdw3.js.br +0 -0
- package/web/chunk-0jccrdw3.js.gz +0 -0
- package/web/{chunk-59h87pvn.js → chunk-0vweazdh.js} +1 -1
- package/web/chunk-0vweazdh.js.br +0 -0
- package/web/chunk-0vweazdh.js.gz +0 -0
- package/web/chunk-1vtf555r.js +1 -0
- package/web/chunk-1vtf555r.js.br +0 -0
- package/web/chunk-1vtf555r.js.gz +0 -0
- package/web/{chunk-znrsm604.js → chunk-29z0ft67.js} +17 -17
- package/web/chunk-29z0ft67.js.br +0 -0
- package/web/chunk-29z0ft67.js.gz +0 -0
- package/web/{chunk-tg3f9xmp.js → chunk-2q3m4btb.js} +1 -1
- package/web/chunk-2q3m4btb.js.br +0 -0
- package/web/chunk-2q3m4btb.js.gz +0 -0
- package/web/{chunk-qjg6dw46.js → chunk-2s6fhjjc.js} +94 -94
- package/web/chunk-2s6fhjjc.js.br +0 -0
- package/web/chunk-2s6fhjjc.js.gz +0 -0
- package/web/{chunk-fjrgg82c.js → chunk-2vdx4ykn.js} +4 -4
- package/web/chunk-2vdx4ykn.js.br +0 -0
- package/web/chunk-2vdx4ykn.js.gz +0 -0
- package/web/{chunk-zthww0ws.js → chunk-2zgqe8r7.js} +1 -1
- package/web/chunk-2zgqe8r7.js.br +0 -0
- package/web/chunk-2zgqe8r7.js.gz +0 -0
- package/web/{chunk-mbpv2w5h.js → chunk-3kqpmg83.js} +2 -2
- package/web/chunk-3kqpmg83.js.br +0 -0
- package/web/chunk-3kqpmg83.js.gz +0 -0
- package/web/chunk-3rmqxna0.js +1 -0
- package/web/chunk-3rmqxna0.js.br +0 -0
- package/web/chunk-3rmqxna0.js.gz +0 -0
- package/web/{chunk-jmnzcm1f.js → chunk-3xmv2349.js} +4 -4
- package/web/chunk-3xmv2349.js.br +0 -0
- package/web/chunk-3xmv2349.js.gz +0 -0
- package/web/{chunk-08w40agf.js → chunk-46cdys11.js} +7 -7
- package/web/chunk-46cdys11.js.br +0 -0
- package/web/chunk-46cdys11.js.gz +0 -0
- package/web/chunk-46mw23f0.js +8 -0
- package/web/chunk-46mw23f0.js.br +0 -0
- package/web/chunk-46mw23f0.js.gz +0 -0
- package/web/{chunk-mwfrxgbs.js → chunk-4r0dvjrr.js} +1 -1
- package/web/chunk-4r0dvjrr.js.br +0 -0
- package/web/chunk-4r0dvjrr.js.gz +0 -0
- package/web/{chunk-aw9bwd4w.js → chunk-4v6m84pg.js} +2 -2
- package/web/chunk-4v6m84pg.js.br +0 -0
- package/web/chunk-4v6m84pg.js.gz +0 -0
- package/web/{chunk-wvqcbp4a.js → chunk-4ye31s2w.js} +1 -1
- package/web/chunk-4ye31s2w.js.br +4 -0
- package/web/chunk-4ye31s2w.js.gz +0 -0
- package/web/{chunk-ezj5rjqr.js → chunk-5kavsn22.js} +1 -1
- package/web/chunk-5kavsn22.js.br +0 -0
- package/web/chunk-5kavsn22.js.gz +0 -0
- package/web/{chunk-vxadngbp.js → chunk-5q2h4tg8.js} +1 -1
- package/web/chunk-5q2h4tg8.js.br +4 -0
- package/web/chunk-5q2h4tg8.js.gz +0 -0
- package/web/{chunk-dmzvhbpn.js → chunk-5tbk6dx6.js} +3 -3
- package/web/chunk-5tbk6dx6.js.br +0 -0
- package/web/chunk-5tbk6dx6.js.gz +0 -0
- package/web/{chunk-9n1nsdqs.js → chunk-5yb0sm1r.js} +1 -1
- package/web/chunk-5yb0sm1r.js.br +0 -0
- package/web/chunk-5yb0sm1r.js.gz +0 -0
- package/web/chunk-5yz46tjw.js +2 -0
- package/web/chunk-5yz46tjw.js.br +0 -0
- package/web/chunk-5yz46tjw.js.gz +0 -0
- package/web/{chunk-3fd6mgf0.js → chunk-619a8t38.js} +1 -1
- package/web/chunk-619a8t38.js.br +0 -0
- package/web/chunk-619a8t38.js.gz +0 -0
- package/web/{chunk-cmhxtckb.js → chunk-6areryyn.js} +1 -1
- package/web/chunk-6areryyn.js.br +0 -0
- package/web/chunk-6areryyn.js.gz +0 -0
- package/web/{chunk-tgeeggkh.js → chunk-6ms78sx5.js} +1 -1
- package/web/chunk-6ms78sx5.js.br +0 -0
- package/web/chunk-6ms78sx5.js.gz +0 -0
- package/web/{chunk-bks2k04k.js → chunk-6ts9mtye.js} +1 -1
- package/web/chunk-6ts9mtye.js.br +0 -0
- package/web/chunk-6ts9mtye.js.gz +0 -0
- package/web/{chunk-kedjfh66.js → chunk-79whhay2.js} +1 -1
- package/web/chunk-79whhay2.js.br +0 -0
- package/web/chunk-79whhay2.js.gz +0 -0
- package/web/{chunk-ye7vge7s.js → chunk-7n1abr86.js} +1 -1
- package/web/chunk-7n1abr86.js.br +0 -0
- package/web/chunk-7n1abr86.js.gz +0 -0
- package/web/chunk-7qxfx983.js +1 -0
- package/web/chunk-7qxfx983.js.br +0 -0
- package/web/chunk-7qxfx983.js.gz +0 -0
- package/web/chunk-91k30q92.js +1 -0
- package/web/chunk-91k30q92.js.br +0 -0
- package/web/chunk-91k30q92.js.gz +0 -0
- package/web/{chunk-k6fwzn0z.js → chunk-91nyvkrb.js} +1 -1
- package/web/chunk-91nyvkrb.js.br +0 -0
- package/web/chunk-91nyvkrb.js.gz +0 -0
- package/web/{chunk-ahdca62g.js → chunk-9mbr6znb.js} +1 -1
- package/web/chunk-9mbr6znb.js.br +0 -0
- package/web/chunk-9mbr6znb.js.gz +0 -0
- package/web/{chunk-1yvcxpp2.js → chunk-9mvw6a5v.js} +4 -4
- package/web/chunk-9mvw6a5v.js.br +0 -0
- package/web/chunk-9mvw6a5v.js.gz +0 -0
- package/web/{chunk-kdegb6pd.js → chunk-a6hdn8tb.js} +5 -5
- package/web/chunk-a6hdn8tb.js.br +0 -0
- package/web/chunk-a6hdn8tb.js.gz +0 -0
- package/web/{chunk-37hmswdk.js → chunk-ar6m9fza.js} +5 -5
- package/web/chunk-ar6m9fza.js.br +0 -0
- package/web/chunk-ar6m9fza.js.gz +0 -0
- package/web/{chunk-q0srq8g5.js → chunk-ayqakyyq.js} +1 -1
- package/web/chunk-ayqakyyq.js.br +0 -0
- package/web/chunk-ayqakyyq.js.gz +0 -0
- package/web/{chunk-1ps9fj5n.js → chunk-cc6hn5xv.js} +2 -2
- package/web/chunk-cc6hn5xv.js.br +0 -0
- package/web/chunk-cc6hn5xv.js.gz +0 -0
- package/web/{chunk-d7f85w1y.js → chunk-ccymg1hp.js} +1 -1
- package/web/chunk-ccymg1hp.js.br +0 -0
- package/web/chunk-ccymg1hp.js.gz +0 -0
- package/web/{chunk-mhzqgzh0.js → chunk-cg9fe42b.js} +1 -1
- package/web/chunk-cg9fe42b.js.br +0 -0
- package/web/chunk-cg9fe42b.js.gz +0 -0
- package/web/chunk-cmcgmf94.js +1 -0
- package/web/chunk-cmcgmf94.js.br +0 -0
- package/web/chunk-cmcgmf94.js.gz +0 -0
- package/web/chunk-cnbbvd6n.js +1 -0
- package/web/chunk-cnbbvd6n.js.br +0 -0
- package/web/chunk-cnbbvd6n.js.gz +0 -0
- package/web/{chunk-wa8wr2y9.js → chunk-cxp2nbtc.js} +9 -9
- package/web/chunk-cxp2nbtc.js.br +0 -0
- package/web/chunk-cxp2nbtc.js.gz +0 -0
- package/web/{chunk-vh2prc6k.js → chunk-dj2b64aj.js} +1 -1
- package/web/chunk-dj2b64aj.js.br +0 -0
- package/web/chunk-dj2b64aj.js.gz +0 -0
- package/web/{chunk-gbcf0rdk.js → chunk-dsga6rp3.js} +1 -1
- package/web/chunk-dsga6rp3.js.br +0 -0
- package/web/chunk-dsga6rp3.js.gz +0 -0
- package/web/chunk-ek6q6a08.js +1 -0
- package/web/chunk-ek6q6a08.js.br +2 -0
- package/web/chunk-ek6q6a08.js.gz +0 -0
- package/web/{chunk-53cg6pxm.js → chunk-et1nm6h1.js} +2 -2
- package/web/chunk-et1nm6h1.js.br +0 -0
- package/web/chunk-et1nm6h1.js.gz +0 -0
- package/web/chunk-f1016wh6.js +1 -0
- package/web/chunk-f1016wh6.js.br +0 -0
- package/web/chunk-f1016wh6.js.gz +0 -0
- package/web/{chunk-6pbhqbv0.js → chunk-f42mwg61.js} +1 -1
- package/web/chunk-f42mwg61.js.br +0 -0
- package/web/chunk-f42mwg61.js.gz +0 -0
- package/web/{chunk-1ratg1jd.js → chunk-fk35d3bz.js} +1 -1
- package/web/chunk-fk35d3bz.js.br +0 -0
- package/web/chunk-fk35d3bz.js.gz +0 -0
- package/web/{chunk-e2z3kdhw.js → chunk-fpwztdhn.js} +3 -3
- package/web/chunk-fpwztdhn.js.br +0 -0
- package/web/chunk-fpwztdhn.js.gz +0 -0
- package/web/{chunk-1cwyy3gh.js → chunk-g30nqfka.js} +1 -1
- package/web/chunk-g30nqfka.js.br +0 -0
- package/web/chunk-g30nqfka.js.gz +0 -0
- package/web/chunk-gbwy4pfg.css +1 -0
- package/web/chunk-gbwy4pfg.css.br +0 -0
- package/web/chunk-gbwy4pfg.css.gz +0 -0
- package/web/{chunk-gj6bdv1y.js → chunk-gepgx19m.js} +9 -9
- package/web/chunk-gepgx19m.js.br +0 -0
- package/web/chunk-gepgx19m.js.gz +0 -0
- package/web/{chunk-v5p2fds9.js → chunk-grz69q28.js} +4 -4
- package/web/chunk-grz69q28.js.br +0 -0
- package/web/chunk-grz69q28.js.gz +0 -0
- package/web/{chunk-vhpzp7zd.js → chunk-gt62acsh.js} +1 -1
- package/web/chunk-gt62acsh.js.br +0 -0
- package/web/chunk-gt62acsh.js.gz +0 -0
- package/web/{chunk-81xbfpbq.js → chunk-h28xrvmg.js} +1 -1
- package/web/chunk-h28xrvmg.js.br +0 -0
- package/web/chunk-h28xrvmg.js.gz +0 -0
- package/web/{chunk-gpjytpyw.js → chunk-h80ypke7.js} +2 -2
- package/web/chunk-h80ypke7.js.br +0 -0
- package/web/chunk-h80ypke7.js.gz +0 -0
- package/web/chunk-k1cd6e24.js +1 -0
- package/web/chunk-k1cd6e24.js.br +0 -0
- package/web/chunk-k1cd6e24.js.gz +0 -0
- package/web/chunk-k9248573.js +1 -0
- package/web/chunk-k9248573.js.br +0 -0
- package/web/chunk-k9248573.js.gz +0 -0
- package/web/{chunk-6n1ha6ta.js → chunk-kqgn9dsa.js} +1 -1
- package/web/chunk-kqgn9dsa.js.br +0 -0
- package/web/chunk-kqgn9dsa.js.gz +0 -0
- package/web/chunk-kqngpw5m.js +1 -0
- package/web/chunk-kqngpw5m.js.br +0 -0
- package/web/chunk-kqngpw5m.js.gz +0 -0
- package/web/{chunk-dmhezjv3.js → chunk-kzj105r1.js} +4 -4
- package/web/chunk-kzj105r1.js.br +0 -0
- package/web/chunk-kzj105r1.js.gz +0 -0
- package/web/chunk-m14v2en1.js +1 -0
- package/web/chunk-m14v2en1.js.br +0 -0
- package/web/chunk-m14v2en1.js.gz +0 -0
- package/web/{chunk-1ghnag5v.js → chunk-m34et8g4.js} +1 -1
- package/web/chunk-m34et8g4.js.br +0 -0
- package/web/chunk-m34et8g4.js.gz +0 -0
- package/web/{chunk-esckazz2.js → chunk-md1f6gmk.js} +1 -1
- package/web/chunk-md1f6gmk.js.br +0 -0
- package/web/chunk-md1f6gmk.js.gz +0 -0
- package/web/{chunk-vpbnyz43.js → chunk-n05xf20n.js} +1 -1
- package/web/chunk-n05xf20n.js.br +0 -0
- package/web/chunk-n05xf20n.js.gz +0 -0
- package/web/{chunk-mh3nkkpx.js → chunk-n2k1gd6n.js} +6 -6
- package/web/chunk-n2k1gd6n.js.br +0 -0
- package/web/chunk-n2k1gd6n.js.gz +0 -0
- package/web/{chunk-apr33amc.js → chunk-nm8yza3v.js} +1 -1
- package/web/chunk-nm8yza3v.js.br +0 -0
- package/web/chunk-nm8yza3v.js.gz +0 -0
- package/web/chunk-pbg9rdwv.js +1 -0
- package/web/chunk-pbg9rdwv.js.br +2 -0
- package/web/chunk-pbg9rdwv.js.gz +0 -0
- package/web/chunk-qj9nd038.js +1 -0
- package/web/chunk-qj9nd038.js.br +0 -0
- package/web/chunk-qj9nd038.js.gz +0 -0
- package/web/chunk-qjaex9c0.js +1 -0
- package/web/chunk-qjaex9c0.js.br +2 -0
- package/web/chunk-qjaex9c0.js.gz +0 -0
- package/web/{chunk-72st75n7.js → chunk-qq79vsm8.js} +3 -3
- package/web/chunk-qq79vsm8.js.br +0 -0
- package/web/chunk-qq79vsm8.js.gz +0 -0
- package/web/{chunk-6a3wt5c5.js → chunk-qs5wnwd6.js} +3 -3
- package/web/chunk-qs5wnwd6.js.br +0 -0
- package/web/chunk-qs5wnwd6.js.gz +0 -0
- package/web/{chunk-wbxz2bjb.js → chunk-r381n550.js} +1 -1
- package/web/chunk-r381n550.js.br +0 -0
- package/web/chunk-r381n550.js.gz +0 -0
- package/web/{chunk-2rnnvxa5.js → chunk-r48vazdm.js} +3 -3
- package/web/chunk-r48vazdm.js.br +0 -0
- package/web/chunk-r48vazdm.js.gz +0 -0
- package/web/{chunk-hqt1f3fm.js → chunk-r55seq42.js} +1 -1
- package/web/chunk-r55seq42.js.br +0 -0
- package/web/chunk-r55seq42.js.gz +0 -0
- package/web/{chunk-82q4e8ff.js → chunk-r79zekav.js} +1 -1
- package/web/chunk-r79zekav.js.br +0 -0
- package/web/chunk-r79zekav.js.gz +0 -0
- package/web/{chunk-nb58m79v.js → chunk-r8qyvcks.js} +1 -1
- package/web/chunk-r8qyvcks.js.br +0 -0
- package/web/chunk-r8qyvcks.js.gz +0 -0
- package/web/chunk-r9dt0730.js +1 -0
- package/web/chunk-r9dt0730.js.br +0 -0
- package/web/chunk-r9dt0730.js.gz +0 -0
- package/web/chunk-rpjzwknn.js +1 -0
- package/web/chunk-rpjzwknn.js.br +0 -0
- package/web/chunk-rpjzwknn.js.gz +0 -0
- package/web/{chunk-186rp10x.js → chunk-sk3065js.js} +1 -1
- package/web/chunk-sk3065js.js.br +0 -0
- package/web/chunk-sk3065js.js.gz +0 -0
- package/web/{chunk-hwxj58j5.js → chunk-smywa1zw.js} +1 -1
- package/web/chunk-smywa1zw.js.br +0 -0
- package/web/chunk-smywa1zw.js.gz +0 -0
- package/web/{chunk-a8qe7kvz.js → chunk-trssyq9a.js} +1 -1
- package/web/chunk-trssyq9a.js.br +0 -0
- package/web/chunk-trssyq9a.js.gz +0 -0
- package/web/{chunk-0h0whn75.js → chunk-v329f8df.js} +1 -1
- package/web/chunk-v329f8df.js.br +0 -0
- package/web/chunk-v329f8df.js.gz +0 -0
- package/web/{chunk-zbzgd8kn.js → chunk-vb2feptd.js} +1 -1
- package/web/chunk-vb2feptd.js.br +0 -0
- package/web/chunk-vb2feptd.js.gz +0 -0
- package/web/chunk-vff33vj3.js +1 -0
- package/web/chunk-vff33vj3.js.br +2 -0
- package/web/chunk-vff33vj3.js.gz +0 -0
- package/web/{chunk-k4pknkvp.js → chunk-w9adyaze.js} +1 -1
- package/web/chunk-w9adyaze.js.br +0 -0
- package/web/chunk-w9adyaze.js.gz +0 -0
- package/web/{chunk-v6snw1sw.js → chunk-wgc8z5jv.js} +1 -1
- package/web/chunk-wgc8z5jv.js.br +0 -0
- package/web/chunk-wgc8z5jv.js.gz +0 -0
- package/web/{chunk-recfg8af.js → chunk-wvdk3w03.js} +1 -1
- package/web/chunk-wvdk3w03.js.br +0 -0
- package/web/chunk-wvdk3w03.js.gz +0 -0
- package/web/{chunk-bg0qgabv.js → chunk-wxmaw4ht.js} +1 -1
- package/web/chunk-wxmaw4ht.js.br +0 -0
- package/web/chunk-wxmaw4ht.js.gz +0 -0
- package/web/{chunk-7h59ac2b.js → chunk-x19jdqnt.js} +1 -1
- package/web/chunk-x19jdqnt.js.br +0 -0
- package/web/chunk-x19jdqnt.js.gz +0 -0
- package/web/{chunk-mj8dzc8q.js → chunk-x4153gx3.js} +5 -5
- package/web/chunk-x4153gx3.js.br +0 -0
- package/web/chunk-x4153gx3.js.gz +0 -0
- package/web/{chunk-qx5ab39c.js → chunk-x7wmb5d3.js} +2 -2
- package/web/chunk-x7wmb5d3.js.br +0 -0
- package/web/chunk-x7wmb5d3.js.gz +0 -0
- package/web/{chunk-v2bkkhb8.js → chunk-xp2zpmpp.js} +41 -41
- package/web/chunk-xp2zpmpp.js.br +0 -0
- package/web/chunk-xp2zpmpp.js.gz +0 -0
- package/web/chunk-y09v3sz7.js +1 -0
- package/web/chunk-y09v3sz7.js.br +0 -0
- package/web/chunk-y09v3sz7.js.gz +0 -0
- package/web/{chunk-h1c0m3g4.js → chunk-ywmsxe5z.js} +3 -3
- package/web/chunk-ywmsxe5z.js.br +0 -0
- package/web/chunk-ywmsxe5z.js.gz +0 -0
- package/web/{chunk-0tcmnvab.js → chunk-yzyxa823.js} +1 -1
- package/web/chunk-yzyxa823.js.br +0 -0
- package/web/chunk-yzyxa823.js.gz +0 -0
- package/web/{chunk-c28crzwk.js → chunk-zwx48gb8.js} +1 -1
- package/web/chunk-zwx48gb8.js.br +0 -0
- package/web/chunk-zwx48gb8.js.gz +0 -0
- package/web/index.html +1 -1
- package/web/index.html.br +0 -0
- package/web/index.html.gz +0 -0
- package/worker.js +1 -1
- package/chunk-0wwd4q6h.js +0 -5
- package/chunk-204c01mz.js +0 -25
- package/chunk-4wc2gbhe.js +0 -2
- package/chunk-51pfvmhh.js +0 -470
- package/chunk-5tsfqsmf.js +0 -2
- package/chunk-6hatfwsq.js +0 -2
- package/chunk-78ky455y.js +0 -4
- package/chunk-8mqaq042.js +0 -2
- package/chunk-as2mwf79.js +0 -2
- package/chunk-b516bp7n.js +0 -3
- package/chunk-c5pg2875.js +0 -3552
- package/chunk-g9hsrrj5.js +0 -2
- package/chunk-gpceyezp.js +0 -2
- package/chunk-h4n0gg11.js +0 -2
- package/chunk-jzya0e5n.js +0 -7
- package/chunk-ncb0tyaw.js +0 -2
- package/chunk-tpeg9fkd.js +0 -2
- package/chunk-v0mw006s.js +0 -15
- package/chunk-ys2fds2x.js +0 -3
- package/chunk-yshdvnsp.js +0 -2
- package/web/chunk-08w40agf.js.br +0 -0
- package/web/chunk-08w40agf.js.gz +0 -0
- package/web/chunk-0bfypmyv.js +0 -1
- package/web/chunk-0bfypmyv.js.br +0 -2
- package/web/chunk-0bfypmyv.js.gz +0 -0
- package/web/chunk-0h0whn75.js.br +0 -0
- package/web/chunk-0h0whn75.js.gz +0 -0
- package/web/chunk-0pzs9k06.js +0 -1
- package/web/chunk-0pzs9k06.js.br +0 -0
- package/web/chunk-0pzs9k06.js.gz +0 -0
- package/web/chunk-0tcmnvab.js.br +0 -0
- package/web/chunk-0tcmnvab.js.gz +0 -0
- package/web/chunk-186rp10x.js.br +0 -0
- package/web/chunk-186rp10x.js.gz +0 -0
- package/web/chunk-1cwyy3gh.js.br +0 -0
- package/web/chunk-1cwyy3gh.js.gz +0 -0
- package/web/chunk-1ecsxh85.js +0 -1
- package/web/chunk-1ecsxh85.js.br +0 -0
- package/web/chunk-1ecsxh85.js.gz +0 -0
- package/web/chunk-1ghnag5v.js.br +0 -0
- package/web/chunk-1ghnag5v.js.gz +0 -0
- package/web/chunk-1ps9fj5n.js.br +0 -0
- package/web/chunk-1ps9fj5n.js.gz +0 -0
- package/web/chunk-1ratg1jd.js.br +0 -0
- package/web/chunk-1ratg1jd.js.gz +0 -0
- package/web/chunk-1yvcxpp2.js.br +0 -0
- package/web/chunk-1yvcxpp2.js.gz +0 -0
- package/web/chunk-2r3w0pt0.js +0 -8
- package/web/chunk-2r3w0pt0.js.br +0 -0
- package/web/chunk-2r3w0pt0.js.gz +0 -0
- package/web/chunk-2rnnvxa5.js.br +0 -0
- package/web/chunk-2rnnvxa5.js.gz +0 -0
- package/web/chunk-2stffcvc.js +0 -1
- package/web/chunk-2stffcvc.js.br +0 -0
- package/web/chunk-2stffcvc.js.gz +0 -0
- package/web/chunk-2svqgkqw.js +0 -1
- package/web/chunk-2svqgkqw.js.br +0 -0
- package/web/chunk-2svqgkqw.js.gz +0 -0
- package/web/chunk-37hmswdk.js.br +0 -0
- package/web/chunk-37hmswdk.js.gz +0 -0
- package/web/chunk-3fd6mgf0.js.br +0 -0
- package/web/chunk-3fd6mgf0.js.gz +0 -0
- package/web/chunk-53cg6pxm.js.br +0 -0
- package/web/chunk-53cg6pxm.js.gz +0 -0
- package/web/chunk-59h87pvn.js.br +0 -0
- package/web/chunk-59h87pvn.js.gz +0 -0
- package/web/chunk-6a3wt5c5.js.br +0 -0
- package/web/chunk-6a3wt5c5.js.gz +0 -0
- package/web/chunk-6n1ha6ta.js.br +0 -0
- package/web/chunk-6n1ha6ta.js.gz +0 -0
- package/web/chunk-6pbhqbv0.js.br +0 -0
- package/web/chunk-6pbhqbv0.js.gz +0 -0
- package/web/chunk-72st75n7.js.br +0 -0
- package/web/chunk-72st75n7.js.gz +0 -0
- package/web/chunk-7h59ac2b.js.br +0 -0
- package/web/chunk-7h59ac2b.js.gz +0 -0
- package/web/chunk-81xbfpbq.js.br +0 -0
- package/web/chunk-81xbfpbq.js.gz +0 -0
- package/web/chunk-82q4e8ff.js.br +0 -0
- package/web/chunk-82q4e8ff.js.gz +0 -0
- package/web/chunk-89e8629e.js +0 -1
- package/web/chunk-89e8629e.js.br +0 -0
- package/web/chunk-89e8629e.js.gz +0 -0
- package/web/chunk-9n1nsdqs.js.br +0 -0
- package/web/chunk-9n1nsdqs.js.gz +0 -0
- package/web/chunk-a8qe7kvz.js.br +0 -0
- package/web/chunk-a8qe7kvz.js.gz +0 -0
- package/web/chunk-ahdca62g.js.br +0 -0
- package/web/chunk-ahdca62g.js.gz +0 -0
- package/web/chunk-apr33amc.js.br +0 -0
- package/web/chunk-apr33amc.js.gz +0 -0
- package/web/chunk-aw9bwd4w.js.br +0 -0
- package/web/chunk-aw9bwd4w.js.gz +0 -0
- package/web/chunk-bg0qgabv.js.br +0 -0
- package/web/chunk-bg0qgabv.js.gz +0 -0
- package/web/chunk-bks2k04k.js.br +0 -0
- package/web/chunk-bks2k04k.js.gz +0 -0
- package/web/chunk-c28crzwk.js.br +0 -0
- package/web/chunk-c28crzwk.js.gz +0 -0
- package/web/chunk-cmhxtckb.js.br +0 -0
- package/web/chunk-cmhxtckb.js.gz +0 -0
- package/web/chunk-d7f85w1y.js.br +0 -0
- package/web/chunk-d7f85w1y.js.gz +0 -0
- package/web/chunk-dmhezjv3.js.br +0 -0
- package/web/chunk-dmhezjv3.js.gz +0 -0
- package/web/chunk-dmzvhbpn.js.br +0 -0
- package/web/chunk-dmzvhbpn.js.gz +0 -0
- package/web/chunk-e2z3kdhw.js.br +0 -0
- package/web/chunk-e2z3kdhw.js.gz +0 -0
- package/web/chunk-eqmghkwh.js +0 -1
- package/web/chunk-eqmghkwh.js.br +0 -0
- package/web/chunk-eqmghkwh.js.gz +0 -0
- package/web/chunk-esckazz2.js.br +0 -0
- package/web/chunk-esckazz2.js.gz +0 -0
- package/web/chunk-ezj5rjqr.js.br +0 -0
- package/web/chunk-ezj5rjqr.js.gz +0 -0
- package/web/chunk-fjrgg82c.js.br +0 -0
- package/web/chunk-fjrgg82c.js.gz +0 -0
- package/web/chunk-gbcf0rdk.js.br +0 -0
- package/web/chunk-gbcf0rdk.js.gz +0 -0
- package/web/chunk-gj6bdv1y.js.br +0 -0
- package/web/chunk-gj6bdv1y.js.gz +0 -0
- package/web/chunk-gk1bc3c3.js.br +0 -0
- package/web/chunk-gk1bc3c3.js.gz +0 -0
- package/web/chunk-gpjytpyw.js.br +0 -0
- package/web/chunk-gpjytpyw.js.gz +0 -0
- package/web/chunk-h1c0m3g4.js.br +0 -0
- package/web/chunk-h1c0m3g4.js.gz +0 -0
- package/web/chunk-h1qv0cpd.css +0 -1
- package/web/chunk-h1qv0cpd.css.br +0 -0
- package/web/chunk-h1qv0cpd.css.gz +0 -0
- package/web/chunk-hq7e5xgd.js +0 -1
- package/web/chunk-hq7e5xgd.js.br +0 -0
- package/web/chunk-hq7e5xgd.js.gz +0 -0
- package/web/chunk-hqt1f3fm.js.br +0 -0
- package/web/chunk-hqt1f3fm.js.gz +0 -0
- package/web/chunk-hwxj58j5.js.br +0 -0
- package/web/chunk-hwxj58j5.js.gz +0 -0
- package/web/chunk-hxzb25a8.js +0 -1
- package/web/chunk-hxzb25a8.js.br +0 -0
- package/web/chunk-hxzb25a8.js.gz +0 -0
- package/web/chunk-jmnzcm1f.js.br +0 -0
- package/web/chunk-jmnzcm1f.js.gz +0 -0
- package/web/chunk-js940jjj.js.br +0 -0
- package/web/chunk-js940jjj.js.gz +0 -0
- package/web/chunk-jy9vkfbf.js +0 -1
- package/web/chunk-jy9vkfbf.js.br +0 -0
- package/web/chunk-jy9vkfbf.js.gz +0 -0
- package/web/chunk-k4pknkvp.js.br +0 -0
- package/web/chunk-k4pknkvp.js.gz +0 -0
- package/web/chunk-k6fwzn0z.js.br +0 -0
- package/web/chunk-k6fwzn0z.js.gz +0 -0
- package/web/chunk-kdegb6pd.js.br +0 -0
- package/web/chunk-kdegb6pd.js.gz +0 -0
- package/web/chunk-kedjfh66.js.br +0 -0
- package/web/chunk-kedjfh66.js.gz +0 -0
- package/web/chunk-mbpv2w5h.js.br +0 -0
- package/web/chunk-mbpv2w5h.js.gz +0 -0
- package/web/chunk-mh3nkkpx.js.br +0 -0
- package/web/chunk-mh3nkkpx.js.gz +0 -0
- package/web/chunk-mhzqgzh0.js.br +0 -0
- package/web/chunk-mhzqgzh0.js.gz +0 -0
- package/web/chunk-mj8dzc8q.js.br +0 -0
- package/web/chunk-mj8dzc8q.js.gz +0 -0
- package/web/chunk-mwfrxgbs.js.br +0 -0
- package/web/chunk-mwfrxgbs.js.gz +0 -0
- package/web/chunk-nb58m79v.js.br +0 -0
- package/web/chunk-nb58m79v.js.gz +0 -0
- package/web/chunk-nsna2v2r.js +0 -1
- package/web/chunk-nsna2v2r.js.br +0 -0
- package/web/chunk-nsna2v2r.js.gz +0 -0
- package/web/chunk-nxdp58nf.js +0 -1
- package/web/chunk-nxdp58nf.js.br +0 -0
- package/web/chunk-nxdp58nf.js.gz +0 -0
- package/web/chunk-nytgs01h.js +0 -1
- package/web/chunk-nytgs01h.js.br +0 -0
- package/web/chunk-nytgs01h.js.gz +0 -0
- package/web/chunk-pkxn54jm.js +0 -1
- package/web/chunk-pkxn54jm.js.br +0 -0
- package/web/chunk-pkxn54jm.js.gz +0 -0
- package/web/chunk-q0srq8g5.js.br +0 -0
- package/web/chunk-q0srq8g5.js.gz +0 -0
- package/web/chunk-qjg6dw46.js.br +0 -0
- package/web/chunk-qjg6dw46.js.gz +0 -0
- package/web/chunk-qjjxevxe.js +0 -1
- package/web/chunk-qjjxevxe.js.br +0 -0
- package/web/chunk-qjjxevxe.js.gz +0 -0
- package/web/chunk-qx5ab39c.js.br +0 -0
- package/web/chunk-qx5ab39c.js.gz +0 -0
- package/web/chunk-recfg8af.js.br +0 -0
- package/web/chunk-recfg8af.js.gz +0 -0
- package/web/chunk-tg3f9xmp.js.br +0 -0
- package/web/chunk-tg3f9xmp.js.gz +0 -0
- package/web/chunk-tgeeggkh.js.br +0 -0
- package/web/chunk-tgeeggkh.js.gz +0 -0
- package/web/chunk-v2bkkhb8.js.br +0 -0
- package/web/chunk-v2bkkhb8.js.gz +0 -0
- package/web/chunk-v5p2fds9.js.br +0 -0
- package/web/chunk-v5p2fds9.js.gz +0 -0
- package/web/chunk-v6snw1sw.js.br +0 -0
- package/web/chunk-v6snw1sw.js.gz +0 -0
- package/web/chunk-veadbga2.js +0 -1
- package/web/chunk-veadbga2.js.br +0 -2
- package/web/chunk-veadbga2.js.gz +0 -0
- package/web/chunk-vh2prc6k.js.br +0 -0
- package/web/chunk-vh2prc6k.js.gz +0 -0
- package/web/chunk-vhpzp7zd.js.br +0 -0
- package/web/chunk-vhpzp7zd.js.gz +0 -0
- package/web/chunk-vpbnyz43.js.br +0 -0
- package/web/chunk-vpbnyz43.js.gz +0 -0
- package/web/chunk-vxadngbp.js.br +0 -3
- package/web/chunk-vxadngbp.js.gz +0 -0
- package/web/chunk-wa8wr2y9.js.br +0 -0
- package/web/chunk-wa8wr2y9.js.gz +0 -0
- package/web/chunk-wbxz2bjb.js.br +0 -0
- package/web/chunk-wbxz2bjb.js.gz +0 -0
- package/web/chunk-wgzatts8.js +0 -1
- package/web/chunk-wgzatts8.js.br +0 -0
- package/web/chunk-wgzatts8.js.gz +0 -0
- package/web/chunk-whczyxqw.js +0 -1
- package/web/chunk-whczyxqw.js.br +0 -0
- package/web/chunk-whczyxqw.js.gz +0 -0
- package/web/chunk-wmzz2crn.js +0 -1
- package/web/chunk-wmzz2crn.js.br +0 -0
- package/web/chunk-wmzz2crn.js.gz +0 -0
- package/web/chunk-wvqcbp4a.js.br +0 -0
- package/web/chunk-wvqcbp4a.js.gz +0 -0
- package/web/chunk-x2hxq5yr.js.br +0 -0
- package/web/chunk-x2hxq5yr.js.gz +0 -0
- package/web/chunk-x8bnp6vr.js +0 -1
- package/web/chunk-x8bnp6vr.js.br +0 -0
- package/web/chunk-x8bnp6vr.js.gz +0 -0
- package/web/chunk-xvmzsftt.js +0 -2
- package/web/chunk-xvmzsftt.js.br +0 -0
- package/web/chunk-xvmzsftt.js.gz +0 -0
- package/web/chunk-ye7vge7s.js.br +0 -0
- package/web/chunk-ye7vge7s.js.gz +0 -0
- package/web/chunk-zbzgd8kn.js.br +0 -0
- package/web/chunk-zbzgd8kn.js.gz +0 -0
- package/web/chunk-zhwqscat.js +0 -1
- package/web/chunk-zhwqscat.js.br +0 -0
- package/web/chunk-zhwqscat.js.gz +0 -0
- package/web/chunk-znrsm604.js.br +0 -0
- package/web/chunk-znrsm604.js.gz +0 -0
- package/web/chunk-zthww0ws.js.br +0 -0
- package/web/chunk-zthww0ws.js.gz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v,o,ee,i,r,p,e,n,y,ir,da,pt,Ur,
|
|
1
|
+
import{v,o,ee,i,r,p,e,n,y,ir,da,pt,Ur,nt,yr,we,pe,Ii,Al,Di}from"./chunk-2s6fhjjc.js";function le(d){let{Button:b,confirm:L,PageLayout:x,Switch:_,cn:F,style:z}=y(),{connection:u,onOpen:O}=d,[D,f]=r([]),[w,H]=r([]),[q,J]=r([]),[I,T]=r(),[B,U]=r([]),[A,V]=r(!0),[k,N]=r(),[C,R]=r(),[W,P]=r(!1),[G,c]=r({}),s=i(0),E=v(async()=>{let t=++s.current;try{let[a,l,m,g]=await Promise.all([u.request("/api/automations"),u.request("/api/projects").catch(()=>[]),u.request("/api/info").catch(()=>{return}),u.request("/api/models").catch(()=>({models:[]}))]),Z=[...new Set(a.flatMap((h)=>h.lastSessionID?[h.lastSessionID]:[]))],te=(await Promise.all(Z.map(async(h)=>u.request(`/api/sessions/${encodeURIComponent(h)}`).catch((j)=>{if(j instanceof Error&&"status"in j&&j.status===404)return;throw j})))).filter((h)=>h!==void 0);if(t!==s.current)return;if(f(a.sort((h,j)=>h.created-j.created)),H(l),J(te),T(m),g?.models)U(g.models.map((h)=>h.id));N(void 0)}catch(a){if(t===s.current)N(a instanceof Error?a.message:"加载失败")}finally{if(t===s.current)V(!1)}},[u]);o(()=>(E(),()=>{s.current++}),[E]);let S=(t)=>{R(t),P(!0)},Q=async(t)=>{c((a)=>({...a,[t.id]:!0}));try{let a=await u.request(`/api/automations/${t.id}/run`,{method:"POST"});O(a.id)}catch(a){N(a instanceof Error?a.message:"运行失败")}finally{c((a)=>({...a,[t.id]:!1}))}},X=async(t)=>{if(!await L({title:`删除自动化「${t.name}」?`,description:"已经跑出来的会话会保留。",action:"删除",danger:!0}))return;try{await u.request(`/api/automations/${t.id}`,{method:"DELETE"}),f((l)=>l.filter((m)=>m.id!==t.id))}catch(l){N(l instanceof Error?l.message:"删除失败")}},Y=async(t,a)=>{try{let l=await u.request(`/api/automations/${t.id}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({enabled:a})});f((m)=>m.map((g)=>g.id===t.id?l:g))}catch(l){N(l instanceof Error?l.message:"状态切换失败")}};return n(x,{title:"自动化",description:n(p,{children:["到点自动开一个新会话执行提示词,跑完的结果在会话里查看。",I?.timezone&&n("span",{className:"text-faint",children:["按服务器时区 ",I.timezone,"。"]})]}),actions:n(b,{variant:"primary",onClick:()=>S(null),children:[e(we,{className:"size-4"}),"新建"]}),children:[k&&e("div",{className:"mb-4 rounded-lg bg-danger/10 px-3 py-2 text-xs text-danger",children:k}),A?e("div",{className:"flex justify-center py-12 text-xs text-faint",children:"正在加载自动化…"}):D.length===0?n("div",{className:z("surface.emptyDashed","animate-fade"),children:[e("div",{className:"grid size-11 place-items-center rounded-xl bg-raised text-dim",children:e(ir,{className:"size-5"})}),n("div",{children:[e("p",{className:"text-[15px] font-medium",children:"还没有自动化"}),e("p",{className:"mt-1 text-sm text-dim",children:"比如「每个工作日 9 点总结昨天的提交」。"})]}),n(b,{size:"sm",onClick:()=>S(null),className:"mt-1",children:[e(we,{className:"size-3.5"}),"新建自动化"]})]}):e("ul",{className:"flex animate-fade flex-col gap-3",children:D.map((t)=>{let a=t.projectID?w.find((g)=>g.id===t.projectID):void 0,l=t.lastSessionID?q.find((g)=>g.id===t.lastSessionID):void 0,m=Boolean(G[t.id]);return e("li",{children:n("article",{className:z("surface.card","group p-4 transition-[border-color,box-shadow] duration-200 hover:border-line-strong hover:shadow-composer"),children:[n("div",{className:"flex items-start gap-3",children:[n("div",{className:F("min-w-0 flex-1 transition-opacity duration-200",!t.enabled&&"opacity-55"),children:[e("h2",{className:"truncate text-[15px] font-medium",children:t.name}),n("div",{className:"mt-1 flex flex-wrap items-center gap-x-3.5 gap-y-1 text-[13px] text-dim",children:[n("span",{className:"flex items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:text-faint",children:[e(ir,{}),Al(t.schedule)]}),n("span",{className:"flex items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:text-faint",children:[a?e(pt,{}):e(Ur,{}),a?a.name:"聊天"]}),t.enabled&&t.nextRun!==null&&n("span",{className:"flex items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:text-faint",children:[e(da,{}),"下次 ",Di(t.nextRun)]})]})]}),e(_,{checked:t.enabled,label:t.enabled?"停用":"启用",onCheckedChange:(g)=>Y(t,g),className:"mt-0.5"})]}),e("p",{className:F("mt-3 line-clamp-2 text-sm leading-6 whitespace-pre-wrap text-faint transition-opacity duration-200",!t.enabled&&"opacity-55"),children:t.prompt}),n("div",{className:"mt-3 -mb-1 flex items-center gap-1",children:[n(b,{size:"sm",onClick:()=>Q(t),disabled:m,children:[e(yr,{className:"size-3.5"}),m?"正在启动…":"立即运行"]}),n(b,{size:"sm",variant:"ghost",onClick:()=>S(t),children:[e(nt,{className:"size-3.5"}),"编辑"]}),n(b,{size:"sm",variant:"danger-ghost",onClick:()=>X(t),children:[e(pe,{className:"size-3.5"}),"删除"]}),e("div",{className:"flex-1"}),t.lastRun!==null&&n("button",{type:"button",disabled:!l,onClick:()=>l&&O(l.id),className:"rounded-md px-1.5 py-1 text-[13px] text-faint transition-colors enabled:hover:bg-raised enabled:hover:text-ink",children:["上次运行 ",Di(t.lastRun),l?.archivedAt!=null?" · 已归档":"",!l?" · 会话已删除":""]})]})]})},t.id)})}),C!==void 0&&e(ne,{open:W,onOpenChange:P,automation:C??void 0,projects:w,models:B,timezone:I?.timezone,onSaved:(t)=>{f((a)=>{let l=a.findIndex((m)=>m.id===t.id);if(l>=0){let m=[...a];return m[l]=t,m}return[...a,t].sort((m,g)=>m.created-g.created)}),P(!1)},connection:u},C?.id??"new")]})}var M="custom",K="chat";function ne(d){let{Button:b,Dialog:L,Field:x,Form:_,FormError:F,Input:z,Select:u,Textarea:O}=y(),D=ee(),f=d.automation,[w,H]=r(f?.name??""),[q,J]=r(f?.prompt??""),[I,T]=r(f?.schedule??Ii[0]?.cron??"0 9 * * *"),[B,U]=r(()=>!Ii.some((c)=>c.cron===I)),[A,V]=r(f?.projectID??K),[k,N]=r(f?.model??""),[C,R]=r(!1),[W,P]=r();async function G(c){c.preventDefault(),R(!0),P(void 0);try{let s=A===K?void 0:A,E={name:w,prompt:q,schedule:I,model:k||void 0},S;if(f)S=await d.connection.request(`/api/automations/${f.id}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({...E,projectID:s??null})});else S=await d.connection.request("/api/automations",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({...E,projectID:s})});d.onSaved(S)}catch(s){P(s instanceof Error?s.message:"保存失败")}finally{R(!1)}}return e(L,{open:d.open,onOpenChange:d.onOpenChange,title:d.automation?"编辑自动化":"新建自动化",size:"lg",footer:n(p,{children:[e("div",{className:"flex-1 max-sm:hidden"}),e(b,{onClick:()=>d.onOpenChange(!1),children:"取消"}),e(b,{type:"submit",form:D,variant:"primary",disabled:C,children:C?"正在保存…":d.automation?"保存":"创建"})]}),children:n(_,{id:D,onSubmit:G,children:[e(x,{label:"名称",children:(c)=>e(z,{id:c,autoFocus:!f,required:!0,value:w,onChange:(s)=>H(s.target.value),placeholder:"例如:每日提交总结"})}),e(x,{label:"提示词",hint:"没人盯着运行,写清楚要做什么、结果怎么汇报。",children:(c)=>e(O,{id:c,required:!0,value:q,onChange:(s)=>J(s.target.value),rows:5,placeholder:"总结昨天到现在的 git 提交,按模块分组,列出需要我关注的改动。"})}),n("div",{className:"grid gap-x-3 gap-y-4 sm:grid-cols-2",children:[e(x,{label:"时间",children:(c)=>e(u,{id:c,value:B?M:I,onValueChange:(s)=>{if(U(s===M),s!==M)T(s)},groups:[{options:Ii.map((s)=>({value:s.cron,label:s.label}))},{options:[{value:M,label:"自定义(cron)"}]}]})}),e(x,{label:"在哪里运行",children:(c)=>e(u,{id:c,value:A,onValueChange:V,groups:[{options:[{value:K,label:"聊天",description:"不绑定目录",icon:e(Ur,{})}]},...d.projects.length?[{label:"项目",options:d.projects.map((s)=>({value:s.id,label:s.name,icon:e(pt,{})}))}]:[]]})})]}),B&&e(x,{label:"cron 表达式",hint:`分 时 日 月 周,例如 30 8 * * 1-5 是工作日 8:30。${d.timezone?`按 ${d.timezone} 时间。`:""}`,children:(c)=>e(z,{id:c,required:!0,value:I,onChange:(s)=>T(s.target.value),spellCheck:!1,className:"font-mono"})}),d.models.length>0&&e(x,{label:"模型",children:(c)=>e(u,{id:c,value:k||"default",onValueChange:(s)=>N(s==="default"?"":s),groups:[{options:[{value:"default",label:"默认模型"},...d.models.map((s)=>({value:s,label:s}))]}]})}),e(F,{children:W})]})})}export{le as AutomationsPage};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t,a,Ce,j,k,G,R,I,L,D,u,h,zr,Ei,Rt,T,Li}from"./chunk-v2bkkhb8.js";import{lr}from"./chunk-zbzgd8kn.js";var Jt=function(){var e=t(function(Ot,v,S,w){for(S=S||{},w=Ot.length;w--;S[Ot[w]]=v);return S},"o"),n=[1,24],i=[1,25],o=[1,26],f=[1,27],l=[1,28],r=[1,63],p=[1,64],s=[1,65],y=[1,66],m=[1,67],b=[1,68],x=[1,69],C=[1,29],B=[1,30],U=[1,31],V=[1,32],Y=[1,33],q=[1,34],rt=[1,35],st=[1,36],at=[1,37],it=[1,38],ot=[1,39],lt=[1,40],ct=[1,41],ut=[1,42],ht=[1,43],dt=[1,44],pt=[1,45],ft=[1,46],yt=[1,47],_t=[1,48],bt=[1,50],mt=[1,51],gt=[1,52],xt=[1,53],vt=[1,54],kt=[1,55],Et=[1,56],St=[1,57],Tt=[1,58],Ct=[1,59],wt=[1,60],Vt=[14,42],te=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ft=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],O=[1,82],P=[1,83],N=[1,84],A=[1,85],M=[12,14,42],ye=[12,14,33,42],qt=[12,14,33,42,76,77,79,80],At=[12,33],ee=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ne={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:t(function(v,S,w,g,F,d,Ut){var _=d.length-1;switch(F){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(d[_-3]);break;case 19:g.setTitle(d[_].substring(6)),this.$=d[_].substring(6);break;case 20:g.setAccDescription(d[_].substring(15)),this.$=d[_].substring(15);break;case 21:this.$=d[_].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=d[_].trim(),g.setAccDescription(this.$);break;case 28:d[_].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...d[_]),this.$=d[_];break;case 29:d[_].splice(2,0,"SYSTEM"),g.addPersonOrSystemBoundary(...d[_]),this.$=d[_];break;case 30:g.addPersonOrSystemBoundary(...d[_]),this.$=d[_];break;case 31:d[_].splice(2,0,"CONTAINER"),g.addContainerBoundary(...d[_]),this.$=d[_];break;case 32:g.addDeploymentNode("node",...d[_]),this.$=d[_];break;case 33:g.addDeploymentNode("nodeL",...d[_]),this.$=d[_];break;case 34:g.addDeploymentNode("nodeR",...d[_]),this.$=d[_];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...d[_]),this.$=d[_];break;case 40:g.addPersonOrSystem("external_person",...d[_]),this.$=d[_];break;case 41:g.addPersonOrSystem("system",...d[_]),this.$=d[_];break;case 42:g.addPersonOrSystem("system_db",...d[_]),this.$=d[_];break;case 43:g.addPersonOrSystem("system_queue",...d[_]),this.$=d[_];break;case 44:g.addPersonOrSystem("external_system",...d[_]),this.$=d[_];break;case 45:g.addPersonOrSystem("external_system_db",...d[_]),this.$=d[_];break;case 46:g.addPersonOrSystem("external_system_queue",...d[_]),this.$=d[_];break;case 47:g.addContainer("container",...d[_]),this.$=d[_];break;case 48:g.addContainer("container_db",...d[_]),this.$=d[_];break;case 49:g.addContainer("container_queue",...d[_]),this.$=d[_];break;case 50:g.addContainer("external_container",...d[_]),this.$=d[_];break;case 51:g.addContainer("external_container_db",...d[_]),this.$=d[_];break;case 52:g.addContainer("external_container_queue",...d[_]),this.$=d[_];break;case 53:g.addComponent("component",...d[_]),this.$=d[_];break;case 54:g.addComponent("component_db",...d[_]),this.$=d[_];break;case 55:g.addComponent("component_queue",...d[_]),this.$=d[_];break;case 56:g.addComponent("external_component",...d[_]),this.$=d[_];break;case 57:g.addComponent("external_component_db",...d[_]),this.$=d[_];break;case 58:g.addComponent("external_component_queue",...d[_]),this.$=d[_];break;case 60:g.addRel("rel",...d[_]),this.$=d[_];break;case 61:g.addRel("birel",...d[_]),this.$=d[_];break;case 62:g.addRel("rel_u",...d[_]),this.$=d[_];break;case 63:g.addRel("rel_d",...d[_]),this.$=d[_];break;case 64:g.addRel("rel_l",...d[_]),this.$=d[_];break;case 65:g.addRel("rel_r",...d[_]),this.$=d[_];break;case 66:g.addRel("rel_b",...d[_]),this.$=d[_];break;case 67:d[_].splice(0,1),g.addRel("rel",...d[_]),this.$=d[_];break;case 68:g.updateElStyle("update_el_style",...d[_]),this.$=d[_];break;case 69:g.updateRelStyle("update_rel_style",...d[_]),this.$=d[_];break;case 70:g.updateLayoutConfig("update_layout_config",...d[_]),this.$=d[_];break;case 71:this.$=[d[_]];break;case 72:d[_].unshift(d[_-1]),this.$=d[_];break;case 73:case 75:this.$=d[_].trim();break;case 74:let Lt={};Lt[d[_-1].trim()]=d[_].trim(),this.$=Lt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:n,23:i,24:o,26:f,28:l,29:49,30:61,32:62,34:r,36:p,37:s,38:y,39:m,40:b,41:x,43:23,44:C,45:B,46:U,47:V,48:Y,49:q,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:wt},{13:70,19:20,20:21,21:22,22:n,23:i,24:o,26:f,28:l,29:49,30:61,32:62,34:r,36:p,37:s,38:y,39:m,40:b,41:x,43:23,44:C,45:B,46:U,47:V,48:Y,49:q,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:wt},{13:71,19:20,20:21,21:22,22:n,23:i,24:o,26:f,28:l,29:49,30:61,32:62,34:r,36:p,37:s,38:y,39:m,40:b,41:x,43:23,44:C,45:B,46:U,47:V,48:Y,49:q,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:wt},{13:72,19:20,20:21,21:22,22:n,23:i,24:o,26:f,28:l,29:49,30:61,32:62,34:r,36:p,37:s,38:y,39:m,40:b,41:x,43:23,44:C,45:B,46:U,47:V,48:Y,49:q,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:wt},{13:73,19:20,20:21,21:22,22:n,23:i,24:o,26:f,28:l,29:49,30:61,32:62,34:r,36:p,37:s,38:y,39:m,40:b,41:x,43:23,44:C,45:B,46:U,47:V,48:Y,49:q,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:wt},{14:[1,74]},e(Vt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:p,37:s,38:y,39:m,40:b,41:x,44:C,45:B,46:U,47:V,48:Y,49:q,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:wt}),e(Vt,[2,14]),e(te,[2,16],{12:[1,76]}),e(Vt,[2,36],{12:[1,77]}),e(Ft,[2,19]),e(Ft,[2,20]),{25:[1,78]},{27:[1,79]},e(Ft,[2,23]),{35:80,75:81,76:O,77:P,79:N,80:A},{35:86,75:81,76:O,77:P,79:N,80:A},{35:87,75:81,76:O,77:P,79:N,80:A},{35:88,75:81,76:O,77:P,79:N,80:A},{35:89,75:81,76:O,77:P,79:N,80:A},{35:90,75:81,76:O,77:P,79:N,80:A},{35:91,75:81,76:O,77:P,79:N,80:A},{35:92,75:81,76:O,77:P,79:N,80:A},{35:93,75:81,76:O,77:P,79:N,80:A},{35:94,75:81,76:O,77:P,79:N,80:A},{35:95,75:81,76:O,77:P,79:N,80:A},{35:96,75:81,76:O,77:P,79:N,80:A},{35:97,75:81,76:O,77:P,79:N,80:A},{35:98,75:81,76:O,77:P,79:N,80:A},{35:99,75:81,76:O,77:P,79:N,80:A},{35:100,75:81,76:O,77:P,79:N,80:A},{35:101,75:81,76:O,77:P,79:N,80:A},{35:102,75:81,76:O,77:P,79:N,80:A},{35:103,75:81,76:O,77:P,79:N,80:A},{35:104,75:81,76:O,77:P,79:N,80:A},e(M,[2,59]),{35:105,75:81,76:O,77:P,79:N,80:A},{35:106,75:81,76:O,77:P,79:N,80:A},{35:107,75:81,76:O,77:P,79:N,80:A},{35:108,75:81,76:O,77:P,79:N,80:A},{35:109,75:81,76:O,77:P,79:N,80:A},{35:110,75:81,76:O,77:P,79:N,80:A},{35:111,75:81,76:O,77:P,79:N,80:A},{35:112,75:81,76:O,77:P,79:N,80:A},{35:113,75:81,76:O,77:P,79:N,80:A},{35:114,75:81,76:O,77:P,79:N,80:A},{35:115,75:81,76:O,77:P,79:N,80:A},{20:116,29:49,30:61,32:62,34:r,36:p,37:s,38:y,39:m,40:b,41:x,43:23,44:C,45:B,46:U,47:V,48:Y,49:q,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:wt},{12:[1,118],33:[1,117]},{35:119,75:81,76:O,77:P,79:N,80:A},{35:120,75:81,76:O,77:P,79:N,80:A},{35:121,75:81,76:O,77:P,79:N,80:A},{35:122,75:81,76:O,77:P,79:N,80:A},{35:123,75:81,76:O,77:P,79:N,80:A},{35:124,75:81,76:O,77:P,79:N,80:A},{35:125,75:81,76:O,77:P,79:N,80:A},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Vt,[2,15]),e(te,[2,17],{21:22,19:130,22:n,23:i,24:o,26:f,28:l}),e(Vt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:n,23:i,24:o,26:f,28:l,34:r,36:p,37:s,38:y,39:m,40:b,41:x,44:C,45:B,46:U,47:V,48:Y,49:q,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:wt}),e(Ft,[2,21]),e(Ft,[2,22]),e(M,[2,39]),e(ye,[2,71],{75:81,35:132,76:O,77:P,79:N,80:A}),e(qt,[2,73]),{78:[1,133]},e(qt,[2,75]),e(qt,[2,76]),e(M,[2,40]),e(M,[2,41]),e(M,[2,42]),e(M,[2,43]),e(M,[2,44]),e(M,[2,45]),e(M,[2,46]),e(M,[2,47]),e(M,[2,48]),e(M,[2,49]),e(M,[2,50]),e(M,[2,51]),e(M,[2,52]),e(M,[2,53]),e(M,[2,54]),e(M,[2,55]),e(M,[2,56]),e(M,[2,57]),e(M,[2,58]),e(M,[2,60]),e(M,[2,61]),e(M,[2,62]),e(M,[2,63]),e(M,[2,64]),e(M,[2,65]),e(M,[2,66]),e(M,[2,67]),e(M,[2,68]),e(M,[2,69]),e(M,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(At,[2,28]),e(At,[2,29]),e(At,[2,30]),e(At,[2,31]),e(At,[2,32]),e(At,[2,33]),e(At,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(te,[2,18]),e(Vt,[2,38]),e(ye,[2,72]),e(qt,[2,74]),e(M,[2,24]),e(M,[2,35]),e(ee,[2,25]),e(ee,[2,26],{12:[1,138]}),e(ee,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:t(function(v,S){if(S.recoverable)this.trace(v);else{var w=Error(v);throw w.hash=S,w}},"parseError"),parse:t(function(v){var S=this,w=[0],g=[],F=[null],d=[],Ut=this.table,_="",Lt=0,_e=0,be=0,Ve=2,me=1,Ye=d.slice.call(arguments,1),z=Object.create(this.lexer),It={yy:{}};for(var re in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,re))It.yy[re]=this.yy[re];if(z.setInput(v,It.yy),It.yy.lexer=z,It.yy.parser=this,typeof z.yylloc>"u")z.yylloc={};var se=z.yylloc;d.push(se);var Fe=z.options&&z.options.ranges;if(typeof It.yy.parseError==="function")this.parseError=It.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Ue(Q){w.length=w.length-2*Q,F.length=F.length-Q,d.length=d.length-Q}t(Ue,"popStack");function ge(){var Q=g.pop()||z.lex()||me;if(typeof Q!=="number"){if(Q instanceof Array)g=Q,Q=g.pop();Q=S.symbols_[Q]||Q}return Q}t(ge,"lex");var W,ae,Mt,H,X0,ie,Yt={},Qt,et,xe,Kt;while(!0){if(Mt=w[w.length-1],this.defaultActions[Mt])H=this.defaultActions[Mt];else{if(W===null||typeof W>"u")W=ge();H=Ut[Mt]&&Ut[Mt][W]}if(typeof H>"u"||!H.length||!H[0]){var oe="";Kt=[];for(Qt in Ut[Mt])if(this.terminals_[Qt]&&Qt>Ve)Kt.push("'"+this.terminals_[Qt]+"'");if(z.showPosition)oe="Parse error on line "+(Lt+1)+`:
|
|
1
|
+
import{t,a,Ce,j,k,G,R,I,L,D,u,h,zr,Ei,Rt,T,Li}from"./chunk-xp2zpmpp.js";import{lr}from"./chunk-vb2feptd.js";var Jt=function(){var e=t(function(Ot,v,S,w){for(S=S||{},w=Ot.length;w--;S[Ot[w]]=v);return S},"o"),n=[1,24],i=[1,25],o=[1,26],f=[1,27],l=[1,28],r=[1,63],p=[1,64],s=[1,65],y=[1,66],m=[1,67],b=[1,68],x=[1,69],C=[1,29],B=[1,30],U=[1,31],V=[1,32],Y=[1,33],q=[1,34],rt=[1,35],st=[1,36],at=[1,37],it=[1,38],ot=[1,39],lt=[1,40],ct=[1,41],ut=[1,42],ht=[1,43],dt=[1,44],pt=[1,45],ft=[1,46],yt=[1,47],_t=[1,48],bt=[1,50],mt=[1,51],gt=[1,52],xt=[1,53],vt=[1,54],kt=[1,55],Et=[1,56],St=[1,57],Tt=[1,58],Ct=[1,59],wt=[1,60],Vt=[14,42],te=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ft=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],O=[1,82],P=[1,83],N=[1,84],A=[1,85],M=[12,14,42],ye=[12,14,33,42],qt=[12,14,33,42,76,77,79,80],At=[12,33],ee=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ne={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:t(function(v,S,w,g,F,d,Ut){var _=d.length-1;switch(F){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(d[_-3]);break;case 19:g.setTitle(d[_].substring(6)),this.$=d[_].substring(6);break;case 20:g.setAccDescription(d[_].substring(15)),this.$=d[_].substring(15);break;case 21:this.$=d[_].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=d[_].trim(),g.setAccDescription(this.$);break;case 28:d[_].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...d[_]),this.$=d[_];break;case 29:d[_].splice(2,0,"SYSTEM"),g.addPersonOrSystemBoundary(...d[_]),this.$=d[_];break;case 30:g.addPersonOrSystemBoundary(...d[_]),this.$=d[_];break;case 31:d[_].splice(2,0,"CONTAINER"),g.addContainerBoundary(...d[_]),this.$=d[_];break;case 32:g.addDeploymentNode("node",...d[_]),this.$=d[_];break;case 33:g.addDeploymentNode("nodeL",...d[_]),this.$=d[_];break;case 34:g.addDeploymentNode("nodeR",...d[_]),this.$=d[_];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...d[_]),this.$=d[_];break;case 40:g.addPersonOrSystem("external_person",...d[_]),this.$=d[_];break;case 41:g.addPersonOrSystem("system",...d[_]),this.$=d[_];break;case 42:g.addPersonOrSystem("system_db",...d[_]),this.$=d[_];break;case 43:g.addPersonOrSystem("system_queue",...d[_]),this.$=d[_];break;case 44:g.addPersonOrSystem("external_system",...d[_]),this.$=d[_];break;case 45:g.addPersonOrSystem("external_system_db",...d[_]),this.$=d[_];break;case 46:g.addPersonOrSystem("external_system_queue",...d[_]),this.$=d[_];break;case 47:g.addContainer("container",...d[_]),this.$=d[_];break;case 48:g.addContainer("container_db",...d[_]),this.$=d[_];break;case 49:g.addContainer("container_queue",...d[_]),this.$=d[_];break;case 50:g.addContainer("external_container",...d[_]),this.$=d[_];break;case 51:g.addContainer("external_container_db",...d[_]),this.$=d[_];break;case 52:g.addContainer("external_container_queue",...d[_]),this.$=d[_];break;case 53:g.addComponent("component",...d[_]),this.$=d[_];break;case 54:g.addComponent("component_db",...d[_]),this.$=d[_];break;case 55:g.addComponent("component_queue",...d[_]),this.$=d[_];break;case 56:g.addComponent("external_component",...d[_]),this.$=d[_];break;case 57:g.addComponent("external_component_db",...d[_]),this.$=d[_];break;case 58:g.addComponent("external_component_queue",...d[_]),this.$=d[_];break;case 60:g.addRel("rel",...d[_]),this.$=d[_];break;case 61:g.addRel("birel",...d[_]),this.$=d[_];break;case 62:g.addRel("rel_u",...d[_]),this.$=d[_];break;case 63:g.addRel("rel_d",...d[_]),this.$=d[_];break;case 64:g.addRel("rel_l",...d[_]),this.$=d[_];break;case 65:g.addRel("rel_r",...d[_]),this.$=d[_];break;case 66:g.addRel("rel_b",...d[_]),this.$=d[_];break;case 67:d[_].splice(0,1),g.addRel("rel",...d[_]),this.$=d[_];break;case 68:g.updateElStyle("update_el_style",...d[_]),this.$=d[_];break;case 69:g.updateRelStyle("update_rel_style",...d[_]),this.$=d[_];break;case 70:g.updateLayoutConfig("update_layout_config",...d[_]),this.$=d[_];break;case 71:this.$=[d[_]];break;case 72:d[_].unshift(d[_-1]),this.$=d[_];break;case 73:case 75:this.$=d[_].trim();break;case 74:let Lt={};Lt[d[_-1].trim()]=d[_].trim(),this.$=Lt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:n,23:i,24:o,26:f,28:l,29:49,30:61,32:62,34:r,36:p,37:s,38:y,39:m,40:b,41:x,43:23,44:C,45:B,46:U,47:V,48:Y,49:q,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:wt},{13:70,19:20,20:21,21:22,22:n,23:i,24:o,26:f,28:l,29:49,30:61,32:62,34:r,36:p,37:s,38:y,39:m,40:b,41:x,43:23,44:C,45:B,46:U,47:V,48:Y,49:q,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:wt},{13:71,19:20,20:21,21:22,22:n,23:i,24:o,26:f,28:l,29:49,30:61,32:62,34:r,36:p,37:s,38:y,39:m,40:b,41:x,43:23,44:C,45:B,46:U,47:V,48:Y,49:q,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:wt},{13:72,19:20,20:21,21:22,22:n,23:i,24:o,26:f,28:l,29:49,30:61,32:62,34:r,36:p,37:s,38:y,39:m,40:b,41:x,43:23,44:C,45:B,46:U,47:V,48:Y,49:q,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:wt},{13:73,19:20,20:21,21:22,22:n,23:i,24:o,26:f,28:l,29:49,30:61,32:62,34:r,36:p,37:s,38:y,39:m,40:b,41:x,43:23,44:C,45:B,46:U,47:V,48:Y,49:q,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:wt},{14:[1,74]},e(Vt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:p,37:s,38:y,39:m,40:b,41:x,44:C,45:B,46:U,47:V,48:Y,49:q,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:wt}),e(Vt,[2,14]),e(te,[2,16],{12:[1,76]}),e(Vt,[2,36],{12:[1,77]}),e(Ft,[2,19]),e(Ft,[2,20]),{25:[1,78]},{27:[1,79]},e(Ft,[2,23]),{35:80,75:81,76:O,77:P,79:N,80:A},{35:86,75:81,76:O,77:P,79:N,80:A},{35:87,75:81,76:O,77:P,79:N,80:A},{35:88,75:81,76:O,77:P,79:N,80:A},{35:89,75:81,76:O,77:P,79:N,80:A},{35:90,75:81,76:O,77:P,79:N,80:A},{35:91,75:81,76:O,77:P,79:N,80:A},{35:92,75:81,76:O,77:P,79:N,80:A},{35:93,75:81,76:O,77:P,79:N,80:A},{35:94,75:81,76:O,77:P,79:N,80:A},{35:95,75:81,76:O,77:P,79:N,80:A},{35:96,75:81,76:O,77:P,79:N,80:A},{35:97,75:81,76:O,77:P,79:N,80:A},{35:98,75:81,76:O,77:P,79:N,80:A},{35:99,75:81,76:O,77:P,79:N,80:A},{35:100,75:81,76:O,77:P,79:N,80:A},{35:101,75:81,76:O,77:P,79:N,80:A},{35:102,75:81,76:O,77:P,79:N,80:A},{35:103,75:81,76:O,77:P,79:N,80:A},{35:104,75:81,76:O,77:P,79:N,80:A},e(M,[2,59]),{35:105,75:81,76:O,77:P,79:N,80:A},{35:106,75:81,76:O,77:P,79:N,80:A},{35:107,75:81,76:O,77:P,79:N,80:A},{35:108,75:81,76:O,77:P,79:N,80:A},{35:109,75:81,76:O,77:P,79:N,80:A},{35:110,75:81,76:O,77:P,79:N,80:A},{35:111,75:81,76:O,77:P,79:N,80:A},{35:112,75:81,76:O,77:P,79:N,80:A},{35:113,75:81,76:O,77:P,79:N,80:A},{35:114,75:81,76:O,77:P,79:N,80:A},{35:115,75:81,76:O,77:P,79:N,80:A},{20:116,29:49,30:61,32:62,34:r,36:p,37:s,38:y,39:m,40:b,41:x,43:23,44:C,45:B,46:U,47:V,48:Y,49:q,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:wt},{12:[1,118],33:[1,117]},{35:119,75:81,76:O,77:P,79:N,80:A},{35:120,75:81,76:O,77:P,79:N,80:A},{35:121,75:81,76:O,77:P,79:N,80:A},{35:122,75:81,76:O,77:P,79:N,80:A},{35:123,75:81,76:O,77:P,79:N,80:A},{35:124,75:81,76:O,77:P,79:N,80:A},{35:125,75:81,76:O,77:P,79:N,80:A},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Vt,[2,15]),e(te,[2,17],{21:22,19:130,22:n,23:i,24:o,26:f,28:l}),e(Vt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:n,23:i,24:o,26:f,28:l,34:r,36:p,37:s,38:y,39:m,40:b,41:x,44:C,45:B,46:U,47:V,48:Y,49:q,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:wt}),e(Ft,[2,21]),e(Ft,[2,22]),e(M,[2,39]),e(ye,[2,71],{75:81,35:132,76:O,77:P,79:N,80:A}),e(qt,[2,73]),{78:[1,133]},e(qt,[2,75]),e(qt,[2,76]),e(M,[2,40]),e(M,[2,41]),e(M,[2,42]),e(M,[2,43]),e(M,[2,44]),e(M,[2,45]),e(M,[2,46]),e(M,[2,47]),e(M,[2,48]),e(M,[2,49]),e(M,[2,50]),e(M,[2,51]),e(M,[2,52]),e(M,[2,53]),e(M,[2,54]),e(M,[2,55]),e(M,[2,56]),e(M,[2,57]),e(M,[2,58]),e(M,[2,60]),e(M,[2,61]),e(M,[2,62]),e(M,[2,63]),e(M,[2,64]),e(M,[2,65]),e(M,[2,66]),e(M,[2,67]),e(M,[2,68]),e(M,[2,69]),e(M,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(At,[2,28]),e(At,[2,29]),e(At,[2,30]),e(At,[2,31]),e(At,[2,32]),e(At,[2,33]),e(At,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(te,[2,18]),e(Vt,[2,38]),e(ye,[2,72]),e(qt,[2,74]),e(M,[2,24]),e(M,[2,35]),e(ee,[2,25]),e(ee,[2,26],{12:[1,138]}),e(ee,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:t(function(v,S){if(S.recoverable)this.trace(v);else{var w=Error(v);throw w.hash=S,w}},"parseError"),parse:t(function(v){var S=this,w=[0],g=[],F=[null],d=[],Ut=this.table,_="",Lt=0,_e=0,be=0,Ve=2,me=1,Ye=d.slice.call(arguments,1),z=Object.create(this.lexer),It={yy:{}};for(var re in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,re))It.yy[re]=this.yy[re];if(z.setInput(v,It.yy),It.yy.lexer=z,It.yy.parser=this,typeof z.yylloc>"u")z.yylloc={};var se=z.yylloc;d.push(se);var Fe=z.options&&z.options.ranges;if(typeof It.yy.parseError==="function")this.parseError=It.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Ue(Q){w.length=w.length-2*Q,F.length=F.length-Q,d.length=d.length-Q}t(Ue,"popStack");function ge(){var Q=g.pop()||z.lex()||me;if(typeof Q!=="number"){if(Q instanceof Array)g=Q,Q=g.pop();Q=S.symbols_[Q]||Q}return Q}t(ge,"lex");var W,ae,Mt,H,X0,ie,Yt={},Qt,et,xe,Kt;while(!0){if(Mt=w[w.length-1],this.defaultActions[Mt])H=this.defaultActions[Mt];else{if(W===null||typeof W>"u")W=ge();H=Ut[Mt]&&Ut[Mt][W]}if(typeof H>"u"||!H.length||!H[0]){var oe="";Kt=[];for(Qt in Ut[Mt])if(this.terminals_[Qt]&&Qt>Ve)Kt.push("'"+this.terminals_[Qt]+"'");if(z.showPosition)oe="Parse error on line "+(Lt+1)+`:
|
|
2
2
|
`+z.showPosition()+`
|
|
3
3
|
Expecting `+Kt.join(", ")+", got '"+(this.terminals_[W]||W)+"'";else oe="Parse error on line "+(Lt+1)+": Unexpected "+(W==me?"end of input":"'"+(this.terminals_[W]||W)+"'");this.parseError(oe,{text:z.match,token:this.terminals_[W]||W,line:z.yylineno,loc:se,expected:Kt})}if(H[0]instanceof Array&&H.length>1)throw Error("Parse Error: multiple actions possible at state: "+Mt+", token: "+W);switch(H[0]){case 1:if(w.push(W),F.push(z.yytext),d.push(z.yylloc),w.push(H[1]),W=null,!ae){if(_e=z.yyleng,_=z.yytext,Lt=z.yylineno,se=z.yylloc,be>0)be--}else W=ae,ae=null;break;case 2:if(et=this.productions_[H[1]][1],Yt.$=F[F.length-et],Yt._$={first_line:d[d.length-(et||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(et||1)].first_column,last_column:d[d.length-1].last_column},Fe)Yt._$.range=[d[d.length-(et||1)].range[0],d[d.length-1].range[1]];if(ie=this.performAction.apply(Yt,[_,_e,Lt,It.yy,H[1],F,d].concat(Ye)),typeof ie<"u")return ie;if(et)w=w.slice(0,-1*et*2),F=F.slice(0,-1*et),d=d.slice(0,-1*et);w.push(this.productions_[H[1]][0]),F.push(Yt.$),d.push(Yt._$),xe=Ut[w[w.length-2]][w[w.length-1]],w.push(xe);break;case 3:return!0}}return!0},"parse")},Be=function(){var Ot={EOF:1,parseError:t(function(S,w){if(this.yy.parser)this.yy.parser.parseError(S,w);else throw Error(S)},"parseError"),setInput:t(function(v,S){if(this.yy=S||this.yy||{},this._input=v,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var v=this._input[0];this.yytext+=v,this.yyleng++,this.offset++,this.match+=v,this.matched+=v;var S=v.match(/(?:\r\n?|\n).*/g);if(S)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),v},"input"),unput:t(function(v){var S=v.length,w=v.split(/(?:\r\n?|\n)/g);this._input=v+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-S),this.offset-=S;var g=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),w.length-1)this.yylineno-=w.length-1;var F=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:w?(w.length===g.length?this.yylloc.first_column:0)+g[g.length-w.length].length-w[0].length:this.yylloc.first_column-S},this.options.ranges)this.yylloc.range=[F[0],F[0]+this.yyleng-S];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(v){this.unput(this.match.slice(v))},"less"),pastInput:t(function(){var v=this.matched.substr(0,this.matched.length-this.match.length);return(v.length>20?"...":"")+v.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var v=this.match;if(v.length<20)v+=this._input.substr(0,20-v.length);return(v.substr(0,20)+(v.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var v=this.pastInput(),S=Array(v.length+1).join("-");return v+this.upcomingInput()+`
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t,a,Ie,
|
|
1
|
+
import{t,a,Ie,at,k,A,R,I,L,D,P,N,u,ur,Mr,h,Ut,jt,F,bt,De,Te,Ee,Lt,Xa,ze,Ue}from"./chunk-xp2zpmpp.js";import{In}from"./chunk-vb2feptd.js";import{Ct}from"./chunk-w9adyaze.js";import{Dn}from"./chunk-5yz46tjw.js";import{Fe}from"./chunk-m34et8g4.js";import{Le}from"./chunk-gt62acsh.js";var k1="flowchart-",g1=class{constructor(){this.vertexCounter=0,this.config=u(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=R,this.setAccDescription=L,this.setDiagramTitle=P,this.getAccTitle=I,this.getAccDescription=D,this.getDiagramTitle=N,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{t(this,"FlowDB")}sanitizeText(e){return k.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let r of this.vertices.values())if(r.id===e)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,r,n,o,c,m,p={},T){if(!e||e.trim().length===0)return;let f;if(T!==void 0){let y;if(!T.includes(`
|
|
2
2
|
`))y=`{
|
|
3
3
|
`+T+`
|
|
4
4
|
}`;else y=T+`
|
|
@@ -6,12 +6,12 @@ import{t,a,Ie,rt,k,A,R,I,L,D,P,M,u,ur,Nr,h,Ut,jt,F,bt,De,Te,Ee,Lt,Xa,ze,Ue}from"
|
|
|
6
6
|
|
|
7
7
|
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|
8
8
|
You cannot set this config via configuration inside the diagram as it is a secure config.
|
|
9
|
-
You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e==="object"&&"id"in e&&typeof e.id==="string"}addLink(e,r,n){let o=this.isLinkData(n)?n.id.replace("@",""):void 0;a.info("addLink",e,r,o);for(let c of e)for(let m of r){let p=c===e[e.length-1],T=m===r[0];if(p&&T)this.addSingleLink(c,m,n,o);else this.addSingleLink(c,m,n,void 0)}}updateLinkInterpolate(e,r){e.forEach((n)=>{if(n==="default")this.edges.defaultInterpolate=r;else this.edges[n].interpolate=r})}updateLink(e,r){e.forEach((n)=>{if(typeof n==="number"&&n>=this.edges.length)throw Error(`The index ${n} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);if(n==="default")this.edges.defaultStyle=r;else if(this.edges[n].style=r,(this.edges[n]?.style?.length??0)>0&&!this.edges[n]?.style?.some((o)=>o?.startsWith("fill")))this.edges[n]?.style?.push("fill:none")})}addClass(e,r){let n=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach((o)=>{let c=this.classes.get(o);if(c===void 0)c={id:o,styles:[],textStyles:[]},this.classes.set(o,c);if(n!==void 0&&n!==null)n.forEach((m)=>{if(/color/.exec(m)){let p=m.replace("fill","bgFill");c.textStyles.push(p)}c.styles.push(m)})})}setDirection(e){if(this.direction=e.trim(),/.*</.exec(this.direction))this.direction="RL";if(/.*\^/.exec(this.direction))this.direction="BT";if(/.*>/.exec(this.direction))this.direction="LR";if(/.*v/.exec(this.direction))this.direction="TB";if(this.direction==="TD")this.direction="TB"}setClass(e,r){for(let n of e.split(",")){let o=this.vertices.get(n);if(o)o.classes.push(r);let c=this.edges.find((p)=>p.id===n);if(c)c.classes.push(r);let m=this.subGraphLookup.get(n);if(m)m.classes.push(r)}}setTooltip(e,r){if(r===void 0)return;r=this.sanitizeText(r);for(let n of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(n):n,r)}setClickFun(e,r,n){if(u().securityLevel!=="loose")return;if(r===void 0)return;let o=[];if(typeof n==="string"){o=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let m=0;m<o.length;m++){let p=o[m].trim();if(p.startsWith('"')&&p.endsWith('"'))p=p.substr(1,p.length-2);o[m]=p}}if(o.length===0)o.push(e);let c=this.vertices.get(e);if(c)c.haveCallback=!0,this.funs.push(()=>{let m=this.lookUpDomId(e),p=document.querySelector(`[id="${m}"]`);if(p!==null)p.addEventListener("click",()=>{F.runFunc(r,...o)},!1)})}setLink(e,r,n){e.split(",").forEach((o)=>{let c=this.vertices.get(o);if(c!==void 0)c.link=F.formatUrl(r,this.config),c.linkTarget=n}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,r,n){e.split(",").forEach((o)=>{this.setClickFun(o,r,n)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach((r)=>{r(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let r=In();h(e).select("svg").selectAll("g.node").on("mouseover",(c)=>{let m=h(c.currentTarget),p=m.attr("title");if(p===null)return;let T=c.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(m.attr("title")).style("left",window.scrollX+T.left+(T.right-T.left)/2+"px").style("top",window.scrollY+T.bottom+"px"),r.html(rt.sanitize(p)),m.classed("hover",!0)}).on("mouseout",(c)=>{r.transition().duration(500).style("opacity",0),h(c.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=u(),A()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,r,n){let o=e.text.trim(),c=n.text;if(e===n&&/\s/.exec(n.text))o=void 0;let p=t((E)=>{let y={boolean:{},number:{},string:{}},w=[],j;return{nodeList:E.filter(function(d){let g=typeof d;if(d.stmt&&d.stmt==="dir")return j=d.value,!1;if(d.trim()==="")return!1;if(g in y)return y[g].hasOwnProperty(d)?!1:y[g][d]=!0;else return w.includes(d)?!1:w.push(d)}),dir:j}},"uniq")(r.flat()),{nodeList:T,dir:f}=p,U=u().flowchart??{};if(f=f??(U.inheritDir?this.getDirection()??u().direction??void 0:void 0),this.version==="gen-1")for(let E=0;E<T.length;E++)T[E]=this.lookUpDomId(T[E]);o=o??"subGraph"+this.subCount,c=c||"",c=this.sanitizeText(c),this.subCount=this.subCount+1;let x={id:o,nodes:T,title:c.trim(),classes:[],dir:f,labelType:this.sanitizeNodeLabelType(n?.type)};a.info("Adding",x.id,x.nodes,x.dir),x.nodes=this.makeUniq(x,this.subGraphs).nodes.filter((E)=>E!==o);let W=this.subGraphs.find((E)=>E.id===o);if(W)W.nodes.push(...x.nodes);else this.subGraphs.push(x);return this.subGraphLookup.set(o,W??x),o}getPosForId(e){for(let[r,n]of this.subGraphs.entries())if(n.id===e)return r;return-1}indexNodes2(e,r){let n=this.subGraphs[r].nodes;if(this.secCount=this.secCount+1,this.secCount>2000)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===e)return{result:!0,count:0};let o=0,c=1;while(o<n.length){let m=this.getPosForId(n[o]);if(m>=0){let p=this.indexNodes2(e,m);if(p.result)return{result:!0,count:c+p.count};else c=c+p.count}o=o+1}return{result:!1,count:c}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){if(this.secCount=-1,this.subGraphs.length>0)this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){if(this.firstGraphFlag)return this.firstGraphFlag=!1,!0;return!1}destructStartLink(e){let r=e.trim(),n="arrow_open";switch(r[0]){case"<":n="arrow_point",r=r.slice(1);break;case"x":n="arrow_cross",r=r.slice(1);break;case"o":n="arrow_circle",r=r.slice(1);break}let o="normal";if(r.includes("="))o="thick";if(r.includes("."))o="dotted";return{type:n,stroke:o}}countChar(e,r){let n=r.length,o=0;for(let c=0;c<n;++c)if(r[c]===e)++o;return o}destructEndLink(e){let r=e.trim(),n=r.slice(0,-1),o="arrow_open";switch(r.slice(-1)){case"x":if(o="arrow_cross",r.startsWith("x"))o="double_"+o,n=n.slice(1);break;case">":if(o="arrow_point",r.startsWith("<"))o="double_"+o,n=n.slice(1);break;case"o":if(o="arrow_circle",r.startsWith("o"))o="double_"+o,n=n.slice(1);break}let c="normal",m=n.length-1;if(n.startsWith("="))c="thick";if(n.startsWith("~"))c="invisible";let p=this.countChar(".",n);if(p)c="dotted",m=p;return{type:o,stroke:c,length:m}}destructLink(e,r){let n=this.destructEndLink(e),o;if(r){if(o=this.destructStartLink(r),o.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if(o.type==="arrow_open")o.type=n.type;else{if(o.type!==n.type)return{type:"INVALID",stroke:"INVALID"};o.type="double_"+o.type}if(o.type==="double_arrow")o.type="double_arrow_point";return o.length=n.length,o}return n}exists(e,r){for(let n of e)if(n.nodes.includes(r))return!0;return!1}makeUniq(e,r){let n=[];return e.nodes.forEach((o,c)=>{if(!this.exists(r,o))n.push(e.nodes[c])}),{nodes:n}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon){if(e.form==="circle")return"iconCircle";if(e.form==="square")return"iconSquare";if(e.form==="rounded")return"iconRounded";return"icon"}switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,r){return e.find((n)=>n.id===r)}destructEdgeType(e){let r="none",n="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":n=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=e.replace("double_",""),n=r;break}return{arrowTypeStart:r,arrowTypeEnd:n}}addNodeFromVertex(e,r,n,o,c,m){let p=n.get(e.id),T=o.get(e.id)??!1,f=this.findNode(r,e.id);if(f)f.cssStyles=e.styles,f.cssCompiledStyles=this.getCompiledStyles(e.classes),f.cssClasses=e.classes.join(" ");else{let U={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:p,padding:c.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:m,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};if(T)r.push({...U,isGroup:!0,shape:"rect"});else r.push({...U,isGroup:!1,shape:this.getTypeFromVertex(e),minWidth:c.flowchart?.minNodeWidth})}}getCompiledStyles(e){let r=[];for(let n of e){let o=this.classes.get(n);if(o?.styles)r=[...r,...o.styles??[]].map((c)=>c.trim());if(o?.textStyles)r=[...r,...o.textStyles??[]].map((c)=>c.trim())}return r}getData(){let e=u(),r=[],n=[],o=this.getSubGraphs(),c=new Map,m=new Map,p=new Map;for(let d of o)for(let g of d.nodes)if(this.subGraphLookup.has(g))p.set(g,d.id);let T=new Map,f=new Map;for(let d of o){let g=p.get(d.id);if(g!==void 0)f.set(g,[...f.get(g)??[],d.id])}let U=0,x=t((d)=>{T.set(d,U++);for(let g of f.get(d)??[])x(g)},"walk");for(let d of o)if(!p.has(d.id))x(d.id);let W=t((d)=>this.subGraphLookup.get(d)?.metadata?.view==="collapsed","isCollapsed"),E=t((d)=>{let g,ne=new Set,oe=d;while(oe!==void 0&&!ne.has(oe)){if(ne.add(oe),W(oe))g=oe;oe=p.get(oe)}return g},"outermostCollapsed"),y=new Set,w=new Map;for(let d of o){let g=E(d.id);if(g===void 0)continue;if(d.id!==g)y.add(d.id),w.set(d.id,g);for(let ne of d.nodes){if(ne===g)continue;y.add(ne),w.set(ne,g)}}for(let d=o.length-1;d>=0;d--){let g=o[d];if(y.has(g.id))continue;if(g.nodes.length>0)m.set(g.id,!0);for(let ne of g.nodes)c.set(ne,g.id)}for(let d=o.length-1;d>=0;d--){let g=o[d];if(y.has(g.id))continue;if(g.metadata?.view==="collapsed")r.push({id:g.id,label:g.title,labelStyle:"",labelType:g.labelType,parentId:c.get(g.id),padding:8,cssCompiledStyles:this.getCompiledStyles(g.classes),cssClasses:g.classes.join(" "),shape:"collapsedGroup",dir:g.dir,isGroup:!1,look:e.look,colorIndex:T.get(g.id)});else r.push({id:g.id,label:g.title,labelStyle:"",labelType:g.labelType,parentId:c.get(g.id),padding:8,cssCompiledStyles:this.getCompiledStyles(g.classes),cssClasses:g.classes.join(" "),shape:"rect",dir:g.dir,isGroup:!0,look:e.look,colorIndex:T.get(g.id),metadata:g.metadata})}this.getVertices().forEach((d)=>{if(y.has(d.id))return;this.addNodeFromVertex(d,r,c,m,e,e.look||"classic")});let ve=this.getEdges();return ve.forEach((d,g)=>{let{arrowTypeStart:ne,arrowTypeEnd:oe}=this.destructEdgeType(d.type),K=[...ve.defaultStyle??[]],Y=w.get(d.start)??d.start,H=w.get(d.end)??d.end;if(Y===H&&(w.has(d.start)||w.has(d.end)))return;if(d.style)K.push(...d.style);let q={id:bt(Y,H,{counter:g,prefix:"L"},d.id),isUserDefinedId:d.isUserDefinedId,start:Y,end:H,type:d.type??"normal",label:d.text,labelType:d.labelType,labelpos:"c",thickness:d.stroke,minlen:d.length,classes:d?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:d?.stroke==="invisible"||d?.type==="arrow_open"?"none":ne,arrowTypeEnd:d?.stroke==="invisible"||d?.type==="arrow_open"?"none":oe,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(d.classes),labelStyle:K,style:K,pattern:d.stroke,look:e.look,animate:d.animate,animation:d.animation,curve:d.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};n.push(q)}),{nodes:r,edges:n,other:{},config:e}}defaultConfig(){return Nr.flowchart}},A1=t(function(e,r){return r.db.getClasses()},"getClasses"),m1=t(async function(e,r,n,o){a.info("REF0:"),a.info("Drawing state diagram (v2)",r);let{securityLevel:c,flowchart:m,layout:p}=u();o.db.setDiagramId(r),a.debug("Before getData: ");let T=o.db.getData();a.debug("Data: ",T);let f=Fe(r,c),U=o.db.getDirection();T.type=o.type,T.layoutAlgorithm=Ue(p),T.direction=U,T.nodeSpacing=m?.nodeSpacing||50,T.rankSpacing=m?.rankSpacing||50,T.markers=["point","circle","cross"],T.diagramId=r,a.debug("REF1:",T),await ze(T,f);let x=T.config.flowchart?.diagramPadding??8;F.insertTitle(f,"flowchartTitleText",m?.titleTopMargin||0,o.db.getDiagramTitle()),Le(f,x,"flowchart",m?.useMaxWidth||!1)},"draw"),C1={getClasses:A1,draw:m1},St=function(){var e=t(function(Re,b,C,S){for(C=C||{},S=Re.length;S--;C[Re[S]]=b);return C},"o"),r=[1,4],n=[1,3],o=[1,5],c=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],m=[2,2],p=[1,13],T=[1,14],f=[1,15],U=[1,16],x=[1,23],W=[1,25],E=[1,26],y=[1,27],w=[1,50],j=[1,49],ve=[1,29],d=[1,30],g=[1,31],ne=[1,32],oe=[1,33],K=[1,45],Y=[1,47],H=[1,43],q=[1,48],Q=[1,44],J=[1,51],Z=[1,46],ee=[1,52],te=[1,53],at=[1,34],nt=[1,35],ut=[1,36],ot=[1,37],lt=[1,38],Ve=[1,58],N=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],fe=[1,62],be=[1,61],ke=[1,63],Me=[8,9,11,75,77,78],yt=[1,79],We=[1,92],je=[1,97],Ke=[1,96],Ye=[1,93],He=[1,89],qe=[1,95],Xe=[1,91],Qe=[1,98],Je=[1,94],Ze=[1,99],$e=[1,90],Ne=[8,9,10,11,40,75,77,78],ie=[8,9,10,11,40,46,75,77,78],le=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],xt=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],et=[44,60,89,102,105,106,109,111,114,115,116],Ft=[1,122],_t=[1,123],ct=[1,125],ht=[1,124],Bt=[44,60,62,74,89,102,105,106,109,111,114,115,116],vt=[1,134],Vt=[1,148],wt=[1,149],It=[1,150],Rt=[1,151],Nt=[1,136],Gt=[1,138],Pt=[1,142],Ot=[1,143],Mt=[1,144],Wt=[1,145],zt=[1,146],Kt=[1,147],Yt=[1,152],Ht=[1,153],qt=[1,132],Xt=[1,133],Qt=[1,140],Jt=[1,135],Zt=[1,139],$t=[1,137],kt=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],e1=[1,155],t1=[1,157],z=[8,9,11],ce=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],_=[1,177],re=[1,173],ae=[1,174],B=[1,178],v=[1,175],V=[1,176],tt=[77,116,119],G=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],s1=[10,106],we=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],ge=[1,248],Ae=[1,246],me=[1,250],Ce=[1,244],Se=[1,245],ye=[1,247],xe=[1,249],_e=[1,251],st=[1,269],i1=[8,9,11,106],pe=[8,9,10,11,60,84,105,106,109,110,111,112],gt={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:t(function(b,C,S,l,O,s,Ge){var i=s.length-1;switch(O){case 2:this.$=[];break;case 3:if(!Array.isArray(s[i])||s[i].length>0)s[i-1].push(s[i]);this.$=s[i-1];break;case 4:case 183:this.$=s[i];break;case 11:l.setDirection("TB"),this.$="TB";break;case 12:l.setDirection(s[i-1]),this.$=s[i-1];break;case 27:this.$=s[i-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=l.addSubGraph(s[i-6],s[i-1],s[i-4]);break;case 34:this.$=l.addSubGraph(s[i-3],s[i-1],s[i-3]);break;case 35:this.$=l.addSubGraph(void 0,s[i-1],void 0);break;case 37:this.$=s[i].trim(),l.setAccTitle(this.$);break;case 38:case 39:this.$=s[i].trim(),l.setAccDescription(this.$);break;case 43:this.$=s[i-1]+s[i];break;case 44:this.$=s[i];break;case 45:l.addVertex(s[i-1][s[i-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i]),l.addLink(s[i-3].stmt,s[i-1],s[i-2]),this.$={stmt:s[i-1],nodes:s[i-1].concat(s[i-3].nodes)};break;case 46:l.addLink(s[i-2].stmt,s[i],s[i-1]),this.$={stmt:s[i],nodes:s[i].concat(s[i-2].nodes)};break;case 47:l.addLink(s[i-3].stmt,s[i-1],s[i-2]),this.$={stmt:s[i-1],nodes:s[i-1].concat(s[i-3].nodes)};break;case 48:this.$={stmt:s[i-1],nodes:s[i-1]};break;case 49:l.addVertex(s[i-1][s[i-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i]),this.$={stmt:s[i-1],nodes:s[i-1],shapeData:s[i]};break;case 50:this.$={stmt:s[i],nodes:s[i]};break;case 51:this.$=[s[i]];break;case 52:l.addVertex(s[i-5][s[i-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i-4]),this.$=s[i-5].concat(s[i]);break;case 53:this.$=s[i-4].concat(s[i]);break;case 54:this.$=s[i];break;case 55:this.$=s[i-2],l.setClass(s[i-2],s[i]);break;case 56:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"square");break;case 57:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"doublecircle");break;case 58:this.$=s[i-5],l.addVertex(s[i-5],s[i-2],"circle");break;case 59:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"ellipse");break;case 60:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"stadium");break;case 61:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"subroutine");break;case 62:this.$=s[i-7],l.addVertex(s[i-7],s[i-1],"rect",void 0,void 0,void 0,Object.fromEntries([[s[i-5],s[i-3]]]));break;case 63:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"cylinder");break;case 64:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"round");break;case 65:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"diamond");break;case 66:this.$=s[i-5],l.addVertex(s[i-5],s[i-2],"hexagon");break;case 67:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"odd");break;case 68:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"trapezoid");break;case 69:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"inv_trapezoid");break;case 70:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"lean_right");break;case 71:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"lean_left");break;case 72:this.$=s[i],l.addVertex(s[i]);break;case 73:s[i-1].text=s[i],this.$=s[i-1];break;case 74:case 75:s[i-2].text=s[i-1],this.$=s[i-2];break;case 76:this.$=s[i];break;case 77:var X=l.destructLink(s[i],s[i-2]);this.$={type:X.type,stroke:X.stroke,length:X.length,text:s[i-1]};break;case 78:var X=l.destructLink(s[i],s[i-2]);this.$={type:X.type,stroke:X.stroke,length:X.length,text:s[i-1],id:s[i-3]};break;case 79:this.$={text:s[i],type:"text"};break;case 80:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 81:this.$={text:s[i],type:"string"};break;case 82:this.$={text:s[i],type:"markdown"};break;case 83:var X=l.destructLink(s[i]);this.$={type:X.type,stroke:X.stroke,length:X.length};break;case 84:var X=l.destructLink(s[i]);this.$={type:X.type,stroke:X.stroke,length:X.length,id:s[i-1]};break;case 85:this.$=s[i-1];break;case 86:this.$={text:s[i],type:"text"};break;case 87:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 88:this.$={text:s[i],type:"string"};break;case 89:case 104:this.$={text:s[i],type:"markdown"};break;case 101:this.$={text:s[i],type:"text"};break;case 102:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 103:this.$={text:s[i],type:"text"};break;case 105:this.$=s[i-4],l.addClass(s[i-2],s[i]);break;case 106:this.$=s[i-4],l.setClass(s[i-2],s[i]);break;case 107:case 115:this.$=s[i-1],l.setClickEvent(s[i-1],s[i]);break;case 108:case 116:this.$=s[i-3],l.setClickEvent(s[i-3],s[i-2]),l.setTooltip(s[i-3],s[i]);break;case 109:this.$=s[i-2],l.setClickEvent(s[i-2],s[i-1],s[i]);break;case 110:this.$=s[i-4],l.setClickEvent(s[i-4],s[i-3],s[i-2]),l.setTooltip(s[i-4],s[i]);break;case 111:this.$=s[i-2],l.setLink(s[i-2],s[i]);break;case 112:this.$=s[i-4],l.setLink(s[i-4],s[i-2]),l.setTooltip(s[i-4],s[i]);break;case 113:this.$=s[i-4],l.setLink(s[i-4],s[i-2],s[i]);break;case 114:this.$=s[i-6],l.setLink(s[i-6],s[i-4],s[i]),l.setTooltip(s[i-6],s[i-2]);break;case 117:this.$=s[i-1],l.setLink(s[i-1],s[i]);break;case 118:this.$=s[i-3],l.setLink(s[i-3],s[i-2]),l.setTooltip(s[i-3],s[i]);break;case 119:this.$=s[i-3],l.setLink(s[i-3],s[i-2],s[i]);break;case 120:this.$=s[i-5],l.setLink(s[i-5],s[i-4],s[i]),l.setTooltip(s[i-5],s[i-2]);break;case 121:this.$=s[i-4],l.addVertex(s[i-2],void 0,void 0,s[i]);break;case 122:this.$=s[i-4],l.updateLink([s[i-2]],s[i]);break;case 123:this.$=s[i-4],l.updateLink(s[i-2],s[i]);break;case 124:this.$=s[i-8],l.updateLinkInterpolate([s[i-6]],s[i-2]),l.updateLink([s[i-6]],s[i]);break;case 125:this.$=s[i-8],l.updateLinkInterpolate(s[i-6],s[i-2]),l.updateLink(s[i-6],s[i]);break;case 126:this.$=s[i-6],l.updateLinkInterpolate([s[i-4]],s[i]);break;case 127:this.$=s[i-6],l.updateLinkInterpolate(s[i-4],s[i]);break;case 128:case 130:this.$=[s[i]];break;case 129:case 131:s[i-2].push(s[i]),this.$=s[i-2];break;case 133:this.$=s[i-1]+s[i];break;case 181:this.$=s[i];break;case 182:this.$=s[i-1]+""+s[i];break;case 184:this.$=s[i-1]+""+s[i];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:r,10:n,12:o},{1:[3]},e(c,m,{5:6}),{4:7,9:r,10:n,12:o},{4:8,9:r,10:n,12:o},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:p,9:T,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:x,33:24,34:W,36:E,38:y,42:28,43:39,44:w,45:40,47:41,60:j,84:ve,85:d,86:g,87:ne,88:oe,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:at,122:nt,123:ut,124:ot,125:lt},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,55],9:[1,56],10:Ve,15:54,18:57},e(N,[2,3]),e(N,[2,4]),e(N,[2,5]),e(N,[2,6]),e(N,[2,7]),e(N,[2,8]),{8:fe,9:be,11:ke,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:fe,9:be,11:ke,21:68},{8:fe,9:be,11:ke,21:69},{8:fe,9:be,11:ke,21:70},{8:fe,9:be,11:ke,21:71},{8:fe,9:be,11:ke,21:72},{8:fe,9:be,10:[1,73],11:ke,21:74},e(N,[2,36]),{35:[1,75]},{37:[1,76]},e(N,[2,39]),e(Me,[2,50],{18:77,39:78,10:Ve,40:yt}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:We,44:je,60:Ke,80:[1,87],89:Ye,95:[1,84],97:[1,85],101:86,105:He,106:qe,109:Xe,111:Qe,114:Je,115:Ze,116:$e,120:88},e(N,[2,185]),e(N,[2,186]),e(N,[2,187]),e(N,[2,188]),e(N,[2,189]),e(Ne,[2,51]),e(Ne,[2,54],{46:[1,100]}),e(ie,[2,72],{113:113,29:[1,101],44:w,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:j,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),e(le,[2,181]),e(le,[2,142]),e(le,[2,143]),e(le,[2,144]),e(le,[2,145]),e(le,[2,146]),e(le,[2,147]),e(le,[2,148]),e(le,[2,149]),e(le,[2,150]),e(le,[2,151]),e(le,[2,152]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,114]},e(xt,[2,26],{18:115,10:Ve}),e(N,[2,27]),{42:116,43:39,44:w,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},e(N,[2,40]),e(N,[2,41]),e(N,[2,42]),e(et,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:Ft,81:_t,116:ct,119:ht},{75:[1,126],77:[1,127]},e(Bt,[2,83]),e(N,[2,28]),e(N,[2,29]),e(N,[2,30]),e(N,[2,31]),e(N,[2,32]),{10:vt,12:Vt,14:wt,27:It,28:128,32:Rt,44:Nt,60:Gt,75:Pt,80:[1,130],81:[1,131],83:141,84:Ot,85:Mt,86:Wt,87:zt,88:Kt,89:Yt,90:Ht,91:129,105:qt,109:Xt,111:Qt,114:Jt,115:Zt,116:$t},e(kt,m,{5:154}),e(N,[2,37]),e(N,[2,38]),e(Me,[2,48],{44:e1}),e(Me,[2,49],{18:156,10:Ve,40:t1}),e(Ne,[2,44]),{44:w,47:158,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{102:[1,159],103:160,105:[1,161]},{44:w,47:162,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{44:w,47:163,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},e(z,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(z,[2,115],{120:168,10:[1,167],14:We,44:je,60:Ke,89:Ye,105:He,106:qe,109:Xe,111:Qe,114:Je,115:Ze,116:$e}),e(z,[2,117],{10:[1,169]}),e(ce,[2,183]),e(ce,[2,170]),e(ce,[2,171]),e(ce,[2,172]),e(ce,[2,173]),e(ce,[2,174]),e(ce,[2,175]),e(ce,[2,176]),e(ce,[2,177]),e(ce,[2,178]),e(ce,[2,179]),e(ce,[2,180]),{44:w,47:170,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{30:171,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{30:179,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{30:181,50:[1,180],67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{30:182,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{30:183,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{30:184,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{109:[1,185]},{30:186,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{30:187,65:[1,188],67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{30:189,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{30:190,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{30:191,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},e(le,[2,182]),e(c,[2,20]),e(xt,[2,25]),e(Me,[2,46],{39:192,18:193,10:Ve,40:yt}),e(et,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{77:[1,197],79:198,116:ct,119:ht},e(tt,[2,79]),e(tt,[2,81]),e(tt,[2,82]),e(tt,[2,168]),e(tt,[2,169]),{76:199,79:121,80:Ft,81:_t,116:ct,119:ht},e(Bt,[2,84]),{8:fe,9:be,10:vt,11:ke,12:Vt,14:wt,21:201,27:It,29:[1,200],32:Rt,44:Nt,60:Gt,75:Pt,83:141,84:Ot,85:Mt,86:Wt,87:zt,88:Kt,89:Yt,90:Ht,91:202,105:qt,109:Xt,111:Qt,114:Jt,115:Zt,116:$t},e(G,[2,101]),e(G,[2,103]),e(G,[2,104]),e(G,[2,157]),e(G,[2,158]),e(G,[2,159]),e(G,[2,160]),e(G,[2,161]),e(G,[2,162]),e(G,[2,163]),e(G,[2,164]),e(G,[2,165]),e(G,[2,166]),e(G,[2,167]),e(G,[2,90]),e(G,[2,91]),e(G,[2,92]),e(G,[2,93]),e(G,[2,94]),e(G,[2,95]),e(G,[2,96]),e(G,[2,97]),e(G,[2,98]),e(G,[2,99]),e(G,[2,100]),{6:11,7:12,8:p,9:T,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:x,32:[1,203],33:24,34:W,36:E,38:y,42:28,43:39,44:w,45:40,47:41,60:j,84:ve,85:d,86:g,87:ne,88:oe,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:at,122:nt,123:ut,124:ot,125:lt},{10:Ve,18:204},{44:[1,205]},e(Ne,[2,43]),{10:[1,206],44:w,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{10:[1,207]},{10:[1,208],106:[1,209]},e(s1,[2,128]),{10:[1,210],44:w,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{10:[1,211],44:w,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{80:[1,212]},e(z,[2,109],{10:[1,213]}),e(z,[2,111],{10:[1,214]}),{80:[1,215]},e(ce,[2,184]),{80:[1,216],98:[1,217]},e(Ne,[2,55],{113:113,44:w,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),{31:[1,218],67:_,82:219,116:B,117:v,118:V},e(we,[2,86]),e(we,[2,88]),e(we,[2,89]),e(we,[2,153]),e(we,[2,154]),e(we,[2,155]),e(we,[2,156]),{49:[1,220],67:_,82:219,116:B,117:v,118:V},{30:221,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{51:[1,222],67:_,82:219,116:B,117:v,118:V},{53:[1,223],67:_,82:219,116:B,117:v,118:V},{55:[1,224],67:_,82:219,116:B,117:v,118:V},{57:[1,225],67:_,82:219,116:B,117:v,118:V},{60:[1,226]},{64:[1,227],67:_,82:219,116:B,117:v,118:V},{66:[1,228],67:_,82:219,116:B,117:v,118:V},{30:229,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{31:[1,230],67:_,82:219,116:B,117:v,118:V},{67:_,69:[1,231],71:[1,232],82:219,116:B,117:v,118:V},{67:_,69:[1,234],71:[1,233],82:219,116:B,117:v,118:V},e(Me,[2,45],{18:156,10:Ve,40:t1}),e(Me,[2,47],{44:e1}),e(et,[2,75]),e(et,[2,74]),{62:[1,235],67:_,82:219,116:B,117:v,118:V},e(et,[2,77]),e(tt,[2,80]),{77:[1,236],79:198,116:ct,119:ht},{30:237,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},e(kt,m,{5:238}),e(G,[2,102]),e(N,[2,35]),{43:239,44:w,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{10:Ve,18:240},{10:ge,60:Ae,84:me,92:241,105:Ce,107:242,108:243,109:Se,110:ye,111:xe,112:_e},{10:ge,60:Ae,84:me,92:252,104:[1,253],105:Ce,107:242,108:243,109:Se,110:ye,111:xe,112:_e},{10:ge,60:Ae,84:me,92:254,104:[1,255],105:Ce,107:242,108:243,109:Se,110:ye,111:xe,112:_e},{105:[1,256]},{10:ge,60:Ae,84:me,92:257,105:Ce,107:242,108:243,109:Se,110:ye,111:xe,112:_e},{44:w,47:258,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},e(z,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(z,[2,116]),e(z,[2,118],{10:[1,262]}),e(z,[2,119]),e(ie,[2,56]),e(we,[2,87]),e(ie,[2,57]),{51:[1,263],67:_,82:219,116:B,117:v,118:V},e(ie,[2,64]),e(ie,[2,59]),e(ie,[2,60]),e(ie,[2,61]),{109:[1,264]},e(ie,[2,63]),e(ie,[2,65]),{66:[1,265],67:_,82:219,116:B,117:v,118:V},e(ie,[2,67]),e(ie,[2,68]),e(ie,[2,70]),e(ie,[2,69]),e(ie,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(et,[2,78]),{31:[1,266],67:_,82:219,116:B,117:v,118:V},{6:11,7:12,8:p,9:T,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:x,32:[1,267],33:24,34:W,36:E,38:y,42:28,43:39,44:w,45:40,47:41,60:j,84:ve,85:d,86:g,87:ne,88:oe,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:at,122:nt,123:ut,124:ot,125:lt},e(Ne,[2,53]),{43:268,44:w,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},e(z,[2,121],{106:st}),e(i1,[2,130],{108:270,10:ge,60:Ae,84:me,105:Ce,109:Se,110:ye,111:xe,112:_e}),e(pe,[2,132]),e(pe,[2,134]),e(pe,[2,135]),e(pe,[2,136]),e(pe,[2,137]),e(pe,[2,138]),e(pe,[2,139]),e(pe,[2,140]),e(pe,[2,141]),e(z,[2,122],{106:st}),{10:[1,271]},e(z,[2,123],{106:st}),{10:[1,272]},e(s1,[2,129]),e(z,[2,105],{106:st}),e(z,[2,106],{113:113,44:w,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),e(z,[2,110]),e(z,[2,112],{10:[1,273]}),e(z,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:fe,9:be,11:ke,21:278},e(N,[2,34]),e(Ne,[2,52]),{10:ge,60:Ae,84:me,105:Ce,107:279,108:243,109:Se,110:ye,111:xe,112:_e},e(pe,[2,133]),{14:We,44:je,60:Ke,89:Ye,101:280,105:He,106:qe,109:Xe,111:Qe,114:Je,115:Ze,116:$e,120:88},{14:We,44:je,60:Ke,89:Ye,101:281,105:He,106:qe,109:Xe,111:Qe,114:Je,115:Ze,116:$e,120:88},{98:[1,282]},e(z,[2,120]),e(ie,[2,58]),{30:283,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},e(ie,[2,66]),e(kt,m,{5:284}),e(i1,[2,131],{108:270,10:ge,60:Ae,84:me,105:Ce,109:Se,110:ye,111:xe,112:_e}),e(z,[2,126],{120:168,10:[1,285],14:We,44:je,60:Ke,89:Ye,105:He,106:qe,109:Xe,111:Qe,114:Je,115:Ze,116:$e}),e(z,[2,127],{120:168,10:[1,286],14:We,44:je,60:Ke,89:Ye,105:He,106:qe,109:Xe,111:Qe,114:Je,115:Ze,116:$e}),e(z,[2,114]),{31:[1,287],67:_,82:219,116:B,117:v,118:V},{6:11,7:12,8:p,9:T,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:x,32:[1,288],33:24,34:W,36:E,38:y,42:28,43:39,44:w,45:40,47:41,60:j,84:ve,85:d,86:g,87:ne,88:oe,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:at,122:nt,123:ut,124:ot,125:lt},{10:ge,60:Ae,84:me,92:289,105:Ce,107:242,108:243,109:Se,110:ye,111:xe,112:_e},{10:ge,60:Ae,84:me,92:290,105:Ce,107:242,108:243,109:Se,110:ye,111:xe,112:_e},e(ie,[2,62]),e(N,[2,33]),e(z,[2,124],{106:st}),e(z,[2,125],{106:st})],defaultActions:{},parseError:t(function(b,C){if(C.recoverable)this.trace(b);else{var S=Error(b);throw S.hash=C,S}},"parseError"),parse:t(function(b){var C=this,S=[0],l=[],O=[null],s=[],Ge=this.table,i="",X=0,r1=0,a1=0,d1=2,n1=1,p1=s.slice.call(arguments,1),se=Object.create(this.lexer),Pe={yy:{}};for(var At in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,At))Pe.yy[At]=this.yy[At];if(se.setInput(b,Pe.yy),Pe.yy.lexer=se,Pe.yy.parser=this,typeof se.yylloc>"u")se.yylloc={};var mt=se.yylloc;s.push(mt);var f1=se.options&&se.options.ranges;if(typeof Pe.yy.parseError==="function")this.parseError=Pe.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function b1(de){S.length=S.length-2*de,O.length=O.length-de,s.length=s.length-de}t(b1,"popStack");function u1(){var de=l.pop()||se.lex()||n1;if(typeof de!=="number"){if(de instanceof Array)l=de,de=l.pop();de=C.symbols_[de]||de}return de}t(u1,"lex");var ue,Dt,Oe,he,y1,Tt,it={},pt,Be,o1,ft;while(!0){if(Oe=S[S.length-1],this.defaultActions[Oe])he=this.defaultActions[Oe];else{if(ue===null||typeof ue>"u")ue=u1();he=Ge[Oe]&&Ge[Oe][ue]}if(typeof he>"u"||!he.length||!he[0]){var Et="";ft=[];for(pt in Ge[Oe])if(this.terminals_[pt]&&pt>d1)ft.push("'"+this.terminals_[pt]+"'");if(se.showPosition)Et="Parse error on line "+(X+1)+`:
|
|
9
|
+
You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e==="object"&&"id"in e&&typeof e.id==="string"}addLink(e,r,n){let o=this.isLinkData(n)?n.id.replace("@",""):void 0;a.info("addLink",e,r,o);for(let c of e)for(let m of r){let p=c===e[e.length-1],T=m===r[0];if(p&&T)this.addSingleLink(c,m,n,o);else this.addSingleLink(c,m,n,void 0)}}updateLinkInterpolate(e,r){e.forEach((n)=>{if(n==="default")this.edges.defaultInterpolate=r;else this.edges[n].interpolate=r})}updateLink(e,r){e.forEach((n)=>{if(typeof n==="number"&&n>=this.edges.length)throw Error(`The index ${n} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);if(n==="default")this.edges.defaultStyle=r;else if(this.edges[n].style=r,(this.edges[n]?.style?.length??0)>0&&!this.edges[n]?.style?.some((o)=>o?.startsWith("fill")))this.edges[n]?.style?.push("fill:none")})}addClass(e,r){let n=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach((o)=>{let c=this.classes.get(o);if(c===void 0)c={id:o,styles:[],textStyles:[]},this.classes.set(o,c);if(n!==void 0&&n!==null)n.forEach((m)=>{if(/color/.exec(m)){let p=m.replace("fill","bgFill");c.textStyles.push(p)}c.styles.push(m)})})}setDirection(e){if(this.direction=e.trim(),/.*</.exec(this.direction))this.direction="RL";if(/.*\^/.exec(this.direction))this.direction="BT";if(/.*>/.exec(this.direction))this.direction="LR";if(/.*v/.exec(this.direction))this.direction="TB";if(this.direction==="TD")this.direction="TB"}setClass(e,r){for(let n of e.split(",")){let o=this.vertices.get(n);if(o)o.classes.push(r);let c=this.edges.find((p)=>p.id===n);if(c)c.classes.push(r);let m=this.subGraphLookup.get(n);if(m)m.classes.push(r)}}setTooltip(e,r){if(r===void 0)return;r=this.sanitizeText(r);for(let n of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(n):n,r)}setClickFun(e,r,n){if(u().securityLevel!=="loose")return;if(r===void 0)return;let o=[];if(typeof n==="string"){o=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let m=0;m<o.length;m++){let p=o[m].trim();if(p.startsWith('"')&&p.endsWith('"'))p=p.substr(1,p.length-2);o[m]=p}}if(o.length===0)o.push(e);let c=this.vertices.get(e);if(c)c.haveCallback=!0,this.funs.push(()=>{let m=this.lookUpDomId(e),p=document.querySelector(`[id="${m}"]`);if(p!==null)p.addEventListener("click",()=>{F.runFunc(r,...o)},!1)})}setLink(e,r,n){e.split(",").forEach((o)=>{let c=this.vertices.get(o);if(c!==void 0)c.link=F.formatUrl(r,this.config),c.linkTarget=n}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,r,n){e.split(",").forEach((o)=>{this.setClickFun(o,r,n)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach((r)=>{r(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let r=In();h(e).select("svg").selectAll("g.node").on("mouseover",(c)=>{let m=h(c.currentTarget),p=m.attr("title");if(p===null)return;let T=c.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(m.attr("title")).style("left",window.scrollX+T.left+(T.right-T.left)/2+"px").style("top",window.scrollY+T.bottom+"px"),r.html(at.sanitize(p)),m.classed("hover",!0)}).on("mouseout",(c)=>{r.transition().duration(500).style("opacity",0),h(c.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=u(),A()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,r,n){let o=e.text.trim(),c=n.text;if(e===n&&/\s/.exec(n.text))o=void 0;let p=t((E)=>{let y={boolean:{},number:{},string:{}},w=[],j;return{nodeList:E.filter(function(d){let g=typeof d;if(d.stmt&&d.stmt==="dir")return j=d.value,!1;if(d.trim()==="")return!1;if(g in y)return y[g].hasOwnProperty(d)?!1:y[g][d]=!0;else return w.includes(d)?!1:w.push(d)}),dir:j}},"uniq")(r.flat()),{nodeList:T,dir:f}=p,U=u().flowchart??{};if(f=f??(U.inheritDir?this.getDirection()??u().direction??void 0:void 0),this.version==="gen-1")for(let E=0;E<T.length;E++)T[E]=this.lookUpDomId(T[E]);o=o??"subGraph"+this.subCount,c=c||"",c=this.sanitizeText(c),this.subCount=this.subCount+1;let x={id:o,nodes:T,title:c.trim(),classes:[],dir:f,labelType:this.sanitizeNodeLabelType(n?.type)};a.info("Adding",x.id,x.nodes,x.dir),x.nodes=this.makeUniq(x,this.subGraphs).nodes.filter((E)=>E!==o);let W=this.subGraphs.find((E)=>E.id===o);if(W)W.nodes.push(...x.nodes);else this.subGraphs.push(x);return this.subGraphLookup.set(o,W??x),o}getPosForId(e){for(let[r,n]of this.subGraphs.entries())if(n.id===e)return r;return-1}indexNodes2(e,r){let n=this.subGraphs[r].nodes;if(this.secCount=this.secCount+1,this.secCount>2000)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===e)return{result:!0,count:0};let o=0,c=1;while(o<n.length){let m=this.getPosForId(n[o]);if(m>=0){let p=this.indexNodes2(e,m);if(p.result)return{result:!0,count:c+p.count};else c=c+p.count}o=o+1}return{result:!1,count:c}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){if(this.secCount=-1,this.subGraphs.length>0)this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){if(this.firstGraphFlag)return this.firstGraphFlag=!1,!0;return!1}destructStartLink(e){let r=e.trim(),n="arrow_open";switch(r[0]){case"<":n="arrow_point",r=r.slice(1);break;case"x":n="arrow_cross",r=r.slice(1);break;case"o":n="arrow_circle",r=r.slice(1);break}let o="normal";if(r.includes("="))o="thick";if(r.includes("."))o="dotted";return{type:n,stroke:o}}countChar(e,r){let n=r.length,o=0;for(let c=0;c<n;++c)if(r[c]===e)++o;return o}destructEndLink(e){let r=e.trim(),n=r.slice(0,-1),o="arrow_open";switch(r.slice(-1)){case"x":if(o="arrow_cross",r.startsWith("x"))o="double_"+o,n=n.slice(1);break;case">":if(o="arrow_point",r.startsWith("<"))o="double_"+o,n=n.slice(1);break;case"o":if(o="arrow_circle",r.startsWith("o"))o="double_"+o,n=n.slice(1);break}let c="normal",m=n.length-1;if(n.startsWith("="))c="thick";if(n.startsWith("~"))c="invisible";let p=this.countChar(".",n);if(p)c="dotted",m=p;return{type:o,stroke:c,length:m}}destructLink(e,r){let n=this.destructEndLink(e),o;if(r){if(o=this.destructStartLink(r),o.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if(o.type==="arrow_open")o.type=n.type;else{if(o.type!==n.type)return{type:"INVALID",stroke:"INVALID"};o.type="double_"+o.type}if(o.type==="double_arrow")o.type="double_arrow_point";return o.length=n.length,o}return n}exists(e,r){for(let n of e)if(n.nodes.includes(r))return!0;return!1}makeUniq(e,r){let n=[];return e.nodes.forEach((o,c)=>{if(!this.exists(r,o))n.push(e.nodes[c])}),{nodes:n}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon){if(e.form==="circle")return"iconCircle";if(e.form==="square")return"iconSquare";if(e.form==="rounded")return"iconRounded";return"icon"}switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,r){return e.find((n)=>n.id===r)}destructEdgeType(e){let r="none",n="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":n=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=e.replace("double_",""),n=r;break}return{arrowTypeStart:r,arrowTypeEnd:n}}addNodeFromVertex(e,r,n,o,c,m){let p=n.get(e.id),T=o.get(e.id)??!1,f=this.findNode(r,e.id);if(f)f.cssStyles=e.styles,f.cssCompiledStyles=this.getCompiledStyles(e.classes),f.cssClasses=e.classes.join(" ");else{let U={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:p,padding:c.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:m,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};if(T)r.push({...U,isGroup:!0,shape:"rect"});else r.push({...U,isGroup:!1,shape:this.getTypeFromVertex(e),minWidth:c.flowchart?.minNodeWidth})}}getCompiledStyles(e){let r=[];for(let n of e){let o=this.classes.get(n);if(o?.styles)r=[...r,...o.styles??[]].map((c)=>c.trim());if(o?.textStyles)r=[...r,...o.textStyles??[]].map((c)=>c.trim())}return r}getData(){let e=u(),r=[],n=[],o=this.getSubGraphs(),c=new Map,m=new Map,p=new Map;for(let d of o)for(let g of d.nodes)if(this.subGraphLookup.has(g))p.set(g,d.id);let T=new Map,f=new Map;for(let d of o){let g=p.get(d.id);if(g!==void 0)f.set(g,[...f.get(g)??[],d.id])}let U=0,x=t((d)=>{T.set(d,U++);for(let g of f.get(d)??[])x(g)},"walk");for(let d of o)if(!p.has(d.id))x(d.id);let W=t((d)=>this.subGraphLookup.get(d)?.metadata?.view==="collapsed","isCollapsed"),E=t((d)=>{let g,ne=new Set,oe=d;while(oe!==void 0&&!ne.has(oe)){if(ne.add(oe),W(oe))g=oe;oe=p.get(oe)}return g},"outermostCollapsed"),y=new Set,w=new Map;for(let d of o){let g=E(d.id);if(g===void 0)continue;if(d.id!==g)y.add(d.id),w.set(d.id,g);for(let ne of d.nodes){if(ne===g)continue;y.add(ne),w.set(ne,g)}}for(let d=o.length-1;d>=0;d--){let g=o[d];if(y.has(g.id))continue;if(g.nodes.length>0)m.set(g.id,!0);for(let ne of g.nodes)c.set(ne,g.id)}for(let d=o.length-1;d>=0;d--){let g=o[d];if(y.has(g.id))continue;if(g.metadata?.view==="collapsed")r.push({id:g.id,label:g.title,labelStyle:"",labelType:g.labelType,parentId:c.get(g.id),padding:8,cssCompiledStyles:this.getCompiledStyles(g.classes),cssClasses:g.classes.join(" "),shape:"collapsedGroup",dir:g.dir,isGroup:!1,look:e.look,colorIndex:T.get(g.id)});else r.push({id:g.id,label:g.title,labelStyle:"",labelType:g.labelType,parentId:c.get(g.id),padding:8,cssCompiledStyles:this.getCompiledStyles(g.classes),cssClasses:g.classes.join(" "),shape:"rect",dir:g.dir,isGroup:!0,look:e.look,colorIndex:T.get(g.id),metadata:g.metadata})}this.getVertices().forEach((d)=>{if(y.has(d.id))return;this.addNodeFromVertex(d,r,c,m,e,e.look||"classic")});let ve=this.getEdges();return ve.forEach((d,g)=>{let{arrowTypeStart:ne,arrowTypeEnd:oe}=this.destructEdgeType(d.type),K=[...ve.defaultStyle??[]],Y=w.get(d.start)??d.start,H=w.get(d.end)??d.end;if(Y===H&&(w.has(d.start)||w.has(d.end)))return;if(d.style)K.push(...d.style);let q={id:bt(Y,H,{counter:g,prefix:"L"},d.id),isUserDefinedId:d.isUserDefinedId,start:Y,end:H,type:d.type??"normal",label:d.text,labelType:d.labelType,labelpos:"c",thickness:d.stroke,minlen:d.length,classes:d?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:d?.stroke==="invisible"||d?.type==="arrow_open"?"none":ne,arrowTypeEnd:d?.stroke==="invisible"||d?.type==="arrow_open"?"none":oe,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(d.classes),labelStyle:K,style:K,pattern:d.stroke,look:e.look,animate:d.animate,animation:d.animation,curve:d.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};n.push(q)}),{nodes:r,edges:n,other:{},config:e}}defaultConfig(){return Mr.flowchart}},A1=t(function(e,r){return r.db.getClasses()},"getClasses"),m1=t(async function(e,r,n,o){a.info("REF0:"),a.info("Drawing state diagram (v2)",r);let{securityLevel:c,flowchart:m,layout:p}=u();o.db.setDiagramId(r),a.debug("Before getData: ");let T=o.db.getData();a.debug("Data: ",T);let f=Fe(r,c),U=o.db.getDirection();T.type=o.type,T.layoutAlgorithm=Ue(p),T.direction=U,T.nodeSpacing=m?.nodeSpacing||50,T.rankSpacing=m?.rankSpacing||50,T.markers=["point","circle","cross"],T.diagramId=r,a.debug("REF1:",T),await ze(T,f);let x=T.config.flowchart?.diagramPadding??8;F.insertTitle(f,"flowchartTitleText",m?.titleTopMargin||0,o.db.getDiagramTitle()),Le(f,x,"flowchart",m?.useMaxWidth||!1)},"draw"),C1={getClasses:A1,draw:m1},St=function(){var e=t(function(Re,b,C,S){for(C=C||{},S=Re.length;S--;C[Re[S]]=b);return C},"o"),r=[1,4],n=[1,3],o=[1,5],c=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],m=[2,2],p=[1,13],T=[1,14],f=[1,15],U=[1,16],x=[1,23],W=[1,25],E=[1,26],y=[1,27],w=[1,50],j=[1,49],ve=[1,29],d=[1,30],g=[1,31],ne=[1,32],oe=[1,33],K=[1,45],Y=[1,47],H=[1,43],q=[1,48],Q=[1,44],J=[1,51],Z=[1,46],ee=[1,52],te=[1,53],rt=[1,34],nt=[1,35],ut=[1,36],ot=[1,37],lt=[1,38],Ve=[1,58],G=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],fe=[1,62],be=[1,61],ke=[1,63],Me=[8,9,11,75,77,78],yt=[1,79],We=[1,92],je=[1,97],Ke=[1,96],Ye=[1,93],He=[1,89],qe=[1,95],Xe=[1,91],Qe=[1,98],Je=[1,94],Ze=[1,99],$e=[1,90],Ne=[8,9,10,11,40,75,77,78],ie=[8,9,10,11,40,46,75,77,78],le=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],xt=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],et=[44,60,89,102,105,106,109,111,114,115,116],Ft=[1,122],_t=[1,123],ct=[1,125],ht=[1,124],Bt=[44,60,62,74,89,102,105,106,109,111,114,115,116],vt=[1,134],Vt=[1,148],wt=[1,149],It=[1,150],Rt=[1,151],Nt=[1,136],Gt=[1,138],Pt=[1,142],Ot=[1,143],Mt=[1,144],Wt=[1,145],zt=[1,146],Kt=[1,147],Yt=[1,152],Ht=[1,153],qt=[1,132],Xt=[1,133],Qt=[1,140],Jt=[1,135],Zt=[1,139],$t=[1,137],kt=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],e1=[1,155],t1=[1,157],z=[8,9,11],ce=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],_=[1,177],re=[1,173],ae=[1,174],B=[1,178],v=[1,175],V=[1,176],tt=[77,116,119],O=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],s1=[10,106],we=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],ge=[1,248],Ae=[1,246],me=[1,250],Ce=[1,244],Se=[1,245],ye=[1,247],xe=[1,249],_e=[1,251],st=[1,269],i1=[8,9,11,106],pe=[8,9,10,11,60,84,105,106,109,110,111,112],gt={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:t(function(b,C,S,l,M,s,Ge){var i=s.length-1;switch(M){case 2:this.$=[];break;case 3:if(!Array.isArray(s[i])||s[i].length>0)s[i-1].push(s[i]);this.$=s[i-1];break;case 4:case 183:this.$=s[i];break;case 11:l.setDirection("TB"),this.$="TB";break;case 12:l.setDirection(s[i-1]),this.$=s[i-1];break;case 27:this.$=s[i-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=l.addSubGraph(s[i-6],s[i-1],s[i-4]);break;case 34:this.$=l.addSubGraph(s[i-3],s[i-1],s[i-3]);break;case 35:this.$=l.addSubGraph(void 0,s[i-1],void 0);break;case 37:this.$=s[i].trim(),l.setAccTitle(this.$);break;case 38:case 39:this.$=s[i].trim(),l.setAccDescription(this.$);break;case 43:this.$=s[i-1]+s[i];break;case 44:this.$=s[i];break;case 45:l.addVertex(s[i-1][s[i-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i]),l.addLink(s[i-3].stmt,s[i-1],s[i-2]),this.$={stmt:s[i-1],nodes:s[i-1].concat(s[i-3].nodes)};break;case 46:l.addLink(s[i-2].stmt,s[i],s[i-1]),this.$={stmt:s[i],nodes:s[i].concat(s[i-2].nodes)};break;case 47:l.addLink(s[i-3].stmt,s[i-1],s[i-2]),this.$={stmt:s[i-1],nodes:s[i-1].concat(s[i-3].nodes)};break;case 48:this.$={stmt:s[i-1],nodes:s[i-1]};break;case 49:l.addVertex(s[i-1][s[i-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i]),this.$={stmt:s[i-1],nodes:s[i-1],shapeData:s[i]};break;case 50:this.$={stmt:s[i],nodes:s[i]};break;case 51:this.$=[s[i]];break;case 52:l.addVertex(s[i-5][s[i-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,s[i-4]),this.$=s[i-5].concat(s[i]);break;case 53:this.$=s[i-4].concat(s[i]);break;case 54:this.$=s[i];break;case 55:this.$=s[i-2],l.setClass(s[i-2],s[i]);break;case 56:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"square");break;case 57:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"doublecircle");break;case 58:this.$=s[i-5],l.addVertex(s[i-5],s[i-2],"circle");break;case 59:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"ellipse");break;case 60:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"stadium");break;case 61:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"subroutine");break;case 62:this.$=s[i-7],l.addVertex(s[i-7],s[i-1],"rect",void 0,void 0,void 0,Object.fromEntries([[s[i-5],s[i-3]]]));break;case 63:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"cylinder");break;case 64:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"round");break;case 65:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"diamond");break;case 66:this.$=s[i-5],l.addVertex(s[i-5],s[i-2],"hexagon");break;case 67:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"odd");break;case 68:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"trapezoid");break;case 69:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"inv_trapezoid");break;case 70:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"lean_right");break;case 71:this.$=s[i-3],l.addVertex(s[i-3],s[i-1],"lean_left");break;case 72:this.$=s[i],l.addVertex(s[i]);break;case 73:s[i-1].text=s[i],this.$=s[i-1];break;case 74:case 75:s[i-2].text=s[i-1],this.$=s[i-2];break;case 76:this.$=s[i];break;case 77:var X=l.destructLink(s[i],s[i-2]);this.$={type:X.type,stroke:X.stroke,length:X.length,text:s[i-1]};break;case 78:var X=l.destructLink(s[i],s[i-2]);this.$={type:X.type,stroke:X.stroke,length:X.length,text:s[i-1],id:s[i-3]};break;case 79:this.$={text:s[i],type:"text"};break;case 80:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 81:this.$={text:s[i],type:"string"};break;case 82:this.$={text:s[i],type:"markdown"};break;case 83:var X=l.destructLink(s[i]);this.$={type:X.type,stroke:X.stroke,length:X.length};break;case 84:var X=l.destructLink(s[i]);this.$={type:X.type,stroke:X.stroke,length:X.length,id:s[i-1]};break;case 85:this.$=s[i-1];break;case 86:this.$={text:s[i],type:"text"};break;case 87:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 88:this.$={text:s[i],type:"string"};break;case 89:case 104:this.$={text:s[i],type:"markdown"};break;case 101:this.$={text:s[i],type:"text"};break;case 102:this.$={text:s[i-1].text+""+s[i],type:s[i-1].type};break;case 103:this.$={text:s[i],type:"text"};break;case 105:this.$=s[i-4],l.addClass(s[i-2],s[i]);break;case 106:this.$=s[i-4],l.setClass(s[i-2],s[i]);break;case 107:case 115:this.$=s[i-1],l.setClickEvent(s[i-1],s[i]);break;case 108:case 116:this.$=s[i-3],l.setClickEvent(s[i-3],s[i-2]),l.setTooltip(s[i-3],s[i]);break;case 109:this.$=s[i-2],l.setClickEvent(s[i-2],s[i-1],s[i]);break;case 110:this.$=s[i-4],l.setClickEvent(s[i-4],s[i-3],s[i-2]),l.setTooltip(s[i-4],s[i]);break;case 111:this.$=s[i-2],l.setLink(s[i-2],s[i]);break;case 112:this.$=s[i-4],l.setLink(s[i-4],s[i-2]),l.setTooltip(s[i-4],s[i]);break;case 113:this.$=s[i-4],l.setLink(s[i-4],s[i-2],s[i]);break;case 114:this.$=s[i-6],l.setLink(s[i-6],s[i-4],s[i]),l.setTooltip(s[i-6],s[i-2]);break;case 117:this.$=s[i-1],l.setLink(s[i-1],s[i]);break;case 118:this.$=s[i-3],l.setLink(s[i-3],s[i-2]),l.setTooltip(s[i-3],s[i]);break;case 119:this.$=s[i-3],l.setLink(s[i-3],s[i-2],s[i]);break;case 120:this.$=s[i-5],l.setLink(s[i-5],s[i-4],s[i]),l.setTooltip(s[i-5],s[i-2]);break;case 121:this.$=s[i-4],l.addVertex(s[i-2],void 0,void 0,s[i]);break;case 122:this.$=s[i-4],l.updateLink([s[i-2]],s[i]);break;case 123:this.$=s[i-4],l.updateLink(s[i-2],s[i]);break;case 124:this.$=s[i-8],l.updateLinkInterpolate([s[i-6]],s[i-2]),l.updateLink([s[i-6]],s[i]);break;case 125:this.$=s[i-8],l.updateLinkInterpolate(s[i-6],s[i-2]),l.updateLink(s[i-6],s[i]);break;case 126:this.$=s[i-6],l.updateLinkInterpolate([s[i-4]],s[i]);break;case 127:this.$=s[i-6],l.updateLinkInterpolate(s[i-4],s[i]);break;case 128:case 130:this.$=[s[i]];break;case 129:case 131:s[i-2].push(s[i]),this.$=s[i-2];break;case 133:this.$=s[i-1]+s[i];break;case 181:this.$=s[i];break;case 182:this.$=s[i-1]+""+s[i];break;case 184:this.$=s[i-1]+""+s[i];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:r,10:n,12:o},{1:[3]},e(c,m,{5:6}),{4:7,9:r,10:n,12:o},{4:8,9:r,10:n,12:o},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:p,9:T,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:x,33:24,34:W,36:E,38:y,42:28,43:39,44:w,45:40,47:41,60:j,84:ve,85:d,86:g,87:ne,88:oe,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:rt,122:nt,123:ut,124:ot,125:lt},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,55],9:[1,56],10:Ve,15:54,18:57},e(G,[2,3]),e(G,[2,4]),e(G,[2,5]),e(G,[2,6]),e(G,[2,7]),e(G,[2,8]),{8:fe,9:be,11:ke,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:fe,9:be,11:ke,21:68},{8:fe,9:be,11:ke,21:69},{8:fe,9:be,11:ke,21:70},{8:fe,9:be,11:ke,21:71},{8:fe,9:be,11:ke,21:72},{8:fe,9:be,10:[1,73],11:ke,21:74},e(G,[2,36]),{35:[1,75]},{37:[1,76]},e(G,[2,39]),e(Me,[2,50],{18:77,39:78,10:Ve,40:yt}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:We,44:je,60:Ke,80:[1,87],89:Ye,95:[1,84],97:[1,85],101:86,105:He,106:qe,109:Xe,111:Qe,114:Je,115:Ze,116:$e,120:88},e(G,[2,185]),e(G,[2,186]),e(G,[2,187]),e(G,[2,188]),e(G,[2,189]),e(Ne,[2,51]),e(Ne,[2,54],{46:[1,100]}),e(ie,[2,72],{113:113,29:[1,101],44:w,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:j,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),e(le,[2,181]),e(le,[2,142]),e(le,[2,143]),e(le,[2,144]),e(le,[2,145]),e(le,[2,146]),e(le,[2,147]),e(le,[2,148]),e(le,[2,149]),e(le,[2,150]),e(le,[2,151]),e(le,[2,152]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,114]},e(xt,[2,26],{18:115,10:Ve}),e(G,[2,27]),{42:116,43:39,44:w,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},e(G,[2,40]),e(G,[2,41]),e(G,[2,42]),e(et,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:Ft,81:_t,116:ct,119:ht},{75:[1,126],77:[1,127]},e(Bt,[2,83]),e(G,[2,28]),e(G,[2,29]),e(G,[2,30]),e(G,[2,31]),e(G,[2,32]),{10:vt,12:Vt,14:wt,27:It,28:128,32:Rt,44:Nt,60:Gt,75:Pt,80:[1,130],81:[1,131],83:141,84:Ot,85:Mt,86:Wt,87:zt,88:Kt,89:Yt,90:Ht,91:129,105:qt,109:Xt,111:Qt,114:Jt,115:Zt,116:$t},e(kt,m,{5:154}),e(G,[2,37]),e(G,[2,38]),e(Me,[2,48],{44:e1}),e(Me,[2,49],{18:156,10:Ve,40:t1}),e(Ne,[2,44]),{44:w,47:158,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{102:[1,159],103:160,105:[1,161]},{44:w,47:162,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{44:w,47:163,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},e(z,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(z,[2,115],{120:168,10:[1,167],14:We,44:je,60:Ke,89:Ye,105:He,106:qe,109:Xe,111:Qe,114:Je,115:Ze,116:$e}),e(z,[2,117],{10:[1,169]}),e(ce,[2,183]),e(ce,[2,170]),e(ce,[2,171]),e(ce,[2,172]),e(ce,[2,173]),e(ce,[2,174]),e(ce,[2,175]),e(ce,[2,176]),e(ce,[2,177]),e(ce,[2,178]),e(ce,[2,179]),e(ce,[2,180]),{44:w,47:170,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{30:171,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{30:179,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{30:181,50:[1,180],67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{30:182,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{30:183,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{30:184,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{109:[1,185]},{30:186,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{30:187,65:[1,188],67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{30:189,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{30:190,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{30:191,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},e(le,[2,182]),e(c,[2,20]),e(xt,[2,25]),e(Me,[2,46],{39:192,18:193,10:Ve,40:yt}),e(et,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{77:[1,197],79:198,116:ct,119:ht},e(tt,[2,79]),e(tt,[2,81]),e(tt,[2,82]),e(tt,[2,168]),e(tt,[2,169]),{76:199,79:121,80:Ft,81:_t,116:ct,119:ht},e(Bt,[2,84]),{8:fe,9:be,10:vt,11:ke,12:Vt,14:wt,21:201,27:It,29:[1,200],32:Rt,44:Nt,60:Gt,75:Pt,83:141,84:Ot,85:Mt,86:Wt,87:zt,88:Kt,89:Yt,90:Ht,91:202,105:qt,109:Xt,111:Qt,114:Jt,115:Zt,116:$t},e(O,[2,101]),e(O,[2,103]),e(O,[2,104]),e(O,[2,157]),e(O,[2,158]),e(O,[2,159]),e(O,[2,160]),e(O,[2,161]),e(O,[2,162]),e(O,[2,163]),e(O,[2,164]),e(O,[2,165]),e(O,[2,166]),e(O,[2,167]),e(O,[2,90]),e(O,[2,91]),e(O,[2,92]),e(O,[2,93]),e(O,[2,94]),e(O,[2,95]),e(O,[2,96]),e(O,[2,97]),e(O,[2,98]),e(O,[2,99]),e(O,[2,100]),{6:11,7:12,8:p,9:T,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:x,32:[1,203],33:24,34:W,36:E,38:y,42:28,43:39,44:w,45:40,47:41,60:j,84:ve,85:d,86:g,87:ne,88:oe,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:rt,122:nt,123:ut,124:ot,125:lt},{10:Ve,18:204},{44:[1,205]},e(Ne,[2,43]),{10:[1,206],44:w,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{10:[1,207]},{10:[1,208],106:[1,209]},e(s1,[2,128]),{10:[1,210],44:w,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{10:[1,211],44:w,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:113,114:Z,115:ee,116:te},{80:[1,212]},e(z,[2,109],{10:[1,213]}),e(z,[2,111],{10:[1,214]}),{80:[1,215]},e(ce,[2,184]),{80:[1,216],98:[1,217]},e(Ne,[2,55],{113:113,44:w,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),{31:[1,218],67:_,82:219,116:B,117:v,118:V},e(we,[2,86]),e(we,[2,88]),e(we,[2,89]),e(we,[2,153]),e(we,[2,154]),e(we,[2,155]),e(we,[2,156]),{49:[1,220],67:_,82:219,116:B,117:v,118:V},{30:221,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{51:[1,222],67:_,82:219,116:B,117:v,118:V},{53:[1,223],67:_,82:219,116:B,117:v,118:V},{55:[1,224],67:_,82:219,116:B,117:v,118:V},{57:[1,225],67:_,82:219,116:B,117:v,118:V},{60:[1,226]},{64:[1,227],67:_,82:219,116:B,117:v,118:V},{66:[1,228],67:_,82:219,116:B,117:v,118:V},{30:229,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},{31:[1,230],67:_,82:219,116:B,117:v,118:V},{67:_,69:[1,231],71:[1,232],82:219,116:B,117:v,118:V},{67:_,69:[1,234],71:[1,233],82:219,116:B,117:v,118:V},e(Me,[2,45],{18:156,10:Ve,40:t1}),e(Me,[2,47],{44:e1}),e(et,[2,75]),e(et,[2,74]),{62:[1,235],67:_,82:219,116:B,117:v,118:V},e(et,[2,77]),e(tt,[2,80]),{77:[1,236],79:198,116:ct,119:ht},{30:237,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},e(kt,m,{5:238}),e(O,[2,102]),e(G,[2,35]),{43:239,44:w,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},{10:Ve,18:240},{10:ge,60:Ae,84:me,92:241,105:Ce,107:242,108:243,109:Se,110:ye,111:xe,112:_e},{10:ge,60:Ae,84:me,92:252,104:[1,253],105:Ce,107:242,108:243,109:Se,110:ye,111:xe,112:_e},{10:ge,60:Ae,84:me,92:254,104:[1,255],105:Ce,107:242,108:243,109:Se,110:ye,111:xe,112:_e},{105:[1,256]},{10:ge,60:Ae,84:me,92:257,105:Ce,107:242,108:243,109:Se,110:ye,111:xe,112:_e},{44:w,47:258,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},e(z,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(z,[2,116]),e(z,[2,118],{10:[1,262]}),e(z,[2,119]),e(ie,[2,56]),e(we,[2,87]),e(ie,[2,57]),{51:[1,263],67:_,82:219,116:B,117:v,118:V},e(ie,[2,64]),e(ie,[2,59]),e(ie,[2,60]),e(ie,[2,61]),{109:[1,264]},e(ie,[2,63]),e(ie,[2,65]),{66:[1,265],67:_,82:219,116:B,117:v,118:V},e(ie,[2,67]),e(ie,[2,68]),e(ie,[2,70]),e(ie,[2,69]),e(ie,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(et,[2,78]),{31:[1,266],67:_,82:219,116:B,117:v,118:V},{6:11,7:12,8:p,9:T,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:x,32:[1,267],33:24,34:W,36:E,38:y,42:28,43:39,44:w,45:40,47:41,60:j,84:ve,85:d,86:g,87:ne,88:oe,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:rt,122:nt,123:ut,124:ot,125:lt},e(Ne,[2,53]),{43:268,44:w,45:40,47:41,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te},e(z,[2,121],{106:st}),e(i1,[2,130],{108:270,10:ge,60:Ae,84:me,105:Ce,109:Se,110:ye,111:xe,112:_e}),e(pe,[2,132]),e(pe,[2,134]),e(pe,[2,135]),e(pe,[2,136]),e(pe,[2,137]),e(pe,[2,138]),e(pe,[2,139]),e(pe,[2,140]),e(pe,[2,141]),e(z,[2,122],{106:st}),{10:[1,271]},e(z,[2,123],{106:st}),{10:[1,272]},e(s1,[2,129]),e(z,[2,105],{106:st}),e(z,[2,106],{113:113,44:w,60:j,89:K,102:Y,105:H,106:q,109:Q,111:J,114:Z,115:ee,116:te}),e(z,[2,110]),e(z,[2,112],{10:[1,273]}),e(z,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:fe,9:be,11:ke,21:278},e(G,[2,34]),e(Ne,[2,52]),{10:ge,60:Ae,84:me,105:Ce,107:279,108:243,109:Se,110:ye,111:xe,112:_e},e(pe,[2,133]),{14:We,44:je,60:Ke,89:Ye,101:280,105:He,106:qe,109:Xe,111:Qe,114:Je,115:Ze,116:$e,120:88},{14:We,44:je,60:Ke,89:Ye,101:281,105:He,106:qe,109:Xe,111:Qe,114:Je,115:Ze,116:$e,120:88},{98:[1,282]},e(z,[2,120]),e(ie,[2,58]),{30:283,67:_,80:re,81:ae,82:172,116:B,117:v,118:V},e(ie,[2,66]),e(kt,m,{5:284}),e(i1,[2,131],{108:270,10:ge,60:Ae,84:me,105:Ce,109:Se,110:ye,111:xe,112:_e}),e(z,[2,126],{120:168,10:[1,285],14:We,44:je,60:Ke,89:Ye,105:He,106:qe,109:Xe,111:Qe,114:Je,115:Ze,116:$e}),e(z,[2,127],{120:168,10:[1,286],14:We,44:je,60:Ke,89:Ye,105:He,106:qe,109:Xe,111:Qe,114:Je,115:Ze,116:$e}),e(z,[2,114]),{31:[1,287],67:_,82:219,116:B,117:v,118:V},{6:11,7:12,8:p,9:T,10:f,11:U,20:17,22:18,23:19,24:20,25:21,26:22,27:x,32:[1,288],33:24,34:W,36:E,38:y,42:28,43:39,44:w,45:40,47:41,60:j,84:ve,85:d,86:g,87:ne,88:oe,89:K,102:Y,105:H,106:q,109:Q,111:J,113:42,114:Z,115:ee,116:te,121:rt,122:nt,123:ut,124:ot,125:lt},{10:ge,60:Ae,84:me,92:289,105:Ce,107:242,108:243,109:Se,110:ye,111:xe,112:_e},{10:ge,60:Ae,84:me,92:290,105:Ce,107:242,108:243,109:Se,110:ye,111:xe,112:_e},e(ie,[2,62]),e(G,[2,33]),e(z,[2,124],{106:st}),e(z,[2,125],{106:st})],defaultActions:{},parseError:t(function(b,C){if(C.recoverable)this.trace(b);else{var S=Error(b);throw S.hash=C,S}},"parseError"),parse:t(function(b){var C=this,S=[0],l=[],M=[null],s=[],Ge=this.table,i="",X=0,r1=0,a1=0,d1=2,n1=1,p1=s.slice.call(arguments,1),se=Object.create(this.lexer),Pe={yy:{}};for(var At in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,At))Pe.yy[At]=this.yy[At];if(se.setInput(b,Pe.yy),Pe.yy.lexer=se,Pe.yy.parser=this,typeof se.yylloc>"u")se.yylloc={};var mt=se.yylloc;s.push(mt);var f1=se.options&&se.options.ranges;if(typeof Pe.yy.parseError==="function")this.parseError=Pe.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function b1(de){S.length=S.length-2*de,M.length=M.length-de,s.length=s.length-de}t(b1,"popStack");function u1(){var de=l.pop()||se.lex()||n1;if(typeof de!=="number"){if(de instanceof Array)l=de,de=l.pop();de=C.symbols_[de]||de}return de}t(u1,"lex");var ue,Dt,Oe,he,y1,Tt,it={},pt,Be,o1,ft;while(!0){if(Oe=S[S.length-1],this.defaultActions[Oe])he=this.defaultActions[Oe];else{if(ue===null||typeof ue>"u")ue=u1();he=Ge[Oe]&&Ge[Oe][ue]}if(typeof he>"u"||!he.length||!he[0]){var Et="";ft=[];for(pt in Ge[Oe])if(this.terminals_[pt]&&pt>d1)ft.push("'"+this.terminals_[pt]+"'");if(se.showPosition)Et="Parse error on line "+(X+1)+`:
|
|
10
10
|
`+se.showPosition()+`
|
|
11
|
-
Expecting `+ft.join(", ")+", got '"+(this.terminals_[ue]||ue)+"'";else Et="Parse error on line "+(X+1)+": Unexpected "+(ue==n1?"end of input":"'"+(this.terminals_[ue]||ue)+"'");this.parseError(Et,{text:se.match,token:this.terminals_[ue]||ue,line:se.yylineno,loc:mt,expected:ft})}if(he[0]instanceof Array&&he.length>1)throw Error("Parse Error: multiple actions possible at state: "+Oe+", token: "+ue);switch(he[0]){case 1:if(S.push(ue),
|
|
11
|
+
Expecting `+ft.join(", ")+", got '"+(this.terminals_[ue]||ue)+"'";else Et="Parse error on line "+(X+1)+": Unexpected "+(ue==n1?"end of input":"'"+(this.terminals_[ue]||ue)+"'");this.parseError(Et,{text:se.match,token:this.terminals_[ue]||ue,line:se.yylineno,loc:mt,expected:ft})}if(he[0]instanceof Array&&he.length>1)throw Error("Parse Error: multiple actions possible at state: "+Oe+", token: "+ue);switch(he[0]){case 1:if(S.push(ue),M.push(se.yytext),s.push(se.yylloc),S.push(he[1]),ue=null,!Dt){if(r1=se.yyleng,i=se.yytext,X=se.yylineno,mt=se.yylloc,a1>0)a1--}else ue=Dt,Dt=null;break;case 2:if(Be=this.productions_[he[1]][1],it.$=M[M.length-Be],it._$={first_line:s[s.length-(Be||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(Be||1)].first_column,last_column:s[s.length-1].last_column},f1)it._$.range=[s[s.length-(Be||1)].range[0],s[s.length-1].range[1]];if(Tt=this.performAction.apply(it,[i,r1,X,Pe.yy,he[1],M,s].concat(p1)),typeof Tt<"u")return Tt;if(Be)S=S.slice(0,-1*Be*2),M=M.slice(0,-1*Be),s=s.slice(0,-1*Be);S.push(this.productions_[he[1]][0]),M.push(it.$),s.push(it._$),o1=Ge[S[S.length-2]][S[S.length-1]],S.push(o1);break;case 3:return!0}}return!0},"parse")},h1=function(){var Re={EOF:1,parseError:t(function(C,S){if(this.yy.parser)this.yy.parser.parseError(C,S);else throw Error(C)},"parseError"),setInput:t(function(b,C){if(this.yy=C||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var C=b.match(/(?:\r\n?|\n).*/g);if(C)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),b},"input"),unput:t(function(b){var C=b.length,S=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C),this.offset-=C;var l=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),S.length-1)this.yylineno-=S.length-1;var M=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:S?(S.length===l.length?this.yylloc.first_column:0)+l[l.length-S.length].length-S[0].length:this.yylloc.first_column-C},this.options.ranges)this.yylloc.range=[M[0],M[0]+this.yyleng-C];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
12
12
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(b){this.unput(this.match.slice(b))},"less"),pastInput:t(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var b=this.match;if(b.length<20)b+=this._input.substr(0,20-b.length);return(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var b=this.pastInput(),C=Array(b.length+1).join("-");return b+this.upcomingInput()+`
|
|
13
|
-
`+C+"^"},"showPosition"),test_match:t(function(b,C){var S,l,
|
|
14
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var C=this.next();if(C)return C;else return this.lex()},"lex"),begin:t(function(C){this.conditionStack.push(C)},"begin"),popState:t(function(){var C=this.conditionStack.length-1;if(C>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(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:t(function(C){if(C=this.conditionStack.length-1-Math.abs(C||0),C>=0)return this.conditionStack[C];else return"INITIAL"},"topState"),pushState:t(function(C){this.begin(C)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:t(function(C,S,l,O){var s=O;switch(l){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),S.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let Ge=/\n\s*/g;return S.yytext=S.yytext.replace(Ge,"<br/>"),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:if(C.lex.firstGraph())this.begin("dir");return 12;case 36:if(C.lex.firstGraph())this.begin("dir");return 12;case 37:if(C.lex.firstGraph())this.begin("dir");return 12;case 38:if(C.lex.firstGraph())this.begin("dir");return 12;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return this.popState(),14;break;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;break;case 71:return this.pushState("edgeText"),75;break;case 72:return 119;case 73:return this.popState(),77;break;case 74:return this.pushState("thickEdgeText"),75;break;case 75:return 119;case 76:return this.popState(),77;break;case 77:return this.pushState("dottedEdgeText"),75;break;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;break;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),52;break;case 83:return this.popState(),55;break;case 84:return this.pushState("text"),54;break;case 85:return this.popState(),57;break;case 86:return this.pushState("text"),56;break;case 87:return 58;case 88:return this.pushState("text"),67;break;case 89:return this.popState(),64;break;case 90:return this.pushState("text"),63;break;case 91:return this.popState(),49;break;case 92:return this.pushState("text"),48;break;case 93:return this.popState(),69;break;case 94:return this.popState(),71;break;case 95:return 117;case 96:return this.pushState("trapText"),68;break;case 97:return this.pushState("trapText"),70;break;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;break;case 110:return this.pushState("text"),62;break;case 111:return this.popState(),51;break;case 112:return this.pushState("text"),50;break;case 113:return this.popState(),31;break;case 114:return this.pushState("text"),29;break;case 115:return this.popState(),66;break;case 116:return this.pushState("text"),65;break;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:[^\S\n\r]+)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return Re}();gt.lexer=h1;function dt(){this.yy={}}return t(dt,"Parser"),dt.prototype=gt,gt.Parser=dt,new dt}();St.parser=St;var l1=St,c1=Object.assign({},l1);c1.parse=(e)=>{let r=e.replace(/}\s*\n/g,`}
|
|
13
|
+
`+C+"^"},"showPosition"),test_match:t(function(b,C){var S,l,M;if(this.options.backtrack_lexer){if(M={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)M.yylloc.range=this.yylloc.range.slice(0)}if(l=b[0].match(/(?:\r\n?|\n).*/g),l)this.yylineno+=l.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,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(b[0].length),this.matched+=b[0],S=this.performAction.call(this,this.yy,this,C,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(S)return S;else if(this._backtrack){for(var s in M)this[s]=M[s];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var b,C,S,l;if(!this._more)this.yytext="",this.match="";var M=this._currentRules();for(var s=0;s<M.length;s++)if(S=this._input.match(this.rules[M[s]]),S&&(!C||S[0].length>C[0].length)){if(C=S,l=s,this.options.backtrack_lexer)if(b=this.test_match(S,M[s]),b!==!1)return b;else if(this._backtrack){C=!1;continue}else return!1;else if(!this.options.flex)break}if(C){if(b=this.test_match(C,M[l]),b!==!1)return b;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
14
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var C=this.next();if(C)return C;else return this.lex()},"lex"),begin:t(function(C){this.conditionStack.push(C)},"begin"),popState:t(function(){var C=this.conditionStack.length-1;if(C>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(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:t(function(C){if(C=this.conditionStack.length-1-Math.abs(C||0),C>=0)return this.conditionStack[C];else return"INITIAL"},"topState"),pushState:t(function(C){this.begin(C)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:t(function(C,S,l,M){var s=M;switch(l){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),S.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let Ge=/\n\s*/g;return S.yytext=S.yytext.replace(Ge,"<br/>"),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:if(C.lex.firstGraph())this.begin("dir");return 12;case 36:if(C.lex.firstGraph())this.begin("dir");return 12;case 37:if(C.lex.firstGraph())this.begin("dir");return 12;case 38:if(C.lex.firstGraph())this.begin("dir");return 12;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return this.popState(),14;break;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;break;case 71:return this.pushState("edgeText"),75;break;case 72:return 119;case 73:return this.popState(),77;break;case 74:return this.pushState("thickEdgeText"),75;break;case 75:return 119;case 76:return this.popState(),77;break;case 77:return this.pushState("dottedEdgeText"),75;break;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;break;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),52;break;case 83:return this.popState(),55;break;case 84:return this.pushState("text"),54;break;case 85:return this.popState(),57;break;case 86:return this.pushState("text"),56;break;case 87:return 58;case 88:return this.pushState("text"),67;break;case 89:return this.popState(),64;break;case 90:return this.pushState("text"),63;break;case 91:return this.popState(),49;break;case 92:return this.pushState("text"),48;break;case 93:return this.popState(),69;break;case 94:return this.popState(),71;break;case 95:return 117;case 96:return this.pushState("trapText"),68;break;case 97:return this.pushState("trapText"),70;break;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;break;case 110:return this.pushState("text"),62;break;case 111:return this.popState(),51;break;case 112:return this.pushState("text"),50;break;case 113:return this.popState(),31;break;case 114:return this.pushState("text"),29;break;case 115:return this.popState(),66;break;case 116:return this.pushState("text"),65;break;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:[^\S\n\r]+)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return Re}();gt.lexer=h1;function dt(){this.yy={}}return t(dt,"Parser"),dt.prototype=gt,gt.Parser=dt,new dt}();St.parser=St;var l1=St,c1=Object.assign({},l1);c1.parse=(e)=>{let r=e.replace(/}\s*\n/g,`}
|
|
15
15
|
`);return l1.parse(r)};var D1=c1,T1=t((e)=>{let{theme:r,bkgColorArray:n,borderColorArray:o}=e;if(!Te(r,o))return"";let c=Ee(e.look),m=De(n),p="";for(let T=0;T<Lt(e.THEME_COLOR_LIMIT,o);T++){let f=o[T%o.length],U=m?`fill: ${n[T%n.length]};`:"",x=`[data-look="${c}"][data-color-id="color-${T}"]`,W=t((y)=>`${x}.node ${y}, ${x}.rough-node ${y}`,"collapsedRule"),E=t((y)=>`${x}.swimlane.cluster .swimlane-title${y}, ${x}.swimlane.cluster .swimlane-body${y}`,"laneRule");p+=`
|
|
16
16
|
|
|
17
17
|
${x}.cluster:not(.swimlane) rect {
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q,kn,o,_,i,r,p,e,n,y,Z,es,Rl,Xs,ti,
|
|
1
|
+
import{q,kn,o,_,i,r,p,e,n,y,Z,es,Rl,Xs,ti,Ni,Ll,Ks,Il,Mi,Pi,br,ts,ns}from"./chunk-2s6fhjjc.js";var P={sealed:"已封存",folded:"已折叠",archived:"已移出"},R=["bg-accent","bg-accent-strong","bg-warning","bg-success"];function W(t,l){if(t.startsWith("recent-"))return"json";let m=l.trimStart();if(!m)return"markdown";if(m.startsWith("{")||m.startsWith("["))return"json";if(/^<[a-zA-Z_][\w.-]*(?:\s+[^>]*)?>/.test(m))return"xml";return"markdown"}function O(t){if(!t||t.length>32000)return t;if(!t.trimStart().startsWith("<"))return t;let m=[],s=0,a=(u)=>" ".repeat(u),d=/(<([a-zA-Z_][\w.-]*)(?:\s+[^>]*)?>([^\r\n<]*)<\/\2>)|(<\/[a-zA-Z_][\w.-]*>)|(<[a-zA-Z_][\w.-]*(?:\s+[^>]*)?\/>)|(<[a-zA-Z_][\w.-]*(?:\s+[^>]*)?>)|([^<]+)/g;for(let u of t.matchAll(d)){let[,x,,,b,c,f,v]=u;if(x)m.push(`${a(s)}${x.trim()}`);else if(b)s=Math.max(0,s-1),m.push(`${a(s)}${b.trim()}`);else if(f)m.push(`${a(s)}${f.trim()}`),s++;else if(c)m.push(`${a(s)}${c.trim()}`);else if(v){let k=v.trim();if(k)for(let h of k.split(/\r?\n/)){let I=h.trim();if(I)m.push(`${a(s)}${I}`)}}}return m.length>0?m.join(`
|
|
2
2
|
`):t}function z(){return n("div",{role:"status","aria-busy":"true","aria-label":"正在加载上下文",className:"space-y-2 animate-pulse",children:[e("div",{className:"h-10 rounded-xl border border-line bg-panel/40"}),e("div",{className:"h-10 rounded-xl border border-line bg-panel/40"}),e("div",{className:"h-10 rounded-xl border border-line bg-panel/40"})]})}function N(t){let{style:l}=y();return e("p",{className:l("surface.empty"),children:t.children})}function S(t){let{Chevron:l,Collapsible:m,CollapsibleContent:s,CollapsibleTrigger:a,style:d}=y(),[u,x]=r(!1),[b,c]=r(!1);return n(m,{open:u,onOpenChange:(f)=>kn(()=>{if(x(f),f)c(!0)}),className:d("surface.interactive","group/collapsible"),children:[n(a,{className:"flex w-full items-center gap-2 px-3 py-2 text-left text-xs",children:[t.header,e(l,{className:"-rotate-90 text-faint group-data-[state=open]/collapsible:rotate-90"})]}),e(s,{children:b&&e("div",{className:"border-t border-line/60 bg-raised/20 px-3 py-2 text-xs text-dim",children:t.children})})]})}function T(t){let{Code:l}=y();return e(l,{code:t.code,lang:t.lang,className:"text-[11px]! leading-relaxed! [&_pre]:whitespace-pre-wrap [&_pre]:break-words [&_pre]:[overflow-wrap:anywhere]"})}function L(t){let{cn:l}=y();if(!t.items.length)return e(N,{children:"新会话还没有上下文。发送第一条消息后,这里会显示构成。"});let m=t.items.reduce((s,a)=>s+a.tokens,0)||1;return n("div",{className:"space-y-2.5",children:[e("div",{className:"flex h-2 overflow-hidden rounded-full bg-raised",children:t.items.map((s,a)=>e("span",{className:l(R[a%R.length],"transition-[width] duration-300 ease-out-quint"),title:`${s.label}:${s.tokens.toLocaleString()} token`,style:{width:`${s.tokens/m*100}%`}},s.id))}),e("div",{className:"space-y-1.5",children:t.items.map((s,a)=>e(Y,{item:s,total:m,index:a,color:R[a%R.length]??"bg-accent"},s.id))})]})}function Y(t){let{cn:l,style:m,useTheme:s}=y();s();let a=(t.item.tokens/t.total*100).toFixed(1);return e(S,{header:n(p,{children:[e("span",{className:l("size-2 shrink-0 rounded-full",t.color),"aria-hidden":!0}),e("span",{className:"min-w-0 flex-1 font-medium break-words text-ink [overflow-wrap:anywhere]",children:t.item.label}),t.item.state&&e("span",{className:m("control.badge","text-[10px]"),children:P[t.item.state]}),e("span",{className:"font-mono tabular-nums text-dim",children:t.item.tokens.toLocaleString()}),n("span",{className:"w-10 text-right font-mono text-[11px] tabular-nums text-faint",children:[a,"%"]})]}),children:e(ee,{item:t.item,percent:a,color:t.color})})}function ee(t){let{cn:l,CopyButton:m,style:s,useTheme:a}=y();a();let d=t.item.detail,u=_(()=>d?W(t.item.id,d):"markdown",[d,t.item.id]),x=_(()=>{if(!d)return"";return u==="xml"?O(d):d},[d,u]);return n(p,{children:[e("div",{className:"mb-2 h-1 overflow-hidden rounded-full bg-raised",children:e("div",{className:l("h-full",t.color),style:{width:`${t.percent}%`}})}),x?n("div",{className:s("surface.subtle","group/detail relative overflow-hidden rounded-lg bg-panel/70 p-2.5"),children:[e("div",{className:"absolute right-1.5 top-1.5 z-10",children:e(m,{text:t.item.detail,size:"icon-xs",className:"bg-raised/60 hover:bg-raised text-faint hover:text-ink backdrop-blur-sm"})}),e("div",{className:"max-h-80 overflow-y-auto pr-6 text-dim",children:e(T,{code:x,lang:u})})]}):e("p",{className:"py-2 text-center text-xs text-faint",children:"(空)"})]})}var M=40,te={accent:"bg-accent/15 text-accent",success:"bg-success/15 text-success",warning:"bg-warning/15 text-warning",danger:"bg-danger/15 text-danger",neutral:"bg-raised text-dim"};function A(t){let{Button:l,CopyButton:m,style:s,useTheme:a}=y();a();let[d,u]=r(M),x=i(null),b=d<t.entries.length;o(()=>{let f=x.current;if(!f||!b||typeof IntersectionObserver>"u")return;let v=new IntersectionObserver((k)=>{if(k.some((h)=>h.isIntersecting))u((h)=>Math.min(t.entries.length,h+M))},{rootMargin:"480px"});return v.observe(f),()=>v.disconnect()},[b,t.entries.length]);let c=_(()=>t.entries.slice(-d).reverse(),[t.entries,d]);if(!t.entries.length)return e(N,{children:"还没有消息。"});return n("div",{className:"space-y-1.5",children:[n("div",{className:s("surface.subtle","flex items-center justify-between px-3 py-1.5 text-xs text-faint"),children:[n("span",{children:["共 ",t.entries.length," 条记录"]}),e(m,{text:()=>t.entries.map((f)=>JSON.stringify(f,null,2)).join(`
|
|
3
3
|
|
|
4
|
-
`),size:"icon-xs",label:"复制全部原始 JSON",className:"hover:bg-raised text-faint hover:text-ink"})]}),c.map((f)=>e(ae,{entry:f},f.seq)),b&&n("div",{ref:x,className:s("surface.subtle","flex items-center justify-between bg-panel/40 px-3 py-2 text-xs text-faint"),children:[n("span",{children:["已显示 ",c.length," / ",t.entries.length," 条"]}),n("div",{className:"flex items-center gap-1.5",children:[e(l,{size:"sm",variant:"ghost",onClick:()=>u((f)=>Math.min(t.entries.length,f+M)),children:"加载更多"}),e(l,{size:"sm",variant:"ghost",onClick:()=>u(t.entries.length),children:"显示全部"})]})]})]})}var ae=q(function(l){let{CopyButton:m,style:s,useTheme:a}=y();a();let d=Ll(l.entry),u=_(()=>Rl(l.entry.time),[l.entry.time]);return e(S,{header:n(p,{children:[n("span",{className:"shrink-0 font-mono text-[10.5px] tabular-nums text-faint",children:["#",l.entry.seq]}),e("span",{className:s("control.badge","shrink-0 font-medium text-[10px]",te[d.tone]),children:d.badge}),e("span",{className:"min-w-0 flex-1 truncate text-ink",children:d.title}),d.meta&&e("span",{className:s("control.badge","shrink-0 font-mono text-[10px] text-faint"),children:d.meta}),e("span",{className:"shrink-0 font-mono text-[10.5px] tabular-nums text-faint",children:u})]}),children:n("div",{className:"space-y-2",children:[n("div",{className:"flex items-center justify-between text-[11px] text-faint",children:[n("span",{className:"font-mono",children:[l.entry.type," · #",l.entry.seq]}),e(m,{text:()=>JSON.stringify(l.entry,null,2),size:"icon-xs",label:"复制此条 JSON",className:"bg-raised/60 hover:bg-raised text-faint hover:text-ink"})]}),e(se,{entry:l.entry})]})})});function se(t){let{style:l,useTheme:m}=y();m();let s=t.entry;if(s.type==="user")return n("div",{className:"space-y-2",children:[s.text&&e("pre",{className:l("surface.subtle","max-h-72 overflow-y-auto p-2.5 font-sans text-xs leading-relaxed text-ink whitespace-pre-wrap break-words [overflow-wrap:anywhere]"),children:ti(s.text)}),s.attachments&&s.attachments.length>0&&n("div",{className:"space-y-1",children:[n("div",{className:"text-[10.5px] font-medium text-faint",children:["附件(",s.attachments.length,")"]}),e("div",{className:"flex flex-wrap gap-1.5",children:s.attachments.map((a,d)=>{let u=a.kind==="image"?Math.floor(a.data.length*0.75):a.data.length;return n("div",{className:l("surface.subtle","inline-flex items-center gap-1.5 px-2 py-1 text-[11px]"),children:[e("span",{className:l("control.badge","text-[10px] text-faint"),children:a.kind==="image"?"图片":a.kind==="path"?"路径":"文本"}),e("span",{className:"max-w-40 truncate font-medium text-ink",children:a.name}),n("span",{className:"font-mono text-[10px] text-faint",children:[a.mimeType," · ",Xs(u)]})]},`${a.name}-${d}`)})})]}),s.notices&&s.notices.length>0&&n("div",{className:"space-y-1",children:[n("div",{className:"text-[10.5px] font-medium text-faint",children:["通知来源(",s.notices.length,")"]}),s.notices.map((a)=>n("div",{className:l("surface.subtle","flex items-center justify-between px-2.5 py-1.5 font-mono text-[11px]"),children:[n("span",{className:"truncate text-ink",children:[a.sourceKind,"/",a.sourceID]}),e("span",{className:"text-faint",children:a.state})]},a.dedupeKey))]})]});if(s.type==="assistant")return n("div",{className:"space-y-2",children:[n("div",{className:"font-mono text-[11px] text-faint",children:["模型:",s.model]}),s.error&&e("div",{className:"rounded-lg border border-danger/30 bg-danger/8 px-2.5 py-2 text-xs text-danger",children:s.error}),s.parts.map((a,d)=>{if(a.type==="thinking")return n("div",{className:l("surface.subtle","p-2.5 space-y-1"),children:[e("div",{className:"text-[10.5px] font-medium text-faint",children:"思考"}),e("pre",{className:"max-h-60 overflow-y-auto font-sans text-xs italic leading-relaxed text-dim whitespace-pre-wrap break-words [overflow-wrap:anywhere]",children:ti(a.text)})]},`thinking-${d}`);if(a.type==="text")return n("div",{className:l("surface.subtle","p-2.5 space-y-1"),children:[e("div",{className:"text-[10.5px] font-medium text-faint",children:"回复"}),e("pre",{className:"max-h-60 overflow-y-auto font-sans text-xs leading-relaxed text-ink whitespace-pre-wrap break-words [overflow-wrap:anywhere]",children:ti(a.text)})]},`text-${d}`);return n("div",{className:l("surface.subtle","p-2.5 space-y-1.5"),children:[n("div",{className:"flex items-center justify-between gap-2 text-[11px]",children:[n("span",{className:"font-mono font-medium text-ink",children:["工具调用 · ",a.name]}),e("span",{className:"truncate font-mono text-[10px] text-faint",children:a.id})]}),e("div",{className:"max-h-60 overflow-y-auto text-dim",children:e(T,{code:Mi(JSON.stringify(a.input,Ks,2)),lang:"json"})})]},a.id||`tool-${d}`)})]});if(s.type==="tool_result")return n("div",{className:"space-y-2",children:[n("div",{className:"flex flex-wrap items-center gap-2 font-mono text-[11px] text-faint",children:[e("span",{className:"text-ink",children:s.name}),e("span",{children:"·"}),e("span",{className:"truncate",children:s.callID}),e("span",{className:l("control.badge","ml-auto font-sans text-[10px]",s.isError?"bg-danger/15 text-danger":"text-dim"),children:s.isError?"执行失败":"执行完成"})]}),s.images&&s.images.length>0&&e("div",{className:"flex flex-wrap gap-1.5",children:s.images.map((a,d)=>n("span",{className:l("surface.subtle","px-2 py-1 font-mono text-[10.5px] text-faint"),children:["图片 #",d+1," · ",a.mimeType," · ",Xs(Math.floor(a.data.length*0.75))]},`${a.mimeType}-${d}`))}),es(s.output)?e("pre",{className:l("surface.subtle","max-h-72 overflow-y-auto p-2.5 font-mono text-[11px] leading-relaxed whitespace-pre-wrap break-words [overflow-wrap:anywhere]",s.isError?"text-danger":"text-dim"),children:ti(s.output)}):e("p",{className:"py-1 text-faint",children:"(无文本输出)"})]});return e("pre",{className:l("surface.subtle","max-h-72 overflow-y-auto p-2.5 font-mono text-[11px] leading-relaxed text-dim whitespace-pre-wrap break-words [overflow-wrap:anywhere]"),children:Il(s)})}function j(t){let{cn:l,style:m,useTheme:s}=y();if(s(),!t.todos.length)return e(N,{children:"暂无待办。"});return e("ul",{className:"space-y-1.5",children:t.todos.map((a)=>n("li",{className:m("surface.interactive","flex items-start gap-2.5 px-3 py-2 text-xs"),children:[n("span",{className:l("mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full border transition-colors duration-300",a.status==="completed"&&"border-success bg-success text-panel",a.status==="in_progress"&&"border-accent",a.status==="pending"&&"border-line-strong"),children:[a.status==="completed"&&e(Z,{className:"size-2.5 animate-pop",strokeWidth:3.5}),a.status==="in_progress"&&e("span",{className:"size-1.5 animate-pulse rounded-full bg-accent"})]}),e("span",{className:l("min-w-0 flex-1 break-words leading-relaxed [overflow-wrap:anywhere]",a.status==="completed"&&"text-faint line-through decoration-faint/60",a.status==="in_progress"&&"font-medium text-ink",a.status==="pending"&&"text-dim"),children:a.content})]},`${a.status}-${a.content}`))})}function F(t){let{cn:l,style:m,useTheme:s}=y();s();let[a,d]=r("all"),u=_(()=>t.tools.filter((c)=>c.deferred).length,[t.tools]),x=t.tools.length-u,b=_(()=>{if(a==="deferred")return t.tools.filter((c)=>c.deferred);if(a==="active")return t.tools.filter((c)=>!c.deferred);return t.tools},[t.tools,a]);if(!t.tools.length)return e(N,{children:"当前会话没有可用工具。"});return n("div",{className:"space-y-2",children:[u>0&&n("div",{className:"flex items-center gap-1 text-[11px]",children:[n("button",{type:"button",onClick:()=>d("all"),className:l("rounded-lg px-2 py-1 transition-colors",a==="all"?"bg-raised font-medium text-ink":"text-faint hover:text-dim"),children:["全部 (",t.tools.length,")"]}),n("button",{type:"button",onClick:()=>d("active"),className:l("rounded-lg px-2 py-1 transition-colors",a==="active"?"bg-raised font-medium text-ink":"text-faint hover:text-dim"),children:["常驻 (",x,")"]}),n("button",{type:"button",onClick:()=>d("deferred"),className:l("rounded-lg px-2 py-1 transition-colors",a==="deferred"?"bg-raised font-medium text-ink":"text-faint hover:text-dim"),children:["延迟加载 (",u,")"]})]}),e("div",{className:"space-y-1.5",children:b.map((c)=>e(ne,{tool:c},`${c.group}-${c.name}`))})]})}function ne(t){let{style:l,useTheme:m}=y();return m(),e(S,{header:n("div",{className:"flex min-w-0 flex-1 items-center gap-1.5 truncate font-mono text-ink",children:[e("span",{className:"truncate",children:t.tool.name}),t.tool.group&&e("span",{className:l("control.badge","font-sans text-[10px]"),children:t.tool.group}),t.tool.deferred&&e("span",{className:l("control.badge","font-sans text-[10px]"),children:"延迟加载"})]}),children:e(ie,{tool:t.tool})})}function ie(t){let{CopyButton:l,style:m,useTheme:s}=y();s();let a=_(()=>JSON.stringify(t.tool.schema,null,2),[t.tool.schema]);return n(p,{children:[t.tool.deferred&&e("div",{className:m("surface.subtle","mb-2 px-2.5 py-1.5 text-[11px] text-faint"),children:"延迟加载:此工具默认以精简描述挂载,模型通过 toolsearch 取回定义后才向上下文注入完整参数 Schema。"}),t.tool.description&&e("pre",{className:"mb-2 max-h-60 overflow-y-auto font-sans text-xs leading-relaxed text-dim whitespace-pre-wrap break-words [overflow-wrap:anywhere]",children:Mi(t.tool.description)}),n("div",{className:m("surface.subtle","group/schema relative overflow-hidden rounded-lg p-2.5"),children:[e("div",{className:"absolute right-1.5 top-1.5 z-10",children:e(l,{text:a,size:"icon-xs",className:"bg-raised/60 hover:bg-raised text-faint hover:text-ink backdrop-blur-sm"})}),e("div",{className:"max-h-72 overflow-y-auto pr-6 text-dim",children:e(T,{code:Mi(a),lang:"json"})})]})]})}function oe(){try{let t=localStorage.getItem("basalt.contextSidebar.tab");if(t==="tools"||t==="todos"||t==="raw")return t}catch{}return"breakdown"}function re(t){let{style:l,useTheme:m}=y();return m(),n("div",{className:l("surface.panel","bg-panel/70 px-3 py-2"),children:[e("div",{className:"text-[10px] font-medium uppercase tracking-wider text-faint",children:t.label}),e("div",{className:"mt-0.5 truncate font-mono text-xs font-semibold tabular-nums text-ink",children:t.value})]})}function Fe(t){let{Button:l,StatusChip:m,Segmented:s,cn:a,style:d,useTheme:u}=y();u();let[x,b]=r(oe),[c,f]=r(()=>br.get(t.session.id)),[v,k]=r(!1),[h,I]=r(0),[H,J]=r(!1);o(()=>{let g=setTimeout(()=>kn(()=>J(!0)),140);return()=>clearTimeout(g)},[]),o(()=>{let g=br.get(t.session.id);if(g)f(g);return ts((E,Q)=>{if(E===t.session.id)kn(()=>f(Q))})},[t.session.id]),o(()=>{let g=!0;return k(!1),ns(t.connection,t.session.id,`${t.session.updated}:${t.entries.length}`,h>0).then((E)=>{if(g)kn(()=>f(E))},()=>{if(g)k(!0)}),()=>{g=!1}},[t.connection,t.session.id,t.session.updated,t.entries.length,h]);let w=Ni(c?.items??[],c?.usableWindow,c?.calibratedTokens,c?.lastInputTokens,c?.hasPendingOutput),C=Pi(w.percent),D=c?.lastCacheHitRate,B=c?.usage?.cacheHitRate,U=D===void 0?"—":`${(D*100).toFixed(1)}%`,K=B===void 0?"—":`${(B*100).toFixed(1)}%`,V=(g)=>{b(g);try{localStorage.setItem("basalt.contextSidebar.tab",g)}catch{}},X=[{value:"breakdown",label:"构成"},{value:"tools",label:n("span",{className:"inline-flex items-center gap-1",children:["工具",c&&e("span",{className:"text-[10px] text-faint tabular-nums",children:c.tools.length})]})},{value:"todos",label:n("span",{className:"inline-flex items-center gap-1",children:["待办",t.session.todos.length>0&&e("span",{className:"text-[10px] text-faint tabular-nums",children:t.session.todos.length})]})},{value:"raw",label:"原始消息"}],G=n("div",{className:"px-3.5 pt-1 pb-3",children:[n("div",{className:"flex items-start justify-between gap-3",children:[n("div",{children:[e("div",{className:"text-[10.5px] font-medium uppercase tracking-wider text-faint",children:"上下文用量"}),n("div",{className:"mt-0.5 flex items-baseline gap-1.5",children:[e("span",{className:"font-mono text-xl font-semibold tabular-nums text-ink",children:c?w.totalTokens.toLocaleString():"—"}),n("span",{className:"font-mono text-xs text-dim",children:["/ ",c?.usableWindow.toLocaleString()??"—"]})]})]}),e(m,{tone:C==="overflow"||C==="near_limit"?"danger":C==="sealing"?"warning":"success",children:C==="overflow"?"预计超限":C==="near_limit"?"接近上限":C==="sealing"?"接近封存":"正常"})]}),w.percent!==null&&e("meter",{className:"sr-only","aria-label":"可用上下文窗口占比",min:0,max:100,value:Math.min(100,w.percent)}),e("div",{"aria-hidden":!0,className:a("relative mt-2.5 h-2 w-full overflow-hidden rounded-full bg-raised",!c&&"animate-pulse"),children:e("div",{className:"h-full rounded-full bg-accent transition-[width] duration-500 ease-out-quint",style:{width:`${Math.min(100,w.percent??0)}%`}})}),n("div",{className:"mt-2 flex items-center justify-between text-[11px]",children:[e("span",{className:"text-dim",children:w.percent===null?"暂无窗口数据":`${w.percent.toFixed(1)}% 可用窗口`}),n("span",{className:"text-faint",children:["总窗口 ",c?.contextWindow.toLocaleString()??"—"," · 80% 封存 · 97% 折叠"]})]}),c?.usage&&(c.usage.input>0||c.usage.output>0||c.usage.cacheRead>0||c.usage.cacheWrite>0||c.usage.cost>0)&&e("div",{className:"mt-3 grid grid-cols-2 gap-2",children:[["Input",c.usage.input.toLocaleString()],["Output",c.usage.output.toLocaleString()],["缓存命中 当前 / 平均",`${U} / ${K}`],["平均 TPS",c.usage.tps!==void 0?`${c.usage.tps.toFixed(1)} tok/s`:"—"]].map(([g,E])=>e(re,{label:g,value:E},g))})]});return n(p,{children:[G,e("div",{className:"px-3 py-2",children:e(s,{value:x,onChange:V,options:X,className:"w-full grid grid-cols-4"})}),n("div",{className:"min-h-0 flex-1 overflow-y-auto px-3 py-3",children:[v&&!c&&n("div",{role:"alert",className:"flex items-center justify-between rounded-xl border border-danger/30 bg-danger/8 px-3 py-2 text-xs text-danger",children:[e("span",{children:"上下文加载失败。"}),e(l,{size:"sm",variant:"ghost",onClick:()=>I((g)=>g+1),children:"重试"})]}),e("div",{children:!H?e(z,{}):n(p,{children:[x==="raw"&&e(A,{entries:t.entries}),x==="todos"&&e(j,{todos:t.session.todos}),x==="breakdown"&&(c?e(L,{items:w.items}):!v?e(z,{}):null),x==="tools"&&(c?e(F,{tools:c.tools??[]}):!v?e(z,{}):null)]})},x)]})]})}export{Fe as ContextSidebar};
|
|
4
|
+
`),size:"icon-xs",label:"复制全部原始 JSON",className:"hover:bg-raised text-faint hover:text-ink"})]}),c.map((f)=>e(ae,{entry:f},f.seq)),b&&n("div",{ref:x,className:s("surface.subtle","flex items-center justify-between bg-panel/40 px-3 py-2 text-xs text-faint"),children:[n("span",{children:["已显示 ",c.length," / ",t.entries.length," 条"]}),n("div",{className:"flex items-center gap-1.5",children:[e(l,{size:"sm",variant:"ghost",onClick:()=>u((f)=>Math.min(t.entries.length,f+M)),children:"加载更多"}),e(l,{size:"sm",variant:"ghost",onClick:()=>u(t.entries.length),children:"显示全部"})]})]})]})}var ae=q(function(l){let{CopyButton:m,style:s,useTheme:a}=y();a();let d=Ll(l.entry),u=_(()=>Rl(l.entry.time),[l.entry.time]);return e(S,{header:n(p,{children:[n("span",{className:"shrink-0 font-mono text-[10.5px] tabular-nums text-faint",children:["#",l.entry.seq]}),e("span",{className:s("control.badge","shrink-0 font-medium text-[10px]",te[d.tone]),children:d.badge}),e("span",{className:"min-w-0 flex-1 truncate text-ink",children:d.title}),d.meta&&e("span",{className:s("control.badge","shrink-0 font-mono text-[10px] text-faint"),children:d.meta}),e("span",{className:"shrink-0 font-mono text-[10.5px] tabular-nums text-faint",children:u})]}),children:n("div",{className:"space-y-2",children:[n("div",{className:"flex items-center justify-between text-[11px] text-faint",children:[n("span",{className:"font-mono",children:[l.entry.type," · #",l.entry.seq]}),e(m,{text:()=>JSON.stringify(l.entry,null,2),size:"icon-xs",label:"复制此条 JSON",className:"bg-raised/60 hover:bg-raised text-faint hover:text-ink"})]}),e(se,{entry:l.entry})]})})});function se(t){let{style:l,useTheme:m}=y();m();let s=t.entry;if(s.type==="user")return n("div",{className:"space-y-2",children:[s.text&&e("pre",{className:l("surface.subtle","max-h-72 overflow-y-auto p-2.5 font-sans text-xs leading-relaxed text-ink whitespace-pre-wrap break-words [overflow-wrap:anywhere]"),children:ti(s.text)}),s.attachments&&s.attachments.length>0&&n("div",{className:"space-y-1",children:[n("div",{className:"text-[10.5px] font-medium text-faint",children:["附件(",s.attachments.length,")"]}),e("div",{className:"flex flex-wrap gap-1.5",children:s.attachments.map((a,d)=>{let u=a.kind==="image"?Math.floor(a.data.length*0.75):a.data.length;return n("div",{className:l("surface.subtle","inline-flex items-center gap-1.5 px-2 py-1 text-[11px]"),children:[e("span",{className:l("control.badge","text-[10px] text-faint"),children:a.kind==="image"?"图片":a.kind==="path"?"路径":"文本"}),e("span",{className:"max-w-40 truncate font-medium text-ink",children:a.name}),n("span",{className:"font-mono text-[10px] text-faint",children:[a.mimeType," · ",Xs(u)]})]},`${a.name}-${d}`)})})]}),s.notices&&s.notices.length>0&&n("div",{className:"space-y-1",children:[n("div",{className:"text-[10.5px] font-medium text-faint",children:["通知来源(",s.notices.length,")"]}),s.notices.map((a)=>n("div",{className:l("surface.subtle","flex items-center justify-between px-2.5 py-1.5 font-mono text-[11px]"),children:[n("span",{className:"truncate text-ink",children:[a.sourceKind,"/",a.sourceID]}),e("span",{className:"text-faint",children:a.state})]},a.dedupeKey))]})]});if(s.type==="assistant")return n("div",{className:"space-y-2",children:[n("div",{className:"font-mono text-[11px] text-faint",children:["模型:",s.model]}),s.error&&e("div",{className:"rounded-lg border border-danger/30 bg-danger/8 px-2.5 py-2 text-xs text-danger",children:s.error}),s.parts.map((a,d)=>{if(a.type==="thinking")return n("div",{className:l("surface.subtle","p-2.5 space-y-1"),children:[e("div",{className:"text-[10.5px] font-medium text-faint",children:"思考"}),e("pre",{className:"max-h-60 overflow-y-auto font-sans text-xs italic leading-relaxed text-dim whitespace-pre-wrap break-words [overflow-wrap:anywhere]",children:ti(a.text)})]},`thinking-${d}`);if(a.type==="text")return n("div",{className:l("surface.subtle","p-2.5 space-y-1"),children:[e("div",{className:"text-[10.5px] font-medium text-faint",children:"回复"}),e("pre",{className:"max-h-60 overflow-y-auto font-sans text-xs leading-relaxed text-ink whitespace-pre-wrap break-words [overflow-wrap:anywhere]",children:ti(a.text)})]},`text-${d}`);return n("div",{className:l("surface.subtle","p-2.5 space-y-1.5"),children:[n("div",{className:"flex items-center justify-between gap-2 text-[11px]",children:[n("span",{className:"font-mono font-medium text-ink",children:["工具调用 · ",a.name]}),e("span",{className:"truncate font-mono text-[10px] text-faint",children:a.id})]}),e("div",{className:"max-h-60 overflow-y-auto text-dim",children:e(T,{code:Ni(JSON.stringify(a.input,Ks,2)),lang:"json"})})]},a.id||`tool-${d}`)})]});if(s.type==="tool_result")return n("div",{className:"space-y-2",children:[n("div",{className:"flex flex-wrap items-center gap-2 font-mono text-[11px] text-faint",children:[e("span",{className:"text-ink",children:s.name}),e("span",{children:"·"}),e("span",{className:"truncate",children:s.callID}),e("span",{className:l("control.badge","ml-auto font-sans text-[10px]",s.isError?"bg-danger/15 text-danger":"text-dim"),children:s.isError?"执行失败":"执行完成"})]}),s.images&&s.images.length>0&&e("div",{className:"flex flex-wrap gap-1.5",children:s.images.map((a,d)=>n("span",{className:l("surface.subtle","px-2 py-1 font-mono text-[10.5px] text-faint"),children:["图片 #",d+1," · ",a.mimeType," · ",Xs(Math.floor(a.data.length*0.75))]},`${a.mimeType}-${d}`))}),es(s.output)?e("pre",{className:l("surface.subtle","max-h-72 overflow-y-auto p-2.5 font-mono text-[11px] leading-relaxed whitespace-pre-wrap break-words [overflow-wrap:anywhere]",s.isError?"text-danger":"text-dim"),children:ti(s.output)}):e("p",{className:"py-1 text-faint",children:"(无文本输出)"})]});return e("pre",{className:l("surface.subtle","max-h-72 overflow-y-auto p-2.5 font-mono text-[11px] leading-relaxed text-dim whitespace-pre-wrap break-words [overflow-wrap:anywhere]"),children:Il(s)})}function j(t){let{cn:l,style:m,useTheme:s}=y();if(s(),!t.todos.length)return e(N,{children:"暂无待办。"});return e("ul",{className:"space-y-1.5",children:t.todos.map((a)=>n("li",{className:m("surface.interactive","flex items-start gap-2.5 px-3 py-2 text-xs"),children:[n("span",{className:l("mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full border transition-colors duration-300",a.status==="completed"&&"border-success bg-success text-panel",a.status==="in_progress"&&"border-accent",a.status==="pending"&&"border-line-strong"),children:[a.status==="completed"&&e(Z,{className:"size-2.5 animate-pop",strokeWidth:3.5}),a.status==="in_progress"&&e("span",{className:"size-1.5 animate-pulse rounded-full bg-accent"})]}),e("span",{className:l("min-w-0 flex-1 break-words leading-relaxed [overflow-wrap:anywhere]",a.status==="completed"&&"text-faint line-through decoration-faint/60",a.status==="in_progress"&&"font-medium text-ink",a.status==="pending"&&"text-dim"),children:a.content})]},`${a.status}-${a.content}`))})}function F(t){let{cn:l,style:m,useTheme:s}=y();s();let[a,d]=r("all"),u=_(()=>t.tools.filter((c)=>c.deferred).length,[t.tools]),x=t.tools.length-u,b=_(()=>{if(a==="deferred")return t.tools.filter((c)=>c.deferred);if(a==="active")return t.tools.filter((c)=>!c.deferred);return t.tools},[t.tools,a]);if(!t.tools.length)return e(N,{children:"当前会话没有可用工具。"});return n("div",{className:"space-y-2",children:[u>0&&n("div",{className:"flex items-center gap-1 text-[11px]",children:[n("button",{type:"button",onClick:()=>d("all"),className:l("rounded-lg px-2 py-1 transition-colors",a==="all"?"bg-raised font-medium text-ink":"text-faint hover:text-dim"),children:["全部 (",t.tools.length,")"]}),n("button",{type:"button",onClick:()=>d("active"),className:l("rounded-lg px-2 py-1 transition-colors",a==="active"?"bg-raised font-medium text-ink":"text-faint hover:text-dim"),children:["常驻 (",x,")"]}),n("button",{type:"button",onClick:()=>d("deferred"),className:l("rounded-lg px-2 py-1 transition-colors",a==="deferred"?"bg-raised font-medium text-ink":"text-faint hover:text-dim"),children:["延迟加载 (",u,")"]})]}),e("div",{className:"space-y-1.5",children:b.map((c)=>e(ne,{tool:c},`${c.group}-${c.name}`))})]})}function ne(t){let{style:l,useTheme:m}=y();return m(),e(S,{header:n("div",{className:"flex min-w-0 flex-1 items-center gap-1.5 truncate font-mono text-ink",children:[e("span",{className:"truncate",children:t.tool.name}),t.tool.group&&e("span",{className:l("control.badge","font-sans text-[10px]"),children:t.tool.group}),t.tool.deferred&&e("span",{className:l("control.badge","font-sans text-[10px]"),children:"延迟加载"})]}),children:e(ie,{tool:t.tool})})}function ie(t){let{CopyButton:l,style:m,useTheme:s}=y();s();let a=_(()=>JSON.stringify(t.tool.schema,null,2),[t.tool.schema]);return n(p,{children:[t.tool.deferred&&e("div",{className:m("surface.subtle","mb-2 px-2.5 py-1.5 text-[11px] text-faint"),children:"延迟加载:此工具默认以精简描述挂载,模型通过 toolsearch 取回定义后才向上下文注入完整参数 Schema。"}),t.tool.description&&e("pre",{className:"mb-2 max-h-60 overflow-y-auto font-sans text-xs leading-relaxed text-dim whitespace-pre-wrap break-words [overflow-wrap:anywhere]",children:Ni(t.tool.description)}),n("div",{className:m("surface.subtle","group/schema relative overflow-hidden rounded-lg p-2.5"),children:[e("div",{className:"absolute right-1.5 top-1.5 z-10",children:e(l,{text:a,size:"icon-xs",className:"bg-raised/60 hover:bg-raised text-faint hover:text-ink backdrop-blur-sm"})}),e("div",{className:"max-h-72 overflow-y-auto pr-6 text-dim",children:e(T,{code:Ni(a),lang:"json"})})]})]})}function oe(){try{let t=localStorage.getItem("basalt.contextSidebar.tab");if(t==="tools"||t==="todos"||t==="raw")return t}catch{}return"breakdown"}function re(t){let{style:l,useTheme:m}=y();return m(),n("div",{className:l("surface.panel","bg-panel/70 px-3 py-2"),children:[e("div",{className:"text-[10px] font-medium uppercase tracking-wider text-faint",children:t.label}),e("div",{className:"mt-0.5 truncate font-mono text-xs font-semibold tabular-nums text-ink",children:t.value})]})}function Fe(t){let{Button:l,StatusChip:m,Segmented:s,cn:a,style:d,useTheme:u}=y();u();let[x,b]=r(oe),[c,f]=r(()=>br.get(t.session.id)),[v,k]=r(!1),[h,I]=r(0),[H,J]=r(!1);o(()=>{let g=setTimeout(()=>kn(()=>J(!0)),140);return()=>clearTimeout(g)},[]),o(()=>{let g=br.get(t.session.id);if(g)f(g);return ts((E,Q)=>{if(E===t.session.id)kn(()=>f(Q))})},[t.session.id]),o(()=>{let g=!0;return k(!1),ns(t.connection,t.session.id,`${t.session.updated}:${t.entries.length}`,h>0).then((E)=>{if(g)kn(()=>f(E))},()=>{if(g)k(!0)}),()=>{g=!1}},[t.connection,t.session.id,t.session.updated,t.entries.length,h]);let w=Mi(c?.items??[],c?.usableWindow,c?.calibratedTokens,c?.lastInputTokens,c?.hasPendingOutput),C=Pi(w.percent),D=c?.lastCacheHitRate,B=c?.usage?.cacheHitRate,U=D===void 0?"—":`${(D*100).toFixed(1)}%`,K=B===void 0?"—":`${(B*100).toFixed(1)}%`,V=(g)=>{b(g);try{localStorage.setItem("basalt.contextSidebar.tab",g)}catch{}},X=[{value:"breakdown",label:"构成"},{value:"tools",label:n("span",{className:"inline-flex items-center gap-1",children:["工具",c&&e("span",{className:"text-[10px] text-faint tabular-nums",children:c.tools.length})]})},{value:"todos",label:n("span",{className:"inline-flex items-center gap-1",children:["待办",t.session.todos.length>0&&e("span",{className:"text-[10px] text-faint tabular-nums",children:t.session.todos.length})]})},{value:"raw",label:"原始消息"}],G=n("div",{className:"px-3.5 pt-1 pb-3",children:[n("div",{className:"flex items-start justify-between gap-3",children:[n("div",{children:[e("div",{className:"text-[10.5px] font-medium uppercase tracking-wider text-faint",children:"上下文用量"}),n("div",{className:"mt-0.5 flex items-baseline gap-1.5",children:[e("span",{className:"font-mono text-xl font-semibold tabular-nums text-ink",children:c?w.totalTokens.toLocaleString():"—"}),n("span",{className:"font-mono text-xs text-dim",children:["/ ",c?.usableWindow.toLocaleString()??"—"]})]})]}),e(m,{tone:C==="overflow"||C==="near_limit"?"danger":C==="sealing"?"warning":"success",children:C==="overflow"?"预计超限":C==="near_limit"?"接近上限":C==="sealing"?"接近封存":"正常"})]}),w.percent!==null&&e("meter",{className:"sr-only","aria-label":"可用上下文窗口占比",min:0,max:100,value:Math.min(100,w.percent)}),e("div",{"aria-hidden":!0,className:a("relative mt-2.5 h-2 w-full overflow-hidden rounded-full bg-raised",!c&&"animate-pulse"),children:e("div",{className:"h-full rounded-full bg-accent transition-[width] duration-500 ease-out-quint",style:{width:`${Math.min(100,w.percent??0)}%`}})}),n("div",{className:"mt-2 flex items-center justify-between text-[11px]",children:[e("span",{className:"text-dim",children:w.percent===null?"暂无窗口数据":`${w.percent.toFixed(1)}% 可用窗口`}),n("span",{className:"text-faint",children:["总窗口 ",c?.contextWindow.toLocaleString()??"—"," · 80% 封存 · 97% 折叠"]})]}),c?.usage&&(c.usage.input>0||c.usage.output>0||c.usage.cacheRead>0||c.usage.cacheWrite>0||c.usage.cost>0)&&e("div",{className:"mt-3 grid grid-cols-2 gap-2",children:[["Input",c.usage.input.toLocaleString()],["Output",c.usage.output.toLocaleString()],["缓存命中 当前 / 平均",`${U} / ${K}`],["平均 TPS",c.usage.tps!==void 0?`${c.usage.tps.toFixed(1)} tok/s`:"—"]].map(([g,E])=>e(re,{label:g,value:E},g))})]});return n(p,{children:[G,e("div",{className:"px-3 py-2",children:e(s,{value:x,onChange:V,options:X,className:"w-full grid grid-cols-4"})}),n("div",{className:"min-h-0 flex-1 overflow-y-auto px-3 py-3",children:[v&&!c&&n("div",{role:"alert",className:"flex items-center justify-between rounded-xl border border-danger/30 bg-danger/8 px-3 py-2 text-xs text-danger",children:[e("span",{children:"上下文加载失败。"}),e(l,{size:"sm",variant:"ghost",onClick:()=>I((g)=>g+1),children:"重试"})]}),e("div",{children:!H?e(z,{}):n(p,{children:[x==="raw"&&e(A,{entries:t.entries}),x==="todos"&&e(j,{todos:t.session.todos}),x==="breakdown"&&(c?e(L,{items:w.items}):!v?e(z,{}):null),x==="tools"&&(c?e(F,{tools:c.tools??[]}):!v?e(z,{}):null)]})},x)]})]})}export{Fe as ContextSidebar};
|
|
Binary file
|
|
Binary file
|