@bkm016/basalt 0.1.23 → 0.1.24
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-0ecs4nme.js +18 -0
- package/chunk-0mrd775t.js +3 -0
- package/chunk-0nxcbf6d.js +472 -0
- package/chunk-0p12aad6.js +3 -0
- package/chunk-0vdz9j55.js +7 -0
- package/chunk-1v0dv855.js +3 -0
- package/chunk-2jeg8h8d.js +3 -0
- package/chunk-2q3tewbg.js +59 -0
- package/chunk-3hqka8zs.js +2 -0
- package/chunk-3ktcgaec.js +2 -0
- package/chunk-3v0ezmaw.js +39 -0
- package/chunk-3zv7ryz0.js +2 -0
- package/chunk-4x7xnfw1.js +2 -0
- package/chunk-5kd940f5.js +3 -0
- package/chunk-628vymvd.js +3 -0
- package/chunk-6h9dxrr4.js +2 -0
- package/chunk-6ka4m0ax.js +2 -0
- package/chunk-6q0ak8d1.js +12 -0
- package/chunk-768vwfc3.js +3 -0
- package/chunk-7k4xghss.js +5 -0
- package/chunk-8jv34hrx.js +7 -0
- package/chunk-8yv55y6g.js +3 -0
- package/chunk-95rqa8r8.js +2 -0
- package/chunk-979mxkzt.js +2 -0
- package/chunk-9y8v1vrt.js +15 -0
- package/chunk-akf8x16s.js +5 -0
- package/chunk-bdr1170y.js +3 -0
- package/chunk-bkmd5d8p.js +3 -0
- package/chunk-c4nxr37s.js +3566 -0
- package/chunk-cte9wd9x.js +4 -0
- package/chunk-df7ye0xb.js +9 -0
- package/chunk-dsd6pd2m.js +2 -0
- package/chunk-eejgn4ye.js +2 -0
- package/chunk-eek8fqvj.js +2 -0
- package/chunk-ewjrnvjb.js +10 -0
- package/chunk-f4tqhvff.js +3 -0
- package/chunk-gha8wd63.js +11 -0
- package/chunk-gwrpahes.js +2 -0
- package/chunk-hz92pdms.js +2 -0
- package/chunk-jepxf22f.js +7 -0
- package/chunk-kh4yq4rd.js +4 -0
- package/chunk-khdch9sx.js +25 -0
- package/chunk-m1w7f6d3.js +5 -0
- package/chunk-ma91f4qj.js +2 -0
- package/chunk-mah60ek9.js +3 -0
- package/chunk-mmm1jh57.js +20 -0
- package/chunk-mmt11y21.js +2 -0
- package/chunk-mny4xyb0.js +3 -0
- package/chunk-mq0p4ssz.js +3 -0
- package/chunk-mzta1jts.js +10 -0
- package/chunk-n0qwj5gm.js +12 -0
- package/chunk-n19ec95n.js +3 -0
- package/chunk-n5b822pn.js +3 -0
- package/chunk-nvxx397h.js +2 -0
- package/chunk-nwfhbcme.js +4 -0
- package/chunk-pcd14q8r.js +390 -0
- package/chunk-pr1hfw3a.js +2 -0
- package/chunk-q2re8mn9.js +31 -0
- package/chunk-qgg3wk8h.js +2 -0
- package/chunk-r9gkfk6f.js +16 -0
- package/chunk-rjfph4m5.js +3 -0
- package/chunk-rmy489b1.js +7 -0
- package/chunk-sf2cp0m6.js +8 -0
- package/chunk-sfwy8rqg.js +3 -0
- package/chunk-sj2q2amm.js +11 -0
- package/chunk-sqfs6z7c.js +3 -0
- package/chunk-sy980cjq.js +2 -0
- package/chunk-t64hda7b.js +2 -0
- package/chunk-tbhqhejq.js +2 -0
- package/chunk-trxaygjr.js +5 -0
- package/chunk-v7ehjbxx.js +2 -0
- package/chunk-vjegsy9q.js +2 -0
- package/chunk-vt4xyc4q.js +2 -0
- package/chunk-w430z452.js +25 -0
- package/chunk-xycq2q8m.js +2 -0
- package/chunk-y16fqzad.js +3 -0
- package/chunk-y6mng74k.js +2 -0
- package/chunk-y8aq7mb7.js +3 -0
- package/chunk-ynt6najh.js +3 -0
- package/chunk-z1y43t2s.js +3 -0
- package/chunk-z6v2pcc0.js +3 -0
- package/compiled.js +5 -5
- package/package.json +1 -1
- package/ui-test-worker.js +24 -24
- package/web/chunk-085ttz7c.js +84 -0
- package/web/chunk-085ttz7c.js.br +0 -0
- package/web/chunk-085ttz7c.js.gz +0 -0
- package/web/chunk-0g9ycv0h.js +2 -0
- package/web/chunk-0g9ycv0h.js.br +0 -0
- package/web/chunk-0g9ycv0h.js.gz +0 -0
- package/web/chunk-13x3xyyh.js +7 -0
- package/web/chunk-13x3xyyh.js.br +0 -0
- package/web/chunk-13x3xyyh.js.gz +0 -0
- package/web/chunk-172gywq4.js +214 -0
- package/web/chunk-172gywq4.js.br +0 -0
- package/web/chunk-172gywq4.js.gz +0 -0
- package/web/chunk-176tsg6e.js +2 -0
- package/web/chunk-176tsg6e.js.br +0 -0
- package/web/chunk-176tsg6e.js.gz +0 -0
- package/web/chunk-17d30546.js +38 -0
- package/web/chunk-17d30546.js.br +0 -0
- package/web/chunk-17d30546.js.gz +0 -0
- package/web/chunk-1k6jx4hs.js +1 -0
- package/web/chunk-1k6jx4hs.js.br +0 -0
- package/web/chunk-1k6jx4hs.js.gz +0 -0
- package/web/chunk-1kts05s6.css +1 -0
- package/web/chunk-1kts05s6.css.br +0 -0
- package/web/chunk-1kts05s6.css.gz +0 -0
- package/web/chunk-1z0x1j6q.js +1 -0
- package/web/chunk-1z0x1j6q.js.br +0 -0
- package/web/chunk-1z0x1j6q.js.gz +0 -0
- package/web/chunk-290wy4yk.js +1 -0
- package/web/chunk-290wy4yk.js.br +0 -0
- package/web/chunk-290wy4yk.js.gz +0 -0
- package/web/chunk-2cdw1299.js +1 -0
- package/web/chunk-2cdw1299.js.br +0 -0
- package/web/chunk-2cdw1299.js.gz +0 -0
- package/web/chunk-2fms67zg.js +332 -0
- package/web/chunk-2fms67zg.js.br +0 -0
- package/web/chunk-2fms67zg.js.gz +0 -0
- package/web/chunk-2psxv4dk.js +120 -0
- package/web/chunk-2psxv4dk.js.br +0 -0
- package/web/chunk-2psxv4dk.js.gz +0 -0
- package/web/chunk-2z4zhtw4.js +142 -0
- package/web/chunk-2z4zhtw4.js.br +0 -0
- package/web/chunk-2z4zhtw4.js.gz +0 -0
- package/web/chunk-33eqjx7d.js +2 -0
- package/web/chunk-33eqjx7d.js.br +0 -0
- package/web/chunk-33eqjx7d.js.gz +0 -0
- package/web/chunk-39rtp0f4.js +1 -0
- package/web/chunk-39rtp0f4.js.br +0 -0
- package/web/chunk-39rtp0f4.js.gz +0 -0
- package/web/chunk-3sszg3gr.js +24 -0
- package/web/chunk-3sszg3gr.js.br +0 -0
- package/web/chunk-3sszg3gr.js.gz +0 -0
- package/web/chunk-3vdw9nn7.js +62 -0
- package/web/chunk-3vdw9nn7.js.br +0 -0
- package/web/chunk-3vdw9nn7.js.gz +0 -0
- package/web/chunk-43shp7zx.js +2 -0
- package/web/chunk-43shp7zx.js.br +0 -0
- package/web/chunk-43shp7zx.js.gz +0 -0
- package/web/chunk-4cbcqcd2.js +1 -0
- package/web/chunk-4cbcqcd2.js.br +0 -0
- package/web/chunk-4cbcqcd2.js.gz +0 -0
- package/web/chunk-4v6n6b36.js +1 -0
- package/web/chunk-4v6n6b36.js.br +0 -0
- package/web/chunk-4v6n6b36.js.gz +0 -0
- package/web/chunk-54vdfmx0.js +2 -0
- package/web/chunk-54vdfmx0.js.br +0 -0
- package/web/chunk-54vdfmx0.js.gz +0 -0
- package/web/chunk-59ybhv47.js +1 -0
- package/web/chunk-59ybhv47.js.br +0 -0
- package/web/chunk-59ybhv47.js.gz +0 -0
- package/web/chunk-5a80hcah.js +1 -0
- package/web/chunk-5a80hcah.js.br +0 -0
- package/web/chunk-5a80hcah.js.gz +0 -0
- package/web/chunk-5zkw2kkb.js +140 -0
- package/web/chunk-5zkw2kkb.js.br +0 -0
- package/web/chunk-5zkw2kkb.js.gz +0 -0
- package/web/chunk-634vc92s.js +70 -0
- package/web/chunk-634vc92s.js.br +0 -0
- package/web/chunk-634vc92s.js.gz +0 -0
- package/web/chunk-6n3cwe1h.js +169 -0
- package/web/chunk-6n3cwe1h.js.br +0 -0
- package/web/chunk-6n3cwe1h.js.gz +0 -0
- package/web/chunk-6zr2j7xj.js +1 -0
- package/web/chunk-6zr2j7xj.js.br +0 -0
- package/web/chunk-6zr2j7xj.js.gz +0 -0
- package/web/chunk-713ygtrs.js +200 -0
- package/web/chunk-713ygtrs.js.br +0 -0
- package/web/chunk-713ygtrs.js.gz +0 -0
- package/web/chunk-7m4gmjvp.js +1 -0
- package/web/chunk-7m4gmjvp.js.br +0 -0
- package/web/chunk-7m4gmjvp.js.gz +0 -0
- package/web/chunk-7x90pq42.js +1 -0
- package/web/chunk-7x90pq42.js.br +0 -0
- package/web/chunk-7x90pq42.js.gz +0 -0
- package/web/chunk-7ycp549b.js +2 -0
- package/web/chunk-7ycp549b.js.br +0 -0
- package/web/chunk-7ycp549b.js.gz +0 -0
- package/web/chunk-811qc5bs.js +1 -0
- package/web/chunk-811qc5bs.js.br +0 -0
- package/web/chunk-811qc5bs.js.gz +0 -0
- package/web/chunk-82gjgy45.js +1 -0
- package/web/chunk-82gjgy45.js.br +0 -0
- package/web/chunk-82gjgy45.js.gz +0 -0
- package/web/chunk-8de69eyx.js +2 -0
- package/web/chunk-8de69eyx.js.br +0 -0
- package/web/chunk-8de69eyx.js.gz +0 -0
- package/web/chunk-91s1ns6b.js +55 -0
- package/web/chunk-91s1ns6b.js.br +0 -0
- package/web/chunk-91s1ns6b.js.gz +0 -0
- package/web/chunk-921qw2jf.js +1 -0
- package/web/chunk-921qw2jf.js.br +0 -0
- package/web/chunk-921qw2jf.js.gz +0 -0
- package/web/chunk-96n0nem7.js +2 -0
- package/web/chunk-96n0nem7.js.br +0 -0
- package/web/chunk-96n0nem7.js.gz +0 -0
- package/web/chunk-9k9p5dat.js +1 -0
- package/web/chunk-9k9p5dat.js.br +0 -0
- package/web/chunk-9k9p5dat.js.gz +0 -0
- package/web/chunk-a529550j.js +1 -0
- package/web/chunk-a529550j.js.br +0 -0
- package/web/chunk-a529550j.js.gz +0 -0
- package/web/chunk-abvtsz6z.js +2 -0
- package/web/chunk-abvtsz6z.js.br +0 -0
- package/web/chunk-abvtsz6z.js.gz +0 -0
- package/web/chunk-ac8vmj54.js +1 -0
- package/web/chunk-ac8vmj54.js.br +0 -0
- package/web/chunk-ac8vmj54.js.gz +0 -0
- package/web/chunk-amrt87c9.js +1 -0
- package/web/chunk-amrt87c9.js.br +0 -0
- package/web/chunk-amrt87c9.js.gz +0 -0
- package/web/chunk-b2t33c3t.js +2 -0
- package/web/chunk-b2t33c3t.js.br +0 -0
- package/web/chunk-b2t33c3t.js.gz +0 -0
- package/web/chunk-b9fqnzqd.js +217 -0
- package/web/chunk-b9fqnzqd.js.br +0 -0
- package/web/chunk-b9fqnzqd.js.gz +0 -0
- package/web/chunk-bbs6yq60.js +99 -0
- package/web/chunk-bbs6yq60.js.br +0 -0
- package/web/chunk-bbs6yq60.js.gz +0 -0
- package/web/chunk-bbyqcvdz.js +2 -0
- package/web/chunk-bbyqcvdz.js.br +0 -0
- package/web/chunk-bbyqcvdz.js.gz +0 -0
- package/web/chunk-bg2ps35t.js +2 -0
- package/web/chunk-bg2ps35t.js.br +0 -0
- package/web/chunk-bg2ps35t.js.gz +0 -0
- package/web/chunk-bh0a254y.js +30 -0
- package/web/chunk-bh0a254y.js.br +0 -0
- package/web/chunk-bh0a254y.js.gz +0 -0
- package/web/chunk-bvmvj35k.js +1 -0
- package/web/chunk-bvmvj35k.js.br +0 -0
- package/web/chunk-bvmvj35k.js.gz +0 -0
- package/web/chunk-c2eqwepm.js +2 -0
- package/web/chunk-c2eqwepm.js.br +0 -0
- package/web/chunk-c2eqwepm.js.gz +0 -0
- package/web/chunk-ca8hnmmv.js +34 -0
- package/web/chunk-ca8hnmmv.js.br +0 -0
- package/web/chunk-ca8hnmmv.js.gz +0 -0
- package/web/chunk-ced8pdbc.js +1 -0
- package/web/chunk-ced8pdbc.js.br +0 -0
- package/web/chunk-ced8pdbc.js.gz +0 -0
- package/web/chunk-cj0cmvbm.js +89 -0
- package/web/chunk-cj0cmvbm.js.br +0 -0
- package/web/chunk-cj0cmvbm.js.gz +0 -0
- package/web/chunk-cqr2kq2c.js +1 -0
- package/web/chunk-cqr2kq2c.js.br +0 -0
- package/web/chunk-cqr2kq2c.js.gz +0 -0
- package/web/chunk-crhbhsrh.js +2 -0
- package/web/chunk-crhbhsrh.js.br +0 -0
- package/web/chunk-crhbhsrh.js.gz +0 -0
- package/web/chunk-cxhcrhqc.js +1 -0
- package/web/chunk-cxhcrhqc.js.br +0 -0
- package/web/chunk-cxhcrhqc.js.gz +0 -0
- package/web/chunk-e3d6kvwm.js +1 -0
- package/web/chunk-e3d6kvwm.js.br +0 -0
- package/web/chunk-e3d6kvwm.js.gz +0 -0
- package/web/chunk-ee67ps6t.js +1 -0
- package/web/chunk-ee67ps6t.js.br +0 -0
- package/web/chunk-ee67ps6t.js.gz +0 -0
- package/web/chunk-ekwmp0s0.js +1 -0
- package/web/chunk-ekwmp0s0.js.br +0 -0
- package/web/chunk-ekwmp0s0.js.gz +0 -0
- package/web/chunk-eq28qb33.js +2 -0
- package/web/chunk-eq28qb33.js.br +3 -0
- package/web/chunk-eq28qb33.js.gz +0 -0
- package/web/chunk-f8ac76br.js +2 -0
- package/web/chunk-f8ac76br.js.br +3 -0
- package/web/chunk-f8ac76br.js.gz +0 -0
- package/web/chunk-fp7q643n.js +36 -0
- package/web/chunk-fp7q643n.js.br +0 -0
- package/web/chunk-fp7q643n.js.gz +0 -0
- package/web/chunk-g1penf6y.js +2 -0
- package/web/chunk-g1penf6y.js.br +0 -0
- package/web/chunk-g1penf6y.js.gz +0 -0
- package/web/chunk-g7t1bvvx.js +2 -0
- package/web/chunk-g7t1bvvx.js.br +0 -0
- package/web/chunk-g7t1bvvx.js.gz +0 -0
- package/web/chunk-gf4ky7tp.js +8 -0
- package/web/chunk-gf4ky7tp.js.br +0 -0
- package/web/chunk-gf4ky7tp.js.gz +0 -0
- package/web/chunk-gtcjwz0j.js +1 -0
- package/web/chunk-gtcjwz0j.js.br +2 -0
- package/web/chunk-gtcjwz0j.js.gz +0 -0
- package/web/chunk-gy2y4zfa.js +21 -0
- package/web/chunk-gy2y4zfa.js.br +0 -0
- package/web/chunk-gy2y4zfa.js.gz +0 -0
- package/web/chunk-h1cv1kke.js +16 -0
- package/web/chunk-h1cv1kke.js.br +0 -0
- package/web/chunk-h1cv1kke.js.gz +0 -0
- package/web/chunk-h6k80vqf.js +1 -0
- package/web/chunk-h6k80vqf.js.br +0 -0
- package/web/chunk-h6k80vqf.js.gz +0 -0
- package/web/chunk-hqtm67yw.js +24 -0
- package/web/chunk-hqtm67yw.js.br +0 -0
- package/web/chunk-hqtm67yw.js.gz +0 -0
- package/web/chunk-hsgtzrkh.js +1 -0
- package/web/chunk-hsgtzrkh.js.br +0 -0
- package/web/chunk-hsgtzrkh.js.gz +0 -0
- package/web/chunk-htn0dt64.js +2 -0
- package/web/chunk-htn0dt64.js.br +0 -0
- package/web/chunk-htn0dt64.js.gz +0 -0
- package/web/chunk-j7phw79h.js +1 -0
- package/web/chunk-j7phw79h.js.br +0 -0
- package/web/chunk-j7phw79h.js.gz +0 -0
- package/web/chunk-k69ysa0v.js +1 -0
- package/web/chunk-k69ysa0v.js.br +0 -0
- package/web/chunk-k69ysa0v.js.gz +0 -0
- package/web/chunk-k7h5g8qj.js +1 -0
- package/web/chunk-k7h5g8qj.js.br +2 -0
- package/web/chunk-k7h5g8qj.js.gz +0 -0
- package/web/chunk-k8x1xbf6.js +1 -0
- package/web/chunk-k8x1xbf6.js.br +0 -0
- package/web/chunk-k8x1xbf6.js.gz +0 -0
- package/web/chunk-k8yyb4wc.js +2 -0
- package/web/chunk-k8yyb4wc.js.br +0 -0
- package/web/chunk-k8yyb4wc.js.gz +0 -0
- package/web/chunk-kbvzxsz7.js +324 -0
- package/web/chunk-kbvzxsz7.js.br +0 -0
- package/web/chunk-kbvzxsz7.js.gz +0 -0
- package/web/chunk-kn9bc5z2.js +291 -0
- package/web/chunk-kn9bc5z2.js.br +0 -0
- package/web/chunk-kn9bc5z2.js.gz +0 -0
- package/web/chunk-ksr360js.js +4 -0
- package/web/chunk-ksr360js.js.br +0 -0
- package/web/chunk-ksr360js.js.gz +0 -0
- package/web/chunk-m5nt857c.js +1 -0
- package/web/chunk-m5nt857c.js.br +0 -0
- package/web/chunk-m5nt857c.js.gz +0 -0
- package/web/chunk-mbaw66b5.js +2 -0
- package/web/chunk-mbaw66b5.js.br +0 -0
- package/web/chunk-mbaw66b5.js.gz +0 -0
- package/web/chunk-ms7cscs9.js +1 -0
- package/web/chunk-ms7cscs9.js.br +0 -0
- package/web/chunk-ms7cscs9.js.gz +0 -0
- package/web/chunk-msn8bpe6.js +1 -0
- package/web/chunk-msn8bpe6.js.br +0 -0
- package/web/chunk-msn8bpe6.js.gz +0 -0
- package/web/chunk-n59nyqcr.js +303 -0
- package/web/chunk-n59nyqcr.js.br +0 -0
- package/web/chunk-n59nyqcr.js.gz +0 -0
- package/web/chunk-n9npqkxf.js +1 -0
- package/web/chunk-n9npqkxf.js.br +0 -0
- package/web/chunk-n9npqkxf.js.gz +0 -0
- package/web/chunk-nb3jk1wk.js +1 -0
- package/web/chunk-nb3jk1wk.js.br +0 -0
- package/web/chunk-nb3jk1wk.js.gz +0 -0
- package/web/chunk-ny87aq2j.js +1 -0
- package/web/chunk-ny87aq2j.js.br +0 -0
- package/web/chunk-ny87aq2j.js.gz +0 -0
- package/web/chunk-phr7yps3.js +3 -0
- package/web/chunk-phr7yps3.js.br +0 -0
- package/web/chunk-phr7yps3.js.gz +0 -0
- package/web/chunk-ppccb30x.js +78 -0
- package/web/chunk-ppccb30x.js.br +0 -0
- package/web/chunk-ppccb30x.js.gz +0 -0
- package/web/chunk-q0kx0wyj.js +2 -0
- package/web/chunk-q0kx0wyj.js.br +0 -0
- package/web/chunk-q0kx0wyj.js.gz +0 -0
- package/web/chunk-q17rem99.js +89 -0
- package/web/chunk-q17rem99.js.br +0 -0
- package/web/chunk-q17rem99.js.gz +0 -0
- package/web/chunk-qdq6wvgt.js +139 -0
- package/web/chunk-qdq6wvgt.js.br +0 -0
- package/web/chunk-qdq6wvgt.js.gz +0 -0
- package/web/chunk-qhr6hegh.js +1 -0
- package/web/chunk-qhr6hegh.js.br +0 -0
- package/web/chunk-qhr6hegh.js.gz +0 -0
- package/web/chunk-qjswcwvm.js +1 -0
- package/web/chunk-qjswcwvm.js.br +0 -0
- package/web/chunk-qjswcwvm.js.gz +0 -0
- package/web/chunk-qqtj88e0.js +2 -0
- package/web/chunk-qqtj88e0.js.br +0 -0
- package/web/chunk-qqtj88e0.js.gz +0 -0
- package/web/chunk-r165xpp5.js +1 -0
- package/web/chunk-r165xpp5.js.br +0 -0
- package/web/chunk-r165xpp5.js.gz +0 -0
- package/web/chunk-r4cr8rvt.js +1 -0
- package/web/chunk-r4cr8rvt.js.br +0 -0
- package/web/chunk-r4cr8rvt.js.gz +0 -0
- package/web/chunk-sapy54hm.js +106 -0
- package/web/chunk-sapy54hm.js.br +0 -0
- package/web/chunk-sapy54hm.js.gz +0 -0
- package/web/chunk-sarkb4p9.js +12 -0
- package/web/chunk-sarkb4p9.js.br +0 -0
- package/web/chunk-sarkb4p9.js.gz +0 -0
- package/web/chunk-t7vwsg9r.js +292 -0
- package/web/chunk-t7vwsg9r.js.br +0 -0
- package/web/chunk-t7vwsg9r.js.gz +0 -0
- package/web/chunk-ta913rgd.js +2 -0
- package/web/chunk-ta913rgd.js.br +0 -0
- package/web/chunk-ta913rgd.js.gz +0 -0
- package/web/chunk-tt7j0m6m.js +7 -0
- package/web/chunk-tt7j0m6m.js.br +0 -0
- package/web/chunk-tt7j0m6m.js.gz +0 -0
- package/web/chunk-v36p2ccs.js +2 -0
- package/web/chunk-v36p2ccs.js.br +0 -0
- package/web/chunk-v36p2ccs.js.gz +0 -0
- package/web/chunk-va1rkfan.js +1 -0
- package/web/chunk-va1rkfan.js.br +0 -0
- package/web/chunk-va1rkfan.js.gz +0 -0
- package/web/chunk-vb3sy3hv.js +39 -0
- package/web/chunk-vb3sy3hv.js.br +0 -0
- package/web/chunk-vb3sy3hv.js.gz +0 -0
- package/web/chunk-vgpyff03.js +41 -0
- package/web/chunk-vgpyff03.js.br +0 -0
- package/web/chunk-vgpyff03.js.gz +0 -0
- package/web/chunk-vmpry714.js +1 -0
- package/web/chunk-vmpry714.js.br +0 -0
- package/web/chunk-vmpry714.js.gz +0 -0
- package/web/chunk-vrtdjg91.js +1 -0
- package/web/chunk-vrtdjg91.js.br +0 -0
- package/web/chunk-vrtdjg91.js.gz +0 -0
- package/web/chunk-vx6qbmd7.js +2 -0
- package/web/chunk-vx6qbmd7.js.br +0 -0
- package/web/chunk-vx6qbmd7.js.gz +0 -0
- package/web/chunk-w563538j.js +370 -0
- package/web/chunk-w563538j.js.br +0 -0
- package/web/chunk-w563538j.js.gz +0 -0
- package/web/chunk-w71t7mes.js +1 -0
- package/web/chunk-w71t7mes.js.br +0 -0
- package/web/chunk-w71t7mes.js.gz +0 -0
- package/web/chunk-w96etr1w.js +1 -0
- package/web/chunk-w96etr1w.js.br +0 -0
- package/web/chunk-w96etr1w.js.gz +0 -0
- package/web/chunk-wrqazg2v.js +2 -0
- package/web/chunk-wrqazg2v.js.br +0 -0
- package/web/chunk-wrqazg2v.js.gz +0 -0
- package/web/chunk-xsyrxa45.js +2 -0
- package/web/chunk-xsyrxa45.js.br +0 -0
- package/web/chunk-xsyrxa45.js.gz +0 -0
- package/web/chunk-xv1d350x.js +1 -0
- package/web/chunk-xv1d350x.js.br +0 -0
- package/web/chunk-xv1d350x.js.gz +0 -0
- package/web/chunk-xw8tzrmm.js +1135 -0
- package/web/chunk-xw8tzrmm.js.br +0 -0
- package/web/chunk-xw8tzrmm.js.gz +0 -0
- package/web/chunk-xwsh4jx7.js +1 -0
- package/web/chunk-xwsh4jx7.js.br +2 -0
- package/web/chunk-xwsh4jx7.js.gz +0 -0
- package/web/chunk-xxk7xkrs.js +1 -0
- package/web/chunk-xxk7xkrs.js.br +0 -0
- package/web/chunk-xxk7xkrs.js.gz +0 -0
- package/web/chunk-y5zd05mz.js +40 -0
- package/web/chunk-y5zd05mz.js.br +0 -0
- package/web/chunk-y5zd05mz.js.gz +0 -0
- package/web/chunk-yg9a23mv.js +1 -0
- package/web/chunk-yg9a23mv.js.br +0 -0
- package/web/chunk-yg9a23mv.js.gz +0 -0
- package/web/chunk-ygzgrjj7.js +7 -0
- package/web/chunk-ygzgrjj7.js.br +0 -0
- package/web/chunk-ygzgrjj7.js.gz +0 -0
- package/web/chunk-yp75a6yh.js +4 -0
- package/web/chunk-yp75a6yh.js.br +0 -0
- package/web/chunk-yp75a6yh.js.gz +0 -0
- package/web/chunk-yygayy5a.js +1 -0
- package/web/chunk-yygayy5a.js.br +0 -0
- package/web/chunk-yygayy5a.js.gz +0 -0
- package/web/chunk-za5j3w7x.js +2 -0
- package/web/chunk-za5j3w7x.js.br +0 -0
- package/web/chunk-za5j3w7x.js.gz +0 -0
- package/web/chunk-zs7c2db4.js +1 -0
- package/web/chunk-zs7c2db4.js.br +0 -0
- package/web/chunk-zs7c2db4.js.gz +0 -0
- package/web/chunk-zsae1tn8.js +98 -0
- package/web/chunk-zsae1tn8.js.br +0 -0
- package/web/chunk-zsae1tn8.js.gz +0 -0
- package/web/index.html +1 -1
- package/web/index.html.br +0 -0
- package/web/index.html.gz +0 -0
- package/worker.js +1 -1
- package/chunk-01g872ez.js +0 -3
- package/chunk-078td1r4.js +0 -7
- package/chunk-1mhv12a5.js +0 -3
- package/chunk-1zrht78t.js +0 -2
- package/chunk-2e4xds74.js +0 -18
- package/chunk-2hkpqjqj.js +0 -3
- package/chunk-2mhpgb4t.js +0 -2
- package/chunk-3nwqng5t.js +0 -59
- package/chunk-3zm1ejmh.js +0 -3
- package/chunk-4d9p68s9.js +0 -3
- package/chunk-5znfck4s.js +0 -5
- package/chunk-6048rq29.js +0 -8
- package/chunk-61zk13qr.js +0 -3
- package/chunk-62ty404c.js +0 -2
- package/chunk-6vp2nqbj.js +0 -2
- package/chunk-7a5derff.js +0 -25
- package/chunk-7qhbff72.js +0 -5
- package/chunk-7xw6fpx3.js +0 -3
- package/chunk-84rk4tew.js +0 -2
- package/chunk-8wb8yr7d.js +0 -12
- package/chunk-93b76hhg.js +0 -11
- package/chunk-9h05aqdd.js +0 -25
- package/chunk-a2jsx2ew.js +0 -3
- package/chunk-a2qwx6cr.js +0 -2
- package/chunk-a7h459z1.js +0 -2
- package/chunk-atjwde1c.js +0 -2
- package/chunk-bk20awc9.js +0 -10
- package/chunk-bm2jhkqt.js +0 -3
- package/chunk-bp4zk5ch.js +0 -3
- package/chunk-c5ess8kd.js +0 -3
- package/chunk-cj7yhgnd.js +0 -2
- package/chunk-cjq2bzkf.js +0 -3
- package/chunk-csrpxzn7.js +0 -3
- package/chunk-cwesdh51.js +0 -39
- package/chunk-dt594v3d.js +0 -9
- package/chunk-dwxp0gtf.js +0 -4
- package/chunk-ejdewe04.js +0 -3
- package/chunk-fkzk83xs.js +0 -2
- package/chunk-fsnc2sja.js +0 -3
- package/chunk-g18hxgdr.js +0 -12
- package/chunk-hfwy0rzt.js +0 -10
- package/chunk-hg5wmrfb.js +0 -3
- package/chunk-hvex6qjc.js +0 -5
- package/chunk-hw8xknv5.js +0 -2
- package/chunk-j91wgfzj.js +0 -2
- package/chunk-jyx4ynyp.js +0 -3
- package/chunk-jz1pavma.js +0 -20
- package/chunk-kjjrmfmt.js +0 -2
- package/chunk-kz1ja7t7.js +0 -31
- package/chunk-mh4s6m7e.js +0 -2
- package/chunk-n0g6w24y.js +0 -3
- package/chunk-nnp82zvz.js +0 -5
- package/chunk-p34keb5j.js +0 -3
- package/chunk-pcxaycc3.js +0 -3560
- package/chunk-pdwexj34.js +0 -16
- package/chunk-phpse938.js +0 -3
- package/chunk-pt14ba7d.js +0 -15
- package/chunk-q0hvv6bh.js +0 -390
- package/chunk-qd4xtknk.js +0 -2
- package/chunk-qfg0dr8f.js +0 -2
- package/chunk-qnrkh3ca.js +0 -7
- package/chunk-r1t5yhee.js +0 -7
- package/chunk-r5na5qx5.js +0 -2
- package/chunk-r7a6q57s.js +0 -2
- package/chunk-smsn4ebc.js +0 -4
- package/chunk-sqr8tx1m.js +0 -471
- package/chunk-t4twa09y.js +0 -2
- package/chunk-tjs6h6zk.js +0 -4
- package/chunk-tvbh69tm.js +0 -3
- package/chunk-tvv9yfqv.js +0 -11
- package/chunk-vbdf5psp.js +0 -2
- package/chunk-vr60qwyg.js +0 -2
- package/chunk-w509y6w6.js +0 -2
- package/chunk-w7n83ye7.js +0 -7
- package/chunk-wacjm9ww.js +0 -3
- package/chunk-xex050bc.js +0 -3
- package/chunk-y0fgbrkc.js +0 -2
- package/chunk-ysfpdxjy.js +0 -3
- package/chunk-ytsnns2n.js +0 -2
- package/chunk-zwgdbrbg.js +0 -2
- package/chunk-zz7qjanc.js +0 -2
- package/web/chunk-07q4pdkf.js +0 -1
- package/web/chunk-07q4pdkf.js.br +0 -0
- package/web/chunk-07q4pdkf.js.gz +0 -0
- package/web/chunk-0s237vb2.js +0 -2
- package/web/chunk-0s237vb2.js.br +0 -0
- package/web/chunk-0s237vb2.js.gz +0 -0
- package/web/chunk-0zbmaspt.js +0 -24
- package/web/chunk-0zbmaspt.js.br +0 -0
- package/web/chunk-0zbmaspt.js.gz +0 -0
- package/web/chunk-11p8z5sv.js +0 -8
- package/web/chunk-11p8z5sv.js.br +0 -0
- package/web/chunk-11p8z5sv.js.gz +0 -0
- package/web/chunk-1axadk7j.js +0 -2
- package/web/chunk-1axadk7j.js.br +0 -0
- package/web/chunk-1axadk7j.js.gz +0 -0
- package/web/chunk-1ebz6hbk.js +0 -1
- package/web/chunk-1ebz6hbk.js.br +0 -0
- package/web/chunk-1ebz6hbk.js.gz +0 -0
- package/web/chunk-1pg22vjr.js +0 -38
- package/web/chunk-1pg22vjr.js.br +0 -0
- package/web/chunk-1pg22vjr.js.gz +0 -0
- package/web/chunk-1ys90q5s.js +0 -1
- package/web/chunk-1ys90q5s.js.br +0 -0
- package/web/chunk-1ys90q5s.js.gz +0 -0
- package/web/chunk-1zd8azrg.js +0 -34
- package/web/chunk-1zd8azrg.js.br +0 -0
- package/web/chunk-1zd8azrg.js.gz +0 -0
- package/web/chunk-22rjbwxp.js +0 -303
- package/web/chunk-22rjbwxp.js.br +0 -0
- package/web/chunk-22rjbwxp.js.gz +0 -0
- package/web/chunk-2eg9t1mz.js +0 -2
- package/web/chunk-2eg9t1mz.js.br +0 -0
- package/web/chunk-2eg9t1mz.js.gz +0 -0
- package/web/chunk-2emc5sd7.js +0 -12
- package/web/chunk-2emc5sd7.js.br +0 -0
- package/web/chunk-2emc5sd7.js.gz +0 -0
- package/web/chunk-2gj9yydt.js +0 -2
- package/web/chunk-2gj9yydt.js.br +0 -0
- package/web/chunk-2gj9yydt.js.gz +0 -0
- package/web/chunk-2kwn5gsx.js +0 -1
- package/web/chunk-2kwn5gsx.js.br +0 -0
- package/web/chunk-2kwn5gsx.js.gz +0 -0
- package/web/chunk-2r84nrwk.js +0 -99
- package/web/chunk-2r84nrwk.js.br +0 -0
- package/web/chunk-2r84nrwk.js.gz +0 -0
- package/web/chunk-3abhxhtv.js +0 -2
- package/web/chunk-3abhxhtv.js.br +0 -0
- package/web/chunk-3abhxhtv.js.gz +0 -0
- package/web/chunk-3cgxntbk.js +0 -2
- package/web/chunk-3cgxntbk.js.br +0 -0
- package/web/chunk-3cgxntbk.js.gz +0 -0
- package/web/chunk-3g3n9pc5.js +0 -332
- package/web/chunk-3g3n9pc5.js.br +0 -0
- package/web/chunk-3g3n9pc5.js.gz +0 -0
- package/web/chunk-3qmpdzq2.js +0 -1
- package/web/chunk-3qmpdzq2.js.br +0 -0
- package/web/chunk-3qmpdzq2.js.gz +0 -0
- package/web/chunk-3rxjewe5.js +0 -2
- package/web/chunk-3rxjewe5.js.br +0 -0
- package/web/chunk-3rxjewe5.js.gz +0 -0
- package/web/chunk-3vh17h7n.js +0 -62
- package/web/chunk-3vh17h7n.js.br +0 -0
- package/web/chunk-3vh17h7n.js.gz +0 -0
- package/web/chunk-49ywdzda.js +0 -36
- package/web/chunk-49ywdzda.js.br +0 -0
- package/web/chunk-49ywdzda.js.gz +0 -0
- package/web/chunk-5ch8rwjz.js +0 -2
- package/web/chunk-5ch8rwjz.js.br +0 -0
- package/web/chunk-5ch8rwjz.js.gz +0 -0
- package/web/chunk-5k1xca5m.js +0 -324
- package/web/chunk-5k1xca5m.js.br +0 -0
- package/web/chunk-5k1xca5m.js.gz +0 -0
- package/web/chunk-5t1yv276.js +0 -1
- package/web/chunk-5t1yv276.js.br +0 -0
- package/web/chunk-5t1yv276.js.gz +0 -0
- package/web/chunk-612xftnp.js +0 -1
- package/web/chunk-612xftnp.js.br +0 -0
- package/web/chunk-612xftnp.js.gz +0 -0
- package/web/chunk-6183jmyq.js +0 -2
- package/web/chunk-6183jmyq.js.br +0 -0
- package/web/chunk-6183jmyq.js.gz +0 -0
- package/web/chunk-66zp24sf.js +0 -2
- package/web/chunk-66zp24sf.js.br +0 -0
- package/web/chunk-66zp24sf.js.gz +0 -0
- package/web/chunk-67wywbgr.js +0 -2
- package/web/chunk-67wywbgr.js.br +0 -0
- package/web/chunk-67wywbgr.js.gz +0 -0
- package/web/chunk-6j0d6131.js +0 -1
- package/web/chunk-6j0d6131.js.br +0 -0
- package/web/chunk-6j0d6131.js.gz +0 -0
- package/web/chunk-79tbvvqj.js +0 -1
- package/web/chunk-79tbvvqj.js.br +0 -0
- package/web/chunk-79tbvvqj.js.gz +0 -0
- package/web/chunk-7bcksmqx.js +0 -2
- package/web/chunk-7bcksmqx.js.br +0 -0
- package/web/chunk-7bcksmqx.js.gz +0 -0
- package/web/chunk-7c2zkqgd.js +0 -89
- package/web/chunk-7c2zkqgd.js.br +0 -0
- package/web/chunk-7c2zkqgd.js.gz +0 -0
- package/web/chunk-7ed42dqv.js +0 -1
- package/web/chunk-7ed42dqv.js.br +0 -0
- package/web/chunk-7ed42dqv.js.gz +0 -0
- package/web/chunk-7mzdjjha.js +0 -1
- package/web/chunk-7mzdjjha.js.br +0 -0
- package/web/chunk-7mzdjjha.js.gz +0 -0
- package/web/chunk-7t1sb86g.js +0 -2
- package/web/chunk-7t1sb86g.js.br +0 -0
- package/web/chunk-7t1sb86g.js.gz +0 -0
- package/web/chunk-7t5kzbp1.js +0 -1
- package/web/chunk-7t5kzbp1.js.br +0 -0
- package/web/chunk-7t5kzbp1.js.gz +0 -0
- package/web/chunk-7tmzvm05.js +0 -2
- package/web/chunk-7tmzvm05.js.br +0 -0
- package/web/chunk-7tmzvm05.js.gz +0 -0
- package/web/chunk-80k4k6aw.js +0 -7
- package/web/chunk-80k4k6aw.js.br +0 -0
- package/web/chunk-80k4k6aw.js.gz +0 -0
- package/web/chunk-8tvy5xbr.js +0 -217
- package/web/chunk-8tvy5xbr.js.br +0 -0
- package/web/chunk-8tvy5xbr.js.gz +0 -0
- package/web/chunk-95jr0f0q.js +0 -139
- package/web/chunk-95jr0f0q.js.br +0 -0
- package/web/chunk-95jr0f0q.js.gz +0 -0
- package/web/chunk-9h6ayn54.js +0 -16
- package/web/chunk-9h6ayn54.js.br +0 -0
- package/web/chunk-9h6ayn54.js.gz +0 -0
- package/web/chunk-9jzpxvwa.js +0 -106
- package/web/chunk-9jzpxvwa.js.br +0 -0
- package/web/chunk-9jzpxvwa.js.gz +0 -0
- package/web/chunk-9mdbahpr.js +0 -2
- package/web/chunk-9mdbahpr.js.br +0 -0
- package/web/chunk-9mdbahpr.js.gz +0 -0
- package/web/chunk-9w6mjqgp.js +0 -1
- package/web/chunk-9w6mjqgp.js.br +0 -0
- package/web/chunk-9w6mjqgp.js.gz +0 -0
- package/web/chunk-9xb3j03w.js +0 -142
- package/web/chunk-9xb3j03w.js.br +0 -0
- package/web/chunk-9xb3j03w.js.gz +0 -0
- package/web/chunk-abzt3tzj.js +0 -1
- package/web/chunk-abzt3tzj.js.br +0 -0
- package/web/chunk-abzt3tzj.js.gz +0 -0
- package/web/chunk-ahebswgf.js +0 -1
- package/web/chunk-ahebswgf.js.br +0 -0
- package/web/chunk-ahebswgf.js.gz +0 -0
- package/web/chunk-ahsw5yz2.js +0 -2
- package/web/chunk-ahsw5yz2.js.br +0 -0
- package/web/chunk-ahsw5yz2.js.gz +0 -0
- package/web/chunk-b21jhnc3.js +0 -1
- package/web/chunk-b21jhnc3.js.br +0 -2
- package/web/chunk-b21jhnc3.js.gz +0 -0
- package/web/chunk-b3cn4qmw.js +0 -1
- package/web/chunk-b3cn4qmw.js.br +0 -0
- package/web/chunk-b3cn4qmw.js.gz +0 -0
- package/web/chunk-b4qxx7jx.js +0 -2
- package/web/chunk-b4qxx7jx.js.br +0 -0
- package/web/chunk-b4qxx7jx.js.gz +0 -0
- package/web/chunk-b79d9r5v.js +0 -98
- package/web/chunk-b79d9r5v.js.br +0 -0
- package/web/chunk-b79d9r5v.js.gz +0 -0
- package/web/chunk-b9x115jw.css +0 -1
- package/web/chunk-b9x115jw.css.br +0 -0
- package/web/chunk-b9x115jw.css.gz +0 -0
- package/web/chunk-bbnamv1j.js +0 -1
- package/web/chunk-bbnamv1j.js.br +0 -2
- package/web/chunk-bbnamv1j.js.gz +0 -0
- package/web/chunk-bgqfryh2.js +0 -1
- package/web/chunk-bgqfryh2.js.br +0 -0
- package/web/chunk-bgqfryh2.js.gz +0 -0
- package/web/chunk-bjrnqvf4.js +0 -1
- package/web/chunk-bjrnqvf4.js.br +0 -0
- package/web/chunk-bjrnqvf4.js.gz +0 -0
- package/web/chunk-d0bt1ypq.js +0 -140
- package/web/chunk-d0bt1ypq.js.br +0 -0
- package/web/chunk-d0bt1ypq.js.gz +0 -0
- package/web/chunk-dk3dpdnc.js +0 -4
- package/web/chunk-dk3dpdnc.js.br +0 -0
- package/web/chunk-dk3dpdnc.js.gz +0 -0
- package/web/chunk-dr35dsw5.js +0 -1
- package/web/chunk-dr35dsw5.js.br +0 -0
- package/web/chunk-dr35dsw5.js.gz +0 -0
- package/web/chunk-dy9amqbz.js +0 -1
- package/web/chunk-dy9amqbz.js.br +0 -0
- package/web/chunk-dy9amqbz.js.gz +0 -0
- package/web/chunk-e039ekp7.js +0 -89
- package/web/chunk-e039ekp7.js.br +0 -0
- package/web/chunk-e039ekp7.js.gz +0 -0
- package/web/chunk-e2e2fdwq.js +0 -30
- package/web/chunk-e2e2fdwq.js.br +0 -0
- package/web/chunk-e2e2fdwq.js.gz +0 -0
- package/web/chunk-e5j1v42p.js +0 -7
- package/web/chunk-e5j1v42p.js.br +0 -0
- package/web/chunk-e5j1v42p.js.gz +0 -0
- package/web/chunk-emsyqa1e.js +0 -1
- package/web/chunk-emsyqa1e.js.br +0 -0
- package/web/chunk-emsyqa1e.js.gz +0 -0
- package/web/chunk-en7n9d1p.js +0 -41
- package/web/chunk-en7n9d1p.js.br +0 -0
- package/web/chunk-en7n9d1p.js.gz +0 -0
- package/web/chunk-ez4yt1s1.js +0 -1
- package/web/chunk-ez4yt1s1.js.br +0 -0
- package/web/chunk-ez4yt1s1.js.gz +0 -0
- package/web/chunk-fe2hpamc.js +0 -200
- package/web/chunk-fe2hpamc.js.br +0 -0
- package/web/chunk-fe2hpamc.js.gz +0 -0
- package/web/chunk-fm7saxzr.js +0 -1
- package/web/chunk-fm7saxzr.js.br +0 -0
- package/web/chunk-fm7saxzr.js.gz +0 -0
- package/web/chunk-fz5d3ayq.js +0 -2
- package/web/chunk-fz5d3ayq.js.br +0 -0
- package/web/chunk-fz5d3ayq.js.gz +0 -0
- package/web/chunk-gc1ypgy4.js +0 -1
- package/web/chunk-gc1ypgy4.js.br +0 -0
- package/web/chunk-gc1ypgy4.js.gz +0 -0
- package/web/chunk-h23pczjh.js +0 -40
- package/web/chunk-h23pczjh.js.br +0 -0
- package/web/chunk-h23pczjh.js.gz +0 -0
- package/web/chunk-h2sttxfn.js +0 -1
- package/web/chunk-h2sttxfn.js.br +0 -2
- package/web/chunk-h2sttxfn.js.gz +0 -0
- package/web/chunk-h5m9ggsm.js +0 -2
- package/web/chunk-h5m9ggsm.js.br +0 -0
- package/web/chunk-h5m9ggsm.js.gz +0 -0
- package/web/chunk-h5zc1hw5.js +0 -1
- package/web/chunk-h5zc1hw5.js.br +0 -0
- package/web/chunk-h5zc1hw5.js.gz +0 -0
- package/web/chunk-hkg6bts9.js +0 -1
- package/web/chunk-hkg6bts9.js.br +0 -0
- package/web/chunk-hkg6bts9.js.gz +0 -0
- package/web/chunk-hncdpeer.js +0 -120
- package/web/chunk-hncdpeer.js.br +0 -0
- package/web/chunk-hncdpeer.js.gz +0 -0
- package/web/chunk-j40wechd.js +0 -2
- package/web/chunk-j40wechd.js.br +0 -0
- package/web/chunk-j40wechd.js.gz +0 -0
- package/web/chunk-jddmse74.js +0 -169
- package/web/chunk-jddmse74.js.br +0 -0
- package/web/chunk-jddmse74.js.gz +0 -0
- package/web/chunk-jdvdg38q.js +0 -3
- package/web/chunk-jdvdg38q.js.br +0 -0
- package/web/chunk-jdvdg38q.js.gz +0 -0
- package/web/chunk-jf6q93m9.js +0 -1
- package/web/chunk-jf6q93m9.js.br +0 -0
- package/web/chunk-jf6q93m9.js.gz +0 -0
- package/web/chunk-jfd1gybx.js +0 -39
- package/web/chunk-jfd1gybx.js.br +0 -0
- package/web/chunk-jfd1gybx.js.gz +0 -0
- package/web/chunk-jkgkt722.js +0 -1
- package/web/chunk-jkgkt722.js.br +0 -0
- package/web/chunk-jkgkt722.js.gz +0 -0
- package/web/chunk-k427fwgp.js +0 -1
- package/web/chunk-k427fwgp.js.br +0 -0
- package/web/chunk-k427fwgp.js.gz +0 -0
- package/web/chunk-k8pezbya.js +0 -2
- package/web/chunk-k8pezbya.js.br +0 -3
- package/web/chunk-k8pezbya.js.gz +0 -0
- package/web/chunk-k9t941fj.js +0 -1
- package/web/chunk-k9t941fj.js.br +0 -0
- package/web/chunk-k9t941fj.js.gz +0 -0
- package/web/chunk-kkzwvnft.js +0 -1
- package/web/chunk-kkzwvnft.js.br +0 -0
- package/web/chunk-kkzwvnft.js.gz +0 -0
- package/web/chunk-kpm8gp4z.js +0 -292
- package/web/chunk-kpm8gp4z.js.br +0 -0
- package/web/chunk-kpm8gp4z.js.gz +0 -0
- package/web/chunk-kqyk2an3.js +0 -214
- package/web/chunk-kqyk2an3.js.br +0 -0
- package/web/chunk-kqyk2an3.js.gz +0 -0
- package/web/chunk-m3gryxba.js +0 -2
- package/web/chunk-m3gryxba.js.br +0 -0
- package/web/chunk-m3gryxba.js.gz +0 -0
- package/web/chunk-m8h3c5x3.js +0 -1
- package/web/chunk-m8h3c5x3.js.br +0 -0
- package/web/chunk-m8h3c5x3.js.gz +0 -0
- package/web/chunk-mb7sr4tf.js +0 -55
- package/web/chunk-mb7sr4tf.js.br +0 -0
- package/web/chunk-mb7sr4tf.js.gz +0 -0
- package/web/chunk-meqcd10n.js +0 -1
- package/web/chunk-meqcd10n.js.br +0 -0
- package/web/chunk-meqcd10n.js.gz +0 -0
- package/web/chunk-msrq7vsz.js +0 -7
- package/web/chunk-msrq7vsz.js.br +0 -0
- package/web/chunk-msrq7vsz.js.gz +0 -0
- package/web/chunk-n1n55yt8.js +0 -84
- package/web/chunk-n1n55yt8.js.br +0 -0
- package/web/chunk-n1n55yt8.js.gz +0 -0
- package/web/chunk-nmnyaawa.js +0 -24
- package/web/chunk-nmnyaawa.js.br +0 -0
- package/web/chunk-nmnyaawa.js.gz +0 -0
- package/web/chunk-nwepnbvn.js +0 -70
- package/web/chunk-nwepnbvn.js.br +0 -0
- package/web/chunk-nwepnbvn.js.gz +0 -0
- package/web/chunk-p2cmfhpz.js +0 -2
- package/web/chunk-p2cmfhpz.js.br +0 -0
- package/web/chunk-p2cmfhpz.js.gz +0 -0
- package/web/chunk-pac9nyhp.js +0 -2
- package/web/chunk-pac9nyhp.js.br +0 -0
- package/web/chunk-pac9nyhp.js.gz +0 -0
- package/web/chunk-pdt40dj7.js +0 -1
- package/web/chunk-pdt40dj7.js.br +0 -2
- package/web/chunk-pdt40dj7.js.gz +0 -0
- package/web/chunk-phs38wt7.js +0 -2
- package/web/chunk-phs38wt7.js.br +0 -0
- package/web/chunk-phs38wt7.js.gz +0 -0
- package/web/chunk-prc7b9xh.js +0 -1
- package/web/chunk-prc7b9xh.js.br +0 -0
- package/web/chunk-prc7b9xh.js.gz +0 -0
- package/web/chunk-q1e80chw.js +0 -1
- package/web/chunk-q1e80chw.js.br +0 -2
- package/web/chunk-q1e80chw.js.gz +0 -0
- package/web/chunk-q6sv3fhe.js +0 -2
- package/web/chunk-q6sv3fhe.js.br +0 -0
- package/web/chunk-q6sv3fhe.js.gz +0 -0
- package/web/chunk-rdarpbhd.js +0 -2
- package/web/chunk-rdarpbhd.js.br +0 -0
- package/web/chunk-rdarpbhd.js.gz +0 -0
- package/web/chunk-rf93p28v.js +0 -1
- package/web/chunk-rf93p28v.js.br +0 -0
- package/web/chunk-rf93p28v.js.gz +0 -0
- package/web/chunk-rvmk483c.js +0 -1
- package/web/chunk-rvmk483c.js.br +0 -0
- package/web/chunk-rvmk483c.js.gz +0 -0
- package/web/chunk-s99vfrrz.js +0 -1
- package/web/chunk-s99vfrrz.js.br +0 -0
- package/web/chunk-s99vfrrz.js.gz +0 -0
- package/web/chunk-saem11tv.js +0 -2
- package/web/chunk-saem11tv.js.br +0 -0
- package/web/chunk-saem11tv.js.gz +0 -0
- package/web/chunk-scv8t4m6.js +0 -1
- package/web/chunk-scv8t4m6.js.br +0 -0
- package/web/chunk-scv8t4m6.js.gz +0 -0
- package/web/chunk-stsmcqxe.js +0 -1
- package/web/chunk-stsmcqxe.js.br +0 -0
- package/web/chunk-stsmcqxe.js.gz +0 -0
- package/web/chunk-svaq7f3c.js +0 -1134
- package/web/chunk-svaq7f3c.js.br +0 -0
- package/web/chunk-svaq7f3c.js.gz +0 -0
- package/web/chunk-sy099zt8.js +0 -1
- package/web/chunk-sy099zt8.js.br +0 -0
- package/web/chunk-sy099zt8.js.gz +0 -0
- package/web/chunk-thqrbjwn.js +0 -1
- package/web/chunk-thqrbjwn.js.br +0 -2
- package/web/chunk-thqrbjwn.js.gz +0 -0
- package/web/chunk-ty1m1k6b.js +0 -1
- package/web/chunk-ty1m1k6b.js.br +0 -0
- package/web/chunk-ty1m1k6b.js.gz +0 -0
- package/web/chunk-w54qcqk3.js +0 -1
- package/web/chunk-w54qcqk3.js.br +0 -0
- package/web/chunk-w54qcqk3.js.gz +0 -0
- package/web/chunk-wgf4paqc.js +0 -1
- package/web/chunk-wgf4paqc.js.br +0 -0
- package/web/chunk-wgf4paqc.js.gz +0 -0
- package/web/chunk-x5m7phbb.js +0 -1
- package/web/chunk-x5m7phbb.js.br +0 -0
- package/web/chunk-x5m7phbb.js.gz +0 -0
- package/web/chunk-x9wzj52f.js +0 -2
- package/web/chunk-x9wzj52f.js.br +0 -0
- package/web/chunk-x9wzj52f.js.gz +0 -0
- package/web/chunk-xgfam7bx.js +0 -1
- package/web/chunk-xgfam7bx.js.br +0 -0
- package/web/chunk-xgfam7bx.js.gz +0 -0
- package/web/chunk-xnn07hr4.js +0 -21
- package/web/chunk-xnn07hr4.js.br +0 -0
- package/web/chunk-xnn07hr4.js.gz +0 -0
- package/web/chunk-xreg1e03.js +0 -78
- package/web/chunk-xreg1e03.js.br +0 -0
- package/web/chunk-xreg1e03.js.gz +0 -0
- package/web/chunk-xsxd3wsv.js +0 -4
- package/web/chunk-xsxd3wsv.js.br +0 -0
- package/web/chunk-xsxd3wsv.js.gz +0 -0
- package/web/chunk-y7jebh1j.js +0 -1
- package/web/chunk-y7jebh1j.js.br +0 -0
- package/web/chunk-y7jebh1j.js.gz +0 -0
- package/web/chunk-yhn2mwnb.js +0 -291
- package/web/chunk-yhn2mwnb.js.br +0 -0
- package/web/chunk-yhn2mwnb.js.gz +0 -0
- package/web/chunk-yqwvedf5.js +0 -370
- package/web/chunk-yqwvedf5.js.br +0 -0
- package/web/chunk-yqwvedf5.js.gz +0 -0
- package/web/chunk-z3tr221x.js +0 -1
- package/web/chunk-z3tr221x.js.br +0 -0
- package/web/chunk-z3tr221x.js.gz +0 -0
- package/web/chunk-z4n3tx0q.js +0 -1
- package/web/chunk-z4n3tx0q.js.br +0 -0
- package/web/chunk-z4n3tx0q.js.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b,s,o,a,m,e,n,y,cr,ye}from"./chunk-xw8tzrmm.js";import{gi,yi,bi}from"./chunk-bg2ps35t.js";var te={global:"全局",project:"项目",custom:"自定义",builtin:"内置"};function F({skill:i,issue:x,connection:v}){let{Button:E,CopyButton:C,style:u,useTheme:R}=y();R();let[l,k]=a(),[L,P]=a(),[f,O]=a(0);return s(()=>{let p=!0;P(void 0),k(void 0);let S=new URLSearchParams;if(i.projectID)S.set("projectID",i.projectID);if(i.location)S.set("location",i.location);let N=S.toString()?`?${S.toString()}`:"";return Promise.all([v.request(`/api/skills/${encodeURIComponent(i.name)}/content${N}`),v.request(`/api/skills/${encodeURIComponent(i.name)}/files${N}`)]).then(([g,D])=>{if(p)k({text:g.text,files:D.files})}).catch((g)=>{if(p)P(g instanceof Error?g.message:"读取失败")}),()=>{p=!1}},[v,i.name,i.projectID,i.location,f]),n("div",{className:"min-w-0 space-y-5 text-sm text-ink",children:[e("p",{className:"whitespace-pre-wrap break-words [overflow-wrap:anywhere] text-dim",children:i.description||"暂无描述"}),n("div",{children:[n("p",{className:"break-all text-xs text-dim",children:[te[i.scope],i.projectName?` · ${i.projectName}`:""]}),n("div",{className:"mt-1 flex min-w-0 items-center gap-2",children:[e("code",{className:u("markdown.inlineCode","min-w-0 flex-1 break-all text-xs"),children:i.location}),e(C,{text:i.location,label:"复制完整路径",className:"size-10"})]})]}),n("ul",{className:"space-y-1 break-words text-xs text-dim",children:[e("li",{children:"启用状态按名称生效,影响同名技能在新会话与压缩刷新后的可用性。"}),i.disableModelInvocation&&e("li",{children:"仅手动:可由用户调用,不向模型自动提供。"}),i.platforms&&n("li",{children:["平台限制:",i.platforms.join("、")]}),i.disabled&&e("li",{children:"已禁用:不会提供给新会话或压缩刷新后的会话。"}),x?.overriddenBy&&n("li",{className:"break-all",children:["被覆盖:同名技能优先使用 ",x.overriddenBy]})]}),i.commands?.length?n("div",{children:[e("h3",{className:"font-medium",children:"bin 命令"}),e("p",{className:"mt-1 text-xs text-dim",children:"技能目录中的可执行命令。"}),e("ul",{className:"mt-2 space-y-1 font-mono text-xs",children:i.commands.map((p)=>e("li",{className:"break-all",children:p},p))})]}):null,L?n("div",{role:"alert",className:"space-y-2",children:[n("p",{className:"break-words text-danger",children:["读取失败:",L]}),e(E,{className:"h-10",onClick:()=>O(f+1),children:"重试"})]}):!l?e("p",{role:"status",className:"text-dim",children:"正在读取文件…"}):n(m,{children:[n("section",{children:[n("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e("h3",{className:"font-medium",children:"SKILL.md 原文"}),e(C,{text:l.text,label:"复制 SKILL.md 原文",className:"size-10"})]}),n("p",{className:"mb-2 text-xs text-faint",children:[l.text.length.toLocaleString()," 字符 · 约 ",Math.ceil(l.text.length/4).toLocaleString()," ","tokens(估算)"]}),e("pre",{className:u("surface.subtle",u("chat.toolOutput"),"rounded-lg bg-raised p-3 text-xs leading-5 break-all"),children:l.text})]}),n("section",{children:[n("h3",{className:"font-medium",children:["目录文件 · ",l.files.length,l.files.length===200?"(最多显示 200 个)":""]}),e("ul",{className:"mt-2 space-y-1 font-mono text-xs text-dim",children:l.files.map((p)=>e("li",{className:"break-all",children:p},p))})]})]})]})}var A="all",G="non-project";function me({connection:i}){let{Button:x,Select:v,Dialog:E,CatalogRow:C,style:u,useTheme:R}=y();R();let[l,k]=a([]),[L,P]=a([]),[f,O]=a(A),[p,S]=a([]),[N,g]=a(),[D,H]=a(""),[w,B]=a(),[h,q]=a(!0),[K,z]=a(),[W,Q]=a(),d=o(0),I=o(!1),j=b(async(t=!1)=>{let r=++d.current;I.current=!0,q(!0);try{if(t)await i.request("/api/skills/rescan",{method:"POST"});let[c,U,T]=await Promise.all([i.request("/api/skills?all=true"),i.request("/api/skills/settings"),i.request("/api/projects")]);if(r!==d.current)return;k(c.skills),P(T),S(c.issues),g(U),Q(new Date),z(void 0)}catch(c){if(r===d.current)z(c instanceof Error?c.message:"读取失败")}finally{if(r===d.current)I.current=!1,q(!1)}},[i]);s(()=>(j(),()=>{d.current++}),[j]);async function V(t){if(I.current)return;I.current=!0;let r=++d.current;q(!0);try{let c=await i.request("/api/skills/settings",{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)});if(r!==d.current)return;g(c),await j()}catch(c){if(r!==d.current)return;z(c instanceof Error?c.message:"保存设置失败"),I.current=!1,q(!1)}}let X=D.trim().toLocaleLowerCase(),Y=L.filter((t)=>l.some((r)=>r.projectID===t.id)),J=f===A?l:l.filter((t)=>{if(t.scope!=="project")return!0;return f!==G&&t.projectID===f}),M=J.filter((t)=>`${t.name} ${t.description??""}`.toLocaleLowerCase().includes(X)),_=(t)=>p.find((r)=>r.kind==="overridden"&&(r.path==="<built-in>"?t.scope==="builtin":r.path.replace(/\\/g,"/")===`${t.location.replace(/\\/g,"/")}/SKILL.md`));return n("div",{className:"min-w-0 space-y-6",children:[n("section",{className:"min-w-0",children:[n("div",{className:"mb-2.5 flex flex-wrap items-end justify-between gap-3 px-0.5",children:[n("div",{className:"min-w-0 flex-1 basis-48",children:[e("h2",{className:u("settings.groupTitle"),children:"技能"}),e("p",{"aria-live":"polite",className:u("settings.groupDesc"),children:W&&`找到 ${J.length} 个 · ${W.toLocaleTimeString("zh-CN",{hour12:!1})}`})]}),n("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[e(v,{value:f,disabled:h,onValueChange:(t)=>{B(void 0),O(t)},groups:[{options:[{value:A,label:"全部来源"},{value:G,label:"非项目技能"}]},...gi(Y)],className:"w-44"}),n(x,{variant:"ghost",disabled:h,onClick:()=>j(!0),className:"h-9 px-2.5 text-xs",children:[e(ye,{className:`size-3.5 ${h?"animate-spin":""}`}),e("span",{className:"ml-1",children:"重新扫描"})]})]})]}),K&&n("div",{role:"alert",className:"mb-3 flex flex-wrap items-center gap-2 rounded-xl border border-line p-3",children:[n("p",{className:"min-w-0 flex-1 break-words text-sm text-danger",children:["无法更新技能:",K]}),e(x,{disabled:h,onClick:()=>j(),children:"重试"})]}),e(yi,{label:"搜索技能",placeholder:"搜索技能",value:D,onChange:H}),e("div",{className:u("settings.groupBox"),children:h&&!l.length?e(bi,{}):M.length===0?e("p",{className:"p-4 text-sm text-dim",children:"没有找到匹配的技能"}):e("ul",{className:"divide-y divide-line",children:M.map((t)=>{let r=_(t),c=t.disabled;return e("li",{children:e(C,{name:t.name,selectLabel:`查看技能 ${t.name}`,onSelect:()=>B(t),description:t.description,inactive:c,aside:n(m,{children:[r&&n("span",{className:"flex items-center gap-1 text-xs text-warning",children:[e(cr,{className:"size-3.5"}),"被覆盖"]}),e("span",{className:u("control.badge"),children:t.scope==="project"?"项目":t.scope==="builtin"?"内置":"全局"})]}),toggle:{checked:!c,label:`启用技能 ${t.name}`,disabled:h,onCheckedChange:(U)=>{if(!N)return;let T=N.disabled??[],Z=U?T.filter((ee)=>ee!==t.name):[...T,t.name];V({...N,disabled:Z})}}})},`${t.scope}:${t.projectID??""}:${t.name}`)})})})]}),e(E,{open:Boolean(w),onOpenChange:(t)=>{if(!t)B(void 0)},title:w?.name??"",size:"lg",footer:e("div",{className:"flex w-full justify-end",children:e(x,{variant:"primary",onClick:()=>B(void 0),children:"关闭"})}),children:w&&e(F,{skill:w,issue:_(w),connection:i})})]})}export{me as SkillsSection};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,m,e,n,y,l,xe,se,K,Bt}from"./chunk-xw8tzrmm.js";var z=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],h=l("circle-slash",z);function B(t){if(!t||typeof t!=="object")return;if(!("id"in t)||typeof t.id!=="string")return;if(!("state"in t)||typeof t.state!=="string")return;return{id:t.id,state:t.state,command:"command"in t&&typeof t.command==="string"?t.command:void 0,code:"code"in t&&(t.code===null||typeof t.code==="number")?t.code:void 0,output:"output"in t&&typeof t.output==="string"?t.output:void 0}}function U(t){let{Button:N,Panel:b,style:k}=y(),s=B(t.payload),[o,r]=a(!1),[C,P]=a(!1),[c,u]=a();if(!s)return null;let i=C?"killed":s.state,d=i==="running",f=i==="exited"&&s.code===0,p=i==="killed"||i==="timeout",g=s.output?.trim(),I=async()=>{if(o)return;r(!0),u(void 0);try{await t.connection.request(`/api/sessions/${encodeURIComponent(t.sessionID)}/jobs/${encodeURIComponent(s.id)}/kill`,{method:"POST"}),P(!0)}catch(x){u(x instanceof Error?x.message:"停止失败,后台任务可能已结束")}finally{r(!1)}};return n(b,{className:"my-2",header:n(m,{children:[e(Bt,{className:"size-3.5 shrink-0 text-faint"}),e("span",{className:"truncate font-mono text-ink/90",title:s.command??s.id,children:s.command??`任务 ${s.id}`})]}),actions:n(m,{children:[d&&n(m,{children:[n("span",{className:"flex items-center gap-1 text-warning",children:[e(se,{className:"size-3.5 animate-spin"}),e("span",{children:"后台运行中"})]}),e(N,{size:"sm",variant:"danger-ghost",className:"h-6 rounded-md px-2 text-xs",disabled:o,onClick:()=>{I()},children:"停止"})]}),f&&n("span",{className:"flex items-center gap-1 text-success",children:[e(K,{className:"size-3.5"}),e("span",{children:"已完成"})]}),p&&n("span",{className:"flex items-center gap-1 text-faint",children:[e(h,{className:"size-3.5"}),e("span",{children:i==="timeout"?"已超时":"已停止"})]}),!d&&!f&&!p&&n("span",{className:"flex items-center gap-1 text-danger",children:[e(xe,{className:"size-3.5"}),n("span",{children:["退出码 ",s.code??"异常"]})]})]}),children:[c&&e("p",{role:"status",className:"border-b border-line px-4 py-2.5 text-xs text-danger",children:c}),g&&e("pre",{className:k("chat.toolOutput","max-h-60 text-ink/90 select-text"),children:g})]})}export{U as BashJobCard};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b,s,ee,o,a,e,n,y,Tn,ye}from"./chunk-xw8tzrmm.js";import{Vn}from"./chunk-g1penf6y.js";import"./chunk-abvtsz6z.js";var F={config:"自定义路径",env:"环境变量",system:"系统预装"},x="chrome://inspect/#remote-debugging";function H({connection:d}){let{Button:h,Input:B,Switch:E,SettingGroup:S,SettingRow:f,cn:v}=y(),N=ee(),[m,R]=a({}),[r,g]=a({}),[i,C]=a(null),[u,A]=a(!0),[k,O]=a(!1),[p,P]=a(!1),[I,c]=a(null),D=o(null),T=(r.executable??"")!==(m.executable??"")||Boolean(r.noSandbox)!==Boolean(m.noSandbox)||Boolean(r.ignoreCertErrors)!==Boolean(m.ignoreCertErrors)||(r.cdpEndpoint??"")!==(m.cdpEndpoint??""),G=b(async(t)=>{O(!0);try{let l=await d.request("/api/plugins/browser/status",{signal:t});C(l)}catch(l){if(!t?.aborted)C({available:!1,error:l instanceof Error?l.message:"无法获取浏览器状态"})}finally{if(!t?.aborted)O(!1)}},[d]);s(()=>{let t=new AbortController;return D.current=t,Promise.all([d.request("/api/plugins/browser/settings",{signal:t.signal}),d.request("/api/plugins/browser/status",{signal:t.signal})]).then(([l,w])=>{if(!t.signal.aborted)R(l),g(l),C(w)}).catch((l)=>{if(!t.signal.aborted)c({type:"error",text:l instanceof Error?l.message:"读取浏览器设置失败"})}).finally(()=>{if(!t.signal.aborted)A(!1)}),()=>t.abort()},[d]);let q=async(t)=>{if(t?.preventDefault(),p||u)return;let l=new AbortController;P(!0),c(null);try{if(await d.request("/api/plugins/browser/settings",{method:"PATCH",signal:l.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),!l.signal.aborted)R(r),c({type:"success",text:"设置已保存,将在浏览器进程下次启动时生效。"}),await G(l.signal)}catch(w){if(!l.signal.aborted)c({type:"error",text:w instanceof Error?w.message:"保存设置失败"})}finally{if(!l.signal.aborted)P(!1)}},U=()=>{g(m),c(null)},L=async()=>{try{await navigator.clipboard.writeText(x),c({type:"success",text:"已复制,粘贴到 Chrome 地址栏打开后开启远程调试。"})}catch{c({type:"error",text:`无法写入剪贴板,请手动复制:${x}`})}},_=i?.user?.available===!1,z="首次连接时在 Chrome 弹窗中点「允许」";if(_)z=r.cdpEndpoint?e("span",{className:"break-words text-danger",children:i?.user?.error}):"在 Chrome 打开远程调试设置页并开启";return n("form",{id:N,onSubmit:q,className:"min-w-0 space-y-5",children:[e(S,{title:"运行环境",children:e(f,{title:n("span",{className:"flex items-center gap-2",children:[e("span",{className:v("size-2 shrink-0 rounded-full",i?.available?"bg-success":"bg-danger")}),i?i.available?"浏览器可用":"未检测到可用浏览器":"正在检测…"]}),description:i&&!i.available&&i.error?e("span",{className:"text-danger",children:i.error}):i?.available&&i.source?`来源:${F[i.source]??i.source}`:void 0,children:n(h,{type:"button",size:"sm",variant:"ghost",disabled:u||k,onClick:()=>void G(),className:"text-dim",children:[e(ye,{className:v("size-3.5",k&&"animate-spin")}),"重新检测"]})})}),n(S,{title:"用户浏览器",children:[e(f,{title:n("span",{className:"flex items-center gap-2",children:[e("span",{className:v("size-2 shrink-0 rounded-full",i?.user?.available?"bg-success":"bg-danger")}),i?.user?i.user.available?"可以连接":"暂不可连接":"正在检测…"]}),description:z,children:!r.cdpEndpoint&&n(h,{type:"button",size:"sm",variant:"secondary",title:x,onClick:()=>void L(),children:[e(Tn,{className:"size-3.5"}),"复制远程调试地址"]})}),e(f,{vertical:!0,title:"调试地址",description:"可选,连接以 --remote-debugging-port 启动的本机浏览器",children:e(B,{id:"browser-cdp-endpoint","aria-label":"浏览器调试地址",disabled:u||p,value:r.cdpEndpoint??"",placeholder:"留空连接日常 Chrome",onChange:(t)=>{g({...r,cdpEndpoint:t.target.value}),c(null)}})})]}),n(S,{title:"启动参数",children:[e(f,{vertical:!0,title:"可执行文件路径",description:"留空时自动探测系统浏览器",children:n("div",{className:"flex gap-2",children:[e(B,{id:"browser-executable",disabled:u||p,value:r.executable??"",placeholder:"自动探测",onChange:(t)=>{g({...r,executable:t.target.value}),c(null)}}),r.executable&&e(h,{type:"button",variant:"ghost",size:"sm",disabled:u||p,onClick:()=>{g({...r,executable:""}),c(null)},className:"shrink-0",children:"清空"})]})}),e(f,{title:"禁用沙箱 (--no-sandbox)",description:"容器或 root 环境使用",children:e(E,{label:"禁用沙箱",disabled:u||p,checked:r.noSandbox??!1,onCheckedChange:(t)=>{g({...r,noSandbox:t}),c(null)}})}),e(f,{title:"忽略证书错误 (--ignore-certificate-errors)",description:"跳过自签名与证书有效性检查",children:e(E,{label:"忽略证书错误",disabled:u||p,checked:r.ignoreCertErrors??!1,onCheckedChange:(t)=>{g({...r,ignoreCertErrors:t}),c(null)}})})]}),e(Vn,{formID:N,notice:I,dirty:T,busy:u||p,saving:p,onReset:U})]})}export{H as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{ae}from"./chunk-wrqazg2v.js";import{t,i,F,A,j,L,N,R,P,I,O,D,d,Wa,g,Vr,Di,Z}from"./chunk-n59nyqcr.js";import{wi,he}from"./chunk-2z4zhtw4.js";var H="position frame",U="frame positioned",k="position relation",_="relation positioned",pe=t(function(e){i.debug("options str",e)},"setOptions"),ve=t(function(){return{}},"getOptions"),be=t(function(){G(),L()},"clear");function G(){S={}}t(G,"reset");var we=F.eventmodeling,ye=t(()=>Z({...we,...A().eventmodeling}),"getConfig"),S={};function V(){let e=Pe,{ast:r}=S,n=T();if(!r)throw Error("No data for EventModel");return r.frames.forEach((a,o)=>{let s=Q(a,r.dataEntities,n);e=y(e,{$kind:H,index:o,frame:a,textProps:s});let c=void 0;if(oe(a))i.debug("source frame",a.sourceFrames),c=r.frames.filter((m)=>a.sourceFrames.some((u)=>u.$refText===m.name)),c.forEach((m)=>{e=y(e,{$kind:k,index:o,frame:a,sourceFrame:m})});else e=y(e,{$kind:k,index:o,frame:a})}),e={...e,sortedSwimlanesArray:C(e.swimlanes)},e}t(V,"getState");function X(e){S.ast=void 0;let r=new Set;for(let n of e.frames){if(r.has(n.name)){let a=n.$cstNode?.range.start.line,o=a===void 0?"":` on line ${a+1}`;throw Error(`Duplicate event modeling frame ID "${n.name}"${o}`)}r.add(n.name)}S.ast=e}t(X,"setAst");var l={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function T(){return l}t(T,"getDiagramProps");var Pe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function Y(e){let r=e.split(".");if(r.length===2)return r[0];return}t(Y,"extractNamespace");function z(e){let r=e.split(".");if(r.length===2)return r[1];return e}t(z,"extractName");function K(e,r){if(!r||r.length===0)return;return Object.values(e).find((n)=>n.namespace===r)}t(K,"findSwimlaneByNamespace");function w(e,r,n){return Math.max(r,...Object.keys(e).filter((a)=>{let o=Number.parseInt(a);return o>r&&o<n}).map((a)=>Number.parseInt(a)))+1}t(w,"findNextAvailableIndex");function q(e,r){let n=Y(e.entityIdentifier),a=K(r,n);switch(e.modelEntityType){case"ui":case"pcr":case"processor":if(a)return{index:a.index,label:a.namespace||l.labelUiAutomation};else if(n)return{index:w(r,0,100),label:l.labelUiAutomationPrefix+n};return{index:0,label:l.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":if(a)return{index:a.index,label:a.namespace||l.labelCommandReadModel};else if(n)return{index:w(r,100,200),label:l.labelCommandReadModelPrefix+n};return{index:100,label:l.labelCommandReadModel};case"evt":case"event":default:if(a)return{index:a.index,label:a.namespace||l.labelEvents};else if(n)return{index:w(r,200,300),label:l.labelEventsPrefix+n};return{index:200,label:l.labelEvents}}}t(q,"calculateSwimlaneProps");function J(e){let{themeVariables:r}=A();switch(e.modelEntityType){case"ui":return{fill:r.emUiFill??"white",stroke:r.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:r.emProcessorFill??"#edb3f6",stroke:r.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:r.emReadModelFill??"#d3f1a2",stroke:r.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:r.emCommandFill??"#bcd6fe",stroke:r.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:r.emEventFill??"#ffb778",stroke:r.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}t(J,"calculateEntityVisualProps");function Q(e,r,n){let a=A(),o=j(z(e.entityIdentifier)??"",a),s,c={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"},u=`<b>${Vr(o,n.textMaxWidth,c)}</b>`;if(e.dataInlineValue)s=e.dataInlineValue,s=s.substring(s.indexOf("{")+1),s=s.substring(0,s.lastIndexOf("}")-1),s=j(s,a),s=Vr(s,n.textMaxWidth,c),s=s.replaceAll(" "," ");if(e.dataReference){let b=r.find((M)=>M.name===e.dataReference?.$refText);if(b)s=b.dataBlockValue,s=s.substring(s.indexOf(`{
|
|
2
|
+
`)+2),s=s.substring(0,s.lastIndexOf("}")-1),s=j(s,a),s=Vr(s,n.textMaxWidth,c),s=s.replaceAll(" "," "),s+="<br/>"}let x=s!==void 0;if(x)u+=`<br/><br/><code style="text-align: left; display: block;max-width:${n.textMaxWidth}px">${s}</code>`;let h={fontSize:c.fontSize,fontWeight:c.fontWeight,fontFamily:c.fontFamily},f=Di(u,h),v=x?f.width/3:f.width,p={content:u,width:v,height:f.height};return i.debug(`[${e.name}] ${e.entityIdentifier} text`,p),p}t(Q,"calculateTextProps");function ee(e,r){let n=r,a=J(n.frame),o={width:n.textProps.width+2*l.boxTextPadding,height:n.textProps.height+2*l.boxTextPadding};return[{$kind:U,frame:n.frame,index:n.index,visual:a,dimension:o,textProps:n.textProps}]}t(ee,"decidePositionFrame");function te(e,r,n){if(r===void 0)return l.contentStartX;if(r.index===e.index&&e.r)return e.r+l.boxPadding;if(n===void 0)return l.contentStartX;return n.r-l.boxOverlap+l.boxPadding}t(te,"calculateX");function ne(e,r){let n=[...e.map((a)=>a.r),r];return Math.max(...n)}t(ne,"calculateMaxRight");function C(e){return Object.values(e).sort((r,n)=>r.index-n.index)}t(C,"sortedSwimlanesArray");function ie(e,r){let n=r,a=q(n.frame,e.swimlanes),o;if(a.index in e.swimlanes)o=e.swimlanes[a.index];else o={index:a.index,label:a.label,r:0,y:a.index*l.swimlaneMinHeight+l.swimlaneGap,height:l.swimlaneMinHeight,maxHeight:l.swimlaneMinHeight};let s=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,c=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,m={width:Math.max(l.boxMinWidth,Math.min(l.boxMaxWidth,n.dimension.width))+2*l.boxPadding,height:Math.max(l.boxMinHeight,Math.min(l.boxMaxHeight,n.dimension.height))+2*l.boxPadding},u=te(o,c,s),x=u+m.width+l.boxPadding,h=ne(Object.values(e.swimlanes),x);o.r=u+m.width,o.maxHeight=Math.max(o.maxHeight,m.height),o.height=Math.max(l.swimlaneMinHeight,o.maxHeight)+2*l.swimlanePadding;let f={x:u,y:l.swimlanePadding+o.y,r:x,dimension:m,leftSibling:!1,swimlane:o,visual:n.visual,text:n.textProps.content,frame:n.frame,index:n.index},v={...e,boxes:[...e.boxes,f],swimlanes:{...e.swimlanes,[`${o.index}`]:o},previousSwimlaneNumber:a.index,previousFrame:n.frame,maxR:h},p=C(v.swimlanes);if(p.length>0)p[0].y=0;for(let b=1;b<p.length;b++){let M=p[b],W=p[b-1];M.y=W.y+W.height+l.swimlaneGap}return v}t(ie,"evolveFramePositioned");function re(e,r){if(e===0&&r.sourceFrames.length===0)return!0;return!1}t(re,"isFirstFrame");function oe(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}t(oe,"hasSourceFrame");function B(e,r){if(r===void 0||r===null)return;return e.find((n)=>n.frame.name===r.name)}t(B,"findBoxByFrame");function se(e,r,n){if(n<0)return;for(let a=n;a>=0;a--){let o=e[a];if(o.swimlane.index!==r)return o}return}t(se,"findBoxByLineIndex");function de(e,r){let n=r;if(re(n.index,n.frame))return[];let a=B(e.boxes,n.frame);if(a===void 0)throw Error(`Target box not found for frame ${n.frame.name}`);let o;if(n.sourceFrame)o=B(e.boxes,n.sourceFrame);else{if(wi(n.frame))return[];o=se(e.boxes,a.swimlane.index,n.index-1)}if(o===void 0)return[];return[{$kind:_,frame:n.frame,index:n.index,sourceBox:o,targetBox:a}]}t(de,"decidePositionRelation");function le(e,r){let n=r,a={visual:{fill:"none",stroke:"#000"},source:{x:n.sourceBox.x,y:n.sourceBox.y},target:{x:n.targetBox.x,y:n.targetBox.y},sourceBox:n.sourceBox,targetBox:n.targetBox};return{...e,relations:[...e.relations,a]}}t(le,"evolveRelationPositioned");var Se={[H]:ee,[k]:de},Me={[U]:ie,[_]:le};function ce(e,r){let n=Se[r.$kind];if(n===void 0||n===null)return[];let a=n(e,r);return i.debug("decided events",a),a}t(ce,"decide");function me(e,r){let n=r.reduce((a,o)=>{let s=Me[o.$kind];if(s===void 0||s===null)return a;return s(a,o)},e);return i.debug("evolve events",{state:e,newState:n,events:r}),n}t(me,"evolve");function y(e,r){let n=ce(e,r);return me(e,n)}t(y,"dispatch");var E={getConfig:ye,preserveCommentsWhenParsing:!0,setOptions:pe,getOptions:ve,clear:be,setAccTitle:N,getAccTitle:R,getAccDescription:I,setAccDescription:P,setDiagramTitle:O,getDiagramTitle:D,setAst:X,getDiagramProps:T,getState:V},ke={parse:t(async(e)=>{let r=await he("eventmodeling",e);i.debug(r),E.setAst(r),ae(r,E)},"parse")},Fe=d(),Be=Fe?.eventmodeling;function ue(e,r){return(n)=>{let a=n.swimlane.y+r.swimlanePadding,o=e.append("g").attr("class","em-box");o.append("rect").attr("x",n.x).attr("y",a).attr("rx","3").attr("width",n.dimension.width).attr("height",n.dimension.height).attr("stroke",n.visual.stroke).attr("fill",n.visual.fill),o.append("foreignObject").attr("x",n.x+r.boxPadding).attr("y",a+10).attr("width",n.dimension.width-2*r.boxPadding).attr("height",n.dimension.height-2*r.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(n.text)}}t(ue,"renderD3Box");function xe(e,r){return e>r}t(xe,"dirUpwards");function fe(e,r,n,a){return(o)=>{let s=o.sourceBox.swimlane.y+r.swimlanePadding,c=o.targetBox.swimlane.y+r.swimlanePadding,m=xe(s,c),u=o.sourceBox.x+o.sourceBox.dimension.width*2/3,x=o.targetBox.x+o.targetBox.dimension.width/3,h,f;if(i.debug(`rendering relation up=${m} for `,{sourceBox:o.sourceBox,targetBox:o.targetBox}),m)h=s,f=c+o.targetBox.dimension.height;else h=s+o.sourceBox.dimension.height,f=c;let v=a.emRelationStroke??o.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",o.visual.fill).attr("stroke",v).attr("stroke-width","1").attr("marker-end",`url(#${n})`).attr("d",`M${u} ${h} L${x} ${f}`)}}t(fe,"renderD3Relation");function ge(e,r,n,a){return(o)=>{let s=e.append("g").attr("class","em-swimlane"),c=a.emSwimlaneBackgroundOdd??"rgb(250,250,250)",m=a.emSwimlaneBackgroundStroke??"rgb(240,240,240)";s.append("rect").attr("x",0).attr("y",o.y).attr("rx","3").attr("width",r+n.swimlanePadding).attr("height",o.height).attr("fill",c).attr("stroke",m),s.append("text").attr("font-weight",n.swimlaneTextFontWeight).attr("x",30).attr("y",o.y+30).text(o.label)}}t(ge,"renderD3Swimlane");var Ee=t(function(e,r,n,a){if(i.debug("in eventmodeling renderer",e+`
|
|
3
|
+
`,"id:",r,n),!Be)throw Error("EventModeling config not found");let o=a.db,{themeVariables:s,eventmodeling:c}=d(),m=g(`[id="${r}"]`),u=o.getDiagramProps(),x=o.getState(),h=`em-arrowhead-${r}`,f=s.emArrowhead??"#000000";x.sortedSwimlanesArray.forEach(ge(m,x.maxR,u,s)),x.boxes.forEach(ue(m,u)),x.relations.forEach(fe(m,u,h,s)),m.append("defs").append("marker").attr("id",h).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",f),Wa(void 0,m,c?.padding??30,c?.useMaxWidth)},"draw"),Ae={draw:Ee},$e=t((e)=>"","getStyles"),Re=$e,Ue={parser:ke,db:E,renderer:Ae,styles:Re};export{Ue as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import{ae}from"./chunk-wrqazg2v.js";import{t,i,Ye,A,W,L,N,R,P,I,O,D,d,J,Z}from"./chunk-n59nyqcr.js";import{he}from"./chunk-2z4zhtw4.js";var at=t((a,s)=>{let o=a<=1?a*100:a;if(o<0||o>100)throw Error(`${s} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${a}`);return o},"toPercent"),G=t((a,s,o)=>({x:at(s,`${o} evolution`),y:at(a,`${o} visibility`)}),"toCoordinates"),lt=t((a)=>{if(!a)return;if(a==="+<>")return"bidirectional";if(a==="+<")return"backward";if(a==="+>")return"forward";return},"getFlowFromPort"),Yt=t((a)=>{if(!a?.startsWith("+"))return{};let o=/^\+'([^']*)'/.exec(a)?.[1];if(a.includes("<>"))return{flow:"bidirectional",label:o};if(a.includes("<"))return{flow:"backward",label:o};if(a.includes(">"))return{flow:"forward",label:o};return{label:o}},"extractFlowFromArrow"),It=t((a,s)=>{if(ae(a,s),a.size)s.setSize(a.size.width,a.size.height);if(a.evolution){let o=a.evolution.stages.map((r)=>{if(r.secondName)return`${r.name.trim()} / ${r.secondName.trim()}`;return r.name.trim()}),y=a.evolution.stages.filter((r)=>r.boundary!==void 0).map((r)=>r.boundary);s.updateAxes({stages:o,stageBoundaries:y})}if(a.anchors.forEach((o)=>{let y=G(o.visibility,o.evolution,`Anchor "${o.name}"`);s.addNode(o.name,o.name,y.x,y.y,"anchor")}),a.components.forEach((o)=>{let y=G(o.visibility,o.evolution,`Component "${o.name}"`),r=o.label?(o.label.negX?-1:1)*o.label.offsetX:void 0,p=o.label?(o.label.negY?-1:1)*o.label.offsetY:void 0,k=o.decorator?.strategy;s.addNode(o.name,o.name,y.x,y.y,"component",r,p,o.inertia,k)}),a.notes.forEach((o)=>{let y=G(o.visibility,o.evolution,`Note "${o.text}"`);s.addNote(o.text,y.x,y.y)}),a.pipelines.forEach((o)=>{let y=s.getNode(o.parent);if(!y||typeof y.y!=="number")throw Error(`Pipeline "${o.parent}" must reference an existing component with coordinates.`);let r=y.y;s.startPipeline(o.parent),o.components.forEach((p)=>{let k=`${o.parent}_${p.name}`,T=p.label?(p.label.negX?-1:1)*p.label.offsetX:void 0,w=p.label?(p.label.negY?-1:1)*p.label.offsetY:void 0,K=at(p.evolution,`Pipeline component "${p.name}" evolution`);s.addNode(k,p.name,K,r,"pipeline-component",T,w),s.addPipelineComponent(o.parent,k)})}),a.links.forEach((o)=>{let y=!!o.arrow&&(o.arrow.includes("-.->")||o.arrow.includes(".-.")),r=lt(o.fromPort)??lt(o.toPort),{flow:p,label:k}=Yt(o.arrow);if(!r&&p)r=p;let T=o.linkLabel,w=k??T;s.addLink(s.resolveNodeId(o.from),s.resolveNodeId(o.to),y,w,r)}),a.evolves.forEach((o)=>{let y=s.getNode(o.component);if(y?.y!==void 0){let r=at(o.target,`Evolve target for "${o.component}"`);s.addTrend(o.component,r,y.y)}}),a.annotations.length>0){let o=a.annotations[0],y=G(o.x,o.y,"Annotations box");s.setAnnotationsBox(y.x,y.y)}a.annotation.forEach((o)=>{let y=G(o.x,o.y,`Annotation ${o.number}`);s.addAnnotation(o.number,[{x:y.x,y:y.y}],o.text)}),a.accelerators.forEach((o)=>{let y=G(o.x,o.y,`Accelerator "${o.name}"`);s.addAccelerator(o.name,y.x,y.y)}),a.deaccelerators.forEach((o)=>{let y=G(o.x,o.y,`Deaccelerator "${o.name}"`);s.addDeaccelerator(o.name,y.x,y.y)})},"populateDb"),ct={parser:{yy:void 0},parse:t(async(a)=>{let s=await he("wardley",a);i.debug(s);let o=ct.parser?.yy;if(!o||typeof o.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(s,o)},"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(a){let s=this.nodes.get(a.id)??{id:a.id,label:a.label},o={...s,...a,className:a.className??s.className,labelOffsetX:a.labelOffsetX??s.labelOffsetX,labelOffsetY:a.labelOffsetY??s.labelOffsetY};this.nodes.set(a.id,o)}addLink(a){this.links.push(a)}addTrend(a){this.trends.set(a.nodeId,a)}startPipeline(a){this.pipelines.set(a,{nodeId:a,componentIds:[]});let s=this.nodes.get(a);if(s)s.isPipelineParent=!0}addPipelineComponent(a,s){let o=this.pipelines.get(a);if(o)o.componentIds.push(s);let y=this.nodes.get(s);if(y)y.inPipeline=!0}addAnnotation(a){this.annotations.push(a)}addNote(a){this.notes.push(a)}addAccelerator(a){this.accelerators.push(a)}addDeaccelerator(a){this.deaccelerators.push(a)}setAnnotationsBox(a,s){this.annotationsBox={x:a,y:s}}setAxes(a){this.axes={...this.axes,...a}}setSize(a,s){this.size={width:a,height:s}}getNode(a){return this.nodes.get(a)}resolveNodeId(a){if(this.nodes.has(a))return a;for(let[s,o]of this.nodes)if(o.label===a)return s;return a}build(){let a=[];for(let s of this.nodes.values()){if(typeof s.x!=="number"||typeof s.y!=="number")throw Error(`Node "${s.label}" is missing coordinates`);a.push(s)}return{nodes:a,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 d()["wardley-beta"]}t(pt,"getConfig");function ht(a,s,o,y,r,p,k,T,w){v.addNode({id:a,label:s,x:o,y,className:r,labelOffsetX:p,labelOffsetY:k,inertia:T,sourceStrategy:w})}t(ht,"addNode");function ft(a,s,o=!1,y,r){v.addLink({source:a,target:s,dashed:o,label:y,flow:r})}t(ft,"addLink");function xt(a,s,o){v.addTrend({nodeId:a,targetX:s,targetY:o})}t(xt,"addTrend");function gt(a,s,o){v.addAnnotation({number:a,coordinates:s,text:o})}t(gt,"addAnnotation");function yt(a,s,o){v.addNote({text:a,x:s,y:o})}t(yt,"addNote");function ut(a,s,o){v.addAccelerator({name:a,x:s,y:o})}t(ut,"addAccelerator");function wt(a,s,o){v.addDeaccelerator({name:a,x:s,y:o})}t(wt,"addDeaccelerator");function mt(a,s){v.setAnnotationsBox(a,s)}t(mt,"setAnnotationsBox");function kt(a,s){v.setSize(a,s)}t(kt,"setSize");function bt(a){v.startPipeline(a)}t(bt,"startPipeline");function $t(a,s){v.addPipelineComponent(a,s)}t($t,"addPipelineComponent");function vt(a){v.setAxes(a)}t(vt,"updateAxes");function Pt(a){return v.getNode(a)}t(Pt,"getNode");function Ct(a){return v.resolveNodeId(a)}t(Ct,"resolveNodeId");function St(){return v.build()}t(St,"getWardleyData");function Mt(){v.clear(),L()}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:N,getAccTitle:R,setDiagramTitle:O,getDiagramTitle:D,getAccDescription:I,setAccDescription:P},Rt=["Genesis","Custom Built","Product","Commodity"],Ot=t(()=>{let{themeVariables:a}=d();return{backgroundColor:a.wardley?.backgroundColor??a.background??"#fff",axisColor:a.wardley?.axisColor??"#000",axisTextColor:a.wardley?.axisTextColor??a.primaryTextColor??"#222",gridColor:a.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:a.wardley?.componentFill??"#fff",componentStroke:a.wardley?.componentStroke??"#000",componentLabelColor:a.wardley?.componentLabelColor??a.primaryTextColor??"#222",linkStroke:a.wardley?.linkStroke??"#000",evolutionStroke:a.wardley?.evolutionStroke??"#dc3545",annotationStroke:a.wardley?.annotationStroke??"#000",annotationTextColor:a.wardley?.annotationTextColor??a.primaryTextColor??"#222",annotationFill:a.wardley?.annotationFill??a.background??"#fff"}},"getTheme"),Dt=t(()=>{let a=d()["wardley-beta"];return{width:a?.width??900,height:a?.height??600,padding:a?.padding??48,nodeRadius:a?.nodeRadius??6,nodeLabelOffset:a?.nodeLabelOffset??8,axisFontSize:a?.axisFontSize??12,labelFontSize:a?.labelFontSize??10,showGrid:a?.showGrid??!1,useMaxWidth:a?.useMaxWidth??!0}},"getConfigValues"),Gt=t((a,s,o,y)=>{i.debug(`Rendering Wardley map
|
|
2
|
+
`+a);let r=Dt(),p=Ot(),k=r.nodeRadius*1.6,T=y.db,w=T.getWardleyData(),K=T.getDiagramTitle(),X=w.size?.width??r.width,C=w.size?.height??r.height,j=J(s);j.selectAll("*").remove(),W(j,C,X,r.useMaxWidth),j.attr("viewBox",`0 0 ${X} ${C}`);let M=j.append("g").attr("class","wardley-map"),rt=j.append("defs");rt.append("marker").attr("id",`arrow-${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("fill",p.evolutionStroke).attr("stroke","none"),rt.append("marker").attr("id",`link-arrow-end-${s}`).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",p.linkStroke).attr("stroke","none"),rt.append("marker").attr("id",`link-arrow-start-${s}`).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",p.linkStroke).attr("stroke","none"),M.append("rect").attr("class","wardley-background").attr("width",X).attr("height",C).attr("fill",p.backgroundColor);let V=X-r.padding*2,_=C-r.padding*2;if(K)M.append("text").attr("class","wardley-title").attr("x",X/2).attr("y",r.padding/2).attr("fill",p.axisTextColor).attr("font-size",r.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(K);let Y=t((e)=>r.padding+e/100*V,"projectX"),B=t((e)=>C-r.padding-e/100*_,"projectY"),Q=M.append("g").attr("class","wardley-axes");Q.append("line").attr("x1",r.padding).attr("x2",X-r.padding).attr("y1",C-r.padding).attr("y2",C-r.padding).attr("stroke",p.axisColor).attr("stroke-width",1),Q.append("line").attr("x1",r.padding).attr("x2",r.padding).attr("y1",r.padding).attr("y2",C-r.padding).attr("stroke",p.axisColor).attr("stroke-width",1);let Nt=w.axes.xLabel??"Evolution",zt=w.axes.yLabel??"Visibility";Q.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",r.padding+V/2).attr("y",C-r.padding/4).attr("fill",p.axisTextColor).attr("font-size",r.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(Nt),Q.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",r.padding/3).attr("y",r.padding+_/2).attr("fill",p.axisTextColor).attr("font-size",r.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${r.padding/3} ${r.padding+_/2})`).text(zt);let U=w.axes.stages&&w.axes.stages.length>0?w.axes.stages:Rt;if(U.length>0){let e=M.append("g").attr("class","wardley-stages"),l=w.axes.stageBoundaries,n=[];if(l&&l.length===U.length){let c=0;l.forEach((f)=>{n.push({start:c,end:f}),c=f})}else{let c=1/U.length;U.forEach((f,x)=>{n.push({start:x*c,end:(x+1)*c})})}U.forEach((c,f)=>{let x=n[f],u=r.padding+x.start*V,g=r.padding+x.end*V,m=(u+g)/2;if(f>0)e.append("line").attr("x1",u).attr("x2",u).attr("y1",r.padding).attr("y2",C-r.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-r.padding/1.5).attr("fill",p.axisTextColor).attr("font-size",r.axisFontSize-2).attr("text-anchor","middle").text(c)})}if(r.showGrid){let e=M.append("g").attr("class","wardley-grid");for(let l=1;l<4;l++){let n=l/4,c=r.padding+V*n;e.append("line").attr("x1",c).attr("x2",c).attr("y1",r.padding).attr("y2",C-r.padding).attr("stroke",p.gridColor).attr("stroke-dasharray","2 6"),e.append("line").attr("x1",r.padding).attr("x2",X-r.padding).attr("y1",C-r.padding-_*n).attr("y2",C-r.padding-_*n).attr("stroke",p.gridColor).attr("stroke-dasharray","2 6")}}let h=new Map;if(w.nodes.forEach((e)=>{h.set(e.id,{x:Y(e.x),y:B(e.y),node:e})}),w.pipelines.length>0){let e=M.append("g").attr("class","wardley-pipelines"),l=M.append("g").attr("class","wardley-pipeline-links");w.pipelines.forEach((n)=>{if(n.componentIds.length===0)return;let c=n.componentIds.map((g)=>({id:g,pos:h.get(g),node:w.nodes.find((m)=>m.id===g)})).filter((g)=>g.pos&&g.node).sort((g,m)=>g.node.x-m.node.x);for(let g=0;g<c.length-1;g++){let m=c[g],b=c[g+1];l.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",p.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let f=1/0,x=-1/0,u=0;if(n.componentIds.forEach((g)=>{let m=h.get(g);if(m)f=Math.min(f,m.x),x=Math.max(x,m.x),u=m.y}),f!==1/0&&x!==-1/0){let m=r.nodeRadius*4,b=u-m/2,z=h.get(n.nodeId);if(z){let H=(f+x)/2;z.x=H,z.y=b-k/6}e.append("rect").attr("class","wardley-pipeline-box").attr("x",f-15).attr("y",b).attr("width",x-f+30).attr("height",m).attr("fill","none").attr("stroke",p.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}let st=M.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(!h.has(e.source)||!h.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 l=h.get(e.source),n=h.get(e.target),f=w.nodes.find((m)=>m.id===e.source).isPipelineParent?k/Math.sqrt(2):r.nodeRadius,x=n.x-l.x,u=n.y-l.y,g=Math.sqrt(x*x+u*u);return l.x+x/g*f}).attr("y1",(e)=>{let l=h.get(e.source),n=h.get(e.target),f=w.nodes.find((m)=>m.id===e.source).isPipelineParent?k/Math.sqrt(2):r.nodeRadius,x=n.x-l.x,u=n.y-l.y,g=Math.sqrt(x*x+u*u);return l.y+u/g*f}).attr("x2",(e)=>{let l=h.get(e.source),n=h.get(e.target),f=w.nodes.find((m)=>m.id===e.target).isPipelineParent?k/Math.sqrt(2):r.nodeRadius,x=l.x-n.x,u=l.y-n.y,g=Math.sqrt(x*x+u*u);return n.x+x/g*f}).attr("y2",(e)=>{let l=h.get(e.source),n=h.get(e.target),f=w.nodes.find((m)=>m.id===e.target).isPipelineParent?k/Math.sqrt(2):r.nodeRadius,x=l.x-n.x,u=l.y-n.y,g=Math.sqrt(x*x+u*u);return n.y+u/g*f}).attr("stroke",p.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-${s})`;return null}).attr("marker-start",(e)=>{if(e.flow==="backward"||e.flow==="bidirectional")return`url(#link-arrow-start-${s})`;return null}),st.selectAll("text").data(dt.filter((e)=>e.label)).enter().append("text").attr("class","wardley-link-label").attr("x",(e)=>{let l=h.get(e.source),n=h.get(e.target),c=(l.x+n.x)/2,f=n.y-l.y,x=n.x-l.x,u=Math.sqrt(x*x+f*f),g=8,m=f/u;return c+m*8}).attr("y",(e)=>{let l=h.get(e.source),n=h.get(e.target),c=(l.y+n.y)/2,f=n.x-l.x,x=n.y-l.y,u=Math.sqrt(f*f+x*x),g=8,m=-f/u;return c+m*8}).attr("fill",p.axisTextColor).attr("font-size",r.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",(e)=>{let l=h.get(e.source),n=h.get(e.target),c=(l.x+n.x)/2,f=(l.y+n.y)/2,x=n.x-l.x,u=n.y-l.y,g=Math.sqrt(x*x+u*u),m=8,b=u/g,z=-x/g,H=c+b*8,tt=f+z*8,q=Math.atan2(u,x)*180/Math.PI;if(q>90||q<-90)q+=180;return`rotate(${q} ${H} ${tt})`}).text((e)=>e.label);let Lt=M.append("g").attr("class","wardley-trends"),Tt=w.trends.map((e)=>{let l=h.get(e.nodeId);if(!l)return null;let n=Y(e.targetX),c=B(e.targetY),f=n-l.x,x=c-l.y,u=Math.sqrt(f*f+x*x),g=r.nodeRadius+2,m=u>g?n-f/u*g:n,b=u>g?c-x/u*g:c;return{origin:l,targetX:n,targetY:c,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",p.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${s})`);let E=M.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(" "));E.filter((e)=>e.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y).attr("r",r.nodeRadius*2).attr("fill","#666").attr("stroke",p.componentStroke).attr("stroke-width",1),E.filter((e)=>e.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y).attr("r",r.nodeRadius*2).attr("fill","#ccc").attr("stroke",p.componentStroke).attr("stroke-width",1),E.filter((e)=>e.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y).attr("r",r.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);let F=E.filter((e)=>e.sourceStrategy==="market");F.append("circle").attr("class","wardley-market-overlay").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y).attr("r",r.nodeRadius*2).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",1),E.filter((e)=>!e.isPipelineParent&&e.sourceStrategy!=="market"&&e.className!=="anchor").append("circle").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y).attr("r",r.nodeRadius).attr("fill",p.componentFill).attr("stroke",p.componentStroke).attr("stroke-width",1);let ot=r.nodeRadius*0.7,S=r.nodeRadius*1.2;if(F.append("line").attr("class","wardley-market-line").attr("x1",(e)=>h.get(e.id).x).attr("y1",(e)=>h.get(e.id).y-S).attr("x2",(e)=>h.get(e.id).x-S*Math.cos(Math.PI/6)).attr("y2",(e)=>h.get(e.id).y+S*Math.sin(Math.PI/6)).attr("stroke",p.componentStroke).attr("stroke-width",1),F.append("line").attr("class","wardley-market-line").attr("x1",(e)=>h.get(e.id).x-S*Math.cos(Math.PI/6)).attr("y1",(e)=>h.get(e.id).y+S*Math.sin(Math.PI/6)).attr("x2",(e)=>h.get(e.id).x+S*Math.cos(Math.PI/6)).attr("y2",(e)=>h.get(e.id).y+S*Math.sin(Math.PI/6)).attr("stroke",p.componentStroke).attr("stroke-width",1),F.append("line").attr("class","wardley-market-line").attr("x1",(e)=>h.get(e.id).x+S*Math.cos(Math.PI/6)).attr("y1",(e)=>h.get(e.id).y+S*Math.sin(Math.PI/6)).attr("x2",(e)=>h.get(e.id).x).attr("y2",(e)=>h.get(e.id).y-S).attr("stroke",p.componentStroke).attr("stroke-width",1),F.append("circle").attr("class","wardley-market-dot").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y-S).attr("r",ot).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",2),F.append("circle").attr("class","wardley-market-dot").attr("cx",(e)=>h.get(e.id).x-S*Math.cos(Math.PI/6)).attr("cy",(e)=>h.get(e.id).y+S*Math.sin(Math.PI/6)).attr("r",ot).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",2),F.append("circle").attr("class","wardley-market-dot").attr("cx",(e)=>h.get(e.id).x+S*Math.cos(Math.PI/6)).attr("cy",(e)=>h.get(e.id).y+S*Math.sin(Math.PI/6)).attr("r",ot).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",2),E.filter((e)=>e.isPipelineParent===!0).append("rect").attr("x",(e)=>h.get(e.id).x-k/2).attr("y",(e)=>h.get(e.id).y-k/2).attr("width",k).attr("height",k).attr("fill",p.componentFill).attr("stroke",p.componentStroke).attr("stroke-width",1),E.filter((e)=>e.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",(e)=>{let l=h.get(e.id),n=e.isPipelineParent?k/2+15:r.nodeRadius+15;if(e.sourceStrategy)n+=r.nodeRadius+10;return l.x+n}).attr("y1",(e)=>{let l=h.get(e.id),n=e.isPipelineParent?k:r.nodeRadius*2;return l.y-n/2}).attr("x2",(e)=>{let l=h.get(e.id),n=e.isPipelineParent?k/2+15:r.nodeRadius+15;if(e.sourceStrategy)n+=r.nodeRadius+10;return l.x+n}).attr("y2",(e)=>{let l=h.get(e.id),n=e.isPipelineParent?k:r.nodeRadius*2;return l.y+n/2}).attr("stroke",p.componentStroke).attr("stroke-width",6),E.append("text").attr("x",(e)=>{let l=h.get(e.id);if(e.className==="anchor")return e.labelOffsetX!==void 0?l.x+e.labelOffsetX:l.x;let n=r.nodeLabelOffset;if(e.sourceStrategy&&e.labelOffsetX===void 0)n+=10;let c=e.labelOffsetX??n;return l.x+c}).attr("y",(e)=>{let l=h.get(e.id);if(e.className==="anchor")return e.labelOffsetY!==void 0?l.y+e.labelOffsetY:l.y-3;let n=-r.nodeLabelOffset;if(e.sourceStrategy&&e.labelOffsetY===void 0)n-=10;let c=e.labelOffsetY??n;return l.y+c}).attr("class","wardley-node-label").attr("fill",(e)=>{if(e.className==="evolved")return p.evolutionStroke;if(e.className==="anchor")return"#000";return p.componentLabelColor}).attr("font-size",r.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=M.append("g").attr("class","wardley-annotations");if(w.annotations.forEach((l)=>{let n=l.coordinates.map((c)=>({x:Y(c.x),y:B(c.y)}));if(n.length>1)for(let c=0;c<n.length-1;c++)e.append("line").attr("class","wardley-annotation-line").attr("x1",n[c].x).attr("y1",n[c].y).attr("x2",n[c+1].x).attr("y2",n[c+1].y).attr("stroke",p.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");n.forEach((c)=>{let f=e.append("g").attr("class","wardley-annotation");f.append("circle").attr("cx",c.x).attr("cy",c.y).attr("r",10).attr("fill","white").attr("stroke",p.axisColor).attr("stroke-width",1.5),f.append("text").attr("x",c.x).attr("y",c.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",p.axisTextColor).attr("font-weight","bold").text(l.number)})}),w.annotationsBox){let l=Y(w.annotationsBox.x),n=B(w.annotationsBox.y),c=10,f=16,x=11,u=e.append("g").attr("class","wardley-annotations-box"),g=[...w.annotations].filter((b)=>b.text).sort((b,z)=>b.number-z.number),m=[];if(g.forEach((b,z)=>{let H=u.append("text").attr("x",l+c).attr("y",n+c+(z+1)*f).attr("font-size",x).attr("fill",p.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${b.number}. ${b.text}`);m.push(H)}),m.length>0){let b=0,z=0;m.forEach((nt)=>{let et=nt.node(),Et=et.getComputedTextLength();b=Math.max(b,Et);let Ht=et.getBBox();z=Math.max(z,Ht.height)});let H=b+c*2+105,tt=g.length*f+c*2+z/2,q=r.padding,Wt=X-r.padding-H,At=r.padding,Xt=C-r.padding-tt;l=Math.max(q,Math.min(l,Wt)),n=Math.max(At,Math.min(n,Xt)),m.forEach((nt,et)=>{nt.attr("x",l+c).attr("y",n+c+(et+1)*f)}),u.insert("rect","text").attr("x",l).attr("y",n).attr("width",H).attr("height",tt).attr("fill","white").attr("stroke",p.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(w.notes.length>0){let e=M.append("g").attr("class","wardley-notes");w.notes.forEach((l)=>{let n=Y(l.x),c=B(l.y);e.append("text").attr("x",n).attr("y",c).attr("text-anchor","start").attr("font-size",11).attr("fill",p.axisTextColor).attr("font-weight","bold").text(l.text)})}if(w.accelerators.length>0){let e=M.append("g").attr("class","wardley-accelerators");w.accelerators.forEach((l)=>{let n=Y(l.x),c=B(l.y),f=60,x=30,u=20,g=`
|
|
3
|
+
M ${n} ${c-15}
|
|
4
|
+
L ${n+60-20} ${c-15}
|
|
5
|
+
L ${n+60-20} ${c-15-8}
|
|
6
|
+
L ${n+60} ${c}
|
|
7
|
+
L ${n+60-20} ${c+15+8}
|
|
8
|
+
L ${n+60-20} ${c+15}
|
|
9
|
+
L ${n} ${c+15}
|
|
10
|
+
Z
|
|
11
|
+
`;e.append("path").attr("d",g).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",1),e.append("text").attr("x",n+30).attr("y",c+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",p.axisTextColor).attr("font-weight","bold").text(l.name)})}if(w.deaccelerators.length>0){let e=M.append("g").attr("class","wardley-deaccelerators");w.deaccelerators.forEach((l)=>{let n=Y(l.x),c=B(l.y),f=60,x=30,u=20,g=`
|
|
12
|
+
M ${n+60} ${c-15}
|
|
13
|
+
L ${n+20} ${c-15}
|
|
14
|
+
L ${n+20} ${c-15-8}
|
|
15
|
+
L ${n} ${c}
|
|
16
|
+
L ${n+20} ${c+15+8}
|
|
17
|
+
L ${n+20} ${c+15}
|
|
18
|
+
L ${n+60} ${c+15}
|
|
19
|
+
Z
|
|
20
|
+
`;e.append("path").attr("d",g).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",1),e.append("text").attr("x",n+30).attr("y",c+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",p.axisTextColor).attr("font-weight","bold").text(l.name)})}},"draw"),qt={draw:Gt},jt=t(({wardley:a}={})=>{let s=Ye(),o=A(),y=Z(s,o.themeVariables),r=Z(y.wardley,a);return`
|
|
21
|
+
.wardley-background {
|
|
22
|
+
fill: ${r.backgroundColor};
|
|
23
|
+
}
|
|
24
|
+
.wardley-axes line, .wardley-axes path {
|
|
25
|
+
stroke: ${r.axisColor};
|
|
26
|
+
}
|
|
27
|
+
.wardley-axis-label {
|
|
28
|
+
fill: ${r.axisTextColor};
|
|
29
|
+
}
|
|
30
|
+
.wardley-stage-label {
|
|
31
|
+
fill: ${r.axisTextColor};
|
|
32
|
+
}
|
|
33
|
+
.wardley-grid line {
|
|
34
|
+
stroke: ${r.gridColor};
|
|
35
|
+
}
|
|
36
|
+
.wardley-node circle {
|
|
37
|
+
fill: ${r.componentFill};
|
|
38
|
+
stroke: ${r.componentStroke};
|
|
39
|
+
}
|
|
40
|
+
.wardley-node-label {
|
|
41
|
+
fill: ${r.componentLabelColor};
|
|
42
|
+
}
|
|
43
|
+
.wardley-link {
|
|
44
|
+
stroke: ${r.linkStroke};
|
|
45
|
+
}
|
|
46
|
+
.wardley-link--dashed {
|
|
47
|
+
stroke-dasharray: 4 4;
|
|
48
|
+
}
|
|
49
|
+
.wardley-link-label {
|
|
50
|
+
fill: ${r.axisTextColor};
|
|
51
|
+
}
|
|
52
|
+
.wardley-trend line {
|
|
53
|
+
stroke: ${r.evolutionStroke};
|
|
54
|
+
}
|
|
55
|
+
.wardley-annotation-line {
|
|
56
|
+
stroke: ${r.annotationStroke};
|
|
57
|
+
}
|
|
58
|
+
.wardley-annotation circle {
|
|
59
|
+
fill: ${r.annotationFill};
|
|
60
|
+
stroke: ${r.annotationStroke};
|
|
61
|
+
}
|
|
62
|
+
.wardley-annotation text {
|
|
63
|
+
fill: ${r.annotationTextColor};
|
|
64
|
+
}
|
|
65
|
+
.wardley-annotations-box rect {
|
|
66
|
+
fill: ${r.annotationFill};
|
|
67
|
+
stroke: ${r.annotationStroke};
|
|
68
|
+
}
|
|
69
|
+
.wardley-annotations-box text {
|
|
70
|
+
fill: ${r.annotationTextColor};
|
|
71
|
+
}
|
|
72
|
+
.wardley-pipeline-box {
|
|
73
|
+
stroke: ${r.componentStroke};
|
|
74
|
+
}
|
|
75
|
+
.wardley-notes text {
|
|
76
|
+
fill: ${r.axisTextColor};
|
|
77
|
+
}
|
|
78
|
+
`},"styles"),ee={parser:ct,db:Ft,renderer:qt,styles:jt};export{ee as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function ea(i,d){let e;if(d===void 0){for(let n of i)if(n!=null&&(e<n||e===void 0&&n>=n))e=n}else{let n=-1;for(let f of i)if((f=d(f,++n,i))!=null&&(e<f||e===void 0&&f>=f))e=f}return e}function Er(i,d){let e;if(d===void 0){for(let n of i)if(n!=null&&(e>n||e===void 0&&n>=n))e=n}else{let n=-1;for(let f of i)if((f=d(f,++n,i))!=null&&(e>f||e===void 0&&f>=f))e=f}return e}
|
|
2
|
+
export{ea,Er};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import{t,i,pe,f,h,F,j,pn,d,J,qt,Vt,wn,dn,rr}from"./chunk-n59nyqcr.js";import{At}from"./chunk-h1cv1kke.js";var se=function(){var e=t(function(A,s,r,o){for(r=r||{},o=A.length;o--;r[A[o]]=s);return r},"o"),p=[1,4],m=[1,13],a=[1,12],y=[1,15],N=[1,16],S=[1,20],u=[1,19],C=[6,7,8],T=[1,26],b=[1,24],P=[1,25],x=[6,7,11],X=[1,31],D=[6,7,11,24],H=[1,6,13,16,17,20,23],k=[1,35],V=[1,36],w=[1,6,7,11,13,16,17,20,23],K=[1,38],B={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:t(function(s,r,o,c,g,n,G){var l=n.length-1;switch(g){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",n[l-1].id),c.addNode(n[l-2].length,n[l-1].id,n[l-1].descr,n[l-1].type,n[l]);break;case 16:c.getLogger().info("Node: ",n[l].id),c.addNode(n[l-1].length,n[l].id,n[l].descr,n[l].type);break;case 17:c.getLogger().trace("Icon: ",n[l]),c.decorateNode({icon:n[l]});break;case 18:case 23:c.decorateNode({class:n[l]});break;case 19:c.getLogger().trace("SPACELIST");break;case 20:c.getLogger().trace("Node: ",n[l-1].id),c.addNode(0,n[l-1].id,n[l-1].descr,n[l-1].type,n[l]);break;case 21:c.getLogger().trace("Node: ",n[l].id),c.addNode(0,n[l].id,n[l].descr,n[l].type);break;case 22:c.decorateNode({icon:n[l]});break;case 27:c.getLogger().trace("node found ..",n[l-2]),this.$={id:n[l-1],descr:n[l-1],type:c.getType(n[l-2],n[l])};break;case 28:this.$={id:n[l],descr:n[l],type:0};break;case 29:c.getLogger().trace("node found ..",n[l-3]),this.$={id:n[l-3],descr:n[l-1],type:c.getType(n[l-2],n[l])};break;case 30:this.$=n[l-1]+n[l];break;case 31:this.$=n[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:p},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:p},{6:m,7:[1,10],9:9,12:11,13:a,14:14,16:y,17:N,18:17,19:18,20:S,23:u},e(C,[2,3]),{1:[2,2]},e(C,[2,4]),e(C,[2,5]),{1:[2,6],6:m,12:21,13:a,14:14,16:y,17:N,18:17,19:18,20:S,23:u},{6:m,9:22,12:11,13:a,14:14,16:y,17:N,18:17,19:18,20:S,23:u},{6:T,7:b,10:23,11:P},e(x,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:S,23:u}),e(x,[2,19]),e(x,[2,21],{15:30,24:X}),e(x,[2,22]),e(x,[2,23]),e(D,[2,25]),e(D,[2,26]),e(D,[2,28],{20:[1,32]}),{21:[1,33]},{6:T,7:b,10:34,11:P},{1:[2,7],6:m,12:21,13:a,14:14,16:y,17:N,18:17,19:18,20:S,23:u},e(H,[2,14],{7:k,11:V}),e(w,[2,8]),e(w,[2,9]),e(w,[2,10]),e(x,[2,16],{15:37,24:X}),e(x,[2,17]),e(x,[2,18]),e(x,[2,20],{24:K}),e(D,[2,31]),{21:[1,39]},{22:[1,40]},e(H,[2,13],{7:k,11:V}),e(w,[2,11]),e(w,[2,12]),e(x,[2,15],{24:K}),e(D,[2,30]),{22:[1,41]},e(D,[2,27]),e(D,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(s,r){if(r.recoverable)this.trace(s);else{var o=Error(s);throw o.hash=r,o}},"parseError"),parse:t(function(s){var r=this,o=[0],c=[],g=[null],n=[],G=this.table,l="",Y=0,le=0,he=0,be=2,ue=1,ye=n.slice.call(arguments,1),_=Object.create(this.lexer),M={yy:{}};for(var ee in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ee))M.yy[ee]=this.yy[ee];if(_.setInput(s,M.yy),M.yy.lexer=_,M.yy.parser=this,typeof _.yylloc>"u")_.yylloc={};var te=_.yylloc;n.push(te);var me=_.options&&_.options.ranges;if(typeof M.yy.parseError==="function")this.parseError=M.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ke(O){o.length=o.length-2*O,g.length=g.length-O,n.length=n.length-O}t(ke,"popStack");function ge(){var O=c.pop()||_.lex()||ue;if(typeof O!=="number"){if(O instanceof Array)c=O,O=c.pop();O=r.symbols_[O]||O}return O}t(ge,"lex");var v,ne,U,L,je,ie,z={},q,R,de,Q;while(!0){if(U=o[o.length-1],this.defaultActions[U])L=this.defaultActions[U];else{if(v===null||typeof v>"u")v=ge();L=G[U]&&G[U][v]}if(typeof L>"u"||!L.length||!L[0]){var re="";Q=[];for(q in G[U])if(this.terminals_[q]&&q>be)Q.push("'"+this.terminals_[q]+"'");if(_.showPosition)re="Parse error on line "+(Y+1)+`:
|
|
2
|
+
`+_.showPosition()+`
|
|
3
|
+
Expecting `+Q.join(", ")+", got '"+(this.terminals_[v]||v)+"'";else re="Parse error on line "+(Y+1)+": Unexpected "+(v==ue?"end of input":"'"+(this.terminals_[v]||v)+"'");this.parseError(re,{text:_.match,token:this.terminals_[v]||v,line:_.yylineno,loc:te,expected:Q})}if(L[0]instanceof Array&&L.length>1)throw Error("Parse Error: multiple actions possible at state: "+U+", token: "+v);switch(L[0]){case 1:if(o.push(v),g.push(_.yytext),n.push(_.yylloc),o.push(L[1]),v=null,!ne){if(le=_.yyleng,l=_.yytext,Y=_.yylineno,te=_.yylloc,he>0)he--}else v=ne,ne=null;break;case 2:if(R=this.productions_[L[1]][1],z.$=g[g.length-R],z._$={first_line:n[n.length-(R||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(R||1)].first_column,last_column:n[n.length-1].last_column},me)z._$.range=[n[n.length-(R||1)].range[0],n[n.length-1].range[1]];if(ie=this.performAction.apply(z,[l,le,Y,M.yy,L[1],g,n].concat(ye)),typeof ie<"u")return ie;if(R)o=o.slice(0,-1*R*2),g=g.slice(0,-1*R),n=n.slice(0,-1*R);o.push(this.productions_[L[1]][0]),g.push(z.$),n.push(z._$),de=G[o[o.length-2]][o[o.length-1]],o.push(de);break;case 3:return!0}}return!0},"parse")},Z=function(){var A={EOF:1,parseError:t(function(r,o){if(this.yy.parser)this.yy.parser.parseError(r,o);else throw Error(r)},"parseError"),setInput:t(function(s,r){if(this.yy=r||this.yy||{},this._input=s,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 s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var r=s.match(/(?:\r\n?|\n).*/g);if(r)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),s},"input"),unput:t(function(s){var r=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var c=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),o.length-1)this.yylineno-=o.length-1;var g=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:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-r},this.options.ranges)this.yylloc.range=[g[0],g[0]+this.yyleng-r];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(s){this.unput(this.match.slice(s))},"less"),pastInput:t(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var s=this.match;if(s.length<20)s+=this._input.substr(0,20-s.length);return(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var s=this.pastInput(),r=Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
5
|
+
`+r+"^"},"showPosition"),test_match:t(function(s,r){var o,c,g;if(this.options.backtrack_lexer){if(g={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)g.yylloc.range=this.yylloc.range.slice(0)}if(c=s[0].match(/(?:\r\n?|\n).*/g),c)this.yylineno+=c.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,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(s[0].length),this.matched+=s[0],o=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(o)return o;else if(this._backtrack){for(var n in g)this[n]=g[n];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var s,r,o,c;if(!this._more)this.yytext="",this.match="";var g=this._currentRules();for(var n=0;n<g.length;n++)if(o=this._input.match(this.rules[g[n]]),o&&(!r||o[0].length>r[0].length)){if(r=o,c=n,this.options.backtrack_lexer)if(s=this.test_match(o,g[n]),s!==!1)return s;else if(this._backtrack){r=!1;continue}else return!1;else if(!this.options.flex)break}if(r){if(s=this.test_match(r,g[c]),s!==!1)return s;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 r=this.next();if(r)return r;else return this.lex()},"lex"),begin:t(function(r){this.conditionStack.push(r)},"begin"),popState:t(function(){var r=this.conditionStack.length-1;if(r>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(r){if(r=this.conditionStack.length-1-Math.abs(r||0),r>=0)return this.conditionStack[r];else return"INITIAL"},"topState"),pushState:t(function(r){this.begin(r)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(r,o,c,g){var n=g;switch(c){case 0:return this.pushState("shapeData"),o.yytext="",24;break;case 1:return this.pushState("shapeDataStr"),24;break;case 2:return this.popState(),24;break;case 3:let G=/\n\s*/g;return o.yytext=o.yytext.replace(G,"<br/>"),24;break;case 4:return 24;case 5:this.popState();break;case 6:return r.getLogger().trace("Found comment",o.yytext),6;break;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;break;case 10:this.popState();break;case 11:r.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return r.getLogger().trace("SPACELINE"),6;break;case 13:return 7;case 14:return 16;case 15:r.getLogger().trace("end icon"),this.popState();break;case 16:return r.getLogger().trace("Exploding node"),this.begin("NODE"),20;break;case 17:return r.getLogger().trace("Cloud"),this.begin("NODE"),20;break;case 18:return r.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;break;case 19:return r.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;break;case 20:return this.begin("NODE"),20;break;case 21:return this.begin("NODE"),20;break;case 22:return this.begin("NODE"),20;break;case 23:return this.begin("NODE"),20;break;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:r.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return r.getLogger().trace("description:",o.yytext),"NODE_DESCR";break;case 32:this.popState();break;case 33:return this.popState(),r.getLogger().trace("node end ))"),"NODE_DEND";break;case 34:return this.popState(),r.getLogger().trace("node end )"),"NODE_DEND";break;case 35:return this.popState(),r.getLogger().trace("node end ...",o.yytext),"NODE_DEND";break;case 36:return this.popState(),r.getLogger().trace("node end (("),"NODE_DEND";break;case 37:return this.popState(),r.getLogger().trace("node end (-"),"NODE_DEND";break;case 38:return this.popState(),r.getLogger().trace("node end (-"),"NODE_DEND";break;case 39:return this.popState(),r.getLogger().trace("node end (("),"NODE_DEND";break;case 40:return this.popState(),r.getLogger().trace("node end (("),"NODE_DEND";break;case 41:return r.getLogger().trace("Long description:",o.yytext),21;break;case 42:return r.getLogger().trace("Long description:",o.yytext),21;break}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return A}();B.lexer=Z;function W(){this.yy={}}return t(W,"Parser"),W.prototype=B,B.Parser=W,new W}();se.parser=se;var Ee=se,I=[],oe=[],ae=0,ce={},_e=t(()=>{I=[],oe=[],ae=0,ce={}},"clear"),Se=t((e)=>{if(I.length===0)return null;let p=I[0].level,m=null;for(let a=I.length-1;a>=0;a--){if(I[a].level===p&&!m)m=I[a];if(I[a].level<p)throw Error('Items without section detected, found section ("'+I[a].label+'")')}if(e===m?.level)return null;return m},"getSection"),fe=t(function(){return oe},"getSections"),Ne=t(function(){let e=[],p=[],m=fe(),a=d();for(let y of m){let N={id:y.id,label:j(y.label??"",a),labelType:"markdown",isGroup:!0,ticket:y.ticket,shape:"kanbanSection",level:y.level,look:a.look};p.push(N);let S=I.filter((u)=>u.parentId===y.id);for(let u of S){let C={id:u.id,parentId:y.id,label:j(u.label??"",a),labelType:"markdown",isGroup:!1,ticket:u?.ticket,priority:u?.priority,assigned:u?.assigned,icon:u?.icon,shape:"kanbanItem",level:u.level,rx:5,ry:5,cssStyles:["text-align: left"]};p.push(C)}}return{nodes:p,edges:e,other:{},config:d()}},"getData"),xe=t((e,p,m,a,y)=>{let N=d(),S=N.mindmap?.padding??F.mindmap.padding;switch(a){case E.ROUNDED_RECT:case E.RECT:case E.HEXAGON:S*=2}let u={id:j(p,N)||"kbn"+ae++,level:e,label:j(m,N),width:N.mindmap?.maxNodeWidth??F.mindmap.maxNodeWidth,padding:S,isGroup:!1};if(y!==void 0){let T;if(!y.includes(`
|
|
7
|
+
`))T=`{
|
|
8
|
+
`+y+`
|
|
9
|
+
}`;else T=y+`
|
|
10
|
+
`;let b=Vt(T,{schema:qt});if(b.shape&&(b.shape!==b.shape.toLowerCase()||b.shape.includes("_")))throw Error(`No such shape: ${b.shape}. Shape names should be lowercase.`);if(b?.shape&&b.shape==="kanbanItem")u.shape=b?.shape;if(b?.label)u.label=b?.label;if(b?.icon)u.icon=b?.icon.toString();if(b?.assigned)u.assigned=b?.assigned.toString();if(b?.ticket)u.ticket=b?.ticket.toString();if(b?.priority)u.priority=b?.priority}let C=Se(e);if(C)u.parentId=C.id||"kbn"+ae++;else oe.push(u);I.push(u)},"addNode"),E={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},ve=t((e,p)=>{switch(i.debug("In get type",e,p),e){case"[":return E.RECT;case"(":return p===")"?E.ROUNDED_RECT:E.CLOUD;case"((":return E.CIRCLE;case")":return E.CLOUD;case"))":return E.BANG;case"{{":return E.HEXAGON;default:return E.DEFAULT}},"getType"),De=t((e,p)=>{ce[e]=p},"setElementForId"),Le=t((e)=>{if(!e)return;let p=d(),m=I[I.length-1];if(e.icon)m.icon=j(e.icon,p);if(e.class)m.cssClasses=j(e.class,p)},"decorateNode"),Oe=t((e)=>{switch(e){case E.DEFAULT:return"no-border";case E.RECT:return"rect";case E.ROUNDED_RECT:return"rounded-rect";case E.CIRCLE:return"circle";case E.CLOUD:return"cloud";case E.BANG:return"bang";case E.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),Ie=t(()=>i,"getLogger"),Ce=t((e)=>ce[e],"getElementById"),we={clear:_e,addNode:xe,getSections:fe,getData:Ne,nodeType:E,getType:ve,setElementForId:De,decorateNode:Le,type2Str:Oe,getLogger:Ie,getElementById:Ce},Ae=we,Te=t(async(e,p,m,a)=>{i.debug(`Rendering kanban diagram
|
|
11
|
+
`+e);let N=a.db.getData(),S=d();S.htmlLabels=!1;let u=J(p);for(let k of N.nodes)k.domId=`${p}-${k.id}`;let C=u.append("g");C.attr("class","sections");let T=u.append("g");T.attr("class","items");let b=N.nodes.filter((k)=>k.isGroup),P=0,x=10,X=[],D=25;for(let k of b){let V=S?.kanban?.sectionWidth||200;P=P+1,k.x=V*P+(P-1)*x/2,k.width=V,k.y=0,k.height=V*3,k.rx=5,k.ry=5,k.cssClasses=k.cssClasses+" section-"+P;let w=await rr(C,k);D=Math.max(D,w?.labelBBox?.height),X.push(w)}let H=0;for(let k of b){let V=X[H];H=H+1;let w=S?.kanban?.sectionWidth||200,K=-w*3/2+D,B=K,Z=N.nodes.filter((s)=>s.parentId===k.id);for(let s of Z){if(s.isGroup)throw Error("Groups within groups are not allowed in Kanban diagrams");s.x=k.x,s.width=w-1.5*x;let o=(await wn(T,s,{config:S})).node().getBBox();s.y=B+o.height/2,await dn(s),B=s.y+o.height/2+x/2}let W=V.cluster.select("rect"),A=Math.max(B-K+3*x,50)+(D-25);W.attr("height",A)}pn(void 0,u,S.mindmap?.padding??F.kanban.padding,S.mindmap?.useMaxWidth??F.kanban.useMaxWidth)},"draw"),Re={draw:Te},Pe=t((e)=>{let p="";for(let a=0;a<e.THEME_COLOR_LIMIT;a++)if(e["lineColor"+a]=e["lineColor"+a]||e["cScaleInv"+a],pe(e["lineColor"+a]))e["lineColor"+a]=f(e["lineColor"+a],20);else e["lineColor"+a]=h(e["lineColor"+a],20);let m=t((a,y)=>e.darkMode?h(a,y):f(a,y),"adjuster");for(let a=0;a<e.THEME_COLOR_LIMIT;a++){let y=""+(17-3*a);p+=`
|
|
12
|
+
.section-${a-1} rect, .section-${a-1} path, .section-${a-1} circle, .section-${a-1} polygon, .section-${a-1} path {
|
|
13
|
+
fill: ${m(e["cScale"+a],10)};
|
|
14
|
+
stroke: ${m(e["cScale"+a],10)};
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
.section-${a-1} text {
|
|
18
|
+
fill: ${e["cScaleLabel"+a]};
|
|
19
|
+
}
|
|
20
|
+
.node-icon-${a-1} {
|
|
21
|
+
font-size: 40px;
|
|
22
|
+
color: ${e["cScaleLabel"+a]};
|
|
23
|
+
}
|
|
24
|
+
.section-edge-${a-1}{
|
|
25
|
+
stroke: ${e["cScale"+a]};
|
|
26
|
+
}
|
|
27
|
+
.edge-depth-${a-1}{
|
|
28
|
+
stroke-width: ${y};
|
|
29
|
+
}
|
|
30
|
+
.section-${a-1} line {
|
|
31
|
+
stroke: ${e["cScaleInv"+a]} ;
|
|
32
|
+
stroke-width: 3;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.disabled, .disabled circle, .disabled text {
|
|
36
|
+
fill: lightgray;
|
|
37
|
+
}
|
|
38
|
+
.disabled text {
|
|
39
|
+
fill: #efefef;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.node rect,
|
|
43
|
+
.node circle,
|
|
44
|
+
.node ellipse,
|
|
45
|
+
.node polygon,
|
|
46
|
+
.node path {
|
|
47
|
+
fill: ${e.background};
|
|
48
|
+
stroke: ${e.nodeBorder};
|
|
49
|
+
stroke-width: 1px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.kanban-ticket-link {
|
|
53
|
+
fill: ${e.background};
|
|
54
|
+
stroke: ${e.nodeBorder};
|
|
55
|
+
text-decoration: underline;
|
|
56
|
+
}
|
|
57
|
+
`}return p},"genSections"),Ve=t((e)=>`
|
|
58
|
+
.edge {
|
|
59
|
+
stroke-width: 3;
|
|
60
|
+
}
|
|
61
|
+
${Pe(e)}
|
|
62
|
+
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
63
|
+
fill: ${e.git0};
|
|
64
|
+
}
|
|
65
|
+
.section-root text {
|
|
66
|
+
fill: ${e.gitBranchLabel0};
|
|
67
|
+
}
|
|
68
|
+
.icon-container {
|
|
69
|
+
height:100%;
|
|
70
|
+
display: flex;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
align-items: center;
|
|
73
|
+
}
|
|
74
|
+
.edge {
|
|
75
|
+
fill: none;
|
|
76
|
+
}
|
|
77
|
+
.cluster-label, .label {
|
|
78
|
+
color: ${e.textColor};
|
|
79
|
+
fill: ${e.textColor};
|
|
80
|
+
}
|
|
81
|
+
.kanban-label {
|
|
82
|
+
dy: 1em;
|
|
83
|
+
alignment-baseline: middle;
|
|
84
|
+
text-anchor: middle;
|
|
85
|
+
dominant-baseline: middle;
|
|
86
|
+
text-align: center;
|
|
87
|
+
}
|
|
88
|
+
${At()}
|
|
89
|
+
`,"getStyles"),Be=Ve,et={db:Ae,renderer:Re,parser:Ee,styles:Be};export{et as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import{t,W,L,N,R,P,I,O,D,d,g}from"./chunk-n59nyqcr.js";import{dr,ki,lc,Ht}from"./chunk-c2eqwepm.js";import{vn}from"./chunk-8de69eyx.js";import{At}from"./chunk-h1cv1kke.js";var nt=function(){var e=t(function(h,n,s,l){for(s=s||{},l=h.length;l--;s[h[l]]=n);return s},"o"),r=[6,8,10,11,12,14,16,17,18],a=[1,9],p=[1,10],i=[1,11],u=[1,12],m=[1,13],o=[1,14],x={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:t(function(n,s,l,y,f,c,w){var _=c.length-1;switch(f){case 1:return c[_-1];case 2:this.$=[];break;case 3:c[_-1].push(c[_]),this.$=c[_-1];break;case 4:case 5:this.$=c[_];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[_].substr(6)),this.$=c[_].substr(6);break;case 9:this.$=c[_].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[_].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[_].substr(8)),this.$=c[_].substr(8);break;case 13:y.addTask(c[_-1],c[_]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:p,14:i,16:u,17:m,18:o},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:15,11:a,12:p,14:i,16:u,17:m,18:o},e(r,[2,5]),e(r,[2,6]),e(r,[2,8]),{13:[1,16]},{15:[1,17]},e(r,[2,11]),e(r,[2,12]),{19:[1,18]},e(r,[2,4]),e(r,[2,9]),e(r,[2,10]),e(r,[2,13])],defaultActions:{},parseError:t(function(n,s){if(s.recoverable)this.trace(n);else{var l=Error(n);throw l.hash=s,l}},"parseError"),parse:t(function(n){var s=this,l=[0],y=[],f=[null],c=[],w=this.table,_="",V=0,ot=0,ct=0,_t=2,ht=1,vt=c.slice.call(arguments,1),v=Object.create(this.lexer),j={yy:{}};for(var K in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,K))j.yy[K]=this.yy[K];if(v.setInput(n,j.yy),j.yy.lexer=v,j.yy.parser=this,typeof v.yylloc>"u")v.yylloc={};var Q=v.yylloc;c.push(Q);var wt=v.options&&v.options.ranges;if(typeof j.yy.parseError==="function")this.parseError=j.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Tt(M){l.length=l.length-2*M,f.length=f.length-M,c.length=c.length-M}t(Tt,"popStack");function ut(){var M=y.pop()||v.lex()||ht;if(typeof M!=="number"){if(M instanceof Array)y=M,M=y.pop();M=s.symbols_[M]||M}return M}t(ut,"lex");var T,tt,z,S,Gt,et,Y={},U,A,yt,Z;while(!0){if(z=l[l.length-1],this.defaultActions[z])S=this.defaultActions[z];else{if(T===null||typeof T>"u")T=ut();S=w[z]&&w[z][T]}if(typeof S>"u"||!S.length||!S[0]){var rt="";Z=[];for(U in w[z])if(this.terminals_[U]&&U>_t)Z.push("'"+this.terminals_[U]+"'");if(v.showPosition)rt="Parse error on line "+(V+1)+`:
|
|
2
|
+
`+v.showPosition()+`
|
|
3
|
+
Expecting `+Z.join(", ")+", got '"+(this.terminals_[T]||T)+"'";else rt="Parse error on line "+(V+1)+": Unexpected "+(T==ht?"end of input":"'"+(this.terminals_[T]||T)+"'");this.parseError(rt,{text:v.match,token:this.terminals_[T]||T,line:v.yylineno,loc:Q,expected:Z})}if(S[0]instanceof Array&&S.length>1)throw Error("Parse Error: multiple actions possible at state: "+z+", token: "+T);switch(S[0]){case 1:if(l.push(T),f.push(v.yytext),c.push(v.yylloc),l.push(S[1]),T=null,!tt){if(ot=v.yyleng,_=v.yytext,V=v.yylineno,Q=v.yylloc,ct>0)ct--}else T=tt,tt=null;break;case 2:if(A=this.productions_[S[1]][1],Y.$=f[f.length-A],Y._$={first_line:c[c.length-(A||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(A||1)].first_column,last_column:c[c.length-1].last_column},wt)Y._$.range=[c[c.length-(A||1)].range[0],c[c.length-1].range[1]];if(et=this.performAction.apply(Y,[_,ot,V,j.yy,S[1],f,c].concat(vt)),typeof et<"u")return et;if(A)l=l.slice(0,-1*A*2),f=f.slice(0,-1*A),c=c.slice(0,-1*A);l.push(this.productions_[S[1]][0]),f.push(Y.$),c.push(Y._$),yt=w[l[l.length-2]][l[l.length-1]],l.push(yt);break;case 3:return!0}}return!0},"parse")},k=function(){var h={EOF:1,parseError:t(function(s,l){if(this.yy.parser)this.yy.parser.parseError(s,l);else throw Error(s)},"parseError"),setInput:t(function(n,s){if(this.yy=s||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 s=n.match(/(?:\r\n?|\n).*/g);if(s)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),n},"input"),unput:t(function(n){var s=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var y=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),l.length-1)this.yylineno-=l.length-1;var f=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-s},this.options.ranges)this.yylloc.range=[f[0],f[0]+this.yyleng-s];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+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(),s=Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
5
|
+
`+s+"^"},"showPosition"),test_match:t(function(n,s){var l,y,f;if(this.options.backtrack_lexer){if(f={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)f.yylloc.range=this.yylloc.range.slice(0)}if(y=n[0].match(/(?:\r\n?|\n).*/g),y)this.yylineno+=y.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.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],l=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(l)return l;else if(this._backtrack){for(var c in f)this[c]=f[c];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var n,s,l,y;if(!this._more)this.yytext="",this.match="";var f=this._currentRules();for(var c=0;c<f.length;c++)if(l=this._input.match(this.rules[f[c]]),l&&(!s||l[0].length>s[0].length)){if(s=l,y=c,this.options.backtrack_lexer)if(n=this.test_match(l,f[c]),n!==!1)return n;else if(this._backtrack){s=!1;continue}else return!1;else if(!this.options.flex)break}if(s){if(n=this.test_match(s,f[y]),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 s=this.next();if(s)return s;else return this.lex()},"lex"),begin:t(function(s){this.conditionStack.push(s)},"begin"),popState:t(function(){var s=this.conditionStack.length-1;if(s>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(s){if(s=this.conditionStack.length-1-Math.abs(s||0),s>=0)return this.conditionStack[s];else return"INITIAL"},"topState"),pushState:t(function(s){this.begin(s)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(s,l,y,f){var c=f;switch(y){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.begin("acc_descr"),14;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return h}();x.lexer=k;function b(){this.yy={}}return t(b,"Parser"),b.prototype=x,x.Parser=b,new b}();nt.parser=nt;var St=nt,q="",at=[],X=[],G=[],$t=t(function(){at.length=0,X.length=0,q="",G.length=0,L()},"clear"),Mt=t(function(e){q=e,at.push(e)},"addSection"),Et=t(function(){return at},"getSections"),Ct=t(function(){let e=dt(),r=100,a=0;while(!e&&a<r)e=dt(),a++;return X.push(...G),X},"getTasks"),Pt=t(function(){let e=[];return X.forEach((a)=>{if(a.people)e.push(...a.people)}),[...new Set(e)].sort()},"updateActors"),It=t(function(e,r){let a=r.substr(1).split(":"),p=0,i=[];if(a.length===1)p=Number(a[0]),i=[];else p=Number(a[0]),i=a[1].split(",");let u=i.map((o)=>o.trim()),m={section:q,type:q,people:u,task:e,score:p};G.push(m)},"addTask"),Ft=t(function(e){let r={section:q,type:q,description:e,task:e,classes:[]};X.push(r)},"addTaskOrg"),dt=t(function(){let e=t(function(a){return G[a].processed},"compileTask"),r=!0;for(let[a,p]of G.entries())e(a),r=r&&p.processed;return r},"compileTasks"),Vt=t(function(){return Pt()},"getActors"),ft={getConfig:t(()=>d().journey,"getConfig"),clear:$t,setDiagramTitle:O,getDiagramTitle:D,setAccTitle:N,getAccTitle:R,setAccDescription:P,getAccDescription:I,addSection:Mt,getSections:Et,getTasks:Ct,addTask:It,addTaskOrg:Ft,getActors:Vt},Rt=t((e)=>`.label {
|
|
7
|
+
font-family: ${e.fontFamily};
|
|
8
|
+
color: ${e.textColor};
|
|
9
|
+
}
|
|
10
|
+
.mouth {
|
|
11
|
+
stroke: #666;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
line {
|
|
15
|
+
stroke: ${e.textColor}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.legend {
|
|
19
|
+
fill: ${e.textColor};
|
|
20
|
+
font-family: ${e.fontFamily};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.label text {
|
|
24
|
+
fill: #333;
|
|
25
|
+
}
|
|
26
|
+
.label {
|
|
27
|
+
color: ${e.textColor}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.face {
|
|
31
|
+
${e.faceColor?`fill: ${e.faceColor}`:"fill: #FFF8DC"};
|
|
32
|
+
stroke: #999;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.node rect,
|
|
36
|
+
.node circle,
|
|
37
|
+
.node ellipse,
|
|
38
|
+
.node polygon,
|
|
39
|
+
.node path {
|
|
40
|
+
fill: ${e.mainBkg};
|
|
41
|
+
stroke: ${e.nodeBorder};
|
|
42
|
+
stroke-width: 1px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.node .label {
|
|
46
|
+
text-align: center;
|
|
47
|
+
}
|
|
48
|
+
.node.clickable {
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.arrowheadPath {
|
|
53
|
+
fill: ${e.arrowheadColor};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.edgePaths .path {
|
|
57
|
+
stroke: ${e.lineColor};
|
|
58
|
+
stroke-width: 1.5px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.flowchart-link {
|
|
62
|
+
stroke: ${e.lineColor};
|
|
63
|
+
fill: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.edgeLabel {
|
|
67
|
+
background-color: ${e.edgeLabelBackground};
|
|
68
|
+
rect {
|
|
69
|
+
opacity: 0.5;
|
|
70
|
+
}
|
|
71
|
+
text-align: center;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.cluster rect {
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.cluster text {
|
|
78
|
+
fill: ${e.titleColor};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
div.mermaidTooltip {
|
|
82
|
+
position: absolute;
|
|
83
|
+
text-align: center;
|
|
84
|
+
max-width: 200px;
|
|
85
|
+
padding: 2px;
|
|
86
|
+
font-family: ${e.fontFamily};
|
|
87
|
+
font-size: 12px;
|
|
88
|
+
background: ${e.tertiaryColor};
|
|
89
|
+
border: 1px solid ${e.border2};
|
|
90
|
+
border-radius: 2px;
|
|
91
|
+
pointer-events: none;
|
|
92
|
+
z-index: 100;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.task-type-0, .section-type-0 {
|
|
96
|
+
${e.fillType0?`fill: ${e.fillType0}`:""};
|
|
97
|
+
}
|
|
98
|
+
.task-type-1, .section-type-1 {
|
|
99
|
+
${e.fillType0?`fill: ${e.fillType1}`:""};
|
|
100
|
+
}
|
|
101
|
+
.task-type-2, .section-type-2 {
|
|
102
|
+
${e.fillType0?`fill: ${e.fillType2}`:""};
|
|
103
|
+
}
|
|
104
|
+
.task-type-3, .section-type-3 {
|
|
105
|
+
${e.fillType0?`fill: ${e.fillType3}`:""};
|
|
106
|
+
}
|
|
107
|
+
.task-type-4, .section-type-4 {
|
|
108
|
+
${e.fillType0?`fill: ${e.fillType4}`:""};
|
|
109
|
+
}
|
|
110
|
+
.task-type-5, .section-type-5 {
|
|
111
|
+
${e.fillType0?`fill: ${e.fillType5}`:""};
|
|
112
|
+
}
|
|
113
|
+
.task-type-6, .section-type-6 {
|
|
114
|
+
${e.fillType0?`fill: ${e.fillType6}`:""};
|
|
115
|
+
}
|
|
116
|
+
.task-type-7, .section-type-7 {
|
|
117
|
+
${e.fillType0?`fill: ${e.fillType7}`:""};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.actor-0 {
|
|
121
|
+
${e.actor0?`fill: ${e.actor0}`:""};
|
|
122
|
+
}
|
|
123
|
+
.actor-1 {
|
|
124
|
+
${e.actor1?`fill: ${e.actor1}`:""};
|
|
125
|
+
}
|
|
126
|
+
.actor-2 {
|
|
127
|
+
${e.actor2?`fill: ${e.actor2}`:""};
|
|
128
|
+
}
|
|
129
|
+
.actor-3 {
|
|
130
|
+
${e.actor3?`fill: ${e.actor3}`:""};
|
|
131
|
+
}
|
|
132
|
+
.actor-4 {
|
|
133
|
+
${e.actor4?`fill: ${e.actor4}`:""};
|
|
134
|
+
}
|
|
135
|
+
.actor-5 {
|
|
136
|
+
${e.actor5?`fill: ${e.actor5}`:""};
|
|
137
|
+
}
|
|
138
|
+
${At()}
|
|
139
|
+
`,"getStyles"),Lt=Rt,lt=t(function(e,r){return dr(e,r)},"drawRect"),Bt=t(function(e,r){let p=e.append("circle").attr("cx",r.cx).attr("cy",r.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=e.append("g");i.append("circle").attr("cx",r.cx-5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",r.cx+5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function u(x){let k=vn().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);x.append("path").attr("class","mouth").attr("d",k).attr("transform","translate("+r.cx+","+(r.cy+2)+")")}t(u,"smile");function m(x){let k=vn().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);x.append("path").attr("class","mouth").attr("d",k).attr("transform","translate("+r.cx+","+(r.cy+7)+")")}t(m,"sad");function o(x){x.append("line").attr("class","mouth").attr("stroke",2).attr("x1",r.cx-5).attr("y1",r.cy+7).attr("x2",r.cx+5).attr("y2",r.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}if(t(o,"ambivalent"),r.score>3)u(i);else if(r.score<3)m(i);else o(i);return p},"drawFace"),mt=t(function(e,r){let a=e.append("circle");if(a.attr("cx",r.cx),a.attr("cy",r.cy),a.attr("class","actor-"+r.pos),a.attr("fill",r.fill),a.attr("stroke",r.stroke),a.attr("r",r.r),a.class!==void 0)a.attr("class",a.class);if(r.title!==void 0)a.append("title").text(r.title);return a},"drawCircle"),xt=t(function(e,r){return lc(e,r)},"drawText"),jt=t(function(e,r){function a(i,u,m,o,x){return i+","+u+" "+(i+m)+","+u+" "+(i+m)+","+(u+o-x)+" "+(i+m-x*1.2)+","+(u+o)+" "+i+","+(u+o)}t(a,"genPoints");let p=e.append("polygon");p.attr("points",a(r.x,r.y,50,20,7)),p.attr("class","labelBox"),r.y=r.y+r.labelMargin,r.x=r.x+0.5*r.labelMargin,xt(e,r)},"drawLabel"),Nt=t(function(e,r,a){let p=e.append("g"),i=Ht();i.x=r.x,i.y=r.y,i.fill=r.fill,i.width=a.width*r.taskCount+a.diagramMarginX*(r.taskCount-1),i.height=a.height,i.class="journey-section section-type-"+r.num,i.rx=3,i.ry=3,lt(p,i),kt(a)(r.text,p,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+r.num},a,r.colour)},"drawSection"),st=-1,zt=t(function(e,r,a,p){let i=r.x+a.width/2,u=e.append("g");st++;let m=450;u.append("line").attr("id",p+"-task"+st).attr("x1",i).attr("y1",r.y).attr("x2",i).attr("y2",m).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Bt(u,{cx:i,cy:300+(5-r.score)*30,score:r.score});let o=Ht();o.x=r.x,o.y=r.y,o.fill=r.fill,o.width=a.width,o.height=a.height,o.class="task task-type-"+r.num,o.rx=3,o.ry=3,lt(u,o);let x=r.x+14;r.people.forEach((k)=>{let b=r.actors[k].color,h={cx:x,cy:r.y,r:7,fill:b,stroke:"#000",title:k,pos:r.actors[k].position};mt(u,h),x+=10}),kt(a)(r.task,u,o.x,o.y,o.width,o.height,{class:"task"},a,r.colour)},"drawTask"),Wt=t(function(e,r){ki(e,r)},"drawBackgroundRect"),kt=function(){function e(i,u,m,o,x,k,b,h){let n=u.append("text").attr("x",m+x/2).attr("y",o+k/2+5).style("font-color",h).style("text-anchor","middle").text(i);p(n,b)}t(e,"byText");function r(i,u,m,o,x,k,b,h,n){let{taskFontSize:s,taskFontFamily:l}=h,y=i.split(/<br\s*\/?>/gi);for(let f=0;f<y.length;f++){let c=f*s-s*(y.length-1)/2,w=u.append("text").attr("x",m+x/2).attr("y",o).attr("fill",n).style("text-anchor","middle").style("font-size",s).style("font-family",l);w.append("tspan").attr("x",m+x/2).attr("dy",c).text(y[f]),w.attr("y",o+k/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),p(w,b)}}t(r,"byTspan");function a(i,u,m,o,x,k,b,h){let n=u.append("switch"),l=n.append("foreignObject").attr("x",m).attr("y",o).attr("width",x).attr("height",k).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),r(i,n,m,o,x,k,b,h),p(l,b)}t(a,"byFo");function p(i,u){for(let m in u)if(m in u)i.attr(m,u[m])}return t(p,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?a:i.textPlacement==="old"?e:r}}(),Ot=t(function(e,r){st=-1,e.append("defs").append("marker").attr("id",r+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),H={drawRect:lt,drawCircle:mt,drawSection:Nt,drawText:xt,drawLabel:jt,drawTask:zt,drawBackgroundRect:Wt,initGraphics:Ot},Yt=t(function(e){Object.keys(e).forEach(function(a){C[a]=e[a]})},"setConf"),F={},J=0;function bt(e){let r=d().journey,a=r.maxLabelWidth;J=0;let p=60;Object.keys(F).forEach((i)=>{let u=F[i].color,m={cx:20,cy:p,r:7,fill:u,stroke:"#000",pos:F[i].position};H.drawCircle(e,m);let o=e.append("text").attr("visibility","hidden").text(i),x=o.node().getBoundingClientRect().width;o.remove();let k=[];if(x<=a)k=[i];else{let b=i.split(" "),h="";if(o=e.append("text").attr("visibility","hidden"),b.forEach((n)=>{let s=h?`${h} ${n}`:n;if(o.text(s),o.node().getBoundingClientRect().width>a){if(h)k.push(h);if(h=n,o.text(n),o.node().getBoundingClientRect().width>a){let y="";for(let f of n)if(y+=f,o.text(y+"-"),o.node().getBoundingClientRect().width>a)k.push(y.slice(0,-1)+"-"),y=f;h=y}}else h=s}),h)k.push(h);o.remove()}k.forEach((b,h)=>{let n={x:40,y:p+7+h*20,fill:"#666",text:b,textMargin:r.boxTextMargin??5},l=H.drawText(e,n).node().getBoundingClientRect().width;if(l>J&&l>r.leftMargin-l)J=l}),p+=Math.max(20,k.length*20)})}t(bt,"drawActorLegend");var C=d().journey,B=0,qt=t(function(e,r,a,p){let i=d(),u=i.journey.titleColor,m=i.journey.titleFontSize,o=i.journey.titleFontFamily,x=i.securityLevel,k;if(x==="sandbox")k=g("#i"+r);let b=x==="sandbox"?g(k.nodes()[0].contentDocument.body):g("body");E.init();let h=b.select("#"+r);H.initGraphics(h,r);let n=p.db.getTasks(),s=p.db.getDiagramTitle(),l=p.db.getActors();for(let V in F)delete F[V];let y=0;l.forEach((V)=>{F[V]={color:C.actorColours[y%C.actorColours.length],position:y},y++}),bt(h),B=C.leftMargin+J,E.insert(0,0,B,Object.keys(F).length*50),Xt(h,n,0,r);let f=E.getBounds();if(s)h.append("text").text(s).attr("x",B).attr("font-size",m).attr("font-weight","bold").attr("y",25).attr("fill",u).attr("font-family",o);let c=f.stopy-f.starty+2*C.diagramMarginY,w=B+f.stopx+2*C.diagramMarginX;W(h,c,w,C.useMaxWidth),h.append("line").attr("x1",B).attr("y1",C.height*4).attr("x2",w-B-4).attr("y2",C.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+r+"-arrowhead)");let _=s?70:0;h.attr("viewBox",`${f.startx} -25 ${w} ${c+_}`),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",c+_+25)},"draw"),E={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:t(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:t(function(e,r,a,p){if(e[r]===void 0)e[r]=a;else e[r]=p(a,e[r])},"updateVal"),updateBounds:t(function(e,r,a,p){let i=d().journey,u=this,m=0;function o(x){return t(function(b){m++;let h=u.sequenceItems.length-m+1;if(u.updateVal(b,"starty",r-h*i.boxMargin,Math.min),u.updateVal(b,"stopy",p+h*i.boxMargin,Math.max),u.updateVal(E.data,"startx",e-h*i.boxMargin,Math.min),u.updateVal(E.data,"stopx",a+h*i.boxMargin,Math.max),x!=="activation")u.updateVal(b,"startx",e-h*i.boxMargin,Math.min),u.updateVal(b,"stopx",a+h*i.boxMargin,Math.max),u.updateVal(E.data,"starty",r-h*i.boxMargin,Math.min),u.updateVal(E.data,"stopy",p+h*i.boxMargin,Math.max)},"updateItemBounds")}t(o,"updateFn"),this.sequenceItems.forEach(o())},"updateBounds"),insert:t(function(e,r,a,p){let i=Math.min(e,a),u=Math.max(e,a),m=Math.min(r,p),o=Math.max(r,p);this.updateVal(E.data,"startx",i,Math.min),this.updateVal(E.data,"starty",m,Math.min),this.updateVal(E.data,"stopx",u,Math.max),this.updateVal(E.data,"stopy",o,Math.max),this.updateBounds(i,m,u,o)},"insert"),bumpVerticalPos:t(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:t(function(){return this.verticalPos},"getVerticalPos"),getBounds:t(function(){return this.data},"getBounds")},{sectionFills:it,sectionColours:pt}=C,Xt=t(function(e,r,a,p){let i=d().journey,u="",m=i.height*2+i.diagramMarginY,o=a+m,x=0,k="#CCC",b="black",h=0;for(let[n,s]of r.entries()){if(u!==s.section){k=it[x%it.length],h=x%it.length,b=pt[x%pt.length];let y=0,f=s.section;for(let w=n;w<r.length;w++)if(r[w].section==f)y=y+1;else break;let c={x:n*i.taskMargin+n*i.width+B,y:50,text:s.section,fill:k,num:h,colour:b,taskCount:y};H.drawSection(e,c,i),u=s.section,x++}let l=s.people.reduce((y,f)=>{if(F[f])y[f]=F[f];return y},{});s.x=n*i.taskMargin+n*i.width+B,s.y=o,s.width=i.diagramMarginX,s.height=i.diagramMarginY,s.colour=b,s.fill=k,s.num=h,s.actors=l,H.drawTask(e,s,i,p),E.insert(s.x,s.y,s.x+s.width+i.taskMargin,450)}},"drawTasks"),gt={setConf:Yt,draw:qt},ee={parser:St,db:ft,renderer:gt,styles:Lt,init:t((e)=>{gt.setConf(e.journey),ft.clear()},"init")};export{ee as diagram};
|
|
Binary file
|
|
Binary file
|