gemi 0.4.69 → 0.4.71

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 (763) hide show
  1. package/dist/{chunk-f5a531a49e7591bd.js → chunk-2895a97b65e7107b.js} +1 -1
  2. package/dist/{chunk-8884e59809021f5f.js → chunk-2dd61d279d9f0b13.js} +1 -1
  3. package/dist/{chunk-100b76ab0ca3e14d.js → chunk-448c9eceacddef90.js} +1 -1
  4. package/dist/{chunk-a4b231bf6d911e01.js → chunk-466213c5585251ad.js} +1 -1
  5. package/dist/{chunk-edfc3362e0d21dab.js → chunk-4b8da0fabb3539db.js} +5 -5
  6. package/dist/{chunk-1bd88dc9c4475e1d.js → chunk-4bc3b71775040cb9.js} +1 -1
  7. package/dist/{chunk-00935722c776a294.js → chunk-af7d1951242b1c6e.js} +1 -1
  8. package/dist/{chunk-1d2c062034e3ed2d.js → chunk-b6a64bf9af2e91be.js} +2 -2
  9. package/dist/{chunk-a35eb04f0c7c9944.js → chunk-b8176bf532f59485.js} +1 -1
  10. package/dist/{chunk-545989119755857f.js → chunk-cca33e85bf87b3b3.js} +1 -1
  11. package/dist/{chunk-a1efc60864e65ef2.js → chunk-de75d134f236f4bb.js} +1 -1
  12. package/dist/{chunk-107dbe753ed86605.js → chunk-e344c95f8ae7a124.js} +2 -2
  13. package/dist/{chunk-f5200f44395bf49d.js → chunk-e565da7343a33b65.js} +2 -2
  14. package/dist/{chunk-3330ff12936f5a2e.js → chunk-e912bf7c7a0e988a.js} +1 -1
  15. package/dist/{chunk-210fc3731e7d2299.js → chunk-f22ac1ec6c3f782b.js} +1 -1
  16. package/dist/{chunk-1b3b7c2c9ae041ca.js → chunk-fe65548818651cb5.js} +1 -1
  17. package/dist/client/ClientRouterContext.d.ts.map +1 -1
  18. package/dist/client/HttpReload.d.ts.map +1 -1
  19. package/dist/client/index.js +19 -5
  20. package/dist/server/index.js +1 -1
  21. package/dist/storage/index.js +1 -1
  22. package/dist/vite/{index-D9QWnghl.mjs → index-BbySvAwL.mjs} +3 -3
  23. package/dist/vite/index.mjs +1 -1
  24. package/dist/vite/{typescript-DADBvwYC.mjs → typescript-CeZcXBr-.mjs} +1 -1
  25. package/package.json +1 -1
  26. package/dist/app/App.test.d.ts +0 -20
  27. package/dist/app/App.test.d.ts.map +0 -1
  28. package/dist/app/createComponentTree.test.d.ts +0 -2
  29. package/dist/app/createComponentTree.test.d.ts.map +0 -1
  30. package/dist/app/createFlatApiRoutes.test.d.ts +0 -2
  31. package/dist/app/createFlatApiRoutes.test.d.ts.map +0 -1
  32. package/dist/app/createFlatViewRoutes.test.d.ts +0 -2
  33. package/dist/app/createFlatViewRoutes.test.d.ts.map +0 -1
  34. package/dist/app/createRouteManifest.test.d.ts +0 -2
  35. package/dist/app/createRouteManifest.test.d.ts.map +0 -1
  36. package/dist/chunk-00234eac874c2722.js +0 -2
  37. package/dist/chunk-00cb9f80352454dd.js +0 -1
  38. package/dist/chunk-00e9dad0734d9761.js +0 -2
  39. package/dist/chunk-00ecc27f03e2e84a.js +0 -2
  40. package/dist/chunk-00f16704831dd8b0.js +0 -2
  41. package/dist/chunk-01052ff9d1c07ef8.js +0 -2
  42. package/dist/chunk-0113570164c56f57.js +0 -2
  43. package/dist/chunk-0130e95410edb036.js +0 -18
  44. package/dist/chunk-01e07763e3e32710.js +0 -2
  45. package/dist/chunk-01e1579811beb424.js +0 -2
  46. package/dist/chunk-01ffccc19e8ef862.js +0 -3
  47. package/dist/chunk-02118fc60206588d.js +0 -2
  48. package/dist/chunk-0306d8fccec5104e.js +0 -2
  49. package/dist/chunk-030b4fb955329860.js +0 -16
  50. package/dist/chunk-03227f4a68e038f4.js +0 -2
  51. package/dist/chunk-03a72299591d45a7.js +0 -18
  52. package/dist/chunk-03c8e645c994d40a.js +0 -2
  53. package/dist/chunk-04aa62521338e3ab.js +0 -18
  54. package/dist/chunk-04d6b88ed6d3f076.js +0 -6
  55. package/dist/chunk-0557700bf68e85d4.js +0 -18
  56. package/dist/chunk-05fa767ab29abb0f.js +0 -2
  57. package/dist/chunk-061d95b15c00e38b.js +0 -9
  58. package/dist/chunk-069fcad61c8841dc.js +0 -1
  59. package/dist/chunk-06b83143607ebdc8.js +0 -6
  60. package/dist/chunk-06eebef7eb056baa.js +0 -2
  61. package/dist/chunk-073f5b81e98d91fe.js +0 -3
  62. package/dist/chunk-08539d08fa7362f7.js +0 -2
  63. package/dist/chunk-088b47e135832170.js +0 -1
  64. package/dist/chunk-088ed28ebed2b009.js +0 -5
  65. package/dist/chunk-08e9ab1091d7383e.js +0 -3
  66. package/dist/chunk-0909c7f6b64b8806.js +0 -2
  67. package/dist/chunk-095848ccb81718bf.js +0 -2
  68. package/dist/chunk-09dd89e1046786a5.js +0 -2
  69. package/dist/chunk-0a6614fbd65524af.js +0 -2
  70. package/dist/chunk-0a9ae42aae6f406e.js +0 -2
  71. package/dist/chunk-0b1b4e4e251ffe01.js +0 -2
  72. package/dist/chunk-0b46ec66d2c3d5f3.js +0 -2
  73. package/dist/chunk-0b5fb4e0c7de8316.js +0 -2
  74. package/dist/chunk-0b7a7410fce0b12e.js +0 -9
  75. package/dist/chunk-0b8dc3d1ff94a0fa.js +0 -6
  76. package/dist/chunk-0b99ba34351bde91.js +0 -3
  77. package/dist/chunk-0d0f764773c0f6b8.js +0 -2
  78. package/dist/chunk-0d8ab901365b9696.js +0 -2
  79. package/dist/chunk-0db33ac43bd1d504.js +0 -2
  80. package/dist/chunk-0de36a7e51fbd11b.js +0 -9
  81. package/dist/chunk-0e125593337a68aa.js +0 -18
  82. package/dist/chunk-0e3473f7e43f4876.js +0 -2
  83. package/dist/chunk-0e99fe5c976c8ea2.js +0 -6
  84. package/dist/chunk-0f8e80862546cbc5.js +0 -18
  85. package/dist/chunk-0ffc38ed09847e35.js +0 -2
  86. package/dist/chunk-1062b3156a49fabc.js +0 -2
  87. package/dist/chunk-1084614a350762fb.js +0 -2
  88. package/dist/chunk-10a623a23a65bb20.js +0 -18
  89. package/dist/chunk-1109657ed53fbdc9.js +0 -2
  90. package/dist/chunk-11323d7a5d9219ce.js +0 -2
  91. package/dist/chunk-1171d9afbbfe827b.js +0 -2
  92. package/dist/chunk-119ffcaf1c463b8d.js +0 -6
  93. package/dist/chunk-11a75566ff74db17.js +0 -6
  94. package/dist/chunk-11d1336f6de61f45.js +0 -16
  95. package/dist/chunk-11fb7f7f30378785.js +0 -2
  96. package/dist/chunk-12b4f44a2beae19b.js +0 -2
  97. package/dist/chunk-12ca7224eb6ccf72.js +0 -9
  98. package/dist/chunk-132c71db605759c9.js +0 -2
  99. package/dist/chunk-1334ee957ff9058c.js +0 -2
  100. package/dist/chunk-136896e8038083a1.js +0 -2
  101. package/dist/chunk-13801a8f811f0461.js +0 -2
  102. package/dist/chunk-13e45ce3460f6375.js +0 -2
  103. package/dist/chunk-14d5491e97673c7d.js +0 -2
  104. package/dist/chunk-14e60554a2e78f4a.js +0 -2
  105. package/dist/chunk-159f5b922269aef1.js +0 -2
  106. package/dist/chunk-15e9771e524c5726.js +0 -2
  107. package/dist/chunk-16a63b2fee0ce9e2.js +0 -2
  108. package/dist/chunk-16dbe3a15379140b.js +0 -2
  109. package/dist/chunk-176e5ded5ed33d4d.js +0 -2
  110. package/dist/chunk-1838696dc4e7a115.js +0 -2
  111. package/dist/chunk-1874b66d572fb0db.js +0 -6
  112. package/dist/chunk-1875b98b6a064557.js +0 -2
  113. package/dist/chunk-187a09f46e2b36e5.js +0 -2
  114. package/dist/chunk-18c32b54097c580e.js +0 -2
  115. package/dist/chunk-18d87123ae525263.js +0 -2
  116. package/dist/chunk-1900e90c372bb1d6.js +0 -2
  117. package/dist/chunk-1976eef63d2e56d5.js +0 -18
  118. package/dist/chunk-197fca66ec324ed9.js +0 -2
  119. package/dist/chunk-1ad1795e55abfdb5.js +0 -2
  120. package/dist/chunk-1b0afbf1baeeaa37.js +0 -2
  121. package/dist/chunk-1b71d04a15bfa432.js +0 -2
  122. package/dist/chunk-1b8acf308a3dc9ec.js +0 -1
  123. package/dist/chunk-1c439804a4c5f8e7.js +0 -18
  124. package/dist/chunk-1cc0d1072ee4a92b.js +0 -2
  125. package/dist/chunk-1d6e287ca9c14fef.js +0 -9
  126. package/dist/chunk-1efe790f8b4ad86d.js +0 -2
  127. package/dist/chunk-1fab30ab853c48cc.js +0 -2
  128. package/dist/chunk-2081b862587086df.js +0 -2
  129. package/dist/chunk-216cc6dcf17534ba.js +0 -2
  130. package/dist/chunk-21b1f7ac5f75cd26.js +0 -2
  131. package/dist/chunk-21e105fb2b3d36d7.js +0 -799
  132. package/dist/chunk-21fe96d1a3bb5a27.js +0 -2
  133. package/dist/chunk-223b0aac9e62386a.js +0 -2
  134. package/dist/chunk-226243dd851d2050.js +0 -2
  135. package/dist/chunk-22773aec8cc230c6.js +0 -6
  136. package/dist/chunk-2279c382943fca51.js +0 -2
  137. package/dist/chunk-22ec1973752a5488.js +0 -2
  138. package/dist/chunk-2335866508ec8b1b.js +0 -2
  139. package/dist/chunk-23c287376e277e1d.js +0 -6
  140. package/dist/chunk-241584e48397dda8.js +0 -2
  141. package/dist/chunk-24e01cba9fc81ed1.js +0 -2
  142. package/dist/chunk-25dd80c6d9144f89.js +0 -2
  143. package/dist/chunk-2665dffd37ead1d9.js +0 -2
  144. package/dist/chunk-2672477bf396bad8.js +0 -2
  145. package/dist/chunk-269dd2cd89aa1c32.js +0 -2
  146. package/dist/chunk-26a5c9db5d17f5e7.js +0 -3
  147. package/dist/chunk-26d58ddc3a89234f.js +0 -2
  148. package/dist/chunk-27484e5ca3244aea.js +0 -6
  149. package/dist/chunk-281226b6c79ebf8b.js +0 -2
  150. package/dist/chunk-285299d784985340.js +0 -3
  151. package/dist/chunk-28bb1e70f39736ee.js +0 -2
  152. package/dist/chunk-28e02c9b9c46a167.js +0 -2
  153. package/dist/chunk-293d8be91a9ad4f9.js +0 -2
  154. package/dist/chunk-29a0dbe3c8eb87d4.js +0 -6
  155. package/dist/chunk-29bc27c5e126c304.js +0 -18
  156. package/dist/chunk-29c46abebbc0f09b.js +0 -2
  157. package/dist/chunk-2a0d1475ac05027d.js +0 -2
  158. package/dist/chunk-2a0e8565f874d787.js +0 -18
  159. package/dist/chunk-2a101fb25d52469b.js +0 -2
  160. package/dist/chunk-2a328e3beda74e4f.js +0 -2
  161. package/dist/chunk-2a48e0098ccd4249.js +0 -2
  162. package/dist/chunk-2a5b4dfab2e26e21.js +0 -1
  163. package/dist/chunk-2b2764983015552e.js +0 -2
  164. package/dist/chunk-2b3eabd01b2ae3f8.js +0 -2
  165. package/dist/chunk-2bfbc777c6995d9a.js +0 -18
  166. package/dist/chunk-2cf271e24c26b0ee.js +0 -2
  167. package/dist/chunk-2db6c9bb69bb27aa.js +0 -1
  168. package/dist/chunk-2e34b856e195c353.js +0 -2
  169. package/dist/chunk-2e447b50094b2862.js +0 -2
  170. package/dist/chunk-2ec287222364c6b6.js +0 -2
  171. package/dist/chunk-2ecc077efab285b4.js +0 -2
  172. package/dist/chunk-2f6867d08b95f2d2.js +0 -2
  173. package/dist/chunk-2f7091b9e4f728c7.js +0 -2
  174. package/dist/chunk-2f7aac67f16768a5.js +0 -1
  175. package/dist/chunk-3042abeb18cf180e.js +0 -2
  176. package/dist/chunk-30622b4547786346.js +0 -2
  177. package/dist/chunk-30f854fb2ba73268.js +0 -2
  178. package/dist/chunk-322e991c2b56a79d.js +0 -2
  179. package/dist/chunk-3258ba57992f25bb.js +0 -6
  180. package/dist/chunk-328c98321c6ba3d6.js +0 -2
  181. package/dist/chunk-32af3a3a1c95157f.js +0 -2
  182. package/dist/chunk-32f06f9ad00aaabd.js +0 -2
  183. package/dist/chunk-32f3d5e11b4bc87d.js +0 -2
  184. package/dist/chunk-339dd63e93f196b7.js +0 -16
  185. package/dist/chunk-345f66382cf35683.js +0 -2
  186. package/dist/chunk-34786cd9bc9be20b.js +0 -18
  187. package/dist/chunk-3567e8e424a60c99.js +0 -18
  188. package/dist/chunk-35ab4be8ca6c67ee.js +0 -2
  189. package/dist/chunk-361f806684fe532e.js +0 -6
  190. package/dist/chunk-36ab979dae2a2094.js +0 -2
  191. package/dist/chunk-36b8e37ca93fcc67.js +0 -2
  192. package/dist/chunk-370389a68668658a.js +0 -2
  193. package/dist/chunk-3728fa21e6931333.js +0 -2
  194. package/dist/chunk-378a050132886d17.js +0 -2
  195. package/dist/chunk-38237d1b01b0db25.js +0 -3
  196. package/dist/chunk-382a513747a9aa52.js +0 -6
  197. package/dist/chunk-38fc9d258dbe62fd.js +0 -18
  198. package/dist/chunk-3a3092db69408490.js +0 -2
  199. package/dist/chunk-3a9fcddbd219223b.js +0 -3
  200. package/dist/chunk-3ab807ceccde81f3.js +0 -3
  201. package/dist/chunk-3abb49bba3da7231.js +0 -1
  202. package/dist/chunk-3aecba8553e036bf.js +0 -6
  203. package/dist/chunk-3afa6cad1106f55a.js +0 -2
  204. package/dist/chunk-3b235fc8816ff5e6.js +0 -2
  205. package/dist/chunk-3b6df70b3d01d442.js +0 -3
  206. package/dist/chunk-3bd48fb5397a155b.js +0 -5
  207. package/dist/chunk-3bedef94ef8dba4a.js +0 -2
  208. package/dist/chunk-3bf6f8c8e8589e3d.js +0 -2
  209. package/dist/chunk-3c83d6762f7e56b3.js +0 -2
  210. package/dist/chunk-3cbc1c9cdc091b43.js +0 -2
  211. package/dist/chunk-3d7556bb2f665f61.js +0 -2
  212. package/dist/chunk-3dbf073642b377eb.js +0 -1
  213. package/dist/chunk-3e3078cae755e834.js +0 -2
  214. package/dist/chunk-3f1eaa4b49aa9a15.js +0 -3
  215. package/dist/chunk-40111275eef9f7b3.js +0 -6
  216. package/dist/chunk-408fb31b8b0f97ee.js +0 -2
  217. package/dist/chunk-40942fb138dcd780.js +0 -9
  218. package/dist/chunk-40c21fe243675250.js +0 -2
  219. package/dist/chunk-40f4bfe67d75f2ec.js +0 -6
  220. package/dist/chunk-412ad792487747bc.js +0 -2
  221. package/dist/chunk-415d564ff61a8fe6.js +0 -2
  222. package/dist/chunk-42097f79deccd5b7.js +0 -2
  223. package/dist/chunk-4272071146eb5eb2.js +0 -1
  224. package/dist/chunk-42aa6e3d42149620.js +0 -2
  225. package/dist/chunk-432bbd1d38ff3b52.js +0 -2
  226. package/dist/chunk-437335670ad9059d.js +0 -2
  227. package/dist/chunk-442a5b1ec74c72f8.js +0 -2
  228. package/dist/chunk-4432f8d8567e682b.js +0 -9
  229. package/dist/chunk-4548da0edd8c39ed.js +0 -2
  230. package/dist/chunk-45badde289996d82.js +0 -9
  231. package/dist/chunk-464cce477d8a56e0.js +0 -2
  232. package/dist/chunk-46528bdbb2218772.js +0 -2
  233. package/dist/chunk-477a4d3115b9703e.js +0 -2
  234. package/dist/chunk-47c4cec992af0689.js +0 -2
  235. package/dist/chunk-487b7c0cb388d533.js +0 -6
  236. package/dist/chunk-488b4db0c522d44a.js +0 -1
  237. package/dist/chunk-489125d86cd75e69.js +0 -9
  238. package/dist/chunk-4960e27e19bbe42a.js +0 -2
  239. package/dist/chunk-4b201cccdf6d290f.js +0 -2
  240. package/dist/chunk-4b4ea80149bba4e6.js +0 -2
  241. package/dist/chunk-4bbeb47cc6137c49.js +0 -2
  242. package/dist/chunk-4cb19a9e82653084.js +0 -2
  243. package/dist/chunk-4cb5f3feff1a81c5.js +0 -2
  244. package/dist/chunk-4cc2463d985f6882.js +0 -9
  245. package/dist/chunk-4d19e16340534ed0.js +0 -2
  246. package/dist/chunk-4d46e390f99b97e0.js +0 -2
  247. package/dist/chunk-4d80485e7efb826f.js +0 -2
  248. package/dist/chunk-4e023976eb557258.js +0 -2
  249. package/dist/chunk-4e5485d3cfe9dc4e.js +0 -2
  250. package/dist/chunk-4e9167391dd0d15f.js +0 -2
  251. package/dist/chunk-4e9d5acfa5541d1b.js +0 -2
  252. package/dist/chunk-4eeee2f82b1fa8bb.js +0 -2
  253. package/dist/chunk-4f01c5a98726e704.js +0 -2
  254. package/dist/chunk-4f1b43f5232b3e65.js +0 -6
  255. package/dist/chunk-4f5b07a6a6fd5cc6.js +0 -2
  256. package/dist/chunk-4ffecff075e73d43.js +0 -2
  257. package/dist/chunk-50b440397d41ab5a.js +0 -2
  258. package/dist/chunk-50ea27a13eb62b5e.js +0 -2
  259. package/dist/chunk-5128de1a65ba6ce1.js +0 -2
  260. package/dist/chunk-514f8554fb446139.js +0 -9
  261. package/dist/chunk-515c26d532207095.js +0 -2
  262. package/dist/chunk-516c6b67d6e3d041.js +0 -18
  263. package/dist/chunk-5190b38f06507ee1.js +0 -18
  264. package/dist/chunk-51bad63147c3be4e.js +0 -6
  265. package/dist/chunk-51c21d2a3c45fbe1.js +0 -2
  266. package/dist/chunk-51e930ef29de215b.js +0 -1
  267. package/dist/chunk-51ee928673a12486.js +0 -2
  268. package/dist/chunk-521750cca5e03c65.js +0 -2
  269. package/dist/chunk-5290ecaf429d5a61.js +0 -2
  270. package/dist/chunk-52e76204b898931e.js +0 -18
  271. package/dist/chunk-53b7d6267c9172bc.js +0 -2
  272. package/dist/chunk-53c39aca36ece018.js +0 -2
  273. package/dist/chunk-543013123141745c.js +0 -2
  274. package/dist/chunk-54c03438ff1f41e5.js +0 -2
  275. package/dist/chunk-552bdaee8c03e091.js +0 -9
  276. package/dist/chunk-55f76d4f6116f296.js +0 -9
  277. package/dist/chunk-5656abf3151c8fa2.js +0 -2
  278. package/dist/chunk-56f6f8c2162dcf1c.js +0 -2
  279. package/dist/chunk-57a61e580c4adf80.js +0 -2
  280. package/dist/chunk-581e0d46235dbf7c.js +0 -2
  281. package/dist/chunk-584e33c96b1a78e4.js +0 -2
  282. package/dist/chunk-5852c4da08af607f.js +0 -2
  283. package/dist/chunk-589f4b330dd6d32e.js +0 -2
  284. package/dist/chunk-590bd43a75f48606.js +0 -18
  285. package/dist/chunk-590cd512f9e72880.js +0 -18
  286. package/dist/chunk-596024c880387c2f.js +0 -2
  287. package/dist/chunk-597d5c6772b14a85.js +0 -9
  288. package/dist/chunk-59980167a4c574b3.js +0 -2
  289. package/dist/chunk-59da8b8ab8add738.js +0 -16
  290. package/dist/chunk-59e951812cb019e6.js +0 -2
  291. package/dist/chunk-59fe590e19085858.js +0 -18
  292. package/dist/chunk-5a2d89fce13094a9.js +0 -2
  293. package/dist/chunk-5a66922d5981afc8.js +0 -18
  294. package/dist/chunk-5a75eae6c32c2ba3.js +0 -2
  295. package/dist/chunk-5a9fa677066f72ac.js +0 -2
  296. package/dist/chunk-5b54843712abde58.js +0 -2
  297. package/dist/chunk-5b836c769c5dad2a.js +0 -2
  298. package/dist/chunk-5c2a5156f6bef0f5.js +0 -2
  299. package/dist/chunk-5c3681fb029d7588.js +0 -1
  300. package/dist/chunk-5cd0a98345a5d57a.js +0 -2
  301. package/dist/chunk-5d3431e9686096af.js +0 -18
  302. package/dist/chunk-5d51afe60efaf99e.js +0 -2
  303. package/dist/chunk-5d86d49d66db1c22.js +0 -2
  304. package/dist/chunk-5defd55c3c97bdb2.js +0 -2
  305. package/dist/chunk-5e13846c554dc272.js +0 -2
  306. package/dist/chunk-5fb9d31b7b4629e9.js +0 -1
  307. package/dist/chunk-5fbde192153a2a50.js +0 -2
  308. package/dist/chunk-5fd67245740e3908.js +0 -9
  309. package/dist/chunk-6003411eae26f246.js +0 -3
  310. package/dist/chunk-60d70dcbf4e79276.js +0 -2
  311. package/dist/chunk-60f3b8242209ac3e.js +0 -18
  312. package/dist/chunk-61973614facb50a8.js +0 -2
  313. package/dist/chunk-61abf77c3eee8698.js +0 -2
  314. package/dist/chunk-61fc22887a7be6f9.js +0 -3
  315. package/dist/chunk-62144f9c5008bd47.js +0 -1
  316. package/dist/chunk-625025af819f55f5.js +0 -2
  317. package/dist/chunk-6259cd13f53334df.js +0 -2
  318. package/dist/chunk-62b2777c629d5157.js +0 -2
  319. package/dist/chunk-62c0f9a87ad8a46b.js +0 -2
  320. package/dist/chunk-634c80cac76d9080.js +0 -18
  321. package/dist/chunk-63ad0436d3d896b5.js +0 -3
  322. package/dist/chunk-63c5605bcce508ea.js +0 -1
  323. package/dist/chunk-640e4bdae1671873.js +0 -1
  324. package/dist/chunk-648dff766091372e.js +0 -2
  325. package/dist/chunk-64a5b833cef67725.js +0 -2
  326. package/dist/chunk-64c89cee4d4bd9a9.js +0 -2
  327. package/dist/chunk-65626c3d72d4e071.js +0 -2
  328. package/dist/chunk-65c413665a7cf876.js +0 -2
  329. package/dist/chunk-6605e290c4de1f0e.js +0 -6
  330. package/dist/chunk-66ab377654806d08.js +0 -2
  331. package/dist/chunk-670d2c924e80cb33.js +0 -3
  332. package/dist/chunk-67351e678a7ccc10.js +0 -2
  333. package/dist/chunk-6766e66417809e1a.js +0 -2
  334. package/dist/chunk-6821bb0ff6ed2452.js +0 -18
  335. package/dist/chunk-682b01231754a121.js +0 -2
  336. package/dist/chunk-68af0a6f6be163ce.js +0 -2
  337. package/dist/chunk-6921ba2fa2e1adea.js +0 -2
  338. package/dist/chunk-6943b50bd0a3ac84.js +0 -1
  339. package/dist/chunk-699957e6eb705a81.js +0 -2
  340. package/dist/chunk-69ff5047661fe699.js +0 -2
  341. package/dist/chunk-6a28d299b5726bba.js +0 -2
  342. package/dist/chunk-6ac91c66919b5ddd.js +0 -2
  343. package/dist/chunk-6afe097e13ebdf55.js +0 -2
  344. package/dist/chunk-6c345dba15e1c3f2.js +0 -2
  345. package/dist/chunk-6c461d293fa213f1.js +0 -2
  346. package/dist/chunk-6caabea5fcbc9cf7.js +0 -2
  347. package/dist/chunk-6d04c1ccb3ca8c74.js +0 -1
  348. package/dist/chunk-6e06660ab4e9d4da.js +0 -6
  349. package/dist/chunk-6e415d0e12fc9539.js +0 -1
  350. package/dist/chunk-6f78f2a54491595d.js +0 -2
  351. package/dist/chunk-700835a3a709b370.js +0 -2
  352. package/dist/chunk-70bb003c03f21dad.js +0 -2
  353. package/dist/chunk-711f86b9d50d45fe.js +0 -18
  354. package/dist/chunk-71820a3186a38543.js +0 -6
  355. package/dist/chunk-7195a8718fcd8215.js +0 -1
  356. package/dist/chunk-722f2aeae58daaa3.js +0 -18
  357. package/dist/chunk-72821f055108528e.js +0 -2
  358. package/dist/chunk-72add10919c9d7ae.js +0 -2
  359. package/dist/chunk-731f30522682483a.js +0 -2
  360. package/dist/chunk-733513f9c9e8b50f.js +0 -2
  361. package/dist/chunk-733688c7851fffd1.js +0 -2
  362. package/dist/chunk-7336bd3f3b799e3e.js +0 -1
  363. package/dist/chunk-7399f06d840a1449.js +0 -2
  364. package/dist/chunk-73c97da8ac4f1d30.js +0 -1
  365. package/dist/chunk-73c9d39f58a30fe2.js +0 -6
  366. package/dist/chunk-73eed146ee78f681.js +0 -1
  367. package/dist/chunk-73fb3bb4d001bb2e.js +0 -1
  368. package/dist/chunk-7431d60af8814bc8.js +0 -2
  369. package/dist/chunk-74802f454b9972eb.js +0 -2
  370. package/dist/chunk-74ab9c225bfe0eaa.js +0 -2
  371. package/dist/chunk-74db07ba7b97d1c1.js +0 -2
  372. package/dist/chunk-76a525af0575486d.js +0 -5
  373. package/dist/chunk-76db0552d2492ee7.js +0 -3
  374. package/dist/chunk-774337ca540a856d.js +0 -2
  375. package/dist/chunk-77c89e3c8a03f91e.js +0 -2
  376. package/dist/chunk-77d1b26236f5feec.js +0 -2
  377. package/dist/chunk-77d5bbc7a9117c21.js +0 -2
  378. package/dist/chunk-782dde0748025b5a.js +0 -2
  379. package/dist/chunk-78534576cf359780.js +0 -2
  380. package/dist/chunk-7898dd7609f163e8.js +0 -2
  381. package/dist/chunk-78ab7bcbe6104c5f.js +0 -2
  382. package/dist/chunk-78d6df0054754d5d.js +0 -2
  383. package/dist/chunk-795a1bd1d89efce1.js +0 -2
  384. package/dist/chunk-797430f55303e6b5.js +0 -2
  385. package/dist/chunk-7975e27df461cbfb.js +0 -6
  386. package/dist/chunk-798f550643937b6d.js +0 -2
  387. package/dist/chunk-79b438007611560a.js +0 -2
  388. package/dist/chunk-79f7d7d90c4fb51a.js +0 -2
  389. package/dist/chunk-7a318e738fec6c2b.js +0 -3
  390. package/dist/chunk-7aa7f7e219919c4d.js +0 -2
  391. package/dist/chunk-7abc696047809312.js +0 -6
  392. package/dist/chunk-7afdc0ba5afe109a.js +0 -21
  393. package/dist/chunk-7b3bbc8a88aee78c.js +0 -1
  394. package/dist/chunk-7b8e777f7353b492.js +0 -2
  395. package/dist/chunk-7c0fd956d14fc327.js +0 -2
  396. package/dist/chunk-7c62e9d6edc4b418.js +0 -2
  397. package/dist/chunk-7c670baec90faacb.js +0 -2
  398. package/dist/chunk-7d7b2c1f2a8dd018.js +0 -6
  399. package/dist/chunk-7de7f34d46c76019.js +0 -18
  400. package/dist/chunk-7dfb17814922ade0.js +0 -2
  401. package/dist/chunk-7e9d5eea3aa359ad.js +0 -2
  402. package/dist/chunk-7ea1baca4032004f.js +0 -2
  403. package/dist/chunk-7eb54149dff25532.js +0 -2
  404. package/dist/chunk-7ec30fbbbdf89272.js +0 -2
  405. package/dist/chunk-7fadaab2fa180ca9.js +0 -6
  406. package/dist/chunk-7fef11f59982b1f6.js +0 -2
  407. package/dist/chunk-7ffe2ce59a054e35.js +0 -2
  408. package/dist/chunk-80b17f9853d76e98.js +0 -2
  409. package/dist/chunk-8133ed564834cff3.js +0 -2
  410. package/dist/chunk-8163d4f4c2c91caf.js +0 -2
  411. package/dist/chunk-817aad76d1e8eecc.js +0 -6
  412. package/dist/chunk-81938d68b172446d.js +0 -2
  413. package/dist/chunk-81a00ae1b3ea4824.js +0 -2
  414. package/dist/chunk-81ce9b491b290639.js +0 -1
  415. package/dist/chunk-81f5123a24c19089.js +0 -2
  416. package/dist/chunk-827d2c67c03d1a52.js +0 -2
  417. package/dist/chunk-8295e42bcfc910ff.js +0 -16
  418. package/dist/chunk-82f72dfc6e27be04.js +0 -1
  419. package/dist/chunk-8401f0f53dc26633.js +0 -1
  420. package/dist/chunk-8450a38607a86896.js +0 -2
  421. package/dist/chunk-847629c9a7550cc3.js +0 -2
  422. package/dist/chunk-84b129a5185ac24d.js +0 -2
  423. package/dist/chunk-84c7f86a97d17f53.js +0 -2
  424. package/dist/chunk-84f1b068dc7fc8b7.js +0 -2
  425. package/dist/chunk-8581aa9e876d46fb.js +0 -2
  426. package/dist/chunk-85a1f8fb96fd9473.js +0 -2
  427. package/dist/chunk-85d5e5d7ff832255.js +0 -2
  428. package/dist/chunk-860f5fcef7074193.js +0 -9
  429. package/dist/chunk-869d80d2e475b938.js +0 -3
  430. package/dist/chunk-880273a32da461fd.js +0 -9
  431. package/dist/chunk-88103b9d011960db.js +0 -5
  432. package/dist/chunk-89187bbdf6945131.js +0 -2
  433. package/dist/chunk-89291b5eb2bbd0b4.js +0 -2
  434. package/dist/chunk-895d9b1ef7a65211.js +0 -2
  435. package/dist/chunk-897773d66a89947a.js +0 -2
  436. package/dist/chunk-89c6080d4a693ddf.js +0 -2
  437. package/dist/chunk-8a993922ea970923.js +0 -2
  438. package/dist/chunk-8aa3e0e20e411d11.js +0 -2
  439. package/dist/chunk-8af626a703659719.js +0 -18
  440. package/dist/chunk-8b3d411f441a43ce.js +0 -2
  441. package/dist/chunk-8b40d6a498f8bf81.js +0 -2
  442. package/dist/chunk-8b944ecefa1b832c.js +0 -18
  443. package/dist/chunk-8bb91c504b9ca45e.js +0 -2
  444. package/dist/chunk-8bf925705fdcef0c.js +0 -2
  445. package/dist/chunk-8c2b349a7198788f.js +0 -6
  446. package/dist/chunk-8c3e0f5d4a0d6e53.js +0 -2
  447. package/dist/chunk-8c8c8fd3646b76a1.js +0 -2
  448. package/dist/chunk-8caa0abe673f5d41.js +0 -2
  449. package/dist/chunk-8d8666b73758171e.js +0 -2
  450. package/dist/chunk-8e72aa06d4e47eca.js +0 -2
  451. package/dist/chunk-8ef8222b34d8f63f.js +0 -2
  452. package/dist/chunk-8f24cd33e07d02f3.js +0 -2
  453. package/dist/chunk-8f547b919361fdf4.js +0 -2
  454. package/dist/chunk-8f986f307ff91bd3.js +0 -2
  455. package/dist/chunk-901e700a2c2d43f3.js +0 -18
  456. package/dist/chunk-90c5196ff1f827a8.js +0 -2
  457. package/dist/chunk-9113f22a5215c639.js +0 -3
  458. package/dist/chunk-915c050c94553981.js +0 -2
  459. package/dist/chunk-9238196d4889d660.js +0 -1
  460. package/dist/chunk-92a55add20b5d7ac.js +0 -9
  461. package/dist/chunk-92f6095a3be7f459.js +0 -1
  462. package/dist/chunk-9326224d1e4c1a64.js +0 -2
  463. package/dist/chunk-933845e73519b4c5.js +0 -2
  464. package/dist/chunk-934ebff128f86ef1.js +0 -1
  465. package/dist/chunk-9350baa090b5a424.js +0 -2
  466. package/dist/chunk-938fed005335132e.js +0 -9
  467. package/dist/chunk-93b6f53456c1251b.js +0 -2
  468. package/dist/chunk-94578320d28e33ad.js +0 -2
  469. package/dist/chunk-9501e589e3e86a96.js +0 -2
  470. package/dist/chunk-955e2bfcdb7a7e71.js +0 -2
  471. package/dist/chunk-96b635a3bdba7415.js +0 -2
  472. package/dist/chunk-970e033f764e29fc.js +0 -19
  473. package/dist/chunk-98126e4b5bd19831.js +0 -2
  474. package/dist/chunk-9938e9a4fe25dda5.js +0 -2
  475. package/dist/chunk-99ba9dfd7c11383b.js +0 -18
  476. package/dist/chunk-9a622a10e7764b23.js +0 -2
  477. package/dist/chunk-9b5649697d59dfb4.js +0 -2
  478. package/dist/chunk-9bd00e182ac2f8a6.js +0 -6
  479. package/dist/chunk-9bd90ecd4ddde546.js +0 -18
  480. package/dist/chunk-9c3b4dd1591053c5.js +0 -18
  481. package/dist/chunk-9c4a4b4bd266869d.js +0 -2
  482. package/dist/chunk-9d069ba29a122630.js +0 -1
  483. package/dist/chunk-9d1337fc9976354d.js +0 -2
  484. package/dist/chunk-9d2777df26b445e4.js +0 -2
  485. package/dist/chunk-9d2af1a704b857ee.js +0 -2
  486. package/dist/chunk-9d6cc631cdabbe35.js +0 -9
  487. package/dist/chunk-9d714f87e4e3e250.js +0 -18
  488. package/dist/chunk-9ee2118bd4eb34ae.js +0 -9
  489. package/dist/chunk-9f6199bc705fc395.js +0 -18
  490. package/dist/chunk-a0003b7feea6fae6.js +0 -2
  491. package/dist/chunk-a004fce37a0f5a65.js +0 -2
  492. package/dist/chunk-a02b2d564bdb603d.js +0 -6
  493. package/dist/chunk-a095821ffc039b99.js +0 -18
  494. package/dist/chunk-a10ae1a06a28aaab.js +0 -2
  495. package/dist/chunk-a13ab30c392c3563.js +0 -9
  496. package/dist/chunk-a14516ac5e6f78aa.js +0 -1
  497. package/dist/chunk-a14b8af8b2a8d0b0.js +0 -2
  498. package/dist/chunk-a210ec2b987fa5f7.js +0 -2
  499. package/dist/chunk-a2fcc46e344ae7ae.js +0 -2
  500. package/dist/chunk-a3526e321ac9d173.js +0 -1
  501. package/dist/chunk-a3f85d0d3261ae44.js +0 -9
  502. package/dist/chunk-a4862acc0c3fed7d.js +0 -6
  503. package/dist/chunk-a50b9cd348c3e882.js +0 -9
  504. package/dist/chunk-a57ecc74c0fb9045.js +0 -2
  505. package/dist/chunk-a5c18c07abe8fd9c.js +0 -2
  506. package/dist/chunk-a63e13c410e92923.js +0 -2
  507. package/dist/chunk-a693f8ec2e8af8ca.js +0 -2
  508. package/dist/chunk-a719a1f305964521.js +0 -2
  509. package/dist/chunk-a7a144f5e4772c35.js +0 -2
  510. package/dist/chunk-a7f3e9d5b7cf7c42.js +0 -2
  511. package/dist/chunk-a816613f5321b9db.js +0 -1
  512. package/dist/chunk-a8310ad9bad32329.js +0 -2
  513. package/dist/chunk-a885dc5561caa8e0.js +0 -3
  514. package/dist/chunk-a88c3919c74b7877.js +0 -18
  515. package/dist/chunk-a9625dd807cb668e.js +0 -2
  516. package/dist/chunk-a991fdce275f1256.js +0 -2
  517. package/dist/chunk-aa1b1fb08828cb24.js +0 -2
  518. package/dist/chunk-aad7af5112f0f4f2.js +0 -2
  519. package/dist/chunk-aaf5855c5199efe9.js +0 -2
  520. package/dist/chunk-aaf70ff16705d558.js +0 -2
  521. package/dist/chunk-aafdd9bfb5bde8bf.js +0 -2
  522. package/dist/chunk-ab0c3f72f95cb4f4.js +0 -3
  523. package/dist/chunk-ab79a2f0d89fbeae.js +0 -1
  524. package/dist/chunk-ab7b6ceb26aca9b1.js +0 -3
  525. package/dist/chunk-abb2f588bd34adff.js +0 -2
  526. package/dist/chunk-abd0b68c299eebfc.js +0 -2
  527. package/dist/chunk-ac32b3d9dda47756.js +0 -9
  528. package/dist/chunk-acd4530b2ff92aff.js +0 -18
  529. package/dist/chunk-ad656a60ce7912bb.js +0 -2
  530. package/dist/chunk-ad8e7de66d8bf8c5.js +0 -2
  531. package/dist/chunk-adb4e1e222eb1d20.js +0 -2
  532. package/dist/chunk-ae373c8ae2d526ae.js +0 -18
  533. package/dist/chunk-ae50ef54d7de9179.js +0 -2
  534. package/dist/chunk-ae7b1bdf00266d88.js +0 -2
  535. package/dist/chunk-aef3f1c1429e6058.js +0 -2
  536. package/dist/chunk-af6b79a6ce7388ee.js +0 -18
  537. package/dist/chunk-afbf69daa7589a52.js +0 -2
  538. package/dist/chunk-b009482e01114059.js +0 -3
  539. package/dist/chunk-b031077f0a783b82.js +0 -2
  540. package/dist/chunk-b05cb7ef4546980d.js +0 -2
  541. package/dist/chunk-b05e4833f4bb2f8f.js +0 -9
  542. package/dist/chunk-b06168e5d3080486.js +0 -1
  543. package/dist/chunk-b07249c949a284d2.js +0 -16
  544. package/dist/chunk-b0cc82fa84d5362d.js +0 -2
  545. package/dist/chunk-b0f453845cad4e6e.js +0 -2
  546. package/dist/chunk-b13cfa16a8a18324.js +0 -3
  547. package/dist/chunk-b1918e88103a8501.js +0 -2
  548. package/dist/chunk-b2bc43f60314d1a9.js +0 -2
  549. package/dist/chunk-b2d07c19a78dc397.js +0 -2
  550. package/dist/chunk-b3bfe533d66f6a17.js +0 -2
  551. package/dist/chunk-b3e27ec4b56a20ac.js +0 -2
  552. package/dist/chunk-b558c43783464f1b.js +0 -2
  553. package/dist/chunk-b5d6eb761760b2a7.js +0 -6
  554. package/dist/chunk-b66a9e50afbac035.js +0 -9
  555. package/dist/chunk-b7b365f7e6038104.js +0 -2
  556. package/dist/chunk-b7c4dc1136fcaeb7.js +0 -2
  557. package/dist/chunk-b7da6c96acf0478f.js +0 -18
  558. package/dist/chunk-b7f9e29074a9f36a.js +0 -2
  559. package/dist/chunk-b80a86610158cbfd.js +0 -1
  560. package/dist/chunk-b855e71b162ce5a2.js +0 -2
  561. package/dist/chunk-b8d3d76e1dd9affe.js +0 -2
  562. package/dist/chunk-b97189ea9588db36.js +0 -9
  563. package/dist/chunk-b9cba2a8bd5bcd3e.js +0 -2
  564. package/dist/chunk-b9e4546aaa58319c.js +0 -2
  565. package/dist/chunk-b9f4c1fce7152fc8.js +0 -9
  566. package/dist/chunk-ba051a98cd651063.js +0 -1
  567. package/dist/chunk-bb72c8820407f3a6.js +0 -2
  568. package/dist/chunk-bbd36ce62b950ee5.js +0 -2
  569. package/dist/chunk-bbdd098f2a2cd820.js +0 -18
  570. package/dist/chunk-bcd70a6fc2fd359c.js +0 -1
  571. package/dist/chunk-bd2888a454e50cfd.js +0 -1
  572. package/dist/chunk-bd52b3f25b928eb1.js +0 -2
  573. package/dist/chunk-bdc34785363e3f34.js +0 -2
  574. package/dist/chunk-bdf4f2b1862899bb.js +0 -2
  575. package/dist/chunk-be095501304df604.js +0 -9
  576. package/dist/chunk-beca91bf7cc216cd.js +0 -2
  577. package/dist/chunk-bee6075c5738d87a.js +0 -2
  578. package/dist/chunk-bf14cc3e71fcd2d8.js +0 -2
  579. package/dist/chunk-bf4fa1d9864332a8.js +0 -2
  580. package/dist/chunk-bf92f3127474b56a.js +0 -3
  581. package/dist/chunk-bfccfb070c1630e9.js +0 -2
  582. package/dist/chunk-bffb8d677e1424a9.js +0 -6
  583. package/dist/chunk-c041f058dc3d571b.js +0 -1
  584. package/dist/chunk-c0bd8e19395d722b.js +0 -2
  585. package/dist/chunk-c124bf801cec12d9.js +0 -2
  586. package/dist/chunk-c153b192112b0d44.js +0 -2
  587. package/dist/chunk-c1813278ccdc04b8.js +0 -2
  588. package/dist/chunk-c210f6ae6276ebe8.js +0 -1
  589. package/dist/chunk-c29701ffef4ca07a.js +0 -2
  590. package/dist/chunk-c2d1f66cf8468e71.js +0 -1
  591. package/dist/chunk-c2fe378a1764eb92.js +0 -2
  592. package/dist/chunk-c3e4a396dc7a5fe7.js +0 -2
  593. package/dist/chunk-c3eaa877d3aab9db.js +0 -18
  594. package/dist/chunk-c45e1427f48008f0.js +0 -2
  595. package/dist/chunk-c4f342e09d9b2f23.js +0 -2
  596. package/dist/chunk-c50ff3cf3c78af79.js +0 -2
  597. package/dist/chunk-c609d06153ed09ce.js +0 -2
  598. package/dist/chunk-c62b5c4cec67029c.js +0 -1
  599. package/dist/chunk-c675395110f371b1.js +0 -6
  600. package/dist/chunk-c675f193d459818e.js +0 -2
  601. package/dist/chunk-c6846df9c8456b20.js +0 -3
  602. package/dist/chunk-c6d988f5928a4df1.js +0 -2
  603. package/dist/chunk-c72bfaa252a03f6f.js +0 -2
  604. package/dist/chunk-c7b024c7bd4cffc9.js +0 -3
  605. package/dist/chunk-c7e2acfd5087fb30.js +0 -2
  606. package/dist/chunk-c83b39b7178003da.js +0 -2
  607. package/dist/chunk-c85fc7168a708cb6.js +0 -3
  608. package/dist/chunk-c8631aa6bbb62e13.js +0 -2
  609. package/dist/chunk-c864ab57913d658f.js +0 -1
  610. package/dist/chunk-c882d0c175c22c17.js +0 -2
  611. package/dist/chunk-c8b00b645df96ed5.js +0 -2
  612. package/dist/chunk-c8f1115d77efc1c0.js +0 -2
  613. package/dist/chunk-c9707ae8f1d346ff.js +0 -3
  614. package/dist/chunk-c99b8c3d6bda27b0.js +0 -2
  615. package/dist/chunk-cb65fe402653c65e.js +0 -2
  616. package/dist/chunk-cb69e9621a60d310.js +0 -1
  617. package/dist/chunk-cca1f3ae7ec0dee1.js +0 -2
  618. package/dist/chunk-ccb551ce4fd177fe.js +0 -2
  619. package/dist/chunk-cce7de7e81895807.js +0 -2
  620. package/dist/chunk-ccfd101ce72e80bf.js +0 -1
  621. package/dist/chunk-cd1636884486d7b3.js +0 -1
  622. package/dist/chunk-cdfa2adeddc1a8e1.js +0 -2
  623. package/dist/chunk-ceb94e70091088e5.js +0 -2
  624. package/dist/chunk-cf3d1744ea801f48.js +0 -6
  625. package/dist/chunk-cf7dde2ab1be3a3c.js +0 -1
  626. package/dist/chunk-cf8b1c7a4e9fc32d.js +0 -18
  627. package/dist/chunk-cfa9a65fae5ddaf4.js +0 -2
  628. package/dist/chunk-d0757747d9cc2e47.js +0 -2
  629. package/dist/chunk-d0806df6defd9dce.js +0 -2
  630. package/dist/chunk-d12b578765686adb.js +0 -6
  631. package/dist/chunk-d16ef78d852a6856.js +0 -1
  632. package/dist/chunk-d22136d39cf8465f.js +0 -2
  633. package/dist/chunk-d26ffb7722e6df54.js +0 -1
  634. package/dist/chunk-d27588325ae2c0f3.js +0 -2
  635. package/dist/chunk-d2e057b6f3f9d500.js +0 -2
  636. package/dist/chunk-d3033805e98482dc.js +0 -6
  637. package/dist/chunk-d33a0e61ccf1bab5.js +0 -2
  638. package/dist/chunk-d3765f96a689a0c1.js +0 -2
  639. package/dist/chunk-d37757ffee07b05f.js +0 -6
  640. package/dist/chunk-d3b4a3c778c23705.js +0 -2
  641. package/dist/chunk-d3e039d010842a3f.js +0 -2
  642. package/dist/chunk-d43b3f444e738dd1.js +0 -1
  643. package/dist/chunk-d445af84de70bf7e.js +0 -2
  644. package/dist/chunk-d535b1e3078465f8.js +0 -2
  645. package/dist/chunk-d54843c1d8516c75.js +0 -2
  646. package/dist/chunk-d5709251a0493152.js +0 -6
  647. package/dist/chunk-d5ddfacbfc84a47d.js +0 -6
  648. package/dist/chunk-d665d3ee2a62d48b.js +0 -2
  649. package/dist/chunk-d7457cb6aae3b29b.js +0 -2
  650. package/dist/chunk-d850d83873a89e2b.js +0 -18
  651. package/dist/chunk-d93a6531661d56b5.js +0 -9
  652. package/dist/chunk-d93cbffc712a052f.js +0 -2
  653. package/dist/chunk-d950bbcb684a11ef.js +0 -2
  654. package/dist/chunk-d9577d79d4b718a6.js +0 -2
  655. package/dist/chunk-d9762bab5df03532.js +0 -2
  656. package/dist/chunk-d9968563c6c84405.js +0 -3
  657. package/dist/chunk-d9a84b9122601b72.js +0 -2
  658. package/dist/chunk-da1c673d9685624e.js +0 -2
  659. package/dist/chunk-dab2dde8cc9da99b.js +0 -9
  660. package/dist/chunk-dac0e2ef13060d02.js +0 -1
  661. package/dist/chunk-dac9276e506d125d.js +0 -2
  662. package/dist/chunk-dad55fcc32d05b69.js +0 -2
  663. package/dist/chunk-db2270bbca7854fe.js +0 -2
  664. package/dist/chunk-db65c75cda396f98.js +0 -2
  665. package/dist/chunk-dba84b47adec2108.js +0 -2
  666. package/dist/chunk-dc23bfb4fd92e2f0.js +0 -2
  667. package/dist/chunk-dc7b0cf226ba3afa.js +0 -2
  668. package/dist/chunk-dcc432bd72fb7e46.js +0 -3
  669. package/dist/chunk-dd211856e049a67f.js +0 -9
  670. package/dist/chunk-dd21f367f8029793.js +0 -2
  671. package/dist/chunk-dd8b042837b4d5f1.js +0 -2
  672. package/dist/chunk-ddef8961cbf08a05.js +0 -6
  673. package/dist/chunk-de0784c3310db458.js +0 -5
  674. package/dist/chunk-de39fc86bbd37240.js +0 -1
  675. package/dist/chunk-de3ec02f9d17c2c9.js +0 -2
  676. package/dist/chunk-def30dbcb4c6aceb.js +0 -2
  677. package/dist/chunk-df55f07f8adf212f.js +0 -2
  678. package/dist/chunk-df926b342440f55f.js +0 -5
  679. package/dist/chunk-dfadfa4e09b4db22.js +0 -2
  680. package/dist/chunk-dfc390f0bbdf5a81.js +0 -1
  681. package/dist/chunk-e05db2eae976681b.js +0 -3
  682. package/dist/chunk-e06fbc8e70a88f07.js +0 -2
  683. package/dist/chunk-e0a028ef931a3eb1.js +0 -18
  684. package/dist/chunk-e0e0f2ee626a6fb3.js +0 -18
  685. package/dist/chunk-e0ffb920c65ebf44.js +0 -2
  686. package/dist/chunk-e11c7f3abcf2269f.js +0 -2
  687. package/dist/chunk-e16b252158474b8c.js +0 -1
  688. package/dist/chunk-e19064e9f1d5faed.js +0 -2
  689. package/dist/chunk-e1a08bb52ee7ea09.js +0 -2
  690. package/dist/chunk-e1e84c38542d78ec.js +0 -2
  691. package/dist/chunk-e33c33445a92adf1.js +0 -1
  692. package/dist/chunk-e3acd3561fe1342c.js +0 -18
  693. package/dist/chunk-e3e996b3821027e1.js +0 -2
  694. package/dist/chunk-e3ef81776c8f2d28.js +0 -2
  695. package/dist/chunk-e4869466459233fa.js +0 -16
  696. package/dist/chunk-e4f28182cf5f6e1d.js +0 -2
  697. package/dist/chunk-e53fdd0a1888c5e8.js +0 -2
  698. package/dist/chunk-e5a95230e0858544.js +0 -3
  699. package/dist/chunk-e64d5a7b7e0fa2c5.js +0 -6
  700. package/dist/chunk-e755f2c1c7ad3912.js +0 -2
  701. package/dist/chunk-e8159722d49ad044.js +0 -2
  702. package/dist/chunk-e86269d01f94404c.js +0 -2
  703. package/dist/chunk-e9275fb341d2cdd9.js +0 -2
  704. package/dist/chunk-e9c96f9b825f8de7.js +0 -2
  705. package/dist/chunk-ea9b86cf2edd807b.js +0 -18
  706. package/dist/chunk-ec24a0767aa58f1f.js +0 -18
  707. package/dist/chunk-ed21fb7d8c4b675e.js +0 -3
  708. package/dist/chunk-ed589d4e4c575de7.js +0 -2
  709. package/dist/chunk-edba144b170cd87e.js +0 -6
  710. package/dist/chunk-edeefd833c30a5ed.js +0 -2
  711. package/dist/chunk-ee35048642cfe9d8.js +0 -2
  712. package/dist/chunk-ee4ff285d7f4ccdf.js +0 -2
  713. package/dist/chunk-ee604d0215ea07e6.js +0 -1
  714. package/dist/chunk-ee92e80230ce02ec.js +0 -2
  715. package/dist/chunk-eea1d6f60a6875d5.js +0 -2
  716. package/dist/chunk-eeb3b193701aec43.js +0 -1
  717. package/dist/chunk-ef1ebd10affe5726.js +0 -2
  718. package/dist/chunk-ef30aafcfd40dc07.js +0 -2
  719. package/dist/chunk-f077321ef55ea627.js +0 -1
  720. package/dist/chunk-f08ca4bd263b132b.js +0 -2
  721. package/dist/chunk-f0d3ed16a520ecf1.js +0 -18
  722. package/dist/chunk-f117757df00aa18d.js +0 -2
  723. package/dist/chunk-f13fd46441a58606.js +0 -2
  724. package/dist/chunk-f1ac22ad55dbab7a.js +0 -9
  725. package/dist/chunk-f1dfc76a05462dde.js +0 -2
  726. package/dist/chunk-f1e28c4c1a227c27.js +0 -2
  727. package/dist/chunk-f2428c56f532e719.js +0 -3
  728. package/dist/chunk-f256432c3e5819d0.js +0 -2
  729. package/dist/chunk-f2dca6305fcba70b.js +0 -2
  730. package/dist/chunk-f316793e4ec0f386.js +0 -2
  731. package/dist/chunk-f32726d374c6bee5.js +0 -1
  732. package/dist/chunk-f34a78d9e3a62c43.js +0 -3
  733. package/dist/chunk-f404a785b581d029.js +0 -2
  734. package/dist/chunk-f5910f2c8a3f6974.js +0 -2
  735. package/dist/chunk-f5a4295176f9b1c1.js +0 -2
  736. package/dist/chunk-f5b888aa9ac4e20f.js +0 -2
  737. package/dist/chunk-f5e313cc7d724fbe.js +0 -2
  738. package/dist/chunk-f67aa3e46d73674e.js +0 -2
  739. package/dist/chunk-f69bcbd7998553cb.js +0 -2
  740. package/dist/chunk-f74928c3f9ae5359.js +0 -2
  741. package/dist/chunk-f7796c3724a35057.js +0 -2
  742. package/dist/chunk-f84049d82d29bd9e.js +0 -2
  743. package/dist/chunk-f868cdf653dbe87e.js +0 -2
  744. package/dist/chunk-f8823a1ede83155e.js +0 -2
  745. package/dist/chunk-f8ad65b3a07ce3c4.js +0 -6
  746. package/dist/chunk-f900b5868b14827e.js +0 -2
  747. package/dist/chunk-f9084650419a23c4.js +0 -2
  748. package/dist/chunk-f95f5e3439539ca5.js +0 -2
  749. package/dist/chunk-f99bdfc336b2ac57.js +0 -9
  750. package/dist/chunk-f9a17b871b527bff.js +0 -2
  751. package/dist/chunk-f9e6a0a946ebb032.js +0 -2
  752. package/dist/chunk-fa40971555060604.js +0 -81
  753. package/dist/chunk-fa6bdfb32d2f97fb.js +0 -2
  754. package/dist/chunk-faa8c62bfa11f9d5.js +0 -2
  755. package/dist/chunk-fb25896f1638ca8e.js +0 -3
  756. package/dist/chunk-fc165cee61f6efe8.js +0 -6
  757. package/dist/chunk-fd5ffee329d6f29b.js +0 -2
  758. package/dist/chunk-feaaa37d30cd1e9b.js +0 -2
  759. package/dist/chunk-fec9f0b0b0319f3b.js +0 -2
  760. package/dist/chunk-ff086fe014985526.js +0 -1
  761. package/dist/chunk-ff1bbce70d726bc6.js +0 -9
  762. package/dist/chunk-ff9a2d6d503e6db6.js +0 -18
  763. package/dist/chunk-ffe161a589b4c44b.js +0 -1
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{y as l} from"./chunk-7ce930fe69575c87.js";import{nb as m} from"./chunk-e19064e9f1d5faed.js";var E=l(m(),1);import{readFileSync as S} from"fs";var t=(e)=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:o,roleSessionName:r,webIdentityToken:n,providerId:c,policyArns:i,policy:_,durationSeconds:N}=e;let{roleAssumerWithWebIdentity:s}=e;if(!s){const{getDefaultRoleAssumerWithWebIdentity:d}=await import("./chunk-13e45ce3460f6375.js");s=d({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:e.parentClientConfig},e.clientPlugins)}return s({RoleArn:o,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:c,PolicyArns:i,Policy:_,DurationSeconds:N})};var p="AWS_WEB_IDENTITY_TOKEN_FILE",f="AWS_ROLE_ARN",T="AWS_ROLE_SESSION_NAME",I=(e={})=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");const o=e?.webIdentityTokenFile??process.env[p],r=e?.roleArn??process.env[f],n=e?.roleSessionName??process.env[T];if(!o||!r)throw new E.CredentialsProviderError("Web identity configuration not specified",{logger:e.logger});return t({...e,webIdentityToken:S(o,{encoding:"ascii"}),roleArn:r,roleSessionName:n})()};export{t as fromWebToken,I as fromTokenFile};
@@ -1 +0,0 @@
1
- import{y as o,z as S} from"./chunk-7ce930fe69575c87.js";import{hb as a} from"./chunk-22ec1973752a5488.js";import{ib as I} from"./chunk-f5910f2c8a3f6974.js";var z=S((r,t)=>{var j=function(c){const i={};if(c=c.replace(/^\?/,""),c)for(let n of c.split("&")){let[F,f=null]=n.split("=");if(F=decodeURIComponent(F),f)f=decodeURIComponent(f);if(!(F in i))i[F]=f;else if(Array.isArray(i[F]))i[F].push(f);else i[F]=[i[F],f]}return i},w=Object.defineProperty,D=Object.getOwnPropertyDescriptor,M=Object.getOwnPropertyNames,Q=Object.prototype.hasOwnProperty,U=(c,i)=>w(c,"name",{value:i,configurable:!0}),O=(c,i)=>{for(var n in i)w(c,n,{get:i[n],enumerable:!0})},d=(c,i,n,F)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let f of M(i))if(!Q.call(c,f)&&f!==n)w(c,f,{get:()=>i[f],enumerable:!(F=D(i,f))||F.enumerable})}return c},v=(c)=>d(w({},"__esModule",{value:!0}),c),T={};O(T,{parseQueryString:()=>j});t.exports=v(T);U(j,"parseQueryString")});var p=S((y,b)=>{var{defineProperty:C,getOwnPropertyDescriptor:J,getOwnPropertyNames:x}=Object,P=Object.prototype.hasOwnProperty,s=(c,i)=>C(c,"name",{value:i,configurable:!0}),l=(c,i)=>{for(var n in i)C(c,n,{get:i[n],enumerable:!0})},m=(c,i,n,F)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let f of x(i))if(!P.call(c,f)&&f!==n)C(c,f,{get:()=>i[f],enumerable:!(F=J(i,f))||F.enumerable})}return c},k=(c)=>m(C({},"__esModule",{value:!0}),c),X={};l(X,{parseUrl:()=>Z});b.exports=k(X);var q=z(),Z=s((c)=>{if(typeof c==="string")return Z(new URL(c));const{hostname:i,pathname:n,port:F,protocol:f,search:E}=c;let N;if(E)N=q.parseQueryString(E);return{hostname:i,port:F?parseInt(F):void 0,protocol:f,path:n,query:N}},"parseUrl")});var $=o(I(),1);var B=o(I(),1);function h(c){try{const i=new Set(Array.from(c.match(/([A-Z_]){3,}/g)??[]));return i.delete("CONFIG"),i.delete("CONFIG_PREFIX_SEPARATOR"),i.delete("ENV"),[...i].join(", ")}catch(i){return c}}var H=(c,i)=>async()=>{try{const n=c(process.env);if(n===void 0)throw new Error;return n}catch(n){throw new B.CredentialsProviderError(n.message||`Not found in ENV: ${h(c.toString())}`,{logger:i})}};var K=o(I(),1),R=o(a(),1);var L=(c,{preferredFile:i="config",...n}={})=>async()=>{const F=R.getProfileName(n),{configFile:f,credentialsFile:E}=await R.loadSharedConfigFiles(n),N=E[F]||{},g=f[F]||{},Y=i==="config"?{...N,...g}:{...g,...N};try{const G=c(Y,i==="config"?f:E);if(G===void 0)throw new Error;return G}catch(A){throw new K.CredentialsProviderError(A.message||`Not found in config files w/ profile [${F}]: ${h(c.toString())}`,{logger:n.logger})}};var V=o(I(),1),u=(c)=>typeof c==="function",W=(c)=>u(c)?async()=>await c():V.fromStatic(c);var oi=({environmentVariableSelector:c,configFileSelector:i,default:n},F={})=>$.memoize($.chain(H(c),L(i,F),W(n)));export{p as fb,oi as gb};
@@ -1,18 +0,0 @@
1
- import{y as D,z as M} from"./chunk-7ce930fe69575c87.js";import{C as x,D as Tw,E as bL,F as EY,I as _w,J as P6,M as j6,Q as NG,T as XW} from"./chunk-f34a78d9e3a62c43.js";import{hb as z0} from"./chunk-a0003b7feea6fae6.js";import{ib as bf,jb as E0} from"./chunk-7195a8718fcd8215.js";import{kb as z$} from"./chunk-3cbc1c9cdc091b43.js";import{qb as Qw} from"./chunk-934ebff128f86ef1.js";var w1=M((Z7,tw)=>{var ow=function($,w,f){return{applyToStack:(G)=>{G.add(nw($,f),iw),G.add(mw($,w),rw)}}},$1=Object.defineProperty,l6=Object.getOwnPropertyDescriptor,n6=Object.getOwnPropertyNames,m6=Object.prototype.hasOwnProperty,L$=($,w)=>$1($,"name",{value:w,configurable:!0}),i6=($,w)=>{for(var f in w)$1($,f,{get:w[f],enumerable:!0})},r6=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of n6(w))if(!m6.call($,U)&&U!==f)$1($,U,{get:()=>w[U],enumerable:!(G=l6(w,U))||G.enumerable})}return $},o6=($)=>r6($1({},"__esModule",{value:!0}),$),lw={};i6(lw,{deserializerMiddleware:()=>nw,deserializerMiddlewareOption:()=>iw,getSerdePlugin:()=>ow,serializerMiddleware:()=>mw,serializerMiddlewareOption:()=>rw});tw.exports=o6(lw);var nw=L$(($,w)=>(f)=>async(G)=>{const{response:U}=await f(G);try{const W=await w(U,$);return{response:U,output:W}}catch(W){if(Object.defineProperty(W,"$response",{value:U}),!("$metadata"in W)){if(W.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof W.$responseBodyText!=="undefined"){if(W.$response)W.$response.body=W.$responseBodyText}}throw W}},"deserializerMiddleware"),mw=L$(($,w)=>(f,G)=>async(U)=>{var W;const L=((W=G.endpointV2)==null?void 0:W.url)&&$.urlParser?async()=>$.urlParser(G.endpointV2.url):$.endpoint;if(!L)throw new Error("No valid endpoint provider available.");const X=await w(U.input,{...$,endpoint:L});return f({...U,request:X})},"serializerMiddleware"),iw={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},rw={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};L$(ow,"getSerdePlugin")});var n=M((F7,wf)=>{var{defineProperty:f1,getOwnPropertyDescriptor:t6,getOwnPropertyNames:a6}=Object,e6=Object.prototype.hasOwnProperty,ew=($,w)=>f1($,"name",{value:w,configurable:!0}),$X=($,w)=>{for(var f in w)f1($,f,{get:w[f],enumerable:!0})},wX=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of a6(w))if(!e6.call($,U)&&U!==f)f1($,U,{get:()=>w[U],enumerable:!(G=t6(w,U))||G.enumerable})}return $},fX=($)=>wX(f1({},"__esModule",{value:!0}),$),$f={};$X($f,{getSmithyContext:()=>UX,normalizeProvider:()=>GX});wf.exports=fX($f);var aw=z0(),UX=ew(($)=>$[aw.SMITHY_CONTEXT_KEY]||($[aw.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),GX=ew(($)=>{if(typeof $==="function")return $;const w=Promise.resolve($);return()=>w},"normalizeProvider")});var M0=M((ff)=>{Object.defineProperty(ff,"__esModule",{value:!0});ff.getHomeDir=void 0;var WX=import.meta.require("os"),LX=import.meta.require("path"),X$={},XX=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},ZX=()=>{const{HOME:$,USERPROFILE:w,HOMEPATH:f,HOMEDRIVE:G=`C:${LX.sep}`}=process.env;if($)return $;if(w)return w;if(f)return`${G}${f}`;const U=XX();if(!X$[U])X$[U]=WX.homedir();return X$[U]};ff.getHomeDir=ZX});var Z$=M((Gf)=>{Object.defineProperty(Gf,"__esModule",{value:!0});Gf.getSSOTokenFilepath=void 0;var FX=import.meta.require("crypto"),EX=import.meta.require("path"),YX=M0(),IX=($)=>{const f=FX.createHash("sha1").update($).digest("hex");return EX.join(YX.getHomeDir(),".aws","sso","cache",`${f}.json`)};Gf.getSSOTokenFilepath=IX});var Zf=M((Lf)=>{Object.defineProperty(Lf,"__esModule",{value:!0});Lf.getSSOTokenFromFile=void 0;var QX=import.meta.require("fs"),RX=Z$(),{readFile:zX}=QX.promises,MX=async($)=>{const w=RX.getSSOTokenFilepath($),f=await zX(w,"utf8");return JSON.parse(f)};Lf.getSSOTokenFromFile=MX});var E$=M((Ff)=>{Object.defineProperty(Ff,"__esModule",{value:!0});Ff.slurpFile=void 0;var JX=import.meta.require("fs"),{readFile:KX}=JX.promises,F$={},AX=($,w)=>{if(!F$[$]||(w===null||w===void 0?void 0:w.ignoreCache))F$[$]=KX($,"utf8");return F$[$]};Ff.slurpFile=AX});var R$=M((R7,b0)=>{var{defineProperty:W1,getOwnPropertyDescriptor:OX,getOwnPropertyNames:BX}=Object,VX=Object.prototype.hasOwnProperty,u=($,w)=>W1($,"name",{value:w,configurable:!0}),TX=($,w)=>{for(var f in w)W1($,f,{get:w[f],enumerable:!0})},Y$=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of BX(w))if(!VX.call($,U)&&U!==f)W1($,U,{get:()=>w[U],enumerable:!(G=OX(w,U))||G.enumerable})}return $},Q$=($,w,f)=>(Y$($,w,"default"),f&&Y$(f,w,"default")),HX=($)=>Y$(W1({},"__esModule",{value:!0}),$),S0={};TX(S0,{CONFIG_PREFIX_SEPARATOR:()=>L0,DEFAULT_PROFILE:()=>Rf,ENV_PROFILE:()=>Qf,getProfileName:()=>CX,loadSharedConfigFiles:()=>Mf,loadSsoSessionData:()=>xX,parseKnownFiles:()=>_X});b0.exports=HX(S0);Q$(S0,M0(),b0.exports);var Qf="AWS_PROFILE",Rf="default",CX=u(($)=>$.profile||process.env[Qf]||Rf,"getProfileName");Q$(S0,Z$(),b0.exports);Q$(S0,Zf(),b0.exports);var U1=z0(),NX=u(($)=>Object.entries($).filter(([w])=>{const f=w.indexOf(L0);if(f===-1)return!1;return Object.values(U1.IniSectionType).includes(w.substring(0,f))}).reduce((w,[f,G])=>{const U=f.indexOf(L0),W=f.substring(0,U)===U1.IniSectionType.PROFILE?f.substring(U+1):f;return w[W]=G,w},{...$.default&&{default:$.default}}),"getConfigData"),G1=import.meta.require("path"),qX=M0(),PX="AWS_CONFIG_FILE",zf=u(()=>process.env[PX]||G1.join(qX.getHomeDir(),".aws","config"),"getConfigFilepath"),jX=M0(),SX="AWS_SHARED_CREDENTIALS_FILE",bX=u(()=>process.env[SX]||G1.join(jX.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),hX=M0(),kX=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,DX=["__proto__","profile __proto__"],I$=u(($)=>{const w={};let f,G;for(let U of $.split(/\r?\n/)){const W=U.split(/(^|\s)[;#]/)[0].trim();if(W[0]==="["&&W[W.length-1]==="]"){f=void 0,G=void 0;const X=W.substring(1,W.length-1),Z=kX.exec(X);if(Z){const[,F,,E]=Z;if(Object.values(U1.IniSectionType).includes(F))f=[F,E].join(L0)}else f=X;if(DX.includes(X))throw new Error(`Found invalid profile name "${X}"`)}else if(f){const X=W.indexOf("=");if(![0,-1].includes(X)){const[Z,F]=[W.substring(0,X).trim(),W.substring(X+1).trim()];if(F==="")G=Z;else{if(G&&U.trimStart()===U)G=void 0;w[f]=w[f]||{};const E=G?[G,Z].join(L0):Z;w[f][E]=F}}}}return w},"parseIni"),Yf=E$(),If=u(()=>({}),"swallowError"),L0=".",Mf=u(async($={})=>{const{filepath:w=bX(),configFilepath:f=zf()}=$,G=hX.getHomeDir();let W=w;if(w.startsWith("~/"))W=G1.join(G,w.slice(2));let L=f;if(f.startsWith("~/"))L=G1.join(G,f.slice(2));const X=await Promise.all([Yf.slurpFile(L,{ignoreCache:$.ignoreCache}).then(I$).then(NX).catch(If),Yf.slurpFile(W,{ignoreCache:$.ignoreCache}).then(I$).catch(If)]);return{configFile:X[0],credentialsFile:X[1]}},"loadSharedConfigFiles"),cX=u(($)=>Object.entries($).filter(([w])=>w.startsWith(U1.IniSectionType.SSO_SESSION+L0)).reduce((w,[f,G])=>({...w,[f.substring(f.indexOf(L0)+1)]:G}),{}),"getSsoSessionData"),vX=E$(),yX=u(()=>({}),"swallowError"),xX=u(async($={})=>vX.slurpFile($.configFilepath??zf()).then(I$).then(cX).catch(yX),"loadSsoSessionData"),uX=u((...$)=>{const w={};for(let f of $)for(let[G,U]of Object.entries(f))if(w[G]!==void 0)Object.assign(w[G],U);else w[G]=U;return w},"mergeConfigFiles"),_X=u(async($)=>{const w=await Mf($);return uX(w.configFile,w.credentialsFile)},"parseKnownFiles")});var Of=M((z7,Af)=>{var M$=function($){try{const w=new Set(Array.from($.match(/([A-Z_]){3,}/g)??[]));return w.delete("CONFIG"),w.delete("CONFIG_PREFIX_SEPARATOR"),w.delete("ENV"),[...w].join(", ")}catch(w){return $}},L1=Object.defineProperty,dX=Object.getOwnPropertyDescriptor,pX=Object.getOwnPropertyNames,gX=Object.prototype.hasOwnProperty,J0=($,w)=>L1($,"name",{value:w,configurable:!0}),sX=($,w)=>{for(var f in w)L1($,f,{get:w[f],enumerable:!0})},lX=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of pX(w))if(!gX.call($,U)&&U!==f)L1($,U,{get:()=>w[U],enumerable:!(G=dX(w,U))||G.enumerable})}return $},nX=($)=>lX(L1({},"__esModule",{value:!0}),$),Kf={};sX(Kf,{loadConfig:()=>tX});Af.exports=nX(Kf);var h0=z$();J0(M$,"getSelectorName");var mX=J0(($,w)=>async()=>{try{const f=$(process.env);if(f===void 0)throw new Error;return f}catch(f){throw new h0.CredentialsProviderError(f.message||`Not found in ENV: ${M$($.toString())}`,{logger:w})}},"fromEnv"),Jf=R$(),iX=J0(($,{preferredFile:w="config",...f}={})=>async()=>{const G=Jf.getProfileName(f),{configFile:U,credentialsFile:W}=await Jf.loadSharedConfigFiles(f),L=W[G]||{},X=U[G]||{},Z=w==="config"?{...L,...X}:{...X,...L};try{const E=$(Z,w==="config"?U:W);if(E===void 0)throw new Error;return E}catch(F){throw new h0.CredentialsProviderError(F.message||`Not found in config files w/ profile [${G}]: ${M$($.toString())}`,{logger:f.logger})}},"fromSharedConfigFiles"),rX=J0(($)=>typeof $==="function","isFunction"),oX=J0(($)=>rX($)?async()=>await $():h0.fromStatic($),"fromStatic"),tX=J0(({environmentVariableSelector:$,configFileSelector:w,default:f},G={})=>h0.memoize(h0.chain(mX($),iX(w,G),oX(f))),"loadConfig")});var Nf=M((Hf)=>{Object.defineProperty(Hf,"__esModule",{value:!0});Hf.getEndpointUrlConfig=void 0;var Bf=R$(),Vf="AWS_ENDPOINT_URL",Tf="endpoint_url",aX=($)=>({environmentVariableSelector:(w)=>{const f=$.split(" ").map((W)=>W.toUpperCase()),G=w[[Vf,...f].join("_")];if(G)return G;const U=w[Vf];if(U)return U;return},configFileSelector:(w,f)=>{if(f&&w.services){const U=f[["services",w.services].join(Bf.CONFIG_PREFIX_SEPARATOR)];if(U){const W=$.split(" ").map((X)=>X.toLowerCase()),L=U[[W.join("_"),Tf].join(Bf.CONFIG_PREFIX_SEPARATOR)];if(L)return L}}const G=w[Tf];if(G)return G;return},default:void 0});Hf.getEndpointUrlConfig=aX});var jf=M((qf)=>{Object.defineProperty(qf,"__esModule",{value:!0});qf.getEndpointFromConfig=void 0;var eX=Of(),$Z=Nf(),wZ=async($)=>eX.loadConfig($Z.getEndpointUrlConfig($))();qf.getEndpointFromConfig=wZ});var xf=M((K7,yf)=>{var{defineProperty:Z1,getOwnPropertyDescriptor:fZ,getOwnPropertyNames:UZ}=Object,GZ=Object.prototype.hasOwnProperty,p=($,w)=>Z1($,"name",{value:w,configurable:!0}),WZ=($,w)=>{for(var f in w)Z1($,f,{get:w[f],enumerable:!0})},LZ=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of UZ(w))if(!GZ.call($,U)&&U!==f)Z1($,U,{get:()=>w[U],enumerable:!(G=fZ(w,U))||G.enumerable})}return $},XZ=($)=>LZ(Z1({},"__esModule",{value:!0}),$),hf={};WZ(hf,{endpointMiddleware:()=>cf,endpointMiddlewareOptions:()=>vf,getEndpointFromInstructions:()=>kf,getEndpointPlugin:()=>JZ,resolveEndpointConfig:()=>KZ,resolveParams:()=>Df,toEndpointV1:()=>J$});yf.exports=XZ(hf);var ZZ=p(async($)=>{const w=($==null?void 0:$.Bucket)||"";if(typeof $.Bucket==="string")$.Bucket=w.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(QZ(w)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!IZ(w)||w.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||w.toLowerCase()!==w||w.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},"resolveParamsForS3"),FZ=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,EZ=/(\d+\.){3}\d+/,YZ=/\.\./,IZ=p(($)=>FZ.test($)&&!EZ.test($)&&!YZ.test($),"isDnsCompatibleBucketName"),QZ=p(($)=>{const[w,f,G,,,U]=$.split(":"),W=w==="arn"&&$.split(":").length>=6,L=Boolean(W&&f&&G&&U);if(W&&!L)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return L},"isArnBucketName"),RZ=p(($,w,f)=>{const G=p(async()=>{const U=f[$]??f[w];if(typeof U==="function")return U();return U},"configProvider");if($==="credentialScope"||w==="CredentialScope")return async()=>{const U=typeof f.credentials==="function"?await f.credentials():f.credentials;return(U==null?void 0:U.credentialScope)??(U==null?void 0:U.CredentialScope)};if($==="accountId"||w==="AccountId")return async()=>{const U=typeof f.credentials==="function"?await f.credentials():f.credentials;return(U==null?void 0:U.accountId)??(U==null?void 0:U.AccountId)};if($==="endpoint"||w==="endpoint")return async()=>{const U=await G();if(U&&typeof U==="object"){if("url"in U)return U.url.href;if("hostname"in U){const{protocol:W,hostname:L,port:X,path:Z}=U;return`${W}//${L}${X?":"+X:""}${Z}`}}return U};return G},"createConfigValueProvider"),zZ=jf(),Sf=bf(),J$=p(($)=>{if(typeof $==="object"){if("url"in $)return Sf.parseUrl($.url);return $}return Sf.parseUrl($)},"toEndpointV1"),kf=p(async($,w,f,G)=>{if(!f.endpoint){const L=await zZ.getEndpointFromConfig(f.serviceId||"");if(L)f.endpoint=()=>Promise.resolve(J$(L))}const U=await Df($,w,f);if(typeof f.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return f.endpointProvider(U,G)},"getEndpointFromInstructions"),Df=p(async($,w,f)=>{var G;const U={},W=((G=w==null?void 0:w.getEndpointParameterInstructions)==null?void 0:G.call(w))||{};for(let[L,X]of Object.entries(W))switch(X.type){case"staticContextParams":U[L]=X.value;break;case"contextParams":U[L]=$[X.name];break;case"clientContextParams":case"builtInParams":U[L]=await RZ(X.name,L,f)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(X))}if(Object.keys(W).length===0)Object.assign(U,f);if(String(f.serviceId).toLowerCase()==="s3")await ZZ(U);return U},"resolveParams"),X1=n(),cf=p(({config:$,instructions:w})=>{return(f,G)=>async(U)=>{var W,L,X;const Z=await kf(U.input,{getEndpointParameterInstructions(){return w}},{...$},G);G.endpointV2=Z,G.authSchemes=(W=Z.properties)==null?void 0:W.authSchemes;const F=(L=G.authSchemes)==null?void 0:L[0];if(F){G.signing_region=F.signingRegion,G.signing_service=F.signingName;const E=X1.getSmithyContext(G),Y=(X=E==null?void 0:E.selectedHttpAuthScheme)==null?void 0:X.httpAuthOption;if(Y)Y.signingProperties=Object.assign(Y.signingProperties||{},{signing_region:F.signingRegion,signingRegion:F.signingRegion,signing_service:F.signingName,signingName:F.signingName,signingRegionSet:F.signingRegionSet},F.properties)}return f({...U})}},"endpointMiddleware"),MZ=w1(),vf={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:MZ.serializerMiddlewareOption.name},JZ=p(($,w)=>({applyToStack:(f)=>{f.addRelativeTo(cf({config:$,instructions:w}),vf)}}),"getEndpointPlugin"),KZ=p(($)=>{const w=$.tls??!0,{endpoint:f}=$,G=f!=null?async()=>J$(await X1.normalizeProvider(f)()):void 0;return{...$,endpoint:G,tls:w,isCustomEndpoint:!!f,useDualstackEndpoint:X1.normalizeProvider($.useDualstackEndpoint??!1),useFipsEndpoint:X1.normalizeProvider($.useFipsEndpoint??!1)}},"resolveEndpointConfig")});var r=M((A7,mf)=>{var sf=function($){return Object.keys($).reduce((w,f)=>{const G=$[f];return{...w,[f]:Array.isArray(G)?[...G]:G}},{})},nf=function($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)},F1=Object.defineProperty,AZ=Object.getOwnPropertyDescriptor,OZ=Object.getOwnPropertyNames,BZ=Object.prototype.hasOwnProperty,e=($,w)=>F1($,"name",{value:w,configurable:!0}),VZ=($,w)=>{for(var f in w)F1($,f,{get:w[f],enumerable:!0})},TZ=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of OZ(w))if(!BZ.call($,U)&&U!==f)F1($,U,{get:()=>w[U],enumerable:!(G=AZ(w,U))||G.enumerable})}return $},HZ=($)=>TZ(F1({},"__esModule",{value:!0}),$),uf={};VZ(uf,{Field:()=>qZ,Fields:()=>PZ,HttpRequest:()=>jZ,HttpResponse:()=>SZ,IHttpRequest:()=>_f.HttpRequest,getHttpHandlerExtensionConfiguration:()=>CZ,isValidHostname:()=>nf,resolveHttpHandlerRuntimeConfig:()=>NZ});mf.exports=HZ(uf);var CZ=e(($)=>{let w=$.httpHandler;return{setHttpHandler(f){w=f},httpHandler(){return w},updateHttpClientConfig(f,G){w.updateHttpClientConfig(f,G)},httpHandlerConfigs(){return w.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),NZ=e(($)=>{return{httpHandler:$.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),_f=z0(),df=class ${constructor({name:w,kind:f=_f.FieldPosition.HEADER,values:G=[]}){this.name=w,this.kind=f,this.values=G}add(w){this.values.push(w)}set(w){this.values=w}remove(w){this.values=this.values.filter((f)=>f!==w)}toString(){return this.values.map((w)=>w.includes(",")||w.includes(" ")?`"${w}"`:w).join(", ")}get(){return this.values}};e(df,"Field");var qZ=df,pf=class ${constructor({fields:w=[],encoding:f="utf-8"}){this.entries={},w.forEach(this.setField.bind(this)),this.encoding=f}setField(w){this.entries[w.name.toLowerCase()]=w}getField(w){return this.entries[w.toLowerCase()]}removeField(w){delete this.entries[w.toLowerCase()]}getByType(w){return Object.values(this.entries).filter((f)=>f.kind===w)}};e(pf,"Fields");var PZ=pf,gf=class ${constructor(w){this.method=w.method||"GET",this.hostname=w.hostname||"localhost",this.port=w.port,this.query=w.query||{},this.headers=w.headers||{},this.body=w.body,this.protocol=w.protocol?w.protocol.slice(-1)!==":"?`${w.protocol}:`:w.protocol:"https:",this.path=w.path?w.path.charAt(0)!=="/"?`/${w.path}`:w.path:"/",this.username=w.username,this.password=w.password,this.fragment=w.fragment}static clone(w){const f=new $({...w,headers:{...w.headers}});if(f.query)f.query=sf(f.query);return f}static isInstance(w){if(!w)return!1;const f=w;return"method"in f&&"protocol"in f&&"hostname"in f&&"path"in f&&typeof f.query==="object"&&typeof f.headers==="object"}clone(){return $.clone(this)}};e(gf,"HttpRequest");var jZ=gf;e(sf,"cloneQuery");var lf=class ${constructor(w){this.statusCode=w.statusCode,this.reason=w.reason,this.headers=w.headers||{},this.body=w.body}static isInstance(w){if(!w)return!1;const f=w;return typeof f.statusCode==="number"&&typeof f.headers==="object"}};e(lf,"HttpResponse");var SZ=lf;e(nf,"isValidHostname")});var K$=M((rf)=>{var hZ=function($){return $&&$.__esModule?$:{default:$}},kZ=function(){if(E1>Y1.length-16)bZ.default.randomFillSync(Y1),E1=0;return Y1.slice(E1,E1+=16)};Object.defineProperty(rf,"__esModule",{value:!0});rf.default=kZ;var bZ=hZ(import.meta.require("crypto")),Y1=new Uint8Array(256),E1=Y1.length});var af=M((of)=>{Object.defineProperty(of,"__esModule",{value:!0});of.default=void 0;var cZ=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;of.default=cZ});var k0=M((ef)=>{var yZ=function($){return $&&$.__esModule?$:{default:$}},xZ=function($){return typeof $==="string"&&vZ.default.test($)};Object.defineProperty(ef,"__esModule",{value:!0});ef.default=void 0;var vZ=yZ(af()),uZ=xZ;ef.default=uZ});var D0=M((fU)=>{var dZ=function($){return $&&$.__esModule?$:{default:$}},wU=function($,w=0){return h[$[w+0]]+h[$[w+1]]+h[$[w+2]]+h[$[w+3]]+"-"+h[$[w+4]]+h[$[w+5]]+"-"+h[$[w+6]]+h[$[w+7]]+"-"+h[$[w+8]]+h[$[w+9]]+"-"+h[$[w+10]]+h[$[w+11]]+h[$[w+12]]+h[$[w+13]]+h[$[w+14]]+h[$[w+15]]},pZ=function($,w=0){const f=wU($,w);if(!_Z.default(f))throw TypeError("Stringified UUID is invalid");return f};Object.defineProperty(fU,"__esModule",{value:!0});fU.default=void 0;fU.unsafeStringify=wU;var _Z=dZ(k0()),h=[];for(let $=0;$<256;++$)h.push(($+256).toString(16).slice(1));var gZ=pZ;fU.default=gZ});var XU=M((WU)=>{var mZ=function($){return $&&$.__esModule?$:{default:$}},iZ=function($,w,f){let G=w&&f||0;const U=w||new Array(16);$=$||{};let W=$.node||GU,L=$.clockseq!==void 0?$.clockseq:A$;if(W==null||L==null){const Q=$.random||($.rng||lZ.default)();if(W==null)W=GU=[Q[0]|1,Q[1],Q[2],Q[3],Q[4],Q[5]];if(L==null)L=A$=(Q[6]<<8|Q[7])&16383}let X=$.msecs!==void 0?$.msecs:Date.now(),Z=$.nsecs!==void 0?$.nsecs:B$+1;const F=X-O$+(Z-B$)/1e4;if(F<0&&$.clockseq===void 0)L=L+1&16383;if((F<0||X>O$)&&$.nsecs===void 0)Z=0;if(Z>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");O$=X,B$=Z,A$=L,X+=12219292800000;const E=((X&268435455)*1e4+Z)%4294967296;U[G++]=E>>>24&255,U[G++]=E>>>16&255,U[G++]=E>>>8&255,U[G++]=E&255;const Y=X/4294967296*1e4&268435455;U[G++]=Y>>>8&255,U[G++]=Y&255,U[G++]=Y>>>24&15|16,U[G++]=Y>>>16&255,U[G++]=L>>>8|128,U[G++]=L&255;for(let Q=0;Q<6;++Q)U[G+Q]=W[Q];return w||nZ.unsafeStringify(U)};Object.defineProperty(WU,"__esModule",{value:!0});WU.default=void 0;var lZ=mZ(K$()),nZ=D0(),GU,A$,O$=0,B$=0,rZ=iZ;WU.default=rZ});var V$=M((ZU)=>{var tZ=function($){return $&&$.__esModule?$:{default:$}},aZ=function($){if(!oZ.default($))throw TypeError("Invalid UUID");let w;const f=new Uint8Array(16);return f[0]=(w=parseInt($.slice(0,8),16))>>>24,f[1]=w>>>16&255,f[2]=w>>>8&255,f[3]=w&255,f[4]=(w=parseInt($.slice(9,13),16))>>>8,f[5]=w&255,f[6]=(w=parseInt($.slice(14,18),16))>>>8,f[7]=w&255,f[8]=(w=parseInt($.slice(19,23),16))>>>8,f[9]=w&255,f[10]=(w=parseInt($.slice(24,36),16))/1099511627776&255,f[11]=w/4294967296&255,f[12]=w>>>24&255,f[13]=w>>>16&255,f[14]=w>>>8&255,f[15]=w&255,f};Object.defineProperty(ZU,"__esModule",{value:!0});ZU.default=void 0;var oZ=tZ(k0()),eZ=aZ;ZU.default=eZ});var T$=M((IU)=>{var fF=function($){return $&&$.__esModule?$:{default:$}},UF=function($){$=unescape(encodeURIComponent($));const w=[];for(let f=0;f<$.length;++f)w.push($.charCodeAt(f));return w},GF=function($,w,f){function G(U,W,L,X){var Z;if(typeof U==="string")U=UF(U);if(typeof W==="string")W=wF.default(W);if(((Z=W)===null||Z===void 0?void 0:Z.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let F=new Uint8Array(16+U.length);if(F.set(W),F.set(U,W.length),F=f(F),F[6]=F[6]&15|w,F[8]=F[8]&63|128,L){X=X||0;for(let E=0;E<16;++E)L[X+E]=F[E];return L}return $F.unsafeStringify(F)}try{G.name=$}catch(U){}return G.DNS=EU,G.URL=YU,G};Object.defineProperty(IU,"__esModule",{value:!0});IU.URL=IU.DNS=void 0;IU.default=GF;var $F=D0(),wF=fF(V$()),EU="6ba7b810-9dad-11d1-80b4-00c04fd430c8";IU.DNS=EU;var YU="6ba7b811-9dad-11d1-80b4-00c04fd430c8";IU.URL=YU});var MU=M((RU)=>{var ZF=function($){return $&&$.__esModule?$:{default:$}},FF=function($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return XF.default.createHash("md5").update($).digest()};Object.defineProperty(RU,"__esModule",{value:!0});RU.default=void 0;var XF=ZF(import.meta.require("crypto")),EF=FF;RU.default=EF});var OU=M((KU)=>{var JU=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(KU,"__esModule",{value:!0});KU.default=void 0;var YF=JU(T$()),IF=JU(MU()),QF=YF.default("v3",48,IF.default),RF=QF;KU.default=RF});var TU=M((BU)=>{var MF=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(BU,"__esModule",{value:!0});BU.default=void 0;var zF=MF(import.meta.require("crypto")),JF={randomUUID:zF.default.randomUUID};BU.default=JF});var PU=M((NU)=>{var CU=function($){return $&&$.__esModule?$:{default:$}},OF=function($,w,f){if(HU.default.randomUUID&&!w&&!$)return HU.default.randomUUID();$=$||{};const G=$.random||($.rng||KF.default)();if(G[6]=G[6]&15|64,G[8]=G[8]&63|128,w){f=f||0;for(let U=0;U<16;++U)w[f+U]=G[U];return w}return AF.unsafeStringify(G)};Object.defineProperty(NU,"__esModule",{value:!0});NU.default=void 0;var HU=CU(TU()),KF=CU(K$()),AF=D0(),BF=OF;NU.default=BF});var bU=M((jU)=>{var TF=function($){return $&&$.__esModule?$:{default:$}},HF=function($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return VF.default.createHash("sha1").update($).digest()};Object.defineProperty(jU,"__esModule",{value:!0});jU.default=void 0;var VF=TF(import.meta.require("crypto")),CF=HF;jU.default=CF});var cU=M((kU)=>{var hU=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(kU,"__esModule",{value:!0});kU.default=void 0;var NF=hU(T$()),qF=hU(bU()),PF=NF.default("v5",80,qF.default),jF=PF;kU.default=jF});var xU=M((vU)=>{Object.defineProperty(vU,"__esModule",{value:!0});vU.default=void 0;var SF="00000000-0000-0000-0000-000000000000";vU.default=SF});var dU=M((uU)=>{var hF=function($){return $&&$.__esModule?$:{default:$}},kF=function($){if(!bF.default($))throw TypeError("Invalid UUID");return parseInt($.slice(14,15),16)};Object.defineProperty(uU,"__esModule",{value:!0});uU.default=void 0;var bF=hF(k0()),DF=kF;uU.default=DF});var H$=M((g)=>{var o=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(g,"__esModule",{value:!0});Object.defineProperty(g,"NIL",{enumerable:!0,get:function(){return uF.default}});Object.defineProperty(g,"parse",{enumerable:!0,get:function(){return gF.default}});Object.defineProperty(g,"stringify",{enumerable:!0,get:function(){return pF.default}});Object.defineProperty(g,"v1",{enumerable:!0,get:function(){return cF.default}});Object.defineProperty(g,"v3",{enumerable:!0,get:function(){return vF.default}});Object.defineProperty(g,"v4",{enumerable:!0,get:function(){return yF.default}});Object.defineProperty(g,"v5",{enumerable:!0,get:function(){return xF.default}});Object.defineProperty(g,"validate",{enumerable:!0,get:function(){return dF.default}});Object.defineProperty(g,"version",{enumerable:!0,get:function(){return _F.default}});var cF=o(XU()),vF=o(OU()),yF=o(PU()),xF=o(cU()),uF=o(xU()),_F=o(dU()),dF=o(k0()),pF=o(D0()),gF=o(V$())});var X0=M((v7,lU)=>{var{defineProperty:I1,getOwnPropertyDescriptor:sF,getOwnPropertyNames:lF}=Object,nF=Object.prototype.hasOwnProperty,K0=($,w)=>I1($,"name",{value:w,configurable:!0}),mF=($,w)=>{for(var f in w)I1($,f,{get:w[f],enumerable:!0})},iF=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of lF(w))if(!nF.call($,U)&&U!==f)I1($,U,{get:()=>w[U],enumerable:!(G=sF(w,U))||G.enumerable})}return $},rF=($)=>iF(I1({},"__esModule",{value:!0}),$),pU={};mF(pU,{isClockSkewCorrectedError:()=>gU,isClockSkewError:()=>f2,isRetryableByTrait:()=>w2,isServerError:()=>G2,isThrottlingError:()=>U2,isTransientError:()=>sU});lU.exports=rF(pU);var oF=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],tF=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],aF=["TimeoutError","RequestTimeout","RequestTimeoutException"],eF=[500,502,503,504],$2=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],w2=K0(($)=>$.$retryable!==void 0,"isRetryableByTrait"),f2=K0(($)=>oF.includes($.name),"isClockSkewError"),gU=K0(($)=>{var w;return(w=$.$metadata)==null?void 0:w.clockSkewCorrected},"isClockSkewCorrectedError"),U2=K0(($)=>{var w,f;return((w=$.$metadata)==null?void 0:w.httpStatusCode)===429||tF.includes($.name)||((f=$.$retryable)==null?void 0:f.throttling)==!0},"isThrottlingError"),sU=K0(($)=>{var w;return gU($)||aF.includes($.name)||$2.includes(($==null?void 0:$.code)||"")||eF.includes(((w=$.$metadata)==null?void 0:w.httpStatusCode)||0)},"isTransientError"),G2=K0(($)=>{var w;if(((w=$.$metadata)==null?void 0:w.httpStatusCode)!==void 0){const f=$.$metadata.httpStatusCode;if(500<=f&&f<=599&&!sU($))return!0;return!1}return!1},"isServerError")});var WG=M((y7,GG)=>{var{defineProperty:Q1,getOwnPropertyDescriptor:W2,getOwnPropertyNames:L2}=Object,X2=Object.prototype.hasOwnProperty,s=($,w)=>Q1($,"name",{value:w,configurable:!0}),Z2=($,w)=>{for(var f in w)Q1($,f,{get:w[f],enumerable:!0})},F2=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of L2(w))if(!X2.call($,U)&&U!==f)Q1($,U,{get:()=>w[U],enumerable:!(G=W2(w,U))||G.enumerable})}return $},E2=($)=>F2(Q1({},"__esModule",{value:!0}),$),mU={};Z2(mU,{AdaptiveRetryStrategy:()=>M2,ConfiguredRetryStrategy:()=>J2,DEFAULT_MAX_ATTEMPTS:()=>C$,DEFAULT_RETRY_DELAY_BASE:()=>c0,DEFAULT_RETRY_MODE:()=>Y2,DefaultRateLimiter:()=>oU,INITIAL_RETRY_TOKENS:()=>N$,INVOCATION_ID_HEADER:()=>Q2,MAXIMUM_RETRY_DELAY:()=>q$,NO_RETRY_INCREMENT:()=>$G,REQUEST_HEADER:()=>R2,RETRY_COST:()=>aU,RETRY_MODES:()=>iU,StandardRetryStrategy:()=>P$,THROTTLING_RETRY_DELAY_BASE:()=>tU,TIMEOUT_RETRY_COST:()=>eU});GG.exports=E2(mU);var iU=(($)=>{return $.STANDARD="standard",$.ADAPTIVE="adaptive",$})(iU||{}),C$=3,Y2="standard",I2=X0(),rU=class ${constructor(w){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(w==null?void 0:w.beta)??0.7,this.minCapacity=(w==null?void 0:w.minCapacity)??1,this.minFillRate=(w==null?void 0:w.minFillRate)??0.5,this.scaleConstant=(w==null?void 0:w.scaleConstant)??0.4,this.smooth=(w==null?void 0:w.smooth)??0.8;const f=this.getCurrentTimeInSeconds();this.lastThrottleTime=f,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(w){if(!this.enabled)return;if(this.refillTokenBucket(),w>this.currentCapacity){const f=(w-this.currentCapacity)/this.fillRate*1000;await new Promise((G)=>setTimeout(G,f))}this.currentCapacity=this.currentCapacity-w}refillTokenBucket(){const w=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=w;return}const f=(w-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+f),this.lastTimestamp=w}updateClientSendingRate(w){let f;if(this.updateMeasuredRate(),I2.isThrottlingError(w)){const U=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=U,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),f=this.cubicThrottle(U),this.enableTokenBucket()}else this.calculateTimeWindow(),f=this.cubicSuccess(this.getCurrentTimeInSeconds());const G=Math.min(f,2*this.measuredTxRate);this.updateTokenBucketRate(G)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(w){return this.getPrecise(w*this.beta)}cubicSuccess(w){return this.getPrecise(this.scaleConstant*Math.pow(w-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(w){this.refillTokenBucket(),this.fillRate=Math.max(w,this.minFillRate),this.maxCapacity=Math.max(w,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const w=this.getCurrentTimeInSeconds(),f=Math.floor(w*2)/2;if(this.requestCount++,f>this.lastTxRateBucket){const G=this.requestCount/(f-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(G*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=f}}getPrecise(w){return parseFloat(w.toFixed(8))}};s(rU,"DefaultRateLimiter");var oU=rU,c0=100,q$=20000,tU=500,N$=500,aU=5,eU=10,$G=1,Q2="amz-sdk-invocation-id",R2="amz-sdk-request",z2=s(()=>{let $=c0;return{computeNextBackoffDelay:s((G)=>{return Math.floor(Math.min(q$,Math.random()*2**G*$))},"computeNextBackoffDelay"),setDelayBase:s((G)=>{$=G},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),nU=s(({retryDelay:$,retryCount:w,retryCost:f})=>{return{getRetryCount:s(()=>w,"getRetryCount"),getRetryDelay:s(()=>Math.min(q$,$),"getRetryDelay"),getRetryCost:s(()=>f,"getRetryCost")}},"createDefaultRetryToken"),wG=class ${constructor(w){this.maxAttempts=w,this.mode="standard",this.capacity=N$,this.retryBackoffStrategy=z2(),this.maxAttemptsProvider=typeof w==="function"?w:async()=>w}async acquireInitialRetryToken(w){return nU({retryDelay:c0,retryCount:0})}async refreshRetryTokenForRetry(w,f){const G=await this.getMaxAttempts();if(this.shouldRetry(w,f,G)){const U=f.errorType;this.retryBackoffStrategy.setDelayBase(U==="THROTTLING"?tU:c0);const W=this.retryBackoffStrategy.computeNextBackoffDelay(w.getRetryCount()),L=f.retryAfterHint?Math.max(f.retryAfterHint.getTime()-Date.now()||0,W):W,X=this.getCapacityCost(U);return this.capacity-=X,nU({retryDelay:L,retryCount:w.getRetryCount()+1,retryCost:X})}throw new Error("No retry token available")}recordSuccess(w){this.capacity=Math.max(N$,this.capacity+(w.getRetryCost()??$G))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(w){return console.warn(`Max attempts provider could not resolve. Using default of ${C$}`),C$}}shouldRetry(w,f,G){return w.getRetryCount()+1<G&&this.capacity>=this.getCapacityCost(f.errorType)&&this.isRetryableError(f.errorType)}getCapacityCost(w){return w==="TRANSIENT"?eU:aU}isRetryableError(w){return w==="THROTTLING"||w==="TRANSIENT"}};s(wG,"StandardRetryStrategy");var P$=wG,fG=class ${constructor(w,f){this.maxAttemptsProvider=w,this.mode="adaptive";const{rateLimiter:G}=f??{};this.rateLimiter=G??new oU,this.standardRetryStrategy=new P$(w)}async acquireInitialRetryToken(w){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(w)}async refreshRetryTokenForRetry(w,f){return this.rateLimiter.updateClientSendingRate(f),this.standardRetryStrategy.refreshRetryTokenForRetry(w,f)}recordSuccess(w){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(w)}};s(fG,"AdaptiveRetryStrategy");var M2=fG,UG=class $ extends P${constructor(w,f=c0){super(typeof w==="function"?w:async()=>w);if(typeof f==="number")this.computeNextBackoffDelay=()=>f;else this.computeNextBackoffDelay=f}async refreshRetryTokenForRetry(w,f){const G=await super.refreshRetryTokenForRetry(w,f);return G.getRetryDelay=()=>this.computeNextBackoffDelay(G.getRetryCount()),G}};s(UG,"ConfiguredRetryStrategy");var J2=UG});var j$=M((x7,XG)=>{var{defineProperty:R1,getOwnPropertyDescriptor:K2,getOwnPropertyNames:A2}=Object,O2=Object.prototype.hasOwnProperty,B2=($,w)=>R1($,"name",{value:w,configurable:!0}),V2=($,w)=>{for(var f in w)R1($,f,{get:w[f],enumerable:!0})},T2=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of A2(w))if(!O2.call($,U)&&U!==f)R1($,U,{get:()=>w[U],enumerable:!(G=K2(w,U))||G.enumerable})}return $},H2=($)=>T2(R1({},"__esModule",{value:!0}),$),LG={};V2(LG,{isArrayBuffer:()=>C2});XG.exports=H2(LG);var C2=B2(($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]","isArrayBuffer")});var v0=M((u7,EG)=>{var{defineProperty:z1,getOwnPropertyDescriptor:N2,getOwnPropertyNames:q2}=Object,P2=Object.prototype.hasOwnProperty,ZG=($,w)=>z1($,"name",{value:w,configurable:!0}),j2=($,w)=>{for(var f in w)z1($,f,{get:w[f],enumerable:!0})},S2=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of q2(w))if(!P2.call($,U)&&U!==f)z1($,U,{get:()=>w[U],enumerable:!(G=N2(w,U))||G.enumerable})}return $},b2=($)=>S2(z1({},"__esModule",{value:!0}),$),FG={};j2(FG,{fromArrayBuffer:()=>k2,fromString:()=>D2});EG.exports=b2(FG);var h2=j$(),S$=import.meta.require("buffer"),k2=ZG(($,w=0,f=$.byteLength-w)=>{if(!h2.isArrayBuffer($))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return S$.Buffer.from($,w,f)},"fromArrayBuffer"),D2=ZG(($,w)=>{if(typeof $!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof $} (${$})`);return w?S$.Buffer.from($,w):S$.Buffer.from($)},"fromString")});var QG=M((YG)=>{Object.defineProperty(YG,"__esModule",{value:!0});YG.fromBase64=void 0;var c2=v0(),v2=/^[A-Za-z0-9+/]*={0,2}$/,y2=($)=>{if($.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!v2.exec($))throw new TypeError("Invalid base64 string.");const w=c2.fromString($,"base64");return new Uint8Array(w.buffer,w.byteOffset,w.byteLength)};YG.fromBase64=y2});var $0=M((d7,JG)=>{var{defineProperty:M1,getOwnPropertyDescriptor:x2,getOwnPropertyNames:u2}=Object,_2=Object.prototype.hasOwnProperty,b$=($,w)=>M1($,"name",{value:w,configurable:!0}),d2=($,w)=>{for(var f in w)M1($,f,{get:w[f],enumerable:!0})},p2=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of u2(w))if(!_2.call($,U)&&U!==f)M1($,U,{get:()=>w[U],enumerable:!(G=x2(w,U))||G.enumerable})}return $},g2=($)=>p2(M1({},"__esModule",{value:!0}),$),RG={};d2(RG,{fromUtf8:()=>MG,toUint8Array:()=>s2,toUtf8:()=>l2});JG.exports=g2(RG);var zG=v0(),MG=b$(($)=>{const w=zG.fromString($,"utf8");return new Uint8Array(w.buffer,w.byteOffset,w.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),s2=b$(($)=>{if(typeof $==="string")return MG($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},"toUint8Array"),l2=b$(($)=>{if(typeof $==="string")return $;if(typeof $!=="object"||typeof $.byteOffset!=="number"||typeof $.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return zG.fromArrayBuffer($.buffer,$.byteOffset,$.byteLength).toString("utf8")},"toUtf8")});var OG=M((KG)=>{Object.defineProperty(KG,"__esModule",{value:!0});KG.toBase64=void 0;var n2=v0(),m2=$0(),i2=($)=>{let w;if(typeof $==="string")w=m2.fromUtf8($);else w=$;if(typeof w!=="object"||typeof w.byteOffset!=="number"||typeof w.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return n2.fromArrayBuffer(w.buffer,w.byteOffset,w.byteLength).toString("base64")};KG.toBase64=i2});var K1=M((g7,J1)=>{var{defineProperty:BG,getOwnPropertyDescriptor:r2,getOwnPropertyNames:o2}=Object,t2=Object.prototype.hasOwnProperty,h$=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of o2(w))if(!t2.call($,U)&&U!==f)BG($,U,{get:()=>w[U],enumerable:!(G=r2(w,U))||G.enumerable})}return $},VG=($,w,f)=>(h$($,w,"default"),f&&h$(f,w,"default")),a2=($)=>h$(BG({},"__esModule",{value:!0}),$),k$={};J1.exports=a2(k$);VG(k$,QG(),J1.exports);VG(k$,OG(),J1.exports)});var CG=M((TG)=>{Object.defineProperty(TG,"__esModule",{value:!0});TG.getAwsChunkedEncodingStream=void 0;var e2=import.meta.require("stream"),$E=($,w)=>{const{base64Encoder:f,bodyLengthChecker:G,checksumAlgorithmFn:U,checksumLocationName:W,streamHasher:L}=w,X=f!==void 0&&U!==void 0&&W!==void 0&&L!==void 0,Z=X?L(U,$):void 0,F=new e2.Readable({read:()=>{}});return $.on("data",(E)=>{const Y=G(E)||0;F.push(`${Y.toString(16)}\r\n`),F.push(E),F.push("\r\n")}),$.on("end",async()=>{if(F.push("0\r\n"),X){const E=f(await Z);F.push(`${W}:${E}\r\n`),F.push("\r\n")}F.push(null)}),F};TG.getAwsChunkedEncodingStream=$E});var c$=M((l7,jG)=>{var PG=function($){const w=[];for(let f of Object.keys($).sort()){const G=$[f];if(f=D$.escapeUri(f),Array.isArray(G))for(let U=0,W=G.length;U<W;U++)w.push(`${f}=${D$.escapeUri(G[U])}`);else{let U=f;if(G||typeof G==="string")U+=`=${D$.escapeUri(G)}`;w.push(U)}}return w.join("&")},A1=Object.defineProperty,wE=Object.getOwnPropertyDescriptor,fE=Object.getOwnPropertyNames,UE=Object.prototype.hasOwnProperty,GE=($,w)=>A1($,"name",{value:w,configurable:!0}),WE=($,w)=>{for(var f in w)A1($,f,{get:w[f],enumerable:!0})},LE=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of fE(w))if(!UE.call($,U)&&U!==f)A1($,U,{get:()=>w[U],enumerable:!(G=wE(w,U))||G.enumerable})}return $},XE=($)=>LE(A1({},"__esModule",{value:!0}),$),qG={};WE(qG,{buildQueryString:()=>PG});jG.exports=XE(qG);var D$=NG();GE(PG,"buildQueryString")});var nG=M((n7,lG)=>{async function x$($,w,f=SG){const G=w.headers??{},U=G.Expect||G.expect;let W=-1,L=!1;if(U==="100-continue")await Promise.race([new Promise((X)=>{W=Number(setTimeout(X,Math.max(SG,f)))}),new Promise((X)=>{$.on("continue",()=>{clearTimeout(W),X()}),$.on("error",()=>{L=!0,clearTimeout(W),X()})})]);if(!L)xG($,w.body)}var xG=function($,w){if(w instanceof yG.Readable){w.pipe($);return}if(w){if(Buffer.isBuffer(w)||typeof w==="string"){$.end(w);return}const f=w;if(typeof f==="object"&&f.buffer&&typeof f.byteOffset==="number"&&typeof f.byteLength==="number"){$.end(Buffer.from(f.buffer,f.byteOffset,f.byteLength));return}$.end(Buffer.from(w));return}$.end()};async function sG($){const w=[],f=$.getReader();let G=!1,U=0;while(!G){const{done:X,value:Z}=await f.read();if(Z)w.push(Z),U+=Z.length;G=X}const W=new Uint8Array(U);let L=0;for(let X of w)W.set(X,L),L+=X.length;return W}var{create:ZE,defineProperty:y0,getOwnPropertyDescriptor:FE,getOwnPropertyNames:EE,getPrototypeOf:YE}=Object,IE=Object.prototype.hasOwnProperty,q=($,w)=>y0($,"name",{value:w,configurable:!0}),QE=($,w)=>{for(var f in w)y0($,f,{get:w[f],enumerable:!0})},hG=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of EE(w))if(!IE.call($,U)&&U!==f)y0($,U,{get:()=>w[U],enumerable:!(G=FE(w,U))||G.enumerable})}return $},RE=($,w,f)=>(f=$!=null?ZE(YE($)):{},hG(w||!$||!$.__esModule?y0(f,"default",{value:$,enumerable:!0}):f,$)),zE=($)=>hG(y0({},"__esModule",{value:!0}),$),kG={};QE(kG,{DEFAULT_REQUEST_TIMEOUT:()=>OE,NodeHttp2Handler:()=>CE,NodeHttpHandler:()=>BE,streamCollector:()=>qE});lG.exports=zE(kG);var DG=r(),cG=c$(),v$=import.meta.require("http"),y$=import.meta.require("https"),ME=["ECONNRESET","EPIPE","ETIMEDOUT"],vG=q(($)=>{const w={};for(let f of Object.keys($)){const G=$[f];w[f]=Array.isArray(G)?G.join(","):G}return w},"getTransformedHeaders"),JE=q(($,w,f=0)=>{if(!f)return;const G=setTimeout(()=>{$.destroy(),w(Object.assign(new Error(`Socket timed out without establishing a connection within ${f} ms`),{name:"TimeoutError"}))},f);$.on("socket",(U)=>{if(U.connecting)U.on("connect",()=>{clearTimeout(G)});else clearTimeout(G)})},"setConnectionTimeout"),KE=q(($,{keepAlive:w,keepAliveMsecs:f})=>{if(w!==!0)return;$.on("socket",(G)=>{G.setKeepAlive(w,f||0)})},"setSocketKeepAlive"),AE=q(($,w,f=0)=>{$.setTimeout(f,()=>{$.destroy(),w(Object.assign(new Error(`Connection timed out after ${f} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),yG=import.meta.require("stream"),SG=1000;q(x$,"writeRequestBody");q(xG,"writeBody");var OE=0,uG=class ${constructor(w){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((f,G)=>{if(typeof w==="function")w().then((U)=>{f(this.resolveDefaultConfig(U))}).catch(G);else f(this.resolveDefaultConfig(w))})}static create(w){if(typeof(w==null?void 0:w.handle)==="function")return w;return new $(w)}static checkSocketUsage(w,f,G=console){var U,W,L;const{sockets:X,requests:Z,maxSockets:F}=w;if(typeof F!=="number"||F===Infinity)return f;const E=15000;if(Date.now()-E<f)return f;if(X&&Z)for(let Y in X){const Q=((U=X[Y])==null?void 0:U.length)??0,I=((W=Z[Y])==null?void 0:W.length)??0;if(Q>=F&&I>=2*F)return(L=G==null?void 0:G.warn)==null||L.call(G,`@smithy/node-http-handler:WARN - socket usage at capacity=${Q} and ${I} additional requests are enqueued.
2
- See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
3
- or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return f}resolveDefaultConfig(w){const{requestTimeout:f,connectionTimeout:G,socketTimeout:U,httpAgent:W,httpsAgent:L}=w||{};return{connectionTimeout:G,requestTimeout:f??U,httpAgent:(()=>{if(W instanceof v$.Agent||typeof(W==null?void 0:W.destroy)==="function")return W;return new v$.Agent({keepAlive:!0,maxSockets:50,...W})})(),httpsAgent:(()=>{if(L instanceof y$.Agent||typeof(L==null?void 0:L.destroy)==="function")return L;return new y$.Agent({keepAlive:!0,maxSockets:50,...L})})(),logger:console}}destroy(){var w,f,G,U;(f=(w=this.config)==null?void 0:w.httpAgent)==null||f.destroy(),(U=(G=this.config)==null?void 0:G.httpsAgent)==null||U.destroy()}async handle(w,{abortSignal:f}={}){if(!this.config)this.config=await this.configProvider;let G;return new Promise((U,W)=>{let L=void 0;const X=q(async(A)=>{await L,clearTimeout(G),U(A)},"resolve"),Z=q(async(A)=>{await L,clearTimeout(G),W(A)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(f==null?void 0:f.aborted){const A=new Error("Request aborted");A.name="AbortError",Z(A);return}const F=w.protocol==="https:",E=F?this.config.httpsAgent:this.config.httpAgent;G=setTimeout(()=>{this.socketWarningTimestamp=$.checkSocketUsage(E,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const Y=cG.buildQueryString(w.query||{});let Q=void 0;if(w.username!=null||w.password!=null){const A=w.username??"",B=w.password??"";Q=`${A}:${B}`}let I=w.path;if(Y)I+=`?${Y}`;if(w.fragment)I+=`#${w.fragment}`;const R={headers:w.headers,host:w.hostname,method:w.method,path:I,port:w.port,agent:E,auth:Q},O=(F?y$.request:v$.request)(R,(A)=>{const B=new DG.HttpResponse({statusCode:A.statusCode||-1,reason:A.statusMessage,headers:vG(A.headers),body:A});X({response:B})});if(O.on("error",(A)=>{if(ME.includes(A.code))Z(Object.assign(A,{name:"TimeoutError"}));else Z(A)}),JE(O,Z,this.config.connectionTimeout),AE(O,Z,this.config.requestTimeout),f){const A=q(()=>{O.destroy();const B=new Error("Request aborted");B.name="AbortError",Z(B)},"onAbort");if(typeof f.addEventListener==="function"){const B=f;B.addEventListener("abort",A,{once:!0}),O.once("close",()=>B.removeEventListener("abort",A))}else f.onabort=A}const K=R.agent;if(typeof K==="object"&&"keepAlive"in K)KE(O,{keepAlive:K.keepAlive,keepAliveMsecs:K.keepAliveMsecs});L=x$(O,w,this.config.requestTimeout).catch((A)=>{return clearTimeout(G),W(A)})})}updateHttpClientConfig(w,f){this.config=void 0,this.configProvider=this.configProvider.then((G)=>{return{...G,[w]:f}})}httpHandlerConfigs(){return this.config??{}}};q(uG,"NodeHttpHandler");var BE=uG,bG=import.meta.require("http2"),VE=RE(import.meta.require("http2")),_G=class ${constructor(w){this.sessions=[],this.sessions=w??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(w){this.sessions.push(w)}contains(w){return this.sessions.includes(w)}remove(w){this.sessions=this.sessions.filter((f)=>f!==w)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(w){for(let f of this.sessions)if(f===w){if(!f.destroyed)f.destroy()}}};q(_G,"NodeHttp2ConnectionPool");var TE=_G,dG=class ${constructor(w){if(this.sessionCache=new Map,this.config=w,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(w,f){const G=this.getUrlString(w),U=this.sessionCache.get(G);if(U){const Z=U.poll();if(Z&&!this.config.disableConcurrency)return Z}const W=VE.default.connect(G);if(this.config.maxConcurrency)W.settings({maxConcurrentStreams:this.config.maxConcurrency},(Z)=>{if(Z)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+w.destination.toString())});W.unref();const L=q(()=>{W.destroy(),this.deleteSession(G,W)},"destroySessionCb");if(W.on("goaway",L),W.on("error",L),W.on("frameError",L),W.on("close",()=>this.deleteSession(G,W)),f.requestTimeout)W.setTimeout(f.requestTimeout,L);const X=this.sessionCache.get(G)||new TE;return X.offerLast(W),this.sessionCache.set(G,X),W}deleteSession(w,f){const G=this.sessionCache.get(w);if(!G)return;if(!G.contains(f))return;G.remove(f),this.sessionCache.set(w,G)}release(w,f){var G;const U=this.getUrlString(w);(G=this.sessionCache.get(U))==null||G.offerLast(f)}destroy(){for(let[w,f]of this.sessionCache){for(let G of f){if(!G.destroyed)G.destroy();f.remove(G)}this.sessionCache.delete(w)}}setMaxConcurrentStreams(w){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=w}setDisableConcurrentStreams(w){this.config.disableConcurrency=w}getUrlString(w){return w.destination.toString()}};q(dG,"NodeHttp2ConnectionManager");var HE=dG,pG=class ${constructor(w){this.metadata={handlerProtocol:"h2"},this.connectionManager=new HE({}),this.configProvider=new Promise((f,G)=>{if(typeof w==="function")w().then((U)=>{f(U||{})}).catch(G);else f(w||{})})}static create(w){if(typeof(w==null?void 0:w.handle)==="function")return w;return new $(w)}destroy(){this.connectionManager.destroy()}async handle(w,{abortSignal:f}={}){if(!this.config){if(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams)this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}const{requestTimeout:G,disableConcurrentStreams:U}=this.config;return new Promise((W,L)=>{var X;let Z=!1,F=void 0;const E=q(async(N)=>{await F,W(N)},"resolve"),Y=q(async(N)=>{await F,L(N)},"reject");if(f==null?void 0:f.aborted){Z=!0;const N=new Error("Request aborted");N.name="AbortError",Y(N);return}const{hostname:Q,method:I,port:R,protocol:J,query:O}=w;let K="";if(w.username!=null||w.password!=null){const N=w.username??"",d=w.password??"";K=`${N}:${d}@`}const A=`${J}//${K}${Q}${R?`:${R}`:""}`,B={destination:new URL(A)},T=this.connectionManager.lease(B,{requestTimeout:(X=this.config)==null?void 0:X.sessionTimeout,disableConcurrentStreams:U||!1}),S=q((N)=>{if(U)this.destroySession(T);Z=!0,Y(N)},"rejectWithDestroy"),gw=cG.buildQueryString(O||{});let W$=w.path;if(gw)W$+=`?${gw}`;if(w.fragment)W$+=`#${w.fragment}`;const y=T.request({...w.headers,[bG.constants.HTTP2_HEADER_PATH]:W$,[bG.constants.HTTP2_HEADER_METHOD]:I});if(T.ref(),y.on("response",(N)=>{const d=new DG.HttpResponse({statusCode:N[":status"]||-1,headers:vG(N),body:y});if(Z=!0,E({response:d}),U)T.close(),this.connectionManager.deleteSession(A,T)}),G)y.setTimeout(G,()=>{y.close();const N=new Error(`Stream timed out because of no activity for ${G} ms`);N.name="TimeoutError",S(N)});if(f){const N=q(()=>{y.close();const d=new Error("Request aborted");d.name="AbortError",S(d)},"onAbort");if(typeof f.addEventListener==="function"){const d=f;d.addEventListener("abort",N,{once:!0}),y.once("close",()=>d.removeEventListener("abort",N))}else f.onabort=N}y.on("frameError",(N,d,v6)=>{S(new Error(`Frame type id ${N} in stream id ${v6} has failed with code ${d}.`))}),y.on("error",S),y.on("aborted",()=>{S(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${y.rstCode}.`))}),y.on("close",()=>{if(T.unref(),U)T.destroy();if(!Z)S(new Error("Unexpected error: http2 request did not get a response"))}),F=x$(y,w,G)})}updateHttpClientConfig(w,f){this.config=void 0,this.configProvider=this.configProvider.then((G)=>{return{...G,[w]:f}})}httpHandlerConfigs(){return this.config??{}}destroySession(w){if(!w.destroyed)w.destroy()}};q(pG,"NodeHttp2Handler");var CE=pG,gG=class $ extends yG.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(w,f,G){this.bufferedBytes.push(w),G()}};q(gG,"Collector");var NE=gG,qE=q(($)=>{if(PE($))return sG($);return new Promise((w,f)=>{const G=new NE;$.pipe(G),$.on("error",(U)=>{G.end(),f(U)}),G.on("error",f),G.on("finish",function(){const U=new Uint8Array(Buffer.concat(this.bufferedBytes));w(U)})})},"streamCollector"),PE=q(($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream,"isReadableStreamInstance");q(sG,"collectReadableStream")});var wW=M((m7,$W)=>{var rG=function($=0){return new Promise((w,f)=>{if($)setTimeout(()=>{const G=new Error(`Request did not complete within ${$} ms`);G.name="TimeoutError",f(G)},$)})};async function tG($){const w=await eG($),f=yE.fromBase64(w);return new Uint8Array(f)}async function aG($){const w=[],f=$.getReader();let G=!1,U=0;while(!G){const{done:X,value:Z}=await f.read();if(Z)w.push(Z),U+=Z.length;G=X}const W=new Uint8Array(U);let L=0;for(let X of w)W.set(X,L),L+=X.length;return W}var eG=function($){return new Promise((w,f)=>{const G=new FileReader;G.onloadend=()=>{if(G.readyState!==2)return f(new Error("Reader aborted too early"));const U=G.result??"",W=U.indexOf(","),L=W>-1?W+1:U.length;w(U.substring(L))},G.onabort=()=>f(new Error("Read aborted")),G.onerror=()=>f(G.error),G.readAsDataURL($)})},B1=Object.defineProperty,jE=Object.getOwnPropertyDescriptor,SE=Object.getOwnPropertyNames,bE=Object.prototype.hasOwnProperty,t=($,w)=>B1($,"name",{value:w,configurable:!0}),hE=($,w)=>{for(var f in w)B1($,f,{get:w[f],enumerable:!0})},kE=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of SE(w))if(!bE.call($,U)&&U!==f)B1($,U,{get:()=>w[U],enumerable:!(G=jE(w,U))||G.enumerable})}return $},DE=($)=>kE(B1({},"__esModule",{value:!0}),$),iG={};hE(iG,{FetchHttpHandler:()=>vE,keepAliveSupport:()=>O1,streamCollector:()=>xE});$W.exports=DE(iG);var mG=r(),cE=c$();t(rG,"requestTimeout");var O1={supported:void 0},oG=class ${static create(w){if(typeof(w==null?void 0:w.handle)==="function")return w;return new $(w)}constructor(w){if(typeof w==="function")this.configProvider=w().then((f)=>f||{});else this.config=w??{},this.configProvider=Promise.resolve(this.config);if(O1.supported===void 0)O1.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in new Request("https://[::1]"))}destroy(){}async handle(w,{abortSignal:f}={}){if(!this.config)this.config=await this.configProvider;const G=this.config.requestTimeout,U=this.config.keepAlive===!0,W=this.config.credentials;if(f==null?void 0:f.aborted){const K=new Error("Request aborted");return K.name="AbortError",Promise.reject(K)}let L=w.path;const X=cE.buildQueryString(w.query||{});if(X)L+=`?${X}`;if(w.fragment)L+=`#${w.fragment}`;let Z="";if(w.username!=null||w.password!=null){const K=w.username??"",A=w.password??"";Z=`${K}:${A}@`}const{port:F,method:E}=w,Y=`${w.protocol}//${Z}${w.hostname}${F?`:${F}`:""}${L}`,Q=E==="GET"||E==="HEAD"?void 0:w.body,I={body:Q,headers:new Headers(w.headers),method:E,credentials:W};if(Q)I.duplex="half";if(typeof AbortController!=="undefined")I.signal=f;if(O1.supported)I.keepalive=U;let R=t(()=>{},"removeSignalEventListener");const J=new Request(Y,I),O=[fetch(J).then((K)=>{const A=K.headers,B={};for(let S of A.entries())B[S[0]]=S[1];if(K.body==null)return K.blob().then((S)=>({response:new mG.HttpResponse({headers:B,reason:K.statusText,statusCode:K.status,body:S})}));return{response:new mG.HttpResponse({headers:B,reason:K.statusText,statusCode:K.status,body:K.body})}}),rG(G)];if(f)O.push(new Promise((K,A)=>{const B=t(()=>{const T=new Error("Request aborted");T.name="AbortError",A(T)},"onAbort");if(typeof f.addEventListener==="function"){const T=f;T.addEventListener("abort",B,{once:!0}),R=t(()=>T.removeEventListener("abort",B),"removeSignalEventListener")}else f.onabort=B}));return Promise.race(O).finally(R)}updateHttpClientConfig(w,f){this.config=void 0,this.configProvider=this.configProvider.then((G)=>{return G[w]=f,G})}httpHandlerConfigs(){return this.config??{}}};t(oG,"FetchHttpHandler");var vE=oG,yE=K1(),xE=t(($)=>{if(typeof Blob==="function"&&$ instanceof Blob)return tG($);return aG($)},"streamCollector");t(tG,"collectBlob");t(aG,"collectStream");t(eG,"readToBase64")});var x0=M((fW)=>{Object.defineProperty(fW,"__esModule",{value:!0});fW.isReadableStream=void 0;var uE=($)=>{var w;return typeof ReadableStream==="function"&&(((w=$===null||$===void 0?void 0:$.constructor)===null||w===void 0?void 0:w.name)===ReadableStream.name||$ instanceof ReadableStream)};fW.isReadableStream=uE});var EW=M((ZW)=>{Object.defineProperty(ZW,"__esModule",{value:!0});ZW.sdkStreamMixin=void 0;var _E=wW(),dE=K1(),pE=XW(),gE=$0(),GW=x0(),WW="The stream has already been transformed.",sE=($)=>{var w,f;if(!LW($)&&!GW.isReadableStream($)){const L=((f=(w=$===null||$===void 0?void 0:$.__proto__)===null||w===void 0?void 0:w.constructor)===null||f===void 0?void 0:f.name)||$;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${L}`)}let G=!1;const U=async()=>{if(G)throw new Error(WW);return G=!0,await _E.streamCollector($)},W=(L)=>{if(typeof L.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return L.stream()};return Object.assign($,{transformToByteArray:U,transformToString:async(L)=>{const X=await U();if(L==="base64")return dE.toBase64(X);else if(L==="hex")return pE.toHex(X);else if(L===void 0||L==="utf8"||L==="utf-8")return gE.toUtf8(X);else if(typeof TextDecoder==="function")return new TextDecoder(L).decode(X);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(G)throw new Error(WW);if(G=!0,LW($))return W($);else if(GW.isReadableStream($))return $;else throw new Error(`Cannot transform payload to web stream, got ${$}`)}})};ZW.sdkStreamMixin=sE;var LW=($)=>typeof Blob==="function"&&$ instanceof Blob});var RW=M((IW)=>{Object.defineProperty(IW,"__esModule",{value:!0});IW.sdkStreamMixin=void 0;var lE=nG(),nE=v0(),u$=import.meta.require("stream"),mE=import.meta.require("util"),iE=EW(),YW="The stream has already been transformed.",rE=($)=>{var w,f;if(!($ instanceof u$.Readable))try{return iE.sdkStreamMixin($)}catch(W){const L=((f=(w=$===null||$===void 0?void 0:$.__proto__)===null||w===void 0?void 0:w.constructor)===null||f===void 0?void 0:f.name)||$;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${L}`)}let G=!1;const U=async()=>{if(G)throw new Error(YW);return G=!0,await lE.streamCollector($)};return Object.assign($,{transformToByteArray:U,transformToString:async(W)=>{const L=await U();if(W===void 0||Buffer.isEncoding(W))return nE.fromArrayBuffer(L.buffer,L.byteOffset,L.byteLength).toString(W);else return new mE.TextDecoder(W).decode(L)},transformToWebStream:()=>{if(G)throw new Error(YW);if($.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof u$.Readable.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return G=!0,u$.Readable.toWeb($)}})};IW.sdkStreamMixin=rE});var JW=M((zW)=>{async function oE($){if(typeof $.stream==="function")$=$.stream();return $.tee()}Object.defineProperty(zW,"__esModule",{value:!0});zW.splitStream=void 0;zW.splitStream=oE});var BW=M((AW)=>{async function eE($){if(aE.isReadableStream($))return tE.splitStream($);const w=new KW.PassThrough,f=new KW.PassThrough;return $.pipe(w),$.pipe(f),[w,f]}Object.defineProperty(AW,"__esModule",{value:!0});AW.splitStream=void 0;var KW=import.meta.require("stream"),tE=JW(),aE=x0();AW.splitStream=eE});var HW=M((VW)=>{async function $Y($,w){var f;let G=0;const U=[],W=$.getReader();let L=!1;while(!L){const{done:F,value:E}=await W.read();if(E)U.push(E),G+=(f=E===null||E===void 0?void 0:E.byteLength)!==null&&f!==void 0?f:0;if(G>=w)break;L=F}W.releaseLock();const X=new Uint8Array(Math.min(w,G));let Z=0;for(let F of U){if(F.byteLength>X.byteLength-Z){X.set(F.subarray(0,X.byteLength-Z),Z);break}else X.set(F,Z);Z+=F.length}return X}Object.defineProperty(VW,"__esModule",{value:!0});VW.headStream=void 0;VW.headStream=$Y});var PW=M((NW)=>{Object.defineProperty(NW,"__esModule",{value:!0});NW.headStream=void 0;var wY=import.meta.require("stream"),fY=HW(),UY=x0(),GY=($,w)=>{if(UY.isReadableStream($))return fY.headStream($,w);return new Promise((f,G)=>{const U=new CW;U.limit=w,$.pipe(U),$.on("error",(W)=>{U.end(),G(W)}),U.on("error",G),U.on("finish",function(){const W=new Uint8Array(Buffer.concat(this.buffers));f(W)})})};NW.headStream=GY;class CW extends wY.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=Infinity,this.bytesBuffered=0}_write($,w,f){var G;if(this.buffers.push($),this.bytesBuffered+=(G=$.byteLength)!==null&&G!==void 0?G:0,this.bytesBuffered>=this.limit){const U=this.bytesBuffered-this.limit,W=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=W.subarray(0,W.byteLength-U),this.emit("finish")}f()}}});var DW=M((wz,F0)=>{var bW=function($,w="utf-8"){if(w==="base64")return jW.toBase64($);return SW.toUtf8($)},hW=function($,w){if(w==="base64")return d$.mutate(jW.fromBase64($));return d$.mutate(SW.fromUtf8($))},V1=Object.defineProperty,WY=Object.getOwnPropertyDescriptor,LY=Object.getOwnPropertyNames,XY=Object.prototype.hasOwnProperty,p$=($,w)=>V1($,"name",{value:w,configurable:!0}),ZY=($,w)=>{for(var f in w)V1($,f,{get:w[f],enumerable:!0})},_$=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of LY(w))if(!XY.call($,U)&&U!==f)V1($,U,{get:()=>w[U],enumerable:!(G=WY(w,U))||G.enumerable})}return $},u0=($,w,f)=>(_$($,w,"default"),f&&_$(f,w,"default")),FY=($)=>_$(V1({},"__esModule",{value:!0}),$),Z0={};ZY(Z0,{Uint8ArrayBlobAdapter:()=>d$});F0.exports=FY(Z0);var jW=K1(),SW=$0();p$(bW,"transformToString");p$(hW,"transformFromString");var kW=class $ extends Uint8Array{static fromString(w,f="utf-8"){switch(typeof w){case"string":return hW(w,f);default:throw new Error(`Unsupported conversion from ${typeof w} to Uint8ArrayBlobAdapter.`)}}static mutate(w){return Object.setPrototypeOf(w,$.prototype),w}transformToString(w="utf-8"){return bW(this,w)}};p$(kW,"Uint8ArrayBlobAdapter");var d$=kW;u0(Z0,CG(),F0.exports);u0(Z0,RW(),F0.exports);u0(Z0,BW(),F0.exports);u0(Z0,PW(),F0.exports);u0(Z0,x0(),F0.exports)});var V0=M((fz,U8)=>{var iW=function($){const w=$.getUTCFullYear(),f=$.getUTCMonth(),G=$.getUTCDay(),U=$.getUTCDate(),W=$.getUTCHours(),L=$.getUTCMinutes(),X=$.getUTCSeconds(),Z=U<10?`0${U}`:`${U}`,F=W<10?`0${W}`:`${W}`,E=L<10?`0${L}`:`${L}`,Y=X<10?`0${X}`:`${X}`;return`${xY[G]}, ${Z} ${e$[f]} ${w} ${F}:${E}:${Y} GMT`},C1=function($){return encodeURIComponent($).replace(/[!'()*]/g,function(w){return"%"+w.charCodeAt(0).toString(16).toUpperCase()})},$w=function($,w,f){let G,U,W;if(typeof w==="undefined"&&typeof f==="undefined")G={},W=$;else if(G=$,typeof w==="function")return U=w,W=f,JI(G,U,W);else W=w;for(let L of Object.keys(W)){if(!Array.isArray(W[L])){G[L]=W[L];continue}w8(G,null,W,L)}return G},f8=function($,w,f){if(f<=0||!Number.isInteger(f))throw new Error("Invalid number of delimiters ("+f+") for splitEvery.");const G=$.split(w);if(f===1)return G;const U=[];let W="";for(let L=0;L<G.length;L++){if(W==="")W=G[L];else W+=w+G[L];if((L+1)%f===0)U.push(W),W=""}if(W!=="")U.push(W);return U},N1=Object.defineProperty,YY=Object.getOwnPropertyDescriptor,IY=Object.getOwnPropertyNames,QY=Object.prototype.hasOwnProperty,z=($,w)=>N1($,"name",{value:w,configurable:!0}),RY=($,w)=>{for(var f in w)N1($,f,{get:w[f],enumerable:!0})},zY=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of IY(w))if(!QY.call($,U)&&U!==f)N1($,U,{get:()=>w[U],enumerable:!(G=YY(w,U))||G.enumerable})}return $},MY=($)=>zY(N1({},"__esModule",{value:!0}),$),vW={};RY(vW,{Client:()=>KY,Command:()=>dW,LazyJsonString:()=>RI,NoOpLogger:()=>JY,SENSITIVE_STRING:()=>BY,ServiceException:()=>fI,StringWrapper:()=>s0,_json:()=>r$,collectBody:()=>AY,convertMap:()=>zI,createAggregatedClient:()=>VY,dateToUtcString:()=>iW,decorateServiceException:()=>oW,emitWarningIfUnsupportedVersion:()=>LI,expectBoolean:()=>HY,expectByte:()=>i$,expectFloat32:()=>T1,expectInt:()=>NY,expectInt32:()=>n$,expectLong:()=>p0,expectNonNull:()=>PY,expectNumber:()=>d0,expectObject:()=>gW,expectShort:()=>m$,expectString:()=>jY,expectUnion:()=>SY,extendedEncodeURIComponent:()=>C1,getArrayIfSingleItem:()=>QI,getDefaultClientConfiguration:()=>YI,getDefaultExtensionConfiguration:()=>aW,getValueFromTextNode:()=>eW,handleFloat:()=>kY,limitedParseDouble:()=>a$,limitedParseFloat:()=>DY,limitedParseFloat32:()=>cY,loadConfigsForDefaultMode:()=>WI,logger:()=>g0,map:()=>$w,parseBoolean:()=>TY,parseEpochTimestamp:()=>mY,parseRfc3339DateTime:()=>_Y,parseRfc3339DateTimeWithOffset:()=>pY,parseRfc7231DateTime:()=>nY,resolveDefaultRuntimeConfig:()=>II,resolvedPath:()=>OI,serializeDateTime:()=>VI,serializeFloat:()=>BI,splitEvery:()=>f8,strictParseByte:()=>mW,strictParseDouble:()=>t$,strictParseFloat:()=>bY,strictParseFloat32:()=>sW,strictParseInt:()=>vY,strictParseInt32:()=>yY,strictParseLong:()=>nW,strictParseShort:()=>A0,take:()=>MI,throwDefaultError:()=>tW,withBaseException:()=>UI});U8.exports=MY(vW);var yW=class ${trace(){}debug(){}info(){}warn(){}error(){}};z(yW,"NoOpLogger");var JY=yW,xW=EY(),uW=class ${constructor(w){this.middlewareStack=xW.constructStack(),this.config=w}send(w,f,G){const U=typeof f!=="function"?f:void 0,W=typeof f==="function"?f:G,L=w.resolveMiddleware(this.middlewareStack,this.config,U);if(W)L(w).then((X)=>W(null,X.output),(X)=>W(X)).catch(()=>{});else return L(w).then((X)=>X.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}};z(uW,"Client");var KY=uW,g$=DW(),AY=z(async($=new Uint8Array,w)=>{if($ instanceof Uint8Array)return g$.Uint8ArrayBlobAdapter.mutate($);if(!$)return g$.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const f=w.streamCollector($);return g$.Uint8ArrayBlobAdapter.mutate(await f)},"collectBody"),l$=z0(),_W=class ${constructor(){this.middlewareStack=xW.constructStack()}static classBuilder(){return new OY}resolveMiddlewareWithContext(w,f,G,{middlewareFn:U,clientName:W,commandName:L,inputFilterSensitiveLog:X,outputFilterSensitiveLog:Z,smithyContext:F,additionalContext:E,CommandCtor:Y}){for(let O of U.bind(this)(Y,w,f,G))this.middlewareStack.use(O);const Q=w.concat(this.middlewareStack),{logger:I}=f,R={logger:I,clientName:W,commandName:L,inputFilterSensitiveLog:X,outputFilterSensitiveLog:Z,[l$.SMITHY_CONTEXT_KEY]:{commandInstance:this,...F},...E},{requestHandler:J}=f;return Q.resolve((O)=>J.handle(O.request,G||{}),R)}};z(_W,"Command");var dW=_W,pW=class ${constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(w)=>w,this._outputFilterSensitiveLog=(w)=>w,this._serializer=null,this._deserializer=null}init(w){this._init=w}ep(w){return this._ep=w,this}m(w){return this._middlewareFn=w,this}s(w,f,G={}){return this._smithyContext={service:w,operation:f,...G},this}c(w={}){return this._additionalContext=w,this}n(w,f){return this._clientName=w,this._commandName=f,this}f(w=(G)=>G,f=(G)=>G){return this._inputFilterSensitiveLog=w,this._outputFilterSensitiveLog=f,this}ser(w){return this._serializer=w,this}de(w){return this._deserializer=w,this}build(){var w;const f=this;let G;return G=(w=class extends dW{constructor(...[U]){super();this.serialize=f._serializer,this.deserialize=f._deserializer,this.input=U??{},f._init(this)}static getEndpointParameterInstructions(){return f._ep}resolveMiddleware(U,W,L){return this.resolveMiddlewareWithContext(U,W,L,{CommandCtor:G,middlewareFn:f._middlewareFn,clientName:f._clientName,commandName:f._commandName,inputFilterSensitiveLog:f._inputFilterSensitiveLog,outputFilterSensitiveLog:f._outputFilterSensitiveLog,smithyContext:f._smithyContext,additionalContext:f._additionalContext})}},z(w,"CommandRef"),w)}};z(pW,"ClassBuilder");var OY=pW,BY="***SensitiveInformation***",VY=z(($,w)=>{for(let f of Object.keys($)){const G=$[f],U=z(async function(L,X,Z){const F=new G(L);if(typeof X==="function")this.send(F,X);else if(typeof Z==="function"){if(typeof X!=="object")throw new Error(`Expected http options but got ${typeof X}`);this.send(F,X||{},Z)}else return this.send(F,X)},"methodImpl"),W=(f[0].toLowerCase()+f.slice(1)).replace(/Command$/,"");w.prototype[W]=U}},"createAggregatedClient"),TY=z(($)=>{switch($){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${$}"`)}},"parseBoolean"),HY=z(($)=>{if($===null||$===void 0)return;if(typeof $==="number"){if($===0||$===1)g0.warn(H1(`Expected boolean, got ${typeof $}: ${$}`));if($===0)return!1;if($===1)return!0}if(typeof $==="string"){const w=$.toLowerCase();if(w==="false"||w==="true")g0.warn(H1(`Expected boolean, got ${typeof $}: ${$}`));if(w==="false")return!1;if(w==="true")return!0}if(typeof $==="boolean")return $;throw new TypeError(`Expected boolean, got ${typeof $}: ${$}`)},"expectBoolean"),d0=z(($)=>{if($===null||$===void 0)return;if(typeof $==="string"){const w=parseFloat($);if(!Number.isNaN(w)){if(String(w)!==String($))g0.warn(H1(`Expected number but observed string: ${$}`));return w}}if(typeof $==="number")return $;throw new TypeError(`Expected number, got ${typeof $}: ${$}`)},"expectNumber"),CY=Math.ceil(340282346638528860000000000000000000000),T1=z(($)=>{const w=d0($);if(w!==void 0&&!Number.isNaN(w)&&w!==Infinity&&w!==(-Infinity)){if(Math.abs(w)>CY)throw new TypeError(`Expected 32-bit float, got ${$}`)}return w},"expectFloat32"),p0=z(($)=>{if($===null||$===void 0)return;if(Number.isInteger($)&&!Number.isNaN($))return $;throw new TypeError(`Expected integer, got ${typeof $}: ${$}`)},"expectLong"),NY=p0,n$=z(($)=>o$($,32),"expectInt32"),m$=z(($)=>o$($,16),"expectShort"),i$=z(($)=>o$($,8),"expectByte"),o$=z(($,w)=>{const f=p0($);if(f!==void 0&&qY(f,w)!==f)throw new TypeError(`Expected ${w}-bit integer, got ${$}`);return f},"expectSizedInt"),qY=z(($,w)=>{switch(w){case 32:return Int32Array.of($)[0];case 16:return Int16Array.of($)[0];case 8:return Int8Array.of($)[0]}},"castInt"),PY=z(($,w)=>{if($===null||$===void 0){if(w)throw new TypeError(`Expected a non-null value for ${w}`);throw new TypeError("Expected a non-null value")}return $},"expectNonNull"),gW=z(($)=>{if($===null||$===void 0)return;if(typeof $==="object"&&!Array.isArray($))return $;const w=Array.isArray($)?"array":typeof $;throw new TypeError(`Expected object, got ${w}: ${$}`)},"expectObject"),jY=z(($)=>{if($===null||$===void 0)return;if(typeof $==="string")return $;if(["boolean","number","bigint"].includes(typeof $))return g0.warn(H1(`Expected string, got ${typeof $}: ${$}`)),String($);throw new TypeError(`Expected string, got ${typeof $}: ${$}`)},"expectString"),SY=z(($)=>{if($===null||$===void 0)return;const w=gW($),f=Object.entries(w).filter(([,G])=>G!=null).map(([G])=>G);if(f.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(f.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${f} were not null.`);return w},"expectUnion"),t$=z(($)=>{if(typeof $=="string")return d0(B0($));return d0($)},"strictParseDouble"),bY=t$,sW=z(($)=>{if(typeof $=="string")return T1(B0($));return T1($)},"strictParseFloat32"),hY=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,B0=z(($)=>{const w=$.match(hY);if(w===null||w[0].length!==$.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat($)},"parseNumber"),a$=z(($)=>{if(typeof $=="string")return lW($);return d0($)},"limitedParseDouble"),kY=a$,DY=a$,cY=z(($)=>{if(typeof $=="string")return lW($);return T1($)},"limitedParseFloat32"),lW=z(($)=>{switch($){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return (-Infinity);default:throw new Error(`Unable to parse float value: ${$}`)}},"parseFloatString"),nW=z(($)=>{if(typeof $==="string")return p0(B0($));return p0($)},"strictParseLong"),vY=nW,yY=z(($)=>{if(typeof $==="string")return n$(B0($));return n$($)},"strictParseInt32"),A0=z(($)=>{if(typeof $==="string")return m$(B0($));return m$($)},"strictParseShort"),mW=z(($)=>{if(typeof $==="string")return i$(B0($));return i$($)},"strictParseByte"),H1=z(($)=>{return String(new TypeError($).stack||$).split("\n").slice(0,5).filter((w)=>!w.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),g0={warn:console.warn},xY=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],e$=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];z(iW,"dateToUtcString");var uY=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),_Y=z(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const w=uY.exec($);if(!w)throw new TypeError("Invalid RFC-3339 date-time value");const[f,G,U,W,L,X,Z,F]=w,E=A0(O0(G)),Y=m(U,"month",1,12),Q=m(W,"day",1,31);return _0(E,Y,Q,{hours:L,minutes:X,seconds:Z,fractionalMilliseconds:F})},"parseRfc3339DateTime"),dY=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),pY=z(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const w=dY.exec($);if(!w)throw new TypeError("Invalid RFC-3339 date-time value");const[f,G,U,W,L,X,Z,F,E]=w,Y=A0(O0(G)),Q=m(U,"month",1,12),I=m(W,"day",1,31),R=_0(Y,Q,I,{hours:L,minutes:X,seconds:Z,fractionalMilliseconds:F});if(E.toUpperCase()!="Z")R.setTime(R.getTime()-wI(E));return R},"parseRfc3339DateTimeWithOffset"),gY=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$/),sY=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$/),lY=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})$/),nY=z(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let w=gY.exec($);if(w){const[f,G,U,W,L,X,Z,F]=w;return _0(A0(O0(W)),s$(U),m(G,"day",1,31),{hours:L,minutes:X,seconds:Z,fractionalMilliseconds:F})}if(w=sY.exec($),w){const[f,G,U,W,L,X,Z,F]=w;return oY(_0(iY(W),s$(U),m(G,"day",1,31),{hours:L,minutes:X,seconds:Z,fractionalMilliseconds:F}))}if(w=lY.exec($),w){const[f,G,U,W,L,X,Z,F]=w;return _0(A0(O0(F)),s$(G),m(U.trimLeft(),"day",1,31),{hours:W,minutes:L,seconds:X,fractionalMilliseconds:Z})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),mY=z(($)=>{if($===null||$===void 0)return;let w;if(typeof $==="number")w=$;else if(typeof $==="string")w=t$($);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(w)||w===Infinity||w===(-Infinity))throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(w*1000))},"parseEpochTimestamp"),_0=z(($,w,f,G)=>{const U=w-1;return aY($,U,f),new Date(Date.UTC($,U,f,m(G.hours,"hour",0,23),m(G.minutes,"minute",0,59),m(G.seconds,"seconds",0,60),$I(G.fractionalMilliseconds)))},"buildDate"),iY=z(($)=>{const w=(new Date()).getUTCFullYear(),f=Math.floor(w/100)*100+A0(O0($));if(f<w)return f+100;return f},"parseTwoDigitYear"),rY=1576800000000,oY=z(($)=>{if($.getTime()-(new Date()).getTime()>rY)return new Date(Date.UTC($.getUTCFullYear()-100,$.getUTCMonth(),$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),$.getUTCMilliseconds()));return $},"adjustRfc850Year"),s$=z(($)=>{const w=e$.indexOf($);if(w<0)throw new TypeError(`Invalid month: ${$}`);return w+1},"parseMonthByShortName"),tY=[31,28,31,30,31,30,31,31,30,31,30,31],aY=z(($,w,f)=>{let G=tY[w];if(w===1&&eY($))G=29;if(f>G)throw new TypeError(`Invalid day for ${e$[w]} in ${$}: ${f}`)},"validateDayOfMonth"),eY=z(($)=>{return $%4===0&&($%100!==0||$%400===0)},"isLeapYear"),m=z(($,w,f,G)=>{const U=mW(O0($));if(U<f||U>G)throw new TypeError(`${w} must be between ${f} and ${G}, inclusive`);return U},"parseDateValue"),$I=z(($)=>{if($===null||$===void 0)return 0;return sW("0."+$)*1000},"parseMilliseconds"),wI=z(($)=>{const w=$[0];let f=1;if(w=="+")f=1;else if(w=="-")f=-1;else throw new TypeError(`Offset direction, ${w}, must be "+" or "-"`);const G=Number($.substring(1,3)),U=Number($.substring(4,6));return f*(G*60+U)*60*1000},"parseOffsetToMilliseconds"),O0=z(($)=>{let w=0;while(w<$.length-1&&$.charAt(w)==="0")w++;if(w===0)return $;return $.slice(w)},"stripLeadingZeroes"),rW=class $ extends Error{constructor(w){super(w.message);Object.setPrototypeOf(this,$.prototype),this.name=w.name,this.$fault=w.$fault,this.$metadata=w.$metadata}};z(rW,"ServiceException");var fI=rW,oW=z(($,w={})=>{Object.entries(w).filter(([,G])=>G!==void 0).forEach(([G,U])=>{if($[G]==null||$[G]==="")$[G]=U});const f=$.message||$.Message||"UnknownError";return $.message=f,delete $.Message,$},"decorateServiceException"),tW=z(({output:$,parsedBody:w,exceptionCtor:f,errorCode:G})=>{const U=GI($),W=U.httpStatusCode?U.httpStatusCode+"":void 0,L=new f({name:(w==null?void 0:w.code)||(w==null?void 0:w.Code)||G||W||"UnknownError",$fault:"client",$metadata:U});throw oW(L,w)},"throwDefaultError"),UI=z(($)=>{return({output:w,parsedBody:f,errorCode:G})=>{tW({output:w,parsedBody:f,exceptionCtor:$,errorCode:G})}},"withBaseException"),GI=z(($)=>({httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}),"deserializeMetadata"),WI=z(($)=>{switch($){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{}}},"loadConfigsForDefaultMode"),cW=!1,LI=z(($)=>{if($&&!cW&&parseInt($.substring(1,$.indexOf(".")))<16)cW=!0},"emitWarningIfUnsupportedVersion"),XI=z(($)=>{const w=[];for(let f in l$.AlgorithmId){const G=l$.AlgorithmId[f];if($[G]===void 0)continue;w.push({algorithmId:()=>G,checksumConstructor:()=>$[G]})}return{_checksumAlgorithms:w,addChecksumAlgorithm(f){this._checksumAlgorithms.push(f)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),ZI=z(($)=>{const w={};return $.checksumAlgorithms().forEach((f)=>{w[f.algorithmId()]=f.checksumConstructor()}),w},"resolveChecksumRuntimeConfig"),FI=z(($)=>{let w=$.retryStrategy;return{setRetryStrategy(f){w=f},retryStrategy(){return w}}},"getRetryConfiguration"),EI=z(($)=>{const w={};return w.retryStrategy=$.retryStrategy(),w},"resolveRetryRuntimeConfig"),aW=z(($)=>{return{...XI($),...FI($)}},"getDefaultExtensionConfiguration"),YI=aW,II=z(($)=>{return{...ZI($),...EI($)}},"resolveDefaultRuntimeConfig");z(C1,"extendedEncodeURIComponent");var QI=z(($)=>Array.isArray($)?$:[$],"getArrayIfSingleItem"),eW=z(($)=>{for(let f in $)if($.hasOwnProperty(f)&&$[f]["#text"]!==void 0)$[f]=$[f]["#text"];else if(typeof $[f]==="object"&&$[f]!==null)$[f]=eW($[f]);return $},"getValueFromTextNode"),s0=z(function(){const $=Object.getPrototypeOf(this).constructor,f=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(f,$.prototype),f},"StringWrapper");s0.prototype=Object.create(String.prototype,{constructor:{value:s0,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(s0,String);var $8=class $ extends s0{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(w){if(w instanceof $)return w;else if(w instanceof String||typeof w==="string")return new $(w);return new $(JSON.stringify(w))}};z($8,"LazyJsonString");var RI=$8;z($w,"map");var zI=z(($)=>{const w={};for(let[f,G]of Object.entries($||{}))w[f]=[,G];return w},"convertMap"),MI=z(($,w)=>{const f={};for(let G in w)w8(f,$,w,G);return f},"take"),JI=z(($,w,f)=>{return $w($,Object.entries(f).reduce((G,[U,W])=>{if(Array.isArray(W))G[U]=W;else if(typeof W==="function")G[U]=[w,W()];else G[U]=[w,W];return G},{}))},"mapWithFilter"),w8=z(($,w,f,G)=>{if(w!==null){let L=f[G];if(typeof L==="function")L=[,L];const[X=KI,Z=AI,F=G]=L;if(typeof X==="function"&&X(w[F])||typeof X!=="function"&&!!X)$[G]=Z(w[F]);return}let[U,W]=f[G];if(typeof W==="function"){let L;const X=U===void 0&&(L=W())!=null,Z=typeof U==="function"&&!!U(void 0)||typeof U!=="function"&&!!U;if(X)$[G]=L;else if(Z)$[G]=W()}else{const L=U===void 0&&W!=null,X=typeof U==="function"&&!!U(W)||typeof U!=="function"&&!!U;if(L||X)$[G]=W}},"applyInstruction"),KI=z(($)=>$!=null,"nonNullish"),AI=z(($)=>$,"pass"),OI=z(($,w,f,G,U,W)=>{if(w!=null&&w[f]!==void 0){const L=G();if(L.length<=0)throw new Error("Empty value provided for input HTTP label: "+f+".");$=$.replace(U,W?L.split("/").map((X)=>C1(X)).join("/"):C1(L))}else throw new Error("No value provided for input HTTP label: "+f+".");return $},"resolvedPath"),BI=z(($)=>{if($!==$)return"NaN";switch($){case Infinity:return"Infinity";case (-Infinity):return"-Infinity";default:return $}},"serializeFloat"),VI=z(($)=>$.toISOString().replace(".000Z","Z"),"serializeDateTime"),r$=z(($)=>{if($==null)return{};if(Array.isArray($))return $.filter((w)=>w!=null).map(r$);if(typeof $==="object"){const w={};for(let f of Object.keys($)){if($[f]==null)continue;w[f]=r$($[f])}return w}return $},"_json");z(f8,"splitEvery")});var L8=M((G8)=>{Object.defineProperty(G8,"__esModule",{value:!0});G8.isStreamingPayload=void 0;var TI=import.meta.require("stream"),HI=($)=>($===null||$===void 0?void 0:$.body)instanceof TI.Readable||typeof ReadableStream!=="undefined"&&($===null||$===void 0?void 0:$.body)instanceof ReadableStream;G8.isStreamingPayload=HI});var H8=M((Wz,T8)=>{var{defineProperty:q1,getOwnPropertyDescriptor:CI,getOwnPropertyNames:NI}=Object,qI=Object.prototype.hasOwnProperty,j=($,w)=>q1($,"name",{value:w,configurable:!0}),PI=($,w)=>{for(var f in w)q1($,f,{get:w[f],enumerable:!0})},jI=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of NI(w))if(!qI.call($,U)&&U!==f)q1($,U,{get:()=>w[U],enumerable:!(G=CI(w,U))||G.enumerable})}return $},SI=($)=>jI(q1({},"__esModule",{value:!0}),$),Z8={};PI(Z8,{AdaptiveRetryStrategy:()=>kI,CONFIG_MAX_ATTEMPTS:()=>fw,CONFIG_RETRY_MODE:()=>J8,ENV_MAX_ATTEMPTS:()=>ww,ENV_RETRY_MODE:()=>M8,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>DI,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>vI,StandardRetryStrategy:()=>R8,defaultDelayDecider:()=>E8,defaultRetryDecider:()=>Y8,getOmitRetryHeadersPlugin:()=>yI,getRetryAfterHint:()=>V8,getRetryPlugin:()=>gI,omitRetryHeadersMiddleware:()=>K8,omitRetryHeadersMiddlewareOptions:()=>A8,resolveRetryConfig:()=>cI,retryMiddleware:()=>O8,retryMiddlewareOptions:()=>B8});T8.exports=SI(Z8);var T0=r(),F8=H$(),C=WG(),bI=j(($,w)=>{const f=$,G=(w==null?void 0:w.noRetryIncrement)??C.NO_RETRY_INCREMENT,U=(w==null?void 0:w.retryCost)??C.RETRY_COST,W=(w==null?void 0:w.timeoutRetryCost)??C.TIMEOUT_RETRY_COST;let L=$;const X=j((Y)=>Y.name==="TimeoutError"?W:U,"getCapacityAmount"),Z=j((Y)=>X(Y)<=L,"hasRetryTokens");return Object.freeze({hasRetryTokens:Z,retrieveRetryTokens:j((Y)=>{if(!Z(Y))throw new Error("No retry token available");const Q=X(Y);return L-=Q,Q},"retrieveRetryTokens"),releaseRetryTokens:j((Y)=>{L+=Y??G,L=Math.min(L,f)},"releaseRetryTokens")})},"getDefaultRetryQuota"),E8=j(($,w)=>Math.floor(Math.min(C.MAXIMUM_RETRY_DELAY,Math.random()*2**w*$)),"defaultDelayDecider"),w0=X0(),Y8=j(($)=>{if(!$)return!1;return w0.isRetryableByTrait($)||w0.isClockSkewError($)||w0.isThrottlingError($)||w0.isTransientError($)},"defaultRetryDecider"),I8=j(($)=>{if($ instanceof Error)return $;if($ instanceof Object)return Object.assign(new Error,$);if(typeof $==="string")return new Error($);return new Error(`AWS SDK error wrapper for ${$}`)},"asSdkError"),Q8=class ${constructor(w,f){this.maxAttemptsProvider=w,this.mode=C.RETRY_MODES.STANDARD,this.retryDecider=(f==null?void 0:f.retryDecider)??Y8,this.delayDecider=(f==null?void 0:f.delayDecider)??E8,this.retryQuota=(f==null?void 0:f.retryQuota)??bI(C.INITIAL_RETRY_TOKENS)}shouldRetry(w,f,G){return f<G&&this.retryDecider(w)&&this.retryQuota.hasRetryTokens(w)}async getMaxAttempts(){let w;try{w=await this.maxAttemptsProvider()}catch(f){w=C.DEFAULT_MAX_ATTEMPTS}return w}async retry(w,f,G){let U,W=0,L=0;const X=await this.getMaxAttempts(),{request:Z}=f;if(T0.HttpRequest.isInstance(Z))Z.headers[C.INVOCATION_ID_HEADER]=F8.v4();while(!0)try{if(T0.HttpRequest.isInstance(Z))Z.headers[C.REQUEST_HEADER]=`attempt=${W+1}; max=${X}`;if(G==null?void 0:G.beforeRequest)await G.beforeRequest();const{response:F,output:E}=await w(f);if(G==null?void 0:G.afterRequest)G.afterRequest(F);return this.retryQuota.releaseRetryTokens(U),E.$metadata.attempts=W+1,E.$metadata.totalRetryDelay=L,{response:F,output:E}}catch(F){const E=I8(F);if(W++,this.shouldRetry(E,W,X)){U=this.retryQuota.retrieveRetryTokens(E);const Y=this.delayDecider(w0.isThrottlingError(E)?C.THROTTLING_RETRY_DELAY_BASE:C.DEFAULT_RETRY_DELAY_BASE,W),Q=hI(E.$response),I=Math.max(Q||0,Y);L+=I,await new Promise((R)=>setTimeout(R,I));continue}if(!E.$metadata)E.$metadata={};throw E.$metadata.attempts=W,E.$metadata.totalRetryDelay=L,E}}};j(Q8,"StandardRetryStrategy");var R8=Q8,hI=j(($)=>{if(!T0.HttpResponse.isInstance($))return;const w=Object.keys($.headers).find((W)=>W.toLowerCase()==="retry-after");if(!w)return;const f=$.headers[w],G=Number(f);if(!Number.isNaN(G))return G*1000;return new Date(f).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),z8=class $ extends R8{constructor(w,f){const{rateLimiter:G,...U}=f??{};super(w,U);this.rateLimiter=G??new C.DefaultRateLimiter,this.mode=C.RETRY_MODES.ADAPTIVE}async retry(w,f){return super.retry(w,f,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(G)=>{this.rateLimiter.updateClientSendingRate(G)}})}};j(z8,"AdaptiveRetryStrategy");var kI=z8,X8=n(),ww="AWS_MAX_ATTEMPTS",fw="max_attempts",DI={environmentVariableSelector:($)=>{const w=$[ww];if(!w)return;const f=parseInt(w);if(Number.isNaN(f))throw new Error(`Environment variable ${ww} mast be a number, got "${w}"`);return f},configFileSelector:($)=>{const w=$[fw];if(!w)return;const f=parseInt(w);if(Number.isNaN(f))throw new Error(`Shared config file entry ${fw} mast be a number, got "${w}"`);return f},default:C.DEFAULT_MAX_ATTEMPTS},cI=j(($)=>{const{retryStrategy:w}=$,f=X8.normalizeProvider($.maxAttempts??C.DEFAULT_MAX_ATTEMPTS);return{...$,maxAttempts:f,retryStrategy:async()=>{if(w)return w;if(await X8.normalizeProvider($.retryMode)()===C.RETRY_MODES.ADAPTIVE)return new C.AdaptiveRetryStrategy(f);return new C.StandardRetryStrategy(f)}}},"resolveRetryConfig"),M8="AWS_RETRY_MODE",J8="retry_mode",vI={environmentVariableSelector:($)=>$[M8],configFileSelector:($)=>$[J8],default:C.DEFAULT_RETRY_MODE},K8=j(()=>($)=>async(w)=>{const{request:f}=w;if(T0.HttpRequest.isInstance(f))delete f.headers[C.INVOCATION_ID_HEADER],delete f.headers[C.REQUEST_HEADER];return $(w)},"omitRetryHeadersMiddleware"),A8={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},yI=j(($)=>({applyToStack:(w)=>{w.addRelativeTo(K8(),A8)}}),"getOmitRetryHeadersPlugin"),xI=V0(),uI=L8(),O8=j(($)=>(w,f)=>async(G)=>{var U;let W=await $.retryStrategy();const L=await $.maxAttempts();if(_I(W)){W=W;let X=await W.acquireInitialRetryToken(f.partition_id),Z=new Error,F=0,E=0;const{request:Y}=G,Q=T0.HttpRequest.isInstance(Y);if(Q)Y.headers[C.INVOCATION_ID_HEADER]=F8.v4();while(!0)try{if(Q)Y.headers[C.REQUEST_HEADER]=`attempt=${F+1}; max=${L}`;const{response:I,output:R}=await w(G);return W.recordSuccess(X),R.$metadata.attempts=F+1,R.$metadata.totalRetryDelay=E,{response:I,output:R}}catch(I){const R=dI(I);if(Z=I8(I),Q&&uI.isStreamingPayload(Y))throw(U=f.logger instanceof xI.NoOpLogger?console:f.logger)==null||U.warn("An error was encountered in a non-retryable streaming request."),Z;try{X=await W.refreshRetryTokenForRetry(X,R)}catch(O){if(!Z.$metadata)Z.$metadata={};throw Z.$metadata.attempts=F+1,Z.$metadata.totalRetryDelay=E,Z}F=X.getRetryCount();const J=X.getRetryDelay();E+=J,await new Promise((O)=>setTimeout(O,J))}}else{if(W=W,W==null?void 0:W.mode)f.userAgent=[...f.userAgent||[],["cfg/retry-mode",W.mode]];return W.retry(w,G)}},"retryMiddleware"),_I=j(($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined","isRetryStrategyV2"),dI=j(($)=>{const w={error:$,errorType:pI($)},f=V8($.$response);if(f)w.retryAfterHint=f;return w},"getRetryErrorInfo"),pI=j(($)=>{if(w0.isThrottlingError($))return"THROTTLING";if(w0.isTransientError($))return"TRANSIENT";if(w0.isServerError($))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),B8={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},gI=j(($)=>({applyToStack:(w)=>{w.add(O8($),B8)}}),"getRetryPlugin"),V8=j(($)=>{if(!T0.HttpResponse.isInstance($))return;const w=Object.keys($.headers).find((W)=>W.toLowerCase()==="retry-after");if(!w)return;const f=$.headers[w],G=Number(f);if(!Number.isNaN(G))return new Date(G*1000);return new Date(f)},"getRetryAfterHint")});var Gw=M((Lz,g8)=>{var q8=function($){const w=new Map;for(let f of $)w.set(f.schemeId,f);return w},u8=function($,w){return new d8($,w)},p8=function($,w,f,G,U){return H(async function*W(L,X,...Z){let F=L.startingToken||void 0,E=!0,Y;while(E){if(X[f]=F,U)X[U]=X[U]??L.pageSize;if(L.client instanceof $)Y=await Q5(w,L.client,X,...Z);else throw new Error(`Invalid client, expected instance of ${$.name}`);yield Y;const Q=F;F=R5(Y,G),E=!!(F&&(!L.stopOnSameToken||F!==Q))}return},"paginateOperation")},j1=Object.defineProperty,sI=Object.getOwnPropertyDescriptor,lI=Object.getOwnPropertyNames,nI=Object.prototype.hasOwnProperty,H=($,w)=>j1($,"name",{value:w,configurable:!0}),mI=($,w)=>{for(var f in w)j1($,f,{get:w[f],enumerable:!0})},iI=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of lI(w))if(!nI.call($,U)&&U!==f)j1($,U,{get:()=>w[U],enumerable:!(G=sI(w,U))||G.enumerable})}return $},rI=($)=>iI(j1({},"__esModule",{value:!0}),$),C8={};mI(C8,{DefaultIdentityProviderConfig:()=>G5,EXPIRATION_MS:()=>y8,HttpApiKeyAuthSigner:()=>W5,HttpBearerAuthSigner:()=>L5,NoAuthSigner:()=>X5,RequestBuilder:()=>d8,createIsIdentityExpiredFunction:()=>v8,createPaginator:()=>p8,doesIdentityRequireRefresh:()=>x8,getHttpAuthSchemeEndpointRuleSetPlugin:()=>tI,getHttpAuthSchemePlugin:()=>eI,getHttpSigningPlugin:()=>U5,getSmithyContext:()=>E5,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>P8,httpAuthSchemeMiddleware:()=>Uw,httpAuthSchemeMiddlewareOptions:()=>j8,httpSigningMiddleware:()=>S8,httpSigningMiddlewareOptions:()=>b8,isIdentityExpired:()=>Z5,memoizeIdentityProvider:()=>F5,normalizeProvider:()=>Y5,requestBuilder:()=>u8});g8.exports=rI(C8);var N8=n();H(q8,"convertHttpAuthSchemesToMap");var Uw=H(($,w)=>(f,G)=>async(U)=>{var W;const L=$.httpAuthSchemeProvider(await w.httpAuthSchemeParametersProvider($,G,U.input)),X=q8($.httpAuthSchemes),Z=N8.getSmithyContext(G),F=[];for(let E of L){const Y=X.get(E.schemeId);if(!Y){F.push(`HttpAuthScheme \`${E.schemeId}\` was not enabled for this service.`);continue}const Q=Y.identityProvider(await w.identityProviderConfigProvider($));if(!Q){F.push(`HttpAuthScheme \`${E.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:I={},signingProperties:R={}}=((W=E.propertiesExtractor)==null?void 0:W.call(E,$,G))||{};E.identityProperties=Object.assign(E.identityProperties||{},I),E.signingProperties=Object.assign(E.signingProperties||{},R),Z.selectedHttpAuthScheme={httpAuthOption:E,identity:await Q(E.identityProperties),signer:Y.signer};break}if(!Z.selectedHttpAuthScheme)throw new Error(F.join("\n"));return f(U)},"httpAuthSchemeMiddleware"),oI=xf(),P8={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:oI.endpointMiddlewareOptions.name},tI=H(($,{httpAuthSchemeParametersProvider:w,identityProviderConfigProvider:f})=>({applyToStack:(G)=>{G.addRelativeTo(Uw($,{httpAuthSchemeParametersProvider:w,identityProviderConfigProvider:f}),P8)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),aI=w1(),j8={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:aI.serializerMiddlewareOption.name},eI=H(($,{httpAuthSchemeParametersProvider:w,identityProviderConfigProvider:f})=>({applyToStack:(G)=>{G.addRelativeTo(Uw($,{httpAuthSchemeParametersProvider:w,identityProviderConfigProvider:f}),j8)}}),"getHttpAuthSchemePlugin"),S1=r(),$5=H(($)=>(w)=>{throw w},"defaultErrorHandler"),w5=H(($,w)=>{},"defaultSuccessHandler"),S8=H(($)=>(w,f)=>async(G)=>{if(!S1.HttpRequest.isInstance(G.request))return w(G);const W=N8.getSmithyContext(f).selectedHttpAuthScheme;if(!W)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:L={}},identity:X,signer:Z}=W,F=await w({...G,request:await Z.sign(G.request,X,L)}).catch((Z.errorHandler||$5)(L));return(Z.successHandler||w5)(F.response,L),F},"httpSigningMiddleware"),f5=H8(),b8={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:f5.retryMiddlewareOptions.name},U5=H(($)=>({applyToStack:(w)=>{w.addRelativeTo(S8($),b8)}}),"getHttpSigningPlugin"),h8=class ${constructor(w){this.authSchemes=new Map;for(let[f,G]of Object.entries(w))if(G!==void 0)this.authSchemes.set(f,G)}getIdentityProvider(w){return this.authSchemes.get(w)}};H(h8,"DefaultIdentityProviderConfig");var G5=h8,P1=z0(),k8=class ${async sign(w,f,G){if(!G)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!G.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!G.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!f.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");const U=S1.HttpRequest.clone(w);if(G.in===P1.HttpApiKeyAuthLocation.QUERY)U.query[G.name]=f.apiKey;else if(G.in===P1.HttpApiKeyAuthLocation.HEADER)U.headers[G.name]=G.scheme?`${G.scheme} ${f.apiKey}`:f.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+G.in+"`");return U}};H(k8,"HttpApiKeyAuthSigner");var W5=k8,D8=class ${async sign(w,f,G){const U=S1.HttpRequest.clone(w);if(!f.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return U.headers.Authorization=`Bearer ${f.token}`,U}};H(D8,"HttpBearerAuthSigner");var L5=D8,c8=class ${async sign(w,f,G){return w}};H(c8,"NoAuthSigner");var X5=c8,v8=H(($)=>(w)=>x8(w)&&w.expiration.getTime()-Date.now()<$,"createIsIdentityExpiredFunction"),y8=300000,Z5=v8(y8),x8=H(($)=>$.expiration!==void 0,"doesIdentityRequireRefresh"),F5=H(($,w,f)=>{if($===void 0)return;const G=typeof $!=="function"?async()=>Promise.resolve($):$;let U,W,L,X=!1;const Z=H(async(F)=>{if(!W)W=G(F);try{U=await W,L=!0,X=!1}finally{W=void 0}return U},"coalesceProvider");if(w===void 0)return async(F)=>{if(!L||(F==null?void 0:F.forceRefresh))U=await Z(F);return U};return async(F)=>{if(!L||(F==null?void 0:F.forceRefresh))U=await Z(F);if(X)return U;if(!f(U))return X=!0,U;if(w(U))return await Z(F),U;return U}},"memoizeIdentityProvider"),E5=H(($)=>$[P1.SMITHY_CONTEXT_KEY]||($[P1.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),Y5=H(($)=>{if(typeof $==="function")return $;const w=Promise.resolve($);return()=>w},"normalizeProvider"),I5=V0();H(u8,"requestBuilder");var _8=class ${constructor(w,f){this.input=w,this.context=f,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:w,protocol:f="https",port:G,path:U}=await this.context.endpoint();this.path=U;for(let W of this.resolvePathStack)W(this.path);return new S1.HttpRequest({protocol:f,hostname:this.hostname||w,port:G,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(w){return this.hostname=w,this}bp(w){return this.resolvePathStack.push((f)=>{this.path=`${(f==null?void 0:f.endsWith("/"))?f.slice(0,-1):f||""}`+w}),this}p(w,f,G,U){return this.resolvePathStack.push((W)=>{this.path=I5.resolvedPath(W,this.input,w,f,G,U)}),this}h(w){return this.headers=w,this}q(w){return this.query=w,this}b(w){return this.body=w,this}m(w){return this.method=w,this}};H(_8,"RequestBuilder");var d8=_8,Q5=H(async($,w,f,...G)=>{return await w.send(new $(f),...G)},"makePagedClientRequest");H(p8,"createPaginator");var R5=H(($,w)=>{let f=$;const G=w.split(".");for(let U of G){if(!f||typeof f!=="object")return;f=f[U]}return f},"get")});var W4=M((fO,r1)=>{var hL,kL,DL,cL,vL,yL,xL,uL,_L,dL,pL,gL,sL,m1,Hw,lL,nL,mL,P0,iL,rL,oL,tL,aL,eL,$4,w4,f4,i1,U4,G4;(function($){var w=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(G){$(f(w,f(G)))});else if(typeof r1==="object"&&typeof fO==="object")$(f(w,f(fO)));else $(f(w));function f(G,U){if(G!==w)if(typeof Object.create==="function")Object.defineProperty(G,"__esModule",{value:!0});else G.__esModule=!0;return function(W,L){return G[W]=U?U(W,L):L}}})(function($){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,W){U.__proto__=W}||function(U,W){for(var L in W)if(Object.prototype.hasOwnProperty.call(W,L))U[L]=W[L]};hL=function(U,W){if(typeof W!=="function"&&W!==null)throw new TypeError("Class extends value "+String(W)+" is not a constructor or null");w(U,W);function L(){this.constructor=U}U.prototype=W===null?Object.create(W):(L.prototype=W.prototype,new L)},kL=Object.assign||function(U){for(var W,L=1,X=arguments.length;L<X;L++){W=arguments[L];for(var Z in W)if(Object.prototype.hasOwnProperty.call(W,Z))U[Z]=W[Z]}return U},DL=function(U,W){var L={};for(var X in U)if(Object.prototype.hasOwnProperty.call(U,X)&&W.indexOf(X)<0)L[X]=U[X];if(U!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var Z=0,X=Object.getOwnPropertySymbols(U);Z<X.length;Z++)if(W.indexOf(X[Z])<0&&Object.prototype.propertyIsEnumerable.call(U,X[Z]))L[X[Z]]=U[X[Z]]}return L},cL=function(U,W,L,X){var Z=arguments.length,F=Z<3?W:X===null?X=Object.getOwnPropertyDescriptor(W,L):X,E;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")F=Reflect.decorate(U,W,L,X);else for(var Y=U.length-1;Y>=0;Y--)if(E=U[Y])F=(Z<3?E(F):Z>3?E(W,L,F):E(W,L))||F;return Z>3&&F&&Object.defineProperty(W,L,F),F},vL=function(U,W){return function(L,X){W(L,X,U)}},yL=function(U,W,L,X,Z,F){function E(S){if(S!==void 0&&typeof S!=="function")throw new TypeError("Function expected");return S}var Y=X.kind,Q=Y==="getter"?"get":Y==="setter"?"set":"value",I=!W&&U?X.static?U:U.prototype:null,R=W||(I?Object.getOwnPropertyDescriptor(I,X.name):{}),J,O=!1;for(var K=L.length-1;K>=0;K--){var A={};for(var B in X)A[B]=B==="access"?{}:X[B];for(var B in X.access)A.access[B]=X.access[B];A.addInitializer=function(S){if(O)throw new TypeError("Cannot add initializers after decoration has completed");F.push(E(S||null))};var T=L[K](Y==="accessor"?{get:R.get,set:R.set}:R[Q],A);if(Y==="accessor"){if(T===void 0)continue;if(T===null||typeof T!=="object")throw new TypeError("Object expected");if(J=E(T.get))R.get=J;if(J=E(T.set))R.set=J;if(J=E(T.init))Z.unshift(J)}else if(J=E(T))if(Y==="field")Z.unshift(J);else R[Q]=J}if(I)Object.defineProperty(I,X.name,R);O=!0},xL=function(U,W,L){var X=arguments.length>2;for(var Z=0;Z<W.length;Z++)L=X?W[Z].call(U,L):W[Z].call(U);return X?L:void 0},uL=function(U){return typeof U==="symbol"?U:"".concat(U)},_L=function(U,W,L){if(typeof W==="symbol")W=W.description?"[".concat(W.description,"]"):"";return Object.defineProperty(U,"name",{configurable:!0,value:L?"".concat(L," ",W):W})},dL=function(U,W){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(U,W)},pL=function(U,W,L,X){function Z(F){return F instanceof L?F:new L(function(E){E(F)})}return new(L||(L=Promise))(function(F,E){function Y(R){try{I(X.next(R))}catch(J){E(J)}}function Q(R){try{I(X.throw(R))}catch(J){E(J)}}function I(R){R.done?F(R.value):Z(R.value).then(Y,Q)}I((X=X.apply(U,W||[])).next())})},gL=function(U,W){var L={label:0,sent:function(){if(F[0]&1)throw F[1];return F[1]},trys:[],ops:[]},X,Z,F,E;return E={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol==="function"&&(E[Symbol.iterator]=function(){return this}),E;function Y(I){return function(R){return Q([I,R])}}function Q(I){if(X)throw new TypeError("Generator is already executing.");while(E&&(E=0,I[0]&&(L=0)),L)try{if(X=1,Z&&(F=I[0]&2?Z.return:I[0]?Z.throw||((F=Z.return)&&F.call(Z),0):Z.next)&&!(F=F.call(Z,I[1])).done)return F;if(Z=0,F)I=[I[0]&2,F.value];switch(I[0]){case 0:case 1:F=I;break;case 4:return L.label++,{value:I[1],done:!1};case 5:L.label++,Z=I[1],I=[0];continue;case 7:I=L.ops.pop(),L.trys.pop();continue;default:if((F=L.trys,!(F=F.length>0&&F[F.length-1]))&&(I[0]===6||I[0]===2)){L=0;continue}if(I[0]===3&&(!F||I[1]>F[0]&&I[1]<F[3])){L.label=I[1];break}if(I[0]===6&&L.label<F[1]){L.label=F[1],F=I;break}if(F&&L.label<F[2]){L.label=F[2],L.ops.push(I);break}if(F[2])L.ops.pop();L.trys.pop();continue}I=W.call(U,L)}catch(R){I=[6,R],Z=0}finally{X=F=0}if(I[0]&5)throw I[1];return{value:I[0]?I[1]:void 0,done:!0}}},sL=function(U,W){for(var L in U)if(L!=="default"&&!Object.prototype.hasOwnProperty.call(W,L))i1(W,U,L)},i1=Object.create?function(U,W,L,X){if(X===void 0)X=L;var Z=Object.getOwnPropertyDescriptor(W,L);if(!Z||("get"in Z?!W.__esModule:Z.writable||Z.configurable))Z={enumerable:!0,get:function(){return W[L]}};Object.defineProperty(U,X,Z)}:function(U,W,L,X){if(X===void 0)X=L;U[X]=W[L]},m1=function(U){var W=typeof Symbol==="function"&&Symbol.iterator,L=W&&U[W],X=0;if(L)return L.call(U);if(U&&typeof U.length==="number")return{next:function(){if(U&&X>=U.length)U=void 0;return{value:U&&U[X++],done:!U}}};throw new TypeError(W?"Object is not iterable.":"Symbol.iterator is not defined.")},Hw=function(U,W){var L=typeof Symbol==="function"&&U[Symbol.iterator];if(!L)return U;var X=L.call(U),Z,F=[],E;try{while((W===void 0||W-- >0)&&!(Z=X.next()).done)F.push(Z.value)}catch(Y){E={error:Y}}finally{try{if(Z&&!Z.done&&(L=X.return))L.call(X)}finally{if(E)throw E.error}}return F},lL=function(){for(var U=[],W=0;W<arguments.length;W++)U=U.concat(Hw(arguments[W]));return U},nL=function(){for(var U=0,W=0,L=arguments.length;W<L;W++)U+=arguments[W].length;for(var X=Array(U),Z=0,W=0;W<L;W++)for(var F=arguments[W],E=0,Y=F.length;E<Y;E++,Z++)X[Z]=F[E];return X},mL=function(U,W,L){if(L||arguments.length===2){for(var X=0,Z=W.length,F;X<Z;X++)if(F||!(X in W)){if(!F)F=Array.prototype.slice.call(W,0,X);F[X]=W[X]}}return U.concat(F||Array.prototype.slice.call(W))},P0=function(U){return this instanceof P0?(this.v=U,this):new P0(U)},iL=function(U,W,L){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var X=L.apply(U,W||[]),Z,F=[];return Z={},Y("next"),Y("throw"),Y("return",E),Z[Symbol.asyncIterator]=function(){return this},Z;function E(K){return function(A){return Promise.resolve(A).then(K,J)}}function Y(K,A){if(X[K]){if(Z[K]=function(B){return new Promise(function(T,S){F.push([K,B,T,S])>1||Q(K,B)})},A)Z[K]=A(Z[K])}}function Q(K,A){try{I(X[K](A))}catch(B){O(F[0][3],B)}}function I(K){K.value instanceof P0?Promise.resolve(K.value.v).then(R,J):O(F[0][2],K)}function R(K){Q("next",K)}function J(K){Q("throw",K)}function O(K,A){if(K(A),F.shift(),F.length)Q(F[0][0],F[0][1])}},rL=function(U){var W,L;return W={},X("next"),X("throw",function(Z){throw Z}),X("return"),W[Symbol.iterator]=function(){return this},W;function X(Z,F){W[Z]=U[Z]?function(E){return(L=!L)?{value:P0(U[Z](E)),done:!1}:F?F(E):E}:F}},oL=function(U){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var W=U[Symbol.asyncIterator],L;return W?W.call(U):(U=typeof m1==="function"?m1(U):U[Symbol.iterator](),L={},X("next"),X("throw"),X("return"),L[Symbol.asyncIterator]=function(){return this},L);function X(F){L[F]=U[F]&&function(E){return new Promise(function(Y,Q){E=U[F](E),Z(Y,Q,E.done,E.value)})}}function Z(F,E,Y,Q){Promise.resolve(Q).then(function(I){F({value:I,done:Y})},E)}},tL=function(U,W){if(Object.defineProperty)Object.defineProperty(U,"raw",{value:W});else U.raw=W;return U};var f=Object.create?function(U,W){Object.defineProperty(U,"default",{enumerable:!0,value:W})}:function(U,W){U.default=W};aL=function(U){if(U&&U.__esModule)return U;var W={};if(U!=null){for(var L in U)if(L!=="default"&&Object.prototype.hasOwnProperty.call(U,L))i1(W,U,L)}return f(W,U),W},eL=function(U){return U&&U.__esModule?U:{default:U}},$4=function(U,W,L,X){if(L==="a"&&!X)throw new TypeError("Private accessor was defined without a getter");if(typeof W==="function"?U!==W||!X:!W.has(U))throw new TypeError("Cannot read private member from an object whose class did not declare it");return L==="m"?X:L==="a"?X.call(U):X?X.value:W.get(U)},w4=function(U,W,L,X,Z){if(X==="m")throw new TypeError("Private method is not writable");if(X==="a"&&!Z)throw new TypeError("Private accessor was defined without a setter");if(typeof W==="function"?U!==W||!Z:!W.has(U))throw new TypeError("Cannot write private member to an object whose class did not declare it");return X==="a"?Z.call(U,L):Z?Z.value=L:W.set(U,L),L},f4=function(U,W){if(W===null||typeof W!=="object"&&typeof W!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof U==="function"?W===U:U.has(W)},U4=function(U,W,L){if(W!==null&&W!==void 0){if(typeof W!=="object"&&typeof W!=="function")throw new TypeError("Object expected.");var X,Z;if(L){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");X=W[Symbol.asyncDispose]}if(X===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(X=W[Symbol.dispose],L)Z=X}if(typeof X!=="function")throw new TypeError("Object not disposable.");if(Z)X=function(){try{Z.call(this)}catch(F){return Promise.reject(F)}};U.stack.push({value:W,dispose:X,async:L})}else if(L)U.stack.push({async:!0});return W};var G=typeof SuppressedError==="function"?SuppressedError:function(U,W,L){var X=new Error(L);return X.name="SuppressedError",X.error=U,X.suppressed=W,X};G4=function(U){function W(X){U.error=U.hasError?new G(X,U.error,"An error was suppressed during disposal."):X,U.hasError=!0}function L(){while(U.stack.length){var X=U.stack.pop();try{var Z=X.dispose&&X.dispose.call(X.value);if(X.async)return Promise.resolve(Z).then(L,function(F){return W(F),L()})}catch(F){W(F)}}if(U.hasError)throw U.error}return L()},$("__extends",hL),$("__assign",kL),$("__rest",DL),$("__decorate",cL),$("__param",vL),$("__esDecorate",yL),$("__runInitializers",xL),$("__propKey",uL),$("__setFunctionName",_L),$("__metadata",dL),$("__awaiter",pL),$("__generator",gL),$("__exportStar",sL),$("__createBinding",i1),$("__values",m1),$("__read",Hw),$("__spread",lL),$("__spreadArrays",nL),$("__spreadArray",mL),$("__await",P0),$("__asyncGenerator",iL),$("__asyncDelegator",rL),$("__asyncValues",oL),$("__makeTemplateObject",tL),$("__importStar",aL),$("__importDefault",eL),$("__classPrivateFieldGet",$4),$("__classPrivateFieldSet",w4),$("__classPrivateFieldIn",f4),$("__addDisposableResource",U4),$("__disposeResources",G4)})});var F4=M((UO,Z4)=>{var{defineProperty:o1,getOwnPropertyDescriptor:r5,getOwnPropertyNames:o5}=Object,t5=Object.prototype.hasOwnProperty,a5=($,w)=>o1($,"name",{value:w,configurable:!0}),e5=($,w)=>{for(var f in w)o1($,f,{get:w[f],enumerable:!0})},$Q=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of o5(w))if(!t5.call($,U)&&U!==f)o1($,U,{get:()=>w[U],enumerable:!(G=r5(w,U))||G.enumerable})}return $},wQ=($)=>$Q(o1({},"__esModule",{value:!0}),$),X4={};e5(X4,{emitWarningIfUnsupportedVersion:()=>fQ});Z4.exports=wQ(X4);var L4=!1,fQ=a5(($)=>{if($&&!L4&&parseInt($.substring(1,$.indexOf(".")))<18)L4=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
4
- no longer support Node.js 16.x on January 6, 2025.
5
-
6
- To continue receiving updates to AWS services, bug fixes, and security
7
- updates please upgrade to a supported Node.js LTS version.
8
-
9
- More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion")});var j4=M((GO,P4)=>{var jw=function($){for(let w=0;w<8;w++)$[w]^=255;for(let w=7;w>-1;w--)if($[w]++,$[w]!==0)break},w$=Object.defineProperty,UQ=Object.getOwnPropertyDescriptor,GQ=Object.getOwnPropertyNames,WQ=Object.prototype.hasOwnProperty,b=($,w)=>w$($,"name",{value:w,configurable:!0}),LQ=($,w)=>{for(var f in w)w$($,f,{get:w[f],enumerable:!0})},XQ=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of GQ(w))if(!WQ.call($,U)&&U!==f)w$($,U,{get:()=>w[U],enumerable:!(G=UQ(w,U))||G.enumerable})}return $},ZQ=($)=>XQ(w$({},"__esModule",{value:!0}),$),R4={};LQ(R4,{SignatureV4:()=>DQ,clearCredentialCache:()=>CQ,createScope:()=>e1,getCanonicalHeaders:()=>Pw,getCanonicalQuery:()=>V4,getPayloadHash:()=>$$,getSigningKey:()=>B4,moveHeadersToQuery:()=>N4,prepareRequest:()=>Sw});P4.exports=ZQ(R4);var E4=n(),Cw=$0(),FQ="X-Amz-Algorithm",EQ="X-Amz-Credential",z4="X-Amz-Date",YQ="X-Amz-SignedHeaders",IQ="X-Amz-Expires",M4="X-Amz-Signature",J4="X-Amz-Security-Token",K4="authorization",A4=z4.toLowerCase(),QQ="date",RQ=[K4,A4,QQ],zQ=M4.toLowerCase(),qw="x-amz-content-sha256",MQ=J4.toLowerCase(),JQ={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},KQ=/^proxy-/,AQ=/^sec-/,Nw="AWS4-HMAC-SHA256",OQ="AWS4-HMAC-SHA256-PAYLOAD",BQ="UNSIGNED-PAYLOAD",VQ=50,O4="aws4_request",TQ=604800,G0=XW(),HQ=$0(),j0={},a1=[],e1=b(($,w,f)=>`${$}/${w}/${f}/${O4}`,"createScope"),B4=b(async($,w,f,G,U)=>{const W=await Y4($,w.secretAccessKey,w.accessKeyId),L=`${f}:${G}:${U}:${G0.toHex(W)}:${w.sessionToken}`;if(L in j0)return j0[L];a1.push(L);while(a1.length>VQ)delete j0[a1.shift()];let X=`AWS4${w.secretAccessKey}`;for(let Z of[f,G,U,O4])X=await Y4($,X,Z);return j0[L]=X},"getSigningKey"),CQ=b(()=>{a1.length=0,Object.keys(j0).forEach(($)=>{delete j0[$]})},"clearCredentialCache"),Y4=b(($,w,f)=>{const G=new $(w);return G.update(HQ.toUint8Array(f)),G.digest()},"hmac"),Pw=b(({headers:$},w,f)=>{const G={};for(let U of Object.keys($).sort()){if($[U]==null)continue;const W=U.toLowerCase();if(W in JQ||(w==null?void 0:w.has(W))||KQ.test(W)||AQ.test(W)){if(!f||f&&!f.has(W))continue}G[W]=$[U].trim().replace(/\s+/g," ")}return G},"getCanonicalHeaders"),r0=NG(),V4=b(({query:$={}})=>{const w=[],f={};for(let G of Object.keys($).sort()){if(G.toLowerCase()===zQ)continue;w.push(G);const U=$[G];if(typeof U==="string")f[G]=`${r0.escapeUri(G)}=${r0.escapeUri(U)}`;else if(Array.isArray(U))f[G]=U.slice(0).reduce((W,L)=>W.concat([`${r0.escapeUri(G)}=${r0.escapeUri(L)}`]),[]).sort().join("&")}return w.map((G)=>f[G]).filter((G)=>G).join("&")},"getCanonicalQuery"),NQ=j$(),qQ=$0(),$$=b(async({headers:$,body:w},f)=>{for(let G of Object.keys($))if(G.toLowerCase()===qw)return $[G];if(w==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof w==="string"||ArrayBuffer.isView(w)||NQ.isArrayBuffer(w)){const G=new f;return G.update(qQ.toUint8Array(w)),G0.toHex(await G.digest())}return BQ},"getPayloadHash"),I4=$0(),T4=class ${format(w){const f=[];for(let W of Object.keys(w)){const L=I4.fromUtf8(W);f.push(Uint8Array.from([L.byteLength]),L,this.formatHeaderValue(w[W]))}const G=new Uint8Array(f.reduce((W,L)=>W+L.byteLength,0));let U=0;for(let W of f)G.set(W,U),U+=W.byteLength;return G}formatHeaderValue(w){switch(w.type){case"boolean":return Uint8Array.from([w.value?0:1]);case"byte":return Uint8Array.from([2,w.value]);case"short":const f=new DataView(new ArrayBuffer(3));return f.setUint8(0,3),f.setInt16(1,w.value,!1),new Uint8Array(f.buffer);case"integer":const G=new DataView(new ArrayBuffer(5));return G.setUint8(0,4),G.setInt32(1,w.value,!1),new Uint8Array(G.buffer);case"long":const U=new Uint8Array(9);return U[0]=5,U.set(w.value.bytes,1),U;case"binary":const W=new DataView(new ArrayBuffer(3+w.value.byteLength));W.setUint8(0,6),W.setUint16(1,w.value.byteLength,!1);const L=new Uint8Array(W.buffer);return L.set(w.value,3),L;case"string":const X=I4.fromUtf8(w.value),Z=new DataView(new ArrayBuffer(3+X.byteLength));Z.setUint8(0,7),Z.setUint16(1,X.byteLength,!1);const F=new Uint8Array(Z.buffer);return F.set(X,3),F;case"timestamp":const E=new Uint8Array(9);return E[0]=8,E.set(SQ.fromNumber(w.value.valueOf()).bytes,1),E;case"uuid":if(!jQ.test(w.value))throw new Error(`Invalid UUID received: ${w.value}`);const Y=new Uint8Array(17);return Y[0]=9,Y.set(G0.fromHex(w.value.replace(/\-/g,"")),1),Y}}};b(T4,"HeaderFormatter");var PQ=T4,jQ=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,H4=class ${constructor(w){if(this.bytes=w,w.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(w){if(w>9223372036854776000||w<-9223372036854776000)throw new Error(`${w} is too large (or, if negative, too small) to represent as an Int64`);const f=new Uint8Array(8);for(let G=7,U=Math.abs(Math.round(w));G>-1&&U>0;G--,U/=256)f[G]=U;if(w<0)jw(f);return new $(f)}valueOf(){const w=this.bytes.slice(0),f=w[0]&128;if(f)jw(w);return parseInt(G0.toHex(w),16)*(f?-1:1)}toString(){return String(this.valueOf())}};b(H4,"Int64");var SQ=H4;b(jw,"negate");var bQ=b(($,w)=>{$=$.toLowerCase();for(let f of Object.keys(w))if($===f.toLowerCase())return!0;return!1},"hasHeader"),C4=r(),N4=b(($,w={})=>{var f;const{headers:G,query:U={}}=C4.HttpRequest.clone($);for(let W of Object.keys(G)){const L=W.toLowerCase();if(L.slice(0,6)==="x-amz-"&&!((f=w.unhoistableHeaders)==null?void 0:f.has(L)))U[W]=G[W],delete G[W]}return{...$,headers:G,query:U}},"moveHeadersToQuery"),Sw=b(($)=>{$=C4.HttpRequest.clone($);for(let w of Object.keys($.headers))if(RQ.indexOf(w.toLowerCase())>-1)delete $.headers[w];return $},"prepareRequest"),hQ=b(($)=>kQ($).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),kQ=b(($)=>{if(typeof $==="number")return new Date($*1000);if(typeof $==="string"){if(Number($))return new Date(Number($)*1000);return new Date($)}return $},"toDate"),q4=class ${constructor({applyChecksum:w,credentials:f,region:G,service:U,sha256:W,uriEscapePath:L=!0}){this.headerFormatter=new PQ,this.service=U,this.sha256=W,this.uriEscapePath=L,this.applyChecksum=typeof w==="boolean"?w:!0,this.regionProvider=E4.normalizeProvider(G),this.credentialProvider=E4.normalizeProvider(f)}async presign(w,f={}){const{signingDate:G=new Date,expiresIn:U=3600,unsignableHeaders:W,unhoistableHeaders:L,signableHeaders:X,signingRegion:Z,signingService:F}=f,E=await this.credentialProvider();this.validateResolvedCredentials(E);const Y=Z??await this.regionProvider(),{longDate:Q,shortDate:I}=t1(G);if(U>TQ)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const R=e1(I,Y,F??this.service),J=N4(Sw(w),{unhoistableHeaders:L});if(E.sessionToken)J.query[J4]=E.sessionToken;J.query[FQ]=Nw,J.query[EQ]=`${E.accessKeyId}/${R}`,J.query[z4]=Q,J.query[IQ]=U.toString(10);const O=Pw(J,W,X);return J.query[YQ]=Q4(O),J.query[M4]=await this.getSignature(Q,R,this.getSigningKey(E,Y,I,F),this.createCanonicalRequest(J,O,await $$(w,this.sha256))),J}async sign(w,f){if(typeof w==="string")return this.signString(w,f);else if(w.headers&&w.payload)return this.signEvent(w,f);else if(w.message)return this.signMessage(w,f);else return this.signRequest(w,f)}async signEvent({headers:w,payload:f},{signingDate:G=new Date,priorSignature:U,signingRegion:W,signingService:L}){const X=W??await this.regionProvider(),{shortDate:Z,longDate:F}=t1(G),E=e1(Z,X,L??this.service),Y=await $$({headers:{},body:f},this.sha256),Q=new this.sha256;Q.update(w);const I=G0.toHex(await Q.digest()),R=[OQ,F,E,U,I,Y].join("\n");return this.signString(R,{signingDate:G,signingRegion:X,signingService:L})}async signMessage(w,{signingDate:f=new Date,signingRegion:G,signingService:U}){return this.signEvent({headers:this.headerFormatter.format(w.message.headers),payload:w.message.body},{signingDate:f,signingRegion:G,signingService:U,priorSignature:w.priorSignature}).then((L)=>{return{message:w.message,signature:L}})}async signString(w,{signingDate:f=new Date,signingRegion:G,signingService:U}={}){const W=await this.credentialProvider();this.validateResolvedCredentials(W);const L=G??await this.regionProvider(),{shortDate:X}=t1(f),Z=new this.sha256(await this.getSigningKey(W,L,X,U));return Z.update(Cw.toUint8Array(w)),G0.toHex(await Z.digest())}async signRequest(w,{signingDate:f=new Date,signableHeaders:G,unsignableHeaders:U,signingRegion:W,signingService:L}={}){const X=await this.credentialProvider();this.validateResolvedCredentials(X);const Z=W??await this.regionProvider(),F=Sw(w),{longDate:E,shortDate:Y}=t1(f),Q=e1(Y,Z,L??this.service);if(F.headers[A4]=E,X.sessionToken)F.headers[MQ]=X.sessionToken;const I=await $$(F,this.sha256);if(!bQ(qw,F.headers)&&this.applyChecksum)F.headers[qw]=I;const R=Pw(F,U,G),J=await this.getSignature(E,Q,this.getSigningKey(X,Z,Y,L),this.createCanonicalRequest(F,R,I));return F.headers[K4]=`${Nw} Credential=${X.accessKeyId}/${Q}, SignedHeaders=${Q4(R)}, Signature=${J}`,F}createCanonicalRequest(w,f,G){const U=Object.keys(f).sort();return`${w.method}
10
- ${this.getCanonicalPath(w)}
11
- ${V4(w)}
12
- ${U.map((W)=>`${W}:${f[W]}`).join("\n")}
13
-
14
- ${U.join(";")}
15
- ${G}`}async createStringToSign(w,f,G){const U=new this.sha256;U.update(Cw.toUint8Array(G));const W=await U.digest();return`${Nw}
16
- ${w}
17
- ${f}
18
- ${G0.toHex(W)}`}getCanonicalPath({path:w}){if(this.uriEscapePath){const f=[];for(let W of w.split("/")){if((W==null?void 0:W.length)===0)continue;if(W===".")continue;if(W==="..")f.pop();else f.push(W)}const G=`${(w==null?void 0:w.startsWith("/"))?"/":""}${f.join("/")}${f.length>0&&(w==null?void 0:w.endsWith("/"))?"/":""}`;return r0.escapeUri(G).replace(/%2F/g,"/")}return w}async getSignature(w,f,G,U){const W=await this.createStringToSign(w,f,U),L=new this.sha256(await G);return L.update(Cw.toUint8Array(W)),G0.toHex(await L.digest())}getSigningKey(w,f,G,U){return B4(this.sha256,w,G,f,U||this.service)}validateResolvedCredentials(w){if(typeof w!=="object"||typeof w.accessKeyId!=="string"||typeof w.secretAccessKey!=="string")throw new Error("Resolved credential object is not valid")}};b(q4,"SignatureV4");var DQ=q4,t1=b(($)=>{const w=hQ($).replace(/[\-:]/g,"");return{longDate:w,shortDate:w.slice(0,8)}},"formatDate"),Q4=b(($)=>Object.keys($).sort().join(";"),"getCanonicalHeaderList")});var u4=M((WO,x4)=>{var{defineProperty:f$,getOwnPropertyDescriptor:cQ,getOwnPropertyNames:vQ}=Object,yQ=Object.prototype.hasOwnProperty,c=($,w)=>f$($,"name",{value:w,configurable:!0}),xQ=($,w)=>{for(var f in w)f$($,f,{get:w[f],enumerable:!0})},uQ=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of vQ(w))if(!yQ.call($,U)&&U!==f)f$($,U,{get:()=>w[U],enumerable:!(G=cQ(w,U))||G.enumerable})}return $},_Q=($)=>uQ(f$({},"__esModule",{value:!0}),$),D4={};xQ(D4,{AWSSDKSigV4Signer:()=>sQ,AwsSdkSigV4ASigner:()=>nQ,AwsSdkSigV4Signer:()=>kw,NODE_SIGV4A_CONFIG_OPTIONS:()=>rQ,resolveAWSSDKSigV4Config:()=>oQ,resolveAwsSdkSigV4AConfig:()=>iQ,resolveAwsSdkSigV4Config:()=>y4,validateSigningProperties:()=>hw});x4.exports=_Q(D4);var dQ=r(),pQ=r(),S4=c(($)=>{var w,f;return pQ.HttpResponse.isInstance($)?((w=$.headers)==null?void 0:w.date)??((f=$.headers)==null?void 0:f.Date):void 0},"getDateHeader"),bw=c(($)=>new Date(Date.now()+$),"getSkewCorrectedDate"),gQ=c(($,w)=>Math.abs(bw(w).getTime()-$)>=300000,"isClockSkewed"),b4=c(($,w)=>{const f=Date.parse($);if(gQ(f,w))return f-Date.now();return w},"getUpdatedSystemClockOffset"),o0=c(($,w)=>{if(!w)throw new Error(`Property \`${$}\` is not resolved for AWS SDK SigV4Auth`);return w},"throwSigningPropertyError"),hw=c(async($)=>{var w,f,G;const U=o0("context",$.context),W=o0("config",$.config),L=(G=(f=(w=U.endpointV2)==null?void 0:w.properties)==null?void 0:f.authSchemes)==null?void 0:G[0],Z=await o0("signer",W.signer)(L),F=$==null?void 0:$.signingRegion,E=$==null?void 0:$.signingRegionSet,Y=$==null?void 0:$.signingName;return{config:W,signer:Z,signingRegion:F,signingRegionSet:E,signingName:Y}},"validateSigningProperties"),c4=class ${async sign(w,f,G){var U;if(!dQ.HttpRequest.isInstance(w))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const W=await hw(G),{config:L,signer:X}=W;let{signingRegion:Z,signingName:F}=W;const E=G.context;if(((U=E==null?void 0:E.authSchemes)==null?void 0:U.length)??0>1){const[Q,I]=E.authSchemes;if((Q==null?void 0:Q.name)==="sigv4a"&&(I==null?void 0:I.name)==="sigv4")Z=(I==null?void 0:I.signingRegion)??Z,F=(I==null?void 0:I.signingName)??F}return await X.sign(w,{signingDate:bw(L.systemClockOffset),signingRegion:Z,signingService:F})}errorHandler(w){return(f)=>{const G=f.ServerTime??S4(f.$response);if(G){const U=o0("config",w.config),W=U.systemClockOffset;if(U.systemClockOffset=b4(G,U.systemClockOffset),U.systemClockOffset!==W&&f.$metadata)f.$metadata.clockSkewCorrected=!0}throw f}}successHandler(w,f){const G=S4(w);if(G){const U=o0("config",f.config);U.systemClockOffset=b4(G,U.systemClockOffset)}}};c(c4,"AwsSdkSigV4Signer");var kw=c4,sQ=kw,lQ=r(),v4=class $ extends kw{async sign(w,f,G){var U;if(!lQ.HttpRequest.isInstance(w))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:W,signer:L,signingRegion:X,signingRegionSet:Z,signingName:F}=await hw(G),Y=(await((U=W.sigv4aSigningRegionSet)==null?void 0:U.call(W))??Z??[X]).join(",");return await L.sign(w,{signingDate:bw(W.systemClockOffset),signingRegion:Y,signingService:F})}};c(v4,"AwsSdkSigV4ASigner");var nQ=v4,mQ=Gw(),h4=z$(),iQ=c(($)=>{return $.sigv4aSigningRegionSet=mQ.normalizeProvider($.sigv4aSigningRegionSet),$},"resolveAwsSdkSigV4AConfig"),rQ={environmentVariableSelector($){if($.AWS_SIGV4A_SIGNING_REGION_SET)return $.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((w)=>w.trim());throw new h4.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector($){if($.sigv4a_signing_region_set)return($.sigv4a_signing_region_set??"").split(",").map((w)=>w.trim());throw new h4.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},Q0=Gw(),k4=j4(),y4=c(($)=>{let w;if($.credentials)w=Q0.memoizeIdentityProvider($.credentials,Q0.isIdentityExpired,Q0.doesIdentityRequireRefresh);if(!w)if($.credentialDefaultProvider)w=Q0.normalizeProvider($.credentialDefaultProvider(Object.assign({},$,{parentClientConfig:$})));else w=c(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");const{signingEscapePath:f=!0,systemClockOffset:G=$.systemClockOffset||0,sha256:U}=$;let W;if($.signer)W=Q0.normalizeProvider($.signer);else if($.regionInfoProvider)W=c(()=>Q0.normalizeProvider($.region)().then(async(L)=>[await $.regionInfoProvider(L,{useFipsEndpoint:await $.useFipsEndpoint(),useDualstackEndpoint:await $.useDualstackEndpoint()})||{},L]).then(([L,X])=>{const{signingRegion:Z,signingService:F}=L;$.signingRegion=$.signingRegion||Z||X,$.signingName=$.signingName||F||$.serviceId;const E={...$,credentials:w,region:$.signingRegion,service:$.signingName,sha256:U,uriEscapePath:f};return new($.signerConstructor||k4.SignatureV4)(E)}),"signer");else W=c(async(L)=>{L=Object.assign({},{name:"sigv4",signingName:$.signingName||$.defaultSigningName,signingRegion:await Q0.normalizeProvider($.region)(),properties:{}},L);const{signingRegion:X,signingName:Z}=L;$.signingRegion=$.signingRegion||X,$.signingName=$.signingName||Z||$.serviceId;const F={...$,credentials:w,region:$.signingRegion,service:$.signingName,sha256:U,uriEscapePath:f};return new($.signerConstructor||k4.SignatureV4)(F)},"signer");return{...$,systemClockOffset:G,signingEscapePath:f,credentials:w,signer:W}},"resolveAwsSdkSigV4Config"),oQ=y4});var U$=M((w9)=>{var tQ=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",_4="[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]["+tQ+"]*",aQ=new RegExp("^"+_4+"$"),eQ=function($,w){const f=[];let G=w.exec($);while(G){const U=[];U.startIndex=w.lastIndex-G[0].length;const W=G.length;for(let L=0;L<W;L++)U.push(G[L]);f.push(U),G=w.exec($)}return f},$9=function($){const w=aQ.exec($);return!(w===null||typeof w==="undefined")};w9.isExist=function($){return typeof $!=="undefined"};w9.isEmptyObject=function($){return Object.keys($).length===0};w9.merge=function($,w,f){if(w){const G=Object.keys(w),U=G.length;for(let W=0;W<U;W++)if(f==="strict")$[G[W]]=[w[G[W]]];else $[G[W]]=w[G[W]]}};w9.getValue=function($){if(w9.isExist($))return $;else return""};w9.isName=$9;w9.getAllMatches=eQ;w9.nameRegexp=_4});var cw=M((J9)=>{var p4=function($){return $===" "||$==="\t"||$==="\n"||$==="\r"},g4=function($,w){const f=w;for(;w<$.length;w++)if($[w]=="?"||$[w]==" "){const G=$.substr(f,w-f);if(w>5&&G==="xml")return P("InvalidXml","XML declaration allowed only at the start of the document.",k($,w));else if($[w]=="?"&&$[w+1]==">"){w++;break}else continue}return w},s4=function($,w){if($.length>w+5&&$[w+1]==="-"&&$[w+2]==="-"){for(w+=3;w<$.length;w++)if($[w]==="-"&&$[w+1]==="-"&&$[w+2]===">"){w+=2;break}}else if($.length>w+8&&$[w+1]==="D"&&$[w+2]==="O"&&$[w+3]==="C"&&$[w+4]==="T"&&$[w+5]==="Y"&&$[w+6]==="P"&&$[w+7]==="E"){let f=1;for(w+=8;w<$.length;w++)if($[w]==="<")f++;else if($[w]===">"){if(f--,f===0)break}}else if($.length>w+9&&$[w+1]==="["&&$[w+2]==="C"&&$[w+3]==="D"&&$[w+4]==="A"&&$[w+5]==="T"&&$[w+6]==="A"&&$[w+7]==="["){for(w+=8;w<$.length;w++)if($[w]==="]"&&$[w+1]==="]"&&$[w+2]===">"){w+=2;break}}return w},Y9=function($,w){let f="",G="",U=!1;for(;w<$.length;w++){if($[w]===F9||$[w]===E9)if(G==="")G=$[w];else if(G!==$[w]);else G="";else if($[w]===">"){if(G===""){U=!0;break}}f+=$[w]}if(G!=="")return!1;return{value:f,index:w,tagClosed:U}},l4=function($,w){const f=Dw.getAllMatches($,I9),G={};for(let U=0;U<f.length;U++){if(f[U][1].length===0)return P("InvalidAttr","Attribute '"+f[U][2]+"' has no space in starting.",t0(f[U]));else if(f[U][3]!==void 0&&f[U][4]===void 0)return P("InvalidAttr","Attribute '"+f[U][2]+"' is without value.",t0(f[U]));else if(f[U][3]===void 0&&!w.allowBooleanAttributes)return P("InvalidAttr","boolean attribute '"+f[U][2]+"' is not allowed.",t0(f[U]));const W=f[U][2];if(!z9(W))return P("InvalidAttr","Attribute '"+W+"' is an invalid name.",t0(f[U]));if(!G.hasOwnProperty(W))G[W]=1;else return P("InvalidAttr","Attribute '"+W+"' is repeated.",t0(f[U]))}return!0},Q9=function($,w){let f=/\d/;if($[w]==="x")w++,f=/[\da-fA-F]/;for(;w<$.length;w++){if($[w]===";")return w;if(!$[w].match(f))break}return-1},R9=function($,w){if(w++,$[w]===";")return-1;if($[w]==="#")return w++,Q9($,w);let f=0;for(;w<$.length;w++,f++){if($[w].match(/\w/)&&f<20)continue;if($[w]===";")break;return-1}return w},P=function($,w,f){return{err:{code:$,msg:w,line:f.line||f,col:f.col}}},z9=function($){return Dw.isName($)},M9=function($){return Dw.isName($)},k=function($,w){const f=$.substring(0,w).split(/\r?\n/);return{line:f.length,col:f[f.length-1].length+1}},t0=function($){return $.startIndex+$[1].length},Dw=U$(),Z9={allowBooleanAttributes:!1,unpairedTags:[]};J9.validate=function($,w){w=Object.assign({},Z9,w);const f=[];let G=!1,U=!1;if($[0]==="\uFEFF")$=$.substr(1);for(let W=0;W<$.length;W++)if($[W]==="<"&&$[W+1]==="?"){if(W+=2,W=g4($,W),W.err)return W}else if($[W]==="<"){let L=W;if(W++,$[W]==="!"){W=s4($,W);continue}else{let X=!1;if($[W]==="/")X=!0,W++;let Z="";for(;W<$.length&&$[W]!==">"&&$[W]!==" "&&$[W]!=="\t"&&$[W]!=="\n"&&$[W]!=="\r";W++)Z+=$[W];if(Z=Z.trim(),Z[Z.length-1]==="/")Z=Z.substring(0,Z.length-1),W--;if(!M9(Z)){let Y;if(Z.trim().length===0)Y="Invalid space after '<'.";else Y="Tag '"+Z+"' is an invalid name.";return P("InvalidTag",Y,k($,W))}const F=Y9($,W);if(F===!1)return P("InvalidAttr","Attributes for '"+Z+"' have open quote.",k($,W));let E=F.value;if(W=F.index,E[E.length-1]==="/"){const Y=W-E.length;E=E.substring(0,E.length-1);const Q=l4(E,w);if(Q===!0)G=!0;else return P(Q.err.code,Q.err.msg,k($,Y+Q.err.line))}else if(X)if(!F.tagClosed)return P("InvalidTag","Closing tag '"+Z+"' doesn't have proper closing.",k($,W));else if(E.trim().length>0)return P("InvalidTag","Closing tag '"+Z+"' can't have attributes or invalid starting.",k($,L));else if(f.length===0)return P("InvalidTag","Closing tag '"+Z+"' has not been opened.",k($,L));else{const Y=f.pop();if(Z!==Y.tagName){let Q=k($,Y.tagStartPos);return P("InvalidTag","Expected closing tag '"+Y.tagName+"' (opened in line "+Q.line+", col "+Q.col+") instead of closing tag '"+Z+"'.",k($,L))}if(f.length==0)U=!0}else{const Y=l4(E,w);if(Y!==!0)return P(Y.err.code,Y.err.msg,k($,W-E.length+Y.err.line));if(U===!0)return P("InvalidXml","Multiple possible root nodes found.",k($,W));else if(w.unpairedTags.indexOf(Z)!==-1);else f.push({tagName:Z,tagStartPos:L});G=!0}for(W++;W<$.length;W++)if($[W]==="<")if($[W+1]==="!"){W++,W=s4($,W);continue}else if($[W+1]==="?"){if(W=g4($,++W),W.err)return W}else break;else if($[W]==="&"){const Y=R9($,W);if(Y==-1)return P("InvalidChar","char '&' is not expected.",k($,W));W=Y}else if(U===!0&&!p4($[W]))return P("InvalidXml","Extra text at the end",k($,W));if($[W]==="<")W--}}else{if(p4($[W]))continue;return P("InvalidChar","char '"+$[W]+"' is not expected.",k($,W))}if(!G)return P("InvalidXml","Start tag expected.",1);else if(f.length==1)return P("InvalidTag","Unclosed tag '"+f[0].tagName+"'.",k($,f[0].tagStartPos));else if(f.length>0)return P("InvalidXml","Invalid '"+JSON.stringify(f.map((W)=>W.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var F9='"',E9="'",I9=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var m4=M((O9)=>{var n4={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function($,w){return w},attributeValueProcessor:function($,w){return w},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function($,w,f){return $}},A9=function($){return Object.assign({},n4,$)};O9.buildOptions=A9;O9.defaultOptions=n4});var o4=M((FO,r4)=>{class i4{constructor($){this.tagname=$,this.child=[],this[":@"]={}}add($,w){if($==="__proto__")$="#__proto__";this.child.push({[$]:w})}addChild($){if($.tagname==="__proto__")$.tagname="#__proto__";if($[":@"]&&Object.keys($[":@"]).length>0)this.child.push({[$.tagname]:$.child,[":@"]:$[":@"]});else this.child.push({[$.tagname]:$.child})}}r4.exports=i4});var a4=M((EO,t4)=>{var H9=function($,w){const f={};if($[w+3]==="O"&&$[w+4]==="C"&&$[w+5]==="T"&&$[w+6]==="Y"&&$[w+7]==="P"&&$[w+8]==="E"){w=w+9;let G=1,U=!1,W=!1,L="";for(;w<$.length;w++)if($[w]==="<"&&!W){if(U&&q9($,w)){if(w+=7,[entityName,val,w]=C9($,w+1),val.indexOf("&")===-1)f[b9(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(U&&P9($,w))w+=8;else if(U&&j9($,w))w+=8;else if(U&&S9($,w))w+=9;else if(N9)W=!0;else throw new Error("Invalid DOCTYPE");G++,L=""}else if($[w]===">"){if(W){if($[w-1]==="-"&&$[w-2]==="-")W=!1,G--}else G--;if(G===0)break}else if($[w]==="[")U=!0;else L+=$[w];if(G!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:f,i:w}},C9=function($,w){let f="";for(;w<$.length&&($[w]!=="'"&&$[w]!=='"');w++)f+=$[w];if(f=f.trim(),f.indexOf(" ")!==-1)throw new Error("External entites are not supported");const G=$[w++];let U="";for(;w<$.length&&$[w]!==G;w++)U+=$[w];return[f,U,w]},N9=function($,w){if($[w+1]==="!"&&$[w+2]==="-"&&$[w+3]==="-")return!0;return!1},q9=function($,w){if($[w+1]==="!"&&$[w+2]==="E"&&$[w+3]==="N"&&$[w+4]==="T"&&$[w+5]==="I"&&$[w+6]==="T"&&$[w+7]==="Y")return!0;return!1},P9=function($,w){if($[w+1]==="!"&&$[w+2]==="E"&&$[w+3]==="L"&&$[w+4]==="E"&&$[w+5]==="M"&&$[w+6]==="E"&&$[w+7]==="N"&&$[w+8]==="T")return!0;return!1},j9=function($,w){if($[w+1]==="!"&&$[w+2]==="A"&&$[w+3]==="T"&&$[w+4]==="T"&&$[w+5]==="L"&&$[w+6]==="I"&&$[w+7]==="S"&&$[w+8]==="T")return!0;return!1},S9=function($,w){if($[w+1]==="!"&&$[w+2]==="N"&&$[w+3]==="O"&&$[w+4]==="T"&&$[w+5]==="A"&&$[w+6]==="T"&&$[w+7]==="I"&&$[w+8]==="O"&&$[w+9]==="N")return!0;return!1},b9=function($){if(T9.isName($))return $;else throw new Error(`Invalid entity name ${$}`)},T9=U$();t4.exports=H9});var $6=M((YO,e4)=>{var c9=function($,w={}){if(w=Object.assign({},D9,w),!$||typeof $!=="string")return $;let f=$.trim();if(w.skipLike!==void 0&&w.skipLike.test(f))return $;else if(w.hex&&h9.test(f))return Number.parseInt(f,16);else{const G=k9.exec(f);if(G){const U=G[1],W=G[2];let L=v9(G[3]);const X=G[4]||G[6];if(!w.leadingZeros&&W.length>0&&U&&f[2]!==".")return $;else if(!w.leadingZeros&&W.length>0&&!U&&f[1]!==".")return $;else{const Z=Number(f),F=""+Z;if(F.search(/[eE]/)!==-1)if(w.eNotation)return Z;else return $;else if(X)if(w.eNotation)return Z;else return $;else if(f.indexOf(".")!==-1)if(F==="0"&&L==="")return Z;else if(F===L)return Z;else if(U&&F==="-"+L)return Z;else return $;if(W)if(L===F)return Z;else if(U+L===F)return Z;else return $;if(f===F)return Z;else if(f===U+F)return Z;return $}}else return $}},v9=function($){if($&&$.indexOf(".")!==-1){if($=$.replace(/0+$/,""),$===".")$="0";else if($[0]===".")$="0"+$;else if($[$.length-1]===".")$=$.substr(0,$.length-1);return $}return $},h9=/^[-+]?0x[a-fA-F0-9]+$/,k9=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;if(!Number.parseInt&&window.parseInt)Number.parseInt=window.parseInt;if(!Number.parseFloat&&window.parseFloat)Number.parseFloat=window.parseFloat;var D9={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e4.exports=c9});var G6=M((IO,U6)=>{var u9=function($){const w=Object.keys($);for(let f=0;f<w.length;f++){const G=w[f];this.lastEntities[G]={regex:new RegExp("&"+G+";","g"),val:$[G]}}},_9=function($,w,f,G,U,W,L){if($!==void 0){if(this.options.trimValues&&!G)$=$.trim();if($.length>0){if(!L)$=this.replaceEntitiesValue($);const X=this.options.tagValueProcessor(w,$,f,U,W);if(X===null||X===void 0)return $;else if(typeof X!==typeof $||X!==$)return X;else if(this.options.trimValues)return yw($,this.options.parseTagValue,this.options.numberParseOptions);else if($.trim()===$)return yw($,this.options.parseTagValue,this.options.numberParseOptions);else return $}}},d9=function($){if(this.options.removeNSPrefix){const w=$.split(":"),f=$.charAt(0)==="/"?"/":"";if(w[0]==="xmlns")return"";if(w.length===2)$=f+w[1]}return $},g9=function($,w,f){if(!this.options.ignoreAttributes&&typeof $==="string"){const G=w6.getAllMatches($,p9),U=G.length,W={};for(let L=0;L<U;L++){const X=this.resolveNameSpace(G[L][1]);let Z=G[L][4],F=this.options.attributeNamePrefix+X;if(X.length){if(this.options.transformAttributeName)F=this.options.transformAttributeName(F);if(F==="__proto__")F="#__proto__";if(Z!==void 0){if(this.options.trimValues)Z=Z.trim();Z=this.replaceEntitiesValue(Z);const E=this.options.attributeValueProcessor(X,Z,w);if(E===null||E===void 0)W[F]=Z;else if(typeof E!==typeof Z||E!==Z)W[F]=E;else W[F]=yw(Z,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)W[F]=!0}}if(!Object.keys(W).length)return;if(this.options.attributesGroupName){const L={};return L[this.options.attributesGroupName]=W,L}return W}},l9=function($,w,f){const G=this.options.updateTag(w.tagname,f,w[":@"]);if(G===!1);else if(typeof G==="string")w.tagname=G,$.addChild(w);else $.addChild(w)},m9=function($,w,f,G){if($){if(G===void 0)G=Object.keys(w.child).length===0;if($=this.parseTextData($,w.tagname,f,!1,w[":@"]?Object.keys(w[":@"]).length!==0:!1,G),$!==void 0&&$!=="")w.add(this.options.textNodeName,$);$=""}return $},i9=function($,w,f){const G="*."+f;for(let U in $){const W=$[U];if(G===W||w===W)return!0}return!1},r9=function($,w,f=">"){let G,U="";for(let W=w;W<$.length;W++){let L=$[W];if(G){if(L===G)G=""}else if(L==='"'||L==="'")G=L;else if(L===f[0])if(f[1]){if($[W+1]===f[1])return{data:U,index:W}}else return{data:U,index:W};else if(L==="\t")L=" ";U+=L}},R0=function($,w,f,G){const U=$.indexOf(w,f);if(U===-1)throw new Error(G);else return U+w.length-1},vw=function($,w,f,G=">"){const U=r9($,w+1,G);if(!U)return;let W=U.data;const L=U.index,X=W.search(/\s/);let Z=W,F=!0;if(X!==-1)Z=W.substring(0,X),W=W.substring(X+1).trimStart();const E=Z;if(f){const Y=Z.indexOf(":");if(Y!==-1)Z=Z.substr(Y+1),F=Z!==U.data.substr(Y+1)}return{tagName:Z,tagExp:W,closeIndex:L,attrExpPresent:F,rawTagName:E}},o9=function($,w,f){const G=f;let U=1;for(;f<$.length;f++)if($[f]==="<")if($[f+1]==="/"){const W=R0($,">",f,`${w} is not closed`);if($.substring(f+2,W).trim()===w){if(U--,U===0)return{tagContent:$.substring(G,f),i:W}}f=W}else if($[f+1]==="?")f=R0($,"?>",f+1,"StopNode is not closed.");else if($.substr(f+1,3)==="!--")f=R0($,"-->",f+3,"StopNode is not closed.");else if($.substr(f+1,2)==="![")f=R0($,"]]>",f,"StopNode is not closed.")-2;else{const W=vw($,f,">");if(W){if((W&&W.tagName)===w&&W.tagExp[W.tagExp.length-1]!=="/")U++;f=W.closeIndex}}},yw=function($,w,f){if(w&&typeof $==="string"){const G=$.trim();if(G==="true")return!0;else if(G==="false")return!1;else return x9($,f)}else if(w6.isExist($))return $;else return""},w6=U$(),a0=o4(),y9=a4(),x9=$6();class f6{constructor($){this.options=$,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:"\""}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(w,f)=>String.fromCharCode(Number.parseInt(f,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(w,f)=>String.fromCharCode(Number.parseInt(f,16))}},this.addExternalEntities=u9,this.parseXml=s9,this.parseTextData=_9,this.resolveNameSpace=d9,this.buildAttributesMap=g9,this.isItStopNode=i9,this.replaceEntitiesValue=n9,this.readStopNodeData=o9,this.saveTextToParentTag=m9,this.addChild=l9}}var p9=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),s9=function($){$=$.replace(/\r\n?/g,"\n");const w=new a0("!xml");let f=w,G="",U="";for(let W=0;W<$.length;W++)if($[W]==="<")if($[W+1]==="/"){const X=R0($,">",W,"Closing Tag is not closed.");let Z=$.substring(W+2,X).trim();if(this.options.removeNSPrefix){const Y=Z.indexOf(":");if(Y!==-1)Z=Z.substr(Y+1)}if(this.options.transformTagName)Z=this.options.transformTagName(Z);if(f)G=this.saveTextToParentTag(G,f,U);const F=U.substring(U.lastIndexOf(".")+1);if(Z&&this.options.unpairedTags.indexOf(Z)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${Z}>`);let E=0;if(F&&this.options.unpairedTags.indexOf(F)!==-1)E=U.lastIndexOf(".",U.lastIndexOf(".")-1),this.tagsNodeStack.pop();else E=U.lastIndexOf(".");U=U.substring(0,E),f=this.tagsNodeStack.pop(),G="",W=X}else if($[W+1]==="?"){let X=vw($,W,!1,"?>");if(!X)throw new Error("Pi Tag is not closed.");if(G=this.saveTextToParentTag(G,f,U),this.options.ignoreDeclaration&&X.tagName==="?xml"||this.options.ignorePiTags);else{const Z=new a0(X.tagName);if(Z.add(this.options.textNodeName,""),X.tagName!==X.tagExp&&X.attrExpPresent)Z[":@"]=this.buildAttributesMap(X.tagExp,U,X.tagName);this.addChild(f,Z,U)}W=X.closeIndex+1}else if($.substr(W+1,3)==="!--"){const X=R0($,"-->",W+4,"Comment is not closed.");if(this.options.commentPropName){const Z=$.substring(W+4,X-2);G=this.saveTextToParentTag(G,f,U),f.add(this.options.commentPropName,[{[this.options.textNodeName]:Z}])}W=X}else if($.substr(W+1,2)==="!D"){const X=y9($,W);this.docTypeEntities=X.entities,W=X.i}else if($.substr(W+1,2)==="!["){const X=R0($,"]]>",W,"CDATA is not closed.")-2,Z=$.substring(W+9,X);G=this.saveTextToParentTag(G,f,U);let F=this.parseTextData(Z,f.tagname,U,!0,!1,!0,!0);if(F==null)F="";if(this.options.cdataPropName)f.add(this.options.cdataPropName,[{[this.options.textNodeName]:Z}]);else f.add(this.options.textNodeName,F);W=X+2}else{let X=vw($,W,this.options.removeNSPrefix),Z=X.tagName;const F=X.rawTagName;let{tagExp:E,attrExpPresent:Y,closeIndex:Q}=X;if(this.options.transformTagName)Z=this.options.transformTagName(Z);if(f&&G){if(f.tagname!=="!xml")G=this.saveTextToParentTag(G,f,U,!1)}const I=f;if(I&&this.options.unpairedTags.indexOf(I.tagname)!==-1)f=this.tagsNodeStack.pop(),U=U.substring(0,U.lastIndexOf("."));if(Z!==w.tagname)U+=U?"."+Z:Z;if(this.isItStopNode(this.options.stopNodes,U,Z)){let R="";if(E.length>0&&E.lastIndexOf("/")===E.length-1){if(Z[Z.length-1]==="/")Z=Z.substr(0,Z.length-1),U=U.substr(0,U.length-1),E=Z;else E=E.substr(0,E.length-1);W=X.closeIndex}else if(this.options.unpairedTags.indexOf(Z)!==-1)W=X.closeIndex;else{const O=this.readStopNodeData($,F,Q+1);if(!O)throw new Error(`Unexpected end of ${F}`);W=O.i,R=O.tagContent}const J=new a0(Z);if(Z!==E&&Y)J[":@"]=this.buildAttributesMap(E,U,Z);if(R)R=this.parseTextData(R,Z,U,!0,Y,!0,!0);U=U.substr(0,U.lastIndexOf(".")),J.add(this.options.textNodeName,R),this.addChild(f,J,U)}else{if(E.length>0&&E.lastIndexOf("/")===E.length-1){if(Z[Z.length-1]==="/")Z=Z.substr(0,Z.length-1),U=U.substr(0,U.length-1),E=Z;else E=E.substr(0,E.length-1);if(this.options.transformTagName)Z=this.options.transformTagName(Z);const R=new a0(Z);if(Z!==E&&Y)R[":@"]=this.buildAttributesMap(E,U,Z);this.addChild(f,R,U),U=U.substr(0,U.lastIndexOf("."))}else{const R=new a0(Z);if(this.tagsNodeStack.push(f),Z!==E&&Y)R[":@"]=this.buildAttributesMap(E,U,Z);this.addChild(f,R,U),f=R}G="",W=Q}}else G+=$[W];return w.child},n9=function($){if(this.options.processEntities){for(let w in this.docTypeEntities){const f=this.docTypeEntities[w];$=$.replace(f.regx,f.val)}for(let w in this.lastEntities){const f=this.lastEntities[w];$=$.replace(f.regex,f.val)}if(this.options.htmlEntities)for(let w in this.htmlEntities){const f=this.htmlEntities[w];$=$.replace(f.regex,f.val)}$=$.replace(this.ampEntity.regex,this.ampEntity.val)}return $};U6.exports=f6});var L6=M((wR)=>{var t9=function($,w){return W6($,w)},W6=function($,w,f){let G;const U={};for(let W=0;W<$.length;W++){const L=$[W],X=a9(L);let Z="";if(f===void 0)Z=X;else Z=f+"."+X;if(X===w.textNodeName)if(G===void 0)G=L[X];else G+=""+L[X];else if(X===void 0)continue;else if(L[X]){let F=W6(L[X],w,Z);const E=$R(F,w);if(L[":@"])e9(F,L[":@"],Z,w);else if(Object.keys(F).length===1&&F[w.textNodeName]!==void 0&&!w.alwaysCreateTextNode)F=F[w.textNodeName];else if(Object.keys(F).length===0)if(w.alwaysCreateTextNode)F[w.textNodeName]="";else F="";if(U[X]!==void 0&&U.hasOwnProperty(X)){if(!Array.isArray(U[X]))U[X]=[U[X]];U[X].push(F)}else if(w.isArray(X,Z,E))U[X]=[F];else U[X]=F}}if(typeof G==="string"){if(G.length>0)U[w.textNodeName]=G}else if(G!==void 0)U[w.textNodeName]=G;return U},a9=function($){const w=Object.keys($);for(let f=0;f<w.length;f++){const G=w[f];if(G!==":@")return G}},e9=function($,w,f,G){if(w){const U=Object.keys(w),W=U.length;for(let L=0;L<W;L++){const X=U[L];if(G.isArray(X,f+"."+X,!0,!0))$[X]=[w[X]];else $[X]=w[X]}}},$R=function($,w){const{textNodeName:f}=w,G=Object.keys($).length;if(G===0)return!0;if(G===1&&($[f]||typeof $[f]==="boolean"||$[f]===0))return!0;return!1};wR.prettify=t9});var F6=M((RO,Z6)=>{var{buildOptions:UR}=m4(),GR=G6(),{prettify:WR}=L6(),LR=cw();class X6{constructor($){this.externalEntities={},this.options=UR($)}parse($,w){if(typeof $==="string");else if($.toString)$=$.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(w){if(w===!0)w={};const U=LR.validate($,w);if(U!==!0)throw Error(`${U.err.msg}:${U.err.line}:${U.err.col}`)}const f=new GR(this.options);f.addExternalEntities(this.externalEntities);const G=f.parseXml($);if(this.options.preserveOrder||G===void 0)return G;else return WR(G,this.options)}addEntity($,w){if(w.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");else if($.indexOf("&")!==-1||$.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");else if(w==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[$]=w}}Z6.exports=X6});var R6=M((zO,Q6)=>{var XR=function($,w){let f="";if(w.format&&w.indentBy.length>0)f="\n";return Y6($,w,"",f)},Y6=function($,w,f,G){let U="",W=!1;for(let L=0;L<$.length;L++){const X=$[L],Z=ZR(X);if(Z===void 0)continue;let F="";if(f.length===0)F=Z;else F=`${f}.${Z}`;if(Z===w.textNodeName){let R=X[Z];if(!FR(F,w))R=w.tagValueProcessor(Z,R),R=I6(R,w);if(W)U+=G;U+=R,W=!1;continue}else if(Z===w.cdataPropName){if(W)U+=G;U+=`<![CDATA[${X[Z][0][w.textNodeName]}]]>`,W=!1;continue}else if(Z===w.commentPropName){U+=G+`<!--${X[Z][0][w.textNodeName]}-->`,W=!0;continue}else if(Z[0]==="?"){const R=E6(X[":@"],w),J=Z==="?xml"?"":G;let O=X[Z][0][w.textNodeName];O=O.length!==0?" "+O:"",U+=J+`<${Z}${O}${R}?>`,W=!0;continue}let E=G;if(E!=="")E+=w.indentBy;const Y=E6(X[":@"],w),Q=G+`<${Z}${Y}`,I=Y6(X[Z],w,F,E);if(w.unpairedTags.indexOf(Z)!==-1)if(w.suppressUnpairedNode)U+=Q+">";else U+=Q+"/>";else if((!I||I.length===0)&&w.suppressEmptyNode)U+=Q+"/>";else if(I&&I.endsWith(">"))U+=Q+`>${I}${G}</${Z}>`;else{if(U+=Q+">",I&&G!==""&&(I.includes("/>")||I.includes("</")))U+=G+w.indentBy+I+G;else U+=I;U+=`</${Z}>`}W=!0}return U},ZR=function($){const w=Object.keys($);for(let f=0;f<w.length;f++){const G=w[f];if(!$.hasOwnProperty(G))continue;if(G!==":@")return G}},E6=function($,w){let f="";if($&&!w.ignoreAttributes)for(let G in $){if(!$.hasOwnProperty(G))continue;let U=w.attributeValueProcessor(G,$[G]);if(U=I6(U,w),U===!0&&w.suppressBooleanAttributes)f+=` ${G.substr(w.attributeNamePrefix.length)}`;else f+=` ${G.substr(w.attributeNamePrefix.length)}="${U}"`}return f},FR=function($,w){$=$.substr(0,$.length-w.textNodeName.length-1);let f=$.substr($.lastIndexOf(".")+1);for(let G in w.stopNodes)if(w.stopNodes[G]===$||w.stopNodes[G]==="*."+f)return!0;return!1},I6=function($,w){if($&&$.length>0&&w.processEntities)for(let f=0;f<w.entities.length;f++){const G=w.entities[f];$=$.replace(G.regex,G.val)}return $};Q6.exports=XR});var M6=M((MO,z6)=>{var W0=function($){if(this.options=Object.assign({},YR,$),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=RR;if(this.processTextOrObjNode=IR,this.options.format)this.indentate=QR,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""},IR=function($,w,f){const G=this.j2x($,f+1);if($[this.options.textNodeName]!==void 0&&Object.keys($).length===1)return this.buildTextValNode($[this.options.textNodeName],w,G.attrStr,f);else return this.buildObjectNode(G.val,w,G.attrStr,f)},QR=function($){return this.options.indentBy.repeat($)},RR=function($){if($.startsWith(this.options.attributeNamePrefix)&&$!==this.options.textNodeName)return $.substr(this.attrPrefixLen);else return!1},ER=R6(),YR={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function($,w){return w},attributeValueProcessor:function($,w){return w},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("\'","g"),val:"&apos;"},{regex:new RegExp("\"","g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};W0.prototype.build=function($){if(this.options.preserveOrder)return ER($,this.options);else{if(Array.isArray($)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)$={[this.options.arrayNodeName]:$};return this.j2x($,0).val}};W0.prototype.j2x=function($,w){let f="",G="";for(let U in $){if(!Object.prototype.hasOwnProperty.call($,U))continue;if(typeof $[U]==="undefined"){if(this.isAttribute(U))G+=""}else if($[U]===null)if(this.isAttribute(U))G+="";else if(U[0]==="?")G+=this.indentate(w)+"<"+U+"?"+this.tagEndChar;else G+=this.indentate(w)+"<"+U+"/"+this.tagEndChar;else if($[U]instanceof Date)G+=this.buildTextValNode($[U],U,"",w);else if(typeof $[U]!=="object"){const W=this.isAttribute(U);if(W)f+=this.buildAttrPairStr(W,""+$[U]);else if(U===this.options.textNodeName){let L=this.options.tagValueProcessor(U,""+$[U]);G+=this.replaceEntitiesValue(L)}else G+=this.buildTextValNode($[U],U,"",w)}else if(Array.isArray($[U])){const W=$[U].length;let L="",X="";for(let Z=0;Z<W;Z++){const F=$[U][Z];if(typeof F==="undefined");else if(F===null)if(U[0]==="?")G+=this.indentate(w)+"<"+U+"?"+this.tagEndChar;else G+=this.indentate(w)+"<"+U+"/"+this.tagEndChar;else if(typeof F==="object")if(this.options.oneListGroup){const E=this.j2x(F,w+1);if(L+=E.val,this.options.attributesGroupName&&F.hasOwnProperty(this.options.attributesGroupName))X+=E.attrStr}else L+=this.processTextOrObjNode(F,U,w);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(U,F);E=this.replaceEntitiesValue(E),L+=E}else L+=this.buildTextValNode(F,U,"",w)}if(this.options.oneListGroup)L=this.buildObjectNode(L,U,X,w);G+=L}else if(this.options.attributesGroupName&&U===this.options.attributesGroupName){const W=Object.keys($[U]),L=W.length;for(let X=0;X<L;X++)f+=this.buildAttrPairStr(W[X],""+$[U][W[X]])}else G+=this.processTextOrObjNode($[U],U,w)}return{attrStr:f,val:G}};W0.prototype.buildAttrPairStr=function($,w){if(w=this.options.attributeValueProcessor($,""+w),w=this.replaceEntitiesValue(w),this.options.suppressBooleanAttributes&&w==="true")return" "+$;else return" "+$+'="'+w+'"'};W0.prototype.buildObjectNode=function($,w,f,G){if($==="")if(w[0]==="?")return this.indentate(G)+"<"+w+f+"?"+this.tagEndChar;else return this.indentate(G)+"<"+w+f+this.closeTag(w)+this.tagEndChar;else{let U="</"+w+this.tagEndChar,W="";if(w[0]==="?")W="?",U="";if((f||f==="")&&$.indexOf("<")===-1)return this.indentate(G)+"<"+w+f+W+">"+$+U;else if(this.options.commentPropName!==!1&&w===this.options.commentPropName&&W.length===0)return this.indentate(G)+`<!--${$}-->`+this.newLine;else return this.indentate(G)+"<"+w+f+W+this.tagEndChar+$+this.indentate(G)+U}};W0.prototype.closeTag=function($){let w="";if(this.options.unpairedTags.indexOf($)!==-1){if(!this.options.suppressUnpairedNode)w="/"}else if(this.options.suppressEmptyNode)w="/";else w=`></${$}`;return w};W0.prototype.buildTextValNode=function($,w,f,G){if(this.options.cdataPropName!==!1&&w===this.options.cdataPropName)return this.indentate(G)+`<![CDATA[${$}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&w===this.options.commentPropName)return this.indentate(G)+`<!--${$}-->`+this.newLine;else if(w[0]==="?")return this.indentate(G)+"<"+w+f+"?"+this.tagEndChar;else{let U=this.options.tagValueProcessor(w,$);if(U=this.replaceEntitiesValue(U),U==="")return this.indentate(G)+"<"+w+f+this.closeTag(w)+this.tagEndChar;else return this.indentate(G)+"<"+w+f+">"+U+"</"+w+this.tagEndChar}};W0.prototype.replaceEntitiesValue=function($){if($&&$.length>0&&this.options.processEntities)for(let w=0;w<this.options.entities.length;w++){const f=this.options.entities[w];$=$.replace(f.regex,f.val)}return $};z6.exports=W0});var K6=M((JO,J6)=>{var zR=cw(),MR=F6(),JR=M6();J6.exports={XMLParser:MR,XMLValidator:zR,XMLBuilder:JR}});var H6=M((KO,T6)=>{var{defineProperty:G$,getOwnPropertyDescriptor:KR,getOwnPropertyNames:AR}=Object,OR=Object.prototype.hasOwnProperty,v=($,w)=>G$($,"name",{value:w,configurable:!0}),BR=($,w)=>{for(var f in w)G$($,f,{get:w[f],enumerable:!0})},VR=($,w,f,G)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of AR(w))if(!OR.call($,U)&&U!==f)G$($,U,{get:()=>w[U],enumerable:!(G=KR(w,U))||G.enumerable})}return $},TR=($)=>VR(G$({},"__esModule",{value:!0}),$),A6={};BR(A6,{_toBool:()=>CR,_toNum:()=>NR,_toStr:()=>HR,awsExpectUnion:()=>PR,loadRestJsonErrorCode:()=>bR,loadRestXmlErrorCode:()=>cR,parseJsonBody:()=>B6,parseJsonErrorBody:()=>SR,parseXmlBody:()=>V6,parseXmlErrorBody:()=>DR});T6.exports=TR(A6);var HR=v(($)=>{if($==null)return $;if(typeof $==="number"||typeof $==="bigint"){const w=new Error(`Received number ${$} where a string was expected.`);return w.name="Warning",console.warn(w),String($)}if(typeof $==="boolean"){const w=new Error(`Received boolean ${$} where a string was expected.`);return w.name="Warning",console.warn(w),String($)}return $},"_toStr"),CR=v(($)=>{if($==null)return $;if(typeof $==="string"){const w=$.toLowerCase();if($!==""&&w!=="false"&&w!=="true"){const f=new Error(`Received string "${$}" where a boolean was expected.`);f.name="Warning",console.warn(f)}return $!==""&&w!=="false"}return $},"_toBool"),NR=v(($)=>{if($==null)return $;if(typeof $==="string"){const w=Number($);if(w.toString()!==$){const f=new Error(`Received string "${$}" where a number was expected.`);return f.name="Warning",console.warn(f),$}return w}return $},"_toNum"),qR=V0(),PR=v(($)=>{if($==null)return;if(typeof $==="object"&&"__type"in $)delete $.__type;return qR.expectUnion($)},"awsExpectUnion"),jR=V0(),O6=v(($,w)=>jR.collectBody($,w).then((f)=>w.utf8Encoder(f)),"collectBodyString"),B6=v(($,w)=>O6($,w).then((f)=>{if(f.length)try{return JSON.parse(f)}catch(G){if((G==null?void 0:G.name)==="SyntaxError")Object.defineProperty(G,"$responseBodyText",{value:f});throw G}return{}}),"parseJsonBody"),SR=v(async($,w)=>{const f=await B6($,w);return f.message=f.message??f.Message,f},"parseJsonErrorBody"),bR=v(($,w)=>{const f=v((W,L)=>Object.keys(W).find((X)=>X.toLowerCase()===L.toLowerCase()),"findKey"),G=v((W)=>{let L=W;if(typeof L==="number")L=L.toString();if(L.indexOf(",")>=0)L=L.split(",")[0];if(L.indexOf(":")>=0)L=L.split(":")[0];if(L.indexOf("#")>=0)L=L.split("#")[1];return L},"sanitizeErrorCode"),U=f($.headers,"x-amzn-errortype");if(U!==void 0)return G($.headers[U]);if(w.code!==void 0)return G(w.code);if(w.__type!==void 0)return G(w.__type)},"loadRestJsonErrorCode"),hR=V0(),kR=K6(),V6=v(($,w)=>O6($,w).then((f)=>{if(f.length){const G=new kR.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(Z,F)=>F.trim()===""&&F.includes("\n")?"":void 0});G.addEntity("#xD","\r"),G.addEntity("#10","\n");let U;try{U=G.parse(f,!0)}catch(Z){if(Z&&typeof Z==="object")Object.defineProperty(Z,"$responseBodyText",{value:f});throw Z}const W="#text",L=Object.keys(U)[0],X=U[L];if(X[W])X[L]=X[W],delete X[W];return hR.getValueFromTextNode(X)}return{}}),"parseXmlBody"),DR=v(async($,w)=>{const f=await V6($,w);if(f.Error)f.Error.message=f.Error.message??f.Error.Message;return f},"parseXmlErrorBody"),cR=v(($,w)=>{var f;if(((f=w==null?void 0:w.Error)==null?void 0:f.Code)!==void 0)return w.Error.Code;if((w==null?void 0:w.Code)!==void 0)return w.Code;if($.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var vR=M((e0)=>{Object.defineProperty(e0,"__esModule",{value:!0});var xw=W4();xw.__exportStar(F4(),e0);xw.__exportStar(u4(),e0);xw.__exportStar(H6(),e0)});function aR($){return $}var y6=($)=>(w)=>async(f)=>{if(!x.isInstance(f.request))return w(f);const{request:G}=f,{handlerProtocol:U=""}=$.requestHandler.metadata||{};if(U.indexOf("h2")>=0&&!G.headers[":authority"])delete G.headers.host,G.headers[":authority"]=G.hostname+(G.port?":"+G.port:"");else if(!G.headers.host){let W=G.hostname;if(G.port!=null)W+=`:${G.port}`;G.headers.host=W}return w(f)},x6={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},eR=($)=>({applyToStack:(w)=>{w.add(y6($),x6)}});var u6=()=>($,w)=>async(f)=>{try{const G=await $(f),{clientName:U,commandName:W,logger:L,dynamoDbDocumentClientOptions:X={}}=w,{overrideInputFilterSensitiveLog:Z,overrideOutputFilterSensitiveLog:F}=X,E=Z??w.inputFilterSensitiveLog,Y=F??w.outputFilterSensitiveLog,{$metadata:Q,...I}=G.output;return L?.info?.({clientName:U,commandName:W,input:E(f.input),output:Y(I),metadata:Q}),G}catch(G){const{clientName:U,commandName:W,logger:L,dynamoDbDocumentClientOptions:X={}}=w,{overrideInputFilterSensitiveLog:Z}=X,F=Z??w.inputFilterSensitiveLog;throw L?.error?.({clientName:U,commandName:W,input:F(f.input),error:G,metadata:G.$metadata}),G}},_6={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},w7=($)=>({applyToStack:(w)=>{w.add(u6(),_6)}});var sw="X-Amzn-Trace-Id",d6="AWS_LAMBDA_FUNCTION_NAME",p6="_X_AMZN_TRACE_ID",g6=($)=>(w)=>async(f)=>{const{request:G}=f;if(!x.isInstance(G)||$.runtime!=="node"||G.headers.hasOwnProperty(sw))return w(f);const U=process.env[d6],W=process.env[p6],L=(X)=>typeof X==="string"&&X.length>0;if(L(U)&&L(W))G.headers[sw]=W;return w({...f,request:G})},s6={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},L7=($)=>({applyToStack:(w)=>{w.add(g6($),s6)}});function Xz($){return{...$,customUserAgent:typeof $.customUserAgent==="string"?[[$.customUserAgent]]:$.customUserAgent}}var z5=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}$"),l0=($)=>z5.test($)||$.startsWith("[")&&$.endsWith("]");var M5=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),n0=($,w=!1)=>{if(!w)return M5.test($);const f=$.split(".");for(let G of f)if(!n0(G))return!1;return!0};var m0={};var a="endpoints";function _($){if(typeof $!=="object"||$==null)return $;if("ref"in $)return`\$${_($.ref)}`;if("fn"in $)return`${$.fn}(${($.argv||[]).map(_).join(", ")})`;return JSON.stringify($,null,2)}class V extends Error{constructor($){super($);this.name="EndpointError"}}var s8=($,w)=>$===w;var l8=($)=>{const w=$.split("."),f=[];for(let G of w){const U=G.indexOf("[");if(U!==-1){if(G.indexOf("]")!==G.length-1)throw new V(`Path: '${$}' does not end with ']'`);const W=G.slice(U+1,-1);if(Number.isNaN(parseInt(W)))throw new V(`Invalid array index: '${W}' in path: '${$}'`);if(U!==0)f.push(G.slice(0,U));f.push(W)}else f.push(G)}return f};var b1=($,w)=>l8(w).reduce((f,G)=>{if(typeof f!=="object")throw new V(`Index '${G}' in '${w}' not found in '${JSON.stringify($)}'`);else if(Array.isArray(f))return f[parseInt(G)];return f[G]},$);var n8=($)=>$!=null;var m8=($)=>!$;var h1=D(z0(),1);var Ww={[h1.EndpointURLScheme.HTTP]:80,[h1.EndpointURLScheme.HTTPS]:443},i8=($)=>{const w=(()=>{try{if($ instanceof URL)return $;if(typeof $==="object"&&"hostname"in $){const{hostname:Q,port:I,protocol:R="",path:J="",query:O={}}=$,K=new URL(`${R}//${Q}${I?`:${I}`:""}${J}`);return K.search=Object.entries(O).map(([A,B])=>`${A}=${B}`).join("&"),K}return new URL($)}catch(Q){return null}})();if(!w)return console.error(`Unable to parse ${JSON.stringify($)} as a whatwg URL.`),null;const f=w.href,{host:G,hostname:U,pathname:W,protocol:L,search:X}=w;if(X)return null;const Z=L.slice(0,-1);if(!Object.values(h1.EndpointURLScheme).includes(Z))return null;const F=l0(U),E=f.includes(`${G}:${Ww[Z]}`)||typeof $==="string"&&$.includes(`${G}:${Ww[Z]}`),Y=`${G}${E?`:${Ww[Z]}`:""}`;return{scheme:Z,authority:Y,path:W,normalizedPath:W.endsWith("/")?W:`${W}/`,isIp:F}};var r8=($,w)=>$===w;var o8=($,w,f,G)=>{if(w>=f||$.length<f)return null;if(!G)return $.substring(w,f);return $.substring($.length-f,$.length-w)};var t8=($)=>encodeURIComponent($).replace(/[!*'()]/g,(w)=>`%${w.charCodeAt(0).toString(16).toUpperCase()}`);var a8={booleanEquals:s8,getAttr:b1,isSet:n8,isValidHostLabel:n0,not:m8,parseURL:i8,stringEquals:r8,substring:o8,uriEncode:t8};var k1=($,w)=>{const f=[],G={...w.endpointParams,...w.referenceRecord};let U=0;while(U<$.length){const W=$.indexOf("{",U);if(W===-1){f.push($.slice(U));break}f.push($.slice(U,W));const L=$.indexOf("}",W);if(L===-1){f.push($.slice(W));break}if($[W+1]==="{"&&$[L+1]==="}")f.push($.slice(W+1,L)),U=L+2;const X=$.substring(W+1,L);if(X.includes("#")){const[Z,F]=X.split("#");f.push(b1(G[Z],F))}else f.push(G[X]);U=L+1}return f.join("")};var e8=({ref:$},w)=>{return{...w.endpointParams,...w.referenceRecord}[$]};var f0=($,w,f)=>{if(typeof $==="string")return k1($,f);else if($.fn)return D1($,f);else if($.ref)return e8($,f);throw new V(`'${w}': ${String($)} is not a string, function or reference.`)};var D1=({fn:$,argv:w},f)=>{const G=w.map((W)=>["boolean","number"].includes(typeof W)?W:f0(W,"arg",f)),U=$.split(".");if(U[0]in m0&&U[1]!=null)return m0[U[0]][U[1]](...G);return a8[$](...G)};var $L=({assign:$,...w},f)=>{if($&&$ in f.referenceRecord)throw new V(`'${$}' is already defined in Reference Record.`);const G=D1(w,f);return f.logger?.debug?.(`${a} evaluateCondition: ${_(w)} = ${_(G)}`),{result:G===""?!0:!!G,...$!=null&&{toAssign:{name:$,value:G}}}};var H0=($=[],w)=>{const f={};for(let G of $){const{result:U,toAssign:W}=$L(G,{...w,referenceRecord:{...w.referenceRecord,...f}});if(!U)return{result:U};if(W)f[W.name]=W.value,w.logger?.debug?.(`${a} assign: ${W.name} := ${_(W.value)}`)}return{result:!0,referenceRecord:f}};var wL=($,w)=>Object.entries($).reduce((f,[G,U])=>({...f,[G]:U.map((W)=>{const L=f0(W,"Header value entry",w);if(typeof L!=="string")throw new V(`Header '${G}' value '${L}' is not a string`);return L})}),{});var Lw=($,w)=>{if(Array.isArray($))return $.map((f)=>Lw(f,w));switch(typeof $){case"string":return k1($,w);case"object":if($===null)throw new V(`Unexpected endpoint property: ${$}`);return c1($,w);case"boolean":return $;default:throw new V(`Unexpected endpoint property type: ${typeof $}`)}};var c1=($,w)=>Object.entries($).reduce((f,[G,U])=>({...f,[G]:Lw(U,w)}),{});var fL=($,w)=>{const f=f0($,"Endpoint URL",w);if(typeof f==="string")try{return new URL(f)}catch(G){throw console.error(`Failed to construct URL with ${f}`,G),G}throw new V(`Endpoint URL must be a string, got ${typeof f}`)};var UL=($,w)=>{const{conditions:f,endpoint:G}=$,{result:U,referenceRecord:W}=H0(f,w);if(!U)return;const L={...w,referenceRecord:{...w.referenceRecord,...W}},{url:X,properties:Z,headers:F}=G;return w.logger?.debug?.(`${a} Resolving endpoint from template: ${_(G)}`),{...F!=null&&{headers:wL(F,L)},...Z!=null&&{properties:c1(Z,L)},url:fL(X,L)}};var GL=($,w)=>{const{conditions:f,error:G}=$,{result:U,referenceRecord:W}=H0(f,w);if(!U)return;throw new V(f0(G,"Error",{...w,referenceRecord:{...w.referenceRecord,...W}}))};var WL=($,w)=>{const{conditions:f,rules:G}=$,{result:U,referenceRecord:W}=H0(f,w);if(!U)return;return v1(G,{...w,referenceRecord:{...w.referenceRecord,...W}})};var v1=($,w)=>{for(let f of $)if(f.type==="endpoint"){const G=UL(f,w);if(G)return G}else if(f.type==="error")GL(f,w);else if(f.type==="tree"){const G=WL(f,w);if(G)return G}else throw new V(`Unknown endpoint rule: ${f}`);throw new V("Rules evaluation failed")};var J5=($,w)=>{const{endpointParams:f,logger:G}=w,{parameters:U,rules:W}=$;w.logger?.debug?.(`${a} Initial EndpointParams: ${_(f)}`);const L=Object.entries(U).filter(([,F])=>F.default!=null).map(([F,E])=>[F,E.default]);if(L.length>0)for(let[F,E]of L)f[F]=f[F]??E;const X=Object.entries(U).filter(([,F])=>F.required).map(([F])=>F);for(let F of X)if(f[F]==null)throw new V(`Missing required parameter: '${F}'`);const Z=v1(W,{endpointParams:f,logger:G,referenceRecord:{}});if(w.endpointParams?.Endpoint)try{const F=new URL(w.endpointParams.Endpoint),{protocol:E,port:Y}=F;Z.url.protocol=E,Z.url.port=Y}catch(F){}return w.logger?.debug?.(`${a} Resolved endpoint: ${_(Z)}`),Z};var Xw=($,w=!1)=>{if(w){for(let f of $.split("."))if(!Xw(f))return!1;return!0}if(!n0($))return!1;if($.length<3||$.length>63)return!1;if($!==$.toLowerCase())return!1;if(l0($))return!1;return!0};var LL=($)=>{const w=$.split(":");if(w.length<6)return null;const[f,G,U,W,L,...X]=w;if(f!=="arn"||G===""||U===""||X[0]==="")return null;return{partition:G,service:U,region:W,accountId:L,resourceId:X[0].includes("/")?X[0].split("/"):X}};var XL={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"};var A5=XL,O5="",ZL=($)=>{const{partitions:w}=A5;for(let G of w){const{regions:U,outputs:W}=G;for(let[L,X]of Object.entries(U))if(L===$)return{...W,...X}}for(let G of w){const{regionRegex:U,outputs:W}=G;if(new RegExp(U).test($))return{...W}}const f=w.find((G)=>G.id==="aws");if(!f)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...f.outputs}};var FL=()=>O5;var B5={isVirtualHostableS3Bucket:Xw,parseArn:LL,partition:ZL};m0.aws=B5;var Zw="user-agent",y1="x-amz-user-agent",Fw=" ",x1="/",EL=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,YL=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,Ew="-";var V5=($)=>(w,f)=>async(G)=>{const{request:U}=G;if(!x.isInstance(U))return w(G);const{headers:W}=U,L=f?.userAgent?.map(Yw)||[],X=(await $.defaultUserAgentProvider()).map(Yw),Z=$?.customUserAgent?.map(Yw)||[],F=FL(),E=(F?[F]:[]).concat([...X,...L,...Z]).join(Fw),Y=[...X.filter((Q)=>Q.startsWith("aws-sdk-")),...Z].join(Fw);if($.runtime!=="browser"){if(Y)W[y1]=W[y1]?`${W[Zw]} ${Y}`:Y;W[Zw]=E}else W[y1]=E;return w({...G,request:U})},Yw=($)=>{const w=$[0].split(x1).map((L)=>L.replace(EL,Ew)).join(x1),f=$[1]?.replace(YL,Ew),G=w.indexOf(x1),U=w.substring(0,G);let W=w.substring(G+1);if(U==="api")W=W.toLowerCase();return[U,W,f].filter((L)=>L&&L.length>0).reduce((L,X,Z)=>{switch(Z){case 0:return X;case 1:return`${L}/${X}`;default:return`${L}#${X}`}},"")},T5={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},_J=($)=>({applyToStack:(w)=>{w.add(V5($),T5)}});var u1=($)=>typeof $==="string"&&($.startsWith("fips-")||$.endsWith("-fips"));var Iw=($)=>u1($)?["fips-aws-global","aws-fips"].includes($)?"us-east-1":$.replace(/fips-(dkr-|prod-)?|-fips/,""):$;var oJ=($)=>{const{region:w,useFipsEndpoint:f}=$;if(!w)throw new Error("Region is missing");return{...$,region:async()=>{if(typeof w==="string")return Iw(w);const G=await w();return Iw(G)},useFipsEndpoint:async()=>{const G=typeof w==="string"?w:await w();if(u1(G))return!0;return typeof f!=="function"?Promise.resolve(!!f):f()}}};var C0=($,w,f)=>{if(!(w in $))return;if($[w]==="true")return!0;if($[w]==="false")return!1;throw new Error(`Cannot load ${f} "${w}". Expected "true" or "false", got ${$[w]}.`)};var U0;(function($){$.ENV="env",$.CONFIG="shared config entry"})(U0||(U0={}));var H5="AWS_USE_DUALSTACK_ENDPOINT",C5="use_dualstack_endpoint";var L3={environmentVariableSelector:($)=>C0($,H5,U0.ENV),configFileSelector:($)=>C0($,C5,U0.CONFIG),default:!1};var N5="AWS_USE_FIPS_ENDPOINT",q5="use_fips_endpoint";var F3={environmentVariableSelector:($)=>C0($,N5,U0.ENV),configFileSelector:($)=>C0($,q5,U0.CONFIG),default:!1};var P5=D(n(),1);var j5=D(n(),1);var IL={environmentVariableSelector:($)=>$["AWS_REGION"],configFileSelector:($)=>$["region"],default:()=>{throw new Error("Region is missing")}},B3={preferredFile:"credentials"};function S5($){return(w)=>async(f)=>{const G=f.request;if(x.isInstance(G)){const{body:U,headers:W}=G;if(U&&Object.keys(W).map((L)=>L.toLowerCase()).indexOf(QL)===-1)try{const L=$(U);G.headers={...G.headers,[QL]:String(L)}}catch(L){}}return w({...f,request:G})}}var QL="content-length",b5={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},i3=($)=>({applyToStack:(w)=>{w.add(S5($.bodyLengthChecker),b5)}});var TL=D(w1(),1);var BL=D(n(),1);var RL=async($)=>{const w=$?.Bucket||"";if(typeof $.Bucket==="string")$.Bucket=w.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(v5(w)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!c5(w)||w.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||w.toLowerCase()!==w||w.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},h5=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,k5=/(\d+\.){3}\d+/,D5=/\.\./;var c5=($)=>h5.test($)&&!k5.test($)&&!D5.test($),v5=($)=>{const[w,f,G,,,U]=$.split(":"),W=w==="arn"&&$.split(":").length>=6,L=Boolean(W&&f&&G&&U);if(W&&!L)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return L};var zL=($,w,f)=>{const G=async()=>{const U=f[$]??f[w];if(typeof U==="function")return U();return U};if($==="credentialScope"||w==="CredentialScope")return async()=>{const U=typeof f.credentials==="function"?await f.credentials():f.credentials;return U?.credentialScope??U?.CredentialScope};if($==="accountId"||w==="AccountId")return async()=>{const U=typeof f.credentials==="function"?await f.credentials():f.credentials;return U?.accountId??U?.AccountId};if($==="endpoint"||w==="endpoint")return async()=>{const U=await G();if(U&&typeof U==="object"){if("url"in U)return U.url.href;if("hostname"in U){const{protocol:W,hostname:L,port:X,path:Z}=U;return`${W}//${L}${X?":"+X:""}${Z}`}}return U};return G};var ML="AWS_ENDPOINT_URL",JL="endpoint_url",KL=($)=>({environmentVariableSelector:(w)=>{const f=$.split(" ").map((W)=>W.toUpperCase()),G=w[[ML,...f].join("_")];if(G)return G;const U=w[ML];if(U)return U;return},configFileSelector:(w,f)=>{if(f&&w.services){const U=f[["services",w.services].join(Qw)];if(U){const W=$.split(" ").map((X)=>X.toLowerCase()),L=U[[W.join("_"),JL].join(Qw)];if(L)return L}}const G=w[JL];if(G)return G;return},default:void 0});var AL=async($)=>E0(KL($))();var Rw=D(bf(),1),_1=($)=>{if(typeof $==="object"){if("url"in $)return Rw.parseUrl($.url);return $}return Rw.parseUrl($)};var OL=async($,w,f,G)=>{if(!f.endpoint){const L=await AL(f.serviceId||"");if(L)f.endpoint=()=>Promise.resolve(_1(L))}const U=await y5($,w,f);if(typeof f.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return f.endpointProvider(U,G)},y5=async($,w,f)=>{const G={},U=w?.getEndpointParameterInstructions?.()||{};for(let[W,L]of Object.entries(U))switch(L.type){case"staticContextParams":G[W]=L.value;break;case"contextParams":G[W]=$[L.name];break;case"clientContextParams":case"builtInParams":G[W]=await zL(L.name,W,f)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(L))}if(Object.keys(U).length===0)Object.assign(G,f);if(String(f.serviceId).toLowerCase()==="s3")await RL(G);return G};var VL=({config:$,instructions:w})=>{return(f,G)=>async(U)=>{const W=await OL(U.input,{getEndpointParameterInstructions(){return w}},{...$},G);G.endpointV2=W,G.authSchemes=W.properties?.authSchemes;const L=G.authSchemes?.[0];if(L){G.signing_region=L.signingRegion,G.signing_service=L.signingName;const Z=BL.getSmithyContext(G)?.selectedHttpAuthScheme?.httpAuthOption;if(Z)Z.signingProperties=Object.assign(Z.signingProperties||{},{signing_region:L.signingRegion,signingRegion:L.signingRegion,signing_service:L.signingName,signingName:L.signingName,signingRegionSet:L.signingRegionSet},L.properties)}return f({...U})}};var x5={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:TL.serializerMiddlewareOption.name},RK=($,w)=>({applyToStack:(f)=>{f.addRelativeTo(VL({config:$,instructions:w}),x5)}});var d1=D(n(),1);var JK=($)=>{const w=$.tls??!0,{endpoint:f}=$,G=f!=null?async()=>_1(await d1.normalizeProvider(f)()):void 0;return{...$,endpoint:G,tls:w,isCustomEndpoint:!!f,useDualstackEndpoint:d1.normalizeProvider($.useDualstackEndpoint??!1),useFipsEndpoint:d1.normalizeProvider($.useFipsEndpoint??!1)}};var i=D(H$(),1),PK=i.default.v1,jK=i.default.v3,HL=i.default.v4,SK=i.default.v5,bK=i.default.NIL,hK=i.default.version,kK=i.default.validate,DK=i.default.stringify,cK=i.default.parse;var Bw=D(n(),1);var l;(function($){$.STANDARD="standard",$.ADAPTIVE="adaptive"})(l||(l={}));var Y0=3,CL=l.STANDARD;var NL=D(X0(),1);class p1{constructor($){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=$?.beta??0.7,this.minCapacity=$?.minCapacity??1,this.minFillRate=$?.minFillRate??0.5,this.scaleConstant=$?.scaleConstant??0.4,this.smooth=$?.smooth??0.8;const w=this.getCurrentTimeInSeconds();this.lastThrottleTime=w,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket($){if(!this.enabled)return;if(this.refillTokenBucket(),$>this.currentCapacity){const w=($-this.currentCapacity)/this.fillRate*1000;await new Promise((f)=>setTimeout(f,w))}this.currentCapacity=this.currentCapacity-$}refillTokenBucket(){const $=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=$;return}const w=($-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+w),this.lastTimestamp=$}updateClientSendingRate($){let w;if(this.updateMeasuredRate(),NL.isThrottlingError($)){const G=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=G,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),w=this.cubicThrottle(G),this.enableTokenBucket()}else this.calculateTimeWindow(),w=this.cubicSuccess(this.getCurrentTimeInSeconds());const f=Math.min(w,2*this.measuredTxRate);this.updateTokenBucketRate(f)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle($){return this.getPrecise($*this.beta)}cubicSuccess($){return this.getPrecise(this.scaleConstant*Math.pow($-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate($){this.refillTokenBucket(),this.fillRate=Math.max($,this.minFillRate),this.maxCapacity=Math.max($,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const $=this.getCurrentTimeInSeconds(),w=Math.floor($*2)/2;if(this.requestCount++,w>this.lastTxRateBucket){const f=this.requestCount/(w-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(f*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=w}}getPrecise($){return parseFloat($.toFixed(8))}}var I0=100,i0=20000,zw=500,g1=500,Mw=5,Jw=10,Kw=1,s1="amz-sdk-invocation-id",l1="amz-sdk-request";var qL=()=>{let $=I0;return{computeNextBackoffDelay:(G)=>{return Math.floor(Math.min(i0,Math.random()*2**G*$))},setDelayBase:(G)=>{$=G}}};var Aw=({retryDelay:$,retryCount:w,retryCost:f})=>{return{getRetryCount:()=>w,getRetryDelay:()=>Math.min(i0,$),getRetryCost:()=>f}};class N0{constructor($){this.maxAttempts=$,this.mode=l.STANDARD,this.capacity=g1,this.retryBackoffStrategy=qL(),this.maxAttemptsProvider=typeof $==="function"?$:async()=>$}async acquireInitialRetryToken($){return Aw({retryDelay:I0,retryCount:0})}async refreshRetryTokenForRetry($,w){const f=await this.getMaxAttempts();if(this.shouldRetry($,w,f)){const G=w.errorType;this.retryBackoffStrategy.setDelayBase(G==="THROTTLING"?zw:I0);const U=this.retryBackoffStrategy.computeNextBackoffDelay($.getRetryCount()),W=w.retryAfterHint?Math.max(w.retryAfterHint.getTime()-Date.now()||0,U):U,L=this.getCapacityCost(G);return this.capacity-=L,Aw({retryDelay:W,retryCount:$.getRetryCount()+1,retryCost:L})}throw new Error("No retry token available")}recordSuccess($){this.capacity=Math.max(g1,this.capacity+($.getRetryCost()??Kw))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch($){return console.warn(`Max attempts provider could not resolve. Using default of ${Y0}`),Y0}}shouldRetry($,w,f){return $.getRetryCount()+1<f&&this.capacity>=this.getCapacityCost(w.errorType)&&this.isRetryableError(w.errorType)}getCapacityCost($){return $==="TRANSIENT"?Jw:Mw}isRetryableError($){return $==="THROTTLING"||$==="TRANSIENT"}}class Ow{constructor($,w){this.maxAttemptsProvider=$,this.mode=l.ADAPTIVE;const{rateLimiter:f}=w??{};this.rateLimiter=f??new p1,this.standardRetryStrategy=new N0($)}async acquireInitialRetryToken($){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken($)}async refreshRetryTokenForRetry($,w){return this.rateLimiter.updateClientSendingRate(w),this.standardRetryStrategy.refreshRetryTokenForRetry($,w)}recordSuccess($){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess($)}}var PL="AWS_MAX_ATTEMPTS",jL="max_attempts",YA={environmentVariableSelector:($)=>{const w=$[PL];if(!w)return;const f=parseInt(w);if(Number.isNaN(f))throw new Error(`Environment variable ${PL} mast be a number, got "${w}"`);return f},configFileSelector:($)=>{const w=$[jL];if(!w)return;const f=parseInt(w);if(Number.isNaN(f))throw new Error(`Shared config file entry ${jL} mast be a number, got "${w}"`);return f},default:Y0},IA=($)=>{const{retryStrategy:w}=$,f=Bw.normalizeProvider($.maxAttempts??Y0);return{...$,maxAttempts:f,retryStrategy:async()=>{if(w)return w;if(await Bw.normalizeProvider($.retryMode)()===l.ADAPTIVE)return new Ow(f);return new N0(f)}}},u5="AWS_RETRY_MODE",_5="retry_mode",QA={environmentVariableSelector:($)=>$[u5],configFileSelector:($)=>$[_5],default:CL};var q0=D(X0(),1);import{Readable as d5} from"stream";var SL=($)=>$?.body instanceof d5||typeof ReadableStream!=="undefined"&&$?.body instanceof ReadableStream;var Vw=($)=>{if($ instanceof Error)return $;if($ instanceof Object)return Object.assign(new Error,$);if(typeof $==="string")return new Error($);return new Error(`AWS SDK error wrapper for ${$}`)};var p5=($)=>(w,f)=>async(G)=>{let U=await $.retryStrategy();const W=await $.maxAttempts();if(g5(U)){U=U;let L=await U.acquireInitialRetryToken(f.partition_id),X=new Error,Z=0,F=0;const{request:E}=G,Y=x.isInstance(E);if(Y)E.headers[s1]=HL();while(!0)try{if(Y)E.headers[l1]=`attempt=${Z+1}; max=${W}`;const{response:Q,output:I}=await w(G);return U.recordSuccess(L),I.$metadata.attempts=Z+1,I.$metadata.totalRetryDelay=F,{response:Q,output:I}}catch(Q){const I=s5(Q);if(X=Vw(Q),Y&&SL(E))throw(f.logger instanceof bL?console:f.logger)?.warn("An error was encountered in a non-retryable streaming request."),X;try{L=await U.refreshRetryTokenForRetry(L,I)}catch(J){if(!X.$metadata)X.$metadata={};throw X.$metadata.attempts=Z+1,X.$metadata.totalRetryDelay=F,X}Z=L.getRetryCount();const R=L.getRetryDelay();F+=R,await new Promise((J)=>setTimeout(J,R))}}else{if(U=U,U?.mode)f.userAgent=[...f.userAgent||[],["cfg/retry-mode",U.mode]];return U.retry(w,G)}},g5=($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined",s5=($)=>{const w={error:$,errorType:l5($)},f=m5($.$response);if(f)w.retryAfterHint=f;return w},l5=($)=>{if(q0.isThrottlingError($))return"THROTTLING";if(q0.isTransientError($))return"TRANSIENT";if(q0.isServerError($))return"SERVER_ERROR";return"CLIENT_ERROR"},n5={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},HA=($)=>({applyToStack:(w)=>{w.add(p5($),n5)}}),m5=($)=>{if(!Tw.isInstance($))return;const w=Object.keys($.headers).find((W)=>W.toLowerCase()==="retry-after");if(!w)return;const f=$.headers[w],G=Number(f);if(!Number.isNaN(G))return new Date(G*1000);return new Date(f)};var i5=D(X0(),1);var n1=D(X0(),1);import{platform as yR,release as xR} from"os";import{env as N6,versions as uR} from"process";var uw={isCrtAvailable:!1};var C6=()=>{if(uw.isCrtAvailable)return["md/crt-avail"];return null};var _R="AWS_SDK_UA_APP_ID",dR="sdk-ua-app-id",qO=({serviceId:$,clientVersion:w})=>{const f=[["aws-sdk-js",w],["ua","2.0"],[`os/${yR()}`,xR()],["lang/js"],["md/nodejs",`${uR.node}`]],G=C6();if(G)f.push(G);if($)f.push([`api/${$}`,w]);if(N6.AWS_EXECUTION_ENV)f.push([`exec-env/${N6.AWS_EXECUTION_ENV}`]);const U=E0({environmentVariableSelector:(L)=>L[_R],configFileSelector:(L)=>L[dR],default:void 0})();let W=void 0;return async()=>{if(!W){const L=await U;W=L?[...f,[`app/${L}`]]:[...f]}return W}};import{Buffer as pR} from"buffer";import{createHash as gR,createHmac as sR} from"crypto";var q6=function($,w){if(pR.isBuffer($))return $;if(typeof $==="string")return P6($,w);if(ArrayBuffer.isView($))return _w($.buffer,$.byteOffset,$.byteLength);return _w($)};class lR{constructor($,w){this.algorithmIdentifier=$,this.secret=w,this.reset()}update($,w){this.hash.update(j6(q6($,w)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?sR(this.algorithmIdentifier,q6(this.secret)):gR(this.algorithmIdentifier)}}import{fstatSync as nR,lstatSync as mR} from"fs";var vO=($)=>{if(!$)return 0;if(typeof $==="string")return Buffer.byteLength($);else if(typeof $.byteLength==="number")return $.byteLength;else if(typeof $.size==="number")return $.size;else if(typeof $.start==="number"&&typeof $.end==="number")return $.end+1-$.start;else if(typeof $.path==="string"||Buffer.isBuffer($.path))return mR($.path).size;else if(typeof $.fd==="number")return nR($.fd).size;throw new Error(`Body Length computation failed for ${$}`)};var c6=D(z$(),1);var S6="AWS_EXECUTION_ENV",dw="AWS_REGION",pw="AWS_DEFAULT_REGION",b6="AWS_EC2_METADATA_DISABLED",h6=["in-region","cross-region","mobile","standard","legacy"],k6="/latest/meta-data/placement/region";var D6={environmentVariableSelector:($)=>{return $["AWS_DEFAULTS_MODE"]},configFileSelector:($)=>{return $["defaults_mode"]},default:"legacy"};var nO=({region:$=E0(IL),defaultsMode:w=E0(D6)}={})=>c6.memoize(async()=>{const f=typeof w==="function"?await w():w;switch(f?.toLowerCase()){case"auto":return iR($);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(f?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${h6.join(", ")}, got ${f}`)}}),iR=async($)=>{if($){const w=typeof $==="function"?await $():$,f=await rR();if(!f)return"standard";if(w===f)return"in-region";else return"cross-region"}return"standard"},rR=async()=>{if(process.env[S6]&&(process.env[dw]||process.env[pw]))return process.env[dw]??process.env[pw];if(!process.env[b6])try{const{getInstanceMetadataEndpoint:$,httpRequest:w}=await import("./chunk-827d2c67c03d1a52.js"),f=await $();return(await w({...f,path:k6})).toString()}catch($){}};var oO=($)=>{let w=async()=>{if($.region===void 0)throw new Error("Region is missing from runtimeConfig");const f=$.region;if(typeof f==="string")return f;return f()};return{setRegion(f){w=f},region(){return w}}},tO=($)=>{return{region:$.region()}};export{aR as ya,eR as za,w7 as Aa,L7 as Ba,n as Ca,C0 as Da,U0 as Ea,w1 as Fa,Gw as Ga,Xz as Ha,m0 as Ia,J5 as Ja,B5 as Ka,_J as La,L3 as Ma,F3 as Na,IL as Oa,B3 as Pa,oJ as Qa,i3 as Ra,y5 as Sa,RK as Ta,JK as Ua,CL as Va,HL as Wa,YA as Xa,IA as Ya,QA as Za,HA as _a,W4 as $a,vR as ab,qO as bb,lR as cb,vO as db,nO as eb,oO as fb,tO as gb};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{x as _} from"./chunk-a5c18c07abe8fd9c.js";import"./chunk-bbd36ce62b950ee5.js";import{ib as a} from"./chunk-0ffc38ed09847e35.js";import{lb as l,rb as h} from"./chunk-a816613f5321b9db.js";var R=_(a(),1);var m=_(a(),1);var c=_(a(),1),C=(e,s,r)=>{const i={EcsContainer:async(t)=>{const{fromHttp:n}=await import("./chunk-7d7b2c1f2a8dd018.js"),{fromContainerMetadata:d}=await import("./chunk-32f06f9ad00aaabd.js");return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),c.chain(n(t??{}),d(t))},Ec2InstanceMetadata:async(t)=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");const{fromInstanceMetadata:n}=await import("./chunk-32f06f9ad00aaabd.js");return n(t)},Environment:async(t)=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");const{fromEnv:n}=await import("./chunk-94578320d28e33ad.js");return n(t)}};if(e in i)return i[e];else throw new c.CredentialsProviderError(`Unsupported credential source in profile ${s}. Got ${e}, `+"expected EcsContainer or Ec2InstanceMetadata or Environment.",{logger:r})};var P=(e,{profile:s="default",logger:r}={})=>{return Boolean(e)&&typeof e==="object"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(j(e,{profile:s,logger:r})||O(e,{profile:s,logger:r}))},j=(e,{profile:s,logger:r})=>{const i=typeof e.source_profile==="string"&&typeof e.credential_source==="undefined";if(i)r?.debug?.(` ${s} isAssumeRoleWithSourceProfile source_profile=${e.source_profile}`);return i},O=(e,{profile:s,logger:r})=>{const i=typeof e.credential_source==="string"&&typeof e.source_profile==="undefined";if(i)r?.debug?.(` ${s} isCredentialSourceProfile credential_source=${e.credential_source}`);return i},v=async(e,s,r,i={})=>{r.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");const t=s[e];if(!r.roleAssumer){const{getDefaultRoleAssumer:I}=await import("./chunk-e4f28182cf5f6e1d.js");r.roleAssumer=I({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:r?.parentClientConfig},r.clientPlugins)}const{source_profile:n}=t;if(n&&n in i)throw new m.CredentialsProviderError("Detected a cycle attempting to resolve credentials for profile"+` ${l(r)}. Profiles visited: `+Object.keys(i).join(", "),{logger:r.logger});r.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${n?`source_profile=[${n}]`:`profile=[${e}]`}`);const d=n?o(n,{...s,[n]:{...s[n],role_arn:t.role_arn??s[n].role_arn}},r,{...i,[n]:!0}):(await C(t.credential_source,e,r.logger)(r))(),u={RoleArn:t.role_arn,RoleSessionName:t.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:t.external_id,DurationSeconds:parseInt(t.duration_seconds||"3600",10)},{mfa_serial:f}=t;if(f){if(!r.mfaCodeProvider)throw new m.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:r.logger,tryNextLink:!1});u.SerialNumber=f,u.TokenCode=await r.mfaCodeProvider(f)}const D=await d;return r.roleAssumer(D,u)};var x=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.credential_process==="string",b=async(e,s)=>import("./chunk-4b201cccdf6d290f.js").then(({fromProcess:r})=>r({...e,profile:s})());var A=async(e,s={})=>{const{fromSSO:r}=await import("./chunk-db65c75cda396f98.js");return r({profile:e,logger:s.logger})()},k=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");var w=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.aws_access_key_id==="string"&&typeof e.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1&&["undefined","string"].indexOf(typeof e.aws_account_id)>-1,y=(e,s)=>{return s?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials"),Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,...e.aws_credential_scope&&{credentialScope:e.aws_credential_scope},...e.aws_account_id&&{accountId:e.aws_account_id}})};var S=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.web_identity_token_file==="string"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,$=async(e,s)=>import("./chunk-4e023976eb557258.js").then(({fromTokenFile:r})=>r({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:s.roleAssumerWithWebIdentity,logger:s.logger,parentClientConfig:s.parentClientConfig})());var o=async(e,s,r,i={})=>{const t=s[e];if(Object.keys(i).length>0&&w(t))return y(t,r);if(P(t,{profile:e,logger:r.logger}))return v(e,s,r,i);if(w(t))return y(t,r);if(S(t))return $(t,r);if(x(t))return b(r,e);if(k(t))return await A(e,r);throw new R.CredentialsProviderError(`Could not resolve credentials using profile: [${e}] in configuration/credentials file(s).`,{logger:r.logger})};var H=(e={})=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");const s=await h(e);return o(l(e),s,e)};export{H as fromIni};
@@ -1,9 +0,0 @@
1
- import{t as $,u as w,v as z} from"./chunk-74ab9c225bfe0eaa.js";import{pb as q,rb as G,tb as Y} from"./chunk-2db6c9bb69bb27aa.js";import{vb as Z} from"./chunk-82f72dfc6e27be04.js";var H="AWS_EC2_METADATA_DISABLED",Q=async(b)=>{const{ENV_CMDS_FULL_URI:j,ENV_CMDS_RELATIVE_URI:x,fromContainerMetadata:y,fromInstanceMetadata:J}=await import("./chunk-25dd80c6d9144f89.js");if(process.env[x]||process.env[j]){b.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:K}=await import("./chunk-22773aec8cc230c6.js");return G(K(b),y(b))}if(process.env[H])return async()=>{throw new q("EC2 Instance Metadata Service access disabled",{logger:b.logger})};return b.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),J(b)};var X=!1,W=(b={})=>Y(G(async()=>{if(b.profile??process.env[Z]){if(process.env[$]&&process.env[w]){if(!X)(b.logger?.warn&&b.logger?.constructor?.name!=="NoOpLogger"?b.logger.warn:console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
2
- Multiple credential sources detected:
3
- Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
4
- This SDK will proceed with the AWS_PROFILE value.
5
-
6
- However, a future version may change this behavior to prefer the ENV static credentials.
7
- Please ensure that your environment only sets either the AWS_PROFILE or the
8
- AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
9
- `),X=!0}throw new q("AWS_PROFILE is set, skipping fromEnv provider.",{logger:b.logger,tryNextLink:!0})}return b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),z(b)()},async()=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:j,ssoAccountId:x,ssoRegion:y,ssoRoleName:J,ssoSession:K}=b;if(!j&&!x&&!y&&!J&&!K)throw new q("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:b.logger});const{fromSSO:B}=await import("./chunk-c6d988f5928a4df1.js");return B(b)()},async()=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:j}=await import("./chunk-42aa6e3d42149620.js");return j(b)()},async()=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:j}=await import("./chunk-543013123141745c.js");return j(b)()},async()=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:j}=await import("./chunk-e8159722d49ad044.js");return j(b)()},async()=>{return b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await Q(b))()},async()=>{throw new q("Could not load credentials from any providers",{tryNextLink:!1,logger:b.logger})}),v,k),k=(b)=>b?.expiration!==void 0,v=(b)=>b?.expiration!==void 0&&b.expiration.getTime()-Date.now()<300000;export{W as ub};
@@ -1,2 +0,0 @@
1
- import{x as s} from"./chunk-a5c18c07abe8fd9c.js";import{ib as m} from"./chunk-0ffc38ed09847e35.js";import{lb as u,pb as w} from"./chunk-a816613f5321b9db.js";var a=s(m(),1);var g=s(m(),1);function c(o){try{const r=new Set(Array.from(o.match(/([A-Z_]){3,}/g)??[]));return r.delete("CONFIG"),r.delete("CONFIG_PREFIX_SEPARATOR"),r.delete("ENV"),[...r].join(", ")}catch(r){return o}}var h=(o,r)=>async()=>{try{const t=o(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new g.CredentialsProviderError(t.message||`Not found in ENV: ${c(o.toString())}`,{logger:r})}};var y=s(m(),1);var C=(o,{preferredFile:r="config",...t}={})=>async()=>{const e=u(t),{configFile:n,credentialsFile:i}=await w(t),f=i[e]||{},p=n[e]||{},N=r==="config"?{...f,...p}:{...p,...f};try{const d=o(N,r==="config"?n:i);if(d===void 0)throw new Error;return d}catch(l){throw new y.CredentialsProviderError(l.message||`Not found in config files w/ profile [${e}]: ${c(o.toString())}`,{logger:t.logger})}};var F=s(m(),1),x=(o)=>typeof o==="function",S=(o)=>x(o)?async()=>await o():F.fromStatic(o);var T=({environmentVariableSelector:o,configFileSelector:r,default:t},e={})=>a.memoize(a.chain(h(o),C(r,e),S(t)));function E(o){const r={};if(o=o.replace(/^\?/,""),o)for(let t of o.split("&")){let[e,n=null]=t.split("=");if(e=decodeURIComponent(e),n)n=decodeURIComponent(n);if(!(e in r))r[e]=n;else if(Array.isArray(r[e]))r[e].push(n);else r[e]=[r[e],n]}return r}var v=(o)=>{if(typeof o==="string")return v(new URL(o));const{hostname:r,pathname:t,port:e,protocol:n,search:i}=o;let f;if(i)f=E(i);return{hostname:r,port:e?parseInt(e):void 0,protocol:n,path:t,query:f}};
2
- export{T as gb,v as hb};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-a5c18c07abe8fd9c.js";import"./chunk-62144f9c5008bd47.js";import{sb as v,tb as B} from"./chunk-933845e73519b4c5.js";import{ub as z,vb as y} from"./chunk-73eed146ee78f681.js";import"./chunk-de39fc86bbd37240.js";import{parse as p} from"url";import{Buffer as M} from"buffer";import{request as k} from"http";function u(c){return new Promise((I,x)=>{const T=k({method:"GET",...c,hostname:c.hostname?.replace(/^\[(.+)\]$/,"$1")});T.on("error",(N)=>{x(Object.assign(new z("Unable to connect to instance metadata service"),N)),T.destroy()}),T.on("timeout",()=>{x(new z("TimeoutError from instance metadata service")),T.destroy()}),T.on("response",(N)=>{const{statusCode:O=400}=N;if(O<200||300<=O)x(Object.assign(new z("Error response received from instance metadata service"),{statusCode:O})),T.destroy();const E=[];N.on("data",(w)=>{E.push(w)}),N.on("end",()=>{I(M.concat(E)),T.destroy()})}),T.end()})}var K=(c)=>Boolean(c)&&typeof c==="object"&&typeof c.AccessKeyId==="string"&&typeof c.SecretAccessKey==="string"&&typeof c.Token==="string"&&typeof c.Expiration==="string",_=(c)=>({accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.Token,expiration:new Date(c.Expiration),...c.AccountId&&{accountId:c.AccountId}});var hc=1000,Yc=0,D=({maxRetries:c=0,timeout:I=1000})=>({maxRetries:c,timeout:I});var m=(c,I)=>{let x=c();for(let T=0;T<I;T++)x=x.catch(c);return x};var Q="AWS_CONTAINER_CREDENTIALS_FULL_URI",X="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",b="AWS_CONTAINER_AUTHORIZATION_TOKEN",mc=(c={})=>{const{timeout:I,maxRetries:x}=D(c);return()=>m(async()=>{const T=await s({logger:c.logger}),N=JSON.parse(await C(I,T));if(!K(N))throw new y("Invalid response received from instance metadata service.",{logger:c.logger});return _(N)},x)},C=async(c,I)=>{if(process.env[b])I.headers={...I.headers,Authorization:process.env[b]};return(await u({...I,timeout:c})).toString()},a="169.254.170.2",n={localhost:!0,"127.0.0.1":!0},o={"http:":!0,"https:":!0},s=async({logger:c})=>{if(process.env[X])return{hostname:a,path:process.env[X]};if(process.env[Q]){const I=p(process.env[Q]);if(!I.hostname||!(I.hostname in n))throw new y(`${I.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:c});if(!I.protocol||!(I.protocol in o))throw new y(`${I.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:c});return{...I,port:I.port?parseInt(I.port,10):void 0}}throw new y("The container metadata credential provider cannot be used unless"+` the ${X} or ${Q} environment`+" variable is set",{tryNextLink:!1,logger:c})};class G extends y{constructor(c,I=!0){super(c,I);this.tryNextLink=I,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,G.prototype)}}var A;(function(c){c.IPv4="http://169.254.169.254",c.IPv6="http://[fd00:ec2::254]"})(A||(A={}));var H={environmentVariableSelector:(c)=>c["AWS_EC2_METADATA_SERVICE_ENDPOINT"],configFileSelector:(c)=>c["ec2_metadata_service_endpoint"],default:void 0};var f;(function(c){c.IPv4="IPv4",c.IPv6="IPv6"})(f||(f={}));var g="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",l="ec2_metadata_service_endpoint_mode",q={environmentVariableSelector:(c)=>c[g],configFileSelector:(c)=>c[l],default:f.IPv4};var Z=async()=>B(await r()||await d()),r=async()=>v(H)(),d=async()=>{const c=await v(q)();switch(c){case f.IPv4:return A.IPv4;case f.IPv6:return A.IPv6;default:throw new Error(`Unsupported endpoint mode: ${c}.`+` Select from ${Object.values(f)}`)}};var L=(c,I)=>{const x=300+Math.floor(Math.random()*300),T=new Date(Date.now()+x*1000);I.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these "+`credentials will be attempted after ${new Date(T)}.\nFor more information, please visit: `+"https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html");const N=c.originalExpiration??c.expiration;return{...c,...N?{originalExpiration:N}:{},expiration:T}};var U=(c,I={})=>{const x=I?.logger||console;let T;return async()=>{let N;try{if(N=await c(),N.expiration&&N.expiration.getTime()<Date.now())N=L(N,x)}catch(O){if(T)x.warn("Credential renew failed: ",O),N=L(T,x);else throw O}return T=N,N}};var P="/latest/meta-data/iam/security-credentials/",e="/latest/api/token",W="AWS_EC2_METADATA_V1_DISABLED",t="ec2_metadata_v1_disabled",F="x-aws-ec2-metadata-token",oc=(c={})=>U(i(c),{logger:c.logger}),i=(c={})=>{let I=!1;const{logger:x,profile:T}=c,{timeout:N,maxRetries:O}=D(c),E=async(w,$)=>{if(I||$.headers?.[F]==null){let h=!1,Y=!1;const R=await v({environmentVariableSelector:(S)=>{const j=S[W];if(Y=!!j&&j!=="false",j===void 0)throw new y(`${W} not set in env, checking config file next.`,{logger:c.logger});return Y},configFileSelector:(S)=>{const j=S[t];return h=!!j&&j!=="false",h},default:!1},{profile:T})();if(c.ec2MetadataV1Disabled||R){const S=[];if(c.ec2MetadataV1Disabled)S.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(h)S.push(`config file profile (${t})`);if(Y)S.push(`process environment variable (${W})`);throw new G(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${S.join(", ")}].`)}}const V=(await m(async()=>{let h;try{h=await Ic($)}catch(Y){if(Y.statusCode===401)I=!1;throw Y}return h},w)).trim();return m(async()=>{let h;try{h=await Tc(V,$,c)}catch(Y){if(Y.statusCode===401)I=!1;throw Y}return h},w)};return async()=>{const w=await Z();if(I)return x?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),E(O,{...w,timeout:N});else{let $;try{$=(await cc({...w,timeout:N})).toString()}catch(J){if(J?.statusCode===400)throw Object.assign(J,{message:"EC2 Metadata token request returned error"});else if(J.message==="TimeoutError"||[403,404,405].includes(J.statusCode))I=!0;return x?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),E(O,{...w,timeout:N})}return E(O,{...w,headers:{[F]:$},timeout:N})}}},cc=async(c)=>u({...c,path:e,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),Ic=async(c)=>(await u({...c,path:P})).toString(),Tc=async(c,I,x)=>{const T=JSON.parse((await u({...I,path:P+c})).toString());if(!K(T))throw new y("Invalid response received from instance metadata service.",{logger:x.logger});return _(T)};export{D as providerConfigFromInit,u as httpRequest,Z as getInstanceMetadataEndpoint,oc as fromInstanceMetadata,mc as fromContainerMetadata,A as Endpoint,X as ENV_CMDS_RELATIVE_URI,Q as ENV_CMDS_FULL_URI,b as ENV_CMDS_AUTH_TOKEN,hc as DEFAULT_TIMEOUT,Yc as DEFAULT_MAX_RETRIES};