@bkm016/basalt 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{chunk-9ymm1gge.js → chunk-9jtvj8md.js} +202 -202
- package/compiled.js +1 -1
- package/package.json +1 -1
- package/web/{chunk-75meb0dh.js → chunk-013et20n.js} +2 -2
- package/web/chunk-013et20n.js.br +0 -0
- package/web/chunk-013et20n.js.gz +0 -0
- package/web/chunk-0ernj3c0.js +1 -0
- package/web/chunk-0ernj3c0.js.br +0 -0
- package/web/chunk-0ernj3c0.js.gz +0 -0
- package/web/chunk-0j65yg1p.js +1 -0
- package/web/chunk-0j65yg1p.js.br +0 -0
- package/web/chunk-0j65yg1p.js.gz +0 -0
- package/web/chunk-0khcpaa8.js +1 -0
- package/web/chunk-0khcpaa8.js.br +0 -0
- package/web/chunk-0khcpaa8.js.gz +0 -0
- package/web/chunk-0wbdd74r.js +1 -0
- package/web/chunk-0wbdd74r.js.br +2 -0
- package/web/chunk-0wbdd74r.js.gz +0 -0
- package/web/chunk-1f2wvhq9.js +1 -0
- package/web/chunk-1f2wvhq9.js.br +0 -0
- package/web/chunk-1f2wvhq9.js.gz +0 -0
- package/web/{chunk-75kzvpf3.js → chunk-1q2kmv35.js} +18 -18
- package/web/chunk-1q2kmv35.js.br +0 -0
- package/web/chunk-1q2kmv35.js.gz +0 -0
- package/web/{chunk-36e78034.js → chunk-1tfrm3pk.js} +2 -2
- package/web/chunk-1tfrm3pk.js.br +0 -0
- package/web/chunk-1tfrm3pk.js.gz +0 -0
- package/web/chunk-2qt5fy5n.js +1 -0
- package/web/chunk-2qt5fy5n.js.br +0 -0
- package/web/chunk-2qt5fy5n.js.gz +0 -0
- package/web/chunk-2sxtb709.js +1 -0
- package/web/chunk-2sxtb709.js.br +0 -0
- package/web/chunk-2sxtb709.js.gz +0 -0
- package/web/chunk-2wrwm0qe.js +1 -0
- package/web/chunk-2wrwm0qe.js.br +0 -0
- package/web/chunk-2wrwm0qe.js.gz +0 -0
- package/web/{chunk-5sss3r97.js → chunk-2wwj27b9.js} +3 -3
- package/web/chunk-2wwj27b9.js.br +0 -0
- package/web/chunk-2wwj27b9.js.gz +0 -0
- package/web/chunk-33mmrjdp.js +1 -0
- package/web/chunk-33mmrjdp.js.br +2 -0
- package/web/chunk-33mmrjdp.js.gz +0 -0
- package/web/chunk-33tb7q04.js +2 -0
- package/web/chunk-33tb7q04.js.br +0 -0
- package/web/chunk-33tb7q04.js.gz +0 -0
- package/web/chunk-3txb4sha.js +1 -0
- package/web/chunk-3txb4sha.js.br +0 -0
- package/web/chunk-3txb4sha.js.gz +0 -0
- package/web/{chunk-n3f5a91k.js → chunk-3xgfsx7y.js} +2 -2
- package/web/chunk-3xgfsx7y.js.br +0 -0
- package/web/chunk-3xgfsx7y.js.gz +0 -0
- package/web/chunk-40jka4r7.js +2 -0
- package/web/chunk-40jka4r7.js.br +0 -0
- package/web/chunk-40jka4r7.js.gz +0 -0
- package/web/{chunk-mcm3t5wr.js → chunk-41vh5n86.js} +1 -1
- package/web/chunk-41vh5n86.js.br +0 -0
- package/web/chunk-41vh5n86.js.gz +0 -0
- package/web/chunk-4wd9r73y.js.br +0 -0
- package/web/chunk-4wd9r73y.js.gz +0 -0
- package/web/chunk-5kz048x3.js +2 -0
- package/web/chunk-5kz048x3.js.br +0 -0
- package/web/chunk-5kz048x3.js.gz +0 -0
- package/web/chunk-5mbz8yj9.js +3 -0
- package/web/chunk-5mbz8yj9.js.br +0 -0
- package/web/chunk-5mbz8yj9.js.gz +0 -0
- package/web/chunk-6024wfxb.js +30 -0
- package/web/chunk-6024wfxb.js.br +0 -0
- package/web/chunk-6024wfxb.js.gz +0 -0
- package/web/chunk-6ey4c6gw.js +2 -0
- package/web/chunk-6ey4c6gw.js.br +0 -0
- package/web/chunk-6ey4c6gw.js.gz +0 -0
- package/web/chunk-6q3p851n.js +1 -0
- package/web/chunk-6q3p851n.js.br +2 -0
- package/web/chunk-6q3p851n.js.gz +0 -0
- package/web/{chunk-qbhv18t0.js → chunk-74g3wh08.js} +2 -2
- package/web/chunk-74g3wh08.js.br +0 -0
- package/web/chunk-74g3wh08.js.gz +0 -0
- package/web/{chunk-vcnsvj49.js → chunk-78akzkgs.js} +14 -14
- package/web/chunk-78akzkgs.js.br +0 -0
- package/web/chunk-78akzkgs.js.gz +0 -0
- package/web/chunk-7ck99bsp.js +62 -0
- package/web/chunk-7ck99bsp.js.br +0 -0
- package/web/chunk-7ck99bsp.js.gz +0 -0
- package/web/chunk-7fjbyns9.js +1 -0
- package/web/chunk-7fjbyns9.js.br +0 -0
- package/web/chunk-7fjbyns9.js.gz +0 -0
- package/web/chunk-7n6b2xra.js +21 -0
- package/web/chunk-7n6b2xra.js.br +0 -0
- package/web/chunk-7n6b2xra.js.gz +0 -0
- package/web/chunk-7p4mcqkd.js +78 -0
- package/web/chunk-7p4mcqkd.js.br +0 -0
- package/web/chunk-7p4mcqkd.js.gz +0 -0
- package/web/chunk-7ztwkhg5.js +1 -0
- package/web/chunk-7ztwkhg5.js.br +0 -0
- package/web/chunk-7ztwkhg5.js.gz +0 -0
- package/web/{chunk-t89tfrpj.js → chunk-823etvc3.js} +19 -19
- package/web/chunk-823etvc3.js.br +0 -0
- package/web/chunk-823etvc3.js.gz +0 -0
- package/web/{chunk-ps489yjy.js → chunk-8ec53vjd.js} +1 -1
- package/web/chunk-8ec53vjd.js.br +0 -0
- package/web/chunk-8ec53vjd.js.gz +0 -0
- package/web/chunk-8g239029.js.br +0 -0
- package/web/chunk-8g239029.js.gz +0 -0
- package/web/{chunk-p0jghn6b.js → chunk-8g55ytgz.js} +1 -1
- package/web/chunk-8g55ytgz.js.br +0 -0
- package/web/chunk-8g55ytgz.js.gz +0 -0
- package/web/chunk-8nxjthxc.js +1 -0
- package/web/chunk-8nxjthxc.js.br +0 -0
- package/web/chunk-8nxjthxc.js.gz +0 -0
- package/web/chunk-8q76yd76.js +291 -0
- package/web/chunk-8q76yd76.js.br +0 -0
- package/web/chunk-8q76yd76.js.gz +0 -0
- package/web/chunk-9kbrjmtz.js +1 -0
- package/web/chunk-9kbrjmtz.js.br +0 -0
- package/web/chunk-9kbrjmtz.js.gz +0 -0
- package/web/chunk-9s4bh6qm.js +40 -0
- package/web/chunk-9s4bh6qm.js.br +0 -0
- package/web/chunk-9s4bh6qm.js.gz +0 -0
- package/web/chunk-9v1f6yc8.js.br +0 -0
- package/web/chunk-9v1f6yc8.js.gz +0 -0
- package/web/{chunk-a205cj09.js → chunk-9vf3zy3d.js} +2 -2
- package/web/chunk-9vf3zy3d.js.br +0 -0
- package/web/chunk-9vf3zy3d.js.gz +0 -0
- package/web/{chunk-ef03t1mb.js → chunk-a449xjq6.js} +6 -6
- package/web/chunk-a449xjq6.js.br +0 -0
- package/web/chunk-a449xjq6.js.gz +0 -0
- package/web/chunk-ad6x47yy.js.br +0 -0
- package/web/chunk-ad6x47yy.js.gz +0 -0
- package/web/chunk-b05eay33.js +1 -0
- package/web/chunk-b05eay33.js.br +0 -0
- package/web/chunk-b05eay33.js.gz +0 -0
- package/web/{chunk-tfsrk2rc.js → chunk-bdypt5mj.js} +55 -55
- package/web/chunk-bdypt5mj.js.br +0 -0
- package/web/chunk-bdypt5mj.js.gz +0 -0
- package/web/chunk-bvyjy17t.js +14 -0
- package/web/chunk-bvyjy17t.js.br +0 -0
- package/web/chunk-bvyjy17t.js.gz +0 -0
- package/web/{chunk-ctmxm4qd.js → chunk-ccy2q2z0.js} +2 -2
- package/web/chunk-ccy2q2z0.js.br +0 -0
- package/web/chunk-ccy2q2z0.js.gz +0 -0
- package/web/{chunk-wvt76598.js → chunk-ceg13tma.js} +2 -2
- package/web/chunk-ceg13tma.js.br +0 -0
- package/web/chunk-ceg13tma.js.gz +0 -0
- package/web/{chunk-z2hvvkf5.js → chunk-ch60a61d.js} +2 -2
- package/web/chunk-ch60a61d.js.br +0 -0
- package/web/chunk-ch60a61d.js.gz +0 -0
- package/web/chunk-czvdg0c5.js +1 -0
- package/web/chunk-czvdg0c5.js.br +0 -0
- package/web/chunk-czvdg0c5.js.gz +0 -0
- package/web/chunk-d18r4m14.js.br +0 -0
- package/web/chunk-d18r4m14.js.gz +0 -0
- package/web/chunk-dmqtdeb4.js.br +0 -0
- package/web/chunk-dmqtdeb4.js.gz +0 -0
- package/web/chunk-drr7mqg2.js +1 -0
- package/web/chunk-drr7mqg2.js.br +0 -0
- package/web/chunk-drr7mqg2.js.gz +0 -0
- package/web/{chunk-chh8bg2h.js → chunk-dsa5m3h6.js} +34 -34
- package/web/chunk-dsa5m3h6.js.br +0 -0
- package/web/chunk-dsa5m3h6.js.gz +0 -0
- package/web/chunk-dww3grm3.js +24 -0
- package/web/chunk-dww3grm3.js.br +0 -0
- package/web/chunk-dww3grm3.js.gz +0 -0
- package/web/chunk-e187gt5x.js +1 -0
- package/web/chunk-e187gt5x.js.br +0 -0
- package/web/chunk-e187gt5x.js.gz +0 -0
- package/web/{chunk-pf65cank.js → chunk-emxa4wv3.js} +2 -2
- package/web/chunk-emxa4wv3.js.br +0 -0
- package/web/chunk-emxa4wv3.js.gz +0 -0
- package/web/{chunk-gjchc4kg.js → chunk-ey0zwvbx.js} +1 -1
- package/web/chunk-ey0zwvbx.js.br +0 -0
- package/web/chunk-ey0zwvbx.js.gz +0 -0
- package/web/chunk-ey14knbn.js +2 -0
- package/web/chunk-ey14knbn.js.br +0 -0
- package/web/chunk-ey14knbn.js.gz +0 -0
- package/web/chunk-fba06jm8.js +1132 -0
- package/web/chunk-fba06jm8.js.br +0 -0
- package/web/chunk-fba06jm8.js.gz +0 -0
- package/web/chunk-fh56vgfx.js +39 -0
- package/web/chunk-fh56vgfx.js.br +0 -0
- package/web/chunk-fh56vgfx.js.gz +0 -0
- package/web/chunk-ft05x3my.js +169 -0
- package/web/chunk-ft05x3my.js.br +0 -0
- package/web/chunk-ft05x3my.js.gz +0 -0
- package/web/chunk-fzmrnh17.js +303 -0
- package/web/chunk-fzmrnh17.js.br +0 -0
- package/web/chunk-fzmrnh17.js.gz +0 -0
- package/web/{chunk-ybqt106a.js → chunk-gbt7asd7.js} +2 -2
- package/web/chunk-gbt7asd7.js.br +0 -0
- package/web/chunk-gbt7asd7.js.gz +0 -0
- package/web/chunk-gh9fkn3t.js +1 -0
- package/web/chunk-gh9fkn3t.js.br +2 -0
- package/web/chunk-gh9fkn3t.js.gz +0 -0
- package/web/{chunk-sd3cdqcm.js → chunk-h1syyjqq.js} +2 -2
- package/web/chunk-h1syyjqq.js.br +0 -0
- package/web/chunk-h1syyjqq.js.gz +0 -0
- package/web/{chunk-mv5axm2y.js → chunk-h7byk4z3.js} +12 -12
- package/web/chunk-h7byk4z3.js.br +0 -0
- package/web/chunk-h7byk4z3.js.gz +0 -0
- package/web/chunk-hby0hkv4.js +1 -0
- package/web/chunk-hby0hkv4.js.br +0 -0
- package/web/chunk-hby0hkv4.js.gz +0 -0
- package/web/chunk-hjvsp2yx.js +1 -0
- package/web/chunk-hjvsp2yx.js.br +0 -0
- package/web/chunk-hjvsp2yx.js.gz +0 -0
- package/web/chunk-hp167dbv.js.br +0 -0
- package/web/chunk-hp167dbv.js.gz +0 -0
- package/web/{chunk-qwwqdmhv.js → chunk-hpjzy5ww.js} +1 -1
- package/web/chunk-hpjzy5ww.js.br +0 -0
- package/web/chunk-hpjzy5ww.js.gz +0 -0
- package/web/{chunk-1np2aamb.js → chunk-hzfp8kqx.js} +11 -11
- package/web/chunk-hzfp8kqx.js.br +0 -0
- package/web/chunk-hzfp8kqx.js.gz +0 -0
- package/web/{chunk-5d9veaef.js → chunk-j6jjk46a.js} +2 -2
- package/web/chunk-j6jjk46a.js.br +0 -0
- package/web/chunk-j6jjk46a.js.gz +0 -0
- package/web/chunk-j8f0m1dq.js +1 -0
- package/web/chunk-j8f0m1dq.js.br +0 -0
- package/web/chunk-j8f0m1dq.js.gz +0 -0
- package/web/{chunk-t9pg7qf8.js → chunk-jc178ad5.js} +2 -2
- package/web/chunk-jc178ad5.js.br +0 -0
- package/web/chunk-jc178ad5.js.gz +0 -0
- package/web/chunk-jcsf0ke5.js +41 -0
- package/web/chunk-jcsf0ke5.js.br +0 -0
- package/web/chunk-jcsf0ke5.js.gz +0 -0
- package/web/chunk-jg43a2xk.js +139 -0
- package/web/chunk-jg43a2xk.js.br +0 -0
- package/web/chunk-jg43a2xk.js.gz +0 -0
- package/web/chunk-jrgdxqtq.js +7 -0
- package/web/chunk-jrgdxqtq.js.br +0 -0
- package/web/chunk-jrgdxqtq.js.gz +0 -0
- package/web/chunk-js8dvtfg.js +2 -0
- package/web/chunk-js8dvtfg.js.br +0 -0
- package/web/chunk-js8dvtfg.js.gz +0 -0
- package/web/chunk-jt0s9qs7.js +1 -0
- package/web/chunk-jt0s9qs7.js.br +0 -0
- package/web/chunk-jt0s9qs7.js.gz +0 -0
- package/web/chunk-jv5faf88.js +34 -0
- package/web/chunk-jv5faf88.js.br +0 -0
- package/web/chunk-jv5faf88.js.gz +0 -0
- package/web/{chunk-vb2z2azk.js → chunk-k295x81w.js} +79 -79
- package/web/chunk-k295x81w.js.br +0 -0
- package/web/chunk-k295x81w.js.gz +0 -0
- package/web/{chunk-wcj3bxdf.js → chunk-k3aa37pw.js} +2 -2
- package/web/chunk-k3aa37pw.js.br +0 -0
- package/web/chunk-k3aa37pw.js.gz +0 -0
- package/web/{chunk-wgmwgaw4.js → chunk-k6wxwgp1.js} +26 -26
- package/web/chunk-k6wxwgp1.js.br +0 -0
- package/web/chunk-k6wxwgp1.js.gz +0 -0
- package/web/chunk-k9vc7kp2.js +292 -0
- package/web/chunk-k9vc7kp2.js.br +0 -0
- package/web/chunk-k9vc7kp2.js.gz +0 -0
- package/web/chunk-kxyws7q7.js +1 -0
- package/web/chunk-kxyws7q7.js.br +0 -0
- package/web/chunk-kxyws7q7.js.gz +0 -0
- package/web/{chunk-c0hdp2zj.js → chunk-mcgf645h.js} +1 -1
- package/web/chunk-mcgf645h.js.br +4 -0
- package/web/chunk-mcgf645h.js.gz +0 -0
- package/web/{chunk-3gj2t10x.js → chunk-mj3tshy8.js} +31 -31
- package/web/chunk-mj3tshy8.js.br +0 -0
- package/web/chunk-mj3tshy8.js.gz +0 -0
- package/web/chunk-mnb2wdvy.js +24 -0
- package/web/chunk-mnb2wdvy.js.br +0 -0
- package/web/chunk-mnb2wdvy.js.gz +0 -0
- package/web/chunk-ndf58dgc.js +1 -0
- package/web/chunk-ndf58dgc.js.br +0 -0
- package/web/chunk-ndf58dgc.js.gz +0 -0
- package/web/chunk-nhpm5nd5.js +2 -0
- package/web/chunk-nhpm5nd5.js.br +0 -0
- package/web/chunk-nhpm5nd5.js.gz +0 -0
- package/web/chunk-nj0cv1cq.js.br +0 -0
- package/web/chunk-nj0cv1cq.js.gz +0 -0
- package/web/{chunk-0zyekjym.js → chunk-nwxjdetb.js} +1 -1
- package/web/chunk-nwxjdetb.js.br +0 -0
- package/web/chunk-nwxjdetb.js.gz +0 -0
- package/web/chunk-nyjfcard.js +106 -0
- package/web/chunk-nyjfcard.js.br +0 -0
- package/web/chunk-nyjfcard.js.gz +0 -0
- package/web/chunk-nzey7cpv.js.br +0 -0
- package/web/chunk-nzey7cpv.js.gz +0 -0
- package/web/{chunk-g8wy9sa6.js → chunk-pcfjcy3a.js} +23 -23
- package/web/chunk-pcfjcy3a.js.br +0 -0
- package/web/chunk-pcfjcy3a.js.gz +0 -0
- package/web/chunk-pry6wdbe.js +1 -0
- package/web/chunk-pry6wdbe.js.br +0 -0
- package/web/chunk-pry6wdbe.js.gz +0 -0
- package/web/chunk-pvahdcgy.js +2 -0
- package/web/chunk-pvahdcgy.js.br +0 -0
- package/web/chunk-pvahdcgy.js.gz +0 -0
- package/web/{chunk-ffn1a0zw.js → chunk-q3njnnef.js} +2 -2
- package/web/chunk-q3njnnef.js.br +0 -0
- package/web/chunk-q3njnnef.js.gz +0 -0
- package/web/chunk-qxvqkkmw.js +1 -0
- package/web/chunk-qxvqkkmw.js.br +0 -0
- package/web/chunk-qxvqkkmw.js.gz +0 -0
- package/web/chunk-qych3sbs.js +1 -0
- package/web/chunk-qych3sbs.js.br +0 -0
- package/web/chunk-qych3sbs.js.gz +0 -0
- package/web/chunk-r1dnh0s8.js.br +0 -0
- package/web/chunk-r1dnh0s8.js.gz +0 -0
- package/web/chunk-r5eakmw6.js.br +0 -0
- package/web/chunk-r5eakmw6.js.gz +0 -0
- package/web/chunk-rbmp2e4b.js +1 -0
- package/web/chunk-rbmp2e4b.js.br +0 -0
- package/web/chunk-rbmp2e4b.js.gz +0 -0
- package/web/chunk-rcre1stj.js +1 -0
- package/web/chunk-rcre1stj.js.br +0 -0
- package/web/chunk-rcre1stj.js.gz +0 -0
- package/web/chunk-rdb6091n.js +89 -0
- package/web/chunk-rdb6091n.js.br +0 -0
- package/web/chunk-rdb6091n.js.gz +0 -0
- package/web/chunk-ryw7xnab.js +1 -0
- package/web/chunk-ryw7xnab.js.br +0 -0
- package/web/chunk-ryw7xnab.js.gz +0 -0
- package/web/{chunk-1hx4xtdk.js → chunk-sbbmy02e.js} +2 -2
- package/web/chunk-sbbmy02e.js.br +0 -0
- package/web/chunk-sbbmy02e.js.gz +0 -0
- package/web/{chunk-s0xy00v5.js → chunk-sgbc835w.js} +2 -2
- package/web/chunk-sgbc835w.js.br +0 -0
- package/web/chunk-sgbc835w.js.gz +0 -0
- package/web/chunk-sydy10mb.js +1 -0
- package/web/chunk-sydy10mb.js.br +0 -0
- package/web/chunk-sydy10mb.js.gz +0 -0
- package/web/chunk-t0ywnp5e.js +1 -0
- package/web/chunk-t0ywnp5e.js.br +0 -0
- package/web/chunk-t0ywnp5e.js.gz +0 -0
- package/web/chunk-t6agpn2z.js.br +0 -0
- package/web/chunk-t6agpn2z.js.gz +0 -0
- package/web/{chunk-hhnhgthx.js → chunk-t72jq97z.js} +2 -2
- package/web/chunk-t72jq97z.js.br +0 -0
- package/web/chunk-t72jq97z.js.gz +0 -0
- package/web/{chunk-6ty9vw27.js → chunk-tfcc9bcz.js} +3 -3
- package/web/chunk-tfcc9bcz.js.br +0 -0
- package/web/chunk-tfcc9bcz.js.gz +0 -0
- package/web/{chunk-27tchdxd.js → chunk-v2bvbgfc.js} +2 -2
- package/web/chunk-v2bvbgfc.js.br +0 -0
- package/web/chunk-v2bvbgfc.js.gz +0 -0
- package/web/{chunk-madrcnm1.js → chunk-v7zq4vc9.js} +5 -5
- package/web/chunk-v7zq4vc9.js.br +0 -0
- package/web/chunk-v7zq4vc9.js.gz +0 -0
- package/web/chunk-vh8pkcem.css.br +0 -0
- package/web/chunk-vh8pkcem.css.gz +0 -0
- package/web/chunk-vq3sby7x.js +1 -0
- package/web/chunk-vq3sby7x.js.br +0 -0
- package/web/chunk-vq3sby7x.js.gz +0 -0
- package/web/{chunk-vvvd3grf.js → chunk-vszya05r.js} +2 -2
- package/web/chunk-vszya05r.js.br +0 -0
- package/web/chunk-vszya05r.js.gz +0 -0
- package/web/chunk-was9xf03.js +8 -0
- package/web/chunk-was9xf03.js.br +0 -0
- package/web/chunk-was9xf03.js.gz +0 -0
- package/web/chunk-we1v1829.js +2 -0
- package/web/chunk-we1v1829.js.br +0 -0
- package/web/chunk-we1v1829.js.gz +0 -0
- package/web/chunk-wfa1c8dn.js +1 -0
- package/web/chunk-wfa1c8dn.js.br +0 -0
- package/web/chunk-wfa1c8dn.js.gz +0 -0
- package/web/chunk-wg2exnxe.js +1 -0
- package/web/chunk-wg2exnxe.js.br +2 -0
- package/web/chunk-wg2exnxe.js.gz +0 -0
- package/web/chunk-wvd3zj1m.js +70 -0
- package/web/chunk-wvd3zj1m.js.br +0 -0
- package/web/chunk-wvd3zj1m.js.gz +0 -0
- package/web/chunk-wzmxtr30.js +1 -0
- package/web/chunk-wzmxtr30.js.br +0 -0
- package/web/chunk-wzmxtr30.js.gz +0 -0
- package/web/chunk-x815g7yp.js +1 -0
- package/web/chunk-x815g7yp.js.br +0 -0
- package/web/chunk-x815g7yp.js.gz +0 -0
- package/web/{chunk-0qnetvsc.js → chunk-x8ps0p82.js} +14 -14
- package/web/chunk-x8ps0p82.js.br +0 -0
- package/web/chunk-x8ps0p82.js.gz +0 -0
- package/web/{chunk-y2ykn1gm.js → chunk-xea3snym.js} +1 -1
- package/web/chunk-xea3snym.js.br +0 -0
- package/web/chunk-xea3snym.js.gz +0 -0
- package/web/chunk-xet1jjy9.js.br +0 -0
- package/web/chunk-xet1jjy9.js.gz +0 -0
- package/web/{chunk-vjnvfb8z.js → chunk-xg4v60m7.js} +1 -1
- package/web/chunk-xg4v60m7.js.br +0 -0
- package/web/chunk-xg4v60m7.js.gz +0 -0
- package/web/chunk-xhr9jrjt.js +89 -0
- package/web/chunk-xhr9jrjt.js.br +0 -0
- package/web/chunk-xhr9jrjt.js.gz +0 -0
- package/web/chunk-xp90g2e7.js +36 -0
- package/web/chunk-xp90g2e7.js.br +0 -0
- package/web/chunk-xp90g2e7.js.gz +0 -0
- package/web/{chunk-e229cr90.js → chunk-xs1g97qa.js} +2 -2
- package/web/chunk-xs1g97qa.js.br +0 -0
- package/web/chunk-xs1g97qa.js.gz +0 -0
- package/web/chunk-xyk1wpr4.js +1 -0
- package/web/chunk-xyk1wpr4.js.br +3 -0
- package/web/chunk-xyk1wpr4.js.gz +0 -0
- package/web/chunk-yavbdwyt.js +1 -0
- package/web/chunk-yavbdwyt.js.br +0 -0
- package/web/chunk-yavbdwyt.js.gz +0 -0
- package/web/chunk-yfnhnsxe.js +4 -0
- package/web/chunk-yfnhnsxe.js.br +0 -0
- package/web/chunk-yfnhnsxe.js.gz +0 -0
- package/web/chunk-yk965yth.js +1 -0
- package/web/chunk-yk965yth.js.br +0 -0
- package/web/chunk-yk965yth.js.gz +0 -0
- package/web/{chunk-c1z290wm.js → chunk-ynhcjhsx.js} +2 -2
- package/web/chunk-ynhcjhsx.js.br +0 -0
- package/web/chunk-ynhcjhsx.js.gz +0 -0
- package/web/chunk-ypmm1gts.js +1 -0
- package/web/chunk-ypmm1gts.js.br +0 -0
- package/web/chunk-ypmm1gts.js.gz +0 -0
- package/web/chunk-yssx5a5q.js +1 -0
- package/web/chunk-yssx5a5q.js.br +0 -0
- package/web/chunk-yssx5a5q.js.gz +0 -0
- package/web/chunk-z09emmrb.js.br +0 -0
- package/web/chunk-z09emmrb.js.gz +0 -0
- package/web/chunk-z0a8cnq8.js +1 -0
- package/web/chunk-z0a8cnq8.js.br +0 -0
- package/web/chunk-z0a8cnq8.js.gz +0 -0
- package/web/{chunk-gaf9brzv.js → chunk-z1afsvbv.js} +2 -2
- package/web/chunk-z1afsvbv.js.br +0 -0
- package/web/chunk-z1afsvbv.js.gz +0 -0
- package/web/{chunk-w60dxtyz.js → chunk-z1ka8jtd.js} +2 -2
- package/web/chunk-z1ka8jtd.js.br +0 -0
- package/web/chunk-z1ka8jtd.js.gz +0 -0
- package/web/chunk-z7tdzen9.js +1 -0
- package/web/chunk-z7tdzen9.js.br +0 -0
- package/web/chunk-z7tdzen9.js.gz +0 -0
- package/web/{chunk-444xfger.js → chunk-zbwjj06m.js} +7 -7
- package/web/chunk-zbwjj06m.js.br +0 -0
- package/web/chunk-zbwjj06m.js.gz +0 -0
- package/web/chunk-zd2j189j.js +1 -0
- package/web/chunk-zd2j189j.js.br +0 -0
- package/web/chunk-zd2j189j.js.gz +0 -0
- package/web/chunk-zfgpq4n4.js +120 -0
- package/web/chunk-zfgpq4n4.js.br +0 -0
- package/web/chunk-zfgpq4n4.js.gz +0 -0
- package/web/chunk-zgas56xw.js +1 -0
- package/web/chunk-zgas56xw.js.br +0 -0
- package/web/chunk-zgas56xw.js.gz +0 -0
- package/web/chunk-zkfepf91.js +1 -0
- package/web/chunk-zkfepf91.js.br +0 -0
- package/web/chunk-zkfepf91.js.gz +0 -0
- package/web/icon-1wgy7kzy.svg.br +0 -0
- package/web/icon-1wgy7kzy.svg.gz +0 -0
- package/web/icon.svg.br +0 -0
- package/web/icon.svg.gz +0 -0
- package/web/index.html +11 -1
- package/web/index.html.br +0 -0
- package/web/index.html.gz +0 -0
- package/web/manifest-txf6vfbq.webmanifest.br +0 -0
- package/web/manifest-txf6vfbq.webmanifest.gz +0 -0
- package/web/manifest.webmanifest.br +0 -0
- package/web/manifest.webmanifest.gz +0 -0
- package/web/sw.js +146 -27
- package/web/sw.js.br +0 -0
- package/web/sw.js.gz +0 -0
- package/web/chunk-0zb330w3.js +0 -89
- package/web/chunk-11byy7vm.js +0 -1
- package/web/chunk-160x5pv7.js +0 -1
- package/web/chunk-19g09ekr.js +0 -40
- package/web/chunk-1gzprnyd.js +0 -1
- package/web/chunk-1je4p601.js +0 -139
- package/web/chunk-1rjtqf8h.js +0 -2
- package/web/chunk-1y387f45.js +0 -1
- package/web/chunk-23258z1r.js +0 -1
- package/web/chunk-27592nd8.js +0 -36
- package/web/chunk-2hqmdqn3.js +0 -41
- package/web/chunk-2q79n966.js +0 -2
- package/web/chunk-2ws74tfa.js +0 -21
- package/web/chunk-2z8epr8f.js +0 -34
- package/web/chunk-4k62e61g.js +0 -291
- package/web/chunk-4z6wma3s.js +0 -78
- package/web/chunk-5wkqqa59.js +0 -1
- package/web/chunk-5yczs6sb.js +0 -1
- package/web/chunk-5yn7mwvt.js +0 -1
- package/web/chunk-705tkt2r.js +0 -1
- package/web/chunk-753qp8sa.js +0 -4
- package/web/chunk-76e3npmd.js +0 -2
- package/web/chunk-7p04dn0k.js +0 -1
- package/web/chunk-7qq1ypvj.js +0 -1
- package/web/chunk-7rb3v8gy.js +0 -1
- package/web/chunk-7yz88k97.js +0 -39
- package/web/chunk-85d7jkp0.js +0 -2
- package/web/chunk-90kgn35s.js +0 -1
- package/web/chunk-931y1g0h.js +0 -1
- package/web/chunk-at0xtfhy.js +0 -1
- package/web/chunk-bcp6na49.js +0 -1145
- package/web/chunk-bz1q7qdd.js +0 -8
- package/web/chunk-c0evk1xy.js +0 -1
- package/web/chunk-cge0cjfm.js +0 -2
- package/web/chunk-e9mmkrc3.js +0 -7
- package/web/chunk-f8nnrk6y.js +0 -292
- package/web/chunk-fcrswzgm.js +0 -106
- package/web/chunk-fw4fa7j6.js +0 -1
- package/web/chunk-fx8hheqz.js +0 -1
- package/web/chunk-gj16e7z0.js +0 -1
- package/web/chunk-h0c42zy3.js +0 -1
- package/web/chunk-h1y8y203.js +0 -1
- package/web/chunk-h6vy008x.js +0 -24
- package/web/chunk-h8mhnze5.js +0 -303
- package/web/chunk-j27mtdr2.js +0 -1
- package/web/chunk-jys02310.js +0 -1
- package/web/chunk-kew13yzg.js +0 -1
- package/web/chunk-kx5r8nf2.js +0 -1
- package/web/chunk-m7c0xk69.js +0 -1
- package/web/chunk-mrnx4f74.js +0 -70
- package/web/chunk-mtdsrtc5.js +0 -1
- package/web/chunk-n3spc397.js +0 -24
- package/web/chunk-nbcpbqq4.js +0 -1
- package/web/chunk-nhc280n0.js +0 -1
- package/web/chunk-nx1bcekh.js +0 -2
- package/web/chunk-p8t7s4z4.js +0 -1
- package/web/chunk-pgh1cx6w.js +0 -1
- package/web/chunk-qgzn0ha5.js +0 -89
- package/web/chunk-qtwxq6hj.js +0 -3
- package/web/chunk-qwp3dhmf.js +0 -1
- package/web/chunk-rjh54ygb.js +0 -120
- package/web/chunk-ryh8jdzy.js +0 -1
- package/web/chunk-s3t8dkkz.js +0 -1
- package/web/chunk-sk1w7f7h.js +0 -1
- package/web/chunk-smkrxjm5.js +0 -1
- package/web/chunk-sv5ph7fa.js +0 -1
- package/web/chunk-t9twxmsg.js +0 -1
- package/web/chunk-tfdchqn4.js +0 -62
- package/web/chunk-tvvggvjt.js +0 -169
- package/web/chunk-ty87gdvr.js +0 -1
- package/web/chunk-v16s0x7c.js +0 -1
- package/web/chunk-vgyp8wa2.js +0 -2
- package/web/chunk-vphzndz8.js +0 -2
- package/web/chunk-xtss82z2.js +0 -1
- package/web/chunk-y0mef85j.js +0 -1
- package/web/chunk-ym9qfsjs.js +0 -30
- package/web/chunk-ypdptddq.js +0 -1
- package/web/chunk-z08c63ph.js +0 -2
- package/web/chunk-z6x74qfh.js +0 -1
- package/web/chunk-z86pjpqp.js +0 -1
- package/web/chunk-zh0vjc6g.js +0 -1
- package/web/chunk-zns9wmab.js +0 -1
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import{t,a,ce,p,m,B,U,ln,u,Q,Ut,jt,bn,un,Xn}from"./chunk-fzmrnh17.js";import{kt}from"./chunk-q3njnnef.js";var se=function(){var e=t(function(A,r,i,o){for(i=i||{},o=A.length;o--;i[A[o]]=r);return i},"o"),d=[1,4],y=[1,13],s=[1,12],b=[1,15],N=[1,16],S=[1,20],h=[1,19],C=[6,7,8],T=[1,26],f=[1,24],P=[1,25],x=[6,7,11],X=[1,31],D=[6,7,11,24],H=[1,6,13,16,17,20,23],k=[1,35],V=[1,36],w=[1,6,7,11,13,16,17,20,23],K=[1,38],j={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:t(function(r,i,o,c,g,n,F){var l=n.length-1;switch(g){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",n[l-1].id),c.addNode(n[l-2].length,n[l-1].id,n[l-1].descr,n[l-1].type,n[l]);break;case 16:c.getLogger().info("Node: ",n[l].id),c.addNode(n[l-1].length,n[l].id,n[l].descr,n[l].type);break;case 17:c.getLogger().trace("Icon: ",n[l]),c.decorateNode({icon:n[l]});break;case 18:case 23:c.decorateNode({class:n[l]});break;case 19:c.getLogger().trace("SPACELIST");break;case 20:c.getLogger().trace("Node: ",n[l-1].id),c.addNode(0,n[l-1].id,n[l-1].descr,n[l-1].type,n[l]);break;case 21:c.getLogger().trace("Node: ",n[l].id),c.addNode(0,n[l].id,n[l].descr,n[l].type);break;case 22:c.decorateNode({icon:n[l]});break;case 27:c.getLogger().trace("node found ..",n[l-2]),this.$={id:n[l-1],descr:n[l-1],type:c.getType(n[l-2],n[l])};break;case 28:this.$={id:n[l],descr:n[l],type:0};break;case 29:c.getLogger().trace("node found ..",n[l-3]),this.$={id:n[l-3],descr:n[l-1],type:c.getType(n[l-2],n[l])};break;case 30:this.$=n[l-1]+n[l];break;case 31:this.$=n[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:d},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:d},{6:y,7:[1,10],9:9,12:11,13:s,14:14,16:b,17:N,18:17,19:18,20:S,23:h},e(C,[2,3]),{1:[2,2]},e(C,[2,4]),e(C,[2,5]),{1:[2,6],6:y,12:21,13:s,14:14,16:b,17:N,18:17,19:18,20:S,23:h},{6:y,9:22,12:11,13:s,14:14,16:b,17:N,18:17,19:18,20:S,23:h},{6:T,7:f,10:23,11:P},e(x,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:S,23:h}),e(x,[2,19]),e(x,[2,21],{15:30,24:X}),e(x,[2,22]),e(x,[2,23]),e(D,[2,25]),e(D,[2,26]),e(D,[2,28],{20:[1,32]}),{21:[1,33]},{6:T,7:f,10:34,11:P},{1:[2,7],6:y,12:21,13:s,14:14,16:b,17:N,18:17,19:18,20:S,23:h},e(H,[2,14],{7:k,11:V}),e(w,[2,8]),e(w,[2,9]),e(w,[2,10]),e(x,[2,16],{15:37,24:X}),e(x,[2,17]),e(x,[2,18]),e(x,[2,20],{24:K}),e(D,[2,31]),{21:[1,39]},{22:[1,40]},e(H,[2,13],{7:k,11:V}),e(w,[2,11]),e(w,[2,12]),e(x,[2,15],{24:K}),e(D,[2,30]),{22:[1,41]},e(D,[2,27]),e(D,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(r,i){if(i.recoverable)this.trace(r);else{var o=Error(r);throw o.hash=i,o}},"parseError"),parse:t(function(r){var i=this,o=[0],c=[],g=[null],n=[],F=this.table,l="",Y=0,he=0,ue=0,be=2,ge=1,ye=n.slice.call(arguments,1),_=Object.create(this.lexer),G={yy:{}};for(var ee in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ee))G.yy[ee]=this.yy[ee];if(_.setInput(r,G.yy),G.yy.lexer=_,G.yy.parser=this,typeof _.yylloc>"u")_.yylloc={};var te=_.yylloc;n.push(te);var me=_.options&&_.options.ranges;if(typeof G.yy.parseError==="function")this.parseError=G.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ke(O){o.length=o.length-2*O,g.length=g.length-O,n.length=n.length-O}t(ke,"popStack");function de(){var O=c.pop()||_.lex()||ge;if(typeof O!=="number"){if(O instanceof Array)c=O,O=c.pop();O=i.symbols_[O]||O}return O}t(de,"lex");var v,ne,M,L,je,ie,z={},J,R,pe,q;while(!0){if(M=o[o.length-1],this.defaultActions[M])L=this.defaultActions[M];else{if(v===null||typeof v>"u")v=de();L=F[M]&&F[M][v]}if(typeof L>"u"||!L.length||!L[0]){var re="";q=[];for(J in F[M])if(this.terminals_[J]&&J>be)q.push("'"+this.terminals_[J]+"'");if(_.showPosition)re="Parse error on line "+(Y+1)+`:
|
|
2
|
+
`+_.showPosition()+`
|
|
3
|
+
Expecting `+q.join(", ")+", got '"+(this.terminals_[v]||v)+"'";else re="Parse error on line "+(Y+1)+": Unexpected "+(v==ge?"end of input":"'"+(this.terminals_[v]||v)+"'");this.parseError(re,{text:_.match,token:this.terminals_[v]||v,line:_.yylineno,loc:te,expected:q})}if(L[0]instanceof Array&&L.length>1)throw Error("Parse Error: multiple actions possible at state: "+M+", token: "+v);switch(L[0]){case 1:if(o.push(v),g.push(_.yytext),n.push(_.yylloc),o.push(L[1]),v=null,!ne){if(he=_.yyleng,l=_.yytext,Y=_.yylineno,te=_.yylloc,ue>0)ue--}else v=ne,ne=null;break;case 2:if(R=this.productions_[L[1]][1],z.$=g[g.length-R],z._$={first_line:n[n.length-(R||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(R||1)].first_column,last_column:n[n.length-1].last_column},me)z._$.range=[n[n.length-(R||1)].range[0],n[n.length-1].range[1]];if(ie=this.performAction.apply(z,[l,he,Y,G.yy,L[1],g,n].concat(ye)),typeof ie<"u")return ie;if(R)o=o.slice(0,-1*R*2),g=g.slice(0,-1*R),n=n.slice(0,-1*R);o.push(this.productions_[L[1]][0]),g.push(z.$),n.push(z._$),pe=F[o[o.length-2]][o[o.length-1]],o.push(pe);break;case 3:return!0}}return!0},"parse")},Z=function(){var A={EOF:1,parseError:t(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw Error(i)},"parseError"),setInput:t(function(r,i){if(this.yy=i||this.yy||{},this._input=r,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 r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var i=r.match(/(?:\r\n?|\n).*/g);if(i)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),r},"input"),unput:t(function(r){var i=r.length,o=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var c=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1)this.yylineno-=o.length-1;var g=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges)this.yylloc.range=[g[0],g[0]+this.yyleng-i];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(r){this.unput(this.match.slice(r))},"less"),pastInput:t(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var r=this.match;if(r.length<20)r+=this._input.substr(0,20-r.length);return(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var r=this.pastInput(),i=Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
5
|
+
`+i+"^"},"showPosition"),test_match:t(function(r,i){var o,c,g;if(this.options.backtrack_lexer){if(g={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)g.yylloc.range=this.yylloc.range.slice(0)}if(c=r[0].match(/(?:\r\n?|\n).*/g),c)this.yylineno+=c.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,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(r[0].length),this.matched+=r[0],o=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(o)return o;else if(this._backtrack){for(var n in g)this[n]=g[n];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var r,i,o,c;if(!this._more)this.yytext="",this.match="";var g=this._currentRules();for(var n=0;n<g.length;n++)if(o=this._input.match(this.rules[g[n]]),o&&(!i||o[0].length>i[0].length)){if(i=o,c=n,this.options.backtrack_lexer)if(r=this.test_match(o,g[n]),r!==!1)return r;else if(this._backtrack){i=!1;continue}else return!1;else if(!this.options.flex)break}if(i){if(r=this.test_match(i,g[c]),r!==!1)return r;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 i=this.next();if(i)return i;else return this.lex()},"lex"),begin:t(function(i){this.conditionStack.push(i)},"begin"),popState:t(function(){var i=this.conditionStack.length-1;if(i>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(i){if(i=this.conditionStack.length-1-Math.abs(i||0),i>=0)return this.conditionStack[i];else return"INITIAL"},"topState"),pushState:t(function(i){this.begin(i)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(i,o,c,g){var n=g;switch(c){case 0:return this.pushState("shapeData"),o.yytext="",24;break;case 1:return this.pushState("shapeDataStr"),24;break;case 2:return this.popState(),24;break;case 3:let F=/\n\s*/g;return o.yytext=o.yytext.replace(F,"<br/>"),24;break;case 4:return 24;case 5:this.popState();break;case 6:return i.getLogger().trace("Found comment",o.yytext),6;break;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;break;case 10:this.popState();break;case 11:i.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return i.getLogger().trace("SPACELINE"),6;break;case 13:return 7;case 14:return 16;case 15:i.getLogger().trace("end icon"),this.popState();break;case 16:return i.getLogger().trace("Exploding node"),this.begin("NODE"),20;break;case 17:return i.getLogger().trace("Cloud"),this.begin("NODE"),20;break;case 18:return i.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;break;case 19:return i.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;break;case 20:return this.begin("NODE"),20;break;case 21:return this.begin("NODE"),20;break;case 22:return this.begin("NODE"),20;break;case 23:return this.begin("NODE"),20;break;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:i.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return i.getLogger().trace("description:",o.yytext),"NODE_DESCR";break;case 32:this.popState();break;case 33:return this.popState(),i.getLogger().trace("node end ))"),"NODE_DEND";break;case 34:return this.popState(),i.getLogger().trace("node end )"),"NODE_DEND";break;case 35:return this.popState(),i.getLogger().trace("node end ...",o.yytext),"NODE_DEND";break;case 36:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";break;case 37:return this.popState(),i.getLogger().trace("node end (-"),"NODE_DEND";break;case 38:return this.popState(),i.getLogger().trace("node end (-"),"NODE_DEND";break;case 39:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";break;case 40:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";break;case 41:return i.getLogger().trace("Long description:",o.yytext),21;break;case 42:return i.getLogger().trace("Long description:",o.yytext),21;break}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return A}();j.lexer=Z;function W(){this.yy={}}return t(W,"Parser"),W.prototype=j,j.Parser=W,new W}();se.parser=se;var Ee=se,I=[],oe=[],ae=0,le={},_e=t(()=>{I=[],oe=[],ae=0,le={}},"clear"),Se=t((e)=>{if(I.length===0)return null;let d=I[0].level,y=null;for(let s=I.length-1;s>=0;s--){if(I[s].level===d&&!y)y=I[s];if(I[s].level<d)throw Error('Items without section detected, found section ("'+I[s].label+'")')}if(e===y?.level)return null;return y},"getSection"),fe=t(function(){return oe},"getSections"),Ne=t(function(){let e=[],d=[],y=fe(),s=u();for(let b of y){let N={id:b.id,label:U(b.label??"",s),labelType:"markdown",isGroup:!0,ticket:b.ticket,shape:"kanbanSection",level:b.level,look:s.look};d.push(N);let S=I.filter((h)=>h.parentId===b.id);for(let h of S){let C={id:h.id,parentId:b.id,label:U(h.label??"",s),labelType:"markdown",isGroup:!1,ticket:h?.ticket,priority:h?.priority,assigned:h?.assigned,icon:h?.icon,shape:"kanbanItem",level:h.level,rx:5,ry:5,cssStyles:["text-align: left"]};d.push(C)}}return{nodes:d,edges:e,other:{},config:u()}},"getData"),xe=t((e,d,y,s,b)=>{let N=u(),S=N.mindmap?.padding??B.mindmap.padding;switch(s){case E.ROUNDED_RECT:case E.RECT:case E.HEXAGON:S*=2}let h={id:U(d,N)||"kbn"+ae++,level:e,label:U(y,N),width:N.mindmap?.maxNodeWidth??B.mindmap.maxNodeWidth,padding:S,isGroup:!1};if(b!==void 0){let T;if(!b.includes(`
|
|
7
|
+
`))T=`{
|
|
8
|
+
`+b+`
|
|
9
|
+
}`;else T=b+`
|
|
10
|
+
`;let f=jt(T,{schema:Ut});if(f.shape&&(f.shape!==f.shape.toLowerCase()||f.shape.includes("_")))throw Error(`No such shape: ${f.shape}. Shape names should be lowercase.`);if(f?.shape&&f.shape==="kanbanItem")h.shape=f?.shape;if(f?.label)h.label=f?.label;if(f?.icon)h.icon=f?.icon.toString();if(f?.assigned)h.assigned=f?.assigned.toString();if(f?.ticket)h.ticket=f?.ticket.toString();if(f?.priority)h.priority=f?.priority}let C=Se(e);if(C)h.parentId=C.id||"kbn"+ae++;else oe.push(h);I.push(h)},"addNode"),E={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},ve=t((e,d)=>{switch(a.debug("In get type",e,d),e){case"[":return E.RECT;case"(":return d===")"?E.ROUNDED_RECT:E.CLOUD;case"((":return E.CIRCLE;case")":return E.CLOUD;case"))":return E.BANG;case"{{":return E.HEXAGON;default:return E.DEFAULT}},"getType"),De=t((e,d)=>{le[e]=d},"setElementForId"),Le=t((e)=>{if(!e)return;let d=u(),y=I[I.length-1];if(e.icon)y.icon=U(e.icon,d);if(e.class)y.cssClasses=U(e.class,d)},"decorateNode"),Oe=t((e)=>{switch(e){case E.DEFAULT:return"no-border";case E.RECT:return"rect";case E.ROUNDED_RECT:return"rounded-rect";case E.CIRCLE:return"circle";case E.CLOUD:return"cloud";case E.BANG:return"bang";case E.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),Ie=t(()=>a,"getLogger"),Ce=t((e)=>le[e],"getElementById"),we={clear:_e,addNode:xe,getSections:fe,getData:Ne,nodeType:E,getType:ve,setElementForId:De,decorateNode:Le,type2Str:Oe,getLogger:Ie,getElementById:Ce},Ae=we,Te=t(async(e,d,y,s)=>{a.debug(`Rendering kanban diagram
|
|
11
|
+
`+e);let N=s.db.getData(),S=u();S.htmlLabels=!1;let h=Q(d);for(let k of N.nodes)k.domId=`${d}-${k.id}`;let C=h.append("g");C.attr("class","sections");let T=h.append("g");T.attr("class","items");let f=N.nodes.filter((k)=>k.isGroup),P=0,x=10,X=[],D=25;for(let k of f){let V=S?.kanban?.sectionWidth||200;P=P+1,k.x=V*P+(P-1)*x/2,k.width=V,k.y=0,k.height=V*3,k.rx=5,k.ry=5,k.cssClasses=k.cssClasses+" section-"+P;let w=await Xn(C,k);D=Math.max(D,w?.labelBBox?.height),X.push(w)}let H=0;for(let k of f){let V=X[H];H=H+1;let w=S?.kanban?.sectionWidth||200,K=-w*3/2+D,j=K,Z=N.nodes.filter((r)=>r.parentId===k.id);for(let r of Z){if(r.isGroup)throw Error("Groups within groups are not allowed in Kanban diagrams");r.x=k.x,r.width=w-1.5*x;let o=(await bn(T,r,{config:S})).node().getBBox();r.y=j+o.height/2,await un(r),j=r.y+o.height/2+x/2}let W=V.cluster.select("rect"),A=Math.max(j-K+3*x,50)+(D-25);W.attr("height",A)}ln(void 0,h,S.mindmap?.padding??B.kanban.padding,S.mindmap?.useMaxWidth??B.kanban.useMaxWidth)},"draw"),Re={draw:Te},Pe=t((e)=>{let d="";for(let s=0;s<e.THEME_COLOR_LIMIT;s++)if(e["lineColor"+s]=e["lineColor"+s]||e["cScaleInv"+s],ce(e["lineColor"+s]))e["lineColor"+s]=p(e["lineColor"+s],20);else e["lineColor"+s]=m(e["lineColor"+s],20);let y=t((s,b)=>e.darkMode?m(s,b):p(s,b),"adjuster");for(let s=0;s<e.THEME_COLOR_LIMIT;s++){let b=""+(17-3*s);d+=`
|
|
12
|
+
.section-${s-1} rect, .section-${s-1} path, .section-${s-1} circle, .section-${s-1} polygon, .section-${s-1} path {
|
|
13
|
+
fill: ${y(e["cScale"+s],10)};
|
|
14
|
+
stroke: ${y(e["cScale"+s],10)};
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
.section-${s-1} text {
|
|
18
|
+
fill: ${e["cScaleLabel"+s]};
|
|
19
|
+
}
|
|
20
|
+
.node-icon-${s-1} {
|
|
21
|
+
font-size: 40px;
|
|
22
|
+
color: ${e["cScaleLabel"+s]};
|
|
23
|
+
}
|
|
24
|
+
.section-edge-${s-1}{
|
|
25
|
+
stroke: ${e["cScale"+s]};
|
|
26
|
+
}
|
|
27
|
+
.edge-depth-${s-1}{
|
|
28
|
+
stroke-width: ${b};
|
|
29
|
+
}
|
|
30
|
+
.section-${s-1} line {
|
|
31
|
+
stroke: ${e["cScaleInv"+s]} ;
|
|
32
|
+
stroke-width: 3;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.disabled, .disabled circle, .disabled text {
|
|
36
|
+
fill: lightgray;
|
|
37
|
+
}
|
|
38
|
+
.disabled text {
|
|
39
|
+
fill: #efefef;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.node rect,
|
|
43
|
+
.node circle,
|
|
44
|
+
.node ellipse,
|
|
45
|
+
.node polygon,
|
|
46
|
+
.node path {
|
|
47
|
+
fill: ${e.background};
|
|
48
|
+
stroke: ${e.nodeBorder};
|
|
49
|
+
stroke-width: 1px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.kanban-ticket-link {
|
|
53
|
+
fill: ${e.background};
|
|
54
|
+
stroke: ${e.nodeBorder};
|
|
55
|
+
text-decoration: underline;
|
|
56
|
+
}
|
|
57
|
+
`}return d},"genSections"),Ve=t((e)=>`
|
|
58
|
+
.edge {
|
|
59
|
+
stroke-width: 3;
|
|
60
|
+
}
|
|
61
|
+
${Pe(e)}
|
|
62
|
+
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
63
|
+
fill: ${e.git0};
|
|
64
|
+
}
|
|
65
|
+
.section-root text {
|
|
66
|
+
fill: ${e.gitBranchLabel0};
|
|
67
|
+
}
|
|
68
|
+
.icon-container {
|
|
69
|
+
height:100%;
|
|
70
|
+
display: flex;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
align-items: center;
|
|
73
|
+
}
|
|
74
|
+
.edge {
|
|
75
|
+
fill: none;
|
|
76
|
+
}
|
|
77
|
+
.cluster-label, .label {
|
|
78
|
+
color: ${e.textColor};
|
|
79
|
+
fill: ${e.textColor};
|
|
80
|
+
}
|
|
81
|
+
.kanban-label {
|
|
82
|
+
dy: 1em;
|
|
83
|
+
alignment-baseline: middle;
|
|
84
|
+
text-anchor: middle;
|
|
85
|
+
dominant-baseline: middle;
|
|
86
|
+
text-align: center;
|
|
87
|
+
}
|
|
88
|
+
${kt()}
|
|
89
|
+
`,"getStyles"),Be=Ve,et={db:Ae,renderer:Re,parser:Ee,styles:Be};export{et as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import{re}from"./chunk-js8dvtfg.js";import{t,a,B,S,U,ln,A,R,I,L,D,P,N,u,f,Q,Ps,Mr,qt,X,vt,rt}from"./chunk-fzmrnh17.js";import{me}from"./chunk-bdypt5mj.js";import{on,Oa}from"./chunk-1q2kmv35.js";import{Ye,Ze}from"./chunk-fba06jm8.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:Ps,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
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{jo}from"./chunk-sbbmy02e.js";var e=Object.freeze(JSON.parse('{"displayName":"XML","name":"xml","patterns":[{"begin":"(<\\\\?)\\\\s*([-0-9A-Z_a-z]+)","captures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"entity.name.tag.xml"}},"end":"(\\\\?>)","name":"meta.tag.preprocessor.xml","patterns":[{"match":" ([-A-Za-z]+)","name":"entity.other.attribute-name.xml"},{"include":"#doublequotedString"},{"include":"#singlequotedString"}]},{"begin":"(<!)(DOCTYPE)\\\\s+([:A-Z_a-z][-.0-:A-Z_a-z]*)","captures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"keyword.other.doctype.xml"},"3":{"name":"variable.language.documentroot.xml"}},"end":"\\\\s*(>)","name":"meta.tag.sgml.doctype.xml","patterns":[{"include":"#internalSubset"}]},{"include":"#comments"},{"begin":"(<)((?:([-0-9A-Z_a-z]+)(:))?([-0-:A-Z_a-z]+))(?=(\\\\s[^>]*)?></\\\\2>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"entity.name.tag.xml"},"3":{"name":"entity.name.tag.namespace.xml"},"4":{"name":"punctuation.separator.namespace.xml"},"5":{"name":"entity.name.tag.localname.xml"}},"end":"(>)(</)((?:([-0-9A-Z_a-z]+)(:))?([-0-:A-Z_a-z]+))(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"punctuation.definition.tag.xml"},"3":{"name":"entity.name.tag.xml"},"4":{"name":"entity.name.tag.namespace.xml"},"5":{"name":"punctuation.separator.namespace.xml"},"6":{"name":"entity.name.tag.localname.xml"},"7":{"name":"punctuation.definition.tag.xml"}},"name":"meta.tag.no-content.xml","patterns":[{"include":"#tagStuff"}]},{"begin":"(</?)(?:([-.\\\\w]+)((:)))?([-.:\\\\w]+)","captures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"entity.name.tag.namespace.xml"},"3":{"name":"entity.name.tag.xml"},"4":{"name":"punctuation.separator.namespace.xml"},"5":{"name":"entity.name.tag.localname.xml"}},"end":"(/?>)","name":"meta.tag.xml","patterns":[{"include":"#tagStuff"}]},{"include":"#entity"},{"include":"#bare-ampersand"},{"begin":"<%@","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.xml"}},"end":"%>","endCaptures":{"0":{"name":"punctuation.section.embedded.end.xml"}},"name":"source.java-props.embedded.xml","patterns":[{"match":"page|include|taglib","name":"keyword.other.page-props.xml"}]},{"begin":"<%[!=]?(?!--)","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.xml"}},"end":"(?!--)%>","endCaptures":{"0":{"name":"punctuation.section.embedded.end.xml"}},"name":"source.java.embedded.xml","patterns":[{"include":"source.java"}]},{"begin":"<!\\\\[CDATA\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"end":"]]>","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.unquoted.cdata.xml"}],"repository":{"EntityDecl":{"begin":"(<!)(ENTITY)\\\\s+(%\\\\s+)?([:A-Z_a-z][-.0-:A-Z_a-z]*)(\\\\s+(?:SYSTEM|PUBLIC)\\\\s+)?","captures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"keyword.other.entity.xml"},"3":{"name":"punctuation.definition.entity.xml"},"4":{"name":"variable.language.entity.xml"},"5":{"name":"keyword.other.entitytype.xml"}},"end":"(>)","patterns":[{"include":"#doublequotedString"},{"include":"#singlequotedString"}]},"bare-ampersand":{"match":"&","name":"invalid.illegal.bad-ampersand.xml"},"comments":{"patterns":[{"begin":"<%--","captures":{"0":{"name":"punctuation.definition.comment.xml"},"end":"--%>","name":"comment.block.xml"}},{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.xml"}},"end":"-->","name":"comment.block.xml","patterns":[{"begin":"--(?!>)","captures":{"0":{"name":"invalid.illegal.bad-comments-or-CDATA.xml"}}}]}]},"doublequotedString":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.quoted.double.xml","patterns":[{"include":"#entity"},{"include":"#bare-ampersand"}]},"entity":{"captures":{"1":{"name":"punctuation.definition.constant.xml"},"3":{"name":"punctuation.definition.constant.xml"}},"match":"(&)([:A-Z_a-z][-.0-:A-Z_a-z]*|#[0-9]+|#x\\\\h+)(;)","name":"constant.character.entity.xml"},"internalSubset":{"begin":"(\\\\[)","captures":{"1":{"name":"punctuation.definition.constant.xml"}},"end":"(])","name":"meta.internalsubset.xml","patterns":[{"include":"#EntityDecl"},{"include":"#parameterEntity"},{"include":"#comments"}]},"parameterEntity":{"captures":{"1":{"name":"punctuation.definition.constant.xml"},"3":{"name":"punctuation.definition.constant.xml"}},"match":"(%)([:A-Z_a-z][-.0-:A-Z_a-z]*)(;)","name":"constant.character.parameter-entity.xml"},"singlequotedString":{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.quoted.single.xml","patterns":[{"include":"#entity"},{"include":"#bare-ampersand"}]},"tagStuff":{"patterns":[{"captures":{"1":{"name":"entity.other.attribute-name.namespace.xml"},"2":{"name":"entity.other.attribute-name.xml"},"3":{"name":"punctuation.separator.namespace.xml"},"4":{"name":"entity.other.attribute-name.localname.xml"}},"match":"(?:^|\\\\s+)(?:([-.\\\\w]+)((:)))?([-.:\\\\w]+)\\\\s*="},{"include":"#doublequotedString"},{"include":"#singlequotedString"}]}},"scopeName":"text.xml","embeddedLangs":["java"]}')),la=[...jo,e];
|
|
2
|
+
export{la};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ee,e,n,x}from"./chunk-fba06jm8.js";import{On,$r}from"./chunk-z1ka8jtd.js";import"./chunk-5kz048x3.js";var s="session";function f({connection:d}){let{ModelSelector:a,SettingGroup:m,SettingRow:g}=x(),r=ee(),t=$r({connection:d,endpoint:"/api/plugins/title-generator/settings",loadError:"读取标题生成设置失败",toBody:(o)=>({schemaVersion:1,revision:o.revision,model:o.model}),differs:(o,i)=>o.model!==i.model}),l=t.settings?.model??null,c={models:[{id:s,name:"跟随会话模型"},...t.modelList.models.filter((o)=>o.available===!0||o.id===l)]};return n("form",{id:r,onSubmit:t.save,className:"min-w-0 space-y-5",children:[e(m,{title:"标题生成",children:e(g,{title:"标题模型",description:"首次输入直接命名;后续输入识别为独立需求时自动改名。请求始终使用 None 思考。",children:e("div",{className:"w-56",children:e(a,{variant:"field",models:c,value:l??s,onChange:(o)=>t.edit((i)=>({...i,model:o===s?null:o}))})})})}),e(On,{formID:r,notice:t.notice,dirty:t.dirty,busy:t.loading||t.saving,saving:t.saving,onReset:t.reset})]})}export{f as TitleGeneratorSettingsSection};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
a � v�;@�rΊ�G��v�mc_0+.չg�§Iwo�$�9�1���E�.D�5%�N��6��;��?�fia�-��ί#�I��X�Pa�KW�O~�͚��QpZ�碘� ��w''�u�����ɰ�r�/������� s7#f;�M��R�ޡ��n�'�s/���P��E/h��q�H�|�ܝ�Y�j��/�Q��@N���U�'���!�@�C�7��ӛ�JIܴ�l�}ߪb��!�DDC9�>IBZ�D�G��q����Ɯ�aZۓ2��T҈J�2Ð�DZ�ܠ7��4E��!�;�sď��k��bv
|
|
2
|
+
!L��.���B�d�y58i��`��"OeS��9��B�m:dX��*��6A�7��n�Z�V� �Mӛb5Z(\��i6l�4��s�(�C�_v�d���/����E���QG�3��\O�.-+j#�C��jw��H�S�P�y)�M<�����<�}|
|
|
3
|
+
�����,ǬF��N)�������Y���c�6���b���oc�O̊��Ϧa����
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ee,e,n,x}from"./chunk-fba06jm8.js";import{On,$r}from"./chunk-z1ka8jtd.js";import"./chunk-5kz048x3.js";function M({connection:p}){let{ModelSelector:d,Select:c,SettingGroup:s,SettingRow:l}=x(),m=ee(),i=$r({connection:p,endpoint:"/api/plugins/prompt-optimizer/settings",loadError:"读取优化插件设置失败",toBody:(o)=>({schemaVersion:1,revision:o.revision,primaryModel:o.primaryModel,maxClarificationRounds:o.maxClarificationRounds}),differs:(o,t)=>o.primaryModel?.providerID!==t.primaryModel?.providerID||o.primaryModel?.modelID!==t.primaryModel?.modelID||o.maxClarificationRounds!==t.maxClarificationRounds}),r=i.settings?.primaryModel??null,u=r?`${r.providerID}/${r.modelID}`:"";return n("form",{id:m,onSubmit:i.save,className:"min-w-0 space-y-5",children:[e(s,{title:"模型",children:e(l,{title:"优化模型",description:"未选择时拒绝改写,不会自动回退到其他模型",children:e("div",{className:"w-56",children:e(d,{variant:"field",models:i.modelList,value:u,onChange:(o)=>{let t=o.indexOf("/"),a=t<0?"":o.slice(0,t),g=t<0?o:o.slice(t+1);i.edit((f)=>({...f,primaryModel:{providerID:a,modelID:g}}))}})})})}),e(s,{title:"交互",children:e(l,{title:"澄清提问轮数",description:"草稿有关键歧义时,模型最多可反问几轮",children:e("div",{className:"w-56",children:e(c,{value:String(i.settings?.maxClarificationRounds??1),disabled:i.loading||i.saving,onValueChange:(o)=>{let t=o==="2"?2:1;i.edit((a)=>({...a,maxClarificationRounds:t}))},groups:[{options:[{value:"1",label:"单轮澄清(推荐)",description:"提问一次后直接输出改写结果"},{value:"2",label:"最多两轮澄清",description:"首轮澄清后可针对残留疑问追问一次"}]}]})})})}),e(On,{formID:m,notice:i.notice,dirty:i.dirty,busy:i.loading||i.saving,saving:i.saving,onReset:i.reset})]})}export{M as PromptOptimizerSettingsSection};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{t,a,u,O,vn,ml,un,Xn,xn,aa,Kn}from"./chunk-fzmrnh17.js";import{qe,ft,Bt,Qe,nn,Un,ae,Ne,Kt,jn,Qt,Ea,Wi,Gi,Hi,_r,gn,Yi,wr,ht,kr,Ln,yn,Cr,qn,Sr,Zi,Xi,Aa,Ve,Ki,Tr,Vn,Er,Ra,La,Wn,Qi,Ia,Ji,mi,rn,Da,eo,to,no,At,Na,Ma,Ar,ro,Pa,v,Ft,an,We,Gn,xe}from"./chunk-6ey4c6gw.js";import{ji,qi,J,Yr,Qs,Vi,Ta}from"./chunk-ey14knbn.js";import{wn}from"./chunk-fba06jm8.js";var sr={};wn(sr,{default:()=>Q});var Jn=/\s/;function Zn(r){var e=r.length;while(e--&&Jn.test(r.charAt(e)));return e}var $r=Zn;var $n=/^\s+/;function Qn(r){return r?r.slice(0,$r(r)+1).replace($n,""):r}var Qr=Qn;var re=NaN,oo=/^[-+]0x[0-9a-f]+$/i,io=/^0b[01]+$/i,ao=/^0o[0-7]+$/i,fo=parseInt;function so(r){if(typeof r=="number")return r;if(nn(r))return re;if(Ne(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=Ne(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=Qr(r);var n=io.test(r);return n||ao.test(r)?fo(r.slice(2),n?2:8):oo.test(r)?re:+r}var ee=so;var te=1/0,uo=179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;function co(r){if(!r)return r===0?r:0;if(r=ee(r),r===te||r===-te){var e=r<0?-1:1;return e*uo}return r===r?r:0}var V=co;function po(r){var e=V(r),n=e%1;return e===e?n?e-n:e:0}var ne=po;var oe=Object.create,lo=function(){function r(){}return function(e){if(!Ne(e))return{};if(oe)return oe(e);r.prototype=e;var n=new r;return r.prototype=void 0,n}}(),ie=lo;function mo(r,e){var n=-1,o=r.length;e||(e=Array(o));while(++n<o)e[n]=r[n];return e}var ar=mo;function ho(r,e,n){if(e=="__proto__"&&Ea)Ea(r,e,{configurable:!0,enumerable:!0,value:n,writable:!0});else r[e]=n}var M=ho;var go=Object.prototype,vo=go.hasOwnProperty;function bo(r,e,n){var o=r[e];if(!(vo.call(r,e)&&gn(o,n))||n===void 0&&!(e in r))M(r,e,n)}var j=bo;function yo(r,e,n,o){var i=!n;n||(n={});var f=-1,s=e.length;while(++f<s){var d=e[f],c=o?o(n[d],r[d],d,n,r):void 0;if(c===void 0)c=r[d];if(i)M(n,d,c);else j(n,d,c)}return n}var k=yo;function wo(r,e,n){if(!Ne(n))return!1;var o=typeof e;if(o=="number"?ht(n)&&_r(e,n.length):o=="string"&&(e in n))return gn(n[e],r);return!1}var C=wo;function _o(r){return wr(function(e,n){var o=-1,i=n.length,f=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;if(f=r.length>3&&typeof f=="function"?(i--,f):void 0,s&&C(n[0],n[1],s))f=i<3?void 0:f,i=1;e=Object(e);while(++o<i){var d=n[o];if(d)r(e,d,o,f)}return e})}var fe=_o;function Eo(r){var e=[];if(r!=null)for(var n in Object(r))e.push(n);return e}var se=Eo;var xo=Object.prototype,Oo=xo.hasOwnProperty;function Lo(r){if(!Ne(r))return se(r);var e=kr(r),n=[];for(var o in r)if(!(o=="constructor"&&(e||!Oo.call(r,o))))n.push(o);return n}var ue=Lo;function Io(r){return ht(r)?Zi(r,!0):ue(r)}var I=Io;function So(r){var e=r==null?0:r.length;return e?La(r,1):[]}var N=So;function No(r){return Wi(Yi(r,void 0,N),r+"")}var de=No;var Po=Xi(Object.getPrototypeOf,Object),Y=Po;var ko="[object Object]",To=Function.prototype,Co=Object.prototype,ce=To.toString,Ao=Co.hasOwnProperty,Ro=ce.call(Object);function Mo(r){if(!Qe(r)||Bt(r)!=ko)return!1;var e=Y(r);if(e===null)return!0;var n=Ao.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&ce.call(n)==Ro}var pe=Mo;var jo="\\ud800-\\udfff",Bo="\\u0300-\\u036f",Do="\\ufe20-\\ufe2f",Fo="\\u20d0-\\u20ff",Go=Bo+Do+Fo,Xo="\\ufe0e\\ufe0f",Uo="\\u200d",Vo=RegExp("["+Uo+jo+Go+Xo+"]");function Yo(r){return Vo.test(r)}var le=Yo;function zo(r,e){return r&&k(e,Ve(e),r)}var me=zo;function Wo(r,e){return r&&k(e,I(e),r)}var he=Wo;var ye=typeof sr=="object"&&sr&&!sr.nodeType&&sr,ge=ye&&typeof fr=="object"&&fr&&!fr.nodeType&&fr,qo=ge&&ge.exports===ye,ve=qo?qe.Buffer:void 0,be=ve?ve.allocUnsafe:void 0;function Ho(r,e){if(e)return r.slice();var n=r.length,o=be?be(n):new r.constructor(n);return r.copy(o),o}var Q=Ho;function Ko(r,e){return k(r,Ia(r),e)}var we=Ko;var Jo=Object.getOwnPropertySymbols,Zo=!Jo?Qi:function(r){var e=[];while(r)Ra(e,Ia(r)),r=Y(r);return e},ur=Zo;function $o(r,e){return k(r,ur(r),e)}var _e=$o;function Qo(r){return Ji(r,I,ur)}var Ee=Qo;var ri=Object.prototype,ei=ri.hasOwnProperty;function ti(r){var e=r.length,n=new r.constructor(e);if(e&&typeof r[0]=="string"&&ei.call(r,"index"))n.index=r.index,n.input=r.input;return n}var Oe=ti;function ni(r){var e=new r.constructor(r.byteLength);return new Da(e).set(new Da(r)),e}var z=ni;function oi(r,e){var n=e?z(r.buffer):r.buffer;return new r.constructor(n,r.byteOffset,r.byteLength)}var Le=oi;var ii=/\w*$/;function ai(r){var e=new r.constructor(r.source,ii.exec(r));return e.lastIndex=r.lastIndex,e}var Ie=ai;var Se=ft?ft.prototype:void 0,Pe=Se?Se.valueOf:void 0;function fi(r){return Pe?Object(Pe.call(r)):{}}var ke=fi;function si(r,e){var n=e?z(r.buffer):r.buffer;return new r.constructor(n,r.byteOffset,r.length)}var dr=si;var ui="[object Boolean]",di="[object Date]",ci="[object Map]",pi="[object Number]",li="[object RegExp]",hi="[object Set]",gi="[object String]",vi="[object Symbol]",bi="[object ArrayBuffer]",yi="[object DataView]",wi="[object Float32Array]",_i="[object Float64Array]",Ei="[object Int8Array]",xi="[object Int16Array]",Oi="[object Int32Array]",Li="[object Uint8Array]",Ii="[object Uint8ClampedArray]",Si="[object Uint16Array]",Ni="[object Uint32Array]";function Pi(r,e,n){var o=r.constructor;switch(e){case bi:return z(r);case ui:case di:return new o(+r);case yi:return Le(r,n);case wi:case _i:case Ei:case xi:case Oi:case Li:case Ii:case Si:case Ni:return dr(r,n);case ci:return new o;case pi:case gi:return new o(r);case li:return Ie(r);case hi:return new o;case vi:return ke(r)}}var Te=Pi;function ki(r){return typeof r.constructor=="function"&&!kr(r)?ie(Y(r)):{}}var cr=ki;var Ti="[object Map]";function Ci(r){return Qe(r)&&rn(r)==Ti}var Ce=Ci;var Ae=qn&&qn.isMap,Ai=Ae?Cr(Ae):Ce,Re=Ai;var Ri="[object Set]";function Mi(r){return Qe(r)&&rn(r)==Ri}var Me=Mi;var je=qn&&qn.isSet,Bi=je?Cr(je):Me,Be=Bi;var Di=1,Fi=2,Ui=4,De="[object Arguments]",zi="[object Array]",$i="[object Boolean]",ra="[object Date]",ea="[object Error]",Fe="[object Function]",ta="[object GeneratorFunction]",na="[object Map]",oa="[object Number]",Ge="[object Object]",ia="[object RegExp]",fa="[object Set]",sa="[object String]",ua="[object Symbol]",da="[object WeakMap]",ca="[object ArrayBuffer]",pa="[object DataView]",la="[object Float32Array]",ma="[object Float64Array]",ha="[object Int8Array]",ga="[object Int16Array]",va="[object Int32Array]",ba="[object Uint8Array]",ya="[object Uint8ClampedArray]",wa="[object Uint16Array]",_a="[object Uint32Array]",x={};x[De]=x[zi]=x[ca]=x[pa]=x[$i]=x[ra]=x[la]=x[ma]=x[ha]=x[ga]=x[va]=x[na]=x[oa]=x[Ge]=x[ia]=x[fa]=x[sa]=x[ua]=x[ba]=x[ya]=x[wa]=x[_a]=!0;x[ea]=x[Fe]=x[da]=!1;function pr(r,e,n,o,i,f){var s,d=e&Di,c=e&Fi,p=e&Ui;if(n)s=i?n(r,o,i,f):n(r);if(s!==void 0)return s;if(!Ne(r))return r;var l=ae(r);if(l){if(s=Oe(r),!d)return ar(r,s)}else{var m=rn(r),h=m==Fe||m==ta;if(yn(r))return Q(r,d);if(m==Ge||m==De||h&&!i){if(s=c||h?{}:cr(r),!d)return c?_e(r,he(s,r)):we(r,me(s,r))}else{if(!x[m])return i?r:{};s=Te(r,m,d)}}f||(f=new Wn);var b=f.get(r);if(b)return b;if(f.set(r,s),Be(r))r.forEach(function(g){s.add(pr(g,e,n,g,r,f))});else if(Re(r))r.forEach(function(g,_){s.set(_,pr(g,e,n,_,r,f))});var w=p?c?Ee:mi:c?I:Ve,y=l?void 0:w(r);return Gi(y||r,function(g,_){if(y)_=g,g=r[_];j(s,_,pr(g,e,n,_,r,f))}),s}var Xe=pr;var xa=1,Oa=4;function Sa(r){return Xe(r,xa|Oa)}var Ue=Sa;var ka=function(){return qe.Date.now()},yr=ka;var Ye=Object.prototype,Ca=Ye.hasOwnProperty,ja=wr(function(r,e){r=Object(r);var n=-1,o=e.length,i=o>2?e[2]:void 0;if(i&&C(e[0],e[1],i))o=1;while(++n<o){var f=e[n],s=I(f),d=-1,c=s.length;while(++d<c){var p=s[d],l=r[p];if(l===void 0||gn(l,Ye[p])&&!Ca.call(r,p))r[p]=f[p]}}return r}),ze=ja;function Ba(r,e,n){if(n!==void 0&&!gn(r[e],n)||n===void 0&&!(e in r))M(r,e,n)}var rr=Ba;function Fa(r,e){if(e==="constructor"&&typeof r[e]==="function")return;if(e=="__proto__")return;return r[e]}var er=Fa;function Ga(r){return k(r,I(r))}var He=Ga;function Xa(r,e,n,o,i,f,s){var d=er(r,n),c=er(e,n),p=s.get(c);if(p){rr(r,n,p);return}var l=f?f(d,c,n+"",r,e,s):void 0,m=l===void 0;if(m){var h=ae(c),b=!h&&yn(c),w=!h&&!b&&Sr(c);if(l=c,h||b||w)if(ae(d))l=d;else if(ro(d))l=ar(d);else if(b)m=!1,l=Q(c,!0);else if(w)m=!1,l=dr(c,!0);else l=[];else if(pe(c)||Ln(c)){if(l=d,Ln(d))l=He(d);else if(!Ne(d)||jn(d))l=cr(c)}else m=!1}if(m)s.set(c,l),i(l,c,o,f,s),s.delete(c);rr(r,n,l)}var Ke=Xa;function Je(r,e,n,o,i){if(r===e)return;Na(e,function(f,s){if(i||(i=new Wn),Ne(f))Ke(r,e,s,n,Je,o,i);else{var d=o?o(er(r,s),f,s+"",r,e,i):void 0;if(d===void 0)d=f;rr(r,s,d)}},I)}var Ze=Je;function Ua(r){var e=r==null?0:r.length;return e?r[e-1]:void 0}var X=Ua;function Va(r){return function(e,n,o){var i=Object(e);if(!ht(e)){var f=At(n,3);e=Ve(e),n=function(d){return f(i[d],d,i)}}var s=r(e,n,o);return s>-1?i[f?e[s]:s]:void 0}}var $e=Va;var Ya=Math.max;function za(r,e,n){var o=r==null?0:r.length;if(!o)return-1;var i=n==null?0:ne(n);if(i<0)i=Ya(o+i,0);return Hi(r,At(e,3),i)}var rt=za;var Wa=$e(rt),tr=Wa;function qa(r,e){var n=-1,o=ht(r)?Array(r.length):[];return Ar(r,function(i,f,s){o[++n]=e(i,f,s)}),o}var lr=qa;function Ha(r,e){var n=ae(r)?Un:lr;return n(r,At(e,3))}var E=Ha;function Ka(r,e){return r==null?r:Na(r,Pa(e),I)}var et=Ka;function Ja(r,e){return r&&Ma(r,Pa(e))}var tt=Ja;function Za(r,e){return r>e}var nt=Za;var $a=Object.prototype,Qa=$a.hasOwnProperty;function rf(r,e){return r!=null&&Qa.call(r,e)}var ot=rf;function ef(r,e){return r!=null&&eo(r,e,ot)}var mr=ef;var tf="[object String]";function nf(r){return typeof r=="string"||!ae(r)&&Qe(r)&&Bt(r)==tf}var it=nf;function of(r,e){return r<e}var hr=of;function af(r,e){var n={};return e=At(e,3),Ma(r,function(o,i,f){M(n,i,e(o,i,f))}),n}var W=af;function ff(r,e,n){var o=-1,i=r.length;while(++o<i){var f=r[o],s=e(f);if(s!=null&&(d===void 0?s===s&&!nn(s):n(s,d)))var d=s,c=f}return c}var q=ff;function sf(r){return r&&r.length?q(r,Kt,nt):void 0}var S=sf;var uf=fe(function(r,e,n){Ze(r,e,n)}),nr=uf;function df(r){return r&&r.length?q(r,Kt,hr):void 0}var B=df;function cf(r,e){return r&&r.length?q(r,At(e,2),hr):void 0}var H=cf;function pf(r,e,n,o){if(!Ne(r))return r;e=Tr(e,r);var i=-1,f=e.length,s=f-1,d=r;while(d!=null&&++i<f){var c=Vn(e[i]),p=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return r;if(i!=s){var l=d[c];if(p=o?o(l,c,d):void 0,p===void 0)p=Ne(l)?l:_r(e[i+1])?[]:{}}j(d,c,p),d=d[c]}return r}var at=pf;function lf(r,e,n){var o=-1,i=e.length,f={};while(++o<i){var s=e[o],d=Er(r,s);if(n(d,s))at(f,Tr(s,r),d)}return f}var st=lf;function mf(r,e){var n=r.length;r.sort(e);while(n--)r[n]=r[n].value;return r}var ut=mf;function hf(r,e){if(r!==e){var n=r!==void 0,o=r===null,i=r===r,f=nn(r),s=e!==void 0,d=e===null,c=e===e,p=nn(e);if(!d&&!p&&!f&&r>e||f&&s&&c&&!d&&!p||o&&s&&c||!n&&c||!i)return 1;if(!o&&!f&&!p&&r<e||p&&n&&i&&!o&&!f||d&&n&&i||!s&&i||!c)return-1}return 0}var dt=hf;function gf(r,e,n){var o=-1,i=r.criteria,f=e.criteria,s=i.length,d=n.length;while(++o<s){var c=dt(i[o],f[o]);if(c){if(o>=d)return c;var p=n[o];return c*(p=="desc"?-1:1)}}return r.index-e.index}var ct=gf;function vf(r,e,n){if(e.length)e=Un(e,function(f){if(ae(f))return function(s){return Er(s,f.length===1?f[0]:f)};return f});else e=[Kt];var o=-1;e=Un(e,Cr(At));var i=lr(r,function(f,s,d){var c=Un(e,function(p){return p(f)});return{criteria:c,index:++o,value:f}});return ut(i,function(f,s){return ct(f,s,n)})}var pt=vf;var bf=no("length"),lt=bf;var gt="\\ud800-\\udfff",yf="\\u0300-\\u036f",wf="\\ufe20-\\ufe2f",_f="\\u20d0-\\u20ff",Ef=yf+wf+_f,xf="\\ufe0e\\ufe0f",Of="["+gt+"]",xr="["+Ef+"]",Or="\\ud83c[\\udffb-\\udfff]",Lf="(?:"+xr+"|"+Or+")",vt="[^"+gt+"]",bt="(?:\\ud83c[\\udde6-\\uddff]){2}",yt="[\\ud800-\\udbff][\\udc00-\\udfff]",If="\\u200d",wt=Lf+"?",_t="["+xf+"]?",Sf="(?:"+If+"(?:"+[vt,bt,yt].join("|")+")"+_t+wt+")*",Nf=_t+wt+Sf,Pf="(?:"+[vt+xr+"?",xr,bt,yt,Of].join("|")+")",mt=RegExp(Or+"(?="+Or+")|"+Pf+Nf,"g");function kf(r){var e=mt.lastIndex=0;while(mt.test(r))++e;return e}var Et=kf;function Tf(r){return le(r)?Et(r):lt(r)}var xt=Tf;function Cf(r,e){return st(r,e,function(n,o){return to(r,o)})}var Ot=Cf;var Af=de(function(r,e){return r==null?{}:Ot(r,e)}),K=Af;var{ceil:Rf,max:Mf}=Math;function jf(r,e,n,o){var i=-1,f=Mf(Rf((e-r)/(n||1)),0),s=Array(f);while(f--)s[o?f:++i]=r,r+=n;return s}var Lt=jf;function Bf(r){return function(e,n,o){if(o&&typeof o!="number"&&C(e,n,o))n=o=void 0;if(e=V(e),n===void 0)n=e,e=0;else n=V(n);return o=o===void 0?e<n?1:-1:V(o),Lt(e,n,o,r)}}var It=Bf;var Df=It(),P=Df;var Ff="[object Map]",Gf="[object Set]";function Xf(r){if(r==null)return 0;if(ht(r))return it(r)?xt(r):r.length;var e=rn(r);if(e==Ff||e==Gf)return r.size;return Aa(r).length}var St=Xf;var Uf=wr(function(r,e){if(r==null)return[];var n=e.length;if(n>1&&C(r,e[0],e[1]))e=[];else if(n>2&&C(e[0],e[1],e[2]))e=[e[0]];return pt(r,La(e,1),[])}),A=Uf;var Vf=0;function Yf(r){var e=++Vf;return Ki(r)+e}var Z=Yf;function zf(r,e,n){var o=-1,i=r.length,f=e.length,s={};while(++o<i){var d=o<f?e[o]:void 0;n(s,r[o],d)}return s}var Nt=zf;function Wf(r,e){return Nt(r||[],e||[],j)}var Lr=Wf;class Ir{constructor(){var r={};r._next=r._prev=r,this._sentinel=r}dequeue(){var r=this._sentinel,e=r._prev;if(e!==r)return Pt(e),e}enqueue(r){var e=this._sentinel;if(r._prev&&r._next)Pt(r);r._next=e._next,e._next._prev=r,e._next=r,r._prev=e}toString(){var r=[],e=this._sentinel,n=e._prev;while(n!==e)r.push(JSON.stringify(n,qf)),n=n._prev;return"["+r.join(", ")+"]"}}function Pt(r){r._prev._next=r._next,r._next._prev=r._prev,delete r._next,delete r._prev}function qf(r,e){if(r!=="_next"&&r!=="_prev")return e}var Hf=Qt(1);function kt(r,e){if(r.nodeCount()<=1)return[];var n=Jf(r,e||Hf),o=Kf(n.graph,n.buckets,n.zeroIdx);return N(E(o,function(i){return r.outEdges(i.v,i.w)}))}function Kf(r,e,n){var o=[],i=e[e.length-1],f=e[0],s;while(r.nodeCount()){while(s=f.dequeue())Nr(r,e,n,s);while(s=i.dequeue())Nr(r,e,n,s);if(r.nodeCount()){for(var d=e.length-2;d>0;--d)if(s=e[d].dequeue(),s){o=o.concat(Nr(r,e,n,s,!0));break}}}return o}function Nr(r,e,n,o,i){var f=i?[]:void 0;return v(r.inEdges(o.v),function(s){var d=r.edge(s),c=r.node(s.v);if(i)f.push({v:s.v,w:s.w});c.out-=d,Pr(e,n,c)}),v(r.outEdges(o.v),function(s){var d=r.edge(s),c=s.w,p=r.node(c);p.in-=d,Pr(e,n,p)}),r.removeNode(o.v),f}function Jf(r,e){var n=new xe,o=0,i=0;v(r.nodes(),function(d){n.setNode(d,{v:d,in:0,out:0})}),v(r.edges(),function(d){var c=n.edge(d.v,d.w)||0,p=e(d),l=c+p;n.setEdge(d.v,d.w,l),i=Math.max(i,n.node(d.v).out+=p),o=Math.max(o,n.node(d.w).in+=p)});var f=P(i+o+3).map(function(){return new Ir}),s=o+1;return v(n.nodes(),function(d){Pr(f,s,n.node(d))}),{graph:n,buckets:f,zeroIdx:s}}function Pr(r,e,n){if(!n.out)r[0].enqueue(n);else if(!n.in)r[r.length-1].enqueue(n);else r[n.out-n.in+e].enqueue(n)}function Tt(r){var e=r.graph().acyclicer==="greedy"?kt(r,n(r)):Zf(r);v(e,function(o){var i=r.edge(o);r.removeEdge(o),i.forwardName=o.name,i.reversed=!0,r.setEdge(o.w,o.v,i,Z("rev"))});function n(o){return function(i){return o.edge(i).weight}}}function Zf(r){var e=[],n={},o={};function i(f){if(Object.prototype.hasOwnProperty.call(o,f))return;o[f]=!0,n[f]=!0,v(r.outEdges(f),function(s){if(Object.prototype.hasOwnProperty.call(n,s.w))e.push(s);else i(s.w)}),delete n[f]}return v(r.nodes(),i),e}function Ct(r){v(r.edges(),function(e){var n=r.edge(e);if(n.reversed){r.removeEdge(e);var o=n.forwardName;delete n.reversed,delete n.forwardName,r.setEdge(e.w,e.v,n,o)}})}function T(r,e,n,o){var i;do i=Z(o);while(r.hasNode(i));return n.dummy=e,r.setNode(i,n),i}function Mt(r){var e=new xe().setGraph(r.graph());return v(r.nodes(),function(n){e.setNode(n,r.node(n))}),v(r.edges(),function(n){var o=e.edge(n.v,n.w)||{weight:0,minlen:1},i=r.edge(n);e.setEdge(n.v,n.w,{weight:o.weight+i.weight,minlen:Math.max(o.minlen,i.minlen)})}),e}function gr(r){var e=new xe({multigraph:r.isMultigraph()}).setGraph(r.graph());return v(r.nodes(),function(n){if(!r.children(n).length)e.setNode(n,r.node(n))}),v(r.edges(),function(n){e.setEdge(n,r.edge(n))}),e}function Rr(r,e){var{x:n,y:o}=r,i=e.x-n,f=e.y-o,s=r.width/2,d=r.height/2;if(!i&&!f)throw Error("Not possible to find intersection inside of the rectangle");var c,p;if(Math.abs(f)*s>Math.abs(i)*d){if(f<0)d=-d;c=d*i/f,p=d}else{if(i<0)s=-s;c=s,p=s*f/i}return{x:n+c,y:o+p}}function D(r){var e=E(P(jr(r)+1),function(){return[]});return v(r.nodes(),function(n){var o=r.node(n),i=o.rank;if(!We(i))e[i][o.order]=n}),e}function jt(r){var e=B(E(r.nodes(),function(n){return r.node(n).rank}));v(r.nodes(),function(n){var o=r.node(n);if(mr(o,"rank"))o.rank-=e})}function Dt(r){var e=B(E(r.nodes(),function(f){return r.node(f).rank})),n=[];v(r.nodes(),function(f){var s=r.node(f).rank-e;if(!n[s])n[s]=[];n[s].push(f)});var o=0,i=r.graph().nodeRankFactor;v(n,function(f,s){if(We(f)&&s%i!==0)--o;else if(o)v(f,function(d){r.node(d).rank+=o})})}function Mr(r,e,n,o){var i={width:0,height:0};if(arguments.length>=4)i.rank=n,i.order=o;return T(r,"border",i,e)}function jr(r){return S(E(r.nodes(),function(e){var n=r.node(e).rank;if(!We(n))return n}))}function Gt(r,e){var n={lhs:[],rhs:[]};return v(r,function(o){if(e(o))n.lhs.push(o);else n.rhs.push(o)}),n}function Xt(r,e){var n=yr();try{return e()}finally{console.log(r+" time: "+(yr()-n)+"ms")}}function Ut(r,e){return e()}function Yt(r){function e(n){var o=r.children(n),i=r.node(n);if(o.length)v(o,e);if(Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var f=i.minRank,s=i.maxRank+1;f<s;++f)Vt(r,"borderLeft","_bl",n,i,f),Vt(r,"borderRight","_br",n,i,f)}}v(r.children(),e)}function Vt(r,e,n,o,i,f){var s={width:0,height:0,rank:f,borderType:e},d=i[e][f-1],c=T(r,"border",s,n);if(i[e][f]=c,r.setParent(c,o),d)r.setEdge(d,c,{weight:1})}function Wt(r){var e=r.graph().rankdir.toLowerCase();if(e==="lr"||e==="rl")Ht(r)}function qt(r){var e=r.graph().rankdir.toLowerCase();if(e==="bt"||e==="rl")$f(r);if(e==="lr"||e==="rl")Qf(r),Ht(r)}function Ht(r){v(r.nodes(),function(e){zt(r.node(e))}),v(r.edges(),function(e){zt(r.edge(e))})}function zt(r){var e=r.width;r.width=r.height,r.height=e}function $f(r){v(r.nodes(),function(e){Br(r.node(e))}),v(r.edges(),function(e){var n=r.edge(e);if(v(n.points,Br),Object.prototype.hasOwnProperty.call(n,"y"))Br(n)})}function Br(r){r.y=-r.y}function Qf(r){v(r.nodes(),function(e){Dr(r.node(e))}),v(r.edges(),function(e){var n=r.edge(e);if(v(n.points,Dr),Object.prototype.hasOwnProperty.call(n,"x"))Dr(n)})}function Dr(r){var e=r.x;r.x=r.y,r.y=e}function Jt(r){r.graph().dummyChains=[],v(r.edges(),function(e){es(r,e)})}function es(r,e){var n=e.v,o=r.node(n).rank,i=e.w,f=r.node(i).rank,s=e.name,d=r.edge(e),c=d.labelRank;if(f===o+1)return;r.removeEdge(e);var p=void 0,l,m;for(m=0,++o;o<f;++m,++o){if(d.points=[],p={width:0,height:0,edgeLabel:d,edgeObj:e,rank:o},l=T(r,"edge",p,"_d"),o===c)p.width=d.width,p.height=d.height,p.dummy="edge-label",p.labelpos=d.labelpos;if(r.setEdge(n,l,{weight:d.weight},s),m===0)r.graph().dummyChains.push(l);n=l}r.setEdge(n,i,{weight:d.weight},s)}function Zt(r){v(r.graph().dummyChains,function(e){var n=r.node(e),o=n.edgeLabel,i;r.setEdge(n.edgeObj,o);while(n.dummy){if(i=r.successors(e)[0],r.removeNode(e),o.points.push({x:n.x,y:n.y}),n.dummy==="edge-label")o.x=n.x,o.y=n.y,o.width=n.width,o.height=n.height;e=i,n=r.node(e)}})}function or(r){var e={};function n(o){var i=r.node(o);if(Object.prototype.hasOwnProperty.call(e,o))return i.rank;e[o]=!0;var f=B(E(r.outEdges(o),function(s){return n(s.w)-r.edge(s).minlen}));if(f===Number.POSITIVE_INFINITY||f===void 0||f===null)f=0;return i.rank=f}v(r.sources(),n)}function U(r,e){return r.node(e.w).rank-r.node(e.v).rank-r.edge(e).minlen}function vr(r){var e=new xe({directed:!1}),n=r.nodes()[0],o=r.nodeCount();e.setNode(n,{});var i,f;while(ts(e,r)<o)i=ns(e,r),f=e.hasNode(i.v)?U(r,i):-U(r,i),os(e,r,f);return e}function ts(r,e){function n(o){v(e.nodeEdges(o),function(i){var f=i.v,s=o===f?i.w:f;if(!r.hasNode(s)&&!U(e,i))r.setNode(s,{}),r.setEdge(o,s,{}),n(s)})}return v(r.nodes(),n),r.nodeCount()}function ns(r,e){return H(e.edges(),function(n){if(r.hasNode(n.v)!==r.hasNode(n.w))return U(e,n)})}function os(r,e,n){v(r.nodes(),function(o){e.node(o).rank+=n})}var dh=Qt(1);var vh=Qt(1);Fr.CycleException=ir;function Fr(r){var e={},n={},o=[];function i(f){if(Object.prototype.hasOwnProperty.call(n,f))throw new ir;if(!Object.prototype.hasOwnProperty.call(e,f))n[f]=!0,e[f]=!0,v(r.predecessors(f),i),delete n[f],o.push(f)}if(v(r.sinks(),i),St(e)!==r.nodeCount())throw new ir;return o}function ir(){}ir.prototype=Error();function br(r,e,n){if(!ae(e))e=[e];var o=(r.isDirected()?r.successors:r.neighbors).bind(r),i=[],f={};return v(e,function(s){if(!r.hasNode(s))throw Error("Graph does not have node: "+s);en(r,s,n==="post",f,o,i)}),i}function en(r,e,n,o,i,f){if(!Object.prototype.hasOwnProperty.call(o,e)){if(o[e]=!0,!n)f.push(e);if(v(i(e),function(s){en(r,s,n,o,i,f)}),n)f.push(e)}}function Gr(r,e){return br(r,e,"post")}function Xr(r,e){return br(r,e,"pre")}G.initLowLimValues=Vr;G.initCutValues=Ur;G.calcCutValue=on;G.leaveEdge=sn;G.enterEdge=dn;G.exchangeEdges=cn;function G(r){r=Mt(r),or(r);var e=vr(r);Vr(e),Ur(e,r);var n,o;while(n=sn(e))o=dn(e,r,n),cn(e,r,n,o)}function Ur(r,e){var n=Gr(r,r.nodes());n=n.slice(0,n.length-1),v(n,function(o){us(r,e,o)})}function us(r,e,n){var o=r.node(n),i=o.parent;r.edge(n,i).cutvalue=on(r,e,n)}function on(r,e,n){var o=r.node(n),i=o.parent,f=!0,s=e.edge(n,i),d=0;if(!s)f=!1,s=e.edge(i,n);return d=s.weight,v(e.nodeEdges(n),function(c){var p=c.v===n,l=p?c.w:c.v;if(l!==i){var m=p===f,h=e.edge(c).weight;if(d+=m?h:-h,cs(r,n,l)){var b=r.edge(n,l).cutvalue;d+=m?-b:b}}}),d}function Vr(r,e){if(arguments.length<2)e=r.nodes()[0];fn(r,{},1,e)}function fn(r,e,n,o,i){var f=n,s=r.node(o);if(e[o]=!0,v(r.neighbors(o),function(d){if(!Object.prototype.hasOwnProperty.call(e,d))n=fn(r,e,n,d,o)}),s.low=f,s.lim=n++,i)s.parent=i;else delete s.parent;return n}function sn(r){return tr(r.edges(),function(e){return r.edge(e).cutvalue<0})}function dn(r,e,n){var{v:o,w:i}=n;if(!e.hasEdge(o,i))o=n.w,i=n.v;var f=r.node(o),s=r.node(i),d=f,c=!1;if(f.lim>s.lim)d=s,c=!0;var p=Ft(e.edges(),function(l){return c===tn(r,r.node(l.v),d)&&c!==tn(r,r.node(l.w),d)});return H(p,function(l){return U(e,l)})}function cn(r,e,n,o){var{v:i,w:f}=n;r.removeEdge(i,f),r.setEdge(o.v,o.w,{}),Vr(r),Ur(r,e),ds(r,e)}function ds(r,e){var n=tr(r.nodes(),function(i){return!e.node(i).parent}),o=Xr(r,n);o=o.slice(1),v(o,function(i){var f=r.node(i).parent,s=e.edge(i,f),d=!1;if(!s)s=e.edge(f,i),d=!0;e.node(i).rank=e.node(f).rank+(d?s.minlen:-s.minlen)})}function cs(r,e,n){return r.hasEdge(e,n)}function tn(r,e,n){return n.low<=e.lim&&e.lim<=n.lim}function zr(r){switch(r.graph().ranker){case"network-simplex":pn(r);break;case"tight-tree":ls(r);break;case"longest-path":ps(r);break;default:pn(r)}}var ps=or;function ls(r){or(r),vr(r)}function pn(r){G(r)}function ln(r){var e=T(r,"root",{},"_root"),n=ms(r),o=S(an(n))-1,i=2*o+1;r.graph().nestingRoot=e,v(r.edges(),function(s){r.edge(s).minlen*=i});var f=hs(r)+1;v(r.children(),function(s){mn(r,e,i,f,o,n,s)}),r.graph().nodeRankFactor=i}function mn(r,e,n,o,i,f,s){var d=r.children(s);if(!d.length){if(s!==e)r.setEdge(e,s,{weight:0,minlen:n});return}var c=Mr(r,"_bt"),p=Mr(r,"_bb"),l=r.node(s);if(r.setParent(c,s),l.borderTop=c,r.setParent(p,s),l.borderBottom=p,v(d,function(m){mn(r,e,n,o,i,f,m);var h=r.node(m),b=h.borderTop?h.borderTop:m,w=h.borderBottom?h.borderBottom:m,y=h.borderTop?o:2*o,g=b!==w?1:i-f[s]+1;r.setEdge(c,b,{weight:y,minlen:g,nestingEdge:!0}),r.setEdge(w,p,{weight:y,minlen:g,nestingEdge:!0})}),!r.parent(s))r.setEdge(e,c,{weight:0,minlen:i+f[s]})}function ms(r){var e={};function n(o,i){var f=r.children(o);if(f&&f.length)v(f,function(s){n(s,i+1)});e[o]=i}return v(r.children(),function(o){n(o,1)}),e}function hs(r){return Gn(r.edges(),function(e,n){return e+r.edge(n).weight},0)}function hn(r){var e=r.graph();r.removeNode(e.nestingRoot),delete e.nestingRoot,v(r.edges(),function(n){var o=r.edge(n);if(o.nestingEdge)r.removeEdge(n)})}function bn(r,e,n){var o={},i;v(n,function(f){var s=r.parent(f),d,c;while(s){if(d=r.parent(s),d)c=o[d],o[d]=s;else c=i,i=s;if(c&&c!==s){e.setEdge(c,s);return}s=d}})}function _n(r,e,n){var o=vs(r),i=new xe({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(f){return r.node(f)});return v(r.nodes(),function(f){var s=r.node(f),d=r.parent(f);if(s.rank===e||s.minRank<=e&&e<=s.maxRank){if(i.setNode(f),i.setParent(f,d||o),v(r[n](f),function(c){var p=c.v===f?c.w:c.v,l=i.edge(p,f),m=!We(l)?l.weight:0;i.setEdge(p,f,{weight:r.edge(c).weight+m})}),Object.prototype.hasOwnProperty.call(s,"minRank"))i.setNode(f,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]})}}),i}function vs(r){var e;while(r.hasNode(e=Z("_root")));return e}function En(r,e){var n=0;for(var o=1;o<e.length;++o)n+=bs(r,e[o-1],e[o]);return n}function bs(r,e,n){var o=Lr(n,E(n,function(p,l){return l})),i=N(E(e,function(p){return A(E(r.outEdges(p),function(l){return{pos:o[l.w],weight:r.edge(l).weight}}),"pos")})),f=1;while(f<n.length)f<<=1;var s=2*f-1;f-=1;var d=E(Array(s),function(){return 0}),c=0;return v(i.forEach(function(p){var l=p.pos+f;d[l]+=p.weight;var m=0;while(l>0){if(l%2)m+=d[l+1];l=l-1>>1,d[l]+=p.weight}c+=p.weight*m})),c}function On(r){var e={},n=Ft(r.nodes(),function(d){return!r.children(d).length}),o=S(E(n,function(d){return r.node(d).rank})),i=E(P(o+1),function(){return[]});function f(d){if(mr(e,d))return;e[d]=!0;var c=r.node(d);i[c.rank].push(d),v(r.successors(d),f)}var s=A(n,function(d){return r.node(d).rank});return v(s,f),i}function In(r,e){return E(e,function(n){var o=r.inEdges(n);if(!o.length)return{v:n};else{var i=Gn(o,function(f,s){var d=r.edge(s),c=r.node(s.v);return{sum:f.sum+d.weight*c.order,weight:f.weight+d.weight}},{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}})}function Sn(r,e){var n={};v(r,function(i,f){var s=n[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:f};if(!We(i.barycenter))s.barycenter=i.barycenter,s.weight=i.weight}),v(e.edges(),function(i){var f=n[i.v],s=n[i.w];if(!We(f)&&!We(s))s.indegree++,f.out.push(n[i.w])});var o=Ft(n,function(i){return!i.indegree});return ys(o)}function ys(r){var e=[];function n(f){return function(s){if(s.merged)return;if(We(s.barycenter)||We(f.barycenter)||s.barycenter>=f.barycenter)ws(f,s)}}function o(f){return function(s){if(s.in.push(f),--s.indegree===0)r.push(s)}}while(r.length){var i=r.pop();e.push(i),v(i.in.reverse(),n(i)),v(i.out,o(i))}return E(Ft(e,function(f){return!f.merged}),function(f){return K(f,["vs","i","barycenter","weight"])})}function ws(r,e){var n=0,o=0;if(r.weight)n+=r.barycenter*r.weight,o+=r.weight;if(e.weight)n+=e.barycenter*e.weight,o+=e.weight;r.vs=e.vs.concat(r.vs),r.barycenter=n/o,r.weight=o,r.i=Math.min(e.i,r.i),e.merged=!0}function Pn(r,e){var n=Gt(r,function(l){return Object.prototype.hasOwnProperty.call(l,"barycenter")}),o=n.lhs,i=A(n.rhs,function(l){return-l.i}),f=[],s=0,d=0,c=0;o.sort(_s(!!e)),c=Nn(f,i,c),v(o,function(l){c+=l.vs.length,f.push(l.vs),s+=l.barycenter*l.weight,d+=l.weight,c=Nn(f,i,c)});var p={vs:N(f)};if(d)p.barycenter=s/d,p.weight=d;return p}function Nn(r,e,n){var o;while(e.length&&(o=X(e)).i<=n)e.pop(),r.push(o.vs),n++;return n}function _s(r){return function(e,n){if(e.barycenter<n.barycenter)return-1;else if(e.barycenter>n.barycenter)return 1;return!r?e.i-n.i:n.i-e.i}}function Wr(r,e,n,o){var i=r.children(e),f=r.node(e),s=f?f.borderLeft:void 0,d=f?f.borderRight:void 0,c={};if(s)i=Ft(i,function(w){return w!==s&&w!==d});var p=In(r,i);v(p,function(w){if(r.children(w.v).length){var y=Wr(r,w.v,n,o);if(c[w.v]=y,Object.prototype.hasOwnProperty.call(y,"barycenter"))xs(w,y)}});var l=Sn(p,n);Es(l,c);var m=Pn(l,o);if(s){if(m.vs=N([s,m.vs,d]),r.predecessors(s).length){var h=r.node(r.predecessors(s)[0]),b=r.node(r.predecessors(d)[0]);if(!Object.prototype.hasOwnProperty.call(m,"barycenter"))m.barycenter=0,m.weight=0;m.barycenter=(m.barycenter*m.weight+h.order+b.order)/(m.weight+2),m.weight+=2}}return m}function Es(r,e){v(r,function(n){n.vs=N(n.vs.map(function(o){if(e[o])return e[o].vs;return o}))})}function xs(r,e){if(!We(r.barycenter))r.barycenter=(r.barycenter*r.weight+e.barycenter*e.weight)/(r.weight+e.weight),r.weight+=e.weight;else r.barycenter=e.barycenter,r.weight=e.weight}function Cn(r){var e=jr(r),n=kn(r,P(1,e+1),"inEdges"),o=kn(r,P(e-1,-1,-1),"outEdges"),i=On(r);Tn(r,i);var f=Number.POSITIVE_INFINITY,s;for(var d=0,c=0;c<4;++d,++c){Os(d%2?n:o,d%4>=2),i=D(r);var p=En(r,i);if(p<f)c=0,s=Ue(i),f=p}Tn(r,s)}function kn(r,e,n){return E(e,function(o){return _n(r,o,n)})}function Os(r,e){var n=new xe;v(r,function(o){var i=o.graph().root,f=Wr(o,i,n,e);v(f.vs,function(s,d){o.node(s).order=d}),bn(o,n,f.vs)})}function Tn(r,e){v(e,function(n){v(n,function(o,i){r.node(o).order=i})})}function An(r){var e=Is(r);v(r.graph().dummyChains,function(n){var o=r.node(n),i=o.edgeObj,f=Ls(r,e,i.v,i.w),{path:s,lca:d}=f,c=0,p=s[c],l=!0;while(n!==i.w){if(o=r.node(n),l){while((p=s[c])!==d&&r.node(p).maxRank<o.rank)c++;if(p===d)l=!1}if(!l){while(c<s.length-1&&r.node(p=s[c+1]).minRank<=o.rank)c++;p=s[c]}r.setParent(n,p),n=r.successors(n)[0]}})}function Ls(r,e,n,o){var i=[],f=[],s=Math.min(e[n].low,e[o].low),d=Math.max(e[n].lim,e[o].lim),c,p;c=n;do c=r.parent(c),i.push(c);while(c&&(e[c].low>s||d>e[c].lim));p=c,c=o;while((c=r.parent(c))!==p)f.push(c);return{path:i.concat(f.reverse()),lca:p}}function Is(r){var e={},n=0;function o(i){var f=n;v(r.children(i),o),e[i]={low:f,lim:n++}}return v(r.children(),o),e}function Ss(r,e){var n={};function o(i,f){var s=0,d=0,c=i.length,p=X(f);return v(f,function(l,m){var h=Ps(r,l),b=h?r.node(h).order:c;if(h||l===p)v(f.slice(d,m+1),function(w){v(r.predecessors(w),function(y){var g=r.node(y),_=g.order;if((_<s||b<_)&&!(g.dummy&&r.node(w).dummy))Rn(n,y,w)})}),d=m+1,s=b}),f}return Gn(e,o),n}function Ns(r,e){var n={};function o(f,s,d,c,p){var l;v(P(s,d),function(m){if(l=f[m],r.node(l).dummy)v(r.predecessors(l),function(h){var b=r.node(h);if(b.dummy&&(b.order<c||b.order>p))Rn(n,h,l)})})}function i(f,s){var d=-1,c,p=0;return v(s,function(l,m){if(r.node(l).dummy==="border"){var h=r.predecessors(l);if(h.length)c=r.node(h[0]).order,o(s,p,m,d,c),p=m,d=c}o(s,p,s.length,c,f.length)}),s}return Gn(e,i),n}function Ps(r,e){if(r.node(e).dummy)return tr(r.predecessors(e),function(n){return r.node(n).dummy})}function Rn(r,e,n){if(e>n){var o=e;e=n,n=o}if(!Object.prototype.hasOwnProperty.call(r,e))Object.defineProperty(r,e,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=r[e];Object.defineProperty(i,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function ks(r,e,n){if(e>n){var o=e;e=n,n=o}return!!r[e]&&Object.prototype.hasOwnProperty.call(r[e],n)}function Ts(r,e,n,o){var i={},f={},s={};return v(e,function(d){v(d,function(c,p){i[c]=c,f[c]=c,s[c]=p})}),v(e,function(d){var c=-1;v(d,function(p){var l=o(p);if(l.length){l=A(l,function(y){return s[y]});var m=(l.length-1)/2;for(var h=Math.floor(m),b=Math.ceil(m);h<=b;++h){var w=l[h];if(f[p]===p&&c<s[w]&&!ks(n,p,w))f[w]=p,f[p]=i[p]=i[w],c=s[w]}}})}),{root:i,align:f}}function Cs(r,e,n,o,i){var f={},s=As(r,e,n,i),d=i?"borderLeft":"borderRight";function c(m,h){var b=s.nodes(),w=b.pop(),y={};while(w){if(y[w])m(w);else y[w]=!0,b.push(w),b=b.concat(h(w));w=b.pop()}}function p(m){f[m]=s.inEdges(m).reduce(function(h,b){return Math.max(h,f[b.v]+s.edge(b))},0)}function l(m){var h=s.outEdges(m).reduce(function(w,y){return Math.min(w,f[y.w]-s.edge(y))},Number.POSITIVE_INFINITY),b=r.node(m);if(h!==Number.POSITIVE_INFINITY&&b.borderType!==d)f[m]=Math.max(f[m],h)}return c(p,s.predecessors.bind(s)),c(l,s.successors.bind(s)),v(o,function(m){f[m]=f[n[m]]}),f}function As(r,e,n,o){var i=new xe,f=r.graph(),s=Bs(f.nodesep,f.edgesep,o);return v(e,function(d){var c;v(d,function(p){var l=n[p];if(i.setNode(l),c){var m=n[c],h=i.edge(m,l);i.setEdge(m,l,Math.max(s(r,p,c),h||0))}c=p})}),i}function Rs(r,e){return H(an(e),function(n){var{NEGATIVE_INFINITY:o,POSITIVE_INFINITY:i}=Number;return et(n,function(f,s){var d=Ds(r,s)/2;o=Math.max(f+d,o),i=Math.min(f-d,i)}),o-i})}function Ms(r,e){var n=an(e),o=B(n),i=S(n);v(["u","d"],function(f){v(["l","r"],function(s){var d=f+s,c=r[d],p;if(c===e)return;var l=an(c);if(p=s==="l"?o-B(l):i-S(l),p)r[d]=W(c,function(m){return m+p})})})}function js(r,e){return W(r.ul,function(n,o){if(e)return r[e.toLowerCase()][o];else{var i=A(E(r,o));return(i[1]+i[2])/2}})}function Mn(r){var e=D(r),n=nr(Ss(r,e),Ns(r,e)),o={},i;v(["u","d"],function(s){i=s==="u"?e:an(e).reverse(),v(["l","r"],function(d){if(d==="r")i=E(i,function(m){return an(m).reverse()});var c=(s==="u"?r.predecessors:r.successors).bind(r),p=Ts(r,i,n,c),l=Cs(r,i,p.root,p.align,d==="r");if(d==="r")l=W(l,function(m){return-m});o[s+d]=l})});var f=Rs(r,o);return Ms(o,f),js(o,r.graph().align)}function Bs(r,e,n){return function(o,i,f){var s=o.node(i),d=o.node(f),c=0,p;if(c+=s.width/2,Object.prototype.hasOwnProperty.call(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":p=-s.width/2;break;case"r":p=s.width/2;break}if(p)c+=n?p:-p;if(p=0,c+=(s.dummy?e:r)/2,c+=(d.dummy?e:r)/2,c+=d.width/2,Object.prototype.hasOwnProperty.call(d,"labelpos"))switch(d.labelpos.toLowerCase()){case"l":p=d.width/2;break;case"r":p=-d.width/2;break}if(p)c+=n?p:-p;return p=0,c}}function Ds(r,e){return r.node(e).width}function Bn(r){r=gr(r),Fs(r),tt(Mn(r),function(e,n){r.node(n).x=e})}function Fs(r){var e=D(r),n=r.graph().ranksep,o=0;v(e,function(i){var f=S(E(i,function(s){return r.node(s).height}));v(i,function(s){r.node(s).y=o+f/2}),o+=f+n})}function Kr(r,e){var n=e&&e.debugTiming?Xt:Ut;n("layout",()=>{var o=n(" buildLayoutGraph",()=>ru(r));n(" runLayout",()=>Gs(o,n)),n(" updateInputGraph",()=>Us(r,o))})}function Gs(r,e){e(" makeSpaceForEdgeLabels",()=>eu(r)),e(" removeSelfEdges",()=>du(r)),e(" acyclic",()=>Tt(r)),e(" nestingGraph.run",()=>ln(r)),e(" rank",()=>zr(gr(r))),e(" injectEdgeLabelProxies",()=>tu(r)),e(" removeEmptyRanks",()=>Dt(r)),e(" nestingGraph.cleanup",()=>hn(r)),e(" normalizeRanks",()=>jt(r)),e(" assignRankMinMax",()=>nu(r)),e(" removeEdgeLabelProxies",()=>ou(r)),e(" normalize.run",()=>Jt(r)),e(" parentDummyChains",()=>An(r)),e(" addBorderSegments",()=>Yt(r)),e(" order",()=>Cn(r)),e(" insertSelfEdges",()=>cu(r)),e(" adjustCoordinateSystem",()=>Wt(r)),e(" position",()=>Bn(r)),e(" positionSelfEdges",()=>pu(r)),e(" removeBorderNodes",()=>uu(r)),e(" normalize.undo",()=>Zt(r)),e(" fixupEdgeLabelCoords",()=>fu(r)),e(" undoCoordinateSystem",()=>qt(r)),e(" translateGraph",()=>iu(r)),e(" assignNodeIntersects",()=>au(r)),e(" reversePoints",()=>su(r)),e(" acyclic.undo",()=>Ct(r))}function Us(r,e){v(r.nodes(),function(n){var o=r.node(n),i=e.node(n);if(o){if(o.x=i.x,o.y=i.y,e.children(n).length)o.width=i.width,o.height=i.height}}),v(r.edges(),function(n){var o=r.edge(n),i=e.edge(n);if(o.points=i.points,Object.prototype.hasOwnProperty.call(i,"x"))o.x=i.x,o.y=i.y}),r.graph().width=e.graph().width,r.graph().height=e.graph().height}var Vs=["nodesep","edgesep","ranksep","marginx","marginy"],Ys={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},zs=["acyclicer","ranker","rankdir","align"],Ws=["width","height"],qs={width:0,height:0},Hs=["minlen","weight","width","height","labeloffset"],Js={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},$s=["labelpos"];function ru(r){var e=new xe({multigraph:!0,compound:!0}),n=Hr(r.graph());return e.setGraph(nr({},Ys,qr(n,Vs),K(n,zs))),v(r.nodes(),function(o){var i=Hr(r.node(o));e.setNode(o,ze(qr(i,Ws),qs)),e.setParent(o,r.parent(o))}),v(r.edges(),function(o){var i=Hr(r.edge(o));e.setEdge(o,nr({},Js,qr(i,Hs),K(i,$s)))}),e}function eu(r){var e=r.graph();e.ranksep/=2,v(r.edges(),function(n){var o=r.edge(n);if(o.minlen*=2,o.labelpos.toLowerCase()!=="c")if(e.rankdir==="TB"||e.rankdir==="BT")o.width+=o.labeloffset;else o.height+=o.labeloffset})}function tu(r){v(r.edges(),function(e){var n=r.edge(e);if(n.width&&n.height){var o=r.node(e.v),i=r.node(e.w),f={rank:(i.rank-o.rank)/2+o.rank,e};T(r,"edge-proxy",f,"_ep")}})}function nu(r){var e=0;v(r.nodes(),function(n){var o=r.node(n);if(o.borderTop)o.minRank=r.node(o.borderTop).rank,o.maxRank=r.node(o.borderBottom).rank,e=S(e,o.maxRank)}),r.graph().maxRank=e}function ou(r){v(r.nodes(),function(e){var n=r.node(e);if(n.dummy==="edge-proxy")r.edge(n.e).labelRank=n.rank,r.removeNode(e)})}function iu(r){var e=Number.POSITIVE_INFINITY,n=0,o=Number.POSITIVE_INFINITY,i=0,f=r.graph(),s=f.marginx||0,d=f.marginy||0;function c(p){var{x:l,y:m,width:h,height:b}=p;e=Math.min(e,l-h/2),n=Math.max(n,l+h/2),o=Math.min(o,m-b/2),i=Math.max(i,m+b/2)}v(r.nodes(),function(p){c(r.node(p))}),v(r.edges(),function(p){var l=r.edge(p);if(Object.prototype.hasOwnProperty.call(l,"x"))c(l)}),e-=s,o-=d,v(r.nodes(),function(p){var l=r.node(p);l.x-=e,l.y-=o}),v(r.edges(),function(p){var l=r.edge(p);if(v(l.points,function(m){m.x-=e,m.y-=o}),Object.prototype.hasOwnProperty.call(l,"x"))l.x-=e;if(Object.prototype.hasOwnProperty.call(l,"y"))l.y-=o}),f.width=n-e+s,f.height=i-o+d}function au(r){v(r.edges(),function(e){var n=r.edge(e),o=r.node(e.v),i=r.node(e.w),f,s;if(!n.points)n.points=[],f=i,s=o;else f=n.points[0],s=n.points[n.points.length-1];n.points.unshift(Rr(o,f)),n.points.push(Rr(i,s))})}function fu(r){v(r.edges(),function(e){var n=r.edge(e);if(Object.prototype.hasOwnProperty.call(n,"x")){if(n.labelpos==="l"||n.labelpos==="r")n.width-=n.labeloffset;switch(n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}}})}function su(r){v(r.edges(),function(e){var n=r.edge(e);if(n.reversed)n.points.reverse()})}function uu(r){v(r.nodes(),function(e){if(r.children(e).length){var n=r.node(e),o=r.node(n.borderTop),i=r.node(n.borderBottom),f=r.node(X(n.borderLeft)),s=r.node(X(n.borderRight));n.width=Math.abs(s.x-f.x),n.height=Math.abs(i.y-o.y),n.x=f.x+n.width/2,n.y=o.y+n.height/2}}),v(r.nodes(),function(e){if(r.node(e).dummy==="border")r.removeNode(e)})}function du(r){v(r.edges(),function(e){if(e.v===e.w){var n=r.node(e.v);if(!n.selfEdges)n.selfEdges=[];n.selfEdges.push({e,label:r.edge(e)}),r.removeEdge(e)}})}function cu(r){var e=D(r);v(e,function(n){var o=0;v(n,function(i,f){var s=r.node(i);s.order=f+o,v(s.selfEdges,function(d){T(r,"selfedge",{width:d.label.width,height:d.label.height,rank:s.rank,order:f+ ++o,e:d.e,label:d.label},"_se")}),delete s.selfEdges})})}function pu(r){v(r.nodes(),function(e){var n=r.node(e);if(n.dummy==="selfedge"){var o=r.node(n.e.v),i=o.x+o.width/2,f=o.y,s=n.x-i,d=o.height/2;r.setEdge(n.e,n.label),r.removeNode(e),n.label.points=[{x:i+2*s/3,y:f-d},{x:i+5*s/6,y:f-d},{x:i+s,y:f},{x:i+5*s/6,y:f+d},{x:i+2*s/3,y:f+d}],n.label.x=n.x,n.label.y=n.y}})}function qr(r,e){return W(K(r,e),Number)}function Hr(r){var e={};return v(r,function(n,o){e[o.toLowerCase()]=n}),e}var Dn=t((r,e,n)=>Math.max(e,Math.min(n,r)),"clamp"),Fn=t((r="TB")=>{switch(r){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";case"TB":default:return"top"}},"getDefaultSelfLoopSide"),lu=t((r)=>r==="flowchart"||r==="flowchart-v2"||r==="stateDiagram"||r==="er"||r==="classDiagram","shouldMergeSelfLoopSegments"),mu=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],hu=t((r,e,n,o,i)=>{let f=[],s=new Set;if(n.forEach(({start:l,end:m})=>{if(l!==o)s.add(l);if(m!==o)s.add(m)}),s.forEach((l)=>{let m=r.node(l);if(typeof m?.x==="number"&&typeof m?.y==="number")f.push(m)}),f.length===0)n.forEach(({edge:l})=>{(l.points??[]).forEach((m)=>{if(typeof m?.x==="number"&&typeof m?.y==="number")f.push(m)})});if(f.length===0)return Fn(i);let d=f.reduce((l,m)=>({x:l.x+m.x/f.length,y:l.y+m.y/f.length}),{x:0,y:0}),c=d.x-e.x,p=d.y-e.y;if(Math.abs(c)>Math.abs(p))return c>0?"right":"left";if(Math.abs(p)>0)return p>0?"bottom":"top";return Fn(i)},"getSelfLoopSide"),gu=t((r,e="top",n=0,o=0)=>{let i=r.x,f=r.y-n,s=r.width/2,d=r.height/2,c=Math.max(36,Math.min(100,r.width*0.8)),p=Dn(Math.max(o,r.width*0.35),36,c),l=Dn(Math.min(r.width,r.height)*0.45,24,48);switch(e){case"bottom":{let m=f+d;return[{x:i-p/2,y:m},{x:i-p/2,y:m+l},{x:i+p/2,y:m+l},{x:i+p/2,y:m}]}case"right":{let m=i+s;return[{x:m,y:f-p/2},{x:m+l,y:f-p/2},{x:m+l,y:f+p/2},{x:m,y:f+p/2}]}case"left":{let m=i-s;return[{x:m,y:f-p/2},{x:m-l,y:f-p/2},{x:m-l,y:f+p/2},{x:m,y:f+p/2}]}case"top":default:{let m=f-d;return[{x:i-p/2,y:m},{x:i-p/2,y:m-l},{x:i+p/2,y:m-l},{x:i+p/2,y:m}]}}},"getSelfLoopPoints"),vu=t((r,e,n="top",o=0,i={})=>{let s=r.x,d=r.y-o,c=i.width??0,p=i.height??0;switch(n){case"bottom":return{x:s,y:Math.max(...e.map((l)=>l.y))+p/2+4};case"right":return{x:Math.max(...e.map((l)=>l.x))+c/2+4,y:d};case"left":return{x:Math.min(...e.map((l)=>l.x))-c/2-4,y:d};case"top":default:return{x:s,y:Math.min(...e.map((l)=>l.y))-p/2-4}}},"getSelfLoopLabelPosition"),Zs=t((r,e=0,{mergeSelfLoops:n=!0}={})=>{let o=new Map,i=[],f=r.graph()?.rankdir;return r.edges().forEach((s)=>{let d=r.edge(s);if(n&&d.selfLoop){let c=d.selfLoop.id;if(!o.has(c))o.set(c,[]);o.get(c).push({edge:d,start:s.v,end:s.w})}else i.push({edge:d,start:s.v,end:s.w})}),o.forEach((s)=>{if(s.length!==3){s.forEach((_)=>i.push(_));return}s.sort((_,R)=>_.edge.selfLoop.order-R.edge.selfLoop.order);let[d,c,p]=s,l=d.edge.originalEdge??c.edge.originalEdge??p.edge.originalEdge??c.edge,m=r.node(l.start);if(!m){s.forEach((_)=>i.push(_));return}let h={width:c.edge.width,height:c.edge.height},b=hu(r,m,s,l.start,f),w=gu(m,b,e,h.width??0),y=vu(m,w,b,e,h),g={...c.edge,...l,id:l.id,points:w,start:l.start,end:l.end,x:y.x,y:y.y,width:h.width,height:h.height,labelStyle:c.edge.labelStyle,fromCluster:d.edge.fromCluster??c.edge.fromCluster??p.edge.fromCluster,toCluster:d.edge.toCluster??c.edge.toCluster??p.edge.toCluster};delete g.selfLoop,delete g.originalEdge,i.push({edge:g,start:g.start,end:g.end})}),i},"getEdgesToRender"),zn=t(async({element:r,graph:e,diagramType:n,id:o,parentCluster:i,siteConfig:f})=>{let s=e.graph().rankdir;a.trace("Dir in recursive render - dir:",s);let{clusters:d,edgePaths:c,edgeLabels:p,nodes:l,rootGroups:m}=ji(r,{edgePathsClass:"edgePaths"});if(!e.nodes())a.info("No nodes found for",e);else a.info("Recursive render XXX",e.nodes());if(e.edges().length>0)a.info("Recursive edges",e.edge(e.edges()[0]));let h=lu(n);await Promise.all(e.nodes().map(async function(y){let g=e.node(y);if(i!==void 0){let _=JSON.parse(JSON.stringify(i.clusterData));if(a.trace(`Setting data for parent cluster XXX
|
|
2
|
+
Node.id = `,y,`
|
|
3
|
+
data=`,_.height,`
|
|
4
|
+
Parent cluster`,i.height),e.setNode(i.id,_),!e.parent(y))a.trace("Setting parent",y,i.id),e.setParent(y,i.id,_)}if(a.info("(Insert) Node XXX"+y+": "+JSON.stringify(e.node(y))),g?.clusterNode){a.info("Cluster identified XBX",y,g.width,e.node(y));let{ranksep:_,nodesep:R}=e.graph();g.graph.setGraph({...g.graph.graph(),ranksep:_+25,nodesep:R});let Jr=await _u({element:l,graph:g.graph,diagramType:n,id:o,parentCluster:e.node(y),siteConfig:f}),Zr=Jr.elem;O(g,Zr),g.diff=Jr.diff||0,a.info("New compound node after recursive render XAX",y,"width",g.width,"height",g.height),ml(Zr,g)}else if(e.children(y).length>0)a.trace("Cluster - the non recursive path XBX",y,g.id,g,g.width,"Graph:",e),a.trace(Yr(g.id,e)),J.set(g.id,{id:Yr(g.id,e),node:g});else a.trace("Node - the non recursive path XAX",y,l,e.node(y),s),await qi(l,e.node(y),{config:f,dir:s})})),await t(async()=>{let y=e.edges().map(async function(g){let _=e.edge(g.v,g.w,g.name);if(a.info("Edge "+g.v+" -> "+g.w+": "+JSON.stringify(g)),a.info("Edge "+g.v+" -> "+g.w+": ",g," ",JSON.stringify(e.edge(g))),a.info("Fix",J,"ids:",g.v,g.w,"Translating: ",J.get(g.v),J.get(g.w)),h&&_.selfLoop){if(_.selfLoop.order!==1)return;let R={..._.originalEdge,..._,id:_.selfLoop.id,startLabelLeft:_.originalEdge?.startLabelLeft??_.startLabelLeft,startLabelRight:_.originalEdge?.startLabelRight??_.startLabelRight,endLabelLeft:_.originalEdge?.endLabelLeft??_.endLabelLeft,endLabelRight:_.originalEdge?.endLabelRight??_.endLabelRight};await xn(p,R),_.width=R.width,_.height=R.height,_.labelStyle=R.labelStyle;return}await xn(p,_)});await Promise.all(y)},"processEdges")();let{subGraphTitleTotalMargin:w}=vn(f);return{elem:m,graph:e,groups:{clusters:d,edgePaths:c,edgeLabels:p,nodes:l,rootGroups:m},diagramType:n,id:o,mergeSelfLoops:h,subGraphTitleTotalMargin:w}},"measureDagreGraph"),Hn=t((r)=>{a.info("############################################# XXX"),a.info("### Layout ### XXX"),a.info("############################################# XXX"),Kr(r)},"runDagreGraphLayout"),bu=t((r,e,n)=>{let o=r.node(e);if(!o)return;let i={...o};if(o?.clusterNode)i.y=(o.y??0)+n;else if(r.children(e).length>0)i.height=(o.height??0)+n;else i.y=(o.y??0)+n/2;return i},"normalizeDagreNode"),Yn=t((r,e)=>{mu.forEach((n)=>{if(e[n]!==void 0)r[n]=e[n]})},"applyDagreNodeLayout"),yu=t((r,e,n,o)=>({...r,start:r.start??e,end:r.end??n,points:(r.points??[]).map((i)=>({...i,y:typeof i.y==="number"?i.y+o:i.y}))}),"normalizeDagreEdge"),Ll=t((r,e)=>{let{graph:n,mergeSelfLoops:o,subGraphTitleTotalMargin:i=0}=e,f=new Map(r.nodes.map((d)=>[d.id,d]));Vi(n).forEach((d)=>{let c=bu(n,d,i);if(!c)return;Yn(n.node(d),c);let p=f.get(d);if(p)Yn(p,c)});let s=i/2;return r.edges=Zs(n,s,{mergeSelfLoops:o}).map(({edge:d,start:c,end:p})=>yu(d,c,p,s)),r},"applyDagreLayoutResult"),wu=t(async({elem:r,graph:e,groups:{clusters:n,edgePaths:o},diagramType:i,id:f,mergeSelfLoops:s,subGraphTitleTotalMargin:d})=>{let c=0;await Promise.all(Vi(e).map(async function(m){let h=e.node(m);if(a.info("Position XBX => "+m+": ("+h.x,","+h.y,") width: ",h.width," height: ",h.height),h?.clusterNode)h.y+=d,a.info("A tainted cluster node XBX1",m,h.id,h.width,h.height,h.x,h.y,e.parent(m)),J.get(h.id).node=h,un(h);else if(e.children(m).length>0){a.info("A pure cluster node XBX1",m,h.id,h.x,h.y,h.width,h.height,e.parent(m)),h.height+=d,e.node(h.parentId);let b=h?.padding/2||0,w=h?.labelBBox?.height||0,y=w-b||0;a.debug("OffsetY",y,"labelHeight",w,"halfPadding",b),await Xn(n,h),J.get(h.id).node=h}else{let b=e.node(h.parentId);h.y+=d/2,a.info("A regular node XBX1 - using the padding",h.id,"parent",h.parentId,h.width,h.height,h.x,h.y,"offsetY",h.offsetY,"parent",b,b?.offsetY,h),un(h)}}));let p=d/2;return Zs(e,p,{mergeSelfLoops:s}).forEach(function({edge:m,start:h,end:b}){a.info("Edge "+h+" -> "+b+": "+JSON.stringify(m),m),m.points.forEach((_)=>_.y+=p);let w=e.node(h),y=e.node(b),g=Kn(o,m,J,i,w,y,f);aa(m,g)}),e.nodes().forEach(function(m){let h=e.node(m);if(a.info(m,h.type,h.diff),h.isGroup)c=h.diff}),a.warn("Returning from recursive render XAX",r,c),{elem:r,diff:c}},"paintDagreLayoutCore"),_u=t(async(r)=>{let e=await zn(r);return Hn(e.graph),await wu(e)},"renderDagreSubgraph"),Xs=t((r)=>{let e=new xe({multigraph:!0,compound:!0}).setGraph({rankdir:r.direction,nodesep:r.config?.nodeSpacing||r.nodeSpacing||r.config?.flowchart?.nodeSpacing,ranksep:r.config?.rankSpacing||r.rankSpacing||r.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return r.nodes.forEach((n)=>{if(e.setNode(n.id,{...n}),n.parentId)e.setParent(n.id,n.parentId)}),a.debug("Edges:",r.edges),r.edges.forEach((n)=>{if(n.start===n.end){let o=n.start,i=o+"---"+o+"---1",f=o+"---"+o+"---2",s=e.node(o);e.setNode(i,{domId:i,id:i,parentId:s.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),e.setParent(i,s.parentId),e.setNode(f,{domId:f,id:f,parentId:s.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),e.setParent(f,s.parentId);let d=structuredClone(n),c=structuredClone(n),p=structuredClone(n),l=structuredClone(n);if(c.originalEdge=d,c.selfLoop={id:d.id,order:0},p.originalEdge=d,p.selfLoop={id:d.id,order:1},l.originalEdge=d,l.selfLoop={id:d.id,order:2},c.label="",c.arrowTypeEnd="none",c.endLabelLeft="",c.endLabelRight="",c.startLabelLeft="",c.id=o+"-cyclic-special-1",p.startLabelRight="",p.startLabelLeft="",p.endLabelLeft="",p.endLabelRight="",p.arrowTypeStart="none",p.arrowTypeEnd="none",p.id=o+"-cyclic-special-mid",l.label="",l.startLabelRight="",l.startLabelLeft="",l.arrowTypeStart="none",s.isGroup)c.fromCluster=o,l.toCluster=o;l.id=o+"-cyclic-special-2",l.arrowTypeStart="none",e.setEdge(o,i,c,o+"-cyclic-special-0"),e.setEdge(i,f,p,o+"-cyclic-special-1"),e.setEdge(f,o,l,o+"-cyclic-special-2")}else e.setEdge(n.start,n.end,{...n},n.id)}),Qs(e),{graph:e}},"prepareLayoutForDagre"),Il=t(async(r,{element:e,preparedLayout:n})=>{let o=n??Xs(r),i=u(),f=await zn({element:e,graph:o.graph,diagramType:r.type,id:r.diagramId,parentCluster:void 0,siteConfig:i});return o.measuredLayout=f,f},"measureDagreLayout"),Dl=t((r,e)=>{let n=e.preparedLayout?.measuredLayout;if(!n)throw Error("runDagreLayoutCore requires measureDagreLayout to run first");return Hn(n.graph),Ll(r,n),n},"runDagreLayoutCore"),Eu=t((r,{measure:e})=>Vi(e.graph).map((n)=>e.graph.node(n)).filter(Boolean),"getDagrePaintNodes"),xu=t((r,e,{measure:n})=>r?n.graph.node(r):void 0,"getDagreEdgeNode"),Ks=Ta({prepareLayout:Xs,measureLayout:Il,runLayoutCore:Dl,paintOptions:{clusterDb:J,getNodes:Eu,getEdgeNode:xu,skipNode:t((r,{measure:e})=>!e.graph.hasNode(r.id),"skipNode"),isCluster:t((r,{measure:e})=>e.graph.hasNode(r.id)&&(e.graph.children(r.id)??[]).length>0,"isCluster")}});export{Zs,Ll,Xs,Il,Dl,Ks};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h,e,n,x,s,be,ie,Z,Pt}from"./chunk-fba06jm8.js";var B=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],N=s("circle-slash",B);function S(t){if(!t||typeof t!=="object")return;if(!("id"in t)||typeof t.id!=="string")return;if(!("state"in t)||typeof t.state!=="string")return;return{id:t.id,state:t.state,command:"command"in t&&typeof t.command==="string"?t.command:void 0,code:"code"in t&&(t.code===null||typeof t.code==="number")?t.code:void 0,output:"output"in t&&typeof t.output==="string"?t.output:void 0}}function U(t){let{Button:b,Panel:k,style:C}=x(),i=S(t.payload),[a,c]=r(!1),[P,I]=r(!1),[u,m]=r();if(!i)return null;let o=P?"killed":i.state,d=o==="running",l=o==="exited"&&i.code===0,f=o==="killed"||o==="timeout",p=i.output?.trim(),z=async()=>{if(a)return;c(!0),m(void 0);try{await t.connection.request(`/api/sessions/${encodeURIComponent(t.sessionID)}/jobs/${encodeURIComponent(i.id)}/kill`,{method:"POST"}),I(!0)}catch(g){m(g instanceof Error?g.message:"停止失败,后台任务可能已结束")}finally{c(!1)}};return n(k,{className:"my-2",header:n(h,{children:[e(Pt,{className:"size-3.5 shrink-0 text-faint"}),e("span",{className:"truncate font-mono text-ink/90",title:i.command??i.id,children:i.command??`任务 ${i.id}`})]}),actions:n(h,{children:[d&&n(h,{children:[n("span",{className:"flex items-center gap-1 text-warning",children:[e(ie,{className:"size-3.5 animate-spin"}),e("span",{children:"后台运行中"})]}),e(b,{size:"sm",variant:"danger-ghost",className:"h-6 rounded-md px-2 text-xs",disabled:a,onClick:()=>{z()},children:"停止"})]}),l&&n("span",{className:"flex items-center gap-1 text-success",children:[e(Z,{className:"size-3.5"}),e("span",{children:"已完成"})]}),f&&n("span",{className:"flex items-center gap-1 text-faint",children:[e(N,{className:"size-3.5"}),e("span",{children:o==="timeout"?"已超时":"已停止"})]}),!d&&!l&&!f&&n("span",{className:"flex items-center gap-1 text-danger",children:[e(be,{className:"size-3.5"}),n("span",{children:["退出码 ",i.code??"异常"]})]})]}),children:[u&&e("p",{role:"status",className:"border-b border-line px-4 py-2.5 text-xs text-danger",children:u}),p&&e("pre",{className:C("chat.toolOutput","max-h-60 text-ink/90 select-text"),children:p})]})}export{U as BashJobCard};
|
|
Binary file
|
|
Binary file
|