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