@qitqode/qitqode-android-arm64 0.1.32 → 0.1.34
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-x4sp99g6.js → chunk-03xppy47.js} +1 -1
- package/bundle/{chunk-2vn41ecx.js → chunk-04hvaaje.js} +1 -1
- package/bundle/{chunk-6phh70sp.js → chunk-06k6egt2.js} +1 -1
- package/bundle/{chunk-8n20thvd.js → chunk-08f4khsw.js} +2 -2
- package/bundle/{chunk-mk1bfzg5.js → chunk-08m0hkdz.js} +1 -1
- package/bundle/{chunk-kfxv5rfg.js → chunk-09pkckr1.js} +1 -1
- package/bundle/{chunk-6kp07m7p.js → chunk-0c6ep9mc.js} +1 -1
- package/bundle/{chunk-8r6ht39z.js → chunk-0csy9x1n.js} +1 -1
- package/bundle/{chunk-0v0vqbn5.js → chunk-0h8wdch6.js} +1 -1
- package/bundle/{chunk-t56r99hp.js → chunk-0msqaywp.js} +1 -1
- package/bundle/chunk-0x5jn813.js +2 -0
- package/bundle/{chunk-vhe0tth1.js → chunk-11v7vz3y.js} +1 -1
- package/bundle/{chunk-1sgahe1s.js → chunk-1byd3wma.js} +1 -1
- package/bundle/{chunk-x3y2xzhn.js → chunk-1dtzxt2w.js} +1 -1
- package/bundle/{chunk-31qrzrwy.js → chunk-1gf116rg.js} +1 -1
- package/bundle/{chunk-hnvn2c25.js → chunk-1hmq2fpt.js} +2 -2
- package/bundle/{chunk-05mce0j3.js → chunk-1me21qdc.js} +1 -1
- package/bundle/{chunk-rvkrgkeq.js → chunk-1pg6pv0m.js} +1 -1
- package/bundle/{chunk-0bbs01f0.js → chunk-1yt5rsew.js} +1 -1
- package/bundle/{chunk-caj1b9y7.js → chunk-28cm7m3t.js} +4 -4
- package/bundle/chunk-28t9akfn.js +2 -0
- package/bundle/{chunk-6aqyhfag.js → chunk-2fkfbdcy.js} +4 -4
- package/bundle/{chunk-52bam8g7.js → chunk-2h1fcqvf.js} +1 -1
- package/bundle/chunk-2scyp9ns.js +2 -0
- package/bundle/{chunk-hbbsbyyq.js → chunk-2swch6mx.js} +1 -1
- package/bundle/chunk-2tw58kwb.js +2 -0
- package/bundle/chunk-2vxx0tax.js +2 -0
- package/bundle/chunk-2ybt3p5z.js +2 -0
- package/bundle/chunk-2zpkw3ge.js +2 -0
- package/bundle/{chunk-xthkjax9.js → chunk-34p46th6.js} +1 -1
- package/bundle/chunk-397be2x0.js +2 -0
- package/bundle/chunk-3c78nkgn.js +2 -0
- package/bundle/{chunk-7xm75w1e.js → chunk-3k2b05fv.js} +1 -1
- package/bundle/{chunk-tvdmnee6.js → chunk-3mzcr3fw.js} +1 -1
- package/bundle/{chunk-wqj0xasg.js → chunk-3vnnxq40.js} +1 -1
- package/bundle/{chunk-enpzvmtc.js → chunk-41v0x1jk.js} +1 -1
- package/bundle/chunk-425mq6k8.js +2 -0
- package/bundle/chunk-43yv7tz1.js +2 -0
- package/bundle/{chunk-78ymd20x.js → chunk-499gp5g5.js} +1 -1
- package/bundle/{chunk-m2q317gh.js → chunk-4ntbxet5.js} +1 -1
- package/bundle/chunk-4sw6frjt.js +2 -0
- package/bundle/{chunk-rzhdkkpz.js → chunk-4ttf9rjd.js} +1 -1
- package/bundle/{chunk-vywnd5sf.js → chunk-4wxxyrxn.js} +1 -1
- package/bundle/chunk-4xw14sed.js +2 -0
- package/bundle/chunk-536naqqv.js +2 -0
- package/bundle/chunk-57najm15.js +2 -0
- package/bundle/{chunk-60v5jvgt.js → chunk-5a7fs1hg.js} +1 -1
- package/bundle/chunk-5he3d7cy.js +2 -0
- package/bundle/{chunk-2phz0bn9.js → chunk-5vzrn6za.js} +1 -1
- package/bundle/{chunk-zaks8cae.js → chunk-5xq3h51b.js} +1 -1
- package/bundle/{chunk-gwp17r03.js → chunk-67d5d8mr.js} +1 -1
- package/bundle/{chunk-5pb551dx.js → chunk-696z96a6.js} +1 -1
- package/bundle/{chunk-yek0sk2q.js → chunk-6a7c7wnf.js} +1 -1
- package/bundle/{chunk-9gazyynx.js → chunk-6b196wjz.js} +2 -2
- package/bundle/{chunk-fgg9txzb.js → chunk-6gb65bv1.js} +1 -1
- package/bundle/chunk-6hybp2mt.js +2 -0
- package/bundle/{chunk-d6ry9418.js → chunk-6p94fpbn.js} +2 -2
- package/bundle/{chunk-xcmgkc57.js → chunk-6styp5dn.js} +1 -1
- package/bundle/{chunk-85wcc1tp.js → chunk-6v9nbb4c.js} +1 -1
- package/bundle/chunk-6y423jax.js +3 -0
- package/bundle/{chunk-ejrhvy38.js → chunk-6ynxf3q7.js} +1 -1
- package/bundle/{chunk-cfgvm15x.js → chunk-71zw0qhf.js} +1 -1
- package/bundle/chunk-72ghkgcn.js +2 -0
- package/bundle/{chunk-bh53dz71.js → chunk-7311jry1.js} +1 -1
- package/bundle/{chunk-d07p6fpk.js → chunk-73myw3bj.js} +2 -2
- package/bundle/chunk-741teh8k.js +2 -0
- package/bundle/{chunk-10bjs581.js → chunk-79agp7v3.js} +2 -2
- package/bundle/chunk-7b3wx6kn.js +2 -0
- package/bundle/{chunk-wmqsdt2c.js → chunk-7bwe0ayr.js} +1 -1
- package/bundle/{chunk-40efytmk.js → chunk-7eexey82.js} +1 -1
- package/bundle/chunk-7hh0654f.js +3 -0
- package/bundle/{chunk-33e9y2aw.js → chunk-7mxt5b0h.js} +1 -1
- package/bundle/{chunk-yjf3kyej.js → chunk-7vd91wsd.js} +1 -1
- package/bundle/{chunk-nv3eyyaj.js → chunk-81trveht.js} +1 -1
- package/bundle/{chunk-dnwefyhv.js → chunk-8762ty72.js} +1 -1
- package/bundle/{chunk-qc8rsn4v.js → chunk-891yevv2.js} +1 -1
- package/bundle/{chunk-15j5cn4t.js → chunk-8d5k45yj.js} +1 -1
- package/bundle/{chunk-we9cv8we.js → chunk-8eje5baf.js} +2 -2
- package/bundle/{chunk-8qswepp2.js → chunk-8ktgy41r.js} +1 -1
- package/bundle/{chunk-w18xs2h5.js → chunk-8q73cjyj.js} +1 -1
- package/bundle/chunk-8y623qdx.js +2 -0
- package/bundle/chunk-921vn745.js +2 -0
- package/bundle/{chunk-4jtxtkj7.js → chunk-94pcpztx.js} +2 -2
- package/bundle/{chunk-a7amey9s.js → chunk-9fxkh84w.js} +1 -1
- package/bundle/{chunk-pv67gwce.js → chunk-9msnx26q.js} +1 -1
- package/bundle/{chunk-8hytwgwf.js → chunk-9qdr9t8c.js} +1 -1
- package/bundle/{chunk-gt31468k.js → chunk-9x25d115.js} +1 -1
- package/bundle/{chunk-5jx0yadh.js → chunk-9y97bzht.js} +2 -2
- package/bundle/{chunk-zs8kqdsf.js → chunk-a0rp7gh4.js} +2 -2
- package/bundle/{chunk-tq0239xp.js → chunk-a3a1trap.js} +1 -1
- package/bundle/{chunk-n9xns8by.js → chunk-a48t0g95.js} +2 -2
- package/bundle/chunk-a8119c3a.js +2 -0
- package/bundle/chunk-akk84fnc.js +2 -0
- package/bundle/chunk-aw7j7brm.js +2 -0
- package/bundle/{chunk-js1n8tgv.js → chunk-azhw650z.js} +1 -1
- package/bundle/chunk-b34t8v7x.js +2 -0
- package/bundle/{chunk-t8m74g39.js → chunk-b4knxpqh.js} +1 -1
- package/bundle/chunk-b8hmj4jq.js +2 -0
- package/bundle/{chunk-jef04wyf.js → chunk-ba3h1pzs.js} +1 -1
- package/bundle/{chunk-71xz70r9.js → chunk-bbzztav6.js} +1 -1
- package/bundle/{chunk-dactgryw.js → chunk-bj00xk8k.js} +1 -1
- package/bundle/{chunk-59yqvk48.js → chunk-bja8q0ke.js} +1 -1
- package/bundle/{chunk-cxnfy6qk.js → chunk-bk4phk66.js} +1 -1
- package/bundle/{chunk-e01wnqvc.js → chunk-bnss5dkk.js} +1 -1
- package/bundle/{chunk-fvzwbjh8.js → chunk-bv29k2pf.js} +1 -1
- package/bundle/{chunk-v1xjc3s8.js → chunk-by855es0.js} +1 -1
- package/bundle/{chunk-zy9w1vkc.js → chunk-c5fa8cb1.js} +1 -1
- package/bundle/{chunk-x9rbv6p6.js → chunk-c5pb87yf.js} +1 -1
- package/bundle/{chunk-ck2gfaba.js → chunk-c6vfwjg4.js} +1 -1
- package/bundle/chunk-cfw9pyt7.js +2 -0
- package/bundle/chunk-ckbwdrm3.js +2 -0
- package/bundle/{chunk-3632wgg1.js → chunk-cs38g1bx.js} +1 -1
- package/bundle/{chunk-53bqcctj.js → chunk-cz3h5n1v.js} +1 -1
- package/bundle/{chunk-rg0mrprz.js → chunk-d00c1k9w.js} +1 -1
- package/bundle/{chunk-zqqx96jx.js → chunk-d80hk5x9.js} +1 -1
- package/bundle/{chunk-wezarrvy.js → chunk-d8dk05kd.js} +1 -1
- package/bundle/{chunk-p18axz0m.js → chunk-dcndy4sr.js} +1 -1
- package/bundle/{chunk-e7ny0b3x.js → chunk-dctj3c22.js} +1 -1
- package/bundle/{chunk-vvxmwyrw.js → chunk-df2aswz3.js} +1 -1
- package/bundle/{chunk-skqbaadf.js → chunk-dffhkd30.js} +1 -1
- package/bundle/{chunk-pe29yy6s.js → chunk-dhqaqeq6.js} +1 -1
- package/bundle/chunk-dwajajaq.js +2 -0
- package/bundle/{chunk-dryzt12j.js → chunk-dxcrggvq.js} +1 -1
- package/bundle/{chunk-fn9h4ync.js → chunk-dyv2hqvc.js} +1 -1
- package/bundle/{chunk-93p131d5.js → chunk-e6xnynaz.js} +1 -1
- package/bundle/chunk-e7ah0e61.js +2 -0
- package/bundle/{chunk-tqj69nh6.js → chunk-e7v9trve.js} +2 -2
- package/bundle/{chunk-chpr8ekb.js → chunk-ebcdxmdd.js} +1 -1
- package/bundle/{chunk-zw815d68.js → chunk-ee23d2nz.js} +2 -2
- package/bundle/chunk-efndtzby.js +2 -0
- package/bundle/{chunk-gb00fh4z.js → chunk-egn55fa2.js} +3 -3
- package/bundle/chunk-eq2pepce.js +2 -0
- package/bundle/{chunk-7tr9ejyk.js → chunk-esp6jv63.js} +1 -1
- package/bundle/chunk-f693s9vn.js +2 -0
- package/bundle/chunk-f9v5n0t6.js +2 -0
- package/bundle/{chunk-za7mwbye.js → chunk-fdadk5tw.js} +1 -1
- package/bundle/{chunk-0dt0bxz6.js → chunk-fg35hwa0.js} +2 -2
- package/bundle/{chunk-ktzq4ha1.js → chunk-fmq0m4k5.js} +1 -1
- package/bundle/chunk-ftepqwyq.js +2 -0
- package/bundle/{chunk-jh0bw59r.js → chunk-g4gjz7sq.js} +1 -1
- package/bundle/{chunk-w7vh8cxt.js → chunk-g4nq9swr.js} +1 -1
- package/bundle/{chunk-g5rabwre.js → chunk-g6cyhxwg.js} +2 -2
- package/bundle/{chunk-k7aenxan.js → chunk-gdb67zmn.js} +1 -1
- package/bundle/{chunk-a1wdeapb.js → chunk-ggydr1ze.js} +1 -1
- package/bundle/chunk-gk28ffhg.js +2 -0
- package/bundle/{chunk-c11d28qn.js → chunk-gmzrvxnv.js} +2 -2
- package/bundle/chunk-gpfc4z4v.js +2 -0
- package/bundle/chunk-gqvg02zp.js +2 -0
- package/bundle/{chunk-3c6p8tm3.js → chunk-gws1rn1v.js} +1 -1
- package/bundle/{chunk-hnzegjgv.js → chunk-gy0wm7e1.js} +1 -1
- package/bundle/{chunk-zcsgqk9f.js → chunk-h2m8fdqm.js} +1 -1
- package/bundle/{chunk-pp2eqkse.js → chunk-h3k1dk9m.js} +1 -1
- package/bundle/chunk-h8c3dcqt.js +2 -0
- package/bundle/chunk-hfq11w4h.js +2 -0
- package/bundle/{chunk-nkkch4h7.js → chunk-hg0etbkx.js} +1 -1
- package/bundle/{chunk-01my2y0c.js → chunk-hj3ddt53.js} +1 -1
- package/bundle/{chunk-ay8emwym.js → chunk-hw5qyht3.js} +1 -1
- package/bundle/chunk-hwf58w1k.js +2 -0
- package/bundle/{chunk-rza530gm.js → chunk-j0jdkqf5.js} +1 -1
- package/bundle/{chunk-ezfy0b6q.js → chunk-j8q252w3.js} +2 -2
- package/bundle/{chunk-kq6b222y.js → chunk-jgjnz82k.js} +1 -1
- package/bundle/{chunk-wfb608qf.js → chunk-jkh6eg7d.js} +3 -3
- package/bundle/{chunk-xrs18kzn.js → chunk-jm722vy1.js} +1 -1
- package/bundle/chunk-kdvs4871.js +2 -0
- package/bundle/{chunk-6hpgb8h4.js → chunk-ke7n9t5p.js} +3 -3
- package/bundle/{chunk-vcw00k0n.js → chunk-keveg5gx.js} +2 -2
- package/bundle/{chunk-dxpj0cxh.js → chunk-kfmz2p27.js} +2 -2
- package/bundle/{chunk-xm7wascx.js → chunk-kjyw00jp.js} +1 -1
- package/bundle/chunk-kk3ve911.js +2 -0
- package/bundle/{chunk-gsar6xda.js → chunk-kmcsz8yv.js} +1 -1
- package/bundle/{chunk-mqd1jsg2.js → chunk-knpyt206.js} +1 -1
- package/bundle/{chunk-4cnwn1rh.js → chunk-kv72hxkp.js} +2 -2
- package/bundle/{chunk-kj20f048.js → chunk-kwx9ewe0.js} +1 -1
- package/bundle/chunk-m4j7jyrd.js +3 -0
- package/bundle/{chunk-5hw6xa49.js → chunk-md8161zd.js} +1 -1
- package/bundle/{chunk-r7sqdfad.js → chunk-mdts0641.js} +1 -1
- package/bundle/{chunk-xzrb857v.js → chunk-mex0fe9s.js} +1 -1
- package/bundle/{chunk-ctaze2hn.js → chunk-mf3sm0pk.js} +1 -1
- package/bundle/chunk-mkng9ykt.js +2 -0
- package/bundle/{chunk-mzs2pjyc.js → chunk-mpygdb5a.js} +2 -2
- package/bundle/{chunk-81qwdg5s.js → chunk-mq6jn47r.js} +1 -1
- package/bundle/{chunk-yp8wyzzm.js → chunk-mr8j7rc6.js} +1 -1
- package/bundle/{chunk-h4j5xzc8.js → chunk-n6gtdx5h.js} +1 -1
- package/bundle/{chunk-h2afsbm1.js → chunk-n6msxne8.js} +1 -1
- package/bundle/{chunk-jbx3s7nw.js → chunk-n96tvjgj.js} +2 -2
- package/bundle/{chunk-9f1z9xce.js → chunk-ngccf7ga.js} +1 -1
- package/bundle/chunk-nj4d554m.js +11 -0
- package/bundle/{chunk-dynv30gm.js → chunk-nj61v4n7.js} +1 -1
- package/bundle/{chunk-12vef2pr.js → chunk-nkk4fyqf.js} +1 -1
- package/bundle/{chunk-gbpvs0fx.js → chunk-nmehsm3w.js} +1 -1
- package/bundle/chunk-npv80mcx.js +2 -0
- package/bundle/{chunk-rkyf0cp8.js → chunk-ny9hnvzy.js} +1 -1
- package/bundle/{chunk-ew9pdrp9.js → chunk-p15sv2dg.js} +1 -1
- package/bundle/{chunk-73e409hd.js → chunk-p3qkexpk.js} +1 -1
- package/bundle/{chunk-yhbcbjfk.js → chunk-p825vsjy.js} +1 -1
- package/bundle/{chunk-rbk8seme.js → chunk-p9cnzxb8.js} +1 -1
- package/bundle/chunk-pe98rznj.js +2 -0
- package/bundle/{chunk-15hw2z9t.js → chunk-pkc4ddw1.js} +1 -1
- package/bundle/{chunk-x25zkrz7.js → chunk-ppkqr9cn.js} +1 -1
- package/bundle/{chunk-1gx18dm5.js → chunk-prh3c44x.js} +1 -1
- package/bundle/{chunk-zscer8rc.js → chunk-pxmhe36r.js} +1 -1
- package/bundle/{chunk-2wajs9xv.js → chunk-q1czj6be.js} +1 -1
- package/bundle/{chunk-d3ermm6d.js → chunk-q5fygrnr.js} +1 -1
- package/bundle/chunk-q6wm9yt0.js +2 -0
- package/bundle/{chunk-g7ccdh7r.js → chunk-q8hd01j7.js} +1 -1
- package/bundle/{chunk-e10py6yr.js → chunk-qa2j0qmy.js} +1 -1
- package/bundle/chunk-qbx70v64.js +2 -0
- package/bundle/{chunk-ad72gb5f.js → chunk-qc3ce3vc.js} +2 -2
- package/bundle/{chunk-g10d6x57.js → chunk-qddt2gcs.js} +1 -1
- package/bundle/chunk-qek6a75r.js +2 -0
- package/bundle/{chunk-y3b4k38p.js → chunk-qg2vk5fw.js} +1 -1
- package/bundle/{chunk-7z5jh4ra.js → chunk-qkjdr337.js} +1 -1
- package/bundle/chunk-qkk1as5n.js +2 -0
- package/bundle/{chunk-5q4harvc.js → chunk-qrtc3etn.js} +2 -2
- package/bundle/chunk-qsm9xw87.js +2 -0
- package/bundle/chunk-qyzze0dv.js +2 -0
- package/bundle/{chunk-7avcnwv8.js → chunk-qzj6027k.js} +1 -1
- package/bundle/{chunk-70ck4v3t.js → chunk-r0k21apr.js} +1 -1
- package/bundle/chunk-r2w3gr8d.js +2 -0
- package/bundle/chunk-r5bqcpkz.js +2 -0
- package/bundle/chunk-r67c858b.js +2 -0
- package/bundle/chunk-r9fvfkee.js +2 -0
- package/bundle/{chunk-3wetyrjs.js → chunk-rjy5mqwz.js} +1 -1
- package/bundle/{chunk-69nzndk7.js → chunk-rkwrjphh.js} +1 -1
- package/bundle/{chunk-0mx2psfc.js → chunk-rmve21dh.js} +1 -1
- package/bundle/chunk-rq47pn3r.js +2 -0
- package/bundle/{chunk-b8gjz6bk.js → chunk-rq4w0by4.js} +1 -1
- package/bundle/{chunk-jrqb0jwy.js → chunk-rsszcqxd.js} +1 -1
- package/bundle/{chunk-xvwvd4kq.js → chunk-rv1stdvb.js} +1 -1
- package/bundle/chunk-rvt1tdy8.js +2 -0
- package/bundle/{chunk-3bxg5bta.js → chunk-ry7q8xn6.js} +1 -1
- package/bundle/{chunk-rjd8gbs5.js → chunk-ryfqwsft.js} +1 -1
- package/bundle/chunk-s27xvrft.js +2 -0
- package/bundle/chunk-s2vasbwj.js +2 -0
- package/bundle/{chunk-p9qfbr02.js → chunk-s4qtphwx.js} +1 -1
- package/bundle/{chunk-qrsveve6.js → chunk-s8hq6trz.js} +1 -1
- package/bundle/chunk-scy39p6q.js +2 -0
- package/bundle/{chunk-71sjjjr8.js → chunk-seghf5fc.js} +1 -1
- package/bundle/{chunk-2zq4k837.js → chunk-sfes6pp1.js} +1 -1
- package/bundle/chunk-shenqgrx.js +2 -0
- package/bundle/{chunk-htz93dsd.js → chunk-snr44en9.js} +2 -2
- package/bundle/{chunk-cphrgyp6.js → chunk-ssk8tkwd.js} +1 -1
- package/bundle/{chunk-jdynx7m6.js → chunk-sz0gkx88.js} +1 -1
- package/bundle/{chunk-yv0xrnn9.js → chunk-t5qamf96.js} +1 -1
- package/bundle/chunk-tt8jke90.js +2 -0
- package/bundle/chunk-ttevj0pj.js +2 -0
- package/bundle/chunk-v6tgn668.js +2 -0
- package/bundle/chunk-v7c54cyj.js +2 -0
- package/bundle/chunk-vgefaens.js +2 -0
- package/bundle/chunk-vkq0faj8.js +2 -0
- package/bundle/{chunk-764fksh3.js → chunk-vkqzmzpw.js} +1 -1
- package/bundle/{chunk-24jg9d61.js → chunk-vsr8mnj6.js} +1 -1
- package/bundle/{chunk-6d5rrre9.js → chunk-vszbqv24.js} +1 -1
- package/bundle/chunk-vv59b4re.js +2 -0
- package/bundle/chunk-vwqy7n3g.js +2 -0
- package/bundle/{chunk-y6123zvq.js → chunk-w5kg2yz0.js} +1 -1
- package/bundle/{chunk-ygs5pzk7.js → chunk-w9nzsd3w.js} +3 -3
- package/bundle/chunk-wbzs30fk.js +28 -0
- package/bundle/chunk-wet3bnwn.js +2 -0
- package/bundle/{chunk-gagtmjmp.js → chunk-wfd5h6ax.js} +2 -2
- package/bundle/{chunk-w8saweey.js → chunk-wfegee41.js} +1 -1
- package/bundle/{chunk-ht5w06x7.js → chunk-wgk7ynt3.js} +2 -2
- package/bundle/{chunk-257me4z3.js → chunk-wmaz57f6.js} +47 -47
- package/bundle/chunk-wn076jwj.js +2 -0
- package/bundle/{chunk-35xk4g91.js → chunk-wvf5q2hz.js} +1 -1
- package/bundle/{chunk-d9hbhkbq.js → chunk-wwgd4rzx.js} +2 -2
- package/bundle/chunk-x0m1qye9.js +2 -0
- package/bundle/{chunk-p62gb4wj.js → chunk-x66ycpfs.js} +1 -1
- package/bundle/chunk-x9s90xd1.js +3 -0
- package/bundle/{chunk-48ge2ryx.js → chunk-xgr6jnd6.js} +1 -1
- package/bundle/{chunk-q7vasbxn.js → chunk-xhkd9yf3.js} +1 -1
- package/bundle/{chunk-pje60pj2.js → chunk-xkv3yta0.js} +1 -1
- package/bundle/{chunk-2hc5z7b5.js → chunk-xqdrr7xg.js} +1 -1
- package/bundle/{chunk-0c2p3a6v.js → chunk-xy5cjach.js} +1 -1
- package/bundle/{chunk-3nx7112w.js → chunk-y370dqf3.js} +2 -2
- package/bundle/{chunk-ss2ms1r3.js → chunk-y437vyza.js} +1 -1
- package/bundle/chunk-y70aachh.js +2 -0
- package/bundle/{chunk-db405hjg.js → chunk-y9zstzed.js} +1 -1
- package/bundle/{chunk-gz8sz7z1.js → chunk-ya8g02hv.js} +1 -1
- package/bundle/{chunk-avf8v3hb.js → chunk-ygjtwjnk.js} +1 -1
- package/bundle/{chunk-pp6vhqrr.js → chunk-yjk6zv2z.js} +1 -1
- package/bundle/{chunk-326p5b10.js → chunk-yk97q51d.js} +1 -1
- package/bundle/{chunk-kf167jw7.js → chunk-ynwkr3yh.js} +1 -1
- package/bundle/{chunk-y9q0hb7b.js → chunk-yqk58hf6.js} +2 -2
- package/bundle/chunk-ysgxt83y.js +2 -0
- package/bundle/{chunk-tt30dybd.js → chunk-yz6898wy.js} +1 -1
- package/bundle/{chunk-x562b0xk.js → chunk-z1ay3qd0.js} +1 -1
- package/bundle/{chunk-9emq67vc.js → chunk-z7430qxg.js} +1 -1
- package/bundle/{chunk-2maqde7w.js → chunk-z8gdmvgg.js} +2 -2
- package/bundle/chunk-za63b5mc.js +5 -0
- package/bundle/{chunk-vxyy2dp3.js → chunk-zfcp509b.js} +1 -1
- package/bundle/{chunk-x7k5yeey.js → chunk-zfn0z4sh.js} +1 -1
- package/bundle/{chunk-ag8kz1e7.js → chunk-zh3fny3z.js} +2 -2
- package/bundle/{chunk-whe7h2mj.js → chunk-zm5dfk2b.js} +1 -1
- package/bundle/{chunk-02jtpxe0.js → chunk-zpf31kxb.js} +1 -1
- package/bundle/{chunk-56z7x7h4.js → chunk-zph1c2q1.js} +2 -2
- package/bundle/chunk-zwdnh860.js +2 -0
- package/bundle/{chunk-1vb79bw1.js → chunk-zwnhf4z1.js} +1 -1
- 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-096pd6c4.js +0 -2
- package/bundle/chunk-0c5rxty9.js +0 -2
- package/bundle/chunk-0e86gt9r.js +0 -2
- package/bundle/chunk-0p27fvfr.js +0 -2
- package/bundle/chunk-0qs1vx97.js +0 -2
- package/bundle/chunk-1r95p0tp.js +0 -2
- package/bundle/chunk-1rhhhm88.js +0 -2
- package/bundle/chunk-1wbjh23g.js +0 -2
- package/bundle/chunk-20702epe.js +0 -2
- package/bundle/chunk-42p59wm4.js +0 -2
- package/bundle/chunk-4512pvca.js +0 -2
- package/bundle/chunk-456bmaww.js +0 -2
- package/bundle/chunk-48pajrnt.js +0 -2
- package/bundle/chunk-4fy9c54h.js +0 -2
- package/bundle/chunk-4sc82a27.js +0 -2
- package/bundle/chunk-59y8q9m5.js +0 -2
- package/bundle/chunk-5tray1fw.js +0 -3
- package/bundle/chunk-634pnryq.js +0 -2
- package/bundle/chunk-64ezpbwt.js +0 -2
- package/bundle/chunk-7mke41x0.js +0 -2
- package/bundle/chunk-7ry9cvby.js +0 -2
- package/bundle/chunk-7wczs9mx.js +0 -2
- package/bundle/chunk-7z777y9k.js +0 -2
- package/bundle/chunk-89w3yhf8.js +0 -2
- package/bundle/chunk-8dwq41q1.js +0 -28
- package/bundle/chunk-8v96pmqn.js +0 -2
- package/bundle/chunk-8y2scz6z.js +0 -2
- package/bundle/chunk-8zx7vnx6.js +0 -2
- package/bundle/chunk-94a76f8w.js +0 -2
- package/bundle/chunk-9ng7jjp7.js +0 -2
- package/bundle/chunk-9tpgnjy8.js +0 -2
- package/bundle/chunk-a7ym9f0v.js +0 -2
- package/bundle/chunk-a8f2xvy3.js +0 -2
- package/bundle/chunk-a99cvwta.js +0 -2
- package/bundle/chunk-avys5mnz.js +0 -2
- package/bundle/chunk-axvjd10y.js +0 -2
- package/bundle/chunk-b4pphqab.js +0 -2
- package/bundle/chunk-b6087ak4.js +0 -2
- package/bundle/chunk-bn0h9dny.js +0 -10
- package/bundle/chunk-brkqxbjy.js +0 -2
- package/bundle/chunk-c26qxt5g.js +0 -2
- package/bundle/chunk-c6zscb38.js +0 -2
- package/bundle/chunk-cjww2jmv.js +0 -3
- package/bundle/chunk-d0damw6y.js +0 -2
- package/bundle/chunk-dafmkrhn.js +0 -2
- package/bundle/chunk-dgprdym0.js +0 -2
- package/bundle/chunk-dsamees2.js +0 -2
- package/bundle/chunk-dyqpxx3b.js +0 -2
- package/bundle/chunk-e5mv5wnt.js +0 -2
- package/bundle/chunk-gwzw92jt.js +0 -2
- package/bundle/chunk-h6f3kbz2.js +0 -2
- package/bundle/chunk-hp7tssgv.js +0 -2
- package/bundle/chunk-ht0hbdmx.js +0 -2
- package/bundle/chunk-k1txw65h.js +0 -2
- package/bundle/chunk-k5atbdbm.js +0 -2
- package/bundle/chunk-k75jqg60.js +0 -3
- package/bundle/chunk-mahgmbt9.js +0 -2
- package/bundle/chunk-ngm6pqyt.js +0 -2
- package/bundle/chunk-ngtavamt.js +0 -2
- package/bundle/chunk-nkhc32s3.js +0 -2
- package/bundle/chunk-npse2xrd.js +0 -2
- package/bundle/chunk-p6e4vqy7.js +0 -2
- package/bundle/chunk-pqkjhn8h.js +0 -2
- package/bundle/chunk-qadw6j20.js +0 -2
- package/bundle/chunk-qd8w2gkd.js +0 -2
- package/bundle/chunk-qggcszs2.js +0 -2
- package/bundle/chunk-r8m7rtfc.js +0 -2
- package/bundle/chunk-rf12t4n5.js +0 -2
- package/bundle/chunk-rpgne7xh.js +0 -2
- package/bundle/chunk-rvgj1vky.js +0 -2
- package/bundle/chunk-s3mnrhbx.js +0 -5
- package/bundle/chunk-s6ktx2sx.js +0 -2
- package/bundle/chunk-ss2jvqrg.js +0 -2
- package/bundle/chunk-tvwwq4b3.js +0 -2
- package/bundle/chunk-v2n26eg4.js +0 -2
- package/bundle/chunk-wr42tphe.js +0 -2
- package/bundle/chunk-x24y7qyd.js +0 -2
- package/bundle/chunk-xj765svc.js +0 -3
- package/bundle/chunk-y2d0w09y.js +0 -2
- package/bundle/chunk-y7sy3w6z.js +0 -2
- package/bundle/chunk-yb79f79m.js +0 -2
- package/bundle/chunk-yjnyzpmt.js +0 -2
- package/bundle/chunk-yqbcnsa1.js +0 -2
- package/bundle/chunk-z3mra3nm.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-3k2b05fv.js";var Jm=Object.defineProperty,Om=(e)=>{throw TypeError(e)},dh=(e,_,o)=>(_ in e)?Jm(e,_,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[_]=o,Lm=(e,_)=>{for(var o in _)Jm(e,o,{get:_[o],enumerable:!0})},zo=(e,_,o)=>dh(e,typeof _!="symbol"?_+"":_,o),mh=(e,_,o)=>_.has(e)||Om("Cannot "+o),fh=(e,_,o)=>_.has(e)?Om("Cannot add the same private member more than once"):_ instanceof WeakSet?_.add(e):_.set(e,o),ye=(e,_,o)=>(mh(e,_,"access private method"),o),Rm={};Lm(Rm,{parsers:()=>qm});var qm={};Lm(qm,{typescript:()=>T4});var hh=()=>()=>{},Fp=hh,yh=(e,_,o,c)=>{if(!(e&&_==null))return _.replaceAll?_.replaceAll(o,c):o.global?_.replace(o,c):_.split(o).join(c)},Na=yh,gh="5.8",At=[],bh=new Map;function Ho(e){return e!==void 0?e.length:0}function O_(e,_){if(e!==void 0)for(let o=0;o<e.length;o++){let c=_(e[o],o);if(c)return c}}function vh(e,_){if(e!==void 0)for(let o=0;o<e.length;o++){let c=_(e[o],o);if(c!==void 0)return c}}function xd(e,_,o){let c=[];q.assertEqual(e.length,_.length);for(let h=0;h<e.length;h++)c.push(o(e[h],_[h],h));return c}function jp(e,_){if(e!==void 0){for(let o=0;o<e.length;o++)if(!_(e[o],o))return!1}return!0}function Um(e,_,o){if(e!==void 0)for(let c=o??0;c<e.length;c++){let h=e[c];if(_(h,c))return h}}function Gu(e,_,o){if(e===void 0)return-1;for(let c=o??0;c<e.length;c++)if(_(e[c],c))return c;return-1}function xh(e,_,o=Op){if(e!==void 0){for(let c=0;c<e.length;c++)if(o(e[c],_))return!0}return!1}function Xn(e,_){if(e!==void 0){let o=e.length,c=0;for(;c<o&&_(e[c]);)c++;if(c<o){let h=e.slice(0,c);for(c++;c<o;){let v=e[c];_(v)&&h.push(v),c++}return h}}return e}function cp(e,_){let o;if(e!==void 0){o=[];for(let c=0;c<e.length;c++)o.push(_(e[c],c))}return o}function Bm(e){let _=[];for(let o=0;o<e.length;o++){let c=e[o];c&&($n(c)?D_(_,c):_.push(c))}return _}function zm(e,_){let o;if(e!==void 0)for(let c=0;c<e.length;c++){let h=_(e[c],c);h&&($n(h)?o=D_(o,h):o=C_(o,h))}return o??At}function wh(e,_){let o;if(e!==void 0)for(let c=0;c<e.length;c++){let h=e[c],v=_(h,c);(o||h!==v||$n(v))&&(o||(o=e.slice(0,c)),$n(v)?D_(o,v):o.push(v))}return o??e}function Th(e,_){let o=[];if(e!==void 0)for(let c=0;c<e.length;c++){let h=_(e[c],c);h!==void 0&&o.push(h)}return o}function Zt(e,_){if(e!==void 0)if(_!==void 0){for(let o=0;o<e.length;o++)if(_(e[o]))return!0}else return e.length>0;return!1}function Mp(e,_){return _===void 0||_.length===0?e:e===void 0||e.length===0?_:[...e,..._]}function Sh(e,_,o=Op){if(e===void 0||_===void 0)return e===_;if(e.length!==_.length)return!1;for(let c=0;c<e.length;c++)if(!o(e[c],_[c],c))return!1;return!0}function C_(e,_){return _===void 0?e:e===void 0?[_]:(e.push(_),e)}function up(e,_){return _<0?e.length+_:_}function D_(e,_,o,c){if(_===void 0||_.length===0)return e;if(e===void 0)return _.slice(o,c);o=o===void 0?0:up(_,o),c=c===void 0?_.length:up(_,c);for(let h=o;h<c&&h<_.length;h++)_[h]!==void 0&&e.push(_[h]);return e}function kh(e,_,o){return xh(e,_,o)?!1:(e.push(_),!0)}function Ch(e,_,o){return e!==void 0?(kh(e,_,o),e):[_]}function Ah(e,_){return e.length===0?At:e.slice().sort(_)}var S4=Array.prototype.at?(e,_)=>e==null?void 0:e.at(_):(e,_)=>{if(e!==void 0&&(_=up(e,_),_<e.length))return e[_]};function Jp(e){return e===void 0||e.length===0?void 0:e[0]}function ja(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function Dh(e){return q.assert(e.length!==0),e[e.length-1]}function Eh(e){return e!==void 0&&e.length===1?e[0]:void 0}function Ph(e,_,o,c,h){return Nh(e,o(_),o,c,h)}function Nh(e,_,o,c,h){if(!Zt(e))return-1;let v=h??0,A=e.length-1;for(;v<=A;){let E=v+(A-v>>1),s=o(e[E],E);switch(c(s,_)){case-1:v=E+1;break;case 0:return E;case 1:A=E-1;break}}return~v}function Ih(e,_,o,c,h){if(e&&e.length>0){let v=e.length;if(v>0){let A=c===void 0||c<0?0:c,E=h===void 0||A+h>v-1?v-1:A+h,s;for(arguments.length<=2?(s=e[A],A++):s=o;A<=E;)s=_(s,e[A],A),A++;return s}}return o}var Km=Object.prototype.hasOwnProperty;function Dn(e,_){return Km.call(e,_)}function Fh(e){let _=[];for(let o in e)Km.call(e,o)&&_.push(o);return _}function jh(){let e=new Map;return e.add=Mh,e.remove=Jh,e}function Mh(e,_){let o=this.get(e);return o!==void 0?o.push(_):this.set(e,o=[_]),o}function Jh(e,_){let o=this.get(e);o!==void 0&&(Vh(o,_),o.length||this.delete(e))}function $n(e){return Array.isArray(e)}function $u(e){return $n(e)?e:[e]}function Oh(e,_){return e!==void 0&&_(e)?e:void 0}function Cn(e,_){return e!==void 0&&_(e)?e:q.fail(`Invalid cast. The supplied value ${e} did not pass the test '${q.getFunctionName(_)}'.`)}function qa(e){}function Lh(){return!0}function gt(e){return e}function wd(e){let _;return()=>(e&&(_=e(),e=void 0),_)}function H_(e){let _=new Map;return(o)=>{let c=`${typeof o}:${o}`,h=_.get(c);return h===void 0&&!_.has(c)&&(h=e(o),_.set(c,h)),h}}function Op(e,_){return e===_}function Lp(e,_){return e===_||e!==void 0&&_!==void 0&&e.toUpperCase()===_.toUpperCase()}function Rh(e,_){return Op(e,_)}function qh(e,_){return e===_?0:e===void 0?-1:_===void 0?1:e<_?-1:1}function Vm(e,_){return qh(e,_)}function Uh(e,_,o){for(let c=0;c<e.length;c++)_=Math.max(_,o(e[c]));return _}function Qo(e,_,o){let c=Math.max(2,Math.floor(e.length*0.34)),h=Math.floor(e.length*0.4)+1,v;for(let A of _){let E=o(A);if(E!==void 0&&Math.abs(E.length-e.length)<=c){if(E===e||E.length<3&&E.toLowerCase()!==e.toLowerCase())continue;let s=Bh(e,E,h-0.1);if(s===void 0)continue;q.assert(s<h),h=s,v=A}}return v}function Bh(e,_,o){let c=Array(_.length+1),h=Array(_.length+1),v=o+0.01;for(let E=0;E<=_.length;E++)c[E]=E;for(let E=1;E<=e.length;E++){let s=e.charCodeAt(E-1),V=Math.ceil(E>o?E-o:1),d=Math.floor(_.length>o+E?o+E:_.length);h[0]=E;let T=E;for(let S=1;S<V;S++)h[S]=v;for(let S=V;S<=d;S++){let F=e[E-1].toLowerCase()===_[S-1].toLowerCase()?c[S-1]+0.1:c[S-1]+2,te=s===_.charCodeAt(S-1)?c[S-1]:Math.min(c[S]+1,h[S-1]+1,F);h[S]=te,T=Math.min(T,te)}for(let S=d+1;S<=_.length;S++)h[S]=v;if(T>o)return;let b=c;c=h,h=b}let A=c[_.length];return A>o?void 0:A}function zh(e,_,o){let c=e.length-_.length;return c>=0&&(o?Lp(e.slice(c),_):e.indexOf(_,c)===c)}function Kh(e,_){e[_]=e[e.length-1],e.pop()}function Vh(e,_){return Wh(e,(o)=>o===_)}function Wh(e,_){for(let o=0;o<e.length;o++)if(_(e[o]))return Kh(e,o),!0;return!1}function _c(e,_,o){return o?Lp(e.slice(0,_.length),_):e.lastIndexOf(_,0)===0}function pp(e){return e===void 0?void 0:[e]}var q;((e)=>{let _=0;e.currentLogLevel=2,e.isDebugging=!1;function o(J){return e.currentLogLevel<=J}e.shouldLog=o;function c(J,oe){e.loggingHost&&o(J)&&e.loggingHost.log(J,oe)}function h(J){c(3,J)}e.log=h,((J)=>{function oe(Ye){c(1,Ye)}J.error=oe;function pe(Ye){c(2,Ye)}J.warn=pe;function ke(Ye){c(3,Ye)}J.log=ke;function Qe(Ye){c(4,Ye)}J.trace=Qe})(h=e.log||(e.log={}));let v={};function A(){return _}e.getAssertionLevel=A;function E(J){let oe=_;if(_=J,J>oe)for(let pe of Fh(v)){let ke=v[pe];ke!==void 0&&e[pe]!==ke.assertion&&J>=ke.level&&(e[pe]=ke,v[pe]=void 0)}}e.setAssertionLevel=E;function s(J){return _>=J}e.shouldAssert=s;function V(J,oe){return s(J)?!0:(v[oe]={level:J,assertion:e[oe]},e[oe]=qa,!1)}function d(J,oe){debugger;let pe=Error(J?`Debug Failure. ${J}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(pe,oe||d),pe}e.fail=d;function T(J,oe,pe){return d(`${oe||"Unexpected node."}\r
|
|
3
3
|
Node ${jt(J.kind)} was unexpected.`,pe||T)}e.failBadSyntaxKind=T;function b(J,oe,pe,ke){J||(oe=oe?`False expression: ${oe}`:"False expression.",pe&&(oe+=`\r
|
|
4
4
|
Verbose Debug Information: `+(typeof pe=="string"?pe:pe())),d(oe,ke||b))}e.assert=b;function S(J,oe,pe,ke,Qe){if(J!==oe){let Ye=pe?ke?`${pe} ${ke}`:pe:"";d(`Expected ${J} === ${oe}. ${Ye}`,Qe||S)}}e.assertEqual=S;function F(J,oe,pe,ke){J>=oe&&d(`Expected ${J} < ${oe}. ${pe||""}`,ke||F)}e.assertLessThan=F;function te(J,oe,pe){J>oe&&d(`Expected ${J} <= ${oe}`,pe||te)}e.assertLessThanOrEqual=te;function ve(J,oe,pe){J<oe&&d(`Expected ${J} >= ${oe}`,pe||ve)}e.assertGreaterThanOrEqual=ve;function fe(J,oe,pe){J==null&&d(oe,pe||fe)}e.assertIsDefined=fe;function me(J,oe,pe){return fe(J,oe,pe||me),J}e.checkDefined=me;function j(J,oe,pe){for(let ke of J)fe(ke,oe,pe||j)}e.assertEachIsDefined=j;function ne(J,oe,pe){return j(J,oe,pe||ne),J}e.checkEachDefined=ne;function je(J,oe="Illegal value:",pe){let ke=typeof J=="object"&&Dn(J,"kind")&&Dn(J,"pos")?"SyntaxKind: "+jt(J.kind):JSON.stringify(J);return d(`${oe} ${ke}`,pe||je)}e.assertNever=je;function K(J,oe,pe,ke){V(1,"assertEachNode")&&b(oe===void 0||jp(J,oe),pe||"Unexpected node.",()=>`Node array did not pass test '${y_(oe)}'.`,ke||K)}e.assertEachNode=K;function se(J,oe,pe,ke){V(1,"assertNode")&&b(J!==void 0&&(oe===void 0||oe(J)),pe||"Unexpected node.",()=>`Node ${jt(J==null?void 0:J.kind)} did not pass test '${y_(oe)}'.`,ke||se)}e.assertNode=se;function G(J,oe,pe,ke){V(1,"assertNotNode")&&b(J===void 0||oe===void 0||!oe(J),pe||"Unexpected node.",()=>`Node ${jt(J.kind)} should not have passed test '${y_(oe)}'.`,ke||G)}e.assertNotNode=G;function mt(J,oe,pe,ke){V(1,"assertOptionalNode")&&b(oe===void 0||J===void 0||oe(J),pe||"Unexpected node.",()=>`Node ${jt(J==null?void 0:J.kind)} did not pass test '${y_(oe)}'.`,ke||mt)}e.assertOptionalNode=mt;function en(J,oe,pe,ke){V(1,"assertOptionalToken")&&b(oe===void 0||J===void 0||J.kind===oe,pe||"Unexpected node.",()=>`Node ${jt(J==null?void 0:J.kind)} was not a '${jt(oe)}' token.`,ke||en)}e.assertOptionalToken=en;function h_(J,oe,pe){V(1,"assertMissingNode")&&b(J===void 0,oe||"Unexpected node.",()=>`Node ${jt(J.kind)} was unexpected'.`,pe||h_)}e.assertMissingNode=h_;function tn(J){}e.type=tn;function y_(J){if(typeof J!="function")return"";if(Dn(J,"name"))return J.name;{let oe=Function.prototype.toString.call(J),pe=/^function\s+([\w$]+)\s*\(/.exec(oe);return pe?pe[1]:""}}e.getFunctionName=y_;function P_(J){return`{ name: ${si(J.escapedName)}; flags: ${st(J.flags)}; declarations: ${cp(J.declarations,(oe)=>jt(oe.kind))} }`}e.formatSymbol=P_;function We(J=0,oe,pe){let ke=Pn(oe);if(J===0)return ke.length>0&&ke[0][0]===0?ke[0][1]:"0";if(pe){let Qe=[],Ye=J;for(let[at,Et]of ke){if(at>J)break;at!==0&&at&J&&(Qe.push(Et),Ye&=~at)}if(Ye===0)return Qe.join("|")}else for(let[Qe,Ye]of ke)if(Qe===J)return Ye;return J.toString()}e.formatEnum=We;let _n=new Map;function Pn(J){let oe=_n.get(J);if(oe)return oe;let pe=[];for(let Qe in J){let Ye=J[Qe];typeof Ye=="number"&&pe.push([Ye,Qe])}let ke=Ah(pe,(Qe,Ye)=>Vm(Qe[0],Ye[0]));return _n.set(J,ke),ke}function jt(J){return We(J,Fe,!1)}e.formatSyntaxKind=jt;function L_(J){return We(J,ef,!1)}e.formatSnippetKind=L_;function N_(J){return We(J,Wn,!1)}e.formatScriptKind=N_;function Mt(J){return We(J,Y_,!0)}e.formatNodeFlags=Mt;function bt(J){return We(J,$m,!0)}e.formatNodeCheckFlags=bt;function He(J){return We(J,Wm,!0)}e.formatModifierFlags=He;function R_(J){return We(J,Zm,!0)}e.formatTransformFlags=R_;function Xt(J){return We(J,tf,!0)}e.formatEmitFlags=Xt;function st(J){return We(J,Gm,!0)}e.formatSymbolFlags=st;function rt(J){return We(J,o_,!0)}e.formatTypeFlags=rt;function Rt(J){return We(J,Qm,!0)}e.formatSignatureFlags=Rt;function Jt(J){return We(J,Hm,!0)}e.formatObjectFlags=Jt;function lt(J){return We(J,dp,!0)}e.formatFlowFlags=lt;function nn(J){return We(J,Xm,!0)}e.formatRelationComparisonResult=nn;function ft(J){return We(J,CheckMode,!0)}e.formatCheckMode=ft;function g_(J){return We(J,SignatureCheckMode,!0)}e.formatSignatureCheckMode=g_;function yt(J){return We(J,TypeFacts,!0)}e.formatTypeFacts=yt;let i_=!1,_t;function qt(J){"__debugFlowFlags"in J||Object.defineProperties(J,{__tsDebuggerDisplay:{value(){let oe=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",pe=this.flags&-2048;return`${oe}${pe?` (${lt(pe)})`:""}`}},__debugFlowFlags:{get(){return We(this.flags,dp,!0)}},__debugToString:{value(){return hn(this)}}})}function t_(J){return i_&&(typeof Object.setPrototypeOf=="function"?(_t||(_t=Object.create(Object.prototype),qt(_t)),Object.setPrototypeOf(J,_t)):qt(J)),J}e.attachFlowNodeDebugInfo=t_;let rn;function dn(J){"__tsDebuggerDisplay"in J||Object.defineProperties(J,{__tsDebuggerDisplay:{value(oe){return oe=String(oe).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${oe}`}}})}function mn(J){i_&&(typeof Object.setPrototypeOf=="function"?(rn||(rn=Object.create(Array.prototype),dn(rn)),Object.setPrototypeOf(J,rn)):dn(J))}e.attachNodeArrayDebugInfo=mn;function q_(){if(i_)return;let J=new WeakMap,oe=new WeakMap;Object.defineProperties(Ct.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let ke=this.flags&33554432?"TransientSymbol":"Symbol",Qe=this.flags&-33554433;return`${ke} '${hp(this)}'${Qe?` (${st(Qe)})`:""}`}},__debugFlags:{get(){return st(this.flags)}}}),Object.defineProperties(Ct.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let ke=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Qe=this.flags&524288?this.objectFlags&-1344:0;return`${ke}${this.symbol?` '${hp(this.symbol)}'`:""}${Qe?` (${Jt(Qe)})`:""}`}},__debugFlags:{get(){return rt(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Jt(this.objectFlags):""}},__debugTypeToString:{value(){let ke=J.get(this);return ke===void 0&&(ke=this.checker.typeToString(this),J.set(this,ke)),ke}}}),Object.defineProperties(Ct.getSignatureConstructor().prototype,{__debugFlags:{get(){return Rt(this.flags)}},__debugSignatureToString:{value(){var ke;return(ke=this.checker)==null?void 0:ke.signatureToString(this)}}});let pe=[Ct.getNodeConstructor(),Ct.getIdentifierConstructor(),Ct.getTokenConstructor(),Ct.getSourceFileConstructor()];for(let ke of pe)Dn(ke.prototype,"__debugKind")||Object.defineProperties(ke.prototype,{__tsDebuggerDisplay:{value(){return`${Fa(this)?"GeneratedIdentifier":tt(this)?`Identifier '${E_(this)}'`:Xr(this)?`PrivateIdentifier '${E_(this)}'`:Ra(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Ba(this)?`NumericLiteral ${this.text}`:og(this)?`BigIntLiteral ${this.text}n`:Qf(this)?"TypeParameterDeclaration":sc(this)?"ParameterDeclaration":Yf(this)?"ConstructorDeclaration":Tp(this)?"GetAccessorDeclaration":cc(this)?"SetAccessorDeclaration":mg(this)?"CallSignatureDeclaration":fg(this)?"ConstructSignatureDeclaration":Zf(this)?"IndexSignatureDeclaration":hg(this)?"TypePredicateNode":e1(this)?"TypeReferenceNode":t1(this)?"FunctionTypeNode":_1(this)?"ConstructorTypeNode":yg(this)?"TypeQueryNode":gg(this)?"TypeLiteralNode":bg(this)?"ArrayTypeNode":vg(this)?"TupleTypeNode":wg(this)?"OptionalTypeNode":Tg(this)?"RestTypeNode":Sg(this)?"UnionTypeNode":kg(this)?"IntersectionTypeNode":Cg(this)?"ConditionalTypeNode":Ag(this)?"InferTypeNode":Dg(this)?"ParenthesizedTypeNode":Eg(this)?"ThisTypeNode":Pg(this)?"TypeOperatorNode":Ng(this)?"IndexedAccessTypeNode":Ig(this)?"MappedTypeNode":Fg(this)?"LiteralTypeNode":xg(this)?"NamedTupleMember":jg(this)?"ImportTypeNode":jt(this.kind)}${this.flags?` (${Mt(this.flags)})`:""}`}},__debugKind:{get(){return jt(this.kind)}},__debugNodeFlags:{get(){return Mt(this.flags)}},__debugModifierFlags:{get(){return He(h2(this))}},__debugTransformFlags:{get(){return R_(this.transformFlags)}},__debugIsParseTreeNode:{get(){return ac(this)}},__debugEmitFlags:{get(){return Xt(La(this))}},__debugGetText:{value(Qe){if(Aa(this))return"";let Ye=oe.get(this);if(Ye===void 0){let at=N0(this),Et=at&&fr(at);Ye=Et?Od(Et,at,Qe):"",oe.set(this,Ye)}return Ye}}});i_=!0}e.enableDebugInfo=q_;function U_(J){let oe=J&7,pe=oe===0?"in out":oe===3?"[bivariant]":oe===2?"in":oe===1?"out":oe===4?"[independent]":"";return J&8?pe+=" (unmeasurable)":J&16&&(pe+=" (unreliable)"),pe}e.formatVariance=U_;class fn{__debugToString(){var J;switch(this.kind){case 3:return((J=this.debugInfo)==null?void 0:J.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return xd(this.sources,this.targets||cp(this.sources,()=>"any"),(oe,pe)=>`${oe.__debugTypeToString()} -> ${typeof pe=="string"?pe:pe.__debugTypeToString()}`).join(", ");case 2:return xd(this.sources,this.targets,(oe,pe)=>`${oe.__debugTypeToString()} -> ${pe().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
|
|
5
5
|
`).join(`
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Ig as r}from"./chunk-rv1stdvb.js";import{cQ as o}from"./chunk-3k2b05fv.js";var c=new r("zod v4");async function m(){return async(n,e)=>{let t;if("_zod"in n)try{t=(await import("./chunk-kjyw00jp.js")).toJSONSchema}catch{throw c}else try{t=(await import("./chunk-mq6jn47r.js")).zodToJsonSchema}catch{throw new r("zod-to-json-schema")}return t(n,e)}}export{m as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$t as b,$v as d$,$w as mW,$x as n,Au as fx,Av as S$,Ax as vc,Ay as oc,Bw as fW,Bx as z,By as uc,Cu as mx,Cv as C$,Cw as P,Cx as G,Dv as V$,Dw as Kc,Dx as K,Dy as lc,Eu as rx,Ew as bW,Ex as X,Ey as F,Fv as R$,Fw as vA,Fx as px,Gu as L,Gv as I$,Gw as cA,Gx as ex,Gy as rW,Hu as H$,Hv as k$,Hw as gA,Hx as dx,Iv as b$,Iw as yA,Ix as ax,Iy as w,Jv as F$,Jw as ZA,Jx as D,Kv as j$,Kw as oA,Kx as V,Lv as h$,Lw as QA,Lx as N,Mv as U$,Mw as uA,Mx as Z,Nv as T$,Nw as lA,Nx as R,Ov as v$,Ow as fA,Ox as B,Pv as g$,Pw as mA,Px as I,Qv as y$,Qw as rA,Qx as o,Rv as Z$,Rw as pA,Rx as u,Sv as o$,Sw as eA,Sx as l,Tt as TW,Tv as u$,Tw as dA,Tx as f,Ut as W,Uv as l$,Uw as aA,Ux as m,Vt as vW,Vw as nA,Vx as r,Wv as f$,Ww as iA,Wx as nx,Xt as q$,Xv as m$,Xw as tA,Xx as p,Yv as r$,Yw as sA,Yx as e,Zt as E,Zv as p$,Zw as Ax,Zx as d,_t as MA,_v as e$,_w as xx,_x as a,au as q,aw as a$,ax as x$,ay as i,bu as jx,bw as n$,bx as $$,by as gc,cw as i$,cx as c$,du as g,dv as UA,dw as t$,dx as W$,eu as y,ev as TA,ew as s$,ex as Bc,fu as gW,fv as Q$,fw as Ac,fx as FW,gv as Y$,gw as xc,gx as Pc,hu as yW,hv as O$,hw as $c,hx as Lc,iu as Ux,iv as J$,iw as cc,ix as Ec,jv as X$,jw as Wc,jx as Dc,ku as Tx,kv as G$,kw as _c,kx as Nc,lv as M$,lw as qc,lx as Sc,mu as vx,mv as w$,mw as Hc,mx as jW,my as yc,nv as z$,nw as Qc,nx as Cc,ou as gx,ov as K$,ow as Yc,ox as hW,pv as B$,pw as Oc,px as Vc,qu as yx,qv as P$,qw as Jc,qx as Rc,rv as ix,rw as Xc,rx as Ic,su as Zx,sv as tx,sw as Gc,sx as kc,tv as sx,tw as Mc,tx as bc,uu as ox,uv as A$,uw as wc,ux as Fc,vv as L$,vw as zc,vx as jc,wu as ux,wv as E$,ww as ZW,wx as hc,xv as D$,xw as oW,xx as Uc,yu as lx,yv as N$,yw as uW,yx as Tc,zw as lW,zx as UW,zy as Zc}from"./chunk-mzs2pjyc.js";import{DO as RA}from"./chunk-7xm75w1e.js";var hx=(A,x)=>{jx.init(A,x),A.name="ZodError",Object.defineProperties(A,{format:{value:($)=>y(A,$)},flatten:{value:($)=>g(A,$)},addIssue:{value:($)=>{A.issues.push($),A.message=JSON.stringify(A.issues,MA,2)}},addIssues:{value:($)=>{A.issues.push(...$),A.message=JSON.stringify(A.issues,MA,2)}},isEmpty:{get(){return A.issues.length===0}}})},pW=W("ZodError",hx),O=W("ZodError",hx,{Parent:Error});var wA=Ux(O),zA=Tx(O),KA=vx(O),BA=gx(O),PA=yx(O),LA=Zx(O),EA=ox(O),DA=ux(O),NA=lx(O),SA=fx(O),CA=mx(O),VA=rx(O);var Xq={};RA(Xq,{xid:()=>Q_,void:()=>j_,uuidv7:()=>A_,uuidv6:()=>sW,uuidv4:()=>tW,uuid:()=>iW,util:()=>q,url:()=>x_,uppercase:()=>l,unknown:()=>S,union:()=>Dx,undefined:()=>b_,ulid:()=>H_,uint64:()=>I_,uint32:()=>C_,tuple:()=>WW,trim:()=>a,treeifyError:()=>gW,transform:()=>Cx,toUpperCase:()=>i,toLowerCase:()=>n,toJSONSchema:()=>rW,templateLiteral:()=>a_,symbol:()=>k_,superRefine:()=>kW,success:()=>p_,stringbool:()=>xq,stringFormat:()=>B_,string:()=>jA,strictObject:()=>v_,startsWith:()=>m,size:()=>Z,setErrorMap:()=>_q,set:()=>u_,safeParseAsync:()=>BA,safeParse:()=>KA,safeEncodeAsync:()=>CA,safeEncode:()=>NA,safeDecodeAsync:()=>VA,safeDecode:()=>SA,registry:()=>fW,regexes:()=>L,regex:()=>o,refine:()=>IW,record:()=>_W,readonly:()=>DW,property:()=>nx,promise:()=>n_,prettifyError:()=>yW,preprocess:()=>cq,prefault:()=>wW,positive:()=>px,pipe:()=>HA,partialRecord:()=>Z_,parseAsync:()=>zA,parse:()=>wA,overwrite:()=>e,optional:()=>_A,object:()=>T_,number:()=>fc,nullish:()=>r_,nullable:()=>qA,null:()=>dc,normalize:()=>d,nonpositive:()=>dx,nonoptional:()=>zW,nonnegative:()=>ax,never:()=>Lx,negative:()=>ex,nativeEnum:()=>l_,nanoid:()=>W_,nan:()=>e_,multipleOf:()=>D,minSize:()=>N,minLength:()=>B,mime:()=>p,maxSize:()=>V,maxLength:()=>R,map:()=>o_,lte:()=>G,lt:()=>z,lowercase:()=>u,looseObject:()=>g_,locales:()=>oW,literal:()=>f_,length:()=>I,lazy:()=>CW,ksuid:()=>Y_,keyof:()=>U_,jwt:()=>K_,json:()=>$q,iso:()=>$A,ipv6:()=>J_,ipv4:()=>O_,intersection:()=>$W,int64:()=>R_,int32:()=>S_,int:()=>hA,instanceof:()=>Aq,includes:()=>f,httpUrl:()=>$_,hostname:()=>P_,hex:()=>L_,hash:()=>E_,guid:()=>nW,gte:()=>X,gt:()=>K,globalRegistry:()=>P,getErrorMap:()=>qq,function:()=>i_,formatError:()=>y,float64:()=>N_,float32:()=>D_,flattenError:()=>g,file:()=>m_,enum:()=>Sx,endsWith:()=>r,encodeAsync:()=>EA,encode:()=>PA,emoji:()=>c_,email:()=>aW,e164:()=>z_,discriminatedUnion:()=>y_,decodeAsync:()=>DA,decode:()=>LA,date:()=>h_,custom:()=>s_,cuid2:()=>q_,cuid:()=>__,core:()=>w,config:()=>E,coerce:()=>Fx,codec:()=>d_,clone:()=>b,cidrv6:()=>G_,cidrv4:()=>X_,check:()=>t_,catch:()=>PW,boolean:()=>mc,bigint:()=>V_,base64url:()=>w_,base64:()=>M_,array:()=>JA,any:()=>F_,_function:()=>i_,_default:()=>GW,_ZodString:()=>$x,ZodXID:()=>Yx,ZodVoid:()=>tc,ZodUnknown:()=>nc,ZodUnion:()=>Ex,ZodUndefined:()=>pc,ZodUUID:()=>M,ZodURL:()=>YA,ZodULID:()=>Qx,ZodType:()=>H,ZodTuple:()=>cW,ZodTransform:()=>OW,ZodTemplateLiteral:()=>NW,ZodSymbol:()=>rc,ZodSuccess:()=>KW,ZodStringFormat:()=>Q,ZodString:()=>j,ZodSet:()=>HW,ZodRecord:()=>Nx,ZodRealError:()=>O,ZodReadonly:()=>EW,ZodPromise:()=>VW,ZodPrefault:()=>MW,ZodPipe:()=>Ix,ZodOptional:()=>Vx,ZodObject:()=>XA,ZodNumberFormat:()=>C,ZodNumber:()=>U,ZodNullable:()=>JW,ZodNull:()=>ec,ZodNonOptional:()=>Rx,ZodNever:()=>ic,ZodNanoID:()=>_x,ZodNaN:()=>LW,ZodMap:()=>qW,ZodLiteral:()=>QW,ZodLazy:()=>SW,ZodKSUID:()=>Ox,ZodJWT:()=>Bx,ZodIssueCode:()=>Wq,ZodIntersection:()=>xW,ZodISOTime:()=>AA,ZodISODuration:()=>xA,ZodISODateTime:()=>t,ZodISODate:()=>s,ZodIPv6:()=>Xx,ZodIPv4:()=>Jx,ZodGUID:()=>WA,ZodFunction:()=>RW,ZodFirstPartyTypeKind:()=>bx,ZodFile:()=>YW,ZodError:()=>pW,ZodEnum:()=>k,ZodEmoji:()=>Wx,ZodEmail:()=>cx,ZodE164:()=>Kx,ZodDiscriminatedUnion:()=>AW,ZodDefault:()=>XW,ZodDate:()=>OA,ZodCustomStringFormat:()=>h,ZodCustom:()=>GA,ZodCodec:()=>kx,ZodCatch:()=>BW,ZodCUID2:()=>Hx,ZodCUID:()=>qx,ZodCIDRv6:()=>Mx,ZodCIDRv4:()=>Gx,ZodBoolean:()=>T,ZodBigIntFormat:()=>Px,ZodBigInt:()=>v,ZodBase64URL:()=>zx,ZodBase64:()=>wx,ZodArray:()=>sc,ZodAny:()=>ac,TimePrecision:()=>mW,NEVER:()=>TW,$output:()=>uW,$input:()=>lW,$brand:()=>vW});var $A={};RA($A,{time:()=>bA,duration:()=>FA,datetime:()=>IA,date:()=>kA,ZodISOTime:()=>AA,ZodISODuration:()=>xA,ZodISODateTime:()=>t,ZodISODate:()=>s});var t=W("ZodISODateTime",(A,x)=>{ix.init(A,x),Q.init(A,x)});function IA(A){return x$(t,A)}var s=W("ZodISODate",(A,x)=>{tx.init(A,x),Q.init(A,x)});function kA(A){return $$(s,A)}var AA=W("ZodISOTime",(A,x)=>{sx.init(A,x),Q.init(A,x)});function bA(A){return c$(AA,A)}var xA=W("ZodISODuration",(A,x)=>{A$.init(A,x),Q.init(A,x)});function FA(A){return W$(xA,A)}var H=W("ZodType",(A,x)=>{return UA.init(A,x),A.def=x,A.type=x.type,Object.defineProperty(A,"_def",{value:x}),A.check=(...$)=>{return A.clone({...x,checks:[...x.checks??[],...$.map((c)=>typeof c==="function"?{_zod:{check:c,def:{check:"custom"},onattach:[]}}:c)]})},A.clone=($,c)=>b(A,$,c),A.brand=()=>A,A.register=($,c)=>{return $.add(A,c),A},A.parse=($,c)=>wA(A,$,c,{callee:A.parse}),A.safeParse=($,c)=>KA(A,$,c),A.parseAsync=async($,c)=>zA(A,$,c,{callee:A.parseAsync}),A.safeParseAsync=async($,c)=>BA(A,$,c),A.spa=A.safeParseAsync,A.encode=($,c)=>PA(A,$,c),A.decode=($,c)=>LA(A,$,c),A.encodeAsync=async($,c)=>EA(A,$,c),A.decodeAsync=async($,c)=>DA(A,$,c),A.safeEncode=($,c)=>NA(A,$,c),A.safeDecode=($,c)=>SA(A,$,c),A.safeEncodeAsync=async($,c)=>CA(A,$,c),A.safeDecodeAsync=async($,c)=>VA(A,$,c),A.refine=($,c)=>A.check(IW($,c)),A.superRefine=($)=>A.check(kW($)),A.overwrite=($)=>A.check(e($)),A.optional=()=>_A(A),A.nullable=()=>qA(A),A.nullish=()=>_A(qA(A)),A.nonoptional=($)=>zW(A,$),A.array=()=>JA(A),A.or=($)=>Dx([A,$]),A.and=($)=>$W(A,$),A.transform=($)=>HA(A,Cx($)),A.default=($)=>GW(A,$),A.prefault=($)=>wW(A,$),A.catch=($)=>PW(A,$),A.pipe=($)=>HA(A,$),A.readonly=()=>DW(A),A.describe=($)=>{let c=A.clone();return P.add(c,{description:$}),c},Object.defineProperty(A,"description",{get(){return P.get(A)?.description},configurable:!0}),A.meta=(...$)=>{if($.length===0)return P.get(A);let c=A.clone();return P.add(c,$[0]),c},A.isOptional=()=>A.safeParse(void 0).success,A.isNullable=()=>A.safeParse(null).success,A}),$x=W("_ZodString",(A,x)=>{TA.init(A,x),H.init(A,x);let $=A._zod.bag;A.format=$.format??null,A.minLength=$.minimum??null,A.maxLength=$.maximum??null,A.regex=(...c)=>A.check(o(...c)),A.includes=(...c)=>A.check(f(...c)),A.startsWith=(...c)=>A.check(m(...c)),A.endsWith=(...c)=>A.check(r(...c)),A.min=(...c)=>A.check(B(...c)),A.max=(...c)=>A.check(R(...c)),A.length=(...c)=>A.check(I(...c)),A.nonempty=(...c)=>A.check(B(1,...c)),A.lowercase=(c)=>A.check(u(c)),A.uppercase=(c)=>A.check(l(c)),A.trim=()=>A.check(a()),A.normalize=(...c)=>A.check(d(...c)),A.toLowerCase=()=>A.check(n()),A.toUpperCase=()=>A.check(i())}),j=W("ZodString",(A,x)=>{TA.init(A,x),$x.init(A,x),A.email=($)=>A.check(vA(cx,$)),A.url=($)=>A.check(QA(YA,$)),A.jwt=($)=>A.check(xx(Bx,$)),A.emoji=($)=>A.check(uA(Wx,$)),A.guid=($)=>A.check(cA(WA,$)),A.uuid=($)=>A.check(gA(M,$)),A.uuidv4=($)=>A.check(yA(M,$)),A.uuidv6=($)=>A.check(ZA(M,$)),A.uuidv7=($)=>A.check(oA(M,$)),A.nanoid=($)=>A.check(lA(_x,$)),A.guid=($)=>A.check(cA(WA,$)),A.cuid=($)=>A.check(fA(qx,$)),A.cuid2=($)=>A.check(mA(Hx,$)),A.ulid=($)=>A.check(rA(Qx,$)),A.base64=($)=>A.check(tA(wx,$)),A.base64url=($)=>A.check(sA(zx,$)),A.xid=($)=>A.check(pA(Yx,$)),A.ksuid=($)=>A.check(eA(Ox,$)),A.ipv4=($)=>A.check(dA(Jx,$)),A.ipv6=($)=>A.check(aA(Xx,$)),A.cidrv4=($)=>A.check(nA(Gx,$)),A.cidrv6=($)=>A.check(iA(Mx,$)),A.e164=($)=>A.check(Ax(Kx,$)),A.datetime=($)=>A.check(IA($)),A.date=($)=>A.check(kA($)),A.time=($)=>A.check(bA($)),A.duration=($)=>A.check(FA($))});function jA(A){return Kc(j,A)}var Q=W("ZodStringFormat",(A,x)=>{Q$.init(A,x),$x.init(A,x)}),cx=W("ZodEmail",(A,x)=>{J$.init(A,x),Q.init(A,x)});function aW(A){return vA(cx,A)}var WA=W("ZodGUID",(A,x)=>{Y$.init(A,x),Q.init(A,x)});function nW(A){return cA(WA,A)}var M=W("ZodUUID",(A,x)=>{O$.init(A,x),Q.init(A,x)});function iW(A){return gA(M,A)}function tW(A){return yA(M,A)}function sW(A){return ZA(M,A)}function A_(A){return oA(M,A)}var YA=W("ZodURL",(A,x)=>{X$.init(A,x),Q.init(A,x)});function x_(A){return QA(YA,A)}function $_(A){return QA(YA,{protocol:/^https?$/,hostname:L.domain,...q.normalizeParams(A)})}var Wx=W("ZodEmoji",(A,x)=>{G$.init(A,x),Q.init(A,x)});function c_(A){return uA(Wx,A)}var _x=W("ZodNanoID",(A,x)=>{M$.init(A,x),Q.init(A,x)});function W_(A){return lA(_x,A)}var qx=W("ZodCUID",(A,x)=>{w$.init(A,x),Q.init(A,x)});function __(A){return fA(qx,A)}var Hx=W("ZodCUID2",(A,x)=>{z$.init(A,x),Q.init(A,x)});function q_(A){return mA(Hx,A)}var Qx=W("ZodULID",(A,x)=>{K$.init(A,x),Q.init(A,x)});function H_(A){return rA(Qx,A)}var Yx=W("ZodXID",(A,x)=>{B$.init(A,x),Q.init(A,x)});function Q_(A){return pA(Yx,A)}var Ox=W("ZodKSUID",(A,x)=>{P$.init(A,x),Q.init(A,x)});function Y_(A){return eA(Ox,A)}var Jx=W("ZodIPv4",(A,x)=>{L$.init(A,x),Q.init(A,x)});function O_(A){return dA(Jx,A)}var Xx=W("ZodIPv6",(A,x)=>{E$.init(A,x),Q.init(A,x)});function J_(A){return aA(Xx,A)}var Gx=W("ZodCIDRv4",(A,x)=>{D$.init(A,x),Q.init(A,x)});function X_(A){return nA(Gx,A)}var Mx=W("ZodCIDRv6",(A,x)=>{N$.init(A,x),Q.init(A,x)});function G_(A){return iA(Mx,A)}var wx=W("ZodBase64",(A,x)=>{S$.init(A,x),Q.init(A,x)});function M_(A){return tA(wx,A)}var zx=W("ZodBase64URL",(A,x)=>{C$.init(A,x),Q.init(A,x)});function w_(A){return sA(zx,A)}var Kx=W("ZodE164",(A,x)=>{V$.init(A,x),Q.init(A,x)});function z_(A){return Ax(Kx,A)}var Bx=W("ZodJWT",(A,x)=>{R$.init(A,x),Q.init(A,x)});function K_(A){return xx(Bx,A)}var h=W("ZodCustomStringFormat",(A,x)=>{I$.init(A,x),Q.init(A,x)});function B_(A,x,$={}){return F(h,A,x,$)}function P_(A){return F(h,"hostname",L.hostname,A)}function L_(A){return F(h,"hex",L.hex,A)}function E_(A,x){let $=x?.enc??"hex",c=`${A}_${$}`,_=L[c];if(!_)throw Error(`Unrecognized hash format: ${c}`);return F(h,c,_,x)}var U=W("ZodNumber",(A,x)=>{k$.init(A,x),H.init(A,x),A.gt=(c,_)=>A.check(K(c,_)),A.gte=(c,_)=>A.check(X(c,_)),A.min=(c,_)=>A.check(X(c,_)),A.lt=(c,_)=>A.check(z(c,_)),A.lte=(c,_)=>A.check(G(c,_)),A.max=(c,_)=>A.check(G(c,_)),A.int=(c)=>A.check(hA(c)),A.safe=(c)=>A.check(hA(c)),A.positive=(c)=>A.check(K(0,c)),A.nonnegative=(c)=>A.check(X(0,c)),A.negative=(c)=>A.check(z(0,c)),A.nonpositive=(c)=>A.check(G(0,c)),A.multipleOf=(c,_)=>A.check(D(c,_)),A.step=(c,_)=>A.check(D(c,_)),A.finite=()=>A;let $=A._zod.bag;A.minValue=Math.max($.minimum??Number.NEGATIVE_INFINITY,$.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,A.maxValue=Math.min($.maximum??Number.POSITIVE_INFINITY,$.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,A.isInt=($.format??"").includes("int")||Number.isSafeInteger($.multipleOf??0.5),A.isFinite=!0,A.format=$.format??null});function fc(A){return Bc(U,A)}var C=W("ZodNumberFormat",(A,x)=>{b$.init(A,x),U.init(A,x)});function hA(A){return Pc(C,A)}function D_(A){return Lc(C,A)}function N_(A){return Ec(C,A)}function S_(A){return Dc(C,A)}function C_(A){return Nc(C,A)}var T=W("ZodBoolean",(A,x)=>{F$.init(A,x),H.init(A,x)});function mc(A){return Sc(T,A)}var v=W("ZodBigInt",(A,x)=>{j$.init(A,x),H.init(A,x),A.gte=(c,_)=>A.check(X(c,_)),A.min=(c,_)=>A.check(X(c,_)),A.gt=(c,_)=>A.check(K(c,_)),A.gte=(c,_)=>A.check(X(c,_)),A.min=(c,_)=>A.check(X(c,_)),A.lt=(c,_)=>A.check(z(c,_)),A.lte=(c,_)=>A.check(G(c,_)),A.max=(c,_)=>A.check(G(c,_)),A.positive=(c)=>A.check(K(BigInt(0),c)),A.negative=(c)=>A.check(z(BigInt(0),c)),A.nonpositive=(c)=>A.check(G(BigInt(0),c)),A.nonnegative=(c)=>A.check(X(BigInt(0),c)),A.multipleOf=(c,_)=>A.check(D(c,_));let $=A._zod.bag;A.minValue=$.minimum??null,A.maxValue=$.maximum??null,A.format=$.format??null});function V_(A){return Cc(v,A)}var Px=W("ZodBigIntFormat",(A,x)=>{h$.init(A,x),v.init(A,x)});function R_(A){return Vc(Px,A)}function I_(A){return Rc(Px,A)}var rc=W("ZodSymbol",(A,x)=>{U$.init(A,x),H.init(A,x)});function k_(A){return Ic(rc,A)}var pc=W("ZodUndefined",(A,x)=>{T$.init(A,x),H.init(A,x)});function b_(A){return kc(pc,A)}var ec=W("ZodNull",(A,x)=>{v$.init(A,x),H.init(A,x)});function dc(A){return bc(ec,A)}var ac=W("ZodAny",(A,x)=>{g$.init(A,x),H.init(A,x)});function F_(){return Fc(ac)}var nc=W("ZodUnknown",(A,x)=>{y$.init(A,x),H.init(A,x)});function S(){return jc(nc)}var ic=W("ZodNever",(A,x)=>{Z$.init(A,x),H.init(A,x)});function Lx(A){return hc(ic,A)}var tc=W("ZodVoid",(A,x)=>{o$.init(A,x),H.init(A,x)});function j_(A){return Uc(tc,A)}var OA=W("ZodDate",(A,x)=>{u$.init(A,x),H.init(A,x),A.min=(c,_)=>A.check(X(c,_)),A.max=(c,_)=>A.check(G(c,_));let $=A._zod.bag;A.minDate=$.minimum?new Date($.minimum):null,A.maxDate=$.maximum?new Date($.maximum):null});function h_(A){return Tc(OA,A)}var sc=W("ZodArray",(A,x)=>{l$.init(A,x),H.init(A,x),A.element=x.element,A.min=($,c)=>A.check(B($,c)),A.nonempty=($)=>A.check(B(1,$)),A.max=($,c)=>A.check(R($,c)),A.length=($,c)=>A.check(I($,c)),A.unwrap=()=>A.element});function JA(A,x){return gc(sc,A,x)}function U_(A){let x=A._zod.def.shape;return Sx(Object.keys(x))}var XA=W("ZodObject",(A,x)=>{f$.init(A,x),H.init(A,x),q.defineLazy(A,"shape",()=>x.shape),A.keyof=()=>Sx(Object.keys(A._zod.def.shape)),A.catchall=($)=>A.clone({...A._zod.def,catchall:$}),A.passthrough=()=>A.clone({...A._zod.def,catchall:S()}),A.loose=()=>A.clone({...A._zod.def,catchall:S()}),A.strict=()=>A.clone({...A._zod.def,catchall:Lx()}),A.strip=()=>A.clone({...A._zod.def,catchall:void 0}),A.extend=($)=>{return q.extend(A,$)},A.safeExtend=($)=>{return q.safeExtend(A,$)},A.merge=($)=>q.merge(A,$),A.pick=($)=>q.pick(A,$),A.omit=($)=>q.omit(A,$),A.partial=(...$)=>q.partial(Vx,A,$[0]),A.required=(...$)=>q.required(Rx,A,$[0])});function T_(A,x){let $={type:"object",get shape(){return q.assignProp(this,"shape",A?q.objectClone(A):{}),this.shape},...q.normalizeParams(x)};return new XA($)}function v_(A,x){return new XA({type:"object",get shape(){return q.assignProp(this,"shape",q.objectClone(A)),this.shape},catchall:Lx(),...q.normalizeParams(x)})}function g_(A,x){return new XA({type:"object",get shape(){return q.assignProp(this,"shape",q.objectClone(A)),this.shape},catchall:S(),...q.normalizeParams(x)})}var Ex=W("ZodUnion",(A,x)=>{m$.init(A,x),H.init(A,x),A.options=x.options});function Dx(A,x){return new Ex({type:"union",options:A,...q.normalizeParams(x)})}var AW=W("ZodDiscriminatedUnion",(A,x)=>{Ex.init(A,x),r$.init(A,x)});function y_(A,x,$){return new AW({type:"union",options:x,discriminator:A,...q.normalizeParams($)})}var xW=W("ZodIntersection",(A,x)=>{p$.init(A,x),H.init(A,x)});function $W(A,x){return new xW({type:"intersection",left:A,right:x})}var cW=W("ZodTuple",(A,x)=>{e$.init(A,x),H.init(A,x),A.rest=($)=>A.clone({...A._zod.def,rest:$})});function WW(A,x,$){let c=x instanceof UA,_=c?$:x;return new cW({type:"tuple",items:A,rest:c?x:null,...q.normalizeParams(_)})}var Nx=W("ZodRecord",(A,x)=>{d$.init(A,x),H.init(A,x),A.keyType=x.keyType,A.valueType=x.valueType});function _W(A,x,$){return new Nx({type:"record",keyType:A,valueType:x,...q.normalizeParams($)})}function Z_(A,x,$){let c=b(A);return c._zod.values=void 0,new Nx({type:"record",keyType:c,valueType:x,...q.normalizeParams($)})}var qW=W("ZodMap",(A,x)=>{a$.init(A,x),H.init(A,x),A.keyType=x.keyType,A.valueType=x.valueType});function o_(A,x,$){return new qW({type:"map",keyType:A,valueType:x,...q.normalizeParams($)})}var HW=W("ZodSet",(A,x)=>{n$.init(A,x),H.init(A,x),A.min=(...$)=>A.check(N(...$)),A.nonempty=($)=>A.check(N(1,$)),A.max=(...$)=>A.check(V(...$)),A.size=(...$)=>A.check(Z(...$))});function u_(A,x){return new HW({type:"set",valueType:A,...q.normalizeParams(x)})}var k=W("ZodEnum",(A,x)=>{i$.init(A,x),H.init(A,x),A.enum=x.entries,A.options=Object.values(x.entries);let $=new Set(Object.keys(x.entries));A.extract=(c,_)=>{let J={};for(let Y of c)if($.has(Y))J[Y]=x.entries[Y];else throw Error(`Key ${Y} not found in enum`);return new k({...x,checks:[],...q.normalizeParams(_),entries:J})},A.exclude=(c,_)=>{let J={...x.entries};for(let Y of c)if($.has(Y))delete J[Y];else throw Error(`Key ${Y} not found in enum`);return new k({...x,checks:[],...q.normalizeParams(_),entries:J})}});function Sx(A,x){let $=Array.isArray(A)?Object.fromEntries(A.map((c)=>[c,c])):A;return new k({type:"enum",entries:$,...q.normalizeParams(x)})}function l_(A,x){return new k({type:"enum",entries:A,...q.normalizeParams(x)})}var QW=W("ZodLiteral",(A,x)=>{t$.init(A,x),H.init(A,x),A.values=new Set(x.values),Object.defineProperty(A,"value",{get(){if(x.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return x.values[0]}})});function f_(A,x){return new QW({type:"literal",values:Array.isArray(A)?A:[A],...q.normalizeParams(x)})}var YW=W("ZodFile",(A,x)=>{s$.init(A,x),H.init(A,x),A.min=($,c)=>A.check(N($,c)),A.max=($,c)=>A.check(V($,c)),A.mime=($,c)=>A.check(p(Array.isArray($)?$:[$],c))});function m_(A){return yc(YW,A)}var OW=W("ZodTransform",(A,x)=>{Ac.init(A,x),H.init(A,x),A._zod.parse=($,c)=>{if(c.direction==="backward")throw new q$(A.constructor.name);$.addIssue=(J)=>{if(typeof J==="string")$.issues.push(q.issue(J,$.value,x));else{let Y=J;if(Y.fatal)Y.continue=!1;Y.code??(Y.code="custom"),Y.input??(Y.input=$.value),Y.inst??(Y.inst=A),$.issues.push(q.issue(Y))}};let _=x.transform($.value,$);if(_ instanceof Promise)return _.then((J)=>{return $.value=J,$});return $.value=_,$}});function Cx(A){return new OW({type:"transform",transform:A})}var Vx=W("ZodOptional",(A,x)=>{xc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function _A(A){return new Vx({type:"optional",innerType:A})}var JW=W("ZodNullable",(A,x)=>{$c.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function qA(A){return new JW({type:"nullable",innerType:A})}function r_(A){return _A(qA(A))}var XW=W("ZodDefault",(A,x)=>{cc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType,A.removeDefault=A.unwrap});function GW(A,x){return new XW({type:"default",innerType:A,get defaultValue(){return typeof x==="function"?x():q.shallowClone(x)}})}var MW=W("ZodPrefault",(A,x)=>{Wc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function wW(A,x){return new MW({type:"prefault",innerType:A,get defaultValue(){return typeof x==="function"?x():q.shallowClone(x)}})}var Rx=W("ZodNonOptional",(A,x)=>{_c.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function zW(A,x){return new Rx({type:"nonoptional",innerType:A,...q.normalizeParams(x)})}var KW=W("ZodSuccess",(A,x)=>{qc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function p_(A){return new KW({type:"success",innerType:A})}var BW=W("ZodCatch",(A,x)=>{Hc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType,A.removeCatch=A.unwrap});function PW(A,x){return new BW({type:"catch",innerType:A,catchValue:typeof x==="function"?x:()=>x})}var LW=W("ZodNaN",(A,x)=>{Qc.init(A,x),H.init(A,x)});function e_(A){return vc(LW,A)}var Ix=W("ZodPipe",(A,x)=>{Yc.init(A,x),H.init(A,x),A.in=x.in,A.out=x.out});function HA(A,x){return new Ix({type:"pipe",in:A,out:x})}var kx=W("ZodCodec",(A,x)=>{Ix.init(A,x),Oc.init(A,x)});function d_(A,x,$){return new kx({type:"pipe",in:A,out:x,transform:$.decode,reverseTransform:$.encode})}var EW=W("ZodReadonly",(A,x)=>{Jc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function DW(A){return new EW({type:"readonly",innerType:A})}var NW=W("ZodTemplateLiteral",(A,x)=>{Xc.init(A,x),H.init(A,x)});function a_(A,x){return new NW({type:"template_literal",parts:A,...q.normalizeParams(x)})}var SW=W("ZodLazy",(A,x)=>{wc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.getter()});function CW(A){return new SW({type:"lazy",getter:A})}var VW=W("ZodPromise",(A,x)=>{Mc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function n_(A){return new VW({type:"promise",innerType:A})}var RW=W("ZodFunction",(A,x)=>{Gc.init(A,x),H.init(A,x)});function i_(A){return new RW({type:"function",input:Array.isArray(A?.input)?WW(A?.input):A?.input??JA(S()),output:A?.output??S()})}var GA=W("ZodCustom",(A,x)=>{zc.init(A,x),H.init(A,x)});function t_(A){let x=new H$({check:"custom"});return x._zod.check=A,x}function s_(A,x){return Zc(GA,A??(()=>!0),x)}function IW(A,x={}){return oc(GA,A,x)}function kW(A){return uc(A)}function Aq(A,x={error:`Input not instance of ${A.name}`}){let $=new GA({type:"custom",check:"custom",fn:(c)=>c instanceof A,abort:!0,...q.normalizeParams(x)});return $._zod.bag.Class=A,$}var xq=(...A)=>lc({Codec:kx,Boolean:T,String:j},...A);function $q(A){let x=CW(()=>{return Dx([jA(A),fc(),mc(),dc(),JA(x),_W(jA(),x)])});return x}function cq(A,x){return HA(Cx(A),x)}var Wq={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function _q(A){E({customError:A})}function qq(){return E().customError}var bx;(function(A){})(bx||(bx={}));var Fx={};RA(Fx,{string:()=>Hq,number:()=>Qq,date:()=>Jq,boolean:()=>Yq,bigint:()=>Oq});function Hq(A){return bW(j,A)}function Qq(A){return FW(U,A)}function Yq(A){return jW(T,A)}function Oq(A){return hW(v,A)}function Jq(A){return UW(OA,A)}E(ZW());
|
|
3
|
-
export{$A as
|
|
2
|
+
import{$v as mx,$w as C$,$x as P,$y as G,Av as jx,Ax as n$,Ay as $$,Az as gc,Bx as i$,By as c$,Cv as g,Cw as UA,Cx as t$,Cy as W$,Dv as y,Dw as TA,Dx as s$,Dy as Bc,Ev as gW,Ew as Q$,Ex as Ac,Ey as FW,Fw as Y$,Fx as xc,Fy as Pc,Gv as yW,Gw as O$,Gx as $c,Gy as Lc,Hv as Ux,Hw as J$,Hx as cc,Hy as Ec,Iw as X$,Ix as Wc,Iy as Dc,Jv as Tx,Jw as G$,Jx as _c,Jy as Nc,Kw as M$,Kx as qc,Ky as Sc,Lv as vx,Lw as w$,Lx as Hc,Ly as jW,Lz as yc,Mw as z$,Mx as Qc,My as Cc,Nv as gx,Nw as K$,Nx as Yc,Ny as hW,Ow as B$,Ox as Oc,Oy as Vc,Pv as yx,Pw as P$,Px as Jc,Py as Rc,Qw as ix,Qx as Xc,Qy as Ic,Rv as Zx,Rw as tx,Rx as Gc,Ry as kc,Sw as sx,Sx as Mc,Sy as bc,Tv as ox,Tw as A$,Tx as wc,Ty as Fc,Uw as L$,Ux as zc,Uy as jc,Vv as ux,Vw as E$,Vx as ZW,Vy as hc,Ww as D$,Wx as oW,Wy as Uc,Xv as lx,Xw as N$,Xx as uW,Xy as Tc,Yx as lW,Yy as UW,Yz as Zc,Zv as fx,Zw as S$,Zy as vc,Zz as oc,_x as fW,_y as z,_z as uc,aA as lc,ax as V$,ay as Kc,az as K,bA as F,bw as rx,by as bW,bz as X,cx as R$,cy as vA,cz as px,dA as rW,dw as L,dx as I$,dy as cA,dz as ex,ew as H$,ex as k$,ey as gA,ez as dx,fA as w,fx as b$,fy as yA,fz as ax,gx as F$,gy as ZA,gz as D,hx as j$,hy as oA,hz as V,ix as h$,iy as QA,iz as N,jx as U$,jy as uA,jz as Z,kx as T$,ky as lA,kz as R,lx as v$,ly as fA,lz as B,mx as g$,my as mA,mz as I,nx as y$,ny as rA,nz as o,ox as Z$,oy as pA,oz as u,px as o$,py as eA,pz as l,qv as TW,qx as u$,qy as dA,qz as f,rv as W,rx as l$,ry as aA,rz as m,sv as vW,sy as nA,sz as r,tx as f$,ty as iA,tz as nx,uv as q$,ux as m$,uy as tA,uz as p,vx as r$,vy as sA,vz as e,wv as E,wx as p$,wy as Ax,wz as d,xv as MA,xx as e$,xy as xx,xz as a,yv as b,yx as d$,yy as mW,yz as n,zv as q,zx as a$,zy as x$,zz as i}from"./chunk-mpygdb5a.js";import{aQ as RA}from"./chunk-3k2b05fv.js";var hx=(A,x)=>{jx.init(A,x),A.name="ZodError",Object.defineProperties(A,{format:{value:($)=>y(A,$)},flatten:{value:($)=>g(A,$)},addIssue:{value:($)=>{A.issues.push($),A.message=JSON.stringify(A.issues,MA,2)}},addIssues:{value:($)=>{A.issues.push(...$),A.message=JSON.stringify(A.issues,MA,2)}},isEmpty:{get(){return A.issues.length===0}}})},pW=W("ZodError",hx),O=W("ZodError",hx,{Parent:Error});var wA=Ux(O),zA=Tx(O),KA=vx(O),BA=gx(O),PA=yx(O),LA=Zx(O),EA=ox(O),DA=ux(O),NA=lx(O),SA=fx(O),CA=mx(O),VA=rx(O);var Xq={};RA(Xq,{xid:()=>Q_,void:()=>j_,uuidv7:()=>A_,uuidv6:()=>sW,uuidv4:()=>tW,uuid:()=>iW,util:()=>q,url:()=>x_,uppercase:()=>l,unknown:()=>S,union:()=>Dx,undefined:()=>b_,ulid:()=>H_,uint64:()=>I_,uint32:()=>C_,tuple:()=>WW,trim:()=>a,treeifyError:()=>gW,transform:()=>Cx,toUpperCase:()=>i,toLowerCase:()=>n,toJSONSchema:()=>rW,templateLiteral:()=>a_,symbol:()=>k_,superRefine:()=>kW,success:()=>p_,stringbool:()=>xq,stringFormat:()=>B_,string:()=>jA,strictObject:()=>v_,startsWith:()=>m,size:()=>Z,setErrorMap:()=>_q,set:()=>u_,safeParseAsync:()=>BA,safeParse:()=>KA,safeEncodeAsync:()=>CA,safeEncode:()=>NA,safeDecodeAsync:()=>VA,safeDecode:()=>SA,registry:()=>fW,regexes:()=>L,regex:()=>o,refine:()=>IW,record:()=>_W,readonly:()=>DW,property:()=>nx,promise:()=>n_,prettifyError:()=>yW,preprocess:()=>cq,prefault:()=>wW,positive:()=>px,pipe:()=>HA,partialRecord:()=>Z_,parseAsync:()=>zA,parse:()=>wA,overwrite:()=>e,optional:()=>_A,object:()=>T_,number:()=>fc,nullish:()=>r_,nullable:()=>qA,null:()=>dc,normalize:()=>d,nonpositive:()=>dx,nonoptional:()=>zW,nonnegative:()=>ax,never:()=>Lx,negative:()=>ex,nativeEnum:()=>l_,nanoid:()=>W_,nan:()=>e_,multipleOf:()=>D,minSize:()=>N,minLength:()=>B,mime:()=>p,maxSize:()=>V,maxLength:()=>R,map:()=>o_,lte:()=>G,lt:()=>z,lowercase:()=>u,looseObject:()=>g_,locales:()=>oW,literal:()=>f_,length:()=>I,lazy:()=>CW,ksuid:()=>Y_,keyof:()=>U_,jwt:()=>K_,json:()=>$q,iso:()=>$A,ipv6:()=>J_,ipv4:()=>O_,intersection:()=>$W,int64:()=>R_,int32:()=>S_,int:()=>hA,instanceof:()=>Aq,includes:()=>f,httpUrl:()=>$_,hostname:()=>P_,hex:()=>L_,hash:()=>E_,guid:()=>nW,gte:()=>X,gt:()=>K,globalRegistry:()=>P,getErrorMap:()=>qq,function:()=>i_,formatError:()=>y,float64:()=>N_,float32:()=>D_,flattenError:()=>g,file:()=>m_,enum:()=>Sx,endsWith:()=>r,encodeAsync:()=>EA,encode:()=>PA,emoji:()=>c_,email:()=>aW,e164:()=>z_,discriminatedUnion:()=>y_,decodeAsync:()=>DA,decode:()=>LA,date:()=>h_,custom:()=>s_,cuid2:()=>q_,cuid:()=>__,core:()=>w,config:()=>E,coerce:()=>Fx,codec:()=>d_,clone:()=>b,cidrv6:()=>G_,cidrv4:()=>X_,check:()=>t_,catch:()=>PW,boolean:()=>mc,bigint:()=>V_,base64url:()=>w_,base64:()=>M_,array:()=>JA,any:()=>F_,_function:()=>i_,_default:()=>GW,_ZodString:()=>$x,ZodXID:()=>Yx,ZodVoid:()=>tc,ZodUnknown:()=>nc,ZodUnion:()=>Ex,ZodUndefined:()=>pc,ZodUUID:()=>M,ZodURL:()=>YA,ZodULID:()=>Qx,ZodType:()=>H,ZodTuple:()=>cW,ZodTransform:()=>OW,ZodTemplateLiteral:()=>NW,ZodSymbol:()=>rc,ZodSuccess:()=>KW,ZodStringFormat:()=>Q,ZodString:()=>j,ZodSet:()=>HW,ZodRecord:()=>Nx,ZodRealError:()=>O,ZodReadonly:()=>EW,ZodPromise:()=>VW,ZodPrefault:()=>MW,ZodPipe:()=>Ix,ZodOptional:()=>Vx,ZodObject:()=>XA,ZodNumberFormat:()=>C,ZodNumber:()=>U,ZodNullable:()=>JW,ZodNull:()=>ec,ZodNonOptional:()=>Rx,ZodNever:()=>ic,ZodNanoID:()=>_x,ZodNaN:()=>LW,ZodMap:()=>qW,ZodLiteral:()=>QW,ZodLazy:()=>SW,ZodKSUID:()=>Ox,ZodJWT:()=>Bx,ZodIssueCode:()=>Wq,ZodIntersection:()=>xW,ZodISOTime:()=>AA,ZodISODuration:()=>xA,ZodISODateTime:()=>t,ZodISODate:()=>s,ZodIPv6:()=>Xx,ZodIPv4:()=>Jx,ZodGUID:()=>WA,ZodFunction:()=>RW,ZodFirstPartyTypeKind:()=>bx,ZodFile:()=>YW,ZodError:()=>pW,ZodEnum:()=>k,ZodEmoji:()=>Wx,ZodEmail:()=>cx,ZodE164:()=>Kx,ZodDiscriminatedUnion:()=>AW,ZodDefault:()=>XW,ZodDate:()=>OA,ZodCustomStringFormat:()=>h,ZodCustom:()=>GA,ZodCodec:()=>kx,ZodCatch:()=>BW,ZodCUID2:()=>Hx,ZodCUID:()=>qx,ZodCIDRv6:()=>Mx,ZodCIDRv4:()=>Gx,ZodBoolean:()=>T,ZodBigIntFormat:()=>Px,ZodBigInt:()=>v,ZodBase64URL:()=>zx,ZodBase64:()=>wx,ZodArray:()=>sc,ZodAny:()=>ac,TimePrecision:()=>mW,NEVER:()=>TW,$output:()=>uW,$input:()=>lW,$brand:()=>vW});var $A={};RA($A,{time:()=>bA,duration:()=>FA,datetime:()=>IA,date:()=>kA,ZodISOTime:()=>AA,ZodISODuration:()=>xA,ZodISODateTime:()=>t,ZodISODate:()=>s});var t=W("ZodISODateTime",(A,x)=>{ix.init(A,x),Q.init(A,x)});function IA(A){return x$(t,A)}var s=W("ZodISODate",(A,x)=>{tx.init(A,x),Q.init(A,x)});function kA(A){return $$(s,A)}var AA=W("ZodISOTime",(A,x)=>{sx.init(A,x),Q.init(A,x)});function bA(A){return c$(AA,A)}var xA=W("ZodISODuration",(A,x)=>{A$.init(A,x),Q.init(A,x)});function FA(A){return W$(xA,A)}var H=W("ZodType",(A,x)=>{return UA.init(A,x),A.def=x,A.type=x.type,Object.defineProperty(A,"_def",{value:x}),A.check=(...$)=>{return A.clone({...x,checks:[...x.checks??[],...$.map((c)=>typeof c==="function"?{_zod:{check:c,def:{check:"custom"},onattach:[]}}:c)]})},A.clone=($,c)=>b(A,$,c),A.brand=()=>A,A.register=($,c)=>{return $.add(A,c),A},A.parse=($,c)=>wA(A,$,c,{callee:A.parse}),A.safeParse=($,c)=>KA(A,$,c),A.parseAsync=async($,c)=>zA(A,$,c,{callee:A.parseAsync}),A.safeParseAsync=async($,c)=>BA(A,$,c),A.spa=A.safeParseAsync,A.encode=($,c)=>PA(A,$,c),A.decode=($,c)=>LA(A,$,c),A.encodeAsync=async($,c)=>EA(A,$,c),A.decodeAsync=async($,c)=>DA(A,$,c),A.safeEncode=($,c)=>NA(A,$,c),A.safeDecode=($,c)=>SA(A,$,c),A.safeEncodeAsync=async($,c)=>CA(A,$,c),A.safeDecodeAsync=async($,c)=>VA(A,$,c),A.refine=($,c)=>A.check(IW($,c)),A.superRefine=($)=>A.check(kW($)),A.overwrite=($)=>A.check(e($)),A.optional=()=>_A(A),A.nullable=()=>qA(A),A.nullish=()=>_A(qA(A)),A.nonoptional=($)=>zW(A,$),A.array=()=>JA(A),A.or=($)=>Dx([A,$]),A.and=($)=>$W(A,$),A.transform=($)=>HA(A,Cx($)),A.default=($)=>GW(A,$),A.prefault=($)=>wW(A,$),A.catch=($)=>PW(A,$),A.pipe=($)=>HA(A,$),A.readonly=()=>DW(A),A.describe=($)=>{let c=A.clone();return P.add(c,{description:$}),c},Object.defineProperty(A,"description",{get(){return P.get(A)?.description},configurable:!0}),A.meta=(...$)=>{if($.length===0)return P.get(A);let c=A.clone();return P.add(c,$[0]),c},A.isOptional=()=>A.safeParse(void 0).success,A.isNullable=()=>A.safeParse(null).success,A}),$x=W("_ZodString",(A,x)=>{TA.init(A,x),H.init(A,x);let $=A._zod.bag;A.format=$.format??null,A.minLength=$.minimum??null,A.maxLength=$.maximum??null,A.regex=(...c)=>A.check(o(...c)),A.includes=(...c)=>A.check(f(...c)),A.startsWith=(...c)=>A.check(m(...c)),A.endsWith=(...c)=>A.check(r(...c)),A.min=(...c)=>A.check(B(...c)),A.max=(...c)=>A.check(R(...c)),A.length=(...c)=>A.check(I(...c)),A.nonempty=(...c)=>A.check(B(1,...c)),A.lowercase=(c)=>A.check(u(c)),A.uppercase=(c)=>A.check(l(c)),A.trim=()=>A.check(a()),A.normalize=(...c)=>A.check(d(...c)),A.toLowerCase=()=>A.check(n()),A.toUpperCase=()=>A.check(i())}),j=W("ZodString",(A,x)=>{TA.init(A,x),$x.init(A,x),A.email=($)=>A.check(vA(cx,$)),A.url=($)=>A.check(QA(YA,$)),A.jwt=($)=>A.check(xx(Bx,$)),A.emoji=($)=>A.check(uA(Wx,$)),A.guid=($)=>A.check(cA(WA,$)),A.uuid=($)=>A.check(gA(M,$)),A.uuidv4=($)=>A.check(yA(M,$)),A.uuidv6=($)=>A.check(ZA(M,$)),A.uuidv7=($)=>A.check(oA(M,$)),A.nanoid=($)=>A.check(lA(_x,$)),A.guid=($)=>A.check(cA(WA,$)),A.cuid=($)=>A.check(fA(qx,$)),A.cuid2=($)=>A.check(mA(Hx,$)),A.ulid=($)=>A.check(rA(Qx,$)),A.base64=($)=>A.check(tA(wx,$)),A.base64url=($)=>A.check(sA(zx,$)),A.xid=($)=>A.check(pA(Yx,$)),A.ksuid=($)=>A.check(eA(Ox,$)),A.ipv4=($)=>A.check(dA(Jx,$)),A.ipv6=($)=>A.check(aA(Xx,$)),A.cidrv4=($)=>A.check(nA(Gx,$)),A.cidrv6=($)=>A.check(iA(Mx,$)),A.e164=($)=>A.check(Ax(Kx,$)),A.datetime=($)=>A.check(IA($)),A.date=($)=>A.check(kA($)),A.time=($)=>A.check(bA($)),A.duration=($)=>A.check(FA($))});function jA(A){return Kc(j,A)}var Q=W("ZodStringFormat",(A,x)=>{Q$.init(A,x),$x.init(A,x)}),cx=W("ZodEmail",(A,x)=>{J$.init(A,x),Q.init(A,x)});function aW(A){return vA(cx,A)}var WA=W("ZodGUID",(A,x)=>{Y$.init(A,x),Q.init(A,x)});function nW(A){return cA(WA,A)}var M=W("ZodUUID",(A,x)=>{O$.init(A,x),Q.init(A,x)});function iW(A){return gA(M,A)}function tW(A){return yA(M,A)}function sW(A){return ZA(M,A)}function A_(A){return oA(M,A)}var YA=W("ZodURL",(A,x)=>{X$.init(A,x),Q.init(A,x)});function x_(A){return QA(YA,A)}function $_(A){return QA(YA,{protocol:/^https?$/,hostname:L.domain,...q.normalizeParams(A)})}var Wx=W("ZodEmoji",(A,x)=>{G$.init(A,x),Q.init(A,x)});function c_(A){return uA(Wx,A)}var _x=W("ZodNanoID",(A,x)=>{M$.init(A,x),Q.init(A,x)});function W_(A){return lA(_x,A)}var qx=W("ZodCUID",(A,x)=>{w$.init(A,x),Q.init(A,x)});function __(A){return fA(qx,A)}var Hx=W("ZodCUID2",(A,x)=>{z$.init(A,x),Q.init(A,x)});function q_(A){return mA(Hx,A)}var Qx=W("ZodULID",(A,x)=>{K$.init(A,x),Q.init(A,x)});function H_(A){return rA(Qx,A)}var Yx=W("ZodXID",(A,x)=>{B$.init(A,x),Q.init(A,x)});function Q_(A){return pA(Yx,A)}var Ox=W("ZodKSUID",(A,x)=>{P$.init(A,x),Q.init(A,x)});function Y_(A){return eA(Ox,A)}var Jx=W("ZodIPv4",(A,x)=>{L$.init(A,x),Q.init(A,x)});function O_(A){return dA(Jx,A)}var Xx=W("ZodIPv6",(A,x)=>{E$.init(A,x),Q.init(A,x)});function J_(A){return aA(Xx,A)}var Gx=W("ZodCIDRv4",(A,x)=>{D$.init(A,x),Q.init(A,x)});function X_(A){return nA(Gx,A)}var Mx=W("ZodCIDRv6",(A,x)=>{N$.init(A,x),Q.init(A,x)});function G_(A){return iA(Mx,A)}var wx=W("ZodBase64",(A,x)=>{S$.init(A,x),Q.init(A,x)});function M_(A){return tA(wx,A)}var zx=W("ZodBase64URL",(A,x)=>{C$.init(A,x),Q.init(A,x)});function w_(A){return sA(zx,A)}var Kx=W("ZodE164",(A,x)=>{V$.init(A,x),Q.init(A,x)});function z_(A){return Ax(Kx,A)}var Bx=W("ZodJWT",(A,x)=>{R$.init(A,x),Q.init(A,x)});function K_(A){return xx(Bx,A)}var h=W("ZodCustomStringFormat",(A,x)=>{I$.init(A,x),Q.init(A,x)});function B_(A,x,$={}){return F(h,A,x,$)}function P_(A){return F(h,"hostname",L.hostname,A)}function L_(A){return F(h,"hex",L.hex,A)}function E_(A,x){let $=x?.enc??"hex",c=`${A}_${$}`,_=L[c];if(!_)throw Error(`Unrecognized hash format: ${c}`);return F(h,c,_,x)}var U=W("ZodNumber",(A,x)=>{k$.init(A,x),H.init(A,x),A.gt=(c,_)=>A.check(K(c,_)),A.gte=(c,_)=>A.check(X(c,_)),A.min=(c,_)=>A.check(X(c,_)),A.lt=(c,_)=>A.check(z(c,_)),A.lte=(c,_)=>A.check(G(c,_)),A.max=(c,_)=>A.check(G(c,_)),A.int=(c)=>A.check(hA(c)),A.safe=(c)=>A.check(hA(c)),A.positive=(c)=>A.check(K(0,c)),A.nonnegative=(c)=>A.check(X(0,c)),A.negative=(c)=>A.check(z(0,c)),A.nonpositive=(c)=>A.check(G(0,c)),A.multipleOf=(c,_)=>A.check(D(c,_)),A.step=(c,_)=>A.check(D(c,_)),A.finite=()=>A;let $=A._zod.bag;A.minValue=Math.max($.minimum??Number.NEGATIVE_INFINITY,$.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,A.maxValue=Math.min($.maximum??Number.POSITIVE_INFINITY,$.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,A.isInt=($.format??"").includes("int")||Number.isSafeInteger($.multipleOf??0.5),A.isFinite=!0,A.format=$.format??null});function fc(A){return Bc(U,A)}var C=W("ZodNumberFormat",(A,x)=>{b$.init(A,x),U.init(A,x)});function hA(A){return Pc(C,A)}function D_(A){return Lc(C,A)}function N_(A){return Ec(C,A)}function S_(A){return Dc(C,A)}function C_(A){return Nc(C,A)}var T=W("ZodBoolean",(A,x)=>{F$.init(A,x),H.init(A,x)});function mc(A){return Sc(T,A)}var v=W("ZodBigInt",(A,x)=>{j$.init(A,x),H.init(A,x),A.gte=(c,_)=>A.check(X(c,_)),A.min=(c,_)=>A.check(X(c,_)),A.gt=(c,_)=>A.check(K(c,_)),A.gte=(c,_)=>A.check(X(c,_)),A.min=(c,_)=>A.check(X(c,_)),A.lt=(c,_)=>A.check(z(c,_)),A.lte=(c,_)=>A.check(G(c,_)),A.max=(c,_)=>A.check(G(c,_)),A.positive=(c)=>A.check(K(BigInt(0),c)),A.negative=(c)=>A.check(z(BigInt(0),c)),A.nonpositive=(c)=>A.check(G(BigInt(0),c)),A.nonnegative=(c)=>A.check(X(BigInt(0),c)),A.multipleOf=(c,_)=>A.check(D(c,_));let $=A._zod.bag;A.minValue=$.minimum??null,A.maxValue=$.maximum??null,A.format=$.format??null});function V_(A){return Cc(v,A)}var Px=W("ZodBigIntFormat",(A,x)=>{h$.init(A,x),v.init(A,x)});function R_(A){return Vc(Px,A)}function I_(A){return Rc(Px,A)}var rc=W("ZodSymbol",(A,x)=>{U$.init(A,x),H.init(A,x)});function k_(A){return Ic(rc,A)}var pc=W("ZodUndefined",(A,x)=>{T$.init(A,x),H.init(A,x)});function b_(A){return kc(pc,A)}var ec=W("ZodNull",(A,x)=>{v$.init(A,x),H.init(A,x)});function dc(A){return bc(ec,A)}var ac=W("ZodAny",(A,x)=>{g$.init(A,x),H.init(A,x)});function F_(){return Fc(ac)}var nc=W("ZodUnknown",(A,x)=>{y$.init(A,x),H.init(A,x)});function S(){return jc(nc)}var ic=W("ZodNever",(A,x)=>{Z$.init(A,x),H.init(A,x)});function Lx(A){return hc(ic,A)}var tc=W("ZodVoid",(A,x)=>{o$.init(A,x),H.init(A,x)});function j_(A){return Uc(tc,A)}var OA=W("ZodDate",(A,x)=>{u$.init(A,x),H.init(A,x),A.min=(c,_)=>A.check(X(c,_)),A.max=(c,_)=>A.check(G(c,_));let $=A._zod.bag;A.minDate=$.minimum?new Date($.minimum):null,A.maxDate=$.maximum?new Date($.maximum):null});function h_(A){return Tc(OA,A)}var sc=W("ZodArray",(A,x)=>{l$.init(A,x),H.init(A,x),A.element=x.element,A.min=($,c)=>A.check(B($,c)),A.nonempty=($)=>A.check(B(1,$)),A.max=($,c)=>A.check(R($,c)),A.length=($,c)=>A.check(I($,c)),A.unwrap=()=>A.element});function JA(A,x){return gc(sc,A,x)}function U_(A){let x=A._zod.def.shape;return Sx(Object.keys(x))}var XA=W("ZodObject",(A,x)=>{f$.init(A,x),H.init(A,x),q.defineLazy(A,"shape",()=>x.shape),A.keyof=()=>Sx(Object.keys(A._zod.def.shape)),A.catchall=($)=>A.clone({...A._zod.def,catchall:$}),A.passthrough=()=>A.clone({...A._zod.def,catchall:S()}),A.loose=()=>A.clone({...A._zod.def,catchall:S()}),A.strict=()=>A.clone({...A._zod.def,catchall:Lx()}),A.strip=()=>A.clone({...A._zod.def,catchall:void 0}),A.extend=($)=>{return q.extend(A,$)},A.safeExtend=($)=>{return q.safeExtend(A,$)},A.merge=($)=>q.merge(A,$),A.pick=($)=>q.pick(A,$),A.omit=($)=>q.omit(A,$),A.partial=(...$)=>q.partial(Vx,A,$[0]),A.required=(...$)=>q.required(Rx,A,$[0])});function T_(A,x){let $={type:"object",get shape(){return q.assignProp(this,"shape",A?q.objectClone(A):{}),this.shape},...q.normalizeParams(x)};return new XA($)}function v_(A,x){return new XA({type:"object",get shape(){return q.assignProp(this,"shape",q.objectClone(A)),this.shape},catchall:Lx(),...q.normalizeParams(x)})}function g_(A,x){return new XA({type:"object",get shape(){return q.assignProp(this,"shape",q.objectClone(A)),this.shape},catchall:S(),...q.normalizeParams(x)})}var Ex=W("ZodUnion",(A,x)=>{m$.init(A,x),H.init(A,x),A.options=x.options});function Dx(A,x){return new Ex({type:"union",options:A,...q.normalizeParams(x)})}var AW=W("ZodDiscriminatedUnion",(A,x)=>{Ex.init(A,x),r$.init(A,x)});function y_(A,x,$){return new AW({type:"union",options:x,discriminator:A,...q.normalizeParams($)})}var xW=W("ZodIntersection",(A,x)=>{p$.init(A,x),H.init(A,x)});function $W(A,x){return new xW({type:"intersection",left:A,right:x})}var cW=W("ZodTuple",(A,x)=>{e$.init(A,x),H.init(A,x),A.rest=($)=>A.clone({...A._zod.def,rest:$})});function WW(A,x,$){let c=x instanceof UA,_=c?$:x;return new cW({type:"tuple",items:A,rest:c?x:null,...q.normalizeParams(_)})}var Nx=W("ZodRecord",(A,x)=>{d$.init(A,x),H.init(A,x),A.keyType=x.keyType,A.valueType=x.valueType});function _W(A,x,$){return new Nx({type:"record",keyType:A,valueType:x,...q.normalizeParams($)})}function Z_(A,x,$){let c=b(A);return c._zod.values=void 0,new Nx({type:"record",keyType:c,valueType:x,...q.normalizeParams($)})}var qW=W("ZodMap",(A,x)=>{a$.init(A,x),H.init(A,x),A.keyType=x.keyType,A.valueType=x.valueType});function o_(A,x,$){return new qW({type:"map",keyType:A,valueType:x,...q.normalizeParams($)})}var HW=W("ZodSet",(A,x)=>{n$.init(A,x),H.init(A,x),A.min=(...$)=>A.check(N(...$)),A.nonempty=($)=>A.check(N(1,$)),A.max=(...$)=>A.check(V(...$)),A.size=(...$)=>A.check(Z(...$))});function u_(A,x){return new HW({type:"set",valueType:A,...q.normalizeParams(x)})}var k=W("ZodEnum",(A,x)=>{i$.init(A,x),H.init(A,x),A.enum=x.entries,A.options=Object.values(x.entries);let $=new Set(Object.keys(x.entries));A.extract=(c,_)=>{let J={};for(let Y of c)if($.has(Y))J[Y]=x.entries[Y];else throw Error(`Key ${Y} not found in enum`);return new k({...x,checks:[],...q.normalizeParams(_),entries:J})},A.exclude=(c,_)=>{let J={...x.entries};for(let Y of c)if($.has(Y))delete J[Y];else throw Error(`Key ${Y} not found in enum`);return new k({...x,checks:[],...q.normalizeParams(_),entries:J})}});function Sx(A,x){let $=Array.isArray(A)?Object.fromEntries(A.map((c)=>[c,c])):A;return new k({type:"enum",entries:$,...q.normalizeParams(x)})}function l_(A,x){return new k({type:"enum",entries:A,...q.normalizeParams(x)})}var QW=W("ZodLiteral",(A,x)=>{t$.init(A,x),H.init(A,x),A.values=new Set(x.values),Object.defineProperty(A,"value",{get(){if(x.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return x.values[0]}})});function f_(A,x){return new QW({type:"literal",values:Array.isArray(A)?A:[A],...q.normalizeParams(x)})}var YW=W("ZodFile",(A,x)=>{s$.init(A,x),H.init(A,x),A.min=($,c)=>A.check(N($,c)),A.max=($,c)=>A.check(V($,c)),A.mime=($,c)=>A.check(p(Array.isArray($)?$:[$],c))});function m_(A){return yc(YW,A)}var OW=W("ZodTransform",(A,x)=>{Ac.init(A,x),H.init(A,x),A._zod.parse=($,c)=>{if(c.direction==="backward")throw new q$(A.constructor.name);$.addIssue=(J)=>{if(typeof J==="string")$.issues.push(q.issue(J,$.value,x));else{let Y=J;if(Y.fatal)Y.continue=!1;Y.code??(Y.code="custom"),Y.input??(Y.input=$.value),Y.inst??(Y.inst=A),$.issues.push(q.issue(Y))}};let _=x.transform($.value,$);if(_ instanceof Promise)return _.then((J)=>{return $.value=J,$});return $.value=_,$}});function Cx(A){return new OW({type:"transform",transform:A})}var Vx=W("ZodOptional",(A,x)=>{xc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function _A(A){return new Vx({type:"optional",innerType:A})}var JW=W("ZodNullable",(A,x)=>{$c.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function qA(A){return new JW({type:"nullable",innerType:A})}function r_(A){return _A(qA(A))}var XW=W("ZodDefault",(A,x)=>{cc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType,A.removeDefault=A.unwrap});function GW(A,x){return new XW({type:"default",innerType:A,get defaultValue(){return typeof x==="function"?x():q.shallowClone(x)}})}var MW=W("ZodPrefault",(A,x)=>{Wc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function wW(A,x){return new MW({type:"prefault",innerType:A,get defaultValue(){return typeof x==="function"?x():q.shallowClone(x)}})}var Rx=W("ZodNonOptional",(A,x)=>{_c.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function zW(A,x){return new Rx({type:"nonoptional",innerType:A,...q.normalizeParams(x)})}var KW=W("ZodSuccess",(A,x)=>{qc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function p_(A){return new KW({type:"success",innerType:A})}var BW=W("ZodCatch",(A,x)=>{Hc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType,A.removeCatch=A.unwrap});function PW(A,x){return new BW({type:"catch",innerType:A,catchValue:typeof x==="function"?x:()=>x})}var LW=W("ZodNaN",(A,x)=>{Qc.init(A,x),H.init(A,x)});function e_(A){return vc(LW,A)}var Ix=W("ZodPipe",(A,x)=>{Yc.init(A,x),H.init(A,x),A.in=x.in,A.out=x.out});function HA(A,x){return new Ix({type:"pipe",in:A,out:x})}var kx=W("ZodCodec",(A,x)=>{Ix.init(A,x),Oc.init(A,x)});function d_(A,x,$){return new kx({type:"pipe",in:A,out:x,transform:$.decode,reverseTransform:$.encode})}var EW=W("ZodReadonly",(A,x)=>{Jc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function DW(A){return new EW({type:"readonly",innerType:A})}var NW=W("ZodTemplateLiteral",(A,x)=>{Xc.init(A,x),H.init(A,x)});function a_(A,x){return new NW({type:"template_literal",parts:A,...q.normalizeParams(x)})}var SW=W("ZodLazy",(A,x)=>{wc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.getter()});function CW(A){return new SW({type:"lazy",getter:A})}var VW=W("ZodPromise",(A,x)=>{Mc.init(A,x),H.init(A,x),A.unwrap=()=>A._zod.def.innerType});function n_(A){return new VW({type:"promise",innerType:A})}var RW=W("ZodFunction",(A,x)=>{Gc.init(A,x),H.init(A,x)});function i_(A){return new RW({type:"function",input:Array.isArray(A?.input)?WW(A?.input):A?.input??JA(S()),output:A?.output??S()})}var GA=W("ZodCustom",(A,x)=>{zc.init(A,x),H.init(A,x)});function t_(A){let x=new H$({check:"custom"});return x._zod.check=A,x}function s_(A,x){return Zc(GA,A??(()=>!0),x)}function IW(A,x={}){return oc(GA,A,x)}function kW(A){return uc(A)}function Aq(A,x={error:`Input not instance of ${A.name}`}){let $=new GA({type:"custom",check:"custom",fn:(c)=>c instanceof A,abort:!0,...q.normalizeParams(x)});return $._zod.bag.Class=A,$}var xq=(...A)=>lc({Codec:kx,Boolean:T,String:j},...A);function $q(A){let x=CW(()=>{return Dx([jA(A),fc(),mc(),dc(),JA(x),_W(jA(),x)])});return x}function cq(A,x){return HA(Cx(A),x)}var Wq={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function _q(A){E({customError:A})}function qq(){return E().customError}var bx;(function(A){})(bx||(bx={}));var Fx={};RA(Fx,{string:()=>Hq,number:()=>Qq,date:()=>Jq,boolean:()=>Yq,bigint:()=>Oq});function Hq(A){return bW(j,A)}function Qq(A){return FW(U,A)}function Yq(A){return jW(T,A)}function Oq(A){return hW(v,A)}function Jq(A){return UW(OA,A)}E(ZW());
|
|
3
|
+
export{$A as Uu,BA as Vu,jA as Wu,x_ as Xu,fc as Yu,mc as Zu,dc as _u,F_ as $u,S as av,JA as bv,T_ as cv,g_ as dv,Dx as ev,y_ as fv,$W as gv,_W as hv,Sx as iv,f_ as jv,_A as kv,s_ as lv,cq as mv,Wq as nv,Fx as ov,Xq as pv};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{bq as a,cq as b,dq as c,eq as d,fq as e,gq as f,hq as g,iq as h,jq as i}from"./chunk-94pcpztx.js";import"./chunk-z8gdmvgg.js";import"./chunk-kwx9ewe0.js";import"./chunk-cqtkxwd8.js";import"./chunk-c5pb87yf.js";import"./chunk-g6cyhxwg.js";import"./chunk-m4j7jyrd.js";import"./chunk-gmzrvxnv.js";import"./chunk-mpygdb5a.js";import"./chunk-3k2b05fv.js";export{i as gateway,h as createGatewayProvider,h as createGateway,g as GatewayResponseError,d as GatewayRateLimitError,e as GatewayModelNotFoundError,c as GatewayInvalidRequestError,f as GatewayInternalServerError,a as GatewayError,b as GatewayAuthenticationError};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-3k2b05fv.js";var{create:os,defineProperty:Gt,getOwnPropertyDescriptor:us,getOwnPropertyNames:ps,getPrototypeOf:hs}=Object,cs=Object.prototype.hasOwnProperty,ce=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ls=(t,e)=>{for(var s in e)Gt(t,s,{get:e[s],enumerable:!0})},ds=(t,e,s,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ps(e))!cs.call(t,r)&&r!==s&&Gt(t,r,{get:()=>e[r],enumerable:!(i=us(e,r))||i.enumerable});return t},le=(t,e,s)=>(s=t!=null?os(hs(t)):{},ds(e||!t||!t.__esModule?Gt(s,"default",{value:t,enumerable:!0}):s,t)),fs=ce((t,e)=>{e.exports={}}),de=ce((t,e)=>{var s=fs(),i=/^[\da-fA-F]+$/,r=/^\d+$/,n=new WeakMap;function o(h){h=h.Parser.acorn||h;let l=n.get(h);if(!l){let{tokTypes:g,TokContext:C,TokenType:A}=h,S=new C("<tag",!1),V=new C("</tag",!1),P=new C("<tag>...</tag>",!0,!0),U={tc_oTag:S,tc_cTag:V,tc_expr:P},et={jsxName:new A("jsxName"),jsxText:new A("jsxText",{beforeExpr:!0}),jsxTagStart:new A("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new A("jsxTagEnd")};et.jsxTagStart.updateContext=function(){this.context.push(P),this.context.push(S),this.exprAllowed=!1},et.jsxTagEnd.updateContext=function(dt){let ft=this.context.pop();ft===S&&dt===g.slash||ft===V?(this.context.pop(),this.exprAllowed=this.curContext()===P):this.exprAllowed=!0},l={tokContexts:U,tokTypes:et},n.set(h,l)}return l}function p(h){if(!h)return h;if(h.type==="JSXIdentifier")return h.name;if(h.type==="JSXNamespacedName")return h.namespace.name+":"+h.name.name;if(h.type==="JSXMemberExpression")return p(h.object)+"."+p(h.property)}e.exports=function(h){return h=h||{},function(l){return u({allowNamespaces:h.allowNamespaces!==!1,allowNamespacedObjects:!!h.allowNamespacedObjects},l)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return o(void 0).tokTypes},configurable:!0,enumerable:!0});function u(h,l){let g=l.acorn||void 0,C=o(g),A=g.tokTypes,S=C.tokTypes,V=g.tokContexts,P=C.tokContexts.tc_oTag,U=C.tokContexts.tc_cTag,et=C.tokContexts.tc_expr,dt=g.isNewLine,ft=g.isIdentifierStart,ns=g.isIdentifierChar;return class extends l{static get acornJsx(){return C}jsx_readToken(){let c="",y=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let x=this.input.charCodeAt(this.pos);switch(x){case 60:case 123:return this.pos===this.start?x===60&&this.exprAllowed?(++this.pos,this.finishToken(S.jsxTagStart)):this.getTokenFromCode(x):(c+=this.input.slice(y,this.pos),this.finishToken(S.jsxText,c));case 38:c+=this.input.slice(y,this.pos),c+=this.jsx_readEntity(),y=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(x===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:dt(x)?(c+=this.input.slice(y,this.pos),c+=this.jsx_readNewLine(!0),y=this.pos):++this.pos}}}jsx_readNewLine(c){let y=this.input.charCodeAt(this.pos),x;return++this.pos,y===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,x=c?`
|
|
3
3
|
`:`\r
|
|
4
4
|
`):x=String.fromCharCode(y),this.options.locations&&(++this.curLine,this.lineStart=this.pos),x}jsx_readString(c){let y="",x=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let k=this.input.charCodeAt(this.pos);if(k===c)break;k===38?(y+=this.input.slice(x,this.pos),y+=this.jsx_readEntity(),x=this.pos):dt(k)?(y+=this.input.slice(x,this.pos),y+=this.jsx_readNewLine(!1),x=this.pos):++this.pos}return y+=this.input.slice(x,this.pos++),this.finishToken(A.string,y)}jsx_readEntity(){let c="",y=0,x,k=this.input[this.pos];k!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let Y=++this.pos;for(;this.pos<this.input.length&&y++<10;){if(k=this.input[this.pos++],k===";"){c[0]==="#"?c[1]==="x"?(c=c.substr(2),i.test(c)&&(x=String.fromCharCode(parseInt(c,16)))):(c=c.substr(1),r.test(c)&&(x=String.fromCharCode(parseInt(c,10)))):x=s[c];break}c+=k}return x||(this.pos=Y,"&")}jsx_readWord(){let c,y=this.pos;do c=this.input.charCodeAt(++this.pos);while(ns(c)||c===45);return this.finishToken(S.jsxName,this.input.slice(y,this.pos))}jsx_parseIdentifier(){let c=this.startNode();return this.type===S.jsxName?c.name=this.value:this.type.keyword?c.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(c,"JSXIdentifier")}jsx_parseNamespacedName(){let c=this.start,y=this.startLoc,x=this.jsx_parseIdentifier();if(!h.allowNamespaces||!this.eat(A.colon))return x;var k=this.startNodeAt(c,y);return k.namespace=x,k.name=this.jsx_parseIdentifier(),this.finishNode(k,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===S.jsxTagEnd)return"";let c=this.start,y=this.startLoc,x=this.jsx_parseNamespacedName();for(this.type===A.dot&&x.type==="JSXNamespacedName"&&!h.allowNamespacedObjects&&this.unexpected();this.eat(A.dot);){let k=this.startNodeAt(c,y);k.object=x,k.property=this.jsx_parseIdentifier(),x=this.finishNode(k,"JSXMemberExpression")}return x}jsx_parseAttributeValue(){switch(this.type){case A.braceL:let c=this.jsx_parseExpressionContainer();return c.expression.type==="JSXEmptyExpression"&&this.raise(c.start,"JSX attributes must only be assigned a non-empty expression"),c;case S.jsxTagStart:case A.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let c=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(c,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let c=this.startNode();return this.next(),c.expression=this.type===A.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(A.braceR),this.finishNode(c,"JSXExpressionContainer")}jsx_parseAttribute(){let c=this.startNode();return this.eat(A.braceL)?(this.expect(A.ellipsis),c.argument=this.parseMaybeAssign(),this.expect(A.braceR),this.finishNode(c,"JSXSpreadAttribute")):(c.name=this.jsx_parseNamespacedName(),c.value=this.eat(A.eq)?this.jsx_parseAttributeValue():null,this.finishNode(c,"JSXAttribute"))}jsx_parseOpeningElementAt(c,y){let x=this.startNodeAt(c,y);x.attributes=[];let k=this.jsx_parseElementName();for(k&&(x.name=k);this.type!==A.slash&&this.type!==S.jsxTagEnd;)x.attributes.push(this.jsx_parseAttribute());return x.selfClosing=this.eat(A.slash),this.expect(S.jsxTagEnd),this.finishNode(x,k?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(c,y){let x=this.startNodeAt(c,y),k=this.jsx_parseElementName();return k&&(x.name=k),this.expect(S.jsxTagEnd),this.finishNode(x,k?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(c,y){let x=this.startNodeAt(c,y),k=[],Y=this.jsx_parseOpeningElementAt(c,y),mt=null;if(!Y.selfClosing){t:for(;;)switch(this.type){case S.jsxTagStart:if(c=this.start,y=this.startLoc,this.next(),this.eat(A.slash)){mt=this.jsx_parseClosingElementAt(c,y);break t}k.push(this.jsx_parseElementAt(c,y));break;case S.jsxText:k.push(this.parseExprAtom());break;case A.braceL:k.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}p(mt.name)!==p(Y.name)&&this.raise(mt.start,"Expected corresponding JSX closing tag for <"+p(Y.name)+">")}let wt=Y.name?"Element":"Fragment";return x["opening"+wt]=Y,x["closing"+wt]=mt,x.children=k,this.type===A.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(x,"JSX"+wt)}jsx_parseText(){let c=this.parseLiteral(this.value);return c.type="JSXText",c}jsx_parseElement(){let c=this.start,y=this.startLoc;return this.next(),this.jsx_parseElementAt(c,y)}parseExprAtom(c){return this.type===S.jsxText?this.jsx_parseText():this.type===S.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(c)}readToken(c){let y=this.curContext();if(y===et)return this.jsx_readToken();if(y===P||y===U){if(ft(c))return this.jsx_readWord();if(c==62)return++this.pos,this.finishToken(S.jsxTagEnd);if((c===34||c===39)&&y==P)return this.jsx_readString(c)}return c===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(S.jsxTagStart)):super.readToken(c)}updateContext(c){if(this.type==A.braceL){var y=this.curContext();y==P?this.context.push(V.b_expr):y==et?this.context.push(V.b_tmpl):super.updateContext(c),this.exprAllowed=!0}else if(this.type===A.slash&&c===S.jsxTagStart)this.context.length-=2,this.context.push(U),this.exprAllowed=!1;else return super.updateContext(c)}}}}),fe={};ls(fe,{parsers:()=>hr});var ms=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],me=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],ys="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",ye="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Dt={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Ft="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",xs={5:Ft,"5module":Ft+" export import",6:Ft+" const class extends export import super"},gs=/^in(stanceof)?$/,As=new RegExp("["+ye+"]"),vs=new RegExp("["+ye+ys+"]");function Lt(t,e){for(var s=65536,i=0;i<e.length;i+=2){if(s+=e[i],s>t)return!1;if(s+=e[i+1],s>=t)return!0}return!1}function G(t,e){return t<65?t===36:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&As.test(String.fromCharCode(t)):e===!1?!1:Lt(t,me)}function Q(t,e){return t<48?t===36:t<58?!0:t<65?!1:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&vs.test(String.fromCharCode(t)):e===!1?!1:Lt(t,me)||Lt(t,ms)}var E=function(t,e){e===void 0&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function L(t,e){return new E(t,{beforeExpr:!0,binop:e})}var R={beforeExpr:!0},B={startsExpr:!0},Jt={};function b(t,e){return e===void 0&&(e={}),e.keyword=t,Jt[t]=new E(t,e)}var a={num:new E("num",B),regexp:new E("regexp",B),string:new E("string",B),name:new E("name",B),privateId:new E("privateId",B),eof:new E("eof"),bracketL:new E("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new E("]"),braceL:new E("{",{beforeExpr:!0,startsExpr:!0}),braceR:new E("}"),parenL:new E("(",{beforeExpr:!0,startsExpr:!0}),parenR:new E(")"),comma:new E(",",R),semi:new E(";",R),colon:new E(":",R),dot:new E("."),question:new E("?",R),questionDot:new E("?."),arrow:new E("=>",R),template:new E("template"),invalidTemplate:new E("invalidTemplate"),ellipsis:new E("...",R),backQuote:new E("`",B),dollarBraceL:new E("${",{beforeExpr:!0,startsExpr:!0}),eq:new E("=",{beforeExpr:!0,isAssign:!0}),assign:new E("_=",{beforeExpr:!0,isAssign:!0}),incDec:new E("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new E("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:L("||",1),logicalAND:L("&&",2),bitwiseOR:L("|",3),bitwiseXOR:L("^",4),bitwiseAND:L("&",5),equality:L("==/!=/===/!==",6),relational:L("</>/<=/>=",7),bitShift:L("<</>>/>>>",8),plusMin:new E("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:L("%",10),star:L("*",10),slash:L("/",10),starstar:new E("**",{beforeExpr:!0}),coalesce:L("??",1),_break:b("break"),_case:b("case",R),_catch:b("catch"),_continue:b("continue"),_debugger:b("debugger"),_default:b("default",R),_do:b("do",{isLoop:!0,beforeExpr:!0}),_else:b("else",R),_finally:b("finally"),_for:b("for",{isLoop:!0}),_function:b("function",B),_if:b("if"),_return:b("return",R),_switch:b("switch"),_throw:b("throw",R),_try:b("try"),_var:b("var"),_const:b("const"),_while:b("while",{isLoop:!0}),_with:b("with"),_new:b("new",{beforeExpr:!0,startsExpr:!0}),_this:b("this",B),_super:b("super",B),_class:b("class",B),_extends:b("extends",R),_export:b("export"),_import:b("import",B),_null:b("null",B),_true:b("true",B),_false:b("false",B),_in:b("in",{beforeExpr:!0,binop:7}),_instanceof:b("instanceof",{beforeExpr:!0,binop:7}),_typeof:b("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:b("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:b("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},N=/\r\n?|\n|\u2028|\u2029/,bs=new RegExp(N.source,"g");function st(t){return t===10||t===13||t===8232||t===8233}function xe(t,e,s){s===void 0&&(s=t.length);for(var i=e;i<s;i++){var r=t.charCodeAt(i);if(st(r))return i<s-1&&r===13&&t.charCodeAt(i+1)===10?i+2:i+1}return-1}var ge=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,w=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ae=Object.prototype,Cs=Ae.hasOwnProperty,Es=Ae.toString,it=Object.hasOwn||function(t,e){return Cs.call(t,e)},ee=Array.isArray||function(t){return Es.call(t)==="[object Array]"},se=Object.create(null);function z(t){return se[t]||(se[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function X(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}var Ss=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,pt=function(t,e){this.line=t,this.column=e};pt.prototype.offset=function(t){return new pt(this.line,this.column+t)};var Ct=function(t,e,s){this.start=e,this.end=s,t.sourceFile!==null&&(this.source=t.sourceFile)};function ve(t,e){for(var s=1,i=0;;){var r=xe(t,i,e);if(r<0)return new pt(s,e-i);++s,i=r}}var Rt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},ie=!1;function ks(t){var e={};for(var s in Rt)e[s]=t&&it(t,s)?t[s]:Rt[s];if(e.ecmaVersion==="latest"?e.ecmaVersion=1e8:e.ecmaVersion==null?(!ie&&typeof console=="object"&&console.warn&&(ie=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
5
5
|
Defaulting to 2020, but this will stop working in the future.`)),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),e.allowReserved==null&&(e.allowReserved=e.ecmaVersion<5),(!t||t.allowHashBang==null)&&(e.allowHashBang=e.ecmaVersion>=14),ee(e.onToken)){var i=e.onToken;e.onToken=function(r){return i.push(r)}}return ee(e.onComment)&&(e.onComment=Ts(e,e.onComment)),e}function Ts(t,e){return function(s,i,r,n,o,p){var u={type:s?"Block":"Line",value:i,start:r,end:n};t.locations&&(u.loc=new Ct(this,o,p)),t.ranges&&(u.range=[r,n]),e.push(u)}}var ht=1,rt=2,Kt=4,be=8,Xt=16,Ce=32,Et=64,Ee=128,tt=256,ct=512,St=ht|rt|tt;function Ht(t,e){return rt|(t?Kt:0)|(e?be:0)}var gt=0,Wt=1,W=2,Se=3,ke=4,Te=5,_=function(t,e,s){this.options=t=ks(t),this.sourceFile=t.sourceFile,this.keywords=z(xs[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var i="";t.allowReserved!==!0&&(i=Dt[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(i+=" await")),this.reservedWords=z(i);var r=(i?i+" ":"")+Dt.strict;this.reservedWordsStrict=z(r),this.reservedWordsStrictBind=z(r+" "+Dt.strictBind),this.input=String(e),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ap as t,Cp as R,Dp as b,Ep as xG,Kp as f,Lp as s,Mp as O,Qp as IG,Ro as y,Wo as l,Yo as p,_o as qG,dp as NG,fp as _,kp as DG}from"./chunk-2maqde7w.js";import{Xp as AG,Yp as r,bq as PG,dq as T}from"./chunk-kj20f048.js";import{St as Q}from"./chunk-c11d28qn.js";function h(G){return G.replace(/[_-]([a-z])/g,(Y)=>Y[1].toUpperCase())}function MG(G,Y){let Z=h(G);if(Z!==G&&(Y==null?void 0:Y[Z])!=null)return Z;return G}var SG=Q.object({error:Q.object({message:Q.string(),type:Q.string().nullish(),param:Q.any().nullish(),code:Q.union([Q.string(),Q.number()]).nullish()})}),m={errorSchema:SG,errorToMessage:(G)=>G.error.message};function jG(G){var Y,Z,U,z,V,j;if(G==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let B=(Y=G.prompt_tokens)!=null?Y:0,H=(Z=G.completion_tokens)!=null?Z:0,X=(z=(U=G.prompt_tokens_details)==null?void 0:U.cached_tokens)!=null?z:0,L=(j=(V=G.completion_tokens_details)==null?void 0:V.reasoning_tokens)!=null?j:0;return{inputTokens:{total:B,noCache:B-X,cacheRead:X,cacheWrite:void 0},outputTokens:{total:H,text:H-L,reasoning:L},raw:G}}function u(G){var Y,Z;return(Z=(Y=G==null?void 0:G.providerOptions)==null?void 0:Y.openaiCompatible)!=null?Z:{}}function RG(G){switch(G){case"audio/wav":return"wav";case"audio/mp3":case"audio/mpeg":return"mp3";default:return null}}function yG(G){var Y,Z,U;let z=[];for(let{role:V,content:j,...B}of G){let H=u({...B});switch(V){case"system":{z.push({role:"system",content:j,...H});break}case"user":{if(j.length===1&&j[0].type==="text"){z.push({role:"user",content:j[0].text,...u(j[0])});break}z.push({role:"user",content:j.map((X)=>{var L;let $=u(X);switch(X.type){case"text":return{type:"text",text:X.text,...$};case"file":{if(X.mediaType.startsWith("image/")){let J=X.mediaType==="image/*"?"image/jpeg":X.mediaType;return{type:"image_url",image_url:{url:X.data instanceof URL?X.data.toString():`data:${J};base64,${p(X.data)}`},...$}}if(X.mediaType.startsWith("audio/")){if(X.data instanceof URL)throw new T({functionality:"audio file parts with URLs"});let J=RG(X.mediaType);if(J===null)throw new T({functionality:`audio media type ${X.mediaType}`});return{type:"input_audio",input_audio:{data:p(X.data),format:J},...$}}if(X.mediaType==="application/pdf"){if(X.data instanceof URL)throw new T({functionality:"PDF file parts with URLs"});return{type:"file",file:{filename:(L=X.filename)!=null?L:"document.pdf",file_data:`data:application/pdf;base64,${p(X.data)}`},...$}}if(X.mediaType.startsWith("text/"))return{type:"text",text:X.data instanceof URL?X.data.toString():typeof X.data==="string"?new TextDecoder().decode(l(X.data)):new TextDecoder().decode(X.data),...$};throw new T({functionality:`file part media type ${X.mediaType}`})}}}),...H});break}case"assistant":{let X="",L="",$=[];for(let J of j){let E=u(J);switch(J.type){case"text":{X+=J.text;break}case"reasoning":{L+=J.text;break}case"tool-call":{let A=(Z=(Y=J.providerOptions)==null?void 0:Y.google)==null?void 0:Z.thoughtSignature;$.push({id:J.toolCallId,type:"function",function:{name:J.toolName,arguments:JSON.stringify(J.input)},...E,...A?{extra_content:{google:{thought_signature:String(A)}}}:{}});break}}}z.push({role:"assistant",content:X,...L.length>0?{reasoning_content:L}:{},tool_calls:$.length>0?$:void 0,...H});break}case"tool":{for(let X of j){if(X.type==="tool-approval-response")continue;let L=X.output,$;switch(L.type){case"text":case"error-text":$=L.value;break;case"execution-denied":$=(U=L.reason)!=null?U:"Tool execution denied.";break;case"content":case"json":case"error-json":$=JSON.stringify(L.value);break}let J=u(X);z.push({role:"tool",tool_call_id:X.toolCallId,content:$,...J})}break}default:throw Error(`Unsupported role: ${V}`)}}return z}function LG({id:G,model:Y,created:Z}){return{id:G!=null?G:void 0,modelId:Y!=null?Y:void 0,timestamp:Z!=null?new Date(Z*1000):void 0}}function zG(G){switch(G){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}var g=Q.object({user:Q.string().optional(),reasoningEffort:Q.string().optional(),textVerbosity:Q.string().optional(),strictJsonSchema:Q.boolean().optional()});function TG({tools:G,toolChoice:Y}){G=(G==null?void 0:G.length)?G:void 0;let Z=[];if(G==null)return{tools:void 0,toolChoice:void 0,toolWarnings:Z};let U=[];for(let V of G)if(V.type==="provider")Z.push({type:"unsupported",feature:`provider-defined tool ${V.id}`});else U.push({type:"function",function:{name:V.name,description:V.description,parameters:V.inputSchema,...V.strict!=null?{strict:V.strict}:{}}});if(Y==null)return{tools:U,toolChoice:void 0,toolWarnings:Z};let z=Y.type;switch(z){case"auto":case"none":case"required":return{tools:U,toolChoice:z,toolWarnings:Z};case"tool":return{tools:U,toolChoice:{type:"function",function:{name:Y.toolName}},toolWarnings:Z};default:throw new T({functionality:`tool choice type: ${z}`})}}var bG=class{constructor(G,Y){this.specificationVersion="v3";var Z,U;this.modelId=G,this.config=Y;let z=(Z=Y.errorStructure)!=null?Z:m;this.chunkSchema=OG(z.errorSchema),this.failedResponseHandler=f(z),this.supportsStructuredOutputs=(U=Y.supportsStructuredOutputs)!=null?U:!1}get provider(){return this.config.provider}get providerOptionsName(){return this.config.provider.split(".")[0].trim()}get supportedUrls(){var G,Y,Z;return(Z=(Y=(G=this.config).supportedUrls)==null?void 0:Y.call(G))!=null?Z:{}}transformRequestBody(G){var Y,Z,U;return(U=(Z=(Y=this.config).transformRequestBody)==null?void 0:Z.call(Y,G))!=null?U:G}async getArgs({prompt:G,maxOutputTokens:Y,temperature:Z,topP:U,topK:z,frequencyPenalty:V,presencePenalty:j,providerOptions:B,stopSequences:H,responseFormat:X,seed:L,toolChoice:$,tools:J}){var E,A,P,K,W;let N=[],x=await R({provider:"openai-compatible",providerOptions:B,schema:g});if(x!=null)N.push({type:"other",message:"The 'openai-compatible' key in providerOptions is deprecated. Use 'openaiCompatible' instead."});let D=Object.assign(x!=null?x:{},(E=await R({provider:"openaiCompatible",providerOptions:B,schema:g}))!=null?E:{},(A=await R({provider:this.providerOptionsName,providerOptions:B,schema:g}))!=null?A:{},(P=await R({provider:h(this.providerOptionsName),providerOptions:B,schema:g}))!=null?P:{}),w=(K=D==null?void 0:D.strictJsonSchema)!=null?K:!0;if(z!=null)N.push({type:"unsupported",feature:"topK"});if((X==null?void 0:X.type)==="json"&&X.schema!=null&&!this.supportsStructuredOutputs)N.push({type:"unsupported",feature:"responseFormat",details:"JSON response format schema is only supported with structuredOutputs"});let{tools:q,toolChoice:I,toolWarnings:k}=TG({tools:J,toolChoice:$});return{metadataKey:MG(this.providerOptionsName,B),args:{model:this.modelId,user:D.user,max_tokens:Y,temperature:Z,top_p:U,frequency_penalty:V,presence_penalty:j,response_format:(X==null?void 0:X.type)==="json"?this.supportsStructuredOutputs===!0&&X.schema!=null?{type:"json_schema",json_schema:{schema:X.schema,strict:w,name:(W=X.name)!=null?W:"response",description:X.description}}:{type:"json_object"}:void 0,stop:H,seed:L,...Object.fromEntries(Object.entries({...B==null?void 0:B[this.providerOptionsName],...B==null?void 0:B[h(this.providerOptionsName)]}).filter(([d])=>!Object.keys(g.shape).includes(d))),reasoning_effort:D.reasoningEffort,verbosity:D.textVerbosity,messages:yG(G),tools:q,tool_choice:I},warnings:[...N,...k]}}async doGenerate(G){var Y,Z,U,z,V,j,B,H;let{args:X,warnings:L,metadataKey:$}=await this.getArgs({...G}),J=this.transformRequestBody(X),E=JSON.stringify(J),{responseHeaders:A,value:P,rawValue:K}=await b({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:y(this.config.headers(),G.headers),body:J,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:O(kG),abortSignal:G.abortSignal,fetch:this.config.fetch}),W=P.choices[0],N=[],x=W.message.content;if(x!=null&&x.length>0)N.push({type:"text",text:x});let D=(Y=W.message.reasoning_content)!=null?Y:W.message.reasoning;if(D!=null&&D.length>0)N.push({type:"reasoning",text:D});if(W.message.tool_calls!=null)for(let I of W.message.tool_calls){let k=(U=(Z=I.extra_content)==null?void 0:Z.google)==null?void 0:U.thought_signature;N.push({type:"tool-call",toolCallId:(z=I.id)!=null?z:_(),toolName:I.function.name,input:I.function.arguments,...k?{providerMetadata:{[$]:{thoughtSignature:k}}}:{}})}let w={[$]:{},...await((j=(V=this.config.metadataExtractor)==null?void 0:V.extractMetadata)==null?void 0:j.call(V,{parsedBody:K}))},q=(B=P.usage)==null?void 0:B.completion_tokens_details;if((q==null?void 0:q.accepted_prediction_tokens)!=null)w[$].acceptedPredictionTokens=q==null?void 0:q.accepted_prediction_tokens;if((q==null?void 0:q.rejected_prediction_tokens)!=null)w[$].rejectedPredictionTokens=q==null?void 0:q.rejected_prediction_tokens;return{content:N,finishReason:{unified:zG(W.finish_reason),raw:(H=W.finish_reason)!=null?H:void 0},usage:jG(P.usage),providerMetadata:w,request:{body:E},response:{...LG(P),headers:A,body:K},warnings:L}}async doStream(G){var Y;let{args:Z,warnings:U,metadataKey:z}=await this.getArgs({...G}),V=this.transformRequestBody({...Z,stream:!0,stream_options:this.config.includeUsage?{include_usage:!0}:void 0}),j=(Y=this.config.metadataExtractor)==null?void 0:Y.createStreamExtractor(),{responseHeaders:B,value:H}=await b({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:y(this.config.headers(),G.headers),body:V,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:s(this.chunkSchema),abortSignal:G.abortSignal,fetch:this.config.fetch}),X=[],L={unified:"other",raw:void 0},$=void 0,J=!0,E=z,A=!1,P=!1;return{stream:H.pipeThrough(new TransformStream({start(K){K.enqueue({type:"stream-start",warnings:U})},transform(K,W){var N,x,D,w,q,I,k,n,d,e,o,GG,QG,XG,YG,ZG,$G,JG;if(G.includeRawChunks)W.enqueue({type:"raw",rawValue:K.rawValue});if(!K.success){L={unified:"error",raw:void 0},W.enqueue({type:"error",error:K.error});return}if(j==null||j.processChunk(K.rawValue),"error"in K.value){L={unified:"error",raw:void 0},W.enqueue({type:"error",error:K.value.error.message});return}let c=K.value;if(J)J=!1,W.enqueue({type:"response-metadata",...LG(c)});if(c.usage!=null)$=c.usage;let v=c.choices[0];if((v==null?void 0:v.finish_reason)!=null)L={unified:zG(v.finish_reason),raw:(N=v.finish_reason)!=null?N:void 0};if((v==null?void 0:v.delta)==null)return;let C=v.delta,UG=(x=C.reasoning_content)!=null?x:C.reasoning;if(UG){if(!A)W.enqueue({type:"reasoning-start",id:"reasoning-0"}),A=!0;W.enqueue({type:"reasoning-delta",id:"reasoning-0",delta:UG})}if(C.content){if(A)W.enqueue({type:"reasoning-end",id:"reasoning-0"}),A=!1;if(!P)W.enqueue({type:"text-start",id:"txt-0"}),P=!0;W.enqueue({type:"text-delta",id:"txt-0",delta:C.content})}if(C.tool_calls!=null){if(A)W.enqueue({type:"reasoning-end",id:"reasoning-0"}),A=!1;for(let F of C.tool_calls){let i=(D=F.index)!=null?D:X.length;if(X[i]==null){if(F.id==null)throw new r({data:F,message:"Expected 'id' to be a string."});if(((w=F.function)==null?void 0:w.name)==null)throw new r({data:F,message:"Expected 'function.name' to be a string."});W.enqueue({type:"tool-input-start",id:F.id,toolName:F.function.name}),X[i]={id:F.id,type:"function",function:{name:F.function.name,arguments:(q=F.function.arguments)!=null?q:""},hasFinished:!1,thoughtSignature:(n=(k=(I=F.extra_content)==null?void 0:I.google)==null?void 0:k.thought_signature)!=null?n:void 0};let S=X[i];if(((d=S.function)==null?void 0:d.name)!=null&&((e=S.function)==null?void 0:e.arguments)!=null){if(S.function.arguments.length>0)W.enqueue({type:"tool-input-delta",id:S.id,delta:S.function.arguments});if(t(S.function.arguments))W.enqueue({type:"tool-input-end",id:S.id}),W.enqueue({type:"tool-call",toolCallId:(o=S.id)!=null?o:_(),toolName:S.function.name,input:S.function.arguments,...S.thoughtSignature?{providerMetadata:{[E]:{thoughtSignature:S.thoughtSignature}}}:{}}),S.hasFinished=!0}continue}let M=X[i];if(M.hasFinished)continue;if(((GG=F.function)==null?void 0:GG.arguments)!=null)M.function.arguments+=(XG=(QG=F.function)==null?void 0:QG.arguments)!=null?XG:"";if(W.enqueue({type:"tool-input-delta",id:M.id,delta:(YG=F.function.arguments)!=null?YG:""}),((ZG=M.function)==null?void 0:ZG.name)!=null&&(($G=M.function)==null?void 0:$G.arguments)!=null&&t(M.function.arguments))W.enqueue({type:"tool-input-end",id:M.id}),W.enqueue({type:"tool-call",toolCallId:(JG=M.id)!=null?JG:_(),toolName:M.function.name,input:M.function.arguments,...M.thoughtSignature?{providerMetadata:{[E]:{thoughtSignature:M.thoughtSignature}}}:{}}),M.hasFinished=!0}}},flush(K){var W,N,x,D,w;if(A)K.enqueue({type:"reasoning-end",id:"reasoning-0"});if(P)K.enqueue({type:"text-end",id:"txt-0"});for(let I of X.filter((k)=>!k.hasFinished))K.enqueue({type:"tool-input-end",id:I.id}),K.enqueue({type:"tool-call",toolCallId:(W=I.id)!=null?W:_(),toolName:I.function.name,input:I.function.arguments,...I.thoughtSignature?{providerMetadata:{[E]:{thoughtSignature:I.thoughtSignature}}}:{}});let q={[E]:{},...j==null?void 0:j.buildMetadata()};if(((N=$==null?void 0:$.completion_tokens_details)==null?void 0:N.accepted_prediction_tokens)!=null)q[E].acceptedPredictionTokens=(x=$==null?void 0:$.completion_tokens_details)==null?void 0:x.accepted_prediction_tokens;if(((D=$==null?void 0:$.completion_tokens_details)==null?void 0:D.rejected_prediction_tokens)!=null)q[E].rejectedPredictionTokens=(w=$==null?void 0:$.completion_tokens_details)==null?void 0:w.rejected_prediction_tokens;K.enqueue({type:"finish",finishReason:L,usage:jG($),providerMetadata:q})}})),request:{body:V},response:{headers:B}}}},FG=Q.looseObject({prompt_tokens:Q.number().nullish(),completion_tokens:Q.number().nullish(),total_tokens:Q.number().nullish(),prompt_tokens_details:Q.object({cached_tokens:Q.number().nullish()}).nullish(),completion_tokens_details:Q.object({reasoning_tokens:Q.number().nullish(),accepted_prediction_tokens:Q.number().nullish(),rejected_prediction_tokens:Q.number().nullish()}).nullish()}).nullish(),kG=Q.looseObject({id:Q.string().nullish(),created:Q.number().nullish(),model:Q.string().nullish(),choices:Q.array(Q.object({message:Q.object({role:Q.literal("assistant").nullish(),content:Q.string().nullish(),reasoning_content:Q.string().nullish(),reasoning:Q.string().nullish(),tool_calls:Q.array(Q.object({id:Q.string().nullish(),function:Q.object({name:Q.string(),arguments:Q.string()}),extra_content:Q.object({google:Q.object({thought_signature:Q.string().nullish()}).nullish()}).nullish()})).nullish()}),finish_reason:Q.string().nullish()})),usage:FG}),fG=Q.looseObject({id:Q.string().nullish(),created:Q.number().nullish(),model:Q.string().nullish(),choices:Q.array(Q.object({delta:Q.object({role:Q.enum(["assistant"]).nullish(),content:Q.string().nullish(),reasoning_content:Q.string().nullish(),reasoning:Q.string().nullish(),tool_calls:Q.array(Q.object({index:Q.number().nullish(),id:Q.string().nullish(),function:Q.object({name:Q.string().nullish(),arguments:Q.string().nullish()}),extra_content:Q.object({google:Q.object({thought_signature:Q.string().nullish()}).nullish()}).nullish()})).nullish()}).nullish(),finish_reason:Q.string().nullish()})),usage:FG}),OG=(G)=>Q.union([fG,G]);function BG(G){var Y,Z;if(G==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let U=(Y=G.prompt_tokens)!=null?Y:0,z=(Z=G.completion_tokens)!=null?Z:0;return{inputTokens:{total:U,noCache:U,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:z,text:z,reasoning:void 0},raw:G}}function vG({prompt:G,user:Y="user",assistant:Z="assistant"}){let U="";if(G[0].role==="system")U+=`${G[0].content}
|
|
2
|
+
import{$q as R,Cq as NG,Eq as _,Jq as DG,Zq as t,ar as b,br as xG,hr as f,ir as s,jr as O,nr as IG,oq as y,tq as l,vq as p,xq as qG}from"./chunk-z8gdmvgg.js";import{Ar as PG,Cr as T,ur as AG,vr as r}from"./chunk-kwx9ewe0.js";import{pv as Q}from"./chunk-gmzrvxnv.js";function h(G){return G.replace(/[_-]([a-z])/g,(Y)=>Y[1].toUpperCase())}function MG(G,Y){let Z=h(G);if(Z!==G&&(Y==null?void 0:Y[Z])!=null)return Z;return G}var SG=Q.object({error:Q.object({message:Q.string(),type:Q.string().nullish(),param:Q.any().nullish(),code:Q.union([Q.string(),Q.number()]).nullish()})}),m={errorSchema:SG,errorToMessage:(G)=>G.error.message};function jG(G){var Y,Z,U,z,V,j;if(G==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let B=(Y=G.prompt_tokens)!=null?Y:0,H=(Z=G.completion_tokens)!=null?Z:0,X=(z=(U=G.prompt_tokens_details)==null?void 0:U.cached_tokens)!=null?z:0,L=(j=(V=G.completion_tokens_details)==null?void 0:V.reasoning_tokens)!=null?j:0;return{inputTokens:{total:B,noCache:B-X,cacheRead:X,cacheWrite:void 0},outputTokens:{total:H,text:H-L,reasoning:L},raw:G}}function u(G){var Y,Z;return(Z=(Y=G==null?void 0:G.providerOptions)==null?void 0:Y.openaiCompatible)!=null?Z:{}}function RG(G){switch(G){case"audio/wav":return"wav";case"audio/mp3":case"audio/mpeg":return"mp3";default:return null}}function yG(G){var Y,Z,U;let z=[];for(let{role:V,content:j,...B}of G){let H=u({...B});switch(V){case"system":{z.push({role:"system",content:j,...H});break}case"user":{if(j.length===1&&j[0].type==="text"){z.push({role:"user",content:j[0].text,...u(j[0])});break}z.push({role:"user",content:j.map((X)=>{var L;let $=u(X);switch(X.type){case"text":return{type:"text",text:X.text,...$};case"file":{if(X.mediaType.startsWith("image/")){let J=X.mediaType==="image/*"?"image/jpeg":X.mediaType;return{type:"image_url",image_url:{url:X.data instanceof URL?X.data.toString():`data:${J};base64,${p(X.data)}`},...$}}if(X.mediaType.startsWith("audio/")){if(X.data instanceof URL)throw new T({functionality:"audio file parts with URLs"});let J=RG(X.mediaType);if(J===null)throw new T({functionality:`audio media type ${X.mediaType}`});return{type:"input_audio",input_audio:{data:p(X.data),format:J},...$}}if(X.mediaType==="application/pdf"){if(X.data instanceof URL)throw new T({functionality:"PDF file parts with URLs"});return{type:"file",file:{filename:(L=X.filename)!=null?L:"document.pdf",file_data:`data:application/pdf;base64,${p(X.data)}`},...$}}if(X.mediaType.startsWith("text/"))return{type:"text",text:X.data instanceof URL?X.data.toString():typeof X.data==="string"?new TextDecoder().decode(l(X.data)):new TextDecoder().decode(X.data),...$};throw new T({functionality:`file part media type ${X.mediaType}`})}}}),...H});break}case"assistant":{let X="",L="",$=[];for(let J of j){let E=u(J);switch(J.type){case"text":{X+=J.text;break}case"reasoning":{L+=J.text;break}case"tool-call":{let A=(Z=(Y=J.providerOptions)==null?void 0:Y.google)==null?void 0:Z.thoughtSignature;$.push({id:J.toolCallId,type:"function",function:{name:J.toolName,arguments:JSON.stringify(J.input)},...E,...A?{extra_content:{google:{thought_signature:String(A)}}}:{}});break}}}z.push({role:"assistant",content:X,...L.length>0?{reasoning_content:L}:{},tool_calls:$.length>0?$:void 0,...H});break}case"tool":{for(let X of j){if(X.type==="tool-approval-response")continue;let L=X.output,$;switch(L.type){case"text":case"error-text":$=L.value;break;case"execution-denied":$=(U=L.reason)!=null?U:"Tool execution denied.";break;case"content":case"json":case"error-json":$=JSON.stringify(L.value);break}let J=u(X);z.push({role:"tool",tool_call_id:X.toolCallId,content:$,...J})}break}default:throw Error(`Unsupported role: ${V}`)}}return z}function LG({id:G,model:Y,created:Z}){return{id:G!=null?G:void 0,modelId:Y!=null?Y:void 0,timestamp:Z!=null?new Date(Z*1000):void 0}}function zG(G){switch(G){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}var g=Q.object({user:Q.string().optional(),reasoningEffort:Q.string().optional(),textVerbosity:Q.string().optional(),strictJsonSchema:Q.boolean().optional()});function TG({tools:G,toolChoice:Y}){G=(G==null?void 0:G.length)?G:void 0;let Z=[];if(G==null)return{tools:void 0,toolChoice:void 0,toolWarnings:Z};let U=[];for(let V of G)if(V.type==="provider")Z.push({type:"unsupported",feature:`provider-defined tool ${V.id}`});else U.push({type:"function",function:{name:V.name,description:V.description,parameters:V.inputSchema,...V.strict!=null?{strict:V.strict}:{}}});if(Y==null)return{tools:U,toolChoice:void 0,toolWarnings:Z};let z=Y.type;switch(z){case"auto":case"none":case"required":return{tools:U,toolChoice:z,toolWarnings:Z};case"tool":return{tools:U,toolChoice:{type:"function",function:{name:Y.toolName}},toolWarnings:Z};default:throw new T({functionality:`tool choice type: ${z}`})}}var bG=class{constructor(G,Y){this.specificationVersion="v3";var Z,U;this.modelId=G,this.config=Y;let z=(Z=Y.errorStructure)!=null?Z:m;this.chunkSchema=OG(z.errorSchema),this.failedResponseHandler=f(z),this.supportsStructuredOutputs=(U=Y.supportsStructuredOutputs)!=null?U:!1}get provider(){return this.config.provider}get providerOptionsName(){return this.config.provider.split(".")[0].trim()}get supportedUrls(){var G,Y,Z;return(Z=(Y=(G=this.config).supportedUrls)==null?void 0:Y.call(G))!=null?Z:{}}transformRequestBody(G){var Y,Z,U;return(U=(Z=(Y=this.config).transformRequestBody)==null?void 0:Z.call(Y,G))!=null?U:G}async getArgs({prompt:G,maxOutputTokens:Y,temperature:Z,topP:U,topK:z,frequencyPenalty:V,presencePenalty:j,providerOptions:B,stopSequences:H,responseFormat:X,seed:L,toolChoice:$,tools:J}){var E,A,P,K,W;let N=[],x=await R({provider:"openai-compatible",providerOptions:B,schema:g});if(x!=null)N.push({type:"other",message:"The 'openai-compatible' key in providerOptions is deprecated. Use 'openaiCompatible' instead."});let D=Object.assign(x!=null?x:{},(E=await R({provider:"openaiCompatible",providerOptions:B,schema:g}))!=null?E:{},(A=await R({provider:this.providerOptionsName,providerOptions:B,schema:g}))!=null?A:{},(P=await R({provider:h(this.providerOptionsName),providerOptions:B,schema:g}))!=null?P:{}),w=(K=D==null?void 0:D.strictJsonSchema)!=null?K:!0;if(z!=null)N.push({type:"unsupported",feature:"topK"});if((X==null?void 0:X.type)==="json"&&X.schema!=null&&!this.supportsStructuredOutputs)N.push({type:"unsupported",feature:"responseFormat",details:"JSON response format schema is only supported with structuredOutputs"});let{tools:q,toolChoice:I,toolWarnings:k}=TG({tools:J,toolChoice:$});return{metadataKey:MG(this.providerOptionsName,B),args:{model:this.modelId,user:D.user,max_tokens:Y,temperature:Z,top_p:U,frequency_penalty:V,presence_penalty:j,response_format:(X==null?void 0:X.type)==="json"?this.supportsStructuredOutputs===!0&&X.schema!=null?{type:"json_schema",json_schema:{schema:X.schema,strict:w,name:(W=X.name)!=null?W:"response",description:X.description}}:{type:"json_object"}:void 0,stop:H,seed:L,...Object.fromEntries(Object.entries({...B==null?void 0:B[this.providerOptionsName],...B==null?void 0:B[h(this.providerOptionsName)]}).filter(([d])=>!Object.keys(g.shape).includes(d))),reasoning_effort:D.reasoningEffort,verbosity:D.textVerbosity,messages:yG(G),tools:q,tool_choice:I},warnings:[...N,...k]}}async doGenerate(G){var Y,Z,U,z,V,j,B,H;let{args:X,warnings:L,metadataKey:$}=await this.getArgs({...G}),J=this.transformRequestBody(X),E=JSON.stringify(J),{responseHeaders:A,value:P,rawValue:K}=await b({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:y(this.config.headers(),G.headers),body:J,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:O(kG),abortSignal:G.abortSignal,fetch:this.config.fetch}),W=P.choices[0],N=[],x=W.message.content;if(x!=null&&x.length>0)N.push({type:"text",text:x});let D=(Y=W.message.reasoning_content)!=null?Y:W.message.reasoning;if(D!=null&&D.length>0)N.push({type:"reasoning",text:D});if(W.message.tool_calls!=null)for(let I of W.message.tool_calls){let k=(U=(Z=I.extra_content)==null?void 0:Z.google)==null?void 0:U.thought_signature;N.push({type:"tool-call",toolCallId:(z=I.id)!=null?z:_(),toolName:I.function.name,input:I.function.arguments,...k?{providerMetadata:{[$]:{thoughtSignature:k}}}:{}})}let w={[$]:{},...await((j=(V=this.config.metadataExtractor)==null?void 0:V.extractMetadata)==null?void 0:j.call(V,{parsedBody:K}))},q=(B=P.usage)==null?void 0:B.completion_tokens_details;if((q==null?void 0:q.accepted_prediction_tokens)!=null)w[$].acceptedPredictionTokens=q==null?void 0:q.accepted_prediction_tokens;if((q==null?void 0:q.rejected_prediction_tokens)!=null)w[$].rejectedPredictionTokens=q==null?void 0:q.rejected_prediction_tokens;return{content:N,finishReason:{unified:zG(W.finish_reason),raw:(H=W.finish_reason)!=null?H:void 0},usage:jG(P.usage),providerMetadata:w,request:{body:E},response:{...LG(P),headers:A,body:K},warnings:L}}async doStream(G){var Y;let{args:Z,warnings:U,metadataKey:z}=await this.getArgs({...G}),V=this.transformRequestBody({...Z,stream:!0,stream_options:this.config.includeUsage?{include_usage:!0}:void 0}),j=(Y=this.config.metadataExtractor)==null?void 0:Y.createStreamExtractor(),{responseHeaders:B,value:H}=await b({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:y(this.config.headers(),G.headers),body:V,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:s(this.chunkSchema),abortSignal:G.abortSignal,fetch:this.config.fetch}),X=[],L={unified:"other",raw:void 0},$=void 0,J=!0,E=z,A=!1,P=!1;return{stream:H.pipeThrough(new TransformStream({start(K){K.enqueue({type:"stream-start",warnings:U})},transform(K,W){var N,x,D,w,q,I,k,n,d,e,o,GG,QG,XG,YG,ZG,$G,JG;if(G.includeRawChunks)W.enqueue({type:"raw",rawValue:K.rawValue});if(!K.success){L={unified:"error",raw:void 0},W.enqueue({type:"error",error:K.error});return}if(j==null||j.processChunk(K.rawValue),"error"in K.value){L={unified:"error",raw:void 0},W.enqueue({type:"error",error:K.value.error.message});return}let c=K.value;if(J)J=!1,W.enqueue({type:"response-metadata",...LG(c)});if(c.usage!=null)$=c.usage;let v=c.choices[0];if((v==null?void 0:v.finish_reason)!=null)L={unified:zG(v.finish_reason),raw:(N=v.finish_reason)!=null?N:void 0};if((v==null?void 0:v.delta)==null)return;let C=v.delta,UG=(x=C.reasoning_content)!=null?x:C.reasoning;if(UG){if(!A)W.enqueue({type:"reasoning-start",id:"reasoning-0"}),A=!0;W.enqueue({type:"reasoning-delta",id:"reasoning-0",delta:UG})}if(C.content){if(A)W.enqueue({type:"reasoning-end",id:"reasoning-0"}),A=!1;if(!P)W.enqueue({type:"text-start",id:"txt-0"}),P=!0;W.enqueue({type:"text-delta",id:"txt-0",delta:C.content})}if(C.tool_calls!=null){if(A)W.enqueue({type:"reasoning-end",id:"reasoning-0"}),A=!1;for(let F of C.tool_calls){let i=(D=F.index)!=null?D:X.length;if(X[i]==null){if(F.id==null)throw new r({data:F,message:"Expected 'id' to be a string."});if(((w=F.function)==null?void 0:w.name)==null)throw new r({data:F,message:"Expected 'function.name' to be a string."});W.enqueue({type:"tool-input-start",id:F.id,toolName:F.function.name}),X[i]={id:F.id,type:"function",function:{name:F.function.name,arguments:(q=F.function.arguments)!=null?q:""},hasFinished:!1,thoughtSignature:(n=(k=(I=F.extra_content)==null?void 0:I.google)==null?void 0:k.thought_signature)!=null?n:void 0};let S=X[i];if(((d=S.function)==null?void 0:d.name)!=null&&((e=S.function)==null?void 0:e.arguments)!=null){if(S.function.arguments.length>0)W.enqueue({type:"tool-input-delta",id:S.id,delta:S.function.arguments});if(t(S.function.arguments))W.enqueue({type:"tool-input-end",id:S.id}),W.enqueue({type:"tool-call",toolCallId:(o=S.id)!=null?o:_(),toolName:S.function.name,input:S.function.arguments,...S.thoughtSignature?{providerMetadata:{[E]:{thoughtSignature:S.thoughtSignature}}}:{}}),S.hasFinished=!0}continue}let M=X[i];if(M.hasFinished)continue;if(((GG=F.function)==null?void 0:GG.arguments)!=null)M.function.arguments+=(XG=(QG=F.function)==null?void 0:QG.arguments)!=null?XG:"";if(W.enqueue({type:"tool-input-delta",id:M.id,delta:(YG=F.function.arguments)!=null?YG:""}),((ZG=M.function)==null?void 0:ZG.name)!=null&&(($G=M.function)==null?void 0:$G.arguments)!=null&&t(M.function.arguments))W.enqueue({type:"tool-input-end",id:M.id}),W.enqueue({type:"tool-call",toolCallId:(JG=M.id)!=null?JG:_(),toolName:M.function.name,input:M.function.arguments,...M.thoughtSignature?{providerMetadata:{[E]:{thoughtSignature:M.thoughtSignature}}}:{}}),M.hasFinished=!0}}},flush(K){var W,N,x,D,w;if(A)K.enqueue({type:"reasoning-end",id:"reasoning-0"});if(P)K.enqueue({type:"text-end",id:"txt-0"});for(let I of X.filter((k)=>!k.hasFinished))K.enqueue({type:"tool-input-end",id:I.id}),K.enqueue({type:"tool-call",toolCallId:(W=I.id)!=null?W:_(),toolName:I.function.name,input:I.function.arguments,...I.thoughtSignature?{providerMetadata:{[E]:{thoughtSignature:I.thoughtSignature}}}:{}});let q={[E]:{},...j==null?void 0:j.buildMetadata()};if(((N=$==null?void 0:$.completion_tokens_details)==null?void 0:N.accepted_prediction_tokens)!=null)q[E].acceptedPredictionTokens=(x=$==null?void 0:$.completion_tokens_details)==null?void 0:x.accepted_prediction_tokens;if(((D=$==null?void 0:$.completion_tokens_details)==null?void 0:D.rejected_prediction_tokens)!=null)q[E].rejectedPredictionTokens=(w=$==null?void 0:$.completion_tokens_details)==null?void 0:w.rejected_prediction_tokens;K.enqueue({type:"finish",finishReason:L,usage:jG($),providerMetadata:q})}})),request:{body:V},response:{headers:B}}}},FG=Q.looseObject({prompt_tokens:Q.number().nullish(),completion_tokens:Q.number().nullish(),total_tokens:Q.number().nullish(),prompt_tokens_details:Q.object({cached_tokens:Q.number().nullish()}).nullish(),completion_tokens_details:Q.object({reasoning_tokens:Q.number().nullish(),accepted_prediction_tokens:Q.number().nullish(),rejected_prediction_tokens:Q.number().nullish()}).nullish()}).nullish(),kG=Q.looseObject({id:Q.string().nullish(),created:Q.number().nullish(),model:Q.string().nullish(),choices:Q.array(Q.object({message:Q.object({role:Q.literal("assistant").nullish(),content:Q.string().nullish(),reasoning_content:Q.string().nullish(),reasoning:Q.string().nullish(),tool_calls:Q.array(Q.object({id:Q.string().nullish(),function:Q.object({name:Q.string(),arguments:Q.string()}),extra_content:Q.object({google:Q.object({thought_signature:Q.string().nullish()}).nullish()}).nullish()})).nullish()}),finish_reason:Q.string().nullish()})),usage:FG}),fG=Q.looseObject({id:Q.string().nullish(),created:Q.number().nullish(),model:Q.string().nullish(),choices:Q.array(Q.object({delta:Q.object({role:Q.enum(["assistant"]).nullish(),content:Q.string().nullish(),reasoning_content:Q.string().nullish(),reasoning:Q.string().nullish(),tool_calls:Q.array(Q.object({index:Q.number().nullish(),id:Q.string().nullish(),function:Q.object({name:Q.string().nullish(),arguments:Q.string().nullish()}),extra_content:Q.object({google:Q.object({thought_signature:Q.string().nullish()}).nullish()}).nullish()})).nullish()}).nullish(),finish_reason:Q.string().nullish()})),usage:FG}),OG=(G)=>Q.union([fG,G]);function BG(G){var Y,Z;if(G==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let U=(Y=G.prompt_tokens)!=null?Y:0,z=(Z=G.completion_tokens)!=null?Z:0;return{inputTokens:{total:U,noCache:U,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:z,text:z,reasoning:void 0},raw:G}}function vG({prompt:G,user:Y="user",assistant:Z="assistant"}){let U="";if(G[0].role==="system")U+=`${G[0].content}
|
|
3
3
|
|
|
4
4
|
`,G=G.slice(1);for(let{role:z,content:V}of G)switch(z){case"system":throw new AG({message:"Unexpected system message in prompt: ${content}",prompt:G});case"user":{let j=V.map((B)=>{switch(B.type){case"text":return B.text}}).filter(Boolean).join("");U+=`${Y}:
|
|
5
5
|
${j}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Cd as W$}from"./chunk-m2q317gh.js";import{Ed as j$}from"./chunk-x25zkrz7.js";import{Rd as A$}from"./chunk-yajd975f.js";import{Of as J$}from"./chunk-pv67gwce.js";import{ag as Z$}from"./chunk-k7aenxan.js";import"./chunk-8r6ht39z.js";import"./chunk-mqd1jsg2.js";import"./chunk-gz8sz7z1.js";import"./chunk-cjww2jmv.js";import"./chunk-nfg7nt13.js";import"./chunk-xvwvd4kq.js";import"./chunk-d3ermm6d.js";import{gh as MD}from"./chunk-caj1b9y7.js";import{Uh as hD}from"./chunk-ygs5pzk7.js";import"./chunk-vxyy2dp3.js";import"./chunk-yp5bypsp.js";import"./chunk-7hm0c2yg.js";import"./chunk-gj0wt0cy.js";import"./chunk-5hw6xa49.js";import"./chunk-326p5b10.js";import{ql as _$,rl as U,sk as sD,tl as G$,yk as k,zk as P}from"./chunk-257me4z3.js";import"./chunk-nkkch4h7.js";import"./chunk-s3mnrhbx.js";import"./chunk-ezfy0b6q.js";import"./chunk-bn0h9dny.js";import"./chunk-hnvn2c25.js";import"./chunk-3nx7112w.js";import"./chunk-htz93dsd.js";import"./chunk-vcw00k0n.js";import{no as X$,qo as Y$}from"./chunk-we9cv8we.js";import"./chunk-2hc5z7b5.js";import"./chunk-9gazyynx.js";import"./chunk-4jtxtkj7.js";import"./chunk-ay8emwym.js";import"./chunk-2maqde7w.js";import{_p as f$}from"./chunk-kj20f048.js";import"./chunk-cqtkxwd8.js";import"./chunk-x9rbv6p6.js";import"./chunk-g5rabwre.js";import"./chunk-jbx3s7nw.js";import"./chunk-15hw2z9t.js";import"./chunk-48ge2ryx.js";import"./chunk-n9xns8by.js";import"./chunk-y9q0hb7b.js";import"./chunk-d9hbhkbq.js";import"./chunk-ad72gb5f.js";import"./chunk-d6ry9418.js";import"./chunk-0dt0bxz6.js";import"./chunk-10bjs581.js";import"./chunk-4cnwn1rh.js";import"./chunk-764fksh3.js";import{Ms as w$,Vr as Q$,_s as H}from"./chunk-xj765svc.js";import{st as kD}from"./chunk-tqj69nh6.js";import"./chunk-ag8kz1e7.js";import"./chunk-5tray1fw.js";import{St as D}from"./chunk-c11d28qn.js";import"./chunk-mzs2pjyc.js";import"./chunk-gagtmjmp.js";import"./chunk-zs8kqdsf.js";import"./chunk-dxpj0cxh.js";import"./chunk-zw815d68.js";import{DO as ow}from"./chunk-7xm75w1e.js";var O={authenticate:"authenticate",initialize:"initialize",session_cancel:"session/cancel",session_close:"session/close",session_fork:"session/fork",session_list:"session/list",session_load:"session/load",session_new:"session/new",session_prompt:"session/prompt",session_resume:"session/resume",session_set_config_option:"session/set_config_option",session_set_mode:"session/set_mode",session_set_model:"session/set_model"},F={fs_read_text_file:"fs/read_text_file",fs_write_text_file:"fs/write_text_file",session_request_permission:"session/request_permission",session_update:"session/update",terminal_create:"terminal/create",terminal_kill:"terminal/kill",terminal_output:"terminal/output",terminal_release:"terminal/release",terminal_wait_for_exit:"terminal/wait_for_exit"};var K$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),terminal:D.boolean().optional().default(!1)}),B$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),label:D.string().nullish(),name:D.string(),optional:D.boolean().optional().default(!1),secret:D.boolean().optional().default(!0)}),O$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),id:D.string(),name:D.string()}),N$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),id:D.string(),link:D.string().nullish(),name:D.string(),vars:D.array(B$)}),F$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),args:D.array(D.string()).optional(),description:D.string().nullish(),env:D.record(D.string(),D.string()).optional(),id:D.string(),name:D.string()}),L$=D.union([N$.and(D.object({type:D.literal("env_var")})),F$.and(D.object({type:D.literal("terminal")})),O$]),n=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),methodId:D.string()}),x$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),V$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),blob:D.string(),mimeType:D.string().nullish(),uri:D.string()}),H$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),P$=D.object({amount:D.number(),currency:D.string()}),k$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),terminalId:D.string()}),T$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),newText:D.string(),oldText:D.string().nullish(),path:D.string()}),vD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),name:D.string(),value:D.string()}),U$=D.union([D.literal(-32700),D.literal(-32600),D.literal(-32601),D.literal(-32602),D.literal(-32603),D.literal(-32800),D.literal(-32000),D.literal(-32002),D.number().int().min(-2147483648,{message:"Invalid value: Expected int32 to be >= -2147483648"}).max(2147483647,{message:"Invalid value: Expected int32 to be <= 2147483647"})]),ID=D.object({code:U$,data:D.unknown().optional(),message:D.string()}),qD=D.unknown(),SD=D.unknown(),RD=D.unknown(),b$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),readTextFile:D.boolean().optional().default(!1),writeTextFile:D.boolean().optional().default(!1)}),h$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),auth:K$.optional().default({terminal:!1}),fs:b$.optional().default({readTextFile:!1,writeTextFile:!1}),terminal:D.boolean().optional().default(!1)}),cD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),name:D.string(),value:D.string()}),uD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),name:D.string(),title:D.string().nullish(),version:D.string()}),M$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),t=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cursor:D.string().nullish(),cwd:D.string().nullish()}),C$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),http:D.boolean().optional().default(!1),sse:D.boolean().optional().default(!1)}),E$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),headers:D.array(cD),name:D.string(),url:D.string()}),v$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),headers:D.array(cD),name:D.string(),url:D.string()}),I$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),args:D.array(D.string()),command:D.string(),env:D.array(vD),name:D.string()}),I=D.union([E$.and(D.object({type:D.literal("http")})),v$.and(D.object({type:D.literal("sse")})),I$]),o=D.string(),q$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),modelId:o,name:D.string()}),r=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I)}),gD=D.string(),S$=D.union([D.literal("allow_once"),D.literal("allow_always"),D.literal("reject_once"),D.literal("reject_always")]),R$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),kind:S$,name:D.string(),optionId:gD}),c$=D.union([D.literal("high"),D.literal("medium"),D.literal("low")]),u$=D.union([D.literal("pending"),D.literal("in_progress"),D.literal("completed")]),g$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.string(),priority:c$,status:u$}),l$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),entries:D.array(g$)}),d$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),audio:D.boolean().optional().default(!1),embeddedContext:D.boolean().optional().default(!1),image:D.boolean().optional().default(!1)}),lD=D.number().int().gte(0).lte(65535),z=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),clientCapabilities:h$.optional().default({auth:{terminal:!1},fs:{readTextFile:!1,writeTextFile:!1},terminal:!1}),clientInfo:uD.nullish(),protocolVersion:lD}),i$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.string()}),m$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),T=D.union([D.number(),D.string()]).nullable(),sw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),requestId:T}),p$=D.enum(["assistant","user"]),E=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),audience:D.array(p$).nullish(),lastModified:D.string().nullish(),priority:D.number().nullish()}),n$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),data:D.string(),mimeType:D.string()}),t$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),data:D.string(),mimeType:D.string(),uri:D.string().nullish()}),o$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),description:D.string().nullish(),mimeType:D.string().nullish(),name:D.string(),size:D.number().nullish(),title:D.string().nullish(),uri:D.string()}),r$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),optionId:gD}),z$=D.union([D.object({outcome:D.literal("cancelled")}),r$.and(D.object({outcome:D.literal("selected")}))]),a$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),outcome:z$}),s$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),e$=D.object({currentValue:D.boolean()}),Dw=D.string(),dD=D.string(),$w=D.union([D.literal("mode"),D.literal("model"),D.literal("thought_level"),D.string()]),a=D.string(),iD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),name:D.string(),value:a}),ww=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),group:Dw,name:D.string(),options:D.array(iD)}),Qw=D.union([D.array(iD),D.array(ww)]),fw=D.object({currentValue:a,options:Qw}),M=D.intersection(D.union([fw.and(D.object({type:D.literal("select")})),e$.and(D.object({type:D.literal("boolean")}))]),D.object({_meta:D.record(D.string(),D.unknown()).nullish(),category:$w.nullish(),description:D.string().nullish(),id:dD,name:D.string()})),_w=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M)}),Gw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),N=D.string(),s=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N}),ew=D.object({method:D.string(),params:D.union([s,qD]).nullish()}),e=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N}),DD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),args:D.array(D.string()).optional(),command:D.string(),cwd:D.string().nullish(),env:D.array(vD).optional(),outputByteLimit:D.number().nullish(),sessionId:N}),$D=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I).optional(),sessionId:N}),wD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),QD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I),sessionId:N}),fD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),limit:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),line:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),path:D.string(),sessionId:N}),_D=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),GD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I).optional(),sessionId:N}),Jw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),sessionId:N,title:D.string().nullish(),updatedAt:D.string().nullish()}),Xw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),nextCursor:D.string().nullish(),sessions:D.array(Jw)}),Yw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),title:D.string().nullish(),updatedAt:D.string().nullish()}),Zw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),q=D.string(),jw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),currentModeId:q}),Aw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),id:q,name:D.string()}),S=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),availableModes:D.array(Aw),currentModeId:q}),R=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),availableModels:D.array(q$),currentModelId:o}),Ww=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish(),sessionId:N}),yw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish()}),Kw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish(),sessionId:N}),Bw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish()}),Ow=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),Nw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),close:s$.nullish(),fork:Gw.nullish(),list:Zw.nullish(),resume:Ow.nullish()}),Fw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),loadSession:D.boolean().optional().default(!1),mcpCapabilities:C$.optional().default({http:!1,sse:!1}),promptCapabilities:d$.optional().default({audio:!1,embeddedContext:!1,image:!1}),sessionCapabilities:Nw.optional().default({})}),Lw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),agentCapabilities:Fw.optional().default({loadSession:!1,mcpCapabilities:{http:!1,sse:!1},promptCapabilities:{audio:!1,embeddedContext:!1,image:!1},sessionCapabilities:{}}),agentInfo:uD.nullish(),authMethods:D.array(L$).optional().default([]),protocolVersion:lD}),JD=D.intersection(D.union([D.object({type:D.literal("boolean"),value:D.boolean()}),D.object({value:a})]),D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configId:dD,sessionId:N})),xw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M)}),XD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),modeId:q,sessionId:N}),Vw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),YD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),modelId:o,sessionId:N}),Hw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),Pw=D.union([D.literal("end_turn"),D.literal("max_tokens"),D.literal("max_turn_requests"),D.literal("refusal"),D.literal("cancelled")]),kw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),terminalId:D.string()}),Tw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),exitCode:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),signal:D.string().nullish()}),ZD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),Uw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),exitStatus:Tw.nullish(),output:D.string(),truncated:D.boolean()}),bw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),text:D.string()}),hw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),mimeType:D.string().nullish(),text:D.string(),uri:D.string()}),Mw=D.union([hw,V$]),Cw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),resource:Mw}),jD=D.union([bw.and(D.object({type:D.literal("text")})),t$.and(D.object({type:D.literal("image")})),n$.and(D.object({type:D.literal("audio")})),o$.and(D.object({type:D.literal("resource_link")})),Cw.and(D.object({type:D.literal("resource")}))]),Ew=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:jD}),p=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:jD,messageId:D.string().nullish()}),AD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),messageId:D.string().nullish(),prompt:D.array(jD),sessionId:N}),DQ=D.object({id:T,method:D.string(),params:D.union([z,n,r,QD,t,$D,GD,e,XD,JD,AD,YD,SD]).nullish()}),mD=D.union([Ew.and(D.object({type:D.literal("content")})),T$.and(D.object({type:D.literal("diff")})),kw.and(D.object({type:D.literal("terminal")}))]),pD=D.string(),nD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),line:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),path:D.string()}),tD=D.union([D.literal("pending"),D.literal("in_progress"),D.literal("completed"),D.literal("failed")]),oD=D.union([D.literal("read"),D.literal("edit"),D.literal("delete"),D.literal("move"),D.literal("search"),D.literal("execute"),D.literal("think"),D.literal("fetch"),D.literal("switch_mode"),D.literal("other")]),vw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.array(mD).optional(),kind:oD.optional(),locations:D.array(nD).optional(),rawInput:D.unknown().optional(),rawOutput:D.unknown().optional(),status:tD.optional(),title:D.string(),toolCallId:pD}),rD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.array(mD).nullish(),kind:oD.nullish(),locations:D.array(nD).nullish(),rawInput:D.unknown().optional(),rawOutput:D.unknown().optional(),status:tD.nullish(),title:D.string().nullish(),toolCallId:pD}),WD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),options:D.array(R$),sessionId:N,toolCall:rD}),Iw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),hint:D.string()}),qw=Iw,Sw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string(),input:qw.nullish(),name:D.string()}),Rw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),availableCommands:D.array(Sw)}),cw=D.object({cachedReadTokens:D.number().nullish(),cachedWriteTokens:D.number().nullish(),inputTokens:D.number(),outputTokens:D.number(),thoughtTokens:D.number().nullish(),totalTokens:D.number()}),uw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),stopReason:Pw,usage:cw.nullish(),userMessageId:D.string().nullish()}),$Q=D.union([D.object({id:T,result:D.union([Lw,x$,Kw,yw,Xw,Ww,Bw,H$,Vw,xw,uw,Hw,RD])}),D.object({error:ID,id:T})]),gw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cost:P$.nullish(),size:D.number(),used:D.number()}),lw=D.union([p.and(D.object({sessionUpdate:D.literal("user_message_chunk")})),p.and(D.object({sessionUpdate:D.literal("agent_message_chunk")})),p.and(D.object({sessionUpdate:D.literal("agent_thought_chunk")})),vw.and(D.object({sessionUpdate:D.literal("tool_call")})),rD.and(D.object({sessionUpdate:D.literal("tool_call_update")})),l$.and(D.object({sessionUpdate:D.literal("plan")})),Rw.and(D.object({sessionUpdate:D.literal("available_commands_update")})),jw.and(D.object({sessionUpdate:D.literal("current_mode_update")})),_w.and(D.object({sessionUpdate:D.literal("config_option_update")})),Yw.and(D.object({sessionUpdate:D.literal("session_info_update")})),gw.and(D.object({sessionUpdate:D.literal("usage_update")}))]),yD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,update:lw}),wQ=D.object({method:D.string(),params:D.union([yD,qD]).nullish()}),KD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),dw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),exitCode:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),signal:D.string().nullish()}),BD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.string(),path:D.string(),sessionId:N}),QQ=D.object({id:T,method:D.string(),params:D.union([BD,fD,WD,DD,ZD,_D,KD,wD,SD]).nullish()}),iw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),fQ=D.union([D.object({id:T,result:D.union([iw,i$,a$,k$,Uw,m$,dw,M$,RD])}),D.object({error:ID,id:T})]);function zD($,Q){let w=new TextEncoder,f=new TextDecoder,X=new ReadableStream({async start(_){let J="",j=Q.getReader();try{while(!0){let{value:B,done:Y}=await j.read();if(Y)break;if(!B)continue;J+=f.decode(B,{stream:!0});let Z=J.split(`
|
|
2
|
+
import{Cd as W$}from"./chunk-4ntbxet5.js";import{Ed as j$}from"./chunk-ppkqr9cn.js";import{Rd as A$}from"./chunk-yajd975f.js";import{Of as J$}from"./chunk-9msnx26q.js";import{ag as Z$}from"./chunk-gdb67zmn.js";import"./chunk-0csy9x1n.js";import"./chunk-knpyt206.js";import"./chunk-ya8g02hv.js";import"./chunk-6y423jax.js";import"./chunk-nfg7nt13.js";import"./chunk-rv1stdvb.js";import"./chunk-q5fygrnr.js";import{gh as MD}from"./chunk-28cm7m3t.js";import{Uh as hD}from"./chunk-w9nzsd3w.js";import"./chunk-zfcp509b.js";import"./chunk-yp5bypsp.js";import"./chunk-7hm0c2yg.js";import"./chunk-gj0wt0cy.js";import"./chunk-md8161zd.js";import"./chunk-yk97q51d.js";import{ql as _$,rl as U,sk as sD,tl as G$,yk as k,zk as P}from"./chunk-wmaz57f6.js";import"./chunk-hg0etbkx.js";import"./chunk-za63b5mc.js";import"./chunk-j8q252w3.js";import"./chunk-nj4d554m.js";import"./chunk-1hmq2fpt.js";import"./chunk-y370dqf3.js";import"./chunk-snr44en9.js";import"./chunk-keveg5gx.js";import{Mp as X$,Pp as Y$}from"./chunk-8eje5baf.js";import"./chunk-xqdrr7xg.js";import"./chunk-6b196wjz.js";import"./chunk-94pcpztx.js";import"./chunk-hw5qyht3.js";import"./chunk-z8gdmvgg.js";import{xr as f$}from"./chunk-kwx9ewe0.js";import"./chunk-cqtkxwd8.js";import"./chunk-c5pb87yf.js";import"./chunk-g6cyhxwg.js";import"./chunk-n96tvjgj.js";import"./chunk-pkc4ddw1.js";import"./chunk-xgr6jnd6.js";import"./chunk-a48t0g95.js";import"./chunk-yqk58hf6.js";import"./chunk-wwgd4rzx.js";import"./chunk-qc3ce3vc.js";import"./chunk-6p94fpbn.js";import"./chunk-fg35hwa0.js";import"./chunk-79agp7v3.js";import"./chunk-kv72hxkp.js";import"./chunk-vkqzmzpw.js";import{ju as w$,st as Q$,xu as H}from"./chunk-x9s90xd1.js";import{Ru as kD}from"./chunk-e7v9trve.js";import"./chunk-zh3fny3z.js";import"./chunk-m4j7jyrd.js";import{pv as D}from"./chunk-gmzrvxnv.js";import"./chunk-mpygdb5a.js";import"./chunk-wfd5h6ax.js";import"./chunk-a0rp7gh4.js";import"./chunk-kfmz2p27.js";import"./chunk-ee23d2nz.js";import{aQ as ow}from"./chunk-3k2b05fv.js";var O={authenticate:"authenticate",initialize:"initialize",session_cancel:"session/cancel",session_close:"session/close",session_fork:"session/fork",session_list:"session/list",session_load:"session/load",session_new:"session/new",session_prompt:"session/prompt",session_resume:"session/resume",session_set_config_option:"session/set_config_option",session_set_mode:"session/set_mode",session_set_model:"session/set_model"},F={fs_read_text_file:"fs/read_text_file",fs_write_text_file:"fs/write_text_file",session_request_permission:"session/request_permission",session_update:"session/update",terminal_create:"terminal/create",terminal_kill:"terminal/kill",terminal_output:"terminal/output",terminal_release:"terminal/release",terminal_wait_for_exit:"terminal/wait_for_exit"};var K$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),terminal:D.boolean().optional().default(!1)}),B$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),label:D.string().nullish(),name:D.string(),optional:D.boolean().optional().default(!1),secret:D.boolean().optional().default(!0)}),O$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),id:D.string(),name:D.string()}),N$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),id:D.string(),link:D.string().nullish(),name:D.string(),vars:D.array(B$)}),F$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),args:D.array(D.string()).optional(),description:D.string().nullish(),env:D.record(D.string(),D.string()).optional(),id:D.string(),name:D.string()}),L$=D.union([N$.and(D.object({type:D.literal("env_var")})),F$.and(D.object({type:D.literal("terminal")})),O$]),n=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),methodId:D.string()}),x$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),V$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),blob:D.string(),mimeType:D.string().nullish(),uri:D.string()}),H$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),P$=D.object({amount:D.number(),currency:D.string()}),k$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),terminalId:D.string()}),T$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),newText:D.string(),oldText:D.string().nullish(),path:D.string()}),vD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),name:D.string(),value:D.string()}),U$=D.union([D.literal(-32700),D.literal(-32600),D.literal(-32601),D.literal(-32602),D.literal(-32603),D.literal(-32800),D.literal(-32000),D.literal(-32002),D.number().int().min(-2147483648,{message:"Invalid value: Expected int32 to be >= -2147483648"}).max(2147483647,{message:"Invalid value: Expected int32 to be <= 2147483647"})]),ID=D.object({code:U$,data:D.unknown().optional(),message:D.string()}),qD=D.unknown(),SD=D.unknown(),RD=D.unknown(),b$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),readTextFile:D.boolean().optional().default(!1),writeTextFile:D.boolean().optional().default(!1)}),h$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),auth:K$.optional().default({terminal:!1}),fs:b$.optional().default({readTextFile:!1,writeTextFile:!1}),terminal:D.boolean().optional().default(!1)}),cD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),name:D.string(),value:D.string()}),uD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),name:D.string(),title:D.string().nullish(),version:D.string()}),M$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),t=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cursor:D.string().nullish(),cwd:D.string().nullish()}),C$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),http:D.boolean().optional().default(!1),sse:D.boolean().optional().default(!1)}),E$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),headers:D.array(cD),name:D.string(),url:D.string()}),v$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),headers:D.array(cD),name:D.string(),url:D.string()}),I$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),args:D.array(D.string()),command:D.string(),env:D.array(vD),name:D.string()}),I=D.union([E$.and(D.object({type:D.literal("http")})),v$.and(D.object({type:D.literal("sse")})),I$]),o=D.string(),q$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),modelId:o,name:D.string()}),r=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I)}),gD=D.string(),S$=D.union([D.literal("allow_once"),D.literal("allow_always"),D.literal("reject_once"),D.literal("reject_always")]),R$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),kind:S$,name:D.string(),optionId:gD}),c$=D.union([D.literal("high"),D.literal("medium"),D.literal("low")]),u$=D.union([D.literal("pending"),D.literal("in_progress"),D.literal("completed")]),g$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.string(),priority:c$,status:u$}),l$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),entries:D.array(g$)}),d$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),audio:D.boolean().optional().default(!1),embeddedContext:D.boolean().optional().default(!1),image:D.boolean().optional().default(!1)}),lD=D.number().int().gte(0).lte(65535),z=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),clientCapabilities:h$.optional().default({auth:{terminal:!1},fs:{readTextFile:!1,writeTextFile:!1},terminal:!1}),clientInfo:uD.nullish(),protocolVersion:lD}),i$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.string()}),m$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),T=D.union([D.number(),D.string()]).nullable(),sw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),requestId:T}),p$=D.enum(["assistant","user"]),E=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),audience:D.array(p$).nullish(),lastModified:D.string().nullish(),priority:D.number().nullish()}),n$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),data:D.string(),mimeType:D.string()}),t$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),data:D.string(),mimeType:D.string(),uri:D.string().nullish()}),o$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),description:D.string().nullish(),mimeType:D.string().nullish(),name:D.string(),size:D.number().nullish(),title:D.string().nullish(),uri:D.string()}),r$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),optionId:gD}),z$=D.union([D.object({outcome:D.literal("cancelled")}),r$.and(D.object({outcome:D.literal("selected")}))]),a$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),outcome:z$}),s$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),e$=D.object({currentValue:D.boolean()}),Dw=D.string(),dD=D.string(),$w=D.union([D.literal("mode"),D.literal("model"),D.literal("thought_level"),D.string()]),a=D.string(),iD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),name:D.string(),value:a}),ww=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),group:Dw,name:D.string(),options:D.array(iD)}),Qw=D.union([D.array(iD),D.array(ww)]),fw=D.object({currentValue:a,options:Qw}),M=D.intersection(D.union([fw.and(D.object({type:D.literal("select")})),e$.and(D.object({type:D.literal("boolean")}))]),D.object({_meta:D.record(D.string(),D.unknown()).nullish(),category:$w.nullish(),description:D.string().nullish(),id:dD,name:D.string()})),_w=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M)}),Gw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),N=D.string(),s=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N}),ew=D.object({method:D.string(),params:D.union([s,qD]).nullish()}),e=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N}),DD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),args:D.array(D.string()).optional(),command:D.string(),cwd:D.string().nullish(),env:D.array(vD).optional(),outputByteLimit:D.number().nullish(),sessionId:N}),$D=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I).optional(),sessionId:N}),wD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),QD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I),sessionId:N}),fD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),limit:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),line:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),path:D.string(),sessionId:N}),_D=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),GD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I).optional(),sessionId:N}),Jw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),sessionId:N,title:D.string().nullish(),updatedAt:D.string().nullish()}),Xw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),nextCursor:D.string().nullish(),sessions:D.array(Jw)}),Yw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),title:D.string().nullish(),updatedAt:D.string().nullish()}),Zw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),q=D.string(),jw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),currentModeId:q}),Aw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),id:q,name:D.string()}),S=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),availableModes:D.array(Aw),currentModeId:q}),R=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),availableModels:D.array(q$),currentModelId:o}),Ww=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish(),sessionId:N}),yw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish()}),Kw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish(),sessionId:N}),Bw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish()}),Ow=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),Nw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),close:s$.nullish(),fork:Gw.nullish(),list:Zw.nullish(),resume:Ow.nullish()}),Fw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),loadSession:D.boolean().optional().default(!1),mcpCapabilities:C$.optional().default({http:!1,sse:!1}),promptCapabilities:d$.optional().default({audio:!1,embeddedContext:!1,image:!1}),sessionCapabilities:Nw.optional().default({})}),Lw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),agentCapabilities:Fw.optional().default({loadSession:!1,mcpCapabilities:{http:!1,sse:!1},promptCapabilities:{audio:!1,embeddedContext:!1,image:!1},sessionCapabilities:{}}),agentInfo:uD.nullish(),authMethods:D.array(L$).optional().default([]),protocolVersion:lD}),JD=D.intersection(D.union([D.object({type:D.literal("boolean"),value:D.boolean()}),D.object({value:a})]),D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configId:dD,sessionId:N})),xw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M)}),XD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),modeId:q,sessionId:N}),Vw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),YD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),modelId:o,sessionId:N}),Hw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),Pw=D.union([D.literal("end_turn"),D.literal("max_tokens"),D.literal("max_turn_requests"),D.literal("refusal"),D.literal("cancelled")]),kw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),terminalId:D.string()}),Tw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),exitCode:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),signal:D.string().nullish()}),ZD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),Uw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),exitStatus:Tw.nullish(),output:D.string(),truncated:D.boolean()}),bw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),text:D.string()}),hw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),mimeType:D.string().nullish(),text:D.string(),uri:D.string()}),Mw=D.union([hw,V$]),Cw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),resource:Mw}),jD=D.union([bw.and(D.object({type:D.literal("text")})),t$.and(D.object({type:D.literal("image")})),n$.and(D.object({type:D.literal("audio")})),o$.and(D.object({type:D.literal("resource_link")})),Cw.and(D.object({type:D.literal("resource")}))]),Ew=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:jD}),p=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:jD,messageId:D.string().nullish()}),AD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),messageId:D.string().nullish(),prompt:D.array(jD),sessionId:N}),DQ=D.object({id:T,method:D.string(),params:D.union([z,n,r,QD,t,$D,GD,e,XD,JD,AD,YD,SD]).nullish()}),mD=D.union([Ew.and(D.object({type:D.literal("content")})),T$.and(D.object({type:D.literal("diff")})),kw.and(D.object({type:D.literal("terminal")}))]),pD=D.string(),nD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),line:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),path:D.string()}),tD=D.union([D.literal("pending"),D.literal("in_progress"),D.literal("completed"),D.literal("failed")]),oD=D.union([D.literal("read"),D.literal("edit"),D.literal("delete"),D.literal("move"),D.literal("search"),D.literal("execute"),D.literal("think"),D.literal("fetch"),D.literal("switch_mode"),D.literal("other")]),vw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.array(mD).optional(),kind:oD.optional(),locations:D.array(nD).optional(),rawInput:D.unknown().optional(),rawOutput:D.unknown().optional(),status:tD.optional(),title:D.string(),toolCallId:pD}),rD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.array(mD).nullish(),kind:oD.nullish(),locations:D.array(nD).nullish(),rawInput:D.unknown().optional(),rawOutput:D.unknown().optional(),status:tD.nullish(),title:D.string().nullish(),toolCallId:pD}),WD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),options:D.array(R$),sessionId:N,toolCall:rD}),Iw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),hint:D.string()}),qw=Iw,Sw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string(),input:qw.nullish(),name:D.string()}),Rw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),availableCommands:D.array(Sw)}),cw=D.object({cachedReadTokens:D.number().nullish(),cachedWriteTokens:D.number().nullish(),inputTokens:D.number(),outputTokens:D.number(),thoughtTokens:D.number().nullish(),totalTokens:D.number()}),uw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),stopReason:Pw,usage:cw.nullish(),userMessageId:D.string().nullish()}),$Q=D.union([D.object({id:T,result:D.union([Lw,x$,Kw,yw,Xw,Ww,Bw,H$,Vw,xw,uw,Hw,RD])}),D.object({error:ID,id:T})]),gw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cost:P$.nullish(),size:D.number(),used:D.number()}),lw=D.union([p.and(D.object({sessionUpdate:D.literal("user_message_chunk")})),p.and(D.object({sessionUpdate:D.literal("agent_message_chunk")})),p.and(D.object({sessionUpdate:D.literal("agent_thought_chunk")})),vw.and(D.object({sessionUpdate:D.literal("tool_call")})),rD.and(D.object({sessionUpdate:D.literal("tool_call_update")})),l$.and(D.object({sessionUpdate:D.literal("plan")})),Rw.and(D.object({sessionUpdate:D.literal("available_commands_update")})),jw.and(D.object({sessionUpdate:D.literal("current_mode_update")})),_w.and(D.object({sessionUpdate:D.literal("config_option_update")})),Yw.and(D.object({sessionUpdate:D.literal("session_info_update")})),gw.and(D.object({sessionUpdate:D.literal("usage_update")}))]),yD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,update:lw}),wQ=D.object({method:D.string(),params:D.union([yD,qD]).nullish()}),KD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),dw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),exitCode:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),signal:D.string().nullish()}),BD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.string(),path:D.string(),sessionId:N}),QQ=D.object({id:T,method:D.string(),params:D.union([BD,fD,WD,DD,ZD,_D,KD,wD,SD]).nullish()}),iw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),fQ=D.union([D.object({id:T,result:D.union([iw,i$,a$,k$,Uw,m$,dw,M$,RD])}),D.object({error:ID,id:T})]);function zD($,Q){let w=new TextEncoder,f=new TextDecoder,X=new ReadableStream({async start(_){let J="",j=Q.getReader();try{while(!0){let{value:B,done:Y}=await j.read();if(Y)break;if(!B)continue;J+=f.decode(B,{stream:!0});let Z=J.split(`
|
|
3
3
|
`);J=Z.pop()||"";for(let A of Z){let y=A.trim();if(y)try{let W=JSON.parse(y);_.enqueue(W)}catch(W){console.error("Failed to parse JSON message:",y,W)}}}}finally{j.releaseLock(),_.close()}}}),G=new WritableStream({async write(_){let J=JSON.stringify(_)+`
|
|
4
4
|
`,j=$.getWriter();try{await j.write(w.encode(J))}finally{j.releaseLock()}}});return{readable:X,writable:G}}class OD{#D;constructor($,Q){let w=$(this),f=async(G,_)=>{switch(G){case O.initialize:{let J=z.parse(_);return w.initialize(J)}case O.session_new:{let J=r.parse(_);return w.newSession(J)}case O.session_load:{if(!w.loadSession)throw K.methodNotFound(G);let J=QD.parse(_);return w.loadSession(J)}case O.session_list:{if(!w.listSessions)throw K.methodNotFound(G);let J=t.parse(_);return w.listSessions(J)}case O.session_fork:{if(!w.unstable_forkSession)throw K.methodNotFound(G);let J=$D.parse(_);return w.unstable_forkSession(J)}case O.session_resume:{if(!w.unstable_resumeSession)throw K.methodNotFound(G);let J=GD.parse(_);return w.unstable_resumeSession(J)}case O.session_close:{if(!w.unstable_closeSession)throw K.methodNotFound(G);let J=e.parse(_);return w.unstable_closeSession(J)}case O.session_set_mode:{if(!w.setSessionMode)throw K.methodNotFound(G);let J=XD.parse(_);return await w.setSessionMode(J)??{}}case O.authenticate:{let J=n.parse(_);return await w.authenticate(J)??{}}case O.session_prompt:{let J=AD.parse(_);return w.prompt(J)}case O.session_set_model:{if(!w.unstable_setSessionModel)throw K.methodNotFound(G);let J=YD.parse(_);return await w.unstable_setSessionModel(J)??{}}case O.session_set_config_option:{if(!w.setSessionConfigOption)throw K.methodNotFound(G);let J=JD.parse(_);return w.setSessionConfigOption(J)}default:if(w.extMethod)return w.extMethod(G,_);throw K.methodNotFound(G)}},X=async(G,_)=>{switch(G){case O.session_cancel:{let J=s.parse(_);return w.cancel(J)}default:if(w.extNotification)return w.extNotification(G,_);throw K.methodNotFound(G)}};this.#D=new ND(f,X,Q)}async sessionUpdate($){return await this.#D.sendNotification(F.session_update,$)}async requestPermission($){return await this.#D.sendRequest(F.session_request_permission,$)}async readTextFile($){return await this.#D.sendRequest(F.fs_read_text_file,$)}async writeTextFile($){return await this.#D.sendRequest(F.fs_write_text_file,$)??{}}async createTerminal($){let Q=await this.#D.sendRequest(F.terminal_create,$);return new aD(Q.terminalId,$.sessionId,this.#D)}async extMethod($,Q){return await this.#D.sendRequest($,Q)}async extNotification($,Q){return await this.#D.sendNotification($,Q)}get signal(){return this.#D.signal}get closed(){return this.#D.closed}}class aD{id;#D;#$;constructor($,Q,w){this.id=$,this.#D=Q,this.#$=w}async currentOutput(){return await this.#$.sendRequest(F.terminal_output,{sessionId:this.#D,terminalId:this.id})}async waitForExit(){return await this.#$.sendRequest(F.terminal_wait_for_exit,{sessionId:this.#D,terminalId:this.id})}async kill(){return await this.#$.sendRequest(F.terminal_kill,{sessionId:this.#D,terminalId:this.id})??{}}async release(){return await this.#$.sendRequest(F.terminal_release,{sessionId:this.#D,terminalId:this.id})??{}}async[Symbol.asyncDispose](){await this.release()}}class pw{#D;constructor($,Q){let w=$(this),f=async(G,_)=>{switch(G){case F.fs_write_text_file:{let J=BD.parse(_);return w.writeTextFile?.(J)}case F.fs_read_text_file:{let J=fD.parse(_);return w.readTextFile?.(J)}case F.session_request_permission:{let J=WD.parse(_);return w.requestPermission(J)}case F.terminal_create:{let J=DD.parse(_);return w.createTerminal?.(J)}case F.terminal_output:{let J=ZD.parse(_);return w.terminalOutput?.(J)}case F.terminal_release:{let J=_D.parse(_);return await w.releaseTerminal?.(J)??{}}case F.terminal_wait_for_exit:{let J=KD.parse(_);return w.waitForTerminalExit?.(J)}case F.terminal_kill:{let J=wD.parse(_);return await w.killTerminal?.(J)??{}}default:if(w.extMethod)return w.extMethod(G,_);throw K.methodNotFound(G)}},X=async(G,_)=>{switch(G){case F.session_update:{let J=yD.parse(_);return w.sessionUpdate(J)}default:if(w.extNotification)return w.extNotification(G,_);throw K.methodNotFound(G)}};this.#D=new ND(f,X,Q)}async initialize($){return await this.#D.sendRequest(O.initialize,$)}async newSession($){return await this.#D.sendRequest(O.session_new,$)}async loadSession($){return await this.#D.sendRequest(O.session_load,$)??{}}async unstable_forkSession($){return await this.#D.sendRequest(O.session_fork,$)}async listSessions($){return await this.#D.sendRequest(O.session_list,$)}async unstable_resumeSession($){return await this.#D.sendRequest(O.session_resume,$)}async unstable_closeSession($){return await this.#D.sendRequest(O.session_close,$)}async setSessionMode($){return await this.#D.sendRequest(O.session_set_mode,$)??{}}async unstable_setSessionModel($){return await this.#D.sendRequest(O.session_set_model,$)??{}}async setSessionConfigOption($){return await this.#D.sendRequest(O.session_set_config_option,$)}async authenticate($){return await this.#D.sendRequest(O.authenticate,$)??{}}async prompt($){return await this.#D.sendRequest(O.session_prompt,$)}async cancel($){return await this.#D.sendNotification(O.session_cancel,$)}async extMethod($,Q){return await this.#D.sendRequest($,Q)}async extNotification($,Q){return await this.#D.sendNotification($,Q)}get signal(){return this.#D.signal}get closed(){return this.#D.closed}}class ND{#D=new Map;#$=0;#G;#J;#Q;#f=Promise.resolve();#_=new AbortController;#X;constructor($,Q,w){this.#G=$,this.#J=Q,this.#Q=w,this.#X=new Promise((f)=>{this.#_.signal.addEventListener("abort",()=>f())}),this.#Y()}get signal(){return this.#_.signal}get closed(){return this.#X}async#Y(){let $=this.#Q.readable.getReader();try{while(!0){let{value:Q,done:w}=await $.read();if(w)break;if(!Q)continue;try{this.#Z(Q)}catch(f){if(console.error("Unexpected error during message processing:",Q,f),"id"in Q&&Q.id!==void 0)this.#w({jsonrpc:"2.0",id:Q.id,error:{code:-32700,message:"Parse error"}})}}}finally{$.releaseLock(),this.#_.abort()}}async#Z($){if("method"in $&&"id"in $){let Q=await this.#j($.method,$.params);if("error"in Q)console.error("Error handling request",$,Q.error);await this.#w({jsonrpc:"2.0",id:$.id,...Q})}else if("method"in $){let Q=await this.#A($.method,$.params);if("error"in Q)console.error("Error handling notification",$,Q.error)}else if("id"in $)this.#W($);else console.error("Invalid message",{message:$})}async#j($,Q){try{return{result:await this.#G($,Q)??null}}catch(w){if(w instanceof K)return w.toResult();if(w instanceof D.ZodError)return K.invalidParams(w.format()).toResult();let f;if(w instanceof Error)f=w.message;else if(typeof w==="object"&&w!=null&&"message"in w&&typeof w.message==="string")f=w.message;try{return K.internalError(f?JSON.parse(f):{}).toResult()}catch{return K.internalError({details:f}).toResult()}}}async#A($,Q){try{return await this.#J($,Q),{result:null}}catch(w){if(w instanceof K)return w.toResult();if(w instanceof D.ZodError)return K.invalidParams(w.format()).toResult();let f;if(w instanceof Error)f=w.message;else if(typeof w==="object"&&w!=null&&"message"in w&&typeof w.message==="string")f=w.message;try{return K.internalError(f?JSON.parse(f):{}).toResult()}catch{return K.internalError({details:f}).toResult()}}}#W($){let Q=this.#D.get($.id);if(Q){if("result"in $)Q.resolve($.result);else if("error"in $)Q.reject($.error);this.#D.delete($.id)}else console.error("Got response to unknown request",$.id)}async sendRequest($,Q){let w=this.#$++,f=new Promise((X,G)=>{this.#D.set(w,{resolve:X,reject:G})});return await this.#w({jsonrpc:"2.0",id:w,method:$,params:Q}),f}async sendNotification($,Q){await this.#w({jsonrpc:"2.0",method:$,params:Q})}async#w($){return this.#f=this.#f.then(async()=>{let Q=this.#Q.writable.getWriter();try{await Q.write($)}finally{Q.releaseLock()}}).catch((Q)=>{console.error("ACP write error:",Q)}),this.#f}}class K extends Error{code;data;constructor($,Q,w){super(Q);this.code=$,this.name="RequestError",this.data=w}static parseError($,Q){return new K(-32700,`Parse error${Q?`: ${Q}`:""}`,$)}static invalidRequest($,Q){return new K(-32600,`Invalid request${Q?`: ${Q}`:""}`,$)}static methodNotFound($){return new K(-32601,`"Method not found": ${$}`,{method:$})}static invalidParams($,Q){return new K(-32602,`Invalid params${Q?`: ${Q}`:""}`,$)}static internalError($,Q){return new K(-32603,`Internal error${Q?`: ${Q}`:""}`,$)}static authRequired($,Q){return new K(-32000,`Authentication required${Q?`: ${Q}`:""}`,$)}static resourceNotFound($){return new K(-32002,`Resource not found${$?`: ${$}`:""}`,$&&{uri:$})}toResult(){return{error:{code:this.code,message:this.message,data:this.data}}}toErrorResponse(){return{code:this.code,message:this.message,data:this.data}}}var v={};ow(v,{init:()=>zw,Agent:()=>CD,ACP:()=>v});var FD=H.create({service:"acp-session-manager"});class LD{sessions=new Map;sdk;constructor($){this.sdk=$}tryGet($){return this.sessions.get($)}async create($,Q,w){let X=(await this.sdk.session.create({directory:$},{throwOnError:!0}).then((J)=>J.data)).id,_={id:X,cwd:$,mcpServers:Q,createdAt:new Date,model:w};return FD.info("creating_session",{state:_}),this.sessions.set(X,_),_}async load($,Q,w,f){let X=await this.sdk.session.get({sessionID:$,directory:Q},{throwOnError:!0}).then((J)=>J.data),G=f,_={id:$,cwd:Q,mcpServers:w,createdAt:new Date(X.time.created),model:G};return FD.info("loading_session",{state:_}),this.sessions.set($,_),_}get($){let Q=this.sessions.get($);if(!Q)throw FD.error("session not found",{sessionId:$}),K.invalidParams(JSON.stringify({error:`Session not found: ${$}`}));return Q}getModel($){return this.get($).model}setModel($,Q){let w=this.get($);return w.model=Q,this.sessions.set($,w),w}getVariant($){return this.get($).variant}setVariant($,Q){let w=this.get($);return w.variant=Q,this.sessions.set($,w),w}setMode($,Q){let w=this.get($);return w.modeId=Q,this.sessions.set($,w),w}}import{pathToFileURL as c}from"url";var nw=H.create({service:"acp-message-translator"}),tw="default";function b($){switch($.toLocaleLowerCase()){case"bash":return"execute";case"webfetch":return"fetch";case"edit":case"patch":case"write":return"edit";case"grep":case"glob":case"context7_resolve_library_id":case"context7_get_library_docs":return"search";case"read":return"read";default:return"other"}}function u($,Q){switch($.toLocaleLowerCase()){case"read":case"edit":case"write":return Q.filePath?[{path:Q.filePath}]:[];case"glob":case"grep":return Q.path?[{path:Q.path}]:[];case"bash":return[];default:return[]}}function g($){try{if($.startsWith("file://")){let Q=$.slice(7),w=Q.split("/").pop()||Q;return{type:"file",url:$,filename:w,mime:"text/plain"}}if($.startsWith("zed://")){let w=new URL($).searchParams.get("path");if(w){let f=w.split("/").pop()||w;return{type:"file",url:c(w).href,filename:f,mime:"text/plain"}}}return{type:"text",text:$}}catch{return{type:"text",text:$}}}function eD($,Q){let w=sD($,Q);if(w===!1){nw.error("Failed to apply unified diff (context mismatch)");return}return w}function xD($){if($.tool!=="bash")return;if(!("metadata"in $.state)||!$.state.metadata||typeof $.state.metadata!=="object")return;let Q=$.state.metadata.output;if(typeof Q!=="string")return;return Q}function l($){return[...$].sort((Q,w)=>{let f=Q.name.toLowerCase(),X=w.name.toLowerCase();if(f<X)return-1;if(f>X)return 1;return 0})}function VD($,Q){let w=$.find((X)=>X.id===Q.providerID);if(!w)return[];let f=w.models[Q.modelID];if(!f?.variants)return[];return Object.keys(f.variants)}function D$($,Q={}){let w=Q.includeVariants??!1;return $.flatMap((f)=>{let X=Object.values(f.models);return U.sort(X).flatMap((_)=>{let J={modelId:`${f.id}/${_.id}`,name:`${f.name}/${_.name}`};if(!w||!_.variants)return[J];let B=Object.keys(_.variants).filter((Y)=>Y!==tw).map((Y)=>({modelId:`${f.id}/${_.id}/${Y}`,name:`${f.name}/${_.name} (${Y})`}));return[J,...B]})})}function d($,Q,w,f){let X=`${$.providerID}/${$.modelID}`;if(!f||!Q||!w.includes(Q))return X;return`${X}/${Q}`}function HD($){return{opencode:{modelId:`${$.model.providerID}/${$.model.modelID}`,variant:$.variant??null,availableVariants:$.availableVariants}}}function PD($,Q){let w=U.parseModel($),f=Q.find((G)=>G.id===w.providerID);if(!f)return{model:w,variant:void 0};if(f.models[w.modelID])return{model:w,variant:void 0};let X=w.modelID.split("/");if(X.length>1){let G=X[X.length-1],_=X.slice(0,-1).join("/"),J=f.models[_];if(J?.variants&&G in J.variants)return{model:{providerID:w.providerID,modelID:P.make(_)},variant:G}}return{model:w,variant:void 0}}function i($){let Q=[{id:"model",name:"Model",category:"model",type:"select",currentValue:$.currentModelId,options:$.availableModels.map((w)=>({value:w.modelId,name:w.name}))}];if($.modes)Q.push({id:"mode",name:"Session Mode",category:"mode",type:"select",currentValue:$.modes.currentModeId,options:$.modes.availableModes.map((w)=>({value:w.id,name:w.name,...w.description?{description:w.description}:{}}))});return Q}var $$=H.create({service:"acp-permissions"});class TD{connection;sdk;sessionManager;permissionQueues=new Map;permissionOptions=[{optionId:"once",kind:"allow_once",name:"Allow once"},{optionId:"always",kind:"allow_always",name:"Always allow"},{optionId:"reject",kind:"reject_once",name:"Reject"}];constructor($,Q,w){this.connection=$;this.sdk=Q;this.sessionManager=w}handle($){let Q=this.sessionManager.tryGet($.sessionID);if(!Q)return;let f=(this.permissionQueues.get($.sessionID)??Promise.resolve()).then(async()=>{let X=Q.cwd,G=await this.connection.requestPermission({sessionId:$.sessionID,toolCall:{toolCallId:$.tool?.callID??$.id,status:"pending",title:$.permission,rawInput:$.metadata,kind:b($.permission),locations:u($.permission,$.metadata??{})},options:this.permissionOptions}).catch(async(_)=>{$$.error("failed to request permission from ACP",{error:_,permissionID:$.id,sessionID:$.sessionID}),await this.sdk.permission.reply({requestID:$.id,reply:"reject",directory:X});return});if(!G)return;if(G.outcome.outcome!=="selected"){await this.sdk.permission.reply({requestID:$.id,reply:"reject",directory:X});return}if(G.outcome.optionId!=="reject"&&$.permission=="edit"){let _=$.metadata||{},J=typeof _.filepath==="string"?_.filepath:"",j=typeof _.diff==="string"?_.diff:"",B=await kD.exists(J)?await kD.readText(J):"",Y=eD(B,j);if(Y)this.connection.writeTextFile({sessionId:Q.id,path:J,content:Y})}await this.sdk.permission.reply({requestID:$.id,reply:G.outcome.optionId,directory:X})}).catch((X)=>{$$.error("failed to handle permission",{error:X,permissionID:$.id})}).finally(()=>{if(this.permissionQueues.get($.sessionID)===f)this.permissionQueues.delete($.sessionID)});this.permissionQueues.set($.sessionID,f)}}var L=H.create({service:"acp-event-bridge"});class UD{connection;sdk;sessionManager;eventAbort=new AbortController;eventStarted=!1;bashSnapshots=new Map;toolStarts=new Set;permissionHandler;constructor($,Q,w){this.connection=$;this.sdk=Q;this.sessionManager=w;this.permissionHandler=new TD($,Q,w)}start(){if(this.eventStarted)return;this.eventStarted=!0,this.runEventSubscription().catch(($)=>{if(this.eventAbort.signal.aborted)return;L.error("event subscription failed",{error:$})})}stop(){this.eventAbort.abort()}async runEventSubscription(){while(!0){if(this.eventAbort.signal.aborted)return;let $=await this.sdk.global.event({signal:this.eventAbort.signal,sseMaxRetryAttempts:0});for await(let Q of $.stream){if(this.eventAbort.signal.aborted)return;let w=Q?.payload;if(!w)continue;await this.handleEvent(w).catch((f)=>{L.error("failed to handle event",{error:f,type:w.type})})}if(this.eventAbort.signal.aborted)return;await new Promise((Q)=>{let w=()=>{clearTimeout(f),this.eventAbort.signal.removeEventListener("abort",w),Q()},f=setTimeout(w,1000);if(this.eventAbort.signal.addEventListener("abort",w,{once:!0}),this.eventAbort.signal.aborted)w()})}}async handleEvent($){switch($.type){case"permission.asked":{this.permissionHandler.handle($.properties);return}case"message.part.updated":{L.info("message part updated",{event:$.properties});let w=$.properties.part,f=this.sessionManager.tryGet(w.sessionID);if(!f)return;let X=f.id;if(w.type==="tool")switch(await this.toolStart(X,w),w.state.status){case"pending":this.bashSnapshots.delete(w.callID);return;case"running":{let G=xD(w),_=[];if(G){let J=w$.fast(G);if(w.tool==="bash"){if(this.bashSnapshots.get(w.callID)===J){await this.sendToolInProgress(X,w,w.state,[]);return}this.bashSnapshots.set(w.callID,J)}_.push({type:"content",content:{type:"text",text:G}})}await this.sendToolInProgress(X,w,w.state,_);return}case"completed":await this.sendToolCompleted(X,w,w.state);return;case"error":await this.sendToolError(X,w,w.state);return}if(w.type!=="text"&&w.type!=="file")return;return}case"message.part.delta":{let Q=$.properties,w=this.sessionManager.tryGet(Q.sessionID);if(!w)return;let f=w.id,X=await this.sdk.session.message({sessionID:Q.sessionID,messageID:Q.messageID,directory:w.cwd},{throwOnError:!0}).then((_)=>_.data).catch((_)=>{L.error("unexpected error when fetching message",{error:_});return});if(!X||X.info.role!=="assistant")return;let G=X.parts.find((_)=>_.id===Q.partID);if(!G)return;if(G.type==="text"&&Q.field==="text"&&G.ignored!==!0){await this.connection.sessionUpdate({sessionId:f,update:{sessionUpdate:"agent_message_chunk",messageId:Q.messageID,content:{type:"text",text:Q.delta}}}).catch((_)=>{L.error("failed to send text delta to ACP",{error:_})});return}if(G.type==="reasoning"&&Q.field==="text")await this.connection.sessionUpdate({sessionId:f,update:{sessionUpdate:"agent_thought_chunk",messageId:Q.messageID,content:{type:"text",text:Q.delta}}}).catch((_)=>{L.error("failed to send reasoning delta to ACP",{error:_})});return}}}async sendToolInProgress($,Q,w,f){await this.connection.sessionUpdate({sessionId:$,update:{sessionUpdate:"tool_call_update",toolCallId:Q.callID,status:"in_progress",kind:b(Q.tool),title:Q.tool,locations:u(Q.tool,w.input),rawInput:w.input,...f.length>0&&{content:f}}}).catch((X)=>{L.error("failed to send tool in_progress to ACP",{error:X})})}async sendToolCompleted($,Q,w){this.toolStarts.delete(Q.callID),this.bashSnapshots.delete(Q.callID);let f=b(Q.tool),X=[{type:"content",content:{type:"text",text:w.output}}];if(f==="edit"){let G=w.input,_=typeof G.filePath==="string"?G.filePath:"",J=typeof G.oldString==="string"?G.oldString:"",j=typeof G.newString==="string"?G.newString:typeof G.content==="string"?G.content:"";X.push({type:"diff",path:_,oldText:J,newText:j})}await this.connection.sessionUpdate({sessionId:$,update:{sessionUpdate:"tool_call_update",toolCallId:Q.callID,status:"completed",kind:f,content:X,title:w.title,rawInput:w.input,rawOutput:{output:w.output,metadata:w.metadata}}}).catch((G)=>{L.error("failed to send tool completed to ACP",{error:G})})}async sendToolError($,Q,w){this.toolStarts.delete(Q.callID),this.bashSnapshots.delete(Q.callID),await this.connection.sessionUpdate({sessionId:$,update:{sessionUpdate:"tool_call_update",toolCallId:Q.callID,status:"failed",kind:b(Q.tool),title:Q.tool,rawInput:w.input,content:[{type:"content",content:{type:"text",text:w.error}}],rawOutput:{error:w.error,metadata:w.metadata}}}).catch((f)=>{L.error("failed to send tool error to ACP",{error:f})})}async toolStart($,Q){if(this.toolStarts.has(Q.callID))return;this.toolStarts.add(Q.callID),await this.connection.sessionUpdate({sessionId:$,update:{sessionUpdate:"tool_call",toolCallId:Q.callID,title:Q.tool,kind:b(Q.tool),status:"pending",locations:[],rawInput:{}}}).catch((w)=>{L.error("failed to send tool pending to ACP",{error:w})})}async processMessage($){if(L.debug("process message",$),$.info.role!=="assistant"&&$.info.role!=="user")return;let Q=$.info.sessionID;for(let w of $.parts)if(w.type==="tool")switch(await this.toolStart(Q,w),w.state.status){case"pending":this.bashSnapshots.delete(w.callID);break;case"running":{let f=xD(w),X=[];if(f)X.push({type:"content",content:{type:"text",text:f}});await this.sendToolInProgress(Q,w,w.state,X);break}case"completed":await this.sendToolCompleted(Q,w,w.state);break;case"error":await this.sendToolError(Q,w,w.state);break}else if(w.type==="text"){if(w.text){let f=w.synthetic?["assistant"]:w.ignored?["user"]:void 0;await this.connection.sessionUpdate({sessionId:Q,update:{sessionUpdate:$.info.role==="user"?"user_message_chunk":"agent_message_chunk",messageId:$.info.id,content:{type:"text",text:w.text,...f&&{annotations:{audience:f}}}}}).catch((X)=>{L.error("failed to send text to ACP",{error:X})})}}else if(w.type==="file"){let f=w.url,X=w.filename??"file",G=w.mime||"application/octet-stream",_=$.info.role==="user"?"user_message_chunk":"agent_message_chunk";if(f.startsWith("file://"))await this.connection.sessionUpdate({sessionId:Q,update:{sessionUpdate:_,messageId:$.info.id,content:{type:"resource_link",uri:f,name:X,mimeType:G}}}).catch((J)=>{L.error("failed to send resource_link to ACP",{error:J})});else if(f.startsWith("data:")){let J=f.match(/^data:([^;]+);base64,(.*)$/),j=J?.[1],B=J?.[2]??"",Y=j||G;if(Y.startsWith("image/"))await this.connection.sessionUpdate({sessionId:Q,update:{sessionUpdate:_,messageId:$.info.id,content:{type:"image",mimeType:Y,data:B,uri:c(X).href}}}).catch((Z)=>{L.error("failed to send image to ACP",{error:Z})});else{let Z=Y.startsWith("text/")||Y==="application/json",A=c(X).href,y=Z?{uri:A,mimeType:Y,text:Buffer.from(B,"base64").toString("utf-8")}:{uri:A,mimeType:Y,blob:B};await this.connection.sessionUpdate({sessionId:Q,update:{sessionUpdate:_,messageId:$.info.id,content:{type:"resource",resource:y}}}).catch((W)=>{L.error("failed to send resource to ACP",{error:W})})}}}else if(w.type==="reasoning"){if(w.text)await this.connection.sessionUpdate({sessionId:Q,update:{sessionUpdate:"agent_thought_chunk",messageId:$.info.id,content:{type:"text",text:w.text}}}).catch((f)=>{L.error("failed to send reasoning to ACP",{error:f})})}}}var V=H.create({service:"acp-agent"});async function rw($,Q,w,f){return(await $.config.providers({directory:f}).then((J)=>J.data?.providers??[]).catch((J)=>{return V.error("failed to get providers for context limit",{error:J}),[]})).find((J)=>J.id===Q)?.models[w]?.limit.context??null}async function bD($,Q,w,f){let X=await Q.session.messages({sessionID:w,directory:f,agent_id:"main"},{throwOnError:!0}).then((Z)=>Z.data).catch((Z)=>{V.error("failed to fetch messages for usage update",{error:Z});return});if(!X)return;let G=X.filter((Z)=>Z.info.role==="assistant"),_=G[G.length-1];if(!_)return;let J=_.info;if(!J.providerID||!J.modelID)return;let j=await rw(Q,k.make(J.providerID),P.make(J.modelID),f);if(!j)return;let B=J.tokens.input+(J.tokens.cache?.read??0),Y=G.reduce((Z,A)=>Z+A.info.cost,0);await $.sessionUpdate({sessionId:w,update:{sessionUpdate:"usage_update",used:B,size:j,cost:{amount:Y,currency:"USD"}}}).catch((Z)=>{V.error("failed to send usage update",{error:Z})})}async function zw({sdk:$}){return{create:(Q,w)=>{return new CD(Q,w)}}}class CD{connection;config;sdk;sessionManager;eventBridge;constructor($,Q){this.connection=$,this.config=Q,this.sdk=Q.sdk,this.sessionManager=new LD(this.sdk),this.eventBridge=new UD($,this.sdk,this.sessionManager),this.eventBridge.start()}async initialize($){V.info("initialize",{protocolVersion:$.protocolVersion});let Q={description:"Run `qitqode auth login` in the terminal",name:"Login with qitqode",id:"qitqode-login"};if($.clientCapabilities?._meta?.["terminal-auth"]===!0)Q._meta={"terminal-auth":{command:"qitqode",args:["auth","login"],label:"QitQode Login"}};return{protocolVersion:1,agentCapabilities:{loadSession:!0,mcpCapabilities:{http:!0,sse:!0},promptCapabilities:{embeddedContext:!0,image:!0},sessionCapabilities:{fork:{},list:{},resume:{}}},authMethods:[Q],agentInfo:{name:"QitQode",version:Q$}}}async authenticate($){throw Error("Authentication not implemented")}rethrowSessionError($){let Q=G$.fromError($,{providerID:k.make(this.config.defaultModel?.providerID??"unknown")});if(f$.isInstance(Q))throw K.authRequired();throw $}fetchSessionMessages($,Q){return this.sdk.session.messages({sessionID:$,directory:Q,agent_id:"main"},{throwOnError:!0}).then((w)=>w.data).catch((w)=>{V.error("unexpected error when fetching message",{error:w});return})}loadSessionProviders($){return this.sdk.config.providers({directory:$},{throwOnError:!0}).then((Q)=>Q.data.providers)}async newSession($){let Q=$.cwd;try{let w=await h(this.config,Q),X=(await this.sessionManager.create($.cwd,$.mcpServers,w)).id;V.info("creating_session",{sessionId:X,mcpServers:$.mcpServers.length});let G=await this.loadSessionMode({cwd:Q,mcpServers:$.mcpServers,sessionId:X});return{sessionId:X,configOptions:G.configOptions,models:G.models,modes:G.modes,_meta:G._meta}}catch(w){this.rethrowSessionError(w)}}async loadSession($){let{cwd:Q,sessionId:w}=$;try{let f=await h(this.config,Q);await this.sessionManager.load(w,$.cwd,$.mcpServers,f),V.info("load_session",{sessionId:w,mcpServers:$.mcpServers.length});let X=await this.loadSessionMode({cwd:Q,mcpServers:$.mcpServers,sessionId:w}),G=await this.fetchSessionMessages(w,Q),_=G?.findLast((J)=>J.info.role==="user")?.info;if(_?.role==="user"){if(X.models.currentModelId=`${_.model.providerID}/${_.model.modelID}`,this.sessionManager.setModel(w,{providerID:k.make(_.model.providerID),modelID:P.make(_.model.modelID)}),X.modes?.availableModes.some((J)=>J.id===_.agent))X.modes.currentModeId=_.agent,this.sessionManager.setMode(w,_.agent);X.configOptions=i({currentModelId:X.models.currentModelId,availableModels:X.models.availableModels,modes:X.modes})}return await this.replayMessagesAndSendUsage(G,w,Q),X}catch(f){this.rethrowSessionError(f)}}async listSessions($){try{let w=await this.sdk.session.list({directory:$.cwd??void 0,roots:!0},{throwOnError:!0}).then((Z)=>Z.data??[]),f=$.cursor?Number($.cursor):void 0,X=w.toSorted((Z,A)=>A.time.updated-Z.time.updated),G=f?X.filter((Z)=>Z.time.updated<f):X,_=G.slice(0,100),J=_.map((Z)=>({sessionId:Z.id,cwd:Z.directory,title:Z.title,updatedAt:new Date(Z.time.updated).toISOString()})),j=_[_.length-1],B=G.length>100&&j?String(j.time.updated):void 0,Y={sessions:J};if(B)Y.nextCursor=B;return Y}catch(Q){this.rethrowSessionError(Q)}}async unstable_forkSession($){let Q=$.cwd,w=$.mcpServers??[];try{let f=await h(this.config,Q),X=await this.sdk.session.fork({sessionID:$.sessionId,directory:Q},{throwOnError:!0}).then((j)=>j.data);if(!X)throw Error("Fork session returned no data");let G=X.id;await this.sessionManager.load(G,Q,w,f),V.info("fork_session",{sessionId:G,mcpServers:w.length});let _=await this.loadSessionMode({cwd:Q,mcpServers:w,sessionId:G}),J=await this.fetchSessionMessages(G,Q);return await this.replayMessagesAndSendUsage(J,G,Q),_}catch(f){this.rethrowSessionError(f)}}async unstable_resumeSession($){let{cwd:Q,sessionId:w}=$,f=$.mcpServers??[];try{let X=await h(this.config,Q);await this.sessionManager.load(w,Q,f,X),V.info("resume_session",{sessionId:w,mcpServers:f.length});let G=await this.loadSessionMode({cwd:Q,mcpServers:f,sessionId:w});return await bD(this.connection,this.sdk,w,Q),G}catch(X){this.rethrowSessionError(X)}}async loadAvailableModes($){return(await this.config.sdk.app.agents({directory:$},{throwOnError:!0}).then((w)=>w.data)).filter((w)=>w.mode!=="subagent"&&!w.hidden).map((w)=>({id:w.name,name:w.name,description:w.description}))}async resolveModeState($,Q){let w=await this.loadAvailableModes($),f=this.sessionManager.get(Q).modeId||await(async()=>{if(!w.length)return;let X=await MD.runPromise(hD.Service.use((_)=>_.defaultAgent())),G=w.find((_)=>_.name===X)?.id??w[0].id;return this.sessionManager.setMode(Q,G),G})();return{availableModes:w,currentModeId:f}}async replayMessagesAndSendUsage($,Q,w){for(let f of $??[])V.debug("replay message",f),await this.eventBridge.processMessage(f);await bD(this.connection,this.sdk,Q,w)}async resolveModelsAndModes($){let Q=VD($.entries,$.model);$.onVariants?.(Q);let w=D$($.entries,{includeVariants:!0}),f=await this.resolveModeState($.directory,$.sessionId),X=f.currentModeId?{availableModes:f.availableModes,currentModeId:f.currentModeId}:void 0;return{availableVariants:Q,availableModels:w,modes:X}}async loadSessionMode($){let Q=$.cwd,w=await h(this.config,Q),f=$.sessionId,X=await this.sdk.config.providers({directory:Q}).then((W)=>W.data.providers),G=l(X),_=this.sessionManager.getVariant(f),{availableVariants:J,availableModels:j,modes:B}=await this.resolveModelsAndModes({entries:G,model:w,directory:Q,sessionId:f,onVariants:(W)=>{if(_&&!W.includes(_))this.sessionManager.setVariant(f,void 0)}}),Z=(await this.config.sdk.command.list({directory:Q},{throwOnError:!0}).then((W)=>W.data)).map((W)=>({name:W.name,description:W.description??""}));if(!new Set(Z.map((W)=>W.name)).has("compact"))Z.push({name:"compact",description:"summarize the session to reduce context"});let y={};for(let W of $.mcpServers)if("type"in W)y[W.name]={url:W.url,headers:W.headers.reduce((x,{name:C,value:m})=>{return x[C]=m,x},{}),type:"remote"};else y[W.name]={type:"local",command:[W.command,...W.args],environment:W.env.reduce((x,{name:C,value:m})=>{return x[C]=m,x},{})};return await Promise.all(Object.entries(y).map(async([W,x])=>{await this.sdk.mcp.add({directory:Q,name:W,config:x},{throwOnError:!0}).catch((C)=>{V.error("failed to add mcp server",{name:W,error:C})})})),setTimeout(()=>{this.connection.sessionUpdate({sessionId:f,update:{sessionUpdate:"available_commands_update",availableCommands:Z}})},0),{sessionId:f,models:{currentModelId:d(w,_,J,!0),availableModels:j},modes:B,configOptions:i({currentModelId:d(w,_,J,!0),availableModels:j,modes:B}),_meta:HD({model:w,variant:this.sessionManager.getVariant(f),availableVariants:J})}}async unstable_setSessionModel($){let Q=this.sessionManager.get($.sessionId),w=await this.loadSessionProviders(Q.cwd),f=PD($.modelId,w);this.sessionManager.setModel(Q.id,f.model),this.sessionManager.setVariant(Q.id,f.variant);let X=l(w),G=VD(X,f.model);return{_meta:HD({model:f.model,variant:f.variant,availableVariants:G})}}async setSessionMode($){let Q=this.sessionManager.get($.sessionId);if(!(await this.loadAvailableModes(Q.cwd)).some((f)=>f.id===$.modeId))throw Error(`Agent not found: ${$.modeId}`);this.sessionManager.setMode($.sessionId,$.modeId)}async setSessionConfigOption($){let Q=this.sessionManager.get($.sessionId),w=await this.loadSessionProviders(Q.cwd),f=l(w);if($.configId==="model"){if(typeof $.value!=="string")throw K.invalidParams("model value must be a string");let Y=PD($.value,w);this.sessionManager.setModel(Q.id,Y.model),this.sessionManager.setVariant(Q.id,Y.variant)}else if($.configId==="mode"){if(typeof $.value!=="string")throw K.invalidParams("mode value must be a string");if(!(await this.loadAvailableModes(Q.cwd)).some((Z)=>Z.id===$.value))throw K.invalidParams(JSON.stringify({error:`Mode not found: ${$.value}`}));this.sessionManager.setMode(Q.id,$.value)}else throw K.invalidParams(JSON.stringify({error:`Unknown config option: ${$.configId}`}));let X=this.sessionManager.get(Q.id),G=X.model??await h(this.config,Q.cwd),{availableVariants:_,availableModels:J,modes:j}=await this.resolveModelsAndModes({entries:f,model:G,directory:Q.cwd,sessionId:Q.id}),B=d(G,X.variant,_,!0);return{configOptions:i({currentModelId:B,availableModels:J,modes:j})}}async prompt($){let Q=$.sessionId,w=this.sessionManager.get(Q),f=w.cwd,X=w.model,G=X??await h(this.config,f);if(!X)this.sessionManager.setModel(w.id,G);let _=w.modeId??await MD.runPromise(hD.Service.use((A)=>A.defaultAgent())),J=[];for(let A of $.prompt)switch(A.type){case"text":{let y=A.annotations?.audience,W=y?.length===1&&y[0]==="assistant",x=y?.length===1&&y[0]==="user";J.push({type:"text",text:A.text,...W&&{synthetic:!0},...x&&{ignored:!0}});break}case"image":{let y=g(A.uri??""),W=y.type==="file"?y.filename:"image";if(A.data)J.push({type:"file",url:`data:${A.mimeType};base64,${A.data}`,filename:W,mime:A.mimeType});else if(A.uri&&A.uri.startsWith("http:"))J.push({type:"file",url:A.uri,filename:W,mime:A.mimeType});break}case"resource_link":{let y=g(A.uri);if(A.name&&y.type==="file")y.filename=A.name;J.push(y);break}case"resource":{let y=A.resource;if("text"in y&&y.text)J.push({type:"text",text:y.text});else if("blob"in y&&y.blob&&y.mimeType){let W=g(y.uri??""),x=W.type==="file"?W.filename:"file";J.push({type:"file",url:`data:${y.mimeType};base64,${y.blob}`,filename:x,mime:y.mimeType})}break}default:break}V.info("parts",{parts:J});let j=(()=>{let A=J.filter((x)=>x.type==="text").map((x)=>x.text).join("").trim();if(!A.startsWith("/"))return;let[y,...W]=A.slice(1).split(/\s+/);return{name:y,args:W.join(" ").trim()}})(),B=(A)=>({totalTokens:A.tokens.input+A.tokens.output+A.tokens.reasoning+(A.tokens.cache?.read??0)+(A.tokens.cache?.write??0),inputTokens:A.tokens.input,outputTokens:A.tokens.output,thoughtTokens:A.tokens.reasoning||void 0,cachedReadTokens:A.tokens.cache?.read||void 0,cachedWriteTokens:A.tokens.cache?.write||void 0}),Y,Z=!1;if(!j)Z=!0,Y=(await this.sdk.session.prompt({sessionID:Q,model:{providerID:G.providerID,modelID:G.modelID},variant:this.sessionManager.getVariant(Q),parts:J,agent:_,directory:f})).data?.info;else{let A=await this.config.sdk.command.list({directory:f},{throwOnError:!0}).then((y)=>y.data.find((W)=>W.name===j.name));if(A)Z=!0,Y=(await this.sdk.session.command({sessionID:Q,command:A.name,arguments:j.args,model:G.providerID+"/"+G.modelID,agent:_,directory:f})).data?.info;else switch(j.name){case"compact":await this.config.sdk.session.summarize({sessionID:Q,directory:f,providerID:G.providerID,modelID:G.modelID},{throwOnError:!0});break}}return await bD(this.connection,this.sdk,Q,f),{stopReason:"end_turn",...Z?{usage:Y?B(Y):void 0}:{},_meta:{}}}async cancel($){let Q=this.sessionManager.get($.sessionId);await this.config.sdk.session.abort({sessionID:$.sessionId,directory:Q.cwd},{throwOnError:!0})}}async function h($,Q){let{sdk:w,defaultModel:f}=$;if(f)return f;let X=Q??process.cwd(),G=await w.config.get({directory:X},{throwOnError:!0}).then((Y)=>{let Z=Y.data;if(!Z||!Z.model)return;return U.parseModel(Z.model)}).catch((Y)=>{V.error("failed to load user config for default model",{error:Y});return}),_=await w.config.providers({directory:X},{throwOnError:!0}).then((Y)=>Y.data?.providers??[]).catch((Y)=>{return V.error("failed to list providers for default model",{error:Y}),[]});if(G&&_.length){let Y=_.find((Z)=>Z.id===G.providerID);if(Y&&Y.models[G.modelID])return G}if(G&&!_.length)return G;let J=_.find((Y)=>Y.id==="opencode");if(J){if(J.models["big-pickle"])return{providerID:k.opencode,modelID:P.make("big-pickle")};let[Y]=U.sort(Object.values(J.models));if(Y)return{providerID:k.make(Y.providerID),modelID:P.make(Y.id)}}for(let Y of["default","fast","economical","power"]){let Z=_$[Y];if(!Z)continue;if(_.find((y)=>y.id===Z.providerID)?.models[Z.modelID])return{providerID:k.make(Z.providerID),modelID:P.make(Z.modelID)}}let j=_.flatMap((Y)=>Object.values(Y.models)),[B]=U.sort(j);if(B)return{providerID:k.make(B.providerID),modelID:P.make(B.id)};if(G)return G;return{providerID:k.opencode,modelID:P.make("big-pickle")}}var ED=H.create({service:"acp-command"}),sQ=A$({command:"acp",describe:"start ACP (Agent Client Protocol) server",builder:($)=>{return J$($).option("cwd",{describe:"working directory",type:"string",default:process.cwd()})},handler:async($)=>{if(process.env.QITQODE_CLIENT="acp",process.env.QITQODE_KEY)ED.info("Using QITQODE_KEY for authentication.");else if(!await Y$())ED.warn("No QitQode credential found. AI features will not work until you sign in (`qitqode auth login`) or set QITQODE_KEY.");await j$(process.cwd(),async()=>{let Q=await W$($),w=await Z$.listen(Q),f=X$({baseUrl:`http://${w.hostname}:${w.port}`}),X=new WritableStream({write(j){return new Promise((B,Y)=>{process.stdout.write(j,(Z)=>{if(Z)Y(Z);else B()})})}}),G=new ReadableStream({start(j){process.stdin.on("data",(B)=>{j.enqueue(new Uint8Array(B))}),process.stdin.on("end",()=>j.close()),process.stdin.on("error",(B)=>j.error(B))}}),_=zD(X,G),J=await v.init({sdk:f});new OD((j)=>{return J.create(j,{sdk:f})},_),ED.info("setup connection"),process.stdin.resume(),await new Promise((j,B)=>{process.stdin.on("end",j),process.stdin.on("error",B)})})}});export{sQ as AcpCommand};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{zd as a}from"./chunk-xd3xc1vv.js";import"./chunk-bzgj60w4.js";import"./chunk-
|
|
2
|
+
import{zd as a}from"./chunk-xd3xc1vv.js";import"./chunk-bzgj60w4.js";import"./chunk-3k2b05fv.js";export{a as dict};
|