@qitqode/qitqode-android-arm64 0.2.13 → 0.2.15
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 +2 -2
- package/bundle/{chunk-9c0f79mt.js → chunk-00ft63qn.js} +1 -1
- package/bundle/{chunk-vr7525pa.js → chunk-02tmc2st.js} +1 -1
- package/bundle/{chunk-ewde5bss.js → chunk-06tgmvh6.js} +2 -2
- package/bundle/{chunk-wqm1vawg.js → chunk-0ejx0yqx.js} +1 -1
- package/bundle/{chunk-2md5fz4f.js → chunk-0m4gvjcv.js} +2 -2
- package/bundle/{chunk-jf4zyy7r.js → chunk-0mztgsxp.js} +1 -1
- package/bundle/{chunk-7bvh48s2.js → chunk-10kj86va.js} +1 -1
- package/bundle/{chunk-b46t2315.js → chunk-10q04xh5.js} +1 -1
- package/bundle/{chunk-dwjv3m5s.js → chunk-175720ws.js} +2 -2
- package/bundle/{chunk-xgphhnpk.js → chunk-19rs84t8.js} +1 -1
- package/bundle/{chunk-hsmtjb4d.js → chunk-1bq15kf0.js} +2 -2
- package/bundle/{chunk-1sejtx9a.js → chunk-1e75j4m1.js} +2 -2
- package/bundle/{chunk-dmgdwvn1.js → chunk-1pft3sar.js} +1 -1
- package/bundle/chunk-1r7anzk5.js +2 -0
- package/bundle/{chunk-rr94dpe9.js → chunk-1ypzf18e.js} +1 -1
- package/bundle/{chunk-q7wc3frq.js → chunk-2d61z24r.js} +1 -1
- package/bundle/{chunk-r9hsd9pw.js → chunk-2fged9vy.js} +1 -1
- package/bundle/chunk-2jzay8a9.js +2 -0
- package/bundle/{chunk-5828bcp8.js → chunk-2k2szpze.js} +1 -1
- package/bundle/{chunk-2p1qaqv3.js → chunk-2pw56zpj.js} +2 -2
- package/bundle/{chunk-yzxcjr6y.js → chunk-2tkgtasa.js} +2 -2
- package/bundle/{chunk-jrh028na.js → chunk-2w3n0q9m.js} +2 -2
- package/bundle/chunk-30rghawe.js +2 -0
- package/bundle/{chunk-jt94rhev.js → chunk-3152y1q9.js} +1 -1
- package/bundle/{chunk-1851skhm.js → chunk-31a47ptm.js} +1 -1
- package/bundle/chunk-33mzqyyb.js +3 -0
- package/bundle/{chunk-fqzfytjk.js → chunk-3c73rngn.js} +1 -1
- package/bundle/{chunk-wspm2k19.js → chunk-3cs1qf8x.js} +1 -1
- package/bundle/chunk-3dajnr1w.js +2 -0
- package/bundle/chunk-3ege6krg.js +2 -0
- package/bundle/chunk-43vpxggb.js +2 -0
- package/bundle/{chunk-hcd0k14e.js → chunk-48rg4yhk.js} +2 -2
- package/bundle/chunk-49y7zg15.js +2 -0
- package/bundle/{chunk-etvwxwn3.js → chunk-4b56k59w.js} +1 -1
- package/bundle/{chunk-aq75kv5f.js → chunk-4gzggzc0.js} +3 -3
- package/bundle/{chunk-rqdfmbns.js → chunk-4jfnhghx.js} +2 -2
- package/bundle/{chunk-g6ffx794.js → chunk-4ppw719f.js} +1 -1
- package/bundle/{chunk-g0x6q2ks.js → chunk-4r7fbkcm.js} +1 -1
- package/bundle/{chunk-5fbzvy6q.js → chunk-4s1n38ds.js} +2 -2
- package/bundle/{chunk-z6qb4gt5.js → chunk-4v29ayke.js} +1 -1
- package/bundle/{chunk-qa38xchd.js → chunk-4xcwnwd6.js} +1 -1
- package/bundle/{chunk-gvc1mqrs.js → chunk-4xqwt6dr.js} +2 -2
- package/bundle/{chunk-1bhcg889.js → chunk-4ycg2c6f.js} +2 -2
- package/bundle/{chunk-3be70hxy.js → chunk-4yd2vvh6.js} +1 -1
- package/bundle/{chunk-pzn7cade.js → chunk-5341jv20.js} +1 -1
- package/bundle/{chunk-z4gczap3.js → chunk-5asf8f41.js} +72 -72
- package/bundle/{chunk-z6f54x4k.js → chunk-5cwy8y78.js} +2 -2
- package/bundle/{chunk-6g3bzap8.js → chunk-5dvy83ms.js} +2 -2
- package/bundle/{chunk-ff031crt.js → chunk-5h1s0akp.js} +1 -1
- package/bundle/{chunk-tn0sfsks.js → chunk-5mf4qrye.js} +2 -2
- package/bundle/{chunk-0mdmqtfr.js → chunk-5q98z8ck.js} +2 -2
- package/bundle/chunk-5qhsfjzq.js +3 -0
- package/bundle/chunk-5re7995e.js +2 -0
- package/bundle/{chunk-y9kjt2jj.js → chunk-5rvvfgfy.js} +2 -2
- package/bundle/chunk-5xxn06g0.js +2 -0
- package/bundle/{chunk-2d0vympj.js → chunk-61b81z2h.js} +1 -1
- package/bundle/{chunk-4enhsmq1.js → chunk-62gefpwn.js} +2 -2
- package/bundle/{chunk-2h8b0csf.js → chunk-674pexjx.js} +2 -2
- package/bundle/{chunk-4ar8hey8.js → chunk-69htq8kq.js} +1 -1
- package/bundle/{chunk-h1p3xcfp.js → chunk-69k7cdtv.js} +2 -2
- package/bundle/{chunk-53n3tfwn.js → chunk-6cztstry.js} +2 -2
- package/bundle/{chunk-vqxyk6as.js → chunk-6dd2dx69.js} +2 -2
- package/bundle/{chunk-eftk07r3.js → chunk-6j53vtzd.js} +1 -1
- package/bundle/chunk-6k0y2332.js +2 -0
- package/bundle/{chunk-sn15skh8.js → chunk-6pt6nqwk.js} +1 -1
- package/bundle/{chunk-6wt8g6mc.js → chunk-6qwnty59.js} +2 -2
- package/bundle/{chunk-vvmvryh1.js → chunk-6yshpz0z.js} +2 -2
- package/bundle/{chunk-cv3xdp8q.js → chunk-6zdzbmzs.js} +394 -323
- package/bundle/{chunk-2ts2s8b4.js → chunk-71jmhvef.js} +2 -2
- package/bundle/{chunk-9xbc558j.js → chunk-73a7ts8r.js} +1 -1
- package/bundle/{chunk-sv27ep93.js → chunk-76wm7tw8.js} +2 -2
- package/bundle/chunk-7cp30q0t.js +2 -0
- package/bundle/chunk-7t63wz2f.js +2 -0
- package/bundle/{chunk-v30fmrz0.js → chunk-7w571q26.js} +1 -1
- package/bundle/{chunk-fbd971t7.js → chunk-83n11xym.js} +3 -3
- package/bundle/{chunk-m18pxkdg.js → chunk-840mmmzz.js} +4 -4
- package/bundle/{chunk-jcn8bg31.js → chunk-86reb44c.js} +1 -1
- package/bundle/{chunk-hnbtfpb7.js → chunk-86sfzgnf.js} +1 -1
- package/bundle/{chunk-4krmja97.js → chunk-878sb0es.js} +2 -2
- package/bundle/{chunk-v9yxkbz7.js → chunk-8a9sj8gp.js} +1 -1
- package/bundle/{chunk-0cjp9088.js → chunk-8gkz5550.js} +1 -1
- package/bundle/chunk-8gz8fk6r.js +2 -0
- package/bundle/chunk-8ht7cq3h.js +2 -0
- package/bundle/{chunk-msbe5rb7.js → chunk-8mqcar7f.js} +1 -1
- package/bundle/{chunk-3rcfy8te.js → chunk-8qpfphdz.js} +1 -1
- package/bundle/chunk-8qv0119d.js +2 -0
- package/bundle/{chunk-t1hw67x4.js → chunk-8zpsgfb6.js} +1 -1
- package/bundle/{chunk-c99npyz9.js → chunk-96sra8g8.js} +1 -1
- package/bundle/{chunk-nn2hbew8.js → chunk-99df6wvm.js} +1 -1
- package/bundle/{chunk-5wjwzbk8.js → chunk-9amnqaeq.js} +1 -1
- package/bundle/{chunk-hk8m8vax.js → chunk-9kc2th5c.js} +2 -2
- package/bundle/chunk-9m0eawt5.js +2 -0
- package/bundle/{chunk-fj87htwn.js → chunk-9mabvb06.js} +1 -1
- package/bundle/{chunk-xn6mwsc9.js → chunk-9ttebtcf.js} +1 -1
- package/bundle/{chunk-mfg4stzn.js → chunk-a1mbach4.js} +1 -1
- package/bundle/chunk-a32y70fe.js +2 -0
- package/bundle/{chunk-hgcnzsd5.js → chunk-a3g8de96.js} +1 -1
- package/bundle/{chunk-bydaqb08.js → chunk-a8askx4y.js} +1 -1
- package/bundle/{chunk-gcpwm7b5.js → chunk-adws0hhk.js} +2 -2
- package/bundle/{chunk-08mgb5tt.js → chunk-ae1b15bd.js} +12 -10
- package/bundle/{chunk-y5m9c5ek.js → chunk-ahgb3r1c.js} +2 -2
- package/bundle/chunk-apneazwv.js +2 -0
- package/bundle/{chunk-6p848y99.js → chunk-art8gejd.js} +1 -1
- package/bundle/{chunk-eh73j82b.js → chunk-avksqxan.js} +1 -1
- package/bundle/chunk-aw5yv01t.js +2 -0
- package/bundle/chunk-az12tp53.js +2 -0
- package/bundle/{chunk-gjmxrz0v.js → chunk-b350g18y.js} +2 -2
- package/bundle/chunk-b5dpzcc7.js +2 -0
- package/bundle/{chunk-c1srcpfk.js → chunk-b6m5tr80.js} +1 -1
- package/bundle/chunk-baq0wk3q.js +2 -0
- package/bundle/chunk-bcgtqx3g.js +2 -0
- package/bundle/{chunk-0w77vhg4.js → chunk-bdcd2mcb.js} +2 -2
- package/bundle/chunk-bde5d507.js +2 -0
- package/bundle/{chunk-139qfnsq.js → chunk-bemyyen3.js} +1 -1
- package/bundle/{chunk-1bbx1da7.js → chunk-bmdqb48f.js} +1 -1
- package/bundle/{chunk-bpv378bm.js → chunk-bq6cvf16.js} +2 -2
- package/bundle/{chunk-t66gerft.js → chunk-bxnsrggq.js} +1 -1
- package/bundle/{chunk-2b80n6nx.js → chunk-bzh71a92.js} +1 -1
- package/bundle/chunk-bzzggc3s.js +2 -0
- package/bundle/{chunk-2bfq0mtx.js → chunk-c1wc4b5q.js} +1 -1
- package/bundle/{chunk-78rfz0ex.js → chunk-c5cyt23k.js} +2 -2
- package/bundle/chunk-c8qx439t.js +2 -0
- package/bundle/{chunk-t1e52h0k.js → chunk-ch7s512a.js} +1 -1
- package/bundle/chunk-ckw51fn6.js +2 -0
- package/bundle/{chunk-1rafe6f5.js → chunk-crqycrs4.js} +2 -2
- package/bundle/{chunk-bd4krah7.js → chunk-csy1v12x.js} +1 -1
- package/bundle/{chunk-z2cnd2cp.js → chunk-d10qre1b.js} +1 -1
- package/bundle/{chunk-v6djkm35.js → chunk-d385e2qt.js} +1 -1
- package/bundle/{chunk-paqy0c2v.js → chunk-d4faz5xa.js} +1 -1
- package/bundle/{chunk-8xbd0ra5.js → chunk-d7h1dp0h.js} +1 -1
- package/bundle/chunk-denp0wrq.js +2 -0
- package/bundle/chunk-depxzjer.js +2 -0
- package/bundle/chunk-dhvqpcf3.js +2 -0
- package/bundle/{chunk-gdawpkxs.js → chunk-djdfpezf.js} +1 -1
- package/bundle/chunk-dkqqswbv.js +2 -0
- package/bundle/{chunk-e4658j15.js → chunk-dmb0ez0m.js} +3 -3
- package/bundle/chunk-dpbm03yh.js +2 -0
- package/bundle/{chunk-es6vbsjg.js → chunk-dvp0r93q.js} +1 -1
- package/bundle/{chunk-374js0y6.js → chunk-e18hshcg.js} +1 -1
- package/bundle/{chunk-5rtsnnjk.js → chunk-e37gd3p2.js} +1 -1
- package/bundle/chunk-e5t7jsxa.js +2 -0
- package/bundle/{chunk-wac35a6p.js → chunk-e611m0p4.js} +1 -1
- package/bundle/chunk-eb811dt2.js +2 -0
- package/bundle/{chunk-95ga21eq.js → chunk-edvfqxfr.js} +1 -1
- package/bundle/{chunk-yhe5qz48.js → chunk-ej0yzstw.js} +2 -2
- package/bundle/{chunk-7p8f8xav.js → chunk-ep4drmt9.js} +1 -1
- package/bundle/{chunk-xaewye8w.js → chunk-eqsank84.js} +1 -1
- package/bundle/{chunk-84712kbe.js → chunk-estc7tzt.js} +2 -2
- package/bundle/{chunk-s7ypkpg2.js → chunk-et3tgx7t.js} +1 -1
- package/bundle/{chunk-trg0zg0q.js → chunk-f0dp1tf9.js} +1 -1
- package/bundle/{chunk-z1psybn1.js → chunk-f0x3q5dj.js} +2 -2
- package/bundle/chunk-fbz2xv2w.js +2 -0
- package/bundle/{chunk-mbma071k.js → chunk-fdmz0502.js} +2 -2
- package/bundle/{chunk-mrh5q4s6.js → chunk-ffx0cr44.js} +2 -2
- package/bundle/{chunk-e6s8ep9m.js → chunk-ffyj5nsg.js} +2 -2
- package/bundle/chunk-ffynh19k.js +2 -0
- package/bundle/chunk-fgr9xshx.js +2 -0
- package/bundle/{chunk-9a9qcvtz.js → chunk-fkq0v5qv.js} +2 -2
- package/bundle/{chunk-mp5m0acf.js → chunk-fmcg649e.js} +1 -1
- package/bundle/{chunk-g3y5kvg6.js → chunk-fp2xgnjn.js} +2 -2
- package/bundle/{chunk-rwt0rwvn.js → chunk-fswt9qc0.js} +2 -2
- package/bundle/{chunk-1exjy880.js → chunk-g77kddrs.js} +2 -2
- package/bundle/chunk-gbvcb4k1.js +2 -0
- package/bundle/{chunk-mgff8bcx.js → chunk-gd0j16gn.js} +1 -1
- package/bundle/chunk-gdtnqzbp.js +2 -0
- package/bundle/{chunk-hrfdrz36.js → chunk-gfvq78gy.js} +1 -1
- package/bundle/chunk-gkfvhh28.js +2 -0
- package/bundle/chunk-gvx5hmhk.js +2 -0
- package/bundle/chunk-gww6abk3.js +2 -0
- package/bundle/{chunk-1f9qcrn6.js → chunk-h036zy9e.js} +2 -2
- package/bundle/{chunk-71naz1qp.js → chunk-h6b5966p.js} +1 -1
- package/bundle/{chunk-zhddj91f.js → chunk-hf39qx6t.js} +2 -2
- package/bundle/chunk-hham7r33.js +2 -0
- package/bundle/chunk-hmm0gj34.js +3 -0
- package/bundle/{chunk-404ew3d3.js → chunk-hmmn62jg.js} +1 -1
- package/bundle/{chunk-map852em.js → chunk-hrcqbadm.js} +1 -1
- package/bundle/chunk-hsjbe5zy.js +2 -0
- package/bundle/{chunk-04x4b2yy.js → chunk-j15wejz0.js} +1 -1
- package/bundle/{chunk-5es19n1m.js → chunk-j2snkw45.js} +2 -2
- package/bundle/{chunk-z66xdxkg.js → chunk-j3agzs13.js} +2 -2
- package/bundle/{chunk-4wzv2v36.js → chunk-j45p2v4a.js} +3 -3
- package/bundle/{chunk-094m66q5.js → chunk-j46bxb1b.js} +1 -1
- package/bundle/chunk-j89sv999.js +2 -0
- package/bundle/{chunk-1gt6ppza.js → chunk-k0chq88p.js} +1 -1
- package/bundle/{chunk-81mwbcy3.js → chunk-k4wfq9cn.js} +2 -2
- package/bundle/{chunk-8t17w67q.js → chunk-k769v1ds.js} +1 -1
- package/bundle/{chunk-rf9pjbg3.js → chunk-k8dbc1p5.js} +1 -1
- package/bundle/chunk-k9b4005p.js +2 -0
- package/bundle/{chunk-xgdst5n5.js → chunk-kegvr7wt.js} +2 -2
- package/bundle/chunk-kht2kwam.js +2 -0
- package/bundle/{chunk-h2vtypa5.js → chunk-knqpyc7s.js} +1 -1
- package/bundle/{chunk-8hrt4d0v.js → chunk-ky3fhz9z.js} +1 -1
- package/bundle/chunk-kzkb4648.js +2 -0
- package/bundle/chunk-m2540waa.js +2 -0
- package/bundle/{chunk-hp9q7vvq.js → chunk-m6967jtv.js} +2 -2
- package/bundle/{chunk-7h0regqs.js → chunk-m8kjtp60.js} +1 -1
- package/bundle/{chunk-q65qzc9w.js → chunk-mbmaeq0a.js} +1 -1
- package/bundle/chunk-mdxtt9wv.js +8 -0
- package/bundle/{chunk-anm5g0m4.js → chunk-meehnnv9.js} +2 -2
- package/bundle/{chunk-k3x6z5q1.js → chunk-mjkwd1sz.js} +1 -1
- package/bundle/{chunk-dpm5x19e.js → chunk-mnjz8nqs.js} +2 -2
- package/bundle/{chunk-e0w082wt.js → chunk-mq3w4z8k.js} +184 -184
- package/bundle/chunk-mreacz8r.js +2 -0
- package/bundle/chunk-mscvm1rm.js +2 -0
- package/bundle/chunk-mw3hh526.js +2 -0
- package/bundle/chunk-n3nsrk5n.js +2 -0
- package/bundle/chunk-n4qbnecw.js +35 -0
- package/bundle/{chunk-wrkt670m.js → chunk-n7zd97hy.js} +2 -2
- package/bundle/chunk-n9nmc4q4.js +2 -0
- package/bundle/{chunk-p3tcw42f.js → chunk-nb4xtk1n.js} +1 -1
- package/bundle/chunk-nj4as8vy.js +2 -0
- package/bundle/chunk-nxm6gpyv.js +2 -0
- package/bundle/{chunk-5gv6r7v8.js → chunk-nyxn7npc.js} +1 -1
- package/bundle/{chunk-mhn0a828.js → chunk-nzz7gzg2.js} +1 -1
- package/bundle/{chunk-y9mxwwz7.js → chunk-p0852vfn.js} +2 -2
- package/bundle/{chunk-xrb46v1e.js → chunk-p4xqfkbh.js} +1 -1
- package/bundle/{chunk-7nh8vjx4.js → chunk-pdcxmr6x.js} +1 -1
- package/bundle/chunk-pqzx9ha6.js +2 -0
- package/bundle/{chunk-w264gs2c.js → chunk-prz2fkn9.js} +1 -1
- package/bundle/{chunk-d2049chz.js → chunk-psmwrvqs.js} +2 -2
- package/bundle/{chunk-4d9s7cgr.js → chunk-pwq2f75j.js} +1 -1
- package/bundle/{chunk-5psekq9f.js → chunk-pwrwb7mn.js} +1 -1
- package/bundle/{chunk-1wy8wmah.js → chunk-px69995t.js} +1 -1
- package/bundle/{chunk-pfen4ekj.js → chunk-q1dmxn63.js} +2 -2
- package/bundle/{chunk-ycth54ja.js → chunk-q896qkhe.js} +1 -1
- package/bundle/chunk-qbjqkezn.js +2 -0
- package/bundle/chunk-qhtp1xvx.js +2 -0
- package/bundle/{chunk-hd6sd912.js → chunk-qk6jh32z.js} +1 -1
- package/bundle/chunk-qkztgpay.js +2 -0
- package/bundle/{chunk-x0wy15q9.js → chunk-qn1fhqyw.js} +2 -2
- package/bundle/{chunk-n73ckwr7.js → chunk-qpk7jp6t.js} +1 -1
- package/bundle/{chunk-7k1q26yn.js → chunk-qrztx1b4.js} +2 -2
- package/bundle/{chunk-dzy3ezht.js → chunk-rd08wx37.js} +2 -2
- package/bundle/{chunk-ba2hn77m.js → chunk-rk4c0zat.js} +1 -1
- package/bundle/{chunk-mqtj38j9.js → chunk-rn3je2hv.js} +1 -1
- package/bundle/chunk-rnf3dy0y.js +2 -0
- package/bundle/{chunk-72qx43fq.js → chunk-rqap90xh.js} +2 -2
- package/bundle/chunk-rry4kq85.js +2 -0
- package/bundle/{chunk-47pxz6cb.js → chunk-rt49c6js.js} +2 -2
- package/bundle/{chunk-5a4zt1b7.js → chunk-rws2tsdv.js} +1 -1
- package/bundle/{chunk-r65zw08x.js → chunk-rx9eh3db.js} +3 -3
- package/bundle/{chunk-tzw56029.js → chunk-rxt6gktt.js} +1 -1
- package/bundle/chunk-ryfj80q6.js +2 -0
- package/bundle/{chunk-ec1bwa7f.js → chunk-s0gmxpxm.js} +2 -2
- package/bundle/{chunk-8psfgg8y.js → chunk-s9epttpy.js} +1 -1
- package/bundle/{chunk-gtmtvjwc.js → chunk-sb3cgb4v.js} +1 -1
- package/bundle/{chunk-p863r97y.js → chunk-set1f1wr.js} +1 -1
- package/bundle/{chunk-zgj7jx8k.js → chunk-sg9enzsp.js} +2 -2
- package/bundle/{chunk-0xf12tf3.js → chunk-sh03ka27.js} +1 -1
- package/bundle/chunk-snx49w8h.js +2 -0
- package/bundle/{chunk-610mqqqa.js → chunk-spcdwmy4.js} +1 -1
- package/bundle/{chunk-ydz7387e.js → chunk-sy76e7nr.js} +1 -1
- package/bundle/{chunk-csbndz33.js → chunk-szfqmkj6.js} +1 -1
- package/bundle/chunk-t21mdqbb.js +2 -0
- package/bundle/{chunk-t7gp6mjm.js → chunk-tcyzj3rz.js} +1 -1
- package/bundle/chunk-tkbjcznz.js +2 -0
- package/bundle/chunk-tn2yyqeb.js +2 -0
- package/bundle/chunk-ttebf3nt.js +2 -0
- package/bundle/chunk-twpfh0mx.js +2 -0
- package/bundle/{chunk-a4242cn4.js → chunk-tz1bzrnh.js} +1 -1
- package/bundle/chunk-tzf6d5qy.js +2 -0
- package/bundle/{chunk-hzzvmr41.js → chunk-v1axkp21.js} +2 -2
- package/bundle/chunk-v2mq09wx.js +2 -0
- package/bundle/chunk-v59a02aj.js +2 -0
- package/bundle/{chunk-8rbbt1s8.js → chunk-v5me0cj9.js} +1 -1
- package/bundle/{chunk-gw2fz5ry.js → chunk-v7v0krrj.js} +1 -1
- package/bundle/{chunk-9r6wk75s.js → chunk-veptx3fk.js} +1 -1
- package/bundle/{chunk-d4ys15w3.js → chunk-vgmgg994.js} +1 -1
- package/bundle/{chunk-vvcyvdnk.js → chunk-vr13f6b5.js} +2 -2
- package/bundle/{chunk-jmrqp50k.js → chunk-vsv4p060.js} +1 -1
- package/bundle/chunk-vxr4rzt0.js +2 -0
- package/bundle/chunk-w0h9rczg.js +2 -0
- package/bundle/{chunk-fmvmp278.js → chunk-w0t1ajhg.js} +1 -1
- package/bundle/{chunk-6jb4mnvq.js → chunk-w136zswr.js} +3 -3
- package/bundle/chunk-w8344et5.js +2 -0
- package/bundle/{chunk-b274mb6v.js → chunk-w8nj5ph5.js} +1 -1
- package/bundle/chunk-weyg78et.js +2 -0
- package/bundle/{chunk-6kpk6pr3.js → chunk-wf0n1cs9.js} +1 -1
- package/bundle/{chunk-00krzh3y.js → chunk-wfpnv00c.js} +2 -2
- package/bundle/{chunk-mchf2bcc.js → chunk-wne3v1fk.js} +2 -2
- package/bundle/{chunk-wwtyrgga.js → chunk-wrzn87w0.js} +1 -1
- package/bundle/{chunk-npryn3en.js → chunk-ws720v4j.js} +1 -1
- package/bundle/chunk-wyavgt96.js +2 -0
- package/bundle/{chunk-t4kma6mq.js → chunk-x0de4z05.js} +2 -2
- package/bundle/{chunk-qqftaqza.js → chunk-x3dzzq0t.js} +1 -1
- package/bundle/{chunk-45dtsre6.js → chunk-x4jnyj09.js} +1 -1
- package/bundle/chunk-xchj8gna.js +2 -0
- package/bundle/{chunk-s81ck6bw.js → chunk-xdcwx384.js} +1 -1
- package/bundle/{chunk-yqvqzg7b.js → chunk-xmf59618.js} +1 -1
- package/bundle/{chunk-1rw4srd1.js → chunk-xxck1man.js} +1 -1
- package/bundle/{chunk-yg5azmxb.js → chunk-y4cz5s3h.js} +2 -2
- package/bundle/{chunk-vzj91hg8.js → chunk-yg9n2a2d.js} +1 -1
- package/bundle/{chunk-eefzbdbk.js → chunk-yhpwceqg.js} +2 -2
- package/bundle/{chunk-h9tcpbr7.js → chunk-yms3bsm7.js} +1 -1
- package/bundle/{chunk-9h2fms7x.js → chunk-ytfq6rn9.js} +1 -1
- package/bundle/chunk-yvjecrjy.js +2 -0
- package/bundle/{chunk-xpz5mnwz.js → chunk-yvtkx4x4.js} +1 -1
- package/bundle/chunk-yw2x6by6.js +2 -0
- package/bundle/{chunk-0ware2sh.js → chunk-ywj77e0m.js} +2 -2
- package/bundle/{chunk-962hspr0.js → chunk-z0dj15g9.js} +1 -1
- package/bundle/chunk-z0r4syk8.js +2 -0
- package/bundle/{chunk-1q5h95hc.js → chunk-z6qyx227.js} +1 -1
- package/bundle/chunk-z7c00g63.js +2 -0
- package/bundle/chunk-z93n3cbm.js +2 -0
- package/bundle/{chunk-3fx3eghq.js → chunk-zbt53cb5.js} +1 -1
- package/bundle/{chunk-tks3qzsw.js → chunk-zgwasq3p.js} +1 -1
- package/bundle/{chunk-6dmk2eyt.js → chunk-zh7e6kqs.js} +1 -1
- package/bundle/{chunk-4s9d2zte.js → chunk-zhhcfqhh.js} +1 -1
- package/bundle/{chunk-4q14whpc.js → chunk-zjyaze0d.js} +1 -1
- package/bundle/chunk-znr0saas.js +2 -0
- package/bundle/chunk-zqqt7v17.js +2 -0
- package/bundle/chunk-zwrgh1hc.js +2 -0
- package/bundle/chunk-zwxp07yc.js +2 -0
- package/bundle/{chunk-821zkh5v.js → chunk-zx63mepv.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-0nves64y.js +0 -2
- package/bundle/chunk-0v7knkt5.js +0 -2
- package/bundle/chunk-1h5jdsgx.js +0 -2
- package/bundle/chunk-1r5e1jsb.js +0 -2
- package/bundle/chunk-1wyy3c48.js +0 -2
- package/bundle/chunk-1z299xq6.js +0 -2
- package/bundle/chunk-21aqt31s.js +0 -2
- package/bundle/chunk-22aq9ymg.js +0 -2
- package/bundle/chunk-26a17c9z.js +0 -2
- package/bundle/chunk-2a154mr0.js +0 -2
- package/bundle/chunk-2nbce486.js +0 -2
- package/bundle/chunk-2npxatq9.js +0 -2
- package/bundle/chunk-3gryj9r9.js +0 -2
- package/bundle/chunk-3jnanbjr.js +0 -2
- package/bundle/chunk-3meh1cbc.js +0 -2
- package/bundle/chunk-3t71xfr6.js +0 -2
- package/bundle/chunk-4045jzv5.js +0 -2
- package/bundle/chunk-4b2vv484.js +0 -2
- package/bundle/chunk-4ene1ymj.js +0 -2
- package/bundle/chunk-58r5etg8.js +0 -2
- package/bundle/chunk-5c2zw4h0.js +0 -2
- package/bundle/chunk-5e0vejcb.js +0 -8
- package/bundle/chunk-608f83n0.js +0 -2
- package/bundle/chunk-671r50ry.js +0 -2
- package/bundle/chunk-6bfnhr3d.js +0 -2
- package/bundle/chunk-6cv6d8rw.js +0 -2
- package/bundle/chunk-6qm6f88j.js +0 -2
- package/bundle/chunk-78bfwwmc.js +0 -2
- package/bundle/chunk-7wwtgxxf.js +0 -2
- package/bundle/chunk-98sb49dz.js +0 -2
- package/bundle/chunk-9kbtpq9m.js +0 -2
- package/bundle/chunk-9szp9b4m.js +0 -2
- package/bundle/chunk-9xqszq0c.js +0 -2
- package/bundle/chunk-a32kjs9e.js +0 -2
- package/bundle/chunk-ajykvcas.js +0 -2
- package/bundle/chunk-apym02ct.js +0 -2
- package/bundle/chunk-armv2rv5.js +0 -2
- package/bundle/chunk-as215v64.js +0 -2
- package/bundle/chunk-bnmpgpyf.js +0 -2
- package/bundle/chunk-bq3zt1x1.js +0 -2
- package/bundle/chunk-bx8fgjam.js +0 -2
- package/bundle/chunk-ckcnb59t.js +0 -2
- package/bundle/chunk-d79xaj6s.js +0 -3
- package/bundle/chunk-dah2d37s.js +0 -2
- package/bundle/chunk-dhgjv1n2.js +0 -2
- package/bundle/chunk-dk9k8ff5.js +0 -2
- package/bundle/chunk-dymysn4h.js +0 -2
- package/bundle/chunk-ev4gw5k6.js +0 -2
- package/bundle/chunk-ew2dxm43.js +0 -2
- package/bundle/chunk-ffp4wg27.js +0 -2
- package/bundle/chunk-hjy90gt2.js +0 -2
- package/bundle/chunk-hmden934.js +0 -2
- package/bundle/chunk-hsm8fbb1.js +0 -2
- package/bundle/chunk-hz1xfedb.js +0 -2
- package/bundle/chunk-ja9y478k.js +0 -2
- package/bundle/chunk-jam7xyjf.js +0 -2
- package/bundle/chunk-k51qphrk.js +0 -2
- package/bundle/chunk-kee7xpe3.js +0 -2
- package/bundle/chunk-p13eeqe4.js +0 -2
- package/bundle/chunk-p45f2nyb.js +0 -2
- package/bundle/chunk-qvwx32p9.js +0 -35
- package/bundle/chunk-qw9whsy2.js +0 -2
- package/bundle/chunk-r77kpzdv.js +0 -2
- package/bundle/chunk-rc95tp19.js +0 -2
- package/bundle/chunk-rmh2fhqy.js +0 -2
- package/bundle/chunk-rrn86a8w.js +0 -2
- package/bundle/chunk-s8v0h63x.js +0 -2
- package/bundle/chunk-sh4mngre.js +0 -2
- package/bundle/chunk-shqqngm8.js +0 -2
- package/bundle/chunk-sjfcwykr.js +0 -2
- package/bundle/chunk-sv01v0n0.js +0 -2
- package/bundle/chunk-tn8hsd2c.js +0 -2
- package/bundle/chunk-tqsx7w8z.js +0 -2
- package/bundle/chunk-tyt1negg.js +0 -2
- package/bundle/chunk-v580zwpf.js +0 -3
- package/bundle/chunk-vdv6cyh0.js +0 -2
- package/bundle/chunk-vsk8yfxp.js +0 -2
- package/bundle/chunk-vvgmkjym.js +0 -2
- package/bundle/chunk-vzf04vad.js +0 -2
- package/bundle/chunk-w0zyex7f.js +0 -2
- package/bundle/chunk-w623r5kb.js +0 -3
- package/bundle/chunk-wkxt9v7s.js +0 -2
- package/bundle/chunk-wwf6zacw.js +0 -2
- package/bundle/chunk-x9c8eddk.js +0 -2
- package/bundle/chunk-xjed8t2h.js +0 -2
- package/bundle/chunk-xxhta1tm.js +0 -2
- package/bundle/chunk-yhj6858v.js +0 -2
- package/bundle/chunk-yq3byrpv.js +0 -2
- package/bundle/chunk-ys8ajwys.js +0 -2
- package/bundle/chunk-yzt7p956.js +0 -2
- package/bundle/chunk-z56cb3fs.js +0 -2
- package/bundle/chunk-zhypknyg.js +0 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{sr as S,tr as Vq}from"./chunk-1exjy880.js";import{$B as VB,AG as MB,BF as DB,CE as jB,DE as PB,GD as NB,HD as wB,JD as FB,KG as ZB,VA as Xq,WA as d,XO as $B,YO as WB,ZO as zB,_B as HB,aP as t,bC as CB,dH as AB,eC as EB,lC as N,lD as XB,nG as f,rC as T,sF as YB,vB as KB,vF as h,yE as LB}from"./chunk-hk8m8vax.js";import{qP as y}from"./chunk-t4kma6mq.js";import{rP as K,sP as Z,vP as G}from"./chunk-0xf12tf3.js";var l=Z(($q)=>{Object.defineProperty($q,"__esModule",{value:!0});$q._clearDefaultServiceNameCache=$q.defaultServiceName=void 0;var D;function hB(){if(D===void 0)try{let q=globalThis.process.argv0;D=q?`unknown_service:${q}`:"unknown_service"}catch{D="unknown_service"}return D}$q.defaultServiceName=hB;function IB(){D=void 0}$q._clearDefaultServiceNameCache=IB});var Kq=Z((zq)=>{Object.defineProperty(zq,"__esModule",{value:!0});zq.isPromiseLike=void 0;var SB=(q)=>{return q!==null&&typeof q==="object"&&typeof q.then==="function"};zq.isPromiseLike=SB});var i=Z((Cq)=>{Object.defineProperty(Cq,"__esModule",{value:!0});Cq.defaultResource=Cq.emptyResource=Cq.resourceFromDetectedResource=Cq.resourceFromAttributes=void 0;var A=y(),c=Vq(),C=S(),kB=l(),M=Kq();class U{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(q,B){let J=new U({},B);return J._rawAttributes=Hq(q),J._asyncAttributesPending=q.filter(([Q,Y])=>(0,M.isPromiseLike)(Y)).length>0,J}constructor(q,B){let J=q.attributes??{};this._rawAttributes=Object.entries(J).map(([Q,Y])=>{if((0,M.isPromiseLike)(Y))this._asyncAttributesPending=!0;return[Q,Y]}),this._rawAttributes=Hq(this._rawAttributes),this._schemaUrl=_B(B?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(!this.asyncAttributesPending)return;for(let q=0;q<this._rawAttributes.length;q++){let[B,J]=this._rawAttributes[q];this._rawAttributes[q]=[B,(0,M.isPromiseLike)(J)?await J:J]}this._asyncAttributesPending=!1}get attributes(){if(this.asyncAttributesPending)A.diag.error("Accessing resource attributes before async attributes settled");if(this._memoizedAttributes)return this._memoizedAttributes;let q={};for(let[B,J]of this._rawAttributes){if((0,M.isPromiseLike)(J)){A.diag.debug(`Unsettled resource attribute ${B} skipped`);continue}if(J!=null)q[B]??=J}if(!this._asyncAttributesPending)this._memoizedAttributes=q;return q}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(q){if(q==null)return this;let B=vB(this,q),J=B?{schemaUrl:B}:void 0;return U.FromAttributeList([...q.getRawAttributes(),...this.getRawAttributes()],J)}}function p(q,B){return U.FromAttributeList(Object.entries(q),B)}Cq.resourceFromAttributes=p;function bB(q,B){return new U(q,B)}Cq.resourceFromDetectedResource=bB;function fB(){return p({})}Cq.emptyResource=fB;function gB(){return p({[C.ATTR_SERVICE_NAME]:(0,kB.defaultServiceName)(),[C.ATTR_TELEMETRY_SDK_LANGUAGE]:c.SDK_INFO[C.ATTR_TELEMETRY_SDK_LANGUAGE],[C.ATTR_TELEMETRY_SDK_NAME]:c.SDK_INFO[C.ATTR_TELEMETRY_SDK_NAME],[C.ATTR_TELEMETRY_SDK_VERSION]:c.SDK_INFO[C.ATTR_TELEMETRY_SDK_VERSION]})}Cq.defaultResource=gB;function Hq(q){return q.map(([B,J])=>{if((0,M.isPromiseLike)(J))return[B,J.catch((Q)=>{A.diag.debug("promise rejection for resource attribute: %s - %s",B,Q);return})];return[B,J]})}function _B(q){if(typeof q==="string"||q===void 0)return q;A.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",q);return}function vB(q,B){let J=q?.schemaUrl,Q=B?.schemaUrl,Y=J===void 0||J==="",z=Q===void 0||Q==="";if(Y)return Q;if(z)return J;if(J===Q)return J;A.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',J,Q);return}});var Lq=Z((wq)=>{Object.defineProperty(wq,"__esModule",{value:!0});wq.detectResources=void 0;var Nq=y(),n=i(),uB=(q={})=>{return(q.detectors||[]).map((J)=>{try{let Q=(0,n.resourceFromDetectedResource)(J.detect(q));return Nq.diag.debug(`${J.constructor.name} found resource.`,Q),Q}catch(Q){return Nq.diag.debug(`${J.constructor.name} failed: ${Q.message}`),(0,n.emptyResource)()}}).reduce((J,Q)=>J.merge(Q),(0,n.emptyResource)())};wq.detectResources=uB});var Aq=Z((Dq)=>{Object.defineProperty(Dq,"__esModule",{value:!0});Dq.envDetector=void 0;var lB=y(),cB=S(),jq=Vq();class Pq{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";detect(q){let B={},J=(0,jq.getStringFromEnv)("OTEL_RESOURCE_ATTRIBUTES"),Q=(0,jq.getStringFromEnv)("OTEL_SERVICE_NAME");if(J)try{let Y=this._parseResourceAttributes(J);Object.assign(B,Y)}catch(Y){lB.diag.debug(`EnvDetector failed: ${Y instanceof Error?Y.message:Y}`)}if(Q)B[cB.ATTR_SERVICE_NAME]=Q;return{attributes:B}}_parseResourceAttributes(q){if(!q)return{};let B={},J=q.split(this._COMMA_SEPARATOR);for(let Q of J){let Y=Q.split(this._LABEL_KEY_VALUE_SPLITTER);if(Y.length!==2)throw Error(`Invalid format for OTEL_RESOURCE_ATTRIBUTES: "${Q}". Expected format: key=value. The ',' and '=' characters must be percent-encoded in keys and values.`);let[z,w]=Y,F=z.trim(),RB=w.trim();if(F.length===0)throw Error(`Invalid OTEL_RESOURCE_ATTRIBUTES: empty attribute key in "${Q}".`);let P,m;try{P=decodeURIComponent(F),m=decodeURIComponent(RB)}catch(u){throw Error(`Failed to percent-decode OTEL_RESOURCE_ATTRIBUTES entry "${Q}": ${u instanceof Error?u.message:u}`)}if(P.length>this._MAX_LENGTH)throw Error(`Attribute key exceeds the maximum length of ${this._MAX_LENGTH} characters: "${P}".`);if(m.length>this._MAX_LENGTH)throw Error(`Attribute value exceeds the maximum length of ${this._MAX_LENGTH} characters for key "${P}".`);B[P]=m}return B}}Dq.envDetector=new Pq});var O=Z((Uq)=>{Object.defineProperty(Uq,"__esModule",{value:!0});Uq.ATTR_WEBENGINE_VERSION=Uq.ATTR_WEBENGINE_NAME=Uq.ATTR_WEBENGINE_DESCRIPTION=Uq.ATTR_SERVICE_NAMESPACE=Uq.ATTR_SERVICE_INSTANCE_ID=Uq.ATTR_PROCESS_RUNTIME_VERSION=Uq.ATTR_PROCESS_RUNTIME_NAME=Uq.ATTR_PROCESS_RUNTIME_DESCRIPTION=Uq.ATTR_PROCESS_PID=Uq.ATTR_PROCESS_OWNER=Uq.ATTR_PROCESS_EXECUTABLE_PATH=Uq.ATTR_PROCESS_EXECUTABLE_NAME=Uq.ATTR_PROCESS_COMMAND_ARGS=Uq.ATTR_PROCESS_COMMAND=Uq.ATTR_OS_VERSION=Uq.ATTR_OS_TYPE=Uq.ATTR_K8S_POD_NAME=Uq.ATTR_K8S_NAMESPACE_NAME=Uq.ATTR_K8S_DEPLOYMENT_NAME=Uq.ATTR_K8S_CLUSTER_NAME=Uq.ATTR_HOST_TYPE=Uq.ATTR_HOST_NAME=Uq.ATTR_HOST_IMAGE_VERSION=Uq.ATTR_HOST_IMAGE_NAME=Uq.ATTR_HOST_IMAGE_ID=Uq.ATTR_HOST_ID=Uq.ATTR_HOST_ARCH=Uq.ATTR_CONTAINER_NAME=Uq.ATTR_CONTAINER_IMAGE_TAGS=Uq.ATTR_CONTAINER_IMAGE_NAME=Uq.ATTR_CONTAINER_ID=Uq.ATTR_CLOUD_REGION=Uq.ATTR_CLOUD_PROVIDER=Uq.ATTR_CLOUD_AVAILABILITY_ZONE=Uq.ATTR_CLOUD_ACCOUNT_ID=void 0;Uq.ATTR_CLOUD_ACCOUNT_ID="cloud.account.id";Uq.ATTR_CLOUD_AVAILABILITY_ZONE="cloud.availability_zone";Uq.ATTR_CLOUD_PROVIDER="cloud.provider";Uq.ATTR_CLOUD_REGION="cloud.region";Uq.ATTR_CONTAINER_ID="container.id";Uq.ATTR_CONTAINER_IMAGE_NAME="container.image.name";Uq.ATTR_CONTAINER_IMAGE_TAGS="container.image.tags";Uq.ATTR_CONTAINER_NAME="container.name";Uq.ATTR_HOST_ARCH="host.arch";Uq.ATTR_HOST_ID="host.id";Uq.ATTR_HOST_IMAGE_ID="host.image.id";Uq.ATTR_HOST_IMAGE_NAME="host.image.name";Uq.ATTR_HOST_IMAGE_VERSION="host.image.version";Uq.ATTR_HOST_NAME="host.name";Uq.ATTR_HOST_TYPE="host.type";Uq.ATTR_K8S_CLUSTER_NAME="k8s.cluster.name";Uq.ATTR_K8S_DEPLOYMENT_NAME="k8s.deployment.name";Uq.ATTR_K8S_NAMESPACE_NAME="k8s.namespace.name";Uq.ATTR_K8S_POD_NAME="k8s.pod.name";Uq.ATTR_OS_TYPE="os.type";Uq.ATTR_OS_VERSION="os.version";Uq.ATTR_PROCESS_COMMAND="process.command";Uq.ATTR_PROCESS_COMMAND_ARGS="process.command_args";Uq.ATTR_PROCESS_EXECUTABLE_NAME="process.executable.name";Uq.ATTR_PROCESS_EXECUTABLE_PATH="process.executable.path";Uq.ATTR_PROCESS_OWNER="process.owner";Uq.ATTR_PROCESS_PID="process.pid";Uq.ATTR_PROCESS_RUNTIME_DESCRIPTION="process.runtime.description";Uq.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name";Uq.ATTR_PROCESS_RUNTIME_VERSION="process.runtime.version";Uq.ATTR_SERVICE_INSTANCE_ID="service.instance.id";Uq.ATTR_SERVICE_NAMESPACE="service.namespace";Uq.ATTR_WEBENGINE_DESCRIPTION="webengine.description";Uq.ATTR_WEBENGINE_NAME="webengine.name";Uq.ATTR_WEBENGINE_VERSION="webengine.version"});var hq=Z((Oq)=>{Object.defineProperty(Oq,"__esModule",{value:!0});Oq.getMachineId=void 0;var UJ=G("process"),E;async function yJ(){if(!E)switch(UJ.platform){case"darwin":E=(await import("./chunk-4ar8hey8.js").then((m)=>K(m.default))).getMachineId;break;case"linux":E=(await import("./chunk-n73ckwr7.js").then((m)=>K(m.default))).getMachineId;break;case"freebsd":E=(await import("./chunk-q7wc3frq.js").then((m)=>K(m.default))).getMachineId;break;case"win32":E=(await import("./chunk-csbndz33.js").then((m)=>K(m.default))).getMachineId;break;default:E=(await import("./chunk-vr7525pa.js").then((m)=>K(m.default))).getMachineId;break}return E()}Oq.getMachineId=yJ});var a=Z((Iq)=>{Object.defineProperty(Iq,"__esModule",{value:!0});Iq.normalizeType=Iq.normalizeArch=void 0;var OJ=(q)=>{switch(q){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return q}};Iq.normalizeArch=OJ;var RJ=(q)=>{switch(q){case"sunos":return"solaris";case"win32":return"windows";default:return q}};Iq.normalizeType=RJ});var gq=Z((bq)=>{Object.defineProperty(bq,"__esModule",{value:!0});bq.hostDetector=void 0;var r=O(),Sq=G("os"),IJ=hq(),TJ=a();class kq{detect(q){return{attributes:{[r.ATTR_HOST_NAME]:(0,Sq.hostname)(),[r.ATTR_HOST_ARCH]:(0,TJ.normalizeArch)((0,Sq.arch)()),[r.ATTR_HOST_ID]:(0,IJ.getMachineId)()}}}}bq.hostDetector=new kq});var uq=Z((xq)=>{Object.defineProperty(xq,"__esModule",{value:!0});xq.osDetector=void 0;var _q=O(),vq=G("os"),SJ=a();class dq{detect(q){return{attributes:{[_q.ATTR_OS_TYPE]:(0,SJ.normalizeType)((0,vq.platform)()),[_q.ATTR_OS_VERSION]:(0,vq.release)()}}}}xq.osDetector=new dq});var iq=Z((cq)=>{Object.defineProperty(cq,"__esModule",{value:!0});cq.processDetector=void 0;var kJ=y(),H=O(),bJ=G("os");class lq{detect(q){let B={[H.ATTR_PROCESS_PID]:process.pid,[H.ATTR_PROCESS_EXECUTABLE_NAME]:process.title,[H.ATTR_PROCESS_EXECUTABLE_PATH]:process.execPath,[H.ATTR_PROCESS_COMMAND_ARGS]:[process.argv[0],...process.execArgv,...process.argv.slice(1)],[H.ATTR_PROCESS_RUNTIME_VERSION]:process.versions.node,[H.ATTR_PROCESS_RUNTIME_NAME]:"nodejs",[H.ATTR_PROCESS_RUNTIME_DESCRIPTION]:"Node.js"};if(process.argv.length>1)B[H.ATTR_PROCESS_COMMAND]=process.argv[1];try{let J=bJ.userInfo();B[H.ATTR_PROCESS_OWNER]=J.username}catch(J){kJ.diag.debug(`error obtaining process owner: ${J}`)}return{attributes:B}}}cq.processDetector=new lq});var sq=Z((aq)=>{Object.defineProperty(aq,"__esModule",{value:!0});aq.serviceInstanceIdDetector=void 0;var fJ=O(),gJ=G("crypto");class nq{detect(q){return{attributes:{[fJ.ATTR_SERVICE_INSTANCE_ID]:(0,gJ.randomUUID)()}}}}aq.serviceInstanceIdDetector=new nq});var oq=Z((L)=>{Object.defineProperty(L,"__esModule",{value:!0});L.serviceInstanceIdDetector=L.processDetector=L.osDetector=L.hostDetector=void 0;var _J=gq();Object.defineProperty(L,"hostDetector",{enumerable:!0,get:function(){return _J.hostDetector}});var vJ=uq();Object.defineProperty(L,"osDetector",{enumerable:!0,get:function(){return vJ.osDetector}});var dJ=iq();Object.defineProperty(L,"processDetector",{enumerable:!0,get:function(){return dJ.processDetector}});var xJ=sq();Object.defineProperty(L,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return xJ.serviceInstanceIdDetector}})});var tq=Z((j)=>{Object.defineProperty(j,"__esModule",{value:!0});j.serviceInstanceIdDetector=j.processDetector=j.osDetector=j.hostDetector=void 0;var k=oq();Object.defineProperty(j,"hostDetector",{enumerable:!0,get:function(){return k.hostDetector}});Object.defineProperty(j,"osDetector",{enumerable:!0,get:function(){return k.osDetector}});Object.defineProperty(j,"processDetector",{enumerable:!0,get:function(){return k.processDetector}});Object.defineProperty(j,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return k.serviceInstanceIdDetector}})});var BB=Z((eq)=>{Object.defineProperty(eq,"__esModule",{value:!0});eq.noopDetector=eq.NoopDetector=void 0;class s{detect(){return{attributes:{}}}}eq.NoopDetector=s;eq.noopDetector=new s});var JB=Z((V)=>{Object.defineProperty(V,"__esModule",{value:!0});V.noopDetector=V.serviceInstanceIdDetector=V.processDetector=V.osDetector=V.hostDetector=V.envDetector=void 0;var cJ=Aq();Object.defineProperty(V,"envDetector",{enumerable:!0,get:function(){return cJ.envDetector}});var b=tq();Object.defineProperty(V,"hostDetector",{enumerable:!0,get:function(){return b.hostDetector}});Object.defineProperty(V,"osDetector",{enumerable:!0,get:function(){return b.osDetector}});Object.defineProperty(V,"processDetector",{enumerable:!0,get:function(){return b.processDetector}});Object.defineProperty(V,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return b.serviceInstanceIdDetector}});var pJ=BB();Object.defineProperty(V,"noopDetector",{enumerable:!0,get:function(){return pJ.noopDetector}})});var QB=Z((W)=>{Object.defineProperty(W,"__esModule",{value:!0});W.defaultServiceName=W.emptyResource=W.defaultResource=W.resourceFromAttributes=W.serviceInstanceIdDetector=W.processDetector=W.osDetector=W.hostDetector=W.envDetector=W.detectResources=void 0;var nJ=Lq();Object.defineProperty(W,"detectResources",{enumerable:!0,get:function(){return nJ.detectResources}});var R=JB();Object.defineProperty(W,"envDetector",{enumerable:!0,get:function(){return R.envDetector}});Object.defineProperty(W,"hostDetector",{enumerable:!0,get:function(){return R.hostDetector}});Object.defineProperty(W,"osDetector",{enumerable:!0,get:function(){return R.osDetector}});Object.defineProperty(W,"processDetector",{enumerable:!0,get:function(){return R.processDetector}});Object.defineProperty(W,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return R.serviceInstanceIdDetector}});var o=i();Object.defineProperty(W,"resourceFromAttributes",{enumerable:!0,get:function(){return o.resourceFromAttributes}});Object.defineProperty(W,"defaultResource",{enumerable:!0,get:function(){return o.defaultResource}});Object.defineProperty(W,"emptyResource",{enumerable:!0,get:function(){return o.emptyResource}});var aJ=l();Object.defineProperty(W,"defaultServiceName",{enumerable:!0,get:function(){return aJ.defaultServiceName}})});var g=K(QB(),1),$=K(S(),1);class I extends N()("@effect/opentelemetry/Resource"){}var iQ=(q)=>{let B={...q.attributes??void 0,[$.ATTR_SERVICE_NAME]:q.serviceName,[$.ATTR_TELEMETRY_SDK_NAME]:"@effect/opentelemetry",[$.ATTR_TELEMETRY_SDK_LANGUAGE]:typeof globalThis.document>"u"?$.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:$.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS};if(q.serviceVersion)B[$.ATTR_SERVICE_VERSION]=q.serviceVersion;return B},nQ=(q)=>h(I,f(function*(){let B=yield*zB(t("OTEL_SERVICE_NAME")),J=yield*t("OTEL_RESOURCE_ATTRIBUTES").pipe(WB(""),$B((Q)=>{let Y=Q.split(",");return XB(Y,{},(z,w)=>{let F=w.split("=");if(F.length!==2)return z;return z[F[0].trim()]=F[1].trim(),z})}));if(B._tag==="Some")J[$.ATTR_SERVICE_NAME]=B.value;if(q)Object.assign(J,q);return g.resourceFromAttributes(J)}).pipe(ZB)),aQ=YB(I,g.emptyResource());var X=K(y(),1),x=K(S(),1);var GB=BigInt(1e9),_=(q)=>{return[Number(q/GB),Number(q%GB)]},v=(q)=>{let B={};for(let[J,Q]of Object.entries(q))B[J]=e(Q);return B},e=(q)=>{if(typeof q==="string"||typeof q==="number"||typeof q==="boolean")return q;else if(typeof q==="bigint")return q.toString();return KB(q)};class Yq extends N()("@effect/opentelemetry/Tracer"){}class UB extends N()("@effect/opentelemetry/Tracer/OtelTracerProvider"){}class Bq extends N()("@effect/opentelemetry/Tracer/OtelTraceFlags"){}class Jq extends N()("@effect/opentelemetry/Tracer/OtelTraceState"){}var eJ=MB(AB(Yq),(q)=>NB({span(B){return new Zq(X.context,X.trace,q,B)},context(B,J){let Q=J.currentSpan;if(Q===void 0)return B["~effect/Effect/evaluate"](J);return X.context.with(OB(X.context.active(),Q),()=>B["~effect/Effect/evaluate"](J))}}));var qQ=h(Yq,f(function*(){let q=yield*I;return(yield*UB).getTracer(q.attributes[x.ATTR_SERVICE_NAME],q.attributes[x.ATTR_SERVICE_VERSION])}));var BQ=h(FB,eJ),VX=BQ.pipe(DB(qQ));var qq="~@effect/opentelemetry/Tracer/OtelSpan",JQ={internal:X.SpanKind.INTERNAL,client:X.SpanKind.CLIENT,server:X.SpanKind.SERVER,producer:X.SpanKind.PRODUCER,consumer:X.SpanKind.CONSUMER};class Zq{[qq];_tag="Span";name;kind;annotations;links;span;spanId;traceId;attributes=new Map;sampled;parent;status;constructor(q,B,J,Q){this[qq]=qq,this.name=Q.name,this.annotations=Q.annotations,this.links=Q.links,this.kind=Q.kind;let Y=q.active();this.parent=Q.root!==!0?EB(Q.parent,()=>XQ(B,Y,Q.annotations)):Q.parent,this.span=J.startSpan(Q.name,{startTime:_(Q.startTime),links:Q.links.length>0?Q.links.map((w)=>({context:Qq(w.span),attributes:v(w.attributes)})):void 0,kind:JQ[this.kind]},CB(this.parent)?OB(Y,this.parent.value,Q.annotations):X.trace.deleteSpan(Y));let z=this.span.spanContext();this.spanId=z.spanId,this.traceId=z.traceId,this.status={_tag:"Started",startTime:Q.startTime},this.sampled=QQ(z.traceFlags)}attribute(q,B){this.span.setAttribute(q,e(B)),this.attributes.set(q,B)}addLinks(q){this.links.push(...q),this.span.addLinks(q.map((B)=>({context:Qq(B.span),attributes:v(B.attributes)})))}end(q,B){let J=_(q);if(this.status={_tag:"Ended",endTime:q,exit:B,startTime:this.status.startTime},B._tag==="Success")this.span.setStatus({code:X.SpanStatusCode.OK});else if(LB(B.cause))this.span.setStatus({code:X.SpanStatusCode.OK,message:PB(B.cause)}),this.span.setAttribute("span.label","\u26A0\uFE0E Interrupted"),this.span.setAttribute("status.interrupted",!0);else{let Q=jB(B.cause);if(Q.length>0){for(let Y of Q)this.span.recordException(Y,J);this.span.setStatus({code:X.SpanStatusCode.ERROR,message:Q[0].message})}else this.span.setStatus({code:X.SpanStatusCode.OK})}this.span.end(J)}event(q,B,J){this.span.addEvent(q,J?v(J):void 0,_(B))}}var QQ=(q)=>(q&X.TraceFlags.SAMPLED)===X.TraceFlags.SAMPLED,XQ=(q,B,J)=>{let Q=q.getSpan(B)?.spanContext();if(!Q)return HB();return VB(wB({spanId:Q.spanId,traceId:Q.traceId,sampled:(Q.traceFlags&1)===1,annotations:J}))},Qq=(q,B)=>{let J=YQ(q,B),Q=ZQ(q,B);return{spanId:q.spanId,traceId:q.traceId,isRemote:q._tag==="ExternalSpan",traceFlags:J,traceState:Q}},YQ=(q,B)=>{let J;if(d(B)){if(J=yB(q,B,Bq),Xq(J))J=T(q.annotations,Bq)}return J??X.TraceFlags.SAMPLED},ZQ=(q,B)=>{let J;if(d(B)){if(J=yB(q,B,Jq),Xq(J))J=T(q.annotations,Jq)}return J},yB=(q,B,J)=>{let Q=T(B,J);if(d(Q))return Q;return T(q.annotations,J)},OB=(q,B,J)=>B instanceof Zq?X.trace.setSpan(q,B.span):X.trace.setSpanContext(q,Qq(B,J));
|
|
3
|
-
export{QB as
|
|
2
|
+
import{vr as S,wr as Vq}from"./chunk-g77kddrs.js";import{$O as WB,BE as LB,DG as MB,EF as DB,FE as jB,GE as PB,JD as NB,KD as wB,MD as FB,NG as ZB,YA as Xq,ZA as d,_O as $B,aP as zB,bC as HB,cC as VB,dP as t,eC as CB,gH as AB,hC as EB,oC as N,oD as XB,qG as f,uC as T,vF as YB,yB as KB,yF as h}from"./chunk-9kc2th5c.js";import{tP as y}from"./chunk-x0de4z05.js";import{uP as K,vP as Z,yP as G}from"./chunk-sh03ka27.js";var l=Z(($q)=>{Object.defineProperty($q,"__esModule",{value:!0});$q._clearDefaultServiceNameCache=$q.defaultServiceName=void 0;var D;function hB(){if(D===void 0)try{let q=globalThis.process.argv0;D=q?`unknown_service:${q}`:"unknown_service"}catch{D="unknown_service"}return D}$q.defaultServiceName=hB;function IB(){D=void 0}$q._clearDefaultServiceNameCache=IB});var Kq=Z((zq)=>{Object.defineProperty(zq,"__esModule",{value:!0});zq.isPromiseLike=void 0;var SB=(q)=>{return q!==null&&typeof q==="object"&&typeof q.then==="function"};zq.isPromiseLike=SB});var i=Z((Cq)=>{Object.defineProperty(Cq,"__esModule",{value:!0});Cq.defaultResource=Cq.emptyResource=Cq.resourceFromDetectedResource=Cq.resourceFromAttributes=void 0;var A=y(),c=Vq(),C=S(),kB=l(),M=Kq();class U{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(q,B){let J=new U({},B);return J._rawAttributes=Hq(q),J._asyncAttributesPending=q.filter(([Q,Y])=>(0,M.isPromiseLike)(Y)).length>0,J}constructor(q,B){let J=q.attributes??{};this._rawAttributes=Object.entries(J).map(([Q,Y])=>{if((0,M.isPromiseLike)(Y))this._asyncAttributesPending=!0;return[Q,Y]}),this._rawAttributes=Hq(this._rawAttributes),this._schemaUrl=_B(B?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(!this.asyncAttributesPending)return;for(let q=0;q<this._rawAttributes.length;q++){let[B,J]=this._rawAttributes[q];this._rawAttributes[q]=[B,(0,M.isPromiseLike)(J)?await J:J]}this._asyncAttributesPending=!1}get attributes(){if(this.asyncAttributesPending)A.diag.error("Accessing resource attributes before async attributes settled");if(this._memoizedAttributes)return this._memoizedAttributes;let q={};for(let[B,J]of this._rawAttributes){if((0,M.isPromiseLike)(J)){A.diag.debug(`Unsettled resource attribute ${B} skipped`);continue}if(J!=null)q[B]??=J}if(!this._asyncAttributesPending)this._memoizedAttributes=q;return q}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(q){if(q==null)return this;let B=vB(this,q),J=B?{schemaUrl:B}:void 0;return U.FromAttributeList([...q.getRawAttributes(),...this.getRawAttributes()],J)}}function p(q,B){return U.FromAttributeList(Object.entries(q),B)}Cq.resourceFromAttributes=p;function bB(q,B){return new U(q,B)}Cq.resourceFromDetectedResource=bB;function fB(){return p({})}Cq.emptyResource=fB;function gB(){return p({[C.ATTR_SERVICE_NAME]:(0,kB.defaultServiceName)(),[C.ATTR_TELEMETRY_SDK_LANGUAGE]:c.SDK_INFO[C.ATTR_TELEMETRY_SDK_LANGUAGE],[C.ATTR_TELEMETRY_SDK_NAME]:c.SDK_INFO[C.ATTR_TELEMETRY_SDK_NAME],[C.ATTR_TELEMETRY_SDK_VERSION]:c.SDK_INFO[C.ATTR_TELEMETRY_SDK_VERSION]})}Cq.defaultResource=gB;function Hq(q){return q.map(([B,J])=>{if((0,M.isPromiseLike)(J))return[B,J.catch((Q)=>{A.diag.debug("promise rejection for resource attribute: %s - %s",B,Q);return})];return[B,J]})}function _B(q){if(typeof q==="string"||q===void 0)return q;A.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",q);return}function vB(q,B){let J=q?.schemaUrl,Q=B?.schemaUrl,Y=J===void 0||J==="",z=Q===void 0||Q==="";if(Y)return Q;if(z)return J;if(J===Q)return J;A.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',J,Q);return}});var Lq=Z((wq)=>{Object.defineProperty(wq,"__esModule",{value:!0});wq.detectResources=void 0;var Nq=y(),n=i(),uB=(q={})=>{return(q.detectors||[]).map((J)=>{try{let Q=(0,n.resourceFromDetectedResource)(J.detect(q));return Nq.diag.debug(`${J.constructor.name} found resource.`,Q),Q}catch(Q){return Nq.diag.debug(`${J.constructor.name} failed: ${Q.message}`),(0,n.emptyResource)()}}).reduce((J,Q)=>J.merge(Q),(0,n.emptyResource)())};wq.detectResources=uB});var Aq=Z((Dq)=>{Object.defineProperty(Dq,"__esModule",{value:!0});Dq.envDetector=void 0;var lB=y(),cB=S(),jq=Vq();class Pq{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";detect(q){let B={},J=(0,jq.getStringFromEnv)("OTEL_RESOURCE_ATTRIBUTES"),Q=(0,jq.getStringFromEnv)("OTEL_SERVICE_NAME");if(J)try{let Y=this._parseResourceAttributes(J);Object.assign(B,Y)}catch(Y){lB.diag.debug(`EnvDetector failed: ${Y instanceof Error?Y.message:Y}`)}if(Q)B[cB.ATTR_SERVICE_NAME]=Q;return{attributes:B}}_parseResourceAttributes(q){if(!q)return{};let B={},J=q.split(this._COMMA_SEPARATOR);for(let Q of J){let Y=Q.split(this._LABEL_KEY_VALUE_SPLITTER);if(Y.length!==2)throw Error(`Invalid format for OTEL_RESOURCE_ATTRIBUTES: "${Q}". Expected format: key=value. The ',' and '=' characters must be percent-encoded in keys and values.`);let[z,w]=Y,F=z.trim(),RB=w.trim();if(F.length===0)throw Error(`Invalid OTEL_RESOURCE_ATTRIBUTES: empty attribute key in "${Q}".`);let P,m;try{P=decodeURIComponent(F),m=decodeURIComponent(RB)}catch(u){throw Error(`Failed to percent-decode OTEL_RESOURCE_ATTRIBUTES entry "${Q}": ${u instanceof Error?u.message:u}`)}if(P.length>this._MAX_LENGTH)throw Error(`Attribute key exceeds the maximum length of ${this._MAX_LENGTH} characters: "${P}".`);if(m.length>this._MAX_LENGTH)throw Error(`Attribute value exceeds the maximum length of ${this._MAX_LENGTH} characters for key "${P}".`);B[P]=m}return B}}Dq.envDetector=new Pq});var O=Z((Uq)=>{Object.defineProperty(Uq,"__esModule",{value:!0});Uq.ATTR_WEBENGINE_VERSION=Uq.ATTR_WEBENGINE_NAME=Uq.ATTR_WEBENGINE_DESCRIPTION=Uq.ATTR_SERVICE_NAMESPACE=Uq.ATTR_SERVICE_INSTANCE_ID=Uq.ATTR_PROCESS_RUNTIME_VERSION=Uq.ATTR_PROCESS_RUNTIME_NAME=Uq.ATTR_PROCESS_RUNTIME_DESCRIPTION=Uq.ATTR_PROCESS_PID=Uq.ATTR_PROCESS_OWNER=Uq.ATTR_PROCESS_EXECUTABLE_PATH=Uq.ATTR_PROCESS_EXECUTABLE_NAME=Uq.ATTR_PROCESS_COMMAND_ARGS=Uq.ATTR_PROCESS_COMMAND=Uq.ATTR_OS_VERSION=Uq.ATTR_OS_TYPE=Uq.ATTR_K8S_POD_NAME=Uq.ATTR_K8S_NAMESPACE_NAME=Uq.ATTR_K8S_DEPLOYMENT_NAME=Uq.ATTR_K8S_CLUSTER_NAME=Uq.ATTR_HOST_TYPE=Uq.ATTR_HOST_NAME=Uq.ATTR_HOST_IMAGE_VERSION=Uq.ATTR_HOST_IMAGE_NAME=Uq.ATTR_HOST_IMAGE_ID=Uq.ATTR_HOST_ID=Uq.ATTR_HOST_ARCH=Uq.ATTR_CONTAINER_NAME=Uq.ATTR_CONTAINER_IMAGE_TAGS=Uq.ATTR_CONTAINER_IMAGE_NAME=Uq.ATTR_CONTAINER_ID=Uq.ATTR_CLOUD_REGION=Uq.ATTR_CLOUD_PROVIDER=Uq.ATTR_CLOUD_AVAILABILITY_ZONE=Uq.ATTR_CLOUD_ACCOUNT_ID=void 0;Uq.ATTR_CLOUD_ACCOUNT_ID="cloud.account.id";Uq.ATTR_CLOUD_AVAILABILITY_ZONE="cloud.availability_zone";Uq.ATTR_CLOUD_PROVIDER="cloud.provider";Uq.ATTR_CLOUD_REGION="cloud.region";Uq.ATTR_CONTAINER_ID="container.id";Uq.ATTR_CONTAINER_IMAGE_NAME="container.image.name";Uq.ATTR_CONTAINER_IMAGE_TAGS="container.image.tags";Uq.ATTR_CONTAINER_NAME="container.name";Uq.ATTR_HOST_ARCH="host.arch";Uq.ATTR_HOST_ID="host.id";Uq.ATTR_HOST_IMAGE_ID="host.image.id";Uq.ATTR_HOST_IMAGE_NAME="host.image.name";Uq.ATTR_HOST_IMAGE_VERSION="host.image.version";Uq.ATTR_HOST_NAME="host.name";Uq.ATTR_HOST_TYPE="host.type";Uq.ATTR_K8S_CLUSTER_NAME="k8s.cluster.name";Uq.ATTR_K8S_DEPLOYMENT_NAME="k8s.deployment.name";Uq.ATTR_K8S_NAMESPACE_NAME="k8s.namespace.name";Uq.ATTR_K8S_POD_NAME="k8s.pod.name";Uq.ATTR_OS_TYPE="os.type";Uq.ATTR_OS_VERSION="os.version";Uq.ATTR_PROCESS_COMMAND="process.command";Uq.ATTR_PROCESS_COMMAND_ARGS="process.command_args";Uq.ATTR_PROCESS_EXECUTABLE_NAME="process.executable.name";Uq.ATTR_PROCESS_EXECUTABLE_PATH="process.executable.path";Uq.ATTR_PROCESS_OWNER="process.owner";Uq.ATTR_PROCESS_PID="process.pid";Uq.ATTR_PROCESS_RUNTIME_DESCRIPTION="process.runtime.description";Uq.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name";Uq.ATTR_PROCESS_RUNTIME_VERSION="process.runtime.version";Uq.ATTR_SERVICE_INSTANCE_ID="service.instance.id";Uq.ATTR_SERVICE_NAMESPACE="service.namespace";Uq.ATTR_WEBENGINE_DESCRIPTION="webengine.description";Uq.ATTR_WEBENGINE_NAME="webengine.name";Uq.ATTR_WEBENGINE_VERSION="webengine.version"});var hq=Z((Oq)=>{Object.defineProperty(Oq,"__esModule",{value:!0});Oq.getMachineId=void 0;var UJ=G("process"),E;async function yJ(){if(!E)switch(UJ.platform){case"darwin":E=(await import("./chunk-69htq8kq.js").then((m)=>K(m.default))).getMachineId;break;case"linux":E=(await import("./chunk-qpk7jp6t.js").then((m)=>K(m.default))).getMachineId;break;case"freebsd":E=(await import("./chunk-2d61z24r.js").then((m)=>K(m.default))).getMachineId;break;case"win32":E=(await import("./chunk-szfqmkj6.js").then((m)=>K(m.default))).getMachineId;break;default:E=(await import("./chunk-02tmc2st.js").then((m)=>K(m.default))).getMachineId;break}return E()}Oq.getMachineId=yJ});var a=Z((Iq)=>{Object.defineProperty(Iq,"__esModule",{value:!0});Iq.normalizeType=Iq.normalizeArch=void 0;var OJ=(q)=>{switch(q){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return q}};Iq.normalizeArch=OJ;var RJ=(q)=>{switch(q){case"sunos":return"solaris";case"win32":return"windows";default:return q}};Iq.normalizeType=RJ});var gq=Z((bq)=>{Object.defineProperty(bq,"__esModule",{value:!0});bq.hostDetector=void 0;var r=O(),Sq=G("os"),IJ=hq(),TJ=a();class kq{detect(q){return{attributes:{[r.ATTR_HOST_NAME]:(0,Sq.hostname)(),[r.ATTR_HOST_ARCH]:(0,TJ.normalizeArch)((0,Sq.arch)()),[r.ATTR_HOST_ID]:(0,IJ.getMachineId)()}}}}bq.hostDetector=new kq});var uq=Z((xq)=>{Object.defineProperty(xq,"__esModule",{value:!0});xq.osDetector=void 0;var _q=O(),vq=G("os"),SJ=a();class dq{detect(q){return{attributes:{[_q.ATTR_OS_TYPE]:(0,SJ.normalizeType)((0,vq.platform)()),[_q.ATTR_OS_VERSION]:(0,vq.release)()}}}}xq.osDetector=new dq});var iq=Z((cq)=>{Object.defineProperty(cq,"__esModule",{value:!0});cq.processDetector=void 0;var kJ=y(),H=O(),bJ=G("os");class lq{detect(q){let B={[H.ATTR_PROCESS_PID]:process.pid,[H.ATTR_PROCESS_EXECUTABLE_NAME]:process.title,[H.ATTR_PROCESS_EXECUTABLE_PATH]:process.execPath,[H.ATTR_PROCESS_COMMAND_ARGS]:[process.argv[0],...process.execArgv,...process.argv.slice(1)],[H.ATTR_PROCESS_RUNTIME_VERSION]:process.versions.node,[H.ATTR_PROCESS_RUNTIME_NAME]:"nodejs",[H.ATTR_PROCESS_RUNTIME_DESCRIPTION]:"Node.js"};if(process.argv.length>1)B[H.ATTR_PROCESS_COMMAND]=process.argv[1];try{let J=bJ.userInfo();B[H.ATTR_PROCESS_OWNER]=J.username}catch(J){kJ.diag.debug(`error obtaining process owner: ${J}`)}return{attributes:B}}}cq.processDetector=new lq});var sq=Z((aq)=>{Object.defineProperty(aq,"__esModule",{value:!0});aq.serviceInstanceIdDetector=void 0;var fJ=O(),gJ=G("crypto");class nq{detect(q){return{attributes:{[fJ.ATTR_SERVICE_INSTANCE_ID]:(0,gJ.randomUUID)()}}}}aq.serviceInstanceIdDetector=new nq});var oq=Z((L)=>{Object.defineProperty(L,"__esModule",{value:!0});L.serviceInstanceIdDetector=L.processDetector=L.osDetector=L.hostDetector=void 0;var _J=gq();Object.defineProperty(L,"hostDetector",{enumerable:!0,get:function(){return _J.hostDetector}});var vJ=uq();Object.defineProperty(L,"osDetector",{enumerable:!0,get:function(){return vJ.osDetector}});var dJ=iq();Object.defineProperty(L,"processDetector",{enumerable:!0,get:function(){return dJ.processDetector}});var xJ=sq();Object.defineProperty(L,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return xJ.serviceInstanceIdDetector}})});var tq=Z((j)=>{Object.defineProperty(j,"__esModule",{value:!0});j.serviceInstanceIdDetector=j.processDetector=j.osDetector=j.hostDetector=void 0;var k=oq();Object.defineProperty(j,"hostDetector",{enumerable:!0,get:function(){return k.hostDetector}});Object.defineProperty(j,"osDetector",{enumerable:!0,get:function(){return k.osDetector}});Object.defineProperty(j,"processDetector",{enumerable:!0,get:function(){return k.processDetector}});Object.defineProperty(j,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return k.serviceInstanceIdDetector}})});var BB=Z((eq)=>{Object.defineProperty(eq,"__esModule",{value:!0});eq.noopDetector=eq.NoopDetector=void 0;class s{detect(){return{attributes:{}}}}eq.NoopDetector=s;eq.noopDetector=new s});var JB=Z((V)=>{Object.defineProperty(V,"__esModule",{value:!0});V.noopDetector=V.serviceInstanceIdDetector=V.processDetector=V.osDetector=V.hostDetector=V.envDetector=void 0;var cJ=Aq();Object.defineProperty(V,"envDetector",{enumerable:!0,get:function(){return cJ.envDetector}});var b=tq();Object.defineProperty(V,"hostDetector",{enumerable:!0,get:function(){return b.hostDetector}});Object.defineProperty(V,"osDetector",{enumerable:!0,get:function(){return b.osDetector}});Object.defineProperty(V,"processDetector",{enumerable:!0,get:function(){return b.processDetector}});Object.defineProperty(V,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return b.serviceInstanceIdDetector}});var pJ=BB();Object.defineProperty(V,"noopDetector",{enumerable:!0,get:function(){return pJ.noopDetector}})});var QB=Z((W)=>{Object.defineProperty(W,"__esModule",{value:!0});W.defaultServiceName=W.emptyResource=W.defaultResource=W.resourceFromAttributes=W.serviceInstanceIdDetector=W.processDetector=W.osDetector=W.hostDetector=W.envDetector=W.detectResources=void 0;var nJ=Lq();Object.defineProperty(W,"detectResources",{enumerable:!0,get:function(){return nJ.detectResources}});var R=JB();Object.defineProperty(W,"envDetector",{enumerable:!0,get:function(){return R.envDetector}});Object.defineProperty(W,"hostDetector",{enumerable:!0,get:function(){return R.hostDetector}});Object.defineProperty(W,"osDetector",{enumerable:!0,get:function(){return R.osDetector}});Object.defineProperty(W,"processDetector",{enumerable:!0,get:function(){return R.processDetector}});Object.defineProperty(W,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return R.serviceInstanceIdDetector}});var o=i();Object.defineProperty(W,"resourceFromAttributes",{enumerable:!0,get:function(){return o.resourceFromAttributes}});Object.defineProperty(W,"defaultResource",{enumerable:!0,get:function(){return o.defaultResource}});Object.defineProperty(W,"emptyResource",{enumerable:!0,get:function(){return o.emptyResource}});var aJ=l();Object.defineProperty(W,"defaultServiceName",{enumerable:!0,get:function(){return aJ.defaultServiceName}})});var g=K(QB(),1),$=K(S(),1);class I extends N()("@effect/opentelemetry/Resource"){}var iQ=(q)=>{let B={...q.attributes??void 0,[$.ATTR_SERVICE_NAME]:q.serviceName,[$.ATTR_TELEMETRY_SDK_NAME]:"@effect/opentelemetry",[$.ATTR_TELEMETRY_SDK_LANGUAGE]:typeof globalThis.document>"u"?$.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:$.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS};if(q.serviceVersion)B[$.ATTR_SERVICE_VERSION]=q.serviceVersion;return B},nQ=(q)=>h(I,f(function*(){let B=yield*zB(t("OTEL_SERVICE_NAME")),J=yield*t("OTEL_RESOURCE_ATTRIBUTES").pipe(WB(""),$B((Q)=>{let Y=Q.split(",");return XB(Y,{},(z,w)=>{let F=w.split("=");if(F.length!==2)return z;return z[F[0].trim()]=F[1].trim(),z})}));if(B._tag==="Some")J[$.ATTR_SERVICE_NAME]=B.value;if(q)Object.assign(J,q);return g.resourceFromAttributes(J)}).pipe(ZB)),aQ=YB(I,g.emptyResource());var X=K(y(),1),x=K(S(),1);var GB=BigInt(1e9),_=(q)=>{return[Number(q/GB),Number(q%GB)]},v=(q)=>{let B={};for(let[J,Q]of Object.entries(q))B[J]=e(Q);return B},e=(q)=>{if(typeof q==="string"||typeof q==="number"||typeof q==="boolean")return q;else if(typeof q==="bigint")return q.toString();return KB(q)};class Yq extends N()("@effect/opentelemetry/Tracer"){}class UB extends N()("@effect/opentelemetry/Tracer/OtelTracerProvider"){}class Bq extends N()("@effect/opentelemetry/Tracer/OtelTraceFlags"){}class Jq extends N()("@effect/opentelemetry/Tracer/OtelTraceState"){}var eJ=MB(AB(Yq),(q)=>NB({span(B){return new Zq(X.context,X.trace,q,B)},context(B,J){let Q=J.currentSpan;if(Q===void 0)return B["~effect/Effect/evaluate"](J);return X.context.with(OB(X.context.active(),Q),()=>B["~effect/Effect/evaluate"](J))}}));var qQ=h(Yq,f(function*(){let q=yield*I;return(yield*UB).getTracer(q.attributes[x.ATTR_SERVICE_NAME],q.attributes[x.ATTR_SERVICE_VERSION])}));var BQ=h(FB,eJ),VX=BQ.pipe(DB(qQ));var qq="~@effect/opentelemetry/Tracer/OtelSpan",JQ={internal:X.SpanKind.INTERNAL,client:X.SpanKind.CLIENT,server:X.SpanKind.SERVER,producer:X.SpanKind.PRODUCER,consumer:X.SpanKind.CONSUMER};class Zq{[qq];_tag="Span";name;kind;annotations;links;span;spanId;traceId;attributes=new Map;sampled;parent;status;constructor(q,B,J,Q){this[qq]=qq,this.name=Q.name,this.annotations=Q.annotations,this.links=Q.links,this.kind=Q.kind;let Y=q.active();this.parent=Q.root!==!0?EB(Q.parent,()=>XQ(B,Y,Q.annotations)):Q.parent,this.span=J.startSpan(Q.name,{startTime:_(Q.startTime),links:Q.links.length>0?Q.links.map((w)=>({context:Qq(w.span),attributes:v(w.attributes)})):void 0,kind:JQ[this.kind]},CB(this.parent)?OB(Y,this.parent.value,Q.annotations):X.trace.deleteSpan(Y));let z=this.span.spanContext();this.spanId=z.spanId,this.traceId=z.traceId,this.status={_tag:"Started",startTime:Q.startTime},this.sampled=QQ(z.traceFlags)}attribute(q,B){this.span.setAttribute(q,e(B)),this.attributes.set(q,B)}addLinks(q){this.links.push(...q),this.span.addLinks(q.map((B)=>({context:Qq(B.span),attributes:v(B.attributes)})))}end(q,B){let J=_(q);if(this.status={_tag:"Ended",endTime:q,exit:B,startTime:this.status.startTime},B._tag==="Success")this.span.setStatus({code:X.SpanStatusCode.OK});else if(LB(B.cause))this.span.setStatus({code:X.SpanStatusCode.OK,message:PB(B.cause)}),this.span.setAttribute("span.label","\u26A0\uFE0E Interrupted"),this.span.setAttribute("status.interrupted",!0);else{let Q=jB(B.cause);if(Q.length>0){for(let Y of Q)this.span.recordException(Y,J);this.span.setStatus({code:X.SpanStatusCode.ERROR,message:Q[0].message})}else this.span.setStatus({code:X.SpanStatusCode.OK})}this.span.end(J)}event(q,B,J){this.span.addEvent(q,J?v(J):void 0,_(B))}}var QQ=(q)=>(q&X.TraceFlags.SAMPLED)===X.TraceFlags.SAMPLED,XQ=(q,B,J)=>{let Q=q.getSpan(B)?.spanContext();if(!Q)return HB();return VB(wB({spanId:Q.spanId,traceId:Q.traceId,sampled:(Q.traceFlags&1)===1,annotations:J}))},Qq=(q,B)=>{let J=YQ(q,B),Q=ZQ(q,B);return{spanId:q.spanId,traceId:q.traceId,isRemote:q._tag==="ExternalSpan",traceFlags:J,traceState:Q}},YQ=(q,B)=>{let J;if(d(B)){if(J=yB(q,B,Bq),Xq(J))J=T(q.annotations,Bq)}return J??X.TraceFlags.SAMPLED},ZQ=(q,B)=>{let J;if(d(B)){if(J=yB(q,B,Jq),Xq(J))J=T(q.annotations,Jq)}return J},yB=(q,B,J)=>{let Q=T(B,J);if(d(Q))return Q;return T(q.annotations,J)},OB=(q,B,J)=>B instanceof Zq?X.trace.setSpan(q,B.span):X.trace.setSpanContext(q,Qq(B,J));
|
|
3
|
+
export{QB as lr,_ as mr,e as nr,I as or,iQ as pr,nQ as qr,aQ as rr,Yq as sr,UB as tr,VX as ur};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{$q as t,Kq as j,Lq as M,Mq as f,Oq as N,Rq as H,Sq as z,Tq as A,Wq as I}from"./chunk-pdcxmr6x.js";import{ar as U}from"./chunk-a1mbach4.js";import{pu as n}from"./chunk-sg9enzsp.js";import{zz as d}from"./chunk-5q98z8ck.js";function NJ(...F){return F.reduce((J,Q)=>({...J,...Q!=null?Q:{}}),{})}function VJ({tools:F=[],providerToolNames:J,resolveProviderToolName:Q}){var W;let X={},Y={};for(let Z of F)if(Z.type==="provider"){let $=(W=Q==null?void 0:Q(Z))!=null?W:(Z.id in J)?J[Z.id]:void 0;if($==null)continue;X[Z.name]=$,Y[$]=Z.name}return{toProviderToolName:(Z)=>{var $;return($=X[Z])!=null?$:Z},toCustomToolName:(Z)=>{var $;return($=Y[Z])!=null?$:Z}}}function B(F){return Object.fromEntries([...F.headers])}var{btoa:$F,atob:LF}=globalThis;function TJ(F){let J=F.replace(/-/g,"+").replace(/_/g,"/"),Q=LF(J);return Uint8Array.from(Q,(W)=>W.codePointAt(0))}function o(F){let J="";for(let Q=0;Q<F.length;Q++)J+=String.fromCodePoint(F[Q]);return $F(J)}function _J(F){return F instanceof Uint8Array?o(F):F}function jJ(F){if(F.type==="url")return F.url;return`data:${F.mediaType};base64,${typeof F.data==="string"?F.data:o(F.data)}`}function kJ(F,J={}){let{useArrayBrackets:Q=!0}=J,W=new FormData;for(let[X,Y]of Object.entries(F)){if(Y==null)continue;if(Array.isArray(Y)){if(Y.length===1){W.append(X,Y[0]);continue}let Z=Q?`${X}[]`:X;for(let $ of Y)W.append(Z,$);continue}W.append(X,Y)}return W}var a="AI_DownloadError",s=`vercel.ai.error.${a}`,UF=Symbol.for(s),m,u,O=class extends(u=j,m=UF,u){constructor({url:F,statusCode:J,statusText:Q,cause:W,message:X=W==null?`Failed to download ${F}: ${J} ${Q}`:`Failed to download ${F}: ${W}`}){super({name:a,message:X,cause:W});this[m]=!0,this.url=F,this.statusCode=J,this.statusText=Q}static isInstance(F){return j.hasMarker(F,s)}},r=2147483648;async function wF({response:F,url:J,maxBytes:Q=r}){let W=F.headers.get("content-length");if(W!=null){let G=parseInt(W,10);if(!isNaN(G)&&G>Q)throw new O({url:J,message:`Download of ${J} exceeded maximum size of ${Q} bytes (Content-Length: ${G}).`})}let X=F.body;if(X==null)return new Uint8Array(0);let Y=X.getReader(),Z=[],$=0;try{while(!0){let{done:G,value:R}=await Y.read();if(G)break;if($+=R.length,$>Q)throw new O({url:J,message:`Download of ${J} exceeded maximum size of ${Q} bytes.`});Z.push(R)}}finally{try{await Y.cancel()}finally{Y.releaseLock()}}let w=new Uint8Array($),L=0;for(let G of Z)w.set(G,L),L+=G.length;return w}function i(F){let J;try{J=new URL(F)}catch(W){throw new O({url:F,message:`Invalid URL: ${F}`})}if(J.protocol!=="http:"&&J.protocol!=="https:")throw new O({url:F,message:`URL scheme must be http or https, got ${J.protocol}`});let Q=J.hostname;if(!Q)throw new O({url:F,message:"URL must have a hostname"});if(Q==="localhost"||Q.endsWith(".local")||Q.endsWith(".localhost"))throw new O({url:F,message:`URL with hostname ${Q} is not allowed`});if(Q.startsWith("[")&&Q.endsWith("]")){let W=Q.slice(1,-1);if(EF(W))throw new O({url:F,message:`URL with IPv6 address ${Q} is not allowed`});return}if(e(Q)){if(k(Q))throw new O({url:F,message:`URL with IP address ${Q} is not allowed`});return}}function e(F){let J=F.split(".");if(J.length!==4)return!1;return J.every((Q)=>{let W=Number(Q);return Number.isInteger(W)&&W>=0&&W<=255&&String(W)===Q})}function k(F){let J=F.split(".").map(Number),[Q,W]=J;if(Q===0)return!0;if(Q===10)return!0;if(Q===127)return!0;if(Q===169&&W===254)return!0;if(Q===172&&W>=16&&W<=31)return!0;if(Q===192&&W===168)return!0;return!1}function EF(F){let J=F.toLowerCase();if(J==="::1")return!0;if(J==="::")return!0;if(J.startsWith("::ffff:")){let Q=J.slice(7);if(e(Q))return k(Q);let W=Q.split(":");if(W.length===2){let X=parseInt(W[0],16),Y=parseInt(W[1],16);if(!isNaN(X)&&!isNaN(Y)){let Z=X>>8&255,$=X&255,w=Y>>8&255,L=Y&255;return k(`${Z}.${$}.${w}.${L}`)}}}if(J.startsWith("fc")||J.startsWith("fd"))return!0;if(J.startsWith("fe80"))return!0;return!1}async function SJ(F,J){var Q,W;i(F);try{let X=await fetch(F,{signal:J==null?void 0:J.abortSignal});if(X.redirected)i(X.url);if(!X.ok)throw new O({url:F,statusCode:X.status,statusText:X.statusText});let Y=await wF({response:X,url:F,maxBytes:(Q=J==null?void 0:J.maxBytes)!=null?Q:r}),Z=(W=X.headers.get("content-type"))!=null?W:void 0;return new Blob([Y],Z?{type:Z}:void 0)}catch(X){if(O.isInstance(X))throw X;throw new O({url:F,cause:X})}}var GF=({prefix:F,size:J=16,alphabet:Q="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:W="-"}={})=>{let X=()=>{let Y=Q.length,Z=Array(J);for(let $=0;$<J;$++)Z[$]=Q[Math.random()*Y|0];return Z.join("")};if(F==null)return X;if(Q.includes(W))throw new N({argument:"separator",message:`The separator "${W}" must not be part of the alphabet "${Q}".`});return()=>`${F}${W}${X()}`},xJ=GF();function b(F){return(F instanceof Error||F instanceof DOMException)&&(F.name==="AbortError"||F.name==="ResponseAborted"||F.name==="TimeoutError")}var CF=["fetch failed","failed to fetch"],MF=["ConnectionRefused","ConnectionClosed","FailedToOpenSocket","ECONNRESET","ECONNREFUSED","ETIMEDOUT","EPIPE"];function KF(F){if(!(F instanceof Error))return!1;let J=F.code;if(typeof J==="string"&&MF.includes(J))return!0;return!1}function qF({error:F,url:J,requestBodyValues:Q}){if(b(F))return F;if(F instanceof TypeError&&CF.includes(F.message.toLowerCase())){let W=F.cause;if(W!=null)return new M({message:`Cannot connect to API: ${W.message}`,cause:W,url:J,requestBodyValues:Q,isRetryable:!0})}if(KF(F))return new M({message:`Cannot connect to API: ${F.message}`,cause:F,url:J,requestBodyValues:Q,isRetryable:!0});return F}function DF(F=globalThis){var J,Q,W;if(F.window)return"runtime/browser";if((J=F.navigator)==null?void 0:J.userAgent)return`runtime/${F.navigator.userAgent.toLowerCase()}`;if((W=(Q=F.process)==null?void 0:Q.versions)==null?void 0:W.node)return`runtime/node.js/${F.process.version.substring(0)}`;if(F.EdgeRuntime)return"runtime/vercel-edge";return"runtime/unknown"}function OF(F){if(F==null)return{};let J={};if(F instanceof Headers)F.forEach((Q,W)=>{J[W.toLowerCase()]=Q});else{if(!Array.isArray(F))F=Object.entries(F);for(let[Q,W]of F)if(W!=null)J[Q.toLowerCase()]=W}return J}function IF(F,...J){let Q=new Headers(OF(F)),W=Q.get("user-agent")||"";return Q.set("user-agent",[W,...J].filter(Boolean).join(" ")),Object.fromEntries(Q.entries())}var PF="4.0.21";var zF="JSON schema:",AF="You MUST answer with a JSON object that matches the JSON schema above.",HF="You MUST answer with JSON.";function BF({prompt:F,schema:J,schemaPrefix:Q=J!=null?zF:void 0,schemaSuffix:W=J!=null?AF:HF}){return[F!=null&&F.length>0?F:void 0,F!=null&&F.length>0?"":void 0,Q,J!=null?JSON.stringify(J):void 0,W].filter((X)=>X!=null).join(`
|
|
3
3
|
`)}function yJ({messages:F,schema:J,schemaPrefix:Q,schemaSuffix:W}){var X,Y;let Z=((X=F[0])==null?void 0:X.role)==="system"?{...F[0]}:{role:"system",content:""};return Z.content=BF({prompt:Z.content,schema:J,schemaPrefix:Q,schemaSuffix:W}),[Z,...((Y=F[0])==null?void 0:Y.role)==="system"?F.slice(1):F]}function hJ(F){return F!=null}function uJ({apiKey:F,environmentVariableName:J,apiKeyParameterName:Q="apiKey",description:W}){if(typeof F==="string")return F;if(F!=null)throw new z({message:`${W} API key must be a string.`});if(typeof process>"u")throw new z({message:`${W} API key is missing. Pass it using the '${Q}' parameter. Environment variables is not supported in this environment.`});if(F=process.env[J],F==null)throw new z({message:`${W} API key is missing. Pass it using the '${Q}' parameter or the ${J} environment variable.`});if(typeof F!=="string")throw new z({message:`${W} API key must be a string. The value of the ${J} environment variable is not a string.`});return F}function pJ({settingValue:F,environmentVariableName:J,settingName:Q,description:W}){if(typeof F==="string")return F;if(F!=null)throw new A({message:`${W} setting must be a string.`});if(typeof process>"u")throw new A({message:`${W} setting is missing. Pass it using the '${Q}' parameter. Environment variables is not supported in this environment.`});if(F=process.env[J],F==null)throw new A({message:`${W} setting is missing. Pass it using the '${Q}' parameter or the ${J} environment variable.`});if(typeof F!=="string")throw new A({message:`${W} setting must be a string. The value of the ${J} environment variable is not a string.`});return F}function lJ(F){var J;let[Q,W=""]=F.toLowerCase().split("/");return(J={mpeg:"mp3","x-wav":"wav",opus:"ogg",mp4:"m4a","x-m4a":"m4a"}[W])!=null?J:W}var RF=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,NF=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function p(F){let J=JSON.parse(F);if(J===null||typeof J!=="object")return J;if(RF.test(F)===!1&&NF.test(F)===!1)return J;return VF(J)}function VF(F){let J=[F];while(J.length){let Q=J;J=[];for(let W of Q){if(Object.prototype.hasOwnProperty.call(W,"__proto__"))throw SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(W,"constructor")&&W.constructor!==null&&typeof W.constructor==="object"&&Object.prototype.hasOwnProperty.call(W.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let X in W){let Y=W[X];if(Y&&typeof Y==="object")J.push(Y)}}}return F}function x(F){let{stackTraceLimit:J}=Error;try{Error.stackTraceLimit=0}catch(Q){return p(F)}try{return p(F)}finally{Error.stackTraceLimit=J}}function v(F){if(F.type==="object"||Array.isArray(F.type)&&F.type.includes("object")){F.additionalProperties=!1;let{properties:Q}=F;if(Q!=null)for(let W of Object.keys(Q))Q[W]=P(Q[W])}if(F.items!=null)F.items=Array.isArray(F.items)?F.items.map(P):P(F.items);if(F.anyOf!=null)F.anyOf=F.anyOf.map(P);if(F.allOf!=null)F.allOf=F.allOf.map(P);if(F.oneOf!=null)F.oneOf=F.oneOf.map(P);let{definitions:J}=F;if(J!=null)for(let Q of Object.keys(J))J[Q]=P(J[Q]);return F}function P(F){if(typeof F==="boolean")return F;return v(F)}var TF=Symbol("Let zodToJsonSchema decide on which parser to use"),l={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},_F=(F)=>typeof F==="string"?{...l,name:F}:{...l,...F};function K(){return{}}function jF(F,J){var Q,W,X;let Y={type:"array"};if(((Q=F.type)==null?void 0:Q._def)&&((X=(W=F.type)==null?void 0:W._def)==null?void 0:X.typeName)!==U.ZodAny)Y.items=E(F.type._def,{...J,currentPath:[...J.currentPath,"items"]});if(F.minLength)Y.minItems=F.minLength.value;if(F.maxLength)Y.maxItems=F.maxLength.value;if(F.exactLength)Y.minItems=F.exactLength.value,Y.maxItems=F.exactLength.value;return Y}function kF(F){let J={type:"integer",format:"int64"};if(!F.checks)return J;for(let Q of F.checks)switch(Q.kind){case"min":if(Q.inclusive)J.minimum=Q.value;else J.exclusiveMinimum=Q.value;break;case"max":if(Q.inclusive)J.maximum=Q.value;else J.exclusiveMaximum=Q.value;break;case"multipleOf":J.multipleOf=Q.value;break}return J}function bF(){return{type:"boolean"}}function FF(F,J){return E(F.type._def,J)}var SF=(F,J)=>{return E(F.innerType._def,J)};function JF(F,J,Q){let W=Q!=null?Q:J.dateStrategy;if(Array.isArray(W))return{anyOf:W.map((X,Y)=>JF(F,J,X))};switch(W){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return gF(F)}}var gF=(F)=>{let J={type:"integer",format:"unix-time"};for(let Q of F.checks)switch(Q.kind){case"min":J.minimum=Q.value;break;case"max":J.maximum=Q.value;break}return J};function xF(F,J){return{...E(F.innerType._def,J),default:F.defaultValue()}}function vF(F,J){return J.effectStrategy==="input"?E(F.schema._def,J):K()}function yF(F){return{type:"string",enum:Array.from(F.values)}}var hF=(F)=>{if("type"in F&&F.type==="string")return!1;return"allOf"in F};function mF(F,J){let Q=[E(F.left._def,{...J,currentPath:[...J.currentPath,"allOf","0"]}),E(F.right._def,{...J,currentPath:[...J.currentPath,"allOf","1"]})].filter((X)=>!!X),W=[];return Q.forEach((X)=>{if(hF(X))W.push(...X.allOf);else{let Y=X;if("additionalProperties"in X&&X.additionalProperties===!1){let{additionalProperties:Z,...$}=X;Y=$}W.push(Y)}}),W.length?{allOf:W}:void 0}function uF(F){let J=typeof F.value;if(J!=="bigint"&&J!=="number"&&J!=="boolean"&&J!=="string")return{type:Array.isArray(F.value)?"array":"object"};return{type:J==="bigint"?"integer":J,const:F.value}}var T=void 0,q={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>{if(T===void 0)T=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u");return T},uuid:/^[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}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function QF(F,J){let Q={type:"string"};if(F.checks)for(let W of F.checks)switch(W.kind){case"min":Q.minLength=typeof Q.minLength==="number"?Math.max(Q.minLength,W.value):W.value;break;case"max":Q.maxLength=typeof Q.maxLength==="number"?Math.min(Q.maxLength,W.value):W.value;break;case"email":switch(J.emailStrategy){case"format:email":D(Q,"email",W.message,J);break;case"format:idn-email":D(Q,"idn-email",W.message,J);break;case"pattern:zod":C(Q,q.email,W.message,J);break}break;case"url":D(Q,"uri",W.message,J);break;case"uuid":D(Q,"uuid",W.message,J);break;case"regex":C(Q,W.regex,W.message,J);break;case"cuid":C(Q,q.cuid,W.message,J);break;case"cuid2":C(Q,q.cuid2,W.message,J);break;case"startsWith":C(Q,RegExp(`^${_(W.value,J)}`),W.message,J);break;case"endsWith":C(Q,RegExp(`${_(W.value,J)}$`),W.message,J);break;case"datetime":D(Q,"date-time",W.message,J);break;case"date":D(Q,"date",W.message,J);break;case"time":D(Q,"time",W.message,J);break;case"duration":D(Q,"duration",W.message,J);break;case"length":Q.minLength=typeof Q.minLength==="number"?Math.max(Q.minLength,W.value):W.value,Q.maxLength=typeof Q.maxLength==="number"?Math.min(Q.maxLength,W.value):W.value;break;case"includes":{C(Q,RegExp(_(W.value,J)),W.message,J);break}case"ip":{if(W.version!=="v6")D(Q,"ipv4",W.message,J);if(W.version!=="v4")D(Q,"ipv6",W.message,J);break}case"base64url":C(Q,q.base64url,W.message,J);break;case"jwt":C(Q,q.jwt,W.message,J);break;case"cidr":{if(W.version!=="v6")C(Q,q.ipv4Cidr,W.message,J);if(W.version!=="v4")C(Q,q.ipv6Cidr,W.message,J);break}case"emoji":C(Q,q.emoji(),W.message,J);break;case"ulid":{C(Q,q.ulid,W.message,J);break}case"base64":{switch(J.base64Strategy){case"format:binary":{D(Q,"binary",W.message,J);break}case"contentEncoding:base64":{Q.contentEncoding="base64";break}case"pattern:zod":{C(Q,q.base64,W.message,J);break}}break}case"nanoid":C(Q,q.nanoid,W.message,J);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return Q}function _(F,J){return J.patternStrategy==="escape"?pF(F):F}var iF=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function pF(F){let J="";for(let Q=0;Q<F.length;Q++){if(!iF.has(F[Q]))J+="\\";J+=F[Q]}return J}function D(F,J,Q,W){var X;if(F.format||((X=F.anyOf)==null?void 0:X.some((Y)=>Y.format))){if(!F.anyOf)F.anyOf=[];if(F.format)F.anyOf.push({format:F.format}),delete F.format;F.anyOf.push({format:J,...Q&&W.errorMessages&&{errorMessage:{format:Q}}})}else F.format=J}function C(F,J,Q,W){var X;if(F.pattern||((X=F.allOf)==null?void 0:X.some((Y)=>Y.pattern))){if(!F.allOf)F.allOf=[];if(F.pattern)F.allOf.push({pattern:F.pattern}),delete F.pattern;F.allOf.push({pattern:c(J,W),...Q&&W.errorMessages&&{errorMessage:{pattern:Q}}})}else F.pattern=c(J,W)}function c(F,J){var Q;if(!J.applyRegexFlags||!F.flags)return F.source;let W={i:F.flags.includes("i"),m:F.flags.includes("m"),s:F.flags.includes("s")},X=W.i?F.source.toLowerCase():F.source,Y="",Z=!1,$=!1,w=!1;for(let L=0;L<X.length;L++){if(Z){Y+=X[L],Z=!1;continue}if(W.i){if($){if(X[L].match(/[a-z]/)){if(w)Y+=X[L],Y+=`${X[L-2]}-${X[L]}`.toUpperCase(),w=!1;else if(X[L+1]==="-"&&((Q=X[L+2])==null?void 0:Q.match(/[a-z]/)))Y+=X[L],w=!0;else Y+=`${X[L]}${X[L].toUpperCase()}`;continue}}else if(X[L].match(/[a-z]/)){Y+=`[${X[L]}${X[L].toUpperCase()}]`;continue}}if(W.m){if(X[L]==="^"){Y+=`(^|(?<=[\r
|
|
4
4
|
]))`;continue}else if(X[L]==="$"){Y+=`($|(?=[\r
|
|
5
5
|
]))`;continue}}if(W.s&&X[L]==="."){Y+=$?`${X[L]}\r
|
|
6
6
|
`:`[${X[L]}\r
|
|
7
7
|
]`;continue}if(Y+=X[L],X[L]==="\\")Z=!0;else if($&&X[L]==="]")$=!1;else if(!$&&X[L]==="[")$=!0}try{new RegExp(Y)}catch(L){return console.warn(`Could not convert regex pattern at ${J.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),F.source}return Y}function WF(F,J){var Q,W,X,Y,Z,$;let w={type:"object",additionalProperties:(Q=E(F.valueType._def,{...J,currentPath:[...J.currentPath,"additionalProperties"]}))!=null?Q:J.allowedAdditionalProperties};if(((W=F.keyType)==null?void 0:W._def.typeName)===U.ZodString&&((X=F.keyType._def.checks)==null?void 0:X.length)){let{type:L,...G}=QF(F.keyType._def,J);return{...w,propertyNames:G}}else if(((Y=F.keyType)==null?void 0:Y._def.typeName)===U.ZodEnum)return{...w,propertyNames:{enum:F.keyType._def.values}};else if(((Z=F.keyType)==null?void 0:Z._def.typeName)===U.ZodBranded&&F.keyType._def.type._def.typeName===U.ZodString&&(($=F.keyType._def.type._def.checks)==null?void 0:$.length)){let{type:L,...G}=FF(F.keyType._def,J);return{...w,propertyNames:G}}return w}function lF(F,J){if(J.mapStrategy==="record")return WF(F,J);let Q=E(F.keyType._def,{...J,currentPath:[...J.currentPath,"items","items","0"]})||K(),W=E(F.valueType._def,{...J,currentPath:[...J.currentPath,"items","items","1"]})||K();return{type:"array",maxItems:125,items:{type:"array",items:[Q,W],minItems:2,maxItems:2}}}function cF(F){let J=F.values,W=Object.keys(F.values).filter((Y)=>{return typeof J[J[Y]]!=="number"}).map((Y)=>J[Y]),X=Array.from(new Set(W.map((Y)=>typeof Y)));return{type:X.length===1?X[0]==="string"?"string":"number":["string","number"],enum:W}}function dF(){return{not:K()}}function nF(){return{type:"null"}}var S={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function fF(F,J){let Q=F.options instanceof Map?Array.from(F.options.values()):F.options;if(Q.every((W)=>(W._def.typeName in S)&&(!W._def.checks||!W._def.checks.length))){let W=Q.reduce((X,Y)=>{let Z=S[Y._def.typeName];return Z&&!X.includes(Z)?[...X,Z]:X},[]);return{type:W.length>1?W:W[0]}}else if(Q.every((W)=>W._def.typeName==="ZodLiteral"&&!W.description)){let W=Q.reduce((X,Y)=>{let Z=typeof Y._def.value;switch(Z){case"string":case"number":case"boolean":return[...X,Z];case"bigint":return[...X,"integer"];case"object":if(Y._def.value===null)return[...X,"null"];case"symbol":case"undefined":case"function":default:return X}},[]);if(W.length===Q.length){let X=W.filter((Y,Z,$)=>$.indexOf(Y)===Z);return{type:X.length>1?X:X[0],enum:Q.reduce((Y,Z)=>{return Y.includes(Z._def.value)?Y:[...Y,Z._def.value]},[])}}}else if(Q.every((W)=>W._def.typeName==="ZodEnum"))return{type:"string",enum:Q.reduce((W,X)=>[...W,...X._def.values.filter((Y)=>!W.includes(Y))],[])};return tF(F,J)}var tF=(F,J)=>{let Q=(F.options instanceof Map?Array.from(F.options.values()):F.options).map((W,X)=>E(W._def,{...J,currentPath:[...J.currentPath,"anyOf",`${X}`]})).filter((W)=>!!W&&(!J.strictUnions||typeof W==="object"&&Object.keys(W).length>0));return Q.length?{anyOf:Q}:void 0};function oF(F,J){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(F.innerType._def.typeName)&&(!F.innerType._def.checks||!F.innerType._def.checks.length))return{type:[S[F.innerType._def.typeName],"null"]};let Q=E(F.innerType._def,{...J,currentPath:[...J.currentPath,"anyOf","0"]});return Q&&{anyOf:[Q,{type:"null"}]}}function aF(F){let J={type:"number"};if(!F.checks)return J;for(let Q of F.checks)switch(Q.kind){case"int":J.type="integer";break;case"min":if(Q.inclusive)J.minimum=Q.value;else J.exclusiveMinimum=Q.value;break;case"max":if(Q.inclusive)J.maximum=Q.value;else J.exclusiveMaximum=Q.value;break;case"multipleOf":J.multipleOf=Q.value;break}return J}function sF(F,J){let Q={type:"object",properties:{}},W=[],X=F.shape();for(let Z in X){let $=X[Z];if($===void 0||$._def===void 0)continue;let w=eF($),L=E($._def,{...J,currentPath:[...J.currentPath,"properties",Z],propertyPath:[...J.currentPath,"properties",Z]});if(L===void 0)continue;if(Q.properties[Z]=L,!w)W.push(Z)}if(W.length)Q.required=W;let Y=rF(F,J);if(Y!==void 0)Q.additionalProperties=Y;return Q}function rF(F,J){if(F.catchall._def.typeName!=="ZodNever")return E(F.catchall._def,{...J,currentPath:[...J.currentPath,"additionalProperties"]});switch(F.unknownKeys){case"passthrough":return J.allowedAdditionalProperties;case"strict":return J.rejectedAdditionalProperties;case"strip":return J.removeAdditionalStrategy==="strict"?J.allowedAdditionalProperties:J.rejectedAdditionalProperties}}function eF(F){try{return F.isOptional()}catch(J){return!0}}var FJ=(F,J)=>{var Q;if(J.currentPath.toString()===((Q=J.propertyPath)==null?void 0:Q.toString()))return E(F.innerType._def,J);let W=E(F.innerType._def,{...J,currentPath:[...J.currentPath,"anyOf","1"]});return W?{anyOf:[{not:K()},W]}:K()},JJ=(F,J)=>{if(J.pipeStrategy==="input")return E(F.in._def,J);else if(J.pipeStrategy==="output")return E(F.out._def,J);let Q=E(F.in._def,{...J,currentPath:[...J.currentPath,"allOf","0"]}),W=E(F.out._def,{...J,currentPath:[...J.currentPath,"allOf",Q?"1":"0"]});return{allOf:[Q,W].filter((X)=>X!==void 0)}};function QJ(F,J){return E(F.type._def,J)}function WJ(F,J){let W={type:"array",uniqueItems:!0,items:E(F.valueType._def,{...J,currentPath:[...J.currentPath,"items"]})};if(F.minSize)W.minItems=F.minSize.value;if(F.maxSize)W.maxItems=F.maxSize.value;return W}function XJ(F,J){if(F.rest)return{type:"array",minItems:F.items.length,items:F.items.map((Q,W)=>E(Q._def,{...J,currentPath:[...J.currentPath,"items",`${W}`]})).reduce((Q,W)=>W===void 0?Q:[...Q,W],[]),additionalItems:E(F.rest._def,{...J,currentPath:[...J.currentPath,"additionalItems"]})};else return{type:"array",minItems:F.items.length,maxItems:F.items.length,items:F.items.map((Q,W)=>E(Q._def,{...J,currentPath:[...J.currentPath,"items",`${W}`]})).reduce((Q,W)=>W===void 0?Q:[...Q,W],[])}}function YJ(){return{not:K()}}function ZJ(){return K()}var $J=(F,J)=>{return E(F.innerType._def,J)},LJ=(F,J,Q)=>{switch(J){case U.ZodString:return QF(F,Q);case U.ZodNumber:return aF(F);case U.ZodObject:return sF(F,Q);case U.ZodBigInt:return kF(F);case U.ZodBoolean:return bF();case U.ZodDate:return JF(F,Q);case U.ZodUndefined:return YJ();case U.ZodNull:return nF();case U.ZodArray:return jF(F,Q);case U.ZodUnion:case U.ZodDiscriminatedUnion:return fF(F,Q);case U.ZodIntersection:return mF(F,Q);case U.ZodTuple:return XJ(F,Q);case U.ZodRecord:return WF(F,Q);case U.ZodLiteral:return uF(F);case U.ZodEnum:return yF(F);case U.ZodNativeEnum:return cF(F);case U.ZodNullable:return oF(F,Q);case U.ZodOptional:return FJ(F,Q);case U.ZodMap:return lF(F,Q);case U.ZodSet:return WJ(F,Q);case U.ZodLazy:return()=>F.getter()._def;case U.ZodPromise:return QJ(F,Q);case U.ZodNaN:case U.ZodNever:return dF();case U.ZodEffects:return vF(F,Q);case U.ZodAny:return K();case U.ZodUnknown:return ZJ();case U.ZodDefault:return xF(F,Q);case U.ZodBranded:return FF(F,Q);case U.ZodReadonly:return $J(F,Q);case U.ZodCatch:return SF(F,Q);case U.ZodPipeline:return JJ(F,Q);case U.ZodFunction:case U.ZodVoid:case U.ZodSymbol:return;default:return((W)=>{return})(J)}},UJ=(F,J)=>{let Q=0;for(;Q<F.length&&Q<J.length;Q++)if(F[Q]!==J[Q])break;return[(F.length-Q).toString(),...J.slice(Q)].join("/")};function E(F,J,Q=!1){var W;let X=J.seen.get(F);if(J.override){let w=(W=J.override)==null?void 0:W.call(J,F,J,X,Q);if(w!==TF)return w}if(X&&!Q){let w=wJ(X,J);if(w!==void 0)return w}let Y={def:F,path:J.currentPath,jsonSchema:void 0};J.seen.set(F,Y);let Z=LJ(F,F.typeName,J),$=typeof Z==="function"?E(Z(),J):Z;if($)EJ(F,J,$);if(J.postProcess){let w=J.postProcess($,F,J);return Y.jsonSchema=$,w}return Y.jsonSchema=$,$}var wJ=(F,J)=>{switch(J.$refStrategy){case"root":return{$ref:F.path.join("/")};case"relative":return{$ref:UJ(J.currentPath,F.path)};case"none":case"seen":{if(F.path.length<J.currentPath.length&&F.path.every((Q,W)=>J.currentPath[W]===Q))return console.warn(`Recursive reference detected at ${J.currentPath.join("/")}! Defaulting to any`),K();return J.$refStrategy==="seen"?K():void 0}}},EJ=(F,J,Q)=>{if(F.description)Q.description=F.description;return Q},GJ=(F)=>{let J=_F(F),Q=J.name!==void 0?[...J.basePath,J.definitionPath,J.name]:J.basePath;return{...J,currentPath:Q,propertyPath:void 0,seen:new Map(Object.entries(J.definitions).map(([W,X])=>[X._def,{def:X._def,path:[...J.basePath,J.definitionPath,W],jsonSchema:void 0}]))}},CJ=(F,J)=>{var Q;let W=GJ(J),X=typeof J==="object"&&J.definitions?Object.entries(J.definitions).reduce((L,[G,R])=>{var h;return{...L,[G]:(h=E(R._def,{...W,currentPath:[...W.basePath,W.definitionPath,G]},!0))!=null?h:K()}},{}):void 0,Y=typeof J==="string"?J:(J==null?void 0:J.nameStrategy)==="title"?void 0:J==null?void 0:J.name,Z=(Q=E(F._def,Y===void 0?W:{...W,currentPath:[...W.basePath,W.definitionPath,Y]},!1))!=null?Q:K(),$=typeof J==="object"&&J.name!==void 0&&J.nameStrategy==="title"?J.name:void 0;if($!==void 0)Z.title=$;let w=Y===void 0?X?{...Z,[W.definitionPath]:X}:Z:{$ref:[...W.$refStrategy==="relative"?[]:W.basePath,W.definitionPath,Y].join("/"),[W.definitionPath]:{...X,[Y]:Z}};return w.$schema="http://json-schema.org/draft-07/schema#",w},g=Symbol.for("vercel.ai.schema");function aJ(F){let J;return()=>{if(J==null)J=F();return J}}function V(F,{validate:J}={}){return{[g]:!0,_type:void 0,get jsonSchema(){if(typeof F==="function")F=F();return F},validate:J}}function MJ(F){return typeof F==="object"&&F!==null&&g in F&&F[g]===!0&&"jsonSchema"in F&&"validate"in F}function KJ(F){return F==null?V({properties:{},additionalProperties:!1}):MJ(F)?F:("~standard"in F)?F["~standard"].vendor==="zod"?PJ(F):qJ(F):F()}function qJ(F){return V(()=>v(F["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async(J)=>{let Q=await F["~standard"].validate(J);return"value"in Q?{success:!0,value:Q.value}:{success:!1,error:new I({value:J,cause:Q.issues})}}})}function DJ(F,J){var Q;let W=(Q=J==null?void 0:J.useReferences)!=null?Q:!1;return V(()=>CJ(F,{$refStrategy:W?"root":"none"}),{validate:async(X)=>{let Y=await F.safeParseAsync(X);return Y.success?{success:!0,value:Y.data}:{success:!1,error:Y.error}}})}function OJ(F,J){var Q;let W=(Q=J==null?void 0:J.useReferences)!=null?Q:!1;return V(()=>v(d(F,{target:"draft-7",io:"input",reused:W?"ref":"inline"})),{validate:async(X)=>{let Y=await n(F,X);return Y.success?{success:!0,value:Y.data}:{success:!1,error:Y.error}}})}function IJ(F){return"_zod"in F}function PJ(F,J){if(IJ(F))return OJ(F,J);else return DJ(F,J)}async function zJ({value:F,schema:J,context:Q}){let W=await y({value:F,schema:J,context:Q});if(!W.success)throw I.wrap({value:F,cause:W.error,context:Q});return W.value}async function y({value:F,schema:J,context:Q}){let W=KJ(J);try{if(W.validate==null)return{success:!0,value:F,rawValue:F};let X=await W.validate(F);if(X.success)return{success:!0,value:X.value,rawValue:F};return{success:!1,error:I.wrap({value:F,cause:X.error,context:Q}),rawValue:F}}catch(X){return{success:!1,error:I.wrap({value:F,cause:X,context:Q}),rawValue:F}}}async function AJ({text:F,schema:J}){try{let Q=x(F);if(J==null)return Q;return zJ({value:Q,schema:J})}catch(Q){if(H.isInstance(Q)||I.isInstance(Q))throw Q;throw new H({text:F,cause:Q})}}async function XF({text:F,schema:J}){try{let Q=x(F);if(J==null)return{success:!0,value:Q,rawValue:Q};return await y({value:Q,schema:J})}catch(Q){return{success:!1,error:H.isInstance(Q)?Q:new H({text:F,cause:Q}),rawValue:void 0}}}function sJ(F){try{return x(F),!0}catch(J){return!1}}function HJ({stream:F,schema:J}){return F.pipeThrough(new TextDecoderStream).pipeThrough(new t).pipeThrough(new TransformStream({async transform({data:Q},W){if(Q==="[DONE]")return;W.enqueue(await XF({text:Q,schema:J}))}}))}async function FQ({provider:F,providerOptions:J,schema:Q}){if((J==null?void 0:J[F])==null)return;let W=await y({value:J[F],schema:Q});if(!W.success)throw new N({argument:"providerOptions",message:`invalid ${F} provider options`,cause:W.error});return W.value}var BJ=()=>globalThis.fetch,QQ=async({url:F,headers:J,body:Q,failedResponseHandler:W,successfulResponseHandler:X,abortSignal:Y,fetch:Z})=>YF({url:F,headers:{"Content-Type":"application/json",...J},body:{content:JSON.stringify(Q),values:Q},failedResponseHandler:W,successfulResponseHandler:X,abortSignal:Y,fetch:Z}),WQ=async({url:F,headers:J,formData:Q,failedResponseHandler:W,successfulResponseHandler:X,abortSignal:Y,fetch:Z})=>YF({url:F,headers:J,body:{content:Q,values:Object.fromEntries(Q.entries())},failedResponseHandler:W,successfulResponseHandler:X,abortSignal:Y,fetch:Z}),YF=async({url:F,headers:J={},body:Q,successfulResponseHandler:W,failedResponseHandler:X,abortSignal:Y,fetch:Z=BJ()})=>{try{let $=await Z(F,{method:"POST",headers:IF(J,`ai-sdk/provider-utils/${PF}`,DF()),body:Q.content,signal:Y}),w=B($);if(!$.ok){let L;try{L=await X({response:$,url:F,requestBodyValues:Q.values})}catch(G){if(b(G)||M.isInstance(G))throw G;throw new M({message:"Failed to process error response",cause:G,statusCode:$.status,url:F,responseHeaders:w,requestBodyValues:Q.values})}throw L.value}try{return await W({response:$,url:F,requestBodyValues:Q.values})}catch(L){if(L instanceof Error){if(b(L)||M.isInstance(L))throw L}throw new M({message:"Failed to process successful response",cause:L,statusCode:$.status,url:F,responseHeaders:w,requestBodyValues:Q.values})}}catch($){throw qF({error:$,url:F,requestBodyValues:Q.values})}};function ZF(F){return F}function XQ({id:F,inputSchema:J}){return({execute:Q,outputSchema:W,needsApproval:X,toModelOutput:Y,onInputStart:Z,onInputDelta:$,onInputAvailable:w,...L})=>ZF({type:"provider",id:F,args:L,inputSchema:J,outputSchema:W,execute:Q,needsApproval:X,toModelOutput:Y,onInputStart:Z,onInputDelta:$,onInputAvailable:w})}function YQ({id:F,inputSchema:J,outputSchema:Q,supportsDeferredResults:W}){return({execute:X,needsApproval:Y,toModelOutput:Z,onInputStart:$,onInputDelta:w,onInputAvailable:L,...G})=>ZF({type:"provider",id:F,args:G,inputSchema:J,outputSchema:Q,execute:X,needsApproval:Y,toModelOutput:Z,onInputStart:$,onInputDelta:w,onInputAvailable:L,supportsDeferredResults:W})}var $Q=({errorSchema:F,errorToMessage:J,isRetryable:Q})=>async({response:W,url:X,requestBodyValues:Y})=>{let Z=await W.text(),$=B(W);if(Z.trim()==="")return{responseHeaders:$,value:new M({message:W.statusText,url:X,requestBodyValues:Y,statusCode:W.status,responseHeaders:$,responseBody:Z,isRetryable:Q==null?void 0:Q(W)})};try{let w=await AJ({text:Z,schema:F});return{responseHeaders:$,value:new M({message:J(w),url:X,requestBodyValues:Y,statusCode:W.status,responseHeaders:$,responseBody:Z,data:w,isRetryable:Q==null?void 0:Q(W,w)})}}catch(w){return{responseHeaders:$,value:new M({message:W.statusText,url:X,requestBodyValues:Y,statusCode:W.status,responseHeaders:$,responseBody:Z,isRetryable:Q==null?void 0:Q(W)})}}},LQ=(F)=>async({response:J})=>{let Q=B(J);if(J.body==null)throw new f({});return{responseHeaders:Q,value:HJ({stream:J.body,schema:F})}},UQ=(F)=>async({response:J,url:Q,requestBodyValues:W})=>{let X=await J.text(),Y=await XF({text:X,schema:F}),Z=B(J);if(!Y.success)throw new M({message:"Invalid JSON response",cause:Y.error,statusCode:J.status,responseHeaders:Z,responseBody:X,url:Q,requestBodyValues:W});return{responseHeaders:Z,value:Y.value,rawValue:Y.rawValue}},wQ=()=>async({response:F,url:J,requestBodyValues:Q})=>{let W=B(F);if(!F.body)throw new M({message:"Response body is empty",url:J,requestBodyValues:Q,statusCode:F.status,responseHeaders:W,responseBody:void 0});try{let X=await F.arrayBuffer();return{responseHeaders:W,value:new Uint8Array(X)}}catch(X){throw new M({message:"Failed to read response as array buffer",url:J,requestBodyValues:Q,statusCode:F.status,responseHeaders:W,responseBody:void 0,cause:X})}};function EQ(F){return F==null?void 0:F.replace(/\/$/,"")}
|
|
8
|
-
export{NJ as
|
|
8
|
+
export{NJ as We,VJ as Xe,TJ as Ye,o as Ze,_J as _e,jJ as $e,kJ as af,SJ as bf,xJ as cf,IF as df,yJ as ef,hJ as ff,uJ as gf,pJ as hf,lJ as if,aJ as jf,PJ as kf,zJ as lf,AJ as mf,sJ as nf,FQ as of,QQ as pf,WQ as qf,XQ as rf,YQ as sf,$Q as tf,LQ as uf,UQ as vf,wQ as wf,EQ as xf};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ns as x}from"./chunk-fkq0v5qv.js";import{Bt as q,Ct as H,ft as K,gt as j,ut as V}from"./chunk-mnjz8nqs.js";import{hu as M,mu as I}from"./chunk-ffx0cr44.js";import{$E as v,gI as _}from"./chunk-9kc2th5c.js";import{wP as a}from"./chunk-sh03ka27.js";var U={};a(U,{validateArchiveMetadata:()=>P,validateArchiveEntries:()=>g,replaceDirectoryAtomically:()=>C,extractZip:()=>p,assertArchiveDestinationSafe:()=>T});import m from"path";import c from"fs/promises";function g(o,r){let n=m.resolve(r);for(let e of o){let t=e.trim().replaceAll("\\","/");if(!t)continue;if(t.includes("\x00")||m.posix.isAbsolute(t)||/^[a-z]:\//i.test(t))throw Error(`Unsafe archive entry: ${e}`);if(t.split("/").includes(".."))throw Error(`Unsafe archive entry: ${e}`);let s=m.resolve(n,...t.split("/"));if(s!==n&&!s.startsWith(`${n}${m.sep}`))throw Error(`Unsafe archive entry: ${e}`)}}function P(o){for(let r of o.split(/\r?\n/))if(/^[bclps]/.test(r))throw Error("Archive contains an unsafe special entry")}async function u(o){let r=await c.readdir(o,{withFileTypes:!0});await Promise.all(r.map(async(n)=>{let e=m.join(o,n.name);if(n.isSymbolicLink())throw Error(`Archive contains a symbolic link: ${n.name}`);if(n.isDirectory())await u(e)}))}async function b(o){return c.lstat(o).catch((r)=>{if(r.code==="ENOENT")return;throw r})}async function T(o){let r=m.resolve(o),n=m.parse(r),e=n.root;for(let t of r.slice(n.root.length).split(m.sep).filter(Boolean)){e=m.join(e,t);let s=await b(e);if(!s)return;if(s.isSymbolicLink())throw Error(`Archive destination contains a symbolic link: ${e}`)}}async function C(o,r){let n=m.resolve(r);await T(n);let e=await b(n);if(e&&!e.isDirectory())throw Error("Archive destination must be a directory");let t=m.join(m.dirname(n),`.qitqode-backup-${crypto.randomUUID()}`);if(e)await c.rename(n,t);try{await c.rename(o,n)}catch(s){if(e)await c.rename(t,n);throw s}if(e)await c.rm(t,{recursive:!0,force:!0})}async function p(o,r){let n=m.resolve(o),e=m.resolve(r),t=await x(process.platform==="win32"?["tar","-tf",n]:["unzip","-Z1",n]);g(t.stdout.toString().split(/\r?\n/),e);let s=await x(process.platform==="win32"?["tar","-tvf",n]:["unzip","-Z","-l",n]);P(s.stdout.toString()),await T(m.dirname(e)),await c.mkdir(m.dirname(e),{recursive:!0}),await T(m.dirname(e));let f=await c.mkdtemp(m.join(m.dirname(e),".qitqode-extract-"));try{if(process.platform==="win32"){let w=n.replace(/'/g,"''"),R=f.replace(/'/g,"''"),S=`$global:ProgressPreference = 'SilentlyContinue'; Expand-Archive -Path '${w}' -DestinationPath '${R}' -Force`;await x(["powershell","-NoProfile","-NonInteractive","-Command",S])}else await x(["unzip","-o","-q",n,"-d",f]);await u(f),await C(f,e)}finally{await c.rm(f,{recursive:!0,force:!0})}}var $={};a($,{isValidHex:()=>J,hexToRgb:()=>F,hexToAnsiBold:()=>y});function J(o){if(!o)return!1;return/^#[0-9a-fA-F]{6}$/.test(o)}function F(o){let r=parseInt(o.slice(1,3),16),n=parseInt(o.slice(3,5),16),e=parseInt(o.slice(5,7),16);return{r,g:n,b:e}}function y(o){if(!J(o))return;let{r,g:n,b:e}=F(o);return`\x1B[38;2;${r};${n};${e}m\x1B[1m`}var Q={};a(Q,{awaitDeferred:()=>k});function k(o,r){return _.ensuring(v.await(o),_.sync(r))}import d from"os";import oo from"path";var i;async function A(){if(i)return i;let o=oo.join(I.Path.data,"installation_id"),r=await M.readText(o).catch(()=>{return});if(r&&r.trim())return i=r.trim(),i;return i=crypto.randomUUID(),await M.write(o,i),i}function ro(){if(process.env.USER)return process.env.USER;if(process.env.USERNAME)return process.env.USERNAME;return d.userInfo().username}function no(){return Intl.DateTimeFormat().resolvedOptions().locale}function eo(){return Intl.DateTimeFormat().resolvedOptions().timeZone}async function to(){let o=d.cpus();return{os:{platform:d.platform(),arch:d.arch(),release:d.release(),hostname:d.hostname()},cpu:{model:o[0]?.model??"unknown",count:o.length},memory:{total_bytes:d.totalmem()},user:{username:ro(),homedir:d.homedir()},runtime:{bun_version:Bun.version,node_version:process.versions.node,pid:process.pid,timezone:eo(),locale:no()},paths:{cwd:process.cwd(),data:I.Path.data,config:I.Path.config},qitqode:{version:K,channel:j,installation_id:await A(),run_id:q,process_role:H}}}var W={};a(W,{toString:()=>mo,parse:()=>co,match:()=>so,fromParsedKey:()=>fo});function so(o,r){if(!o)return!1;let n={...o,super:o.super??!1},e={...r,super:r.super??!1};return V(n,e)}function fo(o,r=!1){return{name:o.name===" "?"space":o.name,ctrl:o.ctrl,meta:o.meta,shift:o.shift,super:o.super??!1,leader:r}}function mo(o){if(!o)return"";let r=[];if(o.ctrl)r.push("ctrl");if(o.meta)r.push("alt");if(o.super)r.push("super");if(o.shift)r.push("shift");if(o.name)if(o.name==="delete")r.push("del");else r.push(o.name);let n=r.join("+");if(o.leader)n=n?`<leader> ${n}`:"<leader>";return n}function co(o){if(o==="none")return[];return o.split(",").map((r)=>{let e=r.replace(/<leader>/g,"leader+").toLowerCase().split("+"),t={ctrl:!1,meta:!1,shift:!1,leader:!1,name:""};for(let s of e)switch(s){case"ctrl":t.ctrl=!0;break;case"alt":case"meta":case"option":t.meta=!0;break;case"super":t.super=!0;break;case"shift":t.shift=!0;break;case"leader":t.leader=!0;break;case"esc":t.name="escape";break;default:t.name=s;break}return t})}var B={};a(B,{create:()=>io,NotFound:()=>O});import{AsyncLocalStorage as ao}from"async_hooks";class O extends Error{name;constructor(o){super(`No context found for ${o}`);this.name=o}}function io(o){let r=new ao;return{use(){let n=r.getStore();if(!n)throw new O(o);return n},provide(n,e){return r.run(n,e)}}}var X={};a(X,{truncateMiddle:()=>To,truncate:()=>Ro,todayTimeOrDateTime:()=>xo,titlecase:()=>wo,time:()=>N,pluralize:()=>Mo,number:()=>Io,duration:()=>Eo,datetime:()=>G});function wo(o){return o.replace(/\b\w/g,(r)=>r.toUpperCase())}function N(o){return new Date(o).toLocaleTimeString(void 0,{timeStyle:"short"})}function G(o){let r=new Date(o),n=N(o),e=r.toLocaleDateString();return`${n} \xB7 ${e}`}function xo(o){let r=new Date(o),n=new Date;if(r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()&&r.getDate()===n.getDate())return N(o);else return G(o)}function Io(o){if(o>=1e6)return(o/1e6).toFixed(1)+"M";else if(o>=1000)return(o/1000).toFixed(1)+"K";return o.toString()}function Eo(o){if(o<1000)return`${o}ms`;if(o<60000)return`${(o/1000).toFixed(1)}s`;if(o<3600000){let e=Math.floor(o/60000),t=Math.floor(o%60000/1000);return`${e}m ${t}s`}if(o<86400000){let e=Math.floor(o/3600000),t=Math.floor(o%3600000/60000);return`${e}h ${t}m`}let r=Math.floor(o%86400000/3600000);return`${Math.floor(o/86400000)}d ${r}h`}function Ro(o,r){if(r<=0)return"";if(o.length<=r)return o;return o.slice(0,r-1)+"\u2026"}function To(o,r=35){if(r<=0)return"";if(o.length<=r)return o;let n="\u2026",e=Math.ceil((r-n.length)/2),t=Math.floor((r-n.length)/2);return o.slice(0,e)+n+(t>0?o.slice(-t):"")}function Mo(o,r,n){return(o===1?r:n).replace("{}",o.toString())}var h={};a(h,{write:()=>Oo,read:()=>_o});var E=new Map;function Y(o){if(!E.has(o))E.set(o,{readers:0,writer:!1,waitingReaders:[],waitingWriters:[]});return E.get(o)}function So(o){let r=E.get(o);if(!r||r.writer||r.readers>0)return;if(r.waitingWriters.length>0){r.waitingWriters.shift()();return}while(r.waitingReaders.length>0)r.waitingReaders.shift()();if(r.readers===0&&!r.writer&&r.waitingReaders.length===0&&r.waitingWriters.length===0)E.delete(o)}function L(o){return new Promise((r)=>{let n=()=>{o.acquire();let e=!1;r({[Symbol.dispose]:()=>{if(e)return;e=!0,o.release(),So(o.key)}})};if(o.available())n();else o.waiting.push(n)})}async function _o(o){let r=Y(o);return L({key:o,available:()=>!r.writer&&r.waitingWriters.length===0,acquire:()=>r.readers++,release:()=>r.readers--,waiting:r.waitingReaders})}async function Oo(o){let r=Y(o);return L({key:o,available:()=>!r.writer&&r.readers===0,acquire:()=>{r.writer=!0},release:()=>{r.writer=!1},waiting:r.waitingWriters})}var z={};a(z,{listen:()=>No,emit:()=>go,client:()=>Po});function No(o){onmessage=async(r)=>{let n=JSON.parse(r.data);if(n.type==="rpc.request")try{let e=await o[n.method](n.input);postMessage(JSON.stringify({type:"rpc.result",result:e,id:n.id}))}catch(e){postMessage(JSON.stringify({type:"rpc.result",error:e instanceof Error?e.message:String(e),id:n.id}))}}}function go(o,r){postMessage(JSON.stringify({type:"rpc.event",event:o,data:r}))}function Po(o){let r=new Map,n=new Map,e=0;return o.onmessage=async(t)=>{let s=JSON.parse(t.data);if(s.type==="rpc.result"){let f=r.get(s.id);if(f)if(r.delete(s.id),"error"in s)f.reject(Error(typeof s.error==="string"?s.error:"RPC call failed"));else f.resolve(s.result)}if(s.type==="rpc.event"){let f=n.get(s.event);if(f)for(let w of f)w(s.data)}},{call(t,s){let f=e++;return new Promise((w,R)=>{r.set(f,{resolve:w,reject:R});try{o.postMessage(JSON.stringify({type:"rpc.request",method:t,input:s,id:f}))}catch(S){r.delete(f),R(S)}})},on(t,s){let f=n.get(t);if(!f)f=new Set,n.set(t,f);return f.add(s),()=>{f.delete(s)}}}}var D={};a(D,{estimate:()=>Z});function Z(o){return Math.max(0,Math.round((o||"").length/4))}export{U as zs,$ as As,Q as Bs,A as Cs,to as Ds,W as Es,B as Fs,X as Gs,h as Hs,Po as Is,z as Js,D as Ks};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{yP as U}from"./chunk-sh03ka27.js";import{dlopen as S,FFIType as x,ptr as M}from"bun:ffi";import{Buffer as G}from"buffer";class O{listeners=[];event=(z)=>{return this.listeners.push(z),{dispose:()=>{let H=this.listeners.indexOf(z);if(H!==-1)this.listeners.splice(H,1)}}};fire(z){for(let H of this.listeners)H(z)}}import{join as Y,dirname as R,basename as L}from"path";import{existsSync as j}from"fs";var k=80,N=24,_="sh",B="xterm";function P(z){if(z.length===0)return"''";return`'${z.replace(/'/g,"'\\''")}'`}function v(){let z=process.env.BUN_PTY_LIB;if(z&&j(z))return z;try{let q=U(`../rust-pty/target/release/${process.platform==="win32"?"rust_pty.dll":process.platform==="darwin"?process.arch==="arm64"?"librust_pty_arm64.dylib":"librust_pty.dylib":process.arch==="arm64"?"librust_pty_arm64.so":"librust_pty.so"}`);if(q)return q}catch{}let{platform:H,arch:J}=process,X=H==="darwin"?J==="arm64"?["librust_pty_arm64.dylib","librust_pty.dylib"]:["librust_pty.dylib"]:H==="win32"?["rust_pty.dll"]:J==="arm64"?["librust_pty_arm64.so","librust_pty.so"]:["librust_pty.so"],V=Bun.fileURLToPath(import.meta.url),$=R(V),W=L($),K=W==="src"||W==="dist"?R($):$,w=[Y(K,"rust-pty","target","release"),Y(K,"..","bun-pty","rust-pty","target","release"),Y(process.cwd(),"node_modules","bun-pty","rust-pty","target","release")],C=[];for(let q of w)for(let A of X)C.push(Y(q,A));for(let q of C)if(j(q))return q;throw Error(`librust_pty shared library not found.
|
|
3
3
|
Checked:
|
|
4
4
|
- BUN_PTY_LIB=${z??"<unset>"}
|
|
5
5
|
- ${C.join(`
|