@bkm016/basalt 0.1.15 → 0.1.17
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-mfb3dgs8.js → chunk-1c9nr9rs.js} +1 -1
- package/{chunk-z9p6s986.js → chunk-4hf0r9hv.js} +3 -3
- package/{chunk-p886jr17.js → chunk-6ae9810t.js} +2 -2
- package/{chunk-6hx9y86d.js → chunk-6exa9fp7.js} +1 -1
- package/{chunk-tszctb17.js → chunk-8jn0yax5.js} +26 -26
- package/{chunk-xq74x4gc.js → chunk-8r4baw9e.js} +1 -1
- package/{chunk-5n1qra6k.js → chunk-9jtvj8md.js} +265 -256
- package/{chunk-qjnx4fsn.js → chunk-b350b01x.js} +3 -3
- package/{chunk-59hg9a84.js → chunk-bv96b8q7.js} +1 -1
- package/{chunk-343jsm46.js → chunk-e8x8zwkg.js} +1 -1
- package/{chunk-k38jaz6c.js → chunk-ehnc8g6v.js} +2 -2
- package/{chunk-kcn05erf.js → chunk-fzftb4n2.js} +3 -3
- package/{chunk-0rasqm8y.js → chunk-nrdszs0g.js} +2 -2
- package/{chunk-qs161f2q.js → chunk-p78wde92.js} +1 -1
- package/{chunk-39mh7h58.js → chunk-pna1wh02.js} +1 -1
- package/{chunk-edcf97ka.js → chunk-q6tgpaf3.js} +1 -1
- package/{chunk-qe76naq9.js → chunk-rqn67tm8.js} +1 -1
- package/{chunk-en7z6ne5.js → chunk-v9ttcf6r.js} +1 -1
- package/{chunk-9v3b7jjv.js → chunk-vv9csar7.js} +1 -1
- package/{chunk-81x8r8w4.js → chunk-xba6fr5v.js} +1 -1
- package/{chunk-03wzwnn6.js → chunk-ypxs8djn.js} +1 -1
- package/compiled.js +4 -4
- package/package.json +1 -1
- package/ui-test-worker.js +2 -2
- package/web/{chunk-hdtvrh0f.js → chunk-013et20n.js} +2 -2
- package/web/chunk-013et20n.js.br +0 -0
- package/web/chunk-013et20n.js.gz +0 -0
- package/web/chunk-0ernj3c0.js +1 -0
- package/web/chunk-0ernj3c0.js.br +0 -0
- package/web/chunk-0ernj3c0.js.gz +0 -0
- package/web/chunk-0j65yg1p.js +1 -0
- package/web/chunk-0j65yg1p.js.br +0 -0
- package/web/chunk-0j65yg1p.js.gz +0 -0
- package/web/chunk-0khcpaa8.js +1 -0
- package/web/chunk-0khcpaa8.js.br +0 -0
- package/web/chunk-0khcpaa8.js.gz +0 -0
- package/web/chunk-0wbdd74r.js +1 -0
- package/web/chunk-0wbdd74r.js.br +2 -0
- package/web/chunk-0wbdd74r.js.gz +0 -0
- package/web/chunk-1f2wvhq9.js +1 -0
- package/web/chunk-1f2wvhq9.js.br +0 -0
- package/web/chunk-1f2wvhq9.js.gz +0 -0
- package/web/{chunk-7frnjms9.js → chunk-1q2kmv35.js} +18 -18
- package/web/chunk-1q2kmv35.js.br +0 -0
- package/web/chunk-1q2kmv35.js.gz +0 -0
- package/web/{chunk-k4qrqmdk.js → chunk-1tfrm3pk.js} +2 -2
- package/web/chunk-1tfrm3pk.js.br +0 -0
- package/web/chunk-1tfrm3pk.js.gz +0 -0
- package/web/chunk-2qt5fy5n.js +1 -0
- package/web/chunk-2qt5fy5n.js.br +0 -0
- package/web/chunk-2qt5fy5n.js.gz +0 -0
- package/web/chunk-2sxtb709.js +1 -0
- package/web/chunk-2sxtb709.js.br +0 -0
- package/web/chunk-2sxtb709.js.gz +0 -0
- package/web/chunk-2wrwm0qe.js +1 -0
- package/web/chunk-2wrwm0qe.js.br +0 -0
- package/web/chunk-2wrwm0qe.js.gz +0 -0
- package/web/{chunk-251yw6f2.js → chunk-2wwj27b9.js} +3 -3
- package/web/chunk-2wwj27b9.js.br +0 -0
- package/web/chunk-2wwj27b9.js.gz +0 -0
- package/web/chunk-33mmrjdp.js +1 -0
- package/web/chunk-33mmrjdp.js.br +2 -0
- package/web/chunk-33mmrjdp.js.gz +0 -0
- package/web/chunk-33tb7q04.js +2 -0
- package/web/chunk-33tb7q04.js.br +0 -0
- package/web/chunk-33tb7q04.js.gz +0 -0
- package/web/chunk-3txb4sha.js +1 -0
- package/web/chunk-3txb4sha.js.br +0 -0
- package/web/chunk-3txb4sha.js.gz +0 -0
- package/web/{chunk-t78qm9gs.js → chunk-3xgfsx7y.js} +2 -2
- package/web/chunk-3xgfsx7y.js.br +0 -0
- package/web/chunk-3xgfsx7y.js.gz +0 -0
- package/web/chunk-40jka4r7.js +2 -0
- package/web/chunk-40jka4r7.js.br +0 -0
- package/web/chunk-40jka4r7.js.gz +0 -0
- package/web/{chunk-vwv6pqy7.js → chunk-41vh5n86.js} +1 -1
- package/web/chunk-41vh5n86.js.br +0 -0
- package/web/chunk-41vh5n86.js.gz +0 -0
- package/web/chunk-4wd9r73y.js.br +0 -0
- package/web/chunk-4wd9r73y.js.gz +0 -0
- package/web/chunk-5kz048x3.js +2 -0
- package/web/chunk-5kz048x3.js.br +0 -0
- package/web/chunk-5kz048x3.js.gz +0 -0
- package/web/chunk-5mbz8yj9.js +3 -0
- package/web/chunk-5mbz8yj9.js.br +0 -0
- package/web/chunk-5mbz8yj9.js.gz +0 -0
- package/web/chunk-6024wfxb.js +30 -0
- package/web/chunk-6024wfxb.js.br +0 -0
- package/web/chunk-6024wfxb.js.gz +0 -0
- package/web/chunk-6ey4c6gw.js +2 -0
- package/web/chunk-6ey4c6gw.js.br +0 -0
- package/web/chunk-6ey4c6gw.js.gz +0 -0
- package/web/chunk-6q3p851n.js +1 -0
- package/web/chunk-6q3p851n.js.br +2 -0
- package/web/chunk-6q3p851n.js.gz +0 -0
- package/web/{chunk-2tm4xe0j.js → chunk-74g3wh08.js} +2 -2
- package/web/chunk-74g3wh08.js.br +0 -0
- package/web/chunk-74g3wh08.js.gz +0 -0
- package/web/{chunk-ea6b8b50.js → chunk-78akzkgs.js} +12 -12
- package/web/chunk-78akzkgs.js.br +0 -0
- package/web/chunk-78akzkgs.js.gz +0 -0
- package/web/chunk-7ck99bsp.js +62 -0
- package/web/chunk-7ck99bsp.js.br +0 -0
- package/web/chunk-7ck99bsp.js.gz +0 -0
- package/web/chunk-7fjbyns9.js +1 -0
- package/web/chunk-7fjbyns9.js.br +0 -0
- package/web/chunk-7fjbyns9.js.gz +0 -0
- package/web/chunk-7n6b2xra.js +21 -0
- package/web/chunk-7n6b2xra.js.br +0 -0
- package/web/chunk-7n6b2xra.js.gz +0 -0
- package/web/chunk-7p4mcqkd.js +78 -0
- package/web/chunk-7p4mcqkd.js.br +0 -0
- package/web/chunk-7p4mcqkd.js.gz +0 -0
- package/web/chunk-7ztwkhg5.js +1 -0
- package/web/chunk-7ztwkhg5.js.br +0 -0
- package/web/chunk-7ztwkhg5.js.gz +0 -0
- package/web/{chunk-4q2jtvwn.js → chunk-823etvc3.js} +19 -19
- package/web/chunk-823etvc3.js.br +0 -0
- package/web/chunk-823etvc3.js.gz +0 -0
- package/web/{chunk-mv9q8jrm.js → chunk-8ec53vjd.js} +1 -1
- package/web/chunk-8ec53vjd.js.br +0 -0
- package/web/chunk-8ec53vjd.js.gz +0 -0
- package/web/chunk-8g239029.js.br +0 -0
- package/web/chunk-8g239029.js.gz +0 -0
- package/web/{chunk-wfgrdabk.js → chunk-8g55ytgz.js} +1 -1
- package/web/chunk-8g55ytgz.js.br +0 -0
- package/web/chunk-8g55ytgz.js.gz +0 -0
- package/web/chunk-8nxjthxc.js +1 -0
- package/web/chunk-8nxjthxc.js.br +0 -0
- package/web/chunk-8nxjthxc.js.gz +0 -0
- package/web/chunk-8q76yd76.js +291 -0
- package/web/chunk-8q76yd76.js.br +0 -0
- package/web/chunk-8q76yd76.js.gz +0 -0
- package/web/chunk-9kbrjmtz.js +1 -0
- package/web/chunk-9kbrjmtz.js.br +0 -0
- package/web/chunk-9kbrjmtz.js.gz +0 -0
- package/web/chunk-9s4bh6qm.js +40 -0
- package/web/chunk-9s4bh6qm.js.br +0 -0
- package/web/chunk-9s4bh6qm.js.gz +0 -0
- package/web/chunk-9v1f6yc8.js.br +0 -0
- package/web/chunk-9v1f6yc8.js.gz +0 -0
- package/web/{chunk-a205cj09.js → chunk-9vf3zy3d.js} +2 -2
- package/web/chunk-9vf3zy3d.js.br +0 -0
- package/web/chunk-9vf3zy3d.js.gz +0 -0
- package/web/{chunk-yzmrbssn.js → chunk-a449xjq6.js} +6 -6
- package/web/chunk-a449xjq6.js.br +0 -0
- package/web/chunk-a449xjq6.js.gz +0 -0
- package/web/chunk-ad6x47yy.js.br +0 -0
- package/web/chunk-ad6x47yy.js.gz +0 -0
- package/web/chunk-b05eay33.js +1 -0
- package/web/chunk-b05eay33.js.br +0 -0
- package/web/chunk-b05eay33.js.gz +0 -0
- package/web/{chunk-dgepxev9.js → chunk-bdypt5mj.js} +55 -55
- package/web/chunk-bdypt5mj.js.br +0 -0
- package/web/chunk-bdypt5mj.js.gz +0 -0
- package/web/chunk-bvyjy17t.js +14 -0
- package/web/chunk-bvyjy17t.js.br +0 -0
- package/web/chunk-bvyjy17t.js.gz +0 -0
- package/web/{chunk-7zfqppsx.js → chunk-ccy2q2z0.js} +2 -2
- package/web/chunk-ccy2q2z0.js.br +0 -0
- package/web/chunk-ccy2q2z0.js.gz +0 -0
- package/web/{chunk-k3ah0513.js → chunk-ceg13tma.js} +2 -2
- package/web/chunk-ceg13tma.js.br +0 -0
- package/web/chunk-ceg13tma.js.gz +0 -0
- package/web/{chunk-bzdn9sxz.js → chunk-ch60a61d.js} +2 -2
- package/web/chunk-ch60a61d.js.br +0 -0
- package/web/chunk-ch60a61d.js.gz +0 -0
- package/web/chunk-czvdg0c5.js +1 -0
- package/web/chunk-czvdg0c5.js.br +0 -0
- package/web/chunk-czvdg0c5.js.gz +0 -0
- package/web/chunk-d18r4m14.js.br +0 -0
- package/web/chunk-d18r4m14.js.gz +0 -0
- package/web/chunk-dmqtdeb4.js.br +0 -0
- package/web/chunk-dmqtdeb4.js.gz +0 -0
- package/web/chunk-drr7mqg2.js +1 -0
- package/web/chunk-drr7mqg2.js.br +0 -0
- package/web/chunk-drr7mqg2.js.gz +0 -0
- package/web/{chunk-3zs2v6b4.js → chunk-dsa5m3h6.js} +34 -34
- package/web/chunk-dsa5m3h6.js.br +0 -0
- package/web/chunk-dsa5m3h6.js.gz +0 -0
- package/web/chunk-dww3grm3.js +24 -0
- package/web/chunk-dww3grm3.js.br +0 -0
- package/web/chunk-dww3grm3.js.gz +0 -0
- package/web/chunk-e187gt5x.js +1 -0
- package/web/chunk-e187gt5x.js.br +0 -0
- package/web/chunk-e187gt5x.js.gz +0 -0
- package/web/{chunk-pf65cank.js → chunk-emxa4wv3.js} +2 -2
- package/web/chunk-emxa4wv3.js.br +0 -0
- package/web/chunk-emxa4wv3.js.gz +0 -0
- package/web/{chunk-6x1hfjb9.js → chunk-ey0zwvbx.js} +1 -1
- package/web/chunk-ey0zwvbx.js.br +0 -0
- package/web/chunk-ey0zwvbx.js.gz +0 -0
- package/web/chunk-ey14knbn.js +2 -0
- package/web/chunk-ey14knbn.js.br +0 -0
- package/web/chunk-ey14knbn.js.gz +0 -0
- package/web/chunk-fba06jm8.js +1132 -0
- package/web/chunk-fba06jm8.js.br +0 -0
- package/web/chunk-fba06jm8.js.gz +0 -0
- package/web/chunk-fh56vgfx.js +39 -0
- package/web/chunk-fh56vgfx.js.br +0 -0
- package/web/chunk-fh56vgfx.js.gz +0 -0
- package/web/chunk-ft05x3my.js +169 -0
- package/web/chunk-ft05x3my.js.br +0 -0
- package/web/chunk-ft05x3my.js.gz +0 -0
- package/web/chunk-fzmrnh17.js +303 -0
- package/web/chunk-fzmrnh17.js.br +0 -0
- package/web/chunk-fzmrnh17.js.gz +0 -0
- package/web/{chunk-jdx7qp2w.js → chunk-gbt7asd7.js} +2 -2
- package/web/chunk-gbt7asd7.js.br +0 -0
- package/web/chunk-gbt7asd7.js.gz +0 -0
- package/web/chunk-gh9fkn3t.js +1 -0
- package/web/chunk-gh9fkn3t.js.br +2 -0
- package/web/chunk-gh9fkn3t.js.gz +0 -0
- package/web/{chunk-sd3cdqcm.js → chunk-h1syyjqq.js} +2 -2
- package/web/chunk-h1syyjqq.js.br +0 -0
- package/web/chunk-h1syyjqq.js.gz +0 -0
- package/web/{chunk-te15yhn5.js → chunk-h7byk4z3.js} +12 -12
- package/web/chunk-h7byk4z3.js.br +0 -0
- package/web/chunk-h7byk4z3.js.gz +0 -0
- package/web/chunk-hby0hkv4.js +1 -0
- package/web/chunk-hby0hkv4.js.br +0 -0
- package/web/chunk-hby0hkv4.js.gz +0 -0
- package/web/chunk-hjvsp2yx.js +1 -0
- package/web/chunk-hjvsp2yx.js.br +0 -0
- package/web/chunk-hjvsp2yx.js.gz +0 -0
- package/web/chunk-hp167dbv.js.br +0 -0
- package/web/chunk-hp167dbv.js.gz +0 -0
- package/web/{chunk-t2v01k4z.js → chunk-hpjzy5ww.js} +1 -1
- package/web/chunk-hpjzy5ww.js.br +0 -0
- package/web/chunk-hpjzy5ww.js.gz +0 -0
- package/web/{chunk-jx3z63tq.js → chunk-hzfp8kqx.js} +11 -11
- package/web/chunk-hzfp8kqx.js.br +0 -0
- package/web/chunk-hzfp8kqx.js.gz +0 -0
- package/web/{chunk-5d9veaef.js → chunk-j6jjk46a.js} +2 -2
- package/web/chunk-j6jjk46a.js.br +0 -0
- package/web/chunk-j6jjk46a.js.gz +0 -0
- package/web/chunk-j8f0m1dq.js +1 -0
- package/web/chunk-j8f0m1dq.js.br +0 -0
- package/web/chunk-j8f0m1dq.js.gz +0 -0
- package/web/{chunk-qv1w36ja.js → chunk-jc178ad5.js} +2 -2
- package/web/chunk-jc178ad5.js.br +0 -0
- package/web/chunk-jc178ad5.js.gz +0 -0
- package/web/chunk-jcsf0ke5.js +41 -0
- package/web/chunk-jcsf0ke5.js.br +0 -0
- package/web/chunk-jcsf0ke5.js.gz +0 -0
- package/web/chunk-jg43a2xk.js +139 -0
- package/web/chunk-jg43a2xk.js.br +0 -0
- package/web/chunk-jg43a2xk.js.gz +0 -0
- package/web/chunk-jrgdxqtq.js +7 -0
- package/web/chunk-jrgdxqtq.js.br +0 -0
- package/web/chunk-jrgdxqtq.js.gz +0 -0
- package/web/chunk-js8dvtfg.js +2 -0
- package/web/chunk-js8dvtfg.js.br +0 -0
- package/web/chunk-js8dvtfg.js.gz +0 -0
- package/web/chunk-jt0s9qs7.js +1 -0
- package/web/chunk-jt0s9qs7.js.br +0 -0
- package/web/chunk-jt0s9qs7.js.gz +0 -0
- package/web/chunk-jv5faf88.js +34 -0
- package/web/chunk-jv5faf88.js.br +0 -0
- package/web/chunk-jv5faf88.js.gz +0 -0
- package/web/{chunk-6xfbh4z5.js → chunk-k295x81w.js} +79 -79
- package/web/chunk-k295x81w.js.br +0 -0
- package/web/chunk-k295x81w.js.gz +0 -0
- package/web/{chunk-1zwc09e8.js → chunk-k3aa37pw.js} +2 -2
- package/web/chunk-k3aa37pw.js.br +0 -0
- package/web/chunk-k3aa37pw.js.gz +0 -0
- package/web/{chunk-kxr473dw.js → chunk-k6wxwgp1.js} +26 -26
- package/web/chunk-k6wxwgp1.js.br +0 -0
- package/web/chunk-k6wxwgp1.js.gz +0 -0
- package/web/chunk-k9vc7kp2.js +292 -0
- package/web/chunk-k9vc7kp2.js.br +0 -0
- package/web/chunk-k9vc7kp2.js.gz +0 -0
- package/web/chunk-kxyws7q7.js +1 -0
- package/web/chunk-kxyws7q7.js.br +0 -0
- package/web/chunk-kxyws7q7.js.gz +0 -0
- package/web/{chunk-8qzsxg1q.js → chunk-mcgf645h.js} +1 -1
- package/web/chunk-mcgf645h.js.br +4 -0
- package/web/chunk-mcgf645h.js.gz +0 -0
- package/web/{chunk-27cntdyk.js → chunk-mj3tshy8.js} +31 -31
- package/web/chunk-mj3tshy8.js.br +0 -0
- package/web/chunk-mj3tshy8.js.gz +0 -0
- package/web/chunk-mnb2wdvy.js +24 -0
- package/web/chunk-mnb2wdvy.js.br +0 -0
- package/web/chunk-mnb2wdvy.js.gz +0 -0
- package/web/chunk-ndf58dgc.js +1 -0
- package/web/chunk-ndf58dgc.js.br +0 -0
- package/web/chunk-ndf58dgc.js.gz +0 -0
- package/web/chunk-nhpm5nd5.js +2 -0
- package/web/chunk-nhpm5nd5.js.br +0 -0
- package/web/chunk-nhpm5nd5.js.gz +0 -0
- package/web/chunk-nj0cv1cq.js.br +0 -0
- package/web/chunk-nj0cv1cq.js.gz +0 -0
- package/web/{chunk-zf4b8jb9.js → chunk-nwxjdetb.js} +1 -1
- package/web/chunk-nwxjdetb.js.br +0 -0
- package/web/chunk-nwxjdetb.js.gz +0 -0
- package/web/chunk-nyjfcard.js +106 -0
- package/web/chunk-nyjfcard.js.br +0 -0
- package/web/chunk-nyjfcard.js.gz +0 -0
- package/web/chunk-nzey7cpv.js.br +0 -0
- package/web/chunk-nzey7cpv.js.gz +0 -0
- package/web/{chunk-937ndmh1.js → chunk-pcfjcy3a.js} +23 -23
- package/web/chunk-pcfjcy3a.js.br +0 -0
- package/web/chunk-pcfjcy3a.js.gz +0 -0
- package/web/chunk-pry6wdbe.js +1 -0
- package/web/chunk-pry6wdbe.js.br +0 -0
- package/web/chunk-pry6wdbe.js.gz +0 -0
- package/web/chunk-pvahdcgy.js +2 -0
- package/web/chunk-pvahdcgy.js.br +0 -0
- package/web/chunk-pvahdcgy.js.gz +0 -0
- package/web/{chunk-1v6hhgc6.js → chunk-q3njnnef.js} +2 -2
- package/web/chunk-q3njnnef.js.br +0 -0
- package/web/chunk-q3njnnef.js.gz +0 -0
- package/web/chunk-qxvqkkmw.js +1 -0
- package/web/chunk-qxvqkkmw.js.br +0 -0
- package/web/chunk-qxvqkkmw.js.gz +0 -0
- package/web/chunk-qych3sbs.js +1 -0
- package/web/chunk-qych3sbs.js.br +0 -0
- package/web/chunk-qych3sbs.js.gz +0 -0
- package/web/chunk-r1dnh0s8.js.br +0 -0
- package/web/chunk-r1dnh0s8.js.gz +0 -0
- package/web/chunk-r5eakmw6.js.br +0 -0
- package/web/chunk-r5eakmw6.js.gz +0 -0
- package/web/chunk-rbmp2e4b.js +1 -0
- package/web/chunk-rbmp2e4b.js.br +0 -0
- package/web/chunk-rbmp2e4b.js.gz +0 -0
- package/web/chunk-rcre1stj.js +1 -0
- package/web/chunk-rcre1stj.js.br +0 -0
- package/web/chunk-rcre1stj.js.gz +0 -0
- package/web/chunk-rdb6091n.js +89 -0
- package/web/chunk-rdb6091n.js.br +0 -0
- package/web/chunk-rdb6091n.js.gz +0 -0
- package/web/chunk-ryw7xnab.js +1 -0
- package/web/chunk-ryw7xnab.js.br +0 -0
- package/web/chunk-ryw7xnab.js.gz +0 -0
- package/web/{chunk-7wzszsf5.js → chunk-sbbmy02e.js} +2 -2
- package/web/chunk-sbbmy02e.js.br +0 -0
- package/web/chunk-sbbmy02e.js.gz +0 -0
- package/web/{chunk-s0xy00v5.js → chunk-sgbc835w.js} +2 -2
- package/web/chunk-sgbc835w.js.br +0 -0
- package/web/chunk-sgbc835w.js.gz +0 -0
- package/web/chunk-sydy10mb.js +1 -0
- package/web/chunk-sydy10mb.js.br +0 -0
- package/web/chunk-sydy10mb.js.gz +0 -0
- package/web/chunk-t0ywnp5e.js +1 -0
- package/web/chunk-t0ywnp5e.js.br +0 -0
- package/web/chunk-t0ywnp5e.js.gz +0 -0
- package/web/chunk-t6agpn2z.js.br +0 -0
- package/web/chunk-t6agpn2z.js.gz +0 -0
- package/web/{chunk-s6bc73n3.js → chunk-t72jq97z.js} +2 -2
- package/web/chunk-t72jq97z.js.br +0 -0
- package/web/chunk-t72jq97z.js.gz +0 -0
- package/web/{chunk-pa82db2e.js → chunk-tfcc9bcz.js} +3 -3
- package/web/chunk-tfcc9bcz.js.br +0 -0
- package/web/chunk-tfcc9bcz.js.gz +0 -0
- package/web/chunk-v2bvbgfc.js +2 -0
- package/web/chunk-v2bvbgfc.js.br +0 -0
- package/web/chunk-v2bvbgfc.js.gz +0 -0
- package/web/{chunk-n0ezfa12.js → chunk-v7zq4vc9.js} +5 -5
- package/web/chunk-v7zq4vc9.js.br +0 -0
- package/web/chunk-v7zq4vc9.js.gz +0 -0
- package/web/chunk-vh8pkcem.css +1 -0
- package/web/chunk-vh8pkcem.css.br +0 -0
- package/web/chunk-vh8pkcem.css.gz +0 -0
- package/web/chunk-vq3sby7x.js +1 -0
- package/web/chunk-vq3sby7x.js.br +0 -0
- package/web/chunk-vq3sby7x.js.gz +0 -0
- package/web/{chunk-vvvd3grf.js → chunk-vszya05r.js} +2 -2
- package/web/chunk-vszya05r.js.br +0 -0
- package/web/chunk-vszya05r.js.gz +0 -0
- package/web/chunk-was9xf03.js +8 -0
- package/web/chunk-was9xf03.js.br +0 -0
- package/web/chunk-was9xf03.js.gz +0 -0
- package/web/chunk-we1v1829.js +2 -0
- package/web/chunk-we1v1829.js.br +0 -0
- package/web/chunk-we1v1829.js.gz +0 -0
- package/web/chunk-wfa1c8dn.js +1 -0
- package/web/chunk-wfa1c8dn.js.br +0 -0
- package/web/chunk-wfa1c8dn.js.gz +0 -0
- package/web/chunk-wg2exnxe.js +1 -0
- package/web/chunk-wg2exnxe.js.br +2 -0
- package/web/chunk-wg2exnxe.js.gz +0 -0
- package/web/chunk-wvd3zj1m.js +70 -0
- package/web/chunk-wvd3zj1m.js.br +0 -0
- package/web/chunk-wvd3zj1m.js.gz +0 -0
- package/web/chunk-wzmxtr30.js +1 -0
- package/web/chunk-wzmxtr30.js.br +0 -0
- package/web/chunk-wzmxtr30.js.gz +0 -0
- package/web/chunk-x815g7yp.js +1 -0
- package/web/chunk-x815g7yp.js.br +0 -0
- package/web/chunk-x815g7yp.js.gz +0 -0
- package/web/{chunk-ymtq18z6.js → chunk-x8ps0p82.js} +14 -14
- package/web/chunk-x8ps0p82.js.br +0 -0
- package/web/chunk-x8ps0p82.js.gz +0 -0
- package/web/{chunk-5fzmk43v.js → chunk-xea3snym.js} +1 -1
- package/web/chunk-xea3snym.js.br +0 -0
- package/web/chunk-xea3snym.js.gz +0 -0
- package/web/chunk-xet1jjy9.js.br +0 -0
- package/web/chunk-xet1jjy9.js.gz +0 -0
- package/web/{chunk-17wwzrp4.js → chunk-xg4v60m7.js} +1 -1
- package/web/chunk-xg4v60m7.js.br +0 -0
- package/web/chunk-xg4v60m7.js.gz +0 -0
- package/web/chunk-xhr9jrjt.js +89 -0
- package/web/chunk-xhr9jrjt.js.br +0 -0
- package/web/chunk-xhr9jrjt.js.gz +0 -0
- package/web/chunk-xp90g2e7.js +36 -0
- package/web/chunk-xp90g2e7.js.br +0 -0
- package/web/chunk-xp90g2e7.js.gz +0 -0
- package/web/{chunk-hbwxtbq3.js → chunk-xs1g97qa.js} +2 -2
- package/web/chunk-xs1g97qa.js.br +0 -0
- package/web/chunk-xs1g97qa.js.gz +0 -0
- package/web/chunk-xyk1wpr4.js +1 -0
- package/web/chunk-xyk1wpr4.js.br +3 -0
- package/web/chunk-xyk1wpr4.js.gz +0 -0
- package/web/chunk-yavbdwyt.js +1 -0
- package/web/chunk-yavbdwyt.js.br +0 -0
- package/web/chunk-yavbdwyt.js.gz +0 -0
- package/web/chunk-yfnhnsxe.js +4 -0
- package/web/chunk-yfnhnsxe.js.br +0 -0
- package/web/chunk-yfnhnsxe.js.gz +0 -0
- package/web/chunk-yk965yth.js +1 -0
- package/web/chunk-yk965yth.js.br +0 -0
- package/web/chunk-yk965yth.js.gz +0 -0
- package/web/{chunk-25sn840r.js → chunk-ynhcjhsx.js} +2 -2
- package/web/chunk-ynhcjhsx.js.br +0 -0
- package/web/chunk-ynhcjhsx.js.gz +0 -0
- package/web/chunk-ypmm1gts.js +1 -0
- package/web/chunk-ypmm1gts.js.br +0 -0
- package/web/chunk-ypmm1gts.js.gz +0 -0
- package/web/chunk-yssx5a5q.js +1 -0
- package/web/chunk-yssx5a5q.js.br +0 -0
- package/web/chunk-yssx5a5q.js.gz +0 -0
- package/web/chunk-z09emmrb.js.br +0 -0
- package/web/chunk-z09emmrb.js.gz +0 -0
- package/web/chunk-z0a8cnq8.js +1 -0
- package/web/chunk-z0a8cnq8.js.br +0 -0
- package/web/chunk-z0a8cnq8.js.gz +0 -0
- package/web/{chunk-pafw34vg.js → chunk-z1afsvbv.js} +2 -2
- package/web/chunk-z1afsvbv.js.br +0 -0
- package/web/chunk-z1afsvbv.js.gz +0 -0
- package/web/{chunk-fttdbcqv.js → chunk-z1ka8jtd.js} +2 -2
- package/web/chunk-z1ka8jtd.js.br +0 -0
- package/web/chunk-z1ka8jtd.js.gz +0 -0
- package/web/chunk-z7tdzen9.js +1 -0
- package/web/chunk-z7tdzen9.js.br +0 -0
- package/web/chunk-z7tdzen9.js.gz +0 -0
- package/web/{chunk-tvaxyhh0.js → chunk-zbwjj06m.js} +6 -6
- package/web/chunk-zbwjj06m.js.br +0 -0
- package/web/chunk-zbwjj06m.js.gz +0 -0
- package/web/chunk-zd2j189j.js +1 -0
- package/web/chunk-zd2j189j.js.br +0 -0
- package/web/chunk-zd2j189j.js.gz +0 -0
- package/web/chunk-zfgpq4n4.js +120 -0
- package/web/chunk-zfgpq4n4.js.br +0 -0
- package/web/chunk-zfgpq4n4.js.gz +0 -0
- package/web/chunk-zgas56xw.js +1 -0
- package/web/chunk-zgas56xw.js.br +0 -0
- package/web/chunk-zgas56xw.js.gz +0 -0
- package/web/chunk-zkfepf91.js +1 -0
- package/web/chunk-zkfepf91.js.br +0 -0
- package/web/chunk-zkfepf91.js.gz +0 -0
- package/web/icon-1wgy7kzy.svg.br +0 -0
- package/web/icon-1wgy7kzy.svg.gz +0 -0
- package/web/icon.svg.br +0 -0
- package/web/icon.svg.gz +0 -0
- package/web/index.html +11 -1
- package/web/index.html.br +0 -0
- package/web/index.html.gz +0 -0
- package/web/manifest-txf6vfbq.webmanifest.br +0 -0
- package/web/manifest-txf6vfbq.webmanifest.gz +0 -0
- package/web/manifest.webmanifest.br +0 -0
- package/web/manifest.webmanifest.gz +0 -0
- package/web/sw.js +146 -27
- package/web/sw.js.br +0 -0
- package/web/sw.js.gz +0 -0
- package/web/chunk-00swes3c.js +0 -1
- package/web/chunk-01nbc18z.js +0 -2
- package/web/chunk-0e995hjg.js +0 -1
- package/web/chunk-1bhpfsvr.js +0 -36
- package/web/chunk-1y387f45.js +0 -1
- package/web/chunk-3egthz5k.js +0 -2
- package/web/chunk-3f8fjee5.js +0 -2
- package/web/chunk-3fjzgpaw.js +0 -1
- package/web/chunk-3hy2gsgf.js +0 -1
- package/web/chunk-3mgzqbc8.js +0 -1
- package/web/chunk-3yvanftw.js +0 -1
- package/web/chunk-43194184.js +0 -1
- package/web/chunk-43bczb21.js +0 -120
- package/web/chunk-4m9mgdaa.js +0 -1
- package/web/chunk-4tbhxtnm.js +0 -1
- package/web/chunk-50vgq2nk.js +0 -139
- package/web/chunk-57b8j192.js +0 -1
- package/web/chunk-5rwg3qqd.js +0 -169
- package/web/chunk-62gj74fq.js +0 -1
- package/web/chunk-64h7k870.js +0 -1
- package/web/chunk-65ay0j1t.js +0 -39
- package/web/chunk-66164wmv.js +0 -2
- package/web/chunk-6ehecat3.js +0 -1
- package/web/chunk-6s1vjny7.js +0 -24
- package/web/chunk-73941p08.js +0 -1
- package/web/chunk-7jh6zxg3.js +0 -1
- package/web/chunk-7mgwejn4.js +0 -1
- package/web/chunk-7qq1ypvj.js +0 -1
- package/web/chunk-8nm0mghm.js +0 -2
- package/web/chunk-8zg89764.js +0 -1
- package/web/chunk-95gbcs8j.js +0 -1
- package/web/chunk-at0xtfhy.js +0 -1
- package/web/chunk-aw6wg8fe.js +0 -3
- package/web/chunk-b323qea5.js +0 -1
- package/web/chunk-bcx7xges.js +0 -1
- package/web/chunk-cq1f20k6.js +0 -89
- package/web/chunk-dde64qjd.js +0 -1
- package/web/chunk-djnq1w1e.js +0 -21
- package/web/chunk-ed5xfgxb.js +0 -2
- package/web/chunk-ehz9m6g4.js +0 -292
- package/web/chunk-evp6t44y.js +0 -8
- package/web/chunk-eyg28s83.js +0 -1
- package/web/chunk-g7bcntpm.js +0 -1
- package/web/chunk-g9bqacq1.js +0 -1
- package/web/chunk-gh8kjzdj.js +0 -1
- package/web/chunk-h0c42zy3.js +0 -1
- package/web/chunk-j031r08w.js +0 -1
- package/web/chunk-jab2p5zv.js +0 -2
- package/web/chunk-jca9xbe0.js +0 -40
- package/web/chunk-jpf8x9tm.js +0 -1
- package/web/chunk-jy448465.js +0 -1142
- package/web/chunk-jy8zat04.js +0 -1
- package/web/chunk-k8s7kye3.js +0 -1
- package/web/chunk-k9zn1n6d.js +0 -1
- package/web/chunk-ksnsfqrn.js +0 -24
- package/web/chunk-m5psa69k.js +0 -30
- package/web/chunk-md9j949p.js +0 -1
- package/web/chunk-mss6eg27.js +0 -106
- package/web/chunk-nbcpbqq4.js +0 -1
- package/web/chunk-npyrdsf8.css +0 -1
- package/web/chunk-p1bb9xp8.js +0 -89
- package/web/chunk-pdmcr6d4.js +0 -41
- package/web/chunk-phj4pcx4.js +0 -78
- package/web/chunk-pma5pats.js +0 -7
- package/web/chunk-pmghe7rh.js +0 -62
- package/web/chunk-ppfhtyxt.js +0 -1
- package/web/chunk-pze2v3v1.js +0 -2
- package/web/chunk-q6j2e8a1.js +0 -70
- package/web/chunk-q6jf3zc1.js +0 -1
- package/web/chunk-qdn3hmfy.js +0 -1
- package/web/chunk-qdsg8wp0.js +0 -1
- package/web/chunk-qf2kb7zj.js +0 -2
- package/web/chunk-sdtesqbb.js +0 -1
- package/web/chunk-t0z8ygx4.js +0 -1
- package/web/chunk-t5ke9cyg.js +0 -303
- package/web/chunk-t72z2ww3.js +0 -4
- package/web/chunk-vypfy030.js +0 -34
- package/web/chunk-w7cyrbk2.js +0 -1
- package/web/chunk-w9nkvcjr.js +0 -1
- package/web/chunk-x2f8bwd2.js +0 -1
- package/web/chunk-xq8x7dvr.js +0 -1
- package/web/chunk-xtss82z2.js +0 -1
- package/web/chunk-yeh77fvq.js +0 -2
- package/web/chunk-z5h046zm.js +0 -291
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import{t,Kt,a,x,C,S,E,T,A,L,R,l,M,pe,le,ce,vt,ge,ye}from"./chunk-t5ke9cyg.js";import{he}from"./chunk-66164wmv.js";import{ue}from"./chunk-k3ah0513.js";var He=function(){var e=t(function(X,n,o,h){for(o=o||{},h=X.length;h--;o[X[h]]=n);return o},"o"),d=[1,3],f=[1,4],m=[1,5],r=[1,6],u=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],I=[1,22],v=[2,7],b=[1,26],N=[1,27],q=[1,28],F=[1,29],P=[1,33],U=[1,34],Y=[1,35],B=[1,36],Q=[1,37],H=[1,38],K=[1,24],W=[1,31],j=[1,32],G=[1,30],g=[1,39],y=[1,40],k=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],J=[1,61],fe=[89,90],Ke=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],xe=[27,29],We=[1,70],je=[1,71],Ge=[1,72],ze=[1,73],Xe=[1,74],Je=[1,75],Ze=[1,76],Ee=[1,83],Z=[1,80],be=[1,84],Re=[1,85],ke=[1,86],_e=[1,87],Se=[1,88],Ie=[1,89],Te=[1,90],Ne=[1,91],qe=[1,92],we=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],ee=[63,64],et=[1,101],tt=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],w=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],te=[1,110],se=[1,106],ie=[1,107],re=[1,108],ne=[1,109],ae=[1,111],Ce=[1,116],Ae=[1,117],Ve=[1,114],ve=[1,115],$e={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:t(function(n,o,h,i,p,s,Le){var c=s.length-1;switch(p){case 4:this.$=s[c].trim(),i.setAccTitle(this.$);break;case 5:case 6:this.$=s[c].trim(),i.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:i.setDirection("TB");break;case 18:i.setDirection("BT");break;case 19:i.setDirection("RL");break;case 20:i.setDirection("LR");break;case 21:i.addRequirement(s[c-3],s[c-4]);break;case 22:i.addRequirement(s[c-5],s[c-6]),i.setClass([s[c-5]],s[c-3]);break;case 23:i.setNewReqId(s[c-2]);break;case 24:i.setNewReqText(s[c-2]);break;case 25:i.setNewReqRisk(s[c-2]);break;case 26:i.setNewReqVerifyMethod(s[c-2]);break;case 29:this.$=i.RequirementType.REQUIREMENT;break;case 30:this.$=i.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=i.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=i.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=i.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=i.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=i.RiskLevel.LOW_RISK;break;case 36:this.$=i.RiskLevel.MED_RISK;break;case 37:this.$=i.RiskLevel.HIGH_RISK;break;case 38:this.$=i.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=i.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=i.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=i.VerifyType.VERIFY_TEST;break;case 42:i.addElement(s[c-3]);break;case 43:i.addElement(s[c-5]),i.setClass([s[c-5]],s[c-3]);break;case 44:i.setNewElementType(s[c-2]);break;case 45:i.setNewElementDocRef(s[c-2]);break;case 48:i.addRelationship(s[c-2],s[c],s[c-4]);break;case 49:i.addRelationship(s[c-2],s[c-4],s[c]);break;case 50:this.$=i.Relationships.CONTAINS;break;case 51:this.$=i.Relationships.COPIES;break;case 52:this.$=i.Relationships.DERIVES;break;case 53:this.$=i.Relationships.SATISFIES;break;case 54:this.$=i.Relationships.VERIFIES;break;case 55:this.$=i.Relationships.REFINES;break;case 56:this.$=i.Relationships.TRACES;break;case 57:this.$=s[c-2],i.defineClass(s[c-1],s[c]);break;case 58:i.setClass(s[c-1],s[c]);break;case 59:i.setClass([s[c-2]],s[c]);break;case 60:case 62:this.$=[s[c]];break;case 61:case 63:this.$=s[c-2].concat([s[c]]);break;case 64:this.$=s[c-2],i.setCssStyle(s[c-1],s[c]);break;case 65:this.$=[s[c]];break;case 66:s[c-2].push(s[c]),this.$=s[c-2];break;case 68:this.$=s[c-1]+s[c];break}},"anonymous"),table:[{3:1,4:2,6:d,9:f,11:m,13:r},{1:[3]},{3:8,4:2,5:[1,7],6:d,9:f,11:m,13:r},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(u,[2,6]),{3:12,4:2,6:d,9:f,11:m,13:r},{1:[2,2]},{4:17,5:I,7:13,8:v,9:f,11:m,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:b,22:N,23:q,24:F,25:23,33:25,41:P,42:U,43:Y,44:B,45:Q,46:H,54:K,72:W,74:j,77:G,89:g,90:y},e(u,[2,4]),e(u,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:I,7:42,8:v,9:f,11:m,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:b,22:N,23:q,24:F,25:23,33:25,41:P,42:U,43:Y,44:B,45:Q,46:H,54:K,72:W,74:j,77:G,89:g,90:y},{4:17,5:I,7:43,8:v,9:f,11:m,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:b,22:N,23:q,24:F,25:23,33:25,41:P,42:U,43:Y,44:B,45:Q,46:H,54:K,72:W,74:j,77:G,89:g,90:y},{4:17,5:I,7:44,8:v,9:f,11:m,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:b,22:N,23:q,24:F,25:23,33:25,41:P,42:U,43:Y,44:B,45:Q,46:H,54:K,72:W,74:j,77:G,89:g,90:y},{4:17,5:I,7:45,8:v,9:f,11:m,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:b,22:N,23:q,24:F,25:23,33:25,41:P,42:U,43:Y,44:B,45:Q,46:H,54:K,72:W,74:j,77:G,89:g,90:y},{4:17,5:I,7:46,8:v,9:f,11:m,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:b,22:N,23:q,24:F,25:23,33:25,41:P,42:U,43:Y,44:B,45:Q,46:H,54:K,72:W,74:j,77:G,89:g,90:y},{4:17,5:I,7:47,8:v,9:f,11:m,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:b,22:N,23:q,24:F,25:23,33:25,41:P,42:U,43:Y,44:B,45:Q,46:H,54:K,72:W,74:j,77:G,89:g,90:y},{4:17,5:I,7:48,8:v,9:f,11:m,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:b,22:N,23:q,24:F,25:23,33:25,41:P,42:U,43:Y,44:B,45:Q,46:H,54:K,72:W,74:j,77:G,89:g,90:y},{4:17,5:I,7:49,8:v,9:f,11:m,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:b,22:N,23:q,24:F,25:23,33:25,41:P,42:U,43:Y,44:B,45:Q,46:H,54:K,72:W,74:j,77:G,89:g,90:y},{4:17,5:I,7:50,8:v,9:f,11:m,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:b,22:N,23:q,24:F,25:23,33:25,41:P,42:U,43:Y,44:B,45:Q,46:H,54:K,72:W,74:j,77:G,89:g,90:y},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(k,[2,17]),e(k,[2,18]),e(k,[2,19]),e(k,[2,20]),{30:60,33:62,75:J,89:g,90:y},{30:63,33:62,75:J,89:g,90:y},{30:64,33:62,75:J,89:g,90:y},e(fe,[2,29]),e(fe,[2,30]),e(fe,[2,31]),e(fe,[2,32]),e(fe,[2,33]),e(fe,[2,34]),e(Ke,[2,81]),e(Ke,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(xe,[2,79]),e(xe,[2,80]),{27:[1,67],29:[1,68]},e(xe,[2,85]),e(xe,[2,86]),{62:69,65:We,66:je,67:Ge,68:ze,69:Xe,70:Je,71:Ze},{62:77,65:We,66:je,67:Ge,68:ze,69:Xe,70:Je,71:Ze},{30:78,33:62,75:J,89:g,90:y},{73:79,75:Ee,76:Z,78:81,79:82,80:be,81:Re,82:ke,83:_e,84:Se,85:Ie,86:Te,87:Ne,88:qe},e(we,[2,60]),e(we,[2,62]),{73:93,75:Ee,76:Z,78:81,79:82,80:be,81:Re,82:ke,83:_e,84:Se,85:Ie,86:Te,87:Ne,88:qe},{30:94,33:62,75:J,76:Z,89:g,90:y},{5:[1,95]},{30:96,33:62,75:J,89:g,90:y},{5:[1,97]},{30:98,33:62,75:J,89:g,90:y},{63:[1,99]},e(ee,[2,50]),e(ee,[2,51]),e(ee,[2,52]),e(ee,[2,53]),e(ee,[2,54]),e(ee,[2,55]),e(ee,[2,56]),{64:[1,100]},e(k,[2,59],{76:Z}),e(k,[2,64],{76:et}),{33:103,75:[1,102],89:g,90:y},e(tt,[2,65],{79:104,75:Ee,80:be,81:Re,82:ke,83:_e,84:Se,85:Ie,86:Te,87:Ne,88:qe}),e(w,[2,67]),e(w,[2,69]),e(w,[2,70]),e(w,[2,71]),e(w,[2,72]),e(w,[2,73]),e(w,[2,74]),e(w,[2,75]),e(w,[2,76]),e(w,[2,77]),e(w,[2,78]),e(k,[2,57],{76:et}),e(k,[2,58],{76:Z}),{5:te,28:105,31:se,34:ie,36:re,38:ne,40:ae},{27:[1,112],76:Z},{5:Ce,40:Ae,56:113,57:Ve,59:ve},{27:[1,118],76:Z},{33:119,89:g,90:y},{33:120,89:g,90:y},{75:Ee,78:121,79:82,80:be,81:Re,82:ke,83:_e,84:Se,85:Ie,86:Te,87:Ne,88:qe},e(we,[2,61]),e(we,[2,63]),e(w,[2,68]),e(k,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:te,28:126,31:se,34:ie,36:re,38:ne,40:ae},e(k,[2,28]),{5:[1,127]},e(k,[2,42]),{32:[1,128]},{32:[1,129]},{5:Ce,40:Ae,56:130,57:Ve,59:ve},e(k,[2,47]),{5:[1,131]},e(k,[2,48]),e(k,[2,49]),e(tt,[2,66],{79:104,75:Ee,80:be,81:Re,82:ke,83:_e,84:Se,85:Ie,86:Te,87:Ne,88:qe}),{33:132,89:g,90:y},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(k,[2,27]),{5:te,28:145,31:se,34:ie,36:re,38:ne,40:ae},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(k,[2,46]),{5:Ce,40:Ae,56:152,57:Ve,59:ve},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(k,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(k,[2,43]),{5:te,28:159,31:se,34:ie,36:re,38:ne,40:ae},{5:te,28:160,31:se,34:ie,36:re,38:ne,40:ae},{5:te,28:161,31:se,34:ie,36:re,38:ne,40:ae},{5:te,28:162,31:se,34:ie,36:re,38:ne,40:ae},{5:Ce,40:Ae,56:163,57:Ve,59:ve},{5:Ce,40:Ae,56:164,57:Ve,59:ve},e(k,[2,23]),e(k,[2,24]),e(k,[2,25]),e(k,[2,26]),e(k,[2,44]),e(k,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:t(function(n,o){if(o.recoverable)this.trace(n);else{var h=Error(n);throw h.hash=o,h}},"parseError"),parse:t(function(n){var o=this,h=[0],i=[],p=[null],s=[],Le=this.table,c="",Oe=0,st=0,it=0,ct=2,rt=1,ht=s.slice.call(arguments,1),_=Object.create(this.lexer),oe={yy:{}};for(var Pe in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Pe))oe.yy[Pe]=this.yy[Pe];if(_.setInput(n,oe.yy),oe.yy.lexer=_,oe.yy.parser=this,typeof _.yylloc>"u")_.yylloc={};var Ue=_.yylloc;s.push(Ue);var ut=_.options&&_.options.ranges;if(typeof oe.yy.parseError==="function")this.parseError=oe.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function mt(O){h.length=h.length-2*O,p.length=p.length-O,s.length=s.length-O}t(mt,"popStack");function nt(){var O=i.pop()||_.lex()||rt;if(typeof O!=="number"){if(O instanceof Array)i=O,O=i.pop();O=o.symbols_[O]||O}return O}t(nt,"lex");var V,Ye,me,D,kt,Be,de={},Me,z,at,Fe;while(!0){if(me=h[h.length-1],this.defaultActions[me])D=this.defaultActions[me];else{if(V===null||typeof V>"u")V=nt();D=Le[me]&&Le[me][V]}if(typeof D>"u"||!D.length||!D[0]){var Qe="";Fe=[];for(Me in Le[me])if(this.terminals_[Me]&&Me>ct)Fe.push("'"+this.terminals_[Me]+"'");if(_.showPosition)Qe="Parse error on line "+(Oe+1)+`:
|
|
2
|
-
`+
|
|
3
|
-
Expecting `+
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(n){this.unput(this.match.slice(n))},"less"),pastInput:t(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var n=this.match;if(n.length<20)n+=this._input.substr(0,20-n.length);return(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var n=this.pastInput(),
|
|
5
|
-
`+
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var o=this.next();if(o)return o;else return this.lex()},"lex"),begin:t(function(o){this.conditionStack.push(o)},"begin"),popState:t(function(){var o=this.conditionStack.length-1;if(o>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(o){if(o=this.conditionStack.length-1-Math.abs(o||0),o>=0)return this.conditionStack[o];else return"INITIAL"},"topState"),pushState:t(function(o){this.begin(o)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(o,h,i,p){var s=p;switch(i){case 0:return"title";case 1:return this.begin("acc_title"),9;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),11;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;break;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;break;case 60:return this.begin("style"),74;break;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return h.yytext=h.yytext.trim(),89;break;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return X}();$e.lexer=ot;function De(){this.yy={}}return t(De,"Parser"),De.prototype=$e,$e.Parser=De,new De}();He.parser=He;var ft=He,dt=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=S,this.getAccTitle=E,this.setAccDescription=T,this.getAccDescription=A,this.setDiagramTitle=L,this.getDiagramTitle=R,this.getConfig=t(()=>l().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{t(this,"RequirementDB")}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(e,d){if(!this.requirements.has(e))this.requirements.set(e,{name:e,type:d,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]});return this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){if(this.latestRequirement!==void 0)this.latestRequirement.requirementId=e}setNewReqText(e){if(this.latestRequirement!==void 0)this.latestRequirement.text=e}setNewReqRisk(e){if(this.latestRequirement!==void 0)this.latestRequirement.risk=e}setNewReqVerifyMethod(e){if(this.latestRequirement!==void 0)this.latestRequirement.verifyMethod=e}addElement(e){if(!this.elements.has(e))this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),a.info("Added new element: ",e);return this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){if(this.latestElement!==void 0)this.latestElement.type=e}setNewElementDocRef(e){if(this.latestElement!==void 0)this.latestElement.docRef=e}addRelationship(e,d,f){this.relations.push({type:e,src:d,dst:f})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,C()}setCssStyle(e,d){for(let f of e){let m=this.requirements.get(f)??this.elements.get(f);if(!d||!m)return;for(let r of d)if(r.includes(","))m.cssStyles.push(...r.split(","));else m.cssStyles.push(r)}}setClass(e,d){for(let f of e){let m=this.requirements.get(f)??this.elements.get(f);if(m)for(let r of d){m.classes.push(r);let u=this.classes.get(r)?.styles;if(u)m.cssStyles.push(...u)}}}defineClass(e,d){for(let f of e){let m=this.classes.get(f);if(m===void 0)m={id:f,styles:[],textStyles:[]},this.classes.set(f,m);if(d)d.forEach(function(r){if(/color/.exec(r)){let u=r.replace("fill","bgFill");m.textStyles.push(u)}m.styles.push(r)});this.requirements.forEach((r)=>{if(r.classes.includes(f))r.cssStyles.push(...d.flatMap((u)=>u.split(",")))}),this.elements.forEach((r)=>{if(r.classes.includes(f))r.cssStyles.push(...d.flatMap((u)=>u.split(",")))})}}getClasses(){return this.classes}getData(){let e=l(),d=[],f=[];for(let r of this.requirements.values()){let u=r;u.id=r.name,u.cssStyles=r.cssStyles,u.cssClasses=r.classes.join(" "),u.shape="requirementBox",u.look=e.look,u.colorIndex=d.length,d.push(u)}for(let r of this.elements.values()){let u=r;u.shape="requirementBox",u.look=e.look,u.id=r.name,u.cssStyles=r.cssStyles,u.cssClasses=r.classes.join(" "),u.colorIndex=d.length,d.push(u)}let m=0;for(let r of this.relations){let u=r.type===this.Relationships.CONTAINS,I={id:`${r.src}-${r.dst}-${m++}`,start:this.requirements.get(r.src)?.name??this.elements.get(r.src)?.name,end:this.requirements.get(r.dst)?.name??this.elements.get(r.dst)?.name,label:`<<${r.type}>>`,classes:"relationshipLine",style:["fill:none",u?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:u?"normal":"dashed",arrowTypeStart:u?"requirement_contains":"",arrowTypeEnd:u?"":"requirement_arrow",look:e.look,labelType:"markdown"};f.push(I)}return{nodes:d,edges:f,other:{},config:e,direction:this.getDirection()}}},pt=t(()=>{let e=x(),{theme:d,themeVariables:f}=e,{bkgColorArray:m,borderColorArray:r}=f;if(!le(d,r))return"";let u=ce(e.look),I="",v=pe(m);for(let b=0;b<vt(r);b++){let N=r[b],q=v?`fill: ${m[b%m.length]};`:"";I+=`
|
|
1
|
+
import{t,Hn,a,S,A,R,I,L,D,P,N,u,F,Ie,Te,Ee,cn,Fe,ze}from"./chunk-fzmrnh17.js";import{Be}from"./chunk-pvahdcgy.js";import{Re}from"./chunk-ceg13tma.js";var Qe=function(){var e=t(function(X,n,l,c){for(l=l||{},c=X.length;c--;l[X[c]]=n);return l},"o"),d=[1,3],f=[1,4],m=[1,5],r=[1,6],h=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],_=[1,22],V=[2,7],E=[1,26],T=[1,27],q=[1,28],O=[1,29],M=[1,33],U=[1,34],Y=[1,35],B=[1,36],Q=[1,37],H=[1,38],K=[1,24],W=[1,31],j=[1,32],G=[1,30],k=[1,39],g=[1,40],b=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],J=[1,61],ce=[89,90],He=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ve=[27,29],Ke=[1,70],We=[1,71],je=[1,72],Ge=[1,73],Xe=[1,74],Je=[1,75],Ze=[1,76],ue=[1,83],Z=[1,80],me=[1,84],fe=[1,85],de=[1,86],pe=[1,87],be=[1,88],ke=[1,89],ge=[1,90],ye=[1,91],_e=[1,92],ve=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],ee=[63,64],et=[1,101],tt=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],v=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],te=[1,110],se=[1,106],ie=[1,107],re=[1,108],ne=[1,109],ae=[1,111],Se=[1,116],Ne=[1,117],qe=[1,114],Ce=[1,115],Oe={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:t(function(n,l,c,i,p,s,Ae){var o=s.length-1;switch(p){case 4:this.$=s[o].trim(),i.setAccTitle(this.$);break;case 5:case 6:this.$=s[o].trim(),i.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:i.setDirection("TB");break;case 18:i.setDirection("BT");break;case 19:i.setDirection("RL");break;case 20:i.setDirection("LR");break;case 21:i.addRequirement(s[o-3],s[o-4]);break;case 22:i.addRequirement(s[o-5],s[o-6]),i.setClass([s[o-5]],s[o-3]);break;case 23:i.setNewReqId(s[o-2]);break;case 24:i.setNewReqText(s[o-2]);break;case 25:i.setNewReqRisk(s[o-2]);break;case 26:i.setNewReqVerifyMethod(s[o-2]);break;case 29:this.$=i.RequirementType.REQUIREMENT;break;case 30:this.$=i.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=i.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=i.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=i.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=i.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=i.RiskLevel.LOW_RISK;break;case 36:this.$=i.RiskLevel.MED_RISK;break;case 37:this.$=i.RiskLevel.HIGH_RISK;break;case 38:this.$=i.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=i.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=i.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=i.VerifyType.VERIFY_TEST;break;case 42:i.addElement(s[o-3]);break;case 43:i.addElement(s[o-5]),i.setClass([s[o-5]],s[o-3]);break;case 44:i.setNewElementType(s[o-2]);break;case 45:i.setNewElementDocRef(s[o-2]);break;case 48:i.addRelationship(s[o-2],s[o],s[o-4]);break;case 49:i.addRelationship(s[o-2],s[o-4],s[o]);break;case 50:this.$=i.Relationships.CONTAINS;break;case 51:this.$=i.Relationships.COPIES;break;case 52:this.$=i.Relationships.DERIVES;break;case 53:this.$=i.Relationships.SATISFIES;break;case 54:this.$=i.Relationships.VERIFIES;break;case 55:this.$=i.Relationships.REFINES;break;case 56:this.$=i.Relationships.TRACES;break;case 57:this.$=s[o-2],i.defineClass(s[o-1],s[o]);break;case 58:i.setClass(s[o-1],s[o]);break;case 59:i.setClass([s[o-2]],s[o]);break;case 60:case 62:this.$=[s[o]];break;case 61:case 63:this.$=s[o-2].concat([s[o]]);break;case 64:this.$=s[o-2],i.setCssStyle(s[o-1],s[o]);break;case 65:this.$=[s[o]];break;case 66:s[o-2].push(s[o]),this.$=s[o-2];break;case 68:this.$=s[o-1]+s[o];break}},"anonymous"),table:[{3:1,4:2,6:d,9:f,11:m,13:r},{1:[3]},{3:8,4:2,5:[1,7],6:d,9:f,11:m,13:r},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(h,[2,6]),{3:12,4:2,6:d,9:f,11:m,13:r},{1:[2,2]},{4:17,5:_,7:13,8:V,9:f,11:m,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:T,23:q,24:O,25:23,33:25,41:M,42:U,43:Y,44:B,45:Q,46:H,54:K,72:W,74:j,77:G,89:k,90:g},e(h,[2,4]),e(h,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:_,7:42,8:V,9:f,11:m,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:T,23:q,24:O,25:23,33:25,41:M,42:U,43:Y,44:B,45:Q,46:H,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:43,8:V,9:f,11:m,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:T,23:q,24:O,25:23,33:25,41:M,42:U,43:Y,44:B,45:Q,46:H,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:44,8:V,9:f,11:m,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:T,23:q,24:O,25:23,33:25,41:M,42:U,43:Y,44:B,45:Q,46:H,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:45,8:V,9:f,11:m,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:T,23:q,24:O,25:23,33:25,41:M,42:U,43:Y,44:B,45:Q,46:H,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:46,8:V,9:f,11:m,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:T,23:q,24:O,25:23,33:25,41:M,42:U,43:Y,44:B,45:Q,46:H,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:47,8:V,9:f,11:m,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:T,23:q,24:O,25:23,33:25,41:M,42:U,43:Y,44:B,45:Q,46:H,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:48,8:V,9:f,11:m,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:T,23:q,24:O,25:23,33:25,41:M,42:U,43:Y,44:B,45:Q,46:H,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:49,8:V,9:f,11:m,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:T,23:q,24:O,25:23,33:25,41:M,42:U,43:Y,44:B,45:Q,46:H,54:K,72:W,74:j,77:G,89:k,90:g},{4:17,5:_,7:50,8:V,9:f,11:m,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:E,22:T,23:q,24:O,25:23,33:25,41:M,42:U,43:Y,44:B,45:Q,46:H,54:K,72:W,74:j,77:G,89:k,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),{30:60,33:62,75:J,89:k,90:g},{30:63,33:62,75:J,89:k,90:g},{30:64,33:62,75:J,89:k,90:g},e(ce,[2,29]),e(ce,[2,30]),e(ce,[2,31]),e(ce,[2,32]),e(ce,[2,33]),e(ce,[2,34]),e(He,[2,81]),e(He,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ve,[2,79]),e(Ve,[2,80]),{27:[1,67],29:[1,68]},e(Ve,[2,85]),e(Ve,[2,86]),{62:69,65:Ke,66:We,67:je,68:Ge,69:Xe,70:Je,71:Ze},{62:77,65:Ke,66:We,67:je,68:Ge,69:Xe,70:Je,71:Ze},{30:78,33:62,75:J,89:k,90:g},{73:79,75:ue,76:Z,78:81,79:82,80:me,81:fe,82:de,83:pe,84:be,85:ke,86:ge,87:ye,88:_e},e(ve,[2,60]),e(ve,[2,62]),{73:93,75:ue,76:Z,78:81,79:82,80:me,81:fe,82:de,83:pe,84:be,85:ke,86:ge,87:ye,88:_e},{30:94,33:62,75:J,76:Z,89:k,90:g},{5:[1,95]},{30:96,33:62,75:J,89:k,90:g},{5:[1,97]},{30:98,33:62,75:J,89:k,90:g},{63:[1,99]},e(ee,[2,50]),e(ee,[2,51]),e(ee,[2,52]),e(ee,[2,53]),e(ee,[2,54]),e(ee,[2,55]),e(ee,[2,56]),{64:[1,100]},e(b,[2,59],{76:Z}),e(b,[2,64],{76:et}),{33:103,75:[1,102],89:k,90:g},e(tt,[2,65],{79:104,75:ue,80:me,81:fe,82:de,83:pe,84:be,85:ke,86:ge,87:ye,88:_e}),e(v,[2,67]),e(v,[2,69]),e(v,[2,70]),e(v,[2,71]),e(v,[2,72]),e(v,[2,73]),e(v,[2,74]),e(v,[2,75]),e(v,[2,76]),e(v,[2,77]),e(v,[2,78]),e(b,[2,57],{76:et}),e(b,[2,58],{76:Z}),{5:te,28:105,31:se,34:ie,36:re,38:ne,40:ae},{27:[1,112],76:Z},{5:Se,40:Ne,56:113,57:qe,59:Ce},{27:[1,118],76:Z},{33:119,89:k,90:g},{33:120,89:k,90:g},{75:ue,78:121,79:82,80:me,81:fe,82:de,83:pe,84:be,85:ke,86:ge,87:ye,88:_e},e(ve,[2,61]),e(ve,[2,63]),e(v,[2,68]),e(b,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:te,28:126,31:se,34:ie,36:re,38:ne,40:ae},e(b,[2,28]),{5:[1,127]},e(b,[2,42]),{32:[1,128]},{32:[1,129]},{5:Se,40:Ne,56:130,57:qe,59:Ce},e(b,[2,47]),{5:[1,131]},e(b,[2,48]),e(b,[2,49]),e(tt,[2,66],{79:104,75:ue,80:me,81:fe,82:de,83:pe,84:be,85:ke,86:ge,87:ye,88:_e}),{33:132,89:k,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(b,[2,27]),{5:te,28:145,31:se,34:ie,36:re,38:ne,40:ae},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(b,[2,46]),{5:Se,40:Ne,56:152,57:qe,59:Ce},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(b,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(b,[2,43]),{5:te,28:159,31:se,34:ie,36:re,38:ne,40:ae},{5:te,28:160,31:se,34:ie,36:re,38:ne,40:ae},{5:te,28:161,31:se,34:ie,36:re,38:ne,40:ae},{5:te,28:162,31:se,34:ie,36:re,38:ne,40:ae},{5:Se,40:Ne,56:163,57:qe,59:Ce},{5:Se,40:Ne,56:164,57:qe,59:Ce},e(b,[2,23]),e(b,[2,24]),e(b,[2,25]),e(b,[2,26]),e(b,[2,44]),e(b,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:t(function(n,l){if(l.recoverable)this.trace(n);else{var c=Error(n);throw c.hash=l,c}},"parseError"),parse:t(function(n){var l=this,c=[0],i=[],p=[null],s=[],Ae=this.table,o="",xe=0,st=0,it=0,ct=2,rt=1,ht=s.slice.call(arguments,1),y=Object.create(this.lexer),le={yy:{}};for(var Me in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Me))le.yy[Me]=this.yy[Me];if(y.setInput(n,le.yy),le.yy.lexer=y,le.yy.parser=this,typeof y.yylloc>"u")y.yylloc={};var $e=y.yylloc;s.push($e);var ut=y.options&&y.options.ranges;if(typeof le.yy.parseError==="function")this.parseError=le.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function mt(w){c.length=c.length-2*w,p.length=p.length-w,s.length=s.length-w}t(mt,"popStack");function nt(){var w=i.pop()||y.lex()||rt;if(typeof w!=="number"){if(w instanceof Array)i=w,w=i.pop();w=l.symbols_[w]||w}return w}t(nt,"lex");var C,Pe,oe,x,kt,Ue,he={},we,z,at,De;while(!0){if(oe=c[c.length-1],this.defaultActions[oe])x=this.defaultActions[oe];else{if(C===null||typeof C>"u")C=nt();x=Ae[oe]&&Ae[oe][C]}if(typeof x>"u"||!x.length||!x[0]){var Ye="";De=[];for(we in Ae[oe])if(this.terminals_[we]&&we>ct)De.push("'"+this.terminals_[we]+"'");if(y.showPosition)Ye="Parse error on line "+(xe+1)+`:
|
|
2
|
+
`+y.showPosition()+`
|
|
3
|
+
Expecting `+De.join(", ")+", got '"+(this.terminals_[C]||C)+"'";else Ye="Parse error on line "+(xe+1)+": Unexpected "+(C==rt?"end of input":"'"+(this.terminals_[C]||C)+"'");this.parseError(Ye,{text:y.match,token:this.terminals_[C]||C,line:y.yylineno,loc:$e,expected:De})}if(x[0]instanceof Array&&x.length>1)throw Error("Parse Error: multiple actions possible at state: "+oe+", token: "+C);switch(x[0]){case 1:if(c.push(C),p.push(y.yytext),s.push(y.yylloc),c.push(x[1]),C=null,!Pe){if(st=y.yyleng,o=y.yytext,xe=y.yylineno,$e=y.yylloc,it>0)it--}else C=Pe,Pe=null;break;case 2:if(z=this.productions_[x[1]][1],he.$=p[p.length-z],he._$={first_line:s[s.length-(z||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(z||1)].first_column,last_column:s[s.length-1].last_column},ut)he._$.range=[s[s.length-(z||1)].range[0],s[s.length-1].range[1]];if(Ue=this.performAction.apply(he,[o,st,xe,le.yy,x[1],p,s].concat(ht)),typeof Ue<"u")return Ue;if(z)c=c.slice(0,-1*z*2),p=p.slice(0,-1*z),s=s.slice(0,-1*z);c.push(this.productions_[x[1]][0]),p.push(he.$),s.push(he._$),at=Ae[c[c.length-2]][c[c.length-1]],c.push(at);break;case 3:return!0}}return!0},"parse")},ot=function(){var X={EOF:1,parseError:t(function(l,c){if(this.yy.parser)this.yy.parser.parseError(l,c);else throw Error(l)},"parseError"),setInput:t(function(n,l){if(this.yy=l||this.yy||{},this._input=n,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 n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var l=n.match(/(?:\r\n?|\n).*/g);if(l)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),n},"input"),unput:t(function(n){var l=n.length,c=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var i=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),c.length-1)this.yylineno-=c.length-1;var p=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:c?(c.length===i.length?this.yylloc.first_column:0)+i[i.length-c.length].length-c[0].length:this.yylloc.first_column-l},this.options.ranges)this.yylloc.range=[p[0],p[0]+this.yyleng-l];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
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(n){this.unput(this.match.slice(n))},"less"),pastInput:t(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var n=this.match;if(n.length<20)n+=this._input.substr(0,20-n.length);return(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var n=this.pastInput(),l=Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
5
|
+
`+l+"^"},"showPosition"),test_match:t(function(n,l){var c,i,p;if(this.options.backtrack_lexer){if(p={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)p.yylloc.range=this.yylloc.range.slice(0)}if(i=n[0].match(/(?:\r\n?|\n).*/g),i)this.yylineno+=i.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,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(n[0].length),this.matched+=n[0],c=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(c)return c;else if(this._backtrack){for(var s in p)this[s]=p[s];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var n,l,c,i;if(!this._more)this.yytext="",this.match="";var p=this._currentRules();for(var s=0;s<p.length;s++)if(c=this._input.match(this.rules[p[s]]),c&&(!l||c[0].length>l[0].length)){if(l=c,i=s,this.options.backtrack_lexer)if(n=this.test_match(c,p[s]),n!==!1)return n;else if(this._backtrack){l=!1;continue}else return!1;else if(!this.options.flex)break}if(l){if(n=this.test_match(l,p[i]),n!==!1)return n;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var l=this.next();if(l)return l;else return this.lex()},"lex"),begin:t(function(l){this.conditionStack.push(l)},"begin"),popState:t(function(){var l=this.conditionStack.length-1;if(l>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(l){if(l=this.conditionStack.length-1-Math.abs(l||0),l>=0)return this.conditionStack[l];else return"INITIAL"},"topState"),pushState:t(function(l){this.begin(l)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(l,c,i,p){var s=p;switch(i){case 0:return"title";case 1:return this.begin("acc_title"),9;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),11;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;break;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;break;case 60:return this.begin("style"),74;break;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return c.yytext=c.yytext.trim(),89;break;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return X}();Oe.lexer=ot;function Le(){this.yy={}}return t(Le,"Parser"),Le.prototype=Oe,Oe.Parser=Le,new Le}();Qe.parser=Qe;var ft=Qe,dt=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=R,this.getAccTitle=I,this.setAccDescription=L,this.getAccDescription=D,this.setDiagramTitle=P,this.getDiagramTitle=N,this.getConfig=t(()=>u().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{t(this,"RequirementDB")}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(e,d){if(!this.requirements.has(e))this.requirements.set(e,{name:e,type:d,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]});return this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){if(this.latestRequirement!==void 0)this.latestRequirement.requirementId=e}setNewReqText(e){if(this.latestRequirement!==void 0)this.latestRequirement.text=e}setNewReqRisk(e){if(this.latestRequirement!==void 0)this.latestRequirement.risk=e}setNewReqVerifyMethod(e){if(this.latestRequirement!==void 0)this.latestRequirement.verifyMethod=e}addElement(e){if(!this.elements.has(e))this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),a.info("Added new element: ",e);return this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){if(this.latestElement!==void 0)this.latestElement.type=e}setNewElementDocRef(e){if(this.latestElement!==void 0)this.latestElement.docRef=e}addRelationship(e,d,f){this.relations.push({type:e,src:d,dst:f})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,A()}setCssStyle(e,d){for(let f of e){let m=this.requirements.get(f)??this.elements.get(f);if(!d||!m)return;for(let r of d)if(r.includes(","))m.cssStyles.push(...r.split(","));else m.cssStyles.push(r)}}setClass(e,d){for(let f of e){let m=this.requirements.get(f)??this.elements.get(f);if(m)for(let r of d){m.classes.push(r);let h=this.classes.get(r)?.styles;if(h)m.cssStyles.push(...h)}}}defineClass(e,d){for(let f of e){let m=this.classes.get(f);if(m===void 0)m={id:f,styles:[],textStyles:[]},this.classes.set(f,m);if(d)d.forEach(function(r){if(/color/.exec(r)){let h=r.replace("fill","bgFill");m.textStyles.push(h)}m.styles.push(r)});this.requirements.forEach((r)=>{if(r.classes.includes(f))r.cssStyles.push(...d.flatMap((h)=>h.split(",")))}),this.elements.forEach((r)=>{if(r.classes.includes(f))r.cssStyles.push(...d.flatMap((h)=>h.split(",")))})}}getClasses(){return this.classes}getData(){let e=u(),d=[],f=[];for(let r of this.requirements.values()){let h=r;h.id=r.name,h.cssStyles=r.cssStyles,h.cssClasses=r.classes.join(" "),h.shape="requirementBox",h.look=e.look,h.colorIndex=d.length,d.push(h)}for(let r of this.elements.values()){let h=r;h.shape="requirementBox",h.look=e.look,h.id=r.name,h.cssStyles=r.cssStyles,h.cssClasses=r.classes.join(" "),h.colorIndex=d.length,d.push(h)}let m=0;for(let r of this.relations){let h=r.type===this.Relationships.CONTAINS,_={id:`${r.src}-${r.dst}-${m++}`,start:this.requirements.get(r.src)?.name??this.elements.get(r.src)?.name,end:this.requirements.get(r.dst)?.name??this.elements.get(r.dst)?.name,label:`<<${r.type}>>`,classes:"relationshipLine",style:["fill:none",h?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:h?"normal":"dashed",arrowTypeStart:h?"requirement_contains":"",arrowTypeEnd:h?"":"requirement_arrow",look:e.look,labelType:"markdown"};f.push(_)}return{nodes:d,edges:f,other:{},config:e,direction:this.getDirection()}}},pt=t(()=>{let e=S(),{theme:d,themeVariables:f}=e,{bkgColorArray:m,borderColorArray:r}=f;if(!Te(d,r))return"";let h=Ee(e.look),_="",V=Ie(m);for(let E=0;E<cn(r);E++){let T=r[E],q=V?`fill: ${m[E%m.length]};`:"";_+=`
|
|
7
7
|
|
|
8
|
-
[data-look="${
|
|
9
|
-
stroke: ${
|
|
8
|
+
[data-look="${h}"][data-color-id="color-${E}"].node path {
|
|
9
|
+
stroke: ${T};
|
|
10
10
|
${q}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
[data-look="${
|
|
14
|
-
stroke: ${
|
|
13
|
+
[data-look="${h}"][data-color-id="color-${E}"].node rect {
|
|
14
|
+
stroke: ${T};
|
|
15
15
|
${q}
|
|
16
16
|
}
|
|
17
|
-
`}return
|
|
17
|
+
`}return _},"genColor"),Et=t((e)=>{let d=S(),{look:f,themeVariables:m}=d,{requirementEdgeLabelBackground:r}=m;return`
|
|
18
18
|
${pt()}
|
|
19
19
|
marker {
|
|
20
20
|
fill: ${e.relationColor};
|
|
@@ -81,4 +81,4 @@ Expecting `+Fe.join(", ")+", got '"+(this.terminals_[V]||V)+"'";else Qe="Parse e
|
|
|
81
81
|
background-color: ${r??e.edgeLabelBackground};
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
`},"getStyles"),bt=Et,lt={};
|
|
84
|
+
`},"getStyles"),bt=Et,lt={};Hn(lt,{draw:()=>Rt});var Rt=t(async function(e,d,f,m){a.info("REF0:"),a.info("Drawing requirement diagram (unified)",d);let{securityLevel:r,state:h,layout:_,look:V}=u(),E=m.db.getData(),T=Be(d,r);E.type=m.type,E.layoutAlgorithm=ze(_),E.nodeSpacing=h?.nodeSpacing??50,E.rankSpacing=h?.rankSpacing??50,E.markers=V==="neo"?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],E.diagramId=d,await Fe(E,T);let q=8;F.insertTitle(T,"requirementDiagramTitleText",h?.titleTopMargin??25,m.db.getDiagramTitle()),Re(T,q,"requirementDiagram",h?.useMaxWidth??!0)},"draw"),Ot={parser:ft,get db(){return new dt},renderer:lt,styles:bt};export{Ot as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import{re}from"./chunk-js8dvtfg.js";import{t,a,Ge,B,S,G,A,R,I,L,D,P,N,Q,X}from"./chunk-fzmrnh17.js";import{me}from"./chunk-bdypt5mj.js";var ut=t(()=>({domains:new Map,transitions:[]}),"createDefaultData"),et=ut(),At=t(()=>et.domains,"getDomains"),Bt=t(()=>et.transitions,"getTransitions"),St=t((e)=>{if(!e)return;for(let n of e){let o=n.domain,r=(n.items??[]).map((l)=>({label:l.label}));et.domains.set(o,{name:o,items:r})}},"setDomains"),Mt=t((e)=>{if(!e)return;et.transitions=e.filter((n)=>{if(n.from===n.to)return a.warn(`Cynefin: self-loop transition on domain "${n.from}" is not meaningful and will be skipped.`),!1;return!0}).map((n)=>({from:n.from,to:n.to,label:n.label||void 0}))},"setTransitions"),zt=t(()=>X({...B.cynefin,...S().cynefin}),"getConfig"),Lt=t(()=>{A(),et=ut()},"clear"),at={getDomains:At,getTransitions:Bt,setDomains:St,setTransitions:Mt,getConfig:zt,clear:Lt,setAccTitle:R,getAccTitle:I,setDiagramTitle:P,getDiagramTitle:N,getAccDescription:D,setAccDescription:L},Nt=t((e)=>{re(e,at),at.setDomains(e.domains),at.setTransitions(e.transitions)},"populate"),Pt={parse:t(async(e)=>{let n=await me("cynefin",e);a.debug(n),Nt(n)},"parse")};function tt(e){let n=e+1831565813|0;return n=Math.imul(n^n>>>15,n|1),n^=n+Math.imul(n^n>>>7,n|61),((n^n>>>14)>>>0)/4294967296}t(tt,"seededRandom");function gt(e){let n=0;for(let o=0;o<e.length;o++){let r=e.charCodeAt(o);n=(n<<5)-n+r,n|=0}return n}t(gt,"hashString");function ht(e,n){if(typeof e==="number"&&Number.isFinite(e)&&e!==0)return e;return gt(n)}t(ht,"resolveSeed");function xt(e,n,o,r){let l=e/2,p=r??e*0.015,nt=7,q=n/7,f=[];for(let i=0;i<=7;i++){let y=tt(o+i*17)*p*2-p;f.push({x:l+y,y:i*q})}let T=`M${f[0].x},${f[0].y}`;for(let i=0;i<f.length-1;i++){let y=f[i],c=f[i+1],m=(y.y+c.y)/2,C=i%2===0?1:-1,h=p*1.5*C*tt(o+i*31+7),U=y.x+h,Z=m,J=c.x-h;T+=` C${U},${Z} ${J},${m} ${c.x},${c.y}`}return T}t(xt,"generateFoldPath");function $t(e,n,o,r){let l=n/2,p=r??n*0.015,nt=7,q=e/7,f=[];for(let i=0;i<=7;i++){let y=tt(o+i*23)*p*2-p;f.push({x:i*q,y:l+y})}let T=`M${f[0].x},${f[0].y}`;for(let i=0;i<f.length-1;i++){let y=f[i],c=f[i+1],m=(y.x+c.x)/2,C=i%2===0?1:-1,h=p*1.5*C*tt(o+i*37+11),U=m,Z=y.y+h,J=m,E=c.y-h;T+=` C${U},${Z} ${J},${E} ${c.x},${c.y}`}return T}t($t,"generateHorizontalBoundary");function bt(e,n){let o=e/2,r=n*0.5,l=n,p=e*0.03;return[`M${o},${r}`,`C${o+p},${r+(l-r)*0.2}`,`${o-p*1.5},${r+(l-r)*0.55}`,`${o+p*0.5},${r+(l-r)*0.75}`,`C${o-p},${r+(l-r)*0.85}`,`${o+p*0.3},${r+(l-r)*0.95}`,`${o},${l}`].join(" ")}t(bt,"generateCliffPath");function wt(e,n,o,r){return[`M${e-o},${n}`,`A${o},${r} 0 1,1 ${e+o},${n}`,`A${o},${r} 0 1,1 ${e-o},${n}`,"Z"].join(" ")}t(wt,"generateConfusionPath");var yt={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},It=t((e,n)=>{let o=e/2,r=n/2;return{complex:{cx:o/2,cy:r/2,x:0,y:0,w:o,h:r},complicated:{cx:o+o/2,cy:r/2,x:o,y:0,w:o,h:r},chaotic:{cx:o/2,cy:r+r/2,x:0,y:r,w:o,h:r},clear:{cx:o+o/2,cy:r+r/2,x:o,y:r,w:o,h:r},confusion:{cx:o,cy:r,x:o*0.7,y:r*0.7,w:o*0.6,h:r*0.6}}},"getDomainLayouts"),Wt=t(()=>{let e=Ge(),n=S();return X(e,n.themeVariables).cynefin},"getCynefinDomainColors"),st=3,Rt=t((e,n,o,r)=>{let l=r.db,p=l.getDomains(),nt=l.getTransitions(),q=l.getDiagramTitle(),f=l.getAccTitle(),T=l.getAccDescription(),i=l.getConfig(),y=Wt();a.debug("Rendering Cynefin diagram");let{width:c,height:m,padding:C,showDomainDescriptions:h,boundaryAmplitude:U}=i,Z=c+C*2,J=m+C*2,E={complex:y.complexBg,complicated:y.complicatedBg,clear:y.clearBg,chaotic:y.chaoticBg,confusion:y.confusionBg},M=Q(n);if(G(M,J,Z,i.useMaxWidth??!0),M.attr("viewBox",`0 0 ${Z} ${J}`),f)M.append("title").text(f);if(T)M.append("desc").text(T);let z=M.append("g").attr("transform",`translate(${C}, ${C})`),K=It(c,m),ct=ht(i.seed,n),Ct=z.append("g").attr("class","cynefin-backgrounds"),rt=["complex","complicated","chaotic","clear"];for(let d of rt){let s=K[d];Ct.append("rect").attr("class","cynefinDomain").attr("x",s.x).attr("y",s.y).attr("width",s.w).attr("height",s.h).attr("fill",E[d]).attr("fill-opacity",0.4).attr("stroke","none")}let it=z.append("g").attr("class","cynefin-boundaries");it.append("path").attr("class","cynefinBoundary").attr("d",xt(c,m,ct,U)).attr("fill","none"),it.append("path").attr("class","cynefinBoundary").attr("d",$t(c,m,ct+100,U)).attr("fill","none"),it.append("path").attr("class","cynefinCliff").attr("d",bt(c,m)).attr("fill","none");let vt=c*0.15,Dt=m*0.15;z.append("path").attr("class","cynefinConfusion").attr("d",wt(c/2,m/2,vt,Dt)).attr("fill",E.confusion).attr("fill-opacity",0.5);let lt=z.append("g").attr("class","cynefin-labels");for(let d of rt){let s=K[d];lt.append("text").attr("class","cynefinDomainLabel").attr("x",s.cx).attr("y",h?s.cy-30:s.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(d.charAt(0).toUpperCase()+d.slice(1))}if(lt.append("text").attr("class","cynefinDomainLabel").attr("x",c/2).attr("y",h?m/2-10:m/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){let d=z.append("g").attr("class","cynefin-subtitles");for(let s of rt){let g=K[s],u=yt[s];d.append("text").attr("class","cynefinSubtitle").attr("x",g.cx).attr("y",g.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(u.model),d.append("text").attr("class","cynefinSubtitle").attr("x",g.cx).attr("y",g.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(u.practice)}d.append("text").attr("class","cynefinSubtitle").attr("x",c/2).attr("y",m/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(yt.confusion.practice)}let dt=z.append("g").attr("class","cynefin-items"),W=26,ft=10,kt=["complex","complicated","chaotic","clear","confusion"];for(let d of kt){let s=p.get(d);if(!s||s.items.length===0)continue;let g=K[d],u=d==="confusion",H=s.items,Y=0;if(u&&s.items.length>st)Y=s.items.length-st,H=s.items.slice(0,st);let F;if(u){let b=h?22:14;F=g.cy+b}else F=g.cy+(h?25:15);if([...H].forEach((b,V)=>{let v=F+V*(W+4),_=dt.append("g"),O=_.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",W/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(b.label),w=b.label.length*7,x=O.node();if(x&&typeof x.getBBox==="function"){let ot=x.getBBox();if(ot.width>0)w=ot.width}let k=w+ft*2,j=g.cx-k/2;_.attr("transform",`translate(${j}, ${v})`),_.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",k).attr("height",W).attr("rx",4).attr("ry",4).attr("fill",E[d]).attr("fill-opacity",0.95),O.attr("x",k/2).attr("y",W/2)}),Y>0){let b=F+H.length*(W+4),V=`+${Y} more`,v=dt.append("g"),_=v.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",W/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(V),O=V.length*7,w=_.node();if(w&&typeof w.getBBox==="function"){let j=w.getBBox();if(j.width>0)O=j.width}let x=O+ft*2,k=g.cx-x/2;v.attr("transform",`translate(${k}, ${b})`),v.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",W).attr("rx",4).attr("ry",4).attr("fill",E[d]).attr("fill-opacity",0.6),_.attr("x",x/2).attr("y",W/2)}}if(nt.length>0){let d=M.select("defs").empty()?M.append("defs"):M.select("defs"),s=`cynefin-arrow-${n}`;d.append("marker").attr("id",s).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");let g=z.append("g").attr("class","cynefin-arrows");nt.forEach((u)=>{let H=K[u.from],Y=K[u.to];if(!H||!Y)return;if(u.from===u.to){a.warn(`Cynefin renderer: skipping self-loop on domain "${u.from}"`);return}let{cx:F,cy:b}=H,{cx:V,cy:v}=Y,_=(F+V)/2,O=(b+v)/2,w=V-F,x=v-b,k=Math.sqrt(w*w+x*x),j=k*0.15,ot=-x/k,Tt=w/k,mt=_+ot*j,pt=O+Tt*j;if(g.append("path").attr("class","cynefinArrowLine").attr("d",`M${F},${b} Q${mt},${pt} ${V},${v}`).attr("fill","none").attr("marker-end",`url(#${s})`),u.label)g.append("text").attr("class","cynefinArrowLabel").attr("x",mt).attr("y",pt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(u.label)})}if(q)z.append("text").attr("class","cynefinTitle").attr("x",c/2).attr("y",-C/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(q)},"draw"),Ft={draw:Rt},Vt=t(()=>{let e=Ge(),n=S();return X(e,n.themeVariables).cynefin},"getCynefinTheme"),_t=t(()=>{let e=Vt();return`
|
|
2
|
+
.cynefinDomain {
|
|
3
|
+
stroke: none;
|
|
4
|
+
}
|
|
5
|
+
.cynefinDomainLabel {
|
|
6
|
+
font-size: ${e.domainFontSize}px;
|
|
7
|
+
font-weight: bold;
|
|
8
|
+
fill: ${e.labelColor};
|
|
9
|
+
}
|
|
10
|
+
.cynefinSubtitle {
|
|
11
|
+
font-size: ${e.itemFontSize-1}px;
|
|
12
|
+
fill: ${e.textColor};
|
|
13
|
+
font-style: italic;
|
|
14
|
+
}
|
|
15
|
+
.cynefinItem {
|
|
16
|
+
fill-opacity: 0.95;
|
|
17
|
+
stroke: ${e.boundaryColor};
|
|
18
|
+
stroke-width: 1;
|
|
19
|
+
}
|
|
20
|
+
.cynefinItemText {
|
|
21
|
+
font-size: ${e.itemFontSize}px;
|
|
22
|
+
fill: ${e.textColor};
|
|
23
|
+
}
|
|
24
|
+
.cynefinItemOverflow {
|
|
25
|
+
fill-opacity: 0.6;
|
|
26
|
+
stroke: ${e.boundaryColor};
|
|
27
|
+
stroke-width: 1;
|
|
28
|
+
stroke-dasharray: 3 2;
|
|
29
|
+
}
|
|
30
|
+
.cynefinBoundary {
|
|
31
|
+
stroke: ${e.boundaryColor};
|
|
32
|
+
stroke-width: ${e.boundaryWidth};
|
|
33
|
+
stroke-dasharray: 6 3;
|
|
34
|
+
}
|
|
35
|
+
.cynefinCliff {
|
|
36
|
+
stroke: ${e.cliffColor};
|
|
37
|
+
stroke-width: ${e.cliffWidth};
|
|
38
|
+
}
|
|
39
|
+
.cynefinConfusion {
|
|
40
|
+
stroke: ${e.boundaryColor};
|
|
41
|
+
stroke-width: 1.5;
|
|
42
|
+
stroke-dasharray: 4 2;
|
|
43
|
+
}
|
|
44
|
+
.cynefinArrowLine {
|
|
45
|
+
stroke: ${e.arrowColor};
|
|
46
|
+
stroke-width: ${e.arrowWidth};
|
|
47
|
+
fill: none;
|
|
48
|
+
}
|
|
49
|
+
.cynefinArrowHead {
|
|
50
|
+
fill: ${e.arrowColor};
|
|
51
|
+
stroke: none;
|
|
52
|
+
}
|
|
53
|
+
.cynefinArrowLabel {
|
|
54
|
+
font-size: ${e.itemFontSize-1}px;
|
|
55
|
+
fill: ${e.textColor};
|
|
56
|
+
}
|
|
57
|
+
.cynefinTitle {
|
|
58
|
+
font-size: ${e.domainFontSize+2}px;
|
|
59
|
+
font-weight: bold;
|
|
60
|
+
fill: ${e.labelColor};
|
|
61
|
+
}
|
|
62
|
+
`},"styles"),Et=_t,Ut={parser:Pt,db:at,renderer:Ft,styles:Et};export{Ut as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,a}from"./chunk-fzmrnh17.js";import{he,Sn,Tn}from"./chunk-rdb6091n.js";import{re}from"./chunk-js8dvtfg.js";import{wa,fn}from"./chunk-bdypt5mj.js";var i=wa().RailroadEbnf.parser.LangiumParser,o=t((e)=>{let r=e.alternatives.map(m);if(r.length===1)return r[0];return{type:"choice",alternatives:r}},"transformChoice"),m=t((e)=>{let r=e.elements.map(p);if(r.length===1)return r[0];return{type:"sequence",elements:r}},"transformSequence"),s=t((e)=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return o(e.element);case"EbnfOptional":return{type:"optional",element:o(e.element)};case"EbnfRepetition":return{type:"repetition",element:o(e.element),min:0,max:1/0};default:throw Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),l=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},s(r.except)]};default:throw Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),p=t((e)=>e.postfixes.reduce((r,n)=>l(r,n),s(e.base)),"transformTerm"),f=t((e)=>({name:e.name,definition:o(e.definition)}),"transformRule"),u=t((e)=>{if(re(e,he),e.title)he.setTitle(e.title);e.rules.map((r)=>he.addRule(f(r)))},"populateDb"),c={parse:t((e)=>{he.clear(),a.debug("[EBNF Parser] Starting Langium parse");let r=i.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new fn(r);let n=r.value;a.debug("[EBNF Parser] Parsed rules:",n.rules.length),u(n),a.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:he}},x={parser:c,db:he,renderer:Tn,styles:Sn};export{x as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{C,o,ee,r,e,x}from"./chunk-fba06jm8.js";import{t,a,hi,nt,Ts,Es,Rr,Ba,lo,el,Ce,Yn,B,As,ir,sn,co,tl,nl,rl,Rs,Ls,S,al,gi,He,G,uo,ol,yi,mo,f,Q,Ut,jt,Mr,cr,Xa,wi,Oo,dl,Bo,Fs,X,F,pl,Pn,Fo,qs}from"./chunk-fzmrnh17.js";import{Ai}from"./chunk-33tb7q04.js";function Re(i){let n=i?.constructor;return i===(typeof n==="function"?n.prototype:Object.prototype)}function ke(i){if(i==null)return!0;if(Oo(i)){if(typeof i.splice!=="function"&&typeof i!=="string"&&!Xa(i)&&!cr(i)&&!wi(i))return!1;return i.length===0}if(typeof i==="object"||typeof i==="function"){if(i instanceof Map||i instanceof Set)return i.size===0;let n=Object.keys(i);if(Re(i))return n.filter((s)=>s!=="constructor").length===0;return n.length===0}return!0}var K="comm",ce="rule",le="decl";var $e="@media",ze="@import";var Fe="@supports";var Oe="@namespace",oe="@keyframes";var fe="@layer",Be="@scope";var Pe=Math.abs,j=String.fromCharCode;function me(i){return i.trim()}function ne(i,n,s){return i.replace(n,s)}function V(i,n){return i.charCodeAt(n)|0}function H(i,n,s){return i.slice(n,s)}function I(i){return i.length}function ue(i){return i.length}function Z(i,n){return n.push(i),i}var pe=1,J=1,Ne=0,z=0,T=0,te="";function ge(i,n,s,d,c,l,u,m){return{value:i,root:n,parent:s,type:d,props:c,children:l,line:pe,column:J,length:u,return:"",siblings:m}}function Ve(){return T}function Ge(){if(T=z>0?V(te,--z):0,J--,T===10)J=1,pe--;return T}function O(){if(T=z<Ne?V(te,z++):0,J++,T===10)J=1,pe++;return T}function U(){return V(te,z)}function se(){return z}function ve(i,n){return H(te,i,n)}function re(i){switch(i){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ue(i){return pe=J=1,Ne=I(te=i),z=0,[]}function We(i){return te="",i}function he(i){return me(ve(z-1,De(i===91?i+2:i===40?i+1:i)))}function je(i){while(T=U())if(T<33)O();else break;return re(i)>2||re(T)>3?"":" "}function Ye(i,n){while(--n&&O())if(T<48||T>102||T>57&&T<65||T>70&&T<97)break;return ve(i,se()+(n<6&&U()==32&&O()==32))}function De(i){while(O())switch(T){case i:return z;case 34:case 39:if(i!==34&&i!==39)De(T);break;case 40:if(i===41)De(i);break;case 92:O();break}return z}function qe(i,n){while(O())if(i+T===57)break;else if(i+T===84&&U()===47)break;return"/*"+ve(n,z-1)+"*"+j(i===47?i:O())}function Xe(i){while(!re(U()))O();return ve(i,z)}function Ze(i){return We(ye("",null,null,null,[""],i=Ue(i),0,[0],i))}function ye(i,n,s,d,c,l,u,m,p){var v=0,y=0,w=u,h=0,k=0,L=0,D=1,E=1,M=1,A=0,b=0,P="",q=c,N=l,R=d,g=P;while(E)switch(L=b,b=O()){case 40:if(L!=108&&V(g,w-1)==58)A++,g+="(";else g+=he(b);break;case 41:A--,g+=")";break;case 34:case 39:case 91:g+=he(b);break;case 9:case 10:case 13:case 32:if(A>0){g+=j(b);break}g+=je(L);break;case 92:g+=Ye(se()-1,7);continue;case 47:switch(U()){case 42:case 47:if(Z(vt(qe(O(),se()),n,s,p),p),(re(L||1)==5||re(U()||1)==5)&&I(g)&&H(g,-1,void 0)!==" ")g+=" ";break;default:g+="/"}break;case 123*D:m[v++]=I(g)*M;case 125*D:case 59:case 0:if(A>0&&b){g+=j(b);break}switch(b){case 0:case 125:E=0;case 59+y:if(M==-1)g=ne(g,/\f/g,"");if(k>0&&(I(g)-w||D===0))Z(k>32?Qe(g+";",d,s,w-1,p):Qe(ne(g," ","")+";",d,s,w-2,p),p);break;case 59:g+=";";default:if(Z(R=Ke(g,n,s,v,y,c,m,P,q=[],N=[],w,l),l),b===123)if(y===0)ye(g,n,R,R,q,l,w,m,N);else{switch(h){case 99:if(V(g,3)===110)break;case 108:if(V(g,2)===97)break;default:y=0;case 100:case 109:case 115:}if(y)ye(i,R,R,d&&Z(Ke(i,R,R,0,0,c,m,P,c,q=[],w,N),N),c,N,w,m,d?q:N);else ye(g,R,R,R,[""],N,0,m,N)}}v=y=k=0,D=M=1,P=g="",w=u;break;case 58:w=1+I(g),k=L;default:if(D<1){if(b==123)--D;else if(b==125&&D++==0&&Ge()==125)continue}switch(g+=j(b),b*D){case 38:M=y>0?1:(g+="\f",-1);break;case 44:if(A>0)break;m[v++]=(I(g)-1)*M,M=1;break;case 64:if(U()===45)g+=he(O());h=U(),y=w=I(P=g+=Xe(se())),b++;break;case 45:if(L===45&&I(g)==2)D=0}}return l}function Ke(i,n,s,d,c,l,u,m,p,v,y,w){var h=c-1,k=c===0?l:[""],L=ue(k);for(var D=0,E=0,M=0;D<d;++D)for(var A=0,b=H(i,h+1,h=Pe(E=u[D])),P=i;A<L;++A)if(P=me(E>0?k[A]+" "+b:ne(b,/&\f/g,k[A])))p[M++]=P;return ge(i,n,s,c===0?ce:m,p,v,y,w)}function vt(i,n,s,d){return ge(i,n,s,K,j(Ve()),H(i,2,-2),0,d)}function Qe(i,n,s,d,c){return ge(i,n,s,le,H(i,0,d),H(i,d+1,-1),d,c)}function we(i,n){var s="";for(var d=0;d<i.length;d++)s+=n(i[d],d,i,n)||"";return s}function Je(i,n,s,d){switch(i.type){case fe:if(i.children.length)break;case ze:case Oe:case le:return i.return=i.return||i.value;case K:return"";case oe:return i.return=i.value+"{"+we(i.children,d)+"}";case ce:if(!I(i.value=i.props.join(",")))return""}return I(s=we(i.children,d))?i.return=i.value+"{"+s+"}":""}function er(i){var n=ue(i);return function(s,d,c,l){var u="";for(var m=0;m<n;m++)u+=i[m](s,d,c,l)||"";return u}}var nr="c4",ht=t((i)=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(i),"detector"),yt=t(async()=>{let{diagram:i}=await (C("zbwjj06m"),import("./chunk-zbwjj06m.js"));return{id:nr,diagram:i}},"loader"),wt={id:nr,detector:ht,loader:yt},xt=wt,sr="flowchart-v2",bt=t((i)=>/^\s*(graph|flowchart)/.test(i),"detector"),St=t(async()=>{let{diagram:i}=await (C("0ernj3c0"),import("./chunk-0ernj3c0.js"));return{id:sr,diagram:i}},"loader"),Et={id:sr,detector:bt,loader:St},Tt=Et,dr="agentflow",Ct=t((i)=>/^\s*agentflow-beta\b/.test(i),"detector"),kt=t(async()=>{let{diagram:i}=await (C("dsa5m3h6"),import("./chunk-dsa5m3h6.js"));return{id:dr,diagram:i}},"loader"),Dt={id:dr,detector:Ct,loader:kt},Mt=Dt,lr="swimlane",_t=t((i)=>/^\s*swimlane-beta\b/.test(i),"detector"),Lt=t(async()=>{let{diagram:i}=await (C("was9xf03"),import("./chunk-was9xf03.js"));return{id:lr,diagram:i}},"loader"),At={id:lr,detector:_t,loader:Lt},It=At,fr="er",Rt=t((i)=>/^\s*erDiagram/.test(i),"detector"),$t=t(async()=>{let{diagram:i}=await (C("823etvc3"),import("./chunk-823etvc3.js"));return{id:fr,diagram:i}},"loader"),zt={id:fr,detector:Rt,loader:$t},Ft=zt,mr="gitGraph",Ot=t((i)=>/^\s*gitGraph/.test(i),"detector"),Bt=t(async()=>{let{diagram:i}=await (C("nyjfcard"),import("./chunk-nyjfcard.js"));return{id:mr,diagram:i}},"loader"),Pt={id:mr,detector:Ot,loader:Bt},Nt=Pt,ur="gantt",Vt=t((i)=>/^\s*gantt/.test(i),"detector"),Gt=t(async()=>{let{diagram:i}=await (C("k9vc7kp2"),import("./chunk-k9vc7kp2.js"));return{id:ur,diagram:i}},"loader"),Ht={id:ur,detector:Vt,loader:Gt},Wt=Ht,pr="info",Yt=t((i)=>/^\s*info/.test(i),"detector"),qt=t(async()=>{let{diagram:i}=await (C("nhpm5nd5"),import("./chunk-nhpm5nd5.js"));return{id:pr,diagram:i}},"loader"),Xt={id:pr,detector:Yt,loader:qt},gr="pie",Kt=t((i)=>/^\s*pie/.test(i),"detector"),Qt=t(async()=>{let{diagram:i}=await (C("fh56vgfx"),import("./chunk-fh56vgfx.js"));return{id:gr,diagram:i}},"loader"),Zt={id:gr,detector:Kt,loader:Qt},vr="quadrantChart",Jt=t((i)=>/^\s*quadrantChart/.test(i),"detector"),ea=t(async()=>{let{diagram:i}=await (C("jrgdxqtq"),import("./chunk-jrgdxqtq.js"));return{id:vr,diagram:i}},"loader"),ra={id:vr,detector:Jt,loader:ea},ta=ra,hr="xychart",aa=t((i)=>/^\s*xychart(-beta)?/.test(i),"detector"),ia=t(async()=>{let{diagram:i}=await (C("a449xjq6"),import("./chunk-a449xjq6.js"));return{id:hr,diagram:i}},"loader"),oa={id:hr,detector:aa,loader:ia},na=oa,yr="requirement",sa=t((i)=>/^\s*requirement(Diagram)?/.test(i),"detector"),da=t(async()=>{let{diagram:i}=await (C("78akzkgs"),import("./chunk-78akzkgs.js"));return{id:yr,diagram:i}},"loader"),ca={id:yr,detector:sa,loader:da},la=ca,wr="sequence",fa=t((i)=>/^\s*sequenceDiagram/.test(i),"detector"),ma=t(async()=>{let{diagram:i}=await (C("ft05x3my"),import("./chunk-ft05x3my.js"));return{id:wr,diagram:i}},"loader"),ua={id:wr,detector:fa,loader:ma},pa=ua,xr="classDiagram",ga=t((i)=>/^\s*classDiagram/.test(i),"detector"),va=t(async()=>{let{diagram:i}=await (C("hzfp8kqx"),import("./chunk-hzfp8kqx.js"));return{id:xr,diagram:i}},"loader"),ha={id:xr,detector:ga,loader:va},ya=ha,br="stateDiagram",wa=t((i)=>/^\s*stateDiagram/.test(i),"detector"),xa=t(async()=>{let{diagram:i}=await (C("8q76yd76"),import("./chunk-8q76yd76.js"));return{id:br,diagram:i}},"loader"),ba={id:br,detector:wa,loader:xa},Sa=ba,Sr="journey",Ea=t((i)=>/^\s*journey/.test(i),"detector"),Ta=t(async()=>{let{diagram:i}=await (C("jg43a2xk"),import("./chunk-jg43a2xk.js"));return{id:Sr,diagram:i}},"loader"),Ca={id:Sr,detector:Ea,loader:Ta},ka=Ca,xe=4,de=75,Da=t((i)=>{let n=[];for(let c of i.split(/\s+/)){let l=[...c];while(l.length>de)n.push(l.slice(0,de).join("")),l=l.slice(de);if(l.length>0)n.push(l.join(""))}let s=[],d="";for(let c of n){let l=d?`${d} ${c}`:c;if([...l].length>de)s.push(d),d=c;else d=l}if(d)s.push(d);if(s.length>xe){s.length=xe;let c=s[xe-1]??"";s[xe-1]=`${[...c].slice(0,de-3).join("")}...`}return s},"wrapErrorMessage"),Ma=t((i,n,s,d)=>{a.debug(`rendering svg for syntax error
|
|
2
|
+
`);let c=Q(n),l=c.append("g"),u=Da(d?.db.getErrorMessage?.()??""),m=u.length>0?500+u.length*56:512;c.attr("viewBox",`0 0 2412 ${m}`),G(c,100,m,!0),l.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),l.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),l.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),l.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),l.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),l.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),l.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),l.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${s}`),u.forEach((p,v)=>{l.append("text").attr("class","error-text").attr("x",1440).attr("y",510+v*56).attr("font-size","42px").style("text-anchor","middle").text(p)})},"draw"),Er={draw:Ma},_a=Er,Me,La={clear(){Me=void 0},setErrorMessage(i){Me=i},getErrorMessage(){return Me}},Aa={db:La,renderer:Er,parser:{parse:t(()=>{return},"parse")}},Ia=Aa,Tr="flowchart-elk",Ra=t((i,n={})=>{if(/^\s*flowchart-elk/.test(i))return n.layout="elk",!0;return!1},"detector"),$a=t(async()=>{let{diagram:i}=await (C("0ernj3c0"),import("./chunk-0ernj3c0.js"));return{id:Tr,diagram:i}},"loader"),za={id:Tr,detector:Ra,loader:$a},Fa=za,Cr="timeline",Oa=t((i)=>/^\s*timeline/.test(i),"detector"),Pa=t(async()=>{let{diagram:i}=await (C("zfgpq4n4"),import("./chunk-zfgpq4n4.js"));return{id:Cr,diagram:i}},"loader"),Na={id:Cr,detector:Oa,loader:Pa},Va=Na,kr="mindmap",Ga=t((i)=>/^\s*mindmap/.test(i),"detector"),Ha=t(async()=>{let{diagram:i}=await (C("x8ps0p82"),import("./chunk-x8ps0p82.js"));return{id:kr,diagram:i}},"loader"),Ua={id:kr,detector:Ga,loader:Ha},Wa=Ua,Dr="kanban",ja=t((i)=>/^\s*kanban/.test(i),"detector"),Ya=t(async()=>{let{diagram:i}=await (C("xhr9jrjt"),import("./chunk-xhr9jrjt.js"));return{id:Dr,diagram:i}},"loader"),qa={id:Dr,detector:ja,loader:Ya},Ka=qa,_r="sankey",Qa=t((i)=>/^\s*sankey(-beta)?/.test(i),"detector"),Za=t(async()=>{let{diagram:i}=await (C("9s4bh6qm"),import("./chunk-9s4bh6qm.js"));return{id:_r,diagram:i}},"loader"),Ja={id:_r,detector:Qa,loader:Za},ei=Ja,Lr="packet",ri=t((i)=>/^\s*packet(-beta)?/.test(i),"detector"),ti=t(async()=>{let{diagram:i}=await (C("dww3grm3"),import("./chunk-dww3grm3.js"));return{id:Lr,diagram:i}},"loader"),ai={id:Lr,detector:ri,loader:ti},Ar="radar",ii=t((i)=>/^\s*radar-beta/.test(i),"detector"),oi=t(async()=>{let{diagram:i}=await (C("jcsf0ke5"),import("./chunk-jcsf0ke5.js"));return{id:Ar,diagram:i}},"loader"),ni={id:Ar,detector:ii,loader:oi},Ir="block",si=t((i)=>/^\s*block(-beta)?/.test(i),"detector"),di=t(async()=>{let{diagram:i}=await (C("h7byk4z3"),import("./chunk-h7byk4z3.js"));return{id:Ir,diagram:i}},"loader"),ci={id:Ir,detector:si,loader:di},li=ci,$r="treeView",fi=t((i)=>/^\s*treeView-beta/.test(i),"detector"),mi=t(async()=>{let{diagram:i}=await (C("6024wfxb"),import("./chunk-6024wfxb.js"));return{id:$r,diagram:i}},"loader"),ui={id:$r,detector:fi,loader:mi},pi=ui,zr="architecture",vi=t((i)=>/^\s*architecture/.test(i),"detector"),xi=t(async()=>{let{diagram:i}=await (C("xp90g2e7"),import("./chunk-xp90g2e7.js"));return{id:zr,diagram:i}},"loader"),bi={id:zr,detector:vi,loader:xi},Si=bi,Fr="eventmodeling",Ei=t((i)=>/^\s*eventmodeling/.test(i),"detector"),Ti=t(async()=>{let{diagram:i}=await (C("5mbz8yj9"),import("./chunk-5mbz8yj9.js"));return{id:Fr,diagram:i}},"loader"),Ci={id:Fr,detector:Ei,loader:Ti},ki=Ci,Or="ishikawa",Di=t((i)=>/^\s*ishikawa(-beta)?\b/i.test(i),"detector"),Mi=t(async()=>{let{diagram:i}=await (C("wvd3zj1m"),import("./chunk-wvd3zj1m.js"));return{id:Or,diagram:i}},"loader"),_i={id:Or,detector:Di,loader:Mi},Br="venn",Li=t((i)=>/^\s*venn-beta/.test(i),"detector"),Ii=t(async()=>{let{diagram:i}=await (C("jv5faf88"),import("./chunk-jv5faf88.js"));return{id:Br,diagram:i}},"loader"),Ri={id:Br,detector:Li,loader:Ii},$i=Ri,Pr="treemap",zi=t((i)=>/^\s*treemap/.test(i),"detector"),Fi=t(async()=>{let{diagram:i}=await (C("mnb2wdvy"),import("./chunk-mnb2wdvy.js"));return{id:Pr,diagram:i}},"loader"),Oi={id:Pr,detector:zi,loader:Fi},Nr="usecase",Bi=t((i)=>/^\s*usecase-beta(?:\s|$)/.test(i),"detector"),Pi=t(async()=>{let{diagram:i}=await (C("k295x81w"),import("./chunk-k295x81w.js"));return{id:Nr,diagram:i}},"loader"),Ni={id:Nr,detector:Bi,loader:Pi},Vr="wardley",Vi=t((i)=>/^\s*wardley-beta/i.test(i),"detector"),Gi=t(async()=>{let{diagram:i}=await (C("7p4mcqkd"),import("./chunk-7p4mcqkd.js"));return{id:Vr,diagram:i}},"loader"),Hi={id:Vr,detector:Vi,loader:Gi},Ui=Hi,Gr="cynefin",Wi=t((i)=>/^\s*cynefin-beta(?:[\s:]|$)/.test(i),"detector"),ji=t(async()=>{let{diagram:i}=await (C("7ck99bsp"),import("./chunk-7ck99bsp.js"));return{id:Gr,diagram:i}},"loader"),Yi={id:Gr,detector:Wi,loader:ji},Hr="railroad",qi=t((i)=>/^\s*railroad-beta/i.test(i),"detector"),Xi=t(async()=>{let{diagram:i}=await (C("j8f0m1dq"),import("./chunk-j8f0m1dq.js"));return{id:Hr,diagram:i}},"loader"),Ki={id:Hr,detector:qi,loader:Xi},Ur="railroadEbnf",Qi=t((i)=>/^\s*railroad-ebnf-beta/i.test(i),"detector"),Zi=t(async()=>{let{diagram:i}=await (C("7fjbyns9"),import("./chunk-7fjbyns9.js"));return{id:Ur,diagram:i}},"loader"),Ji={id:Ur,detector:Qi,loader:Zi},Wr="railroadAbnf",eo=t((i)=>/^\s*railroad-abnf-beta/i.test(i),"detector"),ro=t(async()=>{let{diagram:i}=await (C("jt0s9qs7"),import("./chunk-jt0s9qs7.js"));return{id:Wr,diagram:i}},"loader"),to={id:Wr,detector:eo,loader:ro},jr="railroadPeg",ao=t((i)=>/^\s*railroad-peg-beta/i.test(i),"detector"),io=t(async()=>{let{diagram:i}=await (C("zgas56xw"),import("./chunk-zgas56xw.js"));return{id:jr,diagram:i}},"loader"),oo={id:jr,detector:ao,loader:io},rr=!1,Ee=t(()=>{if(rr)return;rr=!0,yi("error",Ia,(i)=>i.toLowerCase().trim()==="error"),yi("---",{db:{clear:t(()=>{},"clear")},styles:{},renderer:{draw:t(()=>{},"draw")},parser:{parse:t(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:t(()=>null,"init")},(i)=>i.toLowerCase().trimStart().startsWith("---")),lo(Fa,Wa,Si),lo(Mt,xt,Ka,ya,Ft,Wt,Xt,Zt,la,pa,It,Tt,Va,Nt,Sa,ka,ta,ei,ai,na,li,ki,pi,ni,_i,Oi,Ki,Ji,to,oo,$i,Ui,Yi,Ni)},"addDiagrams"),no=t(async()=>{a.debug("Loading registered diagrams");let n=(await Promise.allSettled(Object.entries(Rr).map(async([s,{detector:d,loader:c}])=>{if(!c)return;try{mo(s)}catch{try{let{diagram:l,id:u}=await c();yi(u,l,d)}catch(l){throw a.error(`Failed to load external diagram with key ${s}. Removing from detectors.`),delete Rr[s],l}}}))).filter((s)=>s.status==="rejected");if(n.length>0){a.error(`Failed to load ${n.length} external diagrams`);for(let s of n)a.error(s);throw Error(`Failed to load ${n.length} external diagrams`)}},"loadRegisteredDiagrams"),so="graphics-document document";function Yr(i,n){if(i.attr("role",so),n!=="")i.attr("aria-roledescription",n)}t(Yr,"setA11yDiagramInfo");function qr(i,n,s,d){if(i.insert===void 0)return;if(s){let c=`chart-desc-${d}`;i.attr("aria-describedby",c),i.insert("desc",":first-child").attr("id",c).text(s)}if(n){let c=`chart-title-${d}`;i.attr("aria-labelledby",c),i.insert("title",":first-child").attr("id",c).text(n)}}t(qr,"addSVGa11yTitleDescription");var be=class i{constructor(n,s,d,c,l){this.type=n,this.text=s,this.db=d,this.parser=c,this.renderer=l}static{t(this,"Diagram")}static async fromText(n,s={}){let d=typeof n==="string"?{raw:n,cleaned:n}:n,c=S(),l=Ba(d.cleaned,c);try{mo(l)}catch{let h=el(l);if(!h)throw new Es(`Diagram ${l} not found.`);let{id:k,diagram:L}=await h();yi(k,L)}let{db:u,parser:m,renderer:p,init:v}=mo(l);if(m.parser)m.parser.yy=u;if(u.clear?.(),v?.(c),s.title)u.setDiagramTitle?.(s.title);let y=d.cleaned;if(u.preserveCommentsWhenParsing&&d.withComments){let h=c.maxTextSize??B.maxTextSize;if(d.withComments.length>h)a.warn(`Comment-preserving source exceeds maxTextSize (${d.withComments.length} > ${h}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`);else y=d.withComments}let w=pl(y)+`
|
|
3
|
+
`;if(d.frontmatterLineOffset)u.setFrontmatterLineOffset?.(d.frontmatterLineOffset);return await m.parse(w),new i(l,w,u,m,p)}async render(n,s){await this.renderer.draw(this.text,n,s,this)}getParser(){return this.parser}getType(){return this.type}},tr=[],fo=t(()=>{tr.forEach((i)=>{i()}),tr=[]},"attachFunctions"),po=t((i)=>i.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Xr(i){let n=Ts(i);if(!n)return{text:i,metadata:{}};let s=n.indent,d=s?n.body.split(`
|
|
4
|
+
`).map((u)=>u.startsWith(s)?u.slice(s.length):u).join(`
|
|
5
|
+
`):n.body,c=jt(d,{schema:Ut})??{};c=typeof c==="object"&&!Array.isArray(c)?c:{};let l={};if(c.displayMode)l.displayMode=c.displayMode.toString();if(c.title)l.title=c.title.toString();if(c.config)l.config=c.config;return{text:i.slice(n.length),metadata:l}}t(Xr,"extractFrontMatter");var go=t((i)=>i.replace(/\r\n?/g,`
|
|
6
|
+
`).replace(/<(\w+)([^>]*)>/g,(n,s,d)=>"<"+s+d.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),vo=t((i)=>{let{text:n,metadata:s}=Xr(i),{displayMode:d,title:c,config:l={}}=s;if(d){if(!l.gantt)l.gantt={};l.gantt.displayMode=d}return{title:c,config:l,text:n}},"processFrontmatter"),ho=t((i)=>{let n=F.detectInit(i)??{},s=F.detectDirective(i,"wrap");if(Array.isArray(s))n.wrap=s.some(({type:d})=>d==="wrap");else if(s?.type==="wrap")n.wrap=!0;return{text:dl(i),directive:n}},"processDirectives");function Ae(i){let n=i,s=go(i),d=vo(s),c=ho(d.text),l=X(d.config,c.directive),u=c.text,m=po(u),p=s.length>d.text.length?(s.substring(0,s.length-d.text.length).match(/\n/g)??[]).length:0;return{code:{raw:n,cleaned:m,withComments:u,frontmatterLineOffset:p},title:d.title,config:l}}t(Ae,"preprocessDiagram");function Kr(i){let n=new TextEncoder().encode(i),s=Array.from(n,(d)=>String.fromCodePoint(d)).join("");return btoa(s)}t(Kr,"toBase64");var yo=50000,wo="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",xo="sandbox",bo="loose",So="http://www.w3.org/2000/svg",Eo="http://www.w3.org/1999/xlink",To="http://www.w3.org/1999/xhtml",Co="100%",ko="100%",Do="border:0;margin:0;",Mo="margin:0",_o="allow-top-navigation-by-user-activation allow-popups",Lo='The "iframe" tag is not supported by your browser.',Ao=["foreignobject"],Io=["dominant-baseline"];function Ie(i){let n=Ae(i);gi();let s;try{s=Ba(n.code.cleaned,S())}catch{s=void 0}return co(s),al(n.config??{}),n}t(Ie,"processAndSetConfigs");async function Qr(i,n){Ee();try{let{code:s,config:d}=Ie(i);return{diagramType:(await be.fromText(s)).type,config:d}}catch(s){if(n?.suppressErrors)return!1;throw s}finally{co(void 0)}}t(Qr,"parse");var ar=t((i,n,s=[])=>{let d=As(`{ ${s.join(" !important; ")} !important; }`);return`.${i} ${n} ${d}`},"cssImportantStyles"),Ro=t((i,n=new Map)=>{let s=new CSSStyleSheet;if(i.fontFamily!==void 0)s.insertRule(`:root { --mermaid-font-family: ${i.fontFamily}}`,s.cssRules.length);if(i.altFontFamily!==void 0)s.insertRule(`:root { --mermaid-alt-font-family: ${i.altFontFamily}}`,s.cssRules.length);if(n instanceof Map){let m=He(i)?["> *","span"]:["rect","polygon","ellipse","circle","path"];n.forEach((p)=>{if(!ke(p.styles))m.forEach((v)=>{s.insertRule(ar(p.id,v,p.styles),s.cssRules.length)});if(!ke(p.textStyles))s.insertRule(ar(p.id,"tspan",(p?.textStyles||[]).map((v)=>v.replace("color","fill"))),s.cssRules.length)})}let d="";if(i.themeCSS!==void 0)if(typeof s.replaceSync==="function"){let c=new CSSStyleSheet;c.replaceSync(i.themeCSS),d=uo(c)+`
|
|
7
|
+
`}else d+=`${i.themeCSS}
|
|
8
|
+
`;return d+uo(s)},"createCssStyles"),$o=t((i,n)=>we(Ze(`${i}{${n}}`),er([t(function(d,c,l,u){if(d.type==="rule"&&Array.isArray(d.props)){if(d.parent&&d.parent.type===oe)return;d.props=d.props.map((m)=>{if(m===i&&Array.isArray(d.children)&&d.children.every((v)=>{if(v.type!=="decl")return!1;return new Set(["font-family","font-size","fill"]).has(v.props)}))return m;if(!((m.startsWith(`${i} `)||m.startsWith(`${i}>`))&&!m.startsWith(`${i} ||`)))return`${i} ${m}`;return m})}else if(d.type.startsWith("@")){if(![$e,Fe,fe,Be,"@container","@starting-style",oe].includes(d.type))a.warn(`Removing unsupported at-rule ${d.type} from CSS`),d.type=K}},"addNamespace"),Je])),"compileCSS"),zo=t((i,n,s,d)=>{let c=Ro(i,s),l=ol(n,c,{...i.themeVariables,theme:i.theme,look:i.look},d);return $o(d,l)},"createUserStyles"),Po=t((i="",n,s)=>{let d=i;if(!s&&!n)d=d.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#');return d=Pn(d),d=d.replace(/<br>/g,"<br/>"),d},"cleanUpSvgCode"),No=t((i="",n)=>{let s=n?.viewBox?.baseVal?.height?n.viewBox.baseVal.height+"px":ko,d=Kr(`<body style="${Mo}">${i}</body>`);return`<iframe style="width:${Co};height:${s};${Do}" src="data:text/html;charset=UTF-8;base64,${d}" sandbox="${_o}">
|
|
9
|
+
${Lo}
|
|
10
|
+
</iframe>`},"putIntoIFrame"),or=t((i,n,s,d,c)=>{let l=i.append("div");if(l.attr("id",s),d)l.attr("style",d);let u=l.append("svg").attr("id",n).attr("width","100%").attr("xmlns",So);if(c)u.attr("xmlns:xlink",c);return u.append("g"),i},"appendDivSvgG");function Le(i,n){return i.append("iframe").attr("id",n).attr("style","width: 100%; height: 100%;").attr("sandbox","")}t(Le,"sandboxedIframe");var Vo=t((i,n,s,d)=>{i.getElementById(n)?.remove(),i.getElementById(s)?.remove(),i.getElementById(d)?.remove()},"removeExistingElements"),Go=t(async function(i,n,s){Ee();let d=Ie(n),c=d.code;n=c.cleaned;let l=S();if(a.debug(l),n.length>(l?.maxTextSize??yo))n=wo,c={raw:n,cleaned:n};let u=`#${i}`,m="i"+i,p="#"+m,v="d"+i,y="#"+v,w=t(()=>{let ie=f(k?p:y).node();if(ie&&"remove"in ie)ie.remove()},"removeTempElements"),h=f(document.body),k=l.securityLevel===xo,L=l.securityLevel===bo,D=l.fontFamily;if(s!==void 0){if(s)s.innerHTML="";if(k){let _=Le(f(s),m);h=f(_.nodes()[0].contentDocument.body),h.node().style.margin="0"}else h=f(s);or(h,i,v,`font-family: ${D}`,Eo)}else{if(Vo(document,i,v,m),k){let _=Le(f(document.body),m);h=f(_.nodes()[0].contentDocument.body),h.node().style.margin="0"}else h=f("body");or(h,i,v)}let E,M;try{E=await be.fromText(c,{title:d.title})}catch(_){if(l.suppressErrorRendering)throw w(),_;E=await be.fromText("error"),M=_,E.db.setErrorMessage?.(Fs(_))}let A=h.select(y).node(),b=E.type,P=A.firstChild,q=P.firstChild,N=E.renderer.getClasses?.(n,E),R=zo(l,b,N,u),g=document.createElement("style");g.innerHTML=R,P.insertBefore(g,q);try{await E.renderer.draw(n,i,"12.2.0",E)}catch(_){if(l.suppressErrorRendering)w();else _a.draw(n,i,"12.2.0");throw _}let ft=h.select(`${y} svg`),mt=E.db.getAccTitle?.(),ut=E.db.getAccDescription?.();Jr(b,ft,mt,ut);let pt=t(()=>{h.select(`[id="${i}"]`).selectAll("foreignobject > *").attr("xmlns",To);let _=h.select(y).node().innerHTML;if(a.debug("config.arrowMarkerAbsolute",l.arrowMarkerAbsolute),_=Po(_,k,sn(l.arrowMarkerAbsolute)),k){let ie=h.select(y+" svg").node();_=No(_,ie)}else if(!L)_=nt.sanitize(_,{ADD_TAGS:Ao,ADD_ATTR:Io,HTML_INTEGRATION_POINTS:{foreignobject:!0}});return fo(),_},"serializeSvg")();if(M)throw M;return w(),{diagramType:b,svg:pt,bindFunctions:E.db.bindFunctions}},"renderDiagram"),Ho=t(async function(i,n,s){try{return await Go(i,n,s)}finally{co(void 0)}},"render");function Zr(i={}){let n=Ce({},i);if(n?.fontFamily&&!n.themeVariables?.fontFamily){if(!n.themeVariables)n.themeVariables={};n.themeVariables.fontFamily=n.fontFamily}nl(n);let s=ir.theme;if(n?.theme&&Object.hasOwn(Yn,n.theme))n.themeVariables=Yn[n.theme].getThemeVariables(n.themeVariables);else if(n){if(n.theme!=null&&n.theme!=="null")n.theme=s;n.themeVariables=Yn[s].getThemeVariables(n.themeVariables)}let d=typeof n==="object"?tl(n):Rs();hi(d.logLevel),Ee()}t(Zr,"initialize");var Uo=t((i,n={})=>{let{code:s}=Ae(i);return be.fromText(s,n)},"getDiagramFromText");function Jr(i,n,s,d){Yr(n,i),qr(n,s,d,n.attr("id"))}t(Jr,"addA11yInfo");var Y=Object.freeze({render:Ho,parse:Qr,getDiagramFromText:Uo,initialize:Zr,getConfig:S,setConfig:Ls,getSiteConfig:Rs,updateSiteConfig:rl,reset:t(()=>{gi()},"reset"),globalReset:t(()=>{gi(ir)},"globalReset"),defaultConfig:ir});hi(S().logLevel);gi(S());var Wo=t((i,n,s)=>{if(a.warn(i),Bo(i)){if(s)s(i.str,i.hash);n.push({...i,message:i.str,error:i})}else{if(s)s(i);if(i instanceof Error)n.push({str:i.message,message:i.message,hash:i.name,error:i})}},"handleError"),et=t(async function(i={querySelector:".mermaid"}){try{await jo(i)}catch(n){if(Bo(n))a.error(n.str);if(W.parseError)W.parseError(n);if(!i.suppressErrors)throw a.error("Use the suppressErrors option to suppress these errors"),n}},"run"),jo=t(async function({postRenderCallback:i,querySelector:n,nodes:s}={querySelector:".mermaid"}){let d=Y.getConfig();a.debug(`${!i?"No ":""}Callback function found`);let c;if(s)c=s;else if(n)c=document.querySelectorAll(n);else throw Error("Nodes and querySelector are both undefined");if(a.debug(`Found ${c.length} diagrams`),d?.startOnLoad!==void 0)a.debug("Start On Load: "+d?.startOnLoad),Y.updateSiteConfig({startOnLoad:d?.startOnLoad});let l=new F.InitIDGenerator(d.deterministicIds,d.deterministicIDSeed),u,m=[];for(let p of Array.from(c)){if(a.info("Rendering diagram: "+p.id),p.getAttribute("data-processed"))continue;p.setAttribute("data-processed","true");let v=`mermaid-${l.next()}`;u=p.innerHTML,u=Fo(F.entityDecode(u)).trim().replace(/<br\s*\/?>/gi,"<br/>");let y=F.detectInit(u);if(y)a.debug("Detected early reinit: ",y);try{let{svg:w,bindFunctions:h}=await it(v,u,p);if(p.innerHTML=w,i)await i(v);if(h)h(p)}catch(w){Wo(w,m,W.parseError)}}if(m.length>0)throw m[0]},"runThrowsErrors"),rt=t(function(i){Y.initialize(i)},"initialize"),Yo=t(async function(i,n,s){if(a.warn("mermaid.init is deprecated. Please use run instead."),i)rt(i);let d={postRenderCallback:s,querySelector:".mermaid"};if(typeof n==="string")d.querySelector=n;else if(n)if(n instanceof HTMLElement)d.nodes=[n];else d.nodes=n;await et(d)},"init"),qo=t(async(i,{lazyLoad:n=!0}={})=>{if(Ee(),lo(...i),n===!1)await no()},"registerExternalDiagrams"),tt=t(function(){if(W.startOnLoad){let{startOnLoad:i}=Y.getConfig();if(i)W.run().catch((n)=>a.error("Mermaid failed to initialize",n))}},"contentLoaded");if(typeof document<"u")window.addEventListener("load",tt,!1);var Xo=t(function(i){W.parseError=i},"setParseErrorHandler"),Se=[],_e=!1,at=t(async()=>{if(_e)return;_e=!0;while(Se.length>0){let i=Se.shift();if(i)try{await i()}catch(n){a.error("Error executing queue",n)}}_e=!1},"executeQueue"),Ko=t(async(i,n)=>new Promise((s,d)=>{let c=t(()=>new Promise((l,u)=>{Y.parse(i,n).then((m)=>{l(m),s(m)},(m)=>{a.error("Error parsing",m),W.parseError?.(m),u(m),d(m)})}),"performCall");Se.push(c),at().catch(d)}),"parse"),it=t((i,n,s)=>new Promise((d,c)=>{let l=t(()=>new Promise((u,m)=>{Y.render(i,n,s).then((p)=>{u(p),d(p)},(p)=>{a.error("Error parsing",p),W.parseError?.(p),m(p),c(p)})}),"performCall");Se.push(l),at().catch(c)}),"render"),Qo=t(()=>Object.keys(Rr).map((i)=>({id:i})),"getRegisteredDiagramsMetadata"),W={startOnLoad:!0,mermaidAPI:Y,parse:Ko,render:it,init:Yo,run:et,registerExternalDiagrams:qo,registerLayoutLoaders:qs,initialize:rt,parseError:void 0,contentLoaded:tt,setParseErrorHandler:Xo,detectType:Ba,registerIconPacks:Mr,getRegisteredDiagramsMetadata:Qo},Te=W;/*! Check if previously processed *//*!
|
|
11
|
+
* Wait for document loaded before starting the execution
|
|
12
|
+
*/function ot(i,n){if(!(n instanceof Error)||!("hash"in n))return;let s=n.hash;if(typeof s!=="object"||s===null)return;if(!("token"in s)||s.token!=="LINK_ID")return;if(!("text"in s)||typeof s.text!=="string"||!s.text.endsWith("@"))return;if(!("line"in s)||typeof s.line!=="number"||!Number.isInteger(s.line))return;let d=i.split(`
|
|
13
|
+
`),c=d[s.line];if(c===void 0)return;let l=c.lastIndexOf(s.text);if(l<0)return;let u=l+s.text.length-1;return d[s.line]=`${c.slice(0,u)}@${c.slice(u+1)}`,d.join(`
|
|
14
|
+
`)}function st(i,n){let s=n?.colors?.hex,d=n?.fonts?.sans||"var(--font-sans)";if(i==="dark")return{darkMode:!0,fontFamily:d,fontSize:"14px",useGradient:!1,dropShadow:"none",background:"transparent",mainBkg:"#1c2a3d",nodeBkg:"#1c2a3d",nodeBorder:"#2f5c94",nodeTextColor:"#eef1f5",primaryColor:"#1c2a3d",primaryBorderColor:"#2f5c94",primaryTextColor:"#eef1f5",secondaryColor:"#21252b",secondaryBorderColor:"#3e4552",secondaryTextColor:"#c2c8d2",tertiaryColor:"#1d2127",tertiaryBorderColor:"#333945",tertiaryTextColor:"#c2c8d2",lineColor:"#6d7887",arrowheadColor:"#8a95a5",defaultLinkColor:"#6d7887",edgeLabelBackground:s?.panel??"#1f2329",labelBoxBkgColor:s?.panel??"#1f2329",labelBoxBorderColor:s?.line??"#333945",labelTextColor:s?.dim??"#c2c8d2",textColor:s?.dim??"#c2c8d2",titleColor:s?.ink??"#eef1f5",clusterBkg:"#1b1e24",clusterBorder:"#353b47",radius:8,strokeWidth:"1.5px"};return{darkMode:!1,fontFamily:d,fontSize:"14px",useGradient:!1,dropShadow:"none",background:"transparent",mainBkg:"#eef4fd",nodeBkg:"#eef4fd",nodeBorder:"#a9c8f1",nodeTextColor:"#181d24",primaryColor:"#eef4fd",primaryBorderColor:"#a9c8f1",primaryTextColor:"#181d24",secondaryColor:"#eef1f4",secondaryBorderColor:"#d0d5dd",secondaryTextColor:"#535e6e",tertiaryColor:"#e8ecf0",tertiaryBorderColor:"#cbd2dc",tertiaryTextColor:"#535e6e",lineColor:"#98a2b0",arrowheadColor:"#6b7787",defaultLinkColor:"#98a2b0",edgeLabelBackground:s?.panel??"#ffffff",labelBoxBkgColor:s?.panel??"#ffffff",labelBoxBorderColor:s?.line??"#e2e6eb",labelTextColor:s?.dim??"#535e6e",textColor:s?.dim??"#535e6e",titleColor:s?.ink??"#181d24",clusterBkg:"#f8fafc",clusterBorder:"#e2e6eb",radius:8,strokeWidth:"1.5px"}}function dt(i){let n=i==="dark"?{fill:"#3a2a17",stroke:"#a86b14"}:{fill:"#fff6e5",stroke:"#f0bf5c"};return`
|
|
15
|
+
.node rect, .node .basic.label-container { rx: 10px; ry: 10px; }
|
|
16
|
+
.node .label, .nodeLabel { font-weight: 500; }
|
|
17
|
+
.node polygon { fill: ${n.fill} !important; stroke: ${n.stroke} !important; }
|
|
18
|
+
.edgeLabel, .edgeLabel p, .edgeLabel rect { border-radius: 999px; font-size: 12px; }
|
|
19
|
+
.edgeLabel p { padding: 1px 6px; }
|
|
20
|
+
.cluster rect { rx: 12px; ry: 12px; stroke-dasharray: 4 3; }
|
|
21
|
+
`}var Zo=60,ae=new Map;function ct(i,n,s=""){return`${n}:${s}:${i}`}function Jo(i,n){if(ae.size>=Zo){let s=ae.keys().next().value;if(s!==void 0)ae.delete(s)}ae.set(i,n)}var lt;function en(i,n,s){let d=s??i;if(lt===d)return;Te.initialize({startOnLoad:!1,suppressErrorRendering:!0,securityLevel:"strict",theme:"base",themeVariables:st(i,n),themeCSS:dt(i),fontFamily:n?.fonts?.sans||"var(--font-sans)",flowchart:{useMaxWidth:!1,curve:"basis",padding:14,nodeSpacing:44,rankSpacing:56},sequence:{useMaxWidth:!1},state:{useMaxWidth:!1},class:{useMaxWidth:!1},er:{useMaxWidth:!1},gantt:{useMaxWidth:!1},mindmap:{useMaxWidth:!1},timeline:{useMaxWidth:!1}}),lt=d}var rn=0,tn=32;async function an(i,n,s,d,c){en(n,d,c);let l=`${s}-${++rn}`,u=i,m=0;try{while(!0)try{let{svg:p}=await Te.render(l,u);return p.replace(/filter="url\(#[^"]+\)"/g,"").replace(/filter:\s*url\(#[^)]+\);?/g,"")}catch(p){let v=m<tn?ot(u,p):void 0;if(!v)throw p;u=v,m+=1}}finally{document.getElementById(`d${l}`)?.remove()}}var on=(i)=>i instanceof Error?i.message:String(i);function cs(i){let n=x(),s=n.useTheme?.(),d=n.useColorScheme?.(),c=s?.resolved??d??"light",l=s?.tokens,u=s?.themeID?`${s.themeID}-${c}`:c,m=`mermaid-${ee().replace(/[^\w-]/g,"")}`,p=i.code.trim(),[v,y]=r(()=>ae.get(ct(p,c,u))),[w,h]=r(),[k,L]=r(!v);return o(()=>{let D=ct(p,c,u),E=ae.get(D);if(E){y(E),h(void 0),L(!1);return}let M=!0;L(!0);let A=setTimeout(async()=>{try{if(i.streaming&&!await Te.parse(p,{suppressErrors:!0})){if(M)L(!1);return}let b=await an(p,c,m,l,u);if(Jo(D,b),!M)return;y(b),h(void 0)}catch(b){if(M)h(on(b))}if(M)L(!1)},i.streaming?200:0);return()=>{M=!1,clearTimeout(A)}},[p,c,u,l,i.streaming,m]),e(Ai,{title:"流程图",code:i.code,codeLang:"mermaid",rendered:Boolean(v),pending:k,streaming:i.streaming,error:w,children:e("div",{role:"img","aria-label":"Mermaid 流程图",className:"flex overflow-x-auto px-6 py-7 [background-image:radial-gradient(var(--color-line)_1px,transparent_1px)] [background-size:16px_16px] [&_svg]:mx-auto [&_svg]:h-auto [&_svg]:max-w-full",dangerouslySetInnerHTML:{__html:v??""}})})}export{cs as MermaidBlock};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import{re}from"./chunk-js8dvtfg.js";import{t,a,Ge,S,G,A,R,I,L,D,P,N,u,Q,X}from"./chunk-fzmrnh17.js";import{me}from"./chunk-bdypt5mj.js";var at=t((r,i)=>{let n=r<=1?r*100:r;if(n<0||n>100)throw Error(`${i} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${r}`);return n},"toPercent"),q=t((r,i,n)=>({x:at(i,`${n} evolution`),y:at(r,`${n} visibility`)}),"toCoordinates"),lt=t((r)=>{if(!r)return;if(r==="+<>")return"bidirectional";if(r==="+<")return"backward";if(r==="+>")return"forward";return},"getFlowFromPort"),Yt=t((r)=>{if(!r?.startsWith("+"))return{};let n=/^\+'([^']*)'/.exec(r)?.[1];if(r.includes("<>"))return{flow:"bidirectional",label:n};if(r.includes("<"))return{flow:"backward",label:n};if(r.includes(">"))return{flow:"forward",label:n};return{label:n}},"extractFlowFromArrow"),It=t((r,i)=>{if(re(r,i),r.size)i.setSize(r.size.width,r.size.height);if(r.evolution){let n=r.evolution.stages.map((o)=>{if(o.secondName)return`${o.name.trim()} / ${o.secondName.trim()}`;return o.name.trim()}),g=r.evolution.stages.filter((o)=>o.boundary!==void 0).map((o)=>o.boundary);i.updateAxes({stages:n,stageBoundaries:g})}if(r.anchors.forEach((n)=>{let g=q(n.visibility,n.evolution,`Anchor "${n.name}"`);i.addNode(n.name,n.name,g.x,g.y,"anchor")}),r.components.forEach((n)=>{let g=q(n.visibility,n.evolution,`Component "${n.name}"`),o=n.label?(n.label.negX?-1:1)*n.label.offsetX:void 0,c=n.label?(n.label.negY?-1:1)*n.label.offsetY:void 0,k=n.decorator?.strategy;i.addNode(n.name,n.name,g.x,g.y,"component",o,c,n.inertia,k)}),r.notes.forEach((n)=>{let g=q(n.visibility,n.evolution,`Note "${n.text}"`);i.addNote(n.text,g.x,g.y)}),r.pipelines.forEach((n)=>{let g=i.getNode(n.parent);if(!g||typeof g.y!=="number")throw Error(`Pipeline "${n.parent}" must reference an existing component with coordinates.`);let o=g.y;i.startPipeline(n.parent),n.components.forEach((c)=>{let k=`${n.parent}_${c.name}`,W=c.label?(c.label.negX?-1:1)*c.label.offsetX:void 0,w=c.label?(c.label.negY?-1:1)*c.label.offsetY:void 0,J=at(c.evolution,`Pipeline component "${c.name}" evolution`);i.addNode(k,c.name,J,o,"pipeline-component",W,w),i.addPipelineComponent(n.parent,k)})}),r.links.forEach((n)=>{let g=!!n.arrow&&(n.arrow.includes("-.->")||n.arrow.includes(".-.")),o=lt(n.fromPort)??lt(n.toPort),{flow:c,label:k}=Yt(n.arrow);if(!o&&c)o=c;let W=n.linkLabel,w=k??W;i.addLink(i.resolveNodeId(n.from),i.resolveNodeId(n.to),g,w,o)}),r.evolves.forEach((n)=>{let g=i.getNode(n.component);if(g?.y!==void 0){let o=at(n.target,`Evolve target for "${n.component}"`);i.addTrend(n.component,o,g.y)}}),r.annotations.length>0){let n=r.annotations[0],g=q(n.x,n.y,"Annotations box");i.setAnnotationsBox(g.x,g.y)}r.annotation.forEach((n)=>{let g=q(n.x,n.y,`Annotation ${n.number}`);i.addAnnotation(n.number,[{x:g.x,y:g.y}],n.text)}),r.accelerators.forEach((n)=>{let g=q(n.x,n.y,`Accelerator "${n.name}"`);i.addAccelerator(n.name,g.x,g.y)}),r.deaccelerators.forEach((n)=>{let g=q(n.x,n.y,`Deaccelerator "${n.name}"`);i.addDeaccelerator(n.name,g.x,g.y)})},"populateDb"),ct={parser:{yy:void 0},parse:t(async(r)=>{let i=await me("wardley",r);a.debug(i);let n=ct.parser?.yy;if(!n||typeof n.addNode!=="function")throw Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");It(i,n)},"parse")},Bt=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{t(this,"WardleyBuilder")}addNode(r){let i=this.nodes.get(r.id)??{id:r.id,label:r.label},n={...i,...r,className:r.className??i.className,labelOffsetX:r.labelOffsetX??i.labelOffsetX,labelOffsetY:r.labelOffsetY??i.labelOffsetY};this.nodes.set(r.id,n)}addLink(r){this.links.push(r)}addTrend(r){this.trends.set(r.nodeId,r)}startPipeline(r){this.pipelines.set(r,{nodeId:r,componentIds:[]});let i=this.nodes.get(r);if(i)i.isPipelineParent=!0}addPipelineComponent(r,i){let n=this.pipelines.get(r);if(n)n.componentIds.push(i);let g=this.nodes.get(i);if(g)g.inPipeline=!0}addAnnotation(r){this.annotations.push(r)}addNote(r){this.notes.push(r)}addAccelerator(r){this.accelerators.push(r)}addDeaccelerator(r){this.deaccelerators.push(r)}setAnnotationsBox(r,i){this.annotationsBox={x:r,y:i}}setAxes(r){this.axes={...this.axes,...r}}setSize(r,i){this.size={width:r,height:i}}getNode(r){return this.nodes.get(r)}resolveNodeId(r){if(this.nodes.has(r))return r;for(let[i,n]of this.nodes)if(n.label===r)return i;return r}build(){let r=[];for(let i of this.nodes.values()){if(typeof i.x!=="number"||typeof i.y!=="number")throw Error(`Node "${i.label}" is missing coordinates`);r.push(i)}return{nodes:r,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},v=new Bt;function pt(){return u()["wardley-beta"]}t(pt,"getConfig");function ht(r,i,n,g,o,c,k,W,w){v.addNode({id:r,label:i,x:n,y:g,className:o,labelOffsetX:c,labelOffsetY:k,inertia:W,sourceStrategy:w})}t(ht,"addNode");function ft(r,i,n=!1,g,o){v.addLink({source:r,target:i,dashed:n,label:g,flow:o})}t(ft,"addLink");function xt(r,i,n){v.addTrend({nodeId:r,targetX:i,targetY:n})}t(xt,"addTrend");function gt(r,i,n){v.addAnnotation({number:r,coordinates:i,text:n})}t(gt,"addAnnotation");function yt(r,i,n){v.addNote({text:r,x:i,y:n})}t(yt,"addNote");function ut(r,i,n){v.addAccelerator({name:r,x:i,y:n})}t(ut,"addAccelerator");function wt(r,i,n){v.addDeaccelerator({name:r,x:i,y:n})}t(wt,"addDeaccelerator");function mt(r,i){v.setAnnotationsBox(r,i)}t(mt,"setAnnotationsBox");function kt(r,i){v.setSize(r,i)}t(kt,"setSize");function bt(r){v.startPipeline(r)}t(bt,"startPipeline");function $t(r,i){v.addPipelineComponent(r,i)}t($t,"addPipelineComponent");function vt(r){v.setAxes(r)}t(vt,"updateAxes");function Pt(r){return v.getNode(r)}t(Pt,"getNode");function Ct(r){return v.resolveNodeId(r)}t(Ct,"resolveNodeId");function St(){return v.build()}t(St,"getWardleyData");function Mt(){v.clear(),A()}t(Mt,"clear");var Ft={getConfig:pt,addNode:ht,addLink:ft,addTrend:xt,addAnnotation:gt,addNote:yt,addAccelerator:ut,addDeaccelerator:wt,setAnnotationsBox:mt,setSize:kt,startPipeline:bt,addPipelineComponent:$t,updateAxes:vt,getNode:Pt,resolveNodeId:Ct,getWardleyData:St,clear:Mt,setAccTitle:R,getAccTitle:I,setDiagramTitle:P,getDiagramTitle:N,getAccDescription:D,setAccDescription:L},Rt=["Genesis","Custom Built","Product","Commodity"],Ot=t(()=>{let{themeVariables:r}=u();return{backgroundColor:r.wardley?.backgroundColor??r.background??"#fff",axisColor:r.wardley?.axisColor??"#000",axisTextColor:r.wardley?.axisTextColor??r.primaryTextColor??"#222",gridColor:r.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:r.wardley?.componentFill??"#fff",componentStroke:r.wardley?.componentStroke??"#000",componentLabelColor:r.wardley?.componentLabelColor??r.primaryTextColor??"#222",linkStroke:r.wardley?.linkStroke??"#000",evolutionStroke:r.wardley?.evolutionStroke??"#dc3545",annotationStroke:r.wardley?.annotationStroke??"#000",annotationTextColor:r.wardley?.annotationTextColor??r.primaryTextColor??"#222",annotationFill:r.wardley?.annotationFill??r.background??"#fff"}},"getTheme"),Dt=t(()=>{let r=u()["wardley-beta"];return{width:r?.width??900,height:r?.height??600,padding:r?.padding??48,nodeRadius:r?.nodeRadius??6,nodeLabelOffset:r?.nodeLabelOffset??8,axisFontSize:r?.axisFontSize??12,labelFontSize:r?.labelFontSize??10,showGrid:r?.showGrid??!1,useMaxWidth:r?.useMaxWidth??!0}},"getConfigValues"),Gt=t((r,i,n,g)=>{a.debug(`Rendering Wardley map
|
|
2
|
+
`+r);let o=Dt(),c=Ot(),k=o.nodeRadius*1.6,W=g.db,w=W.getWardleyData(),J=W.getDiagramTitle(),E=w.size?.width??o.width,C=w.size?.height??o.height,V=Q(i);V.selectAll("*").remove(),G(V,C,E,o.useMaxWidth),V.attr("viewBox",`0 0 ${E} ${C}`);let z=V.append("g").attr("class","wardley-map"),rt=V.append("defs");rt.append("marker").attr("id",`arrow-${i}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",c.evolutionStroke).attr("stroke","none"),rt.append("marker").attr("id",`link-arrow-end-${i}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",c.linkStroke).attr("stroke","none"),rt.append("marker").attr("id",`link-arrow-start-${i}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",c.linkStroke).attr("stroke","none"),z.append("rect").attr("class","wardley-background").attr("width",E).attr("height",C).attr("fill",c.backgroundColor);let _=E-o.padding*2,Z=C-o.padding*2;if(J)z.append("text").attr("class","wardley-title").attr("x",E/2).attr("y",o.padding/2).attr("fill",c.axisTextColor).attr("font-size",o.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(J);let B=t((e)=>o.padding+e/100*_,"projectX"),F=t((e)=>C-o.padding-e/100*Z,"projectY"),K=z.append("g").attr("class","wardley-axes");K.append("line").attr("x1",o.padding).attr("x2",E-o.padding).attr("y1",C-o.padding).attr("y2",C-o.padding).attr("stroke",c.axisColor).attr("stroke-width",1),K.append("line").attr("x1",o.padding).attr("x2",o.padding).attr("y1",o.padding).attr("y2",C-o.padding).attr("stroke",c.axisColor).attr("stroke-width",1);let Nt=w.axes.xLabel??"Evolution",zt=w.axes.yLabel??"Visibility";K.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",o.padding+_/2).attr("y",C-o.padding/4).attr("fill",c.axisTextColor).attr("font-size",o.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(Nt),K.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",o.padding/3).attr("y",o.padding+Z/2).attr("fill",c.axisTextColor).attr("font-size",o.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${o.padding/3} ${o.padding+Z/2})`).text(zt);let U=w.axes.stages&&w.axes.stages.length>0?w.axes.stages:Rt;if(U.length>0){let e=z.append("g").attr("class","wardley-stages"),d=w.axes.stageBoundaries,s=[];if(d&&d.length===U.length){let l=0;d.forEach((h)=>{s.push({start:l,end:h}),l=h})}else{let l=1/U.length;U.forEach((h,f)=>{s.push({start:f*l,end:(f+1)*l})})}U.forEach((l,h)=>{let f=s[h],y=o.padding+f.start*_,x=o.padding+f.end*_,m=(y+x)/2;if(h>0)e.append("line").attr("x1",y).attr("x2",y).attr("y1",o.padding).attr("y2",C-o.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",0.8);e.append("text").attr("class","wardley-stage-label").attr("x",m).attr("y",C-o.padding/1.5).attr("fill",c.axisTextColor).attr("font-size",o.axisFontSize-2).attr("text-anchor","middle").text(l)})}if(o.showGrid){let e=z.append("g").attr("class","wardley-grid");for(let d=1;d<4;d++){let s=d/4,l=o.padding+_*s;e.append("line").attr("x1",l).attr("x2",l).attr("y1",o.padding).attr("y2",C-o.padding).attr("stroke",c.gridColor).attr("stroke-dasharray","2 6"),e.append("line").attr("x1",o.padding).attr("x2",E-o.padding).attr("y1",C-o.padding-Z*s).attr("y2",C-o.padding-Z*s).attr("stroke",c.gridColor).attr("stroke-dasharray","2 6")}}let p=new Map;if(w.nodes.forEach((e)=>{p.set(e.id,{x:B(e.x),y:F(e.y),node:e})}),w.pipelines.length>0){let e=z.append("g").attr("class","wardley-pipelines"),d=z.append("g").attr("class","wardley-pipeline-links");w.pipelines.forEach((s)=>{if(s.componentIds.length===0)return;let l=s.componentIds.map((x)=>({id:x,pos:p.get(x),node:w.nodes.find((m)=>m.id===x)})).filter((x)=>x.pos&&x.node).sort((x,m)=>x.node.x-m.node.x);for(let x=0;x<l.length-1;x++){let m=l[x],b=l[x+1];d.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",m.pos.x).attr("y1",m.pos.y).attr("x2",b.pos.x).attr("y2",b.pos.y).attr("stroke",c.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let h=1/0,f=-1/0,y=0;if(s.componentIds.forEach((x)=>{let m=p.get(x);if(m)h=Math.min(h,m.x),f=Math.max(f,m.x),y=m.y}),h!==1/0&&f!==-1/0){let m=o.nodeRadius*4,b=y-m/2,T=p.get(s.nodeId);if(T){let Y=(h+f)/2;T.x=Y,T.y=b-k/6}e.append("rect").attr("class","wardley-pipeline-box").attr("x",h-15).attr("y",b).attr("width",f-h+30).attr("height",m).attr("fill","none").attr("stroke",c.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}let st=z.append("g").attr("class","wardley-links"),it=new Map;w.pipelines.forEach((e)=>{it.set(e.nodeId,new Set(e.componentIds))});let dt=w.links.filter((e)=>{if(!p.has(e.source)||!p.has(e.target))return!1;if(it.get(e.target)?.has(e.source))return!1;return!0});st.selectAll("line").data(dt).enter().append("line").attr("class",(e)=>`wardley-link${e.dashed?" wardley-link--dashed":""}`).attr("x1",(e)=>{let d=p.get(e.source),s=p.get(e.target),h=w.nodes.find((m)=>m.id===e.source).isPipelineParent?k/Math.sqrt(2):o.nodeRadius,f=s.x-d.x,y=s.y-d.y,x=Math.sqrt(f*f+y*y);return d.x+f/x*h}).attr("y1",(e)=>{let d=p.get(e.source),s=p.get(e.target),h=w.nodes.find((m)=>m.id===e.source).isPipelineParent?k/Math.sqrt(2):o.nodeRadius,f=s.x-d.x,y=s.y-d.y,x=Math.sqrt(f*f+y*y);return d.y+y/x*h}).attr("x2",(e)=>{let d=p.get(e.source),s=p.get(e.target),h=w.nodes.find((m)=>m.id===e.target).isPipelineParent?k/Math.sqrt(2):o.nodeRadius,f=d.x-s.x,y=d.y-s.y,x=Math.sqrt(f*f+y*y);return s.x+f/x*h}).attr("y2",(e)=>{let d=p.get(e.source),s=p.get(e.target),h=w.nodes.find((m)=>m.id===e.target).isPipelineParent?k/Math.sqrt(2):o.nodeRadius,f=d.x-s.x,y=d.y-s.y,x=Math.sqrt(f*f+y*y);return s.y+y/x*h}).attr("stroke",c.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",(e)=>e.dashed?"6 6":null).attr("marker-end",(e)=>{if(e.flow==="forward"||e.flow==="bidirectional")return`url(#link-arrow-end-${i})`;return null}).attr("marker-start",(e)=>{if(e.flow==="backward"||e.flow==="bidirectional")return`url(#link-arrow-start-${i})`;return null}),st.selectAll("text").data(dt.filter((e)=>e.label)).enter().append("text").attr("class","wardley-link-label").attr("x",(e)=>{let d=p.get(e.source),s=p.get(e.target),l=(d.x+s.x)/2,h=s.y-d.y,f=s.x-d.x,y=Math.sqrt(f*f+h*h),x=8,m=h/y;return l+m*8}).attr("y",(e)=>{let d=p.get(e.source),s=p.get(e.target),l=(d.y+s.y)/2,h=s.x-d.x,f=s.y-d.y,y=Math.sqrt(h*h+f*f),x=8,m=-h/y;return l+m*8}).attr("fill",c.axisTextColor).attr("font-size",o.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",(e)=>{let d=p.get(e.source),s=p.get(e.target),l=(d.x+s.x)/2,h=(d.y+s.y)/2,f=s.x-d.x,y=s.y-d.y,x=Math.sqrt(f*f+y*y),m=8,b=y/x,T=-f/x,Y=l+b*8,tt=h+T*8,j=Math.atan2(y,f)*180/Math.PI;if(j>90||j<-90)j+=180;return`rotate(${j} ${Y} ${tt})`}).text((e)=>e.label);let Lt=z.append("g").attr("class","wardley-trends"),Tt=w.trends.map((e)=>{let d=p.get(e.nodeId);if(!d)return null;let s=B(e.targetX),l=F(e.targetY),h=s-d.x,f=l-d.y,y=Math.sqrt(h*h+f*f),x=o.nodeRadius+2,m=y>x?s-h/y*x:s,b=y>x?l-f/y*x:l;return{origin:d,targetX:s,targetY:l,adjustedX2:m,adjustedY2:b}}).filter((e)=>e!==null);Lt.selectAll("line").data(Tt).enter().append("line").attr("class","wardley-trend").attr("x1",(e)=>e.origin.x).attr("y1",(e)=>e.origin.y).attr("x2",(e)=>e.adjustedX2).attr("y2",(e)=>e.adjustedY2).attr("stroke",c.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${i})`);let H=z.append("g").attr("class","wardley-nodes").selectAll("g").data(w.nodes).enter().append("g").attr("class",(e)=>["wardley-node",e.className?`wardley-node--${e.className}`:""].filter(Boolean).join(" "));H.filter((e)=>e.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",(e)=>p.get(e.id).x).attr("cy",(e)=>p.get(e.id).y).attr("r",o.nodeRadius*2).attr("fill","#666").attr("stroke",c.componentStroke).attr("stroke-width",1),H.filter((e)=>e.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",(e)=>p.get(e.id).x).attr("cy",(e)=>p.get(e.id).y).attr("r",o.nodeRadius*2).attr("fill","#ccc").attr("stroke",c.componentStroke).attr("stroke-width",1),H.filter((e)=>e.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",(e)=>p.get(e.id).x).attr("cy",(e)=>p.get(e.id).y).attr("r",o.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);let O=H.filter((e)=>e.sourceStrategy==="market");O.append("circle").attr("class","wardley-market-overlay").attr("cx",(e)=>p.get(e.id).x).attr("cy",(e)=>p.get(e.id).y).attr("r",o.nodeRadius*2).attr("fill","white").attr("stroke",c.componentStroke).attr("stroke-width",1),H.filter((e)=>!e.isPipelineParent&&e.sourceStrategy!=="market"&&e.className!=="anchor").append("circle").attr("cx",(e)=>p.get(e.id).x).attr("cy",(e)=>p.get(e.id).y).attr("r",o.nodeRadius).attr("fill",c.componentFill).attr("stroke",c.componentStroke).attr("stroke-width",1);let ot=o.nodeRadius*0.7,M=o.nodeRadius*1.2;if(O.append("line").attr("class","wardley-market-line").attr("x1",(e)=>p.get(e.id).x).attr("y1",(e)=>p.get(e.id).y-M).attr("x2",(e)=>p.get(e.id).x-M*Math.cos(Math.PI/6)).attr("y2",(e)=>p.get(e.id).y+M*Math.sin(Math.PI/6)).attr("stroke",c.componentStroke).attr("stroke-width",1),O.append("line").attr("class","wardley-market-line").attr("x1",(e)=>p.get(e.id).x-M*Math.cos(Math.PI/6)).attr("y1",(e)=>p.get(e.id).y+M*Math.sin(Math.PI/6)).attr("x2",(e)=>p.get(e.id).x+M*Math.cos(Math.PI/6)).attr("y2",(e)=>p.get(e.id).y+M*Math.sin(Math.PI/6)).attr("stroke",c.componentStroke).attr("stroke-width",1),O.append("line").attr("class","wardley-market-line").attr("x1",(e)=>p.get(e.id).x+M*Math.cos(Math.PI/6)).attr("y1",(e)=>p.get(e.id).y+M*Math.sin(Math.PI/6)).attr("x2",(e)=>p.get(e.id).x).attr("y2",(e)=>p.get(e.id).y-M).attr("stroke",c.componentStroke).attr("stroke-width",1),O.append("circle").attr("class","wardley-market-dot").attr("cx",(e)=>p.get(e.id).x).attr("cy",(e)=>p.get(e.id).y-M).attr("r",ot).attr("fill","white").attr("stroke",c.componentStroke).attr("stroke-width",2),O.append("circle").attr("class","wardley-market-dot").attr("cx",(e)=>p.get(e.id).x-M*Math.cos(Math.PI/6)).attr("cy",(e)=>p.get(e.id).y+M*Math.sin(Math.PI/6)).attr("r",ot).attr("fill","white").attr("stroke",c.componentStroke).attr("stroke-width",2),O.append("circle").attr("class","wardley-market-dot").attr("cx",(e)=>p.get(e.id).x+M*Math.cos(Math.PI/6)).attr("cy",(e)=>p.get(e.id).y+M*Math.sin(Math.PI/6)).attr("r",ot).attr("fill","white").attr("stroke",c.componentStroke).attr("stroke-width",2),H.filter((e)=>e.isPipelineParent===!0).append("rect").attr("x",(e)=>p.get(e.id).x-k/2).attr("y",(e)=>p.get(e.id).y-k/2).attr("width",k).attr("height",k).attr("fill",c.componentFill).attr("stroke",c.componentStroke).attr("stroke-width",1),H.filter((e)=>e.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",(e)=>{let d=p.get(e.id),s=e.isPipelineParent?k/2+15:o.nodeRadius+15;if(e.sourceStrategy)s+=o.nodeRadius+10;return d.x+s}).attr("y1",(e)=>{let d=p.get(e.id),s=e.isPipelineParent?k:o.nodeRadius*2;return d.y-s/2}).attr("x2",(e)=>{let d=p.get(e.id),s=e.isPipelineParent?k/2+15:o.nodeRadius+15;if(e.sourceStrategy)s+=o.nodeRadius+10;return d.x+s}).attr("y2",(e)=>{let d=p.get(e.id),s=e.isPipelineParent?k:o.nodeRadius*2;return d.y+s/2}).attr("stroke",c.componentStroke).attr("stroke-width",6),H.append("text").attr("x",(e)=>{let d=p.get(e.id);if(e.className==="anchor")return e.labelOffsetX!==void 0?d.x+e.labelOffsetX:d.x;let s=o.nodeLabelOffset;if(e.sourceStrategy&&e.labelOffsetX===void 0)s+=10;let l=e.labelOffsetX??s;return d.x+l}).attr("y",(e)=>{let d=p.get(e.id);if(e.className==="anchor")return e.labelOffsetY!==void 0?d.y+e.labelOffsetY:d.y-3;let s=-o.nodeLabelOffset;if(e.sourceStrategy&&e.labelOffsetY===void 0)s-=10;let l=e.labelOffsetY??s;return d.y+l}).attr("class","wardley-node-label").attr("fill",(e)=>{if(e.className==="evolved")return c.evolutionStroke;if(e.className==="anchor")return"#000";return c.componentLabelColor}).attr("font-size",o.labelFontSize).attr("font-weight",(e)=>e.className==="anchor"?"bold":"normal").attr("text-anchor",(e)=>e.className==="anchor"?"middle":"start").attr("dominant-baseline",(e)=>e.className==="anchor"?"middle":"auto").text((e)=>e.label),w.annotations.length>0){let e=z.append("g").attr("class","wardley-annotations");if(w.annotations.forEach((d)=>{let s=d.coordinates.map((l)=>({x:B(l.x),y:F(l.y)}));if(s.length>1)for(let l=0;l<s.length-1;l++)e.append("line").attr("class","wardley-annotation-line").attr("x1",s[l].x).attr("y1",s[l].y).attr("x2",s[l+1].x).attr("y2",s[l+1].y).attr("stroke",c.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");s.forEach((l)=>{let h=e.append("g").attr("class","wardley-annotation");h.append("circle").attr("cx",l.x).attr("cy",l.y).attr("r",10).attr("fill","white").attr("stroke",c.axisColor).attr("stroke-width",1.5),h.append("text").attr("x",l.x).attr("y",l.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",c.axisTextColor).attr("font-weight","bold").text(d.number)})}),w.annotationsBox){let d=B(w.annotationsBox.x),s=F(w.annotationsBox.y),l=10,h=16,f=11,y=e.append("g").attr("class","wardley-annotations-box"),x=[...w.annotations].filter((b)=>b.text).sort((b,T)=>b.number-T.number),m=[];if(x.forEach((b,T)=>{let Y=y.append("text").attr("x",d+l).attr("y",s+l+(T+1)*h).attr("font-size",f).attr("fill",c.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${b.number}. ${b.text}`);m.push(Y)}),m.length>0){let b=0,T=0;m.forEach((nt)=>{let et=nt.node(),Et=et.getComputedTextLength();b=Math.max(b,Et);let Ht=et.getBBox();T=Math.max(T,Ht.height)});let Y=b+l*2+105,tt=x.length*h+l*2+T/2,j=o.padding,Wt=E-o.padding-Y,At=o.padding,Xt=C-o.padding-tt;d=Math.max(j,Math.min(d,Wt)),s=Math.max(At,Math.min(s,Xt)),m.forEach((nt,et)=>{nt.attr("x",d+l).attr("y",s+l+(et+1)*h)}),y.insert("rect","text").attr("x",d).attr("y",s).attr("width",Y).attr("height",tt).attr("fill","white").attr("stroke",c.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(w.notes.length>0){let e=z.append("g").attr("class","wardley-notes");w.notes.forEach((d)=>{let s=B(d.x),l=F(d.y);e.append("text").attr("x",s).attr("y",l).attr("text-anchor","start").attr("font-size",11).attr("fill",c.axisTextColor).attr("font-weight","bold").text(d.text)})}if(w.accelerators.length>0){let e=z.append("g").attr("class","wardley-accelerators");w.accelerators.forEach((d)=>{let s=B(d.x),l=F(d.y),h=60,f=30,y=20,x=`
|
|
3
|
+
M ${s} ${l-15}
|
|
4
|
+
L ${s+60-20} ${l-15}
|
|
5
|
+
L ${s+60-20} ${l-15-8}
|
|
6
|
+
L ${s+60} ${l}
|
|
7
|
+
L ${s+60-20} ${l+15+8}
|
|
8
|
+
L ${s+60-20} ${l+15}
|
|
9
|
+
L ${s} ${l+15}
|
|
10
|
+
Z
|
|
11
|
+
`;e.append("path").attr("d",x).attr("fill","white").attr("stroke",c.componentStroke).attr("stroke-width",1),e.append("text").attr("x",s+30).attr("y",l+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",c.axisTextColor).attr("font-weight","bold").text(d.name)})}if(w.deaccelerators.length>0){let e=z.append("g").attr("class","wardley-deaccelerators");w.deaccelerators.forEach((d)=>{let s=B(d.x),l=F(d.y),h=60,f=30,y=20,x=`
|
|
12
|
+
M ${s+60} ${l-15}
|
|
13
|
+
L ${s+20} ${l-15}
|
|
14
|
+
L ${s+20} ${l-15-8}
|
|
15
|
+
L ${s} ${l}
|
|
16
|
+
L ${s+20} ${l+15+8}
|
|
17
|
+
L ${s+20} ${l+15}
|
|
18
|
+
L ${s+60} ${l+15}
|
|
19
|
+
Z
|
|
20
|
+
`;e.append("path").attr("d",x).attr("fill","white").attr("stroke",c.componentStroke).attr("stroke-width",1),e.append("text").attr("x",s+30).attr("y",l+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",c.axisTextColor).attr("font-weight","bold").text(d.name)})}},"draw"),qt={draw:Gt},jt=t(({wardley:r}={})=>{let i=Ge(),n=S(),g=X(i,n.themeVariables),o=X(g.wardley,r);return`
|
|
21
|
+
.wardley-background {
|
|
22
|
+
fill: ${o.backgroundColor};
|
|
23
|
+
}
|
|
24
|
+
.wardley-axes line, .wardley-axes path {
|
|
25
|
+
stroke: ${o.axisColor};
|
|
26
|
+
}
|
|
27
|
+
.wardley-axis-label {
|
|
28
|
+
fill: ${o.axisTextColor};
|
|
29
|
+
}
|
|
30
|
+
.wardley-stage-label {
|
|
31
|
+
fill: ${o.axisTextColor};
|
|
32
|
+
}
|
|
33
|
+
.wardley-grid line {
|
|
34
|
+
stroke: ${o.gridColor};
|
|
35
|
+
}
|
|
36
|
+
.wardley-node circle {
|
|
37
|
+
fill: ${o.componentFill};
|
|
38
|
+
stroke: ${o.componentStroke};
|
|
39
|
+
}
|
|
40
|
+
.wardley-node-label {
|
|
41
|
+
fill: ${o.componentLabelColor};
|
|
42
|
+
}
|
|
43
|
+
.wardley-link {
|
|
44
|
+
stroke: ${o.linkStroke};
|
|
45
|
+
}
|
|
46
|
+
.wardley-link--dashed {
|
|
47
|
+
stroke-dasharray: 4 4;
|
|
48
|
+
}
|
|
49
|
+
.wardley-link-label {
|
|
50
|
+
fill: ${o.axisTextColor};
|
|
51
|
+
}
|
|
52
|
+
.wardley-trend line {
|
|
53
|
+
stroke: ${o.evolutionStroke};
|
|
54
|
+
}
|
|
55
|
+
.wardley-annotation-line {
|
|
56
|
+
stroke: ${o.annotationStroke};
|
|
57
|
+
}
|
|
58
|
+
.wardley-annotation circle {
|
|
59
|
+
fill: ${o.annotationFill};
|
|
60
|
+
stroke: ${o.annotationStroke};
|
|
61
|
+
}
|
|
62
|
+
.wardley-annotation text {
|
|
63
|
+
fill: ${o.annotationTextColor};
|
|
64
|
+
}
|
|
65
|
+
.wardley-annotations-box rect {
|
|
66
|
+
fill: ${o.annotationFill};
|
|
67
|
+
stroke: ${o.annotationStroke};
|
|
68
|
+
}
|
|
69
|
+
.wardley-annotations-box text {
|
|
70
|
+
fill: ${o.annotationTextColor};
|
|
71
|
+
}
|
|
72
|
+
.wardley-pipeline-box {
|
|
73
|
+
stroke: ${o.componentStroke};
|
|
74
|
+
}
|
|
75
|
+
.wardley-notes text {
|
|
76
|
+
fill: ${o.axisTextColor};
|
|
77
|
+
}
|
|
78
|
+
`},"styles"),ee={parser:ct,db:Ft,renderer:qt,styles:jt};export{ee as diagram};
|
|
Binary file
|
|
Binary file
|