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,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"./chunk-d2e057b6f3f9d500.js";import{y as m} from"./chunk-7ce930fe69575c87.js";import{$ as p,A as Oe,B as ue,E as Te,F as yr,J as be,K as je,M as Fe,N as De,Q as Ge,R as Je,X as E,Y as t,Z as Ar,aa as T,ba as b,ca as j,da as h,ka as Er,la as a,ma as br,na as Ve,oa as We,pa as er,qa as rr,sa as d,ta as o,va as $} from"./chunk-c6846df9c8456b20.js";import{$a as D,Aa as dr,Ba as Qr,Ea as Z,Fa as N,Ga as cr,Ha as $e,Ia as Ie,Ja as Re,Ka as tr,La as fe,Ma as Ae,Na as Ke,Oa as Me,Pa as ar,Qa as mr,Sa as S,Ta as wr,Ua as Be,Wa as Le,Xa as kr,Ya as Qe,Za as vr,ab as Xe,bb as Ye,cb as Ze,db as He,eb as sr,fb as ir,xa as hr,ya as nr,za as or} from"./chunk-59fe590e19085858.js";import"./chunk-40c21fe243675250.js";import{hb as Hr,ib as I} from"./chunk-81ce9b491b290639.js";import{jb as pe} from"./chunk-be095501304df604.js";import"./chunk-6e415d0e12fc9539.js";import"./chunk-dfc390f0bbdf5a81.js";var R=m(N(),1);var re=m(D(),1),q=m(Qr(),1),Xr=function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(s,r)=>({signingProperties:{config:s,context:r}})}},H=function(e){return{schemeId:"smithy.api#noAuth"}},se=async(e,s,r)=>{return{operation:q.getSmithyContext(s).operation,region:await q.normalizeProvider(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},ie=(e)=>{const s=[];switch(e.operation){case"CreateToken":{s.push(H(e));break}case"RegisterClient":{s.push(H(e));break}case"StartDeviceAuthorization":{s.push(H(e));break}default:s.push(Xr(e))}return s},le=(e)=>{return{...re.resolveAwsSdkSigV4Config(e)}};var he=(e)=>{return{...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}},v={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var ne={name:"@aws-sdk/client-sso-oidc",description:"AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",version:"3.629.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso-oidc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso-oidc"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.629.0","@aws-sdk/credential-provider-node":"3.629.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.620.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.614.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.3.2","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.14","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.1.12","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.14","@smithy/util-defaults-mode-node":"^3.0.14","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",peerDependencies:{"@aws-sdk/client-sts":"^3.629.0"},browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso-oidc"}};var Ne=m(D(),1);var qe=m(D(),1),Ue=m(N(),1);var xe=m(Hr(),1);var oe={["required"]:!1,type:"String"},de={["required"]:!0,default:!1,type:"Boolean"},ye={["ref"]:"Endpoint"},ke={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},ve={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},w={},ce={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},Ee={["ref"]:"PartitionResult"},te={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[Ee,"supportsDualStack"]}]},ae=[ke],me=[ve],we=[{["ref"]:"Region"}],Zr={version:"1.0",parameters:{Region:oe,UseDualStack:de,UseFIPS:de,Endpoint:oe},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[ye]}],rules:[{conditions:ae,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:me,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:ye,properties:w,headers:w},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:we}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:we,assign:"PartitionResult"}],rules:[{conditions:[ke,ve],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,ce]},te],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:w,headers:w},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:ae,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[ce,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[Ee,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:w,headers:w},type:"endpoint"},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:w,headers:w},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:me,rules:[{conditions:[te],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:w,headers:w},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:w,headers:w},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},Se=Zr;var Pe=(e,s={})=>{return Ie(Se,{endpointParams:e,logger:s.logger})};$e.aws=Re;var ze=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??be,base64Encoder:e?.base64Encoder??De,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Pe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ie,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new qe.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ue.NoAuthSigner}],logger:e?.logger??new Te,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??xe.parseUrl,utf8Decoder:e?.utf8Decoder??je,utf8Encoder:e?.utf8Encoder??Fe}};var _e=(e)=>{We(process.version);const s=He(e),r=()=>s().then(Ve),i=ze(e);return Ne.emitWarningIfUnsupportedVersion(process.version),{...i,...e,runtime:"node",defaultsMode:s,bodyLengthChecker:e?.bodyLengthChecker??Ze,credentialDefaultProvider:e?.credentialDefaultProvider??pe,defaultUserAgentProvider:e?.defaultUserAgentProvider??Xe({serviceId:i.serviceId,clientVersion:ne.version}),maxAttempts:e?.maxAttempts??I(Le),region:e?.region??I(Ke,Me),requestHandler:Ge.create(e?.requestHandler??r),retryMode:e?.retryMode??I({...Qe,default:async()=>(await r()).retryMode||Be}),sha256:e?.sha256??Ye.bind(null,"sha256"),streamCollector:e?.streamCollector??Je,useDualstackEndpoint:e?.useDualstackEndpoint??I(fe),useFipsEndpoint:e?.useFipsEndpoint??I(Ae)}};var Ce=(e)=>{const s=e.httpAuthSchemes;let{httpAuthSchemeProvider:r,credentials:i}=e;return{setHttpAuthScheme(l){const n=s.findIndex((P)=>P.schemeId===l.schemeId);if(n===-1)s.push(l);else s.splice(n,1,l)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(l){r=l},httpAuthSchemeProvider(){return r},setCredentials(l){i=l},credentials(){return i}}},ge=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};var U=(e)=>e,lr=(e,s)=>{const r={...U(sr(e)),...U(er(e)),...U(Oe(e)),...U(Ce(e))};return s.forEach((i)=>i.configure(r)),{...e,...ir(r),...rr(r),...ue(r),...ge(r)}};class _ extends yr{constructor(...[e]){const s=_e(e||{}),r=he(s),i=cr(r),l=kr(i),n=ar(l),P=hr(n),Mr=wr(P),Br=le(Mr),ee=lr(Br,e?.extensions||[]);super(ee);this.config=ee,this.middlewareStack.use(tr(this.config)),this.middlewareStack.use(vr(this.config)),this.middlewareStack.use(mr(this.config)),this.middlewareStack.use(nr(this.config)),this.middlewareStack.use(or(this.config)),this.middlewareStack.use(dr(this.config)),this.middlewareStack.use(R.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:se,identityProviderConfigProvider:async(Lr)=>new R.DefaultIdentityProviderConfig({"aws.auth#sigv4":Lr.credentials})})),this.middlewareStack.use(R.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}var Jr=m(Z(),1);class y extends Er{constructor(e){super(e);Object.setPrototypeOf(this,y.prototype)}}class x extends y{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,x.prototype),this.error=e.error,this.error_description=e.error_description}}class z extends y{constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,z.prototype),this.error=e.error,this.error_description=e.error_description}}class G extends y{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,G.prototype),this.error=e.error,this.error_description=e.error_description}}class J extends y{constructor(e){super({name:"InternalServerException",$fault:"server",...e});this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,J.prototype),this.error=e.error,this.error_description=e.error_description}}class V extends y{constructor(e){super({name:"InvalidClientException",$fault:"client",...e});this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,V.prototype),this.error=e.error,this.error_description=e.error_description}}class W extends y{constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,W.prototype),this.error=e.error,this.error_description=e.error_description}}class f extends y{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,f.prototype),this.error=e.error,this.error_description=e.error_description}}class A extends y{constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,A.prototype),this.error=e.error,this.error_description=e.error_description}}class K extends y{constructor(e){super({name:"SlowDownException",$fault:"client",...e});this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,K.prototype),this.error=e.error,this.error_description=e.error_description}}class M extends y{constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,M.prototype),this.error=e.error,this.error_description=e.error_description}}class B extends y{constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,B.prototype),this.error=e.error,this.error_description=e.error_description}}class L extends y{constructor(e){super({name:"InvalidRequestRegionException",$fault:"client",...e});this.name="InvalidRequestRegionException",this.$fault="client",Object.setPrototypeOf(this,L.prototype),this.error=e.error,this.error_description=e.error_description,this.endpoint=e.endpoint,this.region=e.region}}class Q extends y{constructor(e){super({name:"InvalidClientMetadataException",$fault:"client",...e});this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,Q.prototype),this.error=e.error,this.error_description=e.error_description}}class X extends y{constructor(e){super({name:"InvalidRedirectUriException",$fault:"client",...e});this.name="InvalidRedirectUriException",this.$fault="client",Object.setPrototypeOf(this,X.prototype),this.error=e.error,this.error_description=e.error_description}}var Sr=(e)=>({...e,...e.clientSecret&&{clientSecret:t},...e.refreshToken&&{refreshToken:t},...e.codeVerifier&&{codeVerifier:t}}),$r=(e)=>({...e,...e.accessToken&&{accessToken:t},...e.refreshToken&&{refreshToken:t},...e.idToken&&{idToken:t}}),Ir=(e)=>({...e,...e.refreshToken&&{refreshToken:t},...e.assertion&&{assertion:t},...e.subjectToken&&{subjectToken:t},...e.codeVerifier&&{codeVerifier:t}}),Rr=(e)=>({...e,...e.accessToken&&{accessToken:t},...e.refreshToken&&{refreshToken:t},...e.idToken&&{idToken:t}}),Pr=(e)=>({...e,...e.clientSecret&&{clientSecret:t}}),Tr=(e)=>({...e,...e.clientSecret&&{clientSecret:t}});var k=m(D(),1),F=m(N(),1);var jr=async(e,s)=>{const r=F.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/token");let l;return l=JSON.stringify(o(e,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:(n)=>$(n)})),r.m("POST").h(i).b(l),r.build()},Fr=async(e,s)=>{const r=F.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/token");const l=d({[ds]:[,"t"]});let n;return n=JSON.stringify(o(e,{assertion:[],clientId:[],code:[],codeVerifier:[],grantType:[],redirectUri:[],refreshToken:[],requestedTokenType:[],scope:(P)=>$(P),subjectToken:[],subjectTokenType:[]})),r.m("POST").h(i).q(l).b(n),r.build()},Dr=async(e,s)=>{const r=F.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/client/register");let l;return l=JSON.stringify(o(e,{clientName:[],clientType:[],entitledApplicationArn:[],grantTypes:(n)=>$(n),issuerUrl:[],redirectUris:(n)=>$(n),scopes:(n)=>$(n)})),r.m("POST").h(i).b(l),r.build()},qr=async(e,s)=>{const r=F.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/device_authorization");let l;return l=JSON.stringify(o(e,{clientId:[],clientSecret:[],startUrl:[]})),r.m("POST").h(i).b(l),r.build()},Ur=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return Y(e,s);const r=d({$metadata:c(e)}),i=b(j(await k.parseJsonBody(e.body,s)),"body"),l=o(i,{accessToken:h,expiresIn:T,idToken:h,refreshToken:h,tokenType:h});return Object.assign(r,l),r},xr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return Y(e,s);const r=d({$metadata:c(e)}),i=b(j(await k.parseJsonBody(e.body,s)),"body"),l=o(i,{accessToken:h,expiresIn:T,idToken:h,issuedTokenType:h,refreshToken:h,scope:$,tokenType:h});return Object.assign(r,l),r},zr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return Y(e,s);const r=d({$metadata:c(e)}),i=b(j(await k.parseJsonBody(e.body,s)),"body"),l=o(i,{authorizationEndpoint:h,clientId:h,clientIdIssuedAt:p,clientSecret:h,clientSecretExpiresAt:p,tokenEndpoint:h});return Object.assign(r,l),r},Gr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return Y(e,s);const r=d({$metadata:c(e)}),i=b(j(await k.parseJsonBody(e.body,s)),"body"),l=o(i,{deviceCode:h,expiresIn:T,interval:T,userCode:h,verificationUri:h,verificationUriComplete:h});return Object.assign(r,l),r},Y=async(e,s)=>{const r={...e,body:await k.parseJsonErrorBody(e.body,s)},i=k.loadRestJsonErrorCode(e,r.body);switch(i){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await _r(r,s);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await pr(r,s);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await Cr(r,s);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await gr(r,s);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await Or(r,s);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await es(r,s);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await ss(r,s);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await ls(r,s);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await hs(r,s);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await ns(r,s);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await os(r,s);case"InvalidRequestRegionException":case"com.amazonaws.ssooidc#InvalidRequestRegionException":throw await is(r,s);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await ur(r,s);case"InvalidRedirectUriException":case"com.amazonaws.ssooidc#InvalidRedirectUriException":throw await rs(r,s);default:const l=r.body;return Nr({output:e,parsedBody:l,errorCode:i})}},Nr=br(y),_r=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new x({$metadata:c(e),...r});return a(n,e.body)},pr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new z({$metadata:c(e),...r});return a(n,e.body)},Cr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new G({$metadata:c(e),...r});return a(n,e.body)},gr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new J({$metadata:c(e),...r});return a(n,e.body)},Or=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new V({$metadata:c(e),...r});return a(n,e.body)},ur=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new Q({$metadata:c(e),...r});return a(n,e.body)},es=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new W({$metadata:c(e),...r});return a(n,e.body)},rs=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new X({$metadata:c(e),...r});return a(n,e.body)},ss=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new f({$metadata:c(e),...r});return a(n,e.body)},is=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{endpoint:h,error:h,error_description:h,region:h});Object.assign(r,l);const n=new L({$metadata:c(e),...r});return a(n,e.body)},ls=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new A({$metadata:c(e),...r});return a(n,e.body)},hs=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new K({$metadata:c(e),...r});return a(n,e.body)},ns=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new M({$metadata:c(e),...r});return a(n,e.body)},os=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new B({$metadata:c(e),...r});return a(n,e.body)},c=(e)=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});var ds="aws_iam";class C extends E.classBuilder().ep({...v}).m(function(e,s,r,i){return[Jr.getSerdePlugin(r,this.serialize,this.deserialize),S(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(Sr,$r).ser(jr).de(Ur).build(){}var Vr=m(Z(),1);class g extends E.classBuilder().ep({...v}).m(function(e,s,r,i){return[Vr.getSerdePlugin(r,this.serialize,this.deserialize),S(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateTokenWithIAM",{}).n("SSOOIDCClient","CreateTokenWithIAMCommand").f(Ir,Rr).ser(Fr).de(xr).build(){}var Wr=m(Z(),1);class O extends E.classBuilder().ep({...v}).m(function(e,s,r,i){return[Wr.getSerdePlugin(r,this.serialize,this.deserialize),S(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","RegisterClient",{}).n("SSOOIDCClient","RegisterClientCommand").f(void 0,Pr).ser(Dr).de(zr).build(){}var fr=m(Z(),1);class u extends E.classBuilder().ep({...v}).m(function(e,s,r,i){return[fr.getSerdePlugin(r,this.serialize,this.deserialize),S(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","StartDeviceAuthorization",{}).n("SSOOIDCClient","StartDeviceAuthorizationCommand").f(Tr,void 0).ser(qr).de(Gr).build(){}var ys={CreateTokenCommand:C,CreateTokenWithIAMCommand:g,RegisterClientCommand:O,StartDeviceAuthorizationCommand:u};class Kr extends _{}Ar(ys,Kr);export{yr as __Client,B as UnsupportedGrantTypeException,M as UnauthorizedClientException,Tr as StartDeviceAuthorizationRequestFilterSensitiveLog,u as StartDeviceAuthorizationCommand,K as SlowDownException,y as SSOOIDCServiceException,_ as SSOOIDCClient,Kr as SSOOIDC,Pr as RegisterClientResponseFilterSensitiveLog,O as RegisterClientCommand,A as InvalidScopeException,L as InvalidRequestRegionException,f as InvalidRequestException,X as InvalidRedirectUriException,W as InvalidGrantException,Q as InvalidClientMetadataException,V as InvalidClientException,J as InternalServerException,G as ExpiredTokenException,Rr as CreateTokenWithIAMResponseFilterSensitiveLog,Ir as CreateTokenWithIAMRequestFilterSensitiveLog,g as CreateTokenWithIAMCommand,$r as CreateTokenResponseFilterSensitiveLog,Sr as CreateTokenRequestFilterSensitiveLog,C as CreateTokenCommand,z as AuthorizationPendingException,x as AccessDeniedException,E as $Command};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"./chunk-7ce930fe69575c87.js";import{C as i,Q as I,_ as y,oa as C} from"./chunk-e05db2eae976681b.js";import"./chunk-9501e589e3e86a96.js";import{tb as n} from"./chunk-dfc390f0bbdf5a81.js";import u from"fs/promises";var T="169.254.170.2",x="169.254.170.23",P="[fd00:ec2::23]",d=(e,c)=>{if(e.protocol==="https:")return;if(e.hostname===T||e.hostname===x||e.hostname===P)return;if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(e.hostname==="localhost")return;const a=e.hostname.split("."),r=(t)=>{const s=parseInt(t,10);return 0<=s&&s<=255};if(a[0]==="127"&&r(a[1])&&r(a[2])&&r(a[3])&&a.length===4)return}throw new n(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
3
|
-
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
4
|
-
- ECS container host 169.254.170.2
|
|
5
|
-
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:c})};function S(e){return new i({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((c,[a,r])=>{return c[a]=r,c},{}),fragment:e.hash})}async function g(e,c){const r=await y(e.body).transformToString();if(e.statusCode===200){const t=JSON.parse(r);if(typeof t.AccessKeyId!=="string"||typeof t.SecretAccessKey!=="string"||typeof t.Token!=="string"||typeof t.Expiration!=="string")throw new n("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:c});return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:C(t.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let t={};try{t=JSON.parse(r)}catch(s){}throw Object.assign(new n(`Server responded with status: ${e.statusCode}`,{logger:c}),{Code:t.Code,Message:t.Message})}throw new n(`Server responded with status: ${e.statusCode}`,{logger:c})}var w=(e,c,a)=>{return async()=>{for(let r=0;r<c;++r)try{return await e()}catch(t){await new Promise((s)=>setTimeout(s,a))}return await e()}};var E="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",R="http://169.254.170.2",p="AWS_CONTAINER_CREDENTIALS_FULL_URI",A="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",O="AWS_CONTAINER_AUTHORIZATION_TOKEN",b=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let c;const a=e.awsContainerCredentialsRelativeUri??process.env[E],r=e.awsContainerCredentialsFullUri??process.env[p],t=e.awsContainerAuthorizationToken??process.env[O],s=e.awsContainerAuthorizationTokenFile??process.env[A],m=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console.warn:e.logger.warn;if(a&&r)m("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),m("awsContainerCredentialsFullUri will take precedence.");if(t&&s)m("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),m("awsContainerAuthorizationToken will take precedence.");if(r)c=r;else if(a)c=`${R}${a}`;else throw new n(`No HTTP credential provider host provided.
|
|
6
|
-
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:e.logger});const h=new URL(c);d(h,e.logger);const K=new I({requestTimeout:e.timeout??1000,connectionTimeout:e.timeout??1000});return w(async()=>{const o=S(h);if(t)o.headers.Authorization=t;else if(s)o.headers.Authorization=(await u.readFile(s)).toString();try{const f=await K.handle(o);return g(f.response)}catch(f){throw new n(String(f),{logger:e.logger})}},e.maxRetries??3,e.timeout??1000)};export{b as fromHttp};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{y as h,z as G} from"./chunk-7ce930fe69575c87.js";import{qb as I} from"./chunk-8b40d6a498f8bf81.js";import{tb as H,xb as K} from"./chunk-dac0e2ef13060d02.js";var t=G((r,j)=>{var T=function(c){const i={};if(c=c.replace(/^\?/,""),c)for(let n of c.split("&")){let[F,f=null]=n.split("=");if(F=decodeURIComponent(F),f)f=decodeURIComponent(f);if(!(F in i))i[F]=f;else if(Array.isArray(i[F]))i[F].push(f);else i[F]=[i[F],f]}return i},o=Object.defineProperty,M=Object.getOwnPropertyDescriptor,Q=Object.getOwnPropertyNames,U=Object.prototype.hasOwnProperty,O=(c,i)=>o(c,"name",{value:i,configurable:!0}),d=(c,i)=>{for(var n in i)o(c,n,{get:i[n],enumerable:!0})},v=(c,i,n,F)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let f of Q(i))if(!U.call(c,f)&&f!==n)o(c,f,{get:()=>i[f],enumerable:!(F=M(i,f))||F.enumerable})}return c},J=(c)=>v(o({},"__esModule",{value:!0}),c),S={};d(S,{parseQueryString:()=>T});j.exports=J(S);O(T,"parseQueryString")});var a=G((y,Z)=>{var{defineProperty:w,getOwnPropertyDescriptor:x,getOwnPropertyNames:P}=Object,s=Object.prototype.hasOwnProperty,l=(c,i)=>w(c,"name",{value:i,configurable:!0}),m=(c,i)=>{for(var n in i)w(c,n,{get:i[n],enumerable:!0})},k=(c,i,n,F)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let f of P(i))if(!s.call(c,f)&&f!==n)w(c,f,{get:()=>i[f],enumerable:!(F=x(i,f))||F.enumerable})}return c},q=(c)=>k(w({},"__esModule",{value:!0}),c),z={};m(z,{parseUrl:()=>X});Z.exports=q(z);var p=t(),X=l((c)=>{if(typeof c==="string")return X(new URL(c));const{hostname:i,pathname:n,port:F,protocol:f,search:E}=c;let N;if(E)N=p.parseQueryString(E);return{hostname:i,port:F?parseInt(F):void 0,protocol:f,path:n,query:N}},"parseUrl")});var R=h(I(),1);var b=h(I(),1);function C(c){try{const i=new Set(Array.from(c.match(/([A-Z_]){3,}/g)??[]));return i.delete("CONFIG"),i.delete("CONFIG_PREFIX_SEPARATOR"),i.delete("ENV"),[...i].join(", ")}catch(i){return c}}var B=(c,i)=>async()=>{try{const n=c(process.env);if(n===void 0)throw new Error;return n}catch(n){throw new b.CredentialsProviderError(n.message||`Not found in ENV: ${C(c.toString())}`,{logger:i})}};var L=h(I(),1);var V=(c,{preferredFile:i="config",...n}={})=>async()=>{const F=H(n),{configFile:f,credentialsFile:E}=await K(n),N=E[F]||{},$=f[F]||{},D=i==="config"?{...N,...$}:{...$,...N};try{const A=c(D,i==="config"?f:E);if(A===void 0)throw new Error;return A}catch(g){throw new L.CredentialsProviderError(g.message||`Not found in config files w/ profile [${F}]: ${C(c.toString())}`,{logger:n.logger})}};var W=h(I(),1),u=(c)=>typeof c==="function",Y=(c)=>u(c)?async()=>await c():W.fromStatic(c);var wi=({environmentVariableSelector:c,configFileSelector:i,default:n},F={})=>R.memoize(R.chain(B(c),V(i,F),Y(n)));export{a as ob,wi as pb};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{y as a,z as I} from"./chunk-7ce930fe69575c87.js";import{E as wM} from"./chunk-d7c78cd1ab7dc7ed.js";import{H as v,I as AU,J as N6,K as b5,N as vU,O as oL,R as aL,V as HW,Y as G8} from"./chunk-285299d784985340.js";import{nb as X0} from"./chunk-14e60554a2e78f4a.js";import{ob as NG,pb as F0} from"./chunk-cf7dde2ab1be3a3c.js";import{qb as z$} from"./chunk-8b40d6a498f8bf81.js";import{wb as FU} from"./chunk-dac0e2ef13060d02.js";var j0=I((SM,sU)=>{var{defineProperty:$1,getOwnPropertyDescriptor:MX,getOwnPropertyNames:IX}=Object,KX=Object.prototype.hasOwnProperty,pU=($,U)=>$1($,"name",{value:U,configurable:!0}),RX=($,U)=>{for(var G in U)$1($,G,{get:U[G],enumerable:!0})},EX=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of IX(U))if(!KX.call($,W)&&W!==G)$1($,W,{get:()=>U[W],enumerable:!(w=MX(U,W))||w.enumerable})}return $},BX=($)=>EX($1({},"__esModule",{value:!0}),$),gU={};RX(gU,{getSmithyContext:()=>VX,normalizeProvider:()=>AX});sU.exports=BX(gU);var dU=X0(),VX=pU(($)=>$[dU.SMITHY_CONTEXT_KEY]||($[dU.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),AX=pU(($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U},"normalizeProvider")});var R0=I((lU)=>{Object.defineProperty(lU,"__esModule",{value:!0});lU.getHomeDir=void 0;var HX=import.meta.require("os"),TX=import.meta.require("path"),U$={},fX=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},OX=()=>{const{HOME:$,USERPROFILE:U,HOMEPATH:G,HOMEDRIVE:w=`C:${TX.sep}`}=process.env;if($)return $;if(U)return U;if(G)return`${w}${G}`;const W=fX();if(!U$[W])U$[W]=HX.homedir();return U$[W]};lU.getHomeDir=OX});var G$=I((nU)=>{Object.defineProperty(nU,"__esModule",{value:!0});nU.getSSOTokenFilepath=void 0;var CX=import.meta.require("crypto"),qX=import.meta.require("path"),NX=R0(),PX=($)=>{const G=CX.createHash("sha1").update($).digest("hex");return qX.join(NX.getHomeDir(),".aws","sso","cache",`${G}.json`)};nU.getSSOTokenFilepath=PX});var aU=I((rU)=>{Object.defineProperty(rU,"__esModule",{value:!0});rU.getSSOTokenFromFile=void 0;var jX=import.meta.require("fs"),SX=G$(),{readFile:kX}=jX.promises,bX=async($)=>{const U=SX.getSSOTokenFilepath($),G=await kX(U,"utf8");return JSON.parse(G)};rU.getSSOTokenFromFile=bX});var W$=I((tU)=>{Object.defineProperty(tU,"__esModule",{value:!0});tU.slurpFile=void 0;var DX=import.meta.require("fs"),{readFile:hX}=DX.promises,w$={},xX=($,U)=>{if(!w$[$]||(U===null||U===void 0?void 0:U.ignoreCache))w$[$]=hX($,"utf8");return w$[$]};tU.slurpFile=xX});var Y$=I((xM,k0)=>{var{defineProperty:w1,getOwnPropertyDescriptor:vX,getOwnPropertyNames:yX}=Object,cX=Object.prototype.hasOwnProperty,y=($,U)=>w1($,"name",{value:U,configurable:!0}),_X=($,U)=>{for(var G in U)w1($,G,{get:U[G],enumerable:!0})},L$=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of yX(U))if(!cX.call($,W)&&W!==G)w1($,W,{get:()=>U[W],enumerable:!(w=vX(U,W))||w.enumerable})}return $},Z$=($,U,G)=>(L$($,U,"default"),G&&L$(G,U,"default")),uX=($)=>L$(w1({},"__esModule",{value:!0}),$),S0={};_X(S0,{CONFIG_PREFIX_SEPARATOR:()=>Z0,DEFAULT_PROFILE:()=>wG,ENV_PROFILE:()=>GG,getProfileName:()=>dX,loadSharedConfigFiles:()=>LG,loadSsoSessionData:()=>$Z,parseKnownFiles:()=>GZ});k0.exports=uX(S0);Z$(S0,R0(),k0.exports);var GG="AWS_PROFILE",wG="default",dX=y(($)=>$.profile||process.env[GG]||wG,"getProfileName");Z$(S0,G$(),k0.exports);Z$(S0,aU(),k0.exports);var U1=X0(),pX=y(($)=>Object.entries($).filter(([U])=>{const G=U.indexOf(Z0);if(G===-1)return!1;return Object.values(U1.IniSectionType).includes(U.substring(0,G))}).reduce((U,[G,w])=>{const W=G.indexOf(Z0),L=G.substring(0,W)===U1.IniSectionType.PROFILE?G.substring(W+1):G;return U[L]=w,U},{...$.default&&{default:$.default}}),"getConfigData"),G1=import.meta.require("path"),gX=R0(),sX="AWS_CONFIG_FILE",WG=y(()=>process.env[sX]||G1.join(gX.getHomeDir(),".aws","config"),"getConfigFilepath"),lX=R0(),mX="AWS_SHARED_CREDENTIALS_FILE",nX=y(()=>process.env[mX]||G1.join(lX.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),iX=R0(),rX=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,oX=["__proto__","profile __proto__"],X$=y(($)=>{const U={};let G,w;for(let W of $.split(/\r?\n/)){const L=W.split(/(^|\s)[;#]/)[0].trim();if(L[0]==="["&&L[L.length-1]==="]"){G=void 0,w=void 0;const Z=L.substring(1,L.length-1),Y=rX.exec(Z);if(Y){const[,z,,Q]=Y;if(Object.values(U1.IniSectionType).includes(z))G=[z,Q].join(Z0)}else G=Z;if(oX.includes(Z))throw new Error(`Found invalid profile name "${Z}"`)}else if(G){const Z=L.indexOf("=");if(![0,-1].includes(Z)){const[Y,z]=[L.substring(0,Z).trim(),L.substring(Z+1).trim()];if(z==="")w=Y;else{if(w&&W.trimStart()===W)w=void 0;U[G]=U[G]||{};const Q=w?[w,Y].join(Z0):Y;U[G][Q]=z}}}}return U},"parseIni"),$G=W$(),UG=y(()=>({}),"swallowError"),Z0=".",LG=y(async($={})=>{const{filepath:U=nX(),configFilepath:G=WG()}=$,w=iX.getHomeDir();let L=U;if(U.startsWith("~/"))L=G1.join(w,U.slice(2));let X=G;if(G.startsWith("~/"))X=G1.join(w,G.slice(2));const Z=await Promise.all([$G.slurpFile(X,{ignoreCache:$.ignoreCache}).then(X$).then(pX).catch(UG),$G.slurpFile(L,{ignoreCache:$.ignoreCache}).then(X$).catch(UG)]);return{configFile:Z[0],credentialsFile:Z[1]}},"loadSharedConfigFiles"),aX=y(($)=>Object.entries($).filter(([U])=>U.startsWith(U1.IniSectionType.SSO_SESSION+Z0)).reduce((U,[G,w])=>({...U,[G.substring(G.indexOf(Z0)+1)]:w}),{}),"getSsoSessionData"),tX=W$(),eX=y(()=>({}),"swallowError"),$Z=y(async($={})=>tX.slurpFile($.configFilepath??WG()).then(X$).then(aX).catch(eX),"loadSsoSessionData"),UZ=y((...$)=>{const U={};for(let G of $)for(let[w,W]of Object.entries(G))if(U[w]!==void 0)Object.assign(U[w],W);else U[w]=W;return U},"mergeConfigFiles"),GZ=y(async($)=>{const U=await LG($);return UZ(U.configFile,U.credentialsFile)},"parseKnownFiles")});var zG=I((vM,YG)=>{var Q$=function($){try{const U=new Set(Array.from($.match(/([A-Z_]){3,}/g)??[]));return U.delete("CONFIG"),U.delete("CONFIG_PREFIX_SEPARATOR"),U.delete("ENV"),[...U].join(", ")}catch(U){return $}},W1=Object.defineProperty,wZ=Object.getOwnPropertyDescriptor,WZ=Object.getOwnPropertyNames,LZ=Object.prototype.hasOwnProperty,E0=($,U)=>W1($,"name",{value:U,configurable:!0}),XZ=($,U)=>{for(var G in U)W1($,G,{get:U[G],enumerable:!0})},ZZ=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of WZ(U))if(!LZ.call($,W)&&W!==G)W1($,W,{get:()=>U[W],enumerable:!(w=wZ(U,W))||w.enumerable})}return $},YZ=($)=>ZZ(W1({},"__esModule",{value:!0}),$),ZG={};XZ(ZG,{loadConfig:()=>MZ});YG.exports=YZ(ZG);var b0=z$();E0(Q$,"getSelectorName");var zZ=E0(($,U)=>async()=>{try{const G=$(process.env);if(G===void 0)throw new Error;return G}catch(G){throw new b0.CredentialsProviderError(G.message||`Not found in ENV: ${Q$($.toString())}`,{logger:U})}},"fromEnv"),XG=Y$(),QZ=E0(($,{preferredFile:U="config",...G}={})=>async()=>{const w=XG.getProfileName(G),{configFile:W,credentialsFile:L}=await XG.loadSharedConfigFiles(G),X=L[w]||{},Z=W[w]||{},Y=U==="config"?{...X,...Z}:{...Z,...X};try{const Q=$(Y,U==="config"?W:L);if(Q===void 0)throw new Error;return Q}catch(z){throw new b0.CredentialsProviderError(z.message||`Not found in config files w/ profile [${w}]: ${Q$($.toString())}`,{logger:G.logger})}},"fromSharedConfigFiles"),FZ=E0(($)=>typeof $==="function","isFunction"),JZ=E0(($)=>FZ($)?async()=>await $():b0.fromStatic($),"fromStatic"),MZ=E0(({environmentVariableSelector:$,configFileSelector:U,default:G},w={})=>b0.memoize(b0.chain(zZ($),QZ(U,w),JZ(G))),"loadConfig")});var KG=I((MG)=>{Object.defineProperty(MG,"__esModule",{value:!0});MG.getEndpointUrlConfig=void 0;var QG=Y$(),FG="AWS_ENDPOINT_URL",JG="endpoint_url",IZ=($)=>({environmentVariableSelector:(U)=>{const G=$.split(" ").map((L)=>L.toUpperCase()),w=U[[FG,...G].join("_")];if(w)return w;const W=U[FG];if(W)return W;return},configFileSelector:(U,G)=>{if(G&&U.services){const W=G[["services",U.services].join(QG.CONFIG_PREFIX_SEPARATOR)];if(W){const L=$.split(" ").map((Z)=>Z.toLowerCase()),X=W[[L.join("_"),JG].join(QG.CONFIG_PREFIX_SEPARATOR)];if(X)return X}}const w=U[JG];if(w)return w;return},default:void 0});MG.getEndpointUrlConfig=IZ});var BG=I((RG)=>{Object.defineProperty(RG,"__esModule",{value:!0});RG.getEndpointFromConfig=void 0;var KZ=zG(),RZ=KG(),EZ=async($)=>KZ.loadConfig(RZ.getEndpointUrlConfig($))();RG.getEndpointFromConfig=EZ});var J$=I((_M,CG)=>{var OG=function($,U,G){return{applyToStack:(w)=>{w.add(AG($,G),TG),w.add(HG($,U),fG)}}},L1=Object.defineProperty,BZ=Object.getOwnPropertyDescriptor,VZ=Object.getOwnPropertyNames,AZ=Object.prototype.hasOwnProperty,F$=($,U)=>L1($,"name",{value:U,configurable:!0}),HZ=($,U)=>{for(var G in U)L1($,G,{get:U[G],enumerable:!0})},TZ=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of VZ(U))if(!AZ.call($,W)&&W!==G)L1($,W,{get:()=>U[W],enumerable:!(w=BZ(U,W))||w.enumerable})}return $},fZ=($)=>TZ(L1({},"__esModule",{value:!0}),$),VG={};HZ(VG,{deserializerMiddleware:()=>AG,deserializerMiddlewareOption:()=>TG,getSerdePlugin:()=>OG,serializerMiddleware:()=>HG,serializerMiddlewareOption:()=>fG});CG.exports=fZ(VG);var AG=F$(($,U)=>(G)=>async(w)=>{const{response:W}=await G(w);try{const L=await U(W,$);return{response:W,output:L}}catch(L){if(Object.defineProperty(L,"$response",{value:W}),!("$metadata"in L)){if(L.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof L.$responseBodyText!=="undefined"){if(L.$response)L.$response.body=L.$responseBodyText}}throw L}},"deserializerMiddleware"),HG=F$(($,U)=>(G,w)=>async(W)=>{var L;const X=((L=w.endpointV2)==null?void 0:L.url)&&$.urlParser?async()=>$.urlParser(w.endpointV2.url):$.endpoint;if(!X)throw new Error("No valid endpoint provider available.");const Z=await U(W.input,{...$,endpoint:X});return G({...W,request:Z})},"serializerMiddleware"),TG={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},fG={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};F$(OG,"getSerdePlugin")});var hG=I((uM,DG)=>{var{defineProperty:Z1,getOwnPropertyDescriptor:OZ,getOwnPropertyNames:CZ}=Object,qZ=Object.prototype.hasOwnProperty,d=($,U)=>Z1($,"name",{value:U,configurable:!0}),NZ=($,U)=>{for(var G in U)Z1($,G,{get:U[G],enumerable:!0})},PZ=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of CZ(U))if(!qZ.call($,W)&&W!==G)Z1($,W,{get:()=>U[W],enumerable:!(w=OZ(U,W))||w.enumerable})}return $},jZ=($)=>PZ(Z1({},"__esModule",{value:!0}),$),PG={};NZ(PG,{endpointMiddleware:()=>kG,endpointMiddlewareOptions:()=>bG,getEndpointFromInstructions:()=>jG,getEndpointPlugin:()=>_Z,resolveEndpointConfig:()=>uZ,resolveParams:()=>SG,toEndpointV1:()=>M$});DG.exports=jZ(PG);var SZ=d(async($)=>{const U=($==null?void 0:$.Bucket)||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(xZ(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!hZ(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},"resolveParamsForS3"),kZ=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,bZ=/(\d+\.){3}\d+/,DZ=/\.\./,hZ=d(($)=>kZ.test($)&&!bZ.test($)&&!DZ.test($),"isDnsCompatibleBucketName"),xZ=d(($)=>{const[U,G,w,,,W]=$.split(":"),L=U==="arn"&&$.split(":").length>=6,X=Boolean(L&&G&&w&&W);if(L&&!X)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return X},"isArnBucketName"),vZ=d(($,U,G)=>{const w=d(async()=>{const W=G[$]??G[U];if(typeof W==="function")return W();return W},"configProvider");if($==="credentialScope"||U==="CredentialScope")return async()=>{const W=typeof G.credentials==="function"?await G.credentials():G.credentials;return(W==null?void 0:W.credentialScope)??(W==null?void 0:W.CredentialScope)};if($==="accountId"||U==="AccountId")return async()=>{const W=typeof G.credentials==="function"?await G.credentials():G.credentials;return(W==null?void 0:W.accountId)??(W==null?void 0:W.AccountId)};if($==="endpoint"||U==="endpoint")return async()=>{const W=await w();if(W&&typeof W==="object"){if("url"in W)return W.url.href;if("hostname"in W){const{protocol:L,hostname:X,port:Z,path:Y}=W;return`${L}//${X}${Z?":"+Z:""}${Y}`}}return W};return w},"createConfigValueProvider"),yZ=BG(),qG=NG(),M$=d(($)=>{if(typeof $==="object"){if("url"in $)return qG.parseUrl($.url);return $}return qG.parseUrl($)},"toEndpointV1"),jG=d(async($,U,G,w)=>{if(!G.endpoint){const X=await yZ.getEndpointFromConfig(G.serviceId||"");if(X)G.endpoint=()=>Promise.resolve(M$(X))}const W=await SG($,U,G);if(typeof G.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return G.endpointProvider(W,w)},"getEndpointFromInstructions"),SG=d(async($,U,G)=>{var w;const W={},L=((w=U==null?void 0:U.getEndpointParameterInstructions)==null?void 0:w.call(U))||{};for(let[X,Z]of Object.entries(L))switch(Z.type){case"staticContextParams":W[X]=Z.value;break;case"contextParams":W[X]=$[Z.name];break;case"clientContextParams":case"builtInParams":W[X]=await vZ(Z.name,X,G)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(Z))}if(Object.keys(L).length===0)Object.assign(W,G);if(String(G.serviceId).toLowerCase()==="s3")await SZ(W);return W},"resolveParams"),X1=j0(),kG=d(({config:$,instructions:U})=>{return(G,w)=>async(W)=>{var L,X,Z;const Y=await jG(W.input,{getEndpointParameterInstructions(){return U}},{...$},w);w.endpointV2=Y,w.authSchemes=(L=Y.properties)==null?void 0:L.authSchemes;const z=(X=w.authSchemes)==null?void 0:X[0];if(z){w.signing_region=z.signingRegion,w.signing_service=z.signingName;const Q=X1.getSmithyContext(w),F=(Z=Q==null?void 0:Q.selectedHttpAuthScheme)==null?void 0:Z.httpAuthOption;if(F)F.signingProperties=Object.assign(F.signingProperties||{},{signing_region:z.signingRegion,signingRegion:z.signingRegion,signing_service:z.signingName,signingName:z.signingName,signingRegionSet:z.signingRegionSet},z.properties)}return G({...W})}},"endpointMiddleware"),cZ=J$(),bG={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:cZ.serializerMiddlewareOption.name},_Z=d(($,U)=>({applyToStack:(G)=>{G.addRelativeTo(kG({config:$,instructions:U}),bG)}}),"getEndpointPlugin"),uZ=d(($)=>{const U=$.tls??!0,{endpoint:G}=$,w=G!=null?async()=>M$(await X1.normalizeProvider(G)()):void 0;return{...$,endpoint:w,tls:U,isCustomEndpoint:!!G,useDualstackEndpoint:X1.normalizeProvider($.useDualstackEndpoint??!1),useFipsEndpoint:X1.normalizeProvider($.useFipsEndpoint??!1)}},"resolveEndpointConfig")});var n=I((dM,gG)=>{var uG=function($){return Object.keys($).reduce((U,G)=>{const w=$[G];return{...U,[G]:Array.isArray(w)?[...w]:w}},{})},pG=function($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)},Y1=Object.defineProperty,dZ=Object.getOwnPropertyDescriptor,pZ=Object.getOwnPropertyNames,gZ=Object.prototype.hasOwnProperty,e=($,U)=>Y1($,"name",{value:U,configurable:!0}),sZ=($,U)=>{for(var G in U)Y1($,G,{get:U[G],enumerable:!0})},lZ=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of pZ(U))if(!gZ.call($,W)&&W!==G)Y1($,W,{get:()=>U[W],enumerable:!(w=dZ(U,W))||w.enumerable})}return $},mZ=($)=>lZ(Y1({},"__esModule",{value:!0}),$),xG={};sZ(xG,{Field:()=>rZ,Fields:()=>oZ,HttpRequest:()=>aZ,HttpResponse:()=>tZ,IHttpRequest:()=>vG.HttpRequest,getHttpHandlerExtensionConfiguration:()=>nZ,isValidHostname:()=>pG,resolveHttpHandlerRuntimeConfig:()=>iZ});gG.exports=mZ(xG);var nZ=e(($)=>{let U=$.httpHandler;return{setHttpHandler(G){U=G},httpHandler(){return U},updateHttpClientConfig(G,w){U.updateHttpClientConfig(G,w)},httpHandlerConfigs(){return U.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),iZ=e(($)=>{return{httpHandler:$.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),vG=X0(),yG=class ${constructor({name:U,kind:G=vG.FieldPosition.HEADER,values:w=[]}){this.name=U,this.kind=G,this.values=w}add(U){this.values.push(U)}set(U){this.values=U}remove(U){this.values=this.values.filter((G)=>G!==U)}toString(){return this.values.map((U)=>U.includes(",")||U.includes(" ")?`"${U}"`:U).join(", ")}get(){return this.values}};e(yG,"Field");var rZ=yG,cG=class ${constructor({fields:U=[],encoding:G="utf-8"}){this.entries={},U.forEach(this.setField.bind(this)),this.encoding=G}setField(U){this.entries[U.name.toLowerCase()]=U}getField(U){return this.entries[U.toLowerCase()]}removeField(U){delete this.entries[U.toLowerCase()]}getByType(U){return Object.values(this.entries).filter((G)=>G.kind===U)}};e(cG,"Fields");var oZ=cG,_G=class ${constructor(U){this.method=U.method||"GET",this.hostname=U.hostname||"localhost",this.port=U.port,this.query=U.query||{},this.headers=U.headers||{},this.body=U.body,this.protocol=U.protocol?U.protocol.slice(-1)!==":"?`${U.protocol}:`:U.protocol:"https:",this.path=U.path?U.path.charAt(0)!=="/"?`/${U.path}`:U.path:"/",this.username=U.username,this.password=U.password,this.fragment=U.fragment}static clone(U){const G=new $({...U,headers:{...U.headers}});if(G.query)G.query=uG(G.query);return G}static isInstance(U){if(!U)return!1;const G=U;return"method"in G&&"protocol"in G&&"hostname"in G&&"path"in G&&typeof G.query==="object"&&typeof G.headers==="object"}clone(){return $.clone(this)}};e(_G,"HttpRequest");var aZ=_G;e(uG,"cloneQuery");var dG=class ${constructor(U){this.statusCode=U.statusCode,this.reason=U.reason,this.headers=U.headers||{},this.body=U.body}static isInstance(U){if(!U)return!1;const G=U;return typeof G.statusCode==="number"&&typeof G.headers==="object"}};e(dG,"HttpResponse");var tZ=dG;e(pG,"isValidHostname")});var I$=I((sG)=>{var $Y=function($){return $&&$.__esModule?$:{default:$}},UY=function(){if(z1>Q1.length-16)eZ.default.randomFillSync(Q1),z1=0;return Q1.slice(z1,z1+=16)};Object.defineProperty(sG,"__esModule",{value:!0});sG.default=UY;var eZ=$Y(import.meta.require("crypto")),Q1=new Uint8Array(256),z1=Q1.length});var nG=I((lG)=>{Object.defineProperty(lG,"__esModule",{value:!0});lG.default=void 0;var wY=/^(?:[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;lG.default=wY});var D0=I((iG)=>{var LY=function($){return $&&$.__esModule?$:{default:$}},XY=function($){return typeof $==="string"&&WY.default.test($)};Object.defineProperty(iG,"__esModule",{value:!0});iG.default=void 0;var WY=LY(nG()),ZY=XY;iG.default=ZY});var h0=I((aG)=>{var zY=function($){return $&&$.__esModule?$:{default:$}},oG=function($,U=0){return S[$[U+0]]+S[$[U+1]]+S[$[U+2]]+S[$[U+3]]+"-"+S[$[U+4]]+S[$[U+5]]+"-"+S[$[U+6]]+S[$[U+7]]+"-"+S[$[U+8]]+S[$[U+9]]+"-"+S[$[U+10]]+S[$[U+11]]+S[$[U+12]]+S[$[U+13]]+S[$[U+14]]+S[$[U+15]]},QY=function($,U=0){const G=oG($,U);if(!YY.default(G))throw TypeError("Stringified UUID is invalid");return G};Object.defineProperty(aG,"__esModule",{value:!0});aG.default=void 0;aG.unsafeStringify=oG;var YY=zY(D0()),S=[];for(let $=0;$<256;++$)S.push(($+256).toString(16).slice(1));var FY=QY;aG.default=FY});var Gw=I(($w)=>{var KY=function($){return $&&$.__esModule?$:{default:$}},RY=function($,U,G){let w=U&&G||0;const W=U||new Array(16);$=$||{};let L=$.node||eG,X=$.clockseq!==void 0?$.clockseq:K$;if(L==null||X==null){const J=$.random||($.rng||MY.default)();if(L==null)L=eG=[J[0]|1,J[1],J[2],J[3],J[4],J[5]];if(X==null)X=K$=(J[6]<<8|J[7])&16383}let Z=$.msecs!==void 0?$.msecs:Date.now(),Y=$.nsecs!==void 0?$.nsecs:E$+1;const z=Z-R$+(Y-E$)/1e4;if(z<0&&$.clockseq===void 0)X=X+1&16383;if((z<0||Z>R$)&&$.nsecs===void 0)Y=0;if(Y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");R$=Z,E$=Y,K$=X,Z+=12219292800000;const Q=((Z&268435455)*1e4+Y)%4294967296;W[w++]=Q>>>24&255,W[w++]=Q>>>16&255,W[w++]=Q>>>8&255,W[w++]=Q&255;const F=Z/4294967296*1e4&268435455;W[w++]=F>>>8&255,W[w++]=F&255,W[w++]=F>>>24&15|16,W[w++]=F>>>16&255,W[w++]=X>>>8|128,W[w++]=X&255;for(let J=0;J<6;++J)W[w+J]=L[J];return U||IY.unsafeStringify(W)};Object.defineProperty($w,"__esModule",{value:!0});$w.default=void 0;var MY=KY(I$()),IY=h0(),eG,K$,R$=0,E$=0,EY=RY;$w.default=EY});var B$=I((ww)=>{var VY=function($){return $&&$.__esModule?$:{default:$}},AY=function($){if(!BY.default($))throw TypeError("Invalid UUID");let U;const G=new Uint8Array(16);return G[0]=(U=parseInt($.slice(0,8),16))>>>24,G[1]=U>>>16&255,G[2]=U>>>8&255,G[3]=U&255,G[4]=(U=parseInt($.slice(9,13),16))>>>8,G[5]=U&255,G[6]=(U=parseInt($.slice(14,18),16))>>>8,G[7]=U&255,G[8]=(U=parseInt($.slice(19,23),16))>>>8,G[9]=U&255,G[10]=(U=parseInt($.slice(24,36),16))/1099511627776&255,G[11]=U/4294967296&255,G[12]=U>>>24&255,G[13]=U>>>16&255,G[14]=U>>>8&255,G[15]=U&255,G};Object.defineProperty(ww,"__esModule",{value:!0});ww.default=void 0;var BY=VY(D0()),HY=AY;ww.default=HY});var V$=I((Zw)=>{var OY=function($){return $&&$.__esModule?$:{default:$}},CY=function($){$=unescape(encodeURIComponent($));const U=[];for(let G=0;G<$.length;++G)U.push($.charCodeAt(G));return U},qY=function($,U,G){function w(W,L,X,Z){var Y;if(typeof W==="string")W=CY(W);if(typeof L==="string")L=fY.default(L);if(((Y=L)===null||Y===void 0?void 0:Y.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let z=new Uint8Array(16+W.length);if(z.set(L),z.set(W,L.length),z=G(z),z[6]=z[6]&15|U,z[8]=z[8]&63|128,X){Z=Z||0;for(let Q=0;Q<16;++Q)X[Z+Q]=z[Q];return X}return TY.unsafeStringify(z)}try{w.name=$}catch(W){}return w.DNS=Lw,w.URL=Xw,w};Object.defineProperty(Zw,"__esModule",{value:!0});Zw.URL=Zw.DNS=void 0;Zw.default=qY;var TY=h0(),fY=OY(B$()),Lw="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Zw.DNS=Lw;var Xw="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Zw.URL=Xw});var Fw=I((zw)=>{var SY=function($){return $&&$.__esModule?$:{default:$}},kY=function($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return jY.default.createHash("md5").update($).digest()};Object.defineProperty(zw,"__esModule",{value:!0});zw.default=void 0;var jY=SY(import.meta.require("crypto")),bY=kY;zw.default=bY});var Kw=I((Mw)=>{var Jw=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(Mw,"__esModule",{value:!0});Mw.default=void 0;var DY=Jw(V$()),hY=Jw(Fw()),xY=DY.default("v3",48,hY.default),vY=xY;Mw.default=vY});var Bw=I((Rw)=>{var cY=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(Rw,"__esModule",{value:!0});Rw.default=void 0;var yY=cY(import.meta.require("crypto")),_Y={randomUUID:yY.default.randomUUID};Rw.default=_Y});var fw=I((Hw)=>{var Aw=function($){return $&&$.__esModule?$:{default:$}},pY=function($,U,G){if(Vw.default.randomUUID&&!U&&!$)return Vw.default.randomUUID();$=$||{};const w=$.random||($.rng||uY.default)();if(w[6]=w[6]&15|64,w[8]=w[8]&63|128,U){G=G||0;for(let W=0;W<16;++W)U[G+W]=w[W];return U}return dY.unsafeStringify(w)};Object.defineProperty(Hw,"__esModule",{value:!0});Hw.default=void 0;var Vw=Aw(Bw()),uY=Aw(I$()),dY=h0(),gY=pY;Hw.default=gY});var qw=I((Ow)=>{var lY=function($){return $&&$.__esModule?$:{default:$}},mY=function($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return sY.default.createHash("sha1").update($).digest()};Object.defineProperty(Ow,"__esModule",{value:!0});Ow.default=void 0;var sY=lY(import.meta.require("crypto")),nY=mY;Ow.default=nY});var Sw=I((Pw)=>{var Nw=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(Pw,"__esModule",{value:!0});Pw.default=void 0;var iY=Nw(V$()),rY=Nw(qw()),oY=iY.default("v5",80,rY.default),aY=oY;Pw.default=aY});var Dw=I((kw)=>{Object.defineProperty(kw,"__esModule",{value:!0});kw.default=void 0;var tY="00000000-0000-0000-0000-000000000000";kw.default=tY});var vw=I((hw)=>{var $z=function($){return $&&$.__esModule?$:{default:$}},Uz=function($){if(!eY.default($))throw TypeError("Invalid UUID");return parseInt($.slice(14,15),16)};Object.defineProperty(hw,"__esModule",{value:!0});hw.default=void 0;var eY=$z(D0()),Gz=Uz;hw.default=Gz});var A$=I((p)=>{var i=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(p,"__esModule",{value:!0});Object.defineProperty(p,"NIL",{enumerable:!0,get:function(){return Zz.default}});Object.defineProperty(p,"parse",{enumerable:!0,get:function(){return Fz.default}});Object.defineProperty(p,"stringify",{enumerable:!0,get:function(){return Qz.default}});Object.defineProperty(p,"v1",{enumerable:!0,get:function(){return wz.default}});Object.defineProperty(p,"v3",{enumerable:!0,get:function(){return Wz.default}});Object.defineProperty(p,"v4",{enumerable:!0,get:function(){return Lz.default}});Object.defineProperty(p,"v5",{enumerable:!0,get:function(){return Xz.default}});Object.defineProperty(p,"validate",{enumerable:!0,get:function(){return zz.default}});Object.defineProperty(p,"version",{enumerable:!0,get:function(){return Yz.default}});var wz=i(Gw()),Wz=i(Kw()),Lz=i(fw()),Xz=i(Sw()),Zz=i(Dw()),Yz=i(vw()),zz=i(D0()),Qz=i(h0()),Fz=i(B$())});var Y0=I((W3,uw)=>{var{defineProperty:F1,getOwnPropertyDescriptor:Jz,getOwnPropertyNames:Mz}=Object,Iz=Object.prototype.hasOwnProperty,B0=($,U)=>F1($,"name",{value:U,configurable:!0}),Kz=($,U)=>{for(var G in U)F1($,G,{get:U[G],enumerable:!0})},Rz=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of Mz(U))if(!Iz.call($,W)&&W!==G)F1($,W,{get:()=>U[W],enumerable:!(w=Jz(U,W))||w.enumerable})}return $},Ez=($)=>Rz(F1({},"__esModule",{value:!0}),$),yw={};Kz(yw,{isClockSkewCorrectedError:()=>cw,isClockSkewError:()=>Oz,isRetryableByTrait:()=>fz,isServerError:()=>qz,isThrottlingError:()=>Cz,isTransientError:()=>_w});uw.exports=Ez(yw);var Bz=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],Vz=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],Az=["TimeoutError","RequestTimeout","RequestTimeoutException"],Hz=[500,502,503,504],Tz=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],fz=B0(($)=>$.$retryable!==void 0,"isRetryableByTrait"),Oz=B0(($)=>Bz.includes($.name),"isClockSkewError"),cw=B0(($)=>{var U;return(U=$.$metadata)==null?void 0:U.clockSkewCorrected},"isClockSkewCorrectedError"),Cz=B0(($)=>{var U,G;return((U=$.$metadata)==null?void 0:U.httpStatusCode)===429||Vz.includes($.name)||((G=$.$retryable)==null?void 0:G.throttling)==!0},"isThrottlingError"),_w=B0(($)=>{var U;return cw($)||Az.includes($.name)||Tz.includes(($==null?void 0:$.code)||"")||Hz.includes(((U=$.$metadata)==null?void 0:U.httpStatusCode)||0)},"isTransientError"),qz=B0(($)=>{var U;if(((U=$.$metadata)==null?void 0:U.httpStatusCode)!==void 0){const G=$.$metadata.httpStatusCode;if(500<=G&&G<=599&&!_w($))return!0;return!1}return!1},"isServerError")});var $W=I((L3,ew)=>{var{defineProperty:J1,getOwnPropertyDescriptor:Nz,getOwnPropertyNames:Pz}=Object,jz=Object.prototype.hasOwnProperty,g=($,U)=>J1($,"name",{value:U,configurable:!0}),Sz=($,U)=>{for(var G in U)J1($,G,{get:U[G],enumerable:!0})},kz=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of Pz(U))if(!jz.call($,W)&&W!==G)J1($,W,{get:()=>U[W],enumerable:!(w=Nz(U,W))||w.enumerable})}return $},bz=($)=>kz(J1({},"__esModule",{value:!0}),$),pw={};Sz(pw,{AdaptiveRetryStrategy:()=>cz,ConfiguredRetryStrategy:()=>_z,DEFAULT_MAX_ATTEMPTS:()=>H$,DEFAULT_RETRY_DELAY_BASE:()=>x0,DEFAULT_RETRY_MODE:()=>Dz,DefaultRateLimiter:()=>lw,INITIAL_RETRY_TOKENS:()=>T$,INVOCATION_ID_HEADER:()=>xz,MAXIMUM_RETRY_DELAY:()=>f$,NO_RETRY_INCREMENT:()=>rw,REQUEST_HEADER:()=>vz,RETRY_COST:()=>nw,RETRY_MODES:()=>gw,StandardRetryStrategy:()=>O$,THROTTLING_RETRY_DELAY_BASE:()=>mw,TIMEOUT_RETRY_COST:()=>iw});ew.exports=bz(pw);var gw=(($)=>{return $.STANDARD="standard",$.ADAPTIVE="adaptive",$})(gw||{}),H$=3,Dz="standard",hz=Y0(),sw=class ${constructor(U){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(U==null?void 0:U.beta)??0.7,this.minCapacity=(U==null?void 0:U.minCapacity)??1,this.minFillRate=(U==null?void 0:U.minFillRate)??0.5,this.scaleConstant=(U==null?void 0:U.scaleConstant)??0.4,this.smooth=(U==null?void 0:U.smooth)??0.8;const G=this.getCurrentTimeInSeconds();this.lastThrottleTime=G,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(U){if(!this.enabled)return;if(this.refillTokenBucket(),U>this.currentCapacity){const G=(U-this.currentCapacity)/this.fillRate*1000;await new Promise((w)=>setTimeout(w,G))}this.currentCapacity=this.currentCapacity-U}refillTokenBucket(){const U=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=U;return}const G=(U-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+G),this.lastTimestamp=U}updateClientSendingRate(U){let G;if(this.updateMeasuredRate(),hz.isThrottlingError(U)){const W=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=W,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),G=this.cubicThrottle(W),this.enableTokenBucket()}else this.calculateTimeWindow(),G=this.cubicSuccess(this.getCurrentTimeInSeconds());const w=Math.min(G,2*this.measuredTxRate);this.updateTokenBucketRate(w)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(U){return this.getPrecise(U*this.beta)}cubicSuccess(U){return this.getPrecise(this.scaleConstant*Math.pow(U-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(U){this.refillTokenBucket(),this.fillRate=Math.max(U,this.minFillRate),this.maxCapacity=Math.max(U,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const U=this.getCurrentTimeInSeconds(),G=Math.floor(U*2)/2;if(this.requestCount++,G>this.lastTxRateBucket){const w=this.requestCount/(G-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(w*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=G}}getPrecise(U){return parseFloat(U.toFixed(8))}};g(sw,"DefaultRateLimiter");var lw=sw,x0=100,f$=20000,mw=500,T$=500,nw=5,iw=10,rw=1,xz="amz-sdk-invocation-id",vz="amz-sdk-request",yz=g(()=>{let $=x0;return{computeNextBackoffDelay:g((w)=>{return Math.floor(Math.min(f$,Math.random()*2**w*$))},"computeNextBackoffDelay"),setDelayBase:g((w)=>{$=w},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),dw=g(({retryDelay:$,retryCount:U,retryCost:G})=>{return{getRetryCount:g(()=>U,"getRetryCount"),getRetryDelay:g(()=>Math.min(f$,$),"getRetryDelay"),getRetryCost:g(()=>G,"getRetryCost")}},"createDefaultRetryToken"),ow=class ${constructor(U){this.maxAttempts=U,this.mode="standard",this.capacity=T$,this.retryBackoffStrategy=yz(),this.maxAttemptsProvider=typeof U==="function"?U:async()=>U}async acquireInitialRetryToken(U){return dw({retryDelay:x0,retryCount:0})}async refreshRetryTokenForRetry(U,G){const w=await this.getMaxAttempts();if(this.shouldRetry(U,G,w)){const W=G.errorType;this.retryBackoffStrategy.setDelayBase(W==="THROTTLING"?mw:x0);const L=this.retryBackoffStrategy.computeNextBackoffDelay(U.getRetryCount()),X=G.retryAfterHint?Math.max(G.retryAfterHint.getTime()-Date.now()||0,L):L,Z=this.getCapacityCost(W);return this.capacity-=Z,dw({retryDelay:X,retryCount:U.getRetryCount()+1,retryCost:Z})}throw new Error("No retry token available")}recordSuccess(U){this.capacity=Math.max(T$,this.capacity+(U.getRetryCost()??rw))}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 ${H$}`),H$}}shouldRetry(U,G,w){return U.getRetryCount()+1<w&&this.capacity>=this.getCapacityCost(G.errorType)&&this.isRetryableError(G.errorType)}getCapacityCost(U){return U==="TRANSIENT"?iw:nw}isRetryableError(U){return U==="THROTTLING"||U==="TRANSIENT"}};g(ow,"StandardRetryStrategy");var O$=ow,aw=class ${constructor(U,G){this.maxAttemptsProvider=U,this.mode="adaptive";const{rateLimiter:w}=G??{};this.rateLimiter=w??new lw,this.standardRetryStrategy=new O$(U)}async acquireInitialRetryToken(U){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(U)}async refreshRetryTokenForRetry(U,G){return this.rateLimiter.updateClientSendingRate(G),this.standardRetryStrategy.refreshRetryTokenForRetry(U,G)}recordSuccess(U){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(U)}};g(aw,"AdaptiveRetryStrategy");var cz=aw,tw=class $ extends O${constructor(U,G=x0){super(typeof U==="function"?U:async()=>U);if(typeof G==="number")this.computeNextBackoffDelay=()=>G;else this.computeNextBackoffDelay=G}async refreshRetryTokenForRetry(U,G){const w=await super.refreshRetryTokenForRetry(U,G);return w.getRetryDelay=()=>this.computeNextBackoffDelay(w.getRetryCount()),w}};g(tw,"ConfiguredRetryStrategy");var _z=tw});var C$=I((X3,GW)=>{var{defineProperty:M1,getOwnPropertyDescriptor:uz,getOwnPropertyNames:dz}=Object,pz=Object.prototype.hasOwnProperty,gz=($,U)=>M1($,"name",{value:U,configurable:!0}),sz=($,U)=>{for(var G in U)M1($,G,{get:U[G],enumerable:!0})},lz=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of dz(U))if(!pz.call($,W)&&W!==G)M1($,W,{get:()=>U[W],enumerable:!(w=uz(U,W))||w.enumerable})}return $},mz=($)=>lz(M1({},"__esModule",{value:!0}),$),UW={};sz(UW,{isArrayBuffer:()=>nz});GW.exports=mz(UW);var nz=gz(($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]","isArrayBuffer")});var v0=I((Z3,LW)=>{var{defineProperty:I1,getOwnPropertyDescriptor:iz,getOwnPropertyNames:rz}=Object,oz=Object.prototype.hasOwnProperty,wW=($,U)=>I1($,"name",{value:U,configurable:!0}),az=($,U)=>{for(var G in U)I1($,G,{get:U[G],enumerable:!0})},tz=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of rz(U))if(!oz.call($,W)&&W!==G)I1($,W,{get:()=>U[W],enumerable:!(w=iz(U,W))||w.enumerable})}return $},ez=($)=>tz(I1({},"__esModule",{value:!0}),$),WW={};az(WW,{fromArrayBuffer:()=>U2,fromString:()=>G2});LW.exports=ez(WW);var $2=C$(),q$=import.meta.require("buffer"),U2=wW(($,U=0,G=$.byteLength-U)=>{if(!$2.isArrayBuffer($))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return q$.Buffer.from($,U,G)},"fromArrayBuffer"),G2=wW(($,U)=>{if(typeof $!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof $} (${$})`);return U?q$.Buffer.from($,U):q$.Buffer.from($)},"fromString")});var YW=I((XW)=>{Object.defineProperty(XW,"__esModule",{value:!0});XW.fromBase64=void 0;var w2=v0(),W2=/^[A-Za-z0-9+/]*={0,2}$/,L2=($)=>{if($.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!W2.exec($))throw new TypeError("Invalid base64 string.");const U=w2.fromString($,"base64");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength)};XW.fromBase64=L2});var $0=I((z3,JW)=>{var{defineProperty:K1,getOwnPropertyDescriptor:X2,getOwnPropertyNames:Z2}=Object,Y2=Object.prototype.hasOwnProperty,N$=($,U)=>K1($,"name",{value:U,configurable:!0}),z2=($,U)=>{for(var G in U)K1($,G,{get:U[G],enumerable:!0})},Q2=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of Z2(U))if(!Y2.call($,W)&&W!==G)K1($,W,{get:()=>U[W],enumerable:!(w=X2(U,W))||w.enumerable})}return $},F2=($)=>Q2(K1({},"__esModule",{value:!0}),$),zW={};z2(zW,{fromUtf8:()=>FW,toUint8Array:()=>J2,toUtf8:()=>M2});JW.exports=F2(zW);var QW=v0(),FW=N$(($)=>{const U=QW.fromString($,"utf8");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),J2=N$(($)=>{if(typeof $==="string")return FW($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},"toUint8Array"),M2=N$(($)=>{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 QW.fromArrayBuffer($.buffer,$.byteOffset,$.byteLength).toString("utf8")},"toUtf8")});var KW=I((MW)=>{Object.defineProperty(MW,"__esModule",{value:!0});MW.toBase64=void 0;var I2=v0(),K2=$0(),R2=($)=>{let U;if(typeof $==="string")U=K2.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 I2.fromArrayBuffer(U.buffer,U.byteOffset,U.byteLength).toString("base64")};MW.toBase64=R2});var E1=I((F3,R1)=>{var{defineProperty:RW,getOwnPropertyDescriptor:E2,getOwnPropertyNames:B2}=Object,V2=Object.prototype.hasOwnProperty,P$=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of B2(U))if(!V2.call($,W)&&W!==G)RW($,W,{get:()=>U[W],enumerable:!(w=E2(U,W))||w.enumerable})}return $},EW=($,U,G)=>(P$($,U,"default"),G&&P$(G,U,"default")),A2=($)=>P$(RW({},"__esModule",{value:!0}),$),j$={};R1.exports=A2(j$);EW(j$,YW(),R1.exports);EW(j$,KW(),R1.exports)});var AW=I((BW)=>{Object.defineProperty(BW,"__esModule",{value:!0});BW.getAwsChunkedEncodingStream=void 0;var H2=import.meta.require("stream"),T2=($,U)=>{const{base64Encoder:G,bodyLengthChecker:w,checksumAlgorithmFn:W,checksumLocationName:L,streamHasher:X}=U,Z=G!==void 0&&W!==void 0&&L!==void 0&&X!==void 0,Y=Z?X(W,$):void 0,z=new H2.Readable({read:()=>{}});return $.on("data",(Q)=>{const F=w(Q)||0;z.push(`${F.toString(16)}\r\n`),z.push(Q),z.push("\r\n")}),$.on("end",async()=>{if(z.push("0\r\n"),Z){const Q=G(await Y);z.push(`${L}:${Q}\r\n`),z.push("\r\n")}z.push(null)}),z};BW.getAwsChunkedEncodingStream=T2});var k$=I((M3,OW)=>{var fW=function($){const U=[];for(let G of Object.keys($).sort()){const w=$[G];if(G=S$.escapeUri(G),Array.isArray(w))for(let W=0,L=w.length;W<L;W++)U.push(`${G}=${S$.escapeUri(w[W])}`);else{let W=G;if(w||typeof w==="string")W+=`=${S$.escapeUri(w)}`;U.push(W)}}return U.join("&")},B1=Object.defineProperty,f2=Object.getOwnPropertyDescriptor,O2=Object.getOwnPropertyNames,C2=Object.prototype.hasOwnProperty,q2=($,U)=>B1($,"name",{value:U,configurable:!0}),N2=($,U)=>{for(var G in U)B1($,G,{get:U[G],enumerable:!0})},P2=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of O2(U))if(!C2.call($,W)&&W!==G)B1($,W,{get:()=>U[W],enumerable:!(w=f2(U,W))||w.enumerable})}return $},j2=($)=>P2(B1({},"__esModule",{value:!0}),$),TW={};N2(TW,{buildQueryString:()=>fW});OW.exports=j2(TW);var S$=HW();q2(fW,"buildQueryString")});var dW=I((I3,uW)=>{async function h$($,U,G=CW){const w=U.headers??{},W=w.Expect||w.expect;let L=-1,X=!1;if(W==="100-continue")await Promise.race([new Promise((Z)=>{L=Number(setTimeout(Z,Math.max(CW,G)))}),new Promise((Z)=>{$.on("continue",()=>{clearTimeout(L),Z()}),$.on("error",()=>{X=!0,clearTimeout(L),Z()})})]);if(!X)DW($,U.body)}var DW=function($,U){if(U instanceof bW.Readable){U.pipe($);return}if(U){if(Buffer.isBuffer(U)||typeof U==="string"){$.end(U);return}const G=U;if(typeof G==="object"&&G.buffer&&typeof G.byteOffset==="number"&&typeof G.byteLength==="number"){$.end(Buffer.from(G.buffer,G.byteOffset,G.byteLength));return}$.end(Buffer.from(U));return}$.end()};async function _W($){const U=[],G=$.getReader();let w=!1,W=0;while(!w){const{done:Z,value:Y}=await G.read();if(Y)U.push(Y),W+=Y.length;w=Z}const L=new Uint8Array(W);let X=0;for(let Z of U)L.set(Z,X),X+=Z.length;return L}var{create:S2,defineProperty:y0,getOwnPropertyDescriptor:k2,getOwnPropertyNames:b2,getPrototypeOf:D2}=Object,h2=Object.prototype.hasOwnProperty,C=($,U)=>y0($,"name",{value:U,configurable:!0}),x2=($,U)=>{for(var G in U)y0($,G,{get:U[G],enumerable:!0})},NW=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of b2(U))if(!h2.call($,W)&&W!==G)y0($,W,{get:()=>U[W],enumerable:!(w=k2(U,W))||w.enumerable})}return $},v2=($,U,G)=>(G=$!=null?S2(D2($)):{},NW(U||!$||!$.__esModule?y0(G,"default",{value:$,enumerable:!0}):G,$)),y2=($)=>NW(y0({},"__esModule",{value:!0}),$),PW={};x2(PW,{DEFAULT_REQUEST_TIMEOUT:()=>p2,NodeHttp2Handler:()=>n2,NodeHttpHandler:()=>g2,streamCollector:()=>r2});uW.exports=y2(PW);var jW=n(),SW=k$(),b$=import.meta.require("http"),D$=import.meta.require("https"),c2=["ECONNRESET","EPIPE","ETIMEDOUT"],kW=C(($)=>{const U={};for(let G of Object.keys($)){const w=$[G];U[G]=Array.isArray(w)?w.join(","):w}return U},"getTransformedHeaders"),_2=C(($,U,G=0)=>{if(!G)return;const w=setTimeout(()=>{$.destroy(),U(Object.assign(new Error(`Socket timed out without establishing a connection within ${G} ms`),{name:"TimeoutError"}))},G);$.on("socket",(W)=>{if(W.connecting)W.on("connect",()=>{clearTimeout(w)});else clearTimeout(w)})},"setConnectionTimeout"),u2=C(($,{keepAlive:U,keepAliveMsecs:G})=>{if(U!==!0)return;$.on("socket",(w)=>{w.setKeepAlive(U,G||0)})},"setSocketKeepAlive"),d2=C(($,U,G=0)=>{$.setTimeout(G,()=>{$.destroy(),U(Object.assign(new Error(`Connection timed out after ${G} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),bW=import.meta.require("stream"),CW=1000;C(h$,"writeRequestBody");C(DW,"writeBody");var p2=0,hW=class ${constructor(U){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((G,w)=>{if(typeof U==="function")U().then((W)=>{G(this.resolveDefaultConfig(W))}).catch(w);else G(this.resolveDefaultConfig(U))})}static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}static checkSocketUsage(U,G,w=console){var W,L,X;const{sockets:Z,requests:Y,maxSockets:z}=U;if(typeof z!=="number"||z===Infinity)return G;const Q=15000;if(Date.now()-Q<G)return G;if(Z&&Y)for(let F in Z){const J=((W=Z[F])==null?void 0:W.length)??0,K=((L=Y[F])==null?void 0:L.length)??0;if(J>=z&&K>=2*z)return(X=w==null?void 0:w.warn)==null||X.call(w,`@smithy/node-http-handler:WARN - socket usage at capacity=${J} and ${K} additional requests are enqueued.
|
|
2
|
-
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
3
|
-
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return G}resolveDefaultConfig(U){const{requestTimeout:G,connectionTimeout:w,socketTimeout:W,httpAgent:L,httpsAgent:X}=U||{};return{connectionTimeout:w,requestTimeout:G??W,httpAgent:(()=>{if(L instanceof b$.Agent||typeof(L==null?void 0:L.destroy)==="function")return L;return new b$.Agent({keepAlive:!0,maxSockets:50,...L})})(),httpsAgent:(()=>{if(X instanceof D$.Agent||typeof(X==null?void 0:X.destroy)==="function")return X;return new D$.Agent({keepAlive:!0,maxSockets:50,...X})})(),logger:console}}destroy(){var U,G,w,W;(G=(U=this.config)==null?void 0:U.httpAgent)==null||G.destroy(),(W=(w=this.config)==null?void 0:w.httpsAgent)==null||W.destroy()}async handle(U,{abortSignal:G}={}){if(!this.config)this.config=await this.configProvider;let w;return new Promise((W,L)=>{let X=void 0;const Z=C(async(E)=>{await X,clearTimeout(w),W(E)},"resolve"),Y=C(async(E)=>{await X,clearTimeout(w),L(E)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(G==null?void 0:G.aborted){const E=new Error("Request aborted");E.name="AbortError",Y(E);return}const z=U.protocol==="https:",Q=z?this.config.httpsAgent:this.config.httpAgent;w=setTimeout(()=>{this.socketWarningTimestamp=$.checkSocketUsage(Q,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const F=SW.buildQueryString(U.query||{});let J=void 0;if(U.username!=null||U.password!=null){const E=U.username??"",q=U.password??"";J=`${E}:${q}`}let K=U.path;if(F)K+=`?${F}`;if(U.fragment)K+=`#${U.fragment}`;const R={headers:U.headers,host:U.hostname,method:U.method,path:K,port:U.port,agent:Q,auth:J},V=(z?D$.request:b$.request)(R,(E)=>{const q=new jW.HttpResponse({statusCode:E.statusCode||-1,reason:E.statusMessage,headers:kW(E.headers),body:E});Z({response:q})});if(V.on("error",(E)=>{if(c2.includes(E.code))Y(Object.assign(E,{name:"TimeoutError"}));else Y(E)}),_2(V,Y,this.config.connectionTimeout),d2(V,Y,this.config.requestTimeout),G){const E=C(()=>{V.destroy();const q=new Error("Request aborted");q.name="AbortError",Y(q)},"onAbort");if(typeof G.addEventListener==="function"){const q=G;q.addEventListener("abort",E,{once:!0}),V.once("close",()=>q.removeEventListener("abort",E))}else G.onabort=E}const A=R.agent;if(typeof A==="object"&&"keepAlive"in A)u2(V,{keepAlive:A.keepAlive,keepAliveMsecs:A.keepAliveMsecs});X=h$(V,U,this.config.requestTimeout).catch((E)=>{return clearTimeout(w),L(E)})})}updateHttpClientConfig(U,G){this.config=void 0,this.configProvider=this.configProvider.then((w)=>{return{...w,[U]:G}})}httpHandlerConfigs(){return this.config??{}}};C(hW,"NodeHttpHandler");var g2=hW,qW=import.meta.require("http2"),s2=v2(import.meta.require("http2")),xW=class ${constructor(U){this.sessions=[],this.sessions=U??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(U){this.sessions.push(U)}contains(U){return this.sessions.includes(U)}remove(U){this.sessions=this.sessions.filter((G)=>G!==U)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(U){for(let G of this.sessions)if(G===U){if(!G.destroyed)G.destroy()}}};C(xW,"NodeHttp2ConnectionPool");var l2=xW,vW=class ${constructor(U){if(this.sessionCache=new Map,this.config=U,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(U,G){const w=this.getUrlString(U),W=this.sessionCache.get(w);if(W){const Y=W.poll();if(Y&&!this.config.disableConcurrency)return Y}const L=s2.default.connect(w);if(this.config.maxConcurrency)L.settings({maxConcurrentStreams:this.config.maxConcurrency},(Y)=>{if(Y)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+U.destination.toString())});L.unref();const X=C(()=>{L.destroy(),this.deleteSession(w,L)},"destroySessionCb");if(L.on("goaway",X),L.on("error",X),L.on("frameError",X),L.on("close",()=>this.deleteSession(w,L)),G.requestTimeout)L.setTimeout(G.requestTimeout,X);const Z=this.sessionCache.get(w)||new l2;return Z.offerLast(L),this.sessionCache.set(w,Z),L}deleteSession(U,G){const w=this.sessionCache.get(U);if(!w)return;if(!w.contains(G))return;w.remove(G),this.sessionCache.set(U,w)}release(U,G){var w;const W=this.getUrlString(U);(w=this.sessionCache.get(W))==null||w.offerLast(G)}destroy(){for(let[U,G]of this.sessionCache){for(let w of G){if(!w.destroyed)w.destroy();G.remove(w)}this.sessionCache.delete(U)}}setMaxConcurrentStreams(U){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=U}setDisableConcurrentStreams(U){this.config.disableConcurrency=U}getUrlString(U){return U.destination.toString()}};C(vW,"NodeHttp2ConnectionManager");var m2=vW,yW=class ${constructor(U){this.metadata={handlerProtocol:"h2"},this.connectionManager=new m2({}),this.configProvider=new Promise((G,w)=>{if(typeof U==="function")U().then((W)=>{G(W||{})}).catch(w);else G(U||{})})}static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}destroy(){this.connectionManager.destroy()}async handle(U,{abortSignal:G}={}){if(!this.config){if(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams)this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}const{requestTimeout:w,disableConcurrentStreams:W}=this.config;return new Promise((L,X)=>{var Z;let Y=!1,z=void 0;const Q=C(async(O)=>{await z,L(O)},"resolve"),F=C(async(O)=>{await z,X(O)},"reject");if(G==null?void 0:G.aborted){Y=!0;const O=new Error("Request aborted");O.name="AbortError",F(O);return}const{hostname:J,method:K,port:R,protocol:B,query:V}=U;let A="";if(U.username!=null||U.password!=null){const O=U.username??"",u=U.password??"";A=`${O}:${u}@`}const E=`${B}//${A}${J}${R?`:${R}`:""}`,q={destination:new URL(E)},b=this.connectionManager.lease(q,{requestTimeout:(Z=this.config)==null?void 0:Z.sessionTimeout,disableConcurrentStreams:W||!1}),_=C((O)=>{if(W)this.destroySession(b);Y=!0,F(O)},"rejectWithDestroy"),_U=SW.buildQueryString(V||{});let $$=U.path;if(_U)$$+=`?${_U}`;if(U.fragment)$$+=`#${U.fragment}`;const x=b.request({...U.headers,[qW.constants.HTTP2_HEADER_PATH]:$$,[qW.constants.HTTP2_HEADER_METHOD]:K});if(b.ref(),x.on("response",(O)=>{const u=new jW.HttpResponse({statusCode:O[":status"]||-1,headers:kW(O),body:x});if(Y=!0,Q({response:u}),W)b.close(),this.connectionManager.deleteSession(E,b)}),w)x.setTimeout(w,()=>{x.close();const O=new Error(`Stream timed out because of no activity for ${w} ms`);O.name="TimeoutError",_(O)});if(G){const O=C(()=>{x.close();const u=new Error("Request aborted");u.name="AbortError",_(u)},"onAbort");if(typeof G.addEventListener==="function"){const u=G;u.addEventListener("abort",O,{once:!0}),x.once("close",()=>u.removeEventListener("abort",O))}else G.onabort=O}x.on("frameError",(O,u,WX)=>{_(new Error(`Frame type id ${O} in stream id ${WX} has failed with code ${u}.`))}),x.on("error",_),x.on("aborted",()=>{_(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${x.rstCode}.`))}),x.on("close",()=>{if(b.unref(),W)b.destroy();if(!Y)_(new Error("Unexpected error: http2 request did not get a response"))}),z=h$(x,U,w)})}updateHttpClientConfig(U,G){this.config=void 0,this.configProvider=this.configProvider.then((w)=>{return{...w,[U]:G}})}httpHandlerConfigs(){return this.config??{}}destroySession(U){if(!U.destroyed)U.destroy()}};C(yW,"NodeHttp2Handler");var n2=yW,cW=class $ extends bW.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(U,G,w){this.bufferedBytes.push(U),w()}};C(cW,"Collector");var i2=cW,r2=C(($)=>{if(o2($))return _W($);return new Promise((U,G)=>{const w=new i2;$.pipe(w),$.on("error",(W)=>{w.end(),G(W)}),w.on("error",G),w.on("finish",function(){const W=new Uint8Array(Buffer.concat(this.bufferedBytes));U(W)})})},"streamCollector"),o2=C(($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream,"isReadableStreamInstance");C(_W,"collectReadableStream")});var oW=I((K3,rW)=>{var sW=function($=0){return new Promise((U,G)=>{if($)setTimeout(()=>{const w=new Error(`Request did not complete within ${$} ms`);w.name="TimeoutError",G(w)},$)})};async function mW($){const U=await iW($),G=L5.fromBase64(U);return new Uint8Array(G)}async function nW($){const U=[],G=$.getReader();let w=!1,W=0;while(!w){const{done:Z,value:Y}=await G.read();if(Y)U.push(Y),W+=Y.length;w=Z}const L=new Uint8Array(W);let X=0;for(let Z of U)L.set(Z,X),X+=Z.length;return L}var iW=function($){return new Promise((U,G)=>{const w=new FileReader;w.onloadend=()=>{if(w.readyState!==2)return G(new Error("Reader aborted too early"));const W=w.result??"",L=W.indexOf(","),X=L>-1?L+1:W.length;U(W.substring(X))},w.onabort=()=>G(new Error("Read aborted")),w.onerror=()=>G(w.error),w.readAsDataURL($)})},A1=Object.defineProperty,a2=Object.getOwnPropertyDescriptor,t2=Object.getOwnPropertyNames,e2=Object.prototype.hasOwnProperty,r=($,U)=>A1($,"name",{value:U,configurable:!0}),$5=($,U)=>{for(var G in U)A1($,G,{get:U[G],enumerable:!0})},U5=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of t2(U))if(!e2.call($,W)&&W!==G)A1($,W,{get:()=>U[W],enumerable:!(w=a2(U,W))||w.enumerable})}return $},G5=($)=>U5(A1({},"__esModule",{value:!0}),$),gW={};$5(gW,{FetchHttpHandler:()=>W5,keepAliveSupport:()=>V1,streamCollector:()=>X5});rW.exports=G5(gW);var pW=n(),w5=k$();r(sW,"requestTimeout");var V1={supported:void 0},lW=class ${static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}constructor(U){if(typeof U==="function")this.configProvider=U().then((G)=>G||{});else this.config=U??{},this.configProvider=Promise.resolve(this.config);if(V1.supported===void 0)V1.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in new Request("https://[::1]"))}destroy(){}async handle(U,{abortSignal:G}={}){if(!this.config)this.config=await this.configProvider;const w=this.config.requestTimeout,W=this.config.keepAlive===!0,L=this.config.credentials;if(G==null?void 0:G.aborted){const A=new Error("Request aborted");return A.name="AbortError",Promise.reject(A)}let X=U.path;const Z=w5.buildQueryString(U.query||{});if(Z)X+=`?${Z}`;if(U.fragment)X+=`#${U.fragment}`;let Y="";if(U.username!=null||U.password!=null){const A=U.username??"",E=U.password??"";Y=`${A}:${E}@`}const{port:z,method:Q}=U,F=`${U.protocol}//${Y}${U.hostname}${z?`:${z}`:""}${X}`,J=Q==="GET"||Q==="HEAD"?void 0:U.body,K={body:J,headers:new Headers(U.headers),method:Q,credentials:L};if(J)K.duplex="half";if(typeof AbortController!=="undefined")K.signal=G;if(V1.supported)K.keepalive=W;let R=r(()=>{},"removeSignalEventListener");const B=new Request(F,K),V=[fetch(B).then((A)=>{const E=A.headers,q={};for(let _ of E.entries())q[_[0]]=_[1];if(A.body==null)return A.blob().then((_)=>({response:new pW.HttpResponse({headers:q,reason:A.statusText,statusCode:A.status,body:_})}));return{response:new pW.HttpResponse({headers:q,reason:A.statusText,statusCode:A.status,body:A.body})}}),sW(w)];if(G)V.push(new Promise((A,E)=>{const q=r(()=>{const b=new Error("Request aborted");b.name="AbortError",E(b)},"onAbort");if(typeof G.addEventListener==="function"){const b=G;b.addEventListener("abort",q,{once:!0}),R=r(()=>b.removeEventListener("abort",q),"removeSignalEventListener")}else G.onabort=q}));return Promise.race(V).finally(R)}updateHttpClientConfig(U,G){this.config=void 0,this.configProvider=this.configProvider.then((w)=>{return w[U]=G,w})}httpHandlerConfigs(){return this.config??{}}};r(lW,"FetchHttpHandler");var W5=lW,L5=E1(),X5=r(($)=>{if(typeof Blob==="function"&&$ instanceof Blob)return mW($);return nW($)},"streamCollector");r(mW,"collectBlob");r(nW,"collectStream");r(iW,"readToBase64")});var c0=I((aW)=>{Object.defineProperty(aW,"__esModule",{value:!0});aW.isReadableStream=void 0;var Z5=($)=>{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)};aW.isReadableStream=Z5});var L8=I((w8)=>{Object.defineProperty(w8,"__esModule",{value:!0});w8.sdkStreamMixin=void 0;var Y5=oW(),z5=E1(),Q5=G8(),F5=$0(),eW=c0(),$8="The stream has already been transformed.",J5=($)=>{var U,G;if(!U8($)&&!eW.isReadableStream($)){const X=((G=(U=$===null||$===void 0?void 0:$.__proto__)===null||U===void 0?void 0:U.constructor)===null||G===void 0?void 0:G.name)||$;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${X}`)}let w=!1;const W=async()=>{if(w)throw new Error($8);return w=!0,await Y5.streamCollector($)},L=(X)=>{if(typeof X.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return X.stream()};return Object.assign($,{transformToByteArray:W,transformToString:async(X)=>{const Z=await W();if(X==="base64")return z5.toBase64(Z);else if(X==="hex")return Q5.toHex(Z);else if(X===void 0||X==="utf8"||X==="utf-8")return F5.toUtf8(Z);else if(typeof TextDecoder==="function")return new TextDecoder(X).decode(Z);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(w)throw new Error($8);if(w=!0,U8($))return L($);else if(eW.isReadableStream($))return $;else throw new Error(`Cannot transform payload to web stream, got ${$}`)}})};w8.sdkStreamMixin=J5;var U8=($)=>typeof Blob==="function"&&$ instanceof Blob});var z8=I((Z8)=>{Object.defineProperty(Z8,"__esModule",{value:!0});Z8.sdkStreamMixin=void 0;var M5=dW(),I5=v0(),x$=import.meta.require("stream"),K5=import.meta.require("util"),R5=L8(),X8="The stream has already been transformed.",E5=($)=>{var U,G;if(!($ instanceof x$.Readable))try{return R5.sdkStreamMixin($)}catch(L){const X=((G=(U=$===null||$===void 0?void 0:$.__proto__)===null||U===void 0?void 0:U.constructor)===null||G===void 0?void 0:G.name)||$;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${X}`)}let w=!1;const W=async()=>{if(w)throw new Error(X8);return w=!0,await M5.streamCollector($)};return Object.assign($,{transformToByteArray:W,transformToString:async(L)=>{const X=await W();if(L===void 0||Buffer.isEncoding(L))return I5.fromArrayBuffer(X.buffer,X.byteOffset,X.byteLength).toString(L);else return new K5.TextDecoder(L).decode(X)},transformToWebStream:()=>{if(w)throw new Error(X8);if($.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof x$.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,x$.Readable.toWeb($)}})};Z8.sdkStreamMixin=E5});var J8=I((Q8)=>{async function B5($){if(typeof $.stream==="function")$=$.stream();return $.tee()}Object.defineProperty(Q8,"__esModule",{value:!0});Q8.splitStream=void 0;Q8.splitStream=B5});var R8=I((I8)=>{async function H5($){if(A5.isReadableStream($))return V5.splitStream($);const U=new M8.PassThrough,G=new M8.PassThrough;return $.pipe(U),$.pipe(G),[U,G]}Object.defineProperty(I8,"__esModule",{value:!0});I8.splitStream=void 0;var M8=import.meta.require("stream"),V5=J8(),A5=c0();I8.splitStream=H5});var V8=I((E8)=>{async function T5($,U){var G;let w=0;const W=[],L=$.getReader();let X=!1;while(!X){const{done:z,value:Q}=await L.read();if(Q)W.push(Q),w+=(G=Q===null||Q===void 0?void 0:Q.byteLength)!==null&&G!==void 0?G:0;if(w>=U)break;X=z}L.releaseLock();const Z=new Uint8Array(Math.min(U,w));let Y=0;for(let z of W){if(z.byteLength>Z.byteLength-Y){Z.set(z.subarray(0,Z.byteLength-Y),Y);break}else Z.set(z,Y);Y+=z.length}return Z}Object.defineProperty(E8,"__esModule",{value:!0});E8.headStream=void 0;E8.headStream=T5});var f8=I((H8)=>{Object.defineProperty(H8,"__esModule",{value:!0});H8.headStream=void 0;var f5=import.meta.require("stream"),O5=V8(),C5=c0(),q5=($,U)=>{if(C5.isReadableStream($))return O5.headStream($,U);return new Promise((G,w)=>{const W=new A8;W.limit=U,$.pipe(W),$.on("error",(L)=>{W.end(),w(L)}),W.on("error",w),W.on("finish",function(){const L=new Uint8Array(Buffer.concat(this.buffers));G(L)})})};H8.headStream=q5;class A8 extends f5.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=Infinity,this.bytesBuffered=0}_write($,U,G){var w;if(this.buffers.push($),this.bytesBuffered+=(w=$.byteLength)!==null&&w!==void 0?w:0,this.bytesBuffered>=this.limit){const W=this.bytesBuffered-this.limit,L=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=L.subarray(0,L.byteLength-W),this.emit("finish")}G()}}});var j8=I((f3,Q0)=>{var q8=function($,U="utf-8"){if(U==="base64")return O8.toBase64($);return C8.toUtf8($)},N8=function($,U){if(U==="base64")return y$.mutate(O8.fromBase64($));return y$.mutate(C8.fromUtf8($))},H1=Object.defineProperty,N5=Object.getOwnPropertyDescriptor,P5=Object.getOwnPropertyNames,j5=Object.prototype.hasOwnProperty,c$=($,U)=>H1($,"name",{value:U,configurable:!0}),S5=($,U)=>{for(var G in U)H1($,G,{get:U[G],enumerable:!0})},v$=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of P5(U))if(!j5.call($,W)&&W!==G)H1($,W,{get:()=>U[W],enumerable:!(w=N5(U,W))||w.enumerable})}return $},_0=($,U,G)=>(v$($,U,"default"),G&&v$(G,U,"default")),k5=($)=>v$(H1({},"__esModule",{value:!0}),$),z0={};S5(z0,{Uint8ArrayBlobAdapter:()=>y$});Q0.exports=k5(z0);var O8=E1(),C8=$0();c$(q8,"transformToString");c$(N8,"transformFromString");var P8=class $ extends Uint8Array{static fromString(U,G="utf-8"){switch(typeof U){case"string":return N8(U,G);default:throw new Error(`Unsupported conversion from ${typeof U} to Uint8ArrayBlobAdapter.`)}}static mutate(U){return Object.setPrototypeOf(U,$.prototype),U}transformToString(U="utf-8"){return q8(this,U)}};c$(P8,"Uint8ArrayBlobAdapter");var y$=P8;_0(z0,AW(),Q0.exports);_0(z0,z8(),Q0.exports);_0(z0,R8(),Q0.exports);_0(z0,f8(),Q0.exports);_0(z0,c0(),Q0.exports)});var T0=I((O3,t8)=>{var g8=function($){const U=$.getUTCFullYear(),G=$.getUTCMonth(),w=$.getUTCDay(),W=$.getUTCDate(),L=$.getUTCHours(),X=$.getUTCMinutes(),Z=$.getUTCSeconds(),Y=W<10?`0${W}`:`${W}`,z=L<10?`0${L}`:`${L}`,Q=X<10?`0${X}`:`${X}`,F=Z<10?`0${Z}`:`${Z}`;return`${X9[w]}, ${Y} ${r$[G]} ${U} ${z}:${Q}:${F} GMT`},O1=function($){return encodeURIComponent($).replace(/[!'()*]/g,function(U){return"%"+U.charCodeAt(0).toString(16).toUpperCase()})},o$=function($,U,G){let w,W,L;if(typeof U==="undefined"&&typeof G==="undefined")w={},L=$;else if(w=$,typeof U==="function")return W=U,L=G,_9(w,W,L);else L=U;for(let X of Object.keys(L)){if(!Array.isArray(L[X])){w[X]=L[X];continue}o8(w,null,L,X)}return w},a8=function($,U,G){if(G<=0||!Number.isInteger(G))throw new Error("Invalid number of delimiters ("+G+") for splitEvery.");const w=$.split(U);if(G===1)return w;const W=[];let L="";for(let X=0;X<w.length;X++){if(L==="")L=w[X];else L+=U+w[X];if((X+1)%G===0)W.push(L),L=""}if(L!=="")W.push(L);return W},C1=Object.defineProperty,D5=Object.getOwnPropertyDescriptor,h5=Object.getOwnPropertyNames,x5=Object.prototype.hasOwnProperty,M=($,U)=>C1($,"name",{value:U,configurable:!0}),v5=($,U)=>{for(var G in U)C1($,G,{get:U[G],enumerable:!0})},y5=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of h5(U))if(!x5.call($,W)&&W!==G)C1($,W,{get:()=>U[W],enumerable:!(w=D5(U,W))||w.enumerable})}return $},c5=($)=>y5(C1({},"__esModule",{value:!0}),$),k8={};v5(k8,{Client:()=>u5,Command:()=>v8,LazyJsonString:()=>v9,NoOpLogger:()=>_5,SENSITIVE_STRING:()=>g5,ServiceException:()=>O9,StringWrapper:()=>s0,_json:()=>l$,collectBody:()=>d5,convertMap:()=>y9,createAggregatedClient:()=>s5,dateToUtcString:()=>g8,decorateServiceException:()=>l8,emitWarningIfUnsupportedVersion:()=>P9,expectBoolean:()=>m5,expectByte:()=>s$,expectFloat32:()=>T1,expectInt:()=>i5,expectInt32:()=>p$,expectLong:()=>p0,expectNonNull:()=>o5,expectNumber:()=>d0,expectObject:()=>c8,expectShort:()=>g$,expectString:()=>a5,expectUnion:()=>t5,extendedEncodeURIComponent:()=>O1,getArrayIfSingleItem:()=>x9,getDefaultClientConfiguration:()=>D9,getDefaultExtensionConfiguration:()=>n8,getValueFromTextNode:()=>i8,handleFloat:()=>U9,limitedParseDouble:()=>i$,limitedParseFloat:()=>G9,limitedParseFloat32:()=>w9,loadConfigsForDefaultMode:()=>N9,logger:()=>g0,map:()=>o$,parseBoolean:()=>l5,parseEpochTimestamp:()=>K9,parseRfc3339DateTime:()=>Y9,parseRfc3339DateTimeWithOffset:()=>Q9,parseRfc7231DateTime:()=>I9,resolveDefaultRuntimeConfig:()=>h9,resolvedPath:()=>p9,serializeDateTime:()=>s9,serializeFloat:()=>g9,splitEvery:()=>a8,strictParseByte:()=>p8,strictParseDouble:()=>n$,strictParseFloat:()=>e5,strictParseFloat32:()=>_8,strictParseInt:()=>W9,strictParseInt32:()=>L9,strictParseLong:()=>d8,strictParseShort:()=>V0,take:()=>c9,throwDefaultError:()=>m8,withBaseException:()=>C9});t8.exports=c5(k8);var b8=class ${trace(){}debug(){}info(){}warn(){}error(){}};M(b8,"NoOpLogger");var _5=b8,D8=b5(),h8=class ${constructor(U){this.middlewareStack=D8.constructStack(),this.config=U}send(U,G,w){const W=typeof G!=="function"?G:void 0,L=typeof G==="function"?G:w,X=U.resolveMiddleware(this.middlewareStack,this.config,W);if(L)X(U).then((Z)=>L(null,Z.output),(Z)=>L(Z)).catch(()=>{});else return X(U).then((Z)=>Z.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}};M(h8,"Client");var u5=h8,_$=j8(),d5=M(async($=new Uint8Array,U)=>{if($ instanceof Uint8Array)return _$.Uint8ArrayBlobAdapter.mutate($);if(!$)return _$.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const G=U.streamCollector($);return _$.Uint8ArrayBlobAdapter.mutate(await G)},"collectBody"),d$=X0(),x8=class ${constructor(){this.middlewareStack=D8.constructStack()}static classBuilder(){return new p5}resolveMiddlewareWithContext(U,G,w,{middlewareFn:W,clientName:L,commandName:X,inputFilterSensitiveLog:Z,outputFilterSensitiveLog:Y,smithyContext:z,additionalContext:Q,CommandCtor:F}){for(let V of W.bind(this)(F,U,G,w))this.middlewareStack.use(V);const J=U.concat(this.middlewareStack),{logger:K}=G,R={logger:K,clientName:L,commandName:X,inputFilterSensitiveLog:Z,outputFilterSensitiveLog:Y,[d$.SMITHY_CONTEXT_KEY]:{commandInstance:this,...z},...Q},{requestHandler:B}=G;return J.resolve((V)=>B.handle(V.request,w||{}),R)}};M(x8,"Command");var v8=x8,y8=class ${constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(U)=>U,this._outputFilterSensitiveLog=(U)=>U,this._serializer=null,this._deserializer=null}init(U){this._init=U}ep(U){return this._ep=U,this}m(U){return this._middlewareFn=U,this}s(U,G,w={}){return this._smithyContext={service:U,operation:G,...w},this}c(U={}){return this._additionalContext=U,this}n(U,G){return this._clientName=U,this._commandName=G,this}f(U=(w)=>w,G=(w)=>w){return this._inputFilterSensitiveLog=U,this._outputFilterSensitiveLog=G,this}ser(U){return this._serializer=U,this}de(U){return this._deserializer=U,this}build(){var U;const G=this;let w;return w=(U=class extends v8{constructor(...[W]){super();this.serialize=G._serializer,this.deserialize=G._deserializer,this.input=W??{},G._init(this)}static getEndpointParameterInstructions(){return G._ep}resolveMiddleware(W,L,X){return this.resolveMiddlewareWithContext(W,L,X,{CommandCtor:w,middlewareFn:G._middlewareFn,clientName:G._clientName,commandName:G._commandName,inputFilterSensitiveLog:G._inputFilterSensitiveLog,outputFilterSensitiveLog:G._outputFilterSensitiveLog,smithyContext:G._smithyContext,additionalContext:G._additionalContext})}},M(U,"CommandRef"),U)}};M(y8,"ClassBuilder");var p5=y8,g5="***SensitiveInformation***",s5=M(($,U)=>{for(let G of Object.keys($)){const w=$[G],W=M(async function(X,Z,Y){const z=new w(X);if(typeof Z==="function")this.send(z,Z);else if(typeof Y==="function"){if(typeof Z!=="object")throw new Error(`Expected http options but got ${typeof Z}`);this.send(z,Z||{},Y)}else return this.send(z,Z)},"methodImpl"),L=(G[0].toLowerCase()+G.slice(1)).replace(/Command$/,"");U.prototype[L]=W}},"createAggregatedClient"),l5=M(($)=>{switch($){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${$}"`)}},"parseBoolean"),m5=M(($)=>{if($===null||$===void 0)return;if(typeof $==="number"){if($===0||$===1)g0.warn(f1(`Expected boolean, got ${typeof $}: ${$}`));if($===0)return!1;if($===1)return!0}if(typeof $==="string"){const U=$.toLowerCase();if(U==="false"||U==="true")g0.warn(f1(`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"),d0=M(($)=>{if($===null||$===void 0)return;if(typeof $==="string"){const U=parseFloat($);if(!Number.isNaN(U)){if(String(U)!==String($))g0.warn(f1(`Expected number but observed string: ${$}`));return U}}if(typeof $==="number")return $;throw new TypeError(`Expected number, got ${typeof $}: ${$}`)},"expectNumber"),n5=Math.ceil(340282346638528860000000000000000000000),T1=M(($)=>{const U=d0($);if(U!==void 0&&!Number.isNaN(U)&&U!==Infinity&&U!==(-Infinity)){if(Math.abs(U)>n5)throw new TypeError(`Expected 32-bit float, got ${$}`)}return U},"expectFloat32"),p0=M(($)=>{if($===null||$===void 0)return;if(Number.isInteger($)&&!Number.isNaN($))return $;throw new TypeError(`Expected integer, got ${typeof $}: ${$}`)},"expectLong"),i5=p0,p$=M(($)=>m$($,32),"expectInt32"),g$=M(($)=>m$($,16),"expectShort"),s$=M(($)=>m$($,8),"expectByte"),m$=M(($,U)=>{const G=p0($);if(G!==void 0&&r5(G,U)!==G)throw new TypeError(`Expected ${U}-bit integer, got ${$}`);return G},"expectSizedInt"),r5=M(($,U)=>{switch(U){case 32:return Int32Array.of($)[0];case 16:return Int16Array.of($)[0];case 8:return Int8Array.of($)[0]}},"castInt"),o5=M(($,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"),c8=M(($)=>{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"),a5=M(($)=>{if($===null||$===void 0)return;if(typeof $==="string")return $;if(["boolean","number","bigint"].includes(typeof $))return g0.warn(f1(`Expected string, got ${typeof $}: ${$}`)),String($);throw new TypeError(`Expected string, got ${typeof $}: ${$}`)},"expectString"),t5=M(($)=>{if($===null||$===void 0)return;const U=c8($),G=Object.entries(U).filter(([,w])=>w!=null).map(([w])=>w);if(G.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(G.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${G} were not null.`);return U},"expectUnion"),n$=M(($)=>{if(typeof $=="string")return d0(H0($));return d0($)},"strictParseDouble"),e5=n$,_8=M(($)=>{if(typeof $=="string")return T1(H0($));return T1($)},"strictParseFloat32"),$9=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,H0=M(($)=>{const U=$.match($9);if(U===null||U[0].length!==$.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat($)},"parseNumber"),i$=M(($)=>{if(typeof $=="string")return u8($);return d0($)},"limitedParseDouble"),U9=i$,G9=i$,w9=M(($)=>{if(typeof $=="string")return u8($);return T1($)},"limitedParseFloat32"),u8=M(($)=>{switch($){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return (-Infinity);default:throw new Error(`Unable to parse float value: ${$}`)}},"parseFloatString"),d8=M(($)=>{if(typeof $==="string")return p0(H0($));return p0($)},"strictParseLong"),W9=d8,L9=M(($)=>{if(typeof $==="string")return p$(H0($));return p$($)},"strictParseInt32"),V0=M(($)=>{if(typeof $==="string")return g$(H0($));return g$($)},"strictParseShort"),p8=M(($)=>{if(typeof $==="string")return s$(H0($));return s$($)},"strictParseByte"),f1=M(($)=>{return String(new TypeError($).stack||$).split("\n").slice(0,5).filter((U)=>!U.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),g0={warn:console.warn},X9=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],r$=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];M(g8,"dateToUtcString");var Z9=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Y9=M(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const U=Z9.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");const[G,w,W,L,X,Z,Y,z]=U,Q=V0(A0(w)),F=l(W,"month",1,12),J=l(L,"day",1,31);return u0(Q,F,J,{hours:X,minutes:Z,seconds:Y,fractionalMilliseconds:z})},"parseRfc3339DateTime"),z9=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Q9=M(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const U=z9.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");const[G,w,W,L,X,Z,Y,z,Q]=U,F=V0(A0(w)),J=l(W,"month",1,12),K=l(L,"day",1,31),R=u0(F,J,K,{hours:X,minutes:Z,seconds:Y,fractionalMilliseconds:z});if(Q.toUpperCase()!="Z")R.setTime(R.getTime()-f9(Q));return R},"parseRfc3339DateTimeWithOffset"),F9=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$/),J9=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$/),M9=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})$/),I9=M(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let U=F9.exec($);if(U){const[G,w,W,L,X,Z,Y,z]=U;return u0(V0(A0(L)),u$(W),l(w,"day",1,31),{hours:X,minutes:Z,seconds:Y,fractionalMilliseconds:z})}if(U=J9.exec($),U){const[G,w,W,L,X,Z,Y,z]=U;return B9(u0(R9(L),u$(W),l(w,"day",1,31),{hours:X,minutes:Z,seconds:Y,fractionalMilliseconds:z}))}if(U=M9.exec($),U){const[G,w,W,L,X,Z,Y,z]=U;return u0(V0(A0(z)),u$(w),l(W.trimLeft(),"day",1,31),{hours:L,minutes:X,seconds:Z,fractionalMilliseconds:Y})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),K9=M(($)=>{if($===null||$===void 0)return;let U;if(typeof $==="number")U=$;else if(typeof $==="string")U=n$($);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"),u0=M(($,U,G,w)=>{const W=U-1;return A9($,W,G),new Date(Date.UTC($,W,G,l(w.hours,"hour",0,23),l(w.minutes,"minute",0,59),l(w.seconds,"seconds",0,60),T9(w.fractionalMilliseconds)))},"buildDate"),R9=M(($)=>{const U=(new Date()).getUTCFullYear(),G=Math.floor(U/100)*100+V0(A0($));if(G<U)return G+100;return G},"parseTwoDigitYear"),E9=1576800000000,B9=M(($)=>{if($.getTime()-(new Date()).getTime()>E9)return new Date(Date.UTC($.getUTCFullYear()-100,$.getUTCMonth(),$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),$.getUTCMilliseconds()));return $},"adjustRfc850Year"),u$=M(($)=>{const U=r$.indexOf($);if(U<0)throw new TypeError(`Invalid month: ${$}`);return U+1},"parseMonthByShortName"),V9=[31,28,31,30,31,30,31,31,30,31,30,31],A9=M(($,U,G)=>{let w=V9[U];if(U===1&&H9($))w=29;if(G>w)throw new TypeError(`Invalid day for ${r$[U]} in ${$}: ${G}`)},"validateDayOfMonth"),H9=M(($)=>{return $%4===0&&($%100!==0||$%400===0)},"isLeapYear"),l=M(($,U,G,w)=>{const W=p8(A0($));if(W<G||W>w)throw new TypeError(`${U} must be between ${G} and ${w}, inclusive`);return W},"parseDateValue"),T9=M(($)=>{if($===null||$===void 0)return 0;return _8("0."+$)*1000},"parseMilliseconds"),f9=M(($)=>{const U=$[0];let G=1;if(U=="+")G=1;else if(U=="-")G=-1;else throw new TypeError(`Offset direction, ${U}, must be "+" or "-"`);const w=Number($.substring(1,3)),W=Number($.substring(4,6));return G*(w*60+W)*60*1000},"parseOffsetToMilliseconds"),A0=M(($)=>{let U=0;while(U<$.length-1&&$.charAt(U)==="0")U++;if(U===0)return $;return $.slice(U)},"stripLeadingZeroes"),s8=class $ extends Error{constructor(U){super(U.message);Object.setPrototypeOf(this,$.prototype),this.name=U.name,this.$fault=U.$fault,this.$metadata=U.$metadata}};M(s8,"ServiceException");var O9=s8,l8=M(($,U={})=>{Object.entries(U).filter(([,w])=>w!==void 0).forEach(([w,W])=>{if($[w]==null||$[w]==="")$[w]=W});const G=$.message||$.Message||"UnknownError";return $.message=G,delete $.Message,$},"decorateServiceException"),m8=M(({output:$,parsedBody:U,exceptionCtor:G,errorCode:w})=>{const W=q9($),L=W.httpStatusCode?W.httpStatusCode+"":void 0,X=new G({name:(U==null?void 0:U.code)||(U==null?void 0:U.Code)||w||L||"UnknownError",$fault:"client",$metadata:W});throw l8(X,U)},"throwDefaultError"),C9=M(($)=>{return({output:U,parsedBody:G,errorCode:w})=>{m8({output:U,parsedBody:G,exceptionCtor:$,errorCode:w})}},"withBaseException"),q9=M(($)=>({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"),N9=M(($)=>{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"),S8=!1,P9=M(($)=>{if($&&!S8&&parseInt($.substring(1,$.indexOf(".")))<16)S8=!0},"emitWarningIfUnsupportedVersion"),j9=M(($)=>{const U=[];for(let G in d$.AlgorithmId){const w=d$.AlgorithmId[G];if($[w]===void 0)continue;U.push({algorithmId:()=>w,checksumConstructor:()=>$[w]})}return{_checksumAlgorithms:U,addChecksumAlgorithm(G){this._checksumAlgorithms.push(G)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),S9=M(($)=>{const U={};return $.checksumAlgorithms().forEach((G)=>{U[G.algorithmId()]=G.checksumConstructor()}),U},"resolveChecksumRuntimeConfig"),k9=M(($)=>{let U=$.retryStrategy;return{setRetryStrategy(G){U=G},retryStrategy(){return U}}},"getRetryConfiguration"),b9=M(($)=>{const U={};return U.retryStrategy=$.retryStrategy(),U},"resolveRetryRuntimeConfig"),n8=M(($)=>{return{...j9($),...k9($)}},"getDefaultExtensionConfiguration"),D9=n8,h9=M(($)=>{return{...S9($),...b9($)}},"resolveDefaultRuntimeConfig");M(O1,"extendedEncodeURIComponent");var x9=M(($)=>Array.isArray($)?$:[$],"getArrayIfSingleItem"),i8=M(($)=>{for(let G in $)if($.hasOwnProperty(G)&&$[G]["#text"]!==void 0)$[G]=$[G]["#text"];else if(typeof $[G]==="object"&&$[G]!==null)$[G]=i8($[G]);return $},"getValueFromTextNode"),s0=M(function(){const $=Object.getPrototypeOf(this).constructor,G=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(G,$.prototype),G},"StringWrapper");s0.prototype=Object.create(String.prototype,{constructor:{value:s0,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(s0,String);var r8=class $ extends s0{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))}};M(r8,"LazyJsonString");var v9=r8;M(o$,"map");var y9=M(($)=>{const U={};for(let[G,w]of Object.entries($||{}))U[G]=[,w];return U},"convertMap"),c9=M(($,U)=>{const G={};for(let w in U)o8(G,$,U,w);return G},"take"),_9=M(($,U,G)=>{return o$($,Object.entries(G).reduce((w,[W,L])=>{if(Array.isArray(L))w[W]=L;else if(typeof L==="function")w[W]=[U,L()];else w[W]=[U,L];return w},{}))},"mapWithFilter"),o8=M(($,U,G,w)=>{if(U!==null){let X=G[w];if(typeof X==="function")X=[,X];const[Z=u9,Y=d9,z=w]=X;if(typeof Z==="function"&&Z(U[z])||typeof Z!=="function"&&!!Z)$[w]=Y(U[z]);return}let[W,L]=G[w];if(typeof L==="function"){let X;const Z=W===void 0&&(X=L())!=null,Y=typeof W==="function"&&!!W(void 0)||typeof W!=="function"&&!!W;if(Z)$[w]=X;else if(Y)$[w]=L()}else{const X=W===void 0&&L!=null,Z=typeof W==="function"&&!!W(L)||typeof W!=="function"&&!!W;if(X||Z)$[w]=L}},"applyInstruction"),u9=M(($)=>$!=null,"nonNullish"),d9=M(($)=>$,"pass"),p9=M(($,U,G,w,W,L)=>{if(U!=null&&U[G]!==void 0){const X=w();if(X.length<=0)throw new Error("Empty value provided for input HTTP label: "+G+".");$=$.replace(W,L?X.split("/").map((Z)=>O1(Z)).join("/"):O1(X))}else throw new Error("No value provided for input HTTP label: "+G+".");return $},"resolvedPath"),g9=M(($)=>{if($!==$)return"NaN";switch($){case Infinity:return"Infinity";case (-Infinity):return"-Infinity";default:return $}},"serializeFloat"),s9=M(($)=>$.toISOString().replace(".000Z","Z"),"serializeDateTime"),l$=M(($)=>{if($==null)return{};if(Array.isArray($))return $.filter((U)=>U!=null).map(l$);if(typeof $==="object"){const U={};for(let G of Object.keys($)){if($[G]==null)continue;U[G]=l$($[G])}return U}return $},"_json");M(a8,"splitEvery")});var U4=I((e8)=>{Object.defineProperty(e8,"__esModule",{value:!0});e8.isStreamingPayload=void 0;var l9=import.meta.require("stream"),m9=($)=>($===null||$===void 0?void 0:$.body)instanceof l9.Readable||typeof ReadableStream!=="undefined"&&($===null||$===void 0?void 0:$.body)instanceof ReadableStream;e8.isStreamingPayload=m9});var V4=I((N3,B4)=>{var{defineProperty:q1,getOwnPropertyDescriptor:n9,getOwnPropertyNames:i9}=Object,r9=Object.prototype.hasOwnProperty,P=($,U)=>q1($,"name",{value:U,configurable:!0}),o9=($,U)=>{for(var G in U)q1($,G,{get:U[G],enumerable:!0})},a9=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of i9(U))if(!r9.call($,W)&&W!==G)q1($,W,{get:()=>U[W],enumerable:!(w=n9(U,W))||w.enumerable})}return $},t9=($)=>a9(q1({},"__esModule",{value:!0}),$),w4={};o9(w4,{AdaptiveRetryStrategy:()=>UQ,CONFIG_MAX_ATTEMPTS:()=>t$,CONFIG_RETRY_MODE:()=>J4,ENV_MAX_ATTEMPTS:()=>a$,ENV_RETRY_MODE:()=>F4,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>GQ,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>WQ,StandardRetryStrategy:()=>z4,defaultDelayDecider:()=>L4,defaultRetryDecider:()=>X4,getOmitRetryHeadersPlugin:()=>LQ,getRetryAfterHint:()=>E4,getRetryPlugin:()=>FQ,omitRetryHeadersMiddleware:()=>M4,omitRetryHeadersMiddlewareOptions:()=>I4,resolveRetryConfig:()=>wQ,retryMiddleware:()=>K4,retryMiddlewareOptions:()=>R4});B4.exports=t9(w4);var f0=n(),W4=A$(),f=$W(),e9=P(($,U)=>{const G=$,w=(U==null?void 0:U.noRetryIncrement)??f.NO_RETRY_INCREMENT,W=(U==null?void 0:U.retryCost)??f.RETRY_COST,L=(U==null?void 0:U.timeoutRetryCost)??f.TIMEOUT_RETRY_COST;let X=$;const Z=P((F)=>F.name==="TimeoutError"?L:W,"getCapacityAmount"),Y=P((F)=>Z(F)<=X,"hasRetryTokens");return Object.freeze({hasRetryTokens:Y,retrieveRetryTokens:P((F)=>{if(!Y(F))throw new Error("No retry token available");const J=Z(F);return X-=J,J},"retrieveRetryTokens"),releaseRetryTokens:P((F)=>{X+=F??w,X=Math.min(X,G)},"releaseRetryTokens")})},"getDefaultRetryQuota"),L4=P(($,U)=>Math.floor(Math.min(f.MAXIMUM_RETRY_DELAY,Math.random()*2**U*$)),"defaultDelayDecider"),U0=Y0(),X4=P(($)=>{if(!$)return!1;return U0.isRetryableByTrait($)||U0.isClockSkewError($)||U0.isThrottlingError($)||U0.isTransientError($)},"defaultRetryDecider"),Z4=P(($)=>{if($ instanceof Error)return $;if($ instanceof Object)return Object.assign(new Error,$);if(typeof $==="string")return new Error($);return new Error(`AWS SDK error wrapper for ${$}`)},"asSdkError"),Y4=class ${constructor(U,G){this.maxAttemptsProvider=U,this.mode=f.RETRY_MODES.STANDARD,this.retryDecider=(G==null?void 0:G.retryDecider)??X4,this.delayDecider=(G==null?void 0:G.delayDecider)??L4,this.retryQuota=(G==null?void 0:G.retryQuota)??e9(f.INITIAL_RETRY_TOKENS)}shouldRetry(U,G,w){return G<w&&this.retryDecider(U)&&this.retryQuota.hasRetryTokens(U)}async getMaxAttempts(){let U;try{U=await this.maxAttemptsProvider()}catch(G){U=f.DEFAULT_MAX_ATTEMPTS}return U}async retry(U,G,w){let W,L=0,X=0;const Z=await this.getMaxAttempts(),{request:Y}=G;if(f0.HttpRequest.isInstance(Y))Y.headers[f.INVOCATION_ID_HEADER]=W4.v4();while(!0)try{if(f0.HttpRequest.isInstance(Y))Y.headers[f.REQUEST_HEADER]=`attempt=${L+1}; max=${Z}`;if(w==null?void 0:w.beforeRequest)await w.beforeRequest();const{response:z,output:Q}=await U(G);if(w==null?void 0:w.afterRequest)w.afterRequest(z);return this.retryQuota.releaseRetryTokens(W),Q.$metadata.attempts=L+1,Q.$metadata.totalRetryDelay=X,{response:z,output:Q}}catch(z){const Q=Z4(z);if(L++,this.shouldRetry(Q,L,Z)){W=this.retryQuota.retrieveRetryTokens(Q);const F=this.delayDecider(U0.isThrottlingError(Q)?f.THROTTLING_RETRY_DELAY_BASE:f.DEFAULT_RETRY_DELAY_BASE,L),J=$Q(Q.$response),K=Math.max(J||0,F);X+=K,await new Promise((R)=>setTimeout(R,K));continue}if(!Q.$metadata)Q.$metadata={};throw Q.$metadata.attempts=L,Q.$metadata.totalRetryDelay=X,Q}}};P(Y4,"StandardRetryStrategy");var z4=Y4,$Q=P(($)=>{if(!f0.HttpResponse.isInstance($))return;const U=Object.keys($.headers).find((L)=>L.toLowerCase()==="retry-after");if(!U)return;const G=$.headers[U],w=Number(G);if(!Number.isNaN(w))return w*1000;return new Date(G).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),Q4=class $ extends z4{constructor(U,G){const{rateLimiter:w,...W}=G??{};super(U,W);this.rateLimiter=w??new f.DefaultRateLimiter,this.mode=f.RETRY_MODES.ADAPTIVE}async retry(U,G){return super.retry(U,G,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(w)=>{this.rateLimiter.updateClientSendingRate(w)}})}};P(Q4,"AdaptiveRetryStrategy");var UQ=Q4,G4=j0(),a$="AWS_MAX_ATTEMPTS",t$="max_attempts",GQ={environmentVariableSelector:($)=>{const U=$[a$];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Environment variable ${a$} mast be a number, got "${U}"`);return G},configFileSelector:($)=>{const U=$[t$];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Shared config file entry ${t$} mast be a number, got "${U}"`);return G},default:f.DEFAULT_MAX_ATTEMPTS},wQ=P(($)=>{const{retryStrategy:U}=$,G=G4.normalizeProvider($.maxAttempts??f.DEFAULT_MAX_ATTEMPTS);return{...$,maxAttempts:G,retryStrategy:async()=>{if(U)return U;if(await G4.normalizeProvider($.retryMode)()===f.RETRY_MODES.ADAPTIVE)return new f.AdaptiveRetryStrategy(G);return new f.StandardRetryStrategy(G)}}},"resolveRetryConfig"),F4="AWS_RETRY_MODE",J4="retry_mode",WQ={environmentVariableSelector:($)=>$[F4],configFileSelector:($)=>$[J4],default:f.DEFAULT_RETRY_MODE},M4=P(()=>($)=>async(U)=>{const{request:G}=U;if(f0.HttpRequest.isInstance(G))delete G.headers[f.INVOCATION_ID_HEADER],delete G.headers[f.REQUEST_HEADER];return $(U)},"omitRetryHeadersMiddleware"),I4={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},LQ=P(($)=>({applyToStack:(U)=>{U.addRelativeTo(M4(),I4)}}),"getOmitRetryHeadersPlugin"),XQ=T0(),ZQ=U4(),K4=P(($)=>(U,G)=>async(w)=>{var W;let L=await $.retryStrategy();const X=await $.maxAttempts();if(YQ(L)){L=L;let Z=await L.acquireInitialRetryToken(G.partition_id),Y=new Error,z=0,Q=0;const{request:F}=w,J=f0.HttpRequest.isInstance(F);if(J)F.headers[f.INVOCATION_ID_HEADER]=W4.v4();while(!0)try{if(J)F.headers[f.REQUEST_HEADER]=`attempt=${z+1}; max=${X}`;const{response:K,output:R}=await U(w);return L.recordSuccess(Z),R.$metadata.attempts=z+1,R.$metadata.totalRetryDelay=Q,{response:K,output:R}}catch(K){const R=zQ(K);if(Y=Z4(K),J&&ZQ.isStreamingPayload(F))throw(W=G.logger instanceof XQ.NoOpLogger?console:G.logger)==null||W.warn("An error was encountered in a non-retryable streaming request."),Y;try{Z=await L.refreshRetryTokenForRetry(Z,R)}catch(V){if(!Y.$metadata)Y.$metadata={};throw Y.$metadata.attempts=z+1,Y.$metadata.totalRetryDelay=Q,Y}z=Z.getRetryCount();const B=Z.getRetryDelay();Q+=B,await new Promise((V)=>setTimeout(V,B))}}else{if(L=L,L==null?void 0:L.mode)G.userAgent=[...G.userAgent||[],["cfg/retry-mode",L.mode]];return L.retry(U,w)}},"retryMiddleware"),YQ=P(($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined","isRetryStrategyV2"),zQ=P(($)=>{const U={error:$,errorType:QQ($)},G=E4($.$response);if(G)U.retryAfterHint=G;return U},"getRetryErrorInfo"),QQ=P(($)=>{if(U0.isThrottlingError($))return"THROTTLING";if(U0.isTransientError($))return"TRANSIENT";if(U0.isServerError($))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),R4={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},FQ=P(($)=>({applyToStack:(U)=>{U.add(K4($),R4)}}),"getRetryPlugin"),E4=P(($)=>{if(!f0.HttpResponse.isInstance($))return;const U=Object.keys($.headers).find((L)=>L.toLowerCase()==="retry-after");if(!U)return;const G=$.headers[U],w=Number(G);if(!Number.isNaN(w))return new Date(w*1000);return new Date(G)},"getRetryAfterHint")});var $U=I((P3,c4)=>{var T4=function($){const U=new Map;for(let G of $)U.set(G.schemeId,G);return U},h4=function($,U){return new v4($,U)},y4=function($,U,G,w,W){return T(async function*L(X,Z,...Y){let z=X.startingToken||void 0,Q=!0,F;while(Q){if(Z[G]=z,W)Z[W]=Z[W]??X.pageSize;if(X.client instanceof $)F=await xQ(U,X.client,Z,...Y);else throw new Error(`Invalid client, expected instance of ${$.name}`);yield F;const J=z;z=vQ(F,w),Q=!!(z&&(!X.stopOnSameToken||z!==J))}return},"paginateOperation")},P1=Object.defineProperty,JQ=Object.getOwnPropertyDescriptor,MQ=Object.getOwnPropertyNames,IQ=Object.prototype.hasOwnProperty,T=($,U)=>P1($,"name",{value:U,configurable:!0}),KQ=($,U)=>{for(var G in U)P1($,G,{get:U[G],enumerable:!0})},RQ=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of MQ(U))if(!IQ.call($,W)&&W!==G)P1($,W,{get:()=>U[W],enumerable:!(w=JQ(U,W))||w.enumerable})}return $},EQ=($)=>RQ(P1({},"__esModule",{value:!0}),$),A4={};KQ(A4,{DefaultIdentityProviderConfig:()=>qQ,EXPIRATION_MS:()=>b4,HttpApiKeyAuthSigner:()=>NQ,HttpBearerAuthSigner:()=>PQ,NoAuthSigner:()=>jQ,RequestBuilder:()=>v4,createIsIdentityExpiredFunction:()=>k4,createPaginator:()=>y4,doesIdentityRequireRefresh:()=>D4,getHttpAuthSchemeEndpointRuleSetPlugin:()=>VQ,getHttpAuthSchemePlugin:()=>HQ,getHttpSigningPlugin:()=>CQ,getSmithyContext:()=>bQ,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>f4,httpAuthSchemeMiddleware:()=>e$,httpAuthSchemeMiddlewareOptions:()=>O4,httpSigningMiddleware:()=>C4,httpSigningMiddlewareOptions:()=>q4,isIdentityExpired:()=>SQ,memoizeIdentityProvider:()=>kQ,normalizeProvider:()=>DQ,requestBuilder:()=>h4});c4.exports=EQ(A4);var H4=j0();T(T4,"convertHttpAuthSchemesToMap");var e$=T(($,U)=>(G,w)=>async(W)=>{var L;const X=$.httpAuthSchemeProvider(await U.httpAuthSchemeParametersProvider($,w,W.input)),Z=T4($.httpAuthSchemes),Y=H4.getSmithyContext(w),z=[];for(let Q of X){const F=Z.get(Q.schemeId);if(!F){z.push(`HttpAuthScheme \`${Q.schemeId}\` was not enabled for this service.`);continue}const J=F.identityProvider(await U.identityProviderConfigProvider($));if(!J){z.push(`HttpAuthScheme \`${Q.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:K={},signingProperties:R={}}=((L=Q.propertiesExtractor)==null?void 0:L.call(Q,$,w))||{};Q.identityProperties=Object.assign(Q.identityProperties||{},K),Q.signingProperties=Object.assign(Q.signingProperties||{},R),Y.selectedHttpAuthScheme={httpAuthOption:Q,identity:await J(Q.identityProperties),signer:F.signer};break}if(!Y.selectedHttpAuthScheme)throw new Error(z.join("\n"));return G(W)},"httpAuthSchemeMiddleware"),BQ=hG(),f4={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:BQ.endpointMiddlewareOptions.name},VQ=T(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G})=>({applyToStack:(w)=>{w.addRelativeTo(e$($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G}),f4)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),AQ=J$(),O4={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:AQ.serializerMiddlewareOption.name},HQ=T(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G})=>({applyToStack:(w)=>{w.addRelativeTo(e$($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G}),O4)}}),"getHttpAuthSchemePlugin"),j1=n(),TQ=T(($)=>(U)=>{throw U},"defaultErrorHandler"),fQ=T(($,U)=>{},"defaultSuccessHandler"),C4=T(($)=>(U,G)=>async(w)=>{if(!j1.HttpRequest.isInstance(w.request))return U(w);const L=H4.getSmithyContext(G).selectedHttpAuthScheme;if(!L)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:X={}},identity:Z,signer:Y}=L,z=await U({...w,request:await Y.sign(w.request,Z,X)}).catch((Y.errorHandler||TQ)(X));return(Y.successHandler||fQ)(z.response,X),z},"httpSigningMiddleware"),OQ=V4(),q4={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:OQ.retryMiddlewareOptions.name},CQ=T(($)=>({applyToStack:(U)=>{U.addRelativeTo(C4($),q4)}}),"getHttpSigningPlugin"),N4=class ${constructor(U){this.authSchemes=new Map;for(let[G,w]of Object.entries(U))if(w!==void 0)this.authSchemes.set(G,w)}getIdentityProvider(U){return this.authSchemes.get(U)}};T(N4,"DefaultIdentityProviderConfig");var qQ=N4,N1=X0(),P4=class ${async sign(U,G,w){if(!w)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!w.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!w.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!G.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");const W=j1.HttpRequest.clone(U);if(w.in===N1.HttpApiKeyAuthLocation.QUERY)W.query[w.name]=G.apiKey;else if(w.in===N1.HttpApiKeyAuthLocation.HEADER)W.headers[w.name]=w.scheme?`${w.scheme} ${G.apiKey}`:G.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+w.in+"`");return W}};T(P4,"HttpApiKeyAuthSigner");var NQ=P4,j4=class ${async sign(U,G,w){const W=j1.HttpRequest.clone(U);if(!G.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return W.headers.Authorization=`Bearer ${G.token}`,W}};T(j4,"HttpBearerAuthSigner");var PQ=j4,S4=class ${async sign(U,G,w){return U}};T(S4,"NoAuthSigner");var jQ=S4,k4=T(($)=>(U)=>D4(U)&&U.expiration.getTime()-Date.now()<$,"createIsIdentityExpiredFunction"),b4=300000,SQ=k4(b4),D4=T(($)=>$.expiration!==void 0,"doesIdentityRequireRefresh"),kQ=T(($,U,G)=>{if($===void 0)return;const w=typeof $!=="function"?async()=>Promise.resolve($):$;let W,L,X,Z=!1;const Y=T(async(z)=>{if(!L)L=w(z);try{W=await L,X=!0,Z=!1}finally{L=void 0}return W},"coalesceProvider");if(U===void 0)return async(z)=>{if(!X||(z==null?void 0:z.forceRefresh))W=await Y(z);return W};return async(z)=>{if(!X||(z==null?void 0:z.forceRefresh))W=await Y(z);if(Z)return W;if(!G(W))return Z=!0,W;if(U(W))return await Y(z),W;return W}},"memoizeIdentityProvider"),bQ=T(($)=>$[N1.SMITHY_CONTEXT_KEY]||($[N1.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),DQ=T(($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U},"normalizeProvider"),hQ=T0();T(h4,"requestBuilder");var x4=class ${constructor(U,G){this.input=U,this.context=G,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:U,protocol:G="https",port:w,path:W}=await this.context.endpoint();this.path=W;for(let L of this.resolvePathStack)L(this.path);return new j1.HttpRequest({protocol:G,hostname:this.hostname||U,port:w,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(U){return this.hostname=U,this}bp(U){return this.resolvePathStack.push((G)=>{this.path=`${(G==null?void 0:G.endsWith("/"))?G.slice(0,-1):G||""}`+U}),this}p(U,G,w,W){return this.resolvePathStack.push((L)=>{this.path=hQ.resolvedPath(L,this.input,U,G,w,W)}),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}};T(x4,"RequestBuilder");var v4=x4,xQ=T(async($,U,G,...w)=>{return await U.send(new $(G),...w)},"makePagedClientRequest");T(y4,"createPaginator");var vQ=T(($,U)=>{let G=$;const w=U.split(".");for(let W of w){if(!G||typeof G!=="object")return;G=G[W]}return G},"get")});var k6=I((lV,S6)=>{var{defineProperty:l1,getOwnPropertyDescriptor:RF,getOwnPropertyNames:EF}=Object,BF=Object.prototype.hasOwnProperty,VF=($,U)=>l1($,"name",{value:U,configurable:!0}),AF=($,U)=>{for(var G in U)l1($,G,{get:U[G],enumerable:!0})},HF=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of EF(U))if(!BF.call($,W)&&W!==G)l1($,W,{get:()=>U[W],enumerable:!(w=RF(U,W))||w.enumerable})}return $},TF=($)=>HF(l1({},"__esModule",{value:!0}),$),j6={};AF(j6,{emitWarningIfUnsupportedVersion:()=>fF});S6.exports=TF(j6);var P6=!1,fF=VF(($)=>{if($&&!P6&&parseInt($.substring(1,$.indexOf(".")))<18)P6=!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 a6=I((mV,o6)=>{var CU=function($){for(let U=0;U<8;U++)$[U]^=255;for(let U=7;U>-1;U--)if($[U]++,$[U]!==0)break},o1=Object.defineProperty,OF=Object.getOwnPropertyDescriptor,CF=Object.getOwnPropertyNames,qF=Object.prototype.hasOwnProperty,j=($,U)=>o1($,"name",{value:U,configurable:!0}),NF=($,U)=>{for(var G in U)o1($,G,{get:U[G],enumerable:!0})},PF=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of CF(U))if(!qF.call($,W)&&W!==G)o1($,W,{get:()=>U[W],enumerable:!(w=OF(U,W))||w.enumerable})}return $},jF=($)=>PF(o1({},"__esModule",{value:!0}),$),v6={};NF(v6,{SignatureV4:()=>U7,clearCredentialCache:()=>mF,createScope:()=>i1,getCanonicalHeaders:()=>OU,getCanonicalQuery:()=>s6,getPayloadHash:()=>r1,getSigningKey:()=>g6,moveHeadersToQuery:()=>i6,prepareRequest:()=>qU});o6.exports=jF(v6);var b6=j0(),HU=$0(),SF="X-Amz-Algorithm",kF="X-Amz-Credential",y6="X-Amz-Date",bF="X-Amz-SignedHeaders",DF="X-Amz-Expires",c6="X-Amz-Signature",_6="X-Amz-Security-Token",u6="authorization",d6=y6.toLowerCase(),hF="date",xF=[u6,d6,hF],vF=c6.toLowerCase(),fU="x-amz-content-sha256",yF=_6.toLowerCase(),cF={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},_F=/^proxy-/,uF=/^sec-/,TU="AWS4-HMAC-SHA256",dF="AWS4-HMAC-SHA256-PAYLOAD",pF="UNSIGNED-PAYLOAD",gF=50,p6="aws4_request",sF=604800,W0=G8(),lF=$0(),P0={},n1=[],i1=j(($,U,G)=>`${$}/${U}/${G}/${p6}`,"createScope"),g6=j(async($,U,G,w,W)=>{const L=await D6($,U.secretAccessKey,U.accessKeyId),X=`${G}:${w}:${W}:${W0.toHex(L)}:${U.sessionToken}`;if(X in P0)return P0[X];n1.push(X);while(n1.length>gF)delete P0[n1.shift()];let Z=`AWS4${U.secretAccessKey}`;for(let Y of[G,w,W,p6])Z=await D6($,Z,Y);return P0[X]=Z},"getSigningKey"),mF=j(()=>{n1.length=0,Object.keys(P0).forEach(($)=>{delete P0[$]})},"clearCredentialCache"),D6=j(($,U,G)=>{const w=new $(U);return w.update(lF.toUint8Array(G)),w.digest()},"hmac"),OU=j(({headers:$},U,G)=>{const w={};for(let W of Object.keys($).sort()){if($[W]==null)continue;const L=W.toLowerCase();if(L in cF||(U==null?void 0:U.has(L))||_F.test(L)||uF.test(L)){if(!G||G&&!G.has(L))continue}w[L]=$[W].trim().replace(/\s+/g," ")}return w},"getCanonicalHeaders"),r0=HW(),s6=j(({query:$={}})=>{const U=[],G={};for(let w of Object.keys($).sort()){if(w.toLowerCase()===vF)continue;U.push(w);const W=$[w];if(typeof W==="string")G[w]=`${r0.escapeUri(w)}=${r0.escapeUri(W)}`;else if(Array.isArray(W))G[w]=W.slice(0).reduce((L,X)=>L.concat([`${r0.escapeUri(w)}=${r0.escapeUri(X)}`]),[]).sort().join("&")}return U.map((w)=>G[w]).filter((w)=>w).join("&")},"getCanonicalQuery"),nF=C$(),iF=$0(),r1=j(async({headers:$,body:U},G)=>{for(let w of Object.keys($))if(w.toLowerCase()===fU)return $[w];if(U==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof U==="string"||ArrayBuffer.isView(U)||nF.isArrayBuffer(U)){const w=new G;return w.update(iF.toUint8Array(U)),W0.toHex(await w.digest())}return pF},"getPayloadHash"),h6=$0(),l6=class ${format(U){const G=[];for(let L of Object.keys(U)){const X=h6.fromUtf8(L);G.push(Uint8Array.from([X.byteLength]),X,this.formatHeaderValue(U[L]))}const w=new Uint8Array(G.reduce((L,X)=>L+X.byteLength,0));let W=0;for(let L of G)w.set(L,W),W+=L.byteLength;return w}formatHeaderValue(U){switch(U.type){case"boolean":return Uint8Array.from([U.value?0:1]);case"byte":return Uint8Array.from([2,U.value]);case"short":const G=new DataView(new ArrayBuffer(3));return G.setUint8(0,3),G.setInt16(1,U.value,!1),new Uint8Array(G.buffer);case"integer":const w=new DataView(new ArrayBuffer(5));return w.setUint8(0,4),w.setInt32(1,U.value,!1),new Uint8Array(w.buffer);case"long":const W=new Uint8Array(9);return W[0]=5,W.set(U.value.bytes,1),W;case"binary":const L=new DataView(new ArrayBuffer(3+U.value.byteLength));L.setUint8(0,6),L.setUint16(1,U.value.byteLength,!1);const X=new Uint8Array(L.buffer);return X.set(U.value,3),X;case"string":const Z=h6.fromUtf8(U.value),Y=new DataView(new ArrayBuffer(3+Z.byteLength));Y.setUint8(0,7),Y.setUint16(1,Z.byteLength,!1);const z=new Uint8Array(Y.buffer);return z.set(Z,3),z;case"timestamp":const Q=new Uint8Array(9);return Q[0]=8,Q.set(aF.fromNumber(U.value.valueOf()).bytes,1),Q;case"uuid":if(!oF.test(U.value))throw new Error(`Invalid UUID received: ${U.value}`);const F=new Uint8Array(17);return F[0]=9,F.set(W0.fromHex(U.value.replace(/\-/g,"")),1),F}}};j(l6,"HeaderFormatter");var rF=l6,oF=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,m6=class ${constructor(U){if(this.bytes=U,U.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(U){if(U>9223372036854776000||U<-9223372036854776000)throw new Error(`${U} is too large (or, if negative, too small) to represent as an Int64`);const G=new Uint8Array(8);for(let w=7,W=Math.abs(Math.round(U));w>-1&&W>0;w--,W/=256)G[w]=W;if(U<0)CU(G);return new $(G)}valueOf(){const U=this.bytes.slice(0),G=U[0]&128;if(G)CU(U);return parseInt(W0.toHex(U),16)*(G?-1:1)}toString(){return String(this.valueOf())}};j(m6,"Int64");var aF=m6;j(CU,"negate");var tF=j(($,U)=>{$=$.toLowerCase();for(let G of Object.keys(U))if($===G.toLowerCase())return!0;return!1},"hasHeader"),n6=n(),i6=j(($,U={})=>{var G;const{headers:w,query:W={}}=n6.HttpRequest.clone($);for(let L of Object.keys(w)){const X=L.toLowerCase();if(X.slice(0,6)==="x-amz-"&&!((G=U.unhoistableHeaders)==null?void 0:G.has(X)))W[L]=w[L],delete w[L]}return{...$,headers:w,query:W}},"moveHeadersToQuery"),qU=j(($)=>{$=n6.HttpRequest.clone($);for(let U of Object.keys($.headers))if(xF.indexOf(U.toLowerCase())>-1)delete $.headers[U];return $},"prepareRequest"),eF=j(($)=>$7($).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),$7=j(($)=>{if(typeof $==="number")return new Date($*1000);if(typeof $==="string"){if(Number($))return new Date(Number($)*1000);return new Date($)}return $},"toDate"),r6=class ${constructor({applyChecksum:U,credentials:G,region:w,service:W,sha256:L,uriEscapePath:X=!0}){this.headerFormatter=new rF,this.service=W,this.sha256=L,this.uriEscapePath=X,this.applyChecksum=typeof U==="boolean"?U:!0,this.regionProvider=b6.normalizeProvider(w),this.credentialProvider=b6.normalizeProvider(G)}async presign(U,G={}){const{signingDate:w=new Date,expiresIn:W=3600,unsignableHeaders:L,unhoistableHeaders:X,signableHeaders:Z,signingRegion:Y,signingService:z}=G,Q=await this.credentialProvider();this.validateResolvedCredentials(Q);const F=Y??await this.regionProvider(),{longDate:J,shortDate:K}=m1(w);if(W>sF)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const R=i1(K,F,z??this.service),B=i6(qU(U),{unhoistableHeaders:X});if(Q.sessionToken)B.query[_6]=Q.sessionToken;B.query[SF]=TU,B.query[kF]=`${Q.accessKeyId}/${R}`,B.query[y6]=J,B.query[DF]=W.toString(10);const V=OU(B,L,Z);return B.query[bF]=x6(V),B.query[c6]=await this.getSignature(J,R,this.getSigningKey(Q,F,K,z),this.createCanonicalRequest(B,V,await r1(U,this.sha256))),B}async sign(U,G){if(typeof U==="string")return this.signString(U,G);else if(U.headers&&U.payload)return this.signEvent(U,G);else if(U.message)return this.signMessage(U,G);else return this.signRequest(U,G)}async signEvent({headers:U,payload:G},{signingDate:w=new Date,priorSignature:W,signingRegion:L,signingService:X}){const Z=L??await this.regionProvider(),{shortDate:Y,longDate:z}=m1(w),Q=i1(Y,Z,X??this.service),F=await r1({headers:{},body:G},this.sha256),J=new this.sha256;J.update(U);const K=W0.toHex(await J.digest()),R=[dF,z,Q,W,K,F].join("\n");return this.signString(R,{signingDate:w,signingRegion:Z,signingService:X})}async signMessage(U,{signingDate:G=new Date,signingRegion:w,signingService:W}){return this.signEvent({headers:this.headerFormatter.format(U.message.headers),payload:U.message.body},{signingDate:G,signingRegion:w,signingService:W,priorSignature:U.priorSignature}).then((X)=>{return{message:U.message,signature:X}})}async signString(U,{signingDate:G=new Date,signingRegion:w,signingService:W}={}){const L=await this.credentialProvider();this.validateResolvedCredentials(L);const X=w??await this.regionProvider(),{shortDate:Z}=m1(G),Y=new this.sha256(await this.getSigningKey(L,X,Z,W));return Y.update(HU.toUint8Array(U)),W0.toHex(await Y.digest())}async signRequest(U,{signingDate:G=new Date,signableHeaders:w,unsignableHeaders:W,signingRegion:L,signingService:X}={}){const Z=await this.credentialProvider();this.validateResolvedCredentials(Z);const Y=L??await this.regionProvider(),z=qU(U),{longDate:Q,shortDate:F}=m1(G),J=i1(F,Y,X??this.service);if(z.headers[d6]=Q,Z.sessionToken)z.headers[yF]=Z.sessionToken;const K=await r1(z,this.sha256);if(!tF(fU,z.headers)&&this.applyChecksum)z.headers[fU]=K;const R=OU(z,W,w),B=await this.getSignature(Q,J,this.getSigningKey(Z,Y,F,X),this.createCanonicalRequest(z,R,K));return z.headers[u6]=`${TU} Credential=${Z.accessKeyId}/${J}, SignedHeaders=${x6(R)}, Signature=${B}`,z}createCanonicalRequest(U,G,w){const W=Object.keys(G).sort();return`${U.method}
|
|
10
|
-
${this.getCanonicalPath(U)}
|
|
11
|
-
${s6(U)}
|
|
12
|
-
${W.map((L)=>`${L}:${G[L]}`).join("\n")}
|
|
13
|
-
|
|
14
|
-
${W.join(";")}
|
|
15
|
-
${w}`}async createStringToSign(U,G,w){const W=new this.sha256;W.update(HU.toUint8Array(w));const L=await W.digest();return`${TU}
|
|
16
|
-
${U}
|
|
17
|
-
${G}
|
|
18
|
-
${W0.toHex(L)}`}getCanonicalPath({path:U}){if(this.uriEscapePath){const G=[];for(let L of U.split("/")){if((L==null?void 0:L.length)===0)continue;if(L===".")continue;if(L==="..")G.pop();else G.push(L)}const w=`${(U==null?void 0:U.startsWith("/"))?"/":""}${G.join("/")}${G.length>0&&(U==null?void 0:U.endsWith("/"))?"/":""}`;return r0.escapeUri(w).replace(/%2F/g,"/")}return U}async getSignature(U,G,w,W){const L=await this.createStringToSign(U,G,W),X=new this.sha256(await w);return X.update(HU.toUint8Array(L)),W0.toHex(await X.digest())}getSigningKey(U,G,w,W){return g6(this.sha256,U,w,G,W||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")}};j(r6,"SignatureV4");var U7=r6,m1=j(($)=>{const U=eF($).replace(/[\-:]/g,"");return{longDate:U,shortDate:U.slice(0,8)}},"formatDate"),x6=j(($)=>Object.keys($).sort().join(";"),"getCanonicalHeaderList")});var ZL=I((nV,XL)=>{var{defineProperty:a1,getOwnPropertyDescriptor:G7,getOwnPropertyNames:w7}=Object,W7=Object.prototype.hasOwnProperty,D=($,U)=>a1($,"name",{value:U,configurable:!0}),L7=($,U)=>{for(var G in U)a1($,G,{get:U[G],enumerable:!0})},X7=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of w7(U))if(!W7.call($,W)&&W!==G)a1($,W,{get:()=>U[W],enumerable:!(w=G7(U,W))||w.enumerable})}return $},Z7=($)=>X7(a1({},"__esModule",{value:!0}),$),GL={};L7(GL,{AWSSDKSigV4Signer:()=>F7,AwsSdkSigV4ASigner:()=>M7,AwsSdkSigV4Signer:()=>jU,NODE_SIGV4A_CONFIG_OPTIONS:()=>R7,resolveAWSSDKSigV4Config:()=>E7,resolveAwsSdkSigV4AConfig:()=>K7,resolveAwsSdkSigV4Config:()=>LL,validateSigningProperties:()=>PU});XL.exports=Z7(GL);var Y7=n(),z7=n(),t6=D(($)=>{var U,G;return z7.HttpResponse.isInstance($)?((U=$.headers)==null?void 0:U.date)??((G=$.headers)==null?void 0:G.Date):void 0},"getDateHeader"),NU=D(($)=>new Date(Date.now()+$),"getSkewCorrectedDate"),Q7=D(($,U)=>Math.abs(NU(U).getTime()-$)>=300000,"isClockSkewed"),e6=D(($,U)=>{const G=Date.parse($);if(Q7(G,U))return G-Date.now();return U},"getUpdatedSystemClockOffset"),o0=D(($,U)=>{if(!U)throw new Error(`Property \`${$}\` is not resolved for AWS SDK SigV4Auth`);return U},"throwSigningPropertyError"),PU=D(async($)=>{var U,G,w;const W=o0("context",$.context),L=o0("config",$.config),X=(w=(G=(U=W.endpointV2)==null?void 0:U.properties)==null?void 0:G.authSchemes)==null?void 0:w[0],Y=await o0("signer",L.signer)(X),z=$==null?void 0:$.signingRegion,Q=$==null?void 0:$.signingRegionSet,F=$==null?void 0:$.signingName;return{config:L,signer:Y,signingRegion:z,signingRegionSet:Q,signingName:F}},"validateSigningProperties"),wL=class ${async sign(U,G,w){var W;if(!Y7.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const L=await PU(w),{config:X,signer:Z}=L;let{signingRegion:Y,signingName:z}=L;const Q=w.context;if(((W=Q==null?void 0:Q.authSchemes)==null?void 0:W.length)??0>1){const[J,K]=Q.authSchemes;if((J==null?void 0:J.name)==="sigv4a"&&(K==null?void 0:K.name)==="sigv4")Y=(K==null?void 0:K.signingRegion)??Y,z=(K==null?void 0:K.signingName)??z}return await Z.sign(U,{signingDate:NU(X.systemClockOffset),signingRegion:Y,signingService:z})}errorHandler(U){return(G)=>{const w=G.ServerTime??t6(G.$response);if(w){const W=o0("config",U.config),L=W.systemClockOffset;if(W.systemClockOffset=e6(w,W.systemClockOffset),W.systemClockOffset!==L&&G.$metadata)G.$metadata.clockSkewCorrected=!0}throw G}}successHandler(U,G){const w=t6(U);if(w){const W=o0("config",G.config);W.systemClockOffset=e6(w,W.systemClockOffset)}}};D(wL,"AwsSdkSigV4Signer");var jU=wL,F7=jU,J7=n(),WL=class $ extends jU{async sign(U,G,w){var W;if(!J7.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:L,signer:X,signingRegion:Z,signingRegionSet:Y,signingName:z}=await PU(w),F=(await((W=L.sigv4aSigningRegionSet)==null?void 0:W.call(L))??Y??[Z]).join(",");return await X.sign(U,{signingDate:NU(L.systemClockOffset),signingRegion:F,signingService:z})}};D(WL,"AwsSdkSigV4ASigner");var M7=WL,I7=$U(),$L=z$(),K7=D(($)=>{return $.sigv4aSigningRegionSet=I7.normalizeProvider($.sigv4aSigningRegionSet),$},"resolveAwsSdkSigV4AConfig"),R7={environmentVariableSelector($){if($.AWS_SIGV4A_SIGNING_REGION_SET)return $.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((U)=>U.trim());throw new $L.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 $L.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},I0=$U(),UL=a6(),LL=D(($)=>{let U;if($.credentials)U=I0.memoizeIdentityProvider($.credentials,I0.isIdentityExpired,I0.doesIdentityRequireRefresh);if(!U)if($.credentialDefaultProvider)U=I0.normalizeProvider($.credentialDefaultProvider(Object.assign({},$,{parentClientConfig:$})));else U=D(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");const{signingEscapePath:G=!0,systemClockOffset:w=$.systemClockOffset||0,sha256:W}=$;let L;if($.signer)L=I0.normalizeProvider($.signer);else if($.regionInfoProvider)L=D(()=>I0.normalizeProvider($.region)().then(async(X)=>[await $.regionInfoProvider(X,{useFipsEndpoint:await $.useFipsEndpoint(),useDualstackEndpoint:await $.useDualstackEndpoint()})||{},X]).then(([X,Z])=>{const{signingRegion:Y,signingService:z}=X;$.signingRegion=$.signingRegion||Y||Z,$.signingName=$.signingName||z||$.serviceId;const Q={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:W,uriEscapePath:G};return new($.signerConstructor||UL.SignatureV4)(Q)}),"signer");else L=D(async(X)=>{X=Object.assign({},{name:"sigv4",signingName:$.signingName||$.defaultSigningName,signingRegion:await I0.normalizeProvider($.region)(),properties:{}},X);const{signingRegion:Z,signingName:Y}=X;$.signingRegion=$.signingRegion||Z,$.signingName=$.signingName||Y||$.serviceId;const z={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:W,uriEscapePath:G};return new($.signerConstructor||UL.SignatureV4)(z)},"signer");return{...$,systemClockOffset:w,signingEscapePath:G,credentials:U,signer:L}},"resolveAwsSdkSigV4Config"),E7=LL});var t1=I((T7)=>{var B7=":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",YL="[: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]["+B7+"]*",V7=new RegExp("^"+YL+"$"),A7=function($,U){const G=[];let w=U.exec($);while(w){const W=[];W.startIndex=U.lastIndex-w[0].length;const L=w.length;for(let X=0;X<L;X++)W.push(w[X]);G.push(W),w=U.exec($)}return G},H7=function($){const U=V7.exec($);return!(U===null||typeof U==="undefined")};T7.isExist=function($){return typeof $!=="undefined"};T7.isEmptyObject=function($){return Object.keys($).length===0};T7.merge=function($,U,G){if(U){const w=Object.keys(U),W=w.length;for(let L=0;L<W;L++)if(G==="strict")$[w[L]]=[U[w[L]]];else $[w[L]]=U[w[L]]}};T7.getValue=function($){if(T7.isExist($))return $;else return""};T7.isName=H7;T7.getAllMatches=A7;T7.nameRegexp=YL});var kU=I((c7)=>{var QL=function($){return $===" "||$==="\t"||$==="\n"||$==="\r"},FL=function($,U){const G=U;for(;U<$.length;U++)if($[U]=="?"||$[U]==" "){const w=$.substr(G,U-G);if(U>5&&w==="xml")return N("InvalidXml","XML declaration allowed only at the start of the document.",k($,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 G=1;for(U+=8;U<$.length;U++)if($[U]==="<")G++;else if($[U]===">"){if(G--,G===0)break}}else if($.length>U+9&&$[U+1]==="["&&$[U+2]==="C"&&$[U+3]==="D"&&$[U+4]==="A"&&$[U+5]==="T"&&$[U+6]==="A"&&$[U+7]==="["){for(U+=8;U<$.length;U++)if($[U]==="]"&&$[U+1]==="]"&&$[U+2]===">"){U+=2;break}}return U},b7=function($,U){let G="",w="",W=!1;for(;U<$.length;U++){if($[U]===S7||$[U]===k7)if(w==="")w=$[U];else if(w!==$[U]);else w="";else if($[U]===">"){if(w===""){W=!0;break}}G+=$[U]}if(w!=="")return!1;return{value:G,index:U,tagClosed:W}},ML=function($,U){const G=SU.getAllMatches($,D7),w={};for(let W=0;W<G.length;W++){if(G[W][1].length===0)return N("InvalidAttr","Attribute '"+G[W][2]+"' has no space in starting.",a0(G[W]));else if(G[W][3]!==void 0&&G[W][4]===void 0)return N("InvalidAttr","Attribute '"+G[W][2]+"' is without value.",a0(G[W]));else if(G[W][3]===void 0&&!U.allowBooleanAttributes)return N("InvalidAttr","boolean attribute '"+G[W][2]+"' is not allowed.",a0(G[W]));const L=G[W][2];if(!v7(L))return N("InvalidAttr","Attribute '"+L+"' is an invalid name.",a0(G[W]));if(!w.hasOwnProperty(L))w[L]=1;else return N("InvalidAttr","Attribute '"+L+"' is repeated.",a0(G[W]))}return!0},h7=function($,U){let G=/\d/;if($[U]==="x")U++,G=/[\da-fA-F]/;for(;U<$.length;U++){if($[U]===";")return U;if(!$[U].match(G))break}return-1},x7=function($,U){if(U++,$[U]===";")return-1;if($[U]==="#")return U++,h7($,U);let G=0;for(;U<$.length;U++,G++){if($[U].match(/\w/)&&G<20)continue;if($[U]===";")break;return-1}return U},N=function($,U,G){return{err:{code:$,msg:U,line:G.line||G,col:G.col}}},v7=function($){return SU.isName($)},y7=function($){return SU.isName($)},k=function($,U){const G=$.substring(0,U).split(/\r?\n/);return{line:G.length,col:G[G.length-1].length+1}},a0=function($){return $.startIndex+$[1].length},SU=t1(),j7={allowBooleanAttributes:!1,unpairedTags:[]};c7.validate=function($,U){U=Object.assign({},j7,U);const G=[];let w=!1,W=!1;if($[0]==="\uFEFF")$=$.substr(1);for(let L=0;L<$.length;L++)if($[L]==="<"&&$[L+1]==="?"){if(L+=2,L=FL($,L),L.err)return L}else if($[L]==="<"){let X=L;if(L++,$[L]==="!"){L=JL($,L);continue}else{let Z=!1;if($[L]==="/")Z=!0,L++;let Y="";for(;L<$.length&&$[L]!==">"&&$[L]!==" "&&$[L]!=="\t"&&$[L]!=="\n"&&$[L]!=="\r";L++)Y+=$[L];if(Y=Y.trim(),Y[Y.length-1]==="/")Y=Y.substring(0,Y.length-1),L--;if(!y7(Y)){let F;if(Y.trim().length===0)F="Invalid space after '<'.";else F="Tag '"+Y+"' is an invalid name.";return N("InvalidTag",F,k($,L))}const z=b7($,L);if(z===!1)return N("InvalidAttr","Attributes for '"+Y+"' have open quote.",k($,L));let Q=z.value;if(L=z.index,Q[Q.length-1]==="/"){const F=L-Q.length;Q=Q.substring(0,Q.length-1);const J=ML(Q,U);if(J===!0)w=!0;else return N(J.err.code,J.err.msg,k($,F+J.err.line))}else if(Z)if(!z.tagClosed)return N("InvalidTag","Closing tag '"+Y+"' doesn't have proper closing.",k($,L));else if(Q.trim().length>0)return N("InvalidTag","Closing tag '"+Y+"' can't have attributes or invalid starting.",k($,X));else if(G.length===0)return N("InvalidTag","Closing tag '"+Y+"' has not been opened.",k($,X));else{const F=G.pop();if(Y!==F.tagName){let J=k($,F.tagStartPos);return N("InvalidTag","Expected closing tag '"+F.tagName+"' (opened in line "+J.line+", col "+J.col+") instead of closing tag '"+Y+"'.",k($,X))}if(G.length==0)W=!0}else{const F=ML(Q,U);if(F!==!0)return N(F.err.code,F.err.msg,k($,L-Q.length+F.err.line));if(W===!0)return N("InvalidXml","Multiple possible root nodes found.",k($,L));else if(U.unpairedTags.indexOf(Y)!==-1);else G.push({tagName:Y,tagStartPos:X});w=!0}for(L++;L<$.length;L++)if($[L]==="<")if($[L+1]==="!"){L++,L=JL($,L);continue}else if($[L+1]==="?"){if(L=FL($,++L),L.err)return L}else break;else if($[L]==="&"){const F=x7($,L);if(F==-1)return N("InvalidChar","char '&' is not expected.",k($,L));L=F}else if(W===!0&&!QL($[L]))return N("InvalidXml","Extra text at the end",k($,L));if($[L]==="<")L--}}else{if(QL($[L]))continue;return N("InvalidChar","char '"+$[L]+"' is not expected.",k($,L))}if(!w)return N("InvalidXml","Start tag expected.",1);else if(G.length==1)return N("InvalidTag","Unclosed tag '"+G[0].tagName+"'.",k($,G[0].tagStartPos));else if(G.length>0)return N("InvalidXml","Invalid '"+JSON.stringify(G.map((L)=>L.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var S7='"',k7="'",D7=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var KL=I((d7)=>{var IL={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function($,U){return U},attributeValueProcessor:function($,U){return U},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function($,U,G){return $}},u7=function($){return Object.assign({},IL,$)};d7.buildOptions=u7;d7.defaultOptions=IL});var BL=I((aV,EL)=>{class RL{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})}}EL.exports=RL});var AL=I((tV,VL)=>{var l7=function($,U){const G={};if($[U+3]==="O"&&$[U+4]==="C"&&$[U+5]==="T"&&$[U+6]==="Y"&&$[U+7]==="P"&&$[U+8]==="E"){U=U+9;let w=1,W=!1,L=!1,X="";for(;U<$.length;U++)if($[U]==="<"&&!L){if(W&&i7($,U)){if(U+=7,[entityName,val,U]=m7($,U+1),val.indexOf("&")===-1)G[t7(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(W&&r7($,U))U+=8;else if(W&&o7($,U))U+=8;else if(W&&a7($,U))U+=9;else if(n7)L=!0;else throw new Error("Invalid DOCTYPE");w++,X=""}else if($[U]===">"){if(L){if($[U-1]==="-"&&$[U-2]==="-")L=!1,w--}else w--;if(w===0)break}else if($[U]==="[")W=!0;else X+=$[U];if(w!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:G,i:U}},m7=function($,U){let G="";for(;U<$.length&&($[U]!=="'"&&$[U]!=='"');U++)G+=$[U];if(G=G.trim(),G.indexOf(" ")!==-1)throw new Error("External entites are not supported");const w=$[U++];let W="";for(;U<$.length&&$[U]!==w;U++)W+=$[U];return[G,W,U]},n7=function($,U){if($[U+1]==="!"&&$[U+2]==="-"&&$[U+3]==="-")return!0;return!1},i7=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},r7=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},o7=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},a7=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},t7=function($){if(s7.isName($))return $;else throw new Error(`Invalid entity name ${$}`)},s7=t1();VL.exports=l7});var TL=I((eV,HL)=>{var GJ=function($,U={}){if(U=Object.assign({},UJ,U),!$||typeof $!=="string")return $;let G=$.trim();if(U.skipLike!==void 0&&U.skipLike.test(G))return $;else if(U.hex&&e7.test(G))return Number.parseInt(G,16);else{const w=$J.exec(G);if(w){const W=w[1],L=w[2];let X=wJ(w[3]);const Z=w[4]||w[6];if(!U.leadingZeros&&L.length>0&&W&&G[2]!==".")return $;else if(!U.leadingZeros&&L.length>0&&!W&&G[1]!==".")return $;else{const Y=Number(G),z=""+Y;if(z.search(/[eE]/)!==-1)if(U.eNotation)return Y;else return $;else if(Z)if(U.eNotation)return Y;else return $;else if(G.indexOf(".")!==-1)if(z==="0"&&X==="")return Y;else if(z===X)return Y;else if(W&&z==="-"+X)return Y;else return $;if(L)if(X===z)return Y;else if(W+X===z)return Y;else return $;if(G===z)return Y;else if(G===W+z)return Y;return $}}else return $}},wJ=function($){if($&&$.indexOf(".")!==-1){if($=$.replace(/0+$/,""),$===".")$="0";else if($[0]===".")$="0"+$;else if($[$.length-1]===".")$=$.substr(0,$.length-1);return $}return $},e7=/^[-+]?0x[a-fA-F0-9]+$/,$J=/^([\-\+])?(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 UJ={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};HL.exports=GJ});var qL=I(($A,CL)=>{var XJ=function($){const U=Object.keys($);for(let G=0;G<U.length;G++){const w=U[G];this.lastEntities[w]={regex:new RegExp("&"+w+";","g"),val:$[w]}}},ZJ=function($,U,G,w,W,L,X){if($!==void 0){if(this.options.trimValues&&!w)$=$.trim();if($.length>0){if(!X)$=this.replaceEntitiesValue($);const Z=this.options.tagValueProcessor(U,$,G,W,L);if(Z===null||Z===void 0)return $;else if(typeof Z!==typeof $||Z!==$)return Z;else if(this.options.trimValues)return DU($,this.options.parseTagValue,this.options.numberParseOptions);else if($.trim()===$)return DU($,this.options.parseTagValue,this.options.numberParseOptions);else return $}}},YJ=function($){if(this.options.removeNSPrefix){const U=$.split(":"),G=$.charAt(0)==="/"?"/":"";if(U[0]==="xmlns")return"";if(U.length===2)$=G+U[1]}return $},QJ=function($,U,G){if(!this.options.ignoreAttributes&&typeof $==="string"){const w=fL.getAllMatches($,zJ),W=w.length,L={};for(let X=0;X<W;X++){const Z=this.resolveNameSpace(w[X][1]);let Y=w[X][4],z=this.options.attributeNamePrefix+Z;if(Z.length){if(this.options.transformAttributeName)z=this.options.transformAttributeName(z);if(z==="__proto__")z="#__proto__";if(Y!==void 0){if(this.options.trimValues)Y=Y.trim();Y=this.replaceEntitiesValue(Y);const Q=this.options.attributeValueProcessor(Z,Y,U);if(Q===null||Q===void 0)L[z]=Y;else if(typeof Q!==typeof Y||Q!==Y)L[z]=Q;else L[z]=DU(Y,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)L[z]=!0}}if(!Object.keys(L).length)return;if(this.options.attributesGroupName){const X={};return X[this.options.attributesGroupName]=L,X}return L}},JJ=function($,U,G){const w=this.options.updateTag(U.tagname,G,U[":@"]);if(w===!1);else if(typeof w==="string")U.tagname=w,$.addChild(U);else $.addChild(U)},IJ=function($,U,G,w){if($){if(w===void 0)w=Object.keys(U.child).length===0;if($=this.parseTextData($,U.tagname,G,!1,U[":@"]?Object.keys(U[":@"]).length!==0:!1,w),$!==void 0&&$!=="")U.add(this.options.textNodeName,$);$=""}return $},KJ=function($,U,G){const w="*."+G;for(let W in $){const L=$[W];if(w===L||U===L)return!0}return!1},RJ=function($,U,G=">"){let w,W="";for(let L=U;L<$.length;L++){let X=$[L];if(w){if(X===w)w=""}else if(X==='"'||X==="'")w=X;else if(X===G[0])if(G[1]){if($[L+1]===G[1])return{data:W,index:L}}else return{data:W,index:L};else if(X==="\t")X=" ";W+=X}},K0=function($,U,G,w){const W=$.indexOf(U,G);if(W===-1)throw new Error(w);else return W+U.length-1},bU=function($,U,G,w=">"){const W=RJ($,U+1,w);if(!W)return;let L=W.data;const X=W.index,Z=L.search(/\s/);let Y=L,z=!0;if(Z!==-1)Y=L.substring(0,Z),L=L.substring(Z+1).trimStart();const Q=Y;if(G){const F=Y.indexOf(":");if(F!==-1)Y=Y.substr(F+1),z=Y!==W.data.substr(F+1)}return{tagName:Y,tagExp:L,closeIndex:X,attrExpPresent:z,rawTagName:Q}},EJ=function($,U,G){const w=G;let W=1;for(;G<$.length;G++)if($[G]==="<")if($[G+1]==="/"){const L=K0($,">",G,`${U} is not closed`);if($.substring(G+2,L).trim()===U){if(W--,W===0)return{tagContent:$.substring(w,G),i:L}}G=L}else if($[G+1]==="?")G=K0($,"?>",G+1,"StopNode is not closed.");else if($.substr(G+1,3)==="!--")G=K0($,"-->",G+3,"StopNode is not closed.");else if($.substr(G+1,2)==="![")G=K0($,"]]>",G,"StopNode is not closed.")-2;else{const L=bU($,G,">");if(L){if((L&&L.tagName)===U&&L.tagExp[L.tagExp.length-1]!=="/")W++;G=L.closeIndex}}},DU=function($,U,G){if(U&&typeof $==="string"){const w=$.trim();if(w==="true")return!0;else if(w==="false")return!1;else return LJ($,G)}else if(fL.isExist($))return $;else return""},fL=t1(),t0=BL(),WJ=AL(),LJ=TL();class OL{constructor($){this.options=$,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:"\""}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(U,G)=>String.fromCharCode(Number.parseInt(G,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(U,G)=>String.fromCharCode(Number.parseInt(G,16))}},this.addExternalEntities=XJ,this.parseXml=FJ,this.parseTextData=ZJ,this.resolveNameSpace=YJ,this.buildAttributesMap=QJ,this.isItStopNode=KJ,this.replaceEntitiesValue=MJ,this.readStopNodeData=EJ,this.saveTextToParentTag=IJ,this.addChild=JJ}}var zJ=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),FJ=function($){$=$.replace(/\r\n?/g,"\n");const U=new t0("!xml");let G=U,w="",W="";for(let L=0;L<$.length;L++)if($[L]==="<")if($[L+1]==="/"){const Z=K0($,">",L,"Closing Tag is not closed.");let Y=$.substring(L+2,Z).trim();if(this.options.removeNSPrefix){const F=Y.indexOf(":");if(F!==-1)Y=Y.substr(F+1)}if(this.options.transformTagName)Y=this.options.transformTagName(Y);if(G)w=this.saveTextToParentTag(w,G,W);const z=W.substring(W.lastIndexOf(".")+1);if(Y&&this.options.unpairedTags.indexOf(Y)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${Y}>`);let Q=0;if(z&&this.options.unpairedTags.indexOf(z)!==-1)Q=W.lastIndexOf(".",W.lastIndexOf(".")-1),this.tagsNodeStack.pop();else Q=W.lastIndexOf(".");W=W.substring(0,Q),G=this.tagsNodeStack.pop(),w="",L=Z}else if($[L+1]==="?"){let Z=bU($,L,!1,"?>");if(!Z)throw new Error("Pi Tag is not closed.");if(w=this.saveTextToParentTag(w,G,W),this.options.ignoreDeclaration&&Z.tagName==="?xml"||this.options.ignorePiTags);else{const Y=new t0(Z.tagName);if(Y.add(this.options.textNodeName,""),Z.tagName!==Z.tagExp&&Z.attrExpPresent)Y[":@"]=this.buildAttributesMap(Z.tagExp,W,Z.tagName);this.addChild(G,Y,W)}L=Z.closeIndex+1}else if($.substr(L+1,3)==="!--"){const Z=K0($,"-->",L+4,"Comment is not closed.");if(this.options.commentPropName){const Y=$.substring(L+4,Z-2);w=this.saveTextToParentTag(w,G,W),G.add(this.options.commentPropName,[{[this.options.textNodeName]:Y}])}L=Z}else if($.substr(L+1,2)==="!D"){const Z=WJ($,L);this.docTypeEntities=Z.entities,L=Z.i}else if($.substr(L+1,2)==="!["){const Z=K0($,"]]>",L,"CDATA is not closed.")-2,Y=$.substring(L+9,Z);w=this.saveTextToParentTag(w,G,W);let z=this.parseTextData(Y,G.tagname,W,!0,!1,!0,!0);if(z==null)z="";if(this.options.cdataPropName)G.add(this.options.cdataPropName,[{[this.options.textNodeName]:Y}]);else G.add(this.options.textNodeName,z);L=Z+2}else{let Z=bU($,L,this.options.removeNSPrefix),Y=Z.tagName;const z=Z.rawTagName;let{tagExp:Q,attrExpPresent:F,closeIndex:J}=Z;if(this.options.transformTagName)Y=this.options.transformTagName(Y);if(G&&w){if(G.tagname!=="!xml")w=this.saveTextToParentTag(w,G,W,!1)}const K=G;if(K&&this.options.unpairedTags.indexOf(K.tagname)!==-1)G=this.tagsNodeStack.pop(),W=W.substring(0,W.lastIndexOf("."));if(Y!==U.tagname)W+=W?"."+Y:Y;if(this.isItStopNode(this.options.stopNodes,W,Y)){let R="";if(Q.length>0&&Q.lastIndexOf("/")===Q.length-1){if(Y[Y.length-1]==="/")Y=Y.substr(0,Y.length-1),W=W.substr(0,W.length-1),Q=Y;else Q=Q.substr(0,Q.length-1);L=Z.closeIndex}else if(this.options.unpairedTags.indexOf(Y)!==-1)L=Z.closeIndex;else{const V=this.readStopNodeData($,z,J+1);if(!V)throw new Error(`Unexpected end of ${z}`);L=V.i,R=V.tagContent}const B=new t0(Y);if(Y!==Q&&F)B[":@"]=this.buildAttributesMap(Q,W,Y);if(R)R=this.parseTextData(R,Y,W,!0,F,!0,!0);W=W.substr(0,W.lastIndexOf(".")),B.add(this.options.textNodeName,R),this.addChild(G,B,W)}else{if(Q.length>0&&Q.lastIndexOf("/")===Q.length-1){if(Y[Y.length-1]==="/")Y=Y.substr(0,Y.length-1),W=W.substr(0,W.length-1),Q=Y;else Q=Q.substr(0,Q.length-1);if(this.options.transformTagName)Y=this.options.transformTagName(Y);const R=new t0(Y);if(Y!==Q&&F)R[":@"]=this.buildAttributesMap(Q,W,Y);this.addChild(G,R,W),W=W.substr(0,W.lastIndexOf("."))}else{const R=new t0(Y);if(this.tagsNodeStack.push(G),Y!==Q&&F)R[":@"]=this.buildAttributesMap(Q,W,Y);this.addChild(G,R,W),G=R}w="",L=J}}else w+=$[L];return U.child},MJ=function($){if(this.options.processEntities){for(let U in this.docTypeEntities){const G=this.docTypeEntities[U];$=$.replace(G.regx,G.val)}for(let U in this.lastEntities){const G=this.lastEntities[U];$=$.replace(G.regex,G.val)}if(this.options.htmlEntities)for(let U in this.htmlEntities){const G=this.htmlEntities[U];$=$.replace(G.regex,G.val)}$=$.replace(this.ampEntity.regex,this.ampEntity.val)}return $};CL.exports=OL});var PL=I((TJ)=>{var BJ=function($,U){return NL($,U)},NL=function($,U,G){let w;const W={};for(let L=0;L<$.length;L++){const X=$[L],Z=VJ(X);let Y="";if(G===void 0)Y=Z;else Y=G+"."+Z;if(Z===U.textNodeName)if(w===void 0)w=X[Z];else w+=""+X[Z];else if(Z===void 0)continue;else if(X[Z]){let z=NL(X[Z],U,Y);const Q=HJ(z,U);if(X[":@"])AJ(z,X[":@"],Y,U);else if(Object.keys(z).length===1&&z[U.textNodeName]!==void 0&&!U.alwaysCreateTextNode)z=z[U.textNodeName];else if(Object.keys(z).length===0)if(U.alwaysCreateTextNode)z[U.textNodeName]="";else z="";if(W[Z]!==void 0&&W.hasOwnProperty(Z)){if(!Array.isArray(W[Z]))W[Z]=[W[Z]];W[Z].push(z)}else if(U.isArray(Z,Y,Q))W[Z]=[z];else W[Z]=z}}if(typeof w==="string"){if(w.length>0)W[U.textNodeName]=w}else if(w!==void 0)W[U.textNodeName]=w;return W},VJ=function($){const U=Object.keys($);for(let G=0;G<U.length;G++){const w=U[G];if(w!==":@")return w}},AJ=function($,U,G,w){if(U){const W=Object.keys(U),L=W.length;for(let X=0;X<L;X++){const Z=W[X];if(w.isArray(Z,G+"."+Z,!0,!0))$[Z]=[U[Z]];else $[Z]=U[Z]}}},HJ=function($,U){const{textNodeName:G}=U,w=Object.keys($).length;if(w===0)return!0;if(w===1&&($[G]||typeof $[G]==="boolean"||$[G]===0))return!0;return!1};TJ.prettify=BJ});var kL=I((GA,SL)=>{var{buildOptions:OJ}=KL(),CJ=qL(),{prettify:qJ}=PL(),NJ=kU();class jL{constructor($){this.externalEntities={},this.options=OJ($)}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 W=NJ.validate($,U);if(W!==!0)throw Error(`${W.err.msg}:${W.err.line}:${W.err.col}`)}const G=new CJ(this.options);G.addExternalEntities(this.externalEntities);const w=G.parseXml($);if(this.options.preserveOrder||w===void 0)return w;else return qJ(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=jL});var vL=I((wA,xL)=>{var PJ=function($,U){let G="";if(U.format&&U.indentBy.length>0)G="\n";return DL($,U,"",G)},DL=function($,U,G,w){let W="",L=!1;for(let X=0;X<$.length;X++){const Z=$[X],Y=jJ(Z);if(Y===void 0)continue;let z="";if(G.length===0)z=Y;else z=`${G}.${Y}`;if(Y===U.textNodeName){let R=Z[Y];if(!SJ(z,U))R=U.tagValueProcessor(Y,R),R=hL(R,U);if(L)W+=w;W+=R,L=!1;continue}else if(Y===U.cdataPropName){if(L)W+=w;W+=`<![CDATA[${Z[Y][0][U.textNodeName]}]]>`,L=!1;continue}else if(Y===U.commentPropName){W+=w+`<!--${Z[Y][0][U.textNodeName]}-->`,L=!0;continue}else if(Y[0]==="?"){const R=bL(Z[":@"],U),B=Y==="?xml"?"":w;let V=Z[Y][0][U.textNodeName];V=V.length!==0?" "+V:"",W+=B+`<${Y}${V}${R}?>`,L=!0;continue}let Q=w;if(Q!=="")Q+=U.indentBy;const F=bL(Z[":@"],U),J=w+`<${Y}${F}`,K=DL(Z[Y],U,z,Q);if(U.unpairedTags.indexOf(Y)!==-1)if(U.suppressUnpairedNode)W+=J+">";else W+=J+"/>";else if((!K||K.length===0)&&U.suppressEmptyNode)W+=J+"/>";else if(K&&K.endsWith(">"))W+=J+`>${K}${w}</${Y}>`;else{if(W+=J+">",K&&w!==""&&(K.includes("/>")||K.includes("</")))W+=w+U.indentBy+K+w;else W+=K;W+=`</${Y}>`}L=!0}return W},jJ=function($){const U=Object.keys($);for(let G=0;G<U.length;G++){const w=U[G];if(!$.hasOwnProperty(w))continue;if(w!==":@")return w}},bL=function($,U){let G="";if($&&!U.ignoreAttributes)for(let w in $){if(!$.hasOwnProperty(w))continue;let W=U.attributeValueProcessor(w,$[w]);if(W=hL(W,U),W===!0&&U.suppressBooleanAttributes)G+=` ${w.substr(U.attributeNamePrefix.length)}`;else G+=` ${w.substr(U.attributeNamePrefix.length)}="${W}"`}return G},SJ=function($,U){$=$.substr(0,$.length-U.textNodeName.length-1);let G=$.substr($.lastIndexOf(".")+1);for(let w in U.stopNodes)if(U.stopNodes[w]===$||U.stopNodes[w]==="*."+G)return!0;return!1},hL=function($,U){if($&&$.length>0&&U.processEntities)for(let G=0;G<U.entities.length;G++){const w=U.entities[G];$=$.replace(w.regex,w.val)}return $};xL.exports=PJ});var cL=I((WA,yL)=>{var L0=function($){if(this.options=Object.assign({},bJ,$),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=xJ;if(this.processTextOrObjNode=DJ,this.options.format)this.indentate=hJ,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""},DJ=function($,U,G){const w=this.j2x($,G+1);if($[this.options.textNodeName]!==void 0&&Object.keys($).length===1)return this.buildTextValNode($[this.options.textNodeName],U,w.attrStr,G);else return this.buildObjectNode(w.val,U,w.attrStr,G)},hJ=function($){return this.options.indentBy.repeat($)},xJ=function($){if($.startsWith(this.options.attributeNamePrefix)&&$!==this.options.textNodeName)return $.substr(this.attrPrefixLen);else return!1},kJ=vL(),bJ={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};L0.prototype.build=function($){if(this.options.preserveOrder)return kJ($,this.options);else{if(Array.isArray($)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)$={[this.options.arrayNodeName]:$};return this.j2x($,0).val}};L0.prototype.j2x=function($,U){let G="",w="";for(let W in $){if(!Object.prototype.hasOwnProperty.call($,W))continue;if(typeof $[W]==="undefined"){if(this.isAttribute(W))w+=""}else if($[W]===null)if(this.isAttribute(W))w+="";else if(W[0]==="?")w+=this.indentate(U)+"<"+W+"?"+this.tagEndChar;else w+=this.indentate(U)+"<"+W+"/"+this.tagEndChar;else if($[W]instanceof Date)w+=this.buildTextValNode($[W],W,"",U);else if(typeof $[W]!=="object"){const L=this.isAttribute(W);if(L)G+=this.buildAttrPairStr(L,""+$[W]);else if(W===this.options.textNodeName){let X=this.options.tagValueProcessor(W,""+$[W]);w+=this.replaceEntitiesValue(X)}else w+=this.buildTextValNode($[W],W,"",U)}else if(Array.isArray($[W])){const L=$[W].length;let X="",Z="";for(let Y=0;Y<L;Y++){const z=$[W][Y];if(typeof z==="undefined");else if(z===null)if(W[0]==="?")w+=this.indentate(U)+"<"+W+"?"+this.tagEndChar;else w+=this.indentate(U)+"<"+W+"/"+this.tagEndChar;else if(typeof z==="object")if(this.options.oneListGroup){const Q=this.j2x(z,U+1);if(X+=Q.val,this.options.attributesGroupName&&z.hasOwnProperty(this.options.attributesGroupName))Z+=Q.attrStr}else X+=this.processTextOrObjNode(z,W,U);else if(this.options.oneListGroup){let Q=this.options.tagValueProcessor(W,z);Q=this.replaceEntitiesValue(Q),X+=Q}else X+=this.buildTextValNode(z,W,"",U)}if(this.options.oneListGroup)X=this.buildObjectNode(X,W,Z,U);w+=X}else if(this.options.attributesGroupName&&W===this.options.attributesGroupName){const L=Object.keys($[W]),X=L.length;for(let Z=0;Z<X;Z++)G+=this.buildAttrPairStr(L[Z],""+$[W][L[Z]])}else w+=this.processTextOrObjNode($[W],W,U)}return{attrStr:G,val:w}};L0.prototype.buildAttrPairStr=function($,U){if(U=this.options.attributeValueProcessor($,""+U),U=this.replaceEntitiesValue(U),this.options.suppressBooleanAttributes&&U==="true")return" "+$;else return" "+$+'="'+U+'"'};L0.prototype.buildObjectNode=function($,U,G,w){if($==="")if(U[0]==="?")return this.indentate(w)+"<"+U+G+"?"+this.tagEndChar;else return this.indentate(w)+"<"+U+G+this.closeTag(U)+this.tagEndChar;else{let W="</"+U+this.tagEndChar,L="";if(U[0]==="?")L="?",W="";if((G||G==="")&&$.indexOf("<")===-1)return this.indentate(w)+"<"+U+G+L+">"+$+W;else if(this.options.commentPropName!==!1&&U===this.options.commentPropName&&L.length===0)return this.indentate(w)+`<!--${$}-->`+this.newLine;else return this.indentate(w)+"<"+U+G+L+this.tagEndChar+$+this.indentate(w)+W}};L0.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};L0.prototype.buildTextValNode=function($,U,G,w){if(this.options.cdataPropName!==!1&&U===this.options.cdataPropName)return this.indentate(w)+`<![CDATA[${$}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&U===this.options.commentPropName)return this.indentate(w)+`<!--${$}-->`+this.newLine;else if(U[0]==="?")return this.indentate(w)+"<"+U+G+"?"+this.tagEndChar;else{let W=this.options.tagValueProcessor(U,$);if(W=this.replaceEntitiesValue(W),W==="")return this.indentate(w)+"<"+U+G+this.closeTag(U)+this.tagEndChar;else return this.indentate(w)+"<"+U+G+">"+W+"</"+U+this.tagEndChar}};L0.prototype.replaceEntitiesValue=function($){if($&&$.length>0&&this.options.processEntities)for(let U=0;U<this.options.entities.length;U++){const G=this.options.entities[U];$=$.replace(G.regex,G.val)}return $};yL.exports=L0});var uL=I((LA,_L)=>{var vJ=kU(),yJ=kL(),cJ=cL();_L.exports={XMLParser:yJ,XMLValidator:vJ,XMLBuilder:cJ}});var mL=I((XA,lL)=>{var{defineProperty:e1,getOwnPropertyDescriptor:_J,getOwnPropertyNames:uJ}=Object,dJ=Object.prototype.hasOwnProperty,h=($,U)=>e1($,"name",{value:U,configurable:!0}),pJ=($,U)=>{for(var G in U)e1($,G,{get:U[G],enumerable:!0})},gJ=($,U,G,w)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let W of uJ(U))if(!dJ.call($,W)&&W!==G)e1($,W,{get:()=>U[W],enumerable:!(w=_J(U,W))||w.enumerable})}return $},sJ=($)=>gJ(e1({},"__esModule",{value:!0}),$),dL={};pJ(dL,{_toBool:()=>mJ,_toNum:()=>nJ,_toStr:()=>lJ,awsExpectUnion:()=>rJ,loadRestJsonErrorCode:()=>tJ,loadRestXmlErrorCode:()=>GM,parseJsonBody:()=>gL,parseJsonErrorBody:()=>aJ,parseXmlBody:()=>sL,parseXmlErrorBody:()=>UM});lL.exports=sJ(dL);var lJ=h(($)=>{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"),mJ=h(($)=>{if($==null)return $;if(typeof $==="string"){const U=$.toLowerCase();if($!==""&&U!=="false"&&U!=="true"){const G=new Error(`Received string "${$}" where a boolean was expected.`);G.name="Warning",console.warn(G)}return $!==""&&U!=="false"}return $},"_toBool"),nJ=h(($)=>{if($==null)return $;if(typeof $==="string"){const U=Number($);if(U.toString()!==$){const G=new Error(`Received string "${$}" where a number was expected.`);return G.name="Warning",console.warn(G),$}return U}return $},"_toNum"),iJ=T0(),rJ=h(($)=>{if($==null)return;if(typeof $==="object"&&"__type"in $)delete $.__type;return iJ.expectUnion($)},"awsExpectUnion"),oJ=T0(),pL=h(($,U)=>oJ.collectBody($,U).then((G)=>U.utf8Encoder(G)),"collectBodyString"),gL=h(($,U)=>pL($,U).then((G)=>{if(G.length)try{return JSON.parse(G)}catch(w){if((w==null?void 0:w.name)==="SyntaxError")Object.defineProperty(w,"$responseBodyText",{value:G});throw w}return{}}),"parseJsonBody"),aJ=h(async($,U)=>{const G=await gL($,U);return G.message=G.message??G.Message,G},"parseJsonErrorBody"),tJ=h(($,U)=>{const G=h((L,X)=>Object.keys(L).find((Z)=>Z.toLowerCase()===X.toLowerCase()),"findKey"),w=h((L)=>{let X=L;if(typeof X==="number")X=X.toString();if(X.indexOf(",")>=0)X=X.split(",")[0];if(X.indexOf(":")>=0)X=X.split(":")[0];if(X.indexOf("#")>=0)X=X.split("#")[1];return X},"sanitizeErrorCode"),W=G($.headers,"x-amzn-errortype");if(W!==void 0)return w($.headers[W]);if(U.code!==void 0)return w(U.code);if(U.__type!==void 0)return w(U.__type)},"loadRestJsonErrorCode"),eJ=T0(),$M=uL(),sL=h(($,U)=>pL($,U).then((G)=>{if(G.length){const w=new $M.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(Y,z)=>z.trim()===""&&z.includes("\n")?"":void 0});w.addEntity("#xD","\r"),w.addEntity("#10","\n");let W;try{W=w.parse(G,!0)}catch(Y){if(Y&&typeof Y==="object")Object.defineProperty(Y,"$responseBodyText",{value:G});throw Y}const L="#text",X=Object.keys(W)[0],Z=W[X];if(Z[L])Z[X]=Z[L],delete Z[L];return eJ.getValueFromTextNode(Z)}return{}}),"parseXmlBody"),UM=h(async($,U)=>{const G=await sL($,U);if(G.Error)G.Error.message=G.Error.message??G.Error.Message;return G},"parseXmlErrorBody"),GM=h(($,U)=>{var G;if(((G=U==null?void 0:U.Error)==null?void 0:G.Code)!==void 0)return U.Error.Code;if((U==null?void 0:U.Code)!==void 0)return U.Code;if($.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var WM=I((e0)=>{Object.defineProperty(e0,"__esModule",{value:!0});var hU=wM();hU.__exportStar(k6(),e0);hU.__exportStar(ZL(),e0);hU.__exportStar(mL(),e0)});function AM($){return $}var LX=($)=>(U)=>async(G)=>{if(!v.isInstance(G.request))return U(G);const{request:w}=G,{handlerProtocol:W=""}=$.requestHandler.metadata||{};if(W.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 L=w.hostname;if(w.port!=null)L+=`:${w.port}`;w.headers.host=L}return U(G)},XX={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},HM=($)=>({applyToStack:(U)=>{U.add(LX($),XX)}});var ZX=()=>($,U)=>async(G)=>{try{const w=await $(G),{clientName:W,commandName:L,logger:X,dynamoDbDocumentClientOptions:Z={}}=U,{overrideInputFilterSensitiveLog:Y,overrideOutputFilterSensitiveLog:z}=Z,Q=Y??U.inputFilterSensitiveLog,F=z??U.outputFilterSensitiveLog,{$metadata:J,...K}=w.output;return X?.info?.({clientName:W,commandName:L,input:Q(G.input),output:F(K),metadata:J}),w}catch(w){const{clientName:W,commandName:L,logger:X,dynamoDbDocumentClientOptions:Z={}}=U,{overrideInputFilterSensitiveLog:Y}=Z,z=Y??U.inputFilterSensitiveLog;throw X?.error?.({clientName:W,commandName:L,input:z(G.input),error:w,metadata:w.$metadata}),w}},YX={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},fM=($)=>({applyToStack:(U)=>{U.add(ZX(),YX)}});var uU="X-Amzn-Trace-Id",zX="AWS_LAMBDA_FUNCTION_NAME",QX="_X_AMZN_TRACE_ID",FX=($)=>(U)=>async(G)=>{const{request:w}=G;if(!v.isInstance(w)||$.runtime!=="node"||w.headers.hasOwnProperty(uU))return U(G);const W=process.env[zX],L=process.env[QX],X=(Z)=>typeof Z==="string"&&Z.length>0;if(X(W)&&X(L))w.headers[uU]=L;return U({...G,request:w})},JX={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},PM=($)=>({applyToStack:(U)=>{U.add(FX($),JX)}});function j3($){return{...$,customUserAgent:typeof $.customUserAgent==="string"?[[$.customUserAgent]]:$.customUserAgent}}var yQ=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),l0=($)=>yQ.test($)||$.startsWith("[")&&$.endsWith("]");var cQ=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),m0=($,U=!1)=>{if(!U)return cQ.test($);const G=$.split(".");for(let w of G)if(!m0(w))return!1;return!0};var n0={};var o="endpoints";function c($){if(typeof $!=="object"||$==null)return $;if("ref"in $)return`\$${c($.ref)}`;if("fn"in $)return`${$.fn}(${($.argv||[]).map(c).join(", ")})`;return JSON.stringify($,null,2)}class H extends Error{constructor($){super($);this.name="EndpointError"}}var _4=($,U)=>$===U;var u4=($)=>{const U=$.split("."),G=[];for(let w of U){const W=w.indexOf("[");if(W!==-1){if(w.indexOf("]")!==w.length-1)throw new H(`Path: '${$}' does not end with ']'`);const L=w.slice(W+1,-1);if(Number.isNaN(parseInt(L)))throw new H(`Invalid array index: '${L}' in path: '${$}'`);if(W!==0)G.push(w.slice(0,W));G.push(L)}else G.push(w)}return G};var S1=($,U)=>u4(U).reduce((G,w)=>{if(typeof G!=="object")throw new H(`Index '${w}' in '${U}' not found in '${JSON.stringify($)}'`);else if(Array.isArray(G))return G[parseInt(w)];return G[w]},$);var d4=($)=>$!=null;var p4=($)=>!$;var k1=a(X0(),1);var UU={[k1.EndpointURLScheme.HTTP]:80,[k1.EndpointURLScheme.HTTPS]:443},g4=($)=>{const U=(()=>{try{if($ instanceof URL)return $;if(typeof $==="object"&&"hostname"in $){const{hostname:J,port:K,protocol:R="",path:B="",query:V={}}=$,A=new URL(`${R}//${J}${K?`:${K}`:""}${B}`);return A.search=Object.entries(V).map(([E,q])=>`${E}=${q}`).join("&"),A}return new URL($)}catch(J){return null}})();if(!U)return console.error(`Unable to parse ${JSON.stringify($)} as a whatwg URL.`),null;const G=U.href,{host:w,hostname:W,pathname:L,protocol:X,search:Z}=U;if(Z)return null;const Y=X.slice(0,-1);if(!Object.values(k1.EndpointURLScheme).includes(Y))return null;const z=l0(W),Q=G.includes(`${w}:${UU[Y]}`)||typeof $==="string"&&$.includes(`${w}:${UU[Y]}`),F=`${w}${Q?`:${UU[Y]}`:""}`;return{scheme:Y,authority:F,path:L,normalizedPath:L.endsWith("/")?L:`${L}/`,isIp:z}};var s4=($,U)=>$===U;var l4=($,U,G,w)=>{if(U>=G||$.length<G)return null;if(!w)return $.substring(U,G);return $.substring($.length-G,$.length-U)};var m4=($)=>encodeURIComponent($).replace(/[!*'()]/g,(U)=>`%${U.charCodeAt(0).toString(16).toUpperCase()}`);var n4={booleanEquals:_4,getAttr:S1,isSet:d4,isValidHostLabel:m0,not:p4,parseURL:g4,stringEquals:s4,substring:l4,uriEncode:m4};var b1=($,U)=>{const G=[],w={...U.endpointParams,...U.referenceRecord};let W=0;while(W<$.length){const L=$.indexOf("{",W);if(L===-1){G.push($.slice(W));break}G.push($.slice(W,L));const X=$.indexOf("}",L);if(X===-1){G.push($.slice(L));break}if($[L+1]==="{"&&$[X+1]==="}")G.push($.slice(L+1,X)),W=X+2;const Z=$.substring(L+1,X);if(Z.includes("#")){const[Y,z]=Z.split("#");G.push(S1(w[Y],z))}else G.push(w[Z]);W=X+1}return G.join("")};var i4=({ref:$},U)=>{return{...U.endpointParams,...U.referenceRecord}[$]};var G0=($,U,G)=>{if(typeof $==="string")return b1($,G);else if($.fn)return D1($,G);else if($.ref)return i4($,G);throw new H(`'${U}': ${String($)} is not a string, function or reference.`)};var D1=({fn:$,argv:U},G)=>{const w=U.map((L)=>["boolean","number"].includes(typeof L)?L:G0(L,"arg",G)),W=$.split(".");if(W[0]in n0&&W[1]!=null)return n0[W[0]][W[1]](...w);return n4[$](...w)};var r4=({assign:$,...U},G)=>{if($&&$ in G.referenceRecord)throw new H(`'${$}' is already defined in Reference Record.`);const w=D1(U,G);return G.logger?.debug?.(`${o} evaluateCondition: ${c(U)} = ${c(w)}`),{result:w===""?!0:!!w,...$!=null&&{toAssign:{name:$,value:w}}}};var O0=($=[],U)=>{const G={};for(let w of $){const{result:W,toAssign:L}=r4(w,{...U,referenceRecord:{...U.referenceRecord,...G}});if(!W)return{result:W};if(L)G[L.name]=L.value,U.logger?.debug?.(`${o} assign: ${L.name} := ${c(L.value)}`)}return{result:!0,referenceRecord:G}};var o4=($,U)=>Object.entries($).reduce((G,[w,W])=>({...G,[w]:W.map((L)=>{const X=G0(L,"Header value entry",U);if(typeof X!=="string")throw new H(`Header '${w}' value '${X}' is not a string`);return X})}),{});var GU=($,U)=>{if(Array.isArray($))return $.map((G)=>GU(G,U));switch(typeof $){case"string":return b1($,U);case"object":if($===null)throw new H(`Unexpected endpoint property: ${$}`);return h1($,U);case"boolean":return $;default:throw new H(`Unexpected endpoint property type: ${typeof $}`)}};var h1=($,U)=>Object.entries($).reduce((G,[w,W])=>({...G,[w]:GU(W,U)}),{});var a4=($,U)=>{const G=G0($,"Endpoint URL",U);if(typeof G==="string")try{return new URL(G)}catch(w){throw console.error(`Failed to construct URL with ${G}`,w),w}throw new H(`Endpoint URL must be a string, got ${typeof G}`)};var t4=($,U)=>{const{conditions:G,endpoint:w}=$,{result:W,referenceRecord:L}=O0(G,U);if(!W)return;const X={...U,referenceRecord:{...U.referenceRecord,...L}},{url:Z,properties:Y,headers:z}=w;return U.logger?.debug?.(`${o} Resolving endpoint from template: ${c(w)}`),{...z!=null&&{headers:o4(z,X)},...Y!=null&&{properties:h1(Y,X)},url:a4(Z,X)}};var e4=($,U)=>{const{conditions:G,error:w}=$,{result:W,referenceRecord:L}=O0(G,U);if(!W)return;throw new H(G0(w,"Error",{...U,referenceRecord:{...U.referenceRecord,...L}}))};var $6=($,U)=>{const{conditions:G,rules:w}=$,{result:W,referenceRecord:L}=O0(G,U);if(!W)return;return x1(w,{...U,referenceRecord:{...U.referenceRecord,...L}})};var x1=($,U)=>{for(let G of $)if(G.type==="endpoint"){const w=t4(G,U);if(w)return w}else if(G.type==="error")e4(G,U);else if(G.type==="tree"){const w=$6(G,U);if(w)return w}else throw new H(`Unknown endpoint rule: ${G}`);throw new H("Rules evaluation failed")};var _Q=($,U)=>{const{endpointParams:G,logger:w}=U,{parameters:W,rules:L}=$;U.logger?.debug?.(`${o} Initial EndpointParams: ${c(G)}`);const X=Object.entries(W).filter(([,z])=>z.default!=null).map(([z,Q])=>[z,Q.default]);if(X.length>0)for(let[z,Q]of X)G[z]=G[z]??Q;const Z=Object.entries(W).filter(([,z])=>z.required).map(([z])=>z);for(let z of Z)if(G[z]==null)throw new H(`Missing required parameter: '${z}'`);const Y=x1(L,{endpointParams:G,logger:w,referenceRecord:{}});if(U.endpointParams?.Endpoint)try{const z=new URL(U.endpointParams.Endpoint),{protocol:Q,port:F}=z;Y.url.protocol=Q,Y.url.port=F}catch(z){}return U.logger?.debug?.(`${o} Resolved endpoint: ${c(Y)}`),Y};var wU=($,U=!1)=>{if(U){for(let G of $.split("."))if(!wU(G))return!1;return!0}if(!m0($))return!1;if($.length<3||$.length>63)return!1;if($!==$.toLowerCase())return!1;if(l0($))return!1;return!0};var U6=($)=>{const U=$.split(":");if(U.length<6)return null;const[G,w,W,L,X,...Z]=U;if(G!=="arn"||w===""||W===""||Z[0]==="")return null;return{partition:w,service:W,region:L,accountId:X,resourceId:Z[0].includes("/")?Z[0].split("/"):Z}};var G6={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 dQ=G6,pQ="",w6=($)=>{const{partitions:U}=dQ;for(let w of U){const{regions:W,outputs:L}=w;for(let[X,Z]of Object.entries(W))if(X===$)return{...L,...Z}}for(let w of U){const{regionRegex:W,outputs:L}=w;if(new RegExp(W).test($))return{...L}}const G=U.find((w)=>w.id==="aws");if(!G)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...G.outputs}};var W6=()=>pQ;var gQ={isVirtualHostableS3Bucket:wU,parseArn:U6,partition:w6};n0.aws=gQ;var WU="user-agent",v1="x-amz-user-agent",LU=" ",y1="/",L6=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,X6=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,XU="-";var sQ=($)=>(U,G)=>async(w)=>{const{request:W}=w;if(!v.isInstance(W))return U(w);const{headers:L}=W,X=G?.userAgent?.map(ZU)||[],Z=(await $.defaultUserAgentProvider()).map(ZU),Y=$?.customUserAgent?.map(ZU)||[],z=W6(),Q=(z?[z]:[]).concat([...Z,...X,...Y]).join(LU),F=[...Z.filter((J)=>J.startsWith("aws-sdk-")),...Y].join(LU);if($.runtime!=="browser"){if(F)L[v1]=L[v1]?`${L[WU]} ${F}`:F;L[WU]=Q}else L[v1]=Q;return U({...w,request:W})},ZU=($)=>{const U=$[0].split(y1).map((X)=>X.replace(L6,XU)).join(y1),G=$[1]?.replace(X6,XU),w=U.indexOf(y1),W=U.substring(0,w);let L=U.substring(w+1);if(W==="api")L=L.toLowerCase();return[W,L,G].filter((X)=>X&&X.length>0).reduce((X,Z,Y)=>{switch(Y){case 0:return Z;case 1:return`${X}/${Z}`;default:return`${X}#${Z}`}},"")},lQ={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},YR=($)=>({applyToStack:(U)=>{U.add(sQ($),lQ)}});var c1=($)=>typeof $==="string"&&($.startsWith("fips-")||$.endsWith("-fips"));var YU=($)=>c1($)?["fips-aws-global","aws-fips"].includes($)?"us-east-1":$.replace(/fips-(dkr-|prod-)?|-fips/,""):$;var BR=($)=>{const{region:U,useFipsEndpoint:G}=$;if(!U)throw new Error("Region is missing");return{...$,region:async()=>{if(typeof U==="string")return YU(U);const w=await U();return YU(w)},useFipsEndpoint:async()=>{const w=typeof U==="string"?U:await U();if(c1(w))return!0;return typeof G!=="function"?Promise.resolve(!!G):G()}}};var C0=($,U,G)=>{if(!(U in $))return;if($[U]==="true")return!0;if($[U]==="false")return!1;throw new Error(`Cannot load ${G} "${U}". Expected "true" or "false", got ${$[U]}.`)};var w0;(function($){$.ENV="env",$.CONFIG="shared config entry"})(w0||(w0={}));var mQ="AWS_USE_DUALSTACK_ENDPOINT",nQ="use_dualstack_endpoint";var PR={environmentVariableSelector:($)=>C0($,mQ,w0.ENV),configFileSelector:($)=>C0($,nQ,w0.CONFIG),default:!1};var iQ="AWS_USE_FIPS_ENDPOINT",rQ="use_fips_endpoint";var kR={environmentVariableSelector:($)=>C0($,iQ,w0.ENV),configFileSelector:($)=>C0($,rQ,w0.CONFIG),default:!1};var zU=a(X0(),1),Z6=($)=>$[zU.SMITHY_CONTEXT_KEY]||($[zU.SMITHY_CONTEXT_KEY]={});var t=($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U};var Y6={environmentVariableSelector:($)=>$["AWS_REGION"],configFileSelector:($)=>$["region"],default:()=>{throw new Error("Region is missing")}},oR={preferredFile:"credentials"};function oQ($){return(U)=>async(G)=>{const w=G.request;if(v.isInstance(w)){const{body:W,headers:L}=w;if(W&&Object.keys(L).map((X)=>X.toLowerCase()).indexOf(z6)===-1)try{const X=$(W);w.headers={...w.headers,[z6]:String(X)}}catch(X){}}return U({...G,request:w})}}var z6="content-length",aQ={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},fE=($)=>({applyToStack:(U)=>{U.add(oQ($.bodyLengthChecker),aQ)}});var Q6=($,U)=>(G)=>async(w)=>{const{response:W}=await G(w);try{const L=await U(W,$);return{response:W,output:L}}catch(L){if(Object.defineProperty(L,"$response",{value:W}),!("$metadata"in L)){if(L.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof L.$responseBodyText!=="undefined"){if(L.$response)L.$response.body=L.$responseBodyText}}throw L}};var F6=($,U)=>(G,w)=>async(W)=>{const L=w.endpointV2?.url&&$.urlParser?async()=>$.urlParser(w.endpointV2.url):$.endpoint;if(!L)throw new Error("No valid endpoint provider available.");const X=await U(W.input,{...$,endpoint:L});return G({...W,request:X})};function jE($,U,G){return{applyToStack:(w)=>{w.add(Q6($,G),tQ),w.add(F6($,U),QU)}}}var tQ={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},QU={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};var J6=async($)=>{const U=$?.Bucket||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(wF(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!GF(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},eQ=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,$F=/(\d+\.){3}\d+/,UF=/\.\./;var GF=($)=>eQ.test($)&&!$F.test($)&&!UF.test($),wF=($)=>{const[U,G,w,,,W]=$.split(":"),L=U==="arn"&&$.split(":").length>=6,X=Boolean(L&&G&&w&&W);if(L&&!X)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return X};var M6=($,U,G)=>{const w=async()=>{const W=G[$]??G[U];if(typeof W==="function")return W();return W};if($==="credentialScope"||U==="CredentialScope")return async()=>{const W=typeof G.credentials==="function"?await G.credentials():G.credentials;return W?.credentialScope??W?.CredentialScope};if($==="accountId"||U==="AccountId")return async()=>{const W=typeof G.credentials==="function"?await G.credentials():G.credentials;return W?.accountId??W?.AccountId};if($==="endpoint"||U==="endpoint")return async()=>{const W=await w();if(W&&typeof W==="object"){if("url"in W)return W.url.href;if("hostname"in W){const{protocol:L,hostname:X,port:Z,path:Y}=W;return`${L}//${X}${Z?":"+Z:""}${Y}`}}return W};return w};var I6="AWS_ENDPOINT_URL",K6="endpoint_url",R6=($)=>({environmentVariableSelector:(U)=>{const G=$.split(" ").map((L)=>L.toUpperCase()),w=U[[I6,...G].join("_")];if(w)return w;const W=U[I6];if(W)return W;return},configFileSelector:(U,G)=>{if(G&&U.services){const W=G[["services",U.services].join(FU)];if(W){const L=$.split(" ").map((Z)=>Z.toLowerCase()),X=W[[L.join("_"),K6].join(FU)];if(X)return X}}const w=U[K6];if(w)return w;return},default:void 0});var E6=async($)=>F0(R6($))();var JU=a(NG(),1),_1=($)=>{if(typeof $==="object"){if("url"in $)return JU.parseUrl($.url);return $}return JU.parseUrl($)};var B6=async($,U,G,w)=>{if(!G.endpoint){const X=await E6(G.serviceId||"");if(X)G.endpoint=()=>Promise.resolve(_1(X))}const W=await WF($,U,G);if(typeof G.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return G.endpointProvider(W,w)},WF=async($,U,G)=>{const w={},W=U?.getEndpointParameterInstructions?.()||{};for(let[L,X]of Object.entries(W))switch(X.type){case"staticContextParams":w[L]=X.value;break;case"contextParams":w[L]=$[X.name];break;case"clientContextParams":case"builtInParams":w[L]=await M6(X.name,L,G)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(X))}if(Object.keys(W).length===0)Object.assign(w,G);if(String(G.serviceId).toLowerCase()==="s3")await J6(w);return w};var V6=({config:$,instructions:U})=>{return(G,w)=>async(W)=>{const L=await B6(W.input,{getEndpointParameterInstructions(){return U}},{...$},w);w.endpointV2=L,w.authSchemes=L.properties?.authSchemes;const X=w.authSchemes?.[0];if(X){w.signing_region=X.signingRegion,w.signing_service=X.signingName;const Y=Z6(w)?.selectedHttpAuthScheme?.httpAuthOption;if(Y)Y.signingProperties=Object.assign(Y.signingProperties||{},{signing_region:X.signingRegion,signingRegion:X.signingRegion,signing_service:X.signingName,signingName:X.signingName,signingRegionSet:X.signingRegionSet},X.properties)}return G({...W})}};var LF={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:QU.name},UB=($,U)=>({applyToStack:(G)=>{G.addRelativeTo(V6({config:$,instructions:U}),LF)}});var LB=($)=>{const U=$.tls??!0,{endpoint:G}=$,w=G!=null?async()=>_1(await t(G)()):void 0;return{...$,endpoint:w,tls:U,isCustomEndpoint:!!G,useDualstackEndpoint:t($.useDualstackEndpoint??!1),useFipsEndpoint:t($.useFipsEndpoint??!1)}};var m=a(A$(),1),RB=m.default.v1,EB=m.default.v3,A6=m.default.v4,BB=m.default.v5,VB=m.default.NIL,AB=m.default.version,HB=m.default.validate,TB=m.default.stringify,fB=m.default.parse;var s;(function($){$.STANDARD="standard",$.ADAPTIVE="adaptive"})(s||(s={}));var J0=3,H6=s.STANDARD;var T6=a(Y0(),1);class u1{constructor($){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=$?.beta??0.7,this.minCapacity=$?.minCapacity??1,this.minFillRate=$?.minFillRate??0.5,this.scaleConstant=$?.scaleConstant??0.4,this.smooth=$?.smooth??0.8;const U=this.getCurrentTimeInSeconds();this.lastThrottleTime=U,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket($){if(!this.enabled)return;if(this.refillTokenBucket(),$>this.currentCapacity){const U=($-this.currentCapacity)/this.fillRate*1000;await new Promise((G)=>setTimeout(G,U))}this.currentCapacity=this.currentCapacity-$}refillTokenBucket(){const $=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=$;return}const U=($-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+U),this.lastTimestamp=$}updateClientSendingRate($){let U;if(this.updateMeasuredRate(),T6.isThrottlingError($)){const w=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=w,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),U=this.cubicThrottle(w),this.enableTokenBucket()}else this.calculateTimeWindow(),U=this.cubicSuccess(this.getCurrentTimeInSeconds());const G=Math.min(U,2*this.measuredTxRate);this.updateTokenBucketRate(G)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle($){return this.getPrecise($*this.beta)}cubicSuccess($){return this.getPrecise(this.scaleConstant*Math.pow($-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate($){this.refillTokenBucket(),this.fillRate=Math.max($,this.minFillRate),this.maxCapacity=Math.max($,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const $=this.getCurrentTimeInSeconds(),U=Math.floor($*2)/2;if(this.requestCount++,U>this.lastTxRateBucket){const G=this.requestCount/(U-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(G*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=U}}getPrecise($){return parseFloat($.toFixed(8))}}var M0=100,i0=20000,MU=500,d1=500,IU=5,KU=10,RU=1,p1="amz-sdk-invocation-id",g1="amz-sdk-request";var f6=()=>{let $=M0;return{computeNextBackoffDelay:(w)=>{return Math.floor(Math.min(i0,Math.random()*2**w*$))},setDelayBase:(w)=>{$=w}}};var EU=({retryDelay:$,retryCount:U,retryCost:G})=>{return{getRetryCount:()=>U,getRetryDelay:()=>Math.min(i0,$),getRetryCost:()=>G}};class q0{constructor($){this.maxAttempts=$,this.mode=s.STANDARD,this.capacity=d1,this.retryBackoffStrategy=f6(),this.maxAttemptsProvider=typeof $==="function"?$:async()=>$}async acquireInitialRetryToken($){return EU({retryDelay:M0,retryCount:0})}async refreshRetryTokenForRetry($,U){const G=await this.getMaxAttempts();if(this.shouldRetry($,U,G)){const w=U.errorType;this.retryBackoffStrategy.setDelayBase(w==="THROTTLING"?MU:M0);const W=this.retryBackoffStrategy.computeNextBackoffDelay($.getRetryCount()),L=U.retryAfterHint?Math.max(U.retryAfterHint.getTime()-Date.now()||0,W):W,X=this.getCapacityCost(w);return this.capacity-=X,EU({retryDelay:L,retryCount:$.getRetryCount()+1,retryCost:X})}throw new Error("No retry token available")}recordSuccess($){this.capacity=Math.max(d1,this.capacity+($.getRetryCost()??RU))}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,G){return $.getRetryCount()+1<G&&this.capacity>=this.getCapacityCost(U.errorType)&&this.isRetryableError(U.errorType)}getCapacityCost($){return $==="TRANSIENT"?KU:IU}isRetryableError($){return $==="THROTTLING"||$==="TRANSIENT"}}class BU{constructor($,U){this.maxAttemptsProvider=$,this.mode=s.ADAPTIVE;const{rateLimiter:G}=U??{};this.rateLimiter=G??new u1,this.standardRetryStrategy=new q0($)}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 O6="AWS_MAX_ATTEMPTS",C6="max_attempts",$V={environmentVariableSelector:($)=>{const U=$[O6];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Environment variable ${O6} mast be a number, got "${U}"`);return G},configFileSelector:($)=>{const U=$[C6];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Shared config file entry ${C6} mast be a number, got "${U}"`);return G},default:J0},UV=($)=>{const{retryStrategy:U}=$,G=t($.maxAttempts??J0);return{...$,maxAttempts:G,retryStrategy:async()=>{if(U)return U;if(await t($.retryMode)()===s.ADAPTIVE)return new BU(G);return new q0(G)}}},XF="AWS_RETRY_MODE",ZF="retry_mode",GV={environmentVariableSelector:($)=>$[XF],configFileSelector:($)=>$[ZF],default:H6};var N0=a(Y0(),1);import{Readable as YF} from"stream";var q6=($)=>$?.body instanceof YF||typeof ReadableStream!=="undefined"&&$?.body instanceof ReadableStream;var VU=($)=>{if($ instanceof Error)return $;if($ instanceof Object)return Object.assign(new Error,$);if(typeof $==="string")return new Error($);return new Error(`AWS SDK error wrapper for ${$}`)};var zF=($)=>(U,G)=>async(w)=>{let W=await $.retryStrategy();const L=await $.maxAttempts();if(QF(W)){W=W;let X=await W.acquireInitialRetryToken(G.partition_id),Z=new Error,Y=0,z=0;const{request:Q}=w,F=v.isInstance(Q);if(F)Q.headers[p1]=A6();while(!0)try{if(F)Q.headers[g1]=`attempt=${Y+1}; max=${L}`;const{response:J,output:K}=await U(w);return W.recordSuccess(X),K.$metadata.attempts=Y+1,K.$metadata.totalRetryDelay=z,{response:J,output:K}}catch(J){const K=FF(J);if(Z=VU(J),F&&q6(Q))throw(G.logger instanceof N6?console:G.logger)?.warn("An error was encountered in a non-retryable streaming request."),Z;try{X=await W.refreshRetryTokenForRetry(X,K)}catch(B){if(!Z.$metadata)Z.$metadata={};throw Z.$metadata.attempts=Y+1,Z.$metadata.totalRetryDelay=z,Z}Y=X.getRetryCount();const R=X.getRetryDelay();z+=R,await new Promise((B)=>setTimeout(B,R))}}else{if(W=W,W?.mode)G.userAgent=[...G.userAgent||[],["cfg/retry-mode",W.mode]];return W.retry(U,w)}},QF=($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined",FF=($)=>{const U={error:$,errorType:JF($)},G=IF($.$response);if(G)U.retryAfterHint=G;return U},JF=($)=>{if(N0.isThrottlingError($))return"THROTTLING";if(N0.isTransientError($))return"TRANSIENT";if(N0.isServerError($))return"SERVER_ERROR";return"CLIENT_ERROR"},MF={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},MV=($)=>({applyToStack:(U)=>{U.add(zF($),MF)}}),IF=($)=>{if(!AU.isInstance($))return;const U=Object.keys($.headers).find((L)=>L.toLowerCase()==="retry-after");if(!U)return;const G=$.headers[U],w=Number(G);if(!Number.isNaN(w))return new Date(w*1000);return new Date(G)};var KF=a(Y0(),1);var s1=a(Y0(),1);import{platform as LM,release as XM} from"os";import{env as iL,versions as ZM} from"process";var xU={isCrtAvailable:!1};var nL=()=>{if(xU.isCrtAvailable)return["md/crt-avail"];return null};var YM="AWS_SDK_UA_APP_ID",zM="sdk-ua-app-id",KA=({serviceId:$,clientVersion:U})=>{const G=[["aws-sdk-js",U],["ua","2.0"],[`os/${LM()}`,XM()],["lang/js"],["md/nodejs",`${ZM.node}`]],w=nL();if(w)G.push(w);if($)G.push([`api/${$}`,U]);if(iL.AWS_EXECUTION_ENV)G.push([`exec-env/${iL.AWS_EXECUTION_ENV}`]);const W=F0({environmentVariableSelector:(X)=>X[YM],configFileSelector:(X)=>X[zM],default:void 0})();let L=void 0;return async()=>{if(!L){const X=await W;L=X?[...G,[`app/${X}`]]:[...G]}return L}};import{Buffer as QM} from"buffer";import{createHash as FM,createHmac as JM} from"crypto";var rL=function($,U){if(QM.isBuffer($))return $;if(typeof $==="string")return oL($,U);if(ArrayBuffer.isView($))return vU($.buffer,$.byteOffset,$.byteLength);return vU($)};class MM{constructor($,U){this.algorithmIdentifier=$,this.secret=U,this.reset()}update($,U){this.hash.update(aL(rL($,U)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?JM(this.algorithmIdentifier,rL(this.secret)):FM(this.algorithmIdentifier)}}import{fstatSync as IM,lstatSync as KM} from"fs";var OA=($)=>{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 KM($.path).size;else if(typeof $.fd==="number")return IM($.fd).size;throw new Error(`Body Length computation failed for ${$}`)};var wX=a(z$(),1);var tL="AWS_EXECUTION_ENV",yU="AWS_REGION",cU="AWS_DEFAULT_REGION",eL="AWS_EC2_METADATA_DISABLED",$X=["in-region","cross-region","mobile","standard","legacy"],UX="/latest/meta-data/placement/region";var GX={environmentVariableSelector:($)=>{return $["AWS_DEFAULTS_MODE"]},configFileSelector:($)=>{return $["defaults_mode"]},default:"legacy"};var hA=({region:$=F0(Y6),defaultsMode:U=F0(GX)}={})=>wX.memoize(async()=>{const G=typeof U==="function"?await U():U;switch(G?.toLowerCase()){case"auto":return RM($);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(G?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${$X.join(", ")}, got ${G}`)}}),RM=async($)=>{if($){const U=typeof $==="function"?await $():$,G=await EM();if(!G)return"standard";if(U===G)return"in-region";else return"cross-region"}return"standard"},EM=async()=>{if(process.env[tL]&&(process.env[yU]||process.env[cU]))return process.env[yU]??process.env[cU];if(!process.env[eL])try{const{getInstanceMetadataEndpoint:$,httpRequest:U}=await import("./chunk-f404a785b581d029.js"),G=await $();return(await U({...G,path:UX})).toString()}catch($){}};var cA=($)=>{let U=async()=>{if($.region===void 0)throw new Error("Region is missing from runtimeConfig");const G=$.region;if(typeof G==="string")return G;return G()};return{setRegion(G){U=G},region(){return U}}},_A=($)=>{return{region:$.region()}};export{AM as Da,HM as Ea,fM as Fa,PM as Ga,a6 as Ha,C0 as Ia,w0 as Ja,$U as Ka,Z6 as La,t as Ma,j3 as Na,n0 as Oa,_Q as Pa,gQ as Qa,YR as Ra,PR as Sa,kR as Ta,Y6 as Ua,oR as Va,BR as Wa,fE as Xa,WF as Ya,jE as Za,UB as _a,LB as $a,H6 as ab,A6 as bb,$V as cb,UV as db,GV as eb,MV as fb,WM as gb,KA as hb,MM as ib,OA as jb,hA as kb,cA as lb,_A as mb};
|