zen-code 4.8.2 → 4.8.4
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 +93 -93
- package/dist/{chunk-8kk9kv6s.js → chunk-03bb6pab.js} +1 -1
- package/dist/{chunk-jva13pdt.js → chunk-03d08304.js} +1 -1
- package/dist/{chunk-e3narvkn.js → chunk-04kzaj7h.js} +2 -2
- package/dist/{chunk-10stn7rc.js → chunk-09f94dtz.js} +1 -1
- package/dist/chunk-0bpvpy2e.js +1 -0
- package/dist/{chunk-r53nsqbh.js → chunk-0ch9bkct.js} +1 -1
- package/dist/{chunk-645r8yk7.js → chunk-0cz1ygrn.js} +1 -1
- package/dist/{chunk-3xfw5w0d.js → chunk-0dstjr38.js} +1 -1
- package/dist/chunk-0gb5n1jp.js +1 -0
- package/dist/{chunk-j07r3an3.js → chunk-0gpa9n28.js} +1 -1
- package/dist/{chunk-exj3mryv.js → chunk-0mryaqgb.js} +1 -1
- package/dist/{chunk-4cg3jh38.js → chunk-0myk23dw.js} +1 -1
- package/dist/{chunk-zxqs1xns.js → chunk-0qrqmmqt.js} +1 -1
- package/dist/{chunk-yzgwn422.js → chunk-1163kxya.js} +1 -1
- package/dist/chunk-13f0qh77.js +1 -0
- package/dist/chunk-17zj2hd5.js +1 -0
- package/dist/{chunk-ntc51kg0.js → chunk-1a5zv67s.js} +1 -1
- package/dist/{chunk-tfqwrnhz.js → chunk-1dwn0qqb.js} +1 -1
- package/dist/{chunk-kz78gsrq.js → chunk-1efcgvx0.js} +1 -1
- package/dist/{chunk-6qce4a2z.js → chunk-1ggv4msc.js} +1 -1
- package/dist/{chunk-7kb8ygdr.js → chunk-1jj1bxmb.js} +1 -1
- package/dist/{chunk-9dhex1sf.js → chunk-1mdbzd7e.js} +1 -1
- package/dist/{chunk-665a7fke.js → chunk-1pm5qfkm.js} +1 -1
- package/dist/{chunk-1a34fyjt.js → chunk-1q8wzky6.js} +1 -1
- package/dist/{chunk-ft4z3z88.js → chunk-1w5m9c5y.js} +1 -1
- package/dist/{chunk-axn0n4dh.js → chunk-21w7a0t2.js} +1 -1
- package/dist/{chunk-8w10sa5e.js → chunk-25es8s2e.js} +1 -1
- package/dist/{chunk-yynk0bam.js → chunk-28p35k17.js} +1 -1
- package/dist/{chunk-p8pfkf84.js → chunk-2gr7rdv0.js} +1 -1
- package/dist/{chunk-dee62n5c.js → chunk-2hjzw0cx.js} +1 -1
- package/dist/{chunk-8fzw4gqz.js → chunk-2kka9ex2.js} +1 -1
- package/dist/chunk-2m3g6fah.js +1 -0
- package/dist/{chunk-fsqndb8n.js → chunk-2qx9kzj1.js} +1 -1
- package/dist/{chunk-9n2ge60j.js → chunk-2vtz4ypn.js} +1 -1
- package/dist/{chunk-vfwh7m86.js → chunk-2w2pzwmm.js} +1 -1
- package/dist/{chunk-4w4ezegn.js → chunk-323aj0k7.js} +1 -1
- package/dist/{chunk-j4c847h3.js → chunk-3b8bw2gg.js} +1 -1
- package/dist/{chunk-1ja6becj.js → chunk-3c791dd5.js} +1 -1
- package/dist/{chunk-j7dazkh4.js → chunk-3dqan531.js} +1 -1
- package/dist/{chunk-bmb36b05.js → chunk-3ek4pcr6.js} +1 -1
- package/dist/{chunk-xxwnet5y.js → chunk-3mzwewcx.js} +1 -1
- package/dist/{chunk-g1z6k96z.js → chunk-3ns6c29z.js} +1 -1
- package/dist/{chunk-tv25zrtk.js → chunk-3p4khpea.js} +1 -1
- package/dist/{chunk-1yq51mb3.js → chunk-3pd9zqn2.js} +1 -1
- package/dist/{chunk-bnma63xz.js → chunk-3pqm74e3.js} +1 -1
- package/dist/{chunk-qhs3hh67.js → chunk-3s6j6d1z.js} +1 -1
- package/dist/{chunk-srtwf73c.js → chunk-3tq80kwe.js} +1 -1
- package/dist/{chunk-9frwhzz8.js → chunk-3z87tvcn.js} +1 -1
- package/dist/chunk-40fxbk0k.js +1 -0
- package/dist/{chunk-mwqg224k.js → chunk-41hzdwnx.js} +1 -1
- package/dist/{chunk-54j5njdj.js → chunk-45dyg3fv.js} +1 -1
- package/dist/{chunk-hqhqqe9q.js → chunk-4ecfe9a1.js} +1 -1
- package/dist/{chunk-bwvxp5dp.js → chunk-4g796wg5.js} +1 -1
- package/dist/{chunk-j3c65h0m.js → chunk-4j4w856j.js} +1 -1
- package/dist/{chunk-kbaz8s34.js → chunk-4mw5szy1.js} +1 -1
- package/dist/{chunk-dchaphvw.js → chunk-4n978rje.js} +2 -2
- package/dist/chunk-4pa2a33z.js +1 -0
- package/dist/{chunk-35bvsa6m.js → chunk-4qs8qf3g.js} +1 -1
- package/dist/{chunk-30hxw04w.js → chunk-4s6z4724.js} +1 -1
- package/dist/{chunk-httqsv3p.js → chunk-4tgv8687.js} +1 -1
- package/dist/{chunk-sdr9ywjt.js → chunk-4vr7sc1e.js} +1 -1
- package/dist/{chunk-5kns073z.js → chunk-4wmmjwq3.js} +1 -1
- package/dist/{chunk-f4cn2y4x.js → chunk-4z0wk36t.js} +1 -1
- package/dist/{chunk-9skn642s.js → chunk-4zemyepb.js} +1 -1
- package/dist/{chunk-x0xaw21f.js → chunk-501c35tf.js} +1 -1
- package/dist/{chunk-xg586hyh.js → chunk-50hw7e2n.js} +1 -1
- package/dist/{chunk-a07p1cfs.js → chunk-51cf1nrg.js} +1 -1
- package/dist/{chunk-ffyj4q4f.js → chunk-51h1tm3c.js} +1 -1
- package/dist/{chunk-zj03ksjd.js → chunk-5743qc09.js} +1 -1
- package/dist/{chunk-54ya969p.js → chunk-5g0asgdm.js} +1 -1
- package/dist/{chunk-84nqfeqh.js → chunk-5gaygdyf.js} +1 -1
- package/dist/{chunk-my5y2p5a.js → chunk-5n3h6mhr.js} +1 -1
- package/dist/{chunk-46ac6010.js → chunk-5vzt6z7d.js} +1 -1
- package/dist/{chunk-yd3vzgxs.js → chunk-62zhdx11.js} +1 -1
- package/dist/{chunk-khd8ds90.js → chunk-63ghca0g.js} +1 -1
- package/dist/{chunk-9xcz69sj.js → chunk-6a35z43a.js} +1 -1
- package/dist/{chunk-kkk1k414.js → chunk-6e734rff.js} +1 -1
- package/dist/chunk-6ezeq351.js +1 -0
- package/dist/{chunk-tr01bt0h.js → chunk-6gxwe3hq.js} +1 -1
- package/dist/chunk-6hbnk94n.js +1 -0
- package/dist/{chunk-00jvgph3.js → chunk-6meyz753.js} +1 -1
- package/dist/{chunk-en2d49a7.js → chunk-6nhdwm44.js} +1 -1
- package/dist/{chunk-dtha8g8n.js → chunk-6r7b9pg1.js} +1 -1
- package/dist/{chunk-2cj25dc6.js → chunk-6rzyzk0g.js} +1 -1
- package/dist/{chunk-hd39y2wf.js → chunk-6v5eepr1.js} +1 -1
- package/dist/{chunk-fyay9ztg.js → chunk-70gnwjt8.js} +1 -1
- package/dist/{chunk-jeavnd8g.js → chunk-72h39xc8.js} +1 -1
- package/dist/{chunk-8p1ebpny.js → chunk-76gx2wc0.js} +1 -1
- package/dist/{chunk-zqg7xzex.js → chunk-77gv3r7z.js} +1 -1
- package/dist/{chunk-4g2gfvyd.js → chunk-7893pky5.js} +1 -1
- package/dist/{chunk-v6faz3vj.js → chunk-7dmms791.js} +1 -1
- package/dist/{chunk-v667b8k4.js → chunk-7h9sjfmy.js} +1 -1
- package/dist/{chunk-n4s96jdz.js → chunk-7hvw60gp.js} +1 -1
- package/dist/{chunk-sw4h382q.js → chunk-7pntzqpm.js} +1 -1
- package/dist/{chunk-4k9xgsq4.js → chunk-7zprjevz.js} +1 -1
- package/dist/chunk-80jab8dy.js +1 -0
- package/dist/{chunk-e43hpgc8.js → chunk-85j75g9q.js} +1 -1
- package/dist/{chunk-ajxzbnbp.js → chunk-86em0evs.js} +1 -1
- package/dist/{chunk-sbcw8d8z.js → chunk-86exrje1.js} +1 -1
- package/dist/{chunk-wgwaq8q1.js → chunk-88191bqb.js} +1 -1
- package/dist/{chunk-daahmb61.js → chunk-8chx87e7.js} +1 -1
- package/dist/{chunk-d20g16c2.js → chunk-8evmvqza.js} +1 -1
- package/dist/{chunk-sexnhyqf.js → chunk-8hp4t30w.js} +1 -1
- package/dist/{chunk-k45jk0ge.js → chunk-8kv8e5sn.js} +1 -1
- package/dist/{chunk-a5k1t6aj.js → chunk-8m5dqftt.js} +1 -1
- package/dist/{chunk-8ynj83n2.js → chunk-8m6adpjf.js} +1 -1
- package/dist/{chunk-sy7vf5c5.js → chunk-8mmvxxyj.js} +1 -1
- package/dist/{chunk-en6q3h2k.js → chunk-8nkp692y.js} +1 -1
- package/dist/{chunk-2p664mgv.js → chunk-8tg10bhe.js} +1 -1
- package/dist/{chunk-qddn1sea.js → chunk-91rrbsk7.js} +1 -1
- package/dist/{chunk-x0gm6db7.js → chunk-952k4ak8.js} +1 -1
- package/dist/{chunk-3f6xf4mm.js → chunk-97bsgfnr.js} +1 -1
- package/dist/chunk-9c0wnb5t.js +1 -0
- package/dist/{chunk-kwhma00c.js → chunk-9dh8d15f.js} +1 -1
- package/dist/chunk-9dn65rqp.js +1 -0
- package/dist/{chunk-mnxav3bw.js → chunk-9gnhztzd.js} +1 -1
- package/dist/{chunk-2mesyv20.js → chunk-9hkn5b8e.js} +1 -1
- package/dist/{chunk-xtrkc4bn.js → chunk-9kydh60d.js} +1 -1
- package/dist/{chunk-fm4a6pgp.js → chunk-9ynmrc70.js} +1 -1
- package/dist/{chunk-bkan2fr3.js → chunk-acceg8yk.js} +1 -1
- package/dist/{chunk-xqhnnbfr.js → chunk-afdat9a4.js} +1 -1
- package/dist/{chunk-zgnjqvkp.js → chunk-ajtch74a.js} +1 -1
- package/dist/{chunk-9a6kwz9e.js → chunk-ak0aqr2c.js} +1 -1
- package/dist/{chunk-ewgpt1pm.js → chunk-ak2n1ckf.js} +1 -1
- package/dist/{chunk-7wqcxfc4.js → chunk-ak43xwf1.js} +1 -1
- package/dist/{chunk-vxggg3ea.js → chunk-anbr96y3.js} +1 -1
- package/dist/{chunk-q37swcyw.js → chunk-aqyqcpz2.js} +1 -1
- package/dist/{chunk-2kw6zxt8.js → chunk-arppjtcv.js} +1 -1
- package/dist/{chunk-s4ksgmax.js → chunk-azxn0zvz.js} +1 -1
- package/dist/chunk-b2pfdcdb.js +1 -0
- package/dist/{chunk-7wnxdt11.js → chunk-b4fn3tre.js} +1 -1
- package/dist/{chunk-vxzy50p0.js → chunk-b68ekt52.js} +1 -1
- package/dist/{chunk-pht0yvya.js → chunk-b6xencpw.js} +1 -1
- package/dist/{chunk-wxm0c8ec.js → chunk-b9fn4n7z.js} +1 -1
- package/dist/{chunk-r038t2rw.js → chunk-ba18by4y.js} +1 -1
- package/dist/{chunk-2yrz4qdk.js → chunk-bb9mvt9d.js} +1 -1
- package/dist/{chunk-dne3hqde.js → chunk-bd35cx5s.js} +1 -1
- package/dist/{chunk-ky2zgpqq.js → chunk-bf0pjbfa.js} +1 -1
- package/dist/chunk-bfm294j1.js +1 -0
- package/dist/{chunk-vbwkgvhq.js → chunk-bh33p34p.js} +1 -1
- package/dist/{chunk-0y6jq0a0.js → chunk-bngqptzm.js} +1 -1
- package/dist/{chunk-pr8jrhq9.js → chunk-bwjh7xrm.js} +1 -1
- package/dist/{chunk-04mq56m4.js → chunk-bwnx1zht.js} +1 -1
- package/dist/{chunk-9dse3mh2.js → chunk-c1345z85.js} +1 -1
- package/dist/{chunk-ny0zjscg.js → chunk-c1gpr8nz.js} +1 -1
- package/dist/{chunk-czkt4sv0.js → chunk-c1r7zjt3.js} +1 -1
- package/dist/{chunk-satxmrvx.js → chunk-c3b7gwkd.js} +1 -1
- package/dist/{chunk-vdd1xyrt.js → chunk-c5d87fzk.js} +1 -1
- package/dist/{chunk-zv0nefnm.js → chunk-cd37w7qk.js} +1 -1
- package/dist/chunk-cegx2zze.js +1 -0
- package/dist/{chunk-by1h1fy3.js → chunk-cm6vfvym.js} +1 -1
- package/dist/{chunk-15zc0x9q.js → chunk-cp9xkgbn.js} +3 -3
- package/dist/chunk-crjf70s3.js +1 -0
- package/dist/{chunk-b79d73fy.js → chunk-crvp4wnc.js} +1 -1
- package/dist/{chunk-yj3fncjn.js → chunk-cwvb8zr5.js} +1 -1
- package/dist/{chunk-6fzgq7sb.js → chunk-cyd358a8.js} +1 -1
- package/dist/chunk-d08qq3wd.js +1 -0
- package/dist/chunk-d9xgby9w.js +1 -0
- package/dist/{chunk-ggwb349q.js → chunk-dhgjjhh7.js} +1 -1
- package/dist/{chunk-07fnyy77.js → chunk-djmxgj5c.js} +1 -1
- package/dist/{chunk-55pfd4pp.js → chunk-dvmzq40v.js} +1 -1
- package/dist/{chunk-jpkm78je.js → chunk-dw3081wb.js} +1 -1
- package/dist/{chunk-jmp4rprf.js → chunk-e112438q.js} +1 -1
- package/dist/{chunk-667brfhx.js → chunk-e2qmvzgm.js} +1 -1
- package/dist/{chunk-t1pybn6p.js → chunk-e2vdc3vs.js} +1 -1
- package/dist/{chunk-0dvy62vd.js → chunk-eh3cemzk.js} +1 -1
- package/dist/{chunk-w4kh5s54.js → chunk-ehpz2t7m.js} +1 -1
- package/dist/{chunk-p1e4d1an.js → chunk-ek58k066.js} +1 -1
- package/dist/{chunk-1w5vehgm.js → chunk-emdn1c33.js} +1 -1
- package/dist/{chunk-dxyv2b1c.js → chunk-eyty7ng4.js} +1 -1
- package/dist/{chunk-fg2zmrdg.js → chunk-f3jbz60e.js} +1 -1
- package/dist/{chunk-fj71pv2k.js → chunk-f40x0w1g.js} +1 -1
- package/dist/{chunk-vpbyhd1b.js → chunk-f6cbjh6q.js} +1 -1
- package/dist/{chunk-f7rxszbz.js → chunk-fbf3gztk.js} +1 -1
- package/dist/{chunk-z578v7vz.js → chunk-fcexqvhh.js} +1 -1
- package/dist/{chunk-583jqck6.js → chunk-fcxgd3qb.js} +1 -1
- package/dist/{chunk-kn8f91na.js → chunk-feptb1bb.js} +1 -1
- package/dist/{chunk-cmfrm6a7.js → chunk-fmmsa2ry.js} +1 -1
- package/dist/{chunk-yyr27vj3.js → chunk-frzyyytq.js} +1 -1
- package/dist/{chunk-v02wftj8.js → chunk-fs2mzcgs.js} +1 -1
- package/dist/chunk-g1yt0qc9.js +1 -0
- package/dist/{chunk-33xp86w3.js → chunk-g30bcqjk.js} +1 -1
- package/dist/{chunk-51rhc5g1.js → chunk-g8k4dhcx.js} +1 -1
- package/dist/{chunk-5pt6e5bh.js → chunk-g9q5nbz0.js} +1 -1
- package/dist/{chunk-wkvnhk36.js → chunk-geyhpd32.js} +1 -1
- package/dist/{chunk-k06v7jh2.js → chunk-gh5vbn9x.js} +1 -1
- package/dist/{chunk-46bmfch2.js → chunk-gp1ensbx.js} +1 -1
- package/dist/chunk-gphyz2x3.js +1 -0
- package/dist/{chunk-qcyfn6sh.js → chunk-gpmj4w3z.js} +1 -1
- package/dist/{chunk-33j3j89j.js → chunk-gqdapzfq.js} +1 -1
- package/dist/{chunk-d7b0m60j.js → chunk-gtms11w9.js} +1 -1
- package/dist/{chunk-5eg3bn3m.js → chunk-gy4p2qnz.js} +1 -1
- package/dist/{chunk-9as23fmk.js → chunk-h5k1z56v.js} +1 -1
- package/dist/{chunk-c2gqabg2.js → chunk-h8ay3dqc.js} +1 -1
- package/dist/{chunk-nzfjhsr7.js → chunk-h8de6gyf.js} +1 -1
- package/dist/{chunk-x6je1qsq.js → chunk-hgpmrbsr.js} +1 -1
- package/dist/{chunk-ftc3mh9t.js → chunk-htgt048s.js} +1 -1
- package/dist/{chunk-a1s72wx6.js → chunk-hvekwfwd.js} +1 -1
- package/dist/{chunk-ksx0ymk7.js → chunk-hxw717c2.js} +1 -1
- package/dist/{chunk-n3e766aj.js → chunk-hzejh175.js} +1 -1
- package/dist/{chunk-mttnv195.js → chunk-j5e4dmw7.js} +1 -1
- package/dist/{chunk-b3s0bcp6.js → chunk-j8b7x5pr.js} +1 -1
- package/dist/{chunk-g1r86637.js → chunk-jafhgffb.js} +1 -1
- package/dist/{chunk-3k4101h5.js → chunk-jam7nh0r.js} +1 -1
- package/dist/chunk-jh6wwc9v.js +1 -0
- package/dist/chunk-jhjbxj1k.js +1 -0
- package/dist/chunk-jhwm3phf.js +1 -0
- package/dist/{chunk-b6xdt5xb.js → chunk-jmzy9per.js} +1 -1
- package/dist/{chunk-fwmc6hwy.js → chunk-jppcve2j.js} +1 -1
- package/dist/{chunk-m0k36mwn.js → chunk-jy5kmp4s.js} +1 -1
- package/dist/{chunk-kny33kyv.js → chunk-k1kzp019.js} +1 -1
- package/dist/{chunk-c04rr3mc.js → chunk-k7e2abhq.js} +1 -1
- package/dist/chunk-k97swe5s.js +1 -0
- package/dist/{chunk-fesyrdnx.js → chunk-ke9tpkk2.js} +1 -1
- package/dist/{chunk-6tf8wacp.js → chunk-kncs6js6.js} +1 -1
- package/dist/{chunk-q9wkyq6a.js → chunk-ksr76npa.js} +1 -1
- package/dist/chunk-ksy4d0za.js +1 -0
- package/dist/{chunk-962ms02t.js → chunk-kwgygr4z.js} +1 -1
- package/dist/{chunk-p3yymm16.js → chunk-m3zge9wv.js} +1 -1
- package/dist/{chunk-2xrccbwa.js → chunk-m7bwshtn.js} +1 -1
- package/dist/{chunk-gt6xd3pb.js → chunk-m8mdqeye.js} +1 -1
- package/dist/{chunk-jw043xpz.js → chunk-mcrmg4m8.js} +1 -1
- package/dist/{chunk-pdfvchxr.js → chunk-mfexzmw2.js} +1 -1
- package/dist/{chunk-dn2fe6a4.js → chunk-mjwypsrz.js} +1 -1
- package/dist/{chunk-2xr9jk3t.js → chunk-mp6yhf6a.js} +1 -1
- package/dist/chunk-mr7em8w4.js +1 -0
- package/dist/{chunk-66s9chr5.js → chunk-msha9pw1.js} +1 -1
- package/dist/{chunk-bcwnznke.js → chunk-mvv3ktys.js} +1 -1
- package/dist/{chunk-a4ah9wgn.js → chunk-mymqnpgf.js} +1 -1
- package/dist/{chunk-74j5prfv.js → chunk-n220pha2.js} +1 -1
- package/dist/{chunk-mx8stxha.js → chunk-n65ycayf.js} +1 -1
- package/dist/{chunk-pz1y3zyg.js → chunk-n72x5y7a.js} +1 -1
- package/dist/{chunk-5c13nrde.js → chunk-n9x46wsq.js} +1 -1
- package/dist/{chunk-8kt765dh.js → chunk-n9zmzbyq.js} +1 -1
- package/dist/{chunk-sd9rvjt6.js → chunk-nbcah8mh.js} +1 -1
- package/dist/chunk-ncs4rnsn.js +1 -0
- package/dist/{chunk-sjkk13dd.js → chunk-nt5n8jcr.js} +1 -1
- package/dist/{chunk-131cad67.js → chunk-nv58ta3s.js} +1 -1
- package/dist/{chunk-eceb8jjd.js → chunk-nw76mbwc.js} +1 -1
- package/dist/{chunk-cypczp4s.js → chunk-p2z2bacg.js} +1 -1
- package/dist/{chunk-zq5ncapf.js → chunk-p3mpqeqw.js} +1 -1
- package/dist/{chunk-t3q0fpe0.js → chunk-p3p6a3ht.js} +1 -1
- package/dist/{chunk-h1j74efh.js → chunk-p46at2ts.js} +1 -1
- package/dist/{chunk-5em7s1at.js → chunk-p6dgtz38.js} +1 -1
- package/dist/{chunk-nay5m04y.js → chunk-p70r0dds.js} +1 -1
- package/dist/{chunk-ntcxtgqe.js → chunk-p89xw4y2.js} +1 -1
- package/dist/{chunk-rnpfchb9.js → chunk-pd4wysbn.js} +1 -1
- package/dist/{chunk-5yv6fsvn.js → chunk-pe45n68n.js} +1 -1
- package/dist/{chunk-01tsa9cq.js → chunk-pf09ha3g.js} +1 -1
- package/dist/{chunk-v6nssgv7.js → chunk-pn04v4sv.js} +1 -1
- package/dist/{chunk-fdvezfdb.js → chunk-pr7vzg5y.js} +1 -1
- package/dist/{chunk-kz9rfhe3.js → chunk-psdrzwp5.js} +1 -1
- package/dist/{chunk-t6bb31dn.js → chunk-px75djc6.js} +1 -1
- package/dist/{chunk-m0czpwvf.js → chunk-q3x300wy.js} +1 -1
- package/dist/{chunk-mxwqk6ht.js → chunk-q56ns9ta.js} +1 -1
- package/dist/{chunk-zed64rf0.js → chunk-q86xqx6c.js} +1 -1
- package/dist/{chunk-gc0daqhj.js → chunk-q9711zm8.js} +1 -1
- package/dist/{chunk-5gp7nsdp.js → chunk-qejfdzc7.js} +1 -1
- package/dist/{chunk-m5rj1w7e.js → chunk-qpkn7wvc.js} +1 -1
- package/dist/{chunk-5q1qtbx4.js → chunk-r1enj0f0.js} +1 -1
- package/dist/{chunk-0qys39ww.js → chunk-r9r1v9kw.js} +1 -1
- package/dist/{chunk-p0ys44e5.js → chunk-rc027n67.js} +1 -1
- package/dist/{chunk-zcg0fy8h.js → chunk-rmrp92n9.js} +1 -1
- package/dist/{chunk-1r67ngsh.js → chunk-rv0x9fbs.js} +1 -1
- package/dist/chunk-rvxb17kx.js +1 -0
- package/dist/{chunk-5gjt4v98.js → chunk-rxs4gexg.js} +1 -1
- package/dist/{chunk-jk42e7d2.js → chunk-s6t5vxm9.js} +1 -1
- package/dist/chunk-s6xjfvvd.js +1 -0
- package/dist/{chunk-t7qx43hg.js → chunk-s719ttj9.js} +1 -1
- package/dist/{chunk-2mb0trr0.js → chunk-sd6qvm4t.js} +1 -1
- package/dist/chunk-shc3fcge.js +1 -0
- package/dist/chunk-ss233wsa.js +1 -0
- package/dist/{chunk-0b5e8zpy.js → chunk-stp38gza.js} +1 -1
- package/dist/{chunk-1mrzmr8f.js → chunk-sws9653v.js} +1 -1
- package/dist/{chunk-yk20e377.js → chunk-syme57ea.js} +1 -1
- package/dist/{chunk-07em03a3.js → chunk-t0tznkac.js} +1 -1
- package/dist/{chunk-zf96st2f.js → chunk-t32zj7ah.js} +1 -1
- package/dist/{chunk-vrjcy7h1.js → chunk-t5z5e89a.js} +1 -1
- package/dist/{chunk-87w588zd.js → chunk-t8w9hqaa.js} +1 -1
- package/dist/chunk-t97kks4j.js +1 -0
- package/dist/{chunk-f6rsbhs6.js → chunk-tamfhbc6.js} +1 -1
- package/dist/{chunk-s6qt552a.js → chunk-tchg9ygq.js} +1 -1
- package/dist/{chunk-6dat5vvb.js → chunk-te7k3eqj.js} +1 -1
- package/dist/{chunk-6r8jhnde.js → chunk-tpgf3t6p.js} +1 -1
- package/dist/{chunk-j2vek58t.js → chunk-tpyp8wqr.js} +1 -1
- package/dist/{chunk-vg1dem7m.js → chunk-trx18gxg.js} +1 -1
- package/dist/chunk-ts98e90r.js +1 -0
- package/dist/{chunk-brcvpmwp.js → chunk-tv1kqdv9.js} +1 -1
- package/dist/{chunk-zv3jegxm.js → chunk-tvbj84md.js} +1 -1
- package/dist/{chunk-16jx4h98.js → chunk-tx71e422.js} +1 -1
- package/dist/{chunk-3pzth5e2.js → chunk-ty5eswjv.js} +1 -1
- package/dist/{chunk-zwhbdwnt.js → chunk-v1e0cwqh.js} +1 -1
- package/dist/{chunk-3tfjvh53.js → chunk-v28dexnx.js} +1 -1
- package/dist/{chunk-cfsnygh0.js → chunk-v3bw2mnd.js} +1 -1
- package/dist/{chunk-10qr9jk1.js → chunk-v3ta4qyy.js} +1 -1
- package/dist/{chunk-8vsqygpz.js → chunk-v85y10pz.js} +1 -1
- package/dist/{chunk-9qtsjepd.js → chunk-v8ag7wgx.js} +1 -1
- package/dist/{chunk-x866vcqf.js → chunk-v9b5r8aq.js} +1 -1
- package/dist/{chunk-3mjwhvpy.js → chunk-vjvr9n6y.js} +1 -1
- package/dist/{chunk-vxdkfxtq.js → chunk-vkfhjhhh.js} +1 -1
- package/dist/{chunk-xkfzt78k.js → chunk-vxzscaap.js} +1 -1
- package/dist/{chunk-jrmcscsp.js → chunk-vyfvrrc8.js} +1 -1
- package/dist/{chunk-5hcvm27y.js → chunk-w0me5x6g.js} +1 -1
- package/dist/{chunk-vpah11mp.js → chunk-w69pf8zx.js} +1 -1
- package/dist/{chunk-e07gx0kg.js → chunk-w895krdx.js} +1 -1
- package/dist/{chunk-zgyww0w8.js → chunk-w8vzpn90.js} +1 -1
- package/dist/{chunk-18k4wz02.js → chunk-wb0ms9q0.js} +1 -1
- package/dist/{chunk-9rks3bc7.js → chunk-wk8sx9ev.js} +1 -1
- package/dist/{chunk-myx87v1y.js → chunk-wtwgpw9g.js} +1 -1
- package/dist/{chunk-vs72fgve.js → chunk-x0mnchxz.js} +1 -1
- package/dist/{chunk-9b45fe34.js → chunk-x0qb9311.js} +1 -1
- package/dist/chunk-x7g4cwft.js +1 -0
- package/dist/{chunk-t7zrr341.js → chunk-xb46b3bf.js} +1 -1
- package/dist/{chunk-b9s35wb6.js → chunk-xk0abc6t.js} +1 -1
- package/dist/{chunk-95963acy.js → chunk-xmp5jp4r.js} +1 -1
- package/dist/{chunk-wbcfbyft.js → chunk-xzpqbfjh.js} +1 -1
- package/dist/{chunk-s7qqrnzh.js → chunk-y1f3hfaq.js} +1 -1
- package/dist/{chunk-b7h6wk4v.js → chunk-y3d9nwzf.js} +1 -1
- package/dist/{chunk-mkzpj7ht.js → chunk-y3gfd4y3.js} +1 -1
- package/dist/{chunk-xc8efvab.js → chunk-y5pf2d0x.js} +1 -1
- package/dist/{chunk-6yk2jj1m.js → chunk-y6vatv51.js} +1 -1
- package/dist/{chunk-6wbgc1xz.js → chunk-y971vkwy.js} +1 -1
- package/dist/{chunk-w3y3sdmt.js → chunk-yb2kp04v.js} +1 -1
- package/dist/chunk-yctck6wf.js +1 -0
- package/dist/{chunk-vsedmhna.js → chunk-ye6d9r5f.js} +1 -1
- package/dist/{chunk-nvynvczn.js → chunk-yfasv01s.js} +1 -1
- package/dist/{chunk-bj4851d8.js → chunk-yj27rmw2.js} +1 -1
- package/dist/{chunk-y62ja3na.js → chunk-ypj2k2de.js} +1 -1
- package/dist/{chunk-n9yfs19q.js → chunk-yr04s6b7.js} +1 -1
- package/dist/{chunk-xkvnfywa.js → chunk-yr48as8z.js} +1 -1
- package/dist/{chunk-35ncgr15.js → chunk-ywas7wb8.js} +1 -1
- package/dist/{chunk-jv8shhgk.js → chunk-ywp666sg.js} +1 -1
- package/dist/{chunk-1ek0xjkr.js → chunk-yx4mdqvf.js} +1 -1
- package/dist/{chunk-9xtq15gy.js → chunk-yxwramd1.js} +1 -1
- package/dist/{chunk-2kqs0amy.js → chunk-yz8sseev.js} +1 -1
- package/dist/{chunk-6jdfap4a.js → chunk-z0abvgpr.js} +1 -1
- package/dist/{chunk-wp436n3r.js → chunk-z46zzhqf.js} +1 -1
- package/dist/{chunk-dj82prdc.js → chunk-z6rwg7bs.js} +1 -1
- package/dist/{chunk-yd6e0k1x.js → chunk-zb9wth64.js} +1 -1
- package/dist/chunk-zf08x9b0.js +434 -0
- package/dist/{chunk-p57dfnmm.js → chunk-zkfa00mf.js} +1 -1
- package/dist/{chunk-7jy1478y.js → chunk-znpdxhep.js} +1 -1
- package/dist/{chunk-4mj1r6nd.js → chunk-zpes0b8m.js} +1 -1
- package/dist/{chunk-5xhjmcrr.js → chunk-ztpff54v.js} +1 -1
- package/dist/cli.js +1 -1
- package/dist/nonInteractive.js +3 -3
- package/dist/zen-keyboard.js +1 -1
- package/package.json +2 -1
- package/dist/chunk-0c25y7k9.js +0 -1
- package/dist/chunk-29tmghhd.js +0 -1
- package/dist/chunk-3b63e6mc.js +0 -1
- package/dist/chunk-3st09pbw.js +0 -1
- package/dist/chunk-3zf20ctr.js +0 -1
- package/dist/chunk-4h4fdqy9.js +0 -1
- package/dist/chunk-87s313qe.js +0 -1
- package/dist/chunk-8n9e3wbs.js +0 -1
- package/dist/chunk-9xp471ze.js +0 -1
- package/dist/chunk-a0jc9gfw.js +0 -1
- package/dist/chunk-a22ebaj5.js +0 -1
- package/dist/chunk-bc95nfbs.js +0 -1
- package/dist/chunk-cd3rdhh1.js +0 -424
- package/dist/chunk-cdp5c1vf.js +0 -1
- package/dist/chunk-fsh8c4gw.js +0 -1
- package/dist/chunk-g0c5mmdz.js +0 -1
- package/dist/chunk-gz0bg0j5.js +0 -1
- package/dist/chunk-h77takma.js +0 -1
- package/dist/chunk-j9bkjc22.js +0 -1
- package/dist/chunk-jn4wgzaz.js +0 -1
- package/dist/chunk-jwtpf45z.js +0 -1
- package/dist/chunk-kephawnc.js +0 -1
- package/dist/chunk-kzafnaxn.js +0 -1
- package/dist/chunk-mgkmr3xy.js +0 -1
- package/dist/chunk-nq1k5tw4.js +0 -1
- package/dist/chunk-q2qcexv0.js +0 -1
- package/dist/chunk-s237yqg5.js +0 -1
- package/dist/chunk-sch9d3fe.js +0 -1
- package/dist/chunk-skh4rx0s.js +0 -1
- package/dist/chunk-svcy27ht.js +0 -1
- package/dist/chunk-t49vbac9.js +0 -1
- package/dist/chunk-txdyy4ya.js +0 -1
- package/dist/chunk-vcbgawge.js +0 -1
- package/dist/chunk-y7qk76sv.js +0 -1
- package/dist/chunk-yhpg01ds.js +0 -1
- package/dist/chunk-ynjy01zm.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-
|
|
1
|
+
import"./chunk-feptb1bb.js";var e=Object.freeze(JSON.parse(`{"displayName":"Kotlin","fileTypes":["kt","kts"],"name":"kotlin","patterns":[{"include":"#import"},{"include":"#package"},{"include":"#code"}],"repository":{"annotation-simple":{"match":"(?<!\\\\w)@[.\\\\w]+\\\\b(?!:)","name":"entity.name.type.annotation.kotlin"},"annotation-site":{"begin":"(?<!\\\\w)(@\\\\w+):\\\\s*(?!\\\\[)","beginCaptures":{"1":{"name":"entity.name.type.annotation-site.kotlin"}},"end":"$","patterns":[{"include":"#unescaped-annotation"}]},"annotation-site-list":{"begin":"(?<!\\\\w)(@\\\\w+):\\\\s*\\\\[","beginCaptures":{"1":{"name":"entity.name.type.annotation-site.kotlin"}},"end":"]","patterns":[{"include":"#unescaped-annotation"}]},"binary-literal":{"match":"0([Bb])[01][01_]*","name":"constant.numeric.binary.kotlin"},"boolean-literal":{"match":"\\\\b(true|false)\\\\b","name":"constant.language.boolean.kotlin"},"character":{"begin":"'","end":"'","name":"string.quoted.single.kotlin","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.kotlin"}]},"class-declaration":{"captures":{"1":{"name":"keyword.hard.class.kotlin"},"2":{"name":"entity.name.type.class.kotlin"},"3":{"patterns":[{"include":"#type-parameter"}]}},"match":"\\\\b(class|(?:fun\\\\s+)?interface)\\\\s+(\\\\b\\\\w+\\\\b|\`[^\`]+\`)\\\\s*(?<GROUP><([^<>]|\\\\g<GROUP>)+>)?"},"code":{"patterns":[{"include":"#comments"},{"include":"#keywords"},{"include":"#annotation-simple"},{"include":"#annotation-site-list"},{"include":"#annotation-site"},{"include":"#class-declaration"},{"include":"#object"},{"include":"#type-alias"},{"include":"#function"},{"include":"#variable-declaration"},{"include":"#type-constraint"},{"include":"#type-annotation"},{"include":"#function-call"},{"include":"#method-reference"},{"include":"#key"},{"include":"#string"},{"include":"#string-empty"},{"include":"#string-multiline"},{"include":"#character"},{"include":"#lambda-arrow"},{"include":"#operators"},{"include":"#self-reference"},{"include":"#decimal-literal"},{"include":"#hex-literal"},{"include":"#binary-literal"},{"include":"#boolean-literal"},{"include":"#null-literal"}]},"comment-block":{"begin":"/\\\\*(?!\\\\*)","end":"\\\\*/","name":"comment.block.kotlin"},"comment-javadoc":{"patterns":[{"begin":"/\\\\*\\\\*","end":"\\\\*/","name":"comment.block.javadoc.kotlin","patterns":[{"match":"@(return|constructor|receiver|sample|see|author|since|suppress)\\\\b","name":"keyword.other.documentation.javadoc.kotlin"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.kotlin"},"2":{"name":"variable.parameter.kotlin"}},"match":"(@p(?:aram|roperty))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.kotlin"},"2":{"name":"variable.parameter.kotlin"}},"match":"(@param)\\\\[(\\\\S+)]"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.kotlin"},"2":{"name":"entity.name.type.class.kotlin"}},"match":"(@(?:exception|throws))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.kotlin"},"2":{"name":"entity.name.type.class.kotlin"},"3":{"name":"variable.parameter.kotlin"}},"match":"\\\\{(@link)\\\\s+(\\\\S+)?#([$\\\\w]+\\\\s*\\\\([^()]*\\\\)).*}"}]}]},"comment-line":{"begin":"//","end":"$","name":"comment.line.double-slash.kotlin"},"comments":{"patterns":[{"include":"#comment-line"},{"include":"#comment-block"},{"include":"#comment-javadoc"}]},"control-keywords":{"match":"\\\\b(if|else|while|do|when|try|throw|break|continue|return|for)\\\\b","name":"keyword.control.kotlin"},"decimal-literal":{"match":"\\\\b\\\\d[_\\\\d]*(\\\\.[_\\\\d]+)?(([Ee])\\\\d+)?([Uu])?([FLf])?\\\\b","name":"constant.numeric.decimal.kotlin"},"function":{"captures":{"1":{"name":"keyword.hard.fun.kotlin"},"2":{"patterns":[{"include":"#type-parameter"}]},"4":{"name":"entity.name.type.class.extension.kotlin"},"5":{"name":"entity.name.function.declaration.kotlin"}},"match":"\\\\b(fun)\\\\b\\\\s*(?<GROUP><([^<>]|\\\\g<GROUP>)+>)?\\\\s*(?:(?:(\\\\w+)\\\\.)?(\\\\b\\\\w+\\\\b|\`[^\`]+\`))?"},"function-call":{"captures":{"1":{"name":"entity.name.function.call.kotlin"},"2":{"patterns":[{"include":"#type-parameter"}]}},"match":"\\\\??\\\\.?(\\\\b\\\\w+\\\\b|\`[^\`]+\`)\\\\s*(?<GROUP><([^<>]|\\\\g<GROUP>)+>)?\\\\s*(?=[({])"},"hard-keywords":{"match":"\\\\b(as|typeof|is|in)\\\\b","name":"keyword.hard.kotlin"},"hex-literal":{"match":"0([Xx])\\\\h[_\\\\h]*([Uu])?","name":"constant.numeric.hex.kotlin"},"import":{"begin":"\\\\b(import)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.soft.kotlin"}},"contentName":"entity.name.package.kotlin","end":";|$","name":"meta.import.kotlin","patterns":[{"include":"#comments"},{"include":"#hard-keywords"},{"match":"\\\\*","name":"variable.language.wildcard.kotlin"}]},"key":{"captures":{"1":{"name":"variable.parameter.kotlin"},"2":{"name":"keyword.operator.assignment.kotlin"}},"match":"\\\\b(\\\\w=)\\\\s*(=)"},"keywords":{"patterns":[{"include":"#prefix-modifiers"},{"include":"#postfix-modifiers"},{"include":"#soft-keywords"},{"include":"#hard-keywords"},{"include":"#control-keywords"}]},"lambda-arrow":{"match":"->","name":"storage.type.function.arrow.kotlin"},"method-reference":{"captures":{"1":{"name":"entity.name.function.reference.kotlin"}},"match":"\\\\??::(\\\\b\\\\w+\\\\b|\`[^\`]+\`)"},"null-literal":{"match":"\\\\bnull\\\\b","name":"constant.language.null.kotlin"},"object":{"captures":{"1":{"name":"keyword.hard.object.kotlin"},"2":{"name":"entity.name.type.object.kotlin"}},"match":"\\\\b(object)(?:\\\\s+(\\\\b\\\\w+\\\\b|\`[^\`]+\`))?"},"operators":{"patterns":[{"match":"(===?|!==?|<=|>=|[<>])","name":"keyword.operator.comparison.kotlin"},{"match":"([-%*+/]=)","name":"keyword.operator.assignment.arithmetic.kotlin"},{"match":"(=)","name":"keyword.operator.assignment.kotlin"},{"match":"([-%*+/])","name":"keyword.operator.arithmetic.kotlin"},{"match":"(!|&&|\\\\|\\\\|)","name":"keyword.operator.logical.kotlin"},{"match":"(--|\\\\+\\\\+)","name":"keyword.operator.increment-decrement.kotlin"},{"match":"(\\\\.\\\\.)","name":"keyword.operator.range.kotlin"}]},"package":{"begin":"\\\\b(package)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.hard.package.kotlin"}},"contentName":"entity.name.package.kotlin","end":";|$","name":"meta.package.kotlin","patterns":[{"include":"#comments"}]},"postfix-modifiers":{"match":"\\\\b(where|by|get|set)\\\\b","name":"storage.modifier.other.kotlin"},"prefix-modifiers":{"match":"\\\\b(abstract|final|enum|open|annotation|sealed|data|override|final|lateinit|private|protected|public|internal|inner|companion|noinline|crossinline|vararg|reified|tailrec|operator|infix|inline|external|const|suspend|value)\\\\b","name":"storage.modifier.other.kotlin"},"self-reference":{"match":"\\\\b(this|super)(@\\\\w+)?\\\\b","name":"variable.language.this.kotlin"},"soft-keywords":{"match":"\\\\b(init|catch|finally|field)\\\\b","name":"keyword.soft.kotlin"},"string":{"begin":"(?<!\\")\\"(?!\\")","end":"\\"","name":"string.quoted.double.kotlin","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.kotlin"},{"include":"#string-escape-simple"},{"include":"#string-escape-bracketed"}]},"string-empty":{"match":"(?<!\\")\\"\\"(?!\\")","name":"string.quoted.double.kotlin"},"string-escape-bracketed":{"begin":"(?<!\\\\\\\\)(\\\\$\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.template-expression.begin"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.template-expression.end"}},"name":"meta.template.expression.kotlin","patterns":[{"include":"#code"}]},"string-escape-simple":{"match":"(?<!\\\\\\\\)\\\\$\\\\w+\\\\b","name":"variable.string-escape.kotlin"},"string-multiline":{"begin":"\\"\\"\\"","end":"\\"\\"\\"","name":"string.quoted.double.kotlin","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.kotlin"},{"include":"#string-escape-simple"},{"include":"#string-escape-bracketed"}]},"type-alias":{"captures":{"1":{"name":"keyword.hard.typealias.kotlin"},"2":{"name":"entity.name.type.kotlin"},"3":{"patterns":[{"include":"#type-parameter"}]}},"match":"\\\\b(typealias)\\\\s+(\\\\b\\\\w+\\\\b|\`[^\`]+\`)\\\\s*(?<GROUP><([^<>]|\\\\g<GROUP>)+>)?"},"type-annotation":{"captures":{"0":{"patterns":[{"include":"#type-parameter"}]}},"match":"(?<![:?]):\\\\s*([?\\\\w\\\\s]|->|(?<GROUP>[(<]([^\\"'()<>]|\\\\g<GROUP>)+[)>]))+"},"type-parameter":{"patterns":[{"match":"\\\\b\\\\w+\\\\b","name":"entity.name.type.kotlin"},{"match":"\\\\b(in|out)\\\\b","name":"storage.modifier.kotlin"}]},"unescaped-annotation":{"match":"\\\\b[.\\\\w]+\\\\b","name":"entity.name.type.annotation.kotlin"},"variable-declaration":{"captures":{"1":{"name":"keyword.hard.kotlin"},"2":{"patterns":[{"include":"#type-parameter"}]}},"match":"\\\\b(va[lr])\\\\b\\\\s*(?<GROUP><([^<>]|\\\\g<GROUP>)+>)?"}},"scopeName":"source.kotlin","aliases":["kt","kts"]}`)),n=[e];export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as a}from"./chunk-9ft87v6s.js";import"./chunk-0teh8cbt.js";import"./chunk-we3jwpsb.js";import"./chunk-qrr2ytkg.js";import"./chunk-9nb6v3q0.js";import"./chunk-2zqq58q6.js";import"./chunk-92pjraxh.js";import"./chunk-2215g4qb.js";import"./chunk-hsq3vxna.js";import"./chunk-bnrv5f66.js";import"./chunk-na5z94zg.js";import"./chunk-tjj6zd94.js";import"./chunk-er06b5kx.js";import"./chunk-7cenjy4r.js";import"./chunk-9h0v5e0k.js";import"./chunk-zt78xjtr.js";import"./chunk-9phx46cq.js";import"./chunk-d9hpz80s.js";import"./chunk-zv9ac3c0.js";import"./chunk-
|
|
1
|
+
import{l as a}from"./chunk-9ft87v6s.js";import"./chunk-0teh8cbt.js";import"./chunk-we3jwpsb.js";import"./chunk-qrr2ytkg.js";import"./chunk-9nb6v3q0.js";import"./chunk-2zqq58q6.js";import"./chunk-92pjraxh.js";import"./chunk-2215g4qb.js";import"./chunk-hsq3vxna.js";import"./chunk-bnrv5f66.js";import"./chunk-na5z94zg.js";import"./chunk-tjj6zd94.js";import"./chunk-er06b5kx.js";import"./chunk-7cenjy4r.js";import"./chunk-9h0v5e0k.js";import"./chunk-zt78xjtr.js";import"./chunk-9phx46cq.js";import"./chunk-d9hpz80s.js";import"./chunk-zv9ac3c0.js";import"./chunk-feptb1bb.js";export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-
|
|
1
|
+
import"./chunk-feptb1bb.js";var e=Object.freeze(JSON.parse('{"displayName":"LLVM IR","name":"llvm","patterns":[{"match":"\\\\b(?:void\\\\b|half\\\\b|bfloat\\\\b|float\\\\b|double\\\\b|x86_fp80\\\\b|fp128\\\\b|ppc_fp128\\\\b|label\\\\b|metadata\\\\b|x86_mmx\\\\b|x86_amx\\\\b|type\\\\b|label\\\\b|opaque\\\\b|token\\\\b|i\\\\d+\\\\**)","name":"storage.type.llvm"},{"captures":{"1":{"name":"storage.type.llvm"}},"match":"!([A-Za-z]+)\\\\s*\\\\("},{"match":"(?:(?<=\\\\s|^)#dbg_(assign|declare|label|value)|\\\\badd|\\\\baddrspacecast|\\\\balloca|\\\\band|\\\\barcp|\\\\bashr|\\\\batomicrmw|\\\\bbitcast|\\\\bbr|\\\\bcatchpad|\\\\bcatchswitch|\\\\bcatchret|\\\\bcall|\\\\bcallbr|\\\\bcleanuppad|\\\\bcleanupret|\\\\bcmpxchg|\\\\beq|\\\\bexact|\\\\bextractelement|\\\\bextractvalue|\\\\bfadd|\\\\bfast|\\\\bfcmp|\\\\bfdiv|\\\\bfence|\\\\bfmul|\\\\bfpext|\\\\bfptosi|\\\\bfptoui|\\\\bfptrunc|\\\\bfree|\\\\bfrem|\\\\bfreeze|\\\\bfsub|\\\\bfneg|\\\\bgetelementptr|\\\\bicmp|\\\\binbounds|\\\\bindirectbr|\\\\binsertelement|\\\\binsertvalue|\\\\binttoptr|\\\\binvoke|\\\\blandingpad|\\\\bload|\\\\blshr|\\\\bmalloc|\\\\bmax|\\\\bmin|\\\\bmul|\\\\bnand|\\\\bne|\\\\bninf|\\\\bnnan|\\\\bnsw|\\\\bnsz|\\\\bnuw|\\\\boeq|\\\\boge|\\\\bogt|\\\\bole|\\\\bolt|\\\\bone|\\\\bord??|\\\\bphi|\\\\bptrtoint|\\\\bresume|\\\\bret|\\\\bsdiv|\\\\bselect|\\\\bsext|\\\\bsge|\\\\bsgt|\\\\bshl|\\\\bshufflevector|\\\\bsitofp|\\\\bsle|\\\\bslt|\\\\bsrem|\\\\bstore|\\\\bsub|\\\\bswitch|\\\\btrunc|\\\\budiv|\\\\bueq|\\\\buge|\\\\bugt|\\\\buitofp|\\\\bule|\\\\bult|\\\\bumax|\\\\bumin|\\\\bune|\\\\buno|\\\\bunreachable|\\\\bunwind|\\\\burem|\\\\bva_arg|\\\\bxchg|\\\\bxor|\\\\bzext)\\\\b","name":"keyword.instruction.llvm"},{"match":"\\\\b(?:acq_rel|acquire|addrspace|alias|align|alignstack|allocsize|alwaysinline|appending|argmemonly|arm_aapcs_vfpcc|arm_aapcscc|arm_apcscc|asm|atomic|available_externally|blockaddress|builtin|byref|byval|c|caller|catch|ccc??|cleanup|cold|coldcc|comdat|common|constant|convergent|datalayout|declare|default|define|deplibs|dereferenceable|dereferenceable_or_null|distinct|dllexport|dllimport|dso_local|dso_preemptable|except|extern_weak|external|externally_initialized|fastcc|filter|from|gc|global|hhvm_ccc|hhvmcc|hidden|hot|immarg|inaccessiblemem_or_argmemonly|inaccessiblememonly|inalloc|initialexec|inlinehint|inreg|intel_ocl_bicc|inteldialect|internal|jumptable|linkonce|linkonce_odr|local_unnamed_addr|localdynamic|localexec|minsize|module|monotonic|msp430_intrcc|mustprogress|musttail|naked|nest|noalias|nobuiltin|nocallback|nocapture|nocf_check|noduplicate|nofree|noimplicitfloat|noinline|nomerge|nonlazybind|nonnull|noprofile|norecurse|noredzone|noreturn|nosync|noundef|nounwind|nosanitize_bounds|nosanitize_coverage|null_pointer_is_valid|optforfuzzing|optnone|optsize|personality|preallocated|private|protected|ptx_device|ptx_kernel|readnone|readonly|release|returned|returns_twice|safestack|sanitize_address|sanitize_alloc_token|sanitize_hwaddress|sanitize_memory|sanitize_memtag|sanitize_thread|section|seq_cst|shadowcallstack|sideeffect|signext|source_filename|speculatable|speculative_load_hardening|spir_func|spir_kernel|sret|ssp|sspreq|sspstrong|strictfp|swiftcc|swifterror|swiftself|syncscope|tail|tailcc|target|thread_local|to|triple|unnamed_addr|unordered|uselistorder|uselistorder_bb|uwtable|volatile|weak|weak_odr|willreturn|win64cc|within|writeonly|x86_64_sysvcc|x86_fastcallcc|x86_stdcallcc|x86_thiscallcc|zeroext)\\\\b","name":"storage.modifier.llvm"},{"match":"@[-$.A-Z_a-z][-$.0-9A-Z_a-z]*","name":"entity.name.function.llvm"},{"match":"[!%@]\\\\d+\\\\b","name":"variable.llvm"},{"match":"%[-$.A-Z_a-z][-$.0-9A-Z_a-z]*","name":"variable.llvm"},{"captures":{"1":{"name":"variable.llvm"}},"match":"(![-$.A-Z_a-z][-$.0-9A-Z_a-z]*)\\\\s*$"},{"captures":{"1":{"name":"variable.llvm"}},"match":"(![-$.A-Z_a-z][-$.0-9A-Z_a-z]*)\\\\s*[!=]"},{"begin":"\\"","end":"\\"","name":"string.quoted.double.llvm","patterns":[{"match":"\\\\.","name":"constant.character.escape.untitled"}]},{"match":"[-$.A-Z_a-z][-$.0-9A-Z_a-z]*:","name":"entity.name.label.llvm"},{"match":"-?\\\\b\\\\d+\\\\.\\\\d*(e[-+]\\\\d+)?\\\\b","name":"constant.numeric.float"},{"match":"\\\\b0x\\\\h+\\\\b","name":"constant.numeric.float"},{"match":"-?\\\\b\\\\d+\\\\b","name":"constant.numeric.integer"},{"match":"\\\\b(?:true|false|null|zeroinitializer|undef|poison|null|none)\\\\b","name":"constant.language"},{"match":"\\\\bD(?:W_TAG_[_a-z]+|W_ATE_[A-Z_a-z]+|W_OP_[0-9A-Z_a-z]+|W_LANG_[0-9A-Z_a-z]+|W_VIRTUALITY_[_a-z]+|IFlag[A-Za-z]+)\\\\b","name":"constant.other"},{"match":";\\\\s*PR\\\\d*\\\\s*$","name":"string.regexp"},{"match":";\\\\s*REQUIRES:.*$","name":"string.regexp"},{"match":";\\\\s*RUN:.*$","name":"string.regexp"},{"match":";\\\\s*ALLOW_RETRIES:.*$","name":"string.regexp"},{"match":";\\\\s*CHECK:.*$","name":"string.regexp"},{"match":";\\\\s*CHECK-(NEXT|NOT|DAG|SAME|LABEL):.*$","name":"string.regexp"},{"match":";\\\\s*XFAIL:.*$","name":"string.regexp"},{"match":";.*$","name":"comment.line.llvm"}],"scopeName":"source.llvm"}')),a=[e];export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as a}from"./chunk-6180vb4q.js";import"./chunk-feptb1bb.js";export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./chunk-g3p0vcay.js";import"./chunk-kn8f91na.js";var n=Object.freeze(JSON.parse(`{"displayName":"Erlang","fileTypes":["erl","escript","hrl","xrl","yrl"],"name":"erlang","patterns":[{"include":"#module-directive"},{"include":"#import-export-directive"},{"include":"#behaviour-directive"},{"include":"#record-directive"},{"include":"#define-directive"},{"include":"#macro-directive"},{"include":"#doc-directive"},{"include":"#directive"},{"include":"#function"},{"include":"#everything-else"}],"repository":{"atom":{"patterns":[{"begin":"(')","beginCaptures":{"1":{"name":"punctuation.definition.symbol.begin.erlang"}},"end":"(')","endCaptures":{"1":{"name":"punctuation.definition.symbol.end.erlang"}},"name":"constant.other.symbol.quoted.single.erlang","patterns":[{"captures":{"1":{"name":"punctuation.definition.escape.erlang"},"3":{"name":"punctuation.definition.escape.erlang"}},"match":"(\\\\\\\\)([\\"'\\\\\\\\bdefnrstv]|(\\\\^)[@-_a-z]|[0-7]{1,3}|x[A-Fa-f\\\\d]{2})","name":"constant.other.symbol.escape.erlang"},{"match":"\\\\\\\\\\\\^?.?","name":"invalid.illegal.atom.erlang"}]},{"match":"[a-z][@-Z_a-z\\\\d]*+","name":"constant.other.symbol.unquoted.erlang"}]},"behaviour-directive":{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.behaviour.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.type.class.behaviour.definition.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(behaviour)\\\\s*+(\\\\()\\\\s*+([a-z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.behaviour.erlang"},"binary":{"begin":"(<<)","beginCaptures":{"1":{"name":"punctuation.definition.binary.begin.erlang"}},"end":"(>>)","endCaptures":{"1":{"name":"punctuation.definition.binary.end.erlang"}},"name":"meta.structure.binary.erlang","patterns":[{"captures":{"1":{"name":"punctuation.separator.binary.erlang"},"2":{"name":"punctuation.separator.value-size.erlang"}},"match":"(,)|(:)"},{"include":"#internal-type-specifiers"},{"include":"#everything-else"}]},"character":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.character.erlang"},"2":{"name":"constant.character.escape.erlang"},"3":{"name":"punctuation.definition.escape.erlang"},"5":{"name":"punctuation.definition.escape.erlang"}},"match":"(\\\\$)((\\\\\\\\)([\\"'\\\\\\\\bdefnrstv]|(\\\\^)[@-_a-z]|[0-7]{1,3}|x[A-Fa-f\\\\d]{2}))","name":"constant.character.erlang"},{"match":"\\\\$\\\\\\\\\\\\^?.?","name":"invalid.illegal.character.erlang"},{"captures":{"1":{"name":"punctuation.definition.character.erlang"}},"match":"(\\\\$)[ \\\\S]","name":"constant.character.erlang"},{"match":"\\\\$.?","name":"invalid.illegal.character.erlang"}]},"comment":{"begin":"(^[\\\\t ]+)?(?=%)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.erlang"}},"end":"(?!\\\\G)","patterns":[{"begin":"%","beginCaptures":{"0":{"name":"punctuation.definition.comment.erlang"}},"end":"\\\\n","name":"comment.line.percentage.erlang"}]},"define-directive":{"patterns":[{"begin":"^\\\\s*+(-)\\\\s*+(define)\\\\s*+(\\\\()\\\\s*+([@-Z_a-z\\\\d]++)\\\\s*+","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.define.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.definition.erlang"}},"end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.define.erlang","patterns":[{"include":"#everything-else"}]},{"begin":"(?=^\\\\s*+-\\\\s*+define\\\\s*+\\\\(\\\\s*+[@-Z_a-z\\\\d]++\\\\s*+\\\\()","end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.define.erlang","patterns":[{"begin":"^\\\\s*+(-)\\\\s*+(define)\\\\s*+(\\\\()\\\\s*+([@-Z_a-z\\\\d]++)\\\\s*+(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.define.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.definition.erlang"},"5":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\))\\\\s*(,)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.separator.parameters.erlang"}},"patterns":[{"match":",","name":"punctuation.separator.parameters.erlang"},{"include":"#everything-else"}]},{"match":"\\\\|\\\\||[,.:;|]|->","name":"punctuation.separator.define.erlang"},{"include":"#everything-else"}]}]},"directive":{"patterns":[{"begin":"^\\\\s*+(-)\\\\s*+([a-z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\(?)","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\)?)\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.erlang","patterns":[{"include":"#everything-else"}]},{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.erlang"},"3":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+([a-z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\.)","name":"meta.directive.erlang"}]},"doc-directive":{"begin":"^\\\\s*+(-)\\\\s*+((module)?doc)\\\\s*(\\\\(\\\\s*)?(~[BSbs]?)?((\\"{3,})\\\\s*)(\\\\S.*)?$","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.doc.erlang"},"4":{"name":"punctuation.definition.parameters.begin.erlang"},"5":{"name":"storage.type.string.erlang"},"6":{"name":"comment.block.documentation.erlang"},"7":{"name":"punctuation.definition.string.begin.erlang"},"8":{"name":"invalid.illegal.string.erlang"}},"contentName":"meta.embedded.block.markdown","end":"^(\\\\s*(\\\\7))\\\\s*(\\\\)\\\\s*)?(\\\\.)","endCaptures":{"1":{"name":"comment.block.documentation.erlang"},"2":{"name":"punctuation.definition.string.end.erlang"},"3":{"name":"punctuation.section.directive.end.Erlang"}},"name":"meta.directive.doc.erlang","patterns":[{"include":"text.html.markdown"}]},"docstring":{"begin":"(?<!\\")((\\"{3,})\\\\s*)(\\\\S.*)?$","beginCaptures":{"1":{"name":"meta.string.quoted.triple.begin.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"},"3":{"name":"invalid.illegal.string.erlang"}},"end":"^(\\\\s*(\\\\2))(?!\\")","endCaptures":{"1":{"name":"meta.string.quoted.triple.end.erlang"},"2":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.triple.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"everything-else":{"patterns":[{"include":"#comment"},{"include":"#record-usage"},{"include":"#macro-usage"},{"include":"#expression"},{"include":"#keyword"},{"include":"#textual-operator"},{"include":"#language-constant"},{"include":"#function-call"},{"include":"#tuple"},{"include":"#list"},{"include":"#binary"},{"include":"#parenthesized-expression"},{"include":"#character"},{"include":"#number"},{"include":"#atom"},{"include":"#sigil-docstring"},{"include":"#sigil-docstring-verbatim"},{"include":"#sigil-string"},{"include":"#docstring"},{"include":"#string"},{"include":"#symbolic-operator"},{"include":"#variable"}]},"expression":{"patterns":[{"begin":"\\\\b(if)\\\\b","beginCaptures":{"1":{"name":"keyword.control.if.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.if.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]},{"begin":"\\\\b(case)\\\\b","beginCaptures":{"1":{"name":"keyword.control.case.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.case.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]},{"begin":"\\\\b(receive)\\\\b","beginCaptures":{"1":{"name":"keyword.control.receive.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.receive.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]},{"captures":{"1":{"name":"keyword.control.fun.erlang"},"4":{"name":"entity.name.type.class.module.erlang"},"5":{"name":"variable.other.erlang"},"6":{"name":"punctuation.separator.module-function.erlang"},"8":{"name":"entity.name.function.erlang"},"9":{"name":"variable.other.erlang"},"10":{"name":"punctuation.separator.function-arity.erlang"}},"match":"\\\\b(fun)\\\\s+((([a-z][@-Z_a-z\\\\d]*+)|(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+))\\\\s*+(:)\\\\s*+)?(([a-z][@-Z_a-z\\\\d]*+|'[^']*+')|(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+))\\\\s*(/)","name":"meta.expression.fun.implicit.erlang"},{"begin":"\\\\b(fun)\\\\s+(([a-z][@-Z_a-z\\\\d]*+)|(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+))\\\\s*+(:)","beginCaptures":{"1":{"name":"keyword.control.fun.erlang"},"3":{"name":"entity.name.type.class.module.erlang"},"4":{"name":"variable.other.erlang"},"5":{"name":"punctuation.separator.module-function.erlang"}},"end":"(/)","endCaptures":{"1":{"name":"punctuation.separator.function-arity.erlang"}},"name":"meta.expression.fun.implicit.erlang","patterns":[{"include":"#everything-else"}]},{"begin":"\\\\b(fun)\\\\s+(?!\\\\()","beginCaptures":{"1":{"name":"keyword.control.fun.erlang"}},"end":"(/)","endCaptures":{"1":{"name":"punctuation.separator.function-arity.erlang"}},"name":"meta.expression.fun.implicit.erlang","patterns":[{"include":"#everything-else"}]},{"begin":"\\\\b(fun)\\\\s*+(\\\\()(?=(\\\\s*+\\\\()|(\\\\)))","beginCaptures":{"1":{"name":"entity.name.function.erlang"},"2":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"}},"patterns":[{"include":"#everything-else"}]},{"begin":"\\\\b(fun)\\\\b","beginCaptures":{"1":{"name":"keyword.control.fun.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.fun.erlang","patterns":[{"begin":"(?=\\\\()","end":"(;)|(?=\\\\bend\\\\b)","endCaptures":{"1":{"name":"punctuation.separator.clauses.erlang"}},"patterns":[{"include":"#internal-function-parts"}]},{"include":"#everything-else"}]},{"begin":"\\\\b(try)\\\\b","beginCaptures":{"1":{"name":"keyword.control.try.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.try.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]},{"begin":"\\\\b(begin)\\\\b","beginCaptures":{"1":{"name":"keyword.control.begin.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.begin.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]},{"begin":"\\\\b(maybe)\\\\b","beginCaptures":{"1":{"name":"keyword.control.maybe.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.maybe.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]}]},"function":{"begin":"^\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(?=\\\\()","beginCaptures":{"1":{"name":"entity.name.function.definition.erlang"}},"end":"(\\\\.)","endCaptures":{"1":{"name":"punctuation.terminator.function.erlang"}},"name":"meta.function.erlang","patterns":[{"captures":{"1":{"name":"entity.name.function.erlang"}},"match":"^\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(?=\\\\()"},{"begin":"(?=\\\\()","end":"(;)|(?=\\\\.)","endCaptures":{"1":{"name":"punctuation.separator.clauses.erlang"}},"patterns":[{"include":"#parenthesized-expression"},{"include":"#internal-function-parts"}]},{"include":"#everything-else"}]},"function-call":{"begin":"(?=([a-z][@-Z_a-z\\\\d]*+|'[^']*+'|_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\(|:\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+'|_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+)\\\\s*+\\\\())","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"}},"name":"meta.function-call.erlang","patterns":[{"begin":"((erlang)\\\\s*+(:)\\\\s*+)?(is_atom|is_binary|is_constant|is_float|is_function|is_integer|is_list|is_number|is_pid|is_port|is_reference|is_tuple|is_record|abs|element|hd|length|node|round|self|size|tl|trunc)\\\\s*+(\\\\()","beginCaptures":{"2":{"name":"entity.name.type.class.module.erlang"},"3":{"name":"punctuation.separator.module-function.erlang"},"4":{"name":"entity.name.function.guard.erlang"},"5":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(?=\\\\))","patterns":[{"match":",","name":"punctuation.separator.parameters.erlang"},{"include":"#everything-else"}]},{"begin":"((([a-z][@-Z_a-z\\\\d]*+|'[^']*+')|(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+))\\\\s*+(:)\\\\s*+)?(([a-z][@-Z_a-z\\\\d]*+|'[^']*+')|(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+))\\\\s*+(\\\\()","beginCaptures":{"3":{"name":"entity.name.type.class.module.erlang"},"4":{"name":"variable.other.erlang"},"5":{"name":"punctuation.separator.module-function.erlang"},"7":{"name":"entity.name.function.erlang"},"8":{"name":"variable.other.erlang"},"9":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(?=\\\\))","patterns":[{"match":",","name":"punctuation.separator.parameters.erlang"},{"include":"#everything-else"}]}]},"import-export-directive":{"patterns":[{"begin":"^\\\\s*+(-)\\\\s*+(import)\\\\s*+(\\\\()\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(,)","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.import.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.type.class.module.erlang"},"5":{"name":"punctuation.separator.parameters.erlang"}},"end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.import.erlang","patterns":[{"include":"#internal-function-list"}]},{"begin":"^\\\\s*+(-)\\\\s*+(export)\\\\s*+(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.export.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.export.erlang","patterns":[{"include":"#internal-function-list"}]}]},"internal-expression-punctuation":{"captures":{"1":{"name":"punctuation.separator.clause-head-body.erlang"},"2":{"name":"punctuation.separator.clauses.erlang"},"3":{"name":"punctuation.separator.expressions.erlang"}},"match":"(->)|(;)|(,)"},"internal-function-list":{"begin":"(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.list.begin.erlang"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.list.end.erlang"}},"name":"meta.structure.list.function.erlang","patterns":[{"begin":"([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(/)","beginCaptures":{"1":{"name":"entity.name.function.erlang"},"2":{"name":"punctuation.separator.function-arity.erlang"}},"end":"(,)|(?=])","endCaptures":{"1":{"name":"punctuation.separator.list.erlang"}},"patterns":[{"include":"#everything-else"}]},{"include":"#everything-else"}]},"internal-function-parts":{"patterns":[{"begin":"(?=\\\\()","end":"(->)","endCaptures":{"1":{"name":"punctuation.separator.clause-head-body.erlang"}},"patterns":[{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"}},"patterns":[{"match":",","name":"punctuation.separator.parameters.erlang"},{"include":"#everything-else"}]},{"match":"[,;]","name":"punctuation.separator.guards.erlang"},{"include":"#everything-else"}]},{"match":",","name":"punctuation.separator.expressions.erlang"},{"include":"#everything-else"}]},"internal-record-body":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.class.record.begin.erlang"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.class.record.end.erlang"}},"name":"meta.structure.record.erlang","patterns":[{"begin":"(([a-z][@-Z_a-z\\\\d]*+|'[^']*+')|(_))","beginCaptures":{"2":{"name":"variable.other.field.erlang"},"3":{"name":"variable.language.omitted.field.erlang"}},"end":"(,)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.class.record.erlang"}},"patterns":[{"include":"#everything-else"}]},{"include":"#everything-else"}]},"internal-string-body":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.escape.erlang"},"3":{"name":"punctuation.definition.escape.erlang"}},"match":"(\\\\\\\\)([\\"'\\\\\\\\bdefnrstv]|(\\\\^)[@-_a-z]|[0-7]{1,3}|x[A-Fa-f\\\\d]{2})","name":"constant.character.escape.erlang"},{"match":"\\\\\\\\\\\\^?.?","name":"invalid.illegal.string.erlang"},{"include":"#internal-string-body-verbatim"}]},"internal-string-body-verbatim":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.placeholder.erlang"},"6":{"name":"punctuation.separator.placeholder-parts.erlang"},"10":{"name":"punctuation.separator.placeholder-parts.erlang"}},"match":"(~)((-)?\\\\d++|(\\\\*))?((\\\\.)(\\\\d++|(\\\\*))?((\\\\.)((\\\\*)|.))?)?[Kklt]*[#+BPWXbcefginpswx~]","name":"constant.character.format.placeholder.other.erlang"},{"captures":{"1":{"name":"punctuation.definition.placeholder.erlang"}},"match":"(~)(\\\\*)?(\\\\d++)?(t)?[-#acdflsu~]","name":"constant.character.format.placeholder.other.erlang"},{"match":"~[^\\"]?","name":"invalid.illegal.string.erlang"}]},"internal-type-specifiers":{"begin":"(/)","beginCaptures":{"1":{"name":"punctuation.separator.value-type.erlang"}},"end":"(?=[,:]|>>)","patterns":[{"captures":{"1":{"name":"storage.type.erlang"},"2":{"name":"storage.modifier.signedness.erlang"},"3":{"name":"storage.modifier.endianness.erlang"},"4":{"name":"storage.modifier.unit.erlang"},"5":{"name":"punctuation.separator.unit-specifiers.erlang"},"6":{"name":"constant.numeric.integer.decimal.erlang"},"7":{"name":"punctuation.separator.type-specifiers.erlang"}},"match":"(integer|float|binary|bytes|bitstring|bits|utf8|utf16|utf32)|((?:|un)signed)|(big|little|native)|(unit)(:)(\\\\d++)|(-)"}]},"keyword":{"match":"\\\\b(after|begin|case|catch|cond|end|fun|if|let|of|try|receive|when|maybe|else)\\\\b","name":"keyword.control.erlang"},"language-constant":{"match":"\\\\b(false|true|undefined)\\\\b","name":"constant.language"},"list":{"begin":"(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.list.begin.erlang"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.list.end.erlang"}},"name":"meta.structure.list.erlang","patterns":[{"match":"\\\\|\\\\|??|,","name":"punctuation.separator.list.erlang"},{"include":"#everything-else"}]},"macro-directive":{"patterns":[{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.ifdef.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(ifdef)\\\\s*+(\\\\()\\\\s*+([@-z\\\\d]++)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.ifdef.erlang"},{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.ifndef.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(ifndef)\\\\s*+(\\\\()\\\\s*+([@-z\\\\d]++)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.ifndef.erlang"},{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.undef.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(undef)\\\\s*+(\\\\()\\\\s*+([@-z\\\\d]++)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.undef.erlang"}]},"macro-usage":{"captures":{"1":{"name":"keyword.operator.macro.erlang"},"2":{"name":"entity.name.function.macro.erlang"}},"match":"(\\\\?\\\\??)\\\\s*+([@-Z_a-z\\\\d]++)","name":"meta.macro-usage.erlang"},"module-directive":{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.module.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.type.class.module.definition.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(module)\\\\s*+(\\\\()\\\\s*+([a-z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.module.erlang"},"number":{"begin":"(?=\\\\d)","end":"(?!\\\\d)","patterns":[{"captures":{"1":{"name":"punctuation.separator.integer-float.erlang"},"2":{"name":"punctuation.separator.float-exponent.erlang"}},"match":"\\\\d++(\\\\.)\\\\d++([Ee][-+]?\\\\d++)?","name":"constant.numeric.float.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"2(#)([01]++_)*[01]++","name":"constant.numeric.integer.binary.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"3(#)([012]++_)*[012]++","name":"constant.numeric.integer.base-3.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"4(#)([0-3]++_)*[0-3]++","name":"constant.numeric.integer.base-4.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"5(#)([0-4]++_)*[0-4]++","name":"constant.numeric.integer.base-5.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"6(#)([0-5]++_)*[0-5]++","name":"constant.numeric.integer.base-6.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"7(#)([0-6]++_)*[0-6]++","name":"constant.numeric.integer.base-7.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"8(#)([0-7]++_)*[0-7]++","name":"constant.numeric.integer.octal.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"9(#)([0-8]++_)*[0-8]++","name":"constant.numeric.integer.base-9.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"10(#)(\\\\d++_)*\\\\d++","name":"constant.numeric.integer.decimal.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"11(#)([Aa\\\\d]++_)*[Aa\\\\d]++","name":"constant.numeric.integer.base-11.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"12(#)([ABab\\\\d]++_)*[ABab\\\\d]++","name":"constant.numeric.integer.base-12.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"13(#)([ABCabc\\\\d]++_)*[ABCabc\\\\d]++","name":"constant.numeric.integer.base-13.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"14(#)([A-Da-d\\\\d]++_)*[A-Da-d\\\\d]++","name":"constant.numeric.integer.base-14.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"15(#)([A-Ea-e\\\\d]++_)*[A-Ea-e\\\\d]++","name":"constant.numeric.integer.base-15.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"16(#)([A-Fa-f\\\\d]++_)*[A-Fa-f\\\\d]++","name":"constant.numeric.integer.hexadecimal.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"17(#)([A-Ga-g\\\\d]++_)*[A-Ga-g\\\\d]++","name":"constant.numeric.integer.base-17.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"18(#)([A-Ha-h\\\\d]++_)*[A-Ha-h\\\\d]++","name":"constant.numeric.integer.base-18.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"19(#)([A-Ia-i\\\\d]++_)*[A-Ia-i\\\\d]++","name":"constant.numeric.integer.base-19.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"20(#)([A-Ja-j\\\\d]++_)*[A-Ja-j\\\\d]++","name":"constant.numeric.integer.base-20.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"21(#)([A-Ka-k\\\\d]++_)*[A-Ka-k\\\\d]++","name":"constant.numeric.integer.base-21.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"22(#)([A-La-l\\\\d]++_)*[A-La-l\\\\d]++","name":"constant.numeric.integer.base-22.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"23(#)([A-Ma-m\\\\d]++_)*[A-Ma-m\\\\d]++","name":"constant.numeric.integer.base-23.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"24(#)([A-Na-n\\\\d]++_)*[A-Na-n\\\\d]++","name":"constant.numeric.integer.base-24.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"25(#)([A-Oa-o\\\\d]++_)*[A-Oa-o\\\\d]++","name":"constant.numeric.integer.base-25.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"26(#)([A-Pa-p\\\\d]++_)*[A-Pa-p\\\\d]++","name":"constant.numeric.integer.base-26.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"27(#)([A-Qa-q\\\\d]++_)*[A-Qa-q\\\\d]++","name":"constant.numeric.integer.base-27.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"28(#)([A-Ra-r\\\\d]++_)*[A-Ra-r\\\\d]++","name":"constant.numeric.integer.base-28.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"29(#)([A-Sa-s\\\\d]++_)*[A-Sa-s\\\\d]++","name":"constant.numeric.integer.base-29.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"30(#)([A-Ta-t\\\\d]++_)*[A-Ta-t\\\\d]++","name":"constant.numeric.integer.base-30.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"31(#)([A-Ua-u\\\\d]++_)*[A-Ua-u\\\\d]++","name":"constant.numeric.integer.base-31.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"32(#)([A-Va-v\\\\d]++_)*[A-Va-v\\\\d]++","name":"constant.numeric.integer.base-32.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"33(#)([A-Wa-w\\\\d]++_)*[A-Wa-w\\\\d]++","name":"constant.numeric.integer.base-33.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"34(#)([A-Xa-x\\\\d]++_)*[A-Xa-x\\\\d]++","name":"constant.numeric.integer.base-34.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"35(#)([A-Ya-y\\\\d]++_)*[A-Ya-y\\\\d]++","name":"constant.numeric.integer.base-35.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"36(#)([A-Za-z\\\\d]++_)*[A-Za-z\\\\d]++","name":"constant.numeric.integer.base-36.erlang"},{"match":"\\\\d++#([A-Za-z\\\\d]++_)*[A-Za-z\\\\d]++","name":"invalid.illegal.integer.erlang"},{"match":"(\\\\d++_)*\\\\d++","name":"constant.numeric.integer.decimal.erlang"}]},"parenthesized-expression":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.expression.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.expression.end.erlang"}},"name":"meta.expression.parenthesized","patterns":[{"include":"#everything-else"}]},"record-directive":{"begin":"^\\\\s*+(-)\\\\s*+(record)\\\\s*+(\\\\()\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(,)","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.import.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.type.class.record.definition.erlang"},"5":{"name":"punctuation.separator.parameters.erlang"}},"end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.record.erlang","patterns":[{"include":"#internal-record-body"},{"include":"#comment"}]},"record-usage":{"patterns":[{"captures":{"1":{"name":"keyword.operator.record.erlang"},"2":{"name":"entity.name.type.class.record.erlang"},"3":{"name":"punctuation.separator.record-field.erlang"},"4":{"name":"variable.other.field.erlang"}},"match":"(#)\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(\\\\.)\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')","name":"meta.record-usage.erlang"},{"begin":"(#)\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')","beginCaptures":{"1":{"name":"keyword.operator.record.erlang"},"2":{"name":"entity.name.type.class.record.erlang"}},"end":"(?<=})","name":"meta.record-usage.erlang","patterns":[{"include":"#internal-record-body"}]}]},"sigil-docstring":{"begin":"(~[bs])((\\"{3,})\\\\s*)(\\\\S.*)?$","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"meta.string.quoted.triple.begin.erlang"},"3":{"name":"punctuation.definition.string.begin.erlang"},"4":{"name":"invalid.illegal.string.erlang"}},"end":"^(\\\\s*(\\\\3))(?!\\")","endCaptures":{"1":{"name":"meta.string.quoted.triple.end.erlang"},"2":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.tripple.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-docstring-verbatim":{"begin":"(~[BS]?)((\\"{3,})\\\\s*)(\\\\S.*)?$","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"meta.string.quoted.triple.begin.erlang"},"3":{"name":"punctuation.definition.string.begin.erlang"},"4":{"name":"invalid.illegal.string.erlang"}},"end":"^(\\\\s*(\\\\3))(?!\\")","endCaptures":{"1":{"name":"meta.string.quoted.triple.end.erlang"},"2":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.tripple.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string":{"patterns":[{"include":"#sigil-string-parenthesis"},{"include":"#sigil-string-parenthesis-verbatim"},{"include":"#sigil-string-curly-brackets"},{"include":"#sigil-string-curly-brackets-verbatim"},{"include":"#sigil-string-square-brackets"},{"include":"#sigil-string-square-brackets-verbatim"},{"include":"#sigil-string-less-greater"},{"include":"#sigil-string-less-greater-verbatim"},{"include":"#sigil-string-single-character"},{"include":"#sigil-string-single-character-verbatim"},{"include":"#sigil-string-single-quote"},{"include":"#sigil-string-single-quote-verbatim"},{"include":"#sigil-string-double-quote"},{"include":"#sigil-string-double-quote-verbatim"}]},"sigil-string-curly-brackets":{"begin":"(~[bs]?)(\\\\{)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.curly-brackets.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-curly-brackets-verbatim":{"begin":"(~[BS])(\\\\{)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.curly-brackets.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-double-quote":{"begin":"(~[bs]?)(\\")","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.double.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-double-quote-verbatim":{"begin":"(~[BS])(\\")","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.double.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-less-greater":{"begin":"(~[bs]?)(<)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.less-greater.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-less-greater-verbatim":{"begin":"(~[BS])(<)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.less-greater.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-parenthesis":{"begin":"(~[bs]?)(\\\\()","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.parenthesis.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-parenthesis-verbatim":{"begin":"(~[BS])(\\\\()","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.parenthesis.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-single-character":{"begin":"(~[bs]?)([#/\`|])","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.other.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-single-character-verbatim":{"begin":"(~[BS])([#/\`|])","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.other.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-single-quote":{"begin":"(~[bs]?)(')","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.single.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-single-quote-verbatim":{"begin":"(~[BS])(')","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.single.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-square-brackets":{"begin":"(~[bs]?)(\\\\[)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.square-brackets.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-square-brackets-verbatim":{"begin":"(~[BS])(\\\\[)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.square-brackets.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"string":{"begin":"(\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.double.erlang","patterns":[{"include":"#internal-string-body"}]},"symbolic-operator":{"match":"\\\\+\\\\+?|--|[-*]|/=?|=/=|=:=|==|=<?|<-?|>=|[!>]|::|\\\\?=","name":"keyword.operator.symbolic.erlang"},"textual-operator":{"match":"\\\\b(andalso|band|and|bxor|xor|bor|orelse|or|bnot|not|bsl|bsr|div|rem)\\\\b","name":"keyword.operator.textual.erlang"},"tuple":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.tuple.begin.erlang"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.tuple.end.erlang"}},"name":"meta.structure.tuple.erlang","patterns":[{"match":",","name":"punctuation.separator.tuple.erlang"},{"include":"#everything-else"}]},"variable":{"captures":{"1":{"name":"variable.other.erlang"},"2":{"name":"variable.language.omitted.erlang"}},"match":"(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+)|(_)"}},"scopeName":"source.erlang","embeddedLangs":["markdown"],"aliases":["erl"]}`)),t=[...e,n];export{t as default};
|
|
1
|
+
import{r as e}from"./chunk-g3p0vcay.js";import"./chunk-feptb1bb.js";var n=Object.freeze(JSON.parse(`{"displayName":"Erlang","fileTypes":["erl","escript","hrl","xrl","yrl"],"name":"erlang","patterns":[{"include":"#module-directive"},{"include":"#import-export-directive"},{"include":"#behaviour-directive"},{"include":"#record-directive"},{"include":"#define-directive"},{"include":"#macro-directive"},{"include":"#doc-directive"},{"include":"#directive"},{"include":"#function"},{"include":"#everything-else"}],"repository":{"atom":{"patterns":[{"begin":"(')","beginCaptures":{"1":{"name":"punctuation.definition.symbol.begin.erlang"}},"end":"(')","endCaptures":{"1":{"name":"punctuation.definition.symbol.end.erlang"}},"name":"constant.other.symbol.quoted.single.erlang","patterns":[{"captures":{"1":{"name":"punctuation.definition.escape.erlang"},"3":{"name":"punctuation.definition.escape.erlang"}},"match":"(\\\\\\\\)([\\"'\\\\\\\\bdefnrstv]|(\\\\^)[@-_a-z]|[0-7]{1,3}|x[A-Fa-f\\\\d]{2})","name":"constant.other.symbol.escape.erlang"},{"match":"\\\\\\\\\\\\^?.?","name":"invalid.illegal.atom.erlang"}]},{"match":"[a-z][@-Z_a-z\\\\d]*+","name":"constant.other.symbol.unquoted.erlang"}]},"behaviour-directive":{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.behaviour.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.type.class.behaviour.definition.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(behaviour)\\\\s*+(\\\\()\\\\s*+([a-z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.behaviour.erlang"},"binary":{"begin":"(<<)","beginCaptures":{"1":{"name":"punctuation.definition.binary.begin.erlang"}},"end":"(>>)","endCaptures":{"1":{"name":"punctuation.definition.binary.end.erlang"}},"name":"meta.structure.binary.erlang","patterns":[{"captures":{"1":{"name":"punctuation.separator.binary.erlang"},"2":{"name":"punctuation.separator.value-size.erlang"}},"match":"(,)|(:)"},{"include":"#internal-type-specifiers"},{"include":"#everything-else"}]},"character":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.character.erlang"},"2":{"name":"constant.character.escape.erlang"},"3":{"name":"punctuation.definition.escape.erlang"},"5":{"name":"punctuation.definition.escape.erlang"}},"match":"(\\\\$)((\\\\\\\\)([\\"'\\\\\\\\bdefnrstv]|(\\\\^)[@-_a-z]|[0-7]{1,3}|x[A-Fa-f\\\\d]{2}))","name":"constant.character.erlang"},{"match":"\\\\$\\\\\\\\\\\\^?.?","name":"invalid.illegal.character.erlang"},{"captures":{"1":{"name":"punctuation.definition.character.erlang"}},"match":"(\\\\$)[ \\\\S]","name":"constant.character.erlang"},{"match":"\\\\$.?","name":"invalid.illegal.character.erlang"}]},"comment":{"begin":"(^[\\\\t ]+)?(?=%)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.erlang"}},"end":"(?!\\\\G)","patterns":[{"begin":"%","beginCaptures":{"0":{"name":"punctuation.definition.comment.erlang"}},"end":"\\\\n","name":"comment.line.percentage.erlang"}]},"define-directive":{"patterns":[{"begin":"^\\\\s*+(-)\\\\s*+(define)\\\\s*+(\\\\()\\\\s*+([@-Z_a-z\\\\d]++)\\\\s*+","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.define.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.definition.erlang"}},"end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.define.erlang","patterns":[{"include":"#everything-else"}]},{"begin":"(?=^\\\\s*+-\\\\s*+define\\\\s*+\\\\(\\\\s*+[@-Z_a-z\\\\d]++\\\\s*+\\\\()","end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.define.erlang","patterns":[{"begin":"^\\\\s*+(-)\\\\s*+(define)\\\\s*+(\\\\()\\\\s*+([@-Z_a-z\\\\d]++)\\\\s*+(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.define.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.definition.erlang"},"5":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\))\\\\s*(,)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.separator.parameters.erlang"}},"patterns":[{"match":",","name":"punctuation.separator.parameters.erlang"},{"include":"#everything-else"}]},{"match":"\\\\|\\\\||[,.:;|]|->","name":"punctuation.separator.define.erlang"},{"include":"#everything-else"}]}]},"directive":{"patterns":[{"begin":"^\\\\s*+(-)\\\\s*+([a-z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\(?)","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\)?)\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.erlang","patterns":[{"include":"#everything-else"}]},{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.erlang"},"3":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+([a-z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\.)","name":"meta.directive.erlang"}]},"doc-directive":{"begin":"^\\\\s*+(-)\\\\s*+((module)?doc)\\\\s*(\\\\(\\\\s*)?(~[BSbs]?)?((\\"{3,})\\\\s*)(\\\\S.*)?$","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.doc.erlang"},"4":{"name":"punctuation.definition.parameters.begin.erlang"},"5":{"name":"storage.type.string.erlang"},"6":{"name":"comment.block.documentation.erlang"},"7":{"name":"punctuation.definition.string.begin.erlang"},"8":{"name":"invalid.illegal.string.erlang"}},"contentName":"meta.embedded.block.markdown","end":"^(\\\\s*(\\\\7))\\\\s*(\\\\)\\\\s*)?(\\\\.)","endCaptures":{"1":{"name":"comment.block.documentation.erlang"},"2":{"name":"punctuation.definition.string.end.erlang"},"3":{"name":"punctuation.section.directive.end.Erlang"}},"name":"meta.directive.doc.erlang","patterns":[{"include":"text.html.markdown"}]},"docstring":{"begin":"(?<!\\")((\\"{3,})\\\\s*)(\\\\S.*)?$","beginCaptures":{"1":{"name":"meta.string.quoted.triple.begin.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"},"3":{"name":"invalid.illegal.string.erlang"}},"end":"^(\\\\s*(\\\\2))(?!\\")","endCaptures":{"1":{"name":"meta.string.quoted.triple.end.erlang"},"2":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.triple.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"everything-else":{"patterns":[{"include":"#comment"},{"include":"#record-usage"},{"include":"#macro-usage"},{"include":"#expression"},{"include":"#keyword"},{"include":"#textual-operator"},{"include":"#language-constant"},{"include":"#function-call"},{"include":"#tuple"},{"include":"#list"},{"include":"#binary"},{"include":"#parenthesized-expression"},{"include":"#character"},{"include":"#number"},{"include":"#atom"},{"include":"#sigil-docstring"},{"include":"#sigil-docstring-verbatim"},{"include":"#sigil-string"},{"include":"#docstring"},{"include":"#string"},{"include":"#symbolic-operator"},{"include":"#variable"}]},"expression":{"patterns":[{"begin":"\\\\b(if)\\\\b","beginCaptures":{"1":{"name":"keyword.control.if.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.if.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]},{"begin":"\\\\b(case)\\\\b","beginCaptures":{"1":{"name":"keyword.control.case.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.case.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]},{"begin":"\\\\b(receive)\\\\b","beginCaptures":{"1":{"name":"keyword.control.receive.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.receive.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]},{"captures":{"1":{"name":"keyword.control.fun.erlang"},"4":{"name":"entity.name.type.class.module.erlang"},"5":{"name":"variable.other.erlang"},"6":{"name":"punctuation.separator.module-function.erlang"},"8":{"name":"entity.name.function.erlang"},"9":{"name":"variable.other.erlang"},"10":{"name":"punctuation.separator.function-arity.erlang"}},"match":"\\\\b(fun)\\\\s+((([a-z][@-Z_a-z\\\\d]*+)|(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+))\\\\s*+(:)\\\\s*+)?(([a-z][@-Z_a-z\\\\d]*+|'[^']*+')|(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+))\\\\s*(/)","name":"meta.expression.fun.implicit.erlang"},{"begin":"\\\\b(fun)\\\\s+(([a-z][@-Z_a-z\\\\d]*+)|(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+))\\\\s*+(:)","beginCaptures":{"1":{"name":"keyword.control.fun.erlang"},"3":{"name":"entity.name.type.class.module.erlang"},"4":{"name":"variable.other.erlang"},"5":{"name":"punctuation.separator.module-function.erlang"}},"end":"(/)","endCaptures":{"1":{"name":"punctuation.separator.function-arity.erlang"}},"name":"meta.expression.fun.implicit.erlang","patterns":[{"include":"#everything-else"}]},{"begin":"\\\\b(fun)\\\\s+(?!\\\\()","beginCaptures":{"1":{"name":"keyword.control.fun.erlang"}},"end":"(/)","endCaptures":{"1":{"name":"punctuation.separator.function-arity.erlang"}},"name":"meta.expression.fun.implicit.erlang","patterns":[{"include":"#everything-else"}]},{"begin":"\\\\b(fun)\\\\s*+(\\\\()(?=(\\\\s*+\\\\()|(\\\\)))","beginCaptures":{"1":{"name":"entity.name.function.erlang"},"2":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"}},"patterns":[{"include":"#everything-else"}]},{"begin":"\\\\b(fun)\\\\b","beginCaptures":{"1":{"name":"keyword.control.fun.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.fun.erlang","patterns":[{"begin":"(?=\\\\()","end":"(;)|(?=\\\\bend\\\\b)","endCaptures":{"1":{"name":"punctuation.separator.clauses.erlang"}},"patterns":[{"include":"#internal-function-parts"}]},{"include":"#everything-else"}]},{"begin":"\\\\b(try)\\\\b","beginCaptures":{"1":{"name":"keyword.control.try.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.try.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]},{"begin":"\\\\b(begin)\\\\b","beginCaptures":{"1":{"name":"keyword.control.begin.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.begin.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]},{"begin":"\\\\b(maybe)\\\\b","beginCaptures":{"1":{"name":"keyword.control.maybe.erlang"}},"end":"\\\\b(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.erlang"}},"name":"meta.expression.maybe.erlang","patterns":[{"include":"#internal-expression-punctuation"},{"include":"#everything-else"}]}]},"function":{"begin":"^\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(?=\\\\()","beginCaptures":{"1":{"name":"entity.name.function.definition.erlang"}},"end":"(\\\\.)","endCaptures":{"1":{"name":"punctuation.terminator.function.erlang"}},"name":"meta.function.erlang","patterns":[{"captures":{"1":{"name":"entity.name.function.erlang"}},"match":"^\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(?=\\\\()"},{"begin":"(?=\\\\()","end":"(;)|(?=\\\\.)","endCaptures":{"1":{"name":"punctuation.separator.clauses.erlang"}},"patterns":[{"include":"#parenthesized-expression"},{"include":"#internal-function-parts"}]},{"include":"#everything-else"}]},"function-call":{"begin":"(?=([a-z][@-Z_a-z\\\\d]*+|'[^']*+'|_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\(|:\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+'|_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+)\\\\s*+\\\\())","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"}},"name":"meta.function-call.erlang","patterns":[{"begin":"((erlang)\\\\s*+(:)\\\\s*+)?(is_atom|is_binary|is_constant|is_float|is_function|is_integer|is_list|is_number|is_pid|is_port|is_reference|is_tuple|is_record|abs|element|hd|length|node|round|self|size|tl|trunc)\\\\s*+(\\\\()","beginCaptures":{"2":{"name":"entity.name.type.class.module.erlang"},"3":{"name":"punctuation.separator.module-function.erlang"},"4":{"name":"entity.name.function.guard.erlang"},"5":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(?=\\\\))","patterns":[{"match":",","name":"punctuation.separator.parameters.erlang"},{"include":"#everything-else"}]},{"begin":"((([a-z][@-Z_a-z\\\\d]*+|'[^']*+')|(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+))\\\\s*+(:)\\\\s*+)?(([a-z][@-Z_a-z\\\\d]*+|'[^']*+')|(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+))\\\\s*+(\\\\()","beginCaptures":{"3":{"name":"entity.name.type.class.module.erlang"},"4":{"name":"variable.other.erlang"},"5":{"name":"punctuation.separator.module-function.erlang"},"7":{"name":"entity.name.function.erlang"},"8":{"name":"variable.other.erlang"},"9":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(?=\\\\))","patterns":[{"match":",","name":"punctuation.separator.parameters.erlang"},{"include":"#everything-else"}]}]},"import-export-directive":{"patterns":[{"begin":"^\\\\s*+(-)\\\\s*+(import)\\\\s*+(\\\\()\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(,)","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.import.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.type.class.module.erlang"},"5":{"name":"punctuation.separator.parameters.erlang"}},"end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.import.erlang","patterns":[{"include":"#internal-function-list"}]},{"begin":"^\\\\s*+(-)\\\\s*+(export)\\\\s*+(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.export.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.export.erlang","patterns":[{"include":"#internal-function-list"}]}]},"internal-expression-punctuation":{"captures":{"1":{"name":"punctuation.separator.clause-head-body.erlang"},"2":{"name":"punctuation.separator.clauses.erlang"},"3":{"name":"punctuation.separator.expressions.erlang"}},"match":"(->)|(;)|(,)"},"internal-function-list":{"begin":"(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.list.begin.erlang"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.list.end.erlang"}},"name":"meta.structure.list.function.erlang","patterns":[{"begin":"([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(/)","beginCaptures":{"1":{"name":"entity.name.function.erlang"},"2":{"name":"punctuation.separator.function-arity.erlang"}},"end":"(,)|(?=])","endCaptures":{"1":{"name":"punctuation.separator.list.erlang"}},"patterns":[{"include":"#everything-else"}]},{"include":"#everything-else"}]},"internal-function-parts":{"patterns":[{"begin":"(?=\\\\()","end":"(->)","endCaptures":{"1":{"name":"punctuation.separator.clause-head-body.erlang"}},"patterns":[{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"}},"patterns":[{"match":",","name":"punctuation.separator.parameters.erlang"},{"include":"#everything-else"}]},{"match":"[,;]","name":"punctuation.separator.guards.erlang"},{"include":"#everything-else"}]},{"match":",","name":"punctuation.separator.expressions.erlang"},{"include":"#everything-else"}]},"internal-record-body":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.class.record.begin.erlang"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.class.record.end.erlang"}},"name":"meta.structure.record.erlang","patterns":[{"begin":"(([a-z][@-Z_a-z\\\\d]*+|'[^']*+')|(_))","beginCaptures":{"2":{"name":"variable.other.field.erlang"},"3":{"name":"variable.language.omitted.field.erlang"}},"end":"(,)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.class.record.erlang"}},"patterns":[{"include":"#everything-else"}]},{"include":"#everything-else"}]},"internal-string-body":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.escape.erlang"},"3":{"name":"punctuation.definition.escape.erlang"}},"match":"(\\\\\\\\)([\\"'\\\\\\\\bdefnrstv]|(\\\\^)[@-_a-z]|[0-7]{1,3}|x[A-Fa-f\\\\d]{2})","name":"constant.character.escape.erlang"},{"match":"\\\\\\\\\\\\^?.?","name":"invalid.illegal.string.erlang"},{"include":"#internal-string-body-verbatim"}]},"internal-string-body-verbatim":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.placeholder.erlang"},"6":{"name":"punctuation.separator.placeholder-parts.erlang"},"10":{"name":"punctuation.separator.placeholder-parts.erlang"}},"match":"(~)((-)?\\\\d++|(\\\\*))?((\\\\.)(\\\\d++|(\\\\*))?((\\\\.)((\\\\*)|.))?)?[Kklt]*[#+BPWXbcefginpswx~]","name":"constant.character.format.placeholder.other.erlang"},{"captures":{"1":{"name":"punctuation.definition.placeholder.erlang"}},"match":"(~)(\\\\*)?(\\\\d++)?(t)?[-#acdflsu~]","name":"constant.character.format.placeholder.other.erlang"},{"match":"~[^\\"]?","name":"invalid.illegal.string.erlang"}]},"internal-type-specifiers":{"begin":"(/)","beginCaptures":{"1":{"name":"punctuation.separator.value-type.erlang"}},"end":"(?=[,:]|>>)","patterns":[{"captures":{"1":{"name":"storage.type.erlang"},"2":{"name":"storage.modifier.signedness.erlang"},"3":{"name":"storage.modifier.endianness.erlang"},"4":{"name":"storage.modifier.unit.erlang"},"5":{"name":"punctuation.separator.unit-specifiers.erlang"},"6":{"name":"constant.numeric.integer.decimal.erlang"},"7":{"name":"punctuation.separator.type-specifiers.erlang"}},"match":"(integer|float|binary|bytes|bitstring|bits|utf8|utf16|utf32)|((?:|un)signed)|(big|little|native)|(unit)(:)(\\\\d++)|(-)"}]},"keyword":{"match":"\\\\b(after|begin|case|catch|cond|end|fun|if|let|of|try|receive|when|maybe|else)\\\\b","name":"keyword.control.erlang"},"language-constant":{"match":"\\\\b(false|true|undefined)\\\\b","name":"constant.language"},"list":{"begin":"(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.list.begin.erlang"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.list.end.erlang"}},"name":"meta.structure.list.erlang","patterns":[{"match":"\\\\|\\\\|??|,","name":"punctuation.separator.list.erlang"},{"include":"#everything-else"}]},"macro-directive":{"patterns":[{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.ifdef.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(ifdef)\\\\s*+(\\\\()\\\\s*+([@-z\\\\d]++)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.ifdef.erlang"},{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.ifndef.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(ifndef)\\\\s*+(\\\\()\\\\s*+([@-z\\\\d]++)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.ifndef.erlang"},{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.undef.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(undef)\\\\s*+(\\\\()\\\\s*+([@-z\\\\d]++)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.undef.erlang"}]},"macro-usage":{"captures":{"1":{"name":"keyword.operator.macro.erlang"},"2":{"name":"entity.name.function.macro.erlang"}},"match":"(\\\\?\\\\??)\\\\s*+([@-Z_a-z\\\\d]++)","name":"meta.macro-usage.erlang"},"module-directive":{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.module.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.type.class.module.definition.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(module)\\\\s*+(\\\\()\\\\s*+([a-z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.module.erlang"},"number":{"begin":"(?=\\\\d)","end":"(?!\\\\d)","patterns":[{"captures":{"1":{"name":"punctuation.separator.integer-float.erlang"},"2":{"name":"punctuation.separator.float-exponent.erlang"}},"match":"\\\\d++(\\\\.)\\\\d++([Ee][-+]?\\\\d++)?","name":"constant.numeric.float.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"2(#)([01]++_)*[01]++","name":"constant.numeric.integer.binary.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"3(#)([012]++_)*[012]++","name":"constant.numeric.integer.base-3.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"4(#)([0-3]++_)*[0-3]++","name":"constant.numeric.integer.base-4.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"5(#)([0-4]++_)*[0-4]++","name":"constant.numeric.integer.base-5.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"6(#)([0-5]++_)*[0-5]++","name":"constant.numeric.integer.base-6.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"7(#)([0-6]++_)*[0-6]++","name":"constant.numeric.integer.base-7.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"8(#)([0-7]++_)*[0-7]++","name":"constant.numeric.integer.octal.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"9(#)([0-8]++_)*[0-8]++","name":"constant.numeric.integer.base-9.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"10(#)(\\\\d++_)*\\\\d++","name":"constant.numeric.integer.decimal.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"11(#)([Aa\\\\d]++_)*[Aa\\\\d]++","name":"constant.numeric.integer.base-11.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"12(#)([ABab\\\\d]++_)*[ABab\\\\d]++","name":"constant.numeric.integer.base-12.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"13(#)([ABCabc\\\\d]++_)*[ABCabc\\\\d]++","name":"constant.numeric.integer.base-13.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"14(#)([A-Da-d\\\\d]++_)*[A-Da-d\\\\d]++","name":"constant.numeric.integer.base-14.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"15(#)([A-Ea-e\\\\d]++_)*[A-Ea-e\\\\d]++","name":"constant.numeric.integer.base-15.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"16(#)([A-Fa-f\\\\d]++_)*[A-Fa-f\\\\d]++","name":"constant.numeric.integer.hexadecimal.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"17(#)([A-Ga-g\\\\d]++_)*[A-Ga-g\\\\d]++","name":"constant.numeric.integer.base-17.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"18(#)([A-Ha-h\\\\d]++_)*[A-Ha-h\\\\d]++","name":"constant.numeric.integer.base-18.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"19(#)([A-Ia-i\\\\d]++_)*[A-Ia-i\\\\d]++","name":"constant.numeric.integer.base-19.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"20(#)([A-Ja-j\\\\d]++_)*[A-Ja-j\\\\d]++","name":"constant.numeric.integer.base-20.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"21(#)([A-Ka-k\\\\d]++_)*[A-Ka-k\\\\d]++","name":"constant.numeric.integer.base-21.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"22(#)([A-La-l\\\\d]++_)*[A-La-l\\\\d]++","name":"constant.numeric.integer.base-22.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"23(#)([A-Ma-m\\\\d]++_)*[A-Ma-m\\\\d]++","name":"constant.numeric.integer.base-23.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"24(#)([A-Na-n\\\\d]++_)*[A-Na-n\\\\d]++","name":"constant.numeric.integer.base-24.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"25(#)([A-Oa-o\\\\d]++_)*[A-Oa-o\\\\d]++","name":"constant.numeric.integer.base-25.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"26(#)([A-Pa-p\\\\d]++_)*[A-Pa-p\\\\d]++","name":"constant.numeric.integer.base-26.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"27(#)([A-Qa-q\\\\d]++_)*[A-Qa-q\\\\d]++","name":"constant.numeric.integer.base-27.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"28(#)([A-Ra-r\\\\d]++_)*[A-Ra-r\\\\d]++","name":"constant.numeric.integer.base-28.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"29(#)([A-Sa-s\\\\d]++_)*[A-Sa-s\\\\d]++","name":"constant.numeric.integer.base-29.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"30(#)([A-Ta-t\\\\d]++_)*[A-Ta-t\\\\d]++","name":"constant.numeric.integer.base-30.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"31(#)([A-Ua-u\\\\d]++_)*[A-Ua-u\\\\d]++","name":"constant.numeric.integer.base-31.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"32(#)([A-Va-v\\\\d]++_)*[A-Va-v\\\\d]++","name":"constant.numeric.integer.base-32.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"33(#)([A-Wa-w\\\\d]++_)*[A-Wa-w\\\\d]++","name":"constant.numeric.integer.base-33.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"34(#)([A-Xa-x\\\\d]++_)*[A-Xa-x\\\\d]++","name":"constant.numeric.integer.base-34.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"35(#)([A-Ya-y\\\\d]++_)*[A-Ya-y\\\\d]++","name":"constant.numeric.integer.base-35.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"36(#)([A-Za-z\\\\d]++_)*[A-Za-z\\\\d]++","name":"constant.numeric.integer.base-36.erlang"},{"match":"\\\\d++#([A-Za-z\\\\d]++_)*[A-Za-z\\\\d]++","name":"invalid.illegal.integer.erlang"},{"match":"(\\\\d++_)*\\\\d++","name":"constant.numeric.integer.decimal.erlang"}]},"parenthesized-expression":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.expression.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.expression.end.erlang"}},"name":"meta.expression.parenthesized","patterns":[{"include":"#everything-else"}]},"record-directive":{"begin":"^\\\\s*+(-)\\\\s*+(record)\\\\s*+(\\\\()\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(,)","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.import.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.type.class.record.definition.erlang"},"5":{"name":"punctuation.separator.parameters.erlang"}},"end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.record.erlang","patterns":[{"include":"#internal-record-body"},{"include":"#comment"}]},"record-usage":{"patterns":[{"captures":{"1":{"name":"keyword.operator.record.erlang"},"2":{"name":"entity.name.type.class.record.erlang"},"3":{"name":"punctuation.separator.record-field.erlang"},"4":{"name":"variable.other.field.erlang"}},"match":"(#)\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(\\\\.)\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')","name":"meta.record-usage.erlang"},{"begin":"(#)\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')","beginCaptures":{"1":{"name":"keyword.operator.record.erlang"},"2":{"name":"entity.name.type.class.record.erlang"}},"end":"(?<=})","name":"meta.record-usage.erlang","patterns":[{"include":"#internal-record-body"}]}]},"sigil-docstring":{"begin":"(~[bs])((\\"{3,})\\\\s*)(\\\\S.*)?$","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"meta.string.quoted.triple.begin.erlang"},"3":{"name":"punctuation.definition.string.begin.erlang"},"4":{"name":"invalid.illegal.string.erlang"}},"end":"^(\\\\s*(\\\\3))(?!\\")","endCaptures":{"1":{"name":"meta.string.quoted.triple.end.erlang"},"2":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.tripple.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-docstring-verbatim":{"begin":"(~[BS]?)((\\"{3,})\\\\s*)(\\\\S.*)?$","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"meta.string.quoted.triple.begin.erlang"},"3":{"name":"punctuation.definition.string.begin.erlang"},"4":{"name":"invalid.illegal.string.erlang"}},"end":"^(\\\\s*(\\\\3))(?!\\")","endCaptures":{"1":{"name":"meta.string.quoted.triple.end.erlang"},"2":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.tripple.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string":{"patterns":[{"include":"#sigil-string-parenthesis"},{"include":"#sigil-string-parenthesis-verbatim"},{"include":"#sigil-string-curly-brackets"},{"include":"#sigil-string-curly-brackets-verbatim"},{"include":"#sigil-string-square-brackets"},{"include":"#sigil-string-square-brackets-verbatim"},{"include":"#sigil-string-less-greater"},{"include":"#sigil-string-less-greater-verbatim"},{"include":"#sigil-string-single-character"},{"include":"#sigil-string-single-character-verbatim"},{"include":"#sigil-string-single-quote"},{"include":"#sigil-string-single-quote-verbatim"},{"include":"#sigil-string-double-quote"},{"include":"#sigil-string-double-quote-verbatim"}]},"sigil-string-curly-brackets":{"begin":"(~[bs]?)(\\\\{)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.curly-brackets.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-curly-brackets-verbatim":{"begin":"(~[BS])(\\\\{)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.curly-brackets.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-double-quote":{"begin":"(~[bs]?)(\\")","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.double.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-double-quote-verbatim":{"begin":"(~[BS])(\\")","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.double.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-less-greater":{"begin":"(~[bs]?)(<)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.less-greater.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-less-greater-verbatim":{"begin":"(~[BS])(<)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.less-greater.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-parenthesis":{"begin":"(~[bs]?)(\\\\()","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.parenthesis.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-parenthesis-verbatim":{"begin":"(~[BS])(\\\\()","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.parenthesis.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-single-character":{"begin":"(~[bs]?)([#/\`|])","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.other.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-single-character-verbatim":{"begin":"(~[BS])([#/\`|])","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.other.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-single-quote":{"begin":"(~[bs]?)(')","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.single.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-single-quote-verbatim":{"begin":"(~[BS])(')","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.single.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-square-brackets":{"begin":"(~[bs]?)(\\\\[)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.square-brackets.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-square-brackets-verbatim":{"begin":"(~[BS])(\\\\[)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.square-brackets.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"string":{"begin":"(\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.double.erlang","patterns":[{"include":"#internal-string-body"}]},"symbolic-operator":{"match":"\\\\+\\\\+?|--|[-*]|/=?|=/=|=:=|==|=<?|<-?|>=|[!>]|::|\\\\?=","name":"keyword.operator.symbolic.erlang"},"textual-operator":{"match":"\\\\b(andalso|band|and|bxor|xor|bor|orelse|or|bnot|not|bsl|bsr|div|rem)\\\\b","name":"keyword.operator.textual.erlang"},"tuple":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.tuple.begin.erlang"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.tuple.end.erlang"}},"name":"meta.structure.tuple.erlang","patterns":[{"match":",","name":"punctuation.separator.tuple.erlang"},{"include":"#everything-else"}]},"variable":{"captures":{"1":{"name":"variable.other.erlang"},"2":{"name":"variable.language.omitted.erlang"}},"match":"(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+)|(_)"}},"scopeName":"source.erlang","embeddedLangs":["markdown"],"aliases":["erl"]}`)),t=[...e,n];export{t as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Gb as a}from"./chunk-y5pf2d0x.js";import{dc as s}from"./chunk-wtwgpw9g.js";import{Annotation as S}from"@langchain/langgraph";var _=(...G)=>{return{build:(U={})=>{return S.Root(Object.assign({},...G.map((L)=>L.spec),U))}}},q=(G)=>S({reducer:(U,L)=>L,default:G});import{tool as G1}from"@langchain/core/tools";import{z as P}from"zod";var U1=P.object({thought:P.string().describe("Your current thinking step"),nextThoughtNeeded:P.boolean().describe("Whether another thought step is needed"),thoughtNumber:P.number().min(1).describe("Current thought number"),totalThoughts:P.number().min(1).describe("Estimated total thoughts needed"),isRevision:P.boolean().optional().describe("Whether this revises previous thinking"),revisesThought:P.number().min(1).optional().describe("Which thought is being reconsidered"),branchFromThought:P.number().min(1).optional().describe("Branching point thought number"),branchId:P.string().optional().describe("Branch identifier"),needsMoreThoughts:P.boolean().optional().describe("If more thoughts are needed")}),w=[],I={},g1=G1(async(G)=>{try{if(G.thoughtNumber>G.totalThoughts)G.totalThoughts=G.thoughtNumber;if(w.push(G),G.branchFromThought&&G.branchId){if(!I[G.branchId])I[G.branchId]=[];I[G.branchId].push(G)}return JSON.stringify({thoughtNumber:G.thoughtNumber,totalThoughts:G.totalThoughts,nextThoughtNeeded:G.nextThoughtNeeded,branches:Object.keys(I),thoughtHistoryLength:w.length},null,2)}catch(U){return JSON.stringify({error:U instanceof Error?U.message:String(U),status:"failed"},null,2)}},{name:"sequential-thinking",description:`A detailed tool for dynamic and reflective problem-solving through thoughts.
|
|
2
2
|
This tool helps analyze problems through a flexible thinking process that can adapt and evolve.
|
|
3
3
|
Each thought can build on, question, or revise previous insights as understanding deepens.
|
|
4
4
|
|
|
@@ -20,7 +20,7 @@ Key features:
|
|
|
20
20
|
- Generates a solution hypothesis
|
|
21
21
|
- Verifies the hypothesis based on the Chain of Thought steps
|
|
22
22
|
- Repeats the process until satisfied
|
|
23
|
-
- Provides a correct answer`,schema:U1});import{tool as f}from"@langchain/core/tools";import{z as q}from"zod";var L1=q.object({url:q.string().url().describe("the url to crawl"),raw:q.boolean().optional().default(!1).describe("return raw html")}),W1=q.object({query:q.string().describe("the query to search"),engines:q.array(q.enum(["basic","npm","juejin","anthropic","github"])).default(["basic"]).describe("the engines to use"),returnType:q.enum(["json","markdown"]).default("json").describe("the content type to return"),withMetadata:q.boolean().default(!0).describe("whether to include metadata in the search results")}),t1=f(async({url:G})=>{if(!G)return{status:"error",error:"URL is required"};let U=await fetch(`${process.env.SEARCH_SERVER_URL||"http://localhost:8123"}/website-to-md/extract`,{method:"POST",body:JSON.stringify({url:G})});if(!U.ok)throw Error(`HTTP error! status: ${U.status}`);return await U.text()},{name:"read_web_page",description:"A powerful web content extraction tool that retrieves and processes raw content from specified URLs, ideal for data collection, content analysis, and research tasks.",schema:q.object(L1.shape)}),s1=f(async({query:G,engines:U})=>{let L=await fetch(`${process.env.SEARCH_SERVER_URL||"http://localhost:8123"}/website-to-md/search`,{method:"POST",body:JSON.stringify({query:G,engines:U,returnType:"json",withMetadata:!0})});if(!L.ok)throw Error(`HTTP error! status: ${L.status}`);return await L.text()},{name:"web_search",description:"A powerful web search tool that provides comprehensive, real-time results using search engine. Returns relevant web content with customizable parameters for result count, content type, and domain filtering. Ideal for gathering current information, news, and detailed web content analysis.",schema:q.object(W1.shape)});import{AIMessage as Y0,ToolMessage as Z0}from"@langchain/core/messages";import{AIMessage as L0,HumanMessage as W0,SystemMessage as X0,ToolMessage as B0}from"@langchain/core/messages";var V0=(G)=>{return G?.configurable?.thread_id};import{Command as $0,getCurrentTaskInput as H0}from"@langchain/langgraph";import{z as O0}from"zod";import{ToolMessage as F0}from"@langchain/core/messages";import{tool as z0}from"@langchain/core/tools";import{Annotation as N,MessagesAnnotation as B1,START as _0,StateGraph as D0}from"@langchain/langgraph";var A=N.Root({...B1.spec,activeAgent:N});import{z as M0}from"zod";import{ToolMessage as u0}from"@langchain/core/messages";import{tool as r0}from"@langchain/core/tools";import{Command as p0,getCurrentTaskInput as i0}from"@langchain/langgraph";import{Command as m0}from"@langchain/langgraph";import{ChatOpenAI as GG}from"@langchain/openai";import{SystemMessage as WG,HumanMessage as XG,AIMessageChunk as BG,ToolMessage as JG}from"@langchain/core/messages";import{z as b}from"zod";import{withLangGraph as K1}from"@langchain/langgraph/zod";import{MessagesZodMeta as Y1}from"@langchain/langgraph";var T=b.object({messages:K1(b.custom(),Y1).default([])});import{AIMessage as I1,AIMessageChunk as h1,isAIMessage as _1}from"@langchain/core/messages";import{ChatGenerationChunk as n}from"@langchain/core/outputs";import{wrapOpenAIClientError as D1}from"@langchain/openai";import{convertToOpenAITool as QG,isLangChainTool as jG}from"@langchain/core/utils/function_calling";import{isInteropZodSchema as $G}from"@langchain/core/utils/types";import{toJsonSchema as PG}from"@langchain/core/utils/json_schema";function M(G){if(!G)return;else if(G==="any"||G==="required")return"required";else if(G==="auto")return"auto";else if(G==="none")return"none";else if(typeof G==="string")return{type:"function",function:{name:G}};else return G}import{BaseChatOpenAI as S1}from"@langchain/openai";import{AIMessage as d,AIMessageChunk as Z1,ChatMessage as x1,ChatMessageChunk as V1,FunctionMessageChunk as Q1,HumanMessageChunk as j1,SystemMessageChunk as u,ToolMessage as p,ToolMessageChunk as q1,parseBase64DataUrl as k,parseMimeType as r,isDataContentBlock as $1,iife as H1,convertToProviderContentBlock as P1}from"@langchain/core/messages";import{convertLangChainToolCallToOpenAI as O1,makeInvalidToolCall as E1,parseToolCall as F1}from"@langchain/core/output_parsers/openai_tools";import{isZodSchemaV3 as FG,isZodSchemaV4 as yG}from"@langchain/core/utils/types";import{toJSONSchema as RG,parse as IG}from"zod/v4/core";import{zodResponseFormat as _G}from"openai/helpers/zod";function C(G,U){if(U&&typeof U==="object"&&"images"in U&&Array.isArray(U.images)){let L=U.images.filter((W)=>typeof W?.image_url?.url==="string").map((W)=>({type:"image",url:W.image_url.url}));return[{type:"text",text:G},...L]}return G}import{messageToOpenAIRole as i}from"@langchain/openai";var y1={providerName:"ChatOpenAI",fromStandardTextBlock(G){return{type:"text",text:G.text}},fromStandardImageBlock(G){if(G.source_type==="url")return{type:"image_url",image_url:{url:G.url,...G.metadata?.detail?{detail:G.metadata.detail}:{}}};if(G.source_type==="base64")return{type:"image_url",image_url:{url:`data:${G.mime_type??""};base64,${G.data}`,...G.metadata?.detail?{detail:G.metadata.detail}:{}}};throw Error(`Image content blocks with source_type ${G.source_type} are not supported for ChatOpenAI`)},fromStandardAudioBlock(G){if(G.source_type==="url"){let U=k({dataUrl:G.url});if(!U)throw Error(`URL audio blocks with source_type ${G.source_type} must be formatted as a data URL for ChatOpenAI`);let L=U.mime_type||G.mime_type||"",W;try{W=r(L)}catch{throw Error(`Audio blocks with source_type ${G.source_type} must have mime type of audio/wav or audio/mp3`)}if(W.type!=="audio"||W.subtype!=="wav"&&W.subtype!=="mp3")throw Error(`Audio blocks with source_type ${G.source_type} must have mime type of audio/wav or audio/mp3`);return{type:"input_audio",input_audio:{format:W.subtype,data:U.data}}}if(G.source_type==="base64"){let U;try{U=r(G.mime_type??"")}catch{throw Error(`Audio blocks with source_type ${G.source_type} must have mime type of audio/wav or audio/mp3`)}if(U.type!=="audio"||U.subtype!=="wav"&&U.subtype!=="mp3")throw Error(`Audio blocks with source_type ${G.source_type} must have mime type of audio/wav or audio/mp3`);return{type:"input_audio",input_audio:{format:U.subtype,data:G.data}}}throw Error(`Audio content blocks with source_type ${G.source_type} are not supported for ChatOpenAI`)},fromStandardFileBlock(G){if(G.source_type==="url"){if(!k({dataUrl:G.url}))throw Error(`URL file blocks with source_type ${G.source_type} must be formatted as a data URL for ChatOpenAI`);return{type:"file",file:{file_data:G.url,...G.metadata?.filename||G.metadata?.name?{filename:G.metadata?.filename||G.metadata?.name}:{}}}}if(G.source_type==="base64")return{type:"file",file:{file_data:`data:${G.mime_type??""};base64,${G.data}`,...G.metadata?.filename||G.metadata?.name||G.metadata?.title?{filename:G.metadata?.filename||G.metadata?.name||G.metadata?.title}:{}}};if(G.source_type==="id")return{type:"file",file:{file_id:G.id}};throw Error(`File content blocks with source_type ${G.source_type} are not supported for ChatOpenAI`)}},c=({message:G,rawResponse:U,includeRawResponse:L})=>{let W=G.tool_calls;switch(G.role){case"assistant":{let X=[],B=[];for(let K of W??[])try{X.push(F1(K,{returnId:!0}))}catch(Q){B.push(E1(K,Q.message))}let J={function_call:G.function_call,tool_calls:W};if(L!==void 0)J.__raw_response=U;let v={model_provider:"openai",model_name:U.model,...U.system_fingerprint?{usage:{...U.usage},system_fingerprint:U.system_fingerprint}:{}};if(G.audio)J.audio=G.audio;let Z=C(G.content||"",U.choices?.[0]?.message);return new d({content:Z,tool_calls:X,invalid_tool_calls:B,additional_kwargs:J,response_metadata:v,id:U.id})}default:return new x1(G.content||"",G.role??"unknown")}},g=({delta:G,rawResponse:U,includeRawResponse:L,defaultRole:W})=>{let X=G.role??W,B=G.content??"",J;if(G.function_call)J={function_call:G.function_call};else if(G.tool_calls)J={tool_calls:G.tool_calls};else J={};if(L)J.__raw_response=U;if(G.audio)J.audio={...G.audio,index:U.choices[0].index};let v={model_provider:"openai",usage:{...U.usage}};if(X==="user")return new j1({content:B,response_metadata:v});else if(X==="assistant"){let Z=[];if(Array.isArray(G.tool_calls))for(let K of G.tool_calls)Z.push({name:K.function?.name,args:K.function?.arguments,id:K.id,index:K.index,type:"tool_call_chunk"});return new Z1({content:B,tool_call_chunks:Z,additional_kwargs:J,id:U.id,response_metadata:v})}else if(X==="system")return new u({content:B,response_metadata:v});else if(X==="developer")return new u({content:B,response_metadata:v,additional_kwargs:{__openai_role__:"developer"}});else if(X==="function")return new Q1({content:B,additional_kwargs:J,name:G.name,response_metadata:v});else if(X==="tool")return new q1({content:B,additional_kwargs:J,tool_call_id:G.tool_call_id,response_metadata:v});else return new V1({content:B,role:X,response_metadata:v})},z1=(G)=>{if(G.type==="image"){if(G.url)return{type:"image_url",image_url:{url:G.url}};else if(G.data)return{type:"image_url",image_url:{url:`data:${G.mimeType};base64,${G.data}`}}}if(G.type==="audio"){if(G.data){let U=H1(()=>{let[,L]=G.mimeType.split("/");if(L==="wav"||L==="mp3")return L;return"wav"});return{type:"input_audio",input_audio:{data:G.data.toString(),format:U}}}}if(G.type==="file"){if(G.data)return{type:"file",file:{file_data:G.data.toString()}};if(G.fileId)return{type:"file",file:{file_id:G.fileId}}}return};function m(G){if(!G)return!1;if(/^o\d/.test(G??""))return!0;if(G.startsWith("gpt-5")&&!G.startsWith("gpt-5-chat"))return!0;return!1}var R1=({message:G,model:U})=>{let L=i(G);if(L==="system"&&m(U))L="developer";if(L==="developer")return{role:"developer",content:G.contentBlocks.filter((X)=>X.type==="text")};else if(L==="system")return{role:"system",content:G.contentBlocks.filter((X)=>X.type==="text")};else if(L==="assistant")return{role:"assistant",content:G.contentBlocks.filter((X)=>X.type==="text")};else if(L==="tool"&&p.isInstance(G))return{role:"tool",tool_call_id:G.tool_call_id,content:G.contentBlocks.filter((X)=>X.type==="text")};else if(L==="function")return{role:"function",name:G.name??"",content:G.contentBlocks.filter((X)=>X.type==="text").join("")};function*W(X){for(let B of X){if(B.type==="text")yield{type:"text",text:B.text};let J=z1(B);if(J)yield J}}return{role:"user",content:Array.from(W(G.contentBlocks))}},D=({messages:G,model:U})=>{return G.flatMap((L)=>{if("output_version"in L.response_metadata&&L.response_metadata?.output_version==="v1")return R1({message:L});let W=i(L);if(W==="system"&&m(U))W="developer";let X=typeof L.content==="string"?L.content:L.content.map((J)=>{if($1(J))return P1(J,y1);return J}),B={role:W,content:X};if(L.name!=null)B.name=L.name;if(L.additional_kwargs.function_call!=null)B.function_call=L.additional_kwargs.function_call,B.content="";if(L.additional_kwargs?.reasoning_content&&U?.includes("deepseek"))B.reasoning_content=L.additional_kwargs.reasoning_content;if(d.isInstance(L)&&!!L.tool_calls?.length)B.tool_calls=L.tool_calls.map(O1),B.content="";else{if(L.additional_kwargs.tool_calls!=null)B.tool_calls=L.additional_kwargs.tool_calls;if(p.isInstance(L)&&L.tool_call_id!=null)B.tool_call_id=L.tool_call_id}if(L.additional_kwargs.audio&&typeof L.additional_kwargs.audio==="object"&&"id"in L.additional_kwargs.audio){let J={role:"assistant",audio:{id:L.additional_kwargs.audio.id}};return[B,J]}return B})};class R extends S1{invocationParams(G,U){let L;if(G?.strict!==void 0)L=G.strict;else if(this.supportsStrictToolCalling!==void 0)L=this.supportsStrictToolCalling;let W={};if(G?.stream_options!==void 0)W={stream_options:G.stream_options};else if(this.streamUsage&&(this.streaming||U?.streaming))W={stream_options:{include_usage:!0}};let X={model:this.model,temperature:this.temperature,top_p:this.topP,frequency_penalty:this.frequencyPenalty,presence_penalty:this.presencePenalty,logprobs:this.logprobs,top_logprobs:this.topLogprobs,n:this.n,logit_bias:this.logitBias,stop:G?.stop??this.stopSequences,user:this.user,stream:this.streaming,functions:G?.functions,function_call:G?.function_call,tools:G?.tools?.length?G.tools.map((J)=>this._convertChatOpenAIToolToCompletionsTool(J,{strict:L})):void 0,tool_choice:M(G?.tool_choice),response_format:this._getResponseFormat(G?.response_format),seed:G?.seed,...W,parallel_tool_calls:G?.parallel_tool_calls,...this.audio||G?.audio?{audio:this.audio||G?.audio}:{},...this.modalities||G?.modalities?{modalities:this.modalities||G?.modalities}:{},...this.modelKwargs,prompt_cache_key:G?.promptCacheKey??this.promptCacheKey,verbosity:G?.verbosity??this.verbosity};if(G?.prediction!==void 0)X.prediction=G.prediction;if(this.service_tier!==void 0)X.service_tier=this.service_tier;if(G?.service_tier!==void 0)X.service_tier=G.service_tier;let B=this._getReasoningParams(G);if(B!==void 0&&B.effort!==void 0)X.reasoning_effort=B.effort;if(this.reasoning)X.max_completion_tokens=this.maxTokens===-1?void 0:this.maxTokens;else X.max_tokens=this.maxTokens===-1?void 0:this.maxTokens;return X}async _generate(G,U,L){let W={},X=this.invocationParams(U),B=D({messages:G,model:this.model});if(X.stream){let J=this._streamResponseChunks(G,U,L),v={};for await(let Y of J){Y.message.response_metadata={...Y.generationInfo,...Y.message.response_metadata};let V=Y.generationInfo?.completion??0;if(v[V]===void 0)v[V]=Y;else v[V]=v[V].concat(Y)}let Z=Object.entries(v).sort(([Y],[V])=>parseInt(Y,10)-parseInt(V,10)).map(([Y,V])=>V),{functions:K,function_call:Q}=this.invocationParams(U),x=await this._getEstimatedTokenCountFromPrompt(G,K,Q),$=await this._getNumTokensFromGenerations(Z);return W.input_tokens=x,W.output_tokens=$,W.total_tokens=x+$,{generations:Z,llmOutput:{estimatedTokenUsage:{promptTokens:W.input_tokens,completionTokens:W.output_tokens,totalTokens:W.total_tokens}}}}else{let J=await this.completionWithRetry({...X,stream:!1,messages:B},{signal:U?.signal,...U?.options}),{completion_tokens:v,prompt_tokens:Z,total_tokens:K,prompt_tokens_details:Q,completion_tokens_details:x}=J?.usage??{};if(v)W.output_tokens=(W.output_tokens??0)+v;if(Z)W.input_tokens=(W.input_tokens??0)+Z;if(K)W.total_tokens=(W.total_tokens??0)+K;if(Q?.audio_tokens!==null||Q?.cached_tokens!==null)W.input_token_details={...Q?.audio_tokens!==null&&{audio:Q?.audio_tokens},...Q?.cached_tokens!==null&&{cache_read:Q?.cached_tokens}};if(x?.audio_tokens!==null||x?.reasoning_tokens!==null)W.output_token_details={...x?.audio_tokens!==null&&{audio:x?.audio_tokens},...x?.reasoning_tokens!==null&&{reasoning:x?.reasoning_tokens}};let $=[];for(let Y of J?.choices??[]){let V=Y.message?.content??"",F=Y.message?.reasoning_content??Y.message?.reasoning??"",j={text:V,message:this._convertCompletionsMessageToBaseMessage(Y.message??{role:"assistant"},J)};if(j.message.additional_kwargs={...j.message.additional_kwargs,reasoning_content:F},j.generationInfo={...Y.finish_reason?{finish_reason:Y.finish_reason}:{},...Y.logprobs?{logprobs:Y.logprobs}:{}},_1(j.message))j.message.usage_metadata=W;j.message=new I1(Object.fromEntries(Object.entries(j.message).filter(([y])=>!y.startsWith("lc_")))),$.push(j)}return{generations:$,llmOutput:{tokenUsage:{promptTokens:W.input_tokens,completionTokens:W.output_tokens,totalTokens:W.total_tokens}}}}}async*_streamResponseChunks(G,U,L){let W=D({messages:G,model:this.model}),X={...this.invocationParams(U,{streaming:!0}),messages:W,stream:!0},B,J=await this.completionWithRetry(X,U),v;for await(let Z of J){let K=Z?.choices?.[0];if(Z.usage)v=Z.usage;if(!K)continue;let{delta:Q}=K;if(!Q)continue;let x=this._convertCompletionsDeltaToBaseMessageChunk(Q,Z,B),$=Q.reasoning_content??Q.reasoning??"";if($)x.additional_kwargs={...x.additional_kwargs,reasoning_content:$};B=Q.role??B;let Y={prompt:U.promptIndex??0,completion:K.index??0};if(typeof x.content!=="string"){console.log("[WARNING]: Received non-string content from OpenAI. This is currently not supported.");continue}let V={...Y};if(K.finish_reason!=null)V.finish_reason=K.finish_reason,V.system_fingerprint=Z.system_fingerprint,V.model_name=Z.model,V.service_tier=Z.service_tier;if(this.logprobs)V.logprobs=K.logprobs;let F=new n({message:x,text:x.content,generationInfo:V});yield F,await L?.handleLLMNewToken(F.text??"",Y,void 0,void 0,void 0,{chunk:F})}if(v){let Z={...v.prompt_tokens_details?.audio_tokens!==null&&{audio:v.prompt_tokens_details?.audio_tokens},...v.prompt_tokens_details?.cached_tokens!==null&&{cache_read:v.prompt_tokens_details?.cached_tokens}},K={...v.completion_tokens_details?.audio_tokens!==null&&{audio:v.completion_tokens_details?.audio_tokens},...v.completion_tokens_details?.reasoning_tokens!==null&&{reasoning:v.completion_tokens_details?.reasoning_tokens}};yield new n({message:new h1({content:"",response_metadata:{usage:{...v}},usage_metadata:{input_tokens:v.prompt_tokens,output_tokens:v.completion_tokens,total_tokens:v.total_tokens,...Object.keys(Z).length>0&&{input_token_details:Z},...Object.keys(K).length>0&&{output_token_details:K}}}),text:""})}if(U.signal?.aborted)throw Error("AbortError")}async completionWithRetry(G,U){let L=this._getClientOptions(U),W=G.response_format&&G.response_format.type==="json_schema";return this.caller.call(async()=>{try{if(W&&!G.stream)return await this.client.chat.completions.parse(G,L);else return await this.client.chat.completions.create(G,L)}catch(X){throw D1(X)}})}_convertCompletionsDeltaToBaseMessageChunk(G,U,L){return g({delta:G,rawResponse:U,includeRawResponse:this.__includeRawResponse,defaultRole:L})}_convertCompletionsMessageToBaseMessage(G,U){return c({message:G,rawResponse:U,includeRawResponse:this.__includeRawResponse})}}import{createMiddleware as iG}from"langchain";import{z as E}from"zod";import{MessagesAnnotation as w1}from"@langchain/langgraph";import{SubAgentAnnotation as f1,SubAgentStateSchema as N1}from"@langgraph-js/standard-agent";var vU=T.extend(N1.shape).extend({provider_id:E.string().default("openai"),provider_type:E.string().default("openai"),model_id:E.string().default("qwen-plus"),agent_name:E.string().default("Code Agent"),switch_command:E.string().optional(),enable_thinking:E.boolean().default(!0),user_id:E.string().optional(),thread_id:E.string().optional()}),l=_(f1,w1).build({provider_id:H(()=>"openai"),provider_type:H(()=>"openai"),model_id:H(()=>"qwen-plus"),agent_name:H(()=>"Code Agent"),switch_command:H(()=>null),enable_thinking:H(()=>!0),user_id:H(()=>""),thread_id:H(()=>"")});import{ChatAnthropic as A1}from"@langchain/anthropic";import{ChatGoogleGenerativeAI as b1}from"@langchain/google-genai";var t=async(G,U={})=>{let{modelProvider:L,enableThinking:W=!0}=U,X="v1",B;if(L==="anthropic")B=new A1({model:G,streamUsage:!0,streaming:!0,maxRetries:1,maxTokens:64000,thinking:W?{budget_tokens:1024,type:"enabled"}:void 0,apiKey:U.apiKey,anthropicApiUrl:U.baseURL,metadata:U.metadata,outputVersion:"v1"});else if(L==="gemini"||L==="google")console.log(process.env.GOOGLE_BASE_URL),B=new b1({model:G,apiKey:U.apiKey,baseUrl:U.baseURL||process.env.GOOGLE_BASE_URL,maxRetries:1,streaming:!0,streamUsage:!0,thinkingConfig:{},metadata:U.metadata,outputVersion:"v1"});else B=new R({model:G,configuration:{baseURL:U.baseURL,apiKey:U.apiKey},streamUsage:!0,maxRetries:1,modelKwargs:W?{thinking:{type:"enabled"}}:void 0,metadata:U.metadata,outputVersion:"v1"});return B};import{createAgent as M1,tool as C1}from"langchain";import{anthropicPromptCachingMiddleware as u1}from"@langgraph-js/standard-agent";import{MCPMiddleware as T1}from"@langgraph-js/standard-agent";class h extends T1{constructor(G){super({configProvider:async()=>h.loadConfigFromStore(),cache:G})}static async loadConfigFromStore(){try{let G=new s;await G.initialize();let U=await G.getConfig();if(!U.mcp_config||Object.keys(U.mcp_config).length===0)return null;return{servers:U.mcp_config}}catch(G){return console.error("Failed to load MCP config from store:",G),null}}}import{humanInTheLoopMiddleware as k1}from"@langgraph-js/standard-agent";var r1={ask_user_questions:{allowedDecisions:["respond","approve","reject","edit"]}};async function SU(G,U,L,W,X){let B=!!X?.parent_id,J=await U.getAgent(G);if(!J)throw Error(`Agent not found: ${G}`);let v=await U.validateAgent(G);if(!v.valid)throw Error(`Agent validation failed: ${JSON.stringify(v.errors)}`);let Z=await t(L.model_id,{modelProvider:L.provider_id,streamUsage:!0,enableThinking:L.enable_thinking,metadata:{parent_id:X?.parent_id}}),K=[],Q=U.tools;for(let[j,y]of Object.entries(J.tools)){let O=Q.getImplementation(j);if(!O){console.warn(`Tool ${j} not found in registry`);continue}if(!O.name||!y)continue;let o=C1(async(e)=>{let z=await O.execute(e);if(z&&typeof z==="object"&&"content"in z)return z.content;return z},{name:O.name,description:O.description,schema:O.paramsSchema});K.push(o)}let x=[];for(let[j,y]of Object.entries(J.middleware)){if(j==="subagents"&&B)continue;let O=U.middlewares.getImplementation(j);if(!y)break;x.push(await O.execute(y.customParams||{}))}let $=new h;x.push($);let Y={...r1};if(process.env.YOLO_MODE!=="true")Object.assign(Y,{terminal:{allowedDecisions:["approve","reject","edit"]}});if(x.push(k1({interruptOn:Y})),process.env.MODEL_PROVIDER==="anthropic")x.push(u1());let V=await U.getPrompt(J.systemPromptId);if(!V)throw Error(`Prompt not found: ${J.systemPromptId}`);let F=V.content+`
|
|
23
|
+
- Provides a correct answer`,schema:U1});import{tool as f}from"@langchain/core/tools";import{z as $}from"zod";var L1=$.object({url:$.string().url().describe("the url to crawl"),raw:$.boolean().optional().default(!1).describe("return raw html")}),W1=$.object({query:$.string().describe("the query to search"),engines:$.array($.enum(["basic","npm","juejin","anthropic","github"])).default(["basic"]).describe("the engines to use"),returnType:$.enum(["json","markdown"]).default("json").describe("the content type to return"),withMetadata:$.boolean().default(!0).describe("whether to include metadata in the search results")}),t1=f(async({url:G})=>{if(!G)return{status:"error",error:"URL is required"};let U=await fetch(`${process.env.SEARCH_SERVER_URL||"http://localhost:8123"}/website-to-md/extract`,{method:"POST",body:JSON.stringify({url:G})});if(!U.ok)throw Error(`HTTP error! status: ${U.status}`);return await U.text()},{name:"read_web_page",description:"A powerful web content extraction tool that retrieves and processes raw content from specified URLs, ideal for data collection, content analysis, and research tasks.",schema:$.object(L1.shape)}),s1=f(async({query:G,engines:U})=>{let L=await fetch(`${process.env.SEARCH_SERVER_URL||"http://localhost:8123"}/website-to-md/search`,{method:"POST",body:JSON.stringify({query:G,engines:U,returnType:"json",withMetadata:!0})});if(!L.ok)throw Error(`HTTP error! status: ${L.status}`);return await L.text()},{name:"web_search",description:"A powerful web search tool that provides comprehensive, real-time results using search engine. Returns relevant web content with customizable parameters for result count, content type, and domain filtering. Ideal for gathering current information, news, and detailed web content analysis.",schema:$.object(W1.shape)});import{AIMessage as Y0,ToolMessage as Z0}from"@langchain/core/messages";import{AIMessage as L0,HumanMessage as W0,SystemMessage as X0,ToolMessage as B0}from"@langchain/core/messages";var V0=(G)=>{return G?.configurable?.thread_id};import{Command as $0,getCurrentTaskInput as H0}from"@langchain/langgraph";import{z as O0}from"zod";import{ToolMessage as F0}from"@langchain/core/messages";import{tool as z0}from"@langchain/core/tools";import{Annotation as N,MessagesAnnotation as B1,START as _0,StateGraph as D0}from"@langchain/langgraph";var A=N.Root({...B1.spec,activeAgent:N});import{z as M0}from"zod";import{ToolMessage as u0}from"@langchain/core/messages";import{tool as r0}from"@langchain/core/tools";import{Command as p0,getCurrentTaskInput as i0}from"@langchain/langgraph";import{Command as m0}from"@langchain/langgraph";import{ChatOpenAI as GG}from"@langchain/openai";import{SystemMessage as WG,HumanMessage as XG,AIMessageChunk as BG,ToolMessage as JG}from"@langchain/core/messages";import{z as b}from"zod";import{withLangGraph as K1}from"@langchain/langgraph/zod";import{MessagesZodMeta as Y1}from"@langchain/langgraph";var T=b.object({messages:K1(b.custom(),Y1).default([])});import{AIMessage as I1,AIMessageChunk as h1,isAIMessage as _1}from"@langchain/core/messages";import{ChatGenerationChunk as n}from"@langchain/core/outputs";import{wrapOpenAIClientError as D1}from"@langchain/openai";import{convertToOpenAITool as QG,isLangChainTool as jG}from"@langchain/core/utils/function_calling";import{isInteropZodSchema as $G}from"@langchain/core/utils/types";import{toJsonSchema as PG}from"@langchain/core/utils/json_schema";function M(G){if(!G)return;else if(G==="any"||G==="required")return"required";else if(G==="auto")return"auto";else if(G==="none")return"none";else if(typeof G==="string")return{type:"function",function:{name:G}};else return G}import{BaseChatOpenAI as S1}from"@langchain/openai";import{AIMessage as d,AIMessageChunk as Z1,ChatMessage as x1,ChatMessageChunk as V1,FunctionMessageChunk as Q1,HumanMessageChunk as j1,SystemMessageChunk as u,ToolMessage as p,ToolMessageChunk as q1,parseBase64DataUrl as k,parseMimeType as r,isDataContentBlock as $1,iife as H1,convertToProviderContentBlock as P1}from"@langchain/core/messages";import{convertLangChainToolCallToOpenAI as O1,makeInvalidToolCall as E1,parseToolCall as F1}from"@langchain/core/output_parsers/openai_tools";import{isZodSchemaV3 as FG,isZodSchemaV4 as yG}from"@langchain/core/utils/types";import{toJSONSchema as RG,parse as IG}from"zod/v4/core";import{zodResponseFormat as _G}from"openai/helpers/zod";function C(G,U){if(U&&typeof U==="object"&&"images"in U&&Array.isArray(U.images)){let L=U.images.filter((W)=>typeof W?.image_url?.url==="string").map((W)=>({type:"image",url:W.image_url.url}));return[{type:"text",text:G},...L]}return G}import{messageToOpenAIRole as i}from"@langchain/openai";var y1={providerName:"ChatOpenAI",fromStandardTextBlock(G){return{type:"text",text:G.text}},fromStandardImageBlock(G){if(G.source_type==="url")return{type:"image_url",image_url:{url:G.url,...G.metadata?.detail?{detail:G.metadata.detail}:{}}};if(G.source_type==="base64")return{type:"image_url",image_url:{url:`data:${G.mime_type??""};base64,${G.data}`,...G.metadata?.detail?{detail:G.metadata.detail}:{}}};throw Error(`Image content blocks with source_type ${G.source_type} are not supported for ChatOpenAI`)},fromStandardAudioBlock(G){if(G.source_type==="url"){let U=k({dataUrl:G.url});if(!U)throw Error(`URL audio blocks with source_type ${G.source_type} must be formatted as a data URL for ChatOpenAI`);let L=U.mime_type||G.mime_type||"",W;try{W=r(L)}catch{throw Error(`Audio blocks with source_type ${G.source_type} must have mime type of audio/wav or audio/mp3`)}if(W.type!=="audio"||W.subtype!=="wav"&&W.subtype!=="mp3")throw Error(`Audio blocks with source_type ${G.source_type} must have mime type of audio/wav or audio/mp3`);return{type:"input_audio",input_audio:{format:W.subtype,data:U.data}}}if(G.source_type==="base64"){let U;try{U=r(G.mime_type??"")}catch{throw Error(`Audio blocks with source_type ${G.source_type} must have mime type of audio/wav or audio/mp3`)}if(U.type!=="audio"||U.subtype!=="wav"&&U.subtype!=="mp3")throw Error(`Audio blocks with source_type ${G.source_type} must have mime type of audio/wav or audio/mp3`);return{type:"input_audio",input_audio:{format:U.subtype,data:G.data}}}throw Error(`Audio content blocks with source_type ${G.source_type} are not supported for ChatOpenAI`)},fromStandardFileBlock(G){if(G.source_type==="url"){if(!k({dataUrl:G.url}))throw Error(`URL file blocks with source_type ${G.source_type} must be formatted as a data URL for ChatOpenAI`);return{type:"file",file:{file_data:G.url,...G.metadata?.filename||G.metadata?.name?{filename:G.metadata?.filename||G.metadata?.name}:{}}}}if(G.source_type==="base64")return{type:"file",file:{file_data:`data:${G.mime_type??""};base64,${G.data}`,...G.metadata?.filename||G.metadata?.name||G.metadata?.title?{filename:G.metadata?.filename||G.metadata?.name||G.metadata?.title}:{}}};if(G.source_type==="id")return{type:"file",file:{file_id:G.id}};throw Error(`File content blocks with source_type ${G.source_type} are not supported for ChatOpenAI`)}},c=({message:G,rawResponse:U,includeRawResponse:L})=>{let W=G.tool_calls;switch(G.role){case"assistant":{let X=[],B=[];for(let K of W??[])try{X.push(F1(K,{returnId:!0}))}catch(Q){B.push(E1(K,Q.message))}let J={function_call:G.function_call,tool_calls:W};if(L!==void 0)J.__raw_response=U;let v={model_provider:"openai",model_name:U.model,...U.system_fingerprint?{usage:{...U.usage},system_fingerprint:U.system_fingerprint}:{}};if(G.audio)J.audio=G.audio;let Z=C(G.content||"",U.choices?.[0]?.message);return new d({content:Z,tool_calls:X,invalid_tool_calls:B,additional_kwargs:J,response_metadata:v,id:U.id})}default:return new x1(G.content||"",G.role??"unknown")}},g=({delta:G,rawResponse:U,includeRawResponse:L,defaultRole:W})=>{let X=G.role??W,B=G.content??"",J;if(G.function_call)J={function_call:G.function_call};else if(G.tool_calls)J={tool_calls:G.tool_calls};else J={};if(L)J.__raw_response=U;if(G.audio)J.audio={...G.audio,index:U.choices[0].index};let v={model_provider:"openai",usage:{...U.usage}};if(X==="user")return new j1({content:B,response_metadata:v});else if(X==="assistant"){let Z=[];if(Array.isArray(G.tool_calls))for(let K of G.tool_calls)Z.push({name:K.function?.name,args:K.function?.arguments,id:K.id,index:K.index,type:"tool_call_chunk"});return new Z1({content:B,tool_call_chunks:Z,additional_kwargs:J,id:U.id,response_metadata:v})}else if(X==="system")return new u({content:B,response_metadata:v});else if(X==="developer")return new u({content:B,response_metadata:v,additional_kwargs:{__openai_role__:"developer"}});else if(X==="function")return new Q1({content:B,additional_kwargs:J,name:G.name,response_metadata:v});else if(X==="tool")return new q1({content:B,additional_kwargs:J,tool_call_id:G.tool_call_id,response_metadata:v});else return new V1({content:B,role:X,response_metadata:v})},z1=(G)=>{if(G.type==="image"){if(G.url)return{type:"image_url",image_url:{url:G.url}};else if(G.data)return{type:"image_url",image_url:{url:`data:${G.mimeType};base64,${G.data}`}}}if(G.type==="audio"){if(G.data){let U=H1(()=>{let[,L]=G.mimeType.split("/");if(L==="wav"||L==="mp3")return L;return"wav"});return{type:"input_audio",input_audio:{data:G.data.toString(),format:U}}}}if(G.type==="file"){if(G.data)return{type:"file",file:{file_data:G.data.toString()}};if(G.fileId)return{type:"file",file:{file_id:G.fileId}}}return};function m(G){if(!G)return!1;if(/^o\d/.test(G??""))return!0;if(G.startsWith("gpt-5")&&!G.startsWith("gpt-5-chat"))return!0;return!1}var R1=({message:G,model:U})=>{let L=i(G);if(L==="system"&&m(U))L="developer";if(L==="developer")return{role:"developer",content:G.contentBlocks.filter((X)=>X.type==="text")};else if(L==="system")return{role:"system",content:G.contentBlocks.filter((X)=>X.type==="text")};else if(L==="assistant")return{role:"assistant",content:G.contentBlocks.filter((X)=>X.type==="text")};else if(L==="tool"&&p.isInstance(G))return{role:"tool",tool_call_id:G.tool_call_id,content:G.contentBlocks.filter((X)=>X.type==="text")};else if(L==="function")return{role:"function",name:G.name??"",content:G.contentBlocks.filter((X)=>X.type==="text").join("")};function*W(X){for(let B of X){if(B.type==="text")yield{type:"text",text:B.text};let J=z1(B);if(J)yield J}}return{role:"user",content:Array.from(W(G.contentBlocks))}},D=({messages:G,model:U})=>{return G.flatMap((L)=>{if("output_version"in L.response_metadata&&L.response_metadata?.output_version==="v1")return R1({message:L});let W=i(L);if(W==="system"&&m(U))W="developer";let X=typeof L.content==="string"?L.content:L.content.map((J)=>{if($1(J))return P1(J,y1);return J}),B={role:W,content:X};if(L.name!=null)B.name=L.name;if(L.additional_kwargs.function_call!=null)B.function_call=L.additional_kwargs.function_call,B.content="";if(L.additional_kwargs?.reasoning_content&&U?.includes("deepseek"))B.reasoning_content=L.additional_kwargs.reasoning_content;if(d.isInstance(L)&&!!L.tool_calls?.length)B.tool_calls=L.tool_calls.map(O1),B.content="";else{if(L.additional_kwargs.tool_calls!=null)B.tool_calls=L.additional_kwargs.tool_calls;if(p.isInstance(L)&&L.tool_call_id!=null)B.tool_call_id=L.tool_call_id}if(L.additional_kwargs.audio&&typeof L.additional_kwargs.audio==="object"&&"id"in L.additional_kwargs.audio){let J={role:"assistant",audio:{id:L.additional_kwargs.audio.id}};return[B,J]}return B})};class R extends S1{invocationParams(G,U){let L;if(G?.strict!==void 0)L=G.strict;else if(this.supportsStrictToolCalling!==void 0)L=this.supportsStrictToolCalling;let W={};if(G?.stream_options!==void 0)W={stream_options:G.stream_options};else if(this.streamUsage&&(this.streaming||U?.streaming))W={stream_options:{include_usage:!0}};let X={model:this.model,temperature:this.temperature,top_p:this.topP,frequency_penalty:this.frequencyPenalty,presence_penalty:this.presencePenalty,logprobs:this.logprobs,top_logprobs:this.topLogprobs,n:this.n,logit_bias:this.logitBias,stop:G?.stop??this.stopSequences,user:this.user,stream:this.streaming,functions:G?.functions,function_call:G?.function_call,tools:G?.tools?.length?G.tools.map((J)=>this._convertChatOpenAIToolToCompletionsTool(J,{strict:L})):void 0,tool_choice:M(G?.tool_choice),response_format:this._getResponseFormat(G?.response_format),seed:G?.seed,...W,parallel_tool_calls:G?.parallel_tool_calls,...this.audio||G?.audio?{audio:this.audio||G?.audio}:{},...this.modalities||G?.modalities?{modalities:this.modalities||G?.modalities}:{},...this.modelKwargs,prompt_cache_key:G?.promptCacheKey??this.promptCacheKey,verbosity:G?.verbosity??this.verbosity};if(G?.prediction!==void 0)X.prediction=G.prediction;if(this.service_tier!==void 0)X.service_tier=this.service_tier;if(G?.service_tier!==void 0)X.service_tier=G.service_tier;let B=this._getReasoningParams(G);if(B!==void 0&&B.effort!==void 0)X.reasoning_effort=B.effort;if(this.reasoning)X.max_completion_tokens=this.maxTokens===-1?void 0:this.maxTokens;else X.max_tokens=this.maxTokens===-1?void 0:this.maxTokens;return X}async _generate(G,U,L){let W={},X=this.invocationParams(U),B=D({messages:G,model:this.model});if(X.stream){let J=this._streamResponseChunks(G,U,L),v={};for await(let Y of J){Y.message.response_metadata={...Y.generationInfo,...Y.message.response_metadata};let V=Y.generationInfo?.completion??0;if(v[V]===void 0)v[V]=Y;else v[V]=v[V].concat(Y)}let Z=Object.entries(v).sort(([Y],[V])=>parseInt(Y,10)-parseInt(V,10)).map(([Y,V])=>V),{functions:K,function_call:Q}=this.invocationParams(U),x=await this._getEstimatedTokenCountFromPrompt(G,K,Q),H=await this._getNumTokensFromGenerations(Z);return W.input_tokens=x,W.output_tokens=H,W.total_tokens=x+H,{generations:Z,llmOutput:{estimatedTokenUsage:{promptTokens:W.input_tokens,completionTokens:W.output_tokens,totalTokens:W.total_tokens}}}}else{let J=await this.completionWithRetry({...X,stream:!1,messages:B},{signal:U?.signal,...U?.options}),{completion_tokens:v,prompt_tokens:Z,total_tokens:K,prompt_tokens_details:Q,completion_tokens_details:x}=J?.usage??{};if(v)W.output_tokens=(W.output_tokens??0)+v;if(Z)W.input_tokens=(W.input_tokens??0)+Z;if(K)W.total_tokens=(W.total_tokens??0)+K;if(Q?.audio_tokens!==null||Q?.cached_tokens!==null)W.input_token_details={...Q?.audio_tokens!==null&&{audio:Q?.audio_tokens},...Q?.cached_tokens!==null&&{cache_read:Q?.cached_tokens}};if(x?.audio_tokens!==null||x?.reasoning_tokens!==null)W.output_token_details={...x?.audio_tokens!==null&&{audio:x?.audio_tokens},...x?.reasoning_tokens!==null&&{reasoning:x?.reasoning_tokens}};let H=[];for(let Y of J?.choices??[]){let V=Y.message?.content??"",F=Y.message?.reasoning_content??Y.message?.reasoning??"",j={text:V,message:this._convertCompletionsMessageToBaseMessage(Y.message??{role:"assistant"},J)};if(j.message.additional_kwargs={...j.message.additional_kwargs,reasoning_content:F},j.generationInfo={...Y.finish_reason?{finish_reason:Y.finish_reason}:{},...Y.logprobs?{logprobs:Y.logprobs}:{}},_1(j.message))j.message.usage_metadata=W;j.message=new I1(Object.fromEntries(Object.entries(j.message).filter(([y])=>!y.startsWith("lc_")))),H.push(j)}return{generations:H,llmOutput:{tokenUsage:{promptTokens:W.input_tokens,completionTokens:W.output_tokens,totalTokens:W.total_tokens}}}}}async*_streamResponseChunks(G,U,L){let W=D({messages:G,model:this.model}),X={...this.invocationParams(U,{streaming:!0}),messages:W,stream:!0},B,J=await this.completionWithRetry(X,U),v;for await(let Z of J){let K=Z?.choices?.[0];if(Z.usage)v=Z.usage;if(!K)continue;let{delta:Q}=K;if(!Q)continue;let x=this._convertCompletionsDeltaToBaseMessageChunk(Q,Z,B),H=Q.reasoning_content??Q.reasoning??"";if(H)x.additional_kwargs={...x.additional_kwargs,reasoning_content:H};B=Q.role??B;let Y={prompt:U.promptIndex??0,completion:K.index??0};if(typeof x.content!=="string"){console.log("[WARNING]: Received non-string content from OpenAI. This is currently not supported.");continue}let V={...Y};if(K.finish_reason!=null)V.finish_reason=K.finish_reason,V.system_fingerprint=Z.system_fingerprint,V.model_name=Z.model,V.service_tier=Z.service_tier;if(this.logprobs)V.logprobs=K.logprobs;let F=new n({message:x,text:x.content,generationInfo:V});yield F,await L?.handleLLMNewToken(F.text??"",Y,void 0,void 0,void 0,{chunk:F})}if(v){let Z={...v.prompt_tokens_details?.audio_tokens!==null&&{audio:v.prompt_tokens_details?.audio_tokens},...v.prompt_tokens_details?.cached_tokens!==null&&{cache_read:v.prompt_tokens_details?.cached_tokens}},K={...v.completion_tokens_details?.audio_tokens!==null&&{audio:v.completion_tokens_details?.audio_tokens},...v.completion_tokens_details?.reasoning_tokens!==null&&{reasoning:v.completion_tokens_details?.reasoning_tokens}};yield new n({message:new h1({content:"",response_metadata:{usage:{...v}},usage_metadata:{input_tokens:v.prompt_tokens,output_tokens:v.completion_tokens,total_tokens:v.total_tokens,...Object.keys(Z).length>0&&{input_token_details:Z},...Object.keys(K).length>0&&{output_token_details:K}}}),text:""})}if(U.signal?.aborted)throw Error("AbortError")}async completionWithRetry(G,U){let L=this._getClientOptions(U),W=G.response_format&&G.response_format.type==="json_schema";return this.caller.call(async()=>{try{if(W&&!G.stream)return await this.client.chat.completions.parse(G,L);else return await this.client.chat.completions.create(G,L)}catch(X){throw D1(X)}})}_convertCompletionsDeltaToBaseMessageChunk(G,U,L){return g({delta:G,rawResponse:U,includeRawResponse:this.__includeRawResponse,defaultRole:L})}_convertCompletionsMessageToBaseMessage(G,U){return c({message:G,rawResponse:U,includeRawResponse:this.__includeRawResponse})}}import{createMiddleware as iG}from"langchain";import{z as O}from"zod";import{MessagesAnnotation as w1}from"@langchain/langgraph";import{SubAgentAnnotation as f1,SubAgentStateSchema as N1}from"@langgraph-js/standard-agent";var vU=T.extend(N1.shape).extend({provider_id:O.string().default("openai"),provider_type:O.string().default("openai"),model_id:O.string().default("qwen-plus"),agent_name:O.string().default("Code Agent"),switch_command:O.string().optional(),enable_thinking:O.boolean().default(!0),user_id:O.string().optional(),thread_id:O.string().optional(),cwd:O.string().default(process.cwd())}),l=_(f1,w1).build({provider_id:q(()=>"openai"),provider_type:q(()=>"openai"),model_id:q(()=>"qwen-plus"),agent_name:q(()=>"Code Agent"),switch_command:q(()=>null),enable_thinking:q(()=>!0),user_id:q(()=>""),thread_id:q(()=>""),cwd:q(()=>process.cwd())});import{ChatAnthropic as A1}from"@langchain/anthropic";import{ChatGoogleGenerativeAI as b1}from"@langchain/google-genai";var t=async(G,U={})=>{let{modelProvider:L,enableThinking:W=!0}=U,X="v1",B;if(L==="anthropic")B=new A1({model:G,streamUsage:!0,streaming:!0,maxRetries:1,maxTokens:64000,thinking:W?{budget_tokens:1024,type:"enabled"}:void 0,apiKey:U.apiKey,anthropicApiUrl:U.baseURL,metadata:U.metadata,outputVersion:"v1"});else if(L==="gemini"||L==="google")console.log(process.env.GOOGLE_BASE_URL),B=new b1({model:G,apiKey:U.apiKey,baseUrl:U.baseURL||process.env.GOOGLE_BASE_URL,maxRetries:1,streaming:!0,streamUsage:!0,thinkingConfig:{},metadata:U.metadata,outputVersion:"v1"});else B=new R({model:G,configuration:{baseURL:U.baseURL,apiKey:U.apiKey},streamUsage:!0,maxRetries:1,modelKwargs:W?{thinking:{type:"enabled"}}:void 0,metadata:U.metadata,outputVersion:"v1"});return B};import{createAgent as M1,tool as C1}from"langchain";import{anthropicPromptCachingMiddleware as u1}from"@langgraph-js/standard-agent";import{MCPMiddleware as T1}from"@langgraph-js/standard-agent";class h extends T1{constructor(G){super({configProvider:async()=>h.loadConfigFromStore(),cache:G})}static async loadConfigFromStore(){try{let G=new s;await G.initialize();let U=await G.getConfig();if(!U.mcp_config||Object.keys(U.mcp_config).length===0)return null;return{servers:U.mcp_config}}catch(G){return console.error("Failed to load MCP config from store:",G),null}}}import{humanInTheLoopMiddleware as k1}from"@langgraph-js/standard-agent";var r1={ask_user_questions:{allowedDecisions:["respond","approve","reject","edit"]}};async function SU(G,U,L,W,X){let B=!!X?.parent_id,J=await U.getAgent(G);if(!J)throw Error(`Agent not found: ${G}`);let v=await U.validateAgent(G);if(!v.valid)throw Error(`Agent validation failed: ${JSON.stringify(v.errors)}`);let Z=await t(L.model_id,{modelProvider:L.provider_id,streamUsage:!0,enableThinking:L.enable_thinking,metadata:{parent_id:X?.parent_id}}),K=[],Q=U.tools;for(let[j,y]of Object.entries(J.tools)){let E=Q.getImplementation(j);if(!E){console.warn(`Tool ${j} not found in registry`);continue}if(!E.name||!y)continue;let o=C1(async(e)=>{let z=await E.execute(e);if(z&&typeof z==="object"&&"content"in z)return z.content;return z},{name:E.name,description:E.description,schema:E.paramsSchema});K.push(o)}let x=[];for(let[j,y]of Object.entries(J.middleware)){if(j==="subagents"&&B)continue;let E=U.middlewares.getImplementation(j);if(!y)break;x.push(await E.execute(y.customParams||{}))}let H=new h;x.push(H);let Y={...r1};if(process.env.YOLO_MODE!=="true")Object.assign(Y,{terminal:{allowedDecisions:["approve","reject","edit"]}});if(x.push(k1({interruptOn:Y})),process.env.MODEL_PROVIDER==="anthropic")x.push(u1());let V=await U.getPrompt(J.systemPromptId);if(!V)throw Error(`Prompt not found: ${J.systemPromptId}`);let F=V.content+`
|
|
24
24
|
|
|
25
25
|
${await a(L)}`;return M1({name:B?`subagent_${X.parent_id}`:J.name,model:Z,systemPrompt:F,tools:K,stateSchema:l,middleware:x})}async function wU(G){return(await G.listAgents()).map((L)=>L.id)}
|
|
26
|
-
export{V0 as
|
|
26
|
+
export{V0 as zb,vU as Ab,l as Bb,t as Cb,SU as Db,wU as Eb};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{v as a}from"./chunk-vkfgx6sa.js";import"./chunk-feptb1bb.js";export{a as default};
|