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,18 +0,0 @@
1
- import{A as M,z as o} from"./chunk-bdf4f2b1862899bb.js";import{$ as GE,D as v,E as Ww,F as kW,G as W4,J as Vw,K as bL,N as hL,R as fZ,U as Uf,V as X2,W as wZ,X as x2,Y as Of,Z as EE,_ as k2} from"./chunk-01ffccc19e8ef862.js";import{pb as qf} from"./chunk-dc23bfb4fd92e2f0.js";import{qb as O$,rb as Wf} from"./chunk-d43b3f444e738dd1.js";import{sb as w1} from"./chunk-f316793e4ec0f386.js";import{yb as o1} from"./chunk-ba051a98cd651063.js";var s=M((R9,bw)=>{var{defineProperty:tf,getOwnPropertyDescriptor:mL,getOwnPropertyNames:iL}=Object,oL=Object.prototype.hasOwnProperty,Sw=(f,w)=>tf(f,"name",{value:w,configurable:!0}),tL=(f,w)=>{for(var $ in w)tf(f,$,{get:w[$],enumerable:!0})},aL=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of iL(w))if(!oL.call(f,U)&&U!==$)tf(f,U,{get:()=>w[U],enumerable:!(E=mL(w,U))||E.enumerable})}return f},eL=(f)=>aL(tf({},"__esModule",{value:!0}),f),jw={};tL(jw,{getSmithyContext:()=>f8,normalizeProvider:()=>w8});bw.exports=eL(jw);var Pw=qf(),f8=Sw((f)=>f[Pw.SMITHY_CONTEXT_KEY]||(f[Pw.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),w8=Sw((f)=>{if(typeof f==="function")return f;const w=Promise.resolve(f);return()=>w},"normalizeProvider")});var Xf=M((hw)=>{Object.defineProperty(hw,"__esModule",{value:!0});hw.getHomeDir=void 0;var $8=import.meta.require("os"),U8=import.meta.require("path"),r0={},E8=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},G8=()=>{const{HOME:f,USERPROFILE:w,HOMEPATH:$,HOMEDRIVE:E=`C:${U8.sep}`}=process.env;if(f)return f;if(w)return w;if($)return`${E}${$}`;const U=E8();if(!r0[U])r0[U]=$8.homedir();return r0[U]};hw.getHomeDir=G8});var m0=M((kw)=>{Object.defineProperty(kw,"__esModule",{value:!0});kw.getSSOTokenFilepath=void 0;var W8=import.meta.require("crypto"),R8=import.meta.require("path"),L8=Xf(),I8=(f)=>{const $=W8.createHash("sha1").update(f).digest("hex");return R8.join(L8.getHomeDir(),".aws","sso","cache",`${$}.json`)};kw.getSSOTokenFilepath=I8});var _w=M((uw)=>{Object.defineProperty(uw,"__esModule",{value:!0});uw.getSSOTokenFromFile=void 0;var F8=import.meta.require("fs"),X8=m0(),{readFile:Z8}=F8.promises,Y8=async(f)=>{const w=X8.getSSOTokenFilepath(f),$=await Z8(w,"utf8");return JSON.parse($)};uw.getSSOTokenFromFile=Y8});var o0=M((yw)=>{Object.defineProperty(yw,"__esModule",{value:!0});yw.slurpFile=void 0;var O8=import.meta.require("fs"),{readFile:z8}=O8.promises,i0={},M8=(f,w)=>{if(!i0[f]||(w===null||w===void 0?void 0:w.ignoreCache))i0[f]=z8(f,"utf8");return i0[f]};yw.slurpFile=M8});var f1=M((Z9,Pf)=>{var{defineProperty:f0,getOwnPropertyDescriptor:Q8,getOwnPropertyNames:J8}=Object,T8=Object.prototype.hasOwnProperty,_=(f,w)=>f0(f,"name",{value:w,configurable:!0}),A8=(f,w)=>{for(var $ in w)f0(f,$,{get:w[$],enumerable:!0})},t0=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of J8(w))if(!T8.call(f,U)&&U!==$)f0(f,U,{get:()=>w[U],enumerable:!(E=Q8(w,U))||E.enumerable})}return f},e0=(f,w,$)=>(t0(f,w,"default"),$&&t0($,w,"default")),K8=(f)=>t0(f0({},"__esModule",{value:!0}),f),Nf={};A8(Nf,{CONFIG_PREFIX_SEPARATOR:()=>$f,DEFAULT_PROFILE:()=>nw,ENV_PROFILE:()=>gw,getProfileName:()=>B8,loadSharedConfigFiles:()=>lw,loadSsoSessionData:()=>D8,parseKnownFiles:()=>v8});Pf.exports=K8(Nf);e0(Nf,Xf(),Pf.exports);var gw="AWS_PROFILE",nw="default",B8=_((f)=>f.profile||process.env[gw]||nw,"getProfileName");e0(Nf,m0(),Pf.exports);e0(Nf,_w(),Pf.exports);var af=qf(),V8=_((f)=>Object.entries(f).filter(([w])=>{const $=w.indexOf($f);if($===-1)return!1;return Object.values(af.IniSectionType).includes(w.substring(0,$))}).reduce((w,[$,E])=>{const U=$.indexOf($f),G=$.substring(0,U)===af.IniSectionType.PROFILE?$.substring(U+1):$;return w[G]=E,w},{...f.default&&{default:f.default}}),"getConfigData"),ef=import.meta.require("path"),H8=Xf(),C8="AWS_CONFIG_FILE",sw=_(()=>process.env[C8]||ef.join(H8.getHomeDir(),".aws","config"),"getConfigFilepath"),q8=Xf(),N8="AWS_SHARED_CREDENTIALS_FILE",P8=_(()=>process.env[N8]||ef.join(q8.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),S8=Xf(),j8=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,b8=["__proto__","profile __proto__"],a0=_((f)=>{const w={};let $,E;for(let U of f.split(/\r?\n/)){const G=U.split(/(^|\s)[;#]/)[0].trim();if(G[0]==="["&&G[G.length-1]==="]"){$=void 0,E=void 0;const R=G.substring(1,G.length-1),L=j8.exec(R);if(L){const[,I,,F]=L;if(Object.values(af.IniSectionType).includes(I))$=[I,F].join($f)}else $=R;if(b8.includes(R))throw new Error(`Found invalid profile name "${R}"`)}else if($){const R=G.indexOf("=");if(![0,-1].includes(R)){const[L,I]=[G.substring(0,R).trim(),G.substring(R+1).trim()];if(I==="")E=L;else{if(E&&U.trimStart()===U)E=void 0;w[$]=w[$]||{};const F=E?[E,L].join($f):L;w[$][F]=I}}}}return w},"parseIni"),dw=o0(),pw=_(()=>({}),"swallowError"),$f=".",lw=_(async(f={})=>{const{filepath:w=P8(),configFilepath:$=sw()}=f,E=S8.getHomeDir();let G=w;if(w.startsWith("~/"))G=ef.join(E,w.slice(2));let W=$;if($.startsWith("~/"))W=ef.join(E,$.slice(2));const R=await Promise.all([dw.slurpFile(W,{ignoreCache:f.ignoreCache}).then(a0).then(V8).catch(pw),dw.slurpFile(G,{ignoreCache:f.ignoreCache}).then(a0).catch(pw)]);return{configFile:R[0],credentialsFile:R[1]}},"loadSharedConfigFiles"),h8=_((f)=>Object.entries(f).filter(([w])=>w.startsWith(af.IniSectionType.SSO_SESSION+$f)).reduce((w,[$,E])=>({...w,[$.substring($.indexOf($f)+1)]:E}),{}),"getSsoSessionData"),c8=o0(),k8=_(()=>({}),"swallowError"),D8=_(async(f={})=>c8.slurpFile(f.configFilepath??sw()).then(a0).then(h8).catch(k8),"loadSsoSessionData"),u8=_((...f)=>{const w={};for(let $ of f)for(let[E,U]of Object.entries($))if(w[E]!==void 0)Object.assign(w[E],U);else w[E]=U;return w},"mergeConfigFiles"),v8=_(async(f)=>{const w=await lw(f);return u8(w.configFile,w.credentialsFile)},"parseKnownFiles")});var ow=M((Y9,iw)=>{var $1=function(f){try{const w=new Set(Array.from(f.match(/([A-Z_]){3,}/g)??[]));return w.delete("CONFIG"),w.delete("CONFIG_PREFIX_SEPARATOR"),w.delete("ENV"),[...w].join(", ")}catch(w){return f}},w0=Object.defineProperty,_8=Object.getOwnPropertyDescriptor,y8=Object.getOwnPropertyNames,x8=Object.prototype.hasOwnProperty,Zf=(f,w)=>w0(f,"name",{value:w,configurable:!0}),d8=(f,w)=>{for(var $ in w)w0(f,$,{get:w[$],enumerable:!0})},p8=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of y8(w))if(!x8.call(f,U)&&U!==$)w0(f,U,{get:()=>w[U],enumerable:!(E=_8(w,U))||E.enumerable})}return f},g8=(f)=>p8(w0({},"__esModule",{value:!0}),f),mw={};d8(mw,{loadConfig:()=>m8});iw.exports=g8(mw);var Sf=w1();Zf($1,"getSelectorName");var n8=Zf((f,w)=>async()=>{try{const $=f(process.env);if($===void 0)throw new Error;return $}catch($){throw new Sf.CredentialsProviderError($.message||`Not found in ENV: ${$1(f.toString())}`,{logger:w})}},"fromEnv"),rw=f1(),s8=Zf((f,{preferredFile:w="config",...$}={})=>async()=>{const E=rw.getProfileName($),{configFile:U,credentialsFile:G}=await rw.loadSharedConfigFiles($),W=G[E]||{},R=U[E]||{},L=w==="config"?{...W,...R}:{...R,...W};try{const F=f(L,w==="config"?U:G);if(F===void 0)throw new Error;return F}catch(I){throw new Sf.CredentialsProviderError(I.message||`Not found in config files w/ profile [${E}]: ${$1(f.toString())}`,{logger:$.logger})}},"fromSharedConfigFiles"),l8=Zf((f)=>typeof f==="function","isFunction"),r8=Zf((f)=>l8(f)?async()=>await f():Sf.fromStatic(f),"fromStatic"),m8=Zf(({environmentVariableSelector:f,configFileSelector:w,default:$},E={})=>Sf.memoize(Sf.chain(n8(f),s8(w,E),r8($))),"loadConfig")});var $$=M((f$)=>{Object.defineProperty(f$,"__esModule",{value:!0});f$.getEndpointUrlConfig=void 0;var tw=f1(),aw="AWS_ENDPOINT_URL",ew="endpoint_url",i8=(f)=>({environmentVariableSelector:(w)=>{const $=f.split(" ").map((G)=>G.toUpperCase()),E=w[[aw,...$].join("_")];if(E)return E;const U=w[aw];if(U)return U;return},configFileSelector:(w,$)=>{if($&&w.services){const U=$[["services",w.services].join(tw.CONFIG_PREFIX_SEPARATOR)];if(U){const G=f.split(" ").map((R)=>R.toLowerCase()),W=U[[G.join("_"),ew].join(tw.CONFIG_PREFIX_SEPARATOR)];if(W)return W}}const E=w[ew];if(E)return E;return},default:void 0});f$.getEndpointUrlConfig=i8});var G$=M((U$)=>{Object.defineProperty(U$,"__esModule",{value:!0});U$.getEndpointFromConfig=void 0;var o8=ow(),t8=$$(),a8=async(f)=>o8.loadConfig(t8.getEndpointUrlConfig(f))();U$.getEndpointFromConfig=a8});var E1=M((M9,Z$)=>{var X$=function(f,w,$){return{applyToStack:(E)=>{E.add(R$(f,$),I$),E.add(L$(f,w),F$)}}},$0=Object.defineProperty,e8=Object.getOwnPropertyDescriptor,fI=Object.getOwnPropertyNames,wI=Object.prototype.hasOwnProperty,U1=(f,w)=>$0(f,"name",{value:w,configurable:!0}),$I=(f,w)=>{for(var $ in w)$0(f,$,{get:w[$],enumerable:!0})},UI=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of fI(w))if(!wI.call(f,U)&&U!==$)$0(f,U,{get:()=>w[U],enumerable:!(E=e8(w,U))||E.enumerable})}return f},EI=(f)=>UI($0({},"__esModule",{value:!0}),f),W$={};$I(W$,{deserializerMiddleware:()=>R$,deserializerMiddlewareOption:()=>I$,getSerdePlugin:()=>X$,serializerMiddleware:()=>L$,serializerMiddlewareOption:()=>F$});Z$.exports=EI(W$);var R$=U1((f,w)=>($)=>async(E)=>{const{response:U}=await $(E);try{const G=await w(U,f);return{response:U,output:G}}catch(G){if(Object.defineProperty(G,"$response",{value:U}),!("$metadata"in G)){if(G.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof G.$responseBodyText!=="undefined"){if(G.$response)G.$response.body=G.$responseBodyText}}throw G}},"deserializerMiddleware"),L$=U1((f,w)=>($,E)=>async(U)=>{var G;const W=((G=E.endpointV2)==null?void 0:G.url)&&f.urlParser?async()=>f.urlParser(E.endpointV2.url):f.endpoint;if(!W)throw new Error("No valid endpoint provider available.");const R=await w(U.input,{...f,endpoint:W});return $({...U,request:R})},"serializerMiddleware"),I$={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},F$={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};U1(X$,"getSerdePlugin")});var K$=M((Q9,A$)=>{var{defineProperty:E0,getOwnPropertyDescriptor:GI,getOwnPropertyNames:WI}=Object,RI=Object.prototype.hasOwnProperty,d=(f,w)=>E0(f,"name",{value:w,configurable:!0}),LI=(f,w)=>{for(var $ in w)E0(f,$,{get:w[$],enumerable:!0})},II=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of WI(w))if(!RI.call(f,U)&&U!==$)E0(f,U,{get:()=>w[U],enumerable:!(E=GI(w,U))||E.enumerable})}return f},FI=(f)=>II(E0({},"__esModule",{value:!0}),f),z$={};LI(z$,{endpointMiddleware:()=>J$,endpointMiddlewareOptions:()=>T$,getEndpointFromInstructions:()=>M$,getEndpointPlugin:()=>AI,resolveEndpointConfig:()=>KI,resolveParams:()=>Q$,toEndpointV1:()=>G1});A$.exports=FI(z$);var XI=d(async(f)=>{const w=(f==null?void 0:f.Bucket)||"";if(typeof f.Bucket==="string")f.Bucket=w.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(MI(w)){if(f.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!zI(w)||w.indexOf(".")!==-1&&!String(f.Endpoint).startsWith("http:")||w.toLowerCase()!==w||w.length<3)f.ForcePathStyle=!0;if(f.DisableMultiRegionAccessPoints)f.disableMultiRegionAccessPoints=!0,f.DisableMRAP=!0;return f},"resolveParamsForS3"),ZI=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,YI=/(\d+\.){3}\d+/,OI=/\.\./,zI=d((f)=>ZI.test(f)&&!YI.test(f)&&!OI.test(f),"isDnsCompatibleBucketName"),MI=d((f)=>{const[w,$,E,,,U]=f.split(":"),G=w==="arn"&&f.split(":").length>=6,W=Boolean(G&&$&&E&&U);if(G&&!W)throw new Error(`Invalid ARN: ${f} was an invalid ARN.`);return W},"isArnBucketName"),QI=d((f,w,$)=>{const E=d(async()=>{const U=$[f]??$[w];if(typeof U==="function")return U();return U},"configProvider");if(f==="credentialScope"||w==="CredentialScope")return async()=>{const U=typeof $.credentials==="function"?await $.credentials():$.credentials;return(U==null?void 0:U.credentialScope)??(U==null?void 0:U.CredentialScope)};if(f==="accountId"||w==="AccountId")return async()=>{const U=typeof $.credentials==="function"?await $.credentials():$.credentials;return(U==null?void 0:U.accountId)??(U==null?void 0:U.AccountId)};if(f==="endpoint"||w==="endpoint")return async()=>{const U=await E();if(U&&typeof U==="object"){if("url"in U)return U.url.href;if("hostname"in U){const{protocol:G,hostname:W,port:R,path:L}=U;return`${G}//${W}${R?":"+R:""}${L}`}}return U};return E},"createConfigValueProvider"),JI=G$(),Y$=O$(),G1=d((f)=>{if(typeof f==="object"){if("url"in f)return Y$.parseUrl(f.url);return f}return Y$.parseUrl(f)},"toEndpointV1"),M$=d(async(f,w,$,E)=>{if(!$.endpoint){const W=await JI.getEndpointFromConfig($.serviceId||"");if(W)$.endpoint=()=>Promise.resolve(G1(W))}const U=await Q$(f,w,$);if(typeof $.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return $.endpointProvider(U,E)},"getEndpointFromInstructions"),Q$=d(async(f,w,$)=>{var E;const U={},G=((E=w==null?void 0:w.getEndpointParameterInstructions)==null?void 0:E.call(w))||{};for(let[W,R]of Object.entries(G))switch(R.type){case"staticContextParams":U[W]=R.value;break;case"contextParams":U[W]=f[R.name];break;case"clientContextParams":case"builtInParams":U[W]=await QI(R.name,W,$)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(R))}if(Object.keys(G).length===0)Object.assign(U,$);if(String($.serviceId).toLowerCase()==="s3")await XI(U);return U},"resolveParams"),U0=s(),J$=d(({config:f,instructions:w})=>{return($,E)=>async(U)=>{var G,W,R;const L=await M$(U.input,{getEndpointParameterInstructions(){return w}},{...f},E);E.endpointV2=L,E.authSchemes=(G=L.properties)==null?void 0:G.authSchemes;const I=(W=E.authSchemes)==null?void 0:W[0];if(I){E.signing_region=I.signingRegion,E.signing_service=I.signingName;const F=U0.getSmithyContext(E),X=(R=F==null?void 0:F.selectedHttpAuthScheme)==null?void 0:R.httpAuthOption;if(X)X.signingProperties=Object.assign(X.signingProperties||{},{signing_region:I.signingRegion,signingRegion:I.signingRegion,signing_service:I.signingName,signingName:I.signingName,signingRegionSet:I.signingRegionSet},I.properties)}return $({...U})}},"endpointMiddleware"),TI=E1(),T$={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:TI.serializerMiddlewareOption.name},AI=d((f,w)=>({applyToStack:($)=>{$.addRelativeTo(J$({config:f,instructions:w}),T$)}}),"getEndpointPlugin"),KI=d((f)=>{const w=f.tls??!0,{endpoint:$}=f,E=$!=null?async()=>G1(await U0.normalizeProvider($)()):void 0;return{...f,endpoint:E,tls:w,isCustomEndpoint:!!$,useDualstackEndpoint:U0.normalizeProvider(f.useDualstackEndpoint??!1),useFipsEndpoint:U0.normalizeProvider(f.useFipsEndpoint??!1)}},"resolveEndpointConfig")});var W1=M((B$)=>{var VI=function(f){return f&&f.__esModule?f:{default:f}},HI=function(){if(G0>W0.length-16)BI.default.randomFillSync(W0),G0=0;return W0.slice(G0,G0+=16)};Object.defineProperty(B$,"__esModule",{value:!0});B$.default=HI;var BI=VI(import.meta.require("crypto")),W0=new Uint8Array(256),G0=W0.length});var C$=M((V$)=>{Object.defineProperty(V$,"__esModule",{value:!0});V$.default=void 0;var qI=/^(?:[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;V$.default=qI});var jf=M((q$)=>{var PI=function(f){return f&&f.__esModule?f:{default:f}},SI=function(f){return typeof f==="string"&&NI.default.test(f)};Object.defineProperty(q$,"__esModule",{value:!0});q$.default=void 0;var NI=PI(C$()),jI=SI;q$.default=jI});var bf=M((S$)=>{var hI=function(f){return f&&f.__esModule?f:{default:f}},P$=function(f,w=0){return b[f[w+0]]+b[f[w+1]]+b[f[w+2]]+b[f[w+3]]+"-"+b[f[w+4]]+b[f[w+5]]+"-"+b[f[w+6]]+b[f[w+7]]+"-"+b[f[w+8]]+b[f[w+9]]+"-"+b[f[w+10]]+b[f[w+11]]+b[f[w+12]]+b[f[w+13]]+b[f[w+14]]+b[f[w+15]]},cI=function(f,w=0){const $=P$(f,w);if(!bI.default($))throw TypeError("Stringified UUID is invalid");return $};Object.defineProperty(S$,"__esModule",{value:!0});S$.default=void 0;S$.unsafeStringify=P$;var bI=hI(jf()),b=[];for(let f=0;f<256;++f)b.push((f+256).toString(16).slice(1));var kI=cI;S$.default=kI});var k$=M((h$)=>{var _I=function(f){return f&&f.__esModule?f:{default:f}},yI=function(f,w,$){let E=w&&$||0;const U=w||new Array(16);f=f||{};let G=f.node||b$,W=f.clockseq!==void 0?f.clockseq:R1;if(G==null||W==null){const Y=f.random||(f.rng||uI.default)();if(G==null)G=b$=[Y[0]|1,Y[1],Y[2],Y[3],Y[4],Y[5]];if(W==null)W=R1=(Y[6]<<8|Y[7])&16383}let R=f.msecs!==void 0?f.msecs:Date.now(),L=f.nsecs!==void 0?f.nsecs:I1+1;const I=R-L1+(L-I1)/1e4;if(I<0&&f.clockseq===void 0)W=W+1&16383;if((I<0||R>L1)&&f.nsecs===void 0)L=0;if(L>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");L1=R,I1=L,R1=W,R+=12219292800000;const F=((R&268435455)*1e4+L)%4294967296;U[E++]=F>>>24&255,U[E++]=F>>>16&255,U[E++]=F>>>8&255,U[E++]=F&255;const X=R/4294967296*1e4&268435455;U[E++]=X>>>8&255,U[E++]=X&255,U[E++]=X>>>24&15|16,U[E++]=X>>>16&255,U[E++]=W>>>8|128,U[E++]=W&255;for(let Y=0;Y<6;++Y)U[E+Y]=G[Y];return w||vI.unsafeStringify(U)};Object.defineProperty(h$,"__esModule",{value:!0});h$.default=void 0;var uI=_I(W1()),vI=bf(),b$,R1,L1=0,I1=0,xI=yI;h$.default=xI});var F1=M((D$)=>{var pI=function(f){return f&&f.__esModule?f:{default:f}},gI=function(f){if(!dI.default(f))throw TypeError("Invalid UUID");let w;const $=new Uint8Array(16);return $[0]=(w=parseInt(f.slice(0,8),16))>>>24,$[1]=w>>>16&255,$[2]=w>>>8&255,$[3]=w&255,$[4]=(w=parseInt(f.slice(9,13),16))>>>8,$[5]=w&255,$[6]=(w=parseInt(f.slice(14,18),16))>>>8,$[7]=w&255,$[8]=(w=parseInt(f.slice(19,23),16))>>>8,$[9]=w&255,$[10]=(w=parseInt(f.slice(24,36),16))/1099511627776&255,$[11]=w/4294967296&255,$[12]=w>>>24&255,$[13]=w>>>16&255,$[14]=w>>>8&255,$[15]=w&255,$};Object.defineProperty(D$,"__esModule",{value:!0});D$.default=void 0;var dI=pI(jf()),nI=gI;D$.default=nI});var X1=M((y$)=>{var rI=function(f){return f&&f.__esModule?f:{default:f}},mI=function(f){f=unescape(encodeURIComponent(f));const w=[];for(let $=0;$<f.length;++$)w.push(f.charCodeAt($));return w},iI=function(f,w,$){function E(U,G,W,R){var L;if(typeof U==="string")U=mI(U);if(typeof G==="string")G=lI.default(G);if(((L=G)===null||L===void 0?void 0:L.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let I=new Uint8Array(16+U.length);if(I.set(G),I.set(U,G.length),I=$(I),I[6]=I[6]&15|w,I[8]=I[8]&63|128,W){R=R||0;for(let F=0;F<16;++F)W[R+F]=I[F];return W}return sI.unsafeStringify(I)}try{E.name=f}catch(U){}return E.DNS=v$,E.URL=_$,E};Object.defineProperty(y$,"__esModule",{value:!0});y$.URL=y$.DNS=void 0;y$.default=iI;var sI=bf(),lI=rI(F1()),v$="6ba7b810-9dad-11d1-80b4-00c04fd430c8";y$.DNS=v$;var _$="6ba7b811-9dad-11d1-80b4-00c04fd430c8";y$.URL=_$});var g$=M((d$)=>{var eI=function(f){return f&&f.__esModule?f:{default:f}},fF=function(f){if(Array.isArray(f))f=Buffer.from(f);else if(typeof f==="string")f=Buffer.from(f,"utf8");return aI.default.createHash("md5").update(f).digest()};Object.defineProperty(d$,"__esModule",{value:!0});d$.default=void 0;var aI=eI(import.meta.require("crypto")),wF=fF;d$.default=wF});var r$=M((s$)=>{var n$=function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(s$,"__esModule",{value:!0});s$.default=void 0;var $F=n$(X1()),UF=n$(g$()),EF=$F.default("v3",48,UF.default),GF=EF;s$.default=GF});var o$=M((m$)=>{var RF=function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(m$,"__esModule",{value:!0});m$.default=void 0;var WF=RF(import.meta.require("crypto")),LF={randomUUID:WF.default.randomUUID};m$.default=LF});var wU=M((e$)=>{var a$=function(f){return f&&f.__esModule?f:{default:f}},XF=function(f,w,$){if(t$.default.randomUUID&&!w&&!f)return t$.default.randomUUID();f=f||{};const E=f.random||(f.rng||IF.default)();if(E[6]=E[6]&15|64,E[8]=E[8]&63|128,w){$=$||0;for(let U=0;U<16;++U)w[$+U]=E[U];return w}return FF.unsafeStringify(E)};Object.defineProperty(e$,"__esModule",{value:!0});e$.default=void 0;var t$=a$(o$()),IF=a$(W1()),FF=bf(),ZF=XF;e$.default=ZF});var EU=M(($U)=>{var OF=function(f){return f&&f.__esModule?f:{default:f}},zF=function(f){if(Array.isArray(f))f=Buffer.from(f);else if(typeof f==="string")f=Buffer.from(f,"utf8");return YF.default.createHash("sha1").update(f).digest()};Object.defineProperty($U,"__esModule",{value:!0});$U.default=void 0;var YF=OF(import.meta.require("crypto")),MF=zF;$U.default=MF});var LU=M((WU)=>{var GU=function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(WU,"__esModule",{value:!0});WU.default=void 0;var QF=GU(X1()),JF=GU(EU()),TF=QF.default("v5",80,JF.default),AF=TF;WU.default=AF});var XU=M((IU)=>{Object.defineProperty(IU,"__esModule",{value:!0});IU.default=void 0;var KF="00000000-0000-0000-0000-000000000000";IU.default=KF});var OU=M((ZU)=>{var VF=function(f){return f&&f.__esModule?f:{default:f}},HF=function(f){if(!BF.default(f))throw TypeError("Invalid UUID");return parseInt(f.slice(14,15),16)};Object.defineProperty(ZU,"__esModule",{value:!0});ZU.default=void 0;var BF=VF(jf()),CF=HF;ZU.default=CF});var Z1=M((p)=>{var m=function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(p,"__esModule",{value:!0});Object.defineProperty(p,"NIL",{enumerable:!0,get:function(){return jF.default}});Object.defineProperty(p,"parse",{enumerable:!0,get:function(){return kF.default}});Object.defineProperty(p,"stringify",{enumerable:!0,get:function(){return cF.default}});Object.defineProperty(p,"v1",{enumerable:!0,get:function(){return qF.default}});Object.defineProperty(p,"v3",{enumerable:!0,get:function(){return NF.default}});Object.defineProperty(p,"v4",{enumerable:!0,get:function(){return PF.default}});Object.defineProperty(p,"v5",{enumerable:!0,get:function(){return SF.default}});Object.defineProperty(p,"validate",{enumerable:!0,get:function(){return hF.default}});Object.defineProperty(p,"version",{enumerable:!0,get:function(){return bF.default}});var qF=m(k$()),NF=m(r$()),PF=m(wU()),SF=m(LU()),jF=m(XU()),bF=m(OU()),hF=m(jf()),cF=m(bf()),kF=m(F1())});var Y1=M((k9,JU)=>{var{defineProperty:R0,getOwnPropertyDescriptor:DF,getOwnPropertyNames:uF}=Object,vF=Object.prototype.hasOwnProperty,Yf=(f,w)=>R0(f,"name",{value:w,configurable:!0}),_F=(f,w)=>{for(var $ in w)R0(f,$,{get:w[$],enumerable:!0})},yF=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of uF(w))if(!vF.call(f,U)&&U!==$)R0(f,U,{get:()=>w[U],enumerable:!(E=DF(w,U))||E.enumerable})}return f},xF=(f)=>yF(R0({},"__esModule",{value:!0}),f),zU={};_F(zU,{isClockSkewCorrectedError:()=>MU,isClockSkewError:()=>rF,isRetryableByTrait:()=>lF,isServerError:()=>iF,isThrottlingError:()=>mF,isTransientError:()=>QU});JU.exports=xF(zU);var dF=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],pF=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],gF=["TimeoutError","RequestTimeout","RequestTimeoutException"],nF=[500,502,503,504],sF=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],lF=Yf((f)=>f.$retryable!==void 0,"isRetryableByTrait"),rF=Yf((f)=>dF.includes(f.name),"isClockSkewError"),MU=Yf((f)=>{var w;return(w=f.$metadata)==null?void 0:w.clockSkewCorrected},"isClockSkewCorrectedError"),mF=Yf((f)=>{var w,$;return((w=f.$metadata)==null?void 0:w.httpStatusCode)===429||pF.includes(f.name)||(($=f.$retryable)==null?void 0:$.throttling)==!0},"isThrottlingError"),QU=Yf((f)=>{var w;return MU(f)||gF.includes(f.name)||sF.includes((f==null?void 0:f.code)||"")||nF.includes(((w=f.$metadata)==null?void 0:w.httpStatusCode)||0)},"isTransientError"),iF=Yf((f)=>{var w;if(((w=f.$metadata)==null?void 0:w.httpStatusCode)!==void 0){const $=f.$metadata.httpStatusCode;if(500<=$&&$<=599&&!QU(f))return!0;return!1}return!1},"isServerError")});var hU=M((D9,bU)=>{var{defineProperty:L0,getOwnPropertyDescriptor:oF,getOwnPropertyNames:tF}=Object,aF=Object.prototype.hasOwnProperty,g=(f,w)=>L0(f,"name",{value:w,configurable:!0}),eF=(f,w)=>{for(var $ in w)L0(f,$,{get:w[$],enumerable:!0})},f2=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of tF(w))if(!aF.call(f,U)&&U!==$)L0(f,U,{get:()=>w[U],enumerable:!(E=oF(w,U))||E.enumerable})}return f},w2=(f)=>f2(L0({},"__esModule",{value:!0}),f),AU={};eF(AU,{AdaptiveRetryStrategy:()=>R2,ConfiguredRetryStrategy:()=>L2,DEFAULT_MAX_ATTEMPTS:()=>O1,DEFAULT_RETRY_DELAY_BASE:()=>hf,DEFAULT_RETRY_MODE:()=>$2,DefaultRateLimiter:()=>VU,INITIAL_RETRY_TOKENS:()=>z1,INVOCATION_ID_HEADER:()=>E2,MAXIMUM_RETRY_DELAY:()=>M1,NO_RETRY_INCREMENT:()=>NU,REQUEST_HEADER:()=>G2,RETRY_COST:()=>CU,RETRY_MODES:()=>KU,StandardRetryStrategy:()=>Q1,THROTTLING_RETRY_DELAY_BASE:()=>HU,TIMEOUT_RETRY_COST:()=>qU});bU.exports=w2(AU);var KU=((f)=>{return f.STANDARD="standard",f.ADAPTIVE="adaptive",f})(KU||{}),O1=3,$2="standard",U2=Y1(),BU=class f{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 $=this.getCurrentTimeInSeconds();this.lastThrottleTime=$,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 $=(w-this.currentCapacity)/this.fillRate*1000;await new Promise((E)=>setTimeout(E,$))}this.currentCapacity=this.currentCapacity-w}refillTokenBucket(){const w=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=w;return}const $=(w-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+$),this.lastTimestamp=w}updateClientSendingRate(w){let $;if(this.updateMeasuredRate(),U2.isThrottlingError(w)){const U=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=U,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),$=this.cubicThrottle(U),this.enableTokenBucket()}else this.calculateTimeWindow(),$=this.cubicSuccess(this.getCurrentTimeInSeconds());const E=Math.min($,2*this.measuredTxRate);this.updateTokenBucketRate(E)}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(),$=Math.floor(w*2)/2;if(this.requestCount++,$>this.lastTxRateBucket){const E=this.requestCount/($-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(E*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=$}}getPrecise(w){return parseFloat(w.toFixed(8))}};g(BU,"DefaultRateLimiter");var VU=BU,hf=100,M1=20000,HU=500,z1=500,CU=5,qU=10,NU=1,E2="amz-sdk-invocation-id",G2="amz-sdk-request",W2=g(()=>{let f=hf;return{computeNextBackoffDelay:g((E)=>{return Math.floor(Math.min(M1,Math.random()*2**E*f))},"computeNextBackoffDelay"),setDelayBase:g((E)=>{f=E},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),TU=g(({retryDelay:f,retryCount:w,retryCost:$})=>{return{getRetryCount:g(()=>w,"getRetryCount"),getRetryDelay:g(()=>Math.min(M1,f),"getRetryDelay"),getRetryCost:g(()=>$,"getRetryCost")}},"createDefaultRetryToken"),PU=class f{constructor(w){this.maxAttempts=w,this.mode="standard",this.capacity=z1,this.retryBackoffStrategy=W2(),this.maxAttemptsProvider=typeof w==="function"?w:async()=>w}async acquireInitialRetryToken(w){return TU({retryDelay:hf,retryCount:0})}async refreshRetryTokenForRetry(w,$){const E=await this.getMaxAttempts();if(this.shouldRetry(w,$,E)){const U=$.errorType;this.retryBackoffStrategy.setDelayBase(U==="THROTTLING"?HU:hf);const G=this.retryBackoffStrategy.computeNextBackoffDelay(w.getRetryCount()),W=$.retryAfterHint?Math.max($.retryAfterHint.getTime()-Date.now()||0,G):G,R=this.getCapacityCost(U);return this.capacity-=R,TU({retryDelay:W,retryCount:w.getRetryCount()+1,retryCost:R})}throw new Error("No retry token available")}recordSuccess(w){this.capacity=Math.max(z1,this.capacity+(w.getRetryCost()??NU))}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 ${O1}`),O1}}shouldRetry(w,$,E){return w.getRetryCount()+1<E&&this.capacity>=this.getCapacityCost($.errorType)&&this.isRetryableError($.errorType)}getCapacityCost(w){return w==="TRANSIENT"?qU:CU}isRetryableError(w){return w==="THROTTLING"||w==="TRANSIENT"}};g(PU,"StandardRetryStrategy");var Q1=PU,SU=class f{constructor(w,$){this.maxAttemptsProvider=w,this.mode="adaptive";const{rateLimiter:E}=$??{};this.rateLimiter=E??new VU,this.standardRetryStrategy=new Q1(w)}async acquireInitialRetryToken(w){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(w)}async refreshRetryTokenForRetry(w,$){return this.rateLimiter.updateClientSendingRate($),this.standardRetryStrategy.refreshRetryTokenForRetry(w,$)}recordSuccess(w){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(w)}};g(SU,"AdaptiveRetryStrategy");var R2=SU,jU=class f extends Q1{constructor(w,$=hf){super(typeof w==="function"?w:async()=>w);if(typeof $==="number")this.computeNextBackoffDelay=()=>$;else this.computeNextBackoffDelay=$}async refreshRetryTokenForRetry(w,$){const E=await super.refreshRetryTokenForRetry(w,$);return E.getRetryDelay=()=>this.computeNextBackoffDelay(E.getRetryCount()),E}};g(jU,"ConfiguredRetryStrategy");var L2=jU});var DU=M((cU)=>{Object.defineProperty(cU,"__esModule",{value:!0});cU.getAwsChunkedEncodingStream=void 0;var I2=import.meta.require("stream"),F2=(f,w)=>{const{base64Encoder:$,bodyLengthChecker:E,checksumAlgorithmFn:U,checksumLocationName:G,streamHasher:W}=w,R=$!==void 0&&U!==void 0&&G!==void 0&&W!==void 0,L=R?W(U,f):void 0,I=new I2.Readable({read:()=>{}});return f.on("data",(F)=>{const X=E(F)||0;I.push(`${X.toString(16)}\r\n`),I.push(F),I.push("\r\n")}),f.on("end",async()=>{if(I.push("0\r\n"),R){const F=$(await L);I.push(`${G}:${F}\r\n`),I.push("\r\n")}I.push(null)}),I};cU.getAwsChunkedEncodingStream=F2});var aU=M((v9,tU)=>{async function A1(f,w,$=uU){const E=w.headers??{},U=E.Expect||E.expect;let G=-1,W=!1;if(U==="100-continue")await Promise.race([new Promise((R)=>{G=Number(setTimeout(R,Math.max(uU,$)))}),new Promise((R)=>{f.on("continue",()=>{clearTimeout(G),R()}),f.on("error",()=>{W=!0,clearTimeout(G),R()})})]);if(!W)nU(f,w.body)}var nU=function(f,w){if(w instanceof gU.Readable){w.pipe(f);return}if(w){if(Buffer.isBuffer(w)||typeof w==="string"){f.end(w);return}const $=w;if(typeof $==="object"&&$.buffer&&typeof $.byteOffset==="number"&&typeof $.byteLength==="number"){f.end(Buffer.from($.buffer,$.byteOffset,$.byteLength));return}f.end(Buffer.from(w));return}f.end()};async function oU(f){const w=[],$=f.getReader();let E=!1,U=0;while(!E){const{done:R,value:L}=await $.read();if(L)w.push(L),U+=L.length;E=R}const G=new Uint8Array(U);let W=0;for(let R of w)G.set(R,W),W+=R.length;return G}var{create:Z2,defineProperty:cf,getOwnPropertyDescriptor:Y2,getOwnPropertyNames:O2,getPrototypeOf:z2}=Object,M2=Object.prototype.hasOwnProperty,q=(f,w)=>cf(f,"name",{value:w,configurable:!0}),Q2=(f,w)=>{for(var $ in w)cf(f,$,{get:w[$],enumerable:!0})},_U=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of O2(w))if(!M2.call(f,U)&&U!==$)cf(f,U,{get:()=>w[U],enumerable:!(E=Y2(w,U))||E.enumerable})}return f},J2=(f,w,$)=>($=f!=null?Z2(z2(f)):{},_U(w||!f||!f.__esModule?cf($,"default",{value:f,enumerable:!0}):$,f)),T2=(f)=>_U(cf({},"__esModule",{value:!0}),f),yU={};Q2(yU,{DEFAULT_REQUEST_TIMEOUT:()=>H2,NodeHttp2Handler:()=>S2,NodeHttpHandler:()=>C2,streamCollector:()=>b2});tU.exports=T2(yU);var xU=Uf(),dU=X2(),J1=import.meta.require("http"),T1=import.meta.require("https"),A2=["ECONNRESET","EPIPE","ETIMEDOUT"],pU=q((f)=>{const w={};for(let $ of Object.keys(f)){const E=f[$];w[$]=Array.isArray(E)?E.join(","):E}return w},"getTransformedHeaders"),K2=q((f,w,$=0)=>{if(!$)return;const E=setTimeout(()=>{f.destroy(),w(Object.assign(new Error(`Socket timed out without establishing a connection within ${$} ms`),{name:"TimeoutError"}))},$);f.on("socket",(U)=>{if(U.connecting)U.on("connect",()=>{clearTimeout(E)});else clearTimeout(E)})},"setConnectionTimeout"),B2=q((f,{keepAlive:w,keepAliveMsecs:$})=>{if(w!==!0)return;f.on("socket",(E)=>{E.setKeepAlive(w,$||0)})},"setSocketKeepAlive"),V2=q((f,w,$=0)=>{f.setTimeout($,()=>{f.destroy(),w(Object.assign(new Error(`Connection timed out after ${$} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),gU=import.meta.require("stream"),uU=1000;q(A1,"writeRequestBody");q(nU,"writeBody");var H2=0,sU=class f{constructor(w){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise(($,E)=>{if(typeof w==="function")w().then((U)=>{$(this.resolveDefaultConfig(U))}).catch(E);else $(this.resolveDefaultConfig(w))})}static create(w){if(typeof(w==null?void 0:w.handle)==="function")return w;return new f(w)}static checkSocketUsage(w,$,E=console){var U,G,W;const{sockets:R,requests:L,maxSockets:I}=w;if(typeof I!=="number"||I===Infinity)return $;const F=15000;if(Date.now()-F<$)return $;if(R&&L)for(let X in R){const Y=((U=R[X])==null?void 0:U.length)??0,Z=((G=L[X])==null?void 0:G.length)??0;if(Y>=I&&Z>=2*I)return(W=E==null?void 0:E.warn)==null||W.call(E,`@smithy/node-http-handler:WARN - socket usage at capacity=${Y} and ${Z} 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 $}resolveDefaultConfig(w){const{requestTimeout:$,connectionTimeout:E,socketTimeout:U,httpAgent:G,httpsAgent:W}=w||{};return{connectionTimeout:E,requestTimeout:$??U,httpAgent:(()=>{if(G instanceof J1.Agent||typeof(G==null?void 0:G.destroy)==="function")return G;return new J1.Agent({keepAlive:!0,maxSockets:50,...G})})(),httpsAgent:(()=>{if(W instanceof T1.Agent||typeof(W==null?void 0:W.destroy)==="function")return W;return new T1.Agent({keepAlive:!0,maxSockets:50,...W})})(),logger:console}}destroy(){var w,$,E,U;($=(w=this.config)==null?void 0:w.httpAgent)==null||$.destroy(),(U=(E=this.config)==null?void 0:E.httpsAgent)==null||U.destroy()}async handle(w,{abortSignal:$}={}){if(!this.config)this.config=await this.configProvider;let E;return new Promise((U,G)=>{let W=void 0;const R=q(async(J)=>{await W,clearTimeout(E),U(J)},"resolve"),L=q(async(J)=>{await W,clearTimeout(E),G(J)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if($==null?void 0:$.aborted){const J=new Error("Request aborted");J.name="AbortError",L(J);return}const I=w.protocol==="https:",F=I?this.config.httpsAgent:this.config.httpAgent;E=setTimeout(()=>{this.socketWarningTimestamp=f.checkSocketUsage(F,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const X=dU.buildQueryString(w.query||{});let Y=void 0;if(w.username!=null||w.password!=null){const J=w.username??"",K=w.password??"";Y=`${J}:${K}`}let Z=w.path;if(X)Z+=`?${X}`;if(w.fragment)Z+=`#${w.fragment}`;const z={headers:w.headers,host:w.hostname,method:w.method,path:Z,port:w.port,agent:F,auth:Y},T=(I?T1.request:J1.request)(z,(J)=>{const K=new xU.HttpResponse({statusCode:J.statusCode||-1,reason:J.statusMessage,headers:pU(J.headers),body:J});R({response:K})});if(T.on("error",(J)=>{if(A2.includes(J.code))L(Object.assign(J,{name:"TimeoutError"}));else L(J)}),K2(T,L,this.config.connectionTimeout),V2(T,L,this.config.requestTimeout),$){const J=q(()=>{T.destroy();const K=new Error("Request aborted");K.name="AbortError",L(K)},"onAbort");if(typeof $.addEventListener==="function"){const K=$;K.addEventListener("abort",J,{once:!0}),T.once("close",()=>K.removeEventListener("abort",J))}else $.onabort=J}const A=z.agent;if(typeof A==="object"&&"keepAlive"in A)B2(T,{keepAlive:A.keepAlive,keepAliveMsecs:A.keepAliveMsecs});W=A1(T,w,this.config.requestTimeout).catch((J)=>{return clearTimeout(E),G(J)})})}updateHttpClientConfig(w,$){this.config=void 0,this.configProvider=this.configProvider.then((E)=>{return{...E,[w]:$}})}httpHandlerConfigs(){return this.config??{}}};q(sU,"NodeHttpHandler");var C2=sU,vU=import.meta.require("http2"),q2=J2(import.meta.require("http2")),lU=class f{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(($)=>$!==w)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(w){for(let $ of this.sessions)if($===w){if(!$.destroyed)$.destroy()}}};q(lU,"NodeHttp2ConnectionPool");var N2=lU,rU=class f{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,$){const E=this.getUrlString(w),U=this.sessionCache.get(E);if(U){const L=U.poll();if(L&&!this.config.disableConcurrency)return L}const G=q2.default.connect(E);if(this.config.maxConcurrency)G.settings({maxConcurrentStreams:this.config.maxConcurrency},(L)=>{if(L)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+w.destination.toString())});G.unref();const W=q(()=>{G.destroy(),this.deleteSession(E,G)},"destroySessionCb");if(G.on("goaway",W),G.on("error",W),G.on("frameError",W),G.on("close",()=>this.deleteSession(E,G)),$.requestTimeout)G.setTimeout($.requestTimeout,W);const R=this.sessionCache.get(E)||new N2;return R.offerLast(G),this.sessionCache.set(E,R),G}deleteSession(w,$){const E=this.sessionCache.get(w);if(!E)return;if(!E.contains($))return;E.remove($),this.sessionCache.set(w,E)}release(w,$){var E;const U=this.getUrlString(w);(E=this.sessionCache.get(U))==null||E.offerLast($)}destroy(){for(let[w,$]of this.sessionCache){for(let E of $){if(!E.destroyed)E.destroy();$.remove(E)}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(rU,"NodeHttp2ConnectionManager");var P2=rU,mU=class f{constructor(w){this.metadata={handlerProtocol:"h2"},this.connectionManager=new P2({}),this.configProvider=new Promise(($,E)=>{if(typeof w==="function")w().then((U)=>{$(U||{})}).catch(E);else $(w||{})})}static create(w){if(typeof(w==null?void 0:w.handle)==="function")return w;return new f(w)}destroy(){this.connectionManager.destroy()}async handle(w,{abortSignal:$}={}){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:E,disableConcurrentStreams:U}=this.config;return new Promise((G,W)=>{var R;let L=!1,I=void 0;const F=q(async(C)=>{await I,G(C)},"resolve"),X=q(async(C)=>{await I,W(C)},"reject");if($==null?void 0:$.aborted){L=!0;const C=new Error("Request aborted");C.name="AbortError",X(C);return}const{hostname:Y,method:Z,port:z,protocol:Q,query:T}=w;let A="";if(w.username!=null||w.password!=null){const C=w.username??"",x=w.password??"";A=`${C}:${x}@`}const J=`${Q}//${A}${Y}${z?`:${z}`:""}`,K={destination:new URL(J)},j=this.connectionManager.lease(K,{requestTimeout:(R=this.config)==null?void 0:R.sessionTimeout,disableConcurrentStreams:U||!1}),c=q((C)=>{if(U)this.destroySession(j);L=!0,X(C)},"rejectWithDestroy"),qw=dU.buildQueryString(T||{});let l0=w.path;if(qw)l0+=`?${qw}`;if(w.fragment)l0+=`#${w.fragment}`;const u=j.request({...w.headers,[vU.constants.HTTP2_HEADER_PATH]:l0,[vU.constants.HTTP2_HEADER_METHOD]:Z});if(j.ref(),u.on("response",(C)=>{const x=new xU.HttpResponse({statusCode:C[":status"]||-1,headers:pU(C),body:u});if(L=!0,F({response:x}),U)j.close(),this.connectionManager.deleteSession(J,j)}),E)u.setTimeout(E,()=>{u.close();const C=new Error(`Stream timed out because of no activity for ${E} ms`);C.name="TimeoutError",c(C)});if($){const C=q(()=>{u.close();const x=new Error("Request aborted");x.name="AbortError",c(x)},"onAbort");if(typeof $.addEventListener==="function"){const x=$;x.addEventListener("abort",C,{once:!0}),u.once("close",()=>x.removeEventListener("abort",C))}else $.onabort=C}u.on("frameError",(C,x,yL)=>{c(new Error(`Frame type id ${C} in stream id ${yL} has failed with code ${x}.`))}),u.on("error",c),u.on("aborted",()=>{c(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${u.rstCode}.`))}),u.on("close",()=>{if(j.unref(),U)j.destroy();if(!L)c(new Error("Unexpected error: http2 request did not get a response"))}),I=A1(u,w,E)})}updateHttpClientConfig(w,$){this.config=void 0,this.configProvider=this.configProvider.then((E)=>{return{...E,[w]:$}})}httpHandlerConfigs(){return this.config??{}}destroySession(w){if(!w.destroyed)w.destroy()}};q(mU,"NodeHttp2Handler");var S2=mU,iU=class f extends gU.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(w,$,E){this.bufferedBytes.push(w),E()}};q(iU,"Collector");var j2=iU,b2=q((f)=>{if(h2(f))return oU(f);return new Promise((w,$)=>{const E=new j2;f.pipe(E),f.on("error",(U)=>{E.end(),$(U)}),E.on("error",$),E.on("finish",function(){const U=new Uint8Array(Buffer.concat(this.bufferedBytes));w(U)})})},"streamCollector"),h2=q((f)=>typeof ReadableStream==="function"&&f instanceof ReadableStream,"isReadableStreamInstance");q(oU,"collectReadableStream")});var kf=M((eU)=>{Object.defineProperty(eU,"__esModule",{value:!0});eU.isReadableStream=void 0;var c2=(f)=>{var w;return typeof ReadableStream==="function"&&(((w=f===null||f===void 0?void 0:f.constructor)===null||w===void 0?void 0:w.name)===ReadableStream.name||f instanceof ReadableStream)};eU.isReadableStream=c2});var LE=M((WE)=>{Object.defineProperty(WE,"__esModule",{value:!0});WE.sdkStreamMixin=void 0;var D2=k2(),u2=EE(),v2=GE(),_2=Of(),wE=kf(),$E="The stream has already been transformed.",y2=(f)=>{var w,$;if(!UE(f)&&!wE.isReadableStream(f)){const W=(($=(w=f===null||f===void 0?void 0:f.__proto__)===null||w===void 0?void 0:w.constructor)===null||$===void 0?void 0:$.name)||f;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${W}`)}let E=!1;const U=async()=>{if(E)throw new Error($E);return E=!0,await D2.streamCollector(f)},G=(W)=>{if(typeof W.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 W.stream()};return Object.assign(f,{transformToByteArray:U,transformToString:async(W)=>{const R=await U();if(W==="base64")return u2.toBase64(R);else if(W==="hex")return v2.toHex(R);else if(W===void 0||W==="utf8"||W==="utf-8")return _2.toUtf8(R);else if(typeof TextDecoder==="function")return new TextDecoder(W).decode(R);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(E)throw new Error($E);if(E=!0,UE(f))return G(f);else if(wE.isReadableStream(f))return f;else throw new Error(`Cannot transform payload to web stream, got ${f}`)}})};WE.sdkStreamMixin=y2;var UE=(f)=>typeof Blob==="function"&&f instanceof Blob});var ZE=M((FE)=>{Object.defineProperty(FE,"__esModule",{value:!0});FE.sdkStreamMixin=void 0;var d2=aU(),p2=x2(),K1=import.meta.require("stream"),g2=import.meta.require("util"),n2=LE(),IE="The stream has already been transformed.",s2=(f)=>{var w,$;if(!(f instanceof K1.Readable))try{return n2.sdkStreamMixin(f)}catch(G){const W=(($=(w=f===null||f===void 0?void 0:f.__proto__)===null||w===void 0?void 0:w.constructor)===null||$===void 0?void 0:$.name)||f;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${W}`)}let E=!1;const U=async()=>{if(E)throw new Error(IE);return E=!0,await d2.streamCollector(f)};return Object.assign(f,{transformToByteArray:U,transformToString:async(G)=>{const W=await U();if(G===void 0||Buffer.isEncoding(G))return p2.fromArrayBuffer(W.buffer,W.byteOffset,W.byteLength).toString(G);else return new g2.TextDecoder(G).decode(W)},transformToWebStream:()=>{if(E)throw new Error(IE);if(f.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof K1.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 E=!0,K1.Readable.toWeb(f)}})};FE.sdkStreamMixin=s2});var zE=M((YE)=>{async function l2(f){if(typeof f.stream==="function")f=f.stream();return f.tee()}Object.defineProperty(YE,"__esModule",{value:!0});YE.splitStream=void 0;YE.splitStream=l2});var TE=M((QE)=>{async function i2(f){if(m2.isReadableStream(f))return r2.splitStream(f);const w=new ME.PassThrough,$=new ME.PassThrough;return f.pipe(w),f.pipe($),[w,$]}Object.defineProperty(QE,"__esModule",{value:!0});QE.splitStream=void 0;var ME=import.meta.require("stream"),r2=zE(),m2=kf();QE.splitStream=i2});var BE=M((AE)=>{async function o2(f,w){var $;let E=0;const U=[],G=f.getReader();let W=!1;while(!W){const{done:I,value:F}=await G.read();if(F)U.push(F),E+=($=F===null||F===void 0?void 0:F.byteLength)!==null&&$!==void 0?$:0;if(E>=w)break;W=I}G.releaseLock();const R=new Uint8Array(Math.min(w,E));let L=0;for(let I of U){if(I.byteLength>R.byteLength-L){R.set(I.subarray(0,R.byteLength-L),L);break}else R.set(I,L);L+=I.length}return R}Object.defineProperty(AE,"__esModule",{value:!0});AE.headStream=void 0;AE.headStream=o2});var qE=M((HE)=>{Object.defineProperty(HE,"__esModule",{value:!0});HE.headStream=void 0;var t2=import.meta.require("stream"),a2=BE(),e2=kf(),f4=(f,w)=>{if(e2.isReadableStream(f))return a2.headStream(f,w);return new Promise(($,E)=>{const U=new VE;U.limit=w,f.pipe(U),f.on("error",(G)=>{U.end(),E(G)}),U.on("error",E),U.on("finish",function(){const G=new Uint8Array(Buffer.concat(this.buffers));$(G)})})};HE.headStream=f4;class VE extends t2.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=Infinity,this.bytesBuffered=0}_write(f,w,$){var E;if(this.buffers.push(f),this.bytesBuffered+=(E=f.byteLength)!==null&&E!==void 0?E:0,this.bytesBuffered>=this.limit){const U=this.bytesBuffered-this.limit,G=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=G.subarray(0,G.byteLength-U),this.emit("finish")}$()}}});var hE=M((s9,Gf)=>{var SE=function(f,w="utf-8"){if(w==="base64")return NE.toBase64(f);return PE.toUtf8(f)},jE=function(f,w){if(w==="base64")return V1.mutate(NE.fromBase64(f));return V1.mutate(PE.fromUtf8(f))},I0=Object.defineProperty,w4=Object.getOwnPropertyDescriptor,$4=Object.getOwnPropertyNames,U4=Object.prototype.hasOwnProperty,H1=(f,w)=>I0(f,"name",{value:w,configurable:!0}),E4=(f,w)=>{for(var $ in w)I0(f,$,{get:w[$],enumerable:!0})},B1=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of $4(w))if(!U4.call(f,U)&&U!==$)I0(f,U,{get:()=>w[U],enumerable:!(E=w4(w,U))||E.enumerable})}return f},Df=(f,w,$)=>(B1(f,w,"default"),$&&B1($,w,"default")),G4=(f)=>B1(I0({},"__esModule",{value:!0}),f),Ef={};E4(Ef,{Uint8ArrayBlobAdapter:()=>V1});Gf.exports=G4(Ef);var NE=EE(),PE=Of();H1(SE,"transformToString");H1(jE,"transformFromString");var bE=class f extends Uint8Array{static fromString(w,$="utf-8"){switch(typeof w){case"string":return jE(w,$);default:throw new Error(`Unsupported conversion from ${typeof w} to Uint8ArrayBlobAdapter.`)}}static mutate(w){return Object.setPrototypeOf(w,f.prototype),w}transformToString(w="utf-8"){return SE(this,w)}};H1(bE,"Uint8ArrayBlobAdapter");var V1=bE;Df(Ef,DU(),Gf.exports);Df(Ef,ZE(),Gf.exports);Df(Ef,TE(),Gf.exports);Df(Ef,qE(),Gf.exports);Df(Ef,kf(),Gf.exports)});var Jf=M((l9,wG)=>{var lE=function(f){const w=f.getUTCFullYear(),$=f.getUTCMonth(),E=f.getUTCDay(),U=f.getUTCDate(),G=f.getUTCHours(),W=f.getUTCMinutes(),R=f.getUTCSeconds(),L=U<10?`0${U}`:`${U}`,I=G<10?`0${G}`:`${G}`,F=W<10?`0${W}`:`${W}`,X=R<10?`0${R}`:`${R}`;return`${k4[E]}, ${L} ${D1[$]} ${w} ${I}:${F}:${X} GMT`},Z0=function(f){return encodeURIComponent(f).replace(/[!'()*]/g,function(w){return"%"+w.charCodeAt(0).toString(16).toUpperCase()})},u1=function(f,w,$){let E,U,G;if(typeof w==="undefined"&&typeof $==="undefined")E={},G=f;else if(E=f,typeof w==="function")return U=w,G=$,YX(E,U,G);else G=w;for(let W of Object.keys(G)){if(!Array.isArray(G[W])){E[W]=G[W];continue}eE(E,null,G,W)}return E},fG=function(f,w,$){if($<=0||!Number.isInteger($))throw new Error("Invalid number of delimiters ("+$+") for splitEvery.");const E=f.split(w);if($===1)return E;const U=[];let G="";for(let W=0;W<E.length;W++){if(G==="")G=E[W];else G+=w+E[W];if((W+1)%$===0)U.push(G),G=""}if(G!=="")U.push(G);return U},Y0=Object.defineProperty,R4=Object.getOwnPropertyDescriptor,L4=Object.getOwnPropertyNames,I4=Object.prototype.hasOwnProperty,O=(f,w)=>Y0(f,"name",{value:w,configurable:!0}),F4=(f,w)=>{for(var $ in w)Y0(f,$,{get:w[$],enumerable:!0})},X4=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of L4(w))if(!I4.call(f,U)&&U!==$)Y0(f,U,{get:()=>w[U],enumerable:!(E=R4(w,U))||E.enumerable})}return f},Z4=(f)=>X4(Y0({},"__esModule",{value:!0}),f),kE={};F4(kE,{Client:()=>O4,Command:()=>yE,LazyJsonString:()=>FX,NoOpLogger:()=>Y4,SENSITIVE_STRING:()=>Q4,ServiceException:()=>a4,StringWrapper:()=>xf,_json:()=>b1,collectBody:()=>z4,convertMap:()=>XX,createAggregatedClient:()=>J4,dateToUtcString:()=>lE,decorateServiceException:()=>mE,emitWarningIfUnsupportedVersion:()=>$X,expectBoolean:()=>A4,expectByte:()=>j1,expectFloat32:()=>F0,expectInt:()=>B4,expectInt32:()=>P1,expectLong:()=>_f,expectNonNull:()=>H4,expectNumber:()=>vf,expectObject:()=>dE,expectShort:()=>S1,expectString:()=>C4,expectUnion:()=>q4,extendedEncodeURIComponent:()=>Z0,getArrayIfSingleItem:()=>IX,getDefaultClientConfiguration:()=>RX,getDefaultExtensionConfiguration:()=>oE,getValueFromTextNode:()=>tE,handleFloat:()=>S4,limitedParseDouble:()=>k1,limitedParseFloat:()=>j4,limitedParseFloat32:()=>b4,loadConfigsForDefaultMode:()=>wX,logger:()=>yf,map:()=>u1,parseBoolean:()=>T4,parseEpochTimestamp:()=>g4,parseRfc3339DateTime:()=>u4,parseRfc3339DateTimeWithOffset:()=>_4,parseRfc7231DateTime:()=>p4,resolveDefaultRuntimeConfig:()=>LX,resolvedPath:()=>MX,serializeDateTime:()=>JX,serializeFloat:()=>QX,splitEvery:()=>fG,strictParseByte:()=>sE,strictParseDouble:()=>c1,strictParseFloat:()=>N4,strictParseFloat32:()=>pE,strictParseInt:()=>h4,strictParseInt32:()=>c4,strictParseLong:()=>nE,strictParseShort:()=>zf,take:()=>ZX,throwDefaultError:()=>iE,withBaseException:()=>e4});wG.exports=Z4(kE);var DE=class f{trace(){}debug(){}info(){}warn(){}error(){}};O(DE,"NoOpLogger");var Y4=DE,uE=W4(),vE=class f{constructor(w){this.middlewareStack=uE.constructStack(),this.config=w}send(w,$,E){const U=typeof $!=="function"?$:void 0,G=typeof $==="function"?$:E,W=w.resolveMiddleware(this.middlewareStack,this.config,U);if(G)W(w).then((R)=>G(null,R.output),(R)=>G(R)).catch(()=>{});else return W(w).then((R)=>R.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}};O(vE,"Client");var O4=vE,C1=hE(),z4=O(async(f=new Uint8Array,w)=>{if(f instanceof Uint8Array)return C1.Uint8ArrayBlobAdapter.mutate(f);if(!f)return C1.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const $=w.streamCollector(f);return C1.Uint8ArrayBlobAdapter.mutate(await $)},"collectBody"),N1=qf(),_E=class f{constructor(){this.middlewareStack=uE.constructStack()}static classBuilder(){return new M4}resolveMiddlewareWithContext(w,$,E,{middlewareFn:U,clientName:G,commandName:W,inputFilterSensitiveLog:R,outputFilterSensitiveLog:L,smithyContext:I,additionalContext:F,CommandCtor:X}){for(let T of U.bind(this)(X,w,$,E))this.middlewareStack.use(T);const Y=w.concat(this.middlewareStack),{logger:Z}=$,z={logger:Z,clientName:G,commandName:W,inputFilterSensitiveLog:R,outputFilterSensitiveLog:L,[N1.SMITHY_CONTEXT_KEY]:{commandInstance:this,...I},...F},{requestHandler:Q}=$;return Y.resolve((T)=>Q.handle(T.request,E||{}),z)}};O(_E,"Command");var yE=_E,xE=class f{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,$,E={}){return this._smithyContext={service:w,operation:$,...E},this}c(w={}){return this._additionalContext=w,this}n(w,$){return this._clientName=w,this._commandName=$,this}f(w=(E)=>E,$=(E)=>E){return this._inputFilterSensitiveLog=w,this._outputFilterSensitiveLog=$,this}ser(w){return this._serializer=w,this}de(w){return this._deserializer=w,this}build(){var w;const $=this;let E;return E=(w=class extends yE{constructor(...[U]){super();this.serialize=$._serializer,this.deserialize=$._deserializer,this.input=U??{},$._init(this)}static getEndpointParameterInstructions(){return $._ep}resolveMiddleware(U,G,W){return this.resolveMiddlewareWithContext(U,G,W,{CommandCtor:E,middlewareFn:$._middlewareFn,clientName:$._clientName,commandName:$._commandName,inputFilterSensitiveLog:$._inputFilterSensitiveLog,outputFilterSensitiveLog:$._outputFilterSensitiveLog,smithyContext:$._smithyContext,additionalContext:$._additionalContext})}},O(w,"CommandRef"),w)}};O(xE,"ClassBuilder");var M4=xE,Q4="***SensitiveInformation***",J4=O((f,w)=>{for(let $ of Object.keys(f)){const E=f[$],U=O(async function(W,R,L){const I=new E(W);if(typeof R==="function")this.send(I,R);else if(typeof L==="function"){if(typeof R!=="object")throw new Error(`Expected http options but got ${typeof R}`);this.send(I,R||{},L)}else return this.send(I,R)},"methodImpl"),G=($[0].toLowerCase()+$.slice(1)).replace(/Command$/,"");w.prototype[G]=U}},"createAggregatedClient"),T4=O((f)=>{switch(f){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${f}"`)}},"parseBoolean"),A4=O((f)=>{if(f===null||f===void 0)return;if(typeof f==="number"){if(f===0||f===1)yf.warn(X0(`Expected boolean, got ${typeof f}: ${f}`));if(f===0)return!1;if(f===1)return!0}if(typeof f==="string"){const w=f.toLowerCase();if(w==="false"||w==="true")yf.warn(X0(`Expected boolean, got ${typeof f}: ${f}`));if(w==="false")return!1;if(w==="true")return!0}if(typeof f==="boolean")return f;throw new TypeError(`Expected boolean, got ${typeof f}: ${f}`)},"expectBoolean"),vf=O((f)=>{if(f===null||f===void 0)return;if(typeof f==="string"){const w=parseFloat(f);if(!Number.isNaN(w)){if(String(w)!==String(f))yf.warn(X0(`Expected number but observed string: ${f}`));return w}}if(typeof f==="number")return f;throw new TypeError(`Expected number, got ${typeof f}: ${f}`)},"expectNumber"),K4=Math.ceil(340282346638528860000000000000000000000),F0=O((f)=>{const w=vf(f);if(w!==void 0&&!Number.isNaN(w)&&w!==Infinity&&w!==(-Infinity)){if(Math.abs(w)>K4)throw new TypeError(`Expected 32-bit float, got ${f}`)}return w},"expectFloat32"),_f=O((f)=>{if(f===null||f===void 0)return;if(Number.isInteger(f)&&!Number.isNaN(f))return f;throw new TypeError(`Expected integer, got ${typeof f}: ${f}`)},"expectLong"),B4=_f,P1=O((f)=>h1(f,32),"expectInt32"),S1=O((f)=>h1(f,16),"expectShort"),j1=O((f)=>h1(f,8),"expectByte"),h1=O((f,w)=>{const $=_f(f);if($!==void 0&&V4($,w)!==$)throw new TypeError(`Expected ${w}-bit integer, got ${f}`);return $},"expectSizedInt"),V4=O((f,w)=>{switch(w){case 32:return Int32Array.of(f)[0];case 16:return Int16Array.of(f)[0];case 8:return Int8Array.of(f)[0]}},"castInt"),H4=O((f,w)=>{if(f===null||f===void 0){if(w)throw new TypeError(`Expected a non-null value for ${w}`);throw new TypeError("Expected a non-null value")}return f},"expectNonNull"),dE=O((f)=>{if(f===null||f===void 0)return;if(typeof f==="object"&&!Array.isArray(f))return f;const w=Array.isArray(f)?"array":typeof f;throw new TypeError(`Expected object, got ${w}: ${f}`)},"expectObject"),C4=O((f)=>{if(f===null||f===void 0)return;if(typeof f==="string")return f;if(["boolean","number","bigint"].includes(typeof f))return yf.warn(X0(`Expected string, got ${typeof f}: ${f}`)),String(f);throw new TypeError(`Expected string, got ${typeof f}: ${f}`)},"expectString"),q4=O((f)=>{if(f===null||f===void 0)return;const w=dE(f),$=Object.entries(w).filter(([,E])=>E!=null).map(([E])=>E);if($.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if($.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${$} were not null.`);return w},"expectUnion"),c1=O((f)=>{if(typeof f=="string")return vf(Qf(f));return vf(f)},"strictParseDouble"),N4=c1,pE=O((f)=>{if(typeof f=="string")return F0(Qf(f));return F0(f)},"strictParseFloat32"),P4=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Qf=O((f)=>{const w=f.match(P4);if(w===null||w[0].length!==f.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(f)},"parseNumber"),k1=O((f)=>{if(typeof f=="string")return gE(f);return vf(f)},"limitedParseDouble"),S4=k1,j4=k1,b4=O((f)=>{if(typeof f=="string")return gE(f);return F0(f)},"limitedParseFloat32"),gE=O((f)=>{switch(f){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return (-Infinity);default:throw new Error(`Unable to parse float value: ${f}`)}},"parseFloatString"),nE=O((f)=>{if(typeof f==="string")return _f(Qf(f));return _f(f)},"strictParseLong"),h4=nE,c4=O((f)=>{if(typeof f==="string")return P1(Qf(f));return P1(f)},"strictParseInt32"),zf=O((f)=>{if(typeof f==="string")return S1(Qf(f));return S1(f)},"strictParseShort"),sE=O((f)=>{if(typeof f==="string")return j1(Qf(f));return j1(f)},"strictParseByte"),X0=O((f)=>{return String(new TypeError(f).stack||f).split("\n").slice(0,5).filter((w)=>!w.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),yf={warn:console.warn},k4=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],D1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];O(lE,"dateToUtcString");var D4=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),u4=O((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const w=D4.exec(f);if(!w)throw new TypeError("Invalid RFC-3339 date-time value");const[$,E,U,G,W,R,L,I]=w,F=zf(Mf(E)),X=l(U,"month",1,12),Y=l(G,"day",1,31);return uf(F,X,Y,{hours:W,minutes:R,seconds:L,fractionalMilliseconds:I})},"parseRfc3339DateTime"),v4=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),_4=O((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const w=v4.exec(f);if(!w)throw new TypeError("Invalid RFC-3339 date-time value");const[$,E,U,G,W,R,L,I,F]=w,X=zf(Mf(E)),Y=l(U,"month",1,12),Z=l(G,"day",1,31),z=uf(X,Y,Z,{hours:W,minutes:R,seconds:L,fractionalMilliseconds:I});if(F.toUpperCase()!="Z")z.setTime(z.getTime()-t4(F));return z},"parseRfc3339DateTimeWithOffset"),y4=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$/),x4=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$/),d4=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})$/),p4=O((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let w=y4.exec(f);if(w){const[$,E,U,G,W,R,L,I]=w;return uf(zf(Mf(G)),q1(U),l(E,"day",1,31),{hours:W,minutes:R,seconds:L,fractionalMilliseconds:I})}if(w=x4.exec(f),w){const[$,E,U,G,W,R,L,I]=w;return l4(uf(n4(G),q1(U),l(E,"day",1,31),{hours:W,minutes:R,seconds:L,fractionalMilliseconds:I}))}if(w=d4.exec(f),w){const[$,E,U,G,W,R,L,I]=w;return uf(zf(Mf(I)),q1(E),l(U.trimLeft(),"day",1,31),{hours:G,minutes:W,seconds:R,fractionalMilliseconds:L})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),g4=O((f)=>{if(f===null||f===void 0)return;let w;if(typeof f==="number")w=f;else if(typeof f==="string")w=c1(f);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"),uf=O((f,w,$,E)=>{const U=w-1;return m4(f,U,$),new Date(Date.UTC(f,U,$,l(E.hours,"hour",0,23),l(E.minutes,"minute",0,59),l(E.seconds,"seconds",0,60),o4(E.fractionalMilliseconds)))},"buildDate"),n4=O((f)=>{const w=(new Date()).getUTCFullYear(),$=Math.floor(w/100)*100+zf(Mf(f));if($<w)return $+100;return $},"parseTwoDigitYear"),s4=1576800000000,l4=O((f)=>{if(f.getTime()-(new Date()).getTime()>s4)return new Date(Date.UTC(f.getUTCFullYear()-100,f.getUTCMonth(),f.getUTCDate(),f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()));return f},"adjustRfc850Year"),q1=O((f)=>{const w=D1.indexOf(f);if(w<0)throw new TypeError(`Invalid month: ${f}`);return w+1},"parseMonthByShortName"),r4=[31,28,31,30,31,30,31,31,30,31,30,31],m4=O((f,w,$)=>{let E=r4[w];if(w===1&&i4(f))E=29;if($>E)throw new TypeError(`Invalid day for ${D1[w]} in ${f}: ${$}`)},"validateDayOfMonth"),i4=O((f)=>{return f%4===0&&(f%100!==0||f%400===0)},"isLeapYear"),l=O((f,w,$,E)=>{const U=sE(Mf(f));if(U<$||U>E)throw new TypeError(`${w} must be between ${$} and ${E}, inclusive`);return U},"parseDateValue"),o4=O((f)=>{if(f===null||f===void 0)return 0;return pE("0."+f)*1000},"parseMilliseconds"),t4=O((f)=>{const w=f[0];let $=1;if(w=="+")$=1;else if(w=="-")$=-1;else throw new TypeError(`Offset direction, ${w}, must be "+" or "-"`);const E=Number(f.substring(1,3)),U=Number(f.substring(4,6));return $*(E*60+U)*60*1000},"parseOffsetToMilliseconds"),Mf=O((f)=>{let w=0;while(w<f.length-1&&f.charAt(w)==="0")w++;if(w===0)return f;return f.slice(w)},"stripLeadingZeroes"),rE=class f extends Error{constructor(w){super(w.message);Object.setPrototypeOf(this,f.prototype),this.name=w.name,this.$fault=w.$fault,this.$metadata=w.$metadata}};O(rE,"ServiceException");var a4=rE,mE=O((f,w={})=>{Object.entries(w).filter(([,E])=>E!==void 0).forEach(([E,U])=>{if(f[E]==null||f[E]==="")f[E]=U});const $=f.message||f.Message||"UnknownError";return f.message=$,delete f.Message,f},"decorateServiceException"),iE=O(({output:f,parsedBody:w,exceptionCtor:$,errorCode:E})=>{const U=fX(f),G=U.httpStatusCode?U.httpStatusCode+"":void 0,W=new $({name:(w==null?void 0:w.code)||(w==null?void 0:w.Code)||E||G||"UnknownError",$fault:"client",$metadata:U});throw mE(W,w)},"throwDefaultError"),e4=O((f)=>{return({output:w,parsedBody:$,errorCode:E})=>{iE({output:w,parsedBody:$,exceptionCtor:f,errorCode:E})}},"withBaseException"),fX=O((f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]}),"deserializeMetadata"),wX=O((f)=>{switch(f){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"),cE=!1,$X=O((f)=>{if(f&&!cE&&parseInt(f.substring(1,f.indexOf(".")))<16)cE=!0},"emitWarningIfUnsupportedVersion"),UX=O((f)=>{const w=[];for(let $ in N1.AlgorithmId){const E=N1.AlgorithmId[$];if(f[E]===void 0)continue;w.push({algorithmId:()=>E,checksumConstructor:()=>f[E]})}return{_checksumAlgorithms:w,addChecksumAlgorithm($){this._checksumAlgorithms.push($)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),EX=O((f)=>{const w={};return f.checksumAlgorithms().forEach(($)=>{w[$.algorithmId()]=$.checksumConstructor()}),w},"resolveChecksumRuntimeConfig"),GX=O((f)=>{let w=f.retryStrategy;return{setRetryStrategy($){w=$},retryStrategy(){return w}}},"getRetryConfiguration"),WX=O((f)=>{const w={};return w.retryStrategy=f.retryStrategy(),w},"resolveRetryRuntimeConfig"),oE=O((f)=>{return{...UX(f),...GX(f)}},"getDefaultExtensionConfiguration"),RX=oE,LX=O((f)=>{return{...EX(f),...WX(f)}},"resolveDefaultRuntimeConfig");O(Z0,"extendedEncodeURIComponent");var IX=O((f)=>Array.isArray(f)?f:[f],"getArrayIfSingleItem"),tE=O((f)=>{for(let $ in f)if(f.hasOwnProperty($)&&f[$]["#text"]!==void 0)f[$]=f[$]["#text"];else if(typeof f[$]==="object"&&f[$]!==null)f[$]=tE(f[$]);return f},"getValueFromTextNode"),xf=O(function(){const f=Object.getPrototypeOf(this).constructor,$=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf($,f.prototype),$},"StringWrapper");xf.prototype=Object.create(String.prototype,{constructor:{value:xf,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(xf,String);var aE=class f extends xf{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(w){if(w instanceof f)return w;else if(w instanceof String||typeof w==="string")return new f(w);return new f(JSON.stringify(w))}};O(aE,"LazyJsonString");var FX=aE;O(u1,"map");var XX=O((f)=>{const w={};for(let[$,E]of Object.entries(f||{}))w[$]=[,E];return w},"convertMap"),ZX=O((f,w)=>{const $={};for(let E in w)eE($,f,w,E);return $},"take"),YX=O((f,w,$)=>{return u1(f,Object.entries($).reduce((E,[U,G])=>{if(Array.isArray(G))E[U]=G;else if(typeof G==="function")E[U]=[w,G()];else E[U]=[w,G];return E},{}))},"mapWithFilter"),eE=O((f,w,$,E)=>{if(w!==null){let W=$[E];if(typeof W==="function")W=[,W];const[R=OX,L=zX,I=E]=W;if(typeof R==="function"&&R(w[I])||typeof R!=="function"&&!!R)f[E]=L(w[I]);return}let[U,G]=$[E];if(typeof G==="function"){let W;const R=U===void 0&&(W=G())!=null,L=typeof U==="function"&&!!U(void 0)||typeof U!=="function"&&!!U;if(R)f[E]=W;else if(L)f[E]=G()}else{const W=U===void 0&&G!=null,R=typeof U==="function"&&!!U(G)||typeof U!=="function"&&!!U;if(W||R)f[E]=G}},"applyInstruction"),OX=O((f)=>f!=null,"nonNullish"),zX=O((f)=>f,"pass"),MX=O((f,w,$,E,U,G)=>{if(w!=null&&w[$]!==void 0){const W=E();if(W.length<=0)throw new Error("Empty value provided for input HTTP label: "+$+".");f=f.replace(U,G?W.split("/").map((R)=>Z0(R)).join("/"):Z0(W))}else throw new Error("No value provided for input HTTP label: "+$+".");return f},"resolvedPath"),QX=O((f)=>{if(f!==f)return"NaN";switch(f){case Infinity:return"Infinity";case (-Infinity):return"-Infinity";default:return f}},"serializeFloat"),JX=O((f)=>f.toISOString().replace(".000Z","Z"),"serializeDateTime"),b1=O((f)=>{if(f==null)return{};if(Array.isArray(f))return f.filter((w)=>w!=null).map(b1);if(typeof f==="object"){const w={};for(let $ of Object.keys(f)){if(f[$]==null)continue;w[$]=b1(f[$])}return w}return f},"_json");O(fG,"splitEvery")});var EG=M(($G)=>{Object.defineProperty($G,"__esModule",{value:!0});$G.isStreamingPayload=void 0;var TX=import.meta.require("stream"),AX=(f)=>(f===null||f===void 0?void 0:f.body)instanceof TX.Readable||typeof ReadableStream!=="undefined"&&(f===null||f===void 0?void 0:f.body)instanceof ReadableStream;$G.isStreamingPayload=AX});var BG=M((i9,KG)=>{var{defineProperty:O0,getOwnPropertyDescriptor:KX,getOwnPropertyNames:BX}=Object,VX=Object.prototype.hasOwnProperty,P=(f,w)=>O0(f,"name",{value:w,configurable:!0}),HX=(f,w)=>{for(var $ in w)O0(f,$,{get:w[$],enumerable:!0})},CX=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of BX(w))if(!VX.call(f,U)&&U!==$)O0(f,U,{get:()=>w[U],enumerable:!(E=KX(w,U))||E.enumerable})}return f},qX=(f)=>CX(O0({},"__esModule",{value:!0}),f),WG={};HX(WG,{AdaptiveRetryStrategy:()=>SX,CONFIG_MAX_ATTEMPTS:()=>_1,CONFIG_RETRY_MODE:()=>zG,ENV_MAX_ATTEMPTS:()=>v1,ENV_RETRY_MODE:()=>OG,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>jX,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>hX,StandardRetryStrategy:()=>ZG,defaultDelayDecider:()=>LG,defaultRetryDecider:()=>IG,getOmitRetryHeadersPlugin:()=>cX,getRetryAfterHint:()=>AG,getRetryPlugin:()=>yX,omitRetryHeadersMiddleware:()=>MG,omitRetryHeadersMiddlewareOptions:()=>QG,resolveRetryConfig:()=>bX,retryMiddleware:()=>JG,retryMiddlewareOptions:()=>TG});KG.exports=qX(WG);var Tf=Uf(),RG=Z1(),H=hU(),NX=P((f,w)=>{const $=f,E=(w==null?void 0:w.noRetryIncrement)??H.NO_RETRY_INCREMENT,U=(w==null?void 0:w.retryCost)??H.RETRY_COST,G=(w==null?void 0:w.timeoutRetryCost)??H.TIMEOUT_RETRY_COST;let W=f;const R=P((X)=>X.name==="TimeoutError"?G:U,"getCapacityAmount"),L=P((X)=>R(X)<=W,"hasRetryTokens");return Object.freeze({hasRetryTokens:L,retrieveRetryTokens:P((X)=>{if(!L(X))throw new Error("No retry token available");const Y=R(X);return W-=Y,Y},"retrieveRetryTokens"),releaseRetryTokens:P((X)=>{W+=X??E,W=Math.min(W,$)},"releaseRetryTokens")})},"getDefaultRetryQuota"),LG=P((f,w)=>Math.floor(Math.min(H.MAXIMUM_RETRY_DELAY,Math.random()*2**w*f)),"defaultDelayDecider"),t=Y1(),IG=P((f)=>{if(!f)return!1;return t.isRetryableByTrait(f)||t.isClockSkewError(f)||t.isThrottlingError(f)||t.isTransientError(f)},"defaultRetryDecider"),FG=P((f)=>{if(f instanceof Error)return f;if(f instanceof Object)return Object.assign(new Error,f);if(typeof f==="string")return new Error(f);return new Error(`AWS SDK error wrapper for ${f}`)},"asSdkError"),XG=class f{constructor(w,$){this.maxAttemptsProvider=w,this.mode=H.RETRY_MODES.STANDARD,this.retryDecider=($==null?void 0:$.retryDecider)??IG,this.delayDecider=($==null?void 0:$.delayDecider)??LG,this.retryQuota=($==null?void 0:$.retryQuota)??NX(H.INITIAL_RETRY_TOKENS)}shouldRetry(w,$,E){return $<E&&this.retryDecider(w)&&this.retryQuota.hasRetryTokens(w)}async getMaxAttempts(){let w;try{w=await this.maxAttemptsProvider()}catch($){w=H.DEFAULT_MAX_ATTEMPTS}return w}async retry(w,$,E){let U,G=0,W=0;const R=await this.getMaxAttempts(),{request:L}=$;if(Tf.HttpRequest.isInstance(L))L.headers[H.INVOCATION_ID_HEADER]=RG.v4();while(!0)try{if(Tf.HttpRequest.isInstance(L))L.headers[H.REQUEST_HEADER]=`attempt=${G+1}; max=${R}`;if(E==null?void 0:E.beforeRequest)await E.beforeRequest();const{response:I,output:F}=await w($);if(E==null?void 0:E.afterRequest)E.afterRequest(I);return this.retryQuota.releaseRetryTokens(U),F.$metadata.attempts=G+1,F.$metadata.totalRetryDelay=W,{response:I,output:F}}catch(I){const F=FG(I);if(G++,this.shouldRetry(F,G,R)){U=this.retryQuota.retrieveRetryTokens(F);const X=this.delayDecider(t.isThrottlingError(F)?H.THROTTLING_RETRY_DELAY_BASE:H.DEFAULT_RETRY_DELAY_BASE,G),Y=PX(F.$response),Z=Math.max(Y||0,X);W+=Z,await new Promise((z)=>setTimeout(z,Z));continue}if(!F.$metadata)F.$metadata={};throw F.$metadata.attempts=G,F.$metadata.totalRetryDelay=W,F}}};P(XG,"StandardRetryStrategy");var ZG=XG,PX=P((f)=>{if(!Tf.HttpResponse.isInstance(f))return;const w=Object.keys(f.headers).find((G)=>G.toLowerCase()==="retry-after");if(!w)return;const $=f.headers[w],E=Number($);if(!Number.isNaN(E))return E*1000;return new Date($).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),YG=class f extends ZG{constructor(w,$){const{rateLimiter:E,...U}=$??{};super(w,U);this.rateLimiter=E??new H.DefaultRateLimiter,this.mode=H.RETRY_MODES.ADAPTIVE}async retry(w,$){return super.retry(w,$,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(E)=>{this.rateLimiter.updateClientSendingRate(E)}})}};P(YG,"AdaptiveRetryStrategy");var SX=YG,GG=s(),v1="AWS_MAX_ATTEMPTS",_1="max_attempts",jX={environmentVariableSelector:(f)=>{const w=f[v1];if(!w)return;const $=parseInt(w);if(Number.isNaN($))throw new Error(`Environment variable ${v1} mast be a number, got "${w}"`);return $},configFileSelector:(f)=>{const w=f[_1];if(!w)return;const $=parseInt(w);if(Number.isNaN($))throw new Error(`Shared config file entry ${_1} mast be a number, got "${w}"`);return $},default:H.DEFAULT_MAX_ATTEMPTS},bX=P((f)=>{const{retryStrategy:w}=f,$=GG.normalizeProvider(f.maxAttempts??H.DEFAULT_MAX_ATTEMPTS);return{...f,maxAttempts:$,retryStrategy:async()=>{if(w)return w;if(await GG.normalizeProvider(f.retryMode)()===H.RETRY_MODES.ADAPTIVE)return new H.AdaptiveRetryStrategy($);return new H.StandardRetryStrategy($)}}},"resolveRetryConfig"),OG="AWS_RETRY_MODE",zG="retry_mode",hX={environmentVariableSelector:(f)=>f[OG],configFileSelector:(f)=>f[zG],default:H.DEFAULT_RETRY_MODE},MG=P(()=>(f)=>async(w)=>{const{request:$}=w;if(Tf.HttpRequest.isInstance($))delete $.headers[H.INVOCATION_ID_HEADER],delete $.headers[H.REQUEST_HEADER];return f(w)},"omitRetryHeadersMiddleware"),QG={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},cX=P((f)=>({applyToStack:(w)=>{w.addRelativeTo(MG(),QG)}}),"getOmitRetryHeadersPlugin"),kX=Jf(),DX=EG(),JG=P((f)=>(w,$)=>async(E)=>{var U;let G=await f.retryStrategy();const W=await f.maxAttempts();if(uX(G)){G=G;let R=await G.acquireInitialRetryToken($.partition_id),L=new Error,I=0,F=0;const{request:X}=E,Y=Tf.HttpRequest.isInstance(X);if(Y)X.headers[H.INVOCATION_ID_HEADER]=RG.v4();while(!0)try{if(Y)X.headers[H.REQUEST_HEADER]=`attempt=${I+1}; max=${W}`;const{response:Z,output:z}=await w(E);return G.recordSuccess(R),z.$metadata.attempts=I+1,z.$metadata.totalRetryDelay=F,{response:Z,output:z}}catch(Z){const z=vX(Z);if(L=FG(Z),Y&&DX.isStreamingPayload(X))throw(U=$.logger instanceof kX.NoOpLogger?console:$.logger)==null||U.warn("An error was encountered in a non-retryable streaming request."),L;try{R=await G.refreshRetryTokenForRetry(R,z)}catch(T){if(!L.$metadata)L.$metadata={};throw L.$metadata.attempts=I+1,L.$metadata.totalRetryDelay=F,L}I=R.getRetryCount();const Q=R.getRetryDelay();F+=Q,await new Promise((T)=>setTimeout(T,Q))}}else{if(G=G,G==null?void 0:G.mode)$.userAgent=[...$.userAgent||[],["cfg/retry-mode",G.mode]];return G.retry(w,E)}},"retryMiddleware"),uX=P((f)=>typeof f.acquireInitialRetryToken!=="undefined"&&typeof f.refreshRetryTokenForRetry!=="undefined"&&typeof f.recordSuccess!=="undefined","isRetryStrategyV2"),vX=P((f)=>{const w={error:f,errorType:_X(f)},$=AG(f.$response);if($)w.retryAfterHint=$;return w},"getRetryErrorInfo"),_X=P((f)=>{if(t.isThrottlingError(f))return"THROTTLING";if(t.isTransientError(f))return"TRANSIENT";if(t.isServerError(f))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),TG={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},yX=P((f)=>({applyToStack:(w)=>{w.add(JG(f),TG)}}),"getRetryPlugin"),AG=P((f)=>{if(!Tf.HttpResponse.isInstance(f))return;const w=Object.keys(f.headers).find((G)=>G.toLowerCase()==="retry-after");if(!w)return;const $=f.headers[w],E=Number($);if(!Number.isNaN(E))return new Date(E*1000);return new Date($)},"getRetryAfterHint")});var x1=M((o9,dG)=>{var CG=function(f){const w=new Map;for(let $ of f)w.set($.schemeId,$);return w},vG=function(f,w){return new yG(f,w)},xG=function(f,w,$,E,U){return V(async function*G(W,R,...L){let I=W.startingToken||void 0,F=!0,X;while(F){if(R[$]=I,U)R[U]=R[U]??W.pageSize;if(W.client instanceof f)X=await I6(w,W.client,R,...L);else throw new Error(`Invalid client, expected instance of ${f.name}`);yield X;const Y=I;I=F6(X,E),F=!!(I&&(!W.stopOnSameToken||I!==Y))}return},"paginateOperation")},M0=Object.defineProperty,xX=Object.getOwnPropertyDescriptor,dX=Object.getOwnPropertyNames,pX=Object.prototype.hasOwnProperty,V=(f,w)=>M0(f,"name",{value:w,configurable:!0}),gX=(f,w)=>{for(var $ in w)M0(f,$,{get:w[$],enumerable:!0})},nX=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of dX(w))if(!pX.call(f,U)&&U!==$)M0(f,U,{get:()=>w[U],enumerable:!(E=xX(w,U))||E.enumerable})}return f},sX=(f)=>nX(M0({},"__esModule",{value:!0}),f),VG={};gX(VG,{DefaultIdentityProviderConfig:()=>f6,EXPIRATION_MS:()=>DG,HttpApiKeyAuthSigner:()=>w6,HttpBearerAuthSigner:()=>$6,NoAuthSigner:()=>U6,RequestBuilder:()=>yG,createIsIdentityExpiredFunction:()=>kG,createPaginator:()=>xG,doesIdentityRequireRefresh:()=>uG,getHttpAuthSchemeEndpointRuleSetPlugin:()=>rX,getHttpAuthSchemePlugin:()=>iX,getHttpSigningPlugin:()=>eX,getSmithyContext:()=>W6,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>qG,httpAuthSchemeMiddleware:()=>y1,httpAuthSchemeMiddlewareOptions:()=>NG,httpSigningMiddleware:()=>PG,httpSigningMiddlewareOptions:()=>SG,isIdentityExpired:()=>E6,memoizeIdentityProvider:()=>G6,normalizeProvider:()=>R6,requestBuilder:()=>vG});dG.exports=sX(VG);var HG=s();V(CG,"convertHttpAuthSchemesToMap");var y1=V((f,w)=>($,E)=>async(U)=>{var G;const W=f.httpAuthSchemeProvider(await w.httpAuthSchemeParametersProvider(f,E,U.input)),R=CG(f.httpAuthSchemes),L=HG.getSmithyContext(E),I=[];for(let F of W){const X=R.get(F.schemeId);if(!X){I.push(`HttpAuthScheme \`${F.schemeId}\` was not enabled for this service.`);continue}const Y=X.identityProvider(await w.identityProviderConfigProvider(f));if(!Y){I.push(`HttpAuthScheme \`${F.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:Z={},signingProperties:z={}}=((G=F.propertiesExtractor)==null?void 0:G.call(F,f,E))||{};F.identityProperties=Object.assign(F.identityProperties||{},Z),F.signingProperties=Object.assign(F.signingProperties||{},z),L.selectedHttpAuthScheme={httpAuthOption:F,identity:await Y(F.identityProperties),signer:X.signer};break}if(!L.selectedHttpAuthScheme)throw new Error(I.join("\n"));return $(U)},"httpAuthSchemeMiddleware"),lX=K$(),qG={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:lX.endpointMiddlewareOptions.name},rX=V((f,{httpAuthSchemeParametersProvider:w,identityProviderConfigProvider:$})=>({applyToStack:(E)=>{E.addRelativeTo(y1(f,{httpAuthSchemeParametersProvider:w,identityProviderConfigProvider:$}),qG)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),mX=E1(),NG={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:mX.serializerMiddlewareOption.name},iX=V((f,{httpAuthSchemeParametersProvider:w,identityProviderConfigProvider:$})=>({applyToStack:(E)=>{E.addRelativeTo(y1(f,{httpAuthSchemeParametersProvider:w,identityProviderConfigProvider:$}),NG)}}),"getHttpAuthSchemePlugin"),Q0=Uf(),oX=V((f)=>(w)=>{throw w},"defaultErrorHandler"),tX=V((f,w)=>{},"defaultSuccessHandler"),PG=V((f)=>(w,$)=>async(E)=>{if(!Q0.HttpRequest.isInstance(E.request))return w(E);const G=HG.getSmithyContext($).selectedHttpAuthScheme;if(!G)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:W={}},identity:R,signer:L}=G,I=await w({...E,request:await L.sign(E.request,R,W)}).catch((L.errorHandler||oX)(W));return(L.successHandler||tX)(I.response,W),I},"httpSigningMiddleware"),aX=BG(),SG={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:aX.retryMiddlewareOptions.name},eX=V((f)=>({applyToStack:(w)=>{w.addRelativeTo(PG(f),SG)}}),"getHttpSigningPlugin"),jG=class f{constructor(w){this.authSchemes=new Map;for(let[$,E]of Object.entries(w))if(E!==void 0)this.authSchemes.set($,E)}getIdentityProvider(w){return this.authSchemes.get(w)}};V(jG,"DefaultIdentityProviderConfig");var f6=jG,z0=qf(),bG=class f{async sign(w,$,E){if(!E)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!E.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!E.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!$.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");const U=Q0.HttpRequest.clone(w);if(E.in===z0.HttpApiKeyAuthLocation.QUERY)U.query[E.name]=$.apiKey;else if(E.in===z0.HttpApiKeyAuthLocation.HEADER)U.headers[E.name]=E.scheme?`${E.scheme} ${$.apiKey}`:$.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+E.in+"`");return U}};V(bG,"HttpApiKeyAuthSigner");var w6=bG,hG=class f{async sign(w,$,E){const U=Q0.HttpRequest.clone(w);if(!$.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return U.headers.Authorization=`Bearer ${$.token}`,U}};V(hG,"HttpBearerAuthSigner");var $6=hG,cG=class f{async sign(w,$,E){return w}};V(cG,"NoAuthSigner");var U6=cG,kG=V((f)=>(w)=>uG(w)&&w.expiration.getTime()-Date.now()<f,"createIsIdentityExpiredFunction"),DG=300000,E6=kG(DG),uG=V((f)=>f.expiration!==void 0,"doesIdentityRequireRefresh"),G6=V((f,w,$)=>{if(f===void 0)return;const E=typeof f!=="function"?async()=>Promise.resolve(f):f;let U,G,W,R=!1;const L=V(async(I)=>{if(!G)G=E(I);try{U=await G,W=!0,R=!1}finally{G=void 0}return U},"coalesceProvider");if(w===void 0)return async(I)=>{if(!W||(I==null?void 0:I.forceRefresh))U=await L(I);return U};return async(I)=>{if(!W||(I==null?void 0:I.forceRefresh))U=await L(I);if(R)return U;if(!$(U))return R=!0,U;if(w(U))return await L(I),U;return U}},"memoizeIdentityProvider"),W6=V((f)=>f[z0.SMITHY_CONTEXT_KEY]||(f[z0.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),R6=V((f)=>{if(typeof f==="function")return f;const w=Promise.resolve(f);return()=>w},"normalizeProvider"),L6=Jf();V(vG,"requestBuilder");var _G=class f{constructor(w,$){this.input=w,this.context=$,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:w,protocol:$="https",port:E,path:U}=await this.context.endpoint();this.path=U;for(let G of this.resolvePathStack)G(this.path);return new Q0.HttpRequest({protocol:$,hostname:this.hostname||w,port:E,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(($)=>{this.path=`${($==null?void 0:$.endsWith("/"))?$.slice(0,-1):$||""}`+w}),this}p(w,$,E,U){return this.resolvePathStack.push((G)=>{this.path=L6.resolvedPath(G,this.input,w,$,E,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}};V(_G,"RequestBuilder");var yG=_G,I6=V(async(f,w,$,...E)=>{return await w.send(new f($),...E)},"makePagedClientRequest");V(xG,"createPaginator");var F6=V((f,w)=>{let $=f;const E=w.split(".");for(let U of E){if(!$||typeof $!=="object")return;$=$[U]}return $},"get")});var LR=M((YT,u0)=>{var DW,uW,vW,_W,yW,xW,dW,pW,gW,nW,sW,lW,rW,k0,Rw,mW,iW,oW,Hf,tW,aW,eW,fR,wR,$R,UR,ER,GR,D0,WR,RR;(function(f){var w=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(E){f($(w,$(E)))});else if(typeof u0==="object"&&typeof YT==="object")f($(w,$(YT)));else f($(w));function $(E,U){if(E!==w)if(typeof Object.create==="function")Object.defineProperty(E,"__esModule",{value:!0});else E.__esModule=!0;return function(G,W){return E[G]=U?U(G,W):W}}})(function(f){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,G){U.__proto__=G}||function(U,G){for(var W in G)if(Object.prototype.hasOwnProperty.call(G,W))U[W]=G[W]};DW=function(U,G){if(typeof G!=="function"&&G!==null)throw new TypeError("Class extends value "+String(G)+" is not a constructor or null");w(U,G);function W(){this.constructor=U}U.prototype=G===null?Object.create(G):(W.prototype=G.prototype,new W)},uW=Object.assign||function(U){for(var G,W=1,R=arguments.length;W<R;W++){G=arguments[W];for(var L in G)if(Object.prototype.hasOwnProperty.call(G,L))U[L]=G[L]}return U},vW=function(U,G){var W={};for(var R in U)if(Object.prototype.hasOwnProperty.call(U,R)&&G.indexOf(R)<0)W[R]=U[R];if(U!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var L=0,R=Object.getOwnPropertySymbols(U);L<R.length;L++)if(G.indexOf(R[L])<0&&Object.prototype.propertyIsEnumerable.call(U,R[L]))W[R[L]]=U[R[L]]}return W},_W=function(U,G,W,R){var L=arguments.length,I=L<3?G:R===null?R=Object.getOwnPropertyDescriptor(G,W):R,F;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")I=Reflect.decorate(U,G,W,R);else for(var X=U.length-1;X>=0;X--)if(F=U[X])I=(L<3?F(I):L>3?F(G,W,I):F(G,W))||I;return L>3&&I&&Object.defineProperty(G,W,I),I},yW=function(U,G){return function(W,R){G(W,R,U)}},xW=function(U,G,W,R,L,I){function F(c){if(c!==void 0&&typeof c!=="function")throw new TypeError("Function expected");return c}var X=R.kind,Y=X==="getter"?"get":X==="setter"?"set":"value",Z=!G&&U?R.static?U:U.prototype:null,z=G||(Z?Object.getOwnPropertyDescriptor(Z,R.name):{}),Q,T=!1;for(var A=W.length-1;A>=0;A--){var J={};for(var K in R)J[K]=K==="access"?{}:R[K];for(var K in R.access)J.access[K]=R.access[K];J.addInitializer=function(c){if(T)throw new TypeError("Cannot add initializers after decoration has completed");I.push(F(c||null))};var j=W[A](X==="accessor"?{get:z.get,set:z.set}:z[Y],J);if(X==="accessor"){if(j===void 0)continue;if(j===null||typeof j!=="object")throw new TypeError("Object expected");if(Q=F(j.get))z.get=Q;if(Q=F(j.set))z.set=Q;if(Q=F(j.init))L.unshift(Q)}else if(Q=F(j))if(X==="field")L.unshift(Q);else z[Y]=Q}if(Z)Object.defineProperty(Z,R.name,z);T=!0},dW=function(U,G,W){var R=arguments.length>2;for(var L=0;L<G.length;L++)W=R?G[L].call(U,W):G[L].call(U);return R?W:void 0},pW=function(U){return typeof U==="symbol"?U:"".concat(U)},gW=function(U,G,W){if(typeof G==="symbol")G=G.description?"[".concat(G.description,"]"):"";return Object.defineProperty(U,"name",{configurable:!0,value:W?"".concat(W," ",G):G})},nW=function(U,G){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(U,G)},sW=function(U,G,W,R){function L(I){return I instanceof W?I:new W(function(F){F(I)})}return new(W||(W=Promise))(function(I,F){function X(z){try{Z(R.next(z))}catch(Q){F(Q)}}function Y(z){try{Z(R.throw(z))}catch(Q){F(Q)}}function Z(z){z.done?I(z.value):L(z.value).then(X,Y)}Z((R=R.apply(U,G||[])).next())})},lW=function(U,G){var W={label:0,sent:function(){if(I[0]&1)throw I[1];return I[1]},trys:[],ops:[]},R,L,I,F;return F={next:X(0),throw:X(1),return:X(2)},typeof Symbol==="function"&&(F[Symbol.iterator]=function(){return this}),F;function X(Z){return function(z){return Y([Z,z])}}function Y(Z){if(R)throw new TypeError("Generator is already executing.");while(F&&(F=0,Z[0]&&(W=0)),W)try{if(R=1,L&&(I=Z[0]&2?L.return:Z[0]?L.throw||((I=L.return)&&I.call(L),0):L.next)&&!(I=I.call(L,Z[1])).done)return I;if(L=0,I)Z=[Z[0]&2,I.value];switch(Z[0]){case 0:case 1:I=Z;break;case 4:return W.label++,{value:Z[1],done:!1};case 5:W.label++,L=Z[1],Z=[0];continue;case 7:Z=W.ops.pop(),W.trys.pop();continue;default:if((I=W.trys,!(I=I.length>0&&I[I.length-1]))&&(Z[0]===6||Z[0]===2)){W=0;continue}if(Z[0]===3&&(!I||Z[1]>I[0]&&Z[1]<I[3])){W.label=Z[1];break}if(Z[0]===6&&W.label<I[1]){W.label=I[1],I=Z;break}if(I&&W.label<I[2]){W.label=I[2],W.ops.push(Z);break}if(I[2])W.ops.pop();W.trys.pop();continue}Z=G.call(U,W)}catch(z){Z=[6,z],L=0}finally{R=I=0}if(Z[0]&5)throw Z[1];return{value:Z[0]?Z[1]:void 0,done:!0}}},rW=function(U,G){for(var W in U)if(W!=="default"&&!Object.prototype.hasOwnProperty.call(G,W))D0(G,U,W)},D0=Object.create?function(U,G,W,R){if(R===void 0)R=W;var L=Object.getOwnPropertyDescriptor(G,W);if(!L||("get"in L?!G.__esModule:L.writable||L.configurable))L={enumerable:!0,get:function(){return G[W]}};Object.defineProperty(U,R,L)}:function(U,G,W,R){if(R===void 0)R=W;U[R]=G[W]},k0=function(U){var G=typeof Symbol==="function"&&Symbol.iterator,W=G&&U[G],R=0;if(W)return W.call(U);if(U&&typeof U.length==="number")return{next:function(){if(U&&R>=U.length)U=void 0;return{value:U&&U[R++],done:!U}}};throw new TypeError(G?"Object is not iterable.":"Symbol.iterator is not defined.")},Rw=function(U,G){var W=typeof Symbol==="function"&&U[Symbol.iterator];if(!W)return U;var R=W.call(U),L,I=[],F;try{while((G===void 0||G-- >0)&&!(L=R.next()).done)I.push(L.value)}catch(X){F={error:X}}finally{try{if(L&&!L.done&&(W=R.return))W.call(R)}finally{if(F)throw F.error}}return I},mW=function(){for(var U=[],G=0;G<arguments.length;G++)U=U.concat(Rw(arguments[G]));return U},iW=function(){for(var U=0,G=0,W=arguments.length;G<W;G++)U+=arguments[G].length;for(var R=Array(U),L=0,G=0;G<W;G++)for(var I=arguments[G],F=0,X=I.length;F<X;F++,L++)R[L]=I[F];return R},oW=function(U,G,W){if(W||arguments.length===2){for(var R=0,L=G.length,I;R<L;R++)if(I||!(R in G)){if(!I)I=Array.prototype.slice.call(G,0,R);I[R]=G[R]}}return U.concat(I||Array.prototype.slice.call(G))},Hf=function(U){return this instanceof Hf?(this.v=U,this):new Hf(U)},tW=function(U,G,W){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var R=W.apply(U,G||[]),L,I=[];return L={},X("next"),X("throw"),X("return",F),L[Symbol.asyncIterator]=function(){return this},L;function F(A){return function(J){return Promise.resolve(J).then(A,Q)}}function X(A,J){if(R[A]){if(L[A]=function(K){return new Promise(function(j,c){I.push([A,K,j,c])>1||Y(A,K)})},J)L[A]=J(L[A])}}function Y(A,J){try{Z(R[A](J))}catch(K){T(I[0][3],K)}}function Z(A){A.value instanceof Hf?Promise.resolve(A.value.v).then(z,Q):T(I[0][2],A)}function z(A){Y("next",A)}function Q(A){Y("throw",A)}function T(A,J){if(A(J),I.shift(),I.length)Y(I[0][0],I[0][1])}},aW=function(U){var G,W;return G={},R("next"),R("throw",function(L){throw L}),R("return"),G[Symbol.iterator]=function(){return this},G;function R(L,I){G[L]=U[L]?function(F){return(W=!W)?{value:Hf(U[L](F)),done:!1}:I?I(F):F}:I}},eW=function(U){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var G=U[Symbol.asyncIterator],W;return G?G.call(U):(U=typeof k0==="function"?k0(U):U[Symbol.iterator](),W={},R("next"),R("throw"),R("return"),W[Symbol.asyncIterator]=function(){return this},W);function R(I){W[I]=U[I]&&function(F){return new Promise(function(X,Y){F=U[I](F),L(X,Y,F.done,F.value)})}}function L(I,F,X,Y){Promise.resolve(Y).then(function(Z){I({value:Z,done:X})},F)}},fR=function(U,G){if(Object.defineProperty)Object.defineProperty(U,"raw",{value:G});else U.raw=G;return U};var $=Object.create?function(U,G){Object.defineProperty(U,"default",{enumerable:!0,value:G})}:function(U,G){U.default=G};wR=function(U){if(U&&U.__esModule)return U;var G={};if(U!=null){for(var W in U)if(W!=="default"&&Object.prototype.hasOwnProperty.call(U,W))D0(G,U,W)}return $(G,U),G},$R=function(U){return U&&U.__esModule?U:{default:U}},UR=function(U,G,W,R){if(W==="a"&&!R)throw new TypeError("Private accessor was defined without a getter");if(typeof G==="function"?U!==G||!R:!G.has(U))throw new TypeError("Cannot read private member from an object whose class did not declare it");return W==="m"?R:W==="a"?R.call(U):R?R.value:G.get(U)},ER=function(U,G,W,R,L){if(R==="m")throw new TypeError("Private method is not writable");if(R==="a"&&!L)throw new TypeError("Private accessor was defined without a setter");if(typeof G==="function"?U!==G||!L:!G.has(U))throw new TypeError("Cannot write private member to an object whose class did not declare it");return R==="a"?L.call(U,W):L?L.value=W:G.set(U,W),W},GR=function(U,G){if(G===null||typeof G!=="object"&&typeof G!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof U==="function"?G===U:U.has(G)},WR=function(U,G,W){if(G!==null&&G!==void 0){if(typeof G!=="object"&&typeof G!=="function")throw new TypeError("Object expected.");var R,L;if(W){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");R=G[Symbol.asyncDispose]}if(R===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(R=G[Symbol.dispose],W)L=R}if(typeof R!=="function")throw new TypeError("Object not disposable.");if(L)R=function(){try{L.call(this)}catch(I){return Promise.reject(I)}};U.stack.push({value:G,dispose:R,async:W})}else if(W)U.stack.push({async:!0});return G};var E=typeof SuppressedError==="function"?SuppressedError:function(U,G,W){var R=new Error(W);return R.name="SuppressedError",R.error=U,R.suppressed=G,R};RR=function(U){function G(R){U.error=U.hasError?new E(R,U.error,"An error was suppressed during disposal."):R,U.hasError=!0}function W(){while(U.stack.length){var R=U.stack.pop();try{var L=R.dispose&&R.dispose.call(R.value);if(R.async)return Promise.resolve(L).then(W,function(I){return G(I),W()})}catch(I){G(I)}}if(U.hasError)throw U.error}return W()},f("__extends",DW),f("__assign",uW),f("__rest",vW),f("__decorate",_W),f("__param",yW),f("__esDecorate",xW),f("__runInitializers",dW),f("__propKey",pW),f("__setFunctionName",gW),f("__metadata",nW),f("__awaiter",sW),f("__generator",lW),f("__exportStar",rW),f("__createBinding",D0),f("__values",k0),f("__read",Rw),f("__spread",mW),f("__spreadArrays",iW),f("__spreadArray",oW),f("__await",Hf),f("__asyncGenerator",tW),f("__asyncDelegator",aW),f("__asyncValues",eW),f("__makeTemplateObject",fR),f("__importStar",wR),f("__importDefault",$R),f("__classPrivateFieldGet",UR),f("__classPrivateFieldSet",ER),f("__classPrivateFieldIn",GR),f("__addDisposableResource",WR),f("__disposeResources",RR)})});var ZR=M((OT,XR)=>{var{defineProperty:v0,getOwnPropertyDescriptor:l6,getOwnPropertyNames:r6}=Object,m6=Object.prototype.hasOwnProperty,i6=(f,w)=>v0(f,"name",{value:w,configurable:!0}),o6=(f,w)=>{for(var $ in w)v0(f,$,{get:w[$],enumerable:!0})},t6=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of r6(w))if(!m6.call(f,U)&&U!==$)v0(f,U,{get:()=>w[U],enumerable:!(E=l6(w,U))||E.enumerable})}return f},a6=(f)=>t6(v0({},"__esModule",{value:!0}),f),FR={};o6(FR,{emitWarningIfUnsupportedVersion:()=>e6});XR.exports=a6(FR);var IR=!1,e6=i6((f)=>{if(f&&!IR&&parseInt(f.substring(1,f.indexOf(".")))<18)IR=!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 hR=M((zT,bR)=>{var Zw=function(f){for(let w=0;w<8;w++)f[w]^=255;for(let w=7;w>-1;w--)if(f[w]++,f[w]!==0)break},p0=Object.defineProperty,$Z=Object.getOwnPropertyDescriptor,UZ=Object.getOwnPropertyNames,EZ=Object.prototype.hasOwnProperty,S=(f,w)=>p0(f,"name",{value:w,configurable:!0}),GZ=(f,w)=>{for(var $ in w)p0(f,$,{get:w[$],enumerable:!0})},WZ=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of UZ(w))if(!EZ.call(f,U)&&U!==$)p0(f,U,{get:()=>w[U],enumerable:!(E=$Z(w,U))||E.enumerable})}return f},RZ=(f)=>WZ(p0({},"__esModule",{value:!0}),f),QR={};GZ(QR,{SignatureV4:()=>cZ,clearCredentialCache:()=>HZ,createScope:()=>x0,getCanonicalHeaders:()=>Xw,getCanonicalQuery:()=>CR,getPayloadHash:()=>d0,getSigningKey:()=>HR,moveHeadersToQuery:()=>SR,prepareRequest:()=>Yw});bR.exports=RZ(QR);var YR=s(),Lw=Of(),LZ="X-Amz-Algorithm",IZ="X-Amz-Credential",JR="X-Amz-Date",FZ="X-Amz-SignedHeaders",XZ="X-Amz-Expires",TR="X-Amz-Signature",AR="X-Amz-Security-Token",KR="authorization",BR=JR.toLowerCase(),ZZ="date",YZ=[KR,BR,ZZ],OZ=TR.toLowerCase(),Fw="x-amz-content-sha256",zZ=AR.toLowerCase(),MZ={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},QZ=/^proxy-/,JZ=/^sec-/,Iw="AWS4-HMAC-SHA256",TZ="AWS4-HMAC-SHA256-PAYLOAD",AZ="UNSIGNED-PAYLOAD",KZ=50,VR="aws4_request",BZ=604800,ff=GE(),VZ=Of(),Cf={},y0=[],x0=S((f,w,$)=>`${f}/${w}/${$}/${VR}`,"createScope"),HR=S(async(f,w,$,E,U)=>{const G=await OR(f,w.secretAccessKey,w.accessKeyId),W=`${$}:${E}:${U}:${ff.toHex(G)}:${w.sessionToken}`;if(W in Cf)return Cf[W];y0.push(W);while(y0.length>KZ)delete Cf[y0.shift()];let R=`AWS4${w.secretAccessKey}`;for(let L of[$,E,U,VR])R=await OR(f,R,L);return Cf[W]=R},"getSigningKey"),HZ=S(()=>{y0.length=0,Object.keys(Cf).forEach((f)=>{delete Cf[f]})},"clearCredentialCache"),OR=S((f,w,$)=>{const E=new f(w);return E.update(VZ.toUint8Array($)),E.digest()},"hmac"),Xw=S(({headers:f},w,$)=>{const E={};for(let U of Object.keys(f).sort()){if(f[U]==null)continue;const G=U.toLowerCase();if(G in MZ||(w==null?void 0:w.has(G))||QZ.test(G)||JZ.test(G)){if(!$||$&&!$.has(G))continue}E[G]=f[U].trim().replace(/\s+/g," ")}return E},"getCanonicalHeaders"),sf=fZ(),CR=S(({query:f={}})=>{const w=[],$={};for(let E of Object.keys(f).sort()){if(E.toLowerCase()===OZ)continue;w.push(E);const U=f[E];if(typeof U==="string")$[E]=`${sf.escapeUri(E)}=${sf.escapeUri(U)}`;else if(Array.isArray(U))$[E]=U.slice(0).reduce((G,W)=>G.concat([`${sf.escapeUri(E)}=${sf.escapeUri(W)}`]),[]).sort().join("&")}return w.map((E)=>$[E]).filter((E)=>E).join("&")},"getCanonicalQuery"),CZ=wZ(),qZ=Of(),d0=S(async({headers:f,body:w},$)=>{for(let E of Object.keys(f))if(E.toLowerCase()===Fw)return f[E];if(w==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof w==="string"||ArrayBuffer.isView(w)||CZ.isArrayBuffer(w)){const E=new $;return E.update(qZ.toUint8Array(w)),ff.toHex(await E.digest())}return AZ},"getPayloadHash"),zR=Of(),qR=class f{format(w){const $=[];for(let G of Object.keys(w)){const W=zR.fromUtf8(G);$.push(Uint8Array.from([W.byteLength]),W,this.formatHeaderValue(w[G]))}const E=new Uint8Array($.reduce((G,W)=>G+W.byteLength,0));let U=0;for(let G of $)E.set(G,U),U+=G.byteLength;return E}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 $=new DataView(new ArrayBuffer(3));return $.setUint8(0,3),$.setInt16(1,w.value,!1),new Uint8Array($.buffer);case"integer":const E=new DataView(new ArrayBuffer(5));return E.setUint8(0,4),E.setInt32(1,w.value,!1),new Uint8Array(E.buffer);case"long":const U=new Uint8Array(9);return U[0]=5,U.set(w.value.bytes,1),U;case"binary":const G=new DataView(new ArrayBuffer(3+w.value.byteLength));G.setUint8(0,6),G.setUint16(1,w.value.byteLength,!1);const W=new Uint8Array(G.buffer);return W.set(w.value,3),W;case"string":const R=zR.fromUtf8(w.value),L=new DataView(new ArrayBuffer(3+R.byteLength));L.setUint8(0,7),L.setUint16(1,R.byteLength,!1);const I=new Uint8Array(L.buffer);return I.set(R,3),I;case"timestamp":const F=new Uint8Array(9);return F[0]=8,F.set(SZ.fromNumber(w.value.valueOf()).bytes,1),F;case"uuid":if(!PZ.test(w.value))throw new Error(`Invalid UUID received: ${w.value}`);const X=new Uint8Array(17);return X[0]=9,X.set(ff.fromHex(w.value.replace(/\-/g,"")),1),X}}};S(qR,"HeaderFormatter");var NZ=qR,PZ=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,NR=class f{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 $=new Uint8Array(8);for(let E=7,U=Math.abs(Math.round(w));E>-1&&U>0;E--,U/=256)$[E]=U;if(w<0)Zw($);return new f($)}valueOf(){const w=this.bytes.slice(0),$=w[0]&128;if($)Zw(w);return parseInt(ff.toHex(w),16)*($?-1:1)}toString(){return String(this.valueOf())}};S(NR,"Int64");var SZ=NR;S(Zw,"negate");var jZ=S((f,w)=>{f=f.toLowerCase();for(let $ of Object.keys(w))if(f===$.toLowerCase())return!0;return!1},"hasHeader"),PR=Uf(),SR=S((f,w={})=>{var $;const{headers:E,query:U={}}=PR.HttpRequest.clone(f);for(let G of Object.keys(E)){const W=G.toLowerCase();if(W.slice(0,6)==="x-amz-"&&!(($=w.unhoistableHeaders)==null?void 0:$.has(W)))U[G]=E[G],delete E[G]}return{...f,headers:E,query:U}},"moveHeadersToQuery"),Yw=S((f)=>{f=PR.HttpRequest.clone(f);for(let w of Object.keys(f.headers))if(YZ.indexOf(w.toLowerCase())>-1)delete f.headers[w];return f},"prepareRequest"),bZ=S((f)=>hZ(f).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),hZ=S((f)=>{if(typeof f==="number")return new Date(f*1000);if(typeof f==="string"){if(Number(f))return new Date(Number(f)*1000);return new Date(f)}return f},"toDate"),jR=class f{constructor({applyChecksum:w,credentials:$,region:E,service:U,sha256:G,uriEscapePath:W=!0}){this.headerFormatter=new NZ,this.service=U,this.sha256=G,this.uriEscapePath=W,this.applyChecksum=typeof w==="boolean"?w:!0,this.regionProvider=YR.normalizeProvider(E),this.credentialProvider=YR.normalizeProvider($)}async presign(w,$={}){const{signingDate:E=new Date,expiresIn:U=3600,unsignableHeaders:G,unhoistableHeaders:W,signableHeaders:R,signingRegion:L,signingService:I}=$,F=await this.credentialProvider();this.validateResolvedCredentials(F);const X=L??await this.regionProvider(),{longDate:Y,shortDate:Z}=_0(E);if(U>BZ)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const z=x0(Z,X,I??this.service),Q=SR(Yw(w),{unhoistableHeaders:W});if(F.sessionToken)Q.query[AR]=F.sessionToken;Q.query[LZ]=Iw,Q.query[IZ]=`${F.accessKeyId}/${z}`,Q.query[JR]=Y,Q.query[XZ]=U.toString(10);const T=Xw(Q,G,R);return Q.query[FZ]=MR(T),Q.query[TR]=await this.getSignature(Y,z,this.getSigningKey(F,X,Z,I),this.createCanonicalRequest(Q,T,await d0(w,this.sha256))),Q}async sign(w,$){if(typeof w==="string")return this.signString(w,$);else if(w.headers&&w.payload)return this.signEvent(w,$);else if(w.message)return this.signMessage(w,$);else return this.signRequest(w,$)}async signEvent({headers:w,payload:$},{signingDate:E=new Date,priorSignature:U,signingRegion:G,signingService:W}){const R=G??await this.regionProvider(),{shortDate:L,longDate:I}=_0(E),F=x0(L,R,W??this.service),X=await d0({headers:{},body:$},this.sha256),Y=new this.sha256;Y.update(w);const Z=ff.toHex(await Y.digest()),z=[TZ,I,F,U,Z,X].join("\n");return this.signString(z,{signingDate:E,signingRegion:R,signingService:W})}async signMessage(w,{signingDate:$=new Date,signingRegion:E,signingService:U}){return this.signEvent({headers:this.headerFormatter.format(w.message.headers),payload:w.message.body},{signingDate:$,signingRegion:E,signingService:U,priorSignature:w.priorSignature}).then((W)=>{return{message:w.message,signature:W}})}async signString(w,{signingDate:$=new Date,signingRegion:E,signingService:U}={}){const G=await this.credentialProvider();this.validateResolvedCredentials(G);const W=E??await this.regionProvider(),{shortDate:R}=_0($),L=new this.sha256(await this.getSigningKey(G,W,R,U));return L.update(Lw.toUint8Array(w)),ff.toHex(await L.digest())}async signRequest(w,{signingDate:$=new Date,signableHeaders:E,unsignableHeaders:U,signingRegion:G,signingService:W}={}){const R=await this.credentialProvider();this.validateResolvedCredentials(R);const L=G??await this.regionProvider(),I=Yw(w),{longDate:F,shortDate:X}=_0($),Y=x0(X,L,W??this.service);if(I.headers[BR]=F,R.sessionToken)I.headers[zZ]=R.sessionToken;const Z=await d0(I,this.sha256);if(!jZ(Fw,I.headers)&&this.applyChecksum)I.headers[Fw]=Z;const z=Xw(I,U,E),Q=await this.getSignature(F,Y,this.getSigningKey(R,L,X,W),this.createCanonicalRequest(I,z,Z));return I.headers[KR]=`${Iw} Credential=${R.accessKeyId}/${Y}, SignedHeaders=${MR(z)}, Signature=${Q}`,I}createCanonicalRequest(w,$,E){const U=Object.keys($).sort();return`${w.method}
10
- ${this.getCanonicalPath(w)}
11
- ${CR(w)}
12
- ${U.map((G)=>`${G}:${$[G]}`).join("\n")}
13
-
14
- ${U.join(";")}
15
- ${E}`}async createStringToSign(w,$,E){const U=new this.sha256;U.update(Lw.toUint8Array(E));const G=await U.digest();return`${Iw}
16
- ${w}
17
- ${$}
18
- ${ff.toHex(G)}`}getCanonicalPath({path:w}){if(this.uriEscapePath){const $=[];for(let G of w.split("/")){if((G==null?void 0:G.length)===0)continue;if(G===".")continue;if(G==="..")$.pop();else $.push(G)}const E=`${(w==null?void 0:w.startsWith("/"))?"/":""}${$.join("/")}${$.length>0&&(w==null?void 0:w.endsWith("/"))?"/":""}`;return sf.escapeUri(E).replace(/%2F/g,"/")}return w}async getSignature(w,$,E,U){const G=await this.createStringToSign(w,$,U),W=new this.sha256(await E);return W.update(Lw.toUint8Array(G)),ff.toHex(await W.digest())}getSigningKey(w,$,E,U){return HR(this.sha256,w,E,$,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")}};S(jR,"SignatureV4");var cZ=jR,_0=S((f)=>{const w=bZ(f).replace(/[\-:]/g,"");return{longDate:w,shortDate:w.slice(0,8)}},"formatDate"),MR=S((f)=>Object.keys(f).sort().join(";"),"getCanonicalHeaderList")});var pR=M((MT,dR)=>{var{defineProperty:g0,getOwnPropertyDescriptor:kZ,getOwnPropertyNames:DZ}=Object,uZ=Object.prototype.hasOwnProperty,k=(f,w)=>g0(f,"name",{value:w,configurable:!0}),vZ=(f,w)=>{for(var $ in w)g0(f,$,{get:w[$],enumerable:!0})},_Z=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of DZ(w))if(!uZ.call(f,U)&&U!==$)g0(f,U,{get:()=>w[U],enumerable:!(E=kZ(w,U))||E.enumerable})}return f},yZ=(f)=>_Z(g0({},"__esModule",{value:!0}),f),vR={};vZ(vR,{AWSSDKSigV4Signer:()=>gZ,AwsSdkSigV4ASigner:()=>sZ,AwsSdkSigV4Signer:()=>Mw,NODE_SIGV4A_CONFIG_OPTIONS:()=>mZ,resolveAWSSDKSigV4Config:()=>iZ,resolveAwsSdkSigV4AConfig:()=>rZ,resolveAwsSdkSigV4Config:()=>xR,validateSigningProperties:()=>zw});dR.exports=yZ(vR);var xZ=Uf(),dZ=Uf(),cR=k((f)=>{var w,$;return dZ.HttpResponse.isInstance(f)?((w=f.headers)==null?void 0:w.date)??(($=f.headers)==null?void 0:$.Date):void 0},"getDateHeader"),Ow=k((f)=>new Date(Date.now()+f),"getSkewCorrectedDate"),pZ=k((f,w)=>Math.abs(Ow(w).getTime()-f)>=300000,"isClockSkewed"),kR=k((f,w)=>{const $=Date.parse(f);if(pZ($,w))return $-Date.now();return w},"getUpdatedSystemClockOffset"),lf=k((f,w)=>{if(!w)throw new Error(`Property \`${f}\` is not resolved for AWS SDK SigV4Auth`);return w},"throwSigningPropertyError"),zw=k(async(f)=>{var w,$,E;const U=lf("context",f.context),G=lf("config",f.config),W=(E=($=(w=U.endpointV2)==null?void 0:w.properties)==null?void 0:$.authSchemes)==null?void 0:E[0],L=await lf("signer",G.signer)(W),I=f==null?void 0:f.signingRegion,F=f==null?void 0:f.signingRegionSet,X=f==null?void 0:f.signingName;return{config:G,signer:L,signingRegion:I,signingRegionSet:F,signingName:X}},"validateSigningProperties"),_R=class f{async sign(w,$,E){var U;if(!xZ.HttpRequest.isInstance(w))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const G=await zw(E),{config:W,signer:R}=G;let{signingRegion:L,signingName:I}=G;const F=E.context;if(((U=F==null?void 0:F.authSchemes)==null?void 0:U.length)??0>1){const[Y,Z]=F.authSchemes;if((Y==null?void 0:Y.name)==="sigv4a"&&(Z==null?void 0:Z.name)==="sigv4")L=(Z==null?void 0:Z.signingRegion)??L,I=(Z==null?void 0:Z.signingName)??I}return await R.sign(w,{signingDate:Ow(W.systemClockOffset),signingRegion:L,signingService:I})}errorHandler(w){return($)=>{const E=$.ServerTime??cR($.$response);if(E){const U=lf("config",w.config),G=U.systemClockOffset;if(U.systemClockOffset=kR(E,U.systemClockOffset),U.systemClockOffset!==G&&$.$metadata)$.$metadata.clockSkewCorrected=!0}throw $}}successHandler(w,$){const E=cR(w);if(E){const U=lf("config",$.config);U.systemClockOffset=kR(E,U.systemClockOffset)}}};k(_R,"AwsSdkSigV4Signer");var Mw=_R,gZ=Mw,nZ=Uf(),yR=class f extends Mw{async sign(w,$,E){var U;if(!nZ.HttpRequest.isInstance(w))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:G,signer:W,signingRegion:R,signingRegionSet:L,signingName:I}=await zw(E),X=(await((U=G.sigv4aSigningRegionSet)==null?void 0:U.call(G))??L??[R]).join(",");return await W.sign(w,{signingDate:Ow(G.systemClockOffset),signingRegion:X,signingService:I})}};k(yR,"AwsSdkSigV4ASigner");var sZ=yR,lZ=x1(),DR=w1(),rZ=k((f)=>{return f.sigv4aSigningRegionSet=lZ.normalizeProvider(f.sigv4aSigningRegionSet),f},"resolveAwsSdkSigV4AConfig"),mZ={environmentVariableSelector(f){if(f.AWS_SIGV4A_SIGNING_REGION_SET)return f.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((w)=>w.trim());throw new DR.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(f){if(f.sigv4a_signing_region_set)return(f.sigv4a_signing_region_set??"").split(",").map((w)=>w.trim());throw new DR.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},If=x1(),uR=hR(),xR=k((f)=>{let w;if(f.credentials)w=If.memoizeIdentityProvider(f.credentials,If.isIdentityExpired,If.doesIdentityRequireRefresh);if(!w)if(f.credentialDefaultProvider)w=If.normalizeProvider(f.credentialDefaultProvider(Object.assign({},f,{parentClientConfig:f})));else w=k(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");const{signingEscapePath:$=!0,systemClockOffset:E=f.systemClockOffset||0,sha256:U}=f;let G;if(f.signer)G=If.normalizeProvider(f.signer);else if(f.regionInfoProvider)G=k(()=>If.normalizeProvider(f.region)().then(async(W)=>[await f.regionInfoProvider(W,{useFipsEndpoint:await f.useFipsEndpoint(),useDualstackEndpoint:await f.useDualstackEndpoint()})||{},W]).then(([W,R])=>{const{signingRegion:L,signingService:I}=W;f.signingRegion=f.signingRegion||L||R,f.signingName=f.signingName||I||f.serviceId;const F={...f,credentials:w,region:f.signingRegion,service:f.signingName,sha256:U,uriEscapePath:$};return new(f.signerConstructor||uR.SignatureV4)(F)}),"signer");else G=k(async(W)=>{W=Object.assign({},{name:"sigv4",signingName:f.signingName||f.defaultSigningName,signingRegion:await If.normalizeProvider(f.region)(),properties:{}},W);const{signingRegion:R,signingName:L}=W;f.signingRegion=f.signingRegion||R,f.signingName=f.signingName||L||f.serviceId;const I={...f,credentials:w,region:f.signingRegion,service:f.signingName,sha256:U,uriEscapePath:$};return new(f.signerConstructor||uR.SignatureV4)(I)},"signer");return{...f,systemClockOffset:E,signingEscapePath:$,credentials:w,signer:G}},"resolveAwsSdkSigV4Config"),iZ=xR});var n0=M((f5)=>{var oZ=":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",gR="[: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]["+oZ+"]*",tZ=new RegExp("^"+gR+"$"),aZ=function(f,w){const $=[];let E=w.exec(f);while(E){const U=[];U.startIndex=w.lastIndex-E[0].length;const G=E.length;for(let W=0;W<G;W++)U.push(E[W]);$.push(U),E=w.exec(f)}return $},eZ=function(f){const w=tZ.exec(f);return!(w===null||typeof w==="undefined")};f5.isExist=function(f){return typeof f!=="undefined"};f5.isEmptyObject=function(f){return Object.keys(f).length===0};f5.merge=function(f,w,$){if(w){const E=Object.keys(w),U=E.length;for(let G=0;G<U;G++)if($==="strict")f[E[G]]=[w[E[G]]];else f[E[G]]=w[E[G]]}};f5.getValue=function(f){if(f5.isExist(f))return f;else return""};f5.isName=eZ;f5.getAllMatches=aZ;f5.nameRegexp=gR});var Jw=M((M5)=>{var sR=function(f){return f===" "||f==="\t"||f==="\n"||f==="\r"},lR=function(f,w){const $=w;for(;w<f.length;w++)if(f[w]=="?"||f[w]==" "){const E=f.substr($,w-$);if(w>5&&E==="xml")return N("InvalidXml","XML declaration allowed only at the start of the document.",h(f,w));else if(f[w]=="?"&&f[w+1]==">"){w++;break}else continue}return w},rR=function(f,w){if(f.length>w+5&&f[w+1]==="-"&&f[w+2]==="-"){for(w+=3;w<f.length;w++)if(f[w]==="-"&&f[w+1]==="-"&&f[w+2]===">"){w+=2;break}}else if(f.length>w+8&&f[w+1]==="D"&&f[w+2]==="O"&&f[w+3]==="C"&&f[w+4]==="T"&&f[w+5]==="Y"&&f[w+6]==="P"&&f[w+7]==="E"){let $=1;for(w+=8;w<f.length;w++)if(f[w]==="<")$++;else if(f[w]===">"){if($--,$===0)break}}else if(f.length>w+9&&f[w+1]==="["&&f[w+2]==="C"&&f[w+3]==="D"&&f[w+4]==="A"&&f[w+5]==="T"&&f[w+6]==="A"&&f[w+7]==="["){for(w+=8;w<f.length;w++)if(f[w]==="]"&&f[w+1]==="]"&&f[w+2]===">"){w+=2;break}}return w},F5=function(f,w){let $="",E="",U=!1;for(;w<f.length;w++){if(f[w]===L5||f[w]===I5)if(E==="")E=f[w];else if(E!==f[w]);else E="";else if(f[w]===">"){if(E===""){U=!0;break}}$+=f[w]}if(E!=="")return!1;return{value:$,index:w,tagClosed:U}},mR=function(f,w){const $=Qw.getAllMatches(f,X5),E={};for(let U=0;U<$.length;U++){if($[U][1].length===0)return N("InvalidAttr","Attribute '"+$[U][2]+"' has no space in starting.",rf($[U]));else if($[U][3]!==void 0&&$[U][4]===void 0)return N("InvalidAttr","Attribute '"+$[U][2]+"' is without value.",rf($[U]));else if($[U][3]===void 0&&!w.allowBooleanAttributes)return N("InvalidAttr","boolean attribute '"+$[U][2]+"' is not allowed.",rf($[U]));const G=$[U][2];if(!O5(G))return N("InvalidAttr","Attribute '"+G+"' is an invalid name.",rf($[U]));if(!E.hasOwnProperty(G))E[G]=1;else return N("InvalidAttr","Attribute '"+G+"' is repeated.",rf($[U]))}return!0},Z5=function(f,w){let $=/\d/;if(f[w]==="x")w++,$=/[\da-fA-F]/;for(;w<f.length;w++){if(f[w]===";")return w;if(!f[w].match($))break}return-1},Y5=function(f,w){if(w++,f[w]===";")return-1;if(f[w]==="#")return w++,Z5(f,w);let $=0;for(;w<f.length;w++,$++){if(f[w].match(/\w/)&&$<20)continue;if(f[w]===";")break;return-1}return w},N=function(f,w,$){return{err:{code:f,msg:w,line:$.line||$,col:$.col}}},O5=function(f){return Qw.isName(f)},z5=function(f){return Qw.isName(f)},h=function(f,w){const $=f.substring(0,w).split(/\r?\n/);return{line:$.length,col:$[$.length-1].length+1}},rf=function(f){return f.startIndex+f[1].length},Qw=n0(),R5={allowBooleanAttributes:!1,unpairedTags:[]};M5.validate=function(f,w){w=Object.assign({},R5,w);const $=[];let E=!1,U=!1;if(f[0]==="\uFEFF")f=f.substr(1);for(let G=0;G<f.length;G++)if(f[G]==="<"&&f[G+1]==="?"){if(G+=2,G=lR(f,G),G.err)return G}else if(f[G]==="<"){let W=G;if(G++,f[G]==="!"){G=rR(f,G);continue}else{let R=!1;if(f[G]==="/")R=!0,G++;let L="";for(;G<f.length&&f[G]!==">"&&f[G]!==" "&&f[G]!=="\t"&&f[G]!=="\n"&&f[G]!=="\r";G++)L+=f[G];if(L=L.trim(),L[L.length-1]==="/")L=L.substring(0,L.length-1),G--;if(!z5(L)){let X;if(L.trim().length===0)X="Invalid space after '<'.";else X="Tag '"+L+"' is an invalid name.";return N("InvalidTag",X,h(f,G))}const I=F5(f,G);if(I===!1)return N("InvalidAttr","Attributes for '"+L+"' have open quote.",h(f,G));let F=I.value;if(G=I.index,F[F.length-1]==="/"){const X=G-F.length;F=F.substring(0,F.length-1);const Y=mR(F,w);if(Y===!0)E=!0;else return N(Y.err.code,Y.err.msg,h(f,X+Y.err.line))}else if(R)if(!I.tagClosed)return N("InvalidTag","Closing tag '"+L+"' doesn't have proper closing.",h(f,G));else if(F.trim().length>0)return N("InvalidTag","Closing tag '"+L+"' can't have attributes or invalid starting.",h(f,W));else if($.length===0)return N("InvalidTag","Closing tag '"+L+"' has not been opened.",h(f,W));else{const X=$.pop();if(L!==X.tagName){let Y=h(f,X.tagStartPos);return N("InvalidTag","Expected closing tag '"+X.tagName+"' (opened in line "+Y.line+", col "+Y.col+") instead of closing tag '"+L+"'.",h(f,W))}if($.length==0)U=!0}else{const X=mR(F,w);if(X!==!0)return N(X.err.code,X.err.msg,h(f,G-F.length+X.err.line));if(U===!0)return N("InvalidXml","Multiple possible root nodes found.",h(f,G));else if(w.unpairedTags.indexOf(L)!==-1);else $.push({tagName:L,tagStartPos:W});E=!0}for(G++;G<f.length;G++)if(f[G]==="<")if(f[G+1]==="!"){G++,G=rR(f,G);continue}else if(f[G+1]==="?"){if(G=lR(f,++G),G.err)return G}else break;else if(f[G]==="&"){const X=Y5(f,G);if(X==-1)return N("InvalidChar","char '&' is not expected.",h(f,G));G=X}else if(U===!0&&!sR(f[G]))return N("InvalidXml","Extra text at the end",h(f,G));if(f[G]==="<")G--}}else{if(sR(f[G]))continue;return N("InvalidChar","char '"+f[G]+"' is not expected.",h(f,G))}if(!E)return N("InvalidXml","Start tag expected.",1);else if($.length==1)return N("InvalidTag","Unclosed tag '"+$[0].tagName+"'.",h(f,$[0].tagStartPos));else if($.length>0)return N("InvalidXml","Invalid '"+JSON.stringify($.map((G)=>G.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var L5='"',I5="'",X5=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var oR=M((T5)=>{var iR={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(f,w){return w},attributeValueProcessor:function(f,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(f,w,$){return f}},J5=function(f){return Object.assign({},iR,f)};T5.buildOptions=J5;T5.defaultOptions=iR});var eR=M((AT,aR)=>{class tR{constructor(f){this.tagname=f,this.child=[],this[":@"]={}}add(f,w){if(f==="__proto__")f="#__proto__";this.child.push({[f]:w})}addChild(f){if(f.tagname==="__proto__")f.tagname="#__proto__";if(f[":@"]&&Object.keys(f[":@"]).length>0)this.child.push({[f.tagname]:f.child,[":@"]:f[":@"]});else this.child.push({[f.tagname]:f.child})}}aR.exports=tR});var wL=M((KT,fL)=>{var V5=function(f,w){const $={};if(f[w+3]==="O"&&f[w+4]==="C"&&f[w+5]==="T"&&f[w+6]==="Y"&&f[w+7]==="P"&&f[w+8]==="E"){w=w+9;let E=1,U=!1,G=!1,W="";for(;w<f.length;w++)if(f[w]==="<"&&!G){if(U&&q5(f,w)){if(w+=7,[entityName,val,w]=H5(f,w+1),val.indexOf("&")===-1)$[j5(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(U&&N5(f,w))w+=8;else if(U&&P5(f,w))w+=8;else if(U&&S5(f,w))w+=9;else if(C5)G=!0;else throw new Error("Invalid DOCTYPE");E++,W=""}else if(f[w]===">"){if(G){if(f[w-1]==="-"&&f[w-2]==="-")G=!1,E--}else E--;if(E===0)break}else if(f[w]==="[")U=!0;else W+=f[w];if(E!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:$,i:w}},H5=function(f,w){let $="";for(;w<f.length&&(f[w]!=="'"&&f[w]!=='"');w++)$+=f[w];if($=$.trim(),$.indexOf(" ")!==-1)throw new Error("External entites are not supported");const E=f[w++];let U="";for(;w<f.length&&f[w]!==E;w++)U+=f[w];return[$,U,w]},C5=function(f,w){if(f[w+1]==="!"&&f[w+2]==="-"&&f[w+3]==="-")return!0;return!1},q5=function(f,w){if(f[w+1]==="!"&&f[w+2]==="E"&&f[w+3]==="N"&&f[w+4]==="T"&&f[w+5]==="I"&&f[w+6]==="T"&&f[w+7]==="Y")return!0;return!1},N5=function(f,w){if(f[w+1]==="!"&&f[w+2]==="E"&&f[w+3]==="L"&&f[w+4]==="E"&&f[w+5]==="M"&&f[w+6]==="E"&&f[w+7]==="N"&&f[w+8]==="T")return!0;return!1},P5=function(f,w){if(f[w+1]==="!"&&f[w+2]==="A"&&f[w+3]==="T"&&f[w+4]==="T"&&f[w+5]==="L"&&f[w+6]==="I"&&f[w+7]==="S"&&f[w+8]==="T")return!0;return!1},S5=function(f,w){if(f[w+1]==="!"&&f[w+2]==="N"&&f[w+3]==="O"&&f[w+4]==="T"&&f[w+5]==="A"&&f[w+6]==="T"&&f[w+7]==="I"&&f[w+8]==="O"&&f[w+9]==="N")return!0;return!1},j5=function(f){if(B5.isName(f))return f;else throw new Error(`Invalid entity name ${f}`)},B5=n0();fL.exports=V5});var UL=M((BT,$L)=>{var k5=function(f,w={}){if(w=Object.assign({},c5,w),!f||typeof f!=="string")return f;let $=f.trim();if(w.skipLike!==void 0&&w.skipLike.test($))return f;else if(w.hex&&b5.test($))return Number.parseInt($,16);else{const E=h5.exec($);if(E){const U=E[1],G=E[2];let W=D5(E[3]);const R=E[4]||E[6];if(!w.leadingZeros&&G.length>0&&U&&$[2]!==".")return f;else if(!w.leadingZeros&&G.length>0&&!U&&$[1]!==".")return f;else{const L=Number($),I=""+L;if(I.search(/[eE]/)!==-1)if(w.eNotation)return L;else return f;else if(R)if(w.eNotation)return L;else return f;else if($.indexOf(".")!==-1)if(I==="0"&&W==="")return L;else if(I===W)return L;else if(U&&I==="-"+W)return L;else return f;if(G)if(W===I)return L;else if(U+W===I)return L;else return f;if($===I)return L;else if($===U+I)return L;return f}}else return f}},D5=function(f){if(f&&f.indexOf(".")!==-1){if(f=f.replace(/0+$/,""),f===".")f="0";else if(f[0]===".")f="0"+f;else if(f[f.length-1]===".")f=f.substr(0,f.length-1);return f}return f},b5=/^[-+]?0x[a-fA-F0-9]+$/,h5=/^([\-\+])?(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 c5={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};$L.exports=k5});var RL=M((VT,WL)=>{var _5=function(f){const w=Object.keys(f);for(let $=0;$<w.length;$++){const E=w[$];this.lastEntities[E]={regex:new RegExp("&"+E+";","g"),val:f[E]}}},y5=function(f,w,$,E,U,G,W){if(f!==void 0){if(this.options.trimValues&&!E)f=f.trim();if(f.length>0){if(!W)f=this.replaceEntitiesValue(f);const R=this.options.tagValueProcessor(w,f,$,U,G);if(R===null||R===void 0)return f;else if(typeof R!==typeof f||R!==f)return R;else if(this.options.trimValues)return Aw(f,this.options.parseTagValue,this.options.numberParseOptions);else if(f.trim()===f)return Aw(f,this.options.parseTagValue,this.options.numberParseOptions);else return f}}},x5=function(f){if(this.options.removeNSPrefix){const w=f.split(":"),$=f.charAt(0)==="/"?"/":"";if(w[0]==="xmlns")return"";if(w.length===2)f=$+w[1]}return f},p5=function(f,w,$){if(!this.options.ignoreAttributes&&typeof f==="string"){const E=EL.getAllMatches(f,d5),U=E.length,G={};for(let W=0;W<U;W++){const R=this.resolveNameSpace(E[W][1]);let L=E[W][4],I=this.options.attributeNamePrefix+R;if(R.length){if(this.options.transformAttributeName)I=this.options.transformAttributeName(I);if(I==="__proto__")I="#__proto__";if(L!==void 0){if(this.options.trimValues)L=L.trim();L=this.replaceEntitiesValue(L);const F=this.options.attributeValueProcessor(R,L,w);if(F===null||F===void 0)G[I]=L;else if(typeof F!==typeof L||F!==L)G[I]=F;else G[I]=Aw(L,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)G[I]=!0}}if(!Object.keys(G).length)return;if(this.options.attributesGroupName){const W={};return W[this.options.attributesGroupName]=G,W}return G}},n5=function(f,w,$){const E=this.options.updateTag(w.tagname,$,w[":@"]);if(E===!1);else if(typeof E==="string")w.tagname=E,f.addChild(w);else f.addChild(w)},l5=function(f,w,$,E){if(f){if(E===void 0)E=Object.keys(w.child).length===0;if(f=this.parseTextData(f,w.tagname,$,!1,w[":@"]?Object.keys(w[":@"]).length!==0:!1,E),f!==void 0&&f!=="")w.add(this.options.textNodeName,f);f=""}return f},r5=function(f,w,$){const E="*."+$;for(let U in f){const G=f[U];if(E===G||w===G)return!0}return!1},m5=function(f,w,$=">"){let E,U="";for(let G=w;G<f.length;G++){let W=f[G];if(E){if(W===E)E=""}else if(W==='"'||W==="'")E=W;else if(W===$[0])if($[1]){if(f[G+1]===$[1])return{data:U,index:G}}else return{data:U,index:G};else if(W==="\t")W=" ";U+=W}},Ff=function(f,w,$,E){const U=f.indexOf(w,$);if(U===-1)throw new Error(E);else return U+w.length-1},Tw=function(f,w,$,E=">"){const U=m5(f,w+1,E);if(!U)return;let G=U.data;const W=U.index,R=G.search(/\s/);let L=G,I=!0;if(R!==-1)L=G.substring(0,R),G=G.substring(R+1).trimStart();const F=L;if($){const X=L.indexOf(":");if(X!==-1)L=L.substr(X+1),I=L!==U.data.substr(X+1)}return{tagName:L,tagExp:G,closeIndex:W,attrExpPresent:I,rawTagName:F}},i5=function(f,w,$){const E=$;let U=1;for(;$<f.length;$++)if(f[$]==="<")if(f[$+1]==="/"){const G=Ff(f,">",$,`${w} is not closed`);if(f.substring($+2,G).trim()===w){if(U--,U===0)return{tagContent:f.substring(E,$),i:G}}$=G}else if(f[$+1]==="?")$=Ff(f,"?>",$+1,"StopNode is not closed.");else if(f.substr($+1,3)==="!--")$=Ff(f,"-->",$+3,"StopNode is not closed.");else if(f.substr($+1,2)==="![")$=Ff(f,"]]>",$,"StopNode is not closed.")-2;else{const G=Tw(f,$,">");if(G){if((G&&G.tagName)===w&&G.tagExp[G.tagExp.length-1]!=="/")U++;$=G.closeIndex}}},Aw=function(f,w,$){if(w&&typeof f==="string"){const E=f.trim();if(E==="true")return!0;else if(E==="false")return!1;else return v5(f,$)}else if(EL.isExist(f))return f;else return""},EL=n0(),mf=eR(),u5=wL(),v5=UL();class GL{constructor(f){this.options=f,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,$)=>String.fromCharCode(Number.parseInt($,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(w,$)=>String.fromCharCode(Number.parseInt($,16))}},this.addExternalEntities=_5,this.parseXml=g5,this.parseTextData=y5,this.resolveNameSpace=x5,this.buildAttributesMap=p5,this.isItStopNode=r5,this.replaceEntitiesValue=s5,this.readStopNodeData=i5,this.saveTextToParentTag=l5,this.addChild=n5}}var d5=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),g5=function(f){f=f.replace(/\r\n?/g,"\n");const w=new mf("!xml");let $=w,E="",U="";for(let G=0;G<f.length;G++)if(f[G]==="<")if(f[G+1]==="/"){const R=Ff(f,">",G,"Closing Tag is not closed.");let L=f.substring(G+2,R).trim();if(this.options.removeNSPrefix){const X=L.indexOf(":");if(X!==-1)L=L.substr(X+1)}if(this.options.transformTagName)L=this.options.transformTagName(L);if($)E=this.saveTextToParentTag(E,$,U);const I=U.substring(U.lastIndexOf(".")+1);if(L&&this.options.unpairedTags.indexOf(L)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${L}>`);let F=0;if(I&&this.options.unpairedTags.indexOf(I)!==-1)F=U.lastIndexOf(".",U.lastIndexOf(".")-1),this.tagsNodeStack.pop();else F=U.lastIndexOf(".");U=U.substring(0,F),$=this.tagsNodeStack.pop(),E="",G=R}else if(f[G+1]==="?"){let R=Tw(f,G,!1,"?>");if(!R)throw new Error("Pi Tag is not closed.");if(E=this.saveTextToParentTag(E,$,U),this.options.ignoreDeclaration&&R.tagName==="?xml"||this.options.ignorePiTags);else{const L=new mf(R.tagName);if(L.add(this.options.textNodeName,""),R.tagName!==R.tagExp&&R.attrExpPresent)L[":@"]=this.buildAttributesMap(R.tagExp,U,R.tagName);this.addChild($,L,U)}G=R.closeIndex+1}else if(f.substr(G+1,3)==="!--"){const R=Ff(f,"-->",G+4,"Comment is not closed.");if(this.options.commentPropName){const L=f.substring(G+4,R-2);E=this.saveTextToParentTag(E,$,U),$.add(this.options.commentPropName,[{[this.options.textNodeName]:L}])}G=R}else if(f.substr(G+1,2)==="!D"){const R=u5(f,G);this.docTypeEntities=R.entities,G=R.i}else if(f.substr(G+1,2)==="!["){const R=Ff(f,"]]>",G,"CDATA is not closed.")-2,L=f.substring(G+9,R);E=this.saveTextToParentTag(E,$,U);let I=this.parseTextData(L,$.tagname,U,!0,!1,!0,!0);if(I==null)I="";if(this.options.cdataPropName)$.add(this.options.cdataPropName,[{[this.options.textNodeName]:L}]);else $.add(this.options.textNodeName,I);G=R+2}else{let R=Tw(f,G,this.options.removeNSPrefix),L=R.tagName;const I=R.rawTagName;let{tagExp:F,attrExpPresent:X,closeIndex:Y}=R;if(this.options.transformTagName)L=this.options.transformTagName(L);if($&&E){if($.tagname!=="!xml")E=this.saveTextToParentTag(E,$,U,!1)}const Z=$;if(Z&&this.options.unpairedTags.indexOf(Z.tagname)!==-1)$=this.tagsNodeStack.pop(),U=U.substring(0,U.lastIndexOf("."));if(L!==w.tagname)U+=U?"."+L:L;if(this.isItStopNode(this.options.stopNodes,U,L)){let z="";if(F.length>0&&F.lastIndexOf("/")===F.length-1){if(L[L.length-1]==="/")L=L.substr(0,L.length-1),U=U.substr(0,U.length-1),F=L;else F=F.substr(0,F.length-1);G=R.closeIndex}else if(this.options.unpairedTags.indexOf(L)!==-1)G=R.closeIndex;else{const T=this.readStopNodeData(f,I,Y+1);if(!T)throw new Error(`Unexpected end of ${I}`);G=T.i,z=T.tagContent}const Q=new mf(L);if(L!==F&&X)Q[":@"]=this.buildAttributesMap(F,U,L);if(z)z=this.parseTextData(z,L,U,!0,X,!0,!0);U=U.substr(0,U.lastIndexOf(".")),Q.add(this.options.textNodeName,z),this.addChild($,Q,U)}else{if(F.length>0&&F.lastIndexOf("/")===F.length-1){if(L[L.length-1]==="/")L=L.substr(0,L.length-1),U=U.substr(0,U.length-1),F=L;else F=F.substr(0,F.length-1);if(this.options.transformTagName)L=this.options.transformTagName(L);const z=new mf(L);if(L!==F&&X)z[":@"]=this.buildAttributesMap(F,U,L);this.addChild($,z,U),U=U.substr(0,U.lastIndexOf("."))}else{const z=new mf(L);if(this.tagsNodeStack.push($),L!==F&&X)z[":@"]=this.buildAttributesMap(F,U,L);this.addChild($,z,U),$=z}E="",G=Y}}else E+=f[G];return w.child},s5=function(f){if(this.options.processEntities){for(let w in this.docTypeEntities){const $=this.docTypeEntities[w];f=f.replace($.regx,$.val)}for(let w in this.lastEntities){const $=this.lastEntities[w];f=f.replace($.regex,$.val)}if(this.options.htmlEntities)for(let w in this.htmlEntities){const $=this.htmlEntities[w];f=f.replace($.regex,$.val)}f=f.replace(this.ampEntity.regex,this.ampEntity.val)}return f};WL.exports=GL});var IL=M((fY)=>{var o5=function(f,w){return LL(f,w)},LL=function(f,w,$){let E;const U={};for(let G=0;G<f.length;G++){const W=f[G],R=t5(W);let L="";if($===void 0)L=R;else L=$+"."+R;if(R===w.textNodeName)if(E===void 0)E=W[R];else E+=""+W[R];else if(R===void 0)continue;else if(W[R]){let I=LL(W[R],w,L);const F=e5(I,w);if(W[":@"])a5(I,W[":@"],L,w);else if(Object.keys(I).length===1&&I[w.textNodeName]!==void 0&&!w.alwaysCreateTextNode)I=I[w.textNodeName];else if(Object.keys(I).length===0)if(w.alwaysCreateTextNode)I[w.textNodeName]="";else I="";if(U[R]!==void 0&&U.hasOwnProperty(R)){if(!Array.isArray(U[R]))U[R]=[U[R]];U[R].push(I)}else if(w.isArray(R,L,F))U[R]=[I];else U[R]=I}}if(typeof E==="string"){if(E.length>0)U[w.textNodeName]=E}else if(E!==void 0)U[w.textNodeName]=E;return U},t5=function(f){const w=Object.keys(f);for(let $=0;$<w.length;$++){const E=w[$];if(E!==":@")return E}},a5=function(f,w,$,E){if(w){const U=Object.keys(w),G=U.length;for(let W=0;W<G;W++){const R=U[W];if(E.isArray(R,$+"."+R,!0,!0))f[R]=[w[R]];else f[R]=w[R]}}},e5=function(f,w){const{textNodeName:$}=w,E=Object.keys(f).length;if(E===0)return!0;if(E===1&&(f[$]||typeof f[$]==="boolean"||f[$]===0))return!0;return!1};fY.prettify=o5});var ZL=M((CT,XL)=>{var{buildOptions:$Y}=oR(),UY=RL(),{prettify:EY}=IL(),GY=Jw();class FL{constructor(f){this.externalEntities={},this.options=$Y(f)}parse(f,w){if(typeof f==="string");else if(f.toString)f=f.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(w){if(w===!0)w={};const U=GY.validate(f,w);if(U!==!0)throw Error(`${U.err.msg}:${U.err.line}:${U.err.col}`)}const $=new UY(this.options);$.addExternalEntities(this.externalEntities);const E=$.parseXml(f);if(this.options.preserveOrder||E===void 0)return E;else return EY(E,this.options)}addEntity(f,w){if(w.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");else if(f.indexOf("&")!==-1||f.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[f]=w}}XL.exports=FL});var QL=M((qT,ML)=>{var WY=function(f,w){let $="";if(w.format&&w.indentBy.length>0)$="\n";return OL(f,w,"",$)},OL=function(f,w,$,E){let U="",G=!1;for(let W=0;W<f.length;W++){const R=f[W],L=RY(R);if(L===void 0)continue;let I="";if($.length===0)I=L;else I=`${$}.${L}`;if(L===w.textNodeName){let z=R[L];if(!LY(I,w))z=w.tagValueProcessor(L,z),z=zL(z,w);if(G)U+=E;U+=z,G=!1;continue}else if(L===w.cdataPropName){if(G)U+=E;U+=`<![CDATA[${R[L][0][w.textNodeName]}]]>`,G=!1;continue}else if(L===w.commentPropName){U+=E+`<!--${R[L][0][w.textNodeName]}-->`,G=!0;continue}else if(L[0]==="?"){const z=YL(R[":@"],w),Q=L==="?xml"?"":E;let T=R[L][0][w.textNodeName];T=T.length!==0?" "+T:"",U+=Q+`<${L}${T}${z}?>`,G=!0;continue}let F=E;if(F!=="")F+=w.indentBy;const X=YL(R[":@"],w),Y=E+`<${L}${X}`,Z=OL(R[L],w,I,F);if(w.unpairedTags.indexOf(L)!==-1)if(w.suppressUnpairedNode)U+=Y+">";else U+=Y+"/>";else if((!Z||Z.length===0)&&w.suppressEmptyNode)U+=Y+"/>";else if(Z&&Z.endsWith(">"))U+=Y+`>${Z}${E}</${L}>`;else{if(U+=Y+">",Z&&E!==""&&(Z.includes("/>")||Z.includes("</")))U+=E+w.indentBy+Z+E;else U+=Z;U+=`</${L}>`}G=!0}return U},RY=function(f){const w=Object.keys(f);for(let $=0;$<w.length;$++){const E=w[$];if(!f.hasOwnProperty(E))continue;if(E!==":@")return E}},YL=function(f,w){let $="";if(f&&!w.ignoreAttributes)for(let E in f){if(!f.hasOwnProperty(E))continue;let U=w.attributeValueProcessor(E,f[E]);if(U=zL(U,w),U===!0&&w.suppressBooleanAttributes)$+=` ${E.substr(w.attributeNamePrefix.length)}`;else $+=` ${E.substr(w.attributeNamePrefix.length)}="${U}"`}return $},LY=function(f,w){f=f.substr(0,f.length-w.textNodeName.length-1);let $=f.substr(f.lastIndexOf(".")+1);for(let E in w.stopNodes)if(w.stopNodes[E]===f||w.stopNodes[E]==="*."+$)return!0;return!1},zL=function(f,w){if(f&&f.length>0&&w.processEntities)for(let $=0;$<w.entities.length;$++){const E=w.entities[$];f=f.replace(E.regex,E.val)}return f};ML.exports=WY});var TL=M((NT,JL)=>{var wf=function(f){if(this.options=Object.assign({},FY,f),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=YY;if(this.processTextOrObjNode=XY,this.options.format)this.indentate=ZY,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""},XY=function(f,w,$){const E=this.j2x(f,$+1);if(f[this.options.textNodeName]!==void 0&&Object.keys(f).length===1)return this.buildTextValNode(f[this.options.textNodeName],w,E.attrStr,$);else return this.buildObjectNode(E.val,w,E.attrStr,$)},ZY=function(f){return this.options.indentBy.repeat(f)},YY=function(f){if(f.startsWith(this.options.attributeNamePrefix)&&f!==this.options.textNodeName)return f.substr(this.attrPrefixLen);else return!1},IY=QL(),FY={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(f,w){return w},attributeValueProcessor:function(f,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};wf.prototype.build=function(f){if(this.options.preserveOrder)return IY(f,this.options);else{if(Array.isArray(f)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)f={[this.options.arrayNodeName]:f};return this.j2x(f,0).val}};wf.prototype.j2x=function(f,w){let $="",E="";for(let U in f){if(!Object.prototype.hasOwnProperty.call(f,U))continue;if(typeof f[U]==="undefined"){if(this.isAttribute(U))E+=""}else if(f[U]===null)if(this.isAttribute(U))E+="";else if(U[0]==="?")E+=this.indentate(w)+"<"+U+"?"+this.tagEndChar;else E+=this.indentate(w)+"<"+U+"/"+this.tagEndChar;else if(f[U]instanceof Date)E+=this.buildTextValNode(f[U],U,"",w);else if(typeof f[U]!=="object"){const G=this.isAttribute(U);if(G)$+=this.buildAttrPairStr(G,""+f[U]);else if(U===this.options.textNodeName){let W=this.options.tagValueProcessor(U,""+f[U]);E+=this.replaceEntitiesValue(W)}else E+=this.buildTextValNode(f[U],U,"",w)}else if(Array.isArray(f[U])){const G=f[U].length;let W="",R="";for(let L=0;L<G;L++){const I=f[U][L];if(typeof I==="undefined");else if(I===null)if(U[0]==="?")E+=this.indentate(w)+"<"+U+"?"+this.tagEndChar;else E+=this.indentate(w)+"<"+U+"/"+this.tagEndChar;else if(typeof I==="object")if(this.options.oneListGroup){const F=this.j2x(I,w+1);if(W+=F.val,this.options.attributesGroupName&&I.hasOwnProperty(this.options.attributesGroupName))R+=F.attrStr}else W+=this.processTextOrObjNode(I,U,w);else if(this.options.oneListGroup){let F=this.options.tagValueProcessor(U,I);F=this.replaceEntitiesValue(F),W+=F}else W+=this.buildTextValNode(I,U,"",w)}if(this.options.oneListGroup)W=this.buildObjectNode(W,U,R,w);E+=W}else if(this.options.attributesGroupName&&U===this.options.attributesGroupName){const G=Object.keys(f[U]),W=G.length;for(let R=0;R<W;R++)$+=this.buildAttrPairStr(G[R],""+f[U][G[R]])}else E+=this.processTextOrObjNode(f[U],U,w)}return{attrStr:$,val:E}};wf.prototype.buildAttrPairStr=function(f,w){if(w=this.options.attributeValueProcessor(f,""+w),w=this.replaceEntitiesValue(w),this.options.suppressBooleanAttributes&&w==="true")return" "+f;else return" "+f+'="'+w+'"'};wf.prototype.buildObjectNode=function(f,w,$,E){if(f==="")if(w[0]==="?")return this.indentate(E)+"<"+w+$+"?"+this.tagEndChar;else return this.indentate(E)+"<"+w+$+this.closeTag(w)+this.tagEndChar;else{let U="</"+w+this.tagEndChar,G="";if(w[0]==="?")G="?",U="";if(($||$==="")&&f.indexOf("<")===-1)return this.indentate(E)+"<"+w+$+G+">"+f+U;else if(this.options.commentPropName!==!1&&w===this.options.commentPropName&&G.length===0)return this.indentate(E)+`<!--${f}-->`+this.newLine;else return this.indentate(E)+"<"+w+$+G+this.tagEndChar+f+this.indentate(E)+U}};wf.prototype.closeTag=function(f){let w="";if(this.options.unpairedTags.indexOf(f)!==-1){if(!this.options.suppressUnpairedNode)w="/"}else if(this.options.suppressEmptyNode)w="/";else w=`></${f}`;return w};wf.prototype.buildTextValNode=function(f,w,$,E){if(this.options.cdataPropName!==!1&&w===this.options.cdataPropName)return this.indentate(E)+`<![CDATA[${f}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&w===this.options.commentPropName)return this.indentate(E)+`<!--${f}-->`+this.newLine;else if(w[0]==="?")return this.indentate(E)+"<"+w+$+"?"+this.tagEndChar;else{let U=this.options.tagValueProcessor(w,f);if(U=this.replaceEntitiesValue(U),U==="")return this.indentate(E)+"<"+w+$+this.closeTag(w)+this.tagEndChar;else return this.indentate(E)+"<"+w+$+">"+U+"</"+w+this.tagEndChar}};wf.prototype.replaceEntitiesValue=function(f){if(f&&f.length>0&&this.options.processEntities)for(let w=0;w<this.options.entities.length;w++){const $=this.options.entities[w];f=f.replace($.regex,$.val)}return f};JL.exports=wf});var KL=M((PT,AL)=>{var OY=Jw(),zY=ZL(),MY=TL();AL.exports={XMLParser:zY,XMLValidator:OY,XMLBuilder:MY}});var NL=M((ST,qL)=>{var{defineProperty:s0,getOwnPropertyDescriptor:QY,getOwnPropertyNames:JY}=Object,TY=Object.prototype.hasOwnProperty,D=(f,w)=>s0(f,"name",{value:w,configurable:!0}),AY=(f,w)=>{for(var $ in w)s0(f,$,{get:w[$],enumerable:!0})},KY=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of JY(w))if(!TY.call(f,U)&&U!==$)s0(f,U,{get:()=>w[U],enumerable:!(E=QY(w,U))||E.enumerable})}return f},BY=(f)=>KY(s0({},"__esModule",{value:!0}),f),BL={};AY(BL,{_toBool:()=>HY,_toNum:()=>CY,_toStr:()=>VY,awsExpectUnion:()=>NY,loadRestJsonErrorCode:()=>jY,loadRestXmlErrorCode:()=>kY,parseJsonBody:()=>HL,parseJsonErrorBody:()=>SY,parseXmlBody:()=>CL,parseXmlErrorBody:()=>cY});qL.exports=BY(BL);var VY=D((f)=>{if(f==null)return f;if(typeof f==="number"||typeof f==="bigint"){const w=new Error(`Received number ${f} where a string was expected.`);return w.name="Warning",console.warn(w),String(f)}if(typeof f==="boolean"){const w=new Error(`Received boolean ${f} where a string was expected.`);return w.name="Warning",console.warn(w),String(f)}return f},"_toStr"),HY=D((f)=>{if(f==null)return f;if(typeof f==="string"){const w=f.toLowerCase();if(f!==""&&w!=="false"&&w!=="true"){const $=new Error(`Received string "${f}" where a boolean was expected.`);$.name="Warning",console.warn($)}return f!==""&&w!=="false"}return f},"_toBool"),CY=D((f)=>{if(f==null)return f;if(typeof f==="string"){const w=Number(f);if(w.toString()!==f){const $=new Error(`Received string "${f}" where a number was expected.`);return $.name="Warning",console.warn($),f}return w}return f},"_toNum"),qY=Jf(),NY=D((f)=>{if(f==null)return;if(typeof f==="object"&&"__type"in f)delete f.__type;return qY.expectUnion(f)},"awsExpectUnion"),PY=Jf(),VL=D((f,w)=>PY.collectBody(f,w).then(($)=>w.utf8Encoder($)),"collectBodyString"),HL=D((f,w)=>VL(f,w).then(($)=>{if($.length)try{return JSON.parse($)}catch(E){if((E==null?void 0:E.name)==="SyntaxError")Object.defineProperty(E,"$responseBodyText",{value:$});throw E}return{}}),"parseJsonBody"),SY=D(async(f,w)=>{const $=await HL(f,w);return $.message=$.message??$.Message,$},"parseJsonErrorBody"),jY=D((f,w)=>{const $=D((G,W)=>Object.keys(G).find((R)=>R.toLowerCase()===W.toLowerCase()),"findKey"),E=D((G)=>{let W=G;if(typeof W==="number")W=W.toString();if(W.indexOf(",")>=0)W=W.split(",")[0];if(W.indexOf(":")>=0)W=W.split(":")[0];if(W.indexOf("#")>=0)W=W.split("#")[1];return W},"sanitizeErrorCode"),U=$(f.headers,"x-amzn-errortype");if(U!==void 0)return E(f.headers[U]);if(w.code!==void 0)return E(w.code);if(w.__type!==void 0)return E(w.__type)},"loadRestJsonErrorCode"),bY=Jf(),hY=KL(),CL=D((f,w)=>VL(f,w).then(($)=>{if($.length){const E=new hY.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(L,I)=>I.trim()===""&&I.includes("\n")?"":void 0});E.addEntity("#xD","\r"),E.addEntity("#10","\n");let U;try{U=E.parse($,!0)}catch(L){if(L&&typeof L==="object")Object.defineProperty(L,"$responseBodyText",{value:$});throw L}const G="#text",W=Object.keys(U)[0],R=U[W];if(R[G])R[W]=R[G],delete R[G];return bY.getValueFromTextNode(R)}return{}}),"parseXmlBody"),cY=D(async(f,w)=>{const $=await CL(f,w);if($.Error)$.Error.message=$.Error.message??$.Error.Message;return $},"parseXmlErrorBody"),kY=D((f,w)=>{var $;if((($=w==null?void 0:w.Error)==null?void 0:$.Code)!==void 0)return w.Error.Code;if((w==null?void 0:w.Code)!==void 0)return w.Code;if(f.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var DY=M((of)=>{Object.defineProperty(of,"__esModule",{value:!0});var Kw=LR();Kw.__exportStar(ZR(),of);Kw.__exportStar(pR(),of);Kw.__exportStar(NL(),of)});function tY(f){return f}var xL=(f)=>(w)=>async($)=>{if(!v.isInstance($.request))return w($);const{request:E}=$,{handlerProtocol:U=""}=f.requestHandler.metadata||{};if(U.indexOf("h2")>=0&&!E.headers[":authority"])delete E.headers.host,E.headers[":authority"]=E.hostname+(E.port?":"+E.port:"");else if(!E.headers.host){let G=E.hostname;if(E.port!=null)G+=`:${E.port}`;E.headers.host=G}return w($)},dL={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},aY=(f)=>({applyToStack:(w)=>{w.add(xL(f),dL)}});var pL=()=>(f,w)=>async($)=>{try{const E=await f($),{clientName:U,commandName:G,logger:W,dynamoDbDocumentClientOptions:R={}}=w,{overrideInputFilterSensitiveLog:L,overrideOutputFilterSensitiveLog:I}=R,F=L??w.inputFilterSensitiveLog,X=I??w.outputFilterSensitiveLog,{$metadata:Y,...Z}=E.output;return W?.info?.({clientName:U,commandName:G,input:F($.input),output:X(Z),metadata:Y}),E}catch(E){const{clientName:U,commandName:G,logger:W,dynamoDbDocumentClientOptions:R={}}=w,{overrideInputFilterSensitiveLog:L}=R,I=L??w.inputFilterSensitiveLog;throw W?.error?.({clientName:U,commandName:G,input:I($.input),error:E,metadata:E.$metadata}),E}},gL={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},f9=(f)=>({applyToStack:(w)=>{w.add(pL(),gL)}});var Nw="X-Amzn-Trace-Id",nL="AWS_LAMBDA_FUNCTION_NAME",sL="_X_AMZN_TRACE_ID",lL=(f)=>(w)=>async($)=>{const{request:E}=$;if(!v.isInstance(E)||f.runtime!=="node"||E.headers.hasOwnProperty(Nw))return w($);const U=process.env[nL],G=process.env[sL],W=(R)=>typeof R==="string"&&R.length>0;if(W(U)&&W(G))E.headers[Nw]=G;return w({...$,request:E})},rL={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},G9=(f)=>({applyToStack:(w)=>{w.add(lL(f),rL)}});function t9(f){return{...f,customUserAgent:typeof f.customUserAgent==="string"?[[f.customUserAgent]]:f.customUserAgent}}var X6=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}$"),df=(f)=>X6.test(f)||f.startsWith("[")&&f.endsWith("]");var Z6=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),pf=(f,w=!1)=>{if(!w)return Z6.test(f);const $=f.split(".");for(let E of $)if(!pf(E))return!1;return!0};var gf={};var i="endpoints";function y(f){if(typeof f!=="object"||f==null)return f;if("ref"in f)return`\$${y(f.ref)}`;if("fn"in f)return`${f.fn}(${(f.argv||[]).map(y).join(", ")})`;return JSON.stringify(f,null,2)}class B extends Error{constructor(f){super(f);this.name="EndpointError"}}var pG=(f,w)=>f===w;var gG=(f)=>{const w=f.split("."),$=[];for(let E of w){const U=E.indexOf("[");if(U!==-1){if(E.indexOf("]")!==E.length-1)throw new B(`Path: '${f}' does not end with ']'`);const G=E.slice(U+1,-1);if(Number.isNaN(parseInt(G)))throw new B(`Invalid array index: '${G}' in path: '${f}'`);if(U!==0)$.push(E.slice(0,U));$.push(G)}else $.push(E)}return $};var J0=(f,w)=>gG(w).reduce(($,E)=>{if(typeof $!=="object")throw new B(`Index '${E}' in '${w}' not found in '${JSON.stringify(f)}'`);else if(Array.isArray($))return $[parseInt(E)];return $[E]},f);var nG=(f)=>f!=null;var sG=(f)=>!f;var T0=o(qf(),1);var d1={[T0.EndpointURLScheme.HTTP]:80,[T0.EndpointURLScheme.HTTPS]:443},lG=(f)=>{const w=(()=>{try{if(f instanceof URL)return f;if(typeof f==="object"&&"hostname"in f){const{hostname:Y,port:Z,protocol:z="",path:Q="",query:T={}}=f,A=new URL(`${z}//${Y}${Z?`:${Z}`:""}${Q}`);return A.search=Object.entries(T).map(([J,K])=>`${J}=${K}`).join("&"),A}return new URL(f)}catch(Y){return null}})();if(!w)return console.error(`Unable to parse ${JSON.stringify(f)} as a whatwg URL.`),null;const $=w.href,{host:E,hostname:U,pathname:G,protocol:W,search:R}=w;if(R)return null;const L=W.slice(0,-1);if(!Object.values(T0.EndpointURLScheme).includes(L))return null;const I=df(U),F=$.includes(`${E}:${d1[L]}`)||typeof f==="string"&&f.includes(`${E}:${d1[L]}`),X=`${E}${F?`:${d1[L]}`:""}`;return{scheme:L,authority:X,path:G,normalizedPath:G.endsWith("/")?G:`${G}/`,isIp:I}};var rG=(f,w)=>f===w;var mG=(f,w,$,E)=>{if(w>=$||f.length<$)return null;if(!E)return f.substring(w,$);return f.substring(f.length-$,f.length-w)};var iG=(f)=>encodeURIComponent(f).replace(/[!*'()]/g,(w)=>`%${w.charCodeAt(0).toString(16).toUpperCase()}`);var oG={booleanEquals:pG,getAttr:J0,isSet:nG,isValidHostLabel:pf,not:sG,parseURL:lG,stringEquals:rG,substring:mG,uriEncode:iG};var A0=(f,w)=>{const $=[],E={...w.endpointParams,...w.referenceRecord};let U=0;while(U<f.length){const G=f.indexOf("{",U);if(G===-1){$.push(f.slice(U));break}$.push(f.slice(U,G));const W=f.indexOf("}",G);if(W===-1){$.push(f.slice(G));break}if(f[G+1]==="{"&&f[W+1]==="}")$.push(f.slice(G+1,W)),U=W+2;const R=f.substring(G+1,W);if(R.includes("#")){const[L,I]=R.split("#");$.push(J0(E[L],I))}else $.push(E[R]);U=W+1}return $.join("")};var tG=({ref:f},w)=>{return{...w.endpointParams,...w.referenceRecord}[f]};var a=(f,w,$)=>{if(typeof f==="string")return A0(f,$);else if(f.fn)return K0(f,$);else if(f.ref)return tG(f,$);throw new B(`'${w}': ${String(f)} is not a string, function or reference.`)};var K0=({fn:f,argv:w},$)=>{const E=w.map((G)=>["boolean","number"].includes(typeof G)?G:a(G,"arg",$)),U=f.split(".");if(U[0]in gf&&U[1]!=null)return gf[U[0]][U[1]](...E);return oG[f](...E)};var aG=({assign:f,...w},$)=>{if(f&&f in $.referenceRecord)throw new B(`'${f}' is already defined in Reference Record.`);const E=K0(w,$);return $.logger?.debug?.(`${i} evaluateCondition: ${y(w)} = ${y(E)}`),{result:E===""?!0:!!E,...f!=null&&{toAssign:{name:f,value:E}}}};var Af=(f=[],w)=>{const $={};for(let E of f){const{result:U,toAssign:G}=aG(E,{...w,referenceRecord:{...w.referenceRecord,...$}});if(!U)return{result:U};if(G)$[G.name]=G.value,w.logger?.debug?.(`${i} assign: ${G.name} := ${y(G.value)}`)}return{result:!0,referenceRecord:$}};var eG=(f,w)=>Object.entries(f).reduce(($,[E,U])=>({...$,[E]:U.map((G)=>{const W=a(G,"Header value entry",w);if(typeof W!=="string")throw new B(`Header '${E}' value '${W}' is not a string`);return W})}),{});var p1=(f,w)=>{if(Array.isArray(f))return f.map(($)=>p1($,w));switch(typeof f){case"string":return A0(f,w);case"object":if(f===null)throw new B(`Unexpected endpoint property: ${f}`);return B0(f,w);case"boolean":return f;default:throw new B(`Unexpected endpoint property type: ${typeof f}`)}};var B0=(f,w)=>Object.entries(f).reduce(($,[E,U])=>({...$,[E]:p1(U,w)}),{});var fW=(f,w)=>{const $=a(f,"Endpoint URL",w);if(typeof $==="string")try{return new URL($)}catch(E){throw console.error(`Failed to construct URL with ${$}`,E),E}throw new B(`Endpoint URL must be a string, got ${typeof $}`)};var wW=(f,w)=>{const{conditions:$,endpoint:E}=f,{result:U,referenceRecord:G}=Af($,w);if(!U)return;const W={...w,referenceRecord:{...w.referenceRecord,...G}},{url:R,properties:L,headers:I}=E;return w.logger?.debug?.(`${i} Resolving endpoint from template: ${y(E)}`),{...I!=null&&{headers:eG(I,W)},...L!=null&&{properties:B0(L,W)},url:fW(R,W)}};var $W=(f,w)=>{const{conditions:$,error:E}=f,{result:U,referenceRecord:G}=Af($,w);if(!U)return;throw new B(a(E,"Error",{...w,referenceRecord:{...w.referenceRecord,...G}}))};var UW=(f,w)=>{const{conditions:$,rules:E}=f,{result:U,referenceRecord:G}=Af($,w);if(!U)return;return V0(E,{...w,referenceRecord:{...w.referenceRecord,...G}})};var V0=(f,w)=>{for(let $ of f)if($.type==="endpoint"){const E=wW($,w);if(E)return E}else if($.type==="error")$W($,w);else if($.type==="tree"){const E=UW($,w);if(E)return E}else throw new B(`Unknown endpoint rule: ${$}`);throw new B("Rules evaluation failed")};var Y6=(f,w)=>{const{endpointParams:$,logger:E}=w,{parameters:U,rules:G}=f;w.logger?.debug?.(`${i} Initial EndpointParams: ${y($)}`);const W=Object.entries(U).filter(([,I])=>I.default!=null).map(([I,F])=>[I,F.default]);if(W.length>0)for(let[I,F]of W)$[I]=$[I]??F;const R=Object.entries(U).filter(([,I])=>I.required).map(([I])=>I);for(let I of R)if($[I]==null)throw new B(`Missing required parameter: '${I}'`);const L=V0(G,{endpointParams:$,logger:E,referenceRecord:{}});if(w.endpointParams?.Endpoint)try{const I=new URL(w.endpointParams.Endpoint),{protocol:F,port:X}=I;L.url.protocol=F,L.url.port=X}catch(I){}return w.logger?.debug?.(`${i} Resolved endpoint: ${y(L)}`),L};var g1=(f,w=!1)=>{if(w){for(let $ of f.split("."))if(!g1($))return!1;return!0}if(!pf(f))return!1;if(f.length<3||f.length>63)return!1;if(f!==f.toLowerCase())return!1;if(df(f))return!1;return!0};var EW=(f)=>{const w=f.split(":");if(w.length<6)return null;const[$,E,U,G,W,...R]=w;if($!=="arn"||E===""||U===""||R[0]==="")return null;return{partition:E,service:U,region:G,accountId:W,resourceId:R[0].includes("/")?R[0].split("/"):R}};var GW={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 z6=GW,M6="",WW=(f)=>{const{partitions:w}=z6;for(let E of w){const{regions:U,outputs:G}=E;for(let[W,R]of Object.entries(U))if(W===f)return{...G,...R}}for(let E of w){const{regionRegex:U,outputs:G}=E;if(new RegExp(U).test(f))return{...G}}const $=w.find((E)=>E.id==="aws");if(!$)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...$.outputs}};var RW=()=>M6;var Q6={isVirtualHostableS3Bucket:g1,parseArn:EW,partition:WW};gf.aws=Q6;var n1="user-agent",H0="x-amz-user-agent",s1=" ",C0="/",LW=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,IW=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,l1="-";var J6=(f)=>(w,$)=>async(E)=>{const{request:U}=E;if(!v.isInstance(U))return w(E);const{headers:G}=U,W=$?.userAgent?.map(r1)||[],R=(await f.defaultUserAgentProvider()).map(r1),L=f?.customUserAgent?.map(r1)||[],I=RW(),F=(I?[I]:[]).concat([...R,...W,...L]).join(s1),X=[...R.filter((Y)=>Y.startsWith("aws-sdk-")),...L].join(s1);if(f.runtime!=="browser"){if(X)G[H0]=G[H0]?`${G[n1]} ${X}`:X;G[n1]=F}else G[H0]=F;return w({...E,request:U})},r1=(f)=>{const w=f[0].split(C0).map((W)=>W.replace(LW,l1)).join(C0),$=f[1]?.replace(IW,l1),E=w.indexOf(C0),U=w.substring(0,E);let G=w.substring(E+1);if(U==="api")G=G.toLowerCase();return[U,G,$].filter((W)=>W&&W.length>0).reduce((W,R,L)=>{switch(L){case 0:return R;case 1:return`${W}/${R}`;default:return`${W}#${R}`}},"")},T6={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},jz=(f)=>({applyToStack:(w)=>{w.add(J6(f),T6)}});var q0=(f)=>typeof f==="string"&&(f.startsWith("fips-")||f.endsWith("-fips"));var m1=(f)=>q0(f)?["fips-aws-global","aws-fips"].includes(f)?"us-east-1":f.replace(/fips-(dkr-|prod-)?|-fips/,""):f;var xz=(f)=>{const{region:w,useFipsEndpoint:$}=f;if(!w)throw new Error("Region is missing");return{...f,region:async()=>{if(typeof w==="string")return m1(w);const E=await w();return m1(E)},useFipsEndpoint:async()=>{const E=typeof w==="string"?w:await w();if(q0(E))return!0;return typeof $!=="function"?Promise.resolve(!!$):$()}}};var Kf=(f,w,$)=>{if(!(w in f))return;if(f[w]==="true")return!0;if(f[w]==="false")return!1;throw new Error(`Cannot load ${$} "${w}". Expected "true" or "false", got ${f[w]}.`)};var e;(function(f){f.ENV="env",f.CONFIG="shared config entry"})(e||(e={}));var A6="AWS_USE_DUALSTACK_ENDPOINT",K6="use_dualstack_endpoint";var oz={environmentVariableSelector:(f)=>Kf(f,A6,e.ENV),configFileSelector:(f)=>Kf(f,K6,e.CONFIG),default:!1};var B6="AWS_USE_FIPS_ENDPOINT",V6="use_fips_endpoint";var ez={environmentVariableSelector:(f)=>Kf(f,B6,e.ENV),configFileSelector:(f)=>Kf(f,V6,e.CONFIG),default:!1};var H6=o(s(),1);var C6=o(s(),1);var FW={environmentVariableSelector:(f)=>f["AWS_REGION"],configFileSelector:(f)=>f["region"],default:()=>{throw new Error("Region is missing")}},XM={preferredFile:"credentials"};function q6(f){return(w)=>async($)=>{const E=$.request;if(v.isInstance(E)){const{body:U,headers:G}=E;if(U&&Object.keys(G).map((W)=>W.toLowerCase()).indexOf(XW)===-1)try{const W=f(U);E.headers={...E.headers,[XW]:String(W)}}catch(W){}}return w({...$,request:E})}}var XW="content-length",N6={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},_M=(f)=>({applyToStack:(w)=>{w.add(q6(f.bodyLengthChecker),N6)}});var ZW=(f,w)=>($)=>async(E)=>{const{response:U}=await $(E);try{const G=await w(U,f);return{response:U,output:G}}catch(G){if(Object.defineProperty(G,"$response",{value:U}),!("$metadata"in G)){if(G.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof G.$responseBodyText!=="undefined"){if(G.$response)G.$response.body=G.$responseBodyText}}throw G}};var YW=(f,w)=>($,E)=>async(U)=>{const G=E.endpointV2?.url&&f.urlParser?async()=>f.urlParser(E.endpointV2.url):f.endpoint;if(!G)throw new Error("No valid endpoint provider available.");const W=await w(U.input,{...f,endpoint:G});return $({...U,request:W})};function nM(f,w,$){return{applyToStack:(E)=>{E.add(ZW(f,$),P6),E.add(YW(f,w),i1)}}}var P6={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},i1={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};var KW=o(s(),1);var OW=async(f)=>{const w=f?.Bucket||"";if(typeof f.Bucket==="string")f.Bucket=w.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(c6(w)){if(f.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!h6(w)||w.indexOf(".")!==-1&&!String(f.Endpoint).startsWith("http:")||w.toLowerCase()!==w||w.length<3)f.ForcePathStyle=!0;if(f.DisableMultiRegionAccessPoints)f.disableMultiRegionAccessPoints=!0,f.DisableMRAP=!0;return f},S6=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,j6=/(\d+\.){3}\d+/,b6=/\.\./;var h6=(f)=>S6.test(f)&&!j6.test(f)&&!b6.test(f),c6=(f)=>{const[w,$,E,,,U]=f.split(":"),G=w==="arn"&&f.split(":").length>=6,W=Boolean(G&&$&&E&&U);if(G&&!W)throw new Error(`Invalid ARN: ${f} was an invalid ARN.`);return W};var zW=(f,w,$)=>{const E=async()=>{const U=$[f]??$[w];if(typeof U==="function")return U();return U};if(f==="credentialScope"||w==="CredentialScope")return async()=>{const U=typeof $.credentials==="function"?await $.credentials():$.credentials;return U?.credentialScope??U?.CredentialScope};if(f==="accountId"||w==="AccountId")return async()=>{const U=typeof $.credentials==="function"?await $.credentials():$.credentials;return U?.accountId??U?.AccountId};if(f==="endpoint"||w==="endpoint")return async()=>{const U=await E();if(U&&typeof U==="object"){if("url"in U)return U.url.href;if("hostname"in U){const{protocol:G,hostname:W,port:R,path:L}=U;return`${G}//${W}${R?":"+R:""}${L}`}}return U};return E};var MW="AWS_ENDPOINT_URL",QW="endpoint_url",JW=(f)=>({environmentVariableSelector:(w)=>{const $=f.split(" ").map((G)=>G.toUpperCase()),E=w[[MW,...$].join("_")];if(E)return E;const U=w[MW];if(U)return U;return},configFileSelector:(w,$)=>{if($&&w.services){const U=$[["services",w.services].join(o1)];if(U){const G=f.split(" ").map((R)=>R.toLowerCase()),W=U[[G.join("_"),QW].join(o1)];if(W)return W}}const E=w[QW];if(E)return E;return},default:void 0});var TW=async(f)=>Wf(JW(f))();var t1=o(O$(),1),N0=(f)=>{if(typeof f==="object"){if("url"in f)return t1.parseUrl(f.url);return f}return t1.parseUrl(f)};var AW=async(f,w,$,E)=>{if(!$.endpoint){const W=await TW($.serviceId||"");if(W)$.endpoint=()=>Promise.resolve(N0(W))}const U=await k6(f,w,$);if(typeof $.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return $.endpointProvider(U,E)},k6=async(f,w,$)=>{const E={},U=w?.getEndpointParameterInstructions?.()||{};for(let[G,W]of Object.entries(U))switch(W.type){case"staticContextParams":E[G]=W.value;break;case"contextParams":E[G]=f[W.name];break;case"clientContextParams":case"builtInParams":E[G]=await zW(W.name,G,$)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(W))}if(Object.keys(U).length===0)Object.assign(E,$);if(String($.serviceId).toLowerCase()==="s3")await OW(E);return E};var BW=({config:f,instructions:w})=>{return($,E)=>async(U)=>{const G=await AW(U.input,{getEndpointParameterInstructions(){return w}},{...f},E);E.endpointV2=G,E.authSchemes=G.properties?.authSchemes;const W=E.authSchemes?.[0];if(W){E.signing_region=W.signingRegion,E.signing_service=W.signingName;const L=KW.getSmithyContext(E)?.selectedHttpAuthScheme?.httpAuthOption;if(L)L.signingProperties=Object.assign(L.signingProperties||{},{signing_region:W.signingRegion,signingRegion:W.signingRegion,signing_service:W.signingName,signingName:W.signingName,signingRegionSet:W.signingRegionSet},W.properties)}return $({...U})}};var D6={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:i1.name},zQ=(f,w)=>({applyToStack:($)=>{$.addRelativeTo(BW({config:f,instructions:w}),D6)}});var P0=o(s(),1);var JQ=(f)=>{const w=f.tls??!0,{endpoint:$}=f,E=$!=null?async()=>N0(await P0.normalizeProvider($)()):void 0;return{...f,endpoint:E,tls:w,isCustomEndpoint:!!$,useDualstackEndpoint:P0.normalizeProvider(f.useDualstackEndpoint??!1),useFipsEndpoint:P0.normalizeProvider(f.useFipsEndpoint??!1)}};var r=o(Z1(),1),SQ=r.default.v1,jQ=r.default.v3,VW=r.default.v4,bQ=r.default.v5,hQ=r.default.NIL,cQ=r.default.version,kQ=r.default.validate,DQ=r.default.stringify,uQ=r.default.parse;var Ew=o(s(),1);var n;(function(f){f.STANDARD="standard",f.ADAPTIVE="adaptive"})(n||(n={}));var Rf=3,HW=n.STANDARD;var CW=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],qW=["TimeoutError","RequestTimeout","RequestTimeoutException"],NW=[500,502,503,504],PW=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];var u6=(f)=>f.$metadata?.clockSkewCorrected,Bf=(f)=>f.$metadata?.httpStatusCode===429||CW.includes(f.name)||f.$retryable?.throttling==!0,S0=(f)=>u6(f)||qW.includes(f.name)||PW.includes(f?.code||"")||NW.includes(f.$metadata?.httpStatusCode||0),SW=(f)=>{if(f.$metadata?.httpStatusCode!==void 0){const w=f.$metadata.httpStatusCode;if(500<=w&&w<=599&&!S0(f))return!0;return!1}return!1};class j0{constructor(f){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=f?.beta??0.7,this.minCapacity=f?.minCapacity??1,this.minFillRate=f?.minFillRate??0.5,this.scaleConstant=f?.scaleConstant??0.4,this.smooth=f?.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(f){if(!this.enabled)return;if(this.refillTokenBucket(),f>this.currentCapacity){const w=(f-this.currentCapacity)/this.fillRate*1000;await new Promise(($)=>setTimeout($,w))}this.currentCapacity=this.currentCapacity-f}refillTokenBucket(){const f=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=f;return}const w=(f-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+w),this.lastTimestamp=f}updateClientSendingRate(f){let w;if(this.updateMeasuredRate(),Bf(f)){const E=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=E,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),w=this.cubicThrottle(E),this.enableTokenBucket()}else this.calculateTimeWindow(),w=this.cubicSuccess(this.getCurrentTimeInSeconds());const $=Math.min(w,2*this.measuredTxRate);this.updateTokenBucketRate($)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(f){return this.getPrecise(f*this.beta)}cubicSuccess(f){return this.getPrecise(this.scaleConstant*Math.pow(f-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(f){this.refillTokenBucket(),this.fillRate=Math.max(f,this.minFillRate),this.maxCapacity=Math.max(f,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const f=this.getCurrentTimeInSeconds(),w=Math.floor(f*2)/2;if(this.requestCount++,w>this.lastTxRateBucket){const $=this.requestCount/(w-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise($*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=w}}getPrecise(f){return parseFloat(f.toFixed(8))}}var Lf=100,nf=20000,a1=500,b0=500,e1=5,fw=10,ww=1,h0="amz-sdk-invocation-id",c0="amz-sdk-request";var jW=()=>{let f=Lf;return{computeNextBackoffDelay:(E)=>{return Math.floor(Math.min(nf,Math.random()*2**E*f))},setDelayBase:(E)=>{f=E}}};var $w=({retryDelay:f,retryCount:w,retryCost:$})=>{return{getRetryCount:()=>w,getRetryDelay:()=>Math.min(nf,f),getRetryCost:()=>$}};class Vf{constructor(f){this.maxAttempts=f,this.mode=n.STANDARD,this.capacity=b0,this.retryBackoffStrategy=jW(),this.maxAttemptsProvider=typeof f==="function"?f:async()=>f}async acquireInitialRetryToken(f){return $w({retryDelay:Lf,retryCount:0})}async refreshRetryTokenForRetry(f,w){const $=await this.getMaxAttempts();if(this.shouldRetry(f,w,$)){const E=w.errorType;this.retryBackoffStrategy.setDelayBase(E==="THROTTLING"?a1:Lf);const U=this.retryBackoffStrategy.computeNextBackoffDelay(f.getRetryCount()),G=w.retryAfterHint?Math.max(w.retryAfterHint.getTime()-Date.now()||0,U):U,W=this.getCapacityCost(E);return this.capacity-=W,$w({retryDelay:G,retryCount:f.getRetryCount()+1,retryCost:W})}throw new Error("No retry token available")}recordSuccess(f){this.capacity=Math.max(b0,this.capacity+(f.getRetryCost()??ww))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(f){return console.warn(`Max attempts provider could not resolve. Using default of ${Rf}`),Rf}}shouldRetry(f,w,$){return f.getRetryCount()+1<$&&this.capacity>=this.getCapacityCost(w.errorType)&&this.isRetryableError(w.errorType)}getCapacityCost(f){return f==="TRANSIENT"?fw:e1}isRetryableError(f){return f==="THROTTLING"||f==="TRANSIENT"}}class Uw{constructor(f,w){this.maxAttemptsProvider=f,this.mode=n.ADAPTIVE;const{rateLimiter:$}=w??{};this.rateLimiter=$??new j0,this.standardRetryStrategy=new Vf(f)}async acquireInitialRetryToken(f){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(f)}async refreshRetryTokenForRetry(f,w){return this.rateLimiter.updateClientSendingRate(w),this.standardRetryStrategy.refreshRetryTokenForRetry(f,w)}recordSuccess(f){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(f)}}var bW="AWS_MAX_ATTEMPTS",hW="max_attempts",QJ={environmentVariableSelector:(f)=>{const w=f[bW];if(!w)return;const $=parseInt(w);if(Number.isNaN($))throw new Error(`Environment variable ${bW} mast be a number, got "${w}"`);return $},configFileSelector:(f)=>{const w=f[hW];if(!w)return;const $=parseInt(w);if(Number.isNaN($))throw new Error(`Shared config file entry ${hW} mast be a number, got "${w}"`);return $},default:Rf},JJ=(f)=>{const{retryStrategy:w}=f,$=Ew.normalizeProvider(f.maxAttempts??Rf);return{...f,maxAttempts:$,retryStrategy:async()=>{if(w)return w;if(await Ew.normalizeProvider(f.retryMode)()===n.ADAPTIVE)return new Uw($);return new Vf($)}}},v6="AWS_RETRY_MODE",_6="retry_mode",TJ={environmentVariableSelector:(f)=>f[v6],configFileSelector:(f)=>f[_6],default:HW};import{Readable as y6} from"stream";var cW=(f)=>f?.body instanceof y6||typeof ReadableStream!=="undefined"&&f?.body instanceof ReadableStream;var Gw=(f)=>{if(f instanceof Error)return f;if(f instanceof Object)return Object.assign(new Error,f);if(typeof f==="string")return new Error(f);return new Error(`AWS SDK error wrapper for ${f}`)};var x6=(f)=>(w,$)=>async(E)=>{let U=await f.retryStrategy();const G=await f.maxAttempts();if(d6(U)){U=U;let W=await U.acquireInitialRetryToken($.partition_id),R=new Error,L=0,I=0;const{request:F}=E,X=v.isInstance(F);if(X)F.headers[h0]=VW();while(!0)try{if(X)F.headers[c0]=`attempt=${L+1}; max=${G}`;const{response:Y,output:Z}=await w(E);return U.recordSuccess(W),Z.$metadata.attempts=L+1,Z.$metadata.totalRetryDelay=I,{response:Y,output:Z}}catch(Y){const Z=p6(Y);if(R=Gw(Y),X&&cW(F))throw($.logger instanceof kW?console:$.logger)?.warn("An error was encountered in a non-retryable streaming request."),R;try{W=await U.refreshRetryTokenForRetry(W,Z)}catch(Q){if(!R.$metadata)R.$metadata={};throw R.$metadata.attempts=L+1,R.$metadata.totalRetryDelay=I,R}L=W.getRetryCount();const z=W.getRetryDelay();I+=z,await new Promise((Q)=>setTimeout(Q,z))}}else{if(U=U,U?.mode)$.userAgent=[...$.userAgent||[],["cfg/retry-mode",U.mode]];return U.retry(w,E)}},d6=(f)=>typeof f.acquireInitialRetryToken!=="undefined"&&typeof f.refreshRetryTokenForRetry!=="undefined"&&typeof f.recordSuccess!=="undefined",p6=(f)=>{const w={error:f,errorType:g6(f)},$=s6(f.$response);if($)w.retryAfterHint=$;return w},g6=(f)=>{if(Bf(f))return"THROTTLING";if(S0(f))return"TRANSIENT";if(SW(f))return"SERVER_ERROR";return"CLIENT_ERROR"},n6={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},bJ=(f)=>({applyToStack:(w)=>{w.add(x6(f),n6)}}),s6=(f)=>{if(!Ww.isInstance(f))return;const w=Object.keys(f.headers).find((G)=>G.toLowerCase()==="retry-after");if(!w)return;const $=f.headers[w],E=Number($);if(!Number.isNaN(E))return new Date(E*1000);return new Date($)};import{platform as uY,release as vY} from"os";import{env as SL,versions as _Y} from"process";var Bw={isCrtAvailable:!1};var PL=()=>{if(Bw.isCrtAvailable)return["md/crt-avail"];return null};var yY="AWS_SDK_UA_APP_ID",xY="sdk-ua-app-id",_T=({serviceId:f,clientVersion:w})=>{const $=[["aws-sdk-js",w],["ua","2.0"],[`os/${uY()}`,vY()],["lang/js"],["md/nodejs",`${_Y.node}`]],E=PL();if(E)$.push(E);if(f)$.push([`api/${f}`,w]);if(SL.AWS_EXECUTION_ENV)$.push([`exec-env/${SL.AWS_EXECUTION_ENV}`]);const U=Wf({environmentVariableSelector:(W)=>W[yY],configFileSelector:(W)=>W[xY],default:void 0})();let G=void 0;return async()=>{if(!G){const W=await U;G=W?[...$,[`app/${W}`]]:[...$]}return G}};import{Buffer as dY} from"buffer";import{createHash as pY,createHmac as gY} from"crypto";var jL=function(f,w){if(dY.isBuffer(f))return f;if(typeof f==="string")return bL(f,w);if(ArrayBuffer.isView(f))return Vw(f.buffer,f.byteOffset,f.byteLength);return Vw(f)};class nY{constructor(f,w){this.algorithmIdentifier=f,this.secret=w,this.reset()}update(f,w){this.hash.update(hL(jL(f,w)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?gY(this.algorithmIdentifier,jL(this.secret)):pY(this.algorithmIdentifier)}}import{fstatSync as sY,lstatSync as lY} from"fs";var rT=(f)=>{if(!f)return 0;if(typeof f==="string")return Buffer.byteLength(f);else if(typeof f.byteLength==="number")return f.byteLength;else if(typeof f.size==="number")return f.size;else if(typeof f.start==="number"&&typeof f.end==="number")return f.end+1-f.start;else if(typeof f.path==="string"||Buffer.isBuffer(f.path))return lY(f.path).size;else if(typeof f.fd==="number")return sY(f.fd).size;throw new Error(`Body Length computation failed for ${f}`)};var _L=o(w1(),1);var cL="AWS_EXECUTION_ENV",Hw="AWS_REGION",Cw="AWS_DEFAULT_REGION",kL="AWS_EC2_METADATA_DISABLED",DL=["in-region","cross-region","mobile","standard","legacy"],uL="/latest/meta-data/placement/region";var vL={environmentVariableSelector:(f)=>{return f["AWS_DEFAULTS_MODE"]},configFileSelector:(f)=>{return f["defaults_mode"]},default:"legacy"};var UA=({region:f=Wf(FW),defaultsMode:w=Wf(vL)}={})=>_L.memoize(async()=>{const $=typeof w==="function"?await w():w;switch($?.toLowerCase()){case"auto":return rY(f);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve($?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${DL.join(", ")}, got ${$}`)}}),rY=async(f)=>{if(f){const w=typeof f==="function"?await f():f,$=await mY();if(!$)return"standard";if(w===$)return"in-region";else return"cross-region"}return"standard"},mY=async()=>{if(process.env[cL]&&(process.env[Hw]||process.env[Cw]))return process.env[Hw]??process.env[Cw];if(!process.env[kL])try{const{getInstanceMetadataEndpoint:f,httpRequest:w}=await import("./chunk-adb4e1e222eb1d20.js"),$=await f();return(await w({...$,path:uL})).toString()}catch(f){}};var RA=(f)=>{let w=async()=>{if(f.region===void 0)throw new Error("Region is missing from runtimeConfig");const $=f.region;if(typeof $==="string")return $;return $()};return{setRegion($){w=$},region(){return w}}},LA=(f)=>{return{region:f.region()}};export{tY as Ga,aY as Ha,f9 as Ia,G9 as Ja,s as Ka,Kf as La,e as Ma,x1 as Na,t9 as Oa,gf as Pa,Y6 as Qa,Q6 as Ra,jz as Sa,oz as Ta,ez as Ua,FW as Va,XM as Wa,xz as Xa,_M as Ya,k6 as Za,nM as _a,zQ as $a,JQ as ab,HW as bb,VW as cb,QJ as db,JJ as eb,TJ as fb,bJ as gb,LR as hb,DY as ib,_T as jb,nY as kb,rT as lb,UA as mb,RA as nb,LA as ob};
@@ -1,2 +0,0 @@
1
- import{y as D} from"./chunk-a5c18c07abe8fd9c.js";var S=D((y,w)=>{var{defineProperty:G,getOwnPropertyDescriptor:v,getOwnPropertyNames:O}=Object,x=Object.prototype.hasOwnProperty,Q=(b,j)=>G(b,"name",{value:j,configurable:!0}),U=(b,j)=>{for(var z in j)G(b,z,{get:j[z],enumerable:!0})},K=(b,j,z,V)=>{if(j&&typeof j==="object"||typeof j==="function"){for(let B of O(j))if(!x.call(b,B)&&B!==z)G(b,B,{get:()=>j[B],enumerable:!(V=v(j,B))||V.enumerable})}return b},q=(b)=>K(G({},"__esModule",{value:!0}),b),W={};U(W,{AlgorithmId:()=>J,EndpointURLScheme:()=>X,FieldPosition:()=>M,HttpApiKeyAuthLocation:()=>$,HttpAuthLocation:()=>Z,IniSectionType:()=>N,RequestHandlerProtocol:()=>Y,SMITHY_CONTEXT_KEY:()=>R,getDefaultClientConfiguration:()=>T,resolveDefaultRuntimeConfig:()=>k});w.exports=q(W);var Z=((b)=>{return b.HEADER="header",b.QUERY="query",b})(Z||{}),$=((b)=>{return b.HEADER="header",b.QUERY="query",b})($||{}),X=((b)=>{return b.HTTP="http",b.HTTPS="https",b})(X||{}),J=((b)=>{return b.MD5="md5",b.CRC32="crc32",b.CRC32C="crc32c",b.SHA1="sha1",b.SHA256="sha256",b})(J||{}),E=Q((b)=>{const j=[];if(b.sha256!==void 0)j.push({algorithmId:()=>"sha256",checksumConstructor:()=>b.sha256});if(b.md5!=null)j.push({algorithmId:()=>"md5",checksumConstructor:()=>b.md5});return{_checksumAlgorithms:j,addChecksumAlgorithm(z){this._checksumAlgorithms.push(z)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),F=Q((b)=>{const j={};return b.checksumAlgorithms().forEach((z)=>{j[z.algorithmId()]=z.checksumConstructor()}),j},"resolveChecksumRuntimeConfig"),T=Q((b)=>{return{...E(b)}},"getDefaultClientConfiguration"),k=Q((b)=>{return{...F(b)}},"resolveDefaultRuntimeConfig"),M=((b)=>{return b[b.HEADER=0]="HEADER",b[b.TRAILER=1]="TRAILER",b})(M||{}),R="__smithy_context",N=((b)=>{return b.PROFILE="profile",b.SSO_SESSION="sso-session",b.SERVICES="services",b})(N||{}),Y=((b)=>{return b.HTTP_0_9="http/0.9",b.HTTP_1_0="http/1.0",b.TDS_8_0="tds/8.0",b})(Y||{})});
2
- export{S as hb};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{x as i} from"./chunk-a5c18c07abe8fd9c.js";import{A as _e,D as ee,E as Ae,I as se,J as te,L as re,M as ae,P as ie,Q as le,W as ts,X as k,aa as z,ba as Ve,ca as h,ja as He,ka as u,la as Ne,ma as pe,na as ye,oa as $e,pa as Pe,ra as c,sa as y,ua as fe,z as Fe} from"./chunk-d9968563c6c84405.js";import{$a as x,Ca as B,Da as _,Ea as $,Fa as Ke,Ga as V,Ha as N,Ia as f,Ja as Qe,Ka as me,La as he,Ma as ue,Na as we,Oa as Xe,Pa as Ye,Ra as rs,Sa as as,Ta as Ze,Ua as be,Wa as xe,Xa as je,Ya as ve,Za as Te,ab as ke,bb as Re,cb as qe,db as Ee,eb as Je,fb as Ue,va as Le,wa as Ce,xa as Me,ya as We} from"./chunk-6821bb0ff6ed2452.js";import"./chunk-3bf6f8c8e8589e3d.js";import{hb as l,ib as ne} from"./chunk-0b5fb4e0c7de8316.js";import"./chunk-2ec287222364c6b6.js";import"./chunk-c62b5c4cec67029c.js";var p=i(B(),1);var P=i(x(),1);var cs=function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(s,t)=>({signingProperties:{config:s,context:t}})}},b=function(e){return{schemeId:"smithy.api#noAuth"}},J=async(e,s,t)=>{return{operation:_(s).operation,region:await $(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},U=(e)=>{const s=[];switch(e.operation){case"GetRoleCredentials":{s.push(b(e));break}case"ListAccountRoles":{s.push(b(e));break}case"ListAccounts":{s.push(b(e));break}case"Logout":{s.push(b(e));break}default:s.push(cs(e))}return s},I=(e)=>{return{...P.resolveAwsSdkSigV4Config(e)}};var L=(e)=>{return{...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}},C={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var M={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.629.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.629.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.620.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.614.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.3.2","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.14","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.1.12","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.14","@smithy/util-defaults-mode-node":"^3.0.14","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}};var Se=i(x(),1);var de=i(x(),1),oe=i(B(),1);var W={["required"]:!1,type:"String"},A={["required"]:!0,default:!1,type:"Boolean"},K={["ref"]:"Endpoint"},T={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},H={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},d={},Q={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},O={["ref"]:"PartitionResult"},X={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[O,"supportsDualStack"]}]},Y=[T],Z=[H],j=[{["ref"]:"Region"}],ls={version:"1.0",parameters:{Region:W,UseDualStack:A,UseFIPS:A,Endpoint:W},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[K]}],rules:[{conditions:Y,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:Z,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:K,properties:d,headers:d},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:j}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:j,assign:"PartitionResult"}],rules:[{conditions:[T,H],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,Q]},X],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:Y,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[Q,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[O,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:d,headers:d},type:"endpoint"},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:Z,rules:[{conditions:[X],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},G=ls;var g=(e,s={})=>{return N(G,{endpointParams:e,logger:s.logger})};V.aws=f;var ce=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??se,base64Encoder:e?.base64Encoder??ae,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??g,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??U,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new de.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new oe.NoAuthSigner}],logger:e?.logger??new ee,serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??ne,utf8Decoder:e?.utf8Decoder??te,utf8Encoder:e?.utf8Encoder??re}};var ze=(e)=>{ye(process.version);const s=Ee(e),t=()=>s().then(pe),r=ce(e);return Se.emitWarningIfUnsupportedVersion(process.version),{...r,...e,runtime:"node",defaultsMode:s,bodyLengthChecker:e?.bodyLengthChecker??qe,defaultUserAgentProvider:e?.defaultUserAgentProvider??ke({serviceId:r.serviceId,clientVersion:M.version}),maxAttempts:e?.maxAttempts??l(xe),region:e?.region??l(ue,we),requestHandler:ie.create(e?.requestHandler??t),retryMode:e?.retryMode??l({...ve,default:async()=>(await t()).retryMode||be}),sha256:e?.sha256??Re.bind(null,"sha256"),streamCollector:e?.streamCollector??le,useDualstackEndpoint:e?.useDualstackEndpoint??l(me),useFipsEndpoint:e?.useFipsEndpoint??l(he)}};var De=(e)=>{const s=e.httpAuthSchemes;let{httpAuthSchemeProvider:t,credentials:r}=e;return{setHttpAuthScheme(a){const n=s.findIndex((D)=>D.schemeId===a.schemeId);if(n===-1)s.push(a);else s.splice(n,1,a)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(a){t=a},httpAuthSchemeProvider(){return t},setCredentials(a){r=a},credentials(){return r}}},Be=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};var v=(e)=>e,Ie=(e,s)=>{const t={...v(Je(e)),...v($e(e)),...v(Fe(e)),...v(De(e))};return s.forEach((r)=>r.configure(t)),{...e,...Ue(t),...Pe(t),..._e(t),...Be(t)}};class ps extends Ae{constructor(...[e]){const s=ze(e||{}),t=L(s),r=Ke(t),a=je(r),n=Xe(a),D=Le(n),ns=Ze(D),ds=I(ns),F=Ie(ds,e?.extensions||[]);super(F);this.config=F,this.middlewareStack.use(Qe(this.config)),this.middlewareStack.use(Te(this.config)),this.middlewareStack.use(Ye(this.config)),this.middlewareStack.use(Ce(this.config)),this.middlewareStack.use(Me(this.config)),this.middlewareStack.use(We(this.config)),this.middlewareStack.use(p.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:async(os)=>new p.DefaultIdentityProviderConfig({"aws.auth#sigv4":os.credentials})})),this.middlewareStack.use(p.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class o extends He{constructor(e){super(e);Object.setPrototypeOf(this,o.prototype)}}class R extends o{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,R.prototype)}}class q extends o{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,q.prototype)}}class E extends o{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,E.prototype)}}class S extends o{constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,S.prototype)}}var Oe=(e)=>({...e,...e.accessToken&&{accessToken:k}}),ys=(e)=>({...e,...e.secretAccessKey&&{secretAccessKey:k},...e.sessionToken&&{sessionToken:k}}),Ge=(e)=>({...e,...e.roleCredentials&&{roleCredentials:ys(e.roleCredentials)}});var m=i(x(),1),ge=i(B(),1);var es=async(e,s)=>{const t=ge.requestBuilder(e,s),r=c({},vs,{[zs]:e[Rs]});t.bp("/federation/credentials");const a=c({[Ss]:[,z(e[Es],"roleName")],[qs]:[,z(e[ks],"accountId")]});let n;return t.m("GET").h(r).q(a).b(n),t.build()};var ss=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return ms(e,s);const t=c({$metadata:w(e)}),r=z(Ve(await m.parseJsonBody(e.body,s)),"body"),a=y(r,{roleCredentials:fe});return Object.assign(t,a),t};var ms=async(e,s)=>{const t={...e,body:await m.parseJsonErrorBody(e.body,s)},r=m.loadRestJsonErrorCode(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await us(t,s);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await ws(t,s);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await bs(t,s);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await xs(t,s);default:const a=t.body;return hs({output:e,parsedBody:a,errorCode:r})}},hs=Ne(o),us=async(e,s)=>{const t=c({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new R({$metadata:w(e),...t});return u(n,e.body)},ws=async(e,s)=>{const t=c({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new q({$metadata:w(e),...t});return u(n,e.body)},bs=async(e,s)=>{const t=c({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new E({$metadata:w(e),...t});return u(n,e.body)},xs=async(e,s)=>{const t=c({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new S({$metadata:w(e),...t});return u(n,e.body)},w=(e)=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});var vs=(e)=>e!==void 0&&e!==null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),ks="accountId",Rs="accessToken",qs="account_id";var Es="roleName",Ss="role_name",zs="x-amz-sso_bearer_token";class Ds extends ts.classBuilder().ep({...C}).m(function(e,s,t,r){return[rs(t,this.serialize,this.deserialize),as(t,e.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(Oe,Ge).ser(es).de(ss).build(){}export{ps as SSOClient,Ds as GetRoleCredentialsCommand};
@@ -1,9 +0,0 @@
1
- import{t as $,u as w,v as z} from"./chunk-d2e057b6f3f9d500.js";import{tb as q,vb as G,xb as Y} from"./chunk-dfc390f0bbdf5a81.js";import{zb as Z} from"./chunk-e33c33445a92adf1.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-dba84b47adec2108.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-cf3d1744ea801f48.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-a210ec2b987fa5f7.js");return B(b)()},async()=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:j}=await import("./chunk-f74928c3f9ae5359.js");return j(b)()},async()=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:j}=await import("./chunk-ad8e7de66d8bf8c5.js");return j(b)()},async()=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:j}=await import("./chunk-2b3eabd01b2ae3f8.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 yb};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{y as i} from"./chunk-7ce930fe69575c87.js";import"./chunk-d7c78cd1ab7dc7ed.js";import{Aa as y,Ca as fe,F as Fe,G as _e,J as ee,L as Ae,P as se,Q as te,S as re,T as ae,W as ie,X as le,ca as ts,da as k,ia as z,ja as Ve,ka as h,ra as He,sa as u,ta as Ne,ua as pe,va as ye,wa as $e,xa as Pe,za as c} from"./chunk-3f1eaa4b49aa9a15.js";import{$a as Ze,Ea as Le,Fa as Ce,Ga as Me,Ha as We,Ia as _,Ja as $,Ma as B,Na as Ke,Oa as V,Pa as N,Qa as f,Ra as Qe,Sa as me,Ta as he,Ua as ue,Va as we,Wa as Xe,Xa as Ye,Za as rs,_a as as,ab as be,cb as xe,db as je,eb as ve,fb as Te,gb as x,hb as ke,ib as Re,jb as qe,kb as Ee,lb as Je,mb as Ue} from"./chunk-2a0e8565f874d787.js";import"./chunk-14e60554a2e78f4a.js";import{ob as l,pb as ne} from"./chunk-d950bbcb684a11ef.js";import"./chunk-2a5b4dfab2e26e21.js";import"./chunk-eeb3b193701aec43.js";var p=i(B(),1);var P=i(x(),1);var cs=function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(s,t)=>({signingProperties:{config:s,context:t}})}},b=function(e){return{schemeId:"smithy.api#noAuth"}},J=async(e,s,t)=>{return{operation:_(s).operation,region:await $(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},U=(e)=>{const s=[];switch(e.operation){case"GetRoleCredentials":{s.push(b(e));break}case"ListAccountRoles":{s.push(b(e));break}case"ListAccounts":{s.push(b(e));break}case"Logout":{s.push(b(e));break}default:s.push(cs(e))}return s},I=(e)=>{return{...P.resolveAwsSdkSigV4Config(e)}};var L=(e)=>{return{...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}},C={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var M={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.629.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.629.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.620.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.614.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.3.2","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.14","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.1.12","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.14","@smithy/util-defaults-mode-node":"^3.0.14","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}};var Se=i(x(),1);var de=i(x(),1),oe=i(B(),1);var W={["required"]:!1,type:"String"},A={["required"]:!0,default:!1,type:"Boolean"},K={["ref"]:"Endpoint"},T={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},H={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},d={},Q={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},O={["ref"]:"PartitionResult"},X={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[O,"supportsDualStack"]}]},Y=[T],Z=[H],j=[{["ref"]:"Region"}],ls={version:"1.0",parameters:{Region:W,UseDualStack:A,UseFIPS:A,Endpoint:W},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[K]}],rules:[{conditions:Y,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:Z,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:K,properties:d,headers:d},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:j}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:j,assign:"PartitionResult"}],rules:[{conditions:[T,H],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,Q]},X],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:Y,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[Q,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[O,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:d,headers:d},type:"endpoint"},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:Z,rules:[{conditions:[X],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},G=ls;var g=(e,s={})=>{return N(G,{endpointParams:e,logger:s.logger})};V.aws=f;var ce=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??se,base64Encoder:e?.base64Encoder??ae,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??g,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??U,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new de.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new oe.NoAuthSigner}],logger:e?.logger??new ee,serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??ne,utf8Decoder:e?.utf8Decoder??te,utf8Encoder:e?.utf8Encoder??re}};var ze=(e)=>{ye(process.version);const s=Ee(e),t=()=>s().then(pe),r=ce(e);return Se.emitWarningIfUnsupportedVersion(process.version),{...r,...e,runtime:"node",defaultsMode:s,bodyLengthChecker:e?.bodyLengthChecker??qe,defaultUserAgentProvider:e?.defaultUserAgentProvider??ke({serviceId:r.serviceId,clientVersion:M.version}),maxAttempts:e?.maxAttempts??l(xe),region:e?.region??l(ue,we),requestHandler:ie.create(e?.requestHandler??t),retryMode:e?.retryMode??l({...ve,default:async()=>(await t()).retryMode||be}),sha256:e?.sha256??Re.bind(null,"sha256"),streamCollector:e?.streamCollector??le,useDualstackEndpoint:e?.useDualstackEndpoint??l(me),useFipsEndpoint:e?.useFipsEndpoint??l(he)}};var De=(e)=>{const s=e.httpAuthSchemes;let{httpAuthSchemeProvider:t,credentials:r}=e;return{setHttpAuthScheme(a){const n=s.findIndex((D)=>D.schemeId===a.schemeId);if(n===-1)s.push(a);else s.splice(n,1,a)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(a){t=a},httpAuthSchemeProvider(){return t},setCredentials(a){r=a},credentials(){return r}}},Be=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};var v=(e)=>e,Ie=(e,s)=>{const t={...v(Je(e)),...v($e(e)),...v(Fe(e)),...v(De(e))};return s.forEach((r)=>r.configure(t)),{...e,...Ue(t),...Pe(t),..._e(t),...Be(t)}};class ps extends Ae{constructor(...[e]){const s=ze(e||{}),t=L(s),r=Ke(t),a=je(r),n=Xe(a),D=Le(n),ns=Ze(D),ds=I(ns),F=Ie(ds,e?.extensions||[]);super(F);this.config=F,this.middlewareStack.use(Qe(this.config)),this.middlewareStack.use(Te(this.config)),this.middlewareStack.use(Ye(this.config)),this.middlewareStack.use(Ce(this.config)),this.middlewareStack.use(Me(this.config)),this.middlewareStack.use(We(this.config)),this.middlewareStack.use(p.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:async(os)=>new p.DefaultIdentityProviderConfig({"aws.auth#sigv4":os.credentials})})),this.middlewareStack.use(p.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class o extends He{constructor(e){super(e);Object.setPrototypeOf(this,o.prototype)}}class R extends o{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,R.prototype)}}class q extends o{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,q.prototype)}}class E extends o{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,E.prototype)}}class S extends o{constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,S.prototype)}}var Oe=(e)=>({...e,...e.accessToken&&{accessToken:k}}),ys=(e)=>({...e,...e.secretAccessKey&&{secretAccessKey:k},...e.sessionToken&&{sessionToken:k}}),Ge=(e)=>({...e,...e.roleCredentials&&{roleCredentials:ys(e.roleCredentials)}});var m=i(x(),1),ge=i(B(),1);var es=async(e,s)=>{const t=ge.requestBuilder(e,s),r=c({},vs,{[zs]:e[Rs]});t.bp("/federation/credentials");const a=c({[Ss]:[,z(e[Es],"roleName")],[qs]:[,z(e[ks],"accountId")]});let n;return t.m("GET").h(r).q(a).b(n),t.build()};var ss=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return ms(e,s);const t=c({$metadata:w(e)}),r=z(Ve(await m.parseJsonBody(e.body,s)),"body"),a=y(r,{roleCredentials:fe});return Object.assign(t,a),t};var ms=async(e,s)=>{const t={...e,body:await m.parseJsonErrorBody(e.body,s)},r=m.loadRestJsonErrorCode(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await us(t,s);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await ws(t,s);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await bs(t,s);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await xs(t,s);default:const a=t.body;return hs({output:e,parsedBody:a,errorCode:r})}},hs=Ne(o),us=async(e,s)=>{const t=c({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new R({$metadata:w(e),...t});return u(n,e.body)},ws=async(e,s)=>{const t=c({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new q({$metadata:w(e),...t});return u(n,e.body)},bs=async(e,s)=>{const t=c({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new E({$metadata:w(e),...t});return u(n,e.body)},xs=async(e,s)=>{const t=c({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new S({$metadata:w(e),...t});return u(n,e.body)},w=(e)=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});var vs=(e)=>e!==void 0&&e!==null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),ks="accountId",Rs="accessToken",qs="account_id";var Es="roleName",Ss="role_name",zs="x-amz-sso_bearer_token";class Ds extends ts.classBuilder().ep({...C}).m(function(e,s,t,r){return[rs(t,this.serialize,this.deserialize),as(t,e.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(Oe,Ge).ser(es).de(ss).build(){}export{ps as SSOClient,Ds as GetRoleCredentialsCommand};