@bkm016/basalt 0.1.35 → 0.1.37
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/README.md +1 -1
- package/chunk-1jtnjzrz.js +3 -0
- package/chunk-1xam7mw7.js +2 -0
- package/chunk-2df7yf47.js +3 -0
- package/chunk-3a3ta83t.js +12 -0
- package/chunk-3bb12192.js +39 -0
- package/chunk-3j24he2c.js +25 -0
- package/chunk-3yyt010j.js +2 -0
- package/chunk-412mm63g.js +3 -0
- package/chunk-4hrkad68.js +2 -0
- package/chunk-4kw8vvae.js +3 -0
- package/chunk-5xj2kq5h.js +3 -0
- package/chunk-6hajdf5x.js +2 -0
- package/chunk-6rkwh4w5.js +3 -0
- package/chunk-792xwgne.js +2 -0
- package/chunk-7ygt906s.js +2 -0
- package/chunk-8bvjjs3r.js +3 -0
- package/chunk-8jf1kd0m.js +3 -0
- package/chunk-95npkaze.js +5 -0
- package/chunk-9yqn7drg.js +3 -0
- package/chunk-9zwy8ypg.js +117 -0
- package/chunk-ad5asgnr.js +2 -0
- package/chunk-akdav0ay.js +3 -0
- package/chunk-arzyd0f7.js +8 -0
- package/chunk-avrzwnbk.js +2 -0
- package/chunk-b3fwt4jy.js +2 -0
- package/chunk-b41a7yc5.js +7 -0
- package/chunk-be4p5qak.js +103 -0
- package/chunk-bkabw9yr.js +3 -0
- package/chunk-br7606yh.js +7 -0
- package/chunk-brgcdzj9.js +60 -0
- package/chunk-bvh3ccr2.js +3 -0
- package/chunk-c0htgv5v.js +3 -0
- package/chunk-ch8bhqmp.js +2 -0
- package/chunk-d2t7tx0d.js +16 -0
- package/chunk-d5qsqt4v.js +2 -0
- package/chunk-d5sxt7bc.js +13 -0
- package/chunk-dz8jyvp4.js +547 -0
- package/chunk-e431qjnf.js +3 -0
- package/chunk-e69h0e2f.js +2 -0
- package/chunk-e9rp422g.js +9 -0
- package/chunk-ebmmdfq3.js +2 -0
- package/chunk-etvf4tkk.js +3 -0
- package/chunk-ewr4r5yx.js +18 -0
- package/chunk-ezm2t479.js +11 -0
- package/chunk-f5prr1x7.js +59 -0
- package/chunk-fxs37w3f.js +10 -0
- package/chunk-g27efryh.js +20 -0
- package/chunk-g8zcrfzr.js +2 -0
- package/chunk-gde46g2m.js +2 -0
- package/chunk-gnf6jvxv.js +25 -0
- package/chunk-gswcr5j6.js +2 -0
- package/chunk-h22spg1q.js +3 -0
- package/chunk-h2br80f8.js +3 -0
- package/chunk-he09tqj5.js +2 -0
- package/chunk-hkx2cpc5.js +3 -0
- package/chunk-hnqtkgcq.js +3 -0
- package/chunk-hrxkr8a8.js +3 -0
- package/chunk-hwkmxr9a.js +5 -0
- package/chunk-j9jg8h44.js +2 -0
- package/chunk-jhgf0vpr.js +5 -0
- package/chunk-k3ndw7d4.js +3 -0
- package/chunk-k8mc2tn3.js +3 -0
- package/chunk-mbf7201c.js +5 -0
- package/chunk-mzhebc7e.js +7 -0
- package/chunk-n1c3t0nj.js +2 -0
- package/chunk-nmpqx2sh.js +3 -0
- package/chunk-p0dacr9z.js +12 -0
- package/chunk-q8gv26ze.js +3 -0
- package/chunk-qj6bf18b.js +3 -0
- package/chunk-rxq62z5t.js +3 -0
- package/chunk-s27309w7.js +3 -0
- package/chunk-sjwsj82f.js +10 -0
- package/chunk-sxrwwyp7.js +3 -0
- package/chunk-tadyy9xh.js +51 -0
- package/chunk-tb3tj3ct.js +2 -0
- package/chunk-vgvp6cpk.js +2 -0
- package/chunk-vj5p29fr.js +2 -0
- package/chunk-wbpt03pe.js +31 -0
- package/chunk-wgjt31wp.js +8 -0
- package/chunk-wk6vjpmj.js +3 -0
- package/chunk-x1spmnj8.js +2 -0
- package/chunk-x4anmcq9.js +4 -0
- package/chunk-xd5hf1rg.js +3178 -0
- package/chunk-xp5p6tsp.js +286 -0
- package/chunk-xpbt4cpe.js +2 -0
- package/chunk-yw2k2syh.js +3 -0
- package/chunk-z3x79jnt.js +3 -0
- package/chunk-zd569v9h.js +2 -0
- package/compiled.js +13 -13
- package/package.json +1 -1
- package/ui-test-worker.js +57 -57
- package/web/chunk-05b25kh6.js +332 -0
- package/web/chunk-05b25kh6.js.br +0 -0
- package/web/chunk-05b25kh6.js.gz +0 -0
- package/web/chunk-0g6z1xs1.js +2 -0
- package/web/chunk-0g6z1xs1.js.br +0 -0
- package/web/chunk-0g6z1xs1.js.gz +0 -0
- package/web/chunk-0kj45mje.js +2 -0
- package/web/chunk-0kj45mje.js.br +0 -0
- package/web/chunk-0kj45mje.js.gz +0 -0
- package/web/chunk-0wt52yw3.js +1 -0
- package/web/chunk-0wt52yw3.js.br +2 -0
- package/web/chunk-0wt52yw3.js.gz +0 -0
- package/web/chunk-0x9cf6bp.js +38 -0
- package/web/chunk-0x9cf6bp.js.br +0 -0
- package/web/chunk-0x9cf6bp.js.gz +0 -0
- package/web/chunk-0y2f60q6.js +1 -0
- package/web/chunk-0y2f60q6.js.br +0 -0
- package/web/chunk-0y2f60q6.js.gz +0 -0
- package/web/chunk-1axw7vb0.js +214 -0
- package/web/chunk-1axw7vb0.js.br +0 -0
- package/web/chunk-1axw7vb0.js.gz +0 -0
- package/web/chunk-1es5ak4r.js +1 -0
- package/web/chunk-1es5ak4r.js.br +0 -0
- package/web/chunk-1es5ak4r.js.gz +0 -0
- package/web/chunk-1mkzfr1m.js +2 -0
- package/web/chunk-1mkzfr1m.js.br +0 -0
- package/web/chunk-1mkzfr1m.js.gz +0 -0
- package/web/chunk-1v45hcve.js +1 -0
- package/web/chunk-1v45hcve.js.br +0 -0
- package/web/chunk-1v45hcve.js.gz +0 -0
- package/web/chunk-1vhk8j0c.js +1 -0
- package/web/chunk-1vhk8j0c.js.br +0 -0
- package/web/chunk-1vhk8j0c.js.gz +0 -0
- package/web/chunk-21jtjwe1.js +1 -0
- package/web/chunk-21jtjwe1.js.br +0 -0
- package/web/chunk-21jtjwe1.js.gz +0 -0
- package/web/chunk-26grg3rq.js +1144 -0
- package/web/chunk-26grg3rq.js.br +0 -0
- package/web/chunk-26grg3rq.js.gz +0 -0
- package/web/chunk-2nwvdqxm.js +1 -0
- package/web/chunk-2nwvdqxm.js.br +0 -0
- package/web/chunk-2nwvdqxm.js.gz +0 -0
- package/web/chunk-2vh05ags.js +2 -0
- package/web/chunk-2vh05ags.js.br +0 -0
- package/web/chunk-2vh05ags.js.gz +0 -0
- package/web/chunk-2wvgy7f4.js +1 -0
- package/web/chunk-2wvgy7f4.js.br +0 -0
- package/web/chunk-2wvgy7f4.js.gz +0 -0
- package/web/chunk-33bfatdr.js +4 -0
- package/web/chunk-33bfatdr.js.br +0 -0
- package/web/chunk-33bfatdr.js.gz +0 -0
- package/web/chunk-38xsaxws.js +1 -0
- package/web/chunk-38xsaxws.js.br +0 -0
- package/web/chunk-38xsaxws.js.gz +0 -0
- package/web/chunk-3av47wwa.js +7 -0
- package/web/chunk-3av47wwa.js.br +0 -0
- package/web/chunk-3av47wwa.js.gz +0 -0
- package/web/chunk-3rxgch48.js +1 -0
- package/web/chunk-3rxgch48.js.br +0 -0
- package/web/chunk-3rxgch48.js.gz +0 -0
- package/web/chunk-40j8gxty.js +303 -0
- package/web/chunk-40j8gxty.js.br +0 -0
- package/web/chunk-40j8gxty.js.gz +0 -0
- package/web/chunk-43kq2dk7.js +21 -0
- package/web/chunk-43kq2dk7.js.br +0 -0
- package/web/chunk-43kq2dk7.js.gz +0 -0
- package/web/chunk-4cw67sdz.js +78 -0
- package/web/chunk-4cw67sdz.js.br +0 -0
- package/web/chunk-4cw67sdz.js.gz +0 -0
- package/web/chunk-4k4c2se1.js +2 -0
- package/web/chunk-4k4c2se1.js.br +0 -0
- package/web/chunk-4k4c2se1.js.gz +0 -0
- package/web/chunk-50dr941q.js +55 -0
- package/web/chunk-50dr941q.js.br +0 -0
- package/web/chunk-50dr941q.js.gz +0 -0
- package/web/chunk-56hx6a5h.js +1 -0
- package/web/chunk-56hx6a5h.js.br +0 -0
- package/web/chunk-56hx6a5h.js.gz +0 -0
- package/web/chunk-5m1p98r5.js +2 -0
- package/web/chunk-5m1p98r5.js.br +0 -0
- package/web/chunk-5m1p98r5.js.gz +0 -0
- package/web/chunk-5m45mc2k.js +99 -0
- package/web/chunk-5m45mc2k.js.br +0 -0
- package/web/chunk-5m45mc2k.js.gz +0 -0
- package/web/chunk-6gfa17h5.js +1 -0
- package/web/chunk-6gfa17h5.js.br +0 -0
- package/web/chunk-6gfa17h5.js.gz +0 -0
- package/web/chunk-7e57me98.js +1 -0
- package/web/chunk-7e57me98.js.br +0 -0
- package/web/chunk-7e57me98.js.gz +0 -0
- package/web/chunk-7ht7dssg.js +1 -0
- package/web/chunk-7ht7dssg.js.br +0 -0
- package/web/chunk-7ht7dssg.js.gz +0 -0
- package/web/chunk-8jxg1srx.js +1 -0
- package/web/chunk-8jxg1srx.js.br +2 -0
- package/web/chunk-8jxg1srx.js.gz +0 -0
- package/web/chunk-8q9970dm.js +2 -0
- package/web/chunk-8q9970dm.js.br +0 -0
- package/web/chunk-8q9970dm.js.gz +0 -0
- package/web/chunk-8t1kh5r9.js +370 -0
- package/web/chunk-8t1kh5r9.js.br +0 -0
- package/web/chunk-8t1kh5r9.js.gz +0 -0
- package/web/chunk-8za5fkrq.js +1 -0
- package/web/chunk-8za5fkrq.js.br +0 -0
- package/web/chunk-8za5fkrq.js.gz +0 -0
- package/web/chunk-96dhr80q.js +8 -0
- package/web/chunk-96dhr80q.js.br +0 -0
- package/web/chunk-96dhr80q.js.gz +0 -0
- package/web/chunk-98y5p1r2.js +1 -0
- package/web/chunk-98y5p1r2.js.br +0 -0
- package/web/chunk-98y5p1r2.js.gz +0 -0
- package/web/chunk-9f77mxfz.js +98 -0
- package/web/chunk-9f77mxfz.js.br +0 -0
- package/web/chunk-9f77mxfz.js.gz +0 -0
- package/web/chunk-9g2fam83.js +2 -0
- package/web/chunk-9g2fam83.js.br +0 -0
- package/web/chunk-9g2fam83.js.gz +0 -0
- package/web/chunk-9we3a8ak.js +84 -0
- package/web/chunk-9we3a8ak.js.br +0 -0
- package/web/chunk-9we3a8ak.js.gz +0 -0
- package/web/chunk-a67d8w1k.js +14 -0
- package/web/chunk-a67d8w1k.js.br +0 -0
- package/web/chunk-a67d8w1k.js.gz +0 -0
- package/web/chunk-adfd0mhj.js +1 -0
- package/web/chunk-adfd0mhj.js.br +0 -0
- package/web/chunk-adfd0mhj.js.gz +0 -0
- package/web/chunk-aem9wyqq.js +30 -0
- package/web/chunk-aem9wyqq.js.br +0 -0
- package/web/chunk-aem9wyqq.js.gz +0 -0
- package/web/chunk-ajzrsqpp.js +1 -0
- package/web/chunk-ajzrsqpp.js.br +0 -0
- package/web/chunk-ajzrsqpp.js.gz +0 -0
- package/web/chunk-b4t33dft.js +7 -0
- package/web/chunk-b4t33dft.js.br +0 -0
- package/web/chunk-b4t33dft.js.gz +0 -0
- package/web/chunk-b86sddt6.js +1 -0
- package/web/chunk-b86sddt6.js.br +0 -0
- package/web/chunk-b86sddt6.js.gz +0 -0
- package/web/chunk-bt8ww8df.js +142 -0
- package/web/chunk-bt8ww8df.js.br +0 -0
- package/web/chunk-bt8ww8df.js.gz +0 -0
- package/web/chunk-c1tsq0ta.js +1 -0
- package/web/chunk-c1tsq0ta.js.br +0 -0
- package/web/chunk-c1tsq0ta.js.gz +0 -0
- package/web/chunk-ckkd4qn1.js +1 -0
- package/web/chunk-ckkd4qn1.js.br +0 -0
- package/web/chunk-ckkd4qn1.js.gz +0 -0
- package/web/chunk-cxh1ztpm.js +200 -0
- package/web/chunk-cxh1ztpm.js.br +0 -0
- package/web/chunk-cxh1ztpm.js.gz +0 -0
- package/web/chunk-db2pew8j.js +2 -0
- package/web/chunk-db2pew8j.js.br +0 -0
- package/web/chunk-db2pew8j.js.gz +0 -0
- package/web/chunk-dfv95z6w.js +1 -0
- package/web/chunk-dfv95z6w.js.br +0 -0
- package/web/chunk-dfv95z6w.js.gz +0 -0
- package/web/chunk-dk2jv3kv.js +2 -0
- package/web/chunk-dk2jv3kv.js.br +0 -0
- package/web/chunk-dk2jv3kv.js.gz +0 -0
- package/web/chunk-dk9efr2r.js +1 -0
- package/web/chunk-dk9efr2r.js.br +0 -0
- package/web/chunk-dk9efr2r.js.gz +0 -0
- package/web/chunk-dmn5rvmt.js +169 -0
- package/web/chunk-dmn5rvmt.js.br +0 -0
- package/web/chunk-dmn5rvmt.js.gz +0 -0
- package/web/chunk-dtzm3qsp.js +34 -0
- package/web/chunk-dtzm3qsp.js.br +0 -0
- package/web/chunk-dtzm3qsp.js.gz +0 -0
- package/web/chunk-e1j49cha.js +140 -0
- package/web/chunk-e1j49cha.js.br +0 -0
- package/web/chunk-e1j49cha.js.gz +0 -0
- package/web/chunk-e24ammbc.js +292 -0
- package/web/chunk-e24ammbc.js.br +0 -0
- package/web/chunk-e24ammbc.js.gz +0 -0
- package/web/chunk-ebvk893x.js +2 -0
- package/web/chunk-ebvk893x.js.br +0 -0
- package/web/chunk-ebvk893x.js.gz +0 -0
- package/web/chunk-ecv7r3t9.js +24 -0
- package/web/chunk-ecv7r3t9.js.br +0 -0
- package/web/chunk-ecv7r3t9.js.gz +0 -0
- package/web/chunk-etkhjrfg.js +1 -0
- package/web/chunk-etkhjrfg.js.br +0 -0
- package/web/chunk-etkhjrfg.js.gz +0 -0
- package/web/chunk-f3ennx3q.js +1 -0
- package/web/chunk-f3ennx3q.js.br +0 -0
- package/web/chunk-f3ennx3q.js.gz +0 -0
- package/web/chunk-f5wyg9zh.js +2 -0
- package/web/chunk-f5wyg9zh.js.br +0 -0
- package/web/chunk-f5wyg9zh.js.gz +0 -0
- package/web/chunk-f9rv8b13.js +1 -0
- package/web/chunk-f9rv8b13.js.br +0 -0
- package/web/chunk-f9rv8b13.js.gz +0 -0
- package/web/chunk-fpg6cdg9.js +1 -0
- package/web/chunk-fpg6cdg9.js.br +0 -0
- package/web/chunk-fpg6cdg9.js.gz +0 -0
- package/web/chunk-fq9kkd61.js +1 -0
- package/web/chunk-fq9kkd61.js.br +0 -0
- package/web/chunk-fq9kkd61.js.gz +0 -0
- package/web/chunk-fr9gd1pt.js +1 -0
- package/web/chunk-fr9gd1pt.js.br +0 -0
- package/web/chunk-fr9gd1pt.js.gz +0 -0
- package/web/chunk-fsfpgs2w.css +1 -0
- package/web/chunk-fsfpgs2w.css.br +0 -0
- package/web/chunk-fsfpgs2w.css.gz +0 -0
- package/web/chunk-ftggg1s9.js +324 -0
- package/web/chunk-ftggg1s9.js.br +0 -0
- package/web/chunk-ftggg1s9.js.gz +0 -0
- package/web/chunk-g337nkpz.js +2 -0
- package/web/chunk-g337nkpz.js.br +0 -0
- package/web/chunk-g337nkpz.js.gz +0 -0
- package/web/chunk-g52np0en.js +1 -0
- package/web/chunk-g52np0en.js.br +0 -0
- package/web/chunk-g52np0en.js.gz +0 -0
- package/web/chunk-gc6pdwjs.js +2 -0
- package/web/chunk-gc6pdwjs.js.br +0 -0
- package/web/chunk-gc6pdwjs.js.gz +0 -0
- package/web/chunk-gks3ybk7.js +291 -0
- package/web/chunk-gks3ybk7.js.br +0 -0
- package/web/chunk-gks3ybk7.js.gz +0 -0
- package/web/chunk-hr1t5hxj.js +1 -0
- package/web/chunk-hr1t5hxj.js.br +0 -0
- package/web/chunk-hr1t5hxj.js.gz +0 -0
- package/web/chunk-k67ze3zq.js +2 -0
- package/web/chunk-k67ze3zq.js.br +0 -0
- package/web/chunk-k67ze3zq.js.gz +0 -0
- package/web/chunk-kcrkppec.js +1 -0
- package/web/chunk-kcrkppec.js.br +0 -0
- package/web/chunk-kcrkppec.js.gz +0 -0
- package/web/chunk-kd2346aw.js +2 -0
- package/web/chunk-kd2346aw.js.br +0 -0
- package/web/chunk-kd2346aw.js.gz +0 -0
- package/web/chunk-kh93xybm.js +62 -0
- package/web/chunk-kh93xybm.js.br +0 -0
- package/web/chunk-kh93xybm.js.gz +0 -0
- package/web/chunk-m32tg04f.js +1 -0
- package/web/chunk-m32tg04f.js.br +0 -0
- package/web/chunk-m32tg04f.js.gz +0 -0
- package/web/chunk-mg98g3yx.js +106 -0
- package/web/chunk-mg98g3yx.js.br +0 -0
- package/web/chunk-mg98g3yx.js.gz +0 -0
- package/web/chunk-mqdvg55y.js +2 -0
- package/web/chunk-mqdvg55y.js.br +0 -0
- package/web/chunk-mqdvg55y.js.gz +0 -0
- package/web/chunk-mx1e3jgh.js +1 -0
- package/web/chunk-mx1e3jgh.js.br +0 -0
- package/web/chunk-mx1e3jgh.js.gz +0 -0
- package/web/chunk-myg415b8.js +1 -0
- package/web/chunk-myg415b8.js.br +0 -0
- package/web/chunk-myg415b8.js.gz +0 -0
- package/web/chunk-myn0rj98.js +2 -0
- package/web/chunk-myn0rj98.js.br +0 -0
- package/web/chunk-myn0rj98.js.gz +0 -0
- package/web/chunk-nvq8s71g.js +1 -0
- package/web/chunk-nvq8s71g.js.br +0 -0
- package/web/chunk-nvq8s71g.js.gz +0 -0
- package/web/chunk-pphtw0xj.js +7 -0
- package/web/chunk-pphtw0xj.js.br +0 -0
- package/web/chunk-pphtw0xj.js.gz +0 -0
- package/web/chunk-ptdh13r5.js +1 -0
- package/web/chunk-ptdh13r5.js.br +0 -0
- package/web/chunk-ptdh13r5.js.gz +0 -0
- package/web/chunk-q1gyt5y6.js +1 -0
- package/web/chunk-q1gyt5y6.js.br +0 -0
- package/web/chunk-q1gyt5y6.js.gz +0 -0
- package/web/chunk-q3v1563q.js +2 -0
- package/web/chunk-q3v1563q.js.br +0 -0
- package/web/chunk-q3v1563q.js.gz +0 -0
- package/web/chunk-q40c0y7d.js +24 -0
- package/web/chunk-q40c0y7d.js.br +0 -0
- package/web/chunk-q40c0y7d.js.gz +0 -0
- package/web/chunk-q6vt7t8d.js +2 -0
- package/web/chunk-q6vt7t8d.js.br +0 -0
- package/web/chunk-q6vt7t8d.js.gz +0 -0
- package/web/chunk-q7pyqxqn.js +89 -0
- package/web/chunk-q7pyqxqn.js.br +0 -0
- package/web/chunk-q7pyqxqn.js.gz +0 -0
- package/web/chunk-r5rt7t62.js +1 -0
- package/web/chunk-r5rt7t62.js.br +0 -0
- package/web/chunk-r5rt7t62.js.gz +0 -0
- package/web/chunk-ra8jt8jw.js +2 -0
- package/web/chunk-ra8jt8jw.js.br +0 -0
- package/web/chunk-ra8jt8jw.js.gz +0 -0
- package/web/chunk-rgh3x4h4.js +1 -0
- package/web/chunk-rgh3x4h4.js.br +0 -0
- package/web/chunk-rgh3x4h4.js.gz +0 -0
- package/web/chunk-rvcq48wy.js +1 -0
- package/web/chunk-rvcq48wy.js.br +0 -0
- package/web/chunk-rvcq48wy.js.gz +0 -0
- package/web/chunk-rvgx4jhr.js +1 -0
- package/web/chunk-rvgx4jhr.js.br +0 -0
- package/web/chunk-rvgx4jhr.js.gz +0 -0
- package/web/chunk-rxvvg771.js +1 -0
- package/web/chunk-rxvvg771.js.br +0 -0
- package/web/chunk-rxvvg771.js.gz +0 -0
- package/web/chunk-sfb3w9nf.js +1 -0
- package/web/chunk-sfb3w9nf.js.br +2 -0
- package/web/chunk-sfb3w9nf.js.gz +0 -0
- package/web/chunk-srwx1v8c.js +39 -0
- package/web/chunk-srwx1v8c.js.br +0 -0
- package/web/chunk-srwx1v8c.js.gz +0 -0
- package/web/chunk-t1et0w6s.js +2 -0
- package/web/chunk-t1et0w6s.js.br +0 -0
- package/web/chunk-t1et0w6s.js.gz +0 -0
- package/web/chunk-tm7c78hm.js +1 -0
- package/web/chunk-tm7c78hm.js.br +0 -0
- package/web/chunk-tm7c78hm.js.gz +0 -0
- package/web/chunk-tmrh8hv1.js +1 -0
- package/web/chunk-tmrh8hv1.js.br +0 -0
- package/web/chunk-tmrh8hv1.js.gz +0 -0
- package/web/chunk-tntwwpyh.js +2 -0
- package/web/chunk-tntwwpyh.js.br +0 -0
- package/web/chunk-tntwwpyh.js.gz +0 -0
- package/web/chunk-tyengwea.js +12 -0
- package/web/chunk-tyengwea.js.br +0 -0
- package/web/chunk-tyengwea.js.gz +0 -0
- package/web/chunk-v13gqed9.js +2 -0
- package/web/chunk-v13gqed9.js.br +0 -0
- package/web/chunk-v13gqed9.js.gz +0 -0
- package/web/chunk-v6srkjvx.js +41 -0
- package/web/chunk-v6srkjvx.js.br +0 -0
- package/web/chunk-v6srkjvx.js.gz +0 -0
- package/web/chunk-vyn5qg7j.js +1 -0
- package/web/chunk-vyn5qg7j.js.br +0 -0
- package/web/chunk-vyn5qg7j.js.gz +0 -0
- package/web/chunk-w8se91rf.js +2 -0
- package/web/chunk-w8se91rf.js.br +0 -0
- package/web/chunk-w8se91rf.js.gz +0 -0
- package/web/chunk-wc533d3w.js +4 -0
- package/web/chunk-wc533d3w.js.br +0 -0
- package/web/chunk-wc533d3w.js.gz +0 -0
- package/web/chunk-wdd9pasx.js +1 -0
- package/web/chunk-wdd9pasx.js.br +0 -0
- package/web/chunk-wdd9pasx.js.gz +0 -0
- package/web/chunk-we9q8a9q.js +2 -0
- package/web/chunk-we9q8a9q.js.br +0 -0
- package/web/chunk-we9q8a9q.js.gz +0 -0
- package/web/chunk-wjpdjzkt.js +36 -0
- package/web/chunk-wjpdjzkt.js.br +0 -0
- package/web/chunk-wjpdjzkt.js.gz +0 -0
- package/web/chunk-wwnzjj7x.js +2 -0
- package/web/chunk-wwnzjj7x.js.br +0 -0
- package/web/chunk-wwnzjj7x.js.gz +0 -0
- package/web/chunk-wypacndw.js +120 -0
- package/web/chunk-wypacndw.js.br +0 -0
- package/web/chunk-wypacndw.js.gz +0 -0
- package/web/chunk-x3p573sq.js +2 -0
- package/web/chunk-x3p573sq.js.br +0 -0
- package/web/chunk-x3p573sq.js.gz +0 -0
- package/web/chunk-x6zh7fcc.js +16 -0
- package/web/chunk-x6zh7fcc.js.br +0 -0
- package/web/chunk-x6zh7fcc.js.gz +0 -0
- package/web/chunk-x87bgw5s.js +89 -0
- package/web/chunk-x87bgw5s.js.br +0 -0
- package/web/chunk-x87bgw5s.js.gz +0 -0
- package/web/chunk-xevjmmdd.js +217 -0
- package/web/chunk-xevjmmdd.js.br +0 -0
- package/web/chunk-xevjmmdd.js.gz +0 -0
- package/web/chunk-xkqekh81.js +2 -0
- package/web/chunk-xkqekh81.js.br +0 -0
- package/web/chunk-xkqekh81.js.gz +0 -0
- package/web/chunk-xwjytx6p.js +139 -0
- package/web/chunk-xwjytx6p.js.br +0 -0
- package/web/chunk-xwjytx6p.js.gz +0 -0
- package/web/chunk-y0xvbh5g.js +1 -0
- package/web/chunk-y0xvbh5g.js.br +0 -0
- package/web/chunk-y0xvbh5g.js.gz +0 -0
- package/web/chunk-ya7gs2bv.js +1 -0
- package/web/chunk-ya7gs2bv.js.br +0 -0
- package/web/chunk-ya7gs2bv.js.gz +0 -0
- package/web/chunk-ybq42mr5.js +2 -0
- package/web/chunk-ybq42mr5.js.br +0 -0
- package/web/chunk-ybq42mr5.js.gz +0 -0
- package/web/chunk-yhzcc87m.js +3 -0
- package/web/chunk-yhzcc87m.js.br +0 -0
- package/web/chunk-yhzcc87m.js.gz +0 -0
- package/web/chunk-yphdbf42.js +70 -0
- package/web/chunk-yphdbf42.js.br +0 -0
- package/web/chunk-yphdbf42.js.gz +0 -0
- package/web/chunk-ythxsag5.js +40 -0
- package/web/chunk-ythxsag5.js.br +0 -0
- package/web/chunk-ythxsag5.js.gz +0 -0
- package/web/chunk-z0smmkfw.js +2 -0
- package/web/chunk-z0smmkfw.js.br +0 -0
- package/web/chunk-z0smmkfw.js.gz +0 -0
- package/web/chunk-zcjdarjr.js +1 -0
- package/web/chunk-zcjdarjr.js.br +0 -0
- package/web/chunk-zcjdarjr.js.gz +0 -0
- package/web/chunk-zmm3f9sr.js +1 -0
- package/web/chunk-zmm3f9sr.js.br +0 -0
- package/web/chunk-zmm3f9sr.js.gz +0 -0
- package/web/chunk-zxt6qh82.js +2 -0
- package/web/chunk-zxt6qh82.js.br +0 -0
- package/web/chunk-zxt6qh82.js.gz +0 -0
- package/web/explorer-ttd27vzr.png +0 -0
- package/web/finder-aynbqpvz.png +0 -0
- package/web/idea-c8rwk1e2.png +0 -0
- package/web/index.html +1 -1
- package/web/index.html.br +0 -0
- package/web/index.html.gz +0 -0
- package/web/sw.js +3 -1
- package/web/sw.js.br +0 -0
- package/web/sw.js.gz +0 -0
- package/web/vscode-33qgcrqp.png +0 -0
- package/worker.js +1 -1
- package/chunk-10y5hvt2.js +0 -2
- package/chunk-22k2be3e.js +0 -13
- package/chunk-28hye007.js +0 -2
- package/chunk-2fmsw1c6.js +0 -5
- package/chunk-2h2mvrw2.js +0 -3
- package/chunk-2xj51v3m.js +0 -3
- package/chunk-3x0wm92n.js +0 -3
- package/chunk-4fgsqb1e.js +0 -2
- package/chunk-519eek65.js +0 -39
- package/chunk-5qa4dean.js +0 -2
- package/chunk-5x256mz8.js +0 -2
- package/chunk-6n01sefp.js +0 -8
- package/chunk-74xtmwpw.js +0 -2
- package/chunk-7mafj833.js +0 -3
- package/chunk-7v1sqn9k.js +0 -59
- package/chunk-8my52htr.js +0 -3
- package/chunk-8vh98e46.js +0 -2
- package/chunk-92mpgche.js +0 -2
- package/chunk-9nkb5q43.js +0 -3
- package/chunk-9vacevyf.js +0 -3
- package/chunk-9y44m27k.js +0 -5
- package/chunk-a5wv2shs.js +0 -3
- package/chunk-a78qhb4t.js +0 -5
- package/chunk-axsxx67j.js +0 -3
- package/chunk-b49fzzzn.js +0 -2
- package/chunk-bc8awbnt.js +0 -2
- package/chunk-crxs0n0r.js +0 -3
- package/chunk-csed8fsv.js +0 -3
- package/chunk-cspx3bz9.js +0 -2
- package/chunk-ctdtmwmd.js +0 -63
- package/chunk-d3xsmwbh.js +0 -25
- package/chunk-dvwgpsfz.js +0 -3
- package/chunk-dzd8k6bw.js +0 -3
- package/chunk-e2xqa46t.js +0 -2
- package/chunk-e41mpwx9.js +0 -9
- package/chunk-e5ccfgsk.js +0 -3
- package/chunk-e67wqhzh.js +0 -12
- package/chunk-emeb13nd.js +0 -25
- package/chunk-ers9s2c4.js +0 -31
- package/chunk-ezq0fnz6.js +0 -3
- package/chunk-ezqvx0hm.js +0 -2
- package/chunk-f10ca9ma.js +0 -12
- package/chunk-f72jhcp8.js +0 -2
- package/chunk-fjv41a8r.js +0 -4155
- package/chunk-fsekbhqb.js +0 -3
- package/chunk-gj0dhgbg.js +0 -3
- package/chunk-h0ggc6pv.js +0 -60
- package/chunk-hrt42rkh.js +0 -4
- package/chunk-j7m36g5w.js +0 -3
- package/chunk-jhn30hjp.js +0 -2
- package/chunk-ka41gq1g.js +0 -16
- package/chunk-kcp9byws.js +0 -2
- package/chunk-me72k64f.js +0 -7
- package/chunk-n4jemqf1.js +0 -2
- package/chunk-ndt4jvh1.js +0 -3
- package/chunk-pyxn4wqj.js +0 -3
- package/chunk-rajb3566.js +0 -2
- package/chunk-rbq2gsar.js +0 -3
- package/chunk-rd98e7kg.js +0 -10
- package/chunk-rm5dbbsg.js +0 -3
- package/chunk-rztw3tgx.js +0 -3
- package/chunk-s4mn41eh.js +0 -8
- package/chunk-s9p624fq.js +0 -44
- package/chunk-sawrte7v.js +0 -3
- package/chunk-sd8d792h.js +0 -51
- package/chunk-sgvmxx0d.js +0 -2
- package/chunk-sqbnt2t1.js +0 -3
- package/chunk-t2bvj735.js +0 -2
- package/chunk-t8tkamx6.js +0 -2
- package/chunk-tbehe5ky.js +0 -18
- package/chunk-tnay319j.js +0 -3
- package/chunk-tsha69rv.js +0 -7
- package/chunk-twqwer9t.js +0 -5
- package/chunk-vr2rtqeh.js +0 -2
- package/chunk-vr6eej6b.js +0 -3
- package/chunk-w41gswj8.js +0 -3
- package/chunk-x7tras0x.js +0 -498
- package/chunk-xakmebnm.js +0 -10
- package/chunk-xj453mny.js +0 -286
- package/chunk-xmrw19xj.js +0 -2
- package/chunk-xpj8fcjp.js +0 -20
- package/chunk-y218jsvc.js +0 -3
- package/chunk-y33fkh8m.js +0 -2
- package/chunk-z3h9ydyr.js +0 -11
- package/chunk-zc51vfhr.js +0 -2
- package/chunk-zm88mnds.js +0 -7
- package/chunk-zz9rj82y.js +0 -3
- package/web/chunk-0b5vh2pt.js +0 -2
- package/web/chunk-0b5vh2pt.js.br +0 -0
- package/web/chunk-0b5vh2pt.js.gz +0 -0
- package/web/chunk-0hkdqhkv.js +0 -1
- package/web/chunk-0hkdqhkv.js.br +0 -0
- package/web/chunk-0hkdqhkv.js.gz +0 -0
- package/web/chunk-0v7wrb32.js +0 -2
- package/web/chunk-0v7wrb32.js.br +0 -0
- package/web/chunk-0v7wrb32.js.gz +0 -0
- package/web/chunk-0x2fgw1m.js +0 -1
- package/web/chunk-0x2fgw1m.js.br +0 -0
- package/web/chunk-0x2fgw1m.js.gz +0 -0
- package/web/chunk-0xctxqvv.js +0 -2
- package/web/chunk-0xctxqvv.js.br +0 -0
- package/web/chunk-0xctxqvv.js.gz +0 -0
- package/web/chunk-0y9tf0rt.js +0 -89
- package/web/chunk-0y9tf0rt.js.br +0 -0
- package/web/chunk-0y9tf0rt.js.gz +0 -0
- package/web/chunk-0yrp0f6x.js +0 -1
- package/web/chunk-0yrp0f6x.js.br +0 -0
- package/web/chunk-0yrp0f6x.js.gz +0 -0
- package/web/chunk-10jk2pn9.js +0 -1
- package/web/chunk-10jk2pn9.js.br +0 -0
- package/web/chunk-10jk2pn9.js.gz +0 -0
- package/web/chunk-15ka35m9.js +0 -2
- package/web/chunk-15ka35m9.js.br +0 -0
- package/web/chunk-15ka35m9.js.gz +0 -0
- package/web/chunk-1700cges.js +0 -1
- package/web/chunk-1700cges.js.br +0 -0
- package/web/chunk-1700cges.js.gz +0 -0
- package/web/chunk-1apw6pnk.css +0 -1
- package/web/chunk-1apw6pnk.css.br +0 -0
- package/web/chunk-1apw6pnk.css.gz +0 -0
- package/web/chunk-1b005nqw.js +0 -139
- package/web/chunk-1b005nqw.js.br +0 -0
- package/web/chunk-1b005nqw.js.gz +0 -0
- package/web/chunk-1c9khgyt.js +0 -1
- package/web/chunk-1c9khgyt.js.br +0 -2
- package/web/chunk-1c9khgyt.js.gz +0 -0
- package/web/chunk-1pr20x9x.js +0 -1
- package/web/chunk-1pr20x9x.js.br +0 -0
- package/web/chunk-1pr20x9x.js.gz +0 -0
- package/web/chunk-1sjgdggk.js +0 -7
- package/web/chunk-1sjgdggk.js.br +0 -0
- package/web/chunk-1sjgdggk.js.gz +0 -0
- package/web/chunk-1tt5ympp.js +0 -1
- package/web/chunk-1tt5ympp.js.br +0 -0
- package/web/chunk-1tt5ympp.js.gz +0 -0
- package/web/chunk-29fpfs5q.js +0 -1142
- package/web/chunk-29fpfs5q.js.br +0 -0
- package/web/chunk-29fpfs5q.js.gz +0 -0
- package/web/chunk-2gr7vwnp.js +0 -24
- package/web/chunk-2gr7vwnp.js.br +0 -0
- package/web/chunk-2gr7vwnp.js.gz +0 -0
- package/web/chunk-2p84jch3.js +0 -1
- package/web/chunk-2p84jch3.js.br +0 -0
- package/web/chunk-2p84jch3.js.gz +0 -0
- package/web/chunk-2qs283mh.js +0 -2
- package/web/chunk-2qs283mh.js.br +0 -0
- package/web/chunk-2qs283mh.js.gz +0 -0
- package/web/chunk-3gf2d852.js +0 -1
- package/web/chunk-3gf2d852.js.br +0 -0
- package/web/chunk-3gf2d852.js.gz +0 -0
- package/web/chunk-3hswqkb0.js +0 -1
- package/web/chunk-3hswqkb0.js.br +0 -0
- package/web/chunk-3hswqkb0.js.gz +0 -0
- package/web/chunk-46yjp1x4.js +0 -2
- package/web/chunk-46yjp1x4.js.br +0 -0
- package/web/chunk-46yjp1x4.js.gz +0 -0
- package/web/chunk-4ezd1rkc.js +0 -84
- package/web/chunk-4ezd1rkc.js.br +0 -0
- package/web/chunk-4ezd1rkc.js.gz +0 -0
- package/web/chunk-4v9ar0sf.js +0 -142
- package/web/chunk-4v9ar0sf.js.br +0 -0
- package/web/chunk-4v9ar0sf.js.gz +0 -0
- package/web/chunk-51z88j1t.js +0 -21
- package/web/chunk-51z88j1t.js.br +0 -0
- package/web/chunk-51z88j1t.js.gz +0 -0
- package/web/chunk-5f5zcfga.js +0 -1
- package/web/chunk-5f5zcfga.js.br +0 -2
- package/web/chunk-5f5zcfga.js.gz +0 -0
- package/web/chunk-5n61r0rr.js +0 -36
- package/web/chunk-5n61r0rr.js.br +0 -0
- package/web/chunk-5n61r0rr.js.gz +0 -0
- package/web/chunk-5vcdeenv.js +0 -2
- package/web/chunk-5vcdeenv.js.br +0 -0
- package/web/chunk-5vcdeenv.js.gz +0 -0
- package/web/chunk-5y7ks8c3.js +0 -30
- package/web/chunk-5y7ks8c3.js.br +0 -0
- package/web/chunk-5y7ks8c3.js.gz +0 -0
- package/web/chunk-60v8qwec.js +0 -2
- package/web/chunk-60v8qwec.js.br +0 -0
- package/web/chunk-60v8qwec.js.gz +0 -0
- package/web/chunk-61m5t9wg.js +0 -200
- package/web/chunk-61m5t9wg.js.br +0 -0
- package/web/chunk-61m5t9wg.js.gz +0 -0
- package/web/chunk-669n37qf.js +0 -70
- package/web/chunk-669n37qf.js.br +0 -0
- package/web/chunk-669n37qf.js.gz +0 -0
- package/web/chunk-6kf1xwz9.js +0 -2
- package/web/chunk-6kf1xwz9.js.br +0 -0
- package/web/chunk-6kf1xwz9.js.gz +0 -0
- package/web/chunk-6rw72jmj.js +0 -2
- package/web/chunk-6rw72jmj.js.br +0 -0
- package/web/chunk-6rw72jmj.js.gz +0 -0
- package/web/chunk-6wyxxd9h.js +0 -2
- package/web/chunk-6wyxxd9h.js.br +0 -0
- package/web/chunk-6wyxxd9h.js.gz +0 -0
- package/web/chunk-77vj65dc.js +0 -1
- package/web/chunk-77vj65dc.js.br +0 -0
- package/web/chunk-77vj65dc.js.gz +0 -0
- package/web/chunk-8ktz0w1x.js +0 -120
- package/web/chunk-8ktz0w1x.js.br +0 -0
- package/web/chunk-8ktz0w1x.js.gz +0 -0
- package/web/chunk-8rcfpj02.js +0 -2
- package/web/chunk-8rcfpj02.js.br +0 -0
- package/web/chunk-8rcfpj02.js.gz +0 -0
- package/web/chunk-8x4s1c9g.js +0 -1
- package/web/chunk-8x4s1c9g.js.br +0 -2
- package/web/chunk-8x4s1c9g.js.gz +0 -0
- package/web/chunk-8zf4cywy.js +0 -1
- package/web/chunk-8zf4cywy.js.br +0 -0
- package/web/chunk-8zf4cywy.js.gz +0 -0
- package/web/chunk-a18y5dmf.js +0 -2
- package/web/chunk-a18y5dmf.js.br +0 -0
- package/web/chunk-a18y5dmf.js.gz +0 -0
- package/web/chunk-a36sfjyk.js +0 -1
- package/web/chunk-a36sfjyk.js.br +0 -0
- package/web/chunk-a36sfjyk.js.gz +0 -0
- package/web/chunk-aahzqxq7.js +0 -34
- package/web/chunk-aahzqxq7.js.br +0 -0
- package/web/chunk-aahzqxq7.js.gz +0 -0
- package/web/chunk-b2gtwatf.js +0 -370
- package/web/chunk-b2gtwatf.js.br +0 -0
- package/web/chunk-b2gtwatf.js.gz +0 -0
- package/web/chunk-bdp4y1zg.js +0 -1
- package/web/chunk-bdp4y1zg.js.br +0 -0
- package/web/chunk-bdp4y1zg.js.gz +0 -0
- package/web/chunk-be67vfx1.js +0 -1
- package/web/chunk-be67vfx1.js.br +0 -0
- package/web/chunk-be67vfx1.js.gz +0 -0
- package/web/chunk-bt6r78y9.js +0 -106
- package/web/chunk-bt6r78y9.js.br +0 -0
- package/web/chunk-bt6r78y9.js.gz +0 -0
- package/web/chunk-bvyjy17t.js +0 -14
- package/web/chunk-bvyjy17t.js.br +0 -0
- package/web/chunk-bvyjy17t.js.gz +0 -0
- package/web/chunk-c97th1x0.js +0 -1
- package/web/chunk-c97th1x0.js.br +0 -0
- package/web/chunk-c97th1x0.js.gz +0 -0
- package/web/chunk-cfkp7taw.js +0 -1
- package/web/chunk-cfkp7taw.js.br +0 -0
- package/web/chunk-cfkp7taw.js.gz +0 -0
- package/web/chunk-cvf9k1fy.js +0 -140
- package/web/chunk-cvf9k1fy.js.br +0 -0
- package/web/chunk-cvf9k1fy.js.gz +0 -0
- package/web/chunk-d33n9fsr.js +0 -1
- package/web/chunk-d33n9fsr.js.br +0 -1
- package/web/chunk-d33n9fsr.js.gz +0 -0
- package/web/chunk-e667nxc9.js +0 -1
- package/web/chunk-e667nxc9.js.br +0 -0
- package/web/chunk-e667nxc9.js.gz +0 -0
- package/web/chunk-eejjsqm1.js +0 -303
- package/web/chunk-eejjsqm1.js.br +0 -0
- package/web/chunk-eejjsqm1.js.gz +0 -0
- package/web/chunk-eg3qjy7a.js +0 -2
- package/web/chunk-eg3qjy7a.js.br +0 -0
- package/web/chunk-eg3qjy7a.js.gz +0 -0
- package/web/chunk-embvjvdj.js +0 -12
- package/web/chunk-embvjvdj.js.br +0 -0
- package/web/chunk-embvjvdj.js.gz +0 -0
- package/web/chunk-etjfr79m.js +0 -2
- package/web/chunk-etjfr79m.js.br +0 -0
- package/web/chunk-etjfr79m.js.gz +0 -0
- package/web/chunk-ez36gbz3.js +0 -7
- package/web/chunk-ez36gbz3.js.br +0 -0
- package/web/chunk-ez36gbz3.js.gz +0 -0
- package/web/chunk-f0vcm8mk.js +0 -214
- package/web/chunk-f0vcm8mk.js.br +0 -0
- package/web/chunk-f0vcm8mk.js.gz +0 -0
- package/web/chunk-f3t3ey83.js +0 -1
- package/web/chunk-f3t3ey83.js.br +0 -0
- package/web/chunk-f3t3ey83.js.gz +0 -0
- package/web/chunk-f84sngcq.js +0 -2
- package/web/chunk-f84sngcq.js.br +0 -0
- package/web/chunk-f84sngcq.js.gz +0 -0
- package/web/chunk-f97hz4v5.js +0 -99
- package/web/chunk-f97hz4v5.js.br +0 -0
- package/web/chunk-f97hz4v5.js.gz +0 -0
- package/web/chunk-fnkp6s0g.js +0 -1
- package/web/chunk-fnkp6s0g.js.br +0 -0
- package/web/chunk-fnkp6s0g.js.gz +0 -0
- package/web/chunk-fpdyzyn8.js +0 -16
- package/web/chunk-fpdyzyn8.js.br +0 -0
- package/web/chunk-fpdyzyn8.js.gz +0 -0
- package/web/chunk-g43z223a.js +0 -2
- package/web/chunk-g43z223a.js.br +0 -0
- package/web/chunk-g43z223a.js.gz +0 -0
- package/web/chunk-gcm82aj8.js +0 -1
- package/web/chunk-gcm82aj8.js.br +0 -0
- package/web/chunk-gcm82aj8.js.gz +0 -0
- package/web/chunk-gffb3p4z.js +0 -2
- package/web/chunk-gffb3p4z.js.br +0 -0
- package/web/chunk-gffb3p4z.js.gz +0 -0
- package/web/chunk-gnzg3krt.js +0 -1
- package/web/chunk-gnzg3krt.js.br +0 -0
- package/web/chunk-gnzg3krt.js.gz +0 -0
- package/web/chunk-grqtpfdp.js +0 -2
- package/web/chunk-grqtpfdp.js.br +0 -0
- package/web/chunk-grqtpfdp.js.gz +0 -0
- package/web/chunk-gsm8spf8.js +0 -1
- package/web/chunk-gsm8spf8.js.br +0 -0
- package/web/chunk-gsm8spf8.js.gz +0 -0
- package/web/chunk-h6ygrnd0.js +0 -38
- package/web/chunk-h6ygrnd0.js.br +0 -0
- package/web/chunk-h6ygrnd0.js.gz +0 -0
- package/web/chunk-h8n9w5th.js +0 -169
- package/web/chunk-h8n9w5th.js.br +0 -0
- package/web/chunk-h8n9w5th.js.gz +0 -0
- package/web/chunk-hmdvm5pp.js +0 -2
- package/web/chunk-hmdvm5pp.js.br +0 -0
- package/web/chunk-hmdvm5pp.js.gz +0 -0
- package/web/chunk-hrntwvx8.js +0 -1
- package/web/chunk-hrntwvx8.js.br +0 -0
- package/web/chunk-hrntwvx8.js.gz +0 -0
- package/web/chunk-hrys15jh.js +0 -324
- package/web/chunk-hrys15jh.js.br +0 -0
- package/web/chunk-hrys15jh.js.gz +0 -0
- package/web/chunk-j0ng7zdq.js +0 -41
- package/web/chunk-j0ng7zdq.js.br +0 -0
- package/web/chunk-j0ng7zdq.js.gz +0 -0
- package/web/chunk-j2t5ycte.js +0 -78
- package/web/chunk-j2t5ycte.js.br +0 -0
- package/web/chunk-j2t5ycte.js.gz +0 -0
- package/web/chunk-jkjd1y3p.js +0 -3
- package/web/chunk-jkjd1y3p.js.br +0 -0
- package/web/chunk-jkjd1y3p.js.gz +0 -0
- package/web/chunk-jweahmyy.js +0 -1
- package/web/chunk-jweahmyy.js.br +0 -0
- package/web/chunk-jweahmyy.js.gz +0 -0
- package/web/chunk-k56v8k7n.js +0 -4
- package/web/chunk-k56v8k7n.js.br +0 -0
- package/web/chunk-k56v8k7n.js.gz +0 -0
- package/web/chunk-k59sk88z.js +0 -7
- package/web/chunk-k59sk88z.js.br +0 -0
- package/web/chunk-k59sk88z.js.gz +0 -0
- package/web/chunk-k75a0fpt.js +0 -62
- package/web/chunk-k75a0fpt.js.br +0 -0
- package/web/chunk-k75a0fpt.js.gz +0 -0
- package/web/chunk-kfx9q7xv.js +0 -2
- package/web/chunk-kfx9q7xv.js.br +0 -0
- package/web/chunk-kfx9q7xv.js.gz +0 -0
- package/web/chunk-ksp1gg3v.js +0 -1
- package/web/chunk-ksp1gg3v.js.br +0 -0
- package/web/chunk-ksp1gg3v.js.gz +0 -0
- package/web/chunk-kxxp1mn4.js +0 -2
- package/web/chunk-kxxp1mn4.js.br +0 -0
- package/web/chunk-kxxp1mn4.js.gz +0 -0
- package/web/chunk-mapbxzsz.js +0 -1
- package/web/chunk-mapbxzsz.js.br +0 -0
- package/web/chunk-mapbxzsz.js.gz +0 -0
- package/web/chunk-msw43fnq.js +0 -2
- package/web/chunk-msw43fnq.js.br +0 -0
- package/web/chunk-msw43fnq.js.gz +0 -0
- package/web/chunk-mzzjg4sn.js +0 -2
- package/web/chunk-mzzjg4sn.js.br +0 -0
- package/web/chunk-mzzjg4sn.js.gz +0 -0
- package/web/chunk-n1bmcj13.js +0 -2
- package/web/chunk-n1bmcj13.js.br +0 -0
- package/web/chunk-n1bmcj13.js.gz +0 -0
- package/web/chunk-n5y4ar3e.js +0 -1
- package/web/chunk-n5y4ar3e.js.br +0 -0
- package/web/chunk-n5y4ar3e.js.gz +0 -0
- package/web/chunk-n9vszqw9.js +0 -1
- package/web/chunk-n9vszqw9.js.br +0 -0
- package/web/chunk-n9vszqw9.js.gz +0 -0
- package/web/chunk-nzzcmxq8.js +0 -1
- package/web/chunk-nzzcmxq8.js.br +0 -0
- package/web/chunk-nzzcmxq8.js.gz +0 -0
- package/web/chunk-p25eppk1.js +0 -1
- package/web/chunk-p25eppk1.js.br +0 -0
- package/web/chunk-p25eppk1.js.gz +0 -0
- package/web/chunk-p9352vpw.js +0 -1
- package/web/chunk-p9352vpw.js.br +0 -0
- package/web/chunk-p9352vpw.js.gz +0 -0
- package/web/chunk-pdvm4n6f.js +0 -1
- package/web/chunk-pdvm4n6f.js.br +0 -2
- package/web/chunk-pdvm4n6f.js.gz +0 -0
- package/web/chunk-pjm2t9da.js +0 -1
- package/web/chunk-pjm2t9da.js.br +0 -0
- package/web/chunk-pjm2t9da.js.gz +0 -0
- package/web/chunk-pka3qm06.js +0 -98
- package/web/chunk-pka3qm06.js.br +0 -0
- package/web/chunk-pka3qm06.js.gz +0 -0
- package/web/chunk-pkbcbta6.js +0 -1
- package/web/chunk-pkbcbta6.js.br +0 -0
- package/web/chunk-pkbcbta6.js.gz +0 -0
- package/web/chunk-pq4vn3zh.js +0 -1
- package/web/chunk-pq4vn3zh.js.br +0 -0
- package/web/chunk-pq4vn3zh.js.gz +0 -0
- package/web/chunk-prk9ks5j.js +0 -1
- package/web/chunk-prk9ks5j.js.br +0 -0
- package/web/chunk-prk9ks5j.js.gz +0 -0
- package/web/chunk-px68tdjm.js +0 -1
- package/web/chunk-px68tdjm.js.br +0 -2
- package/web/chunk-px68tdjm.js.gz +0 -0
- package/web/chunk-px8k5edz.js +0 -24
- package/web/chunk-px8k5edz.js.br +0 -0
- package/web/chunk-px8k5edz.js.gz +0 -0
- package/web/chunk-pz4g2bem.js +0 -292
- package/web/chunk-pz4g2bem.js.br +0 -0
- package/web/chunk-pz4g2bem.js.gz +0 -0
- package/web/chunk-q0gx75nf.js +0 -55
- package/web/chunk-q0gx75nf.js.br +0 -0
- package/web/chunk-q0gx75nf.js.gz +0 -0
- package/web/chunk-q9rpxfmm.js +0 -1
- package/web/chunk-q9rpxfmm.js.br +0 -0
- package/web/chunk-q9rpxfmm.js.gz +0 -0
- package/web/chunk-qpfhs1x0.js +0 -1
- package/web/chunk-qpfhs1x0.js.br +0 -0
- package/web/chunk-qpfhs1x0.js.gz +0 -0
- package/web/chunk-qredmg6m.js +0 -1
- package/web/chunk-qredmg6m.js.br +0 -0
- package/web/chunk-qredmg6m.js.gz +0 -0
- package/web/chunk-qtc9ar2m.js +0 -2
- package/web/chunk-qtc9ar2m.js.br +0 -0
- package/web/chunk-qtc9ar2m.js.gz +0 -0
- package/web/chunk-r5dsw56r.js +0 -1
- package/web/chunk-r5dsw56r.js.br +0 -0
- package/web/chunk-r5dsw56r.js.gz +0 -0
- package/web/chunk-rkaps675.js +0 -1
- package/web/chunk-rkaps675.js.br +0 -0
- package/web/chunk-rkaps675.js.gz +0 -0
- package/web/chunk-rp87pgcp.js +0 -40
- package/web/chunk-rp87pgcp.js.br +0 -0
- package/web/chunk-rp87pgcp.js.gz +0 -0
- package/web/chunk-rs1mtd35.js +0 -2
- package/web/chunk-rs1mtd35.js.br +0 -0
- package/web/chunk-rs1mtd35.js.gz +0 -0
- package/web/chunk-s31n33g5.js +0 -2
- package/web/chunk-s31n33g5.js.br +0 -0
- package/web/chunk-s31n33g5.js.gz +0 -0
- package/web/chunk-sbcyvn42.js +0 -1
- package/web/chunk-sbcyvn42.js.br +0 -0
- package/web/chunk-sbcyvn42.js.gz +0 -0
- package/web/chunk-sew9vfwy.js +0 -1
- package/web/chunk-sew9vfwy.js.br +0 -0
- package/web/chunk-sew9vfwy.js.gz +0 -0
- package/web/chunk-sgaw26nc.js +0 -2
- package/web/chunk-sgaw26nc.js.br +0 -0
- package/web/chunk-sgaw26nc.js.gz +0 -0
- package/web/chunk-t2ak4a9d.js +0 -1
- package/web/chunk-t2ak4a9d.js.br +0 -0
- package/web/chunk-t2ak4a9d.js.gz +0 -0
- package/web/chunk-ta0e3dk6.js +0 -2
- package/web/chunk-ta0e3dk6.js.br +0 -0
- package/web/chunk-ta0e3dk6.js.gz +0 -0
- package/web/chunk-tqax5mb6.js +0 -217
- package/web/chunk-tqax5mb6.js.br +0 -0
- package/web/chunk-tqax5mb6.js.gz +0 -0
- package/web/chunk-v1wxeq38.js +0 -2
- package/web/chunk-v1wxeq38.js.br +0 -0
- package/web/chunk-v1wxeq38.js.gz +0 -0
- package/web/chunk-v3kwg4zn.js +0 -2
- package/web/chunk-v3kwg4zn.js.br +0 -0
- package/web/chunk-v3kwg4zn.js.gz +0 -0
- package/web/chunk-vcpvhkxh.js +0 -39
- package/web/chunk-vcpvhkxh.js.br +0 -0
- package/web/chunk-vcpvhkxh.js.gz +0 -0
- package/web/chunk-vg9qv3aa.js +0 -1
- package/web/chunk-vg9qv3aa.js.br +0 -0
- package/web/chunk-vg9qv3aa.js.gz +0 -0
- package/web/chunk-vwxnt3nh.js +0 -1
- package/web/chunk-vwxnt3nh.js.br +0 -0
- package/web/chunk-vwxnt3nh.js.gz +0 -0
- package/web/chunk-w1xjqhwy.js +0 -1
- package/web/chunk-w1xjqhwy.js.br +0 -2
- package/web/chunk-w1xjqhwy.js.gz +0 -0
- package/web/chunk-w3nfxvzd.js +0 -1
- package/web/chunk-w3nfxvzd.js.br +0 -0
- package/web/chunk-w3nfxvzd.js.gz +0 -0
- package/web/chunk-w7h3x3ys.js +0 -1
- package/web/chunk-w7h3x3ys.js.br +0 -0
- package/web/chunk-w7h3x3ys.js.gz +0 -0
- package/web/chunk-wb0yn3r4.js +0 -8
- package/web/chunk-wb0yn3r4.js.br +0 -0
- package/web/chunk-wb0yn3r4.js.gz +0 -0
- package/web/chunk-wff6hqjf.js +0 -1
- package/web/chunk-wff6hqjf.js.br +0 -0
- package/web/chunk-wff6hqjf.js.gz +0 -0
- package/web/chunk-whj4e4sb.js +0 -89
- package/web/chunk-whj4e4sb.js.br +0 -0
- package/web/chunk-whj4e4sb.js.gz +0 -0
- package/web/chunk-wn3kdpj0.js +0 -1
- package/web/chunk-wn3kdpj0.js.br +0 -0
- package/web/chunk-wn3kdpj0.js.gz +0 -0
- package/web/chunk-wzq3qxpb.js +0 -1
- package/web/chunk-wzq3qxpb.js.br +0 -0
- package/web/chunk-wzq3qxpb.js.gz +0 -0
- package/web/chunk-x2tezwv1.js +0 -4
- package/web/chunk-x2tezwv1.js.br +0 -0
- package/web/chunk-x2tezwv1.js.gz +0 -0
- package/web/chunk-xmajh4qe.js +0 -2
- package/web/chunk-xmajh4qe.js.br +0 -0
- package/web/chunk-xmajh4qe.js.gz +0 -0
- package/web/chunk-xz7py7yx.js +0 -1
- package/web/chunk-xz7py7yx.js.br +0 -0
- package/web/chunk-xz7py7yx.js.gz +0 -0
- package/web/chunk-y4af9gsm.js +0 -291
- package/web/chunk-y4af9gsm.js.br +0 -0
- package/web/chunk-y4af9gsm.js.gz +0 -0
- package/web/chunk-y512gr5a.js +0 -332
- package/web/chunk-y512gr5a.js.br +0 -0
- package/web/chunk-y512gr5a.js.gz +0 -0
- package/web/chunk-ywg44m2b.js +0 -2
- package/web/chunk-ywg44m2b.js.br +0 -0
- package/web/chunk-ywg44m2b.js.gz +0 -0
- package/web/chunk-zhzp4fm1.js +0 -2
- package/web/chunk-zhzp4fm1.js.br +0 -0
- package/web/chunk-zhzp4fm1.js.gz +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{fe,oe}from"./chunk-ewr4r5yx.js";import{o,f}from"./chunk-k8mc2tn3.js";var vt=o(function(me){var{hasOwn:K}=fe(),{streamCollector:te}=fe();me.streamCollector=te;var{buildQueryString:Q,HttpResponse:J}=oe(),A=f("https"),{Readable:ne}=f("stream"),O=f("http2");function M(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let r=Error("Request aborted");return r.name="AbortError",r.cause=t,r}let s=Error(String(t));return s.name="AbortError",s}let n=Error("Request aborted");return n.name="AbortError",n}var se=["ECONNRESET","EPIPE","ETIMEDOUT"],G=(e)=>{let t={};for(let n in e){if(!K(e,n))continue;let s=e[n];t[n]=Array.isArray(s)?s.join(","):s}return t},m={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},j=1000,re=(e,t,n=0)=>{if(!n)return-1;let s=(r)=>{let c=m.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-r),a=(u)=>{if(u?.connecting)u.on("connect",()=>{m.clearTimeout(c)});else m.clearTimeout(c)};if(e.socket)a(e.socket);else e.on("socket",a)};if(n<2000)return s(0),0;return m.setTimeout(s.bind(null,j),j)},ie=(e,t,n=0,s,r)=>{if(n)return m.setTimeout(()=>{let c=`@smithy/node-http-handler - [${s?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(s){let a=Object.assign(Error(c),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(a),t(a)}else c+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",r?.warn?.(c)},n);return-1},ce=3000,ae=(e,{keepAlive:t,keepAliveMsecs:n},s=ce)=>{if(t!==!0)return-1;let r=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(c)=>{c.setKeepAlive(t,n||0)})};if(s===0)return r(),0;return m.setTimeout(r,s)},B=3000,ue=(e,t,n=0)=>{let s=(r)=>{let c=n-r,a=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(c,a),e.on("close",()=>e.socket?.removeListener("timeout",a));else e.setTimeout(c,a)};if(0<n&&n<6000)return s(0),0;return m.setTimeout(s.bind(null,n===0?0:B),B)},W=6000;async function X(e,t,n=W,s=!1){let r=t.headers,c=r?r.Expect||r.expect:void 0,a=-1,u=!0;if(!s&&c==="100-continue")u=await Promise.race([new Promise((d)=>{a=Number(m.setTimeout(()=>d(!0),Math.max(W,n)))}),new Promise((d)=>{e.on("continue",()=>{m.clearTimeout(a),d(!0)}),e.on("response",()=>{m.clearTimeout(a),d(!1)}),e.on("error",()=>{m.clearTimeout(a),d(!1)})})]);if(u)de(e,t.body)}function de(e,t){if(t instanceof ne){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let r=t;if(typeof r==="object"&&r.buffer&&typeof r.byteOffset==="number"&&typeof r.byteLength==="number"){e.end(Buffer.from(r.buffer,r.byteOffset,r.byteLength));return}e.end(Buffer.from(t));return}e.end()}var he=0,L=void 0,z=void 0;class U{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new U(e)}static checkSocketUsage(e,t,n=console){let{sockets:s,requests:r,maxSockets:c}=e;if(typeof c!=="number"||c===1/0)return t;let a=15000;if(Date.now()-a<t)return t;if(s&&r)for(let u in s){if(!K(s,u))continue;let d=s[u]?.length??0,g=r[u]?.length??0;if(d>=c&&g>=2*c)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${d} and ${g} additional requests are enqueued.
|
|
3
|
+
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
4
|
+
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((s)=>{t(this.resolveDefaultConfig(s))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let s=this.config,r=s.logger,c=e.protocol==="https:";if(!c&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((a,u)=>{let d=void 0,g=-1,p=-1,w=-1,v=-1,C=-1,_=()=>{m.clearTimeout(g),m.clearTimeout(p),m.clearTimeout(w),m.clearTimeout(v),m.clearTimeout(C)},F=async(i)=>{await d,_(),a(i)},E=async(i)=>{await d,_(),u(i)};if(t?.aborted){let i=M(t);E(i);return}let D=e.headers,H=D?(D.Expect??D.expect)==="100-continue":!1,P=c?s.httpsAgent:s.httpAgent;if(H&&!this.externalAgent)P=new(c?A.Agent:L)({keepAlive:!1,maxSockets:1/0});g=m.setTimeout(()=>{this.socketWarningTimestamp=U.checkSocketUsage(P,this.socketWarningTimestamp,r)},s.socketAcquisitionWarningTimeout??(s.requestTimeout??2000)+(s.connectionTimeout??1000));let I=e.query?Q(e.query):"",b=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",h=e.password??"";b=`${i}:${h}`}let k=e.path;if(I)k+=`?${I}`;if(e.fragment)k+=`#${e.fragment}`;let y=e.hostname??"";if(y[0]==="["&&y.endsWith("]"))y=e.hostname.slice(1,-1);else y=e.hostname;let S={headers:e.headers,host:y,method:e.method,path:k,port:e.port,agent:P,auth:b},T=(c?A.request:z)(S,(i)=>{let h=new J({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:G(i.headers),body:i});F({response:h})});if(T.on("error",(i)=>{if(se.includes(i.code))E(Object.assign(i,{name:"TimeoutError"}));else E(i)}),t){let i=()=>{T.destroy();let h=M(t);E(h)};if(typeof t.addEventListener==="function"){let h=t;h.addEventListener("abort",i,{once:!0}),T.once("close",()=>h.removeEventListener("abort",i))}else t.onabort=i}let R=n??s.requestTimeout;p=re(T,E,s.connectionTimeout),w=ie(T,E,R,s.throwOnRequestTimeout,r??console),v=ue(T,E,s.socketTimeout);let l=S.agent;if(typeof l==="object"&&"keepAlive"in l)C=ae(T,{keepAlive:l.keepAlive,keepAliveMsecs:l.keepAliveMsecs});d=X(T,e,R,this.externalAgent).catch((i)=>(_(),u(i)))})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{if(e===Symbol.for("logger"))return{...n,logger:n.logger??t};return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:s,socketAcquisitionWarningTimeout:r,httpAgent:c,httpsAgent:a,throwOnRequestTimeout:u,logger:d}=e||{},g=!0,p=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:s,socketAcquisitionWarningTimeout:r,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let w=f("http"),{Agent:v,request:C}=w.default??w;if(z=C,L=v,c instanceof L||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new L({keepAlive:!0,maxSockets:50,...c})},httpsAgent:(()=>{if(a instanceof A.Agent||typeof a?.destroy==="function")return this.externalAgent=!0,a;return new A.Agent({keepAlive:!0,maxSockets:50,...a})})(),logger:d}}}var le=new Uint16Array(1);class N{id=le[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.setTimeout(0),this.session.destroy()}useCount(){return this.refs}}class Y{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new N(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class Z{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),s=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let d=s.poll();if(d)return d.retain(),d}let r=new N(this.connect(n)),c=r.deref();if(this.config.maxConcurrency)c.settings({maxConcurrentStreams:this.config.maxConcurrency},(d)=>{if(d)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let a=()=>{this.removeFromPoolAndClose(n,r)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,r)};if(c.on("goaway",a),c.on("error",u),c.on("frameError",u),c.on("close",u),t.requestTimeout)c.setTimeout(t.requestTimeout,u);return s.offerLast(r),r.retain(),r}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),s=new N(this.connect(n)),r=s.deref();r.settings({maxConcurrentStreams:1});let c=()=>{s.destroy()};r.on("error",c),r.on("frameError",c),r.on("close",c);let a=t.requestTimeout??300000;return r.setTimeout(a,c),s.retain(),s}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let s=[];for(let r of n)s.push({id:r.id,active:r.useCount(),maxConcurrent:r.max,totalRequests:r.total});e[t]={sessions:s}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new Y;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?O.connect(e):O.connect(e,this.connectOptions)}}var{constants:V}=O;class q{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new Z({});static create(e){if(typeof e?.handle==="function")return e;return new q(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((s)=>{t(s||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:s}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:d,maxConcurrentStreams:g,nodeHttp2ConnectOptions:p}=this.config;if(this.connectionManager.setDisableConcurrentStreams(d??!1),g)this.connectionManager.setMaxConcurrentStreams(g);if(p)this.connectionManager.setNodeHttp2ConnectOptions(p)}let{requestTimeout:r,disableConcurrentStreams:c}=this.config,a=c||s,u=n??r;return new Promise((d,g)=>{let p=!1,w=void 0,v=async(i)=>{await w,d(i)},C=async(i)=>{await w,g(i)};if(t?.aborted){p=!0;let i=M(t);C(i);return}let{hostname:_,method:F,port:E,protocol:D,query:H}=e,P="";if(e.username!=null||e.password!=null){let i=e.username??"",h=e.password??"";P=`${i}:${h}@`}let I=`${D}//${P}${_}${E?`:${E}`:""}`,b={destination:new URL(I)},k={requestTimeout:this.config?.sessionTimeout,isEventStream:s},y=a?this.connectionManager.createIsolatedSession(b,k):this.connectionManager.lease(b,k),S=y.deref(),x=(i)=>{if(a)y.destroy();p=!0,C(i)},T=H?Q(H):"",R=e.path;if(T)R+=`?${T}`;if(e.fragment)R+=`#${e.fragment}`;let l=S.request({...e.headers,[V.HTTP2_HEADER_PATH]:R,[V.HTTP2_HEADER_METHOD]:F});if(u)l.setTimeout(u,()=>{l.close();let i=Error(`Stream timed out because of no activity for ${u} ms`);i.name="TimeoutError",x(i)});if(t){let i=()=>{l.close();let h=M(t);x(h)};if(typeof t.addEventListener==="function"){let h=t;h.addEventListener("abort",i,{once:!0}),l.once("close",()=>h.removeEventListener("abort",i))}else t.onabort=i}l.on("frameError",(i,h,ee)=>{x(Error(`Frame type id ${i} in stream id ${ee} has failed with code ${h}.`))}),l.on("error",x),l.on("aborted",()=>{x(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${l.rstCode}.`))}),l.on("response",(i)=>{let h=new J({statusCode:i[":status"]??-1,headers:G(i),body:l});if(p=!0,v({response:h}),a)S.close(),l.on("end",()=>{y.destroy()})}),l.on("close",()=>{if(a)y.destroy();else this.connectionManager.release(b,y);if(!p){let i=Error("Unexpected error: http2 request did not get a response");if(S.destroyed)i.name="TimeoutError";x(i)}}),w=X(l,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>({...n,[e]:t}))}httpHandlerConfigs(){return this.config??{}}}me.DEFAULT_REQUEST_TIMEOUT=he;me.NodeHttp2Handler=q;me.NodeHttpHandler=U});
|
|
5
|
+
export{vt};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{re,se}from"./chunk-3a3ta83t.js";class p extends Error{}var j=["$ref","$defs","definitions","allOf","oneOf","patternProperties","dependentSchemas","dependencies","unevaluatedProperties","propertyNames","contains","prefixItems","not","if","then","else"];function y(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function L(e){if(!y(e))return!1;let n=typeof e.type==="string"?[e.type]:Array.isArray(e.type)?e.type:[];return n.includes("object")||n.includes("array")||e.properties!==void 0||e.items!==void 0}function M(e){if(!y(e))return!1;if(e.type==="null"||Array.isArray(e.type)&&e.type.includes("null"))return!0;if(e.const===null||Array.isArray(e.enum)&&e.enum.includes(null))return!0;return Array.isArray(e.anyOf)&&e.anyOf.some((n)=>M(n))}function w(e,n){if(!y(e))throw new p("boolean schemas are unsupported");for(let a of j)if(e[a]!==void 0)throw new p(`${a} schemas are unsupported`);if(n){for(let[a,l]of Object.entries(e))if(n(a,l))throw new p(`${a}: ${JSON.stringify(l)} is unsupported`)}if(e.anyOf!==void 0){if(!Array.isArray(e.anyOf)||e.anyOf.length===0)throw new p("anyOf must contain at least one schema");for(let a of e.anyOf){if(L(a))throw new p("object and array unions are unsupported");w(a,n)}}if(e.items!==void 0){if(Array.isArray(e.items))throw new p("tuple schemas are unsupported");w(e.items,n)}let t=e.type==="object";if(e.properties!==void 0&&!t)throw new p("properties require type object");if(!t)return;if(e.additionalProperties!==void 0&&e.additionalProperties!==!1)throw new p("schema-valued or true additionalProperties is unsupported");if(e.properties!==void 0&&!y(e.properties))throw new p("object properties must be a schema map");if(e.required!==void 0&&(!Array.isArray(e.required)||e.required.some((a)=>typeof a!=="string")))throw new p("object required must be a string array");let r=e.properties??{},i=Object.keys(r),o=new Set(Array.isArray(e.required)?e.required:[]);if([...o].some((a)=>!i.includes(a)))throw new p("required contains an unknown property");for(let[a,l]of Object.entries(r))if(w(l,n),!o.has(a)&&!M(l))r[a]={anyOf:[l,{type:"null"}]};e.required=i,e.additionalProperties=!1}function N(e,n){let t=structuredClone(e);if(!y(t))throw new p("root schema must have type object");if(w(t,n),t.type!=="object")throw new p("root schema must have type object");return t}function De(e,n){return n===!0?N(e.parameters):e.parameters}function bo(e,n,t){let r=n[t];if(typeof r!=="string")throw Error(`Grammar tool call "${e}" requires argument "${t}" to be a string.`);return r}function wo(e,n,t,r){if(e.closed){if(r&&t===e.input)return;throw Error(`grammar tool input for property "${n}" changed after it was closed`)}if(!t.startsWith(e.input))throw Error(`grammar tool input for property "${n}" changed non-monotonically`);let i=t.slice(e.input.length);if(!r&&i.length===0)return;let o="";if(!e.started)o+=`{${JSON.stringify(n)}:"`,e.started=!0;if(o+=JSON.stringify(i).slice(1,-1),e.input=t,r)o+='"}',e.closed=!0;return o}function D(e){let n=e.parameters;if(n.type!=="object")throw Error("grammar constrained sampling requires an object parameter schema");if(!Array.isArray(n.required)||n.required.length!==1||typeof n.required[0]!=="string")throw Error("grammar constrained sampling requires exactly one required string property");let t=n.required[0];if(!n.properties?.[t])throw Error(`grammar constrained sampling requires a properties entry for ${t}`);if(n.properties[t]?.type!=="string")throw Error(`grammar constrained sampling property ${t} must have type string`);return t}function Ie(e,n,t){let r=e.constrainedSampling;if(!r||r.type!=="json_schema")return;if(n)try{return N(e.parameters,t),!0}catch(i){if(!(i instanceof p))throw i;if(r.strict!=="require")return;throw Error(`Tool "${e.name}" requires JSON-schema constrained sampling, but ${i.message}.`)}if(r.strict==="require")throw Error(`Tool "${e.name}" requires JSON-schema constrained sampling, but strict tools are unsupported.`);return}function bn(e,n){let t=e.constrainedSampling;if(!t||t.type!=="grammar")return;if(!n)return;let r=t.variants.openai_lark,i=t.variants.openai_regex,o=typeof r==="string"&&r.trim().length>0,a=typeof i==="string"&&i.trim().length>0;if(!o&&!a)throw Error(`Tool "${e.name}" cannot use grammar constrained sampling: no supported grammar variant was provided.`);try{return{format:o?"lark":"regex",definition:o?r:i,inputProperty:D(e)}}catch(l){let d=l instanceof Error?l.message:String(l);throw Error(`Tool "${e.name}" cannot use grammar constrained sampling: ${d}.`)}}function Ze(e,n){let t=new Map;for(let r of e??[]){let i=bn(r,n);if(i)t.set(r.name,i.inputProperty)}return t}var O=3.5,G=4800;function R(e){return e.totalTokens||e.input+e.output+e.cacheRead+e.cacheWrite}function _(e){try{return JSON.stringify(e)??"undefined"}catch{return"[unserializable]"}}function b(e){if(typeof e==="string")return e.length;let n=0;for(let t of e)n+=t.type==="text"?t.text.length:G;return n}function P(e){return Math.ceil(e.length/O)}function k(e){return Math.ceil(b(e)/O)}function C(e){let n=0;if(e.role==="system")return P(re(e))+E(e.toolsAdded)+E(e.toolsRemoved);if(e.role==="user")return k(e.content);if(e.role==="toolResult")return k(e.content);for(let t of e.content)if(t.type==="text")n+=t.text.length;else if(t.type==="thinking")n+=t.thinking.length;else n+=t.name.length+_(t.arguments).length;return Math.ceil(n/O)}function H(e){let n=Number.NEGATIVE_INFINITY,t;for(let r=0;r<e.length;r++){let i=e[r];if(i.role==="assistant"){let o=i;if(o.timestamp>=n&&o.stopReason!=="aborted"&&o.stopReason!=="error"&&R(o.usage)>0)t={usage:o.usage,index:r}}n=Math.max(n,i.timestamp)}return t}function v(e){let n="messages"in e?e.messages:e,t=H(n);if(t){let i=R(t.usage),o=0;for(let a=t.index+1;a<n.length;a++)o+=C(n[a]);return{tokens:i+o,usageTokens:i,trailingTokens:o,lastUsageIndex:t.index}}let r=0;for(let i of n)r+=C(i);return{tokens:r,usageTokens:0,trailingTokens:r,lastUsageIndex:null}}function E(e){if(!e||e.length===0)return 0;return P(_(e))}var W=4096,S=1;function wn(e,n,t){if(e.contextWindow<=0)return Math.max(S,t);let r=e.contextWindow-v(n).tokens-W;return Math.min(t,Math.max(S,r))}function pr(e,n,t){let r=se(e,n),i=e.samplingParamsByThinkingLevel?.[r];return e.samplingParams||i||t?{...e.samplingParams,...i,...t}:void 0}function de(e,n,t,r){let i=pr(e,t?.reasoning??"off",t?.samplingParams);return{temperature:t?.temperature,samplingParams:i,maxTokens:wn(e,n,t?.maxTokens??e.maxTokens),signal:t?.signal,telemetryContext:t?.telemetryContext,apiKey:r||t?.apiKey,fetch:t?.fetch,transport:t?.transport,cacheRetention:t?.cacheRetention,sessionId:t?.sessionId,headers:t?.headers,onPayload:t?.onPayload,onResponse:t?.onResponse,onProviderStreamEvent:t?.onProviderStreamEvent,timeoutMs:t?.timeoutMs,websocketConnectTimeoutMs:t?.websocketConnectTimeoutMs,maxRetries:t?.maxRetries,maxRetryDelayMs:t?.maxRetryDelayMs,metadata:t?.metadata,env:t?.env}}var B=1024,F={minimal:1024,low:2048,medium:8192,high:16384};function zs(e){return e==="xhigh"||e==="max"?"high":e}function $s(e,n){let t={...F,...n},r=zs(e);return t[r]}function js(e,n){return Math.min(e,Math.max(0,n-B))}function So(e,n,t,r){let i=$s(t,r),o=e===void 0?n:Math.min(e+i,n);if(o<=i)i=js(i,o);return{maxTokens:o,thinkingBudget:i}}function q(e,n){let t=[],r=!1;for(let i of e){if(i.type==="image"){if(!r)t.push({type:"text",text:n});r=!0;continue}t.push(i),r=i.text===n}return t}function V(e,n){if(n.input.includes("image"))return e;return e.map((t)=>{if(t.role==="user"&&Array.isArray(t.content))return{...t,content:q(t.content,"(image omitted: model does not support images)")};if(t.role==="toolResult")return{...t,content:q(t.content,"(tool image omitted: model does not support images)")};return t})}function Ne(e,n,t){let r=new Map,i=e.map((s)=>s.content==null?{...s,content:[]}:s),a=V(i,n).map((s)=>{if(s.role==="system"||s.role==="user")return s;if(s.role==="toolResult"){let u=r.get(s.toolCallId);if(u&&u!==s.toolCallId)return{...s,toolCallId:u};return s}if(s.role==="assistant"){let u=s,c=u.provider===n.provider&&u.api===n.api&&u.model===n.id,x=u.content.flatMap((f)=>{if(f.type==="thinking"){if(f.redacted)return c?f:[];if(c&&f.thinkingSignature)return f;if(!f.thinking||f.thinking.trim()==="")return[];if(c)return f;return{type:"text",text:f.thinking}}if(f.type==="text"){if(c)return f;return{type:"text",text:f.text}}if(f.type==="toolCall"){let m=f,g=m;if(!c&&m.thoughtSignature)g={...m},delete g.thoughtSignature;if(!c&&t){let I=t(m.id,n,u);if(I!==m.id)r.set(m.id,I),g={...g,id:I}}return g}return f});return{...u,content:x}}return s}),l=[],d=[],h=new Set,T=[],A=()=>{if(d.length>0){for(let s of d)if(!h.has(s.id))l.push({role:"toolResult",toolCallId:s.id,toolName:s.name,content:[{type:"text",text:"No result provided"}],isError:!0,timestamp:Date.now()});d=[],h=new Set}l.push(...T),T.length=0};for(let s=0;s<a.length;s++){let u=a[s];if(u.role==="assistant"){A();let c=u;if(c.stopReason==="error"||c.stopReason==="aborted")continue;let x=c.content.filter((f)=>f.type==="toolCall");if(x.length>0)d=x,h=new Set;l.push(u)}else if(u.role==="toolResult")h.add(u.toolCallId),l.push(u);else if(u.role==="system")if(d.length>0)T.push(u);else l.push(u);else if(u.role==="user")A(),l.push(u);else l.push(u)}return A(),l}
|
|
3
|
+
export{De,bo,wo,Ie,bn,Ze,wn,pr,de,zs,$s,js,So,Ne};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var l=Object.create;var{getPrototypeOf:n,defineProperty:g,getOwnPropertyNames:p}=Object;var k=Object.prototype.hasOwnProperty;function q(a){return this[a]}var r,s,m=(a,b,c)=>{var d=a!=null&&typeof a==="object";if(d){var i=b?r??=new WeakMap:s??=new WeakMap,j=i.get(a);if(j)return j}c=a!=null?l(n(a)):{};let e=b||!a||!a.__esModule||!k.call(a,"default")?g(c,"default",{value:a,enumerable:!0}):c;if(a&&typeof a==="object"||typeof a==="function"){for(let h of p(a))if(!k.call(e,h))g(e,h,{get:q.bind(a,h),enumerable:!0})}if(d)i.set(a,e);return e};var o=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var t=(a)=>a;function u(a,b){this[a]=t.bind(null,b)}var Dt=(a,b)=>{for(var c in b)g(a,c,{get:b[c],enumerable:!0,configurable:!0,set:u.bind(b,c)})};var an=(a,b,c)=>{for(var d in b)g(a,d,{get:b[d],set:c[d],enumerable:!0,configurable:!0})},f=import.meta.require;
|
|
3
|
+
export{m,o,Dt,an,f};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{m,o}from"./chunk-k8mc2tn3.js";var E=o(function(M){Object.defineProperty(M,"__esModule",{value:!0});M.Allow=M.ALL=M.COLLECTION=M.ATOM=M.SPECIAL=M.INF=M._INFINITY=M.INFINITY=M.NAN=M.BOOL=M.NULL=M.OBJ=M.ARR=M.NUM=M.STR=void 0;M.STR=1;M.NUM=2;M.ARR=4;M.OBJ=8;M.NULL=16;M.BOOL=32;M.NAN=64;M.INFINITY=128;M._INFINITY=256;M.INF=M.INFINITY|M._INFINITY;M.SPECIAL=M.NULL|M.BOOL|M.INF|M.NAN;M.ATOM=M.STR|M.NUM|M.SPECIAL;M.COLLECTION=M.ARR|M.OBJ;M.ALL=M.ATOM|M.COLLECTION;M.Allow={STR:M.STR,NUM:M.NUM,ARR:M.ARR,OBJ:M.OBJ,NULL:M.NULL,BOOL:M.BOOL,NAN:M.NAN,INFINITY:M.INFINITY,_INFINITY:M._INFINITY,INF:M.INF,SPECIAL:M.SPECIAL,ATOM:M.ATOM,COLLECTION:M.COLLECTION,ALL:M.ALL};M.default=M.Allow});var v=o(function(c){var z=c&&c.__createBinding||(Object.create?function(t,r,s,e){if(e===void 0)e=s;var u=Object.getOwnPropertyDescriptor(r,s);if(!u||("get"in u?!r.__esModule:u.writable||u.configurable))u={enumerable:!0,get:function(){return r[s]}};Object.defineProperty(t,e,u)}:function(t,r,s,e){if(e===void 0)e=s;t[e]=r[s]}),G=c&&c.__exportStar||function(t,r){for(var s in t)if(s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s))z(r,t,s)};Object.defineProperty(c,"__esModule",{value:!0});c.Allow=c.MalformedJSON=c.PartialJSON=c.parseJSON=c.parse=void 0;var i=E();Object.defineProperty(c,"Allow",{enumerable:!0,get:function(){return i.Allow}});G(E(),c);class R extends Error{}c.PartialJSON=R;class B extends Error{}c.MalformedJSON=B;function Y(t,r=i.Allow.ALL){if(typeof t!=="string")throw TypeError(`expecting str, got ${typeof t}`);if(!t.trim())throw Error(`${t} is empty`);return H(t.trim(),r)}c.parseJSON=Y;var H=(t,r)=>{let s=t.length,e=0,u=(n)=>{throw new R(`${n} at position ${e}`)},f=(n)=>{throw new B(`${n} at position ${e}`)},N=()=>{if(l(),e>=s)u("Unexpected end of input");if(t[e]==='"')return P();if(t[e]==="{")return W();if(t[e]==="[")return D();if(t.substring(e,e+4)==="null"||i.Allow.NULL&r&&s-e<4&&"null".startsWith(t.substring(e)))return e+=4,null;if(t.substring(e,e+4)==="true"||i.Allow.BOOL&r&&s-e<4&&"true".startsWith(t.substring(e)))return e+=4,!0;if(t.substring(e,e+5)==="false"||i.Allow.BOOL&r&&s-e<5&&"false".startsWith(t.substring(e)))return e+=5,!1;if(t.substring(e,e+8)==="Infinity"||i.Allow.INFINITY&r&&s-e<8&&"Infinity".startsWith(t.substring(e)))return e+=8,1/0;if(t.substring(e,e+9)==="-Infinity"||i.Allow._INFINITY&r&&1<s-e&&s-e<9&&"-Infinity".startsWith(t.substring(e)))return e+=9,-1/0;if(t.substring(e,e+3)==="NaN"||i.Allow.NAN&r&&s-e<3&&"NaN".startsWith(t.substring(e)))return e+=3,NaN;return q()},P=()=>{let n=e,a=!1;e++;while(e<s&&(t[e]!=='"'||a&&t[e-1]==="\\"))a=t[e]==="\\"?!a:!1,e++;if(t.charAt(e)=='"')try{return JSON.parse(t.substring(n,++e-Number(a)))}catch(p){f(String(p))}else if(i.Allow.STR&r)try{return JSON.parse(t.substring(n,e-Number(a))+'"')}catch(p){return JSON.parse(t.substring(n,t.lastIndexOf("\\"))+'"')}u("Unterminated string literal")},W=()=>{e++,l();let n={};try{while(t[e]!=="}"){if(l(),e>=s&&i.Allow.OBJ&r)return n;let a=P();l(),e++;try{let p=N();n[a]=p}catch(p){if(i.Allow.OBJ&r)return n;else throw p}if(l(),t[e]===",")e++}}catch(a){if(i.Allow.OBJ&r)return n;else u("Expected '}' at end of object")}return e++,n},D=()=>{e++;let n=[];try{while(t[e]!=="]")if(n.push(N()),l(),t[e]===",")e++}catch(a){if(i.Allow.ARR&r)return n;u("Expected ']' at end of array")}return e++,n},q=()=>{if(e===0){if(t==="-")f("Not sure what '-' is");try{return JSON.parse(t)}catch(a){if(i.Allow.NUM&r)try{return JSON.parse(t.substring(0,t.lastIndexOf("e")))}catch(p){}f(String(a))}}let n=e;if(t[e]==="-")e++;while(t[e]&&",]}".indexOf(t[e])===-1)e++;if(e==s&&!(i.Allow.NUM&r))u("Unterminated number literal");try{return JSON.parse(t.substring(n,e))}catch(a){if(t.substring(n,e)==="-")u("Not sure what '-' is");try{return JSON.parse(t.substring(n,t.lastIndexOf("e")))}catch(p){f(String(p))}}},l=()=>{while(e<s&&`
|
|
3
|
+
\r `.includes(t[e]))e++};return N()},K=Y;c.parse=K});var F=m(v(),1),Q=new Set(['"',"\\","/","b","f","n","r","t","u"]);function X(t){let r=t.codePointAt(0);return r!==void 0&&r>=0&&r<=31}function Z(t){switch(t){case"\b":return"\\b";case"\f":return"\\f";case`
|
|
4
|
+
`:return"\\n";case"\r":return"\\r";case"\t":return"\\t";default:return`\\u${t.codePointAt(0)?.toString(16).padStart(4,"0")??"0000"}`}}function Sa(t){let r="",s=!1;for(let e=0;e<t.length;e++){let u=t[e];if(!s){if(r+=u,u==='"')s=!0;continue}if(u==='"'){r+=u,s=!1;continue}if(u==="\\"){let f=t[e+1];if(f===void 0){r+="\\\\";continue}if(f==="u"){let N=t.slice(e+2,e+6);if(/^[0-9a-fA-F]{4}$/.test(N)){r+=`\\u${N}`,e+=5;continue}}if(Q.has(f)){r+=`\\${f}`,e+=1;continue}r+="\\\\";continue}r+=X(u)?Z(u):u}return r}function Go(t){try{return JSON.parse(t)}catch(r){let s=Sa(t);if(s!==t)return JSON.parse(s);throw r}}function ne(t){if(!t||t.trim()==="")return{};try{return Go(t)}catch{try{return F.parse(t)??{}}catch{try{return F.parse(Sa(t))??{}}catch{return{}}}}}
|
|
5
|
+
export{Sa,Go,ne};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{P}from"./chunk-wbpt03pe.js";import{ne}from"./chunk-mbf7201c.js";import{O}from"./chunk-s27309w7.js";import{Nt}from"./chunk-c0htgv5v.js";import{Kt}from"./chunk-bvh3ccr2.js";import{kr,Pr}from"./chunk-8bvjjs3r.js";import{Se}from"./chunk-412mm63g.js";import{Te}from"./chunk-1jtnjzrz.js";import{ie,pe}from"./chunk-qj6bf18b.js";import{De,bo,wo,Ie,bn,Ze,pr,de,$s,js,Ne}from"./chunk-k3ndw7d4.js";import{C}from"./chunk-bkabw9yr.js";import{ce}from"./chunk-5xj2kq5h.js";import{re,mt,xe,ze,$e,me,se}from"./chunk-3a3ta83t.js";import{J}from"./chunk-h2br80f8.js";function H(e,n){if(!e)return!1;let t=n.toLowerCase();for(let[s,u]of Object.entries(e))if(s.toLowerCase()===t&&u!==null&&u.trim().length>0)return!0;return!1}function Q(e,n,t){if(n)return n;if(H(t,"authorization")||H(t,"cf-aig-authorization"))return"unused";throw Error(`No API key for provider: ${e}`)}function fe(e){for(let n of e){if(n.role==="toolResult")return!0;if(n.role==="assistant"){if(n.content.some((t)=>t.type==="toolCall"))return!0}}return!1}function U(e){return e.type==="text"}function le(e){return e.type==="thinking"}function ge(e){return e.type==="toolCall"}function he(e){return e.type==="image"}function ye(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function ke(e){return(e.id===void 0||e.id===null||typeof e.id==="string")&&(e.format===void 0||typeof e.format==="string")&&(e.index===void 0||typeof e.index==="number")}function G(e){if(!ye(e)||!ke(e))return!1;switch(e.type){case"reasoning.summary":return typeof e.summary==="string";case"reasoning.encrypted":return typeof e.data==="string";case"reasoning.text":return typeof e.text==="string"&&(e.signature===void 0||e.signature===null||typeof e.signature==="string");default:return!1}}function Re(e){if(!e)return;try{let n=JSON.parse(e);return Array.isArray(n)&&n.length>0&&n.every(G)?n:void 0}catch{return}}function _e(e){if(!e)return;try{let n=JSON.parse(e);return G(n)&&n.type==="reasoning.encrypted"&&typeof n.id==="string"&&n.id.length>0&&n.data.length>0?n:void 0}catch{return}}function W(e,n){e.id??=n.id,e.format||=n.format,e.index??=n.index}function ve(e,n){let t=e[e.length-1];if(n.type==="reasoning.text"&&t?.type==="reasoning.text"){t.text+=n.text,t.signature||=n.signature,W(t,n);return}if(n.type==="reasoning.summary"&&t?.type==="reasoning.summary"){t.summary+=n.summary,W(t,n);return}e.push({...n})}var Ae=["reasoning","reasoning_content","reasoning_text"];function Ce(e){return Ae.includes(e)}function X(e,n){if(e)return e;if(O("PI_CACHE_RETENTION",n)==="long")return"long";return"short"}var Me=(e,n,t)=>{let s=new J,u=xe(n,D(e).supportsMidConvoSystemMessages);return(async()=>{let r={role:"assistant",content:[],api:e.api,provider:e.provider,model:e.id,usage:{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},stopReason:"pending",timestamp:Date.now()},k,g=(R)=>{if(k!==void 0)R.thinkingSignature=JSON.stringify(k)};try{let R=Q(e.provider,t?.apiKey,t?.headers),a=D(e),T=Ze(ze(u.messages),a.supportsOpenAIGrammarTools),p=X(t?.cacheRetention,t?.env),d=p==="none"?void 0:t?.sessionId,o=Ee(e,u,R,t?.headers,t?.fetch,d,a),f=we(e,u,t,a,p,T),h=await t?.onPayload?.(f,e);if(h!==void 0)f=h;let A={...t?.signal?{signal:t.signal}:{},...t?.timeoutMs!==void 0?{timeout:t.timeoutMs}:{},maxRetries:0},{data:M,response:B}=await Te(()=>o.chat.completions.create(f,A).withResponse(),{maxRetries:t?.maxRetries,maxRetryDelayMs:t?.maxRetryDelayMs,signal:t?.signal});await t?.onResponse?.({status:B.status,headers:ce(B.headers)},e),s.push({type:"start",partial:r});let w=null,S=null,v=!1,F=new Map,L=new Map,l=r.content,I=(i)=>l.indexOf(i),N=(i)=>{let c=i.customInput?.property;if(c===void 0)return"";let x=i.arguments[c];return typeof x==="string"?x:""},j=(i,c,x)=>{let m=i.customInput;if(!m)return;let E=wo(m.jsonBuffer,m.property,c,x);return i.arguments={[m.property]:c},E},te=(i)=>{let c=I(i);if(c===-1)return;if(i.type==="text")s.push({type:"text_end",contentIndex:c,content:i.text,partial:r});else if(i.type==="thinking")g(i),s.push({type:"thinking_end",contentIndex:c,content:i.thinking,partial:r});else if(i.type==="toolCall"){if(i.customInput){let x=j(i,N(i),!0);if(x!==void 0)s.push({type:"toolcall_delta",contentIndex:c,delta:x,partial:r})}else i.arguments=ne(i.partialArgs);delete i.partialArgs,delete i.customInput,delete i.streamIndex,s.push({type:"toolcall_end",contentIndex:c,toolCall:i,partial:r})}},oe=()=>{if(!w)w={type:"text",text:""},l.push(w),s.push({type:"text_start",contentIndex:I(w),partial:r});return w},K=(i)=>{if(!S)S={type:"thinking",thinking:"",thinkingSignature:i},l.push(S),s.push({type:"thinking_start",contentIndex:I(S),partial:r});return S},ae=(i)=>{let c=typeof i.index==="number"?i.index:void 0,x=i.function?.name??i.custom?.name??"",m=c!==void 0?F.get(c):void 0;if(!m&&i.id)m=L.get(i.id);if(!m){let E=i.custom&&!i.function?T.get(x)??"input":void 0,b=E!==void 0;if(m={type:"toolCall",id:i.id||"",name:x,arguments:b?{[E]:""}:{},partialArgs:b?void 0:"",customInput:b?{property:E,jsonBuffer:{input:"",started:!1,closed:!1}}:void 0,streamIndex:c},c!==void 0)F.set(c,m);if(i.id)L.set(i.id,m);l.push(m),s.push({type:"toolcall_start",contentIndex:I(m),partial:r})}if(c!==void 0&&m.streamIndex===void 0)m.streamIndex=c,F.set(c,m);if(i.id)L.set(i.id,m);if(!m.name&&x)m.name=x;if(i.custom&&!i.function&&!m.customInput){let E=T.get(m.name)??"input";m.arguments={[E]:""},m.customInput={property:E,jsonBuffer:{input:"",started:!1,closed:!1}},delete m.partialArgs}return m};for await(let i of M){if(await t?.onProviderStreamEvent?.(i,e),!i||typeof i!=="object")continue;if(r.responseId||=i.id,typeof i.model==="string"&&i.model.length>0&&i.model!==e.id)r.responseModel||=i.model;if(i.usage)r.usage=Z(i.usage,e);let c=Array.isArray(i.choices)?i.choices[0]:void 0;if(!c)continue;if(!i.usage&&c.usage)r.usage=Z(c.usage,e);if(c.finish_reason){r.rawStopReason=c.finish_reason;let x=Ue(c.finish_reason);if(r.stopReason=x.stopReason,x.errorMessage)r.errorMessage=x.errorMessage;v=!0}if(c.delta){if(c.delta.content!==null&&c.delta.content!==void 0&&c.delta.content.length>0){let y=oe();y.text+=c.delta.content,s.push({type:"text_delta",contentIndex:I(y),delta:c.delta.content,partial:r})}let x=["reasoning_content","reasoning","reasoning_text"],m=c.delta,E=null;for(let y of x){let _=m[y];if(typeof _==="string"&&_.length>0){E=y;break}}if(E){let y=m[E];if(typeof y==="string"&&y.length>0){let _=e.provider==="opencode-go"&&E==="reasoning"?"reasoning_content":E,q=K(_);q.thinking+=y,s.push({type:"thinking_delta",contentIndex:I(q),delta:y,partial:r})}}if(c?.delta?.tool_calls)for(let y of c.delta.tool_calls){let _=ae(y);if(!_.id&&y.id)_.id=y.id,L.set(y.id,_);let q=y.function?.name??y.custom?.name;if(!_.name&&q)_.name=q;let z="";if(y.function?.arguments)z=y.function.arguments,_.partialArgs=(_.partialArgs??"")+y.function.arguments,_.arguments=ne(_.partialArgs);else if(y.custom?.input){let ue=N(_)+y.custom.input;z=j(_,ue,!1)??""}s.push({type:"toolcall_delta",contentIndex:I(_),delta:z,partial:r})}let b=c.delta.reasoning_details;if(Array.isArray(b))for(let y of b){if(!G(y))continue;K(""),k??=[],ve(k,y)}}}for(let i of l)te(i);if(t?.signal?.aborted)throw Error("Request was aborted");if(r.stopReason==="aborted")throw Error("Request was aborted");if(!v&&!a.supportsFinishReason)r.stopReason=r.content.some((i)=>i.type==="toolCall")?"toolUse":"stop";if(r.stopReason==="error")throw Error(r.errorMessage||"Provider returned an error stop reason");if(a.supportsFinishReason&&!v||r.stopReason==="pending")throw Error("Stream ended without finish_reason");s.push({type:"done",reason:r.stopReason,message:r}),s.end()}catch(R){for(let T of r.content){if(T.type==="thinking")g(T);delete T.index,delete T.partialArgs,delete T.customInput,delete T.streamIndex}r.stopReason=t?.signal?.aborted?"aborted":"error",r.errorMessage=pe(ie(R));let a=R?.error?.metadata?.raw;if(a&&!r.errorMessage.includes(String(a)))r.errorMessage+=`
|
|
3
|
+
${a}`;s.push({type:"error",reason:r.stopReason,error:r}),s.end()}})(),s},gt=(e,n,t)=>{Q(e.provider,t?.apiKey,t?.headers);let s={...de(e,n,t,t?.apiKey),toolChoice:t?.toolChoice},u=t?.reasoning?se(e,t.reasoning):void 0;return Me(e,n,{...s,reasoningEffort:u==="off"?void 0:u,thinkingBudgets:t?.thinkingBudgets})};function Ee(e,n,t,s,u,r,k=D(e)){let g={"User-Agent":Se(),...e.headers};if(e.provider==="github-copilot"){let R=kr(n.messages),a=Pr({messages:n.messages,hasImages:R});Object.assign(g,a)}if(r&&k.sendSessionAffinityHeaders)if(k.sessionAffinityFormat==="openrouter")g["x-session-id"]=r;else{if(k.sessionAffinityFormat==="openai")g.session_id=r;g["x-client-request-id"]=r,g["x-session-affinity"]=r}if(s)Object.assign(g,s);return new P({apiKey:t,baseURL:e.baseUrl,dangerouslyAllowBrowser:!0,fetch:u,defaultHeaders:g})}function we(e,n,t,s=D(e),u=X(t?.cacheRetention,t?.env),r=Ze(ze(n.messages),s.supportsOpenAIGrammarTools)){let k=$e(n.messages,s.supportsMidConvoSystemMessages===!0&&s.supportsMidConvoToolAdditions===!0),g=He(e,n,s,{grammarToolInputProperties:r}),R=Be(s,u),a={model:e.id,messages:g,stream:!0,prompt_cache_key:e.baseUrl.includes("api.openai.com")&&u!=="none"||u==="long"&&s.supportsLongCacheRetention?Nt(t?.sessionId):void 0,prompt_cache_retention:u==="long"&&s.supportsLongCacheRetention?"24h":void 0};if(s.supportsUsageInStreaming!==!1)a.stream_options={include_usage:!0};if(s.supportsStore)a.store=!1;if(t?.maxTokens)if(s.maxTokensField==="max_tokens")a.max_tokens=t.maxTokens;else a.max_completion_tokens=t.maxTokens;if(t?.temperature!==void 0)a.temperature=t.temperature;if(k.requestTools.length>0){if(a.tools=ee(k.requestTools,s),s.zaiToolStream)a.tool_stream=!0}else if(fe(n.messages))a.tools=[];if(R)Pe(g,a.tools,R);if(t?.toolChoice)a.tool_choice=t.toolChoice;if(s.vllmPriority!==void 0)a.priority=s.vllmPriority;let T=Fe(s),p=Oe(e,t,a);if(s.thinkingFormat==="zai"&&e.reasoning){let o=a;if(o.thinking=t?.reasoningEffort?{type:"enabled",clear_thinking:!1}:{type:"disabled"},t?.reasoningEffort&&s.supportsReasoningEffort){let f=e.thinkingLevelMap?.[t.reasoningEffort],h=f===void 0?t.reasoningEffort:f;if(typeof h==="string")o.reasoning_effort=h}}else if(s.thinkingFormat==="qwen"&&e.reasoning){if(a.enable_thinking=!!t?.reasoningEffort,t?.reasoningEffort&&s.supportsReasoningEffort){let o=e.thinkingLevelMap?.[t.reasoningEffort]??t.reasoningEffort;if(typeof o==="string")a.reasoning_effort=o}}else if(s.thinkingFormat==="qwen-chat-template"&&e.reasoning)a.chat_template_kwargs={enable_thinking:!!t?.reasoningEffort,preserve_thinking:!0};else if(s.thinkingFormat==="chat-template"&&e.reasoning){let o=V(e,t,s.chatTemplateKwargs,p);if(o)a.chat_template_kwargs=o}else if(s.thinkingFormat==="baseten"&&e.reasoning){let o=a,f=V(e,t,s.chatTemplateArgs,p);if(f)o.chat_template_args=f;if(s.supportsReasoningEffort){let h=t?.reasoningEffort,A=h?e.thinkingLevelMap?.[h]:e.thinkingLevelMap?.off,M=A===void 0?h:A;if(typeof M==="string")o.reasoning_effort=M}}else if(s.thinkingFormat==="deepseek"&&e.reasoning){if(t?.reasoningEffort)a.thinking={type:"enabled"};else if(e.thinkingLevelMap?.off!==null)a.thinking={type:"disabled"};if(t?.reasoningEffort&&s.supportsReasoningEffort)a.reasoning_effort=e.thinkingLevelMap?.[t.reasoningEffort]??t.reasoningEffort}else if(s.thinkingFormat==="openrouter"&&e.reasoning){let o=a;if(t?.reasoningEffort)o.reasoning={effort:e.thinkingLevelMap?.[t.reasoningEffort]??t.reasoningEffort};else if(e.thinkingLevelMap?.off!==null)o.reasoning={effort:e.thinkingLevelMap?.off??"none"}}else if(s.thinkingFormat==="ant-ling"&&e.reasoning&&t?.reasoningEffort){let o=e.thinkingLevelMap?.[t.reasoningEffort];if(typeof o==="string")a.reasoning={effort:o}}else if(s.thinkingFormat==="together"&&e.reasoning){let o=a;if(o.reasoning={enabled:!!t?.reasoningEffort},t?.reasoningEffort&&s.supportsReasoningEffort)o.reasoning_effort=e.thinkingLevelMap?.[t.reasoningEffort]??t.reasoningEffort}else if(s.thinkingFormat==="string-thinking"&&e.reasoning){let o=a;if(t?.reasoningEffort)o.thinking=e.thinkingLevelMap?.[t.reasoningEffort]??t.reasoningEffort;else if(e.thinkingLevelMap?.off!==null)o.thinking=e.thinkingLevelMap?.off??"none"}else if(t?.reasoningEffort&&e.reasoning&&s.supportsReasoningEffort)a.reasoning_effort=e.thinkingLevelMap?.[t.reasoningEffort]??t.reasoningEffort;else if(!t?.reasoningEffort&&e.reasoning&&s.supportsReasoningEffort){let o=e.thinkingLevelMap?.off;if(typeof o==="string")a.reasoning_effort=o}if(T&&p!==void 0)Object.assign(a,{[T]:p});if(e.compat?.openRouterRouting)a.provider=e.compat.openRouterRouting;if(e.compat?.vercelGatewayRouting){let o=e.compat.vercelGatewayRouting;if(o.only||o.order){let f={};if(o.only)f.only=o.only;if(o.order)f.order=o.order;a.providerOptions={gateway:f}}}let d=pr(e,t?.reasoningEffort??"off",t?.samplingParams);if(d)Object.assign(a,d);return a}function Fe(e){if(e.thinkingTokenBudgetField)return e.thinkingTokenBudgetField;if(e.supportsThinkingTokenBudget)return"thinking_token_budget";return}function Oe(e,n,t){if(!n?.reasoningEffort||!e.reasoning)return;let s=t.max_tokens??t.max_completion_tokens??e.maxTokens,u=js($s(n.reasoningEffort,n.thinkingBudgets),s);return u>0?u:void 0}function V(e,n,t,s){let u={};for(let[r,k]of Object.entries(t)){let g=be(e,n,k,s);if(g!==void 0)u[r]=g}return Object.keys(u).length>0?u:void 0}function be(e,n,t,s){if(typeof t!=="object"||t===null)return t;let u=n?.reasoningEffort;if(!u&&t.omitWhenOff)return;if(t.$var==="thinking.enabled")return!!u;if(t.$var==="thinking.budget")return s;let r=u?e.thinkingLevelMap?.[u]:e.thinkingLevelMap?.off;return r===void 0?u:typeof r==="string"?r:void 0}function Be(e,n){if(e.cacheControlFormat!=="anthropic"||n==="none")return;let t=n==="long"&&e.supportsLongCacheRetention?"1h":void 0;return{type:"ephemeral",...t?{ttl:t}:{}}}function Pe(e,n,t){Le(e,t),Ge(n,t),qe(e,t)}function Le(e,n){for(let t of e)if(t.role==="system"||t.role==="developer"){je(t,n);return}}function qe(e,n){for(let t=e.length-1;t>=0;t--){let s=e[t];if(s.role==="user"||s.role==="assistant"||s.role==="tool"){if(Ke(s,n))return}}}function Ge(e,n){if(!e||e.length===0)return;let t=e[e.length-1];t.cache_control=n}function je(e,n){return Y(e,n)}function Ke(e,n){if(e.role==="user"||e.role==="assistant"||e.role==="tool")return Y(e,n);return!1}function Y(e,n){let t=e.content;if(typeof t==="string"){if(t.length===0)return!1;return e.content=[{type:"text",text:t,cache_control:n}],!0}if(!Array.isArray(t))return!1;for(let s=t.length-1;s>=0;s--){let u=t[s];if(u?.type==="text"){let r=u;return r.cache_control=n,!0}}return!1}function He(e,n,t,s){let u=xe(n,t.supportsMidConvoSystemMessages),r=[],k=(p)=>{if(p.includes("|")){let d=p.indexOf("|"),o=p.slice(0,d).replace(/[^a-zA-Z0-9_-]/g,"_"),f=p.slice(d+1).replace(/[^a-zA-Z0-9_-]/g,"_"),h=f.length>0?`${o}_${f}`:o;if(h.length<=40)return h;let A=Kt(p).slice(0,8);return`${o.slice(0,Math.max(1,40-A.length-1))}_${A}`}if(e.provider==="openai")return p.length>40?p.slice(0,40):p;return p},g=Ne(u.messages,e,(p)=>k(p)),R=$e(u.messages,t.supportsMidConvoSystemMessages===!0&&t.supportsMidConvoToolAdditions===!0),a=e.reasoning&&t.supportsDeveloperRole?"developer":"system",T=null;for(let p=0;p<g.length;p++){let d=g[p];if(t.requiresAssistantAfterToolResult&&T==="toolResult"&&d.role==="user")r.push({role:"assistant",content:"I have processed the tool results."});if(d.role==="system"){let o=p>0&&R.anchorsAdditions?d.toolsAdded??[]:[];if(o.length>0){let h={role:"system",tools:ee(o,t)};r.push(h)}let f=p===0?re(d):mt(d);if(f.length>0)r.push({role:a,content:C(f)})}else if(d.role==="user")if(typeof d.content==="string")r.push({role:"user",content:C(d.content)});else{let o=d.content.filter((f)=>f.type!=="text"||f.text.length>0).map((f)=>{if(f.type==="text")return{type:"text",text:C(f.text)};else return{type:"image_url",image_url:{url:`data:${f.mimeType};base64,${f.data}`}}});if(o.length===0)continue;r.push({role:"user",content:o})}else if(d.role==="assistant"){let o={role:"assistant",content:t.requiresAssistantAfterToolResult?"":null},f=d.content.filter(U).filter((l)=>l.text.trim().length>0).map((l)=>({type:"text",text:C(l.text)})),h=f.map((l)=>l.text).join(""),A=d.content.filter(le),M=d.content.filter(ge),B=A.map((l)=>Re(l.thinkingSignature)).find((l)=>l!==void 0),w=M.map((l)=>_e(l.thoughtSignature)).filter((l)=>l!==void 0),S=B??(w.length>0?w:void 0),v=A.filter((l)=>l.thinking.trim().length>0);if(v.length>0)if(t.requiresThinkingAsText){let l=v.map((I)=>C(I.thinking)).join(`
|
|
4
|
+
|
|
5
|
+
`);o.content=[{type:"text",text:l},...f]}else{if(h.length>0)o.content=h;if(!S){let l=v[0].thinkingSignature;if(e.provider==="opencode-go"&&l==="reasoning")l="reasoning_content";if(l&&Ce(l))o[l]=v.map((I)=>I.thinking).join(`
|
|
6
|
+
`)}}else if(h.length>0)o.content=h;if(M.length>0)o.tool_calls=M.map((l)=>{let I=s?.grammarToolInputProperties?.get(l.name);if(I!==void 0)return{id:l.id,type:"custom",custom:{name:l.name,input:C(bo(l.name,l.arguments,I))}};return{id:l.id,type:"function",function:{name:l.name,arguments:JSON.stringify(l.arguments)}}});if(S)o.reasoning_details=S;if(t.requiresReasoningContentOnAssistantMessages&&e.reasoning&&o.reasoning_content===void 0)o.reasoning_content="";let F=o.content;if(!(F!==null&&F!==void 0&&(typeof F==="string"?F.length>0:F.length>0))&&!o.tool_calls)continue;r.push(o)}else if(d.role==="toolResult"){let o=[],f=p;for(;f<g.length&&g[f].role==="toolResult";f++){let h=g[f],A=h.content.filter(U).map((v)=>v.text).join(`
|
|
7
|
+
`),M=h.content.some((v)=>v.type==="image"),w=A.length>0?A:M?"(see attached image)":"(no tool output)",S={role:"tool",content:C(w),tool_call_id:h.toolCallId};if(t.requiresToolResultName&&h.toolName)S.name=h.toolName;if(r.push(S),M&&e.input.includes("image")){for(let v of h.content)if(he(v))o.push({type:"image_url",image_url:{url:`data:${v.mimeType};base64,${v.data}`}})}}if(p=f-1,o.length>0){if(t.requiresAssistantAfterToolResult)r.push({role:"assistant",content:"I have processed the tool results."});r.push({role:"user",content:[{type:"text",text:"Attached image(s) from tool result:"},...o]}),T="user"}else T="toolResult";continue}T=d.role}return r}function ee(e,n){return e.map((t)=>{let s=bn(t,n.supportsOpenAIGrammarTools);if(s)return{type:"custom",custom:{name:t.name,description:t.description,format:{type:"grammar",grammar:{syntax:s.format,definition:s.definition}}}};let u=Ie(t,n.supportsStrictMode!==!1);return{type:"function",function:{name:t.name,description:t.description,parameters:De(t,u),...n.supportsStrictMode!==!1&&{strict:u??!1}}}})}function Z(e,n){let t=e.prompt_tokens||0,s=e.prompt_tokens_details?.cached_tokens??e.prompt_cache_hit_tokens??e.cached_tokens??0,u=e.prompt_tokens_details?.cache_write_tokens||0,r=Math.max(0,t-s-u),k=e.completion_tokens||0,g={input:r,output:k,cacheRead:s,cacheWrite:u,reasoning:e.completion_tokens_details?.reasoning_tokens||0,totalTokens:r+k+s+u,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}};return me(n,g),g}function Ue(e){if(e===null)return{stopReason:"stop"};switch(e){case"stop":case"end":return{stopReason:"stop"};case"length":return{stopReason:"length"};case"function_call":case"tool_calls":return{stopReason:"toolUse"};case"content_filter":return{stopReason:"error",errorMessage:"Provider finish_reason: content_filter"};case"network_error":return{stopReason:"error",errorMessage:"Provider finish_reason: network_error"};default:return{stopReason:"error",errorMessage:`Provider finish_reason: ${e}`}}}function We(e){let{provider:n,baseUrl:t}=e,s=n==="zai"||n==="zai-coding-cn"||t.includes("api.z.ai")||t.includes("open.bigmodel.cn"),u=n==="together"||t.includes("api.together.ai")||t.includes("api.together.xyz"),r=n==="moonshotai"||n==="moonshotai-cn"||t.includes("api.moonshot."),k=n==="openrouter"||t.includes("openrouter.ai"),g=n==="cloudflare-workers-ai"||t.includes("api.cloudflare.com"),R=n==="cloudflare-ai-gateway"||t.includes("gateway.ai.cloudflare.com"),a=n==="nvidia"||t.includes("integrate.api.nvidia.com"),T=n==="ant-ling"||t.includes("api.ant-ling.com"),p=n==="cerebras"||t.includes("cerebras.ai"),d=n==="deepseek"||t.toLowerCase().includes("deepseek.com"),o=a||p||n==="xai"||t.includes("api.x.ai")||u||t.includes("chutes.ai")||d||s||r||n==="opencode"||t.includes("opencode.ai")||g||R||T,f=t.includes("chutes.ai")||d||r||R||u||a||T||s,h=n==="xai"||t.includes("api.x.ai"),A=k&&(e.id.startsWith("anthropic/")||e.id.startsWith("openai/")),M=n==="openrouter"&&e.id.startsWith("anthropic/")?"anthropic":void 0;return{supportsStore:!o,supportsDeveloperRole:A||!o&&!k,supportsReasoningEffort:!h&&!s&&!r&&!u&&!R&&!a&&!T,supportsUsageInStreaming:!0,supportsFinishReason:!0,maxTokensField:f?"max_tokens":"max_completion_tokens",requiresToolResultName:!1,requiresAssistantAfterToolResult:!1,requiresThinkingAsText:!1,requiresReasoningContentOnAssistantMessages:d,thinkingFormat:d?"deepseek":s?"zai":u?"together":T?"ant-ling":k?"openrouter":"openai",openRouterRouting:{},vercelGatewayRouting:{},chatTemplateKwargs:{},chatTemplateArgs:{},zaiToolStream:!1,supportsThinkingTokenBudget:!1,thinkingTokenBudgetField:void 0,supportsStrictMode:!1,supportsOpenAIGrammarTools:!1,supportsMidConvoSystemMessages:!1,supportsMidConvoToolAdditions:!1,cacheControlFormat:M,sendSessionAffinityHeaders:k,sessionAffinityFormat:k?"openrouter":"openai",supportsLongCacheRetention:!(u||g||R||a||T)}}function D(e){let n=We(e);if(!e.compat)return n;return{supportsStore:e.compat.supportsStore??n.supportsStore,supportsDeveloperRole:e.compat.supportsDeveloperRole??n.supportsDeveloperRole,supportsReasoningEffort:e.compat.supportsReasoningEffort??n.supportsReasoningEffort,supportsUsageInStreaming:e.compat.supportsUsageInStreaming??n.supportsUsageInStreaming,supportsFinishReason:e.compat.supportsFinishReason??n.supportsFinishReason,maxTokensField:e.compat.maxTokensField??n.maxTokensField,requiresToolResultName:e.compat.requiresToolResultName??n.requiresToolResultName,requiresAssistantAfterToolResult:e.compat.requiresAssistantAfterToolResult??n.requiresAssistantAfterToolResult,requiresThinkingAsText:e.compat.requiresThinkingAsText??n.requiresThinkingAsText,requiresReasoningContentOnAssistantMessages:e.compat.requiresReasoningContentOnAssistantMessages??n.requiresReasoningContentOnAssistantMessages,thinkingFormat:e.compat.thinkingFormat??n.thinkingFormat,openRouterRouting:e.compat.openRouterRouting??{},vercelGatewayRouting:e.compat.vercelGatewayRouting??n.vercelGatewayRouting,chatTemplateKwargs:e.compat.chatTemplateKwargs??n.chatTemplateKwargs,chatTemplateArgs:e.compat.chatTemplateArgs??n.chatTemplateArgs,zaiToolStream:e.compat.zaiToolStream??n.zaiToolStream,supportsThinkingTokenBudget:e.compat.supportsThinkingTokenBudget??n.supportsThinkingTokenBudget,thinkingTokenBudgetField:e.compat.thinkingTokenBudgetField??n.thinkingTokenBudgetField,supportsStrictMode:e.compat.supportsStrictMode??n.supportsStrictMode,supportsOpenAIGrammarTools:e.compat.supportsOpenAIGrammarTools??n.supportsOpenAIGrammarTools,supportsMidConvoSystemMessages:e.compat.supportsMidConvoSystemMessages??n.supportsMidConvoSystemMessages,supportsMidConvoToolAdditions:e.compat.supportsMidConvoToolAdditions??n.supportsMidConvoToolAdditions,cacheControlFormat:e.compat.cacheControlFormat??n.cacheControlFormat,sendSessionAffinityHeaders:e.compat.sendSessionAffinityHeaders??n.sendSessionAffinityHeaders,sessionAffinityFormat:e.compat.sessionAffinityFormat??n.sessionAffinityFormat,supportsLongCacheRetention:e.compat.supportsLongCacheRetention??n.supportsLongCacheRetention,vllmPriority:e.compat.vllmPriority}}export{He as convertMessages,Me as stream,gt as streamSimple};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Tn,Gr,To,Rr,Vr,wt,Ft,st,ko,At,Yt,St,Ke,In,L,Oo,Jr,qi,Bt,te,zt,lt,tr,mr}from"./chunk-dz8jyvp4.js";import{ye,ut,t,b}from"./chunk-9zwy8ypg.js";import"./chunk-f5prr1x7.js";import"./chunk-mbf7201c.js";import"./chunk-gnf6jvxv.js";export{Bt as ArchivedError,t as BadRequestError,te as BusyError,St as CloudflareClient,Rr as FileCredentialStore,st as MAX_ATTACHMENTS,ko as MAX_UPLOAD_BYTES,b as NotFoundError,Ft as PluginCheckError,Oo as ProxyManager,mr as Runtime,tr as SessionSecrets,Vr as answerShellApproval,ut as dataDir,L as definePlugin,In as detectImageMimeType,wt as gateShellCommand,ye as hostPaths,Yt as missingAttachmentBlob,Ke as modelID,Jr as providerProxyScope,qi as proxyTargets,Tn as readSearchCursor,Gr as search,To as searchSuggestions,zt as secretEnvName,lt as secretPlaceholder,At as validAttachment};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var A=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],I=["content-type","cache-control","allow"];function p(e){let r=e.path;if(!r?.startsWith("/api/")||/[\\\r\n#]/.test(r))throw Error("request path must start with /api/");let n=new URL(r,"http://basalt.internal");if(n.origin!=="http://basalt.internal"||!n.pathname.startsWith("/api/"))throw Error("request path must stay within /api/");let o=e.method??"GET";if(!A.includes(o))throw Error("Unsupported request method");if(e.body!==void 0&&(!e.body||typeof e.body!=="object"||Array.isArray(e.body)))throw Error("request body must be a JSON object");if(e.body!==void 0&&(o==="GET"||o==="HEAD"))throw Error("GET and HEAD requests cannot have a body");let s=e.timeoutMs??1e4;if(!Number.isSafeInteger(s)||s<1||s>60000)throw Error("timeoutMs must be an integer between 1 and 60000");return{url:n,method:o,timeoutMs:s}}function g(e){let r={};for(let n of I){let o=e.headers.get(n);if(o)r[n]=o.slice(0,500)}return r}async function M(e,r){let n=e.getReader();r(()=>n.cancel());let o=[],s=0,i=!1;while(!0){let t=await n.read();if(t.done)break;let d=20480-s;if(o.push(t.value.subarray(0,d)),s+=Math.min(t.value.length,d),t.value.length>d){i=!0,await n.cancel();break}}let l=new Uint8Array(s),c=0;for(let t of o)l.set(t,c),c+=t.length;return{text:new TextDecoder().decode(l,{stream:i}),truncated:i}}async function gn(e,r,n){let{url:o,method:s,timeoutMs:i}=p(r),l=e.http;if(!l)throw Error("HTTP API is not attached; start the Basalt server first");let c=new AbortController,t=n?AbortSignal.any([n,c.signal]):c.signal;t.throwIfAborted();let d,b=()=>{d?.().catch((u)=>console.warn("[basalt-creator] \u53D6\u6D88\u54CD\u5E94\u4F53\u5931\u8D25\uFF1A",u))},E=async()=>{let u=r.body!==void 0,a=await l.request(new Request(o.toString(),{method:s,headers:u?{"content-type":"application/json"}:void 0,body:u?JSON.stringify(r.body):void 0,signal:t}));if(t.aborted)throw await a.body?.cancel(),Error("API request cancelled");let m=a.body?await M(a.body,(T)=>{d=T}):{text:"",truncated:!1};return{status:a.status,headers:g(a),body:m.text,truncated:m.truncated}},f,h,w=new Promise((u,a)=>{if(h=()=>{a(Error("API request cancelled")),b()},t.addEventListener("abort",h,{once:!0}),t.aborted)h()}),y=new Promise((u,a)=>{f=setTimeout(()=>{a(Error(`API request timed out after ${i}ms`)),c.abort(),b()},i)});try{return await Promise.race([E(),w,y])}finally{if(clearTimeout(f),h)t.removeEventListener("abort",h)}}
|
|
3
|
+
export{gn};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{ne}from"./chunk-mbf7201c.js";import{Kt}from"./chunk-bvh3ccr2.js";import{De,bo,wo,Ie,bn,Ne}from"./chunk-k3ndw7d4.js";import{C}from"./chunk-bkabw9yr.js";import{re,mt,xe,$e,me}from"./chunk-3a3ta83t.js";function j(a,o){let l={v:1,id:a};if(o)l.phase=o;return JSON.stringify(l)}function E(a){if(!a)return;if(a.startsWith("{"))try{let o=JSON.parse(a);if(o.v===1&&typeof o.id==="string"){if(o.phase==="commentary"||o.phase==="final_answer")return{id:o.id,phase:o.phase};return{id:o.id}}}catch{}return{id:a}}function N(a,o){let l=o.filter((c)=>c.type==="text").map((c)=>c.text).join(`
|
|
3
|
+
`),d=o.filter((c)=>c.type==="image"),u=l.length>0;if(d.length===0||!a.input.includes("image"))return C(u?l:d.length>0?"(see attached image)":"(no tool output)");let p=[];if(u)p.push({type:"input_text",text:C(l)});for(let c of d)p.push({type:"input_image",detail:"auto",image_url:`data:${c.mimeType};base64,${c.data}`});return p}function cr(a,o,l,d){let u=xe(o,d?.supportsMidConvoSystemMessages),p=[],c=(n)=>{let s=n.replace(/[^a-zA-Z0-9_-]/g,"_");return(s.length>64?s.slice(0,64):s).replace(/_+$/,"")},S=(n)=>{let s=`fc_${Kt(n)}`;return s.length>64?s.slice(0,64):s},x=(n,s,i)=>{if(!l.has(a.provider))return c(n);if(!n.includes("|"))return c(n);let[r,g]=n.split("|"),h=c(r),y=i.provider!==a.provider||i.api!==a.api?S(g):c(g);if(!y.startsWith("fc_"))y=c(`fc_${y}`);return`${h}|${y}`},m=Ne(u.messages,a,x),k=$e(u.messages,(d?.supportsAdditionalTools??!1)||(d?.supportsToolSearch??!1)),T=(n,s)=>{let i=k.anchorsAdditions?n.toolsAdded??[]:[];if(i.length===0)return;if(d?.supportsAdditionalTools){p.push({type:"additional_tools",role:"developer",tools:Vt(i,d.toolOptions)});return}if(!d?.supportsToolSearch)return;let r=i.map((h)=>h.name),g=`pi_tool_load_${Kt(`${s}:${r.join(",")}`)}`;p.push({type:"tool_search_call",call_id:g,execution:"client",status:"completed",arguments:{query:r.join(" "),limit:r.length}}),p.push({type:"tool_search_output",call_id:g,execution:"client",status:"completed",tools:Vt(i,{...d.toolOptions,toolSearchResult:!0})})},R=d?.includeSystemPrompt??!0,w=a.compat,M=a.reasoning&&w?.supportsDeveloperRole!==!1?"developer":"system",t=0,e=0;for(let n of m){let s=e++===0&&n.role==="system";if(n.role==="system"){if(!s)T(n,`system:${t}`);if(!s||R){let i=s?re(n):mt(n);if(i.length>0)p.push({role:M,content:C(i)})}}else if(n.role==="user")if(typeof n.content==="string")p.push({role:"user",content:[{type:"input_text",text:C(n.content)}]});else{let i=n.content.map((r)=>{if(r.type==="text")return{type:"input_text",text:C(r.text)};return{type:"input_image",detail:"auto",image_url:`data:${r.mimeType};base64,${r.data}`}});if(i.length===0)continue;p.push({role:"user",content:i})}else if(n.role==="assistant"){let i=[],r=n,g=r.provider===a.provider&&r.api===a.api,h=g&&r.model===a.id,P=g&&r.model!==a.id,y=0;for(let I of n.content)if(I.type==="thinking"){if(I.thinkingSignature){let f=JSON.parse(I.thinkingSignature);i.push(f)}}else if(I.type==="text"){let f=I,b=E(f.textSignature),J=y===0?`msg_pi_${t}`:`msg_pi_${t}_${y}`;y++;let _=b?.id;if(!_)_=J;else if(_.length>64)_=`msg_${Kt(_)}`;i.push({type:"message",role:"assistant",content:[{type:"output_text",text:C(f.text),annotations:[]}],status:"completed",id:_,phase:b?.phase})}else if(I.type==="toolCall"){let f=I,[b,J]=f.id.split("|"),_=d?.grammarToolInputProperties?.get(f.name),v=J,A=_===void 0?"fc_":"ctc_";if(P||!v?.startsWith(A))v=void 0;if(_!==void 0)i.push({type:"custom_tool_call",id:v,call_id:b,name:f.name,input:C(bo(f.name,f.arguments,_)),...h&&f.namespace!==void 0?{namespace:f.namespace}:{}});else i.push({type:"function_call",id:v,call_id:b,name:f.name,arguments:JSON.stringify(f.arguments),...h&&f.namespace!==void 0?{namespace:f.namespace}:{}})}if(i.length===0)continue;p.push(...i)}else if(n.role==="toolResult"){let[i]=n.toolCallId.split("|"),r=N(a,n.content);if(d?.grammarToolInputProperties?.has(n.toolName))p.push({type:"custom_tool_call_output",call_id:i,output:r});else p.push({type:"function_call_output",call_id:i,output:r})}if(!s)t++}return p}function Vt(a,o){let l=o?.strict===void 0?!1:o.strict,d=o?.supportsStrictMode??!0,u=o?.supportsOpenAIGrammarTools??!1;return a.map((p)=>{let c=bn(p,u);if(c)return{type:"custom",name:p.name,description:p.description,format:{type:"grammar",syntax:c.format,definition:c.definition},...o?.toolSearchResult?{defer_loading:!0}:{}};let x=Ie(p,d)??l,m={type:"function",name:p.name,description:p.description,parameters:De(p,x===!0),...o?.toolSearchResult?{defer_loading:!0}:{}};if(d)m.strict=x;return m})}function z(a){let o=a.customInput?.property;if(o===void 0)return"";let l=a.arguments[o];return typeof l==="string"?l:""}function O(a,o,l){let d=a.customInput;if(!d)return;let u=wo(d.jsonBuffer,d.property,o,l);return a.arguments={[d.property]:o},u}async function lr(a,o,l,d,u){let p=!1,c=new Map,S=new Map,x=(t)=>{if(t.type==="message"&&t.phase==="final_answer")o.stopReason="stop"},m=(t,e)=>{let n=c.get(t);return n?.type===e?n:void 0},k=(t,e)=>{if(e===void 0)return;l.push({type:"toolcall_delta",contentIndex:t.contentIndex,delta:e,partial:o})},T=(t,e)=>{if(e.type==="reasoning"){let n={type:"thinking",thinking:""};o.content.push(n);let s={type:"thinking",block:n,contentIndex:o.content.length-1};return c.set(t,s),l.push({type:"thinking_start",contentIndex:s.contentIndex,partial:o}),s}if(e.type==="message"){x(e);let n={type:"text",text:""};o.content.push(n);let s={type:"text",block:n,contentIndex:o.content.length-1};return c.set(t,s),l.push({type:"text_start",contentIndex:s.contentIndex,partial:o}),s}if(e.type==="function_call"){let n={type:"toolCall",id:`${e.call_id}|${e.id}`,name:e.name,arguments:{},...e.namespace!==void 0?{namespace:e.namespace}:{},partialJson:e.arguments||""};o.content.push(n);let s={type:"toolCall",block:n,contentIndex:o.content.length-1};return c.set(t,s),l.push({type:"toolcall_start",contentIndex:s.contentIndex,partial:o}),s}if(e.type==="custom_tool_call"){let n=u?.grammarToolInputProperties?.get(e.name)??"input",s=e.input||"",i={type:"toolCall",id:`${e.call_id}|${e.id}`,name:e.name,arguments:{[n]:s},...e.namespace!==void 0?{namespace:e.namespace}:{},customInput:{property:n,jsonBuffer:{input:"",started:!1,closed:!1}}};o.content.push(i);let r={type:"toolCall",block:i,contentIndex:o.content.length-1};return c.set(t,r),l.push({type:"toolcall_start",contentIndex:r.contentIndex,partial:o}),r}return},R=(t,e)=>c.get(t)??T(t,e),w=(t)=>{for(let e of t){if(e.type!=="reasoning"||!e.encrypted_content)continue;let n=S.get(e.id);if(!n?.thinkingSignature)continue;let s=JSON.parse(n.thinkingSignature);if(s.encrypted_content)continue;n.thinkingSignature=JSON.stringify({...s,encrypted_content:e.encrypted_content})}},M=(t)=>{if(p=!0,w(t.output??[]),t?.id)o.responseId=t.id;if(t?.usage){let r=t.usage.input_tokens_details,g=r?.cached_tokens||0,h=r?.cache_write_tokens||0;o.usage={input:Math.max(0,(t.usage.input_tokens||0)-g-h),output:t.usage.output_tokens||0,cacheRead:g,cacheWrite:h,reasoning:t.usage.output_tokens_details?.reasoning_tokens||0,totalTokens:t.usage.total_tokens||0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}}}if(me(d,o.usage),u?.applyServiceTierPricing){let r=u.resolveServiceTier?u.resolveServiceTier(t?.service_tier,u.serviceTier):t?.service_tier??u.serviceTier;u.applyServiceTierPricing(o.usage,r)}let e=t?.status,n=t?.incomplete_details,s=typeof n?.reason==="string"?n.reason:void 0;o.rawStopReason=s?`${e}.${s}`:e;let i=W(e,s);if(o.stopReason=i.stopReason,i.errorMessage===void 0)delete o.errorMessage;else o.errorMessage=i.errorMessage;if(o.content.some((r)=>r.type==="toolCall")&&o.stopReason==="stop")o.stopReason="toolUse"};for await(let t of a)if(await u?.onProviderStreamEvent?.(t,d),t.type==="response.created")o.responseId=t.response.id;else if(t.type==="response.output_item.added")T(t.output_index,t.item);else if(t.type==="response.reasoning_summary_text.delta"){let e=m(t.output_index,"thinking");if(!e)continue;e.block.thinking+=t.delta,l.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.reasoning_summary_part.done"){let e=m(t.output_index,"thinking");if(!e)continue;e.block.thinking+=`
|
|
4
|
+
|
|
5
|
+
`,l.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:`
|
|
6
|
+
|
|
7
|
+
`,partial:o})}else if(t.type==="response.reasoning_text.delta"){let e=m(t.output_index,"thinking");if(!e)continue;e.block.thinking+=t.delta,l.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.output_text.delta"){let e=m(t.output_index,"text");if(!e)continue;e.block.text+=t.delta,l.push({type:"text_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.refusal.delta"){let e=m(t.output_index,"text");if(!e)continue;e.block.text+=t.delta,l.push({type:"text_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.function_call_arguments.delta"){let e=m(t.output_index,"toolCall");if(!e||e.block.partialJson===void 0)continue;e.block.partialJson+=t.delta,e.block.arguments=ne(e.block.partialJson),k(e,t.delta)}else if(t.type==="response.function_call_arguments.done"){let e=m(t.output_index,"toolCall");if(!e||e.block.partialJson===void 0)continue;let n=e.block.partialJson;if(e.block.partialJson=t.arguments,e.block.arguments=ne(e.block.partialJson),t.arguments.startsWith(n)){let s=t.arguments.slice(n.length);if(s.length>0)k(e,s)}}else if(t.type==="response.custom_tool_call_input.delta"){let e=m(t.output_index,"toolCall");if(!e||!e.block.customInput)continue;k(e,O(e.block,z(e.block)+t.delta,!1))}else if(t.type==="response.custom_tool_call_input.done"){let e=m(t.output_index,"toolCall");if(!e||!e.block.customInput)continue;k(e,O(e.block,t.input,!0))}else if(t.type==="response.output_item.done"){let e=t.item;x(e);let n=R(t.output_index,e);if(e.type==="reasoning"&&n?.type==="thinking"){let s=e.summary?.map((r)=>r.text).join(`
|
|
8
|
+
|
|
9
|
+
`)||"",i=e.content?.map((r)=>r.text).join(`
|
|
10
|
+
|
|
11
|
+
`)||"";n.block.thinking=s||i||n.block.thinking,n.block.thinkingSignature=JSON.stringify(e),S.set(e.id,n.block),l.push({type:"thinking_end",contentIndex:n.contentIndex,content:n.block.thinking,partial:o}),c.delete(t.output_index)}else if(e.type==="message"&&n?.type==="text")n.block.text=e.content?.map((s)=>s.type==="output_text"?s.text:s.refusal).join("")||"",n.block.textSignature=j(e.id,e.phase??void 0),l.push({type:"text_end",contentIndex:n.contentIndex,content:n.block.text,partial:o}),c.delete(t.output_index);else if(e.type==="function_call"&&n?.type==="toolCall"&&n.block.partialJson!==void 0){if(n.block.arguments=ne(e.arguments||n.block.partialJson||"{}"),e.namespace!==void 0)n.block.namespace=e.namespace;delete n.block.partialJson,l.push({type:"toolcall_end",contentIndex:n.contentIndex,toolCall:n.block,partial:o}),c.delete(t.output_index)}else if(e.type==="custom_tool_call"&&n?.type==="toolCall"&&n.block.customInput){if(k(n,O(n.block,e.input??z(n.block),!0)),e.namespace!==void 0)n.block.namespace=e.namespace;delete n.block.customInput,l.push({type:"toolcall_end",contentIndex:n.contentIndex,toolCall:n.block,partial:o}),c.delete(t.output_index)}}else if(t.type==="response.completed"||t.type==="response.incomplete")M(t.response);else if(t.type==="error")throw Error(`Error Code ${t.code}: ${t.message}`||"Unknown error");else if(t.type==="response.failed"){p=!0,o.rawStopReason=t.response?.status;let e=t.response?.error,n=t.response?.incomplete_details,s=e?`${e.code||"unknown"}: ${e.message||"no message"}`:n?.reason?`incomplete: ${n.reason}`:"Unknown error (no error details in response)";throw Error(s)}if(!p)throw Error("OpenAI Responses stream ended before a terminal response event");if(o.stopReason==="toolUse")for(let t of o.content){if(t.type!=="toolCall")continue;let e=t;if(e.partialJson!==void 0||e.customInput!==void 0)throw Error(`OpenAI Responses stream completed with an unfinished tool call: ${e.name} (${e.id})`)}}function W(a,o){if(!a)return{stopReason:"stop"};switch(a){case"completed":return{stopReason:"stop"};case"incomplete":if(o==="max_output_tokens")return{stopReason:"length"};return{stopReason:"error",errorMessage:o?`Response incomplete: ${o}`:"Response incomplete without a provider reason"};case"failed":case"cancelled":return{stopReason:"error"};case"in_progress":case"queued":return{stopReason:"stop"};default:throw Error(`Unhandled stop reason: ${a}`)}}
|
|
12
|
+
export{cr,Vt,lr};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
function Qn(i){let e=i.filter((n)=>n!==void 0);if(e.length===0)return{cleanup:()=>{}};if(e.length===1)return{signal:e[0],cleanup:()=>{}};let r=new AbortController,o=[],s=(n)=>{if(!r.signal.aborted)r.abort(n.reason)};for(let n of e){if(n.aborted){s(n);break}let t=()=>s(n);n.addEventListener("abort",t,{once:!0}),o.push({signal:n,listener:t})}return{signal:r.signal,cleanup:()=>{for(let{signal:n,listener:t}of o)n.removeEventListener("abort",t)}}}
|
|
3
|
+
export{Qn};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
function ie(t){if(!(t instanceof Error))return{message:u(t),messageCarriesBody:!1};let e=t,n=d(e),s=o(e),r=s===void 0||t.message.includes(s);return{status:n,body:s,message:t.message,messageCarriesBody:r}}function d(t){if(typeof t.statusCode==="number")return t.statusCode;if(typeof t.status==="number")return t.status;if(typeof t.$metadata?.httpStatusCode==="number")return t.$metadata.httpStatusCode;if(typeof t.$response?.statusCode==="number")return t.$response.statusCode;return}function o(t){let e=f(t);if(e===void 0)return;let n=e.trim();if(n.length===0)return;return c(n,4000)}function f(t){if(typeof t.body==="string")return t.body;if(i(t.error))return u(t.error);let e=t.$response?.body;if(typeof e==="string")return e;if(a(e))return;if(i(e))return u(e);return}function a(t){return typeof t==="object"&&t!==null&&"pipe"in t&&typeof t.pipe==="function"}function i(t){if(typeof t!=="object"||t===null)return!1;let e=Object.getPrototypeOf(t);if(e!==Object.prototype&&e!==null)return!1;return Object.keys(t).length>0}function pe(t,e){if(t.messageCarriesBody||t.status===void 0||t.body===void 0)return e!==void 0&&t.status!==void 0?`${e} (${t.status}): ${t.message}`:t.message;return e!==void 0?`${e} (${t.status}): ${t.body}`:`${t.status}: ${t.body}`}function c(t,e){if(t.length<=e)return t;return`${t.slice(0,e)}... [truncated ${t.length-e} chars]`}function u(t){try{let e=JSON.stringify(t);return e===void 0?String(t):e}catch{return String(t)}}
|
|
3
|
+
export{ie,pe};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Pe,bt,lo,uo}from"./chunk-e431qjnf.js";import{ie,pe}from"./chunk-qj6bf18b.js";function a(r,o,s){if(!Pe(o))throw Error(`${r} returned invalid probabilities for ${s}`);return Object.fromEntries(Object.entries(o).map(([t,e])=>[t,bt(r,e,`probability for ${s}.${t}`)]))}function f(r,o,s){if(!Pe(o))throw Error(`${r} returned an unexpected response`);let t=[];for(let[e,n]of Object.entries(s.questions)){let i=o[e];if(!Pe(i))throw Error(`${r} did not return an answer for ${e}`);if(n.type==="choice"){if(i.type!=="choice"||typeof i.choice!=="string")throw Error(`${r} did not return a choice answer for ${e}`);t.push([e,{type:"choice",choice:i.choice,probabilities:a(r,i.probabilities,e),confidence:bt(r,i.confidence,`confidence for ${e}`)}])}else if(n.type==="score"){if(i.type!=="score")throw Error(`${r} did not return a score answer for ${e}`);t.push([e,{type:"score",score:bt(r,i.score,`score for ${e}`),confidence:bt(r,i.confidence,`confidence for ${e}`)}])}else{if(i.type!=="noul")throw Error(`${r} did not return a bool answer for ${e}`);t.push([e,{type:"bool",probability:bt(r,i.noul,`probability for ${e}`)}])}}return Object.fromEntries(t)}function p(r){return{state:r.state,questions:Object.fromEntries(Object.entries(r.questions).map(([o,s])=>[o,s.type==="bool"?{...s,type:"noul"}:s]))}}async function Zn(r,o,s,t){let e={api:o.api,provider:o.provider,model:o.id,answers:{},stopReason:"stop",timestamp:Date.now()};try{if(o.api!==r.api)throw Error(`Unsupported classifier API: ${o.api}`);if(s.images?.length)throw Error(`${r.label} does not support image input`);let n=await lo(r.label,r.url(o),o,r.payload(o,p(s)),t),i=r.output(n),c=uo(i.usage,o);if(c)e.usage=c;return e.answers=f(r.label,i.answers,s),e}catch(n){return e.stopReason=t?.signal?.aborted?"aborted":"error",e.errorMessage=pe(ie(n),`${r.label} error`),e}}
|
|
3
|
+
export{Zn};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{f}from"./chunk-k8mc2tn3.js";var n=null;function c(e){if(typeof process>"u"||!process.versions?.bun||Object.keys(process.env).length>0)return;if(n===null){n=new Map;try{let{readFileSync:t}=f("fs"),s=t("/proc/self/environ","utf-8");for(let r of s.split("\x00")){let o=r.indexOf("=");if(o>0)n.set(r.slice(0,o),r.slice(o+1))}}catch{}}return n.get(e)}function O(e,t){return t?.[e]||(typeof process<"u"?process.env[e]:void 0)||c(e)||void 0}
|
|
3
|
+
export{O};
|