@bkm016/basalt 0.1.26 → 0.1.27
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-00jhevnt.js +3 -0
- package/chunk-04tx0etc.js +2 -0
- package/chunk-0r86p29p.js +7 -0
- package/chunk-10x1zefx.js +25 -0
- package/chunk-1amcz1cz.js +10 -0
- package/chunk-1pfdps04.js +2 -0
- package/chunk-206g40v9.js +59 -0
- package/chunk-2364s958.js +7 -0
- package/chunk-3fv2qcpg.js +12 -0
- package/chunk-3zz4a5tn.js +31 -0
- package/chunk-45wfmdts.js +44 -0
- package/chunk-4hkwjw05.js +2 -0
- package/chunk-4pq7ycp2.js +5 -0
- package/chunk-51f8zbj5.js +3 -0
- package/chunk-5e0qfdgx.js +5 -0
- package/chunk-7hpf9qq2.js +3 -0
- package/chunk-82dkdvs9.js +2 -0
- package/chunk-8913dkey.js +3 -0
- package/chunk-8g1sbmwf.js +3 -0
- package/chunk-8hfch7d0.js +2 -0
- package/chunk-90arpvgz.js +2 -0
- package/chunk-912knnfg.js +11 -0
- package/chunk-97bazdk3.js +20 -0
- package/chunk-9akexjfn.js +2 -0
- package/chunk-9dgmbwcc.js +2 -0
- package/chunk-acd2cwza.js +3 -0
- package/chunk-ach16jbw.js +2 -0
- package/chunk-ax823t5v.js +3 -0
- package/chunk-b03hg30w.js +2 -0
- package/chunk-bh29df86.js +5 -0
- package/chunk-bhpg72c4.js +2 -0
- package/chunk-bwww6j2q.js +2 -0
- package/chunk-c126k8wc.js +2 -0
- package/chunk-cb3jgak9.js +3 -0
- package/chunk-cjeyy6da.js +3 -0
- package/chunk-cs4gb2hb.js +2 -0
- package/chunk-en5t6hwd.js +3 -0
- package/chunk-f4n1csz0.js +3 -0
- package/chunk-fqfjjhkj.js +3 -0
- package/chunk-h4bvkm6p.js +3 -0
- package/chunk-j01t6mnq.js +3 -0
- package/chunk-j16smb6d.js +2 -0
- package/chunk-j7eqp97m.js +2 -0
- package/chunk-jdrqn8m1.js +2 -0
- package/chunk-jp1gqkbp.js +4 -0
- package/chunk-jrcvxscb.js +9 -0
- package/chunk-jxcghx26.js +50 -0
- package/chunk-k8zq95wr.js +2 -0
- package/chunk-ken7ras9.js +8 -0
- package/chunk-kqgpjmcf.js +2 -0
- package/chunk-krbdx24j.js +3 -0
- package/chunk-ky2ym708.js +8 -0
- package/chunk-kzfy666j.js +16 -0
- package/chunk-n0stnnxv.js +2 -0
- package/chunk-n9m2pagh.js +2 -0
- package/chunk-nedvy6yk.js +10 -0
- package/chunk-ng5g0fy3.js +3 -0
- package/chunk-nqeqasyt.js +7 -0
- package/chunk-nt30x5a7.js +3 -0
- package/chunk-pa7yh2q3.js +3 -0
- package/chunk-q1s5r204.js +3 -0
- package/chunk-qj0vfk01.js +2 -0
- package/chunk-qqfdg01g.js +3 -0
- package/chunk-rj6qknjx.js +12 -0
- package/chunk-rvrj0nrs.js +3 -0
- package/chunk-sbhj5h2q.js +2 -0
- package/chunk-t71zzafh.js +3 -0
- package/chunk-t7fwvzmh.js +3 -0
- package/chunk-tpv5hz99.js +5 -0
- package/chunk-tx2rrrtq.js +2 -0
- package/chunk-tyzzbhr5.js +3 -0
- package/chunk-tzbefwf0.js +286 -0
- package/chunk-v4p8807b.js +18 -0
- package/chunk-vnxjcym9.js +17 -0
- package/chunk-w35r8v6x.js +39 -0
- package/chunk-wbygknv2.js +3 -0
- package/chunk-wk63htqy.js +2 -0
- package/chunk-wwazj6mz.js +3 -0
- package/chunk-x3g1bzq6.js +51 -0
- package/chunk-xpc75mkw.js +25 -0
- package/chunk-ydhdewcv.js +4014 -0
- package/chunk-ypxn8bec.js +3 -0
- package/chunk-yztc2q9q.js +490 -0
- package/compiled.js +9 -9
- package/package.json +1 -1
- package/ui-test-worker.js +52 -52
- package/web/chunk-00a6amwf.js +1 -0
- package/web/chunk-00a6amwf.js.br +0 -0
- package/web/chunk-00a6amwf.js.gz +0 -0
- package/web/chunk-023b3kdx.js +214 -0
- package/web/chunk-023b3kdx.js.br +0 -0
- package/web/chunk-023b3kdx.js.gz +0 -0
- package/web/chunk-1bzdt1n8.js +1 -0
- package/web/chunk-1bzdt1n8.js.br +2 -0
- package/web/chunk-1bzdt1n8.js.gz +0 -0
- package/web/chunk-1fnxbfkf.js +139 -0
- package/web/chunk-1fnxbfkf.js.br +0 -0
- package/web/chunk-1fnxbfkf.js.gz +0 -0
- package/web/chunk-1hmw1eaw.js +1 -0
- package/web/chunk-1hmw1eaw.js.br +0 -0
- package/web/chunk-1hmw1eaw.js.gz +0 -0
- package/web/chunk-1qd75yjn.js +2 -0
- package/web/chunk-1qd75yjn.js.br +0 -0
- package/web/chunk-1qd75yjn.js.gz +0 -0
- package/web/chunk-20gcnbgn.js +2 -0
- package/web/chunk-20gcnbgn.js.br +0 -0
- package/web/chunk-20gcnbgn.js.gz +0 -0
- package/web/chunk-20v068s6.js +1 -0
- package/web/chunk-20v068s6.js.br +0 -0
- package/web/chunk-20v068s6.js.gz +0 -0
- package/web/chunk-22jfhjk3.js +2 -0
- package/web/chunk-22jfhjk3.js.br +0 -0
- package/web/chunk-22jfhjk3.js.gz +0 -0
- package/web/chunk-2nwvdqxm.js +1 -0
- package/web/chunk-2nwvdqxm.js.br +0 -0
- package/web/chunk-2nwvdqxm.js.gz +0 -0
- package/web/chunk-2wvgy7f4.js +1 -0
- package/web/chunk-2wvgy7f4.js.br +0 -0
- package/web/chunk-2wvgy7f4.js.gz +0 -0
- package/web/chunk-37hn49td.js +2 -0
- package/web/chunk-37hn49td.js.br +0 -0
- package/web/chunk-37hn49td.js.gz +0 -0
- package/web/chunk-3crfxxst.js +21 -0
- package/web/chunk-3crfxxst.js.br +0 -0
- package/web/chunk-3crfxxst.js.gz +0 -0
- package/web/chunk-3hg9a6xa.js +1 -0
- package/web/chunk-3hg9a6xa.js.br +0 -0
- package/web/chunk-3hg9a6xa.js.gz +0 -0
- package/web/chunk-3m2nnnk5.js +1 -0
- package/web/chunk-3m2nnnk5.js.br +0 -0
- package/web/chunk-3m2nnnk5.js.gz +0 -0
- package/web/chunk-3ry5cjnp.js +169 -0
- package/web/chunk-3ry5cjnp.js.br +0 -0
- package/web/chunk-3ry5cjnp.js.gz +0 -0
- package/web/chunk-407zrkgx.js +40 -0
- package/web/chunk-407zrkgx.js.br +0 -0
- package/web/chunk-407zrkgx.js.gz +0 -0
- package/web/chunk-414npx47.js +1 -0
- package/web/chunk-414npx47.js.br +0 -0
- package/web/chunk-414npx47.js.gz +0 -0
- package/web/chunk-43e1ste5.js +1 -0
- package/web/chunk-43e1ste5.js.br +0 -0
- package/web/chunk-43e1ste5.js.gz +0 -0
- package/web/chunk-45ex0e3e.js +2 -0
- package/web/chunk-45ex0e3e.js.br +0 -0
- package/web/chunk-45ex0e3e.js.gz +0 -0
- package/web/chunk-508cpafz.js +142 -0
- package/web/chunk-508cpafz.js.br +0 -0
- package/web/chunk-508cpafz.js.gz +0 -0
- package/web/chunk-538r4sey.js +1 -0
- package/web/chunk-538r4sey.js.br +0 -0
- package/web/chunk-538r4sey.js.gz +0 -0
- package/web/chunk-55zs0yq1.js +1 -0
- package/web/chunk-55zs0yq1.js.br +0 -0
- package/web/chunk-55zs0yq1.js.gz +0 -0
- package/web/chunk-58gh3tbh.js +34 -0
- package/web/chunk-58gh3tbh.js.br +0 -0
- package/web/chunk-58gh3tbh.js.gz +0 -0
- package/web/chunk-5h3r1hpg.js +89 -0
- package/web/chunk-5h3r1hpg.js.br +0 -0
- package/web/chunk-5h3r1hpg.js.gz +0 -0
- package/web/chunk-68q4nnmc.js +2 -0
- package/web/chunk-68q4nnmc.js.br +3 -0
- package/web/chunk-68q4nnmc.js.gz +0 -0
- package/web/chunk-6ktmzq32.js +16 -0
- package/web/chunk-6ktmzq32.js.br +0 -0
- package/web/chunk-6ktmzq32.js.gz +0 -0
- package/web/chunk-6ry6x1ez.js +1 -0
- package/web/chunk-6ry6x1ez.js.br +0 -0
- package/web/chunk-6ry6x1ez.js.gz +0 -0
- package/web/chunk-6wxxypbv.js +7 -0
- package/web/chunk-6wxxypbv.js.br +0 -0
- package/web/chunk-6wxxypbv.js.gz +0 -0
- package/web/chunk-6x9r1z9z.js +291 -0
- package/web/chunk-6x9r1z9z.js.br +0 -0
- package/web/chunk-6x9r1z9z.js.gz +0 -0
- package/web/chunk-719tz8xw.js +1 -0
- package/web/chunk-719tz8xw.js.br +0 -0
- package/web/chunk-719tz8xw.js.gz +0 -0
- package/web/chunk-7devrtv4.js +2 -0
- package/web/chunk-7devrtv4.js.br +3 -0
- package/web/chunk-7devrtv4.js.gz +0 -0
- package/web/chunk-7rs26q98.js +2 -0
- package/web/chunk-7rs26q98.js.br +0 -0
- package/web/chunk-7rs26q98.js.gz +0 -0
- package/web/chunk-82aqq58f.js +24 -0
- package/web/chunk-82aqq58f.js.br +0 -0
- package/web/chunk-82aqq58f.js.gz +0 -0
- package/web/chunk-96n00vam.js +1 -0
- package/web/chunk-96n00vam.js.br +0 -0
- package/web/chunk-96n00vam.js.gz +0 -0
- package/web/chunk-99c0h3v7.js +1 -0
- package/web/chunk-99c0h3v7.js.br +0 -0
- package/web/chunk-99c0h3v7.js.gz +0 -0
- package/web/chunk-a11ev6ff.js +1 -0
- package/web/chunk-a11ev6ff.js.br +0 -0
- package/web/chunk-a11ev6ff.js.gz +0 -0
- package/web/chunk-a1cpkzwh.js +2 -0
- package/web/chunk-a1cpkzwh.js.br +0 -0
- package/web/chunk-a1cpkzwh.js.gz +0 -0
- package/web/chunk-a31z4c14.js +4 -0
- package/web/chunk-a31z4c14.js.br +0 -0
- package/web/chunk-a31z4c14.js.gz +0 -0
- package/web/chunk-aan5qk6x.js +1 -0
- package/web/chunk-aan5qk6x.js.br +0 -0
- package/web/chunk-aan5qk6x.js.gz +0 -0
- package/web/chunk-b07y0tzq.js +1 -0
- package/web/chunk-b07y0tzq.js.br +0 -0
- package/web/chunk-b07y0tzq.js.gz +0 -0
- package/web/chunk-b4d1948q.js +62 -0
- package/web/chunk-b4d1948q.js.br +0 -0
- package/web/chunk-b4d1948q.js.gz +0 -0
- package/web/chunk-btk2h3vh.js +36 -0
- package/web/chunk-btk2h3vh.js.br +0 -0
- package/web/chunk-btk2h3vh.js.gz +0 -0
- package/web/chunk-bw9crrb4.js +1 -0
- package/web/chunk-bw9crrb4.js.br +0 -0
- package/web/chunk-bw9crrb4.js.gz +0 -0
- package/web/chunk-c1s7faqj.js +2 -0
- package/web/chunk-c1s7faqj.js.br +0 -0
- package/web/chunk-c1s7faqj.js.gz +0 -0
- package/web/chunk-c3d08dw1.js +1 -0
- package/web/chunk-c3d08dw1.js.br +0 -0
- package/web/chunk-c3d08dw1.js.gz +0 -0
- package/web/chunk-cgt871p9.js +1 -0
- package/web/chunk-cgt871p9.js.br +0 -0
- package/web/chunk-cgt871p9.js.gz +0 -0
- package/web/chunk-crfbqd4d.js +2 -0
- package/web/chunk-crfbqd4d.js.br +0 -0
- package/web/chunk-crfbqd4d.js.gz +0 -0
- package/web/chunk-ctr4kt7p.js +332 -0
- package/web/chunk-ctr4kt7p.js.br +0 -0
- package/web/chunk-ctr4kt7p.js.gz +0 -0
- package/web/chunk-cys4n4sv.js +1 -0
- package/web/chunk-cys4n4sv.js.br +0 -0
- package/web/chunk-cys4n4sv.js.gz +0 -0
- package/web/chunk-d5n2yz4e.js +2 -0
- package/web/chunk-d5n2yz4e.js.br +0 -0
- package/web/chunk-d5n2yz4e.js.gz +0 -0
- package/web/chunk-d6wcabaa.css +1 -0
- package/web/chunk-d6wcabaa.css.br +0 -0
- package/web/chunk-d6wcabaa.css.gz +0 -0
- package/web/chunk-d7nrrcwp.js +38 -0
- package/web/chunk-d7nrrcwp.js.br +0 -0
- package/web/chunk-d7nrrcwp.js.gz +0 -0
- package/web/chunk-df9ja645.js +1 -0
- package/web/chunk-df9ja645.js.br +0 -0
- package/web/chunk-df9ja645.js.gz +0 -0
- package/web/chunk-dhxc6xe9.js +1 -0
- package/web/chunk-dhxc6xe9.js.br +2 -0
- package/web/chunk-dhxc6xe9.js.gz +0 -0
- package/web/chunk-dy2egpw5.js +12 -0
- package/web/chunk-dy2egpw5.js.br +0 -0
- package/web/chunk-dy2egpw5.js.gz +0 -0
- package/web/chunk-e4cwyn1g.js +2 -0
- package/web/chunk-e4cwyn1g.js.br +0 -0
- package/web/chunk-e4cwyn1g.js.gz +0 -0
- package/web/chunk-efjc9mga.js +2 -0
- package/web/chunk-efjc9mga.js.br +0 -0
- package/web/chunk-efjc9mga.js.gz +0 -0
- package/web/chunk-eq59kad4.js +303 -0
- package/web/chunk-eq59kad4.js.br +0 -0
- package/web/chunk-eq59kad4.js.gz +0 -0
- package/web/chunk-f05s9gsw.js +7 -0
- package/web/chunk-f05s9gsw.js.br +0 -0
- package/web/chunk-f05s9gsw.js.gz +0 -0
- package/web/chunk-f2bb976c.js +1 -0
- package/web/chunk-f2bb976c.js.br +0 -0
- package/web/chunk-f2bb976c.js.gz +0 -0
- package/web/chunk-f4aabnnv.js +1 -0
- package/web/chunk-f4aabnnv.js.br +0 -0
- package/web/chunk-f4aabnnv.js.gz +0 -0
- package/web/chunk-f5wyg9zh.js +2 -0
- package/web/chunk-f5wyg9zh.js.br +0 -0
- package/web/chunk-f5wyg9zh.js.gz +0 -0
- package/web/chunk-fmbc7t17.js +7 -0
- package/web/chunk-fmbc7t17.js.br +0 -0
- package/web/chunk-fmbc7t17.js.gz +0 -0
- package/web/chunk-ftdzs90e.js +1 -0
- package/web/chunk-ftdzs90e.js.br +0 -0
- package/web/chunk-ftdzs90e.js.gz +0 -0
- package/web/chunk-g0s2xxfd.js +324 -0
- package/web/chunk-g0s2xxfd.js.br +0 -0
- package/web/chunk-g0s2xxfd.js.gz +0 -0
- package/web/chunk-g1k9nggh.js +39 -0
- package/web/chunk-g1k9nggh.js.br +0 -0
- package/web/chunk-g1k9nggh.js.gz +0 -0
- package/web/chunk-g26mzwzc.js +1 -0
- package/web/chunk-g26mzwzc.js.br +0 -0
- package/web/chunk-g26mzwzc.js.gz +0 -0
- package/web/chunk-g7b4p9k9.js +1 -0
- package/web/chunk-g7b4p9k9.js.br +0 -0
- package/web/chunk-g7b4p9k9.js.gz +0 -0
- package/web/chunk-ghr3jf15.js +140 -0
- package/web/chunk-ghr3jf15.js.br +0 -0
- package/web/chunk-ghr3jf15.js.gz +0 -0
- package/web/chunk-gv4zh4er.js +1 -0
- package/web/chunk-gv4zh4er.js.br +0 -0
- package/web/chunk-gv4zh4er.js.gz +0 -0
- package/web/chunk-gvndjaan.js +2 -0
- package/web/chunk-gvndjaan.js.br +0 -0
- package/web/chunk-gvndjaan.js.gz +0 -0
- package/web/chunk-gw0e69yj.js +1 -0
- package/web/chunk-gw0e69yj.js.br +0 -0
- package/web/chunk-gw0e69yj.js.gz +0 -0
- package/web/chunk-gxwsf4t1.js +2 -0
- package/web/chunk-gxwsf4t1.js.br +0 -0
- package/web/chunk-gxwsf4t1.js.gz +0 -0
- package/web/chunk-hh6vpvar.js +84 -0
- package/web/chunk-hh6vpvar.js.br +0 -0
- package/web/chunk-hh6vpvar.js.gz +0 -0
- package/web/chunk-hxqqy585.js +1 -0
- package/web/chunk-hxqqy585.js.br +0 -0
- package/web/chunk-hxqqy585.js.gz +0 -0
- package/web/chunk-hxsrph02.js +1139 -0
- package/web/chunk-hxsrph02.js.br +0 -0
- package/web/chunk-hxsrph02.js.gz +0 -0
- package/web/chunk-hxx6ad4x.js +1 -0
- package/web/chunk-hxx6ad4x.js.br +0 -0
- package/web/chunk-hxx6ad4x.js.gz +0 -0
- package/web/chunk-hzvff525.js +2 -0
- package/web/chunk-hzvff525.js.br +0 -0
- package/web/chunk-hzvff525.js.gz +0 -0
- package/web/chunk-j2gkg76r.js +2 -0
- package/web/chunk-j2gkg76r.js.br +0 -0
- package/web/chunk-j2gkg76r.js.gz +0 -0
- package/web/chunk-jcbheqv1.js +1 -0
- package/web/chunk-jcbheqv1.js.br +0 -0
- package/web/chunk-jcbheqv1.js.gz +0 -0
- package/web/chunk-jhx6v9es.js +1 -0
- package/web/chunk-jhx6v9es.js.br +0 -0
- package/web/chunk-jhx6v9es.js.gz +0 -0
- package/web/chunk-jnhem746.js +292 -0
- package/web/chunk-jnhem746.js.br +0 -0
- package/web/chunk-jnhem746.js.gz +0 -0
- package/web/chunk-jr796qsk.js +1 -0
- package/web/chunk-jr796qsk.js.br +0 -0
- package/web/chunk-jr796qsk.js.gz +0 -0
- package/web/chunk-jw92texh.js +1 -0
- package/web/chunk-jw92texh.js.br +0 -0
- package/web/chunk-jw92texh.js.gz +0 -0
- package/web/chunk-k89686qj.js +2 -0
- package/web/chunk-k89686qj.js.br +0 -0
- package/web/chunk-k89686qj.js.gz +0 -0
- package/web/chunk-mqdvg55y.js +2 -0
- package/web/chunk-mqdvg55y.js.br +0 -0
- package/web/chunk-mqdvg55y.js.gz +0 -0
- package/web/chunk-mvm0gvwj.js +24 -0
- package/web/chunk-mvm0gvwj.js.br +0 -0
- package/web/chunk-mvm0gvwj.js.gz +0 -0
- package/web/chunk-n033azqs.js +30 -0
- package/web/chunk-n033azqs.js.br +0 -0
- package/web/chunk-n033azqs.js.gz +0 -0
- package/web/chunk-n0fqhrqv.js +89 -0
- package/web/chunk-n0fqhrqv.js.br +0 -0
- package/web/chunk-n0fqhrqv.js.gz +0 -0
- package/web/chunk-n1p03ng0.js +1 -0
- package/web/chunk-n1p03ng0.js.br +0 -0
- package/web/chunk-n1p03ng0.js.gz +0 -0
- package/web/chunk-nb73fq72.js +1 -0
- package/web/chunk-nb73fq72.js.br +0 -0
- package/web/chunk-nb73fq72.js.gz +0 -0
- package/web/chunk-ngsv0xfb.js +1 -0
- package/web/chunk-ngsv0xfb.js.br +0 -0
- package/web/chunk-ngsv0xfb.js.gz +0 -0
- package/web/chunk-nxnkb0w4.js +55 -0
- package/web/chunk-nxnkb0w4.js.br +0 -0
- package/web/chunk-nxnkb0w4.js.gz +0 -0
- package/web/chunk-nymsmy8d.js +78 -0
- package/web/chunk-nymsmy8d.js.br +0 -0
- package/web/chunk-nymsmy8d.js.gz +0 -0
- package/web/chunk-nzqxb0ea.js +1 -0
- package/web/chunk-nzqxb0ea.js.br +0 -0
- package/web/chunk-nzqxb0ea.js.gz +0 -0
- package/web/chunk-p26b4zdm.js +1 -0
- package/web/chunk-p26b4zdm.js.br +0 -0
- package/web/chunk-p26b4zdm.js.gz +0 -0
- package/web/chunk-qa0wwff0.js +1 -0
- package/web/chunk-qa0wwff0.js.br +0 -0
- package/web/chunk-qa0wwff0.js.gz +0 -0
- package/web/chunk-qgv81n98.js +1 -0
- package/web/chunk-qgv81n98.js.br +0 -0
- package/web/chunk-qgv81n98.js.gz +0 -0
- package/web/chunk-qtwjt5mm.js +3 -0
- package/web/chunk-qtwjt5mm.js.br +0 -0
- package/web/chunk-qtwjt5mm.js.gz +0 -0
- package/web/chunk-r49dy5vx.js +1 -0
- package/web/chunk-r49dy5vx.js.br +0 -0
- package/web/chunk-r49dy5vx.js.gz +0 -0
- package/web/chunk-r97hd8wk.js +98 -0
- package/web/chunk-r97hd8wk.js.br +0 -0
- package/web/chunk-r97hd8wk.js.gz +0 -0
- package/web/chunk-rj1rp0tc.js +1 -0
- package/web/chunk-rj1rp0tc.js.br +0 -0
- package/web/chunk-rj1rp0tc.js.gz +0 -0
- package/web/chunk-s00gxcxn.js +2 -0
- package/web/chunk-s00gxcxn.js.br +0 -0
- package/web/chunk-s00gxcxn.js.gz +0 -0
- package/web/chunk-s6a13wxe.js +2 -0
- package/web/chunk-s6a13wxe.js.br +0 -0
- package/web/chunk-s6a13wxe.js.gz +0 -0
- package/web/chunk-sb61aqg8.js +4 -0
- package/web/chunk-sb61aqg8.js.br +0 -0
- package/web/chunk-sb61aqg8.js.gz +0 -0
- package/web/chunk-scwrkcdw.js +1 -0
- package/web/chunk-scwrkcdw.js.br +0 -0
- package/web/chunk-scwrkcdw.js.gz +0 -0
- package/web/chunk-shtvhd61.js +200 -0
- package/web/chunk-shtvhd61.js.br +0 -0
- package/web/chunk-shtvhd61.js.gz +0 -0
- package/web/chunk-szwh742y.js +2 -0
- package/web/chunk-szwh742y.js.br +0 -0
- package/web/chunk-szwh742y.js.gz +0 -0
- package/web/chunk-t5e9vh89.js +1 -0
- package/web/chunk-t5e9vh89.js.br +0 -0
- package/web/chunk-t5e9vh89.js.gz +0 -0
- package/web/chunk-tbgavq0t.js +2 -0
- package/web/chunk-tbgavq0t.js.br +0 -0
- package/web/chunk-tbgavq0t.js.gz +0 -0
- package/web/chunk-tefm9md2.js +2 -0
- package/web/chunk-tefm9md2.js.br +0 -0
- package/web/chunk-tefm9md2.js.gz +0 -0
- package/web/chunk-tntwwpyh.js +2 -0
- package/web/chunk-tntwwpyh.js.br +0 -0
- package/web/chunk-tntwwpyh.js.gz +0 -0
- package/web/chunk-tp3fpa0t.js +1 -0
- package/web/chunk-tp3fpa0t.js.br +0 -0
- package/web/chunk-tp3fpa0t.js.gz +0 -0
- package/web/chunk-tr7fg3tv.js +8 -0
- package/web/chunk-tr7fg3tv.js.br +0 -0
- package/web/chunk-tr7fg3tv.js.gz +0 -0
- package/web/chunk-v5xf47q0.js +1 -0
- package/web/chunk-v5xf47q0.js.br +0 -0
- package/web/chunk-v5xf47q0.js.gz +0 -0
- package/web/chunk-vayamfxv.js +1 -0
- package/web/chunk-vayamfxv.js.br +0 -0
- package/web/chunk-vayamfxv.js.gz +0 -0
- package/web/chunk-vndrjeyr.js +2 -0
- package/web/chunk-vndrjeyr.js.br +0 -0
- package/web/chunk-vndrjeyr.js.gz +0 -0
- package/web/chunk-vwms8c7b.js +1 -0
- package/web/chunk-vwms8c7b.js.br +0 -0
- package/web/chunk-vwms8c7b.js.gz +0 -0
- package/web/chunk-w2gy2tmp.js +99 -0
- package/web/chunk-w2gy2tmp.js.br +0 -0
- package/web/chunk-w2gy2tmp.js.gz +0 -0
- package/web/chunk-wdd9pasx.js +1 -0
- package/web/chunk-wdd9pasx.js.br +0 -0
- package/web/chunk-wdd9pasx.js.gz +0 -0
- package/web/chunk-whfh2wev.js +41 -0
- package/web/chunk-whfh2wev.js.br +0 -0
- package/web/chunk-whfh2wev.js.gz +0 -0
- package/web/chunk-wjecy48x.js +1 -0
- package/web/chunk-wjecy48x.js.br +0 -0
- package/web/chunk-wjecy48x.js.gz +0 -0
- package/web/chunk-wqmyjj6w.js +370 -0
- package/web/chunk-wqmyjj6w.js.br +0 -0
- package/web/chunk-wqmyjj6w.js.gz +0 -0
- package/web/chunk-wv83gygp.js +1 -0
- package/web/chunk-wv83gygp.js.br +0 -0
- package/web/chunk-wv83gygp.js.gz +0 -0
- package/web/chunk-x1gr0017.js +70 -0
- package/web/chunk-x1gr0017.js.br +0 -0
- package/web/chunk-x1gr0017.js.gz +0 -0
- package/web/chunk-xa9m0mh2.js +106 -0
- package/web/chunk-xa9m0mh2.js.br +0 -0
- package/web/chunk-xa9m0mh2.js.gz +0 -0
- package/web/chunk-xjbxndxz.js +2 -0
- package/web/chunk-xjbxndxz.js.br +0 -0
- package/web/chunk-xjbxndxz.js.gz +0 -0
- package/web/chunk-xsfmh8rr.js +217 -0
- package/web/chunk-xsfmh8rr.js.br +0 -0
- package/web/chunk-xsfmh8rr.js.gz +0 -0
- package/web/chunk-xvsb3w1f.js +1 -0
- package/web/chunk-xvsb3w1f.js.br +0 -0
- package/web/chunk-xvsb3w1f.js.gz +0 -0
- package/web/chunk-y2jkaf1e.js +2 -0
- package/web/chunk-y2jkaf1e.js.br +0 -0
- package/web/chunk-y2jkaf1e.js.gz +0 -0
- package/web/chunk-ynpx7j96.js +1 -0
- package/web/chunk-ynpx7j96.js.br +0 -0
- package/web/chunk-ynpx7j96.js.gz +0 -0
- package/web/chunk-z04ncfs3.js +2 -0
- package/web/chunk-z04ncfs3.js.br +0 -0
- package/web/chunk-z04ncfs3.js.gz +0 -0
- package/web/chunk-zapwrc5k.js +2 -0
- package/web/chunk-zapwrc5k.js.br +0 -0
- package/web/chunk-zapwrc5k.js.gz +0 -0
- package/web/chunk-zq1qbaxb.js +2 -0
- package/web/chunk-zq1qbaxb.js.br +0 -0
- package/web/chunk-zq1qbaxb.js.gz +0 -0
- package/web/chunk-zs7physk.js +120 -0
- package/web/chunk-zs7physk.js.br +0 -0
- package/web/chunk-zs7physk.js.gz +0 -0
- package/web/index.html +1 -1
- package/web/index.html.br +0 -0
- package/web/index.html.gz +0 -0
- package/worker.js +1 -1
- package/chunk-05bkyxh9.js +0 -3
- package/chunk-080kr9ct.js +0 -15
- package/chunk-1a4rrb2v.js +0 -10
- package/chunk-1s560041.js +0 -2
- package/chunk-2expw9m3.js +0 -3
- package/chunk-2fm6g0ga.js +0 -3
- package/chunk-2scbc5yh.js +0 -3
- package/chunk-33jk5rw1.js +0 -3
- package/chunk-377w9fhp.js +0 -3
- package/chunk-3wqncn58.js +0 -3
- package/chunk-43n3k72q.js +0 -2
- package/chunk-44pv8c0b.js +0 -5
- package/chunk-5gk93yp2.js +0 -3
- package/chunk-5z5sbry2.js +0 -7
- package/chunk-6qvg49rk.js +0 -51
- package/chunk-7d6fdzs3.js +0 -50
- package/chunk-7h6k7vac.js +0 -3
- package/chunk-7t5yqsgn.js +0 -5
- package/chunk-7th9y456.js +0 -2
- package/chunk-7v98r8ft.js +0 -2
- package/chunk-82bb3whz.js +0 -3
- package/chunk-8e061pr3.js +0 -2
- package/chunk-8n83nvpa.js +0 -7
- package/chunk-9nng543t.js +0 -3
- package/chunk-a0ex6znf.js +0 -18
- package/chunk-a25etmgf.js +0 -3
- package/chunk-awzaxv88.js +0 -2
- package/chunk-b2s9aksm.js +0 -2
- package/chunk-bfrpy5jd.js +0 -4
- package/chunk-br64f072.js +0 -2
- package/chunk-btza2hna.js +0 -5
- package/chunk-c9bjdydc.js +0 -3
- package/chunk-cww7drfr.js +0 -2
- package/chunk-d0az9pq0.js +0 -2
- package/chunk-d47bpkyz.js +0 -12
- package/chunk-dkfpqbcr.js +0 -3
- package/chunk-dsk3r1s8.js +0 -2
- package/chunk-dw8p4zcz.js +0 -2
- package/chunk-edz2cxtp.js +0 -5
- package/chunk-epqgd8d0.js +0 -3
- package/chunk-f7tn67ff.js +0 -2
- package/chunk-fevkmd0j.js +0 -3
- package/chunk-fzdvrsvn.js +0 -482
- package/chunk-ghat319t.js +0 -25
- package/chunk-h19mfxzq.js +0 -7
- package/chunk-h6sh9pkr.js +0 -2
- package/chunk-jdazqwft.js +0 -2
- package/chunk-je52rmxs.js +0 -9
- package/chunk-jj5pkfgm.js +0 -2
- package/chunk-jp7f2kak.js +0 -2
- package/chunk-jqpb4q7h.js +0 -3
- package/chunk-jzf3qp0g.js +0 -2
- package/chunk-k5qg9az8.js +0 -8
- package/chunk-m51tryxx.js +0 -3
- package/chunk-mna7mgdw.js +0 -3
- package/chunk-nfgg1ksw.js +0 -3
- package/chunk-npd8k692.js +0 -2
- package/chunk-nqzqm9ad.js +0 -3
- package/chunk-nsrdzz1p.js +0 -20
- package/chunk-qdwzmvcq.js +0 -3923
- package/chunk-qgyjffh0.js +0 -16
- package/chunk-qnq3xa4h.js +0 -286
- package/chunk-r0gyd40q.js +0 -2
- package/chunk-ra4kx253.js +0 -7
- package/chunk-rq2b2a6n.js +0 -11
- package/chunk-s1m4dt0z.js +0 -3
- package/chunk-s78m24h4.js +0 -2
- package/chunk-sd9r82h2.js +0 -3
- package/chunk-smygzsyr.js +0 -10
- package/chunk-t0zexn7n.js +0 -2
- package/chunk-t2s0yyw0.js +0 -3
- package/chunk-v9a2y9rn.js +0 -3
- package/chunk-vkn4bfyp.js +0 -2
- package/chunk-vpzs9trn.js +0 -3
- package/chunk-w3tzsrkw.js +0 -12
- package/chunk-x0t8h6vv.js +0 -5
- package/chunk-x23g9em9.js +0 -39
- package/chunk-x316ag7c.js +0 -25
- package/chunk-x5zgyewh.js +0 -2
- package/chunk-xr35av3b.js +0 -59
- package/chunk-yd190t0s.js +0 -31
- package/chunk-zhvw8efz.js +0 -3
- package/chunk-zyqsqwn7.js +0 -2
- package/web/chunk-08tgd17j.js +0 -12
- package/web/chunk-08tgd17j.js.br +0 -0
- package/web/chunk-08tgd17j.js.gz +0 -0
- package/web/chunk-0mqyt9m7.js +0 -1
- package/web/chunk-0mqyt9m7.js.br +0 -0
- package/web/chunk-0mqyt9m7.js.gz +0 -0
- package/web/chunk-0n99y9n5.js +0 -1
- package/web/chunk-0n99y9n5.js.br +0 -0
- package/web/chunk-0n99y9n5.js.gz +0 -0
- package/web/chunk-0qjj75v7.js +0 -1
- package/web/chunk-0qjj75v7.js.br +0 -0
- package/web/chunk-0qjj75v7.js.gz +0 -0
- package/web/chunk-0x3wtwhf.js +0 -291
- package/web/chunk-0x3wtwhf.js.br +0 -0
- package/web/chunk-0x3wtwhf.js.gz +0 -0
- package/web/chunk-0zd5g2yw.js +0 -1
- package/web/chunk-0zd5g2yw.js.br +0 -0
- package/web/chunk-0zd5g2yw.js.gz +0 -0
- package/web/chunk-146ww24y.js +0 -55
- package/web/chunk-146ww24y.js.br +0 -0
- package/web/chunk-146ww24y.js.gz +0 -0
- package/web/chunk-1d8r3aeh.js +0 -3
- package/web/chunk-1d8r3aeh.js.br +0 -0
- package/web/chunk-1d8r3aeh.js.gz +0 -0
- package/web/chunk-1qs4nh4c.js +0 -1
- package/web/chunk-1qs4nh4c.js.br +0 -0
- package/web/chunk-1qs4nh4c.js.gz +0 -0
- package/web/chunk-1v13225a.js +0 -1
- package/web/chunk-1v13225a.js.br +0 -2
- package/web/chunk-1v13225a.js.gz +0 -0
- package/web/chunk-22caavs1.js +0 -1
- package/web/chunk-22caavs1.js.br +0 -0
- package/web/chunk-22caavs1.js.gz +0 -0
- package/web/chunk-28e0vn8m.js +0 -1
- package/web/chunk-28e0vn8m.js.br +0 -0
- package/web/chunk-28e0vn8m.js.gz +0 -0
- package/web/chunk-28sta4gj.js +0 -142
- package/web/chunk-28sta4gj.js.br +0 -0
- package/web/chunk-28sta4gj.js.gz +0 -0
- package/web/chunk-33eqjx7d.js +0 -2
- package/web/chunk-33eqjx7d.js.br +0 -0
- package/web/chunk-33eqjx7d.js.gz +0 -0
- package/web/chunk-3781tgyt.js +0 -21
- package/web/chunk-3781tgyt.js.br +0 -0
- package/web/chunk-3781tgyt.js.gz +0 -0
- package/web/chunk-3gt60qmf.js +0 -370
- package/web/chunk-3gt60qmf.js.br +0 -0
- package/web/chunk-3gt60qmf.js.gz +0 -0
- package/web/chunk-3rg8d23d.js +0 -2
- package/web/chunk-3rg8d23d.js.br +0 -0
- package/web/chunk-3rg8d23d.js.gz +0 -0
- package/web/chunk-40wx2kxh.js +0 -1
- package/web/chunk-40wx2kxh.js.br +0 -0
- package/web/chunk-40wx2kxh.js.gz +0 -0
- package/web/chunk-44kgdrrk.js +0 -1
- package/web/chunk-44kgdrrk.js.br +0 -0
- package/web/chunk-44kgdrrk.js.gz +0 -0
- package/web/chunk-4vqmgjbf.js +0 -1
- package/web/chunk-4vqmgjbf.js.br +0 -0
- package/web/chunk-4vqmgjbf.js.gz +0 -0
- package/web/chunk-55h6ya95.js +0 -1
- package/web/chunk-55h6ya95.js.br +0 -2
- package/web/chunk-55h6ya95.js.gz +0 -0
- package/web/chunk-5a80hcah.js +0 -1
- package/web/chunk-5a80hcah.js.br +0 -0
- package/web/chunk-5a80hcah.js.gz +0 -0
- package/web/chunk-5fed8tt3.js +0 -1
- package/web/chunk-5fed8tt3.js.br +0 -0
- package/web/chunk-5fed8tt3.js.gz +0 -0
- package/web/chunk-5kcmtrrk.js +0 -2
- package/web/chunk-5kcmtrrk.js.br +0 -0
- package/web/chunk-5kcmtrrk.js.gz +0 -0
- package/web/chunk-5y1v9ycq.js +0 -2
- package/web/chunk-5y1v9ycq.js.br +0 -0
- package/web/chunk-5y1v9ycq.js.gz +0 -0
- package/web/chunk-61wasm9a.js +0 -1
- package/web/chunk-61wasm9a.js.br +0 -0
- package/web/chunk-61wasm9a.js.gz +0 -0
- package/web/chunk-66mcaz0p.js +0 -7
- package/web/chunk-66mcaz0p.js.br +0 -0
- package/web/chunk-66mcaz0p.js.gz +0 -0
- package/web/chunk-6ew2qvxb.js +0 -1
- package/web/chunk-6ew2qvxb.js.br +0 -0
- package/web/chunk-6ew2qvxb.js.gz +0 -0
- package/web/chunk-6hkgy8ej.js +0 -36
- package/web/chunk-6hkgy8ej.js.br +0 -0
- package/web/chunk-6hkgy8ej.js.gz +0 -0
- package/web/chunk-75v6mnzm.js +0 -40
- package/web/chunk-75v6mnzm.js.br +0 -0
- package/web/chunk-75v6mnzm.js.gz +0 -0
- package/web/chunk-7ddgm832.js +0 -41
- package/web/chunk-7ddgm832.js.br +0 -0
- package/web/chunk-7ddgm832.js.gz +0 -0
- package/web/chunk-80htbw45.js +0 -1
- package/web/chunk-80htbw45.js.br +0 -0
- package/web/chunk-80htbw45.js.gz +0 -0
- package/web/chunk-8304998z.js +0 -1
- package/web/chunk-8304998z.js.br +0 -0
- package/web/chunk-8304998z.js.gz +0 -0
- package/web/chunk-84wf0ej8.js +0 -2
- package/web/chunk-84wf0ej8.js.br +0 -0
- package/web/chunk-84wf0ej8.js.gz +0 -0
- package/web/chunk-859ry2p4.js +0 -1
- package/web/chunk-859ry2p4.js.br +0 -0
- package/web/chunk-859ry2p4.js.gz +0 -0
- package/web/chunk-883weqxg.js +0 -2
- package/web/chunk-883weqxg.js.br +0 -0
- package/web/chunk-883weqxg.js.gz +0 -0
- package/web/chunk-8a46b2ww.js +0 -303
- package/web/chunk-8a46b2ww.js.br +0 -0
- package/web/chunk-8a46b2ww.js.gz +0 -0
- package/web/chunk-8cajyrkw.js +0 -1
- package/web/chunk-8cajyrkw.js.br +0 -0
- package/web/chunk-8cajyrkw.js.gz +0 -0
- package/web/chunk-8ejwy8g3.js +0 -30
- package/web/chunk-8ejwy8g3.js.br +0 -0
- package/web/chunk-8ejwy8g3.js.gz +0 -0
- package/web/chunk-951dg5kq.js +0 -8
- package/web/chunk-951dg5kq.js.br +0 -1
- package/web/chunk-951dg5kq.js.gz +0 -0
- package/web/chunk-97ccteq4.js +0 -106
- package/web/chunk-97ccteq4.js.br +0 -0
- package/web/chunk-97ccteq4.js.gz +0 -0
- package/web/chunk-98kr0bw8.js +0 -98
- package/web/chunk-98kr0bw8.js.br +0 -0
- package/web/chunk-98kr0bw8.js.gz +0 -0
- package/web/chunk-9bq7xgjz.js +0 -1
- package/web/chunk-9bq7xgjz.js.br +0 -0
- package/web/chunk-9bq7xgjz.js.gz +0 -0
- package/web/chunk-9g5jgnfe.js +0 -2
- package/web/chunk-9g5jgnfe.js.br +0 -0
- package/web/chunk-9g5jgnfe.js.gz +0 -0
- package/web/chunk-9kx2s040.js +0 -1
- package/web/chunk-9kx2s040.js.br +0 -0
- package/web/chunk-9kx2s040.js.gz +0 -0
- package/web/chunk-9v1f6yc8.js +0 -1
- package/web/chunk-9v1f6yc8.js.br +0 -0
- package/web/chunk-9v1f6yc8.js.gz +0 -0
- package/web/chunk-an6adjgz.js +0 -24
- package/web/chunk-an6adjgz.js.br +0 -0
- package/web/chunk-an6adjgz.js.gz +0 -0
- package/web/chunk-arp4g43b.js +0 -1
- package/web/chunk-arp4g43b.js.br +0 -0
- package/web/chunk-arp4g43b.js.gz +0 -0
- package/web/chunk-b2ads9ra.js +0 -1
- package/web/chunk-b2ads9ra.js.br +0 -0
- package/web/chunk-b2ads9ra.js.gz +0 -0
- package/web/chunk-bd90pxqc.js +0 -169
- package/web/chunk-bd90pxqc.js.br +0 -0
- package/web/chunk-bd90pxqc.js.gz +0 -0
- package/web/chunk-bmtzds29.js +0 -1
- package/web/chunk-bmtzds29.js.br +0 -0
- package/web/chunk-bmtzds29.js.gz +0 -0
- package/web/chunk-brsvdef4.js +0 -1
- package/web/chunk-brsvdef4.js.br +0 -0
- package/web/chunk-brsvdef4.js.gz +0 -0
- package/web/chunk-bv0vs331.js +0 -332
- package/web/chunk-bv0vs331.js.br +0 -0
- package/web/chunk-bv0vs331.js.gz +0 -0
- package/web/chunk-bzvserky.js +0 -89
- package/web/chunk-bzvserky.js.br +0 -0
- package/web/chunk-bzvserky.js.gz +0 -0
- package/web/chunk-cd3hhgn9.js +0 -2
- package/web/chunk-cd3hhgn9.js.br +0 -0
- package/web/chunk-cd3hhgn9.js.gz +0 -0
- package/web/chunk-cdwn0hd1.js +0 -2
- package/web/chunk-cdwn0hd1.js.br +0 -0
- package/web/chunk-cdwn0hd1.js.gz +0 -0
- package/web/chunk-ckpx6ky8.js +0 -2
- package/web/chunk-ckpx6ky8.js.br +0 -0
- package/web/chunk-ckpx6ky8.js.gz +0 -0
- package/web/chunk-d11xvhrx.js +0 -140
- package/web/chunk-d11xvhrx.js.br +0 -0
- package/web/chunk-d11xvhrx.js.gz +0 -0
- package/web/chunk-d25jazap.js +0 -89
- package/web/chunk-d25jazap.js.br +0 -0
- package/web/chunk-d25jazap.js.gz +0 -0
- package/web/chunk-d5jk5ftp.js +0 -2
- package/web/chunk-d5jk5ftp.js.br +0 -0
- package/web/chunk-d5jk5ftp.js.gz +0 -0
- package/web/chunk-dkdedpn5.js +0 -1
- package/web/chunk-dkdedpn5.js.br +0 -0
- package/web/chunk-dkdedpn5.js.gz +0 -0
- package/web/chunk-drr7mqg2.js +0 -1
- package/web/chunk-drr7mqg2.js.br +0 -0
- package/web/chunk-drr7mqg2.js.gz +0 -0
- package/web/chunk-dxejr2wc.js +0 -7
- package/web/chunk-dxejr2wc.js.br +0 -0
- package/web/chunk-dxejr2wc.js.gz +0 -0
- package/web/chunk-dym50nnh.js +0 -292
- package/web/chunk-dym50nnh.js.br +0 -0
- package/web/chunk-dym50nnh.js.gz +0 -0
- package/web/chunk-e1fv9zdp.js +0 -1
- package/web/chunk-e1fv9zdp.js.br +0 -0
- package/web/chunk-e1fv9zdp.js.gz +0 -0
- package/web/chunk-e9ycc491.js +0 -120
- package/web/chunk-e9ycc491.js.br +0 -0
- package/web/chunk-e9ycc491.js.gz +0 -0
- package/web/chunk-eww9ygx5.js +0 -2
- package/web/chunk-eww9ygx5.js.br +0 -0
- package/web/chunk-eww9ygx5.js.gz +0 -0
- package/web/chunk-ey2fy3vm.js +0 -4
- package/web/chunk-ey2fy3vm.js.br +0 -0
- package/web/chunk-ey2fy3vm.js.gz +0 -0
- package/web/chunk-ez498328.js +0 -39
- package/web/chunk-ez498328.js.br +0 -0
- package/web/chunk-ez498328.js.gz +0 -0
- package/web/chunk-f0x62xvv.js +0 -84
- package/web/chunk-f0x62xvv.js.br +0 -0
- package/web/chunk-f0x62xvv.js.gz +0 -0
- package/web/chunk-f1z92c2d.js +0 -1
- package/web/chunk-f1z92c2d.js.br +0 -2
- package/web/chunk-f1z92c2d.js.gz +0 -0
- package/web/chunk-fwvar7a7.js +0 -1
- package/web/chunk-fwvar7a7.js.br +0 -0
- package/web/chunk-fwvar7a7.js.gz +0 -0
- package/web/chunk-g8bw60t3.js +0 -324
- package/web/chunk-g8bw60t3.js.br +0 -0
- package/web/chunk-g8bw60t3.js.gz +0 -0
- package/web/chunk-g8se5rtx.js +0 -2
- package/web/chunk-g8se5rtx.js.br +0 -0
- package/web/chunk-g8se5rtx.js.gz +0 -0
- package/web/chunk-gkwkbkr4.js +0 -217
- package/web/chunk-gkwkbkr4.js.br +0 -0
- package/web/chunk-gkwkbkr4.js.gz +0 -0
- package/web/chunk-h50zbzfg.js +0 -24
- package/web/chunk-h50zbzfg.js.br +0 -0
- package/web/chunk-h50zbzfg.js.gz +0 -0
- package/web/chunk-j3vqhfgg.js +0 -1
- package/web/chunk-j3vqhfgg.js.br +0 -0
- package/web/chunk-j3vqhfgg.js.gz +0 -0
- package/web/chunk-jk6j68wv.js +0 -1
- package/web/chunk-jk6j68wv.js.br +0 -0
- package/web/chunk-jk6j68wv.js.gz +0 -0
- package/web/chunk-jrdx4yfq.js +0 -2
- package/web/chunk-jrdx4yfq.js.br +0 -0
- package/web/chunk-jrdx4yfq.js.gz +0 -0
- package/web/chunk-k2by2sj0.css +0 -1
- package/web/chunk-k2by2sj0.css.br +0 -0
- package/web/chunk-k2by2sj0.css.gz +0 -0
- package/web/chunk-kc4ymfvv.js +0 -2
- package/web/chunk-kc4ymfvv.js.br +0 -1
- package/web/chunk-kc4ymfvv.js.gz +0 -0
- package/web/chunk-kh9d9x20.js +0 -1
- package/web/chunk-kh9d9x20.js.br +0 -0
- package/web/chunk-kh9d9x20.js.gz +0 -0
- package/web/chunk-kkv1h28t.js +0 -2
- package/web/chunk-kkv1h28t.js.br +0 -0
- package/web/chunk-kkv1h28t.js.gz +0 -0
- package/web/chunk-kzkjfngw.js +0 -7
- package/web/chunk-kzkjfngw.js.br +0 -0
- package/web/chunk-kzkjfngw.js.gz +0 -0
- package/web/chunk-mj8xb4z9.js +0 -2
- package/web/chunk-mj8xb4z9.js.br +0 -0
- package/web/chunk-mj8xb4z9.js.gz +0 -0
- package/web/chunk-msn8bpe6.js +0 -1
- package/web/chunk-msn8bpe6.js.br +0 -0
- package/web/chunk-msn8bpe6.js.gz +0 -0
- package/web/chunk-mv0pwdz6.js +0 -1
- package/web/chunk-mv0pwdz6.js.br +0 -0
- package/web/chunk-mv0pwdz6.js.gz +0 -0
- package/web/chunk-myhtb5ps.js +0 -2
- package/web/chunk-myhtb5ps.js.br +0 -0
- package/web/chunk-myhtb5ps.js.gz +0 -0
- package/web/chunk-n8qc0chz.js +0 -34
- package/web/chunk-n8qc0chz.js.br +0 -0
- package/web/chunk-n8qc0chz.js.gz +0 -0
- package/web/chunk-nf83ezt5.js +0 -1136
- package/web/chunk-nf83ezt5.js.br +0 -0
- package/web/chunk-nf83ezt5.js.gz +0 -0
- package/web/chunk-nh3m09b1.js +0 -1
- package/web/chunk-nh3m09b1.js.br +0 -0
- package/web/chunk-nh3m09b1.js.gz +0 -0
- package/web/chunk-nqvjw71s.js +0 -1
- package/web/chunk-nqvjw71s.js.br +0 -0
- package/web/chunk-nqvjw71s.js.gz +0 -0
- package/web/chunk-nyydkfyf.js +0 -1
- package/web/chunk-nyydkfyf.js.br +0 -0
- package/web/chunk-nyydkfyf.js.gz +0 -0
- package/web/chunk-p0zneef1.js +0 -2
- package/web/chunk-p0zneef1.js.br +0 -0
- package/web/chunk-p0zneef1.js.gz +0 -0
- package/web/chunk-pjd16rfv.js +0 -1
- package/web/chunk-pjd16rfv.js.br +0 -0
- package/web/chunk-pjd16rfv.js.gz +0 -0
- package/web/chunk-praang0j.js +0 -214
- package/web/chunk-praang0j.js.br +0 -0
- package/web/chunk-praang0j.js.gz +0 -0
- package/web/chunk-prynwp2t.js +0 -1
- package/web/chunk-prynwp2t.js.br +0 -0
- package/web/chunk-prynwp2t.js.gz +0 -0
- package/web/chunk-q0kx0wyj.js +0 -2
- package/web/chunk-q0kx0wyj.js.br +0 -0
- package/web/chunk-q0kx0wyj.js.gz +0 -0
- package/web/chunk-q6aqg79d.js +0 -2
- package/web/chunk-q6aqg79d.js.br +0 -0
- package/web/chunk-q6aqg79d.js.gz +0 -0
- package/web/chunk-qd3x1kbw.js +0 -1
- package/web/chunk-qd3x1kbw.js.br +0 -2
- package/web/chunk-qd3x1kbw.js.gz +0 -0
- package/web/chunk-qgqg2kr5.js +0 -1
- package/web/chunk-qgqg2kr5.js.br +0 -0
- package/web/chunk-qgqg2kr5.js.gz +0 -0
- package/web/chunk-qha5j25q.js +0 -2
- package/web/chunk-qha5j25q.js.br +0 -0
- package/web/chunk-qha5j25q.js.gz +0 -0
- package/web/chunk-qhf717ek.js +0 -2
- package/web/chunk-qhf717ek.js.br +0 -0
- package/web/chunk-qhf717ek.js.gz +0 -0
- package/web/chunk-qjswcwvm.js +0 -1
- package/web/chunk-qjswcwvm.js.br +0 -0
- package/web/chunk-qjswcwvm.js.gz +0 -0
- package/web/chunk-qt2ktkps.js +0 -1
- package/web/chunk-qt2ktkps.js.br +0 -0
- package/web/chunk-qt2ktkps.js.gz +0 -0
- package/web/chunk-rjvdk0s6.js +0 -1
- package/web/chunk-rjvdk0s6.js.br +0 -0
- package/web/chunk-rjvdk0s6.js.gz +0 -0
- package/web/chunk-scnew5q6.js +0 -1
- package/web/chunk-scnew5q6.js.br +0 -0
- package/web/chunk-scnew5q6.js.gz +0 -0
- package/web/chunk-scrrgk6n.js +0 -2
- package/web/chunk-scrrgk6n.js.br +0 -0
- package/web/chunk-scrrgk6n.js.gz +0 -0
- package/web/chunk-sy1ta5rp.js +0 -1
- package/web/chunk-sy1ta5rp.js.br +0 -0
- package/web/chunk-sy1ta5rp.js.gz +0 -0
- package/web/chunk-t092etr1.js +0 -2
- package/web/chunk-t092etr1.js.br +0 -0
- package/web/chunk-t092etr1.js.gz +0 -0
- package/web/chunk-t34g8qj4.js +0 -2
- package/web/chunk-t34g8qj4.js.br +0 -0
- package/web/chunk-t34g8qj4.js.gz +0 -0
- package/web/chunk-tfdwgjr1.js +0 -2
- package/web/chunk-tfdwgjr1.js.br +0 -0
- package/web/chunk-tfdwgjr1.js.gz +0 -0
- package/web/chunk-ty54ph0y.js +0 -1
- package/web/chunk-ty54ph0y.js.br +0 -2
- package/web/chunk-ty54ph0y.js.gz +0 -0
- package/web/chunk-v36p2ccs.js +0 -2
- package/web/chunk-v36p2ccs.js.br +0 -0
- package/web/chunk-v36p2ccs.js.gz +0 -0
- package/web/chunk-v7nv1ve8.js +0 -1
- package/web/chunk-v7nv1ve8.js.br +0 -0
- package/web/chunk-v7nv1ve8.js.gz +0 -0
- package/web/chunk-vchzf900.js +0 -2
- package/web/chunk-vchzf900.js.br +0 -0
- package/web/chunk-vchzf900.js.gz +0 -0
- package/web/chunk-vmpry714.js +0 -1
- package/web/chunk-vmpry714.js.br +0 -0
- package/web/chunk-vmpry714.js.gz +0 -0
- package/web/chunk-vtn7g6n0.js +0 -2
- package/web/chunk-vtn7g6n0.js.br +0 -0
- package/web/chunk-vtn7g6n0.js.gz +0 -0
- package/web/chunk-w1bp9wwx.js +0 -1
- package/web/chunk-w1bp9wwx.js.br +0 -0
- package/web/chunk-w1bp9wwx.js.gz +0 -0
- package/web/chunk-w4h1c0eb.js +0 -200
- package/web/chunk-w4h1c0eb.js.br +0 -0
- package/web/chunk-w4h1c0eb.js.gz +0 -0
- package/web/chunk-ww5c1dmz.js +0 -1
- package/web/chunk-ww5c1dmz.js.br +0 -0
- package/web/chunk-ww5c1dmz.js.gz +0 -0
- package/web/chunk-wx0jmdbq.js +0 -62
- package/web/chunk-wx0jmdbq.js.br +0 -0
- package/web/chunk-wx0jmdbq.js.gz +0 -0
- package/web/chunk-xdns99dp.js +0 -99
- package/web/chunk-xdns99dp.js.br +0 -0
- package/web/chunk-xdns99dp.js.gz +0 -0
- package/web/chunk-xnhzragz.js +0 -1
- package/web/chunk-xnhzragz.js.br +0 -0
- package/web/chunk-xnhzragz.js.gz +0 -0
- package/web/chunk-xq241z8c.js +0 -38
- package/web/chunk-xq241z8c.js.br +0 -0
- package/web/chunk-xq241z8c.js.gz +0 -0
- package/web/chunk-xve7x5x1.js +0 -2
- package/web/chunk-xve7x5x1.js.br +0 -0
- package/web/chunk-xve7x5x1.js.gz +0 -0
- package/web/chunk-xvn1wg8g.js +0 -2
- package/web/chunk-xvn1wg8g.js.br +0 -0
- package/web/chunk-xvn1wg8g.js.gz +0 -0
- package/web/chunk-xwy6m9v6.js +0 -1
- package/web/chunk-xwy6m9v6.js.br +0 -0
- package/web/chunk-xwy6m9v6.js.gz +0 -0
- package/web/chunk-y7zvyd6m.js +0 -1
- package/web/chunk-y7zvyd6m.js.br +0 -0
- package/web/chunk-y7zvyd6m.js.gz +0 -0
- package/web/chunk-yh07726r.js +0 -78
- package/web/chunk-yh07726r.js.br +0 -0
- package/web/chunk-yh07726r.js.gz +0 -0
- package/web/chunk-yr94dbhk.js +0 -1
- package/web/chunk-yr94dbhk.js.br +0 -0
- package/web/chunk-yr94dbhk.js.gz +0 -0
- package/web/chunk-ysqfkg2v.js +0 -70
- package/web/chunk-ysqfkg2v.js.br +0 -0
- package/web/chunk-ysqfkg2v.js.gz +0 -0
- package/web/chunk-yxax25q6.js +0 -4
- package/web/chunk-yxax25q6.js.br +0 -0
- package/web/chunk-yxax25q6.js.gz +0 -0
- package/web/chunk-z7024nm8.js +0 -16
- package/web/chunk-z7024nm8.js.br +0 -0
- package/web/chunk-z7024nm8.js.gz +0 -0
- package/web/chunk-z91sdj83.js +0 -139
- package/web/chunk-z91sdj83.js.br +0 -0
- package/web/chunk-z91sdj83.js.gz +0 -0
- package/web/chunk-za5j3w7x.js +0 -2
- package/web/chunk-za5j3w7x.js.br +0 -0
- package/web/chunk-za5j3w7x.js.gz +0 -0
- package/web/chunk-zw958xwq.js +0 -1
- package/web/chunk-zw958xwq.js.br +0 -0
- package/web/chunk-zw958xwq.js.gz +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import{t,i,Ae,q,C,Y,M,R,P,I,d,g,Yr,Fi,Dt,T,Ui}from"./chunk-eq59kad4.js";import{hr}from"./chunk-c1s7faqj.js";var Jt=function(){var e=t(function(wt,v,E,w){for(E=E||{},w=wt.length;w--;E[wt[w]]=v);return E},"o"),n=[1,24],a=[1,25],o=[1,26],p=[1,27],l=[1,28],r=[1,63],h=[1,64],s=[1,65],f=[1,66],b=[1,67],_=[1,68],x=[1,69],S=[1,29],B=[1,30],j=[1,31],V=[1,32],F=[1,33],H=[1,34],rt=[1,35],st=[1,36],at=[1,37],it=[1,38],ot=[1,39],lt=[1,40],ct=[1,41],ut=[1,42],ht=[1,43],dt=[1,44],pt=[1,45],ft=[1,46],yt=[1,47],_t=[1,48],bt=[1,50],mt=[1,51],gt=[1,52],xt=[1,53],vt=[1,54],kt=[1,55],Et=[1,56],St=[1,57],Tt=[1,58],Ct=[1,59],Rt=[1,60],Vt=[14,42],te=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ft=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],O=[1,82],D=[1,83],N=[1,84],A=[1,85],L=[12,14,42],ye=[12,14,33,42],qt=[12,14,33,42,76,77,79,80],At=[12,33],ee=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ne={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:t(function(v,E,w,m,U,u,Ut){var y=u.length-1;switch(U){case 3:m.setDirection("TB");break;case 4:m.setDirection("BT");break;case 5:m.setDirection("RL");break;case 6:m.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:m.setC4Type(u[y-3]);break;case 19:m.setTitle(u[y].substring(6)),this.$=u[y].substring(6);break;case 20:m.setAccDescription(u[y].substring(15)),this.$=u[y].substring(15);break;case 21:this.$=u[y].trim(),m.setTitle(this.$);break;case 22:case 23:this.$=u[y].trim(),m.setAccDescription(this.$);break;case 28:u[y].splice(2,0,"ENTERPRISE"),m.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 29:u[y].splice(2,0,"SYSTEM"),m.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 30:m.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 31:u[y].splice(2,0,"CONTAINER"),m.addContainerBoundary(...u[y]),this.$=u[y];break;case 32:m.addDeploymentNode("node",...u[y]),this.$=u[y];break;case 33:m.addDeploymentNode("nodeL",...u[y]),this.$=u[y];break;case 34:m.addDeploymentNode("nodeR",...u[y]),this.$=u[y];break;case 35:m.popBoundaryParseStack();break;case 39:m.addPersonOrSystem("person",...u[y]),this.$=u[y];break;case 40:m.addPersonOrSystem("external_person",...u[y]),this.$=u[y];break;case 41:m.addPersonOrSystem("system",...u[y]),this.$=u[y];break;case 42:m.addPersonOrSystem("system_db",...u[y]),this.$=u[y];break;case 43:m.addPersonOrSystem("system_queue",...u[y]),this.$=u[y];break;case 44:m.addPersonOrSystem("external_system",...u[y]),this.$=u[y];break;case 45:m.addPersonOrSystem("external_system_db",...u[y]),this.$=u[y];break;case 46:m.addPersonOrSystem("external_system_queue",...u[y]),this.$=u[y];break;case 47:m.addContainer("container",...u[y]),this.$=u[y];break;case 48:m.addContainer("container_db",...u[y]),this.$=u[y];break;case 49:m.addContainer("container_queue",...u[y]),this.$=u[y];break;case 50:m.addContainer("external_container",...u[y]),this.$=u[y];break;case 51:m.addContainer("external_container_db",...u[y]),this.$=u[y];break;case 52:m.addContainer("external_container_queue",...u[y]),this.$=u[y];break;case 53:m.addComponent("component",...u[y]),this.$=u[y];break;case 54:m.addComponent("component_db",...u[y]),this.$=u[y];break;case 55:m.addComponent("component_queue",...u[y]),this.$=u[y];break;case 56:m.addComponent("external_component",...u[y]),this.$=u[y];break;case 57:m.addComponent("external_component_db",...u[y]),this.$=u[y];break;case 58:m.addComponent("external_component_queue",...u[y]),this.$=u[y];break;case 60:m.addRel("rel",...u[y]),this.$=u[y];break;case 61:m.addRel("birel",...u[y]),this.$=u[y];break;case 62:m.addRel("rel_u",...u[y]),this.$=u[y];break;case 63:m.addRel("rel_d",...u[y]),this.$=u[y];break;case 64:m.addRel("rel_l",...u[y]),this.$=u[y];break;case 65:m.addRel("rel_r",...u[y]),this.$=u[y];break;case 66:m.addRel("rel_b",...u[y]),this.$=u[y];break;case 67:u[y].splice(0,1),m.addRel("rel",...u[y]),this.$=u[y];break;case 68:m.updateElStyle("update_el_style",...u[y]),this.$=u[y];break;case 69:m.updateRelStyle("update_rel_style",...u[y]),this.$=u[y];break;case 70:m.updateLayoutConfig("update_layout_config",...u[y]),this.$=u[y];break;case 71:this.$=[u[y]];break;case 72:u[y].unshift(u[y-1]),this.$=u[y];break;case 73:case 75:this.$=u[y].trim();break;case 74:let Lt={};Lt[u[y-1].trim()]=u[y].trim(),this.$=Lt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:n,23:a,24:o,26:p,28:l,29:49,30:61,32:62,34:r,36:h,37:s,38:f,39:b,40:_,41:x,43:23,44:S,45:B,46:j,47:V,48:F,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{13:70,19:20,20:21,21:22,22:n,23:a,24:o,26:p,28:l,29:49,30:61,32:62,34:r,36:h,37:s,38:f,39:b,40:_,41:x,43:23,44:S,45:B,46:j,47:V,48:F,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{13:71,19:20,20:21,21:22,22:n,23:a,24:o,26:p,28:l,29:49,30:61,32:62,34:r,36:h,37:s,38:f,39:b,40:_,41:x,43:23,44:S,45:B,46:j,47:V,48:F,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{13:72,19:20,20:21,21:22,22:n,23:a,24:o,26:p,28:l,29:49,30:61,32:62,34:r,36:h,37:s,38:f,39:b,40:_,41:x,43:23,44:S,45:B,46:j,47:V,48:F,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{13:73,19:20,20:21,21:22,22:n,23:a,24:o,26:p,28:l,29:49,30:61,32:62,34:r,36:h,37:s,38:f,39:b,40:_,41:x,43:23,44:S,45:B,46:j,47:V,48:F,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{14:[1,74]},e(Vt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:h,37:s,38:f,39:b,40:_,41:x,44:S,45:B,46:j,47:V,48:F,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt}),e(Vt,[2,14]),e(te,[2,16],{12:[1,76]}),e(Vt,[2,36],{12:[1,77]}),e(Ft,[2,19]),e(Ft,[2,20]),{25:[1,78]},{27:[1,79]},e(Ft,[2,23]),{35:80,75:81,76:O,77:D,79:N,80:A},{35:86,75:81,76:O,77:D,79:N,80:A},{35:87,75:81,76:O,77:D,79:N,80:A},{35:88,75:81,76:O,77:D,79:N,80:A},{35:89,75:81,76:O,77:D,79:N,80:A},{35:90,75:81,76:O,77:D,79:N,80:A},{35:91,75:81,76:O,77:D,79:N,80:A},{35:92,75:81,76:O,77:D,79:N,80:A},{35:93,75:81,76:O,77:D,79:N,80:A},{35:94,75:81,76:O,77:D,79:N,80:A},{35:95,75:81,76:O,77:D,79:N,80:A},{35:96,75:81,76:O,77:D,79:N,80:A},{35:97,75:81,76:O,77:D,79:N,80:A},{35:98,75:81,76:O,77:D,79:N,80:A},{35:99,75:81,76:O,77:D,79:N,80:A},{35:100,75:81,76:O,77:D,79:N,80:A},{35:101,75:81,76:O,77:D,79:N,80:A},{35:102,75:81,76:O,77:D,79:N,80:A},{35:103,75:81,76:O,77:D,79:N,80:A},{35:104,75:81,76:O,77:D,79:N,80:A},e(L,[2,59]),{35:105,75:81,76:O,77:D,79:N,80:A},{35:106,75:81,76:O,77:D,79:N,80:A},{35:107,75:81,76:O,77:D,79:N,80:A},{35:108,75:81,76:O,77:D,79:N,80:A},{35:109,75:81,76:O,77:D,79:N,80:A},{35:110,75:81,76:O,77:D,79:N,80:A},{35:111,75:81,76:O,77:D,79:N,80:A},{35:112,75:81,76:O,77:D,79:N,80:A},{35:113,75:81,76:O,77:D,79:N,80:A},{35:114,75:81,76:O,77:D,79:N,80:A},{35:115,75:81,76:O,77:D,79:N,80:A},{20:116,29:49,30:61,32:62,34:r,36:h,37:s,38:f,39:b,40:_,41:x,43:23,44:S,45:B,46:j,47:V,48:F,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt},{12:[1,118],33:[1,117]},{35:119,75:81,76:O,77:D,79:N,80:A},{35:120,75:81,76:O,77:D,79:N,80:A},{35:121,75:81,76:O,77:D,79:N,80:A},{35:122,75:81,76:O,77:D,79:N,80:A},{35:123,75:81,76:O,77:D,79:N,80:A},{35:124,75:81,76:O,77:D,79:N,80:A},{35:125,75:81,76:O,77:D,79:N,80:A},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Vt,[2,15]),e(te,[2,17],{21:22,19:130,22:n,23:a,24:o,26:p,28:l}),e(Vt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:n,23:a,24:o,26:p,28:l,34:r,36:h,37:s,38:f,39:b,40:_,41:x,44:S,45:B,46:j,47:V,48:F,49:H,50:rt,51:st,52:at,53:it,54:ot,55:lt,56:ct,57:ut,58:ht,59:dt,60:pt,61:ft,62:yt,63:_t,64:bt,65:mt,66:gt,67:xt,68:vt,69:kt,70:Et,71:St,72:Tt,73:Ct,74:Rt}),e(Ft,[2,21]),e(Ft,[2,22]),e(L,[2,39]),e(ye,[2,71],{75:81,35:132,76:O,77:D,79:N,80:A}),e(qt,[2,73]),{78:[1,133]},e(qt,[2,75]),e(qt,[2,76]),e(L,[2,40]),e(L,[2,41]),e(L,[2,42]),e(L,[2,43]),e(L,[2,44]),e(L,[2,45]),e(L,[2,46]),e(L,[2,47]),e(L,[2,48]),e(L,[2,49]),e(L,[2,50]),e(L,[2,51]),e(L,[2,52]),e(L,[2,53]),e(L,[2,54]),e(L,[2,55]),e(L,[2,56]),e(L,[2,57]),e(L,[2,58]),e(L,[2,60]),e(L,[2,61]),e(L,[2,62]),e(L,[2,63]),e(L,[2,64]),e(L,[2,65]),e(L,[2,66]),e(L,[2,67]),e(L,[2,68]),e(L,[2,69]),e(L,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(At,[2,28]),e(At,[2,29]),e(At,[2,30]),e(At,[2,31]),e(At,[2,32]),e(At,[2,33]),e(At,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(te,[2,18]),e(Vt,[2,38]),e(ye,[2,72]),e(qt,[2,74]),e(L,[2,24]),e(L,[2,35]),e(ee,[2,25]),e(ee,[2,26],{12:[1,138]}),e(ee,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:t(function(v,E){if(E.recoverable)this.trace(v);else{var w=Error(v);throw w.hash=E,w}},"parseError"),parse:t(function(v){var E=this,w=[0],m=[],U=[null],u=[],Ut=this.table,y="",Lt=0,_e=0,be=0,Ve=2,me=1,Ye=u.slice.call(arguments,1),z=Object.create(this.lexer),It={yy:{}};for(var re in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,re))It.yy[re]=this.yy[re];if(z.setInput(v,It.yy),It.yy.lexer=z,It.yy.parser=this,typeof z.yylloc>"u")z.yylloc={};var se=z.yylloc;u.push(se);var Fe=z.options&&z.options.ranges;if(typeof It.yy.parseError==="function")this.parseError=It.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Ue(K){w.length=w.length-2*K,U.length=U.length-K,u.length=u.length-K}t(Ue,"popStack");function ge(){var K=m.pop()||z.lex()||me;if(typeof K!=="number"){if(K instanceof Array)m=K,K=m.pop();K=E.symbols_[K]||K}return K}t(ge,"lex");var W,ae,Mt,Q,X0,ie,Yt={},Qt,et,xe,Kt;while(!0){if(Mt=w[w.length-1],this.defaultActions[Mt])Q=this.defaultActions[Mt];else{if(W===null||typeof W>"u")W=ge();Q=Ut[Mt]&&Ut[Mt][W]}if(typeof Q>"u"||!Q.length||!Q[0]){var oe="";Kt=[];for(Qt in Ut[Mt])if(this.terminals_[Qt]&&Qt>Ve)Kt.push("'"+this.terminals_[Qt]+"'");if(z.showPosition)oe="Parse error on line "+(Lt+1)+`:
|
|
2
|
+
`+z.showPosition()+`
|
|
3
|
+
Expecting `+Kt.join(", ")+", got '"+(this.terminals_[W]||W)+"'";else oe="Parse error on line "+(Lt+1)+": Unexpected "+(W==me?"end of input":"'"+(this.terminals_[W]||W)+"'");this.parseError(oe,{text:z.match,token:this.terminals_[W]||W,line:z.yylineno,loc:se,expected:Kt})}if(Q[0]instanceof Array&&Q.length>1)throw Error("Parse Error: multiple actions possible at state: "+Mt+", token: "+W);switch(Q[0]){case 1:if(w.push(W),U.push(z.yytext),u.push(z.yylloc),w.push(Q[1]),W=null,!ae){if(_e=z.yyleng,y=z.yytext,Lt=z.yylineno,se=z.yylloc,be>0)be--}else W=ae,ae=null;break;case 2:if(et=this.productions_[Q[1]][1],Yt.$=U[U.length-et],Yt._$={first_line:u[u.length-(et||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(et||1)].first_column,last_column:u[u.length-1].last_column},Fe)Yt._$.range=[u[u.length-(et||1)].range[0],u[u.length-1].range[1]];if(ie=this.performAction.apply(Yt,[y,_e,Lt,It.yy,Q[1],U,u].concat(Ye)),typeof ie<"u")return ie;if(et)w=w.slice(0,-1*et*2),U=U.slice(0,-1*et),u=u.slice(0,-1*et);w.push(this.productions_[Q[1]][0]),U.push(Yt.$),u.push(Yt._$),xe=Ut[w[w.length-2]][w[w.length-1]],w.push(xe);break;case 3:return!0}}return!0},"parse")},Be=function(){var wt={EOF:1,parseError:t(function(E,w){if(this.yy.parser)this.yy.parser.parseError(E,w);else throw Error(E)},"parseError"),setInput:t(function(v,E){if(this.yy=E||this.yy||{},this._input=v,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var v=this._input[0];this.yytext+=v,this.yyleng++,this.offset++,this.match+=v,this.matched+=v;var E=v.match(/(?:\r\n?|\n).*/g);if(E)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),v},"input"),unput:t(function(v){var E=v.length,w=v.split(/(?:\r\n?|\n)/g);this._input=v+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-E),this.offset-=E;var m=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),w.length-1)this.yylineno-=w.length-1;var U=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:w?(w.length===m.length?this.yylloc.first_column:0)+m[m.length-w.length].length-w[0].length:this.yylloc.first_column-E},this.options.ranges)this.yylloc.range=[U[0],U[0]+this.yyleng-E];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(v){this.unput(this.match.slice(v))},"less"),pastInput:t(function(){var v=this.matched.substr(0,this.matched.length-this.match.length);return(v.length>20?"...":"")+v.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var v=this.match;if(v.length<20)v+=this._input.substr(0,20-v.length);return(v.substr(0,20)+(v.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var v=this.pastInput(),E=Array(v.length+1).join("-");return v+this.upcomingInput()+`
|
|
5
|
+
`+E+"^"},"showPosition"),test_match:t(function(v,E){var w,m,U;if(this.options.backtrack_lexer){if(U={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)U.yylloc.range=this.yylloc.range.slice(0)}if(m=v[0].match(/(?:\r\n?|\n).*/g),m)this.yylineno+=m.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+v[0].length},this.yytext+=v[0],this.match+=v[0],this.matches=v,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(v[0].length),this.matched+=v[0],w=this.performAction.call(this,this.yy,this,E,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(w)return w;else if(this._backtrack){for(var u in U)this[u]=U[u];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var v,E,w,m;if(!this._more)this.yytext="",this.match="";var U=this._currentRules();for(var u=0;u<U.length;u++)if(w=this._input.match(this.rules[U[u]]),w&&(!E||w[0].length>E[0].length)){if(E=w,m=u,this.options.backtrack_lexer)if(v=this.test_match(w,U[u]),v!==!1)return v;else if(this._backtrack){E=!1;continue}else return!1;else if(!this.options.flex)break}if(E){if(v=this.test_match(E,U[m]),v!==!1)return v;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 E=this.next();if(E)return E;else return this.lex()},"lex"),begin:t(function(E){this.conditionStack.push(E)},"begin"),popState:t(function(){var E=this.conditionStack.length-1;if(E>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(E){if(E=this.conditionStack.length-1-Math.abs(E||0),E>=0)return this.conditionStack[E];else return"INITIAL"},"topState"),pushState:t(function(E){this.begin(E)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:t(function(E,w,m,U){var u=U;switch(m){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),26;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;break;case 23:return this.begin("person"),44;break;case 24:return this.begin("system_ext_queue"),51;break;case 25:return this.begin("system_ext_db"),50;break;case 26:return this.begin("system_ext"),49;break;case 27:return this.begin("system_queue"),48;break;case 28:return this.begin("system_db"),47;break;case 29:return this.begin("system"),46;break;case 30:return this.begin("boundary"),37;break;case 31:return this.begin("enterprise_boundary"),34;break;case 32:return this.begin("system_boundary"),36;break;case 33:return this.begin("container_ext_queue"),57;break;case 34:return this.begin("container_ext_db"),56;break;case 35:return this.begin("container_ext"),55;break;case 36:return this.begin("container_queue"),54;break;case 37:return this.begin("container_db"),53;break;case 38:return this.begin("container"),52;break;case 39:return this.begin("container_boundary"),38;break;case 40:return this.begin("component_ext_queue"),63;break;case 41:return this.begin("component_ext_db"),62;break;case 42:return this.begin("component_ext"),61;break;case 43:return this.begin("component_queue"),60;break;case 44:return this.begin("component_db"),59;break;case 45:return this.begin("component"),58;break;case 46:return this.begin("node"),39;break;case 47:return this.begin("node"),39;break;case 48:return this.begin("node_l"),40;break;case 49:return this.begin("node_r"),41;break;case 50:return this.begin("rel"),64;break;case 51:return this.begin("birel"),65;break;case 52:return this.begin("rel_u"),66;break;case 53:return this.begin("rel_u"),66;break;case 54:return this.begin("rel_d"),67;break;case 55:return this.begin("rel_d"),67;break;case 56:return this.begin("rel_l"),68;break;case 57:return this.begin("rel_l"),68;break;case 58:return this.begin("rel_r"),69;break;case 59:return this.begin("rel_r"),69;break;case 60:return this.begin("rel_b"),70;break;case 61:return this.begin("rel_index"),71;break;case 62:return this.begin("update_el_style"),72;break;case 63:return this.begin("update_rel_style"),73;break;case 64:return this.begin("update_layout_config"),74;break;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";break;case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";break;case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return wt}();ne.lexer=Be;function Ht(){this.yy={}}return t(Ht,"Parser"),Ht.prototype=ne,ne.Parser=Ht,new Ht}();Jt.parser=Jt;var je=Jt,Te=t((e)=>d()[e],"getRequiredConfig"),G=new Set(["label","descr","techn","type"]),Bt=t((e,n)=>{for(let[a,o]of Object.entries(n)){if(o===void 0)continue;if(typeof o==="object"){let[p,l]=Object.entries(o)[0];e[p]=G.has(p)?{text:l}:l}else e[a]=o}},"assignAttributes"),Ce=t(()=>({alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}),"createGlobalBoundary"),Z=[],Ot=[""],X="global",J="",tt=[Ce()],Xt=[],de="",pe=!1,Zt=4,$t=2,Re,ze=t(function(){return Re},"getC4Type"),We=t(function(e){Re=q(e,d())},"setC4Type"),Xe=t(function(e,n,a,o,p,l,r,h,s){if(e===void 0||e===null||n===void 0||n===null||a===void 0||a===null||o===void 0||o===null)return;let f={},b=Xt.find((_)=>_.from===n&&_.to===a);if(b)f=b;else Xt.push(f);if(f.type=e,f.from=n,f.to=a,f.label={text:o},p===void 0||p===null)f.techn??={text:""};else if(typeof p==="object"){let[_,x]=Object.entries(p)[0];f[_]=G.has(_)?{text:x}:x}else f.techn={text:p};if(l===void 0||l===null)f.descr??={text:""};else if(typeof l==="object"){let[_,x]=Object.entries(l)[0];f[_]=G.has(_)?{text:x}:x}else f.descr={text:l};Bt(f,{sprite:r,tags:h,link:s}),f.wrap=Nt()},"addRel"),qe=t(function(e,n,a,o,p,l,r){if(n===null||a===null)return;let h={},s=Z.find((f)=>f.alias===n);if(s&&n===s.alias)h=s;else h.alias=n,Z.push(h);if(a===void 0||a===null)h.label={text:""};else h.label={text:a};if(o===void 0||o===null)h.descr??={text:""};else if(typeof o==="object"){let[f,b]=Object.entries(o)[0];h[f]=G.has(f)?{text:b}:b}else h.descr={text:o};Bt(h,{sprite:p,tags:l,link:r}),h.typeC4Shape={text:e},h.parentBoundary=X,h.wrap=Nt()},"addPersonOrSystem"),He=t(function(e,n,a,o,p,l,r,h){if(n===null||a===null)return;let s={},f=Z.find((b)=>b.alias===n);if(f&&n===f.alias)s=f;else s.alias=n,Z.push(s);if(a===void 0||a===null)s.label={text:""};else s.label={text:a};if(o===void 0||o===null)s.techn??={text:""};else if(typeof o==="object"){let[b,_]=Object.entries(o)[0];s[b]=G.has(b)?{text:_}:_}else s.techn={text:o};if(p===void 0||p===null)s.descr??={text:""};else if(typeof p==="object"){let[b,_]=Object.entries(p)[0];s[b]=G.has(b)?{text:_}:_}else s.descr={text:p};Bt(s,{sprite:l,tags:r,link:h}),s.wrap=Nt(),s.typeC4Shape={text:e},s.parentBoundary=X},"addContainer"),Qe=t(function(e,n,a,o,p,l,r,h){if(n===null||a===null)return;let s={},f=Z.find((b)=>b.alias===n);if(f&&n===f.alias)s=f;else s.alias=n,Z.push(s);if(a===void 0||a===null)s.label={text:""};else s.label={text:a};if(o===void 0||o===null)s.techn??={text:""};else if(typeof o==="object"){let[b,_]=Object.entries(o)[0];s[b]=G.has(b)?{text:_}:_}else s.techn={text:o};if(p===void 0||p===null)s.descr??={text:""};else if(typeof p==="object"){let[b,_]=Object.entries(p)[0];s[b]=G.has(b)?{text:_}:_}else s.descr={text:p};Bt(s,{sprite:l,tags:r,link:h}),s.wrap=Nt(),s.typeC4Shape={text:e},s.parentBoundary=X},"addComponent"),Ke=t(function(e,n,a,o,p){if(e===null||n===null)return;let l={},r=tt.find((h)=>h.alias===e);if(r&&e===r.alias)l=r;else l.alias=e,tt.push(l);if(n===void 0||n===null)l.label={text:""};else l.label={text:n};if(a===void 0||a===null)l.type={text:"system"};else if(typeof a==="object"){let[h,s]=Object.entries(a)[0];l[h]=G.has(h)?{text:s}:s}else l.type={text:a};Bt(l,{tags:o,link:p}),l.parentBoundary=X,l.wrap=Nt(),J=X,X=e,Ot.push(J)},"addPersonOrSystemBoundary"),Ge=t(function(e,n,a,o,p){if(e===null||n===null)return;let l={},r=tt.find((h)=>h.alias===e);if(r&&e===r.alias)l=r;else l.alias=e,tt.push(l);if(n===void 0||n===null)l.label={text:""};else l.label={text:n};if(a===void 0||a===null)l.type={text:"container"};else if(typeof a==="object"){let[h,s]=Object.entries(a)[0];l[h]=G.has(h)?{text:s}:s}else l.type={text:a};Bt(l,{tags:o,link:p}),l.parentBoundary=X,l.wrap=Nt(),J=X,X=e,Ot.push(J)},"addContainerBoundary"),Je=t(function(e,n,a,o,p,l,r,h){if(n===null||a===null)return;let s={},f=tt.find((b)=>b.alias===n);if(f&&n===f.alias)s=f;else s.alias=n,tt.push(s);if(a===void 0||a===null)s.label={text:""};else s.label={text:a};if(o===void 0||o===null)s.type={text:"node"};else if(typeof o==="object"){let[b,_]=Object.entries(o)[0];s[b]=G.has(b)?{text:_}:_}else s.type={text:o};if(p===void 0||p===null)s.descr??={text:""};else if(typeof p==="object"){let[b,_]=Object.entries(p)[0];s[b]=G.has(b)?{text:_}:_}else s.descr={text:p};Bt(s,{tags:r,link:h}),s.nodeType=e,s.parentBoundary=X,s.wrap=Nt(),J=X,X=n,Ot.push(J)},"addDeploymentNode"),Ze=t(function(){X=J,Ot.pop(),J=Ot.pop(),Ot.push(J)},"popBoundaryParseStack"),$e=t(function(e,n,a,o,p,l,r,h,s,f,b){let _=Z.find((x)=>x.alias===n);if(_===void 0){if(_=tt.find((x)=>x.alias===n),_===void 0)return}if(a!==void 0&&a!==null)if(typeof a==="object"){let[x,S]=Object.entries(a)[0];_[x]=S}else _.bgColor=a;if(o!==void 0&&o!==null)if(typeof o==="object"){let[x,S]=Object.entries(o)[0];_[x]=S}else _.fontColor=o;if(p!==void 0&&p!==null)if(typeof p==="object"){let[x,S]=Object.entries(p)[0];_[x]=S}else _.borderColor=p;if(l!==void 0&&l!==null)if(typeof l==="object"){let[x,S]=Object.entries(l)[0];_[x]=S}else _.shadowing=l;if(r!==void 0&&r!==null)if(typeof r==="object"){let[x,S]=Object.entries(r)[0];_[x]=S}else _.shape=r;if(h!==void 0&&h!==null)if(typeof h==="object"){let[x,S]=Object.entries(h)[0];_[x]=S}else _.sprite=h;if(s!==void 0&&s!==null)if(typeof s==="object"){let[x,S]=Object.entries(s)[0];_[x]=S}else _.techn=s;if(f!==void 0&&f!==null)if(typeof f==="object"){let[x,S]=Object.entries(f)[0];_[x]=S}else _.legendText=f;if(b!==void 0&&b!==null)if(typeof b==="object"){let[x,S]=Object.entries(b)[0];_[x]=S}else _.legendSprite=b},"updateElStyle"),t0=t(function(e,n,a,o,p,l,r){let h=Xt.find((s)=>s.from===n&&s.to===a);if(h===void 0)return;if(o!==void 0&&o!==null)if(typeof o==="object"){let[s,f]=Object.entries(o)[0];h[s]=f}else h.textColor=o;if(p!==void 0&&p!==null)if(typeof p==="object"){let[s,f]=Object.entries(p)[0];h[s]=f}else h.lineColor=p;if(l!==void 0&&l!==null)if(typeof l==="object"){let[s,f]=Object.entries(l)[0];h[s]=parseInt(f)}else h.offsetX=parseInt(l);if(r!==void 0&&r!==null)if(typeof r==="object"){let[s,f]=Object.entries(r)[0];h[s]=parseInt(f)}else h.offsetY=parseInt(r)},"updateRelStyle"),e0=t(function(e,n,a){let o=Zt,p=$t;if(typeof n==="object"){let l=Object.values(n)[0];o=parseInt(l)}else o=parseInt(n);if(typeof a==="object"){let l=Object.values(a)[0];p=parseInt(l)}else p=parseInt(a);if(o>=1)Zt=o;if(p>=1)$t=p},"updateLayoutConfig"),n0=t(function(){return Zt},"getC4ShapeInRow"),r0=t(function(){return $t},"getC4BoundaryInRow"),s0=t(function(){return X},"getCurrentBoundaryParse"),a0=t(function(){return J},"getParentBoundaryParse"),we=t(function(e){if(e===void 0||e===null)return Z;else return Z.filter((n)=>n.parentBoundary===e)},"getC4ShapeArray"),i0=t(function(e){return Z.find((n)=>n.alias===e)??tt.find((n)=>n.alias===e)},"getC4Shape"),o0=t(function(e){return Object.keys(we(e))},"getC4ShapeKeys"),Oe=t(function(e){if(e===void 0||e===null)return tt;else return tt.filter((n)=>n.parentBoundary===e)},"getBoundaries"),l0=Oe,c0=t(function(){return Xt},"getRels"),u0=t(function(){return de},"getTitle"),h0=t(function(e){pe=e},"setWrap"),Nt=t(function(){return pe},"autoWrap"),d0=t(function(){Z=[],tt=[Ce()],J="",X="global",Ot=[""],Xt=[],Ot=[""],de="",pe=!1,Zt=4,$t=2},"clear"),p0={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},f0={FILLED:0,OPEN:1},y0={LEFTOF:0,RIGHTOF:1,OVER:2},_0=t(function(e){de=q(e,d())},"setTitle"),ce={addPersonOrSystem:qe,addPersonOrSystemBoundary:Ke,addContainer:He,addContainerBoundary:Ge,addComponent:Qe,addDeploymentNode:Je,popBoundaryParseStack:Ze,addRel:Xe,updateElStyle:$e,updateRelStyle:t0,updateLayoutConfig:e0,autoWrap:Nt,setWrap:h0,getC4ShapeArray:we,getC4Shape:i0,getC4ShapeKeys:o0,getBoundaries:Oe,getBoundarys:l0,getCurrentBoundaryParse:s0,getParentBoundaryParse:a0,getRels:c0,getTitle:u0,getC4Type:ze,getC4ShapeInRow:n0,getC4BoundaryInRow:r0,setAccTitle:M,getAccTitle:R,getAccDescription:I,setAccDescription:P,getConfig:t(()=>Te("c4"),"getConfig"),clear:d0,LINETYPE:p0,ARROWTYPE:f0,PLACEMENT:y0,setTitle:_0,setC4Type:We},Pe=t(function(e,n){return hr(e,n)},"drawRect"),b0=t((e,n,a,o)=>{let p=e.append("g"),l=0;for(let r of n){let h=r.textColor?r.textColor:"#444444",s=r.lineColor?r.lineColor:"#444444",f=r.offsetX?parseInt(String(r.offsetX)):0,b=r.offsetY?parseInt(String(r.offsetY)):0,_="";if(l===0){let B=p.append("line");if(B.attr("x1",r.startPoint.x),B.attr("y1",r.startPoint.y),B.attr("x2",r.endPoint.x),B.attr("y2",r.endPoint.y),B.attr("stroke-width","1"),B.attr("stroke",s),B.style("fill","none"),r.type!=="rel_b")B.attr("marker-end","url(#"+o+"-arrowhead)");if(r.type==="birel"||r.type==="rel_b")B.attr("marker-start","url(#"+o+"-arrowend)");l=-1}else{let B=p.append("path");if(B.attr("fill","none").attr("stroke-width","1").attr("stroke",s).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",r.startPoint.x).replaceAll("starty",r.startPoint.y).replaceAll("controlx",r.startPoint.x+(r.endPoint.x-r.startPoint.x)/2-(r.endPoint.x-r.startPoint.x)/4).replaceAll("controly",r.startPoint.y+(r.endPoint.y-r.startPoint.y)/2).replaceAll("stopx",r.endPoint.x).replaceAll("stopy",r.endPoint.y)),r.type!=="rel_b")B.attr("marker-end","url(#"+o+"-arrowhead)");if(r.type==="birel"||r.type==="rel_b")B.attr("marker-start","url(#"+o+"-arrowend)")}let x=r.label.width,S=a.messageFont();if(jt(a)(r.label.text,p,Math.min(r.startPoint.x,r.endPoint.x)+Math.abs(r.endPoint.x-r.startPoint.x)/2+f,Math.min(r.startPoint.y,r.endPoint.y)+Math.abs(r.endPoint.y-r.startPoint.y)/2+b,x,r.label.height,{fill:h},S),r.techn&&r.techn.text!=="")S=a.messageFont(),jt(a)("["+r.techn.text+"]",p,Math.min(r.startPoint.x,r.endPoint.x)+Math.abs(r.endPoint.x-r.startPoint.x)/2+f,Math.min(r.startPoint.y,r.endPoint.y)+Math.abs(r.endPoint.y-r.startPoint.y)/2+a.messageFontSize+5+b,Math.max(x,r.techn.width),r.techn.height,{fill:h,"font-style":"italic"},S)}},"drawRels"),m0=t(function(e,n,a){let o=e.append("g"),p=n.bgColor?n.bgColor:"none",l=n.borderColor?n.borderColor:"#444444",r=n.fontColor?n.fontColor:"black",h={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};if(n.nodeType)h={"stroke-width":1};let s={x:n.x,y:n.y,fill:p,stroke:l,width:n.width,height:n.height,rx:2.5,ry:2.5,attrs:h};Pe(o,s);let f=a.boundaryFont();if(f.fontWeight="bold",f.fontSize=f.fontSize+2,f.fontColor=r,jt(a)(n.label.text,o,n.x,n.y+n.label.Y,n.width,n.height,{fill:"#444444"},f),n.type&&n.type.text!=="")f=a.boundaryFont(),f.fontColor=r,jt(a)(n.type.text,o,n.x,n.y+n.type.Y,n.width,n.height,{fill:"#444444"},f);if(n.descr&&n.descr.text!=="")f=a.boundaryFont(),f.fontSize=f.fontSize-2,f.fontColor=r,jt(a)(n.descr.text,o,n.x,n.y+n.descr.Y,n.width,n.height,{fill:"#444444"},f)},"drawBoundary"),g0=t(function(e,n){e.append("defs").append("symbol").attr("id",n+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),x0=t(function(e,n){e.append("defs").append("symbol").attr("id",n+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),v0=t(function(e,n){e.append("defs").append("symbol").attr("id",n+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),k0=t(function(e,n){e.append("defs").append("marker").attr("id",n+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),E0=t(function(e,n){e.append("defs").append("marker").attr("id",n+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),S0=t(function(e,n){e.append("defs").append("marker").attr("id",n+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),T0=t(function(e,n){let o=e.append("defs").append("marker").attr("id",n+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);o.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),o.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),jt=function(){function e(p,l,r,h,s,f,b){let _=l.append("text").attr("x",r+s/2).attr("y",h+f/2+5).style("text-anchor","middle").text(p);o(_,b)}t(e,"byText");function n(p,l,r,h,s,f,b,_){let{fontSize:x,fontFamily:S,fontWeight:B}=_,j=p.split(C.lineBreakRegex);for(let V=0;V<j.length;V++){let F=V*x-x*(j.length-1)/2,H=l.append("text").attr("x",r+s/2).attr("y",h).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",x).style("font-weight",B).style("font-family",S);H.append("tspan").attr("dy",F).text(j[V]).attr("alignment-baseline","mathematical"),o(H,b)}}t(n,"byTspan");function a(p,l,r,h,s,f,b,_){let x=l.append("switch"),B=x.append("foreignObject").attr("x",r).attr("y",h).attr("width",s).attr("height",f).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");B.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(p),n(p,x,r,h,s,f,b,_),o(B,b)}t(a,"byFo");function o(p,l){for(let r in l)if(l.hasOwnProperty(r))p.attr(r,l[r])}return t(o,"_setTextAttrs"),function(p){return p.textPlacement==="fo"?a:p.textPlacement==="old"?e:n}}(),nt={drawRect:Pe,drawBoundary:m0,drawRels:b0,insertArrowHead:k0,insertArrowEnd:E0,insertArrowFilledHead:S0,insertArrowCrossHead:T0,insertDatabaseIcon:g0,insertComputerIcon:x0,insertClockIcon:v0},C0=t((e,n)=>{if(n==="sandbox"){let o=g("#i"+e).node()?.contentDocument;if(!o)throw Error(`Sandbox iframe #i${e} is missing its content document`);return{root:g(o.body),doc:o}}return{root:g("body"),doc:document}},"getDiagramRoot"),R0=new Set(["system_queue","external_system_queue","container_queue","external_container_queue","component_queue","external_component_queue"]),w0=new Set(["system_db","external_system_db","container_db","external_container_db","component_db","external_component_db"]),O0={person:"person",box:"rounded",rounded:"rounded",cylinder:"cylinder",database:"cylinder",db:"cylinder",queue:"h-cyl",pipe:"h-cyl",component:"fr-rect"},le=t((e)=>e?O0[e.toLowerCase()]:void 0,"keywordShape"),P0=t((e)=>{let n=le(e.shape)??le(e.sprite);if(n)return n;if(e.tags)for(let o of e.tags.split(",")){let p=le(o.trim());if(p)return p}let a=e.typeC4Shape.text;if(a==="person"||a==="external_person")return"person";if(w0.has(a))return"cylinder";if(R0.has(a))return"h-cyl";return"rounded"},"resolveNodeShape"),D0={person:"Person",system:"Software System",container:"Container",component:"Component"},N0=t((e)=>{let n=e.replace(/^external_/,"").replace(/_(db|queue)$/,"");return D0[n]??n.replace(/_/g," ")},"stereotypeLabel"),A0=t((e)=>e.startsWith("external_"),"isExternal"),L0=t((e)=>{let n=N0(e.typeC4Shape.text);return e.techn?.text?`[${n}: ${e.techn.text}]`:`[${n}]`},"stereotypeText"),De=["person","system","system_db","system_queue","container","container_db","container_queue","component","component_db","component_queue"].flatMap((e)=>[e,`external_${e}`]),I0=new Set(De),ve=t((e)=>I0.has(e),"isC4ElementType"),M0=t((e,n)=>{let a=e.typeC4Shape.text,o=e.bgColor??(ve(a)&&n[`${a}_bg_color`]),p=e.borderColor??(ve(a)&&n[`${a}_border_color`]),l=[];if(o)l.push(`fill:${o}`);if(p)l.push(`stroke:${p}`);return l.push(`color:${e.fontColor??"#FFFFFF"}`),l},"elementCssStyles"),ke=t((e,n,a,o,p)=>{let l=e.typeC4Shape.text,r=["c4-shape",`c4-${l}`];if(A0(l))r.push("c4-external");let h=P0(e),s=M0(e,n);if(h==="rounded"||h==="fr-rect")s.push("rx:12px","ry:12px");return{id:e.alias,label:e.label.text,stereotype:L0(e),description:e.descr?.text?[e.descr.text]:void 0,labelType:"string",isGroup:!1,shape:h,cssClasses:r.join(" "),cssStyles:s,padding:a,look:o,useHtmlLabels:!1,width:p}},"buildC4Node"),zt=0,Wt=0,Ne=4,ue=2;Jt.yy=ce;var k={},Le=class{static{t(this,"Bounds")}constructor(e){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,he(e.db.getConfig())}setData(e,n,a,o){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=n,this.nextData.starty=this.data.starty=a,this.nextData.stopy=this.data.stopy=o}updateVal(e,n,a,o){if(e[n]===void 0)e[n]=a;else e[n]=o(a,e[n])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let n=this.nextData.stopx,a=this.data.widthLimit,o=this.nextData.startx===this.nextData.stopx?n+e.margin:n+e.margin*2,p=o+e.width,l=this.nextData.starty+e.margin*2,r=l+e.height;if(o>=a||p>=a||this.nextData.cnt>Ne)o=this.nextData.startx+e.margin+k.nextLinePaddingX,l=this.nextData.stopy+e.margin*2,this.nextData.stopx=p=o+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=r=l+e.height,this.nextData.cnt=1;e.x=o,e.y=l,this.updateVal(this.data,"startx",o,Math.min),this.updateVal(this.data,"starty",l,Math.min),this.updateVal(this.data,"stopx",p,Math.max),this.updateVal(this.data,"stopy",r,Math.max),this.updateVal(this.nextData,"startx",o,Math.min),this.updateVal(this.nextData,"starty",l,Math.min),this.updateVal(this.nextData,"stopx",p,Math.max),this.updateVal(this.nextData,"stopy",r,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},he(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},he=t(function(e){if(Ae(k,e),e?.fontFamily)k.personFontFamily=k.systemFontFamily=k.messageFontFamily=e.fontFamily;if(e?.fontSize)k.personFontSize=k.systemFontSize=k.messageFontSize=e.fontSize;if(e?.fontWeight)k.personFontWeight=k.systemFontWeight=k.messageFontWeight=e.fontWeight},"setConf"),Gt=t((e)=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),B0=t((e)=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");function Pt(e,n,a,o,p){let l=n[e];if(!l.width)if(a)l.text=Yr(l.text,p,o),l.textLines=l.text.split(C.lineBreakRegex).length,l.width=p,l.height=Fi(l.text,o);else{let r=l.text.split(C.lineBreakRegex);l.textLines=r.length;let h=0;l.height=0,l.width=0;for(let s of r)l.width=Math.max(Dt(s,o),l.width),h=Fi(s,o),l.height=l.height+h}return l}t(Pt,"calcC4ShapeTextWH");var Ie=t(function(e,n,a){let o=a.data.startx,p=a.data.starty;n.x=o,n.y=p,n.width=a.data.stopx-o,n.height=a.data.stopy-p,n.intersect=(s)=>T.rect({x:n.x+n.width/2,y:n.y+n.height/2,width:n.width,height:n.height},s),n.label.y=k.c4ShapeMargin-35;let l=n.wrap&&k.wrap,r=Gt(k);r.fontSize=r.fontSize+2,r.fontWeight="bold";let h=Dt(n.label.text,r);Pt("label",n,l,r,h),nt.drawBoundary(e,n,k)},"drawBoundary"),Me=t(async function(e,n,a,o){let p=d(),l=p.look??"classic",r={config:p},h=n.attr("id")??"",s=o.map((b)=>a[Number(b)]),f=t((b)=>{let _=b.shape?Ui[b.shape]:void 0;if(!_)throw Error(`C4: no shape handler for "${b.shape}"`);return _},"shapeHandlerFor");await Promise.all(s.map(async(b)=>{let _=ke(b,k,k.c4ShapePadding,l,k.width);_.domId=`${h}-${_.id}`;let x=await f(_)(n,_,r);b.width=_.width??k.width,b.height=_.height??k.height,b.margin=k.c4ShapeMargin,x.remove()}));for(let b of s)e.insert(b);await Promise.all(s.map(async(b)=>{let _=ke(b,k,k.c4ShapePadding,l,k.width);_.domId=`${h}-${_.id}`,_.x=b.x+b.width/2,_.y=b.y+b.height/2;let x=n.append("g").attr("transform",`translate(${b.x+b.width/2}, ${b.y+b.height/2})`);await f(_)(x,_,r),b.intersect=_.intersect})),e.bumpLastMargin(k.c4ShapeMargin)},"drawC4ShapeArray"),V0=class{static{t(this,"Point")}constructor(e,n){this.x=e,this.y=n}},Ee=t(function(e,n){if(!e.intersect)throw Error(`C4 element "${e.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);let{x:a,y:o}=e.intersect(n);return new V0(a,o)},"getIntersectPoint"),Y0=t(function(e,n){let a={x:0,y:0};a.x=n.x+n.width/2,a.y=n.y+n.height/2;let o=Ee(e,a);a.x=e.x+e.width/2,a.y=e.y+e.height/2;let p=Ee(n,a);return{startPoint:o,endPoint:p}},"getIntersectPoints"),F0=t(function(e,n,a,o,p){let l=o.db.getC4Type(),r=0;for(let h of n){r=r+1;let s=h.wrap&&k.wrap,f=B0(k);if(l==="C4Dynamic")h.label.text=r+": "+h.label.text;let b=Dt(h.label.text,f);if(Pt("label",h,s,f,b),h.techn&&h.techn.text!=="")b=Dt(h.techn.text,f),Pt("techn",h,s,f,b);if(h.descr&&h.descr.text!=="")b=Dt(h.descr.text,f),Pt("descr",h,s,f,b);let _=a(h.from),x=a(h.to);if(!_||!x)throw Error(`C4 rel "${h.from}" -> "${h.to}" references an unknown shape or boundary`);let S=Y0(_,x);if(!S.startPoint||!S.endPoint)throw Error(`Could not calculate intersection points for rel "${h.from}" -> "${h.to}"`);h.startPoint=S.startPoint,h.endPoint=S.endPoint}nt.drawRels(e,n,k,p)},"drawRels");async function fe(e,n,a,o,p){let l=p.db,r=new Le(p);r.data.widthLimit=a.data.widthLimit/Math.min(ue,o.length);for(let[h,s]of o.entries()){let f=0;if(s.image={width:0,height:0,Y:0},s.sprite)s.image.width=48,s.image.height=48,s.image.Y=f,f=s.image.Y+s.image.height;let b=s.wrap&&k.wrap,_=Gt(k);_.fontSize=_.fontSize+2,_.fontWeight="bold";let x=Pt("label",s,b,_,r.data.widthLimit);if(x.Y=f+8,f=x.Y+x.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let V=Gt(k),F=Pt("type",s,b,V,r.data.widthLimit);F.Y=f+5,f=F.Y+F.height}if(s.descr&&s.descr.text!==""){let V=Gt(k);V.fontSize=V.fontSize-2;let F=Pt("descr",s,b,V,r.data.widthLimit);F.Y=f+20,f=F.Y+F.height}if(h==0||h%ue===0){let V=a.data.startx+k.diagramMarginX,F=a.data.stopy+k.diagramMarginY+f;r.setData(V,V,F,F)}else{let V=r.data.stopx!==r.data.startx?r.data.stopx+k.diagramMarginX:r.data.startx,F=r.data.starty;r.setData(V,V,F,F)}r.name=s.alias;let S=l.getC4ShapeArray(s.alias),B=l.getC4ShapeKeys(s.alias);if(B.length>0)await Me(r,e,S,B);n=s.alias;let j=l.getBoundaries(n);if(j.length>0)await fe(e,n,r,j,p);if(s.alias!=="global")Ie(e,s,r);a.data.stopy=Math.max(r.data.stopy+k.c4ShapeMargin,a.data.stopy),a.data.stopx=Math.max(r.data.stopx+k.c4ShapeMargin,a.data.stopx),zt=Math.max(zt,a.data.stopx),Wt=Math.max(Wt,a.data.stopy)}}t(fe,"drawInsideBoundary");var U0=t(async function(e,n,a,o){k=Te("c4");let p=d().securityLevel,{root:l}=C0(n,p),r=o.db;r.setWrap(k.wrap),Ne=r.getC4ShapeInRow(),ue=r.getC4BoundaryInRow(),i.debug(`C:${JSON.stringify(k,null,2)}`);let h=l.select(`[id="${n}"]`);nt.insertComputerIcon(h,n),nt.insertDatabaseIcon(h,n),nt.insertClockIcon(h,n);let s=new Le(o);s.setData(k.diagramMarginX,k.diagramMarginX,k.diagramMarginY,k.diagramMarginY),s.data.widthLimit=screen.availWidth,zt=k.diagramMarginX,Wt=k.diagramMarginY;let f=r.getTitle(),b=r.getBoundaries("");await fe(h,"",s,b,o),nt.insertArrowHead(h,n),nt.insertArrowEnd(h,n),nt.insertArrowCrossHead(h,n),nt.insertArrowFilledHead(h,n),F0(h,r.getRels(),r.getC4Shape,o,n),s.data.stopx=zt,s.data.stopy=Wt;let _=s.data,{startx:x,starty:S}=_,j=Wt-S+2*k.diagramMarginY,V=zt-x,F=V+2*k.diagramMarginX;if(f)h.append("text").text(f).attr("x",V/2-4*k.diagramMarginX).attr("y",S+k.diagramMarginY);Y(h,j,F,k.useMaxWidth);let H=f?60:0;h.attr("viewBox",x-k.diagramMarginX+" -"+(k.diagramMarginY+H)+" "+F+" "+(j+H)),i.debug("models:",_)},"draw"),Se={drawPersonOrSystemArray:Me,drawBoundary:Ie,setConf:he,draw:U0},j0=t(()=>{let e=d().c4??{},n=new CSSStyleSheet;for(let a of De){let o=n.cssRules[n.insertRule(`.c4-shape.c4-${a} .label {}`,n.cssRules.length)],p=e[`${a}FontFamily`],l=e[`${a}FontSize`],r=e[`${a}FontWeight`];if(p)o.style.setProperty("font-family",p);if(l)o.style.setProperty("font-size",typeof l==="number"?`${l}px`:l);if(r)o.style.setProperty("font-weight",String(r))}return[...n.cssRules].filter((a)=>a.style.length>0).map((a)=>` ${a.cssText}`).join(`
|
|
7
|
+
`)},"elementFontStyles"),z0=t((e)=>`.person {
|
|
8
|
+
stroke: ${e.personBorder};
|
|
9
|
+
fill: ${e.personBkg};
|
|
10
|
+
}
|
|
11
|
+
${j0()}
|
|
12
|
+
|
|
13
|
+
/* The element font colour is set inline per element (default white); the
|
|
14
|
+
label text takes it via currentColor. */
|
|
15
|
+
.c4-shape .label,
|
|
16
|
+
.c4-shape .label text {
|
|
17
|
+
color: inherit;
|
|
18
|
+
fill: currentColor;
|
|
19
|
+
}
|
|
20
|
+
/* Structurizr typography: bold name, smaller stereotype/type and description lines. */
|
|
21
|
+
.c4-shape .label .c4-name {
|
|
22
|
+
font-weight: bold;
|
|
23
|
+
}
|
|
24
|
+
.c4-shape .label .c4-type {
|
|
25
|
+
font-size: 0.75em;
|
|
26
|
+
}
|
|
27
|
+
.c4-shape .label .c4-descr {
|
|
28
|
+
font-size: 0.82em;
|
|
29
|
+
}
|
|
30
|
+
.c4-shape .basic,
|
|
31
|
+
.c4-shape rect,
|
|
32
|
+
.c4-shape path,
|
|
33
|
+
.c4-shape circle,
|
|
34
|
+
.c4-shape ellipse,
|
|
35
|
+
.c4-shape line {
|
|
36
|
+
stroke-width: 2px;
|
|
37
|
+
}
|
|
38
|
+
`,"getStyles"),W0=z0,r1={parser:je,db:ce,renderer:Se,styles:W0,init:t(({c4:e,wrap:n})=>{Se.setConf(e),ce.setWrap(n)},"init")};export{r1 as diagram};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{y,s,o,a,m,e,n,b,l,xe,Ft,Be,ke,ye,gt,Ht,me,ce,Yc,mi,fi,hi,ps}from"./chunk-hxsrph02.js";import{wi,ki,Ci}from"./chunk-68q4nnmc.js";var be=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],pe=l("rotate-cw",be);function fe(i){let{ApprovalPanel:P,Button:S,CopyButton:H,DetailChip:R,DetailList:g,DetailRow:p,DetailTitle:M,Dialog:D,Switch:Z,Tooltip:u,cn:te,confirm:w,useTheme:ne}=b();ne();let{info:r,connection:j}=i,N=i.projectID?`?projectID=${encodeURIComponent(i.projectID)}`:"",[G,se]=a(),[J,z]=a(),[h,T]=a(!1),[v,E]=a(),[B,O]=a(),Y=r.status.status==="connected",ee=r.status.status==="needs_auth",A=r.status.status==="failed",t=r.config.type==="remote"&&Boolean(r.config.oauth),I=r.projectID!==(i.projectID??null);s(()=>{function d(k){if(k&&k!==r.name)return;j.request(`/api/mcp/${encodeURIComponent(r.name)}/connect${N}`,{method:"POST"}).then((C)=>i.onChanged(C)).catch((C)=>{z(C instanceof Error?C.message:"授权后重新连接失败")})}function c(k){if(k.origin!==window.location.origin)return;if(k.data?.type==="mcp-oauth-success")d(k.data.name)}function f(k){if(k.key==="basalt-mcp-oauth-event"&&k.newValue)try{let C=JSON.parse(k.newValue);d(C.name)}catch(C){}}window.addEventListener("message",c),window.addEventListener("storage",f);let K;if("BroadcastChannel"in window)K=new BroadcastChannel("basalt-mcp-oauth"),K.onmessage=(k)=>{if(k.data?.type==="mcp-oauth-success")d(k.data.name)};return()=>{window.removeEventListener("message",c),window.removeEventListener("storage",f),K?.close()}},[j,r.name,N,i]),s(()=>{if(r.status.status!=="connected")return;j.request(`/api/mcp/${encodeURIComponent(r.name)}/tools${N}`).then((d)=>{if(Array.isArray(d))se(d),z(void 0)}).catch((d)=>{z(d instanceof Error?d.message:"获取工具失败")})},[j,r.name,N,r.status.status]);async function x(d){T(!0);try{let c=await j.request(`/api/mcp/${encodeURIComponent(r.name)}/${d}${N}`,{method:"POST"});i.onChanged(c)}catch{}finally{T(!1)}}async function F(){if(!v||h)return;let d=v.fingerprint;O(void 0),T(!0);try{let c=await j.request(`/api/mcp/${encodeURIComponent(r.name)}/trust${N}`,{method:"POST",body:JSON.stringify({fingerprint:d})});i.onChanged(c),E(void 0)}catch(c){O(c instanceof Error?c.message:"确认失败,请刷新配置")}finally{T(!1)}}async function U(){let d=window.open("about:blank","_blank","width=600,height=700");if(!d){z("授权窗口被浏览器拦截,请允许弹出窗口后重试");return}T(!0),z(void 0);try{let c=await j.request(`/api/mcp/${encodeURIComponent(r.name)}/oauth/authorize${N}`,{method:"POST"}),f=new URL(c.authorizationUrl);if(f.protocol!=="https:"&&f.protocol!=="http:")throw Error("授权服务返回了不支持的链接协议");d.location.href=f.href}catch(c){d.close(),z(c instanceof Error?c.message:"获取授权链接失败")}finally{T(!1)}}async function ie(){T(!0);try{let d=await j.request(`/api/mcp/${encodeURIComponent(r.name)}/oauth/clear${N}`,{method:"POST"});i.onChanged(d)}finally{T(!1)}}async function _(){if(!await w({title:`删除 ${r.name}?`,description:"删除后将断开连接并不再向会话提供其工具。",action:"删除",danger:!0}))return;T(!0);try{await j.request(`/api/mcp/${encodeURIComponent(r.name)}${N}`,{method:"DELETE"}),i.onChanged(),i.onClose()}finally{T(!1)}}let ae=r.config,re=hi(ae),V="error"in r.status?r.status.error:void 0,oe=ae.enabled===!1,le=!oe&&!ee&&r.status.status!=="needs_trust";if(v)return e(D,{open:!0,onOpenChange:(d)=>{if(!d&&!h)E(void 0)},title:`信任 ${r.name}?`,size:"lg",children:n(P,{hideTitle:!0,title:"信任项目本地命令",command:v.command,approveLabel:"信任并连接",busy:h?"approve":void 0,error:B,onDecision:(d)=>{if(d)F();else E(void 0)},description:"项目命令将以你的权限运行,请确认来源可信。",children:[n("div",{className:"flex min-w-0 items-start gap-2 text-xs text-dim",children:[e("span",{className:"shrink-0 leading-5",children:"目录"}),e("code",{className:"min-w-0 flex-1 leading-5 [overflow-wrap:anywhere]",children:v.cwd}),e(H,{text:v.cwd,label:"复制工作目录",size:"icon-xs"})]}),n("section",{className:"min-w-0 space-y-2",children:[e("h3",{className:"text-xs font-medium text-dim",children:"环境变量"}),v.variables.length?e("div",{className:"flex min-w-0 flex-wrap gap-2",children:v.variables.map((d)=>e("span",{className:"max-w-full rounded-md bg-raised px-2 py-1 font-mono text-xs text-dim [overflow-wrap:anywhere]",children:d},d))}):e("p",{className:"text-xs text-faint",children:"无"})]}),e("p",{className:"text-xs leading-5 text-faint",children:"配置变更后需重新确认。"})]})});return e(D,{open:!0,onOpenChange:(d)=>{if(!d&&!h)i.onClose()},title:e(M,{icon:ae.type==="local"?e(Ht,{}):e(Be,{}),name:r.name,meta:[ae.type==="local"?"本地命令":"远程服务",fi(r.scope),t&&"OAuth 2.0"]}),size:"lg",footer:n("div",{className:"flex w-full items-center justify-between gap-2 max-sm:[&>*]:flex-none",children:[n("div",{className:"inline-flex items-center gap-2.5 text-ui text-dim",children:[!I&&e(Z,{label:`启用 ${r.name}`,checked:!oe,disabled:h||i.toggling,onCheckedChange:i.onToggle}),e(ps,{info:r,tools:!0})]}),n("div",{className:"flex items-center gap-1.5",children:[r.status.status==="needs_trust"&&e(S,{type:"button",size:"sm",onClick:()=>{if(r.status.status!=="needs_trust"||r.config.type!=="local")return;O(void 0),E({fingerprint:r.status.fingerprint,cwd:r.status.cwd,command:hi(r.config),variables:Object.keys(r.config.environment??{})})},disabled:h,children:"信任并连接"}),t&&e(S,{type:"button",variant:"ghost",size:"sm",onClick:ie,disabled:h,children:"清除凭据"}),!I&&e(u,{label:"删除服务器",children:e(S,{type:"button",variant:"danger-ghost",size:"icon","aria-label":"删除服务器",onClick:_,disabled:h,children:e(me,{className:"size-4"})})}),le&&e(u,{label:"终止服务进程并重新启动,让更新后的代码生效",children:e(S,{type:"button",variant:"ghost",size:"icon","aria-label":"重启",onClick:()=>x("restart"),disabled:h,children:e(pe,{className:te("size-4",h&&"animate-spin")})})}),le&&e(S,{type:"button",size:"sm",onClick:()=>x(Y?"disconnect":"connect"),disabled:h,children:Y?"断开连接":"连接"}),!I&&n(S,{type:"button",size:"sm",onClick:i.onEdit,disabled:h,children:[e(gt,{className:"size-3.5"}),e("span",{children:"编辑配置"})]})]})]}),children:n(g,{children:[n(p,{label:ae.type==="local"?"命令":"地址",children:[e("span",{className:"min-w-0 font-mono text-xs text-dim leading-5.5 [overflow-wrap:anywhere]",children:re}),e(H,{text:re,label:"复制",size:"icon-xs",className:"shrink-0 text-faint hover:text-ink"})]}),ee&&n("div",{className:"flex items-center justify-between gap-4 py-3.5 max-sm:flex-col max-sm:items-start max-sm:gap-2.5",children:[n("div",{className:"min-w-0 space-y-1",children:[e("p",{className:"text-ui text-ink leading-5",children:"需要授权"}),e("p",{className:"text-xs text-faint leading-5",children:"完成授权后即可使用,凭据自动保存。"})]}),e(S,{type:"button",size:"sm",className:"shrink-0",onClick:U,disabled:h,children:h?"正在连接…":"连接账户"})]}),A&&e(p,{label:"错误",children:e("p",{className:"min-w-0 font-mono text-xs text-danger leading-5 [overflow-wrap:anywhere]",children:V})}),e(p,{label:"工具",children:J?e("span",{className:"text-danger",children:J}):!Y?e("span",{className:"text-faint",children:"连接后列出工具"}):!G?e("span",{role:"status",className:"text-faint",children:"正在获取"}):G.length===0?e("span",{className:"text-faint",children:"服务器没有声明任何工具"}):G.map((d)=>e(R,{mono:!0,title:d.description,children:d.name},d.name))})]})})}var Ce=/^[A-Za-z0-9_-]{1,64}$/;function Q(i){return e("span",{className:"truncate text-xs text-faint",children:i.children})}function ge(i){let{pairs:P,onChange:S,InputComponent:H}=i,R=(g,p)=>S(P.map((M,D)=>D===g?{...M,...p}:M));return n("div",{className:"space-y-2",children:[n("div",{className:"flex min-h-7 items-center gap-2",children:[e("span",{className:"shrink-0 text-ui font-medium text-dim",children:i.label}),e(Q,{children:i.tip}),n("button",{type:"button",className:"ml-auto inline-flex h-7 shrink-0 cursor-pointer items-center gap-1 rounded-lg px-2 text-xs font-medium text-dim transition-colors hover:bg-raised hover:text-ink",onClick:()=>S([...P,{key:"",value:"",saved:!1}]),children:[e(ke,{className:"size-3.5"}),"添加"]})]}),P.map((g,p)=>n("div",{className:"flex min-w-0 items-center gap-1.5",children:[e(H,{"aria-label":`${i.keyLabel} ${p+1}`,placeholder:i.keyLabel,value:g.key,readOnly:g.saved,onChange:(M)=>R(p,{key:M.target.value}),className:"min-w-0 flex-[2] font-mono text-xs"}),e(H,{"aria-label":`${i.keyLabel} ${g.key||p+1} 的值`,type:"password",autoComplete:"off",placeholder:g.saved?"已保存,留空保持不变":"值",value:g.value,onChange:(M)=>R(p,{value:M.target.value}),className:"min-w-0 flex-[3] font-mono text-xs"}),e("button",{type:"button","aria-label":`删除 ${g.key||"该项"}`,className:"flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-lg text-faint transition-colors hover:bg-danger/10 hover:text-danger",onClick:()=>S(P.filter((M,D)=>D!==p)),children:e(ce,{className:"size-4"})})]},p))]})}function he(i){return Object.keys(i??{}).map((P)=>({key:P,value:"",saved:!0}))}function ve(i){let{Button:P,Segmented:S,Dialog:H,Form:R,Field:g,Input:p,Switch:M,style:D,useTheme:Z}=b();Z();let{existing:u}=i,[te,w]=a(u?.config.type??"local"),[ne,r]=a(u?.name??""),[j,N]=a(u?.config.type==="local"?mi(u.config.command):""),[G,se]=a(u?.config.type==="remote"?u.config.url:""),[J,z]=a(he(u?.config.type==="local"?u.config.environment:void 0)),[h,T]=a(he(u?.config.type==="remote"?u.config.headers:void 0)),v=u?.config.type==="remote"?u.config.oauth:void 0,[E,B]=a(Boolean(v)),[O,Y]=a(typeof v==="object"&&v.clientId?v.clientId:""),[ee,A]=a(""),[t,I]=a(typeof v==="object"&&v.scope?v.scope:""),[x,F]=a(u?.config.defer??"default"),[U,ie]=a(u?.config.timeout!==void 0?String(u.config.timeout):""),[_,ae]=a(u?.config.defer!==void 0||u?.config.timeout!==void 0),[re,V]=a(),[oe,le]=a(!1);async function d(c){c.preventDefault(),V(void 0);let f=ne.trim();if(!u&&!Ce.test(f)){V("名称只能包含英文字母、数字、下划线与中划线,长度 1-64");return}if(!u&&i.taken.includes(f)){V("同名服务器已存在");return}let K=U.trim()?Number.parseInt(U.trim(),10):void 0;if(K!==void 0&&(!Number.isFinite(K)||K<=0)){V("超时时间须为大于 0 的毫秒数");return}let k;if(te==="local"){let C=Yc(j.trim());if(!C.length){V("请输入启动命令");return}let W={};for(let q of J){let L=q.key.trim();if(!L)continue;if(!q.saved||q.value)W[L]=q.value}k={type:"local",command:C,environment:Object.keys(W).length?W:void 0,enabled:u?u.config.enabled:!0,defer:x==="default"?void 0:x,timeout:K}}else{let C=G.trim();try{let L=new URL(C);if(L.protocol!=="http:"&&L.protocol!=="https:")throw Error("bad protocol")}catch{V("请输入合法的 HTTP 或 HTTPS 地址");return}let W={};for(let L of h){let de=L.key.trim();if(!de)continue;if(!L.saved||L.value)W[de]=L.value}let q;if(E){let L=O.trim(),de=ee.trim(),ue=t.trim();if(L||de||ue)q={clientId:L||void 0,clientSecret:de||void 0,scope:ue||void 0};else q=!0}else q=!1;k={type:"remote",url:C,headers:Object.keys(W).length?W:void 0,oauth:q,enabled:u?u.config.enabled:!0,defer:x==="default"?void 0:x,timeout:K}}le(!0);try{let C=u?.name??f,W=u?u.projectID:i.projectID,q=W?`?projectID=${encodeURIComponent(W)}`:"";await i.connection.request(`/api/mcp/${encodeURIComponent(C)}${q}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(k)}),i.onSaved()}catch(C){V(C instanceof Error?C.message:"保存失败")}finally{le(!1)}}return e(H,{open:!0,onOpenChange:(c)=>{if(!c&&!oe)i.onClose()},title:u?`编辑 ${u.name}`:"添加 MCP 服务器",size:"lg",footer:n("div",{className:"flex w-full justify-end gap-2.5",children:[e(P,{type:"button",variant:"ghost",onClick:i.onClose,disabled:oe,className:"min-w-20",children:"取消"}),e(P,{type:"submit",form:"mcp-server-form",variant:"primary",disabled:oe,className:"min-w-24",children:oe?"保存中...":"保存"})]}),children:n(R,{id:"mcp-server-form",onSubmit:d,children:[e(S,{value:te,onChange:(c)=>w(c),className:"w-full [&>button]:flex-1",options:[{value:"local",label:"本地(标准输入输出)"},{value:"remote",label:"远程(HTTP / SSE)"}]}),!u&&e(g,{label:"名称",aside:e(Q,{children:"唯一标识,如 postgres"}),children:(c)=>e(p,{id:c,value:ne,onChange:(f)=>r(f.target.value),placeholder:"postgres",className:"font-mono text-xs"})}),te==="local"?n(m,{children:[e(g,{label:"启动命令",aside:e(Q,{children:"完整命令及参数"}),children:(c)=>e(p,{id:c,value:j,onChange:(f)=>N(f.target.value),placeholder:"npx -y @modelcontextprotocol/server-postgres ...",className:"font-mono text-xs"})}),e(ge,{label:"环境变量",tip:"启动进程时注入",keyLabel:"变量名",pairs:J,onChange:z,InputComponent:p})]}):n(m,{children:[e(g,{label:"服务地址",aside:e(Q,{children:"HTTP / HTTPS 端点"}),children:(c)=>e(p,{id:c,value:G,onChange:(f)=>se(f.target.value),placeholder:"https://example.com/mcp",className:"font-mono text-xs"})}),e(ge,{label:"请求头",tip:"随每次请求发送",keyLabel:"头字段",pairs:h,onChange:T,InputComponent:p}),n("div",{className:"flex items-center justify-between gap-4",children:[n("div",{className:"min-w-0",children:[e("span",{className:"block text-ui font-medium text-dim",children:"OAuth 2.0 认证"}),e("span",{className:"block truncate text-xs text-faint",children:"自动发现授权端点,使用 PKCE 并刷新令牌"})]}),e(M,{checked:E,onCheckedChange:B,label:"启用 OAuth 2.0"})]}),E&&n(m,{children:[e(g,{label:"Client ID",aside:e(Q,{children:"留空自动动态注册(DCR)"}),children:(c)=>e(p,{id:c,value:O,onChange:(f)=>Y(f.target.value),placeholder:"留空自动动态注册",className:"font-mono text-xs"})}),e(g,{label:"Client Secret",aside:e(Q,{children:"留空保持不变"}),children:(c)=>e(p,{id:c,type:"password",autoComplete:"off",value:ee,onChange:(f)=>A(f.target.value),placeholder:"••••••••",className:"font-mono text-xs"})}),e(g,{label:"Scope",aside:e(Q,{children:"选填授权范围"}),children:(c)=>e(p,{id:c,value:t,onChange:(f)=>I(f.target.value),placeholder:"repo read:org",className:"font-mono text-xs"})})]})]}),n("div",{className:"space-y-3 border-t border-line/60 pt-3",children:[n("button",{type:"button","aria-expanded":_,className:"flex w-full cursor-pointer items-center gap-1.5 text-ui font-medium text-dim transition-colors hover:text-ink",onClick:()=>ae(!_),children:[e(Ft,{className:`size-3.5 transition-transform ${_?"rotate-90":""}`}),"高级设置",e("span",{className:"truncate text-xs font-normal text-faint",children:"加载时机、超时"})]}),_&&n("div",{className:"grid grid-cols-2 gap-3 max-sm:grid-cols-1",children:[e(g,{label:"加载时机",aside:e(Q,{children:"延迟 = 按需加载"}),children:()=>e(S,{value:x,onChange:(c)=>F(c),className:"w-full [&>button]:flex-1",options:[{value:"default",label:"默认"},{value:"defer",label:"延迟"},{value:"always",label:"常驻"}]})}),e(g,{label:"超时(毫秒)",aside:e(Q,{children:"留空用默认"}),children:(c)=>e(p,{id:c,value:U,onChange:(f)=>ie(f.target.value),placeholder:"默认",className:"font-mono text-xs"})})]})]}),re&&n("div",{role:"alert",className:D("callout.base",D("callout.danger"),"px-3 py-2.5 text-xs"),children:[e(xe,{className:"mt-0.5 size-3.5 shrink-0"}),e("span",{className:"min-w-0 break-words",children:re})]})]})})}var X="global";function He({connection:i}){let{Button:P,Select:S,CatalogRow:H,style:R,useTheme:g}=b();g();let[p,M]=a(""),[D,Z]=a(),[u,te]=a([]),[w,ne]=a(X),[r,j]=a(),[N,G]=a(!1),[se,J]=a(),[z,h]=a(!1),T=o(!1),[v,E]=a(),B=o(0),O=y(async()=>{let t=++B.current;G(!0);try{let I=w===X?"":`?projectID=${encodeURIComponent(w)}`,[x,F]=await Promise.all([i.request(`/api/mcp${I}`),i.request("/api/mcp/projects")]);if(t!==B.current)return;if(Z(x),te(F),w!==X&&!F.some((U)=>U.id===w))ne(X);j(void 0)}catch(I){if(t===B.current)j(I instanceof Error?I.message:"读取失败")}finally{if(t===B.current)G(!1)}},[i,w]);s(()=>(O(),()=>{B.current++}),[O]);async function Y(t,I){if(T.current)return;T.current=!0,h(!0);let x=B.current;try{let F=t.projectID?`?projectID=${encodeURIComponent(t.projectID)}`:"",U=await i.request(`/api/mcp/${encodeURIComponent(t.name)}${F}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({...t.config,enabled:I})});if(x===B.current)Z((ie)=>ie?.map((_)=>_.name===U.name&&_.projectID===U.projectID?U:_))}finally{T.current=!1,h(!1)}}let ee=D?.filter((t)=>`${t.name} ${hi(t.config)}`.toLowerCase().includes(p.trim().toLowerCase())),A=D?.find((t)=>t.name===se);return n("div",{className:"min-w-0 space-y-6",children:[n("section",{className:"min-w-0",children:[n("div",{className:"mb-2.5 flex flex-wrap items-end justify-between gap-3 px-0.5",children:[n("div",{className:"min-w-0 flex-1 basis-48",children:[e("h2",{className:R("settings.groupTitle"),children:"MCP 服务器"}),e("p",{className:R("settings.groupDesc"),children:"外部工具与数据源管理"})]}),n("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[e(S,{value:w,disabled:N,onValueChange:(t)=>{J(void 0),E(void 0),Z(void 0),ne(t)},groups:[{options:[{value:X,label:"全局"}]},...wi(u)],className:"w-44"}),e(P,{variant:"ghost",disabled:N,onClick:O,className:"h-9 px-2.5 text-xs",children:e(ye,{className:`size-3.5 ${N?"animate-spin":""}`})}),n(P,{variant:"secondary",onClick:()=>E({}),className:"h-9 px-2.5 text-xs",children:[e(ke,{className:"size-3.5 mr-1"}),"添加服务器"]})]})]}),r&&n("div",{role:"alert",className:R("callout.base",R("callout.danger"),"mb-3 flex-wrap items-center justify-between"),children:[n("p",{className:"min-w-0 flex-1 break-words text-sm text-danger",children:["无法读取 MCP 服务器:",r]}),e(P,{disabled:N,onClick:O,children:"重试"})]}),e(ki,{label:"搜索 MCP 服务器",placeholder:"搜索服务器",value:p,onChange:M}),e("div",{className:R("settings.groupBox"),children:!D?e(Ci,{}):ee?.length===0?e("p",{className:"p-4 text-sm text-dim",children:"没有匹配的 MCP 服务器"}):e("ul",{className:"divide-y divide-line",children:ee?.map((t)=>{let I=t.config.enabled===!1,x=t.projectID!==(w===X?null:w);return e("li",{children:e(H,{name:t.name,selectLabel:`查看 ${t.name}`,onSelect:()=>J(t.name),title:x?"继承的全局配置,请切换到全局范围编辑":void 0,description:e("span",{className:"font-mono text-2xs",children:hi(t.config)}),icon:t.config.type==="local"?e(Ht,{}):e(Be,{}),inactive:I,aside:n(m,{children:[e("span",{className:R("control.badge"),children:fi(t.scope)}),e(ps,{info:t})]}),toggle:x?void 0:{checked:!I,label:`启用服务器 ${t.name}`,disabled:z||N,onCheckedChange:(F)=>Y(t,F)}})},t.name)})})})]}),A&&!v&&e(fe,{connection:i,info:A,toggling:z,onToggle:(t)=>Y(A,t),projectID:w===X?void 0:w,onClose:()=>J(void 0),onEdit:()=>E({info:A}),onChanged:(t)=>t?Z((I)=>I?.map((x)=>x.name===t.name?t:x)):O()},`${A.projectID}:${A.name}`),v&&e(ve,{connection:i,projectID:w===X?void 0:w,existing:v.info,taken:(D??[]).filter((t)=>t.scope===(w===X?"global":"project")).map((t)=>t.name),onClose:()=>E(void 0),onSaved:()=>{E(void 0),O()}})]})}export{He as McpSection};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Bs}from"./chunk-508cpafz.js";export{Bs as createPieServices};
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{ms,Er,Yi,fs,Zr,hs,gi}from"./chunk-hxsrph02.js";var S=class extends Error{constructor(t){super(t);this.name="ShikiError"}};function tn(t){return Ne(t)}function Ne(t){if(Array.isArray(t))return nn(t);if(t instanceof RegExp)return t;if(typeof t==="object")return rn(t);return t}function nn(t){let e=[];for(let n=0,r=t.length;n<r;n++)e[n]=Ne(t[n]);return e}function rn(t){let e={};for(let n in t)e[n]=Ne(t[n]);return e}function Ve(t,...e){return e.forEach((n)=>{for(let r in n)t[r]=n[r]}),t}function Ye(t){let e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");if(e===0)return t;else if(~e===t.length-1)return Ye(t.substring(0,t.length-1));else return t.substr(~e+1)}var ye=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,J=class{static hasCaptures(t){if(t===null)return!1;return ye.lastIndex=0,ye.test(t)}static replaceCaptures(t,e,n){return t.replace(ye,(r,s,i,o)=>{let a=n[parseInt(s||i,10)];if(a){let c=e.substring(a.start,a.end);while(c[0]===".")c=c.substring(1);switch(o){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return r})}};function Je(t,e){if(t<e)return-1;if(t>e)return 1;return 0}function Qe(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,r=e.length;if(n===r){for(let s=0;s<n;s++){let i=Je(t[s],e[s]);if(i!==0)return i}return 0}return n-r}function Fe(t){if(/^#[0-9a-f]{6}$/i.test(t))return!0;if(/^#[0-9a-f]{8}$/i.test(t))return!0;if(/^#[0-9a-f]{3}$/i.test(t))return!0;if(/^#[0-9a-f]{4}$/i.test(t))return!0;return!1}function Xe(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Ze=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);let e=this.fn(t);return this.cache.set(t,e),e}},M=class{constructor(t,e,n){this._colorMap=t,this._defaults=e,this._root=n}static createFromRawTheme(t,e){return this.createFromParsedTheme(an(t),e)}static createFromParsedTheme(t,e){return ln(t,e)}_cachedMatchRoot=new Ze((t)=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;let e=t.scopeName,r=this._cachedMatchRoot.get(e).find((s)=>sn(t.parent,s.parentScopes));if(!r)return null;return new et(r.fontStyle,r.foreground,r.background)}},be=class t{constructor(e,n){this.parent=e,this.scopeName=n}static push(e,n){for(let r of n)e=new t(e,r);return e}static from(...e){let n=null;for(let r=0;r<e.length;r++)n=new t(n,e[r]);return n}push(e){return new t(this,e)}getSegments(){let e=this,n=[];while(e)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){if(this===e)return!0;if(this.parent===null)return!1;return this.parent.extends(e)}getExtensionIfDefined(e){let n=[],r=this;while(r&&r!==e)n.push(r.scopeName),r=r.parent;return r===e?n.reverse():void 0}};function sn(t,e){if(e.length===0)return!0;for(let n=0;n<e.length;n++){let r=e[n],s=!1;if(r===">"){if(n===e.length-1)return!1;r=e[++n],s=!0}while(t){if(on(t.scopeName,r))break;if(s)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function on(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var et=class{constructor(t,e,n){this.fontStyle=t,this.foregroundId=e,this.backgroundId=n}};function an(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],r=0;for(let s=0,i=e.length;s<i;s++){let o=e[s];if(!o.settings)continue;let a;if(typeof o.scope==="string"){let h=o.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),a=h.split(",")}else if(Array.isArray(o.scope))a=o.scope;else a=[""];let c=-1;if(typeof o.settings.fontStyle==="string"){c=0;let h=o.settings.fontStyle.split(" ");for(let d=0,f=h.length;d<f;d++)switch(h[d]){case"italic":c=c|1;break;case"bold":c=c|2;break;case"underline":c=c|4;break;case"strikethrough":c=c|8;break}}let l=null;if(typeof o.settings.foreground==="string"&&Fe(o.settings.foreground))l=o.settings.foreground;let u=null;if(typeof o.settings.background==="string"&&Fe(o.settings.background))u=o.settings.background;for(let h=0,d=a.length;h<d;h++){let m=a[h].trim().split(" "),y=m[m.length-1],_=null;if(m.length>1)_=m.slice(0,m.length-1),_.reverse();n[r++]=new cn(y,_,s,c,l,u)}}return n}var cn=class{constructor(t,e,n,r,s,i){this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=r,this.foreground=s,this.background=i}},k=((t)=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(k||{});function ln(t,e){t.sort((c,l)=>{let u=Je(c.scope,l.scope);if(u!==0)return u;if(u=Qe(c.parentScopes,l.parentScopes),u!==0)return u;return c.index-l.index});let n=0,r="#000000",s="#ffffff";while(t.length>=1&&t[0].scope===""){let c=t.shift();if(c.fontStyle!==-1)n=c.fontStyle;if(c.foreground!==null)r=c.foreground;if(c.background!==null)s=c.background}let i=new un(e),o=new et(n,i.getId(r),i.getId(s)),a=new fn(new we(0,null,-1,0,0),[]);for(let c=0,l=t.length;c<l;c++){let u=t[c];a.insert(0,u.scope,u.parentScopes,u.fontStyle,i.getId(u.foreground),i.getId(u.background))}return new M(i,o,a)}var un=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,n=t.length;e<n;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},hn=Object.freeze([]),we=class t{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,n,r,s,i){this.scopeDepth=e,this.parentScopes=n||hn,this.fontStyle=r,this.foreground=s,this.background=i}clone(){return new t(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let r=0,s=e.length;r<s;r++)n[r]=e[r].clone();return n}acceptOverwrite(e,n,r,s){if(this.scopeDepth>e)console.log("how did this happen?");else this.scopeDepth=e;if(n!==-1)this.fontStyle=n;if(r!==0)this.foreground=r;if(s!==0)this.background=s}},fn=class t{constructor(e,n=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(e,n){if(e.scopeDepth!==n.scopeDepth)return n.scopeDepth-e.scopeDepth;let r=0,s=0;while(!0){if(e.parentScopes[r]===">")r++;if(n.parentScopes[s]===">")s++;if(r>=e.parentScopes.length||s>=n.parentScopes.length)break;let i=n.parentScopes[s].length-e.parentScopes[r].length;if(i!==0)return i;r++,s++}return n.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),s,i;if(r===-1)s=e,i="";else s=e.substring(0,r),i=e.substring(r+1);if(this._children.hasOwnProperty(s))return this._children[s].match(i)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(t._cmpBySpecificity),n}insert(e,n,r,s,i,o){if(n===""){this._doInsertHere(e,r,s,i,o);return}let a=n.indexOf("."),c,l;if(a===-1)c=n,l="";else c=n.substring(0,a),l=n.substring(a+1);let u;if(this._children.hasOwnProperty(c))u=this._children[c];else u=new t(this._mainRule.clone(),we.cloneArr(this._rulesWithParentScopes)),this._children[c]=u;u.insert(e+1,l,r,s,i,o)}_doInsertHere(e,n,r,s,i){if(n===null){this._mainRule.acceptOverwrite(e,r,s,i);return}for(let o=0,a=this._rulesWithParentScopes.length;o<a;o++){let c=this._rulesWithParentScopes[o];if(Qe(c.parentScopes,n)===0){c.acceptOverwrite(e,r,s,i);return}}if(r===-1)r=this._mainRule.fontStyle;if(s===0)s=this._mainRule.foreground;if(i===0)i=this._mainRule.background;this._rulesWithParentScopes.push(new we(e,n,r,s,i))}},x=class t{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){let n=t.getLanguageId(e),r=t.getTokenType(e),s=t.getFontStyle(e),i=t.getForeground(e),o=t.getBackground(e);console.log({languageId:n,tokenType:r,fontStyle:s,foreground:i,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,n,r,s,i,o,a){let c=t.getLanguageId(e),l=t.getTokenType(e),u=t.containsBalancedBrackets(e)?1:0,h=t.getFontStyle(e),d=t.getForeground(e),f=t.getBackground(e);if(n!==0)c=n;if(r!==8)l=mn(r);if(s!==null)u=s?1:0;if(i!==-1)h=i;if(o!==0)d=o;if(a!==0)f=a;return(c<<0|l<<8|u<<10|h<<11|d<<15|f<<24)>>>0}};function dn(t){return t}function mn(t){return t}function X(t,e){let n=[],r=gn(t),s=r.next();while(s!==null){let c=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":c=1;break;case"L":c=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=r.next()}let l=o();if(n.push({matcher:l,priority:c}),s!==",")break;s=r.next()}return n;function i(){if(s==="-"){s=r.next();let c=i();return(l)=>!!c&&!c(l)}if(s==="("){s=r.next();let c=a();if(s===")")s=r.next();return c}if(De(s)){let c=[];do c.push(s),s=r.next();while(De(s));return(l)=>e(c,l)}return null}function o(){let c=[],l=i();while(l)c.push(l),l=i();return(u)=>c.every((h)=>h(u))}function a(){let c=[],l=o();while(l){if(c.push(l),s==="|"||s===",")do s=r.next();while(s==="|"||s===",");else break;l=o()}return(u)=>c.some((h)=>h(u))}}function De(t){return!!t&&!!t.match(/[\w\.:]+/)}function gn(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;let r=n[0];return n=e.exec(t),r}}}function tt(t){if(typeof t.dispose==="function")t.dispose()}var j=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},pn=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},_n=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){let e=t.toKey();if(this._seenReferenceKeys.has(e))return;this._seenReferenceKeys.add(e),this._references.push(t)}},yn=class{constructor(t,e){this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new j(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let t=this.Q;this.Q=[];let e=new _n;for(let n of t)bn(n,this.initialScopeName,this.repo,e);for(let n of e.references)if(n instanceof j){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName))continue;if(this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function bn(t,e,n,r){let s=n.lookup(t.scopeName);if(!s){if(t.scopeName===e)throw Error(`No grammar provided for <${e}>`);return}let i=n.lookup(e);if(t instanceof j)Q({baseGrammar:i,selfGrammar:s},r);else Ce(t.ruleName,{baseGrammar:i,selfGrammar:s,repository:s.repository},r);let o=n.injections(t.scopeName);if(o)for(let a of o)r.add(new j(a))}function Ce(t,e,n){if(e.repository&&e.repository[t]){let r=e.repository[t];Z([r],e,n)}}function Q(t,e){if(t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns))Z(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e);if(t.selfGrammar.injections)Z(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function Z(t,e,n){for(let r of t){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let s=r.repository?Ve({},e.repository,r.repository):e.repository;if(Array.isArray(r.patterns))Z(r.patterns,{...e,repository:s},n);let i=r.include;if(!i)continue;let o=nt(i);switch(o.kind){case 0:Q({...e,selfGrammar:e.baseGrammar},n);break;case 1:Q(e,n);break;case 2:Ce(o.ruleName,{...e,repository:s},n);break;case 3:case 4:let a=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(a){let c={baseGrammar:e.baseGrammar,selfGrammar:a,repository:s};if(o.kind===4)Ce(o.ruleName,c,n);else Q(c,n)}else if(o.kind===4)n.add(new pn(o.scopeName,o.ruleName));else n.add(new j(o.scopeName));break}}}var Sn=class{kind=0},wn=class{kind=1},Cn=class{constructor(t){this.ruleName=t}kind=2},kn=class{constructor(t){this.scopeName=t}kind=3},Rn=class{constructor(t,e){this.scopeName=t,this.ruleName=e}kind=4};function nt(t){if(t==="$base")return new Sn;else if(t==="$self")return new wn;let e=t.indexOf("#");if(e===-1)return new kn(t);else if(e===0)return new Cn(t.substring(1));else{let n=t.substring(0,e),r=t.substring(e+1);return new Rn(n,r)}}var Nn=/\\(\d+)/,We=/\\(\d+)/g,Cs=Symbol("RuleId"),Tn=-1,rt=-2;function st(t){return t}function it(t){return t}var W=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,e,n,r){this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=J.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=J.hasCaptures(this._contentName)}get debugName(){let t=this.$location?`${Ye(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){if(!this._nameIsCapturing||this._name===null||t===null||e===null)return this._name;return J.replaceCaptures(this._name,t,e)}getContentName(t,e){if(!this._contentNameIsCapturing||this._contentName===null)return this._contentName;return J.replaceCaptures(this._contentName,t,e)}},vn=class extends W{retokenizeCapturedWithRuleId;constructor(t,e,n,r,s){super(t,e,n,r);this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(t,e){throw Error("Not supported!")}compile(t,e){throw Error("Not supported!")}compileAG(t,e,n,r){throw Error("Not supported!")}},An=class extends W{_match;captures;_cachedCompiledPatterns;constructor(t,e,n,r,s){super(t,e,n,null);this._match=new F(r,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){if(this._cachedCompiledPatterns)this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,e){e.push(this._match)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns)this._cachedCompiledPatterns=new D,this.collectPatterns(t,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}},He=class extends W{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,r,s){super(t,e,n,r);this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){if(this._cachedCompiledPatterns)this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null}collectPatterns(t,e){for(let n of this.patterns)t.getRule(n).collectPatterns(t,e)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns)this._cachedCompiledPatterns=new D,this.collectPatterns(t,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}},ke=class extends W{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,r,s,i,o,a,c,l){super(t,e,n,r);this._begin=new F(s,this.id),this.beginCaptures=i,this._end=new F(o?o:"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){if(this._cachedCompiledPatterns)this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,r)}_getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new D;for(let n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns);if(this.applyEndPatternLast)this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end);else this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}if(this._end.hasBackReferences)if(this.applyEndPatternLast)this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e);else this._cachedCompiledPatterns.setSource(0,e);return this._cachedCompiledPatterns}},ee=class extends W{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,e,n,r,s,i,o,a,c){super(t,e,n,r);this._begin=new F(s,this.id),this.beginCaptures=i,this.whileCaptures=a,this._while=new F(o,rt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){if(this._cachedCompiledPatterns)this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null;if(this._cachedCompiledWhilePatterns)this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new D;for(let e of this.patterns)t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t)}compileWhileAG(t,e,n,r){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,r)}_getCachedCompiledWhilePatterns(t,e){if(!this._cachedCompiledWhilePatterns)this._cachedCompiledWhilePatterns=new D,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while);if(this._while.hasBackReferences)this._cachedCompiledWhilePatterns.setSource(0,e?e:"");return this._cachedCompiledWhilePatterns}},ot=class t{static createCaptureRule(e,n,r,s,i){return e.registerRule((o)=>new vn(n,o,r,s,i))}static getCompiledRuleId(e,n,r){if(!e.id)n.registerRule((s)=>{if(e.id=s,e.match)return new An(e.$vscodeTextmateLocation,e.id,e.name,e.match,t._compileCaptures(e.captures,n,r));if(typeof e.begin>"u"){if(e.repository)r=Ve({},r,e.repository);let i=e.patterns;if(typeof i>"u"&&e.include)i=[{include:e.include}];return new He(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,t._compilePatterns(i,n,r))}if(e.while)return new ee(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,r),e.while,t._compileCaptures(e.whileCaptures||e.captures,n,r),t._compilePatterns(e.patterns,n,r));return new ke(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,r),e.end,t._compileCaptures(e.endCaptures||e.captures,n,r),e.applyEndPatternLast,t._compilePatterns(e.patterns,n,r))});return e.id}static _compileCaptures(e,n,r){let s=[];if(e){let i=0;for(let o in e){if(o==="$vscodeTextmateLocation")continue;let a=parseInt(o,10);if(a>i)i=a}for(let o=0;o<=i;o++)s[o]=null;for(let o in e){if(o==="$vscodeTextmateLocation")continue;let a=parseInt(o,10),c=0;if(e[o].patterns)c=t.getCompiledRuleId(e[o],n,r);s[a]=t.createCaptureRule(n,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,c)}}return s}static _compilePatterns(e,n,r){let s=[];if(e)for(let i=0,o=e.length;i<o;i++){let a=e[i],c=-1;if(a.include){let l=nt(a.include);switch(l.kind){case 0:case 1:c=t.getCompiledRuleId(r[a.include],n,r);break;case 2:let u=r[l.ruleName];if(u)c=t.getCompiledRuleId(u,n,r);break;case 3:case 4:let h=l.scopeName,d=l.kind===4?l.ruleName:null,f=n.getExternalGrammar(h,r);if(f)if(d){let m=f.repository[d];if(m)c=t.getCompiledRuleId(m,n,f.repository)}else c=t.getCompiledRuleId(f.repository.$self,n,f.repository);break}}else c=t.getCompiledRuleId(a,n,r);if(c!==-1){let l=n.getRule(c),u=!1;if(l instanceof He||l instanceof ke||l instanceof ee){if(l.hasMissingPatterns&&l.patterns.length===0)u=!0}if(u)continue;s.push(c)}}return{patterns:s,hasMissingPatterns:(e?e.length:0)!==s.length}}},F=class t{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,n){if(e&&typeof e==="string"){let r=e.length,s=0,i=[],o=!1;for(let a=0;a<r;a++)if(e.charAt(a)==="\\"){if(a+1<r){let l=e.charAt(a+1);if(l==="z")i.push(e.substring(s,a)),i.push("$(?!\\n)(?<!\\n)"),s=a+2;else if(l==="A"||l==="G")o=!0;a++}}if(this.hasAnchor=o,s===0)this.source=e;else i.push(e.substring(s,r)),this.source=i.join("")}else this.hasAnchor=!1,this.source=e;if(this.hasAnchor)this._anchorCache=this._buildAnchorCache();else this._anchorCache=null;if(this.ruleId=n,typeof this.source==="string")this.hasBackReferences=Nn.test(this.source);else this.hasBackReferences=!1}clone(){return new t(this.source,this.ruleId)}setSource(e){if(this.source===e)return;if(this.source=e,this.hasAnchor)this._anchorCache=this._buildAnchorCache()}resolveBackReferences(e,n){if(typeof this.source!=="string")throw Error("This method should only be called if the source is a string");let r=n.map((s)=>e.substring(s.start,s.end));return We.lastIndex=0,this.source.replace(We,(s,i)=>Xe(r[parseInt(i,10)]||""))}_buildAnchorCache(){if(typeof this.source!=="string")throw Error("This method should only be called if the source is a string");let e=[],n=[],r=[],s=[],i,o,a,c;for(i=0,o=this.source.length;i<o;i++)if(a=this.source.charAt(i),e[i]=a,n[i]=a,r[i]=a,s[i]=a,a==="\\"){if(i+1<o){if(c=this.source.charAt(i+1),c==="A")e[i+1]="",n[i+1]="",r[i+1]="A",s[i+1]="A";else if(c==="G")e[i+1]="",n[i+1]="G",r[i+1]="",s[i+1]="G";else e[i+1]=c,n[i+1]=c,r[i+1]=c,s[i+1]=c;i++}}return{A0_G0:e.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:s.join("")}}resolveAnchors(e,n){if(!this.hasAnchor||!this._anchorCache||typeof this.source!=="string")return this.source;if(e)if(n)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;else if(n)return this._anchorCache.A0_G1;else return this._anchorCache.A0_G0}},D=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){if(this._cached)this._cached.dispose(),this._cached=null;if(this._anchorCache.A0_G0)this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null;if(this._anchorCache.A0_G1)this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null;if(this._anchorCache.A1_G0)this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null;if(this._anchorCache.A1_G1)this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){if(this._items[t].source!==e)this._disposeCaches(),this._items[t].setSource(e)}compile(t){if(!this._cached){let e=this._items.map((n)=>n.source);this._cached=new qe(t,e,this._items.map((n)=>n.ruleId))}return this._cached}compileAG(t,e,n){if(!this._hasAnchors)return this.compile(t);else if(e)if(n){if(!this._anchorCache.A1_G1)this._anchorCache.A1_G1=this._resolveAnchors(t,e,n);return this._anchorCache.A1_G1}else{if(!this._anchorCache.A1_G0)this._anchorCache.A1_G0=this._resolveAnchors(t,e,n);return this._anchorCache.A1_G0}else if(n){if(!this._anchorCache.A0_G1)this._anchorCache.A0_G1=this._resolveAnchors(t,e,n);return this._anchorCache.A0_G1}else{if(!this._anchorCache.A0_G0)this._anchorCache.A0_G0=this._resolveAnchors(t,e,n);return this._anchorCache.A0_G0}}_resolveAnchors(t,e,n){let r=this._items.map((s)=>s.resolveAnchors(e,n));return new qe(t,r,this._items.map((s)=>s.ruleId))}},qe=class{constructor(t,e,n){this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e)}scanner;dispose(){if(typeof this.scanner.dispose==="function")this.scanner.dispose()}toString(){let t=[];for(let e=0,n=this.rules.length;e<n;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
|
|
2
|
+
`)}findNextMatchSync(t,e,n){let r=this.scanner.findNextMatchSync(t,e,n);if(!r)return null;return{ruleId:this.rules[r.index],captureIndices:r.captureIndices}}},Se=class{constructor(t,e){this.languageId=t,this.tokenType=e}},En=class t{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,n){this._defaultAttributes=new Se(e,8),this._embeddedLanguagesMatcher=new xn(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){if(e===null)return t._NULL_SCOPE_METADATA;return this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new Se(0,0);_getBasicScopeAttributes=new Ze((e)=>{let n=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new Se(n,r)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){let n=e.match(t.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},xn=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);let e=t.map(([n,r])=>Xe(n));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;let e=t.match(this.scopesRegExp);if(!e)return;return this.values.get(e[1])}},ks={InDebugMode:typeof process<"u"&&!!process.env.VSCODE_TEXTMATE_DEBUG},at=!1,ze=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function ct(t,e,n,r,s,i,o,a){let c=e.content.length,l=!1,u=-1;if(o){let f=In(t,e,n,r,s,i);s=f.stack,r=f.linePos,n=f.isFirstLine,u=f.anchorPosition}let h=Date.now();while(!l){if(a!==0){if(Date.now()-h>a)return new ze(s,!0)}d()}return new ze(s,!1);function d(){let f=Ln(t,e,n,r,s,u);if(!f){i.produce(s,c),l=!0;return}let{captureIndices:m,matchedRuleId:y}=f,_=m&&m.length>0?m[0].end>r:!1;if(y===Tn){let p=s.getRule(t);i.produce(s,m[0].start),s=s.withContentNameScopesList(s.nameScopesList),B(t,e,n,s,i,p.endCaptures,m),i.produce(s,m[0].end);let g=s;if(s=s.parent,u=g.getAnchorPos(),!_&&g.getEnterPos()===r){s=g,i.produce(s,c),l=!0;return}}else{let p=t.getRule(y);i.produce(s,m[0].start);let g=s,b=p.getName(e.content,m),C=s.contentNameScopesList.pushAttributed(b,t);if(s=s.push(y,r,u,m[0].end===c,null,C,C),p instanceof ke){let R=p;B(t,e,n,s,i,R.beginCaptures,m),i.produce(s,m[0].end),u=m[0].end;let N=R.getContentName(e.content,m),E=C.pushAttributed(N,t);if(s=s.withContentNameScopesList(E),R.endHasBackReferences)s=s.withEndRule(R.getEndWithResolvedBackReferences(e.content,m));if(!_&&g.hasSameRuleAs(s)){s=s.pop(),i.produce(s,c),l=!0;return}}else if(p instanceof ee){let R=p;B(t,e,n,s,i,R.beginCaptures,m),i.produce(s,m[0].end),u=m[0].end;let N=R.getContentName(e.content,m),E=C.pushAttributed(N,t);if(s=s.withContentNameScopesList(E),R.whileHasBackReferences)s=s.withEndRule(R.getWhileWithResolvedBackReferences(e.content,m));if(!_&&g.hasSameRuleAs(s)){s=s.pop(),i.produce(s,c),l=!0;return}}else if(B(t,e,n,s,i,p.captures,m),i.produce(s,m[0].end),s=s.pop(),!_){s=s.safePop(),i.produce(s,c),l=!0;return}}if(m[0].end>r)r=m[0].end,n=!1}}function In(t,e,n,r,s,i){let o=s.beginRuleCapturedEOL?0:-1,a=[];for(let c=s;c;c=c.pop()){let l=c.getRule(t);if(l instanceof ee)a.push({rule:l,stack:c})}for(let c=a.pop();c;c=a.pop()){let{ruleScanner:l,findOptions:u}=Bn(c.rule,t,c.stack.endRule,n,r===o),h=l.findNextMatchSync(e,r,u);if(h){if(h.ruleId!==rt){s=c.stack.pop();break}if(h.captureIndices&&h.captureIndices.length){if(i.produce(c.stack,h.captureIndices[0].start),B(t,e,n,c.stack,i,c.rule.whileCaptures,h.captureIndices),i.produce(c.stack,h.captureIndices[0].end),o=h.captureIndices[0].end,h.captureIndices[0].end>r)r=h.captureIndices[0].end,n=!1}}else{s=c.stack.pop();break}}return{stack:s,linePos:r,anchorPosition:o,isFirstLine:n}}function Ln(t,e,n,r,s,i){let o=Pn(t,e,n,r,s,i),a=t.getInjections();if(a.length===0)return o;let c=Gn(a,t,e,n,r,s,i);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;if(u<l||c.priorityMatch&&u===l)return c;return o}function Pn(t,e,n,r,s,i){let o=s.getRule(t),{ruleScanner:a,findOptions:c}=lt(o,t,s.endRule,n,r===i),l=a.findNextMatchSync(e,r,c);if(l)return{captureIndices:l.captureIndices,matchedRuleId:l.ruleId};return null}function Gn(t,e,n,r,s,i,o){let a=Number.MAX_VALUE,c=null,l,u=0,h=i.contentNameScopesList.getScopeNames();for(let d=0,f=t.length;d<f;d++){let m=t[d];if(!m.matcher(h))continue;let y=e.getRule(m.ruleId),{ruleScanner:_,findOptions:p}=lt(y,e,null,r,s===o),g=_.findNextMatchSync(n,s,p);if(!g)continue;let b=g.captureIndices[0].start;if(b>=a)continue;if(a=b,c=g.captureIndices,l=g.ruleId,u=m.priority,a===s)break}if(c)return{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l};return null}function lt(t,e,n,r,s){if(at){let o=t.compile(e,n),a=ut(r,s);return{ruleScanner:o,findOptions:a}}return{ruleScanner:t.compileAG(e,n,r,s),findOptions:0}}function Bn(t,e,n,r,s){if(at){let o=t.compileWhile(e,n),a=ut(r,s);return{ruleScanner:o,findOptions:a}}return{ruleScanner:t.compileWhileAG(e,n,r,s),findOptions:0}}function ut(t,e){let n=0;if(!t)n|=1;if(!e)n|=4;return n}function B(t,e,n,r,s,i,o){if(i.length===0)return;let a=e.content,c=Math.min(i.length,o.length),l=[],u=o[0].end;for(let h=0;h<c;h++){let d=i[h];if(d===null)continue;let f=o[h];if(f.length===0)continue;if(f.start>u)break;while(l.length>0&&l[l.length-1].endPos<=f.start)s.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0)s.produceFromScopes(l[l.length-1].scopes,f.start);else s.produce(r,f.start);if(d.retokenizeCapturedWithRuleId){let y=d.getName(a,o),_=r.contentNameScopesList.pushAttributed(y,t),p=d.getContentName(a,o),g=_.pushAttributed(p,t),b=r.push(d.retokenizeCapturedWithRuleId,f.start,-1,!1,null,_,g),C=t.createOnigString(a.substring(0,f.end));ct(t,C,n&&f.start===0,f.start,b,s,!1,0),tt(C);continue}let m=d.getName(a,o);if(m!==null){let _=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(m,t);l.push(new On(_,f.end))}}while(l.length>0)s.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var On=class{scopes;endPos;constructor(t,e){this.scopes=t,this.endPos=e}};function $n(t,e,n,r,s,i,o,a){return new jn(t,e,n,r,s,i,o,a)}function Ue(t,e,n,r,s){let i=X(e,te),o=ot.getCompiledRuleId(n,r,s.repository);for(let a of i)t.push({debugSelector:e,matcher:a.matcher,ruleId:o,grammar:s,priority:a.priority})}function te(t,e){if(e.length<t.length)return!1;let n=0;return t.every((r)=>{for(let s=n;s<e.length;s++)if(Mn(e[s],r))return n=s+1,!0;return!1})}function Mn(t,e){if(!t)return!1;if(t===e)return!0;let n=e.length;return t.length>n&&t.substr(0,n)===e&&t[n]==="."}var jn=class{constructor(t,e,n,r,s,i,o,a){if(this._rootScopeName=t,this.balancedBracketSelectors=i,this._onigLib=a,this._basicScopeAttributesProvider=new En(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=Ke(e,null),this._injections=null,this._tokenTypeMatchers=[],s)for(let c of Object.keys(s)){let l=X(c,te);for(let u of l)this._tokenTypeMatchers.push({matcher:u.matcher,type:s[c]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let t of this._ruleId2desc)if(t)t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){let t={lookup:(s)=>{if(s===this._rootScopeName)return this._grammar;return this.getExternalGrammar(s)},injections:(s)=>this._grammarRepository.injections(s)},e=[],n=this._rootScopeName,r=t.lookup(n);if(r){let s=r.injections;if(s)for(let o in s)Ue(e,o,s[o],this,r);let i=this._grammarRepository.injections(n);if(i)i.forEach((o)=>{let a=this.getExternalGrammar(o);if(a){let c=a.injectionSelector;if(c)Ue(e,c,a,this,a)}})}return e.sort((s,i)=>s.priority-i.priority),e}getInjections(){if(this._injections===null)this._injections=this._collectInjections();return this._injections}registerRule(t){let e=++this._lastRuleId,n=t(st(e));return this._ruleId2desc[e]=n,n}getRule(t){return this._ruleId2desc[it(t)]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];else if(this._grammarRepository){let n=this._grammarRepository.lookup(t);if(n)return this._includedGrammars[t]=Ke(n,e&&e.$base),this._includedGrammars[t]}return}tokenizeLine(t,e,n=0){let r=this._tokenize(t,e,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(t,e,n=0){let r=this._tokenize(t,e,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(t,e,n,r){if(this._rootId===-1)this._rootId=ot.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections();let s;if(!e||e===Re.NULL){s=!0;let l=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),h=x.set(0,l.languageId,l.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),d=this.getRule(this._rootId).getName(null,null),f;if(d)f=O.createRootAndLookUpScopeName(d,h,this);else f=O.createRoot("unknown",h);e=new Re(null,this._rootId,-1,-1,!1,null,f,f)}else s=!1,e.reset();t=t+`
|
|
3
|
+
`;let i=this.createOnigString(t),o=i.content.length,a=new Dn(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),c=ct(this,i,s,0,e,a,!0,r);return tt(i),{lineLength:o,lineTokens:a,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function Ke(t,e){return t=tn(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}var O=class t{constructor(e,n,r){this.parent=e,this.scopePath=n,this.tokenAttributes=r}static fromExtension(e,n){let r=e,s=e?.scopePath??null;for(let i of n)s=be.push(s,i.scopeNames),r=new t(r,s,i.encodedTokenAttributes);return r}static createRoot(e,n){return new t(null,new be(null,e),n)}static createRootAndLookUpScopeName(e,n,r){let s=r.getMetadataForScope(e),i=new be(null,e),o=r.themeProvider.themeMatch(i),a=t.mergeAttributes(n,s,o);return new t(null,i,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return t.equals(this,e)}static equals(e,n){do{if(e===n)return!0;if(!e&&!n)return!0;if(!e||!n)return!1;if(e.scopeName!==n.scopeName||e.tokenAttributes!==n.tokenAttributes)return!1;e=e.parent,n=n.parent}while(!0)}static mergeAttributes(e,n,r){let s=-1,i=0,o=0;if(r!==null)s=r.fontStyle,i=r.foregroundId,o=r.backgroundId;return x.set(e,n.languageId,n.tokenType,null,s,i,o)}pushAttributed(e,n){if(e===null)return this;if(e.indexOf(" ")===-1)return t._pushAttributed(this,e,n);let r=e.split(/ /g),s=this;for(let i of r)s=t._pushAttributed(s,i,n);return s}static _pushAttributed(e,n,r){let s=r.getMetadataForScope(n),i=e.scopePath.push(n),o=r.themeProvider.themeMatch(i),a=t.mergeAttributes(e.tokenAttributes,s,o);return new t(e,i,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let n=[],r=this;while(r&&r!==e)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?n.reverse():void 0}},Re=class t{constructor(e,n,r,s,i,o,a,c){this.parent=e,this.ruleId=n,this.beginRuleCapturedEOL=i,this.endRule=o,this.nameScopesList=a,this.contentNameScopesList=c,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=s}_stackElementBrand=void 0;static NULL=new t(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){if(e===null)return!1;return t._equals(this,e)}static _equals(e,n){if(e===n)return!0;if(!this._structuralEquals(e,n))return!1;return O.equals(e.contentNameScopesList,n.contentNameScopesList)}static _structuralEquals(e,n){do{if(e===n)return!0;if(!e&&!n)return!0;if(!e||!n)return!1;if(e.depth!==n.depth||e.ruleId!==n.ruleId||e.endRule!==n.endRule)return!1;e=e.parent,n=n.parent}while(!0)}clone(){return this}static _reset(e){while(e)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){t._reset(this)}pop(){return this.parent}safePop(){if(this.parent)return this.parent;return this}push(e,n,r,s,i,o,a){return new t(this,e,n,r,s,i,o,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,n){if(this.parent)n=this.parent._writeString(e,n);return e[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(e){if(this.contentNameScopesList===e)return this;return this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){if(this.endRule===e)return this;return new t(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let n=this;while(n&&n._enterPos===e._enterPos){if(n.ruleId===e.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:it(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,n){let r=O.fromExtension(e?.nameScopesList??null,n.nameScopesList);return new t(e,st(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,O.fromExtension(r,n.contentNameScopesList))}},Fn=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,e){this.balancedBracketScopes=t.flatMap((n)=>{if(n==="*")return this.allowAny=!0,[];return X(n,te).map((r)=>r.matcher)}),this.unbalancedBracketScopes=e.flatMap((n)=>X(n,te).map((r)=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(let e of this.unbalancedBracketScopes)if(e(t))return!1;for(let e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},Dn=class{constructor(t,e,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let r=t?.tokenAttributes??0,s=!1;if(this.balancedBracketSelectors?.matchesAlways)s=!0;if(this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let i=t?.getScopeNames()??[];for(let o of this._tokenTypeOverrides)if(o.matcher(i))r=x.set(r,0,dn(o.type),null,-1,0,0);if(this.balancedBracketSelectors)s=this.balancedBracketSelectors.match(i)}if(s)r=x.set(r,0,8,s,-1,0,0);if(this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=e;return}let n=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e}getResult(t,e){if(this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1)this._tokens.pop();if(this._tokens.length===0)this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0;return this._tokens}getBinaryResult(t,e){if(this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1)this._binaryTokens.pop(),this._binaryTokens.pop();if(this._binaryTokens.length===0)this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0;let n=new Uint32Array(this._binaryTokens.length);for(let r=0,s=this._binaryTokens.length;r<s;r++)n[r]=this._binaryTokens[r];return n}},Wn=class{constructor(t,e){this._onigLib=e,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){if(this._rawGrammars.set(t.scopeName,t),e)this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,e,n,r,s){if(!this._grammars.has(t)){let i=this._rawGrammars.get(t);if(!i)return null;this._grammars.set(t,$n(t,i,e,n,r,s,this,this._onigLib))}return this._grammars.get(t)}},ht=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new Wn(M.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,e){this._syncRegistry.setTheme(M.createFromRawTheme(t,e))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,e,n){return this.loadGrammarWithConfiguration(t,e,{embeddedLanguages:n})}loadGrammarWithConfiguration(t,e,n){return this._loadGrammar(t,e,n.embeddedLanguages,n.tokenTypes,new Fn(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,e,n,r,s){let i=new yn(this._syncRegistry,t);while(i.Q.length>0)i.Q.map((o)=>this._loadSingleGrammar(o.scopeName)),i.processQueue();return this._grammarForScopeName(t,e,n,r,s)}_loadSingleGrammar(t){if(!this._ensureGrammarCache.has(t))this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0)}_doLoadSingleGrammar(t){let e=this._options.loadGrammar(t);if(e){let n=typeof this._options.getInjections==="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(e,n)}}addGrammar(t,e=[],n=0,r=null){return this._syncRegistry.addGrammar(t,e),this._grammarForScopeName(t.scopeName,n,r)}_grammarForScopeName(t,e=0,n=null,r=null,s=null){return this._syncRegistry.grammarForScopeName(t,e,n,r,s)}},ne=Re.NULL;function q(t,e){let n=typeof t==="string"?{}:{...t.colorReplacements},r=typeof t==="string"?t:t.name;for(let[s,i]of Object.entries(e?.colorReplacements||{}))if(typeof i==="string")n[s]=i;else if(s===r)Object.assign(n,i);return n}function v(t,e){if(!t)return t;return e?.[t?.toLowerCase()]||t}function pt(t){return Array.isArray(t)?t:[t]}async function Te(t){return Promise.resolve(typeof t==="function"?t():t).then((e)=>e.default||e)}function z(t){return!t||["plaintext","txt","text","plain"].includes(t)}function _t(t){return t==="ansi"||z(t)}function U(t){return t==="none"}function yt(t){return U(t)}var Hn=/(\r?\n)/g;function P(t,e=!1){if(t.length===0)return[["",0]];let n=t.split(Hn),r=0,s=[];for(let i=0;i<n.length;i+=2){let o=e?n[i]+(n[i+1]||""):n[i];s.push([o,r]),r+=n[i].length,r+=n[i+1]?.length||0}return s}var ft={light:"#333333",dark:"#bbbbbb"},dt={light:"#fffffe",dark:"#1e1e1e"},mt="__shiki_resolved";function re(t){if(t?.[mt])return t;let e={...t};if(e.tokenColors&&!e.settings)e.settings=e.tokenColors,delete e.tokenColors;e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:n,fg:r}=e;if(!n||!r){let a=e.settings?e.settings.find((c)=>!c.name&&!c.scope):void 0;if(a?.settings?.foreground)r=a.settings.foreground;if(a?.settings?.background)n=a.settings.background;if(!r&&e?.colors?.["editor.foreground"])r=e.colors["editor.foreground"];if(!n&&e?.colors?.["editor.background"])n=e.colors["editor.background"];if(!r)r=e.type==="light"?ft.light:ft.dark;if(!n)n=e.type==="light"?dt.light:dt.dark;e.fg=r,e.bg=n}if(!(e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope))e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let s=0,i=new Map;function o(a){if(i.has(a))return i.get(a);s+=1;let c=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;if(e.colorReplacements?.[`#${c}`])return o(a);return i.set(a,c),c}e.settings=e.settings.map((a)=>{let c=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),l=a.settings?.background&&!a.settings.background.startsWith("#");if(!c&&!l)return a;let u={...a,settings:{...a.settings}};if(c){let h=o(a.settings.foreground);e.colorReplacements[h]=a.settings.foreground,u.settings.foreground=h}if(l){let h=o(a.settings.background);e.colorReplacements[h]=a.settings.background,u.settings.background=h}return u});for(let a of Object.keys(e.colors||{}))if(a==="editor.foreground"||a==="editor.background"||a.startsWith("terminal.ansi")){if(!e.colors[a]?.startsWith("#")){let c=o(e.colors[a]);e.colorReplacements[c]=e.colors[a],e.colors[a]=c}}return Object.defineProperty(e,mt,{enumerable:!1,writable:!1,value:!0}),e}async function bt(t){return[...new Set((await Promise.all(t.filter((e)=>!_t(e)).map(async(e)=>await Te(e).then((n)=>Array.isArray(n)?n:[n])))).flat())]}async function St(t){return(await Promise.all(t.map(async(e)=>yt(e)?null:re(await Te(e))))).filter((e)=>!!e)}function wt(t,e){if(!e)return t;if(e[t]){let n=new Set([t]);while(e[t]){if(t=e[t],n.has(t))throw new S(`Circular alias \`${[...n].join(" -> ")} -> ${t}\``);n.add(t)}}return t}var qn=class extends ht{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(t,e,n,r={}){super(t);this._resolver=t,this._themes=e,this._langs=n,this._alias=r,this._themes.map((s)=>this.loadTheme(s)),this.loadLanguages(this._langs)}getTheme(t){if(typeof t==="string")return this._resolvedThemes.get(t);else return this.loadTheme(t)}loadTheme(t){let e=re(t);if(e.name)this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null;return e}getLoadedThemes(){if(!this._loadedThemesCache)this._loadedThemesCache=[...this._resolvedThemes.keys()];return this._loadedThemesCache}setTheme(t){let e=this._textmateThemeCache.get(t);if(!e)e=M.createFromRawTheme(t),this._textmateThemeCache.set(t,e);this._syncRegistry.setTheme(e)}getGrammar(t){return t=wt(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;let e=new Set([...this._langMap.values()].filter((s)=>s.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);let n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);let r=this.loadGrammarWithConfiguration(t.scopeName,1,n);if(r.name=t.name,this._resolvedGrammars.set(t.name,r),t.aliases)t.aliases.forEach((s)=>{this._alias[s]=t.name});if(this._loadedLanguagesCache=null,e.size)for(let s of e)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(let r of t)this.resolveEmbeddedLanguages(r);let e=[...this._langGraph.entries()],n=e.filter(([r,s])=>!s);if(n.length){let r=e.filter(([s,i])=>{if(!i)return!1;return(i.embeddedLanguages||i.embeddedLangs)?.some((o)=>n.map(([a])=>a).includes(o))}).filter((s)=>!n.includes(s));throw new S(`Missing languages ${n.map(([s])=>`\`${s}\``).join(", ")}, required by ${r.map(([s])=>`\`${s}\``).join(", ")}`)}for(let[r,s]of e)this._resolver.addLanguage(s);for(let[r,s]of e)this.loadLanguage(s)}getLoadedLanguages(){if(!this._loadedLanguagesCache)this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])];return this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);let e=t.embeddedLanguages??t.embeddedLangs;if(e)for(let n of e)this._langGraph.set(n,this._langMap.get(n))}},zn=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,e){this._onigLib={createOnigScanner:(n)=>t.createScanner(n),createOnigString:(n)=>t.createString(n)},e.forEach((n)=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){if(this._langs.set(t.name,t),t.aliases)t.aliases.forEach((e)=>{this._langs.set(e,t)});if(this._scopeToLang.set(t.scopeName,t),t.injectTo)t.injectTo.forEach((e)=>{if(!this._injections.get(e))this._injections.set(e,[]);this._injections.get(e).push(t.scopeName)})}getInjections(t){let e=t.split("."),n=[];for(let r=1;r<=e.length;r++){let s=e.slice(0,r).join(".");n=[...n,...this._injections.get(s)||[]]}return n}},H=0;function ve(t){if(H+=1,t.warnings!==!1&&H>=10&&H%10===0)console.warn(`[Shiki] ${H} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!t.engine)throw new S("`engine` option is required for synchronous mode");let n=(t.langs||[]).flat(1),r=(t.themes||[]).flat(1).map(re),s=new qn(new zn(t.engine,n),r,n,t.langAlias),i;function o(g){return wt(g,t.langAlias)}function a(g){_();let b=s.getGrammar(typeof g==="string"?g:g.name);if(!b)throw new S(`Language \`${g}\` not found, you may need to load it first`);return b}function c(g){if(g==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};_();let b=s.getTheme(g);if(!b)throw new S(`Theme \`${g}\` not found, you may need to load it first`);return b}function l(g){_();let b=c(g);if(i!==g)s.setTheme(b),i=g;return{theme:b,colorMap:s.getColorMap()}}function u(){return _(),s.getLoadedThemes()}function h(){return _(),s.getLoadedLanguages()}function d(...g){_(),s.loadLanguages(g.flat(1))}async function f(...g){return d(await bt(g))}function m(...g){_();for(let b of g.flat(1))s.loadTheme(b)}async function y(...g){return _(),m(await St(g))}function _(){if(e)throw new S("Shiki instance has been disposed")}function p(){if(e)return;e=!0,s.dispose(),H-=1}return{setTheme:l,getTheme:c,getLanguage:a,getLoadedThemes:u,getLoadedLanguages:h,resolveLangAlias:o,loadLanguage:f,loadLanguageSync:d,loadTheme:y,loadThemeSync:m,dispose:p,[Symbol.dispose]:p}}async function Ae(t){if(!t.engine)console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[e,n,r]=await Promise.all([St(t.themes||[]),bt(t.langs||[]),t.engine]);return ve({...t,themes:e,langs:n,engine:r})}var Ct=new WeakMap;function K(t,e){Ct.set(t,e)}function G(t){return Ct.get(t)}var se=class t{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,n){return new t(Object.fromEntries(pt(n).map((r)=>[r,ne])),e)}constructor(...e){if(e.length===2){let[n,r]=e;this.lang=r,this._stacks=n}else{let[n,r,s]=e;this.lang=r,this._stacks={[s]:n}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Un(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Un(t){let e=[],n=new Set;function r(s){if(n.has(s))return;n.add(s);let i=s?.nameScopesList?.scopeName;if(i)e.push(i);if(s.parent)r(s.parent)}return r(t),e}function Kn(t,e){if(!(t instanceof se))throw new S("Invalid grammar state");return t.getInternalStack(e)}var Vn=/,/,Yn=/ /;function Ee(t,e,n={}){let{theme:r=t.getLoadedThemes()[0]}=n;if(z(t.resolveLangAlias(n.lang||"text"))||U(r))return P(e).map((a)=>[{content:a[0],offset:a[1]}]);let{theme:s,colorMap:i}=t.setTheme(r),o=t.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==o.name)throw new S(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(s.name))throw new S(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return Rt(e,o,s,i,n)}function kt(...t){if(t.length===2)return G(t[1]);let[e,n,r={}]=t,{lang:s="text",theme:i=e.getLoadedThemes()[0]}=r;if(z(s)||U(i))throw new S("Plain language does not have grammar state");if(s==="ansi")throw new S("ANSI language does not have grammar state");let{theme:o,colorMap:a}=e.setTheme(i),c=e.getLanguage(s);return new se(xe(n,c,o,a,r).stateStack,c.name,o.name)}function Rt(t,e,n,r,s){let i=xe(t,e,n,r,s),o=new se(i.stateStack,e.name,n.name);return K(i.tokens,o),i.tokens}function xe(t,e,n,r,s){let i=q(n,s),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:a=500,includeExplanation:c=!1}=s,l=P(t),u=s.grammarState?Kn(s.grammarState,n.name)??ne:s.grammarContextCode!=null?xe(s.grammarContextCode,e,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:ne,h=[],d=[];for(let f=0,m=l.length;f<m;f++){let[y,_]=l[f];if(y===""){h=[],d.push([]);continue}if(o>0&&y.length>=o){h=[],d.push([{content:y,offset:_,color:"",fontStyle:0}]);continue}let p,g,b;if(c&&c!=="tokenType")p=e.tokenizeLine(y,u,a),g=p.tokens,b=0;let C=e.tokenizeLine2(y,u,a),R=C.tokens.length/2;for(let N=0;N<R;N++){let E=C.tokens[2*N],ge=N+1<R?C.tokens[2*N+2]:y.length;if(E===ge)continue;let pe=C.tokens[2*N+1],Zt=v(r[x.getForeground(pe)],i),en=x.getFontStyle(pe),Y={content:y.substring(E,ge),offset:_+E,color:Zt,fontStyle:en};if(c==="tokenType")Y.type=x.getTokenType(pe);else if(c){let Me=[];if(c!=="scopeName")for(let T of n.settings){let L;switch(typeof T.scope){case"string":L=T.scope.split(Vn).map((_e)=>_e.trim());break;case"object":L=T.scope;break;default:continue}Me.push({settings:T,selectors:L.map((_e)=>_e.split(Yn))})}Y.explanation=[];let je=0;while(E+je<ge){let T=g[b],L=y.substring(T.startIndex,T.endIndex);je+=L.length,Y.explanation.push({content:L,scopes:c==="scopeName"?Jn(T.scopes):Qn(Me,T.scopes)}),b+=1}}h.push(Y)}d.push(h),h=[],u=C.ruleStack}return{tokens:d,stateStack:u}}function Jn(t){return t.map((e)=>({scopeName:e}))}function Qn(t,e){let n=[];for(let r=0,s=e.length;r<s;r++){let i=e[r];n[r]={scopeName:i,themeMatches:Zn(t,i,e.slice(0,r))}}return n}function gt(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}function Xn(t,e,n){if(!gt(t.at(-1),e))return!1;let r=t.length-2,s=n.length-1;while(r>=0&&s>=0){if(gt(t[r],n[s]))r-=1;s-=1}if(r===-1)return!0;return!1}function Zn(t,e,n){let r=[];for(let{selectors:s,settings:i}of t)for(let o of s)if(Xn(o,e,n)){r.push(i);break}return r}function ie(t,e,n,r=Ee){let s=Object.entries(n.themes).filter((l)=>l[1]).map((l)=>({color:l[0],theme:l[1]})),i=s.map((l)=>{let u=r(t,e,{...n,theme:l.theme});return{tokens:u,state:G(u),theme:typeof l.theme==="string"?l.theme:l.theme.name}}),o=er(...i.map((l)=>l.tokens)),a=o[0].map((l,u)=>l.map((h,d)=>{let f={content:h.content,variants:{},offset:h.offset};if("includeExplanation"in n&&n.includeExplanation)f.explanation=h.explanation;return o.forEach((m,y)=>{let{content:_,explanation:p,offset:g,...b}=m[u][d];f.variants[s[y].color]=b}),f})),c=i[0].state?new se(Object.fromEntries(i.map((l)=>[l.theme,l.state?.getInternalStack(l.theme)])),i[0].state.lang):void 0;if(c)K(a,c);return a}function er(...t){let e=t.map(()=>[]),n=t.length;for(let r=0;r<t[0].length;r++){let s=t.map((c)=>c[r]),i=e.map(()=>[]);e.forEach((c,l)=>c.push(i[l]));let o=s.map(()=>0),a=s.map((c)=>c[0]);while(a.every((c)=>c)){let c=Math.min(...a.map((l)=>l.content.length));for(let l=0;l<n;l++){let u=a[l];if(u.content.length===c)i[l].push(u),o[l]+=1,a[l]=s[l][o[l]];else i[l].push({...u,content:u.content.slice(0,c)}),a[l]={...u,content:u.content.slice(c),offset:u.offset+c}}}}return e}var Nt=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var Tt={}.hasOwnProperty;function vt(t,e){let n=e||{};function r(s,...i){let{invalid:o,handlers:a}=r;if(s&&Tt.call(s,t)){let c=String(s[t]);o=Tt.call(a,c)?a[c]:r.unknown}if(o)return o.call(this,s,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var tr=/["&'<>`]/g,nr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rr=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,sr=/[|\\{}()[\]^$+*?.]/g,At=new WeakMap;function Et(t,e){if(t=t.replace(e.subset?ir(e.subset):tr,r),e.subset||e.escapeOnly)return t;return t.replace(nr,n).replace(rr,r);function n(s,i,o){return e.format((s.charCodeAt(0)-55296)*1024+s.charCodeAt(1)-56320+65536,o.charCodeAt(i+2),e)}function r(s,i,o){return e.format(s.charCodeAt(0),o.charCodeAt(i+1),e)}}function ir(t){let e=At.get(t);if(!e)e=or(t),At.set(t,e);return e}function or(t){let e=[],n=-1;while(++n<t.length)e.push(t[n].replace(sr,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}var ar=/[\dA-Fa-f]/;function xt(t,e,n){let r="&#x"+t.toString(16).toUpperCase();return n&&e&&!ar.test(String.fromCharCode(e))?r:r+";"}var cr=/\d/;function It(t,e,n){let r="&#"+String(t);return n&&e&&!cr.test(String.fromCharCode(e))?r:r+";"}var Lt=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var oe={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"};var Pt=["cent","copy","divide","gt","lt","not","para","times"];var Gt={}.hasOwnProperty,Ie={},ae;for(ae in oe)if(Gt.call(oe,ae))Ie[oe[ae]]=ae;var lr=/[^\dA-Za-z]/;function Bt(t,e,n,r){let s=String.fromCharCode(t);if(Gt.call(Ie,s)){let i=Ie[s],o="&"+i;if(n&&Lt.includes(i)&&!Pt.includes(i)&&(!r||e&&e!==61&&lr.test(String.fromCharCode(e))))return o;return o+";"}return""}function Ot(t,e,n){let r=xt(t,e,n.omitOptionalSemicolons),s;if(n.useNamedReferences||n.useShortestReferences)s=Bt(t,e,n.omitOptionalSemicolons,n.attribute);if((n.useShortestReferences||!s)&&n.useShortestReferences){let i=It(t,e,n.omitOptionalSemicolons);if(i.length<r.length)r=i}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function A(t,e){return Et(t,Object.assign({format:Ot},e))}var ur=/^>|^->|<!--|-->|--!>|<!-$/g,hr=[">"],fr=["<",">"];function $t(t,e,n,r){return r.settings.bogusComments?"<?"+A(t.value,Object.assign({},r.settings.characterReferences,{subset:hr}))+">":"<!--"+t.value.replace(ur,s)+"-->";function s(i){return A(i,Object.assign({},r.settings.characterReferences,{subset:fr}))}}function Mt(t,e,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}var w=jt(1),Le=jt(-1),dr=[];function jt(t){return e;function e(n,r,s){let i=n?n.children:dr,o=(r||0)+t,a=i[o];if(!s)while(a&&Er(a))o+=t,a=i[o];return a}}var mr={}.hasOwnProperty;function ce(t){return e;function e(n,r,s){return mr.call(t,n.tagName)&&t[n.tagName](n,r,s)}}var V=ce({body:pr,caption:Pe,colgroup:Pe,dd:Sr,dt:br,head:Pe,html:gr,li:yr,optgroup:wr,option:Cr,p:_r,rp:Ft,rt:Ft,tbody:Rr,td:Dt,tfoot:Nr,th:Dt,thead:kr,tr:Tr});function Pe(t,e,n){let r=w(n,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Er(r.value.charAt(0)))}function gr(t,e,n){let r=w(n,e);return!r||r.type!=="comment"}function pr(t,e,n){let r=w(n,e);return!r||r.type!=="comment"}function _r(t,e,n){let r=w(n,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function yr(t,e,n){let r=w(n,e);return!r||r.type==="element"&&r.tagName==="li"}function br(t,e,n){let r=w(n,e);return Boolean(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Sr(t,e,n){let r=w(n,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Ft(t,e,n){let r=w(n,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function wr(t,e,n){let r=w(n,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function Cr(t,e,n){let r=w(n,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function kr(t,e,n){let r=w(n,e);return Boolean(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Rr(t,e,n){let r=w(n,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Nr(t,e,n){return!w(n,e)}function Tr(t,e,n){let r=w(n,e);return!r||r.type==="element"&&r.tagName==="tr"}function Dt(t,e,n){let r=w(n,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}var Wt=ce({body:xr,colgroup:Ir,head:Ar,html:vr,tbody:Lr});function vr(t){let e=w(t,-1);return!e||e.type!=="comment"}function Ar(t){let e=new Set;for(let r of t.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}let n=t.children[0];return!n||n.type==="element"}function xr(t){let e=w(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Er(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Ir(t,e,n){let r=Le(n,e),s=w(t,-1,!0);if(n&&r&&r.type==="element"&&r.tagName==="colgroup"&&V(r,n.children.indexOf(r),n))return!1;return Boolean(s&&s.type==="element"&&s.tagName==="col")}function Lr(t,e,n){let r=Le(n,e),s=w(t,-1);if(n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&V(r,n.children.indexOf(r),n))return!1;return Boolean(s&&s.type==="element"&&s.tagName==="tr")}var le={name:[[`
|
|
4
|
+
\f\r &/=>`.split(""),`
|
|
5
|
+
\f\r "&'/=>\``.split("")],[`\x00
|
|
6
|
+
\f\r "&'/<=>`.split(""),`\x00
|
|
7
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
8
|
+
\f\r &>`.split(""),`\x00
|
|
9
|
+
\f\r "&'<=>\``.split("")],[`\x00
|
|
10
|
+
\f\r "&'<=>\``.split(""),`\x00
|
|
11
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\x00&'".split(""),"\x00\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\x00"&'.split(""),"\x00\"&'`".split("")]]};function Ht(t,e,n,r){let s=r.schema,i=s.space==="svg"?!1:r.settings.omitOptionalTags,o=s.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(t.tagName.toLowerCase()),a=[],c;if(s.space==="html"&&t.tagName==="svg")r.schema=Zr;let l=Pr(r,t.properties),u=r.all(s.space==="html"&&t.tagName==="template"?t.content:t);if(r.schema=s,u)o=!1;if(l||!i||!Wt(t,e,n)){if(a.push("<",t.tagName,l?" "+l:""),o&&(s.space==="svg"||r.settings.closeSelfClosing)){if(c=l.charAt(l.length-1),!r.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")a.push(" ");a.push("/")}a.push(">")}if(a.push(u),!o&&(!i||!V(t,e,n)))a.push("</"+t.tagName+">");return a.join("")}function Pr(t,e){let n=[],r=-1,s;if(e){for(s in e)if(e[s]!==null&&e[s]!==void 0){let i=Gr(t,s,e[s]);if(i)n.push(i)}}while(++r<n.length){let i=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;if(r!==n.length-1&&i!=='"'&&i!=="'")n[r]+=" "}return n.join("")}function Gr(t,e,n){let r=Yi(t.schema,e),s=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,i=t.settings.allowDangerousCharacters?0:1,o=t.quote,a;if(r.overloadedBoolean&&(n===r.attribute||n===""))n=!0;else if((r.boolean||r.overloadedBoolean)&&(typeof n!=="string"||n===r.attribute||n===""))n=Boolean(n);if(n===null||n===void 0||n===!1||typeof n==="number"&&Number.isNaN(n))return"";let c=A(r.attribute,Object.assign({},t.settings.characterReferences,{subset:le.name[s][i]}));if(n===!0)return c;if(n=Array.isArray(n)?(r.commaSeparated?ms:hs)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n)return c;if(t.settings.preferUnquoted)a=A(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:le.unquoted[s][i]}));if(a!==n){if(t.settings.quoteSmart&&gi(n,o)>gi(n,t.alternative))o=t.alternative;a=o+A(n,Object.assign({},t.settings.characterReferences,{subset:(o==="'"?le.single:le.double)[s][i],attribute:!0}))+o}return c+(a?"="+a:a)}var Br=["<","&"];function ue(t,e,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?t.value:A(t.value,Object.assign({},r.settings.characterReferences,{subset:Br}))}function qt(t,e,n,r){return r.settings.allowDangerousHtml?t.value:ue(t,e,n,r)}function zt(t,e,n,r){return r.all(t)}var Ut=vt("type",{invalid:Or,unknown:$r,handlers:{comment:$t,doctype:Mt,element:Ht,raw:qt,root:zt,text:ue}});function Or(t){throw Error("Expected node, not `"+t+"`")}function $r(t){throw Error("Cannot compile unknown node `"+t.type+"`")}var Mr={},jr={},Fr=[];function Ge(t,e){let n=e||Mr,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Dr,all:Wr,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Nt,characterReferences:n.characterReferences||jr,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Zr:fs,quote:r,alternative:s}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function Dr(t,e,n){return Ut(t,e,n,this)}function Wr(t){let e=[],n=t&&t.children||Fr,r=-1;while(++r<n.length)e[r]=this.one(n[r],r,t);return e.join("")}var Kt=/\s+/g;function Jt(t,e){if(!e)return t;if(t.properties||={},t.properties.class||=[],typeof t.properties.class==="string")t.properties.class=t.properties.class.split(Kt);if(!Array.isArray(t.properties.class))t.properties.class=[];let n=Array.isArray(e)?e:e.split(Kt);for(let r of n)if(r&&!t.properties.class.includes(r))t.properties.class.push(r);return t}function Hr(t){let e=P(t,!0).map(([s])=>s);function n(s){if(s===t.length)return{line:e.length-1,character:e.at(-1).length};let i=s,o=0;for(let a of e){if(i<a.length)break;i-=a.length,o++}return{line:o,character:i}}function r(s,i){let o=0;for(let a=0;a<s;a++)o+=e[a].length;return o+=i,o}return{lines:e,indexToPos:n,posToIndex:r}}var qr=["color","background-color"];function zr(t,e){let n=0,r=[];for(let s of e){if(s>n)r.push({...t,content:t.content.slice(n,s),offset:t.offset+n});n=s}if(n<t.content.length)r.push({...t,content:t.content.slice(n),offset:t.offset+n});return r}function Ur(t,e){let n=0,r=t.length;while(n<r){let s=n+(r-n>>1);if(t[s]<=e)n=s+1;else r=s}return n}function Kr(t,e){let n=[...e instanceof Set?e:new Set(e)].sort((r,s)=>r-s);if(!n.length)return t;return t.map((r)=>r.flatMap((s)=>{let i=s.offset+s.content.length,o=Ur(n,s.offset),a=o;while(a<n.length&&n[a]<i)a++;if(o===a)return s;let c=n.slice(o,a);for(let l=0;l<c.length;l++)c[l]-=s.offset;return zr(s,c)}))}function Vr(t,e,n,r,s="css-vars"){let i={content:t.content,explanation:t.explanation,offset:t.offset},o=e.map((u)=>he(t.variants[u])),a=new Set(o.flatMap((u)=>Object.keys(u))),c={},l=(u,h)=>{let d=h==="color"?"":h==="background-color"?"-bg":`-${h}`;return n+e[u]+(h==="color"?"":d)};return o.forEach((u,h)=>{for(let d of a){let f=u[d]||"inherit";if(h===0&&r&&qr.includes(d))if(r==="light-dark()"&&o.length>1){let m=e.findIndex((g)=>g==="light"),y=e.findIndex((g)=>g==="dark");if(m===-1||y===-1)throw new S('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let _=o[m][d]||"inherit",p=o[y][d]||"inherit";if(c[d]=`light-dark(${_}, ${p})`,s==="css-vars")c[l(h,d)]=f}else c[d]=f;else if(s==="css-vars")c[l(h,d)]=f}}),i.htmlStyle=c,i}function he(t){let e={};if(t.color)e.color=t.color;if(t.bgColor)e["background-color"]=t.bgColor;if(t.fontStyle){if(t.fontStyle&k.Italic)e["font-style"]="italic";if(t.fontStyle&k.Bold)e["font-weight"]="bold";let n=[];if(t.fontStyle&k.Underline)n.push("underline");if(t.fontStyle&k.Strikethrough)n.push("line-through");if(n.length)e["text-decoration"]=n.join(" ")}return e}function Oe(t){if(typeof t==="string")return t;return Object.entries(t).map(([e,n])=>`${e}:${n}`).join(";")}function Yr(){let t=new WeakMap;function e(n){if(!t.has(n.meta)){let s=function(o){if(typeof o==="number"){if(o<0||o>n.source.length)throw new S(`Invalid decoration offset: ${o}. Code length: ${n.source.length}`);return{...r.indexToPos(o),offset:o}}else{let a=r.lines[o.line];if(a===void 0)throw new S(`Invalid decoration position ${JSON.stringify(o)}. Lines length: ${r.lines.length}`);let c=o.character;if(c<0)c=a.length+c;if(c<0||c>a.length)throw new S(`Invalid decoration position ${JSON.stringify(o)}. Line ${o.line} length: ${a.length}`);return{...o,character:c,offset:r.posToIndex(o.line,c)}}},r=Hr(n.source),i=(n.options.decorations||[]).map((o)=>({...o,start:s(o.start),end:s(o.end)}));Jr(i),t.set(n.meta,{decorations:i,converter:r,source:n.source})}return t.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;return Kr(n,e(this).decorations.flatMap((r)=>[r.start.offset,r.end.offset]))},code(n){if(!this.options.decorations?.length)return;let r=e(this),s=[...n.children].filter((u)=>u.type==="element"&&u.tagName==="span");if(s.length!==r.converter.lines.length)throw new S(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function i(u,h,d,f){let m=s[u],y="",_=-1,p=-1;if(h===0)_=0;if(d===0)p=0;if(d===Number.POSITIVE_INFINITY)p=m.children.length;if(_===-1||p===-1)for(let b=0;b<m.children.length;b++){if(y+=Qt(m.children[b]),_===-1&&y.length===h)_=b+1;if(p===-1&&y.length===d)p=b+1}if(_===-1)throw new S(`Failed to find start index for decoration ${JSON.stringify(f.start)}`);if(p===-1)throw new S(`Failed to find end index for decoration ${JSON.stringify(f.end)}`);let g=m.children.slice(_,p);if(!f.alwaysWrap&&g.length===m.children.length)a(m,f,"line");else if(!f.alwaysWrap&&g.length===1&&g[0].type==="element")a(g[0],f,"token");else{let b={type:"element",tagName:"span",properties:{},children:g};a(b,f,"wrapper"),m.children.splice(_,g.length,b)}}function o(u,h){s[u]=a(s[u],h,"line")}function a(u,h,d){let f=h.properties||{},m=h.transform||((y)=>y);if(u.tagName=h.tagName||"span",u.properties={...u.properties,...f,class:u.properties.class},h.properties?.class)Jt(u,h.properties.class);return u=m(u,d)||u,u}let c=[],l=r.decorations.sort((u,h)=>h.start.offset-u.start.offset||u.end.offset-h.end.offset);for(let u of l){let{start:h,end:d}=u;if(h.line===d.line)i(h.line,h.character,d.character,u);else if(h.line<d.line){i(h.line,h.character,Number.POSITIVE_INFINITY,u);for(let f=h.line+1;f<d.line;f++)c.unshift(()=>o(f,u));i(d.line,0,d.character,u)}}c.forEach((u)=>u())}}}function Jr(t){for(let e=0;e<t.length;e++){let n=t[e];if(n.start.offset>n.end.offset)throw new S(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=e+1;r<t.length;r++){let s=t[r],i=n.start.offset<=s.start.offset&&s.start.offset<n.end.offset,o=n.start.offset<s.end.offset&&s.end.offset<=n.end.offset,a=s.start.offset<=n.start.offset&&n.start.offset<s.end.offset,c=s.start.offset<n.end.offset&&n.end.offset<=s.end.offset;if(i||o||a||c){if(i&&o)continue;if(a&&c)continue;if(a&&n.start.offset===n.end.offset)continue;if(o&&s.start.offset===s.end.offset)continue;throw new S(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function Qt(t){if(t.type==="text")return t.value;if(t.type==="element")return t.children.map(Qt).join("");return""}var Qr=[Yr()];function fe(t){let e=Xr(t.transformers||[]);return[...e.pre,...e.normal,...e.post,...Qr]}function Xr(t){let e=[],n=[],r=[];for(let s of t)switch(s.enforce){case"pre":e.push(s);break;case"post":n.push(s);break;default:r.push(s)}return{pre:e,post:n,normal:r}}var I=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Be={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function es(t,e){let n=t.indexOf("\x1B",e);if(n!==-1){if(t[n+1]==="["){let r=t.indexOf("m",n);if(r!==-1)return{sequence:t.substring(n+2,r).split(";"),startPosition:n,position:r+1}}}return{position:t.length}}function Vt(t){let e=t.shift();if(e==="2"){let n=t.splice(0,3).map((r)=>Number.parseInt(r));if(n.length!==3||n.some((r)=>Number.isNaN(r)))return;return{type:"rgb",rgb:n}}else if(e==="5"){let n=t.shift();if(n)return{type:"table",index:Number(n)}}}function ts(t){let e=[];while(t.length>0){let n=t.shift();if(!n)continue;let r=Number.parseInt(n);if(Number.isNaN(r))continue;if(r===0)e.push({type:"resetAll"});else if(r<=9){if(Be[r])e.push({type:"setDecoration",value:Be[r]})}else if(r<=29){let s=Be[r-20];if(s){if(e.push({type:"resetDecoration",value:s}),s==="dim")e.push({type:"resetDecoration",value:"bold"})}}else if(r<=37)e.push({type:"setForegroundColor",value:{type:"named",name:I[r-30]}});else if(r===38){let s=Vt(t);if(s)e.push({type:"setForegroundColor",value:s})}else if(r===39)e.push({type:"resetForegroundColor"});else if(r<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:I[r-40]}});else if(r===48){let s=Vt(t);if(s)e.push({type:"setBackgroundColor",value:s})}else if(r===49)e.push({type:"resetBackgroundColor"});else if(r===53)e.push({type:"setDecoration",value:"overline"});else if(r===55)e.push({type:"resetDecoration",value:"overline"});else if(r>=90&&r<=97)e.push({type:"setForegroundColor",value:{type:"named",name:I[r-90+8]}});else if(r>=100&&r<=107)e.push({type:"setBackgroundColor",value:{type:"named",name:I[r-100+8]}})}return e}function ns(){let t=null,e=null,n=new Set;return{parse(r){let s=[],i=0;do{let o=es(r,i),a=o.sequence?r.substring(i,o.startPosition):r.substring(i);if(a.length>0)s.push({value:a,foreground:t,background:e,decorations:new Set(n)});if(o.sequence){let c=ts(o.sequence);for(let l of c)if(l.type==="resetAll")t=null,e=null,n.clear();else if(l.type==="resetForegroundColor")t=null;else if(l.type==="resetBackgroundColor")e=null;else if(l.type==="resetDecoration")n.delete(l.value);for(let l of c)if(l.type==="setForegroundColor")t=l.value;else if(l.type==="setBackgroundColor")e=l.value;else if(l.type==="setDecoration")n.add(l.value)}i=o.position}while(i<r.length);return s}}}var rs={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function ss(t=rs){function e(a){return t[a]}function n(a){return`#${a.map((c)=>Math.max(0,Math.min(c,255)).toString(16).padStart(2,"0")).join("")}`}let r;function s(){if(r)return r;r=[];for(let l=0;l<I.length;l++)r.push(e(I[l]));let a=[0,95,135,175,215,255];for(let l=0;l<6;l++)for(let u=0;u<6;u++)for(let h=0;h<6;h++)r.push(n([a[l],a[u],a[h]]));let c=8;for(let l=0;l<24;l++,c+=10)r.push(n([c,c,c]));return r}function i(a){return s()[a]}function o(a){switch(a.type){case"named":return e(a.name);case"rgb":return n(a.rgb);case"table":return i(a.index)}}return{value:o}}var is=/#([0-9a-f]{3,8})/i,os=/var\((--[\w-]+-ansi-[\w-]+)\)/,as={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function cs(t,e,n){let r=q(t,n),s=P(e),i=ss(Object.fromEntries(I.map((a)=>{let c=`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`;return[a,t.colors?.[c]||as[a]]}))),o=ns();return s.map((a)=>o.parse(a[0]).map((c)=>{let l,u;if(c.decorations.has("reverse"))l=c.background?i.value(c.background):t.bg,u=c.foreground?i.value(c.foreground):t.fg;else l=c.foreground?i.value(c.foreground):t.fg,u=c.background?i.value(c.background):void 0;if(l=v(l,r),u=v(u,r),c.decorations.has("dim"))l=ls(l);let h=k.None;if(c.decorations.has("bold"))h|=k.Bold;if(c.decorations.has("italic"))h|=k.Italic;if(c.decorations.has("underline"))h|=k.Underline;if(c.decorations.has("strikethrough"))h|=k.Strikethrough;return{content:c.value,offset:a[1],color:l,bgColor:u,fontStyle:h}}))}function ls(t){let e=t.match(is);if(e){let r=e[1];if(r.length===8){let s=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${s}`}else if(r.length===6)return`#${r}80`;else if(r.length===4){let s=r[0],i=r[1],o=r[2],a=r[3];return`#${s}${s}${i}${i}${o}${o}${Math.round(Number.parseInt(`${a}${a}`,16)/2).toString(16).padStart(2,"0")}`}else if(r.length===3){let s=r[0],i=r[1],o=r[2];return`#${s}${s}${i}${i}${o}${o}80`}}let n=t.match(os);if(n)return`var(${n[1]}-dim)`;return t}function $e(t,e,n={}){let r=t.resolveLangAlias(n.lang||"text"),{theme:s=t.getLoadedThemes()[0]}=n;if(!z(r)&&!U(s)&&r==="ansi"){let{theme:i}=t.setTheme(s);return cs(i,e,n)}return Ee(t,e,n)}function de(t,e,n){let r,s,i,o,a,c;if("themes"in n){let{defaultColor:l="light",cssVariablePrefix:u="--shiki-",colorsRendering:h="css-vars"}=n,d=Object.entries(n.themes).filter((p)=>p[1]).map((p)=>({color:p[0],theme:p[1]})).sort((p,g)=>p.color===l?-1:g.color===l?1:0);if(d.length===0)throw new S("`themes` option must not be empty");let f=ie(t,e,n,$e);if(c=G(f),l&&l!=="light-dark()"&&!d.some((p)=>p.color===l))throw new S(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=d.map((p)=>t.getTheme(p.theme)),y=d.map((p)=>p.color);if(i=f.map((p)=>p.map((g)=>Vr(g,y,u,l,h))),c)K(i,c);let _=d.map((p)=>q(p.theme,n));s=Yt(d,m,_,u,l,"fg",h),r=Yt(d,m,_,u,l,"bg",h),o=`shiki-themes ${m.map((p)=>p.name).join(" ")}`,a=l?void 0:[s,r].join(";")}else if("theme"in n){let l=q(n.theme,n);i=$e(t,e,n);let u=t.getTheme(n.theme);r=v(u.bg,l),s=v(u.fg,l),o=u.name,c=G(i)}else throw new S("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:s,bg:r,themeName:o,rootStyle:a,grammarState:c}}function Yt(t,e,n,r,s,i,o){return t.map((a,c)=>{let l=v(e[c][i],n[c])||"inherit",u=`${r+a.color}${i==="bg"?"-bg":""}:${l}`;if(c===0&&s){if(s==="light-dark()"&&t.length>1){let h=t.findIndex((f)=>f.color==="light"),d=t.findIndex((f)=>f.color==="dark");if(h===-1||d===-1)throw new S('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${v(e[h][i],n[h])||"inherit"}, ${v(e[d][i],n[d])||"inherit"});${u}`}return l}if(o==="css-vars")return u;return null}).filter((a)=>!!a).join(";")}var Xt=/^\s+$/,us=/^(\s*)(.*?)(\s*)$/;function me(t,e,n,r={meta:{},options:n,codeToHast:(s,i)=>me(t,s,i),codeToTokens:(s,i)=>de(t,s,i)}){let s=e;for(let m of fe(n))s=m.preprocess?.call(r,s,n)||s;let{tokens:i,fg:o,bg:a,themeName:c,rootStyle:l,grammarState:u}=de(t,s,n),{mergeWhitespaces:h=!0,mergeSameStyleTokens:d=!1}=n;if(h===!0)i=gs(i);else if(h==="never")i=ps(i);if(d)i=_s(i);let f={...r,get source(){return s}};for(let m of fe(n))i=m.tokens?.call(f,i)||i;return ds(i,{...n,fg:o,bg:a,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},f,u)}function ds(t,e,n,r=G(t)){let s=fe(e),i=[],o={type:"root",children:[]},{structure:a="classic",tabindex:c="0"}=e,l={class:`shiki ${e.themeName||""}`};if(e.rootStyle!==!1)if(e.rootStyle!=null)l.style=e.rootStyle;else l.style=`background-color:${e.bg};color:${e.fg}`;if(c!==!1&&c!=null)l.tabindex=c.toString();for(let[y,_]of Object.entries(e.meta||{}))if(!y.startsWith("_"))l[y]=_;let u={type:"element",tagName:"pre",properties:l,children:[],data:e.data},h={type:"element",tagName:"code",properties:{},children:i},d=[],f={...n,structure:a,addClassToHast:Jt,get source(){return n.source},get tokens(){return t},get options(){return e},get root(){return o},get pre(){return u},get code(){return h},get lines(){return d}};if(t.forEach((y,_)=>{if(_){if(a==="inline")o.children.push({type:"element",tagName:"br",properties:{},children:[]});else if(a==="classic")i.push({type:"text",value:`
|
|
12
|
+
`})}let p={type:"element",tagName:"span",properties:{class:"line"},children:[]},g=0;for(let b of y){let C={type:"element",tagName:"span",properties:{...b.htmlAttrs},children:[{type:"text",value:b.content}]},R=Oe(b.htmlStyle||he(b));if(R)C.properties.style=R;for(let N of s)C=N?.span?.call(f,C,_+1,g,p,b)||C;if(a==="inline")o.children.push(C);else if(a==="classic")p.children.push(C);g+=b.content.length}if(a==="classic"){for(let b of s)p=b?.line?.call(f,p,_+1)||p;d.push(p),i.push(p)}else if(a==="inline")d.push(p)}),a==="classic"){for(let y of s)h=y?.code?.call(f,h)||h;u.children.push(h);for(let y of s)u=y?.pre?.call(f,u)||u;o.children.push(u)}else if(a==="inline"){let y=[],_={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let g of o.children)if(g.type==="element"&&g.tagName==="br")y.push(_),_={type:"element",tagName:"span",properties:{class:"line"},children:[]};else if(g.type==="element"||g.type==="text")_.children.push(g);y.push(_);let p={type:"element",tagName:"code",properties:{},children:y};for(let g of s)p=g?.code?.call(f,p)||p;o.children=[];for(let g=0;g<p.children.length;g++){if(g>0)o.children.push({type:"element",tagName:"br",properties:{},children:[]});let b=p.children[g];if(b.type==="element")o.children.push(...b.children)}}let m=o;for(let y of s)m=y?.root?.call(f,m)||m;if(r)K(m,r);return m}function gs(t){return t.map((e)=>{let n=[],r="",s;return e.forEach((i,o)=>{let a=!(i.fontStyle&&(i.fontStyle&k.Underline||i.fontStyle&k.Strikethrough));if(a&&Xt.test(i.content)&&e[o+1]){if(s===void 0)s=i.offset;r+=i.content}else if(r){if(a)n.push({...i,offset:s,content:r+i.content});else n.push({content:r,offset:s},i);s=void 0,r=""}else n.push(i)}),n})}function ps(t){return t.map((e)=>e.flatMap((n)=>{if(Xt.test(n.content))return n;let r=n.content.match(us);if(!r)return n;let[,s,i,o]=r;if(!s&&!o)return n;let a=[{...n,offset:n.offset+s.length,content:i}];if(s)a.unshift({content:s,offset:n.offset});if(o)a.push({content:o,offset:n.offset+s.length+i.length});return a}))}function _s(t){return t.map((e)=>{let n=[];for(let r of e){if(n.length===0){n.push({...r});continue}let s=n.at(-1),i=Oe(s.htmlStyle||he(s)),o=Oe(r.htmlStyle||he(r)),a=s.fontStyle&&(s.fontStyle&k.Underline||s.fontStyle&k.Strikethrough),c=r.fontStyle&&(r.fontStyle&k.Underline||r.fontStyle&k.Strikethrough);if(!a&&!c&&i===o)s.content+=r.content;else n.push({...r})}return n})}var ys=Ge;function bs(t,e,n){let r={meta:{},options:n,codeToHast:(i,o)=>me(t,i,o),codeToTokens:(i,o)=>de(t,i,o)},s=ys(me(t,e,n,r));for(let i of fe(n))s=i.postprocess?.call(r,s,n)||s;return s}async function No(t){let e=await Ae(t);return{getLastGrammarState:(...n)=>kt(e,...n),codeToTokensBase:(n,r)=>$e(e,n,r),codeToTokensWithThemes:(n,r)=>ie(e,n,r),codeToTokens:(n,r)=>de(e,n,r),codeToHast:(n,r)=>me(e,n,r),codeToHtml:(n,r)=>bs(e,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}export{No as createHighlighterCore};
|
|
Binary file
|
|
Binary file
|