@qitqode/qitqode-android-arm64 0.1.23 → 0.1.25

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.
Files changed (430) hide show
  1. package/bundle/{chunk-hyr049cr.js → chunk-0304b7xg.js} +1 -1
  2. package/bundle/{chunk-ky840wjj.js → chunk-08ba67f4.js} +1 -1
  3. package/bundle/chunk-0eneddjj.js +2 -0
  4. package/bundle/{chunk-mj7rk4xs.js → chunk-0hsb4knd.js} +1 -1
  5. package/bundle/{chunk-k0arcqnt.js → chunk-0jaxgrq0.js} +2 -2
  6. package/bundle/chunk-0ke6x10y.js +5 -0
  7. package/bundle/{chunk-naq602da.js → chunk-0rmmg3g4.js} +1 -1
  8. package/bundle/chunk-0vqrakhw.js +3 -0
  9. package/bundle/{chunk-kn9skc0g.js → chunk-0x7dbj5e.js} +1 -1
  10. package/bundle/{chunk-vay29sqp.js → chunk-0xmx2zfg.js} +1 -1
  11. package/bundle/chunk-0yb4pxjv.js +2 -0
  12. package/bundle/chunk-129kq1w7.js +2 -0
  13. package/bundle/{chunk-2e9a9brg.js → chunk-14qvaxtp.js} +1 -1
  14. package/bundle/chunk-1a5hq7d5.js +2 -0
  15. package/bundle/{chunk-bkaprkf6.js → chunk-1ce5jpdc.js} +1 -1
  16. package/bundle/{chunk-gz8x3915.js → chunk-1e8mja6v.js} +1 -1
  17. package/bundle/{chunk-12cd1yj9.js → chunk-1n1dh6zj.js} +1 -1
  18. package/bundle/{chunk-q1nvfmrm.js → chunk-1txkz6dt.js} +1 -1
  19. package/bundle/chunk-1w3y1dkk.js +2 -0
  20. package/bundle/{chunk-mg03szpz.js → chunk-23f6rc7a.js} +1 -1
  21. package/bundle/chunk-26qt44f1.js +3 -0
  22. package/bundle/{chunk-101y7ce2.js → chunk-2armxd20.js} +1 -1
  23. package/bundle/{chunk-zx90w4mt.js → chunk-2je5tp0x.js} +1 -1
  24. package/bundle/{chunk-9jjjzmvn.js → chunk-2k2axg73.js} +1 -1
  25. package/bundle/chunk-2pkake0h.js +2 -0
  26. package/bundle/{chunk-576zfh1s.js → chunk-2rxt1s22.js} +2 -2
  27. package/bundle/{chunk-xjr0xy58.js → chunk-2s28fdbp.js} +1 -1
  28. package/bundle/{chunk-haw1jzwb.js → chunk-2sy1wx99.js} +1 -1
  29. package/bundle/{chunk-bwgnmy92.js → chunk-2z35ewwc.js} +1 -1
  30. package/bundle/{chunk-y62tnk9q.js → chunk-2zj3h3xj.js} +2 -2
  31. package/bundle/chunk-32188rww.js +2 -0
  32. package/bundle/chunk-334tc1rh.js +2 -0
  33. package/bundle/{chunk-dn1jryxz.js → chunk-3dvyfmgc.js} +1 -1
  34. package/bundle/{chunk-2qy760rf.js → chunk-3e8p4a3y.js} +1 -1
  35. package/bundle/chunk-3f054f69.js +800 -0
  36. package/bundle/chunk-3ff94m8r.js +2 -0
  37. package/bundle/{chunk-3wzpdvpg.js → chunk-3fy57jcy.js} +1 -1
  38. package/bundle/{chunk-hk1ha5fj.js → chunk-3h08jdq8.js} +2 -2
  39. package/bundle/{chunk-44amvtcs.js → chunk-3j7skhxg.js} +2 -2
  40. package/bundle/{chunk-qkn4039t.js → chunk-3jhx8g5d.js} +1 -1
  41. package/bundle/{chunk-rmmyjyr9.js → chunk-3nhth7c2.js} +1 -1
  42. package/bundle/{chunk-b8z4hgq0.js → chunk-3tnek022.js} +1 -1
  43. package/bundle/{chunk-m81z3zgm.js → chunk-3xna2rk5.js} +2 -2
  44. package/bundle/{chunk-an5sr6gw.js → chunk-42t25nkb.js} +1 -1
  45. package/bundle/{chunk-3w60y2x5.js → chunk-453wpzg6.js} +1 -1
  46. package/bundle/chunk-4aqd2bty.js +2 -0
  47. package/bundle/{chunk-y0qaz8db.js → chunk-4kb2efq3.js} +1 -1
  48. package/bundle/{chunk-cbfjjbfd.js → chunk-4pssh5d3.js} +2 -2
  49. package/bundle/{chunk-9yaw0hbp.js → chunk-4stgw33j.js} +1 -1
  50. package/bundle/{chunk-cz8nnm2a.js → chunk-4w5t515p.js} +1 -1
  51. package/bundle/chunk-4wa0gf8y.js +28 -0
  52. package/bundle/{chunk-z1hd38wp.js → chunk-4wgb80jm.js} +2 -2
  53. package/bundle/{chunk-c38ppnm8.js → chunk-4wyjapes.js} +2 -2
  54. package/bundle/chunk-4xg5ptk9.js +2 -0
  55. package/bundle/chunk-54pk7nna.js +3 -0
  56. package/bundle/chunk-58680z2j.js +3 -0
  57. package/bundle/{chunk-2qj66wf5.js → chunk-5mdsrv0a.js} +1 -1
  58. package/bundle/{chunk-2adsn1ca.js → chunk-5mp82az0.js} +1 -1
  59. package/bundle/chunk-5nm36wxa.js +2 -0
  60. package/bundle/{chunk-7bxe5s20.js → chunk-5zw7knvd.js} +1 -1
  61. package/bundle/{chunk-63pvqy8n.js → chunk-61ks7c71.js} +3 -3
  62. package/bundle/chunk-64jet8nc.js +2 -0
  63. package/bundle/chunk-6584d9m8.js +2 -0
  64. package/bundle/chunk-66hv9bbw.js +2 -0
  65. package/bundle/{chunk-qr2ave8f.js → chunk-692vn48b.js} +1 -1
  66. package/bundle/chunk-6a1g6jzn.js +2 -0
  67. package/bundle/chunk-6be8p915.js +2 -0
  68. package/bundle/{chunk-3xf7q4ww.js → chunk-6ddp36ar.js} +1 -1
  69. package/bundle/chunk-6f03158n.js +2 -0
  70. package/bundle/{chunk-yffkcska.js → chunk-6gbaw2pk.js} +1 -1
  71. package/bundle/{chunk-07szgr15.js → chunk-6rrmjrm2.js} +1 -1
  72. package/bundle/{chunk-y2r3zker.js → chunk-6s2f5sv4.js} +1 -1
  73. package/bundle/{chunk-799c17nk.js → chunk-754varfr.js} +2 -2
  74. package/bundle/{chunk-ecczet3b.js → chunk-78h5dd4t.js} +2 -2
  75. package/bundle/{chunk-ejy5404v.js → chunk-7d6jhzng.js} +1 -1
  76. package/bundle/{chunk-kpkbyek5.js → chunk-7fx6x8x9.js} +2 -2
  77. package/bundle/chunk-7jnjttqx.js +2 -0
  78. package/bundle/{chunk-t66hycva.js → chunk-7q5srx7q.js} +2 -2
  79. package/bundle/chunk-7q8pa6s8.js +2 -0
  80. package/bundle/{chunk-36c2avm4.js → chunk-7qvkyjjg.js} +1 -1
  81. package/bundle/{chunk-22tf95dw.js → chunk-7rjf9b8n.js} +2 -2
  82. package/bundle/{chunk-zzdbrxkh.js → chunk-7v4fzkbb.js} +1 -1
  83. package/bundle/chunk-7w84hfxs.js +3 -0
  84. package/bundle/{chunk-g8zrn0at.js → chunk-7ws3gdjq.js} +1 -1
  85. package/bundle/{chunk-my0kzcby.js → chunk-87x607rz.js} +310 -284
  86. package/bundle/{chunk-hnzs3ywg.js → chunk-8ahpk8td.js} +1 -1
  87. package/bundle/{chunk-62yja34m.js → chunk-8atry88r.js} +1 -1
  88. package/bundle/chunk-8casywce.js +2 -0
  89. package/bundle/chunk-8cty50g7.js +2 -0
  90. package/bundle/{chunk-5dpev64z.js → chunk-8gy99gfb.js} +2 -2
  91. package/bundle/chunk-8hxwxt5p.js +2 -0
  92. package/bundle/{chunk-px15ev1g.js → chunk-8jcx4tep.js} +2 -2
  93. package/bundle/chunk-8y8140dm.js +2 -0
  94. package/bundle/{chunk-fhjpfzjc.js → chunk-8za87zkr.js} +1 -1
  95. package/bundle/{chunk-m8njvpb8.js → chunk-99p5m2f1.js} +1 -1
  96. package/bundle/{chunk-c7dt464m.js → chunk-9dpn4792.js} +2 -2
  97. package/bundle/chunk-9dqcyt6x.js +2 -0
  98. package/bundle/{chunk-w6t1qmeg.js → chunk-9f6pqped.js} +1 -1
  99. package/bundle/chunk-9he248a8.js +2 -0
  100. package/bundle/{chunk-3ne6j2h5.js → chunk-9jncnqbj.js} +2 -2
  101. package/bundle/{chunk-mwjhyj53.js → chunk-9jvnc14g.js} +1 -1
  102. package/bundle/chunk-9qmmse2n.js +2 -0
  103. package/bundle/chunk-9r6bvkp4.js +8 -0
  104. package/bundle/chunk-9va5eh9s.js +3 -0
  105. package/bundle/chunk-9w5rx0fb.js +3 -0
  106. package/bundle/{chunk-g5g9r3v5.js → chunk-a27yjp71.js} +1 -1
  107. package/bundle/chunk-aabrsxrq.js +2 -0
  108. package/bundle/{chunk-shav33fq.js → chunk-ag9thqkv.js} +2 -2
  109. package/bundle/chunk-amx3x4kd.js +3 -0
  110. package/bundle/{chunk-863s0tqa.js → chunk-aqm597px.js} +2 -2
  111. package/bundle/chunk-atd0q4v8.js +3 -0
  112. package/bundle/{chunk-58w4dhb6.js → chunk-av290sja.js} +1 -1
  113. package/bundle/chunk-avaba4sr.js +2 -0
  114. package/bundle/{chunk-p33fchnf.js → chunk-aw0q4y3s.js} +1 -1
  115. package/bundle/{chunk-7pr4jxkn.js → chunk-b2xya6pq.js} +1 -1
  116. package/bundle/{chunk-hqv0s6sw.js → chunk-b50t4jc5.js} +1 -1
  117. package/bundle/chunk-bdy1etja.js +2 -0
  118. package/bundle/{chunk-bwvjft74.js → chunk-bnc4626b.js} +1 -1
  119. package/bundle/{chunk-k5294ajv.js → chunk-bpnpxdyv.js} +2 -2
  120. package/bundle/chunk-bqdvqmjc.js +2 -0
  121. package/bundle/chunk-bqs6a1ts.js +14 -0
  122. package/bundle/{chunk-n889mwgv.js → chunk-bsqcfqya.js} +1 -1
  123. package/bundle/{chunk-ntfh16rj.js → chunk-c1ypbbka.js} +2 -2
  124. package/bundle/{chunk-0136n3jt.js → chunk-c27rpvdz.js} +1 -1
  125. package/bundle/chunk-cdws8ggq.js +2 -0
  126. package/bundle/{chunk-5x19yah0.js → chunk-cjxp72dv.js} +2 -2
  127. package/bundle/chunk-cqs9a2cs.js +2 -0
  128. package/bundle/{chunk-b54t7ycj.js → chunk-crap29f6.js} +1 -1
  129. package/bundle/{chunk-b2k9yafd.js → chunk-d0m7nbbx.js} +2 -2
  130. package/bundle/chunk-d0rjst58.js +2 -0
  131. package/bundle/{chunk-y68fp4kt.js → chunk-d1bsxz2t.js} +1 -1
  132. package/bundle/{chunk-2e76kpa6.js → chunk-d5b0bqbr.js} +1 -1
  133. package/bundle/chunk-d833a2fj.js +2 -0
  134. package/bundle/{chunk-mwbcmvmh.js → chunk-dd11kryy.js} +2 -2
  135. package/bundle/chunk-dday4nm2.js +2 -0
  136. package/bundle/{chunk-05badzhy.js → chunk-ddxjc803.js} +2 -2
  137. package/bundle/{chunk-0vhsc0yh.js → chunk-dee1a3yk.js} +2 -2
  138. package/bundle/{chunk-kktcccep.js → chunk-dgggvses.js} +1 -1
  139. package/bundle/{chunk-2es79khv.js → chunk-dk3z4k46.js} +3 -3
  140. package/bundle/{chunk-24r5h0fx.js → chunk-e075v4e9.js} +2 -2
  141. package/bundle/{chunk-m34zrf70.js → chunk-e1pwnf0b.js} +2 -2
  142. package/bundle/chunk-e2sj30hk.js +2 -0
  143. package/bundle/{chunk-t86vj45b.js → chunk-eaatrmcg.js} +1 -1
  144. package/bundle/{chunk-g6gs7cc6.js → chunk-eg7drzzt.js} +1 -1
  145. package/bundle/chunk-enc0fykg.js +2 -0
  146. package/bundle/chunk-evan93av.js +2 -0
  147. package/bundle/{chunk-wk11xsdh.js → chunk-evmfntm3.js} +1 -1
  148. package/bundle/{chunk-jvkqvgae.js → chunk-ey4ktbyb.js} +1 -1
  149. package/bundle/{chunk-fnect0ny.js → chunk-f55txcsa.js} +1 -1
  150. package/bundle/chunk-f600dzsr.js +2 -0
  151. package/bundle/chunk-f6jzwydk.js +2 -0
  152. package/bundle/{chunk-f958hsha.js → chunk-f84cd0a1.js} +2 -2
  153. package/bundle/{chunk-5wr5gpaa.js → chunk-fgw420gb.js} +1 -1
  154. package/bundle/chunk-fv67ng8z.js +2 -0
  155. package/bundle/{chunk-g7g3zm4v.js → chunk-g3s2z5xa.js} +1 -1
  156. package/bundle/{chunk-wmmck56g.js → chunk-g4qwkcdv.js} +1 -1
  157. package/bundle/{chunk-yccm7cfm.js → chunk-g73drh98.js} +3 -3
  158. package/bundle/{chunk-8hh5ejmr.js → chunk-gaen9ya4.js} +2 -2
  159. package/bundle/{chunk-m3gsrb1x.js → chunk-gefh32jb.js} +1 -1
  160. package/bundle/chunk-gevazsx3.js +2 -0
  161. package/bundle/{chunk-tfpwfczs.js → chunk-gfmfrkxc.js} +1 -1
  162. package/bundle/{chunk-ac69b9tm.js → chunk-ggeena9t.js} +1 -1
  163. package/bundle/chunk-gh18pzkx.js +2 -0
  164. package/bundle/chunk-gnvvgr4y.js +2 -0
  165. package/bundle/chunk-grkkzrg1.js +5 -0
  166. package/bundle/chunk-gsbjs2ws.js +2 -0
  167. package/bundle/{chunk-1w8b88y5.js → chunk-gsz1wqy6.js} +1 -1
  168. package/bundle/{chunk-ar1by07g.js → chunk-gvtw9c44.js} +1 -1
  169. package/bundle/chunk-gw0j8hr9.js +3 -0
  170. package/bundle/{chunk-3j6nrrva.js → chunk-h19ty95q.js} +1 -1
  171. package/bundle/{chunk-381j1hqf.js → chunk-h2fh1g8g.js} +1 -1
  172. package/bundle/{chunk-n1m5qdf5.js → chunk-h56jxxvj.js} +1 -1
  173. package/bundle/{chunk-87pzwjjj.js → chunk-hmfefq0d.js} +4 -4
  174. package/bundle/{chunk-g7742sqm.js → chunk-hvpe07pt.js} +1 -1
  175. package/bundle/{chunk-yyarzhw3.js → chunk-hwbxehhf.js} +1 -1
  176. package/bundle/{chunk-agyxa9nj.js → chunk-hznsed5n.js} +2 -2
  177. package/bundle/{chunk-fvwys8ej.js → chunk-j5b5h08g.js} +1 -1
  178. package/bundle/chunk-j7pdz979.js +2 -0
  179. package/bundle/{chunk-9zg3y89v.js → chunk-j9s62g01.js} +2 -2
  180. package/bundle/chunk-jfe2qbv8.js +2 -0
  181. package/bundle/{chunk-1vx26nt2.js → chunk-jgs6ngte.js} +1 -1
  182. package/bundle/{chunk-dsny9dh8.js → chunk-jhq5bvhs.js} +2 -2
  183. package/bundle/{chunk-9n6f9n1c.js → chunk-jq81hb32.js} +2 -2
  184. package/bundle/{chunk-nb0gc3sx.js → chunk-jqzejny3.js} +1 -1
  185. package/bundle/{chunk-t42kh492.js → chunk-jtrcnpm7.js} +2 -2
  186. package/bundle/{chunk-vxc5q0wk.js → chunk-jv98gw88.js} +2 -2
  187. package/bundle/chunk-jvaffe5d.js +10 -0
  188. package/bundle/chunk-k6zvb8xm.js +2 -0
  189. package/bundle/{chunk-erh9y0sx.js → chunk-k8bp3jjv.js} +1 -1
  190. package/bundle/{chunk-q1472d56.js → chunk-kb14wxcs.js} +2 -2
  191. package/bundle/chunk-kcht9kvx.js +2 -0
  192. package/bundle/{chunk-jge74hh4.js → chunk-kdcspxvq.js} +1 -1
  193. package/bundle/{chunk-w6zgm4vn.js → chunk-kdct3e8s.js} +1 -1
  194. package/bundle/{chunk-m8tfv36b.js → chunk-kgsq240v.js} +2 -2
  195. package/bundle/chunk-knvsa1d4.js +2 -0
  196. package/bundle/chunk-kp6d68hd.js +2 -0
  197. package/bundle/{chunk-jq6y56m5.js → chunk-kwm87f18.js} +1 -1
  198. package/bundle/{chunk-29hmwttd.js → chunk-kyny0t2g.js} +2 -2
  199. package/bundle/{chunk-v1hvnq7y.js → chunk-m2ang7yb.js} +1 -1
  200. package/bundle/{chunk-r0sjwtfc.js → chunk-mbh1pdv9.js} +2 -2
  201. package/bundle/{chunk-g2ec45xj.js → chunk-mczw8e3s.js} +2 -2
  202. package/bundle/chunk-me78p9x4.js +2 -0
  203. package/bundle/{chunk-afpwjn78.js → chunk-meaybtcc.js} +3 -3
  204. package/bundle/{chunk-k0v37hc6.js → chunk-mkdyknbz.js} +1 -1
  205. package/bundle/{chunk-fp5mvrrx.js → chunk-mkyrg7gt.js} +2 -2
  206. package/bundle/{chunk-ax9yyznf.js → chunk-mr7agwgn.js} +1 -1
  207. package/bundle/{chunk-9y65kbcf.js → chunk-msm3r7ny.js} +2 -2
  208. package/bundle/chunk-mv1d7wyt.js +2 -0
  209. package/bundle/{chunk-gjsaw7wm.js → chunk-mybpgrjj.js} +2 -2
  210. package/bundle/{chunk-1eg8mr1q.js → chunk-n8dcmjph.js} +1 -1
  211. package/bundle/chunk-n8xmmxh5.js +2 -0
  212. package/bundle/chunk-n90219q9.js +2 -0
  213. package/bundle/chunk-nckg3ydx.js +2 -0
  214. package/bundle/{chunk-apv1v4tk.js → chunk-nf8gkxbk.js} +2 -2
  215. package/bundle/chunk-nhaenjw3.js +2 -0
  216. package/bundle/chunk-nhtrt5ec.js +2 -0
  217. package/bundle/{chunk-sgq94p3x.js → chunk-nhx2xp2x.js} +1 -1
  218. package/bundle/{chunk-mt8btwrv.js → chunk-nmnsf3fc.js} +1 -1
  219. package/bundle/{chunk-wf2mj6de.js → chunk-nqefvn28.js} +1 -1
  220. package/bundle/{chunk-kdr6nxmk.js → chunk-p409grvp.js} +2 -2
  221. package/bundle/chunk-p72n0tfq.js +2 -0
  222. package/bundle/{chunk-rwanncah.js → chunk-p80dc6kt.js} +2 -2
  223. package/bundle/{chunk-z65snfyw.js → chunk-p883sz67.js} +1 -1
  224. package/bundle/{chunk-eqed7tvt.js → chunk-p8enedkf.js} +1 -1
  225. package/bundle/chunk-pd33qvr0.js +2 -0
  226. package/bundle/chunk-pepn5jp4.js +3 -0
  227. package/bundle/chunk-pf7cj4jd.js +3 -0
  228. package/bundle/{chunk-q6x5bmc3.js → chunk-pfn1db1m.js} +2 -2
  229. package/bundle/{chunk-xtj5qqsw.js → chunk-pk0tytcm.js} +1 -1
  230. package/bundle/chunk-pq3622ae.js +2 -0
  231. package/bundle/{chunk-26m5yn5d.js → chunk-psveqqv2.js} +1 -1
  232. package/bundle/{chunk-w8r4gjea.js → chunk-pvee151a.js} +1 -1
  233. package/bundle/chunk-qatj4h6b.js +2 -0
  234. package/bundle/{chunk-cwkdc1cc.js → chunk-qdnxv55k.js} +1 -1
  235. package/bundle/{chunk-s75chpxq.js → chunk-qe0sfafy.js} +2 -2
  236. package/bundle/chunk-qfz0a58d.js +2 -0
  237. package/bundle/chunk-qjwfj51e.js +2 -0
  238. package/bundle/chunk-qkg73rs9.js +2 -0
  239. package/bundle/{chunk-7b69jj5g.js → chunk-qm9ezq93.js} +1 -1
  240. package/bundle/{chunk-hvcdemxe.js → chunk-qnqqrvvs.js} +2 -2
  241. package/bundle/{chunk-bqeyh2gx.js → chunk-qnv2v02g.js} +2 -2
  242. package/bundle/{chunk-kfdqfha0.js → chunk-qpm5afdz.js} +1 -1
  243. package/bundle/chunk-qvcfst7n.js +11 -0
  244. package/bundle/{chunk-xqzbcs8x.js → chunk-rgecc41f.js} +2 -2
  245. package/bundle/chunk-rjcptzem.js +8 -0
  246. package/bundle/{chunk-k1ht1sjr.js → chunk-rjf21v5c.js} +1 -1
  247. package/bundle/chunk-rmsqb6r4.js +10 -0
  248. package/bundle/{chunk-dq1wprmb.js → chunk-rq4hqwjy.js} +1 -1
  249. package/bundle/chunk-rqrpbcm6.js +2 -0
  250. package/bundle/{chunk-kbhby60s.js → chunk-rs1mm5ef.js} +1 -1
  251. package/bundle/{chunk-jj7wrfty.js → chunk-rze20q68.js} +1 -1
  252. package/bundle/chunk-s76hdgw6.js +2 -0
  253. package/bundle/chunk-s7vhjg9e.js +2 -0
  254. package/bundle/{chunk-88kt6qmd.js → chunk-se79ke63.js} +2 -2
  255. package/bundle/chunk-sec3a60m.js +2 -0
  256. package/bundle/chunk-sjnt5e6w.js +2 -0
  257. package/bundle/chunk-sntb757q.js +2 -0
  258. package/bundle/chunk-svscftd7.js +2 -0
  259. package/bundle/chunk-sx0cabcs.js +2 -0
  260. package/bundle/{chunk-6j07cgna.js → chunk-sx5m81em.js} +1 -1
  261. package/bundle/{chunk-yr4evt94.js → chunk-syhay5ye.js} +1 -1
  262. package/bundle/{chunk-5d18fd4p.js → chunk-t07a5431.js} +1 -1
  263. package/bundle/{chunk-hs8qwx4n.js → chunk-t0amhhsk.js} +1 -1
  264. package/bundle/{chunk-70gfpkxv.js → chunk-t2tsyazc.js} +1 -1
  265. package/bundle/{chunk-7m4camry.js → chunk-tdmaxc6n.js} +1 -1
  266. package/bundle/{chunk-y2h0adg5.js → chunk-tf1me2r4.js} +3 -3
  267. package/bundle/{chunk-cn7nnjsf.js → chunk-tfggzzqw.js} +1 -1
  268. package/bundle/chunk-tmdm6vm6.js +2 -0
  269. package/bundle/{chunk-qx9j6nz1.js → chunk-v4xgceeq.js} +1 -1
  270. package/bundle/chunk-v6g0ksks.js +2 -0
  271. package/bundle/chunk-v7ah9gg0.js +3 -0
  272. package/bundle/{chunk-g0vzdt58.js → chunk-vb4e7y4d.js} +1 -1
  273. package/bundle/chunk-vbf73c7z.js +2 -0
  274. package/bundle/chunk-vbf9jpas.js +2 -0
  275. package/bundle/{chunk-5vyper2h.js → chunk-veev25yg.js} +1 -1
  276. package/bundle/{chunk-sjqgmp12.js → chunk-vfj5nwab.js} +2 -2
  277. package/bundle/{chunk-a3te67a5.js → chunk-vmgknvxs.js} +2 -2
  278. package/bundle/{chunk-agx5m1ev.js → chunk-vq6bh2z9.js} +1 -1
  279. package/bundle/{chunk-7n994qss.js → chunk-vqq5vmh1.js} +222 -222
  280. package/bundle/chunk-vrcf5q4s.js +2 -0
  281. package/bundle/chunk-vxrsp6n7.js +2 -0
  282. package/bundle/chunk-w8ax3pvh.js +2 -0
  283. package/bundle/chunk-w98r39gd.js +9 -0
  284. package/bundle/chunk-wb69d52j.js +3 -0
  285. package/bundle/{chunk-39h565hz.js → chunk-wmrq9qqf.js} +1 -1
  286. package/bundle/{chunk-8k4mkrdw.js → chunk-wrgg270f.js} +1 -1
  287. package/bundle/{chunk-w32tj884.js → chunk-ww8ear80.js} +2 -2
  288. package/bundle/{chunk-zeh3mjgp.js → chunk-x36jhtex.js} +1 -1
  289. package/bundle/{chunk-7tthc48p.js → chunk-x6b99nt3.js} +1 -1
  290. package/bundle/{chunk-k3pvgwgc.js → chunk-xdde80rf.js} +2 -2
  291. package/bundle/{chunk-ypff4a5n.js → chunk-xjrt0dta.js} +1 -1
  292. package/bundle/chunk-xk2cmh49.js +2 -0
  293. package/bundle/{chunk-3w9k7yxx.js → chunk-xqa6qkx2.js} +1 -1
  294. package/bundle/{chunk-scb48j07.js → chunk-xw283h2r.js} +2 -2
  295. package/bundle/{chunk-qzd0q1jg.js → chunk-xy4t5qf8.js} +1 -1
  296. package/bundle/{chunk-8e2wwdgb.js → chunk-xyn3xxfs.js} +1 -1
  297. package/bundle/chunk-xzhkfctf.js +2 -0
  298. package/bundle/chunk-y0xt5a6g.js +2 -0
  299. package/bundle/{chunk-26mt118z.js → chunk-ybn8tb09.js} +1 -1
  300. package/bundle/chunk-ydmrvx7q.js +2 -0
  301. package/bundle/{chunk-9tq5yt3t.js → chunk-ydsen7w0.js} +1 -1
  302. package/bundle/{chunk-0svy8w30.js → chunk-yhqk8bzk.js} +2 -2
  303. package/bundle/{chunk-shxny9x9.js → chunk-ykfq8bem.js} +1 -1
  304. package/bundle/{chunk-22vvjp4g.js → chunk-ym4ydwrz.js} +2 -2
  305. package/bundle/{chunk-1gg4c0pq.js → chunk-yzchwmb4.js} +1 -1
  306. package/bundle/{chunk-3cpqdake.js → chunk-z015twaq.js} +2 -2
  307. package/bundle/chunk-z2rtcgad.js +3 -0
  308. package/bundle/{chunk-c546xxjk.js → chunk-z3zx6g09.js} +1 -1
  309. package/bundle/chunk-z9b3t2jm.js +2 -0
  310. package/bundle/{chunk-brrtcqrc.js → chunk-zbdbsagd.js} +2 -2
  311. package/bundle/{chunk-y3qf1kg9.js → chunk-zh808d4t.js} +1 -1
  312. package/bundle/{chunk-7tb9fjvq.js → chunk-zny2qaqa.js} +2 -2
  313. package/bundle/{chunk-gzse9pab.js → chunk-zsnbxsdx.js} +2 -2
  314. package/bundle/{chunk-w9vv1whr.js → chunk-zss93r48.js} +1 -1
  315. package/bundle/chunk-zzr8smtm.js +2 -0
  316. package/bundle/index.js +16 -16
  317. package/bundle/parser.worker.js +2 -2
  318. package/bundle/worker.js +1 -1
  319. package/package.json +1 -1
  320. package/bundle/chunk-1by6y9tm.js +0 -2
  321. package/bundle/chunk-1gjh45v5.js +0 -9
  322. package/bundle/chunk-1p7wqmxp.js +0 -2
  323. package/bundle/chunk-1v47v7vm.js +0 -3
  324. package/bundle/chunk-21hnx8rx.js +0 -24
  325. package/bundle/chunk-22pvftx8.js +0 -2
  326. package/bundle/chunk-2bce1njy.js +0 -2
  327. package/bundle/chunk-2wcwbp3t.js +0 -799
  328. package/bundle/chunk-338hbnza.js +0 -11
  329. package/bundle/chunk-3gsvbfqz.js +0 -2
  330. package/bundle/chunk-3sem578c.js +0 -3
  331. package/bundle/chunk-3vgnqaem.js +0 -2
  332. package/bundle/chunk-3xrhxyz9.js +0 -2
  333. package/bundle/chunk-3zdyrnvp.js +0 -2
  334. package/bundle/chunk-4nhbgva1.js +0 -2
  335. package/bundle/chunk-5ch23jj3.js +0 -2
  336. package/bundle/chunk-5hzkd9te.js +0 -2
  337. package/bundle/chunk-5vwhfa42.js +0 -2
  338. package/bundle/chunk-662x3gq6.js +0 -2
  339. package/bundle/chunk-6an0pk19.js +0 -2
  340. package/bundle/chunk-6ybqwnp7.js +0 -2
  341. package/bundle/chunk-7365jzj1.js +0 -2
  342. package/bundle/chunk-7amvpgng.js +0 -2
  343. package/bundle/chunk-7dcz5ytp.js +0 -2
  344. package/bundle/chunk-7h7bwjmm.js +0 -2
  345. package/bundle/chunk-7vk5fhhv.js +0 -2
  346. package/bundle/chunk-7vqw9wge.js +0 -2
  347. package/bundle/chunk-7vxk5t11.js +0 -2
  348. package/bundle/chunk-83fm5xcn.js +0 -2
  349. package/bundle/chunk-8b644ae2.js +0 -2
  350. package/bundle/chunk-av2q0ffj.js +0 -2
  351. package/bundle/chunk-avk3wfch.js +0 -7
  352. package/bundle/chunk-azna4wdf.js +0 -2
  353. package/bundle/chunk-b192q4m0.js +0 -2
  354. package/bundle/chunk-bh46627y.js +0 -2
  355. package/bundle/chunk-c267ggx2.js +0 -2
  356. package/bundle/chunk-c4x99ayd.js +0 -11
  357. package/bundle/chunk-c6kxegws.js +0 -2
  358. package/bundle/chunk-cek3cfz4.js +0 -2
  359. package/bundle/chunk-ete0y35c.js +0 -2
  360. package/bundle/chunk-f1mmzzsn.js +0 -2
  361. package/bundle/chunk-f66cvq2q.js +0 -2
  362. package/bundle/chunk-fd1vbz1f.js +0 -3
  363. package/bundle/chunk-febbrhev.js +0 -3
  364. package/bundle/chunk-fq4v97xn.js +0 -2
  365. package/bundle/chunk-fw1f6br4.js +0 -2
  366. package/bundle/chunk-fzzze6zd.js +0 -5
  367. package/bundle/chunk-g3pb8rad.js +0 -2
  368. package/bundle/chunk-g6tw5dvr.js +0 -14
  369. package/bundle/chunk-gc1yetqd.js +0 -2
  370. package/bundle/chunk-gtckkn15.js +0 -2
  371. package/bundle/chunk-gtzreftf.js +0 -2
  372. package/bundle/chunk-hg7kfd0t.js +0 -3
  373. package/bundle/chunk-j5vahbw1.js +0 -2
  374. package/bundle/chunk-jazpapb9.js +0 -3
  375. package/bundle/chunk-jek1cnfk.js +0 -3
  376. package/bundle/chunk-jevrajsx.js +0 -2
  377. package/bundle/chunk-jzdks7bv.js +0 -2
  378. package/bundle/chunk-k1e7w7w5.js +0 -2
  379. package/bundle/chunk-k33xx2z9.js +0 -2
  380. package/bundle/chunk-k6vf6vq6.js +0 -2
  381. package/bundle/chunk-kn391hb2.js +0 -2
  382. package/bundle/chunk-knmba0q6.js +0 -2
  383. package/bundle/chunk-knnemqfm.js +0 -3
  384. package/bundle/chunk-kx4b39v6.js +0 -2
  385. package/bundle/chunk-mah572rs.js +0 -2
  386. package/bundle/chunk-mg6nwfw3.js +0 -2
  387. package/bundle/chunk-pdgrang4.js +0 -2
  388. package/bundle/chunk-r3q82hz3.js +0 -2
  389. package/bundle/chunk-r4ygs0jv.js +0 -2
  390. package/bundle/chunk-r6xhxvjv.js +0 -2
  391. package/bundle/chunk-r79mz5kd.js +0 -5
  392. package/bundle/chunk-r99pnfra.js +0 -2
  393. package/bundle/chunk-rjjgnvdk.js +0 -2
  394. package/bundle/chunk-rq4xdyst.js +0 -2
  395. package/bundle/chunk-rsd3v7cg.js +0 -2
  396. package/bundle/chunk-rxsgbdv0.js +0 -2
  397. package/bundle/chunk-s4x1jhj3.js +0 -2
  398. package/bundle/chunk-s7sksztt.js +0 -3
  399. package/bundle/chunk-sx760d9d.js +0 -2
  400. package/bundle/chunk-tmjd3evp.js +0 -8
  401. package/bundle/chunk-tp1d856p.js +0 -2
  402. package/bundle/chunk-tpxs00p5.js +0 -2
  403. package/bundle/chunk-tqk12r89.js +0 -2
  404. package/bundle/chunk-tycgrqgq.js +0 -2
  405. package/bundle/chunk-tydvpy1s.js +0 -3
  406. package/bundle/chunk-tz8qhbk9.js +0 -3
  407. package/bundle/chunk-v1y3pbfv.js +0 -2
  408. package/bundle/chunk-v32cyrg2.js +0 -2
  409. package/bundle/chunk-v7pypmvk.js +0 -2
  410. package/bundle/chunk-vbqyddy8.js +0 -2
  411. package/bundle/chunk-vgx86f2r.js +0 -2
  412. package/bundle/chunk-w0jvqdez.js +0 -2
  413. package/bundle/chunk-w79yek40.js +0 -2
  414. package/bundle/chunk-w7nxsfbd.js +0 -3
  415. package/bundle/chunk-wcea06cr.js +0 -2
  416. package/bundle/chunk-wcx4bbvn.js +0 -2
  417. package/bundle/chunk-wdw183vh.js +0 -2
  418. package/bundle/chunk-wqd3svh6.js +0 -2
  419. package/bundle/chunk-wqe5spdq.js +0 -2
  420. package/bundle/chunk-wqww2byk.js +0 -2
  421. package/bundle/chunk-wybd806z.js +0 -2
  422. package/bundle/chunk-x1vb00hr.js +0 -2
  423. package/bundle/chunk-xafh07r3.js +0 -2
  424. package/bundle/chunk-xgzjcsad.js +0 -2
  425. package/bundle/chunk-xn0xhd0w.js +0 -3
  426. package/bundle/chunk-xnbfy5jy.js +0 -2
  427. package/bundle/chunk-xxed39zx.js +0 -3
  428. package/bundle/chunk-y6pzag4n.js +0 -2
  429. package/bundle/chunk-y7w6fjwt.js +0 -2
  430. package/bundle/chunk-z195gv71.js +0 -2
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Cs as n,Sr as a,cs as c,ds as d,es as e,gs as f,hs as h,is as i,js as j,ks as k,ms as l,ns as m}from"./chunk-v7ah9gg0.js";import{Ls as b,Ws as g}from"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import"./chunk-ag9thqkv.js";import"./chunk-0rmmg3g4.js";export{f as getEnvInfo,a as Wildcard,m as Token,l as Rpc,b as Process,n as Log,k as Lock,j as Locale,i as LocalContext,h as Keybind,g as Filesystem,e as EffectUtil,d as Color,c as Archive};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{qe as Qb}from"./chunk-f958hsha.js";import{ue as Xb}from"./chunk-q1472d56.js";import{ve as Wb}from"./chunk-m34zrf70.js";import{we as Jb,xe as Kb,ye as Lb}from"./chunk-yccm7cfm.js";import{ze as Db}from"./chunk-88kt6qmd.js";import{rf as bb,sf as jb,tf as kb,uf as wb,vf as Bb}from"./chunk-c38ppnm8.js";import"./chunk-naq602da.js";var K=Lb(),V=Kb(),D=jb(),J=kb(),H=wb(),M=Db(),G=Jb(),P=bb(),E=Qb(),Z=Bb(),m=Wb(),Yb=Xb(),Zb=async(b,j,k)=>{return{operation:D.getSmithyContext(j).operation,region:await D.normalizeProvider(b.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function Hb(b){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:b.region},propertiesExtractor:(j,k)=>({signingProperties:{config:j,context:k}})}}function Gb(b){return{schemeId:"smithy.api#noAuth"}}var zb=(b)=>{let j=[];switch(b.operation){case"GetRoleCredentials":{j.push(Gb());break}default:j.push(Hb(b))}return j},Fb=(b)=>{let j=E.resolveAwsSdkSigV4Config(b);return Object.assign(j,{authSchemePreference:D.normalizeProvider(b.authSchemePreference??[])})},Ib=(b)=>{return Object.assign(b,{useDualstackEndpoint:b.useDualstackEndpoint??!1,useFipsEndpoint:b.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"})},Nb={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Ub="3.997.14",Vb={version:Ub},z="ref",W=-1,N=!0,S="isSet",a="PartitionResult",U="booleanEquals",A="getAttr",h={[z]:"Endpoint"},v={[z]:a},Y={},p=[{[z]:"Region"}],u={conditions:[[S,[h]],[S,p],["aws.partition",p,a],[U,[{[z]:"UseFIPS"},N]],[U,[{[z]:"UseDualStack"},N]],[U,[{fn:A,argv:[v,"supportsDualStack"]},N]],[U,[{fn:A,argv:[v,"supportsFIPS"]},N]],["stringEquals",[{fn:A,argv:[v,"name"]},"aws-us-gov"]]],results:[[W],[W,"Invalid Configuration: FIPS and custom endpoint are not supported"],[W,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[h,Y],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Y],[W,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",Y],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",Y],[W,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",Y],[W,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",Y],[W,"Invalid Configuration: Missing Region"]]},Mb=2,B=1e8,qb=new Int32Array([-1,1,-1,0,13,3,1,4,B+12,2,5,B+12,3,8,6,4,7,B+11,5,B+9,B+10,4,11,9,6,10,B+8,7,B+6,B+7,5,12,B+5,6,B+4,B+5,3,B+1,14,4,B+2,B+3]),Tb=H.BinaryDecisionDiagram.from(qb,Mb,u.conditions,u.results),yb=new H.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ob=(b,j={})=>{return yb.get(b,()=>H.decideEndpoint(Tb,{endpointParams:b,logger:j.logger}))};H.customEndpointFunctions.aws=K.awsEndpointFunctions;class X extends D.ServiceException{constructor(b){super(b);Object.setPrototypeOf(this,X.prototype)}}class l extends X{name="InvalidRequestException";$fault="client";constructor(b){super({name:"InvalidRequestException",$fault:"client",...b});Object.setPrototypeOf(this,l.prototype)}}class x extends X{name="ResourceNotFoundException";$fault="client";constructor(b){super({name:"ResourceNotFoundException",$fault:"client",...b});Object.setPrototypeOf(this,x.prototype)}}class C extends X{name="TooManyRequestsException";$fault="client";constructor(b){super({name:"TooManyRequestsException",$fault:"client",...b});Object.setPrototypeOf(this,C.prototype)}}class $ extends X{name="UnauthorizedException";$fault="client";constructor(b){super({name:"UnauthorizedException",$fault:"client",...b});Object.setPrototypeOf(this,$.prototype)}}var Rb="AccessTokenType",Ab="GetRoleCredentials",vb="GetRoleCredentialsRequest",Pb="GetRoleCredentialsResponse",Eb="InvalidRequestException",lb="RoleCredentials",xb="ResourceNotFoundException",Cb="SecretAccessKeyType",$b="SessionTokenType",_b="TooManyRequestsException",db="UnauthorizedException",mb="accountId",Sb="accessKeyId",hb="accessToken",pb="account_id",q="client",T="error",ub="expiration",sb="http",y="httpError",ab="httpHeader",s="httpQuery",O="message",rb="roleCredentials",gb="roleName",fb="role_name",r="smithy.ts.sdk.synthetic.com.amazonaws.sso",cb="secretAccessKey",tb="sessionToken",eb="x-amz-sso_bearer_token",L="com.amazonaws.sso",g=P.TypeRegistry.for(r),ib=[-3,r,"SSOServiceException",0,[],[]];g.registerError(ib,X);var F=P.TypeRegistry.for(L),nb=[-3,L,Eb,{[T]:q,[y]:400},[O],[0]];F.registerError(nb,l);var ob=[-3,L,xb,{[T]:q,[y]:404},[O],[0]];F.registerError(ob,x);var bj=[-3,L,_b,{[T]:q,[y]:429},[O],[0]];F.registerError(bj,C);var jj=[-3,L,db,{[T]:q,[y]:401},[O],[0]];F.registerError(jj,$);var kj=[g,F],wj=[0,L,Rb,8,0],Bj=[0,L,Cb,8,0],Dj=[0,L,$b,8,0],Jj=[3,L,vb,0,[gb,mb,hb],[[0,{[s]:fb}],[0,{[s]:pb}],[()=>wj,{[ab]:eb}]],3],Kj=[3,L,Pb,0,[rb],[[()=>Lj,0]]],Lj=[3,L,lb,0,[Sb,cb,tb,ub],[0,[()=>Bj,0],[()=>Dj,0],1]],Qj=[9,L,Ab,{[sb]:["GET","/federation/credentials",200]},()=>Jj,()=>Kj],Wj=(b)=>{return{apiVersion:"2019-06-10",base64Decoder:b?.base64Decoder??Z.fromBase64,base64Encoder:b?.base64Encoder??Z.toBase64,disableHostPrefix:b?.disableHostPrefix??!1,endpointProvider:b?.endpointProvider??Ob,extensions:b?.extensions??[],httpAuthSchemeProvider:b?.httpAuthSchemeProvider??zb,httpAuthSchemes:b?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(j)=>j.getIdentityProvider("aws.auth#sigv4"),signer:new E.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(j)=>j.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new V.NoAuthSigner}],logger:b?.logger??new D.NoOpLogger,protocol:b?.protocol??Yb.AwsRestJsonProtocol,protocolSettings:b?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:kj,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:b?.serviceId??"SSO",urlParser:b?.urlParser??M.parseUrl,utf8Decoder:b?.utf8Decoder??Z.fromUtf8,utf8Encoder:b?.utf8Encoder??Z.toUtf8}},Xj=(b)=>{D.emitWarningIfUnsupportedVersion(process.version);let j=J.resolveDefaultsModeConfig(b),k=()=>j().then(D.loadConfigsForDefaultMode),Q=Wj(b);K.emitWarningIfUnsupportedVersion(process.version);let w={profile:b?.profile,logger:Q.logger};return{...Q,...b,runtime:"node",defaultsMode:j,authSchemePreference:b?.authSchemePreference??J.loadConfig(E.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,w),bodyLengthChecker:b?.bodyLengthChecker??Z.calculateBodyLength,defaultUserAgentProvider:b?.defaultUserAgentProvider??K.createDefaultUserAgentProvider({serviceId:Q.serviceId,clientVersion:Vb.version}),maxAttempts:b?.maxAttempts??J.loadConfig(G.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,b),region:b?.region??J.loadConfig(J.NODE_REGION_CONFIG_OPTIONS,{...J.NODE_REGION_CONFIG_FILE_OPTIONS,...w}),requestHandler:m.NodeHttpHandler.create(b?.requestHandler??k),retryMode:b?.retryMode??J.loadConfig({...G.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await k()).retryMode||G.DEFAULT_RETRY_MODE},b),sha256:b?.sha256??Z.Hash.bind(null,"sha256"),streamCollector:b?.streamCollector??m.streamCollector,useDualstackEndpoint:b?.useDualstackEndpoint??J.loadConfig(J.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,w),useFipsEndpoint:b?.useFipsEndpoint??J.loadConfig(J.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,w),userAgentAppId:b?.userAgentAppId??J.loadConfig(K.NODE_APP_ID_CONFIG_OPTIONS,w)}},Yj=(b)=>{let{httpAuthSchemes:j,httpAuthSchemeProvider:k,credentials:Q}=b;return{setHttpAuthScheme(w){let I=j.findIndex((R)=>R.schemeId===w.schemeId);if(I===-1)j.push(w);else j.splice(I,1,w)},httpAuthSchemes(){return j},setHttpAuthSchemeProvider(w){k=w},httpAuthSchemeProvider(){return k},setCredentials(w){Q=w},credentials(){return Q}}},Zj=(b)=>{return{httpAuthSchemes:b.httpAuthSchemes(),httpAuthSchemeProvider:b.httpAuthSchemeProvider(),credentials:b.credentials()}},Hj=(b,j)=>{let k=Object.assign(K.getAwsRegionExtensionConfiguration(b),D.getDefaultExtensionConfiguration(b),M.getHttpHandlerExtensionConfiguration(b),Yj(b));return j.forEach((Q)=>Q.configure(k)),Object.assign(b,K.resolveAwsRegionExtensionConfiguration(k),D.resolveDefaultRuntimeConfig(k),M.resolveHttpHandlerRuntimeConfig(k),Zj(k))};class _ extends D.Client{config;constructor(...[b]){let j=Xj(b||{});super(j);this.initConfig=j;let k=Ib(j),Q=K.resolveUserAgentConfig(k),w=G.resolveRetryConfig(Q),I=J.resolveRegionConfig(w),R=K.resolveHostHeaderConfig(I),e=H.resolveEndpointConfig(R),i=Fb(e),n=Hj(i,b?.extensions||[]);this.config=n,this.middlewareStack.use(P.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(K.getUserAgentPlugin(this.config)),this.middlewareStack.use(G.getRetryPlugin(this.config)),this.middlewareStack.use(M.getContentLengthPlugin(this.config)),this.middlewareStack.use(K.getHostHeaderPlugin(this.config)),this.middlewareStack.use(K.getLoggerPlugin(this.config)),this.middlewareStack.use(K.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(V.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Zb,identityProviderConfigProvider:async(o)=>new V.DefaultIdentityProviderConfig({"aws.auth#sigv4":o.credentials})})),this.middlewareStack.use(V.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class d extends D.Command.classBuilder().ep(Nb).m(function(b,j,k,Q){return[H.getEndpointPlugin(k,b.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(Qj).build(){}var Gj={GetRoleCredentialsCommand:d};class f extends _{}D.createAggregatedClient(Gj,f);var{Command:zj,Client:Fj}=D;var c=d;var t=_;export{t as SSOClient,c as GetRoleCredentialsCommand};
2
+ import{se as Qb}from"./chunk-f84cd0a1.js";import{we as Xb}from"./chunk-kb14wxcs.js";import{xe as Wb}from"./chunk-e1pwnf0b.js";import{Ae as Lb,ye as Jb,ze as Kb}from"./chunk-g73drh98.js";import{Be as Db}from"./chunk-se79ke63.js";import{tf as bb,uf as jb,vf as kb,wf as wb,xf as Bb}from"./chunk-4wyjapes.js";import"./chunk-0rmmg3g4.js";var K=Lb(),V=Kb(),D=jb(),J=kb(),H=wb(),M=Db(),G=Jb(),P=bb(),E=Qb(),Z=Bb(),m=Wb(),Yb=Xb(),Zb=async(b,j,k)=>{return{operation:D.getSmithyContext(j).operation,region:await D.normalizeProvider(b.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function Hb(b){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:b.region},propertiesExtractor:(j,k)=>({signingProperties:{config:j,context:k}})}}function Gb(b){return{schemeId:"smithy.api#noAuth"}}var zb=(b)=>{let j=[];switch(b.operation){case"GetRoleCredentials":{j.push(Gb());break}default:j.push(Hb(b))}return j},Fb=(b)=>{let j=E.resolveAwsSdkSigV4Config(b);return Object.assign(j,{authSchemePreference:D.normalizeProvider(b.authSchemePreference??[])})},Ib=(b)=>{return Object.assign(b,{useDualstackEndpoint:b.useDualstackEndpoint??!1,useFipsEndpoint:b.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"})},Nb={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Ub="3.997.14",Vb={version:Ub},z="ref",W=-1,N=!0,S="isSet",a="PartitionResult",U="booleanEquals",A="getAttr",h={[z]:"Endpoint"},v={[z]:a},Y={},p=[{[z]:"Region"}],u={conditions:[[S,[h]],[S,p],["aws.partition",p,a],[U,[{[z]:"UseFIPS"},N]],[U,[{[z]:"UseDualStack"},N]],[U,[{fn:A,argv:[v,"supportsDualStack"]},N]],[U,[{fn:A,argv:[v,"supportsFIPS"]},N]],["stringEquals",[{fn:A,argv:[v,"name"]},"aws-us-gov"]]],results:[[W],[W,"Invalid Configuration: FIPS and custom endpoint are not supported"],[W,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[h,Y],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Y],[W,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",Y],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",Y],[W,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",Y],[W,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",Y],[W,"Invalid Configuration: Missing Region"]]},Mb=2,B=1e8,qb=new Int32Array([-1,1,-1,0,13,3,1,4,B+12,2,5,B+12,3,8,6,4,7,B+11,5,B+9,B+10,4,11,9,6,10,B+8,7,B+6,B+7,5,12,B+5,6,B+4,B+5,3,B+1,14,4,B+2,B+3]),Tb=H.BinaryDecisionDiagram.from(qb,Mb,u.conditions,u.results),yb=new H.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ob=(b,j={})=>{return yb.get(b,()=>H.decideEndpoint(Tb,{endpointParams:b,logger:j.logger}))};H.customEndpointFunctions.aws=K.awsEndpointFunctions;class X extends D.ServiceException{constructor(b){super(b);Object.setPrototypeOf(this,X.prototype)}}class l extends X{name="InvalidRequestException";$fault="client";constructor(b){super({name:"InvalidRequestException",$fault:"client",...b});Object.setPrototypeOf(this,l.prototype)}}class x extends X{name="ResourceNotFoundException";$fault="client";constructor(b){super({name:"ResourceNotFoundException",$fault:"client",...b});Object.setPrototypeOf(this,x.prototype)}}class C extends X{name="TooManyRequestsException";$fault="client";constructor(b){super({name:"TooManyRequestsException",$fault:"client",...b});Object.setPrototypeOf(this,C.prototype)}}class $ extends X{name="UnauthorizedException";$fault="client";constructor(b){super({name:"UnauthorizedException",$fault:"client",...b});Object.setPrototypeOf(this,$.prototype)}}var Rb="AccessTokenType",Ab="GetRoleCredentials",vb="GetRoleCredentialsRequest",Pb="GetRoleCredentialsResponse",Eb="InvalidRequestException",lb="RoleCredentials",xb="ResourceNotFoundException",Cb="SecretAccessKeyType",$b="SessionTokenType",_b="TooManyRequestsException",db="UnauthorizedException",mb="accountId",Sb="accessKeyId",hb="accessToken",pb="account_id",q="client",T="error",ub="expiration",sb="http",y="httpError",ab="httpHeader",s="httpQuery",O="message",rb="roleCredentials",gb="roleName",fb="role_name",r="smithy.ts.sdk.synthetic.com.amazonaws.sso",cb="secretAccessKey",tb="sessionToken",eb="x-amz-sso_bearer_token",L="com.amazonaws.sso",g=P.TypeRegistry.for(r),ib=[-3,r,"SSOServiceException",0,[],[]];g.registerError(ib,X);var F=P.TypeRegistry.for(L),nb=[-3,L,Eb,{[T]:q,[y]:400},[O],[0]];F.registerError(nb,l);var ob=[-3,L,xb,{[T]:q,[y]:404},[O],[0]];F.registerError(ob,x);var bj=[-3,L,_b,{[T]:q,[y]:429},[O],[0]];F.registerError(bj,C);var jj=[-3,L,db,{[T]:q,[y]:401},[O],[0]];F.registerError(jj,$);var kj=[g,F],wj=[0,L,Rb,8,0],Bj=[0,L,Cb,8,0],Dj=[0,L,$b,8,0],Jj=[3,L,vb,0,[gb,mb,hb],[[0,{[s]:fb}],[0,{[s]:pb}],[()=>wj,{[ab]:eb}]],3],Kj=[3,L,Pb,0,[rb],[[()=>Lj,0]]],Lj=[3,L,lb,0,[Sb,cb,tb,ub],[0,[()=>Bj,0],[()=>Dj,0],1]],Qj=[9,L,Ab,{[sb]:["GET","/federation/credentials",200]},()=>Jj,()=>Kj],Wj=(b)=>{return{apiVersion:"2019-06-10",base64Decoder:b?.base64Decoder??Z.fromBase64,base64Encoder:b?.base64Encoder??Z.toBase64,disableHostPrefix:b?.disableHostPrefix??!1,endpointProvider:b?.endpointProvider??Ob,extensions:b?.extensions??[],httpAuthSchemeProvider:b?.httpAuthSchemeProvider??zb,httpAuthSchemes:b?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(j)=>j.getIdentityProvider("aws.auth#sigv4"),signer:new E.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(j)=>j.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new V.NoAuthSigner}],logger:b?.logger??new D.NoOpLogger,protocol:b?.protocol??Yb.AwsRestJsonProtocol,protocolSettings:b?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:kj,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:b?.serviceId??"SSO",urlParser:b?.urlParser??M.parseUrl,utf8Decoder:b?.utf8Decoder??Z.fromUtf8,utf8Encoder:b?.utf8Encoder??Z.toUtf8}},Xj=(b)=>{D.emitWarningIfUnsupportedVersion(process.version);let j=J.resolveDefaultsModeConfig(b),k=()=>j().then(D.loadConfigsForDefaultMode),Q=Wj(b);K.emitWarningIfUnsupportedVersion(process.version);let w={profile:b?.profile,logger:Q.logger};return{...Q,...b,runtime:"node",defaultsMode:j,authSchemePreference:b?.authSchemePreference??J.loadConfig(E.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,w),bodyLengthChecker:b?.bodyLengthChecker??Z.calculateBodyLength,defaultUserAgentProvider:b?.defaultUserAgentProvider??K.createDefaultUserAgentProvider({serviceId:Q.serviceId,clientVersion:Vb.version}),maxAttempts:b?.maxAttempts??J.loadConfig(G.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,b),region:b?.region??J.loadConfig(J.NODE_REGION_CONFIG_OPTIONS,{...J.NODE_REGION_CONFIG_FILE_OPTIONS,...w}),requestHandler:m.NodeHttpHandler.create(b?.requestHandler??k),retryMode:b?.retryMode??J.loadConfig({...G.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await k()).retryMode||G.DEFAULT_RETRY_MODE},b),sha256:b?.sha256??Z.Hash.bind(null,"sha256"),streamCollector:b?.streamCollector??m.streamCollector,useDualstackEndpoint:b?.useDualstackEndpoint??J.loadConfig(J.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,w),useFipsEndpoint:b?.useFipsEndpoint??J.loadConfig(J.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,w),userAgentAppId:b?.userAgentAppId??J.loadConfig(K.NODE_APP_ID_CONFIG_OPTIONS,w)}},Yj=(b)=>{let{httpAuthSchemes:j,httpAuthSchemeProvider:k,credentials:Q}=b;return{setHttpAuthScheme(w){let I=j.findIndex((R)=>R.schemeId===w.schemeId);if(I===-1)j.push(w);else j.splice(I,1,w)},httpAuthSchemes(){return j},setHttpAuthSchemeProvider(w){k=w},httpAuthSchemeProvider(){return k},setCredentials(w){Q=w},credentials(){return Q}}},Zj=(b)=>{return{httpAuthSchemes:b.httpAuthSchemes(),httpAuthSchemeProvider:b.httpAuthSchemeProvider(),credentials:b.credentials()}},Hj=(b,j)=>{let k=Object.assign(K.getAwsRegionExtensionConfiguration(b),D.getDefaultExtensionConfiguration(b),M.getHttpHandlerExtensionConfiguration(b),Yj(b));return j.forEach((Q)=>Q.configure(k)),Object.assign(b,K.resolveAwsRegionExtensionConfiguration(k),D.resolveDefaultRuntimeConfig(k),M.resolveHttpHandlerRuntimeConfig(k),Zj(k))};class _ extends D.Client{config;constructor(...[b]){let j=Xj(b||{});super(j);this.initConfig=j;let k=Ib(j),Q=K.resolveUserAgentConfig(k),w=G.resolveRetryConfig(Q),I=J.resolveRegionConfig(w),R=K.resolveHostHeaderConfig(I),e=H.resolveEndpointConfig(R),i=Fb(e),n=Hj(i,b?.extensions||[]);this.config=n,this.middlewareStack.use(P.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(K.getUserAgentPlugin(this.config)),this.middlewareStack.use(G.getRetryPlugin(this.config)),this.middlewareStack.use(M.getContentLengthPlugin(this.config)),this.middlewareStack.use(K.getHostHeaderPlugin(this.config)),this.middlewareStack.use(K.getLoggerPlugin(this.config)),this.middlewareStack.use(K.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(V.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Zb,identityProviderConfigProvider:async(o)=>new V.DefaultIdentityProviderConfig({"aws.auth#sigv4":o.credentials})})),this.middlewareStack.use(V.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class d extends D.Command.classBuilder().ep(Nb).m(function(b,j,k,Q){return[H.getEndpointPlugin(k,b.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(Qj).build(){}var Gj={GetRoleCredentialsCommand:d};class f extends _{}D.createAggregatedClient(Gj,f);var{Command:zj,Client:Fj}=D;var c=d;var t=_;export{t as SSOClient,c as GetRoleCredentialsCommand};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Od as a}from"./chunk-wmmck56g.js";import{Pf as d}from"./chunk-9zg3y89v.js";import{Sf as i}from"./chunk-s75chpxq.js";import{Dl as p,Fl as n}from"./chunk-fzzze6zd.js";import"./chunk-afpwjn78.js";import{Eo as f}from"./chunk-c4x99ayd.js";import"./chunk-jazpapb9.js";import"./chunk-hqv0s6sw.js";import"./chunk-apv1v4tk.js";import"./chunk-mwbcmvmh.js";import"./chunk-9y65kbcf.js";import"./chunk-24r5h0fx.js";import"./chunk-dsny9dh8.js";import"./chunk-scb48j07.js";import"./chunk-tydvpy1s.js";import{rt as m}from"./chunk-b2k9yafd.js";import"./chunk-sjqgmp12.js";import"./chunk-jek1cnfk.js";import"./chunk-s7sksztt.js";import"./chunk-22vvjp4g.js";import"./chunk-a3te67a5.js";import"./chunk-kdr6nxmk.js";import"./chunk-shav33fq.js";import"./chunk-naq602da.js";import{spawn as y}from"child_process";import{Database as g}from"bun:sqlite";import{EOL as l}from"os";var b=a({command:"$0 [query]",describe:"open an interactive sqlite3 shell or run a query",builder:(t)=>{return t.positional("query",{type:"string",describe:"SQL query to execute"}).option("format",{type:"string",choices:["json","tsv"],default:"tsv",describe:"Output format"})},handler:async(t)=>{let o=t.query;if(o){let r=new g(n.Path,{readonly:!0});try{let e=r.query(o).all();if(t.format==="json")console.log(JSON.stringify(e,null,2));else if(e.length>0){let s=Object.keys(e[0]);console.log(s.join("\t"));for(let u of e)console.log(s.map((h)=>u[h]).join("\t"))}}catch(e){i.error(m(e)),process.exit(1)}r.close();return}let c=y("sqlite3",[n.Path],{stdio:"inherit"});await new Promise((r)=>c.on("close",r))}}),w=a({command:"path",describe:"print the database path",handler:()=>{console.log(n.Path)}}),q=a({command:"migrate",describe:"migrate JSON data to SQLite (merges with existing data)",handler:async()=>{let t=new g(n.Path),o=process.stderr.isTTY,c=-1;if(o)process.stderr.write("\x1B[?25l");try{let r=await p.run(f({client:t}),{progress:(e)=>{let s=Math.floor(e.current/e.total*100);if(s===c)return;if(c=s,o)process.stderr.write(d(s,`${e.current}/${e.total}`)+" ");else process.stderr.write(`sqlite-migration:${s}${l}`)}});if(o)process.stderr.write(`
2
+ import{Qd as a}from"./chunk-g4qwkcdv.js";import{Rf as d}from"./chunk-j9s62g01.js";import{Uf as i}from"./chunk-qe0sfafy.js";import{Cl as p,El as n}from"./chunk-0ke6x10y.js";import"./chunk-meaybtcc.js";import{en as f}from"./chunk-rmsqb6r4.js";import"./chunk-pf7cj4jd.js";import"./chunk-amx3x4kd.js";import"./chunk-b50t4jc5.js";import"./chunk-nf8gkxbk.js";import"./chunk-dd11kryy.js";import"./chunk-msm3r7ny.js";import"./chunk-e075v4e9.js";import"./chunk-jhq5bvhs.js";import"./chunk-xw283h2r.js";import"./chunk-v7ah9gg0.js";import{Fs as m}from"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import"./chunk-ag9thqkv.js";import"./chunk-0rmmg3g4.js";import{spawn as y}from"child_process";import{Database as g}from"bun:sqlite";import{EOL as l}from"os";var b=a({command:"$0 [query]",describe:"open an interactive sqlite3 shell or run a query",builder:(t)=>{return t.positional("query",{type:"string",describe:"SQL query to execute"}).option("format",{type:"string",choices:["json","tsv"],default:"tsv",describe:"Output format"})},handler:async(t)=>{let o=t.query;if(o){let r=new g(n.Path,{readonly:!0});try{let e=r.query(o).all();if(t.format==="json")console.log(JSON.stringify(e,null,2));else if(e.length>0){let s=Object.keys(e[0]);console.log(s.join("\t"));for(let u of e)console.log(s.map((h)=>u[h]).join("\t"))}}catch(e){i.error(m(e)),process.exit(1)}r.close();return}let c=y("sqlite3",[n.Path],{stdio:"inherit"});await new Promise((r)=>c.on("close",r))}}),w=a({command:"path",describe:"print the database path",handler:()=>{console.log(n.Path)}}),q=a({command:"migrate",describe:"migrate JSON data to SQLite (merges with existing data)",handler:async()=>{let t=new g(n.Path),o=process.stderr.isTTY,c=-1;if(o)process.stderr.write("\x1B[?25l");try{let r=await p.run(f({client:t}),{progress:(e)=>{let s=Math.floor(e.current/e.total*100);if(s===c)return;if(c=s,o)process.stderr.write(d(s,`${e.current}/${e.total}`)+" ");else process.stderr.write(`sqlite-migration:${s}${l}`)}});if(o)process.stderr.write(`
3
3
  `);if(o)process.stderr.write("\x1B[?25h");else process.stderr.write(`sqlite-migration:done${l}`);if(i.println(`Migration complete: ${r.projects} projects, ${r.sessions} sessions, ${r.messages} messages`),r.errors.length>0)i.println(`${r.errors.length} errors occurred during migration`)}catch(r){if(o)process.stderr.write("\x1B[?25h");i.error(`Migration failed: ${m(r)}`),process.exit(1)}finally{t.close()}}}),v=a({command:"db",describe:"database tools",builder:(t)=>{return t.command(b).command(w).command(q).demandCommand()},handler:()=>{}});export{v as DbCommand};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$N as i,TN as a,UN as b,VN as c,WN as d,XN as e,YN as f,ZN as g,_N as h,aO as j}from"./chunk-qnv2v02g.js";import"./chunk-0rmmg3g4.js";export{c as TreeCursor,b as Tree,f as Query,j as Parser,d as Node,i as MIN_COMPATIBLE_VERSION,a as LookaheadIterator,g as Language,h as LANGUAGE_VERSION,e as CaptureQuantifier};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Br as z,Er as B}from"./chunk-9y65kbcf.js";import{Ws as D}from"./chunk-tydvpy1s.js";import{Kz as r}from"./chunk-kdr6nxmk.js";import{AF as R,bI as W,lD as x}from"./chunk-shav33fq.js";var w=x.Reference("~qitqode/InstanceRef",{defaultValue:()=>{return}}),C=x.Reference("~qitqode/WorkspaceRef",{defaultValue:()=>{return}});var V=D.create("instance"),y={async provide(p){return V.provide({workspaceID:p.workspaceID},()=>p.fn())},restore(p,o){return V.provide({workspaceID:p},o)},get workspaceID(){try{return V.use().workspaceID}catch{return}}};var j;function U(p){j=p}function P(){if(!j)throw new D.NotFound("instance");return j()}function H(p,o){if(!o.instance&&!o.workspace)return p;if(!o.instance)return p.pipe(W.provideService(C,o.workspace));if(!o.workspace)return p.pipe(W.provideService(w,o.instance));return p.pipe(W.provideService(w,o.instance),W.provideService(C,o.workspace))}function d(p){try{return H(p,{instance:P(),workspace:y.workspaceID})}catch(o){if(!(o instanceof D.NotFound))throw o}return p}function F(p,o){let G,I=()=>G??=r.make(R.provideMerge(o,z),{memoMap:B});return{runSync:(k)=>I().runSync(d(p.use(k))),runPromiseExit:(k,q)=>I().runPromiseExit(d(p.use(k)),q),runPromise:(k,q)=>I().runPromise(d(p.use(k)),q),runFork:(k)=>I().runFork(d(p.use(k))),runCallback:(k)=>I().runCallback(d(p.use(k)))}}
3
- export{w as sr,C as tr,y as ur,U as vr,H as wr,d as xr,F as yr};
2
+ import{qq as z,tq as B}from"./chunk-msm3r7ny.js";import{is as D}from"./chunk-v7ah9gg0.js";import{Ay as r}from"./chunk-p409grvp.js";import{TG as W,bC as x,qE as R}from"./chunk-ag9thqkv.js";var w=x.Reference("~qitqode/InstanceRef",{defaultValue:()=>{return}}),C=x.Reference("~qitqode/WorkspaceRef",{defaultValue:()=>{return}});var V=D.create("instance"),y={async provide(p){return V.provide({workspaceID:p.workspaceID},()=>p.fn())},restore(p,o){return V.provide({workspaceID:p},o)},get workspaceID(){try{return V.use().workspaceID}catch{return}}};var j;function U(p){j=p}function P(){if(!j)throw new D.NotFound("instance");return j()}function H(p,o){if(!o.instance&&!o.workspace)return p;if(!o.instance)return p.pipe(W.provideService(C,o.workspace));if(!o.workspace)return p.pipe(W.provideService(w,o.instance));return p.pipe(W.provideService(w,o.instance),W.provideService(C,o.workspace))}function d(p){try{return H(p,{instance:P(),workspace:y.workspaceID})}catch(o){if(!(o instanceof D.NotFound))throw o}return p}function F(p,o){let G,I=()=>G??=r.make(R.provideMerge(o,z),{memoMap:B});return{runSync:(k)=>I().runSync(d(p.use(k))),runPromiseExit:(k,q)=>I().runPromiseExit(d(p.use(k)),q),runPromise:(k,q)=>I().runPromise(d(p.use(k)),q),runFork:(k)=>I().runFork(d(p.use(k))),runCallback:(k)=>I().runCallback(d(p.use(k)))}}
3
+ export{w as hq,C as iq,y as jq,U as kq,H as lq,d as mq,F as nq};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{if as a,jf as b,kf as c,lf as d,mf as e,nf as f}from"./chunk-zsnbxsdx.js";import"./chunk-mkyrg7gt.js";import"./chunk-7v4fzkbb.js";import"./chunk-cqtkxwd8.js";import"./chunk-pk0tytcm.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-0rmmg3g4.js";export{f as createOpenAICompatible,e as VERSION,d as OpenAICompatibleImageModel,c as OpenAICompatibleEmbeddingModel,b as OpenAICompatibleCompletionLanguageModel,a as OpenAICompatibleChatLanguageModel};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{De as T,Fe as VG,He as c,Le as h,We as l,Xe as R,Ye as b,af as f,bf as i,cf as v}from"./chunk-m8tfv36b.js";import{Kq as KG,Lq as s,Qq as BG,Sq as S}from"./chunk-zzdbrxkh.js";import{Eu as G}from"./chunk-22vvjp4g.js";var EG=G.object({error:G.object({message:G.string(),type:G.string().nullish(),param:G.any().nullish(),code:G.union([G.string(),G.number()]).nullish()})}),n={errorSchema:EG,errorToMessage:(Q)=>Q.error.message};function $G(Q){var Y,Z,$,U,z,j;if(Q==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let K=(Y=Q.prompt_tokens)!=null?Y:0,W=(Z=Q.completion_tokens)!=null?Z:0,X=(U=($=Q.prompt_tokens_details)==null?void 0:$.cached_tokens)!=null?U:0,J=(j=(z=Q.completion_tokens_details)==null?void 0:z.reasoning_tokens)!=null?j:0;return{inputTokens:{total:K,noCache:K-X,cacheRead:X,cacheWrite:void 0},outputTokens:{total:W,text:W-J,reasoning:J},raw:Q}}function C(Q){var Y,Z;return(Z=(Y=Q==null?void 0:Q.providerOptions)==null?void 0:Y.openaiCompatible)!=null?Z:{}}function HG(Q){switch(Q){case"audio/wav":return"wav";case"audio/mp3":case"audio/mpeg":return"mp3";default:return null}}function AG(Q){var Y,Z,$;let U=[];for(let{role:z,content:j,...K}of Q){let W=C({...K});switch(z){case"system":{U.push({role:"system",content:j,...W});break}case"user":{if(j.length===1&&j[0].type==="text"){U.push({role:"user",content:j[0].text,...C(j[0])});break}U.push({role:"user",content:j.map((X)=>{var J;let B=C(X);switch(X.type){case"text":return{type:"text",text:X.text,...B};case"file":{if(X.mediaType.startsWith("image/")){let L=X.mediaType==="image/*"?"image/jpeg":X.mediaType;return{type:"image_url",image_url:{url:X.data instanceof URL?X.data.toString():`data:${L};base64,${c(X.data)}`},...B}}if(X.mediaType.startsWith("audio/")){if(X.data instanceof URL)throw new S({functionality:"audio file parts with URLs"});let L=HG(X.mediaType);if(L===null)throw new S({functionality:`audio media type ${X.mediaType}`});return{type:"input_audio",input_audio:{data:c(X.data),format:L},...B}}if(X.mediaType==="application/pdf"){if(X.data instanceof URL)throw new S({functionality:"PDF file parts with URLs"});return{type:"file",file:{filename:(J=X.filename)!=null?J:"document.pdf",file_data:`data:application/pdf;base64,${c(X.data)}`},...B}}if(X.mediaType.startsWith("text/"))return{type:"text",text:X.data instanceof URL?X.data.toString():typeof X.data==="string"?new TextDecoder().decode(VG(X.data)):new TextDecoder().decode(X.data),...B};throw new S({functionality:`file part media type ${X.mediaType}`})}}}),...W});break}case"assistant":{let X="",J="",B=[];for(let L of j){let N=C(L);switch(L.type){case"text":{X+=L.text;break}case"reasoning":{J+=L.text;break}case"tool-call":{let H=(Z=(Y=L.providerOptions)==null?void 0:Y.google)==null?void 0:Z.thoughtSignature;B.push({id:L.toolCallId,type:"function",function:{name:L.toolName,arguments:JSON.stringify(L.input)},...N,...H?{extra_content:{google:{thought_signature:String(H)}}}:{}});break}}}U.push({role:"assistant",content:X,...J.length>0?{reasoning_content:J}:{},tool_calls:B.length>0?B:void 0,...W});break}case"tool":{for(let X of j){if(X.type==="tool-approval-response")continue;let J=X.output,B;switch(J.type){case"text":case"error-text":B=J.value;break;case"execution-denied":B=($=J.reason)!=null?$:"Tool execution denied.";break;case"content":case"json":case"error-json":B=JSON.stringify(J.value);break}let L=C(X);U.push({role:"tool",tool_call_id:X.toolCallId,content:B,...L})}break}default:throw Error(`Unsupported role: ${z}`)}}return U}function JG({id:Q,model:Y,created:Z}){return{id:Q!=null?Q:void 0,modelId:Y!=null?Y:void 0,timestamp:Z!=null?new Date(Z*1000):void 0}}function UG(Q){switch(Q){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}var d=G.object({user:G.string().optional(),reasoningEffort:G.string().optional(),textVerbosity:G.string().optional(),strictJsonSchema:G.boolean().optional()});function PG({tools:Q,toolChoice:Y}){Q=(Q==null?void 0:Q.length)?Q:void 0;let Z=[];if(Q==null)return{tools:void 0,toolChoice:void 0,toolWarnings:Z};let $=[];for(let z of Q)if(z.type==="provider")Z.push({type:"unsupported",feature:`provider-defined tool ${z.id}`});else $.push({type:"function",function:{name:z.name,description:z.description,parameters:z.inputSchema,...z.strict!=null?{strict:z.strict}:{}}});if(Y==null)return{tools:$,toolChoice:void 0,toolWarnings:Z};let U=Y.type;switch(U){case"auto":case"none":case"required":return{tools:$,toolChoice:U,toolWarnings:Z};case"tool":return{tools:$,toolChoice:{type:"function",function:{name:Y.toolName}},toolWarnings:Z};default:throw new S({functionality:`tool choice type: ${U}`})}}var CG=class{constructor(Q,Y){this.specificationVersion="v3";var Z,$;this.modelId=Q,this.config=Y;let U=(Z=Y.errorStructure)!=null?Z:n;this.chunkSchema=DG(U.errorSchema),this.failedResponseHandler=f(U),this.supportsStructuredOutputs=($=Y.supportsStructuredOutputs)!=null?$:!1}get provider(){return this.config.provider}get providerOptionsName(){return this.config.provider.split(".")[0].trim()}get supportedUrls(){var Q,Y,Z;return(Z=(Y=(Q=this.config).supportedUrls)==null?void 0:Y.call(Q))!=null?Z:{}}transformRequestBody(Q){var Y,Z,$;return($=(Z=(Y=this.config).transformRequestBody)==null?void 0:Z.call(Y,Q))!=null?$:Q}async getArgs({prompt:Q,maxOutputTokens:Y,temperature:Z,topP:$,topK:U,frequencyPenalty:z,presencePenalty:j,providerOptions:K,stopSequences:W,responseFormat:X,seed:J,toolChoice:B,tools:L}){var N,H,E,V,q;let A=[],I=await R({provider:"openai-compatible",providerOptions:K,schema:d});if(I!=null)A.push({type:"other",message:"The 'openai-compatible' key in providerOptions is deprecated. Use 'openaiCompatible' instead."});let D=Object.assign(I!=null?I:{},(N=await R({provider:"openaiCompatible",providerOptions:K,schema:d}))!=null?N:{},(H=await R({provider:this.providerOptionsName,providerOptions:K,schema:d}))!=null?H:{}),P=(E=D==null?void 0:D.strictJsonSchema)!=null?E:!0;if(U!=null)A.push({type:"unsupported",feature:"topK"});if((X==null?void 0:X.type)==="json"&&X.schema!=null&&!this.supportsStructuredOutputs)A.push({type:"unsupported",feature:"responseFormat",details:"JSON response format schema is only supported with structuredOutputs"});let{tools:w,toolChoice:y,toolWarnings:u}=PG({tools:L,toolChoice:B});return{args:{model:this.modelId,user:D.user,max_tokens:Y,temperature:Z,top_p:$,frequency_penalty:z,presence_penalty:j,response_format:(X==null?void 0:X.type)==="json"?this.supportsStructuredOutputs===!0&&X.schema!=null?{type:"json_schema",json_schema:{schema:X.schema,strict:P,name:(V=X.name)!=null?V:"response",description:X.description}}:{type:"json_object"}:void 0,stop:W,seed:J,...Object.fromEntries(Object.entries((q=K==null?void 0:K[this.providerOptionsName])!=null?q:{}).filter(([g])=>!Object.keys(d.shape).includes(g))),reasoning_effort:D.reasoningEffort,verbosity:D.textVerbosity,messages:AG(Q),tools:w,tool_choice:y},warnings:[...A,...u]}}async doGenerate(Q){var Y,Z,$,U,z,j,K,W;let{args:X,warnings:J}=await this.getArgs({...Q}),B=this.transformRequestBody(X),L=JSON.stringify(B),{responseHeaders:N,value:H,rawValue:E}=await b({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:T(this.config.headers(),Q.headers),body:B,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:v(qG),abortSignal:Q.abortSignal,fetch:this.config.fetch}),V=H.choices[0],q=[],A=V.message.content;if(A!=null&&A.length>0)q.push({type:"text",text:A});let I=(Y=V.message.reasoning_content)!=null?Y:V.message.reasoning;if(I!=null&&I.length>0)q.push({type:"reasoning",text:I});if(V.message.tool_calls!=null)for(let w of V.message.tool_calls){let y=($=(Z=w.extra_content)==null?void 0:Z.google)==null?void 0:$.thought_signature;q.push({type:"tool-call",toolCallId:(U=w.id)!=null?U:h(),toolName:w.function.name,input:w.function.arguments,...y?{providerMetadata:{[this.providerOptionsName]:{thoughtSignature:y}}}:{}})}let D={[this.providerOptionsName]:{},...await((j=(z=this.config.metadataExtractor)==null?void 0:z.extractMetadata)==null?void 0:j.call(z,{parsedBody:E}))},P=(K=H.usage)==null?void 0:K.completion_tokens_details;if((P==null?void 0:P.accepted_prediction_tokens)!=null)D[this.providerOptionsName].acceptedPredictionTokens=P==null?void 0:P.accepted_prediction_tokens;if((P==null?void 0:P.rejected_prediction_tokens)!=null)D[this.providerOptionsName].rejectedPredictionTokens=P==null?void 0:P.rejected_prediction_tokens;return{content:q,finishReason:{unified:UG(V.finish_reason),raw:(W=V.finish_reason)!=null?W:void 0},usage:$G(H.usage),providerMetadata:D,request:{body:L},response:{...JG(H),headers:N,body:E},warnings:J}}async doStream(Q){var Y;let{args:Z,warnings:$}=await this.getArgs({...Q}),U=this.transformRequestBody({...Z,stream:!0,stream_options:this.config.includeUsage?{include_usage:!0}:void 0}),z=(Y=this.config.metadataExtractor)==null?void 0:Y.createStreamExtractor(),{responseHeaders:j,value:K}=await b({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:T(this.config.headers(),Q.headers),body:U,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:i(this.chunkSchema),abortSignal:Q.abortSignal,fetch:this.config.fetch}),W=[],X={unified:"other",raw:void 0},J=void 0,B=!0,L=this.providerOptionsName,N=!1,H=!1;return{stream:K.pipeThrough(new TransformStream({start(E){E.enqueue({type:"stream-start",warnings:$})},transform(E,V){var q,A,I,D,P,w,y,u,g,a,r,t,e,o,GG,QG,XG,YG;if(Q.includeRawChunks)V.enqueue({type:"raw",rawValue:E.rawValue});if(!E.success){X={unified:"error",raw:void 0},V.enqueue({type:"error",error:E.error});return}if(z==null||z.processChunk(E.rawValue),"error"in E.value){X={unified:"error",raw:void 0},V.enqueue({type:"error",error:E.value.error.message});return}let _=E.value;if(B)B=!1,V.enqueue({type:"response-metadata",...JG(_)});if(_.usage!=null)J=_.usage;let O=_.choices[0];if((O==null?void 0:O.finish_reason)!=null)X={unified:UG(O.finish_reason),raw:(q=O.finish_reason)!=null?q:void 0};if((O==null?void 0:O.delta)==null)return;let k=O.delta,ZG=(A=k.reasoning_content)!=null?A:k.reasoning;if(ZG){if(!N)V.enqueue({type:"reasoning-start",id:"reasoning-0"}),N=!0;V.enqueue({type:"reasoning-delta",id:"reasoning-0",delta:ZG})}if(k.content){if(N)V.enqueue({type:"reasoning-end",id:"reasoning-0"}),N=!1;if(!H)V.enqueue({type:"text-start",id:"txt-0"}),H=!0;V.enqueue({type:"text-delta",id:"txt-0",delta:k.content})}if(k.tool_calls!=null){if(N)V.enqueue({type:"reasoning-end",id:"reasoning-0"}),N=!1;for(let x of k.tool_calls){let m=(I=x.index)!=null?I:W.length;if(W[m]==null){if(x.id==null)throw new s({data:x,message:"Expected 'id' to be a string."});if(((D=x.function)==null?void 0:D.name)==null)throw new s({data:x,message:"Expected 'function.name' to be a string."});V.enqueue({type:"tool-input-start",id:x.id,toolName:x.function.name}),W[m]={id:x.id,type:"function",function:{name:x.function.name,arguments:(P=x.function.arguments)!=null?P:""},hasFinished:!1,thoughtSignature:(u=(y=(w=x.extra_content)==null?void 0:w.google)==null?void 0:y.thought_signature)!=null?u:void 0};let M=W[m];if(((g=M.function)==null?void 0:g.name)!=null&&((a=M.function)==null?void 0:a.arguments)!=null){if(M.function.arguments.length>0)V.enqueue({type:"tool-input-delta",id:M.id,delta:M.function.arguments});if(l(M.function.arguments))V.enqueue({type:"tool-input-end",id:M.id}),V.enqueue({type:"tool-call",toolCallId:(r=M.id)!=null?r:h(),toolName:M.function.name,input:M.function.arguments,...M.thoughtSignature?{providerMetadata:{[L]:{thoughtSignature:M.thoughtSignature}}}:{}}),M.hasFinished=!0}continue}let F=W[m];if(F.hasFinished)continue;if(((t=x.function)==null?void 0:t.arguments)!=null)F.function.arguments+=(o=(e=x.function)==null?void 0:e.arguments)!=null?o:"";if(V.enqueue({type:"tool-input-delta",id:F.id,delta:(GG=x.function.arguments)!=null?GG:""}),((QG=F.function)==null?void 0:QG.name)!=null&&((XG=F.function)==null?void 0:XG.arguments)!=null&&l(F.function.arguments))V.enqueue({type:"tool-input-end",id:F.id}),V.enqueue({type:"tool-call",toolCallId:(YG=F.id)!=null?YG:h(),toolName:F.function.name,input:F.function.arguments,...F.thoughtSignature?{providerMetadata:{[L]:{thoughtSignature:F.thoughtSignature}}}:{}}),F.hasFinished=!0}}},flush(E){var V,q,A,I,D;if(N)E.enqueue({type:"reasoning-end",id:"reasoning-0"});if(H)E.enqueue({type:"text-end",id:"txt-0"});for(let w of W.filter((y)=>!y.hasFinished))E.enqueue({type:"tool-input-end",id:w.id}),E.enqueue({type:"tool-call",toolCallId:(V=w.id)!=null?V:h(),toolName:w.function.name,input:w.function.arguments,...w.thoughtSignature?{providerMetadata:{[L]:{thoughtSignature:w.thoughtSignature}}}:{}});let P={[L]:{},...z==null?void 0:z.buildMetadata()};if(((q=J==null?void 0:J.completion_tokens_details)==null?void 0:q.accepted_prediction_tokens)!=null)P[L].acceptedPredictionTokens=(A=J==null?void 0:J.completion_tokens_details)==null?void 0:A.accepted_prediction_tokens;if(((I=J==null?void 0:J.completion_tokens_details)==null?void 0:I.rejected_prediction_tokens)!=null)P[L].rejectedPredictionTokens=(D=J==null?void 0:J.completion_tokens_details)==null?void 0:D.rejected_prediction_tokens;E.enqueue({type:"finish",finishReason:X,usage:$G(J),providerMetadata:P})}})),request:{body:U},response:{headers:j}}}},WG=G.looseObject({prompt_tokens:G.number().nullish(),completion_tokens:G.number().nullish(),total_tokens:G.number().nullish(),prompt_tokens_details:G.object({cached_tokens:G.number().nullish()}).nullish(),completion_tokens_details:G.object({reasoning_tokens:G.number().nullish(),accepted_prediction_tokens:G.number().nullish(),rejected_prediction_tokens:G.number().nullish()}).nullish()}).nullish(),qG=G.looseObject({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({message:G.object({role:G.literal("assistant").nullish(),content:G.string().nullish(),reasoning_content:G.string().nullish(),reasoning:G.string().nullish(),tool_calls:G.array(G.object({id:G.string().nullish(),function:G.object({name:G.string(),arguments:G.string()}),extra_content:G.object({google:G.object({thought_signature:G.string().nullish()}).nullish()}).nullish()})).nullish()}),finish_reason:G.string().nullish()})),usage:WG}),wG=G.looseObject({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({delta:G.object({role:G.enum(["assistant"]).nullish(),content:G.string().nullish(),reasoning_content:G.string().nullish(),reasoning:G.string().nullish(),tool_calls:G.array(G.object({index:G.number().nullish(),id:G.string().nullish(),function:G.object({name:G.string().nullish(),arguments:G.string().nullish()}),extra_content:G.object({google:G.object({thought_signature:G.string().nullish()}).nullish()}).nullish()})).nullish()}).nullish(),finish_reason:G.string().nullish()})),usage:WG}),DG=(Q)=>G.union([wG,Q]);function jG(Q){var Y,Z;if(Q==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let $=(Y=Q.prompt_tokens)!=null?Y:0,U=(Z=Q.completion_tokens)!=null?Z:0;return{inputTokens:{total:$,noCache:$,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:U,text:U,reasoning:void 0},raw:Q}}function xG({prompt:Q,user:Y="user",assistant:Z="assistant"}){let $="";if(Q[0].role==="system")$+=`${Q[0].content}
2
+ import{Fe as T,He as VG,Je as c,Ne as h,Ye as l,Ze as R,_e as b,cf as f,df as i,ef as v}from"./chunk-kgsq240v.js";import{Ap as s,Fp as BG,Hp as S,zp as KG}from"./chunk-7v4fzkbb.js";import{ut as G}from"./chunk-ym4ydwrz.js";var EG=G.object({error:G.object({message:G.string(),type:G.string().nullish(),param:G.any().nullish(),code:G.union([G.string(),G.number()]).nullish()})}),n={errorSchema:EG,errorToMessage:(Q)=>Q.error.message};function $G(Q){var Y,Z,$,U,z,j;if(Q==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let K=(Y=Q.prompt_tokens)!=null?Y:0,W=(Z=Q.completion_tokens)!=null?Z:0,X=(U=($=Q.prompt_tokens_details)==null?void 0:$.cached_tokens)!=null?U:0,J=(j=(z=Q.completion_tokens_details)==null?void 0:z.reasoning_tokens)!=null?j:0;return{inputTokens:{total:K,noCache:K-X,cacheRead:X,cacheWrite:void 0},outputTokens:{total:W,text:W-J,reasoning:J},raw:Q}}function C(Q){var Y,Z;return(Z=(Y=Q==null?void 0:Q.providerOptions)==null?void 0:Y.openaiCompatible)!=null?Z:{}}function HG(Q){switch(Q){case"audio/wav":return"wav";case"audio/mp3":case"audio/mpeg":return"mp3";default:return null}}function AG(Q){var Y,Z,$;let U=[];for(let{role:z,content:j,...K}of Q){let W=C({...K});switch(z){case"system":{U.push({role:"system",content:j,...W});break}case"user":{if(j.length===1&&j[0].type==="text"){U.push({role:"user",content:j[0].text,...C(j[0])});break}U.push({role:"user",content:j.map((X)=>{var J;let B=C(X);switch(X.type){case"text":return{type:"text",text:X.text,...B};case"file":{if(X.mediaType.startsWith("image/")){let L=X.mediaType==="image/*"?"image/jpeg":X.mediaType;return{type:"image_url",image_url:{url:X.data instanceof URL?X.data.toString():`data:${L};base64,${c(X.data)}`},...B}}if(X.mediaType.startsWith("audio/")){if(X.data instanceof URL)throw new S({functionality:"audio file parts with URLs"});let L=HG(X.mediaType);if(L===null)throw new S({functionality:`audio media type ${X.mediaType}`});return{type:"input_audio",input_audio:{data:c(X.data),format:L},...B}}if(X.mediaType==="application/pdf"){if(X.data instanceof URL)throw new S({functionality:"PDF file parts with URLs"});return{type:"file",file:{filename:(J=X.filename)!=null?J:"document.pdf",file_data:`data:application/pdf;base64,${c(X.data)}`},...B}}if(X.mediaType.startsWith("text/"))return{type:"text",text:X.data instanceof URL?X.data.toString():typeof X.data==="string"?new TextDecoder().decode(VG(X.data)):new TextDecoder().decode(X.data),...B};throw new S({functionality:`file part media type ${X.mediaType}`})}}}),...W});break}case"assistant":{let X="",J="",B=[];for(let L of j){let N=C(L);switch(L.type){case"text":{X+=L.text;break}case"reasoning":{J+=L.text;break}case"tool-call":{let H=(Z=(Y=L.providerOptions)==null?void 0:Y.google)==null?void 0:Z.thoughtSignature;B.push({id:L.toolCallId,type:"function",function:{name:L.toolName,arguments:JSON.stringify(L.input)},...N,...H?{extra_content:{google:{thought_signature:String(H)}}}:{}});break}}}U.push({role:"assistant",content:X,...J.length>0?{reasoning_content:J}:{},tool_calls:B.length>0?B:void 0,...W});break}case"tool":{for(let X of j){if(X.type==="tool-approval-response")continue;let J=X.output,B;switch(J.type){case"text":case"error-text":B=J.value;break;case"execution-denied":B=($=J.reason)!=null?$:"Tool execution denied.";break;case"content":case"json":case"error-json":B=JSON.stringify(J.value);break}let L=C(X);U.push({role:"tool",tool_call_id:X.toolCallId,content:B,...L})}break}default:throw Error(`Unsupported role: ${z}`)}}return U}function JG({id:Q,model:Y,created:Z}){return{id:Q!=null?Q:void 0,modelId:Y!=null?Y:void 0,timestamp:Z!=null?new Date(Z*1000):void 0}}function UG(Q){switch(Q){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}var d=G.object({user:G.string().optional(),reasoningEffort:G.string().optional(),textVerbosity:G.string().optional(),strictJsonSchema:G.boolean().optional()});function PG({tools:Q,toolChoice:Y}){Q=(Q==null?void 0:Q.length)?Q:void 0;let Z=[];if(Q==null)return{tools:void 0,toolChoice:void 0,toolWarnings:Z};let $=[];for(let z of Q)if(z.type==="provider")Z.push({type:"unsupported",feature:`provider-defined tool ${z.id}`});else $.push({type:"function",function:{name:z.name,description:z.description,parameters:z.inputSchema,...z.strict!=null?{strict:z.strict}:{}}});if(Y==null)return{tools:$,toolChoice:void 0,toolWarnings:Z};let U=Y.type;switch(U){case"auto":case"none":case"required":return{tools:$,toolChoice:U,toolWarnings:Z};case"tool":return{tools:$,toolChoice:{type:"function",function:{name:Y.toolName}},toolWarnings:Z};default:throw new S({functionality:`tool choice type: ${U}`})}}var CG=class{constructor(Q,Y){this.specificationVersion="v3";var Z,$;this.modelId=Q,this.config=Y;let U=(Z=Y.errorStructure)!=null?Z:n;this.chunkSchema=DG(U.errorSchema),this.failedResponseHandler=f(U),this.supportsStructuredOutputs=($=Y.supportsStructuredOutputs)!=null?$:!1}get provider(){return this.config.provider}get providerOptionsName(){return this.config.provider.split(".")[0].trim()}get supportedUrls(){var Q,Y,Z;return(Z=(Y=(Q=this.config).supportedUrls)==null?void 0:Y.call(Q))!=null?Z:{}}transformRequestBody(Q){var Y,Z,$;return($=(Z=(Y=this.config).transformRequestBody)==null?void 0:Z.call(Y,Q))!=null?$:Q}async getArgs({prompt:Q,maxOutputTokens:Y,temperature:Z,topP:$,topK:U,frequencyPenalty:z,presencePenalty:j,providerOptions:K,stopSequences:W,responseFormat:X,seed:J,toolChoice:B,tools:L}){var N,H,E,V,q;let A=[],I=await R({provider:"openai-compatible",providerOptions:K,schema:d});if(I!=null)A.push({type:"other",message:"The 'openai-compatible' key in providerOptions is deprecated. Use 'openaiCompatible' instead."});let D=Object.assign(I!=null?I:{},(N=await R({provider:"openaiCompatible",providerOptions:K,schema:d}))!=null?N:{},(H=await R({provider:this.providerOptionsName,providerOptions:K,schema:d}))!=null?H:{}),P=(E=D==null?void 0:D.strictJsonSchema)!=null?E:!0;if(U!=null)A.push({type:"unsupported",feature:"topK"});if((X==null?void 0:X.type)==="json"&&X.schema!=null&&!this.supportsStructuredOutputs)A.push({type:"unsupported",feature:"responseFormat",details:"JSON response format schema is only supported with structuredOutputs"});let{tools:w,toolChoice:y,toolWarnings:u}=PG({tools:L,toolChoice:B});return{args:{model:this.modelId,user:D.user,max_tokens:Y,temperature:Z,top_p:$,frequency_penalty:z,presence_penalty:j,response_format:(X==null?void 0:X.type)==="json"?this.supportsStructuredOutputs===!0&&X.schema!=null?{type:"json_schema",json_schema:{schema:X.schema,strict:P,name:(V=X.name)!=null?V:"response",description:X.description}}:{type:"json_object"}:void 0,stop:W,seed:J,...Object.fromEntries(Object.entries((q=K==null?void 0:K[this.providerOptionsName])!=null?q:{}).filter(([g])=>!Object.keys(d.shape).includes(g))),reasoning_effort:D.reasoningEffort,verbosity:D.textVerbosity,messages:AG(Q),tools:w,tool_choice:y},warnings:[...A,...u]}}async doGenerate(Q){var Y,Z,$,U,z,j,K,W;let{args:X,warnings:J}=await this.getArgs({...Q}),B=this.transformRequestBody(X),L=JSON.stringify(B),{responseHeaders:N,value:H,rawValue:E}=await b({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:T(this.config.headers(),Q.headers),body:B,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:v(qG),abortSignal:Q.abortSignal,fetch:this.config.fetch}),V=H.choices[0],q=[],A=V.message.content;if(A!=null&&A.length>0)q.push({type:"text",text:A});let I=(Y=V.message.reasoning_content)!=null?Y:V.message.reasoning;if(I!=null&&I.length>0)q.push({type:"reasoning",text:I});if(V.message.tool_calls!=null)for(let w of V.message.tool_calls){let y=($=(Z=w.extra_content)==null?void 0:Z.google)==null?void 0:$.thought_signature;q.push({type:"tool-call",toolCallId:(U=w.id)!=null?U:h(),toolName:w.function.name,input:w.function.arguments,...y?{providerMetadata:{[this.providerOptionsName]:{thoughtSignature:y}}}:{}})}let D={[this.providerOptionsName]:{},...await((j=(z=this.config.metadataExtractor)==null?void 0:z.extractMetadata)==null?void 0:j.call(z,{parsedBody:E}))},P=(K=H.usage)==null?void 0:K.completion_tokens_details;if((P==null?void 0:P.accepted_prediction_tokens)!=null)D[this.providerOptionsName].acceptedPredictionTokens=P==null?void 0:P.accepted_prediction_tokens;if((P==null?void 0:P.rejected_prediction_tokens)!=null)D[this.providerOptionsName].rejectedPredictionTokens=P==null?void 0:P.rejected_prediction_tokens;return{content:q,finishReason:{unified:UG(V.finish_reason),raw:(W=V.finish_reason)!=null?W:void 0},usage:$G(H.usage),providerMetadata:D,request:{body:L},response:{...JG(H),headers:N,body:E},warnings:J}}async doStream(Q){var Y;let{args:Z,warnings:$}=await this.getArgs({...Q}),U=this.transformRequestBody({...Z,stream:!0,stream_options:this.config.includeUsage?{include_usage:!0}:void 0}),z=(Y=this.config.metadataExtractor)==null?void 0:Y.createStreamExtractor(),{responseHeaders:j,value:K}=await b({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:T(this.config.headers(),Q.headers),body:U,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:i(this.chunkSchema),abortSignal:Q.abortSignal,fetch:this.config.fetch}),W=[],X={unified:"other",raw:void 0},J=void 0,B=!0,L=this.providerOptionsName,N=!1,H=!1;return{stream:K.pipeThrough(new TransformStream({start(E){E.enqueue({type:"stream-start",warnings:$})},transform(E,V){var q,A,I,D,P,w,y,u,g,a,r,t,e,o,GG,QG,XG,YG;if(Q.includeRawChunks)V.enqueue({type:"raw",rawValue:E.rawValue});if(!E.success){X={unified:"error",raw:void 0},V.enqueue({type:"error",error:E.error});return}if(z==null||z.processChunk(E.rawValue),"error"in E.value){X={unified:"error",raw:void 0},V.enqueue({type:"error",error:E.value.error.message});return}let _=E.value;if(B)B=!1,V.enqueue({type:"response-metadata",...JG(_)});if(_.usage!=null)J=_.usage;let O=_.choices[0];if((O==null?void 0:O.finish_reason)!=null)X={unified:UG(O.finish_reason),raw:(q=O.finish_reason)!=null?q:void 0};if((O==null?void 0:O.delta)==null)return;let k=O.delta,ZG=(A=k.reasoning_content)!=null?A:k.reasoning;if(ZG){if(!N)V.enqueue({type:"reasoning-start",id:"reasoning-0"}),N=!0;V.enqueue({type:"reasoning-delta",id:"reasoning-0",delta:ZG})}if(k.content){if(N)V.enqueue({type:"reasoning-end",id:"reasoning-0"}),N=!1;if(!H)V.enqueue({type:"text-start",id:"txt-0"}),H=!0;V.enqueue({type:"text-delta",id:"txt-0",delta:k.content})}if(k.tool_calls!=null){if(N)V.enqueue({type:"reasoning-end",id:"reasoning-0"}),N=!1;for(let x of k.tool_calls){let m=(I=x.index)!=null?I:W.length;if(W[m]==null){if(x.id==null)throw new s({data:x,message:"Expected 'id' to be a string."});if(((D=x.function)==null?void 0:D.name)==null)throw new s({data:x,message:"Expected 'function.name' to be a string."});V.enqueue({type:"tool-input-start",id:x.id,toolName:x.function.name}),W[m]={id:x.id,type:"function",function:{name:x.function.name,arguments:(P=x.function.arguments)!=null?P:""},hasFinished:!1,thoughtSignature:(u=(y=(w=x.extra_content)==null?void 0:w.google)==null?void 0:y.thought_signature)!=null?u:void 0};let M=W[m];if(((g=M.function)==null?void 0:g.name)!=null&&((a=M.function)==null?void 0:a.arguments)!=null){if(M.function.arguments.length>0)V.enqueue({type:"tool-input-delta",id:M.id,delta:M.function.arguments});if(l(M.function.arguments))V.enqueue({type:"tool-input-end",id:M.id}),V.enqueue({type:"tool-call",toolCallId:(r=M.id)!=null?r:h(),toolName:M.function.name,input:M.function.arguments,...M.thoughtSignature?{providerMetadata:{[L]:{thoughtSignature:M.thoughtSignature}}}:{}}),M.hasFinished=!0}continue}let F=W[m];if(F.hasFinished)continue;if(((t=x.function)==null?void 0:t.arguments)!=null)F.function.arguments+=(o=(e=x.function)==null?void 0:e.arguments)!=null?o:"";if(V.enqueue({type:"tool-input-delta",id:F.id,delta:(GG=x.function.arguments)!=null?GG:""}),((QG=F.function)==null?void 0:QG.name)!=null&&((XG=F.function)==null?void 0:XG.arguments)!=null&&l(F.function.arguments))V.enqueue({type:"tool-input-end",id:F.id}),V.enqueue({type:"tool-call",toolCallId:(YG=F.id)!=null?YG:h(),toolName:F.function.name,input:F.function.arguments,...F.thoughtSignature?{providerMetadata:{[L]:{thoughtSignature:F.thoughtSignature}}}:{}}),F.hasFinished=!0}}},flush(E){var V,q,A,I,D;if(N)E.enqueue({type:"reasoning-end",id:"reasoning-0"});if(H)E.enqueue({type:"text-end",id:"txt-0"});for(let w of W.filter((y)=>!y.hasFinished))E.enqueue({type:"tool-input-end",id:w.id}),E.enqueue({type:"tool-call",toolCallId:(V=w.id)!=null?V:h(),toolName:w.function.name,input:w.function.arguments,...w.thoughtSignature?{providerMetadata:{[L]:{thoughtSignature:w.thoughtSignature}}}:{}});let P={[L]:{},...z==null?void 0:z.buildMetadata()};if(((q=J==null?void 0:J.completion_tokens_details)==null?void 0:q.accepted_prediction_tokens)!=null)P[L].acceptedPredictionTokens=(A=J==null?void 0:J.completion_tokens_details)==null?void 0:A.accepted_prediction_tokens;if(((I=J==null?void 0:J.completion_tokens_details)==null?void 0:I.rejected_prediction_tokens)!=null)P[L].rejectedPredictionTokens=(D=J==null?void 0:J.completion_tokens_details)==null?void 0:D.rejected_prediction_tokens;E.enqueue({type:"finish",finishReason:X,usage:$G(J),providerMetadata:P})}})),request:{body:U},response:{headers:j}}}},WG=G.looseObject({prompt_tokens:G.number().nullish(),completion_tokens:G.number().nullish(),total_tokens:G.number().nullish(),prompt_tokens_details:G.object({cached_tokens:G.number().nullish()}).nullish(),completion_tokens_details:G.object({reasoning_tokens:G.number().nullish(),accepted_prediction_tokens:G.number().nullish(),rejected_prediction_tokens:G.number().nullish()}).nullish()}).nullish(),qG=G.looseObject({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({message:G.object({role:G.literal("assistant").nullish(),content:G.string().nullish(),reasoning_content:G.string().nullish(),reasoning:G.string().nullish(),tool_calls:G.array(G.object({id:G.string().nullish(),function:G.object({name:G.string(),arguments:G.string()}),extra_content:G.object({google:G.object({thought_signature:G.string().nullish()}).nullish()}).nullish()})).nullish()}),finish_reason:G.string().nullish()})),usage:WG}),wG=G.looseObject({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({delta:G.object({role:G.enum(["assistant"]).nullish(),content:G.string().nullish(),reasoning_content:G.string().nullish(),reasoning:G.string().nullish(),tool_calls:G.array(G.object({index:G.number().nullish(),id:G.string().nullish(),function:G.object({name:G.string().nullish(),arguments:G.string().nullish()}),extra_content:G.object({google:G.object({thought_signature:G.string().nullish()}).nullish()}).nullish()})).nullish()}).nullish(),finish_reason:G.string().nullish()})),usage:WG}),DG=(Q)=>G.union([wG,Q]);function jG(Q){var Y,Z;if(Q==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let $=(Y=Q.prompt_tokens)!=null?Y:0,U=(Z=Q.completion_tokens)!=null?Z:0;return{inputTokens:{total:$,noCache:$,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:U,text:U,reasoning:void 0},raw:Q}}function xG({prompt:Q,user:Y="user",assistant:Z="assistant"}){let $="";if(Q[0].role==="system")$+=`${Q[0].content}
3
3
 
4
4
  `,Q=Q.slice(1);for(let{role:U,content:z}of Q)switch(U){case"system":throw new KG({message:"Unexpected system message in prompt: ${content}",prompt:Q});case"user":{let j=z.map((K)=>{switch(K.type){case"text":return K.text}}).filter(Boolean).join("");$+=`${Y}:
5
5
  ${j}
@@ -10,4 +10,4 @@ ${j}
10
10
  `;break}case"tool":throw new S({functionality:"tool messages"});default:throw Error(`Unsupported role: ${U}`)}return $+=`${Z}:
11
11
  `,{prompt:$,stopSequences:[`
12
12
  ${Y}:`]}}function LG({id:Q,model:Y,created:Z}){return{id:Q!=null?Q:void 0,modelId:Y!=null?Y:void 0,timestamp:Z!=null?new Date(Z*1000):void 0}}function zG(Q){switch(Q){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}var IG=G.object({echo:G.boolean().optional(),logitBias:G.record(G.string(),G.number()).optional(),suffix:G.string().optional(),user:G.string().optional()}),mG=class{constructor(Q,Y){this.specificationVersion="v3";var Z;this.modelId=Q,this.config=Y;let $=(Z=Y.errorStructure)!=null?Z:n;this.chunkSchema=MG($.errorSchema),this.failedResponseHandler=f($)}get provider(){return this.config.provider}get providerOptionsName(){return this.config.provider.split(".")[0].trim()}get supportedUrls(){var Q,Y,Z;return(Z=(Y=(Q=this.config).supportedUrls)==null?void 0:Y.call(Q))!=null?Z:{}}async getArgs({prompt:Q,maxOutputTokens:Y,temperature:Z,topP:$,topK:U,frequencyPenalty:z,presencePenalty:j,stopSequences:K,responseFormat:W,seed:X,providerOptions:J,tools:B,toolChoice:L}){var N;let H=[],E=(N=await R({provider:this.providerOptionsName,providerOptions:J,schema:IG}))!=null?N:{};if(U!=null)H.push({type:"unsupported",feature:"topK"});if(B==null?void 0:B.length)H.push({type:"unsupported",feature:"tools"});if(L!=null)H.push({type:"unsupported",feature:"toolChoice"});if(W!=null&&W.type!=="text")H.push({type:"unsupported",feature:"responseFormat",details:"JSON response format is not supported."});let{prompt:V,stopSequences:q}=xG({prompt:Q}),A=[...q!=null?q:[],...K!=null?K:[]];return{args:{model:this.modelId,echo:E.echo,logit_bias:E.logitBias,suffix:E.suffix,user:E.user,max_tokens:Y,temperature:Z,top_p:$,frequency_penalty:z,presence_penalty:j,seed:X,...J==null?void 0:J[this.providerOptionsName],prompt:V,stop:A.length>0?A:void 0},warnings:H}}async doGenerate(Q){let{args:Y,warnings:Z}=await this.getArgs(Q),{responseHeaders:$,value:U,rawValue:z}=await b({url:this.config.url({path:"/completions",modelId:this.modelId}),headers:T(this.config.headers(),Q.headers),body:Y,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:v(FG),abortSignal:Q.abortSignal,fetch:this.config.fetch}),j=U.choices[0],K=[];if(j.text!=null&&j.text.length>0)K.push({type:"text",text:j.text});return{content:K,usage:jG(U.usage),finishReason:{unified:zG(j.finish_reason),raw:j.finish_reason},request:{body:Y},response:{...LG(U),headers:$,body:z},warnings:Z}}async doStream(Q){let{args:Y,warnings:Z}=await this.getArgs(Q),$={...Y,stream:!0,stream_options:this.config.includeUsage?{include_usage:!0}:void 0},{responseHeaders:U,value:z}=await b({url:this.config.url({path:"/completions",modelId:this.modelId}),headers:T(this.config.headers(),Q.headers),body:$,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:i(this.chunkSchema),abortSignal:Q.abortSignal,fetch:this.config.fetch}),j={unified:"other",raw:void 0},K=void 0,W=!0;return{stream:z.pipeThrough(new TransformStream({start(X){X.enqueue({type:"stream-start",warnings:Z})},transform(X,J){var B;if(Q.includeRawChunks)J.enqueue({type:"raw",rawValue:X.rawValue});if(!X.success){j={unified:"error",raw:void 0},J.enqueue({type:"error",error:X.error});return}let L=X.value;if("error"in L){j={unified:"error",raw:void 0},J.enqueue({type:"error",error:L.error});return}if(W)W=!1,J.enqueue({type:"response-metadata",...LG(L)}),J.enqueue({type:"text-start",id:"0"});if(L.usage!=null)K=L.usage;let N=L.choices[0];if((N==null?void 0:N.finish_reason)!=null)j={unified:zG(N.finish_reason),raw:(B=N.finish_reason)!=null?B:void 0};if((N==null?void 0:N.text)!=null)J.enqueue({type:"text-delta",id:"0",delta:N.text})},flush(X){if(!W)X.enqueue({type:"text-end",id:"0"});X.enqueue({type:"finish",finishReason:j,usage:jG(K)})}})),request:{body:$},response:{headers:U}}}},NG=G.object({prompt_tokens:G.number(),completion_tokens:G.number(),total_tokens:G.number()}),FG=G.object({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({text:G.string(),finish_reason:G.string()})),usage:NG.nullish()}),MG=(Q)=>G.union([G.object({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({text:G.string(),finish_reason:G.string().nullish(),index:G.number()})),usage:NG.nullish()}),Q]),p=G.object({dimensions:G.number().optional(),user:G.string().optional()}),sG=class{constructor(Q,Y){this.specificationVersion="v3",this.modelId=Q,this.config=Y}get provider(){return this.config.provider}get maxEmbeddingsPerCall(){var Q;return(Q=this.config.maxEmbeddingsPerCall)!=null?Q:2048}get supportsParallelCalls(){var Q;return(Q=this.config.supportsParallelCalls)!=null?Q:!0}get providerOptionsName(){return this.config.provider.split(".")[0].trim()}async doEmbed({values:Q,headers:Y,abortSignal:Z,providerOptions:$}){var U,z,j;let K=[],W=await R({provider:"openai-compatible",providerOptions:$,schema:p});if(W!=null)K.push({type:"other",message:"The 'openai-compatible' key in providerOptions is deprecated. Use 'openaiCompatible' instead."});let X=Object.assign(W!=null?W:{},(U=await R({provider:"openaiCompatible",providerOptions:$,schema:p}))!=null?U:{},(z=await R({provider:this.providerOptionsName,providerOptions:$,schema:p}))!=null?z:{});if(Q.length>this.maxEmbeddingsPerCall)throw new BG({provider:this.provider,modelId:this.modelId,maxEmbeddingsPerCall:this.maxEmbeddingsPerCall,values:Q});let{responseHeaders:J,value:B,rawValue:L}=await b({url:this.config.url({path:"/embeddings",modelId:this.modelId}),headers:T(this.config.headers(),Y),body:{model:this.modelId,input:Q,encoding_format:"float",dimensions:X.dimensions,user:X.user},failedResponseHandler:f((j=this.config.errorStructure)!=null?j:n),successfulResponseHandler:v(SG),abortSignal:Z,fetch:this.config.fetch});return{warnings:K,embeddings:B.data.map((N)=>N.embedding),usage:B.usage?{tokens:B.usage.prompt_tokens}:void 0,providerMetadata:B.providerMetadata,response:{headers:J,body:L}}}},SG=G.object({data:G.array(G.object({embedding:G.array(G.number())})),usage:G.object({prompt_tokens:G.number()}).nullish(),providerMetadata:G.record(G.string(),G.record(G.string(),G.any())).optional()});var nG=G.object({data:G.array(G.object({b64_json:G.string()}))});
13
- export{CG as Ae,mG as Be,sG as Ce};
13
+ export{CG as Ce,mG as De,sG as Ee};