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.
- package/dist/{chunk-f5a531a49e7591bd.js → chunk-2895a97b65e7107b.js} +1 -1
- package/dist/{chunk-8884e59809021f5f.js → chunk-2dd61d279d9f0b13.js} +1 -1
- package/dist/{chunk-100b76ab0ca3e14d.js → chunk-448c9eceacddef90.js} +1 -1
- package/dist/{chunk-a4b231bf6d911e01.js → chunk-466213c5585251ad.js} +1 -1
- package/dist/{chunk-edfc3362e0d21dab.js → chunk-4b8da0fabb3539db.js} +5 -5
- package/dist/{chunk-1bd88dc9c4475e1d.js → chunk-4bc3b71775040cb9.js} +1 -1
- package/dist/{chunk-00935722c776a294.js → chunk-af7d1951242b1c6e.js} +1 -1
- package/dist/{chunk-1d2c062034e3ed2d.js → chunk-b6a64bf9af2e91be.js} +2 -2
- package/dist/{chunk-a35eb04f0c7c9944.js → chunk-b8176bf532f59485.js} +1 -1
- package/dist/{chunk-545989119755857f.js → chunk-cca33e85bf87b3b3.js} +1 -1
- package/dist/{chunk-a1efc60864e65ef2.js → chunk-de75d134f236f4bb.js} +1 -1
- package/dist/{chunk-107dbe753ed86605.js → chunk-e344c95f8ae7a124.js} +2 -2
- package/dist/{chunk-f5200f44395bf49d.js → chunk-e565da7343a33b65.js} +2 -2
- package/dist/{chunk-3330ff12936f5a2e.js → chunk-e912bf7c7a0e988a.js} +1 -1
- package/dist/{chunk-210fc3731e7d2299.js → chunk-f22ac1ec6c3f782b.js} +1 -1
- package/dist/{chunk-1b3b7c2c9ae041ca.js → chunk-fe65548818651cb5.js} +1 -1
- package/dist/client/ClientRouterContext.d.ts.map +1 -1
- package/dist/client/HttpReload.d.ts.map +1 -1
- package/dist/client/index.js +19 -5
- package/dist/server/index.js +1 -1
- package/dist/storage/index.js +1 -1
- package/dist/vite/{index-D9QWnghl.mjs → index-BbySvAwL.mjs} +3 -3
- package/dist/vite/index.mjs +1 -1
- package/dist/vite/{typescript-DADBvwYC.mjs → typescript-CeZcXBr-.mjs} +1 -1
- package/package.json +1 -1
- package/dist/app/App.test.d.ts +0 -20
- package/dist/app/App.test.d.ts.map +0 -1
- package/dist/app/createComponentTree.test.d.ts +0 -2
- package/dist/app/createComponentTree.test.d.ts.map +0 -1
- package/dist/app/createFlatApiRoutes.test.d.ts +0 -2
- package/dist/app/createFlatApiRoutes.test.d.ts.map +0 -1
- package/dist/app/createFlatViewRoutes.test.d.ts +0 -2
- package/dist/app/createFlatViewRoutes.test.d.ts.map +0 -1
- package/dist/app/createRouteManifest.test.d.ts +0 -2
- package/dist/app/createRouteManifest.test.d.ts.map +0 -1
- package/dist/chunk-00234eac874c2722.js +0 -2
- package/dist/chunk-00cb9f80352454dd.js +0 -1
- package/dist/chunk-00e9dad0734d9761.js +0 -2
- package/dist/chunk-00ecc27f03e2e84a.js +0 -2
- package/dist/chunk-00f16704831dd8b0.js +0 -2
- package/dist/chunk-01052ff9d1c07ef8.js +0 -2
- package/dist/chunk-0113570164c56f57.js +0 -2
- package/dist/chunk-0130e95410edb036.js +0 -18
- package/dist/chunk-01e07763e3e32710.js +0 -2
- package/dist/chunk-01e1579811beb424.js +0 -2
- package/dist/chunk-01ffccc19e8ef862.js +0 -3
- package/dist/chunk-02118fc60206588d.js +0 -2
- package/dist/chunk-0306d8fccec5104e.js +0 -2
- package/dist/chunk-030b4fb955329860.js +0 -16
- package/dist/chunk-03227f4a68e038f4.js +0 -2
- package/dist/chunk-03a72299591d45a7.js +0 -18
- package/dist/chunk-03c8e645c994d40a.js +0 -2
- package/dist/chunk-04aa62521338e3ab.js +0 -18
- package/dist/chunk-04d6b88ed6d3f076.js +0 -6
- package/dist/chunk-0557700bf68e85d4.js +0 -18
- package/dist/chunk-05fa767ab29abb0f.js +0 -2
- package/dist/chunk-061d95b15c00e38b.js +0 -9
- package/dist/chunk-069fcad61c8841dc.js +0 -1
- package/dist/chunk-06b83143607ebdc8.js +0 -6
- package/dist/chunk-06eebef7eb056baa.js +0 -2
- package/dist/chunk-073f5b81e98d91fe.js +0 -3
- package/dist/chunk-08539d08fa7362f7.js +0 -2
- package/dist/chunk-088b47e135832170.js +0 -1
- package/dist/chunk-088ed28ebed2b009.js +0 -5
- package/dist/chunk-08e9ab1091d7383e.js +0 -3
- package/dist/chunk-0909c7f6b64b8806.js +0 -2
- package/dist/chunk-095848ccb81718bf.js +0 -2
- package/dist/chunk-09dd89e1046786a5.js +0 -2
- package/dist/chunk-0a6614fbd65524af.js +0 -2
- package/dist/chunk-0a9ae42aae6f406e.js +0 -2
- package/dist/chunk-0b1b4e4e251ffe01.js +0 -2
- package/dist/chunk-0b46ec66d2c3d5f3.js +0 -2
- package/dist/chunk-0b5fb4e0c7de8316.js +0 -2
- package/dist/chunk-0b7a7410fce0b12e.js +0 -9
- package/dist/chunk-0b8dc3d1ff94a0fa.js +0 -6
- package/dist/chunk-0b99ba34351bde91.js +0 -3
- package/dist/chunk-0d0f764773c0f6b8.js +0 -2
- package/dist/chunk-0d8ab901365b9696.js +0 -2
- package/dist/chunk-0db33ac43bd1d504.js +0 -2
- package/dist/chunk-0de36a7e51fbd11b.js +0 -9
- package/dist/chunk-0e125593337a68aa.js +0 -18
- package/dist/chunk-0e3473f7e43f4876.js +0 -2
- package/dist/chunk-0e99fe5c976c8ea2.js +0 -6
- package/dist/chunk-0f8e80862546cbc5.js +0 -18
- package/dist/chunk-0ffc38ed09847e35.js +0 -2
- package/dist/chunk-1062b3156a49fabc.js +0 -2
- package/dist/chunk-1084614a350762fb.js +0 -2
- package/dist/chunk-10a623a23a65bb20.js +0 -18
- package/dist/chunk-1109657ed53fbdc9.js +0 -2
- package/dist/chunk-11323d7a5d9219ce.js +0 -2
- package/dist/chunk-1171d9afbbfe827b.js +0 -2
- package/dist/chunk-119ffcaf1c463b8d.js +0 -6
- package/dist/chunk-11a75566ff74db17.js +0 -6
- package/dist/chunk-11d1336f6de61f45.js +0 -16
- package/dist/chunk-11fb7f7f30378785.js +0 -2
- package/dist/chunk-12b4f44a2beae19b.js +0 -2
- package/dist/chunk-12ca7224eb6ccf72.js +0 -9
- package/dist/chunk-132c71db605759c9.js +0 -2
- package/dist/chunk-1334ee957ff9058c.js +0 -2
- package/dist/chunk-136896e8038083a1.js +0 -2
- package/dist/chunk-13801a8f811f0461.js +0 -2
- package/dist/chunk-13e45ce3460f6375.js +0 -2
- package/dist/chunk-14d5491e97673c7d.js +0 -2
- package/dist/chunk-14e60554a2e78f4a.js +0 -2
- package/dist/chunk-159f5b922269aef1.js +0 -2
- package/dist/chunk-15e9771e524c5726.js +0 -2
- package/dist/chunk-16a63b2fee0ce9e2.js +0 -2
- package/dist/chunk-16dbe3a15379140b.js +0 -2
- package/dist/chunk-176e5ded5ed33d4d.js +0 -2
- package/dist/chunk-1838696dc4e7a115.js +0 -2
- package/dist/chunk-1874b66d572fb0db.js +0 -6
- package/dist/chunk-1875b98b6a064557.js +0 -2
- package/dist/chunk-187a09f46e2b36e5.js +0 -2
- package/dist/chunk-18c32b54097c580e.js +0 -2
- package/dist/chunk-18d87123ae525263.js +0 -2
- package/dist/chunk-1900e90c372bb1d6.js +0 -2
- package/dist/chunk-1976eef63d2e56d5.js +0 -18
- package/dist/chunk-197fca66ec324ed9.js +0 -2
- package/dist/chunk-1ad1795e55abfdb5.js +0 -2
- package/dist/chunk-1b0afbf1baeeaa37.js +0 -2
- package/dist/chunk-1b71d04a15bfa432.js +0 -2
- package/dist/chunk-1b8acf308a3dc9ec.js +0 -1
- package/dist/chunk-1c439804a4c5f8e7.js +0 -18
- package/dist/chunk-1cc0d1072ee4a92b.js +0 -2
- package/dist/chunk-1d6e287ca9c14fef.js +0 -9
- package/dist/chunk-1efe790f8b4ad86d.js +0 -2
- package/dist/chunk-1fab30ab853c48cc.js +0 -2
- package/dist/chunk-2081b862587086df.js +0 -2
- package/dist/chunk-216cc6dcf17534ba.js +0 -2
- package/dist/chunk-21b1f7ac5f75cd26.js +0 -2
- package/dist/chunk-21e105fb2b3d36d7.js +0 -799
- package/dist/chunk-21fe96d1a3bb5a27.js +0 -2
- package/dist/chunk-223b0aac9e62386a.js +0 -2
- package/dist/chunk-226243dd851d2050.js +0 -2
- package/dist/chunk-22773aec8cc230c6.js +0 -6
- package/dist/chunk-2279c382943fca51.js +0 -2
- package/dist/chunk-22ec1973752a5488.js +0 -2
- package/dist/chunk-2335866508ec8b1b.js +0 -2
- package/dist/chunk-23c287376e277e1d.js +0 -6
- package/dist/chunk-241584e48397dda8.js +0 -2
- package/dist/chunk-24e01cba9fc81ed1.js +0 -2
- package/dist/chunk-25dd80c6d9144f89.js +0 -2
- package/dist/chunk-2665dffd37ead1d9.js +0 -2
- package/dist/chunk-2672477bf396bad8.js +0 -2
- package/dist/chunk-269dd2cd89aa1c32.js +0 -2
- package/dist/chunk-26a5c9db5d17f5e7.js +0 -3
- package/dist/chunk-26d58ddc3a89234f.js +0 -2
- package/dist/chunk-27484e5ca3244aea.js +0 -6
- package/dist/chunk-281226b6c79ebf8b.js +0 -2
- package/dist/chunk-285299d784985340.js +0 -3
- package/dist/chunk-28bb1e70f39736ee.js +0 -2
- package/dist/chunk-28e02c9b9c46a167.js +0 -2
- package/dist/chunk-293d8be91a9ad4f9.js +0 -2
- package/dist/chunk-29a0dbe3c8eb87d4.js +0 -6
- package/dist/chunk-29bc27c5e126c304.js +0 -18
- package/dist/chunk-29c46abebbc0f09b.js +0 -2
- package/dist/chunk-2a0d1475ac05027d.js +0 -2
- package/dist/chunk-2a0e8565f874d787.js +0 -18
- package/dist/chunk-2a101fb25d52469b.js +0 -2
- package/dist/chunk-2a328e3beda74e4f.js +0 -2
- package/dist/chunk-2a48e0098ccd4249.js +0 -2
- package/dist/chunk-2a5b4dfab2e26e21.js +0 -1
- package/dist/chunk-2b2764983015552e.js +0 -2
- package/dist/chunk-2b3eabd01b2ae3f8.js +0 -2
- package/dist/chunk-2bfbc777c6995d9a.js +0 -18
- package/dist/chunk-2cf271e24c26b0ee.js +0 -2
- package/dist/chunk-2db6c9bb69bb27aa.js +0 -1
- package/dist/chunk-2e34b856e195c353.js +0 -2
- package/dist/chunk-2e447b50094b2862.js +0 -2
- package/dist/chunk-2ec287222364c6b6.js +0 -2
- package/dist/chunk-2ecc077efab285b4.js +0 -2
- package/dist/chunk-2f6867d08b95f2d2.js +0 -2
- package/dist/chunk-2f7091b9e4f728c7.js +0 -2
- package/dist/chunk-2f7aac67f16768a5.js +0 -1
- package/dist/chunk-3042abeb18cf180e.js +0 -2
- package/dist/chunk-30622b4547786346.js +0 -2
- package/dist/chunk-30f854fb2ba73268.js +0 -2
- package/dist/chunk-322e991c2b56a79d.js +0 -2
- package/dist/chunk-3258ba57992f25bb.js +0 -6
- package/dist/chunk-328c98321c6ba3d6.js +0 -2
- package/dist/chunk-32af3a3a1c95157f.js +0 -2
- package/dist/chunk-32f06f9ad00aaabd.js +0 -2
- package/dist/chunk-32f3d5e11b4bc87d.js +0 -2
- package/dist/chunk-339dd63e93f196b7.js +0 -16
- package/dist/chunk-345f66382cf35683.js +0 -2
- package/dist/chunk-34786cd9bc9be20b.js +0 -18
- package/dist/chunk-3567e8e424a60c99.js +0 -18
- package/dist/chunk-35ab4be8ca6c67ee.js +0 -2
- package/dist/chunk-361f806684fe532e.js +0 -6
- package/dist/chunk-36ab979dae2a2094.js +0 -2
- package/dist/chunk-36b8e37ca93fcc67.js +0 -2
- package/dist/chunk-370389a68668658a.js +0 -2
- package/dist/chunk-3728fa21e6931333.js +0 -2
- package/dist/chunk-378a050132886d17.js +0 -2
- package/dist/chunk-38237d1b01b0db25.js +0 -3
- package/dist/chunk-382a513747a9aa52.js +0 -6
- package/dist/chunk-38fc9d258dbe62fd.js +0 -18
- package/dist/chunk-3a3092db69408490.js +0 -2
- package/dist/chunk-3a9fcddbd219223b.js +0 -3
- package/dist/chunk-3ab807ceccde81f3.js +0 -3
- package/dist/chunk-3abb49bba3da7231.js +0 -1
- package/dist/chunk-3aecba8553e036bf.js +0 -6
- package/dist/chunk-3afa6cad1106f55a.js +0 -2
- package/dist/chunk-3b235fc8816ff5e6.js +0 -2
- package/dist/chunk-3b6df70b3d01d442.js +0 -3
- package/dist/chunk-3bd48fb5397a155b.js +0 -5
- package/dist/chunk-3bedef94ef8dba4a.js +0 -2
- package/dist/chunk-3bf6f8c8e8589e3d.js +0 -2
- package/dist/chunk-3c83d6762f7e56b3.js +0 -2
- package/dist/chunk-3cbc1c9cdc091b43.js +0 -2
- package/dist/chunk-3d7556bb2f665f61.js +0 -2
- package/dist/chunk-3dbf073642b377eb.js +0 -1
- package/dist/chunk-3e3078cae755e834.js +0 -2
- package/dist/chunk-3f1eaa4b49aa9a15.js +0 -3
- package/dist/chunk-40111275eef9f7b3.js +0 -6
- package/dist/chunk-408fb31b8b0f97ee.js +0 -2
- package/dist/chunk-40942fb138dcd780.js +0 -9
- package/dist/chunk-40c21fe243675250.js +0 -2
- package/dist/chunk-40f4bfe67d75f2ec.js +0 -6
- package/dist/chunk-412ad792487747bc.js +0 -2
- package/dist/chunk-415d564ff61a8fe6.js +0 -2
- package/dist/chunk-42097f79deccd5b7.js +0 -2
- package/dist/chunk-4272071146eb5eb2.js +0 -1
- package/dist/chunk-42aa6e3d42149620.js +0 -2
- package/dist/chunk-432bbd1d38ff3b52.js +0 -2
- package/dist/chunk-437335670ad9059d.js +0 -2
- package/dist/chunk-442a5b1ec74c72f8.js +0 -2
- package/dist/chunk-4432f8d8567e682b.js +0 -9
- package/dist/chunk-4548da0edd8c39ed.js +0 -2
- package/dist/chunk-45badde289996d82.js +0 -9
- package/dist/chunk-464cce477d8a56e0.js +0 -2
- package/dist/chunk-46528bdbb2218772.js +0 -2
- package/dist/chunk-477a4d3115b9703e.js +0 -2
- package/dist/chunk-47c4cec992af0689.js +0 -2
- package/dist/chunk-487b7c0cb388d533.js +0 -6
- package/dist/chunk-488b4db0c522d44a.js +0 -1
- package/dist/chunk-489125d86cd75e69.js +0 -9
- package/dist/chunk-4960e27e19bbe42a.js +0 -2
- package/dist/chunk-4b201cccdf6d290f.js +0 -2
- package/dist/chunk-4b4ea80149bba4e6.js +0 -2
- package/dist/chunk-4bbeb47cc6137c49.js +0 -2
- package/dist/chunk-4cb19a9e82653084.js +0 -2
- package/dist/chunk-4cb5f3feff1a81c5.js +0 -2
- package/dist/chunk-4cc2463d985f6882.js +0 -9
- package/dist/chunk-4d19e16340534ed0.js +0 -2
- package/dist/chunk-4d46e390f99b97e0.js +0 -2
- package/dist/chunk-4d80485e7efb826f.js +0 -2
- package/dist/chunk-4e023976eb557258.js +0 -2
- package/dist/chunk-4e5485d3cfe9dc4e.js +0 -2
- package/dist/chunk-4e9167391dd0d15f.js +0 -2
- package/dist/chunk-4e9d5acfa5541d1b.js +0 -2
- package/dist/chunk-4eeee2f82b1fa8bb.js +0 -2
- package/dist/chunk-4f01c5a98726e704.js +0 -2
- package/dist/chunk-4f1b43f5232b3e65.js +0 -6
- package/dist/chunk-4f5b07a6a6fd5cc6.js +0 -2
- package/dist/chunk-4ffecff075e73d43.js +0 -2
- package/dist/chunk-50b440397d41ab5a.js +0 -2
- package/dist/chunk-50ea27a13eb62b5e.js +0 -2
- package/dist/chunk-5128de1a65ba6ce1.js +0 -2
- package/dist/chunk-514f8554fb446139.js +0 -9
- package/dist/chunk-515c26d532207095.js +0 -2
- package/dist/chunk-516c6b67d6e3d041.js +0 -18
- package/dist/chunk-5190b38f06507ee1.js +0 -18
- package/dist/chunk-51bad63147c3be4e.js +0 -6
- package/dist/chunk-51c21d2a3c45fbe1.js +0 -2
- package/dist/chunk-51e930ef29de215b.js +0 -1
- package/dist/chunk-51ee928673a12486.js +0 -2
- package/dist/chunk-521750cca5e03c65.js +0 -2
- package/dist/chunk-5290ecaf429d5a61.js +0 -2
- package/dist/chunk-52e76204b898931e.js +0 -18
- package/dist/chunk-53b7d6267c9172bc.js +0 -2
- package/dist/chunk-53c39aca36ece018.js +0 -2
- package/dist/chunk-543013123141745c.js +0 -2
- package/dist/chunk-54c03438ff1f41e5.js +0 -2
- package/dist/chunk-552bdaee8c03e091.js +0 -9
- package/dist/chunk-55f76d4f6116f296.js +0 -9
- package/dist/chunk-5656abf3151c8fa2.js +0 -2
- package/dist/chunk-56f6f8c2162dcf1c.js +0 -2
- package/dist/chunk-57a61e580c4adf80.js +0 -2
- package/dist/chunk-581e0d46235dbf7c.js +0 -2
- package/dist/chunk-584e33c96b1a78e4.js +0 -2
- package/dist/chunk-5852c4da08af607f.js +0 -2
- package/dist/chunk-589f4b330dd6d32e.js +0 -2
- package/dist/chunk-590bd43a75f48606.js +0 -18
- package/dist/chunk-590cd512f9e72880.js +0 -18
- package/dist/chunk-596024c880387c2f.js +0 -2
- package/dist/chunk-597d5c6772b14a85.js +0 -9
- package/dist/chunk-59980167a4c574b3.js +0 -2
- package/dist/chunk-59da8b8ab8add738.js +0 -16
- package/dist/chunk-59e951812cb019e6.js +0 -2
- package/dist/chunk-59fe590e19085858.js +0 -18
- package/dist/chunk-5a2d89fce13094a9.js +0 -2
- package/dist/chunk-5a66922d5981afc8.js +0 -18
- package/dist/chunk-5a75eae6c32c2ba3.js +0 -2
- package/dist/chunk-5a9fa677066f72ac.js +0 -2
- package/dist/chunk-5b54843712abde58.js +0 -2
- package/dist/chunk-5b836c769c5dad2a.js +0 -2
- package/dist/chunk-5c2a5156f6bef0f5.js +0 -2
- package/dist/chunk-5c3681fb029d7588.js +0 -1
- package/dist/chunk-5cd0a98345a5d57a.js +0 -2
- package/dist/chunk-5d3431e9686096af.js +0 -18
- package/dist/chunk-5d51afe60efaf99e.js +0 -2
- package/dist/chunk-5d86d49d66db1c22.js +0 -2
- package/dist/chunk-5defd55c3c97bdb2.js +0 -2
- package/dist/chunk-5e13846c554dc272.js +0 -2
- package/dist/chunk-5fb9d31b7b4629e9.js +0 -1
- package/dist/chunk-5fbde192153a2a50.js +0 -2
- package/dist/chunk-5fd67245740e3908.js +0 -9
- package/dist/chunk-6003411eae26f246.js +0 -3
- package/dist/chunk-60d70dcbf4e79276.js +0 -2
- package/dist/chunk-60f3b8242209ac3e.js +0 -18
- package/dist/chunk-61973614facb50a8.js +0 -2
- package/dist/chunk-61abf77c3eee8698.js +0 -2
- package/dist/chunk-61fc22887a7be6f9.js +0 -3
- package/dist/chunk-62144f9c5008bd47.js +0 -1
- package/dist/chunk-625025af819f55f5.js +0 -2
- package/dist/chunk-6259cd13f53334df.js +0 -2
- package/dist/chunk-62b2777c629d5157.js +0 -2
- package/dist/chunk-62c0f9a87ad8a46b.js +0 -2
- package/dist/chunk-634c80cac76d9080.js +0 -18
- package/dist/chunk-63ad0436d3d896b5.js +0 -3
- package/dist/chunk-63c5605bcce508ea.js +0 -1
- package/dist/chunk-640e4bdae1671873.js +0 -1
- package/dist/chunk-648dff766091372e.js +0 -2
- package/dist/chunk-64a5b833cef67725.js +0 -2
- package/dist/chunk-64c89cee4d4bd9a9.js +0 -2
- package/dist/chunk-65626c3d72d4e071.js +0 -2
- package/dist/chunk-65c413665a7cf876.js +0 -2
- package/dist/chunk-6605e290c4de1f0e.js +0 -6
- package/dist/chunk-66ab377654806d08.js +0 -2
- package/dist/chunk-670d2c924e80cb33.js +0 -3
- package/dist/chunk-67351e678a7ccc10.js +0 -2
- package/dist/chunk-6766e66417809e1a.js +0 -2
- package/dist/chunk-6821bb0ff6ed2452.js +0 -18
- package/dist/chunk-682b01231754a121.js +0 -2
- package/dist/chunk-68af0a6f6be163ce.js +0 -2
- package/dist/chunk-6921ba2fa2e1adea.js +0 -2
- package/dist/chunk-6943b50bd0a3ac84.js +0 -1
- package/dist/chunk-699957e6eb705a81.js +0 -2
- package/dist/chunk-69ff5047661fe699.js +0 -2
- package/dist/chunk-6a28d299b5726bba.js +0 -2
- package/dist/chunk-6ac91c66919b5ddd.js +0 -2
- package/dist/chunk-6afe097e13ebdf55.js +0 -2
- package/dist/chunk-6c345dba15e1c3f2.js +0 -2
- package/dist/chunk-6c461d293fa213f1.js +0 -2
- package/dist/chunk-6caabea5fcbc9cf7.js +0 -2
- package/dist/chunk-6d04c1ccb3ca8c74.js +0 -1
- package/dist/chunk-6e06660ab4e9d4da.js +0 -6
- package/dist/chunk-6e415d0e12fc9539.js +0 -1
- package/dist/chunk-6f78f2a54491595d.js +0 -2
- package/dist/chunk-700835a3a709b370.js +0 -2
- package/dist/chunk-70bb003c03f21dad.js +0 -2
- package/dist/chunk-711f86b9d50d45fe.js +0 -18
- package/dist/chunk-71820a3186a38543.js +0 -6
- package/dist/chunk-7195a8718fcd8215.js +0 -1
- package/dist/chunk-722f2aeae58daaa3.js +0 -18
- package/dist/chunk-72821f055108528e.js +0 -2
- package/dist/chunk-72add10919c9d7ae.js +0 -2
- package/dist/chunk-731f30522682483a.js +0 -2
- package/dist/chunk-733513f9c9e8b50f.js +0 -2
- package/dist/chunk-733688c7851fffd1.js +0 -2
- package/dist/chunk-7336bd3f3b799e3e.js +0 -1
- package/dist/chunk-7399f06d840a1449.js +0 -2
- package/dist/chunk-73c97da8ac4f1d30.js +0 -1
- package/dist/chunk-73c9d39f58a30fe2.js +0 -6
- package/dist/chunk-73eed146ee78f681.js +0 -1
- package/dist/chunk-73fb3bb4d001bb2e.js +0 -1
- package/dist/chunk-7431d60af8814bc8.js +0 -2
- package/dist/chunk-74802f454b9972eb.js +0 -2
- package/dist/chunk-74ab9c225bfe0eaa.js +0 -2
- package/dist/chunk-74db07ba7b97d1c1.js +0 -2
- package/dist/chunk-76a525af0575486d.js +0 -5
- package/dist/chunk-76db0552d2492ee7.js +0 -3
- package/dist/chunk-774337ca540a856d.js +0 -2
- package/dist/chunk-77c89e3c8a03f91e.js +0 -2
- package/dist/chunk-77d1b26236f5feec.js +0 -2
- package/dist/chunk-77d5bbc7a9117c21.js +0 -2
- package/dist/chunk-782dde0748025b5a.js +0 -2
- package/dist/chunk-78534576cf359780.js +0 -2
- package/dist/chunk-7898dd7609f163e8.js +0 -2
- package/dist/chunk-78ab7bcbe6104c5f.js +0 -2
- package/dist/chunk-78d6df0054754d5d.js +0 -2
- package/dist/chunk-795a1bd1d89efce1.js +0 -2
- package/dist/chunk-797430f55303e6b5.js +0 -2
- package/dist/chunk-7975e27df461cbfb.js +0 -6
- package/dist/chunk-798f550643937b6d.js +0 -2
- package/dist/chunk-79b438007611560a.js +0 -2
- package/dist/chunk-79f7d7d90c4fb51a.js +0 -2
- package/dist/chunk-7a318e738fec6c2b.js +0 -3
- package/dist/chunk-7aa7f7e219919c4d.js +0 -2
- package/dist/chunk-7abc696047809312.js +0 -6
- package/dist/chunk-7afdc0ba5afe109a.js +0 -21
- package/dist/chunk-7b3bbc8a88aee78c.js +0 -1
- package/dist/chunk-7b8e777f7353b492.js +0 -2
- package/dist/chunk-7c0fd956d14fc327.js +0 -2
- package/dist/chunk-7c62e9d6edc4b418.js +0 -2
- package/dist/chunk-7c670baec90faacb.js +0 -2
- package/dist/chunk-7d7b2c1f2a8dd018.js +0 -6
- package/dist/chunk-7de7f34d46c76019.js +0 -18
- package/dist/chunk-7dfb17814922ade0.js +0 -2
- package/dist/chunk-7e9d5eea3aa359ad.js +0 -2
- package/dist/chunk-7ea1baca4032004f.js +0 -2
- package/dist/chunk-7eb54149dff25532.js +0 -2
- package/dist/chunk-7ec30fbbbdf89272.js +0 -2
- package/dist/chunk-7fadaab2fa180ca9.js +0 -6
- package/dist/chunk-7fef11f59982b1f6.js +0 -2
- package/dist/chunk-7ffe2ce59a054e35.js +0 -2
- package/dist/chunk-80b17f9853d76e98.js +0 -2
- package/dist/chunk-8133ed564834cff3.js +0 -2
- package/dist/chunk-8163d4f4c2c91caf.js +0 -2
- package/dist/chunk-817aad76d1e8eecc.js +0 -6
- package/dist/chunk-81938d68b172446d.js +0 -2
- package/dist/chunk-81a00ae1b3ea4824.js +0 -2
- package/dist/chunk-81ce9b491b290639.js +0 -1
- package/dist/chunk-81f5123a24c19089.js +0 -2
- package/dist/chunk-827d2c67c03d1a52.js +0 -2
- package/dist/chunk-8295e42bcfc910ff.js +0 -16
- package/dist/chunk-82f72dfc6e27be04.js +0 -1
- package/dist/chunk-8401f0f53dc26633.js +0 -1
- package/dist/chunk-8450a38607a86896.js +0 -2
- package/dist/chunk-847629c9a7550cc3.js +0 -2
- package/dist/chunk-84b129a5185ac24d.js +0 -2
- package/dist/chunk-84c7f86a97d17f53.js +0 -2
- package/dist/chunk-84f1b068dc7fc8b7.js +0 -2
- package/dist/chunk-8581aa9e876d46fb.js +0 -2
- package/dist/chunk-85a1f8fb96fd9473.js +0 -2
- package/dist/chunk-85d5e5d7ff832255.js +0 -2
- package/dist/chunk-860f5fcef7074193.js +0 -9
- package/dist/chunk-869d80d2e475b938.js +0 -3
- package/dist/chunk-880273a32da461fd.js +0 -9
- package/dist/chunk-88103b9d011960db.js +0 -5
- package/dist/chunk-89187bbdf6945131.js +0 -2
- package/dist/chunk-89291b5eb2bbd0b4.js +0 -2
- package/dist/chunk-895d9b1ef7a65211.js +0 -2
- package/dist/chunk-897773d66a89947a.js +0 -2
- package/dist/chunk-89c6080d4a693ddf.js +0 -2
- package/dist/chunk-8a993922ea970923.js +0 -2
- package/dist/chunk-8aa3e0e20e411d11.js +0 -2
- package/dist/chunk-8af626a703659719.js +0 -18
- package/dist/chunk-8b3d411f441a43ce.js +0 -2
- package/dist/chunk-8b40d6a498f8bf81.js +0 -2
- package/dist/chunk-8b944ecefa1b832c.js +0 -18
- package/dist/chunk-8bb91c504b9ca45e.js +0 -2
- package/dist/chunk-8bf925705fdcef0c.js +0 -2
- package/dist/chunk-8c2b349a7198788f.js +0 -6
- package/dist/chunk-8c3e0f5d4a0d6e53.js +0 -2
- package/dist/chunk-8c8c8fd3646b76a1.js +0 -2
- package/dist/chunk-8caa0abe673f5d41.js +0 -2
- package/dist/chunk-8d8666b73758171e.js +0 -2
- package/dist/chunk-8e72aa06d4e47eca.js +0 -2
- package/dist/chunk-8ef8222b34d8f63f.js +0 -2
- package/dist/chunk-8f24cd33e07d02f3.js +0 -2
- package/dist/chunk-8f547b919361fdf4.js +0 -2
- package/dist/chunk-8f986f307ff91bd3.js +0 -2
- package/dist/chunk-901e700a2c2d43f3.js +0 -18
- package/dist/chunk-90c5196ff1f827a8.js +0 -2
- package/dist/chunk-9113f22a5215c639.js +0 -3
- package/dist/chunk-915c050c94553981.js +0 -2
- package/dist/chunk-9238196d4889d660.js +0 -1
- package/dist/chunk-92a55add20b5d7ac.js +0 -9
- package/dist/chunk-92f6095a3be7f459.js +0 -1
- package/dist/chunk-9326224d1e4c1a64.js +0 -2
- package/dist/chunk-933845e73519b4c5.js +0 -2
- package/dist/chunk-934ebff128f86ef1.js +0 -1
- package/dist/chunk-9350baa090b5a424.js +0 -2
- package/dist/chunk-938fed005335132e.js +0 -9
- package/dist/chunk-93b6f53456c1251b.js +0 -2
- package/dist/chunk-94578320d28e33ad.js +0 -2
- package/dist/chunk-9501e589e3e86a96.js +0 -2
- package/dist/chunk-955e2bfcdb7a7e71.js +0 -2
- package/dist/chunk-96b635a3bdba7415.js +0 -2
- package/dist/chunk-970e033f764e29fc.js +0 -19
- package/dist/chunk-98126e4b5bd19831.js +0 -2
- package/dist/chunk-9938e9a4fe25dda5.js +0 -2
- package/dist/chunk-99ba9dfd7c11383b.js +0 -18
- package/dist/chunk-9a622a10e7764b23.js +0 -2
- package/dist/chunk-9b5649697d59dfb4.js +0 -2
- package/dist/chunk-9bd00e182ac2f8a6.js +0 -6
- package/dist/chunk-9bd90ecd4ddde546.js +0 -18
- package/dist/chunk-9c3b4dd1591053c5.js +0 -18
- package/dist/chunk-9c4a4b4bd266869d.js +0 -2
- package/dist/chunk-9d069ba29a122630.js +0 -1
- package/dist/chunk-9d1337fc9976354d.js +0 -2
- package/dist/chunk-9d2777df26b445e4.js +0 -2
- package/dist/chunk-9d2af1a704b857ee.js +0 -2
- package/dist/chunk-9d6cc631cdabbe35.js +0 -9
- package/dist/chunk-9d714f87e4e3e250.js +0 -18
- package/dist/chunk-9ee2118bd4eb34ae.js +0 -9
- package/dist/chunk-9f6199bc705fc395.js +0 -18
- package/dist/chunk-a0003b7feea6fae6.js +0 -2
- package/dist/chunk-a004fce37a0f5a65.js +0 -2
- package/dist/chunk-a02b2d564bdb603d.js +0 -6
- package/dist/chunk-a095821ffc039b99.js +0 -18
- package/dist/chunk-a10ae1a06a28aaab.js +0 -2
- package/dist/chunk-a13ab30c392c3563.js +0 -9
- package/dist/chunk-a14516ac5e6f78aa.js +0 -1
- package/dist/chunk-a14b8af8b2a8d0b0.js +0 -2
- package/dist/chunk-a210ec2b987fa5f7.js +0 -2
- package/dist/chunk-a2fcc46e344ae7ae.js +0 -2
- package/dist/chunk-a3526e321ac9d173.js +0 -1
- package/dist/chunk-a3f85d0d3261ae44.js +0 -9
- package/dist/chunk-a4862acc0c3fed7d.js +0 -6
- package/dist/chunk-a50b9cd348c3e882.js +0 -9
- package/dist/chunk-a57ecc74c0fb9045.js +0 -2
- package/dist/chunk-a5c18c07abe8fd9c.js +0 -2
- package/dist/chunk-a63e13c410e92923.js +0 -2
- package/dist/chunk-a693f8ec2e8af8ca.js +0 -2
- package/dist/chunk-a719a1f305964521.js +0 -2
- package/dist/chunk-a7a144f5e4772c35.js +0 -2
- package/dist/chunk-a7f3e9d5b7cf7c42.js +0 -2
- package/dist/chunk-a816613f5321b9db.js +0 -1
- package/dist/chunk-a8310ad9bad32329.js +0 -2
- package/dist/chunk-a885dc5561caa8e0.js +0 -3
- package/dist/chunk-a88c3919c74b7877.js +0 -18
- package/dist/chunk-a9625dd807cb668e.js +0 -2
- package/dist/chunk-a991fdce275f1256.js +0 -2
- package/dist/chunk-aa1b1fb08828cb24.js +0 -2
- package/dist/chunk-aad7af5112f0f4f2.js +0 -2
- package/dist/chunk-aaf5855c5199efe9.js +0 -2
- package/dist/chunk-aaf70ff16705d558.js +0 -2
- package/dist/chunk-aafdd9bfb5bde8bf.js +0 -2
- package/dist/chunk-ab0c3f72f95cb4f4.js +0 -3
- package/dist/chunk-ab79a2f0d89fbeae.js +0 -1
- package/dist/chunk-ab7b6ceb26aca9b1.js +0 -3
- package/dist/chunk-abb2f588bd34adff.js +0 -2
- package/dist/chunk-abd0b68c299eebfc.js +0 -2
- package/dist/chunk-ac32b3d9dda47756.js +0 -9
- package/dist/chunk-acd4530b2ff92aff.js +0 -18
- package/dist/chunk-ad656a60ce7912bb.js +0 -2
- package/dist/chunk-ad8e7de66d8bf8c5.js +0 -2
- package/dist/chunk-adb4e1e222eb1d20.js +0 -2
- package/dist/chunk-ae373c8ae2d526ae.js +0 -18
- package/dist/chunk-ae50ef54d7de9179.js +0 -2
- package/dist/chunk-ae7b1bdf00266d88.js +0 -2
- package/dist/chunk-aef3f1c1429e6058.js +0 -2
- package/dist/chunk-af6b79a6ce7388ee.js +0 -18
- package/dist/chunk-afbf69daa7589a52.js +0 -2
- package/dist/chunk-b009482e01114059.js +0 -3
- package/dist/chunk-b031077f0a783b82.js +0 -2
- package/dist/chunk-b05cb7ef4546980d.js +0 -2
- package/dist/chunk-b05e4833f4bb2f8f.js +0 -9
- package/dist/chunk-b06168e5d3080486.js +0 -1
- package/dist/chunk-b07249c949a284d2.js +0 -16
- package/dist/chunk-b0cc82fa84d5362d.js +0 -2
- package/dist/chunk-b0f453845cad4e6e.js +0 -2
- package/dist/chunk-b13cfa16a8a18324.js +0 -3
- package/dist/chunk-b1918e88103a8501.js +0 -2
- package/dist/chunk-b2bc43f60314d1a9.js +0 -2
- package/dist/chunk-b2d07c19a78dc397.js +0 -2
- package/dist/chunk-b3bfe533d66f6a17.js +0 -2
- package/dist/chunk-b3e27ec4b56a20ac.js +0 -2
- package/dist/chunk-b558c43783464f1b.js +0 -2
- package/dist/chunk-b5d6eb761760b2a7.js +0 -6
- package/dist/chunk-b66a9e50afbac035.js +0 -9
- package/dist/chunk-b7b365f7e6038104.js +0 -2
- package/dist/chunk-b7c4dc1136fcaeb7.js +0 -2
- package/dist/chunk-b7da6c96acf0478f.js +0 -18
- package/dist/chunk-b7f9e29074a9f36a.js +0 -2
- package/dist/chunk-b80a86610158cbfd.js +0 -1
- package/dist/chunk-b855e71b162ce5a2.js +0 -2
- package/dist/chunk-b8d3d76e1dd9affe.js +0 -2
- package/dist/chunk-b97189ea9588db36.js +0 -9
- package/dist/chunk-b9cba2a8bd5bcd3e.js +0 -2
- package/dist/chunk-b9e4546aaa58319c.js +0 -2
- package/dist/chunk-b9f4c1fce7152fc8.js +0 -9
- package/dist/chunk-ba051a98cd651063.js +0 -1
- package/dist/chunk-bb72c8820407f3a6.js +0 -2
- package/dist/chunk-bbd36ce62b950ee5.js +0 -2
- package/dist/chunk-bbdd098f2a2cd820.js +0 -18
- package/dist/chunk-bcd70a6fc2fd359c.js +0 -1
- package/dist/chunk-bd2888a454e50cfd.js +0 -1
- package/dist/chunk-bd52b3f25b928eb1.js +0 -2
- package/dist/chunk-bdc34785363e3f34.js +0 -2
- package/dist/chunk-bdf4f2b1862899bb.js +0 -2
- package/dist/chunk-be095501304df604.js +0 -9
- package/dist/chunk-beca91bf7cc216cd.js +0 -2
- package/dist/chunk-bee6075c5738d87a.js +0 -2
- package/dist/chunk-bf14cc3e71fcd2d8.js +0 -2
- package/dist/chunk-bf4fa1d9864332a8.js +0 -2
- package/dist/chunk-bf92f3127474b56a.js +0 -3
- package/dist/chunk-bfccfb070c1630e9.js +0 -2
- package/dist/chunk-bffb8d677e1424a9.js +0 -6
- package/dist/chunk-c041f058dc3d571b.js +0 -1
- package/dist/chunk-c0bd8e19395d722b.js +0 -2
- package/dist/chunk-c124bf801cec12d9.js +0 -2
- package/dist/chunk-c153b192112b0d44.js +0 -2
- package/dist/chunk-c1813278ccdc04b8.js +0 -2
- package/dist/chunk-c210f6ae6276ebe8.js +0 -1
- package/dist/chunk-c29701ffef4ca07a.js +0 -2
- package/dist/chunk-c2d1f66cf8468e71.js +0 -1
- package/dist/chunk-c2fe378a1764eb92.js +0 -2
- package/dist/chunk-c3e4a396dc7a5fe7.js +0 -2
- package/dist/chunk-c3eaa877d3aab9db.js +0 -18
- package/dist/chunk-c45e1427f48008f0.js +0 -2
- package/dist/chunk-c4f342e09d9b2f23.js +0 -2
- package/dist/chunk-c50ff3cf3c78af79.js +0 -2
- package/dist/chunk-c609d06153ed09ce.js +0 -2
- package/dist/chunk-c62b5c4cec67029c.js +0 -1
- package/dist/chunk-c675395110f371b1.js +0 -6
- package/dist/chunk-c675f193d459818e.js +0 -2
- package/dist/chunk-c6846df9c8456b20.js +0 -3
- package/dist/chunk-c6d988f5928a4df1.js +0 -2
- package/dist/chunk-c72bfaa252a03f6f.js +0 -2
- package/dist/chunk-c7b024c7bd4cffc9.js +0 -3
- package/dist/chunk-c7e2acfd5087fb30.js +0 -2
- package/dist/chunk-c83b39b7178003da.js +0 -2
- package/dist/chunk-c85fc7168a708cb6.js +0 -3
- package/dist/chunk-c8631aa6bbb62e13.js +0 -2
- package/dist/chunk-c864ab57913d658f.js +0 -1
- package/dist/chunk-c882d0c175c22c17.js +0 -2
- package/dist/chunk-c8b00b645df96ed5.js +0 -2
- package/dist/chunk-c8f1115d77efc1c0.js +0 -2
- package/dist/chunk-c9707ae8f1d346ff.js +0 -3
- package/dist/chunk-c99b8c3d6bda27b0.js +0 -2
- package/dist/chunk-cb65fe402653c65e.js +0 -2
- package/dist/chunk-cb69e9621a60d310.js +0 -1
- package/dist/chunk-cca1f3ae7ec0dee1.js +0 -2
- package/dist/chunk-ccb551ce4fd177fe.js +0 -2
- package/dist/chunk-cce7de7e81895807.js +0 -2
- package/dist/chunk-ccfd101ce72e80bf.js +0 -1
- package/dist/chunk-cd1636884486d7b3.js +0 -1
- package/dist/chunk-cdfa2adeddc1a8e1.js +0 -2
- package/dist/chunk-ceb94e70091088e5.js +0 -2
- package/dist/chunk-cf3d1744ea801f48.js +0 -6
- package/dist/chunk-cf7dde2ab1be3a3c.js +0 -1
- package/dist/chunk-cf8b1c7a4e9fc32d.js +0 -18
- package/dist/chunk-cfa9a65fae5ddaf4.js +0 -2
- package/dist/chunk-d0757747d9cc2e47.js +0 -2
- package/dist/chunk-d0806df6defd9dce.js +0 -2
- package/dist/chunk-d12b578765686adb.js +0 -6
- package/dist/chunk-d16ef78d852a6856.js +0 -1
- package/dist/chunk-d22136d39cf8465f.js +0 -2
- package/dist/chunk-d26ffb7722e6df54.js +0 -1
- package/dist/chunk-d27588325ae2c0f3.js +0 -2
- package/dist/chunk-d2e057b6f3f9d500.js +0 -2
- package/dist/chunk-d3033805e98482dc.js +0 -6
- package/dist/chunk-d33a0e61ccf1bab5.js +0 -2
- package/dist/chunk-d3765f96a689a0c1.js +0 -2
- package/dist/chunk-d37757ffee07b05f.js +0 -6
- package/dist/chunk-d3b4a3c778c23705.js +0 -2
- package/dist/chunk-d3e039d010842a3f.js +0 -2
- package/dist/chunk-d43b3f444e738dd1.js +0 -1
- package/dist/chunk-d445af84de70bf7e.js +0 -2
- package/dist/chunk-d535b1e3078465f8.js +0 -2
- package/dist/chunk-d54843c1d8516c75.js +0 -2
- package/dist/chunk-d5709251a0493152.js +0 -6
- package/dist/chunk-d5ddfacbfc84a47d.js +0 -6
- package/dist/chunk-d665d3ee2a62d48b.js +0 -2
- package/dist/chunk-d7457cb6aae3b29b.js +0 -2
- package/dist/chunk-d850d83873a89e2b.js +0 -18
- package/dist/chunk-d93a6531661d56b5.js +0 -9
- package/dist/chunk-d93cbffc712a052f.js +0 -2
- package/dist/chunk-d950bbcb684a11ef.js +0 -2
- package/dist/chunk-d9577d79d4b718a6.js +0 -2
- package/dist/chunk-d9762bab5df03532.js +0 -2
- package/dist/chunk-d9968563c6c84405.js +0 -3
- package/dist/chunk-d9a84b9122601b72.js +0 -2
- package/dist/chunk-da1c673d9685624e.js +0 -2
- package/dist/chunk-dab2dde8cc9da99b.js +0 -9
- package/dist/chunk-dac0e2ef13060d02.js +0 -1
- package/dist/chunk-dac9276e506d125d.js +0 -2
- package/dist/chunk-dad55fcc32d05b69.js +0 -2
- package/dist/chunk-db2270bbca7854fe.js +0 -2
- package/dist/chunk-db65c75cda396f98.js +0 -2
- package/dist/chunk-dba84b47adec2108.js +0 -2
- package/dist/chunk-dc23bfb4fd92e2f0.js +0 -2
- package/dist/chunk-dc7b0cf226ba3afa.js +0 -2
- package/dist/chunk-dcc432bd72fb7e46.js +0 -3
- package/dist/chunk-dd211856e049a67f.js +0 -9
- package/dist/chunk-dd21f367f8029793.js +0 -2
- package/dist/chunk-dd8b042837b4d5f1.js +0 -2
- package/dist/chunk-ddef8961cbf08a05.js +0 -6
- package/dist/chunk-de0784c3310db458.js +0 -5
- package/dist/chunk-de39fc86bbd37240.js +0 -1
- package/dist/chunk-de3ec02f9d17c2c9.js +0 -2
- package/dist/chunk-def30dbcb4c6aceb.js +0 -2
- package/dist/chunk-df55f07f8adf212f.js +0 -2
- package/dist/chunk-df926b342440f55f.js +0 -5
- package/dist/chunk-dfadfa4e09b4db22.js +0 -2
- package/dist/chunk-dfc390f0bbdf5a81.js +0 -1
- package/dist/chunk-e05db2eae976681b.js +0 -3
- package/dist/chunk-e06fbc8e70a88f07.js +0 -2
- package/dist/chunk-e0a028ef931a3eb1.js +0 -18
- package/dist/chunk-e0e0f2ee626a6fb3.js +0 -18
- package/dist/chunk-e0ffb920c65ebf44.js +0 -2
- package/dist/chunk-e11c7f3abcf2269f.js +0 -2
- package/dist/chunk-e16b252158474b8c.js +0 -1
- package/dist/chunk-e19064e9f1d5faed.js +0 -2
- package/dist/chunk-e1a08bb52ee7ea09.js +0 -2
- package/dist/chunk-e1e84c38542d78ec.js +0 -2
- package/dist/chunk-e33c33445a92adf1.js +0 -1
- package/dist/chunk-e3acd3561fe1342c.js +0 -18
- package/dist/chunk-e3e996b3821027e1.js +0 -2
- package/dist/chunk-e3ef81776c8f2d28.js +0 -2
- package/dist/chunk-e4869466459233fa.js +0 -16
- package/dist/chunk-e4f28182cf5f6e1d.js +0 -2
- package/dist/chunk-e53fdd0a1888c5e8.js +0 -2
- package/dist/chunk-e5a95230e0858544.js +0 -3
- package/dist/chunk-e64d5a7b7e0fa2c5.js +0 -6
- package/dist/chunk-e755f2c1c7ad3912.js +0 -2
- package/dist/chunk-e8159722d49ad044.js +0 -2
- package/dist/chunk-e86269d01f94404c.js +0 -2
- package/dist/chunk-e9275fb341d2cdd9.js +0 -2
- package/dist/chunk-e9c96f9b825f8de7.js +0 -2
- package/dist/chunk-ea9b86cf2edd807b.js +0 -18
- package/dist/chunk-ec24a0767aa58f1f.js +0 -18
- package/dist/chunk-ed21fb7d8c4b675e.js +0 -3
- package/dist/chunk-ed589d4e4c575de7.js +0 -2
- package/dist/chunk-edba144b170cd87e.js +0 -6
- package/dist/chunk-edeefd833c30a5ed.js +0 -2
- package/dist/chunk-ee35048642cfe9d8.js +0 -2
- package/dist/chunk-ee4ff285d7f4ccdf.js +0 -2
- package/dist/chunk-ee604d0215ea07e6.js +0 -1
- package/dist/chunk-ee92e80230ce02ec.js +0 -2
- package/dist/chunk-eea1d6f60a6875d5.js +0 -2
- package/dist/chunk-eeb3b193701aec43.js +0 -1
- package/dist/chunk-ef1ebd10affe5726.js +0 -2
- package/dist/chunk-ef30aafcfd40dc07.js +0 -2
- package/dist/chunk-f077321ef55ea627.js +0 -1
- package/dist/chunk-f08ca4bd263b132b.js +0 -2
- package/dist/chunk-f0d3ed16a520ecf1.js +0 -18
- package/dist/chunk-f117757df00aa18d.js +0 -2
- package/dist/chunk-f13fd46441a58606.js +0 -2
- package/dist/chunk-f1ac22ad55dbab7a.js +0 -9
- package/dist/chunk-f1dfc76a05462dde.js +0 -2
- package/dist/chunk-f1e28c4c1a227c27.js +0 -2
- package/dist/chunk-f2428c56f532e719.js +0 -3
- package/dist/chunk-f256432c3e5819d0.js +0 -2
- package/dist/chunk-f2dca6305fcba70b.js +0 -2
- package/dist/chunk-f316793e4ec0f386.js +0 -2
- package/dist/chunk-f32726d374c6bee5.js +0 -1
- package/dist/chunk-f34a78d9e3a62c43.js +0 -3
- package/dist/chunk-f404a785b581d029.js +0 -2
- package/dist/chunk-f5910f2c8a3f6974.js +0 -2
- package/dist/chunk-f5a4295176f9b1c1.js +0 -2
- package/dist/chunk-f5b888aa9ac4e20f.js +0 -2
- package/dist/chunk-f5e313cc7d724fbe.js +0 -2
- package/dist/chunk-f67aa3e46d73674e.js +0 -2
- package/dist/chunk-f69bcbd7998553cb.js +0 -2
- package/dist/chunk-f74928c3f9ae5359.js +0 -2
- package/dist/chunk-f7796c3724a35057.js +0 -2
- package/dist/chunk-f84049d82d29bd9e.js +0 -2
- package/dist/chunk-f868cdf653dbe87e.js +0 -2
- package/dist/chunk-f8823a1ede83155e.js +0 -2
- package/dist/chunk-f8ad65b3a07ce3c4.js +0 -6
- package/dist/chunk-f900b5868b14827e.js +0 -2
- package/dist/chunk-f9084650419a23c4.js +0 -2
- package/dist/chunk-f95f5e3439539ca5.js +0 -2
- package/dist/chunk-f99bdfc336b2ac57.js +0 -9
- package/dist/chunk-f9a17b871b527bff.js +0 -2
- package/dist/chunk-f9e6a0a946ebb032.js +0 -2
- package/dist/chunk-fa40971555060604.js +0 -81
- package/dist/chunk-fa6bdfb32d2f97fb.js +0 -2
- package/dist/chunk-faa8c62bfa11f9d5.js +0 -2
- package/dist/chunk-fb25896f1638ca8e.js +0 -3
- package/dist/chunk-fc165cee61f6efe8.js +0 -6
- package/dist/chunk-fd5ffee329d6f29b.js +0 -2
- package/dist/chunk-feaaa37d30cd1e9b.js +0 -2
- package/dist/chunk-fec9f0b0b0319f3b.js +0 -2
- package/dist/chunk-ff086fe014985526.js +0 -1
- package/dist/chunk-ff1bbce70d726bc6.js +0 -9
- package/dist/chunk-ff9a2d6d503e6db6.js +0 -18
- package/dist/chunk-ffe161a589b4c44b.js +0 -1
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{x as d,y as E} from"./chunk-a5c18c07abe8fd9c.js";import{B as x,C as DU,D as a4,G as oU,H as iX,K as rX,O as lf,R as q8} from"./chunk-7a318e738fec6c2b.js";import{fb as A0} from"./chunk-bbd36ce62b950ee5.js";import{gb as nw,hb as K0} from"./chunk-5c3681fb029d7588.js";import{nb as OU} from"./chunk-6943b50bd0a3ac84.js";import{wb as UL} from"./chunk-100b76ab0ca3e14d.js";var m=E((nJ,Gw)=>{var{defineProperty:X1,getOwnPropertyDescriptor:IL,getOwnPropertyNames:QL}=Object,zL=Object.prototype.hasOwnProperty,Uw=($,U)=>X1($,"name",{value:U,configurable:!0}),JL=($,U)=>{for(var w in U)X1($,w,{get:U[w],enumerable:!0})},RL=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of QL(U))if(!zL.call($,G)&&G!==w)X1($,G,{get:()=>U[G],enumerable:!(f=IL(U,G))||f.enumerable})}return $},KL=($)=>RL(X1({},"__esModule",{value:!0}),$),ww={};JL(ww,{getSmithyContext:()=>ML,normalizeProvider:()=>EL});Gw.exports=KL(ww);var $w=A0(),ML=Uw(($)=>$[$w.SMITHY_CONTEXT_KEY]||($[$w.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),EL=Uw(($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U},"normalizeProvider")});var z$=E((sJ,Zw)=>{var{defineProperty:L1,getOwnPropertyDescriptor:BL,getOwnPropertyNames:VL}=Object,AL=Object.prototype.hasOwnProperty,Y0=($,U)=>L1($,"name",{value:U,configurable:!0}),TL=($,U)=>{for(var w in U)L1($,w,{get:U[w],enumerable:!0})},OL=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of VL(U))if(!AL.call($,G)&&G!==w)L1($,G,{get:()=>U[G],enumerable:!(f=BL(U,G))||f.enumerable})}return $},HL=($)=>OL(L1({},"__esModule",{value:!0}),$),fw={};TL(fw,{CredentialsProviderError:()=>CL,ProviderError:()=>Z1,TokenProviderError:()=>qL,chain:()=>NL,fromStatic:()=>jL,memoize:()=>PL});Zw.exports=HL(fw);var Ww=class $ extends Error{constructor(U,w=!0){var f;let G,W=!0;if(typeof w==="boolean")G=void 0,W=w;else if(w!=null&&typeof w==="object")G=w.logger,W=w.tryNextLink??!0;super(U);this.name="ProviderError",this.tryNextLink=W,Object.setPrototypeOf(this,$.prototype),(f=G==null?void 0:G.debug)==null||f.call(G,`@smithy/property-provider ${W?"->":"(!)"} ${U}`)}static from(U,w=!0){return Object.assign(new this(U.message,w),U)}};Y0(Ww,"ProviderError");var Z1=Ww,Xw=class $ extends Z1{constructor(U,w=!0){super(U,w);this.name="CredentialsProviderError",Object.setPrototypeOf(this,$.prototype)}};Y0(Xw,"CredentialsProviderError");var CL=Xw,Lw=class $ extends Z1{constructor(U,w=!0){super(U,w);this.name="TokenProviderError",Object.setPrototypeOf(this,$.prototype)}};Y0(Lw,"TokenProviderError");var qL=Lw,NL=Y0((...$)=>async()=>{if($.length===0)throw new Z1("No providers in chain");let U;for(let w of $)try{return await w()}catch(f){if(U=f,f==null?void 0:f.tryNextLink)continue;throw f}throw U},"chain"),jL=Y0(($)=>()=>Promise.resolve($),"fromStatic"),PL=Y0(($,U,w)=>{let f,G,W,X=!1;const L=Y0(async()=>{if(!G)G=$();try{f=await G,W=!0,X=!1}finally{G=void 0}return f},"coalesceProvider");if(U===void 0)return async(Z)=>{if(!W||(Z==null?void 0:Z.forceRefresh))f=await L();return f};return async(Z)=>{if(!W||(Z==null?void 0:Z.forceRefresh))f=await L();if(X)return f;if(w&&!w(f))return X=!0,f;if(U(f))return await L(),f;return f}},"memoize")});var T0=E((Fw)=>{Object.defineProperty(Fw,"__esModule",{value:!0});Fw.getHomeDir=void 0;var SL=import.meta.require("os"),bL=import.meta.require("path"),J$={},hL=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},DL=()=>{const{HOME:$,USERPROFILE:U,HOMEPATH:w,HOMEDRIVE:f=`C:${bL.sep}`}=process.env;if($)return $;if(U)return U;if(w)return`${f}${w}`;const G=hL();if(!J$[G])J$[G]=SL.homedir();return J$[G]};Fw.getHomeDir=DL});var R$=E((Iw)=>{Object.defineProperty(Iw,"__esModule",{value:!0});Iw.getSSOTokenFilepath=void 0;var kL=import.meta.require("crypto"),cL=import.meta.require("path"),vL=T0(),xL=($)=>{const w=kL.createHash("sha1").update($).digest("hex");return cL.join(vL.getHomeDir(),".aws","sso","cache",`${w}.json`)};Iw.getSSOTokenFilepath=xL});var Rw=E((zw)=>{Object.defineProperty(zw,"__esModule",{value:!0});zw.getSSOTokenFromFile=void 0;var uL=import.meta.require("fs"),yL=R$(),{readFile:_L}=uL.promises,dL=async($)=>{const U=yL.getSSOTokenFilepath($),w=await _L(U,"utf8");return JSON.parse(w)};zw.getSSOTokenFromFile=dL});var M$=E((Kw)=>{Object.defineProperty(Kw,"__esModule",{value:!0});Kw.slurpFile=void 0;var pL=import.meta.require("fs"),{readFile:gL}=pL.promises,K$={},lL=($,U)=>{if(!K$[$]||(U===null||U===void 0?void 0:U.ignoreCache))K$[$]=gL($,"utf8");return K$[$]};Kw.slurpFile=lL});var A$=E((aJ,x0)=>{var{defineProperty:I1,getOwnPropertyDescriptor:nL,getOwnPropertyNames:sL}=Object,mL=Object.prototype.hasOwnProperty,u=($,U)=>I1($,"name",{value:U,configurable:!0}),iL=($,U)=>{for(var w in U)I1($,w,{get:U[w],enumerable:!0})},E$=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of sL(U))if(!mL.call($,G)&&G!==w)I1($,G,{get:()=>U[G],enumerable:!(f=nL(U,G))||f.enumerable})}return $},V$=($,U,w)=>(E$($,U,"default"),w&&E$(w,U,"default")),rL=($)=>E$(I1({},"__esModule",{value:!0}),$),v0={};iL(v0,{CONFIG_PREFIX_SEPARATOR:()=>I0,DEFAULT_PROFILE:()=>Aw,ENV_PROFILE:()=>Vw,getProfileName:()=>oL,loadSharedConfigFiles:()=>Ow,loadSsoSessionData:()=>FZ,parseKnownFiles:()=>IZ});x0.exports=rL(v0);V$(v0,T0(),x0.exports);var Vw="AWS_PROFILE",Aw="default",oL=u(($)=>$.profile||process.env[Vw]||Aw,"getProfileName");V$(v0,R$(),x0.exports);V$(v0,Rw(),x0.exports);var F1=A0(),aL=u(($)=>Object.entries($).filter(([U])=>{const w=U.indexOf(I0);if(w===-1)return!1;return Object.values(F1.IniSectionType).includes(U.substring(0,w))}).reduce((U,[w,f])=>{const G=w.indexOf(I0),W=w.substring(0,G)===F1.IniSectionType.PROFILE?w.substring(G+1):w;return U[W]=f,U},{...$.default&&{default:$.default}}),"getConfigData"),Y1=import.meta.require("path"),tL=T0(),eL="AWS_CONFIG_FILE",Tw=u(()=>process.env[eL]||Y1.join(tL.getHomeDir(),".aws","config"),"getConfigFilepath"),$Z=T0(),UZ="AWS_SHARED_CREDENTIALS_FILE",wZ=u(()=>process.env[UZ]||Y1.join($Z.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),GZ=T0(),fZ=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,WZ=["__proto__","profile __proto__"],B$=u(($)=>{const U={};let w,f;for(let G of $.split(/\r?\n/)){const W=G.split(/(^|\s)[;#]/)[0].trim();if(W[0]==="["&&W[W.length-1]==="]"){w=void 0,f=void 0;const L=W.substring(1,W.length-1),Z=fZ.exec(L);if(Z){const[,F,,Y]=Z;if(Object.values(F1.IniSectionType).includes(F))w=[F,Y].join(I0)}else w=L;if(WZ.includes(L))throw new Error(`Found invalid profile name "${L}"`)}else if(w){const L=W.indexOf("=");if(![0,-1].includes(L)){const[Z,F]=[W.substring(0,L).trim(),W.substring(L+1).trim()];if(F==="")f=Z;else{if(f&&G.trimStart()===G)f=void 0;U[w]=U[w]||{};const Y=f?[f,Z].join(I0):Z;U[w][Y]=F}}}}return U},"parseIni"),Ew=M$(),Bw=u(()=>({}),"swallowError"),I0=".",Ow=u(async($={})=>{const{filepath:U=wZ(),configFilepath:w=Tw()}=$,f=GZ.getHomeDir();let W=U;if(U.startsWith("~/"))W=Y1.join(f,U.slice(2));let X=w;if(w.startsWith("~/"))X=Y1.join(f,w.slice(2));const L=await Promise.all([Ew.slurpFile(X,{ignoreCache:$.ignoreCache}).then(B$).then(aL).catch(Bw),Ew.slurpFile(W,{ignoreCache:$.ignoreCache}).then(B$).catch(Bw)]);return{configFile:L[0],credentialsFile:L[1]}},"loadSharedConfigFiles"),XZ=u(($)=>Object.entries($).filter(([U])=>U.startsWith(F1.IniSectionType.SSO_SESSION+I0)).reduce((U,[w,f])=>({...U,[w.substring(w.indexOf(I0)+1)]:f}),{}),"getSsoSessionData"),LZ=M$(),ZZ=u(()=>({}),"swallowError"),FZ=u(async($={})=>LZ.slurpFile($.configFilepath??Tw()).then(B$).then(XZ).catch(ZZ),"loadSsoSessionData"),YZ=u((...$)=>{const U={};for(let w of $)for(let[f,G]of Object.entries(w))if(U[f]!==void 0)Object.assign(U[f],G);else U[f]=G;return U},"mergeConfigFiles"),IZ=u(async($)=>{const U=await Ow($);return YZ(U.configFile,U.credentialsFile)},"parseKnownFiles")});var Nw=E((tJ,qw)=>{var T$=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 $}},Q1=Object.defineProperty,QZ=Object.getOwnPropertyDescriptor,zZ=Object.getOwnPropertyNames,JZ=Object.prototype.hasOwnProperty,O0=($,U)=>Q1($,"name",{value:U,configurable:!0}),RZ=($,U)=>{for(var w in U)Q1($,w,{get:U[w],enumerable:!0})},KZ=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of zZ(U))if(!JZ.call($,G)&&G!==w)Q1($,G,{get:()=>U[G],enumerable:!(f=QZ(U,G))||f.enumerable})}return $},MZ=($)=>KZ(Q1({},"__esModule",{value:!0}),$),Cw={};RZ(Cw,{loadConfig:()=>TZ});qw.exports=MZ(Cw);var u0=z$();O0(T$,"getSelectorName");var EZ=O0(($,U)=>async()=>{try{const w=$(process.env);if(w===void 0)throw new Error;return w}catch(w){throw new u0.CredentialsProviderError(w.message||`Not found in ENV: ${T$($.toString())}`,{logger:U})}},"fromEnv"),Hw=A$(),BZ=O0(($,{preferredFile:U="config",...w}={})=>async()=>{const f=Hw.getProfileName(w),{configFile:G,credentialsFile:W}=await Hw.loadSharedConfigFiles(w),X=W[f]||{},L=G[f]||{},Z=U==="config"?{...X,...L}:{...L,...X};try{const Y=$(Z,U==="config"?G:W);if(Y===void 0)throw new Error;return Y}catch(F){throw new u0.CredentialsProviderError(F.message||`Not found in config files w/ profile [${f}]: ${T$($.toString())}`,{logger:w.logger})}},"fromSharedConfigFiles"),VZ=O0(($)=>typeof $==="function","isFunction"),AZ=O0(($)=>VZ($)?async()=>await $():u0.fromStatic($),"fromStatic"),TZ=O0(({environmentVariableSelector:$,configFileSelector:U,default:w},f={})=>u0.memoize(u0.chain(EZ($),BZ(U,f),AZ(w))),"loadConfig")});var Dw=E((bw)=>{Object.defineProperty(bw,"__esModule",{value:!0});bw.getEndpointUrlConfig=void 0;var jw=A$(),Pw="AWS_ENDPOINT_URL",Sw="endpoint_url",OZ=($)=>({environmentVariableSelector:(U)=>{const w=$.split(" ").map((W)=>W.toUpperCase()),f=U[[Pw,...w].join("_")];if(f)return f;const G=U[Pw];if(G)return G;return},configFileSelector:(U,w)=>{if(w&&U.services){const G=w[["services",U.services].join(jw.CONFIG_PREFIX_SEPARATOR)];if(G){const W=$.split(" ").map((L)=>L.toLowerCase()),X=G[[W.join("_"),Sw].join(jw.CONFIG_PREFIX_SEPARATOR)];if(X)return X}}const f=U[Sw];if(f)return f;return},default:void 0});bw.getEndpointUrlConfig=OZ});var vw=E((kw)=>{Object.defineProperty(kw,"__esModule",{value:!0});kw.getEndpointFromConfig=void 0;var HZ=Nw(),CZ=Dw(),qZ=async($)=>HZ.loadConfig(CZ.getEndpointUrlConfig($))();kw.getEndpointFromConfig=qZ});var H$=E((UR,gw)=>{var pw=function($,U,w){return{applyToStack:(f)=>{f.add(uw($,w),_w),f.add(yw($,U),dw)}}},z1=Object.defineProperty,NZ=Object.getOwnPropertyDescriptor,jZ=Object.getOwnPropertyNames,PZ=Object.prototype.hasOwnProperty,O$=($,U)=>z1($,"name",{value:U,configurable:!0}),SZ=($,U)=>{for(var w in U)z1($,w,{get:U[w],enumerable:!0})},bZ=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of jZ(U))if(!PZ.call($,G)&&G!==w)z1($,G,{get:()=>U[G],enumerable:!(f=NZ(U,G))||f.enumerable})}return $},hZ=($)=>bZ(z1({},"__esModule",{value:!0}),$),xw={};SZ(xw,{deserializerMiddleware:()=>uw,deserializerMiddlewareOption:()=>_w,getSerdePlugin:()=>pw,serializerMiddleware:()=>yw,serializerMiddlewareOption:()=>dw});gw.exports=hZ(xw);var uw=O$(($,U)=>(w)=>async(f)=>{const{response:G}=await w(f);try{const W=await U(G,$);return{response:G,output:W}}catch(W){if(Object.defineProperty(W,"$response",{value:G}),!("$metadata"in W)){if(W.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof W.$responseBodyText!=="undefined"){if(W.$response)W.$response.body=W.$responseBodyText}}throw W}},"deserializerMiddleware"),yw=O$(($,U)=>(w,f)=>async(G)=>{var W;const X=((W=f.endpointV2)==null?void 0:W.url)&&$.urlParser?async()=>$.urlParser(f.endpointV2.url):$.endpoint;if(!X)throw new Error("No valid endpoint provider available.");const L=await U(G.input,{...$,endpoint:X});return w({...G,request:L})},"serializerMiddleware"),_w={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},dw={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};O$(pw,"getSerdePlugin")});var tw=E((wR,aw)=>{var{defineProperty:R1,getOwnPropertyDescriptor:DZ,getOwnPropertyNames:kZ}=Object,cZ=Object.prototype.hasOwnProperty,g=($,U)=>R1($,"name",{value:U,configurable:!0}),vZ=($,U)=>{for(var w in U)R1($,w,{get:U[w],enumerable:!0})},xZ=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of kZ(U))if(!cZ.call($,G)&&G!==w)R1($,G,{get:()=>U[G],enumerable:!(f=DZ(U,G))||f.enumerable})}return $},uZ=($)=>xZ(R1({},"__esModule",{value:!0}),$),sw={};vZ(sw,{endpointMiddleware:()=>rw,endpointMiddlewareOptions:()=>ow,getEndpointFromInstructions:()=>mw,getEndpointPlugin:()=>iZ,resolveEndpointConfig:()=>rZ,resolveParams:()=>iw,toEndpointV1:()=>C$});aw.exports=uZ(sw);var yZ=g(async($)=>{const U=($==null?void 0:$.Bucket)||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(lZ(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!gZ(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},"resolveParamsForS3"),_Z=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,dZ=/(\d+\.){3}\d+/,pZ=/\.\./,gZ=g(($)=>_Z.test($)&&!dZ.test($)&&!pZ.test($),"isDnsCompatibleBucketName"),lZ=g(($)=>{const[U,w,f,,,G]=$.split(":"),W=U==="arn"&&$.split(":").length>=6,X=Boolean(W&&w&&f&&G);if(W&&!X)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return X},"isArnBucketName"),nZ=g(($,U,w)=>{const f=g(async()=>{const G=w[$]??w[U];if(typeof G==="function")return G();return G},"configProvider");if($==="credentialScope"||U==="CredentialScope")return async()=>{const G=typeof w.credentials==="function"?await w.credentials():w.credentials;return(G==null?void 0:G.credentialScope)??(G==null?void 0:G.CredentialScope)};if($==="accountId"||U==="AccountId")return async()=>{const G=typeof w.credentials==="function"?await w.credentials():w.credentials;return(G==null?void 0:G.accountId)??(G==null?void 0:G.AccountId)};if($==="endpoint"||U==="endpoint")return async()=>{const G=await f();if(G&&typeof G==="object"){if("url"in G)return G.url.href;if("hostname"in G){const{protocol:W,hostname:X,port:L,path:Z}=G;return`${W}//${X}${L?":"+L:""}${Z}`}}return G};return f},"createConfigValueProvider"),sZ=vw(),lw=nw(),C$=g(($)=>{if(typeof $==="object"){if("url"in $)return lw.parseUrl($.url);return $}return lw.parseUrl($)},"toEndpointV1"),mw=g(async($,U,w,f)=>{if(!w.endpoint){const X=await sZ.getEndpointFromConfig(w.serviceId||"");if(X)w.endpoint=()=>Promise.resolve(C$(X))}const G=await iw($,U,w);if(typeof w.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return w.endpointProvider(G,f)},"getEndpointFromInstructions"),iw=g(async($,U,w)=>{var f;const G={},W=((f=U==null?void 0:U.getEndpointParameterInstructions)==null?void 0:f.call(U))||{};for(let[X,L]of Object.entries(W))switch(L.type){case"staticContextParams":G[X]=L.value;break;case"contextParams":G[X]=$[L.name];break;case"clientContextParams":case"builtInParams":G[X]=await nZ(L.name,X,w)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(L))}if(Object.keys(W).length===0)Object.assign(G,w);if(String(w.serviceId).toLowerCase()==="s3")await yZ(G);return G},"resolveParams"),J1=m(),rw=g(({config:$,instructions:U})=>{return(w,f)=>async(G)=>{var W,X,L;const Z=await mw(G.input,{getEndpointParameterInstructions(){return U}},{...$},f);f.endpointV2=Z,f.authSchemes=(W=Z.properties)==null?void 0:W.authSchemes;const F=(X=f.authSchemes)==null?void 0:X[0];if(F){f.signing_region=F.signingRegion,f.signing_service=F.signingName;const Y=J1.getSmithyContext(f),I=(L=Y==null?void 0:Y.selectedHttpAuthScheme)==null?void 0:L.httpAuthOption;if(I)I.signingProperties=Object.assign(I.signingProperties||{},{signing_region:F.signingRegion,signingRegion:F.signingRegion,signing_service:F.signingName,signingName:F.signingName,signingRegionSet:F.signingRegionSet},F.properties)}return w({...G})}},"endpointMiddleware"),mZ=H$(),ow={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:mZ.serializerMiddlewareOption.name},iZ=g(($,U)=>({applyToStack:(w)=>{w.addRelativeTo(rw({config:$,instructions:U}),ow)}}),"getEndpointPlugin"),rZ=g(($)=>{const U=$.tls??!0,{endpoint:w}=$,f=w!=null?async()=>C$(await J1.normalizeProvider(w)()):void 0;return{...$,endpoint:f,tls:U,isCustomEndpoint:!!w,useDualstackEndpoint:J1.normalizeProvider($.useDualstackEndpoint??!1),useFipsEndpoint:J1.normalizeProvider($.useFipsEndpoint??!1)}},"resolveEndpointConfig")});var o=E((GR,LG)=>{var fG=function($){return Object.keys($).reduce((U,w)=>{const f=$[w];return{...U,[w]:Array.isArray(f)?[...f]:f}},{})},XG=function($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)},K1=Object.defineProperty,oZ=Object.getOwnPropertyDescriptor,aZ=Object.getOwnPropertyNames,tZ=Object.prototype.hasOwnProperty,U0=($,U)=>K1($,"name",{value:U,configurable:!0}),eZ=($,U)=>{for(var w in U)K1($,w,{get:U[w],enumerable:!0})},$2=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of aZ(U))if(!tZ.call($,G)&&G!==w)K1($,G,{get:()=>U[G],enumerable:!(f=oZ(U,G))||f.enumerable})}return $},U2=($)=>$2(K1({},"__esModule",{value:!0}),$),ew={};eZ(ew,{Field:()=>f2,Fields:()=>W2,HttpRequest:()=>X2,HttpResponse:()=>L2,IHttpRequest:()=>$G.HttpRequest,getHttpHandlerExtensionConfiguration:()=>w2,isValidHostname:()=>XG,resolveHttpHandlerRuntimeConfig:()=>G2});LG.exports=U2(ew);var w2=U0(($)=>{let U=$.httpHandler;return{setHttpHandler(w){U=w},httpHandler(){return U},updateHttpClientConfig(w,f){U.updateHttpClientConfig(w,f)},httpHandlerConfigs(){return U.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),G2=U0(($)=>{return{httpHandler:$.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),$G=A0(),UG=class ${constructor({name:U,kind:w=$G.FieldPosition.HEADER,values:f=[]}){this.name=U,this.kind=w,this.values=f}add(U){this.values.push(U)}set(U){this.values=U}remove(U){this.values=this.values.filter((w)=>w!==U)}toString(){return this.values.map((U)=>U.includes(",")||U.includes(" ")?`"${U}"`:U).join(", ")}get(){return this.values}};U0(UG,"Field");var f2=UG,wG=class ${constructor({fields:U=[],encoding:w="utf-8"}){this.entries={},U.forEach(this.setField.bind(this)),this.encoding=w}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((w)=>w.kind===U)}};U0(wG,"Fields");var W2=wG,GG=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 w=new $({...U,headers:{...U.headers}});if(w.query)w.query=fG(w.query);return w}static isInstance(U){if(!U)return!1;const w=U;return"method"in w&&"protocol"in w&&"hostname"in w&&"path"in w&&typeof w.query==="object"&&typeof w.headers==="object"}clone(){return $.clone(this)}};U0(GG,"HttpRequest");var X2=GG;U0(fG,"cloneQuery");var WG=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 w=U;return typeof w.statusCode==="number"&&typeof w.headers==="object"}};U0(WG,"HttpResponse");var L2=WG;U0(XG,"isValidHostname")});var q$=E((ZG)=>{var F2=function($){return $&&$.__esModule?$:{default:$}},Y2=function(){if(M1>E1.length-16)Z2.default.randomFillSync(E1),M1=0;return E1.slice(M1,M1+=16)};Object.defineProperty(ZG,"__esModule",{value:!0});ZG.default=Y2;var Z2=F2(import.meta.require("crypto")),E1=new Uint8Array(256),M1=E1.length});var IG=E((FG)=>{Object.defineProperty(FG,"__esModule",{value:!0});FG.default=void 0;var Q2=/^(?:[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;FG.default=Q2});var y0=E((QG)=>{var J2=function($){return $&&$.__esModule?$:{default:$}},R2=function($){return typeof $==="string"&&z2.default.test($)};Object.defineProperty(QG,"__esModule",{value:!0});QG.default=void 0;var z2=J2(IG()),K2=R2;QG.default=K2});var _0=E((RG)=>{var E2=function($){return $&&$.__esModule?$:{default:$}},JG=function($,U=0){return h[$[U+0]]+h[$[U+1]]+h[$[U+2]]+h[$[U+3]]+"-"+h[$[U+4]]+h[$[U+5]]+"-"+h[$[U+6]]+h[$[U+7]]+"-"+h[$[U+8]]+h[$[U+9]]+"-"+h[$[U+10]]+h[$[U+11]]+h[$[U+12]]+h[$[U+13]]+h[$[U+14]]+h[$[U+15]]},B2=function($,U=0){const w=JG($,U);if(!M2.default(w))throw TypeError("Stringified UUID is invalid");return w};Object.defineProperty(RG,"__esModule",{value:!0});RG.default=void 0;RG.unsafeStringify=JG;var M2=E2(y0()),h=[];for(let $=0;$<256;++$)h.push(($+256).toString(16).slice(1));var V2=B2;RG.default=V2});var VG=E((EG)=>{var H2=function($){return $&&$.__esModule?$:{default:$}},C2=function($,U,w){let f=U&&w||0;const G=U||new Array(16);$=$||{};let W=$.node||MG,X=$.clockseq!==void 0?$.clockseq:N$;if(W==null||X==null){const z=$.random||($.rng||T2.default)();if(W==null)W=MG=[z[0]|1,z[1],z[2],z[3],z[4],z[5]];if(X==null)X=N$=(z[6]<<8|z[7])&16383}let L=$.msecs!==void 0?$.msecs:Date.now(),Z=$.nsecs!==void 0?$.nsecs:P$+1;const F=L-j$+(Z-P$)/1e4;if(F<0&&$.clockseq===void 0)X=X+1&16383;if((F<0||L>j$)&&$.nsecs===void 0)Z=0;if(Z>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");j$=L,P$=Z,N$=X,L+=12219292800000;const Y=((L&268435455)*1e4+Z)%4294967296;G[f++]=Y>>>24&255,G[f++]=Y>>>16&255,G[f++]=Y>>>8&255,G[f++]=Y&255;const I=L/4294967296*1e4&268435455;G[f++]=I>>>8&255,G[f++]=I&255,G[f++]=I>>>24&15|16,G[f++]=I>>>16&255,G[f++]=X>>>8|128,G[f++]=X&255;for(let z=0;z<6;++z)G[f+z]=W[z];return U||O2.unsafeStringify(G)};Object.defineProperty(EG,"__esModule",{value:!0});EG.default=void 0;var T2=H2(q$()),O2=_0(),MG,N$,j$=0,P$=0,q2=C2;EG.default=q2});var S$=E((AG)=>{var j2=function($){return $&&$.__esModule?$:{default:$}},P2=function($){if(!N2.default($))throw TypeError("Invalid UUID");let U;const w=new Uint8Array(16);return w[0]=(U=parseInt($.slice(0,8),16))>>>24,w[1]=U>>>16&255,w[2]=U>>>8&255,w[3]=U&255,w[4]=(U=parseInt($.slice(9,13),16))>>>8,w[5]=U&255,w[6]=(U=parseInt($.slice(14,18),16))>>>8,w[7]=U&255,w[8]=(U=parseInt($.slice(19,23),16))>>>8,w[9]=U&255,w[10]=(U=parseInt($.slice(24,36),16))/1099511627776&255,w[11]=U/4294967296&255,w[12]=U>>>24&255,w[13]=U>>>16&255,w[14]=U>>>8&255,w[15]=U&255,w};Object.defineProperty(AG,"__esModule",{value:!0});AG.default=void 0;var N2=j2(y0()),S2=P2;AG.default=S2});var b$=E((CG)=>{var D2=function($){return $&&$.__esModule?$:{default:$}},k2=function($){$=unescape(encodeURIComponent($));const U=[];for(let w=0;w<$.length;++w)U.push($.charCodeAt(w));return U},c2=function($,U,w){function f(G,W,X,L){var Z;if(typeof G==="string")G=k2(G);if(typeof W==="string")W=h2.default(W);if(((Z=W)===null||Z===void 0?void 0:Z.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let F=new Uint8Array(16+G.length);if(F.set(W),F.set(G,W.length),F=w(F),F[6]=F[6]&15|U,F[8]=F[8]&63|128,X){L=L||0;for(let Y=0;Y<16;++Y)X[L+Y]=F[Y];return X}return b2.unsafeStringify(F)}try{f.name=$}catch(G){}return f.DNS=OG,f.URL=HG,f};Object.defineProperty(CG,"__esModule",{value:!0});CG.URL=CG.DNS=void 0;CG.default=c2;var b2=_0(),h2=D2(S$()),OG="6ba7b810-9dad-11d1-80b4-00c04fd430c8";CG.DNS=OG;var HG="6ba7b811-9dad-11d1-80b4-00c04fd430c8";CG.URL=HG});var PG=E((NG)=>{var y2=function($){return $&&$.__esModule?$:{default:$}},_2=function($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return u2.default.createHash("md5").update($).digest()};Object.defineProperty(NG,"__esModule",{value:!0});NG.default=void 0;var u2=y2(import.meta.require("crypto")),d2=_2;NG.default=d2});var DG=E((bG)=>{var SG=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(bG,"__esModule",{value:!0});bG.default=void 0;var p2=SG(b$()),g2=SG(PG()),l2=p2.default("v3",48,g2.default),n2=l2;bG.default=n2});var vG=E((kG)=>{var m2=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(kG,"__esModule",{value:!0});kG.default=void 0;var s2=m2(import.meta.require("crypto")),i2={randomUUID:s2.default.randomUUID};kG.default=i2});var dG=E((yG)=>{var uG=function($){return $&&$.__esModule?$:{default:$}},a2=function($,U,w){if(xG.default.randomUUID&&!U&&!$)return xG.default.randomUUID();$=$||{};const f=$.random||($.rng||r2.default)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,U){w=w||0;for(let G=0;G<16;++G)U[w+G]=f[G];return U}return o2.unsafeStringify(f)};Object.defineProperty(yG,"__esModule",{value:!0});yG.default=void 0;var xG=uG(vG()),r2=uG(q$()),o2=_0(),t2=a2;yG.default=t2});var lG=E((pG)=>{var $F=function($){return $&&$.__esModule?$:{default:$}},UF=function($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return e2.default.createHash("sha1").update($).digest()};Object.defineProperty(pG,"__esModule",{value:!0});pG.default=void 0;var e2=$F(import.meta.require("crypto")),wF=UF;pG.default=wF});var iG=E((sG)=>{var nG=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(sG,"__esModule",{value:!0});sG.default=void 0;var GF=nG(b$()),fF=nG(lG()),WF=GF.default("v5",80,fF.default),XF=WF;sG.default=XF});var aG=E((rG)=>{Object.defineProperty(rG,"__esModule",{value:!0});rG.default=void 0;var LF="00000000-0000-0000-0000-000000000000";rG.default=LF});var $f=E((tG)=>{var FF=function($){return $&&$.__esModule?$:{default:$}},YF=function($){if(!ZF.default($))throw TypeError("Invalid UUID");return parseInt($.slice(14,15),16)};Object.defineProperty(tG,"__esModule",{value:!0});tG.default=void 0;var ZF=FF(y0()),IF=YF;tG.default=IF});var h$=E((l)=>{var a=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(l,"__esModule",{value:!0});Object.defineProperty(l,"NIL",{enumerable:!0,get:function(){return KF.default}});Object.defineProperty(l,"parse",{enumerable:!0,get:function(){return VF.default}});Object.defineProperty(l,"stringify",{enumerable:!0,get:function(){return BF.default}});Object.defineProperty(l,"v1",{enumerable:!0,get:function(){return QF.default}});Object.defineProperty(l,"v3",{enumerable:!0,get:function(){return zF.default}});Object.defineProperty(l,"v4",{enumerable:!0,get:function(){return JF.default}});Object.defineProperty(l,"v5",{enumerable:!0,get:function(){return RF.default}});Object.defineProperty(l,"validate",{enumerable:!0,get:function(){return EF.default}});Object.defineProperty(l,"version",{enumerable:!0,get:function(){return MF.default}});var QF=a(VG()),zF=a(DG()),JF=a(dG()),RF=a(iG()),KF=a(aG()),MF=a($f()),EF=a(y0()),BF=a(_0()),VF=a(S$())});var Q0=E((VR,ff)=>{var{defineProperty:B1,getOwnPropertyDescriptor:AF,getOwnPropertyNames:TF}=Object,OF=Object.prototype.hasOwnProperty,H0=($,U)=>B1($,"name",{value:U,configurable:!0}),HF=($,U)=>{for(var w in U)B1($,w,{get:U[w],enumerable:!0})},CF=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of TF(U))if(!OF.call($,G)&&G!==w)B1($,G,{get:()=>U[G],enumerable:!(f=AF(U,G))||f.enumerable})}return $},qF=($)=>CF(B1({},"__esModule",{value:!0}),$),Uf={};HF(Uf,{isClockSkewCorrectedError:()=>wf,isClockSkewError:()=>DF,isRetryableByTrait:()=>hF,isServerError:()=>cF,isThrottlingError:()=>kF,isTransientError:()=>Gf});ff.exports=qF(Uf);var NF=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],jF=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],PF=["TimeoutError","RequestTimeout","RequestTimeoutException"],SF=[500,502,503,504],bF=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],hF=H0(($)=>$.$retryable!==void 0,"isRetryableByTrait"),DF=H0(($)=>NF.includes($.name),"isClockSkewError"),wf=H0(($)=>{var U;return(U=$.$metadata)==null?void 0:U.clockSkewCorrected},"isClockSkewCorrectedError"),kF=H0(($)=>{var U,w;return((U=$.$metadata)==null?void 0:U.httpStatusCode)===429||jF.includes($.name)||((w=$.$retryable)==null?void 0:w.throttling)==!0},"isThrottlingError"),Gf=H0(($)=>{var U;return wf($)||PF.includes($.name)||bF.includes(($==null?void 0:$.code)||"")||SF.includes(((U=$.$metadata)==null?void 0:U.httpStatusCode)||0)},"isTransientError"),cF=H0(($)=>{var U;if(((U=$.$metadata)==null?void 0:U.httpStatusCode)!==void 0){const w=$.$metadata.httpStatusCode;if(500<=w&&w<=599&&!Gf($))return!0;return!1}return!1},"isServerError")});var Ef=E((AR,Mf)=>{var{defineProperty:V1,getOwnPropertyDescriptor:vF,getOwnPropertyNames:xF}=Object,uF=Object.prototype.hasOwnProperty,n=($,U)=>V1($,"name",{value:U,configurable:!0}),yF=($,U)=>{for(var w in U)V1($,w,{get:U[w],enumerable:!0})},_F=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of xF(U))if(!uF.call($,G)&&G!==w)V1($,G,{get:()=>U[G],enumerable:!(f=vF(U,G))||f.enumerable})}return $},dF=($)=>_F(V1({},"__esModule",{value:!0}),$),Xf={};yF(Xf,{AdaptiveRetryStrategy:()=>mF,ConfiguredRetryStrategy:()=>iF,DEFAULT_MAX_ATTEMPTS:()=>D$,DEFAULT_RETRY_DELAY_BASE:()=>d0,DEFAULT_RETRY_MODE:()=>pF,DefaultRateLimiter:()=>Ff,INITIAL_RETRY_TOKENS:()=>k$,INVOCATION_ID_HEADER:()=>lF,MAXIMUM_RETRY_DELAY:()=>c$,NO_RETRY_INCREMENT:()=>zf,REQUEST_HEADER:()=>nF,RETRY_COST:()=>If,RETRY_MODES:()=>Lf,StandardRetryStrategy:()=>v$,THROTTLING_RETRY_DELAY_BASE:()=>Yf,TIMEOUT_RETRY_COST:()=>Qf});Mf.exports=dF(Xf);var Lf=(($)=>{return $.STANDARD="standard",$.ADAPTIVE="adaptive",$})(Lf||{}),D$=3,pF="standard",gF=Q0(),Zf=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 w=this.getCurrentTimeInSeconds();this.lastThrottleTime=w,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(U){if(!this.enabled)return;if(this.refillTokenBucket(),U>this.currentCapacity){const w=(U-this.currentCapacity)/this.fillRate*1000;await new Promise((f)=>setTimeout(f,w))}this.currentCapacity=this.currentCapacity-U}refillTokenBucket(){const U=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=U;return}const w=(U-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+w),this.lastTimestamp=U}updateClientSendingRate(U){let w;if(this.updateMeasuredRate(),gF.isThrottlingError(U)){const G=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=G,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),w=this.cubicThrottle(G),this.enableTokenBucket()}else this.calculateTimeWindow(),w=this.cubicSuccess(this.getCurrentTimeInSeconds());const f=Math.min(w,2*this.measuredTxRate);this.updateTokenBucketRate(f)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(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(),w=Math.floor(U*2)/2;if(this.requestCount++,w>this.lastTxRateBucket){const f=this.requestCount/(w-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(f*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=w}}getPrecise(U){return parseFloat(U.toFixed(8))}};n(Zf,"DefaultRateLimiter");var Ff=Zf,d0=100,c$=20000,Yf=500,k$=500,If=5,Qf=10,zf=1,lF="amz-sdk-invocation-id",nF="amz-sdk-request",sF=n(()=>{let $=d0;return{computeNextBackoffDelay:n((f)=>{return Math.floor(Math.min(c$,Math.random()*2**f*$))},"computeNextBackoffDelay"),setDelayBase:n((f)=>{$=f},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),Wf=n(({retryDelay:$,retryCount:U,retryCost:w})=>{return{getRetryCount:n(()=>U,"getRetryCount"),getRetryDelay:n(()=>Math.min(c$,$),"getRetryDelay"),getRetryCost:n(()=>w,"getRetryCost")}},"createDefaultRetryToken"),Jf=class ${constructor(U){this.maxAttempts=U,this.mode="standard",this.capacity=k$,this.retryBackoffStrategy=sF(),this.maxAttemptsProvider=typeof U==="function"?U:async()=>U}async acquireInitialRetryToken(U){return Wf({retryDelay:d0,retryCount:0})}async refreshRetryTokenForRetry(U,w){const f=await this.getMaxAttempts();if(this.shouldRetry(U,w,f)){const G=w.errorType;this.retryBackoffStrategy.setDelayBase(G==="THROTTLING"?Yf:d0);const W=this.retryBackoffStrategy.computeNextBackoffDelay(U.getRetryCount()),X=w.retryAfterHint?Math.max(w.retryAfterHint.getTime()-Date.now()||0,W):W,L=this.getCapacityCost(G);return this.capacity-=L,Wf({retryDelay:X,retryCount:U.getRetryCount()+1,retryCost:L})}throw new Error("No retry token available")}recordSuccess(U){this.capacity=Math.max(k$,this.capacity+(U.getRetryCost()??zf))}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 ${D$}`),D$}}shouldRetry(U,w,f){return U.getRetryCount()+1<f&&this.capacity>=this.getCapacityCost(w.errorType)&&this.isRetryableError(w.errorType)}getCapacityCost(U){return U==="TRANSIENT"?Qf:If}isRetryableError(U){return U==="THROTTLING"||U==="TRANSIENT"}};n(Jf,"StandardRetryStrategy");var v$=Jf,Rf=class ${constructor(U,w){this.maxAttemptsProvider=U,this.mode="adaptive";const{rateLimiter:f}=w??{};this.rateLimiter=f??new Ff,this.standardRetryStrategy=new v$(U)}async acquireInitialRetryToken(U){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(U)}async refreshRetryTokenForRetry(U,w){return this.rateLimiter.updateClientSendingRate(w),this.standardRetryStrategy.refreshRetryTokenForRetry(U,w)}recordSuccess(U){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(U)}};n(Rf,"AdaptiveRetryStrategy");var mF=Rf,Kf=class $ extends v${constructor(U,w=d0){super(typeof U==="function"?U:async()=>U);if(typeof w==="number")this.computeNextBackoffDelay=()=>w;else this.computeNextBackoffDelay=w}async refreshRetryTokenForRetry(U,w){const f=await super.refreshRetryTokenForRetry(U,w);return f.getRetryDelay=()=>this.computeNextBackoffDelay(f.getRetryCount()),f}};n(Kf,"ConfiguredRetryStrategy");var iF=Kf});var Of=E((TR,Tf)=>{var{defineProperty:A1,getOwnPropertyDescriptor:rF,getOwnPropertyNames:oF}=Object,aF=Object.prototype.hasOwnProperty,y=($,U)=>A1($,"name",{value:U,configurable:!0}),tF=($,U)=>{for(var w in U)A1($,w,{get:U[w],enumerable:!0})},eF=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of oF(U))if(!aF.call($,G)&&G!==w)A1($,G,{get:()=>U[G],enumerable:!(f=rF(U,G))||f.enumerable})}return $},$Y=($)=>eF(A1({},"__esModule",{value:!0}),$),Af={};tF(Af,{constructStack:()=>x$});Tf.exports=$Y(Af);var z0=y(($,U)=>{const w=[];if($)w.push($);if(U)for(let f of U)w.push(f);return w},"getAllAliases"),w0=y(($,U)=>{return`${$||"anonymous"}${U&&U.length>0?` (a.k.a. ${U.join(",")})`:""}`},"getMiddlewareNameWithAliases"),x$=y(()=>{let $=[],U=[],w=!1;const f=new Set,G=y((I)=>I.sort((z,Q)=>Bf[Q.step]-Bf[z.step]||Vf[Q.priority||"normal"]-Vf[z.priority||"normal"]),"sort"),W=y((I)=>{let z=!1;const Q=y((J)=>{const V=z0(J.name,J.aliases);if(V.includes(I)){z=!0;for(let M of V)f.delete(M);return!1}return!0},"filterCb");return $=$.filter(Q),U=U.filter(Q),z},"removeByName"),X=y((I)=>{let z=!1;const Q=y((J)=>{if(J.middleware===I){z=!0;for(let V of z0(J.name,J.aliases))f.delete(V);return!1}return!0},"filterCb");return $=$.filter(Q),U=U.filter(Q),z},"removeByReference"),L=y((I)=>{var z;return $.forEach((Q)=>{I.add(Q.middleware,{...Q})}),U.forEach((Q)=>{I.addRelativeTo(Q.middleware,{...Q})}),(z=I.identifyOnResolve)==null||z.call(I,Y.identifyOnResolve()),I},"cloneTo"),Z=y((I)=>{const z=[];return I.before.forEach((Q)=>{if(Q.before.length===0&&Q.after.length===0)z.push(Q);else z.push(...Z(Q))}),z.push(I),I.after.reverse().forEach((Q)=>{if(Q.before.length===0&&Q.after.length===0)z.push(Q);else z.push(...Z(Q))}),z},"expandRelativeMiddlewareList"),F=y((I=!1)=>{const z=[],Q=[],J={};return $.forEach((M)=>{const R={...M,before:[],after:[]};for(let B of z0(R.name,R.aliases))J[B]=R;z.push(R)}),U.forEach((M)=>{const R={...M,before:[],after:[]};for(let B of z0(R.name,R.aliases))J[B]=R;Q.push(R)}),Q.forEach((M)=>{if(M.toMiddleware){const R=J[M.toMiddleware];if(R===void 0){if(I)return;throw new Error(`${M.toMiddleware} is not found when adding ${w0(M.name,M.aliases)} middleware ${M.relation} ${M.toMiddleware}`)}if(M.relation==="after")R.after.push(M);if(M.relation==="before")R.before.push(M)}}),G(z).map(Z).reduce((M,R)=>{return M.push(...R),M},[])},"getMiddlewareList"),Y={add:(I,z={})=>{const{name:Q,override:J,aliases:V}=z,M={step:"initialize",priority:"normal",middleware:I,...z},R=z0(Q,V);if(R.length>0){if(R.some((B)=>f.has(B))){if(!J)throw new Error(`Duplicate middleware name '${w0(Q,V)}'`);for(let B of R){const A=$.findIndex((O)=>{var $0;return O.name===B||(($0=O.aliases)==null?void 0:$0.some((F0)=>F0===B))});if(A===-1)continue;const T=$[A];if(T.step!==M.step||M.priority!==T.priority)throw new Error(`"${w0(T.name,T.aliases)}" middleware with ${T.priority} priority in ${T.step} step cannot be overridden by "${w0(Q,V)}" middleware with ${M.priority} priority in ${M.step} step.`);$.splice(A,1)}}for(let B of R)f.add(B)}$.push(M)},addRelativeTo:(I,z)=>{const{name:Q,override:J,aliases:V}=z,M={middleware:I,...z},R=z0(Q,V);if(R.length>0){if(R.some((B)=>f.has(B))){if(!J)throw new Error(`Duplicate middleware name '${w0(Q,V)}'`);for(let B of R){const A=U.findIndex((O)=>{var $0;return O.name===B||(($0=O.aliases)==null?void 0:$0.some((F0)=>F0===B))});if(A===-1)continue;const T=U[A];if(T.toMiddleware!==M.toMiddleware||T.relation!==M.relation)throw new Error(`"${w0(T.name,T.aliases)}" middleware ${T.relation} "${T.toMiddleware}" middleware cannot be overridden by "${w0(Q,V)}" middleware ${M.relation} "${M.toMiddleware}" middleware.`);U.splice(A,1)}}for(let B of R)f.add(B)}U.push(M)},clone:()=>L(x$()),use:(I)=>{I.applyToStack(Y)},remove:(I)=>{if(typeof I==="string")return W(I);else return X(I)},removeByTag:(I)=>{let z=!1;const Q=y((J)=>{const{tags:V,name:M,aliases:R}=J;if(V&&V.includes(I)){const B=z0(M,R);for(let A of B)f.delete(A);return z=!0,!1}return!0},"filterCb");return $=$.filter(Q),U=U.filter(Q),z},concat:(I)=>{var z;const Q=L(x$());return Q.use(I),Q.identifyOnResolve(w||Q.identifyOnResolve()||(((z=I.identifyOnResolve)==null?void 0:z.call(I))??!1)),Q},applyToStack:L,identify:()=>{return F(!0).map((I)=>{const z=I.step??I.relation+" "+I.toMiddleware;return w0(I.name,I.aliases)+" - "+z})},identifyOnResolve(I){if(typeof I==="boolean")w=I;return w},resolve:(I,z)=>{for(let Q of F().map((J)=>J.middleware).reverse())I=Q(I,z);if(w)console.log(Y.identify());return I}};return Y},"constructStack"),Bf={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Vf={high:3,normal:2,low:1}});var u$=E((OR,Cf)=>{var{defineProperty:T1,getOwnPropertyDescriptor:UY,getOwnPropertyNames:wY}=Object,GY=Object.prototype.hasOwnProperty,fY=($,U)=>T1($,"name",{value:U,configurable:!0}),WY=($,U)=>{for(var w in U)T1($,w,{get:U[w],enumerable:!0})},XY=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of wY(U))if(!GY.call($,G)&&G!==w)T1($,G,{get:()=>U[G],enumerable:!(f=UY(U,G))||f.enumerable})}return $},LY=($)=>XY(T1({},"__esModule",{value:!0}),$),Hf={};WY(Hf,{isArrayBuffer:()=>ZY});Cf.exports=LY(Hf);var ZY=fY(($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]","isArrayBuffer")});var p0=E((HR,jf)=>{var{defineProperty:O1,getOwnPropertyDescriptor:FY,getOwnPropertyNames:YY}=Object,IY=Object.prototype.hasOwnProperty,qf=($,U)=>O1($,"name",{value:U,configurable:!0}),QY=($,U)=>{for(var w in U)O1($,w,{get:U[w],enumerable:!0})},zY=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of YY(U))if(!IY.call($,G)&&G!==w)O1($,G,{get:()=>U[G],enumerable:!(f=FY(U,G))||f.enumerable})}return $},JY=($)=>zY(O1({},"__esModule",{value:!0}),$),Nf={};QY(Nf,{fromArrayBuffer:()=>KY,fromString:()=>MY});jf.exports=JY(Nf);var RY=u$(),y$=import.meta.require("buffer"),KY=qf(($,U=0,w=$.byteLength-U)=>{if(!RY.isArrayBuffer($))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return y$.Buffer.from($,U,w)},"fromArrayBuffer"),MY=qf(($,U)=>{if(typeof $!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof $} (${$})`);return U?y$.Buffer.from($,U):y$.Buffer.from($)},"fromString")});var bf=E((Pf)=>{Object.defineProperty(Pf,"__esModule",{value:!0});Pf.fromBase64=void 0;var EY=p0(),BY=/^[A-Za-z0-9+/]*={0,2}$/,VY=($)=>{if($.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!BY.exec($))throw new TypeError("Invalid base64 string.");const U=EY.fromString($,"base64");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength)};Pf.fromBase64=VY});var G0=E((qR,cf)=>{var{defineProperty:H1,getOwnPropertyDescriptor:AY,getOwnPropertyNames:TY}=Object,OY=Object.prototype.hasOwnProperty,_$=($,U)=>H1($,"name",{value:U,configurable:!0}),HY=($,U)=>{for(var w in U)H1($,w,{get:U[w],enumerable:!0})},CY=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of TY(U))if(!OY.call($,G)&&G!==w)H1($,G,{get:()=>U[G],enumerable:!(f=AY(U,G))||f.enumerable})}return $},qY=($)=>CY(H1({},"__esModule",{value:!0}),$),hf={};HY(hf,{fromUtf8:()=>kf,toUint8Array:()=>NY,toUtf8:()=>jY});cf.exports=qY(hf);var Df=p0(),kf=_$(($)=>{const U=Df.fromString($,"utf8");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),NY=_$(($)=>{if(typeof $==="string")return kf($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},"toUint8Array"),jY=_$(($)=>{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 Df.fromArrayBuffer($.buffer,$.byteOffset,$.byteLength).toString("utf8")},"toUtf8")});var uf=E((vf)=>{Object.defineProperty(vf,"__esModule",{value:!0});vf.toBase64=void 0;var PY=p0(),SY=G0(),bY=($)=>{let U;if(typeof $==="string")U=SY.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 PY.fromArrayBuffer(U.buffer,U.byteOffset,U.byteLength).toString("base64")};vf.toBase64=bY});var q1=E((jR,C1)=>{var{defineProperty:yf,getOwnPropertyDescriptor:hY,getOwnPropertyNames:DY}=Object,kY=Object.prototype.hasOwnProperty,d$=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of DY(U))if(!kY.call($,G)&&G!==w)yf($,G,{get:()=>U[G],enumerable:!(f=hY(U,G))||f.enumerable})}return $},_f=($,U,w)=>(d$($,U,"default"),w&&d$(w,U,"default")),cY=($)=>d$(yf({},"__esModule",{value:!0}),$),p$={};C1.exports=cY(p$);_f(p$,bf(),C1.exports);_f(p$,uf(),C1.exports)});var gf=E((df)=>{Object.defineProperty(df,"__esModule",{value:!0});df.getAwsChunkedEncodingStream=void 0;var vY=import.meta.require("stream"),xY=($,U)=>{const{base64Encoder:w,bodyLengthChecker:f,checksumAlgorithmFn:G,checksumLocationName:W,streamHasher:X}=U,L=w!==void 0&&G!==void 0&&W!==void 0&&X!==void 0,Z=L?X(G,$):void 0,F=new vY.Readable({read:()=>{}});return $.on("data",(Y)=>{const I=f(Y)||0;F.push(`${I.toString(16)}\r\n`),F.push(Y),F.push("\r\n")}),$.on("end",async()=>{if(F.push("0\r\n"),L){const Y=w(await Z);F.push(`${W}:${Y}\r\n`),F.push("\r\n")}F.push(null)}),F};df.getAwsChunkedEncodingStream=xY});var l$=E((SR,mf)=>{var sf=function($){const U=[];for(let w of Object.keys($).sort()){const f=$[w];if(w=g$.escapeUri(w),Array.isArray(f))for(let G=0,W=f.length;G<W;G++)U.push(`${w}=${g$.escapeUri(f[G])}`);else{let G=w;if(f||typeof f==="string")G+=`=${g$.escapeUri(f)}`;U.push(G)}}return U.join("&")},N1=Object.defineProperty,uY=Object.getOwnPropertyDescriptor,yY=Object.getOwnPropertyNames,_Y=Object.prototype.hasOwnProperty,dY=($,U)=>N1($,"name",{value:U,configurable:!0}),pY=($,U)=>{for(var w in U)N1($,w,{get:U[w],enumerable:!0})},gY=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of yY(U))if(!_Y.call($,G)&&G!==w)N1($,G,{get:()=>U[G],enumerable:!(f=uY(U,G))||f.enumerable})}return $},lY=($)=>gY(N1({},"__esModule",{value:!0}),$),nf={};pY(nf,{buildQueryString:()=>sf});mf.exports=lY(nf);var g$=lf();dY(sf,"buildQueryString")});var I8=E((bR,Y8)=>{async function m$($,U,w=rf){const f=U.headers??{},G=f.Expect||f.expect;let W=-1,X=!1;if(G==="100-continue")await Promise.race([new Promise((L)=>{W=Number(setTimeout(L,Math.max(rf,w)))}),new Promise((L)=>{$.on("continue",()=>{clearTimeout(W),L()}),$.on("error",()=>{X=!0,clearTimeout(W),L()})})]);if(!X)G8($,U.body)}var G8=function($,U){if(U instanceof w8.Readable){U.pipe($);return}if(U){if(Buffer.isBuffer(U)||typeof U==="string"){$.end(U);return}const w=U;if(typeof w==="object"&&w.buffer&&typeof w.byteOffset==="number"&&typeof w.byteLength==="number"){$.end(Buffer.from(w.buffer,w.byteOffset,w.byteLength));return}$.end(Buffer.from(U));return}$.end()};async function F8($){const U=[],w=$.getReader();let f=!1,G=0;while(!f){const{done:L,value:Z}=await w.read();if(Z)U.push(Z),G+=Z.length;f=L}const W=new Uint8Array(G);let X=0;for(let L of U)W.set(L,X),X+=L.length;return W}var{create:nY,defineProperty:g0,getOwnPropertyDescriptor:sY,getOwnPropertyNames:mY,getPrototypeOf:iY}=Object,rY=Object.prototype.hasOwnProperty,j=($,U)=>g0($,"name",{value:U,configurable:!0}),oY=($,U)=>{for(var w in U)g0($,w,{get:U[w],enumerable:!0})},af=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of mY(U))if(!rY.call($,G)&&G!==w)g0($,G,{get:()=>U[G],enumerable:!(f=sY(U,G))||f.enumerable})}return $},aY=($,U,w)=>(w=$!=null?nY(iY($)):{},af(U||!$||!$.__esModule?g0(w,"default",{value:$,enumerable:!0}):w,$)),tY=($)=>af(g0({},"__esModule",{value:!0}),$),tf={};oY(tf,{DEFAULT_REQUEST_TIMEOUT:()=>G5,NodeHttp2Handler:()=>Z5,NodeHttpHandler:()=>f5,streamCollector:()=>Y5});Y8.exports=tY(tf);var ef=o(),$8=l$(),n$=import.meta.require("http"),s$=import.meta.require("https"),eY=["ECONNRESET","EPIPE","ETIMEDOUT"],U8=j(($)=>{const U={};for(let w of Object.keys($)){const f=$[w];U[w]=Array.isArray(f)?f.join(","):f}return U},"getTransformedHeaders"),$5=j(($,U,w=0)=>{if(!w)return;const f=setTimeout(()=>{$.destroy(),U(Object.assign(new Error(`Socket timed out without establishing a connection within ${w} ms`),{name:"TimeoutError"}))},w);$.on("socket",(G)=>{if(G.connecting)G.on("connect",()=>{clearTimeout(f)});else clearTimeout(f)})},"setConnectionTimeout"),U5=j(($,{keepAlive:U,keepAliveMsecs:w})=>{if(U!==!0)return;$.on("socket",(f)=>{f.setKeepAlive(U,w||0)})},"setSocketKeepAlive"),w5=j(($,U,w=0)=>{$.setTimeout(w,()=>{$.destroy(),U(Object.assign(new Error(`Connection timed out after ${w} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),w8=import.meta.require("stream"),rf=1000;j(m$,"writeRequestBody");j(G8,"writeBody");var G5=0,f8=class ${constructor(U){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((w,f)=>{if(typeof U==="function")U().then((G)=>{w(this.resolveDefaultConfig(G))}).catch(f);else w(this.resolveDefaultConfig(U))})}static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}static checkSocketUsage(U,w,f=console){var G,W,X;const{sockets:L,requests:Z,maxSockets:F}=U;if(typeof F!=="number"||F===Infinity)return w;const Y=15000;if(Date.now()-Y<w)return w;if(L&&Z)for(let I in L){const z=((G=L[I])==null?void 0:G.length)??0,Q=((W=Z[I])==null?void 0:W.length)??0;if(z>=F&&Q>=2*F)return(X=f==null?void 0:f.warn)==null||X.call(f,`@smithy/node-http-handler:WARN - socket usage at capacity=${z} and ${Q} 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 w}resolveDefaultConfig(U){const{requestTimeout:w,connectionTimeout:f,socketTimeout:G,httpAgent:W,httpsAgent:X}=U||{};return{connectionTimeout:f,requestTimeout:w??G,httpAgent:(()=>{if(W instanceof n$.Agent||typeof(W==null?void 0:W.destroy)==="function")return W;return new n$.Agent({keepAlive:!0,maxSockets:50,...W})})(),httpsAgent:(()=>{if(X instanceof s$.Agent||typeof(X==null?void 0:X.destroy)==="function")return X;return new s$.Agent({keepAlive:!0,maxSockets:50,...X})})(),logger:console}}destroy(){var U,w,f,G;(w=(U=this.config)==null?void 0:U.httpAgent)==null||w.destroy(),(G=(f=this.config)==null?void 0:f.httpsAgent)==null||G.destroy()}async handle(U,{abortSignal:w}={}){if(!this.config)this.config=await this.configProvider;let f;return new Promise((G,W)=>{let X=void 0;const L=j(async(B)=>{await X,clearTimeout(f),G(B)},"resolve"),Z=j(async(B)=>{await X,clearTimeout(f),W(B)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(w==null?void 0:w.aborted){const B=new Error("Request aborted");B.name="AbortError",Z(B);return}const F=U.protocol==="https:",Y=F?this.config.httpsAgent:this.config.httpAgent;f=setTimeout(()=>{this.socketWarningTimestamp=$.checkSocketUsage(Y,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const I=$8.buildQueryString(U.query||{});let z=void 0;if(U.username!=null||U.password!=null){const B=U.username??"",A=U.password??"";z=`${B}:${A}`}let Q=U.path;if(I)Q+=`?${I}`;if(U.fragment)Q+=`#${U.fragment}`;const J={headers:U.headers,host:U.hostname,method:U.method,path:Q,port:U.port,agent:Y,auth:z},M=(F?s$.request:n$.request)(J,(B)=>{const A=new ef.HttpResponse({statusCode:B.statusCode||-1,reason:B.statusMessage,headers:U8(B.headers),body:B});L({response:A})});if(M.on("error",(B)=>{if(eY.includes(B.code))Z(Object.assign(B,{name:"TimeoutError"}));else Z(B)}),$5(M,Z,this.config.connectionTimeout),w5(M,Z,this.config.requestTimeout),w){const B=j(()=>{M.destroy();const A=new Error("Request aborted");A.name="AbortError",Z(A)},"onAbort");if(typeof w.addEventListener==="function"){const A=w;A.addEventListener("abort",B,{once:!0}),M.once("close",()=>A.removeEventListener("abort",B))}else w.onabort=B}const R=J.agent;if(typeof R==="object"&&"keepAlive"in R)U5(M,{keepAlive:R.keepAlive,keepAliveMsecs:R.keepAliveMsecs});X=m$(M,U,this.config.requestTimeout).catch((B)=>{return clearTimeout(f),W(B)})})}updateHttpClientConfig(U,w){this.config=void 0,this.configProvider=this.configProvider.then((f)=>{return{...f,[U]:w}})}httpHandlerConfigs(){return this.config??{}}};j(f8,"NodeHttpHandler");var f5=f8,of=import.meta.require("http2"),W5=aY(import.meta.require("http2")),W8=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((w)=>w!==U)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(U){for(let w of this.sessions)if(w===U){if(!w.destroyed)w.destroy()}}};j(W8,"NodeHttp2ConnectionPool");var X5=W8,X8=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,w){const f=this.getUrlString(U),G=this.sessionCache.get(f);if(G){const Z=G.poll();if(Z&&!this.config.disableConcurrency)return Z}const W=W5.default.connect(f);if(this.config.maxConcurrency)W.settings({maxConcurrentStreams:this.config.maxConcurrency},(Z)=>{if(Z)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+U.destination.toString())});W.unref();const X=j(()=>{W.destroy(),this.deleteSession(f,W)},"destroySessionCb");if(W.on("goaway",X),W.on("error",X),W.on("frameError",X),W.on("close",()=>this.deleteSession(f,W)),w.requestTimeout)W.setTimeout(w.requestTimeout,X);const L=this.sessionCache.get(f)||new X5;return L.offerLast(W),this.sessionCache.set(f,L),W}deleteSession(U,w){const f=this.sessionCache.get(U);if(!f)return;if(!f.contains(w))return;f.remove(w),this.sessionCache.set(U,f)}release(U,w){var f;const G=this.getUrlString(U);(f=this.sessionCache.get(G))==null||f.offerLast(w)}destroy(){for(let[U,w]of this.sessionCache){for(let f of w){if(!f.destroyed)f.destroy();w.remove(f)}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()}};j(X8,"NodeHttp2ConnectionManager");var L5=X8,L8=class ${constructor(U){this.metadata={handlerProtocol:"h2"},this.connectionManager=new L5({}),this.configProvider=new Promise((w,f)=>{if(typeof U==="function")U().then((G)=>{w(G||{})}).catch(f);else w(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:w}={}){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:f,disableConcurrentStreams:G}=this.config;return new Promise((W,X)=>{var L;let Z=!1,F=void 0;const Y=j(async(N)=>{await F,W(N)},"resolve"),I=j(async(N)=>{await F,X(N)},"reject");if(w==null?void 0:w.aborted){Z=!0;const N=new Error("Request aborted");N.name="AbortError",I(N);return}const{hostname:z,method:Q,port:J,protocol:V,query:M}=U;let R="";if(U.username!=null||U.password!=null){const N=U.username??"",p=U.password??"";R=`${N}:${p}@`}const B=`${V}//${R}${z}${J?`:${J}`:""}`,A={destination:new URL(B)},T=this.connectionManager.lease(A,{requestTimeout:(L=this.config)==null?void 0:L.sessionTimeout,disableConcurrentStreams:G||!1}),O=j((N)=>{if(G)this.destroySession(T);Z=!0,I(N)},"rejectWithDestroy"),$0=$8.buildQueryString(M||{});let F0=U.path;if($0)F0+=`?${$0}`;if(U.fragment)F0+=`#${U.fragment}`;const v=T.request({...U.headers,[of.constants.HTTP2_HEADER_PATH]:F0,[of.constants.HTTP2_HEADER_METHOD]:Q});if(T.ref(),v.on("response",(N)=>{const p=new ef.HttpResponse({statusCode:N[":status"]||-1,headers:U8(N),body:v});if(Z=!0,Y({response:p}),G)T.close(),this.connectionManager.deleteSession(B,T)}),f)v.setTimeout(f,()=>{v.close();const N=new Error(`Stream timed out because of no activity for ${f} ms`);N.name="TimeoutError",O(N)});if(w){const N=j(()=>{v.close();const p=new Error("Request aborted");p.name="AbortError",O(p)},"onAbort");if(typeof w.addEventListener==="function"){const p=w;p.addEventListener("abort",N,{once:!0}),v.once("close",()=>p.removeEventListener("abort",N))}else w.onabort=N}v.on("frameError",(N,p,wL)=>{O(new Error(`Frame type id ${N} in stream id ${wL} has failed with code ${p}.`))}),v.on("error",O),v.on("aborted",()=>{O(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${v.rstCode}.`))}),v.on("close",()=>{if(T.unref(),G)T.destroy();if(!Z)O(new Error("Unexpected error: http2 request did not get a response"))}),F=m$(v,U,f)})}updateHttpClientConfig(U,w){this.config=void 0,this.configProvider=this.configProvider.then((f)=>{return{...f,[U]:w}})}httpHandlerConfigs(){return this.config??{}}destroySession(U){if(!U.destroyed)U.destroy()}};j(L8,"NodeHttp2Handler");var Z5=L8,Z8=class $ extends w8.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(U,w,f){this.bufferedBytes.push(U),f()}};j(Z8,"Collector");var F5=Z8,Y5=j(($)=>{if(I5($))return F8($);return new Promise((U,w)=>{const f=new F5;$.pipe(f),$.on("error",(G)=>{f.end(),w(G)}),f.on("error",w),f.on("finish",function(){const G=new Uint8Array(Buffer.concat(this.bufferedBytes));U(G)})})},"streamCollector"),I5=j(($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream,"isReadableStreamInstance");j(F8,"collectReadableStream")});var V8=E((hR,B8)=>{var J8=function($=0){return new Promise((U,w)=>{if($)setTimeout(()=>{const f=new Error(`Request did not complete within ${$} ms`);f.name="TimeoutError",w(f)},$)})};async function K8($){const U=await E8($),w=V5.fromBase64(U);return new Uint8Array(w)}async function M8($){const U=[],w=$.getReader();let f=!1,G=0;while(!f){const{done:L,value:Z}=await w.read();if(Z)U.push(Z),G+=Z.length;f=L}const W=new Uint8Array(G);let X=0;for(let L of U)W.set(L,X),X+=L.length;return W}var E8=function($){return new Promise((U,w)=>{const f=new FileReader;f.onloadend=()=>{if(f.readyState!==2)return w(new Error("Reader aborted too early"));const G=f.result??"",W=G.indexOf(","),X=W>-1?W+1:G.length;U(G.substring(X))},f.onabort=()=>w(new Error("Read aborted")),f.onerror=()=>w(f.error),f.readAsDataURL($)})},P1=Object.defineProperty,Q5=Object.getOwnPropertyDescriptor,z5=Object.getOwnPropertyNames,J5=Object.prototype.hasOwnProperty,t=($,U)=>P1($,"name",{value:U,configurable:!0}),R5=($,U)=>{for(var w in U)P1($,w,{get:U[w],enumerable:!0})},K5=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of z5(U))if(!J5.call($,G)&&G!==w)P1($,G,{get:()=>U[G],enumerable:!(f=Q5(U,G))||f.enumerable})}return $},M5=($)=>K5(P1({},"__esModule",{value:!0}),$),z8={};R5(z8,{FetchHttpHandler:()=>B5,keepAliveSupport:()=>j1,streamCollector:()=>A5});B8.exports=M5(z8);var Q8=o(),E5=l$();t(J8,"requestTimeout");var j1={supported:void 0},R8=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((w)=>w||{});else this.config=U??{},this.configProvider=Promise.resolve(this.config);if(j1.supported===void 0)j1.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in new Request("https://[::1]"))}destroy(){}async handle(U,{abortSignal:w}={}){if(!this.config)this.config=await this.configProvider;const f=this.config.requestTimeout,G=this.config.keepAlive===!0,W=this.config.credentials;if(w==null?void 0:w.aborted){const R=new Error("Request aborted");return R.name="AbortError",Promise.reject(R)}let X=U.path;const L=E5.buildQueryString(U.query||{});if(L)X+=`?${L}`;if(U.fragment)X+=`#${U.fragment}`;let Z="";if(U.username!=null||U.password!=null){const R=U.username??"",B=U.password??"";Z=`${R}:${B}@`}const{port:F,method:Y}=U,I=`${U.protocol}//${Z}${U.hostname}${F?`:${F}`:""}${X}`,z=Y==="GET"||Y==="HEAD"?void 0:U.body,Q={body:z,headers:new Headers(U.headers),method:Y,credentials:W};if(z)Q.duplex="half";if(typeof AbortController!=="undefined")Q.signal=w;if(j1.supported)Q.keepalive=G;let J=t(()=>{},"removeSignalEventListener");const V=new Request(I,Q),M=[fetch(V).then((R)=>{const B=R.headers,A={};for(let O of B.entries())A[O[0]]=O[1];if(R.body==null)return R.blob().then((O)=>({response:new Q8.HttpResponse({headers:A,reason:R.statusText,statusCode:R.status,body:O})}));return{response:new Q8.HttpResponse({headers:A,reason:R.statusText,statusCode:R.status,body:R.body})}}),J8(f)];if(w)M.push(new Promise((R,B)=>{const A=t(()=>{const T=new Error("Request aborted");T.name="AbortError",B(T)},"onAbort");if(typeof w.addEventListener==="function"){const T=w;T.addEventListener("abort",A,{once:!0}),J=t(()=>T.removeEventListener("abort",A),"removeSignalEventListener")}else w.onabort=A}));return Promise.race(M).finally(J)}updateHttpClientConfig(U,w){this.config=void 0,this.configProvider=this.configProvider.then((f)=>{return f[U]=w,f})}httpHandlerConfigs(){return this.config??{}}};t(R8,"FetchHttpHandler");var B5=R8,V5=q1(),A5=t(($)=>{if(typeof Blob==="function"&&$ instanceof Blob)return K8($);return M8($)},"streamCollector");t(K8,"collectBlob");t(M8,"collectStream");t(E8,"readToBase64")});var l0=E((A8)=>{Object.defineProperty(A8,"__esModule",{value:!0});A8.isReadableStream=void 0;var T5=($)=>{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)};A8.isReadableStream=T5});var P8=E((N8)=>{Object.defineProperty(N8,"__esModule",{value:!0});N8.sdkStreamMixin=void 0;var O5=V8(),H5=q1(),C5=q8(),q5=G0(),O8=l0(),H8="The stream has already been transformed.",N5=($)=>{var U,w;if(!C8($)&&!O8.isReadableStream($)){const X=((w=(U=$===null||$===void 0?void 0:$.__proto__)===null||U===void 0?void 0:U.constructor)===null||w===void 0?void 0:w.name)||$;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${X}`)}let f=!1;const G=async()=>{if(f)throw new Error(H8);return f=!0,await O5.streamCollector($)},W=(X)=>{if(typeof X.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 X.stream()};return Object.assign($,{transformToByteArray:G,transformToString:async(X)=>{const L=await G();if(X==="base64")return H5.toBase64(L);else if(X==="hex")return C5.toHex(L);else if(X===void 0||X==="utf8"||X==="utf-8")return q5.toUtf8(L);else if(typeof TextDecoder==="function")return new TextDecoder(X).decode(L);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(f)throw new Error(H8);if(f=!0,C8($))return W($);else if(O8.isReadableStream($))return $;else throw new Error(`Cannot transform payload to web stream, got ${$}`)}})};N8.sdkStreamMixin=N5;var C8=($)=>typeof Blob==="function"&&$ instanceof Blob});var D8=E((b8)=>{Object.defineProperty(b8,"__esModule",{value:!0});b8.sdkStreamMixin=void 0;var j5=I8(),P5=p0(),i$=import.meta.require("stream"),S5=import.meta.require("util"),b5=P8(),S8="The stream has already been transformed.",h5=($)=>{var U,w;if(!($ instanceof i$.Readable))try{return b5.sdkStreamMixin($)}catch(W){const X=((w=(U=$===null||$===void 0?void 0:$.__proto__)===null||U===void 0?void 0:U.constructor)===null||w===void 0?void 0:w.name)||$;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${X}`)}let f=!1;const G=async()=>{if(f)throw new Error(S8);return f=!0,await j5.streamCollector($)};return Object.assign($,{transformToByteArray:G,transformToString:async(W)=>{const X=await G();if(W===void 0||Buffer.isEncoding(W))return P5.fromArrayBuffer(X.buffer,X.byteOffset,X.byteLength).toString(W);else return new S5.TextDecoder(W).decode(X)},transformToWebStream:()=>{if(f)throw new Error(S8);if($.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof i$.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 f=!0,i$.Readable.toWeb($)}})};b8.sdkStreamMixin=h5});var v8=E((k8)=>{async function D5($){if(typeof $.stream==="function")$=$.stream();return $.tee()}Object.defineProperty(k8,"__esModule",{value:!0});k8.splitStream=void 0;k8.splitStream=D5});var _8=E((u8)=>{async function v5($){if(c5.isReadableStream($))return k5.splitStream($);const U=new x8.PassThrough,w=new x8.PassThrough;return $.pipe(U),$.pipe(w),[U,w]}Object.defineProperty(u8,"__esModule",{value:!0});u8.splitStream=void 0;var x8=import.meta.require("stream"),k5=v8(),c5=l0();u8.splitStream=v5});var g8=E((d8)=>{async function x5($,U){var w;let f=0;const G=[],W=$.getReader();let X=!1;while(!X){const{done:F,value:Y}=await W.read();if(Y)G.push(Y),f+=(w=Y===null||Y===void 0?void 0:Y.byteLength)!==null&&w!==void 0?w:0;if(f>=U)break;X=F}W.releaseLock();const L=new Uint8Array(Math.min(U,f));let Z=0;for(let F of G){if(F.byteLength>L.byteLength-Z){L.set(F.subarray(0,L.byteLength-Z),Z);break}else L.set(F,Z);Z+=F.length}return L}Object.defineProperty(d8,"__esModule",{value:!0});d8.headStream=void 0;d8.headStream=x5});var m8=E((n8)=>{Object.defineProperty(n8,"__esModule",{value:!0});n8.headStream=void 0;var u5=import.meta.require("stream"),y5=g8(),_5=l0(),d5=($,U)=>{if(_5.isReadableStream($))return y5.headStream($,U);return new Promise((w,f)=>{const G=new l8;G.limit=U,$.pipe(G),$.on("error",(W)=>{G.end(),f(W)}),G.on("error",f),G.on("finish",function(){const W=new Uint8Array(Buffer.concat(this.buffers));w(W)})})};n8.headStream=d5;class l8 extends u5.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=Infinity,this.bytesBuffered=0}_write($,U,w){var f;if(this.buffers.push($),this.bytesBuffered+=(f=$.byteLength)!==null&&f!==void 0?f:0,this.bytesBuffered>=this.limit){const G=this.bytesBuffered-this.limit,W=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=W.subarray(0,W.byteLength-G),this.emit("finish")}w()}}});var e8=E((_R,R0)=>{var o8=function($,U="utf-8"){if(U==="base64")return i8.toBase64($);return r8.toUtf8($)},a8=function($,U){if(U==="base64")return o$.mutate(i8.fromBase64($));return o$.mutate(r8.fromUtf8($))},S1=Object.defineProperty,p5=Object.getOwnPropertyDescriptor,g5=Object.getOwnPropertyNames,l5=Object.prototype.hasOwnProperty,a$=($,U)=>S1($,"name",{value:U,configurable:!0}),n5=($,U)=>{for(var w in U)S1($,w,{get:U[w],enumerable:!0})},r$=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of g5(U))if(!l5.call($,G)&&G!==w)S1($,G,{get:()=>U[G],enumerable:!(f=p5(U,G))||f.enumerable})}return $},n0=($,U,w)=>(r$($,U,"default"),w&&r$(w,U,"default")),s5=($)=>r$(S1({},"__esModule",{value:!0}),$),J0={};n5(J0,{Uint8ArrayBlobAdapter:()=>o$});R0.exports=s5(J0);var i8=q1(),r8=G0();a$(o8,"transformToString");a$(a8,"transformFromString");var t8=class $ extends Uint8Array{static fromString(U,w="utf-8"){switch(typeof U){case"string":return a8(U,w);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 o8(this,U)}};a$(t8,"Uint8ArrayBlobAdapter");var o$=t8;n0(J0,gf(),R0.exports);n0(J0,D8(),R0.exports);n0(J0,_8(),R0.exports);n0(J0,m8(),R0.exports);n0(J0,l0(),R0.exports)});var j0=E((dR,TW)=>{var zW=function($){const U=$.getUTCFullYear(),w=$.getUTCMonth(),f=$.getUTCDay(),G=$.getUTCDate(),W=$.getUTCHours(),X=$.getUTCMinutes(),L=$.getUTCSeconds(),Z=G<10?`0${G}`:`${G}`,F=W<10?`0${W}`:`${W}`,Y=X<10?`0${X}`:`${X}`,I=L<10?`0${L}`:`${L}`;return`${VI[f]}, ${Z} ${ZU[w]} ${U} ${F}:${Y}:${I} GMT`},D1=function($){return encodeURIComponent($).replace(/[!'()*]/g,function(U){return"%"+U.charCodeAt(0).toString(16).toUpperCase()})},FU=function($,U,w){let f,G,W;if(typeof U==="undefined"&&typeof w==="undefined")f={},W=$;else if(f=$,typeof U==="function")return G=U,W=w,eI(f,G,W);else W=U;for(let X of Object.keys(W)){if(!Array.isArray(W[X])){f[X]=W[X];continue}VW(f,null,W,X)}return f},AW=function($,U,w){if(w<=0||!Number.isInteger(w))throw new Error("Invalid number of delimiters ("+w+") for splitEvery.");const f=$.split(U);if(w===1)return f;const G=[];let W="";for(let X=0;X<f.length;X++){if(W==="")W=f[X];else W+=U+f[X];if((X+1)%w===0)G.push(W),W=""}if(W!=="")G.push(W);return G},k1=Object.defineProperty,m5=Object.getOwnPropertyDescriptor,i5=Object.getOwnPropertyNames,r5=Object.prototype.hasOwnProperty,K=($,U)=>k1($,"name",{value:U,configurable:!0}),o5=($,U)=>{for(var w in U)k1($,w,{get:U[w],enumerable:!0})},a5=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of i5(U))if(!r5.call($,G)&&G!==w)k1($,G,{get:()=>U[G],enumerable:!(f=m5(U,G))||f.enumerable})}return $},t5=($)=>a5(k1({},"__esModule",{value:!0}),$),UW={};o5(UW,{Client:()=>$I,Command:()=>XW,LazyJsonString:()=>oI,NoOpLogger:()=>e5,SENSITIVE_STRING:()=>GI,ServiceException:()=>uI,StringWrapper:()=>o0,_json:()=>fU,collectBody:()=>UI,convertMap:()=>aI,createAggregatedClient:()=>fI,dateToUtcString:()=>zW,decorateServiceException:()=>RW,emitWarningIfUnsupportedVersion:()=>pI,expectBoolean:()=>XI,expectByte:()=>GU,expectFloat32:()=>b1,expectInt:()=>ZI,expectInt32:()=>UU,expectLong:()=>i0,expectNonNull:()=>YI,expectNumber:()=>m0,expectObject:()=>ZW,expectShort:()=>wU,expectString:()=>II,expectUnion:()=>QI,extendedEncodeURIComponent:()=>D1,getArrayIfSingleItem:()=>rI,getDefaultClientConfiguration:()=>mI,getDefaultExtensionConfiguration:()=>MW,getValueFromTextNode:()=>EW,handleFloat:()=>RI,limitedParseDouble:()=>LU,limitedParseFloat:()=>KI,limitedParseFloat32:()=>MI,loadConfigsForDefaultMode:()=>dI,logger:()=>r0,map:()=>FU,parseBoolean:()=>WI,parseEpochTimestamp:()=>PI,parseRfc3339DateTime:()=>TI,parseRfc3339DateTimeWithOffset:()=>HI,parseRfc7231DateTime:()=>jI,resolveDefaultRuntimeConfig:()=>iI,resolvedPath:()=>wQ,serializeDateTime:()=>fQ,serializeFloat:()=>GQ,splitEvery:()=>AW,strictParseByte:()=>QW,strictParseDouble:()=>XU,strictParseFloat:()=>zI,strictParseFloat32:()=>FW,strictParseInt:()=>EI,strictParseInt32:()=>BI,strictParseLong:()=>IW,strictParseShort:()=>C0,take:()=>tI,throwDefaultError:()=>KW,withBaseException:()=>yI});TW.exports=t5(UW);var wW=class ${trace(){}debug(){}info(){}warn(){}error(){}};K(wW,"NoOpLogger");var e5=wW,GW=Of(),fW=class ${constructor(U){this.middlewareStack=GW.constructStack(),this.config=U}send(U,w,f){const G=typeof w!=="function"?w:void 0,W=typeof w==="function"?w:f,X=U.resolveMiddleware(this.middlewareStack,this.config,G);if(W)X(U).then((L)=>W(null,L.output),(L)=>W(L)).catch(()=>{});else return X(U).then((L)=>L.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}};K(fW,"Client");var $I=fW,t$=e8(),UI=K(async($=new Uint8Array,U)=>{if($ instanceof Uint8Array)return t$.Uint8ArrayBlobAdapter.mutate($);if(!$)return t$.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const w=U.streamCollector($);return t$.Uint8ArrayBlobAdapter.mutate(await w)},"collectBody"),$U=A0(),WW=class ${constructor(){this.middlewareStack=GW.constructStack()}static classBuilder(){return new wI}resolveMiddlewareWithContext(U,w,f,{middlewareFn:G,clientName:W,commandName:X,inputFilterSensitiveLog:L,outputFilterSensitiveLog:Z,smithyContext:F,additionalContext:Y,CommandCtor:I}){for(let M of G.bind(this)(I,U,w,f))this.middlewareStack.use(M);const z=U.concat(this.middlewareStack),{logger:Q}=w,J={logger:Q,clientName:W,commandName:X,inputFilterSensitiveLog:L,outputFilterSensitiveLog:Z,[$U.SMITHY_CONTEXT_KEY]:{commandInstance:this,...F},...Y},{requestHandler:V}=w;return z.resolve((M)=>V.handle(M.request,f||{}),J)}};K(WW,"Command");var XW=WW,LW=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,w,f={}){return this._smithyContext={service:U,operation:w,...f},this}c(U={}){return this._additionalContext=U,this}n(U,w){return this._clientName=U,this._commandName=w,this}f(U=(f)=>f,w=(f)=>f){return this._inputFilterSensitiveLog=U,this._outputFilterSensitiveLog=w,this}ser(U){return this._serializer=U,this}de(U){return this._deserializer=U,this}build(){var U;const w=this;let f;return f=(U=class extends XW{constructor(...[G]){super();this.serialize=w._serializer,this.deserialize=w._deserializer,this.input=G??{},w._init(this)}static getEndpointParameterInstructions(){return w._ep}resolveMiddleware(G,W,X){return this.resolveMiddlewareWithContext(G,W,X,{CommandCtor:f,middlewareFn:w._middlewareFn,clientName:w._clientName,commandName:w._commandName,inputFilterSensitiveLog:w._inputFilterSensitiveLog,outputFilterSensitiveLog:w._outputFilterSensitiveLog,smithyContext:w._smithyContext,additionalContext:w._additionalContext})}},K(U,"CommandRef"),U)}};K(LW,"ClassBuilder");var wI=LW,GI="***SensitiveInformation***",fI=K(($,U)=>{for(let w of Object.keys($)){const f=$[w],G=K(async function(X,L,Z){const F=new f(X);if(typeof L==="function")this.send(F,L);else if(typeof Z==="function"){if(typeof L!=="object")throw new Error(`Expected http options but got ${typeof L}`);this.send(F,L||{},Z)}else return this.send(F,L)},"methodImpl"),W=(w[0].toLowerCase()+w.slice(1)).replace(/Command$/,"");U.prototype[W]=G}},"createAggregatedClient"),WI=K(($)=>{switch($){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${$}"`)}},"parseBoolean"),XI=K(($)=>{if($===null||$===void 0)return;if(typeof $==="number"){if($===0||$===1)r0.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")r0.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"),m0=K(($)=>{if($===null||$===void 0)return;if(typeof $==="string"){const U=parseFloat($);if(!Number.isNaN(U)){if(String(U)!==String($))r0.warn(h1(`Expected number but observed string: ${$}`));return U}}if(typeof $==="number")return $;throw new TypeError(`Expected number, got ${typeof $}: ${$}`)},"expectNumber"),LI=Math.ceil(340282346638528860000000000000000000000),b1=K(($)=>{const U=m0($);if(U!==void 0&&!Number.isNaN(U)&&U!==Infinity&&U!==(-Infinity)){if(Math.abs(U)>LI)throw new TypeError(`Expected 32-bit float, got ${$}`)}return U},"expectFloat32"),i0=K(($)=>{if($===null||$===void 0)return;if(Number.isInteger($)&&!Number.isNaN($))return $;throw new TypeError(`Expected integer, got ${typeof $}: ${$}`)},"expectLong"),ZI=i0,UU=K(($)=>WU($,32),"expectInt32"),wU=K(($)=>WU($,16),"expectShort"),GU=K(($)=>WU($,8),"expectByte"),WU=K(($,U)=>{const w=i0($);if(w!==void 0&&FI(w,U)!==w)throw new TypeError(`Expected ${U}-bit integer, got ${$}`);return w},"expectSizedInt"),FI=K(($,U)=>{switch(U){case 32:return Int32Array.of($)[0];case 16:return Int16Array.of($)[0];case 8:return Int8Array.of($)[0]}},"castInt"),YI=K(($,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"),ZW=K(($)=>{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"),II=K(($)=>{if($===null||$===void 0)return;if(typeof $==="string")return $;if(["boolean","number","bigint"].includes(typeof $))return r0.warn(h1(`Expected string, got ${typeof $}: ${$}`)),String($);throw new TypeError(`Expected string, got ${typeof $}: ${$}`)},"expectString"),QI=K(($)=>{if($===null||$===void 0)return;const U=ZW($),w=Object.entries(U).filter(([,f])=>f!=null).map(([f])=>f);if(w.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(w.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${w} were not null.`);return U},"expectUnion"),XU=K(($)=>{if(typeof $=="string")return m0(N0($));return m0($)},"strictParseDouble"),zI=XU,FW=K(($)=>{if(typeof $=="string")return b1(N0($));return b1($)},"strictParseFloat32"),JI=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,N0=K(($)=>{const U=$.match(JI);if(U===null||U[0].length!==$.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat($)},"parseNumber"),LU=K(($)=>{if(typeof $=="string")return YW($);return m0($)},"limitedParseDouble"),RI=LU,KI=LU,MI=K(($)=>{if(typeof $=="string")return YW($);return b1($)},"limitedParseFloat32"),YW=K(($)=>{switch($){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return (-Infinity);default:throw new Error(`Unable to parse float value: ${$}`)}},"parseFloatString"),IW=K(($)=>{if(typeof $==="string")return i0(N0($));return i0($)},"strictParseLong"),EI=IW,BI=K(($)=>{if(typeof $==="string")return UU(N0($));return UU($)},"strictParseInt32"),C0=K(($)=>{if(typeof $==="string")return wU(N0($));return wU($)},"strictParseShort"),QW=K(($)=>{if(typeof $==="string")return GU(N0($));return GU($)},"strictParseByte"),h1=K(($)=>{return String(new TypeError($).stack||$).split("\n").slice(0,5).filter((U)=>!U.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),r0={warn:console.warn},VI=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ZU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];K(zW,"dateToUtcString");var AI=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),TI=K(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const U=AI.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");const[w,f,G,W,X,L,Z,F]=U,Y=C0(q0(f)),I=i(G,"month",1,12),z=i(W,"day",1,31);return s0(Y,I,z,{hours:X,minutes:L,seconds:Z,fractionalMilliseconds:F})},"parseRfc3339DateTime"),OI=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),HI=K(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const U=OI.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");const[w,f,G,W,X,L,Z,F,Y]=U,I=C0(q0(f)),z=i(G,"month",1,12),Q=i(W,"day",1,31),J=s0(I,z,Q,{hours:X,minutes:L,seconds:Z,fractionalMilliseconds:F});if(Y.toUpperCase()!="Z")J.setTime(J.getTime()-xI(Y));return J},"parseRfc3339DateTimeWithOffset"),CI=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$/),qI=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$/),NI=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})$/),jI=K(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let U=CI.exec($);if(U){const[w,f,G,W,X,L,Z,F]=U;return s0(C0(q0(W)),e$(G),i(f,"day",1,31),{hours:X,minutes:L,seconds:Z,fractionalMilliseconds:F})}if(U=qI.exec($),U){const[w,f,G,W,X,L,Z,F]=U;return hI(s0(SI(W),e$(G),i(f,"day",1,31),{hours:X,minutes:L,seconds:Z,fractionalMilliseconds:F}))}if(U=NI.exec($),U){const[w,f,G,W,X,L,Z,F]=U;return s0(C0(q0(F)),e$(f),i(G.trimLeft(),"day",1,31),{hours:W,minutes:X,seconds:L,fractionalMilliseconds:Z})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),PI=K(($)=>{if($===null||$===void 0)return;let U;if(typeof $==="number")U=$;else if(typeof $==="string")U=XU($);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"),s0=K(($,U,w,f)=>{const G=U-1;return kI($,G,w),new Date(Date.UTC($,G,w,i(f.hours,"hour",0,23),i(f.minutes,"minute",0,59),i(f.seconds,"seconds",0,60),vI(f.fractionalMilliseconds)))},"buildDate"),SI=K(($)=>{const U=(new Date()).getUTCFullYear(),w=Math.floor(U/100)*100+C0(q0($));if(w<U)return w+100;return w},"parseTwoDigitYear"),bI=1576800000000,hI=K(($)=>{if($.getTime()-(new Date()).getTime()>bI)return new Date(Date.UTC($.getUTCFullYear()-100,$.getUTCMonth(),$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),$.getUTCMilliseconds()));return $},"adjustRfc850Year"),e$=K(($)=>{const U=ZU.indexOf($);if(U<0)throw new TypeError(`Invalid month: ${$}`);return U+1},"parseMonthByShortName"),DI=[31,28,31,30,31,30,31,31,30,31,30,31],kI=K(($,U,w)=>{let f=DI[U];if(U===1&&cI($))f=29;if(w>f)throw new TypeError(`Invalid day for ${ZU[U]} in ${$}: ${w}`)},"validateDayOfMonth"),cI=K(($)=>{return $%4===0&&($%100!==0||$%400===0)},"isLeapYear"),i=K(($,U,w,f)=>{const G=QW(q0($));if(G<w||G>f)throw new TypeError(`${U} must be between ${w} and ${f}, inclusive`);return G},"parseDateValue"),vI=K(($)=>{if($===null||$===void 0)return 0;return FW("0."+$)*1000},"parseMilliseconds"),xI=K(($)=>{const U=$[0];let w=1;if(U=="+")w=1;else if(U=="-")w=-1;else throw new TypeError(`Offset direction, ${U}, must be "+" or "-"`);const f=Number($.substring(1,3)),G=Number($.substring(4,6));return w*(f*60+G)*60*1000},"parseOffsetToMilliseconds"),q0=K(($)=>{let U=0;while(U<$.length-1&&$.charAt(U)==="0")U++;if(U===0)return $;return $.slice(U)},"stripLeadingZeroes"),JW=class $ extends Error{constructor(U){super(U.message);Object.setPrototypeOf(this,$.prototype),this.name=U.name,this.$fault=U.$fault,this.$metadata=U.$metadata}};K(JW,"ServiceException");var uI=JW,RW=K(($,U={})=>{Object.entries(U).filter(([,f])=>f!==void 0).forEach(([f,G])=>{if($[f]==null||$[f]==="")$[f]=G});const w=$.message||$.Message||"UnknownError";return $.message=w,delete $.Message,$},"decorateServiceException"),KW=K(({output:$,parsedBody:U,exceptionCtor:w,errorCode:f})=>{const G=_I($),W=G.httpStatusCode?G.httpStatusCode+"":void 0,X=new w({name:(U==null?void 0:U.code)||(U==null?void 0:U.Code)||f||W||"UnknownError",$fault:"client",$metadata:G});throw RW(X,U)},"throwDefaultError"),yI=K(($)=>{return({output:U,parsedBody:w,errorCode:f})=>{KW({output:U,parsedBody:w,exceptionCtor:$,errorCode:f})}},"withBaseException"),_I=K(($)=>({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"),dI=K(($)=>{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"),$W=!1,pI=K(($)=>{if($&&!$W&&parseInt($.substring(1,$.indexOf(".")))<16)$W=!0},"emitWarningIfUnsupportedVersion"),gI=K(($)=>{const U=[];for(let w in $U.AlgorithmId){const f=$U.AlgorithmId[w];if($[f]===void 0)continue;U.push({algorithmId:()=>f,checksumConstructor:()=>$[f]})}return{_checksumAlgorithms:U,addChecksumAlgorithm(w){this._checksumAlgorithms.push(w)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),lI=K(($)=>{const U={};return $.checksumAlgorithms().forEach((w)=>{U[w.algorithmId()]=w.checksumConstructor()}),U},"resolveChecksumRuntimeConfig"),nI=K(($)=>{let U=$.retryStrategy;return{setRetryStrategy(w){U=w},retryStrategy(){return U}}},"getRetryConfiguration"),sI=K(($)=>{const U={};return U.retryStrategy=$.retryStrategy(),U},"resolveRetryRuntimeConfig"),MW=K(($)=>{return{...gI($),...nI($)}},"getDefaultExtensionConfiguration"),mI=MW,iI=K(($)=>{return{...lI($),...sI($)}},"resolveDefaultRuntimeConfig");K(D1,"extendedEncodeURIComponent");var rI=K(($)=>Array.isArray($)?$:[$],"getArrayIfSingleItem"),EW=K(($)=>{for(let w in $)if($.hasOwnProperty(w)&&$[w]["#text"]!==void 0)$[w]=$[w]["#text"];else if(typeof $[w]==="object"&&$[w]!==null)$[w]=EW($[w]);return $},"getValueFromTextNode"),o0=K(function(){const $=Object.getPrototypeOf(this).constructor,w=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(w,$.prototype),w},"StringWrapper");o0.prototype=Object.create(String.prototype,{constructor:{value:o0,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(o0,String);var BW=class $ extends o0{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))}};K(BW,"LazyJsonString");var oI=BW;K(FU,"map");var aI=K(($)=>{const U={};for(let[w,f]of Object.entries($||{}))U[w]=[,f];return U},"convertMap"),tI=K(($,U)=>{const w={};for(let f in U)VW(w,$,U,f);return w},"take"),eI=K(($,U,w)=>{return FU($,Object.entries(w).reduce((f,[G,W])=>{if(Array.isArray(W))f[G]=W;else if(typeof W==="function")f[G]=[U,W()];else f[G]=[U,W];return f},{}))},"mapWithFilter"),VW=K(($,U,w,f)=>{if(U!==null){let X=w[f];if(typeof X==="function")X=[,X];const[L=$Q,Z=UQ,F=f]=X;if(typeof L==="function"&&L(U[F])||typeof L!=="function"&&!!L)$[f]=Z(U[F]);return}let[G,W]=w[f];if(typeof W==="function"){let X;const L=G===void 0&&(X=W())!=null,Z=typeof G==="function"&&!!G(void 0)||typeof G!=="function"&&!!G;if(L)$[f]=X;else if(Z)$[f]=W()}else{const X=G===void 0&&W!=null,L=typeof G==="function"&&!!G(W)||typeof G!=="function"&&!!G;if(X||L)$[f]=W}},"applyInstruction"),$Q=K(($)=>$!=null,"nonNullish"),UQ=K(($)=>$,"pass"),wQ=K(($,U,w,f,G,W)=>{if(U!=null&&U[w]!==void 0){const X=f();if(X.length<=0)throw new Error("Empty value provided for input HTTP label: "+w+".");$=$.replace(G,W?X.split("/").map((L)=>D1(L)).join("/"):D1(X))}else throw new Error("No value provided for input HTTP label: "+w+".");return $},"resolvedPath"),GQ=K(($)=>{if($!==$)return"NaN";switch($){case Infinity:return"Infinity";case (-Infinity):return"-Infinity";default:return $}},"serializeFloat"),fQ=K(($)=>$.toISOString().replace(".000Z","Z"),"serializeDateTime"),fU=K(($)=>{if($==null)return{};if(Array.isArray($))return $.filter((U)=>U!=null).map(fU);if(typeof $==="object"){const U={};for(let w of Object.keys($)){if($[w]==null)continue;U[w]=fU($[w])}return U}return $},"_json");K(AW,"splitEvery")});var CW=E((OW)=>{Object.defineProperty(OW,"__esModule",{value:!0});OW.isStreamingPayload=void 0;var WQ=import.meta.require("stream"),XQ=($)=>($===null||$===void 0?void 0:$.body)instanceof WQ.Readable||typeof ReadableStream!=="undefined"&&($===null||$===void 0?void 0:$.body)instanceof ReadableStream;OW.isStreamingPayload=XQ});var gW=E((lR,pW)=>{var{defineProperty:c1,getOwnPropertyDescriptor:LQ,getOwnPropertyNames:ZQ}=Object,FQ=Object.prototype.hasOwnProperty,S=($,U)=>c1($,"name",{value:U,configurable:!0}),YQ=($,U)=>{for(var w in U)c1($,w,{get:U[w],enumerable:!0})},IQ=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of ZQ(U))if(!FQ.call($,G)&&G!==w)c1($,G,{get:()=>U[G],enumerable:!(f=LQ(U,G))||f.enumerable})}return $},QQ=($)=>IQ(c1({},"__esModule",{value:!0}),$),NW={};YQ(NW,{AdaptiveRetryStrategy:()=>RQ,CONFIG_MAX_ATTEMPTS:()=>IU,CONFIG_RETRY_MODE:()=>vW,ENV_MAX_ATTEMPTS:()=>YU,ENV_RETRY_MODE:()=>cW,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>KQ,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>EQ,StandardRetryStrategy:()=>DW,defaultDelayDecider:()=>PW,defaultRetryDecider:()=>SW,getOmitRetryHeadersPlugin:()=>BQ,getRetryAfterHint:()=>dW,getRetryPlugin:()=>CQ,omitRetryHeadersMiddleware:()=>xW,omitRetryHeadersMiddlewareOptions:()=>uW,resolveRetryConfig:()=>MQ,retryMiddleware:()=>yW,retryMiddlewareOptions:()=>_W});pW.exports=QQ(NW);var P0=o(),jW=h$(),q=Ef(),zQ=S(($,U)=>{const w=$,f=(U==null?void 0:U.noRetryIncrement)??q.NO_RETRY_INCREMENT,G=(U==null?void 0:U.retryCost)??q.RETRY_COST,W=(U==null?void 0:U.timeoutRetryCost)??q.TIMEOUT_RETRY_COST;let X=$;const L=S((I)=>I.name==="TimeoutError"?W:G,"getCapacityAmount"),Z=S((I)=>L(I)<=X,"hasRetryTokens");return Object.freeze({hasRetryTokens:Z,retrieveRetryTokens:S((I)=>{if(!Z(I))throw new Error("No retry token available");const z=L(I);return X-=z,z},"retrieveRetryTokens"),releaseRetryTokens:S((I)=>{X+=I??f,X=Math.min(X,w)},"releaseRetryTokens")})},"getDefaultRetryQuota"),PW=S(($,U)=>Math.floor(Math.min(q.MAXIMUM_RETRY_DELAY,Math.random()*2**U*$)),"defaultDelayDecider"),f0=Q0(),SW=S(($)=>{if(!$)return!1;return f0.isRetryableByTrait($)||f0.isClockSkewError($)||f0.isThrottlingError($)||f0.isTransientError($)},"defaultRetryDecider"),bW=S(($)=>{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"),hW=class ${constructor(U,w){this.maxAttemptsProvider=U,this.mode=q.RETRY_MODES.STANDARD,this.retryDecider=(w==null?void 0:w.retryDecider)??SW,this.delayDecider=(w==null?void 0:w.delayDecider)??PW,this.retryQuota=(w==null?void 0:w.retryQuota)??zQ(q.INITIAL_RETRY_TOKENS)}shouldRetry(U,w,f){return w<f&&this.retryDecider(U)&&this.retryQuota.hasRetryTokens(U)}async getMaxAttempts(){let U;try{U=await this.maxAttemptsProvider()}catch(w){U=q.DEFAULT_MAX_ATTEMPTS}return U}async retry(U,w,f){let G,W=0,X=0;const L=await this.getMaxAttempts(),{request:Z}=w;if(P0.HttpRequest.isInstance(Z))Z.headers[q.INVOCATION_ID_HEADER]=jW.v4();while(!0)try{if(P0.HttpRequest.isInstance(Z))Z.headers[q.REQUEST_HEADER]=`attempt=${W+1}; max=${L}`;if(f==null?void 0:f.beforeRequest)await f.beforeRequest();const{response:F,output:Y}=await U(w);if(f==null?void 0:f.afterRequest)f.afterRequest(F);return this.retryQuota.releaseRetryTokens(G),Y.$metadata.attempts=W+1,Y.$metadata.totalRetryDelay=X,{response:F,output:Y}}catch(F){const Y=bW(F);if(W++,this.shouldRetry(Y,W,L)){G=this.retryQuota.retrieveRetryTokens(Y);const I=this.delayDecider(f0.isThrottlingError(Y)?q.THROTTLING_RETRY_DELAY_BASE:q.DEFAULT_RETRY_DELAY_BASE,W),z=JQ(Y.$response),Q=Math.max(z||0,I);X+=Q,await new Promise((J)=>setTimeout(J,Q));continue}if(!Y.$metadata)Y.$metadata={};throw Y.$metadata.attempts=W,Y.$metadata.totalRetryDelay=X,Y}}};S(hW,"StandardRetryStrategy");var DW=hW,JQ=S(($)=>{if(!P0.HttpResponse.isInstance($))return;const U=Object.keys($.headers).find((W)=>W.toLowerCase()==="retry-after");if(!U)return;const w=$.headers[U],f=Number(w);if(!Number.isNaN(f))return f*1000;return new Date(w).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),kW=class $ extends DW{constructor(U,w){const{rateLimiter:f,...G}=w??{};super(U,G);this.rateLimiter=f??new q.DefaultRateLimiter,this.mode=q.RETRY_MODES.ADAPTIVE}async retry(U,w){return super.retry(U,w,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(f)=>{this.rateLimiter.updateClientSendingRate(f)}})}};S(kW,"AdaptiveRetryStrategy");var RQ=kW,qW=m(),YU="AWS_MAX_ATTEMPTS",IU="max_attempts",KQ={environmentVariableSelector:($)=>{const U=$[YU];if(!U)return;const w=parseInt(U);if(Number.isNaN(w))throw new Error(`Environment variable ${YU} mast be a number, got "${U}"`);return w},configFileSelector:($)=>{const U=$[IU];if(!U)return;const w=parseInt(U);if(Number.isNaN(w))throw new Error(`Shared config file entry ${IU} mast be a number, got "${U}"`);return w},default:q.DEFAULT_MAX_ATTEMPTS},MQ=S(($)=>{const{retryStrategy:U}=$,w=qW.normalizeProvider($.maxAttempts??q.DEFAULT_MAX_ATTEMPTS);return{...$,maxAttempts:w,retryStrategy:async()=>{if(U)return U;if(await qW.normalizeProvider($.retryMode)()===q.RETRY_MODES.ADAPTIVE)return new q.AdaptiveRetryStrategy(w);return new q.StandardRetryStrategy(w)}}},"resolveRetryConfig"),cW="AWS_RETRY_MODE",vW="retry_mode",EQ={environmentVariableSelector:($)=>$[cW],configFileSelector:($)=>$[vW],default:q.DEFAULT_RETRY_MODE},xW=S(()=>($)=>async(U)=>{const{request:w}=U;if(P0.HttpRequest.isInstance(w))delete w.headers[q.INVOCATION_ID_HEADER],delete w.headers[q.REQUEST_HEADER];return $(U)},"omitRetryHeadersMiddleware"),uW={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},BQ=S(($)=>({applyToStack:(U)=>{U.addRelativeTo(xW(),uW)}}),"getOmitRetryHeadersPlugin"),VQ=j0(),AQ=CW(),yW=S(($)=>(U,w)=>async(f)=>{var G;let W=await $.retryStrategy();const X=await $.maxAttempts();if(TQ(W)){W=W;let L=await W.acquireInitialRetryToken(w.partition_id),Z=new Error,F=0,Y=0;const{request:I}=f,z=P0.HttpRequest.isInstance(I);if(z)I.headers[q.INVOCATION_ID_HEADER]=jW.v4();while(!0)try{if(z)I.headers[q.REQUEST_HEADER]=`attempt=${F+1}; max=${X}`;const{response:Q,output:J}=await U(f);return W.recordSuccess(L),J.$metadata.attempts=F+1,J.$metadata.totalRetryDelay=Y,{response:Q,output:J}}catch(Q){const J=OQ(Q);if(Z=bW(Q),z&&AQ.isStreamingPayload(I))throw(G=w.logger instanceof VQ.NoOpLogger?console:w.logger)==null||G.warn("An error was encountered in a non-retryable streaming request."),Z;try{L=await W.refreshRetryTokenForRetry(L,J)}catch(M){if(!Z.$metadata)Z.$metadata={};throw Z.$metadata.attempts=F+1,Z.$metadata.totalRetryDelay=Y,Z}F=L.getRetryCount();const V=L.getRetryDelay();Y+=V,await new Promise((M)=>setTimeout(M,V))}}else{if(W=W,W==null?void 0:W.mode)w.userAgent=[...w.userAgent||[],["cfg/retry-mode",W.mode]];return W.retry(U,f)}},"retryMiddleware"),TQ=S(($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined","isRetryStrategyV2"),OQ=S(($)=>{const U={error:$,errorType:HQ($)},w=dW($.$response);if(w)U.retryAfterHint=w;return U},"getRetryErrorInfo"),HQ=S(($)=>{if(f0.isThrottlingError($))return"THROTTLING";if(f0.isTransientError($))return"TRANSIENT";if(f0.isServerError($))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),_W={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},CQ=S(($)=>({applyToStack:(U)=>{U.add(yW($),_W)}}),"getRetryPlugin"),dW=S(($)=>{if(!P0.HttpResponse.isInstance($))return;const U=Object.keys($.headers).find((W)=>W.toLowerCase()==="retry-after");if(!U)return;const w=$.headers[U],f=Number(w);if(!Number.isNaN(f))return new Date(f*1000);return new Date(w)},"getRetryAfterHint")});var zU=E((nR,Z4)=>{var sW=function($){const U=new Map;for(let w of $)U.set(w.schemeId,w);return U},f4=function($,U){return new X4($,U)},L4=function($,U,w,f,G){return C(async function*W(X,L,...Z){let F=X.startingToken||void 0,Y=!0,I;while(Y){if(L[w]=F,G)L[G]=L[G]??X.pageSize;if(X.client instanceof $)I=await rQ(U,X.client,L,...Z);else throw new Error(`Invalid client, expected instance of ${$.name}`);yield I;const z=F;F=oQ(I,f),Y=!!(F&&(!X.stopOnSameToken||F!==z))}return},"paginateOperation")},x1=Object.defineProperty,qQ=Object.getOwnPropertyDescriptor,NQ=Object.getOwnPropertyNames,jQ=Object.prototype.hasOwnProperty,C=($,U)=>x1($,"name",{value:U,configurable:!0}),PQ=($,U)=>{for(var w in U)x1($,w,{get:U[w],enumerable:!0})},SQ=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of NQ(U))if(!jQ.call($,G)&&G!==w)x1($,G,{get:()=>U[G],enumerable:!(f=qQ(U,G))||f.enumerable})}return $},bQ=($)=>SQ(x1({},"__esModule",{value:!0}),$),lW={};PQ(lW,{DefaultIdentityProviderConfig:()=>_Q,EXPIRATION_MS:()=>w4,HttpApiKeyAuthSigner:()=>dQ,HttpBearerAuthSigner:()=>pQ,NoAuthSigner:()=>gQ,RequestBuilder:()=>X4,createIsIdentityExpiredFunction:()=>U4,createPaginator:()=>L4,doesIdentityRequireRefresh:()=>G4,getHttpAuthSchemeEndpointRuleSetPlugin:()=>DQ,getHttpAuthSchemePlugin:()=>cQ,getHttpSigningPlugin:()=>yQ,getSmithyContext:()=>sQ,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>mW,httpAuthSchemeMiddleware:()=>QU,httpAuthSchemeMiddlewareOptions:()=>iW,httpSigningMiddleware:()=>rW,httpSigningMiddlewareOptions:()=>oW,isIdentityExpired:()=>lQ,memoizeIdentityProvider:()=>nQ,normalizeProvider:()=>mQ,requestBuilder:()=>f4});Z4.exports=bQ(lW);var nW=m();C(sW,"convertHttpAuthSchemesToMap");var QU=C(($,U)=>(w,f)=>async(G)=>{var W;const X=$.httpAuthSchemeProvider(await U.httpAuthSchemeParametersProvider($,f,G.input)),L=sW($.httpAuthSchemes),Z=nW.getSmithyContext(f),F=[];for(let Y of X){const I=L.get(Y.schemeId);if(!I){F.push(`HttpAuthScheme \`${Y.schemeId}\` was not enabled for this service.`);continue}const z=I.identityProvider(await U.identityProviderConfigProvider($));if(!z){F.push(`HttpAuthScheme \`${Y.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:Q={},signingProperties:J={}}=((W=Y.propertiesExtractor)==null?void 0:W.call(Y,$,f))||{};Y.identityProperties=Object.assign(Y.identityProperties||{},Q),Y.signingProperties=Object.assign(Y.signingProperties||{},J),Z.selectedHttpAuthScheme={httpAuthOption:Y,identity:await z(Y.identityProperties),signer:I.signer};break}if(!Z.selectedHttpAuthScheme)throw new Error(F.join("\n"));return w(G)},"httpAuthSchemeMiddleware"),hQ=tw(),mW={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:hQ.endpointMiddlewareOptions.name},DQ=C(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:w})=>({applyToStack:(f)=>{f.addRelativeTo(QU($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:w}),mW)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),kQ=H$(),iW={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:kQ.serializerMiddlewareOption.name},cQ=C(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:w})=>({applyToStack:(f)=>{f.addRelativeTo(QU($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:w}),iW)}}),"getHttpAuthSchemePlugin"),u1=o(),vQ=C(($)=>(U)=>{throw U},"defaultErrorHandler"),xQ=C(($,U)=>{},"defaultSuccessHandler"),rW=C(($)=>(U,w)=>async(f)=>{if(!u1.HttpRequest.isInstance(f.request))return U(f);const W=nW.getSmithyContext(w).selectedHttpAuthScheme;if(!W)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:X={}},identity:L,signer:Z}=W,F=await U({...f,request:await Z.sign(f.request,L,X)}).catch((Z.errorHandler||vQ)(X));return(Z.successHandler||xQ)(F.response,X),F},"httpSigningMiddleware"),uQ=gW(),oW={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:uQ.retryMiddlewareOptions.name},yQ=C(($)=>({applyToStack:(U)=>{U.addRelativeTo(rW($),oW)}}),"getHttpSigningPlugin"),aW=class ${constructor(U){this.authSchemes=new Map;for(let[w,f]of Object.entries(U))if(f!==void 0)this.authSchemes.set(w,f)}getIdentityProvider(U){return this.authSchemes.get(U)}};C(aW,"DefaultIdentityProviderConfig");var _Q=aW,v1=A0(),tW=class ${async sign(U,w,f){if(!f)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!f.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!f.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!w.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");const G=u1.HttpRequest.clone(U);if(f.in===v1.HttpApiKeyAuthLocation.QUERY)G.query[f.name]=w.apiKey;else if(f.in===v1.HttpApiKeyAuthLocation.HEADER)G.headers[f.name]=f.scheme?`${f.scheme} ${w.apiKey}`:w.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+f.in+"`");return G}};C(tW,"HttpApiKeyAuthSigner");var dQ=tW,eW=class ${async sign(U,w,f){const G=u1.HttpRequest.clone(U);if(!w.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return G.headers.Authorization=`Bearer ${w.token}`,G}};C(eW,"HttpBearerAuthSigner");var pQ=eW,$4=class ${async sign(U,w,f){return U}};C($4,"NoAuthSigner");var gQ=$4,U4=C(($)=>(U)=>G4(U)&&U.expiration.getTime()-Date.now()<$,"createIsIdentityExpiredFunction"),w4=300000,lQ=U4(w4),G4=C(($)=>$.expiration!==void 0,"doesIdentityRequireRefresh"),nQ=C(($,U,w)=>{if($===void 0)return;const f=typeof $!=="function"?async()=>Promise.resolve($):$;let G,W,X,L=!1;const Z=C(async(F)=>{if(!W)W=f(F);try{G=await W,X=!0,L=!1}finally{W=void 0}return G},"coalesceProvider");if(U===void 0)return async(F)=>{if(!X||(F==null?void 0:F.forceRefresh))G=await Z(F);return G};return async(F)=>{if(!X||(F==null?void 0:F.forceRefresh))G=await Z(F);if(L)return G;if(!w(G))return L=!0,G;if(U(G))return await Z(F),G;return G}},"memoizeIdentityProvider"),sQ=C(($)=>$[v1.SMITHY_CONTEXT_KEY]||($[v1.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),mQ=C(($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U},"normalizeProvider"),iQ=j0();C(f4,"requestBuilder");var W4=class ${constructor(U,w){this.input=U,this.context=w,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:U,protocol:w="https",port:f,path:G}=await this.context.endpoint();this.path=G;for(let W of this.resolvePathStack)W(this.path);return new u1.HttpRequest({protocol:w,hostname:this.hostname||U,port:f,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((w)=>{this.path=`${(w==null?void 0:w.endsWith("/"))?w.slice(0,-1):w||""}`+U}),this}p(U,w,f,G){return this.resolvePathStack.push((W)=>{this.path=iQ.resolvedPath(W,this.input,U,w,f,G)}),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(W4,"RequestBuilder");var X4=W4,rQ=C(async($,U,w,...f)=>{return await U.send(new $(w),...f)},"makePagedClientRequest");C(L4,"createPaginator");var oQ=C(($,U)=>{let w=$;const f=U.split(".");for(let G of f){if(!w||typeof w!=="object")return;w=w[G]}return w},"get")});var C6=E((tV,G$)=>{var t4,e4,$6,U6,w6,G6,f6,W6,X6,L6,Z6,F6,Y6,U$,kU,I6,Q6,z6,k0,J6,R6,K6,M6,E6,B6,V6,A6,T6,w$,O6,H6;(function($){var U=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(f){$(w(U,w(f)))});else if(typeof G$==="object"&&typeof tV==="object")$(w(U,w(tV)));else $(w(U));function w(f,G){if(f!==U)if(typeof Object.create==="function")Object.defineProperty(f,"__esModule",{value:!0});else f.__esModule=!0;return function(W,X){return f[W]=G?G(W,X):X}}})(function($){var U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,W){G.__proto__=W}||function(G,W){for(var X in W)if(Object.prototype.hasOwnProperty.call(W,X))G[X]=W[X]};t4=function(G,W){if(typeof W!=="function"&&W!==null)throw new TypeError("Class extends value "+String(W)+" is not a constructor or null");U(G,W);function X(){this.constructor=G}G.prototype=W===null?Object.create(W):(X.prototype=W.prototype,new X)},e4=Object.assign||function(G){for(var W,X=1,L=arguments.length;X<L;X++){W=arguments[X];for(var Z in W)if(Object.prototype.hasOwnProperty.call(W,Z))G[Z]=W[Z]}return G},$6=function(G,W){var X={};for(var L in G)if(Object.prototype.hasOwnProperty.call(G,L)&&W.indexOf(L)<0)X[L]=G[L];if(G!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var Z=0,L=Object.getOwnPropertySymbols(G);Z<L.length;Z++)if(W.indexOf(L[Z])<0&&Object.prototype.propertyIsEnumerable.call(G,L[Z]))X[L[Z]]=G[L[Z]]}return X},U6=function(G,W,X,L){var Z=arguments.length,F=Z<3?W:L===null?L=Object.getOwnPropertyDescriptor(W,X):L,Y;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")F=Reflect.decorate(G,W,X,L);else for(var I=G.length-1;I>=0;I--)if(Y=G[I])F=(Z<3?Y(F):Z>3?Y(W,X,F):Y(W,X))||F;return Z>3&&F&&Object.defineProperty(W,X,F),F},w6=function(G,W){return function(X,L){W(X,L,G)}},G6=function(G,W,X,L,Z,F){function Y(O){if(O!==void 0&&typeof O!=="function")throw new TypeError("Function expected");return O}var I=L.kind,z=I==="getter"?"get":I==="setter"?"set":"value",Q=!W&&G?L.static?G:G.prototype:null,J=W||(Q?Object.getOwnPropertyDescriptor(Q,L.name):{}),V,M=!1;for(var R=X.length-1;R>=0;R--){var B={};for(var A in L)B[A]=A==="access"?{}:L[A];for(var A in L.access)B.access[A]=L.access[A];B.addInitializer=function(O){if(M)throw new TypeError("Cannot add initializers after decoration has completed");F.push(Y(O||null))};var T=X[R](I==="accessor"?{get:J.get,set:J.set}:J[z],B);if(I==="accessor"){if(T===void 0)continue;if(T===null||typeof T!=="object")throw new TypeError("Object expected");if(V=Y(T.get))J.get=V;if(V=Y(T.set))J.set=V;if(V=Y(T.init))Z.unshift(V)}else if(V=Y(T))if(I==="field")Z.unshift(V);else J[z]=V}if(Q)Object.defineProperty(Q,L.name,J);M=!0},f6=function(G,W,X){var L=arguments.length>2;for(var Z=0;Z<W.length;Z++)X=L?W[Z].call(G,X):W[Z].call(G);return L?X:void 0},W6=function(G){return typeof G==="symbol"?G:"".concat(G)},X6=function(G,W,X){if(typeof W==="symbol")W=W.description?"[".concat(W.description,"]"):"";return Object.defineProperty(G,"name",{configurable:!0,value:X?"".concat(X," ",W):W})},L6=function(G,W){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(G,W)},Z6=function(G,W,X,L){function Z(F){return F instanceof X?F:new X(function(Y){Y(F)})}return new(X||(X=Promise))(function(F,Y){function I(J){try{Q(L.next(J))}catch(V){Y(V)}}function z(J){try{Q(L.throw(J))}catch(V){Y(V)}}function Q(J){J.done?F(J.value):Z(J.value).then(I,z)}Q((L=L.apply(G,W||[])).next())})},F6=function(G,W){var X={label:0,sent:function(){if(F[0]&1)throw F[1];return F[1]},trys:[],ops:[]},L,Z,F,Y;return Y={next:I(0),throw:I(1),return:I(2)},typeof Symbol==="function"&&(Y[Symbol.iterator]=function(){return this}),Y;function I(Q){return function(J){return z([Q,J])}}function z(Q){if(L)throw new TypeError("Generator is already executing.");while(Y&&(Y=0,Q[0]&&(X=0)),X)try{if(L=1,Z&&(F=Q[0]&2?Z.return:Q[0]?Z.throw||((F=Z.return)&&F.call(Z),0):Z.next)&&!(F=F.call(Z,Q[1])).done)return F;if(Z=0,F)Q=[Q[0]&2,F.value];switch(Q[0]){case 0:case 1:F=Q;break;case 4:return X.label++,{value:Q[1],done:!1};case 5:X.label++,Z=Q[1],Q=[0];continue;case 7:Q=X.ops.pop(),X.trys.pop();continue;default:if((F=X.trys,!(F=F.length>0&&F[F.length-1]))&&(Q[0]===6||Q[0]===2)){X=0;continue}if(Q[0]===3&&(!F||Q[1]>F[0]&&Q[1]<F[3])){X.label=Q[1];break}if(Q[0]===6&&X.label<F[1]){X.label=F[1],F=Q;break}if(F&&X.label<F[2]){X.label=F[2],X.ops.push(Q);break}if(F[2])X.ops.pop();X.trys.pop();continue}Q=W.call(G,X)}catch(J){Q=[6,J],Z=0}finally{L=F=0}if(Q[0]&5)throw Q[1];return{value:Q[0]?Q[1]:void 0,done:!0}}},Y6=function(G,W){for(var X in G)if(X!=="default"&&!Object.prototype.hasOwnProperty.call(W,X))w$(W,G,X)},w$=Object.create?function(G,W,X,L){if(L===void 0)L=X;var Z=Object.getOwnPropertyDescriptor(W,X);if(!Z||("get"in Z?!W.__esModule:Z.writable||Z.configurable))Z={enumerable:!0,get:function(){return W[X]}};Object.defineProperty(G,L,Z)}:function(G,W,X,L){if(L===void 0)L=X;G[L]=W[X]},U$=function(G){var W=typeof Symbol==="function"&&Symbol.iterator,X=W&&G[W],L=0;if(X)return X.call(G);if(G&&typeof G.length==="number")return{next:function(){if(G&&L>=G.length)G=void 0;return{value:G&&G[L++],done:!G}}};throw new TypeError(W?"Object is not iterable.":"Symbol.iterator is not defined.")},kU=function(G,W){var X=typeof Symbol==="function"&&G[Symbol.iterator];if(!X)return G;var L=X.call(G),Z,F=[],Y;try{while((W===void 0||W-- >0)&&!(Z=L.next()).done)F.push(Z.value)}catch(I){Y={error:I}}finally{try{if(Z&&!Z.done&&(X=L.return))X.call(L)}finally{if(Y)throw Y.error}}return F},I6=function(){for(var G=[],W=0;W<arguments.length;W++)G=G.concat(kU(arguments[W]));return G},Q6=function(){for(var G=0,W=0,X=arguments.length;W<X;W++)G+=arguments[W].length;for(var L=Array(G),Z=0,W=0;W<X;W++)for(var F=arguments[W],Y=0,I=F.length;Y<I;Y++,Z++)L[Z]=F[Y];return L},z6=function(G,W,X){if(X||arguments.length===2){for(var L=0,Z=W.length,F;L<Z;L++)if(F||!(L in W)){if(!F)F=Array.prototype.slice.call(W,0,L);F[L]=W[L]}}return G.concat(F||Array.prototype.slice.call(W))},k0=function(G){return this instanceof k0?(this.v=G,this):new k0(G)},J6=function(G,W,X){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var L=X.apply(G,W||[]),Z,F=[];return Z={},I("next"),I("throw"),I("return",Y),Z[Symbol.asyncIterator]=function(){return this},Z;function Y(R){return function(B){return Promise.resolve(B).then(R,V)}}function I(R,B){if(L[R]){if(Z[R]=function(A){return new Promise(function(T,O){F.push([R,A,T,O])>1||z(R,A)})},B)Z[R]=B(Z[R])}}function z(R,B){try{Q(L[R](B))}catch(A){M(F[0][3],A)}}function Q(R){R.value instanceof k0?Promise.resolve(R.value.v).then(J,V):M(F[0][2],R)}function J(R){z("next",R)}function V(R){z("throw",R)}function M(R,B){if(R(B),F.shift(),F.length)z(F[0][0],F[0][1])}},R6=function(G){var W,X;return W={},L("next"),L("throw",function(Z){throw Z}),L("return"),W[Symbol.iterator]=function(){return this},W;function L(Z,F){W[Z]=G[Z]?function(Y){return(X=!X)?{value:k0(G[Z](Y)),done:!1}:F?F(Y):Y}:F}},K6=function(G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var W=G[Symbol.asyncIterator],X;return W?W.call(G):(G=typeof U$==="function"?U$(G):G[Symbol.iterator](),X={},L("next"),L("throw"),L("return"),X[Symbol.asyncIterator]=function(){return this},X);function L(F){X[F]=G[F]&&function(Y){return new Promise(function(I,z){Y=G[F](Y),Z(I,z,Y.done,Y.value)})}}function Z(F,Y,I,z){Promise.resolve(z).then(function(Q){F({value:Q,done:I})},Y)}},M6=function(G,W){if(Object.defineProperty)Object.defineProperty(G,"raw",{value:W});else G.raw=W;return G};var w=Object.create?function(G,W){Object.defineProperty(G,"default",{enumerable:!0,value:W})}:function(G,W){G.default=W};E6=function(G){if(G&&G.__esModule)return G;var W={};if(G!=null){for(var X in G)if(X!=="default"&&Object.prototype.hasOwnProperty.call(G,X))w$(W,G,X)}return w(W,G),W},B6=function(G){return G&&G.__esModule?G:{default:G}},V6=function(G,W,X,L){if(X==="a"&&!L)throw new TypeError("Private accessor was defined without a getter");if(typeof W==="function"?G!==W||!L:!W.has(G))throw new TypeError("Cannot read private member from an object whose class did not declare it");return X==="m"?L:X==="a"?L.call(G):L?L.value:W.get(G)},A6=function(G,W,X,L,Z){if(L==="m")throw new TypeError("Private method is not writable");if(L==="a"&&!Z)throw new TypeError("Private accessor was defined without a setter");if(typeof W==="function"?G!==W||!Z:!W.has(G))throw new TypeError("Cannot write private member to an object whose class did not declare it");return L==="a"?Z.call(G,X):Z?Z.value=X:W.set(G,X),X},T6=function(G,W){if(W===null||typeof W!=="object"&&typeof W!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof G==="function"?W===G:G.has(W)},O6=function(G,W,X){if(W!==null&&W!==void 0){if(typeof W!=="object"&&typeof W!=="function")throw new TypeError("Object expected.");var L,Z;if(X){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");L=W[Symbol.asyncDispose]}if(L===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(L=W[Symbol.dispose],X)Z=L}if(typeof L!=="function")throw new TypeError("Object not disposable.");if(Z)L=function(){try{Z.call(this)}catch(F){return Promise.reject(F)}};G.stack.push({value:W,dispose:L,async:X})}else if(X)G.stack.push({async:!0});return W};var f=typeof SuppressedError==="function"?SuppressedError:function(G,W,X){var L=new Error(X);return L.name="SuppressedError",L.error=G,L.suppressed=W,L};H6=function(G){function W(L){G.error=G.hasError?new f(L,G.error,"An error was suppressed during disposal."):L,G.hasError=!0}function X(){while(G.stack.length){var L=G.stack.pop();try{var Z=L.dispose&&L.dispose.call(L.value);if(L.async)return Promise.resolve(Z).then(X,function(F){return W(F),X()})}catch(F){W(F)}}if(G.hasError)throw G.error}return X()},$("__extends",t4),$("__assign",e4),$("__rest",$6),$("__decorate",U6),$("__param",w6),$("__esDecorate",G6),$("__runInitializers",f6),$("__propKey",W6),$("__setFunctionName",X6),$("__metadata",L6),$("__awaiter",Z6),$("__generator",F6),$("__exportStar",Y6),$("__createBinding",w$),$("__values",U$),$("__read",kU),$("__spread",I6),$("__spreadArrays",Q6),$("__spreadArray",z6),$("__await",k0),$("__asyncGenerator",J6),$("__asyncDelegator",R6),$("__asyncValues",K6),$("__makeTemplateObject",M6),$("__importStar",E6),$("__importDefault",B6),$("__classPrivateFieldGet",V6),$("__classPrivateFieldSet",A6),$("__classPrivateFieldIn",T6),$("__addDisposableResource",O6),$("__disposeResources",H6)})});var P6=E((eV,j6)=>{var{defineProperty:f$,getOwnPropertyDescriptor:h9,getOwnPropertyNames:D9}=Object,k9=Object.prototype.hasOwnProperty,c9=($,U)=>f$($,"name",{value:U,configurable:!0}),v9=($,U)=>{for(var w in U)f$($,w,{get:U[w],enumerable:!0})},x9=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of D9(U))if(!k9.call($,G)&&G!==w)f$($,G,{get:()=>U[G],enumerable:!(f=h9(U,G))||f.enumerable})}return $},u9=($)=>x9(f$({},"__esModule",{value:!0}),$),N6={};v9(N6,{emitWarningIfUnsupportedVersion:()=>y9});j6.exports=u9(N6);var q6=!1,y9=c9(($)=>{if($&&!q6&&parseInt($.substring(1,$.indexOf(".")))<18)q6=!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 r6=E(($A,i6)=>{var yU=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,_9=Object.getOwnPropertyDescriptor,d9=Object.getOwnPropertyNames,p9=Object.prototype.hasOwnProperty,b=($,U)=>F$($,"name",{value:U,configurable:!0}),g9=($,U)=>{for(var w in U)F$($,w,{get:U[w],enumerable:!0})},l9=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of d9(U))if(!p9.call($,G)&&G!==w)F$($,G,{get:()=>U[G],enumerable:!(f=_9(U,G))||f.enumerable})}return $},n9=($)=>l9(F$({},"__esModule",{value:!0}),$),k6={};g9(k6,{SignatureV4:()=>M7,clearCredentialCache:()=>Z7,createScope:()=>L$,getCanonicalHeaders:()=>uU,getCanonicalQuery:()=>p6,getPayloadHash:()=>Z$,getSigningKey:()=>d6,moveHeadersToQuery:()=>s6,prepareRequest:()=>_U});i6.exports=n9(k6);var S6=m(),cU=G0(),s9="X-Amz-Algorithm",m9="X-Amz-Credential",c6="X-Amz-Date",i9="X-Amz-SignedHeaders",r9="X-Amz-Expires",v6="X-Amz-Signature",x6="X-Amz-Security-Token",u6="authorization",y6=c6.toLowerCase(),o9="date",a9=[u6,y6,o9],t9=v6.toLowerCase(),xU="x-amz-content-sha256",e9=x6.toLowerCase(),$7={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},U7=/^proxy-/,w7=/^sec-/,vU="AWS4-HMAC-SHA256",G7="AWS4-HMAC-SHA256-PAYLOAD",f7="UNSIGNED-PAYLOAD",W7=50,_6="aws4_request",X7=604800,L0=q8(),L7=G0(),c0={},X$=[],L$=b(($,U,w)=>`${$}/${U}/${w}/${_6}`,"createScope"),d6=b(async($,U,w,f,G)=>{const W=await b6($,U.secretAccessKey,U.accessKeyId),X=`${w}:${f}:${G}:${L0.toHex(W)}:${U.sessionToken}`;if(X in c0)return c0[X];X$.push(X);while(X$.length>W7)delete c0[X$.shift()];let L=`AWS4${U.secretAccessKey}`;for(let Z of[w,f,G,_6])L=await b6($,L,Z);return c0[X]=L},"getSigningKey"),Z7=b(()=>{X$.length=0,Object.keys(c0).forEach(($)=>{delete c0[$]})},"clearCredentialCache"),b6=b(($,U,w)=>{const f=new $(U);return f.update(L7.toUint8Array(w)),f.digest()},"hmac"),uU=b(({headers:$},U,w)=>{const f={};for(let G of Object.keys($).sort()){if($[G]==null)continue;const W=G.toLowerCase();if(W in $7||(U==null?void 0:U.has(W))||U7.test(W)||w7.test(W)){if(!w||w&&!w.has(W))continue}f[W]=$[G].trim().replace(/\s+/g," ")}return f},"getCanonicalHeaders"),U1=lf(),p6=b(({query:$={}})=>{const U=[],w={};for(let f of Object.keys($).sort()){if(f.toLowerCase()===t9)continue;U.push(f);const G=$[f];if(typeof G==="string")w[f]=`${U1.escapeUri(f)}=${U1.escapeUri(G)}`;else if(Array.isArray(G))w[f]=G.slice(0).reduce((W,X)=>W.concat([`${U1.escapeUri(f)}=${U1.escapeUri(X)}`]),[]).sort().join("&")}return U.map((f)=>w[f]).filter((f)=>f).join("&")},"getCanonicalQuery"),F7=u$(),Y7=G0(),Z$=b(async({headers:$,body:U},w)=>{for(let f of Object.keys($))if(f.toLowerCase()===xU)return $[f];if(U==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof U==="string"||ArrayBuffer.isView(U)||F7.isArrayBuffer(U)){const f=new w;return f.update(Y7.toUint8Array(U)),L0.toHex(await f.digest())}return f7},"getPayloadHash"),h6=G0(),g6=class ${format(U){const w=[];for(let W of Object.keys(U)){const X=h6.fromUtf8(W);w.push(Uint8Array.from([X.byteLength]),X,this.formatHeaderValue(U[W]))}const f=new Uint8Array(w.reduce((W,X)=>W+X.byteLength,0));let G=0;for(let W of w)f.set(W,G),G+=W.byteLength;return f}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 w=new DataView(new ArrayBuffer(3));return w.setUint8(0,3),w.setInt16(1,U.value,!1),new Uint8Array(w.buffer);case"integer":const f=new DataView(new ArrayBuffer(5));return f.setUint8(0,4),f.setInt32(1,U.value,!1),new Uint8Array(f.buffer);case"long":const G=new Uint8Array(9);return G[0]=5,G.set(U.value.bytes,1),G;case"binary":const W=new DataView(new ArrayBuffer(3+U.value.byteLength));W.setUint8(0,6),W.setUint16(1,U.value.byteLength,!1);const X=new Uint8Array(W.buffer);return X.set(U.value,3),X;case"string":const L=h6.fromUtf8(U.value),Z=new DataView(new ArrayBuffer(3+L.byteLength));Z.setUint8(0,7),Z.setUint16(1,L.byteLength,!1);const F=new Uint8Array(Z.buffer);return F.set(L,3),F;case"timestamp":const Y=new Uint8Array(9);return Y[0]=8,Y.set(z7.fromNumber(U.value.valueOf()).bytes,1),Y;case"uuid":if(!Q7.test(U.value))throw new Error(`Invalid UUID received: ${U.value}`);const I=new Uint8Array(17);return I[0]=9,I.set(L0.fromHex(U.value.replace(/\-/g,"")),1),I}}};b(g6,"HeaderFormatter");var I7=g6,Q7=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,l6=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 w=new Uint8Array(8);for(let f=7,G=Math.abs(Math.round(U));f>-1&&G>0;f--,G/=256)w[f]=G;if(U<0)yU(w);return new $(w)}valueOf(){const U=this.bytes.slice(0),w=U[0]&128;if(w)yU(U);return parseInt(L0.toHex(U),16)*(w?-1:1)}toString(){return String(this.valueOf())}};b(l6,"Int64");var z7=l6;b(yU,"negate");var J7=b(($,U)=>{$=$.toLowerCase();for(let w of Object.keys(U))if($===w.toLowerCase())return!0;return!1},"hasHeader"),n6=o(),s6=b(($,U={})=>{var w;const{headers:f,query:G={}}=n6.HttpRequest.clone($);for(let W of Object.keys(f)){const X=W.toLowerCase();if(X.slice(0,6)==="x-amz-"&&!((w=U.unhoistableHeaders)==null?void 0:w.has(X)))G[W]=f[W],delete f[W]}return{...$,headers:f,query:G}},"moveHeadersToQuery"),_U=b(($)=>{$=n6.HttpRequest.clone($);for(let U of Object.keys($.headers))if(a9.indexOf(U.toLowerCase())>-1)delete $.headers[U];return $},"prepareRequest"),R7=b(($)=>K7($).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),K7=b(($)=>{if(typeof $==="number")return new Date($*1000);if(typeof $==="string"){if(Number($))return new Date(Number($)*1000);return new Date($)}return $},"toDate"),m6=class ${constructor({applyChecksum:U,credentials:w,region:f,service:G,sha256:W,uriEscapePath:X=!0}){this.headerFormatter=new I7,this.service=G,this.sha256=W,this.uriEscapePath=X,this.applyChecksum=typeof U==="boolean"?U:!0,this.regionProvider=S6.normalizeProvider(f),this.credentialProvider=S6.normalizeProvider(w)}async presign(U,w={}){const{signingDate:f=new Date,expiresIn:G=3600,unsignableHeaders:W,unhoistableHeaders:X,signableHeaders:L,signingRegion:Z,signingService:F}=w,Y=await this.credentialProvider();this.validateResolvedCredentials(Y);const I=Z??await this.regionProvider(),{longDate:z,shortDate:Q}=W$(f);if(G>X7)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const J=L$(Q,I,F??this.service),V=s6(_U(U),{unhoistableHeaders:X});if(Y.sessionToken)V.query[x6]=Y.sessionToken;V.query[s9]=vU,V.query[m9]=`${Y.accessKeyId}/${J}`,V.query[c6]=z,V.query[r9]=G.toString(10);const M=uU(V,W,L);return V.query[i9]=D6(M),V.query[v6]=await this.getSignature(z,J,this.getSigningKey(Y,I,Q,F),this.createCanonicalRequest(V,M,await Z$(U,this.sha256))),V}async sign(U,w){if(typeof U==="string")return this.signString(U,w);else if(U.headers&&U.payload)return this.signEvent(U,w);else if(U.message)return this.signMessage(U,w);else return this.signRequest(U,w)}async signEvent({headers:U,payload:w},{signingDate:f=new Date,priorSignature:G,signingRegion:W,signingService:X}){const L=W??await this.regionProvider(),{shortDate:Z,longDate:F}=W$(f),Y=L$(Z,L,X??this.service),I=await Z$({headers:{},body:w},this.sha256),z=new this.sha256;z.update(U);const Q=L0.toHex(await z.digest()),J=[G7,F,Y,G,Q,I].join("\n");return this.signString(J,{signingDate:f,signingRegion:L,signingService:X})}async signMessage(U,{signingDate:w=new Date,signingRegion:f,signingService:G}){return this.signEvent({headers:this.headerFormatter.format(U.message.headers),payload:U.message.body},{signingDate:w,signingRegion:f,signingService:G,priorSignature:U.priorSignature}).then((X)=>{return{message:U.message,signature:X}})}async signString(U,{signingDate:w=new Date,signingRegion:f,signingService:G}={}){const W=await this.credentialProvider();this.validateResolvedCredentials(W);const X=f??await this.regionProvider(),{shortDate:L}=W$(w),Z=new this.sha256(await this.getSigningKey(W,X,L,G));return Z.update(cU.toUint8Array(U)),L0.toHex(await Z.digest())}async signRequest(U,{signingDate:w=new Date,signableHeaders:f,unsignableHeaders:G,signingRegion:W,signingService:X}={}){const L=await this.credentialProvider();this.validateResolvedCredentials(L);const Z=W??await this.regionProvider(),F=_U(U),{longDate:Y,shortDate:I}=W$(w),z=L$(I,Z,X??this.service);if(F.headers[y6]=Y,L.sessionToken)F.headers[e9]=L.sessionToken;const Q=await Z$(F,this.sha256);if(!J7(xU,F.headers)&&this.applyChecksum)F.headers[xU]=Q;const J=uU(F,G,f),V=await this.getSignature(Y,z,this.getSigningKey(L,Z,I,X),this.createCanonicalRequest(F,J,Q));return F.headers[u6]=`${vU} Credential=${L.accessKeyId}/${z}, SignedHeaders=${D6(J)}, Signature=${V}`,F}createCanonicalRequest(U,w,f){const G=Object.keys(w).sort();return`${U.method}
|
|
10
|
-
${this.getCanonicalPath(U)}
|
|
11
|
-
${p6(U)}
|
|
12
|
-
${G.map((W)=>`${W}:${w[W]}`).join("\n")}
|
|
13
|
-
|
|
14
|
-
${G.join(";")}
|
|
15
|
-
${f}`}async createStringToSign(U,w,f){const G=new this.sha256;G.update(cU.toUint8Array(f));const W=await G.digest();return`${vU}
|
|
16
|
-
${U}
|
|
17
|
-
${w}
|
|
18
|
-
${L0.toHex(W)}`}getCanonicalPath({path:U}){if(this.uriEscapePath){const w=[];for(let W of U.split("/")){if((W==null?void 0:W.length)===0)continue;if(W===".")continue;if(W==="..")w.pop();else w.push(W)}const f=`${(U==null?void 0:U.startsWith("/"))?"/":""}${w.join("/")}${w.length>0&&(U==null?void 0:U.endsWith("/"))?"/":""}`;return U1.escapeUri(f).replace(/%2F/g,"/")}return U}async getSignature(U,w,f,G){const W=await this.createStringToSign(U,w,G),X=new this.sha256(await f);return X.update(cU.toUint8Array(W)),L0.toHex(await X.digest())}getSigningKey(U,w,f,G){return d6(this.sha256,U,f,w,G||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")}};b(m6,"SignatureV4");var M7=m6,W$=b(($)=>{const U=R7($).replace(/[\-:]/g,"");return{longDate:U,shortDate:U.slice(0,8)}},"formatDate"),D6=b(($)=>Object.keys($).sort().join(";"),"getCanonicalHeaderList")});var WX=E((UA,fX)=>{var{defineProperty:Y$,getOwnPropertyDescriptor:E7,getOwnPropertyNames:B7}=Object,V7=Object.prototype.hasOwnProperty,k=($,U)=>Y$($,"name",{value:U,configurable:!0}),A7=($,U)=>{for(var w in U)Y$($,w,{get:U[w],enumerable:!0})},T7=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of B7(U))if(!V7.call($,G)&&G!==w)Y$($,G,{get:()=>U[G],enumerable:!(f=E7(U,G))||f.enumerable})}return $},O7=($)=>T7(Y$({},"__esModule",{value:!0}),$),$X={};A7($X,{AWSSDKSigV4Signer:()=>N7,AwsSdkSigV4ASigner:()=>P7,AwsSdkSigV4Signer:()=>gU,NODE_SIGV4A_CONFIG_OPTIONS:()=>h7,resolveAWSSDKSigV4Config:()=>D7,resolveAwsSdkSigV4AConfig:()=>b7,resolveAwsSdkSigV4Config:()=>GX,validateSigningProperties:()=>pU});fX.exports=O7($X);var H7=o(),C7=o(),o6=k(($)=>{var U,w;return C7.HttpResponse.isInstance($)?((U=$.headers)==null?void 0:U.date)??((w=$.headers)==null?void 0:w.Date):void 0},"getDateHeader"),dU=k(($)=>new Date(Date.now()+$),"getSkewCorrectedDate"),q7=k(($,U)=>Math.abs(dU(U).getTime()-$)>=300000,"isClockSkewed"),a6=k(($,U)=>{const w=Date.parse($);if(q7(w,U))return w-Date.now();return U},"getUpdatedSystemClockOffset"),w1=k(($,U)=>{if(!U)throw new Error(`Property \`${$}\` is not resolved for AWS SDK SigV4Auth`);return U},"throwSigningPropertyError"),pU=k(async($)=>{var U,w,f;const G=w1("context",$.context),W=w1("config",$.config),X=(f=(w=(U=G.endpointV2)==null?void 0:U.properties)==null?void 0:w.authSchemes)==null?void 0:f[0],Z=await w1("signer",W.signer)(X),F=$==null?void 0:$.signingRegion,Y=$==null?void 0:$.signingRegionSet,I=$==null?void 0:$.signingName;return{config:W,signer:Z,signingRegion:F,signingRegionSet:Y,signingName:I}},"validateSigningProperties"),UX=class ${async sign(U,w,f){var G;if(!H7.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const W=await pU(f),{config:X,signer:L}=W;let{signingRegion:Z,signingName:F}=W;const Y=f.context;if(((G=Y==null?void 0:Y.authSchemes)==null?void 0:G.length)??0>1){const[z,Q]=Y.authSchemes;if((z==null?void 0:z.name)==="sigv4a"&&(Q==null?void 0:Q.name)==="sigv4")Z=(Q==null?void 0:Q.signingRegion)??Z,F=(Q==null?void 0:Q.signingName)??F}return await L.sign(U,{signingDate:dU(X.systemClockOffset),signingRegion:Z,signingService:F})}errorHandler(U){return(w)=>{const f=w.ServerTime??o6(w.$response);if(f){const G=w1("config",U.config),W=G.systemClockOffset;if(G.systemClockOffset=a6(f,G.systemClockOffset),G.systemClockOffset!==W&&w.$metadata)w.$metadata.clockSkewCorrected=!0}throw w}}successHandler(U,w){const f=o6(U);if(f){const G=w1("config",w.config);G.systemClockOffset=a6(f,G.systemClockOffset)}}};k(UX,"AwsSdkSigV4Signer");var gU=UX,N7=gU,j7=o(),wX=class $ extends gU{async sign(U,w,f){var G;if(!j7.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:W,signer:X,signingRegion:L,signingRegionSet:Z,signingName:F}=await pU(f),I=(await((G=W.sigv4aSigningRegionSet)==null?void 0:G.call(W))??Z??[L]).join(",");return await X.sign(U,{signingDate:dU(W.systemClockOffset),signingRegion:I,signingService:F})}};k(wX,"AwsSdkSigV4ASigner");var P7=wX,S7=zU(),t6=z$(),b7=k(($)=>{return $.sigv4aSigningRegionSet=S7.normalizeProvider($.sigv4aSigningRegionSet),$},"resolveAwsSdkSigV4AConfig"),h7={environmentVariableSelector($){if($.AWS_SIGV4A_SIGNING_REGION_SET)return $.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((U)=>U.trim());throw new t6.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 t6.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},B0=zU(),e6=r6(),GX=k(($)=>{let U;if($.credentials)U=B0.memoizeIdentityProvider($.credentials,B0.isIdentityExpired,B0.doesIdentityRequireRefresh);if(!U)if($.credentialDefaultProvider)U=B0.normalizeProvider($.credentialDefaultProvider(Object.assign({},$,{parentClientConfig:$})));else U=k(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");const{signingEscapePath:w=!0,systemClockOffset:f=$.systemClockOffset||0,sha256:G}=$;let W;if($.signer)W=B0.normalizeProvider($.signer);else if($.regionInfoProvider)W=k(()=>B0.normalizeProvider($.region)().then(async(X)=>[await $.regionInfoProvider(X,{useFipsEndpoint:await $.useFipsEndpoint(),useDualstackEndpoint:await $.useDualstackEndpoint()})||{},X]).then(([X,L])=>{const{signingRegion:Z,signingService:F}=X;$.signingRegion=$.signingRegion||Z||L,$.signingName=$.signingName||F||$.serviceId;const Y={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:G,uriEscapePath:w};return new($.signerConstructor||e6.SignatureV4)(Y)}),"signer");else W=k(async(X)=>{X=Object.assign({},{name:"sigv4",signingName:$.signingName||$.defaultSigningName,signingRegion:await B0.normalizeProvider($.region)(),properties:{}},X);const{signingRegion:L,signingName:Z}=X;$.signingRegion=$.signingRegion||L,$.signingName=$.signingName||Z||$.serviceId;const F={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:G,uriEscapePath:w};return new($.signerConstructor||e6.SignatureV4)(F)},"signer");return{...$,systemClockOffset:f,signingEscapePath:w,credentials:U,signer:W}},"resolveAwsSdkSigV4Config"),D7=GX});var I$=E((u7)=>{var k7=":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",XX="[: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]["+k7+"]*",c7=new RegExp("^"+XX+"$"),v7=function($,U){const w=[];let f=U.exec($);while(f){const G=[];G.startIndex=U.lastIndex-f[0].length;const W=f.length;for(let X=0;X<W;X++)G.push(f[X]);w.push(G),f=U.exec($)}return w},x7=function($){const U=c7.exec($);return!(U===null||typeof U==="undefined")};u7.isExist=function($){return typeof $!=="undefined"};u7.isEmptyObject=function($){return Object.keys($).length===0};u7.merge=function($,U,w){if(U){const f=Object.keys(U),G=f.length;for(let W=0;W<G;W++)if(w==="strict")$[f[W]]=[U[f[W]]];else $[f[W]]=U[f[W]]}};u7.getValue=function($){if(u7.isExist($))return $;else return""};u7.isName=x7;u7.getAllMatches=v7;u7.nameRegexp=XX});var nU=E(($z)=>{var ZX=function($){return $===" "||$==="\t"||$==="\n"||$==="\r"},FX=function($,U){const w=U;for(;U<$.length;U++)if($[U]=="?"||$[U]==" "){const f=$.substr(w,U-w);if(U>5&&f==="xml")return P("InvalidXml","XML declaration allowed only at the start of the document.",D($,U));else if($[U]=="?"&&$[U+1]==">"){U++;break}else continue}return U},YX=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 w=1;for(U+=8;U<$.length;U++)if($[U]==="<")w++;else if($[U]===">"){if(w--,w===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},i7=function($,U){let w="",f="",G=!1;for(;U<$.length;U++){if($[U]===s7||$[U]===m7)if(f==="")f=$[U];else if(f!==$[U]);else f="";else if($[U]===">"){if(f===""){G=!0;break}}w+=$[U]}if(f!=="")return!1;return{value:w,index:U,tagClosed:G}},IX=function($,U){const w=lU.getAllMatches($,r7),f={};for(let G=0;G<w.length;G++){if(w[G][1].length===0)return P("InvalidAttr","Attribute '"+w[G][2]+"' has no space in starting.",G1(w[G]));else if(w[G][3]!==void 0&&w[G][4]===void 0)return P("InvalidAttr","Attribute '"+w[G][2]+"' is without value.",G1(w[G]));else if(w[G][3]===void 0&&!U.allowBooleanAttributes)return P("InvalidAttr","boolean attribute '"+w[G][2]+"' is not allowed.",G1(w[G]));const W=w[G][2];if(!t7(W))return P("InvalidAttr","Attribute '"+W+"' is an invalid name.",G1(w[G]));if(!f.hasOwnProperty(W))f[W]=1;else return P("InvalidAttr","Attribute '"+W+"' is repeated.",G1(w[G]))}return!0},o7=function($,U){let w=/\d/;if($[U]==="x")U++,w=/[\da-fA-F]/;for(;U<$.length;U++){if($[U]===";")return U;if(!$[U].match(w))break}return-1},a7=function($,U){if(U++,$[U]===";")return-1;if($[U]==="#")return U++,o7($,U);let w=0;for(;U<$.length;U++,w++){if($[U].match(/\w/)&&w<20)continue;if($[U]===";")break;return-1}return U},P=function($,U,w){return{err:{code:$,msg:U,line:w.line||w,col:w.col}}},t7=function($){return lU.isName($)},e7=function($){return lU.isName($)},D=function($,U){const w=$.substring(0,U).split(/\r?\n/);return{line:w.length,col:w[w.length-1].length+1}},G1=function($){return $.startIndex+$[1].length},lU=I$(),n7={allowBooleanAttributes:!1,unpairedTags:[]};$z.validate=function($,U){U=Object.assign({},n7,U);const w=[];let f=!1,G=!1;if($[0]==="\uFEFF")$=$.substr(1);for(let W=0;W<$.length;W++)if($[W]==="<"&&$[W+1]==="?"){if(W+=2,W=FX($,W),W.err)return W}else if($[W]==="<"){let X=W;if(W++,$[W]==="!"){W=YX($,W);continue}else{let L=!1;if($[W]==="/")L=!0,W++;let Z="";for(;W<$.length&&$[W]!==">"&&$[W]!==" "&&$[W]!=="\t"&&$[W]!=="\n"&&$[W]!=="\r";W++)Z+=$[W];if(Z=Z.trim(),Z[Z.length-1]==="/")Z=Z.substring(0,Z.length-1),W--;if(!e7(Z)){let I;if(Z.trim().length===0)I="Invalid space after '<'.";else I="Tag '"+Z+"' is an invalid name.";return P("InvalidTag",I,D($,W))}const F=i7($,W);if(F===!1)return P("InvalidAttr","Attributes for '"+Z+"' have open quote.",D($,W));let Y=F.value;if(W=F.index,Y[Y.length-1]==="/"){const I=W-Y.length;Y=Y.substring(0,Y.length-1);const z=IX(Y,U);if(z===!0)f=!0;else return P(z.err.code,z.err.msg,D($,I+z.err.line))}else if(L)if(!F.tagClosed)return P("InvalidTag","Closing tag '"+Z+"' doesn't have proper closing.",D($,W));else if(Y.trim().length>0)return P("InvalidTag","Closing tag '"+Z+"' can't have attributes or invalid starting.",D($,X));else if(w.length===0)return P("InvalidTag","Closing tag '"+Z+"' has not been opened.",D($,X));else{const I=w.pop();if(Z!==I.tagName){let z=D($,I.tagStartPos);return P("InvalidTag","Expected closing tag '"+I.tagName+"' (opened in line "+z.line+", col "+z.col+") instead of closing tag '"+Z+"'.",D($,X))}if(w.length==0)G=!0}else{const I=IX(Y,U);if(I!==!0)return P(I.err.code,I.err.msg,D($,W-Y.length+I.err.line));if(G===!0)return P("InvalidXml","Multiple possible root nodes found.",D($,W));else if(U.unpairedTags.indexOf(Z)!==-1);else w.push({tagName:Z,tagStartPos:X});f=!0}for(W++;W<$.length;W++)if($[W]==="<")if($[W+1]==="!"){W++,W=YX($,W);continue}else if($[W+1]==="?"){if(W=FX($,++W),W.err)return W}else break;else if($[W]==="&"){const I=a7($,W);if(I==-1)return P("InvalidChar","char '&' is not expected.",D($,W));W=I}else if(G===!0&&!ZX($[W]))return P("InvalidXml","Extra text at the end",D($,W));if($[W]==="<")W--}}else{if(ZX($[W]))continue;return P("InvalidChar","char '"+$[W]+"' is not expected.",D($,W))}if(!f)return P("InvalidXml","Start tag expected.",1);else if(w.length==1)return P("InvalidTag","Unclosed tag '"+w[0].tagName+"'.",D($,w[0].tagStartPos));else if(w.length>0)return P("InvalidXml","Invalid '"+JSON.stringify(w.map((W)=>W.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var s7='"',m7="'",r7=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var zX=E((Gz)=>{var QX={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,w){return $}},wz=function($){return Object.assign({},QX,$)};Gz.buildOptions=wz;Gz.defaultOptions=QX});var KX=E((WA,RX)=>{class JX{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})}}RX.exports=JX});var EX=E((XA,MX)=>{var Lz=function($,U){const w={};if($[U+3]==="O"&&$[U+4]==="C"&&$[U+5]==="T"&&$[U+6]==="Y"&&$[U+7]==="P"&&$[U+8]==="E"){U=U+9;let f=1,G=!1,W=!1,X="";for(;U<$.length;U++)if($[U]==="<"&&!W){if(G&&Yz($,U)){if(U+=7,[entityName,val,U]=Zz($,U+1),val.indexOf("&")===-1)w[Jz(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(G&&Iz($,U))U+=8;else if(G&&Qz($,U))U+=8;else if(G&&zz($,U))U+=9;else if(Fz)W=!0;else throw new Error("Invalid DOCTYPE");f++,X=""}else if($[U]===">"){if(W){if($[U-1]==="-"&&$[U-2]==="-")W=!1,f--}else f--;if(f===0)break}else if($[U]==="[")G=!0;else X+=$[U];if(f!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:w,i:U}},Zz=function($,U){let w="";for(;U<$.length&&($[U]!=="'"&&$[U]!=='"');U++)w+=$[U];if(w=w.trim(),w.indexOf(" ")!==-1)throw new Error("External entites are not supported");const f=$[U++];let G="";for(;U<$.length&&$[U]!==f;U++)G+=$[U];return[w,G,U]},Fz=function($,U){if($[U+1]==="!"&&$[U+2]==="-"&&$[U+3]==="-")return!0;return!1},Yz=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},Iz=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},Qz=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},zz=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},Jz=function($){if(Xz.isName($))return $;else throw new Error(`Invalid entity name ${$}`)},Xz=I$();MX.exports=Lz});var VX=E((LA,BX)=>{var Ez=function($,U={}){if(U=Object.assign({},Mz,U),!$||typeof $!=="string")return $;let w=$.trim();if(U.skipLike!==void 0&&U.skipLike.test(w))return $;else if(U.hex&&Rz.test(w))return Number.parseInt(w,16);else{const f=Kz.exec(w);if(f){const G=f[1],W=f[2];let X=Bz(f[3]);const L=f[4]||f[6];if(!U.leadingZeros&&W.length>0&&G&&w[2]!==".")return $;else if(!U.leadingZeros&&W.length>0&&!G&&w[1]!==".")return $;else{const Z=Number(w),F=""+Z;if(F.search(/[eE]/)!==-1)if(U.eNotation)return Z;else return $;else if(L)if(U.eNotation)return Z;else return $;else if(w.indexOf(".")!==-1)if(F==="0"&&X==="")return Z;else if(F===X)return Z;else if(G&&F==="-"+X)return Z;else return $;if(W)if(X===F)return Z;else if(G+X===F)return Z;else return $;if(w===F)return Z;else if(w===G+F)return Z;return $}}else return $}},Bz=function($){if($&&$.indexOf(".")!==-1){if($=$.replace(/0+$/,""),$===".")$="0";else if($[0]===".")$="0"+$;else if($[$.length-1]===".")$=$.substr(0,$.length-1);return $}return $},Rz=/^[-+]?0x[a-fA-F0-9]+$/,Kz=/^([\-\+])?(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 Mz={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};BX.exports=Ez});var HX=E((ZA,OX)=>{var Tz=function($){const U=Object.keys($);for(let w=0;w<U.length;w++){const f=U[w];this.lastEntities[f]={regex:new RegExp("&"+f+";","g"),val:$[f]}}},Oz=function($,U,w,f,G,W,X){if($!==void 0){if(this.options.trimValues&&!f)$=$.trim();if($.length>0){if(!X)$=this.replaceEntitiesValue($);const L=this.options.tagValueProcessor(U,$,w,G,W);if(L===null||L===void 0)return $;else if(typeof L!==typeof $||L!==$)return L;else if(this.options.trimValues)return mU($,this.options.parseTagValue,this.options.numberParseOptions);else if($.trim()===$)return mU($,this.options.parseTagValue,this.options.numberParseOptions);else return $}}},Hz=function($){if(this.options.removeNSPrefix){const U=$.split(":"),w=$.charAt(0)==="/"?"/":"";if(U[0]==="xmlns")return"";if(U.length===2)$=w+U[1]}return $},qz=function($,U,w){if(!this.options.ignoreAttributes&&typeof $==="string"){const f=AX.getAllMatches($,Cz),G=f.length,W={};for(let X=0;X<G;X++){const L=this.resolveNameSpace(f[X][1]);let Z=f[X][4],F=this.options.attributeNamePrefix+L;if(L.length){if(this.options.transformAttributeName)F=this.options.transformAttributeName(F);if(F==="__proto__")F="#__proto__";if(Z!==void 0){if(this.options.trimValues)Z=Z.trim();Z=this.replaceEntitiesValue(Z);const Y=this.options.attributeValueProcessor(L,Z,U);if(Y===null||Y===void 0)W[F]=Z;else if(typeof Y!==typeof Z||Y!==Z)W[F]=Y;else W[F]=mU(Z,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)W[F]=!0}}if(!Object.keys(W).length)return;if(this.options.attributesGroupName){const X={};return X[this.options.attributesGroupName]=W,X}return W}},jz=function($,U,w){const f=this.options.updateTag(U.tagname,w,U[":@"]);if(f===!1);else if(typeof f==="string")U.tagname=f,$.addChild(U);else $.addChild(U)},Sz=function($,U,w,f){if($){if(f===void 0)f=Object.keys(U.child).length===0;if($=this.parseTextData($,U.tagname,w,!1,U[":@"]?Object.keys(U[":@"]).length!==0:!1,f),$!==void 0&&$!=="")U.add(this.options.textNodeName,$);$=""}return $},bz=function($,U,w){const f="*."+w;for(let G in $){const W=$[G];if(f===W||U===W)return!0}return!1},hz=function($,U,w=">"){let f,G="";for(let W=U;W<$.length;W++){let X=$[W];if(f){if(X===f)f=""}else if(X==='"'||X==="'")f=X;else if(X===w[0])if(w[1]){if($[W+1]===w[1])return{data:G,index:W}}else return{data:G,index:W};else if(X==="\t")X=" ";G+=X}},V0=function($,U,w,f){const G=$.indexOf(U,w);if(G===-1)throw new Error(f);else return G+U.length-1},sU=function($,U,w,f=">"){const G=hz($,U+1,f);if(!G)return;let W=G.data;const X=G.index,L=W.search(/\s/);let Z=W,F=!0;if(L!==-1)Z=W.substring(0,L),W=W.substring(L+1).trimStart();const Y=Z;if(w){const I=Z.indexOf(":");if(I!==-1)Z=Z.substr(I+1),F=Z!==G.data.substr(I+1)}return{tagName:Z,tagExp:W,closeIndex:X,attrExpPresent:F,rawTagName:Y}},Dz=function($,U,w){const f=w;let G=1;for(;w<$.length;w++)if($[w]==="<")if($[w+1]==="/"){const W=V0($,">",w,`${U} is not closed`);if($.substring(w+2,W).trim()===U){if(G--,G===0)return{tagContent:$.substring(f,w),i:W}}w=W}else if($[w+1]==="?")w=V0($,"?>",w+1,"StopNode is not closed.");else if($.substr(w+1,3)==="!--")w=V0($,"-->",w+3,"StopNode is not closed.");else if($.substr(w+1,2)==="![")w=V0($,"]]>",w,"StopNode is not closed.")-2;else{const W=sU($,w,">");if(W){if((W&&W.tagName)===U&&W.tagExp[W.tagExp.length-1]!=="/")G++;w=W.closeIndex}}},mU=function($,U,w){if(U&&typeof $==="string"){const f=$.trim();if(f==="true")return!0;else if(f==="false")return!1;else return Az($,w)}else if(AX.isExist($))return $;else return""},AX=I$(),f1=KX(),Vz=EX(),Az=VX();class TX{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,w)=>String.fromCharCode(Number.parseInt(w,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(U,w)=>String.fromCharCode(Number.parseInt(w,16))}},this.addExternalEntities=Tz,this.parseXml=Nz,this.parseTextData=Oz,this.resolveNameSpace=Hz,this.buildAttributesMap=qz,this.isItStopNode=bz,this.replaceEntitiesValue=Pz,this.readStopNodeData=Dz,this.saveTextToParentTag=Sz,this.addChild=jz}}var Cz=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),Nz=function($){$=$.replace(/\r\n?/g,"\n");const U=new f1("!xml");let w=U,f="",G="";for(let W=0;W<$.length;W++)if($[W]==="<")if($[W+1]==="/"){const L=V0($,">",W,"Closing Tag is not closed.");let Z=$.substring(W+2,L).trim();if(this.options.removeNSPrefix){const I=Z.indexOf(":");if(I!==-1)Z=Z.substr(I+1)}if(this.options.transformTagName)Z=this.options.transformTagName(Z);if(w)f=this.saveTextToParentTag(f,w,G);const F=G.substring(G.lastIndexOf(".")+1);if(Z&&this.options.unpairedTags.indexOf(Z)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${Z}>`);let Y=0;if(F&&this.options.unpairedTags.indexOf(F)!==-1)Y=G.lastIndexOf(".",G.lastIndexOf(".")-1),this.tagsNodeStack.pop();else Y=G.lastIndexOf(".");G=G.substring(0,Y),w=this.tagsNodeStack.pop(),f="",W=L}else if($[W+1]==="?"){let L=sU($,W,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(f=this.saveTextToParentTag(f,w,G),this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags);else{const Z=new f1(L.tagName);if(Z.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent)Z[":@"]=this.buildAttributesMap(L.tagExp,G,L.tagName);this.addChild(w,Z,G)}W=L.closeIndex+1}else if($.substr(W+1,3)==="!--"){const L=V0($,"-->",W+4,"Comment is not closed.");if(this.options.commentPropName){const Z=$.substring(W+4,L-2);f=this.saveTextToParentTag(f,w,G),w.add(this.options.commentPropName,[{[this.options.textNodeName]:Z}])}W=L}else if($.substr(W+1,2)==="!D"){const L=Vz($,W);this.docTypeEntities=L.entities,W=L.i}else if($.substr(W+1,2)==="!["){const L=V0($,"]]>",W,"CDATA is not closed.")-2,Z=$.substring(W+9,L);f=this.saveTextToParentTag(f,w,G);let F=this.parseTextData(Z,w.tagname,G,!0,!1,!0,!0);if(F==null)F="";if(this.options.cdataPropName)w.add(this.options.cdataPropName,[{[this.options.textNodeName]:Z}]);else w.add(this.options.textNodeName,F);W=L+2}else{let L=sU($,W,this.options.removeNSPrefix),Z=L.tagName;const F=L.rawTagName;let{tagExp:Y,attrExpPresent:I,closeIndex:z}=L;if(this.options.transformTagName)Z=this.options.transformTagName(Z);if(w&&f){if(w.tagname!=="!xml")f=this.saveTextToParentTag(f,w,G,!1)}const Q=w;if(Q&&this.options.unpairedTags.indexOf(Q.tagname)!==-1)w=this.tagsNodeStack.pop(),G=G.substring(0,G.lastIndexOf("."));if(Z!==U.tagname)G+=G?"."+Z:Z;if(this.isItStopNode(this.options.stopNodes,G,Z)){let J="";if(Y.length>0&&Y.lastIndexOf("/")===Y.length-1){if(Z[Z.length-1]==="/")Z=Z.substr(0,Z.length-1),G=G.substr(0,G.length-1),Y=Z;else Y=Y.substr(0,Y.length-1);W=L.closeIndex}else if(this.options.unpairedTags.indexOf(Z)!==-1)W=L.closeIndex;else{const M=this.readStopNodeData($,F,z+1);if(!M)throw new Error(`Unexpected end of ${F}`);W=M.i,J=M.tagContent}const V=new f1(Z);if(Z!==Y&&I)V[":@"]=this.buildAttributesMap(Y,G,Z);if(J)J=this.parseTextData(J,Z,G,!0,I,!0,!0);G=G.substr(0,G.lastIndexOf(".")),V.add(this.options.textNodeName,J),this.addChild(w,V,G)}else{if(Y.length>0&&Y.lastIndexOf("/")===Y.length-1){if(Z[Z.length-1]==="/")Z=Z.substr(0,Z.length-1),G=G.substr(0,G.length-1),Y=Z;else Y=Y.substr(0,Y.length-1);if(this.options.transformTagName)Z=this.options.transformTagName(Z);const J=new f1(Z);if(Z!==Y&&I)J[":@"]=this.buildAttributesMap(Y,G,Z);this.addChild(w,J,G),G=G.substr(0,G.lastIndexOf("."))}else{const J=new f1(Z);if(this.tagsNodeStack.push(w),Z!==Y&&I)J[":@"]=this.buildAttributesMap(Y,G,Z);this.addChild(w,J,G),w=J}f="",W=z}}else f+=$[W];return U.child},Pz=function($){if(this.options.processEntities){for(let U in this.docTypeEntities){const w=this.docTypeEntities[U];$=$.replace(w.regx,w.val)}for(let U in this.lastEntities){const w=this.lastEntities[U];$=$.replace(w.regex,w.val)}if(this.options.htmlEntities)for(let U in this.htmlEntities){const w=this.htmlEntities[U];$=$.replace(w.regex,w.val)}$=$.replace(this.ampEntity.regex,this.ampEntity.val)}return $};OX.exports=TX});var qX=E((uz)=>{var kz=function($,U){return CX($,U)},CX=function($,U,w){let f;const G={};for(let W=0;W<$.length;W++){const X=$[W],L=cz(X);let Z="";if(w===void 0)Z=L;else Z=w+"."+L;if(L===U.textNodeName)if(f===void 0)f=X[L];else f+=""+X[L];else if(L===void 0)continue;else if(X[L]){let F=CX(X[L],U,Z);const Y=xz(F,U);if(X[":@"])vz(F,X[":@"],Z,U);else if(Object.keys(F).length===1&&F[U.textNodeName]!==void 0&&!U.alwaysCreateTextNode)F=F[U.textNodeName];else if(Object.keys(F).length===0)if(U.alwaysCreateTextNode)F[U.textNodeName]="";else F="";if(G[L]!==void 0&&G.hasOwnProperty(L)){if(!Array.isArray(G[L]))G[L]=[G[L]];G[L].push(F)}else if(U.isArray(L,Z,Y))G[L]=[F];else G[L]=F}}if(typeof f==="string"){if(f.length>0)G[U.textNodeName]=f}else if(f!==void 0)G[U.textNodeName]=f;return G},cz=function($){const U=Object.keys($);for(let w=0;w<U.length;w++){const f=U[w];if(f!==":@")return f}},vz=function($,U,w,f){if(U){const G=Object.keys(U),W=G.length;for(let X=0;X<W;X++){const L=G[X];if(f.isArray(L,w+"."+L,!0,!0))$[L]=[U[L]];else $[L]=U[L]}}},xz=function($,U){const{textNodeName:w}=U,f=Object.keys($).length;if(f===0)return!0;if(f===1&&($[w]||typeof $[w]==="boolean"||$[w]===0))return!0;return!1};uz.prettify=kz});var PX=E((YA,jX)=>{var{buildOptions:_z}=zX(),dz=HX(),{prettify:pz}=qX(),gz=nU();class NX{constructor($){this.externalEntities={},this.options=_z($)}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 G=gz.validate($,U);if(G!==!0)throw Error(`${G.err.msg}:${G.err.line}:${G.err.col}`)}const w=new dz(this.options);w.addExternalEntities(this.externalEntities);const f=w.parseXml($);if(this.options.preserveOrder||f===void 0)return f;else return pz(f,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 '
'");else if(U==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[$]=U}}jX.exports=NX});var kX=E((IA,DX)=>{var lz=function($,U){let w="";if(U.format&&U.indentBy.length>0)w="\n";return bX($,U,"",w)},bX=function($,U,w,f){let G="",W=!1;for(let X=0;X<$.length;X++){const L=$[X],Z=nz(L);if(Z===void 0)continue;let F="";if(w.length===0)F=Z;else F=`${w}.${Z}`;if(Z===U.textNodeName){let J=L[Z];if(!sz(F,U))J=U.tagValueProcessor(Z,J),J=hX(J,U);if(W)G+=f;G+=J,W=!1;continue}else if(Z===U.cdataPropName){if(W)G+=f;G+=`<![CDATA[${L[Z][0][U.textNodeName]}]]>`,W=!1;continue}else if(Z===U.commentPropName){G+=f+`<!--${L[Z][0][U.textNodeName]}-->`,W=!0;continue}else if(Z[0]==="?"){const J=SX(L[":@"],U),V=Z==="?xml"?"":f;let M=L[Z][0][U.textNodeName];M=M.length!==0?" "+M:"",G+=V+`<${Z}${M}${J}?>`,W=!0;continue}let Y=f;if(Y!=="")Y+=U.indentBy;const I=SX(L[":@"],U),z=f+`<${Z}${I}`,Q=bX(L[Z],U,F,Y);if(U.unpairedTags.indexOf(Z)!==-1)if(U.suppressUnpairedNode)G+=z+">";else G+=z+"/>";else if((!Q||Q.length===0)&&U.suppressEmptyNode)G+=z+"/>";else if(Q&&Q.endsWith(">"))G+=z+`>${Q}${f}</${Z}>`;else{if(G+=z+">",Q&&f!==""&&(Q.includes("/>")||Q.includes("</")))G+=f+U.indentBy+Q+f;else G+=Q;G+=`</${Z}>`}W=!0}return G},nz=function($){const U=Object.keys($);for(let w=0;w<U.length;w++){const f=U[w];if(!$.hasOwnProperty(f))continue;if(f!==":@")return f}},SX=function($,U){let w="";if($&&!U.ignoreAttributes)for(let f in $){if(!$.hasOwnProperty(f))continue;let G=U.attributeValueProcessor(f,$[f]);if(G=hX(G,U),G===!0&&U.suppressBooleanAttributes)w+=` ${f.substr(U.attributeNamePrefix.length)}`;else w+=` ${f.substr(U.attributeNamePrefix.length)}="${G}"`}return w},sz=function($,U){$=$.substr(0,$.length-U.textNodeName.length-1);let w=$.substr($.lastIndexOf(".")+1);for(let f in U.stopNodes)if(U.stopNodes[f]===$||U.stopNodes[f]==="*."+w)return!0;return!1},hX=function($,U){if($&&$.length>0&&U.processEntities)for(let w=0;w<U.entities.length;w++){const f=U.entities[w];$=$.replace(f.regex,f.val)}return $};DX.exports=lz});var vX=E((QA,cX)=>{var Z0=function($){if(this.options=Object.assign({},iz,$),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=az;if(this.processTextOrObjNode=rz,this.options.format)this.indentate=oz,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""},rz=function($,U,w){const f=this.j2x($,w+1);if($[this.options.textNodeName]!==void 0&&Object.keys($).length===1)return this.buildTextValNode($[this.options.textNodeName],U,f.attrStr,w);else return this.buildObjectNode(f.val,U,f.attrStr,w)},oz=function($){return this.options.indentBy.repeat($)},az=function($){if($.startsWith(this.options.attributeNamePrefix)&&$!==this.options.textNodeName)return $.substr(this.attrPrefixLen);else return!1},mz=kX(),iz={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:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("\'","g"),val:"'"},{regex:new RegExp("\"","g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};Z0.prototype.build=function($){if(this.options.preserveOrder)return mz($,this.options);else{if(Array.isArray($)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)$={[this.options.arrayNodeName]:$};return this.j2x($,0).val}};Z0.prototype.j2x=function($,U){let w="",f="";for(let G in $){if(!Object.prototype.hasOwnProperty.call($,G))continue;if(typeof $[G]==="undefined"){if(this.isAttribute(G))f+=""}else if($[G]===null)if(this.isAttribute(G))f+="";else if(G[0]==="?")f+=this.indentate(U)+"<"+G+"?"+this.tagEndChar;else f+=this.indentate(U)+"<"+G+"/"+this.tagEndChar;else if($[G]instanceof Date)f+=this.buildTextValNode($[G],G,"",U);else if(typeof $[G]!=="object"){const W=this.isAttribute(G);if(W)w+=this.buildAttrPairStr(W,""+$[G]);else if(G===this.options.textNodeName){let X=this.options.tagValueProcessor(G,""+$[G]);f+=this.replaceEntitiesValue(X)}else f+=this.buildTextValNode($[G],G,"",U)}else if(Array.isArray($[G])){const W=$[G].length;let X="",L="";for(let Z=0;Z<W;Z++){const F=$[G][Z];if(typeof F==="undefined");else if(F===null)if(G[0]==="?")f+=this.indentate(U)+"<"+G+"?"+this.tagEndChar;else f+=this.indentate(U)+"<"+G+"/"+this.tagEndChar;else if(typeof F==="object")if(this.options.oneListGroup){const Y=this.j2x(F,U+1);if(X+=Y.val,this.options.attributesGroupName&&F.hasOwnProperty(this.options.attributesGroupName))L+=Y.attrStr}else X+=this.processTextOrObjNode(F,G,U);else if(this.options.oneListGroup){let Y=this.options.tagValueProcessor(G,F);Y=this.replaceEntitiesValue(Y),X+=Y}else X+=this.buildTextValNode(F,G,"",U)}if(this.options.oneListGroup)X=this.buildObjectNode(X,G,L,U);f+=X}else if(this.options.attributesGroupName&&G===this.options.attributesGroupName){const W=Object.keys($[G]),X=W.length;for(let L=0;L<X;L++)w+=this.buildAttrPairStr(W[L],""+$[G][W[L]])}else f+=this.processTextOrObjNode($[G],G,U)}return{attrStr:w,val:f}};Z0.prototype.buildAttrPairStr=function($,U){if(U=this.options.attributeValueProcessor($,""+U),U=this.replaceEntitiesValue(U),this.options.suppressBooleanAttributes&&U==="true")return" "+$;else return" "+$+'="'+U+'"'};Z0.prototype.buildObjectNode=function($,U,w,f){if($==="")if(U[0]==="?")return this.indentate(f)+"<"+U+w+"?"+this.tagEndChar;else return this.indentate(f)+"<"+U+w+this.closeTag(U)+this.tagEndChar;else{let G="</"+U+this.tagEndChar,W="";if(U[0]==="?")W="?",G="";if((w||w==="")&&$.indexOf("<")===-1)return this.indentate(f)+"<"+U+w+W+">"+$+G;else if(this.options.commentPropName!==!1&&U===this.options.commentPropName&&W.length===0)return this.indentate(f)+`<!--${$}-->`+this.newLine;else return this.indentate(f)+"<"+U+w+W+this.tagEndChar+$+this.indentate(f)+G}};Z0.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};Z0.prototype.buildTextValNode=function($,U,w,f){if(this.options.cdataPropName!==!1&&U===this.options.cdataPropName)return this.indentate(f)+`<![CDATA[${$}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&U===this.options.commentPropName)return this.indentate(f)+`<!--${$}-->`+this.newLine;else if(U[0]==="?")return this.indentate(f)+"<"+U+w+"?"+this.tagEndChar;else{let G=this.options.tagValueProcessor(U,$);if(G=this.replaceEntitiesValue(G),G==="")return this.indentate(f)+"<"+U+w+this.closeTag(U)+this.tagEndChar;else return this.indentate(f)+"<"+U+w+">"+G+"</"+U+this.tagEndChar}};Z0.prototype.replaceEntitiesValue=function($){if($&&$.length>0&&this.options.processEntities)for(let U=0;U<this.options.entities.length;U++){const w=this.options.entities[U];$=$.replace(w.regex,w.val)}return $};cX.exports=Z0});var uX=E((zA,xX)=>{var tz=nU(),ez=PX(),$J=vX();xX.exports={XMLParser:ez,XMLValidator:tz,XMLBuilder:$J}});var lX=E((JA,gX)=>{var{defineProperty:Q$,getOwnPropertyDescriptor:UJ,getOwnPropertyNames:wJ}=Object,GJ=Object.prototype.hasOwnProperty,c=($,U)=>Q$($,"name",{value:U,configurable:!0}),fJ=($,U)=>{for(var w in U)Q$($,w,{get:U[w],enumerable:!0})},WJ=($,U,w,f)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let G of wJ(U))if(!GJ.call($,G)&&G!==w)Q$($,G,{get:()=>U[G],enumerable:!(f=UJ(U,G))||f.enumerable})}return $},XJ=($)=>WJ(Q$({},"__esModule",{value:!0}),$),yX={};fJ(yX,{_toBool:()=>ZJ,_toNum:()=>FJ,_toStr:()=>LJ,awsExpectUnion:()=>IJ,loadRestJsonErrorCode:()=>JJ,loadRestXmlErrorCode:()=>EJ,parseJsonBody:()=>dX,parseJsonErrorBody:()=>zJ,parseXmlBody:()=>pX,parseXmlErrorBody:()=>MJ});gX.exports=XJ(yX);var LJ=c(($)=>{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"),ZJ=c(($)=>{if($==null)return $;if(typeof $==="string"){const U=$.toLowerCase();if($!==""&&U!=="false"&&U!=="true"){const w=new Error(`Received string "${$}" where a boolean was expected.`);w.name="Warning",console.warn(w)}return $!==""&&U!=="false"}return $},"_toBool"),FJ=c(($)=>{if($==null)return $;if(typeof $==="string"){const U=Number($);if(U.toString()!==$){const w=new Error(`Received string "${$}" where a number was expected.`);return w.name="Warning",console.warn(w),$}return U}return $},"_toNum"),YJ=j0(),IJ=c(($)=>{if($==null)return;if(typeof $==="object"&&"__type"in $)delete $.__type;return YJ.expectUnion($)},"awsExpectUnion"),QJ=j0(),_X=c(($,U)=>QJ.collectBody($,U).then((w)=>U.utf8Encoder(w)),"collectBodyString"),dX=c(($,U)=>_X($,U).then((w)=>{if(w.length)try{return JSON.parse(w)}catch(f){if((f==null?void 0:f.name)==="SyntaxError")Object.defineProperty(f,"$responseBodyText",{value:w});throw f}return{}}),"parseJsonBody"),zJ=c(async($,U)=>{const w=await dX($,U);return w.message=w.message??w.Message,w},"parseJsonErrorBody"),JJ=c(($,U)=>{const w=c((W,X)=>Object.keys(W).find((L)=>L.toLowerCase()===X.toLowerCase()),"findKey"),f=c((W)=>{let X=W;if(typeof X==="number")X=X.toString();if(X.indexOf(",")>=0)X=X.split(",")[0];if(X.indexOf(":")>=0)X=X.split(":")[0];if(X.indexOf("#")>=0)X=X.split("#")[1];return X},"sanitizeErrorCode"),G=w($.headers,"x-amzn-errortype");if(G!==void 0)return f($.headers[G]);if(U.code!==void 0)return f(U.code);if(U.__type!==void 0)return f(U.__type)},"loadRestJsonErrorCode"),RJ=j0(),KJ=uX(),pX=c(($,U)=>_X($,U).then((w)=>{if(w.length){const f=new KJ.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(Z,F)=>F.trim()===""&&F.includes("\n")?"":void 0});f.addEntity("#xD","\r"),f.addEntity("#10","\n");let G;try{G=f.parse(w,!0)}catch(Z){if(Z&&typeof Z==="object")Object.defineProperty(Z,"$responseBodyText",{value:w});throw Z}const W="#text",X=Object.keys(G)[0],L=G[X];if(L[W])L[X]=L[W],delete L[W];return RJ.getValueFromTextNode(L)}return{}}),"parseXmlBody"),MJ=c(async($,U)=>{const w=await pX($,U);if(w.Error)w.Error.message=w.Error.message??w.Error.Message;return w},"parseXmlErrorBody"),EJ=c(($,U)=>{var w;if(((w=U==null?void 0:U.Error)==null?void 0:w.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 BJ=E((W1)=>{Object.defineProperty(W1,"__esModule",{value:!0});var iU=C6();iU.__exportStar(P6(),W1);iU.__exportStar(WX(),W1);iU.__exportStar(lX(),W1)});function cJ($){return $}var GL=($)=>(U)=>async(w)=>{if(!x.isInstance(w.request))return U(w);const{request:f}=w,{handlerProtocol:G=""}=$.requestHandler.metadata||{};if(G.indexOf("h2")>=0&&!f.headers[":authority"])delete f.headers.host,f.headers[":authority"]=f.hostname+(f.port?":"+f.port:"");else if(!f.headers.host){let W=f.hostname;if(f.port!=null)W+=`:${f.port}`;f.headers.host=W}return U(w)},fL={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},vJ=($)=>({applyToStack:(U)=>{U.add(GL($),fL)}});var WL=()=>($,U)=>async(w)=>{try{const f=await $(w),{clientName:G,commandName:W,logger:X,dynamoDbDocumentClientOptions:L={}}=U,{overrideInputFilterSensitiveLog:Z,overrideOutputFilterSensitiveLog:F}=L,Y=Z??U.inputFilterSensitiveLog,I=F??U.outputFilterSensitiveLog,{$metadata:z,...Q}=f.output;return X?.info?.({clientName:G,commandName:W,input:Y(w.input),output:I(Q),metadata:z}),f}catch(f){const{clientName:G,commandName:W,logger:X,dynamoDbDocumentClientOptions:L={}}=U,{overrideInputFilterSensitiveLog:Z}=L,F=Z??U.inputFilterSensitiveLog;throw X?.error?.({clientName:G,commandName:W,input:F(w.input),error:f,metadata:f.$metadata}),f}},XL={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},uJ=($)=>({applyToStack:(U)=>{U.add(WL(),XL)}});var eU="X-Amzn-Trace-Id",LL="AWS_LAMBDA_FUNCTION_NAME",ZL="_X_AMZN_TRACE_ID",FL=($)=>(U)=>async(w)=>{const{request:f}=w;if(!x.isInstance(f)||$.runtime!=="node"||f.headers.hasOwnProperty(eU))return U(w);const G=process.env[LL],W=process.env[ZL],X=(L)=>typeof L==="string"&&L.length>0;if(X(G)&&X(W))f.headers[eU]=W;return U({...w,request:f})},YL={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},gJ=($)=>({applyToStack:(U)=>{U.add(FL($),YL)}});function sR($){return{...$,customUserAgent:typeof $.customUserAgent==="string"?[[$.customUserAgent]]:$.customUserAgent}}var aQ=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}$"),a0=($)=>aQ.test($)||$.startsWith("[")&&$.endsWith("]");var tQ=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),t0=($,U=!1)=>{if(!U)return tQ.test($);const w=$.split(".");for(let f of w)if(!t0(f))return!1;return!0};var e0={};var e="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 H extends Error{constructor($){super($);this.name="EndpointError"}}var F4=($,U)=>$===U;var Y4=($)=>{const U=$.split("."),w=[];for(let f of U){const G=f.indexOf("[");if(G!==-1){if(f.indexOf("]")!==f.length-1)throw new H(`Path: '${$}' does not end with ']'`);const W=f.slice(G+1,-1);if(Number.isNaN(parseInt(W)))throw new H(`Invalid array index: '${W}' in path: '${$}'`);if(G!==0)w.push(f.slice(0,G));w.push(W)}else w.push(f)}return w};var y1=($,U)=>Y4(U).reduce((w,f)=>{if(typeof w!=="object")throw new H(`Index '${f}' in '${U}' not found in '${JSON.stringify($)}'`);else if(Array.isArray(w))return w[parseInt(f)];return w[f]},$);var I4=($)=>$!=null;var Q4=($)=>!$;var _1=d(A0(),1);var JU={[_1.EndpointURLScheme.HTTP]:80,[_1.EndpointURLScheme.HTTPS]:443},z4=($)=>{const U=(()=>{try{if($ instanceof URL)return $;if(typeof $==="object"&&"hostname"in $){const{hostname:z,port:Q,protocol:J="",path:V="",query:M={}}=$,R=new URL(`${J}//${z}${Q?`:${Q}`:""}${V}`);return R.search=Object.entries(M).map(([B,A])=>`${B}=${A}`).join("&"),R}return new URL($)}catch(z){return null}})();if(!U)return console.error(`Unable to parse ${JSON.stringify($)} as a whatwg URL.`),null;const w=U.href,{host:f,hostname:G,pathname:W,protocol:X,search:L}=U;if(L)return null;const Z=X.slice(0,-1);if(!Object.values(_1.EndpointURLScheme).includes(Z))return null;const F=a0(G),Y=w.includes(`${f}:${JU[Z]}`)||typeof $==="string"&&$.includes(`${f}:${JU[Z]}`),I=`${f}${Y?`:${JU[Z]}`:""}`;return{scheme:Z,authority:I,path:W,normalizedPath:W.endsWith("/")?W:`${W}/`,isIp:F}};var J4=($,U)=>$===U;var R4=($,U,w,f)=>{if(U>=w||$.length<w)return null;if(!f)return $.substring(U,w);return $.substring($.length-w,$.length-U)};var K4=($)=>encodeURIComponent($).replace(/[!*'()]/g,(U)=>`%${U.charCodeAt(0).toString(16).toUpperCase()}`);var M4={booleanEquals:F4,getAttr:y1,isSet:I4,isValidHostLabel:t0,not:Q4,parseURL:z4,stringEquals:J4,substring:R4,uriEncode:K4};var d1=($,U)=>{const w=[],f={...U.endpointParams,...U.referenceRecord};let G=0;while(G<$.length){const W=$.indexOf("{",G);if(W===-1){w.push($.slice(G));break}w.push($.slice(G,W));const X=$.indexOf("}",W);if(X===-1){w.push($.slice(W));break}if($[W+1]==="{"&&$[X+1]==="}")w.push($.slice(W+1,X)),G=X+2;const L=$.substring(W+1,X);if(L.includes("#")){const[Z,F]=L.split("#");w.push(y1(f[Z],F))}else w.push(f[L]);G=X+1}return w.join("")};var E4=({ref:$},U)=>{return{...U.endpointParams,...U.referenceRecord}[$]};var W0=($,U,w)=>{if(typeof $==="string")return d1($,w);else if($.fn)return p1($,w);else if($.ref)return E4($,w);throw new H(`'${U}': ${String($)} is not a string, function or reference.`)};var p1=({fn:$,argv:U},w)=>{const f=U.map((W)=>["boolean","number"].includes(typeof W)?W:W0(W,"arg",w)),G=$.split(".");if(G[0]in e0&&G[1]!=null)return e0[G[0]][G[1]](...f);return M4[$](...f)};var B4=({assign:$,...U},w)=>{if($&&$ in w.referenceRecord)throw new H(`'${$}' is already defined in Reference Record.`);const f=p1(U,w);return w.logger?.debug?.(`${e} evaluateCondition: ${_(U)} = ${_(f)}`),{result:f===""?!0:!!f,...$!=null&&{toAssign:{name:$,value:f}}}};var S0=($=[],U)=>{const w={};for(let f of $){const{result:G,toAssign:W}=B4(f,{...U,referenceRecord:{...U.referenceRecord,...w}});if(!G)return{result:G};if(W)w[W.name]=W.value,U.logger?.debug?.(`${e} assign: ${W.name} := ${_(W.value)}`)}return{result:!0,referenceRecord:w}};var V4=($,U)=>Object.entries($).reduce((w,[f,G])=>({...w,[f]:G.map((W)=>{const X=W0(W,"Header value entry",U);if(typeof X!=="string")throw new H(`Header '${f}' value '${X}' is not a string`);return X})}),{});var RU=($,U)=>{if(Array.isArray($))return $.map((w)=>RU(w,U));switch(typeof $){case"string":return d1($,U);case"object":if($===null)throw new H(`Unexpected endpoint property: ${$}`);return g1($,U);case"boolean":return $;default:throw new H(`Unexpected endpoint property type: ${typeof $}`)}};var g1=($,U)=>Object.entries($).reduce((w,[f,G])=>({...w,[f]:RU(G,U)}),{});var A4=($,U)=>{const w=W0($,"Endpoint URL",U);if(typeof w==="string")try{return new URL(w)}catch(f){throw console.error(`Failed to construct URL with ${w}`,f),f}throw new H(`Endpoint URL must be a string, got ${typeof w}`)};var T4=($,U)=>{const{conditions:w,endpoint:f}=$,{result:G,referenceRecord:W}=S0(w,U);if(!G)return;const X={...U,referenceRecord:{...U.referenceRecord,...W}},{url:L,properties:Z,headers:F}=f;return U.logger?.debug?.(`${e} Resolving endpoint from template: ${_(f)}`),{...F!=null&&{headers:V4(F,X)},...Z!=null&&{properties:g1(Z,X)},url:A4(L,X)}};var O4=($,U)=>{const{conditions:w,error:f}=$,{result:G,referenceRecord:W}=S0(w,U);if(!G)return;throw new H(W0(f,"Error",{...U,referenceRecord:{...U.referenceRecord,...W}}))};var H4=($,U)=>{const{conditions:w,rules:f}=$,{result:G,referenceRecord:W}=S0(w,U);if(!G)return;return l1(f,{...U,referenceRecord:{...U.referenceRecord,...W}})};var l1=($,U)=>{for(let w of $)if(w.type==="endpoint"){const f=T4(w,U);if(f)return f}else if(w.type==="error")O4(w,U);else if(w.type==="tree"){const f=H4(w,U);if(f)return f}else throw new H(`Unknown endpoint rule: ${w}`);throw new H("Rules evaluation failed")};var eQ=($,U)=>{const{endpointParams:w,logger:f}=U,{parameters:G,rules:W}=$;U.logger?.debug?.(`${e} Initial EndpointParams: ${_(w)}`);const X=Object.entries(G).filter(([,F])=>F.default!=null).map(([F,Y])=>[F,Y.default]);if(X.length>0)for(let[F,Y]of X)w[F]=w[F]??Y;const L=Object.entries(G).filter(([,F])=>F.required).map(([F])=>F);for(let F of L)if(w[F]==null)throw new H(`Missing required parameter: '${F}'`);const Z=l1(W,{endpointParams:w,logger:f,referenceRecord:{}});if(U.endpointParams?.Endpoint)try{const F=new URL(U.endpointParams.Endpoint),{protocol:Y,port:I}=F;Z.url.protocol=Y,Z.url.port=I}catch(F){}return U.logger?.debug?.(`${e} Resolved endpoint: ${_(Z)}`),Z};var KU=($,U=!1)=>{if(U){for(let w of $.split("."))if(!KU(w))return!1;return!0}if(!t0($))return!1;if($.length<3||$.length>63)return!1;if($!==$.toLowerCase())return!1;if(a0($))return!1;return!0};var C4=($)=>{const U=$.split(":");if(U.length<6)return null;const[w,f,G,W,X,...L]=U;if(w!=="arn"||f===""||G===""||L[0]==="")return null;return{partition:f,service:G,region:W,accountId:X,resourceId:L[0].includes("/")?L[0].split("/"):L}};var q4={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 U9=q4,w9="",N4=($)=>{const{partitions:U}=U9;for(let f of U){const{regions:G,outputs:W}=f;for(let[X,L]of Object.entries(G))if(X===$)return{...W,...L}}for(let f of U){const{regionRegex:G,outputs:W}=f;if(new RegExp(G).test($))return{...W}}const w=U.find((f)=>f.id==="aws");if(!w)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...w.outputs}};var j4=()=>w9;var G9={isVirtualHostableS3Bucket:KU,parseArn:C4,partition:N4};e0.aws=G9;var MU="user-agent",n1="x-amz-user-agent",EU=" ",s1="/",P4=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,S4=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,BU="-";var f9=($)=>(U,w)=>async(f)=>{const{request:G}=f;if(!x.isInstance(G))return U(f);const{headers:W}=G,X=w?.userAgent?.map(VU)||[],L=(await $.defaultUserAgentProvider()).map(VU),Z=$?.customUserAgent?.map(VU)||[],F=j4(),Y=(F?[F]:[]).concat([...L,...X,...Z]).join(EU),I=[...L.filter((z)=>z.startsWith("aws-sdk-")),...Z].join(EU);if($.runtime!=="browser"){if(I)W[n1]=W[n1]?`${W[MU]} ${I}`:I;W[MU]=Y}else W[n1]=Y;return U({...f,request:G})},VU=($)=>{const U=$[0].split(s1).map((X)=>X.replace(P4,BU)).join(s1),w=$[1]?.replace(S4,BU),f=U.indexOf(s1),G=U.substring(0,f);let W=U.substring(f+1);if(G==="api")W=W.toLowerCase();return[G,W,w].filter((X)=>X&&X.length>0).reduce((X,L,Z)=>{switch(Z){case 0:return L;case 1:return`${X}/${L}`;default:return`${X}#${L}`}},"")},W9={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},CE=($)=>({applyToStack:(U)=>{U.add(f9($),W9)}});var m1=($)=>typeof $==="string"&&($.startsWith("fips-")||$.endsWith("-fips"));var AU=($)=>m1($)?["fips-aws-global","aws-fips"].includes($)?"us-east-1":$.replace(/fips-(dkr-|prod-)?|-fips/,""):$;var cE=($)=>{const{region:U,useFipsEndpoint:w}=$;if(!U)throw new Error("Region is missing");return{...$,region:async()=>{if(typeof U==="string")return AU(U);const f=await U();return AU(f)},useFipsEndpoint:async()=>{const f=typeof U==="string"?U:await U();if(m1(f))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()}}};var b0=($,U,w)=>{if(!(U in $))return;if($[U]==="true")return!0;if($[U]==="false")return!1;throw new Error(`Cannot load ${w} "${U}". Expected "true" or "false", got ${$[U]}.`)};var X0;(function($){$.ENV="env",$.CONFIG="shared config entry"})(X0||(X0={}));var X9="AWS_USE_DUALSTACK_ENDPOINT",L9="use_dualstack_endpoint";var nE={environmentVariableSelector:($)=>b0($,X9,X0.ENV),configFileSelector:($)=>b0($,L9,X0.CONFIG),default:!1};var Z9="AWS_USE_FIPS_ENDPOINT",F9="use_fips_endpoint";var iE={environmentVariableSelector:($)=>b0($,Z9,X0.ENV),configFileSelector:($)=>b0($,F9,X0.CONFIG),default:!1};var Y9=d(m(),1);var I9=d(m(),1);var b4={environmentVariableSelector:($)=>$["AWS_REGION"],configFileSelector:($)=>$["region"],default:()=>{throw new Error("Region is missing")}},X3={preferredFile:"credentials"};function Q9($){return(U)=>async(w)=>{const f=w.request;if(x.isInstance(f)){const{body:G,headers:W}=f;if(G&&Object.keys(W).map((X)=>X.toLowerCase()).indexOf(h4)===-1)try{const X=$(G);f.headers={...f.headers,[h4]:String(X)}}catch(X){}}return U({...w,request:f})}}var h4="content-length",z9={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},D3=($)=>({applyToStack:(U)=>{U.add(Q9($.bodyLengthChecker),z9)}});var D4=($,U)=>(w)=>async(f)=>{const{response:G}=await w(f);try{const W=await U(G,$);return{response:G,output:W}}catch(W){if(Object.defineProperty(W,"$response",{value:G}),!("$metadata"in W)){if(W.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof W.$responseBodyText!=="undefined"){if(W.$response)W.$response.body=W.$responseBodyText}}throw W}};var k4=($,U)=>(w,f)=>async(G)=>{const W=f.endpointV2?.url&&$.urlParser?async()=>$.urlParser(f.endpointV2.url):$.endpoint;if(!W)throw new Error("No valid endpoint provider available.");const X=await U(G.input,{...$,endpoint:W});return w({...G,request:X})};function y3($,U,w){return{applyToStack:(f)=>{f.add(D4($,w),J9),f.add(k4($,U),TU)}}}var J9={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},TU={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};var p4=d(m(),1);var c4=async($)=>{const U=$?.Bucket||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(B9(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!E9(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},R9=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,K9=/(\d+\.){3}\d+/,M9=/\.\./;var E9=($)=>R9.test($)&&!K9.test($)&&!M9.test($),B9=($)=>{const[U,w,f,,,G]=$.split(":"),W=U==="arn"&&$.split(":").length>=6,X=Boolean(W&&w&&f&&G);if(W&&!X)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return X};var v4=($,U,w)=>{const f=async()=>{const G=w[$]??w[U];if(typeof G==="function")return G();return G};if($==="credentialScope"||U==="CredentialScope")return async()=>{const G=typeof w.credentials==="function"?await w.credentials():w.credentials;return G?.credentialScope??G?.CredentialScope};if($==="accountId"||U==="AccountId")return async()=>{const G=typeof w.credentials==="function"?await w.credentials():w.credentials;return G?.accountId??G?.AccountId};if($==="endpoint"||U==="endpoint")return async()=>{const G=await f();if(G&&typeof G==="object"){if("url"in G)return G.url.href;if("hostname"in G){const{protocol:W,hostname:X,port:L,path:Z}=G;return`${W}//${X}${L?":"+L:""}${Z}`}}return G};return f};var x4="AWS_ENDPOINT_URL",u4="endpoint_url",y4=($)=>({environmentVariableSelector:(U)=>{const w=$.split(" ").map((W)=>W.toUpperCase()),f=U[[x4,...w].join("_")];if(f)return f;const G=U[x4];if(G)return G;return},configFileSelector:(U,w)=>{if(w&&U.services){const G=w[["services",U.services].join(OU)];if(G){const W=$.split(" ").map((L)=>L.toLowerCase()),X=G[[W.join("_"),u4].join(OU)];if(X)return X}}const f=U[u4];if(f)return f;return},default:void 0});var _4=async($)=>K0(y4($))();var HU=d(nw(),1),i1=($)=>{if(typeof $==="object"){if("url"in $)return HU.parseUrl($.url);return $}return HU.parseUrl($)};var d4=async($,U,w,f)=>{if(!w.endpoint){const X=await _4(w.serviceId||"");if(X)w.endpoint=()=>Promise.resolve(i1(X))}const G=await V9($,U,w);if(typeof w.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return w.endpointProvider(G,f)},V9=async($,U,w)=>{const f={},G=U?.getEndpointParameterInstructions?.()||{};for(let[W,X]of Object.entries(G))switch(X.type){case"staticContextParams":f[W]=X.value;break;case"contextParams":f[W]=$[X.name];break;case"clientContextParams":case"builtInParams":f[W]=await v4(X.name,W,w)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(X))}if(Object.keys(G).length===0)Object.assign(f,w);if(String(w.serviceId).toLowerCase()==="s3")await c4(f);return f};var g4=({config:$,instructions:U})=>{return(w,f)=>async(G)=>{const W=await d4(G.input,{getEndpointParameterInstructions(){return U}},{...$},f);f.endpointV2=W,f.authSchemes=W.properties?.authSchemes;const X=f.authSchemes?.[0];if(X){f.signing_region=X.signingRegion,f.signing_service=X.signingName;const Z=p4.getSmithyContext(f)?.selectedHttpAuthScheme?.httpAuthOption;if(Z)Z.signingProperties=Object.assign(Z.signingProperties||{},{signing_region:X.signingRegion,signingRegion:X.signingRegion,signing_service:X.signingName,signingName:X.signingName,signingRegionSet:X.signingRegionSet},X.properties)}return w({...G})}};var A9={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:TU.name},YB=($,U)=>({applyToStack:(w)=>{w.addRelativeTo(g4({config:$,instructions:U}),A9)}});var r1=d(m(),1);var zB=($)=>{const U=$.tls??!0,{endpoint:w}=$,f=w!=null?async()=>i1(await r1.normalizeProvider(w)()):void 0;return{...$,endpoint:f,tls:U,isCustomEndpoint:!!w,useDualstackEndpoint:r1.normalizeProvider($.useDualstackEndpoint??!1),useFipsEndpoint:r1.normalizeProvider($.useFipsEndpoint??!1)}};var r=d(h$(),1),HB=r.default.v1,CB=r.default.v3,l4=r.default.v4,qB=r.default.v5,NB=r.default.NIL,jB=r.default.version,PB=r.default.validate,SB=r.default.stringify,bB=r.default.parse;var bU=d(m(),1);var s;(function($){$.STANDARD="standard",$.ADAPTIVE="adaptive"})(s||(s={}));var M0=3,n4=s.STANDARD;var s4=d(Q0(),1);class o1{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((w)=>setTimeout(w,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(),s4.isThrottlingError($)){const f=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=f,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),U=this.cubicThrottle(f),this.enableTokenBucket()}else this.calculateTimeWindow(),U=this.cubicSuccess(this.getCurrentTimeInSeconds());const w=Math.min(U,2*this.measuredTxRate);this.updateTokenBucketRate(w)}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 w=this.requestCount/(U-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(w*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=U}}getPrecise($){return parseFloat($.toFixed(8))}}var E0=100,$1=20000,CU=500,a1=500,qU=5,NU=10,jU=1,t1="amz-sdk-invocation-id",e1="amz-sdk-request";var m4=()=>{let $=E0;return{computeNextBackoffDelay:(f)=>{return Math.floor(Math.min($1,Math.random()*2**f*$))},setDelayBase:(f)=>{$=f}}};var PU=({retryDelay:$,retryCount:U,retryCost:w})=>{return{getRetryCount:()=>U,getRetryDelay:()=>Math.min($1,$),getRetryCost:()=>w}};class h0{constructor($){this.maxAttempts=$,this.mode=s.STANDARD,this.capacity=a1,this.retryBackoffStrategy=m4(),this.maxAttemptsProvider=typeof $==="function"?$:async()=>$}async acquireInitialRetryToken($){return PU({retryDelay:E0,retryCount:0})}async refreshRetryTokenForRetry($,U){const w=await this.getMaxAttempts();if(this.shouldRetry($,U,w)){const f=U.errorType;this.retryBackoffStrategy.setDelayBase(f==="THROTTLING"?CU:E0);const G=this.retryBackoffStrategy.computeNextBackoffDelay($.getRetryCount()),W=U.retryAfterHint?Math.max(U.retryAfterHint.getTime()-Date.now()||0,G):G,X=this.getCapacityCost(f);return this.capacity-=X,PU({retryDelay:W,retryCount:$.getRetryCount()+1,retryCost:X})}throw new Error("No retry token available")}recordSuccess($){this.capacity=Math.max(a1,this.capacity+($.getRetryCost()??jU))}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,w){return $.getRetryCount()+1<w&&this.capacity>=this.getCapacityCost(U.errorType)&&this.isRetryableError(U.errorType)}getCapacityCost($){return $==="TRANSIENT"?NU:qU}isRetryableError($){return $==="THROTTLING"||$==="TRANSIENT"}}class SU{constructor($,U){this.maxAttemptsProvider=$,this.mode=s.ADAPTIVE;const{rateLimiter:w}=U??{};this.rateLimiter=w??new o1,this.standardRetryStrategy=new h0($)}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 i4="AWS_MAX_ATTEMPTS",r4="max_attempts",LV={environmentVariableSelector:($)=>{const U=$[i4];if(!U)return;const w=parseInt(U);if(Number.isNaN(w))throw new Error(`Environment variable ${i4} mast be a number, got "${U}"`);return w},configFileSelector:($)=>{const U=$[r4];if(!U)return;const w=parseInt(U);if(Number.isNaN(w))throw new Error(`Shared config file entry ${r4} mast be a number, got "${U}"`);return w},default:M0},ZV=($)=>{const{retryStrategy:U}=$,w=bU.normalizeProvider($.maxAttempts??M0);return{...$,maxAttempts:w,retryStrategy:async()=>{if(U)return U;if(await bU.normalizeProvider($.retryMode)()===s.ADAPTIVE)return new SU(w);return new h0(w)}}},T9="AWS_RETRY_MODE",O9="retry_mode",FV={environmentVariableSelector:($)=>$[T9],configFileSelector:($)=>$[O9],default:n4};var D0=d(Q0(),1);import{Readable as H9} from"stream";var o4=($)=>$?.body instanceof H9||typeof ReadableStream!=="undefined"&&$?.body instanceof ReadableStream;var hU=($)=>{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 C9=($)=>(U,w)=>async(f)=>{let G=await $.retryStrategy();const W=await $.maxAttempts();if(q9(G)){G=G;let X=await G.acquireInitialRetryToken(w.partition_id),L=new Error,Z=0,F=0;const{request:Y}=f,I=x.isInstance(Y);if(I)Y.headers[t1]=l4();while(!0)try{if(I)Y.headers[e1]=`attempt=${Z+1}; max=${W}`;const{response:z,output:Q}=await U(f);return G.recordSuccess(X),Q.$metadata.attempts=Z+1,Q.$metadata.totalRetryDelay=F,{response:z,output:Q}}catch(z){const Q=N9(z);if(L=hU(z),I&&o4(Y))throw(w.logger instanceof a4?console:w.logger)?.warn("An error was encountered in a non-retryable streaming request."),L;try{X=await G.refreshRetryTokenForRetry(X,Q)}catch(V){if(!L.$metadata)L.$metadata={};throw L.$metadata.attempts=Z+1,L.$metadata.totalRetryDelay=F,L}Z=X.getRetryCount();const J=X.getRetryDelay();F+=J,await new Promise((V)=>setTimeout(V,J))}}else{if(G=G,G?.mode)w.userAgent=[...w.userAgent||[],["cfg/retry-mode",G.mode]];return G.retry(U,f)}},q9=($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined",N9=($)=>{const U={error:$,errorType:j9($)},w=S9($.$response);if(w)U.retryAfterHint=w;return U},j9=($)=>{if(D0.isThrottlingError($))return"THROTTLING";if(D0.isTransientError($))return"TRANSIENT";if(D0.isServerError($))return"SERVER_ERROR";return"CLIENT_ERROR"},P9={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},VV=($)=>({applyToStack:(U)=>{U.add(C9($),P9)}}),S9=($)=>{if(!DU.isInstance($))return;const U=Object.keys($.headers).find((W)=>W.toLowerCase()==="retry-after");if(!U)return;const w=$.headers[U],f=Number(w);if(!Number.isNaN(f))return new Date(f*1000);return new Date(w)};var b9=d(Q0(),1);var $$=d(Q0(),1);import{platform as VJ,release as AJ} from"os";import{env as sX,versions as TJ} from"process";var rU={isCrtAvailable:!1};var nX=()=>{if(rU.isCrtAvailable)return["md/crt-avail"];return null};var OJ="AWS_SDK_UA_APP_ID",HJ="sdk-ua-app-id",OA=({serviceId:$,clientVersion:U})=>{const w=[["aws-sdk-js",U],["ua","2.0"],[`os/${VJ()}`,AJ()],["lang/js"],["md/nodejs",`${TJ.node}`]],f=nX();if(f)w.push(f);if($)w.push([`api/${$}`,U]);if(sX.AWS_EXECUTION_ENV)w.push([`exec-env/${sX.AWS_EXECUTION_ENV}`]);const G=K0({environmentVariableSelector:(X)=>X[OJ],configFileSelector:(X)=>X[HJ],default:void 0})();let W=void 0;return async()=>{if(!W){const X=await G;W=X?[...w,[`app/${X}`]]:[...w]}return W}};import{Buffer as CJ} from"buffer";import{createHash as qJ,createHmac as NJ} from"crypto";var mX=function($,U){if(CJ.isBuffer($))return $;if(typeof $==="string")return iX($,U);if(ArrayBuffer.isView($))return oU($.buffer,$.byteOffset,$.byteLength);return oU($)};class jJ{constructor($,U){this.algorithmIdentifier=$,this.secret=U,this.reset()}update($,U){this.hash.update(rX(mX($,U)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?NJ(this.algorithmIdentifier,mX(this.secret)):qJ(this.algorithmIdentifier)}}import{fstatSync as PJ,lstatSync as SJ} from"fs";var hA=($)=>{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 SJ($.path).size;else if(typeof $.fd==="number")return PJ($.fd).size;throw new Error(`Body Length computation failed for ${$}`)};var oX="AWS_EXECUTION_ENV",aU="AWS_REGION",tU="AWS_DEFAULT_REGION",aX="AWS_EC2_METADATA_DISABLED",tX=["in-region","cross-region","mobile","standard","legacy"],eX="/latest/meta-data/placement/region";var $L={environmentVariableSelector:($)=>{return $["AWS_DEFAULTS_MODE"]},configFileSelector:($)=>{return $["defaults_mode"]},default:"legacy"};var gA=({region:$=K0(b4),defaultsMode:U=K0($L)}={})=>UL(async()=>{const w=typeof U==="function"?await U():U;switch(w?.toLowerCase()){case"auto":return bJ($);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(w?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${tX.join(", ")}, got ${w}`)}}),bJ=async($)=>{if($){const U=typeof $==="function"?await $():$,w=await hJ();if(!w)return"standard";if(U===w)return"in-region";else return"cross-region"}return"standard"},hJ=async()=>{if(process.env[oX]&&(process.env[aU]||process.env[tU]))return process.env[aU]??process.env[tU];if(!process.env[aX])try{const{getInstanceMetadataEndpoint:$,httpRequest:U}=await import("./chunk-e3ef81776c8f2d28.js"),w=await $();return(await U({...w,path:eX})).toString()}catch($){}};var mA=($)=>{let U=async()=>{if($.region===void 0)throw new Error("Region is missing from runtimeConfig");const w=$.region;if(typeof w==="string")return w;return w()};return{setRegion(w){U=w},region(){return U}}},iA=($)=>{return{region:$.region()}};export{cJ as wa,vJ as xa,uJ as ya,gJ as za,m as Aa,b0 as Ba,X0 as Ca,zU as Da,sR as Ea,e0 as Fa,eQ as Ga,G9 as Ha,CE as Ia,nE as Ja,iE as Ka,b4 as La,X3 as Ma,cE as Na,D3 as Oa,V9 as Pa,y3 as Qa,YB as Ra,zB as Sa,n4 as Ta,l4 as Ua,LV as Va,ZV as Wa,FV as Xa,VV as Ya,C6 as Za,BJ as _a,OA as $a,jJ as ab,hA as bb,gA as cb,mA as db,iA as eb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{z as D} from"./chunk-7ce930fe69575c87.js";var S=D((y,w)=>{var{defineProperty:G,getOwnPropertyDescriptor:v,getOwnPropertyNames:O}=Object,x=Object.prototype.hasOwnProperty,Q=(b,j)=>G(b,"name",{value:j,configurable:!0}),U=(b,j)=>{for(var z in j)G(b,z,{get:j[z],enumerable:!0})},K=(b,j,z,V)=>{if(j&&typeof j==="object"||typeof j==="function"){for(let B of O(j))if(!x.call(b,B)&&B!==z)G(b,B,{get:()=>j[B],enumerable:!(V=v(j,B))||V.enumerable})}return b},q=(b)=>K(G({},"__esModule",{value:!0}),b),W={};U(W,{AlgorithmId:()=>J,EndpointURLScheme:()=>X,FieldPosition:()=>M,HttpApiKeyAuthLocation:()=>$,HttpAuthLocation:()=>Z,IniSectionType:()=>N,RequestHandlerProtocol:()=>Y,SMITHY_CONTEXT_KEY:()=>R,getDefaultClientConfiguration:()=>T,resolveDefaultRuntimeConfig:()=>k});w.exports=q(W);var Z=((b)=>{return b.HEADER="header",b.QUERY="query",b})(Z||{}),$=((b)=>{return b.HEADER="header",b.QUERY="query",b})($||{}),X=((b)=>{return b.HTTP="http",b.HTTPS="https",b})(X||{}),J=((b)=>{return b.MD5="md5",b.CRC32="crc32",b.CRC32C="crc32c",b.SHA1="sha1",b.SHA256="sha256",b})(J||{}),E=Q((b)=>{const j=[];if(b.sha256!==void 0)j.push({algorithmId:()=>"sha256",checksumConstructor:()=>b.sha256});if(b.md5!=null)j.push({algorithmId:()=>"md5",checksumConstructor:()=>b.md5});return{_checksumAlgorithms:j,addChecksumAlgorithm(z){this._checksumAlgorithms.push(z)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),F=Q((b)=>{const j={};return b.checksumAlgorithms().forEach((z)=>{j[z.algorithmId()]=z.checksumConstructor()}),j},"resolveChecksumRuntimeConfig"),T=Q((b)=>{return{...E(b)}},"getDefaultClientConfiguration"),k=Q((b)=>{return{...F(b)}},"resolveDefaultRuntimeConfig"),M=((b)=>{return b[b.HEADER=0]="HEADER",b[b.TRAILER=1]="TRAILER",b})(M||{}),R="__smithy_context",N=((b)=>{return b.PROFILE="profile",b.SSO_SESSION="sso-session",b.SERVICES="services",b})(N||{}),Y=((b)=>{return b.HTTP_0_9="http/0.9",b.HTTP_1_0="http/1.0",b.TDS_8_0="tds/8.0",b})(Y||{})});
|
|
2
|
-
export{S as hb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"./chunk-7ce930fe69575c87.js";import{Ab as E} from"./chunk-a14516ac5e6f78aa.js";import{readFileSync as l} from"fs";var t=(e)=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:o,roleSessionName:r,webIdentityToken:n,providerId:c,policyArns:i,policy:_,durationSeconds:N}=e;let{roleAssumerWithWebIdentity:s}=e;if(!s){const{getDefaultRoleAssumerWithWebIdentity:d}=await import("./chunk-733688c7851fffd1.js");s=d({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:e.parentClientConfig},e.clientPlugins)}return s({RoleArn:o,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:c,PolicyArns:i,Policy:_,DurationSeconds:N})};var m="AWS_WEB_IDENTITY_TOKEN_FILE",S="AWS_ROLE_ARN",p="AWS_ROLE_SESSION_NAME",A=(e={})=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");const o=e?.webIdentityTokenFile??process.env[m],r=e?.roleArn??process.env[S],n=e?.roleSessionName??process.env[p];if(!o||!r)throw new E("Web identity configuration not specified",{logger:e.logger});return t({...e,webIdentityToken:l(o,{encoding:"ascii"}),roleArn:r,roleSessionName:n})()};export{t as fromWebToken,A as fromTokenFile};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"./chunk-a5c18c07abe8fd9c.js";import{B as i,O as I,R as y,fa as C} from"./chunk-38237d1b01b0db25.js";import"./chunk-3bf6f8c8e8589e3d.js";import{kb as n} from"./chunk-2f7aac67f16768a5.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};
|