@qitqode/qitqode-android-arm64 0.2.10 → 0.2.11
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/bundle/chunk-06j0gaen.js +2 -0
- package/bundle/{chunk-1r81q7m3.js → chunk-075gkea2.js} +1 -1
- package/bundle/{chunk-9fjcgdea.js → chunk-09n24ztn.js} +1 -1
- package/bundle/chunk-0bn86djg.js +3 -0
- package/bundle/chunk-0mm40z8g.js +2 -0
- package/bundle/{chunk-mn5cacf6.js → chunk-0tya4pqb.js} +2 -2
- package/bundle/{chunk-ff8q10gk.js → chunk-1dnvdeat.js} +2 -2
- package/bundle/{chunk-kcqeh1e5.js → chunk-1h9sc0gy.js} +1 -1
- package/bundle/chunk-1mqfhw0f.js +2 -0
- package/bundle/{chunk-gq3zb4wv.js → chunk-1p39y33b.js} +2 -2
- package/bundle/{chunk-tg1f56s3.js → chunk-1pd943m9.js} +1 -1
- package/bundle/{chunk-qbewhcsz.js → chunk-1rsabv4p.js} +1 -1
- package/bundle/{chunk-vsfj16v9.js → chunk-1tdy73ha.js} +2 -2
- package/bundle/{chunk-3zzrdpsx.js → chunk-1yh1f9yj.js} +1 -1
- package/bundle/{chunk-62y6zk9x.js → chunk-22wa8zty.js} +1 -1
- package/bundle/chunk-28kte9rt.js +2 -0
- package/bundle/chunk-2dhjehxe.js +2 -0
- package/bundle/{chunk-dz3kcsb6.js → chunk-2h8b0csf.js} +2 -2
- package/bundle/chunk-2nnfxbd2.js +2 -0
- package/bundle/{chunk-g08qj9z3.js → chunk-2ts74cgq.js} +2 -2
- package/bundle/{chunk-0mwzxqt5.js → chunk-2vsqsxe1.js} +3 -3
- package/bundle/chunk-2w5zmgpb.js +2 -0
- package/bundle/{chunk-6wjdhvdf.js → chunk-32x2901e.js} +1 -1
- package/bundle/chunk-34qt3fqj.js +2 -0
- package/bundle/{chunk-by1kwg4r.js → chunk-3amgvg81.js} +2 -2
- package/bundle/{chunk-ge7csm6m.js → chunk-3hawwbw6.js} +2 -2
- package/bundle/chunk-3p0xvt47.js +2 -0
- package/bundle/chunk-3pzx5ret.js +2 -0
- package/bundle/{chunk-f6vy70p6.js → chunk-3tf7xfw5.js} +2 -2
- package/bundle/chunk-3y4rmqmm.js +2 -0
- package/bundle/{chunk-q0xgxygw.js → chunk-42gd2vx4.js} +1 -1
- package/bundle/{chunk-8rkszwxq.js → chunk-43eqr0ds.js} +6 -6
- package/bundle/{chunk-d1xfv4d3.js → chunk-43x9n8rp.js} +1 -1
- package/bundle/{chunk-kk850sdw.js → chunk-44685nzw.js} +2 -2
- package/bundle/{chunk-z023h7t8.js → chunk-46ewdxgh.js} +1 -1
- package/bundle/{chunk-v8bxj01h.js → chunk-4805mxf7.js} +1 -1
- package/bundle/chunk-486874bd.js +2 -0
- package/bundle/{chunk-0tkznq75.js → chunk-48y4n9ne.js} +1 -1
- package/bundle/{chunk-56yp5v0w.js → chunk-49brdmgp.js} +1 -1
- package/bundle/{chunk-ngyv4fhn.js → chunk-49we3vy1.js} +2 -2
- package/bundle/chunk-4bcbvfsw.js +2 -0
- package/bundle/{chunk-d0dsgxk4.js → chunk-4c6d1wy1.js} +2 -2
- package/bundle/{chunk-9tz18e54.js → chunk-4d9s7cgr.js} +1 -1
- package/bundle/{chunk-kec1xw1n.js → chunk-4ngvj758.js} +1 -1
- package/bundle/{chunk-pwsajn96.js → chunk-4q14whpc.js} +1 -1
- package/bundle/chunk-4t1ysdag.js +2 -0
- package/bundle/{chunk-nh4zk07t.js → chunk-50knjq36.js} +1 -1
- package/bundle/{chunk-9zy5tsry.js → chunk-51vn4f06.js} +3 -3
- package/bundle/{chunk-5fcyb122.js → chunk-5mgmq6yz.js} +1 -1
- package/bundle/chunk-5q7a4h2w.js +2 -0
- package/bundle/{chunk-dx7rexx3.js → chunk-5qydhr42.js} +3 -3
- package/bundle/{chunk-je8fcsa9.js → chunk-611wfdn3.js} +1 -1
- package/bundle/{chunk-9pj10pgd.js → chunk-63t0rhc9.js} +2 -2
- package/bundle/chunk-63vamhf7.js +2 -0
- package/bundle/chunk-6hhv3n7c.js +2 -0
- package/bundle/{chunk-gbkz04ke.js → chunk-6p848y99.js} +1 -1
- package/bundle/{chunk-tjfer79w.js → chunk-6xx66mr1.js} +1 -1
- package/bundle/{chunk-mmqyter3.js → chunk-71h3pmnn.js} +1 -1
- package/bundle/{chunk-yzd6cyep.js → chunk-78e76m4h.js} +1 -1
- package/bundle/{chunk-z0m1qm7j.js → chunk-78yvbv9b.js} +2 -2
- package/bundle/chunk-7a9kfb2n.js +2 -0
- package/bundle/{chunk-eme9xmh3.js → chunk-7b5vney6.js} +1 -1
- package/bundle/{chunk-yexzxx6f.js → chunk-7jvx29js.js} +1 -1
- package/bundle/{chunk-vy93mn7d.js → chunk-7wshaze9.js} +2 -2
- package/bundle/{chunk-q26s0wb5.js → chunk-7x4g7h04.js} +1 -1
- package/bundle/chunk-7x9m1smk.js +2 -0
- package/bundle/chunk-82mnr6sf.js +2 -0
- package/bundle/{chunk-mp1x10t5.js → chunk-84qx54nf.js} +2 -2
- package/bundle/{chunk-c1c8ch3g.js → chunk-88hmeyf5.js} +8 -8
- package/bundle/{chunk-vk35g121.js → chunk-89b6ttzs.js} +2 -2
- package/bundle/chunk-8bea2r6p.js +2 -0
- package/bundle/{chunk-fvv1cret.js → chunk-8gn7r4kb.js} +1 -1
- package/bundle/chunk-8h6mhzhg.js +2 -0
- package/bundle/chunk-8n1cmvr7.js +2 -0
- package/bundle/{chunk-e10c0crf.js → chunk-8qbhnwej.js} +1 -1
- package/bundle/{chunk-at4dge22.js → chunk-8rbbt1s8.js} +1 -1
- package/bundle/{chunk-6gbdvz6p.js → chunk-8rc7cvex.js} +1 -1
- package/bundle/{chunk-cdenq7jb.js → chunk-8t17w67q.js} +1 -1
- package/bundle/{chunk-qq9yc2tp.js → chunk-8y03p2md.js} +2 -2
- package/bundle/{chunk-m01h6kk1.js → chunk-8z65v9c9.js} +1 -1
- package/bundle/{chunk-f17se3hh.js → chunk-92xxg12q.js} +1 -1
- package/bundle/chunk-955zj1y6.js +2 -0
- package/bundle/{chunk-vbb1jg02.js → chunk-95tec4gm.js} +1 -1
- package/bundle/chunk-95vp9bvk.js +2 -0
- package/bundle/{chunk-eqpep2m2.js → chunk-96nmxprr.js} +1 -1
- package/bundle/{chunk-9nf5650d.js → chunk-98z5pfvj.js} +1 -1
- package/bundle/{chunk-xcmbxny8.js → chunk-9d2mtevw.js} +1 -1
- package/bundle/{chunk-c3ey896z.js → chunk-9d8meavf.js} +1 -1
- package/bundle/{chunk-fsndgr9a.js → chunk-9gs4en9v.js} +1 -1
- package/bundle/{chunk-djfrkbd5.js → chunk-9svh74gt.js} +1 -1
- package/bundle/chunk-9wzxnwv7.js +2 -0
- package/bundle/chunk-9zve998d.js +2 -0
- package/bundle/{chunk-yspstxkq.js → chunk-a2pd7nt5.js} +1 -1
- package/bundle/{chunk-pky8h8rh.js → chunk-a4cmpa56.js} +1 -1
- package/bundle/chunk-a9bkr9x4.js +2 -0
- package/bundle/chunk-ac5vzpzt.js +2 -0
- package/bundle/{chunk-532fnfmw.js → chunk-ajgwyrcf.js} +2 -2
- package/bundle/{chunk-c8k32724.js → chunk-ajyfms68.js} +1 -1
- package/bundle/{chunk-q7s6z0nz.js → chunk-akrcbxfa.js} +1 -1
- package/bundle/{chunk-ajnzv5jt.js → chunk-aykvrqrp.js} +2 -2
- package/bundle/{chunk-rk21wv4k.js → chunk-b274mb6v.js} +1 -1
- package/bundle/{chunk-5p2r8bxx.js → chunk-b79bb2g3.js} +1 -1
- package/bundle/{chunk-8nnajdwf.js → chunk-bd66q24j.js} +3 -3
- package/bundle/{chunk-qdbx1qkr.js → chunk-bffm0wv9.js} +1 -1
- package/bundle/{chunk-se8d5xg9.js → chunk-bh1zbz62.js} +1 -1
- package/bundle/{chunk-f3y5kr76.js → chunk-bqqxvagz.js} +2 -2
- package/bundle/{chunk-h6z86aay.js → chunk-bw0951fs.js} +1 -1
- package/bundle/{chunk-8peby2d1.js → chunk-bwzbcwff.js} +1 -1
- package/bundle/{chunk-wh2qqhep.js → chunk-bxc3z38f.js} +2 -2
- package/bundle/{chunk-ztvkzex1.js → chunk-bzz2expb.js} +1 -1
- package/bundle/chunk-c1exgasy.js +2 -0
- package/bundle/{chunk-qm9fm5ja.js → chunk-c53ev0da.js} +2 -2
- package/bundle/{chunk-wd2xmkdp.js → chunk-c5n49vrd.js} +2 -2
- package/bundle/{chunk-m4j6t713.js → chunk-ccghr6pm.js} +1 -1
- package/bundle/{chunk-j7637cwg.js → chunk-cg7zeppb.js} +2 -2
- package/bundle/chunk-cgxzmkkf.js +2 -0
- package/bundle/{chunk-1m78yy4k.js → chunk-cm7yp259.js} +1 -1
- package/bundle/chunk-cs3cbfm8.js +2 -0
- package/bundle/{chunk-x308f9j4.js → chunk-cshsqavb.js} +2 -2
- package/bundle/{chunk-vbfc0wgv.js → chunk-csmdhh7r.js} +2 -2
- package/bundle/{chunk-8v60bqm0.js → chunk-cydpdkx7.js} +1 -1
- package/bundle/{chunk-f6btedtt.js → chunk-czfjmrrq.js} +1 -1
- package/bundle/{chunk-a70m6kyn.js → chunk-d1j8frtq.js} +1 -1
- package/bundle/chunk-d29te4c1.js +2 -0
- package/bundle/{chunk-snf6ahg7.js → chunk-d39e4fa8.js} +1 -1
- package/bundle/chunk-d6q42p18.js +2 -0
- package/bundle/{chunk-f0ab2f28.js → chunk-d6qs2pbx.js} +1 -1
- package/bundle/{chunk-0bhzhh7s.js → chunk-datctfgt.js} +2 -2
- package/bundle/chunk-dfbexagg.js +2 -0
- package/bundle/chunk-dfkcp43a.js +2 -0
- package/bundle/chunk-dps1p1g1.js +2 -0
- package/bundle/{chunk-9d0exvey.js → chunk-dzw0j790.js} +2 -2
- package/bundle/chunk-e1fzgez5.js +2 -0
- package/bundle/{chunk-141p12c4.js → chunk-e5cds19n.js} +1 -1
- package/bundle/{chunk-nqk8d62j.js → chunk-e6ckxkj8.js} +1 -1
- package/bundle/{chunk-v0hnn7nb.js → chunk-e7a50j2w.js} +1 -1
- package/bundle/chunk-e9vh8d52.js +8 -0
- package/bundle/{chunk-j5z95b6f.js → chunk-eftk07r3.js} +1 -1
- package/bundle/chunk-egcvm4x2.js +3 -0
- package/bundle/chunk-ek3b08ed.js +2 -0
- package/bundle/{chunk-s27cz24e.js → chunk-ep92grvg.js} +52 -52
- package/bundle/{chunk-dnjyepb2.js → chunk-ex47pb9n.js} +2 -2
- package/bundle/{chunk-b9f78x5g.js → chunk-eya9c81t.js} +1 -1
- package/bundle/chunk-f78yth0b.js +2 -0
- package/bundle/{chunk-gbnf7zf9.js → chunk-fd6qxjtf.js} +1 -1
- package/bundle/{chunk-c8080519.js → chunk-fnmq42y5.js} +1 -1
- package/bundle/{chunk-nnkfdhh9.js → chunk-fqvrxy41.js} +1 -1
- package/bundle/{chunk-3sj0jv91.js → chunk-fqvsxg00.js} +1 -1
- package/bundle/{chunk-5w7ebtcd.js → chunk-fsagyvkz.js} +1 -1
- package/bundle/{chunk-gb51fn3r.js → chunk-fzxqn4j0.js} +1 -1
- package/bundle/{chunk-p506eydh.js → chunk-g7jwp73v.js} +1 -1
- package/bundle/{chunk-xnxw5zz9.js → chunk-g83d3a0t.js} +2 -2
- package/bundle/chunk-gamnnfna.js +2 -0
- package/bundle/{chunk-dp6ms01y.js → chunk-gfer8ch3.js} +2 -2
- package/bundle/{chunk-c2ns2csn.js → chunk-ghdegwnr.js} +1 -1
- package/bundle/chunk-gjxhz1a6.js +2 -0
- package/bundle/chunk-gpm39v12.js +2 -0
- package/bundle/chunk-gr8emzzx.js +2 -0
- package/bundle/chunk-gt6h68pk.js +2 -0
- package/bundle/{chunk-e72jwbfc.js → chunk-gz8k40ty.js} +1 -1
- package/bundle/{chunk-xvvt886p.js → chunk-h6kmpgak.js} +2 -2
- package/bundle/{chunk-2y5bthrp.js → chunk-h8yf5e2e.js} +1 -1
- package/bundle/{chunk-v8rqgt7h.js → chunk-hama2v6a.js} +1 -1
- package/bundle/{chunk-7a3txs9f.js → chunk-hav9pgf3.js} +2 -2
- package/bundle/chunk-hj588j4f.js +2 -0
- package/bundle/{chunk-c9cngded.js → chunk-hntsg7q4.js} +1 -1
- package/bundle/chunk-hqtex91e.js +2 -0
- package/bundle/{chunk-0sfc21qe.js → chunk-hts68y73.js} +2 -2
- package/bundle/{chunk-kc8n5cgb.js → chunk-j5dnzqjy.js} +1 -1
- package/bundle/{chunk-r81w6skn.js → chunk-j7d3v0x2.js} +1 -1
- package/bundle/{chunk-4a9jqe5s.js → chunk-jcn8bg31.js} +1 -1
- package/bundle/{chunk-2dmcpqak.js → chunk-jf4zyy7r.js} +1 -1
- package/bundle/{chunk-h0pvxre5.js → chunk-jfe9f2wv.js} +1 -1
- package/bundle/{chunk-8gpjmj42.js → chunk-jh2za7y4.js} +3 -3
- package/bundle/chunk-jmgpr5th.js +2 -0
- package/bundle/chunk-jt79yt0t.js +2 -0
- package/bundle/{chunk-7rbg6mg9.js → chunk-jt7g0r2j.js} +2 -2
- package/bundle/chunk-jtz5re73.js +2 -0
- package/bundle/{chunk-81dvy370.js → chunk-k232ny9m.js} +1 -1
- package/bundle/{chunk-t9pq363q.js → chunk-k4ajben7.js} +2 -2
- package/bundle/chunk-k4bj677f.js +3 -0
- package/bundle/{chunk-brk1jca3.js → chunk-k4d8gwxe.js} +1 -1
- package/bundle/{chunk-zskdxbbh.js → chunk-k558fr15.js} +1 -1
- package/bundle/{chunk-eabbrt1p.js → chunk-k56zj08h.js} +1 -1
- package/bundle/{chunk-61t4g8bh.js → chunk-k5swnh8m.js} +4 -4
- package/bundle/{chunk-gksbv613.js → chunk-k8zbhj2p.js} +2 -2
- package/bundle/{chunk-c8yc8qcd.js → chunk-kr975sx0.js} +1 -1
- package/bundle/{chunk-qdafm7qg.js → chunk-krk24aqm.js} +2 -2
- package/bundle/{chunk-3mtjxmw1.js → chunk-kt982884.js} +1 -1
- package/bundle/chunk-kw5z5awx.js +2 -0
- package/bundle/{chunk-vjt6mh10.js → chunk-kxdw2vtq.js} +2 -2
- package/bundle/{chunk-rxnd79h7.js → chunk-m8phqgxp.js} +1 -1
- package/bundle/{chunk-psqtptrs.js → chunk-mazakqr7.js} +1 -1
- package/bundle/{chunk-cxtwavyf.js → chunk-mnxcykeq.js} +2 -2
- package/bundle/chunk-mp42gb6q.js +2 -0
- package/bundle/{chunk-yh1t6jrj.js → chunk-mp5m0acf.js} +1 -1
- package/bundle/chunk-mq0733qh.js +2 -0
- package/bundle/chunk-mrcsatmn.js +2 -0
- package/bundle/{chunk-qtyapmy7.js → chunk-n230jbn9.js} +1 -1
- package/bundle/chunk-n24yx79r.js +5 -0
- package/bundle/{chunk-acsqvgdw.js → chunk-n2ytaxyn.js} +1 -1
- package/bundle/{chunk-819qr675.js → chunk-n4fwztya.js} +1 -1
- package/bundle/{chunk-z69tt390.js → chunk-n5dxwryh.js} +1 -1
- package/bundle/{chunk-xv03hbgj.js → chunk-n9969djm.js} +1 -1
- package/bundle/{chunk-pxm0x3e0.js → chunk-ncvr75f6.js} +2 -2
- package/bundle/chunk-ng2g9kkk.js +2 -0
- package/bundle/chunk-ngfhfyjs.js +2 -0
- package/bundle/{chunk-mn0pshpv.js → chunk-nvvja3ch.js} +1 -1
- package/bundle/{chunk-6axm2qtj.js → chunk-nwkp2f8e.js} +1 -1
- package/bundle/{chunk-d9w2bn2e.js → chunk-nwygsfhk.js} +2 -2
- package/bundle/chunk-p0dnmrqp.js +2 -0
- package/bundle/{chunk-x0hhw46n.js → chunk-p5p4jh9s.js} +1 -1
- package/bundle/chunk-p6h2ydcp.js +2 -0
- package/bundle/{chunk-e1x1mp9m.js → chunk-pcmsxhrb.js} +1 -1
- package/bundle/{chunk-rpdgn9z3.js → chunk-pdcj2rfz.js} +2 -2
- package/bundle/{chunk-t2r51r6v.js → chunk-pfd8gzy4.js} +1 -1
- package/bundle/{chunk-6y58jzak.js → chunk-ph46s66y.js} +1 -1
- package/bundle/{chunk-s05hqtx1.js → chunk-pkm3w0ks.js} +1 -1
- package/bundle/{chunk-dd461rg3.js → chunk-pnmadk2h.js} +1 -1
- package/bundle/{chunk-jt6bvxtr.js → chunk-q65qzc9w.js} +1 -1
- package/bundle/{chunk-qjw2zcq5.js → chunk-q8qx38kz.js} +1 -1
- package/bundle/chunk-qhakedgs.js +2 -0
- package/bundle/{chunk-xj0zc9za.js → chunk-qsgpbt4t.js} +1 -1
- package/bundle/{chunk-ccdjzn2m.js → chunk-qtdxy2q1.js} +3 -3
- package/bundle/chunk-r18zetwf.js +2 -0
- package/bundle/{chunk-3yfjgks3.js → chunk-r1936yb5.js} +1 -1
- package/bundle/{chunk-32xd626h.js → chunk-r4qpsa4e.js} +2 -2
- package/bundle/{chunk-azss4acq.js → chunk-r6055kk0.js} +2 -2
- package/bundle/chunk-r6rgrz25.js +2 -0
- package/bundle/{chunk-t5wdstzv.js → chunk-r9ng8xx5.js} +1 -1
- package/bundle/chunk-rk4vp09j.js +2 -0
- package/bundle/{chunk-e3mrw0k7.js → chunk-rkmg0gbq.js} +1 -1
- package/bundle/{chunk-9s5h0f1y.js → chunk-rpc0he6b.js} +2 -2
- package/bundle/{chunk-h2p984qb.js → chunk-rvev3cy6.js} +2 -2
- package/bundle/{chunk-waa781eh.js → chunk-rx29zmw2.js} +1 -1
- package/bundle/{chunk-5nm5egq0.js → chunk-rxh160jr.js} +2 -2
- package/bundle/{chunk-k10rtgsk.js → chunk-s3hbwksw.js} +1 -1
- package/bundle/{chunk-atacnspd.js → chunk-s3zmxfz2.js} +2 -2
- package/bundle/chunk-s4jp4zce.js +2 -0
- package/bundle/{chunk-qyan69nb.js → chunk-s6vhscvd.js} +2 -2
- package/bundle/{chunk-hgm8yfcb.js → chunk-s81ck6bw.js} +1 -1
- package/bundle/{chunk-3vae1s42.js → chunk-sbj816s8.js} +1 -1
- package/bundle/chunk-sec9y622.js +2 -0
- package/bundle/{chunk-dzma8zvf.js → chunk-seda5sfd.js} +2 -2
- package/bundle/{chunk-tm79yrf3.js → chunk-sjtq9bbb.js} +2 -2
- package/bundle/chunk-sn7q178t.js +2 -0
- package/bundle/chunk-st0h54dm.js +2 -0
- package/bundle/{chunk-b8rzn48q.js → chunk-sxtfssjv.js} +1 -1
- package/bundle/chunk-sz75fx13.js +2 -0
- package/bundle/{chunk-pbanj1gk.js → chunk-t076hwsv.js} +2 -2
- package/bundle/{chunk-p6jf1fyt.js → chunk-t3e19wdp.js} +1 -1
- package/bundle/{chunk-v16n1fep.js → chunk-t7s475b2.js} +2 -2
- package/bundle/chunk-tefh2cgk.js +2 -0
- package/bundle/chunk-tfez99qv.js +2 -0
- package/bundle/chunk-tjk1hymv.js +2 -0
- package/bundle/{chunk-9bbwxp5d.js → chunk-tpw1ewqn.js} +1 -1
- package/bundle/{chunk-wecs14rz.js → chunk-tqnf1p88.js} +1 -1
- package/bundle/{chunk-pyf649pz.js → chunk-tyk97q7c.js} +1 -1
- package/bundle/chunk-tz1sv9kt.js +3 -0
- package/bundle/{chunk-2zjet9tx.js → chunk-tz60e15h.js} +2 -2
- package/bundle/{chunk-xstxdw7v.js → chunk-tzwm08yc.js} +1 -1
- package/bundle/chunk-v1098rqc.js +2 -0
- package/bundle/chunk-v30ezr68.js +11 -0
- package/bundle/{chunk-q8fjktv4.js → chunk-v5j3ypfv.js} +1 -1
- package/bundle/chunk-v5wn741w.js +2 -0
- package/bundle/{chunk-tdevq564.js → chunk-vamwvx0x.js} +1 -1
- package/bundle/{chunk-yce8ph5b.js → chunk-vbcekkw2.js} +2 -2
- package/bundle/{chunk-te91d271.js → chunk-vf75j9wd.js} +1 -1
- package/bundle/{chunk-4sa9t0vx.js → chunk-vhh80d5j.js} +2 -2
- package/bundle/{chunk-5rqjze1g.js → chunk-vm8htc6d.js} +1 -1
- package/bundle/{chunk-cs825mxr.js → chunk-vnz9n9z0.js} +1 -1
- package/bundle/chunk-vp6ttkct.js +2 -0
- package/bundle/chunk-vpcsmwsb.js +2 -0
- package/bundle/{chunk-gmq1kwn0.js → chunk-vrt8wd3r.js} +1 -1
- package/bundle/{chunk-1q10jyka.js → chunk-vyf77kq1.js} +2 -2
- package/bundle/{chunk-pchv413c.js → chunk-w32xhz0x.js} +2 -2
- package/bundle/{chunk-xqwk2zsx.js → chunk-wdy0fsp8.js} +2 -2
- package/bundle/{chunk-gqgjybjc.js → chunk-wkepvmgt.js} +1 -1
- package/bundle/{chunk-g52wmt1v.js → chunk-wp0xd7at.js} +1 -1
- package/bundle/{chunk-x50adh71.js → chunk-wpkr3vzf.js} +1 -1
- package/bundle/{chunk-npdgfqaw.js → chunk-wpx2vmf5.js} +1 -1
- package/bundle/{chunk-2fbkw84y.js → chunk-wqkvsj5y.js} +2 -2
- package/bundle/{chunk-nk5vrenn.js → chunk-wspbjh74.js} +2 -2
- package/bundle/{chunk-qdh2dm62.js → chunk-wzfb19t6.js} +1 -1
- package/bundle/chunk-x23s1s8k.js +2 -0
- package/bundle/{chunk-7s0nq2aa.js → chunk-x28chfpz.js} +2 -2
- package/bundle/{chunk-gx4v8z64.js → chunk-xf1y0sc6.js} +2 -2
- package/bundle/{chunk-h91zmzs5.js → chunk-xfsccqsm.js} +1 -1
- package/bundle/{chunk-pf2vq6t1.js → chunk-xmt17jd4.js} +2 -2
- package/bundle/{chunk-q4mtwv1w.js → chunk-xphzr4wg.js} +2 -2
- package/bundle/chunk-xr6js4ek.js +2 -0
- package/bundle/chunk-y078gb3n.js +2 -0
- package/bundle/{chunk-yydqavgh.js → chunk-y24yxs9g.js} +2 -2
- package/bundle/{chunk-wbt31xap.js → chunk-y565z8n2.js} +2 -2
- package/bundle/{chunk-nq4x6792.js → chunk-y7cqyeve.js} +2 -2
- package/bundle/{chunk-d1fv2c7s.js → chunk-y8bxvp3c.js} +2 -2
- package/bundle/{chunk-zfqgh9h7.js → chunk-y8tx9x5b.js} +1 -1
- package/bundle/{chunk-kds2g7r2.js → chunk-ya6r72ng.js} +1 -1
- package/bundle/chunk-yewjnqee.js +2 -0
- package/bundle/{chunk-2cvwrabw.js → chunk-yg0rs4g1.js} +2 -2
- package/bundle/{chunk-jbcqhw3x.js → chunk-yhr7s8qm.js} +2 -2
- package/bundle/chunk-ykk9e9as.js +2 -0
- package/bundle/chunk-yqn88gjf.js +2 -0
- package/bundle/chunk-yrxg3dex.js +2 -0
- package/bundle/{chunk-7hdb1fhq.js → chunk-yvtbt12y.js} +2 -2
- package/bundle/chunk-z1xeqrgd.js +2 -0
- package/bundle/chunk-z5j46dem.js +2 -0
- package/bundle/{chunk-dm447tgc.js → chunk-zj5snrsa.js} +2 -2
- package/bundle/{chunk-asxmkyz2.js → chunk-zjfdptdj.js} +1 -1
- package/bundle/chunk-zq0hpja9.js +2 -0
- package/bundle/{chunk-td9hm9be.js → chunk-zqzh5hp3.js} +1 -1
- package/bundle/{chunk-ev6jwt7q.js → chunk-zr1cvkpb.js} +1 -1
- package/bundle/{chunk-6mnk5sg3.js → chunk-zr89enb8.js} +1 -1
- package/bundle/{chunk-ecz4h0a2.js → chunk-zskjqrmc.js} +1 -1
- package/bundle/{chunk-1h96bk6p.js → chunk-ztjrm8m0.js} +2 -2
- package/bundle/chunk-zv89qwjc.js +2 -0
- package/bundle/index.js +3 -3
- package/bundle/parser.worker.js +2 -2
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-062chtrq.js +0 -2
- package/bundle/chunk-062vs7bp.js +0 -2
- package/bundle/chunk-08g14hmz.js +0 -2
- package/bundle/chunk-0w2v8dfy.js +0 -2
- package/bundle/chunk-10fr7a2y.js +0 -2
- package/bundle/chunk-15bjhfav.js +0 -3
- package/bundle/chunk-1hv61m11.js +0 -2
- package/bundle/chunk-2mkvx8b2.js +0 -2
- package/bundle/chunk-2rykfc3a.js +0 -2
- package/bundle/chunk-2w5hx4fs.js +0 -2
- package/bundle/chunk-2yy63sxz.js +0 -2
- package/bundle/chunk-2z3fe4qw.js +0 -2
- package/bundle/chunk-361cmmrp.js +0 -2
- package/bundle/chunk-3r6dq1h3.js +0 -2
- package/bundle/chunk-4a12wv2m.js +0 -2
- package/bundle/chunk-547a55ba.js +0 -2
- package/bundle/chunk-5ztmc770.js +0 -2
- package/bundle/chunk-62x3r2q8.js +0 -2
- package/bundle/chunk-6th7vpwm.js +0 -2
- package/bundle/chunk-6ybh5smv.js +0 -2
- package/bundle/chunk-73kprndw.js +0 -2
- package/bundle/chunk-79fr19xf.js +0 -2
- package/bundle/chunk-7ezr478e.js +0 -2
- package/bundle/chunk-7gj1vqyj.js +0 -2
- package/bundle/chunk-7ywfkwb4.js +0 -2
- package/bundle/chunk-85fnnwm2.js +0 -2
- package/bundle/chunk-89fwh84w.js +0 -2
- package/bundle/chunk-8e724g3k.js +0 -2
- package/bundle/chunk-9894a2yn.js +0 -2
- package/bundle/chunk-98ye2nwt.js +0 -2
- package/bundle/chunk-9s4excg8.js +0 -2
- package/bundle/chunk-aetgcegz.js +0 -2
- package/bundle/chunk-agas0nay.js +0 -2
- package/bundle/chunk-ayknzc4m.js +0 -2
- package/bundle/chunk-b2ybst88.js +0 -2
- package/bundle/chunk-bd5vtjd7.js +0 -2
- package/bundle/chunk-bjqqk6jt.js +0 -2
- package/bundle/chunk-cpkcdykz.js +0 -2
- package/bundle/chunk-cyafm8d6.js +0 -2
- package/bundle/chunk-d4316r53.js +0 -2
- package/bundle/chunk-d8ym7mcg.js +0 -2
- package/bundle/chunk-dnpjxjkp.js +0 -2
- package/bundle/chunk-e5gjqtby.js +0 -2
- package/bundle/chunk-ee3mqzms.js +0 -2
- package/bundle/chunk-er5f61s5.js +0 -2
- package/bundle/chunk-er716522.js +0 -2
- package/bundle/chunk-ez3gacqe.js +0 -2
- package/bundle/chunk-fkc7wf1p.js +0 -2
- package/bundle/chunk-fm6z8nqb.js +0 -2
- package/bundle/chunk-g0qwm23d.js +0 -2
- package/bundle/chunk-g4yn8cj8.js +0 -2
- package/bundle/chunk-gsez13bg.js +0 -3
- package/bundle/chunk-h1spsy3y.js +0 -2
- package/bundle/chunk-h8gkv40j.js +0 -2
- package/bundle/chunk-j59kmb49.js +0 -2
- package/bundle/chunk-jv37ghev.js +0 -2
- package/bundle/chunk-k3hcb6qf.js +0 -2
- package/bundle/chunk-k5d822n2.js +0 -3
- package/bundle/chunk-m8ytbq04.js +0 -2
- package/bundle/chunk-mf9nc4xz.js +0 -2
- package/bundle/chunk-mxby91bj.js +0 -2
- package/bundle/chunk-mzv1gh6f.js +0 -2
- package/bundle/chunk-n0hsvvw8.js +0 -2
- package/bundle/chunk-nm1v9z14.js +0 -2
- package/bundle/chunk-p7nstcxa.js +0 -2
- package/bundle/chunk-pfwkvv7g.js +0 -2
- package/bundle/chunk-pn1jz8qj.js +0 -2
- package/bundle/chunk-pqvmtfk7.js +0 -2
- package/bundle/chunk-prgw26g3.js +0 -2
- package/bundle/chunk-pv9ty6v7.js +0 -2
- package/bundle/chunk-q4rstre7.js +0 -2
- package/bundle/chunk-q6jk2v6g.js +0 -2
- package/bundle/chunk-qd43npx3.js +0 -2
- package/bundle/chunk-qdb21y83.js +0 -2
- package/bundle/chunk-qeksaefy.js +0 -2
- package/bundle/chunk-r7t9yb9d.js +0 -2
- package/bundle/chunk-sdv3a4w3.js +0 -2
- package/bundle/chunk-sk89becn.js +0 -2
- package/bundle/chunk-tc0996xz.js +0 -2
- package/bundle/chunk-tfs50mgj.js +0 -2
- package/bundle/chunk-thecq33z.js +0 -3
- package/bundle/chunk-tjvtp9d9.js +0 -2
- package/bundle/chunk-tkm9m3n0.js +0 -2
- package/bundle/chunk-v03xq38e.js +0 -5
- package/bundle/chunk-v1s1rcqx.js +0 -2
- package/bundle/chunk-v4dt4062.js +0 -2
- package/bundle/chunk-wgrq86kd.js +0 -2
- package/bundle/chunk-x8ks2bn7.js +0 -2
- package/bundle/chunk-xgf4k9q7.js +0 -10
- package/bundle/chunk-xy2ty5h5.js +0 -8
- package/bundle/chunk-z0383stv.js +0 -2
- package/bundle/chunk-zewrmk8x.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-djfrkbd5.js";var e={"ui.sessionReview.title":"\u062A\u063A\u064A\u064A\u0631\u0627\u062A \u0627\u0644\u062C\u0644\u0633\u0629","ui.sessionReview.title.lastTurn":"\u062A\u063A\u064A\u064A\u0631\u0627\u062A \u0622\u062E\u0631 \u062F\u0648\u0631","ui.sessionReview.diffStyle.unified":"\u0645\u0648\u062D\u062F","ui.sessionReview.diffStyle.split":"\u0645\u0646\u0642\u0633\u0645","ui.sessionReview.openFile":"\u0641\u062A\u062D \u0645\u0644\u0641","ui.sessionReview.selection.line":"\u0633\u0637\u0631 {{line}}","ui.sessionReview.selection.lines":"\u0627\u0644\u0623\u0633\u0637\u0631 {{start}}-{{end}}","ui.sessionReview.expandAll":"\u062A\u0648\u0633\u064A\u0639 \u0627\u0644\u0643\u0644","ui.sessionReview.collapseAll":"\u0637\u064A \u0627\u0644\u0643\u0644","ui.sessionReview.change.added":"\u0645\u0636\u0627\u0641","ui.sessionReview.change.removed":"\u0645\u062D\u0630\u0648\u0641","ui.sessionReview.change.modified":"\u0645\u0639\u062F\u0644","ui.sessionReview.image.loading":"\u062C\u0627\u0631 \u0627\u0644\u062A\u062D\u0645\u064A\u0644...","ui.sessionReview.image.placeholder":"\u0635\u0648\u0631\u0629","ui.sessionReview.largeDiff.title":"Diff \u0643\u0628\u064A\u0631 \u062C\u062F\u0627 \u0644\u0639\u0631\u0636\u0647","ui.sessionReview.largeDiff.meta":"\u0627\u0644\u062D\u062F: {{limit}} \u0633\u0637\u0631\u064B\u0627 \u0645\u062A\u063A\u064A\u0631\u064B\u0627. \u0627\u0644\u062D\u0627\u0644\u064A: {{current}} \u0633\u0637\u0631\u064B\u0627 \u0645\u062A\u063A\u064A\u0631\u064B\u0627.","ui.sessionReview.largeDiff.renderAnyway":"\u0627\u0639\u0631\u0636 \u0639\u0644\u0649 \u0623\u064A \u062D\u0627\u0644","ui.fileMedia.kind.image":"\u0635\u0648\u0631\u0629","ui.fileMedia.kind.audio":"\u0635\u0648\u062A","ui.fileMedia.state.removed":"\u062A\u0645\u062A \u0625\u0632\u0627\u0644\u0629 {{kind}}","ui.fileMedia.state.loading":"\u062C\u0627\u0631\u064A \u062A\u062D\u0645\u064A\u0644 {{kind}}...","ui.fileMedia.state.error":"\u062E\u0637\u0623 \u0641\u064A \u062A\u062D\u0645\u064A\u0644 {{kind}}","ui.fileMedia.state.unavailable":"{{kind}} \u063A\u064A\u0631 \u0645\u062A\u0648\u0641\u0631","ui.fileMedia.binary.title":"\u0645\u0644\u0641 \u062B\u0646\u0627\u0626\u064A","ui.fileMedia.binary.description.path":"{{path}} \u0639\u0628\u0627\u0631\u0629 \u0639\u0646 \u0645\u0644\u0641 \u062B\u0646\u0627\u0626\u064A \u0648\u0644\u0627 \u064A\u0645\u0643\u0646 \u0639\u0631\u0636\u0647.","ui.fileMedia.binary.description.default":"\u0647\u0630\u0627 \u0645\u0644\u0641 \u062B\u0646\u0627\u0626\u064A \u0648\u0644\u0627 \u064A\u0645\u0643\u0646 \u0639\u0631\u0636\u0647.","ui.lineComment.label.prefix":"\u062A\u0639\u0644\u064A\u0642 \u0639\u0644\u0649 ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"\u062C\u0627\u0631\u064D \u0627\u0644\u062A\u0639\u0644\u064A\u0642 \u0639\u0644\u0649 ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"\u0623\u0636\u0641 \u062A\u0639\u0644\u064A\u0642\u064B\u0627","ui.lineComment.submit":"\u062A\u0639\u0644\u064A\u0642","ui.sessionTurn.steps.show":"\u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u062E\u0637\u0648\u0627\u062A","ui.sessionTurn.steps.hide":"\u0625\u062E\u0641\u0627\u0621 \u0627\u0644\u062E\u0637\u0648\u0627\u062A","ui.sessionTurn.summary.response":"\u0627\u0633\u062A\u062C\u0627\u0628\u0629","ui.sessionTurn.diff.showMore":"\u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u0645\u0632\u064A\u062F \u0645\u0646 \u0627\u0644\u062A\u063A\u064A\u064A\u0631\u0627\u062A ({{count}})","ui.sessionTurn.retry.retrying":"\u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629","ui.sessionTurn.retry.inSeconds":"\u062E\u0644\u0627\u0644 {{seconds}} \u062B\u0648\u0627\u0646\u064A","ui.sessionTurn.retry.attempt":"\u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0631\u0642\u0645 {{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0631\u0642\u0645 {{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini \u0645\u0632\u062F\u062D\u0645 \u062D\u0627\u0644\u064A\u0627","ui.sessionTurn.error.freeUsageExceeded":"\u062A\u0645 \u062A\u062C\u0627\u0648\u0632 \u062D\u062F \u0627\u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0627\u0644\u0645\u062C\u0627\u0646\u064A","ui.sessionTurn.error.addQredits":"\u0625\u0636\u0627\u0641\u0629 \u0631\u0635\u064A\u062F","ui.sessionTurn.status.delegating":"\u062A\u0641\u0648\u064A\u0636 \u0627\u0644\u0639\u0645\u0644","ui.sessionTurn.status.planning":"\u062A\u062E\u0637\u064A\u0637 \u0627\u0644\u062E\u0637\u0648\u0627\u062A \u0627\u0644\u062A\u0627\u0644\u064A\u0629","ui.sessionTurn.status.gatheringContext":"\u0627\u0633\u062A\u0643\u0634\u0627\u0641","ui.sessionTurn.status.gatheredContext":"\u062A\u0645 \u0627\u0644\u0627\u0633\u062A\u0643\u0634\u0627\u0641","ui.sessionTurn.status.searchingCodebase":"\u0627\u0644\u0628\u062D\u062B \u0641\u064A \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u062A\u0639\u0644\u064A\u0645\u0627\u062A \u0627\u0644\u0628\u0631\u0645\u062C\u064A\u0629","ui.sessionTurn.status.searchingWeb":"\u0627\u0644\u0628\u062D\u062B \u0641\u064A \u0627\u0644\u0648\u064A\u0628","ui.sessionTurn.status.makingEdits":"\u0625\u062C\u0631\u0627\u0621 \u062A\u0639\u062F\u064A\u0644\u0627\u062A","ui.sessionTurn.status.runningCommands":"\u062A\u0634\u063A\u064A\u0644 \u0627\u0644\u0623\u0648\u0627\u0645\u0631","ui.sessionTurn.status.thinking":"\u062A\u0641\u0643\u064A\u0631","ui.sessionTurn.status.thinkingWithTopic":"\u062A\u0641\u0643\u064A\u0631 - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"\u062C\u0645\u0639 \u0627\u0644\u0623\u0641\u0643\u0627\u0631","ui.sessionTurn.status.consideringNextSteps":"\u0627\u0644\u0646\u0638\u0631 \u0641\u064A \u0627\u0644\u062E\u0637\u0648\u0627\u062A \u0627\u0644\u062A\u0627\u0644\u064A\u0629","ui.messagePart.questions.dismissed":"\u062A\u0645 \u0631\u0641\u0636 \u0627\u0644\u0623\u0633\u0626\u0644\u0629","ui.messagePart.compaction":"\u062A\u0645 \u0636\u063A\u0637 \u0627\u0644\u062C\u0644\u0633\u0629","ui.messagePart.context.read.one":"{{count}} \u0642\u0631\u0627\u0621\u0629","ui.messagePart.context.read.other":"{{count}} \u0642\u0631\u0627\u0621\u0627\u062A","ui.messagePart.context.search.one":"{{count}} \u0628\u062D\u062B","ui.messagePart.context.search.other":"{{count}} \u0639\u0645\u0644\u064A\u0627\u062A \u0628\u062D\u062B","ui.messagePart.context.list.one":"{{count}} \u0642\u0627\u0626\u0645\u0629","ui.messagePart.context.list.other":"{{count}} \u0642\u0648\u0627\u0626\u0645","ui.messagePart.diagnostic.error":"\u062E\u0637\u0623","ui.messagePart.title.edit":"\u062A\u062D\u0631\u064A\u0631","ui.messagePart.title.write":"\u0643\u062A\u0627\u0628\u0629","ui.messagePart.option.typeOwnAnswer":"\u0627\u0643\u062A\u0628 \u0625\u062C\u0627\u0628\u062A\u0643 \u0627\u0644\u062E\u0627\u0635\u0629","ui.messagePart.review.title":"\u0645\u0631\u0627\u062C\u0639\u0629 \u0625\u062C\u0627\u0628\u0627\u062A\u0643","ui.list.loading":"\u062C\u0627\u0631\u064D \u0627\u0644\u062A\u062D\u0645\u064A\u0644","ui.list.empty":"\u0644\u0627 \u062A\u0648\u062C\u062F \u0646\u062A\u0627\u0626\u062C","ui.list.clearFilter":"\u0645\u0633\u062D \u0639\u0627\u0645\u0644 \u0627\u0644\u062A\u0635\u0641\u064A\u0629","ui.list.emptyWithFilter.prefix":"\u0644\u0627 \u062A\u0648\u062C\u062F \u0646\u062A\u0627\u0626\u062C \u0644\u0640","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"\u0631\u0633\u0627\u0644\u0629 \u062C\u062F\u064A\u062F\u0629","ui.textField.copyToClipboard":"\u0646\u0633\u062E \u0625\u0644\u0649 \u0627\u0644\u062D\u0627\u0641\u0638\u0629","ui.textField.copyLink":"\u0646\u0633\u062E \u0627\u0644\u0631\u0627\u0628\u0637","ui.textField.copied":"\u062A\u0645 \u0627\u0644\u0646\u0633\u062E","ui.imagePreview.alt":"\u0645\u0639\u0627\u064A\u0646\u0629 \u0627\u0644\u0635\u0648\u0631\u0629","ui.scrollView.ariaLabel":"\u0645\u062D\u062A\u0648\u0649 \u0642\u0627\u0628\u0644 \u0644\u0644\u062A\u0645\u0631\u064A\u0631","ui.tool.read":"\u0642\u0631\u0627\u0621\u0629","ui.tool.loaded":"\u062A\u0645 \u0627\u0644\u062A\u062D\u0645\u064A\u0644","ui.tool.list":"\u0642\u0627\u0626\u0645\u0629","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"\u062C\u0644\u0628 \u0627\u0644\u0648\u064A\u0628","ui.tool.websearch":"\u0628\u062D\u062B \u0627\u0644\u0648\u064A\u0628","ui.tool.codesearch":"\u0628\u062D\u062B \u0627\u0644\u0643\u0648\u062F","ui.tool.shell":"Shell","ui.tool.patch":"\u062A\u0635\u062D\u064A\u062D","ui.tool.todos":"\u0627\u0644\u0645\u0647\u0627\u0645","ui.tool.todos.read":"\u0642\u0631\u0627\u0621\u0629 \u0627\u0644\u0645\u0647\u0627\u0645","ui.tool.questions":"\u0623\u0633\u0626\u0644\u0629","ui.tool.agent":"\u0648\u0643\u064A\u0644 {{type}}","ui.tool.agent.default":"\u0648\u0643\u064A\u0644","ui.common.file.one":"\u0645\u0644\u0641","ui.common.file.other":"\u0645\u0644\u0641\u0627\u062A","ui.common.question.one":"\u0633\u0624\u0627\u0644","ui.common.question.other":"\u0623\u0633\u0626\u0644\u0629","ui.common.add":"\u0625\u0636\u0627\u0641\u0629","ui.common.back":"\u0631\u062C\u0648\u0639","ui.common.cancel":"\u0625\u0644\u063A\u0627\u0621","ui.common.confirm":"\u062A\u0623\u0643\u064A\u062F","ui.common.dismiss":"\u0631\u0641\u0636","ui.common.close":"\u0625\u063A\u0644\u0627\u0642","ui.common.next":"\u0627\u0644\u062A\u0627\u0644\u064A","ui.common.submit":"\u0625\u0631\u0633\u0627\u0644","ui.permission.deny":"\u0631\u0641\u0636","ui.permission.allowAlways":"\u0627\u0644\u0633\u0645\u0627\u062D \u062F\u0627\u0626\u0645\u064B\u0627","ui.permission.allowOnce":"\u0627\u0644\u0633\u0645\u0627\u062D \u0645\u0631\u0629 \u0648\u0627\u062D\u062F\u0629","ui.message.expand":"\u062A\u0648\u0633\u064A\u0639 \u0627\u0644\u0631\u0633\u0627\u0644\u0629","ui.message.collapse":"\u0637\u064A \u0627\u0644\u0631\u0633\u0627\u0644\u0629","ui.message.copy":"\u0646\u0633\u062E","ui.message.copyMessage":"\u0646\u0633\u062E \u0627\u0644\u0631\u0633\u0627\u0644\u0629","ui.message.forkMessage":"\u062A\u0634\u0639\u0628 \u0625\u0644\u0649 \u062C\u0644\u0633\u0629 \u062C\u062F\u064A\u062F\u0629","ui.message.revertMessage":"\u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u062A\u0639\u064A\u064A\u0646 \u0625\u0644\u0649 \u0647\u0630\u0647 \u0627\u0644\u0646\u0642\u0637\u0629","ui.message.copyResponse":"\u0646\u0633\u062E \u0627\u0644\u0631\u062F","ui.message.copied":"\u062A\u0645 \u0627\u0644\u0646\u0633\u062E!","ui.message.interrupted":"\u062A\u0645\u062A \u0627\u0644\u0645\u0642\u0627\u0637\u0639\u0629","ui.message.queued":"\u0641\u064A \u0627\u0644\u0627\u0646\u062A\u0638\u0627\u0631","ui.message.attachment.alt":"\u0645\u0631\u0641\u0642","ui.patch.action.deleted":"\u0645\u062D\u0630\u0648\u0641","ui.patch.action.created":"\u062A\u0645 \u0627\u0644\u0625\u0646\u0634\u0627\u0621","ui.patch.action.moved":"\u0645\u0646\u0642\u0648\u0644","ui.patch.action.patched":"\u0645\u0635\u062D\u062D","ui.question.subtitle.answered":"{{count}} \u0623\u062C\u064A\u0628","ui.question.answer.none":"(\u0644\u0627 \u062A\u0648\u062C\u062F \u0625\u062C\u0627\u0628\u0629)","ui.question.review.notAnswered":"(\u0644\u0645 \u064A\u062A\u0645 \u0627\u0644\u0631\u062F)","ui.question.multiHint":"\u062D\u062F\u062F \u0643\u0644 \u0645\u0627 \u064A\u0646\u0637\u0628\u0642","ui.question.singleHint":"\u062D\u062F\u062F \u0625\u062C\u0627\u0628\u0629 \u0648\u0627\u062D\u062F\u0629","ui.question.custom.placeholder":"\u0627\u0643\u062A\u0628 \u0625\u062C\u0627\u0628\u062A\u0643...","ui.fileSearch.placeholder":"\u0628\u062D\u062B","ui.fileSearch.previousMatch":"\u0627\u0644\u0645\u0637\u0627\u0628\u0642\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629","ui.fileSearch.nextMatch":"\u0627\u0644\u0645\u0637\u0627\u0628\u0642\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629","ui.fileSearch.close":"\u0625\u063A\u0644\u0627\u0642 \u0627\u0644\u0628\u062D\u062B","ui.tool.task":"\u0645\u0647\u0645\u0629","ui.tool.skill":"\u0645\u0647\u0627\u0631\u0629","ui.basicTool.called":"\u062A\u0645 \u0627\u0633\u062A\u062F\u0639\u0627\u0621 `{{tool}}`","ui.toolErrorCard.failed":"\u0641\u0634\u0644","ui.toolErrorCard.copyError":"\u0646\u0633\u062E \u0627\u0644\u062E\u0637\u0623","ui.message.duration.seconds":"{{count}}\u062B","ui.message.duration.minutesSeconds":"{{minutes}}\u062F {{seconds}}\u062B"};export{e as dict};
|
|
2
|
+
import"./chunk-9svh74gt.js";var e={"ui.sessionReview.title":"\u062A\u063A\u064A\u064A\u0631\u0627\u062A \u0627\u0644\u062C\u0644\u0633\u0629","ui.sessionReview.title.lastTurn":"\u062A\u063A\u064A\u064A\u0631\u0627\u062A \u0622\u062E\u0631 \u062F\u0648\u0631","ui.sessionReview.diffStyle.unified":"\u0645\u0648\u062D\u062F","ui.sessionReview.diffStyle.split":"\u0645\u0646\u0642\u0633\u0645","ui.sessionReview.openFile":"\u0641\u062A\u062D \u0645\u0644\u0641","ui.sessionReview.selection.line":"\u0633\u0637\u0631 {{line}}","ui.sessionReview.selection.lines":"\u0627\u0644\u0623\u0633\u0637\u0631 {{start}}-{{end}}","ui.sessionReview.expandAll":"\u062A\u0648\u0633\u064A\u0639 \u0627\u0644\u0643\u0644","ui.sessionReview.collapseAll":"\u0637\u064A \u0627\u0644\u0643\u0644","ui.sessionReview.change.added":"\u0645\u0636\u0627\u0641","ui.sessionReview.change.removed":"\u0645\u062D\u0630\u0648\u0641","ui.sessionReview.change.modified":"\u0645\u0639\u062F\u0644","ui.sessionReview.image.loading":"\u062C\u0627\u0631 \u0627\u0644\u062A\u062D\u0645\u064A\u0644...","ui.sessionReview.image.placeholder":"\u0635\u0648\u0631\u0629","ui.sessionReview.largeDiff.title":"Diff \u0643\u0628\u064A\u0631 \u062C\u062F\u0627 \u0644\u0639\u0631\u0636\u0647","ui.sessionReview.largeDiff.meta":"\u0627\u0644\u062D\u062F: {{limit}} \u0633\u0637\u0631\u064B\u0627 \u0645\u062A\u063A\u064A\u0631\u064B\u0627. \u0627\u0644\u062D\u0627\u0644\u064A: {{current}} \u0633\u0637\u0631\u064B\u0627 \u0645\u062A\u063A\u064A\u0631\u064B\u0627.","ui.sessionReview.largeDiff.renderAnyway":"\u0627\u0639\u0631\u0636 \u0639\u0644\u0649 \u0623\u064A \u062D\u0627\u0644","ui.fileMedia.kind.image":"\u0635\u0648\u0631\u0629","ui.fileMedia.kind.audio":"\u0635\u0648\u062A","ui.fileMedia.state.removed":"\u062A\u0645\u062A \u0625\u0632\u0627\u0644\u0629 {{kind}}","ui.fileMedia.state.loading":"\u062C\u0627\u0631\u064A \u062A\u062D\u0645\u064A\u0644 {{kind}}...","ui.fileMedia.state.error":"\u062E\u0637\u0623 \u0641\u064A \u062A\u062D\u0645\u064A\u0644 {{kind}}","ui.fileMedia.state.unavailable":"{{kind}} \u063A\u064A\u0631 \u0645\u062A\u0648\u0641\u0631","ui.fileMedia.binary.title":"\u0645\u0644\u0641 \u062B\u0646\u0627\u0626\u064A","ui.fileMedia.binary.description.path":"{{path}} \u0639\u0628\u0627\u0631\u0629 \u0639\u0646 \u0645\u0644\u0641 \u062B\u0646\u0627\u0626\u064A \u0648\u0644\u0627 \u064A\u0645\u0643\u0646 \u0639\u0631\u0636\u0647.","ui.fileMedia.binary.description.default":"\u0647\u0630\u0627 \u0645\u0644\u0641 \u062B\u0646\u0627\u0626\u064A \u0648\u0644\u0627 \u064A\u0645\u0643\u0646 \u0639\u0631\u0636\u0647.","ui.lineComment.label.prefix":"\u062A\u0639\u0644\u064A\u0642 \u0639\u0644\u0649 ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"\u062C\u0627\u0631\u064D \u0627\u0644\u062A\u0639\u0644\u064A\u0642 \u0639\u0644\u0649 ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"\u0623\u0636\u0641 \u062A\u0639\u0644\u064A\u0642\u064B\u0627","ui.lineComment.submit":"\u062A\u0639\u0644\u064A\u0642","ui.sessionTurn.steps.show":"\u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u062E\u0637\u0648\u0627\u062A","ui.sessionTurn.steps.hide":"\u0625\u062E\u0641\u0627\u0621 \u0627\u0644\u062E\u0637\u0648\u0627\u062A","ui.sessionTurn.summary.response":"\u0627\u0633\u062A\u062C\u0627\u0628\u0629","ui.sessionTurn.diff.showMore":"\u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u0645\u0632\u064A\u062F \u0645\u0646 \u0627\u0644\u062A\u063A\u064A\u064A\u0631\u0627\u062A ({{count}})","ui.sessionTurn.retry.retrying":"\u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629","ui.sessionTurn.retry.inSeconds":"\u062E\u0644\u0627\u0644 {{seconds}} \u062B\u0648\u0627\u0646\u064A","ui.sessionTurn.retry.attempt":"\u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0631\u0642\u0645 {{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0631\u0642\u0645 {{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini \u0645\u0632\u062F\u062D\u0645 \u062D\u0627\u0644\u064A\u0627","ui.sessionTurn.error.freeUsageExceeded":"\u062A\u0645 \u062A\u062C\u0627\u0648\u0632 \u062D\u062F \u0627\u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0627\u0644\u0645\u062C\u0627\u0646\u064A","ui.sessionTurn.error.addQredits":"\u0625\u0636\u0627\u0641\u0629 \u0631\u0635\u064A\u062F","ui.sessionTurn.status.delegating":"\u062A\u0641\u0648\u064A\u0636 \u0627\u0644\u0639\u0645\u0644","ui.sessionTurn.status.planning":"\u062A\u062E\u0637\u064A\u0637 \u0627\u0644\u062E\u0637\u0648\u0627\u062A \u0627\u0644\u062A\u0627\u0644\u064A\u0629","ui.sessionTurn.status.gatheringContext":"\u0627\u0633\u062A\u0643\u0634\u0627\u0641","ui.sessionTurn.status.gatheredContext":"\u062A\u0645 \u0627\u0644\u0627\u0633\u062A\u0643\u0634\u0627\u0641","ui.sessionTurn.status.searchingCodebase":"\u0627\u0644\u0628\u062D\u062B \u0641\u064A \u0642\u0627\u0639\u062F\u0629 \u0627\u0644\u062A\u0639\u0644\u064A\u0645\u0627\u062A \u0627\u0644\u0628\u0631\u0645\u062C\u064A\u0629","ui.sessionTurn.status.searchingWeb":"\u0627\u0644\u0628\u062D\u062B \u0641\u064A \u0627\u0644\u0648\u064A\u0628","ui.sessionTurn.status.makingEdits":"\u0625\u062C\u0631\u0627\u0621 \u062A\u0639\u062F\u064A\u0644\u0627\u062A","ui.sessionTurn.status.runningCommands":"\u062A\u0634\u063A\u064A\u0644 \u0627\u0644\u0623\u0648\u0627\u0645\u0631","ui.sessionTurn.status.thinking":"\u062A\u0641\u0643\u064A\u0631","ui.sessionTurn.status.thinkingWithTopic":"\u062A\u0641\u0643\u064A\u0631 - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"\u062C\u0645\u0639 \u0627\u0644\u0623\u0641\u0643\u0627\u0631","ui.sessionTurn.status.consideringNextSteps":"\u0627\u0644\u0646\u0638\u0631 \u0641\u064A \u0627\u0644\u062E\u0637\u0648\u0627\u062A \u0627\u0644\u062A\u0627\u0644\u064A\u0629","ui.messagePart.questions.dismissed":"\u062A\u0645 \u0631\u0641\u0636 \u0627\u0644\u0623\u0633\u0626\u0644\u0629","ui.messagePart.compaction":"\u062A\u0645 \u0636\u063A\u0637 \u0627\u0644\u062C\u0644\u0633\u0629","ui.messagePart.context.read.one":"{{count}} \u0642\u0631\u0627\u0621\u0629","ui.messagePart.context.read.other":"{{count}} \u0642\u0631\u0627\u0621\u0627\u062A","ui.messagePart.context.search.one":"{{count}} \u0628\u062D\u062B","ui.messagePart.context.search.other":"{{count}} \u0639\u0645\u0644\u064A\u0627\u062A \u0628\u062D\u062B","ui.messagePart.context.list.one":"{{count}} \u0642\u0627\u0626\u0645\u0629","ui.messagePart.context.list.other":"{{count}} \u0642\u0648\u0627\u0626\u0645","ui.messagePart.diagnostic.error":"\u062E\u0637\u0623","ui.messagePart.title.edit":"\u062A\u062D\u0631\u064A\u0631","ui.messagePart.title.write":"\u0643\u062A\u0627\u0628\u0629","ui.messagePart.option.typeOwnAnswer":"\u0627\u0643\u062A\u0628 \u0625\u062C\u0627\u0628\u062A\u0643 \u0627\u0644\u062E\u0627\u0635\u0629","ui.messagePart.review.title":"\u0645\u0631\u0627\u062C\u0639\u0629 \u0625\u062C\u0627\u0628\u0627\u062A\u0643","ui.list.loading":"\u062C\u0627\u0631\u064D \u0627\u0644\u062A\u062D\u0645\u064A\u0644","ui.list.empty":"\u0644\u0627 \u062A\u0648\u062C\u062F \u0646\u062A\u0627\u0626\u062C","ui.list.clearFilter":"\u0645\u0633\u062D \u0639\u0627\u0645\u0644 \u0627\u0644\u062A\u0635\u0641\u064A\u0629","ui.list.emptyWithFilter.prefix":"\u0644\u0627 \u062A\u0648\u062C\u062F \u0646\u062A\u0627\u0626\u062C \u0644\u0640","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"\u0631\u0633\u0627\u0644\u0629 \u062C\u062F\u064A\u062F\u0629","ui.textField.copyToClipboard":"\u0646\u0633\u062E \u0625\u0644\u0649 \u0627\u0644\u062D\u0627\u0641\u0638\u0629","ui.textField.copyLink":"\u0646\u0633\u062E \u0627\u0644\u0631\u0627\u0628\u0637","ui.textField.copied":"\u062A\u0645 \u0627\u0644\u0646\u0633\u062E","ui.imagePreview.alt":"\u0645\u0639\u0627\u064A\u0646\u0629 \u0627\u0644\u0635\u0648\u0631\u0629","ui.scrollView.ariaLabel":"\u0645\u062D\u062A\u0648\u0649 \u0642\u0627\u0628\u0644 \u0644\u0644\u062A\u0645\u0631\u064A\u0631","ui.tool.read":"\u0642\u0631\u0627\u0621\u0629","ui.tool.loaded":"\u062A\u0645 \u0627\u0644\u062A\u062D\u0645\u064A\u0644","ui.tool.list":"\u0642\u0627\u0626\u0645\u0629","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"\u062C\u0644\u0628 \u0627\u0644\u0648\u064A\u0628","ui.tool.websearch":"\u0628\u062D\u062B \u0627\u0644\u0648\u064A\u0628","ui.tool.codesearch":"\u0628\u062D\u062B \u0627\u0644\u0643\u0648\u062F","ui.tool.shell":"Shell","ui.tool.patch":"\u062A\u0635\u062D\u064A\u062D","ui.tool.todos":"\u0627\u0644\u0645\u0647\u0627\u0645","ui.tool.todos.read":"\u0642\u0631\u0627\u0621\u0629 \u0627\u0644\u0645\u0647\u0627\u0645","ui.tool.questions":"\u0623\u0633\u0626\u0644\u0629","ui.tool.agent":"\u0648\u0643\u064A\u0644 {{type}}","ui.tool.agent.default":"\u0648\u0643\u064A\u0644","ui.common.file.one":"\u0645\u0644\u0641","ui.common.file.other":"\u0645\u0644\u0641\u0627\u062A","ui.common.question.one":"\u0633\u0624\u0627\u0644","ui.common.question.other":"\u0623\u0633\u0626\u0644\u0629","ui.common.add":"\u0625\u0636\u0627\u0641\u0629","ui.common.back":"\u0631\u062C\u0648\u0639","ui.common.cancel":"\u0625\u0644\u063A\u0627\u0621","ui.common.confirm":"\u062A\u0623\u0643\u064A\u062F","ui.common.dismiss":"\u0631\u0641\u0636","ui.common.close":"\u0625\u063A\u0644\u0627\u0642","ui.common.next":"\u0627\u0644\u062A\u0627\u0644\u064A","ui.common.submit":"\u0625\u0631\u0633\u0627\u0644","ui.permission.deny":"\u0631\u0641\u0636","ui.permission.allowAlways":"\u0627\u0644\u0633\u0645\u0627\u062D \u062F\u0627\u0626\u0645\u064B\u0627","ui.permission.allowOnce":"\u0627\u0644\u0633\u0645\u0627\u062D \u0645\u0631\u0629 \u0648\u0627\u062D\u062F\u0629","ui.message.expand":"\u062A\u0648\u0633\u064A\u0639 \u0627\u0644\u0631\u0633\u0627\u0644\u0629","ui.message.collapse":"\u0637\u064A \u0627\u0644\u0631\u0633\u0627\u0644\u0629","ui.message.copy":"\u0646\u0633\u062E","ui.message.copyMessage":"\u0646\u0633\u062E \u0627\u0644\u0631\u0633\u0627\u0644\u0629","ui.message.forkMessage":"\u062A\u0634\u0639\u0628 \u0625\u0644\u0649 \u062C\u0644\u0633\u0629 \u062C\u062F\u064A\u062F\u0629","ui.message.revertMessage":"\u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u062A\u0639\u064A\u064A\u0646 \u0625\u0644\u0649 \u0647\u0630\u0647 \u0627\u0644\u0646\u0642\u0637\u0629","ui.message.copyResponse":"\u0646\u0633\u062E \u0627\u0644\u0631\u062F","ui.message.copied":"\u062A\u0645 \u0627\u0644\u0646\u0633\u062E!","ui.message.interrupted":"\u062A\u0645\u062A \u0627\u0644\u0645\u0642\u0627\u0637\u0639\u0629","ui.message.queued":"\u0641\u064A \u0627\u0644\u0627\u0646\u062A\u0638\u0627\u0631","ui.message.attachment.alt":"\u0645\u0631\u0641\u0642","ui.patch.action.deleted":"\u0645\u062D\u0630\u0648\u0641","ui.patch.action.created":"\u062A\u0645 \u0627\u0644\u0625\u0646\u0634\u0627\u0621","ui.patch.action.moved":"\u0645\u0646\u0642\u0648\u0644","ui.patch.action.patched":"\u0645\u0635\u062D\u062D","ui.question.subtitle.answered":"{{count}} \u0623\u062C\u064A\u0628","ui.question.answer.none":"(\u0644\u0627 \u062A\u0648\u062C\u062F \u0625\u062C\u0627\u0628\u0629)","ui.question.review.notAnswered":"(\u0644\u0645 \u064A\u062A\u0645 \u0627\u0644\u0631\u062F)","ui.question.multiHint":"\u062D\u062F\u062F \u0643\u0644 \u0645\u0627 \u064A\u0646\u0637\u0628\u0642","ui.question.singleHint":"\u062D\u062F\u062F \u0625\u062C\u0627\u0628\u0629 \u0648\u0627\u062D\u062F\u0629","ui.question.custom.placeholder":"\u0627\u0643\u062A\u0628 \u0625\u062C\u0627\u0628\u062A\u0643...","ui.fileSearch.placeholder":"\u0628\u062D\u062B","ui.fileSearch.previousMatch":"\u0627\u0644\u0645\u0637\u0627\u0628\u0642\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629","ui.fileSearch.nextMatch":"\u0627\u0644\u0645\u0637\u0627\u0628\u0642\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629","ui.fileSearch.close":"\u0625\u063A\u0644\u0627\u0642 \u0627\u0644\u0628\u062D\u062B","ui.tool.task":"\u0645\u0647\u0645\u0629","ui.tool.skill":"\u0645\u0647\u0627\u0631\u0629","ui.basicTool.called":"\u062A\u0645 \u0627\u0633\u062A\u062F\u0639\u0627\u0621 `{{tool}}`","ui.toolErrorCard.failed":"\u0641\u0634\u0644","ui.toolErrorCard.copyError":"\u0646\u0633\u062E \u0627\u0644\u062E\u0637\u0623","ui.message.duration.seconds":"{{count}}\u062B","ui.message.duration.minutesSeconds":"{{minutes}}\u062F {{seconds}}\u062B"};export{e as dict};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{R as
|
|
2
|
+
import{RQ as Z,UQ as W}from"./chunk-9svh74gt.js";var R=Z(($G,E)=>{var{defineProperty:N,getOwnPropertyDescriptor:Kz,getOwnPropertyNames:Qz}=Object,Wz=Object.prototype.hasOwnProperty,Xz=(z,G)=>{for(var H in G)N(z,H,{get:G[H],enumerable:!0})},Yz=(z,G,H,Q)=>{if(G&&typeof G==="object"||typeof G==="function"){for(let K of Qz(G))if(!Wz.call(z,K)&&K!==H)N(z,K,{get:()=>G[K],enumerable:!(Q=Kz(G,K))||Q.enumerable})}return z},Zz=(z)=>Yz(N({},"__esModule",{value:!0}),z),O={};Xz(O,{VercelOidcTokenError:()=>S});E.exports=Zz(O);class S extends Error{constructor(z,G){super(z);this.name="VercelOidcTokenError",this.cause=G}toString(){if(this.cause)return`${this.name}: ${this.message}: ${this.cause}`;return`${this.name}: ${this.message}`}}});var P=Z((qG,y)=>{var{create:$z,defineProperty:L,getOwnPropertyDescriptor:qz,getOwnPropertyNames:vz,getPrototypeOf:Bz}=Object,Fz=Object.prototype.hasOwnProperty,Uz=(z,G)=>{for(var H in G)L(z,H,{get:G[H],enumerable:!0})},C=(z,G,H,Q)=>{if(G&&typeof G==="object"||typeof G==="function"){for(let K of vz(G))if(!Fz.call(z,K)&&K!==H)L(z,K,{get:()=>G[K],enumerable:!(Q=qz(G,K))||Q.enumerable})}return z},I=(z,G,H)=>(H=z!=null?$z(Bz(z)):{},C(G||!z||!z.__esModule?L(H,"default",{value:z,enumerable:!0}):H,z)),Lz=(z)=>C(L({},"__esModule",{value:!0}),z),x={};Uz(x,{findRootDir:()=>Jz,getUserDataDir:()=>Nz});y.exports=Lz(x);var B=I(W("path")),bz=I(W("fs")),A=I(W("os")),Vz=R();function Jz(){try{let z=process.cwd();while(z!==B.default.dirname(z)){let G=B.default.join(z,".vercel");if(bz.default.existsSync(G))return z;z=B.default.dirname(z)}}catch(z){throw new Vz.VercelOidcTokenError("Token refresh only supported in node server environments")}return null}function Nz(){if(process.env.XDG_DATA_HOME)return process.env.XDG_DATA_HOME;switch(A.default.platform()){case"darwin":return B.default.join(A.default.homedir(),"Library/Application Support");case"linux":return B.default.join(A.default.homedir(),".local/share");case"win32":if(process.env.LOCALAPPDATA)return process.env.LOCALAPPDATA;return null;default:return null}}});var i=Z((vG,c)=>{var{create:Rz,defineProperty:b,getOwnPropertyDescriptor:Az,getOwnPropertyNames:Iz,getPrototypeOf:Dz}=Object,wz=Object.prototype.hasOwnProperty,Tz=(z,G)=>{for(var H in G)b(z,H,{get:G[H],enumerable:!0})},u=(z,G,H,Q)=>{if(G&&typeof G==="object"||typeof G==="function"){for(let K of Iz(G))if(!wz.call(z,K)&&K!==H)b(z,K,{get:()=>G[K],enumerable:!(Q=Az(G,K))||Q.enumerable})}return z},l=(z,G,H)=>(H=z!=null?Rz(Dz(z)):{},u(G||!z||!z.__esModule?b(H,"default",{value:z,enumerable:!0}):H,z)),jz=(z)=>u(b({},"__esModule",{value:!0}),z),g={};Tz(g,{isValidAccessToken:()=>Ez,readAuthConfig:()=>Oz,writeAuthConfig:()=>Sz});c.exports=jz(g);var F=l(W("fs")),h=l(W("path")),Mz=f();function k(){let z=(0,Mz.getVercelDataDir)();if(!z)throw Error(`Unable to find Vercel CLI data directory. Your platform: ${process.platform}. Supported: darwin, linux, win32.`);return h.join(z,"auth.json")}function Oz(){try{let z=k();if(!F.existsSync(z))return null;let G=F.readFileSync(z,"utf8");if(!G)return null;return JSON.parse(G)}catch(z){return null}}function Sz(z){let G=k(),H=h.dirname(G);if(!F.existsSync(H))F.mkdirSync(H,{mode:504,recursive:!0});F.writeFileSync(G,JSON.stringify(z,null,2),{mode:384})}function Ez(z,G=0){if(!z.token)return!1;if(typeof z.expiresAt!=="number")return!0;let H=Math.floor(Date.now()/1000),Q=G/1000;return z.expiresAt>=H+Q}});var a=Z((BG,s)=>{var{defineProperty:T,getOwnPropertyDescriptor:Cz,getOwnPropertyNames:xz}=Object,yz=Object.prototype.hasOwnProperty,Pz=(z,G)=>{for(var H in G)T(z,H,{get:G[H],enumerable:!0})},uz=(z,G,H,Q)=>{if(G&&typeof G==="object"||typeof G==="function"){for(let K of xz(G))if(!yz.call(z,K)&&K!==H)T(z,K,{get:()=>G[K],enumerable:!(Q=Cz(G,K))||Q.enumerable})}return z},lz=(z)=>uz(T({},"__esModule",{value:!0}),z),d={};Pz(d,{processTokenResponse:()=>iz,refreshTokenRequest:()=>cz});s.exports=lz(d);var D=W("os"),gz="https://vercel.com",hz="cl_HYyOPBNtFMfHhaUn9L4QPfTZz6TP47bp",p=`@vercel/oidc node-${process.version} ${(0,D.platform)()} (${(0,D.arch)()}) ${(0,D.hostname)()}`,w=null;async function kz(){if(w)return w;let z=`${gz}/.well-known/openid-configuration`,G=await fetch(z,{headers:{"user-agent":p}});if(!G.ok)throw Error("Failed to discover OAuth endpoints");let H=await G.json();if(!H||typeof H.token_endpoint!=="string")throw Error("Invalid OAuth discovery response");let Q=H.token_endpoint;return w=Q,Q}async function cz(z){let G=await kz();return await fetch(G,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","user-agent":p},body:new URLSearchParams({client_id:hz,grant_type:"refresh_token",...z})})}async function iz(z){let G=await z.json();if(!z.ok){let H=typeof G==="object"&&G&&"error"in G?String(G.error):"Token refresh failed";return[Error(H)]}if(typeof G!=="object"||G===null)return[Error("Invalid token response")];if(typeof G.access_token!=="string")return[Error("Missing access_token in response")];if(G.token_type!=="Bearer")return[Error("Invalid token_type in response")];if(typeof G.expires_in!=="number")return[Error("Missing expires_in in response")];return[null,G]}});var t=Z((FG,r)=>{var{defineProperty:j,getOwnPropertyDescriptor:fz,getOwnPropertyNames:dz}=Object,pz=Object.prototype.hasOwnProperty,sz=(z,G)=>{for(var H in G)j(z,H,{get:G[H],enumerable:!0})},az=(z,G,H,Q)=>{if(G&&typeof G==="object"||typeof G==="function"){for(let K of dz(G))if(!pz.call(z,K)&&K!==H)j(z,K,{get:()=>G[K],enumerable:!(Q=fz(G,K))||Q.enumerable})}return z},_z=(z)=>az(j({},"__esModule",{value:!0}),z),_={};sz(_,{AccessTokenMissingError:()=>m,RefreshAccessTokenFailedError:()=>n});r.exports=_z(_);class m extends Error{constructor(){super("No authentication found. Please log in with the Vercel CLI (vercel login).");this.name="AccessTokenMissingError"}}class n extends Error{constructor(z){super("Failed to refresh authentication token.",{cause:z});this.name="RefreshAccessTokenFailedError"}}});var f=Z((UG,Hz)=>{var{create:mz,defineProperty:V,getOwnPropertyDescriptor:nz,getOwnPropertyNames:rz,getPrototypeOf:tz}=Object,ez=Object.prototype.hasOwnProperty,oz=(z,G)=>{for(var H in G)V(z,H,{get:G[H],enumerable:!0})},o=(z,G,H,Q)=>{if(G&&typeof G==="object"||typeof G==="function"){for(let K of rz(G))if(!ez.call(z,K)&&K!==H)V(z,K,{get:()=>G[K],enumerable:!(Q=nz(G,K))||Q.enumerable})}return z},zz=(z,G,H)=>(H=z!=null?mz(tz(z)):{},o(G||!z||!z.__esModule?V(H,"default",{value:z,enumerable:!0}):H,z)),zG=(z)=>o(V({},"__esModule",{value:!0}),z),Gz={};oz(Gz,{assertVercelOidcTokenResponse:()=>M,findProjectInfo:()=>QG,getTokenPayload:()=>YG,getVercelDataDir:()=>GG,getVercelOidcToken:()=>KG,getVercelToken:()=>HG,isExpired:()=>ZG,loadToken:()=>XG,saveToken:()=>WG});Hz.exports=zG(Gz);var U=zz(W("path")),X=zz(W("fs")),v=R(),J=P(),$=i(),e=a(),q=t();function GG(){let G=(0,J.getUserDataDir)();if(!G)return null;return U.join(G,"com.vercel.cli")}async function HG(z){let G=(0,$.readAuthConfig)();if(!G?.token)throw new q.AccessTokenMissingError;if((0,$.isValidAccessToken)(G,z?.expirationBufferMs))return G.token;if(!G.refreshToken)throw(0,$.writeAuthConfig)({}),new q.RefreshAccessTokenFailedError("No refresh token available");try{let H=await(0,e.refreshTokenRequest)({refresh_token:G.refreshToken}),[Q,K]=await(0,e.processTokenResponse)(H);if(Q||!K)throw(0,$.writeAuthConfig)({}),new q.RefreshAccessTokenFailedError(Q);let Y={token:K.access_token,expiresAt:Math.floor(Date.now()/1000)+K.expires_in};if(K.refresh_token)Y.refreshToken=K.refresh_token;return(0,$.writeAuthConfig)(Y),Y.token}catch(H){if((0,$.writeAuthConfig)({}),H instanceof q.AccessTokenMissingError||H instanceof q.RefreshAccessTokenFailedError)throw H;throw new q.RefreshAccessTokenFailedError(H)}}async function KG(z,G,H){let Q=`https://api.vercel.com/v1/projects/${G}/token?source=vercel-oidc-refresh${H?`&teamId=${H}`:""}`,K=await fetch(Q,{method:"POST",headers:{Authorization:`Bearer ${z}`}});if(!K.ok)throw new v.VercelOidcTokenError(`Failed to refresh OIDC token: ${K.statusText}`);let Y=await K.json();return M(Y),Y}function M(z){if(!z||typeof z!=="object")throw TypeError("Vercel OIDC token is malformed. Expected an object. Please run `vc env pull` and try again");if(!("token"in z)||typeof z.token!=="string")throw TypeError("Vercel OIDC token is malformed. Expected a string-valued token property. Please run `vc env pull` and try again")}function QG(){let z=(0,J.findRootDir)();if(!z)throw new v.VercelOidcTokenError("Unable to find project root directory. Have you linked your project with `vc link?`");let G=U.join(z,".vercel","project.json");if(!X.existsSync(G))throw new v.VercelOidcTokenError("project.json not found, have you linked your project with `vc link?`");let H=JSON.parse(X.readFileSync(G,"utf8"));if(typeof H.projectId!=="string"&&typeof H.orgId!=="string")throw TypeError("Expected a string-valued projectId property. Try running `vc link` to re-link your project.");return{projectId:H.projectId,teamId:H.orgId}}function WG(z,G){let H=(0,J.getUserDataDir)();if(!H)throw new v.VercelOidcTokenError("Unable to find user data directory. Please reach out to Vercel support.");let Q=U.join(H,"com.vercel.token",`${G}.json`),K=JSON.stringify(z);X.mkdirSync(U.dirname(Q),{mode:504,recursive:!0}),X.writeFileSync(Q,K),X.chmodSync(Q,432);return}function XG(z){let G=(0,J.getUserDataDir)();if(!G)throw new v.VercelOidcTokenError("Unable to find user data directory. Please reach out to Vercel support.");let H=U.join(G,"com.vercel.token",`${z}.json`);if(!X.existsSync(H))return null;let Q=JSON.parse(X.readFileSync(H,"utf8"));return M(Q),Q}function YG(z){let G=z.split(".");if(G.length!==3)throw new v.VercelOidcTokenError("Invalid token. Please run `vc env pull` and try again");let H=G[1].replace(/-/g,"+").replace(/_/g,"/"),Q=H.padEnd(H.length+(4-H.length%4)%4,"=");return JSON.parse(Buffer.from(Q,"base64").toString("utf8"))}function ZG(z,G=0){return z.exp*1000<Date.now()+G}});
|
|
3
|
+
export{R as xs,t as ys,f as zs};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Dr as h,Gr as L,Jr as V,Lr as f,Pr as hZ,Rr as R,Wr as l,Xr as U,Yr as B,Zr as fZ,_r as x,cs as gZ,dr as O,jr as u,yr as yZ,zr as y}from"./chunk-vbcekkw2.js";import{fs as v}from"./chunk-4ngvj758.js";import{xs as Q0,ys as U0,zs as L0}from"./chunk-49we3vy1.js";import{fw as Z}from"./chunk-xphzr4wg.js";import{QQ as g,RQ as c,UQ as r}from"./chunk-9svh74gt.js";var m=c((E$,o)=>{var{defineProperty:_,getOwnPropertyDescriptor:aZ,getOwnPropertyNames:oZ}=Object,rZ=Object.prototype.hasOwnProperty,eZ=($,W)=>{for(var Q in W)_($,Q,{get:W[Q],enumerable:!0})},Z0=($,W,Q,X)=>{if(W&&typeof W==="object"||typeof W==="function"){for(let Y of oZ(W))if(!rZ.call($,Y)&&Y!==Q)_($,Y,{get:()=>W[Y],enumerable:!(X=aZ(W,Y))||X.enumerable})}return $},$0=($)=>Z0(_({},"__esModule",{value:!0}),$),t={};eZ(t,{SYMBOL_FOR_REQ_CONTEXT:()=>a,getContext:()=>W0});o.exports=$0(t);var a=Symbol.for("@vercel/request-context");function W0(){return globalThis[a]?.get?.()??{}}});var $Z=c((H$,ZZ)=>{var{defineProperty:i,getOwnPropertyDescriptor:X0,getOwnPropertyNames:Y0}=Object,j0=Object.prototype.hasOwnProperty,D0=($,W)=>{for(var Q in W)i($,Q,{get:W[Q],enumerable:!0})},K0=($,W,Q,X)=>{if(W&&typeof W==="object"||typeof W==="function"){for(let Y of Y0(W))if(!j0.call($,Y)&&Y!==Q)i($,Y,{get:()=>W[Y],enumerable:!(X=X0(W,Y))||X.enumerable})}return $},J0=($)=>K0(i({},"__esModule",{value:!0}),$),e={};D0(e,{getVercelOidcToken:()=>N0,getVercelOidcTokenSync:()=>p});ZZ.exports=J0(e);var A0=m(),F0=Q0();async function N0($){let W="",Q;try{W=p()}catch(X){Q=X}try{let[{getTokenPayload:X,isExpired:Y},{refreshToken:D}]=await Promise.all([await import("./chunk-4t1ysdag.js").then((m)=>g(m.default)),await import("./chunk-ghdegwnr.js").then((m)=>g(m.default))]);if(!W||Y(X(W),$?.expirationBufferMs))await D($),W=p()}catch(X){let Y=Q instanceof Error?Q.message:"";if(X instanceof Error)Y=`${Y}
|
|
3
3
|
${X.message}`;if(Y)throw new F0.VercelOidcTokenError(Y);throw X}return W}function p(){let $=(0,A0.getContext)().headers?.["x-vercel-oidc-token"]??process.env.VERCEL_OIDC_TOKEN;if(!$)throw Error("The 'x-vercel-oidc-token' header is missing from the request. Do you have the OIDC option enabled in the Vercel project settings?");return $}});var n=c((M$,YZ)=>{var{defineProperty:d,getOwnPropertyDescriptor:V0,getOwnPropertyNames:q0}=Object,T0=Object.prototype.hasOwnProperty,B0=($,W)=>{for(var Q in W)d($,Q,{get:W[Q],enumerable:!0})},G0=($,W,Q,X)=>{if(W&&typeof W==="object"||typeof W==="function"){for(let Y of q0(W))if(!T0.call($,Y)&&Y!==Q)d($,Y,{get:()=>W[Y],enumerable:!(X=V0(W,Y))||X.enumerable})}return $},x0=($)=>G0(d({},"__esModule",{value:!0}),$),XZ={};B0(XZ,{AccessTokenMissingError:()=>QZ.AccessTokenMissingError,RefreshAccessTokenFailedError:()=>QZ.RefreshAccessTokenFailedError,getContext:()=>z0.getContext,getVercelOidcToken:()=>WZ.getVercelOidcToken,getVercelOidcTokenSync:()=>WZ.getVercelOidcTokenSync,getVercelToken:()=>E0.getVercelToken});YZ.exports=x0(XZ);var WZ=$Z(),z0=m(),QZ=U0(),E0=L0()});var sZ=g(n(),1),tZ=g(n(),1);var H0="vercel.ai.gateway.error",s=Symbol.for(H0),jZ,DZ,z=class $ extends(DZ=Error,jZ=s,DZ){constructor({message:W,statusCode:Q=500,cause:X,generationId:Y}){super(Y?`${W} [${Y}]`:W);this[jZ]=!0,this.statusCode=Q,this.cause=X,this.generationId=Y}static isInstance(W){return $.hasMarker(W)}static hasMarker(W){return typeof W==="object"&&W!==null&&s in W&&W[s]===!0}},uZ="GatewayAuthenticationError",M0=`vercel.ai.gateway.error.${uZ}`,KZ=Symbol.for(M0),JZ,AZ,lZ=class $ extends(AZ=z,JZ=KZ,AZ){constructor({message:W="Authentication failed",statusCode:Q=401,cause:X,generationId:Y}={}){super({message:W,statusCode:Q,cause:X,generationId:Y});this[JZ]=!0,this.name=uZ,this.type="authentication_error"}static isInstance(W){return z.hasMarker(W)&&KZ in W}static createContextualError({apiKeyProvided:W,oidcTokenProvided:Q,message:X="Authentication failed",statusCode:Y=401,cause:D,generationId:N}){let j;if(W)j=`AI Gateway authentication failed: Invalid API key.
|
|
4
4
|
|
|
5
5
|
Create a new API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
|
|
@@ -17,4 +17,4 @@ Provide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.
|
|
|
17
17
|
Option 2 - OIDC token:
|
|
18
18
|
Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.`;return new $({message:j,statusCode:Y,cause:D,generationId:N})}},cZ="GatewayInvalidRequestError",O0=`vercel.ai.gateway.error.${cZ}`,FZ=Symbol.for(O0),NZ,UZ,R0=class extends(UZ=z,NZ=FZ,UZ){constructor({message:$="Invalid request",statusCode:W=400,cause:Q,generationId:X}={}){super({message:$,statusCode:W,cause:Q,generationId:X});this[NZ]=!0,this.name=cZ,this.type="invalid_request_error"}static isInstance($){return z.hasMarker($)&&FZ in $}},_Z="GatewayRateLimitError",C0=`vercel.ai.gateway.error.${_Z}`,LZ=Symbol.for(C0),VZ,qZ,S0=class extends(qZ=z,VZ=LZ,qZ){constructor({message:$="Rate limit exceeded",statusCode:W=429,cause:Q,generationId:X}={}){super({message:$,statusCode:W,cause:Q,generationId:X});this[VZ]=!0,this.name=_Z,this.type="rate_limit_exceeded"}static isInstance($){return z.hasMarker($)&&LZ in $}},mZ="GatewayModelNotFoundError",w0=`vercel.ai.gateway.error.${mZ}`,TZ=Symbol.for(w0),P0=L(()=>V(Z.object({modelId:Z.string()}))),BZ,GZ,b0=class extends(GZ=z,BZ=TZ,GZ){constructor({message:$="Model not found",statusCode:W=404,modelId:Q,cause:X,generationId:Y}={}){super({message:$,statusCode:W,cause:X,generationId:Y});this[BZ]=!0,this.name=mZ,this.type="model_not_found",this.modelId=Q}static isInstance($){return z.hasMarker($)&&TZ in $}},pZ="GatewayInternalServerError",I0=`vercel.ai.gateway.error.${pZ}`,xZ=Symbol.for(I0),zZ,EZ,HZ=class extends(EZ=z,zZ=xZ,EZ){constructor({message:$="Internal server error",statusCode:W=500,cause:Q,generationId:X}={}){super({message:$,statusCode:W,cause:Q,generationId:X});this[zZ]=!0,this.name=pZ,this.type="internal_server_error"}static isInstance($){return z.hasMarker($)&&xZ in $}},iZ="GatewayResponseError",k0=`vercel.ai.gateway.error.${iZ}`,MZ=Symbol.for(k0),OZ,RZ,v0=class extends(RZ=z,OZ=MZ,RZ){constructor({message:$="Invalid response from Gateway",statusCode:W=502,response:Q,validationError:X,cause:Y,generationId:D}={}){super({message:$,statusCode:W,cause:Y,generationId:D});this[OZ]=!0,this.name=iZ,this.type="response_error",this.response=Q,this.validationError=X}static isInstance($){return z.hasMarker($)&&MZ in $}};async function CZ({response:$,statusCode:W,defaultMessage:Q="Gateway request failed",cause:X,authMethod:Y}){var D;let N=await f({value:$,schema:y0});if(!N.success){let E=typeof $==="object"&&$!==null&&"generationId"in $?$.generationId:void 0;return new v0({message:`Invalid error response format: ${Q}`,statusCode:W,response:$,validationError:N.error,cause:X,generationId:E})}let j=N.value,K=j.error.type,F=j.error.message,q=(D=j.generationId)!=null?D:void 0;switch(K){case"authentication_error":return lZ.createContextualError({apiKeyProvided:Y==="api-key",oidcTokenProvided:Y==="oidc",statusCode:W,cause:X,generationId:q});case"invalid_request_error":return new R0({message:F,statusCode:W,cause:X,generationId:q});case"rate_limit_exceeded":return new S0({message:F,statusCode:W,cause:X,generationId:q});case"model_not_found":{let E=await f({value:j.error.param,schema:P0});return new b0({message:F,statusCode:W,modelId:E.success?E.value.modelId:void 0,cause:X,generationId:q})}case"internal_server_error":return new HZ({message:F,statusCode:W,cause:X,generationId:q});default:return new HZ({message:F,statusCode:W,cause:X,generationId:q})}}var y0=L(()=>V(Z.object({error:Z.object({message:Z.string(),type:Z.string().nullish(),param:Z.unknown().nullish(),code:Z.union([Z.string(),Z.number()]).nullish()}),generationId:Z.string().nullish()}))),dZ="GatewayTimeoutError",h0=`vercel.ai.gateway.error.${dZ}`,SZ=Symbol.for(h0),wZ,PZ,bZ=class $ extends(PZ=z,wZ=SZ,PZ){constructor({message:W="Request timed out",statusCode:Q=408,cause:X,generationId:Y}={}){super({message:W,statusCode:Q,cause:X,generationId:Y});this[wZ]=!0,this.name=dZ,this.type="timeout_error"}static isInstance(W){return z.hasMarker(W)&&SZ in W}static createTimeoutError({originalMessage:W,statusCode:Q=408,cause:X,generationId:Y}){let D=`Gateway request timed out: ${W}
|
|
19
19
|
|
|
20
|
-
This is a client-side timeout. To resolve this, increase your timeout configuration: https://vercel.com/docs/ai-gateway/capabilities/video-generation#extending-timeouts-for-node.js`;return new $({message:D,statusCode:Q,cause:X,generationId:Y})}};function IZ($){if(!($ instanceof Error))return!1;let W=$.code;if(typeof W==="string")return["UND_ERR_HEADERS_TIMEOUT","UND_ERR_BODY_TIMEOUT","UND_ERR_CONNECT_TIMEOUT"].includes(W);return!1}async function H($,W){var Q;if(z.isInstance($))return $;if(IZ($))return bZ.createTimeoutError({originalMessage:$ instanceof Error?$.message:"Unknown error",cause:$});if(v.isInstance($)){if($.cause&&IZ($.cause))return bZ.createTimeoutError({originalMessage:$.message,cause:$});return await CZ({response:f0($),statusCode:(Q=$.statusCode)!=null?Q:500,defaultMessage:"Gateway request failed",cause:$,authMethod:W})}return await CZ({response:{},statusCode:500,defaultMessage:$ instanceof Error?`Gateway request failed: ${$.message}`:"Unknown Gateway error",cause:$,authMethod:W})}function f0($){if($.data!==void 0)return $.data;if($.responseBody!=null)try{return JSON.parse($.responseBody)}catch(W){return $.responseBody}return{}}var nZ="ai-gateway-auth-method";async function w($){let W=await f({value:$[nZ],schema:g0});return W.success?W.value:void 0}var g0=L(()=>V(Z.union([Z.literal("api-key"),Z.literal("oidc")]))),u0=["embedding","image","language","reranking","video"],kZ=class{constructor($){this.config=$}async getAvailableModels(){try{let{value:$}=await y({url:`${this.config.baseURL}/config`,headers:await U(this.config.headers()),successfulResponseHandler:x(l0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(W)=>W}),fetch:this.config.fetch});return $}catch($){throw await H($)}}async getCredits(){try{let $=new URL(this.config.baseURL),{value:W}=await y({url:`${$.origin}/v1/credits`,headers:await U(this.config.headers()),successfulResponseHandler:x(c0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(Q)=>Q}),fetch:this.config.fetch});return W}catch($){throw await H($)}}},l0=L(()=>V(Z.object({models:Z.array(Z.object({id:Z.string(),name:Z.string(),description:Z.string().nullish(),pricing:Z.object({input:Z.string(),output:Z.string(),input_cache_read:Z.string().nullish(),input_cache_write:Z.string().nullish()}).transform(({input:$,output:W,input_cache_read:Q,input_cache_write:X})=>({input:$,output:W,...Q?{cachedInputTokens:Q}:{},...X?{cacheCreationInputTokens:X}:{}})).nullish(),specification:Z.object({specificationVersion:Z.literal("v3"),provider:Z.string(),modelId:Z.string()}),modelType:Z.string().nullish()})).transform(($)=>$.filter((W)=>W.modelType==null||u0.includes(W.modelType)))}))),c0=L(()=>V(Z.object({balance:Z.string(),total_used:Z.string()}).transform(({balance:$,total_used:W})=>({balance:$,totalUsed:W})))),_0=class{constructor($){this.config=$}async getSpendReport($){try{let W=new URL(this.config.baseURL),Q=new URLSearchParams;if(Q.set("start_date",$.startDate),Q.set("end_date",$.endDate),$.groupBy)Q.set("group_by",$.groupBy);if($.datePart)Q.set("date_part",$.datePart);if($.userId)Q.set("user_id",$.userId);if($.model)Q.set("model",$.model);if($.provider)Q.set("provider",$.provider);if($.credentialType)Q.set("credential_type",$.credentialType);if($.tags&&$.tags.length>0)Q.set("tags",$.tags.join(","));let{value:X}=await y({url:`${W.origin}/v1/report?${Q.toString()}`,headers:await U(this.config.headers()),successfulResponseHandler:x(m0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(Y)=>Y}),fetch:this.config.fetch});return X}catch(W){throw await H(W)}}},m0=L(()=>V(Z.object({results:Z.array(Z.object({day:Z.string().optional(),hour:Z.string().optional(),user:Z.string().optional(),model:Z.string().optional(),tag:Z.string().optional(),provider:Z.string().optional(),credential_type:Z.enum(["byok","system"]).optional(),total_cost:Z.number(),market_cost:Z.number().optional(),input_tokens:Z.number().optional(),output_tokens:Z.number().optional(),cached_input_tokens:Z.number().optional(),cache_creation_input_tokens:Z.number().optional(),reasoning_tokens:Z.number().optional(),request_count:Z.number().optional()}).transform(({credential_type:$,total_cost:W,market_cost:Q,input_tokens:X,output_tokens:Y,cached_input_tokens:D,cache_creation_input_tokens:N,reasoning_tokens:j,request_count:K,...F})=>({...F,...$!==void 0?{credentialType:$}:{},totalCost:W,...Q!==void 0?{marketCost:Q}:{},...X!==void 0?{inputTokens:X}:{},...Y!==void 0?{outputTokens:Y}:{},...D!==void 0?{cachedInputTokens:D}:{},...N!==void 0?{cacheCreationInputTokens:N}:{},...j!==void 0?{reasoningTokens:j}:{},...K!==void 0?{requestCount:K}:{}})))}))),p0=class{constructor($){this.config=$}async getGenerationInfo($){try{let W=new URL(this.config.baseURL),{value:Q}=await y({url:`${W.origin}/v1/generation?id=${encodeURIComponent($.id)}`,headers:await U(this.config.headers()),successfulResponseHandler:x(i0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(X)=>X}),fetch:this.config.fetch});return Q}catch(W){throw await H(W)}}},i0=L(()=>V(Z.object({data:Z.object({id:Z.string(),total_cost:Z.number(),upstream_inference_cost:Z.number(),usage:Z.number(),created_at:Z.string(),model:Z.string(),is_byok:Z.boolean(),provider_name:Z.string(),streamed:Z.boolean(),finish_reason:Z.string(),latency:Z.number(),generation_time:Z.number(),native_tokens_prompt:Z.number(),native_tokens_completion:Z.number(),native_tokens_reasoning:Z.number(),native_tokens_cached:Z.number(),native_tokens_cache_creation:Z.number(),billable_web_search_calls:Z.number()}).transform(({total_cost:$,upstream_inference_cost:W,created_at:Q,is_byok:X,provider_name:Y,finish_reason:D,generation_time:N,native_tokens_prompt:j,native_tokens_completion:K,native_tokens_reasoning:F,native_tokens_cached:q,native_tokens_cache_creation:E,billable_web_search_calls:P,...C})=>({...C,totalCost:$,upstreamInferenceCost:W,createdAt:Q,isByok:X,providerName:Y,finishReason:D,generationTime:N,promptTokens:j,completionTokens:K,reasoningTokens:F,cachedTokens:q,cacheCreationTokens:E,billableWebSearchCalls:P}))}).transform(({data:$})=>$))),d0=class{constructor($,W){this.modelId=$,this.config=W,this.specificationVersion="v3",this.supportedUrls={"*/*":[/.*/]}}get provider(){return this.config.provider}async getArgs($){let{abortSignal:W,...Q}=$;return{args:this.maybeEncodeFileParts(Q),warnings:[]}}async doGenerate($){let{args:W,warnings:Q}=await this.getArgs($),{abortSignal:X}=$,Y=await U(this.config.headers());try{let{responseHeaders:D,value:N,rawValue:j}=await R({url:this.getUrl(),headers:O(Y,$.headers,this.getModelConfigHeaders(this.modelId,!1),await U(this.config.o11yHeaders)),body:W,successfulResponseHandler:x(Z.any()),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(K)=>K}),...X&&{abortSignal:X},fetch:this.config.fetch});return{...N,request:{body:W},response:{headers:D,body:j},warnings:Q}}catch(D){throw await H(D,await w(Y))}}async doStream($){let{args:W,warnings:Q}=await this.getArgs($),{abortSignal:X}=$,Y=await U(this.config.headers());try{let{value:D,responseHeaders:N}=await R({url:this.getUrl(),headers:O(Y,$.headers,this.getModelConfigHeaders(this.modelId,!0),await U(this.config.o11yHeaders)),body:W,successfulResponseHandler:fZ(Z.any()),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(j)=>j}),...X&&{abortSignal:X},fetch:this.config.fetch});return{stream:D.pipeThrough(new TransformStream({start(j){if(Q.length>0)j.enqueue({type:"stream-start",warnings:Q})},transform(j,K){if(j.success){let F=j.value;if(F.type==="raw"&&!$.includeRawChunks)return;if(F.type==="response-metadata"&&F.timestamp&&typeof F.timestamp==="string")F.timestamp=new Date(F.timestamp);K.enqueue(F)}else K.error(j.error)}})),request:{body:W},response:{headers:N}}}catch(D){throw await H(D,await w(Y))}}isFilePart($){return $&&typeof $==="object"&&"type"in $&&$.type==="file"}maybeEncodeFileParts($){for(let W of $.prompt)for(let Q of W.content)if(this.isFilePart(Q)){let X=Q;if(X.data instanceof Uint8Array){let Y=Uint8Array.from(X.data),D=Buffer.from(Y).toString("base64");X.data=new URL(`data:${X.mediaType||"application/octet-stream"};base64,${D}`)}}return $}getUrl(){return`${this.config.baseURL}/language-model`}getModelConfigHeaders($,W){return{"ai-language-model-specification-version":"3","ai-language-model-id":$,"ai-language-model-streaming":String(W)}}},n0=class{constructor($,W){this.modelId=$,this.config=W,this.specificationVersion="v3",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0}get provider(){return this.config.provider}async doEmbed({values:$,headers:W,abortSignal:Q,providerOptions:X}){var Y;let D=await U(this.config.headers());try{let{responseHeaders:N,value:j,rawValue:K}=await R({url:this.getUrl(),headers:O(D,W!=null?W:{},this.getModelConfigHeaders(),await U(this.config.o11yHeaders)),body:{values:$,...X?{providerOptions:X}:{}},successfulResponseHandler:x(s0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(F)=>F}),...Q&&{abortSignal:Q},fetch:this.config.fetch});return{embeddings:j.embeddings,usage:(Y=j.usage)!=null?Y:void 0,providerMetadata:j.providerMetadata,response:{headers:N,body:K},warnings:[]}}catch(N){throw await H(N,await w(D))}}getUrl(){return`${this.config.baseURL}/embedding-model`}getModelConfigHeaders(){return{"ai-embedding-model-specification-version":"3","ai-model-id":this.modelId}}},s0=L(()=>V(Z.object({embeddings:Z.array(Z.array(Z.number())),usage:Z.object({tokens:Z.number()}).nullish(),providerMetadata:Z.record(Z.string(),Z.record(Z.string(),Z.unknown())).optional()}))),t0=class{constructor($,W){this.modelId=$,this.config=W,this.specificationVersion="v3",this.maxImagesPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:$,n:W,size:Q,aspectRatio:X,seed:Y,files:D,mask:N,providerOptions:j,headers:K,abortSignal:F}){var q,E,P,C;let b=await U(this.config.headers());try{let{responseHeaders:J,value:G,rawValue:I}=await R({url:this.getUrl(),headers:O(b,K!=null?K:{},this.getModelConfigHeaders(),await U(this.config.o11yHeaders)),body:{prompt:$,n:W,...Q&&{size:Q},...X&&{aspectRatio:X},...Y&&{seed:Y},...j&&{providerOptions:j},...D&&{files:D.map((A)=>vZ(A))},...N&&{mask:vZ(N)}},successfulResponseHandler:x(e0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(A)=>A}),...F&&{abortSignal:F},fetch:this.config.fetch});return{images:G.images,warnings:(q=G.warnings)!=null?q:[],providerMetadata:G.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:J},...G.usage!=null&&{usage:{inputTokens:(E=G.usage.inputTokens)!=null?E:void 0,outputTokens:(P=G.usage.outputTokens)!=null?P:void 0,totalTokens:(C=G.usage.totalTokens)!=null?C:void 0}}}}catch(J){throw await H(J,await w(b))}}getUrl(){return`${this.config.baseURL}/image-model`}getModelConfigHeaders(){return{"ai-image-model-specification-version":"3","ai-model-id":this.modelId}}};function vZ($){if($.type==="file"&&$.data instanceof Uint8Array)return{...$,data:u($.data)};return $}var a0=Z.object({images:Z.array(Z.unknown()).optional()}).catchall(Z.unknown()),o0=Z.discriminatedUnion("type",[Z.object({type:Z.literal("unsupported"),feature:Z.string(),details:Z.string().optional()}),Z.object({type:Z.literal("compatibility"),feature:Z.string(),details:Z.string().optional()}),Z.object({type:Z.literal("other"),message:Z.string()})]),r0=Z.object({inputTokens:Z.number().nullish(),outputTokens:Z.number().nullish(),totalTokens:Z.number().nullish()}),e0=Z.object({images:Z.array(Z.string()),warnings:Z.array(o0).optional(),providerMetadata:Z.record(Z.string(),a0).optional(),usage:r0.optional()}),Z$=class{constructor($,W){this.modelId=$,this.config=W,this.specificationVersion="v3",this.maxVideosPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:$,n:W,aspectRatio:Q,resolution:X,duration:Y,fps:D,seed:N,image:j,providerOptions:K,headers:F,abortSignal:q}){var E;let P=await U(this.config.headers());try{let{responseHeaders:C,value:b}=await R({url:this.getUrl(),headers:O(P,F!=null?F:{},this.getModelConfigHeaders(),await U(this.config.o11yHeaders),{accept:"text/event-stream"}),body:{prompt:$,n:W,...Q&&{aspectRatio:Q},...X&&{resolution:X},...Y&&{duration:Y},...D&&{fps:D},...N&&{seed:N},...K&&{providerOptions:K},...j&&{image:$$(j)}},successfulResponseHandler:async({response:J,url:G,requestBodyValues:I})=>{if(J.body==null)throw new v({message:"SSE response body is empty",url:G,requestBodyValues:I,statusCode:J.status});let M=hZ({stream:J.body,schema:Y$}).getReader(),{done:k,value:S}=await M.read();if(M.releaseLock(),k||!S)throw new v({message:"SSE stream ended without a data event",url:G,requestBodyValues:I,statusCode:J.status});if(!S.success)throw new v({message:"Failed to parse video SSE event",cause:S.error,url:G,requestBodyValues:I,statusCode:J.status});let T=S.value;if(T.type==="error")throw new v({message:T.message,statusCode:T.statusCode,url:G,requestBodyValues:I,responseHeaders:Object.fromEntries([...J.headers]),responseBody:JSON.stringify(T),data:{error:{message:T.message,type:T.errorType,param:T.param}}});return{value:{videos:T.videos,warnings:T.warnings,providerMetadata:T.providerMetadata},responseHeaders:Object.fromEntries([...J.headers])}},failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(J)=>J}),...q&&{abortSignal:q},fetch:this.config.fetch});return{videos:b.videos,warnings:(E=b.warnings)!=null?E:[],providerMetadata:b.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:C}}}catch(C){throw await H(C,await w(P))}}getUrl(){return`${this.config.baseURL}/video-model`}getModelConfigHeaders(){return{"ai-video-model-specification-version":"3","ai-model-id":this.modelId}}};function $$($){if($.type==="file"&&$.data instanceof Uint8Array)return{...$,data:u($.data)};return $}var W$=Z.object({videos:Z.array(Z.unknown()).optional()}).catchall(Z.unknown()),Q$=Z.union([Z.object({type:Z.literal("url"),url:Z.string(),mediaType:Z.string()}),Z.object({type:Z.literal("base64"),data:Z.string(),mediaType:Z.string()})]),X$=Z.discriminatedUnion("type",[Z.object({type:Z.literal("unsupported"),feature:Z.string(),details:Z.string().optional()}),Z.object({type:Z.literal("compatibility"),feature:Z.string(),details:Z.string().optional()}),Z.object({type:Z.literal("other"),message:Z.string()})]),Y$=Z.discriminatedUnion("type",[Z.object({type:Z.literal("result"),videos:Z.array(Q$),warnings:Z.array(X$).optional(),providerMetadata:Z.record(Z.string(),W$).optional()}),Z.object({type:Z.literal("error"),message:Z.string(),errorType:Z.string(),statusCode:Z.number(),param:Z.unknown().nullable()})]),j$=class{constructor($,W){this.modelId=$,this.config=W,this.specificationVersion="v3"}get provider(){return this.config.provider}async doRerank({documents:$,query:W,topN:Q,headers:X,abortSignal:Y,providerOptions:D}){let N=await U(this.config.headers());try{let{responseHeaders:j,value:K,rawValue:F}=await R({url:this.getUrl(),headers:O(N,X!=null?X:{},this.getModelConfigHeaders(),await U(this.config.o11yHeaders)),body:{documents:$,query:W,...Q!=null?{topN:Q}:{},...D?{providerOptions:D}:{}},successfulResponseHandler:x(D$),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(q)=>q}),...Y&&{abortSignal:Y},fetch:this.config.fetch});return{ranking:K.ranking,providerMetadata:K.providerMetadata,response:{headers:j,body:F},warnings:[]}}catch(j){throw await H(j,await w(N))}}getUrl(){return`${this.config.baseURL}/reranking-model`}getModelConfigHeaders(){return{"ai-reranking-model-specification-version":"3","ai-model-id":this.modelId}}},D$=L(()=>V(Z.object({ranking:Z.array(Z.object({index:Z.number(),relevanceScore:Z.number()})),providerMetadata:Z.record(Z.string(),Z.record(Z.string(),Z.unknown())).optional()}))),K$=L(()=>V(Z.object({objective:Z.string().describe("Natural-language description of the web research goal, including source or freshness guidance and broader context from the task. Maximum 5000 characters."),search_queries:Z.array(Z.string()).optional().describe("Optional search queries to supplement the objective. Maximum 200 characters per query."),mode:Z.enum(["one-shot","agentic"]).optional().describe('Mode preset: "one-shot" for comprehensive results with longer excerpts (default), "agentic" for concise, token-efficient results for multi-step workflows.'),max_results:Z.number().optional().describe("Maximum number of results to return (1-20). Defaults to 10 if not specified."),source_policy:Z.object({include_domains:Z.array(Z.string()).optional().describe("List of domains to include in search results."),exclude_domains:Z.array(Z.string()).optional().describe("List of domains to exclude from search results."),after_date:Z.string().optional().describe("Only include results published after this date (ISO 8601 format).")}).optional().describe("Source policy for controlling which domains to include/exclude and freshness."),excerpts:Z.object({max_chars_per_result:Z.number().optional().describe("Maximum characters per result."),max_chars_total:Z.number().optional().describe("Maximum total characters across all results.")}).optional().describe("Excerpt configuration for controlling result length."),fetch_policy:Z.object({max_age_seconds:Z.number().optional().describe("Maximum age in seconds for cached content. Set to 0 to always fetch fresh content.")}).optional().describe("Fetch policy for controlling content freshness.")}))),J$=L(()=>V(Z.union([Z.object({searchId:Z.string(),results:Z.array(Z.object({url:Z.string(),title:Z.string(),excerpt:Z.string(),publishDate:Z.string().nullable().optional(),relevanceScore:Z.number().optional()}))}),Z.object({error:Z.enum(["api_error","rate_limit","timeout","invalid_input","configuration_error","unknown"]),statusCode:Z.number().optional(),message:Z.string()})]))),A$=l({id:"gateway.parallel_search",inputSchema:K$,outputSchema:J$}),F$=($={})=>A$($),N$=L(()=>V(Z.object({query:Z.union([Z.string(),Z.array(Z.string())]).describe("Search query (string) or multiple queries (array of up to 5 strings). Multi-query searches return combined results from all queries."),max_results:Z.number().optional().describe("Maximum number of search results to return (1-20, default: 10)"),max_tokens_per_page:Z.number().optional().describe("Maximum number of tokens to extract per search result page (256-2048, default: 2048)"),max_tokens:Z.number().optional().describe("Maximum total tokens across all search results (default: 25000, max: 1000000)"),country:Z.string().optional().describe("Two-letter ISO 3166-1 alpha-2 country code for regional search results (e.g., 'US', 'GB', 'FR')"),search_domain_filter:Z.array(Z.string()).optional().describe("List of domains to include or exclude from search results (max 20). To include: ['nature.com', 'science.org']. To exclude: ['-example.com', '-spam.net']"),search_language_filter:Z.array(Z.string()).optional().describe("List of ISO 639-1 language codes to filter results (max 10, lowercase). Examples: ['en', 'fr', 'de']"),search_after_date:Z.string().optional().describe("Include only results published after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),search_before_date:Z.string().optional().describe("Include only results published before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),last_updated_after_filter:Z.string().optional().describe("Include only results last updated after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),last_updated_before_filter:Z.string().optional().describe("Include only results last updated before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),search_recency_filter:Z.enum(["day","week","month","year"]).optional().describe("Filter results by relative time period. Cannot be used with search_after_date or search_before_date.")}))),U$=L(()=>V(Z.union([Z.object({results:Z.array(Z.object({title:Z.string(),url:Z.string(),snippet:Z.string(),date:Z.string().optional(),lastUpdated:Z.string().optional()})),id:Z.string()}),Z.object({error:Z.enum(["api_error","rate_limit","timeout","invalid_input","unknown"]),statusCode:Z.number().optional(),message:Z.string()})]))),L$=l({id:"gateway.perplexity_search",inputSchema:N$,outputSchema:U$}),V$=($={})=>L$($),q$={parallelSearch:F$,perplexitySearch:V$};async function T$(){var $;return($=sZ.getContext().headers)==null?void 0:$["x-vercel-id"]}var B$="3.0.104",G$="0.0.1";function x$($={}){var W,Q;let X=null,Y=null,D=(W=$.metadataCacheRefreshMillis)!=null?W:300000,N=0,j=(Q=gZ($.baseURL))!=null?Q:"https://ai-gateway.vercel.sh/v3/ai",K=async()=>{try{let A=await z$($);return yZ({Authorization:`Bearer ${A.token}`,"ai-gateway-protocol-version":G$,[nZ]:A.authMethod,...$.headers},`ai-sdk/gateway/${B$}`)}catch(A){throw lZ.createContextualError({apiKeyProvided:!1,oidcTokenProvided:!1,statusCode:401,cause:A})}},F=()=>{let A=h({settingValue:void 0,environmentVariableName:"VERCEL_DEPLOYMENT_ID"}),M=h({settingValue:void 0,environmentVariableName:"VERCEL_ENV"}),k=h({settingValue:void 0,environmentVariableName:"VERCEL_REGION"}),S=h({settingValue:void 0,environmentVariableName:"VERCEL_PROJECT_ID"});return async()=>{let T=await T$();return{...A&&{"ai-o11y-deployment-id":A},...M&&{"ai-o11y-environment":M},...k&&{"ai-o11y-region":k},...T&&{"ai-o11y-request-id":T},...S&&{"ai-o11y-project-id":S}}}},q=(A)=>{return new d0(A,{provider:"gateway",baseURL:j,headers:K,fetch:$.fetch,o11yHeaders:F()})},E=async()=>{var A,M,k;let S=(k=(M=(A=$._internal)==null?void 0:A.currentDate)==null?void 0:M.call(A).getTime())!=null?k:Date.now();if(!X||S-N>D)N=S,X=new kZ({baseURL:j,headers:K,fetch:$.fetch}).getAvailableModels().then((T)=>{return Y=T,T}).catch(async(T)=>{throw await H(T,await w(await K()))});return Y?Promise.resolve(Y):X},P=async()=>{return new kZ({baseURL:j,headers:K,fetch:$.fetch}).getCredits().catch(async(A)=>{throw await H(A,await w(await K()))})},C=async(A)=>{return new _0({baseURL:j,headers:K,fetch:$.fetch}).getSpendReport(A).catch(async(M)=>{throw await H(M,await w(await K()))})},b=async(A)=>{return new p0({baseURL:j,headers:K,fetch:$.fetch}).getGenerationInfo(A).catch(async(M)=>{throw await H(M,await w(await K()))})},J=function(A){if(new.target)throw Error("The Gateway Provider model function cannot be called with the new keyword.");return q(A)};J.specificationVersion="v3",J.getAvailableModels=E,J.getCredits=P,J.getSpendReport=C,J.getGenerationInfo=b,J.imageModel=(A)=>{return new t0(A,{provider:"gateway",baseURL:j,headers:K,fetch:$.fetch,o11yHeaders:F()})},J.languageModel=q;let G=(A)=>{return new n0(A,{provider:"gateway",baseURL:j,headers:K,fetch:$.fetch,o11yHeaders:F()})};J.embeddingModel=G,J.textEmbeddingModel=G,J.videoModel=(A)=>{return new Z$(A,{provider:"gateway",baseURL:j,headers:K,fetch:$.fetch,o11yHeaders:F()})};let I=(A)=>{return new j$(A,{provider:"gateway",baseURL:j,headers:K,fetch:$.fetch,o11yHeaders:F()})};return J.rerankingModel=I,J.reranking=I,J.chat=J.languageModel,J.embedding=J.embeddingModel,J.image=J.imageModel,J.video=J.videoModel,J.tools=q$,J}var $W=x$();async function z$($){let W=h({settingValue:$.apiKey,environmentVariableName:"AI_GATEWAY_API_KEY"});if(W)return{token:W,authMethod:"api-key"};return{token:await tZ.getVercelOidcToken(),authMethod:"oidc"}}export{z as Nn,lZ as On,R0 as Pn,S0 as Qn,b0 as Rn,HZ as Sn,v0 as Tn,x$ as Un,$W as Vn};
|
|
20
|
+
This is a client-side timeout. To resolve this, increase your timeout configuration: https://vercel.com/docs/ai-gateway/capabilities/video-generation#extending-timeouts-for-node.js`;return new $({message:D,statusCode:Q,cause:X,generationId:Y})}};function IZ($){if(!($ instanceof Error))return!1;let W=$.code;if(typeof W==="string")return["UND_ERR_HEADERS_TIMEOUT","UND_ERR_BODY_TIMEOUT","UND_ERR_CONNECT_TIMEOUT"].includes(W);return!1}async function H($,W){var Q;if(z.isInstance($))return $;if(IZ($))return bZ.createTimeoutError({originalMessage:$ instanceof Error?$.message:"Unknown error",cause:$});if(v.isInstance($)){if($.cause&&IZ($.cause))return bZ.createTimeoutError({originalMessage:$.message,cause:$});return await CZ({response:f0($),statusCode:(Q=$.statusCode)!=null?Q:500,defaultMessage:"Gateway request failed",cause:$,authMethod:W})}return await CZ({response:{},statusCode:500,defaultMessage:$ instanceof Error?`Gateway request failed: ${$.message}`:"Unknown Gateway error",cause:$,authMethod:W})}function f0($){if($.data!==void 0)return $.data;if($.responseBody!=null)try{return JSON.parse($.responseBody)}catch(W){return $.responseBody}return{}}var nZ="ai-gateway-auth-method";async function w($){let W=await f({value:$[nZ],schema:g0});return W.success?W.value:void 0}var g0=L(()=>V(Z.union([Z.literal("api-key"),Z.literal("oidc")]))),u0=["embedding","image","language","reranking","video"],kZ=class{constructor($){this.config=$}async getAvailableModels(){try{let{value:$}=await y({url:`${this.config.baseURL}/config`,headers:await U(this.config.headers()),successfulResponseHandler:x(l0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(W)=>W}),fetch:this.config.fetch});return $}catch($){throw await H($)}}async getCredits(){try{let $=new URL(this.config.baseURL),{value:W}=await y({url:`${$.origin}/v1/credits`,headers:await U(this.config.headers()),successfulResponseHandler:x(c0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(Q)=>Q}),fetch:this.config.fetch});return W}catch($){throw await H($)}}},l0=L(()=>V(Z.object({models:Z.array(Z.object({id:Z.string(),name:Z.string(),description:Z.string().nullish(),pricing:Z.object({input:Z.string(),output:Z.string(),input_cache_read:Z.string().nullish(),input_cache_write:Z.string().nullish()}).transform(({input:$,output:W,input_cache_read:Q,input_cache_write:X})=>({input:$,output:W,...Q?{cachedInputTokens:Q}:{},...X?{cacheCreationInputTokens:X}:{}})).nullish(),specification:Z.object({specificationVersion:Z.literal("v3"),provider:Z.string(),modelId:Z.string()}),modelType:Z.string().nullish()})).transform(($)=>$.filter((W)=>W.modelType==null||u0.includes(W.modelType)))}))),c0=L(()=>V(Z.object({balance:Z.string(),total_used:Z.string()}).transform(({balance:$,total_used:W})=>({balance:$,totalUsed:W})))),_0=class{constructor($){this.config=$}async getSpendReport($){try{let W=new URL(this.config.baseURL),Q=new URLSearchParams;if(Q.set("start_date",$.startDate),Q.set("end_date",$.endDate),$.groupBy)Q.set("group_by",$.groupBy);if($.datePart)Q.set("date_part",$.datePart);if($.userId)Q.set("user_id",$.userId);if($.model)Q.set("model",$.model);if($.provider)Q.set("provider",$.provider);if($.credentialType)Q.set("credential_type",$.credentialType);if($.tags&&$.tags.length>0)Q.set("tags",$.tags.join(","));let{value:X}=await y({url:`${W.origin}/v1/report?${Q.toString()}`,headers:await U(this.config.headers()),successfulResponseHandler:x(m0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(Y)=>Y}),fetch:this.config.fetch});return X}catch(W){throw await H(W)}}},m0=L(()=>V(Z.object({results:Z.array(Z.object({day:Z.string().optional(),hour:Z.string().optional(),user:Z.string().optional(),model:Z.string().optional(),tag:Z.string().optional(),provider:Z.string().optional(),credential_type:Z.enum(["byok","system"]).optional(),total_cost:Z.number(),market_cost:Z.number().optional(),input_tokens:Z.number().optional(),output_tokens:Z.number().optional(),cached_input_tokens:Z.number().optional(),cache_creation_input_tokens:Z.number().optional(),reasoning_tokens:Z.number().optional(),request_count:Z.number().optional()}).transform(({credential_type:$,total_cost:W,market_cost:Q,input_tokens:X,output_tokens:Y,cached_input_tokens:D,cache_creation_input_tokens:N,reasoning_tokens:j,request_count:K,...F})=>({...F,...$!==void 0?{credentialType:$}:{},totalCost:W,...Q!==void 0?{marketCost:Q}:{},...X!==void 0?{inputTokens:X}:{},...Y!==void 0?{outputTokens:Y}:{},...D!==void 0?{cachedInputTokens:D}:{},...N!==void 0?{cacheCreationInputTokens:N}:{},...j!==void 0?{reasoningTokens:j}:{},...K!==void 0?{requestCount:K}:{}})))}))),p0=class{constructor($){this.config=$}async getGenerationInfo($){try{let W=new URL(this.config.baseURL),{value:Q}=await y({url:`${W.origin}/v1/generation?id=${encodeURIComponent($.id)}`,headers:await U(this.config.headers()),successfulResponseHandler:x(i0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(X)=>X}),fetch:this.config.fetch});return Q}catch(W){throw await H(W)}}},i0=L(()=>V(Z.object({data:Z.object({id:Z.string(),total_cost:Z.number(),upstream_inference_cost:Z.number(),usage:Z.number(),created_at:Z.string(),model:Z.string(),is_byok:Z.boolean(),provider_name:Z.string(),streamed:Z.boolean(),finish_reason:Z.string(),latency:Z.number(),generation_time:Z.number(),native_tokens_prompt:Z.number(),native_tokens_completion:Z.number(),native_tokens_reasoning:Z.number(),native_tokens_cached:Z.number(),native_tokens_cache_creation:Z.number(),billable_web_search_calls:Z.number()}).transform(({total_cost:$,upstream_inference_cost:W,created_at:Q,is_byok:X,provider_name:Y,finish_reason:D,generation_time:N,native_tokens_prompt:j,native_tokens_completion:K,native_tokens_reasoning:F,native_tokens_cached:q,native_tokens_cache_creation:E,billable_web_search_calls:P,...C})=>({...C,totalCost:$,upstreamInferenceCost:W,createdAt:Q,isByok:X,providerName:Y,finishReason:D,generationTime:N,promptTokens:j,completionTokens:K,reasoningTokens:F,cachedTokens:q,cacheCreationTokens:E,billableWebSearchCalls:P}))}).transform(({data:$})=>$))),d0=class{constructor($,W){this.modelId=$,this.config=W,this.specificationVersion="v3",this.supportedUrls={"*/*":[/.*/]}}get provider(){return this.config.provider}async getArgs($){let{abortSignal:W,...Q}=$;return{args:this.maybeEncodeFileParts(Q),warnings:[]}}async doGenerate($){let{args:W,warnings:Q}=await this.getArgs($),{abortSignal:X}=$,Y=await U(this.config.headers());try{let{responseHeaders:D,value:N,rawValue:j}=await R({url:this.getUrl(),headers:O(Y,$.headers,this.getModelConfigHeaders(this.modelId,!1),await U(this.config.o11yHeaders)),body:W,successfulResponseHandler:x(Z.any()),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(K)=>K}),...X&&{abortSignal:X},fetch:this.config.fetch});return{...N,request:{body:W},response:{headers:D,body:j},warnings:Q}}catch(D){throw await H(D,await w(Y))}}async doStream($){let{args:W,warnings:Q}=await this.getArgs($),{abortSignal:X}=$,Y=await U(this.config.headers());try{let{value:D,responseHeaders:N}=await R({url:this.getUrl(),headers:O(Y,$.headers,this.getModelConfigHeaders(this.modelId,!0),await U(this.config.o11yHeaders)),body:W,successfulResponseHandler:fZ(Z.any()),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(j)=>j}),...X&&{abortSignal:X},fetch:this.config.fetch});return{stream:D.pipeThrough(new TransformStream({start(j){if(Q.length>0)j.enqueue({type:"stream-start",warnings:Q})},transform(j,K){if(j.success){let F=j.value;if(F.type==="raw"&&!$.includeRawChunks)return;if(F.type==="response-metadata"&&F.timestamp&&typeof F.timestamp==="string")F.timestamp=new Date(F.timestamp);K.enqueue(F)}else K.error(j.error)}})),request:{body:W},response:{headers:N}}}catch(D){throw await H(D,await w(Y))}}isFilePart($){return $&&typeof $==="object"&&"type"in $&&$.type==="file"}maybeEncodeFileParts($){for(let W of $.prompt)for(let Q of W.content)if(this.isFilePart(Q)){let X=Q;if(X.data instanceof Uint8Array){let Y=Uint8Array.from(X.data),D=Buffer.from(Y).toString("base64");X.data=new URL(`data:${X.mediaType||"application/octet-stream"};base64,${D}`)}}return $}getUrl(){return`${this.config.baseURL}/language-model`}getModelConfigHeaders($,W){return{"ai-language-model-specification-version":"3","ai-language-model-id":$,"ai-language-model-streaming":String(W)}}},n0=class{constructor($,W){this.modelId=$,this.config=W,this.specificationVersion="v3",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0}get provider(){return this.config.provider}async doEmbed({values:$,headers:W,abortSignal:Q,providerOptions:X}){var Y;let D=await U(this.config.headers());try{let{responseHeaders:N,value:j,rawValue:K}=await R({url:this.getUrl(),headers:O(D,W!=null?W:{},this.getModelConfigHeaders(),await U(this.config.o11yHeaders)),body:{values:$,...X?{providerOptions:X}:{}},successfulResponseHandler:x(s0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(F)=>F}),...Q&&{abortSignal:Q},fetch:this.config.fetch});return{embeddings:j.embeddings,usage:(Y=j.usage)!=null?Y:void 0,providerMetadata:j.providerMetadata,response:{headers:N,body:K},warnings:[]}}catch(N){throw await H(N,await w(D))}}getUrl(){return`${this.config.baseURL}/embedding-model`}getModelConfigHeaders(){return{"ai-embedding-model-specification-version":"3","ai-model-id":this.modelId}}},s0=L(()=>V(Z.object({embeddings:Z.array(Z.array(Z.number())),usage:Z.object({tokens:Z.number()}).nullish(),providerMetadata:Z.record(Z.string(),Z.record(Z.string(),Z.unknown())).optional()}))),t0=class{constructor($,W){this.modelId=$,this.config=W,this.specificationVersion="v3",this.maxImagesPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:$,n:W,size:Q,aspectRatio:X,seed:Y,files:D,mask:N,providerOptions:j,headers:K,abortSignal:F}){var q,E,P,C;let b=await U(this.config.headers());try{let{responseHeaders:J,value:G,rawValue:I}=await R({url:this.getUrl(),headers:O(b,K!=null?K:{},this.getModelConfigHeaders(),await U(this.config.o11yHeaders)),body:{prompt:$,n:W,...Q&&{size:Q},...X&&{aspectRatio:X},...Y&&{seed:Y},...j&&{providerOptions:j},...D&&{files:D.map((A)=>vZ(A))},...N&&{mask:vZ(N)}},successfulResponseHandler:x(e0),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(A)=>A}),...F&&{abortSignal:F},fetch:this.config.fetch});return{images:G.images,warnings:(q=G.warnings)!=null?q:[],providerMetadata:G.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:J},...G.usage!=null&&{usage:{inputTokens:(E=G.usage.inputTokens)!=null?E:void 0,outputTokens:(P=G.usage.outputTokens)!=null?P:void 0,totalTokens:(C=G.usage.totalTokens)!=null?C:void 0}}}}catch(J){throw await H(J,await w(b))}}getUrl(){return`${this.config.baseURL}/image-model`}getModelConfigHeaders(){return{"ai-image-model-specification-version":"3","ai-model-id":this.modelId}}};function vZ($){if($.type==="file"&&$.data instanceof Uint8Array)return{...$,data:u($.data)};return $}var a0=Z.object({images:Z.array(Z.unknown()).optional()}).catchall(Z.unknown()),o0=Z.discriminatedUnion("type",[Z.object({type:Z.literal("unsupported"),feature:Z.string(),details:Z.string().optional()}),Z.object({type:Z.literal("compatibility"),feature:Z.string(),details:Z.string().optional()}),Z.object({type:Z.literal("other"),message:Z.string()})]),r0=Z.object({inputTokens:Z.number().nullish(),outputTokens:Z.number().nullish(),totalTokens:Z.number().nullish()}),e0=Z.object({images:Z.array(Z.string()),warnings:Z.array(o0).optional(),providerMetadata:Z.record(Z.string(),a0).optional(),usage:r0.optional()}),Z$=class{constructor($,W){this.modelId=$,this.config=W,this.specificationVersion="v3",this.maxVideosPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:$,n:W,aspectRatio:Q,resolution:X,duration:Y,fps:D,seed:N,image:j,providerOptions:K,headers:F,abortSignal:q}){var E;let P=await U(this.config.headers());try{let{responseHeaders:C,value:b}=await R({url:this.getUrl(),headers:O(P,F!=null?F:{},this.getModelConfigHeaders(),await U(this.config.o11yHeaders),{accept:"text/event-stream"}),body:{prompt:$,n:W,...Q&&{aspectRatio:Q},...X&&{resolution:X},...Y&&{duration:Y},...D&&{fps:D},...N&&{seed:N},...K&&{providerOptions:K},...j&&{image:$$(j)}},successfulResponseHandler:async({response:J,url:G,requestBodyValues:I})=>{if(J.body==null)throw new v({message:"SSE response body is empty",url:G,requestBodyValues:I,statusCode:J.status});let M=hZ({stream:J.body,schema:Y$}).getReader(),{done:k,value:S}=await M.read();if(M.releaseLock(),k||!S)throw new v({message:"SSE stream ended without a data event",url:G,requestBodyValues:I,statusCode:J.status});if(!S.success)throw new v({message:"Failed to parse video SSE event",cause:S.error,url:G,requestBodyValues:I,statusCode:J.status});let T=S.value;if(T.type==="error")throw new v({message:T.message,statusCode:T.statusCode,url:G,requestBodyValues:I,responseHeaders:Object.fromEntries([...J.headers]),responseBody:JSON.stringify(T),data:{error:{message:T.message,type:T.errorType,param:T.param}}});return{value:{videos:T.videos,warnings:T.warnings,providerMetadata:T.providerMetadata},responseHeaders:Object.fromEntries([...J.headers])}},failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(J)=>J}),...q&&{abortSignal:q},fetch:this.config.fetch});return{videos:b.videos,warnings:(E=b.warnings)!=null?E:[],providerMetadata:b.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:C}}}catch(C){throw await H(C,await w(P))}}getUrl(){return`${this.config.baseURL}/video-model`}getModelConfigHeaders(){return{"ai-video-model-specification-version":"3","ai-model-id":this.modelId}}};function $$($){if($.type==="file"&&$.data instanceof Uint8Array)return{...$,data:u($.data)};return $}var W$=Z.object({videos:Z.array(Z.unknown()).optional()}).catchall(Z.unknown()),Q$=Z.union([Z.object({type:Z.literal("url"),url:Z.string(),mediaType:Z.string()}),Z.object({type:Z.literal("base64"),data:Z.string(),mediaType:Z.string()})]),X$=Z.discriminatedUnion("type",[Z.object({type:Z.literal("unsupported"),feature:Z.string(),details:Z.string().optional()}),Z.object({type:Z.literal("compatibility"),feature:Z.string(),details:Z.string().optional()}),Z.object({type:Z.literal("other"),message:Z.string()})]),Y$=Z.discriminatedUnion("type",[Z.object({type:Z.literal("result"),videos:Z.array(Q$),warnings:Z.array(X$).optional(),providerMetadata:Z.record(Z.string(),W$).optional()}),Z.object({type:Z.literal("error"),message:Z.string(),errorType:Z.string(),statusCode:Z.number(),param:Z.unknown().nullable()})]),j$=class{constructor($,W){this.modelId=$,this.config=W,this.specificationVersion="v3"}get provider(){return this.config.provider}async doRerank({documents:$,query:W,topN:Q,headers:X,abortSignal:Y,providerOptions:D}){let N=await U(this.config.headers());try{let{responseHeaders:j,value:K,rawValue:F}=await R({url:this.getUrl(),headers:O(N,X!=null?X:{},this.getModelConfigHeaders(),await U(this.config.o11yHeaders)),body:{documents:$,query:W,...Q!=null?{topN:Q}:{},...D?{providerOptions:D}:{}},successfulResponseHandler:x(D$),failedResponseHandler:B({errorSchema:Z.any(),errorToMessage:(q)=>q}),...Y&&{abortSignal:Y},fetch:this.config.fetch});return{ranking:K.ranking,providerMetadata:K.providerMetadata,response:{headers:j,body:F},warnings:[]}}catch(j){throw await H(j,await w(N))}}getUrl(){return`${this.config.baseURL}/reranking-model`}getModelConfigHeaders(){return{"ai-reranking-model-specification-version":"3","ai-model-id":this.modelId}}},D$=L(()=>V(Z.object({ranking:Z.array(Z.object({index:Z.number(),relevanceScore:Z.number()})),providerMetadata:Z.record(Z.string(),Z.record(Z.string(),Z.unknown())).optional()}))),K$=L(()=>V(Z.object({objective:Z.string().describe("Natural-language description of the web research goal, including source or freshness guidance and broader context from the task. Maximum 5000 characters."),search_queries:Z.array(Z.string()).optional().describe("Optional search queries to supplement the objective. Maximum 200 characters per query."),mode:Z.enum(["one-shot","agentic"]).optional().describe('Mode preset: "one-shot" for comprehensive results with longer excerpts (default), "agentic" for concise, token-efficient results for multi-step workflows.'),max_results:Z.number().optional().describe("Maximum number of results to return (1-20). Defaults to 10 if not specified."),source_policy:Z.object({include_domains:Z.array(Z.string()).optional().describe("List of domains to include in search results."),exclude_domains:Z.array(Z.string()).optional().describe("List of domains to exclude from search results."),after_date:Z.string().optional().describe("Only include results published after this date (ISO 8601 format).")}).optional().describe("Source policy for controlling which domains to include/exclude and freshness."),excerpts:Z.object({max_chars_per_result:Z.number().optional().describe("Maximum characters per result."),max_chars_total:Z.number().optional().describe("Maximum total characters across all results.")}).optional().describe("Excerpt configuration for controlling result length."),fetch_policy:Z.object({max_age_seconds:Z.number().optional().describe("Maximum age in seconds for cached content. Set to 0 to always fetch fresh content.")}).optional().describe("Fetch policy for controlling content freshness.")}))),J$=L(()=>V(Z.union([Z.object({searchId:Z.string(),results:Z.array(Z.object({url:Z.string(),title:Z.string(),excerpt:Z.string(),publishDate:Z.string().nullable().optional(),relevanceScore:Z.number().optional()}))}),Z.object({error:Z.enum(["api_error","rate_limit","timeout","invalid_input","configuration_error","unknown"]),statusCode:Z.number().optional(),message:Z.string()})]))),A$=l({id:"gateway.parallel_search",inputSchema:K$,outputSchema:J$}),F$=($={})=>A$($),N$=L(()=>V(Z.object({query:Z.union([Z.string(),Z.array(Z.string())]).describe("Search query (string) or multiple queries (array of up to 5 strings). Multi-query searches return combined results from all queries."),max_results:Z.number().optional().describe("Maximum number of search results to return (1-20, default: 10)"),max_tokens_per_page:Z.number().optional().describe("Maximum number of tokens to extract per search result page (256-2048, default: 2048)"),max_tokens:Z.number().optional().describe("Maximum total tokens across all search results (default: 25000, max: 1000000)"),country:Z.string().optional().describe("Two-letter ISO 3166-1 alpha-2 country code for regional search results (e.g., 'US', 'GB', 'FR')"),search_domain_filter:Z.array(Z.string()).optional().describe("List of domains to include or exclude from search results (max 20). To include: ['nature.com', 'science.org']. To exclude: ['-example.com', '-spam.net']"),search_language_filter:Z.array(Z.string()).optional().describe("List of ISO 639-1 language codes to filter results (max 10, lowercase). Examples: ['en', 'fr', 'de']"),search_after_date:Z.string().optional().describe("Include only results published after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),search_before_date:Z.string().optional().describe("Include only results published before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),last_updated_after_filter:Z.string().optional().describe("Include only results last updated after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),last_updated_before_filter:Z.string().optional().describe("Include only results last updated before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),search_recency_filter:Z.enum(["day","week","month","year"]).optional().describe("Filter results by relative time period. Cannot be used with search_after_date or search_before_date.")}))),U$=L(()=>V(Z.union([Z.object({results:Z.array(Z.object({title:Z.string(),url:Z.string(),snippet:Z.string(),date:Z.string().optional(),lastUpdated:Z.string().optional()})),id:Z.string()}),Z.object({error:Z.enum(["api_error","rate_limit","timeout","invalid_input","unknown"]),statusCode:Z.number().optional(),message:Z.string()})]))),L$=l({id:"gateway.perplexity_search",inputSchema:N$,outputSchema:U$}),V$=($={})=>L$($),q$={parallelSearch:F$,perplexitySearch:V$};async function T$(){var $;return($=sZ.getContext().headers)==null?void 0:$["x-vercel-id"]}var B$="3.0.104",G$="0.0.1";function x$($={}){var W,Q;let X=null,Y=null,D=(W=$.metadataCacheRefreshMillis)!=null?W:300000,N=0,j=(Q=gZ($.baseURL))!=null?Q:"https://ai-gateway.vercel.sh/v3/ai",K=async()=>{try{let A=await z$($);return yZ({Authorization:`Bearer ${A.token}`,"ai-gateway-protocol-version":G$,[nZ]:A.authMethod,...$.headers},`ai-sdk/gateway/${B$}`)}catch(A){throw lZ.createContextualError({apiKeyProvided:!1,oidcTokenProvided:!1,statusCode:401,cause:A})}},F=()=>{let A=h({settingValue:void 0,environmentVariableName:"VERCEL_DEPLOYMENT_ID"}),M=h({settingValue:void 0,environmentVariableName:"VERCEL_ENV"}),k=h({settingValue:void 0,environmentVariableName:"VERCEL_REGION"}),S=h({settingValue:void 0,environmentVariableName:"VERCEL_PROJECT_ID"});return async()=>{let T=await T$();return{...A&&{"ai-o11y-deployment-id":A},...M&&{"ai-o11y-environment":M},...k&&{"ai-o11y-region":k},...T&&{"ai-o11y-request-id":T},...S&&{"ai-o11y-project-id":S}}}},q=(A)=>{return new d0(A,{provider:"gateway",baseURL:j,headers:K,fetch:$.fetch,o11yHeaders:F()})},E=async()=>{var A,M,k;let S=(k=(M=(A=$._internal)==null?void 0:A.currentDate)==null?void 0:M.call(A).getTime())!=null?k:Date.now();if(!X||S-N>D)N=S,X=new kZ({baseURL:j,headers:K,fetch:$.fetch}).getAvailableModels().then((T)=>{return Y=T,T}).catch(async(T)=>{throw await H(T,await w(await K()))});return Y?Promise.resolve(Y):X},P=async()=>{return new kZ({baseURL:j,headers:K,fetch:$.fetch}).getCredits().catch(async(A)=>{throw await H(A,await w(await K()))})},C=async(A)=>{return new _0({baseURL:j,headers:K,fetch:$.fetch}).getSpendReport(A).catch(async(M)=>{throw await H(M,await w(await K()))})},b=async(A)=>{return new p0({baseURL:j,headers:K,fetch:$.fetch}).getGenerationInfo(A).catch(async(M)=>{throw await H(M,await w(await K()))})},J=function(A){if(new.target)throw Error("The Gateway Provider model function cannot be called with the new keyword.");return q(A)};J.specificationVersion="v3",J.getAvailableModels=E,J.getCredits=P,J.getSpendReport=C,J.getGenerationInfo=b,J.imageModel=(A)=>{return new t0(A,{provider:"gateway",baseURL:j,headers:K,fetch:$.fetch,o11yHeaders:F()})},J.languageModel=q;let G=(A)=>{return new n0(A,{provider:"gateway",baseURL:j,headers:K,fetch:$.fetch,o11yHeaders:F()})};J.embeddingModel=G,J.textEmbeddingModel=G,J.videoModel=(A)=>{return new Z$(A,{provider:"gateway",baseURL:j,headers:K,fetch:$.fetch,o11yHeaders:F()})};let I=(A)=>{return new j$(A,{provider:"gateway",baseURL:j,headers:K,fetch:$.fetch,o11yHeaders:F()})};return J.rerankingModel=I,J.reranking=I,J.chat=J.languageModel,J.embedding=J.embeddingModel,J.image=J.imageModel,J.video=J.videoModel,J.tools=q$,J}var $W=x$();async function z$($){let W=h({settingValue:$.apiKey,environmentVariableName:"AI_GATEWAY_API_KEY"});if(W)return{token:W,authMethod:"api-key"};return{token:await tZ.getVercelOidcToken(),authMethod:"oidc"}}export{z as lp,lZ as mp,R0 as np,S0 as op,b0 as pp,HZ as qp,v0 as rp,x$ as sp,$W as tp};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function i(f,r){let e=JSON.parse(JSON.stringify(f));if("nullable"in e&&e.nullable===!0){if(e.type)if(Array.isArray(e.type)){if(!e.type.includes("null"))e.type.push("null")}else e.type=[e.type,"null"];else e.type=["null"];delete e.nullable}if(e.$schema)delete e.$schema;if(["properties","additionalProperties","items","additionalItems","allOf","anyOf","oneOf","not","if","then","else","definitions","$defs","patternProperties","propertyNames","contains"].forEach((s)=>{if(e[s]&&(typeof e[s]==="object"||Array.isArray(e[s])))if(s==="properties"||s==="definitions"||s==="$defs"||s==="patternProperties")for(let n in e[s])e[s][n]=i(e[s][n],r);else if(s==="allOf"||s==="anyOf"||s==="oneOf")e[s]=e[s].map((n)=>i(n,r));else if(s==="items")if(Array.isArray(e[s]))e[s]=e[s].map((n)=>i(n,r));else e[s]=i(e[s],r);else e[s]=i(e[s],r)}),e.ref||e.$id){let{ref:s,$id:n,...t}=e,a=s||n;return r.components.schemas={...r.components.schemas,[a]:t},{$ref:`#/components/schemas/${a}`}}else if(e.$ref){let{$ref:s,$defs:n,...t}=e;if(s.includes("://"))return Object.keys(t).length>0?t:{type:"string"};let a=s.split("/").pop();return r.components.schemas={...r.components.schemas,...n},{$ref:`#/components/schemas/${a}`}}return e}
|
|
3
|
-
export{i as
|
|
3
|
+
export{i as Lf};
|
|
@@ -11,4 +11,4 @@ ${z}`,j++}else gw(W,G,H)?J=W.slice(W.charCodeAt(G+6)===A?G+7:G+6,Z)||void 0:F(W,
|
|
|
11
11
|
`,G),U=-1;if(Z!==-1&&H!==-1?U=Z<H?Z:H:Z!==-1?Z===W.length-1?U=-1:U=Z:H!==-1&&(U=H),U===-1)break;F(W,G,U),G=U+1,W.charCodeAt(G-1)===WG&&W.charCodeAt(G)===Iw&&G++}return W.slice(G)}function F(W,G,Z){if(G===Z){pw();return}let H=W.charCodeAt(G);if(fw(W,G,H)){let R=W.charCodeAt(G+5)===A?G+6:G+5,y=W.slice(R,Z);M=j===0?y:`${M}
|
|
12
12
|
${y}`,j++;return}if(gw(W,G,H)){J=W.slice(W.charCodeAt(G+6)===A?G+7:G+6,Z)||void 0;return}if(H===105&&W.charCodeAt(G+1)===100&&W.charCodeAt(G+2)===58){let R=W.slice(W.charCodeAt(G+3)===A?G+4:G+3,Z);O=R.includes("\x00")?void 0:R;return}if(H===58){if(D){let R=W.slice(G,Z);D(R.slice(W.charCodeAt(G+1)===A?2:1))}return}let U=W.slice(G,Z),z=U.indexOf(":");if(z===-1){S(U,"",U);return}let kw=U.slice(0,z),hw=U.charCodeAt(z+1)===A?2:1,lw=U.slice(z+hw);S(kw,lw,U)}function S(W,G,Z){switch(W){case"event":J=G||void 0;break;case"data":M=j===0?G:`${M}
|
|
13
13
|
${G}`,j++;break;case"id":O=G.includes("\x00")?void 0:G;break;case"retry":/^\d+$/.test(G)?Y(parseInt(G,10)):X(new B(`Invalid \`retry\` value: "${G}"`,{type:"invalid-retry",value:G,line:Z}));break;default:X(new B(`Unknown field "${W.length>20?`${W.slice(0,20)}\u2026`:W}"`,{type:"unknown-field",field:W,value:G,line:Z}));break}}function pw(){j>0&&Q({id:O,event:J,data:M}),O=void 0,M="",j=0,J=void 0}function xw(W={}){if(W.consume&&K.length>0){let G=K.join("");F(G,0,G.length)}V=!0,O=void 0,M="",j=0,J=void 0,K.length=0,N=0,T=!1}return{feed:vw,reset:xw}}function fw(w,Q,X){return X===100&&w.charCodeAt(Q+1)===97&&w.charCodeAt(Q+2)===116&&w.charCodeAt(Q+3)===97&&w.charCodeAt(Q+4)===58}function gw(w,Q,X){return X===101&&w.charCodeAt(Q+1)===118&&w.charCodeAt(Q+2)===101&&w.charCodeAt(Q+3)===110&&w.charCodeAt(Q+4)===116&&w.charCodeAt(Q+5)===58}class XG extends TransformStream{constructor({onError:w,onRetry:Q,onComment:X,maxBufferSize:Y}={}){let D;super({start(q){D=mw({onEvent:(K)=>{q.enqueue(K)},onError(K){typeof w=="function"&&w(K),(w==="terminate"||K.type==="max-buffer-size-exceeded")&&q.error(K)},onRetry:Q,onComment:X,maxBufferSize:Y})},transform(q){D.feed(q)}})}}
|
|
14
|
-
export{$ as
|
|
14
|
+
export{$ as es,YG as fs,ZG as gs,Hw as hs,$G as is,KG as js,qG as ks,HG as ls,UG as ms,DG as ns,jG as os,JG as ps,OG as qs,NG as rs,zG as ss,AG as ts,mw as us,XG as vs};
|
|
@@ -5,4 +5,4 @@ Lifetime used`):new P("Lifetime not alive")}},J=class extends Q{constructor(W,Y)
|
|
|
5
5
|
Then, failed to dispose scope: ${Z.message}`,disposeError:Z}),Y;if(Y||Z)throw Y||Z}var z=class W extends q{constructor(){super(...arguments);this._disposables=new Q(new Set),this.manage=(Y)=>(this._disposables.value.add(Y),Y)}static withScope(Y){let Z=new W,$;try{return Y(Z)}catch(X){throw $=X,X}finally{E(Z,$)}}static withScopeMaybeAsync(Y,Z){return XW(void 0,function*($){let X=new W,j;try{return yield*$.of(Z.call(Y,$,X))}catch(G){throw j=G,G}finally{E(X,j)}})}static async withScopeAsync(Y){let Z=new W,$;try{return await Y(Z)}catch(X){throw $=X,X}finally{E(Z,$)}}get alive(){return this._disposables.alive}dispose(){let Y=Array.from(this._disposables.value.values()).reverse();for(let Z of Y)Z.alive&&Z.dispose();this._disposables.dispose()}};function jW(W){let Y=W?Array.from(W):[];function Z(){return Y.forEach((X)=>X.alive?X.dispose():void 0)}function $(){return Y.some((X)=>X.alive)}return Object.defineProperty(Y,S,{configurable:!0,enumerable:!1,value:Z}),Object.defineProperty(Y,"dispose",{configurable:!0,enumerable:!1,value:Z}),Object.defineProperty(Y,"alive",{configurable:!0,enumerable:!1,get:$}),Y}function F(W){return!!(W&&(typeof W=="object"||typeof W=="function")&&("alive"in W)&&typeof W.alive=="boolean"&&("dispose"in W)&&typeof W.dispose=="function")}var f=class W extends q{static success(Y){return new KW(Y)}static fail(Y,Z){return new GW(Y,Z)}static is(Y){return Y instanceof W}},KW=class extends f{constructor(W){super();this.value=W}get alive(){return F(this.value)?this.value.alive:!0}dispose(){F(this.value)&&this.value.dispose()}unwrap(){return this.value}unwrapOr(W){return this.value}},GW=class extends f{constructor(W,Y){super();this.error=W,this.onUnwrap=Y}get alive(){return F(this.error)?this.error.alive:!0}dispose(){F(this.error)&&this.error.dispose()}unwrap(){throw this.onUnwrap(this),this.error}unwrapOr(W){return W}},w=f,VW=class extends q{constructor(W){super();this.resolve=(Y)=>{this.resolveHandle.alive&&(this.context.unwrapResult(this.context.callFunction(this.resolveHandle,this.context.undefined,Y||this.context.undefined)).dispose(),this.disposeResolvers(),this.onSettled())},this.reject=(Y)=>{this.rejectHandle.alive&&(this.context.unwrapResult(this.context.callFunction(this.rejectHandle,this.context.undefined,Y||this.context.undefined)).dispose(),this.disposeResolvers(),this.onSettled())},this.dispose=()=>{this.handle.alive&&this.handle.dispose(),this.disposeResolvers()},this.context=W.context,this.owner=W.context.runtime,this.handle=W.promiseHandle,this.settled=new Promise((Y)=>{this.onSettled=Y}),this.resolveHandle=W.resolveHandle,this.rejectHandle=W.rejectHandle}get alive(){return this.handle.alive||this.resolveHandle.alive||this.rejectHandle.alive}disposeResolvers(){this.resolveHandle.alive&&this.resolveHandle.dispose(),this.rejectHandle.alive&&this.rejectHandle.dispose()}},t=class{constructor(W){this.module=W}toPointerArray(W){let Y=new Int32Array(W.map((X)=>X.value)),Z=Y.length*Y.BYTES_PER_ELEMENT,$=this.module._malloc(Z);return new Uint8Array(this.module.HEAPU8.buffer,$,Z).set(new Uint8Array(Y.buffer)),new Q($,void 0,(X)=>this.module._free(X))}newTypedArray(W,Y){let Z=new W(Array(Y).fill(0)),$=Z.length*Z.BYTES_PER_ELEMENT,X=this.module._malloc($),j=new W(this.module.HEAPU8.buffer,X,Y);return j.set(Z),new Q({typedArray:j,ptr:X},void 0,(G)=>this.module._free(G.ptr))}newMutablePointerArray(W){return this.newTypedArray(Int32Array,W)}newHeapCharPointer(W){let Y=this.module.lengthBytesUTF8(W),Z=Y+1,$=this.module._malloc(Z);return this.module.stringToUTF8(W,$,Z),new Q({ptr:$,strlen:Y},void 0,(X)=>this.module._free(X.ptr))}newHeapBufferPointer(W){let Y=W.byteLength,Z=this.module._malloc(Y);return this.module.HEAPU8.set(W,Z),new Q({pointer:Z,numBytes:Y},void 0,($)=>this.module._free($.pointer))}consumeHeapCharPointer(W){let Y=this.module.UTF8ToString(W);return this.module._free(W),Y}},FW=Symbol("Unstable"),OW=Object.freeze({BaseObjects:!0,Date:!0,Eval:!0,StringNormalize:!0,RegExp:!0,JSON:!0,Proxy:!0,MapSet:!0,TypedArrays:!0,Promise:!0});function TW(W){if(!W)return 0;let Y=0;for(let[Z,$]of Object.entries(W)){if(!(Z in O))throw new n(Z);$&&(Y|=O[Z])}return Y}function QW(W){if(typeof W=="number")return W;if(W===void 0)return 0;let{type:Y,strict:Z,strip:$,compileOnly:X,backtraceBarrier:j}=W,G=0;return Y==="global"&&(G|=L.JS_EVAL_TYPE_GLOBAL),Y==="module"&&(G|=L.JS_EVAL_TYPE_MODULE),Z&&(G|=L.JS_EVAL_FLAG_STRICT),$&&(G|=L.JS_EVAL_FLAG_STRIP),X&&(G|=L.JS_EVAL_FLAG_COMPILE_ONLY),j&&(G|=L.JS_EVAL_FLAG_BACKTRACE_BARRIER),G}function zW(W){if(typeof W=="number")return W;if(W===void 0)return 0;let{strings:Y,symbols:Z,quickjsPrivate:$,onlyEnumerable:X,numbers:j,numbersAsStrings:G}=W,K=0;return Y&&(K|=U.JS_GPN_STRING_MASK),Z&&(K|=U.JS_GPN_SYMBOL_MASK),$&&(K|=U.JS_GPN_PRIVATE_MASK),X&&(K|=U.JS_GPN_ENUM_ONLY),j&&(K|=U.QTS_GPN_NUMBER_MASK),G&&(K|=U.QTS_STANDARD_COMPLIANT_NUMBER),K}function qW(...W){let Y=[];for(let Z of W)Z!==void 0&&(Y=Y.concat(Z));return Y}var CW=class extends q{constructor(W,Y){super();this.handle=W,this.context=Y,this._isDone=!1,this.owner=Y.runtime}[Symbol.iterator](){return this}next(W){if(!this.alive||this._isDone)return{done:!0,value:void 0};let Y=this._next??(this._next=this.context.getProp(this.handle,"next"));return this.callIteratorMethod(Y,W)}return(W){if(!this.alive)return{done:!0,value:void 0};let Y=this.context.getProp(this.handle,"return");if(Y===this.context.undefined&&W===void 0)return this.dispose(),{done:!0,value:void 0};let Z=this.callIteratorMethod(Y,W);return Y.dispose(),this.dispose(),Z}throw(W){if(!this.alive)return{done:!0,value:void 0};let Y=W instanceof Q?W:this.context.newError(W),Z=this.context.getProp(this.handle,"throw"),$=this.callIteratorMethod(Z,W);return Y.alive&&Y.dispose(),Z.dispose(),this.dispose(),$}get alive(){return this.handle.alive}dispose(){this._isDone=!0,this.handle.dispose(),this._next?.dispose()}callIteratorMethod(W,Y){let Z=Y?this.context.callFunction(W,this.handle,Y):this.context.callFunction(W,this.handle);if(Z.error)return this.dispose(),{value:Z};let $=this.context.getProp(Z.value,"done").consume((j)=>this.context.dump(j)),X=this.context.getProp(Z.value,"value");return Z.value.dispose(),$&&this.dispose(),{value:w.success(X),done:$}}},g=-2147483648,m=2147483647,A=0;function H(W){return W>>8}var BW=class{constructor(){this.nextId=g,this.freelist=[],this.groups=new Map}put(W){let Y=this.allocateId(),Z=H(Y),$=this.groups.get(Z);return $||($=new Map,this.groups.set(Z,$)),$.set(Y,W),Y}get(W){if(W===A)throw new C("no host reference id defined");let Y=H(W),Z=this.groups.get(Y);if(!Z)throw new C(`host reference id ${W} is not defined`);let $=Z.get(W);if(!$)throw new C(`host reference id ${W} is not defined`);return $}delete(W){if(W===A)throw new C("no host reference id defined");let Y=H(W),Z=this.groups.get(Y);if(!Z)throw new C(`host reference id ${W} is not defined`);Z.delete(W),Z.size===0&&this.groups.delete(Y),this.freelist.push(W)}allocateId(){if(this.freelist.length>0)return this.freelist.shift();if(this.nextId===A&&this.nextId++,this.nextId>m)throw new s(`HostRefMap: too many host refs created without disposing. Max simultaneous host refs: ${m-g}`);return this.nextId++}},c=class extends q{constructor(W,Y,Z){if(Z===A)throw new C("cannot create HostRef with undefined id");super();this.runtime=W,this.handle=Y,this.id=Z}get alive(){return this.handle.alive}dispose(){this.handle.dispose()}get value(){return this.runtime.hostRefs.get(this.id)}},LW=class extends t{constructor(W){super(W.module);this.scope=new z,this.copyJSValue=(Y)=>this.ffi.QTS_DupValuePointer(this.ctx.value,Y),this.freeJSValue=(Y)=>{this.ffi.QTS_FreeValuePointer(this.ctx.value,Y)},W.ownedLifetimes?.forEach((Y)=>this.scope.manage(Y)),this.owner=W.owner,this.module=W.module,this.ffi=W.ffi,this.rt=W.rt,this.ctx=this.scope.manage(W.ctx)}get alive(){return this.scope.alive}dispose(){return this.scope.dispose()}[Symbol.dispose](){return this.dispose()}manage(W){return this.scope.manage(W)}consumeJSCharPointer(W){let Y=this.module.UTF8ToString(W);return this.ffi.QTS_FreeCString(this.ctx.value,W),Y}heapValueHandle(W,Y){let Z=Y?($)=>{Y(),this.freeJSValue($)}:this.freeJSValue;return new Q(W,this.copyJSValue,Z,this.owner)}staticHeapValueHandle(W){return this.manage(this.heapValueHandle(W)),new J(W,this.owner)}},UW=class extends q{constructor(W){super();this._undefined=void 0,this._null=void 0,this._false=void 0,this._true=void 0,this._global=void 0,this._BigInt=void 0,this._Symbol=void 0,this._SymbolIterator=void 0,this._SymbolAsyncIterator=void 0,this.cToHostCallbacks={callFunction:(Y,Z,$,X,j)=>{if(Y!==this.ctx.value)throw Error("QuickJSContext instance received C -> JS call with mismatched ctx");let G=this.getFunction(j);return z.withScopeMaybeAsync(this,function*(K,V){let B=V.manage(new h(Z,this.memory.copyJSValue,this.memory.freeJSValue,this.runtime)),D=Array($);for(let T=0;T<$;T++){let M=this.ffi.QTS_ArgvGetJSValueConstPointer(X,T);D[T]=V.manage(new h(M,this.memory.copyJSValue,this.memory.freeJSValue,this.runtime))}try{let T=yield*K(G.apply(B,D));if(T){if("error"in T&&T.error)throw this.runtime.debugLog("throw error",T.error),T.error;let M=V.manage(T instanceof Q?T:T.value);return this.ffi.QTS_DupValuePointer(this.ctx.value,M.value)}return 0}catch(T){return this.errorToHandle(T).consume((M)=>this.ffi.QTS_Throw(this.ctx.value,M.value))}})}},this.runtime=W.runtime,this.module=W.module,this.ffi=W.ffi,this.rt=W.rt,this.ctx=W.ctx,this.memory=new LW({...W,owner:this.runtime}),W.callbacks.setContextCallbacks(this.ctx.value,this.cToHostCallbacks),this.dump=this.dump.bind(this),this.getString=this.getString.bind(this),this.getNumber=this.getNumber.bind(this),this.resolvePromise=this.resolvePromise.bind(this),this.uint32Out=this.memory.manage(this.memory.newTypedArray(Uint32Array,1))}get alive(){return this.memory.alive}dispose(){this.memory.dispose()}get undefined(){if(this._undefined)return this._undefined;let W=this.ffi.QTS_GetUndefined();return this._undefined=new J(W)}get null(){if(this._null)return this._null;let W=this.ffi.QTS_GetNull();return this._null=new J(W)}get true(){if(this._true)return this._true;let W=this.ffi.QTS_GetTrue();return this._true=new J(W)}get false(){if(this._false)return this._false;let W=this.ffi.QTS_GetFalse();return this._false=new J(W)}get global(){if(this._global)return this._global;let W=this.ffi.QTS_GetGlobalObject(this.ctx.value);return this._global=this.memory.staticHeapValueHandle(W),this._global}newNumber(W){return this.memory.heapValueHandle(this.ffi.QTS_NewFloat64(this.ctx.value,W))}newString(W){let Y=this.memory.newHeapCharPointer(W).consume((Z)=>this.ffi.QTS_NewString(this.ctx.value,Z.value.ptr));return this.memory.heapValueHandle(Y)}newUniqueSymbol(W){let Y=(typeof W=="symbol"?W.description:W)??"",Z=this.memory.newHeapCharPointer(Y).consume(($)=>this.ffi.QTS_NewSymbol(this.ctx.value,$.value.ptr,0));return this.memory.heapValueHandle(Z)}newSymbolFor(W){let Y=(typeof W=="symbol"?W.description:W)??"",Z=this.memory.newHeapCharPointer(Y).consume(($)=>this.ffi.QTS_NewSymbol(this.ctx.value,$.value.ptr,1));return this.memory.heapValueHandle(Z)}getWellKnownSymbol(W){return this._Symbol??(this._Symbol=this.memory.manage(this.getProp(this.global,"Symbol"))),this.getProp(this._Symbol,W)}newBigInt(W){if(!this._BigInt){let $=this.getProp(this.global,"BigInt");this.memory.manage($),this._BigInt=new J($.value,this.runtime)}let Y=this._BigInt,Z=String(W);return this.newString(Z).consume(($)=>this.unwrapResult(this.callFunction(Y,this.undefined,$)))}newObject(W){W&&this.runtime.assertOwned(W);let Y=W?this.ffi.QTS_NewObjectProto(this.ctx.value,W.value):this.ffi.QTS_NewObject(this.ctx.value);return this.memory.heapValueHandle(Y)}newArray(){let W=this.ffi.QTS_NewArray(this.ctx.value);return this.memory.heapValueHandle(W)}newArrayBuffer(W){let Y=new Uint8Array(W),Z=this.memory.newHeapBufferPointer(Y),$=this.ffi.QTS_NewArrayBuffer(this.ctx.value,Z.value.pointer,Y.length);return this.memory.heapValueHandle($)}newPromise(W){let Y=z.withScope((Z)=>{let $=Z.manage(this.memory.newMutablePointerArray(2)),X=this.ffi.QTS_NewPromiseCapability(this.ctx.value,$.value.ptr),j=this.memory.heapValueHandle(X),[G,K]=Array.from($.value.typedArray).map((V)=>this.memory.heapValueHandle(V));return new VW({context:this,promiseHandle:j,resolveHandle:G,rejectHandle:K})});return W&&typeof W=="function"&&(W=new Promise(W)),W&&Promise.resolve(W).then(Y.resolve,(Z)=>Z instanceof Q?Y.reject(Z):this.newError(Z).consume(Y.reject)),Y}newFunction(W,Y){let Z=typeof W=="function"?W:Y;if(!Z)throw TypeError("Expected a function");return this.newFunctionWithOptions({name:typeof W=="string"?W:void 0,length:Z.length,isConstructor:!1,fn:Z})}newConstructorFunction(W,Y){let Z=typeof W=="function"?W:Y;if(!Z)throw TypeError("Expected a function");return this.newFunctionWithOptions({name:typeof W=="string"?W:void 0,length:Z.length,isConstructor:!0,fn:Z})}newFunctionWithOptions(W){let{name:Y,length:Z,isConstructor:$,fn:X}=W,j=this.runtime.hostRefs.put(X);try{return this.memory.heapValueHandle(this.ffi.QTS_NewFunction(this.ctx.value,Y??"",Z,$,j))}catch(G){throw this.runtime.hostRefs.delete(j),G}}newError(W){let Y=this.memory.heapValueHandle(this.ffi.QTS_NewError(this.ctx.value));return W&&typeof W=="object"?(W.name!==void 0&&this.newString(W.name).consume((Z)=>this.setProp(Y,"name",Z)),W.message!==void 0&&this.newString(W.message).consume((Z)=>this.setProp(Y,"message",Z))):typeof W=="string"?this.newString(W).consume((Z)=>this.setProp(Y,"message",Z)):W!==void 0&&this.newString(String(W)).consume((Z)=>this.setProp(Y,"message",Z)),Y}newHostRef(W){let Y=this.runtime.hostRefs.put(W);try{let Z=this.memory.heapValueHandle(this.ffi.QTS_NewHostRef(this.ctx.value,Y));return new c(this.runtime,Z,Y)}catch(Z){throw this.runtime.hostRefs.delete(Y),Z}}toHostRef(W){let Y=this.ffi.QTS_GetHostRefId(W.value);if(Y!==0)return this.runtime.hostRefs.get(Y),new c(this.runtime,W.dup(),Y)}unwrapHostRef(W){let Y=this.ffi.QTS_GetHostRefId(W.value);if(Y===0)throw new C("handle is not a HostRef");return this.runtime.hostRefs.get(Y)}typeof(W){return this.runtime.assertOwned(W),this.memory.consumeHeapCharPointer(this.ffi.QTS_Typeof(this.ctx.value,W.value))}getNumber(W){return this.runtime.assertOwned(W),this.ffi.QTS_GetFloat64(this.ctx.value,W.value)}getString(W){return this.runtime.assertOwned(W),this.memory.consumeJSCharPointer(this.ffi.QTS_GetString(this.ctx.value,W.value))}getSymbol(W){this.runtime.assertOwned(W);let Y=this.memory.consumeJSCharPointer(this.ffi.QTS_GetSymbolDescriptionOrKey(this.ctx.value,W.value));return this.ffi.QTS_IsGlobalSymbol(this.ctx.value,W.value)?Symbol.for(Y):Symbol(Y)}getBigInt(W){this.runtime.assertOwned(W);let Y=this.getString(W);return BigInt(Y)}getArrayBuffer(W){this.runtime.assertOwned(W);let Y=this.ffi.QTS_GetArrayBufferLength(this.ctx.value,W.value),Z=this.ffi.QTS_GetArrayBuffer(this.ctx.value,W.value);if(!Z)throw Error("Couldn't allocate memory to get ArrayBuffer");return new Q(this.module.HEAPU8.subarray(Z,Z+Y),void 0,()=>this.module._free(Z))}getPromiseState(W){this.runtime.assertOwned(W);let Y=this.ffi.QTS_PromiseState(this.ctx.value,W.value);if(Y<0)return{type:"fulfilled",value:W,notAPromise:!0};if(Y===I.Pending)return{type:"pending",get error(){return new l("Cannot unwrap a pending promise")}};let Z=this.ffi.QTS_PromiseResult(this.ctx.value,W.value),$=this.memory.heapValueHandle(Z);if(Y===I.Fulfilled)return{type:"fulfilled",value:$};if(Y===I.Rejected)return{type:"rejected",error:$};throw $.dispose(),Error(`Unknown JSPromiseStateEnum: ${Y}`)}resolvePromise(W){this.runtime.assertOwned(W);let Y=z.withScope((Z)=>{let $=Z.manage(this.getProp(this.global,"Promise")),X=Z.manage(this.getProp($,"resolve"));return this.callFunction(X,$,W)});return Y.error?Promise.resolve(Y):new Promise((Z)=>{z.withScope(($)=>{let X=$.manage(this.newFunction("resolve",(V)=>{Z(this.success(V&&V.dup()))})),j=$.manage(this.newFunction("reject",(V)=>{Z(this.fail(V&&V.dup()))})),G=$.manage(Y.value),K=$.manage(this.getProp(G,"then"));this.callFunction(K,G,X,j).unwrap().dispose()})})}isEqual(W,Y,Z=R.IsStrictlyEqual){if(W===Y)return!0;this.runtime.assertOwned(W),this.runtime.assertOwned(Y);let $=this.ffi.QTS_IsEqual(this.ctx.value,W.value,Y.value,Z);if($===-1)throw new p("WASM variant does not expose equality");return!!$}eq(W,Y){return this.isEqual(W,Y,R.IsStrictlyEqual)}sameValue(W,Y){return this.isEqual(W,Y,R.IsSameValue)}sameValueZero(W,Y){return this.isEqual(W,Y,R.IsSameValueZero)}getProp(W,Y){this.runtime.assertOwned(W);let Z;return typeof Y=="number"&&Y>=0?Z=this.ffi.QTS_GetPropNumber(this.ctx.value,W.value,Y):Z=this.borrowPropertyKey(Y).consume(($)=>this.ffi.QTS_GetProp(this.ctx.value,W.value,$.value)),this.memory.heapValueHandle(Z)}getLength(W){if(this.runtime.assertOwned(W),!(this.ffi.QTS_GetLength(this.ctx.value,this.uint32Out.value.ptr,W.value)<0))return this.uint32Out.value.typedArray[0]}getOwnPropertyNames(W,Y={strings:!0,numbersAsStrings:!0}){this.runtime.assertOwned(W),W.value;let Z=zW(Y);if(Z===0)throw new o("No options set, will return an empty array");return z.withScope(($)=>{let X=$.manage(this.memory.newMutablePointerArray(1)),j=this.ffi.QTS_GetOwnPropertyNames(this.ctx.value,X.value.ptr,this.uint32Out.value.ptr,W.value,Z);if(j)return this.fail(this.memory.heapValueHandle(j));let G=this.uint32Out.value.typedArray[0],K=X.value.typedArray[0],V=new Uint32Array(this.module.HEAP8.buffer,K,G),B=Array.from(V).map((D)=>this.memory.heapValueHandle(D));return this.ffi.QTS_FreeVoidPointer(this.ctx.value,K),this.success(jW(B))})}getIterator(W){let Y=this._SymbolIterator??(this._SymbolIterator=this.memory.manage(this.getWellKnownSymbol("iterator")));return z.withScope((Z)=>{let $=Z.manage(this.getProp(W,Y)),X=this.callFunction($,W);return X.error?X:this.success(new CW(X.value,this))})}setProp(W,Y,Z){this.runtime.assertOwned(W),this.borrowPropertyKey(Y).consume(($)=>this.ffi.QTS_SetProp(this.ctx.value,W.value,$.value,Z.value))}defineProp(W,Y,Z){this.runtime.assertOwned(W),z.withScope(($)=>{let X=$.manage(this.borrowPropertyKey(Y)),j=Z.value||this.undefined,G=!!Z.configurable,K=!!Z.enumerable,V=!!Z.value,B=Z.get?$.manage(this.newFunction(Z.get.name,Z.get)):this.undefined,D=Z.set?$.manage(this.newFunction(Z.set.name,Z.set)):this.undefined;this.ffi.QTS_DefineProp(this.ctx.value,W.value,X.value,j.value,B.value,D.value,G,K,V)})}callFunction(W,Y,...Z){this.runtime.assertOwned(W);let $,X=Z[0];X===void 0||Array.isArray(X)?$=X??[]:$=Z;let j=this.memory.toPointerArray($).consume((K)=>this.ffi.QTS_Call(this.ctx.value,W.value,Y.value,$.length,K.value)),G=this.ffi.QTS_ResolveException(this.ctx.value,j);return G?(this.ffi.QTS_FreeValuePointer(this.ctx.value,j),this.fail(this.memory.heapValueHandle(G))):this.success(this.memory.heapValueHandle(j))}callMethod(W,Y,Z=[]){return this.getProp(W,Y).consume(($)=>this.callFunction($,W,Z))}evalCode(W,Y="eval.js",Z){let $=Z===void 0?1:0,X=QW(Z),j=this.memory.newHeapCharPointer(W).consume((K)=>this.ffi.QTS_Eval(this.ctx.value,K.value.ptr,K.value.strlen,Y,$,X)),G=this.ffi.QTS_ResolveException(this.ctx.value,j);return G?(this.ffi.QTS_FreeValuePointer(this.ctx.value,j),this.fail(this.memory.heapValueHandle(G))):this.success(this.memory.heapValueHandle(j))}throw(W){return this.errorToHandle(W).consume((Y)=>this.ffi.QTS_Throw(this.ctx.value,Y.value))}borrowPropertyKey(W){return typeof W=="number"?this.newNumber(W):typeof W=="string"?this.newString(W):new J(W.value,this.runtime)}getMemory(W){if(W===this.rt.value)return this.memory;throw Error("Private API. Cannot get memory from a different runtime")}dump(W){this.runtime.assertOwned(W);let Y=this.typeof(W);if(Y==="string")return this.getString(W);if(Y==="number")return this.getNumber(W);if(Y==="bigint")return this.getBigInt(W);if(Y==="undefined")return;if(Y==="symbol")return this.getSymbol(W);let Z=this.getPromiseState(W);if(Z.type==="fulfilled"&&!Z.notAPromise)return W.dispose(),{type:Z.type,value:Z.value.consume(this.dump)};if(Z.type==="pending")return W.dispose(),{type:Z.type};if(Z.type==="rejected")return W.dispose(),{type:Z.type,error:Z.error.consume(this.dump)};let $=this.memory.consumeJSCharPointer(this.ffi.QTS_Dump(this.ctx.value,W.value));try{return JSON.parse($)}catch{return $}}unwrapResult(W){if(W.error){let Y="context"in W.error?W.error.context:this,Z=W.error.consume(($)=>this.dump($));if(Z&&typeof Z=="object"&&typeof Z.message=="string"){let{message:$,name:X,stack:j,...G}=Z,K=new _(Z,Y);typeof X=="string"&&(K.name=Z.name),K.message=$;let V=K.stack;throw typeof j=="string"&&(K.stack=`${X}: ${$}
|
|
6
6
|
${Z.stack}Host: ${V}`),Object.assign(K,G),K}throw new _(Z)}return W.value}[Symbol.for("nodejs.util.inspect.custom")](){return this.alive?`${this.constructor.name} { ctx: ${this.ctx.value} rt: ${this.rt.value} }`:`${this.constructor.name} { disposed }`}getFunction(W){let Y=this.runtime.hostRefs.get(W);if(typeof Y!="function")throw Error(`Host reference ${W} is not a function`);return Y}errorToHandle(W){return W instanceof Q?W:this.newError(W)}encodeBinaryJSON(W){let Y=this.ffi.QTS_bjson_encode(this.ctx.value,W.value);return this.memory.heapValueHandle(Y)}decodeBinaryJSON(W){let Y=this.ffi.QTS_bjson_decode(this.ctx.value,W.value);return this.memory.heapValueHandle(Y)}success(W){return w.success(W)}fail(W){return w.fail(W,(Y)=>this.unwrapResult(Y))}},JW=class extends q{constructor(W){super();this.scope=new z,this.contextMap=new Map,this.hostRefs=new BW,this._debugMode=!1,this.cToHostCallbacks={freeHostRef:(Y,Z)=>{if(Y!==this.rt.value)throw Error("Runtime pointer mismatch");this.hostRefs.delete(Z)},shouldInterrupt:(Y)=>{if(Y!==this.rt.value)throw Error("QuickJSContext instance received C -> JS interrupt with mismatched rt");let Z=this.interruptHandler;if(!Z)throw Error("QuickJSContext had no interrupt handler");return Z(this)?1:0},loadModuleSource:v(this,function*(Y,Z,$,X){let j=this.moduleLoader;if(!j)throw Error("Runtime has no module loader");if(Z!==this.rt.value)throw Error("Runtime pointer mismatch");let G=this.contextMap.get($)??this.newContext({contextPointer:$});try{let K=yield*Y(j(X,G));if(typeof K=="object"&&"error"in K&&K.error)throw this.debugLog("cToHostLoadModule: loader returned error",K.error),K.error;let V=typeof K=="string"?K:("value"in K)?K.value:K;return this.memory.newHeapCharPointer(V).value.ptr}catch(K){return this.debugLog("cToHostLoadModule: caught error",K),G.throw(K),0}}),normalizeModule:v(this,function*(Y,Z,$,X,j){let G=this.moduleNormalizer;if(!G)throw Error("Runtime has no module normalizer");if(Z!==this.rt.value)throw Error("Runtime pointer mismatch");let K=this.contextMap.get($)??this.newContext({contextPointer:$});try{let V=yield*Y(G(X,j,K));if(typeof V=="object"&&"error"in V&&V.error)throw this.debugLog("cToHostNormalizeModule: normalizer returned error",V.error),V.error;let B=typeof V=="string"?V:V.value;return K.getMemory(this.rt.value).newHeapCharPointer(B).value.ptr}catch(V){return this.debugLog("normalizeModule: caught error",V),K.throw(V),0}})},W.ownedLifetimes?.forEach((Y)=>this.scope.manage(Y)),this.module=W.module,this.memory=new t(this.module),this.ffi=W.ffi,this.rt=W.rt,this.callbacks=W.callbacks,this.scope.manage(this.rt),this.callbacks.setRuntimeCallbacks(this.rt.value,this.cToHostCallbacks),this.executePendingJobs=this.executePendingJobs.bind(this),x&&this.setDebugMode(!0)}get alive(){return this.scope.alive}dispose(){return this.scope.dispose()}newContext(W={}){let Y=TW(W.intrinsics),Z=new Q(W.contextPointer||this.ffi.QTS_NewContext(this.rt.value,Y),void 0,(X)=>{this.contextMap.delete(X),this.callbacks.deleteContext(X),this.ffi.QTS_FreeContext(X)}),$=new UW({module:this.module,ctx:Z,ffi:this.ffi,rt:this.rt,ownedLifetimes:W.ownedLifetimes,runtime:this,callbacks:this.callbacks});return this.contextMap.set(Z.value,$),$}setModuleLoader(W,Y){this.moduleLoader=W,this.moduleNormalizer=Y,this.ffi.QTS_RuntimeEnableModuleLoader(this.rt.value,this.moduleNormalizer?1:0)}removeModuleLoader(){this.moduleLoader=void 0,this.ffi.QTS_RuntimeDisableModuleLoader(this.rt.value)}hasPendingJob(){return!!this.ffi.QTS_IsJobPending(this.rt.value)}setInterruptHandler(W){let Y=this.interruptHandler;this.interruptHandler=W,Y||this.ffi.QTS_RuntimeEnableInterruptHandler(this.rt.value)}removeInterruptHandler(){this.interruptHandler&&(this.ffi.QTS_RuntimeDisableInterruptHandler(this.rt.value),this.interruptHandler=void 0)}executePendingJobs(W=-1){let Y=this.memory.newMutablePointerArray(1),Z=this.ffi.QTS_ExecutePendingJob(this.rt.value,W??-1,Y.value.ptr),$=Y.value.typedArray[0];if(Y.dispose(),$===0)return this.ffi.QTS_FreeValuePointerRuntime(this.rt.value,Z),w.success(0);let X=this.contextMap.get($)??this.newContext({contextPointer:$}),j=X.getMemory(this.rt.value).heapValueHandle(Z);if(X.typeof(j)==="number"){let G=X.getNumber(j);return j.dispose(),w.success(G)}else{let G=Object.assign(j,{context:X});return w.fail(G,(K)=>X.unwrapResult(K))}}setMemoryLimit(W){if(W<0&&W!==-1)throw Error("Cannot set memory limit to negative number. To unset, pass -1");this.ffi.QTS_RuntimeSetMemoryLimit(this.rt.value,W)}computeMemoryUsage(){let W=this.getSystemContext().getMemory(this.rt.value);return W.heapValueHandle(this.ffi.QTS_RuntimeComputeMemoryUsage(this.rt.value,W.ctx.value))}dumpMemoryUsage(){return this.memory.consumeHeapCharPointer(this.ffi.QTS_RuntimeDumpMemoryUsage(this.rt.value))}setMaxStackSize(W){if(W<0)throw Error("Cannot set memory limit to negative number. To unset, pass 0.");this.ffi.QTS_RuntimeSetMaxStackSize(this.rt.value,W)}assertOwned(W){if(W.owner&&W.owner.rt!==this.rt)throw new u(`Handle is not owned by this runtime: ${W.owner.rt.value} != ${this.rt.value}`)}setDebugMode(W){this._debugMode=W,this.ffi.DEBUG&&this.rt.alive&&this.ffi.QTS_SetDebugLogEnabled(this.rt.value,W?1:0)}isDebugMode(){return this._debugMode}debugLog(...W){this._debugMode&&console.log("quickjs-emscripten:",...W)}[Symbol.for("nodejs.util.inspect.custom")](){return this.alive?`${this.constructor.name} { rt: ${this.rt.value} }`:`${this.constructor.name} { disposed }`}getSystemContext(){return this.context||(this.context=this.scope.manage(this.newContext())),this.context}},DW=class{constructor(W){this.freeHostRef=W.freeHostRef,this.callFunction=W.callFunction,this.shouldInterrupt=W.shouldInterrupt,this.loadModuleSource=W.loadModuleSource,this.normalizeModule=W.normalizeModule}},wW=class{constructor(W){this.contextCallbacks=new Map,this.runtimeCallbacks=new Map,this.suspendedCount=0,this.cToHostCallbacks=new DW({freeHostRef:(Y,Z,$)=>{let X=this.runtimeCallbacks.get(Z);if(!X)throw Error(`QuickJSRuntime(rt = ${Z}) not found when trying to free HostRef(id = ${$})`);X.freeHostRef(Z,$)},callFunction:(Y,Z,$,X,j,G)=>this.handleAsyncify(Y,()=>{try{let K=this.contextCallbacks.get(Z);if(!K)throw Error(`QuickJSContext(ctx = ${Z}) not found for C function call "${G}"`);return K.callFunction(Z,$,X,j,G)}catch(K){return console.error("[C to host error: returning null]",K),0}}),shouldInterrupt:(Y,Z)=>this.handleAsyncify(Y,()=>{try{let $=this.runtimeCallbacks.get(Z);if(!$)throw Error(`QuickJSRuntime(rt = ${Z}) not found for C interrupt`);return $.shouldInterrupt(Z)}catch($){return console.error("[C to host interrupt: returning error]",$),1}}),loadModuleSource:(Y,Z,$,X)=>this.handleAsyncify(Y,()=>{try{let j=this.runtimeCallbacks.get(Z);if(!j)throw Error(`QuickJSRuntime(rt = ${Z}) not found for C module loader`);let G=j.loadModuleSource;if(!G)throw Error(`QuickJSRuntime(rt = ${Z}) does not support module loading`);return G(Z,$,X)}catch(j){return console.error("[C to host module loader error: returning null]",j),0}}),normalizeModule:(Y,Z,$,X,j)=>this.handleAsyncify(Y,()=>{try{let G=this.runtimeCallbacks.get(Z);if(!G)throw Error(`QuickJSRuntime(rt = ${Z}) not found for C module loader`);let K=G.normalizeModule;if(!K)throw Error(`QuickJSRuntime(rt = ${Z}) does not support module loading`);return K(Z,$,X,j)}catch(G){return console.error("[C to host module loader error: returning null]",G),0}})}),this.module=W,this.module.callbacks=this.cToHostCallbacks}setRuntimeCallbacks(W,Y){this.runtimeCallbacks.set(W,Y)}deleteRuntime(W){this.runtimeCallbacks.delete(W)}setContextCallbacks(W,Y){this.contextCallbacks.set(W,Y)}deleteContext(W){this.contextCallbacks.delete(W)}handleAsyncify(W,Y){if(W)return W.handleSleep(($)=>{try{let X=Y();if(!(X instanceof Promise)){N("asyncify.handleSleep: not suspending:",X),$(X);return}if(this.suspended)throw new d(`Already suspended at: ${this.suspended.stack}
|
|
7
7
|
Attempted to suspend at:`);this.suspended=new i(`(${this.suspendedCount++})`),N("asyncify.handleSleep: suspending:",this.suspended),X.then((j)=>{this.suspended=void 0,N("asyncify.handleSleep: resolved:",j),$(j)},(j)=>{N("asyncify.handleSleep: rejected:",j),console.error("QuickJS: cannot handle error in suspended function",j),this.suspended=void 0})}catch(X){throw N("asyncify.handleSleep: error:",X),this.suspended=void 0,X}});let Z=Y();if(Z instanceof Promise)throw Error("Promise return value not supported in non-asyncify context.");return Z}};function MW(W,Y){Y.interruptHandler&&W.setInterruptHandler(Y.interruptHandler),Y.maxStackSizeBytes!==void 0&&W.setMaxStackSize(Y.maxStackSizeBytes),Y.memoryLimitBytes!==void 0&&W.setMemoryLimit(Y.memoryLimitBytes)}function RW(W,Y){Y.moduleLoader&&W.setModuleLoader(Y.moduleLoader),Y.shouldInterrupt&&W.setInterruptHandler(Y.shouldInterrupt),Y.memoryLimitBytes!==void 0&&W.setMemoryLimit(Y.memoryLimitBytes),Y.maxStackSizeBytes!==void 0&&W.setMaxStackSize(Y.maxStackSizeBytes)}var EW=class{constructor(W,Y){this.module=W,this.ffi=Y,this.callbacks=new wW(W)}newRuntime(W={}){let Y=new Q(this.ffi.QTS_NewRuntime(),void 0,($)=>{this.ffi.QTS_FreeRuntime($),this.callbacks.deleteRuntime($)}),Z=new JW({module:this.module,callbacks:this.callbacks,ffi:this.ffi,rt:Y});return MW(Z,W),W.moduleLoader&&Z.setModuleLoader(W.moduleLoader),Z}newContext(W={}){let Y=this.newRuntime(),Z=Y.newContext({...W,ownedLifetimes:qW(Y,W.ownedLifetimes)});return Y.context=Z,Z}evalCode(W,Y={}){return z.withScope((Z)=>{let $=Z.manage(this.newContext());RW($.runtime,Y);let X=$.evalCode(W,"eval.js");if(Y.memoryLimitBytes!==void 0&&$.runtime.setMemoryLimit(-1),X.error)throw $.dump(Z.manage(X.error));return $.dump(Z.manage(X.value))})}getWasmMemory(){let W=this.module.quickjsEmscriptenInit?.(()=>{})?.getWasmMemory?.();if(!W)throw Error("Variant does not support getting WebAssembly.Memory");return W}getFFI(){return this.ffi}};
|
|
8
|
-
export{p as
|
|
8
|
+
export{p as Bh,Q as Ch,z as Dh,TW as Eh,QW as Fh,UW as Gh,JW as Hh,wW as Ih,MW as Jh,RW as Kh,EW as Lh};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-s81ck6bw.js";import"./chunk-9svh74gt.js";var q=class{constructor(b){this.module=b,this.DEBUG=!1,this.QTS_Throw=this.module.cwrap("QTS_Throw","number",["number","number"]),this.QTS_NewError=this.module.cwrap("QTS_NewError","number",["number"]),this.QTS_RuntimeSetMemoryLimit=this.module.cwrap("QTS_RuntimeSetMemoryLimit",null,["number","number"]),this.QTS_RuntimeComputeMemoryUsage=this.module.cwrap("QTS_RuntimeComputeMemoryUsage","number",["number","number"]),this.QTS_RuntimeDumpMemoryUsage=this.module.cwrap("QTS_RuntimeDumpMemoryUsage","number",["number"]),this.QTS_RecoverableLeakCheck=this.module.cwrap("QTS_RecoverableLeakCheck","number",[]),this.QTS_BuildIsSanitizeLeak=this.module.cwrap("QTS_BuildIsSanitizeLeak","number",[]),this.QTS_RuntimeSetMaxStackSize=this.module.cwrap("QTS_RuntimeSetMaxStackSize",null,["number","number"]),this.QTS_GetUndefined=this.module.cwrap("QTS_GetUndefined","number",[]),this.QTS_GetNull=this.module.cwrap("QTS_GetNull","number",[]),this.QTS_GetFalse=this.module.cwrap("QTS_GetFalse","number",[]),this.QTS_GetTrue=this.module.cwrap("QTS_GetTrue","number",[]),this.QTS_NewHostRef=this.module.cwrap("QTS_NewHostRef","number",["number","number"]),this.QTS_GetHostRefId=this.module.cwrap("QTS_GetHostRefId","number",["number"]),this.QTS_NewRuntime=this.module.cwrap("QTS_NewRuntime","number",[]),this.QTS_FreeRuntime=this.module.cwrap("QTS_FreeRuntime",null,["number"]),this.QTS_NewContext=this.module.cwrap("QTS_NewContext","number",["number","number"]),this.QTS_FreeContext=this.module.cwrap("QTS_FreeContext",null,["number"]),this.QTS_FreeValuePointer=this.module.cwrap("QTS_FreeValuePointer",null,["number","number"]),this.QTS_FreeValuePointerRuntime=this.module.cwrap("QTS_FreeValuePointerRuntime",null,["number","number"]),this.QTS_FreeVoidPointer=this.module.cwrap("QTS_FreeVoidPointer",null,["number","number"]),this.QTS_FreeCString=this.module.cwrap("QTS_FreeCString",null,["number","number"]),this.QTS_DupValuePointer=this.module.cwrap("QTS_DupValuePointer","number",["number","number"]),this.QTS_NewObject=this.module.cwrap("QTS_NewObject","number",["number"]),this.QTS_NewObjectProto=this.module.cwrap("QTS_NewObjectProto","number",["number","number"]),this.QTS_NewArray=this.module.cwrap("QTS_NewArray","number",["number"]),this.QTS_NewArrayBuffer=this.module.cwrap("QTS_NewArrayBuffer","number",["number","number","number"]),this.QTS_NewFloat64=this.module.cwrap("QTS_NewFloat64","number",["number","number"]),this.QTS_GetFloat64=this.module.cwrap("QTS_GetFloat64","number",["number","number"]),this.QTS_NewString=this.module.cwrap("QTS_NewString","number",["number","number"]),this.QTS_GetString=this.module.cwrap("QTS_GetString","number",["number","number"]),this.QTS_GetArrayBuffer=this.module.cwrap("QTS_GetArrayBuffer","number",["number","number"]),this.QTS_GetArrayBufferLength=this.module.cwrap("QTS_GetArrayBufferLength","number",["number","number"]),this.QTS_NewSymbol=this.module.cwrap("QTS_NewSymbol","number",["number","number","number"]),this.QTS_GetSymbolDescriptionOrKey=this.module.cwrap("QTS_GetSymbolDescriptionOrKey","number",["number","number"]),this.QTS_IsGlobalSymbol=this.module.cwrap("QTS_IsGlobalSymbol","number",["number","number"]),this.QTS_IsJobPending=this.module.cwrap("QTS_IsJobPending","number",["number"]),this.QTS_ExecutePendingJob=this.module.cwrap("QTS_ExecutePendingJob","number",["number","number","number"]),this.QTS_GetProp=this.module.cwrap("QTS_GetProp","number",["number","number","number"]),this.QTS_GetPropNumber=this.module.cwrap("QTS_GetPropNumber","number",["number","number","number"]),this.QTS_SetProp=this.module.cwrap("QTS_SetProp",null,["number","number","number","number"]),this.QTS_DefineProp=this.module.cwrap("QTS_DefineProp",null,["number","number","number","number","number","number","boolean","boolean","boolean"]),this.QTS_GetOwnPropertyNames=this.module.cwrap("QTS_GetOwnPropertyNames","number",["number","number","number","number","number"]),this.QTS_Call=this.module.cwrap("QTS_Call","number",["number","number","number","number","number"]),this.QTS_ResolveException=this.module.cwrap("QTS_ResolveException","number",["number","number"]),this.QTS_Dump=this.module.cwrap("QTS_Dump","number",["number","number"]),this.QTS_Eval=this.module.cwrap("QTS_Eval","number",["number","number","number","string","number","number"]),this.QTS_GetModuleNamespace=this.module.cwrap("QTS_GetModuleNamespace","number",["number","number"]),this.QTS_Typeof=this.module.cwrap("QTS_Typeof","number",["number","number"]),this.QTS_GetLength=this.module.cwrap("QTS_GetLength","number",["number","number","number"]),this.QTS_IsEqual=this.module.cwrap("QTS_IsEqual","number",["number","number","number","number"]),this.QTS_GetGlobalObject=this.module.cwrap("QTS_GetGlobalObject","number",["number"]),this.QTS_NewPromiseCapability=this.module.cwrap("QTS_NewPromiseCapability","number",["number","number"]),this.QTS_PromiseState=this.module.cwrap("QTS_PromiseState","number",["number","number"]),this.QTS_PromiseResult=this.module.cwrap("QTS_PromiseResult","number",["number","number"]),this.QTS_TestStringArg=this.module.cwrap("QTS_TestStringArg",null,["string"]),this.QTS_GetDebugLogEnabled=this.module.cwrap("QTS_GetDebugLogEnabled","number",["number"]),this.QTS_SetDebugLogEnabled=this.module.cwrap("QTS_SetDebugLogEnabled",null,["number","number"]),this.QTS_BuildIsDebug=this.module.cwrap("QTS_BuildIsDebug","number",[]),this.QTS_BuildIsAsyncify=this.module.cwrap("QTS_BuildIsAsyncify","number",[]),this.QTS_NewFunction=this.module.cwrap("QTS_NewFunction","number",["number","string","number","boolean","number"]),this.QTS_ArgvGetJSValueConstPointer=this.module.cwrap("QTS_ArgvGetJSValueConstPointer","number",["number","number"]),this.QTS_RuntimeEnableInterruptHandler=this.module.cwrap("QTS_RuntimeEnableInterruptHandler",null,["number"]),this.QTS_RuntimeDisableInterruptHandler=this.module.cwrap("QTS_RuntimeDisableInterruptHandler",null,["number"]),this.QTS_RuntimeEnableModuleLoader=this.module.cwrap("QTS_RuntimeEnableModuleLoader",null,["number","number"]),this.QTS_RuntimeDisableModuleLoader=this.module.cwrap("QTS_RuntimeDisableModuleLoader",null,["number"]),this.QTS_bjson_encode=this.module.cwrap("QTS_bjson_encode","number",["number","number"]),this.QTS_bjson_decode=this.module.cwrap("QTS_bjson_decode","number",["number","number"])}};export{q as QuickJSFFI};
|