@qitqode/qitqode-android-arm64 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/{chunk-cx7p4ezk.js → chunk-03mbn7nj.js} +2 -2
- package/bundle/{chunk-aw8af3ky.js → chunk-073ydjmk.js} +1 -1
- package/bundle/{chunk-rrd0jf5m.js → chunk-07s30fpb.js} +1 -1
- package/bundle/{chunk-yacccwf6.js → chunk-087tnr8a.js} +1 -1
- package/bundle/{chunk-kx2dp8ch.js → chunk-0f3ft9dh.js} +1 -1
- package/bundle/{chunk-rgxy4ngt.js → chunk-0gab4v98.js} +1 -1
- package/bundle/chunk-0xrr0k94.js +2 -0
- package/bundle/chunk-0yagj4ss.js +2 -0
- package/bundle/chunk-0ych0f5w.js +2 -0
- package/bundle/{chunk-2pzvcpv4.js → chunk-0z1cxvk1.js} +2 -2
- package/bundle/{chunk-rph9zj24.js → chunk-0zxwjsvz.js} +1 -1
- package/bundle/{chunk-pqnbdygz.js → chunk-1p6jjrea.js} +2 -2
- package/bundle/{chunk-9cw4cnz0.js → chunk-1q1cddy4.js} +1 -1
- package/bundle/{chunk-w9pdvcf9.js → chunk-1sfcxdbw.js} +2 -2
- package/bundle/chunk-22hr3ndh.js +2 -0
- package/bundle/chunk-23tyxyyj.js +2 -0
- package/bundle/chunk-28g1ndpx.js +2 -0
- package/bundle/chunk-29v1v357.js +2 -0
- package/bundle/{chunk-txqc7543.js → chunk-29zm623f.js} +2 -2
- package/bundle/{chunk-wm77svwm.js → chunk-2a9rzgk6.js} +1 -1
- package/bundle/chunk-2avxtbv3.js +2 -0
- package/bundle/{chunk-eaqfnwdj.js → chunk-2bgqy6z7.js} +1 -1
- package/bundle/{chunk-9zre5e54.js → chunk-2hv2c8d5.js} +1 -1
- package/bundle/{chunk-swcgsrbj.js → chunk-2jpmxt4v.js} +1 -1
- package/bundle/chunk-2qk0k2eb.js +2 -0
- package/bundle/{chunk-nsjp44fp.js → chunk-2qwmrp16.js} +1 -1
- package/bundle/{chunk-dykqn0nj.js → chunk-2xqqkf86.js} +2 -2
- package/bundle/{chunk-r0g5yyhf.js → chunk-3aq70t26.js} +1 -1
- package/bundle/{chunk-zfcfyagt.js → chunk-3h49k2ck.js} +1 -1
- package/bundle/{chunk-sv1s1qxd.js → chunk-3kn57y8d.js} +5 -5
- package/bundle/chunk-3ktj87g4.js +2 -0
- package/bundle/{chunk-52b1v7mn.js → chunk-3qfpw8f6.js} +1 -1
- package/bundle/{chunk-v3x5nrc4.js → chunk-3tmq81kq.js} +2 -2
- package/bundle/chunk-3wxvpvg4.js +3 -0
- package/bundle/{chunk-neqy8j4n.js → chunk-42r7z6sq.js} +1 -1
- package/bundle/chunk-42wdfks8.js +2 -0
- package/bundle/chunk-4f19vqxf.js +2 -0
- package/bundle/{chunk-d93z6hrn.js → chunk-4fk46ngj.js} +1 -1
- package/bundle/{chunk-njkserae.js → chunk-4hd3v58j.js} +1 -1
- package/bundle/chunk-4jq25vbc.js +2 -0
- package/bundle/chunk-4m3k1atq.js +2 -0
- package/bundle/{chunk-1wpjmwnh.js → chunk-4mvg7jt1.js} +1 -1
- package/bundle/chunk-4n2ytddp.js +2 -0
- package/bundle/{chunk-zesbm9k1.js → chunk-4sxg9cgr.js} +1 -1
- package/bundle/{chunk-8fgamz4y.js → chunk-4v61ysex.js} +1 -1
- package/bundle/chunk-4yg42p6y.js +2 -0
- package/bundle/chunk-4zx3ze68.js +2 -0
- package/bundle/chunk-57xbwzdn.js +3 -0
- package/bundle/{chunk-rexdr63q.js → chunk-5az84brc.js} +2 -2
- package/bundle/{chunk-y0ydzdfc.js → chunk-5t0w9ecw.js} +1 -1
- package/bundle/{chunk-nq495be3.js → chunk-5wwd40t3.js} +1 -1
- package/bundle/chunk-637sjdzq.js +2 -0
- package/bundle/{chunk-snt1kefv.js → chunk-64c8q9zg.js} +3 -3
- package/bundle/{chunk-g794ey6w.js → chunk-6avjq7my.js} +1 -1
- package/bundle/chunk-6bghztra.js +2 -0
- package/bundle/{chunk-n0trgp1c.js → chunk-6dfjtzqb.js} +2 -2
- package/bundle/chunk-6h8f89tt.js +2 -0
- package/bundle/{chunk-b0jh0rby.js → chunk-6j339s7a.js} +2 -2
- package/bundle/{chunk-8q6z6emx.js → chunk-6kf4vw2g.js} +1 -1
- package/bundle/{chunk-hgsykghj.js → chunk-6pcmv8vs.js} +2 -2
- package/bundle/chunk-6sjj203r.js +2 -0
- package/bundle/{chunk-6r8pg6ma.js → chunk-6y4mwmn4.js} +1 -1
- package/bundle/{chunk-kt0ej3nq.js → chunk-6ypafpg8.js} +1 -1
- package/bundle/{chunk-p8kpqyxb.js → chunk-732yr6qq.js} +2 -2
- package/bundle/{chunk-3sz6gw10.js → chunk-73fz0cf4.js} +2 -2
- package/bundle/chunk-79aka9xe.js +2 -0
- package/bundle/{chunk-8tp4whyw.js → chunk-7my2231h.js} +1 -1
- package/bundle/{chunk-xjhezxft.js → chunk-7myg8076.js} +3 -3
- package/bundle/{chunk-vvzbfv2f.js → chunk-7njz51r4.js} +1 -1
- package/bundle/chunk-7nqdhe7x.js +2 -0
- package/bundle/{chunk-zaan8jk6.js → chunk-7ntw4rrn.js} +1 -1
- package/bundle/chunk-7rhry8nv.js +2 -0
- package/bundle/chunk-7x88b2n2.js +2 -0
- package/bundle/{chunk-46ztrjw0.js → chunk-7zvawpe1.js} +1 -1
- package/bundle/{chunk-jgz1a29w.js → chunk-86jsqc7d.js} +3 -3
- package/bundle/{chunk-zbqzm65q.js → chunk-86yk21g4.js} +1 -1
- package/bundle/{chunk-w3bmf3zz.js → chunk-8e6gx3gg.js} +1 -1
- package/bundle/chunk-8mthftwc.js +2 -0
- package/bundle/{chunk-73ckx171.js → chunk-8q5ns61h.js} +1 -1
- package/bundle/{chunk-549ptbaj.js → chunk-8rh0femq.js} +1 -1
- package/bundle/chunk-8wdara3b.js +2 -0
- package/bundle/chunk-8xhzpnph.js +2 -0
- package/bundle/{chunk-kqhh2pm9.js → chunk-94qhpkfx.js} +1 -1
- package/bundle/{chunk-gxmxx8jb.js → chunk-99148b1k.js} +1 -1
- package/bundle/chunk-9akz8w0d.js +2 -0
- package/bundle/{chunk-7gbytqkn.js → chunk-9b4aqcde.js} +2 -2
- package/bundle/{chunk-tdmn21z0.js → chunk-9ea1n338.js} +2 -2
- package/bundle/chunk-9eg2ytjd.js +17 -0
- package/bundle/chunk-9etpppyv.js +3 -0
- package/bundle/{chunk-vgaxv70x.js → chunk-9jrxrjzt.js} +2 -2
- package/bundle/{chunk-3bkdbqjj.js → chunk-9jsgs71h.js} +1 -1
- package/bundle/{chunk-twhavv1m.js → chunk-9nn4jpb7.js} +1 -1
- package/bundle/{chunk-pxx2hz0g.js → chunk-9rxyq6f9.js} +2 -2
- package/bundle/chunk-9tk4wsn4.js +2 -0
- package/bundle/{chunk-9fkmhmh6.js → chunk-9y15zjxa.js} +1 -1
- package/bundle/chunk-a0rjp24v.js +2 -0
- package/bundle/{chunk-mdzzcrf9.js → chunk-a2dz9nqh.js} +2 -2
- package/bundle/chunk-a7p0x4sw.js +2 -0
- package/bundle/{chunk-ev3a2sxv.js → chunk-a92hh67a.js} +2 -2
- package/bundle/chunk-ae0a496j.js +2 -0
- package/bundle/{chunk-px8vtbmr.js → chunk-ahyqfbmq.js} +2 -2
- package/bundle/chunk-aq1j9y18.js +2 -0
- package/bundle/chunk-aq8nz9hp.js +2 -0
- package/bundle/{chunk-zxddasg8.js → chunk-as845ya4.js} +1 -1
- package/bundle/chunk-b4zy78be.js +2 -0
- package/bundle/{chunk-45mjcxqk.js → chunk-b50t4jc5.js} +1 -1
- package/bundle/chunk-basjzwqp.js +2 -0
- package/bundle/{chunk-d1rn44wz.js → chunk-bbbh69ys.js} +1 -1
- package/bundle/{chunk-mw2hr4pd.js → chunk-bcx2vkv4.js} +1 -1
- package/bundle/{chunk-72zxassf.js → chunk-bggybm9k.js} +1 -1
- package/bundle/{chunk-4gs87ghj.js → chunk-bgng3rdj.js} +2 -2
- package/bundle/chunk-bhetpmgq.js +3 -0
- package/bundle/{chunk-bnz0mxak.js → chunk-bk3z400e.js} +1 -1
- package/bundle/chunk-bm7xpjh6.js +2 -0
- package/bundle/{chunk-nhwhkx62.js → chunk-bzs2ep7s.js} +1 -1
- package/bundle/{chunk-7fawtcnn.js → chunk-c1g8n10t.js} +1 -1
- package/bundle/chunk-c2k556rk.js +2 -0
- package/bundle/{chunk-w03fdrxe.js → chunk-cbf1y12x.js} +1 -1
- package/bundle/{chunk-vc4e6xc4.js → chunk-cbmwhvxw.js} +2 -2
- package/bundle/{chunk-5bate758.js → chunk-cp39f96a.js} +1 -1
- package/bundle/{chunk-9nk0ts0s.js → chunk-d307vb2d.js} +1 -1
- package/bundle/chunk-d41mg7at.js +2 -0
- package/bundle/chunk-d50kpss6.js +2 -0
- package/bundle/chunk-day0rb5p.js +2 -0
- package/bundle/{chunk-dz3s882k.js → chunk-dj3525nn.js} +4 -4
- package/bundle/{chunk-qq2rcxv2.js → chunk-dknemkw2.js} +2 -2
- package/bundle/chunk-dp7cww4v.js +2 -0
- package/bundle/{chunk-yeq7b87a.js → chunk-drwqag0f.js} +1 -1
- package/bundle/{chunk-qdcf1ay5.js → chunk-e586sjb0.js} +2 -2
- package/bundle/{chunk-qs4wef8c.js → chunk-e6wp96vm.js} +1 -1
- package/bundle/{chunk-g8cfzzrs.js → chunk-e89zjjmj.js} +1 -1
- package/bundle/chunk-egae7vvg.js +2 -0
- package/bundle/chunk-erdjd9w3.js +2 -0
- package/bundle/chunk-ex93y6dw.js +2 -0
- package/bundle/chunk-eyr0vf92.js +2 -0
- package/bundle/{chunk-02xcb52z.js → chunk-ezfzb8qc.js} +2 -2
- package/bundle/{chunk-kp8nkm3m.js → chunk-f1bcz9yz.js} +1 -1
- package/bundle/chunk-f4zfk5ye.js +2 -0
- package/bundle/{chunk-ceefd2nj.js → chunk-f7rj6fck.js} +1 -1
- package/bundle/{chunk-4sazy0nq.js → chunk-f83wv08n.js} +1 -1
- package/bundle/{chunk-eb8nsk7e.js → chunk-faa0zxey.js} +2 -2
- package/bundle/{chunk-3dr4469n.js → chunk-fbm6qczy.js} +1 -1
- package/bundle/{chunk-0g25z230.js → chunk-fd7fmvyw.js} +1 -1
- package/bundle/chunk-fghqr4x8.js +8 -0
- package/bundle/{chunk-0z33en1a.js → chunk-fgn83bs7.js} +1 -1
- package/bundle/{chunk-dshnn54c.js → chunk-fpm2vgz6.js} +1 -1
- package/bundle/chunk-fvkwcx35.js +2 -0
- package/bundle/{chunk-w5940jxm.js → chunk-fvy24yhq.js} +1 -1
- package/bundle/{chunk-gt6tgm42.js → chunk-fymt1rym.js} +1 -1
- package/bundle/{chunk-dt899wbf.js → chunk-g3kd4957.js} +2 -2
- package/bundle/{chunk-v7q3d3n6.js → chunk-g5cgpvef.js} +2 -2
- package/bundle/{chunk-909fp6pm.js → chunk-g9end129.js} +1 -1
- package/bundle/chunk-gbmmbhy4.js +2 -0
- package/bundle/chunk-gp877cq5.js +2 -0
- package/bundle/{chunk-tgd5ctnt.js → chunk-gr4bctqj.js} +2 -2
- package/bundle/{chunk-dvxk6mr6.js → chunk-grw4gg9j.js} +2 -2
- package/bundle/{chunk-mvnxwwe7.js → chunk-gtjn3yc4.js} +2 -2
- package/bundle/chunk-hk8vvc10.js +2 -0
- package/bundle/{chunk-cxtxvt43.js → chunk-hmznf0ax.js} +1 -1
- package/bundle/{chunk-gnt982jr.js → chunk-hpa7e9va.js} +3 -3
- package/bundle/{chunk-hcy77w6t.js → chunk-hq9bgnqb.js} +1 -1
- package/bundle/{chunk-gkj4a27z.js → chunk-hrw5rmj1.js} +1 -1
- package/bundle/{chunk-n2ygpy76.js → chunk-hs3vfhar.js} +1 -1
- package/bundle/chunk-hwavzxdm.js +2 -0
- package/bundle/chunk-hwnc2sa5.js +2 -0
- package/bundle/chunk-j2gvpa15.js +2 -0
- package/bundle/{chunk-te5tfq79.js → chunk-j3jqk62r.js} +1 -1
- package/bundle/{chunk-jqn27885.js → chunk-j5ymkhry.js} +1 -1
- package/bundle/chunk-j7n8khk7.js +2 -0
- package/bundle/{chunk-ws3p9cya.js → chunk-jgtcfw96.js} +2 -2
- package/bundle/{chunk-5myxjxae.js → chunk-jjjs8p0t.js} +2 -2
- package/bundle/chunk-jkh98wby.js +2 -0
- package/bundle/{chunk-h7w35n7w.js → chunk-jv4th87b.js} +1 -1
- package/bundle/{chunk-j63fkt6n.js → chunk-jvjq554f.js} +1 -1
- package/bundle/{chunk-00sr2gwz.js → chunk-jw114bbt.js} +2 -2
- package/bundle/{chunk-ax1y4699.js → chunk-jwph7tpc.js} +1 -1
- package/bundle/{chunk-xdacgfba.js → chunk-k1gddnkm.js} +1 -1
- package/bundle/chunk-k5a652s4.js +2 -0
- package/bundle/{chunk-1mcsf4yb.js → chunk-k6cbfrzc.js} +2 -2
- package/bundle/chunk-k6w32q2p.js +2 -0
- package/bundle/{chunk-rtdym35y.js → chunk-kc1xmcc9.js} +141 -135
- package/bundle/{chunk-5kmfnkzv.js → chunk-kdcnder5.js} +1 -1
- package/bundle/chunk-ke5rqv5b.js +2 -0
- package/bundle/chunk-kghwk0yh.js +2 -0
- package/bundle/{chunk-r6ndvzd0.js → chunk-km1n4ttr.js} +1 -1
- package/bundle/{chunk-m0xsvzyd.js → chunk-knh01n2r.js} +2 -2
- package/bundle/{chunk-ydc6ypjt.js → chunk-ks1cs80p.js} +2 -2
- package/bundle/{chunk-08q55ya0.js → chunk-kxjrrdj0.js} +1 -1
- package/bundle/{chunk-jts0dma5.js → chunk-kzvvvj79.js} +2 -2
- package/bundle/chunk-mgadsp7r.js +2 -0
- package/bundle/chunk-mk2s9py8.js +2 -0
- package/bundle/{chunk-hb9mc5f9.js → chunk-mpe8zxc0.js} +1 -1
- package/bundle/{chunk-yykjvt7f.js → chunk-mswx4k75.js} +2 -2
- package/bundle/{chunk-z0tfsdb9.js → chunk-mx3jd1p9.js} +1 -1
- package/bundle/{chunk-sxy4hyyy.js → chunk-mxf9p0p9.js} +1 -1
- package/bundle/{chunk-std2bgv7.js → chunk-mxhb5adq.js} +2 -2
- package/bundle/{chunk-gwfx7tx7.js → chunk-my3cswnp.js} +2 -2
- package/bundle/chunk-n0k0pp4k.js +2 -0
- package/bundle/chunk-n393nnh5.js +2 -0
- package/bundle/chunk-n5vyed7w.js +2 -0
- package/bundle/{chunk-jf6ry79j.js → chunk-n7kqdqkh.js} +4 -4
- package/bundle/{chunk-tdxbm1nd.js → chunk-n90eh3e7.js} +1 -1
- package/bundle/{chunk-n7d9eemn.js → chunk-nb86kh94.js} +211 -211
- package/bundle/{chunk-s8mghr5a.js → chunk-ngvp6zc2.js} +2 -2
- package/bundle/{chunk-98effz12.js → chunk-nh044sjn.js} +1 -1
- package/bundle/{chunk-ypk3t1eh.js → chunk-nm6wnne9.js} +1 -1
- package/bundle/{chunk-mcc5ynma.js → chunk-p4ewy9xh.js} +3 -3
- package/bundle/{chunk-d9x9kqvy.js → chunk-p5mes2sh.js} +1 -1
- package/bundle/{chunk-vgnddhdj.js → chunk-p635phfw.js} +1 -1
- package/bundle/{chunk-dgx4rq86.js → chunk-p887g1xj.js} +1 -1
- package/bundle/{chunk-7jhrxzjx.js → chunk-p9mj4zyk.js} +2 -2
- package/bundle/chunk-pasm65wq.js +2 -0
- package/bundle/chunk-pfh34atn.js +2 -0
- package/bundle/{chunk-xdjwapwy.js → chunk-pfkm3j8g.js} +2 -2
- package/bundle/chunk-phpmxjf8.js +2 -0
- package/bundle/{chunk-9dh9bc9d.js → chunk-pp9neaaz.js} +1 -1
- package/bundle/{chunk-c72jajx9.js → chunk-pzefsndd.js} +1 -1
- package/bundle/{chunk-dh1h513y.js → chunk-q128vfc6.js} +1 -1
- package/bundle/{chunk-z7vv0ngm.js → chunk-q148vndn.js} +2 -2
- package/bundle/{chunk-4fa390yr.js → chunk-q4fn41ex.js} +2 -2
- package/bundle/{chunk-zrmx397j.js → chunk-q5abwn50.js} +1 -1
- package/bundle/{chunk-s2xdf6qh.js → chunk-q9ft590w.js} +2 -2
- package/bundle/{chunk-7vftsy04.js → chunk-qaz100ht.js} +1 -1
- package/bundle/{chunk-17pxm5d3.js → chunk-qeg0jnxq.js} +2 -2
- package/bundle/{chunk-871f8x99.js → chunk-qf1dqzra.js} +2 -2
- package/bundle/{chunk-qyjt0qnq.js → chunk-qg9bt0kx.js} +2 -2
- package/bundle/{chunk-pnq1h5az.js → chunk-qhnpq5gb.js} +2 -2
- package/bundle/{chunk-kb6v5hhm.js → chunk-qkh8697x.js} +2 -2
- package/bundle/chunk-qvzvxsjw.js +2 -0
- package/bundle/chunk-qzszrd0s.js +2 -0
- package/bundle/{chunk-yzwgvjzd.js → chunk-r0s28gnb.js} +1 -1
- package/bundle/{chunk-k7n1csxv.js → chunk-r2qns6yc.js} +1 -1
- package/bundle/{chunk-yj6rbe9p.js → chunk-rcyzqa3g.js} +2 -2
- package/bundle/{chunk-70pb4kcm.js → chunk-rdwma0de.js} +2 -2
- package/bundle/{chunk-25bp7pcm.js → chunk-rk2bk4s7.js} +2 -2
- package/bundle/{chunk-x6rr6ss1.js → chunk-rm5ntsvn.js} +1 -1
- package/bundle/{chunk-fyz7fngd.js → chunk-rnq5ezrt.js} +1 -1
- package/bundle/{chunk-xhbb8b5g.js → chunk-rp8asmq7.js} +1 -1
- package/bundle/{chunk-z1rshv6g.js → chunk-rpfhgncs.js} +1 -1
- package/bundle/{chunk-cagk1sjd.js → chunk-s0ptrw0z.js} +1 -1
- package/bundle/{chunk-yw9pfqxt.js → chunk-s0ty36qg.js} +1 -1
- package/bundle/{chunk-pr1ysgr3.js → chunk-s7yza695.js} +1 -1
- package/bundle/chunk-s99cvvc9.js +2 -0
- package/bundle/{chunk-v0yxkq99.js → chunk-sh76e256.js} +2 -2
- package/bundle/chunk-skpkjnyy.js +2 -0
- package/bundle/{chunk-8r3410c2.js → chunk-skv9ww0s.js} +1 -1
- package/bundle/chunk-snt4kwab.js +2 -0
- package/bundle/chunk-sq47t8f1.js +2 -0
- package/bundle/chunk-sqhgnvvs.js +2 -0
- package/bundle/chunk-t114r59h.js +2 -0
- package/bundle/chunk-t1f56k0j.js +2 -0
- package/bundle/{chunk-9s4whpg1.js → chunk-t1jgx17a.js} +2 -2
- package/bundle/chunk-t69jx6fz.js +2 -0
- package/bundle/{chunk-srxx88nb.js → chunk-t9zbp2qw.js} +1 -1
- package/bundle/{chunk-jcjaw7tk.js → chunk-ta7mfkms.js} +2 -2
- package/bundle/{chunk-aj3y2e86.js → chunk-tce12v85.js} +1 -1
- package/bundle/{chunk-fn8191ps.js → chunk-tczbhj0e.js} +1 -1
- package/bundle/{chunk-h1kg35mn.js → chunk-tge53d52.js} +1 -1
- package/bundle/chunk-tq1dqhes.js +2 -0
- package/bundle/chunk-tsb3jsx4.js +2 -0
- package/bundle/chunk-ttpbpzbh.js +2 -0
- package/bundle/{chunk-2dkrfc1s.js → chunk-v5z6sx6j.js} +1 -1
- package/bundle/chunk-v667egp5.js +2 -0
- package/bundle/{chunk-w8d9srv7.js → chunk-v7mg632n.js} +2 -2
- package/bundle/{chunk-60qyqqxx.js → chunk-v9rg0a8g.js} +1 -1
- package/bundle/{chunk-jngchw38.js → chunk-ve3np791.js} +1 -1
- package/bundle/{chunk-wev34grp.js → chunk-vhe92p7a.js} +2 -2
- package/bundle/{chunk-qpzspr9z.js → chunk-vjx0064q.js} +2 -2
- package/bundle/{chunk-atpzz901.js → chunk-vm1ek7yf.js} +1 -1
- package/bundle/{chunk-3mepk08v.js → chunk-vqpfpmha.js} +2 -2
- package/bundle/{chunk-cdh26622.js → chunk-vqss3e48.js} +2 -2
- package/bundle/{chunk-ewpzqnj4.js → chunk-w79jzf8w.js} +1 -1
- package/bundle/{chunk-yha554nm.js → chunk-w7em72p8.js} +2 -2
- package/bundle/chunk-wcqfr8vr.js +3 -0
- package/bundle/{chunk-r58gzg6m.js → chunk-wdaf713t.js} +1 -1
- package/bundle/{chunk-ymtcm4xd.js → chunk-wf4x5cjc.js} +1 -1
- package/bundle/{chunk-vsys768k.js → chunk-wfggztm4.js} +1 -1
- package/bundle/{chunk-j5kyf7vt.js → chunk-wp3dpt6d.js} +2 -2
- package/bundle/{chunk-acyj91wq.js → chunk-x2cavpa9.js} +1 -1
- package/bundle/{chunk-kmtfdky8.js → chunk-x3afqfww.js} +2 -2
- package/bundle/{chunk-qb35hqm4.js → chunk-x4pdpka8.js} +1 -1
- package/bundle/{chunk-vm58fkrv.js → chunk-xd3xc1vv.js} +1 -1
- package/bundle/{chunk-m6zxr0j8.js → chunk-xjpvv3vp.js} +2 -2
- package/bundle/chunk-xnhvt98g.js +5 -0
- package/bundle/{chunk-64s7vfj7.js → chunk-xny5ecn0.js} +2 -2
- package/bundle/chunk-xwgc2pw7.js +28 -0
- package/bundle/chunk-xxrtr6sd.js +2 -0
- package/bundle/chunk-y287zwkr.js +10 -0
- package/bundle/{chunk-ezrskm25.js → chunk-y3dfk6n5.js} +1 -1
- package/bundle/{chunk-t01bhw5h.js → chunk-y4e7e42x.js} +3 -3
- package/bundle/chunk-y8eggnrr.js +2 -0
- package/bundle/{chunk-9xvctnjr.js → chunk-yajd975f.js} +1 -1
- package/bundle/chunk-yck5h49c.js +2 -0
- package/bundle/{chunk-8yr682pv.js → chunk-yd2emszh.js} +2 -2
- package/bundle/{chunk-p9zrk16q.js → chunk-yd8bzhv6.js} +1 -1
- package/bundle/{chunk-ztnepaqc.js → chunk-yerfyz4w.js} +1 -1
- package/bundle/{chunk-x42w8ewc.js → chunk-yg0pfngv.js} +1 -1
- package/bundle/{chunk-y1b2h15z.js → chunk-ypcc3cnb.js} +1 -1
- package/bundle/{chunk-tzrbb0e8.js → chunk-yqb6cfed.js} +2 -2
- package/bundle/{chunk-qy1a2tpc.js → chunk-yr35q7q1.js} +1 -1
- package/bundle/{chunk-rcyhqkv5.js → chunk-yrfq22a5.js} +1 -1
- package/bundle/{chunk-gg7bg3ek.js → chunk-yvjke593.js} +1 -1
- package/bundle/{chunk-zfnbk5gy.js → chunk-ywkvq7zb.js} +1 -1
- package/bundle/{chunk-p3rp99na.js → chunk-yx1h0b5v.js} +1 -1
- package/bundle/chunk-yxeja9kg.js +2 -0
- package/bundle/{chunk-mzbr0m2v.js → chunk-yz0pwv2m.js} +1 -1
- package/bundle/{chunk-q81m4m9z.js → chunk-z2h1gxyx.js} +1 -1
- package/bundle/{chunk-qqne79vp.js → chunk-zdzxsyxs.js} +2 -2
- package/bundle/{chunk-yzh4rmrt.js → chunk-zek5c15t.js} +1 -1
- package/bundle/{chunk-8dxdeksr.js → chunk-zfd70p01.js} +1 -1
- package/bundle/{chunk-pnpre7ys.js → chunk-zqkv8796.js} +1 -1
- package/bundle/chunk-ztn2jv26.js +11 -0
- package/bundle/index.js +3 -3
- package/bundle/parser.worker.js +2 -2
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-092bx2yw.js +0 -2
- package/bundle/chunk-0jrgk6vk.js +0 -2
- package/bundle/chunk-0ne5m1n3.js +0 -2
- package/bundle/chunk-0qn52zsd.js +0 -2
- package/bundle/chunk-10accb7b.js +0 -2
- package/bundle/chunk-13kpdfr7.js +0 -2
- package/bundle/chunk-15s8zwgf.js +0 -2
- package/bundle/chunk-1bx2sjn6.js +0 -11
- package/bundle/chunk-1kgyfja6.js +0 -2
- package/bundle/chunk-4dtkj9zg.js +0 -2
- package/bundle/chunk-4e9p3e0a.js +0 -2
- package/bundle/chunk-4tbqsrsn.js +0 -2
- package/bundle/chunk-53kns5wy.js +0 -2
- package/bundle/chunk-559ek1ym.js +0 -2
- package/bundle/chunk-55wxgsga.js +0 -2
- package/bundle/chunk-5ke0yqqz.js +0 -8
- package/bundle/chunk-5q1fz2az.js +0 -2
- package/bundle/chunk-5sgpjgss.js +0 -10
- package/bundle/chunk-88emsbaz.js +0 -2
- package/bundle/chunk-8yn64y27.js +0 -2
- package/bundle/chunk-8ywa7az5.js +0 -2
- package/bundle/chunk-8ywdddts.js +0 -2
- package/bundle/chunk-92zjark4.js +0 -2
- package/bundle/chunk-a6z0fhta.js +0 -2
- package/bundle/chunk-akpssv2d.js +0 -2
- package/bundle/chunk-aq28ejhv.js +0 -2
- package/bundle/chunk-b10px5g4.js +0 -2
- package/bundle/chunk-bha3sbsj.js +0 -2
- package/bundle/chunk-bs020a3x.js +0 -2
- package/bundle/chunk-bs61sezq.js +0 -2
- package/bundle/chunk-cmdjkx32.js +0 -2
- package/bundle/chunk-de2rfsaf.js +0 -2
- package/bundle/chunk-dncnyzaa.js +0 -2
- package/bundle/chunk-dp6zktka.js +0 -2
- package/bundle/chunk-dvqdtdza.js +0 -2
- package/bundle/chunk-ebabnv33.js +0 -3
- package/bundle/chunk-ebdpg3cn.js +0 -2
- package/bundle/chunk-eyc6tb5h.js +0 -2
- package/bundle/chunk-eze57bty.js +0 -2
- package/bundle/chunk-fa47vzfc.js +0 -2
- package/bundle/chunk-fe397ph0.js +0 -2
- package/bundle/chunk-fr75ytdr.js +0 -2
- package/bundle/chunk-fw2tnbt6.js +0 -2
- package/bundle/chunk-fwr2qgqb.js +0 -2
- package/bundle/chunk-g204pt98.js +0 -2
- package/bundle/chunk-gcgmwqhh.js +0 -2
- package/bundle/chunk-grdfpd57.js +0 -2
- package/bundle/chunk-gw36mrg4.js +0 -2
- package/bundle/chunk-h36qec67.js +0 -2
- package/bundle/chunk-h9gtymfm.js +0 -2
- package/bundle/chunk-h9qn35pn.js +0 -2
- package/bundle/chunk-hd8q4msp.js +0 -2
- package/bundle/chunk-hhjkezfz.js +0 -2
- package/bundle/chunk-hnz570f9.js +0 -3
- package/bundle/chunk-jfz8wwk9.js +0 -2
- package/bundle/chunk-js6hqmq7.js +0 -2
- package/bundle/chunk-k70x182t.js +0 -2
- package/bundle/chunk-kwzawx7r.js +0 -2
- package/bundle/chunk-m0mek3es.js +0 -2
- package/bundle/chunk-m31d2n6h.js +0 -2
- package/bundle/chunk-n14qktbg.js +0 -2
- package/bundle/chunk-n38h109k.js +0 -17
- package/bundle/chunk-nzzsj54n.js +0 -2
- package/bundle/chunk-p19qfw59.js +0 -2
- package/bundle/chunk-p2yxj9s4.js +0 -2
- package/bundle/chunk-ps9p14y6.js +0 -2
- package/bundle/chunk-qagc6v17.js +0 -2
- package/bundle/chunk-qc0zhbhm.js +0 -2
- package/bundle/chunk-r78kfhvz.js +0 -2
- package/bundle/chunk-rnd5mnsm.js +0 -2
- package/bundle/chunk-schtpyjs.js +0 -2
- package/bundle/chunk-sp8ek94w.js +0 -5
- package/bundle/chunk-sxwqrvmy.js +0 -28
- package/bundle/chunk-syc4b8rt.js +0 -2
- package/bundle/chunk-tcs6wgna.js +0 -3
- package/bundle/chunk-tf4xwqz7.js +0 -2
- package/bundle/chunk-tzg4z74d.js +0 -2
- package/bundle/chunk-v8vcwx23.js +0 -2
- package/bundle/chunk-vftqwdpg.js +0 -3
- package/bundle/chunk-w6rf2knb.js +0 -2
- package/bundle/chunk-wh7r96t3.js +0 -2
- package/bundle/chunk-wnjqaxze.js +0 -2
- package/bundle/chunk-xc9se3c8.js +0 -2
- package/bundle/chunk-xfz698bh.js +0 -2
- package/bundle/chunk-xxj3sgd5.js +0 -2
- package/bundle/chunk-xxvqq7kc.js +0 -2
- package/bundle/chunk-ye0mkqb4.js +0 -2
- package/bundle/chunk-yfp9y71y.js +0 -2
- package/bundle/chunk-yjjh339w.js +0 -2
- package/bundle/chunk-yt6vd7a5.js +0 -2
- package/bundle/chunk-yzn08nx1.js +0 -2
- package/bundle/chunk-yzq3c3dq.js +0 -2
- package/bundle/chunk-z1j25911.js +0 -2
- package/bundle/chunk-z210dtw1.js +0 -3
- package/bundle/chunk-z29ahthm.js +0 -2
- package/bundle/chunk-zgre4gc2.js +0 -2
- package/bundle/chunk-zthkjx33.js +0 -2
- package/bundle/chunk-zwvwbrsc.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{if as BX}from"./chunk-64c8q9zg.js";import{Cp as f,Jp as i,Kp as l,Op as u,Pp as yQ,Qp as _,Rp as qQ,Sp as MQ,Tp as s,Xp as EQ,Yo as p,_o as mQ,cp as UQ,dp as ZQ,mp as r,qp as gQ,rp as cQ,wp as AQ,xp as zQ,zp as O}from"./chunk-my3cswnp.js";import{Zp as QQ,iq as uQ,kq as YQ}from"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import{au as Q}from"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import{LO as wX}from"./chunk-f83wv08n.js";var dQ=wX(BX(),1);function wQ(X){var Y,L,Z,K;if(X==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let U=(Y=X.promptTokenCount)!=null?Y:0,R=(L=X.candidatesTokenCount)!=null?L:0,N=(Z=X.cachedContentTokenCount)!=null?Z:0,z=(K=X.thoughtsTokenCount)!=null?K:0;return{inputTokens:{total:U,noCache:U-N,cacheRead:N,cacheWrite:void 0},outputTokens:{total:R+z,text:R,reasoning:z},raw:X}}function g(X,Y=!0){if(X==null)return;if(iQ(X)){if(Y)return;if(typeof X==="object"&&X.description)return{type:"object",description:X.description};return{type:"object"}}if(typeof X==="boolean")return{type:"boolean",properties:{}};let{type:L,description:Z,required:K,properties:U,items:R,allOf:N,anyOf:z,oneOf:D,format:A,const:V,minLength:W,enum:B}=X,E={};if(Z)E.description=Z;if(K)E.required=K;if(A)E.format=A;if(V!==void 0)E.enum=[V];if(L)if(Array.isArray(L)){let J=L.includes("null"),j=L.filter((w)=>w!=="null");if(j.length===0)E.type="null";else if(E.anyOf=j.map((w)=>({type:w})),J)E.nullable=!0}else E.type=L;if(B!==void 0)E.enum=B;if(U!=null)E.properties=Object.entries(U).reduce((J,[j,w])=>{return J[j]=g(w,!1),J},{});if(R)E.items=Array.isArray(R)?R.map((J)=>g(J,!1)):g(R,!1);if(N)E.allOf=N.map((J)=>g(J,!1));if(z)if(z.some((J)=>typeof J==="object"&&(J==null?void 0:J.type)==="null")){let J=z.filter((j)=>!(typeof j==="object"&&(j==null?void 0:j.type)==="null"));if(J.length===1){let j=g(J[0],!1);if(typeof j==="object")E.nullable=!0,Object.assign(E,j)}else E.anyOf=J.map((j)=>g(j,!1)),E.nullable=!0}else E.anyOf=z.map((J)=>g(J,!1));if(D)E.oneOf=D.map((J)=>g(J,!1));if(W!==void 0)E.minLength=W;return E}function iQ(X){return X!=null&&typeof X==="object"&&X.type==="object"&&(X.properties==null||Object.keys(X.properties).length===0)&&!X.additionalProperties}var lQ=/^data:([^;,]+);base64,(.+)$/s;function sQ(X){let Y=lQ.exec(X);if(Y==null)return;return{mediaType:Y[1],data:Y[2]}}function nQ(X){let Y=sQ(X);if(Y==null)return;return{inlineData:{mimeType:Y.mediaType,data:Y.data}}}function aQ(X,Y,L){let Z=[],K=[];for(let U of L)switch(U.type){case"text":{K.push(U.text);break}case"image-data":case"file-data":{Z.push({inlineData:{mimeType:U.mediaType,data:U.data}});break}case"image-url":case"file-url":{let R=nQ(U.url);if(R!=null)Z.push(R);else K.push(JSON.stringify(U));break}default:{K.push(JSON.stringify(U));break}}X.push({functionResponse:{name:Y,response:{name:Y,content:K.length>0?K.join(`
|
|
3
3
|
`):"Tool executed successfully."},...Z.length>0?{parts:Z}:{}}})}function rQ(X,Y,L){for(let Z of L)switch(Z.type){case"text":X.push({functionResponse:{name:Y,response:{name:Y,content:Z.text}}});break;case"image-data":X.push({inlineData:{mimeType:String(Z.mediaType),data:String(Z.data)}},{text:"Tool executed successfully and returned this image as a response"});break;default:X.push({text:JSON.stringify(Z)});break}}function tQ(X,Y){var L,Z,K,U,R,N,z,D;let A=[],V=[],W=!0,B=(L=Y==null?void 0:Y.isGemmaModel)!=null?L:!1,E=(Z=Y==null?void 0:Y.providerOptionsName)!=null?Z:"google",J=(K=Y==null?void 0:Y.supportsFunctionResponseParts)!=null?K:!0;for(let{role:j,content:w}of X)switch(j){case"system":{if(!W)throw new YQ({functionality:"system messages are only supported at the beginning of the conversation"});A.push({text:w});break}case"user":{W=!1;let q=[];for(let F of w)switch(F.type){case"text":{q.push({text:F.text});break}case"file":{let b=F.mediaType==="image/*"?"image/jpeg":F.mediaType;q.push(F.data instanceof URL?{fileData:{mimeType:b,fileUri:F.data.toString()}}:{inlineData:{mimeType:b,data:ZQ(F.data)}});break}}V.push({role:"user",parts:q});break}case"assistant":{W=!1,V.push({role:"model",parts:w.map((q)=>{var F,b,S,y;let $=(y=(F=q.providerOptions)==null?void 0:F[E])!=null?y:E!=="google"?(b=q.providerOptions)==null?void 0:b.google:(S=q.providerOptions)==null?void 0:S.vertex,P=($==null?void 0:$.thoughtSignature)!=null?String($.thoughtSignature):void 0;switch(q.type){case"text":return q.text.length===0?void 0:{text:q.text,thoughtSignature:P};case"reasoning":return q.text.length===0?void 0:{text:q.text,thought:!0,thoughtSignature:P};case"file":{if(q.data instanceof URL)throw new YQ({functionality:"File data URLs in assistant messages are not supported"});return{inlineData:{mimeType:q.mediaType,data:ZQ(q.data)},...($==null?void 0:$.thought)===!0?{thought:!0}:{},thoughtSignature:P}}case"tool-call":{let x=($==null?void 0:$.serverToolCallId)!=null?String($.serverToolCallId):void 0,k=($==null?void 0:$.serverToolType)!=null?String($.serverToolType):void 0;if(x&&k)return{toolCall:{toolType:k,args:typeof q.input==="string"?JSON.parse(q.input):q.input,id:x},thoughtSignature:P};return{functionCall:{name:q.toolName,args:q.input},thoughtSignature:P}}case"tool-result":{let x=($==null?void 0:$.serverToolCallId)!=null?String($.serverToolCallId):void 0,k=($==null?void 0:$.serverToolType)!=null?String($.serverToolType):void 0;if(x&&k)return{toolResponse:{toolType:k,response:q.output.type==="json"?q.output.value:{},id:x},thoughtSignature:P};return}}}).filter((q)=>q!==void 0)});break}case"tool":{W=!1;let q=[];for(let F of w){if(F.type==="tool-approval-response")continue;let b=(z=(U=F.providerOptions)==null?void 0:U[E])!=null?z:E!=="google"?(R=F.providerOptions)==null?void 0:R.google:(N=F.providerOptions)==null?void 0:N.vertex,S=(b==null?void 0:b.serverToolCallId)!=null?String(b.serverToolCallId):void 0,y=(b==null?void 0:b.serverToolType)!=null?String(b.serverToolType):void 0;if(S&&y){let P=(b==null?void 0:b.thoughtSignature)!=null?String(b.thoughtSignature):void 0;if(V.length>0){let x=V[V.length-1];if(x.role==="model"){x.parts.push({toolResponse:{toolType:y,response:F.output.type==="json"?F.output.value:{},id:S},thoughtSignature:P});continue}}}let $=F.output;if($.type==="content")if(J)aQ(q,F.toolName,$.value);else rQ(q,F.toolName,$.value);else q.push({functionResponse:{name:F.toolName,response:{name:F.toolName,content:$.type==="execution-denied"?(D=$.reason)!=null?D:"Tool execution denied.":$.value}}})}V.push({role:"user",parts:q});break}}if(B&&A.length>0&&V.length>0&&V[0].role==="user"){let j=A.map((w)=>w.text).join(`
|
|
4
4
|
|
|
5
5
|
`);V[0].parts.unshift({text:j+`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{of as P}from"./chunk-00sr2gwz.js";import"./chunk-yha554nm.js";import{wf as Q}from"./chunk-v3x5nrc4.js";import{jQ as W,kQ as J}from"./chunk-4sazy0nq.js";class M{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)A(t);return new M(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)A(e);return parseInt(b.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function A(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}class I{toUtf8;fromUtf8;constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){let t=[];for(let s of Object.keys(e)){let a=this.fromUtf8(s);t.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,a)=>s+a.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(s.buffer);return a.set(e.value,3),a;case"string":let l=this.fromUtf8(e.value),i=new DataView(new ArrayBuffer(3+l.byteLength));i.setUint8(0,7),i.setUint16(1,l.byteLength,!1);let f=new Uint8Array(i.buffer);return f.set(l,3),f;case"timestamp":let h=new Uint8Array(9);return h[0]=8,h.set(M.fromNumber(e.value.valueOf()).bytes,1),h;case"uuid":if(!te.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let u=new Uint8Array(17);return u[0]=9,u.set(b.fromHex(e.value.replace(/\-/g,"")),1),u}}parse(e){let t={},r=0;while(r<e.byteLength){let n=e.getUint8(r++),s=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[s]={type:F,value:!0};break;case 1:t[s]={type:F,value:!1};break;case 2:t[s]={type:X,value:e.getInt8(r++)};break;case 3:t[s]={type:Z,value:e.getInt16(r,!1)},r+=2;break;case 4:t[s]={type:V,value:e.getInt32(r,!1)},r+=4;break;case 5:t[s]={type:D,value:new M(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:let a=e.getUint16(r,!1);r+=2,t[s]={type:E,value:new Uint8Array(e.buffer,e.byteOffset+r,a)},r+=a;break;case 7:let l=e.getUint16(r,!1);r+=2,t[s]={type:_,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,l))},r+=l;break;case 8:t[s]={type:Y,value:new Date(new M(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:let i=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[s]={type:ee,value:`${b.toHex(i.subarray(0,4))}-${b.toHex(i.subarray(4,6))}-${b.toHex(i.subarray(6,8))}-${b.toHex(i.subarray(8,10))}-${b.toHex(i.subarray(10))}`};break;default:throw Error("Unrecognized header type tag")}}return t}}function se({byteLength:e,byteOffset:t,buffer:r}){if(e<re)throw Error("Provided message too short to accommodate event stream message overhead");let n=new DataView(r,t,e),s=n.getUint32(0,!1);if(e!==s)throw Error("Reported message length does not match received message length");let a=n.getUint32(q,!1),l=n.getUint32(p,!1),i=n.getUint32(e-S,!1),f=new j.Crc32().update(new Uint8Array(r,t,p));if(l!==f.digest())throw Error(`The prelude checksum specified in the message (${l}) does not match the calculated CRC32 checksum (${f.digest()})`);if(f.update(new Uint8Array(r,t+p,e-(p+S))),i!==f.digest())throw Error(`The message checksum (${f.digest()}) did not match the expected value of ${i}`);return{headers:new DataView(r,t+p+S,a),body:new Uint8Array(r,t+p+S+a,s-a-(p+S+S))}}class x{headerMarshaller;messageBuffer;isEndOfStream;constructor(e,t){this.headerMarshaller=new I(e,t),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){let e=this.messageBuffer.pop(),t=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return t}}}getAvailableMessages(){let e=this.messageBuffer;this.messageBuffer=[];let t=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return t}}}encode({headers:e,body:t}){let r=this.headerMarshaller.format(e),n=r.byteLength+t.byteLength+16,s=new Uint8Array(n),a=new DataView(s.buffer,s.byteOffset,s.byteLength),l=new j.Crc32;return a.setUint32(0,n,!1),a.setUint32(4,r.byteLength,!1),a.setUint32(8,l.update(s.subarray(0,8)).digest(),!1),s.set(r,12),s.set(t,r.byteLength+12),a.setUint32(n-4,l.update(s.subarray(8,n-4)).digest(),!1),s}decode(e){let{headers:t,body:r}=se(e);return{headers:this.headerMarshaller.parse(t),body:r}}formatHeaders(e){return this.headerMarshaller.format(e)}}function H(e){let t=0,r=0,n=null,s=null,a=(i)=>{if(typeof i!=="number")throw Error("Attempted to allocate an event message where size was not a number: "+i);t=i,r=4,n=new Uint8Array(i),new DataView(n.buffer).setUint32(0,i,!1)},l=async function*(){let i=e[Symbol.asyncIterator]();while(!0){let{value:f,done:h}=await i.next();if(h){if(!t)return;else if(t===r)yield n;else throw Error("Truncated event message received.");return}let u=f.length,o=0;while(o<u){if(!n){let m=u-o;if(!s)s=new Uint8Array(4);let y=Math.min(4-r,m);if(s.set(f.slice(o,o+y),r),r+=y,o+=y,r<4)break;a(new DataView(s.buffer).getUint32(0,!1)),s=null}let c=Math.min(t-r,u-o);if(n.set(f.slice(o,o+c),r),r+=c,o+=c,t&&t===r)yield n,n=null,t=0,r=0}}};return{[Symbol.asyncIterator]:l}}function ne(e,t){let r=C(t.deserializer,t.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let n of e){let s=t.eventStreamCodec.decode(n),a=await r(s);if(a===void 0)continue;yield a}}}}function C(e,t){return async function(r){let{value:n}=r.headers[":message-type"];if(n==="error"){let s=Error(r.headers[":error-message"].value||"UnknownError");throw s.name=r.headers[":error-code"].value,s}else if(n==="exception"){let s=r.headers[":exception-type"].value,a={[s]:r},l=await e(a);if(l.$unknown){let i=Error(t(r.body));throw i.name=s,i}throw l[s]}else if(n==="event"){let s={[r.headers[":event-type"].value]:r},a=await e(s);if(a.$unknown)return;return a}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}class N{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new O({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){let r=typeof e[Symbol.asyncIterator]==="function"?e:ie(e);return this.universalMarshaller.deserialize(r,t)}serialize(e,t){return R.Readable.from(this.universalMarshaller.serialize(e,t))}}async function*ie(e){let t=!1,r=!1,n=[];e.on("error",(s)=>{if(!t)t=!0;if(s)throw s}),e.on("data",(s)=>{n.push(s)}),e.on("end",()=>{t=!0});while(!r){let s=await new Promise((a)=>setTimeout(()=>a(n.shift()),0));if(s)yield s;r=t&&n.length===0}}class K{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:e,serializer:t,deserializer:r,serdeContext:n,defaultContentType:s}){this.marshaller=e,this.serializer=t,this.deserializer=r,this.serdeContext=n,this.defaultContentType=s}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:r}){let n=this.marshaller,s=t.getEventStreamMember(),a=t.getMemberSchema(s),l=this.serializer,i=this.defaultContentType,f=Symbol("initialRequestMarker"),h={async*[Symbol.asyncIterator](){if(r){let u={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:i}};l.write(t,r);let o=l.flush();yield{[f]:!0,headers:u,body:o}}for await(let u of e)yield u}};return n.serialize(h,(u)=>{if(u[f])return{headers:u.headers,body:u.body};let o="";for(let d in u)if(d!=="__type"){o=d;break}let{additionalHeaders:c,body:m,eventType:y,explicitPayloadContentType:g}=this.writeEventBody(o,a,u);return{headers:{":event-type":{type:"string",value:y},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:g??i},...c},body:m}})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:r}){let n=this.marshaller,s=t.getEventStreamMember(),l=t.getMemberSchema(s).getMemberSchemas(),i=Symbol("initialResponseMarker"),f=n.deserialize(e.body,async(o)=>{let c="";for(let y in o)if(y!=="__type"){c=y;break}let m=o[c].body;if(c==="initial-response"){let y=await this.deserializer.read(t,m);return delete y[s],{[i]:!0,...y}}else if(c in l){let y=l[c];if(y.isStructSchema()){let g={},w=!1;for(let[d,U]of y.structIterator()){let{eventHeader:$,eventPayload:G}=U.getMergedTraits();if(w=w||Boolean($||G),G){if(U.isBlobSchema())g[d]=m;else if(U.isStringSchema())g[d]=(this.serdeContext?.utf8Encoder??b.toUtf8)(m);else if(U.isStructSchema())g[d]=await this.deserializer.read(U,m)}else if($){let v=o[c].headers[d]?.value;if(v!=null)if(U.isNumericSchema())if(v&&typeof v==="object"&&"bytes"in v)g[d]=BigInt(v.toString());else g[d]=Number(v);else g[d]=v}}if(w)return{[c]:g};if(m.byteLength===0)return{[c]:{}}}return{[c]:await this.deserializer.read(y,m)}}else return{$unknown:o}}),h=f[Symbol.asyncIterator](),u=await h.next();if(u.done)return f;if(u.value?.[i]){if(!t)throw Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let o in u.value)r[o]=u.value[o]}return{async*[Symbol.asyncIterator](){if(!u?.value?.[i])yield u.value;while(!0){let{done:o,value:c}=await h.next();if(o)break;yield c}}}}writeEventBody(e,t,r){let n=this.serializer,s=e,a=null,l,i=(()=>{return t.getSchema()[4].includes(e)})(),f={};if(!i){let[o,c]=r[e];s=o,n.write(15,c)}else{let o=t.getMemberSchema(e);if(o.isStructSchema()){for(let[c,m]of o.structIterator()){let{eventHeader:y,eventPayload:g}=m.getMergedTraits();if(g)a=c;else if(y){let w=r[e][c],d="binary";if(m.isNumericSchema())if(-2147483648<=w&&w<=2147483647)d="integer";else d="long";else if(m.isTimestampSchema())d="timestamp";else if(m.isStringSchema())d="string";else if(m.isBooleanSchema())d="boolean";if(w!=null)f[c]={type:d,value:w},delete r[e][c]}}if(a!==null){let c=o.getMemberSchema(a);if(c.isBlobSchema())l="application/octet-stream";else if(c.isStringSchema())l="text/plain";n.write(c,r[e][a])}else n.write(o,r[e])}else if(o.isUnitSchema())n.write(o,{});else throw Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}let h=n.flush()??new Uint8Array;return{body:typeof h==="string"?(this.serdeContext?.utf8Decoder??b.fromUtf8)(h):h,eventType:s,explicitPayloadContentType:l,additionalHeaders:f}}}var j,b,R,L,F="boolean",X="byte",Z="short",V="integer",D="long",E="binary",_="string",Y="timestamp",ee="uuid",te,q=4,p,S=4,re,k,B,T,z,O=class{eventStreamCodec;utfEncoder;constructor({utf8Encoder:t,utf8Decoder:r}){this.eventStreamCodec=new x(t,r),this.utfEncoder=t}deserialize(t,r){let n=H(t);return new T({messageStream:new k({inputStream:n,decoder:this.eventStreamCodec}),deserializer:C(r,this.utfEncoder)})}serialize(t,r){return new B({messageStream:new z({inputStream:t,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},ae=(e)=>new O(e),oe=(e)=>new N(e),ce=(e)=>({[Symbol.asyncIterator]:async function*(){let t=e.getReader();try{while(!0){let{done:r,value:n}=await t.read();if(r)return;yield n}}finally{t.releaseLock()}}}),le=(e)=>{let t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(r){let{done:n,value:s}=await t.next();if(n)return r.close();r.enqueue(s)}})},ue=(e)=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),fe,ye,de,me,he,ge,we,be,pe,ve,Se,Ue,Me,Ie,xe,ke,Be,Te;var ze=W(()=>{j=P(),b=Q(),R=J("stream");(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(L||(L={}));te=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,p=q*2,re=p+S*2;k=class k{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.decoder.decode(e)}};B=class B{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream)yield this.options.encoder.encode(e);if(this.options.includeEndFrame)yield new Uint8Array(0)}};T=class T{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream){let t=await this.options.deserializer(e);if(t===void 0)continue;yield t}}};z=class z{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.serializer(e)}};fe=x,ye=N,de=K,me=I,he=M,ge=k,we=B,be=T,pe=z,ve=O,Se=oe,Ue=H,Me=C,Ie=ne,xe=le,ke=ce,Be=ue,Te=ae});ze();export{Te as universalEventStreamSerdeProvider,Be as resolveEventStreamSerdeConfig,ke as readableStreamToIterable,xe as iterableToReadableStream,Ie as getUnmarshalledStream,Me as getMessageUnmarshaller,Ue as getChunkedStream,Se as eventStreamSerdeProvider,ve as UniversalEventStreamMarshaller,pe as SmithyMessageEncoderStream,be as SmithyMessageDecoderStream,we as MessageEncoderStream,ge as MessageDecoderStream,he as Int64,me as HeaderMarshaller,de as EventStreamSerde,ye as EventStreamMarshaller,fe as EventStreamCodec};export default {get universalEventStreamSerdeProvider(){return Te},get resolveEventStreamSerdeConfig(){return Be},get readableStreamToIterable(){return ke},get iterableToReadableStream(){return xe},get getUnmarshalledStream(){return Ie},get getMessageUnmarshaller(){return Me},get getChunkedStream(){return Ue},get eventStreamSerdeProvider(){return Se},get UniversalEventStreamMarshaller(){return ve},get SmithyMessageEncoderStream(){return pe},get SmithyMessageDecoderStream(){return be},get MessageEncoderStream(){return we},get MessageDecoderStream(){return ge},get Int64(){return he},get HeaderMarshaller(){return me},get EventStreamSerde(){return de},get EventStreamMarshaller(){return ye},get EventStreamCodec(){return fe}};
|
|
2
|
+
import{qf as P}from"./chunk-jw114bbt.js";import"./chunk-w7em72p8.js";import{yf as Q}from"./chunk-3tmq81kq.js";import{OO as W,PO as J}from"./chunk-f83wv08n.js";class M{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)A(t);return new M(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)A(e);return parseInt(b.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function A(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}class I{toUtf8;fromUtf8;constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){let t=[];for(let s of Object.keys(e)){let a=this.fromUtf8(s);t.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,a)=>s+a.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(s.buffer);return a.set(e.value,3),a;case"string":let l=this.fromUtf8(e.value),i=new DataView(new ArrayBuffer(3+l.byteLength));i.setUint8(0,7),i.setUint16(1,l.byteLength,!1);let f=new Uint8Array(i.buffer);return f.set(l,3),f;case"timestamp":let h=new Uint8Array(9);return h[0]=8,h.set(M.fromNumber(e.value.valueOf()).bytes,1),h;case"uuid":if(!te.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let u=new Uint8Array(17);return u[0]=9,u.set(b.fromHex(e.value.replace(/\-/g,"")),1),u}}parse(e){let t={},r=0;while(r<e.byteLength){let n=e.getUint8(r++),s=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[s]={type:F,value:!0};break;case 1:t[s]={type:F,value:!1};break;case 2:t[s]={type:X,value:e.getInt8(r++)};break;case 3:t[s]={type:Z,value:e.getInt16(r,!1)},r+=2;break;case 4:t[s]={type:V,value:e.getInt32(r,!1)},r+=4;break;case 5:t[s]={type:D,value:new M(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:let a=e.getUint16(r,!1);r+=2,t[s]={type:E,value:new Uint8Array(e.buffer,e.byteOffset+r,a)},r+=a;break;case 7:let l=e.getUint16(r,!1);r+=2,t[s]={type:_,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,l))},r+=l;break;case 8:t[s]={type:Y,value:new Date(new M(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:let i=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[s]={type:ee,value:`${b.toHex(i.subarray(0,4))}-${b.toHex(i.subarray(4,6))}-${b.toHex(i.subarray(6,8))}-${b.toHex(i.subarray(8,10))}-${b.toHex(i.subarray(10))}`};break;default:throw Error("Unrecognized header type tag")}}return t}}function se({byteLength:e,byteOffset:t,buffer:r}){if(e<re)throw Error("Provided message too short to accommodate event stream message overhead");let n=new DataView(r,t,e),s=n.getUint32(0,!1);if(e!==s)throw Error("Reported message length does not match received message length");let a=n.getUint32(q,!1),l=n.getUint32(p,!1),i=n.getUint32(e-S,!1),f=new j.Crc32().update(new Uint8Array(r,t,p));if(l!==f.digest())throw Error(`The prelude checksum specified in the message (${l}) does not match the calculated CRC32 checksum (${f.digest()})`);if(f.update(new Uint8Array(r,t+p,e-(p+S))),i!==f.digest())throw Error(`The message checksum (${f.digest()}) did not match the expected value of ${i}`);return{headers:new DataView(r,t+p+S,a),body:new Uint8Array(r,t+p+S+a,s-a-(p+S+S))}}class x{headerMarshaller;messageBuffer;isEndOfStream;constructor(e,t){this.headerMarshaller=new I(e,t),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){let e=this.messageBuffer.pop(),t=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return t}}}getAvailableMessages(){let e=this.messageBuffer;this.messageBuffer=[];let t=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return t}}}encode({headers:e,body:t}){let r=this.headerMarshaller.format(e),n=r.byteLength+t.byteLength+16,s=new Uint8Array(n),a=new DataView(s.buffer,s.byteOffset,s.byteLength),l=new j.Crc32;return a.setUint32(0,n,!1),a.setUint32(4,r.byteLength,!1),a.setUint32(8,l.update(s.subarray(0,8)).digest(),!1),s.set(r,12),s.set(t,r.byteLength+12),a.setUint32(n-4,l.update(s.subarray(8,n-4)).digest(),!1),s}decode(e){let{headers:t,body:r}=se(e);return{headers:this.headerMarshaller.parse(t),body:r}}formatHeaders(e){return this.headerMarshaller.format(e)}}function H(e){let t=0,r=0,n=null,s=null,a=(i)=>{if(typeof i!=="number")throw Error("Attempted to allocate an event message where size was not a number: "+i);t=i,r=4,n=new Uint8Array(i),new DataView(n.buffer).setUint32(0,i,!1)},l=async function*(){let i=e[Symbol.asyncIterator]();while(!0){let{value:f,done:h}=await i.next();if(h){if(!t)return;else if(t===r)yield n;else throw Error("Truncated event message received.");return}let u=f.length,o=0;while(o<u){if(!n){let m=u-o;if(!s)s=new Uint8Array(4);let y=Math.min(4-r,m);if(s.set(f.slice(o,o+y),r),r+=y,o+=y,r<4)break;a(new DataView(s.buffer).getUint32(0,!1)),s=null}let c=Math.min(t-r,u-o);if(n.set(f.slice(o,o+c),r),r+=c,o+=c,t&&t===r)yield n,n=null,t=0,r=0}}};return{[Symbol.asyncIterator]:l}}function ne(e,t){let r=C(t.deserializer,t.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let n of e){let s=t.eventStreamCodec.decode(n),a=await r(s);if(a===void 0)continue;yield a}}}}function C(e,t){return async function(r){let{value:n}=r.headers[":message-type"];if(n==="error"){let s=Error(r.headers[":error-message"].value||"UnknownError");throw s.name=r.headers[":error-code"].value,s}else if(n==="exception"){let s=r.headers[":exception-type"].value,a={[s]:r},l=await e(a);if(l.$unknown){let i=Error(t(r.body));throw i.name=s,i}throw l[s]}else if(n==="event"){let s={[r.headers[":event-type"].value]:r},a=await e(s);if(a.$unknown)return;return a}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}class N{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new O({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){let r=typeof e[Symbol.asyncIterator]==="function"?e:ie(e);return this.universalMarshaller.deserialize(r,t)}serialize(e,t){return R.Readable.from(this.universalMarshaller.serialize(e,t))}}async function*ie(e){let t=!1,r=!1,n=[];e.on("error",(s)=>{if(!t)t=!0;if(s)throw s}),e.on("data",(s)=>{n.push(s)}),e.on("end",()=>{t=!0});while(!r){let s=await new Promise((a)=>setTimeout(()=>a(n.shift()),0));if(s)yield s;r=t&&n.length===0}}class K{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:e,serializer:t,deserializer:r,serdeContext:n,defaultContentType:s}){this.marshaller=e,this.serializer=t,this.deserializer=r,this.serdeContext=n,this.defaultContentType=s}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:r}){let n=this.marshaller,s=t.getEventStreamMember(),a=t.getMemberSchema(s),l=this.serializer,i=this.defaultContentType,f=Symbol("initialRequestMarker"),h={async*[Symbol.asyncIterator](){if(r){let u={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:i}};l.write(t,r);let o=l.flush();yield{[f]:!0,headers:u,body:o}}for await(let u of e)yield u}};return n.serialize(h,(u)=>{if(u[f])return{headers:u.headers,body:u.body};let o="";for(let d in u)if(d!=="__type"){o=d;break}let{additionalHeaders:c,body:m,eventType:y,explicitPayloadContentType:g}=this.writeEventBody(o,a,u);return{headers:{":event-type":{type:"string",value:y},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:g??i},...c},body:m}})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:r}){let n=this.marshaller,s=t.getEventStreamMember(),l=t.getMemberSchema(s).getMemberSchemas(),i=Symbol("initialResponseMarker"),f=n.deserialize(e.body,async(o)=>{let c="";for(let y in o)if(y!=="__type"){c=y;break}let m=o[c].body;if(c==="initial-response"){let y=await this.deserializer.read(t,m);return delete y[s],{[i]:!0,...y}}else if(c in l){let y=l[c];if(y.isStructSchema()){let g={},w=!1;for(let[d,U]of y.structIterator()){let{eventHeader:$,eventPayload:G}=U.getMergedTraits();if(w=w||Boolean($||G),G){if(U.isBlobSchema())g[d]=m;else if(U.isStringSchema())g[d]=(this.serdeContext?.utf8Encoder??b.toUtf8)(m);else if(U.isStructSchema())g[d]=await this.deserializer.read(U,m)}else if($){let v=o[c].headers[d]?.value;if(v!=null)if(U.isNumericSchema())if(v&&typeof v==="object"&&"bytes"in v)g[d]=BigInt(v.toString());else g[d]=Number(v);else g[d]=v}}if(w)return{[c]:g};if(m.byteLength===0)return{[c]:{}}}return{[c]:await this.deserializer.read(y,m)}}else return{$unknown:o}}),h=f[Symbol.asyncIterator](),u=await h.next();if(u.done)return f;if(u.value?.[i]){if(!t)throw Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let o in u.value)r[o]=u.value[o]}return{async*[Symbol.asyncIterator](){if(!u?.value?.[i])yield u.value;while(!0){let{done:o,value:c}=await h.next();if(o)break;yield c}}}}writeEventBody(e,t,r){let n=this.serializer,s=e,a=null,l,i=(()=>{return t.getSchema()[4].includes(e)})(),f={};if(!i){let[o,c]=r[e];s=o,n.write(15,c)}else{let o=t.getMemberSchema(e);if(o.isStructSchema()){for(let[c,m]of o.structIterator()){let{eventHeader:y,eventPayload:g}=m.getMergedTraits();if(g)a=c;else if(y){let w=r[e][c],d="binary";if(m.isNumericSchema())if(-2147483648<=w&&w<=2147483647)d="integer";else d="long";else if(m.isTimestampSchema())d="timestamp";else if(m.isStringSchema())d="string";else if(m.isBooleanSchema())d="boolean";if(w!=null)f[c]={type:d,value:w},delete r[e][c]}}if(a!==null){let c=o.getMemberSchema(a);if(c.isBlobSchema())l="application/octet-stream";else if(c.isStringSchema())l="text/plain";n.write(c,r[e][a])}else n.write(o,r[e])}else if(o.isUnitSchema())n.write(o,{});else throw Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}let h=n.flush()??new Uint8Array;return{body:typeof h==="string"?(this.serdeContext?.utf8Decoder??b.fromUtf8)(h):h,eventType:s,explicitPayloadContentType:l,additionalHeaders:f}}}var j,b,R,L,F="boolean",X="byte",Z="short",V="integer",D="long",E="binary",_="string",Y="timestamp",ee="uuid",te,q=4,p,S=4,re,k,B,T,z,O=class{eventStreamCodec;utfEncoder;constructor({utf8Encoder:t,utf8Decoder:r}){this.eventStreamCodec=new x(t,r),this.utfEncoder=t}deserialize(t,r){let n=H(t);return new T({messageStream:new k({inputStream:n,decoder:this.eventStreamCodec}),deserializer:C(r,this.utfEncoder)})}serialize(t,r){return new B({messageStream:new z({inputStream:t,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},ae=(e)=>new O(e),oe=(e)=>new N(e),ce=(e)=>({[Symbol.asyncIterator]:async function*(){let t=e.getReader();try{while(!0){let{done:r,value:n}=await t.read();if(r)return;yield n}}finally{t.releaseLock()}}}),le=(e)=>{let t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(r){let{done:n,value:s}=await t.next();if(n)return r.close();r.enqueue(s)}})},ue=(e)=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),fe,ye,de,me,he,ge,we,be,pe,ve,Se,Ue,Me,Ie,xe,ke,Be,Te;var ze=W(()=>{j=P(),b=Q(),R=J("stream");(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(L||(L={}));te=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,p=q*2,re=p+S*2;k=class k{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.decoder.decode(e)}};B=class B{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream)yield this.options.encoder.encode(e);if(this.options.includeEndFrame)yield new Uint8Array(0)}};T=class T{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream){let t=await this.options.deserializer(e);if(t===void 0)continue;yield t}}};z=class z{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.serializer(e)}};fe=x,ye=N,de=K,me=I,he=M,ge=k,we=B,be=T,pe=z,ve=O,Se=oe,Ue=H,Me=C,Ie=ne,xe=le,ke=ce,Be=ue,Te=ae});ze();export{Te as universalEventStreamSerdeProvider,Be as resolveEventStreamSerdeConfig,ke as readableStreamToIterable,xe as iterableToReadableStream,Ie as getUnmarshalledStream,Me as getMessageUnmarshaller,Ue as getChunkedStream,Se as eventStreamSerdeProvider,ve as UniversalEventStreamMarshaller,pe as SmithyMessageEncoderStream,be as SmithyMessageDecoderStream,we as MessageEncoderStream,ge as MessageDecoderStream,he as Int64,me as HeaderMarshaller,de as EventStreamSerde,ye as EventStreamMarshaller,fe as EventStreamCodec};export default {get universalEventStreamSerdeProvider(){return Te},get resolveEventStreamSerdeConfig(){return Be},get readableStreamToIterable(){return ke},get iterableToReadableStream(){return xe},get getUnmarshalledStream(){return Ie},get getMessageUnmarshaller(){return Me},get getChunkedStream(){return Ue},get eventStreamSerdeProvider(){return Se},get UniversalEventStreamMarshaller(){return ve},get SmithyMessageEncoderStream(){return pe},get SmithyMessageDecoderStream(){return be},get MessageEncoderStream(){return we},get MessageDecoderStream(){return ge},get Int64(){return he},get HeaderMarshaller(){return me},get EventStreamSerde(){return de},get EventStreamMarshaller(){return ye},get EventStreamCodec(){return fe}};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Qq as a,Rq as b,Sq as c}from"./chunk-qkh8697x.js";import"./chunk-qg9bt0kx.js";import"./chunk-pfkm3j8g.js";import"./chunk-hmznf0ax.js";import"./chunk-qf1dqzra.js";import"./chunk-03mbn7nj.js";import"./chunk-sh76e256.js";import"./chunk-0z1cxvk1.js";import"./chunk-x3afqfww.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-f83wv08n.js";export{c as makeRuntime,a as attachWith,b as attach};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Rd as b}from"./chunk-yajd975f.js";import{Uf as t}from"./chunk-t1jgx17a.js";import{Zg as u}from"./chunk-3kn57y8d.js";import"./chunk-nb86kh94.js";import"./chunk-9rxyq6f9.js";import"./chunk-5az84brc.js";import"./chunk-94qhpkfx.js";import"./chunk-c1g8n10t.js";import"./chunk-a2dz9nqh.js";import"./chunk-vhe92p7a.js";import{il as y,pk as m}from"./chunk-kc1xmcc9.js";import{Gl as v}from"./chunk-jjjs8p0t.js";import{cm as a}from"./chunk-xnhvt98g.js";import"./chunk-hpa7e9va.js";import"./chunk-y287zwkr.js";import"./chunk-qeg0jnxq.js";import"./chunk-9eg2ytjd.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-7myg8076.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-qkh8697x.js";import"./chunk-qg9bt0kx.js";import"./chunk-pfkm3j8g.js";import"./chunk-hmznf0ax.js";import"./chunk-qf1dqzra.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-9nn4jpb7.js";import"./chunk-sh76e256.js";import"./chunk-0z1cxvk1.js";import"./chunk-x3afqfww.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import{xH as s}from"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import"./chunk-f83wv08n.js";import{EOL as f}from"os";var M=b({command:"models [provider]",describe:"list all available models",builder:(r)=>{return r.positional("provider",{describe:"provider ID to filter models by",type:"string",array:!1}).option("verbose",{describe:"use more verbose model output (includes metadata like costs)",type:"boolean"}).option("refresh",{describe:"refresh the models cache from models.dev",type:"boolean"})},handler:async(r)=>{if(r.refresh)await v.refresh(!0),t.println(t.Style.TEXT_SUCCESS_BOLD+"Models cache refreshed"+t.Style.TEXT_NORMAL);await a.provide({directory:process.cwd(),async fn(){await u.runPromise(s.gen(function*(){let n=yield*(yield*y.Service).list(),l=(e,o)=>{let i=n[e],d=Object.entries(i.models).sort(([c],[p])=>c.localeCompare(p));for(let[c,p]of d)if(process.stdout.write(`${e}/${c}`),process.stdout.write(f),o)process.stdout.write(JSON.stringify(p,null,2)),process.stdout.write(f)};if(r.provider){let e=m.make(r.provider);if(!n[e]){yield*s.sync(()=>t.error(`Provider not found: ${r.provider}`));return}yield*s.sync(()=>l(e,r.verbose));return}let h=Object.keys(n).sort((e,o)=>{let i=e.startsWith("opencode"),d=o.startsWith("opencode");if(i&&!d)return-1;if(!i&&d)return 1;return e.localeCompare(o)});yield*s.sync(()=>{for(let e of h)l(m.make(e),r.verbose)})}))}})}});export{M as ModelsCommand};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{q as
|
|
2
|
+
import{it as E}from"./chunk-x3afqfww.js";function q(w){return!!w&&typeof w==="object"&&!Array.isArray(w)}function C(w){if(!q(w))return;let A=w.diagnostic,j=q(w.data)?w.data.diagnostic:void 0,p=q(A)?A:q(j)?j:void 0;if(!p){let h=w.cause;return h!==w?C(h):void 0}if(typeof p.errorID!=="string"||typeof p.errorName!=="string"||typeof p.logFile!=="string")return;return{errorID:p.errorID,errorName:p.errorName,logFile:p.logFile}}function J(w){return C(w)}function K(w,A){let j=C(w);if(j)return j;let p=A??(q(w)&&typeof w.name==="string"?w.name:w instanceof Error?w.name:"UnknownError"),h={errorID:crypto.randomUUID(),errorName:p,logFile:E()};if(q(w))try{Object.defineProperty(w,"diagnostic",{value:h,enumerable:!0,configurable:!0})}catch{}return h}function D(w){if(w instanceof Error)return w.stack??`${w.name}: ${w.message}`;if(typeof w==="object"&&w!==null){let A=z(w);if(A!=="unknown error")return A;try{return JSON.stringify(w,null,2)}catch{return"Unexpected error (unserializable)"}}return String(w)}function z(w){if(w instanceof Error){if(w.message)return w.message;if(w.name)return w.name}if(q(w)&&typeof w.message==="string"&&w.message)return w.message;if(q(w)&&q(w.data)&&typeof w.data.message==="string"&&w.data.message)return w.data.message;let A=String(w);if(A&&A!=="[object Object]")return A;let j=D(w);if(j&&j!=="{}")return j;return"unknown error"}function L(w){if(w instanceof Error)return{type:w.name,message:z(w),stack:w.stack,cause:w.cause===void 0?void 0:D(w.cause),formatted:B(w)};if(!q(w))return{type:typeof w,message:z(w),formatted:B(w)};let A=Object.getOwnPropertyNames(w).reduce((j,p)=>{let h=w[p];if(h===void 0)return j;if(typeof h==="string"||typeof h==="number"||typeof h==="boolean")return j[p]=h,j;return j[p]=h instanceof Error?h.message:String(h),j},{});if(typeof A.message!=="string")A.message=z(w);if(typeof A.type!=="string")A.type=w.constructor?.name;return A.formatted=B(w),A}function B(w){let A=D(w);if(A!=="{}")return A;return String(w)}
|
|
3
|
+
export{q as Vs,J as Ws,K as Xs,z as Ys,L as Zs};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Be as C}from"./chunk-y4e7e42x.js";import{wf as A}from"./chunk-3tmq81kq.js";import{LO as _}from"./chunk-f83wv08n.js";var S=_(C(),1),p=_(A(),1),N="AWS_ACCESS_KEY_ID",a="AWS_SECRET_ACCESS_KEY",i="AWS_SESSION_TOKEN",I="AWS_CREDENTIAL_EXPIRATION",d="AWS_CREDENTIAL_SCOPE",v="AWS_ACCOUNT_ID",T=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let o=process.env[N],r=process.env[a],n=process.env[i],s=process.env[I],t=process.env[d],E=process.env[v];if(o&&r){let c={accessKeyId:o,secretAccessKey:r,...n&&{sessionToken:n},...s&&{expiration:new Date(s)},...t&&{credentialScope:t},...E&&{accountId:E}};return S.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new p.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};export{N as le,a as me,i as ne,I as oe,d as pe,v as qe,T as re};
|