@bkm016/basalt 0.1.18 → 0.1.19

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 (912) hide show
  1. package/README.md +1 -1
  2. package/chunk-0b2brwjc.js +3 -0
  3. package/chunk-13pbt8mn.js +2 -0
  4. package/chunk-14085qqt.js +8 -0
  5. package/chunk-2dph65ye.js +3 -0
  6. package/chunk-2v8anxgd.js +9 -0
  7. package/chunk-37f4ks5f.js +3 -0
  8. package/chunk-3q1hxwxb.js +5 -0
  9. package/chunk-3qs33s9g.js +2 -0
  10. package/chunk-53m94h0b.js +7 -0
  11. package/chunk-5jy2cnyr.js +18 -0
  12. package/chunk-5wfyn3k0.js +3 -0
  13. package/chunk-69v706tc.js +5 -0
  14. package/chunk-79h4rzza.js +2 -0
  15. package/chunk-7xfde6se.js +3 -0
  16. package/chunk-8bf4g2d7.js +3 -0
  17. package/chunk-adq8c7vt.js +25 -0
  18. package/chunk-ahpg469e.js +3 -0
  19. package/chunk-ary9gky8.js +7 -0
  20. package/chunk-becsymjn.js +2 -0
  21. package/chunk-beqps81c.js +4 -0
  22. package/chunk-bnvynyww.js +3 -0
  23. package/chunk-c785tr0e.js +4078 -0
  24. package/chunk-cc19pbgm.js +12 -0
  25. package/chunk-d6g5m56z.js +2 -0
  26. package/chunk-etkktxdc.js +2 -0
  27. package/chunk-etxsj2ey.js +10 -0
  28. package/chunk-f2ajxymw.js +2 -0
  29. package/chunk-f2bcfa6z.js +7 -0
  30. package/chunk-f47qdrkp.js +2 -0
  31. package/chunk-f5yg6yd0.js +3 -0
  32. package/chunk-fjk9ztjc.js +11 -0
  33. package/chunk-g99n5ywc.js +3 -0
  34. package/chunk-grwavjp7.js +2 -0
  35. package/chunk-gsek3gpd.js +3 -0
  36. package/chunk-gv9hbv9j.js +2 -0
  37. package/chunk-h045t6f1.js +2 -0
  38. package/chunk-h4g1tzk6.js +11 -0
  39. package/chunk-had2k7b9.js +20 -0
  40. package/chunk-hbm45044.js +25 -0
  41. package/chunk-hd2hars5.js +3 -0
  42. package/chunk-hfh230tm.js +2 -0
  43. package/chunk-hkx7d1j9.js +7 -0
  44. package/chunk-jbk2tmza.js +5 -0
  45. package/chunk-jv9sy0np.js +2 -0
  46. package/chunk-kdc8tq70.js +2 -0
  47. package/chunk-m1nevdw6.js +3 -0
  48. package/chunk-m6yrpt1f.js +5 -0
  49. package/chunk-mrchbvsy.js +4 -0
  50. package/chunk-n9x6akk3.js +2 -0
  51. package/chunk-ne94brn4.js +3 -0
  52. package/chunk-nv1jg79d.js +2 -0
  53. package/chunk-pvdt969t.js +59 -0
  54. package/chunk-q22dnah8.js +3 -0
  55. package/chunk-q2zayphb.js +10 -0
  56. package/chunk-q4h6djtp.js +2 -0
  57. package/chunk-qa8mne61.js +2 -0
  58. package/chunk-r9z9m75h.js +16 -0
  59. package/chunk-rmyzxqkd.js +467 -0
  60. package/chunk-rq647zmf.js +2 -0
  61. package/chunk-sj4jvm9p.js +2 -0
  62. package/chunk-sq0ra5m8.js +4 -0
  63. package/chunk-sxg03n4v.js +2 -0
  64. package/chunk-t0m1wjrn.js +3 -0
  65. package/chunk-td52edcm.js +31 -0
  66. package/chunk-tdnwaaw4.js +12 -0
  67. package/chunk-teky87xx.js +3 -0
  68. package/chunk-v1avwm7q.js +3 -0
  69. package/chunk-wcmk8ee3.js +3 -0
  70. package/chunk-wf9r0frb.js +3 -0
  71. package/chunk-wx697mre.js +2 -0
  72. package/chunk-wzz64ygm.js +2 -0
  73. package/chunk-xb9mwt5a.js +2 -0
  74. package/chunk-xbkbaa84.js +2 -0
  75. package/chunk-xjy31n64.js +3 -0
  76. package/chunk-xzn34n38.js +389 -0
  77. package/chunk-yprp5s5v.js +3 -0
  78. package/chunk-yyhdabhq.js +15 -0
  79. package/chunk-z2jp61ze.js +39 -0
  80. package/chunk-zt5szcek.js +3 -0
  81. package/chunk-zxb6cg3m.js +2 -0
  82. package/compiled.js +9 -9
  83. package/package.json +1 -1
  84. package/ui-test-worker.js +21 -21
  85. package/web/chunk-0ays2hhj.js +41 -0
  86. package/web/chunk-0ays2hhj.js.br +0 -0
  87. package/web/chunk-0ays2hhj.js.gz +0 -0
  88. package/web/chunk-0na4c1bp.js +139 -0
  89. package/web/chunk-0na4c1bp.js.br +0 -0
  90. package/web/chunk-0na4c1bp.js.gz +0 -0
  91. package/web/chunk-0y0p0ct0.js +1 -0
  92. package/web/chunk-0y0p0ct0.js.br +0 -0
  93. package/web/chunk-0y0p0ct0.js.gz +0 -0
  94. package/web/chunk-191v8amv.js +1 -0
  95. package/web/chunk-191v8amv.js.br +0 -0
  96. package/web/chunk-191v8amv.js.gz +0 -0
  97. package/web/chunk-1c6rhsft.js +200 -0
  98. package/web/chunk-1c6rhsft.js.br +0 -0
  99. package/web/chunk-1c6rhsft.js.gz +0 -0
  100. package/web/chunk-1mwkrh5f.js +370 -0
  101. package/web/chunk-1mwkrh5f.js.br +0 -0
  102. package/web/chunk-1mwkrh5f.js.gz +0 -0
  103. package/web/chunk-1q4r17he.js +2 -0
  104. package/web/chunk-1q4r17he.js.br +0 -0
  105. package/web/chunk-1q4r17he.js.gz +0 -0
  106. package/web/chunk-1sm3c8an.js +8 -0
  107. package/web/chunk-1sm3c8an.js.br +0 -0
  108. package/web/chunk-1sm3c8an.js.gz +0 -0
  109. package/web/chunk-1vmjpvy5.js +1 -0
  110. package/web/chunk-1vmjpvy5.js.br +0 -0
  111. package/web/chunk-1vmjpvy5.js.gz +0 -0
  112. package/web/chunk-1x4z5w5e.js +1 -0
  113. package/web/chunk-1x4z5w5e.js.br +2 -0
  114. package/web/chunk-1x4z5w5e.js.gz +0 -0
  115. package/web/chunk-22ncha3b.js +142 -0
  116. package/web/chunk-22ncha3b.js.br +0 -0
  117. package/web/chunk-22ncha3b.js.gz +0 -0
  118. package/web/chunk-239rqgmj.js +24 -0
  119. package/web/chunk-239rqgmj.js.br +0 -0
  120. package/web/chunk-239rqgmj.js.gz +0 -0
  121. package/web/chunk-2c6zessc.js +2 -0
  122. package/web/chunk-2c6zessc.js.br +0 -0
  123. package/web/chunk-2c6zessc.js.gz +0 -0
  124. package/web/chunk-2m7b1wmp.js +1 -0
  125. package/web/chunk-2m7b1wmp.js.br +0 -0
  126. package/web/chunk-2m7b1wmp.js.gz +0 -0
  127. package/web/chunk-2qncw4c0.js +2 -0
  128. package/web/chunk-2qncw4c0.js.br +0 -0
  129. package/web/chunk-2qncw4c0.js.gz +0 -0
  130. package/web/chunk-2r497559.js +2 -0
  131. package/web/chunk-2r497559.js.br +0 -0
  132. package/web/chunk-2r497559.js.gz +0 -0
  133. package/web/chunk-2t43cra8.js +1 -0
  134. package/web/chunk-2t43cra8.js.br +0 -0
  135. package/web/chunk-2t43cra8.js.gz +0 -0
  136. package/web/chunk-2v379e1v.js +1 -0
  137. package/web/chunk-2v379e1v.js.br +2 -0
  138. package/web/chunk-2v379e1v.js.gz +0 -0
  139. package/web/chunk-2ywd0vz2.js +1 -0
  140. package/web/chunk-2ywd0vz2.js.br +0 -0
  141. package/web/chunk-2ywd0vz2.js.gz +0 -0
  142. package/web/chunk-3626tdgf.js +1 -0
  143. package/web/chunk-3626tdgf.js.br +0 -0
  144. package/web/chunk-3626tdgf.js.gz +0 -0
  145. package/web/chunk-3fq54zbf.js +2 -0
  146. package/web/chunk-3fq54zbf.js.br +0 -0
  147. package/web/chunk-3fq54zbf.js.gz +0 -0
  148. package/web/chunk-3jptvn0z.js +1 -0
  149. package/web/chunk-3jptvn0z.js.br +0 -0
  150. package/web/chunk-3jptvn0z.js.gz +0 -0
  151. package/web/chunk-3k31m9yk.js +7 -0
  152. package/web/chunk-3k31m9yk.js.br +0 -0
  153. package/web/chunk-3k31m9yk.js.gz +0 -0
  154. package/web/chunk-3wrebqcz.js +1 -0
  155. package/web/chunk-3wrebqcz.js.br +0 -0
  156. package/web/chunk-3wrebqcz.js.gz +0 -0
  157. package/web/chunk-42z866aa.js +1 -0
  158. package/web/chunk-42z866aa.js.br +0 -0
  159. package/web/chunk-42z866aa.js.gz +0 -0
  160. package/web/chunk-46r5s1ag.js +1 -0
  161. package/web/chunk-46r5s1ag.js.br +2 -0
  162. package/web/chunk-46r5s1ag.js.gz +0 -0
  163. package/web/chunk-4h8kxmac.js +1 -0
  164. package/web/chunk-4h8kxmac.js.br +2 -0
  165. package/web/chunk-4h8kxmac.js.gz +0 -0
  166. package/web/chunk-4hmp8qcv.js +1 -0
  167. package/web/chunk-4hmp8qcv.js.br +0 -0
  168. package/web/chunk-4hmp8qcv.js.gz +0 -0
  169. package/web/chunk-4ryyn6k5.js +1 -0
  170. package/web/chunk-4ryyn6k5.js.br +0 -0
  171. package/web/chunk-4ryyn6k5.js.gz +0 -0
  172. package/web/chunk-4zp7b44y.js +78 -0
  173. package/web/chunk-4zp7b44y.js.br +0 -0
  174. package/web/chunk-4zp7b44y.js.gz +0 -0
  175. package/web/chunk-52n1enqe.js +1 -0
  176. package/web/chunk-52n1enqe.js.br +0 -0
  177. package/web/chunk-52n1enqe.js.gz +0 -0
  178. package/web/chunk-5m5jve5q.js +2 -0
  179. package/web/chunk-5m5jve5q.js.br +0 -0
  180. package/web/chunk-5m5jve5q.js.gz +0 -0
  181. package/web/chunk-62ssrwet.js +1 -0
  182. package/web/chunk-62ssrwet.js.br +0 -0
  183. package/web/chunk-62ssrwet.js.gz +0 -0
  184. package/web/chunk-6e14fdx8.js +1 -0
  185. package/web/chunk-6e14fdx8.js.br +0 -0
  186. package/web/chunk-6e14fdx8.js.gz +0 -0
  187. package/web/chunk-6kckk3j9.js +1 -0
  188. package/web/chunk-6kckk3j9.js.br +2 -0
  189. package/web/chunk-6kckk3j9.js.gz +0 -0
  190. package/web/chunk-6vdh5wx5.js +1 -0
  191. package/web/chunk-6vdh5wx5.js.br +0 -0
  192. package/web/chunk-6vdh5wx5.js.gz +0 -0
  193. package/web/chunk-6wyrfrh1.js +1 -0
  194. package/web/chunk-6wyrfrh1.js.br +0 -0
  195. package/web/chunk-6wyrfrh1.js.gz +0 -0
  196. package/web/chunk-77pcpdb5.js +303 -0
  197. package/web/chunk-77pcpdb5.js.br +0 -0
  198. package/web/chunk-77pcpdb5.js.gz +0 -0
  199. package/web/chunk-7dq3x88k.js +120 -0
  200. package/web/chunk-7dq3x88k.js.br +0 -0
  201. package/web/chunk-7dq3x88k.js.gz +0 -0
  202. package/web/chunk-7ebwmmjn.js +34 -0
  203. package/web/chunk-7ebwmmjn.js.br +0 -0
  204. package/web/chunk-7ebwmmjn.js.gz +0 -0
  205. package/web/chunk-7jra5kj0.js +1 -0
  206. package/web/chunk-7jra5kj0.js.br +0 -0
  207. package/web/chunk-7jra5kj0.js.gz +0 -0
  208. package/web/chunk-8dgtprxa.js +2 -0
  209. package/web/chunk-8dgtprxa.js.br +0 -0
  210. package/web/chunk-8dgtprxa.js.gz +0 -0
  211. package/web/chunk-8mrw5mgn.js +1 -0
  212. package/web/chunk-8mrw5mgn.js.br +0 -0
  213. package/web/chunk-8mrw5mgn.js.gz +0 -0
  214. package/web/chunk-8n1cyb8k.js +99 -0
  215. package/web/chunk-8n1cyb8k.js.br +0 -0
  216. package/web/chunk-8n1cyb8k.js.gz +0 -0
  217. package/web/chunk-8ssjqdky.js +1 -0
  218. package/web/chunk-8ssjqdky.js.br +2 -0
  219. package/web/chunk-8ssjqdky.js.gz +0 -0
  220. package/web/chunk-90k6xrsa.js +2 -0
  221. package/web/chunk-90k6xrsa.js.br +0 -0
  222. package/web/chunk-90k6xrsa.js.gz +0 -0
  223. package/web/chunk-926v5sg8.js +24 -0
  224. package/web/chunk-926v5sg8.js.br +0 -0
  225. package/web/chunk-926v5sg8.js.gz +0 -0
  226. package/web/chunk-9kvr6dkh.js +106 -0
  227. package/web/chunk-9kvr6dkh.js.br +0 -0
  228. package/web/chunk-9kvr6dkh.js.gz +0 -0
  229. package/web/chunk-9s6zj1sh.js +217 -0
  230. package/web/chunk-9s6zj1sh.js.br +0 -0
  231. package/web/chunk-9s6zj1sh.js.gz +0 -0
  232. package/web/chunk-acpyx69f.js +1 -0
  233. package/web/chunk-acpyx69f.js.br +0 -0
  234. package/web/chunk-acpyx69f.js.gz +0 -0
  235. package/web/chunk-amch1hp8.js +1 -0
  236. package/web/chunk-amch1hp8.js.br +0 -0
  237. package/web/chunk-amch1hp8.js.gz +0 -0
  238. package/web/chunk-azjpkz26.js +38 -0
  239. package/web/chunk-azjpkz26.js.br +0 -0
  240. package/web/chunk-azjpkz26.js.gz +0 -0
  241. package/web/chunk-b2zmxzm0.js +2 -0
  242. package/web/chunk-b2zmxzm0.js.br +0 -0
  243. package/web/chunk-b2zmxzm0.js.gz +0 -0
  244. package/web/chunk-bgn0bkad.js +98 -0
  245. package/web/chunk-bgn0bkad.js.br +0 -0
  246. package/web/chunk-bgn0bkad.js.gz +0 -0
  247. package/web/chunk-bka3pbzn.js +4 -0
  248. package/web/chunk-bka3pbzn.js.br +0 -0
  249. package/web/chunk-bka3pbzn.js.gz +0 -0
  250. package/web/chunk-ck23t8as.js +2 -0
  251. package/web/chunk-ck23t8as.js.br +0 -0
  252. package/web/chunk-ck23t8as.js.gz +0 -0
  253. package/web/chunk-cp5ec63g.js +30 -0
  254. package/web/chunk-cp5ec63g.js.br +0 -0
  255. package/web/chunk-cp5ec63g.js.gz +0 -0
  256. package/web/chunk-cw21gjwg.js +39 -0
  257. package/web/chunk-cw21gjwg.js.br +0 -0
  258. package/web/chunk-cw21gjwg.js.gz +0 -0
  259. package/web/chunk-cxcpk0qt.js +2 -0
  260. package/web/chunk-cxcpk0qt.js.br +0 -0
  261. package/web/chunk-cxcpk0qt.js.gz +0 -0
  262. package/web/chunk-d3s30py8.js +1 -0
  263. package/web/chunk-d3s30py8.js.br +0 -0
  264. package/web/chunk-d3s30py8.js.gz +0 -0
  265. package/web/chunk-dj4jc1ec.js +1 -0
  266. package/web/chunk-dj4jc1ec.js.br +0 -0
  267. package/web/chunk-dj4jc1ec.js.gz +0 -0
  268. package/web/chunk-ef2xw0kb.js +1 -0
  269. package/web/chunk-ef2xw0kb.js.br +0 -0
  270. package/web/chunk-ef2xw0kb.js.gz +0 -0
  271. package/web/chunk-fek0yrg5.js +2 -0
  272. package/web/chunk-fek0yrg5.js.br +0 -0
  273. package/web/chunk-fek0yrg5.js.gz +0 -0
  274. package/web/chunk-fgm2r34b.js +36 -0
  275. package/web/chunk-fgm2r34b.js.br +0 -0
  276. package/web/chunk-fgm2r34b.js.gz +0 -0
  277. package/web/chunk-fpqs301q.js +2 -0
  278. package/web/chunk-fpqs301q.js.br +0 -0
  279. package/web/chunk-fpqs301q.js.gz +0 -0
  280. package/web/chunk-fv6se8xf.js +1 -0
  281. package/web/chunk-fv6se8xf.js.br +2 -0
  282. package/web/chunk-fv6se8xf.js.gz +0 -0
  283. package/web/chunk-g0nagyx2.js +1 -0
  284. package/web/chunk-g0nagyx2.js.br +0 -0
  285. package/web/chunk-g0nagyx2.js.gz +0 -0
  286. package/web/chunk-g5fp9ep9.js +1 -0
  287. package/web/chunk-g5fp9ep9.js.br +0 -0
  288. package/web/chunk-g5fp9ep9.js.gz +0 -0
  289. package/web/chunk-gh1fmd3j.js +3 -0
  290. package/web/chunk-gh1fmd3j.js.br +0 -0
  291. package/web/chunk-gh1fmd3j.js.gz +0 -0
  292. package/web/chunk-gq5825re.js +70 -0
  293. package/web/chunk-gq5825re.js.br +0 -0
  294. package/web/chunk-gq5825re.js.gz +0 -0
  295. package/web/chunk-gy57dyny.js +1 -0
  296. package/web/chunk-gy57dyny.js.br +0 -0
  297. package/web/chunk-gy57dyny.js.gz +0 -0
  298. package/web/chunk-j7p6xhe2.js +1 -0
  299. package/web/chunk-j7p6xhe2.js.br +0 -0
  300. package/web/chunk-j7p6xhe2.js.gz +0 -0
  301. package/web/chunk-jb8xfsc6.js +2 -0
  302. package/web/chunk-jb8xfsc6.js.br +0 -0
  303. package/web/chunk-jb8xfsc6.js.gz +0 -0
  304. package/web/chunk-jqyxnnn0.js +1 -0
  305. package/web/chunk-jqyxnnn0.js.br +0 -0
  306. package/web/chunk-jqyxnnn0.js.gz +0 -0
  307. package/web/chunk-jtwct1bx.js +1133 -0
  308. package/web/chunk-jtwct1bx.js.br +0 -0
  309. package/web/chunk-jtwct1bx.js.gz +0 -0
  310. package/web/chunk-k22kq2t7.js +12 -0
  311. package/web/chunk-k22kq2t7.js.br +0 -0
  312. package/web/chunk-k22kq2t7.js.gz +0 -0
  313. package/web/chunk-k2ry7k7s.js +1 -0
  314. package/web/chunk-k2ry7k7s.js.br +0 -0
  315. package/web/chunk-k2ry7k7s.js.gz +0 -0
  316. package/web/chunk-kdbrrecz.js +332 -0
  317. package/web/chunk-kdbrrecz.js.br +0 -0
  318. package/web/chunk-kdbrrecz.js.gz +0 -0
  319. package/web/chunk-kes2tf1q.js +2 -0
  320. package/web/chunk-kes2tf1q.js.br +3 -0
  321. package/web/chunk-kes2tf1q.js.gz +0 -0
  322. package/web/chunk-ksrzt6c5.js +1 -0
  323. package/web/chunk-ksrzt6c5.js.br +0 -0
  324. package/web/chunk-ksrzt6c5.js.gz +0 -0
  325. package/web/chunk-m2ethr1n.js +84 -0
  326. package/web/chunk-m2ethr1n.js.br +0 -0
  327. package/web/chunk-m2ethr1n.js.gz +0 -0
  328. package/web/chunk-m7tcm69z.js +292 -0
  329. package/web/chunk-m7tcm69z.js.br +0 -0
  330. package/web/chunk-m7tcm69z.js.gz +0 -0
  331. package/web/chunk-m8bz4e6n.js +2 -0
  332. package/web/chunk-m8bz4e6n.js.br +0 -0
  333. package/web/chunk-m8bz4e6n.js.gz +0 -0
  334. package/web/chunk-mva687p4.js +1 -0
  335. package/web/chunk-mva687p4.js.br +0 -0
  336. package/web/chunk-mva687p4.js.gz +0 -0
  337. package/web/chunk-n8fe9j5b.js +214 -0
  338. package/web/chunk-n8fe9j5b.js.br +0 -0
  339. package/web/chunk-n8fe9j5b.js.gz +0 -0
  340. package/web/chunk-nckx4yfd.js +62 -0
  341. package/web/chunk-nckx4yfd.js.br +0 -0
  342. package/web/chunk-nckx4yfd.js.gz +0 -0
  343. package/web/chunk-ncynjha5.js +2 -0
  344. package/web/chunk-ncynjha5.js.br +0 -0
  345. package/web/chunk-ncynjha5.js.gz +0 -0
  346. package/web/chunk-nq7dp0wj.js +291 -0
  347. package/web/chunk-nq7dp0wj.js.br +0 -0
  348. package/web/chunk-nq7dp0wj.js.gz +0 -0
  349. package/web/chunk-pagep4k3.js +1 -0
  350. package/web/chunk-pagep4k3.js.br +0 -0
  351. package/web/chunk-pagep4k3.js.gz +0 -0
  352. package/web/chunk-pbrk7zdw.js +1 -0
  353. package/web/chunk-pbrk7zdw.js.br +0 -0
  354. package/web/chunk-pbrk7zdw.js.gz +0 -0
  355. package/web/chunk-q0cs1bhg.js +2 -0
  356. package/web/chunk-q0cs1bhg.js.br +0 -0
  357. package/web/chunk-q0cs1bhg.js.gz +0 -0
  358. package/web/chunk-q749pgke.js +1 -0
  359. package/web/chunk-q749pgke.js.br +0 -0
  360. package/web/chunk-q749pgke.js.gz +0 -0
  361. package/web/chunk-q7yry602.js +1 -0
  362. package/web/chunk-q7yry602.js.br +0 -0
  363. package/web/chunk-q7yry602.js.gz +0 -0
  364. package/web/chunk-qkeaa97s.js +1 -0
  365. package/web/chunk-qkeaa97s.js.br +0 -0
  366. package/web/chunk-qkeaa97s.js.gz +0 -0
  367. package/web/chunk-qx7afyba.js +1 -0
  368. package/web/chunk-qx7afyba.js.br +0 -0
  369. package/web/chunk-qx7afyba.js.gz +0 -0
  370. package/web/chunk-rcaqmcm4.js +40 -0
  371. package/web/chunk-rcaqmcm4.js.br +0 -0
  372. package/web/chunk-rcaqmcm4.js.gz +0 -0
  373. package/web/chunk-s5kbbker.js +89 -0
  374. package/web/chunk-s5kbbker.js.br +0 -0
  375. package/web/chunk-s5kbbker.js.gz +0 -0
  376. package/web/chunk-sdq69ysp.js +2 -0
  377. package/web/chunk-sdq69ysp.js.br +0 -0
  378. package/web/chunk-sdq69ysp.js.gz +0 -0
  379. package/web/chunk-sk0cmsbx.js +7 -0
  380. package/web/chunk-sk0cmsbx.js.br +0 -0
  381. package/web/chunk-sk0cmsbx.js.gz +0 -0
  382. package/web/chunk-smmcx1z4.js +324 -0
  383. package/web/chunk-smmcx1z4.js.br +0 -0
  384. package/web/chunk-smmcx1z4.js.gz +0 -0
  385. package/web/chunk-sq7ntjp0.js +16 -0
  386. package/web/chunk-sq7ntjp0.js.br +0 -0
  387. package/web/chunk-sq7ntjp0.js.gz +0 -0
  388. package/web/chunk-st27df9w.js +2 -0
  389. package/web/chunk-st27df9w.js.br +0 -0
  390. package/web/chunk-st27df9w.js.gz +0 -0
  391. package/web/chunk-svxkg8n3.js +2 -0
  392. package/web/chunk-svxkg8n3.js.br +0 -0
  393. package/web/chunk-svxkg8n3.js.gz +0 -0
  394. package/web/chunk-t9nzrp2p.js +1 -0
  395. package/web/chunk-t9nzrp2p.js.br +0 -0
  396. package/web/chunk-t9nzrp2p.js.gz +0 -0
  397. package/web/chunk-t9t9v1r8.js +55 -0
  398. package/web/chunk-t9t9v1r8.js.br +0 -0
  399. package/web/chunk-t9t9v1r8.js.gz +0 -0
  400. package/web/chunk-tzpv48j3.js +2 -0
  401. package/web/chunk-tzpv48j3.js.br +0 -0
  402. package/web/chunk-tzpv48j3.js.gz +0 -0
  403. package/web/chunk-vgsk4ppw.js +7 -0
  404. package/web/chunk-vgsk4ppw.js.br +0 -0
  405. package/web/chunk-vgsk4ppw.js.gz +0 -0
  406. package/web/chunk-vq41ta7n.js +4 -0
  407. package/web/chunk-vq41ta7n.js.br +0 -0
  408. package/web/chunk-vq41ta7n.js.gz +0 -0
  409. package/web/chunk-w08egbqf.js +1 -0
  410. package/web/chunk-w08egbqf.js.br +0 -0
  411. package/web/chunk-w08egbqf.js.gz +0 -0
  412. package/web/chunk-wcmq0qgh.js +1 -0
  413. package/web/chunk-wcmq0qgh.js.br +0 -0
  414. package/web/chunk-wcmq0qgh.js.gz +0 -0
  415. package/web/chunk-wctq02yb.js +2 -0
  416. package/web/chunk-wctq02yb.js.br +0 -0
  417. package/web/chunk-wctq02yb.js.gz +0 -0
  418. package/web/chunk-wfwadf3r.js +2 -0
  419. package/web/chunk-wfwadf3r.js.br +0 -0
  420. package/web/chunk-wfwadf3r.js.gz +0 -0
  421. package/web/chunk-wgas5t5y.js +1 -0
  422. package/web/chunk-wgas5t5y.js.br +0 -0
  423. package/web/chunk-wgas5t5y.js.gz +0 -0
  424. package/web/chunk-x7k4eyee.js +21 -0
  425. package/web/chunk-x7k4eyee.js.br +0 -0
  426. package/web/chunk-x7k4eyee.js.gz +0 -0
  427. package/web/chunk-xpv38q1f.js +140 -0
  428. package/web/chunk-xpv38q1f.js.br +0 -0
  429. package/web/chunk-xpv38q1f.js.gz +0 -0
  430. package/web/chunk-xt671z8e.js +1 -0
  431. package/web/chunk-xt671z8e.js.br +0 -0
  432. package/web/chunk-xt671z8e.js.gz +0 -0
  433. package/web/chunk-xwrrkwwx.css +1 -0
  434. package/web/chunk-xwrrkwwx.css.br +0 -0
  435. package/web/chunk-xwrrkwwx.css.gz +0 -0
  436. package/web/chunk-xwy3gth5.js +89 -0
  437. package/web/chunk-xwy3gth5.js.br +0 -0
  438. package/web/chunk-xwy3gth5.js.gz +0 -0
  439. package/web/chunk-xwyadj9p.js +2 -0
  440. package/web/chunk-xwyadj9p.js.br +0 -0
  441. package/web/chunk-xwyadj9p.js.gz +0 -0
  442. package/web/chunk-xzgvnd23.js +1 -0
  443. package/web/chunk-xzgvnd23.js.br +0 -0
  444. package/web/chunk-xzgvnd23.js.gz +0 -0
  445. package/web/chunk-y05m6rvz.js +1 -0
  446. package/web/chunk-y05m6rvz.js.br +2 -0
  447. package/web/chunk-y05m6rvz.js.gz +0 -0
  448. package/web/chunk-z51mtwh3.js +169 -0
  449. package/web/chunk-z51mtwh3.js.br +0 -0
  450. package/web/chunk-z51mtwh3.js.gz +0 -0
  451. package/web/chunk-z77xrqc1.js +1 -0
  452. package/web/chunk-z77xrqc1.js.br +0 -0
  453. package/web/chunk-z77xrqc1.js.gz +0 -0
  454. package/web/chunk-z946nbmn.js +2 -0
  455. package/web/chunk-z946nbmn.js.br +0 -0
  456. package/web/chunk-z946nbmn.js.gz +0 -0
  457. package/web/index.html +1 -1
  458. package/web/index.html.br +0 -0
  459. package/web/index.html.gz +0 -0
  460. package/worker.js +1 -1
  461. package/chunk-02q61grt.js +0 -3
  462. package/chunk-03r6s8pm.js +0 -2
  463. package/chunk-09fsdkd3.js +0 -5
  464. package/chunk-0bg4w7ht.js +0 -3
  465. package/chunk-0s4r7k7j.js +0 -2
  466. package/chunk-27kw4nth.js +0 -2
  467. package/chunk-2ag9mvms.js +0 -10
  468. package/chunk-2shwjp8q.js +0 -3
  469. package/chunk-3114vstw.js +0 -2
  470. package/chunk-31meb34a.js +0 -2
  471. package/chunk-34w345mt.js +0 -2
  472. package/chunk-3amfr8zp.js +0 -7
  473. package/chunk-40nk2jjt.js +0 -2
  474. package/chunk-49bz6hg5.js +0 -25
  475. package/chunk-4hgkwa4k.js +0 -3
  476. package/chunk-4wfd77kc.js +0 -2
  477. package/chunk-55kpabb3.js +0 -2
  478. package/chunk-5p2asrj6.js +0 -2
  479. package/chunk-65hg0v7e.js +0 -2
  480. package/chunk-67qw30cj.js +0 -3770
  481. package/chunk-6rehcf49.js +0 -12
  482. package/chunk-6vkz3wqz.js +0 -25
  483. package/chunk-81yk0kj2.js +0 -3
  484. package/chunk-885vf5kb.js +0 -2
  485. package/chunk-8wy08x0d.js +0 -2
  486. package/chunk-9cqa9trx.js +0 -4
  487. package/chunk-ae45qq4z.js +0 -2
  488. package/chunk-ag3em5yv.js +0 -4
  489. package/chunk-b5k5p49x.js +0 -2
  490. package/chunk-b84vbfjc.js +0 -2
  491. package/chunk-dkpgstr2.js +0 -18
  492. package/chunk-dzn4c87v.js +0 -3
  493. package/chunk-e5xsyr0n.js +0 -3
  494. package/chunk-f97ma522.js +0 -3
  495. package/chunk-f9yneea6.js +0 -3
  496. package/chunk-fk43jgwe.js +0 -31
  497. package/chunk-frjqjdkx.js +0 -11
  498. package/chunk-fycz7ap5.js +0 -2
  499. package/chunk-fzefs6kn.js +0 -3
  500. package/chunk-g1n8k4dg.js +0 -5
  501. package/chunk-g5mdw639.js +0 -3
  502. package/chunk-gnvx44kj.js +0 -10
  503. package/chunk-gpympx0t.js +0 -467
  504. package/chunk-gyp2jn7d.js +0 -3
  505. package/chunk-hambwbfz.js +0 -7
  506. package/chunk-j02kqpvq.js +0 -5
  507. package/chunk-j1h7pabk.js +0 -7
  508. package/chunk-j6hn9qz6.js +0 -3
  509. package/chunk-jfx4c32t.js +0 -8
  510. package/chunk-jjj8a18b.js +0 -59
  511. package/chunk-k3c32v59.js +0 -3
  512. package/chunk-k8j3fvx5.js +0 -2
  513. package/chunk-kcn3af9r.js +0 -12
  514. package/chunk-m45dpnd1.js +0 -16
  515. package/chunk-m4wf04dz.js +0 -15
  516. package/chunk-m8k6t63k.js +0 -2
  517. package/chunk-nrggp4x6.js +0 -2
  518. package/chunk-nt549hv5.js +0 -2
  519. package/chunk-pg4mtrdy.js +0 -3
  520. package/chunk-psr4rxnn.js +0 -20
  521. package/chunk-qhhv81gd.js +0 -2
  522. package/chunk-qprms4rt.js +0 -2
  523. package/chunk-r0pm6dap.js +0 -3
  524. package/chunk-rck0kx09.js +0 -2
  525. package/chunk-rsn8ad6s.js +0 -2
  526. package/chunk-skzh3q1s.js +0 -2
  527. package/chunk-sm4b3q49.js +0 -3
  528. package/chunk-ste3ek53.js +0 -3
  529. package/chunk-trw86cmb.js +0 -11
  530. package/chunk-tv7met41.js +0 -3
  531. package/chunk-w33aapmk.js +0 -39
  532. package/chunk-wkqrsfrb.js +0 -389
  533. package/chunk-wxngqzqs.js +0 -3
  534. package/chunk-xafx1p7z.js +0 -3
  535. package/chunk-xgfqmm46.js +0 -2
  536. package/chunk-xr77j4f8.js +0 -9
  537. package/chunk-ykstnss8.js +0 -3
  538. package/chunk-yqv7ej5r.js +0 -5
  539. package/chunk-z97bcdg2.js +0 -3
  540. package/chunk-z9s7pwv5.js +0 -7
  541. package/web/chunk-013et20n.js +0 -2
  542. package/web/chunk-013et20n.js.br +0 -0
  543. package/web/chunk-013et20n.js.gz +0 -0
  544. package/web/chunk-0ernj3c0.js +0 -1
  545. package/web/chunk-0ernj3c0.js.br +0 -0
  546. package/web/chunk-0ernj3c0.js.gz +0 -0
  547. package/web/chunk-0j65yg1p.js +0 -1
  548. package/web/chunk-0j65yg1p.js.br +0 -0
  549. package/web/chunk-0j65yg1p.js.gz +0 -0
  550. package/web/chunk-0khcpaa8.js +0 -1
  551. package/web/chunk-0khcpaa8.js.br +0 -0
  552. package/web/chunk-0khcpaa8.js.gz +0 -0
  553. package/web/chunk-0wbdd74r.js +0 -1
  554. package/web/chunk-0wbdd74r.js.br +0 -2
  555. package/web/chunk-0wbdd74r.js.gz +0 -0
  556. package/web/chunk-1f2wvhq9.js +0 -1
  557. package/web/chunk-1f2wvhq9.js.br +0 -0
  558. package/web/chunk-1f2wvhq9.js.gz +0 -0
  559. package/web/chunk-1q2kmv35.js +0 -332
  560. package/web/chunk-1q2kmv35.js.br +0 -0
  561. package/web/chunk-1q2kmv35.js.gz +0 -0
  562. package/web/chunk-1tfrm3pk.js +0 -2
  563. package/web/chunk-1tfrm3pk.js.br +0 -0
  564. package/web/chunk-1tfrm3pk.js.gz +0 -0
  565. package/web/chunk-2qt5fy5n.js +0 -1
  566. package/web/chunk-2qt5fy5n.js.br +0 -0
  567. package/web/chunk-2qt5fy5n.js.gz +0 -0
  568. package/web/chunk-2sxtb709.js +0 -1
  569. package/web/chunk-2sxtb709.js.br +0 -0
  570. package/web/chunk-2sxtb709.js.gz +0 -0
  571. package/web/chunk-2wrwm0qe.js +0 -1
  572. package/web/chunk-2wrwm0qe.js.br +0 -0
  573. package/web/chunk-2wrwm0qe.js.gz +0 -0
  574. package/web/chunk-2wwj27b9.js +0 -7
  575. package/web/chunk-2wwj27b9.js.br +0 -0
  576. package/web/chunk-2wwj27b9.js.gz +0 -0
  577. package/web/chunk-33mmrjdp.js +0 -1
  578. package/web/chunk-33mmrjdp.js.br +0 -2
  579. package/web/chunk-33mmrjdp.js.gz +0 -0
  580. package/web/chunk-33tb7q04.js +0 -2
  581. package/web/chunk-33tb7q04.js.br +0 -0
  582. package/web/chunk-33tb7q04.js.gz +0 -0
  583. package/web/chunk-3txb4sha.js +0 -1
  584. package/web/chunk-3txb4sha.js.br +0 -0
  585. package/web/chunk-3txb4sha.js.gz +0 -0
  586. package/web/chunk-3xgfsx7y.js +0 -2
  587. package/web/chunk-3xgfsx7y.js.br +0 -0
  588. package/web/chunk-3xgfsx7y.js.gz +0 -0
  589. package/web/chunk-40jka4r7.js +0 -2
  590. package/web/chunk-40jka4r7.js.br +0 -0
  591. package/web/chunk-40jka4r7.js.gz +0 -0
  592. package/web/chunk-41vh5n86.js +0 -1
  593. package/web/chunk-41vh5n86.js.br +0 -0
  594. package/web/chunk-41vh5n86.js.gz +0 -0
  595. package/web/chunk-5kz048x3.js +0 -2
  596. package/web/chunk-5kz048x3.js.br +0 -0
  597. package/web/chunk-5kz048x3.js.gz +0 -0
  598. package/web/chunk-5mbz8yj9.js +0 -3
  599. package/web/chunk-5mbz8yj9.js.br +0 -0
  600. package/web/chunk-5mbz8yj9.js.gz +0 -0
  601. package/web/chunk-6024wfxb.js +0 -30
  602. package/web/chunk-6024wfxb.js.br +0 -0
  603. package/web/chunk-6024wfxb.js.gz +0 -0
  604. package/web/chunk-6ey4c6gw.js +0 -2
  605. package/web/chunk-6ey4c6gw.js.br +0 -0
  606. package/web/chunk-6ey4c6gw.js.gz +0 -0
  607. package/web/chunk-6q3p851n.js +0 -1
  608. package/web/chunk-6q3p851n.js.br +0 -2
  609. package/web/chunk-6q3p851n.js.gz +0 -0
  610. package/web/chunk-74g3wh08.js +0 -2
  611. package/web/chunk-74g3wh08.js.br +0 -0
  612. package/web/chunk-74g3wh08.js.gz +0 -0
  613. package/web/chunk-78akzkgs.js +0 -84
  614. package/web/chunk-78akzkgs.js.br +0 -0
  615. package/web/chunk-78akzkgs.js.gz +0 -0
  616. package/web/chunk-7ck99bsp.js +0 -62
  617. package/web/chunk-7ck99bsp.js.br +0 -0
  618. package/web/chunk-7ck99bsp.js.gz +0 -0
  619. package/web/chunk-7fjbyns9.js +0 -1
  620. package/web/chunk-7fjbyns9.js.br +0 -0
  621. package/web/chunk-7fjbyns9.js.gz +0 -0
  622. package/web/chunk-7n6b2xra.js +0 -21
  623. package/web/chunk-7n6b2xra.js.br +0 -0
  624. package/web/chunk-7n6b2xra.js.gz +0 -0
  625. package/web/chunk-7p4mcqkd.js +0 -78
  626. package/web/chunk-7p4mcqkd.js.br +0 -0
  627. package/web/chunk-7p4mcqkd.js.gz +0 -0
  628. package/web/chunk-7ztwkhg5.js +0 -1
  629. package/web/chunk-7ztwkhg5.js.br +0 -0
  630. package/web/chunk-7ztwkhg5.js.gz +0 -0
  631. package/web/chunk-823etvc3.js +0 -99
  632. package/web/chunk-823etvc3.js.br +0 -0
  633. package/web/chunk-823etvc3.js.gz +0 -0
  634. package/web/chunk-8ec53vjd.js +0 -1
  635. package/web/chunk-8ec53vjd.js.br +0 -0
  636. package/web/chunk-8ec53vjd.js.gz +0 -0
  637. package/web/chunk-8g55ytgz.js +0 -1
  638. package/web/chunk-8g55ytgz.js.br +0 -0
  639. package/web/chunk-8g55ytgz.js.gz +0 -0
  640. package/web/chunk-8q76yd76.js +0 -291
  641. package/web/chunk-8q76yd76.js.br +0 -0
  642. package/web/chunk-8q76yd76.js.gz +0 -0
  643. package/web/chunk-9kbrjmtz.js +0 -1
  644. package/web/chunk-9kbrjmtz.js.br +0 -0
  645. package/web/chunk-9kbrjmtz.js.gz +0 -0
  646. package/web/chunk-9s4bh6qm.js +0 -40
  647. package/web/chunk-9s4bh6qm.js.br +0 -0
  648. package/web/chunk-9s4bh6qm.js.gz +0 -0
  649. package/web/chunk-a449xjq6.js +0 -7
  650. package/web/chunk-a449xjq6.js.br +0 -0
  651. package/web/chunk-a449xjq6.js.gz +0 -0
  652. package/web/chunk-b05eay33.js +0 -1
  653. package/web/chunk-b05eay33.js.br +0 -0
  654. package/web/chunk-b05eay33.js.gz +0 -0
  655. package/web/chunk-bdypt5mj.js +0 -142
  656. package/web/chunk-bdypt5mj.js.br +0 -0
  657. package/web/chunk-bdypt5mj.js.gz +0 -0
  658. package/web/chunk-ccy2q2z0.js +0 -2
  659. package/web/chunk-ccy2q2z0.js.br +0 -0
  660. package/web/chunk-ccy2q2z0.js.gz +0 -0
  661. package/web/chunk-ceg13tma.js +0 -2
  662. package/web/chunk-ceg13tma.js.br +0 -0
  663. package/web/chunk-ceg13tma.js.gz +0 -0
  664. package/web/chunk-ch60a61d.js +0 -2
  665. package/web/chunk-ch60a61d.js.br +0 -0
  666. package/web/chunk-ch60a61d.js.gz +0 -0
  667. package/web/chunk-czvdg0c5.js +0 -1
  668. package/web/chunk-czvdg0c5.js.br +0 -0
  669. package/web/chunk-czvdg0c5.js.gz +0 -0
  670. package/web/chunk-dsa5m3h6.js +0 -200
  671. package/web/chunk-dsa5m3h6.js.br +0 -0
  672. package/web/chunk-dsa5m3h6.js.gz +0 -0
  673. package/web/chunk-dww3grm3.js +0 -24
  674. package/web/chunk-dww3grm3.js.br +0 -0
  675. package/web/chunk-dww3grm3.js.gz +0 -0
  676. package/web/chunk-e187gt5x.js +0 -1
  677. package/web/chunk-e187gt5x.js.br +0 -0
  678. package/web/chunk-e187gt5x.js.gz +0 -0
  679. package/web/chunk-ey0zwvbx.js +0 -1
  680. package/web/chunk-ey0zwvbx.js.br +0 -0
  681. package/web/chunk-ey0zwvbx.js.gz +0 -0
  682. package/web/chunk-ey14knbn.js +0 -2
  683. package/web/chunk-ey14knbn.js.br +0 -0
  684. package/web/chunk-ey14knbn.js.gz +0 -0
  685. package/web/chunk-fba06jm8.js +0 -1132
  686. package/web/chunk-fba06jm8.js.br +0 -0
  687. package/web/chunk-fba06jm8.js.gz +0 -0
  688. package/web/chunk-fh56vgfx.js +0 -39
  689. package/web/chunk-fh56vgfx.js.br +0 -0
  690. package/web/chunk-fh56vgfx.js.gz +0 -0
  691. package/web/chunk-ft05x3my.js +0 -169
  692. package/web/chunk-ft05x3my.js.br +0 -0
  693. package/web/chunk-ft05x3my.js.gz +0 -0
  694. package/web/chunk-fzmrnh17.js +0 -303
  695. package/web/chunk-fzmrnh17.js.br +0 -0
  696. package/web/chunk-fzmrnh17.js.gz +0 -0
  697. package/web/chunk-gbt7asd7.js +0 -2
  698. package/web/chunk-gbt7asd7.js.br +0 -0
  699. package/web/chunk-gbt7asd7.js.gz +0 -0
  700. package/web/chunk-gh9fkn3t.js +0 -1
  701. package/web/chunk-gh9fkn3t.js.br +0 -2
  702. package/web/chunk-gh9fkn3t.js.gz +0 -0
  703. package/web/chunk-h1syyjqq.js +0 -2
  704. package/web/chunk-h1syyjqq.js.br +0 -0
  705. package/web/chunk-h1syyjqq.js.gz +0 -0
  706. package/web/chunk-h7byk4z3.js +0 -140
  707. package/web/chunk-h7byk4z3.js.br +0 -0
  708. package/web/chunk-h7byk4z3.js.gz +0 -0
  709. package/web/chunk-hby0hkv4.js +0 -1
  710. package/web/chunk-hby0hkv4.js.br +0 -0
  711. package/web/chunk-hby0hkv4.js.gz +0 -0
  712. package/web/chunk-hjvsp2yx.js +0 -1
  713. package/web/chunk-hjvsp2yx.js.br +0 -0
  714. package/web/chunk-hjvsp2yx.js.gz +0 -0
  715. package/web/chunk-hpjzy5ww.js +0 -1
  716. package/web/chunk-hpjzy5ww.js.br +0 -0
  717. package/web/chunk-hpjzy5ww.js.gz +0 -0
  718. package/web/chunk-hzfp8kqx.js +0 -217
  719. package/web/chunk-hzfp8kqx.js.br +0 -0
  720. package/web/chunk-hzfp8kqx.js.gz +0 -0
  721. package/web/chunk-j8f0m1dq.js +0 -1
  722. package/web/chunk-j8f0m1dq.js.br +0 -0
  723. package/web/chunk-j8f0m1dq.js.gz +0 -0
  724. package/web/chunk-jc178ad5.js +0 -2
  725. package/web/chunk-jc178ad5.js.br +0 -0
  726. package/web/chunk-jc178ad5.js.gz +0 -0
  727. package/web/chunk-jcsf0ke5.js +0 -41
  728. package/web/chunk-jcsf0ke5.js.br +0 -0
  729. package/web/chunk-jcsf0ke5.js.gz +0 -0
  730. package/web/chunk-jg43a2xk.js +0 -139
  731. package/web/chunk-jg43a2xk.js.br +0 -0
  732. package/web/chunk-jg43a2xk.js.gz +0 -0
  733. package/web/chunk-jrgdxqtq.js +0 -7
  734. package/web/chunk-jrgdxqtq.js.br +0 -0
  735. package/web/chunk-jrgdxqtq.js.gz +0 -0
  736. package/web/chunk-js8dvtfg.js +0 -2
  737. package/web/chunk-js8dvtfg.js.br +0 -0
  738. package/web/chunk-js8dvtfg.js.gz +0 -0
  739. package/web/chunk-jt0s9qs7.js +0 -1
  740. package/web/chunk-jt0s9qs7.js.br +0 -0
  741. package/web/chunk-jt0s9qs7.js.gz +0 -0
  742. package/web/chunk-jv5faf88.js +0 -34
  743. package/web/chunk-jv5faf88.js.br +0 -0
  744. package/web/chunk-jv5faf88.js.gz +0 -0
  745. package/web/chunk-k295x81w.js +0 -370
  746. package/web/chunk-k295x81w.js.br +0 -0
  747. package/web/chunk-k295x81w.js.gz +0 -0
  748. package/web/chunk-k6wxwgp1.js +0 -55
  749. package/web/chunk-k6wxwgp1.js.br +0 -0
  750. package/web/chunk-k6wxwgp1.js.gz +0 -0
  751. package/web/chunk-k9vc7kp2.js +0 -292
  752. package/web/chunk-k9vc7kp2.js.br +0 -0
  753. package/web/chunk-k9vc7kp2.js.gz +0 -0
  754. package/web/chunk-kxyws7q7.js +0 -1
  755. package/web/chunk-kxyws7q7.js.br +0 -0
  756. package/web/chunk-kxyws7q7.js.gz +0 -0
  757. package/web/chunk-mcgf645h.js +0 -1
  758. package/web/chunk-mcgf645h.js.br +0 -4
  759. package/web/chunk-mcgf645h.js.gz +0 -0
  760. package/web/chunk-mj3tshy8.js +0 -214
  761. package/web/chunk-mj3tshy8.js.br +0 -0
  762. package/web/chunk-mj3tshy8.js.gz +0 -0
  763. package/web/chunk-mnb2wdvy.js +0 -24
  764. package/web/chunk-mnb2wdvy.js.br +0 -0
  765. package/web/chunk-mnb2wdvy.js.gz +0 -0
  766. package/web/chunk-ndf58dgc.js +0 -1
  767. package/web/chunk-ndf58dgc.js.br +0 -0
  768. package/web/chunk-ndf58dgc.js.gz +0 -0
  769. package/web/chunk-nhpm5nd5.js +0 -2
  770. package/web/chunk-nhpm5nd5.js.br +0 -0
  771. package/web/chunk-nhpm5nd5.js.gz +0 -0
  772. package/web/chunk-nwxjdetb.js +0 -1
  773. package/web/chunk-nwxjdetb.js.br +0 -0
  774. package/web/chunk-nwxjdetb.js.gz +0 -0
  775. package/web/chunk-nyjfcard.js +0 -106
  776. package/web/chunk-nyjfcard.js.br +0 -0
  777. package/web/chunk-nyjfcard.js.gz +0 -0
  778. package/web/chunk-pcfjcy3a.js +0 -324
  779. package/web/chunk-pcfjcy3a.js.br +0 -0
  780. package/web/chunk-pcfjcy3a.js.gz +0 -0
  781. package/web/chunk-pry6wdbe.js +0 -1
  782. package/web/chunk-pry6wdbe.js.br +0 -0
  783. package/web/chunk-pry6wdbe.js.gz +0 -0
  784. package/web/chunk-pvahdcgy.js +0 -2
  785. package/web/chunk-pvahdcgy.js.br +0 -0
  786. package/web/chunk-pvahdcgy.js.gz +0 -0
  787. package/web/chunk-q3njnnef.js +0 -16
  788. package/web/chunk-q3njnnef.js.br +0 -0
  789. package/web/chunk-q3njnnef.js.gz +0 -0
  790. package/web/chunk-rbmp2e4b.js +0 -1
  791. package/web/chunk-rbmp2e4b.js.br +0 -0
  792. package/web/chunk-rbmp2e4b.js.gz +0 -0
  793. package/web/chunk-rcre1stj.js +0 -1
  794. package/web/chunk-rcre1stj.js.br +0 -0
  795. package/web/chunk-rcre1stj.js.gz +0 -0
  796. package/web/chunk-rdb6091n.js +0 -89
  797. package/web/chunk-rdb6091n.js.br +0 -0
  798. package/web/chunk-rdb6091n.js.gz +0 -0
  799. package/web/chunk-ryw7xnab.js +0 -1
  800. package/web/chunk-ryw7xnab.js.br +0 -0
  801. package/web/chunk-ryw7xnab.js.gz +0 -0
  802. package/web/chunk-sbbmy02e.js +0 -2
  803. package/web/chunk-sbbmy02e.js.br +0 -0
  804. package/web/chunk-sbbmy02e.js.gz +0 -0
  805. package/web/chunk-sydy10mb.js +0 -1
  806. package/web/chunk-sydy10mb.js.br +0 -0
  807. package/web/chunk-sydy10mb.js.gz +0 -0
  808. package/web/chunk-t0ywnp5e.js +0 -1
  809. package/web/chunk-t0ywnp5e.js.br +0 -0
  810. package/web/chunk-t0ywnp5e.js.gz +0 -0
  811. package/web/chunk-t72jq97z.js +0 -2
  812. package/web/chunk-t72jq97z.js.br +0 -0
  813. package/web/chunk-t72jq97z.js.gz +0 -0
  814. package/web/chunk-tfcc9bcz.js +0 -4
  815. package/web/chunk-tfcc9bcz.js.br +0 -0
  816. package/web/chunk-tfcc9bcz.js.gz +0 -0
  817. package/web/chunk-v2bvbgfc.js +0 -2
  818. package/web/chunk-v2bvbgfc.js.br +0 -0
  819. package/web/chunk-v2bvbgfc.js.gz +0 -0
  820. package/web/chunk-v7zq4vc9.js +0 -12
  821. package/web/chunk-v7zq4vc9.js.br +0 -0
  822. package/web/chunk-v7zq4vc9.js.gz +0 -0
  823. package/web/chunk-vh8pkcem.css +0 -1
  824. package/web/chunk-vh8pkcem.css.br +0 -0
  825. package/web/chunk-vh8pkcem.css.gz +0 -0
  826. package/web/chunk-vq3sby7x.js +0 -1
  827. package/web/chunk-vq3sby7x.js.br +0 -0
  828. package/web/chunk-vq3sby7x.js.gz +0 -0
  829. package/web/chunk-was9xf03.js +0 -8
  830. package/web/chunk-was9xf03.js.br +0 -0
  831. package/web/chunk-was9xf03.js.gz +0 -0
  832. package/web/chunk-we1v1829.js +0 -2
  833. package/web/chunk-we1v1829.js.br +0 -0
  834. package/web/chunk-we1v1829.js.gz +0 -0
  835. package/web/chunk-wg2exnxe.js +0 -1
  836. package/web/chunk-wg2exnxe.js.br +0 -2
  837. package/web/chunk-wg2exnxe.js.gz +0 -0
  838. package/web/chunk-wvd3zj1m.js +0 -70
  839. package/web/chunk-wvd3zj1m.js.br +0 -0
  840. package/web/chunk-wvd3zj1m.js.gz +0 -0
  841. package/web/chunk-wzmxtr30.js +0 -1
  842. package/web/chunk-wzmxtr30.js.br +0 -0
  843. package/web/chunk-wzmxtr30.js.gz +0 -0
  844. package/web/chunk-x815g7yp.js +0 -1
  845. package/web/chunk-x815g7yp.js.br +0 -0
  846. package/web/chunk-x815g7yp.js.gz +0 -0
  847. package/web/chunk-x8ps0p82.js +0 -98
  848. package/web/chunk-x8ps0p82.js.br +0 -0
  849. package/web/chunk-x8ps0p82.js.gz +0 -0
  850. package/web/chunk-xea3snym.js +0 -1
  851. package/web/chunk-xea3snym.js.br +0 -0
  852. package/web/chunk-xea3snym.js.gz +0 -0
  853. package/web/chunk-xg4v60m7.js +0 -1
  854. package/web/chunk-xg4v60m7.js.br +0 -0
  855. package/web/chunk-xg4v60m7.js.gz +0 -0
  856. package/web/chunk-xhr9jrjt.js +0 -89
  857. package/web/chunk-xhr9jrjt.js.br +0 -0
  858. package/web/chunk-xhr9jrjt.js.gz +0 -0
  859. package/web/chunk-xp90g2e7.js +0 -36
  860. package/web/chunk-xp90g2e7.js.br +0 -0
  861. package/web/chunk-xp90g2e7.js.gz +0 -0
  862. package/web/chunk-xs1g97qa.js +0 -2
  863. package/web/chunk-xs1g97qa.js.br +0 -0
  864. package/web/chunk-xs1g97qa.js.gz +0 -0
  865. package/web/chunk-xyk1wpr4.js +0 -1
  866. package/web/chunk-xyk1wpr4.js.br +0 -3
  867. package/web/chunk-xyk1wpr4.js.gz +0 -0
  868. package/web/chunk-yavbdwyt.js +0 -1
  869. package/web/chunk-yavbdwyt.js.br +0 -0
  870. package/web/chunk-yavbdwyt.js.gz +0 -0
  871. package/web/chunk-yfnhnsxe.js +0 -4
  872. package/web/chunk-yfnhnsxe.js.br +0 -0
  873. package/web/chunk-yfnhnsxe.js.gz +0 -0
  874. package/web/chunk-yk965yth.js +0 -1
  875. package/web/chunk-yk965yth.js.br +0 -0
  876. package/web/chunk-yk965yth.js.gz +0 -0
  877. package/web/chunk-ynhcjhsx.js +0 -2
  878. package/web/chunk-ynhcjhsx.js.br +0 -0
  879. package/web/chunk-ynhcjhsx.js.gz +0 -0
  880. package/web/chunk-ypmm1gts.js +0 -1
  881. package/web/chunk-ypmm1gts.js.br +0 -0
  882. package/web/chunk-ypmm1gts.js.gz +0 -0
  883. package/web/chunk-yssx5a5q.js +0 -1
  884. package/web/chunk-yssx5a5q.js.br +0 -0
  885. package/web/chunk-yssx5a5q.js.gz +0 -0
  886. package/web/chunk-z0a8cnq8.js +0 -1
  887. package/web/chunk-z0a8cnq8.js.br +0 -0
  888. package/web/chunk-z0a8cnq8.js.gz +0 -0
  889. package/web/chunk-z1afsvbv.js +0 -2
  890. package/web/chunk-z1afsvbv.js.br +0 -0
  891. package/web/chunk-z1afsvbv.js.gz +0 -0
  892. package/web/chunk-z1ka8jtd.js +0 -2
  893. package/web/chunk-z1ka8jtd.js.br +0 -0
  894. package/web/chunk-z1ka8jtd.js.gz +0 -0
  895. package/web/chunk-z7tdzen9.js +0 -1
  896. package/web/chunk-z7tdzen9.js.br +0 -0
  897. package/web/chunk-z7tdzen9.js.gz +0 -0
  898. package/web/chunk-zbwjj06m.js +0 -38
  899. package/web/chunk-zbwjj06m.js.br +0 -0
  900. package/web/chunk-zbwjj06m.js.gz +0 -0
  901. package/web/chunk-zd2j189j.js +0 -1
  902. package/web/chunk-zd2j189j.js.br +0 -0
  903. package/web/chunk-zd2j189j.js.gz +0 -0
  904. package/web/chunk-zfgpq4n4.js +0 -120
  905. package/web/chunk-zfgpq4n4.js.br +0 -0
  906. package/web/chunk-zfgpq4n4.js.gz +0 -0
  907. package/web/chunk-zgas56xw.js +0 -1
  908. package/web/chunk-zgas56xw.js.br +0 -0
  909. package/web/chunk-zgas56xw.js.gz +0 -0
  910. package/web/chunk-zkfepf91.js +0 -1
  911. package/web/chunk-zkfepf91.js.br +0 -0
  912. package/web/chunk-zkfepf91.js.gz +0 -0
package/chunk-psr4rxnn.js DELETED
@@ -1,20 +0,0 @@
1
- // @bun
2
- import{ke,U}from"./chunk-frjqjdkx.js";import{vt,$e,Ee,ee,v,te,j}from"./chunk-dkpgstr2.js";import{r}from"./chunk-g5mdw639.js";var si=r(function(Is){var{hasOwn:ie,fromUtf8:pr,fromHex:ys,toHex:Y,toUint8Array:we,isArrayBuffer:Ss}=te(),{normalizeProvider:yr}=ee(),{escapeUri:je,HttpRequest:xr}=j();class Er{format(e){let t=[];for(let o in e){if(!ie(e,o))continue;let i=pr(o);t.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[o]))}let n=new Uint8Array(t.reduce((o,i)=>o+i.byteLength,0)),s=0;for(let o of t)n.set(o,s),s+=o.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let s=new Uint8Array(9);return s[0]=5,s.set(e.value.bytes,1),s;case"binary":let o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);let i=new Uint8Array(o.buffer);return i.set(e.value,3),i;case"string":let c=pr(e.value),a=new DataView(new ArrayBuffer(3+c.byteLength));a.setUint8(0,7),a.setUint16(1,c.byteLength,!1);let f=new Uint8Array(a.buffer);return f.set(c,3),f;case"timestamp":let u=new Uint8Array(9);return u[0]=8,u.set(yt.fromNumber(e.value.valueOf()).bytes,1),u;case"uuid":if(!ws.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let h=new Uint8Array(17);return h[0]=9,h.set(ys(e.value.replace(/-/g,"")),1),h}}}var Sr;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Sr||(Sr={}));var ws=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class yt{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let n=7,s=Math.abs(Math.round(e));n>-1&&s>0;n--,s/=256)t[n]=s;if(e<0)wr(t);return new yt(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)wr(e);return parseInt(Y(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function wr(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Nr="X-Amz-Algorithm",_r="X-Amz-Credential",St="X-Amz-Date",Cr="X-Amz-SignedHeaders",Ar="X-Amz-Expires",wt="X-Amz-Signature",bt="X-Amz-Security-Token",bs="X-Amz-Region-Set",xt="authorization",Et=St.toLowerCase(),Tr="date",Ir=[xt,Et,Tr],kr=wt.toLowerCase(),Fe="x-amz-content-sha256",Rr=bt.toLowerCase(),xs="host",Mr={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Br=/^proxy-/,Ur=/^sec-/,Es=[/^proxy-/i,/^sec-/i],ze="AWS4-HMAC-SHA256",Ns="AWS4-ECDSA-P256-SHA256",Dr="AWS4-HMAC-SHA256-PAYLOAD",jr="UNSIGNED-PAYLOAD",zr=50,Nt="aws4_request",Or=604800,Lr=({query:e={}})=>{let t=[],n={};for(let s in e){if(!ie(e,s))continue;if(s.toLowerCase()===kr)continue;let o=je(s);t.push(o);let i=e[s];if(typeof i==="string")n[o]=`${o}=${je(i)}`;else if(Array.isArray(i))n[o]=i.slice(0).reduce((c,a)=>c.concat([`${o}=${je(a)}`]),[]).sort().join("&")}return t.sort().map((s)=>n[s]).filter((s)=>s).join("&")},_s=(e)=>Cs(e).toISOString().replace(/\.\d{3}Z$/,"Z"),Cs=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class _t{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:s,sha256:o,uriEscapePath:i=!0}){this.service=s,this.sha256=o,this.uriEscapePath=i,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=yr(n),this.credentialProvider=yr(t)}createCanonicalRequest(e,t,n){let s=Object.keys(t).sort();return`${e.method}
3
- ${this.getCanonicalPath(e)}
4
- ${Lr(e)}
5
- ${s.map((o)=>`${o}:${t[o]}`).join(`
6
- `)}
7
-
8
- ${s.join(";")}
9
- ${n}`}async createStringToSign(e,t,n,s){let o=new this.sha256;o.update(we(n));let i=await o.digest();return`${s}
10
- ${e}
11
- ${t}
12
- ${Y(i)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let o of e.split("/")){if(o?.length===0)continue;if(o===".")continue;if(o==="..")t.pop();else t.push(o)}let n=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return je(n).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=_s(e).replace(/[-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var se={},Oe=[],Le=(e,t,n)=>`${e}/${t}/${n}/${Nt}`,$r=async(e,t,n,s,o)=>{let i=await br(e,t.secretAccessKey,t.accessKeyId),c=`${n}:${s}:${o}:${Y(i)}:${t.sessionToken}`;if(c in se)return se[c];Oe.push(c);while(Oe.length>zr)delete se[Oe.shift()];let a=`AWS4${t.secretAccessKey}`;for(let f of[n,s,o,Nt])a=await br(e,a,f);return se[c]=a},As=()=>{Oe.length=0,Object.keys(se).forEach((e)=>{delete se[e]})},br=(e,t,n)=>{let s=new e(t);return s.update(we(n)),s.digest()},gt=({headers:e},t,n)=>{let s={};for(let o of Object.keys(e).sort()){if(e[o]==null)continue;let i=o.toLowerCase();if(i in Mr||t?.has(i)||Br.test(i)||Ur.test(i)){if(!n||n&&!n.has(i))continue}s[i]=e[o].replace(/[\r\n]/g," ").replace(/[ \t]+/g," ").replace(/^ | $/g,"")}return s},Ve=async({headers:e,body:t},n)=>{for(let s in e){if(!ie(e,s))continue;if(s.toLowerCase()===Fe)return e[s]}if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||Ss(t)){let s=new n;return s.update(we(t)),Y(await s.digest())}return jr},Vr=(e,t)=>{e=e.toLowerCase();for(let n in t){if(!ie(t,n))continue;if(e===n.toLowerCase())return!0}return!1},Fr=(e,t={})=>{let{headers:n,query:s={}}=xr.clone(e);for(let o in n){if(!ie(n,o))continue;let i=o.toLowerCase();if(i.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i))s[o]=n[o],delete n[o]}return{...e,headers:n,query:s}},pt=(e)=>{e=xr.clone(e);for(let t in e.headers){if(!ie(e.headers,t))continue;if(Ir.indexOf(t.toLowerCase())>-1)delete e.headers[t]}return e};class Pr extends _t{headerFormatter=new Er;constructor({applyChecksum:e,credentials:t,region:n,service:s,sha256:o,uriEscapePath:i=!0}){super({applyChecksum:e,credentials:t,region:n,service:s,sha256:o,uriEscapePath:i})}async presign(e,t={}){let{signingDate:n=new Date,expiresIn:s=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:c,hoistableHeaders:a,signingRegion:f,signingService:u}=t,h=await this.credentialProvider();this.validateResolvedCredentials(h);let l=f??await this.regionProvider(),{longDate:d,shortDate:m}=this.formatDate(n);if(s>Or)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let y=Le(m,l,u??this.service),g=Fr(pt(e),{unhoistableHeaders:i,hoistableHeaders:a});if(h.sessionToken)g.query[bt]=h.sessionToken;g.query[Nr]=ze,g.query[_r]=`${h.accessKeyId}/${y}`,g.query[St]=d,g.query[Ar]=s.toString(10);let E=gt(g,o,c);return g.query[Cr]=this.getCanonicalHeaderList(E),g.query[wt]=await this.getSignature(d,y,this.getSigningKey(h,l,m,u),this.createCanonicalRequest(g,E,await Ve(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:s,signingRegion:o,signingService:i,eventStreamCredentials:c}){let a=o??await this.regionProvider(),{shortDate:f,longDate:u}=this.formatDate(n),h=Le(f,a,i??this.service),l=await Ve({headers:{},body:t},this.sha256),d=new this.sha256;d.update(e);let m=Y(await d.digest()),y=[Dr,u,h,s,m,l].join(`
13
- `);return this.signString(y,{signingDate:n,signingRegion:a,signingService:i,eventStreamCredentials:c})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:s,eventStreamCredentials:o}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:s,priorSignature:e.priorSignature,eventStreamCredentials:o}).then((c)=>({message:e.message,signature:c}))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:s,eventStreamCredentials:o}={}){let i=o??await this.credentialProvider();this.validateResolvedCredentials(i);let c=n??await this.regionProvider(),{shortDate:a}=this.formatDate(t),f=new this.sha256(await this.getSigningKey(i,c,a,s));return f.update(we(e)),Y(await f.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:s,signingRegion:o,signingService:i}={}){let c=await this.credentialProvider();this.validateResolvedCredentials(c);let a=o??await this.regionProvider(),f=pt(e),{longDate:u,shortDate:h}=this.formatDate(t),l=Le(h,a,i??this.service);if(f.headers[Et]=u,c.sessionToken)f.headers[Rr]=c.sessionToken;let d=await Ve(f,this.sha256);if(!Vr(Fe,f.headers)&&this.applyChecksum)f.headers[Fe]=d;let m=gt(f,s,n),y=await this.getSignature(u,l,this.getSigningKey(c,a,h,i),this.createCanonicalRequest(f,m,d));return f.headers[xt]=`${ze} Credential=${c.accessKeyId}/${l}, SignedHeaders=${this.getCanonicalHeaderList(m)}, Signature=${y}`,f}async getSignature(e,t,n,s){let o=await this.createStringToSign(e,t,s,ze),i=new this.sha256(await n);return i.update(we(o)),Y(await i.digest())}getSigningKey(e,t,n,s){return $r(this.sha256,e,n,t,s||this.service)}}var Ts={SignatureV4a:null};Is.ALGORITHM_IDENTIFIER=ze;Is.ALGORITHM_IDENTIFIER_V4A=Ns;Is.ALGORITHM_QUERY_PARAM=Nr;Is.ALWAYS_UNSIGNABLE_HEADERS=Mr;Is.AMZ_DATE_HEADER=Et;Is.AMZ_DATE_QUERY_PARAM=St;Is.AUTH_HEADER=xt;Is.CREDENTIAL_QUERY_PARAM=_r;Is.DATE_HEADER=Tr;Is.EVENT_ALGORITHM_IDENTIFIER=Dr;Is.EXPIRES_QUERY_PARAM=Ar;Is.GENERATED_HEADERS=Ir;Is.HOST_HEADER=xs;Is.KEY_TYPE_IDENTIFIER=Nt;Is.MAX_CACHE_SIZE=zr;Is.MAX_PRESIGNED_TTL=Or;Is.PROXY_HEADER_PATTERN=Br;Is.REGION_SET_PARAM=bs;Is.SEC_HEADER_PATTERN=Ur;Is.SHA256_HEADER=Fe;Is.SIGNATURE_HEADER=kr;Is.SIGNATURE_QUERY_PARAM=wt;Is.SIGNED_HEADERS_QUERY_PARAM=Cr;Is.SignatureV4=Pr;Is.SignatureV4Base=_t;Is.TOKEN_HEADER=Rr;Is.TOKEN_QUERY_PARAM=bt;Is.UNSIGNABLE_PATTERNS=Es;Is.UNSIGNED_PAYLOAD=jr;Is.clearCredentialCache=As;Is.createScope=Le;Is.getCanonicalHeaders=gt;Is.getCanonicalQuery=Lr;Is.getPayloadHash=Ve;Is.getSigningKey=$r;Is.hasHeader=Vr;Is.moveHeadersToQuery=Fr;Is.prepareRequest=pt;Is.signatureV4aContainer=Ts});var Ge=r(function(Di){var{ProviderError:Hr,booleanSelector:Kr,SelectorType:qr,loadConfig:gi}=v(),{setCredentialFeature:pi}=U(),{normalizeProvider:oe,memoizeIdentityProvider:yi,isIdentityExpired:Si,doesIdentityRequireRefresh:wi}=ke(),{SignatureV4:Qr}=si(),{HttpResponse:vr,HttpRequest:en}=j(),{SMITHY_CONTEXT_KEY:bi}=vt(),Gr=(e)=>vr.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,Wr=(e)=>vr.isInstance(e)?e.headers?.age??e.headers?.Age:void 0,tn=(e)=>new Date(Date.now()+e),Xr=(e,t,n,s)=>{if(s!==void 0)return t;let o=Date.parse(e),i=Date.now();if(n!==void 0&&i-n>900000)return t;return n!==void 0?o-(n+i)/2:o-i},be=(e,t)=>{if(!t)throw Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},xi=(e)=>e.context?.[bi]?.eventStream?.output===!0,Ct=async(e)=>{let t=be("context",e.context),n=be("config",e.config),s=t.endpointV2?.properties?.authSchemes?.[0],i=await be("signer",n.signer)(s),c=e?.signingRegion,a=e?.signingRegionSet,f=e?.signingName;return{config:n,signer:i,signingRegion:c,signingRegionSet:a,signingName:f}};class Pe{async sign(e,t,n){if(!en.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let s=await Ct(n),{config:o,signer:i}=s,{signingRegion:c,signingName:a}=s,f=n.context;if(f?.authSchemes?.length??!1){let[d,m]=f.authSchemes;if(d?.name==="sigv4a"&&m?.name==="sigv4")c=m?.signingRegion??c,a=m?.signingName??a}let u=await o.disableClockSkewCorrection?.()===!0;n._disableClockSkewCorrection=u;let h=u||xi(n);if(n._skipClockSkewSampling=h,!h)n._preRequestSystemClockOffset=o.systemClockOffset,n._requestSentAt=Date.now();return await i.sign(e,{signingDate:u?new Date:tn(o.systemClockOffset),signingRegion:c,signingService:a})}errorHandler(e){return(t)=>{let n=t;if(!e._skipClockSkewSampling&&!e._disableClockSkewCorrection){let s=n.ServerTime??Gr(n.$response);if(s){let o=be("config",e.config),{_preRequestSystemClockOffset:i,_requestSentAt:c}=e,a=Wr(n.$response),f=Xr(s,o.systemClockOffset,c,a);if(o.systemClockOffset=f,Math.abs(f)>=240000&&(f!==i||i!==void 0&&i!==f)&&n.$metadata)n.$metadata.clockSkewCorrected=!0}}throw t}}successHandler(e,t){if(t._skipClockSkewSampling||t._disableClockSkewCorrection)return;let n=Gr(e);if(n){let s=be("config",t.config),o=t._requestSentAt,i=Wr(e);s.systemClockOffset=Xr(n,s.systemClockOffset,o,i)}}}var Ei=Pe;class rn extends Pe{async sign(e,t,n){if(!en.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:s,signer:o,signingRegion:i,signingRegionSet:c,signingName:a}=await Ct(n),u=(await s.sigv4aSigningRegionSet?.()??c??[i]).join(","),h=await s.disableClockSkewCorrection?.()===!0;if(n._disableClockSkewCorrection=h,!h)n._preRequestSystemClockOffset=s.systemClockOffset,n._requestSentAt=Date.now();return await o.sign(e,{signingDate:h?new Date:tn(s.systemClockOffset),signingRegion:u,signingService:a})}}var Jr=(e)=>typeof e==="string"&&e.length>0?e.split(",").map((t)=>t.trim()):[],nn=(e)=>`AWS_BEARER_TOKEN_${e.replace(/[\s-]/g,"_").toUpperCase()}`,Zr="AWS_AUTH_SCHEME_PREFERENCE",Yr="auth_scheme_preference",Ni={environmentVariableSelector:(e,t)=>{if(t?.signingName){if(nn(t.signingName)in e)return["httpBearerAuth"]}if(!(Zr in e))return;return Jr(e[Zr])},configFileSelector:(e)=>{if(!(Yr in e))return;return Jr(e[Yr])},default:[]},_i=(e)=>(e.sigv4aSigningRegionSet=oe(e.sigv4aSigningRegionSet),e),Ci={environmentVariableSelector(e){if(e.AWS_SIGV4A_SIGNING_REGION_SET)return e.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((t)=>t.trim());throw new Hr("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(e){if(e.sigv4a_signing_region_set)return(e.sigv4a_signing_region_set??"").split(",").map((t)=>t.trim());throw new Hr("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},Ai=(e)=>(t)=>{let n=t.credentials,s=!!t.credentials,o=void 0;Object.defineProperty(t,"credentials",{set(h){if(h&&h!==n&&h!==o)s=!0;n=h;let l=Ti(t,{credentials:n,credentialDefaultProvider:t.credentialDefaultProvider}),d=Ii(t,l);if(s&&!d.attributed){let m=typeof n==="object"&&n!==null;o=async(y)=>{let E=await d(y);if(m&&(!E.$source||Object.keys(E.$source).length===0))return pi(E,"CREDENTIALS_CODE","e");return E},o.memoized=d.memoized,o.configBound=d.configBound,o.attributed=!0}else o=d},get(){return o},enumerable:!0,configurable:!0}),t.credentials=n;let{signingEscapePath:i=!0,systemClockOffset:c=t.systemClockOffset||0,sha256:a}=t,f;if(t.signer)f=oe(t.signer);else if(t.regionInfoProvider)f=()=>oe(t.region)().then(async(h)=>[await t.regionInfoProvider(h,{useFipsEndpoint:await t.useFipsEndpoint(),useDualstackEndpoint:await t.useDualstackEndpoint()})||{},h]).then(([h,l])=>{let{signingRegion:d,signingService:m}=h;t.signingRegion=t.signingRegion||d||l,t.signingName=t.signingName||m||t.serviceId;let y={...t,credentials:t.credentials,region:t.signingRegion,service:t.signingName,sha256:a,uriEscapePath:i};return new(t.signerConstructor||Qr)(y)});else f=async(h)=>{h=Object.assign({},{name:"sigv4",signingName:t.signingName||t.defaultSigningName,signingRegion:await oe(t.region)(),properties:{}},h);let l=h.signingRegion,d=h.signingName;t.signingRegion=t.signingRegion||l,t.signingName=t.signingName||d||t.serviceId;let m={...t,credentials:t.credentials,region:t.signingRegion,service:t.signingName,sha256:a,uriEscapePath:i};return new(t.signerConstructor||Qr)(m)};return Object.assign(t,{systemClockOffset:c,signingEscapePath:i,signer:f,disableClockSkewCorrection:oe(t.disableClockSkewCorrection??e)})};function Ti(e,{credentials:t,credentialDefaultProvider:n}){let s;if(t)if(!t?.memoized)s=yi(t,Si,wi);else s=t;else if(n)s=oe(n(Object.assign({},e,{parentClientConfig:e})));else s=async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")};return s.memoized=!0,s}function Ii(e,t){if(t.configBound)return t;let n=async(s)=>t({...s,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}var ki="AWS_DISABLE_CLOCK_SKEW_CORRECTION",Ri="disable_clock_skew_correction",Mi={environmentVariableSelector:(e)=>Kr(e,ki,qr.ENV),configFileSelector:(e)=>Kr(e,Ri,qr.CONFIG),default:!1},Bi=gi(Mi),sn=Ai(Bi),Ui=sn;Di.AWSSDKSigV4Signer=Ei;Di.AwsSdkSigV4ASigner=rn;Di.AwsSdkSigV4Signer=Pe;Di.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=Ni;Di.NODE_SIGV4A_CONFIG_OPTIONS=Ci;Di.getBearerTokenEnvKey=nn;Di.resolveAWSSDKSigV4Config=Ui;Di.resolveAwsSdkSigV4AConfig=_i;Di.resolveAwsSdkSigV4Config=sn;Di.validateSigningProperties=Ct});var Bn=r(function($o){var{nv:pn,NumericValue:Te,calculateBodyLength:qi,generateIdempotencyToken:yn,fromBase64:zt,_parseEpochTimestamp:Ce}=te(),{hasOwn:B,getSmithyContext:Qi}=$e(),{HttpRequest:Gi,collectBody:Wi,SerdeContext:Ie,RpcProtocol:Xi}=j(),{NormalizedSchema:V,deref:Ji,TypeRegistry:on}=Ee();function de(e){return typeof Buffer<"u"?Buffer.alloc(e):new Uint8Array(e)}var Re=Symbol("@smithy/core/cbor::tagSymbol");function Ot(e){return e[Re]=!0,e}var Sn=typeof Buffer<"u",Lt=new TextDecoder,_=de(0),$t=!1,F=new DataView(_.buffer,_.byteOffset,_.byteLength),x=0;function Zi(e){_=e,$t=Sn&&_ instanceof Buffer,F=new DataView(_.buffer,_.byteOffset,_.byteLength)}function X(e,t){if(e>=t)throw Error("unexpected end of (decode) payload.");let n=(_[e]&224)>>5,s=_[e]&31;if(s===31&&2<=n&&n<=5)return Yi(e,t);switch(n){case 0:case 1:case 6:{let o,i;if(s<24)o=s,i=1;else switch(s){case 24:if(t-e<2)K(1);o=_[e+1],i=2;break;case 25:if(t-e<3)K(2);o=F.getUint16(e+1),i=3;break;case 26:if(t-e<5)K(4);o=F.getUint32(e+1),i=5;break;case 27:if(t-e<9)K(8);{let c=F.getUint32(e+1);if(c<2097152)o=c*4294967296+F.getUint32(e+5);else o=F.getBigUint64(e+1)}i=9;break;default:Ft(s)}if(n===0)return x=i,Mt(o);else if(n===1){let c;if(typeof o==="bigint")c=BigInt(-1)-o;else c=-1-o;return x=i,Mt(c)}else return oo(e,t,s,o,i)}case 3:return Ae(e,t);case 5:return eo(e,t);case 4:return no(e,t);case 2:return Vt(e,t);default:return co(e,t)}}function Yi(e,t){let n=(_[e]&224)>>5;if((_[e]&31)===31)switch(n){case 3:return uo(e,t);case 5:return ao(e,t);case 4:return fo(e,t);case 2:return ho(e,t)}}function vi(e,t){let n=e>>7,s=(e&124)>>2,o=(e&3)<<8|t,i=n===0?1:-1;if(s===0){if(o===0)return 0;return i*(Math.pow(2,-14)*(o/1024))}else if(s===31){if(o===0)return i*(1/0);return NaN}return i*(Math.pow(2,s-15)*(1+o/1024))}function eo(e,t){let n=Me(e,t);if(n<25)return ro(e,t,n);return to(e,t,n)}function to(e,t,n){let s=x;e+=s;let o=e,i=Object.create(null);for(let c=0;c<n;++c){let a=Ae(e,t);if(e+=x,(_[e]&224)>>5===3)i[a]=Ae(e,t);else i[a]=X(e,t);e+=x}return x=s+(e-o),Object.setPrototypeOf(i,Object.prototype),i}function ro(e,t,n){let s=x;e+=s;let o=e,i={};for(let c=0;c<n;++c){let a=Ae(e,t);e+=x,i[a]=X(e,t),e+=x}return x=s+(e-o),i}function no(e,t){let n=Me(e,t),s=x;e+=s;let o=e,i=Array(n);for(let c=0;c<n;++c)i[c]=X(e,t),e+=x;return x=s+(e-o),i}function Ae(e,t){let n=Me(e,t),s=x;if(e+=s,t-e<n)K(n);if(x=s+n,n<24)return io(e,n);if($t)return _.toString("utf-8",e,e+n);return Lt.decode(_.subarray(e,e+n))}var cn=Array(2048),At=new Uint16Array(2048),xe=0;function so(){xe=xe+1&65535}function io(e,t){let n=t;for(let c=0;c<t;++c)n=n*31+_[e+c]|0;let s=n>>>0&2047,o=cn[s];if(o!==void 0){if(o.length===t){let c=!0;for(let a=0;a<t;++a)if(o.charCodeAt(a)!==_[e+a]){c=!1;break}if(c)return At[s]=xe,o}}let i=$t?_.toString("utf-8",e,e+t):Lt.decode(_.subarray(e,e+t));if(At[s]!==xe)cn[s]=i,At[s]=xe;return i}function Vt(e,t){let n=Me(e,t),s=x;if(e+=s,t-e<n)K(n);let o=_.subarray(e,e+n);return x=s+n,o}function oo(e,t,n,s,o){if(n===2||n===3){let i=Me(e+o,t),c=BigInt(0),a=e+o+x;for(let f=a;f<a+i;++f)c=c<<BigInt(8)|BigInt(_[f]);return x=o+x+i,n===3?-c-BigInt(1):c}else if(n===4){let i=X(e+o,t),[c,a]=i,f=a<0?-1:1,u=BigInt(f)*BigInt(a),h=String(u),l=a<0?"-":"",d;if(typeof c==="number"&&Math.abs(c)<=268435456){let y=c,g="0".repeat(Math.abs(y)+1)+h;if(d=y===0?g:g.slice(0,g.length+y)+"."+g.slice(y),d=d.replace(/^0+/g,""),d==="")d="0";if(d[0]===".")d="0"+d;d=l+d}else{let y=BigInt(c);if(h.length===1)d=l+h+"e"+String(y);else{let g=y+BigInt(h.length-1);d=l+h[0]+"."+h.slice(1)+"e"+String(g)}}return x=o+x,pn(d)}else{let i=X(e+o,t);return x=o+x,Ot({tag:Mt(s),value:i})}}function co(e,t){let n=_[e]&31;switch(n){case 21:case 20:return x=1,n===21;case 22:return x=1,null;case 23:return x=1,null;case 25:if(t-e<3)throw Error("incomplete float16 at end of buf.");return x=3,vi(_[e+1],_[e+2]);case 26:if(t-e<5)throw Error("incomplete float32 at end of buf.");return x=5,F.getFloat32(e+1);case 27:if(t-e<9)throw Error("incomplete float64 at end of buf.");return x=9,F.getFloat64(e+1);default:Ft(n)}}function Me(e,t){let n=_[e]&31;if(n<24)return x=1,n;switch(n){case 24:if(t-e<2)K(1);return x=2,_[e+1];case 25:if(t-e<3)K(2);return x=3,F.getUint16(e+1);case 26:if(t-e<5)K(4);return x=5,F.getUint32(e+1);case 27:if(t-e<9)K(8);return x=9,lo(F.getBigUint64(e+1));default:Ft(n)}}function ao(e,t){e+=1;let n=e,s={};for(;e<t;){if(_[e]===255)return x=e-n+2,s;let o=Ae(e,t);e+=x,s[o]=X(e,t),e+=x}throw Error("expected break marker.")}function fo(e,t){e+=1;let n=[];for(let s=e;e<t;){if(_[e]===255)return x=e-s+2,n;n.push(X(e,t)),e+=x}throw Error("expected break marker.")}function uo(e,t){e+=1;let n=[];for(let s=e;e<t;){if(_[e]===255){let f=de(n.length);if(f.set(n,0),x=e-s+2,Sn)return f.toString("utf-8",0,f.length);return Lt.decode(f)}let o=(_[e]&224)>>5,i=_[e]&31;if(o!==3)wn(o);if(i===31)throw Error("nested indefinite string.");let c=Vt(e,t);e+=x;for(let f=0;f<c.length;++f)n.push(c[f])}throw Error("expected break marker.")}function ho(e,t){e+=1;let n=[];for(let s=e;e<t;){if(_[e]===255){let f=de(n.length);return f.set(n,0),x=e-s+2,f}let o=(_[e]&224)>>5,i=_[e]&31;if(o!==2)wn(o);if(i===31)throw Error("nested indefinite string.");let c=Vt(e,t);e+=x;for(let f=0;f<c.length;++f)n.push(c[f])}throw Error("expected break marker.")}function Mt(e){if(typeof e==="number")return e;let t=Number(e);if(Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER)return t;return e}function lo(e){let t=Number(e);if(t<Number.MIN_SAFE_INTEGER||Number.MAX_SAFE_INTEGER<t)console.warn(Error(`@smithy/core/cbor - truncating BigInt(${e}) to ${t} with loss of precision.`));return t}function K(e){throw Error(`length ${e} greater than remaining buf len.`)}function Ft(e){throw Error(`unexpected minor value ${e}.`)}function wn(e){throw Error(`unexpected major type ${e} in indefinite string.`)}var mo=typeof Buffer<"u",ce=new Map,Ne=0,Bt=!1,go=2048,w=de(go),L=new DataView(w.buffer,w.byteOffset,w.byteLength),p=0;function po(e){let t=[e];while(t.length){let n=t.pop();if(typeof n==="string"){let s=n.length;if(mo)if(ae(s*3+9),s>23)Tt(3,Buffer.byteLength(n)),p+=w.write(n,p);else So(n);else{let o=s*3;ae(o+9);let i=p,a=new TextEncoder().encodeInto(n,w.subarray(p+9)).written,f;if(a<24)f=1;else if(a<256)f=2;else if(a<65536)f=3;else if(a<4294967296)f=5;else f=9;if(f<9)w.copyWithin(i+f,i+9,i+9+a);p=i,re(3,a),p+=a}continue}if(w.byteLength-p<9)ae(64);if(typeof n==="number"){if(Number.isInteger(n)&&n>=-9007199254740992&&n<=9007199254740991){let s=n>=0,o=s?0:1,i=s?n:-n-1;if(i<24)w[p++]=o<<5|i;else if(i<256)w[p++]=o<<5|24,w[p++]=i;else if(i<65536)w[p++]=o<<5|25,w[p++]=i>>8,w[p++]=i&255;else if(i<4294967296)w[p++]=o<<5|26,L.setUint32(p,i),p+=4;else{w[p++]=o<<5|27;let c=i/4294967296|0,a=i-c*4294967296|0;L.setUint32(p,c),L.setUint32(p+4,a),p+=8}continue}w[p++]=251,L.setFloat64(p,n),p+=8;continue}else if(typeof n==="bigint"){let s=n>=0,o=s?0:1,i=s?n:-n-BigInt(1);if(i<BigInt("18446744073709551616")){let c=Number(i);if(c<4294967296)re(o,c);else w[p++]=o<<5|27,L.setBigUint64(p,i),p+=8}else{let c=i.toString(2),a=new Uint8Array(Math.ceil(c.length/8)),f=i,u=0;while(a.byteLength-++u>=0)a[a.byteLength-u]=Number(f&BigInt(255)),f>>=BigInt(8);ae(a.byteLength*2+16),w[p++]=s?194:195,Tt(2,a.byteLength),w.set(a,p),p+=a.byteLength}continue}else if(n===null){w[p++]=246;continue}else if(typeof n==="boolean"){w[p++]=224|(n?21:20);continue}else if(typeof n>"u")throw Error("@smithy/core/cbor: client may not serialize undefined value.");else if(Array.isArray(n)){re(4,n.length),ae(n.length*9+64);for(let s=n.length-1;s>=0;--s)t.push(n[s]);continue}else if(typeof n.byteLength==="number"){ae(n.length*2+9),re(2,n.length),w.set(n,p),p+=n.byteLength;continue}else if(typeof n==="object"){if(n instanceof Te){let i=n.string,c=BigInt(0),a=i.search(/[eE]/);if(a!==-1)c=BigInt(i.slice(a+1)),i=i.slice(0,a);let f=i.indexOf("."),u=f===-1?0:i.length-f-1,h=c-BigInt(u),l=BigInt(i.replace(".",""));w[p++]=196,re(4,2),t.push(l),t.push(h>=-0x20000000000000n&&h<=0x1fffffffffffffn?Number(h):h);continue}if(n[Re])if("tag"in n&&"value"in n){t.push(n.value),Tt(6,n.tag);continue}else throw Error("tag encountered with missing fields, need 'tag' and 'value', found: "+JSON.stringify(n));let s=Object.keys(n),o=s.length;re(5,o);for(let i=o-1;i>=0;--i)t.push(n[s[i]]),t.push(s[i]);continue}throw Error(`data type ${n?.constructor?.name??typeof n} not compatible for encoding.`)}}function yo(){Ne=Ne+1&65535,Bt=!1}function an(){let e=de(p);return e.set(w.subarray(0,p),0),p=0,e}function Ut(e){let t=w;if(w=de(e),t)if(t.copy)t.copy(w,0,0,t.byteLength);else w.set(t,0);L=new DataView(w.buffer,w.byteOffset,w.byteLength)}function So(e){let t=ce.get(e);if(t!==void 0){w.set(t.bytes,p),p+=t.bytes.length,t.epoch=Ne;return}let n=p,s=Buffer.byteLength(e);re(3,s),p+=w.write(e,p);let o=Uint8Array.prototype.slice.call(w,n,p);if(ce.size>=2048){if(Bt)return;let i=0;for(let[c,a]of ce){if(i>=1024)break;if(a.epoch!==Ne)ce.delete(c),i++}if(i===0){Bt=!0;return}}if(ce.size<2048)ce.set(e,{epoch:Ne,bytes:o})}function ae(e){if(w.byteLength-p<e)if(p<16000000)Ut(Math.max(w.byteLength*4,w.byteLength+e));else Ut(w.byteLength+e+16000000)}function Tt(e,t){if(t<24)w[p++]=e<<5|t;else if(t<256)w[p++]=e<<5|24,w[p++]=t;else if(t<65536)w[p++]=e<<5|25,L.setUint16(p,t),p+=2;else if(t<4294967296)w[p++]=e<<5|26,L.setUint32(p,t),p+=4;else w[p++]=e<<5|27,L.setBigUint64(p,typeof t==="bigint"?t:BigInt(t)),p+=8}function re(e,t){if(t<24)w[p++]=e<<5|t;else if(t<256)w[p++]=e<<5|24,w[p++]=t;else if(t<65536)w[p++]=e<<5|25,w[p++]=t>>8,w[p++]=t&255;else if(t<4294967296)w[p++]=e<<5|26,L.setUint32(p,t),p+=4;else{w[p++]=e<<5|27;let n=t/4294967296|0,s=t-n*4294967296|0;L.setUint32(p,n),L.setUint32(p+4,s),p+=8}}var We={deserialize(e){return so(),Zi(e),X(0,e.length)},serialize(e){yo();try{return po(e),an()}catch(t){throw an(),t}},resizeEncodingBuffer(e){Ut(e)}},bn=(e,t)=>Wi(e,t).then(async(n)=>{if(n.length)try{return We.deserialize(n)}catch(s){throw Object.defineProperty(s,"$responseBodyText",{value:t.utf8Encoder(n)}),s}return{}}),He=(e)=>Ot({tag:1,value:e.getTime()/1000}),wo=async(e,t)=>{let n=await bn(e,t);return n.message=n.message??n.Message,n},xn=(e,t)=>{let n=(s)=>{let o=s;if(typeof o==="number")o=o.toString();if(o.indexOf(",")>=0)o=o.split(",")[0];if(o.indexOf(":")>=0)o=o.split(":")[0];return o};if(t.__type!==void 0)return n(t.__type)},bo=(e)=>{if(String(e.headers["smithy-protocol"]).toLowerCase()!=="rpc-v2-cbor")throw Error("Malformed RPCv2 CBOR response, status: "+e.statusCode)},xo=async(e,t,n,s,o)=>{let i=await e.endpoint(),{hostname:c,protocol:a="https",port:f,path:u}=i,h={protocol:a,hostname:c,port:f,method:"POST",path:u.endsWith("/")?u.slice(0,-1)+n:u+n,headers:{...t}};if(s!==void 0)h.hostname=s;if(i.headers)for(let l in i.headers){if(!B(i.headers,l))continue;h.headers[l]=i.headers[l]}if(o!==void 0){h.body=o;try{h.headers["content-length"]=String(qi(o))}catch(l){}}return new Gi(h)};class Pt extends Ie{write(e,t){b=0;let n=V.of(e);ue(n,t,void 0,this.serdeContext)}flush(){let e=N.subarray(0,b);return b=0,N=En(Dt),ne=new DataView(N.buffer,N.byteOffset,N.byteLength),e}}var fn=Symbol.for("@smithy/cbor-struct-cache");function Ht(e){let t=e.getSchema(),n=t[fn];if(n)return n;let s=[],o=[];for(let[a,f]of e.structIterator())s.push(a),o.push(f);let i=Array(s.length);for(let a=0;a<s.length;++a)i[a]=Eo(s[a]);let c={memberNames:s,memberSchemas:o,encodedKeys:i};return t[fn]=c,c}function Eo(e){let t;if(Xe)t=Buffer.from(e,"utf-8");else t=new TextEncoder().encode(e);let n=t.length,s;if(n<24)s=1;else if(n<256)s=2;else s=3;let o=new Uint8Array(s+n);if(s===1)o[0]=96|n;else if(s===2)o[0]=120,o[1]=n;else o[0]=121,o[1]=n>>8,o[2]=n&255;return o.set(t,s),o}var Xe=typeof Buffer<"u",No=new TextEncoder,Dt=2048,N=Xe?Buffer.allocUnsafe(Dt):new Uint8Array(Dt),ne=new DataView(N.buffer,N.byteOffset,N.byteLength),b=0,un=2048,fe=new Map,It=0,hn=!1;function En(e){return Xe?Buffer.allocUnsafe(e):new Uint8Array(e)}function ue(e,t,n,s){if(t==null){if(t===void 0&&e.isIdempotencyToken()){q(yn());return}C(1),N[b++]=246;return}if(e.isUnitSchema()){C(1),R(5,0);return}if(typeof t==="object"){if(e.isBlobSchema()){if(t instanceof Uint8Array){Ke(t);return}}if(e.isTimestampSchema()){if(t instanceof Date){jt(t);return}}if(e.isStructSchema()){_o(e,t,s);return}if(Array.isArray(t)&&(e.isListSchema()||e.isDocumentSchema())){ln(e,t,e.isDocumentSchema(),s);return}if(e.isMapSchema()){kt(e,t,!1,s);return}if(t instanceof Date){jt(t);return}if(t instanceof Uint8Array){Ke(t);return}if(t instanceof Te){Cn(t);return}if(t[Re]){let i=t;_n(i.tag,i.value);return}if(e.isDocumentSchema()){if(Array.isArray(t))ln(e,t,!0,s);else kt(e,t,!0,s);return}if(e.isBigDecimalSchema()){he(t);return}kt(e,t,!0,s);return}if(typeof t==="string"){if(e.isBlobSchema()){let i=(s?.base64Decoder??zt)(t);Ke(i);return}q(t);return}if(typeof t==="number"){if(C(9),Number.isInteger(t)&&t>=-9007199254740992&&t<=9007199254740991)Je(t);else Kt(t);return}if(typeof t==="boolean"){C(1),N[b++]=224|(t?21:20);return}if(typeof t==="bigint"){Qe(t);return}q(String(t))}function _o(e,t,n){if(e.isUnionSchema()){let l=!1;for(let[d,m]of e.structIterator()){let y=t[d];if(y!=null){C(9),R(5,1),q(d),ue(m,y,e,n),l=!0;break}}if(!l){let{$unknown:d}=t;if(Array.isArray(d))C(9),R(5,1),q(d[0]),he(d[1]);else C(9),R(5,0)}return}let s=Ht(e),{memberNames:o,memberSchemas:i,encodedKeys:c}=s,a=o.length,f;if(a<24)f=1;else if(a<256)f=2;else f=3;C(f);let u=b;b+=f;let h=0;for(let l=0;l<a;++l){let d=t[o[l]];if(d==null&&!i[l].isIdempotencyToken())continue;let m=c[l];C(m.length),N.set(m,b),b+=m.length,ue(i[l],d,e,n),++h}if(typeof t.__type==="string")for(let l in t){if(!B(t,l))continue;if(!o.includes(l))q(l),he(t[l]),++h}if(f===1)N[u]=160|h;else if(f===2)N[u]=184,N[u+1]=h;else N[u]=185,N[u+1]=h>>8,N[u+2]=h&255}function ln(e,t,n,s){let o=!!e.getMergedTraits().sparse,i=e.getValueSchema();if(n||o){let c=[];for(let a=0;a<t.length;++a){let f=t[a];if(n){if(f!==void 0)c.push(f)}else if(f!=null||o)c.push(f)}C(9),R(4,c.length);for(let a=0;a<c.length;++a)ue(i,c[a],void 0,s)}else{let c=0;for(let a=0;a<t.length;++a)if(t[a]!=null)++c;C(9),R(4,c);for(let a=0;a<t.length;++a)if(t[a]!=null)ue(i,t[a],void 0,s)}}function kt(e,t,n,s){let o=!!e.getMergedTraits().sparse,i=e.getValueSchema(),c=[];for(let a in t){if(!B(t,a))continue;let f=t[a];if(n?f!==void 0:f!=null||o)c.push(a)}C(9),R(5,c.length);for(let a=0;a<c.length;++a){let f=c[a];q(f),ue(i,t[f],void 0,s)}}function he(e){if(e==null){C(1),N[b++]=246;return}if(typeof e==="string"){q(e);return}if(typeof e==="number"){if(C(9),Number.isInteger(e)&&e>=-9007199254740992&&e<=9007199254740991)Je(e);else Kt(e);return}if(typeof e==="boolean"){C(1),N[b++]=224|(e?21:20);return}if(typeof e==="bigint"){Qe(e);return}if(e instanceof Uint8Array){Ke(e);return}if(e instanceof Date){jt(e);return}if(e instanceof Te){Cn(e);return}if(e[Re]){let t=e;_n(t.tag,t.value);return}if(Array.isArray(e)){C(9),R(4,e.length);for(let t=0;t<e.length;++t)he(e[t]);return}if(typeof e==="object"){let t=Object.keys(e);C(9),R(5,t.length);for(let n=0;n<t.length;++n)q(t[n]),he(e[t[n]]);return}q(String(e))}function C(e){if(b+e>N.length){let t=N.length*2;while(t<b+e)t*=2;let n=En(t);n.set(N.subarray(0,b)),N=n,ne=new DataView(n.buffer,n.byteOffset,n.byteLength)}}function R(e,t){if(t<24)N[b++]=e<<5|t;else if(t<256)N[b++]=e<<5|24,N[b++]=t;else if(t<65536)N[b++]=e<<5|25,N[b++]=t>>8,N[b++]=t&255;else if(t<4294967296)N[b++]=e<<5|26,ne.setUint32(b,t),b+=4;else{N[b++]=e<<5|27;let n=t/4294967296|0,s=t-n*4294967296|0;ne.setUint32(b,n),ne.setUint32(b+4,s),b+=8}}function Nn(e,t){let n=Number(t);if(n<4294967296){R(e,n);return}N[b++]=e<<5|27,ne.setBigUint64(b,t),b+=8}function q(e){let t=e.length;if(t<=23){let n=fe.get(e);if(n){C(n.bytes.length),N.set(n.bytes,b),b+=n.bytes.length,n.epoch=It;return}let s=b;dn(e,t);let o=b,i=Uint8Array.prototype.slice.call(N,s,o);if(fe.size>=un){if(hn)return;let c=0;for(let[a,f]of fe){if(c>=1024)break;if(f.epoch!==It)fe.delete(a),++c}if(c===0){hn=!0;return}}if(fe.size<un)fe.set(e,{epoch:It,bytes:i});return}dn(e,t)}function dn(e,t){if(Xe){let n=t*3;C(n+9);let s=Buffer.byteLength(e);R(3,s),b+=N.write(e,b)}else{let n=t*3;C(n+9);let s=b,i=No.encodeInto(e,N.subarray(s+9)).written,c;if(i<24)c=1;else if(i<256)c=2;else if(i<65536)c=3;else if(i<4294967296)c=5;else c=9;if(c<9)N.copyWithin(s+c,s+9,s+9+i);b=s,R(3,i),b+=i}}function Kt(e){C(9),N[b++]=251,ne.setFloat64(b,e),b+=8}function Je(e){C(9);let t=e>=0,n=t?0:1,s=t?e:-e-1;R(n,s)}function Qe(e){let t=e>=0,n=t?0:1,s=t?e:-e-BigInt(1);if(s<BigInt("18446744073709551616"))C(9),Nn(n,s);else{let o=s.toString(2),i=Math.ceil(o.length/8),c=new Uint8Array(i),a=s;for(let f=i-1;f>=0;--f)c[f]=Number(a&BigInt(255)),a>>=BigInt(8);C(i+16),N[b++]=t?194:195,R(2,i),N.set(c,b),b+=i}}function Ke(e){C(e.length+9),R(2,e.length),N.set(e,b),b+=e.length}function _n(e,t){if(C(9),typeof e==="bigint")Nn(6,e);else R(6,e);he(t)}function Cn(e){let t=e.string,n=BigInt(0),s=t.search(/[eE]/);if(s!==-1)n=BigInt(t.slice(s+1)),t=t.slice(0,s);let o=t.indexOf("."),i=o===-1?0:t.length-o-1,c=n-BigInt(i),a=BigInt(t.replace(".",""));if(C(9),N[b++]=196,R(4,2),C(9),c>=-0x20000000000000n&&c<=0x1fffffffffffffn)Je(Number(c));else Qe(c);Qe(a)}function jt(e){C(18),R(6,1);let t=e.getTime()/1000;if(Number.isInteger(t))Je(t);else Kt(t)}class qt extends Ie{read(e,t){return I=t,Gt=An&&t instanceof Buffer,W=new DataView(t.buffer,t.byteOffset,t.byteLength),S=0,k=t.length,_e=_e+1&65535,O(V.of(e))}readValue(e,t){return qe(V.of(e),t)}}var An=typeof Buffer<"u",Qt=new TextDecoder,I=new Uint8Array(0),Gt=!1,W=new DataView(new ArrayBuffer(0)),S=0,k=0,Wt=2048,mn=Array(Wt),Rt=new Uint16Array(Wt),_e=0;function O(e){if(S>=k)throw Error("unexpected end of CBOR payload.");let t=(I[S]&224)>>5;if((I[S]&31)===31&&t>=2&&t<=5)return ko(e,t);switch(t){case 0:return Do();case 1:return jo();case 2:return ve();case 3:return le();case 4:return Co(e);case 5:return Ao(e);case 6:return Io();case 7:return Oo();default:throw Error(`unexpected CBOR major type ${t}.`)}}function Co(e){let t=Ye(),n=e.isListSchema()?e.getValueSchema():e,s=Array(t);for(let o=0;o<t;++o)s[o]=O(n);return s}function Ao(e){let t=Ye();if(e.isStructSchema())return To(e,t,S);let n=e.isMapSchema()?e.getValueSchema():e,s={};for(let o=0;o<t;++o){let i=le();s[i]=O(n)}return s}function To(e,t,n){let s=e.isUnionSchema(),o=Ht(e),{memberSchemas:i,encodedKeys:c,memberNames:a}=o,f=c.length,u={},h,l,d=0,m=!1,y=0;for(let g=0;g<t;++g){let E=Tn(c,f,y);if(E>=0){if(y=E+1,y>=f)y=0;let T=O(i[E]);if(T!=null)u[a[E]]=T}else{let T=le(),D=O(V.of(15));if(T==="__type"&&typeof D==="string")m=!0;else h=T,l=D,++d}}if(s){let g=!0;for(let E in u){if(!B(u,E))continue;g=!1;break}if(g&&d===1)u.$unknown=[h,l]}else if(m){S=n;let g=V.of(15);for(let E=0;E<t;++E){let T=le(),D=O(g);if(!(T in u))u[T]=D}}return u}function Io(e){let t=Ze(),n=typeof t==="bigint"?Number(t):t;if(n===1){let i=V.of(15),c=O(i);return Ce(c)}if(n===2||n===3){let i=ve(),c=BigInt(0);for(let a=0;a<i.length;++a)c=c<<BigInt(8)|BigInt(i[a]);return n===3?-c-BigInt(1):c}if(n===4){let i=V.of(15),c=O(i),[a,f]=c,u=f<0?-1:1,h=BigInt(u)*BigInt(f),l=String(h),d=f<0?"-":"",m;if(typeof a==="number"&&Math.abs(a)<=268435456){let g=a,E="0".repeat(Math.abs(g)+1)+l;if(m=g===0?E:E.slice(0,E.length+g)+"."+E.slice(g),m=m.replace(/^0+/g,""),m==="")m="0";if(m[0]===".")m="0"+m;m=d+m}else{let g=BigInt(a);if(l.length===1)m=d+l+"e"+String(g);else{let E=g+BigInt(l.length-1);m=d+l[0]+"."+l.slice(1)+"e"+String(E)}}return pn(m)}let s=V.of(15),o=O(s);return{tag:In(t),value:o}}function ko(e,t){switch(t){case 3:return Ro();case 2:return Mo();case 4:return Bo(e);case 5:return Uo(e);default:throw Error(`unexpected indefinite length for major ${t}.`)}}function Ro(){S+=1;let e=[],t=0;while(S<k){if(I[S]===255){S+=1;let s=new Uint8Array(t),o=0;for(let i=0;i<e.length;++i)s.set(e[i],o),o+=e[i].length;if(An)return Buffer.from(s.buffer,s.byteOffset,s.byteLength).toString("utf-8");return Qt.decode(s)}let n=ve();e.push(n),t+=n.length}throw Error("expected break marker.")}function Mo(){S+=1;let e=[],t=0;while(S<k){if(I[S]===255){S+=1;let s=new Uint8Array(t),o=0;for(let i=0;i<e.length;++i)s.set(e[i],o),o+=e[i].length;return s}let n=ve();e.push(n),t+=n.length}throw Error("expected break marker.")}function Bo(e){S+=1;let t=e.isListSchema()?e.getValueSchema():e,n=[];while(S<k){if(I[S]===255)return S+=1,n;n.push(O(t))}throw Error("expected break marker.")}function Uo(e){if(S+=1,e.isStructSchema()){let s=Ht(e),{memberSchemas:o,encodedKeys:i,memberNames:c}=s,a=i.length,f=e.isUnionSchema(),u={},h,l,d=0,m=0;while(S<k){if(I[S]===255){if(S+=1,f){let g=!0;for(let E in u){if(!B(u,E))continue;g=!1;break}if(g&&d===1)u.$unknown=[h,l]}return u}let y=Tn(i,a,m);if(y>=0){if(m=y+1,m>=a)m=0;let g=O(o[y]);if(g!=null)u[c[y]]=g}else{let g=le(),E=O(V.of(15));if(g!=="__type")h=g,l=E,++d}}throw Error("expected break marker.")}let t=e.isMapSchema()?e.getValueSchema():e,n={};while(S<k){if(I[S]===255)return S+=1,n;let s=le();n[s]=O(t)}throw Error("expected break marker.")}function Tn(e,t,n){let s=e[n];if(S+s.length<=k&&gn(S,s))return S+=s.length,n;for(let o=0;o<t;++o){if(o===n)continue;let i=e[o];if(S+i.length<=k&&gn(S,i))return S+=i.length,o}return-1}function gn(e,t){let n=t.length;if(I[e]!==t[0])return!1;for(let s=1;s<n;++s)if(I[e+s]!==t[s])return!1;return!0}function Ze(){let e=I[S]&31;if(e<24)return S+=1,e;switch(e){case 24:if(k-S<2)G(1);return S+=2,I[S-1];case 25:if(k-S<3)G(2);return S+=3,W.getUint16(S-2);case 26:if(k-S<5)G(4);return S+=5,W.getUint32(S-4);case 27:{if(k-S<9)G(8);S+=9;let t=W.getUint32(S-8);if(t<2097152)return t*4294967296+W.getUint32(S-4);return W.getBigUint64(S-8)}default:throw Error(`unexpected minor value ${e}.`)}}function Ye(){let e=Ze();return typeof e==="bigint"?Number(e):e}function Do(){let e=Ze();return In(e)}function jo(){let e=Ze();if(typeof e==="bigint")return BigInt(-1)-e;return-1-e}function ve(){let e=Ye();if(k-S<e)G(e);let t=S;return S+=e,I.subarray(t,t+e)}function le(){let e=Ye();if(k-S<e)G(e);let t=S;if(S+=e,e<24)return zo(t,e);if(Gt)return I.toString("utf-8",t,t+e);return Qt.decode(I.subarray(t,t+e))}function zo(e,t){let n=t;for(let c=0;c<t;++c)n=n*31+I[e+c]|0;let s=n>>>0&Wt-1,o=mn[s];if(o!==void 0&&o.length===t){let c=!0;for(let a=0;a<t;++a)if(o.charCodeAt(a)!==I[e+a]){c=!1;break}if(c)return Rt[s]=_e,o}let i=Gt?I.toString("utf-8",e,e+t):Qt.decode(I.subarray(e,e+t));if(Rt[s]!==_e)mn[s]=i,Rt[s]=_e;return i}function Oo(){let e=S,t=I[e]&31;switch(t){case 21:return S=e+1,!0;case 20:return S=e+1,!1;case 22:return S=e+1,null;case 23:return S=e+1,null;case 25:{if(k-e<3)G(2);return S=e+3,Lo(I[e+1],I[e+2])}case 26:{if(k-e<5)G(4);return S=e+5,W.getFloat32(e+1)}case 27:{if(k-e<9)G(8);return S=e+9,W.getFloat64(e+1)}default:throw Error(`unexpected minor value ${t} for major 7.`)}}function Lo(e,t){let n=e>>7,s=(e&124)>>2,o=(e&3)<<8|t,i=n===0?1:-1;if(s===0){if(o===0)return 0;return i*(Math.pow(2,-14)*(o/1024))}else if(s===31){if(o===0)return i*(1/0);return NaN}return i*(Math.pow(2,s-15)*(1+o/1024))}function In(e){if(typeof e==="number")return e;let t=Number(e);if(Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER)return t;return e}function G(e){throw Error(`CBOR: length ${e} greater than remaining buffer length.`)}function qe(e,t){if(e.isTimestampSchema()){if(typeof t==="number")return Ce(t);if(typeof t==="object"&&t!==null){if(t.tag===1&&"value"in t)return Ce(t.value)}}if(e.isBlobSchema())return t;if(typeof t>"u"||typeof t==="boolean"||typeof t==="number"||typeof t==="string"||typeof t==="bigint"||typeof t==="symbol")return t;if(typeof t!=="object"||t===null)return t;if("byteLength"in t)return t;if(t instanceof Date)return t;if(t instanceof Te)return t;if(e.isDocumentSchema())return t;if(e.isListSchema()){let s=e.getValueSchema(),o=[];for(let i of t)o.push(qe(s,i));return o}let n={};if(e.isMapSchema()){let s=e.getValueSchema();for(let o in t){if(!B(t,o))continue;n[o]=qe(s,t[o])}}else if(e.isStructSchema()){let s=e.isUnionSchema(),o;if(s){o=new Set;for(let i in t){if(!B(t,i))continue;if(i!=="__type")o.add(i)}}for(let[i,c]of e.structIterator()){if(s)o.delete(i);if(t[i]!=null)n[i]=qe(c,t[i])}if(s&&o?.size===1){let i=!0;for(let c in n){if(!B(n,c))continue;i=!1;break}if(i){let c=o.values().next().value;n.$unknown=[c,t[c]]}}else if(typeof t.__type==="string")for(let i in t){if(!B(t,i))continue;if(!(i in n))n[i]=t[i]}}return n}class Xt extends Ie{createSerializer(){let e=new Pt;return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new qt;return e.setSerdeContext(this.serdeContext),e}}class kn extends Xi{codec=new Xt;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(e,t,n){let s=await super.serializeRequest(e,t,n);if(Object.assign(s.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()}),Ji(e.input)==="unit")delete s.body,delete s.headers["content-type"];else{if(!s.body)this.serializer.write(15,{}),s.body=this.serializer.flush();if(s.body instanceof Uint8Array)s.headers["content-length"]=String(s.body.byteLength)}let{service:o,operation:i}=Qi(n),c=`/service/${o}/operation/${i}`;if(s.path.endsWith("/"))s.path+=c.slice(1);else s.path+=c;return s}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,s,o){let i=xn(n,s)??"Unknown",c=["*"],{defaultNamespace:a}=this.options;c.unshift(a);let[f,u]=(()=>{if(i.includes("#"))return i.split("#");return[void 0,i]})();if(f)c.unshift(f);let h={$metadata:o,$fault:n.statusCode<500?"client":"server"},l=[this.compositeErrorRegistry];if(f)l.push(on.for(f));l.push(on.for(a));let[d,m,y]=this.resolveError(u,c,l);if(y==="native"||y==="synthetic"){if(s.Message)s.message=s.Message;let z=y==="synthetic"?new m({name:u}):Error(u);throw Object.assign(z,h,s)}let g=V.of(d),E=s.message??s.Message??"Unknown",T=new m({}),D={};for(let[z,Z]of g.structIterator())D[z]=this.deserializer.readValue(Z,s[z]);throw Object.assign(T,h,{$fault:g.getMergedTraits().error,message:E},D)}getDefaultContentType(){return"application/cbor"}}class Rn extends Ie{value;write(e,t){this.value=this.serialize(e,t)}serialize(e,t){let n=V.of(e);if(t==null){if(n.isIdempotencyToken())return yn();return t}if(n.isBlobSchema()){if(typeof t==="string")return(this.serdeContext?.base64Decoder??zt)(t);return t}if(n.isTimestampSchema()){if(typeof t==="number"||typeof t==="bigint")return He(new Date(Number(t)/1000|0));return He(t)}if(typeof t==="function"||typeof t==="object"){let s=t;if(n.isListSchema()&&Array.isArray(s)){let i=!!n.getMergedTraits().sparse,c=[],a=0;for(let f of s){let u=this.serialize(n.getValueSchema(),f);if(u!=null||i)c[a++]=u}return c}if(s instanceof Date)return He(s);let o={};if(n.isMapSchema()){let i=!!n.getMergedTraits().sparse;for(let c in s){if(!B(s,c))continue;let a=this.serialize(n.getValueSchema(),s[c]);if(a!=null||i)o[c]=a}}else if(n.isStructSchema()){for(let[c,a]of n.structIterator()){let f=this.serialize(a,s[c]);if(f!=null)o[c]=f}if(n.isUnionSchema()&&Array.isArray(s.$unknown)){let[c,a]=s.$unknown;o[c]=a}else if(typeof s.__type==="string")for(let c in s){if(!B(s,c))continue;if(!(c in o))o[c]=this.serialize(15,s[c])}}else if(n.isDocumentSchema()){if(Array.isArray(s)){let i=[],c=0;for(let a of s)i[c++]=this.serialize(n.getValueSchema(),a);return i}for(let i in s){if(!B(s,i))continue;o[i]=this.serialize(n.getValueSchema(),s[i])}}else if(n.isBigDecimalSchema())return s;return o}return t}flush(){let e=We.serialize(this.value);return this.value=void 0,e}}class Mn extends Ie{read(e,t){let n=We.deserialize(t);return this.readValue(e,n)}readValue(e,t){let n=V.of(e);if(n.isTimestampSchema()){if(typeof t==="number")return Ce(t);if(typeof t==="object"){if(t.tag===1&&"value"in t)return Ce(t.value)}}if(n.isBlobSchema()){if(typeof t==="string")return(this.serdeContext?.base64Decoder??zt)(t);return t}if(typeof t>"u"||typeof t==="boolean"||typeof t==="number"||typeof t==="string"||typeof t==="bigint"||typeof t==="symbol")return t;else if(typeof t==="object"){if(t===null)return null;if("byteLength"in t)return t;if(t instanceof Date)return t;if(n.isDocumentSchema())return t;if(n.isListSchema()){let o=[],i=n.getValueSchema();for(let c of t){let a=this.readValue(i,c);o.push(a)}return o}let s={};if(n.isMapSchema()){let o=n.getValueSchema();for(let i in t){if(!B(t,i))continue;let c=this.readValue(o,t[i]);s[i]=c}}else if(n.isStructSchema()){let o=n.isUnionSchema(),i;if(o){i=new Set;for(let c in t){if(!B(t,c))continue;if(c!=="__type")i.add(c)}}for(let[c,a]of n.structIterator()){if(o)i.delete(c);if(t[c]!=null)s[c]=this.readValue(a,t[c])}if(o&&i?.size===1){let c=!0;for(let a in s){if(!B(s,a))continue;c=!1;break}if(c){let a=i.values().next().value;s.$unknown=[a,t[a]]}}else if(typeof t.__type==="string")for(let c in t){if(!B(t,c))continue;if(!(c in s))s[c]=t[c]}}else if(t instanceof Te)return t;return s}else return t}}$o.CborCodec=Xt;$o.CborShapeDeserializer=Mn;$o.CborShapeDeserializer2=qt;$o.CborShapeSerializer=Rn;$o.CborShapeSerializer2=Pt;$o.SmithyRpcV2CborProtocol=kn;$o.buildHttpRpcRequest=xo;$o.cbor=We;$o.checkCborResponse=bo;$o.dateToTag=He;$o.loadSmithyRpcV2CborErrorCode=xn;$o.parseCborBody=bn;$o.parseCborErrorBody=wo;$o.tag=Ot;$o.tagSymbol=Re});var Un=r(function(ac){var tc=/[&<>"]/g,rc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function nc(e){return e.replace(tc,(t)=>rc[t])}var sc=/[&"'<>\r\n\u0085\u2028]/g,ic={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;","\r":"&#x0D;","\n":"&#x0A;","\x85":"&#x85;","\u2028":"&#x2028;"};function oc(e){return e.replace(sc,(t)=>ic[t])}class Zt{value;constructor(e){this.value=e}toString(){return oc(""+this.value)}}class Be{name;children;attributes={};static of(e,t,n){let s=new Be(e);if(t!==void 0)s.addChildNode(new Zt(t));if(n!==void 0)s.withName(n);return s}constructor(e,t=[]){this.name=e,this.children=t}withName(e){return this.name=e,this}addAttribute(e,t){return this.attributes[e]=t,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,t){if(t!=null)this.attributes[e]=t;return this}cc(e,t,n=t){if(e[t]!=null){let s=Be.of(t,e[t]).withName(n);this.c(s)}}l(e,t,n,s){if(e[t]!=null)s().map((i)=>{i.withName(n),this.c(i)})}lc(e,t,n,s){if(e[t]!=null){let o=s(),i=new Be(n);o.map((c)=>{i.c(c)}),this.c(i)}}toString(){let e=Boolean(this.children.length),t=`<${this.name}`,n=this.attributes;for(let s of Object.keys(n)){let o=n[s];if(o!=null)t+=` ${s}="${nc(""+o)}"`}return t+=!e?"/>":`>${this.children.map((s)=>s.toString()).join("")}</${this.name}>`}}function Jt(e){Object.defineProperty(e,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}function cc(e){return new Yt(e).parse()}class Yt{x;i=0;z;constructor(e){this.x=e,this.x=e.replace(/\r\n?/g,`
14
- `),this.z=this.x.length}parse(){let e=this,{z:t}=e;while(e.i<t){if(e.trim(),e.i>=t)break;if(e.isNext("<?"))e.readTo("?>"),e.trim();else if(e.isNext("<!--"))e.readTo("-->"),e.trim();else if(e.isNext("<!DOCTYPE",!1))e.skipDoctype(),e.trim();else if(e.x[e.i]==="<"){let n=e.parseTag();return{[n.tag]:n.value}}else throw Error("@aws-sdk XML parse error: unexpected content.")}throw Error("@aws-sdk XML parse error: no root element.")}isNext(e,t=!0){let n=this;if(t)return n.x.startsWith(e,n.i);return n.x.toLowerCase().startsWith(e.toLowerCase(),n.i)}readTo(e){let t=this,n=t.x.indexOf(e,t.i);if(n===-1)throw Error(`@aws-sdk XML parse error: expected "${e}" not found.`);let s=t.x.slice(t.i,n);return t.i=n+e.length,s}trim(){let e=this;while(e.i<e.z&&` \r
15
- `.includes(e.x[e.i]))++e.i}readAttrValue(){let e=this,t=e.x[e.i];++e.i;let n="";while(e.i<e.z&&e.x[e.i]!==t)n+=e.x[e.i++];return++e.i,e.decodeEntities(n)}parseTag(){let e=this;++e.i;let t="";while(e.i<e.z&&!` \r
16
- >/`.includes(e.x[e.i]))t+=e.x[e.i++];let n=!1,s={};while(e.i<e.z){if(e.trim(),">/".includes(e.x[e.i]))break;let u="";while(e.i<e.z&&!`= \r
17
- >/?`.includes(e.x[e.i]))u+=e.x[e.i++];if(e.trim(),e.x[e.i]!=="=")break;if(++e.i,e.trim(),u==="__proto__")Jt(s);s[u]=e.readAttrValue(),n=!0}if(e.i>=e.z)throw Error("@aws-sdk XML parse error: unexpected end of input.");if(e.x[e.i]==="/"){if(++e.i,e.i>=e.z||e.x[e.i]!==">")throw Error("@aws-sdk XML parse error: expected > at the end of self-closing tag.");return++e.i,{tag:t,value:n?s:""}}if(e.x[e.i]!==">")throw Error("@aws-sdk XML parse error: expected > at the end of opening tag.");++e.i;let o=[],i=[],c=!1;while(e.i<e.z){if(e.isNext("</"))break;if(e.x[e.i]==="<")if(e.isNext("<!--"))e.readTo("-->");else if(e.isNext("<![CDATA["))e.i+=9,o.push(e.readTo("]]>"));else if(e.isNext("<?"))e.readTo("?>");else c=!0,i.push(e.parseTag());else{let u="";while(e.i<e.z&&e.x[e.i]!=="<")u+=e.x[e.i++];o.push(e.decodeEntities(u))}}if(!e.isNext("</"))throw Error(`@aws-sdk XML parse error: missing closing tag </${t}>.`);e.i+=2;let a=e.readTo(">").trim();if(a!==t)throw Error(`@aws-sdk XML parse error: mismatched tags <${t}> and </${a}>.`);if(!n&&o.length===0&&!c)return{tag:t,value:""};if(!n&&!c){let u=o.length===1?o[0]:o.join("");if(u.trim()===""&&u.includes(`
18
- `))return{tag:t,value:""};return{tag:t,value:u}}let f={};for(let u of o){if(u.trim()===""&&u.includes(`
19
- `))continue;f["#text"]="#text"in f?f["#text"]+u:u}for(let u of i){if(u.tag==="__proto__")Jt(f);if(u.tag in f)if(Array.isArray(f[u.tag]))f[u.tag].push(u.value);else f[u.tag]=[f[u.tag],u.value];else f[u.tag]=u.value}for(let[u,h]of Object.entries(s)){if(u==="__proto__")Jt(f);f[u]=h}return{tag:t,value:f}}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};skipDoctype(){let e=this;e.i+=9;let t=0;while(e.i<e.z){let n=e.x[e.i];if(n==="[")++t;else if(n==="]")--t;else if(n===">"&&t===0){++e.i;return}++e.i}throw Error("@aws-sdk XML parse error: unclosed DOCTYPE.")}decodeEntities(e){return e.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g,(t,n,s,o)=>{if(n)return String.fromCharCode(parseInt(n,16));if(s)return String.fromCharCode(parseInt(s,10));return Yt.ENTITIES[o]??""})}}ac.XmlNode=Be;ac.XmlText=Zt;ac.parseXML=cc});var ut=r(function(Rc){var{SmithyRpcV2CborProtocol:lc,loadSmithyRpcV2CborErrorCode:dc}=Bn(),{TypeRegistry:Dn,NormalizedSchema:A,deref:qn}=Ee(),{decorateServiceException:jn,getValueFromTextNode:Qn}=ee(),{collectBody:nt,determineTimestampFormat:pe,RpcProtocol:Gn,HttpBindingProtocol:Wn,HttpInterceptingShapeSerializer:Xn,HttpInterceptingShapeDeserializer:Jn,FromStringShapeDeserializer:mc,extendedEncodeURIComponent:zn}=j(),{NumericValue:M,toUtf8:sr,fromBase64:ir,LazyJsonString:ot,parseEpochTimestamp:Zn,parseRfc7231DateTime:Yn,parseRfc3339DateTimeWithOffset:vn,generateIdempotencyToken:ct,toBase64:ge,dateToUtcString:De,expectUnion:gc}=te(),{parseXML:es,XmlNode:P,XmlText:On}=Un();class ye{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){let n=t.getMemberSchemas(),s=Object.values(n).find((o)=>!!o.getMergedTraits().httpPayload);if(s){let o=s.getMergedTraits().mediaType;if(o)return o;else if(s.isStringSchema())return"text/plain";else if(s.isBlobSchema())return"application/octet-stream";else return e}else if(!t.isUnitSchema()){if(Object.values(n).find((i)=>{let{httpQuery:c,httpQueryParams:a,httpHeader:f,httpLabel:u,httpPrefixHeaders:h}=i.getMergedTraits();return!c&&!a&&!f&&!u&&h===void 0}))return e}}async getErrorSchemaOrThrowBaseException(e,t,n,s,o,i){let c=e;if(e.includes("#"))[,c]=e.split("#");let a={$metadata:o,$fault:n.statusCode<500?"client":"server"};if(!this.errorRegistry)throw Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:i?.(this.errorRegistry,c)??this.errorRegistry.getSchema(e),errorMetadata:a}}catch(f){s.message=s.message??s.Message??"UnknownError";let u=this.errorRegistry,h=u.getBaseException();if(h){let m=u.getErrorCtor(h)??Error;throw this.decorateServiceException(Object.assign(new m({name:c}),a),s)}let l=s,d=l?.message??l?.Message??l?.Error?.Message??l?.Error?.message;throw this.decorateServiceException(Object.assign(Error(d),{name:c},a),s)}}compose(e,t,n){let s=n;if(t.includes("#"))[s]=t.split("#");let o=Dn.for(s),i=Dn.for("smithy.ts.sdk.synthetic."+n);e.copyFrom(o),e.copyFrom(i),this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){let n=e.Message??t.Message,s=jn(e,t);if(n)s.message=n;let o=s.Error??{};o.Type=s.Error?.Type,o.Code=s.Error?.Code,o.Message=s.Error?.message??s.Error?.Message??n,s.Error=o;let i=s.$metadata.requestId;if(i)s.RequestId=i;return s}return jn(e,t)}setQueryCompatError(e,t){let n=t.headers?.["x-amzn-query-error"];if(e!==void 0&&n!=null){let[s,o]=n.split(";"),i=Object.keys(e),c={Code:s,Type:o};e.Code=s,e.Type=o;for(let a=0;a<i.length;a++){let f=i[a];c[f==="message"?"Message":f]=e[f]}delete c.__type,e.Error=c}}queryCompatOutput(e,t){if(e.Error)t.Error=e.Error;if(e.Type)t.Type=e.Type;if(e.Code)t.Code=e.Code}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch(n){return e.find((s)=>A.of(s).getMergedTraits().awsQueryError?.[0]===t)}}}class ts extends lc{awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:t,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:t});this.awsQueryCompatible=!!n,this.mixin=new ye(this.awsQueryCompatible)}async serializeRequest(e,t,n){let s=await super.serializeRequest(e,t,n);if(this.awsQueryCompatible)s.headers["x-amzn-query-mode"]="true";return s}async handleError(e,t,n,s,o){if(this.awsQueryCompatible)this.mixin.setQueryCompatError(s,n);let i=(()=>{let m=n.headers["x-amzn-query-error"];if(m&&this.awsQueryCompatible)return m.split(";")[0];return dc(n,s)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:a}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,s,o,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),f=A.of(c),u=s.message??s.Message??"UnknownError",l=new(this.compositeErrorRegistry.getErrorCtor(c)??Error)({}),d={};for(let[m,y]of f.structIterator())if(s[m]!=null)d[m]=this.deserializer.readValue(y,s[m]);if(this.awsQueryCompatible)this.mixin.queryCompatOutput(s,d);throw this.mixin.decorateServiceException(Object.assign(l,a,{$fault:f.getMergedTraits().error,message:u},d),s)}}class H{serdeContext;setSerdeContext(e){this.serdeContext=e}}class at{from;to;keys;constructor(e,t){this.from=e,this.to=t;let n=Object.keys(this.from),s=new Set(n);s.delete("__type"),this.keys=s}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}}var Ue;function rs(){if(Ue===void 0)try{if(typeof Buffer!=="function")Ue=!1;else{let e=JSON.parse(Buffer.from([123,125]));Ue=e!==null&&typeof e==="object"}}catch{Ue=!1}return Ue}function or(e,t,n){if(n?.source){let s=n.source;if(typeof t==="number")if(t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER){if(yc(s,t))return t;return new M(s,"bigDecimal")}else{if(pc(s))return new M(s,"bigDecimal");if(/[eE]/.test(s))return Sc(s);return BigInt(s)}}return t}function pc(e){let t=e.indexOf(".");if(t===-1)return!1;let n=e.search(/[eE]/);if(n===-1)return!0;let s=n-t-1;return parseInt(e.slice(n+1),10)<s}function yc(e,t){if(e===String(t))return!0;if(Object.is(t,-0))return!0;if(/[eE]/.test(e))return er(e)===er(String(t));let n=e.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),s=String(t);if(n===s)return!0;if(/[eE]/.test(s))return n===er(s);return!1}function er(e){let t=e.startsWith("-"),n=t?e.slice(1):e,s=n.search(/[eE]/),o;if(s===-1)o=n;else{let i=parseInt(n.slice(s+1),10),c=n.slice(0,s),a=c.indexOf("."),f,u;if(a===-1)f=c,u=c.length;else f=c.slice(0,a)+c.slice(a+1),u=a;f=f.replace(/0+$/,"")||"0";let h=u+i;if(f==="0")o="0";else if(h<=0)o="0."+"0".repeat(-h)+f;else if(h>=f.length)o=f+"0".repeat(h-f.length);else o=f.slice(0,h)+"."+f.slice(h)}if(o.includes("."))o=o.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"");return(t?"-":"")+o}function Sc(e){let t=e.search(/[eE]/),n=parseInt(e.slice(t+1),10),s=e.startsWith("-"),o=e.slice(s?1:0,t),i=o.indexOf("."),c,a;if(i===-1)c=o,a=n;else{c=o.slice(0,i)+o.slice(i+1);let u=o.length-i-1;a=n-u}c=c.replace(/0+$/,"")||"0";let f=BigInt(c)*10n**BigInt(a+(o.replace(".","").length-c.length));return s?-f:f}var tr=Symbol.for("@aws-sdk/reviver");function cr(e){let t=A.of(e),n=t.getSchema();if(Array.isArray(n)&&t.isStructSchema()){if(tr in n)return n[tr];let s=st(t,new Set);return n[tr]=s,s}return st(t,new Set)}function st(e,t){let n=e.getSchema();if(t.has(n))return!1;if(t.add(n),e.isBigIntegerSchema()||e.isBigDecimalSchema())return!0;if(e.isStructSchema()){for(let[,s]of e.structIterator())if(st(s,t))return!0}else if(e.isListSchema()||e.isMapSchema()){if(st(e.getValueSchema(),t))return!0}else if(e.isDocumentSchema())return!0;return!1}var ns=(e,t)=>nt(e,t).then((n)=>(t?.utf8Encoder??sr)(n));async function ft(e,t,n){let s;if(rs()&&typeof e?.[Symbol.asyncIterator]==="function"){let i=await nt(e,t);if(typeof Buffer==="function")if(Buffer.isBuffer(i))s=i;else s=Buffer.from(i.buffer,i.byteOffset,i.byteLength)}if(!s)s=await ns(e,t);if(s.length===0)return{};let o=n&&cr(n)?or:void 0;try{return JSON.parse(s,o)}catch(i){if(i?.name==="SyntaxError")Object.defineProperty(i,"$responseBodyText",{value:typeof s==="string"?s:s.toString("utf8")});throw i}}var wc=async(e,t)=>{let n=await ft(e,t);return n.message=n.message??n.Message,n},Ln=(e,t)=>Object.keys(e).find((n)=>n.toLowerCase()===t.toLowerCase()),rr=(e)=>{let t=e;if(typeof t==="number")t=t.toString();if(t.indexOf(",")>=0)t=t.split(",")[0];if(t.indexOf(":")>=0)t=t.split(":")[0];if(t.indexOf("#")>=0)t=t.split("#")[1];return t},ss=(e,t)=>os(e,t,["header","code","type"]),is=(e,t,n=!1)=>os(e,t,n?["code","header","type"]:["type","code","header"]),os=({headers:e},t,n)=>{while(n.length>0)switch(n.shift()){case"header":let o=Ln(e??{},"x-amzn-errortype");if(o!==void 0)return rr(e[o]);break;case"code":let i=Ln(t??{},"code");if(i&&t[i]!==void 0)return rr(t[i]);break;case"type":if(t?.__type!==void 0)return rr(t.__type);break}};function J(e){Object.defineProperty(e,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}class ar extends H{settings;constructor(e){super();this.settings=e}async read(e,t){let n=cr(e)?or:void 0,s;if(typeof t==="string"){if(t.length===0)return{};s=JSON.parse(t,n)}else if(t instanceof Uint8Array&&rs()){if(t.byteLength===0)return{};let o=Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength);s=JSON.parse(o,n)}else s=await ft(t,this.serdeContext,e);return this._read(e,s)}readObject(e,t){return this._read(e,t)}_read(e,t){let n=t!==null&&typeof t==="object",s=A.of(e);if(n){if(s.isStructSchema())return this._readStruct(s,t);if(Array.isArray(t)&&s.isListSchema()){let i=s.getValueSchema();if(this.needsTransform(i))for(let c=0;c<t.length;++c)t[c]=this._read(i,t[c]);return t}if(s.isMapSchema()){let i=s.getValueSchema(),c=t;if(this.needsTransform(i))for(let a in c){if(a==="__proto__")J(c);c[a]=this._read(i,c[a])}return c}}if(s.isBlobSchema()&&typeof t==="string")return ir(t);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof t==="string"&&o){if(o==="application/json"||o.endsWith("+json"))return ot.from(t);return t}if(s.isTimestampSchema()&&t!=null)switch(pe(s,this.settings)){case 5:return vn(t);case 6:return Yn(t);case 7:return Zn(t);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",t),new Date(t)}if(s.isBigIntegerSchema()&&(typeof t==="number"||typeof t==="string"))return BigInt(t);if(s.isBigDecimalSchema()&&t!=null){if(t instanceof M)return t;let i=t;if(i.type==="bigDecimal"&&"string"in i)return new M(i.string,i.type);return new M(String(t),"bigDecimal")}if(s.isNumericSchema()&&typeof t==="string"){switch(t){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return t}if(s.isDocumentSchema()){if(n)if(Array.isArray(t))for(let i=0;i<t.length;++i){let c=t[i];if(!(c instanceof M))t[i]=this._read(s,c)}else{let i=t;for(let c in i){if(c==="__proto__")J(i);let a=i[c];if(!(a instanceof M))i[c]=this._read(s,a)}}}return t}_readStruct(e,t){let n=e.isUnionSchema(),s={},o,i=typeof t.__type==="string",{jsonName:c}=this.settings;if(c&&i)o={};let a;if(n)a=new at(t,s);for(let[f,u]of e.structIterator()){let h=f;if(c){if(h=u.getMergedTraits().jsonName??h,i)o[h]=f}if(n)a.mark(h);if(t[h]!=null)s[f]=this._read(u,t[h])}if(n)a.writeUnknown();else if(i)for(let f in t){let u=t[f],h=c?o[f]??f:f;if(!(h in s))s[h]=u}return s}needsTransform(e){if(e.isBlobSchema()||e.isTimestampSchema()||e.isBigIntegerSchema()||e.isBigDecimalSchema())return!0;if(e.isDocumentSchema()||e.isStructSchema()||e.isListSchema()||e.isMapSchema())return!0;if(e.isStringSchema()&&e.getMergedTraits().mediaType)return!0;return!1}}class it extends Uint8Array{string=null;static allocUnsafe(e){if(typeof Buffer==="function"){let t=Buffer.allocUnsafe(e);return new it(t.buffer,t.byteOffset,t.byteLength)}return new it(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,t){if(typeof e==="string")return this.s().includes(e,t);return Uint8Array.prototype.includes.call(this,e,t)}indexOf(e,t){if(typeof e==="string")return this.s().indexOf(e,t);return Uint8Array.prototype.indexOf.call(this,e,t)}lastIndexOf(e,t){if(typeof e==="string")return this.s().lastIndexOf(e,t);let n=Uint8Array.prototype.lastIndexOf;if(t!==void 0)return n.call(this,e,t);return n.call(this,e)}startsWith(e,t){return this.s().startsWith(e,t)}endsWith(e,t){return this.s().endsWith(e,t)}match(e){return this.s().match(e)}replace(e,t){return this.s().replace(e,t)}search(e){return this.s().search(e)}split(e,t){return this.s().split(e,t)}substring(e,t){return this.s().substring(e,t)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,t){return this.s().padStart(e,t)}padEnd(e,t){return this.s().padEnd(e,t)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();if(e>$n+60000)console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),$n=e;this.string=sr(this)}return this.string}}var $n=0,et=new TextEncoder,Vn=123,Fn=125,bc=91,xc=93,me=34,tt=58,rt=44,Pn=92,Ec=new Uint8Array([116,114,117,101]),Nc=new Uint8Array([102,97,108,115,101]),_c=new Uint8Array([110,117,108,108]),Q=Array(128).fill(null);Q[8]="b";Q[9]="t";Q[10]="n";Q[12]="f";Q[13]="r";Q[34]='"';Q[92]="\\";for(let e=0;e<32;e++)if(Q[e]===null)Q[e]="u00"+e.toString(16).padStart(2,"0");var Hn=2048;function nr(e){return it.allocUnsafe(e)}class ht extends H{settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super();this.settings=e,this.json=nr(Hn)}write(e,t){if(this.i=0,this.rawValue=t,this.rootSchema=A.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),!this.passthrough)this.writeValue(this.rootSchema,t,void 0)}writeDiscriminatedDocument(e,t){this.i=0,this.rootSchema=A.of(e);let n=this.rootSchema;if(n.isStructSchema()&&t!=null&&typeof t==="object"){this.writeValue(n,t,void 0);let s=`"__type":"${n.getName(!0)??"Unknown"}",`,o=s.length;this.ensure(o),this.json.copyWithin(1+o,1,this.i),et.encodeInto(s,this.json.subarray(1)),this.i+=o}else this.writeValue(n,t,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let t=this.rawValue;if(this.rawValue=void 0,e===0)return t;let n=this.json.subarray(0,e);return this.json=nr(Hn),n}ensure(e){let{i:t,json:n}=this;if(t+e>n.length){let s=n.length*2;while(s<t+e)s*=2;let o=nr(s);o.set(this.json),this.json=o}}writeAscii(e){let t=e.length;this.ensure(t);let{i:n,json:s}=this;for(let o=0;o<t;++o)s[n]=e.charCodeAt(o),n+=1;this.i=n}writeAsciiQuoted(e){let t=e.length;this.ensure(t+4);let{json:n,i:s}=this;n[s++]=me;for(let o=0;o<t;++o)n[s++]=e.charCodeAt(o);n[s++]=me,this.i=s}writeJsonString(e){this.ensure(e.length*3+2),this.json[this.i++]=me;let t=e.length;for(let n=0;n<t;++n){let s=e.charCodeAt(n);if(s>34&&s<92)this.json[this.i++]=s;else if(s<128){let o=Q[s];if(o!==null){this.ensure(o.length+1),this.json[this.i++]=Pn;for(let i=0;i<o.length;i++)this.json[this.i++]=o.charCodeAt(i)}else this.json[this.i++]=s}else if(s>=55296&&s<=56319){let o=n+1<t?e.charCodeAt(n+1):0;if(o>=56320&&o<=57343){this.ensure(4);let{written:i}=et.encodeInto(e.substring(n,n+2),this.json.subarray(this.i));this.i+=i,++n}else this.ensure(6),this.writeUnicodeEscape(s)}else if(s>=56320&&s<=57343)this.ensure(6),this.writeUnicodeEscape(s);else{let{i:o,json:i}=this;if(s<2048)i[o++]=192|s>>6,i[o++]=128|s&63;else i[o++]=224|s>>12,i[o++]=128|s>>6&63,i[o++]=128|s&63;this.i=o}}this.json[this.i++]=me}writeUnicodeEscape(e){let{json:t,i:n}=this;t[n++]=Pn,t[n++]=117;let s=e.toString(16).padStart(4,"0");for(let o=0;o<4;++o)t[n++]=s.charCodeAt(o);this.i=n}static B64=(()=>{let t=new Uint8Array(64);for(let n=0;n<64;++n)t[n]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(n);return t})();writeBase64(e){let t=Math.ceil(e.length/3)*4;this.ensure(t+2);let n=this.json,s=ht.B64,o=this.i;n[o++]=me;let i=e.length,c=i%3,a=i-c;for(let f=0;f<a;f+=3){let u=e[f],h=e[f+1],l=e[f+2];n[o++]=s[u>>2],n[o++]=s[(u&3)<<4|h>>4],n[o++]=s[(h&15)<<2|l>>6],n[o++]=s[l&63]}if(c===2){let f=e[a],u=e[a+1];n[o++]=s[f>>2],n[o++]=s[(f&3)<<4|u>>4],n[o++]=s[(u&15)<<2],n[o++]=61}else if(c===1){let f=e[a];n[o++]=s[f>>2],n[o++]=s[(f&3)<<4],n[o++]=61,n[o++]=61}n[o++]=me,this.i=o}writeValue(e,t,n){if(t==null){if(n?.isStructSchema()){if(t===void 0){if(A.of(e).isIdempotencyToken()){this.writeAsciiQuoted(ct());return}}return}this.ensure(4),this.json.set(_c,this.i),this.i+=4;return}let s=A.of(e),o=typeof t==="object";if(s.isStringSchema()){let i=s.getMergedTraits().mediaType;if(i){if(i==="application/json"||i.endsWith("+json")){this.writeJsonString(ot.from(t).toString());return}}}if(o){if(s.isStructSchema()){this.writeStruct(s,t);return}if(Array.isArray(t)&&(s.isListSchema()||s.isDocumentSchema())){this.writeList(s,t,s.isDocumentSchema());return}if(s.isMapSchema()){this.writeMap(s,t,!1);return}if(t instanceof Uint8Array&&(s.isBlobSchema()||s.isDocumentSchema())){this.writeBase64(t);return}if(t instanceof Date&&(s.isTimestampSchema()||s.isDocumentSchema())){this.writeTimestamp(s,t);return}if(t instanceof M){this.writeAscii(t.string);return}if(s.isDocumentSchema()){if(Array.isArray(t))this.writeList(s,t,!0);else this.writeMap(s,t,!0);return}let i=JSON.stringify(t);this.writeAscii(i);return}if(typeof t==="string"){if(s.isBlobSchema()){let i=(this.serdeContext?.base64Encoder??ge)(t);this.writeAsciiQuoted(i);return}this.writeJsonString(t);return}if(typeof t==="number"){if(Math.abs(t)===1/0||Number.isNaN(t)){this.writeAsciiQuoted(String(t));return}let i=String(t);this.writeAscii(i);return}if(typeof t==="boolean"){this.ensure(5);let{i,json:c}=this;if(t)c.set(Ec,i),i+=4;else c.set(Nc,i),i+=5;this.i=i;return}if(typeof t==="bigint"){this.writeAscii(t.toString());return}this.writeAscii(String(t))}writeStruct(e,t){this.ensure(2),this.json[this.i++]=Vn;let n=!1,s=typeof t.__type==="string",o;if(s)o=new Set;for(let[i,c]of e.structIterator()){let a=t[i];if(a==null&&!c.isIdempotencyToken())continue;if(n)this.ensure(1),this.json[this.i++]=rt;n=!0;let f=this.settings.jsonName?c.getMergedTraits().jsonName??i:i;if(o)o.add(i),o.add(f);this.writeAsciiQuoted(f),this.json[this.i++]=tt,this.writeValue(c,a,e)}if(!n&&e.isUnionSchema()){let{$unknown:i}=t;if(Array.isArray(i)){let[c,a]=i;this.writeAsciiQuoted(c),this.ensure(1),this.json[this.i++]=tt,this.writeValue(15,a,e)}}else if(s)for(let i in t){if(o.has(i))continue;o.add(i);let c=t[i];if(n)this.ensure(1),this.json[this.i++]=rt;n=!0,this.writeAsciiQuoted(i),this.ensure(1),this.json[this.i++]=tt,this.writeValue(15,c,void 0)}this.ensure(1),this.json[this.i++]=Fn}writeList(e,t,n){let s=!!e.getMergedTraits().sparse,o=e.getValueSchema();if(!n){if(o.isStringSchema()||o.isNumericSchema()||o.isBooleanSchema()){let c=!1;for(let f=0;f<t.length;++f){let u=t[f];if(Number.isNaN(u)||u===1/0||u===-1/0||u==null&&!s){c=!0;break}}let a;if(!c)a=JSON.stringify(t);else{let f=[];for(let u=0;u<t.length;++u){let h=t[u];if(h==null&&!s)continue;if(Number.isNaN(h)||h===1/0||h===-1/0)f.push(String(h));else f.push(h)}a=JSON.stringify(f)}this.ensure(a.length*3),this.i+=et.encodeInto(a,this.json.subarray(this.i)).written;return}}this.ensure(2),this.json[this.i++]=bc;let i=!1;for(let c=0;c<t.length;++c){let a=t[c];if(n?a===void 0:a==null&&!s)continue;if(i)this.ensure(1),this.json[this.i++]=rt;this.writeValue(o,a,void 0),i=!0}this.ensure(1),this.json[this.i++]=xc}writeMap(e,t,n){let s=!!e.getMergedTraits().sparse,o=e.getValueSchema();if(!n){if(o.isStringSchema()||o.isNumericSchema()||o.isBooleanSchema()){let c;for(let f in t){let u=t[f];if(Number.isNaN(u)||u===1/0||u===-1/0)(c??={})[f]=u,t[f]=String(u);else if(u===null&&!s)(c??={})[f]=null,t[f]=void 0}let a=JSON.stringify(t);if(c)Object.assign(t,c);this.ensure(a.length*3),this.i+=et.encodeInto(a,this.json.subarray(this.i)).written;return}}this.ensure(2),this.json[this.i++]=Vn;let i=!0;for(let c in t){let a=t[c];if(n?a===void 0:a==null&&!s)continue;if(!i)this.ensure(1),this.json[this.i++]=rt;i=!1,this.writeJsonString(c),this.ensure(1),this.json[this.i++]=tt,this.writeValue(o,a,void 0)}this.ensure(1),this.json[this.i++]=Fn}writeTimestamp(e,t){switch(pe(e,this.settings)){case 5:{let s=t.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(s);return}case 6:{this.writeAsciiQuoted(De(t));return}case 7:{let s=String(t.getTime()/1000);this.writeAscii(s);return}default:{let s=String(t.getTime()/1000);this.writeAscii(s);return}}}}class lt extends H{settings;constructor(e){super();this.settings=e}createSerializer(){let e=new ht(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new ar(this.settings);return e.setSerdeContext(this.serdeContext),e}}class dt extends Gn{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o}){super({defaultNamespace:e,errorTypeRegistries:t});this.serviceTarget=n,this.codec=o??new lt({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!s,this.mixin=new ye(this.awsQueryCompatible)}async serializeRequest(e,t,n){let s=await super.serializeRequest(e,t,n);if(!s.path.endsWith("/"))s.path+="/";if(s.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,s.headers["x-amz-target"]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible)s.headers["x-amzn-query-mode"]="true";if(qn(e.input)==="unit"||!s.body)s.body="{}";return s}getPayloadCodec(){return this.codec}async handleError(e,t,n,s,o){let{awsQueryCompatible:i}=this;if(i)this.mixin.setQueryCompatError(s,n);let c=is(n,s,i)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,c,this.options.defaultNamespace);let{errorSchema:a,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(c,this.options.defaultNamespace,n,s,o,i?this.mixin.findQueryCompatibleError:void 0),u=A.of(a),h=s.message??s.Message??"UnknownError",d=new(this.compositeErrorRegistry.getErrorCtor(a)??Error)({}),m={},y=this.codec.createDeserializer();for(let[g,E]of u.structIterator())if(s[g]!=null)m[g]=y.readObject(E,s[g]);if(i)this.mixin.queryCompatOutput(s,m);throw this.mixin.decorateServiceException(Object.assign(d,f,{$fault:u.getMergedTraits().error,message:h},m),s)}}class cs extends dt{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class as extends dt{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class fs extends Wn{serializer;deserializer;codec;mixin=new ye;constructor({defaultNamespace:e,errorTypeRegistries:t,jsonCodec:n}){super({defaultNamespace:e,errorTypeRegistries:t});let s={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=n??new lt(s),this.serializer=new Xn(this.codec.createSerializer(),s),this.deserializer=new Jn(this.codec.createDeserializer(),s)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,t,n){let s=await super.serializeRequest(e,t,n),o=A.of(e.input);if(!s.headers["content-type"]){let i=this.mixin.resolveRestContentType(this.getDefaultContentType(),o);if(i)s.headers["content-type"]=i}if(s.body==null&&s.headers["content-type"]===this.getDefaultContentType())s.body="{}";return s}async deserializeResponse(e,t,n){let s=await super.deserializeResponse(e,t,n),o=A.of(e.output);for(let[i,c]of o.structIterator())if(c.getMemberTraits().httpPayload&&!(i in s))s[i]=null;return s}async handleError(e,t,n,s,o){let i=ss(n,s)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:a}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,s,o),f=A.of(c),u=s.message??s.Message??"UnknownError",l=new(this.compositeErrorRegistry.getErrorCtor(c)??Error)({});await this.deserializeHttpMessage(c,t,n,s);let d={},m=this.codec.createDeserializer();for(let[y,g]of f.structIterator()){let E=g.getMergedTraits().jsonName??y;d[y]=m.readObject(g,s[E])}throw this.mixin.decorateServiceException(Object.assign(l,a,{$fault:f.getMergedTraits().error,message:u},d),s)}getDefaultContentType(){return"application/json"}}class fr extends H{settings;constructor(e){super();this.settings=e}async read(e,t){let n=cr(e)?or:void 0;return this._read(e,typeof t==="string"?JSON.parse(t,n):await ft(t,this.serdeContext,e))}readObject(e,t){return this._read(e,t)}_read(e,t){let n=t!==null&&typeof t==="object",s=A.of(e);if(n){if(s.isStructSchema()){let i=t,c=s.isUnionSchema(),a={},f=void 0,{jsonName:u}=this.settings;if(u)f={};let h;if(c)h=new at(i,a);for(let[l,d]of s.structIterator()){let m=l;if(u)m=d.getMergedTraits().jsonName??m,f[m]=l;if(c)h.mark(m);if(i[m]!=null)a[l]=this._read(d,i[m])}if(c)h.writeUnknown();else if(typeof i.__type==="string")for(let l in i){let d=i[l],m=u?f[l]??l:l;if(!(m in a))a[m]=d}return a}if(Array.isArray(t)&&s.isListSchema()){let i=s.getValueSchema(),c=[];for(let a of t)c.push(this._read(i,a));return c}if(s.isMapSchema()){let i=s.getValueSchema(),c={};for(let a in t){if(a==="__proto__")J(c);c[a]=this._read(i,t[a])}return c}}if(s.isBlobSchema()&&typeof t==="string")return ir(t);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof t==="string"&&o){if(o==="application/json"||o.endsWith("+json"))return ot.from(t);return t}if(s.isTimestampSchema()&&t!=null)switch(pe(s,this.settings)){case 5:return vn(t);case 6:return Yn(t);case 7:return Zn(t);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",t),new Date(t)}if(s.isBigIntegerSchema()&&(typeof t==="number"||typeof t==="string"))return BigInt(t);if(s.isBigDecimalSchema()&&t!=null){if(t instanceof M)return t;let i=t;if(i.type==="bigDecimal"&&"string"in i)return new M(i.string,i.type);return new M(String(t),"bigDecimal")}if(s.isNumericSchema()&&typeof t==="string"){switch(t){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return t}if(s.isDocumentSchema())if(n){let i=Array.isArray(t)?[]:{};for(let c in t){if(c==="__proto__")J(i);let a=t[c];if(a instanceof M)i[c]=a;else i[c]=this._read(s,a)}return i}else return structuredClone(t);return t}}var Kn=String.fromCharCode(925);class us{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,t)=>{if(t instanceof M){let n=`${Kn+"nv"+this.counter++}_`+t.string;return this.values.set(`"${n}"`,t.string),n}if(typeof t==="bigint"){let n=t.toString(),s=`${Kn+"b"+this.counter++}_`+n;return this.values.set(`"${s}"`,n),s}return t}}replaceInJson(e){if(this.stage===0)throw Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(let[t,n]of this.values)e=e.replace(t,n);return e}}class ur extends H{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super();this.settings=e}write(e,t){this.rootSchema=A.of(e),this.buffer=this._write(this.rootSchema,t)}flush(){let{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!t)return JSON.stringify(this.buffer);let n=new us;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,t){if(this.write(e,t),typeof this.buffer==="object")this.buffer.__type=A.of(e).getName(!0)}_write(e,t,n){let s=t!==null&&typeof t==="object",o=A.of(e);if(s){if(o.isStructSchema()){let i=t,c={},{jsonName:a}=this.settings,f=void 0;if(a)f={};let u=0;for(let[h,l]of o.structIterator()){let d=this._write(l,i[h],o);if(d!==void 0){let m=h;if(a)m=l.getMergedTraits().jsonName??h,f[h]=m;c[m]=d,u++}}if(o.isUnionSchema()&&u===0){let{$unknown:h}=i;if(Array.isArray(h)){let[l,d]=h;if(l==="__proto__")J(c);c[l]=this._write(15,d)}}else if(typeof i.__type==="string")for(let h in i){let l=i[h],d=a?f[h]??h:h;if(!(d in c))c[d]=this._write(15,l)}return c}if(Array.isArray(t)&&o.isListSchema()){let i=o.getValueSchema(),c=[],a=!!o.getMergedTraits().sparse;for(let f of t)if(a||f!=null)c.push(this._write(i,f));return c}if(o.isMapSchema()){let i=o.getValueSchema(),c={},a=!!o.getMergedTraits().sparse;for(let f in t){let u=t[f];if(a||u!=null){if(f==="__proto__")J(c);c[f]=this._write(i,u)}}return c}if(t instanceof Uint8Array&&o.isBlobSchema()){if(o===this.rootSchema)return t;return(this.serdeContext?.base64Encoder??ge)(t)}if(t instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema()))switch(pe(o,this.settings)){case 5:return t.toISOString().replace(".000Z","Z");case 6:return De(t);case 7:return t.getTime()/1000;default:return console.warn("Missing timestamp format, using epoch seconds",t),t.getTime()/1000}if(t instanceof M)this.useReplacer=!0}if(t===null&&n?.isStructSchema())return;if(o.isStringSchema()){if(typeof t>"u"&&o.isIdempotencyToken())return ct();let i=o.getMergedTraits().mediaType;if(t!=null&&i){if(i==="application/json"||i.endsWith("+json"))return ot.from(t)}return t}if(typeof t==="number"){if(Math.abs(t)===1/0||isNaN(t))return String(t);return t}if(typeof t==="string"&&o.isBlobSchema()){if(o===this.rootSchema)return t;return(this.serdeContext?.base64Encoder??ge)(t)}if(typeof t==="bigint")this.useReplacer=!0;if(o.isDocumentSchema())if(s){if(t instanceof Uint8Array)return(this.serdeContext?.base64Encoder??ge)(t);let i=Array.isArray(t)?[]:{};for(let c in t){let a=t[c];if(c==="__proto__")J(i);if(a instanceof M)this.useReplacer=!0,i[c]=a;else i[c]=this._write(o,a)}return i}else return structuredClone(t);return t}}class hs extends H{settings;constructor(e){super();this.settings=e}createSerializer(){let e=new ur(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new fr(this.settings);return e.setSerdeContext(this.serdeContext),e}}class mt extends H{settings;stringDeserializer;constructor(e){super();this.settings=e,this.stringDeserializer=new mc(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,t,n){let s=A.of(e),o=s.getMemberSchemas();if(s.isStructSchema()&&s.isMemberSchema()&&!!Object.values(o).find((f)=>!!f.getMemberTraits().eventPayload)){let f={},u=Object.keys(o)[0];if(o[u].isBlobSchema())f[u]=t;else f[u]=this.read(o[u],t);return f}let c=(this.serdeContext?.utf8Encoder??sr)(t),a=this.parseXml(c);return this.readSchema(e,n?a[n]:a)}readSchema(e,t){let n=A.of(e);if(n.isUnitSchema())return;let s=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t))return this.readSchema(n,[t]);if(t==null)return t;if(typeof t==="object"){let o=!!s.xmlFlattened;if(n.isListSchema()){let c=n.getValueSchema(),a=[],f=c.getMergedTraits().xmlName??"member",u=o?t:(t[0]??t)[f];if(u==null)return a;let h=Array.isArray(u)?u:[u];for(let l of h)a.push(this.readSchema(c,l));return a}let i={};if(n.isMapSchema()){let c=n.getKeySchema(),a=n.getValueSchema(),f;if(o)f=Array.isArray(t)?t:[t];else f=Array.isArray(t.entry)?t.entry:[t.entry];let u=c.getMergedTraits().xmlName??"key",h=a.getMergedTraits().xmlName??"value";for(let l of f){let d=l[u],m=l[h];if(d==="__proto__")J(i);i[d]=this.readSchema(a,m)}return i}if(n.isStructSchema()){let c=n.isUnionSchema(),a;if(c)a=new at(t,i);for(let[f,u]of n.structIterator()){let h=u.getMergedTraits(),l=!h.httpPayload?u.getMemberTraits().xmlName??f:h.xmlName??u.getName();if(c)a.mark(l);if(t[l]!=null)i[f]=this.readSchema(u,t[l])}if(c)a.writeUnknown();return i}if(n.isDocumentSchema())return t;throw Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}if(n.isListSchema())return[];if(n.isMapSchema()||n.isStructSchema())return{};return this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=es(e)}catch(i){if(i&&typeof i==="object")Object.defineProperty(i,"$responseBodyText",{value:e});throw i}let n="#text",s=Object.keys(t)[0],o=t[s];if(o[n])o[s]=o[n],delete o[n];return Qn(o)}return{}}}class hr extends H{settings;buffer;constructor(e){super();this.settings=e}write(e,t,n=""){if(this.buffer===void 0)this.buffer="";let s=A.of(e);if(n&&!n.endsWith("."))n+=".";if(s.isBlobSchema()){if(typeof t==="string"||t instanceof Uint8Array)this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??ge)(t))}else if(s.isBooleanSchema()||s.isNumericSchema()||s.isStringSchema()){if(t!=null)this.writeKey(n),this.writeValue(String(t));else if(s.isIdempotencyToken())this.writeKey(n),this.writeValue(ct())}else if(s.isBigIntegerSchema()){if(t!=null)this.writeKey(n),this.writeValue(String(t))}else if(s.isBigDecimalSchema()){if(t!=null)this.writeKey(n),this.writeValue(t instanceof M?t.string:String(t))}else if(s.isTimestampSchema()){if(t instanceof Date)switch(this.writeKey(n),pe(s,this.settings)){case 5:this.writeValue(t.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(De(t));break;case 7:this.writeValue(String(t.getTime()/1000));break}}else if(s.isDocumentSchema())if(Array.isArray(t))this.write(79,t,n);else if(t instanceof Date)this.write(4,t,n);else if(t instanceof Uint8Array)this.write(21,t,n);else if(t&&typeof t==="object")this.write(143,t,n);else this.writeKey(n),this.writeValue(String(t));else if(s.isListSchema()){if(Array.isArray(t))if(t.length===0){if(this.settings.serializeEmptyLists)this.writeKey(n),this.writeValue("")}else{let o=s.getValueSchema(),i=this.settings.flattenLists||s.getMergedTraits().xmlFlattened,c=1;for(let a of t){if(a==null)continue;let f=o.getMergedTraits(),u=this.getKey("member",f.xmlName,f.ec2QueryName),h=i?`${n}${c}`:`${n}${u}.${c}`;this.write(o,a,h),++c}}}else if(s.isMapSchema()){if(t&&typeof t==="object"){let o=s.getKeySchema(),i=s.getValueSchema(),c=s.getMergedTraits().xmlFlattened,a=1;for(let f in t){let u=t[f];if(u==null)continue;let h=o.getMergedTraits(),l=this.getKey("key",h.xmlName,h.ec2QueryName),d=c?`${n}${a}.${l}`:`${n}entry.${a}.${l}`,m=i.getMergedTraits(),y=this.getKey("value",m.xmlName,m.ec2QueryName),g=c?`${n}${a}.${y}`:`${n}entry.${a}.${y}`;this.write(o,f,d),this.write(i,u,g),++a}}}else if(s.isStructSchema()){if(t&&typeof t==="object"){let o=!1;for(let[i,c]of s.structIterator()){if(t[i]==null&&!c.isIdempotencyToken())continue;let a=c.getMergedTraits(),f=this.getKey(i,a.xmlName,a.ec2QueryName,"struct"),u=`${n}${f}`;this.write(c,t[i],u),o=!0}if(!o&&s.isUnionSchema()){let{$unknown:i}=t;if(Array.isArray(i)){let[c,a]=i,f=`${n}${c}`;this.write(15,a,f)}}}}else if(s.isUnitSchema());else throw Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${s.getName(!0)}`)}flush(){if(this.buffer===void 0)throw Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");let e=this.buffer;return delete this.buffer,e}getKey(e,t,n,s){let{ec2:o,capitalizeKeys:i}=this.settings;if(o&&n)return n;let c=t??e;if(i&&s==="struct")return c[0].toUpperCase()+c.slice(1);return c}writeKey(e){if(e.endsWith("."))e=e.slice(0,e.length-1);this.buffer+=`&${zn(e)}=`}writeValue(e){this.buffer+=zn(e)}}class lr extends Gn{options;serializer;deserializer;mixin=new ye;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries});this.options=e;let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new hr(t),this.deserializer=new mt(t)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,t,n){let s=await super.serializeRequest(e,t,n);if(!s.path.endsWith("/"))s.path+="/";if(s.headers["content-type"]="application/x-www-form-urlencoded",qn(e.input)==="unit"||!s.body)s.body="";let o=e.name.split("#")[1]??e.name;if(s.body=`Action=${o}&Version=${this.options.version}`+s.body,s.body.endsWith("&"))s.body=s.body.slice(-1);return s}async deserializeResponse(e,t,n){let s=this.deserializer,o=A.of(e.output),i={};if(n.statusCode>=300){let u=await nt(n.body,t);if(u.byteLength>0)Object.assign(i,await s.read(15,u));await this.handleError(e,t,n,i,this.deserializeMetadata(n))}for(let u in n.headers){let h=n.headers[u];delete n.headers[u],n.headers[u.toLowerCase()]=h}let c=e.name.split("#")[1]??e.name,a=o.isStructSchema()&&this.useNestedResult()?c+"Result":void 0,f=await nt(n.body,t);if(f.byteLength>0)Object.assign(i,await s.read(o,f,a));return i.$metadata=this.deserializeMetadata(n),i}useNestedResult(){return!0}async handleError(e,t,n,s,o){let i=this.loadQueryErrorCode(n,s)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let c=this.loadQueryError(s)??{},a=this.loadQueryErrorMessage(s);c.message=a,c.Error={Type:c.Type,Code:c.Code,Message:a};let{errorSchema:f,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,c,o,this.mixin.findQueryCompatibleError),h=A.of(f),d=new(this.compositeErrorRegistry.getErrorCtor(f)??Error)({}),m={Type:c.Error.Type,Code:c.Error.Code,Error:c.Error};for(let[y,g]of h.structIterator()){let E=g.getMergedTraits().xmlName??y,T=c[E]??s[E];m[y]=this.deserializer.readSchema(g,T)}throw this.mixin.decorateServiceException(Object.assign(d,u,{$fault:h.getMergedTraits().error,message:a},m),s)}loadQueryErrorCode(e,t){let n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return"NotFound"}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class ls extends lr{options;constructor(e){super(e);this.options=e;let t={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,t)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return!1}}var ds=(e,t)=>ns(e,t).then((n)=>{if(n.length){let s;try{s=es(n)}catch(a){if(a&&typeof a==="object")Object.defineProperty(a,"$responseBodyText",{value:n});throw a}let o="#text",i=Object.keys(s)[0],c=s[i];if(c[o])c[i]=c[o],delete c[o];return Qn(c)}return{}}),Cc=async(e,t)=>{let n=await ds(e,t);if(n.Error)n.Error.message=n.Error.message??n.Error.Message;return n},ms=(e,t)=>{if(t?.Error?.Code!==void 0)return t.Error.Code;if(t?.Code!==void 0)return t.Code;if(e.statusCode==404)return"NotFound"};class dr extends H{settings;stringBuffer;byteBuffer;buffer;constructor(e){super();this.settings=e}write(e,t){let n=A.of(e);if(n.isStringSchema()&&typeof t==="string")this.stringBuffer=t;else if(n.isBlobSchema())this.byteBuffer="byteLength"in t?t:(this.serdeContext?.base64Decoder??ir)(t);else{this.buffer=this.writeStruct(n,t,void 0);let s=n.getMergedTraits();if(s.httpPayload&&!s.xmlName)this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let t=this.byteBuffer;return delete this.byteBuffer,t}if(this.stringBuffer!==void 0){let t=this.stringBuffer;return delete this.stringBuffer,t}let e=this.buffer;if(this.settings.xmlNamespace){if(!e?.attributes?.xmlns)e.addAttribute("xmlns",this.settings.xmlNamespace)}return delete this.buffer,e.toString()}writeStruct(e,t,n){let s=e.getMergedTraits(),o=e.isMemberSchema()&&!s.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():s.xmlName??e.getName();if(!o||!e.isStructSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let i=P.of(o),[c,a]=this.getXmlnsAttribute(e,n);for(let[u,h]of e.structIterator()){let l=t[u];if(l!=null||h.isIdempotencyToken()){if(h.getMergedTraits().xmlAttribute){i.addAttribute(h.getMergedTraits().xmlName??u,this.writeSimple(h,l));continue}if(h.isListSchema())this.writeList(h,l,i,a);else if(h.isMapSchema())this.writeMap(h,l,i,a);else if(h.isStructSchema())i.addChildNode(this.writeStruct(h,l,a));else{let d=P.of(h.getMergedTraits().xmlName??h.getMemberName());this.writeSimpleInto(h,l,d,a),i.addChildNode(d)}}}let{$unknown:f}=t;if(f&&e.isUnionSchema()&&Array.isArray(f)&&Object.keys(t).length===1){let[u,h]=f,l=P.of(u);if(typeof h!=="string")if(t instanceof P||t instanceof On)i.addChildNode(t);else throw Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,h,l,a),i.addChildNode(l)}if(a)i.addAttribute(c,a);return i}writeList(e,t,n,s){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let o=e.getMergedTraits(),i=e.getValueSchema(),c=i.getMergedTraits(),a=!!c.sparse,f=!!o.xmlFlattened,[u,h]=this.getXmlnsAttribute(e,s),l=(d,m)=>{if(i.isListSchema())this.writeList(i,Array.isArray(m)?m:[m],d,h);else if(i.isMapSchema())this.writeMap(i,m,d,h);else if(i.isStructSchema()){let y=this.writeStruct(i,m,h);d.addChildNode(y.withName(f?o.xmlName??e.getMemberName():c.xmlName??"member"))}else{let y=P.of(f?o.xmlName??e.getMemberName():c.xmlName??"member");this.writeSimpleInto(i,m,y,h),d.addChildNode(y)}};if(f){for(let d of t)if(a||d!=null)l(n,d)}else{let d=P.of(o.xmlName??e.getMemberName());if(h)d.addAttribute(u,h);for(let m of t)if(a||m!=null)l(d,m);n.addChildNode(d)}}writeMap(e,t,n,s,o=!1){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let i=e.getMergedTraits(),c=e.getKeySchema(),f=c.getMergedTraits().xmlName??"key",u=e.getValueSchema(),h=u.getMergedTraits(),l=h.xmlName??"value",d=!!h.sparse,m=!!i.xmlFlattened,[y,g]=this.getXmlnsAttribute(e,s),E=(T,D,z)=>{let Z=P.of(f,D),[ps,gr]=this.getXmlnsAttribute(c,g);if(gr)Z.addAttribute(ps,gr);T.addChildNode(Z);let Se=P.of(l);if(u.isListSchema())this.writeList(u,z,Se,g);else if(u.isMapSchema())this.writeMap(u,z,Se,g,!0);else if(u.isStructSchema())Se=this.writeStruct(u,z,g);else this.writeSimpleInto(u,z,Se,g);T.addChildNode(Se)};if(m)for(let T in t){let D=t[T];if(d||D!=null){let z=P.of(i.xmlName??e.getMemberName());E(z,T,D),n.addChildNode(z)}}else{let T;if(!o){if(T=P.of(i.xmlName??e.getMemberName()),g)T.addAttribute(y,g);n.addChildNode(T)}for(let D in t){let z=t[D];if(d||z!=null){let Z=P.of("entry");E(Z,D,z),(o?n:T).addChildNode(Z)}}}}writeSimple(e,t){if(t===null)throw Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let n=A.of(e),s=null;if(t&&typeof t==="object")if(n.isBlobSchema())s=(this.serdeContext?.base64Encoder??ge)(t);else if(n.isTimestampSchema()&&t instanceof Date)switch(pe(n,this.settings)){case 5:s=t.toISOString().replace(".000Z","Z");break;case 6:s=De(t);break;case 7:s=String(t.getTime()/1000);break;default:console.warn("Missing timestamp format, using http date",t),s=De(t);break}else if(n.isBigDecimalSchema()&&t){if(t instanceof M)return t.string;return String(t)}else if(n.isMapSchema()||n.isListSchema())throw Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.");else throw Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`);if(n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())s=String(t);if(n.isStringSchema())if(t===void 0&&n.isIdempotencyToken())s=ct();else s=String(t);if(s===null)throw Error(`Unhandled schema-value pair ${n.getName(!0)}=${t}`);return s}writeSimpleInto(e,t,n,s){let o=this.writeSimple(e,t),i=A.of(e),c=new On(o),[a,f]=this.getXmlnsAttribute(i,s);if(f)n.addAttribute(a,f);n.addChildNode(c)}getXmlnsAttribute(e,t){let n=e.getMergedTraits(),[s,o]=n.xmlNamespace??[];if(o&&o!==t)return[s?`xmlns:${s}`:"xmlns",o];return[void 0,void 0]}}class mr extends H{settings;constructor(e){super();this.settings=e}createSerializer(){let e=new dr(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new mt(this.settings);return e.setSerdeContext(this.serdeContext),e}}class gs extends Wn{codec;serializer;deserializer;mixin=new ye;constructor(e){super(e);let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new mr(t),this.serializer=new Xn(this.codec.createSerializer(),t),this.deserializer=new Jn(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,t,n){let s=await super.serializeRequest(e,t,n),o=A.of(e.input);if(!s.headers["content-type"]){let i=this.mixin.resolveRestContentType(this.getDefaultContentType(),o);if(i)s.headers["content-type"]=i}if(typeof s.body==="string"&&s.headers["content-type"]===this.getDefaultContentType()&&!s.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(o))s.body='<?xml version="1.0" encoding="UTF-8"?>'+s.body;return s}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,s,o){let i=ms(n,s)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace),s.Error&&typeof s.Error==="object"){for(let y of Object.keys(s.Error))if(s[y]=s.Error[y],y.toLowerCase()==="message")s.message=s.Error[y]}if(s.RequestId&&!o.requestId)o.requestId=s.RequestId;let{errorSchema:c,errorMetadata:a}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,s,o),f=A.of(c),u=s.Error?.message??s.Error?.Message??s.message??s.Message??"UnknownError",l=new(this.compositeErrorRegistry.getErrorCtor(c)??Error)({});await this.deserializeHttpMessage(c,t,n,s);let d={},m=this.codec.createDeserializer();for(let[y,g]of f.structIterator()){let E=g.getMergedTraits().xmlName??y,T=s.Error?.[E]??s[E];d[y]=m.readSchema(g,T)}throw this.mixin.decorateServiceException(Object.assign(l,a,{$fault:f.getMergedTraits().error,message:u},d),s)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(let[,t]of e.structIterator())if(t.getMergedTraits().httpPayload)return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema());return!1}}var Ac=(e)=>{if(e==null)return;if(typeof e==="object"&&"__type"in e)delete e.__type;return gc(e)},Tc=(e)=>{if(e==null)return e;if(typeof e==="number"||typeof e==="bigint"){let t=Error(`Received number ${e} where a string was expected.`);return t.name="Warning",console.warn(t),String(e)}if(typeof e==="boolean"){let t=Error(`Received boolean ${e} where a string was expected.`);return t.name="Warning",console.warn(t),String(e)}return e},Ic=(e)=>{if(e==null)return e;if(typeof e==="string"){let t=e.toLowerCase();if(e!==""&&t!=="false"&&t!=="true"){let n=Error(`Received string "${e}" where a boolean was expected.`);n.name="Warning",console.warn(n)}return e!==""&&t!=="false"}return e},kc=(e)=>{if(e==null)return e;if(typeof e==="string"){let t=Number(e);if(t.toString()!==e){let n=Error(`Received string "${e}" where a number was expected.`);return n.name="Warning",console.warn(n),e}return t}return e};Rc.AwsEc2QueryProtocol=ls;Rc.AwsJson1_0Protocol=cs;Rc.AwsJson1_1Protocol=as;Rc.AwsJsonRpcProtocol=dt;Rc.AwsQueryProtocol=lr;Rc.AwsRestJsonProtocol=fs;Rc.AwsRestXmlProtocol=gs;Rc.AwsSmithyRpcV2CborProtocol=ts;Rc.JsonCodec=hs;Rc.JsonCodec2=lt;Rc.JsonShapeDeserializer=fr;Rc.JsonShapeDeserializer2=ar;Rc.JsonShapeSerializer=ur;Rc.JsonShapeSerializer2=ht;Rc.QueryShapeSerializer=hr;Rc.XmlCodec=mr;Rc.XmlShapeDeserializer=mt;Rc.XmlShapeSerializer=dr;Rc._toBool=Ic;Rc._toNum=kc;Rc._toStr=Tc;Rc.awsExpectUnion=Ac;Rc.loadJsonRpcErrorCode=is;Rc.loadRestJsonErrorCode=ss;Rc.loadRestXmlErrorCode=ms;Rc.parseJsonBody=ft;Rc.parseJsonErrorBody=wc;Rc.parseXmlBody=ds;Rc.parseXmlErrorBody=Cc});
20
- export{si,Ge,ut};
package/chunk-qhhv81gd.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Dn}from"./chunk-fk43jgwe.js";import"./chunk-09fsdkd3.js";import{Fr,hi}from"./chunk-dzn4c87v.js";import{ht,ot,ft}from"./chunk-6rehcf49.js";import{Ye}from"./chunk-f9yneea6.js";import{se}from"./chunk-keq5kv9b.js";import{pe}from"./chunk-fj56fznw.js";import{V,X}from"./chunk-e2m8ap8f.js";import{Re,gt,J}from"./chunk-02q61grt.js";import{Q}from"./chunk-tv7met41.js";import{B,ae,_e,Ae,K}from"./chunk-kcn3af9r.js";var g=new Set(["openai","openai-codex","opencode","azure"]),h=16;function y(r){return X(V(r),"Azure OpenAI API error")}var A=(r,a,e)=>{let t=new B,i=ae(a,r.compat?.supportsMidConvoSystemMessages);return(async()=>{let n=Fr(r,e),s={role:"assistant",content:[],api:"azure-openai-responses",provider:r.provider,model:r.id,usage:{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},stopReason:"pending",timestamp:Date.now()};try{let p=e?.apiKey;if(!p)throw Error(`No API key for provider: ${r.provider}`);let c=R(r,p,e),o=Re(_e(i.messages),r.compat?.supportsOpenAIGrammarTools??!1),m=T(r,i,e,n,o),u=await e?.onPayload?.(m,r);if(u!==void 0)m=u;let f={...e?.signal?{signal:e.signal}:{},...e?.timeoutMs!==void 0?{timeout:e.timeoutMs}:{},maxRetries:0},{data:d,response:l}=await pe(()=>c.responses.create(m,f).withResponse(),{maxRetries:e?.maxRetries,maxRetryDelayMs:e?.maxRetryDelayMs,signal:e?.signal});if(await e?.onResponse?.({status:l.status,headers:Q(l.headers)},r),t.push({type:"start",partial:s}),await ft(d,s,t,r,{onProviderStreamEvent:e?.onProviderStreamEvent,grammarToolInputProperties:o}),e?.signal?.aborted)throw Error("Request was aborted");if(s.stopReason==="pending")throw Error("Azure OpenAI Responses stream ended without a stop reason");if(s.stopReason==="aborted"||s.stopReason==="error")throw Error(s.errorMessage||"An unknown error occurred");t.push({type:"done",reason:s.stopReason,message:s}),t.end()}catch(p){for(let c of s.content)delete c.index,delete c.partialJson,delete c.customInput;s.stopReason=e?.signal?.aborted?"aborted":"error",s.errorMessage=y(p),t.push({type:"error",reason:s.stopReason,error:s}),t.end()}})(),t},z=(r,a,e)=>{let t=e?.apiKey;if(!t)throw Error(`No API key for provider: ${r.provider}`);let i={...J(r,a,e,t),toolChoice:e?.toolChoice},n=e?.reasoning?K(r,e.reasoning):void 0;return A(r,a,{...i,reasoningEffort:n==="off"?void 0:n})};function R(r,a,e){let t={"User-Agent":se(),...r.headers};if(e?.headers)Object.assign(t,e.headers);let{baseUrl:i,apiVersion:n}=hi(r,e);return new Dn({apiKey:a,apiVersion:n,dangerouslyAllowBrowser:!0,fetch:e?.fetch,defaultHeaders:t,baseURL:i})}function T(r,a,e,t,i=Re(_e(a.messages),r.compat?.supportsOpenAIGrammarTools??!1)){let n=r.compat?.supportsAdditionalTools??!1,s=r.compat?.supportsToolSearch??!1,p=Ae(a.messages,n||s),c=ht(r,a,g,{grammarToolInputProperties:i,supportsMidConvoSystemMessages:r.compat?.supportsMidConvoSystemMessages??!1,supportsAdditionalTools:n,supportsToolSearch:s,toolOptions:{supportsStrictMode:r.compat?.supportsStrictMode??!0,supportsOpenAIGrammarTools:r.compat?.supportsOpenAIGrammarTools??!1}}),o={model:t,input:c,stream:!0,prompt_cache_key:Ye(e?.sessionId),store:!1};if(e?.maxTokens)o.max_output_tokens=Math.max(e.maxTokens,h);if(e?.temperature!==void 0)o.temperature=e?.temperature;if(p.requestTools.length>0)o.tools=ot(p.requestTools,{supportsStrictMode:r.compat?.supportsStrictMode??!0,supportsOpenAIGrammarTools:r.compat?.supportsOpenAIGrammarTools??!1});if(e?.toolChoice!==void 0)o.tool_choice=e.toolChoice;let m=e?.reasoningEffort??(e?.reasoningSummary?"medium":void 0);if(r.reasoning){if(m){let f=e?.reasoningEffort?r.thinkingLevelMap?.[e.reasoningEffort]??e.reasoningEffort:m;o.reasoning={effort:f,summary:e?.reasoningSummary||"auto"},o.include=["reasoning.encrypted_content"]}else if(r.thinkingLevelMap?.off!==null)o.reasoning={effort:r.thinkingLevelMap?.off??"none"}}let u=gt(r,m??"off",e?.samplingParams);if(u)Object.assign(o,u);return o}export{A as stream,z as streamSimple};
package/chunk-qprms4rt.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{si,Ge,ut}from"./chunk-psr4rxnn.js";import{ze}from"./chunk-yqv7ej5r.js";import{Xe,ke,U}from"./chunk-frjqjdkx.js";import{Ee,ee,v,Te,te,nt,j}from"./chunk-dkpgstr2.js";import{r}from"./chunk-g5mdw639.js";var Se=r(function(Dt){var{SignatureV4:kt,signatureV4aContainer:de}=si(),O={CrtSignerV4:null},ge="X-Amz-S3session-Token".toLowerCase();class J extends kt{async signWithCredentials(e,t,s){let o=pe(t);e.headers[ge]=t.sessionToken;let n=this;return he(n,o),n.signRequest(e,s??{})}async presignWithCredentials(e,t,s){let o=pe(t);return delete e.headers[ge],e.headers["X-Amz-S3session-Token"]=t.sessionToken,e.query=e.query??{},e.query["X-Amz-S3session-Token"]=t.sessionToken,he(this,o),this.presign(e,s)}}function pe(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function he(e,t){let s=e.credentialProvider;e.credentialProvider=()=>(e.credentialProvider=s,Promise.resolve(t))}class me{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof O.CrtSignerV4==="function")return"crt";else if(typeof de.SignatureV4a==="function")return"js";return"none"}constructor(e){this.sigv4Signer=new J(e),this.signerOptions=e}async sign(e,t={}){if(t.signingRegion==="*")return this.getSigv4aSigner().sign(e,t);return this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,s={}){if(s.signingRegion==="*"){let o=this.getSigv4aSigner(),n=O.CrtSignerV4;if(n&&o instanceof n)return o.signWithCredentials(e,t,s);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,s)}async presign(e,t={}){if(t.signingRegion==="*"){let s=this.getSigv4aSigner(),o=O.CrtSignerV4;if(o&&s instanceof o)return s.presign(e,t);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,s={}){if(s.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,t,s)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=O.CrtSignerV4,t=de.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!t)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e==="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==="function")this.sigv4aSigner=new t({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!t||typeof t!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}}Dt.SignatureV4MultiRegion=me;Dt.SignatureV4SignWithCredentials=J;Dt.signatureV4CrtContainer=O});var{awsEndpointFunctions:Nt,emitWarningIfUnsupportedVersion:Wt,createDefaultUserAgentProvider:Ht,NODE_APP_ID_CONFIG_OPTIONS:Ut,getAwsRegionExtensionConfiguration:qt,resolveAwsRegionExtensionConfiguration:Ft,resolveUserAgentConfig:Vt,resolveHostHeaderConfig:Lt,getUserAgentPlugin:Kt,getHostHeaderPlugin:Mt,getLoggerPlugin:jt,getRecursionDetectionPlugin:zt,setCredentialFeature:se,stsRegionDefaultResolver:Gt}=U(),{NoAuthSigner:Ce,getHttpAuthSchemeEndpointRuleSetPlugin:Yt,DefaultIdentityProviderConfig:Qt,getHttpSigningPlugin:Bt}=ke(),{normalizeProvider:_e,getSmithyContext:xe,ServiceException:Jt,NoOpLogger:Xt,emitWarningIfUnsupportedVersion:Zt,loadConfigsForDefaultMode:es,getDefaultExtensionConfiguration:ts,resolveDefaultRuntimeConfig:ss,Client:De,makeBuilder:ns,createAggregatedClient:os}=ee(),{Command:rs}=ee();var io=rs,ao=De;var{resolveDefaultsModeConfig:is,loadConfig:E,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:as,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:cs,NODE_REGION_CONFIG_OPTIONS:us,NODE_REGION_CONFIG_FILE_OPTIONS:ls,resolveRegionConfig:ds}=v(),{BinaryDecisionDiagram:gs,EndpointCache:ps,decideEndpoint:hs,customEndpointFunctions:ms,resolveParams:Ss,resolveEndpointConfig:vs,getEndpointPlugin:fs}=Te(),{parseUrl:Ps,getHttpHandlerExtensionConfiguration:ys,resolveHttpHandlerRuntimeConfig:Es,getContentLengthPlugin:As}=j(),{DEFAULT_RETRY_MODE:Is,NODE_RETRY_MODE_CONFIG_OPTIONS:ws,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:Rs,resolveRetryConfig:Cs,getRetryPlugin:_s}=Xe(),{TypeRegistry:be,getSchemaSerdePlugin:xs}=Ee(),{resolveAwsSdkSigV4Config:Ts,resolveAwsSdkSigV4AConfig:ks,AwsSdkSigV4Signer:Oe,AwsSdkSigV4ASigner:$e,NODE_SIGV4A_CONFIG_OPTIONS:Ds,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:bs}=Ge(),{SignatureV4MultiRegion:Ne}=Se(),{toUtf8:Os,fromUtf8:$s,toBase64:Ns,fromBase64:Ws,calculateBodyLength:Hs}=te(),{streamCollector:Us,NodeHttpHandler:qs}=ze(),{AwsQueryProtocol:Fs}=ut(),{Sha256:Vs}=nt(),b="ref",w=-1,N=!0,ve="isSet",We="PartitionResult",W="booleanEquals",l="stringEquals",X="getAttr",fe="us-east-1",Pe="sigv4",ye="sts",Ae="https://sts.{Region}.{PartitionResult#dnsSuffix}",Ie={[b]:"Endpoint"},d={[b]:"Region"},Z={[b]:We},D={},we=[d],Re={conditions:[[ve,[Ie]],[ve,we],["aws.partition",we,We],[W,[{[b]:"UseFIPS"},N]],[W,[{[b]:"UseDualStack"},N]],[l,[d,"aws-global"]],[W,[{[b]:"UseGlobalEndpoint"},N]],[l,[d,"eu-central-1"]],[W,[{fn:X,argv:[Z,"supportsDualStack"]},N]],[W,[{fn:X,argv:[Z,"supportsFIPS"]},N]],[l,[d,"ap-south-1"]],[l,[d,"eu-north-1"]],[l,[d,"eu-west-1"]],[l,[d,"eu-west-2"]],[l,[d,"eu-west-3"]],[l,[d,"sa-east-1"]],[l,[d,fe]],[l,[d,"us-east-2"]],[l,[d,"us-west-2"]],[l,[d,"us-west-1"]],[l,[d,"ca-central-1"]],[l,[d,"ap-southeast-1"]],[l,[d,"ap-northeast-1"]],[l,[d,"ap-southeast-2"]],[l,[{fn:X,argv:[Z,"name"]},"aws-us-gov"]]],results:[[w],["https://sts.amazonaws.com",{authSchemes:[{name:Pe,signingName:ye,signingRegion:fe}]}],[Ae,{authSchemes:[{name:Pe,signingName:ye,signingRegion:"{Region}"}]}],[w,"Invalid Configuration: FIPS and custom endpoint are not supported"],[w,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Ie,D],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",D],[w,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",D],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",D],[w,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",D],[w,"DualStack is enabled but this partition does not support DualStack"],[Ae,D],[w,"Invalid Configuration: Missing Region"]]},Ls=2,i=1e8,Ks=new Int32Array([-1,1,-1,0,30,3,1,4,i+14,2,5,i+14,3,25,6,4,24,7,5,i+1,8,6,9,i+13,7,i+1,10,10,i+1,11,11,i+1,12,12,i+1,13,13,i+1,14,14,i+1,15,15,i+1,16,16,i+1,17,17,i+1,18,18,i+1,19,19,i+1,20,20,i+1,21,21,i+1,22,22,i+1,23,23,i+1,i+2,8,i+11,i+12,4,28,26,9,27,i+10,24,i+8,i+9,8,29,i+7,9,i+6,i+7,3,i+3,31,4,i+4,i+5]),Ms=gs.from(Ks,Ls,Re.conditions,Re.results),js=new ps({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),He=(e,t={})=>js.get(e,()=>hs(Ms,{endpointParams:e,logger:t.logger}));ms.aws=Nt;var zs=(e)=>async(t,s,o)=>{if(!o)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let n=await e(t,s,o),u=xe(s)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!u)throw Error(`getEndpointParameterInstructions() is not defined on '${s.commandName}'`);let a=await Ss(o,{getEndpointParameterInstructions:u},t);return Object.assign(n,a)},Gs=async(e,t,s)=>({operation:xe(t).operation,region:await _e(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),Ys=zs(Gs);function Ue(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function ne(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function qe(e){return{schemeId:"smithy.api#noAuth"}}var Qs=(e,t,s)=>(n)=>{let a=e(n).properties?.authSchemes;if(!a)return t(n);let g=[];for(let S of a){let{name:p,properties:f={},...I}=S,P=p.toLowerCase();if(p!==P)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${p}' to '${P}'`);let m;if(P==="sigv4a"){m="aws.auth#sigv4a";let Q=a.find((B)=>{let le=B.name.toLowerCase();return le!=="sigv4a"&&le.startsWith("sigv4")});if(Ne.sigv4aDependency()==="none"&&Q)continue}else if(P.startsWith("sigv4"))m="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${P}'`);let k=s[m];if(!k)throw Error(`Could not find HttpAuthOption create function for '${m}'`);let y=k(n);y.schemeId=m,y.signingProperties={...y.signingProperties||{},...I,...f},g.push(y)}return g},Bs=(e)=>{let t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(qe()),t.push(ne(e));break}default:t.push(Ue(e)),t.push(ne(e))}return t},Js=Qs(He,Bs,{"aws.auth#sigv4":Ue,"aws.auth#sigv4a":ne,"smithy.api#noAuth":qe}),Xs=(e)=>{let t=Ts(e),s=ks(t);return Object.assign(s,{authSchemePreference:_e(e.authSchemePreference??[])})},Zs=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"}),en={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},tn="3.997.47",sn={version:tn};class h extends Jt{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sts#STSServiceException";constructor(e){super(e);Object.setPrototypeOf(this,h.prototype)}}class q extends h{static shapeId="com.amazonaws.sts#ExpiredTokenException";name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,q.prototype)}}class F extends h{static shapeId="com.amazonaws.sts#MalformedPolicyDocumentException";name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,F.prototype)}}class V extends h{static shapeId="com.amazonaws.sts#PackedPolicyTooLargeException";name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});Object.setPrototypeOf(this,V.prototype)}}class L extends h{static shapeId="com.amazonaws.sts#RegionDisabledException";name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});Object.setPrototypeOf(this,L.prototype)}}class K extends h{static shapeId="com.amazonaws.sts#IDPRejectedClaimException";name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});Object.setPrototypeOf(this,K.prototype)}}class M extends h{static shapeId="com.amazonaws.sts#InvalidIdentityTokenException";name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});Object.setPrototypeOf(this,M.prototype)}}class z extends h{static shapeId="com.amazonaws.sts#IDPCommunicationErrorException";name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});Object.setPrototypeOf(this,z.prototype)}}var nn="Arn",on="AccessKeyId",rn="AssumeRole",an="AssumedRoleId",cn="AssumeRoleRequest",un="AssumeRoleResponse",oe="AssumedRoleUser",ln="AssumeRoleWithWebIdentity",dn="AssumeRoleWithWebIdentityRequest",gn="AssumeRoleWithWebIdentityResponse",pn="Audience",re="Credentials",hn="ContextAssertion",Fe="DurationSeconds",mn="Expiration",Sn="ExternalId",vn="ExpiredTokenException",fn="IDPCommunicationErrorException",Pn="IDPRejectedClaimException",yn="InvalidIdentityTokenException",En="Key",An="MalformedPolicyDocumentException",Ve="MinimumSessionTokenSize",Le="Policy",Ke="PolicyArns",In="ProviderArn",wn="ProvidedContexts",Rn="ProvidedContextsListType",Cn="ProvidedContext",_n="PolicyDescriptorType",xn="ProviderId",Me="PackedPolicySize",Tn="PackedPolicyTooLargeException",kn="Provider",je="RoleArn",Dn="RegionDisabledException",Ye="RoleSessionName",bn="SecretAccessKey",On="SubjectFromWebIdentityToken",ie="SourceIdentity",$n="SerialNumber",Nn="SessionToken",Qe="SessionTokenSize",Be="SessionTokenUtilization",Wn="Tags",Hn="TokenCode",Un="TransitiveTagKeys",qn="Tag",Fn="Value",Vn="WebIdentityToken",Ln="arn",Kn="accessKeySecretType",R="awsQueryError",C="client",Mn="clientTokenType",_="error",x="httpError",T="message",jn="policyDescriptorListType",Je="smithy.ts.sdk.synthetic.com.amazonaws.sts",zn="tagListType",c="com.amazonaws.sts",Ze=new be(Je),et=[-3,Je,"STSServiceException",0,[],[]];Ze.registerError(et,h);var A=new be(c),tt=[-3,c,vn,{[R]:["ExpiredTokenException",400],[_]:C,[x]:400},[T],[0]];A.registerError(tt,q);var st=[-3,c,fn,{[R]:["IDPCommunicationError",400],[_]:C,[x]:400},[T],[0]];A.registerError(st,z);var ot=[-3,c,Pn,{[R]:["IDPRejectedClaim",403],[_]:C,[x]:403},[T],[0]];A.registerError(ot,K);var rt=[-3,c,yn,{[R]:["InvalidIdentityToken",400],[_]:C,[x]:400},[T],[0]];A.registerError(rt,M);var it=[-3,c,An,{[R]:["MalformedPolicyDocument",400],[_]:C,[x]:400},[T],[0]];A.registerError(it,F);var at=[-3,c,Tn,{[R]:["PackedPolicyTooLarge",400],[_]:C,[x]:400},[T],[0]];A.registerError(at,V);var ct=[-3,c,Dn,{[R]:["RegionDisabledException",403],[_]:C,[x]:403},[T],[0]];A.registerError(ct,L);var lt=[Ze,A],Gn=[0,c,Kn,8,0],Yn=[0,c,Mn,8,0],ae=[3,c,oe,0,[an,nn],[0,0],2],dt=[3,c,cn,0,[je,Ye,Ke,Le,Fe,Wn,Un,Sn,$n,Hn,ie,wn,Ve],[0,0,()=>ft,0,1,()=>Bn,64,0,0,0,0,()=>Qn,1],2],gt=[3,c,un,0,[re,oe,Me,ie,Be,Qe],[[()=>ce,0],()=>ae,1,0,1,1]],pt=[3,c,dn,0,[je,Ye,Vn,xn,Ke,Le,Fe,Ve],[0,0,[()=>Yn,0],0,()=>ft,0,1,1],3],ht=[3,c,gn,0,[re,On,oe,Me,kn,pn,ie,Be,Qe],[[()=>ce,0],0,()=>ae,1,0,0,0,1,1]],ce=[3,c,re,0,[on,bn,Nn,mn],[0,[()=>Gn,0],0,4],4],mt=[3,c,_n,0,[Ln],[0]],St=[3,c,Cn,0,[In,hn],[0,0]],vt=[3,c,qn,0,[En,Fn],[0,0],2],ft=[1,c,jn,0,()=>mt],Qn=[1,c,Rn,0,()=>St],Bn=[1,c,zn,0,()=>vt],Pt=[9,c,rn,0,()=>dt,()=>gt],yt=[9,c,ln,0,()=>pt,()=>ht],Jn=(e)=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??Ws,base64Encoder:e?.base64Encoder??Ns,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??He,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Js,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Oe},{schemeId:"aws.auth#sigv4a",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new $e},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ce}],logger:e?.logger??new Xt,protocol:e?.protocol??Fs,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:lt,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",sha256:e?.sha256??Vs,signerConstructor:e?.signerConstructor??Ne,urlParser:e?.urlParser??Ps,utf8Decoder:e?.utf8Decoder??$s,utf8Encoder:e?.utf8Encoder??Os}),Xn=(e)=>{Zt(process.version);let t=is(e),s=()=>t().then(es),o=Jn(e);Wt(process.version);let n={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??E(bs,n),bodyLengthChecker:e?.bodyLengthChecker??Hs,defaultUserAgentProvider:e?.defaultUserAgentProvider??Ht({serviceId:o.serviceId,clientVersion:sn.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(u)=>u.getIdentityProvider("aws.auth#sigv4")||(async(a)=>await e.credentialDefaultProvider(a?.__config||{})()),signer:new Oe},{schemeId:"aws.auth#sigv4a",identityProvider:(u)=>u.getIdentityProvider("aws.auth#sigv4a"),signer:new $e},{schemeId:"smithy.api#noAuth",identityProvider:(u)=>u.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ce}],maxAttempts:e?.maxAttempts??E(Rs,e),region:e?.region??E(us,{...ls,...n}),requestHandler:qs.create(e?.requestHandler??s),retryMode:e?.retryMode??E({...ws,default:async()=>(await s()).retryMode||Is},e),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??E(Ds,n),streamCollector:e?.streamCollector??Us,useDualstackEndpoint:e?.useDualstackEndpoint??E(cs,n),useFipsEndpoint:e?.useFipsEndpoint??E(as,n),userAgentAppId:e?.userAgentAppId??E(Ut,n)}},Zn=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:s,credentials:o}=e;return{setHttpAuthScheme(n){let u=t.findIndex((a)=>a.schemeId===n.schemeId);if(u===-1)t.push(n);else t.splice(u,1,n)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(n){s=n},httpAuthSchemeProvider(){return s},setCredentials(n){o=n},credentials(){return o}}},eo=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),to=(e,t)=>{let s=Object.assign(qt(e),ts(e),ys(e),Zn(e));return t.forEach((o)=>o.configure(s)),Object.assign(e,Ft(s),ss(s),Es(s),eo(s))};class H extends De{config;constructor(...[e]){let t=Xn(e||{});super(t);this.initConfig=t;let s=Zs(t),o=Vt(s),n=Cs(o),u=ds(n),a=Lt(u),g=vs(a),S=Xs(g),p=to(S,e?.extensions||[]);this.config=p,this.middlewareStack.use(xs(this.config)),this.middlewareStack.use(Kt(this.config)),this.middlewareStack.use(_s(this.config)),this.middlewareStack.use(As(this.config)),this.middlewareStack.use(Mt(this.config)),this.middlewareStack.use(jt(this.config)),this.middlewareStack.use(zt(this.config)),this.middlewareStack.use(Yt(this.config,{httpAuthSchemeParametersProvider:Ys,identityProviderConfigProvider:async(f)=>new Qt({"aws.auth#sigv4":f.credentials,"aws.auth#sigv4a":f.credentials})})),this.middlewareStack.use(Bt(this.config))}destroy(){super.destroy()}}var Et=ns(en,"AWSSecurityTokenServiceV20110615","STSClient",fs),At={},It=(e,t,s,o)=>[];class G extends Et(At,It,"AssumeRole",Pt){}class Y extends Et(At,It,"AssumeRoleWithWebIdentity",yt){}var so={AssumeRoleCommand:G,AssumeRoleWithWebIdentityCommand:Y};class ue extends H{}os(so,ue);var wt=(e)=>{if(typeof e?.Arn==="string"){let t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}return},Rt=async(e,t,s,o={})=>{let n=typeof e==="function"?await e():e,u=typeof t==="function"?await t():t,a="",g=n??u??(a=await Gt(o)());return s?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${n} (credential provider clientConfig)`,`${u} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),g},no=(e,t)=>{let s,o;return async(n,u)=>{if(o=n,!s){let{logger:f=e?.parentClientConfig?.logger,profile:I=e?.parentClientConfig?.profile,region:P,requestHandler:m=e?.parentClientConfig?.requestHandler,credentialProviderLogger:k,userAgentAppId:y=e?.parentClientConfig?.userAgentAppId}=e,Q=await Rt(P,e?.parentClientConfig?.region,k,{logger:f,profile:I}),B=!Ct(m);s=new t({...e,userAgentAppId:y,profile:I,credentialDefaultProvider:()=>async()=>o,region:Q,requestHandler:B?m:void 0,logger:f})}let{Credentials:a,AssumedRoleUser:g}=await s.send(new G(u));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${u.RoleArn}`);let S=wt(g),p={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...S&&{accountId:S}};return se(p,"CREDENTIALS_STS_ASSUME_ROLE","i"),p}},oo=(e,t)=>{let s;return async(o)=>{if(!s){let{logger:S=e?.parentClientConfig?.logger,profile:p=e?.parentClientConfig?.profile,region:f,requestHandler:I=e?.parentClientConfig?.requestHandler,credentialProviderLogger:P,userAgentAppId:m=e?.parentClientConfig?.userAgentAppId}=e,k=await Rt(f,e?.parentClientConfig?.region,P,{logger:S,profile:p}),y=!Ct(I);s=new t({...e,userAgentAppId:m,profile:p,region:k,requestHandler:y?I:void 0,logger:S})}let{Credentials:n,AssumedRoleUser:u}=await s.send(new Y(o));if(!n||!n.AccessKeyId||!n.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${o.RoleArn}`);let a=wt(u),g={accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.SessionToken,expiration:n.Expiration,...n.CredentialScope&&{credentialScope:n.CredentialScope},...a&&{accountId:a}};if(a)se(g,"RESOLVED_ACCOUNT_ID","T");return se(g,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),g}},Ct=(e)=>e?.metadata?.handlerProtocol==="h2",_t=(e,t)=>{if(!t)return e;else return class extends e{constructor(o){super(o);for(let n of t)this.middlewareStack.use(n)}}},xt=(e={},t)=>no(e,_t(H,t)),Tt=(e={},t)=>oo(e,_t(H,t)),ro=(e)=>(t)=>e({roleAssumer:xt(t),roleAssumerWithWebIdentity:Tt(t),...t});var co=Pt,uo=G,lo=dt,go=gt,po=yt,ho=Y,mo=pt,So=ht,vo=ae,fo=ce,Po=q,yo=tt,Eo=z,Ao=st,Io=K,wo=ot,Ro=M,Co=rt,_o=F,xo=it,To=V,ko=at,Do=mt,bo=St,Oo=L,$o=ct,No=ue,Wo=H,Ho=h,Uo=et,qo=vt,Fo=ro,Vo=lt,Lo=xt,Ko=Tt;export{io as $Command,ao as __Client,co as AssumeRole$,uo as AssumeRoleCommand,lo as AssumeRoleRequest$,go as AssumeRoleResponse$,po as AssumeRoleWithWebIdentity$,ho as AssumeRoleWithWebIdentityCommand,mo as AssumeRoleWithWebIdentityRequest$,So as AssumeRoleWithWebIdentityResponse$,vo as AssumedRoleUser$,fo as Credentials$,Po as ExpiredTokenException,yo as ExpiredTokenException$,Eo as IDPCommunicationErrorException,Ao as IDPCommunicationErrorException$,Io as IDPRejectedClaimException,wo as IDPRejectedClaimException$,Ro as InvalidIdentityTokenException,Co as InvalidIdentityTokenException$,_o as MalformedPolicyDocumentException,xo as MalformedPolicyDocumentException$,To as PackedPolicyTooLargeException,ko as PackedPolicyTooLargeException$,Do as PolicyDescriptorType$,bo as ProvidedContext$,Oo as RegionDisabledException,$o as RegionDisabledException$,No as STS,Wo as STSClient,Ho as STSServiceException,Uo as STSServiceException$,qo as Tag$,Fo as decorateDefaultCredentialProvider,Vo as errorTypeRegistries,Lo as getDefaultRoleAssumer,Ko as getDefaultRoleAssumerWithWebIdentity};
package/chunk-r0pm6dap.js DELETED
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{m,h,f,Pi}from"./chunk-f97ma522.js";import{b,ue}from"./chunk-t3mq64c8.js";import{ie,De,d}from"./chunk-kcn3af9r.js";var x=function(e,t){if(typeof e==="string"&&/^\.\.?\//.test(e))return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(i,l,p,s,n){return l?t?".jsx":".js":p&&(!s||!n)?i:p+s+"."+n.toLowerCase()+"js"});return e},g=null,T=null,y=null,o=(e)=>import(x(e)),A="node:fs",R="node:os",P="node:path";if(typeof process<"u"&&(process.versions?.node||process.versions?.bun))o(A).then((e)=>{g=e.existsSync}),o(R).then((e)=>{T=e.homedir}),o(P).then((e)=>{y=e.join});var Do="ANTHROPIC_AUTH_TOKEN",bi="ANTHROPIC_OAUTH_TOKEN",Si="ANTHROPIC_API_KEY",Gr="ANTHROPIC_FEDERATION_RULE_ID",zr="ANTHROPIC_ORGANIZATION_ID",jr="ANTHROPIC_SERVICE_ACCOUNT_ID",Vr="ANTHROPIC_IDENTITY_TOKEN_FILE",Kr="ANTHROPIC_WORKSPACE_ID";var _=()=>ie(()=>import("./chunk-j1h7pabk.js"));var ye=()=>ie(()=>import("./chunk-fzefs6kn.js"));var r=()=>({classify:async(e,t,i)=>(await import("./chunk-j02kqpvq.js")).classify(e,t,i)});var a={"openai-decisions":{"classifier:gpt-6-luna":{type:"classifier",id:"gpt-6-luna",name:"GPT-6 Luna",api:"openai-decisions",provider:"openai",baseUrl:"https://api.openai.com/v1",input:["text","image"],cost:{input:0.1,output:0,cacheRead:0,cacheWrite:0,tiers:[{inputTokensAbove:272000,input:0.2,output:0,cacheRead:0,cacheWrite:0}]},contextWindow:922000}},"openai-responses":{"chat:gpt-4":{id:"gpt-4",name:"GPT-4",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text"],cost:{input:30,output:60,cacheRead:0,cacheWrite:0},contextWindow:8192,maxTokens:8192,compat:{supportsStrictMode:!0},type:"chat"},"chat:gpt-4-turbo":{id:"gpt-4-turbo",name:"GPT-4 Turbo",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:10,output:30,cacheRead:0,cacheWrite:0},contextWindow:128000,maxTokens:4096,compat:{supportsStrictMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:2,output:8,cacheRead:0.5,cacheWrite:0},contextWindow:1047576,maxTokens:32768,compat:{supportsStrictMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-4.1-mini":{id:"gpt-4.1-mini",name:"GPT-4.1 mini",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:0.4,output:1.6,cacheRead:0.1,cacheWrite:0},contextWindow:1047576,maxTokens:32768,compat:{supportsStrictMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-4.1-nano":{id:"gpt-4.1-nano",name:"GPT-4.1 nano",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:0.1,output:0.4,cacheRead:0.025,cacheWrite:0},contextWindow:1047576,maxTokens:32768,compat:{supportsStrictMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-4o":{id:"gpt-4o",name:"GPT-4o",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128000,maxTokens:16384,compat:{supportsStrictMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-4o-2024-05-13":{id:"gpt-4o-2024-05-13",name:"GPT-4o (2024-05-13)",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:5,output:15,cacheRead:0,cacheWrite:0},contextWindow:128000,maxTokens:4096,compat:{supportsStrictMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-4o-2024-08-06":{id:"gpt-4o-2024-08-06",name:"GPT-4o (2024-08-06)",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128000,maxTokens:16384,compat:{supportsStrictMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-4o-2024-11-20":{id:"gpt-4o-2024-11-20",name:"GPT-4o (2024-11-20)",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:2.5,output:10,cacheRead:1.25,cacheWrite:0},contextWindow:128000,maxTokens:16384,compat:{supportsStrictMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-4o-mini":{id:"gpt-4o-mini",name:"GPT-4o mini",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:0.15,output:0.6,cacheRead:0.075,cacheWrite:0},contextWindow:128000,maxTokens:16384,compat:{supportsStrictMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5":{id:"gpt-5",name:"GPT-5",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:0.125,cacheWrite:0},contextWindow:400000,maxTokens:128000,thinkingLevelMap:{off:null,minimal:"minimal",low:"low",medium:"medium",high:"high",xhigh:null,max:null},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5-chat-latest":{id:"gpt-5-chat-latest",name:"GPT-5 Chat Latest",api:"openai-responses",baseUrl:"https://api.openai.com/v1",provider:"openai",reasoning:!1,input:["text","image"],cost:{input:1.25,output:10,cacheRead:0.125,cacheWrite:0},contextWindow:128000,maxTokens:16384,thinkingLevelMap:{off:null},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 Mini",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:0.25,output:2,cacheRead:0.025,cacheWrite:0},contextWindow:400000,maxTokens:128000,thinkingLevelMap:{off:null,minimal:"minimal",low:"low",medium:"medium",high:"high",xhigh:null,max:null},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5-nano":{id:"gpt-5-nano",name:"GPT-5 Nano",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:0.05,output:0.4,cacheRead:0.005,cacheWrite:0},contextWindow:400000,maxTokens:128000,thinkingLevelMap:{off:null,minimal:"minimal",low:"low",medium:"medium",high:"high",xhigh:null,max:null},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5-pro":{id:"gpt-5-pro",name:"GPT-5 Pro",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:15,output:120,cacheRead:0,cacheWrite:0},contextWindow:400000,maxTokens:128000,thinkingLevelMap:{off:null,minimal:null,low:null,medium:null,high:"high",xhigh:null,max:null},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.1":{id:"gpt-5.1",name:"GPT-5.1",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.25,output:10,cacheRead:0.125,cacheWrite:0},contextWindow:400000,maxTokens:128000,thinkingLevelMap:{off:"none",minimal:null,low:"low",medium:"medium",high:"high",xhigh:null,max:null},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.2":{id:"gpt-5.2",name:"GPT-5.2",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:0.175,cacheWrite:0},contextWindow:400000,maxTokens:128000,thinkingLevelMap:{off:"none",minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:null},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.2-chat-latest":{id:"gpt-5.2-chat-latest",name:"GPT-5.2 Chat",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:0.175,cacheWrite:0},contextWindow:128000,maxTokens:16384,thinkingLevelMap:{off:null,minimal:null,low:null,medium:"medium",high:null,xhigh:"xhigh",max:null},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.2-pro":{id:"gpt-5.2-pro",name:"GPT-5.2 Pro",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:21,output:168,cacheRead:0,cacheWrite:0},contextWindow:400000,maxTokens:128000,thinkingLevelMap:{off:null,minimal:null,low:null,medium:"medium",high:"high",xhigh:"xhigh",max:null},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.3-chat-latest":{id:"gpt-5.3-chat-latest",name:"GPT-5.3 Chat (latest)",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!1,input:["text","image"],cost:{input:1.75,output:14,cacheRead:0.175,cacheWrite:0},contextWindow:128000,maxTokens:16384,thinkingLevelMap:{off:null,xhigh:"xhigh"},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.3-codex":{id:"gpt-5.3-codex",name:"GPT-5.3 Codex",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:0.175,cacheWrite:0},contextWindow:400000,maxTokens:128000,thinkingLevelMap:{off:"none",minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:null},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.3-codex-spark":{id:"gpt-5.3-codex-spark",name:"GPT-5.3 Codex Spark",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:0.175,cacheWrite:0},contextWindow:128000,maxTokens:32000,thinkingLevelMap:{off:null,minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:null},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:0.25,cacheWrite:0,tiers:[{inputTokensAbove:272000,input:5,output:22.5,cacheRead:0.5,cacheWrite:0}]},contextWindow:272000,maxTokens:128000,thinkingLevelMap:{off:"none",minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:null},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0,supportsAdditionalTools:!0,supportsToolSearch:!0,supportsMidConvoSystemMessages:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.4-mini":{id:"gpt-5.4-mini",name:"GPT-5.4 mini",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:0.75,output:4.5,cacheRead:0.075,cacheWrite:0},contextWindow:400000,maxTokens:128000,thinkingLevelMap:{off:"none",minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:null},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0,supportsAdditionalTools:!0,supportsToolSearch:!0,supportsMidConvoSystemMessages:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.4-nano":{id:"gpt-5.4-nano",name:"GPT-5.4 nano",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:0.2,output:1.25,cacheRead:0.02,cacheWrite:0},contextWindow:400000,maxTokens:128000,thinkingLevelMap:{off:"none",minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:null},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.4-pro":{id:"gpt-5.4-pro",name:"GPT-5.4 Pro",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:0,cacheWrite:0,tiers:[{inputTokensAbove:272000,input:60,output:270,cacheRead:0,cacheWrite:0}]},contextWindow:1050000,maxTokens:128000,thinkingLevelMap:{off:null,minimal:null,low:null,medium:"medium",high:"high",xhigh:"xhigh",max:null},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0,supportsAdditionalTools:!0,supportsToolSearch:!0,supportsMidConvoSystemMessages:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:0.5,cacheWrite:0,tiers:[{inputTokensAbove:272000,input:10,output:45,cacheRead:1,cacheWrite:0}]},contextWindow:272000,maxTokens:128000,thinkingLevelMap:{off:"none",minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:null},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0,supportsAdditionalTools:!0,supportsToolSearch:!0,supportsMidConvoSystemMessages:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.5-pro":{id:"gpt-5.5-pro",name:"GPT-5.5 Pro",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:30,output:180,cacheRead:0,cacheWrite:0,tiers:[{inputTokensAbove:272000,input:60,output:270,cacheRead:0,cacheWrite:0}]},contextWindow:1050000,maxTokens:128000,thinkingLevelMap:{off:null,minimal:null,low:null,medium:"medium",high:"high",xhigh:"xhigh",max:null},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.6-luna":{id:"gpt-5.6-luna",name:"GPT-5.6 Luna",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:0.2,output:1.2,cacheRead:0.02,cacheWrite:0.25,tiers:[{inputTokensAbove:272000,input:0.4,output:1.8,cacheRead:0.04,cacheWrite:0.5}]},contextWindow:272000,maxTokens:128000,thinkingLevelMap:{off:"none",minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:"max"},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0,supportsAdditionalTools:!0,supportsToolSearch:!0,supportsMidConvoSystemMessages:!0,supportsExplicitPromptCacheMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.6-sol":{id:"gpt-5.6-sol",name:"GPT-5.6 Sol",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:4,output:20,cacheRead:0.4,cacheWrite:5,tiers:[{inputTokensAbove:272000,input:8,output:30,cacheRead:0.8,cacheWrite:10}]},contextWindow:272000,maxTokens:128000,thinkingLevelMap:{off:"none",minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:"max"},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0,supportsAdditionalTools:!0,supportsToolSearch:!0,supportsMidConvoSystemMessages:!0,supportsExplicitPromptCacheMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.6-terra":{id:"gpt-5.6-terra",name:"GPT-5.6 Terra",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:0.2,cacheWrite:2.5,tiers:[{inputTokensAbove:272000,input:4,output:18,cacheRead:0.4,cacheWrite:5}]},contextWindow:272000,maxTokens:128000,thinkingLevelMap:{off:"none",minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:"max"},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0,supportsAdditionalTools:!0,supportsToolSearch:!0,supportsMidConvoSystemMessages:!0,supportsExplicitPromptCacheMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-6-astra":{id:"gpt-6-astra",name:"GPT-6 Astra",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5,tiers:[{inputTokensAbove:272000,input:20,output:75,cacheRead:2,cacheWrite:25}]},contextWindow:272000,maxTokens:128000,thinkingLevelMap:{off:null,minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:"max"},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0,supportsAdditionalTools:!0,supportsToolSearch:!0,supportsMidConvoSystemMessages:!0,supportsExplicitPromptCacheMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-6-luna":{id:"gpt-6-luna",name:"GPT-6 Luna",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:0.1,output:0.5,cacheRead:0.01,cacheWrite:0.125,tiers:[{inputTokensAbove:272000,input:0.2,output:0.75,cacheRead:0.02,cacheWrite:0.25}]},contextWindow:272000,maxTokens:128000,thinkingLevelMap:{off:"none",minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:"max"},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0,supportsAdditionalTools:!0,supportsToolSearch:!0,supportsMidConvoSystemMessages:!0,supportsExplicitPromptCacheMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-6-sol":{id:"gpt-6-sol",name:"GPT-6 Sol",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:0.2,cacheWrite:2.5,tiers:[{inputTokensAbove:272000,input:4,output:15,cacheRead:0.4,cacheWrite:5}]},contextWindow:272000,maxTokens:128000,thinkingLevelMap:{off:"none",minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:"max"},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0,supportsAdditionalTools:!0,supportsToolSearch:!0,supportsMidConvoSystemMessages:!0,supportsExplicitPromptCacheMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-6.1-sol":{id:"gpt-6.1-sol",name:"GPT-6.1 Sol",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:0.1,cacheWrite:2.5,tiers:[{inputTokensAbove:272000,input:4,output:15,cacheRead:0.2,cacheWrite:5}]},contextWindow:272000,maxTokens:128000,thinkingLevelMap:{off:null,minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:"max"},compat:{supportsStrictMode:!0,supportsOpenAIGrammarTools:!0,supportsAdditionalTools:!0,supportsToolSearch:!0,supportsMidConvoSystemMessages:!0,supportsExplicitPromptCacheMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-daybreak-blue-latest":{id:"gpt-daybreak-blue-latest",name:"Daybreak Blue",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:4,output:20,cacheRead:0.4,cacheWrite:5,tiers:[{inputTokensAbove:272000,input:8,output:30,cacheRead:0.8,cacheWrite:10}]},contextWindow:1050000,maxTokens:128000,thinkingLevelMap:{off:"none",minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:"max"},compat:{supportsStrictMode:!0,supportsExplicitPromptCacheMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-daybreak-red-latest":{id:"gpt-daybreak-red-latest",name:"Daybreak Red",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:12.5,output:75,cacheRead:1.25,cacheWrite:15.625},contextWindow:400000,maxTokens:128000,thinkingLevelMap:{off:"none",minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:"max"},compat:{supportsStrictMode:!0,supportsExplicitPromptCacheMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-realtime-2.1":{id:"gpt-realtime-2.1",name:"GPT-Realtime-2.1",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:4,output:24,cacheRead:0.4,cacheWrite:0},contextWindow:128000,maxTokens:32000,thinkingLevelMap:{off:null,minimal:"minimal",low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:null},compat:{supportsStrictMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:o1":{id:"o1",name:"o1",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:15,output:60,cacheRead:7.5,cacheWrite:0},contextWindow:200000,maxTokens:1e5,thinkingLevelMap:{off:null,minimal:null,low:"low",medium:"medium",high:"high",xhigh:null,max:null},compat:{supportsStrictMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:o1-pro":{id:"o1-pro",name:"o1-pro",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:150,output:600,cacheRead:0,cacheWrite:0},contextWindow:200000,maxTokens:1e5,thinkingLevelMap:{off:null,minimal:null,low:"low",medium:"medium",high:"high",xhigh:null,max:null},compat:{supportsStrictMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:o3":{id:"o3",name:"o3",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:2,output:8,cacheRead:0.5,cacheWrite:0},contextWindow:200000,maxTokens:1e5,thinkingLevelMap:{off:null,minimal:null,low:"low",medium:"medium",high:"high",xhigh:null,max:null},compat:{supportsStrictMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:o3-mini":{id:"o3-mini",name:"o3-mini",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text"],cost:{input:1.1,output:4.4,cacheRead:0.55,cacheWrite:0},contextWindow:200000,maxTokens:1e5,thinkingLevelMap:{off:null,minimal:null,low:"low",medium:"medium",high:"high",xhigh:null,max:null},compat:{supportsStrictMode:!0},type:"chat"},"chat:o3-pro":{id:"o3-pro",name:"o3-pro",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:20,output:80,cacheRead:0,cacheWrite:0},contextWindow:200000,maxTokens:1e5,thinkingLevelMap:{off:null,minimal:null,low:"low",medium:"medium",high:"high",xhigh:null,max:null},compat:{supportsStrictMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:o4-mini":{id:"o4-mini",name:"o4-mini",api:"openai-responses",provider:"openai",baseUrl:"https://api.openai.com/v1",reasoning:!0,input:["text","image"],cost:{input:1.1,output:4.4,cacheRead:0.275,cacheWrite:0},contextWindow:200000,maxTokens:1e5,thinkingLevelMap:{off:null,minimal:null,low:"low",medium:"medium",high:"high",xhigh:null,max:null},compat:{supportsStrictMode:!0},inputLimits:{maxRequestBytes:536870912,images:{maxPerRequest:1500,resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"}}};var u=m("openai",a),N=h("openai",a),c=f("openai",a);function Qr(){return d({id:"openai",name:"OpenAI",baseUrl:"https://api.openai.com/v1",auth:{apiKey:b("OpenAI API key",["OPENAI_API_KEY"]),oauth:ue({name:"OpenAI (ChatGPT subscription)",isSubscription:!0,loginLabel:"Sign in with ChatGPT",load:Pi})},models:[...Object.values(u),...Object.values(c)],filterAllModels:(e,t)=>t?.type==="oauth"?e.filter((i)=>!De(i,"classifier")):e,api:ye(),classifiers:{"openai-decisions":r()}})}
3
- export{Do,bi,Si,Gr,zr,jr,Vr,Kr,_,ye,Qr};
package/chunk-rck0kx09.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{U}from"./chunk-frjqjdkx.js";import{v}from"./chunk-dkpgstr2.js";import{a}from"./chunk-g5mdw639.js";var m=a(U()),t=a(v());import{readFileSync as _}from"fs";var c=(e)=>async(s)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:o,roleSessionName:r,webIdentityToken:i,providerId:n,policyArns:f,policy:g,durationSeconds:E}=e,{roleAssumerWithWebIdentity:l}=e;if(!l){let{getDefaultRoleAssumerWithWebIdentity:p}=await import("./chunk-qprms4rt.js");l=p({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...s?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return l({RoleArn:o,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:i,ProviderId:n,PolicyArns:f,Policy:g,DurationSeconds:E})};var d="AWS_WEB_IDENTITY_TOKEN_FILE",S="AWS_ROLE_ARN",T="AWS_ROLE_SESSION_NAME",N=(e={})=>async(s)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let o=e?.webIdentityTokenFile??process.env[d],r=e?.roleArn??process.env[S],i=e?.roleSessionName??process.env[T];if(!o||!r)throw new t.CredentialsProviderError("Web identity configuration not specified",{logger:e.logger});let n=await c({...e,webIdentityToken:t.externalDataInterceptor?.getTokenRecord?.()[o]??_(o,{encoding:"ascii"}),roleArn:r,roleSessionName:i})(s);if(o===process.env[d])m.setCredentialFeature(n,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return n};export{N as fromTokenFile};
package/chunk-rsn8ad6s.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{tn,rn,Fn}from"./chunk-40nk2jjt.js";export{tn as ENV_KEY,rn as ENV_SECRET,Fn as fromEnv};
package/chunk-skzh3q1s.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{U}from"./chunk-frjqjdkx.js";import{v}from"./chunk-dkpgstr2.js";import{a}from"./chunk-g5mdw639.js";var u=a(v());var M=a(v());var p=a(U()),d=a(v());var P=a(U()),f=a(v()),S=(e,t,r)=>{let o={EcsContainer:async(s)=>{let{fromHttp:i}=await import("./chunk-hambwbfz.js"),{fromContainerMetadata:n}=await import("./chunk-2shwjp8q.js");return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>f.chain(i(s??{}),n(s))().then(m)},Ec2InstanceMetadata:async(s)=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:i}=await import("./chunk-2shwjp8q.js");return async()=>i(s)().then(m)},Environment:async(s)=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:i}=await import("./chunk-rsn8ad6s.js");return async()=>i(s)().then(m)}};if(e in o)return o[e];else throw new f.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},m=(e)=>P.setCredentialFeature(e,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");var R=(e,{profile:t="default",logger:r}={})=>Boolean(e)&&typeof e==="object"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(q(e,{profile:t,logger:r})||H(e,{profile:t,logger:r})),q=(e,{profile:t,logger:r})=>{let o=typeof e.source_profile==="string"&&typeof e.credential_source>"u";if(o)r?.debug?.(` ${t} isAssumeRoleWithSourceProfile source_profile=${e.source_profile}`);return o},H=(e,{profile:t,logger:r})=>{let o=typeof e.credential_source==="string"&&typeof e.source_profile>"u";if(o)r?.debug?.(` ${t} isCredentialSourceProfile credential_source=${e.credential_source}`);return o},A=async(e,t,r,o,s={},i)=>{r.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let n=t[e],{source_profile:c,region:B}=n;if(!r.roleAssumer){let{getDefaultRoleAssumer:l}=await import("./chunk-qprms4rt.js");r.roleAssumer=l({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:{...o,...r?.parentClientConfig,region:B??r?.parentClientConfig?.region??o?.region}},r.clientPlugins)}if(c&&c in s)throw new d.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${d.getProfileName(r)}. Profiles visited: `+Object.keys(s).join(", "),{logger:r.logger});r.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${c?`source_profile=[${c}]`:`profile=[${e}]`}`);let E=c?i(c,t,r,o,{...s,[c]:!0},I(t[c]??{})):(await S(n.credential_source,e,r.logger)(r))();if(I(n))return E.then((l)=>p.setCredentialFeature(l,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let l={RoleArn:n.role_arn,RoleSessionName:n.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:n.external_id,DurationSeconds:parseInt(n.duration_seconds||"3600",10)},{mfa_serial:_}=n;if(_){if(!r.mfaCodeProvider)throw new d.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:r.logger,tryNextLink:!1});l.SerialNumber=_,l.TokenCode=await r.mfaCodeProvider(_)}let K=await E;return r.roleAssumer(K,l).then((G)=>p.setCredentialFeature(G,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},I=(e)=>!e.role_arn&&!!e.credential_source;var L=a(U()),O=(e)=>Boolean(e&&e.login_session),b=async(e,t,r)=>{let{fromLoginCredentials:o}=await import("./chunk-nrggp4x6.js"),s=await o({...t,profile:e})({callerClientConfig:r});return L.setCredentialFeature(s,"CREDENTIALS_PROFILE_LOGIN","AC")};var x=a(U()),k=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.credential_process==="string",F=async(e,t)=>{let{fromProcess:r}=await import("./chunk-k8j3fvx5.js"),o=await r({...e,profile:t})();return x.setCredentialFeature(o,"CREDENTIALS_PROFILE_PROCESS","v")};var C=a(U()),h=async(e,t,r={},o)=>{let{fromSSO:s}=await import("./chunk-gyp2jn7d.js");return s({profile:e,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:o}).then((i)=>{if(t.sso_session)return C.setCredentialFeature(i,"CREDENTIALS_PROFILE_SSO","r");else return C.setCredentialFeature(i,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},D=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");var T=a(U()),y=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.aws_access_key_id==="string"&&typeof e.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1&&["undefined","string"].indexOf(typeof e.aws_account_id)>-1,g=async(e,t)=>{t?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let r={accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,...e.aws_credential_scope&&{credentialScope:e.aws_credential_scope},...e.aws_account_id&&{accountId:e.aws_account_id}};return T.setCredentialFeature(r,"CREDENTIALS_PROFILE","n")};var W=a(U()),N=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.web_identity_token_file==="string"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,j=async(e,t,r)=>{let{fromTokenFile:o}=await import("./chunk-rck0kx09.js"),s=await o({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity,logger:t.logger,parentClientConfig:t.parentClientConfig})({callerClientConfig:r});return W.setCredentialFeature(s,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")};var w=async(e,t,r,o,s={},i=!1)=>{let n=t[e];if(Object.keys(s).length>0&&y(n))return g(n,r);if(i||R(n,{profile:e,logger:r.logger}))return A(e,t,r,o,s,w);if(y(n))return g(n,r);if(N(n))return j(n,r,o);if(k(n))return F(r,e);if(D(n))return await h(e,n,r,o);if(O(n))return b(e,r,o);throw new M.CredentialsProviderError(`Could not resolve credentials using profile: [${e}] in configuration/credentials file(s).`,{logger:r.logger})};var V=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let r=await u.parseKnownFiles(e);return w(u.getProfileName({profile:e.profile??t?.profile}),r,e,t)};export{V as fromIni};
package/chunk-sm4b3q49.js DELETED
@@ -1,3 +0,0 @@
1
- // @bun
2
- var A=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],I=["content-type","cache-control","allow"];function p(e){let r=e.path;if(!r?.startsWith("/api/")||/[\\\r\n#]/.test(r))throw Error("request path must start with /api/");let n=new URL(r,"http://basalt.internal");if(n.origin!=="http://basalt.internal"||!n.pathname.startsWith("/api/"))throw Error("request path must stay within /api/");let o=e.method??"GET";if(!A.includes(o))throw Error("Unsupported request method");if(e.body!==void 0&&(!e.body||typeof e.body!=="object"||Array.isArray(e.body)))throw Error("request body must be a JSON object");if(e.body!==void 0&&(o==="GET"||o==="HEAD"))throw Error("GET and HEAD requests cannot have a body");let s=e.timeoutMs??1e4;if(!Number.isSafeInteger(s)||s<1||s>60000)throw Error("timeoutMs must be an integer between 1 and 60000");return{url:n,method:o,timeoutMs:s}}function g(e){let r={};for(let n of I){let o=e.headers.get(n);if(o)r[n]=o.slice(0,500)}return r}async function M(e,r){let n=e.getReader();r(()=>n.cancel());let o=[],s=0,i=!1;while(!0){let t=await n.read();if(t.done)break;let d=20480-s;if(o.push(t.value.subarray(0,d)),s+=Math.min(t.value.length,d),t.value.length>d){i=!0,await n.cancel();break}}let u=new Uint8Array(s),c=0;for(let t of o)u.set(t,c),c+=t.length;return{text:new TextDecoder().decode(u,{stream:i}),truncated:i}}async function cr(e,r,n){let{url:o,method:s,timeoutMs:i}=p(r),u=e.http;if(!u)throw Error("HTTP API is not attached; start the Basalt server first");let c=new AbortController,t=n?AbortSignal.any([n,c.signal]):c.signal;t.throwIfAborted();let d,b=()=>{d?.().catch(()=>{})},E=async()=>{let h=r.body!==void 0,a=await u.request(new Request(o.toString(),{method:s,headers:h?{"content-type":"application/json"}:void 0,body:h?JSON.stringify(r.body):void 0,signal:t}));if(t.aborted)throw await a.body?.cancel(),Error("API request cancelled");let m=a.body?await M(a.body,(T)=>{d=T}):{text:"",truncated:!1};return{status:a.status,headers:g(a),body:m.text,truncated:m.truncated}},f,l,y=new Promise((h,a)=>{if(l=()=>{a(Error("API request cancelled")),b()},t.addEventListener("abort",l,{once:!0}),t.aborted)l()}),w=new Promise((h,a)=>{f=setTimeout(()=>{a(Error(`API request timed out after ${i}ms`)),c.abort(),b()},i)});try{return await Promise.race([E(),y,w])}finally{if(clearTimeout(f),l)t.removeEventListener("abort",l)}}
3
- export{cr};
package/chunk-ste3ek53.js DELETED
@@ -1,3 +0,0 @@
1
- // @bun
2
- var f=new Set;function so(r){return f.add(r),()=>{f.delete(r)}}function xs(r){let t=[];for(let s of f)try{s(r)}catch(e){t.push(e)}if(t.length>0)throw AggregateError(t,"Failed to cleanup session resources")}var a=(1n<<41n)-1n,u=-1,n;function Sn(r){let t=r??Date.now();if(!Number.isInteger(t)||t<0||t>281474976710655)throw RangeError("UUIDv7 timestamp must be an integer between 0 and 281474976710655");let s=r===void 0?Math.max(t,u):r;if(r===void 0)u=s;let e=new Uint8Array(16);if(globalThis.crypto.getRandomValues(e),n===void 0)n=BigInt(e[1])<<32n|BigInt(e[2])<<24n|BigInt(e[3])<<16n|BigInt(e[4])<<8n|BigInt(e[5]);else{if(n===a)throw RangeError("UUIDv7 generator sequence exhausted");n++}let c=BigInt(s);for(let o=5;o>=0;o--)e[o]=Number(c>>BigInt((5-o)*8))&255;e[6]=112|Number(n>>37n&0x0fn),e[7]=Number(n>>29n&0xffn),e[8]=128|Number(n>>23n&0x3fn),e[9]=Number(n>>15n&0xffn),e[10]=Number(n>>7n&0xffn),e[11]=Number((n&0x7fn)<<1n)|e[11]&1;let i=Array.from(e,(o)=>o.toString(16).padStart(2,"0"));return`${i.slice(0,4).join("")}-${i.slice(4,6).join("")}-${i.slice(6,8).join("")}-${i.slice(8,10).join("")}-${i.slice(10).join("")}`}
3
- export{so,xs,Sn};
package/chunk-trw86cmb.js DELETED
@@ -1,11 +0,0 @@
1
- // @bun
2
- import{xn,H,d}from"./chunk-kcn3af9r.js";var v="faux",L="faux",b="faux-1",Z="Faux Model",G="http://localhost:0",V=3,F=5,E={input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}};function pn(e){return{type:"text",text:e}}function ro(e){return{type:"thinking",thinking:e}}function ws(e,t,n={}){return{type:"toolCall",id:n.id??I("tool"),name:e,arguments:t}}function X(e){if(typeof e==="string")return[pn(e)];return Array.isArray(e)?e:[e]}function no(e,t={}){return{role:"assistant",content:X(e),api:v,provider:L,model:b,usage:E,stopReason:t.stopReason??"stop",...t.deferred===void 0?{}:{deferred:t.deferred},...t.errorMessage===void 0?{}:{errorMessage:t.errorMessage},...t.responseId===void 0?{}:{responseId:t.responseId},timestamp:t.timestamp??Date.now()}}function U(e){return Math.ceil(e.length/4)}function I(e){return`${e}:${Date.now()}:${Math.random().toString(36).slice(2)}`}function P(e){if(typeof e==="string")return e;return e.map((t)=>{if(t.type==="text")return t.text;return`[image:${t.mimeType}:${t.data.length}]`}).join(`
3
- `)}function N(e){return e.map((t)=>{if(t.type==="text")return t.text;if(t.type==="thinking")return t.thinking;return`${t.name}:${JSON.stringify(t.arguments)}`}).join(`
4
- `)}function Q(e){return[e.toolName,...e.content.map((t)=>P([t]))].join(`
5
- `)}function Y(e){if(e.role==="system")return[H(e),...e.toolsRemoved?.map((t)=>`tool-:${JSON.stringify(t)}`)??[],...e.toolsAdded?.map((t)=>`tool+:${JSON.stringify(t)}`)??[]].filter((t)=>t.length>0).join(`
6
- `);if(e.role==="user")return P(e.content);if(e.role==="assistant")return N(e.content);return Q(e)}function W(e,t=e.length){let n=t>0?(t-1)*2:0;for(let o=0;o<t;o++)n+=e[o].length;return n}function q(e,t){let n=0;while(n<e.length&&n<t.length&&e[n]===t[n])n++;let o=(c)=>n===c.length?"":(n>0?`
7
-
8
- `:"")+c.slice(n).join(`
9
-
10
- `);return W(e,n)+ee(o(e),o(t))}function ee(e,t){let n=Math.min(e.length,t.length),o=0;while(o<n&&e[o]===t[o])o++;return o}function C(e,t,n,o){let c=t.messages.map((y)=>`${y.role}:${Y(y)}`),g=W(c),a=Math.ceil(g/4),s=U(N(e.content)),f=a,u=0,x=0,w=n?.sessionId;if(w&&n?.cacheRetention!=="none"){let y=o.get(w);if(y){let M=q(y,c);u=Math.ceil(M/4),x=Math.ceil((g-M)/4),f=Math.max(0,a-u)}else x=a;o.set(w,c)}return{...e,usage:{input:f,output:s,cacheRead:u,cacheWrite:x,totalTokens:f+s+u+x,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}}}}function k(e,t,n){let o=[],c=0;while(c<e.length){let g=t+Math.floor(Math.random()*(n-t+1)),a=Math.max(1,g*4);o.push(e.slice(c,c+a)),c+=a}return o.length>0?o:[""]}function te(e,t,n,o){let c=structuredClone(e);return{...c,api:t,provider:n,model:o,timestamp:c.timestamp??Date.now(),usage:c.usage??E}}function S(e,t){return{role:"assistant",content:[],api:e.api,provider:e.provider,model:e.id,usage:E,stopReason:"deferred",deferred:t,timestamp:Date.now()}}function T(e,t,n,o){return{role:"assistant",content:[],api:t,provider:n,model:o,usage:E,stopReason:"error",errorMessage:e instanceof Error?e.message:String(e),timestamp:Date.now()}}function D(e){return{...e,stopReason:"aborted",errorMessage:"Request was aborted",timestamp:Date.now()}}function A(e,t){if(!t||t<=0)return new Promise((o)=>queueMicrotask(o));let n=U(e)/t*1000;return new Promise((o)=>setTimeout(o,n))}async function _(e,t,n,o,c,g){let a={...t,content:[],stopReason:"pending"};if(g?.aborted){let s=D(a);e.push({type:"error",reason:"aborted",error:s}),e.end(s);return}e.push({type:"start",partial:{...a}});for(let s=0;s<t.content.length;s++){if(g?.aborted){let u=D(a);e.push({type:"error",reason:"aborted",error:u}),e.end(u);return}let f=t.content[s];if(f.type==="thinking"){a.content=[...a.content,{type:"thinking",thinking:""}],e.push({type:"thinking_start",contentIndex:s,partial:{...a}});for(let u of k(f.thinking,n,o)){if(await A(u,c),g?.aborted){let x=D(a);e.push({type:"error",reason:"aborted",error:x}),e.end(x);return}a.content[s].thinking+=u,e.push({type:"thinking_delta",contentIndex:s,delta:u,partial:{...a}})}e.push({type:"thinking_end",contentIndex:s,content:f.thinking,partial:{...a}});continue}if(f.type==="text"){a.content=[...a.content,{type:"text",text:""}],e.push({type:"text_start",contentIndex:s,partial:{...a}});for(let u of k(f.text,n,o)){if(await A(u,c),g?.aborted){let x=D(a);e.push({type:"error",reason:"aborted",error:x}),e.end(x);return}a.content[s].text+=u,e.push({type:"text_delta",contentIndex:s,delta:u,partial:{...a}})}e.push({type:"text_end",contentIndex:s,content:f.text,partial:{...a}});continue}a.content=[...a.content,{type:"toolCall",id:f.id,name:f.name,arguments:{}}],e.push({type:"toolcall_start",contentIndex:s,partial:{...a}});for(let u of k(JSON.stringify(f.arguments),n,o)){if(await A(u,c),g?.aborted){let x=D(a);e.push({type:"error",reason:"aborted",error:x}),e.end(x);return}e.push({type:"toolcall_delta",contentIndex:s,delta:u,partial:{...a}})}a.content[s].arguments=f.arguments,e.push({type:"toolcall_end",contentIndex:s,toolCall:f,partial:{...a}})}if(t.stopReason==="pending")throw Error("Faux response ended without a stop reason");if(t.stopReason==="error"||t.stopReason==="aborted"){e.push({type:"error",reason:t.stopReason,error:t}),e.end(t);return}e.push({type:"done",reason:t.stopReason,message:t}),e.end(t)}function Fi(e){let t=e.api??I(v),n=e.provider??L,o=Math.max(1,Math.min(e.tokenSize?.min??V,e.tokenSize?.max??F)),c=Math.max(o,e.tokenSize?.max??F),g=[],a=e.tokensPerSecond,s={callCount:0,deferredFetchCount:0,cancelledDeferred:[]},f=new Map,u=new Map,w=((e.models?.length)?e.models:[{id:b,name:Z,reasoning:!1,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:128000,maxTokens:16384}]).map((r)=>({id:r.id,name:r.name??r.id,api:t,provider:n,baseUrl:G,reasoning:r.reasoning??!1,input:r.input??["text","image"],inputLimits:r.inputLimits,cost:r.cost??{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:r.contextWindow??128000,maxTokens:r.maxTokens??16384})),y=async(r,p,h,l)=>{let i=typeof r==="function"?await r(p,h,s,l):r;return C(te(i,t,n,l.id),p,h,f)},M=(r,p,h)=>{let l=xn(),i=g.shift();return s.callCount++,queueMicrotask(async()=>{try{if(await h?.onResponse?.({status:200,headers:{}},r),!i){let m=T(Error("No more faux responses queued"),t,n,r.id);m=C(m,p,h,f),l.push({type:"error",reason:"error",error:m}),l.end(m);return}if(h?.deferred){let m={provider:r.provider,modelId:r.id,api:r.api,id:I("deferred"),...e.deferred?.pollAfterMs!==void 0?{pollAfterMs:e.deferred.pollAfterMs}:{}};u.set(m.id,{handle:m,step:i,context:p,options:h,model:r,pendingFetches:Math.max(0,Math.floor(e.deferred?.pendingFetches??0)),cancelled:!1}),await _(l,S(r,m),o,c,a,h.signal);return}let R=await y(i,p,h,r);await _(l,R,o,c,a,h?.signal)}catch(R){let m=T(R,t,n,r.id);l.push({type:"error",reason:"error",error:m}),l.end(m)}}),l},j=(r,p,h)=>M(r,p,h),z=(r,p,h)=>{let l=xn();return s.deferredFetchCount++,queueMicrotask(async()=>{try{await h?.onResponse?.({status:200,headers:{}},r);let i=u.get(p.id);if(!i||i.handle.provider!==p.provider||i.handle.modelId!==p.modelId||i.handle.api!==p.api)throw Error(`Unknown faux deferred response: ${p.id}`);if(i.cancelled)throw Error(`Faux deferred response was cancelled: ${p.id}`);if(i.pendingFetches>0){i.pendingFetches--,await _(l,S(r,i.handle),o,c,a,h?.signal);return}if(!i.final){let{deferred:R,signal:m,onResponse:ne,...B}=i.options??{};try{i.final=await y(i.step,i.context,B,i.model)}catch(O){i.final=T(O,t,n,i.model.id)}}await _(l,i.final,o,c,a,h?.signal)}catch(i){let R=T(i,t,n,r.id);l.push({type:"error",reason:"error",error:R}),l.end(R)}}),l},J=async(r,p,h)=>{s.cancelledDeferred.push(structuredClone(p));let l=u.get(p.id);if(l)l.cancelled=!0;await h?.onResponse?.({status:200,headers:{}},r)};function K(r){if(!r)return w[0];return w.find((p)=>p.id===r)}return{api:t,provider:n,models:w,stream:M,streamSimple:j,fetchDeferred:z,cancelDeferred:J,getModel:K,state:s,setResponses(r){g=[...r]},appendResponses(r){g.push(...r)},getPendingResponseCount(){return g.length}}}function oo(e={}){let t=Fi(e);return{provider:d({id:t.provider,auth:{apiKey:{name:"Faux",resolve:async()=>({auth:{}})}},models:t.models,api:{stream:t.stream,streamSimple:t.streamSimple,fetchDeferred:t.fetchDeferred,cancelDeferred:t.cancelDeferred}}),api:t.api,models:t.models,getModel:t.getModel,state:t.state,setResponses:t.setResponses,appendResponses:t.appendResponses,getPendingResponseCount:t.getPendingResponseCount}}
11
- export{pn,ro,ws,no,Fi,oo};
package/chunk-tv7met41.js DELETED
@@ -1,3 +0,0 @@
1
- // @bun
2
- function Q(r){let e={};for(let[n,o]of r.entries())e[n]=o;return e}function xe(...r){let e=new Map;for(let n of r)for(let[o,t]of Object.entries(n??{})){let s=o.toLowerCase();if(e.delete(s),t!==null)e.set(s,[o,t])}return e.size>0?Object.fromEntries(e.values()):void 0}
3
- export{Q,xe};