@qitqode/qitqode-android-arm64 0.1.25 → 0.1.27

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 (420) hide show
  1. package/bundle/chunk-02y04bsz.js +2 -0
  2. package/bundle/{chunk-23f6rc7a.js → chunk-04tw0r4s.js} +1 -1
  3. package/bundle/chunk-07ws99b1.js +2 -0
  4. package/bundle/chunk-09c4ngag.js +2 -0
  5. package/bundle/{chunk-ym4ydwrz.js → chunk-09kba1hg.js} +2 -2
  6. package/bundle/{chunk-pfn1db1m.js → chunk-0a0vat1h.js} +2 -2
  7. package/bundle/{chunk-pepn5jp4.js → chunk-0eqwm9a8.js} +2 -2
  8. package/bundle/chunk-0jgst767.js +2 -0
  9. package/bundle/chunk-0psrr9vp.js +2 -0
  10. package/bundle/chunk-0srrmwqs.js +2 -0
  11. package/bundle/{chunk-3xna2rk5.js → chunk-0x3sbyny.js} +2 -2
  12. package/bundle/chunk-0zkejr6k.js +2 -0
  13. package/bundle/{chunk-xw283h2r.js → chunk-12bssxd4.js} +2 -2
  14. package/bundle/chunk-14n6rvh2.js +2 -0
  15. package/bundle/{chunk-meaybtcc.js → chunk-17psxhve.js} +3 -3
  16. package/bundle/{chunk-jgs6ngte.js → chunk-1bhvt33f.js} +1 -1
  17. package/bundle/{chunk-78h5dd4t.js → chunk-1dwcga8g.js} +2 -2
  18. package/bundle/{chunk-5mdsrv0a.js → chunk-1fbeendk.js} +1 -1
  19. package/bundle/chunk-1fja3j80.js +2 -0
  20. package/bundle/chunk-1j73cnvz.js +2 -0
  21. package/bundle/{chunk-fgw420gb.js → chunk-1qshjfzm.js} +1 -1
  22. package/bundle/{chunk-bpnpxdyv.js → chunk-1rp1cvmc.js} +2 -2
  23. package/bundle/{chunk-b50t4jc5.js → chunk-1sgby720.js} +1 -1
  24. package/bundle/{chunk-3tnek022.js → chunk-1t9jne14.js} +1 -1
  25. package/bundle/chunk-1yddn03z.js +2 -0
  26. package/bundle/{chunk-3fy57jcy.js → chunk-26nfphsg.js} +1 -1
  27. package/bundle/{chunk-754varfr.js → chunk-27yxgy03.js} +2 -2
  28. package/bundle/{chunk-ydsen7w0.js → chunk-2ahqhh4z.js} +1 -1
  29. package/bundle/{chunk-ey4ktbyb.js → chunk-2bn4b42t.js} +1 -1
  30. package/bundle/{chunk-0hsb4knd.js → chunk-2dzk5txw.js} +1 -1
  31. package/bundle/{chunk-vq6bh2z9.js → chunk-2jmxt3fb.js} +1 -1
  32. package/bundle/{chunk-xjrt0dta.js → chunk-2km50rd3.js} +1 -1
  33. package/bundle/{chunk-1e8mja6v.js → chunk-2q96x1t5.js} +1 -1
  34. package/bundle/{chunk-7rjf9b8n.js → chunk-2rs39vj2.js} +2 -2
  35. package/bundle/{chunk-5zw7knvd.js → chunk-2tnarng3.js} +1 -1
  36. package/bundle/{chunk-4wgb80jm.js → chunk-2vepzgek.js} +2 -2
  37. package/bundle/{chunk-4pssh5d3.js → chunk-2wcv3sq5.js} +2 -2
  38. package/bundle/{chunk-6rrmjrm2.js → chunk-371r2111.js} +1 -1
  39. package/bundle/{chunk-kb14wxcs.js → chunk-37n34pzd.js} +2 -2
  40. package/bundle/chunk-38g8yzw0.js +2 -0
  41. package/bundle/chunk-3bkd0ar3.js +2 -0
  42. package/bundle/{chunk-c27rpvdz.js → chunk-3bmzjznz.js} +1 -1
  43. package/bundle/chunk-3c7d3dqt.js +3 -0
  44. package/bundle/{chunk-xy4t5qf8.js → chunk-3nwve06r.js} +1 -1
  45. package/bundle/{chunk-veev25yg.js → chunk-3nyqh1d6.js} +1 -1
  46. package/bundle/{chunk-grkkzrg1.js → chunk-463f9wre.js} +2 -2
  47. package/bundle/{chunk-vqq5vmh1.js → chunk-47b084yv.js} +204 -202
  48. package/bundle/{chunk-6s2f5sv4.js → chunk-48fvrggx.js} +1 -1
  49. package/bundle/chunk-4amgp4yd.js +3 -0
  50. package/bundle/chunk-4k7kbhps.js +2 -0
  51. package/bundle/{chunk-e075v4e9.js → chunk-4qqkqrn9.js} +2 -2
  52. package/bundle/chunk-4sz3jbc5.js +2 -0
  53. package/bundle/{chunk-zny2qaqa.js → chunk-4tbwha3m.js} +2 -2
  54. package/bundle/{chunk-dgggvses.js → chunk-4ypcf4tg.js} +1 -1
  55. package/bundle/chunk-4z4p492c.js +3 -0
  56. package/bundle/chunk-55b9699f.js +2 -0
  57. package/bundle/{chunk-1ce5jpdc.js → chunk-5a5t01ka.js} +1 -1
  58. package/bundle/{chunk-1n1dh6zj.js → chunk-5fgx6fa4.js} +1 -1
  59. package/bundle/{chunk-2k2axg73.js → chunk-5fz8tph5.js} +1 -1
  60. package/bundle/{chunk-99p5m2f1.js → chunk-5qam3c8r.js} +1 -1
  61. package/bundle/{chunk-0jaxgrq0.js → chunk-61c62e5s.js} +2 -2
  62. package/bundle/chunk-6d9wsjxm.js +2 -0
  63. package/bundle/{chunk-mybpgrjj.js → chunk-6fp8a9ek.js} +2 -2
  64. package/bundle/chunk-6gz9cthq.js +2 -0
  65. package/bundle/{chunk-692vn48b.js → chunk-6hv59ere.js} +1 -1
  66. package/bundle/{chunk-av290sja.js → chunk-6nbzdb0r.js} +1 -1
  67. package/bundle/{chunk-8ahpk8td.js → chunk-6p7yg5sr.js} +1 -1
  68. package/bundle/chunk-6q87abbr.js +2 -0
  69. package/bundle/{chunk-3nhth7c2.js → chunk-6qy1ghrx.js} +1 -1
  70. package/bundle/chunk-730a2d1k.js +2 -0
  71. package/bundle/chunk-7bd0x9vf.js +2 -0
  72. package/bundle/chunk-7czkntef.js +2 -0
  73. package/bundle/chunk-7ex57nyh.js +2 -0
  74. package/bundle/chunk-7gpczxbh.js +2 -0
  75. package/bundle/chunk-7j0bgeh2.js +2 -0
  76. package/bundle/{chunk-hvpe07pt.js → chunk-7jbz3dgt.js} +1 -1
  77. package/bundle/{chunk-qe0sfafy.js → chunk-7ppd2phw.js} +2 -2
  78. package/bundle/chunk-7py443fe.js +2 -0
  79. package/bundle/{chunk-8jcx4tep.js → chunk-7yrhe3xq.js} +2 -2
  80. package/bundle/{chunk-8za87zkr.js → chunk-89q1y7tc.js} +1 -1
  81. package/bundle/{chunk-vfj5nwab.js → chunk-89v6dgpp.js} +2 -2
  82. package/bundle/chunk-8cdm8gh2.js +2 -0
  83. package/bundle/chunk-90q5sae0.js +2 -0
  84. package/bundle/chunk-90zd5rss.js +5 -0
  85. package/bundle/chunk-9grvepmd.js +2 -0
  86. package/bundle/chunk-9hrh15p2.js +2 -0
  87. package/bundle/{chunk-xqa6qkx2.js → chunk-9j1qqdr2.js} +1 -1
  88. package/bundle/{chunk-p80dc6kt.js → chunk-9t84mh6t.js} +2 -2
  89. package/bundle/{chunk-9dpn4792.js → chunk-a1p2f16h.js} +2 -2
  90. package/bundle/{chunk-c1ypbbka.js → chunk-a1pw9r6f.js} +2 -2
  91. package/bundle/chunk-a2qz9m10.js +2 -0
  92. package/bundle/{chunk-gvtw9c44.js → chunk-ab6cabxh.js} +1 -1
  93. package/bundle/{chunk-rjcptzem.js → chunk-ad46r434.js} +2 -2
  94. package/bundle/{chunk-9r6bvkp4.js → chunk-ak5ngp50.js} +2 -2
  95. package/bundle/{chunk-xyn3xxfs.js → chunk-apbgb4h0.js} +1 -1
  96. package/bundle/chunk-av6ezvxm.js +2 -0
  97. package/bundle/{chunk-0rmmg3g4.js → chunk-aztre27e.js} +1 -1
  98. package/bundle/{chunk-ddxjc803.js → chunk-b0syck9r.js} +2 -2
  99. package/bundle/{chunk-8gy99gfb.js → chunk-b2z0kjss.js} +2 -2
  100. package/bundle/{chunk-wrgg270f.js → chunk-b3dqcbsc.js} +1 -1
  101. package/bundle/{chunk-aw0q4y3s.js → chunk-b75gpv0q.js} +1 -1
  102. package/bundle/chunk-b7mg883n.js +3 -0
  103. package/bundle/{chunk-zh808d4t.js → chunk-b8tw709r.js} +1 -1
  104. package/bundle/{chunk-pvee151a.js → chunk-b9za12y1.js} +1 -1
  105. package/bundle/{chunk-cjxp72dv.js → chunk-baet4zev.js} +2 -2
  106. package/bundle/{chunk-jhq5bvhs.js → chunk-be216spx.js} +2 -2
  107. package/bundle/chunk-beksar7w.js +2 -0
  108. package/bundle/chunk-bg66rqrx.js +2 -0
  109. package/bundle/{chunk-h19ty95q.js → chunk-brpx707p.js} +1 -1
  110. package/bundle/{chunk-ykfq8bem.js → chunk-bss414qz.js} +1 -1
  111. package/bundle/{chunk-3dvyfmgc.js → chunk-btneef3z.js} +1 -1
  112. package/bundle/{chunk-7v4fzkbb.js → chunk-btz9jvec.js} +1 -1
  113. package/bundle/{chunk-bsqcfqya.js → chunk-bvkq0a5q.js} +1 -1
  114. package/bundle/{chunk-mkdyknbz.js → chunk-c01z3cvg.js} +2 -2
  115. package/bundle/{chunk-dd11kryy.js → chunk-c0796v8j.js} +2 -2
  116. package/bundle/{chunk-qpm5afdz.js → chunk-c5e6sk9c.js} +1 -1
  117. package/bundle/chunk-c7yy1km8.js +2 -0
  118. package/bundle/{chunk-453wpzg6.js → chunk-c8k32724.js} +1 -1
  119. package/bundle/{chunk-mbh1pdv9.js → chunk-cafzcmrg.js} +2 -2
  120. package/bundle/{chunk-d1bsxz2t.js → chunk-cdhmc0t0.js} +1 -1
  121. package/bundle/{chunk-t0amhhsk.js → chunk-chmrvbbj.js} +1 -1
  122. package/bundle/{chunk-jqzejny3.js → chunk-cpmmvwgw.js} +1 -1
  123. package/bundle/{chunk-zbdbsagd.js → chunk-crx18k6g.js} +2 -2
  124. package/bundle/{chunk-ybn8tb09.js → chunk-ct48575c.js} +1 -1
  125. package/bundle/chunk-ct6dv8st.js +2 -0
  126. package/bundle/{chunk-4wyjapes.js → chunk-cvdxgsq1.js} +2 -2
  127. package/bundle/{chunk-qdnxv55k.js → chunk-cvwa142e.js} +1 -1
  128. package/bundle/chunk-cy9s1ma5.js +2 -0
  129. package/bundle/{chunk-qnqqrvvs.js → chunk-d5bxan80.js} +2 -2
  130. package/bundle/{chunk-hmfefq0d.js → chunk-d6r4xwtg.js} +4 -4
  131. package/bundle/{chunk-g3s2z5xa.js → chunk-deae0y1j.js} +1 -1
  132. package/bundle/{chunk-a27yjp71.js → chunk-dfnv7vkn.js} +1 -1
  133. package/bundle/{chunk-4kb2efq3.js → chunk-dhjp0zx2.js} +1 -1
  134. package/bundle/{chunk-se79ke63.js → chunk-dq9kpj4a.js} +2 -2
  135. package/bundle/{chunk-zss93r48.js → chunk-dqed63ek.js} +1 -1
  136. package/bundle/{chunk-nqefvn28.js → chunk-drs1gv2b.js} +1 -1
  137. package/bundle/{chunk-t2tsyazc.js → chunk-ds69qc8b.js} +1 -1
  138. package/bundle/chunk-dtv1vp0d.js +2 -0
  139. package/bundle/chunk-dvk2wwjj.js +2 -0
  140. package/bundle/{chunk-d5b0bqbr.js → chunk-dzxzcb2e.js} +1 -1
  141. package/bundle/chunk-e0jy9qxd.js +2 -0
  142. package/bundle/{chunk-nhx2xp2x.js → chunk-eb9mytjq.js} +1 -1
  143. package/bundle/{chunk-gsz1wqy6.js → chunk-ecn8gbtz.js} +1 -1
  144. package/bundle/chunk-erg0ske8.js +2 -0
  145. package/bundle/chunk-ew51rwdp.js +9 -0
  146. package/bundle/{chunk-2rxt1s22.js → chunk-exh6cg1r.js} +2 -2
  147. package/bundle/{chunk-tdmaxc6n.js → chunk-f45tp3e3.js} +1 -1
  148. package/bundle/chunk-f72pppr7.js +2 -0
  149. package/bundle/{chunk-k8bp3jjv.js → chunk-fddsgvjy.js} +1 -1
  150. package/bundle/{chunk-4w5t515p.js → chunk-fff3151r.js} +1 -1
  151. package/bundle/{chunk-pk0tytcm.js → chunk-fkgv2hqd.js} +1 -1
  152. package/bundle/{chunk-f84cd0a1.js → chunk-fnbpap62.js} +2 -2
  153. package/bundle/{chunk-hwbxehhf.js → chunk-g1dwbvkg.js} +1 -1
  154. package/bundle/{chunk-dk3z4k46.js → chunk-g3dhsmbt.js} +3 -3
  155. package/bundle/{chunk-n8dcmjph.js → chunk-g7rjtehn.js} +1 -1
  156. package/bundle/chunk-gbyy8sh5.js +2 -0
  157. package/bundle/{chunk-z015twaq.js → chunk-gf0pdgjs.js} +2 -2
  158. package/bundle/{chunk-9f6pqped.js → chunk-ggqst87g.js} +1 -1
  159. package/bundle/chunk-gk34kh8p.js +2 -0
  160. package/bundle/{chunk-j5b5h08g.js → chunk-gm85xefs.js} +1 -1
  161. package/bundle/chunk-gn50xqbd.js +2 -0
  162. package/bundle/{chunk-wmrq9qqf.js → chunk-gsez13bg.js} +1 -1
  163. package/bundle/{chunk-3f054f69.js → chunk-gsvdt4kq.js} +7 -7
  164. package/bundle/{chunk-3jhx8g5d.js → chunk-h0rpmne5.js} +1 -1
  165. package/bundle/chunk-h7s2w1e2.js +2 -0
  166. package/bundle/chunk-h7yya9pv.js +7610 -0
  167. package/bundle/{chunk-5mp82az0.js → chunk-h9pvnp5c.js} +1 -1
  168. package/bundle/chunk-hgxdg1y5.js +2 -0
  169. package/bundle/{chunk-t07a5431.js → chunk-hj5y7fvk.js} +1 -1
  170. package/bundle/chunk-hmv2cdnz.js +2 -0
  171. package/bundle/chunk-ht81ensf.js +2 -0
  172. package/bundle/chunk-j59ktwny.js +2 -0
  173. package/bundle/{chunk-08ba67f4.js → chunk-j5kb0y1m.js} +1 -1
  174. package/bundle/{chunk-rgecc41f.js → chunk-j5y10dn6.js} +2 -2
  175. package/bundle/{chunk-jv98gw88.js → chunk-j6emx6jn.js} +2 -2
  176. package/bundle/{chunk-x36jhtex.js → chunk-j8efst22.js} +1 -1
  177. package/bundle/{chunk-mczw8e3s.js → chunk-j94bdaav.js} +2 -2
  178. package/bundle/{chunk-g73drh98.js → chunk-j9pcnkkq.js} +3 -3
  179. package/bundle/{chunk-nf8gkxbk.js → chunk-jg7s9rqz.js} +2 -2
  180. package/bundle/chunk-jh3nw7fd.js +2 -0
  181. package/bundle/chunk-jh6yvzee.js +2 -0
  182. package/bundle/{chunk-9jncnqbj.js → chunk-jje0srjq.js} +2 -2
  183. package/bundle/{chunk-3e8p4a3y.js → chunk-jm1ptn8n.js} +1 -1
  184. package/bundle/chunk-jmz2mq3t.js +2 -0
  185. package/bundle/{chunk-6ddp36ar.js → chunk-jnabd9gn.js} +1 -1
  186. package/bundle/chunk-k309zez0.js +3 -0
  187. package/bundle/chunk-k3fn3yed.js +2 -0
  188. package/bundle/{chunk-0x7dbj5e.js → chunk-k7gq9bra.js} +1 -1
  189. package/bundle/{chunk-8cty50g7.js → chunk-k9b1jcqw.js} +1 -1
  190. package/bundle/{chunk-2s28fdbp.js → chunk-kavhpdvb.js} +1 -1
  191. package/bundle/{chunk-qm9ezq93.js → chunk-kdcnder5.js} +1 -1
  192. package/bundle/{chunk-b2xya6pq.js → chunk-kfsb2stm.js} +1 -1
  193. package/bundle/{chunk-z3zx6g09.js → chunk-knpt9n8f.js} +1 -1
  194. package/bundle/chunk-kpw6nghv.js +2 -0
  195. package/bundle/{chunk-4stgw33j.js → chunk-kqn9h2gk.js} +1 -1
  196. package/bundle/{chunk-gw0j8hr9.js → chunk-ksyh6h3a.js} +2 -2
  197. package/bundle/{chunk-jtrcnpm7.js → chunk-m02zt1a3.js} +2 -2
  198. package/bundle/{chunk-p883sz67.js → chunk-m1h5a4vg.js} +1 -1
  199. package/bundle/{chunk-m2ang7yb.js → chunk-m2ekhbdp.js} +1 -1
  200. package/bundle/{chunk-3j7skhxg.js → chunk-m2x9xhha.js} +2 -2
  201. package/bundle/chunk-m5ghbt5y.js +2 -0
  202. package/bundle/{chunk-9va5eh9s.js → chunk-m612agnk.js} +1 -1
  203. package/bundle/{chunk-42t25nkb.js → chunk-m67tcnk4.js} +1 -1
  204. package/bundle/{chunk-2sy1wx99.js → chunk-m8yv4sd2.js} +1 -1
  205. package/bundle/{chunk-x6b99nt3.js → chunk-mdck9s88.js} +1 -1
  206. package/bundle/{chunk-psveqqv2.js → chunk-mgk9sh16.js} +1 -1
  207. package/bundle/{chunk-7d6jhzng.js → chunk-mk6cddvd.js} +1 -1
  208. package/bundle/chunk-mn41f9qv.js +2 -0
  209. package/bundle/chunk-mqjf9sbm.js +2 -0
  210. package/bundle/{chunk-7ws3gdjq.js → chunk-msegx0t7.js} +1 -1
  211. package/bundle/{chunk-evmfntm3.js → chunk-mskwkcgj.js} +1 -1
  212. package/bundle/chunk-n5gwrrbb.js +2 -0
  213. package/bundle/{chunk-dee1a3yk.js → chunk-n8h6x2en.js} +2 -2
  214. package/bundle/chunk-nfjhem1c.js +2 -0
  215. package/bundle/{chunk-hznsed5n.js → chunk-ngchsw2g.js} +2 -2
  216. package/bundle/chunk-nj4d554m.js +11 -0
  217. package/bundle/{chunk-msm3r7ny.js → chunk-njnwdgvd.js} +2 -2
  218. package/bundle/{chunk-pf7cj4jd.js → chunk-nt4e3em9.js} +1 -1
  219. package/bundle/chunk-nx90tvwg.js +2 -0
  220. package/bundle/{chunk-bqs6a1ts.js → chunk-nxbkh4k9.js} +2 -2
  221. package/bundle/chunk-nxyyn2ra.js +2 -0
  222. package/bundle/{chunk-vb4e7y4d.js → chunk-nzehfpxp.js} +1 -1
  223. package/bundle/chunk-p5tceb4k.js +2 -0
  224. package/bundle/{chunk-wb69d52j.js → chunk-p68rwmhc.js} +2 -2
  225. package/bundle/{chunk-nmnsf3fc.js → chunk-pekm54ce.js} +1 -1
  226. package/bundle/{chunk-syhay5ye.js → chunk-pget15wc.js} +1 -1
  227. package/bundle/{chunk-p409grvp.js → chunk-phxrg7aw.js} +2 -2
  228. package/bundle/{chunk-14qvaxtp.js → chunk-ppfjf7qx.js} +1 -1
  229. package/bundle/{chunk-mr7agwgn.js → chunk-q1v2pytx.js} +1 -1
  230. package/bundle/{chunk-kyny0t2g.js → chunk-q6ztpfcs.js} +2 -2
  231. package/bundle/{chunk-xdde80rf.js → chunk-qhc90p4a.js} +2 -2
  232. package/bundle/chunk-qjgm3e2p.js +2 -0
  233. package/bundle/{chunk-7fx6x8x9.js → chunk-qjjch1zt.js} +2 -2
  234. package/bundle/{chunk-h2fh1g8g.js → chunk-qjn86fc0.js} +1 -1
  235. package/bundle/{chunk-yhqk8bzk.js → chunk-qrey2gwb.js} +2 -2
  236. package/bundle/chunk-qt1wffbh.js +3 -0
  237. package/bundle/{chunk-jvaffe5d.js → chunk-qt2c4bty.js} +1 -1
  238. package/bundle/{chunk-kgsq240v.js → chunk-qv2s39dv.js} +2 -2
  239. package/bundle/chunk-r08957sm.js +11 -0
  240. package/bundle/chunk-r1616dce.js +2 -0
  241. package/bundle/chunk-s07j8hfy.js +2 -0
  242. package/bundle/{chunk-sx5m81em.js → chunk-s3yna2wm.js} +1 -1
  243. package/bundle/{chunk-0vqrakhw.js → chunk-s6bar2f9.js} +1 -1
  244. package/bundle/chunk-sbyey0qb.js +2 -0
  245. package/bundle/{chunk-aqm597px.js → chunk-scnz207s.js} +2 -2
  246. package/bundle/{chunk-rjf21v5c.js → chunk-sermjas1.js} +1 -1
  247. package/bundle/chunk-sj5v361q.js +2 -0
  248. package/bundle/chunk-smtvgr3w.js +2 -0
  249. package/bundle/{chunk-ag9thqkv.js → chunk-snm5q21k.js} +2 -2
  250. package/bundle/{chunk-bnc4626b.js → chunk-srh4xvsj.js} +1 -1
  251. package/bundle/{chunk-y0xt5a6g.js → chunk-stezw26z.js} +1 -1
  252. package/bundle/{chunk-rq4hqwjy.js → chunk-szr0f7k2.js} +1 -1
  253. package/bundle/{chunk-vmgknvxs.js → chunk-t12xrrfr.js} +2 -2
  254. package/bundle/{chunk-6gbaw2pk.js → chunk-tj78jsp9.js} +1 -1
  255. package/bundle/chunk-tpndnprb.js +2 -0
  256. package/bundle/{chunk-yzchwmb4.js → chunk-tr8sf0dk.js} +1 -1
  257. package/bundle/{chunk-e1pwnf0b.js → chunk-v2zp22r3.js} +2 -2
  258. package/bundle/{chunk-2armxd20.js → chunk-v4xcysh0.js} +1 -1
  259. package/bundle/{chunk-amx3x4kd.js → chunk-v965rsr8.js} +2 -2
  260. package/bundle/{chunk-0304b7xg.js → chunk-va316nee.js} +1 -1
  261. package/bundle/chunk-vfdhqf4h.js +28 -0
  262. package/bundle/{chunk-gaen9ya4.js → chunk-vg2fmyje.js} +2 -2
  263. package/bundle/{chunk-kdcspxvq.js → chunk-vj62pc0h.js} +1 -1
  264. package/bundle/{chunk-3h08jdq8.js → chunk-vkskqhag.js} +2 -2
  265. package/bundle/{chunk-zsnbxsdx.js → chunk-vn7nkrqb.js} +2 -2
  266. package/bundle/{chunk-58680z2j.js → chunk-vsjyr170.js} +2 -2
  267. package/bundle/chunk-vwxfgea7.js +2 -0
  268. package/bundle/chunk-w0kgcz1t.js +2 -0
  269. package/bundle/{chunk-1txkz6dt.js → chunk-w87a3mzm.js} +1 -1
  270. package/bundle/chunk-wajmd3r7.js +2 -0
  271. package/bundle/{chunk-d0m7nbbx.js → chunk-whxjkz9a.js} +2 -2
  272. package/bundle/chunk-wksczmes.js +2 -0
  273. package/bundle/{chunk-0xmx2zfg.js → chunk-wnqwb6fd.js} +1 -1
  274. package/bundle/chunk-wrw22v0a.js +616 -0
  275. package/bundle/chunk-wsxta33r.js +2 -0
  276. package/bundle/{chunk-8atry88r.js → chunk-wsy0m70r.js} +1 -1
  277. package/bundle/{chunk-kdct3e8s.js → chunk-wy46mbwt.js} +1 -1
  278. package/bundle/{chunk-tf1me2r4.js → chunk-wz0zcddf.js} +3 -3
  279. package/bundle/{chunk-ggeena9t.js → chunk-x067eetw.js} +1 -1
  280. package/bundle/{chunk-eg7drzzt.js → chunk-xc5044tm.js} +1 -1
  281. package/bundle/chunk-xck0sq3k.js +2 -0
  282. package/bundle/chunk-xjyhtm8r.js +2 -0
  283. package/bundle/{chunk-j9s62g01.js → chunk-xn2ds2s4.js} +2 -2
  284. package/bundle/{chunk-qnv2v02g.js → chunk-xpc2zgj7.js} +2 -2
  285. package/bundle/{chunk-54pk7nna.js → chunk-xrxyrr00.js} +1 -1
  286. package/bundle/{chunk-f55txcsa.js → chunk-xs3xtz6x.js} +1 -1
  287. package/bundle/{chunk-crap29f6.js → chunk-xxbqhg9n.js} +1 -1
  288. package/bundle/{chunk-2je5tp0x.js → chunk-y062spw2.js} +1 -1
  289. package/bundle/{chunk-v4xgceeq.js → chunk-y2v09y71.js} +1 -1
  290. package/bundle/chunk-y9p87bfd.js +2 -0
  291. package/bundle/{chunk-g4qwkcdv.js → chunk-yajd975f.js} +1 -1
  292. package/bundle/{chunk-2z35ewwc.js → chunk-ydp0q1hk.js} +1 -1
  293. package/bundle/{chunk-gfmfrkxc.js → chunk-yfkvjphe.js} +1 -1
  294. package/bundle/chunk-ygc5qegv.js +2 -0
  295. package/bundle/{chunk-eaatrmcg.js → chunk-yhk7d1j0.js} +1 -1
  296. package/bundle/chunk-yhwx62yf.js +2 -0
  297. package/bundle/chunk-yjqmzm51.js +2 -0
  298. package/bundle/{chunk-9jvnc14g.js → chunk-yjtdgcq5.js} +1 -1
  299. package/bundle/{chunk-61ks7c71.js → chunk-yp0a8q29.js} +3 -3
  300. package/bundle/{chunk-mkyrg7gt.js → chunk-yq3m8190.js} +2 -2
  301. package/bundle/{chunk-rze20q68.js → chunk-yt3f3j35.js} +1 -1
  302. package/bundle/{chunk-tfggzzqw.js → chunk-ywkvq7zb.js} +1 -1
  303. package/bundle/chunk-z4z8hk7e.js +2 -0
  304. package/bundle/chunk-z7y9pdj7.js +2 -0
  305. package/bundle/chunk-z8g819cz.js +2 -0
  306. package/bundle/{chunk-h56jxxvj.js → chunk-z8v2tsz2.js} +1 -1
  307. package/bundle/{chunk-rs1mm5ef.js → chunk-zb0me4kk.js} +1 -1
  308. package/bundle/{chunk-gefh32jb.js → chunk-zcm2jdr5.js} +1 -1
  309. package/bundle/chunk-zqv7fx25.js +2 -0
  310. package/bundle/{chunk-jq81hb32.js → chunk-zrc54vc4.js} +2 -2
  311. package/bundle/chunk-zs2a1f20.js +2 -0
  312. package/bundle/chunk-zt1nbwmm.js +2 -0
  313. package/bundle/{chunk-2zj3h3xj.js → chunk-ztc3gm8y.js} +2 -2
  314. package/bundle/{chunk-v7ah9gg0.js → chunk-zxaaxb99.js} +2 -2
  315. package/bundle/{chunk-ww8ear80.js → chunk-zyhdxggp.js} +2 -2
  316. package/bundle/index.js +3 -3
  317. package/bundle/parser.worker.js +2 -2
  318. package/bundle/qffi.node +0 -0
  319. package/bundle/worker.js +1 -1
  320. package/package.json +1 -1
  321. package/bundle/chunk-0eneddjj.js +0 -2
  322. package/bundle/chunk-0ke6x10y.js +0 -5
  323. package/bundle/chunk-0yb4pxjv.js +0 -2
  324. package/bundle/chunk-129kq1w7.js +0 -2
  325. package/bundle/chunk-1a5hq7d5.js +0 -2
  326. package/bundle/chunk-1w3y1dkk.js +0 -2
  327. package/bundle/chunk-26qt44f1.js +0 -3
  328. package/bundle/chunk-2pkake0h.js +0 -2
  329. package/bundle/chunk-32188rww.js +0 -2
  330. package/bundle/chunk-334tc1rh.js +0 -2
  331. package/bundle/chunk-3ff94m8r.js +0 -2
  332. package/bundle/chunk-4aqd2bty.js +0 -2
  333. package/bundle/chunk-4wa0gf8y.js +0 -28
  334. package/bundle/chunk-4xg5ptk9.js +0 -2
  335. package/bundle/chunk-5nm36wxa.js +0 -2
  336. package/bundle/chunk-64jet8nc.js +0 -2
  337. package/bundle/chunk-6584d9m8.js +0 -2
  338. package/bundle/chunk-66hv9bbw.js +0 -2
  339. package/bundle/chunk-6a1g6jzn.js +0 -2
  340. package/bundle/chunk-6be8p915.js +0 -2
  341. package/bundle/chunk-6f03158n.js +0 -2
  342. package/bundle/chunk-7jnjttqx.js +0 -2
  343. package/bundle/chunk-7q5srx7q.js +0 -3
  344. package/bundle/chunk-7q8pa6s8.js +0 -2
  345. package/bundle/chunk-7qvkyjjg.js +0 -2
  346. package/bundle/chunk-7w84hfxs.js +0 -3
  347. package/bundle/chunk-87x607rz.js +0 -8223
  348. package/bundle/chunk-8casywce.js +0 -2
  349. package/bundle/chunk-8hxwxt5p.js +0 -2
  350. package/bundle/chunk-8y8140dm.js +0 -2
  351. package/bundle/chunk-9dqcyt6x.js +0 -2
  352. package/bundle/chunk-9he248a8.js +0 -2
  353. package/bundle/chunk-9qmmse2n.js +0 -2
  354. package/bundle/chunk-9w5rx0fb.js +0 -3
  355. package/bundle/chunk-aabrsxrq.js +0 -2
  356. package/bundle/chunk-atd0q4v8.js +0 -3
  357. package/bundle/chunk-avaba4sr.js +0 -2
  358. package/bundle/chunk-bdy1etja.js +0 -2
  359. package/bundle/chunk-bqdvqmjc.js +0 -2
  360. package/bundle/chunk-cdws8ggq.js +0 -2
  361. package/bundle/chunk-cqs9a2cs.js +0 -2
  362. package/bundle/chunk-d0rjst58.js +0 -2
  363. package/bundle/chunk-d833a2fj.js +0 -2
  364. package/bundle/chunk-dday4nm2.js +0 -2
  365. package/bundle/chunk-e2sj30hk.js +0 -2
  366. package/bundle/chunk-enc0fykg.js +0 -2
  367. package/bundle/chunk-evan93av.js +0 -2
  368. package/bundle/chunk-f600dzsr.js +0 -2
  369. package/bundle/chunk-f6jzwydk.js +0 -2
  370. package/bundle/chunk-fv67ng8z.js +0 -2
  371. package/bundle/chunk-gevazsx3.js +0 -2
  372. package/bundle/chunk-gh18pzkx.js +0 -2
  373. package/bundle/chunk-gnvvgr4y.js +0 -2
  374. package/bundle/chunk-gsbjs2ws.js +0 -2
  375. package/bundle/chunk-j7pdz979.js +0 -2
  376. package/bundle/chunk-jfe2qbv8.js +0 -2
  377. package/bundle/chunk-k6zvb8xm.js +0 -2
  378. package/bundle/chunk-kcht9kvx.js +0 -2
  379. package/bundle/chunk-knvsa1d4.js +0 -2
  380. package/bundle/chunk-kp6d68hd.js +0 -2
  381. package/bundle/chunk-kwm87f18.js +0 -2
  382. package/bundle/chunk-me78p9x4.js +0 -2
  383. package/bundle/chunk-mv1d7wyt.js +0 -2
  384. package/bundle/chunk-n8xmmxh5.js +0 -2
  385. package/bundle/chunk-n90219q9.js +0 -2
  386. package/bundle/chunk-nckg3ydx.js +0 -2
  387. package/bundle/chunk-nhaenjw3.js +0 -2
  388. package/bundle/chunk-nhtrt5ec.js +0 -2
  389. package/bundle/chunk-p72n0tfq.js +0 -2
  390. package/bundle/chunk-p8enedkf.js +0 -3
  391. package/bundle/chunk-pd33qvr0.js +0 -2
  392. package/bundle/chunk-pq3622ae.js +0 -2
  393. package/bundle/chunk-qatj4h6b.js +0 -2
  394. package/bundle/chunk-qfz0a58d.js +0 -2
  395. package/bundle/chunk-qjwfj51e.js +0 -2
  396. package/bundle/chunk-qkg73rs9.js +0 -2
  397. package/bundle/chunk-qvcfst7n.js +0 -11
  398. package/bundle/chunk-rmsqb6r4.js +0 -10
  399. package/bundle/chunk-rqrpbcm6.js +0 -2
  400. package/bundle/chunk-s76hdgw6.js +0 -2
  401. package/bundle/chunk-s7vhjg9e.js +0 -2
  402. package/bundle/chunk-sec3a60m.js +0 -2
  403. package/bundle/chunk-sjnt5e6w.js +0 -2
  404. package/bundle/chunk-sntb757q.js +0 -2
  405. package/bundle/chunk-svscftd7.js +0 -2
  406. package/bundle/chunk-sx0cabcs.js +0 -2
  407. package/bundle/chunk-tmdm6vm6.js +0 -2
  408. package/bundle/chunk-v6g0ksks.js +0 -2
  409. package/bundle/chunk-vbf73c7z.js +0 -2
  410. package/bundle/chunk-vbf9jpas.js +0 -2
  411. package/bundle/chunk-vrcf5q4s.js +0 -2
  412. package/bundle/chunk-vxrsp6n7.js +0 -2
  413. package/bundle/chunk-w8ax3pvh.js +0 -2
  414. package/bundle/chunk-w98r39gd.js +0 -9
  415. package/bundle/chunk-xk2cmh49.js +0 -2
  416. package/bundle/chunk-xzhkfctf.js +0 -2
  417. package/bundle/chunk-ydmrvx7q.js +0 -2
  418. package/bundle/chunk-z2rtcgad.js +0 -3
  419. package/bundle/chunk-z9b3t2jm.js +0 -2
  420. package/bundle/chunk-zzr8smtm.js +0 -2
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{se as Qb}from"./chunk-f84cd0a1.js";import{we as Xb}from"./chunk-kb14wxcs.js";import{xe as Wb}from"./chunk-e1pwnf0b.js";import{Ae as Lb,ye as Jb,ze as Kb}from"./chunk-g73drh98.js";import{Be as Db}from"./chunk-se79ke63.js";import{tf as bb,uf as jb,vf as kb,wf as wb,xf as Bb}from"./chunk-4wyjapes.js";import"./chunk-0rmmg3g4.js";var K=Lb(),V=Kb(),D=jb(),J=kb(),H=wb(),M=Db(),G=Jb(),P=bb(),E=Qb(),Z=Bb(),m=Wb(),Yb=Xb(),Zb=async(b,j,k)=>{return{operation:D.getSmithyContext(j).operation,region:await D.normalizeProvider(b.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function Hb(b){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:b.region},propertiesExtractor:(j,k)=>({signingProperties:{config:j,context:k}})}}function Gb(b){return{schemeId:"smithy.api#noAuth"}}var zb=(b)=>{let j=[];switch(b.operation){case"GetRoleCredentials":{j.push(Gb());break}default:j.push(Hb(b))}return j},Fb=(b)=>{let j=E.resolveAwsSdkSigV4Config(b);return Object.assign(j,{authSchemePreference:D.normalizeProvider(b.authSchemePreference??[])})},Ib=(b)=>{return Object.assign(b,{useDualstackEndpoint:b.useDualstackEndpoint??!1,useFipsEndpoint:b.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"})},Nb={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Ub="3.997.14",Vb={version:Ub},z="ref",W=-1,N=!0,S="isSet",a="PartitionResult",U="booleanEquals",A="getAttr",h={[z]:"Endpoint"},v={[z]:a},Y={},p=[{[z]:"Region"}],u={conditions:[[S,[h]],[S,p],["aws.partition",p,a],[U,[{[z]:"UseFIPS"},N]],[U,[{[z]:"UseDualStack"},N]],[U,[{fn:A,argv:[v,"supportsDualStack"]},N]],[U,[{fn:A,argv:[v,"supportsFIPS"]},N]],["stringEquals",[{fn:A,argv:[v,"name"]},"aws-us-gov"]]],results:[[W],[W,"Invalid Configuration: FIPS and custom endpoint are not supported"],[W,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[h,Y],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Y],[W,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",Y],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",Y],[W,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",Y],[W,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",Y],[W,"Invalid Configuration: Missing Region"]]},Mb=2,B=1e8,qb=new Int32Array([-1,1,-1,0,13,3,1,4,B+12,2,5,B+12,3,8,6,4,7,B+11,5,B+9,B+10,4,11,9,6,10,B+8,7,B+6,B+7,5,12,B+5,6,B+4,B+5,3,B+1,14,4,B+2,B+3]),Tb=H.BinaryDecisionDiagram.from(qb,Mb,u.conditions,u.results),yb=new H.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ob=(b,j={})=>{return yb.get(b,()=>H.decideEndpoint(Tb,{endpointParams:b,logger:j.logger}))};H.customEndpointFunctions.aws=K.awsEndpointFunctions;class X extends D.ServiceException{constructor(b){super(b);Object.setPrototypeOf(this,X.prototype)}}class l extends X{name="InvalidRequestException";$fault="client";constructor(b){super({name:"InvalidRequestException",$fault:"client",...b});Object.setPrototypeOf(this,l.prototype)}}class x extends X{name="ResourceNotFoundException";$fault="client";constructor(b){super({name:"ResourceNotFoundException",$fault:"client",...b});Object.setPrototypeOf(this,x.prototype)}}class C extends X{name="TooManyRequestsException";$fault="client";constructor(b){super({name:"TooManyRequestsException",$fault:"client",...b});Object.setPrototypeOf(this,C.prototype)}}class $ extends X{name="UnauthorizedException";$fault="client";constructor(b){super({name:"UnauthorizedException",$fault:"client",...b});Object.setPrototypeOf(this,$.prototype)}}var Rb="AccessTokenType",Ab="GetRoleCredentials",vb="GetRoleCredentialsRequest",Pb="GetRoleCredentialsResponse",Eb="InvalidRequestException",lb="RoleCredentials",xb="ResourceNotFoundException",Cb="SecretAccessKeyType",$b="SessionTokenType",_b="TooManyRequestsException",db="UnauthorizedException",mb="accountId",Sb="accessKeyId",hb="accessToken",pb="account_id",q="client",T="error",ub="expiration",sb="http",y="httpError",ab="httpHeader",s="httpQuery",O="message",rb="roleCredentials",gb="roleName",fb="role_name",r="smithy.ts.sdk.synthetic.com.amazonaws.sso",cb="secretAccessKey",tb="sessionToken",eb="x-amz-sso_bearer_token",L="com.amazonaws.sso",g=P.TypeRegistry.for(r),ib=[-3,r,"SSOServiceException",0,[],[]];g.registerError(ib,X);var F=P.TypeRegistry.for(L),nb=[-3,L,Eb,{[T]:q,[y]:400},[O],[0]];F.registerError(nb,l);var ob=[-3,L,xb,{[T]:q,[y]:404},[O],[0]];F.registerError(ob,x);var bj=[-3,L,_b,{[T]:q,[y]:429},[O],[0]];F.registerError(bj,C);var jj=[-3,L,db,{[T]:q,[y]:401},[O],[0]];F.registerError(jj,$);var kj=[g,F],wj=[0,L,Rb,8,0],Bj=[0,L,Cb,8,0],Dj=[0,L,$b,8,0],Jj=[3,L,vb,0,[gb,mb,hb],[[0,{[s]:fb}],[0,{[s]:pb}],[()=>wj,{[ab]:eb}]],3],Kj=[3,L,Pb,0,[rb],[[()=>Lj,0]]],Lj=[3,L,lb,0,[Sb,cb,tb,ub],[0,[()=>Bj,0],[()=>Dj,0],1]],Qj=[9,L,Ab,{[sb]:["GET","/federation/credentials",200]},()=>Jj,()=>Kj],Wj=(b)=>{return{apiVersion:"2019-06-10",base64Decoder:b?.base64Decoder??Z.fromBase64,base64Encoder:b?.base64Encoder??Z.toBase64,disableHostPrefix:b?.disableHostPrefix??!1,endpointProvider:b?.endpointProvider??Ob,extensions:b?.extensions??[],httpAuthSchemeProvider:b?.httpAuthSchemeProvider??zb,httpAuthSchemes:b?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(j)=>j.getIdentityProvider("aws.auth#sigv4"),signer:new E.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(j)=>j.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new V.NoAuthSigner}],logger:b?.logger??new D.NoOpLogger,protocol:b?.protocol??Yb.AwsRestJsonProtocol,protocolSettings:b?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:kj,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:b?.serviceId??"SSO",urlParser:b?.urlParser??M.parseUrl,utf8Decoder:b?.utf8Decoder??Z.fromUtf8,utf8Encoder:b?.utf8Encoder??Z.toUtf8}},Xj=(b)=>{D.emitWarningIfUnsupportedVersion(process.version);let j=J.resolveDefaultsModeConfig(b),k=()=>j().then(D.loadConfigsForDefaultMode),Q=Wj(b);K.emitWarningIfUnsupportedVersion(process.version);let w={profile:b?.profile,logger:Q.logger};return{...Q,...b,runtime:"node",defaultsMode:j,authSchemePreference:b?.authSchemePreference??J.loadConfig(E.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,w),bodyLengthChecker:b?.bodyLengthChecker??Z.calculateBodyLength,defaultUserAgentProvider:b?.defaultUserAgentProvider??K.createDefaultUserAgentProvider({serviceId:Q.serviceId,clientVersion:Vb.version}),maxAttempts:b?.maxAttempts??J.loadConfig(G.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,b),region:b?.region??J.loadConfig(J.NODE_REGION_CONFIG_OPTIONS,{...J.NODE_REGION_CONFIG_FILE_OPTIONS,...w}),requestHandler:m.NodeHttpHandler.create(b?.requestHandler??k),retryMode:b?.retryMode??J.loadConfig({...G.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await k()).retryMode||G.DEFAULT_RETRY_MODE},b),sha256:b?.sha256??Z.Hash.bind(null,"sha256"),streamCollector:b?.streamCollector??m.streamCollector,useDualstackEndpoint:b?.useDualstackEndpoint??J.loadConfig(J.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,w),useFipsEndpoint:b?.useFipsEndpoint??J.loadConfig(J.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,w),userAgentAppId:b?.userAgentAppId??J.loadConfig(K.NODE_APP_ID_CONFIG_OPTIONS,w)}},Yj=(b)=>{let{httpAuthSchemes:j,httpAuthSchemeProvider:k,credentials:Q}=b;return{setHttpAuthScheme(w){let I=j.findIndex((R)=>R.schemeId===w.schemeId);if(I===-1)j.push(w);else j.splice(I,1,w)},httpAuthSchemes(){return j},setHttpAuthSchemeProvider(w){k=w},httpAuthSchemeProvider(){return k},setCredentials(w){Q=w},credentials(){return Q}}},Zj=(b)=>{return{httpAuthSchemes:b.httpAuthSchemes(),httpAuthSchemeProvider:b.httpAuthSchemeProvider(),credentials:b.credentials()}},Hj=(b,j)=>{let k=Object.assign(K.getAwsRegionExtensionConfiguration(b),D.getDefaultExtensionConfiguration(b),M.getHttpHandlerExtensionConfiguration(b),Yj(b));return j.forEach((Q)=>Q.configure(k)),Object.assign(b,K.resolveAwsRegionExtensionConfiguration(k),D.resolveDefaultRuntimeConfig(k),M.resolveHttpHandlerRuntimeConfig(k),Zj(k))};class _ extends D.Client{config;constructor(...[b]){let j=Xj(b||{});super(j);this.initConfig=j;let k=Ib(j),Q=K.resolveUserAgentConfig(k),w=G.resolveRetryConfig(Q),I=J.resolveRegionConfig(w),R=K.resolveHostHeaderConfig(I),e=H.resolveEndpointConfig(R),i=Fb(e),n=Hj(i,b?.extensions||[]);this.config=n,this.middlewareStack.use(P.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(K.getUserAgentPlugin(this.config)),this.middlewareStack.use(G.getRetryPlugin(this.config)),this.middlewareStack.use(M.getContentLengthPlugin(this.config)),this.middlewareStack.use(K.getHostHeaderPlugin(this.config)),this.middlewareStack.use(K.getLoggerPlugin(this.config)),this.middlewareStack.use(K.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(V.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Zb,identityProviderConfigProvider:async(o)=>new V.DefaultIdentityProviderConfig({"aws.auth#sigv4":o.credentials})})),this.middlewareStack.use(V.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class d extends D.Command.classBuilder().ep(Nb).m(function(b,j,k,Q){return[H.getEndpointPlugin(k,b.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(Qj).build(){}var Gj={GetRoleCredentialsCommand:d};class f extends _{}D.createAggregatedClient(Gj,f);var{Command:zj,Client:Fj}=D;var c=d;var t=_;export{t as SSOClient,c as GetRoleCredentialsCommand};
2
+ import{te as Qb}from"./chunk-fnbpap62.js";import{xe as Xb}from"./chunk-37n34pzd.js";import{ye as Wb}from"./chunk-v2zp22r3.js";import{Ae as Kb,Be as Lb,ze as Jb}from"./chunk-j9pcnkkq.js";import{Ce as Db}from"./chunk-dq9kpj4a.js";import{uf as bb,vf as jb,wf as kb,xf as wb,yf as Bb}from"./chunk-cvdxgsq1.js";import"./chunk-aztre27e.js";var K=Lb(),V=Kb(),D=jb(),J=kb(),H=wb(),M=Db(),G=Jb(),P=bb(),E=Qb(),Z=Bb(),m=Wb(),Yb=Xb(),Zb=async(b,j,k)=>{return{operation:D.getSmithyContext(j).operation,region:await D.normalizeProvider(b.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function Hb(b){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:b.region},propertiesExtractor:(j,k)=>({signingProperties:{config:j,context:k}})}}function Gb(b){return{schemeId:"smithy.api#noAuth"}}var zb=(b)=>{let j=[];switch(b.operation){case"GetRoleCredentials":{j.push(Gb());break}default:j.push(Hb(b))}return j},Fb=(b)=>{let j=E.resolveAwsSdkSigV4Config(b);return Object.assign(j,{authSchemePreference:D.normalizeProvider(b.authSchemePreference??[])})},Ib=(b)=>{return Object.assign(b,{useDualstackEndpoint:b.useDualstackEndpoint??!1,useFipsEndpoint:b.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"})},Nb={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Ub="3.997.14",Vb={version:Ub},z="ref",W=-1,N=!0,S="isSet",a="PartitionResult",U="booleanEquals",A="getAttr",h={[z]:"Endpoint"},v={[z]:a},Y={},p=[{[z]:"Region"}],u={conditions:[[S,[h]],[S,p],["aws.partition",p,a],[U,[{[z]:"UseFIPS"},N]],[U,[{[z]:"UseDualStack"},N]],[U,[{fn:A,argv:[v,"supportsDualStack"]},N]],[U,[{fn:A,argv:[v,"supportsFIPS"]},N]],["stringEquals",[{fn:A,argv:[v,"name"]},"aws-us-gov"]]],results:[[W],[W,"Invalid Configuration: FIPS and custom endpoint are not supported"],[W,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[h,Y],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Y],[W,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",Y],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",Y],[W,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",Y],[W,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",Y],[W,"Invalid Configuration: Missing Region"]]},Mb=2,B=1e8,qb=new Int32Array([-1,1,-1,0,13,3,1,4,B+12,2,5,B+12,3,8,6,4,7,B+11,5,B+9,B+10,4,11,9,6,10,B+8,7,B+6,B+7,5,12,B+5,6,B+4,B+5,3,B+1,14,4,B+2,B+3]),Tb=H.BinaryDecisionDiagram.from(qb,Mb,u.conditions,u.results),yb=new H.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ob=(b,j={})=>{return yb.get(b,()=>H.decideEndpoint(Tb,{endpointParams:b,logger:j.logger}))};H.customEndpointFunctions.aws=K.awsEndpointFunctions;class X extends D.ServiceException{constructor(b){super(b);Object.setPrototypeOf(this,X.prototype)}}class l extends X{name="InvalidRequestException";$fault="client";constructor(b){super({name:"InvalidRequestException",$fault:"client",...b});Object.setPrototypeOf(this,l.prototype)}}class x extends X{name="ResourceNotFoundException";$fault="client";constructor(b){super({name:"ResourceNotFoundException",$fault:"client",...b});Object.setPrototypeOf(this,x.prototype)}}class C extends X{name="TooManyRequestsException";$fault="client";constructor(b){super({name:"TooManyRequestsException",$fault:"client",...b});Object.setPrototypeOf(this,C.prototype)}}class $ extends X{name="UnauthorizedException";$fault="client";constructor(b){super({name:"UnauthorizedException",$fault:"client",...b});Object.setPrototypeOf(this,$.prototype)}}var Rb="AccessTokenType",Ab="GetRoleCredentials",vb="GetRoleCredentialsRequest",Pb="GetRoleCredentialsResponse",Eb="InvalidRequestException",lb="RoleCredentials",xb="ResourceNotFoundException",Cb="SecretAccessKeyType",$b="SessionTokenType",_b="TooManyRequestsException",db="UnauthorizedException",mb="accountId",Sb="accessKeyId",hb="accessToken",pb="account_id",q="client",T="error",ub="expiration",sb="http",y="httpError",ab="httpHeader",s="httpQuery",O="message",rb="roleCredentials",gb="roleName",fb="role_name",r="smithy.ts.sdk.synthetic.com.amazonaws.sso",cb="secretAccessKey",tb="sessionToken",eb="x-amz-sso_bearer_token",L="com.amazonaws.sso",g=P.TypeRegistry.for(r),ib=[-3,r,"SSOServiceException",0,[],[]];g.registerError(ib,X);var F=P.TypeRegistry.for(L),nb=[-3,L,Eb,{[T]:q,[y]:400},[O],[0]];F.registerError(nb,l);var ob=[-3,L,xb,{[T]:q,[y]:404},[O],[0]];F.registerError(ob,x);var bj=[-3,L,_b,{[T]:q,[y]:429},[O],[0]];F.registerError(bj,C);var jj=[-3,L,db,{[T]:q,[y]:401},[O],[0]];F.registerError(jj,$);var kj=[g,F],wj=[0,L,Rb,8,0],Bj=[0,L,Cb,8,0],Dj=[0,L,$b,8,0],Jj=[3,L,vb,0,[gb,mb,hb],[[0,{[s]:fb}],[0,{[s]:pb}],[()=>wj,{[ab]:eb}]],3],Kj=[3,L,Pb,0,[rb],[[()=>Lj,0]]],Lj=[3,L,lb,0,[Sb,cb,tb,ub],[0,[()=>Bj,0],[()=>Dj,0],1]],Qj=[9,L,Ab,{[sb]:["GET","/federation/credentials",200]},()=>Jj,()=>Kj],Wj=(b)=>{return{apiVersion:"2019-06-10",base64Decoder:b?.base64Decoder??Z.fromBase64,base64Encoder:b?.base64Encoder??Z.toBase64,disableHostPrefix:b?.disableHostPrefix??!1,endpointProvider:b?.endpointProvider??Ob,extensions:b?.extensions??[],httpAuthSchemeProvider:b?.httpAuthSchemeProvider??zb,httpAuthSchemes:b?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(j)=>j.getIdentityProvider("aws.auth#sigv4"),signer:new E.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(j)=>j.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new V.NoAuthSigner}],logger:b?.logger??new D.NoOpLogger,protocol:b?.protocol??Yb.AwsRestJsonProtocol,protocolSettings:b?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:kj,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:b?.serviceId??"SSO",urlParser:b?.urlParser??M.parseUrl,utf8Decoder:b?.utf8Decoder??Z.fromUtf8,utf8Encoder:b?.utf8Encoder??Z.toUtf8}},Xj=(b)=>{D.emitWarningIfUnsupportedVersion(process.version);let j=J.resolveDefaultsModeConfig(b),k=()=>j().then(D.loadConfigsForDefaultMode),Q=Wj(b);K.emitWarningIfUnsupportedVersion(process.version);let w={profile:b?.profile,logger:Q.logger};return{...Q,...b,runtime:"node",defaultsMode:j,authSchemePreference:b?.authSchemePreference??J.loadConfig(E.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,w),bodyLengthChecker:b?.bodyLengthChecker??Z.calculateBodyLength,defaultUserAgentProvider:b?.defaultUserAgentProvider??K.createDefaultUserAgentProvider({serviceId:Q.serviceId,clientVersion:Vb.version}),maxAttempts:b?.maxAttempts??J.loadConfig(G.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,b),region:b?.region??J.loadConfig(J.NODE_REGION_CONFIG_OPTIONS,{...J.NODE_REGION_CONFIG_FILE_OPTIONS,...w}),requestHandler:m.NodeHttpHandler.create(b?.requestHandler??k),retryMode:b?.retryMode??J.loadConfig({...G.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await k()).retryMode||G.DEFAULT_RETRY_MODE},b),sha256:b?.sha256??Z.Hash.bind(null,"sha256"),streamCollector:b?.streamCollector??m.streamCollector,useDualstackEndpoint:b?.useDualstackEndpoint??J.loadConfig(J.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,w),useFipsEndpoint:b?.useFipsEndpoint??J.loadConfig(J.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,w),userAgentAppId:b?.userAgentAppId??J.loadConfig(K.NODE_APP_ID_CONFIG_OPTIONS,w)}},Yj=(b)=>{let{httpAuthSchemes:j,httpAuthSchemeProvider:k,credentials:Q}=b;return{setHttpAuthScheme(w){let I=j.findIndex((R)=>R.schemeId===w.schemeId);if(I===-1)j.push(w);else j.splice(I,1,w)},httpAuthSchemes(){return j},setHttpAuthSchemeProvider(w){k=w},httpAuthSchemeProvider(){return k},setCredentials(w){Q=w},credentials(){return Q}}},Zj=(b)=>{return{httpAuthSchemes:b.httpAuthSchemes(),httpAuthSchemeProvider:b.httpAuthSchemeProvider(),credentials:b.credentials()}},Hj=(b,j)=>{let k=Object.assign(K.getAwsRegionExtensionConfiguration(b),D.getDefaultExtensionConfiguration(b),M.getHttpHandlerExtensionConfiguration(b),Yj(b));return j.forEach((Q)=>Q.configure(k)),Object.assign(b,K.resolveAwsRegionExtensionConfiguration(k),D.resolveDefaultRuntimeConfig(k),M.resolveHttpHandlerRuntimeConfig(k),Zj(k))};class _ extends D.Client{config;constructor(...[b]){let j=Xj(b||{});super(j);this.initConfig=j;let k=Ib(j),Q=K.resolveUserAgentConfig(k),w=G.resolveRetryConfig(Q),I=J.resolveRegionConfig(w),R=K.resolveHostHeaderConfig(I),e=H.resolveEndpointConfig(R),i=Fb(e),n=Hj(i,b?.extensions||[]);this.config=n,this.middlewareStack.use(P.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(K.getUserAgentPlugin(this.config)),this.middlewareStack.use(G.getRetryPlugin(this.config)),this.middlewareStack.use(M.getContentLengthPlugin(this.config)),this.middlewareStack.use(K.getHostHeaderPlugin(this.config)),this.middlewareStack.use(K.getLoggerPlugin(this.config)),this.middlewareStack.use(K.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(V.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Zb,identityProviderConfigProvider:async(o)=>new V.DefaultIdentityProviderConfig({"aws.auth#sigv4":o.credentials})})),this.middlewareStack.use(V.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class d extends D.Command.classBuilder().ep(Nb).m(function(b,j,k,Q){return[H.getEndpointPlugin(k,b.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(Qj).build(){}var Gj={GetRoleCredentialsCommand:d};class f extends _{}D.createAggregatedClient(Gj,f);var{Command:zj,Client:Fj}=D;var c=d;var t=_;export{t as SSOClient,c as GetRoleCredentialsCommand};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{se as Ij}from"./chunk-f84cd0a1.js";import{we as hj}from"./chunk-kb14wxcs.js";import{xe as Oj}from"./chunk-e1pwnf0b.js";import{Ae as $j,ye as _j,ze as vj}from"./chunk-g73drh98.js";import{Be as mj}from"./chunk-se79ke63.js";import{tf as Rj,uf as Pj,vf as Tj,wf as Aj,xf as Dj}from"./chunk-4wyjapes.js";import"./chunk-0rmmg3g4.js";var Z=$j(),T=vj(),X=Pj(),Y=Tj(),w=Aj(),A=mj(),G=_j(),a=Rj(),S=Ij(),U=Dj(),r=Oj(),uj=hj(),lj=async(j,B,K)=>{return{operation:X.getSmithyContext(B).operation,region:await X.normalizeProvider(j.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function dj(j){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:j.region},propertiesExtractor:(B,K)=>({signingProperties:{config:B,context:K}})}}function Cj(j){return{schemeId:"smithy.api#noAuth"}}var Ej=(j)=>{let B=[];switch(j.operation){case"CreateToken":{B.push(Cj());break}default:B.push(dj(j))}return B},xj=(j)=>{let B=S.resolveAwsSdkSigV4Config(j);return Object.assign(B,{authSchemePreference:X.normalizeProvider(j.authSchemePreference??[])})},aj=(j)=>{return Object.assign(j,{useDualstackEndpoint:j.useDualstackEndpoint??!1,useFipsEndpoint:j.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"})},Sj={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},fj="3.997.14",gj={version:fj},k="ref",q=-1,R=!0,p="isSet",o="PartitionResult",P="booleanEquals",E="getAttr",c={[k]:"Endpoint"},x={[k]:o},z={},t=[{[k]:"Region"}],i={conditions:[[p,[c]],[p,t],["aws.partition",t,o],[P,[{[k]:"UseFIPS"},R]],[P,[{[k]:"UseDualStack"},R]],[P,[{fn:E,argv:[x,"supportsDualStack"]},R]],[P,[{fn:E,argv:[x,"supportsFIPS"]},R]],["stringEquals",[{fn:E,argv:[x,"name"]},"aws-us-gov"]]],results:[[q],[q,"Invalid Configuration: FIPS and custom endpoint are not supported"],[q,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[c,z],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",z],[q,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",z],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",z],[q,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",z],[q,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",z],[q,"Invalid Configuration: Missing Region"]]},sj=2,W=1e8,rj=new Int32Array([-1,1,-1,0,13,3,1,4,W+12,2,5,W+12,3,8,6,4,7,W+11,5,W+9,W+10,4,11,9,6,10,W+8,7,W+6,W+7,5,12,W+5,6,W+4,W+5,3,W+1,14,4,W+2,W+3]),pj=w.BinaryDecisionDiagram.from(rj,sj,i.conditions,i.results),cj=new w.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),tj=(j,B={})=>{return cj.get(j,()=>w.decideEndpoint(pj,{endpointParams:j,logger:B.logger}))};w.customEndpointFunctions.aws=Z.awsEndpointFunctions;class Q extends X.ServiceException{constructor(j){super(j);Object.setPrototypeOf(this,Q.prototype)}}class D extends Q{name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(j){super({name:"AccessDeniedException",$fault:"client",...j});Object.setPrototypeOf(this,D.prototype),this.error=j.error,this.reason=j.reason,this.error_description=j.error_description}}class m extends Q{name="AuthorizationPendingException";$fault="client";error;error_description;constructor(j){super({name:"AuthorizationPendingException",$fault:"client",...j});Object.setPrototypeOf(this,m.prototype),this.error=j.error,this.error_description=j.error_description}}class _ extends Q{name="ExpiredTokenException";$fault="client";error;error_description;constructor(j){super({name:"ExpiredTokenException",$fault:"client",...j});Object.setPrototypeOf(this,_.prototype),this.error=j.error,this.error_description=j.error_description}}class v extends Q{name="InternalServerException";$fault="server";error;error_description;constructor(j){super({name:"InternalServerException",$fault:"server",...j});Object.setPrototypeOf(this,v.prototype),this.error=j.error,this.error_description=j.error_description}}class $ extends Q{name="InvalidClientException";$fault="client";error;error_description;constructor(j){super({name:"InvalidClientException",$fault:"client",...j});Object.setPrototypeOf(this,$.prototype),this.error=j.error,this.error_description=j.error_description}}class I extends Q{name="InvalidGrantException";$fault="client";error;error_description;constructor(j){super({name:"InvalidGrantException",$fault:"client",...j});Object.setPrototypeOf(this,I.prototype),this.error=j.error,this.error_description=j.error_description}}class O extends Q{name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(j){super({name:"InvalidRequestException",$fault:"client",...j});Object.setPrototypeOf(this,O.prototype),this.error=j.error,this.reason=j.reason,this.error_description=j.error_description}}class h extends Q{name="InvalidScopeException";$fault="client";error;error_description;constructor(j){super({name:"InvalidScopeException",$fault:"client",...j});Object.setPrototypeOf(this,h.prototype),this.error=j.error,this.error_description=j.error_description}}class u extends Q{name="SlowDownException";$fault="client";error;error_description;constructor(j){super({name:"SlowDownException",$fault:"client",...j});Object.setPrototypeOf(this,u.prototype),this.error=j.error,this.error_description=j.error_description}}class l extends Q{name="UnauthorizedClientException";$fault="client";error;error_description;constructor(j){super({name:"UnauthorizedClientException",$fault:"client",...j});Object.setPrototypeOf(this,l.prototype),this.error=j.error,this.error_description=j.error_description}}class d extends Q{name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(j){super({name:"UnsupportedGrantTypeException",$fault:"client",...j});Object.setPrototypeOf(this,d.prototype),this.error=j.error,this.error_description=j.error_description}}var ij="AccessDeniedException",oj="AuthorizationPendingException",ej="AccessToken",nj="ClientSecret",jB="CreateToken",BB="CreateTokenRequest",FB="CreateTokenResponse",JB="CodeVerifier",KB="ExpiredTokenException",LB="InvalidClientException",QB="InvalidGrantException",WB="InvalidRequestException",XB="InternalServerException",YB="InvalidScopeException",ZB="IdToken",NB="RefreshToken",MB="SlowDownException",bB="UnauthorizedClientException",VB="UnsupportedGrantTypeException",HB="accessToken",H="client",qB="clientId",zB="clientSecret",UB="codeVerifier",wB="code",GB="deviceCode",F="error",kB="expiresIn",b="error_description",yB="grantType",RB="http",V="httpError",PB="idToken",e="reason",n="refreshToken",TB="redirectUri",jj="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",AB="scope",DB="server",mB="tokenType",J="com.amazonaws.ssooidc",Bj=a.TypeRegistry.for(jj),Fj=[-3,jj,"SSOOIDCServiceException",0,[],[]];Bj.registerError(Fj,Q);var N=a.TypeRegistry.for(J),Jj=[-3,J,ij,{[F]:H,[V]:400},[F,e,b],[0,0,0]];N.registerError(Jj,D);var Kj=[-3,J,oj,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Kj,m);var Lj=[-3,J,KB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Lj,_);var Qj=[-3,J,XB,{[F]:DB,[V]:500},[F,b],[0,0]];N.registerError(Qj,v);var Wj=[-3,J,LB,{[F]:H,[V]:401},[F,b],[0,0]];N.registerError(Wj,$);var Xj=[-3,J,QB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Xj,I);var Yj=[-3,J,WB,{[F]:H,[V]:400},[F,e,b],[0,0,0]];N.registerError(Yj,O);var Zj=[-3,J,YB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Zj,h);var Nj=[-3,J,MB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Nj,u);var Mj=[-3,J,bB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Mj,l);var bj=[-3,J,VB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(bj,d);var Vj=[Bj,N],_B=[0,J,ej,8,0],vB=[0,J,nj,8,0],$B=[0,J,JB,8,0],IB=[0,J,ZB,8,0],Hj=[0,J,NB,8,0],qj=[3,J,BB,0,[qB,zB,yB,GB,wB,n,AB,TB,UB],[0,[()=>vB,0],0,0,0,[()=>Hj,0],64,0,[()=>$B,0]],3],zj=[3,J,FB,0,[HB,mB,kB,n,PB],[[()=>_B,0],0,1,[()=>Hj,0],[()=>IB,0]]],Uj=[9,J,jB,{[RB]:["POST","/token",200]},()=>qj,()=>zj],OB=(j)=>{return{apiVersion:"2019-06-10",base64Decoder:j?.base64Decoder??U.fromBase64,base64Encoder:j?.base64Encoder??U.toBase64,disableHostPrefix:j?.disableHostPrefix??!1,endpointProvider:j?.endpointProvider??tj,extensions:j?.extensions??[],httpAuthSchemeProvider:j?.httpAuthSchemeProvider??Ej,httpAuthSchemes:j?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(B)=>B.getIdentityProvider("aws.auth#sigv4"),signer:new S.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(B)=>B.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new T.NoAuthSigner}],logger:j?.logger??new X.NoOpLogger,protocol:j?.protocol??uj.AwsRestJsonProtocol,protocolSettings:j?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:Vj,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:j?.serviceId??"SSO OIDC",urlParser:j?.urlParser??A.parseUrl,utf8Decoder:j?.utf8Decoder??U.fromUtf8,utf8Encoder:j?.utf8Encoder??U.toUtf8}},hB=(j)=>{X.emitWarningIfUnsupportedVersion(process.version);let B=Y.resolveDefaultsModeConfig(j),K=()=>B().then(X.loadConfigsForDefaultMode),M=OB(j);Z.emitWarningIfUnsupportedVersion(process.version);let L={profile:j?.profile,logger:M.logger};return{...M,...j,runtime:"node",defaultsMode:B,authSchemePreference:j?.authSchemePreference??Y.loadConfig(S.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,L),bodyLengthChecker:j?.bodyLengthChecker??U.calculateBodyLength,defaultUserAgentProvider:j?.defaultUserAgentProvider??Z.createDefaultUserAgentProvider({serviceId:M.serviceId,clientVersion:gj.version}),maxAttempts:j?.maxAttempts??Y.loadConfig(G.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,j),region:j?.region??Y.loadConfig(Y.NODE_REGION_CONFIG_OPTIONS,{...Y.NODE_REGION_CONFIG_FILE_OPTIONS,...L}),requestHandler:r.NodeHttpHandler.create(j?.requestHandler??K),retryMode:j?.retryMode??Y.loadConfig({...G.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await K()).retryMode||G.DEFAULT_RETRY_MODE},j),sha256:j?.sha256??U.Hash.bind(null,"sha256"),streamCollector:j?.streamCollector??r.streamCollector,useDualstackEndpoint:j?.useDualstackEndpoint??Y.loadConfig(Y.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,L),useFipsEndpoint:j?.useFipsEndpoint??Y.loadConfig(Y.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,L),userAgentAppId:j?.userAgentAppId??Y.loadConfig(Z.NODE_APP_ID_CONFIG_OPTIONS,L)}},uB=(j)=>{let{httpAuthSchemes:B,httpAuthSchemeProvider:K,credentials:M}=j;return{setHttpAuthScheme(L){let y=B.findIndex((C)=>C.schemeId===L.schemeId);if(y===-1)B.push(L);else B.splice(y,1,L)},httpAuthSchemes(){return B},setHttpAuthSchemeProvider(L){K=L},httpAuthSchemeProvider(){return K},setCredentials(L){M=L},credentials(){return M}}},lB=(j)=>{return{httpAuthSchemes:j.httpAuthSchemes(),httpAuthSchemeProvider:j.httpAuthSchemeProvider(),credentials:j.credentials()}},dB=(j,B)=>{let K=Object.assign(Z.getAwsRegionExtensionConfiguration(j),X.getDefaultExtensionConfiguration(j),A.getHttpHandlerExtensionConfiguration(j),uB(j));return B.forEach((M)=>M.configure(K)),Object.assign(j,Z.resolveAwsRegionExtensionConfiguration(K),X.resolveDefaultRuntimeConfig(K),A.resolveHttpHandlerRuntimeConfig(K),lB(K))};class f extends X.Client{config;constructor(...[j]){let B=hB(j||{});super(B);this.initConfig=B;let K=aj(B),M=Z.resolveUserAgentConfig(K),L=G.resolveRetryConfig(M),y=Y.resolveRegionConfig(L),C=Z.resolveHostHeaderConfig(y),wj=w.resolveEndpointConfig(C),Gj=xj(wj),kj=dB(Gj,j?.extensions||[]);this.config=kj,this.middlewareStack.use(a.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(Z.getUserAgentPlugin(this.config)),this.middlewareStack.use(G.getRetryPlugin(this.config)),this.middlewareStack.use(A.getContentLengthPlugin(this.config)),this.middlewareStack.use(Z.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Z.getLoggerPlugin(this.config)),this.middlewareStack.use(Z.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(T.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:lj,identityProviderConfigProvider:async(yj)=>new T.DefaultIdentityProviderConfig({"aws.auth#sigv4":yj.credentials})})),this.middlewareStack.use(T.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class g extends X.Command.classBuilder().ep(Sj).m(function(j,B,K,M){return[w.getEndpointPlugin(K,j.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").sc(Uj).build(){}var CB={CreateTokenCommand:g};class s extends f{}X.createAggregatedClient(CB,s);var EB={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},xB={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};var{Command:aB,Client:SB}=X,fB=D,gB=Jj,sB=EB,rB=m,pB=Kj,cB=Uj,tB=g,iB=qj,oB=zj,eB=_,nB=Lj,jF=v,BF=Qj,FF=$,JF=Wj,KF=I,LF=Xj,QF=O,WF=Yj,XF=xB,YF=h,ZF=Zj,NF=s,MF=f,bF=Q,VF=Fj,HF=u,qF=Nj,zF=l,UF=Mj,wF=d,GF=bj,kF=Vj;export{kF as errorTypeRegistries,SB as __Client,GF as UnsupportedGrantTypeException$,wF as UnsupportedGrantTypeException,UF as UnauthorizedClientException$,zF as UnauthorizedClientException,qF as SlowDownException$,HF as SlowDownException,VF as SSOOIDCServiceException$,bF as SSOOIDCServiceException,MF as SSOOIDCClient,NF as SSOOIDC,ZF as InvalidScopeException$,YF as InvalidScopeException,XF as InvalidRequestExceptionReason,WF as InvalidRequestException$,QF as InvalidRequestException,LF as InvalidGrantException$,KF as InvalidGrantException,JF as InvalidClientException$,FF as InvalidClientException,BF as InternalServerException$,jF as InternalServerException,nB as ExpiredTokenException$,eB as ExpiredTokenException,oB as CreateTokenResponse$,iB as CreateTokenRequest$,tB as CreateTokenCommand,cB as CreateToken$,pB as AuthorizationPendingException$,rB as AuthorizationPendingException,sB as AccessDeniedExceptionReason,gB as AccessDeniedException$,fB as AccessDeniedException,aB as $Command};export default {get errorTypeRegistries(){return kF},get __Client(){return SB},get UnsupportedGrantTypeException$(){return GF},get UnsupportedGrantTypeException(){return wF},get UnauthorizedClientException$(){return UF},get UnauthorizedClientException(){return zF},get SlowDownException$(){return qF},get SlowDownException(){return HF},get SSOOIDCServiceException$(){return VF},get SSOOIDCServiceException(){return bF},get SSOOIDCClient(){return MF},get SSOOIDC(){return NF},get InvalidScopeException$(){return ZF},get InvalidScopeException(){return YF},get InvalidRequestExceptionReason(){return XF},get InvalidRequestException$(){return WF},get InvalidRequestException(){return QF},get InvalidGrantException$(){return LF},get InvalidGrantException(){return KF},get InvalidClientException$(){return JF},get InvalidClientException(){return FF},get InternalServerException$(){return BF},get InternalServerException(){return jF},get ExpiredTokenException$(){return nB},get ExpiredTokenException(){return eB},get CreateTokenResponse$(){return oB},get CreateTokenRequest$(){return iB},get CreateTokenCommand(){return tB},get CreateToken$(){return cB},get AuthorizationPendingException$(){return pB},get AuthorizationPendingException(){return rB},get AccessDeniedExceptionReason(){return sB},get AccessDeniedException$(){return gB},get AccessDeniedException(){return fB},get $Command(){return aB}};
2
+ import{te as Ij}from"./chunk-fnbpap62.js";import{xe as hj}from"./chunk-37n34pzd.js";import{ye as Oj}from"./chunk-v2zp22r3.js";import{Ae as vj,Be as $j,ze as _j}from"./chunk-j9pcnkkq.js";import{Ce as mj}from"./chunk-dq9kpj4a.js";import{uf as Rj,vf as Pj,wf as Tj,xf as Aj,yf as Dj}from"./chunk-cvdxgsq1.js";import"./chunk-aztre27e.js";var Z=$j(),T=vj(),X=Pj(),Y=Tj(),w=Aj(),A=mj(),G=_j(),a=Rj(),S=Ij(),U=Dj(),r=Oj(),uj=hj(),lj=async(j,B,K)=>{return{operation:X.getSmithyContext(B).operation,region:await X.normalizeProvider(j.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function dj(j){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:j.region},propertiesExtractor:(B,K)=>({signingProperties:{config:B,context:K}})}}function Cj(j){return{schemeId:"smithy.api#noAuth"}}var Ej=(j)=>{let B=[];switch(j.operation){case"CreateToken":{B.push(Cj());break}default:B.push(dj(j))}return B},xj=(j)=>{let B=S.resolveAwsSdkSigV4Config(j);return Object.assign(B,{authSchemePreference:X.normalizeProvider(j.authSchemePreference??[])})},aj=(j)=>{return Object.assign(j,{useDualstackEndpoint:j.useDualstackEndpoint??!1,useFipsEndpoint:j.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"})},Sj={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},fj="3.997.14",gj={version:fj},k="ref",q=-1,R=!0,p="isSet",o="PartitionResult",P="booleanEquals",E="getAttr",c={[k]:"Endpoint"},x={[k]:o},z={},t=[{[k]:"Region"}],i={conditions:[[p,[c]],[p,t],["aws.partition",t,o],[P,[{[k]:"UseFIPS"},R]],[P,[{[k]:"UseDualStack"},R]],[P,[{fn:E,argv:[x,"supportsDualStack"]},R]],[P,[{fn:E,argv:[x,"supportsFIPS"]},R]],["stringEquals",[{fn:E,argv:[x,"name"]},"aws-us-gov"]]],results:[[q],[q,"Invalid Configuration: FIPS and custom endpoint are not supported"],[q,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[c,z],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",z],[q,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",z],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",z],[q,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",z],[q,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",z],[q,"Invalid Configuration: Missing Region"]]},sj=2,W=1e8,rj=new Int32Array([-1,1,-1,0,13,3,1,4,W+12,2,5,W+12,3,8,6,4,7,W+11,5,W+9,W+10,4,11,9,6,10,W+8,7,W+6,W+7,5,12,W+5,6,W+4,W+5,3,W+1,14,4,W+2,W+3]),pj=w.BinaryDecisionDiagram.from(rj,sj,i.conditions,i.results),cj=new w.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),tj=(j,B={})=>{return cj.get(j,()=>w.decideEndpoint(pj,{endpointParams:j,logger:B.logger}))};w.customEndpointFunctions.aws=Z.awsEndpointFunctions;class Q extends X.ServiceException{constructor(j){super(j);Object.setPrototypeOf(this,Q.prototype)}}class D extends Q{name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(j){super({name:"AccessDeniedException",$fault:"client",...j});Object.setPrototypeOf(this,D.prototype),this.error=j.error,this.reason=j.reason,this.error_description=j.error_description}}class m extends Q{name="AuthorizationPendingException";$fault="client";error;error_description;constructor(j){super({name:"AuthorizationPendingException",$fault:"client",...j});Object.setPrototypeOf(this,m.prototype),this.error=j.error,this.error_description=j.error_description}}class _ extends Q{name="ExpiredTokenException";$fault="client";error;error_description;constructor(j){super({name:"ExpiredTokenException",$fault:"client",...j});Object.setPrototypeOf(this,_.prototype),this.error=j.error,this.error_description=j.error_description}}class v extends Q{name="InternalServerException";$fault="server";error;error_description;constructor(j){super({name:"InternalServerException",$fault:"server",...j});Object.setPrototypeOf(this,v.prototype),this.error=j.error,this.error_description=j.error_description}}class $ extends Q{name="InvalidClientException";$fault="client";error;error_description;constructor(j){super({name:"InvalidClientException",$fault:"client",...j});Object.setPrototypeOf(this,$.prototype),this.error=j.error,this.error_description=j.error_description}}class I extends Q{name="InvalidGrantException";$fault="client";error;error_description;constructor(j){super({name:"InvalidGrantException",$fault:"client",...j});Object.setPrototypeOf(this,I.prototype),this.error=j.error,this.error_description=j.error_description}}class O extends Q{name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(j){super({name:"InvalidRequestException",$fault:"client",...j});Object.setPrototypeOf(this,O.prototype),this.error=j.error,this.reason=j.reason,this.error_description=j.error_description}}class h extends Q{name="InvalidScopeException";$fault="client";error;error_description;constructor(j){super({name:"InvalidScopeException",$fault:"client",...j});Object.setPrototypeOf(this,h.prototype),this.error=j.error,this.error_description=j.error_description}}class u extends Q{name="SlowDownException";$fault="client";error;error_description;constructor(j){super({name:"SlowDownException",$fault:"client",...j});Object.setPrototypeOf(this,u.prototype),this.error=j.error,this.error_description=j.error_description}}class l extends Q{name="UnauthorizedClientException";$fault="client";error;error_description;constructor(j){super({name:"UnauthorizedClientException",$fault:"client",...j});Object.setPrototypeOf(this,l.prototype),this.error=j.error,this.error_description=j.error_description}}class d extends Q{name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(j){super({name:"UnsupportedGrantTypeException",$fault:"client",...j});Object.setPrototypeOf(this,d.prototype),this.error=j.error,this.error_description=j.error_description}}var ij="AccessDeniedException",oj="AuthorizationPendingException",ej="AccessToken",nj="ClientSecret",jB="CreateToken",BB="CreateTokenRequest",FB="CreateTokenResponse",JB="CodeVerifier",KB="ExpiredTokenException",LB="InvalidClientException",QB="InvalidGrantException",WB="InvalidRequestException",XB="InternalServerException",YB="InvalidScopeException",ZB="IdToken",NB="RefreshToken",MB="SlowDownException",bB="UnauthorizedClientException",VB="UnsupportedGrantTypeException",HB="accessToken",H="client",qB="clientId",zB="clientSecret",UB="codeVerifier",wB="code",GB="deviceCode",F="error",kB="expiresIn",b="error_description",yB="grantType",RB="http",V="httpError",PB="idToken",e="reason",n="refreshToken",TB="redirectUri",jj="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",AB="scope",DB="server",mB="tokenType",J="com.amazonaws.ssooidc",Bj=a.TypeRegistry.for(jj),Fj=[-3,jj,"SSOOIDCServiceException",0,[],[]];Bj.registerError(Fj,Q);var N=a.TypeRegistry.for(J),Jj=[-3,J,ij,{[F]:H,[V]:400},[F,e,b],[0,0,0]];N.registerError(Jj,D);var Kj=[-3,J,oj,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Kj,m);var Lj=[-3,J,KB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Lj,_);var Qj=[-3,J,XB,{[F]:DB,[V]:500},[F,b],[0,0]];N.registerError(Qj,v);var Wj=[-3,J,LB,{[F]:H,[V]:401},[F,b],[0,0]];N.registerError(Wj,$);var Xj=[-3,J,QB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Xj,I);var Yj=[-3,J,WB,{[F]:H,[V]:400},[F,e,b],[0,0,0]];N.registerError(Yj,O);var Zj=[-3,J,YB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Zj,h);var Nj=[-3,J,MB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Nj,u);var Mj=[-3,J,bB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(Mj,l);var bj=[-3,J,VB,{[F]:H,[V]:400},[F,b],[0,0]];N.registerError(bj,d);var Vj=[Bj,N],_B=[0,J,ej,8,0],vB=[0,J,nj,8,0],$B=[0,J,JB,8,0],IB=[0,J,ZB,8,0],Hj=[0,J,NB,8,0],qj=[3,J,BB,0,[qB,zB,yB,GB,wB,n,AB,TB,UB],[0,[()=>vB,0],0,0,0,[()=>Hj,0],64,0,[()=>$B,0]],3],zj=[3,J,FB,0,[HB,mB,kB,n,PB],[[()=>_B,0],0,1,[()=>Hj,0],[()=>IB,0]]],Uj=[9,J,jB,{[RB]:["POST","/token",200]},()=>qj,()=>zj],OB=(j)=>{return{apiVersion:"2019-06-10",base64Decoder:j?.base64Decoder??U.fromBase64,base64Encoder:j?.base64Encoder??U.toBase64,disableHostPrefix:j?.disableHostPrefix??!1,endpointProvider:j?.endpointProvider??tj,extensions:j?.extensions??[],httpAuthSchemeProvider:j?.httpAuthSchemeProvider??Ej,httpAuthSchemes:j?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(B)=>B.getIdentityProvider("aws.auth#sigv4"),signer:new S.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(B)=>B.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new T.NoAuthSigner}],logger:j?.logger??new X.NoOpLogger,protocol:j?.protocol??uj.AwsRestJsonProtocol,protocolSettings:j?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:Vj,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:j?.serviceId??"SSO OIDC",urlParser:j?.urlParser??A.parseUrl,utf8Decoder:j?.utf8Decoder??U.fromUtf8,utf8Encoder:j?.utf8Encoder??U.toUtf8}},hB=(j)=>{X.emitWarningIfUnsupportedVersion(process.version);let B=Y.resolveDefaultsModeConfig(j),K=()=>B().then(X.loadConfigsForDefaultMode),M=OB(j);Z.emitWarningIfUnsupportedVersion(process.version);let L={profile:j?.profile,logger:M.logger};return{...M,...j,runtime:"node",defaultsMode:B,authSchemePreference:j?.authSchemePreference??Y.loadConfig(S.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,L),bodyLengthChecker:j?.bodyLengthChecker??U.calculateBodyLength,defaultUserAgentProvider:j?.defaultUserAgentProvider??Z.createDefaultUserAgentProvider({serviceId:M.serviceId,clientVersion:gj.version}),maxAttempts:j?.maxAttempts??Y.loadConfig(G.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,j),region:j?.region??Y.loadConfig(Y.NODE_REGION_CONFIG_OPTIONS,{...Y.NODE_REGION_CONFIG_FILE_OPTIONS,...L}),requestHandler:r.NodeHttpHandler.create(j?.requestHandler??K),retryMode:j?.retryMode??Y.loadConfig({...G.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await K()).retryMode||G.DEFAULT_RETRY_MODE},j),sha256:j?.sha256??U.Hash.bind(null,"sha256"),streamCollector:j?.streamCollector??r.streamCollector,useDualstackEndpoint:j?.useDualstackEndpoint??Y.loadConfig(Y.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,L),useFipsEndpoint:j?.useFipsEndpoint??Y.loadConfig(Y.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,L),userAgentAppId:j?.userAgentAppId??Y.loadConfig(Z.NODE_APP_ID_CONFIG_OPTIONS,L)}},uB=(j)=>{let{httpAuthSchemes:B,httpAuthSchemeProvider:K,credentials:M}=j;return{setHttpAuthScheme(L){let y=B.findIndex((C)=>C.schemeId===L.schemeId);if(y===-1)B.push(L);else B.splice(y,1,L)},httpAuthSchemes(){return B},setHttpAuthSchemeProvider(L){K=L},httpAuthSchemeProvider(){return K},setCredentials(L){M=L},credentials(){return M}}},lB=(j)=>{return{httpAuthSchemes:j.httpAuthSchemes(),httpAuthSchemeProvider:j.httpAuthSchemeProvider(),credentials:j.credentials()}},dB=(j,B)=>{let K=Object.assign(Z.getAwsRegionExtensionConfiguration(j),X.getDefaultExtensionConfiguration(j),A.getHttpHandlerExtensionConfiguration(j),uB(j));return B.forEach((M)=>M.configure(K)),Object.assign(j,Z.resolveAwsRegionExtensionConfiguration(K),X.resolveDefaultRuntimeConfig(K),A.resolveHttpHandlerRuntimeConfig(K),lB(K))};class f extends X.Client{config;constructor(...[j]){let B=hB(j||{});super(B);this.initConfig=B;let K=aj(B),M=Z.resolveUserAgentConfig(K),L=G.resolveRetryConfig(M),y=Y.resolveRegionConfig(L),C=Z.resolveHostHeaderConfig(y),wj=w.resolveEndpointConfig(C),Gj=xj(wj),kj=dB(Gj,j?.extensions||[]);this.config=kj,this.middlewareStack.use(a.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(Z.getUserAgentPlugin(this.config)),this.middlewareStack.use(G.getRetryPlugin(this.config)),this.middlewareStack.use(A.getContentLengthPlugin(this.config)),this.middlewareStack.use(Z.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Z.getLoggerPlugin(this.config)),this.middlewareStack.use(Z.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(T.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:lj,identityProviderConfigProvider:async(yj)=>new T.DefaultIdentityProviderConfig({"aws.auth#sigv4":yj.credentials})})),this.middlewareStack.use(T.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class g extends X.Command.classBuilder().ep(Sj).m(function(j,B,K,M){return[w.getEndpointPlugin(K,j.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").sc(Uj).build(){}var CB={CreateTokenCommand:g};class s extends f{}X.createAggregatedClient(CB,s);var EB={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},xB={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};var{Command:aB,Client:SB}=X,fB=D,gB=Jj,sB=EB,rB=m,pB=Kj,cB=Uj,tB=g,iB=qj,oB=zj,eB=_,nB=Lj,jF=v,BF=Qj,FF=$,JF=Wj,KF=I,LF=Xj,QF=O,WF=Yj,XF=xB,YF=h,ZF=Zj,NF=s,MF=f,bF=Q,VF=Fj,HF=u,qF=Nj,zF=l,UF=Mj,wF=d,GF=bj,kF=Vj;export{kF as errorTypeRegistries,SB as __Client,GF as UnsupportedGrantTypeException$,wF as UnsupportedGrantTypeException,UF as UnauthorizedClientException$,zF as UnauthorizedClientException,qF as SlowDownException$,HF as SlowDownException,VF as SSOOIDCServiceException$,bF as SSOOIDCServiceException,MF as SSOOIDCClient,NF as SSOOIDC,ZF as InvalidScopeException$,YF as InvalidScopeException,XF as InvalidRequestExceptionReason,WF as InvalidRequestException$,QF as InvalidRequestException,LF as InvalidGrantException$,KF as InvalidGrantException,JF as InvalidClientException$,FF as InvalidClientException,BF as InternalServerException$,jF as InternalServerException,nB as ExpiredTokenException$,eB as ExpiredTokenException,oB as CreateTokenResponse$,iB as CreateTokenRequest$,tB as CreateTokenCommand,cB as CreateToken$,pB as AuthorizationPendingException$,rB as AuthorizationPendingException,sB as AccessDeniedExceptionReason,gB as AccessDeniedException$,fB as AccessDeniedException,aB as $Command};export default {get errorTypeRegistries(){return kF},get __Client(){return SB},get UnsupportedGrantTypeException$(){return GF},get UnsupportedGrantTypeException(){return wF},get UnauthorizedClientException$(){return UF},get UnauthorizedClientException(){return zF},get SlowDownException$(){return qF},get SlowDownException(){return HF},get SSOOIDCServiceException$(){return VF},get SSOOIDCServiceException(){return bF},get SSOOIDCClient(){return MF},get SSOOIDC(){return NF},get InvalidScopeException$(){return ZF},get InvalidScopeException(){return YF},get InvalidRequestExceptionReason(){return XF},get InvalidRequestException$(){return WF},get InvalidRequestException(){return QF},get InvalidGrantException$(){return LF},get InvalidGrantException(){return KF},get InvalidClientException$(){return JF},get InvalidClientException(){return FF},get InternalServerException$(){return BF},get InternalServerException(){return jF},get ExpiredTokenException$(){return nB},get ExpiredTokenException(){return eB},get CreateTokenResponse$(){return oB},get CreateTokenRequest$(){return iB},get CreateTokenCommand(){return tB},get CreateToken$(){return cB},get AuthorizationPendingException$(){return pB},get AuthorizationPendingException(){return rB},get AccessDeniedExceptionReason(){return sB},get AccessDeniedException$(){return gB},get AccessDeniedException(){return fB},get $Command(){return aB}};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{h as P,i as g,j as b,k as h,l as O}from"./chunk-mkdyknbz.js";import"./chunk-9jncnqbj.js";import"./chunk-754varfr.js";import{Qd as u}from"./chunk-g4qwkcdv.js";import{Uf as s}from"./chunk-qe0sfafy.js";import{uh as f}from"./chunk-87x607rz.js";import"./chunk-9w5rx0fb.js";import{Eh as E}from"./chunk-wb69d52j.js";import"./chunk-pfn1db1m.js";import"./chunk-h56jxxvj.js";import"./chunk-x36jhtex.js";import"./chunk-c1ypbbka.js";import"./chunk-qnqqrvvs.js";import{Bj as S,Cj as p}from"./chunk-3f054f69.js";import"./chunk-26qt44f1.js";import"./chunk-0ke6x10y.js";import"./chunk-meaybtcc.js";import"./chunk-rmsqb6r4.js";import"./chunk-3j7skhxg.js";import"./chunk-4pssh5d3.js";import"./chunk-9dpn4792.js";import"./chunk-pf7cj4jd.js";import"./chunk-9r6bvkp4.js";import"./chunk-amx3x4kd.js";import"./chunk-b50t4jc5.js";import"./chunk-nf8gkxbk.js";import"./chunk-zny2qaqa.js";import"./chunk-9va5eh9s.js";import"./chunk-mkyrg7gt.js";import"./chunk-7v4fzkbb.js";import"./chunk-cqtkxwd8.js";import"./chunk-pk0tytcm.js";import"./chunk-ww8ear80.js";import"./chunk-kyny0t2g.js";import"./chunk-3e8p4a3y.js";import"./chunk-qpm5afdz.js";import"./chunk-jtrcnpm7.js";import"./chunk-gaen9ya4.js";import"./chunk-dd11kryy.js";import"./chunk-msm3r7ny.js";import"./chunk-e075v4e9.js";import"./chunk-jv98gw88.js";import"./chunk-jhq5bvhs.js";import"./chunk-xw283h2r.js";import"./chunk-8cty50g7.js";import"./chunk-v7ah9gg0.js";import"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import{By as I}from"./chunk-p409grvp.js";import{TG as l,YA as d,nC as D}from"./chunk-ag9thqkv.js";import"./chunk-qnv2v02g.js";import"./chunk-7fx6x8x9.js";import"./chunk-0rmmg3g4.js";var A=(o)=>l.promise(()=>E(o)),m=(o)=>l.sync(()=>s.println(o)),v=(o)=>s.Style.TEXT_DIM+o+s.Style.TEXT_NORMAL,L=(o)=>o?v(" (active)"):"",w=(o,e)=>`${o.email} ${v(o.url)}${L(e)}`,x=(o,e,t)=>`${e.name} (${o.email})${L(t)}`,C=(o,e,t)=>{let n=t?s.Style.TEXT_SUCCESS+"\u25CF"+s.Style.TEXT_NORMAL:" ",c=t?s.Style.TEXT_HIGHLIGHT_BOLD+e.name+s.Style.TEXT_NORMAL:e.name;return` ${n} ${c} ${v(o.email)} ${v(o.url)} ${v(e.id)}`},T=(o,e)=>d.isSome(o)&&o.value.id===e.accountID&&o.value.active_org_id===e.orgID,_=l.fn("login")(function*(o){let e=yield*p.Service;yield*P("Log in");let t=yield*e.login(o);yield*b.info("Go to: "+t.url),yield*b.info("Enter code: "+t.user),yield*A(t.url);let n=O();yield*n.start("Waiting for authorization...");let c=(r)=>l.gen(function*(){yield*l.sleep(r);let i=yield*e.poll(t);if(i._tag==="PollPending")return yield*c(r);if(i._tag==="PollSlow")return yield*c(D.sum(r,D.seconds(5)));return i}),a=yield*c(t.interval).pipe(l.timeout(t.expiry),l.catchTag("TimeoutError",()=>l.succeed(new S)));yield*I.valueTags(a,{PollSuccess:(r)=>l.gen(function*(){yield*n.stop("Logged in as "+r.email),yield*g("Done")}),PollExpired:()=>n.stop("Device code expired",1),PollDenied:()=>n.stop("Authorization denied",1),PollError:(r)=>n.stop("Error: "+String(r.cause),1),PollPending:()=>n.stop("Unexpected state",1),PollSlow:()=>n.stop("Unexpected state",1)})}),N=l.fn("logout")(function*(o){let e=yield*p.Service,t=yield*e.list();if(t.length===0)return yield*m("Not logged in");if(o){let i=t.find((y)=>y.email===o);if(!i)return yield*m("Account not found: "+o);yield*e.remove(i.id),yield*g("Logged out from "+o);return}let n=yield*e.active(),c=d.map(n,(i)=>i.id);yield*P("Log out");let a=t.map((i)=>{let y=d.isSome(c)&&c.value===i.id;return{value:i,label:w(i,y)}}),r=yield*h({message:"Select account to log out",options:a});if(d.isNone(r))return;yield*e.remove(r.value.id),yield*g("Logged out from "+r.value.email)}),$=l.fn("switch")(function*(){let o=yield*p.Service,e=yield*o.orgsByAccount();if(e.length===0)return yield*m("Not logged in");let t=yield*o.active(),n=e.flatMap((r)=>r.orgs.map((i)=>{let y=T(t,{accountID:r.account.id,orgID:i.id});return{value:{orgID:i.id,accountID:r.account.id,label:i.name},label:x(r.account,i,y)}}));if(n.length===0)return yield*m("No orgs found");yield*P("Switch org");let c=yield*h({message:"Select org",options:n});if(d.isNone(c))return;let a=c.value;yield*o.use(a.accountID,d.some(a.orgID)),yield*g("Switched to "+a.label)}),R=l.fn("orgs")(function*(){let o=yield*p.Service,e=yield*o.orgsByAccount();if(e.length===0)return yield*m("No accounts found");if(!e.some((n)=>n.orgs.length>0))return yield*m("No orgs found");let t=yield*o.active();for(let n of e)for(let c of n.orgs){let a=T(t,{accountID:n.account.id,orgID:c.id});yield*m(C(n.account,c,a))}}),M=l.fn("open")(function*(){let e=yield*(yield*p.Service).active();if(d.isNone(e))return yield*m("No active account");let t=e.value.url;yield*A(t),yield*g("Opened "+t)}),X=u({command:"login <url>",describe:!1,builder:(o)=>o.positional("url",{describe:"server URL",type:"string",demandOption:!0}),async handler(o){s.empty(),await f.runPromise(_(o.url))}}),B=u({command:"logout [email]",describe:!1,builder:(o)=>o.positional("email",{describe:"account email to log out from",type:"string"}),async handler(o){s.empty(),await f.runPromise(N(o.email))}}),U=u({command:"switch",describe:!1,async handler(){s.empty(),await f.runPromise($())}}),G=u({command:"orgs",describe:!1,async handler(){s.empty(),await f.runPromise(R())}}),H=u({command:"open",describe:!1,async handler(){s.empty(),await f.runPromise(M())}}),Y=u({command:"console",describe:!1,builder:(o)=>o.command({...X,describe:"log in to console"}).command({...B,describe:"log out from console"}).command({...U,describe:"switch active org"}).command({...G,describe:"list orgs"}).command({...H,describe:"open active console account"}).demandCommand(),async handler(){}});export{C as formatOrgLine,w as formatAccountLabel,U as SwitchCommand,G as OrgsCommand,H as OpenCommand,B as LogoutCommand,X as LoginCommand,Y as ConsoleCommand};
2
+ import{i as P,j as g,k as b,l as h,m as O}from"./chunk-c01z3cvg.js";import"./chunk-jje0srjq.js";import"./chunk-27yxgy03.js";import{Rd as u}from"./chunk-yajd975f.js";import{Vf as s}from"./chunk-7ppd2phw.js";import{hh as f}from"./chunk-wrw22v0a.js";import"./chunk-h7yya9pv.js";import{bi as E}from"./chunk-p68rwmhc.js";import"./chunk-0a0vat1h.js";import"./chunk-z8v2tsz2.js";import"./chunk-j8efst22.js";import"./chunk-a1pw9r6f.js";import"./chunk-d5bxan80.js";import{$j as p,_j as S}from"./chunk-gsvdt4kq.js";import"./chunk-b7mg883n.js";import"./chunk-90zd5rss.js";import"./chunk-17psxhve.js";import"./chunk-nj4d554m.js";import"./chunk-m2x9xhha.js";import"./chunk-2wcv3sq5.js";import"./chunk-a1p2f16h.js";import"./chunk-nt4e3em9.js";import"./chunk-ak5ngp50.js";import"./chunk-v965rsr8.js";import"./chunk-1sgby720.js";import"./chunk-jg7s9rqz.js";import"./chunk-4tbwha3m.js";import"./chunk-m612agnk.js";import"./chunk-yq3m8190.js";import"./chunk-btz9jvec.js";import"./chunk-cqtkxwd8.js";import"./chunk-fkgv2hqd.js";import"./chunk-zyhdxggp.js";import"./chunk-q6ztpfcs.js";import"./chunk-jm1ptn8n.js";import"./chunk-c5e6sk9c.js";import"./chunk-m02zt1a3.js";import"./chunk-vg2fmyje.js";import"./chunk-c0796v8j.js";import"./chunk-njnwdgvd.js";import"./chunk-4qqkqrn9.js";import"./chunk-j6emx6jn.js";import"./chunk-be216spx.js";import"./chunk-12bssxd4.js";import"./chunk-k9b1jcqw.js";import"./chunk-zxaaxb99.js";import"./chunk-whxjkz9a.js";import"./chunk-89v6dgpp.js";import"./chunk-k309zez0.js";import"./chunk-09kba1hg.js";import"./chunk-t12xrrfr.js";import{xA as I}from"./chunk-phxrg7aw.js";import{PI as l,UC as d,jE as D}from"./chunk-snm5q21k.js";import"./chunk-xpc2zgj7.js";import"./chunk-qjjch1zt.js";import"./chunk-aztre27e.js";var A=(o)=>l.promise(()=>E(o)),m=(o)=>l.sync(()=>s.println(o)),v=(o)=>s.Style.TEXT_DIM+o+s.Style.TEXT_NORMAL,L=(o)=>o?v(" (active)"):"",w=(o,e)=>`${o.email} ${v(o.url)}${L(e)}`,x=(o,e,t)=>`${e.name} (${o.email})${L(t)}`,C=(o,e,t)=>{let n=t?s.Style.TEXT_SUCCESS+"\u25CF"+s.Style.TEXT_NORMAL:" ",c=t?s.Style.TEXT_HIGHLIGHT_BOLD+e.name+s.Style.TEXT_NORMAL:e.name;return` ${n} ${c} ${v(o.email)} ${v(o.url)} ${v(e.id)}`},T=(o,e)=>d.isSome(o)&&o.value.id===e.accountID&&o.value.active_org_id===e.orgID,_=l.fn("login")(function*(o){let e=yield*p.Service;yield*P("Log in");let t=yield*e.login(o);yield*b.info("Go to: "+t.url),yield*b.info("Enter code: "+t.user),yield*A(t.url);let n=O();yield*n.start("Waiting for authorization...");let c=(r)=>l.gen(function*(){yield*l.sleep(r);let i=yield*e.poll(t);if(i._tag==="PollPending")return yield*c(r);if(i._tag==="PollSlow")return yield*c(D.sum(r,D.seconds(5)));return i}),a=yield*c(t.interval).pipe(l.timeout(t.expiry),l.catchTag("TimeoutError",()=>l.succeed(new S)));yield*I.valueTags(a,{PollSuccess:(r)=>l.gen(function*(){yield*n.stop("Logged in as "+r.email),yield*g("Done")}),PollExpired:()=>n.stop("Device code expired",1),PollDenied:()=>n.stop("Authorization denied",1),PollError:(r)=>n.stop("Error: "+String(r.cause),1),PollPending:()=>n.stop("Unexpected state",1),PollSlow:()=>n.stop("Unexpected state",1)})}),N=l.fn("logout")(function*(o){let e=yield*p.Service,t=yield*e.list();if(t.length===0)return yield*m("Not logged in");if(o){let i=t.find((y)=>y.email===o);if(!i)return yield*m("Account not found: "+o);yield*e.remove(i.id),yield*g("Logged out from "+o);return}let n=yield*e.active(),c=d.map(n,(i)=>i.id);yield*P("Log out");let a=t.map((i)=>{let y=d.isSome(c)&&c.value===i.id;return{value:i,label:w(i,y)}}),r=yield*h({message:"Select account to log out",options:a});if(d.isNone(r))return;yield*e.remove(r.value.id),yield*g("Logged out from "+r.value.email)}),$=l.fn("switch")(function*(){let o=yield*p.Service,e=yield*o.orgsByAccount();if(e.length===0)return yield*m("Not logged in");let t=yield*o.active(),n=e.flatMap((r)=>r.orgs.map((i)=>{let y=T(t,{accountID:r.account.id,orgID:i.id});return{value:{orgID:i.id,accountID:r.account.id,label:i.name},label:x(r.account,i,y)}}));if(n.length===0)return yield*m("No orgs found");yield*P("Switch org");let c=yield*h({message:"Select org",options:n});if(d.isNone(c))return;let a=c.value;yield*o.use(a.accountID,d.some(a.orgID)),yield*g("Switched to "+a.label)}),R=l.fn("orgs")(function*(){let o=yield*p.Service,e=yield*o.orgsByAccount();if(e.length===0)return yield*m("No accounts found");if(!e.some((n)=>n.orgs.length>0))return yield*m("No orgs found");let t=yield*o.active();for(let n of e)for(let c of n.orgs){let a=T(t,{accountID:n.account.id,orgID:c.id});yield*m(C(n.account,c,a))}}),M=l.fn("open")(function*(){let e=yield*(yield*p.Service).active();if(d.isNone(e))return yield*m("No active account");let t=e.value.url;yield*A(t),yield*g("Opened "+t)}),X=u({command:"login <url>",describe:!1,builder:(o)=>o.positional("url",{describe:"server URL",type:"string",demandOption:!0}),async handler(o){s.empty(),await f.runPromise(_(o.url))}}),B=u({command:"logout [email]",describe:!1,builder:(o)=>o.positional("email",{describe:"account email to log out from",type:"string"}),async handler(o){s.empty(),await f.runPromise(N(o.email))}}),U=u({command:"switch",describe:!1,async handler(){s.empty(),await f.runPromise($())}}),G=u({command:"orgs",describe:!1,async handler(){s.empty(),await f.runPromise(R())}}),H=u({command:"open",describe:!1,async handler(){s.empty(),await f.runPromise(M())}}),Y=u({command:"console",describe:!1,builder:(o)=>o.command({...X,describe:"log in to console"}).command({...B,describe:"log out from console"}).command({...U,describe:"switch active org"}).command({...G,describe:"list orgs"}).command({...H,describe:"open active console account"}).demandCommand(),async handler(){}});export{C as formatOrgLine,w as formatAccountLabel,U as SwitchCommand,G as OrgsCommand,H as OpenCommand,B as LogoutCommand,X as LoginCommand,Y as ConsoleCommand};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{ts as n}from"./chunk-v7ah9gg0.js";function s(e){let r=e?.password??n.QITQODE_SERVER_PASSWORD;if(!r)return;let t=e?.username??n.QITQODE_SERVER_USERNAME??"qitqode";return`Basic ${Buffer.from(`${t}:${r}`).toString("base64")}`}function o(e){let r=s(e);if(!r)return;return{Authorization:r}}
3
- export{o as O};
2
+ import{pu as n}from"./chunk-zxaaxb99.js";function s(e){let r=e?.password??n.QITQODE_SERVER_PASSWORD;if(!r)return;let t=e?.username??n.QITQODE_SERVER_USERNAME??"qitqode";return`Basic ${Buffer.from(`${t}:${r}`).toString("base64")}`}function o(e){let r=s(e);if(!r)return;return{Authorization:r}}
3
+ export{o as P};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import"./chunk-0rmmg3g4.js";var e={"ui.sessionReview.title":"Modifications de la session","ui.sessionReview.title.lastTurn":"Modifications du dernier tour","ui.sessionReview.diffStyle.unified":"Unifi\xE9","ui.sessionReview.diffStyle.split":"Divis\xE9","ui.sessionReview.openFile":"Ouvrir le fichier","ui.sessionReview.selection.line":"ligne {{line}}","ui.sessionReview.selection.lines":"lignes {{start}}-{{end}}","ui.sessionReview.expandAll":"Tout d\xE9velopper","ui.sessionReview.collapseAll":"Tout r\xE9duire","ui.sessionReview.change.added":"Ajout\xE9","ui.sessionReview.change.removed":"Supprim\xE9","ui.sessionReview.change.modified":"Modifi\xE9","ui.sessionReview.image.loading":"Chargement...","ui.sessionReview.image.placeholder":"Image","ui.sessionReview.largeDiff.title":"Diff trop volumineux pour \xEAtre affich\xE9","ui.sessionReview.largeDiff.meta":"Limite : {{limit}} lignes modifi\xE9es. Actuel : {{current}} lignes modifi\xE9es.","ui.sessionReview.largeDiff.renderAnyway":"Afficher quand m\xEAme","ui.fileMedia.kind.image":"image","ui.fileMedia.kind.audio":"audio","ui.fileMedia.state.removed":"Fichier {{kind}} supprim\xE9","ui.fileMedia.state.loading":"Chargement du fichier {{kind}}","ui.fileMedia.state.error":"Erreur avec le fichier {{kind}}","ui.fileMedia.state.unavailable":"Fichier {{kind}} indisponible","ui.fileMedia.binary.title":"Fichier binaire","ui.fileMedia.binary.description.path":"Impossible d'afficher {{path}} car il s'agit d'un fichier binaire.","ui.fileMedia.binary.description.default":"Impossible d'afficher ce fichier car il s'agit d'un fichier binaire.","ui.lineComment.label.prefix":"Commenter sur ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"Commentaire sur ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"Ajouter un commentaire","ui.lineComment.submit":"Commenter","ui.sessionTurn.steps.show":"Afficher les \xE9tapes","ui.sessionTurn.steps.hide":"Masquer les \xE9tapes","ui.sessionTurn.summary.response":"R\xE9ponse","ui.sessionTurn.diff.showMore":"Afficher plus de modifications ({{count}})","ui.sessionTurn.retry.retrying":"nouvelle tentative","ui.sessionTurn.retry.inSeconds":"dans {{seconds}}s","ui.sessionTurn.retry.attempt":"tentative n\xB0{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - tentative n\xB0{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini est en surchauffe","ui.sessionTurn.error.freeUsageExceeded":"Limite d'utilisation gratuite d\xE9pass\xE9e","ui.sessionTurn.error.addQredits":"Ajouter des cr\xE9dits","ui.sessionTurn.status.delegating":"D\xE9l\xE9gation du travail","ui.sessionTurn.status.planning":"Planification des prochaines \xE9tapes","ui.sessionTurn.status.gatheringContext":"Exploration","ui.sessionTurn.status.gatheredContext":"Explor\xE9","ui.sessionTurn.status.searchingCodebase":"Recherche dans la base de code","ui.sessionTurn.status.searchingWeb":"Recherche sur le web","ui.sessionTurn.status.makingEdits":"Application des modifications","ui.sessionTurn.status.runningCommands":"Ex\xE9cution des commandes","ui.sessionTurn.status.thinking":"R\xE9flexion","ui.sessionTurn.status.thinkingWithTopic":"R\xE9flexion - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"Rassemblement des id\xE9es","ui.sessionTurn.status.consideringNextSteps":"Examen des prochaines \xE9tapes","ui.messagePart.questions.dismissed":"Questions ignor\xE9es","ui.messagePart.compaction":"Session compact\xE9e","ui.messagePart.context.read.one":"{{count}} lecture","ui.messagePart.context.read.other":"{{count}} lectures","ui.messagePart.context.search.one":"{{count}} recherche","ui.messagePart.context.search.other":"{{count}} recherches","ui.messagePart.context.list.one":"{{count}} liste","ui.messagePart.context.list.other":"{{count}} listes","ui.messagePart.diagnostic.error":"Erreur","ui.messagePart.title.edit":"Modifier","ui.messagePart.title.write":"\xC9crire","ui.messagePart.option.typeOwnAnswer":"Tapez votre propre r\xE9ponse","ui.messagePart.review.title":"Passez en revue vos r\xE9ponses","ui.list.loading":"Chargement","ui.list.empty":"Aucun r\xE9sultat","ui.list.clearFilter":"Effacer le filtre","ui.list.emptyWithFilter.prefix":"Aucun r\xE9sultat pour","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"Nouveau message","ui.textField.copyToClipboard":"Copier dans le presse-papiers","ui.textField.copyLink":"Copier le lien","ui.textField.copied":"Copi\xE9","ui.imagePreview.alt":"Aper\xE7u de l'image","ui.scrollView.ariaLabel":"contenu d\xE9filable","ui.tool.read":"Lire","ui.tool.loaded":"Charg\xE9","ui.tool.list":"Lister","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Webfetch","ui.tool.websearch":"Recherche Web","ui.tool.codesearch":"Recherche de code","ui.tool.shell":"Shell","ui.tool.patch":"Patch","ui.tool.todos":"T\xE2ches","ui.tool.todos.read":"Lire les t\xE2ches","ui.tool.questions":"Questions","ui.tool.agent":"Agent {{type}}","ui.tool.agent.default":"Agent","ui.common.file.one":"fichier","ui.common.file.other":"fichiers","ui.common.question.one":"question","ui.common.question.other":"questions","ui.common.add":"Ajouter","ui.common.back":"Retour","ui.common.cancel":"Annuler","ui.common.confirm":"Confirmer","ui.common.dismiss":"Ignorer","ui.common.close":"Fermer","ui.common.next":"Suivant","ui.common.submit":"Soumettre","ui.permission.deny":"Refuser","ui.permission.allowAlways":"Toujours autoriser","ui.permission.allowOnce":"Autoriser une fois","ui.message.expand":"D\xE9velopper le message","ui.message.collapse":"R\xE9duire le message","ui.message.copy":"Copier","ui.message.copyMessage":"Copier le message","ui.message.forkMessage":"Bifurquer vers une nouvelle session","ui.message.revertMessage":"R\xE9initialiser \xE0 ce point","ui.message.copyResponse":"Copier la r\xE9ponse","ui.message.copied":"Copi\xE9 !","ui.message.interrupted":"Interrompu","ui.message.queued":"En file","ui.message.attachment.alt":"pi\xE8ce jointe","ui.patch.action.deleted":"Supprim\xE9","ui.patch.action.created":"Cr\xE9\xE9","ui.patch.action.moved":"D\xE9plac\xE9","ui.patch.action.patched":"Corrig\xE9","ui.question.subtitle.answered":"{{count}} r\xE9pondu(s)","ui.question.answer.none":"(pas de r\xE9ponse)","ui.question.review.notAnswered":"(non r\xE9pondu)","ui.question.multiHint":"S\xE9lectionnez tout ce qui s'applique","ui.question.singleHint":"S\xE9lectionnez une r\xE9ponse","ui.question.custom.placeholder":"Tapez votre r\xE9ponse...","ui.fileSearch.placeholder":"Rechercher","ui.fileSearch.previousMatch":"Pr\xE9c\xE9dent","ui.fileSearch.nextMatch":"Suivant","ui.fileSearch.close":"Fermer la recherche","ui.tool.task":"T\xE2che","ui.tool.skill":"Comp\xE9tence","ui.basicTool.called":"Appel\xE9 `{{tool}}`","ui.toolErrorCard.failed":"\xC9chou\xE9","ui.toolErrorCard.copyError":"Copier l'erreur","ui.message.duration.seconds":"{{count}}s","ui.message.duration.minutesSeconds":"{{minutes}}m {{seconds}}s"};export{e as dict};
2
+ import"./chunk-aztre27e.js";var e={"ui.sessionReview.title":"Modifications de la session","ui.sessionReview.title.lastTurn":"Modifications du dernier tour","ui.sessionReview.diffStyle.unified":"Unifi\xE9","ui.sessionReview.diffStyle.split":"Divis\xE9","ui.sessionReview.openFile":"Ouvrir le fichier","ui.sessionReview.selection.line":"ligne {{line}}","ui.sessionReview.selection.lines":"lignes {{start}}-{{end}}","ui.sessionReview.expandAll":"Tout d\xE9velopper","ui.sessionReview.collapseAll":"Tout r\xE9duire","ui.sessionReview.change.added":"Ajout\xE9","ui.sessionReview.change.removed":"Supprim\xE9","ui.sessionReview.change.modified":"Modifi\xE9","ui.sessionReview.image.loading":"Chargement...","ui.sessionReview.image.placeholder":"Image","ui.sessionReview.largeDiff.title":"Diff trop volumineux pour \xEAtre affich\xE9","ui.sessionReview.largeDiff.meta":"Limite : {{limit}} lignes modifi\xE9es. Actuel : {{current}} lignes modifi\xE9es.","ui.sessionReview.largeDiff.renderAnyway":"Afficher quand m\xEAme","ui.fileMedia.kind.image":"image","ui.fileMedia.kind.audio":"audio","ui.fileMedia.state.removed":"Fichier {{kind}} supprim\xE9","ui.fileMedia.state.loading":"Chargement du fichier {{kind}}","ui.fileMedia.state.error":"Erreur avec le fichier {{kind}}","ui.fileMedia.state.unavailable":"Fichier {{kind}} indisponible","ui.fileMedia.binary.title":"Fichier binaire","ui.fileMedia.binary.description.path":"Impossible d'afficher {{path}} car il s'agit d'un fichier binaire.","ui.fileMedia.binary.description.default":"Impossible d'afficher ce fichier car il s'agit d'un fichier binaire.","ui.lineComment.label.prefix":"Commenter sur ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"Commentaire sur ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"Ajouter un commentaire","ui.lineComment.submit":"Commenter","ui.sessionTurn.steps.show":"Afficher les \xE9tapes","ui.sessionTurn.steps.hide":"Masquer les \xE9tapes","ui.sessionTurn.summary.response":"R\xE9ponse","ui.sessionTurn.diff.showMore":"Afficher plus de modifications ({{count}})","ui.sessionTurn.retry.retrying":"nouvelle tentative","ui.sessionTurn.retry.inSeconds":"dans {{seconds}}s","ui.sessionTurn.retry.attempt":"tentative n\xB0{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - tentative n\xB0{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini est en surchauffe","ui.sessionTurn.error.freeUsageExceeded":"Limite d'utilisation gratuite d\xE9pass\xE9e","ui.sessionTurn.error.addQredits":"Ajouter des cr\xE9dits","ui.sessionTurn.status.delegating":"D\xE9l\xE9gation du travail","ui.sessionTurn.status.planning":"Planification des prochaines \xE9tapes","ui.sessionTurn.status.gatheringContext":"Exploration","ui.sessionTurn.status.gatheredContext":"Explor\xE9","ui.sessionTurn.status.searchingCodebase":"Recherche dans la base de code","ui.sessionTurn.status.searchingWeb":"Recherche sur le web","ui.sessionTurn.status.makingEdits":"Application des modifications","ui.sessionTurn.status.runningCommands":"Ex\xE9cution des commandes","ui.sessionTurn.status.thinking":"R\xE9flexion","ui.sessionTurn.status.thinkingWithTopic":"R\xE9flexion - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"Rassemblement des id\xE9es","ui.sessionTurn.status.consideringNextSteps":"Examen des prochaines \xE9tapes","ui.messagePart.questions.dismissed":"Questions ignor\xE9es","ui.messagePart.compaction":"Session compact\xE9e","ui.messagePart.context.read.one":"{{count}} lecture","ui.messagePart.context.read.other":"{{count}} lectures","ui.messagePart.context.search.one":"{{count}} recherche","ui.messagePart.context.search.other":"{{count}} recherches","ui.messagePart.context.list.one":"{{count}} liste","ui.messagePart.context.list.other":"{{count}} listes","ui.messagePart.diagnostic.error":"Erreur","ui.messagePart.title.edit":"Modifier","ui.messagePart.title.write":"\xC9crire","ui.messagePart.option.typeOwnAnswer":"Tapez votre propre r\xE9ponse","ui.messagePart.review.title":"Passez en revue vos r\xE9ponses","ui.list.loading":"Chargement","ui.list.empty":"Aucun r\xE9sultat","ui.list.clearFilter":"Effacer le filtre","ui.list.emptyWithFilter.prefix":"Aucun r\xE9sultat pour","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"Nouveau message","ui.textField.copyToClipboard":"Copier dans le presse-papiers","ui.textField.copyLink":"Copier le lien","ui.textField.copied":"Copi\xE9","ui.imagePreview.alt":"Aper\xE7u de l'image","ui.scrollView.ariaLabel":"contenu d\xE9filable","ui.tool.read":"Lire","ui.tool.loaded":"Charg\xE9","ui.tool.list":"Lister","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Webfetch","ui.tool.websearch":"Recherche Web","ui.tool.codesearch":"Recherche de code","ui.tool.shell":"Shell","ui.tool.patch":"Patch","ui.tool.todos":"T\xE2ches","ui.tool.todos.read":"Lire les t\xE2ches","ui.tool.questions":"Questions","ui.tool.agent":"Agent {{type}}","ui.tool.agent.default":"Agent","ui.common.file.one":"fichier","ui.common.file.other":"fichiers","ui.common.question.one":"question","ui.common.question.other":"questions","ui.common.add":"Ajouter","ui.common.back":"Retour","ui.common.cancel":"Annuler","ui.common.confirm":"Confirmer","ui.common.dismiss":"Ignorer","ui.common.close":"Fermer","ui.common.next":"Suivant","ui.common.submit":"Soumettre","ui.permission.deny":"Refuser","ui.permission.allowAlways":"Toujours autoriser","ui.permission.allowOnce":"Autoriser une fois","ui.message.expand":"D\xE9velopper le message","ui.message.collapse":"R\xE9duire le message","ui.message.copy":"Copier","ui.message.copyMessage":"Copier le message","ui.message.forkMessage":"Bifurquer vers une nouvelle session","ui.message.revertMessage":"R\xE9initialiser \xE0 ce point","ui.message.copyResponse":"Copier la r\xE9ponse","ui.message.copied":"Copi\xE9 !","ui.message.interrupted":"Interrompu","ui.message.queued":"En file","ui.message.attachment.alt":"pi\xE8ce jointe","ui.patch.action.deleted":"Supprim\xE9","ui.patch.action.created":"Cr\xE9\xE9","ui.patch.action.moved":"D\xE9plac\xE9","ui.patch.action.patched":"Corrig\xE9","ui.question.subtitle.answered":"{{count}} r\xE9pondu(s)","ui.question.answer.none":"(pas de r\xE9ponse)","ui.question.review.notAnswered":"(non r\xE9pondu)","ui.question.multiHint":"S\xE9lectionnez tout ce qui s'applique","ui.question.singleHint":"S\xE9lectionnez une r\xE9ponse","ui.question.custom.placeholder":"Tapez votre r\xE9ponse...","ui.fileSearch.placeholder":"Rechercher","ui.fileSearch.previousMatch":"Pr\xE9c\xE9dent","ui.fileSearch.nextMatch":"Suivant","ui.fileSearch.close":"Fermer la recherche","ui.tool.task":"T\xE2che","ui.tool.skill":"Comp\xE9tence","ui.basicTool.called":"Appel\xE9 `{{tool}}`","ui.toolErrorCard.failed":"\xC9chou\xE9","ui.toolErrorCard.copyError":"Copier l'erreur","ui.message.duration.seconds":"{{count}}s","ui.message.duration.minutesSeconds":"{{minutes}}m {{seconds}}s"};export{e as dict};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{o as L}from"./chunk-47b084yv.js";import"./chunk-0x3sbyny.js";import{A as K}from"./chunk-ksyh6h3a.js";import{B as N}from"./chunk-gsez13bg.js";import{C as F,E as J}from"./chunk-c8k32724.js";import"./chunk-0eqwm9a8.js";import"./chunk-s6bar2f9.js";import"./chunk-yt3f3j35.js";import"./chunk-vkskqhag.js";import{P as M}from"./chunk-crx18k6g.js";import"./chunk-d6r4xwtg.js";import"./chunk-j94bdaav.js";import"./chunk-xrxyrr00.js";import"./chunk-kdcnder5.js";import"./chunk-27yxgy03.js";import{Rd as B}from"./chunk-yajd975f.js";import"./chunk-ngchsw2g.js";import"./chunk-2vepzgek.js";import"./chunk-463f9wre.js";import{Vf as z}from"./chunk-7ppd2phw.js";import"./chunk-exh6cg1r.js";import"./chunk-ew51rwdp.js";import"./chunk-h7yya9pv.js";import"./chunk-p68rwmhc.js";import"./chunk-gsvdt4kq.js";import"./chunk-b7mg883n.js";import"./chunk-90zd5rss.js";import"./chunk-17psxhve.js";import"./chunk-nj4d554m.js";import"./chunk-m2x9xhha.js";import"./chunk-2wcv3sq5.js";import"./chunk-a1p2f16h.js";import"./chunk-nt4e3em9.js";import"./chunk-ak5ngp50.js";import"./chunk-v965rsr8.js";import"./chunk-1sgby720.js";import"./chunk-jg7s9rqz.js";import"./chunk-4tbwha3m.js";import"./chunk-m612agnk.js";import"./chunk-yq3m8190.js";import"./chunk-btz9jvec.js";import"./chunk-cqtkxwd8.js";import"./chunk-fkgv2hqd.js";import"./chunk-zyhdxggp.js";import"./chunk-q6ztpfcs.js";import"./chunk-jm1ptn8n.js";import"./chunk-c5e6sk9c.js";import"./chunk-m02zt1a3.js";import"./chunk-vg2fmyje.js";import"./chunk-c0796v8j.js";import"./chunk-njnwdgvd.js";import"./chunk-4qqkqrn9.js";import"./chunk-j6emx6jn.js";import"./chunk-be216spx.js";import"./chunk-12bssxd4.js";import"./chunk-k9b1jcqw.js";import"./chunk-zxaaxb99.js";import"./chunk-whxjkz9a.js";import"./chunk-89v6dgpp.js";import"./chunk-k309zez0.js";import"./chunk-09kba1hg.js";import"./chunk-t12xrrfr.js";import"./chunk-phxrg7aw.js";import"./chunk-snm5q21k.js";import"./chunk-xpc2zgj7.js";import"./chunk-qjjch1zt.js";import"./chunk-aztre27e.js";var x=B({command:"attach <url>",describe:"attach to a running qitqode server",builder:(j)=>j.positional("url",{type:"string",describe:"http://localhost:4096",demandOption:!0}).option("dir",{type:"string",description:"directory to run in"}).option("continue",{alias:["c"],describe:"continue the last session",type:"boolean"}).option("session",{alias:["s"],type:"string",describe:"session id to continue"}).option("fork",{type:"boolean",describe:"fork the session when continuing (use with --continue or --session)"}).option("password",{alias:["p"],type:"string",describe:"basic auth password (defaults to QITQODE_SERVER_PASSWORD)"}),handler:async(j)=>{let Q=J();try{F();let q=N(j);if(q){z.error(q),process.exitCode=1;return}let R=(()=>{if(!j.dir)return;try{return process.chdir(j.dir),process.cwd()}catch{return j.dir}})(),S=M({password:j.password}),V=await K.get();await L({url:j.url,config:V,args:{continue:j.continue,sessionID:j.session,fork:j.fork},directory:R,headers:S})}finally{Q?.()}}});export{x as AttachCommand};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{eO as y,hO as C}from"./chunk-0rmmg3g4.js";var h0=y((c$)=>{c$.HttpAuthLocation=void 0;(function(h){h.HEADER="header",h.QUERY="query"})(c$.HttpAuthLocation||(c$.HttpAuthLocation={}));c$.HttpApiKeyAuthLocation=void 0;(function(h){h.HEADER="header",h.QUERY="query"})(c$.HttpApiKeyAuthLocation||(c$.HttpApiKeyAuthLocation={}));c$.EndpointURLScheme=void 0;(function(h){h.HTTP="http",h.HTTPS="https"})(c$.EndpointURLScheme||(c$.EndpointURLScheme={}));c$.AlgorithmId=void 0;(function(h){h.MD5="md5",h.CRC32="crc32",h.CRC32C="crc32c",h.SHA1="sha1",h.SHA256="sha256"})(c$.AlgorithmId||(c$.AlgorithmId={}));var F$=(h)=>{let $=[];if(h.sha256!==void 0)$.push({algorithmId:()=>c$.AlgorithmId.SHA256,checksumConstructor:()=>h.sha256});if(h.md5!=null)$.push({algorithmId:()=>c$.AlgorithmId.MD5,checksumConstructor:()=>h.md5});return{addChecksumAlgorithm(T){$.push(T)},checksumAlgorithms(){return $}}},s$=(h)=>{let $={};return h.checksumAlgorithms().forEach((T)=>{$[T.algorithmId()]=T.checksumConstructor()}),$},S$=(h)=>{return F$(h)},j$=(h)=>{return s$(h)};c$.FieldPosition=void 0;(function(h){h[h.HEADER=0]="HEADER",h[h.TRAILER=1]="TRAILER"})(c$.FieldPosition||(c$.FieldPosition={}));var C$="__smithy_context";c$.IniSectionType=void 0;(function(h){h.PROFILE="profile",h.SSO_SESSION="sso-session",h.SERVICES="services"})(c$.IniSectionType||(c$.IniSectionType={}));c$.RequestHandlerProtocol=void 0;(function(h){h.HTTP_0_9="http/0.9",h.HTTP_1_0="http/1.0",h.TDS_8_0="tds/8.0"})(c$.RequestHandlerProtocol||(c$.RequestHandlerProtocol={}));c$.SMITHY_CONTEXT_KEY=C$;c$.getDefaultClientConfiguration=S$;c$.resolveDefaultRuntimeConfig=j$});var m=y((r$)=>{var c1=h0(),p$=(h)=>h[c1.SMITHY_CONTEXT_KEY]||(h[c1.SMITHY_CONTEXT_KEY]={});class Z0{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(h){this.method=h.method||"GET",this.hostname=h.hostname||"localhost",this.port=h.port,this.query=h.query||{},this.headers=h.headers||{},this.body=h.body,this.protocol=h.protocol?h.protocol.slice(-1)!==":"?`${h.protocol}:`:h.protocol:"https:",this.path=h.path?h.path.charAt(0)!=="/"?`/${h.path}`:h.path:"/",this.username=h.username,this.password=h.password,this.fragment=h.fragment}static clone(h){let $=new Z0({...h,headers:{...h.headers}});if($.query)$.query=g$($.query);return $}static isInstance(h){if(!h)return!1;let $=h;return"method"in $&&"protocol"in $&&"hostname"in $&&"path"in $&&typeof $.query==="object"&&typeof $.headers==="object"}clone(){return Z0.clone(this)}}function g$(h){return Object.keys(h).reduce(($,T)=>{let P=h[T];return{...$,[T]:Array.isArray(P)?[...P]:P}},{})}class b1{statusCode;reason;headers;body;constructor(h){this.statusCode=h.statusCode,this.reason=h.reason,this.headers=h.headers||{},this.body=h.body}static isInstance(h){if(!h)return!1;let $=h;return typeof $.statusCode==="number"&&typeof $.headers==="object"}}var m$=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),y1=(h,$=!1)=>{if(!$)return m$.test(h);let T=h.split(".");for(let P of T)if(!y1(P))return!1;return!0};function d$(h){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(h)}var v$=(h)=>{if(typeof h==="function")return h;let $=Promise.resolve(h);return()=>$};function k1(h){let $={};if(h=h.replace(/^\?/,""),h)for(let T of h.split("&")){let[P,w=null]=T.split("=");if(P=decodeURIComponent(P),w)w=decodeURIComponent(w);if(!(P in $))$[P]=w;else if(Array.isArray($[P]))$[P].push(w);else $[P]=[$[P],w]}return $}var R0=(h)=>{if(typeof h==="string")return R0(new URL(h));let{hostname:$,pathname:T,port:P,protocol:w,search:I}=h,A;if(I)A=k1(I);return{hostname:$,port:P?parseInt(P):void 0,protocol:w,path:T,query:A}},t$=(h)=>{if(typeof h==="object"){if("url"in h){let $=R0(h.url);if(h.headers){$.headers={};for(let T in h.headers)$.headers[T.toLowerCase()]=h.headers[T].join(", ")}return $}return h}return R0(h)};r$.HttpRequest=Z0;r$.HttpResponse=b1;r$.getSmithyContext=p$;r$.isValidHostLabel=y1;r$.isValidHostname=d$;r$.normalizeProvider=v$;r$.parseQueryString=k1;r$.parseUrl=R0;r$.toEndpointV1=t$});var d1=y((GT)=>{var H0=m(),q0=(h)=>{if(typeof h==="function")return h();return h},o0=(h,$,T,P,w)=>({name:$,namespace:h,traits:T,input:P,output:w}),TT=(h)=>($,T)=>async(P)=>{let{response:w}=await $(P),{operationSchema:I}=H0.getSmithyContext(T),[,A,U,_,f,Y]=I??[];try{let M=await h.protocol.deserializeResponse(o0(A,U,_,f,Y),{...h,...T},w);return{response:w,output:M}}catch(M){if(Object.defineProperty(M,"$response",{value:w,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in M)){try{M.message+=`
2
+ import{aQ as y,dQ as C}from"./chunk-aztre27e.js";var h0=y((c$)=>{c$.HttpAuthLocation=void 0;(function(h){h.HEADER="header",h.QUERY="query"})(c$.HttpAuthLocation||(c$.HttpAuthLocation={}));c$.HttpApiKeyAuthLocation=void 0;(function(h){h.HEADER="header",h.QUERY="query"})(c$.HttpApiKeyAuthLocation||(c$.HttpApiKeyAuthLocation={}));c$.EndpointURLScheme=void 0;(function(h){h.HTTP="http",h.HTTPS="https"})(c$.EndpointURLScheme||(c$.EndpointURLScheme={}));c$.AlgorithmId=void 0;(function(h){h.MD5="md5",h.CRC32="crc32",h.CRC32C="crc32c",h.SHA1="sha1",h.SHA256="sha256"})(c$.AlgorithmId||(c$.AlgorithmId={}));var F$=(h)=>{let $=[];if(h.sha256!==void 0)$.push({algorithmId:()=>c$.AlgorithmId.SHA256,checksumConstructor:()=>h.sha256});if(h.md5!=null)$.push({algorithmId:()=>c$.AlgorithmId.MD5,checksumConstructor:()=>h.md5});return{addChecksumAlgorithm(T){$.push(T)},checksumAlgorithms(){return $}}},s$=(h)=>{let $={};return h.checksumAlgorithms().forEach((T)=>{$[T.algorithmId()]=T.checksumConstructor()}),$},S$=(h)=>{return F$(h)},j$=(h)=>{return s$(h)};c$.FieldPosition=void 0;(function(h){h[h.HEADER=0]="HEADER",h[h.TRAILER=1]="TRAILER"})(c$.FieldPosition||(c$.FieldPosition={}));var C$="__smithy_context";c$.IniSectionType=void 0;(function(h){h.PROFILE="profile",h.SSO_SESSION="sso-session",h.SERVICES="services"})(c$.IniSectionType||(c$.IniSectionType={}));c$.RequestHandlerProtocol=void 0;(function(h){h.HTTP_0_9="http/0.9",h.HTTP_1_0="http/1.0",h.TDS_8_0="tds/8.0"})(c$.RequestHandlerProtocol||(c$.RequestHandlerProtocol={}));c$.SMITHY_CONTEXT_KEY=C$;c$.getDefaultClientConfiguration=S$;c$.resolveDefaultRuntimeConfig=j$});var m=y((r$)=>{var c1=h0(),p$=(h)=>h[c1.SMITHY_CONTEXT_KEY]||(h[c1.SMITHY_CONTEXT_KEY]={});class Z0{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(h){this.method=h.method||"GET",this.hostname=h.hostname||"localhost",this.port=h.port,this.query=h.query||{},this.headers=h.headers||{},this.body=h.body,this.protocol=h.protocol?h.protocol.slice(-1)!==":"?`${h.protocol}:`:h.protocol:"https:",this.path=h.path?h.path.charAt(0)!=="/"?`/${h.path}`:h.path:"/",this.username=h.username,this.password=h.password,this.fragment=h.fragment}static clone(h){let $=new Z0({...h,headers:{...h.headers}});if($.query)$.query=g$($.query);return $}static isInstance(h){if(!h)return!1;let $=h;return"method"in $&&"protocol"in $&&"hostname"in $&&"path"in $&&typeof $.query==="object"&&typeof $.headers==="object"}clone(){return Z0.clone(this)}}function g$(h){return Object.keys(h).reduce(($,T)=>{let P=h[T];return{...$,[T]:Array.isArray(P)?[...P]:P}},{})}class b1{statusCode;reason;headers;body;constructor(h){this.statusCode=h.statusCode,this.reason=h.reason,this.headers=h.headers||{},this.body=h.body}static isInstance(h){if(!h)return!1;let $=h;return typeof $.statusCode==="number"&&typeof $.headers==="object"}}var m$=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),y1=(h,$=!1)=>{if(!$)return m$.test(h);let T=h.split(".");for(let P of T)if(!y1(P))return!1;return!0};function d$(h){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(h)}var v$=(h)=>{if(typeof h==="function")return h;let $=Promise.resolve(h);return()=>$};function k1(h){let $={};if(h=h.replace(/^\?/,""),h)for(let T of h.split("&")){let[P,w=null]=T.split("=");if(P=decodeURIComponent(P),w)w=decodeURIComponent(w);if(!(P in $))$[P]=w;else if(Array.isArray($[P]))$[P].push(w);else $[P]=[$[P],w]}return $}var R0=(h)=>{if(typeof h==="string")return R0(new URL(h));let{hostname:$,pathname:T,port:P,protocol:w,search:I}=h,A;if(I)A=k1(I);return{hostname:$,port:P?parseInt(P):void 0,protocol:w,path:T,query:A}},t$=(h)=>{if(typeof h==="object"){if("url"in h){let $=R0(h.url);if(h.headers){$.headers={};for(let T in h.headers)$.headers[T.toLowerCase()]=h.headers[T].join(", ")}return $}return h}return R0(h)};r$.HttpRequest=Z0;r$.HttpResponse=b1;r$.getSmithyContext=p$;r$.isValidHostLabel=y1;r$.isValidHostname=d$;r$.normalizeProvider=v$;r$.parseQueryString=k1;r$.parseUrl=R0;r$.toEndpointV1=t$});var d1=y((GT)=>{var H0=m(),q0=(h)=>{if(typeof h==="function")return h();return h},o0=(h,$,T,P,w)=>({name:$,namespace:h,traits:T,input:P,output:w}),TT=(h)=>($,T)=>async(P)=>{let{response:w}=await $(P),{operationSchema:I}=H0.getSmithyContext(T),[,A,U,_,f,Y]=I??[];try{let M=await h.protocol.deserializeResponse(o0(A,U,_,f,Y),{...h,...T},w);return{response:w,output:M}}catch(M){if(Object.defineProperty(M,"$response",{value:w,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in M)){try{M.message+=`
3
3
  Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(G){if(!T.logger||T.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else T.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof M.$responseBodyText<"u"){if(M.$response)M.$response.body=M.$responseBodyText}try{if(H0.HttpResponse.isInstance(w)){let{headers:G={},statusCode:V}=w,Z=Object.entries(G);M.$metadata={httpStatusCode:V,requestId:i0(/^x-[\w-]+-request-?id$/,Z),extendedRequestId:i0(/^x-[\w-]+-id-2$/,Z),cfId:i0(/^x-[\w-]+-cf-id$/,Z)}}}catch(G){}}throw M}},i0=(h,$)=>{return($.find(([T])=>{return T.match(h)})||[void 0,void 0])[1]},PT=(h)=>($,T)=>async(P)=>{let{operationSchema:w}=H0.getSmithyContext(T),[,I,A,U,_,f]=w??[],Y=T.endpointV2?async()=>H0.toEndpointV1(T.endpointV2):h.endpoint,M=await h.protocol.serializeRequest(o0(I,A,U,_,f),P.input,{...h,...T,endpoint:Y});return $({...P,request:M})},p1={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},g1={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function wT(h){return{applyToStack:($)=>{$.add(PT(h),g1),$.add(TT(h),p1),h.protocol.setSerdeContext(h)}}}class E{name;namespace;traits;static assign(h,$){return Object.assign(h,$)}static[Symbol.hasInstance](h){let $=this.prototype.isPrototypeOf(h);if(!$&&typeof h==="object"&&h!==null)return h.symbol===this.symbol;return $}getName(){return this.namespace+"#"+this.name}}class x0 extends E{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=x0.symbol}var IT=(h,$,T,P)=>E.assign(new x0,{name:$,namespace:h,traits:T,valueSchema:P});class W0 extends E{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=W0.symbol}var AT=(h,$,T,P,w)=>E.assign(new W0,{name:$,namespace:h,traits:T,keySchema:P,valueSchema:w});class D0 extends E{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=D0.symbol}var UT=(h,$,T,P,w)=>E.assign(new D0,{name:$,namespace:h,traits:T,input:P,output:w});class w0 extends E{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=w0.symbol}var _T=(h,$,T,P,w)=>E.assign(new w0,{name:$,namespace:h,traits:T,memberNames:P,memberList:w});class L0 extends w0{static symbol=Symbol.for("@smithy/err");ctor;symbol=L0.symbol}var fT=(h,$,T,P,w,I)=>E.assign(new L0,{name:$,namespace:h,traits:T,memberNames:P,memberList:w,ctor:null}),O0=[];function P0(h){if(typeof h==="object")return h;if(h=h|0,O0[h])return O0[h];let $={},T=0;for(let P of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])if((h>>T++&1)===1)$[P]=1;return O0[h]=$}var $0={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},E0=[],N0={};class B{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=B.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(h,$){this.ref=h,this.memberName=$;let T=[],P=h,w=h;this._isMemberSchema=!1;while(l0(P))T.push(P[1]),P=P[0],w=q0(P),this._isMemberSchema=!0;if(T.length>0){this.memberTraits={};for(let I=T.length-1;I>=0;--I){let A=T[I];Object.assign(this.memberTraits,P0(A))}}else this.memberTraits=0;if(w instanceof B){let I=this.memberTraits;Object.assign(this,w),this.memberTraits=Object.assign({},I,w.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=$??w.memberName;return}if(this.schema=q0(w),m1(this.schema))this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3];else this.name=this.memberName??String(w),this.traits=0;if(this._isMemberSchema&&!$)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](h){let $=this.prototype.isPrototypeOf(h);if(!$&&typeof h==="object"&&h!==null)return h.symbol===this.symbol;return $}static of(h){let $=typeof h==="function"||typeof h==="object"&&h!==null;if(typeof h==="number"){if(E0[h])return E0[h]}else if(typeof h==="string"){if(N0[h])return N0[h]}else if($){if(h[$0.ns])return h[$0.ns]}let T=q0(h);if(T instanceof B)return T;if(l0(T)){let[w,I]=T;if(w instanceof B)return Object.assign(w.getMergedTraits(),P0(I)),w;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(h,null,2)}.`)}let P=new B(T);if($)return h[$0.ns]=P;if(typeof T==="string")return N0[T]=P;if(typeof T==="number")return E0[T]=P;return P}getSchema(){let h=this.schema;if(Array.isArray(h)&&h[0]===0)return h[4];return h}getName(h=!1){let{name:$}=this;return!h&&$&&$.includes("#")?$.split("#")[1]:$||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let h=this.getSchema();return typeof h==="number"?h>=64&&h<128:h[0]===1}isMapSchema(){let h=this.getSchema();return typeof h==="number"?h>=128&&h<=255:h[0]===2}isStructSchema(){let h=this.getSchema();if(typeof h!=="object")return!1;let $=h[0];return $===3||$===-3||$===4}isUnionSchema(){let h=this.getSchema();if(typeof h!=="object")return!1;return h[0]===4}isBlobSchema(){let h=this.getSchema();return h===21||h===42}isTimestampSchema(){let h=this.getSchema();return typeof h==="number"&&h>=4&&h<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:h}=this.getMergedTraits();return!!h||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return P0(this.memberTraits)}getOwnTraits(){return P0(this.traits)}getKeySchema(){let[h,$]=[this.isDocumentSchema(),this.isMapSchema()];if(!h&&!$)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let T=this.getSchema(),P=h?15:T[4]??0;return T0([P,0],"key")}getValueSchema(){let h=this.getSchema(),[$,T,P]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],w=typeof h==="number"?63&h:h&&typeof h==="object"&&(T||P)?h[3+h[0]]:$?15:void 0;if(w!=null)return T0([w,0],T?"value":"member");throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(h){let $=this.getSchema();if(this.isStructSchema()&&$[4].includes(h)){let T=$[4].indexOf(h),P=$[5][T];return T0(l0(P)?P:[P,0],h)}if(this.isDocumentSchema())return T0([15,0],h);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${h}.`)}getMemberSchemas(){let h={};try{for(let[$,T]of this.structIterator())h[$]=T}catch($){}return h}getEventStreamMember(){if(this.isStructSchema()){for(let[h,$]of this.structIterator())if($.isStreaming()&&$.isStructSchema())return h}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error("@smithy/core/schema - cannot iterate non-struct schema.");let h=this.getSchema(),$=h[4].length,T=h[$0.it];if(T&&$===T.length){yield*T;return}T=Array($);for(let P=0;P<$;++P){let w=h[4][P],I=T0([h[5][P],0],w);yield T[P]=[w,I]}h[$0.it]=T}}function T0(h,$){if(h instanceof B)return Object.assign(h,{memberName:$,_isMemberSchema:!0});return new B(h,$)}var l0=(h)=>Array.isArray(h)&&h.length===2,m1=(h)=>Array.isArray(h)&&h.length>=5;class I0 extends E{static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=I0.symbol}var MT=(h,$,T,P)=>E.assign(new I0,{name:$,namespace:h,traits:P,schemaRef:T}),YT=(h,$,T,P)=>E.assign(new I0,{name:$,namespace:h,traits:T,schemaRef:P}),XT={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128};class K{namespace;schemas;exceptions;static registries=new Map;constructor(h,$=new Map,T=new Map){this.namespace=h,this.schemas=$,this.exceptions=T}static for(h){if(!K.registries.has(h))K.registries.set(h,new K(h));return K.registries.get(h)}copyFrom(h){let{schemas:$,exceptions:T}=this;for(let[P,w]of h.schemas)if(!$.has(P))$.set(P,w);for(let[P,w]of h.exceptions)if(!T.has(P))T.set(P,w)}register(h,$){let T=this.normalizeShapeId(h);for(let P of[this,K.for(T.split("#")[0])])P.schemas.set(T,$)}getSchema(h){let $=this.normalizeShapeId(h);if(!this.schemas.has($)){if(!h.includes("#")){let T="#"+h,P=[];for(let[w,I]of this.schemas.entries())if(w.endsWith(T))P.push(I);if(P.length===1)return P[0]}throw Error(`@smithy/core/schema - schema not found for ${$}`)}return this.schemas.get($)}registerError(h,$){let T=h,P=T[1];for(let w of[this,K.for(P)])w.schemas.set(P+"#"+T[2],T),w.exceptions.set(T,$)}getErrorCtor(h){let $=h;if(this.exceptions.has($))return this.exceptions.get($);return K.for($[1]).exceptions.get($)}getBaseException(){for(let h of this.exceptions.keys())if(Array.isArray(h)){let[,$,T]=h,P=$+"#"+T;if(P.startsWith("smithy.ts.sdk.synthetic.")&&P.endsWith("ServiceException"))return h}return}find(h){for(let $ of this.schemas.values())if(h($))return $;return}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(h){if(h.includes("#"))return h;return this.namespace+"#"+h}}GT.ErrorSchema=L0;GT.ListSchema=x0;GT.MapSchema=W0;GT.NormalizedSchema=B;GT.OperationSchema=D0;GT.SCHEMA=XT;GT.Schema=E;GT.SimpleSchema=I0;GT.StructureSchema=w0;GT.TypeRegistry=K;GT.deref=q0;GT.deserializerMiddlewareOption=p1;GT.error=fT;GT.getSchemaSerdePlugin=wT;GT.isStaticSchema=m1;GT.list=IT;GT.map=AT;GT.op=UT;GT.operation=o0;GT.serializerMiddlewareOption=g1;GT.sim=MT;GT.simAdapter=YT;GT.simpleSchemaCacheN=E0;GT.simpleSchemaCacheS=N0;GT.struct=_T;GT.traitsCache=O0;GT.translateTraits=P0});var $1=y((QP)=>{var u1=m(),A0=h0(),gT=d1(),k=(h,$)=>{let T=[];if(h)T.push(h);if($)for(let P of $)T.push(P);return T},j=(h,$)=>{return`${h||"anonymous"}${$&&$.length>0?` (a.k.a. ${$.join(",")})`:""}`},U0=()=>{let h=[],$=[],T=!1,P=new Set,w=(M)=>M.sort((X,G)=>v1[G.step]-v1[X.step]||t1[G.priority||"normal"]-t1[X.priority||"normal"]),I=(M)=>{let X=!1,G=(V)=>{let Z=k(V.name,V.aliases);if(Z.includes(M)){X=!0;for(let J of Z)P.delete(J);return!1}return!0};return h=h.filter(G),$=$.filter(G),X},A=(M)=>{let X=!1,G=(V)=>{if(V.middleware===M){X=!0;for(let Z of k(V.name,V.aliases))P.delete(Z);return!1}return!0};return h=h.filter(G),$=$.filter(G),X},U=(M)=>{return h.forEach((X)=>{M.add(X.middleware,{...X})}),$.forEach((X)=>{M.addRelativeTo(X.middleware,{...X})}),M.identifyOnResolve?.(Y.identifyOnResolve()),M},_=(M)=>{let X=[];return M.before.forEach((G)=>{if(G.before.length===0&&G.after.length===0)X.push(G);else X.push(..._(G))}),X.push(M),M.after.reverse().forEach((G)=>{if(G.before.length===0&&G.after.length===0)X.push(G);else X.push(..._(G))}),X},f=(M=!1)=>{let X=[],G=[],V={};return h.forEach((J)=>{let Q={...J,before:[],after:[]};for(let R of k(Q.name,Q.aliases))V[R]=Q;X.push(Q)}),$.forEach((J)=>{let Q={...J,before:[],after:[]};for(let R of k(Q.name,Q.aliases))V[R]=Q;G.push(Q)}),G.forEach((J)=>{if(J.toMiddleware){let Q=V[J.toMiddleware];if(Q===void 0){if(M)return;throw Error(`${J.toMiddleware} is not found when adding ${j(J.name,J.aliases)} middleware ${J.relation} ${J.toMiddleware}`)}if(J.relation==="after")Q.after.push(J);if(J.relation==="before")Q.before.push(J)}}),w(X).map(_).reduce((J,Q)=>{return J.push(...Q),J},[])},Y={add:(M,X={})=>{let{name:G,override:V,aliases:Z}=X,J={step:"initialize",priority:"normal",middleware:M,...X},Q=k(G,Z);if(Q.length>0){if(Q.some((R)=>P.has(R))){if(!V)throw Error(`Duplicate middleware name '${j(G,Z)}'`);for(let R of Q){let H=h.findIndex((a)=>a.name===R||a.aliases?.some((m0)=>m0===R));if(H===-1)continue;let N=h[H];if(N.step!==J.step||J.priority!==N.priority)throw Error(`"${j(N.name,N.aliases)}" middleware with ${N.priority} priority in ${N.step} step cannot be overridden by "${j(G,Z)}" middleware with ${J.priority} priority in ${J.step} step.`);h.splice(H,1)}}for(let R of Q)P.add(R)}h.push(J)},addRelativeTo:(M,X)=>{let{name:G,override:V,aliases:Z}=X,J={middleware:M,...X},Q=k(G,Z);if(Q.length>0){if(Q.some((R)=>P.has(R))){if(!V)throw Error(`Duplicate middleware name '${j(G,Z)}'`);for(let R of Q){let H=$.findIndex((a)=>a.name===R||a.aliases?.some((m0)=>m0===R));if(H===-1)continue;let N=$[H];if(N.toMiddleware!==J.toMiddleware||N.relation!==J.relation)throw Error(`"${j(N.name,N.aliases)}" middleware ${N.relation} "${N.toMiddleware}" middleware cannot be overridden by "${j(G,Z)}" middleware ${J.relation} "${J.toMiddleware}" middleware.`);$.splice(H,1)}}for(let R of Q)P.add(R)}$.push(J)},clone:()=>U(U0()),use:(M)=>{M.applyToStack(Y)},remove:(M)=>{if(typeof M==="string")return I(M);else return A(M)},removeByTag:(M)=>{let X=!1,G=(V)=>{let{tags:Z,name:J,aliases:Q}=V;if(Z&&Z.includes(M)){let R=k(J,Q);for(let H of R)P.delete(H);return X=!0,!1}return!0};return h=h.filter(G),$=$.filter(G),X},concat:(M)=>{let X=U(U0());return X.use(M),X.identifyOnResolve(T||X.identifyOnResolve()||(M.identifyOnResolve?.()??!1)),X},applyToStack:U,identify:()=>{return f(!0).map((M)=>{let X=M.step??M.relation+" "+M.toMiddleware;return j(M.name,M.aliases)+" - "+X})},identifyOnResolve(M){if(typeof M==="boolean")T=M;return T},resolve:(M,X)=>{for(let G of f().map((V)=>V.middleware).reverse())M=G(M,X);if(T)console.log(Y.identify());return M}};return Y},v1={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},t1={high:3,normal:2,low:1},mT=(h)=>()=>{throw Error(h)},dT=(h)=>()=>Promise.reject(h),K0=()=>{let h=new WeakSet;return($,T)=>{if(typeof T==="object"&&T!==null){if(h.has(T))return"[Circular]";h.add(T)}return T}},vT=(h)=>{return new Promise(($)=>setTimeout($,h*1000))},i1={minDelay:2,maxDelay:120};QP.WaiterState=void 0;(function(h){h.ABORTED="ABORTED",h.FAILURE="FAILURE",h.SUCCESS="SUCCESS",h.RETRY="RETRY",h.TIMEOUT="TIMEOUT"})(QP.WaiterState||(QP.WaiterState={}));var tT=(h)=>{if(h.state===QP.WaiterState.ABORTED){let $=Error(`${JSON.stringify({...h,reason:"Request was aborted"},K0())}`);throw $.name="AbortError",$}else if(h.state===QP.WaiterState.TIMEOUT){let $=Error(`${JSON.stringify({...h,reason:"Waiter has timed out"},K0())}`);throw $.name="TimeoutError",$}else if(h.state!==QP.WaiterState.SUCCESS)throw Error(`${JSON.stringify(h,K0())}`);return h},rT=async({minDelay:h,maxDelay:$,maxWaitTime:T,abortController:P,client:w,abortSignal:I},A,U)=>{let _={},[f,Y]=[h*1000,$*1000],M=0,X=Date.now()+T*1000,G=Date.now()+60000,V=!1;while(!0){if(M>0){let Q=iT(f,Y,M,X);if(P?.signal?.aborted||I?.aborted)return _["AbortController signal aborted."]|=0,_["AbortController signal aborted."]+=1,{state:QP.WaiterState.ABORTED,observedResponses:_};if(Date.now()+Q>X)return{state:QP.WaiterState.TIMEOUT,observedResponses:_};await vT(Q/1000)}let{state:Z,reason:J}=await U(w,A);if(J){let Q=uT(J);_[Q]|=0,_[Q]+=1}if(Z!==QP.WaiterState.RETRY)return{state:Z,reason:J,final:J,observedResponses:_};if(M+=1,!V&&Date.now()>=G)nT(_,w),V=!0}},nT=(h={},$)=>{let T=Object.keys(h),P=0;for(let A of T){let U=h[A]|0;if(A.startsWith("403:"))P+=U}let w=$?.config?.logger,I=typeof w?.warn==="function"&&!w.constructor?.name?.includes?.("NoOpLogger")?w:console;if(P>=3||T[T.length-1]?.startsWith("403:"))I.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},uT=(h)=>{let $=h?.$response?.statusCode??h?.$metadata?.httpStatusCode;if(h?.$responseBodyText)return`${$?$+": ":""}Deserialization error for body: ${h.$responseBodyText}`;if($){if(h?.$response||h?.message)return`${$??"Unknown"}: ${h?.message}`;return`${$}: OK`}return String(h?.message??JSON.stringify(h,K0())??"Unknown")},iT=(h,$,T,P)=>{let w=Math.log($/h)/Math.log(2)+1;if(T>w)return $;let I=h*2**(T-1),A=Math.min(I,$),U=lT(h,A);if(Date.now()+U>P){let _=P-Date.now();return Math.max(0,_-500)}return U},lT=(h,$)=>h+Math.random()*($-h),oT=(h)=>{if(h.maxWaitTime<=0)throw Error("WaiterConfiguration.maxWaitTime must be greater than 0");else if(h.minDelay<=0)throw Error("WaiterConfiguration.minDelay must be greater than 0");else if(h.maxDelay<=0)throw Error("WaiterConfiguration.maxDelay must be greater than 0");else if(h.maxWaitTime<=h.minDelay)throw Error(`WaiterConfiguration.maxWaitTime [${h.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${h.minDelay}] for this waiter`);else if(h.maxDelay<h.minDelay)throw Error(`WaiterConfiguration.maxDelay [${h.maxDelay}] must be greater than WaiterConfiguration.minDelay [${h.minDelay}] for this waiter`)},r1=(h)=>{let $,T=new Promise((P)=>{if($=()=>P({state:QP.WaiterState.ABORTED}),typeof h.addEventListener==="function")h.addEventListener("abort",$);else h.onabort=$});return{clearListener(){if(typeof h.removeEventListener==="function")h.removeEventListener("abort",$)},aborted:T}},aT=async(h,$,T)=>{let P={...i1,...h};oT(P);let w=[rT(P,$,T)],I=[];if(h.abortSignal){let{aborted:A,clearListener:U}=r1(h.abortSignal);I.push(U),w.push(A)}if(h.abortController?.signal){let{aborted:A,clearListener:U}=r1(h.abortController.signal);I.push(U),w.push(A)}return Promise.race(w).then((A)=>{for(let U of I)U();return A})};class l1{config;middlewareStack=U0();initConfig;handlers;constructor(h){this.config=h;let{protocol:$,protocolSettings:T}=h;if(T){if(typeof $==="function")h.protocol=new $(T)}}send(h,$,T){let P=typeof $!=="function"?$:void 0,w=typeof $==="function"?$:T,I=P===void 0&&this.config.cacheMiddleware===!0,A;if(I){if(!this.handlers)this.handlers=new WeakMap;let U=this.handlers;if(U.has(h.constructor))A=U.get(h.constructor);else A=h.resolveMiddleware(this.middlewareStack,this.config,P),U.set(h.constructor,A)}else delete this.handlers,A=h.resolveMiddleware(this.middlewareStack,this.config,P);if(w)A(h).then((U)=>w(null,U.output),(U)=>w(U)).catch(()=>{});else return A(h).then((U)=>U.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var a0="***SensitiveInformation***";function B0(h,$){if($==null)return $;let T=gT.NormalizedSchema.of(h);if(T.getMergedTraits().sensitive)return a0;if(T.isListSchema()){if(!!T.getValueSchema().getMergedTraits().sensitive)return a0}else if(T.isMapSchema()){if(!!T.getKeySchema().getMergedTraits().sensitive||!!T.getValueSchema().getMergedTraits().sensitive)return a0}else if(T.isStructSchema()&&typeof $==="object"){let P=$,w={};for(let[I,A]of T.structIterator())if(P[I]!=null)w[I]=B0(A,P[I]);return w}return $}class h1{middlewareStack=U0();schema;static classBuilder(){return new o1}resolveMiddlewareWithContext(h,$,T,{middlewareFn:P,clientName:w,commandName:I,inputFilterSensitiveLog:A,outputFilterSensitiveLog:U,smithyContext:_,additionalContext:f,CommandCtor:Y}){for(let J of P.bind(this)(Y,h,$,T))this.middlewareStack.use(J);let M=h.concat(this.middlewareStack),{logger:X}=$,G={logger:X,clientName:w,commandName:I,inputFilterSensitiveLog:A,outputFilterSensitiveLog:U,[A0.SMITHY_CONTEXT_KEY]:{commandInstance:this,..._},...f},{requestHandler:V}=$,Z=T??{};if(_.eventStream)Z={isEventStream:!0,...Z};return M.resolve((J)=>V.handle(J.request,Z),G)}}class o1{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(h){this._init=h}ep(h){return this._ep=h,this}m(h){return this._middlewareFn=h,this}s(h,$,T={}){return this._smithyContext={service:h,operation:$,...T},this}c(h={}){return this._additionalContext=h,this}n(h,$){return this._clientName=h,this._commandName=$,this}f(h=(T)=>T,$=(T)=>T){return this._inputFilterSensitiveLog=h,this._outputFilterSensitiveLog=$,this}ser(h){return this._serializer=h,this}de(h){return this._deserializer=h,this}sc(h){return this._operationSchema=h,this._smithyContext.operationSchema=h,this}build(){let h=this,$;return $=class extends h1{input;static getEndpointParameterInstructions(){return h._ep}constructor(...[T]){super();this.input=T??{},h._init(this),this.schema=h._operationSchema}resolveMiddleware(T,P,w){let I=h._operationSchema,A=I?.[4]??I?.input,U=I?.[5]??I?.output;return this.resolveMiddlewareWithContext(T,P,w,{CommandCtor:$,middlewareFn:h._middlewareFn,clientName:h._clientName,commandName:h._commandName,inputFilterSensitiveLog:h._inputFilterSensitiveLog??(I?B0.bind(null,A):(_)=>_),outputFilterSensitiveLog:h._outputFilterSensitiveLog??(I?B0.bind(null,U):(_)=>_),smithyContext:h._smithyContext,additionalContext:h._additionalContext})}serialize=h._serializer;deserialize=h._deserializer}}}var eT="***SensitiveInformation***",hP=(h,$,T)=>{for(let[I,A]of Object.entries(h)){let U=async function(f,Y,M){let X=new A(f);if(typeof Y==="function")this.send(X,Y);else if(typeof M==="function"){if(typeof Y!=="object")throw Error(`Expected http options but got ${typeof Y}`);this.send(X,Y||{},M)}else return this.send(X,Y)},_=(I[0].toLowerCase()+I.slice(1)).replace(/Command$/,"");$.prototype[_]=U}let{paginators:P={},waiters:w={}}=T??{};for(let[I,A]of Object.entries(P))if($.prototype[I]===void 0)$.prototype[I]=function(U={},_,...f){return A({..._,client:this},U,...f)};for(let[I,A]of Object.entries(w))if($.prototype[I]===void 0)$.prototype[I]=async function(U={},_,...f){let Y=_;if(typeof _==="number")Y={maxWaitTime:_};return A({...Y,client:this},U,...f)}};class d extends Error{$fault;$response;$retryable;$metadata;constructor(h){super(h.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=h.name,this.$fault=h.$fault,this.$metadata=h.$metadata}static isInstance(h){if(!h)return!1;let $=h;return d.prototype.isPrototypeOf($)||Boolean($.$fault)&&Boolean($.$metadata)&&($.$fault==="client"||$.$fault==="server")}static[Symbol.hasInstance](h){if(!h)return!1;let $=h;if(this===d)return d.isInstance(h);if(d.isInstance(h)){if($.name&&this.name)return this.prototype.isPrototypeOf(h)||$.name===this.name;return this.prototype.isPrototypeOf(h)}return!1}}var a1=(h,$={})=>{Object.entries($).filter(([,P])=>P!==void 0).forEach(([P,w])=>{if(h[P]==null||h[P]==="")h[P]=w});let T=h.message||h.Message||"UnknownError";return h.message=T,delete h.Message,h},e1=({output:h,parsedBody:$,exceptionCtor:T,errorCode:P})=>{let w=TP(h),I=w.httpStatusCode?w.httpStatusCode+"":void 0,A=new T({name:$?.code||$?.Code||P||I||"UnknownError",$fault:"client",$metadata:w});throw a1(A,$)},$P=(h)=>{return({output:$,parsedBody:T,errorCode:P})=>{e1({output:$,parsedBody:T,exceptionCtor:h,errorCode:P})}},TP=(h)=>({httpStatusCode:h.statusCode,requestId:h.headers["x-amzn-requestid"]??h.headers["x-amzn-request-id"]??h.headers["x-amz-request-id"],extendedRequestId:h.headers["x-amz-id-2"],cfId:h.headers["x-amz-cf-id"]}),PP=(h)=>{switch(h){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},n1=!1,wP=(h)=>{if(h&&!n1&&parseInt(h.substring(1,h.indexOf(".")))<16)n1=!0},hh=Object.values(A0.AlgorithmId),$h=(h)=>{let $=[];for(let T in A0.AlgorithmId){let P=A0.AlgorithmId[T];if(h[P]===void 0)continue;$.push({algorithmId:()=>P,checksumConstructor:()=>h[P]})}for(let[T,P]of Object.entries(h.checksumAlgorithms??{}))$.push({algorithmId:()=>T,checksumConstructor:()=>P});return{addChecksumAlgorithm(T){h.checksumAlgorithms=h.checksumAlgorithms??{};let P=T.algorithmId(),w=T.checksumConstructor();if(hh.includes(P))h.checksumAlgorithms[P.toUpperCase()]=w;else h.checksumAlgorithms[P]=w;$.push(T)},checksumAlgorithms(){return $}}},Th=(h)=>{let $={};return h.checksumAlgorithms().forEach((T)=>{let P=T.algorithmId();if(hh.includes(P))$[P]=T.checksumConstructor()}),$},Ph=(h)=>{return{setRetryStrategy($){h.retryStrategy=$},retryStrategy(){return h.retryStrategy}}},wh=(h)=>{let $={};return $.retryStrategy=h.retryStrategy(),$},Ih=(h)=>{return Object.assign($h(h),Ph(h))},IP=Ih,AP=(h)=>{return Object.assign(Th(h),wh(h))},UP=(h)=>Array.isArray(h)?h:[h],Ah=(h)=>{for(let T in h)if(h.hasOwnProperty(T)&&h[T]["#text"]!==void 0)h[T]=h[T]["#text"];else if(typeof h[T]==="object"&&h[T]!==null)h[T]=Ah(h[T]);return h},_P=(h)=>{return h!=null};class Uh{trace(){}debug(){}info(){}warn(){}error(){}}function _h(h,$,T){let P,w,I;if(typeof $>"u"&&typeof T>"u")P={},I=h;else if(P=h,typeof $==="function")return w=$,I=T,YP(P,w,I);else I=$;for(let A of Object.keys(I)){if(!Array.isArray(I[A])){P[A]=I[A];continue}fh(P,null,I,A)}return P}var fP=(h)=>{let $={};for(let[T,P]of Object.entries(h||{}))$[T]=[,P];return $},MP=(h,$)=>{let T={};for(let P in $)fh(T,h,$,P);return T},YP=(h,$,T)=>{return _h(h,Object.entries(T).reduce((P,[w,I])=>{if(Array.isArray(I))P[w]=I;else if(typeof I==="function")P[w]=[$,I()];else P[w]=[$,I];return P},{}))},fh=(h,$,T,P)=>{if($!==null){let A=T[P];if(typeof A==="function")A=[,A];let[U=XP,_=GP,f=P]=A;if(typeof U==="function"&&U($[f])||typeof U!=="function"&&!!U)h[P]=_($[f]);return}let[w,I]=T[P];if(typeof I==="function"){let A,U=w===void 0&&(A=I())!=null,_=typeof w==="function"&&!!w(void 0)||typeof w!=="function"&&!!w;if(U)h[P]=A;else if(_)h[P]=I()}else{let A=w===void 0&&I!=null,U=typeof w==="function"&&!!w(I)||typeof w!=="function"&&!!w;if(A||U)h[P]=I}},XP=(h)=>h!=null,GP=(h)=>h,JP=(h)=>{if(h!==h)return"NaN";switch(h){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return h}},VP=(h)=>h.toISOString().replace(".000Z","Z"),e0=(h)=>{if(h==null)return{};if(Array.isArray(h))return h.filter(($)=>$!=null).map(e0);if(typeof h==="object"){let $={};for(let T of Object.keys(h)){if(h[T]==null)continue;$[T]=e0(h[T])}return $}return h};QP.getSmithyContext=u1.getSmithyContext;QP.normalizeProvider=u1.normalizeProvider;QP.AlgorithmId=A0.AlgorithmId;QP.Client=l1;QP.Command=h1;QP.NoOpLogger=Uh;QP.SENSITIVE_STRING=eT;QP.ServiceException=d;QP._json=e0;QP.checkExceptions=tT;QP.constructStack=U0;QP.convertMap=fP;QP.createAggregatedClient=hP;QP.createWaiter=aT;QP.decorateServiceException=a1;QP.emitWarningIfUnsupportedVersion=wP;QP.getArrayIfSingleItem=UP;QP.getChecksumConfiguration=$h;QP.getDefaultClientConfiguration=IP;QP.getDefaultExtensionConfiguration=Ih;QP.getRetryConfiguration=Ph;QP.getValueFromTextNode=Ah;QP.invalidFunction=mT;QP.invalidProvider=dT;QP.isSerializableHeaderValue=_P;QP.loadConfigsForDefaultMode=PP;QP.map=_h;QP.resolveChecksumRuntimeConfig=Th;QP.resolveDefaultRuntimeConfig=AP;QP.resolveRetryRuntimeConfig=wh;QP.schemaLogFilter=B0;QP.serializeDateTime=VP;QP.serializeFloat=JP;QP.take=MP;QP.throwDefaultError=e1;QP.waiterServiceDefaults=i1;QP.withBaseException=$P});var Bh=y((lw)=>{var hw=C("os"),v=C("path"),$w=C("crypto"),Vh=C("fs/promises"),z0=h0(),F0=$1(),Tw=m();class t extends Error{name="ProviderError";tryNextLink;constructor(h,$=!0){let T,P=!0;if(typeof $==="boolean")T=void 0,P=$;else if($!=null&&typeof $==="object")T=$.logger,P=$.tryNextLink??!0;super(h);this.tryNextLink=P,Object.setPrototypeOf(this,t.prototype),T?.debug?.(`@smithy/property-provider ${P?"->":"(!)"} ${h}`)}static from(h,$=!0){return Object.assign(new this(h.message,$),h)}}class _0 extends t{name="CredentialsProviderError";constructor(h,$=!0){super(h,$);Object.setPrototypeOf(this,_0.prototype)}}class A1 extends t{name="TokenProviderError";constructor(h,$=!0){super(h,$);Object.setPrototypeOf(this,A1.prototype)}}var Qh=(...h)=>async()=>{if(h.length===0)throw new t("No providers in chain");let $;for(let T of h)try{return await T()}catch(P){if($=P,P?.tryNextLink)continue;throw P}throw $},Zh=(h)=>()=>Promise.resolve(h),U1=(h,$,T)=>{let P,w,I,A=!1,U=async()=>{if(!w)w=h();try{P=await w,I=!0,A=!1}finally{w=void 0}return P};if($===void 0)return async(_)=>{if(!I||_?.forceRefresh)P=await U();return P};return async(_)=>{if(!I||_?.forceRefresh)P=await U();if(A)return P;if(T&&!T(P))return A=!0,P;if($(P))return await U(),P;return P}},z=(h,$,T)=>{if(!($ in h))return;if(h[$]==="true")return!0;if(h[$]==="false")return!1;throw Error(`Cannot load ${T} "${$}". Expected "true" or "false", got ${h[$]}.`)},Pw=(h,$,T)=>{if(!($ in h))return;let P=parseInt(h[$],10);if(Number.isNaN(P))throw TypeError(`Cannot load ${T} '${$}'. Expected number, got '${h[$]}'.`);return P};lw.SelectorType=void 0;(function(h){h.ENV="env",h.CONFIG="shared config entry"})(lw.SelectorType||(lw.SelectorType={}));var T1={},ww=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},f0=()=>{let{HOME:h,USERPROFILE:$,HOMEPATH:T,HOMEDRIVE:P=`C:${v.sep}`}=process.env;if(h)return h;if($)return $;if(T)return`${P}${T}`;let w=ww();if(!T1[w])T1[w]=hw.homedir();return T1[w]},Rh="AWS_PROFILE",qh="default",Oh=(h)=>h.profile||process.env[Rh]||qh,Eh=(h)=>{let T=$w.createHash("sha1").update(h).digest("hex");return v.join(f0(),".aws","sso","cache",`${T}.json`)},s0={},Iw=async(h)=>{if(s0[h])return s0[h];let $=Eh(h),T=await Vh.readFile($,"utf8");return JSON.parse(T)},p=".",Aw=(h)=>Object.entries(h).filter(([$])=>{let T=$.indexOf(p);if(T===-1)return!1;return Object.values(z0.IniSectionType).includes($.substring(0,T))}).reduce(($,[T,P])=>{let w=T.indexOf(p),I=T.substring(0,w)===z0.IniSectionType.PROFILE?T.substring(w+1):T;return $[I]=P,$},{...h.default&&{default:h.default}}),Uw="AWS_CONFIG_FILE",Nh=()=>process.env[Uw]||v.join(f0(),".aws","config"),_w="AWS_SHARED_CREDENTIALS_FILE",fw=()=>process.env[_w]||v.join(f0(),".aws","credentials"),Mw=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,Yw=["__proto__","profile __proto__"],w1=(h)=>{let $={},T,P;for(let w of h.split(/\r?\n/)){let I=w.split(/(^|\s)[;#]/)[0].trim();if(I[0]==="["&&I[I.length-1]==="]"){T=void 0,P=void 0;let U=I.substring(1,I.length-1),_=Mw.exec(U);if(_){let[,f,,Y]=_;if(Object.values(z0.IniSectionType).includes(f))T=[f,Y].join(p)}else T=U;if(Yw.includes(U))throw Error(`Found invalid profile name "${U}"`)}else if(T){let U=I.indexOf("=");if(![0,-1].includes(U)){let[_,f]=[I.substring(0,U).trim(),I.substring(U+1).trim()];if(f==="")P=_;else{if(P&&w.trimStart()===w)P=void 0;$[T]=$[T]||{};let Y=P?[P,_].join(p):_;$[T][Y]=f}}}}return $},P1={},S0={},j0=(h,$)=>{if(S0[h]!==void 0)return S0[h];if(!P1[h]||$?.ignoreCache)P1[h]=Vh.readFile(h,"utf8");return P1[h]},Mh=()=>({}),_1=async(h={})=>{let{filepath:$=fw(),configFilepath:T=Nh()}=h,P=f0(),w="~/",I=$;if($.startsWith("~/"))I=v.join(P,$.slice(2));let A=T;if(T.startsWith("~/"))A=v.join(P,T.slice(2));let U=await Promise.all([j0(A,{ignoreCache:h.ignoreCache}).then(w1).then(Aw).catch(Mh),j0(I,{ignoreCache:h.ignoreCache}).then(w1).catch(Mh)]);return{configFile:U[0],credentialsFile:U[1]}},Xw=(h)=>Object.entries(h).filter(([$])=>$.startsWith(z0.IniSectionType.SSO_SESSION+p)).reduce(($,[T,P])=>({...$,[T.substring(T.indexOf(p)+1)]:P}),{}),Gw=()=>({}),Jw=async(h={})=>j0(h.configFilepath??Nh()).then(w1).then(Xw).catch(Gw),Vw=(...h)=>{let $={};for(let T of h)for(let[P,w]of Object.entries(T))if($[P]!==void 0)Object.assign($[P],w);else $[P]=w;return $},Qw=async(h)=>{let $=await _1(h);return Vw($.configFile,$.credentialsFile)},Zw={getFileRecord(){return S0},interceptFile(h,$){S0[h]=Promise.resolve($)},getTokenRecord(){return s0},interceptToken(h,$){s0[h]=$}};function Hh(h){try{let $=new Set(Array.from(h.match(/([A-Z_]){3,}/g)??[]));return $.delete("CONFIG"),$.delete("CONFIG_PREFIX_SEPARATOR"),$.delete("ENV"),[...$].join(", ")}catch($){return h}}var Rw=(h,$)=>async()=>{try{let T=h(process.env,$);if(T===void 0)throw Error();return T}catch(T){throw new _0(T.message||`Not found in ENV: ${Hh(h.toString())}`,{logger:$?.logger})}},qw=(h,{preferredFile:$="config",...T}={})=>async()=>{let P=Oh(T),{configFile:w,credentialsFile:I}=await _1(T),A=I[P]||{},U=w[P]||{},_=$==="config"?{...A,...U}:{...U,...A};try{let Y=h(_,$==="config"?w:I);if(Y===void 0)throw Error();return Y}catch(f){throw new _0(f.message||`Not found in config files w/ profile [${P}]: ${Hh(h.toString())}`,{logger:T.logger})}},Ow=(h)=>typeof h==="function",xh=(h)=>Ow(h)?async()=>await h():Zh(h),I1=({environmentVariableSelector:h,configFileSelector:$,default:T},P={})=>{let{signingName:w,logger:I}=P;return U1(Qh(Rw(h,{signingName:w,logger:I}),qw($,P),xh(T)))},f1="AWS_USE_DUALSTACK_ENDPOINT",M1="use_dualstack_endpoint",Ew=!1,Nw={environmentVariableSelector:(h)=>z(h,f1,lw.SelectorType.ENV),configFileSelector:(h)=>z(h,M1,lw.SelectorType.CONFIG),default:!1},Hw={environmentVariableSelector:(h)=>z(h,f1,lw.SelectorType.ENV),configFileSelector:(h)=>z(h,M1,lw.SelectorType.CONFIG),default:void 0},Y1="AWS_USE_FIPS_ENDPOINT",X1="use_fips_endpoint",xw=!1,Ww={environmentVariableSelector:(h)=>z(h,Y1,lw.SelectorType.ENV),configFileSelector:(h)=>z(h,X1,lw.SelectorType.CONFIG),default:!1},Dw={environmentVariableSelector:(h)=>z(h,Y1,lw.SelectorType.ENV),configFileSelector:(h)=>z(h,X1,lw.SelectorType.CONFIG),default:void 0},Lw=(h)=>{let{tls:$,endpoint:T,urlParser:P,useDualstackEndpoint:w}=h;return Object.assign(h,{tls:$??!0,endpoint:F0.normalizeProvider(typeof T==="string"?P(T):T),isCustomEndpoint:!0,useDualstackEndpoint:F0.normalizeProvider(w??!1)})},Kw=async(h)=>{let{tls:$=!0}=h,T=await h.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(T))throw Error("Invalid region in client config");let w=await h.useDualstackEndpoint(),I=await h.useFipsEndpoint(),{hostname:A}=await h.regionInfoProvider(T,{useDualstackEndpoint:w,useFipsEndpoint:I})??{};if(!A)throw Error("Cannot resolve hostname from client config");return h.urlParser(`${$?"https:":"http:"}//${A}`)},Bw=(h)=>{let $=F0.normalizeProvider(h.useDualstackEndpoint??!1),{endpoint:T,useFipsEndpoint:P,urlParser:w,tls:I}=h;return Object.assign(h,{tls:I??!0,endpoint:T?F0.normalizeProvider(typeof T==="string"?w(T):T):()=>Kw({...h,useDualstackEndpoint:$,useFipsEndpoint:P}),isCustomEndpoint:!!T,useDualstackEndpoint:$})},Wh="AWS_REGION",Dh="region",Lh={environmentVariableSelector:(h)=>h[Wh],configFileSelector:(h)=>h[Dh],default:()=>{throw Error("Region is missing")}},zw={preferredFile:"credentials"},Yh=new Set,Fw=(h,$=Tw.isValidHostLabel)=>{if(!Yh.has(h)&&!$(h))if(h==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw Error(`Region not accepted: region="${h}" is not a valid hostname component.`);else Yh.add(h)},Kh=(h)=>typeof h==="string"&&(h.startsWith("fips-")||h.endsWith("-fips")),sw=(h)=>Kh(h)?["fips-aws-global","aws-fips"].includes(h)?"us-east-1":h.replace(/fips-(dkr-|prod-)?|-fips/,""):h,Sw=(h)=>{let{region:$,useFipsEndpoint:T}=h;if(!$)throw Error("Region is missing");return Object.assign(h,{region:async()=>{let P=typeof $==="function"?await $():$,w=sw(P);return Fw(w),w},useFipsEndpoint:async()=>{let P=typeof $==="string"?$:await $();if(Kh(P))return!0;return typeof T!=="function"?Promise.resolve(!!T):T()}})},Xh=(h=[],{useFipsEndpoint:$,useDualstackEndpoint:T})=>h.find(({tags:P})=>$===P.includes("fips")&&T===P.includes("dualstack"))?.hostname,jw=(h,{regionHostname:$,partitionHostname:T})=>$?$:T?T.replace("{region}",h):void 0,Cw=(h,{partitionHash:$})=>Object.keys($||{}).find((T)=>$[T].regions.includes(h))??"aws",cw=(h,{signingRegion:$,regionRegex:T,useFipsEndpoint:P})=>{if($)return $;else if(P){let w=T.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),I=h.match(w);if(I)return I[0].slice(1,-1)}},bw=(h,{useFipsEndpoint:$=!1,useDualstackEndpoint:T=!1,signingService:P,regionHash:w,partitionHash:I})=>{let A=Cw(h,{partitionHash:I}),U=h in w?h:I[A]?.endpoint??h,_={useFipsEndpoint:$,useDualstackEndpoint:T},f=Xh(w[U]?.variants,_),Y=Xh(I[A]?.variants,_),M=jw(U,{regionHostname:f,partitionHostname:Y});if(M===void 0)throw Error(`Endpoint resolution failed for: ${{resolvedRegion:U,useFipsEndpoint:$,useDualstackEndpoint:T}}`);let X=cw(M,{signingRegion:w[U]?.signingRegion,regionRegex:I[A].regionRegex,useFipsEndpoint:$});return{partition:A,signingService:P,hostname:M,...X&&{signingRegion:X},...w[U]?.signingService&&{signingService:w[U].signingService}}},yw="AWS_EXECUTION_ENV",Gh="AWS_REGION",Jh="AWS_DEFAULT_REGION",kw="AWS_EC2_METADATA_DISABLED",pw=["in-region","cross-region","mobile","standard","legacy"],gw="/latest/meta-data/placement/region",mw="AWS_DEFAULTS_MODE",dw="defaults_mode",vw={environmentVariableSelector:(h)=>{return h[mw]},configFileSelector:(h)=>{return h[dw]},default:"legacy"},tw=({region:h=I1(Lh),defaultsMode:$=I1(vw)}={})=>U1(async()=>{let T=typeof $==="function"?await $():$;switch(T?.toLowerCase()){case"auto":return rw(h);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(T?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw Error(`Invalid parameter for "defaultsMode", expect ${pw.join(", ")}, got ${T}`)}}),rw=async(h)=>{if(h){let $=typeof h==="function"?await h():h,T=await nw();if(!T)return"standard";if($===T)return"in-region";else return"cross-region"}return"standard"},nw=async()=>{if(process.env[yw]&&(process.env[Gh]||process.env[Jh]))return process.env[Gh]??process.env[Jh];if(!process.env[kw])try{let h=await uw();return(await iw({hostname:h.hostname,path:gw})).toString()}catch(h){}},uw=async()=>{let h=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(h){let T=new URL(h);return{hostname:T.hostname,path:T.pathname}}if(process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6")return{hostname:"fd00:ec2::254",path:"/"};return{hostname:"169.254.169.254",path:"/"}},iw=async({hostname:h,path:$})=>{let{request:T}=await import("http");return new Promise((P,w)=>{let I=T({method:"GET",hostname:h.replace(/^\[(.+)]$/,"$1"),path:$,timeout:1000,signal:AbortSignal.timeout(1000)});I.on("error",(A)=>{w(A),I.destroy()}),I.on("timeout",()=>{w(Error("TimeoutError from instance metadata service")),I.destroy()}),I.on("response",(A)=>{let{statusCode:U=400}=A;if(U<200||300<=U){w(Object.assign(Error("Error response received from instance metadata service"),{statusCode:U})),I.destroy();return}let _=[];A.on("data",(f)=>_.push(f)),A.on("end",()=>{P(Buffer.concat(_)),I.destroy()})}),I.end()})};lw.CONFIG_PREFIX_SEPARATOR=p;lw.CONFIG_USE_DUALSTACK_ENDPOINT=M1;lw.CONFIG_USE_FIPS_ENDPOINT=X1;lw.CredentialsProviderError=_0;lw.DEFAULT_PROFILE=qh;lw.DEFAULT_USE_DUALSTACK_ENDPOINT=Ew;lw.DEFAULT_USE_FIPS_ENDPOINT=xw;lw.ENV_PROFILE=Rh;lw.ENV_USE_DUALSTACK_ENDPOINT=f1;lw.ENV_USE_FIPS_ENDPOINT=Y1;lw.NODE_REGION_CONFIG_FILE_OPTIONS=zw;lw.NODE_REGION_CONFIG_OPTIONS=Lh;lw.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=Nw;lw.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=Ww;lw.ProviderError=t;lw.REGION_ENV_NAME=Wh;lw.REGION_INI_NAME=Dh;lw.TokenProviderError=A1;lw.booleanSelector=z;lw.chain=Qh;lw.externalDataInterceptor=Zw;lw.fromStatic=xh;lw.fromValue=Zh;lw.getHomeDir=f0;lw.getProfileName=Oh;lw.getRegionInfo=bw;lw.getSSOTokenFilepath=Eh;lw.getSSOTokenFromFile=Iw;lw.loadConfig=I1;lw.loadSharedConfigFiles=_1;lw.loadSsoSessionData=Jw;lw.memoize=U1;lw.nodeDualstackConfigSelectors=Hw;lw.nodeFipsConfigSelectors=Dw;lw.numberSelector=Pw;lw.parseKnownFiles=Qw;lw.readFile=j0;lw.resolveCustomEndpointsConfig=Lw;lw.resolveDefaultsModeConfig=tw;lw.resolveEndpointsConfig=Bw;lw.resolveRegionConfig=Sw});var lh=y((EA)=>{var V1=Bh(),F=m(),yI=$1(),Q1=h0(),zh="AWS_ENDPOINT_URL",Fh="endpoint_url",kI=(h)=>({environmentVariableSelector:($)=>{let T=h.split(" ").map((I)=>I.toUpperCase()),P=$[[zh,...T].join("_")];if(P)return P;let w=$[zh];if(w)return w;return},configFileSelector:($,T)=>{if(T&&$.services){let w=T[["services",$.services].join(V1.CONFIG_PREFIX_SEPARATOR)];if(w){let I=h.split(" ").map((U)=>U.toLowerCase()),A=w[[I.join("_"),Fh].join(V1.CONFIG_PREFIX_SEPARATOR)];if(A)return A}}let P=$[Fh];if(P)return P;return},default:void 0}),C0=async(h)=>V1.loadConfig(kI(h??""))(),pI=async(h)=>{let $=h?.Bucket||"";if(typeof h.Bucket==="string")h.Bucket=$.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(tI($)){if(h.ForcePathStyle===!0)throw Error("Path-style addressing cannot be used with ARN buckets")}else if(!vI($)||$.indexOf(".")!==-1&&!String(h.Endpoint).startsWith("http:")||$.toLowerCase()!==$||$.length<3)h.ForcePathStyle=!0;if(h.DisableMultiRegionAccessPoints)h.disableMultiRegionAccessPoints=!0,h.DisableMRAP=!0;return h},gI=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,mI=/(\d+\.){3}\d+/,dI=/\.\./,vI=(h)=>gI.test(h)&&!mI.test(h)&&!dI.test(h),tI=(h)=>{let[$,T,P,,,w]=h.split(":"),I=$==="arn"&&h.split(":").length>=6,A=Boolean(I&&T&&P&&w);if(I&&!A)throw Error(`Invalid ARN: ${h} was an invalid ARN.`);return A},rI=(h,$,T,P=!1)=>{let w=async()=>{let I;if(P)I=T.clientContextParams?.[h]??T[h]??T[$];else I=T[h]??T[$];if(typeof I==="function")return I();return I};if(h==="credentialScope"||$==="CredentialScope")return async()=>{let I=typeof T.credentials==="function"?await T.credentials():T.credentials;return I?.credentialScope??I?.CredentialScope};if(h==="accountId"||$==="AccountId")return async()=>{let I=typeof T.credentials==="function"?await T.credentials():T.credentials;return I?.accountId??I?.AccountId};if(h==="endpoint"||$==="endpoint")return async()=>{if(T.isCustomEndpoint===!1)return;let I=await w();if(I&&typeof I==="object"){if("url"in I)return I.url.href;if("hostname"in I){let{protocol:A,hostname:U,port:_,path:f}=I;return`${A}//${U}${_?":"+_:""}${f}`}}return I};return w};function sh(h){return async($,T,P,w)=>{if(!P.isCustomEndpoint){let U;if(P.serviceConfiguredEndpoint)U=await P.serviceConfiguredEndpoint();else U=await h(P.serviceId);if(U)P.endpoint=()=>Promise.resolve(F.toEndpointV1(U)),P.isCustomEndpoint=!0}let I=await Sh($,T,P);if(typeof P.endpointProvider!=="function")throw Error("config.endpointProvider is not set.");let A=P.endpointProvider(I,w);if(P.isCustomEndpoint&&P.endpoint){let U=await P.endpoint();if(U?.headers){A.headers??={};for(let[_,f]of Object.entries(U.headers))A.headers[_]=Array.isArray(f)?f:[f]}}return A}}var Sh=async(h,$,T)=>{let P={},w=$?.getEndpointParameterInstructions?.()||{};for(let[I,A]of Object.entries(w))switch(A.type){case"staticContextParams":P[I]=A.value;break;case"contextParams":P[I]=h[A.name];break;case"clientContextParams":case"builtInParams":P[I]=await rI(A.name,I,T,A.type!=="builtInParams")();break;case"operationContextParams":P[I]=A.get(h);break;default:throw Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(A))}if(Object.keys(w).length===0)Object.assign(P,T);if(String(T.serviceId).toLowerCase()==="s3")await pI(P);return P};function nI(h,$,T){if(!h.__smithy_context)h.__smithy_context={features:{}};else if(!h.__smithy_context.features)h.__smithy_context.features={};h.__smithy_context.features[$]=T}function jh(h){let $=sh(h);return({config:T,instructions:P})=>{return(w,I)=>async(A)=>{if(T.isCustomEndpoint)nI(I,"ENDPOINT_OVERRIDE","N");let U=await $(A.input,{getEndpointParameterInstructions(){return P}},{...T},I);I.endpointV2=U,I.authSchemes=U.properties?.authSchemes;let _=I.authSchemes?.[0];if(_){I.signing_region=_.signingRegion,I.signing_service=_.signingName;let Y=yI.getSmithyContext(I)?.selectedHttpAuthScheme?.httpAuthOption;if(Y)Y.signingProperties=Object.assign(Y.signingProperties||{},{signing_region:_.signingRegion,signingRegion:_.signingRegion,signing_service:_.signingName,signingName:_.signingName,signingRegionSet:_.signingRegionSet},_.properties)}return w({...A})}}}var uI={name:"serializerMiddleware"},Ch={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:uI.name};function iI(h){let $=jh(h);return(T,P)=>({applyToStack:(w)=>{w.addRelativeTo($({config:T,instructions:P}),Ch)}})}function lI(h){return($)=>{let T=$.tls??!0,{endpoint:P,useDualstackEndpoint:w,useFipsEndpoint:I}=$,A=P!=null?async()=>F.toEndpointV1(await F.normalizeProvider(P)()):void 0,_=Object.assign($,{endpoint:A,tls:T,isCustomEndpoint:!!P,useDualstackEndpoint:F.normalizeProvider(w??!1),useFipsEndpoint:F.normalizeProvider(I??!1)}),f=void 0;return _.serviceConfiguredEndpoint=async()=>{if($.serviceId&&!f)f=h($.serviceId);return f},_}}class Z1{nodes;root;conditions;results;constructor(h,$,T,P){this.nodes=h,this.root=$,this.conditions=T,this.results=P}static from(h,$,T,P){return new Z1(h,$,T,P)}}class ch{capacity;data=new Map;parameters=[];constructor({size:h,params:$}){if(this.capacity=h??50,$)this.parameters=$}get(h,$){let T=this.hash(h);if(T===!1)return $();if(!this.data.has(T)){if(this.data.size>this.capacity+10){let P=this.data.keys(),w=0;while(!0){let{value:I,done:A}=P.next();if(this.data.delete(I),A||++w>10)break}}this.data.set(T,$())}return this.data.get(T)}size(){return this.data.size}hash(h){let $="",{parameters:T}=this;if(T.length===0)return!1;for(let P of T){let w=String(h[P]??"");if(w.includes("|;"))return!1;$+=w+"|;"}return $}}class q extends Error{constructor(h){super(h);this.name="EndpointError"}}var M0="endpoints";function c(h){if(typeof h!=="object"||h==null)return h;if("ref"in h)return`$${c(h.ref)}`;if("fn"in h)return`${h.fn}(${(h.argv||[]).map(c).join(", ")})`;return JSON.stringify(h,null,2)}var bh={},oI=(h,$)=>h===$;function aI(...h){for(let $ of h)if($!=null)return $;return}var eI=(h)=>{let $=h.split("."),T=[];for(let P of $){let w=P.indexOf("[");if(w!==-1){if(P.indexOf("]")!==P.length-1)throw new q(`Path: '${h}' does not end with ']'`);let I=P.slice(w+1,-1);if(Number.isNaN(parseInt(I)))throw new q(`Invalid array index: '${I}' in path: '${h}'`);if(w!==0)T.push(P.slice(0,w));T.push(I)}else T.push(P)}return T},yh=(h,$)=>eI($).reduce((T,P)=>{if(typeof T!=="object")throw new q(`Index '${P}' in '${$}' not found in '${JSON.stringify(h)}'`);else if(Array.isArray(T)){let w=parseInt(P);return T[w<0?T.length+w:w]}return T[P]},h),hA=(h)=>h!=null;function $A(h,$,T){return h?$:T}var TA=(h)=>!h,PA=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),kh=(h)=>PA.test(h)||h.startsWith("[")&&h.endsWith("]"),G1={[Q1.EndpointURLScheme.HTTP]:80,[Q1.EndpointURLScheme.HTTPS]:443},wA=(h)=>{let $=(()=>{try{if(h instanceof URL)return h;if(typeof h==="object"&&"hostname"in h){let{hostname:X,port:G,protocol:V="",path:Z="",query:J={}}=h,Q=new URL(`${V}//${X}${G?`:${G}`:""}${Z}`);return Q.search=Object.entries(J).map(([R,H])=>`${R}=${H}`).join("&"),Q}return new URL(h)}catch(X){return null}})();if(!$)return console.error(`Unable to parse ${JSON.stringify(h)} as a whatwg URL.`),null;let T=$.href,{host:P,hostname:w,pathname:I,protocol:A,search:U}=$;if(U)return null;let _=A.slice(0,-1);if(!Object.values(Q1.EndpointURLScheme).includes(_))return null;let f=kh(w),Y=T.includes(`${P}:${G1[_]}`)||typeof h==="string"&&h.includes(`${P}:${G1[_]}`),M=`${P}${Y?`:${G1[_]}`:""}`;return{scheme:_,authority:M,path:I,normalizedPath:I.endsWith("/")?I:`${I}/`,isIp:f}};function IA(h,$,T){if(T===1)return[h];if(h==="")return[""];let P=h.split($);if(T===0)return P;return P.slice(0,T-1).concat(P.slice(1).join($))}var AA=(h,$)=>h===$,UA=(h,$,T,P)=>{if(h==null||$>=T||h.length<T||/[^\u0000-\u007f]/.test(h))return null;if(!P)return h.substring($,T);return h.substring(h.length-T,h.length-$)},_A=(h)=>encodeURIComponent(h).replace(/[!*'()]/g,($)=>`%${$.charCodeAt(0).toString(16).toUpperCase()}`),fA={booleanEquals:oI,coalesce:aI,getAttr:yh,isSet:hA,isValidHostLabel:F.isValidHostLabel,ite:$A,not:TA,parseURL:wA,split:IA,stringEquals:AA,substring:UA,uriEncode:_A},ph=(h,$)=>{let T=[],{referenceRecord:P,endpointParams:w}=$,I=0;while(I<h.length){let A=h.indexOf("{",I);if(A===-1){T.push(h.slice(I));break}T.push(h.slice(I,A));let U=h.indexOf("}",A);if(U===-1){T.push(h.slice(A));break}if(h[A+1]==="{"&&h[U+1]==="}")T.push(h.slice(A+1,U)),I=U+2;let _=h.substring(A+1,U);if(_.includes("#")){let[f,Y]=_.split("#");T.push(yh(P[f]??w[f],Y))}else T.push(P[_]??w[_]);I=U+1}return T.join("")},MA=({ref:h},$)=>{return $.referenceRecord[h]??$.endpointParams[h]},Y0=(h,$,T)=>{if(typeof h==="string")return ph(h,T);else if(h.fn)return mh.callFunction(h,T);else if(h.ref)return MA(h,T);throw new q(`'${$}': ${String(h)} is not a string, function or reference.`)},gh=({fn:h,argv:$},T)=>{let P=Array($.length);for(let A=0;A<P.length;++A){let U=$[A];if(typeof U==="boolean"||typeof U==="number")P[A]=U;else P[A]=mh.evaluateExpression(U,"arg",T)}let w=h.indexOf(".");if(w!==-1){let U=bh[h.slice(0,w)]?.[h.slice(w+1)];if(typeof U==="function")return U(...P)}let I=fA[h];if(typeof I==="function")return I(...P);throw Error(`function ${h} not loaded in endpointFunctions.`)},mh={evaluateExpression:Y0,callFunction:gh},dh=(h,$)=>{let{assign:T}=h;if(T&&T in $.referenceRecord)throw new q(`'${T}' is already defined in Reference Record.`);let P=gh(h,$);$.logger?.debug?.(`${M0} evaluateCondition: ${c(h)} = ${c(P)}`);let w=P===""?!0:!!P;if(T!=null)return{result:w,toAssign:{name:T,value:P}};return{result:w}},vh=(h,$)=>Object.entries(h??{}).reduce((T,[P,w])=>{return T[P]=w.map((I)=>{let A=Y0(I,"Header value entry",$);if(typeof A!=="string")throw new q(`Header '${P}' value '${A}' is not a string`);return A}),T},{}),R1=(h,$)=>Object.entries(h).reduce((T,[P,w])=>{return T[P]=rh.getEndpointProperty(w,$),T},{}),th=(h,$)=>{if(Array.isArray(h))return h.map((T)=>th(T,$));switch(typeof h){case"string":return ph(h,$);case"object":if(h===null)throw new q(`Unexpected endpoint property: ${h}`);return rh.getEndpointProperties(h,$);case"boolean":return h;default:throw new q(`Unexpected endpoint property type: ${typeof h}`)}},rh={getEndpointProperty:th,getEndpointProperties:R1},nh=(h,$)=>{let T=Y0(h,"Endpoint URL",$);if(typeof T==="string")try{return new URL(T)}catch(P){throw console.error(`Failed to construct URL with ${T}`,P),P}throw new q(`Endpoint URL must be a string, got ${typeof T}`)},J1=1e8,YA=(h,$)=>{let{nodes:T,root:P,results:w,conditions:I}=h,A=P,U={},_={referenceRecord:U,endpointParams:$.endpointParams,logger:$.logger};while(A!==1&&A!==-1&&A<J1){let f=3*(Math.abs(A)-1),[Y,M,X]=[T[f],T[f+1],T[f+2]],[G,V,Z]=I[Y],J=dh({fn:G,assign:Z,argv:V},_);if(J.toAssign){let{name:Q,value:R}=J.toAssign;U[Q]=R}A=A>=0===J.result?M:X}if(A>=J1){let f=w[A-J1];if(f[0]===-1){let[,G]=f;throw new q(Y0(G,"Error",_))}let[Y,M,X]=f;return{url:nh(Y,_),properties:R1(M,_),headers:vh(X??{},_)}}throw new q("No matching endpoint.")},q1=(h=[],$)=>{let T={},P={...$,referenceRecord:{...$.referenceRecord}},w=!1;for(let I of h){let{result:A,toAssign:U}=dh(I,P);if(!A)return{result:A};if(U)w=!0,T[U.name]=U.value,P.referenceRecord[U.name]=U.value,$.logger?.debug?.(`${M0} assign: ${U.name} := ${c(U.value)}`)}if(w)return{result:!0,referenceRecord:T};return{result:!0}},XA=(h,$)=>{let{conditions:T,endpoint:P}=h,{result:w,referenceRecord:I}=q1(T,$);if(!w)return;let A=I?{...$,referenceRecord:{...$.referenceRecord,...I}}:$,{url:U,properties:_,headers:f}=P;$.logger?.debug?.(`${M0} Resolving endpoint from template: ${c(P)}`);let Y={url:nh(U,A)};if(f!=null)Y.headers=vh(f,A);if(_!=null)Y.properties=R1(_,A);return Y},GA=(h,$)=>{let{conditions:T,error:P}=h,{result:w,referenceRecord:I}=q1(T,$);if(!w)return;let A=I?{...$,referenceRecord:{...$.referenceRecord,...I}}:$;throw new q(Y0(P,"Error",A))},uh=(h,$)=>{for(let T of h)if(T.type==="endpoint"){let P=XA(T,$);if(P)return P}else if(T.type==="error")GA(T,$);else if(T.type==="tree"){let P=ih.evaluateTreeRule(T,$);if(P)return P}else throw new q(`Unknown endpoint rule: ${T}`);throw new q("Rules evaluation failed")},JA=(h,$)=>{let{conditions:T,rules:P}=h,{result:w,referenceRecord:I}=q1(T,$);if(!w)return;let A=I?{...$,referenceRecord:{...$.referenceRecord,...I}}:$;return ih.evaluateRules(P,A)},ih={evaluateRules:uh,evaluateTreeRule:JA},VA=(h,$)=>{let{endpointParams:T,logger:P}=$,{parameters:w,rules:I}=h;$.logger?.debug?.(`${M0} Initial EndpointParams: ${c(T)}`);for(let U in w){let _=w[U],f=T[U];if(f==null&&_.default!=null){T[U]=_.default;continue}if(_.required&&f==null)throw new q(`Missing required parameter: '${U}'`)}let A=uh(I,{endpointParams:T,logger:P,referenceRecord:{}});return $.logger?.debug?.(`${M0} Resolved endpoint: ${c(A)}`),A},QA=(h)=>{let{endpoint:$}=h;if($===void 0)h.endpoint=async()=>{throw Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")};return h},ZA=sh(C0),RA=lI(C0),qA=jh(C0),OA=iI(C0);EA.isValidHostLabel=F.isValidHostLabel;EA.middlewareEndpointToEndpointV1=F.toEndpointV1;EA.toEndpointV1=F.toEndpointV1;EA.BinaryDecisionDiagram=Z1;EA.EndpointCache=ch;EA.EndpointError=q;EA.customEndpointFunctions=bh;EA.decideEndpoint=YA;EA.endpointMiddleware=qA;EA.endpointMiddlewareOptions=Ch;EA.getEndpointFromInstructions=ZA;EA.getEndpointPlugin=OA;EA.isIpAddress=kh;EA.resolveEndpoint=VA;EA.resolveEndpointConfig=RA;EA.resolveEndpointRequiredConfig=QA;EA.resolveParams=Sh});var Ff=y((J_)=>{var H1=C("crypto"),O1=C("fs"),kA=m(),pA=lh(),D=C("stream"),P$=(h)=>typeof ArrayBuffer==="function"&&h instanceof ArrayBuffer||Object.prototype.toString.call(h)==="[object ArrayBuffer]",u=(h,$=0,T=h.byteLength-$)=>{if(!P$(h))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof h} (${h})`);return Buffer.from(h,$,T)},k0=(h,$)=>{if(typeof h!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof h} (${h})`);return $?Buffer.from(h,$):Buffer.from(h)},gA=/^[A-Za-z0-9+/]*={0,2}$/,w$=(h)=>{if(h.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!gA.exec(h))throw TypeError("Invalid base64 string.");let $=k0(h,"base64");return new Uint8Array($.buffer,$.byteOffset,$.byteLength)},p0=(h)=>{let $=k0(h,"utf8");return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT)},K1=(h)=>{let $;if(typeof h==="string")$=p0(h);else $=h;if(typeof $!=="object"||typeof $.byteOffset!=="number"||typeof $.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return u($.buffer,$.byteOffset,$.byteLength).toString("base64")};function mA(h,$,T,P){return class w extends Uint8Array{static fromString(I,A="utf-8"){if(typeof I==="string"){if(A==="base64")return w.mutate(P(I));return w.mutate($(I))}throw Error(`Unsupported conversion from ${typeof I} to Uint8ArrayBlobAdapter.`)}static mutate(I){return Object.setPrototypeOf(I,w.prototype),I}transformToString(I="utf-8"){if(I==="base64")return T(this);return h(this)}}}var I$=(h)=>{if(typeof h==="string")return h;if(typeof h!=="object"||typeof h.byteOffset!=="number"||typeof h.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return u(h.buffer,h.byteOffset,h.byteLength).toString("utf8")},O=Array.from({length:256},(h,$)=>$.toString(16).padStart(2,"0"));function dA(h){if(typeof crypto<"u"&&typeof crypto.randomUUID==="function")return()=>crypto.randomUUID();return()=>{let $=new Uint8Array(16);return h($),$[6]=$[6]&15|64,$[8]=$[8]&63|128,O[$[0]]+O[$[1]]+O[$[2]]+O[$[3]]+"-"+O[$[4]]+O[$[5]]+"-"+O[$[6]]+O[$[7]]+"-"+O[$[8]]+O[$[9]]+"-"+O[$[10]]+O[$[11]]+O[$[12]]+O[$[13]]+O[$[14]]+O[$[15]]}}var vA=(h,$,T=(P)=>P)=>h,tA=(h)=>{switch(h){case"true":return!0;case"false":return!1;default:throw Error(`Unable to parse boolean value "${h}"`)}},rA=(h)=>{if(h===null||h===void 0)return;if(typeof h==="number"){if(h===0||h===1)Q0.warn(b0(`Expected boolean, got ${typeof h}: ${h}`));if(h===0)return!1;if(h===1)return!0}if(typeof h==="string"){let $=h.toLowerCase();if($==="false"||$==="true")Q0.warn(b0(`Expected boolean, got ${typeof h}: ${h}`));if($==="false")return!1;if($==="true")return!0}if(typeof h==="boolean")return h;throw TypeError(`Expected boolean, got ${typeof h}: ${h}`)},J0=(h)=>{if(h===null||h===void 0)return;if(typeof h==="string"){let $=parseFloat(h);if(!Number.isNaN($)){if(String($)!==String(h))Q0.warn(b0(`Expected number but observed string: ${h}`));return $}}if(typeof h==="number")return h;throw TypeError(`Expected number, got ${typeof h}: ${h}`)},nA=Math.ceil(340282346638528860000000000000000000000),c0=(h)=>{let $=J0(h);if($!==void 0&&!Number.isNaN($)&&$!==1/0&&$!==-1/0){if(Math.abs($)>nA)throw TypeError(`Expected 32-bit float, got ${h}`)}return $},V0=(h)=>{if(h===null||h===void 0)return;if(Number.isInteger(h)&&!Number.isNaN(h))return h;throw TypeError(`Expected integer, got ${typeof h}: ${h}`)},uA=V0,x1=(h)=>B1(h,32),W1=(h)=>B1(h,16),D1=(h)=>B1(h,8),B1=(h,$)=>{let T=V0(h);if(T!==void 0&&iA(T,$)!==T)throw TypeError(`Expected ${$}-bit integer, got ${h}`);return T},iA=(h,$)=>{switch($){case 32:return Int32Array.of(h)[0];case 16:return Int16Array.of(h)[0];case 8:return Int8Array.of(h)[0]}},lA=(h,$)=>{if(h===null||h===void 0){if($)throw TypeError(`Expected a non-null value for ${$}`);throw TypeError("Expected a non-null value")}return h},A$=(h)=>{if(h===null||h===void 0)return;if(typeof h==="object"&&!Array.isArray(h))return h;let $=Array.isArray(h)?"array":typeof h;throw TypeError(`Expected object, got ${$}: ${h}`)},oA=(h)=>{if(h===null||h===void 0)return;if(typeof h==="string")return h;if(["boolean","number","bigint"].includes(typeof h))return Q0.warn(b0(`Expected string, got ${typeof h}: ${h}`)),String(h);throw TypeError(`Expected string, got ${typeof h}: ${h}`)},aA=(h)=>{if(h===null||h===void 0)return;let $=A$(h),T=[];for(let P in $)if($[P]!=null)T.push(P);if(T.length===0)throw TypeError("Unions must have exactly one non-null member. None were found.");if(T.length>1)throw TypeError(`Unions must have exactly one non-null member. Keys ${T} were not null.`);return $},z1=(h)=>{if(typeof h=="string")return J0(o(h));return J0(h)},eA=z1,U$=(h)=>{if(typeof h=="string")return c0(o(h));return c0(h)},hU=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,o=(h)=>{let $=h.match(hU);if($===null||$[0].length!==h.length)throw TypeError("Expected real number, got implicit NaN");return parseFloat(h)},F1=(h)=>{if(typeof h=="string")return _$(h);return J0(h)},$U=F1,TU=F1,PU=(h)=>{if(typeof h=="string")return _$(h);return c0(h)},_$=(h)=>{switch(h){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw Error(`Unable to parse float value: ${h}`)}},f$=(h)=>{if(typeof h==="string")return V0(o(h));return V0(h)},wU=f$,IU=(h)=>{if(typeof h==="string")return x1(o(h));return x1(h)},i=(h)=>{if(typeof h==="string")return W1(o(h));return W1(h)},M$=(h)=>{if(typeof h==="string")return D1(o(h));return D1(h)},b0=(h)=>{return String(TypeError(h).stack||h).split(`
4
4
  `).slice(0,5).filter(($)=>!$.includes("stackTraceWarning")).join(`
5
5
  `)},Q0={warn:console.warn},AU=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],s1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function UU(h){let $=h.getUTCFullYear(),T=h.getUTCMonth(),P=h.getUTCDay(),w=h.getUTCDate(),I=h.getUTCHours(),A=h.getUTCMinutes(),U=h.getUTCSeconds(),_=w<10?`0${w}`:`${w}`,f=I<10?`0${I}`:`${I}`,Y=A<10?`0${A}`:`${A}`,M=U<10?`0${U}`:`${U}`;return`${AU[P]}, ${_} ${s1[T]} ${$} ${f}:${Y}:${M} GMT`}var _U=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),fU=(h)=>{if(h===null||h===void 0)return;if(typeof h!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let $=_U.exec(h);if(!$)throw TypeError("Invalid RFC-3339 date-time value");let[T,P,w,I,A,U,_,f]=$,Y=i(l(P)),M=L(w,"month",1,12),X=L(I,"day",1,31);return X0(Y,M,X,{hours:A,minutes:U,seconds:_,fractionalMilliseconds:f})},MU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),YU=(h)=>{if(h===null||h===void 0)return;if(typeof h!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let $=MU.exec(h);if(!$)throw TypeError("Invalid RFC-3339 date-time value");let[T,P,w,I,A,U,_,f,Y]=$,M=i(l(P)),X=L(w,"month",1,12),G=L(I,"day",1,31),V=X0(M,X,G,{hours:A,minutes:U,seconds:_,fractionalMilliseconds:f});if(Y.toUpperCase()!="Z")V.setTime(V.getTime()-xU(Y));return V},XU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),GU=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),JU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),VU=(h)=>{if(h===null||h===void 0)return;if(typeof h!=="string")throw TypeError("RFC-7231 date-times must be expressed as strings");let $=XU.exec(h);if($){let[T,P,w,I,A,U,_,f]=$;return X0(i(l(I)),E1(w),L(P,"day",1,31),{hours:A,minutes:U,seconds:_,fractionalMilliseconds:f})}if($=GU.exec(h),$){let[T,P,w,I,A,U,_,f]=$;return qU(X0(ZU(I),E1(w),L(P,"day",1,31),{hours:A,minutes:U,seconds:_,fractionalMilliseconds:f}))}if($=JU.exec(h),$){let[T,P,w,I,A,U,_,f]=$;return X0(i(l(f)),E1(P),L(w.trimLeft(),"day",1,31),{hours:I,minutes:A,seconds:U,fractionalMilliseconds:_})}throw TypeError("Invalid RFC-7231 date-time value")},QU=(h)=>{if(h===null||h===void 0)return;let $;if(typeof h==="number")$=h;else if(typeof h==="string")$=z1(h);else if(typeof h==="object"&&h.tag===1)$=h.value;else throw TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN($)||$===1/0||$===-1/0)throw TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round($*1000))},X0=(h,$,T,P)=>{let w=$-1;return EU(h,w,T),new Date(Date.UTC(h,w,T,L(P.hours,"hour",0,23),L(P.minutes,"minute",0,59),L(P.seconds,"seconds",0,60),HU(P.fractionalMilliseconds)))},ZU=(h)=>{let $=new Date().getUTCFullYear(),T=Math.floor($/100)*100+i(l(h));if(T<$)return T+100;return T},RU=1576800000000,qU=(h)=>{if(h.getTime()-new Date().getTime()>RU)return new Date(Date.UTC(h.getUTCFullYear()-100,h.getUTCMonth(),h.getUTCDate(),h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()));return h},E1=(h)=>{let $=s1.indexOf(h);if($<0)throw TypeError(`Invalid month: ${h}`);return $+1},OU=[31,28,31,30,31,30,31,31,30,31,30,31],EU=(h,$,T)=>{let P=OU[$];if($===1&&NU(h))P=29;if(T>P)throw TypeError(`Invalid day for ${s1[$]} in ${h}: ${T}`)},NU=(h)=>{return h%4===0&&(h%100!==0||h%400===0)},L=(h,$,T,P)=>{let w=M$(l(h));if(w<T||w>P)throw TypeError(`${$} must be between ${T} and ${P}, inclusive`);return w},HU=(h)=>{if(h===null||h===void 0)return 0;return U$("0."+h)*1000},xU=(h)=>{let $=h[0],T=1;if($=="+")T=1;else if($=="-")T=-1;else throw TypeError(`Offset direction, ${$}, must be "+" or "-"`);let P=Number(h.substring(1,3)),w=Number(h.substring(4,6));return T*(P*60+w)*60*1000},l=(h)=>{let $=0;while($<h.length-1&&h.charAt($)==="0")$++;if($===0)return h;return h.slice($)},g=function($){return Object.assign(new String($),{deserializeJSON(){return JSON.parse(String($))},toString(){return String($)},toJSON(){return String($)}})};g.from=(h)=>{if(h&&typeof h==="object"&&(h instanceof g||("deserializeJSON"in h)))return h;else if(typeof h==="string"||Object.getPrototypeOf(h)===String.prototype)return g(String(h));return g(JSON.stringify(h))};g.fromObject=g.from;function WU(h){if(h.includes(",")||h.includes('"'))h=`"${h.replace(/"/g,"\\\"")}"`;return h}var S1="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",j1="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",C1="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",Y$="(\\d?\\d)",X$="(\\d{4})",DU=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),LU=new RegExp(`^${S1}, ${Y$} ${j1} ${X$} ${C1} GMT$`),KU=new RegExp(`^${S1}, ${Y$}-${j1}-(\\d\\d) ${C1} GMT$`),BU=new RegExp(`^${S1} ${j1} ( [1-9]|\\d\\d) ${C1} ${X$}$`),zU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],FU=(h)=>{if(h==null)return;let $=NaN;if(typeof h==="number")$=h;else if(typeof h==="string"){if(!/^-?\d*\.?\d+$/.test(h))throw TypeError("parseEpochTimestamp - numeric string invalid.");$=Number.parseFloat(h)}else if(typeof h==="object"&&h.tag===1)$=h.value;if(isNaN($)||Math.abs($)===1/0)throw TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round($*1000))},sU=(h)=>{if(h==null)return;if(typeof h!=="string")throw TypeError("RFC3339 timestamps must be strings");let $=DU.exec(h);if(!$)throw TypeError(`Invalid RFC3339 timestamp format ${h}`);let[,T,P,w,I,A,U,,_,f]=$;s(P,1,12),s(w,1,31),s(I,0,23),s(A,0,59),s(U,0,60);let Y=new Date(Date.UTC(Number(T),Number(P)-1,Number(w),Number(I),Number(A),Number(U),Number(_)?Math.round(parseFloat(`0.${_}`)*1000):0));if(Y.setUTCFullYear(Number(T)),f.toUpperCase()!="Z"){let[,M,X,G]=/([+-])(\d\d):(\d\d)/.exec(f)||[void 0,"+",0,0],V=M==="-"?1:-1;Y.setTime(Y.getTime()+V*(Number(X)*60*60*1000+Number(G)*60*1000))}return Y},SU=(h)=>{if(h==null)return;if(typeof h!=="string")throw TypeError("RFC7231 timestamps must be strings.");let $,T,P,w,I,A,U,_;if(_=LU.exec(h))[,$,T,P,w,I,A,U]=_;else if(_=KU.exec(h))[,$,T,P,w,I,A,U]=_,P=(Number(P)+1900).toString();else if(_=BU.exec(h))[,T,$,w,I,A,U,P]=_;if(P&&A){let f=Date.UTC(Number(P),zU.indexOf(T),Number($),Number(w),Number(I),Number(A),U?Math.round(parseFloat(`0.${U}`)*1000):0);s($,1,31),s(w,0,23),s(I,0,59),s(A,0,60);let Y=new Date(f);return Y.setUTCFullYear(Number(P)),Y}throw TypeError(`Invalid RFC7231 date-time value ${h}.`)};function s(h,$,T){let P=Number(h);if(P<$||P>T)throw Error(`Value ${P} out of range [${$}, ${T}]`)}function jU(h,$,T){if(T<=0||!Number.isInteger(T))throw Error("Invalid number of delimiters ("+T+") for splitEvery.");let P=h.split($);if(T===1)return P;let w=[],I="";for(let A=0;A<P.length;A++){if(I==="")I=P[A];else I+=$+P[A];if((A+1)%T===0)w.push(I),I=""}if(I!=="")w.push(I);return w}var CU=(h)=>{let $=h.length,T=[],P=!1,w=void 0,I=0;for(let A=0;A<$;++A){let U=h[A];switch(U){case'"':if(w!=="\\")P=!P;break;case",":if(!P)T.push(h.slice(I,A)),I=A+1;break}w=U}return T.push(h.slice(I)),T.map((A)=>{A=A.trim();let U=A.length;if(U<2)return A;if(A[0]==='"'&&A[U-1]==='"')A=A.slice(1,U-1);return A.replace(/\\"/g,'"')})},oh=/^-?\d*(\.\d+)?$/;class g0{string;type;constructor(h,$){if(this.string=h,this.type=$,!oh.test(h))throw Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](h){if(!h||typeof h!=="object")return!1;let $=h;return g0.prototype.isPrototypeOf(h)||$.type==="bigDecimal"&&oh.test($.string)}}function cU(h){return new g0(String(h),"bigDecimal")}var G$={},L1={};for(let h=0;h<256;h++){let $=h.toString(16).toLowerCase();if($.length===1)$=`0${$}`;G$[h]=$,L1[$]=h}function bU(h){if(h.length%2!==0)throw Error("Hex encoded strings must have an even number length");let $=new Uint8Array(h.length/2);for(let T=0;T<h.length;T+=2){let P=h.slice(T,T+2).toLowerCase();if(P in L1)$[T/2]=L1[P];else throw Error(`Cannot decode unrecognized sequence ${P} as hexadecimal`)}return $}function J$(h){let $="";for(let T=0;T<h.byteLength;T++)$+=G$[h[T]];return $}var yU=(h)=>{if(!h)return 0;if(typeof h==="string")return Buffer.byteLength(h);else if(typeof h.byteLength==="number")return h.byteLength;else if(typeof h.size==="number")return h.size;else if(typeof h.start==="number"&&typeof h.end==="number")return h.end+1-h.start;else if(h instanceof O1.ReadStream){if(h.path!=null)return O1.lstatSync(h.path).size;else if(typeof h.fd==="number")return O1.fstatSync(h.fd).size}throw Error(`Body Length computation failed for ${h}`)},V$=(h)=>{if(typeof h==="string")return p0(h);if(ArrayBuffer.isView(h))return new Uint8Array(h.buffer,h.byteOffset,h.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(h)},Q$=(h,$)=>(T,P)=>async(w)=>{let{response:I}=await T(w);try{let A=await $(I,h);return{response:I,output:A}}catch(A){if(Object.defineProperty(A,"$response",{value:I,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in A)){try{A.message+=`
@@ -15,4 +15,4 @@ ${M}\r
15
15
  `),M.push(`\r
16
16
  `)}M.push(null)}),M}async function lU(h,$){let T=0,P=[],w=h.getReader(),I=!1;while(!I){let{done:_,value:f}=await w.read();if(f)P.push(f),T+=f?.byteLength??0;if(T>=$)break;I=_}w.releaseLock();let A=new Uint8Array(Math.min($,T)),U=0;for(let _ of P){if(_.byteLength>A.byteLength-U){A.set(_.subarray(0,A.byteLength-U),U);break}else A.set(_,U);U+=_.length}return A}var oU=(h,$)=>{if(S(h))return lU(h,$);return new Promise((T,P)=>{let w=new aU;w.limit=$,h.pipe(w),h.on("error",(I)=>{w.end(),P(I)}),w.on("error",P),w.on("finish",function(){let I=new Uint8Array(Buffer.concat(this.buffers));T(I)})})},aU=class extends D.Writable{buffers=[];limit=1/0;bytesBuffered=0;_write($,T,P){if(this.buffers.push($),this.bytesBuffered+=$.byteLength??0,this.bytesBuffered>=this.limit){let w=this.bytesBuffered-this.limit,I=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=I.subarray(0,I.byteLength-w),this.emit("finish")}P()}},eU=(h)=>{if(typeof h==="string")return h;if(typeof h!=="object"||typeof h.byteOffset!=="number"||typeof h.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(h)},h_=(h)=>{let $=h.length/4*3;if(h.slice(-2)==="==")$-=2;else if(h.slice(-1)==="=")$--;let T=new ArrayBuffer($),P=new DataView(T);for(let w=0;w<h.length;w+=4){let I=0,A=0;for(let f=w,Y=w+3;f<=Y;f++)if(h[f]!=="="){if(!(h[f]in eh))throw TypeError(`Invalid character ${h[f]} in base64 string.`);I|=eh[h[f]]<<(Y-f)*r,A+=r}else I>>=r;let U=w/4*3;I>>=A%G0;let _=Math.floor(A/G0);for(let f=0;f<_;f++){let Y=(_-f-1)*G0;P.setUint8(U+f,(I&255<<Y)>>Y)}}return new Uint8Array(T)},$_=async(h)=>{if(typeof Blob==="function"&&h instanceof Blob||h.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await h.arrayBuffer());return T_(h)}return P_(h)};async function T_(h){let $=await w_(h),T=h_($);return new Uint8Array(T)}async function P_(h){let $=[],T=h.getReader(),P=!1,w=0;while(!P){let{done:U,value:_}=await T.read();if(_)$.push(_),w+=_.length;P=U}let I=new Uint8Array(w),A=0;for(let U of $)I.set(U,A),A+=U.length;return I}function w_(h){return new Promise(($,T)=>{let P=new FileReader;P.onloadend=()=>{if(P.readyState!==2)return T(Error("Reader aborted too early"));let w=P.result??"",I=w.indexOf(","),A=I>-1?I+1:w.length;$(w.substring(A))},P.onabort=()=>T(Error("Read aborted")),P.onerror=()=>T(P.error),P.readAsDataURL(h)})}var h$="The stream has already been transformed.",I_=(h)=>{if(!$$(h)&&!S(h)){let w=h?.__proto__?.constructor?.name||h;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${w}`)}let $=!1,T=async()=>{if($)throw Error(h$);return $=!0,await $_(h)},P=(w)=>{if(typeof w.stream!=="function")throw Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
17
17
  If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return w.stream()};return Object.assign(h,{transformToByteArray:T,transformToString:async(w)=>{let I=await T();if(w==="base64")return x$(I);else if(w==="hex")return J$(I);else if(w===void 0||w==="utf8"||w==="utf-8")return eU(I);else if(typeof TextDecoder==="function")return new TextDecoder(w).decode(I);else throw Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if($)throw Error(h$);if($=!0,$$(h))return P(h);else if(S(h))return h;else throw Error(`Cannot transform payload to web stream, got ${h}`)}})},$$=(h)=>typeof Blob==="function"&&h instanceof Blob;class K$ extends D.Writable{bufferedBytes=[];_write(h,$,T){this.bufferedBytes.push(h),T()}}var A_=(h)=>typeof ReadableStream==="function"&&h instanceof ReadableStream;async function U_(h){let $=[],T=h.getReader(),P=!1,w=0;while(!P){let{done:U,value:_}=await T.read();if(_)$.push(_),w+=_.length;P=U}let I=new Uint8Array(w),A=0;for(let U of $)I.set(U,A),A+=U.length;return I}var __=(h)=>{if(A_(h))return U_(h);return new Promise(($,T)=>{let P=new K$;h.pipe(P),h.on("error",(w)=>{P.end(),T(w)}),P.on("error",T),P.on("finish",function(){let w=new Uint8Array(Buffer.concat(this.bufferedBytes));$(w)})})},T$="The stream has already been transformed.",f_=(h)=>{if(!(h instanceof D.Readable))try{return I_(h)}catch(P){let w=h?.__proto__?.constructor?.name||h;throw Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${w}`)}let $=!1,T=async()=>{if($)throw Error(T$);return $=!0,await __(h)};return Object.assign(h,{transformToByteArray:T,transformToString:async(P)=>{let w=await T();if(P===void 0||Buffer.isEncoding(P))return u(w.buffer,w.byteOffset,w.byteLength).toString(P);else return new TextDecoder(P).decode(w)},transformToWebStream:()=>{if($)throw Error(T$);if(h.readableFlowing!==null)throw Error("The stream has been consumed by other callbacks.");if(typeof D.Readable.toWeb!=="function")throw Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return $=!0,D.Readable.toWeb(h)}})};async function M_(h){if(typeof h.stream==="function")h=h.stream();return h.tee()}async function Y_(h){if(S(h)||N$(h))return M_(h);let $=new D.PassThrough,T=new D.PassThrough;return h.pipe($),h.pipe(T),[$,T]}class B$ extends mA(I$,p0,K1,w$){}var X_=H1.getRandomValues,z$=dA(X_),G_=z$;J_.ChecksumStream=E$;J_.Hash=O$;J_.LazyJsonString=g;J_.NumericValue=g0;J_.Uint8ArrayBlobAdapter=B$;J_._parseEpochTimestamp=FU;J_._parseRfc3339DateTimeWithOffset=sU;J_._parseRfc7231DateTime=SU;J_.calculateBodyLength=yU;J_.copyDocumentWithTransform=vA;J_.createBufferedReadable=nU;J_.createChecksumStream=tU;J_.dateToUtcString=UU;J_.deserializerMiddleware=Q$;J_.deserializerMiddlewareOption=R$;J_.expectBoolean=rA;J_.expectByte=D1;J_.expectFloat32=c0;J_.expectInt=uA;J_.expectInt32=x1;J_.expectLong=V0;J_.expectNonNull=lA;J_.expectNumber=J0;J_.expectObject=A$;J_.expectShort=W1;J_.expectString=oA;J_.expectUnion=aA;J_.fromArrayBuffer=u;J_.fromBase64=w$;J_.fromHex=bU;J_.fromString=k0;J_.fromUtf8=p0;J_.generateIdempotencyToken=G_;J_.getAwsChunkedEncodingStream=iU;J_.getSerdePlugin=kU;J_.handleFloat=$U;J_.headStream=oU;J_.isArrayBuffer=P$;J_.isBlob=N$;J_.isReadableStream=S;J_.limitedParseDouble=F1;J_.limitedParseFloat=TU;J_.limitedParseFloat32=PU;J_.logger=Q0;J_.nv=cU;J_.parseBoolean=tA;J_.parseEpochTimestamp=QU;J_.parseRfc3339DateTime=fU;J_.parseRfc3339DateTimeWithOffset=YU;J_.parseRfc7231DateTime=VU;J_.quoteHeader=WU;J_.sdkStreamMixin=f_;J_.serializerMiddleware=Z$;J_.serializerMiddlewareOption=q$;J_.splitEvery=jU;J_.splitHeader=CU;J_.splitStream=Y_;J_.strictParseByte=M$;J_.strictParseDouble=z1;J_.strictParseFloat=eA;J_.strictParseFloat32=U$;J_.strictParseInt=wU;J_.strictParseInt32=IU;J_.strictParseLong=f$;J_.strictParseShort=i;J_.toBase64=K1;J_.toHex=J$;J_.toUint8Array=V$;J_.toUtf8=I$;J_.v4=z$});
18
- export{h0 as rf,m as sf,d1 as tf,$1 as uf,Bh as vf,lh as wf,Ff as xf};
18
+ export{h0 as sf,m as tf,d1 as uf,$1 as vf,Bh as wf,lh as xf,Ff as yf};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ed as y,Gd as T,Hd as t,Id as O,Jd as l,Ld as v,Md as Q,Nd as X,Od as J}from"./chunk-9jncnqbj.js";import"./chunk-754varfr.js";import{Qd as w}from"./chunk-g4qwkcdv.js";import{Uf as f}from"./chunk-qe0sfafy.js";import{Pg as Y,Qg as mt,Rg as pt,Sg as st,Tg as et,Ug as ft,Vg as E,uh as q}from"./chunk-87x607rz.js";import{wh as Mt}from"./chunk-9w5rx0fb.js";import"./chunk-wb69d52j.js";import"./chunk-pfn1db1m.js";import"./chunk-h56jxxvj.js";import"./chunk-x36jhtex.js";import"./chunk-c1ypbbka.js";import"./chunk-qnqqrvvs.js";import{Ej as L,el as F,yj as nt}from"./chunk-3f054f69.js";import"./chunk-26qt44f1.js";import{Ol as $}from"./chunk-0ke6x10y.js";import"./chunk-meaybtcc.js";import"./chunk-rmsqb6r4.js";import"./chunk-3j7skhxg.js";import{ln as P,mn as h}from"./chunk-4pssh5d3.js";import"./chunk-9dpn4792.js";import"./chunk-pf7cj4jd.js";import"./chunk-9r6bvkp4.js";import"./chunk-amx3x4kd.js";import"./chunk-b50t4jc5.js";import"./chunk-nf8gkxbk.js";import"./chunk-zny2qaqa.js";import"./chunk-9va5eh9s.js";import"./chunk-mkyrg7gt.js";import"./chunk-7v4fzkbb.js";import"./chunk-cqtkxwd8.js";import"./chunk-pk0tytcm.js";import"./chunk-ww8ear80.js";import"./chunk-kyny0t2g.js";import"./chunk-3e8p4a3y.js";import"./chunk-qpm5afdz.js";import"./chunk-jtrcnpm7.js";import"./chunk-gaen9ya4.js";import"./chunk-dd11kryy.js";import"./chunk-msm3r7ny.js";import"./chunk-e075v4e9.js";import"./chunk-jv98gw88.js";import"./chunk-jhq5bvhs.js";import"./chunk-xw283h2r.js";import"./chunk-8cty50g7.js";import{ss as A,xr as g}from"./chunk-v7ah9gg0.js";import{Ws as D}from"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import{TG as a}from"./chunk-ag9thqkv.js";import"./chunk-qnv2v02g.js";import"./chunk-7fx6x8x9.js";import{dO as ut}from"./chunk-0rmmg3g4.js";import W from"path";function G(o){switch(o){case"authenticated":return"\u2713";case"expired":return"\u26A0";case"not_authenticated":return"\u2717"}}function H(o){switch(o){case"authenticated":return"authenticated";case"expired":return"expired";case"not_authenticated":return"not authenticated"}}function N(o){return typeof o==="object"&&o!==null&&"type"in o}function k(o){return N(o)&&o.type==="remote"}function B(o){return Object.entries(o.mcp??{}).filter((e)=>N(e[1]))}function U(o,e){let r=o.mcp_origins?.[e];if(!r)return"qitqode";let i=A.Path.home,m=r.source===i?"~":r.source.startsWith(i+W.sep)?"~"+r.source.slice(i.length):r.source;return`${r.type}:${m}`}function C(o){return B(o).filter((e)=>k(e[1])&&e[1].oauth!==!1)}async function I(){return q.runPromise(a.gen(function*(){let o=yield*F.Service,e=yield*E.Service,r=yield*o.get(),i=yield*e.status(),m=yield*a.all(Object.fromEntries(B(r).map(([p])=>[p,e.hasStoredTokens(p)])),{concurrency:"unbounded"});return{config:r,statuses:i,stored:m}}))}async function S(){return q.runPromise(a.gen(function*(){let o=yield*F.Service,e=yield*E.Service,r=yield*o.get(),i=yield*a.all(Object.fromEntries(C(r).map(([m])=>[m,e.getAuthStatus(m)])),{concurrency:"unbounded"});return{config:r,auth:i}}))}async function V(o,e=!1){let r=[W.join(o,"qitqode.json"),W.join(o,"qitqode.jsonc")];if(!e)r.push(W.join(o,".qitqode","qitqode.json"),W.join(o,".qitqode","qitqode.jsonc"));for(let i of r)if(await D.exists(i))return i;return r[0]}async function R(o,e,r){let i="{}";if(await D.exists(r))i=await D.readText(r);let m=P(i,["mcp",o],e,{formattingOptions:{tabSize:2,insertSpaces:!0}});return await D.write(r,h(i,m)),r}var tt=ut(Mt(),1);function yt(o){let e=tt.parse(o);if(!e.every((r)=>typeof r==="string"))throw Error("Shell operators are not supported; enter only the command and its arguments");if(e.length===0)throw Error("Command is required");return e}var ot=w({command:"add",describe:"add an MCP server",async handler(){await $.provide({directory:process.cwd(),async fn(){f.empty(),O("Add MCP server");let o=$.project,[e,r]=await Promise.all([V($.worktree),V(A.Path.config,!0)]),i=r;if(o.vcs==="git"){let c=await X({message:"Location",options:[{label:"Current project",value:e,hint:e},{label:"Global",value:r,hint:r}]});if(y(c))throw new f.CancelledError;i=c}let m=await J({message:"Enter MCP server name",validate:(c)=>c&&c.length>0?void 0:"Required"});if(y(m))throw new f.CancelledError;let p=await X({message:"Select MCP server type",options:[{label:"Local",value:"local",hint:"Run a local command"},{label:"Remote",value:"remote",hint:"Connect to a remote URL"}]});if(y(p))throw new f.CancelledError;if(p==="local"){let c=await J({message:"Enter command to run",placeholder:"e.g., qode x @modelcontextprotocol/server-filesystem",validate:(s)=>s&&s.length>0?void 0:"Required"});if(y(c))throw new f.CancelledError;let u;try{u=yt(c)}catch(s){t.error(s instanceof Error?s.message:"Invalid command"),l("MCP server was not added");return}await R(m,{type:"local",command:u},i),t.success(`MCP server "${m}" added to ${i}`),l("MCP server added successfully");return}if(p==="remote"){let c=await J({message:"Enter MCP server URL",placeholder:"e.g., https://example.com/mcp",validate:(s)=>{if(!s)return"Required";if(s.length===0)return"Required";return URL.canParse(s)?void 0:"Invalid URL"}});if(y(c))throw new f.CancelledError;let u=await T({message:"Does this server require OAuth authentication?",initialValue:!1});if(y(u))throw new f.CancelledError;let n;if(u){let s=await T({message:"Do you have a pre-registered client ID?",initialValue:!1});if(y(s))throw new f.CancelledError;if(s){let d=await J({message:"Enter client ID",validate:(j)=>j&&j.length>0?void 0:"Required"});if(y(d))throw new f.CancelledError;let M=await T({message:"Do you have a client secret?",initialValue:!1});if(y(M))throw new f.CancelledError;let _;if(M){let j=await v({message:"Enter client secret"});if(y(j))throw new f.CancelledError;_=j}n={type:"remote",url:c,oauth:{clientId:d,..._&&{clientSecret:_}}}}else n={type:"remote",url:c,oauth:{}}}else n={type:"remote",url:c,oauth:!1};await R(m,n,i),t.success(`MCP server "${m}" added to ${i}`)}l("MCP server added successfully")}})}});var it=w({command:"list",aliases:["ls"],describe:"list MCP servers and their status",async handler(){await $.provide({directory:process.cwd(),async fn(){f.empty(),O("MCP Servers");let{config:o,statuses:e,stored:r}=await I(),i=B(o);if(i.length===0){t.warn("No MCP servers configured"),l("Add servers with: qode mcp add");return}for(let[m,p]of i){let c=e[m],u=k(p)&&p.oauth!==!1,n=r[m],s,d,M="";if(!c)s="\u25CB",d="not initialized";else if(c.status==="connected"){if(s="\u2713",d="connected",u&&n)M=" (OAuth)"}else if(c.status==="disabled")s="\u25CB",d="disabled";else if(c.status==="pending")s="\u25CB",d="pending approval";else if(c.status==="needs_auth")s="\u26A0",d="needs authentication";else if(c.status==="needs_client_registration")s="\u2717",d="needs client registration",M=`
2
+ import{Fd as y,Hd as T,Id as t,Jd as O,Kd as l,Md as v,Nd as Q,Od as X,Pd as J}from"./chunk-jje0srjq.js";import"./chunk-27yxgy03.js";import{Rd as w}from"./chunk-yajd975f.js";import{Vf as f}from"./chunk-7ppd2phw.js";import{Ng as Y,Og as mt,Pg as pt,Qg as st,Rg as et,Sg as ft,Tg as E,hh as q}from"./chunk-wrw22v0a.js";import{Eh as Mt}from"./chunk-h7yya9pv.js";import"./chunk-p68rwmhc.js";import"./chunk-0a0vat1h.js";import"./chunk-z8v2tsz2.js";import"./chunk-j8efst22.js";import"./chunk-a1pw9r6f.js";import"./chunk-d5bxan80.js";import{Dl as F,Xj as nt,bk as L}from"./chunk-gsvdt4kq.js";import"./chunk-b7mg883n.js";import{lm as $}from"./chunk-90zd5rss.js";import"./chunk-17psxhve.js";import"./chunk-nj4d554m.js";import"./chunk-m2x9xhha.js";import{hp as P,ip as h}from"./chunk-2wcv3sq5.js";import"./chunk-a1p2f16h.js";import"./chunk-nt4e3em9.js";import"./chunk-ak5ngp50.js";import"./chunk-v965rsr8.js";import"./chunk-1sgby720.js";import"./chunk-jg7s9rqz.js";import"./chunk-4tbwha3m.js";import"./chunk-m612agnk.js";import"./chunk-yq3m8190.js";import"./chunk-btz9jvec.js";import"./chunk-cqtkxwd8.js";import"./chunk-fkgv2hqd.js";import"./chunk-zyhdxggp.js";import"./chunk-q6ztpfcs.js";import"./chunk-jm1ptn8n.js";import"./chunk-c5e6sk9c.js";import"./chunk-m02zt1a3.js";import"./chunk-vg2fmyje.js";import"./chunk-c0796v8j.js";import"./chunk-njnwdgvd.js";import"./chunk-4qqkqrn9.js";import"./chunk-j6emx6jn.js";import"./chunk-be216spx.js";import"./chunk-12bssxd4.js";import"./chunk-k9b1jcqw.js";import{ou as A,tt as g}from"./chunk-zxaaxb99.js";import{Su as D}from"./chunk-whxjkz9a.js";import"./chunk-89v6dgpp.js";import"./chunk-k309zez0.js";import"./chunk-09kba1hg.js";import"./chunk-t12xrrfr.js";import"./chunk-phxrg7aw.js";import{PI as a}from"./chunk-snm5q21k.js";import"./chunk-xpc2zgj7.js";import"./chunk-qjjch1zt.js";import{$P as ut}from"./chunk-aztre27e.js";import W from"path";function G(o){switch(o){case"authenticated":return"\u2713";case"expired":return"\u26A0";case"not_authenticated":return"\u2717"}}function H(o){switch(o){case"authenticated":return"authenticated";case"expired":return"expired";case"not_authenticated":return"not authenticated"}}function N(o){return typeof o==="object"&&o!==null&&"type"in o}function k(o){return N(o)&&o.type==="remote"}function B(o){return Object.entries(o.mcp??{}).filter((e)=>N(e[1]))}function U(o,e){let r=o.mcp_origins?.[e];if(!r)return"qitqode";let i=A.Path.home,m=r.source===i?"~":r.source.startsWith(i+W.sep)?"~"+r.source.slice(i.length):r.source;return`${r.type}:${m}`}function C(o){return B(o).filter((e)=>k(e[1])&&e[1].oauth!==!1)}async function I(){return q.runPromise(a.gen(function*(){let o=yield*F.Service,e=yield*E.Service,r=yield*o.get(),i=yield*e.status(),m=yield*a.all(Object.fromEntries(B(r).map(([p])=>[p,e.hasStoredTokens(p)])),{concurrency:"unbounded"});return{config:r,statuses:i,stored:m}}))}async function S(){return q.runPromise(a.gen(function*(){let o=yield*F.Service,e=yield*E.Service,r=yield*o.get(),i=yield*a.all(Object.fromEntries(C(r).map(([m])=>[m,e.getAuthStatus(m)])),{concurrency:"unbounded"});return{config:r,auth:i}}))}async function V(o,e=!1){let r=[W.join(o,"qitqode.json"),W.join(o,"qitqode.jsonc")];if(!e)r.push(W.join(o,".qitqode","qitqode.json"),W.join(o,".qitqode","qitqode.jsonc"));for(let i of r)if(await D.exists(i))return i;return r[0]}async function R(o,e,r){let i="{}";if(await D.exists(r))i=await D.readText(r);let m=P(i,["mcp",o],e,{formattingOptions:{tabSize:2,insertSpaces:!0}});return await D.write(r,h(i,m)),r}var tt=ut(Mt(),1);function yt(o){let e=tt.parse(o);if(!e.every((r)=>typeof r==="string"))throw Error("Shell operators are not supported; enter only the command and its arguments");if(e.length===0)throw Error("Command is required");return e}var ot=w({command:"add",describe:"add an MCP server",async handler(){await $.provide({directory:process.cwd(),async fn(){f.empty(),O("Add MCP server");let o=$.project,[e,r]=await Promise.all([V($.worktree),V(A.Path.config,!0)]),i=r;if(o.vcs==="git"){let c=await X({message:"Location",options:[{label:"Current project",value:e,hint:e},{label:"Global",value:r,hint:r}]});if(y(c))throw new f.CancelledError;i=c}let m=await J({message:"Enter MCP server name",validate:(c)=>c&&c.length>0?void 0:"Required"});if(y(m))throw new f.CancelledError;let p=await X({message:"Select MCP server type",options:[{label:"Local",value:"local",hint:"Run a local command"},{label:"Remote",value:"remote",hint:"Connect to a remote URL"}]});if(y(p))throw new f.CancelledError;if(p==="local"){let c=await J({message:"Enter command to run",placeholder:"e.g., qode x @modelcontextprotocol/server-filesystem",validate:(s)=>s&&s.length>0?void 0:"Required"});if(y(c))throw new f.CancelledError;let u;try{u=yt(c)}catch(s){t.error(s instanceof Error?s.message:"Invalid command"),l("MCP server was not added");return}await R(m,{type:"local",command:u},i),t.success(`MCP server "${m}" added to ${i}`),l("MCP server added successfully");return}if(p==="remote"){let c=await J({message:"Enter MCP server URL",placeholder:"e.g., https://example.com/mcp",validate:(s)=>{if(!s)return"Required";if(s.length===0)return"Required";return URL.canParse(s)?void 0:"Invalid URL"}});if(y(c))throw new f.CancelledError;let u=await T({message:"Does this server require OAuth authentication?",initialValue:!1});if(y(u))throw new f.CancelledError;let n;if(u){let s=await T({message:"Do you have a pre-registered client ID?",initialValue:!1});if(y(s))throw new f.CancelledError;if(s){let d=await J({message:"Enter client ID",validate:(j)=>j&&j.length>0?void 0:"Required"});if(y(d))throw new f.CancelledError;let M=await T({message:"Do you have a client secret?",initialValue:!1});if(y(M))throw new f.CancelledError;let _;if(M){let j=await v({message:"Enter client secret"});if(y(j))throw new f.CancelledError;_=j}n={type:"remote",url:c,oauth:{clientId:d,..._&&{clientSecret:_}}}}else n={type:"remote",url:c,oauth:{}}}else n={type:"remote",url:c,oauth:!1};await R(m,n,i),t.success(`MCP server "${m}" added to ${i}`)}l("MCP server added successfully")}})}});var it=w({command:"list",aliases:["ls"],describe:"list MCP servers and their status",async handler(){await $.provide({directory:process.cwd(),async fn(){f.empty(),O("MCP Servers");let{config:o,statuses:e,stored:r}=await I(),i=B(o);if(i.length===0){t.warn("No MCP servers configured"),l("Add servers with: qode mcp add");return}for(let[m,p]of i){let c=e[m],u=k(p)&&p.oauth!==!1,n=r[m],s,d,M="";if(!c)s="\u25CB",d="not initialized";else if(c.status==="connected"){if(s="\u2713",d="connected",u&&n)M=" (OAuth)"}else if(c.status==="disabled")s="\u25CB",d="disabled";else if(c.status==="pending")s="\u25CB",d="pending approval";else if(c.status==="needs_auth")s="\u26A0",d="needs authentication";else if(c.status==="needs_client_registration")s="\u2717",d="needs client registration",M=`
3
3
  `+c.error;else s="\u2717",d="failed",M=`
4
4
  `+c.error;let _=p.type==="remote"?L.redactString(p.url):L.redactCommand(p.command).join(" ");t.info(`${s} ${m} ${f.Style.TEXT_DIM}${d} ${U(o,m)}${M}
5
5
  ${f.Style.TEXT_DIM}${_}`)}l(`${i.length} server(s)`)}})}});var dt=w({command:"auth [name]",describe:"authenticate with an OAuth-enabled MCP server",builder:(o)=>o.positional("name",{describe:"name of the MCP server",type:"string"}).command(ct),async handler(o){await $.provide({directory:process.cwd(),async fn(){f.empty(),O("MCP OAuth Authentication");let{config:e,auth:r}=await S(),i=e.mcp??{},m=C(e);if(m.length===0){t.warn("No OAuth-capable MCP servers configured"),t.info("Remote MCP servers support OAuth by default. Add a remote server in qitqode.json:"),t.info(`
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import"./chunk-aztre27e.js";var h="./tree-sitter-typescript-zxjzwt75.wasm";export{h as default};