@bkm016/basalt 0.1.18 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/chunk-0b2brwjc.js +3 -0
- package/chunk-13pbt8mn.js +2 -0
- package/chunk-14085qqt.js +8 -0
- package/chunk-2dph65ye.js +3 -0
- package/chunk-2v8anxgd.js +9 -0
- package/chunk-37f4ks5f.js +3 -0
- package/chunk-3q1hxwxb.js +5 -0
- package/chunk-3qs33s9g.js +2 -0
- package/chunk-53m94h0b.js +7 -0
- package/chunk-5jy2cnyr.js +18 -0
- package/chunk-5wfyn3k0.js +3 -0
- package/chunk-69v706tc.js +5 -0
- package/chunk-79h4rzza.js +2 -0
- package/chunk-7xfde6se.js +3 -0
- package/chunk-8bf4g2d7.js +3 -0
- package/chunk-adq8c7vt.js +25 -0
- package/chunk-ahpg469e.js +3 -0
- package/chunk-ary9gky8.js +7 -0
- package/chunk-becsymjn.js +2 -0
- package/chunk-beqps81c.js +4 -0
- package/chunk-bnvynyww.js +3 -0
- package/chunk-c785tr0e.js +4078 -0
- package/chunk-cc19pbgm.js +12 -0
- package/chunk-d6g5m56z.js +2 -0
- package/chunk-etkktxdc.js +2 -0
- package/chunk-etxsj2ey.js +10 -0
- package/chunk-f2ajxymw.js +2 -0
- package/chunk-f2bcfa6z.js +7 -0
- package/chunk-f47qdrkp.js +2 -0
- package/chunk-f5yg6yd0.js +3 -0
- package/chunk-fjk9ztjc.js +11 -0
- package/chunk-g99n5ywc.js +3 -0
- package/chunk-grwavjp7.js +2 -0
- package/chunk-gsek3gpd.js +3 -0
- package/chunk-gv9hbv9j.js +2 -0
- package/chunk-h045t6f1.js +2 -0
- package/chunk-h4g1tzk6.js +11 -0
- package/chunk-had2k7b9.js +20 -0
- package/chunk-hbm45044.js +25 -0
- package/chunk-hd2hars5.js +3 -0
- package/chunk-hfh230tm.js +2 -0
- package/chunk-hkx7d1j9.js +7 -0
- package/chunk-jbk2tmza.js +5 -0
- package/chunk-jv9sy0np.js +2 -0
- package/chunk-kdc8tq70.js +2 -0
- package/chunk-m1nevdw6.js +3 -0
- package/chunk-m6yrpt1f.js +5 -0
- package/chunk-mrchbvsy.js +4 -0
- package/chunk-n9x6akk3.js +2 -0
- package/chunk-ne94brn4.js +3 -0
- package/chunk-nv1jg79d.js +2 -0
- package/chunk-pvdt969t.js +59 -0
- package/chunk-q22dnah8.js +3 -0
- package/chunk-q2zayphb.js +10 -0
- package/chunk-q4h6djtp.js +2 -0
- package/chunk-qa8mne61.js +2 -0
- package/chunk-r9z9m75h.js +16 -0
- package/chunk-rmyzxqkd.js +467 -0
- package/chunk-rq647zmf.js +2 -0
- package/chunk-sj4jvm9p.js +2 -0
- package/chunk-sq0ra5m8.js +4 -0
- package/chunk-sxg03n4v.js +2 -0
- package/chunk-t0m1wjrn.js +3 -0
- package/chunk-td52edcm.js +31 -0
- package/chunk-tdnwaaw4.js +12 -0
- package/chunk-teky87xx.js +3 -0
- package/chunk-v1avwm7q.js +3 -0
- package/chunk-wcmk8ee3.js +3 -0
- package/chunk-wf9r0frb.js +3 -0
- package/chunk-wx697mre.js +2 -0
- package/chunk-wzz64ygm.js +2 -0
- package/chunk-xb9mwt5a.js +2 -0
- package/chunk-xbkbaa84.js +2 -0
- package/chunk-xjy31n64.js +3 -0
- package/chunk-xzn34n38.js +389 -0
- package/chunk-yprp5s5v.js +3 -0
- package/chunk-yyhdabhq.js +15 -0
- package/chunk-z2jp61ze.js +39 -0
- package/chunk-zt5szcek.js +3 -0
- package/chunk-zxb6cg3m.js +2 -0
- package/compiled.js +9 -9
- package/package.json +1 -1
- package/ui-test-worker.js +21 -21
- package/web/chunk-0ays2hhj.js +41 -0
- package/web/chunk-0ays2hhj.js.br +0 -0
- package/web/chunk-0ays2hhj.js.gz +0 -0
- package/web/chunk-0na4c1bp.js +139 -0
- package/web/chunk-0na4c1bp.js.br +0 -0
- package/web/chunk-0na4c1bp.js.gz +0 -0
- package/web/chunk-0y0p0ct0.js +1 -0
- package/web/chunk-0y0p0ct0.js.br +0 -0
- package/web/chunk-0y0p0ct0.js.gz +0 -0
- package/web/chunk-191v8amv.js +1 -0
- package/web/chunk-191v8amv.js.br +0 -0
- package/web/chunk-191v8amv.js.gz +0 -0
- package/web/chunk-1c6rhsft.js +200 -0
- package/web/chunk-1c6rhsft.js.br +0 -0
- package/web/chunk-1c6rhsft.js.gz +0 -0
- package/web/chunk-1mwkrh5f.js +370 -0
- package/web/chunk-1mwkrh5f.js.br +0 -0
- package/web/chunk-1mwkrh5f.js.gz +0 -0
- package/web/chunk-1q4r17he.js +2 -0
- package/web/chunk-1q4r17he.js.br +0 -0
- package/web/chunk-1q4r17he.js.gz +0 -0
- package/web/chunk-1sm3c8an.js +8 -0
- package/web/chunk-1sm3c8an.js.br +0 -0
- package/web/chunk-1sm3c8an.js.gz +0 -0
- package/web/chunk-1vmjpvy5.js +1 -0
- package/web/chunk-1vmjpvy5.js.br +0 -0
- package/web/chunk-1vmjpvy5.js.gz +0 -0
- package/web/chunk-1x4z5w5e.js +1 -0
- package/web/chunk-1x4z5w5e.js.br +2 -0
- package/web/chunk-1x4z5w5e.js.gz +0 -0
- package/web/chunk-22ncha3b.js +142 -0
- package/web/chunk-22ncha3b.js.br +0 -0
- package/web/chunk-22ncha3b.js.gz +0 -0
- package/web/chunk-239rqgmj.js +24 -0
- package/web/chunk-239rqgmj.js.br +0 -0
- package/web/chunk-239rqgmj.js.gz +0 -0
- package/web/chunk-2c6zessc.js +2 -0
- package/web/chunk-2c6zessc.js.br +0 -0
- package/web/chunk-2c6zessc.js.gz +0 -0
- package/web/chunk-2m7b1wmp.js +1 -0
- package/web/chunk-2m7b1wmp.js.br +0 -0
- package/web/chunk-2m7b1wmp.js.gz +0 -0
- package/web/chunk-2qncw4c0.js +2 -0
- package/web/chunk-2qncw4c0.js.br +0 -0
- package/web/chunk-2qncw4c0.js.gz +0 -0
- package/web/chunk-2r497559.js +2 -0
- package/web/chunk-2r497559.js.br +0 -0
- package/web/chunk-2r497559.js.gz +0 -0
- package/web/chunk-2t43cra8.js +1 -0
- package/web/chunk-2t43cra8.js.br +0 -0
- package/web/chunk-2t43cra8.js.gz +0 -0
- package/web/chunk-2v379e1v.js +1 -0
- package/web/chunk-2v379e1v.js.br +2 -0
- package/web/chunk-2v379e1v.js.gz +0 -0
- package/web/chunk-2ywd0vz2.js +1 -0
- package/web/chunk-2ywd0vz2.js.br +0 -0
- package/web/chunk-2ywd0vz2.js.gz +0 -0
- package/web/chunk-3626tdgf.js +1 -0
- package/web/chunk-3626tdgf.js.br +0 -0
- package/web/chunk-3626tdgf.js.gz +0 -0
- package/web/chunk-3fq54zbf.js +2 -0
- package/web/chunk-3fq54zbf.js.br +0 -0
- package/web/chunk-3fq54zbf.js.gz +0 -0
- package/web/chunk-3jptvn0z.js +1 -0
- package/web/chunk-3jptvn0z.js.br +0 -0
- package/web/chunk-3jptvn0z.js.gz +0 -0
- package/web/chunk-3k31m9yk.js +7 -0
- package/web/chunk-3k31m9yk.js.br +0 -0
- package/web/chunk-3k31m9yk.js.gz +0 -0
- package/web/chunk-3wrebqcz.js +1 -0
- package/web/chunk-3wrebqcz.js.br +0 -0
- package/web/chunk-3wrebqcz.js.gz +0 -0
- package/web/chunk-42z866aa.js +1 -0
- package/web/chunk-42z866aa.js.br +0 -0
- package/web/chunk-42z866aa.js.gz +0 -0
- package/web/chunk-46r5s1ag.js +1 -0
- package/web/chunk-46r5s1ag.js.br +2 -0
- package/web/chunk-46r5s1ag.js.gz +0 -0
- package/web/chunk-4h8kxmac.js +1 -0
- package/web/chunk-4h8kxmac.js.br +2 -0
- package/web/chunk-4h8kxmac.js.gz +0 -0
- package/web/chunk-4hmp8qcv.js +1 -0
- package/web/chunk-4hmp8qcv.js.br +0 -0
- package/web/chunk-4hmp8qcv.js.gz +0 -0
- package/web/chunk-4ryyn6k5.js +1 -0
- package/web/chunk-4ryyn6k5.js.br +0 -0
- package/web/chunk-4ryyn6k5.js.gz +0 -0
- package/web/chunk-4zp7b44y.js +78 -0
- package/web/chunk-4zp7b44y.js.br +0 -0
- package/web/chunk-4zp7b44y.js.gz +0 -0
- package/web/chunk-52n1enqe.js +1 -0
- package/web/chunk-52n1enqe.js.br +0 -0
- package/web/chunk-52n1enqe.js.gz +0 -0
- package/web/chunk-5m5jve5q.js +2 -0
- package/web/chunk-5m5jve5q.js.br +0 -0
- package/web/chunk-5m5jve5q.js.gz +0 -0
- package/web/chunk-62ssrwet.js +1 -0
- package/web/chunk-62ssrwet.js.br +0 -0
- package/web/chunk-62ssrwet.js.gz +0 -0
- package/web/chunk-6e14fdx8.js +1 -0
- package/web/chunk-6e14fdx8.js.br +0 -0
- package/web/chunk-6e14fdx8.js.gz +0 -0
- package/web/chunk-6kckk3j9.js +1 -0
- package/web/chunk-6kckk3j9.js.br +2 -0
- package/web/chunk-6kckk3j9.js.gz +0 -0
- package/web/chunk-6vdh5wx5.js +1 -0
- package/web/chunk-6vdh5wx5.js.br +0 -0
- package/web/chunk-6vdh5wx5.js.gz +0 -0
- package/web/chunk-6wyrfrh1.js +1 -0
- package/web/chunk-6wyrfrh1.js.br +0 -0
- package/web/chunk-6wyrfrh1.js.gz +0 -0
- package/web/chunk-77pcpdb5.js +303 -0
- package/web/chunk-77pcpdb5.js.br +0 -0
- package/web/chunk-77pcpdb5.js.gz +0 -0
- package/web/chunk-7dq3x88k.js +120 -0
- package/web/chunk-7dq3x88k.js.br +0 -0
- package/web/chunk-7dq3x88k.js.gz +0 -0
- package/web/chunk-7ebwmmjn.js +34 -0
- package/web/chunk-7ebwmmjn.js.br +0 -0
- package/web/chunk-7ebwmmjn.js.gz +0 -0
- package/web/chunk-7jra5kj0.js +1 -0
- package/web/chunk-7jra5kj0.js.br +0 -0
- package/web/chunk-7jra5kj0.js.gz +0 -0
- package/web/chunk-8dgtprxa.js +2 -0
- package/web/chunk-8dgtprxa.js.br +0 -0
- package/web/chunk-8dgtprxa.js.gz +0 -0
- package/web/chunk-8mrw5mgn.js +1 -0
- package/web/chunk-8mrw5mgn.js.br +0 -0
- package/web/chunk-8mrw5mgn.js.gz +0 -0
- package/web/chunk-8n1cyb8k.js +99 -0
- package/web/chunk-8n1cyb8k.js.br +0 -0
- package/web/chunk-8n1cyb8k.js.gz +0 -0
- package/web/chunk-8ssjqdky.js +1 -0
- package/web/chunk-8ssjqdky.js.br +2 -0
- package/web/chunk-8ssjqdky.js.gz +0 -0
- package/web/chunk-90k6xrsa.js +2 -0
- package/web/chunk-90k6xrsa.js.br +0 -0
- package/web/chunk-90k6xrsa.js.gz +0 -0
- package/web/chunk-926v5sg8.js +24 -0
- package/web/chunk-926v5sg8.js.br +0 -0
- package/web/chunk-926v5sg8.js.gz +0 -0
- package/web/chunk-9kvr6dkh.js +106 -0
- package/web/chunk-9kvr6dkh.js.br +0 -0
- package/web/chunk-9kvr6dkh.js.gz +0 -0
- package/web/chunk-9s6zj1sh.js +217 -0
- package/web/chunk-9s6zj1sh.js.br +0 -0
- package/web/chunk-9s6zj1sh.js.gz +0 -0
- package/web/chunk-acpyx69f.js +1 -0
- package/web/chunk-acpyx69f.js.br +0 -0
- package/web/chunk-acpyx69f.js.gz +0 -0
- package/web/chunk-amch1hp8.js +1 -0
- package/web/chunk-amch1hp8.js.br +0 -0
- package/web/chunk-amch1hp8.js.gz +0 -0
- package/web/chunk-azjpkz26.js +38 -0
- package/web/chunk-azjpkz26.js.br +0 -0
- package/web/chunk-azjpkz26.js.gz +0 -0
- package/web/chunk-b2zmxzm0.js +2 -0
- package/web/chunk-b2zmxzm0.js.br +0 -0
- package/web/chunk-b2zmxzm0.js.gz +0 -0
- package/web/chunk-bgn0bkad.js +98 -0
- package/web/chunk-bgn0bkad.js.br +0 -0
- package/web/chunk-bgn0bkad.js.gz +0 -0
- package/web/chunk-bka3pbzn.js +4 -0
- package/web/chunk-bka3pbzn.js.br +0 -0
- package/web/chunk-bka3pbzn.js.gz +0 -0
- package/web/chunk-ck23t8as.js +2 -0
- package/web/chunk-ck23t8as.js.br +0 -0
- package/web/chunk-ck23t8as.js.gz +0 -0
- package/web/chunk-cp5ec63g.js +30 -0
- package/web/chunk-cp5ec63g.js.br +0 -0
- package/web/chunk-cp5ec63g.js.gz +0 -0
- package/web/chunk-cw21gjwg.js +39 -0
- package/web/chunk-cw21gjwg.js.br +0 -0
- package/web/chunk-cw21gjwg.js.gz +0 -0
- package/web/chunk-cxcpk0qt.js +2 -0
- package/web/chunk-cxcpk0qt.js.br +0 -0
- package/web/chunk-cxcpk0qt.js.gz +0 -0
- package/web/chunk-d3s30py8.js +1 -0
- package/web/chunk-d3s30py8.js.br +0 -0
- package/web/chunk-d3s30py8.js.gz +0 -0
- package/web/chunk-dj4jc1ec.js +1 -0
- package/web/chunk-dj4jc1ec.js.br +0 -0
- package/web/chunk-dj4jc1ec.js.gz +0 -0
- package/web/chunk-ef2xw0kb.js +1 -0
- package/web/chunk-ef2xw0kb.js.br +0 -0
- package/web/chunk-ef2xw0kb.js.gz +0 -0
- package/web/chunk-fek0yrg5.js +2 -0
- package/web/chunk-fek0yrg5.js.br +0 -0
- package/web/chunk-fek0yrg5.js.gz +0 -0
- package/web/chunk-fgm2r34b.js +36 -0
- package/web/chunk-fgm2r34b.js.br +0 -0
- package/web/chunk-fgm2r34b.js.gz +0 -0
- package/web/chunk-fpqs301q.js +2 -0
- package/web/chunk-fpqs301q.js.br +0 -0
- package/web/chunk-fpqs301q.js.gz +0 -0
- package/web/chunk-fv6se8xf.js +1 -0
- package/web/chunk-fv6se8xf.js.br +2 -0
- package/web/chunk-fv6se8xf.js.gz +0 -0
- package/web/chunk-g0nagyx2.js +1 -0
- package/web/chunk-g0nagyx2.js.br +0 -0
- package/web/chunk-g0nagyx2.js.gz +0 -0
- package/web/chunk-g5fp9ep9.js +1 -0
- package/web/chunk-g5fp9ep9.js.br +0 -0
- package/web/chunk-g5fp9ep9.js.gz +0 -0
- package/web/chunk-gh1fmd3j.js +3 -0
- package/web/chunk-gh1fmd3j.js.br +0 -0
- package/web/chunk-gh1fmd3j.js.gz +0 -0
- package/web/chunk-gq5825re.js +70 -0
- package/web/chunk-gq5825re.js.br +0 -0
- package/web/chunk-gq5825re.js.gz +0 -0
- package/web/chunk-gy57dyny.js +1 -0
- package/web/chunk-gy57dyny.js.br +0 -0
- package/web/chunk-gy57dyny.js.gz +0 -0
- package/web/chunk-j7p6xhe2.js +1 -0
- package/web/chunk-j7p6xhe2.js.br +0 -0
- package/web/chunk-j7p6xhe2.js.gz +0 -0
- package/web/chunk-jb8xfsc6.js +2 -0
- package/web/chunk-jb8xfsc6.js.br +0 -0
- package/web/chunk-jb8xfsc6.js.gz +0 -0
- package/web/chunk-jqyxnnn0.js +1 -0
- package/web/chunk-jqyxnnn0.js.br +0 -0
- package/web/chunk-jqyxnnn0.js.gz +0 -0
- package/web/chunk-jtwct1bx.js +1133 -0
- package/web/chunk-jtwct1bx.js.br +0 -0
- package/web/chunk-jtwct1bx.js.gz +0 -0
- package/web/chunk-k22kq2t7.js +12 -0
- package/web/chunk-k22kq2t7.js.br +0 -0
- package/web/chunk-k22kq2t7.js.gz +0 -0
- package/web/chunk-k2ry7k7s.js +1 -0
- package/web/chunk-k2ry7k7s.js.br +0 -0
- package/web/chunk-k2ry7k7s.js.gz +0 -0
- package/web/chunk-kdbrrecz.js +332 -0
- package/web/chunk-kdbrrecz.js.br +0 -0
- package/web/chunk-kdbrrecz.js.gz +0 -0
- package/web/chunk-kes2tf1q.js +2 -0
- package/web/chunk-kes2tf1q.js.br +3 -0
- package/web/chunk-kes2tf1q.js.gz +0 -0
- package/web/chunk-ksrzt6c5.js +1 -0
- package/web/chunk-ksrzt6c5.js.br +0 -0
- package/web/chunk-ksrzt6c5.js.gz +0 -0
- package/web/chunk-m2ethr1n.js +84 -0
- package/web/chunk-m2ethr1n.js.br +0 -0
- package/web/chunk-m2ethr1n.js.gz +0 -0
- package/web/chunk-m7tcm69z.js +292 -0
- package/web/chunk-m7tcm69z.js.br +0 -0
- package/web/chunk-m7tcm69z.js.gz +0 -0
- package/web/chunk-m8bz4e6n.js +2 -0
- package/web/chunk-m8bz4e6n.js.br +0 -0
- package/web/chunk-m8bz4e6n.js.gz +0 -0
- package/web/chunk-mva687p4.js +1 -0
- package/web/chunk-mva687p4.js.br +0 -0
- package/web/chunk-mva687p4.js.gz +0 -0
- package/web/chunk-n8fe9j5b.js +214 -0
- package/web/chunk-n8fe9j5b.js.br +0 -0
- package/web/chunk-n8fe9j5b.js.gz +0 -0
- package/web/chunk-nckx4yfd.js +62 -0
- package/web/chunk-nckx4yfd.js.br +0 -0
- package/web/chunk-nckx4yfd.js.gz +0 -0
- package/web/chunk-ncynjha5.js +2 -0
- package/web/chunk-ncynjha5.js.br +0 -0
- package/web/chunk-ncynjha5.js.gz +0 -0
- package/web/chunk-nq7dp0wj.js +291 -0
- package/web/chunk-nq7dp0wj.js.br +0 -0
- package/web/chunk-nq7dp0wj.js.gz +0 -0
- package/web/chunk-pagep4k3.js +1 -0
- package/web/chunk-pagep4k3.js.br +0 -0
- package/web/chunk-pagep4k3.js.gz +0 -0
- package/web/chunk-pbrk7zdw.js +1 -0
- package/web/chunk-pbrk7zdw.js.br +0 -0
- package/web/chunk-pbrk7zdw.js.gz +0 -0
- package/web/chunk-q0cs1bhg.js +2 -0
- package/web/chunk-q0cs1bhg.js.br +0 -0
- package/web/chunk-q0cs1bhg.js.gz +0 -0
- package/web/chunk-q749pgke.js +1 -0
- package/web/chunk-q749pgke.js.br +0 -0
- package/web/chunk-q749pgke.js.gz +0 -0
- package/web/chunk-q7yry602.js +1 -0
- package/web/chunk-q7yry602.js.br +0 -0
- package/web/chunk-q7yry602.js.gz +0 -0
- package/web/chunk-qkeaa97s.js +1 -0
- package/web/chunk-qkeaa97s.js.br +0 -0
- package/web/chunk-qkeaa97s.js.gz +0 -0
- package/web/chunk-qx7afyba.js +1 -0
- package/web/chunk-qx7afyba.js.br +0 -0
- package/web/chunk-qx7afyba.js.gz +0 -0
- package/web/chunk-rcaqmcm4.js +40 -0
- package/web/chunk-rcaqmcm4.js.br +0 -0
- package/web/chunk-rcaqmcm4.js.gz +0 -0
- package/web/chunk-s5kbbker.js +89 -0
- package/web/chunk-s5kbbker.js.br +0 -0
- package/web/chunk-s5kbbker.js.gz +0 -0
- package/web/chunk-sdq69ysp.js +2 -0
- package/web/chunk-sdq69ysp.js.br +0 -0
- package/web/chunk-sdq69ysp.js.gz +0 -0
- package/web/chunk-sk0cmsbx.js +7 -0
- package/web/chunk-sk0cmsbx.js.br +0 -0
- package/web/chunk-sk0cmsbx.js.gz +0 -0
- package/web/chunk-smmcx1z4.js +324 -0
- package/web/chunk-smmcx1z4.js.br +0 -0
- package/web/chunk-smmcx1z4.js.gz +0 -0
- package/web/chunk-sq7ntjp0.js +16 -0
- package/web/chunk-sq7ntjp0.js.br +0 -0
- package/web/chunk-sq7ntjp0.js.gz +0 -0
- package/web/chunk-st27df9w.js +2 -0
- package/web/chunk-st27df9w.js.br +0 -0
- package/web/chunk-st27df9w.js.gz +0 -0
- package/web/chunk-svxkg8n3.js +2 -0
- package/web/chunk-svxkg8n3.js.br +0 -0
- package/web/chunk-svxkg8n3.js.gz +0 -0
- package/web/chunk-t9nzrp2p.js +1 -0
- package/web/chunk-t9nzrp2p.js.br +0 -0
- package/web/chunk-t9nzrp2p.js.gz +0 -0
- package/web/chunk-t9t9v1r8.js +55 -0
- package/web/chunk-t9t9v1r8.js.br +0 -0
- package/web/chunk-t9t9v1r8.js.gz +0 -0
- package/web/chunk-tzpv48j3.js +2 -0
- package/web/chunk-tzpv48j3.js.br +0 -0
- package/web/chunk-tzpv48j3.js.gz +0 -0
- package/web/chunk-vgsk4ppw.js +7 -0
- package/web/chunk-vgsk4ppw.js.br +0 -0
- package/web/chunk-vgsk4ppw.js.gz +0 -0
- package/web/chunk-vq41ta7n.js +4 -0
- package/web/chunk-vq41ta7n.js.br +0 -0
- package/web/chunk-vq41ta7n.js.gz +0 -0
- package/web/chunk-w08egbqf.js +1 -0
- package/web/chunk-w08egbqf.js.br +0 -0
- package/web/chunk-w08egbqf.js.gz +0 -0
- package/web/chunk-wcmq0qgh.js +1 -0
- package/web/chunk-wcmq0qgh.js.br +0 -0
- package/web/chunk-wcmq0qgh.js.gz +0 -0
- package/web/chunk-wctq02yb.js +2 -0
- package/web/chunk-wctq02yb.js.br +0 -0
- package/web/chunk-wctq02yb.js.gz +0 -0
- package/web/chunk-wfwadf3r.js +2 -0
- package/web/chunk-wfwadf3r.js.br +0 -0
- package/web/chunk-wfwadf3r.js.gz +0 -0
- package/web/chunk-wgas5t5y.js +1 -0
- package/web/chunk-wgas5t5y.js.br +0 -0
- package/web/chunk-wgas5t5y.js.gz +0 -0
- package/web/chunk-x7k4eyee.js +21 -0
- package/web/chunk-x7k4eyee.js.br +0 -0
- package/web/chunk-x7k4eyee.js.gz +0 -0
- package/web/chunk-xpv38q1f.js +140 -0
- package/web/chunk-xpv38q1f.js.br +0 -0
- package/web/chunk-xpv38q1f.js.gz +0 -0
- package/web/chunk-xt671z8e.js +1 -0
- package/web/chunk-xt671z8e.js.br +0 -0
- package/web/chunk-xt671z8e.js.gz +0 -0
- package/web/chunk-xwrrkwwx.css +1 -0
- package/web/chunk-xwrrkwwx.css.br +0 -0
- package/web/chunk-xwrrkwwx.css.gz +0 -0
- package/web/chunk-xwy3gth5.js +89 -0
- package/web/chunk-xwy3gth5.js.br +0 -0
- package/web/chunk-xwy3gth5.js.gz +0 -0
- package/web/chunk-xwyadj9p.js +2 -0
- package/web/chunk-xwyadj9p.js.br +0 -0
- package/web/chunk-xwyadj9p.js.gz +0 -0
- package/web/chunk-xzgvnd23.js +1 -0
- package/web/chunk-xzgvnd23.js.br +0 -0
- package/web/chunk-xzgvnd23.js.gz +0 -0
- package/web/chunk-y05m6rvz.js +1 -0
- package/web/chunk-y05m6rvz.js.br +2 -0
- package/web/chunk-y05m6rvz.js.gz +0 -0
- package/web/chunk-z51mtwh3.js +169 -0
- package/web/chunk-z51mtwh3.js.br +0 -0
- package/web/chunk-z51mtwh3.js.gz +0 -0
- package/web/chunk-z77xrqc1.js +1 -0
- package/web/chunk-z77xrqc1.js.br +0 -0
- package/web/chunk-z77xrqc1.js.gz +0 -0
- package/web/chunk-z946nbmn.js +2 -0
- package/web/chunk-z946nbmn.js.br +0 -0
- package/web/chunk-z946nbmn.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-02q61grt.js +0 -3
- package/chunk-03r6s8pm.js +0 -2
- package/chunk-09fsdkd3.js +0 -5
- package/chunk-0bg4w7ht.js +0 -3
- package/chunk-0s4r7k7j.js +0 -2
- package/chunk-27kw4nth.js +0 -2
- package/chunk-2ag9mvms.js +0 -10
- package/chunk-2shwjp8q.js +0 -3
- package/chunk-3114vstw.js +0 -2
- package/chunk-31meb34a.js +0 -2
- package/chunk-34w345mt.js +0 -2
- package/chunk-3amfr8zp.js +0 -7
- package/chunk-40nk2jjt.js +0 -2
- package/chunk-49bz6hg5.js +0 -25
- package/chunk-4hgkwa4k.js +0 -3
- package/chunk-4wfd77kc.js +0 -2
- package/chunk-55kpabb3.js +0 -2
- package/chunk-5p2asrj6.js +0 -2
- package/chunk-65hg0v7e.js +0 -2
- package/chunk-67qw30cj.js +0 -3770
- package/chunk-6rehcf49.js +0 -12
- package/chunk-6vkz3wqz.js +0 -25
- package/chunk-81yk0kj2.js +0 -3
- package/chunk-885vf5kb.js +0 -2
- package/chunk-8wy08x0d.js +0 -2
- package/chunk-9cqa9trx.js +0 -4
- package/chunk-ae45qq4z.js +0 -2
- package/chunk-ag3em5yv.js +0 -4
- package/chunk-b5k5p49x.js +0 -2
- package/chunk-b84vbfjc.js +0 -2
- package/chunk-dkpgstr2.js +0 -18
- package/chunk-dzn4c87v.js +0 -3
- package/chunk-e5xsyr0n.js +0 -3
- package/chunk-f97ma522.js +0 -3
- package/chunk-f9yneea6.js +0 -3
- package/chunk-fk43jgwe.js +0 -31
- package/chunk-frjqjdkx.js +0 -11
- package/chunk-fycz7ap5.js +0 -2
- package/chunk-fzefs6kn.js +0 -3
- package/chunk-g1n8k4dg.js +0 -5
- package/chunk-g5mdw639.js +0 -3
- package/chunk-gnvx44kj.js +0 -10
- package/chunk-gpympx0t.js +0 -467
- package/chunk-gyp2jn7d.js +0 -3
- package/chunk-hambwbfz.js +0 -7
- package/chunk-j02kqpvq.js +0 -5
- package/chunk-j1h7pabk.js +0 -7
- package/chunk-j6hn9qz6.js +0 -3
- package/chunk-jfx4c32t.js +0 -8
- package/chunk-jjj8a18b.js +0 -59
- package/chunk-k3c32v59.js +0 -3
- package/chunk-k8j3fvx5.js +0 -2
- package/chunk-kcn3af9r.js +0 -12
- package/chunk-m45dpnd1.js +0 -16
- package/chunk-m4wf04dz.js +0 -15
- package/chunk-m8k6t63k.js +0 -2
- package/chunk-nrggp4x6.js +0 -2
- package/chunk-nt549hv5.js +0 -2
- package/chunk-pg4mtrdy.js +0 -3
- package/chunk-psr4rxnn.js +0 -20
- package/chunk-qhhv81gd.js +0 -2
- package/chunk-qprms4rt.js +0 -2
- package/chunk-r0pm6dap.js +0 -3
- package/chunk-rck0kx09.js +0 -2
- package/chunk-rsn8ad6s.js +0 -2
- package/chunk-skzh3q1s.js +0 -2
- package/chunk-sm4b3q49.js +0 -3
- package/chunk-ste3ek53.js +0 -3
- package/chunk-trw86cmb.js +0 -11
- package/chunk-tv7met41.js +0 -3
- package/chunk-w33aapmk.js +0 -39
- package/chunk-wkqrsfrb.js +0 -389
- package/chunk-wxngqzqs.js +0 -3
- package/chunk-xafx1p7z.js +0 -3
- package/chunk-xgfqmm46.js +0 -2
- package/chunk-xr77j4f8.js +0 -9
- package/chunk-ykstnss8.js +0 -3
- package/chunk-yqv7ej5r.js +0 -5
- package/chunk-z97bcdg2.js +0 -3
- package/chunk-z9s7pwv5.js +0 -7
- package/web/chunk-013et20n.js +0 -2
- package/web/chunk-013et20n.js.br +0 -0
- package/web/chunk-013et20n.js.gz +0 -0
- package/web/chunk-0ernj3c0.js +0 -1
- package/web/chunk-0ernj3c0.js.br +0 -0
- package/web/chunk-0ernj3c0.js.gz +0 -0
- package/web/chunk-0j65yg1p.js +0 -1
- package/web/chunk-0j65yg1p.js.br +0 -0
- package/web/chunk-0j65yg1p.js.gz +0 -0
- package/web/chunk-0khcpaa8.js +0 -1
- package/web/chunk-0khcpaa8.js.br +0 -0
- package/web/chunk-0khcpaa8.js.gz +0 -0
- package/web/chunk-0wbdd74r.js +0 -1
- package/web/chunk-0wbdd74r.js.br +0 -2
- package/web/chunk-0wbdd74r.js.gz +0 -0
- package/web/chunk-1f2wvhq9.js +0 -1
- package/web/chunk-1f2wvhq9.js.br +0 -0
- package/web/chunk-1f2wvhq9.js.gz +0 -0
- package/web/chunk-1q2kmv35.js +0 -332
- package/web/chunk-1q2kmv35.js.br +0 -0
- package/web/chunk-1q2kmv35.js.gz +0 -0
- package/web/chunk-1tfrm3pk.js +0 -2
- package/web/chunk-1tfrm3pk.js.br +0 -0
- package/web/chunk-1tfrm3pk.js.gz +0 -0
- package/web/chunk-2qt5fy5n.js +0 -1
- package/web/chunk-2qt5fy5n.js.br +0 -0
- package/web/chunk-2qt5fy5n.js.gz +0 -0
- package/web/chunk-2sxtb709.js +0 -1
- package/web/chunk-2sxtb709.js.br +0 -0
- package/web/chunk-2sxtb709.js.gz +0 -0
- package/web/chunk-2wrwm0qe.js +0 -1
- package/web/chunk-2wrwm0qe.js.br +0 -0
- package/web/chunk-2wrwm0qe.js.gz +0 -0
- package/web/chunk-2wwj27b9.js +0 -7
- package/web/chunk-2wwj27b9.js.br +0 -0
- package/web/chunk-2wwj27b9.js.gz +0 -0
- package/web/chunk-33mmrjdp.js +0 -1
- package/web/chunk-33mmrjdp.js.br +0 -2
- package/web/chunk-33mmrjdp.js.gz +0 -0
- package/web/chunk-33tb7q04.js +0 -2
- package/web/chunk-33tb7q04.js.br +0 -0
- package/web/chunk-33tb7q04.js.gz +0 -0
- package/web/chunk-3txb4sha.js +0 -1
- package/web/chunk-3txb4sha.js.br +0 -0
- package/web/chunk-3txb4sha.js.gz +0 -0
- package/web/chunk-3xgfsx7y.js +0 -2
- package/web/chunk-3xgfsx7y.js.br +0 -0
- package/web/chunk-3xgfsx7y.js.gz +0 -0
- package/web/chunk-40jka4r7.js +0 -2
- package/web/chunk-40jka4r7.js.br +0 -0
- package/web/chunk-40jka4r7.js.gz +0 -0
- package/web/chunk-41vh5n86.js +0 -1
- package/web/chunk-41vh5n86.js.br +0 -0
- package/web/chunk-41vh5n86.js.gz +0 -0
- package/web/chunk-5kz048x3.js +0 -2
- package/web/chunk-5kz048x3.js.br +0 -0
- package/web/chunk-5kz048x3.js.gz +0 -0
- package/web/chunk-5mbz8yj9.js +0 -3
- package/web/chunk-5mbz8yj9.js.br +0 -0
- package/web/chunk-5mbz8yj9.js.gz +0 -0
- package/web/chunk-6024wfxb.js +0 -30
- package/web/chunk-6024wfxb.js.br +0 -0
- package/web/chunk-6024wfxb.js.gz +0 -0
- package/web/chunk-6ey4c6gw.js +0 -2
- package/web/chunk-6ey4c6gw.js.br +0 -0
- package/web/chunk-6ey4c6gw.js.gz +0 -0
- package/web/chunk-6q3p851n.js +0 -1
- package/web/chunk-6q3p851n.js.br +0 -2
- package/web/chunk-6q3p851n.js.gz +0 -0
- package/web/chunk-74g3wh08.js +0 -2
- package/web/chunk-74g3wh08.js.br +0 -0
- package/web/chunk-74g3wh08.js.gz +0 -0
- package/web/chunk-78akzkgs.js +0 -84
- package/web/chunk-78akzkgs.js.br +0 -0
- package/web/chunk-78akzkgs.js.gz +0 -0
- package/web/chunk-7ck99bsp.js +0 -62
- package/web/chunk-7ck99bsp.js.br +0 -0
- package/web/chunk-7ck99bsp.js.gz +0 -0
- package/web/chunk-7fjbyns9.js +0 -1
- package/web/chunk-7fjbyns9.js.br +0 -0
- package/web/chunk-7fjbyns9.js.gz +0 -0
- package/web/chunk-7n6b2xra.js +0 -21
- package/web/chunk-7n6b2xra.js.br +0 -0
- package/web/chunk-7n6b2xra.js.gz +0 -0
- package/web/chunk-7p4mcqkd.js +0 -78
- package/web/chunk-7p4mcqkd.js.br +0 -0
- package/web/chunk-7p4mcqkd.js.gz +0 -0
- package/web/chunk-7ztwkhg5.js +0 -1
- package/web/chunk-7ztwkhg5.js.br +0 -0
- package/web/chunk-7ztwkhg5.js.gz +0 -0
- package/web/chunk-823etvc3.js +0 -99
- package/web/chunk-823etvc3.js.br +0 -0
- package/web/chunk-823etvc3.js.gz +0 -0
- package/web/chunk-8ec53vjd.js +0 -1
- package/web/chunk-8ec53vjd.js.br +0 -0
- package/web/chunk-8ec53vjd.js.gz +0 -0
- package/web/chunk-8g55ytgz.js +0 -1
- package/web/chunk-8g55ytgz.js.br +0 -0
- package/web/chunk-8g55ytgz.js.gz +0 -0
- package/web/chunk-8q76yd76.js +0 -291
- package/web/chunk-8q76yd76.js.br +0 -0
- package/web/chunk-8q76yd76.js.gz +0 -0
- package/web/chunk-9kbrjmtz.js +0 -1
- package/web/chunk-9kbrjmtz.js.br +0 -0
- package/web/chunk-9kbrjmtz.js.gz +0 -0
- package/web/chunk-9s4bh6qm.js +0 -40
- package/web/chunk-9s4bh6qm.js.br +0 -0
- package/web/chunk-9s4bh6qm.js.gz +0 -0
- package/web/chunk-a449xjq6.js +0 -7
- package/web/chunk-a449xjq6.js.br +0 -0
- package/web/chunk-a449xjq6.js.gz +0 -0
- package/web/chunk-b05eay33.js +0 -1
- package/web/chunk-b05eay33.js.br +0 -0
- package/web/chunk-b05eay33.js.gz +0 -0
- package/web/chunk-bdypt5mj.js +0 -142
- package/web/chunk-bdypt5mj.js.br +0 -0
- package/web/chunk-bdypt5mj.js.gz +0 -0
- package/web/chunk-ccy2q2z0.js +0 -2
- package/web/chunk-ccy2q2z0.js.br +0 -0
- package/web/chunk-ccy2q2z0.js.gz +0 -0
- package/web/chunk-ceg13tma.js +0 -2
- package/web/chunk-ceg13tma.js.br +0 -0
- package/web/chunk-ceg13tma.js.gz +0 -0
- package/web/chunk-ch60a61d.js +0 -2
- package/web/chunk-ch60a61d.js.br +0 -0
- package/web/chunk-ch60a61d.js.gz +0 -0
- package/web/chunk-czvdg0c5.js +0 -1
- package/web/chunk-czvdg0c5.js.br +0 -0
- package/web/chunk-czvdg0c5.js.gz +0 -0
- package/web/chunk-dsa5m3h6.js +0 -200
- package/web/chunk-dsa5m3h6.js.br +0 -0
- package/web/chunk-dsa5m3h6.js.gz +0 -0
- package/web/chunk-dww3grm3.js +0 -24
- package/web/chunk-dww3grm3.js.br +0 -0
- package/web/chunk-dww3grm3.js.gz +0 -0
- package/web/chunk-e187gt5x.js +0 -1
- package/web/chunk-e187gt5x.js.br +0 -0
- package/web/chunk-e187gt5x.js.gz +0 -0
- package/web/chunk-ey0zwvbx.js +0 -1
- package/web/chunk-ey0zwvbx.js.br +0 -0
- package/web/chunk-ey0zwvbx.js.gz +0 -0
- package/web/chunk-ey14knbn.js +0 -2
- package/web/chunk-ey14knbn.js.br +0 -0
- package/web/chunk-ey14knbn.js.gz +0 -0
- package/web/chunk-fba06jm8.js +0 -1132
- package/web/chunk-fba06jm8.js.br +0 -0
- package/web/chunk-fba06jm8.js.gz +0 -0
- package/web/chunk-fh56vgfx.js +0 -39
- package/web/chunk-fh56vgfx.js.br +0 -0
- package/web/chunk-fh56vgfx.js.gz +0 -0
- package/web/chunk-ft05x3my.js +0 -169
- package/web/chunk-ft05x3my.js.br +0 -0
- package/web/chunk-ft05x3my.js.gz +0 -0
- package/web/chunk-fzmrnh17.js +0 -303
- package/web/chunk-fzmrnh17.js.br +0 -0
- package/web/chunk-fzmrnh17.js.gz +0 -0
- package/web/chunk-gbt7asd7.js +0 -2
- package/web/chunk-gbt7asd7.js.br +0 -0
- package/web/chunk-gbt7asd7.js.gz +0 -0
- package/web/chunk-gh9fkn3t.js +0 -1
- package/web/chunk-gh9fkn3t.js.br +0 -2
- package/web/chunk-gh9fkn3t.js.gz +0 -0
- package/web/chunk-h1syyjqq.js +0 -2
- package/web/chunk-h1syyjqq.js.br +0 -0
- package/web/chunk-h1syyjqq.js.gz +0 -0
- package/web/chunk-h7byk4z3.js +0 -140
- package/web/chunk-h7byk4z3.js.br +0 -0
- package/web/chunk-h7byk4z3.js.gz +0 -0
- package/web/chunk-hby0hkv4.js +0 -1
- package/web/chunk-hby0hkv4.js.br +0 -0
- package/web/chunk-hby0hkv4.js.gz +0 -0
- package/web/chunk-hjvsp2yx.js +0 -1
- package/web/chunk-hjvsp2yx.js.br +0 -0
- package/web/chunk-hjvsp2yx.js.gz +0 -0
- package/web/chunk-hpjzy5ww.js +0 -1
- package/web/chunk-hpjzy5ww.js.br +0 -0
- package/web/chunk-hpjzy5ww.js.gz +0 -0
- package/web/chunk-hzfp8kqx.js +0 -217
- package/web/chunk-hzfp8kqx.js.br +0 -0
- package/web/chunk-hzfp8kqx.js.gz +0 -0
- package/web/chunk-j8f0m1dq.js +0 -1
- package/web/chunk-j8f0m1dq.js.br +0 -0
- package/web/chunk-j8f0m1dq.js.gz +0 -0
- package/web/chunk-jc178ad5.js +0 -2
- package/web/chunk-jc178ad5.js.br +0 -0
- package/web/chunk-jc178ad5.js.gz +0 -0
- package/web/chunk-jcsf0ke5.js +0 -41
- package/web/chunk-jcsf0ke5.js.br +0 -0
- package/web/chunk-jcsf0ke5.js.gz +0 -0
- package/web/chunk-jg43a2xk.js +0 -139
- package/web/chunk-jg43a2xk.js.br +0 -0
- package/web/chunk-jg43a2xk.js.gz +0 -0
- package/web/chunk-jrgdxqtq.js +0 -7
- package/web/chunk-jrgdxqtq.js.br +0 -0
- package/web/chunk-jrgdxqtq.js.gz +0 -0
- package/web/chunk-js8dvtfg.js +0 -2
- package/web/chunk-js8dvtfg.js.br +0 -0
- package/web/chunk-js8dvtfg.js.gz +0 -0
- package/web/chunk-jt0s9qs7.js +0 -1
- package/web/chunk-jt0s9qs7.js.br +0 -0
- package/web/chunk-jt0s9qs7.js.gz +0 -0
- package/web/chunk-jv5faf88.js +0 -34
- package/web/chunk-jv5faf88.js.br +0 -0
- package/web/chunk-jv5faf88.js.gz +0 -0
- package/web/chunk-k295x81w.js +0 -370
- package/web/chunk-k295x81w.js.br +0 -0
- package/web/chunk-k295x81w.js.gz +0 -0
- package/web/chunk-k6wxwgp1.js +0 -55
- package/web/chunk-k6wxwgp1.js.br +0 -0
- package/web/chunk-k6wxwgp1.js.gz +0 -0
- package/web/chunk-k9vc7kp2.js +0 -292
- package/web/chunk-k9vc7kp2.js.br +0 -0
- package/web/chunk-k9vc7kp2.js.gz +0 -0
- package/web/chunk-kxyws7q7.js +0 -1
- package/web/chunk-kxyws7q7.js.br +0 -0
- package/web/chunk-kxyws7q7.js.gz +0 -0
- package/web/chunk-mcgf645h.js +0 -1
- package/web/chunk-mcgf645h.js.br +0 -4
- package/web/chunk-mcgf645h.js.gz +0 -0
- package/web/chunk-mj3tshy8.js +0 -214
- package/web/chunk-mj3tshy8.js.br +0 -0
- package/web/chunk-mj3tshy8.js.gz +0 -0
- package/web/chunk-mnb2wdvy.js +0 -24
- package/web/chunk-mnb2wdvy.js.br +0 -0
- package/web/chunk-mnb2wdvy.js.gz +0 -0
- package/web/chunk-ndf58dgc.js +0 -1
- package/web/chunk-ndf58dgc.js.br +0 -0
- package/web/chunk-ndf58dgc.js.gz +0 -0
- package/web/chunk-nhpm5nd5.js +0 -2
- package/web/chunk-nhpm5nd5.js.br +0 -0
- package/web/chunk-nhpm5nd5.js.gz +0 -0
- package/web/chunk-nwxjdetb.js +0 -1
- package/web/chunk-nwxjdetb.js.br +0 -0
- package/web/chunk-nwxjdetb.js.gz +0 -0
- package/web/chunk-nyjfcard.js +0 -106
- package/web/chunk-nyjfcard.js.br +0 -0
- package/web/chunk-nyjfcard.js.gz +0 -0
- package/web/chunk-pcfjcy3a.js +0 -324
- package/web/chunk-pcfjcy3a.js.br +0 -0
- package/web/chunk-pcfjcy3a.js.gz +0 -0
- package/web/chunk-pry6wdbe.js +0 -1
- package/web/chunk-pry6wdbe.js.br +0 -0
- package/web/chunk-pry6wdbe.js.gz +0 -0
- package/web/chunk-pvahdcgy.js +0 -2
- package/web/chunk-pvahdcgy.js.br +0 -0
- package/web/chunk-pvahdcgy.js.gz +0 -0
- package/web/chunk-q3njnnef.js +0 -16
- package/web/chunk-q3njnnef.js.br +0 -0
- package/web/chunk-q3njnnef.js.gz +0 -0
- package/web/chunk-rbmp2e4b.js +0 -1
- package/web/chunk-rbmp2e4b.js.br +0 -0
- package/web/chunk-rbmp2e4b.js.gz +0 -0
- package/web/chunk-rcre1stj.js +0 -1
- package/web/chunk-rcre1stj.js.br +0 -0
- package/web/chunk-rcre1stj.js.gz +0 -0
- package/web/chunk-rdb6091n.js +0 -89
- package/web/chunk-rdb6091n.js.br +0 -0
- package/web/chunk-rdb6091n.js.gz +0 -0
- package/web/chunk-ryw7xnab.js +0 -1
- package/web/chunk-ryw7xnab.js.br +0 -0
- package/web/chunk-ryw7xnab.js.gz +0 -0
- package/web/chunk-sbbmy02e.js +0 -2
- package/web/chunk-sbbmy02e.js.br +0 -0
- package/web/chunk-sbbmy02e.js.gz +0 -0
- package/web/chunk-sydy10mb.js +0 -1
- package/web/chunk-sydy10mb.js.br +0 -0
- package/web/chunk-sydy10mb.js.gz +0 -0
- package/web/chunk-t0ywnp5e.js +0 -1
- package/web/chunk-t0ywnp5e.js.br +0 -0
- package/web/chunk-t0ywnp5e.js.gz +0 -0
- package/web/chunk-t72jq97z.js +0 -2
- package/web/chunk-t72jq97z.js.br +0 -0
- package/web/chunk-t72jq97z.js.gz +0 -0
- package/web/chunk-tfcc9bcz.js +0 -4
- package/web/chunk-tfcc9bcz.js.br +0 -0
- package/web/chunk-tfcc9bcz.js.gz +0 -0
- package/web/chunk-v2bvbgfc.js +0 -2
- package/web/chunk-v2bvbgfc.js.br +0 -0
- package/web/chunk-v2bvbgfc.js.gz +0 -0
- package/web/chunk-v7zq4vc9.js +0 -12
- package/web/chunk-v7zq4vc9.js.br +0 -0
- package/web/chunk-v7zq4vc9.js.gz +0 -0
- package/web/chunk-vh8pkcem.css +0 -1
- package/web/chunk-vh8pkcem.css.br +0 -0
- package/web/chunk-vh8pkcem.css.gz +0 -0
- package/web/chunk-vq3sby7x.js +0 -1
- package/web/chunk-vq3sby7x.js.br +0 -0
- package/web/chunk-vq3sby7x.js.gz +0 -0
- package/web/chunk-was9xf03.js +0 -8
- package/web/chunk-was9xf03.js.br +0 -0
- package/web/chunk-was9xf03.js.gz +0 -0
- package/web/chunk-we1v1829.js +0 -2
- package/web/chunk-we1v1829.js.br +0 -0
- package/web/chunk-we1v1829.js.gz +0 -0
- package/web/chunk-wg2exnxe.js +0 -1
- package/web/chunk-wg2exnxe.js.br +0 -2
- package/web/chunk-wg2exnxe.js.gz +0 -0
- package/web/chunk-wvd3zj1m.js +0 -70
- package/web/chunk-wvd3zj1m.js.br +0 -0
- package/web/chunk-wvd3zj1m.js.gz +0 -0
- package/web/chunk-wzmxtr30.js +0 -1
- package/web/chunk-wzmxtr30.js.br +0 -0
- package/web/chunk-wzmxtr30.js.gz +0 -0
- package/web/chunk-x815g7yp.js +0 -1
- package/web/chunk-x815g7yp.js.br +0 -0
- package/web/chunk-x815g7yp.js.gz +0 -0
- package/web/chunk-x8ps0p82.js +0 -98
- package/web/chunk-x8ps0p82.js.br +0 -0
- package/web/chunk-x8ps0p82.js.gz +0 -0
- package/web/chunk-xea3snym.js +0 -1
- package/web/chunk-xea3snym.js.br +0 -0
- package/web/chunk-xea3snym.js.gz +0 -0
- package/web/chunk-xg4v60m7.js +0 -1
- package/web/chunk-xg4v60m7.js.br +0 -0
- package/web/chunk-xg4v60m7.js.gz +0 -0
- package/web/chunk-xhr9jrjt.js +0 -89
- package/web/chunk-xhr9jrjt.js.br +0 -0
- package/web/chunk-xhr9jrjt.js.gz +0 -0
- package/web/chunk-xp90g2e7.js +0 -36
- package/web/chunk-xp90g2e7.js.br +0 -0
- package/web/chunk-xp90g2e7.js.gz +0 -0
- package/web/chunk-xs1g97qa.js +0 -2
- package/web/chunk-xs1g97qa.js.br +0 -0
- package/web/chunk-xs1g97qa.js.gz +0 -0
- package/web/chunk-xyk1wpr4.js +0 -1
- package/web/chunk-xyk1wpr4.js.br +0 -3
- package/web/chunk-xyk1wpr4.js.gz +0 -0
- package/web/chunk-yavbdwyt.js +0 -1
- package/web/chunk-yavbdwyt.js.br +0 -0
- package/web/chunk-yavbdwyt.js.gz +0 -0
- package/web/chunk-yfnhnsxe.js +0 -4
- package/web/chunk-yfnhnsxe.js.br +0 -0
- package/web/chunk-yfnhnsxe.js.gz +0 -0
- package/web/chunk-yk965yth.js +0 -1
- package/web/chunk-yk965yth.js.br +0 -0
- package/web/chunk-yk965yth.js.gz +0 -0
- package/web/chunk-ynhcjhsx.js +0 -2
- package/web/chunk-ynhcjhsx.js.br +0 -0
- package/web/chunk-ynhcjhsx.js.gz +0 -0
- package/web/chunk-ypmm1gts.js +0 -1
- package/web/chunk-ypmm1gts.js.br +0 -0
- package/web/chunk-ypmm1gts.js.gz +0 -0
- package/web/chunk-yssx5a5q.js +0 -1
- package/web/chunk-yssx5a5q.js.br +0 -0
- package/web/chunk-yssx5a5q.js.gz +0 -0
- package/web/chunk-z0a8cnq8.js +0 -1
- package/web/chunk-z0a8cnq8.js.br +0 -0
- package/web/chunk-z0a8cnq8.js.gz +0 -0
- package/web/chunk-z1afsvbv.js +0 -2
- package/web/chunk-z1afsvbv.js.br +0 -0
- package/web/chunk-z1afsvbv.js.gz +0 -0
- package/web/chunk-z1ka8jtd.js +0 -2
- package/web/chunk-z1ka8jtd.js.br +0 -0
- package/web/chunk-z1ka8jtd.js.gz +0 -0
- package/web/chunk-z7tdzen9.js +0 -1
- package/web/chunk-z7tdzen9.js.br +0 -0
- package/web/chunk-z7tdzen9.js.gz +0 -0
- package/web/chunk-zbwjj06m.js +0 -38
- package/web/chunk-zbwjj06m.js.br +0 -0
- package/web/chunk-zbwjj06m.js.gz +0 -0
- package/web/chunk-zd2j189j.js +0 -1
- package/web/chunk-zd2j189j.js.br +0 -0
- package/web/chunk-zd2j189j.js.gz +0 -0
- package/web/chunk-zfgpq4n4.js +0 -120
- package/web/chunk-zfgpq4n4.js.br +0 -0
- package/web/chunk-zfgpq4n4.js.gz +0 -0
- package/web/chunk-zgas56xw.js +0 -1
- package/web/chunk-zgas56xw.js.br +0 -0
- package/web/chunk-zgas56xw.js.gz +0 -0
- package/web/chunk-zkfepf91.js +0 -1
- package/web/chunk-zkfepf91.js.br +0 -0
- package/web/chunk-zkfepf91.js.gz +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import{re}from"./chunk-svxkg8n3.js";import{t,a,B,S,U,ln,A,R,I,L,D,P,N,u,f,Q,Fs,Mr,qt,X,vt,rt}from"./chunk-77pcpdb5.js";import{me}from"./chunk-22ncha3b.js";import{on,Oa}from"./chunk-kdbrrecz.js";import{Ye,Ze}from"./chunk-jtwct1bx.js";var ct=Ze(function(et,at){(function(i,s){if(typeof et==="object"&&typeof at==="object")at.exports=s(Oa());else if(typeof define==="function"&&define.amd)define(["cose-base"],s);else if(typeof et==="object")et.cytoscapeFcose=s(Oa());else i.cytoscapeFcose=s(i.coseBase)})(et,function(e){return(()=>{var i={658:(T)=>{T.exports=Object.assign!=null?Object.assign.bind(Object):function(O){for(var p=arguments.length,x=Array(p>1?p-1:0),l=1;l<p;l++)x[l-1]=arguments[l];return x.forEach(function(y){Object.keys(y).forEach(function(c){return O[c]=y[c]})}),O}},548:(T,O,p)=>{var x=function(){function c(d,g){var h=[],r=!0,G=!1,k=void 0;try{for(var o=d[Symbol.iterator](),v;!(r=(v=o.next()).done);r=!0)if(h.push(v.value),g&&h.length===g)break}catch(C){G=!0,k=C}finally{try{if(!r&&o.return)o.return()}finally{if(G)throw k}}return h}return function(d,g){if(Array.isArray(d))return d;else if(Symbol.iterator in Object(d))return c(d,g);else throw TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=p(140).layoutBase.LinkedList,y={};y.getTopMostNodes=function(c){var d={};for(var g=0;g<c.length;g++)d[c[g].id()]=!0;var h=c.filter(function(r,G){if(typeof r==="number")r=G;var k=r.parent()[0];while(k!=null){if(d[k.id()])return!1;k=k.parent()[0]}return!0});return h},y.connectComponents=function(c,d,g,h){var r=new l,G=new Set,k=[],o=void 0,v=void 0,C=void 0,n=!1,M=1,Y=[],b=[],H=function(){var w=c.collection();b.push(w);var _=g[0],q=c.collection();q.merge(_).merge(_.descendants().intersection(d)),k.push(_),q.forEach(function(ee){r.push(ee),G.add(ee),w.merge(ee)});var W=function(){_=r.shift();var fe=c.collection();_.neighborhood().nodes().forEach(function(V){if(d.intersection(_.edgesWith(V)).length>0)fe.merge(V)});for(var Ae=0;Ae<fe.length;Ae++){var Re=fe[Ae];if(o=g.intersection(Re.union(Re.ancestors())),o!=null&&!G.has(o[0])){var ce=o.union(o.descendants());ce.forEach(function(V){if(r.push(V),G.add(V),w.merge(V),g.has(V))k.push(V)})}}};while(r.length!=0)W();if(w.forEach(function(ee){d.intersection(ee.connectedEdges()).forEach(function(fe){if(w.has(fe.source())&&w.has(fe.target()))w.merge(fe)})}),k.length==g.length)n=!0;if(!n||n&&M>1){v=k[0],C=v.connectedEdges().length,k.forEach(function(ee){if(ee.connectedEdges().length<C)C=ee.connectedEdges().length,v=ee}),Y.push(v.id());var oe=c.collection();oe.merge(k[0]),k.forEach(function(ee){oe.merge(ee)}),k=[],g=g.difference(oe),M++}};do H();while(!n);if(h){if(Y.length>0)h.set("dummy"+(h.size+1),Y)}return b},y.relocateComponent=function(c,d,g){if(!g.fixedNodeConstraint){var{POSITIVE_INFINITY:h,NEGATIVE_INFINITY:r,POSITIVE_INFINITY:G,NEGATIVE_INFINITY:k}=Number;if(g.quality=="draft"){var o=!0,v=!1,C=void 0;try{for(var n=d.nodeIndexes[Symbol.iterator](),M;!(o=(M=n.next()).done);o=!0){var Y=M.value,b=x(Y,2),H=b[0],z=b[1],w=g.cy.getElementById(H);if(w){var _=w.boundingBox(),q=d.xCoords[z]-_.w/2,W=d.xCoords[z]+_.w/2,oe=d.yCoords[z]-_.h/2,ee=d.yCoords[z]+_.h/2;if(q<h)h=q;if(W>r)r=W;if(oe<G)G=oe;if(ee>k)k=ee}}}catch(V){v=!0,C=V}finally{try{if(!o&&n.return)n.return()}finally{if(v)throw C}}var fe=c.x-(r+h)/2,Ae=c.y-(k+G)/2;d.xCoords=d.xCoords.map(function(V){return V+fe}),d.yCoords=d.yCoords.map(function(V){return V+Ae})}else{Object.keys(d).forEach(function(V){var ae=d[V],Ie=ae.getRect().x,be=ae.getRect().x+ae.getRect().width,Ne=ae.getRect().y,xe=ae.getRect().y+ae.getRect().height;if(Ie<h)h=Ie;if(be>r)r=be;if(Ne<G)G=Ne;if(xe>k)k=xe});var Re=c.x-(r+h)/2,ce=c.y-(k+G)/2;Object.keys(d).forEach(function(V){var ae=d[V];ae.setCenter(ae.getCenterX()+Re,ae.getCenterY()+ce)})}}},y.calcBoundingBox=function(c,d,g,h){var{MAX_SAFE_INTEGER:r,MIN_SAFE_INTEGER:G,MAX_SAFE_INTEGER:k,MIN_SAFE_INTEGER:o}=Number,v=void 0,C=void 0,n=void 0,M=void 0,Y=c.descendants().not(":parent"),b=Y.length;for(var H=0;H<b;H++){var z=Y[H];if(v=d[h.get(z.id())]-z.width()/2,C=d[h.get(z.id())]+z.width()/2,n=g[h.get(z.id())]-z.height()/2,M=g[h.get(z.id())]+z.height()/2,r>v)r=v;if(G<C)G=C;if(k>n)k=n;if(o<M)o=M}var w={};return w.topLeftX=r,w.topLeftY=k,w.width=G-r,w.height=o-k,w},y.calcParentsWithoutChildren=function(c,d){var g=c.collection();return d.nodes(":parent").forEach(function(h){var r=!1;if(h.children().forEach(function(G){if(G.css("display")!="none")r=!0}),!r)g.merge(h)}),g},T.exports=y},816:(T,O,p)=>{var x=p(548),l=p(140).CoSELayout,y=p(140).CoSENode,c=p(140).layoutBase.PointD,d=p(140).layoutBase.DimensionD,g=p(140).layoutBase.LayoutConstants,h=p(140).layoutBase.FDLayoutConstants,r=p(140).CoSEConstants,G=function(o,v){var{cy:C,eles:n}=o,M=n.nodes(),Y=n.edges(),b=void 0,H=void 0,z=void 0,w={};if(o.randomize)b=v.nodeIndexes,H=v.xCoords,z=v.yCoords;var _=function(V){return typeof V==="function"},q=function(V,ae){if(_(V))return V(ae);else return V},W=x.calcParentsWithoutChildren(C,n),oe=function ce(V,ae,Ie,be){var Ne=ae.length;for(var xe=0;xe<Ne;xe++){var j=ae[xe],Te=null;if(j.intersection(W).length==0)Te=j.children();var te=void 0,he=j.layoutDimensions({nodeDimensionsIncludeLabels:be.nodeDimensionsIncludeLabels});if(j.outerWidth()!=null&&j.outerHeight()!=null)if(be.randomize)if(!j.isParent())te=V.add(new y(Ie.graphManager,new c(H[b.get(j.id())]-he.w/2,z[b.get(j.id())]-he.h/2),new d(parseFloat(he.w),parseFloat(he.h))));else{var ke=x.calcBoundingBox(j,H,z,b);if(j.intersection(W).length==0)te=V.add(new y(Ie.graphManager,new c(ke.topLeftX,ke.topLeftY),new d(ke.width,ke.height)));else te=V.add(new y(Ie.graphManager,new c(ke.topLeftX,ke.topLeftY),new d(parseFloat(he.w),parseFloat(he.h))))}else te=V.add(new y(Ie.graphManager,new c(j.position("x")-he.w/2,j.position("y")-he.h/2),new d(parseFloat(he.w),parseFloat(he.h))));else te=V.add(new y(this.graphManager));if(te.id=j.data("id"),te.nodeRepulsion=q(be.nodeRepulsion,j),te.paddingLeft=parseInt(j.css("padding")),te.paddingTop=parseInt(j.css("padding")),te.paddingRight=parseInt(j.css("padding")),te.paddingBottom=parseInt(j.css("padding")),be.nodeDimensionsIncludeLabels)te.labelWidth=j.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,te.labelHeight=j.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,te.labelPosVertical=j.css("text-valign"),te.labelPosHorizontal=j.css("text-halign");if(w[j.data("id")]=te,isNaN(te.rect.x))te.rect.x=0;if(isNaN(te.rect.y))te.rect.y=0;if(Te!=null&&Te.length>0){var $e=void 0;$e=Ie.getGraphManager().add(Ie.newGraph(),te),ce($e,Te,Ie,be)}}},ee=function(V,ae,Ie){var be=0,Ne=0;for(var xe=0;xe<Ie.length;xe++){var j=Ie[xe],Te=w[j.data("source")],te=w[j.data("target")];if(Te&&te&&Te!==te&&Te.getEdgesBetween(te).length==0){var he=ae.add(V.newEdge(),Te,te);he.id=j.id(),he.idealLength=q(o.idealEdgeLength,j),he.edgeElasticity=q(o.edgeElasticity,j),be+=he.idealLength,Ne++}}if(o.idealEdgeLength!=null){if(Ne>0)r.DEFAULT_EDGE_LENGTH=h.DEFAULT_EDGE_LENGTH=be/Ne;else if(!_(o.idealEdgeLength))r.DEFAULT_EDGE_LENGTH=h.DEFAULT_EDGE_LENGTH=o.idealEdgeLength;else r.DEFAULT_EDGE_LENGTH=h.DEFAULT_EDGE_LENGTH=50;r.MIN_REPULSION_DIST=h.MIN_REPULSION_DIST=h.DEFAULT_EDGE_LENGTH/10,r.DEFAULT_RADIAL_SEPARATION=h.DEFAULT_EDGE_LENGTH}},fe=function(V,ae){if(ae.fixedNodeConstraint)V.constraints.fixedNodeConstraint=ae.fixedNodeConstraint;if(ae.alignmentConstraint)V.constraints.alignmentConstraint=ae.alignmentConstraint;if(ae.relativePlacementConstraint)V.constraints.relativePlacementConstraint=ae.relativePlacementConstraint};if(o.nestingFactor!=null)r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=o.nestingFactor;if(o.gravity!=null)r.DEFAULT_GRAVITY_STRENGTH=h.DEFAULT_GRAVITY_STRENGTH=o.gravity;if(o.numIter!=null)r.MAX_ITERATIONS=h.MAX_ITERATIONS=o.numIter;if(o.gravityRange!=null)r.DEFAULT_GRAVITY_RANGE_FACTOR=h.DEFAULT_GRAVITY_RANGE_FACTOR=o.gravityRange;if(o.gravityCompound!=null)r.DEFAULT_COMPOUND_GRAVITY_STRENGTH=h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=o.gravityCompound;if(o.gravityRangeCompound!=null)r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=o.gravityRangeCompound;if(o.initialEnergyOnIncremental!=null)r.DEFAULT_COOLING_FACTOR_INCREMENTAL=h.DEFAULT_COOLING_FACTOR_INCREMENTAL=o.initialEnergyOnIncremental;if(o.tilingCompareBy!=null)r.TILING_COMPARE_BY=o.tilingCompareBy;if(o.quality=="proof")g.QUALITY=2;else g.QUALITY=0;if(r.NODE_DIMENSIONS_INCLUDE_LABELS=h.NODE_DIMENSIONS_INCLUDE_LABELS=g.NODE_DIMENSIONS_INCLUDE_LABELS=o.nodeDimensionsIncludeLabels,r.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=g.DEFAULT_INCREMENTAL=!o.randomize,r.ANIMATE=h.ANIMATE=g.ANIMATE=o.animate,r.TILE=o.tile,r.TILING_PADDING_VERTICAL=typeof o.tilingPaddingVertical==="function"?o.tilingPaddingVertical.call():o.tilingPaddingVertical,r.TILING_PADDING_HORIZONTAL=typeof o.tilingPaddingHorizontal==="function"?o.tilingPaddingHorizontal.call():o.tilingPaddingHorizontal,r.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=g.DEFAULT_INCREMENTAL=!0,r.PURE_INCREMENTAL=!o.randomize,g.DEFAULT_UNIFORM_LEAF_NODE_SIZES=o.uniformNodeDimensions,o.step=="transformed")r.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,r.ENFORCE_CONSTRAINTS=!1,r.APPLY_LAYOUT=!1;if(o.step=="enforced")r.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,r.ENFORCE_CONSTRAINTS=!0,r.APPLY_LAYOUT=!1;if(o.step=="cose")r.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,r.ENFORCE_CONSTRAINTS=!1,r.APPLY_LAYOUT=!0;if(o.step=="all"){if(o.randomize)r.TRANSFORM_ON_CONSTRAINT_HANDLING=!0;else r.TRANSFORM_ON_CONSTRAINT_HANDLING=!1;r.ENFORCE_CONSTRAINTS=!0,r.APPLY_LAYOUT=!0}if(o.fixedNodeConstraint||o.alignmentConstraint||o.relativePlacementConstraint)r.TREE_REDUCTION_ON_INCREMENTAL=!1;else r.TREE_REDUCTION_ON_INCREMENTAL=!0;var Ae=new l,Re=Ae.newGraphManager();return oe(Re.addRoot(),x.getTopMostNodes(M),Ae,o),ee(Ae,Re,Y),fe(Ae,o),Ae.runLayout(),w};T.exports={coseLayout:G}},212:(T,O,p)=>{var x=function(){function o(v,C){for(var n=0;n<C.length;n++){var M=C[n];if(M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M)M.writable=!0;Object.defineProperty(v,M.key,M)}}return function(v,C,n){if(C)o(v.prototype,C);if(n)o(v,n);return v}}();function l(o,v){if(!(o instanceof v))throw TypeError("Cannot call a class as a function")}var y=p(658),c=p(548),d=p(657),g=d.spectralLayout,h=p(816),r=h.coseLayout,G=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1000,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:0.0000001,nodeRepulsion:function(v){return 4500},idealEdgeLength:function(v){return 50},edgeElasticity:function(v){return 0.45},nestingFactor:0.1,gravity:0.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:0.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:function(){},stop:function(){}}),k=function(){function o(v){l(this,o),this.options=y({},G,v)}return x(o,[{key:"run",value:function(){var C=this,n=this.options,{cy:M,eles:Y}=n,b=[],H=void 0,z=void 0,w=[],_=void 0,q=[];if(n.fixedNodeConstraint&&(!Array.isArray(n.fixedNodeConstraint)||n.fixedNodeConstraint.length==0))n.fixedNodeConstraint=void 0;if(n.alignmentConstraint){if(n.alignmentConstraint.vertical&&(!Array.isArray(n.alignmentConstraint.vertical)||n.alignmentConstraint.vertical.length==0))n.alignmentConstraint.vertical=void 0;if(n.alignmentConstraint.horizontal&&(!Array.isArray(n.alignmentConstraint.horizontal)||n.alignmentConstraint.horizontal.length==0))n.alignmentConstraint.horizontal=void 0}if(n.relativePlacementConstraint&&(!Array.isArray(n.relativePlacementConstraint)||n.relativePlacementConstraint.length==0))n.relativePlacementConstraint=void 0;var W=n.fixedNodeConstraint||n.alignmentConstraint||n.relativePlacementConstraint;if(W)n.tile=!1,n.packComponents=!1;var oe=void 0,ee=!1;if(M.layoutUtilities&&n.packComponents){if(oe=M.layoutUtilities("get"),!oe)oe=M.layoutUtilities();ee=!0}if(Y.nodes().length>0)if(!ee){var fe=n.eles.boundingBox();if(q.push({x:fe.x1+fe.w/2,y:fe.y1+fe.h/2}),n.randomize){var Ae=g(n);b.push(Ae)}if(n.quality=="default"||n.quality=="proof")w.push(r(n,b[0])),c.relocateComponent(q[0],w[0],n);else c.relocateComponent(q[0],b[0],n)}else{var Re=c.getTopMostNodes(n.eles.nodes());if(_=c.connectComponents(M,n.eles,Re),_.forEach(function(J){var F=J.boundingBox();q.push({x:F.x1+F.w/2,y:F.y1+F.h/2})}),n.randomize)_.forEach(function(J){n.eles=J,b.push(g(n))});if(n.quality=="default"||n.quality=="proof"){var ce=M.collection();if(n.tile){var V=new Map,ae=[],Ie=[],be=0,Ne={nodeIndexes:V,xCoords:ae,yCoords:Ie},xe=[];if(_.forEach(function(J,F){if(J.edges().length==0)J.nodes().forEach(function(ve,se){if(ce.merge(J.nodes()[se]),!ve.isParent())Ne.nodeIndexes.set(J.nodes()[se].id(),be++),Ne.xCoords.push(J.nodes()[0].position().x),Ne.yCoords.push(J.nodes()[0].position().y)}),xe.push(F)}),ce.length>1){var j=ce.boundingBox();q.push({x:j.x1+j.w/2,y:j.y1+j.h/2}),_.push(ce),b.push(Ne);for(var Te=xe.length-1;Te>=0;Te--)_.splice(xe[Te],1),b.splice(xe[Te],1),q.splice(xe[Te],1)}}_.forEach(function(J,F){n.eles=J,w.push(r(n,b[F])),c.relocateComponent(q[F],w[F],n)})}else _.forEach(function(J,F){c.relocateComponent(q[F],b[F],n)});var te=new Set;if(_.length>1){var he=[],ke=Y.filter(function(J){return J.css("display")=="none"});_.forEach(function(J,F){var ve=void 0;if(n.quality=="draft")ve=b[F].nodeIndexes;if(J.nodes().not(ke).length>0){var se={};se.edges=[],se.nodes=[];var pe=void 0;if(J.nodes().not(ke).forEach(function(de){if(n.quality=="draft")if(!de.isParent())pe=ve.get(de.id()),se.nodes.push({x:b[F].xCoords[pe]-de.boundingbox().w/2,y:b[F].yCoords[pe]-de.boundingbox().h/2,width:de.boundingbox().w,height:de.boundingbox().h});else{var ge=c.calcBoundingBox(de,b[F].xCoords,b[F].yCoords,ve);se.nodes.push({x:ge.topLeftX,y:ge.topLeftY,width:ge.width,height:ge.height})}else if(w[F][de.id()])se.nodes.push({x:w[F][de.id()].getLeft(),y:w[F][de.id()].getTop(),width:w[F][de.id()].getWidth(),height:w[F][de.id()].getHeight()})}),J.edges().forEach(function(de){var ge=de.source(),Ee=de.target();if(ge.css("display")!="none"&&Ee.css("display")!="none"){if(n.quality=="draft"){var Pe=ve.get(ge.id()),Qe=ve.get(Ee.id()),Me=[],Ge=[];if(ge.isParent()){var Xe=c.calcBoundingBox(ge,b[F].xCoords,b[F].yCoords,ve);Me.push(Xe.topLeftX+Xe.width/2),Me.push(Xe.topLeftY+Xe.height/2)}else Me.push(b[F].xCoords[Pe]),Me.push(b[F].yCoords[Pe]);if(Ee.isParent()){var je=c.calcBoundingBox(Ee,b[F].xCoords,b[F].yCoords,ve);Ge.push(je.topLeftX+je.width/2),Ge.push(je.topLeftY+je.height/2)}else Ge.push(b[F].xCoords[Qe]),Ge.push(b[F].yCoords[Qe]);se.edges.push({startX:Me[0],startY:Me[1],endX:Ge[0],endY:Ge[1]})}else if(w[F][ge.id()]&&w[F][Ee.id()])se.edges.push({startX:w[F][ge.id()].getCenterX(),startY:w[F][ge.id()].getCenterY(),endX:w[F][Ee.id()].getCenterX(),endY:w[F][Ee.id()].getCenterY()})}}),se.nodes.length>0)he.push(se),te.add(F)}});var $e=oe.packComponents(he,n.randomize).shifts;if(n.quality=="draft")b.forEach(function(J,F){var ve=J.xCoords.map(function(pe){return pe+$e[F].dx}),se=J.yCoords.map(function(pe){return pe+$e[F].dy});J.xCoords=ve,J.yCoords=se});else{var Je=0;te.forEach(function(J){Object.keys(w[J]).forEach(function(F){var ve=w[J][F];ve.setCenter(ve.getCenterX()+$e[Je].dx,ve.getCenterY()+$e[Je].dy)}),Je++})}}}var He=function(F,ve){if(n.quality=="default"||n.quality=="proof"){if(typeof F==="number")F=ve;var se=void 0,pe=void 0,de=F.data("id");if(w.forEach(function(Ee){if(de in Ee)se={x:Ee[de].getRect().getCenterX(),y:Ee[de].getRect().getCenterY()},pe=Ee[de]}),n.nodeDimensionsIncludeLabels){if(pe.labelWidth){if(pe.labelPosHorizontal=="left")se.x+=pe.labelWidth/2;else if(pe.labelPosHorizontal=="right")se.x-=pe.labelWidth/2}if(pe.labelHeight){if(pe.labelPosVertical=="top")se.y+=pe.labelHeight/2;else if(pe.labelPosVertical=="bottom")se.y-=pe.labelHeight/2}}if(se==null)se={x:F.position("x"),y:F.position("y")};return{x:se.x,y:se.y}}else{var ge=void 0;if(b.forEach(function(Ee){var Pe=Ee.nodeIndexes.get(F.id());if(Pe!=null)ge={x:Ee.xCoords[Pe],y:Ee.yCoords[Pe]}}),ge==null)ge={x:F.position("x"),y:F.position("y")};return{x:ge.x,y:ge.y}}};if(n.quality=="default"||n.quality=="proof"||n.randomize){var it=c.calcParentsWithoutChildren(M,Y),Ve=Y.filter(function(J){return J.css("display")=="none"});if(n.eles=Y.not(Ve),Y.nodes().not(":parent").not(Ve).layoutPositions(C,n,He),it.length>0)it.forEach(function(J){J.position(He(J))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),o}();T.exports=k},657:(T,O,p)=>{var x=p(548),l=p(140).layoutBase.Matrix,y=p(140).layoutBase.SVD,c=function(g){var{cy:h,eles:r}=g,G=r.nodes(),k=r.nodes(":parent"),o=new Map,v=new Map,C=new Map,n=[],M=[],Y=[],b=[],H=[],z=[],w=[],_=[],q=void 0,W=void 0,oe=1e8,ee=0.000000001,{piTol:fe,samplingType:Ae,nodeSeparation:Re}=g,ce=void 0,V=function(){var Z=0,K=0,ie=!1;while(K<ce){Z=Math.floor(Math.random()*W),ie=!1;for(var ne=0;ne<K;ne++)if(b[ne]==Z){ie=!0;break}if(!ie)b[K]=Z,K++;else continue}},ae=function(Z,K,ie){var ne=[],we=0,ue=0,le=0,Le=void 0,Ce=[],De=0,Oe=1;for(var ze=0;ze<W;ze++)Ce[ze]=oe;ne[ue]=Z,Ce[Z]=0;while(ue>=we){le=ne[we++];var Ue=n[le];for(var Be=0;Be<Ue.length;Be++)if(Le=v.get(Ue[Be]),Ce[Le]==oe)Ce[Le]=Ce[le]+1,ne[++ue]=Le;z[le][K]=Ce[le]*Re}if(ie){for(var Fe=0;Fe<W;Fe++)if(z[Fe][K]<H[Fe])H[Fe]=z[Fe][K];for(var Ke=0;Ke<W;Ke++)if(H[Ke]>De)De=H[Ke],Oe=Ke}return Oe},Ie=function(Z){var K=void 0;if(!Z){V();for(var ie=0;ie<ce;ie++)ae(b[ie],ie,Z,!1)}else{K=Math.floor(Math.random()*W),q=K;for(var ne=0;ne<W;ne++)H[ne]=oe;for(var we=0;we<ce;we++)b[we]=K,K=ae(K,we,Z)}for(var ue=0;ue<W;ue++)for(var le=0;le<ce;le++)z[ue][le]*=z[ue][le];for(var Le=0;Le<ce;Le++)w[Le]=[];for(var Ce=0;Ce<ce;Ce++)for(var De=0;De<ce;De++)w[Ce][De]=z[b[De]][Ce]},be=function(){var Z=y.svd(w),{S:K,U:ie,V:ne}=Z,we=K[0]*K[0]*K[0],ue=[];for(var le=0;le<ce;le++){ue[le]=[];for(var Le=0;Le<ce;Le++)if(ue[le][Le]=0,le==Le)ue[le][Le]=K[le]/(K[le]*K[le]+we/(K[le]*K[le]))}_=l.multMat(l.multMat(ne,ue),l.transpose(ie))},Ne=function(){var Z=void 0,K=void 0,ie=[],ne=[],we=[],ue=[];for(var le=0;le<W;le++)ie[le]=Math.random(),ne[le]=Math.random();ie=l.normalize(ie),ne=l.normalize(ne);var Le=0,Ce=ee,De=ee,Oe=void 0;while(!0){Le++;for(var ze=0;ze<W;ze++)we[ze]=ie[ze];if(ie=l.multGamma(l.multL(l.multGamma(we),z,_)),Z=l.dotProduct(we,ie),ie=l.normalize(ie),Ce=l.dotProduct(we,ie),Oe=Math.abs(Ce/De),Oe<=1+fe&&Oe>=1)break;De=Ce}for(var Ue=0;Ue<W;Ue++)we[Ue]=ie[Ue];Le=0,De=ee;while(!0){Le++;for(var Be=0;Be<W;Be++)ue[Be]=ne[Be];if(ue=l.minusOp(ue,l.multCons(we,l.dotProduct(we,ue))),ne=l.multGamma(l.multL(l.multGamma(ue),z,_)),K=l.dotProduct(ue,ne),ne=l.normalize(ne),Ce=l.dotProduct(ue,ne),Oe=Math.abs(Ce/De),Oe<=1+fe&&Oe>=1)break;De=Ce}for(var Fe=0;Fe<W;Fe++)ue[Fe]=ne[Fe];M=l.multCons(we,Math.sqrt(Math.abs(Z))),Y=l.multCons(ue,Math.sqrt(Math.abs(K)))};x.connectComponents(h,r,x.getTopMostNodes(G),o),k.forEach(function(ye){x.connectComponents(h,r,x.getTopMostNodes(ye.descendants().intersection(r)),o)});var xe=0;for(var j=0;j<G.length;j++)if(!G[j].isParent())v.set(G[j].id(),xe++);var Te=!0,te=!1,he=void 0;try{for(var ke=o.keys()[Symbol.iterator](),$e;!(Te=($e=ke.next()).done);Te=!0){var Je=$e.value;v.set(Je,xe++)}}catch(ye){te=!0,he=ye}finally{try{if(!Te&&ke.return)ke.return()}finally{if(te)throw he}}for(var He=0;He<v.size;He++)n[He]=[];k.forEach(function(ye){var Z=ye.children().intersection(r);while(Z.nodes(":childless").length==0)Z=Z.nodes()[0].children().intersection(r);var K=0,ie=Z.nodes(":childless")[0].connectedEdges().length;Z.nodes(":childless").forEach(function(ne,we){if(ne.connectedEdges().length<ie)ie=ne.connectedEdges().length,K=we}),C.set(ye.id(),Z.nodes(":childless")[K].id())}),G.forEach(function(ye){var Z=void 0;if(ye.isParent())Z=v.get(C.get(ye.id()));else Z=v.get(ye.id());ye.neighborhood().nodes().forEach(function(K){if(r.intersection(ye.edgesWith(K)).length>0)if(K.isParent())n[Z].push(C.get(K.id()));else n[Z].push(K.id())})});var it=function(Z){var K=v.get(Z),ie=void 0;o.get(Z).forEach(function(ne){if(h.getElementById(ne).isParent())ie=C.get(ne);else ie=ne;n[K].push(ie),n[v.get(ie)].push(Z)})},Ve=!0,J=!1,F=void 0;try{for(var ve=o.keys()[Symbol.iterator](),se;!(Ve=(se=ve.next()).done);Ve=!0){var pe=se.value;it(pe)}}catch(ye){J=!0,F=ye}finally{try{if(!Ve&&ve.return)ve.return()}finally{if(J)throw F}}W=v.size;var de=void 0;if(W>2){ce=W<g.sampleSize?W:g.sampleSize;for(var ge=0;ge<W;ge++)z[ge]=[];for(var Ee=0;Ee<ce;Ee++)_[Ee]=[];if(g.quality=="draft"||g.step=="all")Ie(Ae),be(),Ne(),de={nodeIndexes:v,xCoords:M,yCoords:Y};else v.forEach(function(ye,Z){M.push(h.getElementById(Z).position("x")),Y.push(h.getElementById(Z).position("y"))}),de={nodeIndexes:v,xCoords:M,yCoords:Y};return de}else{var Pe=v.keys(),Qe=h.getElementById(Pe.next().value),Me=Qe.position(),Ge=Qe.outerWidth();if(M.push(Me.x),Y.push(Me.y),W==2){var Xe=h.getElementById(Pe.next().value),je=Xe.outerWidth();M.push(Me.x+Ge/2+je/2+g.idealEdgeLength),Y.push(Me.y)}return de={nodeIndexes:v,xCoords:M,yCoords:Y},de}};T.exports={spectralLayout:c}},579:(T,O,p)=>{var x=p(212),l=function(c){if(!c)return;c("layout","fcose",x)};if(typeof cytoscape<"u")l(cytoscape);T.exports=l},140:(T)=>{T.exports=e}},s={};function E(T){var O=s[T];if(O!==void 0)return O.exports;var p=s[T]={exports:{}};return i[T](p,p.exports,E),p.exports}var m=E(579);return m})()})});var yt=Ye(ct(),1);var dt={L:"left",R:"right",T:"top",B:"bottom"},ft={L:t((e)=>`${e},${e/2} 0,${e} 0,0`,"L"),R:t((e)=>`0,${e/2} ${e},0 ${e},${e}`,"R"),T:t((e)=>`0,0 ${e},0 ${e/2},${e}`,"T"),B:t((e)=>`${e/2},0 ${e},${e} 0,${e}`,"B")},nt={L:t((e,i)=>e-i+2,"L"),R:t((e,i)=>e-2,"R"),T:t((e,i)=>e-i+2,"T"),B:t((e,i)=>e-2,"B")},bt=t(function(e){if(Se(e))return e==="L"?"R":"L";else return e==="T"?"B":"T"},"getOppositeArchitectureDirection"),ut=t(function(e){let i=e;return i==="L"||i==="R"||i==="T"||i==="B"},"isArchitectureDirection"),Se=t(function(e){let i=e;return i==="L"||i==="R"},"isArchitectureDirectionX"),_e=t(function(e){let i=e;return i==="T"||i==="B"},"isArchitectureDirectionY"),lt=t(function(e,i){let s=Se(e)&&_e(i),E=_e(e)&&Se(i);return s||E},"isArchitectureDirectionXY"),Nt=t(function(e){let i=e[0],s=e[1],E=Se(i)&&_e(s),m=_e(i)&&Se(s);return E||m},"isArchitecturePairXY"),St=t(function(e){return e!=="LL"&&e!=="RR"&&e!=="TT"&&e!=="BB"},"isValidArchitectureDirectionPair"),ot=t(function(e,i){let s=`${e}${i}`;return St(s)?s:void 0},"getArchitectureDirectionPair"),kt=t(function([e,i],s){let E=s[0],m=s[1];if(Se(E))if(_e(m))return[e+(E==="L"?-1:1),i+(m==="T"?1:-1)];else return[e+(E==="L"?-1:1),i];else if(Se(m))return[e+(m==="L"?1:-1),i+(E==="T"?1:-1)];else return[e,i+(E==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Dt=t(function(e){if(e==="LT"||e==="TL")return[1,1];else if(e==="BL"||e==="LB")return[1,-1];else if(e==="BR"||e==="RB")return[-1,-1];else return[-1,1]},"getArchitectureDirectionXYFactors"),Rt=t(function(e,i){if(lt(e,i))return"bend";else if(Se(e))return"horizontal";return"vertical"},"getArchitectureDirectionAlignment"),Mt=t(function(e){return e.type==="service"},"isArchitectureService"),Ft=t(function(e){return e.type==="junction"},"isArchitectureJunction"),gt=t((e,i)=>{let[s,E]=[e,i].sort();return`${JSON.stringify(s)}-${JSON.stringify(E)}`},"architectureGroupAlignmentKey"),ht=t((e)=>e.data(),"edgeData"),We=t((e)=>e.data(),"nodeData"),$t=B.architecture,pt=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=R,this.getAccTitle=I,this.setDiagramTitle=P,this.getDiagramTitle=N,this.getAccDescription=D,this.setAccDescription=L,this.clear()}static{t(this,"ArchitectureDB")}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",A()}addService({id:e,icon:i,in:s,title:E,iconText:m}){if(this.registeredIds.has(e))throw Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(s!==void 0){if(e===s)throw Error(`The service [${e}] cannot be placed within itself`);if(!this.registeredIds.has(s))throw Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(s)==="node")throw Error(`The service [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"service",icon:i,iconText:m,title:E,edges:[],in:s})}getServices(){return[...this.nodes.values()].filter(Mt)}addJunction({id:e,in:i}){if(this.registeredIds.has(e))throw Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(i!==void 0){if(e===i)throw Error(`The junction [${e}] cannot be placed within itself`);if(!this.registeredIds.has(i))throw Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(i)==="node")throw Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"junction",edges:[],in:i})}getJunctions(){return[...this.nodes.values()].filter(Ft)}getNodes(){return[...this.nodes.values()]}getNode(e){return this.nodes.get(e)??null}addGroup({id:e,icon:i,in:s,title:E}){if(this.registeredIds.has(e))throw Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(s!==void 0){if(e===s)throw Error(`The group [${e}] cannot be placed within itself`);if(!this.registeredIds.has(s))throw Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(s)==="node")throw Error(`The group [${e}]'s parent is not a group`)}this.registeredIds.set(e,"group"),this.groups.set(e,{id:e,icon:i,title:E,in:s})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:e,rhsId:i,lhsDir:s,rhsDir:E,lhsInto:m,rhsInto:T,lhsGroup:O,rhsGroup:p,title:x}){if(!ut(s))throw Error(`Invalid direction given for left hand side of edge ${e}--${i}. Expected (L,R,T,B) got ${String(s)}`);if(!ut(E))throw Error(`Invalid direction given for right hand side of edge ${e}--${i}. Expected (L,R,T,B) got ${String(E)}`);if(!this.nodes.has(e)&&!this.groups.has(e))throw Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(i)&&!this.groups.has(i))throw Error(`The right-hand id [${i}] does not yet exist. Please create the service/group before declaring an edge to it.`);let l=this.nodes.get(e).in,y=this.nodes.get(i).in;if(O&&l&&y&&l==y)throw Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(p&&l&&y&&l==y)throw Error(`The right-hand id [${i}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let c={lhsId:e,lhsDir:s,lhsInto:m,lhsGroup:O,rhsId:i,rhsDir:E,rhsInto:T,rhsGroup:p,title:x};this.edges.push(c);let d=this.nodes.get(e),g=this.nodes.get(i);if(d&&g)d.edges.push(this.edges[this.edges.length-1]),g.edges.push(this.edges[this.edges.length-1])}getEdges(){return this.edges}addLayoutHint(e){if(e.members.length<2)throw Error(`An align directive requires at least two members; got ${e.members.length}`);let i=new Set;e.members.forEach((s)=>{if(this.registeredIds.get(s)!=="node")throw Error(`align ${e.direction} references [${s}], which is not a service or junction`);if(i.has(s))throw Error(`align ${e.direction} lists [${s}] more than once`);i.add(s)}),this.layoutHints.push(e)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){let e=new Map,i=new Map;for(let[O,p]of this.nodes.entries()){let x=new Map;for(let l of p.edges){let y=this.getNode(l.lhsId)?.in,c=this.getNode(l.rhsId)?.in;if(y&&c&&y!==c){let d=Rt(l.lhsDir,l.rhsDir);if(d!=="bend")e.set(gt(y,c),d)}if(l.lhsId===O){let d=ot(l.lhsDir,l.rhsDir);if(d)x.set(d,l.rhsId)}else{let d=ot(l.rhsDir,l.lhsDir);if(d)x.set(d,l.lhsId)}}i.set(O,x)}let s=new Set,E=new Set(i.keys()),m=t((O)=>{let p=new Map([[O,[0,0]]]),x=[O];while(x.length>0){let l=x.shift();if(l){s.add(l),E.delete(l);let y=i.get(l);if(!y)throw Error(`BFS error: adjacency list for id ${l} not found. Please report this as a bug.`);let c=p.get(l);if(!c)throw Error(`BFS error: position for id ${l} not found in spatial map. Please report this as a bug.`);let[d,g]=c;y.forEach((h,r)=>{if(!s.has(h))p.set(h,kt([d,g],r)),x.push(h)})}}return p},"BFS"),T=[];while(E.size>0){let O=E.values().next().value;T.push(m(O))}this.dataStructures={adjList:i,spatialMaps:T,groupAlignments:e}}return this.dataStructures}setElementForId(e,i){this.elements.set(e,i)}getElementById(e){return this.elements.get(e)}getConfig(){return X({...$t,...S().architecture})}getConfigField(e){return this.getConfig()[e]}},Pt=t((e,i)=>{re(e,i),e.groups.map((s)=>i.addGroup(s)),e.services.map((s)=>i.addService({...s,type:"service"})),e.junctions.map((s)=>i.addJunction({...s,type:"junction"})),e.edges.map((s)=>i.addEdge(s)),e.alignments?.map((s)=>i.addLayoutHint({direction:s.direction,members:[...s.members]}))},"populateDb"),mt={parser:{yy:void 0},parse:t(async(e)=>{let i=await me("architecture",e);a.debug(i);let s=mt.parser?.yy;if(!(s instanceof pt))throw Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Pt(i,s)},"parse")},Ot=t((e)=>`
|
|
2
|
+
.edge {
|
|
3
|
+
stroke-width: ${e.archEdgeWidth};
|
|
4
|
+
stroke: ${e.archEdgeColor};
|
|
5
|
+
fill: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.arrow {
|
|
9
|
+
fill: ${e.archEdgeArrowColor};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.node-bkg {
|
|
13
|
+
fill: none;
|
|
14
|
+
stroke: ${e.archGroupBorderColor};
|
|
15
|
+
stroke-width: ${e.archGroupBorderWidth};
|
|
16
|
+
stroke-dasharray: 8;
|
|
17
|
+
}
|
|
18
|
+
.node-icon-text {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.node-icon-text > div {
|
|
24
|
+
color: #fff;
|
|
25
|
+
margin: 1px;
|
|
26
|
+
height: fit-content;
|
|
27
|
+
text-align: center;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
display: -webkit-box;
|
|
30
|
+
-webkit-box-orient: vertical;
|
|
31
|
+
}
|
|
32
|
+
`,"getStyles"),Gt=Ot;function st(e,i){if(e===0)return i();let s=Math.random,E=e>>>0;Math.random=function(){E=E+1831565813>>>0;let m=E;return m=Math.imul(m^m>>>15,m|1),m^=m+Math.imul(m^m>>>7,m|61),((m^m>>>14)>>>0)/4294967296};try{return i()}finally{Math.random=s}}t(st,"withSeededRandom");var qe=t((e)=>`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${e}</g>`,"wrapIcon"),tt={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:qe('<path id="b" data-name="4" d="m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="c" data-name="3" d="m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="d" data-name="2" d="m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse id="e" data-name="1" cx="40" cy="22.14" rx="20" ry="7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="20" y1="57.86" x2="20" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="60" y1="57.86" x2="60" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},server:{body:qe('<rect x="17.5" y="17.5" width="45" height="45" rx="2" ry="2" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="32.5" x2="62.5" y2="32.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="47.5" x2="62.5" y2="47.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><g><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g>')},disk:{body:qe('<rect x="20" y="15" width="40" height="50" rx="1" ry="1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="14" ry="14.58" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="4" ry="4.17" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z" style="fill: #fff; stroke-width: 0px;"/>')},internet:{body:qe('<circle cx="40" cy="40" r="22.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="40" y1="17.5" x2="40" y2="62.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="40" x2="62.5" y2="40" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="30.1" x2="60.25" y2="30.1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="49.9" x2="60.25" y2="49.9" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},cloud:{body:qe('<path d="m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},unknown:Fs,blank:{body:qe("")}}},zt=t(async function(e,i,s,E){let m=s.getConfigField("padding"),T=s.getConfigField("iconSize"),O=T/2,p=T/6,x=p/2;await Promise.all(i.edges().map(async(l)=>{let{source:y,sourceDir:c,sourceArrow:d,sourceGroup:g,target:h,targetDir:r,targetArrow:G,targetGroup:k,label:o}=ht(l),{x:v,y:C}=l[0].sourceEndpoint(),{x:n,y:M}=l[0].midpoint(),{x:Y,y:b}=l[0].targetEndpoint(),H=m+4;if(g)if(Se(c))v+=c==="L"?-H:H;else C+=c==="T"?-H:H+18;if(k)if(Se(r))Y+=r==="L"?-H:H;else b+=r==="T"?-H:H+18;if(!g&&s.getNode(y)?.type==="junction")if(Se(c))v+=c==="L"?O:-O;else C+=c==="T"?O:-O;if(!k&&s.getNode(h)?.type==="junction")if(Se(r))Y+=r==="L"?O:-O;else b+=r==="T"?O:-O;if(l[0]._private.rscratch){let z=e.insert("g");if(z.insert("path").attr("d",`M ${v},${C} L ${n},${M} L${Y},${b} `).attr("class","edge").attr("id",`${E}-${vt(y,h,{prefix:"L"})}`),d){let w=Se(c)?nt[c](v,p):v-x,_=_e(c)?nt[c](C,p):C-x;z.insert("polygon").attr("points",ft[c](p)).attr("transform",`translate(${w},${_})`).attr("class","arrow")}if(G){let w=Se(r)?nt[r](Y,p):Y-x,_=_e(r)?nt[r](b,p):b-x;z.insert("polygon").attr("points",ft[r](p)).attr("transform",`translate(${w},${_})`).attr("class","arrow")}if(o){let w=!lt(c,r)?Se(c)?"X":"Y":"XY",_=0;if(w==="X")_=Math.abs(v-Y);else if(w==="Y")_=Math.abs(C-b)/1.5;else _=Math.abs(v-Y)/2;let q=z.append("g");if(await rt(q,o,{useHtmlLabels:!1,width:_,classes:"architecture-service-label"},u()),q.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),w==="X")q.attr("transform","translate("+n+", "+M+")");else if(w==="Y")q.attr("transform","translate("+n+", "+M+") rotate(-90)");else if(w==="XY"){let W=ot(c,r);if(W&&Nt(W)){let oe=q.node().getBoundingClientRect(),[ee,fe]=Dt(W);q.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*ee*fe*45})`);let Ae=q.node().getBoundingClientRect();q.attr("transform",`
|
|
33
|
+
translate(${n}, ${M-oe.height/2})
|
|
34
|
+
translate(${ee*Ae.width/2}, ${fe*Ae.height/2})
|
|
35
|
+
rotate(${-1*ee*fe*45}, 0, ${oe.height/2})
|
|
36
|
+
`)}}}}}))},"drawEdges"),Bt=t(async function(e,i,s,E){let T=s.getConfigField("padding")*0.75,O=s.getConfigField("fontSize"),x=s.getConfigField("iconSize")/2;await Promise.all(i.nodes().map(async(l)=>{let y=We(l);if(y.type==="group"){let{h:c,w:d,x1:g,y1:h}=l.boundingBox(),r=e.append("rect");r.attr("id",`${E}-group-${y.id}`).attr("x",g+x).attr("y",h+x).attr("width",d).attr("height",c).attr("class","node-bkg");let G=e.append("g"),k=g,o=h;if(y.icon){let v=G.append("g");v.html(`<g>${await qt(y.icon,{height:T,width:T,fallbackPrefix:tt.prefix})}</g>`),v.attr("transform","translate("+(k+x+1)+", "+(o+x+1)+")"),k+=T,o+=O/2-1-2}if(y.label){let v=G.append("g");await rt(v,y.label,{useHtmlLabels:!1,width:d,classes:"architecture-service-label"},u()),v.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),v.attr("transform","translate("+(k+x+4)+", "+(o+x+2)+")")}s.setElementForId(y.id,r)}}))},"drawGroups"),_t=t(async function(e,i,s,E){let m=u();for(let T of s){let O=i.append("g"),p=e.getConfigField("iconSize");if(T.title){let c=O.append("g");await rt(c,T.title,{useHtmlLabels:!1,width:p*1.5,classes:"architecture-service-label"},m),c.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),c.attr("transform","translate("+p/2+", "+p+")")}let x=O.append("g");if(T.icon)x.html(`<g>${await qt(T.icon,{height:p,width:p,fallbackPrefix:tt.prefix})}</g>`);else if(T.iconText){x.html(`<g>${await qt("blank",{height:p,width:p,fallbackPrefix:tt.prefix})}</g>`);let g=x.append("g").append("foreignObject").attr("width",p).attr("height",p).append("div").attr("class","node-icon-text").attr("style",`height: ${p}px;`).append("div").html(U(T.iconText,m)),h=parseInt(window.getComputedStyle(g.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;g.attr("style",`-webkit-line-clamp: ${Math.floor((p-2)/h)};`)}else x.append("path").attr("class","node-bkg").attr("id",`${E}-node-${T.id}`).attr("d",`M0,${p} V5 Q0,0 5,0 H${p-5} Q${p},0 ${p},5 V${p} Z`);O.attr("id",`${E}-service-${T.id}`).attr("class","architecture-service");let{width:l,height:y}=O.node().getBBox();T.width=l,T.height=y,e.setElementForId(T.id,O)}return 0},"drawServices"),Yt=t(function(e,i,s,E){s.forEach((m)=>{let T=i.append("g"),O=e.getConfigField("iconSize");T.append("g").append("rect").attr("id",`${E}-node-${m.id}`).attr("fill-opacity","0").attr("width",O).attr("height",O),T.attr("class","architecture-junction");let{width:x,height:l}=T._groups[0][0].getBBox();T.width=x,T.height=l,e.setElementForId(m.id,T)})},"drawJunctions");Mr([{name:tt.prefix,icons:tt}]);on.use(yt.default);function Et(e,i,s){e.forEach((E)=>{i.add({group:"nodes",data:{type:"service",id:E.id,icon:E.icon,label:E.title,parent:E.in,width:s.getConfigField("iconSize"),height:s.getConfigField("iconSize")},classes:"node-service"})})}t(Et,"addServices");function wt(e,i,s){e.forEach((E)=>{i.add({group:"nodes",data:{type:"junction",id:E.id,parent:E.in,width:s.getConfigField("iconSize"),height:s.getConfigField("iconSize")},classes:"node-junction"})})}t(wt,"addJunctions");function xt(e,i){i.nodes().map((s)=>{let E=We(s);if(E.type==="group")return;E.x=s.position().x,E.y=s.position().y,e.getElementById(E.id).attr("transform","translate("+(E.x||0)+","+(E.y||0)+")")})}t(xt,"positionNodes");function Tt(e,i){e.forEach((s)=>{i.add({group:"nodes",data:{type:"group",id:s.id,icon:s.icon,label:s.title,parent:s.in},classes:"node-group"})})}t(Tt,"addGroups");function At(e,i){e.forEach((s)=>{let{lhsId:E,rhsId:m,lhsInto:T,lhsGroup:O,rhsInto:p,lhsDir:x,rhsDir:l,rhsGroup:y,title:c}=s,d=lt(s.lhsDir,s.rhsDir)?"segments":"straight",g={id:`${E}-${m}`,label:c,source:E,sourceDir:x,sourceArrow:T,sourceGroup:O,sourceEndpoint:x==="L"?"0 50%":x==="R"?"100% 50%":x==="T"?"50% 0":"50% 100%",target:m,targetDir:l,targetArrow:p,targetGroup:y,targetEndpoint:l==="L"?"0 50%":l==="R"?"100% 50%":l==="T"?"50% 0":"50% 100%"};i.add({group:"edges",data:g,classes:d})})}t(At,"addEdges");function Lt(e,i,s,E=[]){let m=t((d,g)=>{let h=new Map;for(let[r,G]of d.entries()){let k=`${r}`,o=0,v=[...G.entries()];if(v.length===1){h.set(k,v[0][1]);continue}for(let C=0;C<v.length-1;C++)for(let n=C+1;n<v.length;n++){let[M,Y]=v[C],[b,H]=v[n];if(s.get(gt(M,b))===g)h.set(k,[...h.get(k)??[],...Y,...H]);else if(M==="default"||b==="default")h.set(k,[...h.get(k)??[],...Y,...H]);else{let w=`${k}-${o++}`;h.set(w,Y);let _=`${k}-${o++}`;h.set(_,H)}}}return h},"flattenAlignments"),T=i.map((d)=>{let g=new Map,h=new Map;return d.forEach(([r,G],k)=>{let o=e.getNode(k)?.in??"default",v=g.get(G)??new Map;if(!g.has(G))g.set(G,v);let C=h.get(r)??new Map;if(!h.has(r))h.set(r,C);for(let n of[v,C]){let M=n.get(o)??[];if(!n.has(o))n.set(o,M);M.push(k)}}),{horiz:[...m(g,"horizontal").values()].filter((r)=>r.length>1),vert:[...m(h,"vertical").values()].filter((r)=>r.length>1)}}),[O,p]=T.reduce(([d,g],{horiz:h,vert:r})=>[[...d,...h],[...g,...r]],[[],[]]),x=new Set;E.forEach((d)=>d.members.forEach((g)=>x.add(g)));let l=t((d)=>d.filter((g)=>!g.some((h)=>x.has(h))),"dropOverlapping"),y=l(O),c=l(p);return E.forEach((d)=>{if(d.members.length<2)return;if(d.direction==="row")y.push([...d.members]);else c.push([...d.members])}),{horizontal:y,vertical:c}}t(Lt,"getAlignments");function Ct(e,i,s=[]){let E=[],m=i.getConfigField("iconSize"),T=i.getConfigField("idealEdgeLengthMultiplier"),O=T*m,p=new Set;s.forEach((y)=>{for(let c=0;c<y.members.length-1;c++){let d=y.members[c],g=y.members[c+1];if(p.add(`${d}|${g}`),p.add(`${g}|${d}`),y.direction==="row")E.push({left:d,right:g,gap:O});else E.push({top:d,bottom:g,gap:O})}});let x=t((y)=>`${y[0]},${y[1]}`,"posToStr"),l=t((y)=>y.split(",").map((c)=>parseInt(c)),"strToPos");return e.forEach((y)=>{let c=new Map([...y.entries()].map(([r,G])=>[x(G),r])),d=[x([0,0])],g={},h={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};while(d.length>0){let r=d.shift();if(r){g[r]=1;let G=c.get(r);if(G){let k=l(r);Object.entries(h).forEach(([o,v])=>{let C=x([k[0]+v[0],k[1]+v[1]]),n=c.get(C);if(n&&!g[C]){if(d.push(C),p.has(`${G}|${n}`))return;E.push({[dt[o]]:n,[dt[bt(o)]]:G,gap:T*m})}})}}}}),E}t(Ct,"getRelativeConstraints");function It(e,i,s,E,m,{spatialMaps:T,groupAlignments:O}){return new Promise((p)=>{let x=f("body").append("div").attr("id","cy").attr("style","display:none"),l=on({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge[label]",style:{label:"data(label)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[0.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${m.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${m.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});x.remove(),Tt(s,l),Et(e,l,m),wt(i,l,m),At(E,l);let y=m.getLayoutHints(),c=Lt(m,T,O,y),d=Ct(T,m,y),g=m.getConfigField("iconSize"),h=m.getConfigField("idealEdgeLengthMultiplier")*g,r=0.5*g,G=m.getConfigField("edgeElasticity"),k=m.getConfigField("seed"),o=l.layout({name:"fcose",quality:"proof",randomize:m.getConfigField("randomize"),nodeSeparation:m.getConfigField("nodeSeparation"),numIter:m.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(v){let[C,n]=v.connectedNodes(),{parent:M}=We(C),{parent:Y}=We(n);return M===Y?h:r},edgeElasticity(v){let[C,n]=v.connectedNodes(),{parent:M}=We(C),{parent:Y}=We(n);return M===Y?G:0.001},alignmentConstraint:c,relativePlacementConstraint:d});o.one("layoutstop",()=>{function v(C,n,M,Y){let b,H,{x:z,y:w}=C,{x:_,y:q}=n;H=(Y-w+(z-M)*(w-q)/(z-_))/Math.sqrt(1+Math.pow((w-q)/(z-_),2)),b=Math.sqrt(Math.pow(Y-w,2)+Math.pow(M-z,2)-Math.pow(H,2));let W=Math.sqrt(Math.pow(_-z,2)+Math.pow(q-w,2));b=b/W;let oe=(_-z)*(Y-w)-(q-w)*(M-z);switch(!0){case oe>=0:oe=1;break;case oe<0:oe=-1;break}let ee=(_-z)*(M-z)+(q-w)*(Y-w);switch(!0){case ee>=0:ee=1;break;case ee<0:ee=-1;break}return H=Math.abs(H)*oe,b=b*ee,{distances:H,weights:b}}t(v,"getSegmentWeights"),l.startBatch();for(let C of Object.values(l.edges()))if(C.data?.()){let{x:n,y:M}=C.source().position(),{x:Y,y:b}=C.target().position();if(n!==Y&&M!==b){let H=C.sourceEndpoint(),z=C.targetEndpoint(),{sourceDir:w}=ht(C),[_,q]=_e(w)?[H.x,z.y]:[z.x,H.y],{weights:W,distances:oe}=v(H,z,_,q);C.style("segment-distances",oe),C.style("segment-weights",W)}}l.endBatch(),st(k,()=>o.run())});try{st(k,()=>o.run())}catch(v){if(v instanceof RangeError&&v.message.includes("Invalid array length"))throw Error("Architecture layout failed: a declared `align row|column` directive likely contradicts the edge directions, or two declared alignments overlap on a shared node. Check that the order of members in each `align` chain is consistent with the edges between them, and that no node appears in two `align` directives along the same axis.");throw v}l.ready((v)=>{a.info("Ready",v),p(l)})})}t(It,"layoutArchitecture");var Ut=t(async(e,i,s,E)=>{let m=E.db;m.setDiagramId(i);let T=m.getServices(),O=m.getJunctions(),p=m.getGroups(),x=m.getEdges(),l=m.getDataStructures(),y=Q(i),c=y.append("g");c.attr("class","architecture-edges");let d=y.append("g");d.attr("class","architecture-services");let g=y.append("g");g.attr("class","architecture-groups"),await _t(m,d,T,i),Yt(m,d,O,i);let h=await It(T,O,p,x,m,l);await zt(c,h,m,i),await Bt(g,h,m,i),xt(m,h),ln(void 0,y,m.getConfigField("padding"),m.getConfigField("useMaxWidth"))},"draw"),Ht={draw:Ut},ir={parser:mt,get db(){return new pt},renderer:Ht,styles:Gt};export{ir as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_e,$s,St,Nr,pl,go,Mn,Kr,yt,Wa,xi,Qr,ml,Bs,Jr}from"./chunk-77pcpdb5.js";function Z(l){return l.innerRadius}function k(l){return l.outerRadius}function b(l){return l.startAngle}function _(l){return l.endAngle}function nn(l){return l&&l.padAngle}function en(l,d,q,P,x,h,S,r){var D=q-l,a=P-d,n=S-x,y=r-h,u=y*D-n*a;if(u*u<yt)return;return u=(n*(d-h)-y*(l-x))/u,[l+u*D,d+u*a]}function L(l,d,q,P,x,h,S){var r=l-q,D=d-P,a=(S?h:-h)/Kr(r*r+D*D),n=a*D,y=-a*r,u=l+n,s=d+y,t=q+n,f=P+y,j=(u+t)/2,o=(s+f)/2,g=t-u,c=f-s,v=g*g+c*c,A=x-h,R=u*f-t*s,E=(c<0?-1:1)*Kr(pl(0,A*A*v-R*R)),I=(R*c-g*E)/v,O=(-R*g-c*E)/v,T=(R*c+g*E)/v,m=(-R*g+c*E)/v,p=I-j,e=O-o,i=T-j,z=m-o;if(p*p+e*e>i*i+z*z)I=T,O=m;return{cx:I,cy:O,x01:-n,y01:-y,x11:I*(x/A-1),y11:O*(x/A-1)}}function mn(){var l=Z,d=k,q=_e(0),P=null,x=b,h=_,S=nn,r=null,D=Jr(a);function a(){var n,y,u=+l.apply(this,arguments),s=+d.apply(this,arguments),t=x.apply(this,arguments)-xi,f=h.apply(this,arguments)-xi,j=$s(f-t),o=f>t;if(!r)r=n=D();if(s<u)y=s,s=u,u=y;if(!(s>yt))r.moveTo(0,0);else if(j>Qr-yt){if(r.moveTo(s*Nr(t),s*Mn(t)),r.arc(0,0,s,t,f,!o),u>yt)r.moveTo(u*Nr(f),u*Mn(f)),r.arc(0,0,u,f,t,o)}else{var g=t,c=f,v=t,A=f,R=j,E=j,I=S.apply(this,arguments)/2,O=I>yt&&(P?+P.apply(this,arguments):Kr(u*u+s*s)),T=go($s(s-u)/2,+q.apply(this,arguments)),m=T,p=T,e,i;if(O>yt){var z=Bs(O/u*Mn(I)),F=Bs(O/s*Mn(I));if((R-=z*2)>yt)z*=o?1:-1,v+=z,A-=z;else R=0,v=A=(t+f)/2;if((E-=F*2)>yt)F*=o?1:-1,g+=F,c-=F;else E=0,g=c=(t+f)/2}var B=s*Nr(g),C=s*Mn(g),G=u*Nr(A),H=u*Mn(A);if(T>yt){var J=s*Nr(c),K=s*Mn(c),M=u*Nr(v),N=u*Mn(v),w;if(j<Wa)if(w=en(B,C,M,N,J,K,G,H)){var Q=B-w[0],U=C-w[1],V=J-w[0],W=K-w[1],X=1/Mn(ml((Q*V+U*W)/(Kr(Q*Q+U*U)*Kr(V*V+W*W)))/2),Y=Kr(w[0]*w[0]+w[1]*w[1]);m=go(T,(u-Y)/(X-1)),p=go(T,(s-Y)/(X+1))}else m=p=0}if(!(E>yt))r.moveTo(B,C);else if(p>yt)if(e=L(M,N,B,C,s,p,o),i=L(J,K,G,H,s,p,o),r.moveTo(e.cx+e.x01,e.cy+e.y01),p<T)r.arc(e.cx,e.cy,p,St(e.y01,e.x01),St(i.y01,i.x01),!o);else r.arc(e.cx,e.cy,p,St(e.y01,e.x01),St(e.y11,e.x11),!o),r.arc(0,0,s,St(e.cy+e.y11,e.cx+e.x11),St(i.cy+i.y11,i.cx+i.x11),!o),r.arc(i.cx,i.cy,p,St(i.y11,i.x11),St(i.y01,i.x01),!o);else r.moveTo(B,C),r.arc(0,0,s,g,c,!o);if(!(u>yt)||!(R>yt))r.lineTo(G,H);else if(m>yt)if(e=L(G,H,J,K,u,-m,o),i=L(B,C,M,N,u,-m,o),r.lineTo(e.cx+e.x01,e.cy+e.y01),m<T)r.arc(e.cx,e.cy,m,St(e.y01,e.x01),St(i.y01,i.x01),!o);else r.arc(e.cx,e.cy,m,St(e.y01,e.x01),St(e.y11,e.x11),!o),r.arc(0,0,u,St(e.cy+e.y11,e.cx+e.x11),St(i.cy+i.y11,i.cx+i.x11),o),r.arc(i.cx,i.cy,m,St(i.y11,i.x11),St(i.y01,i.x01),!o);else r.arc(0,0,u,A,v,o)}if(r.closePath(),n)return r=null,n+""||null}return a.centroid=function(){var n=(+l.apply(this,arguments)+ +d.apply(this,arguments))/2,y=(+x.apply(this,arguments)+ +h.apply(this,arguments))/2-Wa/2;return[Nr(y)*n,Mn(y)*n]},a.innerRadius=function(n){return arguments.length?(l=typeof n==="function"?n:_e(+n),a):l},a.outerRadius=function(n){return arguments.length?(d=typeof n==="function"?n:_e(+n),a):d},a.cornerRadius=function(n){return arguments.length?(q=typeof n==="function"?n:_e(+n),a):q},a.padRadius=function(n){return arguments.length?(P=n==null?null:typeof n==="function"?n:_e(+n),a):P},a.startAngle=function(n){return arguments.length?(x=typeof n==="function"?n:_e(+n),a):x},a.endAngle=function(n){return arguments.length?(h=typeof n==="function"?n:_e(+n),a):h},a.padAngle=function(n){return arguments.length?(S=typeof n==="function"?n:_e(+n),a):S},a.context=function(n){return arguments.length?(r=n==null?null:n,a):r},a}
|
|
2
|
+
export{mn};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ll}from"./chunk-jtwct1bx.js";export{Ll as QuestionDock};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{qo}from"./chunk-m8bz4e6n.js";export{qo as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Wo}from"./chunk-q0cs1bhg.js";export{Wo as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{re}from"./chunk-svxkg8n3.js";import{t,a,B,S,U,A,R,I,L,D,P,N,u,Ua,f,Or,Si,X}from"./chunk-77pcpdb5.js";import{di,me}from"./chunk-22ncha3b.js";var H="position frame",_="frame positioned",F="position relation",G="relation positioned",pe=t(function(e){a.debug("options str",e)},"setOptions"),ve=t(function(){return{}},"getOptions"),be=t(function(){V(),A()},"clear");function V(){M={}}t(V,"reset");var we=B.eventmodeling,ye=t(()=>X({...we,...S().eventmodeling}),"getConfig"),M={};function j(){let e=Pe,{ast:i}=M,n=C();if(!i)throw Error("No data for EventModel");return i.frames.forEach((r,o)=>{let s=Z(r,i.dataEntities,n);e=y(e,{$kind:H,index:o,frame:r,textProps:s});let l=void 0;if(oe(r))a.debug("source frame",r.sourceFrames),l=i.frames.filter((c)=>r.sourceFrames.some((m)=>m.$refText===c.name)),l.forEach((c)=>{e=y(e,{$kind:F,index:o,frame:r,sourceFrame:c})});else e=y(e,{$kind:F,index:o,frame:r})}),e={...e,sortedSwimlanesArray:O(e.swimlanes)},e}t(j,"getState");function Y(e){M.ast=void 0;let i=new Set;for(let n of e.frames){if(i.has(n.name)){let r=n.$cstNode?.range.start.line,o=r===void 0?"":` on line ${r+1}`;throw Error(`Duplicate event modeling frame ID "${n.name}"${o}`)}i.add(n.name)}M.ast=e}t(Y,"setAst");var d={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 C(){return d}t(C,"getDiagramProps");var Pe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function z(e){let i=e.split(".");if(i.length===2)return i[0];return}t(z,"extractNamespace");function K(e){let i=e.split(".");if(i.length===2)return i[1];return e}t(K,"extractName");function q(e,i){if(!i||i.length===0)return;return Object.values(e).find((n)=>n.namespace===i)}t(q,"findSwimlaneByNamespace");function w(e,i,n){return Math.max(i,...Object.keys(e).filter((r)=>{let o=Number.parseInt(r);return o>i&&o<n}).map((r)=>Number.parseInt(r)))+1}t(w,"findNextAvailableIndex");function J(e,i){let n=z(e.entityIdentifier),r=q(i,n);switch(e.modelEntityType){case"ui":case"pcr":case"processor":if(r)return{index:r.index,label:r.namespace||d.labelUiAutomation};else if(n)return{index:w(i,0,100),label:d.labelUiAutomationPrefix+n};return{index:0,label:d.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":if(r)return{index:r.index,label:r.namespace||d.labelCommandReadModel};else if(n)return{index:w(i,100,200),label:d.labelCommandReadModelPrefix+n};return{index:100,label:d.labelCommandReadModel};case"evt":case"event":default:if(r)return{index:r.index,label:r.namespace||d.labelEvents};else if(n)return{index:w(i,200,300),label:d.labelEventsPrefix+n};return{index:200,label:d.labelEvents}}}t(J,"calculateSwimlaneProps");function Q(e){let{themeVariables:i}=S();switch(e.modelEntityType){case"ui":return{fill:i.emUiFill??"white",stroke:i.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:i.emProcessorFill??"#edb3f6",stroke:i.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:i.emReadModelFill??"#d3f1a2",stroke:i.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:i.emCommandFill??"#bcd6fe",stroke:i.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:i.emEventFill??"#ffb778",stroke:i.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}t(Q,"calculateEntityVisualProps");function Z(e,i,n){let r=S(),o=U(K(e.entityIdentifier)??"",r),s,l={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"},m=`<b>${Or(o,n.textMaxWidth,l)}</b>`;if(e.dataInlineValue)s=e.dataInlineValue,s=s.substring(s.indexOf("{")+1),s=s.substring(0,s.lastIndexOf("}")-1),s=U(s,r),s=Or(s,n.textMaxWidth,l),s=s.replaceAll(" "," ");if(e.dataReference){let b=i.find((k)=>k.name===e.dataReference?.$refText);if(b)s=b.dataBlockValue,s=s.substring(s.indexOf(`{
|
|
2
|
+
`)+2),s=s.substring(0,s.lastIndexOf("}")-1),s=U(s,r),s=Or(s,n.textMaxWidth,l),s=s.replaceAll(" "," "),s+="<br/>"}let x=s!==void 0;if(x)m+=`<br/><br/><code style="text-align: left; display: block;max-width:${n.textMaxWidth}px">${s}</code>`;let h={fontSize:l.fontSize,fontWeight:l.fontWeight,fontFamily:l.fontFamily},g=Si(m,h),v=x?g.width/3:g.width,p={content:m,width:v,height:g.height};return a.debug(`[${e.name}] ${e.entityIdentifier} text`,p),p}t(Z,"calculateTextProps");function ee(e,i){let n=i,r=Q(n.frame),o={width:n.textProps.width+2*d.boxTextPadding,height:n.textProps.height+2*d.boxTextPadding};return[{$kind:_,frame:n.frame,index:n.index,visual:r,dimension:o,textProps:n.textProps}]}t(ee,"decidePositionFrame");function te(e,i,n){if(i===void 0)return d.contentStartX;if(i.index===e.index&&e.r)return e.r+d.boxPadding;if(n===void 0)return d.contentStartX;return n.r-d.boxOverlap+d.boxPadding}t(te,"calculateX");function ne(e,i){let n=[...e.map((r)=>r.r),i];return Math.max(...n)}t(ne,"calculateMaxRight");function O(e){return Object.values(e).sort((i,n)=>i.index-n.index)}t(O,"sortedSwimlanesArray");function ie(e,i){let n=i,r=J(n.frame,e.swimlanes),o;if(r.index in e.swimlanes)o=e.swimlanes[r.index];else o={index:r.index,label:r.label,r:0,y:r.index*d.swimlaneMinHeight+d.swimlaneGap,height:d.swimlaneMinHeight,maxHeight:d.swimlaneMinHeight};let s=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,l=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,c={width:Math.max(d.boxMinWidth,Math.min(d.boxMaxWidth,n.dimension.width))+2*d.boxPadding,height:Math.max(d.boxMinHeight,Math.min(d.boxMaxHeight,n.dimension.height))+2*d.boxPadding},m=te(o,l,s),x=m+c.width+d.boxPadding,h=ne(Object.values(e.swimlanes),x);o.r=m+c.width,o.maxHeight=Math.max(o.maxHeight,c.height),o.height=Math.max(d.swimlaneMinHeight,o.maxHeight)+2*d.swimlanePadding;let g={x:m,y:d.swimlanePadding+o.y,r:x,dimension:c,leftSibling:!1,swimlane:o,visual:n.visual,text:n.textProps.content,frame:n.frame,index:n.index},v={...e,boxes:[...e.boxes,g],swimlanes:{...e.swimlanes,[`${o.index}`]:o},previousSwimlaneNumber:r.index,previousFrame:n.frame,maxR:h},p=O(v.swimlanes);if(p.length>0)p[0].y=0;for(let b=1;b<p.length;b++){let k=p[b],W=p[b-1];k.y=W.y+W.height+d.swimlaneGap}return v}t(ie,"evolveFramePositioned");function ae(e,i){if(e===0&&i.sourceFrames.length===0)return!0;return!1}t(ae,"isFirstFrame");function oe(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}t(oe,"hasSourceFrame");function E(e,i){if(i===void 0||i===null)return;return e.find((n)=>n.frame.name===i.name)}t(E,"findBoxByFrame");function se(e,i,n){if(n<0)return;for(let r=n;r>=0;r--){let o=e[r];if(o.swimlane.index!==i)return o}return}t(se,"findBoxByLineIndex");function de(e,i){let n=i;if(ae(n.index,n.frame))return[];let r=E(e.boxes,n.frame);if(r===void 0)throw Error(`Target box not found for frame ${n.frame.name}`);let o;if(n.sourceFrame)o=E(e.boxes,n.sourceFrame);else{if(di(n.frame))return[];o=se(e.boxes,r.swimlane.index,n.index-1)}if(o===void 0)return[];return[{$kind:G,frame:n.frame,index:n.index,sourceBox:o,targetBox:r}]}t(de,"decidePositionRelation");function le(e,i){let n=i,r={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,r]}}t(le,"evolveRelationPositioned");var Se={[H]:ee,[F]:de},Me={[_]:ie,[G]:le};function ce(e,i){let n=Se[i.$kind];if(n===void 0||n===null)return[];let r=n(e,i);return a.debug("decided events",r),r}t(ce,"decide");function ue(e,i){let n=i.reduce((r,o)=>{let s=Me[o.$kind];if(s===void 0||s===null)return r;return s(r,o)},e);return a.debug("evolve events",{state:e,newState:n,events:i}),n}t(ue,"evolve");function y(e,i){let n=ce(e,i);return ue(e,n)}t(y,"dispatch");var T={getConfig:ye,preserveCommentsWhenParsing:!0,setOptions:pe,getOptions:ve,clear:be,setAccTitle:R,getAccTitle:I,getAccDescription:D,setAccDescription:L,setDiagramTitle:P,getDiagramTitle:N,setAst:Y,getDiagramProps:C,getState:j},ke={parse:t(async(e)=>{let i=await me("eventmodeling",e);a.debug(i),T.setAst(i),re(i,T)},"parse")},Fe=u(),Be=Fe?.eventmodeling;function xe(e,i){return(n)=>{let r=n.swimlane.y+i.swimlanePadding,o=e.append("g").attr("class","em-box");o.append("rect").attr("x",n.x).attr("y",r).attr("rx","3").attr("width",n.dimension.width).attr("height",n.dimension.height).attr("stroke",n.visual.stroke).attr("fill",n.visual.fill),o.append("foreignObject").attr("x",n.x+i.boxPadding).attr("y",r+10).attr("width",n.dimension.width-2*i.boxPadding).attr("height",n.dimension.height-2*i.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(n.text)}}t(xe,"renderD3Box");function fe(e,i){return e>i}t(fe,"dirUpwards");function ge(e,i,n,r){return(o)=>{let s=o.sourceBox.swimlane.y+i.swimlanePadding,l=o.targetBox.swimlane.y+i.swimlanePadding,c=fe(s,l),m=o.sourceBox.x+o.sourceBox.dimension.width*2/3,x=o.targetBox.x+o.targetBox.dimension.width/3,h,g;if(a.debug(`rendering relation up=${c} for `,{sourceBox:o.sourceBox,targetBox:o.targetBox}),c)h=s,g=l+o.targetBox.dimension.height;else h=s+o.sourceBox.dimension.height,g=l;let v=r.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${m} ${h} L${x} ${g}`)}}t(ge,"renderD3Relation");function he(e,i,n,r){return(o)=>{let s=e.append("g").attr("class","em-swimlane"),l=r.emSwimlaneBackgroundOdd??"rgb(250,250,250)",c=r.emSwimlaneBackgroundStroke??"rgb(240,240,240)";s.append("rect").attr("x",0).attr("y",o.y).attr("rx","3").attr("width",i+n.swimlanePadding).attr("height",o.height).attr("fill",l).attr("stroke",c),s.append("text").attr("font-weight",n.swimlaneTextFontWeight).attr("x",30).attr("y",o.y+30).text(o.label)}}t(he,"renderD3Swimlane");var Ee=t(function(e,i,n,r){if(a.debug("in eventmodeling renderer",e+`
|
|
3
|
+
`,"id:",i,n),!Be)throw Error("EventModeling config not found");let o=r.db,{themeVariables:s,eventmodeling:l}=u(),c=f(`[id="${i}"]`),m=o.getDiagramProps(),x=o.getState(),h=`em-arrowhead-${i}`,g=s.emArrowhead??"#000000";x.sortedSwimlanesArray.forEach(he(c,x.maxR,m,s)),x.boxes.forEach(xe(c,m)),x.relations.forEach(ge(c,m,h,s)),c.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",g),Ua(void 0,c,l?.padding??30,l?.useMaxWidth)},"draw"),Ae={draw:Ee},$e=t((e)=>"","getStyles"),Re=$e,Ue={parser:ke,db:T,renderer:Ae,styles:Re};export{Ue as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import{t,k,G,A,R,I,L,D,P,N,u,Q,Tt,g}from"./chunk-77pcpdb5.js";var dt=function(){var e=t(function(j,i,n,s){for(n=n||{},s=j.length;s--;n[j[s]]=i);return n},"o"),y=[1,4],r=[1,14],l=[1,12],o=[1,13],f=[6,7,8],m=[1,20],d=[1,18],x=[1,19],c=[6,7,11],_=[1,6,13,14],b=[1,23],S=[1,24],E=[1,6,7,11,13,14],U={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},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,2],[12,1],[12,1],[12,1]],performAction:t(function(i,n,s,h,p,a,T){var v=a.length-1;switch(p){case 6:case 7:return h;case 15:h.addNode(a[v-1].length,a[v].trim());break;case 16:h.addNode(0,a[v].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:y},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:y},{6:r,7:[1,10],9:9,12:11,13:l,14:o},e(f,[2,3]),{1:[2,2]},e(f,[2,4]),e(f,[2,5]),{1:[2,6],6:r,12:15,13:l,14:o},{6:r,9:16,12:11,13:l,14:o},{6:m,7:d,10:17,11:x},e(c,[2,18],{14:[1,21]}),e(c,[2,16]),e(c,[2,17]),{6:m,7:d,10:22,11:x},{1:[2,7],6:r,12:15,13:l,14:o},e(_,[2,14],{7:b,11:S}),e(E,[2,8]),e(E,[2,9]),e(E,[2,10]),e(c,[2,15]),e(_,[2,13],{7:b,11:S}),e(E,[2,11]),e(E,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(i,n){if(n.recoverable)this.trace(i);else{var s=Error(i);throw s.hash=n,s}},"parseError"),parse:t(function(i){var n=this,s=[0],h=[],p=[null],a=[],T=this.table,v="",V=0,M=0,C=0,W=2,X=1,rt=a.slice.call(arguments,1),w=Object.create(this.lexer),B={yy:{}};for(var K in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,K))B.yy[K]=this.yy[K];if(w.setInput(i,B.yy),B.yy.lexer=w,B.yy.parser=this,typeof w.yylloc>"u")w.yylloc={};var q=w.yylloc;a.push(q);var lt=w.options&&w.options.ranges;if(typeof B.yy.parseError==="function")this.parseError=B.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function xt(H){s.length=s.length-2*H,p.length=p.length-H,a.length=a.length-H}t(xt,"popStack");function yt(){var H=h.pop()||w.lex()||X;if(typeof H!=="number"){if(H instanceof Array)h=H,H=h.pop();H=n.symbols_[H]||H}return H}t(yt,"lex");var F,ot,J,z,Rt,ht,tt={},st,Y,ft,nt;while(!0){if(J=s[s.length-1],this.defaultActions[J])z=this.defaultActions[J];else{if(F===null||typeof F>"u")F=yt();z=T[J]&&T[J][F]}if(typeof z>"u"||!z.length||!z[0]){var ct="";nt=[];for(st in T[J])if(this.terminals_[st]&&st>W)nt.push("'"+this.terminals_[st]+"'");if(w.showPosition)ct="Parse error on line "+(V+1)+`:
|
|
2
|
+
`+w.showPosition()+`
|
|
3
|
+
Expecting `+nt.join(", ")+", got '"+(this.terminals_[F]||F)+"'";else ct="Parse error on line "+(V+1)+": Unexpected "+(F==X?"end of input":"'"+(this.terminals_[F]||F)+"'");this.parseError(ct,{text:w.match,token:this.terminals_[F]||F,line:w.yylineno,loc:q,expected:nt})}if(z[0]instanceof Array&&z.length>1)throw Error("Parse Error: multiple actions possible at state: "+J+", token: "+F);switch(z[0]){case 1:if(s.push(F),p.push(w.yytext),a.push(w.yylloc),s.push(z[1]),F=null,!ot){if(M=w.yyleng,v=w.yytext,V=w.yylineno,q=w.yylloc,C>0)C--}else F=ot,ot=null;break;case 2:if(Y=this.productions_[z[1]][1],tt.$=p[p.length-Y],tt._$={first_line:a[a.length-(Y||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(Y||1)].first_column,last_column:a[a.length-1].last_column},lt)tt._$.range=[a[a.length-(Y||1)].range[0],a[a.length-1].range[1]];if(ht=this.performAction.apply(tt,[v,M,V,B.yy,z[1],p,a].concat(rt)),typeof ht<"u")return ht;if(Y)s=s.slice(0,-1*Y*2),p=p.slice(0,-1*Y),a=a.slice(0,-1*Y);s.push(this.productions_[z[1]][0]),p.push(tt.$),a.push(tt._$),ft=T[s[s.length-2]][s[s.length-1]],s.push(ft);break;case 3:return!0}}return!0},"parse")},Z=function(){var j={EOF:1,parseError:t(function(n,s){if(this.yy.parser)this.yy.parser.parseError(n,s);else throw Error(n)},"parseError"),setInput:t(function(i,n){if(this.yy=n||this.yy||{},this._input=i,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 i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);if(n)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),i},"input"),unput:t(function(i){var n=i.length,s=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var h=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1)this.yylineno-=s.length-1;var p=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===h.length?this.yylloc.first_column:0)+h[h.length-s.length].length-s[0].length:this.yylloc.first_column-n},this.options.ranges)this.yylloc.range=[p[0],p[0]+this.yyleng-n];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(i){this.unput(this.match.slice(i))},"less"),pastInput:t(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var i=this.match;if(i.length<20)i+=this._input.substr(0,20-i.length);return(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var i=this.pastInput(),n=Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
5
|
+
`+n+"^"},"showPosition"),test_match:t(function(i,n){var s,h,p;if(this.options.backtrack_lexer){if(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)p.yylloc.range=this.yylloc.range.slice(0)}if(h=i[0].match(/(?:\r\n?|\n).*/g),h)this.yylineno+=h.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],s=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(s)return s;else if(this._backtrack){for(var a in p)this[a]=p[a];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var i,n,s,h;if(!this._more)this.yytext="",this.match="";var p=this._currentRules();for(var a=0;a<p.length;a++)if(s=this._input.match(this.rules[p[a]]),s&&(!n||s[0].length>n[0].length)){if(n=s,h=a,this.options.backtrack_lexer)if(i=this.test_match(s,p[a]),i!==!1)return i;else if(this._backtrack){n=!1;continue}else return!1;else if(!this.options.flex)break}if(n){if(i=this.test_match(n,p[h]),i!==!1)return i;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 n=this.next();if(n)return n;else return this.lex()},"lex"),begin:t(function(n){this.conditionStack.push(n)},"begin"),popState:t(function(){var n=this.conditionStack.length-1;if(n>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(n){if(n=this.conditionStack.length-1-Math.abs(n||0),n>=0)return this.conditionStack[n];else return"INITIAL"},"topState"),pushState:t(function(n){this.begin(n)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(n,s,h,p){var a=p;switch(h){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return j}();U.lexer=Z;function O(){this.yy={}}return t(O,"Parser"),O.prototype=U,U.Parser=O,new O}();dt.parser=dt;var vt=dt,St=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{t(this,"IshikawaDB")}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,A()}getRoot(){return this.root}addNode(e,y){let r=k.sanitizeText(y,u());if(!this.root){this.root={text:r,children:[]},this.stack=[{level:0,node:this.root}],P(r);return}this.baseLevel??=e;let l=e-this.baseLevel+1;if(l<=0)l=1;while(this.stack.length>1&&this.stack[this.stack.length-1].level>=l)this.stack.pop();let o=this.stack[this.stack.length-1].node,f={text:r,children:[]};o.children.push(f),this.stack.push({level:l,node:f})}getAccTitle(){return I()}setAccTitle(e){R(e)}getAccDescription(){return D()}setAccDescription(e){L(e)}getDiagramTitle(){return N()}setDiagramTitle(e){P(e)}},Et=14,et=250,$t=30,At=60,It=5,bt=82*Math.PI/180,pt=Math.cos(bt),gt=Math.sin(bt),kt=t((e,y,r)=>{let l=e.node().getBBox(),o=l.width+y*2,f=l.height+y*2;G(e,f,o,r),e.attr("viewBox",`${l.x-y} ${l.y-y} ${o} ${f}`)},"applyPaddedViewBox"),Lt=t((e,y,r,l)=>{let f=l.db.getRoot();if(!f)return;let m=u(),{look:d,handDrawnSeed:x,themeVariables:c}=m,_=Tt(m.fontSize)[0]??Et,b=d==="handDrawn",S=f.children??[],E=m.ishikawa?.diagramPadding??20,U=m.ishikawa?.useMaxWidth??!1,Z=Q(y),O=Z.append("g").attr("class","ishikawa"),j=b?g.svg(Z.node()):void 0,i=j?{roughSvg:j,seed:x??0,lineColor:c?.lineColor??"#333",fillColor:c?.mainBkg??"#fff"}:void 0,n=`ishikawa-arrow-${y}`;if(!b)O.append("defs").append("marker").attr("id",n).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let s=0,h=et,p=b?void 0:it(O,s,h,s,h,"ishikawa-spine");if(Mt(O,s,h,f.text,_,i),!S.length){if(b)it(O,s,h,s,h,"ishikawa-spine",i);kt(Z,E,U);return}s-=20;let a=S.filter((w,B)=>B%2===0),T=S.filter((w,B)=>B%2===1),v=mt(a),V=mt(T),M=v.total+V.total,C=et,W=et;if(M>0){let w=et*2,B=et*0.3;C=Math.max(B,w*(v.total/M)),W=Math.max(B,w*(V.total/M))}let X=_*2;if(C=Math.max(C,v.max*X),W=Math.max(W,V.max*X),h=Math.max(C,et),p)p.attr("y1",h).attr("y2",h);O.select(".ishikawa-head-group").attr("transform",`translate(0,${h})`);let rt=Math.ceil(S.length/2);for(let w=0;w<rt;w++){let B=O.append("g").attr("class","ishikawa-pair");for(let[K,q,lt]of[[S[w*2],-1,C],[S[w*2+1],1,W]])if(K)Nt(B,K,s,h,q,lt,_,i);s=B.selectAll("text").nodes().reduce((K,q)=>Math.min(K,q.getBBox().x),1/0)}if(b)it(O,s,h,0,h,"ishikawa-spine",i);else{p.attr("x1",s);let w=`url(#${n})`;O.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",w)}kt(Z,E,U)},"draw"),mt=t((e)=>{let y=t((r)=>r.children.reduce((l,o)=>l+1+y(o),0),"countDescendants");return e.reduce((r,l)=>{let o=y(l);return r.total+=o,r.max=Math.max(r.max,o),r},{total:0,max:0})},"sideStats"),Mt=t((e,y,r,l,o,f)=>{let m=Math.max(6,Math.floor(110/(o*0.6))),d=e.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${y},${r})`),x=at(d,_t(l,m),0,0,"ishikawa-head-label","start",o),c=x.node().getBBox(),_=Math.max(60,c.width+6),b=Math.max(40,c.height*2+40),S=`M 0 ${-b/2} L 0 ${b/2} Q ${_*2.4} 0 0 ${-b/2} Z`;if(f){let E=f.roughSvg.path(S,{roughness:1.5,seed:f.seed,fill:f.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:f.lineColor,strokeWidth:2});d.insert(()=>E,":first-child").attr("class","ishikawa-head")}else d.insert("path",":first-child").attr("class","ishikawa-head").attr("d",S);x.attr("transform",`translate(${(_-c.width)/2-c.x+3},${-c.y-c.height/2})`)},"drawHead"),Pt=t((e,y)=>{let r=[],l=[],o=t((f,m,d)=>{let x=y===-1?[...f].reverse():f;for(let c of x){let _=r.length,b=c.children??[];if(r.push({depth:d,text:_t(c.text,15),parentIndex:m,childCount:b.length}),d%2===0){if(l.push(_),b.length)o(b,_,d+1)}else{if(b.length)o(b,_,d+1);l.push(_)}}},"walk");return o(e,-1,2),{entries:r,yOrder:l}},"flattenTree"),Bt=t((e,y,r,l,o,f,m)=>{let d=e.append("g").attr("class","ishikawa-label-group"),c=at(d,y,r,l+11*o,"ishikawa-label cause","middle",f).node().getBBox();if(m){let _=m.roughSvg.rectangle(c.x-20,c.y-2,c.width+40,c.height+4,{roughness:1.5,seed:m.seed,fill:m.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:m.lineColor,strokeWidth:2});d.insert(()=>_,":first-child").attr("class","ishikawa-label-box")}else d.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",c.x-20).attr("y",c.y-2).attr("width",c.width+40).attr("height",c.height+4)},"drawCauseLabel"),ut=t((e,y,r,l,o,f)=>{let m=Math.sqrt(l*l+o*o);if(m===0)return;let d=l/m,x=o/m,c=6,_=-x*c,b=d*c,S=y,E=r,U=`M ${S} ${E} L ${S-d*c*2+_} ${E-x*c*2+b} L ${S-d*c*2-_} ${E-x*c*2-b} Z`,Z=f.roughSvg.path(U,{roughness:1,seed:f.seed,fill:f.lineColor,fillStyle:"solid",stroke:f.lineColor,strokeWidth:1});e.append(()=>Z)},"drawArrowMarker"),Nt=t((e,y,r,l,o,f,m,d)=>{let x=y.children??[],c=f*(x.length?1:0.2),_=-pt*c,b=gt*c*o,S=r+_,E=l+b;if(it(e,r,l,S,E,"ishikawa-branch",d),d)ut(e,r,l,r-S,l-E,d);if(Bt(e,y.text,S,E,o,m,d),!x.length)return;let{entries:U,yOrder:Z}=Pt(x,o),O=U.length,j=Array(O);for(let[p,a]of Z.entries())j[a]=l+b*((p+1)/(O+1));let i=new Map;i.set(-1,{x0:r,y0:l,x1:S,y1:E,childCount:x.length,childrenDrawn:0});let n=-pt,s=gt*o,h=o<0?"ishikawa-label up":"ishikawa-label down";for(let[p,a]of U.entries()){let T=j[p],v=i.get(a.parentIndex),V=e.append("g").attr("class","ishikawa-sub-group"),M=0,C=0,W=0;if(a.depth%2===0){let X=v.y1-v.y0;if(M=wt(v.x0,v.x1,X?(T-v.y0)/X:0.5),C=T,W=M-(a.childCount>0?At+a.childCount*It:$t),it(V,M,T,W,T,"ishikawa-sub-branch",d),d)ut(V,M,T,1,0,d);at(V,a.text,W,T,"ishikawa-label align","end",m)}else{let X=v.childrenDrawn++;if(M=wt(v.x0,v.x1,(v.childCount-X)/(v.childCount+1)),C=v.y0,W=M+n*((T-C)/s),it(V,M,C,W,T,"ishikawa-sub-branch",d),d)ut(V,M,C,M-W,C-T,d);at(V,a.text,W,T,h,"end",m)}if(a.childCount>0)i.set(p,{x0:M,y0:C,x1:W,y1:T,childCount:a.childCount,childrenDrawn:0})}},"drawBranch"),Dt=t((e)=>e.split(/<br\s*\/?>|\n/),"splitLines"),_t=t((e,y)=>{if(e.length<=y)return e;let r=[];for(let l of e.split(/\s+/)){let o=r.length-1;if(o>=0&&r[o].length+1+l.length<=y)r[o]+=" "+l;else r.push(l)}return r.join(`
|
|
7
|
+
`)},"wrapText"),at=t((e,y,r,l,o,f,m)=>{let d=Dt(y),x=m*1.05,c=e.append("text").attr("class",o).attr("text-anchor",f).attr("x",r).attr("y",l-(d.length-1)*x/2);for(let[_,b]of d.entries())c.append("tspan").attr("x",r).attr("dy",_===0?0:x).text(b);return c},"drawMultilineText"),wt=t((e,y,r)=>e+(y-e)*r,"lerp"),it=t((e,y,r,l,o,f,m)=>{if(m){let d=m.roughSvg.line(y,r,l,o,{roughness:1.5,seed:m.seed,stroke:m.lineColor,strokeWidth:2});e.append(()=>d).attr("class",f);return}return e.append("line").attr("class",f).attr("x1",y).attr("y1",r).attr("x2",l).attr("y2",o)},"drawLine"),Ot={draw:Lt},Ct=t((e)=>`
|
|
8
|
+
.ishikawa .ishikawa-spine,
|
|
9
|
+
.ishikawa .ishikawa-branch,
|
|
10
|
+
.ishikawa .ishikawa-sub-branch {
|
|
11
|
+
stroke: ${e.lineColor};
|
|
12
|
+
stroke-width: 2;
|
|
13
|
+
fill: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ishikawa .ishikawa-sub-branch {
|
|
17
|
+
stroke-width: 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ishikawa .ishikawa-arrow {
|
|
21
|
+
fill: ${e.lineColor};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ishikawa .ishikawa-head {
|
|
25
|
+
fill: ${e.mainBkg};
|
|
26
|
+
stroke: ${e.lineColor};
|
|
27
|
+
stroke-width: 2;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.ishikawa .ishikawa-label-box {
|
|
31
|
+
fill: ${e.mainBkg};
|
|
32
|
+
stroke: ${e.lineColor};
|
|
33
|
+
stroke-width: 2;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ishikawa text {
|
|
37
|
+
font-family: ${e.fontFamily};
|
|
38
|
+
font-size: ${e.fontSize};
|
|
39
|
+
fill: ${e.textColor};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.ishikawa .ishikawa-head-label {
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
text-anchor: middle;
|
|
45
|
+
dominant-baseline: middle;
|
|
46
|
+
font-size: 14px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.ishikawa .ishikawa-label {
|
|
50
|
+
text-anchor: end;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ishikawa .ishikawa-label.cause {
|
|
54
|
+
text-anchor: middle;
|
|
55
|
+
dominant-baseline: middle;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.ishikawa .ishikawa-label.align {
|
|
59
|
+
text-anchor: end;
|
|
60
|
+
dominant-baseline: middle;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ishikawa .ishikawa-label.up {
|
|
64
|
+
dominant-baseline: baseline;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.ishikawa .ishikawa-label.down {
|
|
68
|
+
dominant-baseline: hanging;
|
|
69
|
+
}
|
|
70
|
+
`,"getStyles"),Vt=Ct,Ut={parser:vt,get db(){return new St},renderer:Ot,styles:Vt};export{Ut as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,a}from"./chunk-77pcpdb5.js";import{he,Sn,Tn}from"./chunk-s5kbbker.js";import{re}from"./chunk-svxkg8n3.js";import{_a,fn}from"./chunk-22ncha3b.js";var o=_a().Railroad.parser.LangiumParser,n=t((e)=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{let r=e.elements.map(n);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{let r=e.alternatives.map(n);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:n(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:n(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:n(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),l=t((e)=>({name:e.name,definition:n(e.definition)}),"transformRule"),s=t((e)=>{if(re(e,he),e.title)he.setTitle(e.title);e.rules.map((r)=>he.addRule(l(r)))},"populateDb"),m={parse:t((e)=>{he.clear(),a.debug("[Railroad Parser] Starting Langium parse");let r=o.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new fn(r);let i=r.value;a.debug("[Railroad Parser] Parsed rules:",i.rules.length),s(i),a.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:he}},R={parser:m,db:he,renderer:Tn,styles:Sn};export{R as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o,i,r,h,e,n,d,Dt,Z,oe,w,l,x,te,ue,ls,st,fe,Fi}from"./chunk-jtwct1bx.js";var P=30;function W(t){let m=new Date(t),b=new Date,c=new Date(m.getFullYear(),m.getMonth(),m.getDate()).getTime(),v=new Date(b.getFullYear(),b.getMonth(),b.getDate()).getTime(),u=86400000,p=Math.round((v-c)/86400000),g=`${m.getMonth()+1}月${m.getDate()}日`;if(p===0)return`今天 · ${g}`;if(p===1)return`昨天 · ${g}`;if(p>1&&p<7)return`${p} 天前 · ${g}`;if(m.getFullYear()===b.getFullYear())return g;return`${m.getFullYear()}年${g}`}function q(t){if(!t)return"";let m=new Date(t),b=(u)=>String(u).padStart(2,"0"),c=b(m.getHours()),v=b(m.getMinutes());return`${c}:${v}`}function Q(t){if(!t)return"";return new Date(t).toLocaleString()}function V(t,m=t.length){let b=[],c=new Map;for(let v=0;v<t.length;v++){let u=t[v];if(!u)continue;let p=u.archivedAt??0,g=new Date(p),D=`${g.getFullYear()}-${g.getMonth()+1}-${g.getDate()}`,N=c.get(D);if(!N){if(v>=m)continue;N={key:D,title:W(p),total:0,sessions:[]},c.set(D,N),b.push(N)}if(N.total+=1,v<m)N.sessions.push(u)}return b}function le(t){w();let[m,b]=r(""),[c,v]=r(!1),[u,p]=r(new Set),[g,D]=r(!1),N=i(null),S=oe(t.conn.state),A=t.projectID??"chat",T=t.projectID?t.projects.find((s)=>s.id===t.projectID)?.name??"项目":"聊天",I=Fi(t.sessions,A),f=Fi(I,A,m),z=`${A}\x00${m.trim().toLocaleLowerCase()}`,[F,R]=r({key:z,count:P}),O=F.key===z?F.count:P,B=Math.min(O,f.length),L=B<f.length;o(()=>{let s=N.current;if(!s||!L||typeof IntersectionObserver>"u")return;let y=s.closest(".minimal-scroll-area"),a=new IntersectionObserver((j)=>{if(j.some((M)=>M.isIntersecting))R({key:z,count:Math.min(f.length,B+P)})},{root:y,rootMargin:"320px 0px"});return a.observe(s),()=>a.disconnect()},[z,L,B,f.length]);let E=f.filter((s)=>u.has(s.id)),C=f.length>0&&u.size===f.length;function H(){if(C)p(new Set);else p(new Set(f.map((s)=>s.id)))}function Y(s){p((y)=>{let a=new Set(y);if(a.has(s))a.delete(s);else a.add(s);return a})}async function G(s){if(s.length===0||g)return;D(!0);try{if(t.onBatchDelete)await t.onBatchDelete(s);else for(let y of s)t.onDelete(y);if(p(new Set),c&&s.length===f.length)v(!1)}finally{D(!1)}}async function _(s){if(s.length===0||g)return;D(!0);try{if(t.onBatchRestore)await t.onBatchRestore(s);else for(let y of s)t.onRestore(y);if(p(new Set),c&&s.length===f.length)v(!1)}finally{D(!1)}}function K(){if(S.indexError)return n("div",{role:"alert",className:"animate-fade space-y-2 rounded-2xl border border-danger/20 bg-danger/5 p-6 text-sm text-danger",children:[n("p",{children:["加载失败:",S.indexError]}),e(x,{loading:S.indexLoading,disabled:S.indexLoading,onClick:()=>{if(!t.conn.state.get().indexLoading)t.conn.refreshIndex()},children:"重试"})]});if(S.status!=="open"||S.indexLoading)return e("div",{className:"flex justify-center py-12 text-xs text-faint",children:"正在连接…"});if(f.length===0)return n("div",{className:l("surface.emptyDashed","animate-fade"),children:[e("div",{className:"grid size-11 place-items-center rounded-xl bg-raised text-dim",children:e(Dt,{className:"size-5"})}),n("div",{children:[e("p",{className:"text-[15px] font-medium",children:I.length===0?`${T}里暂无归档会话`:"没有匹配结果"}),e("p",{className:"mt-1 text-sm text-dim",children:I.length===0?"归档的会话会安全存放在这里,不干扰日常列表。":"尝试更换关键词重新搜索。"})]})]});let s=V(f,B);return n("div",{className:"space-y-6 animate-fade",children:[s.map((y)=>n("section",{className:"space-y-2",children:[n("div",{className:"flex items-center justify-between px-1 text-xs text-dim",children:[e("h2",{className:"font-medium text-ink",children:y.title}),n("span",{className:"tabular-nums text-faint",children:[y.total," 个会话"]})]}),e("div",{className:l("settings.groupBox"),children:e("ul",{className:"divide-y divide-line/60",children:y.sessions.map((a)=>{let j=u.has(a.id),M=t.projects.find((k)=>k.id===a.projectID)?.name;return n("li",{tabIndex:c?0:void 0,className:d("group flex flex-wrap items-center justify-between gap-x-3 gap-y-1 px-4 py-2.5 transition-colors sm:flex-nowrap",c?"cursor-pointer hover:bg-raised/70 focus:outline-hidden focus:bg-raised/70":"hover:bg-raised/50",c&&j&&"bg-accent/5"),onClick:c?()=>Y(a.id):void 0,onKeyDown:c?(k)=>{if(k.key==="Enter"||k.key===" ")k.preventDefault(),Y(a.id)}:void 0,children:[n("div",{className:"flex min-w-0 flex-1 basis-48 items-center gap-2.5",children:[c&&e("span",{className:d("flex size-4 shrink-0 items-center justify-center rounded-md border transition-colors",j?"border-accent bg-accent text-accent-ink":"border-line-strong bg-panel"),children:j&&e(Z,{className:"size-3",strokeWidth:3})}),e(st,{modelID:a.model,className:"size-4 shrink-0 text-dim"}),e("button",{type:"button",disabled:c,className:d("block max-w-full truncate text-left text-sm font-medium text-ink transition-colors focus:outline-hidden",!c&&"hover:text-accent"),onClick:()=>!c&&t.onOpen(a.id),children:fe(a)}),M&&e("span",{className:l("control.badge","shrink-0 text-[11px] text-dim"),children:M})]}),n("div",{className:"flex shrink-0 items-center justify-end gap-1.5 sm:grid sm:justify-items-end",children:[e("time",{dateTime:a.archivedAt?new Date(a.archivedAt).toISOString():void 0,title:a.archivedAt?`归档于 ${Q(a.archivedAt)}`:void 0,className:d("text-xs tabular-nums text-faint cursor-default sm:col-start-1 sm:row-start-1",!c&&"transition-opacity sm:group-hover:opacity-0 sm:group-focus-within:opacity-0"),children:q(a.archivedAt)}),!c&&n("div",{className:"flex items-center gap-1.5 opacity-90 transition-opacity sm:pointer-events-none sm:col-start-1 sm:row-start-1 sm:opacity-0 sm:group-hover:pointer-events-auto sm:group-hover:opacity-100 sm:group-focus-within:pointer-events-auto sm:group-focus-within:opacity-100",children:[e(x,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs",disabled:t.pending.has(a.id),onClick:(k)=>{k.stopPropagation(),t.onRestore(a)},children:"恢复"}),e(x,{size:"sm",variant:"danger-ghost",className:"h-7 px-2 text-xs",disabled:t.pending.has(a.id),onClick:(k)=>{k.stopPropagation(),t.onDelete(a)},children:"永久删除"})]})]})]},a.id)})})})]},y.key)),L&&n("div",{ref:N,className:"flex items-center justify-between rounded-xl border border-line/60 bg-panel/40 px-4 py-2.5 text-xs text-faint",children:[n("span",{className:"tabular-nums",children:["已显示 ",B," / ",f.length," 个会话"]}),n("div",{className:"flex items-center gap-1.5",children:[e(x,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs",onClick:()=>R({key:z,count:Math.min(f.length,B+P)}),children:"加载更多"}),e(x,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs",onClick:()=>R({key:z,count:f.length}),children:"显示全部"})]})]})]})}return n(ls,{"aria-label":"已归档会话",title:n(h,{children:["已归档 ",n("span",{className:"text-dim",children:["· ",T]})]}),description:"浏览和管理已归档的会话,可随时恢复到聊天列表或彻底删除。",children:[n("div",{className:"mb-6 space-y-2",children:[e(ue,{label:"搜索标题",children:(s)=>e(te,{id:s,value:m,onChange:(y)=>b(y.target.value),placeholder:"搜索归档会话…"})}),I.length>0&&(c?n("div",{className:"flex flex-wrap items-center justify-between gap-2 rounded-xl border border-line bg-panel p-2.5 shadow-xs",children:[n("button",{type:"button",className:"flex items-center gap-2 text-xs font-medium text-ink hover:text-accent focus:outline-hidden",onClick:H,children:[n("span",{className:d("flex size-4 shrink-0 items-center justify-center rounded-md border transition-colors",C?"border-accent bg-accent text-accent-ink":u.size>0?"border-accent bg-accent/20 text-accent":"border-line-strong bg-panel"),children:[C&&e(Z,{className:"size-3",strokeWidth:3}),!C&&u.size>0&&e("span",{className:"size-1.5 rounded-xs bg-accent"})]}),n("span",{children:[C?"取消全选":"全选",n("span",{className:"ml-1 text-dim",children:["(",u.size,"/",f.length,")"]})]})]}),n("div",{className:"flex items-center gap-2",children:[n(x,{size:"sm",variant:"secondary",className:"h-7 px-2.5 text-xs",loading:g,disabled:u.size===0||g,onClick:()=>void _(E),children:["批量恢复",u.size>0?` (${u.size})`:""]}),n(x,{size:"sm",variant:"danger",className:"h-7 px-2.5 text-xs",loading:g,disabled:u.size===0||g,onClick:()=>void G(E),children:["彻底删除",u.size>0?` (${u.size})`:""]}),e(x,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs",disabled:g,onClick:()=>{v(!1),p(new Set)},children:"退出管理"})]})]}):n("div",{className:"flex items-center justify-between px-0.5 text-xs text-dim",children:[e("span",{children:m.trim()?`匹配 ${f.length} 个会话(共 ${I.length} 个)`:`共 ${I.length} 个归档会话`}),f.length>0&&n("div",{className:"flex items-center gap-2",children:[e(x,{size:"sm",variant:"ghost",className:"h-7 px-2 text-xs",onClick:()=>v(!0),children:"批量管理"}),e(x,{size:"sm",variant:"danger-ghost",className:"h-7 px-2 text-xs",onClick:()=>void G(f),children:m.trim()?"清空匹配结果":"清空全部"})]})]}))]}),K()]})}export{le as ArchivePage};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-77pcpdb5.js";import"./chunk-1q4r17he.js";import"./chunk-3fq54zbf.js";import{tl}from"./chunk-bka3pbzn.js";export{tl as render};
|
|
Binary file
|
|
Binary file
|