@qitqode/qitqode-android-arm64 0.2.0 → 0.2.2
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/bun +0 -0
- package/bundle/{chunk-cx7p4ezk.js → chunk-03mbn7nj.js} +2 -2
- package/bundle/{chunk-rrd0jf5m.js → chunk-07s30fpb.js} +1 -1
- package/bundle/{chunk-yacccwf6.js → chunk-087tnr8a.js} +1 -1
- package/bundle/chunk-0cdtq1r3.js +2 -0
- package/bundle/{chunk-kx2dp8ch.js → chunk-0f3ft9dh.js} +1 -1
- package/bundle/{chunk-rgxy4ngt.js → chunk-0gab4v98.js} +1 -1
- package/bundle/chunk-0ych0f5w.js +2 -0
- package/bundle/{chunk-w8d9srv7.js → chunk-0yjdatm6.js} +2 -2
- package/bundle/chunk-0ykeedfm.js +2 -0
- 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-2517cev8.js +2 -0
- package/bundle/chunk-28g1ndpx.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-fyz7fngd.js → chunk-2faah8w1.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-d9x9kqvy.js → chunk-3888asr7.js} +1 -1
- package/bundle/chunk-3c3xzz0g.js +3 -0
- package/bundle/{chunk-zfcfyagt.js → chunk-3h49k2ck.js} +1 -1
- package/bundle/{chunk-r0g5yyhf.js → chunk-3jms025t.js} +1 -1
- package/bundle/{chunk-52b1v7mn.js → chunk-3qfpw8f6.js} +1 -1
- package/bundle/{chunk-v3x5nrc4.js → chunk-3tmq81kq.js} +2 -2
- package/bundle/{chunk-neqy8j4n.js → chunk-42r7z6sq.js} +1 -1
- package/bundle/chunk-42wdfks8.js +2 -0
- package/bundle/{chunk-kp8nkm3m.js → chunk-44y6dffe.js} +1 -1
- package/bundle/{chunk-j5kyf7vt.js → chunk-45fyv9f1.js} +2 -2
- 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-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-qq2rcxv2.js → chunk-543pt030.js} +2 -2
- package/bundle/{chunk-rexdr63q.js → chunk-5az84brc.js} +2 -2
- package/bundle/{chunk-pnpre7ys.js → chunk-5js6a6gf.js} +1 -1
- 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-n0trgp1c.js → chunk-6dfjtzqb.js} +2 -2
- package/bundle/{chunk-dz3s882k.js → chunk-6f8qqbac.js} +189 -189
- 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-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-s2xdf6qh.js → chunk-7ab3yw9j.js} +2 -2
- package/bundle/{chunk-8tp4whyw.js → chunk-7my2231h.js} +1 -1
- 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-7q003wdd.js +4 -0
- package/bundle/chunk-7x88b2n2.js +2 -0
- package/bundle/{chunk-6r8pg6ma.js → chunk-7z884mz2.js} +1 -1
- package/bundle/{chunk-17pxm5d3.js → chunk-7zc04q43.js} +2 -2
- package/bundle/{chunk-v7q3d3n6.js → chunk-85xh72hk.js} +2 -2
- package/bundle/{chunk-jgz1a29w.js → chunk-86jsqc7d.js} +3 -3
- package/bundle/{chunk-zbqzm65q.js → chunk-86yk21g4.js} +1 -1
- package/bundle/{chunk-aj3y2e86.js → chunk-8apeexas.js} +1 -1
- package/bundle/{chunk-xjhezxft.js → chunk-8d6e4jg7.js} +3 -3
- 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-qyjt0qnq.js → chunk-8v6x712g.js} +2 -2
- package/bundle/chunk-8wdara3b.js +2 -0
- package/bundle/chunk-8xhzpnph.js +2 -0
- package/bundle/{chunk-z0tfsdb9.js → chunk-91z7azf7.js} +1 -1
- package/bundle/{chunk-kqhh2pm9.js → chunk-94qhpkfx.js} +1 -1
- package/bundle/{chunk-g8cfzzrs.js → chunk-96sqbyvf.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-nhwhkx62.js → chunk-9bm9z52r.js} +1 -1
- package/bundle/{chunk-tdmn21z0.js → chunk-9ea1n338.js} +2 -2
- 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-9pnpmtb2.js +2 -0
- package/bundle/{chunk-pxx2hz0g.js → chunk-9rxyq6f9.js} +2 -2
- package/bundle/chunk-9s785py4.js +28 -0
- package/bundle/{chunk-9fkmhmh6.js → chunk-9y15zjxa.js} +1 -1
- package/bundle/{chunk-mdzzcrf9.js → chunk-a2dz9nqh.js} +2 -2
- package/bundle/{chunk-rtdym35y.js → chunk-a550vst5.js} +149 -141
- package/bundle/{chunk-46ztrjw0.js → chunk-a5pbvp1f.js} +1 -1
- 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-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-c1bw1q75.js +2 -0
- package/bundle/{chunk-7fawtcnn.js → chunk-c1g8n10t.js} +1 -1
- package/bundle/chunk-c2k556rk.js +2 -0
- package/bundle/chunk-c47vp7ne.js +2 -0
- package/bundle/{chunk-w03fdrxe.js → chunk-cbf1y12x.js} +1 -1
- package/bundle/chunk-cbhgf058.js +2 -0
- 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-ws3p9cya.js → chunk-dbztxdea.js} +2 -2
- package/bundle/chunk-dp7cww4v.js +2 -0
- package/bundle/{chunk-yeq7b87a.js → chunk-drwqag0f.js} +1 -1
- package/bundle/chunk-dy31mchw.js +3 -0
- package/bundle/{chunk-5myxjxae.js → chunk-e374shb8.js} +2 -2
- package/bundle/{chunk-qdcf1ay5.js → chunk-e586sjb0.js} +2 -2
- package/bundle/{chunk-pr1ysgr3.js → chunk-e5rda9mx.js} +1 -1
- package/bundle/{chunk-qs4wef8c.js → chunk-e6wp96vm.js} +1 -1
- package/bundle/chunk-e999xtfj.js +2 -0
- package/bundle/{chunk-n7d9eemn.js → chunk-ehfxypks.js} +216 -218
- package/bundle/{chunk-gnt982jr.js → chunk-epa576pa.js} +3 -3
- package/bundle/{chunk-m0xsvzyd.js → chunk-et5dnymk.js} +2 -2
- package/bundle/chunk-eyr0vf92.js +2 -0
- package/bundle/{chunk-02xcb52z.js → chunk-ezfzb8qc.js} +2 -2
- package/bundle/{chunk-4sazy0nq.js → chunk-f83wv08n.js} +1 -1
- package/bundle/{chunk-3dr4469n.js → chunk-fbm6qczy.js} +1 -1
- package/bundle/{chunk-0g25z230.js → chunk-fd7fmvyw.js} +1 -1
- package/bundle/{chunk-0z33en1a.js → chunk-fgn83bs7.js} +1 -1
- package/bundle/{chunk-dshnn54c.js → chunk-fpm2vgz6.js} +1 -1
- package/bundle/{chunk-px8vtbmr.js → chunk-frsd6e1h.js} +2 -2
- package/bundle/{chunk-w5940jxm.js → chunk-fvy24yhq.js} +1 -1
- package/bundle/{chunk-dt899wbf.js → chunk-g3kd4957.js} +2 -2
- package/bundle/chunk-g7k6ecb2.js +11 -0
- 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-m6zxr0j8.js → chunk-h10wjk96.js} +2 -2
- package/bundle/{chunk-cxtxvt43.js → chunk-h2bmss2m.js} +1 -1
- package/bundle/chunk-h4f582d6.js +2 -0
- package/bundle/chunk-h57c6ne3.js +2 -0
- package/bundle/chunk-hk8vvc10.js +2 -0
- package/bundle/{chunk-x42w8ewc.js → chunk-hnrqhcgq.js} +1 -1
- 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-hy86wfad.js +2 -0
- package/bundle/{chunk-aw8af3ky.js → chunk-j17421hz.js} +1 -1
- 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-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-5kmfnkzv.js → chunk-kdcnder5.js} +1 -1
- package/bundle/chunk-kghwk0yh.js +2 -0
- package/bundle/chunk-kh8de8re.js +2 -0
- package/bundle/{chunk-r6ndvzd0.js → chunk-km1n4ttr.js} +1 -1
- package/bundle/{chunk-tzrbb0e8.js → chunk-kmwy6c9g.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-mce8aa9y.js +2 -0
- package/bundle/chunk-me1ja46g.js +2 -0
- package/bundle/chunk-mgadsp7r.js +2 -0
- package/bundle/{chunk-hb9mc5f9.js → chunk-mpe8zxc0.js} +1 -1
- package/bundle/{chunk-eb8nsk7e.js → chunk-mrn44msr.js} +2 -2
- package/bundle/{chunk-yykjvt7f.js → chunk-mswx4k75.js} +2 -2
- 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-s8mghr5a.js → chunk-ngvp6zc2.js} +2 -2
- package/bundle/{chunk-mcc5ynma.js → chunk-p4ewy9xh.js} +3 -3
- 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-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-q2q3dmg3.js +2 -0
- package/bundle/chunk-q46pzk9z.js +8 -0
- package/bundle/{chunk-4fa390yr.js → chunk-q4fn41ex.js} +2 -2
- package/bundle/{chunk-zrmx397j.js → chunk-q5abwn50.js} +1 -1
- package/bundle/{chunk-7vftsy04.js → chunk-qaz100ht.js} +1 -1
- package/bundle/{chunk-pnq1h5az.js → chunk-qhnpq5gb.js} +2 -2
- package/bundle/chunk-qvzvxsjw.js +2 -0
- package/bundle/{chunk-yzwgvjzd.js → chunk-r0s28gnb.js} +1 -1
- package/bundle/chunk-racrb1b3.js +2 -0
- 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-xhbb8b5g.js → chunk-rp8asmq7.js} +1 -1
- package/bundle/{chunk-z1rshv6g.js → chunk-rpfhgncs.js} +1 -1
- package/bundle/{chunk-gt6tgm42.js → chunk-s0c0t6qr.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-kb6v5hhm.js → chunk-s77qktcn.js} +2 -2
- package/bundle/{chunk-sxy4hyyy.js → chunk-sghy9s7m.js} +1 -1
- package/bundle/{chunk-k7n1csxv.js → chunk-sjreby6e.js} +1 -1
- package/bundle/chunk-skpkjnyy.js +2 -0
- package/bundle/{chunk-8r3410c2.js → chunk-skv9ww0s.js} +1 -1
- package/bundle/chunk-skxhg212.js +2 -0
- package/bundle/chunk-snt4kwab.js +2 -0
- package/bundle/chunk-sq47t8f1.js +2 -0
- package/bundle/chunk-sqhgnvvs.js +2 -0
- package/bundle/{chunk-ztnepaqc.js → chunk-ssdw9zre.js} +1 -1
- package/bundle/chunk-t114r59h.js +2 -0
- package/bundle/{chunk-909fp6pm.js → chunk-t1475j9f.js} +1 -1
- 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-fn8191ps.js → chunk-tczbhj0e.js} +1 -1
- package/bundle/{chunk-h1kg35mn.js → chunk-tge53d52.js} +1 -1
- package/bundle/{chunk-2pzvcpv4.js → chunk-tj3rem3q.js} +2 -2
- 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-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-ceefd2nj.js → chunk-vk88jj60.js} +1 -1
- 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-vrv67tt0.js +2 -0
- package/bundle/chunk-vtw0wwch.js +17 -0
- package/bundle/{chunk-z7vv0ngm.js → chunk-vyh300ac.js} +2 -2
- package/bundle/{chunk-qpzspr9z.js → chunk-w30b563s.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-wcx7hc2p.js +635 -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-wv8qx8sa.js +2 -0
- package/bundle/{chunk-acyj91wq.js → chunk-x2cavpa9.js} +1 -1
- package/bundle/{chunk-qb35hqm4.js → chunk-x4pdpka8.js} +1 -1
- package/bundle/{chunk-vm58fkrv.js → chunk-xd3xc1vv.js} +1 -1
- package/bundle/{chunk-v0yxkq99.js → chunk-xmjntwjc.js} +2 -2
- package/bundle/{chunk-64s7vfj7.js → chunk-xny5ecn0.js} +2 -2
- package/bundle/chunk-xxrtr6sd.js +2 -0
- package/bundle/chunk-y287zwkr.js +10 -0
- package/bundle/{chunk-ypk3t1eh.js → chunk-y2ptjam9.js} +1 -1
- package/bundle/{chunk-ezrskm25.js → chunk-y3dfk6n5.js} +1 -1
- package/bundle/{chunk-t01bhw5h.js → chunk-y4e7e42x.js} +3 -3
- package/bundle/{chunk-98effz12.js → chunk-y6h35v4a.js} +1 -1
- package/bundle/chunk-y72p79v2.js +2 -0
- package/bundle/chunk-y8eggnrr.js +2 -0
- package/bundle/chunk-y9q0f9qz.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-yhsnmpzv.js +2 -0
- package/bundle/{chunk-y1b2h15z.js → chunk-ypcc3cnb.js} +1 -1
- 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-871f8x99.js → chunk-ywdtp534.js} +2 -2
- package/bundle/{chunk-zfnbk5gy.js → chunk-ywkvq7zb.js} +1 -1
- package/bundle/{chunk-p3rp99na.js → chunk-yx1h0b5v.js} +1 -1
- package/bundle/{chunk-mzbr0m2v.js → chunk-yz0pwv2m.js} +1 -1
- package/bundle/{chunk-q81m4m9z.js → chunk-z2h1gxyx.js} +1 -1
- package/bundle/chunk-zcp0wx4j.js +5 -0
- 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/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-kmtfdky8.js +0 -4
- 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-sv1s1qxd.js +0 -619
- 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-twhavv1m.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,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-c1g8n10t.js";import"./chunk-f83wv08n.js";var q=class{constructor(b){this.module=b,this.DEBUG=!1,this.QTS_Throw=this.module.cwrap("QTS_Throw","number",["number","number"]),this.QTS_NewError=this.module.cwrap("QTS_NewError","number",["number"]),this.QTS_RuntimeSetMemoryLimit=this.module.cwrap("QTS_RuntimeSetMemoryLimit",null,["number","number"]),this.QTS_RuntimeComputeMemoryUsage=this.module.cwrap("QTS_RuntimeComputeMemoryUsage","number",["number","number"]),this.QTS_RuntimeDumpMemoryUsage=this.module.cwrap("QTS_RuntimeDumpMemoryUsage","number",["number"]),this.QTS_RecoverableLeakCheck=this.module.cwrap("QTS_RecoverableLeakCheck","number",[]),this.QTS_BuildIsSanitizeLeak=this.module.cwrap("QTS_BuildIsSanitizeLeak","number",[]),this.QTS_RuntimeSetMaxStackSize=this.module.cwrap("QTS_RuntimeSetMaxStackSize",null,["number","number"]),this.QTS_GetUndefined=this.module.cwrap("QTS_GetUndefined","number",[]),this.QTS_GetNull=this.module.cwrap("QTS_GetNull","number",[]),this.QTS_GetFalse=this.module.cwrap("QTS_GetFalse","number",[]),this.QTS_GetTrue=this.module.cwrap("QTS_GetTrue","number",[]),this.QTS_NewHostRef=this.module.cwrap("QTS_NewHostRef","number",["number","number"]),this.QTS_GetHostRefId=this.module.cwrap("QTS_GetHostRefId","number",["number"]),this.QTS_NewRuntime=this.module.cwrap("QTS_NewRuntime","number",[]),this.QTS_FreeRuntime=this.module.cwrap("QTS_FreeRuntime",null,["number"]),this.QTS_NewContext=this.module.cwrap("QTS_NewContext","number",["number","number"]),this.QTS_FreeContext=this.module.cwrap("QTS_FreeContext",null,["number"]),this.QTS_FreeValuePointer=this.module.cwrap("QTS_FreeValuePointer",null,["number","number"]),this.QTS_FreeValuePointerRuntime=this.module.cwrap("QTS_FreeValuePointerRuntime",null,["number","number"]),this.QTS_FreeVoidPointer=this.module.cwrap("QTS_FreeVoidPointer",null,["number","number"]),this.QTS_FreeCString=this.module.cwrap("QTS_FreeCString",null,["number","number"]),this.QTS_DupValuePointer=this.module.cwrap("QTS_DupValuePointer","number",["number","number"]),this.QTS_NewObject=this.module.cwrap("QTS_NewObject","number",["number"]),this.QTS_NewObjectProto=this.module.cwrap("QTS_NewObjectProto","number",["number","number"]),this.QTS_NewArray=this.module.cwrap("QTS_NewArray","number",["number"]),this.QTS_NewArrayBuffer=this.module.cwrap("QTS_NewArrayBuffer","number",["number","number","number"]),this.QTS_NewFloat64=this.module.cwrap("QTS_NewFloat64","number",["number","number"]),this.QTS_GetFloat64=this.module.cwrap("QTS_GetFloat64","number",["number","number"]),this.QTS_NewString=this.module.cwrap("QTS_NewString","number",["number","number"]),this.QTS_GetString=this.module.cwrap("QTS_GetString","number",["number","number"]),this.QTS_GetArrayBuffer=this.module.cwrap("QTS_GetArrayBuffer","number",["number","number"]),this.QTS_GetArrayBufferLength=this.module.cwrap("QTS_GetArrayBufferLength","number",["number","number"]),this.QTS_NewSymbol=this.module.cwrap("QTS_NewSymbol","number",["number","number","number"]),this.QTS_GetSymbolDescriptionOrKey=this.module.cwrap("QTS_GetSymbolDescriptionOrKey","number",["number","number"]),this.QTS_IsGlobalSymbol=this.module.cwrap("QTS_IsGlobalSymbol","number",["number","number"]),this.QTS_IsJobPending=this.module.cwrap("QTS_IsJobPending","number",["number"]),this.QTS_ExecutePendingJob=this.module.cwrap("QTS_ExecutePendingJob","number",["number","number","number"]),this.QTS_GetProp=this.module.cwrap("QTS_GetProp","number",["number","number","number"]),this.QTS_GetPropNumber=this.module.cwrap("QTS_GetPropNumber","number",["number","number","number"]),this.QTS_SetProp=this.module.cwrap("QTS_SetProp",null,["number","number","number","number"]),this.QTS_DefineProp=this.module.cwrap("QTS_DefineProp",null,["number","number","number","number","number","number","boolean","boolean","boolean"]),this.QTS_GetOwnPropertyNames=this.module.cwrap("QTS_GetOwnPropertyNames","number",["number","number","number","number","number"]),this.QTS_Call=this.module.cwrap("QTS_Call","number",["number","number","number","number","number"]),this.QTS_ResolveException=this.module.cwrap("QTS_ResolveException","number",["number","number"]),this.QTS_Dump=this.module.cwrap("QTS_Dump","number",["number","number"]),this.QTS_Eval=this.module.cwrap("QTS_Eval","number",["number","number","number","string","number","number"]),this.QTS_GetModuleNamespace=this.module.cwrap("QTS_GetModuleNamespace","number",["number","number"]),this.QTS_Typeof=this.module.cwrap("QTS_Typeof","number",["number","number"]),this.QTS_GetLength=this.module.cwrap("QTS_GetLength","number",["number","number","number"]),this.QTS_IsEqual=this.module.cwrap("QTS_IsEqual","number",["number","number","number","number"]),this.QTS_GetGlobalObject=this.module.cwrap("QTS_GetGlobalObject","number",["number"]),this.QTS_NewPromiseCapability=this.module.cwrap("QTS_NewPromiseCapability","number",["number","number"]),this.QTS_PromiseState=this.module.cwrap("QTS_PromiseState","number",["number","number"]),this.QTS_PromiseResult=this.module.cwrap("QTS_PromiseResult","number",["number","number"]),this.QTS_TestStringArg=this.module.cwrap("QTS_TestStringArg",null,["string"]),this.QTS_GetDebugLogEnabled=this.module.cwrap("QTS_GetDebugLogEnabled","number",["number"]),this.QTS_SetDebugLogEnabled=this.module.cwrap("QTS_SetDebugLogEnabled",null,["number","number"]),this.QTS_BuildIsDebug=this.module.cwrap("QTS_BuildIsDebug","number",[]),this.QTS_BuildIsAsyncify=this.module.cwrap("QTS_BuildIsAsyncify","number",[]),this.QTS_NewFunction=this.module.cwrap("QTS_NewFunction","number",["number","string","number","boolean","number"]),this.QTS_ArgvGetJSValueConstPointer=this.module.cwrap("QTS_ArgvGetJSValueConstPointer","number",["number","number"]),this.QTS_RuntimeEnableInterruptHandler=this.module.cwrap("QTS_RuntimeEnableInterruptHandler",null,["number"]),this.QTS_RuntimeDisableInterruptHandler=this.module.cwrap("QTS_RuntimeDisableInterruptHandler",null,["number"]),this.QTS_RuntimeEnableModuleLoader=this.module.cwrap("QTS_RuntimeEnableModuleLoader",null,["number","number"]),this.QTS_RuntimeDisableModuleLoader=this.module.cwrap("QTS_RuntimeDisableModuleLoader",null,["number"]),this.QTS_bjson_encode=this.module.cwrap("QTS_bjson_encode","number",["number","number"]),this.QTS_bjson_decode=this.module.cwrap("QTS_bjson_decode","number",["number","number"])}};export{q as QuickJSFFI};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-f83wv08n.js";function BX(G){if(G===void 0)return{BS_PRIVATE_NESTED_SOME_NONE:0};else if(G!==null&&G.BS_PRIVATE_NESTED_SOME_NONE!==void 0)return{BS_PRIVATE_NESTED_SOME_NONE:G.BS_PRIVATE_NESTED_SOME_NONE+1|0};else return G}function qG(G){if(G===null||G.BS_PRIVATE_NESTED_SOME_NONE===void 0)return G;let Q=G.BS_PRIVATE_NESTED_SOME_NONE;if(Q===0)return;else return{BS_PRIVATE_NESTED_SOME_NONE:Q-1|0}}function _Y(G){if(Array.isArray(G))return{TAG:"Array",_0:G};else return{TAG:"Single",_0:G}}var IY={classify:_Y},MQ={};function vY(G){let Q=MQ[G];if(Q!==void 0){let X=Q+1|0;return MQ[G]=X,G+("/"+X)}return MQ[G]=1,G}var DX={},gQ=[];function OY(G){return G.slice(0,1).toUpperCase()+G.slice(1)}var JQ=(G)=>({...G});function YG(G){let Q=0;while(!0){let X=Q,Y=G[X];if(Y===void 0)return'"'+G+'"';switch(Y){case'"':case`
|
|
3
3
|
`:return JSON.stringify(G);default:Q=X+1|0;continue}}}function WX(G){if(G==="")return[];else return JSON.parse(G.split('"]["').join('","'))}var fQ="sury",HQ=Symbol(fQ),qQ=Symbol(fQ+":item"),jY=vY("Sury.Error"),b="const";function xY(G){switch(G.type){case"undefined":return!0;case"union":return"undefined"in G.has;default:return!1}}function wX(G,Q){return(G&Q)!==0}var y={unknown:1,string:2,number:4,boolean:8,undefined:16,null:32,object:64,array:128,union:256,ref:512,bigint:1024,nan:2048,function:4096,instance:8192,never:16384,symbol:32768};function eG(G){let Q=y[typeof G];if(Q&16)return"undefined";if(!(Q&64))if(Q&2)return'"'+G+'"';else if(Q&1024)return G+"n";else return G.toString();if(G===null)return"null";if(Array.isArray(G)){let Z="[";for(let J=0,H=G.length;J<H;++J){if(J!==0)Z=Z+", ";Z=Z+eG(G[J])}return Z+"]"}if(G.constructor!==Object)return Object.prototype.toString.call(G);let X=Object.keys(G),Y="{ ";for(let Z=0,J=X.length;Z<J;++Z){let H=X[Z],q=G[H];Y=Y+H+": "+eG(q)+"; "}return Y+"}"}function j(G){let{type:Q,const:X,name:Y}=G;if(Y!==void 0)return Y;if(X!==void 0)return eG(X);let{format:Z,anyOf:J}=G;if(J!==void 0)return J.map(j).join(" | ");if(Z!==void 0)return Z;switch(Q){case"nan":return"NaN";case"object":let{additionalItems:H,properties:q}=G,U=Object.keys(q);if(U.length===0)if(typeof H==="object")return"{ [key: string]: "+j(H)+"; }";else return"{}";else return"{ "+U.map((z)=>z+": "+j(q[z])+";").join(" ")+" }";default:if(G.b)return Q;switch(Q){case"instance":return G.class.name;case"array":let{additionalItems:z,items:K}=G;if(typeof z!=="object")return"["+K.map((B)=>j(B.schema)).join(", ")+"]";let D=j(z);return(z.type==="union"?"("+D+")":D)+"[]";default:return Q}}}class BG extends Error{constructor(G,Q,X){super();this.flag=Q,this.code=G,this.path=X}}var TG=Object.defineProperty,dG=BG.prototype;TG(dG,"message",{get(){return LX(this)}});TG(dG,"reason",{get(){return UQ(this)}});TG(dG,"name",{value:"SuryError"});TG(dG,"s",{value:HQ});TG(dG,"_1",{get(){return this}});TG(dG,"RE_EXN_ID",{value:jY});var F=function(G){this.type=G},bQ=Object.create(null);TG(bQ,"with",{get(){return(G,...Q)=>G(this,...Q)}});F.prototype=bQ;function zQ(G){if(G&&G.s===HQ)return G;throw G}function UQ(G,Q){let X=Q!==void 0?Q:0,Y=G.code;if(typeof Y!=="object")return"Encountered unexpected async transform or refine. Use parseAsyncOrThrow operation instead";switch(Y.TAG){case"OperationFailed":return Y._0;case"InvalidOperation":return Y.description;case"InvalidType":let Z=Y.unionErrors,J="Expected "+j(Y.expected)+", received "+eG(Y.received);if(Z!==void 0){let H=`
|
|
4
4
|
`+" ".repeat(X<<1),q={};for(let U=0,z=Z.length;U<z;++U){let K=Z[U],D=UQ(K,X+1),B=K.path,w="- "+(B===""?"":"At "+B+": ")+D;if(!q[w])q[w]=1,J=J+H+w}}return J;case"UnsupportedTransformation":return"Unsupported transformation from "+j(Y.from)+" to "+j(Y.to);case"ExcessField":return'Unrecognized key "'+Y._0+'"';case"InvalidJsonSchema":return j(Y._0)+" is not valid JSON"}}function LX(G){let Q=G.flag,X="Failed ";if(Q&2)X=X+"async ";if(X=X+(Q&1?Q&4?"asserting":"parsing":"converting"),Q&8)X=X+" to JSON"+(Q&16?" string":"");let Y=G.path,Z=Y===""?"":" at "+Y;return X+Z+": "+UQ(G,void 0)}var f={m:LX,d:void 0,a:"strip",n:!1},hG="as",VY={get:(G,Q)=>{let X=G[hG];if(X===void 0)return G[Q];if(Q===hG)return G[Q];let Y=qG(X),Z="Schema S."+Y+" is not enabled. To start using it, add S.enable"+OY(Y)+"() at the project root.";throw Error("[Sury] "+Z)}};function PX(G){let Q=new F("never");return Q[hG]=G,new Proxy(Q,VY)}var ZG=new F("unknown"),KQ=new F("boolean"),RX=new F("symbol"),c=new F("string"),yG=new F("number");yG.format="int32";var AG=new F("number"),EX=new F("bigint"),s=new F("undefined");s.const=void 0;var h=(G)=>{let Q=new F(G.type);for(let X in G)if(X>"a"||X==="$ref"||X==="$defs")Q[X]=G[X];return Q};function n(G,Q){let X=h(G),Y=X;while(Y.to){let Z=h(Y.to);Y.to=Z,Y=Z}return Q(Y),X}var yY=(G)=>{for(let Q in G)if(Number(Q[0]))delete G[Q]},SY=BG;function $Y(G,Q,X){return new BG(G,Q,X)}var NX={value:SY,constructor:$Y};function _(G,Q){let X=G.g.e,Y=X.length;return X[Y]=Q,"e["+Y+"]"}function BQ(G,Q){let X=y[Q.type],Y=Q.const;if(X&16)return"void 0";else if(X&2)return YG(Y);else if(X&1024)return Y+"n";else if(X&45056)return _(G,Q.const);else return Y}function UG(G,Q){let X='"'+Q+'"',Y=G.g[X];if(Y!==void 0)return Y;let Z=YG(Q);return G.g[X]=Z,Z}function gY(G){let Q=this;Q.l=Q.l+","+G}function JG(G){let Q=this;Q.l=G,Q.a=gY}function TX(G,Q){let X={c:"",l:"",a:JG,v:-1,o:G,f:"",e:[],d:Q};return X.g=X,X}function DG(G){delete G.a;let Q=G.l;if(Q==="")return G.f+G.c;else return G.f+"let "+Q+";"+G.c}function u(G){let Q=G.v+1;return G.v=Q,"v"+Q}function EG(G){return this.i}function i(G){let Q=this,X=u(G.g),Y=Q.i;if(Y==="")Q.b.a(X);else if(G.a!==void 0)G.a(X+"="+Y);else G.c=G.c+(X+"="+Y+";"),G.g.a(X);return Q.v=EG,Q.i=X,X}function GQ(G,Q){let X=u(G.g);return G.a(X),{b:G,v:EG,i:X,f:0,type:Q.type}}function $(G,Q,X){return{b:G,v:i,i:Q,f:0,type:X.type}}function RG(G,Q){return{b:G,v:i,i:BQ(G,Q),f:0,type:Q.type,const:Q.const}}function lG(G,Q){return{b:G,v:i,i:Q,f:2,type:"unknown"}}function fY(G,Q){return G+":"+Q+","}function bY(G,Q){return Q+","}function $G(G,Q){return{b:G,v:i,i:"",f:0,type:Q?"array":"object",properties:{},additionalItems:"strict",j:Q?bY:fY,c:0,r:""}}function _G(G,Q,X){let Y=UG(G.b,Q);if(G.properties[Q]=X,X.f&2)G.r=G.r+X.i+",",G.i=G.i+G.j(Y,"a["+G.c+++"]");else G.i=G.i+G.j(Y,X.i)}function dY(G,Q){let X=Object.keys(Q.properties);for(let Y=0,Z=X.length;Y<Z;++Y){let J=X[Y];_G(G,J,Q.properties[J])}}function gG(G,Q){if(G.i=Q?"["+G.i+"]":"{"+G.i+"}",G.c)G.f=G.f|2,G.i="Promise.all(["+G.r+"]).then(a=>("+G.i+"))";return G.additionalItems="strict",G}function dQ(G,Q,X,Y){return Q.v(G)+"["+X+"]="+Y.i}function JX(G,Q,X){if(Q===X)return"";let Y=Q.v(G),Z=Q.f&2,J=X.f&2;if(Z){if(!J)return Y+"=Promise.resolve("+X.i+")"}else if(J)return Q.f=Q.f|2,Y+"="+X.i;return Y+"="+X.i}function fG(G,Q,X){let Y=Q.properties,Z=Y[X];if(Z!==void 0)return Z;let J=Q.additionalItems,H;if(J==="strip"||J==="strict"){if(J==="strip")throw Error("[Sury] The schema doesn't have additional items");throw Error("[Sury] The schema doesn't have additional items")}else H=J;let q={b:G,v:i,i:Q.v(G)+("["+YG(X)+"]"),f:0,type:H.type};return Y[X]=q,q}function lY(G,Q,X){return Q.v(G)+"="+X}function kX(G,Q){return{b:Q.b,v:i,i:G+"("+Q.i+")",f:0,type:"unknown"}}function OG(G,Q,X){throw new BG(Q,G.g.o,X)}function CQ(G,Q,X){if(Q.f&2)return lG(Q.b,Q.i+".then("+_(G,X)+")");else return kX(_(G,X),Q)}function QG(G,Q,X,Y){return _(G,(Z)=>OG(G,X(Z),Q))+"("+Y+")"}function S(G,Q,X){return _(G,()=>OG(G,{TAG:"OperationFailed",_0:Q},X))+"()"}function FQ(G,Q,X){return{schema:Q,fail:(Y,Z)=>{return OG(G,{TAG:"OperationFailed",_0:Y},X+(Z!==void 0?Z:""))}}}function tG(G,Q,X){return OG(G,{TAG:"InvalidOperation",description:X},Q)}function sG(G,Q,X,Y,Z,J){if(X===""&&Y===void 0)return J(G,Q,X);try{let H=(E,N)=>{E.c=N+".path="+YG(X)+"+"+(Y!==void 0?`'["'+`+Y+`+'"]'+`:"")+N+".path"},q=(E)=>J(E,Q,""),U=G.c;G.c="";let z=u(G.g),K=H(G,z),D="if("+(z+"&&"+z+".s===s")+"){"+G.c;G.c="";let B={c:"",l:"",a:JG,f:"",g:G.g},W=q(B);G.c=G.c+DG(B);let w=W.i===Q.i&&G.c==="";if(Z!==void 0)Z(G,W);if(w)return W;let L=W.f&2,R=Q===W?Q:Z!==void 0?W:{b:G,v:i,i:"",f:L?2:0,type:"unknown"},P=K!==void 0?(E)=>D+(E===1?"return "+K.i:JX(G,R,K))+("}else{throw "+z+"}"):(E)=>D+"}throw "+z;return G.c=U+("try{"+G.c+(L?lY(G,R,W.i+".catch("+z+"=>{"+P(1)+"})"):JX(G,R,W))+"}catch("+z+"){"+P(0)+"}"),R}catch(H){let q=zQ(H);throw new BG(q.code,q.flag,X+"[]"+q.path)}}function SG(G,Q,X,Y){let Z=Y?"!==":"===",J=Y?"||":"&&",H=Y?"!":"",q=X.type,U=y[q];if(U&2048)return H+("Number.isNaN("+Q+")");if(b in X)return Q+Z+BQ(G,X);if(U&4)return"typeof "+Q+Z+'"'+q+'"';if(U&64)return"typeof "+Q+Z+'"'+q+'"'+J+H+Q;if(U&128)return H+"Array.isArray("+Q+")";if(!(U&8192))return"typeof "+Q+Z+'"'+q+'"';let z=Q+" instanceof "+_(G,X.class);if(Y)return"!("+z+")";else return z}function oG(G,Q,X,Y){let Z=Y?"!==":"===",J=Y?"||":"&&",H=Y?"":"!",q=Y?">":"<",U=Y?"<":">",z=X.type,K,D=0;if(X.const!==void 0)return"";let W=X.format;if(W!==void 0)switch(W){case"int32":return J+Q+q+"2147483647"+J+Q+U+"-2147483648"+J+Q+"%1"+Z+"0";case"port":case"json":D=2;break}else D=2;if(D===2)switch(z){case"number":if(f.n)return"";else return J+H+"Number.isNaN("+Q+")";case"array":case"object":K=z;break;default:return""}let{additionalItems:w,items:L}=X,R=L.length,P=K==="array"?w==="strip"||w==="strict"?w==="strip"?J+Q+".length"+U+R:J+Q+".length"+Z+R:"":w==="strip"?"":J+H+"Array.isArray("+Q+")";for(let E=0,N=L.length;E<N;++E){let M=L[E],C=M.location,T=M.schema,k;if(b in T||X.unnest){let A=UG(G,C);k=SG(G,Q+("["+A+"]"),T,Y)}else if(T.items){let A=UG(G,C),I=Q+("["+A+"]");k=SG(G,I,T,Y)+oG(G,I,T,Y)}else k="";if(k!=="")P=P+J+k}return P}function MX(G,Q,X){let Y={b:G,v:Q.v,i:Q.i,f:Q.f,type:X.type},Z=(J,H)=>{if(b in H)J.const=H.const;let q=H.items;if(q===void 0)return;let U={};q.forEach((z)=>{let K=z.schema,D=b in K;if(!(D||K.items))return;let B;if(D)B=BQ(G,K);else{let w=UG(G,z.location);B=J.v(G)+("["+w+"]")}let W={b:J.b,v:i,i:B,f:0,type:K.type};Z(W,K),U[z.location]=W}),J.properties=U,J.additionalItems=ZG};return Z(Y,X),Y}function _Q(G,Q,X,Y){if(Q.noValidation||y[Q.type]&17153)return"";let Z=X.v(G);return"if("+SG(G,Z,Q,!0)+oG(G,Z,Q,!0)+"){"+QG(G,Y,(J)=>({TAG:"InvalidType",expected:Q,received:J}),Z)+"}"}function DQ(G,Q,X,Y){return OG(G,{TAG:"UnsupportedTransformation",from:Q,to:X},Y)}function uY(G){return G}function CX(G,Q){G[Q==="union"||Q==="ref"?"unknown":Q]=!0}var LG="JSON",GG=PX("jsonString");function IQ(G,Q){return $(G,'""+'+Q.i,c)}function d(G,Q,X,Y){let Z={c:"",l:"",a:JG,f:"",g:G.g};if(Q.$defs)Z.g.d=Q.$defs;let J=X,H=b in J,q=b in Q,U=J.type===Q.type,z=y[Q.type],K=y[J.type],D=!1;if(!(z&257||Q.format==="json")){if(Q.name===LG&&!(K&1)){if(!(K&14))if(K&1024)J=IQ(Z,J);else D=!0}else if(q)if(H){if(J.const!==Q.const)J=RG(Z,Q)}else if(K&2&&z&3132){let w=J.v(Z);Z.f=Q.noValidation?"":J.i+'==="'+Q.const+'"||'+QG(Z,Y,(L)=>({TAG:"InvalidType",expected:Q,received:L}),w)+";",J=RG(Z,Q)}else if(Q.noValidation)J=RG(Z,Q);else Z.f=_Q(G,Q,J,Y),J.type=Q.type,J.const=Q.const;else if(H&&!q){if(!U)if(z&2&&K&3132){let w=""+J.const;J={b:Z,v:i,i:'"'+w+'"',f:0,type:"string",const:w}}else D=!0}else if(K&1){let w=Q.$ref;if(w!==void 0){let L=Z.g.d,R=w.slice(8),P=L[R],E=Q.noValidation?(Z.g.o|1)^1:Z.g.o,N=P[E],M;if(N!==void 0){let C=qG(N);M=C===0?_(Z,P)+("["+E+"]"):_(Z,C)}else{P[E]=0;let C=AX(P,E,Z.g.d);P[E]=C,M=_(Z,C)}J=sG(Z,J,Y,void 0,void 0,(C,T,k)=>{let A=kX(M,T);if(P.isAsync===void 0){let I=JQ(L);I[R]=ZG,pY(P,I)}if(P.isAsync)A.f=A.f|2;return A}),J.v(Z)}else{if(Z.g.o&1)Z.f=_Q(G,Q,J,Y);let L=MX(Z,J,Q);if(J.type=L.type,J.i=L.i,J.v=L.v,J.additionalItems=L.additionalItems,J.properties=L.properties,b in L)J.const=L.const}}else if(z&2&&K&1036)J=IQ(Z,J);else if(!U)if(K&2){let w=J.v(Z);if(z&8){let L=GQ(Z,Q);Z.c=Z.c+("("+L.i+"="+w+'==="true")||'+w+'==="false"||'+QG(Z,Y,(R)=>({TAG:"InvalidType",expected:Q,received:R}),w)+";"),J=L}else if(z&4){let L=$(Z,"+"+w,Q),R=L.v(Z),P=Q.format;Z.c=Z.c+(P!==void 0?"("+oG(Z,R,Q,!0).slice(2)+")":"Number.isNaN("+R+")")+("&&"+QG(Z,Y,(E)=>({TAG:"InvalidType",expected:Q,received:E}),w)+";"),J=L}else if(z&1024){let L=GQ(Z,Q);Z.c=Z.c+("try{"+L.i+"=BigInt("+w+")}catch(_){"+QG(Z,Y,(R)=>({TAG:"InvalidType",expected:Q,received:R}),w)+"}"),J=L}else D=!0}else if(K&4&&z&1024)J=$(Z,"BigInt("+J.i+")",Q);else D=!0}if(D)DQ(Z,J,Q,Y);let B=Q.compiler;if(B!==void 0)J=B(Z,J,Q,Y);if(J.t!==!0){let w=Q.refiner;if(w!==void 0)Z.c=Z.c+w(Z,J.v(Z),Q,Y)}let W=Q.to;if(W!==void 0){let w=Q.parser;if(w!==void 0)J=w(Z,J,Q,Y);if(J.t!==!0)J=d(Z,W,J,Y)}return G.c=G.c+DG(Z),J}function KG(G){while(!0){let Q=G,X=Q.to;if(X===void 0)return Q;G=X;continue}}function PG(G,Q,X,Y){let Z=y[G.type];if(Z&48129||Z&16&&Q.type!=="object")throw new BG({TAG:"InvalidJsonSchema",_0:Q},Y,X);if(Z&256){G.anyOf.forEach((q)=>PG(q,Q,X,Y));return}if(!(Z&192))return;let J=G.additionalItems;if(J==="strip"||J==="strict");else PG(J,Q,X,Y);let H=G.properties;if(H!==void 0){let q=Object.keys(H);for(let U=0,z=q.length;U<z;++U){let K=q[U];PG(H[K],Q,X,Y)}return}G.items.forEach((q)=>PG(q.schema,G,X+("["+YG(q.location)+"]"),Y))}function XG(G){let Q,X=G;while(X){let Y=h(X),Z=Y.to,J=Q;if(J!==void 0)Y.to=J;else delete Y.to;let{parser:H,serializer:q}=Y;if(q!==void 0)Y.parser=q;else delete Y.parser;if(H!==void 0)Y.serializer=H;else delete Y.serializer;let{fromDefault:U,default:z}=Y;if(z!==void 0)Y.fromDefault=z;else delete Y.fromDefault;if(U!==void 0)Y.default=U;else delete Y.default;let K=Y.items;if(K!==void 0){let W={},w=Array(K.length);for(let R=0,P=K.length;R<P;++R){let E=K[R],N=XG(E.schema),M=E.location,C={schema:N,location:M};if(E.r)C.r=E.r;W[E.location]=N,w[R]=C}if(Y.items=w,Y.properties!==void 0)Y.properties=W}if(typeof Y.additionalItems==="object")Y.additionalItems=XG(Y.additionalItems);let D=Y.anyOf;if(D!==void 0){let W={},w=[];for(let L=0,R=D.length;L<R;++L){let P=D[L],E=XG(P);w.push(E),CX(W,E.type)}Y.has=W,Y.anyOf=w}let B=Y.$defs;if(B!==void 0){let W={};for(let w=0,L=Object.keys(B).length;w<L;++w){let R=Object.keys(B)[w];W[R]=XG(B[R])}Y.$defs=W}Q=Y,X=Z}return Q}function AX(G,Q,X){let Y=TX(Q,X);if(Q&8){let B=XG(G);PG(B,B,"",Q)}let Z={b:Y,v:EG,i:"i",f:0,type:"unknown"},J=Q&4?n(G,(B)=>{let W=new F(s.type);W.const=s.const,W.noValidation=!0,B.to=W}):Q&16?n(G,(B)=>{B.to=GG}):G,H=d(Y,J,Z,""),q=DG(Y),U=wX(H.f,2);if(J.isAsync=U,q===""&&H===Z&&!(Q&2))return uY;let z=H.i;if(Q&2&&!U&&!X)z="Promise.resolve("+z+")";let K="i=>{"+q+"return "+z+"}",D=Y.g.e;return Function("e","s","return "+K)(D,HQ)}function pY(G,Q){try{let X=TX(2,Q),Z=d(X,G,{b:X,v:EG,i:"i",f:0,type:"unknown"},""),J=wX(Z.f,2);return G.isAsync=J,J}catch(X){return zQ(X),!1}}function o(G,Q){if(Q in G)return G[Q];let X=AX(Q&32?XG(G):G,Q,0);return G[Q]=X,X}TG(bQ,"~standard",{get:function(){let G=this;return{version:1,vendor:fQ,validate:(Q)=>{try{return{value:o(G,1)(Q)}}catch(X){let Y=zQ(X);return{issues:[{message:UQ(Y,void 0),path:Y.path===""?void 0:WX(Y.path)}]}}}}}});function FX(G,Q,X,Y,Z){let J=Z!==void 0?Z:!0,H=0,q=0;switch(X){case"Output":case"Input":q=1;break;case"Assert":H=H|4;break;case"Json":H=H|8;break;case"JsonString":H=H|24;break}if(q===1&&X===Q)throw Error("[Sury] Can't compile operation to converting value to self");if(Y!=="Sync")H=H|2;if(J)H=H|1;if(Q==="Output")H=H|32;let U=o(G,H);if(Q!=="JsonString")return U;let z=H;return(K)=>{try{return U(JSON.parse(K))}catch(D){throw new BG({TAG:"OperationFailed",_0:D.message},z,"")}}}function WQ(G,Q){return o(Q,1)(G)}function _X(G,Q){let X;try{X=JSON.parse(G)}catch(Y){throw new BG({TAG:"OperationFailed",_0:Y.message},1,"")}return WQ(X,Q)}function IX(G,Q){return o(Q,3)(G)}function vX(G,Q){return o(Q,0)(G)}function OX(G,Q){return o(Q,8)(G)}function jX(G,Q){return o(Q,24)(G)}function xX(G,Q){return o(Q,32)(G)}function lQ(G,Q){return o(Q,40)(G)}function VX(G,Q,X){let Y=X!==void 0?X:0;return JSON.stringify(lQ(G,Q),null,Y)}function wG(G,Q){return o(Q,5)(G)}var wQ=new F("null");wQ.const=null;function IG(G){if(G===null)return wQ;let Q=typeof G,X;if(Q==="object"){let Y=new F("instance");Y.class=G.constructor,X=Y}else X=Q==="undefined"?s:Q==="number"?Number.isNaN(G)?new F("nan"):new F(Q):new F(Q);return X.const=G,X}function vQ(G){if(G&&G.s===HQ)return{success:!1,error:G};throw G}function yX(G){try{return{success:!0,value:G()}}catch(Q){return vQ(Q)}}function SX(G){try{return G().then((Q)=>({success:!0,value:Q}),vQ)}catch(Q){return Promise.resolve(vQ(Q))}}function uQ(G,Q,X){let Y=h(G);return Y[Q]=X,Y}var pQ="#/$defs/";function $X(G,Q){let X=pQ+G,Y=new F("ref");Y.$ref=X,Y.name=G;let Z=f.d;if(!Z)f.d={};let J=Q(Y);if(J.name)Y.name=J.name;else J.name=G;if(f.d[G]=J,Z)return Y;let H=new F("ref");return H.name=J.name,H.$ref=X,H.$defs=f.d,f.d=void 0,H}function gX(G,Q){let X=h(G);return X.noValidation=Q,X}function fX(G,Q){if(G!==void 0)return(X,Y,Z,J)=>G(X,Y,Z,J)+Q(X,Y,Z,J);else return Q}function rQ(G,Q){return n(G,(X)=>{X.refiner=fX(X.refiner,Q)})}function rG(G,Q){return rQ(G,(X,Y,Z,J)=>_(X,Q(FQ(X,Z,J)))+"("+Y+");")}function g(G,Q,X,Y){let Z=G[Q];return rQ(uQ(G,Q,Z!==void 0?Z.concat(X):[X]),Y)}function LQ(G,Q){return n(G,(X)=>{X.parser=(Z,J,H,q)=>{let U=Q(FQ(Z,H,q)),z=U.p;if(z!==void 0)if(U.a!==void 0)return tG(Z,q,"The S.transform doesn't allow parser and asyncParser at the same time. Remove parser in favor of asyncParser");else return CQ(Z,J,z);let K=U.a;if(K!==void 0){if(!(Z.g.o&2))OG(Z,"UnexpectedAsync","");let D=CQ(Z,J,K);return D.f=D.f|2,D}else if(U.s!==void 0)return tG(Z,q,"The S.transform parser is missing");else return J};let Y=new F("unknown");X.to=(Y.serializer=(Z,J,H,q)=>{let U=Q(FQ(Z,H,q)),z=U.s;if(z!==void 0)return CQ(Z,J,z);else if(U.a!==void 0||U.p!==void 0)return tG(Z,q,"The S.transform serializer is missing");else return J},Y),delete X.isAsync})}var PQ=new F("null");PQ.const=null;PQ.to=s;function OQ(G,Q,X,Y){return G.c=G.c+QG(G,Y,(Z)=>({TAG:"InvalidType",expected:X,received:Z}),Q.i)+";",Q}var RQ=new F("never");RQ.compiler=OQ;var FG="BS_PRIVATE_NESTED_SOME_NONE";function AQ(G,Q,X,Y,Z,J){try{let H=G.g.o;if(Z)G.g.o=H|1;let q={c:"",l:"",a:JG,f:"",g:G.g},U=Z?JQ(X):MX(q,X,Q),z=d(q,Q,U,J);if(z!==U){if(z.b=q,z.f&2)Y.f=Y.f|2;q.c=q.c+(Y.v(G)+"="+z.i)}return G.g.o=H,DG(q)}catch(H){return"throw "+_(G,zQ(H))}}function HX(G,Q){if(G&8320&&"object"in Q)return!0;else if(G&2048)return"number"in Q;else return!1}function rY(G,Q){return Q.every((X,Y)=>{let Z=G[Y];if(Z!==void 0&&!(y[X.type]&9152)&&X.type===Z.type)return X.const===Z.const;else return!1})}function bX(G,Q,X,Y){let Z=X.anyOf,J=Q.anyOf;if(J!==void 0)if(rY(Z,J))return Q;else return DQ(G,Q,X,Y);let H=(T)=>_(G,function(){let k=arguments;return OG(G,{TAG:"InvalidType",expected:X,received:k[0],unionErrors:k.length>1?Array.from(k).slice(1):void 0},Y)})+"("+Q.v(G)+T+")",q=G.g.o&1,U=Q.i,z=-1,K=Z.length-1|0,D={},B=[];for(let T=0;T<=K;++T){let k=X.to,A=k!==void 0&&!X.parser&&k.type!=="union"?n(Z[T],(p)=>{let V=X.refiner;if(V!==void 0)p.refiner=fX(p.refiner,V);p.to=k}):Z[T],I=A.type,x=y[I];if(!(x&16&&("fromDefault"in X)))if(x&17153||!(y[Q.type]&1)&&Q.type!==I)z=T,D={},B=[];else{let p=x&8192?A.class.name:I,V=D[p];if(V!==void 0){if(x&64&&FG in A.properties)V.unshift(A);else if(!(x&2096))V.push(A)}else{if(HX(x,D))B.unshift(p);else B.push(p);D[p]=[A]}}}let W=z,w=D,L=B,R="",P="",E="",N=!1;if(W!==-1){for(let T=0;T<=W;++T)if(!N){let k=Z[T],A=AQ(G,k,Q,Q,!0,Y);if(A){let I="e"+T;R=R+("try{"+A+"}catch("+I+"){"),P="}"+P,E=E+","+I}else N=!0}}if(!N){let T=!1,k="";for(let A=0,I=L.length;A<I;++A){let x=w[L[A]],p=x.length>1,V=x[0],WG=0,kG;if(p){let l=Q.v(G),O="",uG="",HG=!1,a={contents:""},mG="",jG={},MG=0,TQ=x.length-1|0;while(MG<=TQ){let r=x[MG],t=(b in r?SG(G,l,r,!1):"")+oG(G,l,r,!1).slice(2),xG=AQ(G,r,Q,Q,!1,Y);if(t)if(xG){let e=jG[t];if(e!==void 0)if(typeof e==="string")jG[t]=[e,xG];else e.push(xG);else jG[t]=xG}else a.contents=a.contents?a.contents+"||"+t:t;if(!t||MG===TQ){let e=Object.keys(jG);for(let iG=0,CY=e.length;iG<CY;++iG){let YX=e[iG];O=O+(HG?"else if":"if")+("("+YX+"){");let pG=jG[YX];if(typeof pG==="string")O=O+pG+"}";else{let kQ="";for(let aG=0,AY=pG.length;aG<AY;++aG){let FY=pG[aG],ZX="e"+aG;O=O+("try{"+FY+"}catch("+ZX+"){"),kQ=kQ+","+ZX}O=O+H(kQ)+"}".repeat(pG.length)+"}"}HG=!0}jG={}}if(!t)if(xG){if(a.contents)O=O+(HG?"else if":"if")+("(!("+a.contents+")){"),uG="}"+uG,a.contents="",HG=!1;let e="e"+MG;O=O+((HG?"else{":"")+"try{"+xG+"}catch("+e+"){"),uG=(HG?"}":"")+"}"+uG,mG=mG+","+e,HG=!1}else a.contents="",MG=TQ;MG=MG+1}if(WG=(r)=>SG(G,r,{type:V.type,parser:0},!1),a.contents)if(O){if(q)O=O+(HG?"else if":"if")+("(!("+a.contents+")){"+H(mG)+"}")}else{let r=WG;WG=(t)=>r(t)+("&&("+a.contents+")")}else if(q&&O){let r=H(mG);O=O+(HG?"else{"+r+"}":r)}kG=O+uG}else WG=(l)=>SG(G,l,V,!1)+oG(G,l,V,!1),kG=AQ(G,V,Q,Q,!1,Y);if(kG||HX(y[V.type],w))R=R+(T?"else if":"if")+("("+WG(Q.v(G))+"){"+kG+"}"),T=!0;else if(q){let l=WG(Q.v(G));k=k?k+"||"+l:l}}if(q||W===K){let A=H(E),I;if(k)I=(T?"else if":"if")+("(!("+k+")){"+A+"}");else I=T?"else{"+A+"}":A;R=R+I}}G.c=G.c+R+P;let M=Q.f&2?lG(G,"Promise.resolve("+Q.i+")"):Q.v===EG?G.c===""&&Q.b.c===""&&(Q.b.l===Q.i+"="+U||U==="i")?(Q.b.l="",Q.b.a=JG,Q.v=i,Q.i=U,Q):JQ(Q):Q;M.anyOf=X.anyOf;let C=X.to;return M.type=C!==void 0&&C.type!=="union"?(M.t=!0,KG(C).type):"union",M}function zG(G){let Q=G.length;if(Q===1)return G[0];if(Q!==0){let X={},Y=new Set;for(let J=0,H=G.length;J<H;++J){let q=G[J];if(q.type==="union"&&q.to===void 0)q.anyOf.forEach((U)=>{Y.add(U)}),Object.assign(X,q.has);else Y.add(q),CX(X,q.type)}let Z=new F("union");return Z.anyOf=Array.from(Y),Z.compiler=bX,Z.has=X,Z}throw Error("[Sury] S.union requires at least one item")}function hY(){let G=IG(0),Q={schema:G,location:FG},X={};return X[FG]=G,{type:"object",serializer:(Y,Z,J,H)=>RG(Y,J.to),additionalItems:"strip",items:[Q],properties:X}}function oY(G,Q,X,Y){return $(G,"{"+FG+":"+KG(X).items[0].schema.const+"}",X.to)}function qX(G){return n(G,(Q)=>{Q.to=hY(),Q.parser=oY})}function EQ(G,Q){let X=Q!==void 0?Q:s,Y=KG(G);switch(Y.type){case"undefined":return zG([X,qX(G)]);case"union":let{has:J,anyOf:H}=Y;return n(G,(q)=>{let U=JQ(J),z=[];for(let K=0,D=H.length;K<D;++K){let B=H[K],W=KG(B),w=W.type,L;if(w==="undefined")U[X.type]=!0,z.push(X),L=qX(B);else{let R=W.properties;if(R!==void 0){let P=R[FG];L=P!==void 0?n(B,(E)=>{let N={type:P.type,parser:P.parser,const:P.const+1},M={schema:N,location:FG},C={};C[FG]=N,E.items=[M],E.properties=C}):B}else L=B}z.push(L)}if(z.length===H.length)U[X.type]=!0,z.push(X);q.anyOf=z,q.has=U});default:return zG([G,X])}}function vG(G,Q){return n(G,(X)=>{let Y=X.anyOf;if(Y!==void 0){let Z,J;for(let K=0,D=Y.length;K<D;++K){let B=Y[K],W=KG(B);if(W.type!=="undefined"){if(Z!==void 0){let R="Can't set default for "+j(X);throw Error("[Sury] "+R)}Z=B,J=W}}let H=Z,q;if(H!==void 0)q=H;else{let K="Can't set default for "+j(X);throw Error("[Sury] "+K)}X.parser=(K,D,B,W)=>{let w=(N,M)=>{let C=M.v(N),T;return T=Q.TAG==="Value"?BQ(N,IG(Q._0)):_(N,Q._0)+"()",$(N,C+"===void 0?"+T+":"+C,B.to)};if(!(D.f&2))return w(K,D);let L={c:"",l:"",a:JG,f:"",g:K.g},R={b:K,v:EG,i:u(L.g),f:0,type:"unknown"},P=w(L,R),E=DG(L);return lG(D.b,D.i+".then("+R.v(K)+"=>{"+E+"return "+P.i+"})")};let U=h(J),z=U.compiler;if(z!==void 0)U.serializer=z,delete U.compiler;else U.serializer=(K,D,B,W)=>D;if(X.to=U,Q.TAG!=="Value")return;try{X.default=o(q,32)(Q._0);return}catch(K){return}}else{let Z="Can't set default for "+j(X);throw Error("[Sury] "+Z)}})}var NQ="m:Array.refinements";function cY(G){let Q=G[NQ];if(Q!==void 0)return Q;else return[]}function sY(G,Q,X,Y){let Z=X.additionalItems,J=Q.v(G),H=u(G.g),q={c:"",l:"",a:JG,f:"",g:G.g},U=$(q,J+"["+H+"]",ZG),z=sG(q,U,Y,H,void 0,(W,w,L)=>d(W,Z,w,L)),K=DG(q),D=U!==z,B=D?$(G,"new Array("+J+".length)",X):Q;if(B.type=X.type,B.additionalItems=X.additionalItems,D||K!=="")G.c=G.c+("for(let "+H+"=0;"+H+"<"+J+".length;++"+H+"){"+K+(D?dQ(G,B,H,z):"")+"}");if(z.f&2)return lG(B.b,"Promise.all("+B.i+")");else return B}function cG(G){let Q=new F("array");return Q.additionalItems=G,Q.items=gQ,Q.compiler=sY,Q}function nG(G,Q,X){let Y=G.additionalItems;if(Y===void 0)return G;let Z=G.items;if(Y===Q||typeof Y==="object")return G;let J=h(G);if(J.additionalItems=Q,X){let H=[],q={};for(let U=0,z=Z.length;U<z;++U){let K=Z[U],D=nG(K.schema,Q,X),B=D===K.schema?K:{schema:D,location:K.location};q[K.location]=D,H.push(B)}J.items=H,J.properties=q}return J}function dX(G){return nG(G,"strip",!1)}function lX(G){return nG(G,"strip",!0)}function QQ(G){return nG(G,"strict",!1)}function uX(G){return nG(G,"strict",!0)}function nY(G,Q,X,Y){let Z=X.additionalItems,J=Q.v(G),H=u(G.g),q={c:"",l:"",a:JG,f:"",g:G.g},U=$(q,J+"["+H+"]",ZG),z=sG(q,U,Y,H,void 0,(E,N,M)=>d(E,Z,N,M)),K=DG(q),D=U!==z,B=D?$(G,"{}",X):Q;if(B.type=X.type,B.additionalItems=X.additionalItems,D||K!=="")G.c=G.c+("for(let "+H+" in "+J+"){"+K+(D?dQ(G,B,H,z):"")+"}");if(!(z.f&2))return B;let W=u(G.g),w=u(G.g),L=u(G.g),R=u(G.g),P=B.v(G);return lG(G,"new Promise(("+W+","+w+")=>{let "+R+"=Object.keys("+P+").length;for(let "+H+" in "+P+"){"+P+"["+H+"].then("+L+"=>{"+P+"["+H+"]="+L+";if("+R+"--===1){"+W+"("+P+")}},"+w+")}})")}function XQ(G){let Q=new F("object");return Q.properties=DX,Q.items=gQ,Q.additionalItems=G,Q.compiler=nY,Q}var m="m:String.refinements";function mY(G){let Q=G[m];if(Q!==void 0)return Q;else return[]}var iY=/^c[^\s-]{8,}$/i,aY=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,tY=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,eY=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/,v=PX("json");function pX(){if(!v[hG])return;delete v.as;let G=new F("ref");G.$ref=pQ+LG,G.name=LG,v.type=G.type,v.$ref=G.$ref,v.name=LG;let Q={};Q[LG]={type:"union",compiler:bX,name:LG,has:{string:!0,boolean:!0,number:!0,null:!0,object:!0,array:!0},anyOf:[c,KQ,AG,wQ,XQ(G),cG(G)]},v.$defs=Q}function zX(G,Q,X,Y){let Z=y[Q.type],J=Q.const;if(Z&48)return'"null"';else if(Z&2)return JSON.stringify(YG(J));else if(Z&1024)return'"\\"'+J+'\\""';else if(Z&12)return'"'+J+'"';else return DQ(G,Q,X,Y)}function rX(){if(GG[hG]){delete GG.as,GG.type="string",GG.format="json",GG.name=LG+" string",GG.compiler=(G,Q,X,Y)=>{let Z=y[Q.type],J=Q;if(Z&1){let H=X.to;if(H&&b in H){let q=J.v(G);G.f=q+"==="+zX(G,H,X,Y)+"||"+QG(G,Y,(U)=>({TAG:"InvalidType",expected:H,received:U}),q)+";",J=RG(G,H)}else if(!(H&&H.format==="json")){let q=J.v(G),U=G.g.o&1;if(U)G.f=_Q(G,c,J,Y);if(H||U){let z;if(H){PG(H,H,Y,G.g.o);let K=GQ(G,ZG);J=K,z=K.i+"="}else z="";G.c=G.c+("try{"+z+"JSON.parse("+q+")}catch(t){"+QG(G,Y,(K)=>({TAG:"InvalidType",expected:X,received:K}),q)+"}")}}}else{if(b in J)J=$(G,zX(G,J,X,Y),c);else if(Z&2){if(J.format!=="json")J=$(G,"JSON.stringify("+J.i+")",c)}else if(Z&12)J=IQ(G,J);else if(Z&1024)J=$(G,'"\\""+'+J.i+'+"\\""',c);else if(Z&192){PG(J,J,Y,G.g.o);let H=X.space;J=$(G,"JSON.stringify("+J.i+(H!==void 0&&H!==0?",null,"+H:"")+")",c)}else DQ(G,J,X,Y);J.format="json"}return J};return}}function hX(G){let Q=h(GG);return Q.space=G,Q}var hQ="m:Int.refinements";function GZ(G){let Q=G[hQ];if(Q!==void 0)return Q;else return[]}var oQ="m:Float.refinements";function QZ(G){let Q=G[oQ];if(Q!==void 0)return Q;else return[]}function oX(G,Q){if(G===Q)return G;else return n(G,(X)=>{X.to=Q})}function cX(G){let Q=new F("instance");return Q.class=G,Q}function cQ(G,Q){let X=h(G),Y=Q.name;if(Y!==void 0)if(Y==="")X.name=void 0;else X.name=Y;let Z=Q.title;if(Z!==void 0)if(Z==="")X.title=void 0;else X.title=Z;let J=Q.description;if(J!==void 0)if(J==="")X.description=void 0;else X.description=J;let H=Q.deprecated;if(H!==void 0)X.deprecated=H;let q=Q.examples;if(q!==void 0)if(q.length!==0)X.examples=q.map(o(G,32));else X.examples=void 0;return X}function sX(G,Q){let X=h(G);return X.name=Q,X}function nX(G){switch(G.k){case 0:return"["+YG(G.location)+"]";case 1:return nX(G.of)+G.p;case 2:return G.p}}function sQ(G,Q,X,Y){if(b in Y)return RG(G,Y);let Z=Q[qQ];if(Z!==void 0)return X(Z);let J=y[Y.type]&128,H=$G(G,J);return Y.items.forEach((q)=>_G(H,q.location,sQ(G,Q[q.location],X,q.schema))),gG(H,J)}function nQ(G,Q,X,Y,Z){if(!(Y.type==="object"&&Y.additionalItems==="strict"&&G.g.o&1))return;let H=GQ(G,ZG).i;if(G.c=G.c+("for("+H+" in "+Q.v(G)+"){if("),X.length!==0)for(let q=0,U=X.length;q<U;++q){let z=X[q];if(q!==0)G.c=G.c+"&&";G.c=G.c+(H+"!=="+UG(G,z.location))}else G.c=G.c+"true";G.c=G.c+("){"+QG(G,Z,(q)=>({TAG:"ExcessField",_0:q}),H)+"}}")}function bG(G){return new Proxy(DX,{get:(Q,X)=>{if(X===qQ)return G;let Y=YG(X),Z=KG(G.schema),J=Z.items,H=Z.properties,q;if(H!==void 0)q=H[X];else if(J!==void 0){let U=J[X];q=U!==void 0?U.schema:void 0}else q=void 0;if(q===void 0){let U="Cannot read property "+Y+" of "+j(Z);throw Error("[Sury] "+U)}return bG({k:1,location:X,schema:q,of:G,p:"["+Y+"]"})}})}function YQ(G,Q,X,Y){let{additionalItems:Z,items:J}=X,H=y[X.type]&128;if(G.g.o&64){let U=$G(G,H);for(let z=0,K=J.length;z<K;++z){let B=J[z].location;_G(U,B,Q.properties[B])}return gG(U,H)}let q=$G(G,H);for(let U=0,z=J.length;U<z;++U){let K=J[U],D=K.location,B=fG(G,Q,D),W=UG(G,D),w=Y+("["+W+"]");_G(q,D,d(G,K.schema,B,w))}if(nQ(G,Q,J,X,Y),(Z!=="strip"||G.g.o&32)&&J.every((U)=>q.properties[U.location]===Q.properties[U.location]))return Q.additionalItems="strip",Q;else return gG(q,H)}function mX(G){let Q=this,X="~"+G,Y=Q[X];if(Y!==void 0)return qG(Y);let Z={},J=[],H=new F("object");H.items=J,H.properties=Z,H.additionalItems=f.a,H.compiler=YQ;let q=Q.f(G,H)[qQ],U=(W,w)=>{let L=YG(W);if(W in Z)throw Error("[Sury] "+("The field "+L+" defined twice"));let R="["+L+"]",P={k:1,location:W,schema:w,of:q,p:R};return Z[W]=w,J.push(P),bG(P)},B={field:U,f:U,fieldOr:(W,w,L)=>{let R=EQ(w,void 0);return U(W,vG(R,{TAG:"Value",_0:L}))},tag:(W,w)=>{U(W,NG(w))},nested:mX,flatten:(W)=>{if(W.type==="object"){let{to:R,items:P}=W;if(R){let N="Unsupported nested flatten for transformed object schema "+j(W);throw Error("[Sury] "+N)}let E={};for(let N=0,M=P.length;N<M;++N){let C=P[N];E[C.location]=U(C.location,C.schema)}return E}let L="Can't flatten "+j(W)+" schema";throw Error("[Sury] "+L)}};return Q[X]=B,B}function NG(G){if(typeof G!=="object"||G===null)return IG(G);if(G["~standard"])return G;if(Array.isArray(G)){for(let q=0,U=G.length;q<U;++q){let z=NG(G[q]),K=q.toString();G[q]={schema:z,location:K}}let H=new F("array");return H.items=G,H.additionalItems="strict",H.compiler=YQ,H}let Q=G.constructor;if(Q&&Q!==Object)return{type:"instance",const:G,class:Q};let X=Object.keys(G),Y=X.length,Z=[];for(let H=0;H<Y;++H){let q=X[H],U=NG(G[q]),z={schema:U,location:q};G[q]=U,Z[H]=z}let J=new F("object");return J.items=Z,J.properties=G,J.additionalItems=f.a,J.compiler=YQ,J}function jQ(G,Q,X){if(typeof G!=="object"||G===null)return{k:1,p:Q,s:h(IG(G))};let Y=G[qQ];if(Y!==void 0){let U=h(KG(Y.schema));delete U.serializer;let z={k:0,p:Q,s:U};return Y.r=z,X[nX(Y)]=z,z}if(Array.isArray(G)){let U=[];for(let K=0,D=G.length;K<D;++K){let B=K.toString(),W='"'+B+'"',R={schema:jQ(G[K],Q+("["+W+"]"),X).s,location:B};U[K]=R}let z=new F("array");return{k:2,p:Q,s:(z.items=U,z.additionalItems="strict",z.serializer=OQ,z)}}let Z=Object.keys(G),J={},H=[];for(let U=0,z=Z.length;U<z;++U){let K=Z[U],D=YG(K),W=jQ(G[K],Q+("["+D+"]"),X).s,w={schema:W,location:K};H[U]=w,J[K]=W}let q=new F("object");return{k:2,p:Q,s:(q.items=H,q.properties=J,q.additionalItems=f.a,q.serializer=OQ,q)}}function mQ(G,Q,X){let Y={},J=jQ(G,"",Y).s;return delete J.refiner,delete J.compiler,J.serializer=(H,q,U,z)=>{let K=(P)=>{let E=P.p;if(E==="")return q;let N=q,M=WX(E);while(!0){let C=M,T=N;if(C.length===0)return T;let k=C[0];M=C.slice(1),N=fG(H,T,k);continue}},D=(P,E)=>{let N=KG(P);if(b in N)return RG(H,N);if(b in P)return d(H,P,RG(H,P),z);let{type:M,additionalItems:C,items:T}=N;if(T!==void 0&&typeof C==="string"){let A=y[M]&128,I=$G(H,A);for(let x=0,p=T.length;x<p;++x){let V=T[x],WG=UG(H,V.location),kG=E+("["+WG+"]"),l=Y[kG],O=l!==void 0?d(H,V.schema,K(l),l.p):D(V.schema,kG);_G(I,V.location,O)}return gG(I,A)}let k=E===""?"Schema isn't registered":"Schema for "+E+" isn't registered";return tG(H,z,k)},B=(P,E,N)=>{let M=P.r;if(M===void 0)return D(P.schema,E);let C=N?XG(P.schema):E===""?KG(P.schema):P.schema,T=K(M),k=z+M.p;return d(H,C,T,k)};if(Q!==void 0)return B(Q,"",!1);let W=U.to;nQ(H,q,U.items,U,z);let w=W.type==="array",L=W.items,R=$G(H,w);if(X!==void 0)for(let P=0,E=X.length;P<E;++P)dY(R,B(X[P],"",!0));for(let P=0,E=L.length;P<E;++P){let N=L[P];if(!(N.location in R.properties)){let M=UG(H,N.location);_G(R,N.location,B(N,"["+M+"]",!1))}}return gG(R,w)},J}function iX(G,Q){return(X,Y,Z,J)=>{let H=X.g.o&64,q=H?Y.properties:{};if(!H){let z=Z.items;for(let K=0,D=z.length;K<D;++K){let B=z[K],W=B.location,w=fG(X,Y,W),L=UG(X,W),R=J+("["+L+"]");q[W]=d(X,B.schema,w,R)}nQ(X,Y,z,Z,J)}if(Q!==void 0){let z=X.g.o;X.g.o=z|64;for(let K=0,D=Q.length;K<D;++K){let B=Q[K];q[B.i]=d(X,B.schema,Y,J)}X.g.o=z}let U=(z)=>{switch(z.k){case 0:return q[z.location];case 1:return fG(X,U(z.of),z.location);case 2:return q[z.i]}};return sQ(X,G,U,Z.to)}}function aX(G,Q){return n(G,(X)=>{let Y={k:2,schema:G,p:"",i:0},Z=Q(bG(Y));X.parser=(J,H,q,U)=>{let z=(K)=>{switch(K.k){case 1:return fG(J,z(K.of),K.location);case 0:case 2:return H}};return sQ(J,Z,z,q.to)},X.to=mQ(Z,Y,void 0)})}function ZQ(G){let Q=void 0,X=[],Y={},Z=(D)=>{if(D.type==="object"){let w=D.items;for(let E=0,N=w.length;E<N;++E){let M=w[E],C=M.location,T=M.schema,k=Y[C];if(k!==void 0){if(k!==T)throw Error("[Sury] "+('The field "'+C+'" defined twice with incompatible schemas'))}else{let A={k:0,schema:T,location:C};X.push(A),Y[C]=T}}let L=Q||(Q=[]),R=L.length,P={k:2,schema:D,p:"",i:R};return L.push(P),bG(P)}let W="The '"+j(D)+"' schema can't be flattened";throw Error("[Sury] "+W)},J=(D,B)=>{if(D in Y)throw Error("[Sury] "+('The field "'+D+'" defined twice with incompatible schemas'));let W={k:0,schema:B,location:D};return Y[D]=B,X.push(W),bG(W)},z=G({field:J,f:J,fieldOr:(D,B,W)=>{let w=EQ(B,void 0);return J(D,vG(w,{TAG:"Value",_0:W}))},tag:(D,B)=>{J(D,NG(B))},nested:mX,flatten:Z}),K=new F("object");return K.items=X,K.properties=Y,K.additionalItems=f.a,K.parser=iX(z,Q),K.to=mQ(z,void 0,Q),K}function iQ(G){let Q=[],X=(q,U)=>{let z=q.toString();if(Q[q])throw Error("[Sury] "+("The item ["+z+"] is defined multiple times"));let K={k:0,schema:U,location:z};return Q[q]=K,bG(K)},J=G({item:X,tag:(q,U)=>{X(q,NG(U))}});for(let q=0,U=Q.length;q<U;++q)if(!Q[q]){let z=q.toString(),K={schema:s,location:z};Q[q]=K}let H=new F("array");return H.items=Q,H.additionalItems="strict",H.parser=iX(J,void 0),H.to=mQ(J,void 0,void 0),H}function XZ(G){return EQ(G,PQ)}var aQ=NG;function YZ(G,Q,X,Y){let Z=X.additionalItems,J=Z.items,H=Q.v(G),q=u(G.g),U=u(G.g),z={c:"",l:"",a:JG,f:"",g:G.g},K={b:z,v:EG,i:H+"["+q+"]",f:0,type:"unknown"},D=sG(z,K,Y,q,(W,w)=>{let L="",R="";for(let P=0,E=J.length;P<E;++P){let N=J[P];L=L+("new Array("+H+".length),"),R=R+(U+"["+P+"]["+q+"]="+fG(G,w,N.location).i+";")}G.a(U+"=["+L+"]"),W.c=W.c+R},(W,w,L)=>d(W,Z,w,L)),B=DG(z);if(G.c=G.c+("for(let "+q+"=0;"+q+"<"+H+".length;++"+q+"){"+B+"}"),D.f&2)return{b:G,v:i,i:"Promise.all("+U+")",f:2,type:"array"};else return{b:G,v:EG,i:U,f:0,type:"array"}}function tX(G){if(G.type==="object"){let Q=G.items;if(Q.length===0)throw Error("[Sury] Invalid empty object for S.unnest schema.");let X=new F("array");X.items=Q.map((Z,J)=>{let H=J.toString();return{schema:cG(Z.schema),location:H}}),X.additionalItems="strict",X.parser=(Z,J,H,q)=>{let U=J.v(Z),z=u(Z.g),K={c:"",l:"",a:JG,f:"",g:Z.g},D=$G(K,!1),B="";for(let P=0,E=Q.length;P<E;++P){let N=Q[P];_G(D,N.location,$(K,U+"["+P+"]["+z+"]",ZG)),B=B+(U+"["+P+"].length,")}let W=$(Z,"new Array(Math.max("+B+"))",H.to),w=W.v(Z),L=sG(K,gG(D,!1),q,z,(P,E)=>{P.c=P.c+dQ(P,W,z,E)+";"},(P,E,N)=>d(P,G,E,N)),R=DG(K);if(Z.c=Z.c+("for(let "+z+"=0;"+z+"<"+w+".length;++"+z+"){"+R+"}"),L.f&2)return lG(W.b,"Promise.all("+W.i+")");else return W};let Y=new F("array");return Y.items=gQ,Y.additionalItems=G,Y.serializer=YZ,X.unnest=!0,X.to=Y,X}throw Error("[Sury] S.unnest supports only object schemas.")}function UX(G){return EQ(G,s)}function xQ(G,Q,X){let Y=X!==void 0?X:"Number must be greater than or equal to "+Q;return g(G,hQ,{kind:{TAG:"Min",value:Q},message:Y},(Z,J,H,q)=>"if("+J+"<"+_(Z,Q)+"){"+S(Z,Y,q)+"}")}function VQ(G,Q,X){let Y=X!==void 0?X:"Number must be lower than or equal to "+Q;return g(G,hQ,{kind:{TAG:"Max",value:Q},message:Y},(Z,J,H,q)=>"if("+J+">"+_(Z,Q)+"){"+S(Z,Y,q)+"}")}function eX(G,Q){let X=rQ(G,(Y,Z,J,H)=>Z+">0&&"+Z+"<65536&&"+Z+"%1===0||"+(Q!==void 0?S(Y,Q,H):QG(Y,H,(q)=>({TAG:"InvalidType",expected:J,received:q}),Z))+";");return X.format="port",XG(X).format="port",X}function yQ(G,Q,X){let Y=X!==void 0?X:"Number must be greater than or equal to "+Q;return g(G,oQ,{kind:{TAG:"Min",value:Q},message:Y},(Z,J,H,q)=>"if("+J+"<"+_(Z,Q)+"){"+S(Z,Y,q)+"}")}function SQ(G,Q,X){let Y=X!==void 0?X:"Number must be lower than or equal to "+Q;return g(G,oQ,{kind:{TAG:"Max",value:Q},message:Y},(Z,J,H,q)=>"if("+J+">"+_(Z,Q)+"){"+S(Z,Y,q)+"}")}function GY(G,Q,X){let Y=X!==void 0?X:"Array must be "+Q+" or more items long";return g(G,NQ,{kind:{TAG:"Min",length:Q},message:Y},(Z,J,H,q)=>"if("+J+".length<"+_(Z,Q)+"){"+S(Z,Y,q)+"}")}function QY(G,Q,X){let Y=X!==void 0?X:"Array must be "+Q+" or fewer items long";return g(G,NQ,{kind:{TAG:"Max",length:Q},message:Y},(Z,J,H,q)=>"if("+J+".length>"+_(Z,Q)+"){"+S(Z,Y,q)+"}")}function XY(G,Q,X){let Y=X!==void 0?X:"String must be "+Q+" or more characters long";return g(G,m,{kind:{TAG:"Min",length:Q},message:Y},(Z,J,H,q)=>"if("+J+".length<"+_(Z,Q)+"){"+S(Z,Y,q)+"}")}function YY(G,Q,X){let Y=X!==void 0?X:"String must be "+Q+" or fewer characters long";return g(G,m,{kind:{TAG:"Max",length:Q},message:Y},(Z,J,H,q)=>"if("+J+".length>"+_(Z,Q)+"){"+S(Z,Y,q)+"}")}function tQ(G,Q){let X=Q!==void 0?Q:"Invalid email address";return g(G,m,{kind:"Email",message:X},(Y,Z,J,H)=>"if(!"+_(Y,tY)+".test("+Z+")){"+S(Y,X,H)+"}")}function eQ(G,Q){let X=Q!==void 0?Q:"Invalid UUID";return g(G,m,{kind:"Uuid",message:X},(Y,Z,J,H)=>"if(!"+_(Y,aY)+".test("+Z+")){"+S(Y,X,H)+"}")}function ZY(G,Q){let X=Q!==void 0?Q:"Invalid CUID";return g(G,m,{kind:"Cuid",message:X},(Y,Z,J,H)=>"if(!"+_(Y,iY)+".test("+Z+")){"+S(Y,X,H)+"}")}function GX(G,Q){let X=Q!==void 0?Q:"Invalid url";return g(G,m,{kind:"Url",message:X},(Y,Z,J,H)=>"try{new URL("+Z+")}catch(_){"+S(Y,X,H)+"}")}function QX(G,Q,X){let Y=X!==void 0?X:"Invalid";return g(G,m,{kind:{TAG:"Pattern",re:Q},message:Y},(Z,J,H,q)=>(Q.global?_(Z,Q)+".lastIndex=0;":"")+("if(!"+_(Z,Q)+".test("+J+")){"+S(Z,Y,q)+"}"))}function XX(G,Q){let X=Q!==void 0?Q:"Invalid datetime string! Expected UTC",Y={kind:"Datetime",message:X},Z=G[m];return LQ(uQ(G,m,Z!==void 0?Z.concat(Y):[Y]),(J)=>({p:(H)=>{if(!eY.test(H))J.fail(X,void 0);return new Date(H)},s:(H)=>H.toISOString()}))}function JY(G){let Q=(X)=>X.trim();return LQ(G,(X)=>({p:Q,s:Q}))}function HY(G){return zG([G,s,wQ])}function qY(G){return zG(G.map(NG))}function zY(G,Q,X){return LQ(G,(Y)=>({p:Q!==void 0?(Z)=>Q(Z,Y):void 0,s:X!==void 0?(Z)=>X(Z,Y):void 0}))}function UY(G,Q){return rG(G,(X)=>(Y)=>Q(Y,X))}function ZZ(G){return G}function KY(G,Q){return LQ(G,(X)=>({a:(Y)=>Q(Y,X).then(()=>Y),s:ZZ}))}function BY(G,Q){let X=zG([G,s]);if(Q===void 0)return X;let Y=qG(Q);if(typeof Y==="function")return vG(X,{TAG:"Callback",_0:Y});else return vG(X,{TAG:"Value",_0:Y})}function DY(G,Q){let X=zG([G,PQ]);if(Q===void 0)return X;let Y=qG(Q);if(typeof Y==="function")return vG(X,{TAG:"Callback",_0:Y});else return vG(X,{TAG:"Value",_0:Y})}function WY(G,Q){let X;if(G.type==="object"&&Q.type==="object"){let Y=G.additionalItems;if(typeof Y==="string"&&typeof Q.additionalItems==="string"&&!G.to&&!Q.to){let Z=Q.items,J=G.items,H={},q=[],U=[];for(let K=0,D=J.length;K<D;++K){let B=J[K];q.push(B.location),H[B.location]=B.schema}for(let K=0,D=Z.length;K<D;++K){let B=Z[K];if(!(B.location in H))q.push(B.location);H[B.location]=B.schema}for(let K=0,D=q.length;K<D;++K){let B=q[K];U.push({schema:H[B],location:B})}let z=new F("object");z.items=U,z.properties=H,z.additionalItems=Y,z.compiler=YQ,X=z}else X=void 0}else X=void 0;if(X!==void 0)return X;throw Error("[Sury] The merge supports only structured object schemas without transformations")}function wY(G){let Q=G.defaultAdditionalItems;f.a=Q!==void 0?Q:"strip";let X=f.n,Y=G.disableNanNumberValidation;if(f.n=Y!==void 0?Y:!1,X!==f.n)return yY(AG)}var $Q="m:JSONSchema";function CG(G,Q){let X={};switch(G.type){case"never":X.not={};break;case"unknown":break;case"string":let z=G.const;if(X.type="string",mY(G).forEach((T)=>{let k=T.kind;if(typeof k!=="object")switch(k){case"Email":X.format="email";return;case"Uuid":X.format="uuid";return;case"Cuid":return;case"Url":X.format="uri";return;case"Datetime":X.format="date-time";return}else switch(k.TAG){case"Min":X.minLength=k.length;return;case"Max":X.maxLength=k.length;return;case"Length":let A=k.length;X.minLength=A,X.maxLength=A;return;case"Pattern":X.pattern=String(k.re);return}}),z!==void 0)X.const=z;break;case"number":let{format:K,const:D}=G;if(K!==void 0)if(K==="int32")X.type="integer",GZ(G).forEach((T)=>{let k=T.kind;if(k.TAG==="Min")X.minimum=k.value;else X.maximum=k.value});else X.type="integer",X.maximum=65535,X.minimum=0;else X.type="number",QZ(G).forEach((T)=>{let k=T.kind;if(k.TAG==="Min")X.minimum=k.value;else X.maximum=k.value});if(D!==void 0)X.const=D;break;case"boolean":let B=G.const;if(X.type="boolean",B!==void 0)X.const=B;break;case"null":X.type="null";break;case"array":let W=G.additionalItems,w=0;if(W==="strip"||W==="strict")w=1;else X.items=CG(W,Q),X.type="array",cY(G).forEach((T)=>{let k=T.kind;switch(k.TAG){case"Min":X.minItems=k.length;return;case"Max":X.maxItems=k.length;return;case"Length":let A=k.length;X.maxItems=A,X.minItems=A;return}});if(w===1){let T=G.items.map((A)=>CG(A.schema,Q)),k=T.length;X.items=BX(T),X.type="array",X.minItems=k,X.maxItems=k}break;case"object":let L=G.additionalItems,R=0;if(L==="strip"||L==="strict")R=1;else X.type="object",X.additionalProperties=CG(L,Q);if(R===1){let T={},k=[];G.items.forEach((I)=>{let x=CG(I.schema,Q);if(!xY(I.schema))k.push(I.location);T[I.location]=x}),X.type="object",X.properties=T;let A;if(A=L==="strip"||L==="strict"?L==="strip":!0,X.additionalProperties=A,k.length!==0)X.required=k}break;case"union":let P=[],E=[];G.anyOf.forEach((T)=>{if(T.type==="undefined")return;if(E.push(CG(T,Q)),b in T){P.push(T.const);return}});let N=E.length,M=G.default;if(M!==void 0)X.default=qG(M);if(N===1)Object.assign(X,E[0]);else if(P.length===N)X.enum=P;else X.anyOf=E;break;case"ref":let C=G.$ref;if(C===pQ+LG);else X.$ref=C;break;default:throw Error("[Sury] Unexpected schema type")}let Y=G.description;if(Y!==void 0)X.description=Y;let Z=G.title;if(Z!==void 0)X.title=Z;let J=G.deprecated;if(J!==void 0)X.deprecated=J;let H=G.examples;if(H!==void 0)X.examples=H;let q=G.$defs;if(q!==void 0)Object.assign(Q,q);let U=G[$Q];if(U!==void 0)Object.assign(X,U);return X}function LY(G){PG(G,G,"",8);let Q={},X=CG(G,Q);delete Q.JSON;let Y=Object.keys(Q);if(Y.length)Y.forEach((Z)=>{Q[Z]=CG(Q[Z],0)}),X.$defs=Q;return X}function PY(G,Q){let X=G[$Q];return uQ(G,$Q,X!==void 0?Object.assign({},X,Q):Q)}var JZ=IG;function KX(G){let Q=G.minimum,X;if(Q!==void 0)X=xQ(yG,Q|0,void 0);else{let J=G.exclusiveMinimum;X=J!==void 0?xQ(yG,J+1|0,void 0):yG}let Y=G.maximum;if(Y!==void 0)return VQ(X,Y|0,void 0);let Z=G.exclusiveMinimum;if(Z!==void 0)return VQ(X,Z-1|0,void 0);else return X}function HZ(G){if(typeof G!=="object")return;else return G.default}function VG(G){let Q=(H)=>{if(typeof H!=="object")if(H===!1)return RQ;else return v;else return VG(H)},X=G.type,Y,Z=0,J=0;if(G.nullable)Y=XZ(VG(Object.assign({},G,{nullable:!1})));else if(X!==void 0){let H=qG(X);if(H==="object"){let q=G.properties;if(q!==void 0){let U=ZQ((K)=>{let D={};return Object.keys(q).forEach((B)=>{let W=q[B],w=Q(W),L=G.required,R,P=0;if(L!==void 0&&L.includes(B))R=w;else P=1;if(P===1){let E=HZ(W);if(E!==void 0){let N=UX(w);R=vG(N,{TAG:"Value",_0:E})}else R=UX(w)}D[B]=K.f(B,R)}),D});Y=G.additionalProperties===!1?QQ(U):U}else{let U=G.additionalProperties;Y=U!==void 0?typeof U!=="object"?U===!1?QQ(ZQ((z)=>{})):XQ(v):XQ(VG(U)):NG()}}else if(H==="array"){let q=G.items,U;if(q!==void 0){let B=IY.classify(qG(q));if(B.TAG==="Single")U=cG(Q(B._0));else{let W=B._0;U=iQ((w)=>W.map((L,R)=>w.item(R,Q(L))))}}else U=cG(v);let z=G.minItems,K=z!==void 0?GY(U,z,void 0):U,D=G.maxItems;Y=D!==void 0?QY(K,D,void 0):K}else J=2}else J=2;if(J===2){let{enum:H,allOf:q,anyOf:U}=G;if(U!==void 0){let z=U.length;Y=z!==1?z!==0?zG(U.map(Q)):v:Q(U[0])}else if(q!==void 0){let z=q.length;Y=z!==1?z!==0?rG(v,(K)=>(D)=>{q.forEach((B)=>{try{return wG(D,Q(B))}catch(W){return K.fail("Should pass for all schemas of the allOf property.",void 0)}})}):v:Q(q[0])}else{let z=G.oneOf;if(z!==void 0){let K=z.length;Y=K!==1?K!==0?rG(v,(D)=>(B)=>{let W={contents:!1};if(z.forEach((w)=>{let L;try{wG(B,Q(w)),L=!0}catch(R){L=!1}if(L){if(W.contents)D.fail("Should pass single schema according to the oneOf property.",void 0);W.contents=!0;return}}),!W.contents)return D.fail("Should pass at least one schema according to the oneOf property.",void 0)}):v:Q(z[0])}else{let K=G.not;if(K!==void 0)Y=rG(v,(D)=>(B)=>{let W;try{wG(B,Q(K)),W=!0}catch(w){W=!1}if(W)return D.fail("Should NOT be valid against schema in the not property.",void 0)});else if(H!==void 0){let D=H.length;Y=D!==1?D!==0?zG(H.map(JZ)):v:IG(H[0])}else{let D=G.const;if(D!==void 0)Y=IG(D);else if(X!==void 0){let B=qG(X),W=0,w=0;if(Array.isArray(B))Y=zG(B.map((L)=>VG(Object.assign({},G,{type:BX(L)}))));else if(B==="string"){let L=G.pattern,R=L!==void 0?QX(c,new RegExp(L),void 0):c,P=G.minLength,E=P!==void 0?XY(R,P,void 0):R,N=G.maxLength,M=N!==void 0?YY(E,N,void 0):E;switch(G.format){case"date-time":Y=XX(M,void 0);break;case"email":Y=tQ(M,void 0);break;case"uri":Y=GX(M,void 0);break;case"uuid":Y=eQ(M,void 0);break;default:Y=M}}else if(B==="integer"||G.format==="int64"&&B==="number")Y=KX(G);else w=4;if(w===4)if(G.multipleOf!==1||B!=="number")W=3;else Y=KX(G);if(W===3)if(B==="number"){let L=G.minimum,R;if(L!==void 0)R=yQ(AG,L,void 0);else{let E=G.exclusiveMinimum;R=E!==void 0?yQ(AG,E+1,void 0):AG}let P=G.maximum;if(P!==void 0)Y=SQ(R,P,void 0);else{let E=G.exclusiveMinimum;Y=E!==void 0?SQ(R,E-1,void 0):R}}else if(B==="boolean")Y=KQ;else if(B==="null")Y=aQ(null);else Z=1}else Z=1}}}}if(Z===1){let H=G.if;if(H!==void 0){let q=G.then;if(q!==void 0){let U=G.else;if(U!==void 0){let z=Q(H),K=Q(q),D=Q(U);Y=rG(v,(B)=>(W)=>{let w;try{wG(W,z),w=!0}catch(L){w=!1}if(w)return wG(W,K);else return wG(W,D)})}else Y=v}else Y=v}else Y=v}if(G.description===void 0&&G.deprecated===void 0&&G.examples===void 0&&G.title===void 0)return Y;return cQ(Y,{title:G.title,description:G.description,deprecated:G.deprecated,examples:G.examples})}function RY(G,Q,X){switch(G.type){case"string":return XY(G,Q,X);case"number":if(G.format!==void 0)return xQ(G,Q,X);else return yQ(G,Q,X);case"array":return GY(G,Q,X);default:let Y="S.min is not supported for "+j(G)+" schema. Coerce the schema to string, number or array using S.to first.";throw Error("[Sury] "+Y)}}function EY(G,Q,X){switch(G.type){case"string":return YY(G,Q,X);case"number":if(G.format!==void 0)return VQ(G,Q,X);else return SQ(G,Q,X);case"array":return QY(G,Q,X);default:let Y="S.max is not supported for "+j(G)+" schema. Coerce the schema to string, number or array using S.to first.";throw Error("[Sury] "+Y)}}function NY(G,Q,X){switch(G.type){case"string":let Y=X!==void 0?X:"String must be exactly "+Q+" characters long";return g(G,m,{kind:{TAG:"Length",length:Q},message:Y},(H,q,U,z)=>"if("+q+".length!=="+_(H,Q)+"){"+S(H,Y,z)+"}");case"array":let Z=X!==void 0?X:"Array must be exactly "+Q+" items long";return g(G,NQ,{kind:{TAG:"Length",length:Q},message:Z},(H,q,U,z)=>"if("+q+".length!=="+_(H,Q)+"){"+S(H,Z,z)+"}");default:let J="S.length is not supported for "+j(G)+" schema. Coerce the schema to string or array using S.to first.";throw Error("[Sury] "+J)}}var TY=cG,kY=XQ;var MY=WQ;var UZ=NX.value,KZ=c,BZ=KQ,DZ=yG,WZ=AG,wZ=EX,LZ=RX,PZ=v,RZ=RQ,EZ=ZG,NZ=ZG,TZ=BY,kZ=DY,MZ=HY,CZ=TY,AZ=cX,FZ=tX,_Z=kY,IZ=GG,vZ=hX,OZ=qY,jZ=ZQ,xZ=aQ,VZ=yX,yZ=SX,SZ=XG,$Z=vX,gZ=OX,fZ=jX,bZ=xX,dZ=lQ,lZ=VX,uZ=WQ,pZ=MY,rZ=_X,hZ=IX,oZ=wG,cZ=$X,sZ=WY,nZ=QQ,mZ=uX,iZ=dX,aZ=lX,tZ=oX,eZ=LY,G0=VG,Q0=PY,X0=aX,Y0=iQ,Z0=KY,J0=UY,H0=zY,q0=cQ,z0=j,U0=gX,K0=FX,B0=eX,D0=RY,W0=EY,w0=NY,L0=tQ,P0=eQ,R0=ZY,E0=GX,N0=QX,T0=XX,k0=JY,M0=pX,C0=rX,A0=wY,F0=sX;export{s as void,P0 as uuid,E0 as url,FZ as unnest,EZ as unknown,OZ as union,Y0 as tuple,k0 as trim,H0 as transform,eZ as toJSONSchema,z0 as toExpression,tZ as to,LZ as symbol,iZ as strip,KZ as string,nZ as strict,X0 as shape,xZ as schema,yZ as safeAsync,VZ as safe,lZ as reverseConvertToJsonStringOrThrow,dZ as reverseConvertToJsonOrThrow,bZ as reverseConvertOrThrow,SZ as reverse,J0 as refine,cZ as recursive,_Z as record,B0 as port,N0 as pattern,uZ as parseOrThrow,rZ as parseJsonStringOrThrow,pZ as parseJsonOrThrow,hZ as parseAsyncOrThrow,TZ as optional,jZ as object,WZ as number,MZ as nullish,kZ as nullable,U0 as noValidation,RZ as never,D0 as min,q0 as meta,sZ as merge,W0 as max,w0 as length,vZ as jsonStringWithSpace,IZ as jsonString,PZ as json,DZ as int32,AZ as instance,A0 as global,G0 as fromJSONSchema,Q0 as extendJSONSchema,C0 as enableJsonString,M0 as enableJson,L0 as email,aZ as deepStrip,mZ as deepStrict,T0 as datetime,R0 as cuid,fZ as convertToJsonStringOrThrow,gZ as convertToJsonOrThrow,$Z as convertOrThrow,K0 as compile,F0 as brand,BZ as boolean,wZ as bigint,Z0 as asyncParserRefine,oZ as assertOrThrow,CZ as array,NZ as any,UZ as Error};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{S as
|
|
2
|
+
import{jh as r}from"./chunk-ehfxypks.js";import{bk as e}from"./chunk-a550vst5.js";import{om as t}from"./chunk-epa576pa.js";import{do as l}from"./chunk-e586sjb0.js";import{Et as a}from"./chunk-9etpppyv.js";import{kO as o}from"./chunk-ks1cs80p.js";var S={PromptAppend:t.define("tui.prompt.append",a.object({text:a.string()})),CommandExecute:t.define("tui.command.execute",a.object({command:a.union([a.enum(["session.list","session.new","session.share","session.interrupt","session.compact","session.page.up","session.page.down","session.line.up","session.line.down","session.half.page.up","session.half.page.down","session.first","session.last","prompt.clear","prompt.submit","agent.cycle"]),a.string()])})),ToastShow:t.define("tui.toast.show",a.object({title:a.string().optional(),message:a.string(),variant:a.enum(["info","success","warning","error"]),duration:a.number().default(5000).optional().describe("Duration in milliseconds")})),SessionSelect:t.define("tui.session.select",a.object({sessionID:e.zod.describe("Session ID to navigate to")})),InstructionsLoaded:r};class m extends o.Class("ConsoleState")({consoleManagedProviders:o.mutable(o.Array(o.String)),activeOrgName:o.optional(o.String),switchableOrgCount:o.Number}){static zod=l(this)}var f=m.make({consoleManagedProviders:[],activeOrgName:void 0,switchableOrgCount:0});
|
|
3
|
+
export{S as og,m as pg,f as qg};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-f83wv08n.js";var e={"ui.sessionReview.title":"Cambios de la sesi\xF3n","ui.sessionReview.title.lastTurn":"Cambios del \xFAltimo turno","ui.sessionReview.diffStyle.unified":"Unificado","ui.sessionReview.diffStyle.split":"Dividido","ui.sessionReview.openFile":"Abrir archivo","ui.sessionReview.selection.line":"l\xEDnea {{line}}","ui.sessionReview.selection.lines":"l\xEDneas {{start}}-{{end}}","ui.sessionReview.expandAll":"Expandir todo","ui.sessionReview.collapseAll":"Colapsar todo","ui.sessionReview.change.added":"A\xF1adido","ui.sessionReview.change.removed":"Eliminado","ui.sessionReview.change.modified":"Modificado","ui.sessionReview.image.loading":"Cargando...","ui.sessionReview.image.placeholder":"Imagen","ui.sessionReview.largeDiff.title":"Diff demasiado grande para renderizar","ui.sessionReview.largeDiff.meta":"L\xEDmite: {{limit}} l\xEDneas modificadas. Actual: {{current}} l\xEDneas modificadas.","ui.sessionReview.largeDiff.renderAnyway":"Renderizar de todos modos","ui.fileMedia.kind.image":"imagen","ui.fileMedia.kind.audio":"audio","ui.fileMedia.state.removed":"Archivo de {{kind}} eliminado","ui.fileMedia.state.loading":"Cargando archivo de {{kind}}","ui.fileMedia.state.error":"Error en el archivo de {{kind}}","ui.fileMedia.state.unavailable":"Archivo de {{kind}} no disponible","ui.fileMedia.binary.title":"Archivo binario","ui.fileMedia.binary.description.path":"No se puede mostrar {{path}} porque es un archivo binario.","ui.fileMedia.binary.description.default":"No se puede mostrar este archivo porque es un archivo binario.","ui.lineComment.label.prefix":"Comentar en ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"Comentando en ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"A\xF1adir comentario","ui.lineComment.submit":"Comentar","ui.sessionTurn.steps.show":"Mostrar pasos","ui.sessionTurn.steps.hide":"Ocultar pasos","ui.sessionTurn.summary.response":"Respuesta","ui.sessionTurn.diff.showMore":"Mostrar m\xE1s cambios ({{count}})","ui.sessionTurn.retry.retrying":"reintentando","ui.sessionTurn.retry.inSeconds":"en {{seconds}}s","ui.sessionTurn.retry.attempt":"intento #{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - intento #{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini est\xE1 demasiado saturado","ui.sessionTurn.error.freeUsageExceeded":"L\xEDmite de uso gratuito excedido","ui.sessionTurn.error.addQredits":"A\xF1adir cr\xE9ditos","ui.sessionTurn.status.delegating":"Delegando trabajo","ui.sessionTurn.status.planning":"Planificando siguientes pasos","ui.sessionTurn.status.gatheringContext":"Explorando","ui.sessionTurn.status.gatheredContext":"Explorado","ui.sessionTurn.status.searchingCodebase":"Buscando en la base de c\xF3digo","ui.sessionTurn.status.searchingWeb":"Buscando en la web","ui.sessionTurn.status.makingEdits":"Realizando ediciones","ui.sessionTurn.status.runningCommands":"Ejecutando comandos","ui.sessionTurn.status.thinking":"Pensando","ui.sessionTurn.status.thinkingWithTopic":"Pensando - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"Recopilando pensamientos","ui.sessionTurn.status.consideringNextSteps":"Considerando siguientes pasos","ui.messagePart.questions.dismissed":"Preguntas descartadas","ui.messagePart.compaction":"Sesi\xF3n compactada","ui.messagePart.context.read.one":"{{count}} lectura","ui.messagePart.context.read.other":"{{count}} lecturas","ui.messagePart.context.search.one":"{{count}} b\xFAsqueda","ui.messagePart.context.search.other":"{{count}} b\xFAsquedas","ui.messagePart.context.list.one":"{{count}} lista","ui.messagePart.context.list.other":"{{count}} listas","ui.messagePart.diagnostic.error":"Error","ui.messagePart.title.edit":"Editar","ui.messagePart.title.write":"Escribir","ui.messagePart.option.typeOwnAnswer":"Escribe tu propia respuesta","ui.messagePart.review.title":"Revisa tus respuestas","ui.list.loading":"Cargando","ui.list.empty":"Sin resultados","ui.list.clearFilter":"Borrar filtro","ui.list.emptyWithFilter.prefix":"Sin resultados para","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"Nuevo mensaje","ui.textField.copyToClipboard":"Copiar al portapapeles","ui.textField.copyLink":"Copiar enlace","ui.textField.copied":"Copiado","ui.imagePreview.alt":"Vista previa de imagen","ui.scrollView.ariaLabel":"contenido desplazable","ui.tool.read":"Leer","ui.tool.loaded":"Cargado","ui.tool.list":"Listar","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Webfetch","ui.tool.websearch":"B\xFAsqueda web","ui.tool.codesearch":"B\xFAsqueda de c\xF3digo","ui.tool.shell":"Shell","ui.tool.patch":"Parche","ui.tool.todos":"Tareas","ui.tool.todos.read":"Leer tareas","ui.tool.questions":"Preguntas","ui.tool.agent":"Agente {{type}}","ui.tool.agent.default":"Agente","ui.common.file.one":"archivo","ui.common.file.other":"archivos","ui.common.question.one":"pregunta","ui.common.question.other":"preguntas","ui.common.add":"A\xF1adir","ui.common.back":"Atr\xE1s","ui.common.cancel":"Cancelar","ui.common.confirm":"Confirmar","ui.common.dismiss":"Descartar","ui.common.close":"Cerrar","ui.common.next":"Siguiente","ui.common.submit":"Enviar","ui.permission.deny":"Denegar","ui.permission.allowAlways":"Permitir siempre","ui.permission.allowOnce":"Permitir una vez","ui.message.expand":"Expandir mensaje","ui.message.collapse":"Colapsar mensaje","ui.message.copy":"Copiar","ui.message.copyMessage":"Copiar mensaje","ui.message.forkMessage":"Bifurcar a nueva sesi\xF3n","ui.message.revertMessage":"Restablecer a este punto","ui.message.copyResponse":"Copiar respuesta","ui.message.copied":"\xA1Copiado!","ui.message.interrupted":"Interrumpido","ui.message.queued":"En cola","ui.message.attachment.alt":"adjunto","ui.patch.action.deleted":"Eliminado","ui.patch.action.created":"Creado","ui.patch.action.moved":"Movido","ui.patch.action.patched":"Parcheado","ui.question.subtitle.answered":"{{count}} respondidas","ui.question.answer.none":"(sin respuesta)","ui.question.review.notAnswered":"(no respondida)","ui.question.multiHint":"Selecciona todas las que correspondan","ui.question.singleHint":"Selecciona una respuesta","ui.question.custom.placeholder":"Escribe tu respuesta...","ui.fileSearch.placeholder":"Buscar","ui.fileSearch.previousMatch":"Anterior","ui.fileSearch.nextMatch":"Siguiente","ui.fileSearch.close":"Cerrar b\xFAsqueda","ui.tool.task":"Tarea","ui.tool.skill":"Habilidad","ui.basicTool.called":"Llamado `{{tool}}`","ui.toolErrorCard.failed":"Fall\xF3","ui.toolErrorCard.copyError":"Copiar error","ui.message.duration.seconds":"{{count}}s","ui.message.duration.minutesSeconds":"{{minutes}}m {{seconds}}s"};export{e as dict};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$f as E}from"./chunk-7ab3yw9j.js";import"./chunk-et5dnymk.js";import"./chunk-dbztxdea.js";import"./chunk-543pt030.js";import"./chunk-bhetpmgq.js";import"./chunk-nfg7nt13.js";import"./chunk-rcyzqa3g.js";import"./chunk-h10wjk96.js";import"./chunk-wcx7hc2p.js";import"./chunk-ehfxypks.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"./chunk-a550vst5.js";import"./chunk-e374shb8.js";import"./chunk-zcp0wx4j.js";import"./chunk-epa576pa.js";import"./chunk-y287zwkr.js";import"./chunk-7zc04q43.js";import"./chunk-vtw0wwch.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-8d6e4jg7.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-s77qktcn.js";import"./chunk-8v6x712g.js";import"./chunk-pfkm3j8g.js";import"./chunk-h2bmss2m.js";import"./chunk-ywdtp534.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-0cdtq1r3.js";import"./chunk-xmjntwjc.js";import"./chunk-tj3rem3q.js";import"./chunk-7q003wdd.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-a92hh67a.js";import"./chunk-qhnpq5gb.js";import{PO as z}from"./chunk-f83wv08n.js";var J={command:"generate",handler:async()=>{let A=await E.openapi();for(let q of Object.values(A.paths))for(let y of["get","post","put","delete","patch"]){let k=q[y];if(!k?.operationId)continue;k["x-codeSamples"]=[{lang:"js",source:['import { createQitQodeClient } from "@qitqode/sdk"',"","const client = createQitQodeClient()",`await client.${k.operationId}({`," ...","})"].join(`
|
|
3
|
+
`)}]}let F=JSON.stringify(A,null,2),B=await import("./chunk-86jsqc7d.js"),C=await import("./chunk-6ypafpg8.js"),D=await import("./chunk-fvy24yhq.js"),G=await(B.format??B.default?.format)(F,{parser:"json",plugins:[C.default??C,D.default??D],printWidth:120});await new Promise((q,y)=>{process.stdout.write(G,(k)=>{if(k)y(k);else q()})})}};export{J as GenerateCommand};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{gm as f,hm as Gj,im as Rj,jm as Hj,mm as s}from"./chunk-gnt982jr.js";import{vp as xj}from"./chunk-25bp7pcm.js";import{Bp as vj}from"./chunk-45mjcxqk.js";import{Fs as P,Gs as wj,Ms as k,Ns as Kj}from"./chunk-xdjwapwy.js";import{Rt as a,St as y}from"./chunk-v0yxkq99.js";import{Bu as I,Ku as h}from"./chunk-kmtfdky8.js";import{Vu as i,Wu as Ij,Xu as Jj,_u as Nj}from"./chunk-vc4e6xc4.js";import{$u as j}from"./chunk-hnz570f9.js";import{HP as C,LL as l,MG as d,UI as Q,nD as Wj,rG as o}from"./chunk-ydc6ypjt.js";import{gQ as Mj,iQ as Oj,kQ as Ej}from"./chunk-4sazy0nq.js";var tj={};Oj(tj,{stopRefresh:()=>aj,startRefresh:()=>sj,refresh:()=>jj,readModelCatalogResponse:()=>Pj,get:()=>fj,Provider:()=>cj,Model:()=>pj,MODEL_CATALOG_MAX_BYTES:()=>Aj,Data:()=>S});import hj from"path";var U={};Oj(U,{layer:()=>Bj,isPreview:()=>ij,isNewerVersion:()=>qj,isLocal:()=>mj,getReleaseType:()=>yj,defaultLayer:()=>uj,UpgradeFailedError:()=>x,USER_AGENT:()=>Sj,Service:()=>E,Installation:()=>U,Info:()=>Uj,Event:()=>Cj});var _j=(J)=>J.pipe(k.retryTransient({retryOn:"errors-and-responses",times:2,schedule:d.exponential(200).pipe(d.jittered)}));import Yj from"path";var z=Mj(xj(),1);import n from"crypto";import v from"fs";import Zj from"path";class H extends Error{constructor(J){super(J);this.name="SelfUpdateError"}}function $j(J){let V=J?.platform??process.platform,_=J?.arch??process.arch,$=J?.libc??"bionic",W=["qitqode",V==="win32"?"windows":V,_];if(_==="x64")W.push("baseline");if(V==="linux"&&$==="musl")W.push("musl");return`@qitqode/${W.join("-")}`}function kj(J,V){if(V.integrity){let _=V.integrity.match(/^(sha512|sha384|sha256)-([A-Za-z0-9+/=]+)$/);if(!_)throw new H(`registry returned an unrecognized integrity string: ${V.integrity}`);if(n.createHash(_[1]).update(J).digest("base64")!==_[2])throw new H(`checksum mismatch: downloaded tarball does not match the registry ${_[1]} integrity value; refusing to install`);return}if(V.shasum){if(n.createHash("sha1").update(J).digest("hex")!==V.shasum.toLowerCase())throw new H("checksum mismatch: downloaded tarball does not match the registry shasum; refusing to install");return}throw new H("registry provided no integrity metadata for the tarball; refusing to install")}function Qj(J,V){let _=(w,R)=>{let G=w,q=w+R;while(G<q&&J[G]!==0)G++;return new TextDecoder().decode(J.subarray(w,G))},$=0,W;while($+512<=J.length){if(J.subarray($,$+512).every((Z)=>Z===0))break;let R=_($+124,12).trim(),G=R?parseInt(R,8):0;if(!Number.isFinite(G)||G<0)throw new H("downloaded tarball is corrupt (bad tar header)");let q=String.fromCharCode(J[$+156]),B=_($,100),N=_($+345,155);if(N)B=`${N}/${B}`;if(W)B=W,W=void 0;let b=$+512,X=b+G;if(q==="L")W=new TextDecoder().decode(J.subarray(b,X)).replace(/\0+$/,"");else if((q==="0"||q==="\x00"||q==="")&&B===V)return J.slice(b,X);$=b+Math.ceil(G/512)*512}return}var A=(J)=>String(J instanceof Error?J.message:J),u=(J)=>Q.fail(new H(J)),p=(J,V)=>Q.try({try:J,catch:(_)=>new H(V(_))}),Xj=Q.fnUntraced(function*(J){let{target:V,execPath:_,packageName:$,registry:W}=J,w=J.gunzip??((K)=>Bun.gunzipSync(K)),R=Zj.dirname(_);yield*p(()=>v.accessSync(R,v.constants.W_OK),()=>`no write permission for ${R}; cannot replace ${_}. Fix the directory permissions or re-run with sufficient privileges.`);let G=`${W}/${$}/${encodeURIComponent(V)}`,B=(yield*J.fetchJson(G).pipe(Q.mapError((K)=>new H(`download failed: could not fetch ${$}@${V} from ${W} (${A(K)}). Check your network connection and that version ${V} exists.`))))?.dist;if(!B?.tarball)return yield*u(`registry response for ${$}@${V} has no tarball URL; cannot self-update`);let N=B.tarball,b=yield*J.fetchBytes(N).pipe(Q.mapError((K)=>new H(`download failed: could not download ${N} (${A(K)}). Check your network connection and try again.`)));yield*Q.try({try:()=>kj(b,B),catch:(K)=>K instanceof H?K:new H(A(K))});let X=yield*Q.try({try:()=>w(b),catch:()=>new H("downloaded tarball is corrupt (gunzip failed); try again")}),Z=Qj(X,"package/bin/qitqode")??Qj(X,"package/bin/qitqode.exe");if(!Z||Z.length===0)return yield*u(`tarball for ${$}@${V} does not contain the expected binary at bin/qitqode`);let O=Zj.join(R,`.qitqode-upgrade-${process.pid}`),Y=`${_}.backup-${process.pid}`,D=(K)=>{try{v.rmSync(K,{force:!0})}catch{}};yield*p(()=>v.writeFileSync(O,Z,{mode:493}),(K)=>{return D(O),`no write permission: could not write ${O} (${A(K)})`});let L=yield*J.runVersion(O).pipe(Q.mapError((K)=>{return D(O),new H(`downloaded binary failed its --version check (${A(K)}); keeping the current installation`)}));if(L.code!==0)return D(O),yield*u(`downloaded binary failed its --version check (exit ${L.code}); keeping the current installation`);let m=L.stdout.trim();if(m&&!m.includes(V))return D(O),yield*u(`downloaded binary reports version "${m}" instead of ${V}; keeping the current installation`);yield*p(()=>v.renameSync(_,Y),(K)=>{return D(O),`could not move the current binary aside (${A(K)}); check permissions on ${_}`}),yield*Q.try({try:()=>v.renameSync(O,_),catch:(K)=>{try{v.renameSync(Y,_)}catch{return new H(`failed to install the new binary AND failed to restore the old one; your previous binary is preserved at ${Y} \u2014 move it back to ${_} manually`)}return D(O),new H(`could not install the new binary (${A(K)}); the previous version was restored`)}}),D(Y)});var c=h.create({service:"installation"}),M="@qitqode/cli";function qj(J,V){if(!z.default.valid(J)||!z.default.valid(V))return!1;return z.default.gt(V,J)}var Cj={Updated:s.define("installation.updated",j.object({version:j.string()})),UpdateAvailable:s.define("installation.update-available",j.object({version:j.string()}))};function yj(J,V){if(!qj(J,V))throw Error(`Version ${V} is not newer than ${J}`);let _=z.default.major(J),$=z.default.minor(J),W=z.default.major(V),w=z.default.minor(V);if(W>_)return"major";if(w>$)return"minor";return"patch"}var Uj=j.object({version:j.string(),latest:j.string()}).meta({ref:"InstallationInfo"}),Sj=`qitqode/${y}/${a}/${I.QITQODE_CLIENT}`;function ij(){return y!=="latest"}function mj(){return y==="local"}class x extends C.TaggedErrorClass()("UpgradeFailedError",{stderr:C.String}){}var nj=C.Struct({version:C.String});class E extends Wj.Service()("@qitqode/Installation"){}var Bj=o.effect(E,Q.gen(function*(){let J=yield*k.HttpClient,V=k.filterStatusOk(_j(J)),_=yield*f.ChildProcessSpawner,$=(X,Z)=>Gj.make(X[0],X.slice(1),{cwd:Z?.cwd,env:Z?.env,extendEnv:!0}),W=Q.fnUntraced(function*(X){let Z=yield*Hj(_,X);return{code:Z.code,stdout:Z.text,stderr:Z.stderr}},Q.scoped),w=Q.fnUntraced(function*(X,Z){let O=yield*_.spawn($(X,Z)),Y=yield*l.mkString(l.decodeText(O.stdout));return yield*O.exitCode,Y},Q.scoped,Q.catch(()=>Q.succeed(""))),R=Q.fnUntraced(function*(X,Z){return yield*W($(X,Z))},Q.catch(()=>Q.succeed({code:f.ExitCode(1),stdout:"",stderr:""}))),G=Q.fn("Installation.method")(function*(){if(process.execPath.includes(Yj.join(".qitqode","bin")))return"curl";if(process.execPath.includes(Yj.join(".local","bin")))return"curl";let X=process.execPath.toLowerCase(),Z=[{name:"npm",command:()=>w(["npm","list","-g","--depth=0"])},{name:"pnpm",command:()=>w(["pnpm","list","-g","--depth=0"])},{name:"bun",command:()=>w(["bun","pm","ls","-g"])}];Z.sort((O,Y)=>{let D=X.includes(O.name),L=X.includes(Y.name);if(D&&!L)return-1;if(!D&&L)return 1;return 0});for(let O of Z)if((yield*O.command()).includes(M))return O.name;return"unknown"}),q=Q.fn("Installation.latest")(function*(X){let Z=X||(yield*G());if(Z==="curl"){let Y=(yield*w(["curl","-sI","https://github.com/qitqode/qitqode/releases/latest"])).match(/^location:.*\/tag\/v([0-9][^\s/]*)/im);if(Y)return Y[1];return yield*Q.die(Error("failed to resolve latest version from GitHub releases redirect"))}if(Z==="npm"||Z==="bun"||Z==="pnpm"){let Y=(yield*w(["npm","config","get","registry"])).trim()||"https://registry.npmjs.org",D=Y.endsWith("/")?Y.slice(0,-1):Y,L=yield*V.execute(P.get(`${D}/${encodeURIComponent(M)}/${y}`).pipe(P.acceptJson));return(yield*wj.schemaBodyJson(nj)(L)).version}return c.warn("unsupported update channel, skipping",{method:Z}),yield*Q.die(Error(`unsupported update channel: ${Z}`))},Q.orDie),B=Q.fnUntraced(function*(){let Z=(yield*w(["npm","config","get","registry"])).trim()||"https://registry.npmjs.org";return Z.endsWith("/")?Z.slice(0,-1):Z}),N=Q.fnUntraced(function*(X){let Z=yield*B();yield*Xj({target:X,execPath:process.env.QITQODE_SELF_UPDATE_TARGET_BINARY||process.execPath,packageName:$j(),registry:Z,fetchJson:(O)=>V.execute(P.get(O).pipe(P.acceptJson)).pipe(Q.flatMap((Y)=>Y.json)),fetchBytes:(O)=>V.execute(P.get(O)).pipe(Q.flatMap((Y)=>Y.arrayBuffer),Q.map((Y)=>new Uint8Array(Y))),runVersion:(O)=>R([O,"--version"]).pipe(Q.map((Y)=>({code:Y.code,stdout:Y.stdout})))}).pipe(Q.mapError((O)=>new x({stderr:O.message})))}),b=Q.fn("Installation.upgrade")(function*(X,Z){if(X==="curl"){yield*N(Z),c.info("upgraded",{method:X,target:Z});return}let Y=yield*(()=>{if(X==="npm")return R(["npm","install","-g",`${M}@${Z}`]);if(X==="pnpm")return R(["pnpm","install","-g",`${M}@${Z}`]);if(X==="bun")return R(["bun","install","-g",`${M}@${Z}`]);return new x({stderr:`Unknown method: ${X}`})})();if(Y.code!==0){let D=Y.stderr||"";return yield*new x({stderr:D})}c.info("upgraded",{method:X,target:Z,stdout:Y.stdout,stderr:Y.stderr}),yield*w([process.execPath,"--version"])});return E.of({info:Q.fn("Installation.info")(function*(){return{version:a,latest:yield*q()}}),method:G,latest:q,upgrade:b})})),uj=Bj.pipe(o.provide(Kj.layer),o.provide(Rj));var t=j.lazy(()=>j.union([j.string(),j.number(),j.boolean(),j.null(),j.array(t),j.record(j.string(),t)])),Dj=j.object({input:j.number(),output:j.number(),cache_read:j.number().optional(),cache_write:j.number().optional(),context_over_200k:j.object({input:j.number(),output:j.number(),cache_read:j.number().optional(),cache_write:j.number().optional()}).optional()}),r=j.object({id:j.string(),name:j.string(),family:j.string().optional(),release_date:j.string(),attachment:j.boolean(),reasoning:j.boolean(),temperature:j.boolean().optional(),tool_call:j.boolean(),interleaved:j.union([j.literal(!0),j.object({field:j.enum(["reasoning_content","reasoning_details"])}).strict()]).optional(),cost:Dj.optional(),limit:j.object({context:j.number(),input:j.number().optional(),output:j.number()}),modalities:j.object({input:j.array(j.enum(["text","audio","image","video","pdf"])),output:j.array(j.enum(["text","audio","image","video","pdf"]))}).optional(),experimental:j.object({modes:j.record(j.string(),j.object({cost:Dj.optional(),provider:j.object({body:j.record(j.string(),t).optional(),headers:j.record(j.string(),j.string()).optional()}).optional()})).optional()}).optional(),status:j.enum(["alpha","beta","deprecated"]).optional(),provider:j.object({npm:j.string().optional(),api:j.string().optional()}).optional()}),e=j.object({api:j.string().optional(),name:j.string(),env:j.array(j.string()),id:j.string(),npm:j.string().optional(),models:j.record(j.string(),r)});var Vj=h.create({service:"models.dev"}),bj=Fj(),F=hj.join(Nj.Path.cache,bj==="https://models.dev"?"models.json":`models-${Ij.fast(bj)}.json`),gj=300000,Aj=8388608,T,dj=j.record(j.string(),e),pj=r,cj=e;function Fj(){return I.QITQODE_MODELS_URL||"https://models.dev"}function lj(){return Date.now()-Number(i.stat(F)?.mtimeMs??0)<gj}function Lj(J){return!J&&lj()}function g(J){let V=dj.parse(typeof J==="string"?JSON.parse(J):J);for(let[_,$]of Object.entries(V))if($.id!==_)throw Error(`Invalid model provider: ${_}`);return V}async function zj(J){let V=await i.readJson(J).catch(()=>{return});if(!V)return;try{return g(V)}catch(_){Vj.warn("Ignoring invalid model catalog cache",{file:J,error:_});return}}async function Pj(J,V,_=Aj){let $=J.headers.get("content-type")?.split(";")[0]?.trim().toLowerCase();if($!=="application/json"&&!$?.endsWith("+json"))throw Error(`Invalid model catalog content type: ${$||"missing"}`);let W=Number(J.headers.get("content-length"));if(Number.isFinite(W)&&W>_)throw Error("Model catalog response is too large");if(!J.body)return"";let w=J.body.getReader(),R=()=>void w.cancel(V.reason);V.addEventListener("abort",R,{once:!0});let G=new Uint8Array(_),q=0;try{for(;;){let B=await w.read();if(B.done)break;if(q+=B.value.byteLength,q>_)throw await w.cancel(),Error("Model catalog response is too large");G.set(B.value,q-B.value.byteLength)}}finally{V.removeEventListener("abort",R)}return new TextDecoder().decode(G.subarray(0,q))}var Tj=async()=>{let J=AbortSignal.timeout(1e4),V=await fetch(`${Fj()}/api.json`,{headers:{"User-Agent":U.USER_AGENT},signal:J});if(!V.ok)return;let _=g(await Pj(V,J));return JSON.stringify(_)},S=vj(async()=>{let J=await zj(I.QITQODE_MODELS_PATH??F);if(J)return J;let V=await import("./chunk-yacccwf6.js").then((_)=>g(_.snapshot)).catch(()=>{return});if(V)return V;if(I.QITQODE_DISABLE_MODELS_FETCH)return{};return Jj.withLock(`models-dev:${F}`,async()=>{let _=await zj(I.QITQODE_MODELS_PATH??F);if(_)return _;let $=await Tj();if($)return await i.write(F,$).catch((W)=>{Vj.error("Failed to write models cache",{error:W})}),g($);return{}})});async function fj(){return S()}async function jj(J=!1){if(Lj(J))return S.reset();await Jj.withLock(`models-dev:${F}`,async()=>{if(Lj(J))return S.reset();let V=await Tj();if(!V)return;await i.write(F,V),S.reset()}).catch((V)=>{Vj.error("Failed to fetch models.dev",{error:V})})}function sj(){if(T||I.QITQODE_DISABLE_MODELS_FETCH||process.argv.includes("--get-yargs-completions"))return;jj(),T=setInterval(async()=>{await jj()},3600000),T.unref()}function aj(){if(!T)return;clearInterval(T),T=void 0}
|
|
3
|
-
export{_j as
|
|
2
|
+
import{im as f,jm as Gj,km as Rj,lm as Hj,om as s}from"./chunk-epa576pa.js";import{_n as xj}from"./chunk-rk2bk4s7.js";import{eo as vj}from"./chunk-b50t4jc5.js";import{ir as P,jr as wj,pr as k,qr as Kj}from"./chunk-pfkm3j8g.js";import{us as a,vs as y}from"./chunk-xmjntwjc.js";import{et as I,nt as h}from"./chunk-7q003wdd.js";import{At as Jj,Dt as Nj,yt as i,zt as Ij}from"./chunk-cbmwhvxw.js";import{Et as j}from"./chunk-9etpppyv.js";import{SB as Wj,WE as o,kO as C,oK as l,pF as d,xH as Q}from"./chunk-ks1cs80p.js";import{LO as Mj,NO as Oj,PO as Ej}from"./chunk-f83wv08n.js";var tj={};Oj(tj,{stopRefresh:()=>aj,startRefresh:()=>sj,refresh:()=>jj,readModelCatalogResponse:()=>Pj,get:()=>fj,Provider:()=>cj,Model:()=>pj,MODEL_CATALOG_MAX_BYTES:()=>Aj,Data:()=>S});import hj from"path";var U={};Oj(U,{layer:()=>Bj,isPreview:()=>ij,isNewerVersion:()=>qj,isLocal:()=>mj,getReleaseType:()=>yj,defaultLayer:()=>uj,UpgradeFailedError:()=>x,USER_AGENT:()=>Sj,Service:()=>E,Installation:()=>U,Info:()=>Uj,Event:()=>Cj});var _j=(J)=>J.pipe(k.retryTransient({retryOn:"errors-and-responses",times:2,schedule:d.exponential(200).pipe(d.jittered)}));import Yj from"path";var z=Mj(xj(),1);import n from"crypto";import v from"fs";import Zj from"path";class H extends Error{constructor(J){super(J);this.name="SelfUpdateError"}}function $j(J){let V=J?.platform??process.platform,_=J?.arch??process.arch,$=J?.libc??"bionic",W=["qitqode",V==="win32"?"windows":V,_];if(_==="x64")W.push("baseline");if(V==="linux"&&$==="musl")W.push("musl");return`@qitqode/${W.join("-")}`}function kj(J,V){if(V.integrity){let _=V.integrity.match(/^(sha512|sha384|sha256)-([A-Za-z0-9+/=]+)$/);if(!_)throw new H(`registry returned an unrecognized integrity string: ${V.integrity}`);if(n.createHash(_[1]).update(J).digest("base64")!==_[2])throw new H(`checksum mismatch: downloaded tarball does not match the registry ${_[1]} integrity value; refusing to install`);return}if(V.shasum){if(n.createHash("sha1").update(J).digest("hex")!==V.shasum.toLowerCase())throw new H("checksum mismatch: downloaded tarball does not match the registry shasum; refusing to install");return}throw new H("registry provided no integrity metadata for the tarball; refusing to install")}function Qj(J,V){let _=(w,R)=>{let G=w,q=w+R;while(G<q&&J[G]!==0)G++;return new TextDecoder().decode(J.subarray(w,G))},$=0,W;while($+512<=J.length){if(J.subarray($,$+512).every((Z)=>Z===0))break;let R=_($+124,12).trim(),G=R?parseInt(R,8):0;if(!Number.isFinite(G)||G<0)throw new H("downloaded tarball is corrupt (bad tar header)");let q=String.fromCharCode(J[$+156]),B=_($,100),N=_($+345,155);if(N)B=`${N}/${B}`;if(W)B=W,W=void 0;let b=$+512,X=b+G;if(q==="L")W=new TextDecoder().decode(J.subarray(b,X)).replace(/\0+$/,"");else if((q==="0"||q==="\x00"||q==="")&&B===V)return J.slice(b,X);$=b+Math.ceil(G/512)*512}return}var A=(J)=>String(J instanceof Error?J.message:J),u=(J)=>Q.fail(new H(J)),p=(J,V)=>Q.try({try:J,catch:(_)=>new H(V(_))}),Xj=Q.fnUntraced(function*(J){let{target:V,execPath:_,packageName:$,registry:W}=J,w=J.gunzip??((K)=>Bun.gunzipSync(K)),R=Zj.dirname(_);yield*p(()=>v.accessSync(R,v.constants.W_OK),()=>`no write permission for ${R}; cannot replace ${_}. Fix the directory permissions or re-run with sufficient privileges.`);let G=`${W}/${$}/${encodeURIComponent(V)}`,B=(yield*J.fetchJson(G).pipe(Q.mapError((K)=>new H(`download failed: could not fetch ${$}@${V} from ${W} (${A(K)}). Check your network connection and that version ${V} exists.`))))?.dist;if(!B?.tarball)return yield*u(`registry response for ${$}@${V} has no tarball URL; cannot self-update`);let N=B.tarball,b=yield*J.fetchBytes(N).pipe(Q.mapError((K)=>new H(`download failed: could not download ${N} (${A(K)}). Check your network connection and try again.`)));yield*Q.try({try:()=>kj(b,B),catch:(K)=>K instanceof H?K:new H(A(K))});let X=yield*Q.try({try:()=>w(b),catch:()=>new H("downloaded tarball is corrupt (gunzip failed); try again")}),Z=Qj(X,"package/bin/qitqode")??Qj(X,"package/bin/qitqode.exe");if(!Z||Z.length===0)return yield*u(`tarball for ${$}@${V} does not contain the expected binary at bin/qitqode`);let O=Zj.join(R,`.qitqode-upgrade-${process.pid}`),Y=`${_}.backup-${process.pid}`,D=(K)=>{try{v.rmSync(K,{force:!0})}catch{}};yield*p(()=>v.writeFileSync(O,Z,{mode:493}),(K)=>{return D(O),`no write permission: could not write ${O} (${A(K)})`});let L=yield*J.runVersion(O).pipe(Q.mapError((K)=>{return D(O),new H(`downloaded binary failed its --version check (${A(K)}); keeping the current installation`)}));if(L.code!==0)return D(O),yield*u(`downloaded binary failed its --version check (exit ${L.code}); keeping the current installation`);let m=L.stdout.trim();if(m&&!m.includes(V))return D(O),yield*u(`downloaded binary reports version "${m}" instead of ${V}; keeping the current installation`);yield*p(()=>v.renameSync(_,Y),(K)=>{return D(O),`could not move the current binary aside (${A(K)}); check permissions on ${_}`}),yield*Q.try({try:()=>v.renameSync(O,_),catch:(K)=>{try{v.renameSync(Y,_)}catch{return new H(`failed to install the new binary AND failed to restore the old one; your previous binary is preserved at ${Y} \u2014 move it back to ${_} manually`)}return D(O),new H(`could not install the new binary (${A(K)}); the previous version was restored`)}}),D(Y)});var c=h.create({service:"installation"}),M="@qitqode/cli";function qj(J,V){if(!z.default.valid(J)||!z.default.valid(V))return!1;return z.default.gt(V,J)}var Cj={Updated:s.define("installation.updated",j.object({version:j.string()})),UpdateAvailable:s.define("installation.update-available",j.object({version:j.string()}))};function yj(J,V){if(!qj(J,V))throw Error(`Version ${V} is not newer than ${J}`);let _=z.default.major(J),$=z.default.minor(J),W=z.default.major(V),w=z.default.minor(V);if(W>_)return"major";if(w>$)return"minor";return"patch"}var Uj=j.object({version:j.string(),latest:j.string()}).meta({ref:"InstallationInfo"}),Sj=`qitqode/${y}/${a}/${I.QITQODE_CLIENT}`;function ij(){return y!=="latest"}function mj(){return y==="local"}class x extends C.TaggedErrorClass()("UpgradeFailedError",{stderr:C.String}){}var nj=C.Struct({version:C.String});class E extends Wj.Service()("@qitqode/Installation"){}var Bj=o.effect(E,Q.gen(function*(){let J=yield*k.HttpClient,V=k.filterStatusOk(_j(J)),_=yield*f.ChildProcessSpawner,$=(X,Z)=>Gj.make(X[0],X.slice(1),{cwd:Z?.cwd,env:Z?.env,extendEnv:!0}),W=Q.fnUntraced(function*(X){let Z=yield*Hj(_,X);return{code:Z.code,stdout:Z.text,stderr:Z.stderr}},Q.scoped),w=Q.fnUntraced(function*(X,Z){let O=yield*_.spawn($(X,Z)),Y=yield*l.mkString(l.decodeText(O.stdout));return yield*O.exitCode,Y},Q.scoped,Q.catch(()=>Q.succeed(""))),R=Q.fnUntraced(function*(X,Z){return yield*W($(X,Z))},Q.catch(()=>Q.succeed({code:f.ExitCode(1),stdout:"",stderr:""}))),G=Q.fn("Installation.method")(function*(){if(process.execPath.includes(Yj.join(".qitqode","bin")))return"curl";if(process.execPath.includes(Yj.join(".local","bin")))return"curl";let X=process.execPath.toLowerCase(),Z=[{name:"npm",command:()=>w(["npm","list","-g","--depth=0"])},{name:"pnpm",command:()=>w(["pnpm","list","-g","--depth=0"])},{name:"bun",command:()=>w(["bun","pm","ls","-g"])}];Z.sort((O,Y)=>{let D=X.includes(O.name),L=X.includes(Y.name);if(D&&!L)return-1;if(!D&&L)return 1;return 0});for(let O of Z)if((yield*O.command()).includes(M))return O.name;return"unknown"}),q=Q.fn("Installation.latest")(function*(X){let Z=X||(yield*G());if(Z==="curl"){let Y=(yield*w(["curl","-sI","https://github.com/qitqode/qitqode/releases/latest"])).match(/^location:.*\/tag\/v([0-9][^\s/]*)/im);if(Y)return Y[1];return yield*Q.die(Error("failed to resolve latest version from GitHub releases redirect"))}if(Z==="npm"||Z==="bun"||Z==="pnpm"){let Y=(yield*w(["npm","config","get","registry"])).trim()||"https://registry.npmjs.org",D=Y.endsWith("/")?Y.slice(0,-1):Y,L=yield*V.execute(P.get(`${D}/${encodeURIComponent(M)}/${y}`).pipe(P.acceptJson));return(yield*wj.schemaBodyJson(nj)(L)).version}return c.warn("unsupported update channel, skipping",{method:Z}),yield*Q.die(Error(`unsupported update channel: ${Z}`))},Q.orDie),B=Q.fnUntraced(function*(){let Z=(yield*w(["npm","config","get","registry"])).trim()||"https://registry.npmjs.org";return Z.endsWith("/")?Z.slice(0,-1):Z}),N=Q.fnUntraced(function*(X){let Z=yield*B();yield*Xj({target:X,execPath:process.env.QITQODE_SELF_UPDATE_TARGET_BINARY||process.execPath,packageName:$j(),registry:Z,fetchJson:(O)=>V.execute(P.get(O).pipe(P.acceptJson)).pipe(Q.flatMap((Y)=>Y.json)),fetchBytes:(O)=>V.execute(P.get(O)).pipe(Q.flatMap((Y)=>Y.arrayBuffer),Q.map((Y)=>new Uint8Array(Y))),runVersion:(O)=>R([O,"--version"]).pipe(Q.map((Y)=>({code:Y.code,stdout:Y.stdout})))}).pipe(Q.mapError((O)=>new x({stderr:O.message})))}),b=Q.fn("Installation.upgrade")(function*(X,Z){if(X==="curl"){yield*N(Z),c.info("upgraded",{method:X,target:Z});return}let Y=yield*(()=>{if(X==="npm")return R(["npm","install","-g",`${M}@${Z}`]);if(X==="pnpm")return R(["pnpm","install","-g",`${M}@${Z}`]);if(X==="bun")return R(["bun","install","-g",`${M}@${Z}`]);return new x({stderr:`Unknown method: ${X}`})})();if(Y.code!==0){let D=Y.stderr||"";return yield*new x({stderr:D})}c.info("upgraded",{method:X,target:Z,stdout:Y.stdout,stderr:Y.stderr}),yield*w([process.execPath,"--version"])});return E.of({info:Q.fn("Installation.info")(function*(){return{version:a,latest:yield*q()}}),method:G,latest:q,upgrade:b})})),uj=Bj.pipe(o.provide(Kj.layer),o.provide(Rj));var t=j.lazy(()=>j.union([j.string(),j.number(),j.boolean(),j.null(),j.array(t),j.record(j.string(),t)])),Dj=j.object({input:j.number(),output:j.number(),cache_read:j.number().optional(),cache_write:j.number().optional(),context_over_200k:j.object({input:j.number(),output:j.number(),cache_read:j.number().optional(),cache_write:j.number().optional()}).optional()}),r=j.object({id:j.string(),name:j.string(),family:j.string().optional(),release_date:j.string(),attachment:j.boolean(),reasoning:j.boolean(),temperature:j.boolean().optional(),tool_call:j.boolean(),interleaved:j.union([j.literal(!0),j.object({field:j.enum(["reasoning_content","reasoning_details"])}).strict()]).optional(),cost:Dj.optional(),limit:j.object({context:j.number(),input:j.number().optional(),output:j.number()}),modalities:j.object({input:j.array(j.enum(["text","audio","image","video","pdf"])),output:j.array(j.enum(["text","audio","image","video","pdf"]))}).optional(),experimental:j.object({modes:j.record(j.string(),j.object({cost:Dj.optional(),provider:j.object({body:j.record(j.string(),t).optional(),headers:j.record(j.string(),j.string()).optional()}).optional()})).optional()}).optional(),status:j.enum(["alpha","beta","deprecated"]).optional(),provider:j.object({npm:j.string().optional(),api:j.string().optional()}).optional()}),e=j.object({api:j.string().optional(),name:j.string(),env:j.array(j.string()),id:j.string(),npm:j.string().optional(),models:j.record(j.string(),r)});var Vj=h.create({service:"models.dev"}),bj=Fj(),F=hj.join(Nj.Path.cache,bj==="https://models.dev"?"models.json":`models-${Ij.fast(bj)}.json`),gj=300000,Aj=8388608,T,dj=j.record(j.string(),e),pj=r,cj=e;function Fj(){return I.QITQODE_MODELS_URL||"https://models.dev"}function lj(){return Date.now()-Number(i.stat(F)?.mtimeMs??0)<gj}function Lj(J){return!J&&lj()}function g(J){let V=dj.parse(typeof J==="string"?JSON.parse(J):J);for(let[_,$]of Object.entries(V))if($.id!==_)throw Error(`Invalid model provider: ${_}`);return V}async function zj(J){let V=await i.readJson(J).catch(()=>{return});if(!V)return;try{return g(V)}catch(_){Vj.warn("Ignoring invalid model catalog cache",{file:J,error:_});return}}async function Pj(J,V,_=Aj){let $=J.headers.get("content-type")?.split(";")[0]?.trim().toLowerCase();if($!=="application/json"&&!$?.endsWith("+json"))throw Error(`Invalid model catalog content type: ${$||"missing"}`);let W=Number(J.headers.get("content-length"));if(Number.isFinite(W)&&W>_)throw Error("Model catalog response is too large");if(!J.body)return"";let w=J.body.getReader(),R=()=>void w.cancel(V.reason);V.addEventListener("abort",R,{once:!0});let G=new Uint8Array(_),q=0;try{for(;;){let B=await w.read();if(B.done)break;if(q+=B.value.byteLength,q>_)throw await w.cancel(),Error("Model catalog response is too large");G.set(B.value,q-B.value.byteLength)}}finally{V.removeEventListener("abort",R)}return new TextDecoder().decode(G.subarray(0,q))}var Tj=async()=>{let J=AbortSignal.timeout(1e4),V=await fetch(`${Fj()}/api.json`,{headers:{"User-Agent":U.USER_AGENT},signal:J});if(!V.ok)return;let _=g(await Pj(V,J));return JSON.stringify(_)},S=vj(async()=>{let J=await zj(I.QITQODE_MODELS_PATH??F);if(J)return J;let V=await import("./chunk-087tnr8a.js").then((_)=>g(_.snapshot)).catch(()=>{return});if(V)return V;if(I.QITQODE_DISABLE_MODELS_FETCH)return{};return Jj.withLock(`models-dev:${F}`,async()=>{let _=await zj(I.QITQODE_MODELS_PATH??F);if(_)return _;let $=await Tj();if($)return await i.write(F,$).catch((W)=>{Vj.error("Failed to write models cache",{error:W})}),g($);return{}})});async function fj(){return S()}async function jj(J=!1){if(Lj(J))return S.reset();await Jj.withLock(`models-dev:${F}`,async()=>{if(Lj(J))return S.reset();let V=await Tj();if(!V)return;await i.write(F,V),S.reset()}).catch((V)=>{Vj.error("Failed to fetch models.dev",{error:V})})}function sj(){if(T||I.QITQODE_DISABLE_MODELS_FETCH||process.argv.includes("--get-yargs-completions"))return;jj(),T=setInterval(async()=>{await jj()},3600000),T.unref()}function aj(){if(!T)return;clearInterval(T),T=void 0}
|
|
3
|
+
export{_j as vl,U as wl,Aj as xl,pj as yl,cj as zl,Pj as Al,S as Bl,fj as Cl,jj as Dl,sj as El,aj as Fl,tj as Gl};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{g as
|
|
2
|
+
import{Et as L}from"./chunk-9etpppyv.js";import{EB as C,bI as F,xH as M}from"./chunk-ks1cs80p.js";var g=(q)=>(H)=>Object.assign(H,q(H));function k(){return(q,H)=>{class G{static make(J){return J}}return Object.setPrototypeOf(G,H),G}}var y=Symbol.for("effect-zod/override"),A=Symbol.for("effect-zod/preprocess"),B=new WeakMap,N={};function n(q){return V(q.ast)}function V(q){let H=B.get(q);if(H)return H;let G=D(q);return B.set(q,G),G}function D(q){let H=q.annotations?.[y];if(H)return H;let X=q.encoding?.length&&q._tag!=="Declaration"&&!(F.isOptional(q)&&_(q)!==void 0)?I(q):x(q),R=q.checks?.length?E(X,q.checks,q):X,Y=q.annotations?.[A],W=Y?L.preprocess(Y,R):R,U=F.resolveDescription(q),j=F.resolveIdentifier(q),Z=U?W.describe(U):W;return j?Z.meta({ref:j}):Z}function I(q){let H=q.encoding;return H.reduce((G,J)=>G.transform((X)=>P(J.transformation,X)),V(H[0].to))}function P(q,H){let G=M.runSyncExit(q.decode.run(C.some(H),N));if(G._tag==="Failure")throw Error(`effect-zod: transform failed: ${String(G.cause)}`);return C.getOrElse(G.value,()=>H)}function E(q,H,G){let J=[],X=(W)=>{if(W._tag==="FilterGroup")W.checks.forEach(X);else J.push(W)};H.forEach(X);let R=[],Y=J.reduce((W,U)=>{let j=O(W,U);if(j)return j;return R.push(U),W},q);if(R.length===0)return Y;return Y.superRefine((W,U)=>{for(let j of R){let Z=j.run(W,G,N);if(!Z)continue;let Q=b(Z)??j.annotations?.message??"Validation failed";U.addIssue({code:"custom",message:Q})}})}function O(q,H){let G=H.annotations?.meta;if(!G||typeof G._tag!=="string")return;switch(G._tag){case"isInt":return K(q,"int");case"isFinite":return K(q,"finite");case"isGreaterThan":return K(q,"gt",G.exclusiveMinimum);case"isGreaterThanOrEqualTo":return K(q,"gte",G.minimum);case"isLessThan":return K(q,"lt",G.exclusiveMaximum);case"isLessThanOrEqualTo":return K(q,"lte",G.maximum);case"isBetween":{let J=G.exclusiveMinimum?K(q,"gt",G.minimum):K(q,"gte",G.minimum);if(!J)return;return G.exclusiveMaximum?K(J,"lt",G.maximum):K(J,"lte",G.maximum)}case"isMultipleOf":return K(q,"multipleOf",G.divisor);case"isMinLength":return K(q,"min",G.minLength);case"isMaxLength":return K(q,"max",G.maxLength);case"isLengthBetween":{let J=K(q,"min",G.minimum);if(!J)return;return K(J,"max",G.maximum)}case"isPattern":return K(q,"regex",G.regExp);case"isStartsWith":return K(q,"startsWith",G.startsWith);case"isEndsWith":return K(q,"endsWith",G.endsWith);case"isIncludes":return K(q,"includes",G.includes);case"isUUID":return K(q,"uuid");case"isULID":return K(q,"ulid");case"isBase64":return K(q,"base64");case"isBase64Url":return K(q,"base64url")}return}function K(q,H,...G){let J=q[H];return typeof J==="function"?J.apply(q,G):void 0}function b(q){if(typeof q?.annotations?.message==="string")return q.annotations.message;if(typeof q?.message==="string")return q.message;return}function x(q){if(F.isOptional(q))return T(q);switch(q._tag){case"String":return L.string();case"Number":return L.number();case"Boolean":return L.boolean();case"Null":return L.null();case"Undefined":return L.undefined();case"Any":case"Unknown":return L.unknown();case"Never":return L.never();case"Literal":return L.literal(q.literal);case"Union":return v(q);case"Objects":return w(q);case"Arrays":return S(q);case"Declaration":return z(q);default:return $(q)}}function T(q){if(q._tag!=="Union")return $(q);let H=q.types.filter((X)=>X._tag!=="Undefined"),G=H.length===1?V(H[0]):H.length>1?L.union(H.map(V)):L.undefined(),J=_(q);if(J!==void 0)return G.default(J.value);return G.optional()}function _(q){let H=q.encoding;if(!H?.length)return;for(let G of H){let J=M.runSyncExit(G.transformation.decode.run(C.none(),{}));if(J._tag!=="Success")continue;if(C.isSome(J.value))return{value:J.value.value}}return}function v(q){if(q.types.length>=2&&q.types.every((J)=>J._tag==="Literal"&&typeof J.literal==="string"))return L.enum(q.types.map((J)=>J.literal));let H=q.types.map(V);if(H.length===1)return H[0];if(H.length<2)return $(q);let G=q.annotations?.discriminator;if(typeof G==="string")return L.discriminatedUnion(G,H);return L.union(H)}function w(q){if(q.propertySignatures.length===0&&q.indexSignatures.length===1){let G=q.indexSignatures[0];if(G.parameter._tag!=="String")return $(q);return L.record(L.string(),V(G.type))}if(q.indexSignatures.length===0)return L.object(Object.fromEntries(q.propertySignatures.map((G)=>[String(G.name),V(G.type)])));if(q.indexSignatures.length!==1)return $(q);let H=q.indexSignatures[0];if(H.parameter._tag!=="String")return $(q);return L.object(Object.fromEntries(q.propertySignatures.map((G)=>[String(G.name),V(G.type)]))).catchall(V(H.type))}function S(q){if(q.elements.length===0){if(q.rest.length!==1)return $(q);return L.array(V(q.rest[0]))}if(q.rest.length>0)return $(q);let H=q.elements.map(V);return L.tuple(H)}function z(q){if(q.typeParameters.length!==1)return $(q);return V(q.typeParameters[0])}function $(q){let H=F.resolveIdentifier(q);throw Error(`unsupported effect schema: ${H??q._tag}`)}
|
|
3
|
+
export{g as $n,k as ao,y as bo,A as co,n as do};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Cd as b}from"./chunk-w8d9srv7.js";import{Pd as f}from"./chunk-9xvctnjr.js";import{Xg as S}from"./chunk-sv1s1qxd.js";import"./chunk-n7d9eemn.js";import"./chunk-pxx2hz0g.js";import"./chunk-rexdr63q.js";import"./chunk-kqhh2pm9.js";import"./chunk-7fawtcnn.js";import"./chunk-mdzzcrf9.js";import"./chunk-wev34grp.js";import{rl as v}from"./chunk-rtdym35y.js";import"./chunk-5myxjxae.js";import{Kl as U,Sl as R,am as k}from"./chunk-sp8ek94w.js";import"./chunk-gnt982jr.js";import"./chunk-1bx2sjn6.js";import"./chunk-17pxm5d3.js";import"./chunk-n38h109k.js";import"./chunk-25bp7pcm.js";import"./chunk-qdcf1ay5.js";import"./chunk-45mjcxqk.js";import"./chunk-qqne79vp.js";import"./chunk-64s7vfj7.js";import"./chunk-xjhezxft.js";import"./chunk-gwfx7tx7.js";import"./chunk-1wpjmwnh.js";import"./chunk-cqtkxwd8.js";import"./chunk-ymtcm4xd.js";import"./chunk-yykjvt7f.js";import"./chunk-3mepk08v.js";import"./chunk-atpzz901.js";import"./chunk-0g25z230.js";import"./chunk-w9pdvcf9.js";import"./chunk-4gs87ghj.js";import"./chunk-kb6v5hhm.js";import"./chunk-qyjt0qnq.js";import"./chunk-xdjwapwy.js";import{qt as Z}from"./chunk-cxtxvt43.js";import"./chunk-871f8x99.js";import"./chunk-cx7p4ezk.js";import"./chunk-tgd5ctnt.js";import"./chunk-p8kpqyxb.js";import"./chunk-3sz6gw10.js";import"./chunk-twhavv1m.js";import"./chunk-v0yxkq99.js";import"./chunk-2pzvcpv4.js";import"./chunk-kmtfdky8.js";import"./chunk-vc4e6xc4.js";import"./chunk-hnz570f9.js";import"./chunk-tdmn21z0.js";import"./chunk-s8mghr5a.js";import"./chunk-pqnbdygz.js";import"./chunk-ydc6ypjt.js";import"./chunk-ev3a2sxv.js";import"./chunk-pnq1h5az.js";import"./chunk-4sazy0nq.js";var i=f({command:"stats",describe:"show token usage and cost statistics",builder:(z)=>{return z.option("days",{describe:"show stats for the last N days (default: all time)",type:"number"}).option("tools",{describe:"number of tools to show (default: all)",type:"number"}).option("models",{describe:"show model statistics (default: hidden). Pass a number to show top N, otherwise shows all"}).option("project",{describe:"filter by project (default: all projects, empty string: current project)",type:"string"})},handler:async(z)=>{await b(process.cwd(),async()=>{let E=await y(z.days,z.project),_;if(z.models===!0)_=1/0;else if(typeof z.models==="number")_=z.models;u(E,z.tools,_)})}});async function w(){return k.project}async function p(){return R.use((E)=>E.select().from(U).all()).map((E)=>v.fromRow(E))}async function y(z,E){let _=await p(),L=86400000,J=(()=>{if(z===void 0)return 0;if(z===0){let V=new Date;return V.setHours(0,0,0,0),V.getTime()}return Date.now()-z*86400000})(),K=(()=>{if(z===void 0)return;if(z===0)return 1;return z})(),Y=J>0?_.filter((V)=>V.time.updated>=J):_;if(E!==void 0)if(E===""){let V=await w();Y=Y.filter((F)=>F.projectID===V.id)}else Y=Y.filter((V)=>V.projectID===E);let G={totalSessions:Y.length,totalMessages:0,totalCost:0,totalTokens:{input:0,output:0,reasoning:0,cache:{read:0,write:0}},toolUsage:{},modelUsage:{},dateRange:{earliest:Date.now(),latest:Date.now()},days:0,costPerDay:0,tokensPerSession:0,medianTokensPerSession:0};if(Y.length>1000)console.log(`Large dataset detected (${Y.length} sessions). This may take a while...`);if(Y.length===0)return G.days=K??0,G;let C=Date.now(),x=0,X=[],h=20;for(let V=0;V<Y.length;V+=h){let D=Y.slice(V,V+h).map(async(Q)=>{let W=await S.runPromise(v.Service.use((O)=>O.messages({sessionID:Q.id,agentID:"*"}))),N=0,H={input:0,output:0,reasoning:0,cache:{read:0,write:0}},j={},A={};for(let O of W){if(O.info.role==="assistant"){N+=O.info.cost||0;let B=`${O.info.providerID}/${O.info.modelID}`;if(!A[B])A[B]={messages:0,tokens:{input:0,output:0,cache:{read:0,write:0}},cost:0};if(A[B].messages++,A[B].cost+=O.info.cost||0,O.info.tokens)H.input+=O.info.tokens.input||0,H.output+=O.info.tokens.output||0,H.reasoning+=O.info.tokens.reasoning||0,H.cache.read+=O.info.tokens.cache?.read||0,H.cache.write+=O.info.tokens.cache?.write||0,A[B].tokens.input+=O.info.tokens.input||0,A[B].tokens.output+=(O.info.tokens.output||0)+(O.info.tokens.reasoning||0),A[B].tokens.cache.read+=O.info.tokens.cache?.read||0,A[B].tokens.cache.write+=O.info.tokens.cache?.write||0}for(let B of O.parts)if(B.type==="tool"&&B.tool)j[B.tool]=(j[B.tool]||0)+1}return{messageCount:W.length,sessionCost:N,sessionTokens:H,sessionTotalTokens:H.input+H.output+H.reasoning+H.cache.read+H.cache.write,sessionToolUsage:j,sessionModelUsage:A,earliestTime:J>0?Q.time.updated:Q.time.created,latestTime:Q.time.updated}}),M=await Promise.all(D);for(let Q of M){C=Math.min(C,Q.earliestTime),x=Math.max(x,Q.latestTime),X.push(Q.sessionTotalTokens),G.totalMessages+=Q.messageCount,G.totalCost+=Q.sessionCost,G.totalTokens.input+=Q.sessionTokens.input,G.totalTokens.output+=Q.sessionTokens.output,G.totalTokens.reasoning+=Q.sessionTokens.reasoning,G.totalTokens.cache.read+=Q.sessionTokens.cache.read,G.totalTokens.cache.write+=Q.sessionTokens.cache.write;for(let[W,N]of Object.entries(Q.sessionToolUsage))G.toolUsage[W]=(G.toolUsage[W]||0)+N;for(let[W,N]of Object.entries(Q.sessionModelUsage)){if(!G.modelUsage[W])G.modelUsage[W]={messages:0,tokens:{input:0,output:0,cache:{read:0,write:0}},cost:0};G.modelUsage[W].messages+=N.messages,G.modelUsage[W].tokens.input+=N.tokens.input,G.modelUsage[W].tokens.output+=N.tokens.output,G.modelUsage[W].tokens.cache.read+=N.tokens.cache.read,G.modelUsage[W].tokens.cache.write+=N.tokens.cache.write,G.modelUsage[W].cost+=N.cost}}}let $=Math.max(1,Math.ceil((x-C)/86400000)),q=K??$;G.dateRange={earliest:C,latest:x},G.days=q,G.costPerDay=G.totalCost/q;let I=G.totalTokens.input+G.totalTokens.output+G.totalTokens.reasoning+G.totalTokens.cache.read+G.totalTokens.cache.write;G.tokensPerSession=Y.length>0?I/Y.length:0,X.sort((V,F)=>V-F);let P=Math.floor(X.length/2);return G.medianTokensPerSession=X.length===0?0:X.length%2===0?(X[P-1]+X[P])/2:X[P],G}function u(z,E,_){function J(x,X){let $=55-x.length-X.length,q=Math.max(0,$);return`\u2502${x}${" ".repeat(q)}${X} \u2502`}console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"),console.log("\u2502 OVERVIEW \u2502"),console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524"),console.log(J("Sessions",z.totalSessions.toLocaleString())),console.log(J("Messages",z.totalMessages.toLocaleString())),console.log(J("Days",z.days.toString())),console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"),console.log(),console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"),console.log("\u2502 COST & TOKENS \u2502"),console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");let K=isNaN(z.totalCost)?0:z.totalCost,Y=isNaN(z.costPerDay)?0:z.costPerDay,G=isNaN(z.tokensPerSession)?0:z.tokensPerSession;console.log(J("Total Cost",`$${K.toFixed(2)}`)),console.log(J("Avg Cost/Day",`$${Y.toFixed(2)}`)),console.log(J("Avg Tokens/Session",Z.number(Math.round(G))));let C=isNaN(z.medianTokensPerSession)?0:z.medianTokensPerSession;if(console.log(J("Median Tokens/Session",Z.number(Math.round(C)))),console.log(J("Input",Z.number(z.totalTokens.input))),console.log(J("Output",Z.number(z.totalTokens.output))),console.log(J("Cache Read",Z.number(z.totalTokens.cache.read))),console.log(J("Cache Write",Z.number(z.totalTokens.cache.write))),console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"),console.log(),_!==void 0&&Object.keys(z.modelUsage).length>0){let x=Object.entries(z.modelUsage).sort(([,h],[,$])=>$.messages-h.messages),X=_===1/0?x:x.slice(0,_);console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"),console.log("\u2502 MODEL USAGE \u2502"),console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");for(let[h,$]of X)console.log(`\u2502 ${h.padEnd(54)} \u2502`),console.log(J(" Messages",$.messages.toLocaleString())),console.log(J(" Input Tokens",Z.number($.tokens.input))),console.log(J(" Output Tokens",Z.number($.tokens.output))),console.log(J(" Cache Read",Z.number($.tokens.cache.read))),console.log(J(" Cache Write",Z.number($.tokens.cache.write))),console.log(J(" Cost",`$${$.cost.toFixed(4)}`)),console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");process.stdout.write("\x1B[1A"),console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518")}if(console.log(),Object.keys(z.toolUsage).length>0){let x=Object.entries(z.toolUsage).sort(([,q],[,I])=>I-q),X=E?x.slice(0,E):x;console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"),console.log("\u2502 TOOL USAGE \u2502"),console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");let h=Math.max(...X.map(([,q])=>q)),$=Object.values(z.toolUsage).reduce((q,I)=>q+I,0);for(let[q,I]of X){let P=Math.max(1,Math.floor(I/h*20)),V="\u2588".repeat(P),F=(I/$*100).toFixed(1),D=18,W=` ${(q.length>18?q.substring(0,16)+"..":q).padEnd(18)} ${V.padEnd(20)} ${I.toString().padStart(3)} (${F.padStart(4)}%)`,N=Math.max(0,56-W.length-1);console.log(`\u2502${W}${" ".repeat(N)} \u2502`)}console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518")}console.log()}export{u as displayStats,y as aggregateSessionStats,i as StatsCommand};
|
|
2
|
+
import{Ed as b}from"./chunk-0yjdatm6.js";import{Rd as f}from"./chunk-yajd975f.js";import{Zg as S}from"./chunk-wcx7hc2p.js";import"./chunk-ehfxypks.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{tl as v}from"./chunk-a550vst5.js";import"./chunk-e374shb8.js";import{Ml as U,Ul as R,cm as k}from"./chunk-zcp0wx4j.js";import"./chunk-epa576pa.js";import"./chunk-y287zwkr.js";import"./chunk-7zc04q43.js";import"./chunk-vtw0wwch.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-8d6e4jg7.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-s77qktcn.js";import"./chunk-8v6x712g.js";import"./chunk-pfkm3j8g.js";import{Vr as Z}from"./chunk-h2bmss2m.js";import"./chunk-ywdtp534.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-0cdtq1r3.js";import"./chunk-xmjntwjc.js";import"./chunk-tj3rem3q.js";import"./chunk-7q003wdd.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-a92hh67a.js";import"./chunk-qhnpq5gb.js";import"./chunk-f83wv08n.js";var i=f({command:"stats",describe:"show token usage and cost statistics",builder:(z)=>{return z.option("days",{describe:"show stats for the last N days (default: all time)",type:"number"}).option("tools",{describe:"number of tools to show (default: all)",type:"number"}).option("models",{describe:"show model statistics (default: hidden). Pass a number to show top N, otherwise shows all"}).option("project",{describe:"filter by project (default: all projects, empty string: current project)",type:"string"})},handler:async(z)=>{await b(process.cwd(),async()=>{let E=await y(z.days,z.project),_;if(z.models===!0)_=1/0;else if(typeof z.models==="number")_=z.models;u(E,z.tools,_)})}});async function w(){return k.project}async function p(){return R.use((E)=>E.select().from(U).all()).map((E)=>v.fromRow(E))}async function y(z,E){let _=await p(),L=86400000,J=(()=>{if(z===void 0)return 0;if(z===0){let V=new Date;return V.setHours(0,0,0,0),V.getTime()}return Date.now()-z*86400000})(),K=(()=>{if(z===void 0)return;if(z===0)return 1;return z})(),Y=J>0?_.filter((V)=>V.time.updated>=J):_;if(E!==void 0)if(E===""){let V=await w();Y=Y.filter((F)=>F.projectID===V.id)}else Y=Y.filter((V)=>V.projectID===E);let G={totalSessions:Y.length,totalMessages:0,totalCost:0,totalTokens:{input:0,output:0,reasoning:0,cache:{read:0,write:0}},toolUsage:{},modelUsage:{},dateRange:{earliest:Date.now(),latest:Date.now()},days:0,costPerDay:0,tokensPerSession:0,medianTokensPerSession:0};if(Y.length>1000)console.log(`Large dataset detected (${Y.length} sessions). This may take a while...`);if(Y.length===0)return G.days=K??0,G;let C=Date.now(),x=0,X=[],h=20;for(let V=0;V<Y.length;V+=h){let D=Y.slice(V,V+h).map(async(Q)=>{let W=await S.runPromise(v.Service.use((O)=>O.messages({sessionID:Q.id,agentID:"*"}))),N=0,H={input:0,output:0,reasoning:0,cache:{read:0,write:0}},j={},A={};for(let O of W){if(O.info.role==="assistant"){N+=O.info.cost||0;let B=`${O.info.providerID}/${O.info.modelID}`;if(!A[B])A[B]={messages:0,tokens:{input:0,output:0,cache:{read:0,write:0}},cost:0};if(A[B].messages++,A[B].cost+=O.info.cost||0,O.info.tokens)H.input+=O.info.tokens.input||0,H.output+=O.info.tokens.output||0,H.reasoning+=O.info.tokens.reasoning||0,H.cache.read+=O.info.tokens.cache?.read||0,H.cache.write+=O.info.tokens.cache?.write||0,A[B].tokens.input+=O.info.tokens.input||0,A[B].tokens.output+=(O.info.tokens.output||0)+(O.info.tokens.reasoning||0),A[B].tokens.cache.read+=O.info.tokens.cache?.read||0,A[B].tokens.cache.write+=O.info.tokens.cache?.write||0}for(let B of O.parts)if(B.type==="tool"&&B.tool)j[B.tool]=(j[B.tool]||0)+1}return{messageCount:W.length,sessionCost:N,sessionTokens:H,sessionTotalTokens:H.input+H.output+H.reasoning+H.cache.read+H.cache.write,sessionToolUsage:j,sessionModelUsage:A,earliestTime:J>0?Q.time.updated:Q.time.created,latestTime:Q.time.updated}}),M=await Promise.all(D);for(let Q of M){C=Math.min(C,Q.earliestTime),x=Math.max(x,Q.latestTime),X.push(Q.sessionTotalTokens),G.totalMessages+=Q.messageCount,G.totalCost+=Q.sessionCost,G.totalTokens.input+=Q.sessionTokens.input,G.totalTokens.output+=Q.sessionTokens.output,G.totalTokens.reasoning+=Q.sessionTokens.reasoning,G.totalTokens.cache.read+=Q.sessionTokens.cache.read,G.totalTokens.cache.write+=Q.sessionTokens.cache.write;for(let[W,N]of Object.entries(Q.sessionToolUsage))G.toolUsage[W]=(G.toolUsage[W]||0)+N;for(let[W,N]of Object.entries(Q.sessionModelUsage)){if(!G.modelUsage[W])G.modelUsage[W]={messages:0,tokens:{input:0,output:0,cache:{read:0,write:0}},cost:0};G.modelUsage[W].messages+=N.messages,G.modelUsage[W].tokens.input+=N.tokens.input,G.modelUsage[W].tokens.output+=N.tokens.output,G.modelUsage[W].tokens.cache.read+=N.tokens.cache.read,G.modelUsage[W].tokens.cache.write+=N.tokens.cache.write,G.modelUsage[W].cost+=N.cost}}}let $=Math.max(1,Math.ceil((x-C)/86400000)),q=K??$;G.dateRange={earliest:C,latest:x},G.days=q,G.costPerDay=G.totalCost/q;let I=G.totalTokens.input+G.totalTokens.output+G.totalTokens.reasoning+G.totalTokens.cache.read+G.totalTokens.cache.write;G.tokensPerSession=Y.length>0?I/Y.length:0,X.sort((V,F)=>V-F);let P=Math.floor(X.length/2);return G.medianTokensPerSession=X.length===0?0:X.length%2===0?(X[P-1]+X[P])/2:X[P],G}function u(z,E,_){function J(x,X){let $=55-x.length-X.length,q=Math.max(0,$);return`\u2502${x}${" ".repeat(q)}${X} \u2502`}console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"),console.log("\u2502 OVERVIEW \u2502"),console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524"),console.log(J("Sessions",z.totalSessions.toLocaleString())),console.log(J("Messages",z.totalMessages.toLocaleString())),console.log(J("Days",z.days.toString())),console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"),console.log(),console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"),console.log("\u2502 COST & TOKENS \u2502"),console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");let K=isNaN(z.totalCost)?0:z.totalCost,Y=isNaN(z.costPerDay)?0:z.costPerDay,G=isNaN(z.tokensPerSession)?0:z.tokensPerSession;console.log(J("Total Cost",`$${K.toFixed(2)}`)),console.log(J("Avg Cost/Day",`$${Y.toFixed(2)}`)),console.log(J("Avg Tokens/Session",Z.number(Math.round(G))));let C=isNaN(z.medianTokensPerSession)?0:z.medianTokensPerSession;if(console.log(J("Median Tokens/Session",Z.number(Math.round(C)))),console.log(J("Input",Z.number(z.totalTokens.input))),console.log(J("Output",Z.number(z.totalTokens.output))),console.log(J("Cache Read",Z.number(z.totalTokens.cache.read))),console.log(J("Cache Write",Z.number(z.totalTokens.cache.write))),console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"),console.log(),_!==void 0&&Object.keys(z.modelUsage).length>0){let x=Object.entries(z.modelUsage).sort(([,h],[,$])=>$.messages-h.messages),X=_===1/0?x:x.slice(0,_);console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"),console.log("\u2502 MODEL USAGE \u2502"),console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");for(let[h,$]of X)console.log(`\u2502 ${h.padEnd(54)} \u2502`),console.log(J(" Messages",$.messages.toLocaleString())),console.log(J(" Input Tokens",Z.number($.tokens.input))),console.log(J(" Output Tokens",Z.number($.tokens.output))),console.log(J(" Cache Read",Z.number($.tokens.cache.read))),console.log(J(" Cache Write",Z.number($.tokens.cache.write))),console.log(J(" Cost",`$${$.cost.toFixed(4)}`)),console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");process.stdout.write("\x1B[1A"),console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518")}if(console.log(),Object.keys(z.toolUsage).length>0){let x=Object.entries(z.toolUsage).sort(([,q],[,I])=>I-q),X=E?x.slice(0,E):x;console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"),console.log("\u2502 TOOL USAGE \u2502"),console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");let h=Math.max(...X.map(([,q])=>q)),$=Object.values(z.toolUsage).reduce((q,I)=>q+I,0);for(let[q,I]of X){let P=Math.max(1,Math.floor(I/h*20)),V="\u2588".repeat(P),F=(I/$*100).toFixed(1),D=18,W=` ${(q.length>18?q.substring(0,16)+"..":q).padEnd(18)} ${V.padEnd(20)} ${I.toString().padStart(3)} (${F.padStart(4)}%)`,N=Math.max(0,56-W.length-1);console.log(`\u2502${W}${" ".repeat(N)} \u2502`)}console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518")}console.log()}export{u as displayStats,y as aggregateSessionStats,i as StatsCommand};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-f83wv08n.js";var e={"ui.sessionReview.title":"Modifications de la session","ui.sessionReview.title.lastTurn":"Modifications du dernier tour","ui.sessionReview.diffStyle.unified":"Unifi\xE9","ui.sessionReview.diffStyle.split":"Divis\xE9","ui.sessionReview.openFile":"Ouvrir le fichier","ui.sessionReview.selection.line":"ligne {{line}}","ui.sessionReview.selection.lines":"lignes {{start}}-{{end}}","ui.sessionReview.expandAll":"Tout d\xE9velopper","ui.sessionReview.collapseAll":"Tout r\xE9duire","ui.sessionReview.change.added":"Ajout\xE9","ui.sessionReview.change.removed":"Supprim\xE9","ui.sessionReview.change.modified":"Modifi\xE9","ui.sessionReview.image.loading":"Chargement...","ui.sessionReview.image.placeholder":"Image","ui.sessionReview.largeDiff.title":"Diff trop volumineux pour \xEAtre affich\xE9","ui.sessionReview.largeDiff.meta":"Limite : {{limit}} lignes modifi\xE9es. Actuel : {{current}} lignes modifi\xE9es.","ui.sessionReview.largeDiff.renderAnyway":"Afficher quand m\xEAme","ui.fileMedia.kind.image":"image","ui.fileMedia.kind.audio":"audio","ui.fileMedia.state.removed":"Fichier {{kind}} supprim\xE9","ui.fileMedia.state.loading":"Chargement du fichier {{kind}}","ui.fileMedia.state.error":"Erreur avec le fichier {{kind}}","ui.fileMedia.state.unavailable":"Fichier {{kind}} indisponible","ui.fileMedia.binary.title":"Fichier binaire","ui.fileMedia.binary.description.path":"Impossible d'afficher {{path}} car il s'agit d'un fichier binaire.","ui.fileMedia.binary.description.default":"Impossible d'afficher ce fichier car il s'agit d'un fichier binaire.","ui.lineComment.label.prefix":"Commenter sur ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"Commentaire sur ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"Ajouter un commentaire","ui.lineComment.submit":"Commenter","ui.sessionTurn.steps.show":"Afficher les \xE9tapes","ui.sessionTurn.steps.hide":"Masquer les \xE9tapes","ui.sessionTurn.summary.response":"R\xE9ponse","ui.sessionTurn.diff.showMore":"Afficher plus de modifications ({{count}})","ui.sessionTurn.retry.retrying":"nouvelle tentative","ui.sessionTurn.retry.inSeconds":"dans {{seconds}}s","ui.sessionTurn.retry.attempt":"tentative n\xB0{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - tentative n\xB0{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini est en surchauffe","ui.sessionTurn.error.freeUsageExceeded":"Limite d'utilisation gratuite d\xE9pass\xE9e","ui.sessionTurn.error.addQredits":"Ajouter des cr\xE9dits","ui.sessionTurn.status.delegating":"D\xE9l\xE9gation du travail","ui.sessionTurn.status.planning":"Planification des prochaines \xE9tapes","ui.sessionTurn.status.gatheringContext":"Exploration","ui.sessionTurn.status.gatheredContext":"Explor\xE9","ui.sessionTurn.status.searchingCodebase":"Recherche dans la base de code","ui.sessionTurn.status.searchingWeb":"Recherche sur le web","ui.sessionTurn.status.makingEdits":"Application des modifications","ui.sessionTurn.status.runningCommands":"Ex\xE9cution des commandes","ui.sessionTurn.status.thinking":"R\xE9flexion","ui.sessionTurn.status.thinkingWithTopic":"R\xE9flexion - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"Rassemblement des id\xE9es","ui.sessionTurn.status.consideringNextSteps":"Examen des prochaines \xE9tapes","ui.messagePart.questions.dismissed":"Questions ignor\xE9es","ui.messagePart.compaction":"Session compact\xE9e","ui.messagePart.context.read.one":"{{count}} lecture","ui.messagePart.context.read.other":"{{count}} lectures","ui.messagePart.context.search.one":"{{count}} recherche","ui.messagePart.context.search.other":"{{count}} recherches","ui.messagePart.context.list.one":"{{count}} liste","ui.messagePart.context.list.other":"{{count}} listes","ui.messagePart.diagnostic.error":"Erreur","ui.messagePart.title.edit":"Modifier","ui.messagePart.title.write":"\xC9crire","ui.messagePart.option.typeOwnAnswer":"Tapez votre propre r\xE9ponse","ui.messagePart.review.title":"Passez en revue vos r\xE9ponses","ui.list.loading":"Chargement","ui.list.empty":"Aucun r\xE9sultat","ui.list.clearFilter":"Effacer le filtre","ui.list.emptyWithFilter.prefix":"Aucun r\xE9sultat pour","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"Nouveau message","ui.textField.copyToClipboard":"Copier dans le presse-papiers","ui.textField.copyLink":"Copier le lien","ui.textField.copied":"Copi\xE9","ui.imagePreview.alt":"Aper\xE7u de l'image","ui.scrollView.ariaLabel":"contenu d\xE9filable","ui.tool.read":"Lire","ui.tool.loaded":"Charg\xE9","ui.tool.list":"Lister","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Webfetch","ui.tool.websearch":"Recherche Web","ui.tool.codesearch":"Recherche de code","ui.tool.shell":"Shell","ui.tool.patch":"Patch","ui.tool.todos":"T\xE2ches","ui.tool.todos.read":"Lire les t\xE2ches","ui.tool.questions":"Questions","ui.tool.agent":"Agent {{type}}","ui.tool.agent.default":"Agent","ui.common.file.one":"fichier","ui.common.file.other":"fichiers","ui.common.question.one":"question","ui.common.question.other":"questions","ui.common.add":"Ajouter","ui.common.back":"Retour","ui.common.cancel":"Annuler","ui.common.confirm":"Confirmer","ui.common.dismiss":"Ignorer","ui.common.close":"Fermer","ui.common.next":"Suivant","ui.common.submit":"Soumettre","ui.permission.deny":"Refuser","ui.permission.allowAlways":"Toujours autoriser","ui.permission.allowOnce":"Autoriser une fois","ui.message.expand":"D\xE9velopper le message","ui.message.collapse":"R\xE9duire le message","ui.message.copy":"Copier","ui.message.copyMessage":"Copier le message","ui.message.forkMessage":"Bifurquer vers une nouvelle session","ui.message.revertMessage":"R\xE9initialiser \xE0 ce point","ui.message.copyResponse":"Copier la r\xE9ponse","ui.message.copied":"Copi\xE9 !","ui.message.interrupted":"Interrompu","ui.message.queued":"En file","ui.message.attachment.alt":"pi\xE8ce jointe","ui.patch.action.deleted":"Supprim\xE9","ui.patch.action.created":"Cr\xE9\xE9","ui.patch.action.moved":"D\xE9plac\xE9","ui.patch.action.patched":"Corrig\xE9","ui.question.subtitle.answered":"{{count}} r\xE9pondu(s)","ui.question.answer.none":"(pas de r\xE9ponse)","ui.question.review.notAnswered":"(non r\xE9pondu)","ui.question.multiHint":"S\xE9lectionnez tout ce qui s'applique","ui.question.singleHint":"S\xE9lectionnez une r\xE9ponse","ui.question.custom.placeholder":"Tapez votre r\xE9ponse...","ui.fileSearch.placeholder":"Rechercher","ui.fileSearch.previousMatch":"Pr\xE9c\xE9dent","ui.fileSearch.nextMatch":"Suivant","ui.fileSearch.close":"Fermer la recherche","ui.tool.task":"T\xE2che","ui.tool.skill":"Comp\xE9tence","ui.basicTool.called":"Appel\xE9 `{{tool}}`","ui.toolErrorCard.failed":"\xC9chou\xE9","ui.toolErrorCard.copyError":"Copier l'erreur","ui.message.duration.seconds":"{{count}}s","ui.message.duration.minutesSeconds":"{{minutes}}m {{seconds}}s"};export{e as dict};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Bg as a}from"./chunk-h10wjk96.js";import{Og as t,Zg as c}from"./chunk-wcx7hc2p.js";import"./chunk-ehfxypks.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"./chunk-a550vst5.js";import"./chunk-e374shb8.js";import"./chunk-zcp0wx4j.js";import"./chunk-epa576pa.js";import"./chunk-y287zwkr.js";import"./chunk-7zc04q43.js";import"./chunk-vtw0wwch.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-8d6e4jg7.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-s77qktcn.js";import"./chunk-8v6x712g.js";import"./chunk-pfkm3j8g.js";import"./chunk-h2bmss2m.js";import"./chunk-ywdtp534.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-0cdtq1r3.js";import"./chunk-xmjntwjc.js";import"./chunk-tj3rem3q.js";import"./chunk-7q003wdd.js";import"./chunk-cbmwhvxw.js";import{Et as i}from"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import"./chunk-f83wv08n.js";var n=i.object({name:a.shape.name,branch:a.shape.branch.unwrap(),directory:a.shape.directory.unwrap()}),d={name:"Worktree",description:"Create a git worktree",async configure(e){let r=await c.runPromise(t.Service.use((o)=>o.makeWorktreeInfo()));return{...e,name:r.name,branch:r.branch,directory:r.directory}},async create(e){let r=n.parse(e);await c.runPromise(t.Service.use((o)=>o.createFromInfo({name:r.name,directory:r.directory,branch:r.branch})))},async remove(e){let r=n.parse(e);await c.runPromise(t.Service.use((o)=>o.remove({directory:r.directory})))},target(e){return{type:"local",directory:n.parse(e).directory}}};export{d as WorktreeAdaptor};
|