zen-code 4.8.0 → 4.8.2
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/dist/app.js +175 -99
- package/dist/chunk-00jvgph3.js +1 -0
- package/dist/chunk-01tsa9cq.js +1 -0
- package/dist/chunk-04mq56m4.js +1 -0
- package/dist/chunk-07em03a3.js +1 -0
- package/dist/chunk-07fnyy77.js +1 -0
- package/dist/chunk-0b5e8zpy.js +1 -0
- package/dist/chunk-0c25y7k9.js +1 -0
- package/dist/chunk-0dvy62vd.js +1 -0
- package/dist/chunk-0qys39ww.js +1 -0
- package/dist/chunk-0teh8cbt.js +2 -0
- package/dist/chunk-0y6jq0a0.js +1 -0
- package/dist/chunk-10qr9jk1.js +1 -0
- package/dist/chunk-10stn7rc.js +1 -0
- package/dist/chunk-11ctp51v.js +2 -0
- package/dist/chunk-131cad67.js +1 -0
- package/dist/{chunk-bjywwcgn.js → chunk-15zc0x9q.js} +2 -2
- package/dist/chunk-16jx4h98.js +1 -0
- package/dist/chunk-18k4wz02.js +1 -0
- package/dist/chunk-1a34fyjt.js +1 -0
- package/dist/chunk-1ek0xjkr.js +1 -0
- package/dist/chunk-1ja6becj.js +1 -0
- package/dist/{chunk-c9q11tk2.js → chunk-1mrzmr8f.js} +1 -1
- package/dist/chunk-1r67ngsh.js +1 -0
- package/dist/chunk-1w5vehgm.js +1 -0
- package/dist/chunk-1yq51mb3.js +1 -0
- package/dist/chunk-2215g4qb.js +2 -0
- package/dist/chunk-29tmghhd.js +1 -0
- package/dist/chunk-2cj25dc6.js +1 -0
- package/dist/chunk-2evyqqz7.js +2 -0
- package/dist/chunk-2f9mf6mw.js +2 -0
- package/dist/chunk-2kqs0amy.js +1 -0
- package/dist/{chunk-yvhq458c.js → chunk-2kw6zxt8.js} +1 -1
- package/dist/chunk-2mb0trr0.js +1 -0
- package/dist/{chunk-rrkzfahh.js → chunk-2mesyv20.js} +1 -1
- package/dist/chunk-2p664mgv.js +1 -0
- package/dist/chunk-2tg0fzzw.js +2 -0
- package/dist/chunk-2xr9jk3t.js +1 -0
- package/dist/chunk-2xrccbwa.js +1 -0
- package/dist/chunk-2yrz4qdk.js +1 -0
- package/dist/chunk-2zqq58q6.js +2 -0
- package/dist/{chunk-czz2fs2w.js → chunk-30hxw04w.js} +1 -1
- package/dist/{chunk-5fqt5yg1.js → chunk-33j3j89j.js} +1 -1
- package/dist/chunk-33xp86w3.js +1 -0
- package/dist/chunk-35bvsa6m.js +1 -0
- package/dist/chunk-35ncgr15.js +1 -0
- package/dist/chunk-3b63e6mc.js +1 -0
- package/dist/chunk-3f6xf4mm.js +1 -0
- package/dist/chunk-3k4101h5.js +1 -0
- package/dist/chunk-3mjwhvpy.js +1 -0
- package/dist/chunk-3pzth5e2.js +1 -0
- package/dist/chunk-3st09pbw.js +1 -0
- package/dist/{chunk-dh3jz71n.js → chunk-3tfjvh53.js} +1 -1
- package/dist/chunk-3x564va6.js +2 -0
- package/dist/chunk-3xfw5w0d.js +1 -0
- package/dist/chunk-3zf20ctr.js +1 -0
- package/dist/chunk-46ac6010.js +1 -0
- package/dist/chunk-46bmfch2.js +1 -0
- package/dist/chunk-4cg3jh38.js +1 -0
- package/dist/chunk-4g2gfvyd.js +1 -0
- package/dist/chunk-4h4fdqy9.js +1 -0
- package/dist/chunk-4k9xgsq4.js +1 -0
- package/dist/chunk-4mj1r6nd.js +1 -0
- package/dist/chunk-4w4ezegn.js +1 -0
- package/dist/chunk-51rhc5g1.js +1 -0
- package/dist/chunk-54j5njdj.js +1 -0
- package/dist/chunk-54ya969p.js +1 -0
- package/dist/chunk-55pfd4pp.js +1 -0
- package/dist/chunk-583jqck6.js +1 -0
- package/dist/chunk-5c13nrde.js +1 -0
- package/dist/chunk-5eg3bn3m.js +1 -0
- package/dist/chunk-5em7s1at.js +1 -0
- package/dist/chunk-5gjt4v98.js +1 -0
- package/dist/{chunk-0fhpz98a.js → chunk-5gp7nsdp.js} +2 -2
- package/dist/chunk-5hcvm27y.js +1 -0
- package/dist/chunk-5kns073z.js +1 -0
- package/dist/chunk-5pt6e5bh.js +1 -0
- package/dist/chunk-5q1qtbx4.js +1 -0
- package/dist/chunk-5xhjmcrr.js +1 -0
- package/dist/chunk-5yv6fsvn.js +1 -0
- package/dist/chunk-6180vb4q.js +2 -0
- package/dist/chunk-645r8yk7.js +1 -0
- package/dist/chunk-665a7fke.js +1 -0
- package/dist/chunk-667brfhx.js +1 -0
- package/dist/chunk-66s9chr5.js +1 -0
- package/dist/chunk-6dat5vvb.js +1 -0
- package/dist/chunk-6fzgq7sb.js +1 -0
- package/dist/chunk-6jdfap4a.js +1 -0
- package/dist/chunk-6qce4a2z.js +1 -0
- package/dist/chunk-6r8jhnde.js +1 -0
- package/dist/chunk-6tf8wacp.js +1 -0
- package/dist/chunk-6wbgc1xz.js +1 -0
- package/dist/chunk-6yk2jj1m.js +1 -0
- package/dist/chunk-74j5prfv.js +1 -0
- package/dist/chunk-7cenjy4r.js +2 -0
- package/dist/chunk-7jy1478y.js +1 -0
- package/dist/{chunk-j1n8jp1w.js → chunk-7kb8ygdr.js} +2 -2
- package/dist/chunk-7wnxdt11.js +1 -0
- package/dist/chunk-7wqcxfc4.js +1 -0
- package/dist/chunk-84nqfeqh.js +1 -0
- package/dist/chunk-87s313qe.js +1 -0
- package/dist/chunk-87w588zd.js +1 -0
- package/dist/chunk-8fzw4gqz.js +1 -0
- package/dist/chunk-8kk9kv6s.js +1 -0
- package/dist/chunk-8kt765dh.js +1 -0
- package/dist/chunk-8n9e3wbs.js +1 -0
- package/dist/chunk-8p1ebpny.js +1 -0
- package/dist/chunk-8vsqygpz.js +1 -0
- package/dist/chunk-8w10sa5e.js +1 -0
- package/dist/chunk-8ynj83n2.js +1 -0
- package/dist/chunk-92pjraxh.js +2 -0
- package/dist/chunk-95963acy.js +1 -0
- package/dist/chunk-962ms02t.js +1 -0
- package/dist/{chunk-3ep2tag7.js → chunk-98x8wkt6.js} +1 -1
- package/dist/chunk-9a6kwz9e.js +1 -0
- package/dist/chunk-9as23fmk.js +1 -0
- package/dist/chunk-9b45fe34.js +1 -0
- package/dist/chunk-9dhex1sf.js +1 -0
- package/dist/chunk-9dse3mh2.js +1 -0
- package/dist/chunk-9frwhzz8.js +1 -0
- package/dist/chunk-9ft87v6s.js +2 -0
- package/dist/chunk-9h0v5e0k.js +2 -0
- package/dist/chunk-9n2ge60j.js +1 -0
- package/dist/chunk-9nb6v3q0.js +2 -0
- package/dist/chunk-9phx46cq.js +2 -0
- package/dist/chunk-9qtsjepd.js +1 -0
- package/dist/chunk-9rks3bc7.js +1 -0
- package/dist/chunk-9skn642s.js +1 -0
- package/dist/chunk-9xaygaay.js +2 -0
- package/dist/chunk-9xcz69sj.js +1 -0
- package/dist/chunk-9xp471ze.js +1 -0
- package/dist/chunk-9xtq15gy.js +1 -0
- package/dist/chunk-a07p1cfs.js +1 -0
- package/dist/chunk-a0jc9gfw.js +1 -0
- package/dist/chunk-a1s72wx6.js +1 -0
- package/dist/chunk-a22ebaj5.js +1 -0
- package/dist/chunk-a4ah9wgn.js +1 -0
- package/dist/chunk-a5k1t6aj.js +1 -0
- package/dist/chunk-ajxzbnbp.js +1 -0
- package/dist/{chunk-bgpcx3bm.js → chunk-axn0n4dh.js} +2 -2
- package/dist/chunk-b3s0bcp6.js +1 -0
- package/dist/chunk-b6xdt5xb.js +1 -0
- package/dist/chunk-b79d73fy.js +1 -0
- package/dist/chunk-b7h6wk4v.js +1 -0
- package/dist/chunk-b9s35wb6.js +1 -0
- package/dist/chunk-bc95nfbs.js +1 -0
- package/dist/chunk-bcwnznke.js +1 -0
- package/dist/chunk-bh05aqrf.js +2 -0
- package/dist/chunk-bj4851d8.js +1 -0
- package/dist/chunk-bkan2fr3.js +1 -0
- package/dist/chunk-bmb36b05.js +1 -0
- package/dist/chunk-bnma63xz.js +1 -0
- package/dist/chunk-bnrv5f66.js +2 -0
- package/dist/chunk-brcvpmwp.js +1 -0
- package/dist/chunk-bwcdkk1e.js +2 -0
- package/dist/chunk-bwvxp5dp.js +1 -0
- package/dist/chunk-by1h1fy3.js +1 -0
- package/dist/chunk-c04rr3mc.js +1 -0
- package/dist/chunk-c2gqabg2.js +1 -0
- package/dist/{chunk-vkng13p1.js → chunk-cd3rdhh1.js} +3 -3
- package/dist/chunk-cdp5c1vf.js +1 -0
- package/dist/chunk-cfsnygh0.js +1 -0
- package/dist/chunk-cmfrm6a7.js +2 -0
- package/dist/chunk-cypczp4s.js +1 -0
- package/dist/chunk-czkt4sv0.js +1 -0
- package/dist/chunk-d20g16c2.js +1 -0
- package/dist/chunk-d7b0m60j.js +1 -0
- package/dist/chunk-d9hpz80s.js +2 -0
- package/dist/chunk-daahmb61.js +1 -0
- package/dist/{chunk-yaa4eesd.js → chunk-dchaphvw.js} +2 -2
- package/dist/chunk-dee62n5c.js +1 -0
- package/dist/chunk-dj82prdc.js +1 -0
- package/dist/chunk-dn2fe6a4.js +1 -0
- package/dist/chunk-dne3hqde.js +1 -0
- package/dist/chunk-dpa9tgf6.js +2 -0
- package/dist/chunk-dtha8g8n.js +1 -0
- package/dist/chunk-dxg8cctv.js +2 -0
- package/dist/chunk-dxyv2b1c.js +1 -0
- package/dist/chunk-e07gx0kg.js +1 -0
- package/dist/{chunk-wwn7gw8g.js → chunk-e3narvkn.js} +3 -3
- package/dist/chunk-e43hpgc8.js +1 -0
- package/dist/chunk-eceb8jjd.js +1 -0
- package/dist/chunk-en2d49a7.js +1 -0
- package/dist/chunk-en6q3h2k.js +1 -0
- package/dist/chunk-er06b5kx.js +2 -0
- package/dist/chunk-ewgpt1pm.js +1 -0
- package/dist/chunk-exj3mryv.js +1 -0
- package/dist/chunk-f4cn2y4x.js +1 -0
- package/dist/chunk-f6rsbhs6.js +1 -0
- package/dist/chunk-f7rxszbz.js +1 -0
- package/dist/chunk-fdvezfdb.js +1 -0
- package/dist/chunk-fesyrdnx.js +1 -0
- package/dist/chunk-ffyj4q4f.js +1 -0
- package/dist/chunk-fg2zmrdg.js +1 -0
- package/dist/chunk-fj71pv2k.js +1 -0
- package/dist/chunk-fm4a6pgp.js +1 -0
- package/dist/chunk-fsh8c4gw.js +1 -0
- package/dist/chunk-fsqndb8n.js +1 -0
- package/dist/chunk-ft4z3z88.js +2 -0
- package/dist/chunk-ftc3mh9t.js +1 -0
- package/dist/chunk-fwmc6hwy.js +1 -0
- package/dist/chunk-fyay9ztg.js +1 -0
- package/dist/chunk-g0c5mmdz.js +1 -0
- package/dist/{chunk-15smn69q.js → chunk-g0fa5dyc.js} +2 -2
- package/dist/chunk-g1r86637.js +1 -0
- package/dist/chunk-g1z6k96z.js +1 -0
- package/dist/chunk-g3p0vcay.js +2 -0
- package/dist/chunk-gc0daqhj.js +1 -0
- package/dist/chunk-ggwb349q.js +1 -0
- package/dist/chunk-gt6xd3pb.js +1 -0
- package/dist/chunk-gz0bg0j5.js +1 -0
- package/dist/chunk-h1j74efh.js +1 -0
- package/dist/chunk-h77takma.js +1 -0
- package/dist/chunk-hd39y2wf.js +1 -0
- package/dist/chunk-hqhqqe9q.js +1 -0
- package/dist/chunk-hsq3vxna.js +2 -0
- package/dist/chunk-httqsv3p.js +1 -0
- package/dist/{chunk-9k57afdm.js → chunk-j07r3an3.js} +1 -1
- package/dist/chunk-j2vek58t.js +1 -0
- package/dist/chunk-j3c65h0m.js +1 -0
- package/dist/chunk-j4c847h3.js +1 -0
- package/dist/chunk-j7dazkh4.js +1 -0
- package/dist/chunk-j9bkjc22.js +1 -0
- package/dist/chunk-jeavnd8g.js +1 -0
- package/dist/chunk-jk42e7d2.js +1 -0
- package/dist/chunk-jmp4rprf.js +1 -0
- package/dist/chunk-jn4wgzaz.js +1 -0
- package/dist/chunk-jpkm78je.js +1 -0
- package/dist/{chunk-9kc9cea3.js → chunk-jrmcscsp.js} +2 -2
- package/dist/chunk-jv8shhgk.js +1 -0
- package/dist/chunk-jva13pdt.js +1 -0
- package/dist/chunk-jw043xpz.js +1 -0
- package/dist/chunk-jwtpf45z.js +1 -0
- package/dist/chunk-k06v7jh2.js +1 -0
- package/dist/chunk-k45jk0ge.js +1 -0
- package/dist/chunk-kbaz8s34.js +1 -0
- package/dist/chunk-kephawnc.js +1 -0
- package/dist/chunk-khd8ds90.js +1 -0
- package/dist/chunk-kkk1k414.js +1 -0
- package/dist/{chunk-cze71w02.js → chunk-kn8f91na.js} +1 -1
- package/dist/chunk-kny33kyv.js +2 -0
- package/dist/{chunk-j204fejq.js → chunk-ksx0ymk7.js} +1 -1
- package/dist/chunk-kvb035wf.js +2 -0
- package/dist/chunk-kwhma00c.js +1 -0
- package/dist/chunk-ky2zgpqq.js +1 -0
- package/dist/chunk-kz78gsrq.js +1 -0
- package/dist/chunk-kz9rfhe3.js +1 -0
- package/dist/chunk-kzafnaxn.js +1 -0
- package/dist/chunk-m0czpwvf.js +1 -0
- package/dist/chunk-m0k36mwn.js +1 -0
- package/dist/chunk-m5rj1w7e.js +1 -0
- package/dist/chunk-mgkmr3xy.js +1 -0
- package/dist/chunk-mkzpj7ht.js +1 -0
- package/dist/chunk-mnxav3bw.js +1 -0
- package/dist/chunk-mp159559.js +2 -0
- package/dist/chunk-mttnv195.js +1 -0
- package/dist/chunk-mwqg224k.js +1 -0
- package/dist/chunk-mx8stxha.js +1 -0
- package/dist/chunk-mxwqk6ht.js +1 -0
- package/dist/chunk-my5y2p5a.js +1 -0
- package/dist/{chunk-jkbtx9va.js → chunk-myx87v1y.js} +1 -1
- package/dist/chunk-n3e766aj.js +1 -0
- package/dist/chunk-n4s96jdz.js +1 -0
- package/dist/chunk-n9yfs19q.js +1 -0
- package/dist/chunk-na5z94zg.js +2 -0
- package/dist/chunk-nay5m04y.js +1 -0
- package/dist/chunk-nq1k5tw4.js +1 -0
- package/dist/chunk-ntc51kg0.js +1 -0
- package/dist/{chunk-h5nnz4dy.js → chunk-ntcxtgqe.js} +1 -1
- package/dist/chunk-nvynvczn.js +1 -0
- package/dist/chunk-ny0zjscg.js +1 -0
- package/dist/chunk-nzfjhsr7.js +1 -0
- package/dist/chunk-p0ys44e5.js +1 -0
- package/dist/chunk-p1e4d1an.js +1 -0
- package/dist/chunk-p3yymm16.js +1 -0
- package/dist/chunk-p57dfnmm.js +1 -0
- package/dist/chunk-p8pfkf84.js +1 -0
- package/dist/chunk-pdfvchxr.js +1 -0
- package/dist/chunk-pht0yvya.js +1 -0
- package/dist/chunk-pr8jrhq9.js +1 -0
- package/dist/{chunk-q8arjxg1.js → chunk-pz1y3zyg.js} +1 -1
- package/dist/chunk-q2qcexv0.js +1 -0
- package/dist/{chunk-5wn1nfqy.js → chunk-q37swcyw.js} +2 -2
- package/dist/chunk-q9w8vj93.js +2 -0
- package/dist/chunk-q9wkyq6a.js +1 -0
- package/dist/chunk-qcyfn6sh.js +1 -0
- package/dist/chunk-qddn1sea.js +1 -0
- package/dist/chunk-qhs3hh67.js +1 -0
- package/dist/chunk-qrr2ytkg.js +2 -0
- package/dist/{chunk-s3fyfrka.js → chunk-r038t2rw.js} +2 -2
- package/dist/chunk-r53nsqbh.js +1 -0
- package/dist/chunk-rgc9k4rf.js +2 -0
- package/dist/chunk-rnpfchb9.js +1 -0
- package/dist/chunk-s237yqg5.js +1 -0
- package/dist/chunk-s4ksgmax.js +1 -0
- package/dist/chunk-s6qt552a.js +1 -0
- package/dist/chunk-s7qqrnzh.js +1 -0
- package/dist/chunk-satxmrvx.js +1 -0
- package/dist/chunk-sbcw8d8z.js +1 -0
- package/dist/chunk-sch9d3fe.js +1 -0
- package/dist/chunk-sd9rvjt6.js +1 -0
- package/dist/chunk-sdr9ywjt.js +1 -0
- package/dist/chunk-sexnhyqf.js +1 -0
- package/dist/chunk-sjkk13dd.js +1 -0
- package/dist/chunk-skh4rx0s.js +1 -0
- package/dist/chunk-srtwf73c.js +1 -0
- package/dist/chunk-svcy27ht.js +1 -0
- package/dist/chunk-sw4h382q.js +1 -0
- package/dist/chunk-sy7vf5c5.js +1 -0
- package/dist/chunk-sz3tq28n.js +2 -0
- package/dist/chunk-t1pybn6p.js +1 -0
- package/dist/chunk-t3q0fpe0.js +1 -0
- package/dist/chunk-t49vbac9.js +1 -0
- package/dist/chunk-t6bb31dn.js +1 -0
- package/dist/chunk-t7qx43hg.js +1 -0
- package/dist/{chunk-6ty22kkt.js → chunk-t7zrr341.js} +1 -1
- package/dist/chunk-tfqwrnhz.js +1 -0
- package/dist/chunk-tjj6zd94.js +2 -0
- package/dist/chunk-tr01bt0h.js +1 -0
- package/dist/chunk-tv25zrtk.js +1 -0
- package/dist/chunk-txdyy4ya.js +1 -0
- package/dist/chunk-v02wftj8.js +1 -0
- package/dist/chunk-v667b8k4.js +1 -0
- package/dist/chunk-v6faz3vj.js +1 -0
- package/dist/chunk-v6nssgv7.js +1 -0
- package/dist/chunk-vbwkgvhq.js +1 -0
- package/dist/chunk-vcbgawge.js +1 -0
- package/dist/chunk-vd8byz1r.js +2 -0
- package/dist/chunk-vdd1xyrt.js +1 -0
- package/dist/chunk-vfwh7m86.js +1 -0
- package/dist/chunk-vg1dem7m.js +1 -0
- package/dist/chunk-vkfgx6sa.js +2 -0
- package/dist/{chunk-vjj00e3e.js → chunk-vpah11mp.js} +2 -2
- package/dist/chunk-vpbyhd1b.js +1 -0
- package/dist/chunk-vrjcy7h1.js +1 -0
- package/dist/chunk-vs72fgve.js +1 -0
- package/dist/chunk-vsedmhna.js +1 -0
- package/dist/chunk-vtxyeepe.js +2 -0
- package/dist/{chunk-kbs4px1b.js → chunk-vxdkfxtq.js} +1 -1
- package/dist/{chunk-7dp8kq2f.js → chunk-vxggg3ea.js} +2 -2
- package/dist/chunk-vxzy50p0.js +1 -0
- package/dist/chunk-w3y3sdmt.js +1 -0
- package/dist/chunk-w4kh5s54.js +1 -0
- package/dist/{chunk-vc384abg.js → chunk-wbcfbyft.js} +1 -1
- package/dist/chunk-we3jwpsb.js +2 -0
- package/dist/chunk-wgwaq8q1.js +1 -0
- package/dist/chunk-wkvnhk36.js +1 -0
- package/dist/chunk-wp436n3r.js +1 -0
- package/dist/{chunk-3n2b4eb4.js → chunk-wxm0c8ec.js} +2 -2
- package/dist/chunk-wy3eznsy.js +2 -0
- package/dist/chunk-x0gm6db7.js +1 -0
- package/dist/chunk-x0xaw21f.js +1 -0
- package/dist/chunk-x6je1qsq.js +1 -0
- package/dist/chunk-x866vcqf.js +1 -0
- package/dist/{chunk-sft6ep0c.js → chunk-xc8efvab.js} +1 -1
- package/dist/chunk-xcea0hn5.js +2 -0
- package/dist/chunk-xg586hyh.js +1 -0
- package/dist/{chunk-kxk71nn0.js → chunk-xh3gtpfd.js} +1 -1
- package/dist/chunk-xkfzt78k.js +1 -0
- package/dist/chunk-xkvnfywa.js +1 -0
- package/dist/chunk-xqhnnbfr.js +1 -0
- package/dist/chunk-xtrkc4bn.js +1 -0
- package/dist/chunk-xxwnet5y.js +1 -0
- package/dist/chunk-y62ja3na.js +1 -0
- package/dist/chunk-y7qk76sv.js +1 -0
- package/dist/chunk-yd3vzgxs.js +1 -0
- package/dist/chunk-yd6e0k1x.js +1 -0
- package/dist/chunk-yhpg01ds.js +1 -0
- package/dist/chunk-yj3fncjn.js +1 -0
- package/dist/chunk-yk20e377.js +1 -0
- package/dist/chunk-ynjy01zm.js +1 -0
- package/dist/chunk-yynk0bam.js +1 -0
- package/dist/chunk-yyr27vj3.js +1 -0
- package/dist/chunk-yzgwn422.js +1 -0
- package/dist/chunk-z578v7vz.js +1 -0
- package/dist/chunk-zag96nyc.js +2 -0
- package/dist/chunk-zcg0fy8h.js +1 -0
- package/dist/chunk-zed64rf0.js +1 -0
- package/dist/chunk-zf96st2f.js +1 -0
- package/dist/chunk-zgnjqvkp.js +1 -0
- package/dist/chunk-zgyww0w8.js +1 -0
- package/dist/chunk-zj03ksjd.js +1 -0
- package/dist/chunk-zq5ncapf.js +1 -0
- package/dist/chunk-zqg7xzex.js +1 -0
- package/dist/{chunk-n1d8xx5k.js → chunk-zqx4fcfe.js} +1 -1
- package/dist/chunk-zt78xjtr.js +2 -0
- package/dist/chunk-zv0nefnm.js +1 -0
- package/dist/chunk-zv3jegxm.js +1 -0
- package/dist/chunk-zv9ac3c0.js +2 -0
- package/dist/chunk-zwhbdwnt.js +1 -0
- package/dist/chunk-zx19re81.js +2 -0
- package/dist/chunk-zxqs1xns.js +1 -0
- package/dist/cli.js +1 -1
- package/dist/nonInteractive.js +1 -1
- package/dist/zen-keyboard.js +1 -1
- package/package.json +8 -7
- package/dist/chunk-3jek9sxm.js +0 -2
- package/dist/chunk-3znrwnd8.js +0 -1
- package/dist/chunk-4b8yaknt.js +0 -1
- package/dist/chunk-5nzs0q25.js +0 -1
- package/dist/chunk-70a0e941.js +0 -1
- package/dist/chunk-8nhayyat.js +0 -1
- package/dist/chunk-cga0m5sy.js +0 -1
- package/dist/chunk-e0sqjq2h.js +0 -1
- package/dist/chunk-efhkdw2z.js +0 -1
- package/dist/chunk-ew7249h9.js +0 -1
- package/dist/chunk-hww94vjn.js +0 -1
- package/dist/chunk-k67epfhc.js +0 -1
- package/dist/chunk-keqk70wm.js +0 -2
- package/dist/chunk-mg8zpgaz.js +0 -1
- package/dist/chunk-ndtwq2zx.js +0 -2
- package/dist/chunk-pdkbrds7.js +0 -1
- package/dist/chunk-rdc9pxf6.js +0 -1
- package/dist/chunk-wbn1hbxf.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.freeze(JSON.parse('{"displayName":"YAML","fileTypes":["yaml","yml","rviz","reek","clang-format","yaml-tmlanguage","syntax","sublime-syntax"],"firstLineMatch":"^%YAML( ?1.\\\\d+)?","name":"yaml","patterns":[{"include":"#comment"},{"include":"#property"},{"include":"#directive"},{"match":"^---","name":"entity.other.document.begin.yaml"},{"match":"^\\\\.{3}","name":"entity.other.document.end.yaml"},{"include":"#node"}],"repository":{"block-collection":{"patterns":[{"include":"#block-sequence"},{"include":"#block-mapping"}]},"block-mapping":{"patterns":[{"include":"#block-pair"}]},"block-node":{"patterns":[{"include":"#prototype"},{"include":"#block-scalar"},{"include":"#block-collection"},{"include":"#flow-scalar-plain-out"},{"include":"#flow-node"}]},"block-pair":{"patterns":[{"begin":"\\\\?","beginCaptures":{"1":{"name":"punctuation.definition.key-value.begin.yaml"}},"end":"(?=\\\\?)|^ *(:)|(:)","endCaptures":{"1":{"name":"punctuation.separator.key-value.mapping.yaml"},"2":{"name":"invalid.illegal.expected-newline.yaml"}},"name":"meta.block-mapping.yaml","patterns":[{"include":"#block-node"}]},{"begin":"(?=(?:[^-\\\\]!\\"#%\\\\&\'*,:>?@\\\\[`{|}\\\\s]|[-:?]\\\\S)([^:\\\\s]|:\\\\S|\\\\s+(?![#\\\\s]))*\\\\s*:(\\\\s|$))","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","patterns":[{"include":"#flow-scalar-plain-out-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&\'*,:>?@\\\\[`{|}\\\\s]|[-:?]\\\\S","beginCaptures":{"0":{"name":"entity.name.tag.yaml"}},"contentName":"entity.name.tag.yaml","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","name":"string.unquoted.plain.out.yaml"}]},{"match":":(?=\\\\s|$)","name":"punctuation.separator.key-value.mapping.yaml"}]},"block-scalar":{"begin":"(?:(\\\\|)|(>))([1-9])?([-+])?(.*\\\\n?)","beginCaptures":{"1":{"name":"keyword.control.flow.block-scalar.literal.yaml"},"2":{"name":"keyword.control.flow.block-scalar.folded.yaml"},"3":{"name":"constant.numeric.indentation-indicator.yaml"},"4":{"name":"storage.modifier.chomping-indicator.yaml"},"5":{"patterns":[{"include":"#comment"},{"match":".+","name":"invalid.illegal.expected-comment-or-newline.yaml"}]}},"end":"^(?=\\\\S)|(?!\\\\G)","patterns":[{"begin":"^( +)(?! )","end":"^(?!\\\\1|\\\\s*$)","name":"string.unquoted.block.yaml"}]},"block-sequence":{"match":"(-)(?!\\\\S)","name":"punctuation.definition.block.sequence.item.yaml"},"comment":{"begin":"(?:^([\\\\t ]*)|[\\\\t ]+)(?=#\\\\p{print}*$)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.yaml"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.yaml"}},"end":"\\\\n","name":"comment.line.number-sign.yaml"}]},"directive":{"begin":"^%","beginCaptures":{"0":{"name":"punctuation.definition.directive.begin.yaml"}},"end":"(?=$|[\\\\t ]+($|#))","name":"meta.directive.yaml","patterns":[{"captures":{"1":{"name":"keyword.other.directive.yaml.yaml"},"2":{"name":"constant.numeric.yaml-version.yaml"}},"match":"\\\\G(YAML)[\\\\t ]+(\\\\d+\\\\.\\\\d+)"},{"captures":{"1":{"name":"keyword.other.directive.tag.yaml"},"2":{"name":"storage.type.tag-handle.yaml"},"3":{"name":"support.type.tag-prefix.yaml"}},"match":"\\\\G(TAG)(?:[\\\\t ]+(!(?:[-0-9A-Za-z]*!)?)(?:[\\\\t ]+(!(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])*|(?![]!,\\\\[{}])(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])+))?)?"},{"captures":{"1":{"name":"support.other.directive.reserved.yaml"},"2":{"name":"string.unquoted.directive-name.yaml"},"3":{"name":"string.unquoted.directive-parameter.yaml"}},"match":"\\\\G(\\\\w+)(?:[\\\\t ]+(\\\\w+)(?:[\\\\t ]+(\\\\w+))?)?"},{"match":"\\\\S+","name":"invalid.illegal.unrecognized.yaml"}]},"flow-alias":{"captures":{"1":{"name":"keyword.control.flow.alias.yaml"},"2":{"name":"punctuation.definition.alias.yaml"},"3":{"name":"variable.other.alias.yaml"},"4":{"name":"invalid.illegal.character.anchor.yaml"}},"match":"((\\\\*))([^],/\\\\[{}\\\\s]+)([^],}\\\\s]\\\\S*)?"},"flow-collection":{"patterns":[{"include":"#flow-sequence"},{"include":"#flow-mapping"}]},"flow-mapping":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.mapping.begin.yaml"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.mapping.end.yaml"}},"name":"meta.flow-mapping.yaml","patterns":[{"include":"#prototype"},{"match":",","name":"punctuation.separator.mapping.yaml"},{"include":"#flow-pair"}]},"flow-node":{"patterns":[{"include":"#prototype"},{"include":"#flow-alias"},{"include":"#flow-collection"},{"include":"#flow-scalar"}]},"flow-pair":{"patterns":[{"begin":"\\\\?","beginCaptures":{"0":{"name":"punctuation.definition.key-value.begin.yaml"}},"end":"(?=[],}])","name":"meta.flow-pair.explicit.yaml","patterns":[{"include":"#prototype"},{"include":"#flow-pair"},{"include":"#flow-node"},{"begin":":(?=\\\\s|$|[],\\\\[{}])","beginCaptures":{"0":{"name":"punctuation.separator.key-value.mapping.yaml"}},"end":"(?=[],}])","patterns":[{"include":"#flow-value"}]}]},{"begin":"(?=(?:[^-\\\\]!\\"#%\\\\&\'*,:>?@\\\\[`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s])([^],:\\\\[{}\\\\s]|:[^],\\\\[{}\\\\s]|\\\\s+(?![#\\\\s]))*\\\\s*:(\\\\s|$))","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"meta.flow-pair.key.yaml","patterns":[{"include":"#flow-scalar-plain-in-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&\'*,:>?@\\\\[`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s]","beginCaptures":{"0":{"name":"entity.name.tag.yaml"}},"contentName":"entity.name.tag.yaml","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"string.unquoted.plain.in.yaml"}]},{"include":"#flow-node"},{"begin":":(?=\\\\s|$|[],\\\\[{}])","captures":{"0":{"name":"punctuation.separator.key-value.mapping.yaml"}},"end":"(?=[],}])","name":"meta.flow-pair.yaml","patterns":[{"include":"#flow-value"}]}]},"flow-scalar":{"patterns":[{"include":"#flow-scalar-double-quoted"},{"include":"#flow-scalar-single-quoted"},{"include":"#flow-scalar-plain-in"}]},"flow-scalar-double-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yaml"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.yaml"}},"name":"string.quoted.double.yaml","patterns":[{"match":"\\\\\\\\([ \\"/0LN\\\\\\\\_abefnprtv]|x\\\\d\\\\d|u\\\\d{4}|U\\\\d{8})","name":"constant.character.escape.yaml"},{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.double-quoted.newline.yaml"}]},"flow-scalar-plain-in":{"patterns":[{"include":"#flow-scalar-plain-in-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&\'*,:>?@\\\\[`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s]","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"string.unquoted.plain.in.yaml"}]},"flow-scalar-plain-in-implicit-type":{"patterns":[{"captures":{"1":{"name":"constant.language.null.yaml"},"2":{"name":"constant.language.boolean.yaml"},"3":{"name":"constant.numeric.integer.yaml"},"4":{"name":"constant.numeric.float.yaml"},"5":{"name":"constant.other.timestamp.yaml"},"6":{"name":"constant.language.value.yaml"},"7":{"name":"constant.language.merge.yaml"}},"match":"(?:(null|Null|NULL|~)|([Yy]|yes|Yes|YES|[Nn]|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)|([-+]?0b[01_]+|[-+]?0[0-7_]+|[-+]?(?:0|[1-9][0-9_]*)|[-+]?0x[_\\\\h]+|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)|([-+]?(?:[0-9][0-9_]*)?\\\\.[.0-9]*(?:[Ee][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\\\.[0-9_]*|[-+]?\\\\.(?:inf|Inf|INF)|\\\\.(?:nan|NaN|NAN))|(\\\\d{4}-\\\\d{2}-\\\\d{2}|\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}(?:[Tt]|[\\\\t ]+)\\\\d{1,2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d*)?(?:[\\\\t ]*Z|[-+]\\\\d{1,2}(?::\\\\d{1,2})?)?)|(=)|(<<))(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])"}]},"flow-scalar-plain-out":{"patterns":[{"include":"#flow-scalar-plain-out-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&\'*,:>?@\\\\[`{|}\\\\s]|[-:?]\\\\S","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","name":"string.unquoted.plain.out.yaml"}]},"flow-scalar-plain-out-implicit-type":{"patterns":[{"captures":{"1":{"name":"constant.language.null.yaml"},"2":{"name":"constant.language.boolean.yaml"},"3":{"name":"constant.numeric.integer.yaml"},"4":{"name":"constant.numeric.float.yaml"},"5":{"name":"constant.other.timestamp.yaml"},"6":{"name":"constant.language.value.yaml"},"7":{"name":"constant.language.merge.yaml"}},"match":"(?:(null|Null|NULL|~)|([Yy]|yes|Yes|YES|[Nn]|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)|([-+]?0b[01_]+|[-+]?0[0-7_]+|[-+]?(?:0|[1-9][0-9_]*)|[-+]?0x[_\\\\h]+|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)|([-+]?(?:[0-9][0-9_]*)?\\\\.[.0-9]*(?:[Ee][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\\\.[0-9_]*|[-+]?\\\\.(?:inf|Inf|INF)|\\\\.(?:nan|NaN|NAN))|(\\\\d{4}-\\\\d{2}-\\\\d{2}|\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}(?:[Tt]|[\\\\t ]+)\\\\d{1,2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d*)?(?:[\\\\t ]*Z|[-+]\\\\d{1,2}(?::\\\\d{1,2})?)?)|(=)|(<<))(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))"}]},"flow-scalar-single-quoted":{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yaml"}},"end":"\'(?!\')","endCaptures":{"0":{"name":"punctuation.definition.string.end.yaml"}},"name":"string.quoted.single.yaml","patterns":[{"match":"\'\'","name":"constant.character.escape.single-quoted.yaml"}]},"flow-sequence":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.sequence.begin.yaml"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.sequence.end.yaml"}},"name":"meta.flow-sequence.yaml","patterns":[{"include":"#prototype"},{"match":",","name":"punctuation.separator.sequence.yaml"},{"include":"#flow-pair"},{"include":"#flow-node"}]},"flow-value":{"patterns":[{"begin":"\\\\G(?![],}])","end":"(?=[],}])","name":"meta.flow-pair.value.yaml","patterns":[{"include":"#flow-node"}]}]},"node":{"patterns":[{"include":"#block-node"}]},"property":{"begin":"(?=[!\\\\&])","end":"(?!\\\\G)","name":"meta.property.yaml","patterns":[{"captures":{"1":{"name":"keyword.control.property.anchor.yaml"},"2":{"name":"punctuation.definition.anchor.yaml"},"3":{"name":"entity.name.type.anchor.yaml"},"4":{"name":"invalid.illegal.character.anchor.yaml"}},"match":"\\\\G((&))([^],/\\\\[{}\\\\s]+)(\\\\S+)?"},{"match":"\\\\G!(?:<(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])+>|(?:[-0-9A-Za-z]*!)?(?:%\\\\h{2}|[#$\\\\&-+\\\\--;=?-Z_a-z~])+|)(?=[\\\\t ]|$)","name":"storage.type.tag-handle.yaml"},{"match":"\\\\S+","name":"invalid.illegal.tag-handle.yaml"}]},"prototype":{"patterns":[{"include":"#comment"},{"include":"#property"}]}},"scopeName":"source.yaml","aliases":["yml"]}')),n=[e];
|
|
2
|
+
export{n as q};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{nb as K0,ob as P,rb as R}from"./chunk-cze71w02.js";var C=P((j4,h0)=>{var g0=["nodebuffer","arraybuffer","fragments"],w0=typeof Blob<"u";if(w0)g0.push("blob");h0.exports={BINARY_TYPES:g0,CLOSE_TIMEOUT:30000,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:w0,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var n=P((Y4,X0)=>{var{EMPTY_BUFFER:l5}=C(),F0=Buffer[Symbol.species];function p5(J,K){if(J.length===0)return l5;if(J.length===1)return J[0];let X=Buffer.allocUnsafe(K),Z=0;for(let $=0;$<J.length;$++){let Q=J[$];X.set(Q,Z),Z+=Q.length}if(Z<K)return new F0(X.buffer,X.byteOffset,Z);return X}function m0(J,K,X,Z,$){for(let Q=0;Q<$;Q++)X[Z+Q]=J[Q]^K[Q&3]}function f0(J,K){for(let X=0;X<J.length;X++)J[X]^=K[X&3]}function b5(J){if(J.length===J.buffer.byteLength)return J.buffer;return J.buffer.slice(J.byteOffset,J.byteOffset+J.length)}function D0(J){if(D0.readOnly=!0,Buffer.isBuffer(J))return J;let K;if(J instanceof ArrayBuffer)K=new F0(J);else if(ArrayBuffer.isView(J))K=new F0(J.buffer,J.byteOffset,J.byteLength);else K=Buffer.from(J),D0.readOnly=!1;return K}X0.exports={concat:p5,mask:m0,toArrayBuffer:b5,toBuffer:D0,unmask:f0};if(!process.env.WS_NO_BUFFER_UTIL)try{let J=(()=>{throw new Error("Cannot require module "+"bufferutil");})();X0.exports.mask=function(K,X,Z,$,Q){if(Q<48)m0(K,X,Z,$,Q);else J.mask(K,X,Z,$,Q)},X0.exports.unmask=function(K,X){if(K.length<32)f0(K,X);else J.unmask(K,X)}}catch(J){}});var b0=P((V4,p0)=>{var u0=Symbol("kDone"),O0=Symbol("kRun");class l0{constructor(J){this[u0]=()=>{this.pending--,this[O0]()},this.concurrency=J||1/0,this.jobs=[],this.pending=0}add(J){this.jobs.push(J),this[O0]()}[O0](){if(this.pending===this.concurrency)return;if(this.jobs.length){let J=this.jobs.shift();this.pending++,J(this[u0])}}}p0.exports=l0});var a=P((_4,n0)=>{var r=R("zlib"),k0=n(),k5=b0(),{kStatusCode:i0}=C(),i5=Buffer[Symbol.species],d5=Buffer.from([0,0,255,255]),$0=Symbol("permessage-deflate"),q=Symbol("total-length"),f=Symbol("callback"),L=Symbol("buffers"),u=Symbol("error"),Z0;class d0{constructor(J,K,X){if(this._maxPayload=X|0,this._options=J||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!K,this._deflate=null,this._inflate=null,this.params=null,!Z0){let Z=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;Z0=new k5(Z)}}static get extensionName(){return"permessage-deflate"}offer(){let J={};if(this._options.serverNoContextTakeover)J.server_no_context_takeover=!0;if(this._options.clientNoContextTakeover)J.client_no_context_takeover=!0;if(this._options.serverMaxWindowBits)J.server_max_window_bits=this._options.serverMaxWindowBits;if(this._options.clientMaxWindowBits)J.client_max_window_bits=this._options.clientMaxWindowBits;else if(this._options.clientMaxWindowBits==null)J.client_max_window_bits=!0;return J}accept(J){return J=this.normalizeParams(J),this.params=this._isServer?this.acceptAsServer(J):this.acceptAsClient(J),this.params}cleanup(){if(this._inflate)this._inflate.close(),this._inflate=null;if(this._deflate){let J=this._deflate[f];if(this._deflate.close(),this._deflate=null,J)J(Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(J){let K=this._options,X=J.find((Z)=>{if(K.serverNoContextTakeover===!1&&Z.server_no_context_takeover||Z.server_max_window_bits&&(K.serverMaxWindowBits===!1||typeof K.serverMaxWindowBits==="number"&&K.serverMaxWindowBits>Z.server_max_window_bits)||typeof K.clientMaxWindowBits==="number"&&!Z.client_max_window_bits)return!1;return!0});if(!X)throw Error("None of the extension offers can be accepted");if(K.serverNoContextTakeover)X.server_no_context_takeover=!0;if(K.clientNoContextTakeover)X.client_no_context_takeover=!0;if(typeof K.serverMaxWindowBits==="number")X.server_max_window_bits=K.serverMaxWindowBits;if(typeof K.clientMaxWindowBits==="number")X.client_max_window_bits=K.clientMaxWindowBits;else if(X.client_max_window_bits===!0||K.clientMaxWindowBits===!1)delete X.client_max_window_bits;return X}acceptAsClient(J){let K=J[0];if(this._options.clientNoContextTakeover===!1&&K.client_no_context_takeover)throw Error('Unexpected parameter "client_no_context_takeover"');if(!K.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number")K.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==="number"&&K.client_max_window_bits>this._options.clientMaxWindowBits)throw Error('Unexpected or invalid parameter "client_max_window_bits"');return K}normalizeParams(J){return J.forEach((K)=>{Object.keys(K).forEach((X)=>{let Z=K[X];if(Z.length>1)throw Error(`Parameter "${X}" must have only a single value`);if(Z=Z[0],X==="client_max_window_bits"){if(Z!==!0){let $=+Z;if(!Number.isInteger($)||$<8||$>15)throw TypeError(`Invalid value for parameter "${X}": ${Z}`);Z=$}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${X}": ${Z}`)}else if(X==="server_max_window_bits"){let $=+Z;if(!Number.isInteger($)||$<8||$>15)throw TypeError(`Invalid value for parameter "${X}": ${Z}`);Z=$}else if(X==="client_no_context_takeover"||X==="server_no_context_takeover"){if(Z!==!0)throw TypeError(`Invalid value for parameter "${X}": ${Z}`)}else throw Error(`Unknown parameter "${X}"`);K[X]=Z})}),J}decompress(J,K,X){Z0.add((Z)=>{this._decompress(J,K,($,Q)=>{Z(),X($,Q)})})}compress(J,K,X){Z0.add((Z)=>{this._compress(J,K,($,Q)=>{Z(),X($,Q)})})}_decompress(J,K,X){let Z=this._isServer?"client":"server";if(!this._inflate){let $=`${Z}_max_window_bits`,Q=typeof this.params[$]!=="number"?r.Z_DEFAULT_WINDOWBITS:this.params[$];this._inflate=r.createInflateRaw({...this._options.zlibInflateOptions,windowBits:Q}),this._inflate[$0]=this,this._inflate[q]=0,this._inflate[L]=[],this._inflate.on("error",n5),this._inflate.on("data",c0)}if(this._inflate[f]=X,this._inflate.write(J),K)this._inflate.write(d5);this._inflate.flush(()=>{let $=this._inflate[u];if($){this._inflate.close(),this._inflate=null,X($);return}let Q=k0.concat(this._inflate[L],this._inflate[q]);if(this._inflate._readableState.endEmitted)this._inflate.close(),this._inflate=null;else if(this._inflate[q]=0,this._inflate[L]=[],K&&this.params[`${Z}_no_context_takeover`])this._inflate.reset();X(null,Q)})}_compress(J,K,X){let Z=this._isServer?"server":"client";if(!this._deflate){let $=`${Z}_max_window_bits`,Q=typeof this.params[$]!=="number"?r.Z_DEFAULT_WINDOWBITS:this.params[$];this._deflate=r.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:Q}),this._deflate[q]=0,this._deflate[L]=[],this._deflate.on("data",c5)}this._deflate[f]=X,this._deflate.write(J),this._deflate.flush(r.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let $=k0.concat(this._deflate[L],this._deflate[q]);if(K)$=new i5($.buffer,$.byteOffset,$.length-4);if(this._deflate[f]=null,this._deflate[q]=0,this._deflate[L]=[],K&&this.params[`${Z}_no_context_takeover`])this._deflate.reset();X(null,$)})}}n0.exports=d0;function c5(J){this[L].push(J),this[q]+=J.length}function c0(J){if(this[q]+=J.length,this[$0]._maxPayload<1||this[q]<=this[$0]._maxPayload){this[L].push(J);return}this[u]=RangeError("Max payload size exceeded"),this[u].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[u][i0]=1009,this.removeListener("data",c0),this.reset()}function n5(J){if(this[$0]._inflate=null,this[u]){this[f](this[u]);return}J[i0]=1007,this[f](J)}});var l=P((N4,Q0)=>{var{isUtf8:r0}=R("buffer"),{hasBlob:r5}=C(),a5=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function s5(J){return J>=1000&&J<=1014&&J!==1004&&J!==1005&&J!==1006||J>=3000&&J<=4999}function P0(J){let K=J.length,X=0;while(X<K)if((J[X]&128)===0)X++;else if((J[X]&224)===192){if(X+1===K||(J[X+1]&192)!==128||(J[X]&254)===192)return!1;X+=2}else if((J[X]&240)===224){if(X+2>=K||(J[X+1]&192)!==128||(J[X+2]&192)!==128||J[X]===224&&(J[X+1]&224)===128||J[X]===237&&(J[X+1]&224)===160)return!1;X+=3}else if((J[X]&248)===240){if(X+3>=K||(J[X+1]&192)!==128||(J[X+2]&192)!==128||(J[X+3]&192)!==128||J[X]===240&&(J[X+1]&240)===128||J[X]===244&&J[X+1]>143||J[X]>244)return!1;X+=4}else return!1;return!0}function o5(J){return r5&&typeof J==="object"&&typeof J.arrayBuffer==="function"&&typeof J.type==="string"&&typeof J.stream==="function"&&(J[Symbol.toStringTag]==="Blob"||J[Symbol.toStringTag]==="File")}Q0.exports={isBlob:o5,isValidStatusCode:s5,isValidUTF8:P0,tokenChars:a5};if(r0)Q0.exports.isValidUTF8=function(J){return J.length<24?P0(J):r0(J)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let J=(()=>{throw new Error("Cannot require module "+"utf-8-validate");})();Q0.exports.isValidUTF8=function(K){return K.length<32?P0(K):J(K)}}catch(J){}});var T0=P((H4,e0)=>{var{Writable:t5}=R("stream"),a0=a(),{BINARY_TYPES:e5,EMPTY_BUFFER:s0,kStatusCode:J1,kWebSocket:K1}=C(),{concat:M0,toArrayBuffer:X1,unmask:Z1}=n(),{isValidStatusCode:$1,isValidUTF8:o0}=l(),G0=Buffer[Symbol.species];class t0 extends t5{constructor(J={}){super();this._allowSynchronousEvents=J.allowSynchronousEvents!==void 0?J.allowSynchronousEvents:!0,this._binaryType=J.binaryType||e5[0],this._extensions=J.extensions||{},this._isServer=!!J.isServer,this._maxPayload=J.maxPayload|0,this._skipUTF8Validation=!!J.skipUTF8Validation,this[K1]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(J,K,X){if(this._opcode===8&&this._state==0)return X();this._bufferedBytes+=J.length,this._buffers.push(J),this.startLoop(X)}consume(J){if(this._bufferedBytes-=J,J===this._buffers[0].length)return this._buffers.shift();if(J<this._buffers[0].length){let X=this._buffers[0];return this._buffers[0]=new G0(X.buffer,X.byteOffset+J,X.length-J),new G0(X.buffer,X.byteOffset,J)}let K=Buffer.allocUnsafe(J);do{let X=this._buffers[0],Z=K.length-J;if(J>=X.length)K.set(this._buffers.shift(),Z);else K.set(new Uint8Array(X.buffer,X.byteOffset,J),Z),this._buffers[0]=new G0(X.buffer,X.byteOffset+J,X.length-J);J-=X.length}while(J>0);return K}startLoop(J){this._loop=!0;do switch(this._state){case 0:this.getInfo(J);break;case 1:this.getPayloadLength16(J);break;case 2:this.getPayloadLength64(J);break;case 3:this.getMask();break;case 4:this.getData(J);break;case 5:case 6:this._loop=!1;return}while(this._loop);if(!this._errored)J()}getInfo(J){if(this._bufferedBytes<2){this._loop=!1;return}let K=this.consume(2);if((K[0]&48)!==0){let Z=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");J(Z);return}let X=(K[0]&64)===64;if(X&&!this._extensions[a0.extensionName]){let Z=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");J(Z);return}if(this._fin=(K[0]&128)===128,this._opcode=K[0]&15,this._payloadLength=K[1]&127,this._opcode===0){if(X){let Z=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");J(Z);return}if(!this._fragmented){let Z=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");J(Z);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let Z=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");J(Z);return}this._compressed=X}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let Z=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");J(Z);return}if(X){let Z=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");J(Z);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let Z=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");J(Z);return}}else{let Z=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");J(Z);return}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;if(this._masked=(K[1]&128)===128,this._isServer){if(!this._masked){let Z=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");J(Z);return}}else if(this._masked){let Z=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");J(Z);return}if(this._payloadLength===126)this._state=1;else if(this._payloadLength===127)this._state=2;else this.haveLength(J)}getPayloadLength16(J){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(J)}getPayloadLength64(J){if(this._bufferedBytes<8){this._loop=!1;return}let K=this.consume(8),X=K.readUInt32BE(0);if(X>Math.pow(2,21)-1){let Z=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");J(Z);return}this._payloadLength=X*Math.pow(2,32)+K.readUInt32BE(4),this.haveLength(J)}haveLength(J){if(this._payloadLength&&this._opcode<8){if(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){let K=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");J(K);return}}if(this._masked)this._state=3;else this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData(J){let K=s0;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}if(K=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0)Z1(K,this._mask)}if(this._opcode>7){this.controlMessage(K,J);return}if(this._compressed){this._state=5,this.decompress(K,J);return}if(K.length)this._messageLength=this._totalPayloadLength,this._fragments.push(K);this.dataMessage(J)}decompress(J,K){this._extensions[a0.extensionName].decompress(J,this._fin,(Z,$)=>{if(Z)return K(Z);if($.length){if(this._messageLength+=$.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let Q=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");K(Q);return}this._fragments.push($)}if(this.dataMessage(K),this._state===0)this.startLoop(K)})}dataMessage(J){if(!this._fin){this._state=0;return}let K=this._messageLength,X=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let Z;if(this._binaryType==="nodebuffer")Z=M0(X,K);else if(this._binaryType==="arraybuffer")Z=X1(M0(X,K));else if(this._binaryType==="blob")Z=new Blob(X);else Z=X;if(this._allowSynchronousEvents)this.emit("message",Z,!0),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",Z,!0),this._state=0,this.startLoop(J)})}else{let Z=M0(X,K);if(!this._skipUTF8Validation&&!o0(Z)){let $=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");J($);return}if(this._state===5||this._allowSynchronousEvents)this.emit("message",Z,!1),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",Z,!1),this._state=0,this.startLoop(J)})}}controlMessage(J,K){if(this._opcode===8){if(J.length===0)this._loop=!1,this.emit("conclude",1005,s0),this.end();else{let X=J.readUInt16BE(0);if(!$1(X)){let $=this.createError(RangeError,`invalid status code ${X}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");K($);return}let Z=new G0(J.buffer,J.byteOffset+2,J.length-2);if(!this._skipUTF8Validation&&!o0(Z)){let $=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");K($);return}this._loop=!1,this.emit("conclude",X,Z),this.end()}this._state=0;return}if(this._allowSynchronousEvents)this.emit(this._opcode===9?"ping":"pong",J),this._state=0;else this._state=6,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",J),this._state=0,this.startLoop(K)})}createError(J,K,X,Z,$){this._loop=!1,this._errored=!0;let Q=new J(X?`Invalid WebSocket frame: ${K}`:K);return Error.captureStackTrace(Q,this.createError),Q.code=$,Q[J1]=Z,Q}}e0.exports=t0});var B0=P((A4,X5)=>{var{Duplex:R4}=R("stream"),{randomFillSync:Q1}=R("crypto"),J5=a(),{EMPTY_BUFFER:G1,kWebSocket:I1,NOOP:z1}=C(),{isBlob:p,isValidStatusCode:j1}=l(),{mask:K5,toBuffer:S}=n(),T=Symbol("kByteLength"),Y1=Buffer.alloc(4),v,b=8192,x=0,V1=1,_1=2;class W{constructor(J,K,X){if(this._extensions=K||{},X)this._generateMask=X,this._maskBuffer=Buffer.alloc(4);this._socket=J,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=x,this.onerror=z1,this[I1]=void 0}static frame(J,K){let X,Z=!1,$=2,Q=!1;if(K.mask){if(X=K.maskBuffer||Y1,K.generateMask)K.generateMask(X);else{if(b===8192){if(v===void 0)v=Buffer.alloc(8192);Q1(v,0,8192),b=0}X[0]=v[b++],X[1]=v[b++],X[2]=v[b++],X[3]=v[b++]}Q=(X[0]|X[1]|X[2]|X[3])===0,$=6}let G;if(typeof J==="string")if((!K.mask||Q)&&K[T]!==void 0)G=K[T];else J=Buffer.from(J),G=J.length;else G=J.length,Z=K.mask&&K.readOnly&&!Q;let z=G;if(G>=65536)$+=8,z=127;else if(G>125)$+=2,z=126;let I=Buffer.allocUnsafe(Z?G+$:$);if(I[0]=K.fin?K.opcode|128:K.opcode,K.rsv1)I[0]|=64;if(I[1]=z,z===126)I.writeUInt16BE(G,2);else if(z===127)I[2]=I[3]=0,I.writeUIntBE(G,4,6);if(!K.mask)return[I,J];if(I[1]|=128,I[$-4]=X[0],I[$-3]=X[1],I[$-2]=X[2],I[$-1]=X[3],Q)return[I,J];if(Z)return K5(J,X,I,$,G),[I];return K5(J,X,J,0,G),[I,J]}close(J,K,X,Z){let $;if(J===void 0)$=G1;else if(typeof J!=="number"||!j1(J))throw TypeError("First argument must be a valid error code number");else if(K===void 0||!K.length)$=Buffer.allocUnsafe(2),$.writeUInt16BE(J,0);else{let G=Buffer.byteLength(K);if(G>123)throw RangeError("The message must not be greater than 123 bytes");if($=Buffer.allocUnsafe(2+G),$.writeUInt16BE(J,0),typeof K==="string")$.write(K,2);else $.set(K,2)}let Q={[T]:$.length,fin:!0,generateMask:this._generateMask,mask:X,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};if(this._state!==x)this.enqueue([this.dispatch,$,!1,Q,Z]);else this.sendFrame(W.frame($,Q),Z)}ping(J,K,X){let Z,$;if(typeof J==="string")Z=Buffer.byteLength(J),$=!1;else if(p(J))Z=J.size,$=!1;else J=S(J),Z=J.length,$=S.readOnly;if(Z>125)throw RangeError("The data size must not be greater than 125 bytes");let Q={[T]:Z,fin:!0,generateMask:this._generateMask,mask:K,maskBuffer:this._maskBuffer,opcode:9,readOnly:$,rsv1:!1};if(p(J))if(this._state!==x)this.enqueue([this.getBlobData,J,!1,Q,X]);else this.getBlobData(J,!1,Q,X);else if(this._state!==x)this.enqueue([this.dispatch,J,!1,Q,X]);else this.sendFrame(W.frame(J,Q),X)}pong(J,K,X){let Z,$;if(typeof J==="string")Z=Buffer.byteLength(J),$=!1;else if(p(J))Z=J.size,$=!1;else J=S(J),Z=J.length,$=S.readOnly;if(Z>125)throw RangeError("The data size must not be greater than 125 bytes");let Q={[T]:Z,fin:!0,generateMask:this._generateMask,mask:K,maskBuffer:this._maskBuffer,opcode:10,readOnly:$,rsv1:!1};if(p(J))if(this._state!==x)this.enqueue([this.getBlobData,J,!1,Q,X]);else this.getBlobData(J,!1,Q,X);else if(this._state!==x)this.enqueue([this.dispatch,J,!1,Q,X]);else this.sendFrame(W.frame(J,Q),X)}send(J,K,X){let Z=this._extensions[J5.extensionName],$=K.binary?2:1,Q=K.compress,G,z;if(typeof J==="string")G=Buffer.byteLength(J),z=!1;else if(p(J))G=J.size,z=!1;else J=S(J),G=J.length,z=S.readOnly;if(this._firstFragment){if(this._firstFragment=!1,Q&&Z&&Z.params[Z._isServer?"server_no_context_takeover":"client_no_context_takeover"])Q=G>=Z._threshold;this._compress=Q}else Q=!1,$=0;if(K.fin)this._firstFragment=!0;let I={[T]:G,fin:K.fin,generateMask:this._generateMask,mask:K.mask,maskBuffer:this._maskBuffer,opcode:$,readOnly:z,rsv1:Q};if(p(J))if(this._state!==x)this.enqueue([this.getBlobData,J,this._compress,I,X]);else this.getBlobData(J,this._compress,I,X);else if(this._state!==x)this.enqueue([this.dispatch,J,this._compress,I,X]);else this.dispatch(J,this._compress,I,X)}getBlobData(J,K,X,Z){this._bufferedBytes+=X[T],this._state=_1,J.arrayBuffer().then(($)=>{if(this._socket.destroyed){let G=Error("The socket was closed while the blob was being read");process.nextTick(x0,this,G,Z);return}this._bufferedBytes-=X[T];let Q=S($);if(!K)this._state=x,this.sendFrame(W.frame(Q,X),Z),this.dequeue();else this.dispatch(Q,K,X,Z)}).catch(($)=>{process.nextTick(N1,this,$,Z)})}dispatch(J,K,X,Z){if(!K){this.sendFrame(W.frame(J,X),Z);return}let $=this._extensions[J5.extensionName];this._bufferedBytes+=X[T],this._state=V1,$.compress(J,X.fin,(Q,G)=>{if(this._socket.destroyed){let z=Error("The socket was closed while data was being compressed");x0(this,z,Z);return}this._bufferedBytes-=X[T],this._state=x,X.readOnly=!1,this.sendFrame(W.frame(G,X),Z),this.dequeue()})}dequeue(){while(this._state===x&&this._queue.length){let J=this._queue.shift();this._bufferedBytes-=J[3][T],Reflect.apply(J[0],this,J.slice(1))}}enqueue(J){this._bufferedBytes+=J[3][T],this._queue.push(J)}sendFrame(J,K){if(J.length===2)this._socket.cork(),this._socket.write(J[0]),this._socket.write(J[1],K),this._socket.uncork();else this._socket.write(J[0],K)}}X5.exports=W;function x0(J,K,X){if(typeof X==="function")X(K);for(let Z=0;Z<J._queue.length;Z++){let $=J._queue[Z],Q=$[$.length-1];if(typeof Q==="function")Q(K)}}function N1(J,K,X){x0(J,K,X),J.onerror(K)}});var V5=P((F4,Y5)=>{var{kForOnEventAttribute:s,kListener:C0}=C(),Z5=Symbol("kCode"),$5=Symbol("kData"),Q5=Symbol("kError"),G5=Symbol("kMessage"),I5=Symbol("kReason"),k=Symbol("kTarget"),z5=Symbol("kType"),j5=Symbol("kWasClean");class E{constructor(J){this[k]=null,this[z5]=J}get target(){return this[k]}get type(){return this[z5]}}Object.defineProperty(E.prototype,"target",{enumerable:!0});Object.defineProperty(E.prototype,"type",{enumerable:!0});class i extends E{constructor(J,K={}){super(J);this[Z5]=K.code===void 0?0:K.code,this[I5]=K.reason===void 0?"":K.reason,this[j5]=K.wasClean===void 0?!1:K.wasClean}get code(){return this[Z5]}get reason(){return this[I5]}get wasClean(){return this[j5]}}Object.defineProperty(i.prototype,"code",{enumerable:!0});Object.defineProperty(i.prototype,"reason",{enumerable:!0});Object.defineProperty(i.prototype,"wasClean",{enumerable:!0});class o extends E{constructor(J,K={}){super(J);this[Q5]=K.error===void 0?null:K.error,this[G5]=K.message===void 0?"":K.message}get error(){return this[Q5]}get message(){return this[G5]}}Object.defineProperty(o.prototype,"error",{enumerable:!0});Object.defineProperty(o.prototype,"message",{enumerable:!0});class z0 extends E{constructor(J,K={}){super(J);this[$5]=K.data===void 0?null:K.data}get data(){return this[$5]}}Object.defineProperty(z0.prototype,"data",{enumerable:!0});var H1={addEventListener(J,K,X={}){for(let $ of this.listeners(J))if(!X[s]&&$[C0]===K&&!$[s])return;let Z;if(J==="message")Z=function(Q,G){let z=new z0("message",{data:G?Q:Q.toString()});z[k]=this,I0(K,this,z)};else if(J==="close")Z=function(Q,G){let z=new i("close",{code:Q,reason:G.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});z[k]=this,I0(K,this,z)};else if(J==="error")Z=function(Q){let G=new o("error",{error:Q,message:Q.message});G[k]=this,I0(K,this,G)};else if(J==="open")Z=function(){let Q=new E("open");Q[k]=this,I0(K,this,Q)};else return;if(Z[s]=!!X[s],Z[C0]=K,X.once)this.once(J,Z);else this.on(J,Z)},removeEventListener(J,K){for(let X of this.listeners(J))if(X[C0]===K&&!X[s]){this.removeListener(J,X);break}}};Y5.exports={CloseEvent:i,ErrorEvent:o,Event:E,EventTarget:H1,MessageEvent:z0};function I0(J,K,X){if(typeof J==="object"&&J.handleEvent)J.handleEvent.call(J,X);else J.call(K,X)}});var q0=P((D4,_5)=>{var{tokenChars:t}=l();function B(J,K,X){if(J[K]===void 0)J[K]=[X];else J[K].push(X)}function R1(J){let K=Object.create(null),X=Object.create(null),Z=!1,$=!1,Q=!1,G,z,I=-1,V=-1,_=-1,Y=0;for(;Y<J.length;Y++)if(V=J.charCodeAt(Y),G===void 0)if(_===-1&&t[V]===1){if(I===-1)I=Y}else if(Y!==0&&(V===32||V===9)){if(_===-1&&I!==-1)_=Y}else if(V===59||V===44){if(I===-1)throw SyntaxError(`Unexpected character at index ${Y}`);if(_===-1)_=Y;let D=J.slice(I,_);if(V===44)B(K,D,X),X=Object.create(null);else G=D;I=_=-1}else throw SyntaxError(`Unexpected character at index ${Y}`);else if(z===void 0)if(_===-1&&t[V]===1){if(I===-1)I=Y}else if(V===32||V===9){if(_===-1&&I!==-1)_=Y}else if(V===59||V===44){if(I===-1)throw SyntaxError(`Unexpected character at index ${Y}`);if(_===-1)_=Y;if(B(X,J.slice(I,_),!0),V===44)B(K,G,X),X=Object.create(null),G=void 0;I=_=-1}else if(V===61&&I!==-1&&_===-1)z=J.slice(I,Y),I=_=-1;else throw SyntaxError(`Unexpected character at index ${Y}`);else if($){if(t[V]!==1)throw SyntaxError(`Unexpected character at index ${Y}`);if(I===-1)I=Y;else if(!Z)Z=!0;$=!1}else if(Q)if(t[V]===1){if(I===-1)I=Y}else if(V===34&&I!==-1)Q=!1,_=Y;else if(V===92)$=!0;else throw SyntaxError(`Unexpected character at index ${Y}`);else if(V===34&&J.charCodeAt(Y-1)===61)Q=!0;else if(_===-1&&t[V]===1){if(I===-1)I=Y}else if(I!==-1&&(V===32||V===9)){if(_===-1)_=Y}else if(V===59||V===44){if(I===-1)throw SyntaxError(`Unexpected character at index ${Y}`);if(_===-1)_=Y;let D=J.slice(I,_);if(Z)D=D.replace(/\\/g,""),Z=!1;if(B(X,z,D),V===44)B(K,G,X),X=Object.create(null),G=void 0;z=void 0,I=_=-1}else throw SyntaxError(`Unexpected character at index ${Y}`);if(I===-1||Q||V===32||V===9)throw SyntaxError("Unexpected end of input");if(_===-1)_=Y;let F=J.slice(I,_);if(G===void 0)B(K,F,X);else{if(z===void 0)B(X,F,!0);else if(Z)B(X,z,F.replace(/\\/g,""));else B(X,z,F);B(K,G,X)}return K}function A1(J){return Object.keys(J).map((K)=>{let X=J[K];if(!Array.isArray(X))X=[X];return X.map((Z)=>{return[K].concat(Object.keys(Z).map(($)=>{let Q=Z[$];if(!Array.isArray(Q))Q=[Q];return Q.map((G)=>G===!0?$:`${$}=${G}`).join("; ")})).join("; ")}).join(", ")}).join(", ")}_5.exports={format:A1,parse:R1}});var _0=P((M4,B5)=>{var F1=R("events"),D1=R("https"),O1=R("http"),R5=R("net"),P1=R("tls"),{randomBytes:M1,createHash:T1}=R("crypto"),{Duplex:O4,Readable:P4}=R("stream"),{URL:U0}=R("url"),y=a(),x1=T0(),B1=B0(),{isBlob:C1}=l(),{BINARY_TYPES:N5,CLOSE_TIMEOUT:q1,EMPTY_BUFFER:j0,GUID:U1,kForOnEventAttribute:L0,kListener:L1,kStatusCode:W1,kWebSocket:A,NOOP:A5}=C(),{EventTarget:{addEventListener:E1,removeEventListener:y1}}=V5(),{format:S1,parse:v1}=q0(),{toBuffer:g1}=n(),F5=Symbol("kAborted"),W0=[8,13],U=["CONNECTING","OPEN","CLOSING","CLOSED"],w1=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class j extends F1{constructor(J,K,X){super();if(this._binaryType=N5[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=j0,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=j.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,J!==null){if(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,K===void 0)K=[];else if(!Array.isArray(K))if(typeof K==="object"&&K!==null)X=K,K=[];else K=[K];D5(this,J,K,X)}else this._autoPong=X.autoPong,this._closeTimeout=X.closeTimeout,this._isServer=!0}get binaryType(){return this._binaryType}set binaryType(J){if(!N5.includes(J))return;if(this._binaryType=J,this._receiver)this._receiver._binaryType=J}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(J,K,X){let Z=new x1({allowSynchronousEvents:X.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:X.maxPayload,skipUTF8Validation:X.skipUTF8Validation}),$=new B1(J,this._extensions,X.generateMask);if(this._receiver=Z,this._sender=$,this._socket=J,Z[A]=this,$[A]=this,J[A]=this,Z.on("conclude",f1),Z.on("drain",u1),Z.on("error",l1),Z.on("message",p1),Z.on("ping",b1),Z.on("pong",k1),$.onerror=i1,J.setTimeout)J.setTimeout(0);if(J.setNoDelay)J.setNoDelay();if(K.length>0)J.unshift(K);J.on("close",M5),J.on("data",V0),J.on("end",T5),J.on("error",x5),this._readyState=j.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=j.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[y.extensionName])this._extensions[y.extensionName].cleanup();this._receiver.removeAllListeners(),this._readyState=j.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(J,K){if(this.readyState===j.CLOSED)return;if(this.readyState===j.CONNECTING){M(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===j.CLOSING){if(this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted))this._socket.end();return}this._readyState=j.CLOSING,this._sender.close(J,K,!this._isServer,(X)=>{if(X)return;if(this._closeFrameSent=!0,this._closeFrameReceived||this._receiver._writableState.errorEmitted)this._socket.end()}),P5(this)}pause(){if(this.readyState===j.CONNECTING||this.readyState===j.CLOSED)return;this._paused=!0,this._socket.pause()}ping(J,K,X){if(this.readyState===j.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof J==="function")X=J,J=K=void 0;else if(typeof K==="function")X=K,K=void 0;if(typeof J==="number")J=J.toString();if(this.readyState!==j.OPEN){E0(this,J,X);return}if(K===void 0)K=!this._isServer;this._sender.ping(J||j0,K,X)}pong(J,K,X){if(this.readyState===j.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof J==="function")X=J,J=K=void 0;else if(typeof K==="function")X=K,K=void 0;if(typeof J==="number")J=J.toString();if(this.readyState!==j.OPEN){E0(this,J,X);return}if(K===void 0)K=!this._isServer;this._sender.pong(J||j0,K,X)}resume(){if(this.readyState===j.CONNECTING||this.readyState===j.CLOSED)return;if(this._paused=!1,!this._receiver._writableState.needDrain)this._socket.resume()}send(J,K,X){if(this.readyState===j.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof K==="function")X=K,K={};if(typeof J==="number")J=J.toString();if(this.readyState!==j.OPEN){E0(this,J,X);return}let Z={binary:typeof J!=="string",mask:!this._isServer,compress:!0,fin:!0,...K};if(!this._extensions[y.extensionName])Z.compress=!1;this._sender.send(J||j0,Z,X)}terminate(){if(this.readyState===j.CLOSED)return;if(this.readyState===j.CONNECTING){M(this,this._req,"WebSocket was closed before the connection was established");return}if(this._socket)this._readyState=j.CLOSING,this._socket.destroy()}}Object.defineProperty(j,"CONNECTING",{enumerable:!0,value:U.indexOf("CONNECTING")});Object.defineProperty(j.prototype,"CONNECTING",{enumerable:!0,value:U.indexOf("CONNECTING")});Object.defineProperty(j,"OPEN",{enumerable:!0,value:U.indexOf("OPEN")});Object.defineProperty(j.prototype,"OPEN",{enumerable:!0,value:U.indexOf("OPEN")});Object.defineProperty(j,"CLOSING",{enumerable:!0,value:U.indexOf("CLOSING")});Object.defineProperty(j.prototype,"CLOSING",{enumerable:!0,value:U.indexOf("CLOSING")});Object.defineProperty(j,"CLOSED",{enumerable:!0,value:U.indexOf("CLOSED")});Object.defineProperty(j.prototype,"CLOSED",{enumerable:!0,value:U.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((J)=>{Object.defineProperty(j.prototype,J,{enumerable:!0})});["open","error","close","message"].forEach((J)=>{Object.defineProperty(j.prototype,`on${J}`,{enumerable:!0,get(){for(let K of this.listeners(J))if(K[L0])return K[L1];return null},set(K){for(let X of this.listeners(J))if(X[L0]){this.removeListener(J,X);break}if(typeof K!=="function")return;this.addEventListener(J,K,{[L0]:!0})}})});j.prototype.addEventListener=E1;j.prototype.removeEventListener=y1;B5.exports=j;function D5(J,K,X,Z){let $={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:q1,protocolVersion:W0[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...Z,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(J._autoPong=$.autoPong,J._closeTimeout=$.closeTimeout,!W0.includes($.protocolVersion))throw RangeError(`Unsupported protocol version: ${$.protocolVersion} (supported versions: ${W0.join(", ")})`);let Q;if(K instanceof U0)Q=K;else try{Q=new U0(K)}catch(N){throw SyntaxError(`Invalid URL: ${K}`)}if(Q.protocol==="http:")Q.protocol="ws:";else if(Q.protocol==="https:")Q.protocol="wss:";J._url=Q.href;let G=Q.protocol==="wss:",z=Q.protocol==="ws+unix:",I;if(Q.protocol!=="ws:"&&!G&&!z)I=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`;else if(z&&!Q.pathname)I="The URL's pathname is empty";else if(Q.hash)I="The URL contains a fragment identifier";if(I){let N=SyntaxError(I);if(J._redirects===0)throw N;else{Y0(J,N);return}}let V=G?443:80,_=M1(16).toString("base64"),Y=G?D1.request:O1.request,F=new Set,D;if($.createConnection=$.createConnection||(G?m1:h1),$.defaultPort=$.defaultPort||V,$.port=Q.port||V,$.host=Q.hostname.startsWith("[")?Q.hostname.slice(1,-1):Q.hostname,$.headers={...$.headers,"Sec-WebSocket-Version":$.protocolVersion,"Sec-WebSocket-Key":_,Connection:"Upgrade",Upgrade:"websocket"},$.path=Q.pathname+Q.search,$.timeout=$.handshakeTimeout,$.perMessageDeflate)D=new y($.perMessageDeflate!==!0?$.perMessageDeflate:{},!1,$.maxPayload),$.headers["Sec-WebSocket-Extensions"]=S1({[y.extensionName]:D.offer()});if(X.length){for(let N of X){if(typeof N!=="string"||!w1.test(N)||F.has(N))throw SyntaxError("An invalid or duplicated subprotocol was specified");F.add(N)}$.headers["Sec-WebSocket-Protocol"]=X.join(",")}if($.origin)if($.protocolVersion<13)$.headers["Sec-WebSocket-Origin"]=$.origin;else $.headers.Origin=$.origin;if(Q.username||Q.password)$.auth=`${Q.username}:${Q.password}`;if(z){let N=$.path.split(":");$.socketPath=N[0],$.path=N[1]}let H;if($.followRedirects){if(J._redirects===0){J._originalIpc=z,J._originalSecure=G,J._originalHostOrSocketPath=z?$.socketPath:Q.host;let N=Z&&Z.headers;if(Z={...Z,headers:{}},N)for(let[O,h]of Object.entries(N))Z.headers[O.toLowerCase()]=h}else if(J.listenerCount("redirect")===0){let N=z?J._originalIpc?$.socketPath===J._originalHostOrSocketPath:!1:J._originalIpc?!1:Q.host===J._originalHostOrSocketPath;if(!N||J._originalSecure&&!G){if(delete $.headers.authorization,delete $.headers.cookie,!N)delete $.headers.host;$.auth=void 0}}if($.auth&&!Z.headers.authorization)Z.headers.authorization="Basic "+Buffer.from($.auth).toString("base64");if(H=J._req=Y($),J._redirects)J.emit("redirect",J.url,H)}else H=J._req=Y($);if($.timeout)H.on("timeout",()=>{M(J,H,"Opening handshake has timed out")});if(H.on("error",(N)=>{if(H===null||H[F5])return;H=J._req=null,Y0(J,N)}),H.on("response",(N)=>{let O=N.headers.location,h=N.statusCode;if(O&&$.followRedirects&&h>=300&&h<400){if(++J._redirects>$.maxRedirects){M(J,H,"Maximum redirects exceeded");return}H.abort();let d;try{d=new U0(O,K)}catch(y0){let m=SyntaxError(`Invalid URL: ${O}`);Y0(J,m);return}D5(J,d,X,Z)}else if(!J.emit("unexpected-response",H,N))M(J,H,`Unexpected server response: ${N.statusCode}`)}),H.on("upgrade",(N,O,h)=>{if(J.emit("upgrade",N),J.readyState!==j.CONNECTING)return;H=J._req=null;let d=N.headers.upgrade;if(d===void 0||d.toLowerCase()!=="websocket"){M(J,O,"Invalid Upgrade header");return}let y0=T1("sha1").update(_+U1).digest("base64");if(N.headers["sec-websocket-accept"]!==y0){M(J,O,"Invalid Sec-WebSocket-Accept header");return}let m=N.headers["sec-websocket-protocol"],c;if(m!==void 0){if(!F.size)c="Server sent a subprotocol but none was requested";else if(!F.has(m))c="Server sent an invalid subprotocol"}else if(F.size)c="Server sent no subprotocol";if(c){M(J,O,c);return}if(m)J._protocol=m;let S0=N.headers["sec-websocket-extensions"];if(S0!==void 0){if(!D){M(J,O,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let R0;try{R0=v1(S0)}catch(A0){M(J,O,"Invalid Sec-WebSocket-Extensions header");return}let v0=Object.keys(R0);if(v0.length!==1||v0[0]!==y.extensionName){M(J,O,"Server indicated an extension that was not requested");return}try{D.accept(R0[y.extensionName])}catch(A0){M(J,O,"Invalid Sec-WebSocket-Extensions header");return}J._extensions[y.extensionName]=D}J.setSocket(O,h,{allowSynchronousEvents:$.allowSynchronousEvents,generateMask:$.generateMask,maxPayload:$.maxPayload,skipUTF8Validation:$.skipUTF8Validation})}),$.finishRequest)$.finishRequest(H,J);else H.end()}function Y0(J,K){J._readyState=j.CLOSING,J._errorEmitted=!0,J.emit("error",K),J.emitClose()}function h1(J){return J.path=J.socketPath,R5.connect(J)}function m1(J){if(J.path=void 0,!J.servername&&J.servername!=="")J.servername=R5.isIP(J.host)?"":J.host;return P1.connect(J)}function M(J,K,X){J._readyState=j.CLOSING;let Z=Error(X);if(Error.captureStackTrace(Z,M),K.setHeader){if(K[F5]=!0,K.abort(),K.socket&&!K.socket.destroyed)K.socket.destroy();process.nextTick(Y0,J,Z)}else K.destroy(Z),K.once("error",J.emit.bind(J,"error")),K.once("close",J.emitClose.bind(J))}function E0(J,K,X){if(K){let Z=C1(K)?K.size:g1(K).length;if(J._socket)J._sender._bufferedBytes+=Z;else J._bufferedAmount+=Z}if(X){let Z=Error(`WebSocket is not open: readyState ${J.readyState} (${U[J.readyState]})`);process.nextTick(X,Z)}}function f1(J,K){let X=this[A];if(X._closeFrameReceived=!0,X._closeMessage=K,X._closeCode=J,X._socket[A]===void 0)return;if(X._socket.removeListener("data",V0),process.nextTick(O5,X._socket),J===1005)X.close();else X.close(J,K)}function u1(){let J=this[A];if(!J.isPaused)J._socket.resume()}function l1(J){let K=this[A];if(K._socket[A]!==void 0)K._socket.removeListener("data",V0),process.nextTick(O5,K._socket),K.close(J[W1]);if(!K._errorEmitted)K._errorEmitted=!0,K.emit("error",J)}function H5(){this[A].emitClose()}function p1(J,K){this[A].emit("message",J,K)}function b1(J){let K=this[A];if(K._autoPong)K.pong(J,!this._isServer,A5);K.emit("ping",J)}function k1(J){this[A].emit("pong",J)}function O5(J){J.resume()}function i1(J){let K=this[A];if(K.readyState===j.CLOSED)return;if(K.readyState===j.OPEN)K._readyState=j.CLOSING,P5(K);if(this._socket.end(),!K._errorEmitted)K._errorEmitted=!0,K.emit("error",J)}function P5(J){J._closeTimer=setTimeout(J._socket.destroy.bind(J._socket),J._closeTimeout)}function M5(){let J=this[A];if(this.removeListener("close",M5),this.removeListener("data",V0),this.removeListener("end",T5),J._readyState=j.CLOSING,!this._readableState.endEmitted&&!J._closeFrameReceived&&!J._receiver._writableState.errorEmitted&&this._readableState.length!==0){let K=this.read(this._readableState.length);J._receiver.write(K)}if(J._receiver.end(),this[A]=void 0,clearTimeout(J._closeTimer),J._receiver._writableState.finished||J._receiver._writableState.errorEmitted)J.emitClose();else J._receiver.on("error",H5),J._receiver.on("finish",H5)}function V0(J){if(!this[A]._receiver.write(J))this.pause()}function T5(){let J=this[A];J._readyState=j.CLOSING,J._receiver.end(),this.end()}function x5(){let J=this[A];if(this.removeListener("error",x5),this.on("error",A5),J)J._readyState=j.CLOSING,this.destroy()}});var L5=P((x4,U5)=>{var T4=_0(),{Duplex:d1}=R("stream");function C5(J){J.emit("close")}function c1(){if(!this.destroyed&&this._writableState.finished)this.destroy()}function q5(J){if(this.removeListener("error",q5),this.destroy(),this.listenerCount("error")===0)this.emit("error",J)}function n1(J,K){let X=!0,Z=new d1({...K,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return J.on("message",function(Q,G){let z=!G&&Z._readableState.objectMode?Q.toString():Q;if(!Z.push(z))J.pause()}),J.once("error",function(Q){if(Z.destroyed)return;X=!1,Z.destroy(Q)}),J.once("close",function(){if(Z.destroyed)return;Z.push(null)}),Z._destroy=function($,Q){if(J.readyState===J.CLOSED){Q($),process.nextTick(C5,Z);return}let G=!1;if(J.once("error",function(I){G=!0,Q(I)}),J.once("close",function(){if(!G)Q($);process.nextTick(C5,Z)}),X)J.terminate()},Z._final=function($){if(J.readyState===J.CONNECTING){J.once("open",function(){Z._final($)});return}if(J._socket===null)return;if(J._socket._writableState.finished){if($(),Z._readableState.endEmitted)Z.destroy()}else J._socket.once("finish",function(){$()}),J.close()},Z._read=function(){if(J.isPaused)J.resume()},Z._write=function($,Q,G){if(J.readyState===J.CONNECTING){J.once("open",function(){Z._write($,Q,G)});return}J.send($,G)},Z.on("end",c1),Z.on("error",q5),Z}U5.exports=n1});var E5=P((B4,W5)=>{var{tokenChars:r1}=l();function a1(J){let K=new Set,X=-1,Z=-1,$=0;for($;$<J.length;$++){let G=J.charCodeAt($);if(Z===-1&&r1[G]===1){if(X===-1)X=$}else if($!==0&&(G===32||G===9)){if(Z===-1&&X!==-1)Z=$}else if(G===44){if(X===-1)throw SyntaxError(`Unexpected character at index ${$}`);if(Z===-1)Z=$;let z=J.slice(X,Z);if(K.has(z))throw SyntaxError(`The "${z}" subprotocol is duplicated`);K.add(z),X=Z=-1}else throw SyntaxError(`Unexpected character at index ${$}`)}if(X===-1||Z!==-1)throw SyntaxError("Unexpected end of input");let Q=J.slice(X,$);if(K.has(Q))throw SyntaxError(`The "${Q}" subprotocol is duplicated`);return K.add(Q),K}W5.exports={parse:a1}});var w5=P((q4,g5)=>{var s1=R("events"),N0=R("http"),{Duplex:C4}=R("stream"),{createHash:o1}=R("crypto"),y5=q0(),g=a(),t1=E5(),e1=_0(),{CLOSE_TIMEOUT:J4,GUID:K4,kWebSocket:X4}=C(),Z4=/^[+/0-9A-Za-z]{22}==$/;class v5 extends s1{constructor(J,K){super();if(J={allowSynchronousEvents:!0,autoPong:!0,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:J4,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:e1,...J},J.port==null&&!J.server&&!J.noServer||J.port!=null&&(J.server||J.noServer)||J.server&&J.noServer)throw TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(J.port!=null)this._server=N0.createServer((X,Z)=>{let $=N0.STATUS_CODES[426];Z.writeHead(426,{"Content-Length":$.length,"Content-Type":"text/plain"}),Z.end($)}),this._server.listen(J.port,J.host,J.backlog,K);else if(J.server)this._server=J.server;if(this._server){let X=this.emit.bind(this,"connection");this._removeListeners=$4(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(Z,$,Q)=>{this.handleUpgrade(Z,$,Q,X)}})}if(J.perMessageDeflate===!0)J.perMessageDeflate={};if(J.clientTracking)this.clients=new Set,this._shouldEmitClose=!1;this.options=J,this._state=0}address(){if(this.options.noServer)throw Error('The server is operating in "noServer" mode');if(!this._server)return null;return this._server.address()}close(J){if(this._state===2){if(J)this.once("close",()=>{J(Error("The server is not running"))});process.nextTick(e,this);return}if(J)this.once("close",J);if(this._state===1)return;if(this._state=1,this.options.noServer||this.options.server){if(this._server)this._removeListeners(),this._removeListeners=this._server=null;if(this.clients)if(!this.clients.size)process.nextTick(e,this);else this._shouldEmitClose=!0;else process.nextTick(e,this)}else{let K=this._server;this._removeListeners(),this._removeListeners=this._server=null,K.close(()=>{e(this)})}}shouldHandle(J){if(this.options.path){let K=J.url.indexOf("?");if((K!==-1?J.url.slice(0,K):J.url)!==this.options.path)return!1}return!0}handleUpgrade(J,K,X,Z){K.on("error",S5);let $=J.headers["sec-websocket-key"],Q=J.headers.upgrade,G=+J.headers["sec-websocket-version"];if(J.method!=="GET"){w(this,J,K,405,"Invalid HTTP method");return}if(Q===void 0||Q.toLowerCase()!=="websocket"){w(this,J,K,400,"Invalid Upgrade header");return}if($===void 0||!Z4.test($)){w(this,J,K,400,"Missing or invalid Sec-WebSocket-Key header");return}if(G!==13&&G!==8){w(this,J,K,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle(J)){J0(K,400);return}let z=J.headers["sec-websocket-protocol"],I=new Set;if(z!==void 0)try{I=t1.parse(z)}catch(Y){w(this,J,K,400,"Invalid Sec-WebSocket-Protocol header");return}let V=J.headers["sec-websocket-extensions"],_={};if(this.options.perMessageDeflate&&V!==void 0){let Y=new g(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let F=y5.parse(V);if(F[g.extensionName])Y.accept(F[g.extensionName]),_[g.extensionName]=Y}catch(F){w(this,J,K,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let Y={origin:J.headers[`${G===8?"sec-websocket-origin":"origin"}`],secure:!!(J.socket.authorized||J.socket.encrypted),req:J};if(this.options.verifyClient.length===2){this.options.verifyClient(Y,(F,D,H,N)=>{if(!F)return J0(K,D||401,H,N);this.completeUpgrade(_,$,I,J,K,X,Z)});return}if(!this.options.verifyClient(Y))return J0(K,401)}this.completeUpgrade(_,$,I,J,K,X,Z)}completeUpgrade(J,K,X,Z,$,Q,G){if(!$.readable||!$.writable)return $.destroy();if($[X4])throw Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return J0($,503);let I=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${o1("sha1").update(K+K4).digest("base64")}`],V=new this.options.WebSocket(null,void 0,this.options);if(X.size){let _=this.options.handleProtocols?this.options.handleProtocols(X,Z):X.values().next().value;if(_)I.push(`Sec-WebSocket-Protocol: ${_}`),V._protocol=_}if(J[g.extensionName]){let _=J[g.extensionName].params,Y=y5.format({[g.extensionName]:[_]});I.push(`Sec-WebSocket-Extensions: ${Y}`),V._extensions=J}if(this.emit("headers",I,Z),$.write(I.concat(`\r
|
|
1
|
+
import{hc as K0,ic as P,lc as R}from"./chunk-kn8f91na.js";var C=P((j4,h0)=>{var g0=["nodebuffer","arraybuffer","fragments"],w0=typeof Blob<"u";if(w0)g0.push("blob");h0.exports={BINARY_TYPES:g0,CLOSE_TIMEOUT:30000,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:w0,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var n=P((Y4,X0)=>{var{EMPTY_BUFFER:l5}=C(),F0=Buffer[Symbol.species];function p5(J,K){if(J.length===0)return l5;if(J.length===1)return J[0];let X=Buffer.allocUnsafe(K),Z=0;for(let $=0;$<J.length;$++){let Q=J[$];X.set(Q,Z),Z+=Q.length}if(Z<K)return new F0(X.buffer,X.byteOffset,Z);return X}function m0(J,K,X,Z,$){for(let Q=0;Q<$;Q++)X[Z+Q]=J[Q]^K[Q&3]}function f0(J,K){for(let X=0;X<J.length;X++)J[X]^=K[X&3]}function b5(J){if(J.length===J.buffer.byteLength)return J.buffer;return J.buffer.slice(J.byteOffset,J.byteOffset+J.length)}function D0(J){if(D0.readOnly=!0,Buffer.isBuffer(J))return J;let K;if(J instanceof ArrayBuffer)K=new F0(J);else if(ArrayBuffer.isView(J))K=new F0(J.buffer,J.byteOffset,J.byteLength);else K=Buffer.from(J),D0.readOnly=!1;return K}X0.exports={concat:p5,mask:m0,toArrayBuffer:b5,toBuffer:D0,unmask:f0};if(!process.env.WS_NO_BUFFER_UTIL)try{let J=(()=>{throw new Error("Cannot require module "+"bufferutil");})();X0.exports.mask=function(K,X,Z,$,Q){if(Q<48)m0(K,X,Z,$,Q);else J.mask(K,X,Z,$,Q)},X0.exports.unmask=function(K,X){if(K.length<32)f0(K,X);else J.unmask(K,X)}}catch(J){}});var b0=P((V4,p0)=>{var u0=Symbol("kDone"),O0=Symbol("kRun");class l0{constructor(J){this[u0]=()=>{this.pending--,this[O0]()},this.concurrency=J||1/0,this.jobs=[],this.pending=0}add(J){this.jobs.push(J),this[O0]()}[O0](){if(this.pending===this.concurrency)return;if(this.jobs.length){let J=this.jobs.shift();this.pending++,J(this[u0])}}}p0.exports=l0});var a=P((_4,n0)=>{var r=R("zlib"),k0=n(),k5=b0(),{kStatusCode:i0}=C(),i5=Buffer[Symbol.species],d5=Buffer.from([0,0,255,255]),$0=Symbol("permessage-deflate"),q=Symbol("total-length"),f=Symbol("callback"),L=Symbol("buffers"),u=Symbol("error"),Z0;class d0{constructor(J,K,X){if(this._maxPayload=X|0,this._options=J||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!K,this._deflate=null,this._inflate=null,this.params=null,!Z0){let Z=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;Z0=new k5(Z)}}static get extensionName(){return"permessage-deflate"}offer(){let J={};if(this._options.serverNoContextTakeover)J.server_no_context_takeover=!0;if(this._options.clientNoContextTakeover)J.client_no_context_takeover=!0;if(this._options.serverMaxWindowBits)J.server_max_window_bits=this._options.serverMaxWindowBits;if(this._options.clientMaxWindowBits)J.client_max_window_bits=this._options.clientMaxWindowBits;else if(this._options.clientMaxWindowBits==null)J.client_max_window_bits=!0;return J}accept(J){return J=this.normalizeParams(J),this.params=this._isServer?this.acceptAsServer(J):this.acceptAsClient(J),this.params}cleanup(){if(this._inflate)this._inflate.close(),this._inflate=null;if(this._deflate){let J=this._deflate[f];if(this._deflate.close(),this._deflate=null,J)J(Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(J){let K=this._options,X=J.find((Z)=>{if(K.serverNoContextTakeover===!1&&Z.server_no_context_takeover||Z.server_max_window_bits&&(K.serverMaxWindowBits===!1||typeof K.serverMaxWindowBits==="number"&&K.serverMaxWindowBits>Z.server_max_window_bits)||typeof K.clientMaxWindowBits==="number"&&!Z.client_max_window_bits)return!1;return!0});if(!X)throw Error("None of the extension offers can be accepted");if(K.serverNoContextTakeover)X.server_no_context_takeover=!0;if(K.clientNoContextTakeover)X.client_no_context_takeover=!0;if(typeof K.serverMaxWindowBits==="number")X.server_max_window_bits=K.serverMaxWindowBits;if(typeof K.clientMaxWindowBits==="number")X.client_max_window_bits=K.clientMaxWindowBits;else if(X.client_max_window_bits===!0||K.clientMaxWindowBits===!1)delete X.client_max_window_bits;return X}acceptAsClient(J){let K=J[0];if(this._options.clientNoContextTakeover===!1&&K.client_no_context_takeover)throw Error('Unexpected parameter "client_no_context_takeover"');if(!K.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number")K.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==="number"&&K.client_max_window_bits>this._options.clientMaxWindowBits)throw Error('Unexpected or invalid parameter "client_max_window_bits"');return K}normalizeParams(J){return J.forEach((K)=>{Object.keys(K).forEach((X)=>{let Z=K[X];if(Z.length>1)throw Error(`Parameter "${X}" must have only a single value`);if(Z=Z[0],X==="client_max_window_bits"){if(Z!==!0){let $=+Z;if(!Number.isInteger($)||$<8||$>15)throw TypeError(`Invalid value for parameter "${X}": ${Z}`);Z=$}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${X}": ${Z}`)}else if(X==="server_max_window_bits"){let $=+Z;if(!Number.isInteger($)||$<8||$>15)throw TypeError(`Invalid value for parameter "${X}": ${Z}`);Z=$}else if(X==="client_no_context_takeover"||X==="server_no_context_takeover"){if(Z!==!0)throw TypeError(`Invalid value for parameter "${X}": ${Z}`)}else throw Error(`Unknown parameter "${X}"`);K[X]=Z})}),J}decompress(J,K,X){Z0.add((Z)=>{this._decompress(J,K,($,Q)=>{Z(),X($,Q)})})}compress(J,K,X){Z0.add((Z)=>{this._compress(J,K,($,Q)=>{Z(),X($,Q)})})}_decompress(J,K,X){let Z=this._isServer?"client":"server";if(!this._inflate){let $=`${Z}_max_window_bits`,Q=typeof this.params[$]!=="number"?r.Z_DEFAULT_WINDOWBITS:this.params[$];this._inflate=r.createInflateRaw({...this._options.zlibInflateOptions,windowBits:Q}),this._inflate[$0]=this,this._inflate[q]=0,this._inflate[L]=[],this._inflate.on("error",n5),this._inflate.on("data",c0)}if(this._inflate[f]=X,this._inflate.write(J),K)this._inflate.write(d5);this._inflate.flush(()=>{let $=this._inflate[u];if($){this._inflate.close(),this._inflate=null,X($);return}let Q=k0.concat(this._inflate[L],this._inflate[q]);if(this._inflate._readableState.endEmitted)this._inflate.close(),this._inflate=null;else if(this._inflate[q]=0,this._inflate[L]=[],K&&this.params[`${Z}_no_context_takeover`])this._inflate.reset();X(null,Q)})}_compress(J,K,X){let Z=this._isServer?"server":"client";if(!this._deflate){let $=`${Z}_max_window_bits`,Q=typeof this.params[$]!=="number"?r.Z_DEFAULT_WINDOWBITS:this.params[$];this._deflate=r.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:Q}),this._deflate[q]=0,this._deflate[L]=[],this._deflate.on("data",c5)}this._deflate[f]=X,this._deflate.write(J),this._deflate.flush(r.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let $=k0.concat(this._deflate[L],this._deflate[q]);if(K)$=new i5($.buffer,$.byteOffset,$.length-4);if(this._deflate[f]=null,this._deflate[q]=0,this._deflate[L]=[],K&&this.params[`${Z}_no_context_takeover`])this._deflate.reset();X(null,$)})}}n0.exports=d0;function c5(J){this[L].push(J),this[q]+=J.length}function c0(J){if(this[q]+=J.length,this[$0]._maxPayload<1||this[q]<=this[$0]._maxPayload){this[L].push(J);return}this[u]=RangeError("Max payload size exceeded"),this[u].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[u][i0]=1009,this.removeListener("data",c0),this.reset()}function n5(J){if(this[$0]._inflate=null,this[u]){this[f](this[u]);return}J[i0]=1007,this[f](J)}});var l=P((N4,Q0)=>{var{isUtf8:r0}=R("buffer"),{hasBlob:r5}=C(),a5=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function s5(J){return J>=1000&&J<=1014&&J!==1004&&J!==1005&&J!==1006||J>=3000&&J<=4999}function P0(J){let K=J.length,X=0;while(X<K)if((J[X]&128)===0)X++;else if((J[X]&224)===192){if(X+1===K||(J[X+1]&192)!==128||(J[X]&254)===192)return!1;X+=2}else if((J[X]&240)===224){if(X+2>=K||(J[X+1]&192)!==128||(J[X+2]&192)!==128||J[X]===224&&(J[X+1]&224)===128||J[X]===237&&(J[X+1]&224)===160)return!1;X+=3}else if((J[X]&248)===240){if(X+3>=K||(J[X+1]&192)!==128||(J[X+2]&192)!==128||(J[X+3]&192)!==128||J[X]===240&&(J[X+1]&240)===128||J[X]===244&&J[X+1]>143||J[X]>244)return!1;X+=4}else return!1;return!0}function o5(J){return r5&&typeof J==="object"&&typeof J.arrayBuffer==="function"&&typeof J.type==="string"&&typeof J.stream==="function"&&(J[Symbol.toStringTag]==="Blob"||J[Symbol.toStringTag]==="File")}Q0.exports={isBlob:o5,isValidStatusCode:s5,isValidUTF8:P0,tokenChars:a5};if(r0)Q0.exports.isValidUTF8=function(J){return J.length<24?P0(J):r0(J)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let J=(()=>{throw new Error("Cannot require module "+"utf-8-validate");})();Q0.exports.isValidUTF8=function(K){return K.length<32?P0(K):J(K)}}catch(J){}});var T0=P((H4,e0)=>{var{Writable:t5}=R("stream"),a0=a(),{BINARY_TYPES:e5,EMPTY_BUFFER:s0,kStatusCode:J1,kWebSocket:K1}=C(),{concat:M0,toArrayBuffer:X1,unmask:Z1}=n(),{isValidStatusCode:$1,isValidUTF8:o0}=l(),G0=Buffer[Symbol.species];class t0 extends t5{constructor(J={}){super();this._allowSynchronousEvents=J.allowSynchronousEvents!==void 0?J.allowSynchronousEvents:!0,this._binaryType=J.binaryType||e5[0],this._extensions=J.extensions||{},this._isServer=!!J.isServer,this._maxPayload=J.maxPayload|0,this._skipUTF8Validation=!!J.skipUTF8Validation,this[K1]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(J,K,X){if(this._opcode===8&&this._state==0)return X();this._bufferedBytes+=J.length,this._buffers.push(J),this.startLoop(X)}consume(J){if(this._bufferedBytes-=J,J===this._buffers[0].length)return this._buffers.shift();if(J<this._buffers[0].length){let X=this._buffers[0];return this._buffers[0]=new G0(X.buffer,X.byteOffset+J,X.length-J),new G0(X.buffer,X.byteOffset,J)}let K=Buffer.allocUnsafe(J);do{let X=this._buffers[0],Z=K.length-J;if(J>=X.length)K.set(this._buffers.shift(),Z);else K.set(new Uint8Array(X.buffer,X.byteOffset,J),Z),this._buffers[0]=new G0(X.buffer,X.byteOffset+J,X.length-J);J-=X.length}while(J>0);return K}startLoop(J){this._loop=!0;do switch(this._state){case 0:this.getInfo(J);break;case 1:this.getPayloadLength16(J);break;case 2:this.getPayloadLength64(J);break;case 3:this.getMask();break;case 4:this.getData(J);break;case 5:case 6:this._loop=!1;return}while(this._loop);if(!this._errored)J()}getInfo(J){if(this._bufferedBytes<2){this._loop=!1;return}let K=this.consume(2);if((K[0]&48)!==0){let Z=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");J(Z);return}let X=(K[0]&64)===64;if(X&&!this._extensions[a0.extensionName]){let Z=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");J(Z);return}if(this._fin=(K[0]&128)===128,this._opcode=K[0]&15,this._payloadLength=K[1]&127,this._opcode===0){if(X){let Z=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");J(Z);return}if(!this._fragmented){let Z=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");J(Z);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let Z=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");J(Z);return}this._compressed=X}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let Z=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");J(Z);return}if(X){let Z=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");J(Z);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let Z=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");J(Z);return}}else{let Z=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");J(Z);return}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;if(this._masked=(K[1]&128)===128,this._isServer){if(!this._masked){let Z=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");J(Z);return}}else if(this._masked){let Z=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");J(Z);return}if(this._payloadLength===126)this._state=1;else if(this._payloadLength===127)this._state=2;else this.haveLength(J)}getPayloadLength16(J){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(J)}getPayloadLength64(J){if(this._bufferedBytes<8){this._loop=!1;return}let K=this.consume(8),X=K.readUInt32BE(0);if(X>Math.pow(2,21)-1){let Z=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");J(Z);return}this._payloadLength=X*Math.pow(2,32)+K.readUInt32BE(4),this.haveLength(J)}haveLength(J){if(this._payloadLength&&this._opcode<8){if(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){let K=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");J(K);return}}if(this._masked)this._state=3;else this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData(J){let K=s0;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}if(K=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0)Z1(K,this._mask)}if(this._opcode>7){this.controlMessage(K,J);return}if(this._compressed){this._state=5,this.decompress(K,J);return}if(K.length)this._messageLength=this._totalPayloadLength,this._fragments.push(K);this.dataMessage(J)}decompress(J,K){this._extensions[a0.extensionName].decompress(J,this._fin,(Z,$)=>{if(Z)return K(Z);if($.length){if(this._messageLength+=$.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let Q=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");K(Q);return}this._fragments.push($)}if(this.dataMessage(K),this._state===0)this.startLoop(K)})}dataMessage(J){if(!this._fin){this._state=0;return}let K=this._messageLength,X=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let Z;if(this._binaryType==="nodebuffer")Z=M0(X,K);else if(this._binaryType==="arraybuffer")Z=X1(M0(X,K));else if(this._binaryType==="blob")Z=new Blob(X);else Z=X;if(this._allowSynchronousEvents)this.emit("message",Z,!0),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",Z,!0),this._state=0,this.startLoop(J)})}else{let Z=M0(X,K);if(!this._skipUTF8Validation&&!o0(Z)){let $=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");J($);return}if(this._state===5||this._allowSynchronousEvents)this.emit("message",Z,!1),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",Z,!1),this._state=0,this.startLoop(J)})}}controlMessage(J,K){if(this._opcode===8){if(J.length===0)this._loop=!1,this.emit("conclude",1005,s0),this.end();else{let X=J.readUInt16BE(0);if(!$1(X)){let $=this.createError(RangeError,`invalid status code ${X}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");K($);return}let Z=new G0(J.buffer,J.byteOffset+2,J.length-2);if(!this._skipUTF8Validation&&!o0(Z)){let $=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");K($);return}this._loop=!1,this.emit("conclude",X,Z),this.end()}this._state=0;return}if(this._allowSynchronousEvents)this.emit(this._opcode===9?"ping":"pong",J),this._state=0;else this._state=6,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",J),this._state=0,this.startLoop(K)})}createError(J,K,X,Z,$){this._loop=!1,this._errored=!0;let Q=new J(X?`Invalid WebSocket frame: ${K}`:K);return Error.captureStackTrace(Q,this.createError),Q.code=$,Q[J1]=Z,Q}}e0.exports=t0});var B0=P((A4,X5)=>{var{Duplex:R4}=R("stream"),{randomFillSync:Q1}=R("crypto"),J5=a(),{EMPTY_BUFFER:G1,kWebSocket:I1,NOOP:z1}=C(),{isBlob:p,isValidStatusCode:j1}=l(),{mask:K5,toBuffer:S}=n(),T=Symbol("kByteLength"),Y1=Buffer.alloc(4),v,b=8192,x=0,V1=1,_1=2;class W{constructor(J,K,X){if(this._extensions=K||{},X)this._generateMask=X,this._maskBuffer=Buffer.alloc(4);this._socket=J,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=x,this.onerror=z1,this[I1]=void 0}static frame(J,K){let X,Z=!1,$=2,Q=!1;if(K.mask){if(X=K.maskBuffer||Y1,K.generateMask)K.generateMask(X);else{if(b===8192){if(v===void 0)v=Buffer.alloc(8192);Q1(v,0,8192),b=0}X[0]=v[b++],X[1]=v[b++],X[2]=v[b++],X[3]=v[b++]}Q=(X[0]|X[1]|X[2]|X[3])===0,$=6}let G;if(typeof J==="string")if((!K.mask||Q)&&K[T]!==void 0)G=K[T];else J=Buffer.from(J),G=J.length;else G=J.length,Z=K.mask&&K.readOnly&&!Q;let z=G;if(G>=65536)$+=8,z=127;else if(G>125)$+=2,z=126;let I=Buffer.allocUnsafe(Z?G+$:$);if(I[0]=K.fin?K.opcode|128:K.opcode,K.rsv1)I[0]|=64;if(I[1]=z,z===126)I.writeUInt16BE(G,2);else if(z===127)I[2]=I[3]=0,I.writeUIntBE(G,4,6);if(!K.mask)return[I,J];if(I[1]|=128,I[$-4]=X[0],I[$-3]=X[1],I[$-2]=X[2],I[$-1]=X[3],Q)return[I,J];if(Z)return K5(J,X,I,$,G),[I];return K5(J,X,J,0,G),[I,J]}close(J,K,X,Z){let $;if(J===void 0)$=G1;else if(typeof J!=="number"||!j1(J))throw TypeError("First argument must be a valid error code number");else if(K===void 0||!K.length)$=Buffer.allocUnsafe(2),$.writeUInt16BE(J,0);else{let G=Buffer.byteLength(K);if(G>123)throw RangeError("The message must not be greater than 123 bytes");if($=Buffer.allocUnsafe(2+G),$.writeUInt16BE(J,0),typeof K==="string")$.write(K,2);else $.set(K,2)}let Q={[T]:$.length,fin:!0,generateMask:this._generateMask,mask:X,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};if(this._state!==x)this.enqueue([this.dispatch,$,!1,Q,Z]);else this.sendFrame(W.frame($,Q),Z)}ping(J,K,X){let Z,$;if(typeof J==="string")Z=Buffer.byteLength(J),$=!1;else if(p(J))Z=J.size,$=!1;else J=S(J),Z=J.length,$=S.readOnly;if(Z>125)throw RangeError("The data size must not be greater than 125 bytes");let Q={[T]:Z,fin:!0,generateMask:this._generateMask,mask:K,maskBuffer:this._maskBuffer,opcode:9,readOnly:$,rsv1:!1};if(p(J))if(this._state!==x)this.enqueue([this.getBlobData,J,!1,Q,X]);else this.getBlobData(J,!1,Q,X);else if(this._state!==x)this.enqueue([this.dispatch,J,!1,Q,X]);else this.sendFrame(W.frame(J,Q),X)}pong(J,K,X){let Z,$;if(typeof J==="string")Z=Buffer.byteLength(J),$=!1;else if(p(J))Z=J.size,$=!1;else J=S(J),Z=J.length,$=S.readOnly;if(Z>125)throw RangeError("The data size must not be greater than 125 bytes");let Q={[T]:Z,fin:!0,generateMask:this._generateMask,mask:K,maskBuffer:this._maskBuffer,opcode:10,readOnly:$,rsv1:!1};if(p(J))if(this._state!==x)this.enqueue([this.getBlobData,J,!1,Q,X]);else this.getBlobData(J,!1,Q,X);else if(this._state!==x)this.enqueue([this.dispatch,J,!1,Q,X]);else this.sendFrame(W.frame(J,Q),X)}send(J,K,X){let Z=this._extensions[J5.extensionName],$=K.binary?2:1,Q=K.compress,G,z;if(typeof J==="string")G=Buffer.byteLength(J),z=!1;else if(p(J))G=J.size,z=!1;else J=S(J),G=J.length,z=S.readOnly;if(this._firstFragment){if(this._firstFragment=!1,Q&&Z&&Z.params[Z._isServer?"server_no_context_takeover":"client_no_context_takeover"])Q=G>=Z._threshold;this._compress=Q}else Q=!1,$=0;if(K.fin)this._firstFragment=!0;let I={[T]:G,fin:K.fin,generateMask:this._generateMask,mask:K.mask,maskBuffer:this._maskBuffer,opcode:$,readOnly:z,rsv1:Q};if(p(J))if(this._state!==x)this.enqueue([this.getBlobData,J,this._compress,I,X]);else this.getBlobData(J,this._compress,I,X);else if(this._state!==x)this.enqueue([this.dispatch,J,this._compress,I,X]);else this.dispatch(J,this._compress,I,X)}getBlobData(J,K,X,Z){this._bufferedBytes+=X[T],this._state=_1,J.arrayBuffer().then(($)=>{if(this._socket.destroyed){let G=Error("The socket was closed while the blob was being read");process.nextTick(x0,this,G,Z);return}this._bufferedBytes-=X[T];let Q=S($);if(!K)this._state=x,this.sendFrame(W.frame(Q,X),Z),this.dequeue();else this.dispatch(Q,K,X,Z)}).catch(($)=>{process.nextTick(N1,this,$,Z)})}dispatch(J,K,X,Z){if(!K){this.sendFrame(W.frame(J,X),Z);return}let $=this._extensions[J5.extensionName];this._bufferedBytes+=X[T],this._state=V1,$.compress(J,X.fin,(Q,G)=>{if(this._socket.destroyed){let z=Error("The socket was closed while data was being compressed");x0(this,z,Z);return}this._bufferedBytes-=X[T],this._state=x,X.readOnly=!1,this.sendFrame(W.frame(G,X),Z),this.dequeue()})}dequeue(){while(this._state===x&&this._queue.length){let J=this._queue.shift();this._bufferedBytes-=J[3][T],Reflect.apply(J[0],this,J.slice(1))}}enqueue(J){this._bufferedBytes+=J[3][T],this._queue.push(J)}sendFrame(J,K){if(J.length===2)this._socket.cork(),this._socket.write(J[0]),this._socket.write(J[1],K),this._socket.uncork();else this._socket.write(J[0],K)}}X5.exports=W;function x0(J,K,X){if(typeof X==="function")X(K);for(let Z=0;Z<J._queue.length;Z++){let $=J._queue[Z],Q=$[$.length-1];if(typeof Q==="function")Q(K)}}function N1(J,K,X){x0(J,K,X),J.onerror(K)}});var V5=P((F4,Y5)=>{var{kForOnEventAttribute:s,kListener:C0}=C(),Z5=Symbol("kCode"),$5=Symbol("kData"),Q5=Symbol("kError"),G5=Symbol("kMessage"),I5=Symbol("kReason"),k=Symbol("kTarget"),z5=Symbol("kType"),j5=Symbol("kWasClean");class E{constructor(J){this[k]=null,this[z5]=J}get target(){return this[k]}get type(){return this[z5]}}Object.defineProperty(E.prototype,"target",{enumerable:!0});Object.defineProperty(E.prototype,"type",{enumerable:!0});class i extends E{constructor(J,K={}){super(J);this[Z5]=K.code===void 0?0:K.code,this[I5]=K.reason===void 0?"":K.reason,this[j5]=K.wasClean===void 0?!1:K.wasClean}get code(){return this[Z5]}get reason(){return this[I5]}get wasClean(){return this[j5]}}Object.defineProperty(i.prototype,"code",{enumerable:!0});Object.defineProperty(i.prototype,"reason",{enumerable:!0});Object.defineProperty(i.prototype,"wasClean",{enumerable:!0});class o extends E{constructor(J,K={}){super(J);this[Q5]=K.error===void 0?null:K.error,this[G5]=K.message===void 0?"":K.message}get error(){return this[Q5]}get message(){return this[G5]}}Object.defineProperty(o.prototype,"error",{enumerable:!0});Object.defineProperty(o.prototype,"message",{enumerable:!0});class z0 extends E{constructor(J,K={}){super(J);this[$5]=K.data===void 0?null:K.data}get data(){return this[$5]}}Object.defineProperty(z0.prototype,"data",{enumerable:!0});var H1={addEventListener(J,K,X={}){for(let $ of this.listeners(J))if(!X[s]&&$[C0]===K&&!$[s])return;let Z;if(J==="message")Z=function(Q,G){let z=new z0("message",{data:G?Q:Q.toString()});z[k]=this,I0(K,this,z)};else if(J==="close")Z=function(Q,G){let z=new i("close",{code:Q,reason:G.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});z[k]=this,I0(K,this,z)};else if(J==="error")Z=function(Q){let G=new o("error",{error:Q,message:Q.message});G[k]=this,I0(K,this,G)};else if(J==="open")Z=function(){let Q=new E("open");Q[k]=this,I0(K,this,Q)};else return;if(Z[s]=!!X[s],Z[C0]=K,X.once)this.once(J,Z);else this.on(J,Z)},removeEventListener(J,K){for(let X of this.listeners(J))if(X[C0]===K&&!X[s]){this.removeListener(J,X);break}}};Y5.exports={CloseEvent:i,ErrorEvent:o,Event:E,EventTarget:H1,MessageEvent:z0};function I0(J,K,X){if(typeof J==="object"&&J.handleEvent)J.handleEvent.call(J,X);else J.call(K,X)}});var q0=P((D4,_5)=>{var{tokenChars:t}=l();function B(J,K,X){if(J[K]===void 0)J[K]=[X];else J[K].push(X)}function R1(J){let K=Object.create(null),X=Object.create(null),Z=!1,$=!1,Q=!1,G,z,I=-1,V=-1,_=-1,Y=0;for(;Y<J.length;Y++)if(V=J.charCodeAt(Y),G===void 0)if(_===-1&&t[V]===1){if(I===-1)I=Y}else if(Y!==0&&(V===32||V===9)){if(_===-1&&I!==-1)_=Y}else if(V===59||V===44){if(I===-1)throw SyntaxError(`Unexpected character at index ${Y}`);if(_===-1)_=Y;let D=J.slice(I,_);if(V===44)B(K,D,X),X=Object.create(null);else G=D;I=_=-1}else throw SyntaxError(`Unexpected character at index ${Y}`);else if(z===void 0)if(_===-1&&t[V]===1){if(I===-1)I=Y}else if(V===32||V===9){if(_===-1&&I!==-1)_=Y}else if(V===59||V===44){if(I===-1)throw SyntaxError(`Unexpected character at index ${Y}`);if(_===-1)_=Y;if(B(X,J.slice(I,_),!0),V===44)B(K,G,X),X=Object.create(null),G=void 0;I=_=-1}else if(V===61&&I!==-1&&_===-1)z=J.slice(I,Y),I=_=-1;else throw SyntaxError(`Unexpected character at index ${Y}`);else if($){if(t[V]!==1)throw SyntaxError(`Unexpected character at index ${Y}`);if(I===-1)I=Y;else if(!Z)Z=!0;$=!1}else if(Q)if(t[V]===1){if(I===-1)I=Y}else if(V===34&&I!==-1)Q=!1,_=Y;else if(V===92)$=!0;else throw SyntaxError(`Unexpected character at index ${Y}`);else if(V===34&&J.charCodeAt(Y-1)===61)Q=!0;else if(_===-1&&t[V]===1){if(I===-1)I=Y}else if(I!==-1&&(V===32||V===9)){if(_===-1)_=Y}else if(V===59||V===44){if(I===-1)throw SyntaxError(`Unexpected character at index ${Y}`);if(_===-1)_=Y;let D=J.slice(I,_);if(Z)D=D.replace(/\\/g,""),Z=!1;if(B(X,z,D),V===44)B(K,G,X),X=Object.create(null),G=void 0;z=void 0,I=_=-1}else throw SyntaxError(`Unexpected character at index ${Y}`);if(I===-1||Q||V===32||V===9)throw SyntaxError("Unexpected end of input");if(_===-1)_=Y;let F=J.slice(I,_);if(G===void 0)B(K,F,X);else{if(z===void 0)B(X,F,!0);else if(Z)B(X,z,F.replace(/\\/g,""));else B(X,z,F);B(K,G,X)}return K}function A1(J){return Object.keys(J).map((K)=>{let X=J[K];if(!Array.isArray(X))X=[X];return X.map((Z)=>{return[K].concat(Object.keys(Z).map(($)=>{let Q=Z[$];if(!Array.isArray(Q))Q=[Q];return Q.map((G)=>G===!0?$:`${$}=${G}`).join("; ")})).join("; ")}).join(", ")}).join(", ")}_5.exports={format:A1,parse:R1}});var _0=P((M4,B5)=>{var F1=R("events"),D1=R("https"),O1=R("http"),R5=R("net"),P1=R("tls"),{randomBytes:M1,createHash:T1}=R("crypto"),{Duplex:O4,Readable:P4}=R("stream"),{URL:U0}=R("url"),y=a(),x1=T0(),B1=B0(),{isBlob:C1}=l(),{BINARY_TYPES:N5,CLOSE_TIMEOUT:q1,EMPTY_BUFFER:j0,GUID:U1,kForOnEventAttribute:L0,kListener:L1,kStatusCode:W1,kWebSocket:A,NOOP:A5}=C(),{EventTarget:{addEventListener:E1,removeEventListener:y1}}=V5(),{format:S1,parse:v1}=q0(),{toBuffer:g1}=n(),F5=Symbol("kAborted"),W0=[8,13],U=["CONNECTING","OPEN","CLOSING","CLOSED"],w1=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class j extends F1{constructor(J,K,X){super();if(this._binaryType=N5[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=j0,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=j.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,J!==null){if(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,K===void 0)K=[];else if(!Array.isArray(K))if(typeof K==="object"&&K!==null)X=K,K=[];else K=[K];D5(this,J,K,X)}else this._autoPong=X.autoPong,this._closeTimeout=X.closeTimeout,this._isServer=!0}get binaryType(){return this._binaryType}set binaryType(J){if(!N5.includes(J))return;if(this._binaryType=J,this._receiver)this._receiver._binaryType=J}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(J,K,X){let Z=new x1({allowSynchronousEvents:X.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:X.maxPayload,skipUTF8Validation:X.skipUTF8Validation}),$=new B1(J,this._extensions,X.generateMask);if(this._receiver=Z,this._sender=$,this._socket=J,Z[A]=this,$[A]=this,J[A]=this,Z.on("conclude",f1),Z.on("drain",u1),Z.on("error",l1),Z.on("message",p1),Z.on("ping",b1),Z.on("pong",k1),$.onerror=i1,J.setTimeout)J.setTimeout(0);if(J.setNoDelay)J.setNoDelay();if(K.length>0)J.unshift(K);J.on("close",M5),J.on("data",V0),J.on("end",T5),J.on("error",x5),this._readyState=j.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=j.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[y.extensionName])this._extensions[y.extensionName].cleanup();this._receiver.removeAllListeners(),this._readyState=j.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(J,K){if(this.readyState===j.CLOSED)return;if(this.readyState===j.CONNECTING){M(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===j.CLOSING){if(this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted))this._socket.end();return}this._readyState=j.CLOSING,this._sender.close(J,K,!this._isServer,(X)=>{if(X)return;if(this._closeFrameSent=!0,this._closeFrameReceived||this._receiver._writableState.errorEmitted)this._socket.end()}),P5(this)}pause(){if(this.readyState===j.CONNECTING||this.readyState===j.CLOSED)return;this._paused=!0,this._socket.pause()}ping(J,K,X){if(this.readyState===j.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof J==="function")X=J,J=K=void 0;else if(typeof K==="function")X=K,K=void 0;if(typeof J==="number")J=J.toString();if(this.readyState!==j.OPEN){E0(this,J,X);return}if(K===void 0)K=!this._isServer;this._sender.ping(J||j0,K,X)}pong(J,K,X){if(this.readyState===j.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof J==="function")X=J,J=K=void 0;else if(typeof K==="function")X=K,K=void 0;if(typeof J==="number")J=J.toString();if(this.readyState!==j.OPEN){E0(this,J,X);return}if(K===void 0)K=!this._isServer;this._sender.pong(J||j0,K,X)}resume(){if(this.readyState===j.CONNECTING||this.readyState===j.CLOSED)return;if(this._paused=!1,!this._receiver._writableState.needDrain)this._socket.resume()}send(J,K,X){if(this.readyState===j.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof K==="function")X=K,K={};if(typeof J==="number")J=J.toString();if(this.readyState!==j.OPEN){E0(this,J,X);return}let Z={binary:typeof J!=="string",mask:!this._isServer,compress:!0,fin:!0,...K};if(!this._extensions[y.extensionName])Z.compress=!1;this._sender.send(J||j0,Z,X)}terminate(){if(this.readyState===j.CLOSED)return;if(this.readyState===j.CONNECTING){M(this,this._req,"WebSocket was closed before the connection was established");return}if(this._socket)this._readyState=j.CLOSING,this._socket.destroy()}}Object.defineProperty(j,"CONNECTING",{enumerable:!0,value:U.indexOf("CONNECTING")});Object.defineProperty(j.prototype,"CONNECTING",{enumerable:!0,value:U.indexOf("CONNECTING")});Object.defineProperty(j,"OPEN",{enumerable:!0,value:U.indexOf("OPEN")});Object.defineProperty(j.prototype,"OPEN",{enumerable:!0,value:U.indexOf("OPEN")});Object.defineProperty(j,"CLOSING",{enumerable:!0,value:U.indexOf("CLOSING")});Object.defineProperty(j.prototype,"CLOSING",{enumerable:!0,value:U.indexOf("CLOSING")});Object.defineProperty(j,"CLOSED",{enumerable:!0,value:U.indexOf("CLOSED")});Object.defineProperty(j.prototype,"CLOSED",{enumerable:!0,value:U.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((J)=>{Object.defineProperty(j.prototype,J,{enumerable:!0})});["open","error","close","message"].forEach((J)=>{Object.defineProperty(j.prototype,`on${J}`,{enumerable:!0,get(){for(let K of this.listeners(J))if(K[L0])return K[L1];return null},set(K){for(let X of this.listeners(J))if(X[L0]){this.removeListener(J,X);break}if(typeof K!=="function")return;this.addEventListener(J,K,{[L0]:!0})}})});j.prototype.addEventListener=E1;j.prototype.removeEventListener=y1;B5.exports=j;function D5(J,K,X,Z){let $={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:q1,protocolVersion:W0[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...Z,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(J._autoPong=$.autoPong,J._closeTimeout=$.closeTimeout,!W0.includes($.protocolVersion))throw RangeError(`Unsupported protocol version: ${$.protocolVersion} (supported versions: ${W0.join(", ")})`);let Q;if(K instanceof U0)Q=K;else try{Q=new U0(K)}catch(N){throw SyntaxError(`Invalid URL: ${K}`)}if(Q.protocol==="http:")Q.protocol="ws:";else if(Q.protocol==="https:")Q.protocol="wss:";J._url=Q.href;let G=Q.protocol==="wss:",z=Q.protocol==="ws+unix:",I;if(Q.protocol!=="ws:"&&!G&&!z)I=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`;else if(z&&!Q.pathname)I="The URL's pathname is empty";else if(Q.hash)I="The URL contains a fragment identifier";if(I){let N=SyntaxError(I);if(J._redirects===0)throw N;else{Y0(J,N);return}}let V=G?443:80,_=M1(16).toString("base64"),Y=G?D1.request:O1.request,F=new Set,D;if($.createConnection=$.createConnection||(G?m1:h1),$.defaultPort=$.defaultPort||V,$.port=Q.port||V,$.host=Q.hostname.startsWith("[")?Q.hostname.slice(1,-1):Q.hostname,$.headers={...$.headers,"Sec-WebSocket-Version":$.protocolVersion,"Sec-WebSocket-Key":_,Connection:"Upgrade",Upgrade:"websocket"},$.path=Q.pathname+Q.search,$.timeout=$.handshakeTimeout,$.perMessageDeflate)D=new y($.perMessageDeflate!==!0?$.perMessageDeflate:{},!1,$.maxPayload),$.headers["Sec-WebSocket-Extensions"]=S1({[y.extensionName]:D.offer()});if(X.length){for(let N of X){if(typeof N!=="string"||!w1.test(N)||F.has(N))throw SyntaxError("An invalid or duplicated subprotocol was specified");F.add(N)}$.headers["Sec-WebSocket-Protocol"]=X.join(",")}if($.origin)if($.protocolVersion<13)$.headers["Sec-WebSocket-Origin"]=$.origin;else $.headers.Origin=$.origin;if(Q.username||Q.password)$.auth=`${Q.username}:${Q.password}`;if(z){let N=$.path.split(":");$.socketPath=N[0],$.path=N[1]}let H;if($.followRedirects){if(J._redirects===0){J._originalIpc=z,J._originalSecure=G,J._originalHostOrSocketPath=z?$.socketPath:Q.host;let N=Z&&Z.headers;if(Z={...Z,headers:{}},N)for(let[O,h]of Object.entries(N))Z.headers[O.toLowerCase()]=h}else if(J.listenerCount("redirect")===0){let N=z?J._originalIpc?$.socketPath===J._originalHostOrSocketPath:!1:J._originalIpc?!1:Q.host===J._originalHostOrSocketPath;if(!N||J._originalSecure&&!G){if(delete $.headers.authorization,delete $.headers.cookie,!N)delete $.headers.host;$.auth=void 0}}if($.auth&&!Z.headers.authorization)Z.headers.authorization="Basic "+Buffer.from($.auth).toString("base64");if(H=J._req=Y($),J._redirects)J.emit("redirect",J.url,H)}else H=J._req=Y($);if($.timeout)H.on("timeout",()=>{M(J,H,"Opening handshake has timed out")});if(H.on("error",(N)=>{if(H===null||H[F5])return;H=J._req=null,Y0(J,N)}),H.on("response",(N)=>{let O=N.headers.location,h=N.statusCode;if(O&&$.followRedirects&&h>=300&&h<400){if(++J._redirects>$.maxRedirects){M(J,H,"Maximum redirects exceeded");return}H.abort();let d;try{d=new U0(O,K)}catch(y0){let m=SyntaxError(`Invalid URL: ${O}`);Y0(J,m);return}D5(J,d,X,Z)}else if(!J.emit("unexpected-response",H,N))M(J,H,`Unexpected server response: ${N.statusCode}`)}),H.on("upgrade",(N,O,h)=>{if(J.emit("upgrade",N),J.readyState!==j.CONNECTING)return;H=J._req=null;let d=N.headers.upgrade;if(d===void 0||d.toLowerCase()!=="websocket"){M(J,O,"Invalid Upgrade header");return}let y0=T1("sha1").update(_+U1).digest("base64");if(N.headers["sec-websocket-accept"]!==y0){M(J,O,"Invalid Sec-WebSocket-Accept header");return}let m=N.headers["sec-websocket-protocol"],c;if(m!==void 0){if(!F.size)c="Server sent a subprotocol but none was requested";else if(!F.has(m))c="Server sent an invalid subprotocol"}else if(F.size)c="Server sent no subprotocol";if(c){M(J,O,c);return}if(m)J._protocol=m;let S0=N.headers["sec-websocket-extensions"];if(S0!==void 0){if(!D){M(J,O,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let R0;try{R0=v1(S0)}catch(A0){M(J,O,"Invalid Sec-WebSocket-Extensions header");return}let v0=Object.keys(R0);if(v0.length!==1||v0[0]!==y.extensionName){M(J,O,"Server indicated an extension that was not requested");return}try{D.accept(R0[y.extensionName])}catch(A0){M(J,O,"Invalid Sec-WebSocket-Extensions header");return}J._extensions[y.extensionName]=D}J.setSocket(O,h,{allowSynchronousEvents:$.allowSynchronousEvents,generateMask:$.generateMask,maxPayload:$.maxPayload,skipUTF8Validation:$.skipUTF8Validation})}),$.finishRequest)$.finishRequest(H,J);else H.end()}function Y0(J,K){J._readyState=j.CLOSING,J._errorEmitted=!0,J.emit("error",K),J.emitClose()}function h1(J){return J.path=J.socketPath,R5.connect(J)}function m1(J){if(J.path=void 0,!J.servername&&J.servername!=="")J.servername=R5.isIP(J.host)?"":J.host;return P1.connect(J)}function M(J,K,X){J._readyState=j.CLOSING;let Z=Error(X);if(Error.captureStackTrace(Z,M),K.setHeader){if(K[F5]=!0,K.abort(),K.socket&&!K.socket.destroyed)K.socket.destroy();process.nextTick(Y0,J,Z)}else K.destroy(Z),K.once("error",J.emit.bind(J,"error")),K.once("close",J.emitClose.bind(J))}function E0(J,K,X){if(K){let Z=C1(K)?K.size:g1(K).length;if(J._socket)J._sender._bufferedBytes+=Z;else J._bufferedAmount+=Z}if(X){let Z=Error(`WebSocket is not open: readyState ${J.readyState} (${U[J.readyState]})`);process.nextTick(X,Z)}}function f1(J,K){let X=this[A];if(X._closeFrameReceived=!0,X._closeMessage=K,X._closeCode=J,X._socket[A]===void 0)return;if(X._socket.removeListener("data",V0),process.nextTick(O5,X._socket),J===1005)X.close();else X.close(J,K)}function u1(){let J=this[A];if(!J.isPaused)J._socket.resume()}function l1(J){let K=this[A];if(K._socket[A]!==void 0)K._socket.removeListener("data",V0),process.nextTick(O5,K._socket),K.close(J[W1]);if(!K._errorEmitted)K._errorEmitted=!0,K.emit("error",J)}function H5(){this[A].emitClose()}function p1(J,K){this[A].emit("message",J,K)}function b1(J){let K=this[A];if(K._autoPong)K.pong(J,!this._isServer,A5);K.emit("ping",J)}function k1(J){this[A].emit("pong",J)}function O5(J){J.resume()}function i1(J){let K=this[A];if(K.readyState===j.CLOSED)return;if(K.readyState===j.OPEN)K._readyState=j.CLOSING,P5(K);if(this._socket.end(),!K._errorEmitted)K._errorEmitted=!0,K.emit("error",J)}function P5(J){J._closeTimer=setTimeout(J._socket.destroy.bind(J._socket),J._closeTimeout)}function M5(){let J=this[A];if(this.removeListener("close",M5),this.removeListener("data",V0),this.removeListener("end",T5),J._readyState=j.CLOSING,!this._readableState.endEmitted&&!J._closeFrameReceived&&!J._receiver._writableState.errorEmitted&&this._readableState.length!==0){let K=this.read(this._readableState.length);J._receiver.write(K)}if(J._receiver.end(),this[A]=void 0,clearTimeout(J._closeTimer),J._receiver._writableState.finished||J._receiver._writableState.errorEmitted)J.emitClose();else J._receiver.on("error",H5),J._receiver.on("finish",H5)}function V0(J){if(!this[A]._receiver.write(J))this.pause()}function T5(){let J=this[A];J._readyState=j.CLOSING,J._receiver.end(),this.end()}function x5(){let J=this[A];if(this.removeListener("error",x5),this.on("error",A5),J)J._readyState=j.CLOSING,this.destroy()}});var L5=P((x4,U5)=>{var T4=_0(),{Duplex:d1}=R("stream");function C5(J){J.emit("close")}function c1(){if(!this.destroyed&&this._writableState.finished)this.destroy()}function q5(J){if(this.removeListener("error",q5),this.destroy(),this.listenerCount("error")===0)this.emit("error",J)}function n1(J,K){let X=!0,Z=new d1({...K,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return J.on("message",function(Q,G){let z=!G&&Z._readableState.objectMode?Q.toString():Q;if(!Z.push(z))J.pause()}),J.once("error",function(Q){if(Z.destroyed)return;X=!1,Z.destroy(Q)}),J.once("close",function(){if(Z.destroyed)return;Z.push(null)}),Z._destroy=function($,Q){if(J.readyState===J.CLOSED){Q($),process.nextTick(C5,Z);return}let G=!1;if(J.once("error",function(I){G=!0,Q(I)}),J.once("close",function(){if(!G)Q($);process.nextTick(C5,Z)}),X)J.terminate()},Z._final=function($){if(J.readyState===J.CONNECTING){J.once("open",function(){Z._final($)});return}if(J._socket===null)return;if(J._socket._writableState.finished){if($(),Z._readableState.endEmitted)Z.destroy()}else J._socket.once("finish",function(){$()}),J.close()},Z._read=function(){if(J.isPaused)J.resume()},Z._write=function($,Q,G){if(J.readyState===J.CONNECTING){J.once("open",function(){Z._write($,Q,G)});return}J.send($,G)},Z.on("end",c1),Z.on("error",q5),Z}U5.exports=n1});var E5=P((B4,W5)=>{var{tokenChars:r1}=l();function a1(J){let K=new Set,X=-1,Z=-1,$=0;for($;$<J.length;$++){let G=J.charCodeAt($);if(Z===-1&&r1[G]===1){if(X===-1)X=$}else if($!==0&&(G===32||G===9)){if(Z===-1&&X!==-1)Z=$}else if(G===44){if(X===-1)throw SyntaxError(`Unexpected character at index ${$}`);if(Z===-1)Z=$;let z=J.slice(X,Z);if(K.has(z))throw SyntaxError(`The "${z}" subprotocol is duplicated`);K.add(z),X=Z=-1}else throw SyntaxError(`Unexpected character at index ${$}`)}if(X===-1||Z!==-1)throw SyntaxError("Unexpected end of input");let Q=J.slice(X,$);if(K.has(Q))throw SyntaxError(`The "${Q}" subprotocol is duplicated`);return K.add(Q),K}W5.exports={parse:a1}});var w5=P((q4,g5)=>{var s1=R("events"),N0=R("http"),{Duplex:C4}=R("stream"),{createHash:o1}=R("crypto"),y5=q0(),g=a(),t1=E5(),e1=_0(),{CLOSE_TIMEOUT:J4,GUID:K4,kWebSocket:X4}=C(),Z4=/^[+/0-9A-Za-z]{22}==$/;class v5 extends s1{constructor(J,K){super();if(J={allowSynchronousEvents:!0,autoPong:!0,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:J4,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:e1,...J},J.port==null&&!J.server&&!J.noServer||J.port!=null&&(J.server||J.noServer)||J.server&&J.noServer)throw TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(J.port!=null)this._server=N0.createServer((X,Z)=>{let $=N0.STATUS_CODES[426];Z.writeHead(426,{"Content-Length":$.length,"Content-Type":"text/plain"}),Z.end($)}),this._server.listen(J.port,J.host,J.backlog,K);else if(J.server)this._server=J.server;if(this._server){let X=this.emit.bind(this,"connection");this._removeListeners=$4(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(Z,$,Q)=>{this.handleUpgrade(Z,$,Q,X)}})}if(J.perMessageDeflate===!0)J.perMessageDeflate={};if(J.clientTracking)this.clients=new Set,this._shouldEmitClose=!1;this.options=J,this._state=0}address(){if(this.options.noServer)throw Error('The server is operating in "noServer" mode');if(!this._server)return null;return this._server.address()}close(J){if(this._state===2){if(J)this.once("close",()=>{J(Error("The server is not running"))});process.nextTick(e,this);return}if(J)this.once("close",J);if(this._state===1)return;if(this._state=1,this.options.noServer||this.options.server){if(this._server)this._removeListeners(),this._removeListeners=this._server=null;if(this.clients)if(!this.clients.size)process.nextTick(e,this);else this._shouldEmitClose=!0;else process.nextTick(e,this)}else{let K=this._server;this._removeListeners(),this._removeListeners=this._server=null,K.close(()=>{e(this)})}}shouldHandle(J){if(this.options.path){let K=J.url.indexOf("?");if((K!==-1?J.url.slice(0,K):J.url)!==this.options.path)return!1}return!0}handleUpgrade(J,K,X,Z){K.on("error",S5);let $=J.headers["sec-websocket-key"],Q=J.headers.upgrade,G=+J.headers["sec-websocket-version"];if(J.method!=="GET"){w(this,J,K,405,"Invalid HTTP method");return}if(Q===void 0||Q.toLowerCase()!=="websocket"){w(this,J,K,400,"Invalid Upgrade header");return}if($===void 0||!Z4.test($)){w(this,J,K,400,"Missing or invalid Sec-WebSocket-Key header");return}if(G!==13&&G!==8){w(this,J,K,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle(J)){J0(K,400);return}let z=J.headers["sec-websocket-protocol"],I=new Set;if(z!==void 0)try{I=t1.parse(z)}catch(Y){w(this,J,K,400,"Invalid Sec-WebSocket-Protocol header");return}let V=J.headers["sec-websocket-extensions"],_={};if(this.options.perMessageDeflate&&V!==void 0){let Y=new g(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let F=y5.parse(V);if(F[g.extensionName])Y.accept(F[g.extensionName]),_[g.extensionName]=Y}catch(F){w(this,J,K,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let Y={origin:J.headers[`${G===8?"sec-websocket-origin":"origin"}`],secure:!!(J.socket.authorized||J.socket.encrypted),req:J};if(this.options.verifyClient.length===2){this.options.verifyClient(Y,(F,D,H,N)=>{if(!F)return J0(K,D||401,H,N);this.completeUpgrade(_,$,I,J,K,X,Z)});return}if(!this.options.verifyClient(Y))return J0(K,401)}this.completeUpgrade(_,$,I,J,K,X,Z)}completeUpgrade(J,K,X,Z,$,Q,G){if(!$.readable||!$.writable)return $.destroy();if($[X4])throw Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return J0($,503);let I=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${o1("sha1").update(K+K4).digest("base64")}`],V=new this.options.WebSocket(null,void 0,this.options);if(X.size){let _=this.options.handleProtocols?this.options.handleProtocols(X,Z):X.values().next().value;if(_)I.push(`Sec-WebSocket-Protocol: ${_}`),V._protocol=_}if(J[g.extensionName]){let _=J[g.extensionName].params,Y=y5.format({[g.extensionName]:[_]});I.push(`Sec-WebSocket-Extensions: ${Y}`),V._extensions=J}if(this.emit("headers",I,Z),$.write(I.concat(`\r
|
|
2
2
|
`).join(`\r
|
|
3
3
|
`)),$.removeListener("error",S5),V.setSocket($,Q,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients)this.clients.add(V),V.on("close",()=>{if(this.clients.delete(V),this._shouldEmitClose&&!this.clients.size)process.nextTick(e,this)});G(V,Z)}}g5.exports=v5;function $4(J,K){for(let X of Object.keys(K))J.on(X,K[X]);return function(){for(let Z of Object.keys(K))J.removeListener(Z,K[Z])}}function e(J){J._state=2,J.emit("close")}function S5(){this.destroy()}function J0(J,K,X,Z){X=X||N0.STATUS_CODES[K],Z={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(X),...Z},J.once("finish",J.destroy),J.end(`HTTP/1.1 ${K} ${N0.STATUS_CODES[K]}\r
|
|
4
4
|
`+Object.keys(Z).map(($)=>`${$}: ${Z[$]}`).join(`\r
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Oa as R,Pa as Q,Qa as b,Ra as x,Sa as _,Ta as C,Ua as f}from"./chunk-axn0n4dh.js";import{lc as j}from"./chunk-kn8f91na.js";import{Kysely as q,sql as A}from"kysely";var K={maxRetries:3,baseDelayMs:100,nonRetryablePatterns:["database disk image is malformed","database is malformed","cannot rollback","no transaction is active","database or disk is full"],isRetryableError:(J)=>{let $=J?.message?.toLowerCase()||"";for(let B of K.nonRetryablePatterns)if($.includes(B.toLowerCase()))return!1;return $.includes("sqlite_busy")||$.includes("database is locked")||$==="sqlite_busy"||$==="database is locked"}};async function T(J,$){let B=null;for(let H=0;H<K.maxRetries;H++)try{return await J()}catch(Z){B=Z;let U=Z?.message?.toLowerCase()||"";if(!K.isRetryableError(Z)){if(U.includes("malformed")){let D=Error(`SQLite database is corrupted: ${Z.message}
|
|
2
2
|
|
|
3
3
|
Context: ${$||"unknown"}
|
|
4
4
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-kn8f91na.js";var n=Object.freeze(JSON.parse('{"displayName":"Beancount","fileTypes":["beancount"],"name":"beancount","patterns":[{"match":";.*","name":"comment.line.beancount"},{"begin":"^\\\\s*(p(?:op|ush)tag)\\\\s+(#)([\\\\--9A-Z_a-z]+)","beginCaptures":{"1":{"name":"support.function.beancount"},"2":{"name":"keyword.operator.tag.beancount"},"3":{"name":"entity.name.tag.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.tag.beancount","patterns":[{"include":"#comments"},{"include":"#illegal"}]},{"begin":"^\\\\s*(include)\\\\s+(\\".*\\")","beginCaptures":{"1":{"name":"support.function.beancount"},"2":{"name":"string.quoted.double.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.include.beancount","patterns":[{"include":"#comments"},{"include":"#illegal"}]},{"begin":"^\\\\s*(option)\\\\s+(\\".*\\")\\\\s+(\\".*\\")","beginCaptures":{"1":{"name":"support.function.beancount"},"2":{"name":"support.variable.beancount"},"3":{"name":"string.quoted.double.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.option.beancount","patterns":[{"include":"#comments"},{"include":"#illegal"}]},{"begin":"^\\\\s*(plugin)\\\\s*(\\"(.*?)\\")\\\\s*(\\".*?\\")?","beginCaptures":{"1":{"name":"support.function.beancount"},"2":{"name":"string.quoted.double.beancount"},"3":{"name":"entity.name.function.beancount"},"4":{"name":"string.quoted.double.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"keyword.operator.directive.beancount","patterns":[{"include":"#comments"},{"include":"#illegal"}]},{"begin":"([0-9]{4})([-/|])([0-9]{2})([-/|])([0-9]{2})\\\\s+(open|close|pad)\\\\b","beginCaptures":{"1":{"name":"constant.numeric.date.year.beancount"},"2":{"name":"punctuation.separator.beancount"},"3":{"name":"constant.numeric.date.month.beancount"},"4":{"name":"punctuation.separator.beancount"},"5":{"name":"constant.numeric.date.day.beancount"},"6":{"name":"support.function.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.dated.beancount","patterns":[{"include":"#comments"},{"include":"#meta"},{"include":"#account"},{"include":"#commodity"},{"match":",","name":"punctuation.separator.beancount"},{"include":"#illegal"}]},{"begin":"([0-9]{4})([-/|])([0-9]{2})([-/|])([0-9]{2})\\\\s+(custom)\\\\b","beginCaptures":{"1":{"name":"constant.numeric.date.year.beancount"},"2":{"name":"punctuation.separator.beancount"},"3":{"name":"constant.numeric.date.month.beancount"},"4":{"name":"punctuation.separator.beancount"},"5":{"name":"constant.numeric.date.day.beancount"},"6":{"name":"support.function.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.dated.beancount","patterns":[{"include":"#comments"},{"include":"#meta"},{"include":"#string"},{"include":"#bool"},{"include":"#amount"},{"include":"#number"},{"include":"#date"},{"include":"#account"},{"include":"#illegal"}]},{"begin":"([0-9]{4})([-/|])([0-9]{2})([-/|])([0-9]{2})\\\\s(event)","beginCaptures":{"1":{"name":"constant.numeric.date.year.beancount"},"2":{"name":"punctuation.separator.beancount"},"3":{"name":"constant.numeric.date.month.beancount"},"4":{"name":"punctuation.separator.beancount"},"5":{"name":"constant.numeric.date.day.beancount"},"6":{"name":"support.function.directive.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.dated.beancount","patterns":[{"include":"#comments"},{"include":"#meta"},{"include":"#string"},{"include":"#illegal"}]},{"begin":"([0-9]{4})([-/|])([0-9]{2})([-/|])([0-9]{2})\\\\s(commodity)","beginCaptures":{"1":{"name":"constant.numeric.date.year.beancount"},"2":{"name":"punctuation.separator.beancount"},"3":{"name":"constant.numeric.date.month.beancount"},"4":{"name":"punctuation.separator.beancount"},"5":{"name":"constant.numeric.date.day.beancount"},"6":{"name":"support.function.directive.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.dated.beancount","patterns":[{"include":"#comments"},{"include":"#meta"},{"include":"#commodity"},{"include":"#illegal"}]},{"begin":"([0-9]{4})([-/|])([0-9]{2})([-/|])([0-9]{2})\\\\s(note|document)","beginCaptures":{"1":{"name":"constant.numeric.date.year.beancount"},"2":{"name":"punctuation.separator.beancount"},"3":{"name":"constant.numeric.date.month.beancount"},"4":{"name":"punctuation.separator.beancount"},"5":{"name":"constant.numeric.date.day.beancount"},"6":{"name":"support.function.directive.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.dated.beancount","patterns":[{"include":"#comments"},{"include":"#meta"},{"include":"#account"},{"include":"#string"},{"include":"#illegal"}]},{"begin":"([0-9]{4})([-/|])([0-9]{2})([-/|])([0-9]{2})\\\\s(price)","beginCaptures":{"1":{"name":"constant.numeric.date.year.beancount"},"2":{"name":"punctuation.separator.beancount"},"3":{"name":"constant.numeric.date.month.beancount"},"4":{"name":"punctuation.separator.beancount"},"5":{"name":"constant.numeric.date.day.beancount"},"6":{"name":"support.function.directive.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.dated.beancount","patterns":[{"include":"#comments"},{"include":"#meta"},{"include":"#commodity"},{"include":"#amount"},{"include":"#illegal"}]},{"begin":"([0-9]{4})([-/|])([0-9]{2})([-/|])([0-9]{2})\\\\s(balance)","beginCaptures":{"1":{"name":"constant.numeric.date.year.beancount"},"2":{"name":"punctuation.separator.beancount"},"3":{"name":"constant.numeric.date.month.beancount"},"4":{"name":"punctuation.separator.beancount"},"5":{"name":"constant.numeric.date.day.beancount"},"6":{"name":"support.function.directive.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.dated.beancount","patterns":[{"include":"#comments"},{"include":"#meta"},{"include":"#account"},{"include":"#amount"},{"include":"#illegal"}]},{"begin":"([0-9]{4})([-/|])([0-9]{2})([-/|])([0-9]{2})\\\\s*(txn|[!#%\\\\&*?CMPR-U])\\\\s*(\\".*?\\")?\\\\s*(\\".*?\\")?","beginCaptures":{"1":{"name":"constant.numeric.date.year.beancount"},"2":{"name":"punctuation.separator.beancount"},"3":{"name":"constant.numeric.date.month.beancount"},"4":{"name":"punctuation.separator.beancount"},"5":{"name":"constant.numeric.date.day.beancount"},"6":{"name":"support.function.directive.beancount","patterns":[{"match":"txn|\\\\*","name":"support.function.directive.txn.completed.beancount"},{"match":"!","name":"support.function.directive.txn.incomplete.beancount"},{"match":"P","name":"support.function.directive.txn.padding.beancount"}]},"7":{"name":"string.quoted.tiers.beancount"},"8":{"name":"string.quoted.narration.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.transaction.beancount","patterns":[{"include":"#comments"},{"include":"#posting"},{"include":"#meta"},{"include":"#tag"},{"include":"#link"},{"include":"#illegal"}]}],"repository":{"account":{"begin":"([A-Z][a-z]+)(:)","beginCaptures":{"1":{"name":"variable.language.beancount"},"2":{"name":"punctuation.separator.beancount"}},"end":"\\\\s","name":"meta.account.beancount","patterns":[{"begin":"(\\\\S+)(:?)","beginCaptures":{"1":{"name":"variable.other.account.beancount"},"2":{"name":"punctuation.separator.beancount"}},"end":"(:?)|(\\\\s)","patterns":[{"include":"$self"},{"include":"#illegal"}]}]},"amount":{"captures":{"1":{"name":"keyword.operator.modifier.beancount"},"2":{"name":"constant.numeric.currency.beancount"},"3":{"name":"entity.name.type.commodity.beancount"}},"match":"([-+|]?)(\\\\d+(?:,\\\\d{3})*(?:\\\\.\\\\d*)?)\\\\s*([A-Z][-\'.0-9A-Z_]{0,22}[0-9A-Z])","name":"meta.amount.beancount"},"bool":{"captures":{"0":{"name":"constant.language.bool.beancount"},"2":{"name":"constant.numeric.currency.beancount"},"3":{"name":"entity.name.type.commodity.beancount"}},"match":"TRUE|FALSE"},"comments":{"captures":{"1":{"name":"comment.line.beancount"}},"match":"(;.*)$"},"commodity":{"match":"([A-Z][-\'.0-9A-Z_]{0,22}[0-9A-Z])","name":"entity.name.type.commodity.beancount"},"cost":{"begin":"\\\\{\\\\{?","beginCaptures":{"0":{"name":"keyword.operator.assignment.beancount"}},"end":"}}?","endCaptures":{"0":{"name":"keyword.operator.assignment.beancount"}},"name":"meta.cost.beancount","patterns":[{"include":"#amount"},{"include":"#date"},{"match":",","name":"punctuation.separator.beancount"},{"include":"#illegal"}]},"date":{"captures":{"1":{"name":"constant.numeric.date.year.beancount"},"2":{"name":"punctuation.separator.beancount"},"3":{"name":"constant.numeric.date.month.beancount"},"4":{"name":"punctuation.separator.beancount"},"5":{"name":"constant.numeric.date.day.beancount"}},"match":"([0-9]{4})([-/|])([0-9]{2})([-/|])([0-9]{2})","name":"meta.date.beancount"},"flag":{"match":"(?<=\\\\s)([!#%\\\\&*?CMPR-U])(?=\\\\s+)","name":"keyword.other.beancount"},"illegal":{"match":"\\\\S","name":"invalid.illegal.unrecognized.beancount"},"link":{"captures":{"1":{"name":"keyword.operator.link.beancount"},"2":{"name":"markup.underline.link.beancount"}},"match":"(\\\\^)([\\\\--9A-Z_a-z]+)"},"meta":{"begin":"^\\\\s*([a-z][-0-9A-Z_a-z]+)(:)","beginCaptures":{"1":{"name":"keyword.operator.directive.beancount"},"2":{"name":"punctuation.separator.beancount"}},"end":"\\\\n","name":"meta.meta.beancount","patterns":[{"include":"#string"},{"include":"#account"},{"include":"#bool"},{"include":"#commodity"},{"include":"#date"},{"include":"#tag"},{"include":"#amount"},{"include":"#number"},{"include":"#comments"},{"include":"#illegal"}]},"number":{"captures":{"1":{"name":"keyword.operator.modifier.beancount"},"2":{"name":"constant.numeric.currency.beancount"}},"match":"([-+|]?)(\\\\d+(?:,\\\\d{3})*(?:\\\\.\\\\d*)?)"},"posting":{"begin":"^\\\\s+(?=([!A-Z]))","end":"(?=^(\\\\s*$|\\\\S|\\\\s*[A-Z]))","name":"meta.posting.beancount","patterns":[{"include":"#meta"},{"include":"#comments"},{"include":"#flag"},{"include":"#account"},{"include":"#amount"},{"include":"#cost"},{"include":"#date"},{"include":"#price"},{"include":"#illegal"}]},"price":{"begin":"@@?","beginCaptures":{"0":{"name":"keyword.operator.assignment.beancount"}},"end":"(?=([\\\\n;]))","name":"meta.price.beancount","patterns":[{"include":"#amount"},{"include":"#illegal"}]},"string":{"begin":"\\"","end":"\\"","name":"string.quoted.double.beancount","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.beancount"}]},"tag":{"captures":{"1":{"name":"keyword.operator.tag.beancount"},"2":{"name":"entity.name.tag.beancount"}},"match":"(#)([\\\\--9A-Z_a-z]+)"}},"scopeName":"text.beancount"}')),e=[n];export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-kn8f91na.js";var e=Object.freeze(JSON.parse('{"displayName":"Odin","name":"odin","patterns":[{"include":"#file-tags"},{"include":"#package-name-declaration"},{"include":"#import-declaration"},{"include":"#statements"}],"repository":{"assignments":{"patterns":[{"include":"#procedure-assignment"},{"include":"#type-assignment"},{"include":"#distinct-type-assignment"},{"include":"#constant-assignment"},{"include":"#variable-assignment"},{"include":"#type-annotation"}]},"attribute":{"patterns":[{"captures":{"1":{"name":"keyword.control.attribute.odin"},"2":{"name":"entity.other.attribute-name.odin"}},"match":"(@)\\\\s*([A-Z_a-z]\\\\w*)\\\\b","name":"meta.attribute.odin"},{"begin":"(@)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.attribute.odin"},"2":{"name":"meta.brace.round.odin"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.odin"}},"name":"meta.attribute.odin","patterns":[{"match":"\\\\b([A-Z_a-z]\\\\w*)\\\\b","name":"entity.other.attribute-name.odin"},{"match":",","name":"punctuation.odin"},{"begin":"=","beginCaptures":{"0":{"name":"keyword.operator.assignment.odin"}},"end":"(?=[),])","patterns":[{"include":"#expressions"}]}]}]},"basic-types":{"patterns":[{"match":"\\\\b(i(?:8|16|32|64|128|nt))\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(u(?:8|16|32|64|128|int|intptr))\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b((?:u16|u32|u64|u128|i16|i32|i64|i128)le)\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b((?:i16|i32|i64|i128|u16|u32|u64|u128)be)\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(f(?:16|32|64))\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(f(?:16|32|64)le)\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(f(?:16|32|64)be)\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(complex(?:32|64|128))\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(quaternion(?:64|128|256))\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(b(?:ool|8|16|32|64))\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(string|cstring|rune)\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(rawptr)\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(any|typeid)\\\\b","name":"support.type.primitive.odin"},{"match":"\\\\b(byte)\\\\b","name":"support.type.primitive.odin"}]},"block-comment":{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.odin"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.odin"}},"name":"comment.block.odin","patterns":[{"include":"#block-comment"}]},"block-definition":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.odin"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.odin"}},"name":"meta.block.odin","patterns":[{"include":"#statements"}]},"block-label":{"captures":{"1":{"name":"entity.name.label.odin"},"2":{"name":"punctuation.definition.label.odin"}},"match":"(\\\\w+)(:)\\\\s*(?=for|switch|if|\\\\{)","name":"meta.block.label.odin"},"case-clause":{"begin":"\\\\b(case)\\\\b","beginCaptures":{"1":{"name":"keyword.control.case.odin"}},"end":":","endCaptures":{"0":{"name":"punctuation.definition.section.case-statement.odin"}},"name":"meta.case-clause.expr.odin","patterns":[{"include":"#expressions"}]},"comments":{"patterns":[{"include":"#block-comment"},{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.odin"}},"end":"\\\\n","name":"comment.line.double-slash.odin"},{"begin":"#!","beginCaptures":{"0":{"name":"punctuation.definition.comment.odin"}},"end":"\\\\n","name":"comment.line.shebang.odin"}]},"constant-assignment":{"captures":{"1":{"name":"variable.other.constant.odin"},"2":{"name":"keyword.operator.assignment.odin"}},"match":"([A-Z_a-z]\\\\w*)\\\\s*(:\\\\s*:)","name":"meta.definition.variable.odin"},"distinct-type-assignment":{"begin":"\\\\b([A-Z_a-z]\\\\w*)\\\\s*(:\\\\s*:)\\\\s*(?=(distinct)\\\\b)","beginCaptures":{"1":{"name":"entity.name.type.odin"},"2":{"name":"keyword.operator.assignment.odin"},"3":{"name":"storage.type.odin"}},"end":"(?=^)|(?<=})","name":"meta.definition.variable.odin","patterns":[{"include":"#type-declaration"}]},"expressions":{"patterns":[{"include":"#comments"},{"include":"#ternary"},{"include":"#map-bitset"},{"include":"#slice"},{"include":"#keywords"},{"include":"#type-parameter"},{"include":"#basic-types"},{"include":"#procedure-calls"},{"include":"#property-access"},{"include":"#union-member-access"},{"include":"#union-non-nil-access"},{"include":"#strings"},{"include":"#punctuation"},{"include":"#variable-name"}]},"file-tags":{"begin":"#\\\\+[A-Z_a-z][-0-9A-Z_a-z]*","beginCaptures":{"0":{"name":"entity.name.tag.odin"}},"end":"\\\\n","name":"comment.line.double-slash.odin","patterns":[{"match":",","name":"punctuation.odin"},{"match":"!","name":"keyword.operator.logical.odin"},{"match":"[A-Z_a-z][-0-9A-Z_a-z]*","name":"entity.other.attribute-name.odin"}]},"import-declaration":{"begin":"\\\\b((?:|foreign\\\\s+)import)\\\\b","beginCaptures":{"0":{"name":"keyword.control.import.odin"}},"end":"(?=^|;)","name":"meta.import.odin","patterns":[{"begin":"\\\\b[A-Z_a-z]\\\\w*","beginCaptures":{"0":{"name":"entity.name.namespace.odin"}},"end":"(?=^|;)","name":"entity.name.alias.odin","patterns":[{"include":"#strings"},{"include":"#comments"}]},{"include":"#strings"},{"include":"#comments"}]},"keywords":{"patterns":[{"match":"\\\\b(import|foreign|package)\\\\b","name":"keyword.control.odin"},{"match":"\\\\b(if|else|or_else|when|where|for|in|not_in|defer|switch|return|or_return)\\\\b","name":"keyword.control.odin"},{"captures":{"1":{"name":"keyword.control.odin"},"2":{"name":"entity.name.label.odin"}},"match":"\\\\b((?:|or_)(?:break|continue))\\\\b\\\\s*(\\\\w+)?"},{"match":"\\\\b(fallthrough|case|dynamic)\\\\b","name":"keyword.control.odin"},{"match":"\\\\b(do|force_inline|no_inline)\\\\b","name":"keyword.control.odin"},{"match":"\\\\b(asm)\\\\b","name":"keyword.control.odin"},{"match":"\\\\b(auto_cast|distinct|using)\\\\b","name":"storage.modifier.odin"},{"match":"\\\\b(context)\\\\b","name":"keyword.context.odin"},{"match":"\\\\b(ODIN_(?:ARCH|OS))\\\\b","name":"variable.other.constant.odin"},{"match":"\\\\b(nil|true|false)\\\\b","name":"constant.language.odin"},{"match":"---","name":"constant.language.odin"},{"match":"\\\\b(\\\\d([_\\\\d])*(\\\\.\\\\d([_\\\\d])*)?)(([Ee])([-+])?\\\\d+)?[ijk]?\\\\b","name":"constant.numeric.odin"},{"match":"\\\\b((0b([01_])+)|(0o([_\\\\d])+)|(0d([_\\\\d])+)|(0[Xhx]([_\\\\h])+))i?\\\\b","name":"constant.numeric.odin"},{"match":"\\\\b(struct|enum|union|map|bit_set|bit_field|matrix)\\\\b","name":"storage.type.odin"},{"match":"[-%*+/]=|%%=","name":"keyword.operator.assignment.compound.odin"},{"match":"(?:[|~]|&~?|<<|>>)=","name":"keyword.operator.assignment.compound.bitwise.odin"},{"match":"[!=]=","name":"keyword.operator.comparison.odin"},{"match":"[<>]=?","name":"keyword.operator.relational.odin"},{"match":"\\\\.\\\\.[<=]","name":"keyword.operator.range.odin"},{"match":"\\\\.\\\\.","name":"keyword.operator.spread.odin"},{"match":":[:=]|=","name":"keyword.operator.assignment.odin"},{"match":"&","name":"keyword.operator.address.odin"},{"match":"\\\\^","name":"keyword.operator.address.odin"},{"match":"->","name":"storage.type.function.arrow.odin"},{"match":"@|([-!%*+/:|]|<<?|>>?|~)=?|=|: : ?|\\\\$","name":"keyword.operator.odin"},{"match":"#[A-Z_a-z]\\\\w*","name":"entity.name.tag.odin"}]},"map-bitset":{"begin":"\\\\b(bit_set|map)\\\\b","beginCaptures":{"0":{"name":"storage.type.odin"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.bracket.square.odin"}},"patterns":[{"match":"\\\\[","name":"punctuation.definition.bracket.square.odin"},{"include":"#type-declaration"}]},"object-definition":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.odin"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.odin"}},"name":"meta.object.type.odin","patterns":[{"include":"#statements"}]},"package-name-declaration":{"captures":{"1":{"name":"keyword.control.odin"},"2":{"name":"entity.name.type.module.odin"}},"match":"^\\\\s*(package)\\\\s+([A-Z_a-z]\\\\w*)"},"parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.odin"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.odin"}},"name":"meta.parameters.odin","patterns":[{"include":"#assignments"},{"include":"#expressions"}]},"procedure-assignment":{"begin":"\\\\b([A-Z_a-z]\\\\w*)\\\\s*(:\\\\s*:|=)\\\\s*(#\\\\w+)?\\\\s*(?=proc\\\\b)","beginCaptures":{"1":{"name":"meta.definition.function.odin entity.name.function.odin"},"2":{"name":"keyword.operator.assignment.odin"},"3":{"name":"keyword.other.odin"}},"end":"(?=^)|(?<=})","name":"meta.definition.variable.odin","patterns":[{"include":"#type-declaration"}]},"procedure-calls":{"patterns":[{"begin":"\\\\b(cast|transmute)\\\\b\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.function.odin"},"2":{"name":"meta.brace.round.odin"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.odin"}},"name":"meta.function-call.odin","patterns":[{"include":"#type-declaration"}]},{"begin":"\\\\b((?:size|align)_of)\\\\b\\\\s*(\\\\()","beginCaptures":{"1":{"name":"support.function.builtin.odin"},"2":{"name":"meta.brace.round.odin"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.odin"}},"name":"meta.function-call.odin","patterns":[{"include":"#type-declaration"}]},{"begin":"\\\\b(len|cap|offset_of_selector|offset_of_member|offset_of|offset_of_by_string|type_of|type_info_of|typeid_of|swizzle|complex|quaternion|real|imag|jmag|kmag|conj|expand_values|min|max|abs|clamp|soa_zip|soa_unzip|make|new|new_clone|resize|reserve|append|delete|free|free_all|assert|panic)\\\\b\\\\s*(\\\\()","beginCaptures":{"1":{"name":"support.function.builtin.odin"},"2":{"name":"meta.brace.round.odin"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.odin"}},"name":"meta.function-call.odin","patterns":[{"include":"#expressions"}]},{"begin":"([A-Z_a-z]\\\\w*)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.odin"},"2":{"name":"meta.brace.round.odin"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.odin"}},"name":"meta.function-call.odin","patterns":[{"include":"#expressions"}]}]},"property-access":{"captures":{"1":{"name":"variable.other.object.odin"},"2":{"name":"punctuation.accessor.odin"}},"match":"([A-Z_a-z]\\\\w*)\\\\s*(\\\\.)\\\\s*(?=[A-Z_a-z]\\\\w*)"},"punctuation":{"match":"[](),.;\\\\[\\\\\\\\{}]","name":"punctuation.odin"},"return-type-declaration":{"begin":"->","beginCaptures":{"0":{"name":"storage.type.function.arrow.odin"}},"end":"(?=^|[),;{]|where)","name":"meta.return.type.odin","patterns":[{"include":"#comments"},{"include":"#keywords"},{"include":"#basic-types"},{"include":"#property-access"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.odin"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.odin"}},"name":"meta.parameters.odin","patterns":[{"include":"#comments"},{"include":"#assignments"},{"include":"#keywords"},{"include":"#basic-types"},{"include":"#property-access"},{"include":"#type-name"},{"include":"#punctuation"}]},{"include":"#type-name"}]},"slice":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.odin"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.odin"}},"name":"meta.slice.odin","patterns":[{"match":"\\\\?","name":"keyword.operator.array.odin"},{"match":":","name":"keyword.operator.slice.odin"},{"include":"#expressions"}]},"statements":{"patterns":[{"include":"#attribute"},{"include":"#procedure-assignment"},{"include":"#type-assignment"},{"include":"#distinct-type-assignment"},{"include":"#constant-assignment"},{"include":"#variable-assignment"},{"include":"#case-clause"},{"include":"#block-label"},{"include":"#type-annotation"},{"include":"#block-definition"},{"include":"#expressions"}]},"string-escaped-char":{"patterns":[{"match":"\\\\\\\\(x1b|e|033)\\\\[[0-9;]*m","name":"constant.character.escape.ansi-color-sequence.odin"},{"match":"\\\\\\\\([\\"\'\\\\\\\\abefnrtuv]|x\\\\h{2}|u\\\\h{4}|U\\\\h{8}|[0-7]{3})","name":"constant.character.escape.odin"},{"match":"%([%E-HMTUXb-imo-tvwxz])","name":"constant.character.escape.placeholders.odin"},{"match":"%(\\\\d*\\\\.?\\\\d*f)","name":"constant.character.escape.placeholders-floats.odin"},{"match":"\\\\\\\\.","name":"invalid.illegal.unknown-escape.odin"}]},"strings":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.odin"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.odin"}},"name":"string.quoted.double.odin","patterns":[{"include":"#string-escaped-char"}]},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.odin"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.odin"}},"name":"string.quoted.single.odin","patterns":[{"include":"#string-escaped-char"}]},{"begin":"`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.odin"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.string.end.odin"}},"name":"string.quoted.raw.odin"}]},"ternary":{"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator.ternary.odin"}},"end":":","endCaptures":{"0":{"name":"keyword.operator.ternary.odin"}},"name":"meta.ternary.odin","patterns":[{"include":"#expressions"}]},"type-annotation":{"begin":"(?:([A-Z_a-z]\\\\w*)\\\\s*(,)\\\\s*)?(?:([A-Z_a-z]\\\\w*)\\\\s*(,)\\\\s*)?([A-Z_a-z]\\\\w*)\\\\s*(:)","beginCaptures":{"1":{"name":"variable.name.odin"},"2":{"name":"punctuation.odin"},"3":{"name":"variable.name.odin"},"4":{"name":"punctuation.odin"},"5":{"name":"variable.name.odin"},"6":{"name":"keyword.operator.type.annotation.odin"}},"end":"(?=^|[),:;=]|for|switch|if|\\\\{)","name":"meta.type.annotation.odin","patterns":[{"include":"#type-declaration"}]},"type-assignment":{"begin":"\\\\b([A-Z_a-z]\\\\w*)\\\\s*(:\\\\s*:)\\\\s*(?=(struct|union|enum|bit_set|bit_field)\\\\b)","beginCaptures":{"1":{"name":"entity.name.type.odin"},"2":{"name":"keyword.operator.assignment.odin"},"3":{"name":"storage.type.odin"}},"end":"(?=^)|(?<=})","name":"meta.definition.variable.odin","patterns":[{"include":"#type-declaration"}]},"type-declaration":{"name":"meta.type.declaration.odin","patterns":[{"include":"#map-bitset"},{"begin":"\\\\b(proc|struct|union|enum|bit_field)\\\\b","beginCaptures":{"1":{"name":"storage.type.odin"}},"end":"(?=^|[),;])|(?<=})","patterns":[{"include":"#parameters"},{"include":"#return-type-declaration"},{"include":"#object-definition"},{"include":"#expressions"}]},{"include":"#comments"},{"include":"#strings"},{"include":"#block-definition"},{"include":"#keywords"},{"include":"#basic-types"},{"include":"#slice"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.odin"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.odin"}},"patterns":[{"include":"#type-declaration"}]},{"include":"#property-access"},{"include":"#punctuation"},{"include":"#type-name"}]},"type-name":{"match":"\\\\b[A-Z_a-z]\\\\w*\\\\b","name":"entity.name.type.odin"},"type-parameter":{"captures":{"1":{"name":"keyword.operator.odin"},"2":{"name":"entity.name.type.parameter.odin"}},"match":"(\\\\$)\\\\s*\\\\b([A-Z_a-z]\\\\w*)\\\\b"},"union-member-access":{"begin":"([A-Z_a-z]\\\\w*)\\\\s*(\\\\.)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"variable.other.object.odin"},"2":{"name":"punctuation.accessor.odin"},"3":{"name":"meta.brace.round.odin"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.odin"}},"patterns":[{"include":"#type-declaration"}]},"union-non-nil-access":{"captures":{"1":{"name":"variable.other.object.odin"},"2":{"name":"punctuation.accessor.odin"},"3":{"name":"punctuation.accessor.optional.odin"}},"match":"([A-Z_a-z]\\\\w*)\\\\s*(\\\\.)\\\\s*(\\\\?)"},"variable-assignment":{"captures":{"1":{"name":"variable.name.odin"},"2":{"name":"punctuation.odin"},"3":{"name":"variable.name.odin"},"4":{"name":"punctuation.odin"},"5":{"name":"variable.name.odin"},"6":{"name":"keyword.operator.assignment.odin"}},"match":"(?:([A-Z_a-z]\\\\w*)\\\\s*(,)\\\\s*)?(?:([A-Z_a-z]\\\\w*)\\\\s*(,)\\\\s*)?([A-Z_a-z]\\\\w*)\\\\s*(:\\\\s*=)","name":"meta.definition.variable.odin"},"variable-name":{"match":"\\\\b[A-Z_a-z]\\\\w*\\\\b","name":"variable.name.odin"}},"scopeName":"source.odin"}')),n=[e];export{n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-kn8f91na.js";var e=Object.freeze(JSON.parse('{"displayName":"BibTeX","name":"bibtex","patterns":[{"captures":{"0":{"name":"punctuation.definition.comment.bibtex"}},"match":"@(?i:comment)(?=[({\\\\s])","name":"comment.block.at-sign.bibtex"},{"include":"#preamble"},{"include":"#string"},{"include":"#entry"},{"begin":"[^\\\\n@]","end":"(?=@)","name":"comment.block.bibtex"}],"repository":{"entry":{"patterns":[{"begin":"((@)[-!$\\\\&*+./:;<>-z|~][!$\\\\&*+\\\\--<>-z|~]*)\\\\s*(\\\\{)\\\\s*([^,}\\\\s]*)","beginCaptures":{"1":{"name":"keyword.other.entry-type.bibtex"},"2":{"name":"punctuation.definition.keyword.bibtex"},"3":{"name":"punctuation.section.entry.begin.bibtex"},"4":{"name":"entity.name.type.entry-key.bibtex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.entry.end.bibtex"}},"name":"meta.entry.braces.bibtex","patterns":[{"begin":"([-!$\\\\&*+./:;<>-z|~][!$\\\\&*+\\\\--<>-z|~]*)\\\\s*(=)","beginCaptures":{"1":{"name":"support.function.key.bibtex"},"2":{"name":"punctuation.separator.key-value.bibtex"}},"end":"(?=[,}])","name":"meta.key-assignment.bibtex","patterns":[{"include":"#field_value"}]}]},{"begin":"((@)[-!$\\\\&*+./:;<>-z|~][!$\\\\&*+\\\\--<>-z|~]*)\\\\s*(\\\\()\\\\s*([^,\\\\s]*)","beginCaptures":{"1":{"name":"keyword.other.entry-type.bibtex"},"2":{"name":"punctuation.definition.keyword.bibtex"},"3":{"name":"punctuation.section.entry.begin.bibtex"},"4":{"name":"entity.name.type.entry-key.bibtex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.entry.end.bibtex"}},"name":"meta.entry.parenthesis.bibtex","patterns":[{"begin":"([-!$\\\\&*+./:;<>-z|~][!$\\\\&*+\\\\--<>-z|~]*)\\\\s*(=)","beginCaptures":{"1":{"name":"support.function.key.bibtex"},"2":{"name":"punctuation.separator.key-value.bibtex"}},"end":"(?=[),])","name":"meta.key-assignment.bibtex","patterns":[{"include":"#field_value"}]}]}]},"field_value":{"patterns":[{"include":"#string_content"},{"include":"#integer"},{"include":"#string_var"},{"match":"#","name":"keyword.operator.bibtex"}]},"integer":{"captures":{"1":{"name":"constant.numeric.bibtex"}},"match":"\\\\s*(\\\\d+)\\\\s*"},"nested_braces":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.bibtex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.group.end.bibtex"}},"patterns":[{"include":"#nested_braces"}]},"preamble":{"patterns":[{"begin":"((@)(?i:preamble))\\\\s*(\\\\{)\\\\s*","beginCaptures":{"1":{"name":"keyword.other.preamble.bibtex"},"2":{"name":"punctuation.definition.keyword.bibtex"},"3":{"name":"punctuation.section.preamble.begin.bibtex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.preamble.end.bibtex"}},"name":"meta.preamble.braces.bibtex","patterns":[{"include":"#field_value"}]},{"begin":"((@)(?i:preamble))\\\\s*(\\\\()\\\\s*","beginCaptures":{"1":{"name":"keyword.other.preamble.bibtex"},"2":{"name":"punctuation.definition.keyword.bibtex"},"3":{"name":"punctuation.section.preamble.begin.bibtex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.preamble.end.bibtex"}},"name":"meta.preamble.parenthesis.bibtex","patterns":[{"include":"#field_value"}]}]},"string":{"patterns":[{"begin":"((@)(?i:string))\\\\s*(\\\\{)\\\\s*([-!$\\\\&*+./:;<>-z|~][!$\\\\&*+\\\\--<>-z|~]*)","beginCaptures":{"1":{"name":"keyword.other.string-constant.bibtex"},"2":{"name":"punctuation.definition.keyword.bibtex"},"3":{"name":"punctuation.section.string-constant.begin.bibtex"},"4":{"name":"variable.other.bibtex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.string-constant.end.bibtex"}},"name":"meta.string-constant.braces.bibtex","patterns":[{"include":"#field_value"}]},{"begin":"((@)(?i:string))\\\\s*(\\\\()\\\\s*([-!$\\\\&*+./:;<>-z|~][!$\\\\&*+\\\\--<>-z|~]*)","beginCaptures":{"1":{"name":"keyword.other.string-constant.bibtex"},"2":{"name":"punctuation.definition.keyword.bibtex"},"3":{"name":"punctuation.section.string-constant.begin.bibtex"},"4":{"name":"variable.other.bibtex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.string-constant.end.bibtex"}},"name":"meta.string-constant.parenthesis.bibtex","patterns":[{"include":"#field_value"}]}]},"string_content":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.bibtex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.bibtex"}},"patterns":[{"include":"#nested_braces"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.bibtex"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.bibtex"}},"patterns":[{"include":"#nested_braces"}]}]},"string_var":{"captures":{"0":{"name":"support.variable.bibtex"}},"match":"[-!$\\\\&*+./:;<>-z|~][!$\\\\&*+\\\\--<>-z|~]*"}},"scopeName":"text.bibtex"}')),n=[e];export{n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as a}from"./chunk-xcea0hn5.js";import"./chunk-kn8f91na.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-kn8f91na.js";var e=Object.freeze(JSON.parse('{"displayName":"Apex","fileTypes":["apex","cls","trigger"],"name":"apex","patterns":[{"include":"#javadoc-comment"},{"include":"#comment"},{"include":"#directives"},{"include":"#declarations"},{"include":"#script-top-level"}],"repository":{"annotation-declaration":{"begin":"(@[_[:alpha:]]+)\\\\b","beginCaptures":{"1":{"name":"storage.type.annotation.apex"}},"end":"(?=\\\\s(?!\\\\())|(?=\\\\s*$)|(?<=\\\\s*\\\\))","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.apex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"include":"#expression"}]},{"include":"#statement"}]},"argument-list":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.apex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"include":"#named-argument"},{"include":"#expression"},{"include":"#punctuation-comma"}]},"array-creation-expression":{"begin":"\\\\b(new)\\\\b\\\\s*(?<type_name>(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?<name_and_type_args>\\\\g<identifier>\\\\s*(?<type_args>\\\\s*<(?:[^<>]|\\\\g<type_args>)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g<name_and_type_args>)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)?\\\\s*(?=\\\\[)","beginCaptures":{"1":{"name":"keyword.control.new.apex"},"2":{"patterns":[{"include":"#support-type"},{"include":"#type"}]}},"end":"(?<=])","patterns":[{"include":"#bracketed-argument-list"}]},"block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.apex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.apex"}},"patterns":[{"include":"#statement"}]},"boolean-literal":{"patterns":[{"match":"(?<!\\\\.)\\\\btrue\\\\b","name":"constant.language.boolean.true.apex"},{"match":"(?<!\\\\.)\\\\bfalse\\\\b","name":"constant.language.boolean.false.apex"}]},"bracketed-argument-list":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.squarebracket.open.apex"}},"end":"]","endCaptures":{"0":{"name":"punctuation.squarebracket.close.apex"}},"patterns":[{"include":"#soql-query-expression"},{"include":"#named-argument"},{"include":"#expression"},{"include":"#punctuation-comma"}]},"break-or-continue-statement":{"captures":{"1":{"name":"keyword.control.flow.break.apex"},"2":{"name":"keyword.control.flow.continue.apex"}},"match":"(?<!\\\\.)\\\\b(?:(break)|(continue))\\\\b"},"cast-expression":{"captures":{"1":{"name":"punctuation.parenthesis.open.apex"},"2":{"patterns":[{"include":"#support-type"},{"include":"#type"}]},"6":{"name":"punctuation.parenthesis.close.apex"}},"match":"(\\\\()\\\\s*(?<type_name>(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?<name_and_type_args>\\\\g<identifier>\\\\s*(?<type_args>\\\\s*<(?:[^<>]|\\\\g<type_args>)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g<name_and_type_args>)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s*(\\\\))(?=\\\\s*@?[(_[:alnum:]])"},"catch-clause":{"begin":"(?<!\\\\.)\\\\b(catch)\\\\b","beginCaptures":{"1":{"name":"keyword.control.try.catch.apex"}},"end":"(?<=})","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.apex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"captures":{"1":{"patterns":[{"include":"#support-type"},{"include":"#type"}]},"5":{"name":"entity.name.variable.local.apex"}},"match":"(?<type_name>(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?<name_and_type_args>\\\\g<identifier>\\\\s*(?<type_args>\\\\s*<(?:[^<>]|\\\\g<type_args>)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g<name_and_type_args>)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s*(?:(\\\\g<identifier>)\\\\b)?"}]},{"include":"#comment"},{"include":"#block"}]},"class-declaration":{"begin":"(?=\\\\bclass\\\\b)","end":"(?<=})","patterns":[{"begin":"\\\\b(class)\\\\b\\\\s+(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*","beginCaptures":{"1":{"name":"keyword.other.class.apex"},"2":{"name":"entity.name.type.class.apex"}},"end":"(?=\\\\{)","patterns":[{"include":"#javadoc-comment"},{"include":"#comment"},{"include":"#type-parameter-list"},{"include":"#extends-class"},{"include":"#implements-class"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.apex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.apex"}},"patterns":[{"include":"#class-or-trigger-members"}]},{"include":"#javadoc-comment"},{"include":"#comment"}]},"class-or-trigger-members":{"patterns":[{"include":"#javadoc-comment"},{"include":"#comment"},{"include":"#storage-modifier"},{"include":"#sharing-modifier"},{"include":"#type-declarations"},{"include":"#field-declaration"},{"include":"#property-declaration"},{"include":"#indexer-declaration"},{"include":"#variable-initializer"},{"include":"#constructor-declaration"},{"include":"#method-declaration"},{"include":"#initializer-block"},{"include":"#punctuation-semicolon"}]},"colon-expression":{"match":":","name":"keyword.operator.conditional.colon.apex"},"comment":{"patterns":[{"begin":"/\\\\*(\\\\*)?","beginCaptures":{"0":{"name":"punctuation.definition.comment.apex"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.apex"}},"name":"comment.block.apex"},{"begin":"(^\\\\s+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.apex"}},"end":"(?=$)","patterns":[{"begin":"(?<!/)///(?!/)","beginCaptures":{"0":{"name":"punctuation.definition.comment.apex"}},"end":"(?=$)","name":"comment.block.documentation.apex","patterns":[{"include":"#xml-doc-comment"}]},{"begin":"(?<!/)//(?:(?!/)|(?=//))","beginCaptures":{"0":{"name":"punctuation.definition.comment.apex"}},"end":"(?=$)","name":"comment.line.double-slash.apex"}]}]},"conditional-operator":{"begin":"(?<!\\\\?)\\\\?(?!\\\\?|\\\\.(?!\\\\d)|\\\\[)","beginCaptures":{"0":{"name":"keyword.operator.conditional.question-mark.apex"}},"end":":","endCaptures":{"0":{"name":"keyword.operator.conditional.colon.apex"}},"patterns":[{"include":"#expression"}]},"constructor-declaration":{"begin":"(?=@?[_[:alpha:]][_[:alnum:]]*\\\\s*\\\\()","end":"(?<=})|(?=;)","patterns":[{"captures":{"1":{"name":"entity.name.function.apex"}},"match":"(@?[_[:alpha:]][_[:alnum:]]*)\\\\b"},{"begin":"(:)","beginCaptures":{"1":{"name":"punctuation.separator.colon.apex"}},"end":"(?=\\\\{|=>)","patterns":[{"include":"#constructor-initializer"}]},{"include":"#parenthesized-parameter-list"},{"include":"#comment"},{"include":"#expression-body"},{"include":"#block"}]},"constructor-initializer":{"begin":"\\\\b(this)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"keyword.other.this.apex"}},"end":"(?<=\\\\))","patterns":[{"include":"#argument-list"}]},"date-literal-with-params":{"captures":{"1":{"name":"keyword.operator.query.date.apex"}},"match":"\\\\b(((?:LAST_N_DAY|NEXT_N_DAY|NEXT_N_WEEK|LAST_N_WEEK|NEXT_N_MONTH|LAST_N_MONTH|NEXT_N_QUARTER|LAST_N_QUARTER|NEXT_N_YEAR|LAST_N_YEAR|NEXT_N_FISCAL_QUARTER|LAST_N_FISCAL_QUARTER|NEXT_N_FISCAL_YEAR|LAST_N_FISCAL_YEAR)S)\\\\s*:\\\\d+)\\\\b"},"date-literals":{"captures":{"1":{"name":"keyword.operator.query.date.apex"}},"match":"\\\\b(YESTERDAY|TODAY|TOMORROW|LAST_WEEK|THIS_WEEK|NEXT_WEEK|LAST_MONTH|THIS_MONTH|NEXT_MONTH|LAST_90_DAYS|NEXT_90_DAYS|THIS_QUARTER|LAST_QUARTER|NEXT_QUARTER|THIS_YEAR|LAST_YEAR|NEXT_YEAR|THIS_FISCAL_QUARTER|LAST_FISCAL_QUARTER|NEXT_FISCAL_QUARTER|THIS_FISCAL_YEAR|LAST_FISCAL_YEAR|NEXT_FISCAL_YEAR)\\\\b\\\\s*"},"declarations":{"patterns":[{"include":"#type-declarations"},{"include":"#punctuation-semicolon"}]},"directives":{"patterns":[{"include":"#punctuation-semicolon"}]},"dml-expression":{"begin":"\\\\b(delete|insert|undelete|update|upsert)\\\\b\\\\s+(?!new\\\\b)","beginCaptures":{"1":{"name":"support.function.apex"}},"end":"(?<=;)","patterns":[{"include":"#expression"},{"include":"#punctuation-semicolon"}]},"do-statement":{"begin":"(?<!\\\\.)\\\\b(do)\\\\b","beginCaptures":{"1":{"name":"keyword.control.loop.do.apex"}},"end":"(?=[;}])","patterns":[{"include":"#statement"}]},"element-access-expression":{"begin":"(?:(\\\\??\\\\.)\\\\s*)?(?:(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*)?(?:(\\\\?)\\\\s*)?(?=\\\\[)","beginCaptures":{"1":{"patterns":[{"include":"#punctuation-accessor"},{"include":"#operator-safe-navigation"}]},"2":{"name":"variable.other.object.property.apex"},"3":{"name":"keyword.operator.null-conditional.apex"}},"end":"(?<=])(?!\\\\s*\\\\[)","patterns":[{"include":"#bracketed-argument-list"}]},"else-part":{"begin":"(?<!\\\\.)\\\\b(else)\\\\b","beginCaptures":{"1":{"name":"keyword.control.conditional.else.apex"}},"end":"(?<=})|(?=;)","patterns":[{"include":"#statement"}]},"enum-declaration":{"begin":"(?=\\\\benum\\\\b)","end":"(?<=})","patterns":[{"begin":"(?=enum)","end":"(?=\\\\{)","patterns":[{"include":"#javadoc-comment"},{"include":"#comment"},{"captures":{"1":{"name":"keyword.other.enum.apex"},"2":{"name":"entity.name.type.enum.apex"}},"match":"(enum)\\\\s+(@?[_[:alpha:]][_[:alnum:]]*)"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.apex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.apex"}},"patterns":[{"include":"#javadoc-comment"},{"include":"#comment"},{"include":"#punctuation-comma"},{"begin":"@?[_[:alpha:]][_[:alnum:]]*","beginCaptures":{"0":{"name":"entity.name.variable.enum-member.apex"}},"end":"(?=([,}]))","patterns":[{"include":"#javadoc-comment"},{"include":"#comment"},{"include":"#variable-initializer"}]}]},{"include":"#javadoc-comment"},{"include":"#comment"}]},"expression":{"patterns":[{"include":"#comment"},{"include":"#dml-expression"},{"include":"#merge-expression"},{"include":"#support-expression"},{"include":"#throw-expression"},{"include":"#this-expression"},{"include":"#trigger-context-declaration"},{"include":"#conditional-operator"},{"include":"#expression-operators"},{"include":"#soql-query-expression"},{"include":"#object-creation-expression"},{"include":"#array-creation-expression"},{"include":"#invocation-expression"},{"include":"#member-access-expression"},{"include":"#element-access-expression"},{"include":"#cast-expression"},{"include":"#literal"},{"include":"#parenthesized-expression"},{"include":"#initializer-expression"},{"include":"#identifier"}]},"expression-body":{"begin":"=>","beginCaptures":{"0":{"name":"keyword.operator.arrow.apex"}},"end":"(?=[),;}])","patterns":[{"include":"#expression"}]},"expression-operators":{"patterns":[{"match":"[-%*+/]=","name":"keyword.operator.assignment.compound.apex"},{"match":"(?:[\\\\&^]|<<|>>|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.apex"},{"match":"<<|>>","name":"keyword.operator.bitwise.shift.apex"},{"match":"[!=]=","name":"keyword.operator.comparison.apex"},{"match":"<=|>=|[<>]","name":"keyword.operator.relational.apex"},{"match":"!|&&|\\\\|\\\\|","name":"keyword.operator.logical.apex"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.apex"},{"match":"=","name":"keyword.operator.assignment.apex"},{"match":"--","name":"keyword.operator.decrement.apex"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.apex"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.apex"}]},"extends-class":{"begin":"(extends)\\\\b\\\\s+","beginCaptures":{"1":{"name":"keyword.other.extends.apex"}},"end":"(?=\\\\{|implements)","patterns":[{"begin":"(?=[_[:alpha:]][_[:alnum:]]*\\\\s*\\\\.)","end":"(?=\\\\{|implements)","patterns":[{"include":"#support-type"},{"include":"#type"}]},{"captures":{"1":{"name":"entity.name.type.extends.apex"}},"match":"([_[:alpha:]][_[:alnum:]]*)"}]},"field-declaration":{"begin":"(?<type_name>(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?<name_and_type_args>\\\\g<identifier>\\\\s*(?<type_args>\\\\s*<(?:[^<>]|\\\\g<type_args>)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g<name_and_type_args>)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s+(\\\\g<identifier>)\\\\s*(?!=[=>])(?=[,;=]|$)","beginCaptures":{"1":{"patterns":[{"include":"#support-type"},{"include":"#type"}]},"5":{"name":"entity.name.variable.field.apex"}},"end":"(?=;)","patterns":[{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"entity.name.variable.field.apex"},{"include":"#punctuation-comma"},{"include":"#comment"},{"include":"#variable-initializer"},{"include":"#class-or-trigger-members"}]},"finally-clause":{"begin":"(?<!\\\\.)\\\\b(finally)\\\\b","beginCaptures":{"1":{"name":"keyword.control.try.finally.apex"}},"end":"(?<=})","patterns":[{"include":"#comment"},{"include":"#block"}]},"for-apex-syntax":{"captures":{"1":{"patterns":[{"include":"#support-type"},{"include":"#type"}]},"2":{"name":"entity.name.variable.local.apex"},"3":{"name":"keyword.operator.iterator.colon.apex"}},"match":"([._[:alpha:]][._[:alnum:]]+)\\\\s+([._[:alpha:]][._[:alnum:]]*)\\\\s*(:)"},"for-statement":{"begin":"(?<!\\\\.)\\\\b(for)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"keyword.control.loop.for.apex"}},"end":"(?<=})|(?=;)","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.apex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"include":"#for-apex-syntax"},{"include":"#local-variable-declaration"},{"include":"#expression"},{"include":"#punctuation-comma"},{"include":"#punctuation-semicolon"},{"include":"#colon-expression"}]},{"include":"#statement"}]},"from-clause":{"captures":{"1":{"name":"keyword.operator.query.from.apex"},"2":{"name":"storage.type.apex"}},"match":"(FROM)\\\\b\\\\s*([._[:alnum:]]+\\\\b)?"},"goto-statement":{"begin":"(?<!\\\\.)\\\\b(goto)\\\\b","beginCaptures":{"1":{"name":"keyword.control.goto.apex"}},"end":"(?=;)","patterns":[{"begin":"\\\\b(case)\\\\b","beginCaptures":{"1":{"name":"keyword.control.case.apex"}},"end":"(?=;)","patterns":[{"include":"#expression"}]},{"captures":{"1":{"name":"keyword.control.default.apex"}},"match":"\\\\b(default)\\\\b"},{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"entity.name.label.apex"}]},"identifier":{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"variable.other.readwrite.apex"},"if-statement":{"begin":"(?<!\\\\.)\\\\b(if)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"keyword.control.conditional.if.apex"}},"end":"(?<=})|(?=;)","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.apex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"include":"#expression"}]},{"include":"#statement"}]},"implements-class":{"begin":"(implements)\\\\b","beginCaptures":{"1":{"name":"keyword.other.implements.apex"}},"end":"(?=\\\\{|extends)","patterns":[{"begin":"(?=[_[:alpha:]][_[:alnum:]]*\\\\s*\\\\.)","end":"(?=\\\\{|extends|,)","patterns":[{"include":"#support-type"},{"include":"#type"}]},{"captures":{"1":{"name":"entity.name.type.implements.apex"},"2":{"name":"punctuation.separator.comma.apex"}},"match":"([_[:alpha:]][_[:alnum:]]*)\\\\b\\\\s*(,)?"},{"include":"#punctuation-comma"}]},"indexer-declaration":{"begin":"(?<return_type>(?<type_name>(?:ref\\\\s+)?(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?<name_and_type_args>\\\\g<identifier>\\\\s*(?<type_args>\\\\s*<(?:[^<>]|\\\\g<type_args>)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g<name_and_type_args>)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s+)(?<interface_name>\\\\g<type_name>\\\\s*\\\\.\\\\s*)?(?<indexer_name>this)\\\\s*(?=\\\\[)","beginCaptures":{"1":{"patterns":[{"include":"#type"}]},"6":{"patterns":[{"include":"#type"},{"include":"#punctuation-accessor"}]},"7":{"name":"keyword.other.this.apex"}},"end":"(?<=})|(?=;)","patterns":[{"include":"#comment"},{"include":"#property-accessors"},{"include":"#expression-body"},{"include":"#variable-initializer"}]},"initializer-block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.apex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.apex"}},"patterns":[{"include":"#statement"}]},"initializer-expression":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.apex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.apex"}},"patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"interface-declaration":{"begin":"(?=\\\\binterface\\\\b)","end":"(?<=})","patterns":[{"begin":"(interface)\\\\b\\\\s+(@?[_[:alpha:]][_[:alnum:]]*)","beginCaptures":{"1":{"name":"keyword.other.interface.apex"},"2":{"name":"entity.name.type.interface.apex"}},"end":"(?=\\\\{)","patterns":[{"include":"#javadoc-comment"},{"include":"#comment"},{"include":"#type-parameter-list"},{"include":"#extends-class"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.apex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.apex"}},"patterns":[{"include":"#interface-members"}]},{"include":"#javadoc-comment"},{"include":"#comment"}]},"interface-members":{"patterns":[{"include":"#javadoc-comment"},{"include":"#comment"},{"include":"#property-declaration"},{"include":"#indexer-declaration"},{"include":"#method-declaration"},{"include":"#punctuation-semicolon"}]},"invocation-expression":{"begin":"(?:(\\\\??\\\\.)\\\\s*)?(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(?<type_args>\\\\s*<([^<>]|\\\\g<type_args>)+>\\\\s*)?\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#punctuation-accessor"},{"include":"#operator-safe-navigation"}]},"2":{"name":"entity.name.function.apex"},"3":{"patterns":[{"include":"#type-arguments"}]}},"end":"(?<=\\\\))","patterns":[{"include":"#argument-list"}]},"javadoc-comment":{"patterns":[{"begin":"^\\\\s*(/\\\\*\\\\*)(?!/)","beginCaptures":{"1":{"name":"punctuation.definition.comment.apex"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.apex"}},"name":"comment.block.javadoc.apex","patterns":[{"match":"@(deprecated|author|return|see|serial|since|version|usage|name|link)\\\\b","name":"keyword.other.documentation.javadoc.apex"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.apex"},"2":{"name":"entity.name.variable.parameter.apex"}},"match":"(@param)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.apex"},"2":{"name":"entity.name.type.class.apex"}},"match":"(@(?:exception|throws))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"string.quoted.single.apex"}},"match":"(`([^`]+?)`)"}]}]},"literal":{"patterns":[{"include":"#boolean-literal"},{"include":"#null-literal"},{"include":"#numeric-literal"},{"include":"#string-literal"}]},"local-constant-declaration":{"begin":"\\\\b(?<const_keyword>const)\\\\b\\\\s*(?<type_name>(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?<name_and_type_args>\\\\g<identifier>\\\\s*(?<type_args>\\\\s*<(?:[^<>]|\\\\g<type_args>)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g<name_and_type_args>)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s+(\\\\g<identifier>)\\\\s*(?=[,;=])","beginCaptures":{"1":{"name":"storage.modifier.apex"},"2":{"patterns":[{"include":"#type"}]},"6":{"name":"entity.name.variable.local.apex"}},"end":"(?=;)","patterns":[{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"entity.name.variable.local.apex"},{"include":"#punctuation-comma"},{"include":"#comment"},{"include":"#variable-initializer"}]},"local-declaration":{"patterns":[{"include":"#local-constant-declaration"},{"include":"#local-variable-declaration"}]},"local-variable-declaration":{"begin":"(?:(?:\\\\b(ref)\\\\s+)?\\\\b(var)\\\\b|(?<type_name>(?:ref\\\\s+)?(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?<name_and_type_args>\\\\g<identifier>\\\\s*(?<type_args>\\\\s*<(?:[^<>]|\\\\g<type_args>)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g<name_and_type_args>)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*))\\\\s+(\\\\g<identifier>)\\\\s*(?=[),;=])","beginCaptures":{"1":{"name":"storage.modifier.apex"},"2":{"name":"keyword.other.var.apex"},"3":{"patterns":[{"include":"#support-type"},{"include":"#type"}]},"7":{"name":"entity.name.variable.local.apex"}},"end":"(?=[);])","patterns":[{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"entity.name.variable.local.apex"},{"include":"#punctuation-comma"},{"include":"#comment"},{"include":"#variable-initializer"}]},"member-access-expression":{"patterns":[{"captures":{"1":{"patterns":[{"include":"#punctuation-accessor"},{"include":"#operator-safe-navigation"}]},"2":{"name":"variable.other.object.property.apex"}},"match":"(\\\\??\\\\.)\\\\s*(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(?![(_[:alnum:]]|(\\\\?)?\\\\[|<)"},{"captures":{"1":{"patterns":[{"include":"#punctuation-accessor"},{"include":"#operator-safe-navigation"}]},"2":{"name":"variable.other.object.apex"},"3":{"patterns":[{"include":"#type-arguments"}]}},"match":"(\\\\??\\\\.)?\\\\s*(@?[_[:alpha:]][_[:alnum:]]*)(?<type_params>\\\\s*<([^<>]|\\\\g<type_params>)+>\\\\s*)(?=(\\\\s*\\\\?)?\\\\s*\\\\.\\\\s*@?[_[:alpha:]][_[:alnum:]]*)"},{"captures":{"1":{"name":"variable.other.object.apex"}},"match":"(@?[_[:alpha:]][_[:alnum:]]*)(?=(\\\\s*\\\\?)?\\\\s*\\\\.\\\\s*@?[_[:alpha:]][_[:alnum:]]*)"}]},"merge-expression":{"begin":"(merge)\\\\b\\\\s+","beginCaptures":{"1":{"name":"support.function.apex"}},"end":"(?<=;)","patterns":[{"include":"#object-creation-expression"},{"include":"#merge-type-statement"},{"include":"#expression"},{"include":"#punctuation-semicolon"}]},"merge-type-statement":{"captures":{"1":{"name":"variable.other.readwrite.apex"},"2":{"name":"variable.other.readwrite.apex"},"3":{"name":"punctuation.terminator.statement.apex"}},"match":"([_[:alpha:]]*)\\\\b\\\\s+([_[:alpha:]]*)\\\\b\\\\s*(;)"},"method-declaration":{"begin":"(?<return_type>(?<type_name>(?:ref\\\\s+)?(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?<name_and_type_args>\\\\g<identifier>\\\\s*(?<type_args>\\\\s*<(?:[^<>]|\\\\g<type_args>)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g<name_and_type_args>)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s+)(?<interface_name>\\\\g<type_name>\\\\s*\\\\.\\\\s*)?(\\\\g<identifier>)\\\\s*(<([^<>]+)>)?\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#support-type"},{"include":"#type"}]},"6":{"patterns":[{"include":"#type"},{"include":"#punctuation-accessor"}]},"7":{"patterns":[{"include":"#support-type"},{"include":"#method-name-custom"}]},"8":{"patterns":[{"include":"#type-parameter-list"}]}},"end":"(?<=})|(?=;)","patterns":[{"include":"#comment"},{"include":"#parenthesized-parameter-list"},{"include":"#expression-body"},{"include":"#block"}]},"method-name-custom":{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"entity.name.function.apex"},"named-argument":{"begin":"(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(:)","beginCaptures":{"1":{"name":"entity.name.variable.parameter.apex"},"2":{"name":"punctuation.separator.colon.apex"}},"end":"(?=([]),]))","patterns":[{"include":"#expression"}]},"null-literal":{"match":"(?<!\\\\.)\\\\bnull\\\\b","name":"constant.language.null.apex"},"numeric-literal":{"patterns":[{"match":"\\\\b(\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}(\\\\.\\\\d{1,3})?([-+])\\\\d{2}:\\\\d{2})\\\\b","name":"constant.numeric.datetime.apex"},{"match":"\\\\b(\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}(\\\\.\\\\d{1,3})?(Z)?)\\\\b","name":"constant.numeric.datetime.apex"},{"match":"\\\\b(\\\\d{4}-\\\\d{2}-\\\\d{2})\\\\b","name":"constant.numeric.date.apex"},{"match":"\\\\b0([Xx])[_\\\\h]+([LUlu]|UL|Ul|uL|ul|LU|Lu|lU|lu)?\\\\b","name":"constant.numeric.hex.apex"},{"match":"\\\\b0([Bb])[01_]+([LUlu]|UL|Ul|uL|ul|LU|Lu|lU|lu)?\\\\b","name":"constant.numeric.binary.apex"},{"match":"\\\\b([0-9_]+)?\\\\.[0-9_]+(([Ee])[0-9]+)?([DFMdfm])?\\\\b","name":"constant.numeric.decimal.apex"},{"match":"\\\\b[0-9_]+([Ee])[0-9_]+([DFMdfm])?\\\\b","name":"constant.numeric.decimal.apex"},{"match":"\\\\b[0-9_]+([DFMdfm])\\\\b","name":"constant.numeric.decimal.apex"},{"match":"\\\\b[0-9_]+([LUlu]|UL|Ul|uL|ul|LU|Lu|lU|lu)?\\\\b","name":"constant.numeric.decimal.apex"}]},"object-creation-expression":{"patterns":[{"include":"#object-creation-expression-with-parameters"},{"include":"#object-creation-expression-with-no-parameters"},{"include":"#punctuation-comma"}]},"object-creation-expression-with-no-parameters":{"captures":{"1":{"name":"support.function.apex"},"2":{"name":"keyword.control.new.apex"},"3":{"patterns":[{"include":"#support-type"},{"include":"#type"}]}},"match":"(delete|insert|undelete|update|upsert)?\\\\s*(new)\\\\s+(?<type_name>(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?<name_and_type_args>\\\\g<identifier>\\\\s*(?<type_args>\\\\s*<(?:[^<>]|\\\\g<type_args>)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g<name_and_type_args>)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s*(?=\\\\{|$)"},"object-creation-expression-with-parameters":{"begin":"(delete|insert|undelete|update|upsert)?\\\\s*(new)\\\\s+(?<type_name>(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?<name_and_type_args>\\\\g<identifier>\\\\s*(?<type_args>\\\\s*<(?:[^<>]|\\\\g<type_args>)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g<name_and_type_args>)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"support.function.apex"},"2":{"name":"keyword.control.new.apex"},"3":{"patterns":[{"include":"#support-type"},{"include":"#type"}]}},"end":"(?<=\\\\))","patterns":[{"include":"#argument-list"}]},"operator-assignment":{"match":"(?<![!=])(=)(?!=)","name":"keyword.operator.assignment.apex"},"operator-safe-navigation":{"match":"\\\\?\\\\.","name":"keyword.operator.safe-navigation.apex"},"orderby-clause":{"captures":{"1":{"name":"keyword.operator.query.orderby.apex"}},"match":"\\\\b(ORDER BY)\\\\b\\\\s*","patterns":[{"include":"#ordering-direction"},{"include":"#ordering-nulls"}]},"ordering-direction":{"captures":{"1":{"name":"keyword.operator.query.ascending.apex"},"2":{"name":"keyword.operator.query.descending.apex"}},"match":"\\\\b(?:(ASC)|(DESC))\\\\b"},"ordering-nulls":{"captures":{"1":{"name":"keyword.operator.query.nullsfirst.apex"},"2":{"name":"keyword.operator.query.nullslast.apex"}},"match":"\\\\b(?:(NULLS FIRST)|(NULLS LAST))\\\\b"},"parameter":{"captures":{"1":{"name":"storage.modifier.apex"},"2":{"patterns":[{"include":"#support-type"},{"include":"#type"}]},"6":{"name":"entity.name.variable.parameter.apex"}},"match":"(?:\\\\b(this|final)\\\\b\\\\s+)?(?<type_name>(?:ref\\\\s+)?(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?<name_and_type_args>\\\\g<identifier>\\\\s*(?<type_args>\\\\s*<(?:[^<>]|\\\\g<type_args>)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g<name_and_type_args>)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s+(\\\\g<identifier>)"},"parenthesized-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.apex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"include":"#expression"}]},"parenthesized-parameter-list":{"begin":"(\\\\()","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.apex"}},"end":"(\\\\))","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"include":"#comment"},{"include":"#parameter"},{"include":"#punctuation-comma"},{"include":"#variable-initializer"}]},"property-accessors":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.apex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.apex"}},"patterns":[{"match":"\\\\b(pr(?:ivate|otected))\\\\b","name":"storage.modifier.apex"},{"match":"\\\\b(get)\\\\b","name":"keyword.other.get.apex"},{"match":"\\\\b(set)\\\\b","name":"keyword.other.set.apex"},{"include":"#comment"},{"include":"#expression-body"},{"include":"#block"},{"include":"#punctuation-semicolon"}]},"property-declaration":{"begin":"(?!.*\\\\b(?:class|interface|enum)\\\\b)\\\\s*(?<return_type>(?<type_name>(?:ref\\\\s+)?(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?<name_and_type_args>\\\\g<identifier>\\\\s*(?<type_args>\\\\s*<(?:[^<>]|\\\\g<type_args>)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g<name_and_type_args>)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s+)(?<interface_name>\\\\g<type_name>\\\\s*\\\\.\\\\s*)?(?<property_name>\\\\g<identifier>)\\\\s*(?=\\\\{|=>|$)","beginCaptures":{"1":{"patterns":[{"include":"#type"}]},"6":{"patterns":[{"include":"#type"},{"include":"#punctuation-accessor"}]},"7":{"name":"entity.name.variable.property.apex"}},"end":"(?<=})|(?=;)","patterns":[{"include":"#comment"},{"include":"#property-accessors"},{"include":"#expression-body"},{"include":"#variable-initializer"},{"include":"#class-or-trigger-members"}]},"punctuation-accessor":{"match":"\\\\.","name":"punctuation.accessor.apex"},"punctuation-comma":{"match":",","name":"punctuation.separator.comma.apex"},"punctuation-semicolon":{"match":";","name":"punctuation.terminator.statement.apex"},"query-operators":{"captures":{"1":{"name":"keyword.operator.query.apex"}},"match":"\\\\b(ABOVE|AND|AT|FOR REFERENCE|FOR UPDATE|FOR VIEW|GROUP BY|HAVING|IN|LIKE|LIMIT|NOT IN|NOT|OFFSET|OR|TYPEOF|UPDATE TRACKING|UPDATE VIEWSTAT|WITH DATA CATEGORY|WITH)\\\\b\\\\s*"},"return-statement":{"begin":"(?<!\\\\.)\\\\b(return)\\\\b","beginCaptures":{"1":{"name":"keyword.control.flow.return.apex"}},"end":"(?=;)","patterns":[{"include":"#expression"}]},"script-top-level":{"patterns":[{"include":"#method-declaration"},{"include":"#statement"},{"include":"#punctuation-semicolon"}]},"sharing-modifier":{"match":"(?<!\\\\.)\\\\b((?:with|without|inherited) sharing)\\\\b","name":"sharing.modifier.apex"},"soql-colon-method-statement":{"begin":"(:?\\\\.)?([_[:alpha:]][_[:alnum:]]*)(?=\\\\()","beginCaptures":{"1":{"name":"punctuation.accessor.apex"},"2":{"name":"entity.name.function.apex"}},"end":"(?<=\\\\))","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.apex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"include":"#expression"}]},{"include":"#statement"}]},"soql-colon-vars":{"begin":"(:)\\\\s*","beginCaptures":{"0":{"name":"keyword.operator.conditional.colon.apex"}},"end":"(?![(_[:alnum:]]|(\\\\?)?\\\\[|<)","patterns":[{"include":"#trigger-context-declaration"},{"captures":{"1":{"name":"variable.other.object.apex"},"2":{"patterns":[{"include":"#punctuation-accessor"},{"include":"#operator-safe-navigation"}]}},"match":"([_[:alpha:]][_[:alnum:]]*)(\\\\??\\\\.)"},{"include":"#soql-colon-method-statement"},{"match":"[_[:alpha:]][_[:alnum:]]*","name":"entity.name.variable.local.apex"}]},"soql-functions":{"begin":"\\\\b(AVG|CALENDAR_MONTH|CALENDAR_QUARTER|CALENDAR_YEAR|convertCurrency|convertTimezone|COUNT|COUNT_DISTINCT|DAY_IN_MONTH|DAY_IN_WEEK|DAY_IN_YEAR|DAY_ONLY|toLabel|INCLUDES|EXCLUDES|FISCAL_MONTH|FISCAL_QUARTER|FISCAL_YEAR|FORMAT|GROUPING|GROUP BY CUBE|GROUP BY ROLLUP|HOUR_IN_DAY|MAX|MIN|SUM|WEEK_IN_MONTH|WEEK_IN_YEAR)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"support.function.query.apex"},"2":{"name":"punctuation.parenthesis.open.apex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"include":"#literal"},{"include":"#punctuation-comma"},{"include":"#soql-functions"},{"match":"[._[:alpha:]][._[:alnum:]]*","name":"keyword.query.field.apex"}]},"soql-group-clauses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.apex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"include":"#soql-query-expression"},{"include":"#soql-colon-vars"},{"include":"#soql-group-clauses"},{"include":"#punctuation-comma"},{"include":"#operator-assignment"},{"include":"#literal"},{"include":"#query-operators"},{"include":"#date-literals"},{"include":"#date-literal-with-params"},{"include":"#using-scope"},{"match":"[._[:alpha:]][._[:alnum:]]*","name":"keyword.query.field.apex"}]},"soql-query-body":{"patterns":[{"include":"#trigger-context-declaration"},{"include":"#soql-colon-vars"},{"include":"#soql-functions"},{"include":"#from-clause"},{"include":"#where-clause"},{"include":"#query-operators"},{"include":"#date-literals"},{"include":"#date-literal-with-params"},{"include":"#using-scope"},{"include":"#soql-group-clauses"},{"include":"#orderby-clause"},{"include":"#ordering-direction"},{"include":"#ordering-nulls"}]},"soql-query-expression":{"begin":"\\\\b(SELECT)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.query.select.apex"}},"end":"(?=;)|(?=])|(?=\\\\))","patterns":[{"include":"#soql-query-body"},{"include":"#comment"},{"include":"#punctuation-comma"},{"include":"#operator-assignment"},{"include":"#parenthesized-expression"},{"include":"#expression-operators"},{"include":"#literal"},{"captures":{"1":{"name":"keyword.query.field.apex"},"2":{"name":"punctuation.separator.comma.apex"}},"match":"([._[:alpha:]][._[:alnum:]]*)\\\\s*(,)?"}]},"statement":{"patterns":[{"include":"#comment"},{"include":"#while-statement"},{"include":"#do-statement"},{"include":"#for-statement"},{"include":"#switch-statement"},{"include":"#when-else-statement"},{"include":"#when-sobject-statement"},{"include":"#when-statement"},{"include":"#when-multiple-statement"},{"include":"#if-statement"},{"include":"#else-part"},{"include":"#goto-statement"},{"include":"#return-statement"},{"include":"#break-or-continue-statement"},{"include":"#throw-statement"},{"include":"#try-statement"},{"include":"#soql-query-expression"},{"include":"#local-declaration"},{"include":"#block"},{"include":"#expression"},{"include":"#punctuation-semicolon"}]},"storage-modifier":{"match":"(?<!\\\\.)\\\\b(new|public|protected|private|abstract|virtual|override|global|static|final|transient)\\\\b","name":"storage.modifier.apex"},"string-character-escape":{"match":"\\\\\\\\.","name":"constant.character.escape.apex"},"string-literal":{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.apex"}},"end":"(\')|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.apex"},"2":{"name":"invalid.illegal.newline.apex"}},"name":"string.quoted.single.apex","patterns":[{"include":"#string-character-escape"}]},"support-arguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.apex"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.apex"}},"patterns":[{"include":"#comment"},{"include":"#support-type"},{"include":"#punctuation-comma"}]},"support-class":{"captures":{"1":{"name":"support.class.apex"}},"match":"\\\\b(ApexPages|Database|DMLException|Exception|PageReference|Savepoint|SchedulableContext|Schema|SObject|System|Test)\\\\b"},"support-expression":{"begin":"(ApexPages|Database|DMLException|Exception|PageReference|Savepoint|SchedulableContext|Schema|SObject|System|Test)(?=[.\\\\s])","beginCaptures":{"1":{"name":"support.class.apex"}},"end":"(?<=\\\\)|$)|(?=})|(?=;)|(?=\\\\)|(?=]))|(?=,)","patterns":[{"include":"#support-type"},{"captures":{"1":{"name":"punctuation.accessor.apex"},"2":{"name":"support.function.apex"}},"match":"(\\\\.)(\\\\p{alpha}*)(?=\\\\()"},{"captures":{"1":{"name":"punctuation.accessor.apex"},"2":{"name":"support.type.apex"}},"match":"(\\\\.)(\\\\p{alpha}+)"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.apex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},{"include":"#comment"},{"include":"#statement"}]},"support-functions":{"captures":{"1":{"name":"support.function.apex"}},"match":"\\\\b(delete|execute|finish|insert|start|undelete|update|upsert)\\\\b"},"support-name":{"patterns":[{"captures":{"1":{"name":"punctuation.accessor.apex"},"2":{"name":"support.function.apex"}},"match":"(\\\\.)\\\\s*(\\\\p{alpha}*)(?=\\\\()"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.apex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},{"captures":{"1":{"name":"punctuation.accessor.apex"},"2":{"name":"support.type.apex"}},"match":"(\\\\.)\\\\s*([_[:alpha:]]*)"}]},"support-type":{"name":"support.apex","patterns":[{"include":"#comment"},{"include":"#support-class"},{"include":"#support-functions"},{"include":"#support-name"}]},"switch-statement":{"begin":"(switch)\\\\b\\\\s+(on)\\\\b\\\\s+(.*)(\\\\{)","beginCaptures":{"1":{"name":"keyword.control.switch.apex"},"2":{"name":"keyword.control.switch.on.apex"},"3":{"patterns":[{"include":"#statement"},{"include":"#parenthesized-expression"}]},"4":{"name":"punctuation.curlybrace.open.apex"}},"end":"(})","endCaptures":{"0":{"name":"punctuation.curlybrace.close.apex"}},"patterns":[{"include":"#when-string"},{"include":"#when-else-statement"},{"include":"#when-sobject-statement"},{"include":"#when-statement"},{"include":"#when-multiple-statement"},{"include":"#expression"},{"include":"#punctuation-comma"},{"include":"#punctuation-semicolon"}]},"this-expression":{"captures":{"1":{"name":"keyword.other.this.apex"}},"match":"\\\\b(this)\\\\b"},"throw-expression":{"captures":{"1":{"name":"keyword.control.flow.throw.apex"}},"match":"(?<!\\\\.)\\\\b(throw)\\\\b"},"throw-statement":{"begin":"(?<!\\\\.)\\\\b(throw)\\\\b","beginCaptures":{"1":{"name":"keyword.control.flow.throw.apex"}},"end":"(?=;)","patterns":[{"include":"#expression"}]},"trigger-context-declaration":{"begin":"\\\\b(Trigger)\\\\b(\\\\.)\\\\b","beginCaptures":{"1":{"name":"support.class.trigger.apex"},"2":{"name":"punctuation.accessor.apex"}},"end":"(?=})|(?=;)|(?=\\\\)|(?=]))","patterns":[{"match":"\\\\b(isExecuting|isInsert|isUpdate|isDelete|isBefore|isAfter|isUndelete|new|newMap|old|oldMap|size)\\\\b","name":"support.type.trigger.apex"},{"captures":{"1":{"patterns":[{"include":"#punctuation-accessor"},{"include":"#operator-safe-navigation"}]},"2":{"name":"support.function.trigger.apex"}},"match":"(\\\\??\\\\.)(\\\\p{alpha}+)(?=\\\\()"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.apex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"include":"#trigger-type-statement"},{"include":"#javadoc-comment"},{"include":"#comment"},{"include":"#expression"}]},{"include":"#expression"}]},"trigger-declaration":{"begin":"(?=\\\\btrigger\\\\b)","end":"(?<=})","patterns":[{"begin":"\\\\b(trigger)\\\\b\\\\s+(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*\\\\b(on)\\\\b\\\\s+([_[:alpha:]][_[:alnum:]]*)\\\\s*","beginCaptures":{"1":{"name":"keyword.other.trigger.apex"},"2":{"name":"entity.name.type.trigger.apex"},"3":{"name":"keyword.operator.trigger.on.apex"},"4":{"name":"storage.type.apex"}},"end":"(?=\\\\{)","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.apex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"include":"#trigger-type-statement"},{"include":"#trigger-operator-statement"},{"include":"#punctuation-comma"},{"include":"#expression"}]},{"include":"#javadoc-comment"},{"include":"#comment"},{"include":"#type-parameter-list"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.apex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.apex"}},"patterns":[{"include":"#statement"},{"include":"#class-or-trigger-members"}]},{"include":"#javadoc-comment"},{"include":"#comment"}]},"trigger-operator-statement":{"match":"\\\\b(insert|update|delete|merge|upsert|undelete)\\\\b","name":"keyword.operator.trigger.apex"},"trigger-type-statement":{"captures":{"1":{"name":"keyword.control.trigger.before.apex"},"2":{"name":"keyword.control.trigger.after.apex"}},"match":"\\\\b(?:(before)|(after))\\\\b"},"try-block":{"begin":"(?<!\\\\.)\\\\b(try)\\\\b","beginCaptures":{"1":{"name":"keyword.control.try.apex"}},"end":"(?<=})","patterns":[{"include":"#comment"},{"include":"#block"}]},"try-statement":{"patterns":[{"include":"#try-block"},{"include":"#catch-clause"},{"include":"#finally-clause"}]},"type":{"name":"meta.type.apex","patterns":[{"include":"#comment"},{"include":"#type-builtin"},{"include":"#type-name"},{"include":"#type-arguments"},{"include":"#type-array-suffix"},{"include":"#type-nullable-suffix"}]},"type-arguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.apex"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.apex"}},"patterns":[{"include":"#comment"},{"include":"#support-type"},{"include":"#type"},{"include":"#punctuation-comma"}]},"type-array-suffix":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.squarebracket.open.apex"}},"end":"]","endCaptures":{"0":{"name":"punctuation.squarebracket.close.apex"}},"patterns":[{"include":"#punctuation-comma"}]},"type-builtin":{"captures":{"1":{"name":"keyword.type.apex"}},"match":"\\\\b(Blob|Boolean|byte|Date|Datetime|Decimal|Double|Id|ID|Integer|Long|Object|String|Time|void)\\\\b"},"type-declarations":{"patterns":[{"include":"#javadoc-comment"},{"include":"#comment"},{"include":"#annotation-declaration"},{"include":"#storage-modifier"},{"include":"#sharing-modifier"},{"include":"#class-declaration"},{"include":"#enum-declaration"},{"include":"#interface-declaration"},{"include":"#trigger-declaration"},{"include":"#punctuation-semicolon"}]},"type-name":{"patterns":[{"captures":{"1":{"name":"storage.type.apex"},"2":{"name":"punctuation.accessor.apex"}},"match":"(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(\\\\.)"},{"captures":{"1":{"name":"punctuation.accessor.apex"},"2":{"name":"storage.type.apex"}},"match":"(\\\\.)\\\\s*(@?[_[:alpha:]][_[:alnum:]]*)"},{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"storage.type.apex"}]},"type-nullable-suffix":{"captures":{"0":{"name":"punctuation.separator.question-mark.apex"}},"match":"\\\\?"},"type-parameter-list":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.apex"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.apex"}},"patterns":[{"captures":{"1":{"name":"entity.name.type.type-parameter.apex"}},"match":"(@?[_[:alpha:]][_[:alnum:]]*)\\\\b"},{"include":"#comment"},{"include":"#punctuation-comma"}]},"using-scope":{"captures":{"1":{"name":"keyword.operator.query.using.apex"}},"match":"((USING SCOPE)\\\\b\\\\s*(Delegated|Everything|Mine|My_Territory|My_Team_Territory|Team))\\\\b\\\\s*"},"variable-initializer":{"begin":"(?<![!=])(=)(?![=>])","beginCaptures":{"1":{"name":"keyword.operator.assignment.apex"}},"end":"(?=[]),;}])","patterns":[{"include":"#expression"}]},"when-else-statement":{"begin":"(when)\\\\b\\\\s+(else)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.control.switch.when.apex"},"2":{"name":"keyword.control.switch.else.apex"}},"end":"(?=})|(?=when\\\\b)","patterns":[{"include":"#block"},{"include":"#expression"}]},"when-multiple-statement":{"begin":"(when)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.control.switch.when.apex"}},"end":"(?=})|(?=when\\\\b)","patterns":[{"include":"#block"},{"include":"#expression"},{"include":"#punctuation-comma"}]},"when-sobject-statement":{"begin":"(when)\\\\b\\\\s+([_[:alnum:]]+)\\\\s+([_[:alnum:]]+)\\\\s*","beginCaptures":{"1":{"name":"keyword.control.switch.when.apex"},"2":{"name":"storage.type.apex"},"3":{"name":"entity.name.variable.local.apex"}},"end":"(?=})|(?=when\\\\b)","patterns":[{"include":"#block"},{"include":"#expression"}]},"when-statement":{"begin":"(when)\\\\b\\\\s+([-_[:alnum:]]+)\\\\s*","beginCaptures":{"1":{"name":"keyword.control.switch.when.apex"},"2":{"patterns":[{"include":"#expression"}]}},"end":"(?=})|(?=when\\\\b)","patterns":[{"include":"#block"},{"include":"#expression"}]},"when-string":{"begin":"(when)\\\\b\\\\s*(\'[^\\\\n\']*\')(\\\\s*(,)\\\\s*(\'[^\\\\n\']*\'))*\\\\s*","beginCaptures":{"1":{"name":"keyword.control.switch.when.apex"},"2":{"patterns":[{"include":"#string-literal"}]},"4":{"patterns":[{"include":"#punctuation-comma"}]},"5":{"patterns":[{"include":"#string-literal"}]}},"end":"(?=})|(?=when\\\\b)","patterns":[{"include":"#block"},{"include":"#expression"}]},"where-clause":{"captures":{"1":{"name":"keyword.operator.query.where.apex"}},"match":"\\\\b(WHERE)\\\\b\\\\s*"},"while-statement":{"begin":"(?<!\\\\.)\\\\b(while)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"keyword.control.loop.while.apex"}},"end":"(?<=})|(?=;)","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.apex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"include":"#expression"}]},{"include":"#statement"}]},"xml-attribute":{"patterns":[{"captures":{"1":{"name":"entity.other.attribute-name.apex"},"2":{"name":"entity.other.attribute-name.namespace.apex"},"3":{"name":"punctuation.separator.colon.apex"},"4":{"name":"entity.other.attribute-name.localname.apex"},"5":{"name":"punctuation.separator.equals.apex"}},"match":"(?:^|\\\\s+)((?:([-_[:alnum:]]+)(:))?([-_[:alnum:]]+))(=)"},{"include":"#xml-string"}]},"xml-cdata":{"begin":"<!\\\\[CDATA\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.apex"}},"end":"]]>","endCaptures":{"0":{"name":"punctuation.definition.string.end.apex"}},"name":"string.unquoted.cdata.apex"},"xml-character-entity":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.constant.apex"},"3":{"name":"punctuation.definition.constant.apex"}},"match":"(&)([:_[:alpha:]][-.:_[:alnum:]]*|#\\\\d+|#x\\\\h+)(;)","name":"constant.character.entity.apex"},{"match":"&","name":"invalid.illegal.bad-ampersand.apex"}]},"xml-comment":{"begin":"<!--","beginCaptures":{"0":{"name":"punctuation.definition.comment.apex"}},"end":"-->","endCaptures":{"0":{"name":"punctuation.definition.comment.apex"}},"name":"comment.block.apex"},"xml-doc-comment":{"patterns":[{"include":"#xml-comment"},{"include":"#xml-character-entity"},{"include":"#xml-cdata"},{"include":"#xml-tag"}]},"xml-string":{"patterns":[{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.apex"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.apex"}},"name":"string.quoted.single.apex","patterns":[{"include":"#xml-character-entity"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.stringdoublequote.begin.apex"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.stringdoublequote.end.apex"}},"name":"string.quoted.double.apex","patterns":[{"include":"#xml-character-entity"}]}]},"xml-tag":{"begin":"(</?)((?:([-_[:alnum:]]+)(:))?([-_[:alnum:]]+))","beginCaptures":{"1":{"name":"punctuation.definition.tag.apex"},"2":{"name":"entity.name.tag.apex"},"3":{"name":"entity.name.tag.namespace.apex"},"4":{"name":"punctuation.separator.colon.apex"},"5":{"name":"entity.name.tag.localname.apex"}},"end":"(/?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.apex"}},"name":"meta.tag.apex","patterns":[{"include":"#xml-attribute"}]}},"scopeName":"source.apex"}')),n=[e];export{n as default};
|