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{y as R0,z as M} from"./chunk-7ce930fe69575c87.js";import{E as _R} from"./chunk-d7c78cd1ab7dc7ed.js";import{H as c,I as cU,J as EX,M as eU,N as _L,Q as dL} from"./chunk-b13cfa16a8a18324.js";import{lb as T0} from"./chunk-c7e2acfd5087fb30.js";import{mb as K0,nb as jU} from"./chunk-ed589d4e4c575de7.js";import{tb as nL} from"./chunk-2db6c9bb69bb27aa.js";import{zb as NU} from"./chunk-82f72dfc6e27be04.js";var m=M((J3,LG)=>{var{defineProperty:Z1,getOwnPropertyDescriptor:W5,getOwnPropertyNames:Z5}=Object,X5=Object.prototype.hasOwnProperty,ZG=($,U)=>Z1($,"name",{value:U,configurable:!0}),L5=($,U)=>{for(var G in U)Z1($,G,{get:U[G],enumerable:!0})},Y5=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of Z5(U))if(!X5.call($,Z)&&Z!==G)Z1($,Z,{get:()=>U[Z],enumerable:!(W=W5(U,Z))||W.enumerable})}return $},F5=($)=>Y5(Z1({},"__esModule",{value:!0}),$),XG={};L5(XG,{getSmithyContext:()=>Q5,normalizeProvider:()=>w5});LG.exports=F5(XG);var WG=T0(),Q5=ZG(($)=>$[WG.SMITHY_CONTEXT_KEY]||($[WG.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),w5=ZG(($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U},"normalizeProvider")});var I$=M((R3,zG)=>{var{defineProperty:X1,getOwnPropertyDescriptor:z5,getOwnPropertyNames:I5}=Object,J5=Object.prototype.hasOwnProperty,Q0=($,U)=>X1($,"name",{value:U,configurable:!0}),R5=($,U)=>{for(var G in U)X1($,G,{get:U[G],enumerable:!0})},K5=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of I5(U))if(!J5.call($,Z)&&Z!==G)X1($,Z,{get:()=>U[Z],enumerable:!(W=z5(U,Z))||W.enumerable})}return $},M5=($)=>K5(X1({},"__esModule",{value:!0}),$),YG={};R5(YG,{CredentialsProviderError:()=>E5,ProviderError:()=>L1,TokenProviderError:()=>V5,chain:()=>B5,fromStatic:()=>T5,memoize:()=>A5});zG.exports=M5(YG);var FG=class $ extends Error{constructor(U,G=!0){var W;let Z,X=!0;if(typeof G==="boolean")Z=void 0,X=G;else if(G!=null&&typeof G==="object")Z=G.logger,X=G.tryNextLink??!0;super(U);this.name="ProviderError",this.tryNextLink=X,Object.setPrototypeOf(this,$.prototype),(W=Z==null?void 0:Z.debug)==null||W.call(Z,`@smithy/property-provider ${X?"->":"(!)"} ${U}`)}static from(U,G=!0){return Object.assign(new this(U.message,G),U)}};Q0(FG,"ProviderError");var L1=FG,QG=class $ extends L1{constructor(U,G=!0){super(U,G);this.name="CredentialsProviderError",Object.setPrototypeOf(this,$.prototype)}};Q0(QG,"CredentialsProviderError");var E5=QG,wG=class $ extends L1{constructor(U,G=!0){super(U,G);this.name="TokenProviderError",Object.setPrototypeOf(this,$.prototype)}};Q0(wG,"TokenProviderError");var V5=wG,B5=Q0((...$)=>async()=>{if($.length===0)throw new L1("No providers in chain");let U;for(let G of $)try{return await G()}catch(W){if(U=W,W==null?void 0:W.tryNextLink)continue;throw W}throw U},"chain"),T5=Q0(($)=>()=>Promise.resolve($),"fromStatic"),A5=Q0(($,U,G)=>{let W,Z,X,L=!1;const Y=Q0(async()=>{if(!Z)Z=$();try{W=await Z,X=!0,L=!1}finally{Z=void 0}return W},"coalesceProvider");if(U===void 0)return async(F)=>{if(!X||(F==null?void 0:F.forceRefresh))W=await Y();return W};return async(F)=>{if(!X||(F==null?void 0:F.forceRefresh))W=await Y();if(L)return W;if(G&&!G(W))return L=!0,W;if(U(W))return await Y(),W;return W}},"memoize")});var A0=M((IG)=>{Object.defineProperty(IG,"__esModule",{value:!0});IG.getHomeDir=void 0;var H5=import.meta.require("os"),O5=import.meta.require("path"),J$={},C5=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},q5=()=>{const{HOME:$,USERPROFILE:U,HOMEPATH:G,HOMEDRIVE:W=`C:${O5.sep}`}=process.env;if($)return $;if(U)return U;if(G)return`${W}${G}`;const Z=C5();if(!J$[Z])J$[Z]=H5.homedir();return J$[Z]};IG.getHomeDir=q5});var R$=M((RG)=>{Object.defineProperty(RG,"__esModule",{value:!0});RG.getSSOTokenFilepath=void 0;var f5=import.meta.require("crypto"),N5=import.meta.require("path"),j5=A0(),P5=($)=>{const G=f5.createHash("sha1").update($).digest("hex");return N5.join(j5.getHomeDir(),".aws","sso","cache",`${G}.json`)};RG.getSSOTokenFilepath=P5});var VG=M((MG)=>{Object.defineProperty(MG,"__esModule",{value:!0});MG.getSSOTokenFromFile=void 0;var S5=import.meta.require("fs"),D5=R$(),{readFile:b5}=S5.promises,k5=async($)=>{const U=D5.getSSOTokenFilepath($),G=await b5(U,"utf8");return JSON.parse(G)};MG.getSSOTokenFromFile=k5});var M$=M((BG)=>{Object.defineProperty(BG,"__esModule",{value:!0});BG.slurpFile=void 0;var h5=import.meta.require("fs"),{readFile:x5}=h5.promises,K$={},v5=($,U)=>{if(!K$[$]||(U===null||U===void 0?void 0:U.ignoreCache))K$[$]=x5($,"utf8");return K$[$]};BG.slurpFile=v5});var T$=M((B3,x0)=>{var{defineProperty:Q1,getOwnPropertyDescriptor:c5,getOwnPropertyNames:y5}=Object,u5=Object.prototype.hasOwnProperty,y=($,U)=>Q1($,"name",{value:U,configurable:!0}),_5=($,U)=>{for(var G in U)Q1($,G,{get:U[G],enumerable:!0})},E$=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of y5(U))if(!u5.call($,Z)&&Z!==G)Q1($,Z,{get:()=>U[Z],enumerable:!(W=c5(U,Z))||W.enumerable})}return $},B$=($,U,G)=>(E$($,U,"default"),G&&E$(G,U,"default")),d5=($)=>E$(Q1({},"__esModule",{value:!0}),$),h0={};_5(h0,{CONFIG_PREFIX_SEPARATOR:()=>w0,DEFAULT_PROFILE:()=>CG,ENV_PROFILE:()=>OG,getProfileName:()=>g5,loadSharedConfigFiles:()=>fG,loadSsoSessionData:()=>UY,parseKnownFiles:()=>WY});x0.exports=d5(h0);B$(h0,A0(),x0.exports);var OG="AWS_PROFILE",CG="default",g5=y(($)=>$.profile||process.env[OG]||CG,"getProfileName");B$(h0,R$(),x0.exports);B$(h0,VG(),x0.exports);var Y1=T0(),p5=y(($)=>Object.entries($).filter(([U])=>{const G=U.indexOf(w0);if(G===-1)return!1;return Object.values(Y1.IniSectionType).includes(U.substring(0,G))}).reduce((U,[G,W])=>{const Z=G.indexOf(w0),X=G.substring(0,Z)===Y1.IniSectionType.PROFILE?G.substring(Z+1):G;return U[X]=W,U},{...$.default&&{default:$.default}}),"getConfigData"),F1=import.meta.require("path"),l5=A0(),s5="AWS_CONFIG_FILE",qG=y(()=>process.env[s5]||F1.join(l5.getHomeDir(),".aws","config"),"getConfigFilepath"),m5=A0(),n5="AWS_SHARED_CREDENTIALS_FILE",i5=y(()=>process.env[n5]||F1.join(m5.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),r5=A0(),o5=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,a5=["__proto__","profile __proto__"],V$=y(($)=>{const U={};let G,W;for(let Z of $.split(/\r?\n/)){const X=Z.split(/(^|\s)[;#]/)[0].trim();if(X[0]==="["&&X[X.length-1]==="]"){G=void 0,W=void 0;const Y=X.substring(1,X.length-1),F=o5.exec(Y);if(F){const[,Q,,w]=F;if(Object.values(Y1.IniSectionType).includes(Q))G=[Q,w].join(w0)}else G=Y;if(a5.includes(Y))throw new Error(`Found invalid profile name "${Y}"`)}else if(G){const Y=X.indexOf("=");if(![0,-1].includes(Y)){const[F,Q]=[X.substring(0,Y).trim(),X.substring(Y+1).trim()];if(Q==="")W=F;else{if(W&&Z.trimStart()===Z)W=void 0;U[G]=U[G]||{};const w=W?[W,F].join(w0):F;U[G][w]=Q}}}}return U},"parseIni"),AG=M$(),HG=y(()=>({}),"swallowError"),w0=".",fG=y(async($={})=>{const{filepath:U=i5(),configFilepath:G=qG()}=$,W=r5.getHomeDir();let X=U;if(U.startsWith("~/"))X=F1.join(W,U.slice(2));let L=G;if(G.startsWith("~/"))L=F1.join(W,G.slice(2));const Y=await Promise.all([AG.slurpFile(L,{ignoreCache:$.ignoreCache}).then(V$).then(p5).catch(HG),AG.slurpFile(X,{ignoreCache:$.ignoreCache}).then(V$).catch(HG)]);return{configFile:Y[0],credentialsFile:Y[1]}},"loadSharedConfigFiles"),t5=y(($)=>Object.entries($).filter(([U])=>U.startsWith(Y1.IniSectionType.SSO_SESSION+w0)).reduce((U,[G,W])=>({...U,[G.substring(G.indexOf(w0)+1)]:W}),{}),"getSsoSessionData"),e5=M$(),$Y=y(()=>({}),"swallowError"),UY=y(async($={})=>e5.slurpFile($.configFilepath??qG()).then(V$).then(t5).catch($Y),"loadSsoSessionData"),GY=y((...$)=>{const U={};for(let G of $)for(let[W,Z]of Object.entries(G))if(U[W]!==void 0)Object.assign(U[W],Z);else U[W]=Z;return U},"mergeConfigFiles"),WY=y(async($)=>{const U=await fG($);return GY(U.configFile,U.credentialsFile)},"parseKnownFiles")});var SG=M((T3,PG)=>{var A$=function($){try{const U=new Set(Array.from($.match(/([A-Z_]){3,}/g)??[]));return U.delete("CONFIG"),U.delete("CONFIG_PREFIX_SEPARATOR"),U.delete("ENV"),[...U].join(", ")}catch(U){return $}},w1=Object.defineProperty,ZY=Object.getOwnPropertyDescriptor,XY=Object.getOwnPropertyNames,LY=Object.prototype.hasOwnProperty,H0=($,U)=>w1($,"name",{value:U,configurable:!0}),YY=($,U)=>{for(var G in U)w1($,G,{get:U[G],enumerable:!0})},FY=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of XY(U))if(!LY.call($,Z)&&Z!==G)w1($,Z,{get:()=>U[Z],enumerable:!(W=ZY(U,Z))||W.enumerable})}return $},QY=($)=>FY(w1({},"__esModule",{value:!0}),$),jG={};YY(jG,{loadConfig:()=>RY});PG.exports=QY(jG);var v0=I$();H0(A$,"getSelectorName");var wY=H0(($,U)=>async()=>{try{const G=$(process.env);if(G===void 0)throw new Error;return G}catch(G){throw new v0.CredentialsProviderError(G.message||`Not found in ENV: ${A$($.toString())}`,{logger:U})}},"fromEnv"),NG=T$(),zY=H0(($,{preferredFile:U="config",...G}={})=>async()=>{const W=NG.getProfileName(G),{configFile:Z,credentialsFile:X}=await NG.loadSharedConfigFiles(G),L=X[W]||{},Y=Z[W]||{},F=U==="config"?{...L,...Y}:{...Y,...L};try{const w=$(F,U==="config"?Z:X);if(w===void 0)throw new Error;return w}catch(Q){throw new v0.CredentialsProviderError(Q.message||`Not found in config files w/ profile [${W}]: ${A$($.toString())}`,{logger:G.logger})}},"fromSharedConfigFiles"),IY=H0(($)=>typeof $==="function","isFunction"),JY=H0(($)=>IY($)?async()=>await $():v0.fromStatic($),"fromStatic"),RY=H0(({environmentVariableSelector:$,configFileSelector:U,default:G},W={})=>v0.memoize(v0.chain(wY($),zY(U,W),JY(G))),"loadConfig")});var vG=M((hG)=>{Object.defineProperty(hG,"__esModule",{value:!0});hG.getEndpointUrlConfig=void 0;var DG=T$(),bG="AWS_ENDPOINT_URL",kG="endpoint_url",KY=($)=>({environmentVariableSelector:(U)=>{const G=$.split(" ").map((X)=>X.toUpperCase()),W=U[[bG,...G].join("_")];if(W)return W;const Z=U[bG];if(Z)return Z;return},configFileSelector:(U,G)=>{if(G&&U.services){const Z=G[["services",U.services].join(DG.CONFIG_PREFIX_SEPARATOR)];if(Z){const X=$.split(" ").map((Y)=>Y.toLowerCase()),L=Z[[X.join("_"),kG].join(DG.CONFIG_PREFIX_SEPARATOR)];if(L)return L}}const W=U[kG];if(W)return W;return},default:void 0});hG.getEndpointUrlConfig=KY});var uG=M((cG)=>{Object.defineProperty(cG,"__esModule",{value:!0});cG.getEndpointFromConfig=void 0;var MY=SG(),EY=vG(),VY=async($)=>MY.loadConfig(EY.getEndpointUrlConfig($))();cG.getEndpointFromConfig=VY});var pG=M((O3,gG)=>{var dG=function($){const U={};if($=$.replace(/^\?/,""),$)for(let G of $.split("&")){let[W,Z=null]=G.split("=");if(W=decodeURIComponent(W),Z)Z=decodeURIComponent(Z);if(!(W in U))U[W]=Z;else if(Array.isArray(U[W]))U[W].push(Z);else U[W]=[U[W],Z]}return U},z1=Object.defineProperty,BY=Object.getOwnPropertyDescriptor,TY=Object.getOwnPropertyNames,AY=Object.prototype.hasOwnProperty,HY=($,U)=>z1($,"name",{value:U,configurable:!0}),OY=($,U)=>{for(var G in U)z1($,G,{get:U[G],enumerable:!0})},CY=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of TY(U))if(!AY.call($,Z)&&Z!==G)z1($,Z,{get:()=>U[Z],enumerable:!(W=BY(U,Z))||W.enumerable})}return $},qY=($)=>CY(z1({},"__esModule",{value:!0}),$),_G={};OY(_G,{parseQueryString:()=>dG});gG.exports=qY(_G);HY(dG,"parseQueryString")});var nG=M((C3,mG)=>{var{defineProperty:I1,getOwnPropertyDescriptor:fY,getOwnPropertyNames:NY}=Object,jY=Object.prototype.hasOwnProperty,PY=($,U)=>I1($,"name",{value:U,configurable:!0}),SY=($,U)=>{for(var G in U)I1($,G,{get:U[G],enumerable:!0})},DY=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of NY(U))if(!jY.call($,Z)&&Z!==G)I1($,Z,{get:()=>U[Z],enumerable:!(W=fY(U,Z))||W.enumerable})}return $},bY=($)=>DY(I1({},"__esModule",{value:!0}),$),lG={};SY(lG,{parseUrl:()=>sG});mG.exports=bY(lG);var kY=pG(),sG=PY(($)=>{if(typeof $==="string")return sG(new URL($));const{hostname:U,pathname:G,port:W,protocol:Z,search:X}=$;let L;if(X)L=kY.parseQueryString(X);return{hostname:U,port:W?parseInt(W):void 0,protocol:Z,path:G,query:L}},"parseUrl")});var O$=M((q3,$8)=>{var eG=function($,U,G){return{applyToStack:(W)=>{W.add(rG($,G),aG),W.add(oG($,U),tG)}}},J1=Object.defineProperty,hY=Object.getOwnPropertyDescriptor,xY=Object.getOwnPropertyNames,vY=Object.prototype.hasOwnProperty,H$=($,U)=>J1($,"name",{value:U,configurable:!0}),cY=($,U)=>{for(var G in U)J1($,G,{get:U[G],enumerable:!0})},yY=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of xY(U))if(!vY.call($,Z)&&Z!==G)J1($,Z,{get:()=>U[Z],enumerable:!(W=hY(U,Z))||W.enumerable})}return $},uY=($)=>yY(J1({},"__esModule",{value:!0}),$),iG={};cY(iG,{deserializerMiddleware:()=>rG,deserializerMiddlewareOption:()=>aG,getSerdePlugin:()=>eG,serializerMiddleware:()=>oG,serializerMiddlewareOption:()=>tG});$8.exports=uY(iG);var rG=H$(($,U)=>(G)=>async(W)=>{const{response:Z}=await G(W);try{const X=await U(Z,$);return{response:Z,output:X}}catch(X){if(Object.defineProperty(X,"$response",{value:Z}),!("$metadata"in X)){if(X.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof X.$responseBodyText!=="undefined"){if(X.$response)X.$response.body=X.$responseBodyText}}throw X}},"deserializerMiddleware"),oG=H$(($,U)=>(G,W)=>async(Z)=>{var X;const L=((X=W.endpointV2)==null?void 0:X.url)&&$.urlParser?async()=>$.urlParser(W.endpointV2.url):$.endpoint;if(!L)throw new Error("No valid endpoint provider available.");const Y=await U(Z.input,{...$,endpoint:L});return G({...Z,request:Y})},"serializerMiddleware"),aG={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},tG={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};H$(eG,"getSerdePlugin")});var F8=M((f3,Y8)=>{var{defineProperty:K1,getOwnPropertyDescriptor:_Y,getOwnPropertyNames:dY}=Object,gY=Object.prototype.hasOwnProperty,g=($,U)=>K1($,"name",{value:U,configurable:!0}),pY=($,U)=>{for(var G in U)K1($,G,{get:U[G],enumerable:!0})},lY=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of dY(U))if(!gY.call($,Z)&&Z!==G)K1($,Z,{get:()=>U[Z],enumerable:!(W=_Y(U,Z))||W.enumerable})}return $},sY=($)=>lY(K1({},"__esModule",{value:!0}),$),G8={};pY(G8,{endpointMiddleware:()=>X8,endpointMiddlewareOptions:()=>L8,getEndpointFromInstructions:()=>W8,getEndpointPlugin:()=>U2,resolveEndpointConfig:()=>G2,resolveParams:()=>Z8,toEndpointV1:()=>C$});Y8.exports=sY(G8);var mY=g(async($)=>{const U=($==null?void 0:$.Bucket)||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(aY(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!oY(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},"resolveParamsForS3"),nY=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,iY=/(\d+\.){3}\d+/,rY=/\.\./,oY=g(($)=>nY.test($)&&!iY.test($)&&!rY.test($),"isDnsCompatibleBucketName"),aY=g(($)=>{const[U,G,W,,,Z]=$.split(":"),X=U==="arn"&&$.split(":").length>=6,L=Boolean(X&&G&&W&&Z);if(X&&!L)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return L},"isArnBucketName"),tY=g(($,U,G)=>{const W=g(async()=>{const Z=G[$]??G[U];if(typeof Z==="function")return Z();return Z},"configProvider");if($==="credentialScope"||U==="CredentialScope")return async()=>{const Z=typeof G.credentials==="function"?await G.credentials():G.credentials;return(Z==null?void 0:Z.credentialScope)??(Z==null?void 0:Z.CredentialScope)};if($==="accountId"||U==="AccountId")return async()=>{const Z=typeof G.credentials==="function"?await G.credentials():G.credentials;return(Z==null?void 0:Z.accountId)??(Z==null?void 0:Z.AccountId)};if($==="endpoint"||U==="endpoint")return async()=>{const Z=await W();if(Z&&typeof Z==="object"){if("url"in Z)return Z.url.href;if("hostname"in Z){const{protocol:X,hostname:L,port:Y,path:F}=Z;return`${X}//${L}${Y?":"+Y:""}${F}`}}return Z};return W},"createConfigValueProvider"),eY=uG(),U8=nG(),C$=g(($)=>{if(typeof $==="object"){if("url"in $)return U8.parseUrl($.url);return $}return U8.parseUrl($)},"toEndpointV1"),W8=g(async($,U,G,W)=>{if(!G.endpoint){const L=await eY.getEndpointFromConfig(G.serviceId||"");if(L)G.endpoint=()=>Promise.resolve(C$(L))}const Z=await Z8($,U,G);if(typeof G.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return G.endpointProvider(Z,W)},"getEndpointFromInstructions"),Z8=g(async($,U,G)=>{var W;const Z={},X=((W=U==null?void 0:U.getEndpointParameterInstructions)==null?void 0:W.call(U))||{};for(let[L,Y]of Object.entries(X))switch(Y.type){case"staticContextParams":Z[L]=Y.value;break;case"contextParams":Z[L]=$[Y.name];break;case"clientContextParams":case"builtInParams":Z[L]=await tY(Y.name,L,G)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(Y))}if(Object.keys(X).length===0)Object.assign(Z,G);if(String(G.serviceId).toLowerCase()==="s3")await mY(Z);return Z},"resolveParams"),R1=m(),X8=g(({config:$,instructions:U})=>{return(G,W)=>async(Z)=>{var X,L,Y;const F=await W8(Z.input,{getEndpointParameterInstructions(){return U}},{...$},W);W.endpointV2=F,W.authSchemes=(X=F.properties)==null?void 0:X.authSchemes;const Q=(L=W.authSchemes)==null?void 0:L[0];if(Q){W.signing_region=Q.signingRegion,W.signing_service=Q.signingName;const w=R1.getSmithyContext(W),z=(Y=w==null?void 0:w.selectedHttpAuthScheme)==null?void 0:Y.httpAuthOption;if(z)z.signingProperties=Object.assign(z.signingProperties||{},{signing_region:Q.signingRegion,signingRegion:Q.signingRegion,signing_service:Q.signingName,signingName:Q.signingName,signingRegionSet:Q.signingRegionSet},Q.properties)}return G({...Z})}},"endpointMiddleware"),$2=O$(),L8={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:$2.serializerMiddlewareOption.name},U2=g(($,U)=>({applyToStack:(G)=>{G.addRelativeTo(X8({config:$,instructions:U}),L8)}}),"getEndpointPlugin"),G2=g(($)=>{const U=$.tls??!0,{endpoint:G}=$,W=G!=null?async()=>C$(await R1.normalizeProvider(G)()):void 0;return{...$,endpoint:W,tls:U,isCustomEndpoint:!!G,useDualstackEndpoint:R1.normalizeProvider($.useDualstackEndpoint??!1),useFipsEndpoint:R1.normalizeProvider($.useFipsEndpoint??!1)}},"resolveEndpointConfig")});var r=M((N3,E8)=>{var R8=function($){return Object.keys($).reduce((U,G)=>{const W=$[G];return{...U,[G]:Array.isArray(W)?[...W]:W}},{})},M8=function($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)},M1=Object.defineProperty,W2=Object.getOwnPropertyDescriptor,Z2=Object.getOwnPropertyNames,X2=Object.prototype.hasOwnProperty,$0=($,U)=>M1($,"name",{value:U,configurable:!0}),L2=($,U)=>{for(var G in U)M1($,G,{get:U[G],enumerable:!0})},Y2=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of Z2(U))if(!X2.call($,Z)&&Z!==G)M1($,Z,{get:()=>U[Z],enumerable:!(W=W2(U,Z))||W.enumerable})}return $},F2=($)=>Y2(M1({},"__esModule",{value:!0}),$),Q8={};L2(Q8,{Field:()=>z2,Fields:()=>I2,HttpRequest:()=>J2,HttpResponse:()=>R2,IHttpRequest:()=>w8.HttpRequest,getHttpHandlerExtensionConfiguration:()=>Q2,isValidHostname:()=>M8,resolveHttpHandlerRuntimeConfig:()=>w2});E8.exports=F2(Q8);var Q2=$0(($)=>{let U=$.httpHandler;return{setHttpHandler(G){U=G},httpHandler(){return U},updateHttpClientConfig(G,W){U.updateHttpClientConfig(G,W)},httpHandlerConfigs(){return U.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),w2=$0(($)=>{return{httpHandler:$.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),w8=T0(),z8=class ${constructor({name:U,kind:G=w8.FieldPosition.HEADER,values:W=[]}){this.name=U,this.kind=G,this.values=W}add(U){this.values.push(U)}set(U){this.values=U}remove(U){this.values=this.values.filter((G)=>G!==U)}toString(){return this.values.map((U)=>U.includes(",")||U.includes(" ")?`"${U}"`:U).join(", ")}get(){return this.values}};$0(z8,"Field");var z2=z8,I8=class ${constructor({fields:U=[],encoding:G="utf-8"}){this.entries={},U.forEach(this.setField.bind(this)),this.encoding=G}setField(U){this.entries[U.name.toLowerCase()]=U}getField(U){return this.entries[U.toLowerCase()]}removeField(U){delete this.entries[U.toLowerCase()]}getByType(U){return Object.values(this.entries).filter((G)=>G.kind===U)}};$0(I8,"Fields");var I2=I8,J8=class ${constructor(U){this.method=U.method||"GET",this.hostname=U.hostname||"localhost",this.port=U.port,this.query=U.query||{},this.headers=U.headers||{},this.body=U.body,this.protocol=U.protocol?U.protocol.slice(-1)!==":"?`${U.protocol}:`:U.protocol:"https:",this.path=U.path?U.path.charAt(0)!=="/"?`/${U.path}`:U.path:"/",this.username=U.username,this.password=U.password,this.fragment=U.fragment}static clone(U){const G=new $({...U,headers:{...U.headers}});if(G.query)G.query=R8(G.query);return G}static isInstance(U){if(!U)return!1;const G=U;return"method"in G&&"protocol"in G&&"hostname"in G&&"path"in G&&typeof G.query==="object"&&typeof G.headers==="object"}clone(){return $.clone(this)}};$0(J8,"HttpRequest");var J2=J8;$0(R8,"cloneQuery");var K8=class ${constructor(U){this.statusCode=U.statusCode,this.reason=U.reason,this.headers=U.headers||{},this.body=U.body}static isInstance(U){if(!U)return!1;const G=U;return typeof G.statusCode==="number"&&typeof G.headers==="object"}};$0(K8,"HttpResponse");var R2=K8;$0(M8,"isValidHostname")});var q$=M((V8)=>{var M2=function($){return $&&$.__esModule?$:{default:$}},E2=function(){if(E1>V1.length-16)K2.default.randomFillSync(V1),E1=0;return V1.slice(E1,E1+=16)};Object.defineProperty(V8,"__esModule",{value:!0});V8.default=E2;var K2=M2(import.meta.require("crypto")),V1=new Uint8Array(256),E1=V1.length});var A8=M((B8)=>{Object.defineProperty(B8,"__esModule",{value:!0});B8.default=void 0;var B2=/^(?:[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;B8.default=B2});var c0=M((H8)=>{var A2=function($){return $&&$.__esModule?$:{default:$}},H2=function($){return typeof $==="string"&&T2.default.test($)};Object.defineProperty(H8,"__esModule",{value:!0});H8.default=void 0;var T2=A2(A8()),O2=H2;H8.default=O2});var y0=M((q8)=>{var q2=function($){return $&&$.__esModule?$:{default:$}},C8=function($,U=0){return b[$[U+0]]+b[$[U+1]]+b[$[U+2]]+b[$[U+3]]+"-"+b[$[U+4]]+b[$[U+5]]+"-"+b[$[U+6]]+b[$[U+7]]+"-"+b[$[U+8]]+b[$[U+9]]+"-"+b[$[U+10]]+b[$[U+11]]+b[$[U+12]]+b[$[U+13]]+b[$[U+14]]+b[$[U+15]]},f2=function($,U=0){const G=C8($,U);if(!C2.default(G))throw TypeError("Stringified UUID is invalid");return G};Object.defineProperty(q8,"__esModule",{value:!0});q8.default=void 0;q8.unsafeStringify=C8;var C2=q2(c0()),b=[];for(let $=0;$<256;++$)b.push(($+256).toString(16).slice(1));var N2=f2;q8.default=N2});var S8=M((j8)=>{var D2=function($){return $&&$.__esModule?$:{default:$}},b2=function($,U,G){let W=U&&G||0;const Z=U||new Array(16);$=$||{};let X=$.node||N8,L=$.clockseq!==void 0?$.clockseq:f$;if(X==null||L==null){const I=$.random||($.rng||P2.default)();if(X==null)X=N8=[I[0]|1,I[1],I[2],I[3],I[4],I[5]];if(L==null)L=f$=(I[6]<<8|I[7])&16383}let Y=$.msecs!==void 0?$.msecs:Date.now(),F=$.nsecs!==void 0?$.nsecs:j$+1;const Q=Y-N$+(F-j$)/1e4;if(Q<0&&$.clockseq===void 0)L=L+1&16383;if((Q<0||Y>N$)&&$.nsecs===void 0)F=0;if(F>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");N$=Y,j$=F,f$=L,Y+=12219292800000;const w=((Y&268435455)*1e4+F)%4294967296;Z[W++]=w>>>24&255,Z[W++]=w>>>16&255,Z[W++]=w>>>8&255,Z[W++]=w&255;const z=Y/4294967296*1e4&268435455;Z[W++]=z>>>8&255,Z[W++]=z&255,Z[W++]=z>>>24&15|16,Z[W++]=z>>>16&255,Z[W++]=L>>>8|128,Z[W++]=L&255;for(let I=0;I<6;++I)Z[W+I]=X[I];return U||S2.unsafeStringify(Z)};Object.defineProperty(j8,"__esModule",{value:!0});j8.default=void 0;var P2=D2(q$()),S2=y0(),N8,f$,N$=0,j$=0,k2=b2;j8.default=k2});var P$=M((D8)=>{var x2=function($){return $&&$.__esModule?$:{default:$}},v2=function($){if(!h2.default($))throw TypeError("Invalid UUID");let U;const G=new Uint8Array(16);return G[0]=(U=parseInt($.slice(0,8),16))>>>24,G[1]=U>>>16&255,G[2]=U>>>8&255,G[3]=U&255,G[4]=(U=parseInt($.slice(9,13),16))>>>8,G[5]=U&255,G[6]=(U=parseInt($.slice(14,18),16))>>>8,G[7]=U&255,G[8]=(U=parseInt($.slice(19,23),16))>>>8,G[9]=U&255,G[10]=(U=parseInt($.slice(24,36),16))/1099511627776&255,G[11]=U/4294967296&255,G[12]=U>>>24&255,G[13]=U>>>16&255,G[14]=U>>>8&255,G[15]=U&255,G};Object.defineProperty(D8,"__esModule",{value:!0});D8.default=void 0;var h2=x2(c0()),c2=v2;D8.default=c2});var S$=M((x8)=>{var _2=function($){return $&&$.__esModule?$:{default:$}},d2=function($){$=unescape(encodeURIComponent($));const U=[];for(let G=0;G<$.length;++G)U.push($.charCodeAt(G));return U},g2=function($,U,G){function W(Z,X,L,Y){var F;if(typeof Z==="string")Z=d2(Z);if(typeof X==="string")X=u2.default(X);if(((F=X)===null||F===void 0?void 0:F.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let Q=new Uint8Array(16+Z.length);if(Q.set(X),Q.set(Z,X.length),Q=G(Q),Q[6]=Q[6]&15|U,Q[8]=Q[8]&63|128,L){Y=Y||0;for(let w=0;w<16;++w)L[Y+w]=Q[w];return L}return y2.unsafeStringify(Q)}try{W.name=$}catch(Z){}return W.DNS=k8,W.URL=h8,W};Object.defineProperty(x8,"__esModule",{value:!0});x8.URL=x8.DNS=void 0;x8.default=g2;var y2=y0(),u2=_2(P$()),k8="6ba7b810-9dad-11d1-80b4-00c04fd430c8";x8.DNS=k8;var h8="6ba7b811-9dad-11d1-80b4-00c04fd430c8";x8.URL=h8});var u8=M((c8)=>{var m2=function($){return $&&$.__esModule?$:{default:$}},n2=function($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return s2.default.createHash("md5").update($).digest()};Object.defineProperty(c8,"__esModule",{value:!0});c8.default=void 0;var s2=m2(import.meta.require("crypto")),i2=n2;c8.default=i2});var p8=M((d8)=>{var _8=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(d8,"__esModule",{value:!0});d8.default=void 0;var r2=_8(S$()),o2=_8(u8()),a2=r2.default("v3",48,o2.default),t2=a2;d8.default=t2});var m8=M((l8)=>{var $9=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(l8,"__esModule",{value:!0});l8.default=void 0;var e2=$9(import.meta.require("crypto")),U9={randomUUID:e2.default.randomUUID};l8.default=U9});var a8=M((r8)=>{var i8=function($){return $&&$.__esModule?$:{default:$}},Z9=function($,U,G){if(n8.default.randomUUID&&!U&&!$)return n8.default.randomUUID();$=$||{};const W=$.random||($.rng||G9.default)();if(W[6]=W[6]&15|64,W[8]=W[8]&63|128,U){G=G||0;for(let Z=0;Z<16;++Z)U[G+Z]=W[Z];return U}return W9.unsafeStringify(W)};Object.defineProperty(r8,"__esModule",{value:!0});r8.default=void 0;var n8=i8(m8()),G9=i8(q$()),W9=y0(),X9=Z9;r8.default=X9});var $4=M((t8)=>{var Y9=function($){return $&&$.__esModule?$:{default:$}},F9=function($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return L9.default.createHash("sha1").update($).digest()};Object.defineProperty(t8,"__esModule",{value:!0});t8.default=void 0;var L9=Y9(import.meta.require("crypto")),Q9=F9;t8.default=Q9});var Z4=M((G4)=>{var U4=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(G4,"__esModule",{value:!0});G4.default=void 0;var w9=U4(S$()),z9=U4($4()),I9=w9.default("v5",80,z9.default),J9=I9;G4.default=J9});var Y4=M((X4)=>{Object.defineProperty(X4,"__esModule",{value:!0});X4.default=void 0;var R9="00000000-0000-0000-0000-000000000000";X4.default=R9});var w4=M((F4)=>{var M9=function($){return $&&$.__esModule?$:{default:$}},E9=function($){if(!K9.default($))throw TypeError("Invalid UUID");return parseInt($.slice(14,15),16)};Object.defineProperty(F4,"__esModule",{value:!0});F4.default=void 0;var K9=M9(c0()),V9=E9;F4.default=V9});var D$=M((p)=>{var o=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(p,"__esModule",{value:!0});Object.defineProperty(p,"NIL",{enumerable:!0,get:function(){return O9.default}});Object.defineProperty(p,"parse",{enumerable:!0,get:function(){return N9.default}});Object.defineProperty(p,"stringify",{enumerable:!0,get:function(){return f9.default}});Object.defineProperty(p,"v1",{enumerable:!0,get:function(){return B9.default}});Object.defineProperty(p,"v3",{enumerable:!0,get:function(){return T9.default}});Object.defineProperty(p,"v4",{enumerable:!0,get:function(){return A9.default}});Object.defineProperty(p,"v5",{enumerable:!0,get:function(){return H9.default}});Object.defineProperty(p,"validate",{enumerable:!0,get:function(){return q9.default}});Object.defineProperty(p,"version",{enumerable:!0,get:function(){return C9.default}});var B9=o(S8()),T9=o(p8()),A9=o(a8()),H9=o(Z4()),O9=o(Y4()),C9=o(w4()),q9=o(c0()),f9=o(y0()),N9=o(P$())});var b$=M((l3,R4)=>{var{defineProperty:B1,getOwnPropertyDescriptor:j9,getOwnPropertyNames:P9}=Object,S9=Object.prototype.hasOwnProperty,O0=($,U)=>B1($,"name",{value:U,configurable:!0}),D9=($,U)=>{for(var G in U)B1($,G,{get:U[G],enumerable:!0})},b9=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of P9(U))if(!S9.call($,Z)&&Z!==G)B1($,Z,{get:()=>U[Z],enumerable:!(W=j9(U,Z))||W.enumerable})}return $},k9=($)=>b9(B1({},"__esModule",{value:!0}),$),z4={};D9(z4,{isClockSkewCorrectedError:()=>I4,isClockSkewError:()=>_9,isRetryableByTrait:()=>u9,isServerError:()=>g9,isThrottlingError:()=>d9,isTransientError:()=>J4});R4.exports=k9(z4);var h9=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],x9=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],v9=["TimeoutError","RequestTimeout","RequestTimeoutException"],c9=[500,502,503,504],y9=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],u9=O0(($)=>$.$retryable!==void 0,"isRetryableByTrait"),_9=O0(($)=>h9.includes($.name),"isClockSkewError"),I4=O0(($)=>{var U;return(U=$.$metadata)==null?void 0:U.clockSkewCorrected},"isClockSkewCorrectedError"),d9=O0(($)=>{var U,G;return((U=$.$metadata)==null?void 0:U.httpStatusCode)===429||x9.includes($.name)||((G=$.$retryable)==null?void 0:G.throttling)==!0},"isThrottlingError"),J4=O0(($)=>{var U;return I4($)||v9.includes($.name)||y9.includes(($==null?void 0:$.code)||"")||c9.includes(((U=$.$metadata)==null?void 0:U.httpStatusCode)||0)},"isTransientError"),g9=O0(($)=>{var U;if(((U=$.$metadata)==null?void 0:U.httpStatusCode)!==void 0){const G=$.$metadata.httpStatusCode;if(500<=G&&G<=599&&!J4($))return!0;return!1}return!1},"isServerError")});var j4=M((s3,N4)=>{var{defineProperty:T1,getOwnPropertyDescriptor:p9,getOwnPropertyNames:l9}=Object,s9=Object.prototype.hasOwnProperty,l=($,U)=>T1($,"name",{value:U,configurable:!0}),m9=($,U)=>{for(var G in U)T1($,G,{get:U[G],enumerable:!0})},n9=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of l9(U))if(!s9.call($,Z)&&Z!==G)T1($,Z,{get:()=>U[Z],enumerable:!(W=p9(U,Z))||W.enumerable})}return $},i9=($)=>n9(T1({},"__esModule",{value:!0}),$),M4={};m9(M4,{AdaptiveRetryStrategy:()=>$F,ConfiguredRetryStrategy:()=>UF,DEFAULT_MAX_ATTEMPTS:()=>k$,DEFAULT_RETRY_DELAY_BASE:()=>u0,DEFAULT_RETRY_MODE:()=>r9,DefaultRateLimiter:()=>B4,INITIAL_RETRY_TOKENS:()=>h$,INVOCATION_ID_HEADER:()=>a9,MAXIMUM_RETRY_DELAY:()=>x$,NO_RETRY_INCREMENT:()=>O4,REQUEST_HEADER:()=>t9,RETRY_COST:()=>A4,RETRY_MODES:()=>E4,StandardRetryStrategy:()=>v$,THROTTLING_RETRY_DELAY_BASE:()=>T4,TIMEOUT_RETRY_COST:()=>H4});N4.exports=i9(M4);var E4=(($)=>{return $.STANDARD="standard",$.ADAPTIVE="adaptive",$})(E4||{}),k$=3,r9="standard",o9=b$(),V4=class ${constructor(U){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(U==null?void 0:U.beta)??0.7,this.minCapacity=(U==null?void 0:U.minCapacity)??1,this.minFillRate=(U==null?void 0:U.minFillRate)??0.5,this.scaleConstant=(U==null?void 0:U.scaleConstant)??0.4,this.smooth=(U==null?void 0:U.smooth)??0.8;const G=this.getCurrentTimeInSeconds();this.lastThrottleTime=G,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(U){if(!this.enabled)return;if(this.refillTokenBucket(),U>this.currentCapacity){const G=(U-this.currentCapacity)/this.fillRate*1000;await new Promise((W)=>setTimeout(W,G))}this.currentCapacity=this.currentCapacity-U}refillTokenBucket(){const U=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=U;return}const G=(U-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+G),this.lastTimestamp=U}updateClientSendingRate(U){let G;if(this.updateMeasuredRate(),o9.isThrottlingError(U)){const Z=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=Z,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),G=this.cubicThrottle(Z),this.enableTokenBucket()}else this.calculateTimeWindow(),G=this.cubicSuccess(this.getCurrentTimeInSeconds());const W=Math.min(G,2*this.measuredTxRate);this.updateTokenBucketRate(W)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(U){return this.getPrecise(U*this.beta)}cubicSuccess(U){return this.getPrecise(this.scaleConstant*Math.pow(U-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(U){this.refillTokenBucket(),this.fillRate=Math.max(U,this.minFillRate),this.maxCapacity=Math.max(U,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const U=this.getCurrentTimeInSeconds(),G=Math.floor(U*2)/2;if(this.requestCount++,G>this.lastTxRateBucket){const W=this.requestCount/(G-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(W*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=G}}getPrecise(U){return parseFloat(U.toFixed(8))}};l(V4,"DefaultRateLimiter");var B4=V4,u0=100,x$=20000,T4=500,h$=500,A4=5,H4=10,O4=1,a9="amz-sdk-invocation-id",t9="amz-sdk-request",e9=l(()=>{let $=u0;return{computeNextBackoffDelay:l((W)=>{return Math.floor(Math.min(x$,Math.random()*2**W*$))},"computeNextBackoffDelay"),setDelayBase:l((W)=>{$=W},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),K4=l(({retryDelay:$,retryCount:U,retryCost:G})=>{return{getRetryCount:l(()=>U,"getRetryCount"),getRetryDelay:l(()=>Math.min(x$,$),"getRetryDelay"),getRetryCost:l(()=>G,"getRetryCost")}},"createDefaultRetryToken"),C4=class ${constructor(U){this.maxAttempts=U,this.mode="standard",this.capacity=h$,this.retryBackoffStrategy=e9(),this.maxAttemptsProvider=typeof U==="function"?U:async()=>U}async acquireInitialRetryToken(U){return K4({retryDelay:u0,retryCount:0})}async refreshRetryTokenForRetry(U,G){const W=await this.getMaxAttempts();if(this.shouldRetry(U,G,W)){const Z=G.errorType;this.retryBackoffStrategy.setDelayBase(Z==="THROTTLING"?T4:u0);const X=this.retryBackoffStrategy.computeNextBackoffDelay(U.getRetryCount()),L=G.retryAfterHint?Math.max(G.retryAfterHint.getTime()-Date.now()||0,X):X,Y=this.getCapacityCost(Z);return this.capacity-=Y,K4({retryDelay:L,retryCount:U.getRetryCount()+1,retryCost:Y})}throw new Error("No retry token available")}recordSuccess(U){this.capacity=Math.max(h$,this.capacity+(U.getRetryCost()??O4))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(U){return console.warn(`Max attempts provider could not resolve. Using default of ${k$}`),k$}}shouldRetry(U,G,W){return U.getRetryCount()+1<W&&this.capacity>=this.getCapacityCost(G.errorType)&&this.isRetryableError(G.errorType)}getCapacityCost(U){return U==="TRANSIENT"?H4:A4}isRetryableError(U){return U==="THROTTLING"||U==="TRANSIENT"}};l(C4,"StandardRetryStrategy");var v$=C4,q4=class ${constructor(U,G){this.maxAttemptsProvider=U,this.mode="adaptive";const{rateLimiter:W}=G??{};this.rateLimiter=W??new B4,this.standardRetryStrategy=new v$(U)}async acquireInitialRetryToken(U){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(U)}async refreshRetryTokenForRetry(U,G){return this.rateLimiter.updateClientSendingRate(G),this.standardRetryStrategy.refreshRetryTokenForRetry(U,G)}recordSuccess(U){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(U)}};l(q4,"AdaptiveRetryStrategy");var $F=q4,f4=class $ extends v${constructor(U,G=u0){super(typeof U==="function"?U:async()=>U);if(typeof G==="number")this.computeNextBackoffDelay=()=>G;else this.computeNextBackoffDelay=G}async refreshRetryTokenForRetry(U,G){const W=await super.refreshRetryTokenForRetry(U,G);return W.getRetryDelay=()=>this.computeNextBackoffDelay(W.getRetryCount()),W}};l(f4,"ConfiguredRetryStrategy");var UF=f4});var k4=M((m3,b4)=>{var{defineProperty:A1,getOwnPropertyDescriptor:GF,getOwnPropertyNames:WF}=Object,ZF=Object.prototype.hasOwnProperty,u=($,U)=>A1($,"name",{value:U,configurable:!0}),XF=($,U)=>{for(var G in U)A1($,G,{get:U[G],enumerable:!0})},LF=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of WF(U))if(!ZF.call($,Z)&&Z!==G)A1($,Z,{get:()=>U[Z],enumerable:!(W=GF(U,Z))||W.enumerable})}return $},YF=($)=>LF(A1({},"__esModule",{value:!0}),$),D4={};XF(D4,{constructStack:()=>c$});b4.exports=YF(D4);var z0=u(($,U)=>{const G=[];if($)G.push($);if(U)for(let W of U)G.push(W);return G},"getAllAliases"),U0=u(($,U)=>{return`${$||"anonymous"}${U&&U.length>0?` (a.k.a. ${U.join(",")})`:""}`},"getMiddlewareNameWithAliases"),c$=u(()=>{let $=[],U=[],G=!1;const W=new Set,Z=u((z)=>z.sort((I,J)=>P4[J.step]-P4[I.step]||S4[J.priority||"normal"]-S4[I.priority||"normal"]),"sort"),X=u((z)=>{let I=!1;const J=u((K)=>{const T=z0(K.name,K.aliases);if(T.includes(z)){I=!0;for(let E of T)W.delete(E);return!1}return!0},"filterCb");return $=$.filter(J),U=U.filter(J),I},"removeByName"),L=u((z)=>{let I=!1;const J=u((K)=>{if(K.middleware===z){I=!0;for(let T of z0(K.name,K.aliases))W.delete(T);return!1}return!0},"filterCb");return $=$.filter(J),U=U.filter(J),I},"removeByReference"),Y=u((z)=>{var I;return $.forEach((J)=>{z.add(J.middleware,{...J})}),U.forEach((J)=>{z.addRelativeTo(J.middleware,{...J})}),(I=z.identifyOnResolve)==null||I.call(z,w.identifyOnResolve()),z},"cloneTo"),F=u((z)=>{const I=[];return z.before.forEach((J)=>{if(J.before.length===0&&J.after.length===0)I.push(J);else I.push(...F(J))}),I.push(z),z.after.reverse().forEach((J)=>{if(J.before.length===0&&J.after.length===0)I.push(J);else I.push(...F(J))}),I},"expandRelativeMiddlewareList"),Q=u((z=!1)=>{const I=[],J=[],K={};return $.forEach((E)=>{const B={...E,before:[],after:[]};for(let V of z0(B.name,B.aliases))K[V]=B;I.push(B)}),U.forEach((E)=>{const B={...E,before:[],after:[]};for(let V of z0(B.name,B.aliases))K[V]=B;J.push(B)}),J.forEach((E)=>{if(E.toMiddleware){const B=K[E.toMiddleware];if(B===void 0){if(z)return;throw new Error(`${E.toMiddleware} is not found when adding ${U0(E.name,E.aliases)} middleware ${E.relation} ${E.toMiddleware}`)}if(E.relation==="after")B.after.push(E);if(E.relation==="before")B.before.push(E)}}),Z(I).map(F).reduce((E,B)=>{return E.push(...B),E},[])},"getMiddlewareList"),w={add:(z,I={})=>{const{name:J,override:K,aliases:T}=I,E={step:"initialize",priority:"normal",middleware:z,...I},B=z0(J,T);if(B.length>0){if(B.some((V)=>W.has(V))){if(!K)throw new Error(`Duplicate middleware name '${U0(J,T)}'`);for(let V of B){const A=$.findIndex((D)=>{var e;return D.name===V||((e=D.aliases)==null?void 0:e.some((F0)=>F0===V))});if(A===-1)continue;const H=$[A];if(H.step!==E.step||E.priority!==H.priority)throw new Error(`"${U0(H.name,H.aliases)}" middleware with ${H.priority} priority in ${H.step} step cannot be overridden by "${U0(J,T)}" middleware with ${E.priority} priority in ${E.step} step.`);$.splice(A,1)}}for(let V of B)W.add(V)}$.push(E)},addRelativeTo:(z,I)=>{const{name:J,override:K,aliases:T}=I,E={middleware:z,...I},B=z0(J,T);if(B.length>0){if(B.some((V)=>W.has(V))){if(!K)throw new Error(`Duplicate middleware name '${U0(J,T)}'`);for(let V of B){const A=U.findIndex((D)=>{var e;return D.name===V||((e=D.aliases)==null?void 0:e.some((F0)=>F0===V))});if(A===-1)continue;const H=U[A];if(H.toMiddleware!==E.toMiddleware||H.relation!==E.relation)throw new Error(`"${U0(H.name,H.aliases)}" middleware ${H.relation} "${H.toMiddleware}" middleware cannot be overridden by "${U0(J,T)}" middleware ${E.relation} "${E.toMiddleware}" middleware.`);U.splice(A,1)}}for(let V of B)W.add(V)}U.push(E)},clone:()=>Y(c$()),use:(z)=>{z.applyToStack(w)},remove:(z)=>{if(typeof z==="string")return X(z);else return L(z)},removeByTag:(z)=>{let I=!1;const J=u((K)=>{const{tags:T,name:E,aliases:B}=K;if(T&&T.includes(z)){const V=z0(E,B);for(let A of V)W.delete(A);return I=!0,!1}return!0},"filterCb");return $=$.filter(J),U=U.filter(J),I},concat:(z)=>{var I;const J=Y(c$());return J.use(z),J.identifyOnResolve(G||J.identifyOnResolve()||(((I=z.identifyOnResolve)==null?void 0:I.call(z))??!1)),J},applyToStack:Y,identify:()=>{return Q(!0).map((z)=>{const I=z.step??z.relation+" "+z.toMiddleware;return U0(z.name,z.aliases)+" - "+I})},identifyOnResolve(z){if(typeof z==="boolean")G=z;return G},resolve:(z,I)=>{for(let J of Q().map((K)=>K.middleware).reverse())z=J(z,I);if(G)console.log(w.identify());return z}};return w},"constructStack"),P4={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},S4={high:3,normal:2,low:1}});var y$=M((n3,x4)=>{var{defineProperty:H1,getOwnPropertyDescriptor:FF,getOwnPropertyNames:QF}=Object,wF=Object.prototype.hasOwnProperty,zF=($,U)=>H1($,"name",{value:U,configurable:!0}),IF=($,U)=>{for(var G in U)H1($,G,{get:U[G],enumerable:!0})},JF=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of QF(U))if(!wF.call($,Z)&&Z!==G)H1($,Z,{get:()=>U[Z],enumerable:!(W=FF(U,Z))||W.enumerable})}return $},RF=($)=>JF(H1({},"__esModule",{value:!0}),$),h4={};IF(h4,{isArrayBuffer:()=>KF});x4.exports=RF(h4);var KF=zF(($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]","isArrayBuffer")});var _0=M((i3,y4)=>{var{defineProperty:O1,getOwnPropertyDescriptor:MF,getOwnPropertyNames:EF}=Object,VF=Object.prototype.hasOwnProperty,v4=($,U)=>O1($,"name",{value:U,configurable:!0}),BF=($,U)=>{for(var G in U)O1($,G,{get:U[G],enumerable:!0})},TF=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of EF(U))if(!VF.call($,Z)&&Z!==G)O1($,Z,{get:()=>U[Z],enumerable:!(W=MF(U,Z))||W.enumerable})}return $},AF=($)=>TF(O1({},"__esModule",{value:!0}),$),c4={};BF(c4,{fromArrayBuffer:()=>OF,fromString:()=>CF});y4.exports=AF(c4);var HF=y$(),u$=import.meta.require("buffer"),OF=v4(($,U=0,G=$.byteLength-U)=>{if(!HF.isArrayBuffer($))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return u$.Buffer.from($,U,G)},"fromArrayBuffer"),CF=v4(($,U)=>{if(typeof $!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof $} (${$})`);return U?u$.Buffer.from($,U):u$.Buffer.from($)},"fromString")});var d4=M((u4)=>{Object.defineProperty(u4,"__esModule",{value:!0});u4.fromBase64=void 0;var qF=_0(),fF=/^[A-Za-z0-9+/]*={0,2}$/,NF=($)=>{if($.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!fF.exec($))throw new TypeError("Invalid base64 string.");const U=qF.fromString($,"base64");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength)};u4.fromBase64=NF});var G0=M((o3,s4)=>{var{defineProperty:C1,getOwnPropertyDescriptor:jF,getOwnPropertyNames:PF}=Object,SF=Object.prototype.hasOwnProperty,_$=($,U)=>C1($,"name",{value:U,configurable:!0}),DF=($,U)=>{for(var G in U)C1($,G,{get:U[G],enumerable:!0})},bF=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of PF(U))if(!SF.call($,Z)&&Z!==G)C1($,Z,{get:()=>U[Z],enumerable:!(W=jF(U,Z))||W.enumerable})}return $},kF=($)=>bF(C1({},"__esModule",{value:!0}),$),g4={};DF(g4,{fromUtf8:()=>l4,toUint8Array:()=>hF,toUtf8:()=>xF});s4.exports=kF(g4);var p4=_0(),l4=_$(($)=>{const U=p4.fromString($,"utf8");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),hF=_$(($)=>{if(typeof $==="string")return l4($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},"toUint8Array"),xF=_$(($)=>{if(typeof $==="string")return $;if(typeof $!=="object"||typeof $.byteOffset!=="number"||typeof $.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return p4.fromArrayBuffer($.buffer,$.byteOffset,$.byteLength).toString("utf8")},"toUtf8")});var i4=M((m4)=>{Object.defineProperty(m4,"__esModule",{value:!0});m4.toBase64=void 0;var vF=_0(),cF=G0(),yF=($)=>{let U;if(typeof $==="string")U=cF.fromUtf8($);else U=$;if(typeof U!=="object"||typeof U.byteOffset!=="number"||typeof U.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return vF.fromArrayBuffer(U.buffer,U.byteOffset,U.byteLength).toString("base64")};m4.toBase64=yF});var f1=M((t3,q1)=>{var{defineProperty:r4,getOwnPropertyDescriptor:uF,getOwnPropertyNames:_F}=Object,dF=Object.prototype.hasOwnProperty,d$=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of _F(U))if(!dF.call($,Z)&&Z!==G)r4($,Z,{get:()=>U[Z],enumerable:!(W=uF(U,Z))||W.enumerable})}return $},o4=($,U,G)=>(d$($,U,"default"),G&&d$(G,U,"default")),gF=($)=>d$(r4({},"__esModule",{value:!0}),$),g$={};q1.exports=gF(g$);o4(g$,d4(),q1.exports);o4(g$,i4(),q1.exports)});var e4=M((a4)=>{Object.defineProperty(a4,"__esModule",{value:!0});a4.getAwsChunkedEncodingStream=void 0;var pF=import.meta.require("stream"),lF=($,U)=>{const{base64Encoder:G,bodyLengthChecker:W,checksumAlgorithmFn:Z,checksumLocationName:X,streamHasher:L}=U,Y=G!==void 0&&Z!==void 0&&X!==void 0&&L!==void 0,F=Y?L(Z,$):void 0,Q=new pF.Readable({read:()=>{}});return $.on("data",(w)=>{const z=W(w)||0;Q.push(`${z.toString(16)}\r\n`),Q.push(w),Q.push("\r\n")}),$.on("end",async()=>{if(Q.push("0\r\n"),Y){const w=G(await F);Q.push(`${X}:${w}\r\n`),Q.push("\r\n")}Q.push(null)}),Q};a4.getAwsChunkedEncodingStream=lF});var l$=M(($K,G6)=>{var{defineProperty:N1,getOwnPropertyDescriptor:sF,getOwnPropertyNames:mF}=Object,nF=Object.prototype.hasOwnProperty,p$=($,U)=>N1($,"name",{value:U,configurable:!0}),iF=($,U)=>{for(var G in U)N1($,G,{get:U[G],enumerable:!0})},rF=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of mF(U))if(!nF.call($,Z)&&Z!==G)N1($,Z,{get:()=>U[Z],enumerable:!(W=sF(U,Z))||W.enumerable})}return $},oF=($)=>rF(N1({},"__esModule",{value:!0}),$),$6={};iF($6,{escapeUri:()=>U6,escapeUriPath:()=>tF});G6.exports=oF($6);var U6=p$(($)=>encodeURIComponent($).replace(/[!'()*]/g,aF),"escapeUri"),aF=p$(($)=>`%${$.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),tF=p$(($)=>$.split("/").map(U6).join("/"),"escapeUriPath")});var m$=M((UK,X6)=>{var Z6=function($){const U=[];for(let G of Object.keys($).sort()){const W=$[G];if(G=s$.escapeUri(G),Array.isArray(W))for(let Z=0,X=W.length;Z<X;Z++)U.push(`${G}=${s$.escapeUri(W[Z])}`);else{let Z=G;if(W||typeof W==="string")Z+=`=${s$.escapeUri(W)}`;U.push(Z)}}return U.join("&")},j1=Object.defineProperty,eF=Object.getOwnPropertyDescriptor,$Q=Object.getOwnPropertyNames,UQ=Object.prototype.hasOwnProperty,GQ=($,U)=>j1($,"name",{value:U,configurable:!0}),WQ=($,U)=>{for(var G in U)j1($,G,{get:U[G],enumerable:!0})},ZQ=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of $Q(U))if(!UQ.call($,Z)&&Z!==G)j1($,Z,{get:()=>U[Z],enumerable:!(W=eF(U,Z))||W.enumerable})}return $},XQ=($)=>ZQ(j1({},"__esModule",{value:!0}),$),W6={};WQ(W6,{buildQueryString:()=>Z6});X6.exports=XQ(W6);var s$=l$();GQ(Z6,"buildQueryString")});var H6=M((GK,A6)=>{async function r$($,U,G=L6){const W=U.headers??{},Z=W.Expect||W.expect;let X=-1,L=!1;if(Z==="100-continue")await Promise.race([new Promise((Y)=>{X=Number(setTimeout(Y,Math.max(L6,G)))}),new Promise((Y)=>{$.on("continue",()=>{clearTimeout(X),Y()}),$.on("error",()=>{L=!0,clearTimeout(X),Y()})})]);if(!L)R6($,U.body)}var R6=function($,U){if(U instanceof J6.Readable){U.pipe($);return}if(U){if(Buffer.isBuffer(U)||typeof U==="string"){$.end(U);return}const G=U;if(typeof G==="object"&&G.buffer&&typeof G.byteOffset==="number"&&typeof G.byteLength==="number"){$.end(Buffer.from(G.buffer,G.byteOffset,G.byteLength));return}$.end(Buffer.from(U));return}$.end()};async function T6($){const U=[],G=$.getReader();let W=!1,Z=0;while(!W){const{done:Y,value:F}=await G.read();if(F)U.push(F),Z+=F.length;W=Y}const X=new Uint8Array(Z);let L=0;for(let Y of U)X.set(Y,L),L+=Y.length;return X}var{create:LQ,defineProperty:d0,getOwnPropertyDescriptor:YQ,getOwnPropertyNames:FQ,getPrototypeOf:QQ}=Object,wQ=Object.prototype.hasOwnProperty,N=($,U)=>d0($,"name",{value:U,configurable:!0}),zQ=($,U)=>{for(var G in U)d0($,G,{get:U[G],enumerable:!0})},F6=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of FQ(U))if(!wQ.call($,Z)&&Z!==G)d0($,Z,{get:()=>U[Z],enumerable:!(W=YQ(U,Z))||W.enumerable})}return $},IQ=($,U,G)=>(G=$!=null?LQ(QQ($)):{},F6(U||!$||!$.__esModule?d0(G,"default",{value:$,enumerable:!0}):G,$)),JQ=($)=>F6(d0({},"__esModule",{value:!0}),$),Q6={};zQ(Q6,{DEFAULT_REQUEST_TIMEOUT:()=>VQ,NodeHttp2Handler:()=>OQ,NodeHttpHandler:()=>BQ,streamCollector:()=>qQ});A6.exports=JQ(Q6);var w6=r(),z6=m$(),n$=import.meta.require("http"),i$=import.meta.require("https"),RQ=["ECONNRESET","EPIPE","ETIMEDOUT"],I6=N(($)=>{const U={};for(let G of Object.keys($)){const W=$[G];U[G]=Array.isArray(W)?W.join(","):W}return U},"getTransformedHeaders"),KQ=N(($,U,G=0)=>{if(!G)return;const W=setTimeout(()=>{$.destroy(),U(Object.assign(new Error(`Socket timed out without establishing a connection within ${G} ms`),{name:"TimeoutError"}))},G);$.on("socket",(Z)=>{if(Z.connecting)Z.on("connect",()=>{clearTimeout(W)});else clearTimeout(W)})},"setConnectionTimeout"),MQ=N(($,{keepAlive:U,keepAliveMsecs:G})=>{if(U!==!0)return;$.on("socket",(W)=>{W.setKeepAlive(U,G||0)})},"setSocketKeepAlive"),EQ=N(($,U,G=0)=>{$.setTimeout(G,()=>{$.destroy(),U(Object.assign(new Error(`Connection timed out after ${G} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),J6=import.meta.require("stream"),L6=1000;N(r$,"writeRequestBody");N(R6,"writeBody");var VQ=0,K6=class ${constructor(U){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((G,W)=>{if(typeof U==="function")U().then((Z)=>{G(this.resolveDefaultConfig(Z))}).catch(W);else G(this.resolveDefaultConfig(U))})}static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}static checkSocketUsage(U,G,W=console){var Z,X,L;const{sockets:Y,requests:F,maxSockets:Q}=U;if(typeof Q!=="number"||Q===Infinity)return G;const w=15000;if(Date.now()-w<G)return G;if(Y&&F)for(let z in Y){const I=((Z=Y[z])==null?void 0:Z.length)??0,J=((X=F[z])==null?void 0:X.length)??0;if(I>=Q&&J>=2*Q)return(L=W==null?void 0:W.warn)==null||L.call(W,`@smithy/node-http-handler:WARN - socket usage at capacity=${I} and ${J} 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 G}resolveDefaultConfig(U){const{requestTimeout:G,connectionTimeout:W,socketTimeout:Z,httpAgent:X,httpsAgent:L}=U||{};return{connectionTimeout:W,requestTimeout:G??Z,httpAgent:(()=>{if(X instanceof n$.Agent||typeof(X==null?void 0:X.destroy)==="function")return X;return new n$.Agent({keepAlive:!0,maxSockets:50,...X})})(),httpsAgent:(()=>{if(L instanceof i$.Agent||typeof(L==null?void 0:L.destroy)==="function")return L;return new i$.Agent({keepAlive:!0,maxSockets:50,...L})})(),logger:console}}destroy(){var U,G,W,Z;(G=(U=this.config)==null?void 0:U.httpAgent)==null||G.destroy(),(Z=(W=this.config)==null?void 0:W.httpsAgent)==null||Z.destroy()}async handle(U,{abortSignal:G}={}){if(!this.config)this.config=await this.configProvider;let W;return new Promise((Z,X)=>{let L=void 0;const Y=N(async(V)=>{await L,clearTimeout(W),Z(V)},"resolve"),F=N(async(V)=>{await L,clearTimeout(W),X(V)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(G==null?void 0:G.aborted){const V=new Error("Request aborted");V.name="AbortError",F(V);return}const Q=U.protocol==="https:",w=Q?this.config.httpsAgent:this.config.httpAgent;W=setTimeout(()=>{this.socketWarningTimestamp=$.checkSocketUsage(w,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const z=z6.buildQueryString(U.query||{});let I=void 0;if(U.username!=null||U.password!=null){const V=U.username??"",A=U.password??"";I=`${V}:${A}`}let J=U.path;if(z)J+=`?${z}`;if(U.fragment)J+=`#${U.fragment}`;const K={headers:U.headers,host:U.hostname,method:U.method,path:J,port:U.port,agent:w,auth:I},E=(Q?i$.request:n$.request)(K,(V)=>{const A=new w6.HttpResponse({statusCode:V.statusCode||-1,reason:V.statusMessage,headers:I6(V.headers),body:V});Y({response:A})});if(E.on("error",(V)=>{if(RQ.includes(V.code))F(Object.assign(V,{name:"TimeoutError"}));else F(V)}),KQ(E,F,this.config.connectionTimeout),EQ(E,F,this.config.requestTimeout),G){const V=N(()=>{E.destroy();const A=new Error("Request aborted");A.name="AbortError",F(A)},"onAbort");if(typeof G.addEventListener==="function"){const A=G;A.addEventListener("abort",V,{once:!0}),E.once("close",()=>A.removeEventListener("abort",V))}else G.onabort=V}const B=K.agent;if(typeof B==="object"&&"keepAlive"in B)MQ(E,{keepAlive:B.keepAlive,keepAliveMsecs:B.keepAliveMsecs});L=r$(E,U,this.config.requestTimeout).catch((V)=>{return clearTimeout(W),X(V)})})}updateHttpClientConfig(U,G){this.config=void 0,this.configProvider=this.configProvider.then((W)=>{return{...W,[U]:G}})}httpHandlerConfigs(){return this.config??{}}};N(K6,"NodeHttpHandler");var BQ=K6,Y6=import.meta.require("http2"),TQ=IQ(import.meta.require("http2")),M6=class ${constructor(U){this.sessions=[],this.sessions=U??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(U){this.sessions.push(U)}contains(U){return this.sessions.includes(U)}remove(U){this.sessions=this.sessions.filter((G)=>G!==U)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(U){for(let G of this.sessions)if(G===U){if(!G.destroyed)G.destroy()}}};N(M6,"NodeHttp2ConnectionPool");var AQ=M6,E6=class ${constructor(U){if(this.sessionCache=new Map,this.config=U,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(U,G){const W=this.getUrlString(U),Z=this.sessionCache.get(W);if(Z){const F=Z.poll();if(F&&!this.config.disableConcurrency)return F}const X=TQ.default.connect(W);if(this.config.maxConcurrency)X.settings({maxConcurrentStreams:this.config.maxConcurrency},(F)=>{if(F)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+U.destination.toString())});X.unref();const L=N(()=>{X.destroy(),this.deleteSession(W,X)},"destroySessionCb");if(X.on("goaway",L),X.on("error",L),X.on("frameError",L),X.on("close",()=>this.deleteSession(W,X)),G.requestTimeout)X.setTimeout(G.requestTimeout,L);const Y=this.sessionCache.get(W)||new AQ;return Y.offerLast(X),this.sessionCache.set(W,Y),X}deleteSession(U,G){const W=this.sessionCache.get(U);if(!W)return;if(!W.contains(G))return;W.remove(G),this.sessionCache.set(U,W)}release(U,G){var W;const Z=this.getUrlString(U);(W=this.sessionCache.get(Z))==null||W.offerLast(G)}destroy(){for(let[U,G]of this.sessionCache){for(let W of G){if(!W.destroyed)W.destroy();G.remove(W)}this.sessionCache.delete(U)}}setMaxConcurrentStreams(U){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=U}setDisableConcurrentStreams(U){this.config.disableConcurrency=U}getUrlString(U){return U.destination.toString()}};N(E6,"NodeHttp2ConnectionManager");var HQ=E6,V6=class ${constructor(U){this.metadata={handlerProtocol:"h2"},this.connectionManager=new HQ({}),this.configProvider=new Promise((G,W)=>{if(typeof U==="function")U().then((Z)=>{G(Z||{})}).catch(W);else G(U||{})})}static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}destroy(){this.connectionManager.destroy()}async handle(U,{abortSignal:G}={}){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:W,disableConcurrentStreams:Z}=this.config;return new Promise((X,L)=>{var Y;let F=!1,Q=void 0;const w=N(async(f)=>{await Q,X(f)},"resolve"),z=N(async(f)=>{await Q,L(f)},"reject");if(G==null?void 0:G.aborted){F=!0;const f=new Error("Request aborted");f.name="AbortError",z(f);return}const{hostname:I,method:J,port:K,protocol:T,query:E}=U;let B="";if(U.username!=null||U.password!=null){const f=U.username??"",d=U.password??"";B=`${f}:${d}@`}const V=`${T}//${B}${I}${K?`:${K}`:""}`,A={destination:new URL(V)},H=this.connectionManager.lease(A,{requestTimeout:(Y=this.config)==null?void 0:Y.sessionTimeout,disableConcurrentStreams:Z||!1}),D=N((f)=>{if(Z)this.destroySession(H);F=!0,z(f)},"rejectWithDestroy"),e=z6.buildQueryString(E||{});let F0=U.path;if(e)F0+=`?${e}`;if(U.fragment)F0+=`#${U.fragment}`;const v=H.request({...U.headers,[Y6.constants.HTTP2_HEADER_PATH]:F0,[Y6.constants.HTTP2_HEADER_METHOD]:J});if(H.ref(),v.on("response",(f)=>{const d=new w6.HttpResponse({statusCode:f[":status"]||-1,headers:I6(f),body:v});if(F=!0,w({response:d}),Z)H.close(),this.connectionManager.deleteSession(V,H)}),W)v.setTimeout(W,()=>{v.close();const f=new Error(`Stream timed out because of no activity for ${W} ms`);f.name="TimeoutError",D(f)});if(G){const f=N(()=>{v.close();const d=new Error("Request aborted");d.name="AbortError",D(d)},"onAbort");if(typeof G.addEventListener==="function"){const d=G;d.addEventListener("abort",f,{once:!0}),v.once("close",()=>d.removeEventListener("abort",f))}else G.onabort=f}v.on("frameError",(f,d,iL)=>{D(new Error(`Frame type id ${f} in stream id ${iL} has failed with code ${d}.`))}),v.on("error",D),v.on("aborted",()=>{D(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${v.rstCode}.`))}),v.on("close",()=>{if(H.unref(),Z)H.destroy();if(!F)D(new Error("Unexpected error: http2 request did not get a response"))}),Q=r$(v,U,W)})}updateHttpClientConfig(U,G){this.config=void 0,this.configProvider=this.configProvider.then((W)=>{return{...W,[U]:G}})}httpHandlerConfigs(){return this.config??{}}destroySession(U){if(!U.destroyed)U.destroy()}};N(V6,"NodeHttp2Handler");var OQ=V6,B6=class $ extends J6.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(U,G,W){this.bufferedBytes.push(U),W()}};N(B6,"Collector");var CQ=B6,qQ=N(($)=>{if(fQ($))return T6($);return new Promise((U,G)=>{const W=new CQ;$.pipe(W),$.on("error",(Z)=>{W.end(),G(Z)}),W.on("error",G),W.on("finish",function(){const Z=new Uint8Array(Buffer.concat(this.bufferedBytes));U(Z)})})},"streamCollector"),fQ=N(($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream,"isReadableStreamInstance");N(T6,"collectReadableStream")});var D6=M((WK,S6)=>{var q6=function($=0){return new Promise((U,G)=>{if($)setTimeout(()=>{const W=new Error(`Request did not complete within ${$} ms`);W.name="TimeoutError",G(W)},$)})};async function N6($){const U=await P6($),G=xQ.fromBase64(U);return new Uint8Array(G)}async function j6($){const U=[],G=$.getReader();let W=!1,Z=0;while(!W){const{done:Y,value:F}=await G.read();if(F)U.push(F),Z+=F.length;W=Y}const X=new Uint8Array(Z);let L=0;for(let Y of U)X.set(Y,L),L+=Y.length;return X}var P6=function($){return new Promise((U,G)=>{const W=new FileReader;W.onloadend=()=>{if(W.readyState!==2)return G(new Error("Reader aborted too early"));const Z=W.result??"",X=Z.indexOf(","),L=X>-1?X+1:Z.length;U(Z.substring(L))},W.onabort=()=>G(new Error("Read aborted")),W.onerror=()=>G(W.error),W.readAsDataURL($)})},S1=Object.defineProperty,NQ=Object.getOwnPropertyDescriptor,jQ=Object.getOwnPropertyNames,PQ=Object.prototype.hasOwnProperty,a=($,U)=>S1($,"name",{value:U,configurable:!0}),SQ=($,U)=>{for(var G in U)S1($,G,{get:U[G],enumerable:!0})},DQ=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of jQ(U))if(!PQ.call($,Z)&&Z!==G)S1($,Z,{get:()=>U[Z],enumerable:!(W=NQ(U,Z))||W.enumerable})}return $},bQ=($)=>DQ(S1({},"__esModule",{value:!0}),$),C6={};SQ(C6,{FetchHttpHandler:()=>hQ,keepAliveSupport:()=>P1,streamCollector:()=>vQ});S6.exports=bQ(C6);var O6=r(),kQ=m$();a(q6,"requestTimeout");var P1={supported:void 0},f6=class ${static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}constructor(U){if(typeof U==="function")this.configProvider=U().then((G)=>G||{});else this.config=U??{},this.configProvider=Promise.resolve(this.config);if(P1.supported===void 0)P1.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in new Request("https://[::1]"))}destroy(){}async handle(U,{abortSignal:G}={}){if(!this.config)this.config=await this.configProvider;const W=this.config.requestTimeout,Z=this.config.keepAlive===!0,X=this.config.credentials;if(G==null?void 0:G.aborted){const B=new Error("Request aborted");return B.name="AbortError",Promise.reject(B)}let L=U.path;const Y=kQ.buildQueryString(U.query||{});if(Y)L+=`?${Y}`;if(U.fragment)L+=`#${U.fragment}`;let F="";if(U.username!=null||U.password!=null){const B=U.username??"",V=U.password??"";F=`${B}:${V}@`}const{port:Q,method:w}=U,z=`${U.protocol}//${F}${U.hostname}${Q?`:${Q}`:""}${L}`,I=w==="GET"||w==="HEAD"?void 0:U.body,J={body:I,headers:new Headers(U.headers),method:w,credentials:X};if(I)J.duplex="half";if(typeof AbortController!=="undefined")J.signal=G;if(P1.supported)J.keepalive=Z;let K=a(()=>{},"removeSignalEventListener");const T=new Request(z,J),E=[fetch(T).then((B)=>{const V=B.headers,A={};for(let D of V.entries())A[D[0]]=D[1];if(B.body==null)return B.blob().then((D)=>({response:new O6.HttpResponse({headers:A,reason:B.statusText,statusCode:B.status,body:D})}));return{response:new O6.HttpResponse({headers:A,reason:B.statusText,statusCode:B.status,body:B.body})}}),q6(W)];if(G)E.push(new Promise((B,V)=>{const A=a(()=>{const H=new Error("Request aborted");H.name="AbortError",V(H)},"onAbort");if(typeof G.addEventListener==="function"){const H=G;H.addEventListener("abort",A,{once:!0}),K=a(()=>H.removeEventListener("abort",A),"removeSignalEventListener")}else G.onabort=A}));return Promise.race(E).finally(K)}updateHttpClientConfig(U,G){this.config=void 0,this.configProvider=this.configProvider.then((W)=>{return W[U]=G,W})}httpHandlerConfigs(){return this.config??{}}};a(f6,"FetchHttpHandler");var hQ=f6,xQ=f1(),vQ=a(($)=>{if(typeof Blob==="function"&&$ instanceof Blob)return N6($);return j6($)},"streamCollector");a(N6,"collectBlob");a(j6,"collectStream");a(P6,"readToBase64")});var a$=M((ZK,c6)=>{var x6=function($){if($.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const U=new Uint8Array($.length/2);for(let G=0;G<$.length;G+=2){const W=$.slice(G,G+2).toLowerCase();if(W in o$)U[G/2]=o$[W];else throw new Error(`Cannot decode unrecognized sequence ${W} as hexadecimal`)}return U},v6=function($){let U="";for(let G=0;G<$.byteLength;G++)U+=h6[$[G]];return U},D1=Object.defineProperty,cQ=Object.getOwnPropertyDescriptor,yQ=Object.getOwnPropertyNames,uQ=Object.prototype.hasOwnProperty,b6=($,U)=>D1($,"name",{value:U,configurable:!0}),_Q=($,U)=>{for(var G in U)D1($,G,{get:U[G],enumerable:!0})},dQ=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of yQ(U))if(!uQ.call($,Z)&&Z!==G)D1($,Z,{get:()=>U[Z],enumerable:!(W=cQ(U,Z))||W.enumerable})}return $},gQ=($)=>dQ(D1({},"__esModule",{value:!0}),$),k6={};_Q(k6,{fromHex:()=>x6,toHex:()=>v6});c6.exports=gQ(k6);var h6={},o$={};for(let $=0;$<256;$++){let U=$.toString(16).toLowerCase();if(U.length===1)U=`0${U}`;h6[$]=U,o$[U]=$}b6(x6,"fromHex");b6(v6,"toHex")});var g0=M((y6)=>{Object.defineProperty(y6,"__esModule",{value:!0});y6.isReadableStream=void 0;var pQ=($)=>{var U;return typeof ReadableStream==="function"&&(((U=$===null||$===void 0?void 0:$.constructor)===null||U===void 0?void 0:U.name)===ReadableStream.name||$ instanceof ReadableStream)};y6.isReadableStream=pQ});var s6=M((p6)=>{Object.defineProperty(p6,"__esModule",{value:!0});p6.sdkStreamMixin=void 0;var lQ=D6(),sQ=f1(),mQ=a$(),nQ=G0(),_6=g0(),d6="The stream has already been transformed.",iQ=($)=>{var U,G;if(!g6($)&&!_6.isReadableStream($)){const L=((G=(U=$===null||$===void 0?void 0:$.__proto__)===null||U===void 0?void 0:U.constructor)===null||G===void 0?void 0:G.name)||$;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${L}`)}let W=!1;const Z=async()=>{if(W)throw new Error(d6);return W=!0,await lQ.streamCollector($)},X=(L)=>{if(typeof L.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return L.stream()};return Object.assign($,{transformToByteArray:Z,transformToString:async(L)=>{const Y=await Z();if(L==="base64")return sQ.toBase64(Y);else if(L==="hex")return mQ.toHex(Y);else if(L===void 0||L==="utf8"||L==="utf-8")return nQ.toUtf8(Y);else if(typeof TextDecoder==="function")return new TextDecoder(L).decode(Y);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(W)throw new Error(d6);if(W=!0,g6($))return X($);else if(_6.isReadableStream($))return $;else throw new Error(`Cannot transform payload to web stream, got ${$}`)}})};p6.sdkStreamMixin=iQ;var g6=($)=>typeof Blob==="function"&&$ instanceof Blob});var r6=M((n6)=>{Object.defineProperty(n6,"__esModule",{value:!0});n6.sdkStreamMixin=void 0;var rQ=H6(),oQ=_0(),t$=import.meta.require("stream"),aQ=import.meta.require("util"),tQ=s6(),m6="The stream has already been transformed.",eQ=($)=>{var U,G;if(!($ instanceof t$.Readable))try{return tQ.sdkStreamMixin($)}catch(X){const L=((G=(U=$===null||$===void 0?void 0:$.__proto__)===null||U===void 0?void 0:U.constructor)===null||G===void 0?void 0:G.name)||$;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${L}`)}let W=!1;const Z=async()=>{if(W)throw new Error(m6);return W=!0,await rQ.streamCollector($)};return Object.assign($,{transformToByteArray:Z,transformToString:async(X)=>{const L=await Z();if(X===void 0||Buffer.isEncoding(X))return oQ.fromArrayBuffer(L.buffer,L.byteOffset,L.byteLength).toString(X);else return new aQ.TextDecoder(X).decode(L)},transformToWebStream:()=>{if(W)throw new Error(m6);if($.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof t$.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 W=!0,t$.Readable.toWeb($)}})};n6.sdkStreamMixin=eQ});var t6=M((o6)=>{async function $7($){if(typeof $.stream==="function")$=$.stream();return $.tee()}Object.defineProperty(o6,"__esModule",{value:!0});o6.splitStream=void 0;o6.splitStream=$7});var GW=M(($W)=>{async function W7($){if(G7.isReadableStream($))return U7.splitStream($);const U=new e6.PassThrough,G=new e6.PassThrough;return $.pipe(U),$.pipe(G),[U,G]}Object.defineProperty($W,"__esModule",{value:!0});$W.splitStream=void 0;var e6=import.meta.require("stream"),U7=t6(),G7=g0();$W.splitStream=W7});var XW=M((WW)=>{async function Z7($,U){var G;let W=0;const Z=[],X=$.getReader();let L=!1;while(!L){const{done:Q,value:w}=await X.read();if(w)Z.push(w),W+=(G=w===null||w===void 0?void 0:w.byteLength)!==null&&G!==void 0?G:0;if(W>=U)break;L=Q}X.releaseLock();const Y=new Uint8Array(Math.min(U,W));let F=0;for(let Q of Z){if(Q.byteLength>Y.byteLength-F){Y.set(Q.subarray(0,Y.byteLength-F),F);break}else Y.set(Q,F);F+=Q.length}return Y}Object.defineProperty(WW,"__esModule",{value:!0});WW.headStream=void 0;WW.headStream=Z7});var QW=M((YW)=>{Object.defineProperty(YW,"__esModule",{value:!0});YW.headStream=void 0;var X7=import.meta.require("stream"),L7=XW(),Y7=g0(),F7=($,U)=>{if(Y7.isReadableStream($))return L7.headStream($,U);return new Promise((G,W)=>{const Z=new LW;Z.limit=U,$.pipe(Z),$.on("error",(X)=>{Z.end(),W(X)}),Z.on("error",W),Z.on("finish",function(){const X=new Uint8Array(Buffer.concat(this.buffers));G(X)})})};YW.headStream=F7;class LW extends X7.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=Infinity,this.bytesBuffered=0}_write($,U,G){var W;if(this.buffers.push($),this.bytesBuffered+=(W=$.byteLength)!==null&&W!==void 0?W:0,this.bytesBuffered>=this.limit){const Z=this.bytesBuffered-this.limit,X=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=X.subarray(0,X.byteLength-Z),this.emit("finish")}G()}}});var KW=M((IK,J0)=>{var IW=function($,U="utf-8"){if(U==="base64")return wW.toBase64($);return zW.toUtf8($)},JW=function($,U){if(U==="base64")return $U.mutate(wW.fromBase64($));return $U.mutate(zW.fromUtf8($))},b1=Object.defineProperty,Q7=Object.getOwnPropertyDescriptor,w7=Object.getOwnPropertyNames,z7=Object.prototype.hasOwnProperty,UU=($,U)=>b1($,"name",{value:U,configurable:!0}),I7=($,U)=>{for(var G in U)b1($,G,{get:U[G],enumerable:!0})},e$=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of w7(U))if(!z7.call($,Z)&&Z!==G)b1($,Z,{get:()=>U[Z],enumerable:!(W=Q7(U,Z))||W.enumerable})}return $},p0=($,U,G)=>(e$($,U,"default"),G&&e$(G,U,"default")),J7=($)=>e$(b1({},"__esModule",{value:!0}),$),I0={};I7(I0,{Uint8ArrayBlobAdapter:()=>$U});J0.exports=J7(I0);var wW=f1(),zW=G0();UU(IW,"transformToString");UU(JW,"transformFromString");var RW=class $ extends Uint8Array{static fromString(U,G="utf-8"){switch(typeof U){case"string":return JW(U,G);default:throw new Error(`Unsupported conversion from ${typeof U} to Uint8ArrayBlobAdapter.`)}}static mutate(U){return Object.setPrototypeOf(U,$.prototype),U}transformToString(U="utf-8"){return IW(this,U)}};UU(RW,"Uint8ArrayBlobAdapter");var $U=RW;p0(I0,e4(),J0.exports);p0(I0,r6(),J0.exports);p0(I0,GW(),J0.exports);p0(I0,QW(),J0.exports);p0(I0,g0(),J0.exports)});var N0=M((JK,yW)=>{var PW=function($){const U=$.getUTCFullYear(),G=$.getUTCMonth(),W=$.getUTCDay(),Z=$.getUTCDate(),X=$.getUTCHours(),L=$.getUTCMinutes(),Y=$.getUTCSeconds(),F=Z<10?`0${Z}`:`${Z}`,Q=X<10?`0${X}`:`${X}`,w=L<10?`0${L}`:`${L}`,z=Y<10?`0${Y}`:`${Y}`;return`${d7[W]}, ${F} ${IU[G]} ${U} ${Q}:${w}:${z} GMT`},x1=function($){return encodeURIComponent($).replace(/[!'()*]/g,function(U){return"%"+U.charCodeAt(0).toString(16).toUpperCase()})},JU=function($,U,G){let W,Z,X;if(typeof U==="undefined"&&typeof G==="undefined")W={},X=$;else if(W=$,typeof U==="function")return Z=U,X=G,Tw(W,Z,X);else X=U;for(let L of Object.keys(X)){if(!Array.isArray(X[L])){W[L]=X[L];continue}vW(W,null,X,L)}return W},cW=function($,U,G){if(G<=0||!Number.isInteger(G))throw new Error("Invalid number of delimiters ("+G+") for splitEvery.");const W=$.split(U);if(G===1)return W;const Z=[];let X="";for(let L=0;L<W.length;L++){if(X==="")X=W[L];else X+=U+W[L];if((L+1)%G===0)Z.push(X),X=""}if(X!=="")Z.push(X);return Z},v1=Object.defineProperty,R7=Object.getOwnPropertyDescriptor,K7=Object.getOwnPropertyNames,M7=Object.prototype.hasOwnProperty,R=($,U)=>v1($,"name",{value:U,configurable:!0}),E7=($,U)=>{for(var G in U)v1($,G,{get:U[G],enumerable:!0})},V7=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of K7(U))if(!M7.call($,Z)&&Z!==G)v1($,Z,{get:()=>U[Z],enumerable:!(W=R7(U,Z))||W.enumerable})}return $},B7=($)=>V7(v1({},"__esModule",{value:!0}),$),EW={};E7(EW,{Client:()=>A7,Command:()=>HW,LazyJsonString:()=>Ew,NoOpLogger:()=>T7,SENSITIVE_STRING:()=>C7,ServiceException:()=>Xw,StringWrapper:()=>i0,_json:()=>FU,collectBody:()=>H7,convertMap:()=>Vw,createAggregatedClient:()=>q7,dateToUtcString:()=>PW,decorateServiceException:()=>DW,emitWarningIfUnsupportedVersion:()=>Qw,expectBoolean:()=>N7,expectByte:()=>YU,expectFloat32:()=>k1,expectInt:()=>P7,expectInt32:()=>XU,expectLong:()=>m0,expectNonNull:()=>D7,expectNumber:()=>s0,expectObject:()=>CW,expectShort:()=>LU,expectString:()=>b7,expectUnion:()=>k7,extendedEncodeURIComponent:()=>x1,getArrayIfSingleItem:()=>Mw,getDefaultClientConfiguration:()=>Rw,getDefaultExtensionConfiguration:()=>kW,getValueFromTextNode:()=>hW,handleFloat:()=>v7,limitedParseDouble:()=>zU,limitedParseFloat:()=>c7,limitedParseFloat32:()=>y7,loadConfigsForDefaultMode:()=>Fw,logger:()=>n0,map:()=>JU,parseBoolean:()=>f7,parseEpochTimestamp:()=>o7,parseRfc3339DateTime:()=>p7,parseRfc3339DateTimeWithOffset:()=>s7,parseRfc7231DateTime:()=>r7,resolveDefaultRuntimeConfig:()=>Kw,resolvedPath:()=>Ow,serializeDateTime:()=>qw,serializeFloat:()=>Cw,splitEvery:()=>cW,strictParseByte:()=>jW,strictParseDouble:()=>wU,strictParseFloat:()=>h7,strictParseFloat32:()=>qW,strictParseInt:()=>u7,strictParseInt32:()=>_7,strictParseLong:()=>NW,strictParseShort:()=>C0,take:()=>Bw,throwDefaultError:()=>bW,withBaseException:()=>Lw});yW.exports=B7(EW);var VW=class ${trace(){}debug(){}info(){}warn(){}error(){}};R(VW,"NoOpLogger");var T7=VW,BW=k4(),TW=class ${constructor(U){this.middlewareStack=BW.constructStack(),this.config=U}send(U,G,W){const Z=typeof G!=="function"?G:void 0,X=typeof G==="function"?G:W,L=U.resolveMiddleware(this.middlewareStack,this.config,Z);if(X)L(U).then((Y)=>X(null,Y.output),(Y)=>X(Y)).catch(()=>{});else return L(U).then((Y)=>Y.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}};R(TW,"Client");var A7=TW,GU=KW(),H7=R(async($=new Uint8Array,U)=>{if($ instanceof Uint8Array)return GU.Uint8ArrayBlobAdapter.mutate($);if(!$)return GU.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const G=U.streamCollector($);return GU.Uint8ArrayBlobAdapter.mutate(await G)},"collectBody"),ZU=T0(),AW=class ${constructor(){this.middlewareStack=BW.constructStack()}static classBuilder(){return new O7}resolveMiddlewareWithContext(U,G,W,{middlewareFn:Z,clientName:X,commandName:L,inputFilterSensitiveLog:Y,outputFilterSensitiveLog:F,smithyContext:Q,additionalContext:w,CommandCtor:z}){for(let E of Z.bind(this)(z,U,G,W))this.middlewareStack.use(E);const I=U.concat(this.middlewareStack),{logger:J}=G,K={logger:J,clientName:X,commandName:L,inputFilterSensitiveLog:Y,outputFilterSensitiveLog:F,[ZU.SMITHY_CONTEXT_KEY]:{commandInstance:this,...Q},...w},{requestHandler:T}=G;return I.resolve((E)=>T.handle(E.request,W||{}),K)}};R(AW,"Command");var HW=AW,OW=class ${constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(U)=>U,this._outputFilterSensitiveLog=(U)=>U,this._serializer=null,this._deserializer=null}init(U){this._init=U}ep(U){return this._ep=U,this}m(U){return this._middlewareFn=U,this}s(U,G,W={}){return this._smithyContext={service:U,operation:G,...W},this}c(U={}){return this._additionalContext=U,this}n(U,G){return this._clientName=U,this._commandName=G,this}f(U=(W)=>W,G=(W)=>W){return this._inputFilterSensitiveLog=U,this._outputFilterSensitiveLog=G,this}ser(U){return this._serializer=U,this}de(U){return this._deserializer=U,this}build(){var U;const G=this;let W;return W=(U=class extends HW{constructor(...[Z]){super();this.serialize=G._serializer,this.deserialize=G._deserializer,this.input=Z??{},G._init(this)}static getEndpointParameterInstructions(){return G._ep}resolveMiddleware(Z,X,L){return this.resolveMiddlewareWithContext(Z,X,L,{CommandCtor:W,middlewareFn:G._middlewareFn,clientName:G._clientName,commandName:G._commandName,inputFilterSensitiveLog:G._inputFilterSensitiveLog,outputFilterSensitiveLog:G._outputFilterSensitiveLog,smithyContext:G._smithyContext,additionalContext:G._additionalContext})}},R(U,"CommandRef"),U)}};R(OW,"ClassBuilder");var O7=OW,C7="***SensitiveInformation***",q7=R(($,U)=>{for(let G of Object.keys($)){const W=$[G],Z=R(async function(L,Y,F){const Q=new W(L);if(typeof Y==="function")this.send(Q,Y);else if(typeof F==="function"){if(typeof Y!=="object")throw new Error(`Expected http options but got ${typeof Y}`);this.send(Q,Y||{},F)}else return this.send(Q,Y)},"methodImpl"),X=(G[0].toLowerCase()+G.slice(1)).replace(/Command$/,"");U.prototype[X]=Z}},"createAggregatedClient"),f7=R(($)=>{switch($){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${$}"`)}},"parseBoolean"),N7=R(($)=>{if($===null||$===void 0)return;if(typeof $==="number"){if($===0||$===1)n0.warn(h1(`Expected boolean, got ${typeof $}: ${$}`));if($===0)return!1;if($===1)return!0}if(typeof $==="string"){const U=$.toLowerCase();if(U==="false"||U==="true")n0.warn(h1(`Expected boolean, got ${typeof $}: ${$}`));if(U==="false")return!1;if(U==="true")return!0}if(typeof $==="boolean")return $;throw new TypeError(`Expected boolean, got ${typeof $}: ${$}`)},"expectBoolean"),s0=R(($)=>{if($===null||$===void 0)return;if(typeof $==="string"){const U=parseFloat($);if(!Number.isNaN(U)){if(String(U)!==String($))n0.warn(h1(`Expected number but observed string: ${$}`));return U}}if(typeof $==="number")return $;throw new TypeError(`Expected number, got ${typeof $}: ${$}`)},"expectNumber"),j7=Math.ceil(340282346638528860000000000000000000000),k1=R(($)=>{const U=s0($);if(U!==void 0&&!Number.isNaN(U)&&U!==Infinity&&U!==(-Infinity)){if(Math.abs(U)>j7)throw new TypeError(`Expected 32-bit float, got ${$}`)}return U},"expectFloat32"),m0=R(($)=>{if($===null||$===void 0)return;if(Number.isInteger($)&&!Number.isNaN($))return $;throw new TypeError(`Expected integer, got ${typeof $}: ${$}`)},"expectLong"),P7=m0,XU=R(($)=>QU($,32),"expectInt32"),LU=R(($)=>QU($,16),"expectShort"),YU=R(($)=>QU($,8),"expectByte"),QU=R(($,U)=>{const G=m0($);if(G!==void 0&&S7(G,U)!==G)throw new TypeError(`Expected ${U}-bit integer, got ${$}`);return G},"expectSizedInt"),S7=R(($,U)=>{switch(U){case 32:return Int32Array.of($)[0];case 16:return Int16Array.of($)[0];case 8:return Int8Array.of($)[0]}},"castInt"),D7=R(($,U)=>{if($===null||$===void 0){if(U)throw new TypeError(`Expected a non-null value for ${U}`);throw new TypeError("Expected a non-null value")}return $},"expectNonNull"),CW=R(($)=>{if($===null||$===void 0)return;if(typeof $==="object"&&!Array.isArray($))return $;const U=Array.isArray($)?"array":typeof $;throw new TypeError(`Expected object, got ${U}: ${$}`)},"expectObject"),b7=R(($)=>{if($===null||$===void 0)return;if(typeof $==="string")return $;if(["boolean","number","bigint"].includes(typeof $))return n0.warn(h1(`Expected string, got ${typeof $}: ${$}`)),String($);throw new TypeError(`Expected string, got ${typeof $}: ${$}`)},"expectString"),k7=R(($)=>{if($===null||$===void 0)return;const U=CW($),G=Object.entries(U).filter(([,W])=>W!=null).map(([W])=>W);if(G.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(G.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${G} were not null.`);return U},"expectUnion"),wU=R(($)=>{if(typeof $=="string")return s0(f0($));return s0($)},"strictParseDouble"),h7=wU,qW=R(($)=>{if(typeof $=="string")return k1(f0($));return k1($)},"strictParseFloat32"),x7=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,f0=R(($)=>{const U=$.match(x7);if(U===null||U[0].length!==$.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat($)},"parseNumber"),zU=R(($)=>{if(typeof $=="string")return fW($);return s0($)},"limitedParseDouble"),v7=zU,c7=zU,y7=R(($)=>{if(typeof $=="string")return fW($);return k1($)},"limitedParseFloat32"),fW=R(($)=>{switch($){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return (-Infinity);default:throw new Error(`Unable to parse float value: ${$}`)}},"parseFloatString"),NW=R(($)=>{if(typeof $==="string")return m0(f0($));return m0($)},"strictParseLong"),u7=NW,_7=R(($)=>{if(typeof $==="string")return XU(f0($));return XU($)},"strictParseInt32"),C0=R(($)=>{if(typeof $==="string")return LU(f0($));return LU($)},"strictParseShort"),jW=R(($)=>{if(typeof $==="string")return YU(f0($));return YU($)},"strictParseByte"),h1=R(($)=>{return String(new TypeError($).stack||$).split("\n").slice(0,5).filter((U)=>!U.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),n0={warn:console.warn},d7=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],IU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];R(PW,"dateToUtcString");var g7=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),p7=R(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const U=g7.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");const[G,W,Z,X,L,Y,F,Q]=U,w=C0(q0(W)),z=n(Z,"month",1,12),I=n(X,"day",1,31);return l0(w,z,I,{hours:L,minutes:Y,seconds:F,fractionalMilliseconds:Q})},"parseRfc3339DateTime"),l7=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),s7=R(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const U=l7.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");const[G,W,Z,X,L,Y,F,Q,w]=U,z=C0(q0(W)),I=n(Z,"month",1,12),J=n(X,"day",1,31),K=l0(z,I,J,{hours:L,minutes:Y,seconds:F,fractionalMilliseconds:Q});if(w.toUpperCase()!="Z")K.setTime(K.getTime()-Zw(w));return K},"parseRfc3339DateTimeWithOffset"),m7=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$/),n7=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$/),i7=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})$/),r7=R(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let U=m7.exec($);if(U){const[G,W,Z,X,L,Y,F,Q]=U;return l0(C0(q0(X)),WU(Z),n(W,"day",1,31),{hours:L,minutes:Y,seconds:F,fractionalMilliseconds:Q})}if(U=n7.exec($),U){const[G,W,Z,X,L,Y,F,Q]=U;return e7(l0(a7(X),WU(Z),n(W,"day",1,31),{hours:L,minutes:Y,seconds:F,fractionalMilliseconds:Q}))}if(U=i7.exec($),U){const[G,W,Z,X,L,Y,F,Q]=U;return l0(C0(q0(Q)),WU(W),n(Z.trimLeft(),"day",1,31),{hours:X,minutes:L,seconds:Y,fractionalMilliseconds:F})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),o7=R(($)=>{if($===null||$===void 0)return;let U;if(typeof $==="number")U=$;else if(typeof $==="string")U=wU($);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(U)||U===Infinity||U===(-Infinity))throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(U*1000))},"parseEpochTimestamp"),l0=R(($,U,G,W)=>{const Z=U-1;return Uw($,Z,G),new Date(Date.UTC($,Z,G,n(W.hours,"hour",0,23),n(W.minutes,"minute",0,59),n(W.seconds,"seconds",0,60),Ww(W.fractionalMilliseconds)))},"buildDate"),a7=R(($)=>{const U=(new Date()).getUTCFullYear(),G=Math.floor(U/100)*100+C0(q0($));if(G<U)return G+100;return G},"parseTwoDigitYear"),t7=1576800000000,e7=R(($)=>{if($.getTime()-(new Date()).getTime()>t7)return new Date(Date.UTC($.getUTCFullYear()-100,$.getUTCMonth(),$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),$.getUTCMilliseconds()));return $},"adjustRfc850Year"),WU=R(($)=>{const U=IU.indexOf($);if(U<0)throw new TypeError(`Invalid month: ${$}`);return U+1},"parseMonthByShortName"),$w=[31,28,31,30,31,30,31,31,30,31,30,31],Uw=R(($,U,G)=>{let W=$w[U];if(U===1&&Gw($))W=29;if(G>W)throw new TypeError(`Invalid day for ${IU[U]} in ${$}: ${G}`)},"validateDayOfMonth"),Gw=R(($)=>{return $%4===0&&($%100!==0||$%400===0)},"isLeapYear"),n=R(($,U,G,W)=>{const Z=jW(q0($));if(Z<G||Z>W)throw new TypeError(`${U} must be between ${G} and ${W}, inclusive`);return Z},"parseDateValue"),Ww=R(($)=>{if($===null||$===void 0)return 0;return qW("0."+$)*1000},"parseMilliseconds"),Zw=R(($)=>{const U=$[0];let G=1;if(U=="+")G=1;else if(U=="-")G=-1;else throw new TypeError(`Offset direction, ${U}, must be "+" or "-"`);const W=Number($.substring(1,3)),Z=Number($.substring(4,6));return G*(W*60+Z)*60*1000},"parseOffsetToMilliseconds"),q0=R(($)=>{let U=0;while(U<$.length-1&&$.charAt(U)==="0")U++;if(U===0)return $;return $.slice(U)},"stripLeadingZeroes"),SW=class $ extends Error{constructor(U){super(U.message);Object.setPrototypeOf(this,$.prototype),this.name=U.name,this.$fault=U.$fault,this.$metadata=U.$metadata}};R(SW,"ServiceException");var Xw=SW,DW=R(($,U={})=>{Object.entries(U).filter(([,W])=>W!==void 0).forEach(([W,Z])=>{if($[W]==null||$[W]==="")$[W]=Z});const G=$.message||$.Message||"UnknownError";return $.message=G,delete $.Message,$},"decorateServiceException"),bW=R(({output:$,parsedBody:U,exceptionCtor:G,errorCode:W})=>{const Z=Yw($),X=Z.httpStatusCode?Z.httpStatusCode+"":void 0,L=new G({name:(U==null?void 0:U.code)||(U==null?void 0:U.Code)||W||X||"UnknownError",$fault:"client",$metadata:Z});throw DW(L,U)},"throwDefaultError"),Lw=R(($)=>{return({output:U,parsedBody:G,errorCode:W})=>{bW({output:U,parsedBody:G,exceptionCtor:$,errorCode:W})}},"withBaseException"),Yw=R(($)=>({httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}),"deserializeMetadata"),Fw=R(($)=>{switch($){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},"loadConfigsForDefaultMode"),MW=!1,Qw=R(($)=>{if($&&!MW&&parseInt($.substring(1,$.indexOf(".")))<16)MW=!0},"emitWarningIfUnsupportedVersion"),ww=R(($)=>{const U=[];for(let G in ZU.AlgorithmId){const W=ZU.AlgorithmId[G];if($[W]===void 0)continue;U.push({algorithmId:()=>W,checksumConstructor:()=>$[W]})}return{_checksumAlgorithms:U,addChecksumAlgorithm(G){this._checksumAlgorithms.push(G)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),zw=R(($)=>{const U={};return $.checksumAlgorithms().forEach((G)=>{U[G.algorithmId()]=G.checksumConstructor()}),U},"resolveChecksumRuntimeConfig"),Iw=R(($)=>{let U=$.retryStrategy;return{setRetryStrategy(G){U=G},retryStrategy(){return U}}},"getRetryConfiguration"),Jw=R(($)=>{const U={};return U.retryStrategy=$.retryStrategy(),U},"resolveRetryRuntimeConfig"),kW=R(($)=>{return{...ww($),...Iw($)}},"getDefaultExtensionConfiguration"),Rw=kW,Kw=R(($)=>{return{...zw($),...Jw($)}},"resolveDefaultRuntimeConfig");R(x1,"extendedEncodeURIComponent");var Mw=R(($)=>Array.isArray($)?$:[$],"getArrayIfSingleItem"),hW=R(($)=>{for(let G in $)if($.hasOwnProperty(G)&&$[G]["#text"]!==void 0)$[G]=$[G]["#text"];else if(typeof $[G]==="object"&&$[G]!==null)$[G]=hW($[G]);return $},"getValueFromTextNode"),i0=R(function(){const $=Object.getPrototypeOf(this).constructor,G=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(G,$.prototype),G},"StringWrapper");i0.prototype=Object.create(String.prototype,{constructor:{value:i0,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(i0,String);var xW=class $ extends i0{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(U){if(U instanceof $)return U;else if(U instanceof String||typeof U==="string")return new $(U);return new $(JSON.stringify(U))}};R(xW,"LazyJsonString");var Ew=xW;R(JU,"map");var Vw=R(($)=>{const U={};for(let[G,W]of Object.entries($||{}))U[G]=[,W];return U},"convertMap"),Bw=R(($,U)=>{const G={};for(let W in U)vW(G,$,U,W);return G},"take"),Tw=R(($,U,G)=>{return JU($,Object.entries(G).reduce((W,[Z,X])=>{if(Array.isArray(X))W[Z]=X;else if(typeof X==="function")W[Z]=[U,X()];else W[Z]=[U,X];return W},{}))},"mapWithFilter"),vW=R(($,U,G,W)=>{if(U!==null){let L=G[W];if(typeof L==="function")L=[,L];const[Y=Aw,F=Hw,Q=W]=L;if(typeof Y==="function"&&Y(U[Q])||typeof Y!=="function"&&!!Y)$[W]=F(U[Q]);return}let[Z,X]=G[W];if(typeof X==="function"){let L;const Y=Z===void 0&&(L=X())!=null,F=typeof Z==="function"&&!!Z(void 0)||typeof Z!=="function"&&!!Z;if(Y)$[W]=L;else if(F)$[W]=X()}else{const L=Z===void 0&&X!=null,Y=typeof Z==="function"&&!!Z(X)||typeof Z!=="function"&&!!Z;if(L||Y)$[W]=X}},"applyInstruction"),Aw=R(($)=>$!=null,"nonNullish"),Hw=R(($)=>$,"pass"),Ow=R(($,U,G,W,Z,X)=>{if(U!=null&&U[G]!==void 0){const L=W();if(L.length<=0)throw new Error("Empty value provided for input HTTP label: "+G+".");$=$.replace(Z,X?L.split("/").map((Y)=>x1(Y)).join("/"):x1(L))}else throw new Error("No value provided for input HTTP label: "+G+".");return $},"resolvedPath"),Cw=R(($)=>{if($!==$)return"NaN";switch($){case Infinity:return"Infinity";case (-Infinity):return"-Infinity";default:return $}},"serializeFloat"),qw=R(($)=>$.toISOString().replace(".000Z","Z"),"serializeDateTime"),FU=R(($)=>{if($==null)return{};if(Array.isArray($))return $.filter((U)=>U!=null).map(FU);if(typeof $==="object"){const U={};for(let G of Object.keys($)){if($[G]==null)continue;U[G]=FU($[G])}return U}return $},"_json");R(cW,"splitEvery")});var dW=M((uW)=>{Object.defineProperty(uW,"__esModule",{value:!0});uW.isStreamingPayload=void 0;var fw=import.meta.require("stream"),Nw=($)=>($===null||$===void 0?void 0:$.body)instanceof fw.Readable||typeof ReadableStream!=="undefined"&&($===null||$===void 0?void 0:$.body)instanceof ReadableStream;uW.isStreamingPayload=Nw});var XZ=M((MK,ZZ)=>{var{defineProperty:c1,getOwnPropertyDescriptor:jw,getOwnPropertyNames:Pw}=Object,Sw=Object.prototype.hasOwnProperty,P=($,U)=>c1($,"name",{value:U,configurable:!0}),Dw=($,U)=>{for(var G in U)c1($,G,{get:U[G],enumerable:!0})},bw=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of Pw(U))if(!Sw.call($,Z)&&Z!==G)c1($,Z,{get:()=>U[Z],enumerable:!(W=jw(U,Z))||W.enumerable})}return $},kw=($)=>bw(c1({},"__esModule",{value:!0}),$),pW={};Dw(pW,{AdaptiveRetryStrategy:()=>vw,CONFIG_MAX_ATTEMPTS:()=>KU,CONFIG_RETRY_MODE:()=>tW,ENV_MAX_ATTEMPTS:()=>RU,ENV_RETRY_MODE:()=>aW,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>cw,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>uw,StandardRetryStrategy:()=>rW,defaultDelayDecider:()=>sW,defaultRetryDecider:()=>mW,getOmitRetryHeadersPlugin:()=>_w,getRetryAfterHint:()=>WZ,getRetryPlugin:()=>mw,omitRetryHeadersMiddleware:()=>eW,omitRetryHeadersMiddlewareOptions:()=>$Z,resolveRetryConfig:()=>yw,retryMiddleware:()=>UZ,retryMiddlewareOptions:()=>GZ});ZZ.exports=kw(pW);var j0=r(),lW=D$(),q=j4(),hw=P(($,U)=>{const G=$,W=(U==null?void 0:U.noRetryIncrement)??q.NO_RETRY_INCREMENT,Z=(U==null?void 0:U.retryCost)??q.RETRY_COST,X=(U==null?void 0:U.timeoutRetryCost)??q.TIMEOUT_RETRY_COST;let L=$;const Y=P((z)=>z.name==="TimeoutError"?X:Z,"getCapacityAmount"),F=P((z)=>Y(z)<=L,"hasRetryTokens");return Object.freeze({hasRetryTokens:F,retrieveRetryTokens:P((z)=>{if(!F(z))throw new Error("No retry token available");const I=Y(z);return L-=I,I},"retrieveRetryTokens"),releaseRetryTokens:P((z)=>{L+=z??W,L=Math.min(L,G)},"releaseRetryTokens")})},"getDefaultRetryQuota"),sW=P(($,U)=>Math.floor(Math.min(q.MAXIMUM_RETRY_DELAY,Math.random()*2**U*$)),"defaultDelayDecider"),W0=b$(),mW=P(($)=>{if(!$)return!1;return W0.isRetryableByTrait($)||W0.isClockSkewError($)||W0.isThrottlingError($)||W0.isTransientError($)},"defaultRetryDecider"),nW=P(($)=>{if($ instanceof Error)return $;if($ instanceof Object)return Object.assign(new Error,$);if(typeof $==="string")return new Error($);return new Error(`AWS SDK error wrapper for ${$}`)},"asSdkError"),iW=class ${constructor(U,G){this.maxAttemptsProvider=U,this.mode=q.RETRY_MODES.STANDARD,this.retryDecider=(G==null?void 0:G.retryDecider)??mW,this.delayDecider=(G==null?void 0:G.delayDecider)??sW,this.retryQuota=(G==null?void 0:G.retryQuota)??hw(q.INITIAL_RETRY_TOKENS)}shouldRetry(U,G,W){return G<W&&this.retryDecider(U)&&this.retryQuota.hasRetryTokens(U)}async getMaxAttempts(){let U;try{U=await this.maxAttemptsProvider()}catch(G){U=q.DEFAULT_MAX_ATTEMPTS}return U}async retry(U,G,W){let Z,X=0,L=0;const Y=await this.getMaxAttempts(),{request:F}=G;if(j0.HttpRequest.isInstance(F))F.headers[q.INVOCATION_ID_HEADER]=lW.v4();while(!0)try{if(j0.HttpRequest.isInstance(F))F.headers[q.REQUEST_HEADER]=`attempt=${X+1}; max=${Y}`;if(W==null?void 0:W.beforeRequest)await W.beforeRequest();const{response:Q,output:w}=await U(G);if(W==null?void 0:W.afterRequest)W.afterRequest(Q);return this.retryQuota.releaseRetryTokens(Z),w.$metadata.attempts=X+1,w.$metadata.totalRetryDelay=L,{response:Q,output:w}}catch(Q){const w=nW(Q);if(X++,this.shouldRetry(w,X,Y)){Z=this.retryQuota.retrieveRetryTokens(w);const z=this.delayDecider(W0.isThrottlingError(w)?q.THROTTLING_RETRY_DELAY_BASE:q.DEFAULT_RETRY_DELAY_BASE,X),I=xw(w.$response),J=Math.max(I||0,z);L+=J,await new Promise((K)=>setTimeout(K,J));continue}if(!w.$metadata)w.$metadata={};throw w.$metadata.attempts=X,w.$metadata.totalRetryDelay=L,w}}};P(iW,"StandardRetryStrategy");var rW=iW,xw=P(($)=>{if(!j0.HttpResponse.isInstance($))return;const U=Object.keys($.headers).find((X)=>X.toLowerCase()==="retry-after");if(!U)return;const G=$.headers[U],W=Number(G);if(!Number.isNaN(W))return W*1000;return new Date(G).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),oW=class $ extends rW{constructor(U,G){const{rateLimiter:W,...Z}=G??{};super(U,Z);this.rateLimiter=W??new q.DefaultRateLimiter,this.mode=q.RETRY_MODES.ADAPTIVE}async retry(U,G){return super.retry(U,G,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(W)=>{this.rateLimiter.updateClientSendingRate(W)}})}};P(oW,"AdaptiveRetryStrategy");var vw=oW,gW=m(),RU="AWS_MAX_ATTEMPTS",KU="max_attempts",cw={environmentVariableSelector:($)=>{const U=$[RU];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Environment variable ${RU} mast be a number, got "${U}"`);return G},configFileSelector:($)=>{const U=$[KU];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Shared config file entry ${KU} mast be a number, got "${U}"`);return G},default:q.DEFAULT_MAX_ATTEMPTS},yw=P(($)=>{const{retryStrategy:U}=$,G=gW.normalizeProvider($.maxAttempts??q.DEFAULT_MAX_ATTEMPTS);return{...$,maxAttempts:G,retryStrategy:async()=>{if(U)return U;if(await gW.normalizeProvider($.retryMode)()===q.RETRY_MODES.ADAPTIVE)return new q.AdaptiveRetryStrategy(G);return new q.StandardRetryStrategy(G)}}},"resolveRetryConfig"),aW="AWS_RETRY_MODE",tW="retry_mode",uw={environmentVariableSelector:($)=>$[aW],configFileSelector:($)=>$[tW],default:q.DEFAULT_RETRY_MODE},eW=P(()=>($)=>async(U)=>{const{request:G}=U;if(j0.HttpRequest.isInstance(G))delete G.headers[q.INVOCATION_ID_HEADER],delete G.headers[q.REQUEST_HEADER];return $(U)},"omitRetryHeadersMiddleware"),$Z={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},_w=P(($)=>({applyToStack:(U)=>{U.addRelativeTo(eW(),$Z)}}),"getOmitRetryHeadersPlugin"),dw=N0(),gw=dW(),UZ=P(($)=>(U,G)=>async(W)=>{var Z;let X=await $.retryStrategy();const L=await $.maxAttempts();if(pw(X)){X=X;let Y=await X.acquireInitialRetryToken(G.partition_id),F=new Error,Q=0,w=0;const{request:z}=W,I=j0.HttpRequest.isInstance(z);if(I)z.headers[q.INVOCATION_ID_HEADER]=lW.v4();while(!0)try{if(I)z.headers[q.REQUEST_HEADER]=`attempt=${Q+1}; max=${L}`;const{response:J,output:K}=await U(W);return X.recordSuccess(Y),K.$metadata.attempts=Q+1,K.$metadata.totalRetryDelay=w,{response:J,output:K}}catch(J){const K=lw(J);if(F=nW(J),I&&gw.isStreamingPayload(z))throw(Z=G.logger instanceof dw.NoOpLogger?console:G.logger)==null||Z.warn("An error was encountered in a non-retryable streaming request."),F;try{Y=await X.refreshRetryTokenForRetry(Y,K)}catch(E){if(!F.$metadata)F.$metadata={};throw F.$metadata.attempts=Q+1,F.$metadata.totalRetryDelay=w,F}Q=Y.getRetryCount();const T=Y.getRetryDelay();w+=T,await new Promise((E)=>setTimeout(E,T))}}else{if(X=X,X==null?void 0:X.mode)G.userAgent=[...G.userAgent||[],["cfg/retry-mode",X.mode]];return X.retry(U,W)}},"retryMiddleware"),pw=P(($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined","isRetryStrategyV2"),lw=P(($)=>{const U={error:$,errorType:sw($)},G=WZ($.$response);if(G)U.retryAfterHint=G;return U},"getRetryErrorInfo"),sw=P(($)=>{if(W0.isThrottlingError($))return"THROTTLING";if(W0.isTransientError($))return"TRANSIENT";if(W0.isServerError($))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),GZ={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},mw=P(($)=>({applyToStack:(U)=>{U.add(UZ($),GZ)}}),"getRetryPlugin"),WZ=P(($)=>{if(!j0.HttpResponse.isInstance($))return;const U=Object.keys($.headers).find((X)=>X.toLowerCase()==="retry-after");if(!U)return;const G=$.headers[U],W=Number(G);if(!Number.isNaN(W))return new Date(W*1000);return new Date(G)},"getRetryAfterHint")});var EU=M((EK,CZ)=>{var FZ=function($){const U=new Map;for(let G of $)U.set(G.schemeId,G);return U},TZ=function($,U){return new HZ($,U)},OZ=function($,U,G,W,Z){return C(async function*X(L,Y,...F){let Q=L.startingToken||void 0,w=!0,z;while(w){if(Y[G]=Q,Z)Y[Z]=Y[Z]??L.pageSize;if(L.client instanceof $)z=await Mz(U,L.client,Y,...F);else throw new Error(`Invalid client, expected instance of ${$.name}`);yield z;const I=Q;Q=Ez(z,W),w=!!(Q&&(!L.stopOnSameToken||Q!==I))}return},"paginateOperation")},u1=Object.defineProperty,nw=Object.getOwnPropertyDescriptor,iw=Object.getOwnPropertyNames,rw=Object.prototype.hasOwnProperty,C=($,U)=>u1($,"name",{value:U,configurable:!0}),ow=($,U)=>{for(var G in U)u1($,G,{get:U[G],enumerable:!0})},aw=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of iw(U))if(!rw.call($,Z)&&Z!==G)u1($,Z,{get:()=>U[Z],enumerable:!(W=nw(U,Z))||W.enumerable})}return $},tw=($)=>aw(u1({},"__esModule",{value:!0}),$),LZ={};ow(LZ,{DefaultIdentityProviderConfig:()=>Yz,EXPIRATION_MS:()=>VZ,HttpApiKeyAuthSigner:()=>Fz,HttpBearerAuthSigner:()=>Qz,NoAuthSigner:()=>wz,RequestBuilder:()=>HZ,createIsIdentityExpiredFunction:()=>EZ,createPaginator:()=>OZ,doesIdentityRequireRefresh:()=>BZ,getHttpAuthSchemeEndpointRuleSetPlugin:()=>$z,getHttpAuthSchemePlugin:()=>Gz,getHttpSigningPlugin:()=>Lz,getSmithyContext:()=>Jz,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>QZ,httpAuthSchemeMiddleware:()=>MU,httpAuthSchemeMiddlewareOptions:()=>wZ,httpSigningMiddleware:()=>zZ,httpSigningMiddlewareOptions:()=>IZ,isIdentityExpired:()=>zz,memoizeIdentityProvider:()=>Iz,normalizeProvider:()=>Rz,requestBuilder:()=>TZ});CZ.exports=tw(LZ);var YZ=m();C(FZ,"convertHttpAuthSchemesToMap");var MU=C(($,U)=>(G,W)=>async(Z)=>{var X;const L=$.httpAuthSchemeProvider(await U.httpAuthSchemeParametersProvider($,W,Z.input)),Y=FZ($.httpAuthSchemes),F=YZ.getSmithyContext(W),Q=[];for(let w of L){const z=Y.get(w.schemeId);if(!z){Q.push(`HttpAuthScheme \`${w.schemeId}\` was not enabled for this service.`);continue}const I=z.identityProvider(await U.identityProviderConfigProvider($));if(!I){Q.push(`HttpAuthScheme \`${w.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:J={},signingProperties:K={}}=((X=w.propertiesExtractor)==null?void 0:X.call(w,$,W))||{};w.identityProperties=Object.assign(w.identityProperties||{},J),w.signingProperties=Object.assign(w.signingProperties||{},K),F.selectedHttpAuthScheme={httpAuthOption:w,identity:await I(w.identityProperties),signer:z.signer};break}if(!F.selectedHttpAuthScheme)throw new Error(Q.join("\n"));return G(Z)},"httpAuthSchemeMiddleware"),ew=F8(),QZ={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:ew.endpointMiddlewareOptions.name},$z=C(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G})=>({applyToStack:(W)=>{W.addRelativeTo(MU($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G}),QZ)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),Uz=O$(),wZ={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:Uz.serializerMiddlewareOption.name},Gz=C(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G})=>({applyToStack:(W)=>{W.addRelativeTo(MU($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G}),wZ)}}),"getHttpAuthSchemePlugin"),_1=r(),Wz=C(($)=>(U)=>{throw U},"defaultErrorHandler"),Zz=C(($,U)=>{},"defaultSuccessHandler"),zZ=C(($)=>(U,G)=>async(W)=>{if(!_1.HttpRequest.isInstance(W.request))return U(W);const X=YZ.getSmithyContext(G).selectedHttpAuthScheme;if(!X)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:L={}},identity:Y,signer:F}=X,Q=await U({...W,request:await F.sign(W.request,Y,L)}).catch((F.errorHandler||Wz)(L));return(F.successHandler||Zz)(Q.response,L),Q},"httpSigningMiddleware"),Xz=XZ(),IZ={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:Xz.retryMiddlewareOptions.name},Lz=C(($)=>({applyToStack:(U)=>{U.addRelativeTo(zZ($),IZ)}}),"getHttpSigningPlugin"),JZ=class ${constructor(U){this.authSchemes=new Map;for(let[G,W]of Object.entries(U))if(W!==void 0)this.authSchemes.set(G,W)}getIdentityProvider(U){return this.authSchemes.get(U)}};C(JZ,"DefaultIdentityProviderConfig");var Yz=JZ,y1=T0(),RZ=class ${async sign(U,G,W){if(!W)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!W.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!W.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!G.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");const Z=_1.HttpRequest.clone(U);if(W.in===y1.HttpApiKeyAuthLocation.QUERY)Z.query[W.name]=G.apiKey;else if(W.in===y1.HttpApiKeyAuthLocation.HEADER)Z.headers[W.name]=W.scheme?`${W.scheme} ${G.apiKey}`:G.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+W.in+"`");return Z}};C(RZ,"HttpApiKeyAuthSigner");var Fz=RZ,KZ=class ${async sign(U,G,W){const Z=_1.HttpRequest.clone(U);if(!G.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return Z.headers.Authorization=`Bearer ${G.token}`,Z}};C(KZ,"HttpBearerAuthSigner");var Qz=KZ,MZ=class ${async sign(U,G,W){return U}};C(MZ,"NoAuthSigner");var wz=MZ,EZ=C(($)=>(U)=>BZ(U)&&U.expiration.getTime()-Date.now()<$,"createIsIdentityExpiredFunction"),VZ=300000,zz=EZ(VZ),BZ=C(($)=>$.expiration!==void 0,"doesIdentityRequireRefresh"),Iz=C(($,U,G)=>{if($===void 0)return;const W=typeof $!=="function"?async()=>Promise.resolve($):$;let Z,X,L,Y=!1;const F=C(async(Q)=>{if(!X)X=W(Q);try{Z=await X,L=!0,Y=!1}finally{X=void 0}return Z},"coalesceProvider");if(U===void 0)return async(Q)=>{if(!L||(Q==null?void 0:Q.forceRefresh))Z=await F(Q);return Z};return async(Q)=>{if(!L||(Q==null?void 0:Q.forceRefresh))Z=await F(Q);if(Y)return Z;if(!G(Z))return Y=!0,Z;if(U(Z))return await F(Q),Z;return Z}},"memoizeIdentityProvider"),Jz=C(($)=>$[y1.SMITHY_CONTEXT_KEY]||($[y1.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),Rz=C(($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U},"normalizeProvider"),Kz=N0();C(TZ,"requestBuilder");var AZ=class ${constructor(U,G){this.input=U,this.context=G,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:U,protocol:G="https",port:W,path:Z}=await this.context.endpoint();this.path=Z;for(let X of this.resolvePathStack)X(this.path);return new _1.HttpRequest({protocol:G,hostname:this.hostname||U,port:W,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(U){return this.hostname=U,this}bp(U){return this.resolvePathStack.push((G)=>{this.path=`${(G==null?void 0:G.endsWith("/"))?G.slice(0,-1):G||""}`+U}),this}p(U,G,W,Z){return this.resolvePathStack.push((X)=>{this.path=Kz.resolvedPath(X,this.input,U,G,W,Z)}),this}h(U){return this.headers=U,this}q(U){return this.query=U,this}b(U){return this.body=U,this}m(U){return this.method=U,this}};C(AZ,"RequestBuilder");var HZ=AZ,Mz=C(async($,U,G,...W)=>{return await U.send(new $(G),...W)},"makePagedClientRequest");C(OZ,"createPaginator");var Ez=C(($,U)=>{let G=$;const W=U.split(".");for(let Z of W){if(!G||typeof G!=="object")return;G=G[Z]}return G},"get")});var AX=M((xA,TX)=>{var{defineProperty:W$,getOwnPropertyDescriptor:ez,getOwnPropertyNames:$I}=Object,UI=Object.prototype.hasOwnProperty,GI=($,U)=>W$($,"name",{value:U,configurable:!0}),WI=($,U)=>{for(var G in U)W$($,G,{get:U[G],enumerable:!0})},ZI=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of $I(U))if(!UI.call($,Z)&&Z!==G)W$($,Z,{get:()=>U[Z],enumerable:!(W=ez(U,Z))||W.enumerable})}return $},XI=($)=>ZI(W$({},"__esModule",{value:!0}),$),BX={};WI(BX,{emitWarningIfUnsupportedVersion:()=>LI});TX.exports=XI(BX);var VX=!1,LI=GI(($)=>{if($&&!VX&&parseInt($.substring(1,$.indexOf(".")))<18)VX=!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 dX=M((vA,_X)=>{var gU=function($){for(let U=0;U<8;U++)$[U]^=255;for(let U=7;U>-1;U--)if($[U]++,$[U]!==0)break},F$=Object.defineProperty,YI=Object.getOwnPropertyDescriptor,FI=Object.getOwnPropertyNames,QI=Object.prototype.hasOwnProperty,S=($,U)=>F$($,"name",{value:U,configurable:!0}),wI=($,U)=>{for(var G in U)F$($,G,{get:U[G],enumerable:!0})},zI=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of FI(U))if(!QI.call($,Z)&&Z!==G)F$($,Z,{get:()=>U[Z],enumerable:!(W=YI(U,Z))||W.enumerable})}return $},II=($)=>zI(F$({},"__esModule",{value:!0}),$),fX={};wI(fX,{SignatureV4:()=>yI,clearCredentialCache:()=>PI,createScope:()=>L$,getCanonicalHeaders:()=>dU,getCanonicalQuery:()=>hX,getPayloadHash:()=>Y$,getSigningKey:()=>kX,moveHeadersToQuery:()=>yX,prepareRequest:()=>pU});_X.exports=II(fX);var HX=m(),yU=G0(),JI="X-Amz-Algorithm",RI="X-Amz-Credential",NX="X-Amz-Date",KI="X-Amz-SignedHeaders",MI="X-Amz-Expires",jX="X-Amz-Signature",PX="X-Amz-Security-Token",SX="authorization",DX=NX.toLowerCase(),EI="date",VI=[SX,DX,EI],BI=jX.toLowerCase(),_U="x-amz-content-sha256",TI=PX.toLowerCase(),AI={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},HI=/^proxy-/,OI=/^sec-/,uU="AWS4-HMAC-SHA256",CI="AWS4-HMAC-SHA256-PAYLOAD",qI="UNSIGNED-PAYLOAD",fI=50,bX="aws4_request",NI=604800,L0=a$(),jI=G0(),k0={},X$=[],L$=S(($,U,G)=>`${$}/${U}/${G}/${bX}`,"createScope"),kX=S(async($,U,G,W,Z)=>{const X=await OX($,U.secretAccessKey,U.accessKeyId),L=`${G}:${W}:${Z}:${L0.toHex(X)}:${U.sessionToken}`;if(L in k0)return k0[L];X$.push(L);while(X$.length>fI)delete k0[X$.shift()];let Y=`AWS4${U.secretAccessKey}`;for(let F of[G,W,Z,bX])Y=await OX($,Y,F);return k0[L]=Y},"getSigningKey"),PI=S(()=>{X$.length=0,Object.keys(k0).forEach(($)=>{delete k0[$]})},"clearCredentialCache"),OX=S(($,U,G)=>{const W=new $(U);return W.update(jI.toUint8Array(G)),W.digest()},"hmac"),dU=S(({headers:$},U,G)=>{const W={};for(let Z of Object.keys($).sort()){if($[Z]==null)continue;const X=Z.toLowerCase();if(X in AI||(U==null?void 0:U.has(X))||HI.test(X)||OI.test(X)){if(!G||G&&!G.has(X))continue}W[X]=$[Z].trim().replace(/\s+/g," ")}return W},"getCanonicalHeaders"),e0=l$(),hX=S(({query:$={}})=>{const U=[],G={};for(let W of Object.keys($).sort()){if(W.toLowerCase()===BI)continue;U.push(W);const Z=$[W];if(typeof Z==="string")G[W]=`${e0.escapeUri(W)}=${e0.escapeUri(Z)}`;else if(Array.isArray(Z))G[W]=Z.slice(0).reduce((X,L)=>X.concat([`${e0.escapeUri(W)}=${e0.escapeUri(L)}`]),[]).sort().join("&")}return U.map((W)=>G[W]).filter((W)=>W).join("&")},"getCanonicalQuery"),SI=y$(),DI=G0(),Y$=S(async({headers:$,body:U},G)=>{for(let W of Object.keys($))if(W.toLowerCase()===_U)return $[W];if(U==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof U==="string"||ArrayBuffer.isView(U)||SI.isArrayBuffer(U)){const W=new G;return W.update(DI.toUint8Array(U)),L0.toHex(await W.digest())}return qI},"getPayloadHash"),CX=G0(),xX=class ${format(U){const G=[];for(let X of Object.keys(U)){const L=CX.fromUtf8(X);G.push(Uint8Array.from([L.byteLength]),L,this.formatHeaderValue(U[X]))}const W=new Uint8Array(G.reduce((X,L)=>X+L.byteLength,0));let Z=0;for(let X of G)W.set(X,Z),Z+=X.byteLength;return W}formatHeaderValue(U){switch(U.type){case"boolean":return Uint8Array.from([U.value?0:1]);case"byte":return Uint8Array.from([2,U.value]);case"short":const G=new DataView(new ArrayBuffer(3));return G.setUint8(0,3),G.setInt16(1,U.value,!1),new Uint8Array(G.buffer);case"integer":const W=new DataView(new ArrayBuffer(5));return W.setUint8(0,4),W.setInt32(1,U.value,!1),new Uint8Array(W.buffer);case"long":const Z=new Uint8Array(9);return Z[0]=5,Z.set(U.value.bytes,1),Z;case"binary":const X=new DataView(new ArrayBuffer(3+U.value.byteLength));X.setUint8(0,6),X.setUint16(1,U.value.byteLength,!1);const L=new Uint8Array(X.buffer);return L.set(U.value,3),L;case"string":const Y=CX.fromUtf8(U.value),F=new DataView(new ArrayBuffer(3+Y.byteLength));F.setUint8(0,7),F.setUint16(1,Y.byteLength,!1);const Q=new Uint8Array(F.buffer);return Q.set(Y,3),Q;case"timestamp":const w=new Uint8Array(9);return w[0]=8,w.set(hI.fromNumber(U.value.valueOf()).bytes,1),w;case"uuid":if(!kI.test(U.value))throw new Error(`Invalid UUID received: ${U.value}`);const z=new Uint8Array(17);return z[0]=9,z.set(L0.fromHex(U.value.replace(/\-/g,"")),1),z}}};S(xX,"HeaderFormatter");var bI=xX,kI=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,vX=class ${constructor(U){if(this.bytes=U,U.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(U){if(U>9223372036854776000||U<-9223372036854776000)throw new Error(`${U} is too large (or, if negative, too small) to represent as an Int64`);const G=new Uint8Array(8);for(let W=7,Z=Math.abs(Math.round(U));W>-1&&Z>0;W--,Z/=256)G[W]=Z;if(U<0)gU(G);return new $(G)}valueOf(){const U=this.bytes.slice(0),G=U[0]&128;if(G)gU(U);return parseInt(L0.toHex(U),16)*(G?-1:1)}toString(){return String(this.valueOf())}};S(vX,"Int64");var hI=vX;S(gU,"negate");var xI=S(($,U)=>{$=$.toLowerCase();for(let G of Object.keys(U))if($===G.toLowerCase())return!0;return!1},"hasHeader"),cX=r(),yX=S(($,U={})=>{var G;const{headers:W,query:Z={}}=cX.HttpRequest.clone($);for(let X of Object.keys(W)){const L=X.toLowerCase();if(L.slice(0,6)==="x-amz-"&&!((G=U.unhoistableHeaders)==null?void 0:G.has(L)))Z[X]=W[X],delete W[X]}return{...$,headers:W,query:Z}},"moveHeadersToQuery"),pU=S(($)=>{$=cX.HttpRequest.clone($);for(let U of Object.keys($.headers))if(VI.indexOf(U.toLowerCase())>-1)delete $.headers[U];return $},"prepareRequest"),vI=S(($)=>cI($).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),cI=S(($)=>{if(typeof $==="number")return new Date($*1000);if(typeof $==="string"){if(Number($))return new Date(Number($)*1000);return new Date($)}return $},"toDate"),uX=class ${constructor({applyChecksum:U,credentials:G,region:W,service:Z,sha256:X,uriEscapePath:L=!0}){this.headerFormatter=new bI,this.service=Z,this.sha256=X,this.uriEscapePath=L,this.applyChecksum=typeof U==="boolean"?U:!0,this.regionProvider=HX.normalizeProvider(W),this.credentialProvider=HX.normalizeProvider(G)}async presign(U,G={}){const{signingDate:W=new Date,expiresIn:Z=3600,unsignableHeaders:X,unhoistableHeaders:L,signableHeaders:Y,signingRegion:F,signingService:Q}=G,w=await this.credentialProvider();this.validateResolvedCredentials(w);const z=F??await this.regionProvider(),{longDate:I,shortDate:J}=Z$(W);if(Z>NI)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const K=L$(J,z,Q??this.service),T=yX(pU(U),{unhoistableHeaders:L});if(w.sessionToken)T.query[PX]=w.sessionToken;T.query[JI]=uU,T.query[RI]=`${w.accessKeyId}/${K}`,T.query[NX]=I,T.query[MI]=Z.toString(10);const E=dU(T,X,Y);return T.query[KI]=qX(E),T.query[jX]=await this.getSignature(I,K,this.getSigningKey(w,z,J,Q),this.createCanonicalRequest(T,E,await Y$(U,this.sha256))),T}async sign(U,G){if(typeof U==="string")return this.signString(U,G);else if(U.headers&&U.payload)return this.signEvent(U,G);else if(U.message)return this.signMessage(U,G);else return this.signRequest(U,G)}async signEvent({headers:U,payload:G},{signingDate:W=new Date,priorSignature:Z,signingRegion:X,signingService:L}){const Y=X??await this.regionProvider(),{shortDate:F,longDate:Q}=Z$(W),w=L$(F,Y,L??this.service),z=await Y$({headers:{},body:G},this.sha256),I=new this.sha256;I.update(U);const J=L0.toHex(await I.digest()),K=[CI,Q,w,Z,J,z].join("\n");return this.signString(K,{signingDate:W,signingRegion:Y,signingService:L})}async signMessage(U,{signingDate:G=new Date,signingRegion:W,signingService:Z}){return this.signEvent({headers:this.headerFormatter.format(U.message.headers),payload:U.message.body},{signingDate:G,signingRegion:W,signingService:Z,priorSignature:U.priorSignature}).then((L)=>{return{message:U.message,signature:L}})}async signString(U,{signingDate:G=new Date,signingRegion:W,signingService:Z}={}){const X=await this.credentialProvider();this.validateResolvedCredentials(X);const L=W??await this.regionProvider(),{shortDate:Y}=Z$(G),F=new this.sha256(await this.getSigningKey(X,L,Y,Z));return F.update(yU.toUint8Array(U)),L0.toHex(await F.digest())}async signRequest(U,{signingDate:G=new Date,signableHeaders:W,unsignableHeaders:Z,signingRegion:X,signingService:L}={}){const Y=await this.credentialProvider();this.validateResolvedCredentials(Y);const F=X??await this.regionProvider(),Q=pU(U),{longDate:w,shortDate:z}=Z$(G),I=L$(z,F,L??this.service);if(Q.headers[DX]=w,Y.sessionToken)Q.headers[TI]=Y.sessionToken;const J=await Y$(Q,this.sha256);if(!xI(_U,Q.headers)&&this.applyChecksum)Q.headers[_U]=J;const K=dU(Q,Z,W),T=await this.getSignature(w,I,this.getSigningKey(Y,F,z,L),this.createCanonicalRequest(Q,K,J));return Q.headers[SX]=`${uU} Credential=${Y.accessKeyId}/${I}, SignedHeaders=${qX(K)}, Signature=${T}`,Q}createCanonicalRequest(U,G,W){const Z=Object.keys(G).sort();return`${U.method}
10
- ${this.getCanonicalPath(U)}
11
- ${hX(U)}
12
- ${Z.map((X)=>`${X}:${G[X]}`).join("\n")}
13
-
14
- ${Z.join(";")}
15
- ${W}`}async createStringToSign(U,G,W){const Z=new this.sha256;Z.update(yU.toUint8Array(W));const X=await Z.digest();return`${uU}
16
- ${U}
17
- ${G}
18
- ${L0.toHex(X)}`}getCanonicalPath({path:U}){if(this.uriEscapePath){const G=[];for(let X of U.split("/")){if((X==null?void 0:X.length)===0)continue;if(X===".")continue;if(X==="..")G.pop();else G.push(X)}const W=`${(U==null?void 0:U.startsWith("/"))?"/":""}${G.join("/")}${G.length>0&&(U==null?void 0:U.endsWith("/"))?"/":""}`;return e0.escapeUri(W).replace(/%2F/g,"/")}return U}async getSignature(U,G,W,Z){const X=await this.createStringToSign(U,G,Z),L=new this.sha256(await W);return L.update(yU.toUint8Array(X)),L0.toHex(await L.digest())}getSigningKey(U,G,W,Z){return kX(this.sha256,U,W,G,Z||this.service)}validateResolvedCredentials(U){if(typeof U!=="object"||typeof U.accessKeyId!=="string"||typeof U.secretAccessKey!=="string")throw new Error("Resolved credential object is not valid")}};S(uX,"SignatureV4");var yI=uX,Z$=S(($)=>{const U=vI($).replace(/[\-:]/g,"");return{longDate:U,shortDate:U.slice(0,8)}},"formatDate"),qX=S(($)=>Object.keys($).sort().join(";"),"getCanonicalHeaderList")});var aX=M((cA,oX)=>{var{defineProperty:Q$,getOwnPropertyDescriptor:uI,getOwnPropertyNames:_I}=Object,dI=Object.prototype.hasOwnProperty,h=($,U)=>Q$($,"name",{value:U,configurable:!0}),gI=($,U)=>{for(var G in U)Q$($,G,{get:U[G],enumerable:!0})},pI=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of _I(U))if(!dI.call($,Z)&&Z!==G)Q$($,Z,{get:()=>U[Z],enumerable:!(W=uI(U,Z))||W.enumerable})}return $},lI=($)=>pI(Q$({},"__esModule",{value:!0}),$),mX={};gI(mX,{AWSSDKSigV4Signer:()=>iI,AwsSdkSigV4ASigner:()=>oI,AwsSdkSigV4Signer:()=>mU,NODE_SIGV4A_CONFIG_OPTIONS:()=>eI,resolveAWSSDKSigV4Config:()=>$J,resolveAwsSdkSigV4AConfig:()=>tI,resolveAwsSdkSigV4Config:()=>rX,validateSigningProperties:()=>sU});oX.exports=lI(mX);var sI=r(),mI=r(),gX=h(($)=>{var U,G;return mI.HttpResponse.isInstance($)?((U=$.headers)==null?void 0:U.date)??((G=$.headers)==null?void 0:G.Date):void 0},"getDateHeader"),lU=h(($)=>new Date(Date.now()+$),"getSkewCorrectedDate"),nI=h(($,U)=>Math.abs(lU(U).getTime()-$)>=300000,"isClockSkewed"),pX=h(($,U)=>{const G=Date.parse($);if(nI(G,U))return G-Date.now();return U},"getUpdatedSystemClockOffset"),$1=h(($,U)=>{if(!U)throw new Error(`Property \`${$}\` is not resolved for AWS SDK SigV4Auth`);return U},"throwSigningPropertyError"),sU=h(async($)=>{var U,G,W;const Z=$1("context",$.context),X=$1("config",$.config),L=(W=(G=(U=Z.endpointV2)==null?void 0:U.properties)==null?void 0:G.authSchemes)==null?void 0:W[0],F=await $1("signer",X.signer)(L),Q=$==null?void 0:$.signingRegion,w=$==null?void 0:$.signingRegionSet,z=$==null?void 0:$.signingName;return{config:X,signer:F,signingRegion:Q,signingRegionSet:w,signingName:z}},"validateSigningProperties"),nX=class ${async sign(U,G,W){var Z;if(!sI.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const X=await sU(W),{config:L,signer:Y}=X;let{signingRegion:F,signingName:Q}=X;const w=W.context;if(((Z=w==null?void 0:w.authSchemes)==null?void 0:Z.length)??0>1){const[I,J]=w.authSchemes;if((I==null?void 0:I.name)==="sigv4a"&&(J==null?void 0:J.name)==="sigv4")F=(J==null?void 0:J.signingRegion)??F,Q=(J==null?void 0:J.signingName)??Q}return await Y.sign(U,{signingDate:lU(L.systemClockOffset),signingRegion:F,signingService:Q})}errorHandler(U){return(G)=>{const W=G.ServerTime??gX(G.$response);if(W){const Z=$1("config",U.config),X=Z.systemClockOffset;if(Z.systemClockOffset=pX(W,Z.systemClockOffset),Z.systemClockOffset!==X&&G.$metadata)G.$metadata.clockSkewCorrected=!0}throw G}}successHandler(U,G){const W=gX(U);if(W){const Z=$1("config",G.config);Z.systemClockOffset=pX(W,Z.systemClockOffset)}}};h(nX,"AwsSdkSigV4Signer");var mU=nX,iI=mU,rI=r(),iX=class $ extends mU{async sign(U,G,W){var Z;if(!rI.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:X,signer:L,signingRegion:Y,signingRegionSet:F,signingName:Q}=await sU(W),z=(await((Z=X.sigv4aSigningRegionSet)==null?void 0:Z.call(X))??F??[Y]).join(",");return await L.sign(U,{signingDate:lU(X.systemClockOffset),signingRegion:z,signingService:Q})}};h(iX,"AwsSdkSigV4ASigner");var oI=iX,aI=EU(),lX=I$(),tI=h(($)=>{return $.sigv4aSigningRegionSet=aI.normalizeProvider($.sigv4aSigningRegionSet),$},"resolveAwsSdkSigV4AConfig"),eI={environmentVariableSelector($){if($.AWS_SIGV4A_SIGNING_REGION_SET)return $.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((U)=>U.trim());throw new lX.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector($){if($.sigv4a_signing_region_set)return($.sigv4a_signing_region_set??"").split(",").map((U)=>U.trim());throw new lX.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},V0=EU(),sX=dX(),rX=h(($)=>{let U;if($.credentials)U=V0.memoizeIdentityProvider($.credentials,V0.isIdentityExpired,V0.doesIdentityRequireRefresh);if(!U)if($.credentialDefaultProvider)U=V0.normalizeProvider($.credentialDefaultProvider(Object.assign({},$,{parentClientConfig:$})));else U=h(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");const{signingEscapePath:G=!0,systemClockOffset:W=$.systemClockOffset||0,sha256:Z}=$;let X;if($.signer)X=V0.normalizeProvider($.signer);else if($.regionInfoProvider)X=h(()=>V0.normalizeProvider($.region)().then(async(L)=>[await $.regionInfoProvider(L,{useFipsEndpoint:await $.useFipsEndpoint(),useDualstackEndpoint:await $.useDualstackEndpoint()})||{},L]).then(([L,Y])=>{const{signingRegion:F,signingService:Q}=L;$.signingRegion=$.signingRegion||F||Y,$.signingName=$.signingName||Q||$.serviceId;const w={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:Z,uriEscapePath:G};return new($.signerConstructor||sX.SignatureV4)(w)}),"signer");else X=h(async(L)=>{L=Object.assign({},{name:"sigv4",signingName:$.signingName||$.defaultSigningName,signingRegion:await V0.normalizeProvider($.region)(),properties:{}},L);const{signingRegion:Y,signingName:F}=L;$.signingRegion=$.signingRegion||Y,$.signingName=$.signingName||F||$.serviceId;const Q={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:Z,uriEscapePath:G};return new($.signerConstructor||sX.SignatureV4)(Q)},"signer");return{...$,systemClockOffset:W,signingEscapePath:G,credentials:U,signer:X}},"resolveAwsSdkSigV4Config"),$J=rX});var w$=M((XJ)=>{var UJ=":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",tX="[: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]["+UJ+"]*",GJ=new RegExp("^"+tX+"$"),WJ=function($,U){const G=[];let W=U.exec($);while(W){const Z=[];Z.startIndex=U.lastIndex-W[0].length;const X=W.length;for(let L=0;L<X;L++)Z.push(W[L]);G.push(Z),W=U.exec($)}return G},ZJ=function($){const U=GJ.exec($);return!(U===null||typeof U==="undefined")};XJ.isExist=function($){return typeof $!=="undefined"};XJ.isEmptyObject=function($){return Object.keys($).length===0};XJ.merge=function($,U,G){if(U){const W=Object.keys(U),Z=W.length;for(let X=0;X<Z;X++)if(G==="strict")$[W[X]]=[U[W[X]]];else $[W[X]]=U[W[X]]}};XJ.getValue=function($){if(XJ.isExist($))return $;else return""};XJ.isName=ZJ;XJ.getAllMatches=WJ;XJ.nameRegexp=tX});var iU=M((AJ)=>{var $L=function($){return $===" "||$==="\t"||$==="\n"||$==="\r"},UL=function($,U){const G=U;for(;U<$.length;U++)if($[U]=="?"||$[U]==" "){const W=$.substr(G,U-G);if(U>5&&W==="xml")return j("InvalidXml","XML declaration allowed only at the start of the document.",k($,U));else if($[U]=="?"&&$[U+1]==">"){U++;break}else continue}return U},GL=function($,U){if($.length>U+5&&$[U+1]==="-"&&$[U+2]==="-"){for(U+=3;U<$.length;U++)if($[U]==="-"&&$[U+1]==="-"&&$[U+2]===">"){U+=2;break}}else if($.length>U+8&&$[U+1]==="D"&&$[U+2]==="O"&&$[U+3]==="C"&&$[U+4]==="T"&&$[U+5]==="Y"&&$[U+6]==="P"&&$[U+7]==="E"){let G=1;for(U+=8;U<$.length;U++)if($[U]==="<")G++;else if($[U]===">"){if(G--,G===0)break}}else if($.length>U+9&&$[U+1]==="["&&$[U+2]==="C"&&$[U+3]==="D"&&$[U+4]==="A"&&$[U+5]==="T"&&$[U+6]==="A"&&$[U+7]==="["){for(U+=8;U<$.length;U++)if($[U]==="]"&&$[U+1]==="]"&&$[U+2]===">"){U+=2;break}}return U},KJ=function($,U){let G="",W="",Z=!1;for(;U<$.length;U++){if($[U]===JJ||$[U]===RJ)if(W==="")W=$[U];else if(W!==$[U]);else W="";else if($[U]===">"){if(W===""){Z=!0;break}}G+=$[U]}if(W!=="")return!1;return{value:G,index:U,tagClosed:Z}},WL=function($,U){const G=nU.getAllMatches($,MJ),W={};for(let Z=0;Z<G.length;Z++){if(G[Z][1].length===0)return j("InvalidAttr","Attribute '"+G[Z][2]+"' has no space in starting.",U1(G[Z]));else if(G[Z][3]!==void 0&&G[Z][4]===void 0)return j("InvalidAttr","Attribute '"+G[Z][2]+"' is without value.",U1(G[Z]));else if(G[Z][3]===void 0&&!U.allowBooleanAttributes)return j("InvalidAttr","boolean attribute '"+G[Z][2]+"' is not allowed.",U1(G[Z]));const X=G[Z][2];if(!BJ(X))return j("InvalidAttr","Attribute '"+X+"' is an invalid name.",U1(G[Z]));if(!W.hasOwnProperty(X))W[X]=1;else return j("InvalidAttr","Attribute '"+X+"' is repeated.",U1(G[Z]))}return!0},EJ=function($,U){let G=/\d/;if($[U]==="x")U++,G=/[\da-fA-F]/;for(;U<$.length;U++){if($[U]===";")return U;if(!$[U].match(G))break}return-1},VJ=function($,U){if(U++,$[U]===";")return-1;if($[U]==="#")return U++,EJ($,U);let G=0;for(;U<$.length;U++,G++){if($[U].match(/\w/)&&G<20)continue;if($[U]===";")break;return-1}return U},j=function($,U,G){return{err:{code:$,msg:U,line:G.line||G,col:G.col}}},BJ=function($){return nU.isName($)},TJ=function($){return nU.isName($)},k=function($,U){const G=$.substring(0,U).split(/\r?\n/);return{line:G.length,col:G[G.length-1].length+1}},U1=function($){return $.startIndex+$[1].length},nU=w$(),IJ={allowBooleanAttributes:!1,unpairedTags:[]};AJ.validate=function($,U){U=Object.assign({},IJ,U);const G=[];let W=!1,Z=!1;if($[0]==="\uFEFF")$=$.substr(1);for(let X=0;X<$.length;X++)if($[X]==="<"&&$[X+1]==="?"){if(X+=2,X=UL($,X),X.err)return X}else if($[X]==="<"){let L=X;if(X++,$[X]==="!"){X=GL($,X);continue}else{let Y=!1;if($[X]==="/")Y=!0,X++;let F="";for(;X<$.length&&$[X]!==">"&&$[X]!==" "&&$[X]!=="\t"&&$[X]!=="\n"&&$[X]!=="\r";X++)F+=$[X];if(F=F.trim(),F[F.length-1]==="/")F=F.substring(0,F.length-1),X--;if(!TJ(F)){let z;if(F.trim().length===0)z="Invalid space after '<'.";else z="Tag '"+F+"' is an invalid name.";return j("InvalidTag",z,k($,X))}const Q=KJ($,X);if(Q===!1)return j("InvalidAttr","Attributes for '"+F+"' have open quote.",k($,X));let w=Q.value;if(X=Q.index,w[w.length-1]==="/"){const z=X-w.length;w=w.substring(0,w.length-1);const I=WL(w,U);if(I===!0)W=!0;else return j(I.err.code,I.err.msg,k($,z+I.err.line))}else if(Y)if(!Q.tagClosed)return j("InvalidTag","Closing tag '"+F+"' doesn't have proper closing.",k($,X));else if(w.trim().length>0)return j("InvalidTag","Closing tag '"+F+"' can't have attributes or invalid starting.",k($,L));else if(G.length===0)return j("InvalidTag","Closing tag '"+F+"' has not been opened.",k($,L));else{const z=G.pop();if(F!==z.tagName){let I=k($,z.tagStartPos);return j("InvalidTag","Expected closing tag '"+z.tagName+"' (opened in line "+I.line+", col "+I.col+") instead of closing tag '"+F+"'.",k($,L))}if(G.length==0)Z=!0}else{const z=WL(w,U);if(z!==!0)return j(z.err.code,z.err.msg,k($,X-w.length+z.err.line));if(Z===!0)return j("InvalidXml","Multiple possible root nodes found.",k($,X));else if(U.unpairedTags.indexOf(F)!==-1);else G.push({tagName:F,tagStartPos:L});W=!0}for(X++;X<$.length;X++)if($[X]==="<")if($[X+1]==="!"){X++,X=GL($,X);continue}else if($[X+1]==="?"){if(X=UL($,++X),X.err)return X}else break;else if($[X]==="&"){const z=VJ($,X);if(z==-1)return j("InvalidChar","char '&' is not expected.",k($,X));X=z}else if(Z===!0&&!$L($[X]))return j("InvalidXml","Extra text at the end",k($,X));if($[X]==="<")X--}}else{if($L($[X]))continue;return j("InvalidChar","char '"+$[X]+"' is not expected.",k($,X))}if(!W)return j("InvalidXml","Start tag expected.",1);else if(G.length==1)return j("InvalidTag","Unclosed tag '"+G[0].tagName+"'.",k($,G[0].tagStartPos));else if(G.length>0)return j("InvalidXml","Invalid '"+JSON.stringify(G.map((X)=>X.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var JJ='"',RJ="'",MJ=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var XL=M((CJ)=>{var ZL={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($,U){return U},attributeValueProcessor:function($,U){return U},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function($,U,G){return $}},OJ=function($){return Object.assign({},ZL,$)};CJ.buildOptions=OJ;CJ.defaultOptions=ZL});var FL=M((dA,YL)=>{class LL{constructor($){this.tagname=$,this.child=[],this[":@"]={}}add($,U){if($==="__proto__")$="#__proto__";this.child.push({[$]:U})}addChild($){if($.tagname==="__proto__")$.tagname="#__proto__";if($[":@"]&&Object.keys($[":@"]).length>0)this.child.push({[$.tagname]:$.child,[":@"]:$[":@"]});else this.child.push({[$.tagname]:$.child})}}YL.exports=LL});var wL=M((gA,QL)=>{var jJ=function($,U){const G={};if($[U+3]==="O"&&$[U+4]==="C"&&$[U+5]==="T"&&$[U+6]==="Y"&&$[U+7]==="P"&&$[U+8]==="E"){U=U+9;let W=1,Z=!1,X=!1,L="";for(;U<$.length;U++)if($[U]==="<"&&!X){if(Z&&DJ($,U)){if(U+=7,[entityName,val,U]=PJ($,U+1),val.indexOf("&")===-1)G[xJ(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(Z&&bJ($,U))U+=8;else if(Z&&kJ($,U))U+=8;else if(Z&&hJ($,U))U+=9;else if(SJ)X=!0;else throw new Error("Invalid DOCTYPE");W++,L=""}else if($[U]===">"){if(X){if($[U-1]==="-"&&$[U-2]==="-")X=!1,W--}else W--;if(W===0)break}else if($[U]==="[")Z=!0;else L+=$[U];if(W!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:G,i:U}},PJ=function($,U){let G="";for(;U<$.length&&($[U]!=="'"&&$[U]!=='"');U++)G+=$[U];if(G=G.trim(),G.indexOf(" ")!==-1)throw new Error("External entites are not supported");const W=$[U++];let Z="";for(;U<$.length&&$[U]!==W;U++)Z+=$[U];return[G,Z,U]},SJ=function($,U){if($[U+1]==="!"&&$[U+2]==="-"&&$[U+3]==="-")return!0;return!1},DJ=function($,U){if($[U+1]==="!"&&$[U+2]==="E"&&$[U+3]==="N"&&$[U+4]==="T"&&$[U+5]==="I"&&$[U+6]==="T"&&$[U+7]==="Y")return!0;return!1},bJ=function($,U){if($[U+1]==="!"&&$[U+2]==="E"&&$[U+3]==="L"&&$[U+4]==="E"&&$[U+5]==="M"&&$[U+6]==="E"&&$[U+7]==="N"&&$[U+8]==="T")return!0;return!1},kJ=function($,U){if($[U+1]==="!"&&$[U+2]==="A"&&$[U+3]==="T"&&$[U+4]==="T"&&$[U+5]==="L"&&$[U+6]==="I"&&$[U+7]==="S"&&$[U+8]==="T")return!0;return!1},hJ=function($,U){if($[U+1]==="!"&&$[U+2]==="N"&&$[U+3]==="O"&&$[U+4]==="T"&&$[U+5]==="A"&&$[U+6]==="T"&&$[U+7]==="I"&&$[U+8]==="O"&&$[U+9]==="N")return!0;return!1},xJ=function($){if(NJ.isName($))return $;else throw new Error(`Invalid entity name ${$}`)},NJ=w$();QL.exports=jJ});var IL=M((pA,zL)=>{var uJ=function($,U={}){if(U=Object.assign({},yJ,U),!$||typeof $!=="string")return $;let G=$.trim();if(U.skipLike!==void 0&&U.skipLike.test(G))return $;else if(U.hex&&vJ.test(G))return Number.parseInt(G,16);else{const W=cJ.exec(G);if(W){const Z=W[1],X=W[2];let L=_J(W[3]);const Y=W[4]||W[6];if(!U.leadingZeros&&X.length>0&&Z&&G[2]!==".")return $;else if(!U.leadingZeros&&X.length>0&&!Z&&G[1]!==".")return $;else{const F=Number(G),Q=""+F;if(Q.search(/[eE]/)!==-1)if(U.eNotation)return F;else return $;else if(Y)if(U.eNotation)return F;else return $;else if(G.indexOf(".")!==-1)if(Q==="0"&&L==="")return F;else if(Q===L)return F;else if(Z&&Q==="-"+L)return F;else return $;if(X)if(L===Q)return F;else if(Z+L===Q)return F;else return $;if(G===Q)return F;else if(G===Z+Q)return F;return $}}else return $}},_J=function($){if($&&$.indexOf(".")!==-1){if($=$.replace(/0+$/,""),$===".")$="0";else if($[0]===".")$="0"+$;else if($[$.length-1]===".")$=$.substr(0,$.length-1);return $}return $},vJ=/^[-+]?0x[a-fA-F0-9]+$/,cJ=/^([\-\+])?(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 yJ={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};zL.exports=uJ});var ML=M((lA,KL)=>{var pJ=function($){const U=Object.keys($);for(let G=0;G<U.length;G++){const W=U[G];this.lastEntities[W]={regex:new RegExp("&"+W+";","g"),val:$[W]}}},lJ=function($,U,G,W,Z,X,L){if($!==void 0){if(this.options.trimValues&&!W)$=$.trim();if($.length>0){if(!L)$=this.replaceEntitiesValue($);const Y=this.options.tagValueProcessor(U,$,G,Z,X);if(Y===null||Y===void 0)return $;else if(typeof Y!==typeof $||Y!==$)return Y;else if(this.options.trimValues)return oU($,this.options.parseTagValue,this.options.numberParseOptions);else if($.trim()===$)return oU($,this.options.parseTagValue,this.options.numberParseOptions);else return $}}},sJ=function($){if(this.options.removeNSPrefix){const U=$.split(":"),G=$.charAt(0)==="/"?"/":"";if(U[0]==="xmlns")return"";if(U.length===2)$=G+U[1]}return $},nJ=function($,U,G){if(!this.options.ignoreAttributes&&typeof $==="string"){const W=JL.getAllMatches($,mJ),Z=W.length,X={};for(let L=0;L<Z;L++){const Y=this.resolveNameSpace(W[L][1]);let F=W[L][4],Q=this.options.attributeNamePrefix+Y;if(Y.length){if(this.options.transformAttributeName)Q=this.options.transformAttributeName(Q);if(Q==="__proto__")Q="#__proto__";if(F!==void 0){if(this.options.trimValues)F=F.trim();F=this.replaceEntitiesValue(F);const w=this.options.attributeValueProcessor(Y,F,U);if(w===null||w===void 0)X[Q]=F;else if(typeof w!==typeof F||w!==F)X[Q]=w;else X[Q]=oU(F,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)X[Q]=!0}}if(!Object.keys(X).length)return;if(this.options.attributesGroupName){const L={};return L[this.options.attributesGroupName]=X,L}return X}},rJ=function($,U,G){const W=this.options.updateTag(U.tagname,G,U[":@"]);if(W===!1);else if(typeof W==="string")U.tagname=W,$.addChild(U);else $.addChild(U)},aJ=function($,U,G,W){if($){if(W===void 0)W=Object.keys(U.child).length===0;if($=this.parseTextData($,U.tagname,G,!1,U[":@"]?Object.keys(U[":@"]).length!==0:!1,W),$!==void 0&&$!=="")U.add(this.options.textNodeName,$);$=""}return $},tJ=function($,U,G){const W="*."+G;for(let Z in $){const X=$[Z];if(W===X||U===X)return!0}return!1},eJ=function($,U,G=">"){let W,Z="";for(let X=U;X<$.length;X++){let L=$[X];if(W){if(L===W)W=""}else if(L==='"'||L==="'")W=L;else if(L===G[0])if(G[1]){if($[X+1]===G[1])return{data:Z,index:X}}else return{data:Z,index:X};else if(L==="\t")L=" ";Z+=L}},B0=function($,U,G,W){const Z=$.indexOf(U,G);if(Z===-1)throw new Error(W);else return Z+U.length-1},rU=function($,U,G,W=">"){const Z=eJ($,U+1,W);if(!Z)return;let X=Z.data;const L=Z.index,Y=X.search(/\s/);let F=X,Q=!0;if(Y!==-1)F=X.substring(0,Y),X=X.substring(Y+1).trimStart();const w=F;if(G){const z=F.indexOf(":");if(z!==-1)F=F.substr(z+1),Q=F!==Z.data.substr(z+1)}return{tagName:F,tagExp:X,closeIndex:L,attrExpPresent:Q,rawTagName:w}},$R=function($,U,G){const W=G;let Z=1;for(;G<$.length;G++)if($[G]==="<")if($[G+1]==="/"){const X=B0($,">",G,`${U} is not closed`);if($.substring(G+2,X).trim()===U){if(Z--,Z===0)return{tagContent:$.substring(W,G),i:X}}G=X}else if($[G+1]==="?")G=B0($,"?>",G+1,"StopNode is not closed.");else if($.substr(G+1,3)==="!--")G=B0($,"-->",G+3,"StopNode is not closed.");else if($.substr(G+1,2)==="![")G=B0($,"]]>",G,"StopNode is not closed.")-2;else{const X=rU($,G,">");if(X){if((X&&X.tagName)===U&&X.tagExp[X.tagExp.length-1]!=="/")Z++;G=X.closeIndex}}},oU=function($,U,G){if(U&&typeof $==="string"){const W=$.trim();if(W==="true")return!0;else if(W==="false")return!1;else return gJ($,G)}else if(JL.isExist($))return $;else return""},JL=w$(),G1=FL(),dJ=wL(),gJ=IL();class RL{constructor($){this.options=$,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:"\""}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(U,G)=>String.fromCharCode(Number.parseInt(G,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(U,G)=>String.fromCharCode(Number.parseInt(G,16))}},this.addExternalEntities=pJ,this.parseXml=iJ,this.parseTextData=lJ,this.resolveNameSpace=sJ,this.buildAttributesMap=nJ,this.isItStopNode=tJ,this.replaceEntitiesValue=oJ,this.readStopNodeData=$R,this.saveTextToParentTag=aJ,this.addChild=rJ}}var mJ=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),iJ=function($){$=$.replace(/\r\n?/g,"\n");const U=new G1("!xml");let G=U,W="",Z="";for(let X=0;X<$.length;X++)if($[X]==="<")if($[X+1]==="/"){const Y=B0($,">",X,"Closing Tag is not closed.");let F=$.substring(X+2,Y).trim();if(this.options.removeNSPrefix){const z=F.indexOf(":");if(z!==-1)F=F.substr(z+1)}if(this.options.transformTagName)F=this.options.transformTagName(F);if(G)W=this.saveTextToParentTag(W,G,Z);const Q=Z.substring(Z.lastIndexOf(".")+1);if(F&&this.options.unpairedTags.indexOf(F)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${F}>`);let w=0;if(Q&&this.options.unpairedTags.indexOf(Q)!==-1)w=Z.lastIndexOf(".",Z.lastIndexOf(".")-1),this.tagsNodeStack.pop();else w=Z.lastIndexOf(".");Z=Z.substring(0,w),G=this.tagsNodeStack.pop(),W="",X=Y}else if($[X+1]==="?"){let Y=rU($,X,!1,"?>");if(!Y)throw new Error("Pi Tag is not closed.");if(W=this.saveTextToParentTag(W,G,Z),this.options.ignoreDeclaration&&Y.tagName==="?xml"||this.options.ignorePiTags);else{const F=new G1(Y.tagName);if(F.add(this.options.textNodeName,""),Y.tagName!==Y.tagExp&&Y.attrExpPresent)F[":@"]=this.buildAttributesMap(Y.tagExp,Z,Y.tagName);this.addChild(G,F,Z)}X=Y.closeIndex+1}else if($.substr(X+1,3)==="!--"){const Y=B0($,"-->",X+4,"Comment is not closed.");if(this.options.commentPropName){const F=$.substring(X+4,Y-2);W=this.saveTextToParentTag(W,G,Z),G.add(this.options.commentPropName,[{[this.options.textNodeName]:F}])}X=Y}else if($.substr(X+1,2)==="!D"){const Y=dJ($,X);this.docTypeEntities=Y.entities,X=Y.i}else if($.substr(X+1,2)==="!["){const Y=B0($,"]]>",X,"CDATA is not closed.")-2,F=$.substring(X+9,Y);W=this.saveTextToParentTag(W,G,Z);let Q=this.parseTextData(F,G.tagname,Z,!0,!1,!0,!0);if(Q==null)Q="";if(this.options.cdataPropName)G.add(this.options.cdataPropName,[{[this.options.textNodeName]:F}]);else G.add(this.options.textNodeName,Q);X=Y+2}else{let Y=rU($,X,this.options.removeNSPrefix),F=Y.tagName;const Q=Y.rawTagName;let{tagExp:w,attrExpPresent:z,closeIndex:I}=Y;if(this.options.transformTagName)F=this.options.transformTagName(F);if(G&&W){if(G.tagname!=="!xml")W=this.saveTextToParentTag(W,G,Z,!1)}const J=G;if(J&&this.options.unpairedTags.indexOf(J.tagname)!==-1)G=this.tagsNodeStack.pop(),Z=Z.substring(0,Z.lastIndexOf("."));if(F!==U.tagname)Z+=Z?"."+F:F;if(this.isItStopNode(this.options.stopNodes,Z,F)){let K="";if(w.length>0&&w.lastIndexOf("/")===w.length-1){if(F[F.length-1]==="/")F=F.substr(0,F.length-1),Z=Z.substr(0,Z.length-1),w=F;else w=w.substr(0,w.length-1);X=Y.closeIndex}else if(this.options.unpairedTags.indexOf(F)!==-1)X=Y.closeIndex;else{const E=this.readStopNodeData($,Q,I+1);if(!E)throw new Error(`Unexpected end of ${Q}`);X=E.i,K=E.tagContent}const T=new G1(F);if(F!==w&&z)T[":@"]=this.buildAttributesMap(w,Z,F);if(K)K=this.parseTextData(K,F,Z,!0,z,!0,!0);Z=Z.substr(0,Z.lastIndexOf(".")),T.add(this.options.textNodeName,K),this.addChild(G,T,Z)}else{if(w.length>0&&w.lastIndexOf("/")===w.length-1){if(F[F.length-1]==="/")F=F.substr(0,F.length-1),Z=Z.substr(0,Z.length-1),w=F;else w=w.substr(0,w.length-1);if(this.options.transformTagName)F=this.options.transformTagName(F);const K=new G1(F);if(F!==w&&z)K[":@"]=this.buildAttributesMap(w,Z,F);this.addChild(G,K,Z),Z=Z.substr(0,Z.lastIndexOf("."))}else{const K=new G1(F);if(this.tagsNodeStack.push(G),F!==w&&z)K[":@"]=this.buildAttributesMap(w,Z,F);this.addChild(G,K,Z),G=K}W="",X=I}}else W+=$[X];return U.child},oJ=function($){if(this.options.processEntities){for(let U in this.docTypeEntities){const G=this.docTypeEntities[U];$=$.replace(G.regx,G.val)}for(let U in this.lastEntities){const G=this.lastEntities[U];$=$.replace(G.regex,G.val)}if(this.options.htmlEntities)for(let U in this.htmlEntities){const G=this.htmlEntities[U];$=$.replace(G.regex,G.val)}$=$.replace(this.ampEntity.regex,this.ampEntity.val)}return $};KL.exports=RL});var VL=M((XR)=>{var UR=function($,U){return EL($,U)},EL=function($,U,G){let W;const Z={};for(let X=0;X<$.length;X++){const L=$[X],Y=GR(L);let F="";if(G===void 0)F=Y;else F=G+"."+Y;if(Y===U.textNodeName)if(W===void 0)W=L[Y];else W+=""+L[Y];else if(Y===void 0)continue;else if(L[Y]){let Q=EL(L[Y],U,F);const w=ZR(Q,U);if(L[":@"])WR(Q,L[":@"],F,U);else if(Object.keys(Q).length===1&&Q[U.textNodeName]!==void 0&&!U.alwaysCreateTextNode)Q=Q[U.textNodeName];else if(Object.keys(Q).length===0)if(U.alwaysCreateTextNode)Q[U.textNodeName]="";else Q="";if(Z[Y]!==void 0&&Z.hasOwnProperty(Y)){if(!Array.isArray(Z[Y]))Z[Y]=[Z[Y]];Z[Y].push(Q)}else if(U.isArray(Y,F,w))Z[Y]=[Q];else Z[Y]=Q}}if(typeof W==="string"){if(W.length>0)Z[U.textNodeName]=W}else if(W!==void 0)Z[U.textNodeName]=W;return Z},GR=function($){const U=Object.keys($);for(let G=0;G<U.length;G++){const W=U[G];if(W!==":@")return W}},WR=function($,U,G,W){if(U){const Z=Object.keys(U),X=Z.length;for(let L=0;L<X;L++){const Y=Z[L];if(W.isArray(Y,G+"."+Y,!0,!0))$[Y]=[U[Y]];else $[Y]=U[Y]}}},ZR=function($,U){const{textNodeName:G}=U,W=Object.keys($).length;if(W===0)return!0;if(W===1&&($[G]||typeof $[G]==="boolean"||$[G]===0))return!0;return!1};XR.prettify=UR});var AL=M((mA,TL)=>{var{buildOptions:YR}=XL(),FR=ML(),{prettify:QR}=VL(),wR=iU();class BL{constructor($){this.externalEntities={},this.options=YR($)}parse($,U){if(typeof $==="string");else if($.toString)$=$.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(U){if(U===!0)U={};const Z=wR.validate($,U);if(Z!==!0)throw Error(`${Z.err.msg}:${Z.err.line}:${Z.err.col}`)}const G=new FR(this.options);G.addExternalEntities(this.externalEntities);const W=G.parseXml($);if(this.options.preserveOrder||W===void 0)return W;else return QR(W,this.options)}addEntity($,U){if(U.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");else if($.indexOf("&")!==-1||$.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");else if(U==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[$]=U}}TL.exports=BL});var fL=M((nA,qL)=>{var zR=function($,U){let G="";if(U.format&&U.indentBy.length>0)G="\n";return OL($,U,"",G)},OL=function($,U,G,W){let Z="",X=!1;for(let L=0;L<$.length;L++){const Y=$[L],F=IR(Y);if(F===void 0)continue;let Q="";if(G.length===0)Q=F;else Q=`${G}.${F}`;if(F===U.textNodeName){let K=Y[F];if(!JR(Q,U))K=U.tagValueProcessor(F,K),K=CL(K,U);if(X)Z+=W;Z+=K,X=!1;continue}else if(F===U.cdataPropName){if(X)Z+=W;Z+=`<![CDATA[${Y[F][0][U.textNodeName]}]]>`,X=!1;continue}else if(F===U.commentPropName){Z+=W+`<!--${Y[F][0][U.textNodeName]}-->`,X=!0;continue}else if(F[0]==="?"){const K=HL(Y[":@"],U),T=F==="?xml"?"":W;let E=Y[F][0][U.textNodeName];E=E.length!==0?" "+E:"",Z+=T+`<${F}${E}${K}?>`,X=!0;continue}let w=W;if(w!=="")w+=U.indentBy;const z=HL(Y[":@"],U),I=W+`<${F}${z}`,J=OL(Y[F],U,Q,w);if(U.unpairedTags.indexOf(F)!==-1)if(U.suppressUnpairedNode)Z+=I+">";else Z+=I+"/>";else if((!J||J.length===0)&&U.suppressEmptyNode)Z+=I+"/>";else if(J&&J.endsWith(">"))Z+=I+`>${J}${W}</${F}>`;else{if(Z+=I+">",J&&W!==""&&(J.includes("/>")||J.includes("</")))Z+=W+U.indentBy+J+W;else Z+=J;Z+=`</${F}>`}X=!0}return Z},IR=function($){const U=Object.keys($);for(let G=0;G<U.length;G++){const W=U[G];if(!$.hasOwnProperty(W))continue;if(W!==":@")return W}},HL=function($,U){let G="";if($&&!U.ignoreAttributes)for(let W in $){if(!$.hasOwnProperty(W))continue;let Z=U.attributeValueProcessor(W,$[W]);if(Z=CL(Z,U),Z===!0&&U.suppressBooleanAttributes)G+=` ${W.substr(U.attributeNamePrefix.length)}`;else G+=` ${W.substr(U.attributeNamePrefix.length)}="${Z}"`}return G},JR=function($,U){$=$.substr(0,$.length-U.textNodeName.length-1);let G=$.substr($.lastIndexOf(".")+1);for(let W in U.stopNodes)if(U.stopNodes[W]===$||U.stopNodes[W]==="*."+G)return!0;return!1},CL=function($,U){if($&&$.length>0&&U.processEntities)for(let G=0;G<U.entities.length;G++){const W=U.entities[G];$=$.replace(W.regex,W.val)}return $};qL.exports=zR});var jL=M((iA,NL)=>{var Y0=function($){if(this.options=Object.assign({},KR,$),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=VR;if(this.processTextOrObjNode=MR,this.options.format)this.indentate=ER,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""},MR=function($,U,G){const W=this.j2x($,G+1);if($[this.options.textNodeName]!==void 0&&Object.keys($).length===1)return this.buildTextValNode($[this.options.textNodeName],U,W.attrStr,G);else return this.buildObjectNode(W.val,U,W.attrStr,G)},ER=function($){return this.options.indentBy.repeat($)},VR=function($){if($.startsWith(this.options.attributeNamePrefix)&&$!==this.options.textNodeName)return $.substr(this.attrPrefixLen);else return!1},RR=fL(),KR={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function($,U){return U},attributeValueProcessor:function($,U){return U},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};Y0.prototype.build=function($){if(this.options.preserveOrder)return RR($,this.options);else{if(Array.isArray($)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)$={[this.options.arrayNodeName]:$};return this.j2x($,0).val}};Y0.prototype.j2x=function($,U){let G="",W="";for(let Z in $){if(!Object.prototype.hasOwnProperty.call($,Z))continue;if(typeof $[Z]==="undefined"){if(this.isAttribute(Z))W+=""}else if($[Z]===null)if(this.isAttribute(Z))W+="";else if(Z[0]==="?")W+=this.indentate(U)+"<"+Z+"?"+this.tagEndChar;else W+=this.indentate(U)+"<"+Z+"/"+this.tagEndChar;else if($[Z]instanceof Date)W+=this.buildTextValNode($[Z],Z,"",U);else if(typeof $[Z]!=="object"){const X=this.isAttribute(Z);if(X)G+=this.buildAttrPairStr(X,""+$[Z]);else if(Z===this.options.textNodeName){let L=this.options.tagValueProcessor(Z,""+$[Z]);W+=this.replaceEntitiesValue(L)}else W+=this.buildTextValNode($[Z],Z,"",U)}else if(Array.isArray($[Z])){const X=$[Z].length;let L="",Y="";for(let F=0;F<X;F++){const Q=$[Z][F];if(typeof Q==="undefined");else if(Q===null)if(Z[0]==="?")W+=this.indentate(U)+"<"+Z+"?"+this.tagEndChar;else W+=this.indentate(U)+"<"+Z+"/"+this.tagEndChar;else if(typeof Q==="object")if(this.options.oneListGroup){const w=this.j2x(Q,U+1);if(L+=w.val,this.options.attributesGroupName&&Q.hasOwnProperty(this.options.attributesGroupName))Y+=w.attrStr}else L+=this.processTextOrObjNode(Q,Z,U);else if(this.options.oneListGroup){let w=this.options.tagValueProcessor(Z,Q);w=this.replaceEntitiesValue(w),L+=w}else L+=this.buildTextValNode(Q,Z,"",U)}if(this.options.oneListGroup)L=this.buildObjectNode(L,Z,Y,U);W+=L}else if(this.options.attributesGroupName&&Z===this.options.attributesGroupName){const X=Object.keys($[Z]),L=X.length;for(let Y=0;Y<L;Y++)G+=this.buildAttrPairStr(X[Y],""+$[Z][X[Y]])}else W+=this.processTextOrObjNode($[Z],Z,U)}return{attrStr:G,val:W}};Y0.prototype.buildAttrPairStr=function($,U){if(U=this.options.attributeValueProcessor($,""+U),U=this.replaceEntitiesValue(U),this.options.suppressBooleanAttributes&&U==="true")return" "+$;else return" "+$+'="'+U+'"'};Y0.prototype.buildObjectNode=function($,U,G,W){if($==="")if(U[0]==="?")return this.indentate(W)+"<"+U+G+"?"+this.tagEndChar;else return this.indentate(W)+"<"+U+G+this.closeTag(U)+this.tagEndChar;else{let Z="</"+U+this.tagEndChar,X="";if(U[0]==="?")X="?",Z="";if((G||G==="")&&$.indexOf("<")===-1)return this.indentate(W)+"<"+U+G+X+">"+$+Z;else if(this.options.commentPropName!==!1&&U===this.options.commentPropName&&X.length===0)return this.indentate(W)+`<!--${$}-->`+this.newLine;else return this.indentate(W)+"<"+U+G+X+this.tagEndChar+$+this.indentate(W)+Z}};Y0.prototype.closeTag=function($){let U="";if(this.options.unpairedTags.indexOf($)!==-1){if(!this.options.suppressUnpairedNode)U="/"}else if(this.options.suppressEmptyNode)U="/";else U=`></${$}`;return U};Y0.prototype.buildTextValNode=function($,U,G,W){if(this.options.cdataPropName!==!1&&U===this.options.cdataPropName)return this.indentate(W)+`<![CDATA[${$}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&U===this.options.commentPropName)return this.indentate(W)+`<!--${$}-->`+this.newLine;else if(U[0]==="?")return this.indentate(W)+"<"+U+G+"?"+this.tagEndChar;else{let Z=this.options.tagValueProcessor(U,$);if(Z=this.replaceEntitiesValue(Z),Z==="")return this.indentate(W)+"<"+U+G+this.closeTag(U)+this.tagEndChar;else return this.indentate(W)+"<"+U+G+">"+Z+"</"+U+this.tagEndChar}};Y0.prototype.replaceEntitiesValue=function($){if($&&$.length>0&&this.options.processEntities)for(let U=0;U<this.options.entities.length;U++){const G=this.options.entities[U];$=$.replace(G.regex,G.val)}return $};NL.exports=Y0});var SL=M((rA,PL)=>{var BR=iU(),TR=AL(),AR=jL();PL.exports={XMLParser:TR,XMLValidator:BR,XMLBuilder:AR}});var vL=M((oA,xL)=>{var{defineProperty:z$,getOwnPropertyDescriptor:HR,getOwnPropertyNames:OR}=Object,CR=Object.prototype.hasOwnProperty,x=($,U)=>z$($,"name",{value:U,configurable:!0}),qR=($,U)=>{for(var G in U)z$($,G,{get:U[G],enumerable:!0})},fR=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let Z of OR(U))if(!CR.call($,Z)&&Z!==G)z$($,Z,{get:()=>U[Z],enumerable:!(W=HR(U,Z))||W.enumerable})}return $},NR=($)=>fR(z$({},"__esModule",{value:!0}),$),DL={};qR(DL,{_toBool:()=>PR,_toNum:()=>SR,_toStr:()=>jR,awsExpectUnion:()=>bR,loadRestJsonErrorCode:()=>xR,loadRestXmlErrorCode:()=>uR,parseJsonBody:()=>kL,parseJsonErrorBody:()=>hR,parseXmlBody:()=>hL,parseXmlErrorBody:()=>yR});xL.exports=NR(DL);var jR=x(($)=>{if($==null)return $;if(typeof $==="number"||typeof $==="bigint"){const U=new Error(`Received number ${$} where a string was expected.`);return U.name="Warning",console.warn(U),String($)}if(typeof $==="boolean"){const U=new Error(`Received boolean ${$} where a string was expected.`);return U.name="Warning",console.warn(U),String($)}return $},"_toStr"),PR=x(($)=>{if($==null)return $;if(typeof $==="string"){const U=$.toLowerCase();if($!==""&&U!=="false"&&U!=="true"){const G=new Error(`Received string "${$}" where a boolean was expected.`);G.name="Warning",console.warn(G)}return $!==""&&U!=="false"}return $},"_toBool"),SR=x(($)=>{if($==null)return $;if(typeof $==="string"){const U=Number($);if(U.toString()!==$){const G=new Error(`Received string "${$}" where a number was expected.`);return G.name="Warning",console.warn(G),$}return U}return $},"_toNum"),DR=N0(),bR=x(($)=>{if($==null)return;if(typeof $==="object"&&"__type"in $)delete $.__type;return DR.expectUnion($)},"awsExpectUnion"),kR=N0(),bL=x(($,U)=>kR.collectBody($,U).then((G)=>U.utf8Encoder(G)),"collectBodyString"),kL=x(($,U)=>bL($,U).then((G)=>{if(G.length)try{return JSON.parse(G)}catch(W){if((W==null?void 0:W.name)==="SyntaxError")Object.defineProperty(W,"$responseBodyText",{value:G});throw W}return{}}),"parseJsonBody"),hR=x(async($,U)=>{const G=await kL($,U);return G.message=G.message??G.Message,G},"parseJsonErrorBody"),xR=x(($,U)=>{const G=x((X,L)=>Object.keys(X).find((Y)=>Y.toLowerCase()===L.toLowerCase()),"findKey"),W=x((X)=>{let L=X;if(typeof L==="number")L=L.toString();if(L.indexOf(",")>=0)L=L.split(",")[0];if(L.indexOf(":")>=0)L=L.split(":")[0];if(L.indexOf("#")>=0)L=L.split("#")[1];return L},"sanitizeErrorCode"),Z=G($.headers,"x-amzn-errortype");if(Z!==void 0)return W($.headers[Z]);if(U.code!==void 0)return W(U.code);if(U.__type!==void 0)return W(U.__type)},"loadRestJsonErrorCode"),vR=N0(),cR=SL(),hL=x(($,U)=>bL($,U).then((G)=>{if(G.length){const W=new cR.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(F,Q)=>Q.trim()===""&&Q.includes("\n")?"":void 0});W.addEntity("#xD","\r"),W.addEntity("#10","\n");let Z;try{Z=W.parse(G,!0)}catch(F){if(F&&typeof F==="object")Object.defineProperty(F,"$responseBodyText",{value:G});throw F}const X="#text",L=Object.keys(Z)[0],Y=Z[L];if(Y[X])Y[L]=Y[X],delete Y[X];return vR.getValueFromTextNode(Y)}return{}}),"parseXmlBody"),yR=x(async($,U)=>{const G=await hL($,U);if(G.Error)G.Error.message=G.Error.message??G.Error.Message;return G},"parseXmlErrorBody"),uR=x(($,U)=>{var G;if(((G=U==null?void 0:U.Error)==null?void 0:G.Code)!==void 0)return U.Error.Code;if((U==null?void 0:U.Code)!==void 0)return U.Code;if($.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var dR=M((W1)=>{Object.defineProperty(W1,"__esModule",{value:!0});var aU=_R();aU.__exportStar(AX(),W1);aU.__exportStar(aX(),W1);aU.__exportStar(vL(),W1)});function W3($){return $}var rL=($)=>(U)=>async(G)=>{if(!c.isInstance(G.request))return U(G);const{request:W}=G,{handlerProtocol:Z=""}=$.requestHandler.metadata||{};if(Z.indexOf("h2")>=0&&!W.headers[":authority"])delete W.headers.host,W.headers[":authority"]=W.hostname+(W.port?":"+W.port:"");else if(!W.headers.host){let X=W.hostname;if(W.port!=null)X+=`:${W.port}`;W.headers.host=X}return U(G)},oL={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Z3=($)=>({applyToStack:(U)=>{U.add(rL($),oL)}});var aL=()=>($,U)=>async(G)=>{try{const W=await $(G),{clientName:Z,commandName:X,logger:L,dynamoDbDocumentClientOptions:Y={}}=U,{overrideInputFilterSensitiveLog:F,overrideOutputFilterSensitiveLog:Q}=Y,w=F??U.inputFilterSensitiveLog,z=Q??U.outputFilterSensitiveLog,{$metadata:I,...J}=W.output;return L?.info?.({clientName:Z,commandName:X,input:w(G.input),output:z(J),metadata:I}),W}catch(W){const{clientName:Z,commandName:X,logger:L,dynamoDbDocumentClientOptions:Y={}}=U,{overrideInputFilterSensitiveLog:F}=Y,Q=F??U.inputFilterSensitiveLog;throw L?.error?.({clientName:Z,commandName:X,input:Q(G.input),error:W,metadata:W.$metadata}),W}},tL={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},L3=($)=>({applyToStack:(U)=>{U.add(aL(),tL)}});var GG="X-Amzn-Trace-Id",eL="AWS_LAMBDA_FUNCTION_NAME",$5="_X_AMZN_TRACE_ID",U5=($)=>(U)=>async(G)=>{const{request:W}=G;if(!c.isInstance(W)||$.runtime!=="node"||W.headers.hasOwnProperty(GG))return U(G);const Z=process.env[eL],X=process.env[$5],L=(Y)=>typeof Y==="string"&&Y.length>0;if(L(Z)&&L(X))W.headers[GG]=X;return U({...G,request:W})},G5={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},z3=($)=>({applyToStack:(U)=>{U.add(U5($),G5)}});function VK($){return{...$,customUserAgent:typeof $.customUserAgent==="string"?[[$.customUserAgent]]:$.customUserAgent}}var Vz=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}$"),r0=($)=>Vz.test($)||$.startsWith("[")&&$.endsWith("]");var Bz=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),o0=($,U=!1)=>{if(!U)return Bz.test($);const G=$.split(".");for(let W of G)if(!o0(W))return!1;return!0};var a0={};var t="endpoints";function _($){if(typeof $!=="object"||$==null)return $;if("ref"in $)return`\$${_($.ref)}`;if("fn"in $)return`${$.fn}(${($.argv||[]).map(_).join(", ")})`;return JSON.stringify($,null,2)}class O extends Error{constructor($){super($);this.name="EndpointError"}}var qZ=($,U)=>$===U;var fZ=($)=>{const U=$.split("."),G=[];for(let W of U){const Z=W.indexOf("[");if(Z!==-1){if(W.indexOf("]")!==W.length-1)throw new O(`Path: '${$}' does not end with ']'`);const X=W.slice(Z+1,-1);if(Number.isNaN(parseInt(X)))throw new O(`Invalid array index: '${X}' in path: '${$}'`);if(Z!==0)G.push(W.slice(0,Z));G.push(X)}else G.push(W)}return G};var d1=($,U)=>fZ(U).reduce((G,W)=>{if(typeof G!=="object")throw new O(`Index '${W}' in '${U}' not found in '${JSON.stringify($)}'`);else if(Array.isArray(G))return G[parseInt(W)];return G[W]},$);var NZ=($)=>$!=null;var jZ=($)=>!$;var g1=R0(T0(),1);var VU={[g1.EndpointURLScheme.HTTP]:80,[g1.EndpointURLScheme.HTTPS]:443},PZ=($)=>{const U=(()=>{try{if($ instanceof URL)return $;if(typeof $==="object"&&"hostname"in $){const{hostname:I,port:J,protocol:K="",path:T="",query:E={}}=$,B=new URL(`${K}//${I}${J?`:${J}`:""}${T}`);return B.search=Object.entries(E).map(([V,A])=>`${V}=${A}`).join("&"),B}return new URL($)}catch(I){return null}})();if(!U)return console.error(`Unable to parse ${JSON.stringify($)} as a whatwg URL.`),null;const G=U.href,{host:W,hostname:Z,pathname:X,protocol:L,search:Y}=U;if(Y)return null;const F=L.slice(0,-1);if(!Object.values(g1.EndpointURLScheme).includes(F))return null;const Q=r0(Z),w=G.includes(`${W}:${VU[F]}`)||typeof $==="string"&&$.includes(`${W}:${VU[F]}`),z=`${W}${w?`:${VU[F]}`:""}`;return{scheme:F,authority:z,path:X,normalizedPath:X.endsWith("/")?X:`${X}/`,isIp:Q}};var SZ=($,U)=>$===U;var DZ=($,U,G,W)=>{if(U>=G||$.length<G)return null;if(!W)return $.substring(U,G);return $.substring($.length-G,$.length-U)};var bZ=($)=>encodeURIComponent($).replace(/[!*'()]/g,(U)=>`%${U.charCodeAt(0).toString(16).toUpperCase()}`);var kZ={booleanEquals:qZ,getAttr:d1,isSet:NZ,isValidHostLabel:o0,not:jZ,parseURL:PZ,stringEquals:SZ,substring:DZ,uriEncode:bZ};var p1=($,U)=>{const G=[],W={...U.endpointParams,...U.referenceRecord};let Z=0;while(Z<$.length){const X=$.indexOf("{",Z);if(X===-1){G.push($.slice(Z));break}G.push($.slice(Z,X));const L=$.indexOf("}",X);if(L===-1){G.push($.slice(X));break}if($[X+1]==="{"&&$[L+1]==="}")G.push($.slice(X+1,L)),Z=L+2;const Y=$.substring(X+1,L);if(Y.includes("#")){const[F,Q]=Y.split("#");G.push(d1(W[F],Q))}else G.push(W[Y]);Z=L+1}return G.join("")};var hZ=({ref:$},U)=>{return{...U.endpointParams,...U.referenceRecord}[$]};var Z0=($,U,G)=>{if(typeof $==="string")return p1($,G);else if($.fn)return l1($,G);else if($.ref)return hZ($,G);throw new O(`'${U}': ${String($)} is not a string, function or reference.`)};var l1=({fn:$,argv:U},G)=>{const W=U.map((X)=>["boolean","number"].includes(typeof X)?X:Z0(X,"arg",G)),Z=$.split(".");if(Z[0]in a0&&Z[1]!=null)return a0[Z[0]][Z[1]](...W);return kZ[$](...W)};var xZ=({assign:$,...U},G)=>{if($&&$ in G.referenceRecord)throw new O(`'${$}' is already defined in Reference Record.`);const W=l1(U,G);return G.logger?.debug?.(`${t} evaluateCondition: ${_(U)} = ${_(W)}`),{result:W===""?!0:!!W,...$!=null&&{toAssign:{name:$,value:W}}}};var P0=($=[],U)=>{const G={};for(let W of $){const{result:Z,toAssign:X}=xZ(W,{...U,referenceRecord:{...U.referenceRecord,...G}});if(!Z)return{result:Z};if(X)G[X.name]=X.value,U.logger?.debug?.(`${t} assign: ${X.name} := ${_(X.value)}`)}return{result:!0,referenceRecord:G}};var vZ=($,U)=>Object.entries($).reduce((G,[W,Z])=>({...G,[W]:Z.map((X)=>{const L=Z0(X,"Header value entry",U);if(typeof L!=="string")throw new O(`Header '${W}' value '${L}' is not a string`);return L})}),{});var BU=($,U)=>{if(Array.isArray($))return $.map((G)=>BU(G,U));switch(typeof $){case"string":return p1($,U);case"object":if($===null)throw new O(`Unexpected endpoint property: ${$}`);return s1($,U);case"boolean":return $;default:throw new O(`Unexpected endpoint property type: ${typeof $}`)}};var s1=($,U)=>Object.entries($).reduce((G,[W,Z])=>({...G,[W]:BU(Z,U)}),{});var cZ=($,U)=>{const G=Z0($,"Endpoint URL",U);if(typeof G==="string")try{return new URL(G)}catch(W){throw console.error(`Failed to construct URL with ${G}`,W),W}throw new O(`Endpoint URL must be a string, got ${typeof G}`)};var yZ=($,U)=>{const{conditions:G,endpoint:W}=$,{result:Z,referenceRecord:X}=P0(G,U);if(!Z)return;const L={...U,referenceRecord:{...U.referenceRecord,...X}},{url:Y,properties:F,headers:Q}=W;return U.logger?.debug?.(`${t} Resolving endpoint from template: ${_(W)}`),{...Q!=null&&{headers:vZ(Q,L)},...F!=null&&{properties:s1(F,L)},url:cZ(Y,L)}};var uZ=($,U)=>{const{conditions:G,error:W}=$,{result:Z,referenceRecord:X}=P0(G,U);if(!Z)return;throw new O(Z0(W,"Error",{...U,referenceRecord:{...U.referenceRecord,...X}}))};var _Z=($,U)=>{const{conditions:G,rules:W}=$,{result:Z,referenceRecord:X}=P0(G,U);if(!Z)return;return m1(W,{...U,referenceRecord:{...U.referenceRecord,...X}})};var m1=($,U)=>{for(let G of $)if(G.type==="endpoint"){const W=yZ(G,U);if(W)return W}else if(G.type==="error")uZ(G,U);else if(G.type==="tree"){const W=_Z(G,U);if(W)return W}else throw new O(`Unknown endpoint rule: ${G}`);throw new O("Rules evaluation failed")};var Tz=($,U)=>{const{endpointParams:G,logger:W}=U,{parameters:Z,rules:X}=$;U.logger?.debug?.(`${t} Initial EndpointParams: ${_(G)}`);const L=Object.entries(Z).filter(([,Q])=>Q.default!=null).map(([Q,w])=>[Q,w.default]);if(L.length>0)for(let[Q,w]of L)G[Q]=G[Q]??w;const Y=Object.entries(Z).filter(([,Q])=>Q.required).map(([Q])=>Q);for(let Q of Y)if(G[Q]==null)throw new O(`Missing required parameter: '${Q}'`);const F=m1(X,{endpointParams:G,logger:W,referenceRecord:{}});if(U.endpointParams?.Endpoint)try{const Q=new URL(U.endpointParams.Endpoint),{protocol:w,port:z}=Q;F.url.protocol=w,F.url.port=z}catch(Q){}return U.logger?.debug?.(`${t} Resolved endpoint: ${_(F)}`),F};var TU=($,U=!1)=>{if(U){for(let G of $.split("."))if(!TU(G))return!1;return!0}if(!o0($))return!1;if($.length<3||$.length>63)return!1;if($!==$.toLowerCase())return!1;if(r0($))return!1;return!0};var dZ=($)=>{const U=$.split(":");if(U.length<6)return null;const[G,W,Z,X,L,...Y]=U;if(G!=="arn"||W===""||Z===""||Y[0]==="")return null;return{partition:W,service:Z,region:X,accountId:L,resourceId:Y[0].includes("/")?Y[0].split("/"):Y}};var gZ={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 Hz=gZ,Oz="",pZ=($)=>{const{partitions:U}=Hz;for(let W of U){const{regions:Z,outputs:X}=W;for(let[L,Y]of Object.entries(Z))if(L===$)return{...X,...Y}}for(let W of U){const{regionRegex:Z,outputs:X}=W;if(new RegExp(Z).test($))return{...X}}const G=U.find((W)=>W.id==="aws");if(!G)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...G.outputs}};var lZ=()=>Oz;var Cz={isVirtualHostableS3Bucket:TU,parseArn:dZ,partition:pZ};a0.aws=Cz;var AU="user-agent",n1="x-amz-user-agent",HU=" ",i1="/",sZ=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,mZ=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,OU="-";var qz=($)=>(U,G)=>async(W)=>{const{request:Z}=W;if(!c.isInstance(Z))return U(W);const{headers:X}=Z,L=G?.userAgent?.map(CU)||[],Y=(await $.defaultUserAgentProvider()).map(CU),F=$?.customUserAgent?.map(CU)||[],Q=lZ(),w=(Q?[Q]:[]).concat([...Y,...L,...F]).join(HU),z=[...Y.filter((I)=>I.startsWith("aws-sdk-")),...F].join(HU);if($.runtime!=="browser"){if(z)X[n1]=X[n1]?`${X[AU]} ${z}`:z;X[AU]=w}else X[n1]=w;return U({...W,request:Z})},CU=($)=>{const U=$[0].split(i1).map((L)=>L.replace(sZ,OU)).join(i1),G=$[1]?.replace(mZ,OU),W=U.indexOf(i1),Z=U.substring(0,W);let X=U.substring(W+1);if(Z==="api")X=X.toLowerCase();return[Z,X,G].filter((L)=>L&&L.length>0).reduce((L,Y,F)=>{switch(F){case 0:return Y;case 1:return`${L}/${Y}`;default:return`${L}#${Y}`}},"")},fz={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},aE=($)=>({applyToStack:(U)=>{U.add(qz($),fz)}});var r1=($)=>typeof $==="string"&&($.startsWith("fips-")||$.endsWith("-fips"));var qU=($)=>r1($)?["fips-aws-global","aws-fips"].includes($)?"us-east-1":$.replace(/fips-(dkr-|prod-)?|-fips/,""):$;var YV=($)=>{const{region:U,useFipsEndpoint:G}=$;if(!U)throw new Error("Region is missing");return{...$,region:async()=>{if(typeof U==="string")return qU(U);const W=await U();return qU(W)},useFipsEndpoint:async()=>{const W=typeof U==="string"?U:await U();if(r1(W))return!0;return typeof G!=="function"?Promise.resolve(!!G):G()}}};var S0=($,U,G)=>{if(!(U in $))return;if($[U]==="true")return!0;if($[U]==="false")return!1;throw new Error(`Cannot load ${G} "${U}". Expected "true" or "false", got ${$[U]}.`)};var X0;(function($){$.ENV="env",$.CONFIG="shared config entry"})(X0||(X0={}));var Nz="AWS_USE_DUALSTACK_ENDPOINT",jz="use_dualstack_endpoint";var EV={environmentVariableSelector:($)=>S0($,Nz,X0.ENV),configFileSelector:($)=>S0($,jz,X0.CONFIG),default:!1};var Pz="AWS_USE_FIPS_ENDPOINT",Sz="use_fips_endpoint";var TV={environmentVariableSelector:($)=>S0($,Pz,X0.ENV),configFileSelector:($)=>S0($,Sz,X0.CONFIG),default:!1};var Dz=R0(m(),1);var bz=R0(m(),1);var nZ={environmentVariableSelector:($)=>$["AWS_REGION"],configFileSelector:($)=>$["region"],default:()=>{throw new Error("Region is missing")}},bV={preferredFile:"credentials"};function kz($){return(U)=>async(G)=>{const W=G.request;if(c.isInstance(W)){const{body:Z,headers:X}=W;if(Z&&Object.keys(X).map((L)=>L.toLowerCase()).indexOf(iZ)===-1)try{const L=$(Z);W.headers={...W.headers,[iZ]:String(L)}}catch(L){}}return U({...G,request:W})}}var iZ="content-length",hz={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},XB=($)=>({applyToStack:(U)=>{U.add(kz($.bodyLengthChecker),hz)}});var rZ=($,U)=>(G)=>async(W)=>{const{response:Z}=await G(W);try{const X=await U(Z,$);return{response:Z,output:X}}catch(X){if(Object.defineProperty(X,"$response",{value:Z}),!("$metadata"in X)){if(X.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof X.$responseBodyText!=="undefined"){if(X.$response)X.$response.body=X.$responseBodyText}}throw X}};var oZ=($,U)=>(G,W)=>async(Z)=>{const X=W.endpointV2?.url&&$.urlParser?async()=>$.urlParser(W.endpointV2.url):$.endpoint;if(!X)throw new Error("No valid endpoint provider available.");const L=await U(Z.input,{...$,endpoint:X});return G({...Z,request:L})};function zB($,U,G){return{applyToStack:(W)=>{W.add(rZ($,G),xz),W.add(oZ($,U),fU)}}}var xz={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},fU={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};var ZX=R0(m(),1);var aZ=async($)=>{const U=$?.Bucket||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(_z(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!uz(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},vz=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,cz=/(\d+\.){3}\d+/,yz=/\.\./;var uz=($)=>vz.test($)&&!cz.test($)&&!yz.test($),_z=($)=>{const[U,G,W,,,Z]=$.split(":"),X=U==="arn"&&$.split(":").length>=6,L=Boolean(X&&G&&W&&Z);if(X&&!L)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return L};var tZ=($,U,G)=>{const W=async()=>{const Z=G[$]??G[U];if(typeof Z==="function")return Z();return Z};if($==="credentialScope"||U==="CredentialScope")return async()=>{const Z=typeof G.credentials==="function"?await G.credentials():G.credentials;return Z?.credentialScope??Z?.CredentialScope};if($==="accountId"||U==="AccountId")return async()=>{const Z=typeof G.credentials==="function"?await G.credentials():G.credentials;return Z?.accountId??Z?.AccountId};if($==="endpoint"||U==="endpoint")return async()=>{const Z=await W();if(Z&&typeof Z==="object"){if("url"in Z)return Z.url.href;if("hostname"in Z){const{protocol:X,hostname:L,port:Y,path:F}=Z;return`${X}//${L}${Y?":"+Y:""}${F}`}}return Z};return W};var eZ="AWS_ENDPOINT_URL",$X="endpoint_url",UX=($)=>({environmentVariableSelector:(U)=>{const G=$.split(" ").map((X)=>X.toUpperCase()),W=U[[eZ,...G].join("_")];if(W)return W;const Z=U[eZ];if(Z)return Z;return},configFileSelector:(U,G)=>{if(G&&U.services){const Z=G[["services",U.services].join(NU)];if(Z){const X=$.split(" ").map((Y)=>Y.toLowerCase()),L=Z[[X.join("_"),$X].join(NU)];if(L)return L}}const W=U[$X];if(W)return W;return},default:void 0});var GX=async($)=>K0(UX($))();var o1=($)=>{if(typeof $==="object"){if("url"in $)return jU($.url);return $}return jU($)};var WX=async($,U,G,W)=>{if(!G.endpoint){const L=await GX(G.serviceId||"");if(L)G.endpoint=()=>Promise.resolve(o1(L))}const Z=await dz($,U,G);if(typeof G.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return G.endpointProvider(Z,W)},dz=async($,U,G)=>{const W={},Z=U?.getEndpointParameterInstructions?.()||{};for(let[X,L]of Object.entries(Z))switch(L.type){case"staticContextParams":W[X]=L.value;break;case"contextParams":W[X]=$[L.name];break;case"clientContextParams":case"builtInParams":W[X]=await tZ(L.name,X,G)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(L))}if(Object.keys(Z).length===0)Object.assign(W,G);if(String(G.serviceId).toLowerCase()==="s3")await aZ(W);return W};var XX=({config:$,instructions:U})=>{return(G,W)=>async(Z)=>{const X=await WX(Z.input,{getEndpointParameterInstructions(){return U}},{...$},W);W.endpointV2=X,W.authSchemes=X.properties?.authSchemes;const L=W.authSchemes?.[0];if(L){W.signing_region=L.signingRegion,W.signing_service=L.signingName;const F=ZX.getSmithyContext(W)?.selectedHttpAuthScheme?.httpAuthOption;if(F)F.signingProperties=Object.assign(F.signingProperties||{},{signing_region:L.signingRegion,signingRegion:L.signingRegion,signing_service:L.signingName,signingName:L.signingName,signingRegionSet:L.signingRegionSet},L.properties)}return G({...Z})}};var gz={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:fU.name},cB=($,U)=>({applyToStack:(G)=>{G.addRelativeTo(XX({config:$,instructions:U}),gz)}});var a1=R0(m(),1);var _B=($)=>{const U=$.tls??!0,{endpoint:G}=$,W=G!=null?async()=>o1(await a1.normalizeProvider(G)()):void 0;return{...$,endpoint:W,tls:U,isCustomEndpoint:!!G,useDualstackEndpoint:a1.normalizeProvider($.useDualstackEndpoint??!1),useFipsEndpoint:a1.normalizeProvider($.useFipsEndpoint??!1)}};var i=R0(D$(),1),aB=i.default.v1,tB=i.default.v3,LX=i.default.v4,eB=i.default.v5,$T=i.default.NIL,UT=i.default.version,GT=i.default.validate,WT=i.default.stringify,ZT=i.default.parse;var xU=R0(m(),1);var s;(function($){$.STANDARD="standard",$.ADAPTIVE="adaptive"})(s||(s={}));var M0=3,YX=s.STANDARD;var FX=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],QX=["TimeoutError","RequestTimeout","RequestTimeoutException"],wX=[500,502,503,504],zX=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];var pz=($)=>$.$metadata?.clockSkewCorrected,D0=($)=>$.$metadata?.httpStatusCode===429||FX.includes($.name)||$.$retryable?.throttling==!0,t1=($)=>pz($)||QX.includes($.name)||zX.includes($?.code||"")||wX.includes($.$metadata?.httpStatusCode||0),IX=($)=>{if($.$metadata?.httpStatusCode!==void 0){const U=$.$metadata.httpStatusCode;if(500<=U&&U<=599&&!t1($))return!0;return!1}return!1};class e1{constructor($){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=$?.beta??0.7,this.minCapacity=$?.minCapacity??1,this.minFillRate=$?.minFillRate??0.5,this.scaleConstant=$?.scaleConstant??0.4,this.smooth=$?.smooth??0.8;const U=this.getCurrentTimeInSeconds();this.lastThrottleTime=U,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket($){if(!this.enabled)return;if(this.refillTokenBucket(),$>this.currentCapacity){const U=($-this.currentCapacity)/this.fillRate*1000;await new Promise((G)=>setTimeout(G,U))}this.currentCapacity=this.currentCapacity-$}refillTokenBucket(){const $=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=$;return}const U=($-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+U),this.lastTimestamp=$}updateClientSendingRate($){let U;if(this.updateMeasuredRate(),D0($)){const W=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=W,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),U=this.cubicThrottle(W),this.enableTokenBucket()}else this.calculateTimeWindow(),U=this.cubicSuccess(this.getCurrentTimeInSeconds());const G=Math.min(U,2*this.measuredTxRate);this.updateTokenBucketRate(G)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle($){return this.getPrecise($*this.beta)}cubicSuccess($){return this.getPrecise(this.scaleConstant*Math.pow($-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate($){this.refillTokenBucket(),this.fillRate=Math.max($,this.minFillRate),this.maxCapacity=Math.max($,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const $=this.getCurrentTimeInSeconds(),U=Math.floor($*2)/2;if(this.requestCount++,U>this.lastTxRateBucket){const G=this.requestCount/(U-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(G*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=U}}getPrecise($){return parseFloat($.toFixed(8))}}var E0=100,t0=20000,PU=500,$$=500,SU=5,DU=10,bU=1,U$="amz-sdk-invocation-id",G$="amz-sdk-request";var JX=()=>{let $=E0;return{computeNextBackoffDelay:(W)=>{return Math.floor(Math.min(t0,Math.random()*2**W*$))},setDelayBase:(W)=>{$=W}}};var kU=({retryDelay:$,retryCount:U,retryCost:G})=>{return{getRetryCount:()=>U,getRetryDelay:()=>Math.min(t0,$),getRetryCost:()=>G}};class b0{constructor($){this.maxAttempts=$,this.mode=s.STANDARD,this.capacity=$$,this.retryBackoffStrategy=JX(),this.maxAttemptsProvider=typeof $==="function"?$:async()=>$}async acquireInitialRetryToken($){return kU({retryDelay:E0,retryCount:0})}async refreshRetryTokenForRetry($,U){const G=await this.getMaxAttempts();if(this.shouldRetry($,U,G)){const W=U.errorType;this.retryBackoffStrategy.setDelayBase(W==="THROTTLING"?PU:E0);const Z=this.retryBackoffStrategy.computeNextBackoffDelay($.getRetryCount()),X=U.retryAfterHint?Math.max(U.retryAfterHint.getTime()-Date.now()||0,Z):Z,L=this.getCapacityCost(W);return this.capacity-=L,kU({retryDelay:X,retryCount:$.getRetryCount()+1,retryCost:L})}throw new Error("No retry token available")}recordSuccess($){this.capacity=Math.max($$,this.capacity+($.getRetryCost()??bU))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch($){return console.warn(`Max attempts provider could not resolve. Using default of ${M0}`),M0}}shouldRetry($,U,G){return $.getRetryCount()+1<G&&this.capacity>=this.getCapacityCost(U.errorType)&&this.isRetryableError(U.errorType)}getCapacityCost($){return $==="TRANSIENT"?DU:SU}isRetryableError($){return $==="THROTTLING"||$==="TRANSIENT"}}class hU{constructor($,U){this.maxAttemptsProvider=$,this.mode=s.ADAPTIVE;const{rateLimiter:G}=U??{};this.rateLimiter=G??new e1,this.standardRetryStrategy=new b0($)}async acquireInitialRetryToken($){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken($)}async refreshRetryTokenForRetry($,U){return this.rateLimiter.updateClientSendingRate(U),this.standardRetryStrategy.refreshRetryTokenForRetry($,U)}recordSuccess($){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess($)}}var RX="AWS_MAX_ATTEMPTS",KX="max_attempts",uT={environmentVariableSelector:($)=>{const U=$[RX];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Environment variable ${RX} mast be a number, got "${U}"`);return G},configFileSelector:($)=>{const U=$[KX];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Shared config file entry ${KX} mast be a number, got "${U}"`);return G},default:M0},_T=($)=>{const{retryStrategy:U}=$,G=xU.normalizeProvider($.maxAttempts??M0);return{...$,maxAttempts:G,retryStrategy:async()=>{if(U)return U;if(await xU.normalizeProvider($.retryMode)()===s.ADAPTIVE)return new hU(G);return new b0(G)}}},lz="AWS_RETRY_MODE",sz="retry_mode",dT={environmentVariableSelector:($)=>$[lz],configFileSelector:($)=>$[sz],default:YX};import{Readable as mz} from"stream";var MX=($)=>$?.body instanceof mz||typeof ReadableStream!=="undefined"&&$?.body instanceof ReadableStream;var vU=($)=>{if($ instanceof Error)return $;if($ instanceof Object)return Object.assign(new Error,$);if(typeof $==="string")return new Error($);return new Error(`AWS SDK error wrapper for ${$}`)};var nz=($)=>(U,G)=>async(W)=>{let Z=await $.retryStrategy();const X=await $.maxAttempts();if(iz(Z)){Z=Z;let L=await Z.acquireInitialRetryToken(G.partition_id),Y=new Error,F=0,Q=0;const{request:w}=W,z=c.isInstance(w);if(z)w.headers[U$]=LX();while(!0)try{if(z)w.headers[G$]=`attempt=${F+1}; max=${X}`;const{response:I,output:J}=await U(W);return Z.recordSuccess(L),J.$metadata.attempts=F+1,J.$metadata.totalRetryDelay=Q,{response:I,output:J}}catch(I){const J=rz(I);if(Y=vU(I),z&&MX(w))throw(G.logger instanceof EX?console:G.logger)?.warn("An error was encountered in a non-retryable streaming request."),Y;try{L=await Z.refreshRetryTokenForRetry(L,J)}catch(T){if(!Y.$metadata)Y.$metadata={};throw Y.$metadata.attempts=F+1,Y.$metadata.totalRetryDelay=Q,Y}F=L.getRetryCount();const K=L.getRetryDelay();Q+=K,await new Promise((T)=>setTimeout(T,K))}}else{if(Z=Z,Z?.mode)G.userAgent=[...G.userAgent||[],["cfg/retry-mode",Z.mode]];return Z.retry(U,W)}},iz=($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined",rz=($)=>{const U={error:$,errorType:oz($)},G=tz($.$response);if(G)U.retryAfterHint=G;return U},oz=($)=>{if(D0($))return"THROTTLING";if(t1($))return"TRANSIENT";if(IX($))return"SERVER_ERROR";return"CLIENT_ERROR"},az={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},eT=($)=>({applyToStack:(U)=>{U.add(nz($),az)}}),tz=($)=>{if(!cU.isInstance($))return;const U=Object.keys($.headers).find((X)=>X.toLowerCase()==="retry-after");if(!U)return;const G=$.headers[U],W=Number(G);if(!Number.isNaN(W))return new Date(W*1000);return new Date(G)};import{platform as gR,release as pR} from"os";import{env as yL,versions as lR} from"process";var tU={isCrtAvailable:!1};var cL=()=>{if(tU.isCrtAvailable)return["md/crt-avail"];return null};var sR="AWS_SDK_UA_APP_ID",mR="sdk-ua-app-id",XH=({serviceId:$,clientVersion:U})=>{const G=[["aws-sdk-js",U],["ua","2.0"],[`os/${gR()}`,pR()],["lang/js"],["md/nodejs",`${lR.node}`]],W=cL();if(W)G.push(W);if($)G.push([`api/${$}`,U]);if(yL.AWS_EXECUTION_ENV)G.push([`exec-env/${yL.AWS_EXECUTION_ENV}`]);const Z=K0({environmentVariableSelector:(L)=>L[sR],configFileSelector:(L)=>L[mR],default:void 0})();let X=void 0;return async()=>{if(!X){const L=await Z;X=L?[...G,[`app/${L}`]]:[...G]}return X}};import{Buffer as nR} from"buffer";import{createHash as iR,createHmac as rR} from"crypto";var uL=function($,U){if(nR.isBuffer($))return $;if(typeof $==="string")return _L($,U);if(ArrayBuffer.isView($))return eU($.buffer,$.byteOffset,$.byteLength);return eU($)};class oR{constructor($,U){this.algorithmIdentifier=$,this.secret=U,this.reset()}update($,U){this.hash.update(dL(uL($,U)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?rR(this.algorithmIdentifier,uL(this.secret)):iR(this.algorithmIdentifier)}}import{fstatSync as aR,lstatSync as tR} from"fs";var RH=($)=>{if(!$)return 0;if(typeof $==="string")return Buffer.byteLength($);else if(typeof $.byteLength==="number")return $.byteLength;else if(typeof $.size==="number")return $.size;else if(typeof $.start==="number"&&typeof $.end==="number")return $.end+1-$.start;else if(typeof $.path==="string"||Buffer.isBuffer($.path))return tR($.path).size;else if(typeof $.fd==="number")return aR($.fd).size;throw new Error(`Body Length computation failed for ${$}`)};var gL="AWS_EXECUTION_ENV",$G="AWS_REGION",UG="AWS_DEFAULT_REGION",pL="AWS_EC2_METADATA_DISABLED",lL=["in-region","cross-region","mobile","standard","legacy"],sL="/latest/meta-data/placement/region";var mL={environmentVariableSelector:($)=>{return $["AWS_DEFAULTS_MODE"]},configFileSelector:($)=>{return $["defaults_mode"]},default:"legacy"};var qH=({region:$=K0(nZ),defaultsMode:U=K0(mL)}={})=>nL(async()=>{const G=typeof U==="function"?await U():U;switch(G?.toLowerCase()){case"auto":return eR($);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(G?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${lL.join(", ")}, got ${G}`)}}),eR=async($)=>{if($){const U=typeof $==="function"?await $():$,G=await $3();if(!G)return"standard";if(U===G)return"in-region";else return"cross-region"}return"standard"},$3=async()=>{if(process.env[gL]&&(process.env[$G]||process.env[UG]))return process.env[$G]??process.env[UG];if(!process.env[pL])try{const{getInstanceMetadataEndpoint:$,httpRequest:U}=await import("./chunk-25dd80c6d9144f89.js"),G=await $();return(await U({...G,path:sL})).toString()}catch($){}};var PH=($)=>{let U=async()=>{if($.region===void 0)throw new Error("Region is missing from runtimeConfig");const G=$.region;if(typeof G==="string")return G;return G()};return{setRegion(G){U=G},region(){return U}}},SH=($)=>{return{region:$.region()}};export{W3 as Da,Z3 as Ea,L3 as Fa,z3 as Ga,m as Ha,S0 as Ia,X0 as Ja,EU as Ka,VK as La,a0 as Ma,Tz as Na,Cz as Oa,aE as Pa,EV as Qa,TV as Ra,nZ as Sa,bV as Ta,YV as Ua,XB as Va,dz as Wa,zB as Xa,cB as Ya,_B as Za,YX as _a,LX as $a,uT as ab,_T as bb,dT as cb,eT as db,dR as eb,XH as fb,oR as gb,RH as hb,qH as ib,PH as jb,SH as kb};
@@ -1,2 +0,0 @@
1
- var et=function(t,e){return(e?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(t)},F=function(t,e=!1){let s=[],i=0;for(;i<t.length;){let a=t[i],u=function(o){if(!e)throw new TypeError(o);s.push({type:"INVALID_CHAR",index:i,value:t[i++]})};if(a==="*"){s.push({type:"ASTERISK",index:i,value:t[i++]});continue}if(a==="+"||a==="?"){s.push({type:"OTHER_MODIFIER",index:i,value:t[i++]});continue}if(a==="\\"){s.push({type:"ESCAPED_CHAR",index:i++,value:t[i++]});continue}if(a==="{"){s.push({type:"OPEN",index:i,value:t[i++]});continue}if(a==="}"){s.push({type:"CLOSE",index:i,value:t[i++]});continue}if(a===":"){let o="",r=i+1;for(;r<t.length;){let h=t.substr(r,1);if(r===i+1&&Y.test(h)||r!==i+1&&tt.test(h)){o+=t[r++];continue}break}if(!o){u(`Missing parameter name at ${i}`);continue}s.push({type:"NAME",index:i,value:o}),i=r;continue}if(a==="("){let o=1,r="",h=i+1,n=!1;if(t[h]==="?"){u(`Pattern cannot start with "?" at ${h}`);continue}for(;h<t.length;){if(!et(t[h],!1)){u(`Invalid character '${t[h]}' at ${h}.`),n=!0;break}if(t[h]==="\\"){r+=t[h++]+t[h++];continue}if(t[h]===")"){if(o--,o===0){h++;break}}else if(t[h]==="("&&(o++,t[h+1]!=="?")){u(`Capturing groups are not allowed at ${h}`),n=!0;break}r+=t[h++]}if(n)continue;if(o){u(`Unbalanced pattern at ${i}`);continue}if(!r){u(`Missing pattern at ${i}`);continue}s.push({type:"REGEX",index:i,value:r}),i=h;continue}s.push({type:"CHAR",index:i,value:t[i++]})}return s.push({type:"END",index:i,value:""}),s},M=function(t,e={}){let s=F(t);e.delimiter??="/#?",e.prefixes??="./";let i=`[^${d(e.delimiter)}]+?`,a=[],u=0,o=0,r="",h=new Set,n=(p)=>{if(o<s.length&&s[o].type===p)return s[o++].value},f=()=>n("OTHER_MODIFIER")??n("ASTERISK"),w=(p)=>{let c=n(p);if(c!==void 0)return c;let{type:l,index:R}=s[o];throw new TypeError(`Unexpected ${l} at ${R}, expected ${p}`)},E=()=>{let p="",c;for(;c=n("CHAR")??n("ESCAPED_CHAR");)p+=c;return p},Q=(p)=>p,T=e.encodePart||Q,U="",O=(p)=>{U+=p},I=()=>{U.length&&(a.push(new P(3,"","",T(U),"",3)),U="")},_=(p,c,l,R,v)=>{let g=3;switch(v){case"?":g=1;break;case"*":g=0;break;case"+":g=2;break}if(!c&&!l&&g===3){O(p);return}if(I(),!c&&!l){if(!p)return;a.push(new P(3,"","",T(p),"",g));return}let m;l?l==="*"?m=D:m=l:m=i;let C=2;m===i?(C=1,m=""):m===D&&(C=0,m="");let b;if(c?b=c:l&&(b=u++),h.has(b))throw new TypeError(`Duplicate name '${b}'.`);h.add(b),a.push(new P(C,b,T(p),m,T(R),g))};for(;o<s.length;){let p=n("CHAR"),c=n("NAME"),l=n("REGEX");if(!c&&!l&&(l=n("ASTERISK")),c||l){let v=p??"";e.prefixes.indexOf(v)===-1&&(O(v),v=""),I();let g=f();_(v,c,l,"",g);continue}let R=p??n("ESCAPED_CHAR");if(R){O(R);continue}if(n("OPEN")){let v=E(),g=n("NAME"),m=n("REGEX");!g&&!m&&(m=n("ASTERISK"));let C=E();w("CLOSE");let b=f();_(v,g,m,C,b);continue}I(),w("END")}return a},d=function(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")},j=function(t){return t&&t.ignoreCase?"ui":"u"},st=function(t,e,s){return W(M(t,s),e,s)},k=function(t){switch(t){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}},W=function(t,e,s={}){s.delimiter??="/#?",s.prefixes??="./",s.sensitive??=!1,s.strict??=!1,s.end??=!0,s.start??=!0,s.endsWith="";let i=s.start?"^":"";for(let r of t){if(r.type===3){r.modifier===3?i+=d(r.value):i+=`(?:${d(r.value)})${k(r.modifier)}`;continue}e&&e.push(r.name);let h=`[^${d(s.delimiter)}]+?`,n=r.value;if(r.type===1?n=h:r.type===0&&(n=D),!r.prefix.length&&!r.suffix.length){r.modifier===3||r.modifier===1?i+=`(${n})${k(r.modifier)}`:i+=`((?:${n})${k(r.modifier)})`;continue}if(r.modifier===3||r.modifier===1){i+=`(?:${d(r.prefix)}(${n})${d(r.suffix)})`,i+=k(r.modifier);continue}i+=`(?:${d(r.prefix)}`,i+=`((?:${n})(?:`,i+=d(r.suffix),i+=d(r.prefix),i+=`(?:${n}))*)${d(r.suffix)})`,r.modifier===0&&(i+="?")}let a=`[${d(s.endsWith)}]|\$`,u=`[${d(s.delimiter)}]`;if(s.end)return s.strict||(i+=`${u}?`),s.endsWith.length?i+=`(?=${a})`:i+="$",new RegExp(i,j(s));s.strict||(i+=`(?:${u}(?=${a}))?`);let o=!1;if(t.length){let r=t[t.length-1];r.type===3&&r.modifier===3&&(o=s.delimiter.indexOf(r)>-1)}return o||(i+=`(?=${u}|${a})`),new RegExp(i,j(s))},nt=function(t,e){return t.length?t[0]==="/"?!0:!e||t.length<2?!1:(t[0]=="\\"||t[0]=="{")&&t[1]=="/":!1},G=function(t,e){return t.startsWith(e)?t.substring(e.length,t.length):t},ot=function(t,e){return t.endsWith(e)?t.substr(0,t.length-e.length):t},K=function(t){return!t||t.length<2?!1:t[0]==="["||(t[0]==="\\"||t[0]==="{")&&t[1]==="["},V=function(t){if(!t)return!0;for(let e of X)if(t.test(e))return!0;return!1},ht=function(t,e){if(t=G(t,"#"),e||t==="")return t;let s=new URL("https://example.com");return s.hash=t,s.hash?s.hash.substring(1,s.hash.length):""},at=function(t,e){if(t=G(t,"?"),e||t==="")return t;let s=new URL("https://example.com");return s.search=t,s.search?s.search.substring(1,s.search.length):""},ut=function(t,e){return e||t===""?t:K(t)?q(t):Z(t)},pt=function(t,e){if(e||t==="")return t;let s=new URL("https://example.com");return s.password=t,s.password},ct=function(t,e){if(e||t==="")return t;let s=new URL("https://example.com");return s.username=t,s.username},ft=function(t,e,s){if(s||t==="")return t;if(e&&!X.includes(e))return new URL(`${e}:${t}`).pathname;let i=t[0]=="/";return t=new URL(i?t:"/-"+t,"https://example.com").pathname,i||(t=t.substring(2,t.length)),t},lt=function(t,e,s){return z(e)===t&&(t=""),s||t===""?t:B(t)},mt=function(t,e){return t=ot(t,":"),e||t===""?t:N(t)},z=function(t){switch(t){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}},N=function(t){if(t==="")return t;if(/^[-+.A-Za-z0-9]*$/.test(t))return t.toLowerCase();throw new TypeError(`Invalid protocol '${t}'.`)},dt=function(t){if(t==="")return t;let e=new URL("https://example.com");return e.username=t,e.username},gt=function(t){if(t==="")return t;let e=new URL("https://example.com");return e.password=t,e.password},Z=function(t){if(t==="")return t;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(t))throw new TypeError(`Invalid hostname '${t}'`);let e=new URL("https://example.com");return e.hostname=t,e.hostname},q=function(t){if(t==="")return t;if(/[^0-9a-fA-F[\]:]/g.test(t))throw new TypeError(`Invalid IPv6 hostname '${t}'`);return t.toLowerCase()},B=function(t){if(t===""||/^[0-9]*$/.test(t)&&parseInt(t)<=65535)return t;throw new TypeError(`Invalid port '${t}'.`)},wt=function(t){if(t==="")return t;let e=new URL("https://example.com");return e.pathname=t[0]!=="/"?"/-"+t:t,t[0]!=="/"?e.pathname.substring(2,e.pathname.length):e.pathname},yt=function(t){return t===""?t:new URL(`data:${t}`).pathname},vt=function(t){if(t==="")return t;let e=new URL("https://example.com");return e.search=t,e.search.substring(1,e.search.length)},bt=function(t){if(t==="")return t;let e=new URL("https://example.com");return e.hash=t,e.hash.substring(1,e.hash.length)},H=function(t,e){if(typeof t!="string")throw new TypeError("parameter 1 is not of type 'string'.");let s=new URL(t,e);return{protocol:s.protocol.substring(0,s.protocol.length-1),username:s.username,password:s.password,hostname:s.hostname,port:s.port,pathname:s.pathname,search:s.search!==""?s.search.substring(1,s.search.length):void 0,hash:s.hash!==""?s.hash.substring(1,s.hash.length):void 0}},y=function(t,e){return e?A(t):t},L=function(t,e,s){let i;if(typeof e.baseURL=="string")try{i=new URL(e.baseURL),e.protocol===void 0&&(t.protocol=y(i.protocol.substring(0,i.protocol.length-1),s)),!s&&e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&e.username===void 0&&(t.username=y(i.username,s)),!s&&e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&e.username===void 0&&e.password===void 0&&(t.password=y(i.password,s)),e.protocol===void 0&&e.hostname===void 0&&(t.hostname=y(i.hostname,s)),e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&(t.port=y(i.port,s)),e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&e.pathname===void 0&&(t.pathname=y(i.pathname,s)),e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&e.pathname===void 0&&e.search===void 0&&(t.search=y(i.search.substring(1,i.search.length),s)),e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&e.pathname===void 0&&e.search===void 0&&e.hash===void 0&&(t.hash=y(i.hash.substring(1,i.hash.length),s))}catch{throw new TypeError(`invalid baseURL '${e.baseURL}'.`)}if(typeof e.protocol=="string"&&(t.protocol=mt(e.protocol,s)),typeof e.username=="string"&&(t.username=ct(e.username,s)),typeof e.password=="string"&&(t.password=pt(e.password,s)),typeof e.hostname=="string"&&(t.hostname=ut(e.hostname,s)),typeof e.port=="string"&&(t.port=lt(e.port,t.protocol,s)),typeof e.pathname=="string"){if(t.pathname=e.pathname,i&&!nt(t.pathname,s)){let a=i.pathname.lastIndexOf("/");a>=0&&(t.pathname=y(i.pathname.substring(0,a+1),s)+t.pathname)}t.pathname=ft(t.pathname,t.protocol,s)}return typeof e.search=="string"&&(t.search=at(e.search,s)),typeof e.hash=="string"&&(t.hash=ht(e.hash,s)),t},A=function(t){return t.replace(/([+*?:{}()\\])/g,"\\$1")},$t=function(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")},Et=function(t,e){e.delimiter??="/#?",e.prefixes??="./",e.sensitive??=!1,e.strict??=!1,e.end??=!0,e.start??=!0,e.endsWith="";let s=".*",i=`[^${$t(e.delimiter)}]+?`,a=/[$_\u200C\u200D\p{ID_Continue}]/u,u="";for(let o=0;o<t.length;++o){let r=t[o];if(r.type===3){if(r.modifier===3){u+=A(r.value);continue}u+=`{${A(r.value)}}${k(r.modifier)}`;continue}let h=r.hasCustomName(),n=!!r.suffix.length||!!r.prefix.length&&(r.prefix.length!==1||!e.prefixes.includes(r.prefix)),f=o>0?t[o-1]:null,w=o<t.length-1?t[o+1]:null;if(!n&&h&&r.type===1&&r.modifier===3&&w&&!w.prefix.length&&!w.suffix.length)if(w.type===3){let E=w.value.length>0?w.value[0]:"";n=a.test(E)}else n=!w.hasCustomName();if(!n&&!r.prefix.length&&f&&f.type===3){let E=f.value[f.value.length-1];n=e.prefixes.includes(E)}n&&(u+="{"),u+=A(r.prefix),h&&(u+=`:${r.name}`),r.type===2?u+=`(${r.value})`:r.type===1?h||(u+=`(${i})`):r.type===0&&(!h&&(!f||f.type===3||f.modifier!==3||n||r.prefix!=="")?u+="*":u+=`(${s})`),r.type===1&&h&&r.suffix.length&&a.test(r.suffix[0])&&(u+="\\"),u+=A(r.suffix),n&&(u+="}"),r.modifier!==3&&(u+=k(r.modifier))}return u},P=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(t,e,s,i,a,u){this.type=t,this.name=e,this.prefix=s,this.value=i,this.suffix=a,this.modifier=u}hasCustomName(){return this.name!==""&&typeof this.name!="number"}},Y=/[$_\p{ID_Start}]/u,tt=/[$_\u200C\u200D\p{ID_Continue}]/u,D=".*",$={delimiter:"",prefixes:"",sensitive:!0,strict:!0},rt={delimiter:".",prefixes:"",sensitive:!0,strict:!0},it={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0},X=["ftp","file","http","https","ws","wss"],xt=class{#n;#r=[];#e={};#t=0;#i=1;#u=0;#h=0;#l=0;#m=0;#d=!1;constructor(t){this.#n=t}get result(){return this.#e}parse(){for(this.#r=F(this.#n,!0);this.#t<this.#r.length;this.#t+=this.#i){if(this.#i=1,this.#r[this.#t].type==="END"){if(this.#h===0){this.#v(),this.#p()?this.#s(9,1):this.#c()?this.#s(8,1):this.#s(7,0);continue}else if(this.#h===2){this.#f(5);continue}this.#s(10,0);break}if(this.#l>0)if(this.#C())this.#l-=1;else continue;if(this.#k()){this.#l+=1;continue}switch(this.#h){case 0:this.#b()&&this.#f(1);break;case 1:if(this.#b()){this.#P();let t=7,e=1;this.#$()?(t=2,e=3):this.#d&&(t=2),this.#s(t,e)}break;case 2:this.#w()?this.#f(3):(this.#y()||this.#c()||this.#p())&&this.#f(5);break;case 3:this.#E()?this.#s(4,1):this.#w()&&this.#s(5,1);break;case 4:this.#w()&&this.#s(5,1);break;case 5:this.#L()?this.#m+=1:this.#A()&&(this.#m-=1),this.#R()&&!this.#m?this.#s(6,1):this.#y()?this.#s(7,0):this.#c()?this.#s(8,1):this.#p()&&this.#s(9,1);break;case 6:this.#y()?this.#s(7,0):this.#c()?this.#s(8,1):this.#p()&&this.#s(9,1);break;case 7:this.#c()?this.#s(8,1):this.#p()&&this.#s(9,1);break;case 8:this.#p()&&this.#s(9,1);break;case 9:break;case 10:break}}this.#e.hostname!==void 0&&this.#e.port===void 0&&(this.#e.port="")}#s(t,e){switch(this.#h){case 0:break;case 1:this.#e.protocol=this.#a();break;case 2:break;case 3:this.#e.username=this.#a();break;case 4:this.#e.password=this.#a();break;case 5:this.#e.hostname=this.#a();break;case 6:this.#e.port=this.#a();break;case 7:this.#e.pathname=this.#a();break;case 8:this.#e.search=this.#a();break;case 9:this.#e.hash=this.#a();break;case 10:break}this.#h!==0&&t!==10&&([1,2,3,4].includes(this.#h)&&[6,7,8,9].includes(t)&&(this.#e.hostname??=""),[1,2,3,4,5,6].includes(this.#h)&&[8,9].includes(t)&&(this.#e.pathname??=this.#d?"/":""),[1,2,3,4,5,6,7].includes(this.#h)&&t===9&&(this.#e.search??="")),this.#x(t,e)}#x(t,e){this.#h=t,this.#u=this.#t+e,this.#t+=e,this.#i=0}#v(){this.#t=this.#u,this.#i=0}#f(t){this.#v(),this.#h=t}#g(t){return t<0&&(t=this.#r.length-t),t<this.#r.length?this.#r[t]:this.#r[this.#r.length-1]}#o(t,e){let s=this.#g(t);return s.value===e&&(s.type==="CHAR"||s.type==="ESCAPED_CHAR"||s.type==="INVALID_CHAR")}#b(){return this.#o(this.#t,":")}#$(){return this.#o(this.#t+1,"/")&&this.#o(this.#t+2,"/")}#w(){return this.#o(this.#t,"@")}#E(){return this.#o(this.#t,":")}#R(){return this.#o(this.#t,":")}#y(){return this.#o(this.#t,"/")}#c(){if(this.#o(this.#t,"?"))return!0;if(this.#r[this.#t].value!=="?")return!1;let t=this.#g(this.#t-1);return t.type!=="NAME"&&t.type!=="REGEX"&&t.type!=="CLOSE"&&t.type!=="ASTERISK"}#p(){return this.#o(this.#t,"#")}#k(){return this.#r[this.#t].type=="OPEN"}#C(){return this.#r[this.#t].type=="CLOSE"}#L(){return this.#o(this.#t,"[")}#A(){return this.#o(this.#t,"]")}#a(){let t=this.#r[this.#t],e=this.#g(this.#u).index;return this.#n.substring(e,t.index)}#P(){let t={};Object.assign(t,$),t.encodePart=N;let e=st(this.#a(),void 0,t);this.#d=V(e)}},S=["protocol","username","password","hostname","port","pathname","search","hash"],x="*",J=class{#n;#r={};#e={};#t={};#i={};#u=!1;constructor(t={},e,s){try{let i;if(typeof e=="string"?i=e:s=e,typeof t=="string"){let r=new xt(t);if(r.parse(),t=r.result,i===void 0&&typeof t.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");t.baseURL=i}else{if(!t||typeof t!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(i)throw new TypeError("parameter 1 is not of type 'string'.")}typeof s>"u"&&(s={ignoreCase:!1});let a={ignoreCase:s.ignoreCase===!0},u={pathname:x,protocol:x,username:x,password:x,hostname:x,port:x,search:x,hash:x};this.#n=L(u,t,!0),z(this.#n.protocol)===this.#n.port&&(this.#n.port="");let o;for(o of S){if(!(o in this.#n))continue;let r={},h=this.#n[o];switch(this.#e[o]=[],o){case"protocol":Object.assign(r,$),r.encodePart=N;break;case"username":Object.assign(r,$),r.encodePart=dt;break;case"password":Object.assign(r,$),r.encodePart=gt;break;case"hostname":Object.assign(r,rt),K(h)?r.encodePart=q:r.encodePart=Z;break;case"port":Object.assign(r,$),r.encodePart=B;break;case"pathname":V(this.#r.protocol)?(Object.assign(r,it,a),r.encodePart=wt):(Object.assign(r,$,a),r.encodePart=yt);break;case"search":Object.assign(r,$,a),r.encodePart=vt;break;case"hash":Object.assign(r,$,a),r.encodePart=bt;break}try{this.#i[o]=M(h,r),this.#r[o]=W(this.#i[o],this.#e[o],r),this.#t[o]=Et(this.#i[o],r),this.#u=this.#u||this.#i[o].some((n)=>n.type===2)}catch{throw new TypeError(`invalid ${o} pattern '${this.#n[o]}'.`)}}}catch(i){throw new TypeError(`Failed to construct 'URLPattern': ${i.message}`)}}test(t={},e){let s={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!="string"&&e)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return!1;try{typeof t=="object"?s=L(s,t,!1):s=L(s,H(t,e),!1)}catch{return!1}let i;for(i of S)if(!this.#r[i].exec(s[i]))return!1;return!0}exec(t={},e){let s={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!="string"&&e)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return;try{typeof t=="object"?s=L(s,t,!1):s=L(s,H(t,e),!1)}catch{return null}let i={};e?i.inputs=[t,e]:i.inputs=[t];let a;for(a of S){let u=this.#r[a].exec(s[a]);if(!u)return null;let o={};for(let[r,h]of this.#e[a].entries())if(typeof h=="string"||typeof h=="number"){let n=u[r+1];o[h]=n}i[a]={input:s[a]??"",groups:o}}return i}static compareComponent(t,e,s){let i=(r,h)=>{for(let n of["type","modifier","prefix","value","suffix"]){if(r[n]<h[n])return-1;if(r[n]===h[n])continue;return 1}return 0},a=new P(3,"","","","",3),u=new P(0,"","","","",3),o=(r,h)=>{let n=0;for(;n<Math.min(r.length,h.length);++n){let f=i(r[n],h[n]);if(f)return f}return r.length===h.length?0:i(r[n]??a,h[n]??a)};return!e.#t[t]&&!s.#t[t]?0:e.#t[t]&&!s.#t[t]?o(e.#i[t],[u]):!e.#t[t]&&s.#t[t]?o([u],s.#i[t]):o(e.#i[t],s.#i[t])}get protocol(){return this.#t.protocol}get username(){return this.#t.username}get password(){return this.#t.password}get hostname(){return this.#t.hostname}get port(){return this.#t.port}get pathname(){return this.#t.pathname}get search(){return this.#t.search}get hash(){return this.#t.hash}get hasRegExpGroups(){return this.#u}};if(!globalThis.URLPattern)globalThis.URLPattern=J;function Tt(t){const e=t.toString(),s=new Bun.CryptoHasher("sha1");return s.update(e),s.digest("hex")}
2
- export{J as j,Tt as k};
@@ -1,6 +0,0 @@
1
- // @bun
2
- import"./chunk-a5c18c07abe8fd9c.js";import{B as i,P as I,_ as y,oa as C} from"./chunk-ab0c3f72f95cb4f4.js";import"./chunk-62144f9c5008bd47.js";import{vb as n} from"./chunk-73eed146ee78f681.js";import u from"fs/promises";var T="169.254.170.2",x="169.254.170.23",P="[fd00:ec2::23]",d=(e,c)=>{if(e.protocol==="https:")return;if(e.hostname===T||e.hostname===x||e.hostname===P)return;if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(e.hostname==="localhost")return;const a=e.hostname.split("."),r=(t)=>{const s=parseInt(t,10);return 0<=s&&s<=255};if(a[0]==="127"&&r(a[1])&&r(a[2])&&r(a[3])&&a.length===4)return}throw new n(`URL not accepted. It must either be HTTPS or match one of the following:
3
- - loopback CIDR 127.0.0.0/8 or [::1/128]
4
- - ECS container host 169.254.170.2
5
- - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:c})};function S(e){return new i({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((c,[a,r])=>{return c[a]=r,c},{}),fragment:e.hash})}async function g(e,c){const r=await y(e.body).transformToString();if(e.statusCode===200){const t=JSON.parse(r);if(typeof t.AccessKeyId!=="string"||typeof t.SecretAccessKey!=="string"||typeof t.Token!=="string"||typeof t.Expiration!=="string")throw new n("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:c});return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:C(t.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let t={};try{t=JSON.parse(r)}catch(s){}throw Object.assign(new n(`Server responded with status: ${e.statusCode}`,{logger:c}),{Code:t.Code,Message:t.Message})}throw new n(`Server responded with status: ${e.statusCode}`,{logger:c})}var w=(e,c,a)=>{return async()=>{for(let r=0;r<c;++r)try{return await e()}catch(t){await new Promise((s)=>setTimeout(s,a))}return await e()}};var E="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",R="http://169.254.170.2",p="AWS_CONTAINER_CREDENTIALS_FULL_URI",A="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",O="AWS_CONTAINER_AUTHORIZATION_TOKEN",b=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let c;const a=e.awsContainerCredentialsRelativeUri??process.env[E],r=e.awsContainerCredentialsFullUri??process.env[p],t=e.awsContainerAuthorizationToken??process.env[O],s=e.awsContainerAuthorizationTokenFile??process.env[A],m=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console.warn:e.logger.warn;if(a&&r)m("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),m("awsContainerCredentialsFullUri will take precedence.");if(t&&s)m("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),m("awsContainerAuthorizationToken will take precedence.");if(r)c=r;else if(a)c=`${R}${a}`;else throw new n(`No HTTP credential provider host provided.
6
- Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:e.logger});const h=new URL(c);d(h,e.logger);const K=new I({requestTimeout:e.timeout??1000,connectionTimeout:e.timeout??1000});return w(async()=>{const o=S(h);if(t)o.headers.Authorization=t;else if(s)o.headers.Authorization=(await u.readFile(s)).toString();try{const f=await K.handle(o);return g(f.response)}catch(f){throw new n(String(f),{logger:e.logger})}},e.maxRetries??3,e.timeout??1000)};export{b as fromHttp};