gemi 0.4.119 → 0.4.121
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/app/index.js +2 -2
- package/dist/app/index.js.map +2 -2
- package/dist/broadcasting/index.js +1 -1
- package/dist/chunk-001ftwam.js +4 -0
- package/dist/chunk-001ftwam.js.map +10 -0
- package/dist/chunk-01td3x3h.js +4 -0
- package/dist/chunk-01td3x3h.js.map +10 -0
- package/dist/chunk-029k2gah.js +4 -0
- package/dist/chunk-029k2gah.js.map +10 -0
- package/dist/chunk-0662pv0m.js +4 -0
- package/dist/{chunk-a67a5vtk.js.map → chunk-0662pv0m.js.map} +2 -2
- package/dist/chunk-0cax9v4f.js +4 -0
- package/dist/chunk-0cax9v4f.js.map +10 -0
- package/dist/chunk-0d9amhty.js +4 -0
- package/dist/chunk-0d9amhty.js.map +10 -0
- package/dist/chunk-0e502hy4.js +4 -0
- package/dist/chunk-0e502hy4.js.map +10 -0
- package/dist/chunk-0gqrxkhr.js +4 -0
- package/dist/chunk-0gqrxkhr.js.map +10 -0
- package/dist/chunk-0kk73bxd.js +4 -0
- package/dist/chunk-0kk73bxd.js.map +10 -0
- package/dist/{chunk-x8wrqc4y.js → chunk-0nvzdwwv.js} +2 -2
- package/dist/{chunk-x8wrqc4y.js.map → chunk-0nvzdwwv.js.map} +1 -1
- package/dist/chunk-0t4b19w0.js +5 -0
- package/dist/chunk-0t4b19w0.js.map +10 -0
- package/dist/chunk-0xq80cr7.js +4 -0
- package/dist/chunk-0xq80cr7.js.map +10 -0
- package/dist/chunk-0zp3sbms.js +4 -0
- package/dist/chunk-0zp3sbms.js.map +10 -0
- package/dist/chunk-10897e1t.js +5 -0
- package/dist/chunk-10897e1t.js.map +10 -0
- package/dist/chunk-147gjb8j.js +4 -0
- package/dist/chunk-147gjb8j.js.map +10 -0
- package/dist/chunk-165evrks.js +4 -0
- package/dist/chunk-165evrks.js.map +10 -0
- package/dist/chunk-16pqbv30.js +4 -0
- package/dist/chunk-16pqbv30.js.map +10 -0
- package/dist/chunk-18akssnh.js +4 -0
- package/dist/chunk-18akssnh.js.map +10 -0
- package/dist/chunk-1d07epxn.js +4 -0
- package/dist/chunk-1d07epxn.js.map +10 -0
- package/dist/chunk-1d3brmyr.js +4 -0
- package/dist/{chunk-ef6dgp5k.js.map → chunk-1d3brmyr.js.map} +6 -6
- package/dist/chunk-1fenkptw.js +4 -0
- package/dist/chunk-1fenkptw.js.map +10 -0
- package/dist/chunk-1fpyfztm.js +4 -0
- package/dist/chunk-1fpyfztm.js.map +10 -0
- package/dist/chunk-1jr2awdv.js +4 -0
- package/dist/chunk-1jr2awdv.js.map +10 -0
- package/dist/chunk-1pjd7z7e.js +5 -0
- package/dist/chunk-1pjd7z7e.js.map +11 -0
- package/dist/chunk-1vxhaep8.js +4 -0
- package/dist/chunk-1vxhaep8.js.map +10 -0
- package/dist/chunk-1zje855e.js +4 -0
- package/dist/chunk-1zje855e.js.map +10 -0
- package/dist/chunk-2a6xtt8w.js +4 -0
- package/dist/chunk-2a6xtt8w.js.map +10 -0
- package/dist/chunk-2nbxbgja.js +4 -0
- package/dist/chunk-2nbxbgja.js.map +10 -0
- package/dist/chunk-2qek6vwk.js +5 -0
- package/dist/chunk-2qek6vwk.js.map +10 -0
- package/dist/chunk-2qs5hcvw.js +4 -0
- package/dist/chunk-2qs5hcvw.js.map +15 -0
- package/dist/chunk-2rpt28ng.js +4 -0
- package/dist/chunk-2rpt28ng.js.map +10 -0
- package/dist/chunk-2zbw9b4r.js +4 -0
- package/dist/chunk-2zbw9b4r.js.map +10 -0
- package/dist/chunk-3evg8b1k.js +4 -0
- package/dist/chunk-3evg8b1k.js.map +10 -0
- package/dist/chunk-3vasf2wf.js +4 -0
- package/dist/chunk-3vasf2wf.js.map +10 -0
- package/dist/chunk-3zmgkx0w.js +4 -0
- package/dist/chunk-3zmgkx0w.js.map +10 -0
- package/dist/chunk-44g267q3.js +77 -0
- package/dist/chunk-44g267q3.js.map +22 -0
- package/dist/chunk-4b5zjps1.js +4 -0
- package/dist/chunk-4b5zjps1.js.map +10 -0
- package/dist/chunk-4f60mvxv.js +4 -0
- package/dist/chunk-4f60mvxv.js.map +10 -0
- package/dist/chunk-4gam76xs.js +4 -0
- package/dist/chunk-4gam76xs.js.map +10 -0
- package/dist/chunk-4jzv24rt.js +4 -0
- package/dist/chunk-4jzv24rt.js.map +10 -0
- package/dist/chunk-4np6kjty.js +4 -0
- package/dist/chunk-4np6kjty.js.map +10 -0
- package/dist/chunk-4psr7qf1.js +4 -0
- package/dist/chunk-4psr7qf1.js.map +10 -0
- package/dist/chunk-4s350vgd.js +4 -0
- package/dist/chunk-4s350vgd.js.map +10 -0
- package/dist/chunk-4txy30je.js +4 -0
- package/dist/chunk-4txy30je.js.map +10 -0
- package/dist/chunk-4zq5qst4.js +4 -0
- package/dist/chunk-4zq5qst4.js.map +10 -0
- package/dist/chunk-54a103ah.js +4 -0
- package/dist/chunk-54a103ah.js.map +10 -0
- package/dist/chunk-58jyqcxt.js +4 -0
- package/dist/chunk-58jyqcxt.js.map +10 -0
- package/dist/chunk-59a4qnm6.js +4 -0
- package/dist/chunk-59a4qnm6.js.map +10 -0
- package/dist/chunk-5crks4mc.js +4 -0
- package/dist/chunk-5crks4mc.js.map +10 -0
- package/dist/chunk-5fs16qc2.js +4 -0
- package/dist/chunk-5fs16qc2.js.map +10 -0
- package/dist/chunk-5nb5v649.js +4 -0
- package/dist/chunk-5nb5v649.js.map +10 -0
- package/dist/chunk-5psj5g03.js +4 -0
- package/dist/chunk-5psj5g03.js.map +10 -0
- package/dist/chunk-5qa0wvgg.js +4 -0
- package/dist/chunk-5qa0wvgg.js.map +10 -0
- package/dist/chunk-5t6fd3qq.js +4 -0
- package/dist/chunk-5t6fd3qq.js.map +12 -0
- package/dist/chunk-5whsf328.js +4 -0
- package/dist/chunk-5whsf328.js.map +10 -0
- package/dist/chunk-612vvdg0.js +5 -0
- package/dist/chunk-612vvdg0.js.map +10 -0
- package/dist/chunk-61fr8e09.js +5 -0
- package/dist/chunk-61fr8e09.js.map +10 -0
- package/dist/chunk-629qemrx.js +4 -0
- package/dist/chunk-629qemrx.js.map +10 -0
- package/dist/chunk-65kp9t0w.js +4 -0
- package/dist/chunk-65kp9t0w.js.map +10 -0
- package/dist/chunk-66f14pqy.js +4 -0
- package/dist/chunk-66f14pqy.js.map +10 -0
- package/dist/chunk-69bs53j4.js +4 -0
- package/dist/chunk-69bs53j4.js.map +10 -0
- package/dist/chunk-6a16vs8y.js +4 -0
- package/dist/chunk-6a16vs8y.js.map +10 -0
- package/dist/chunk-6ant7bcg.js +5 -0
- package/dist/chunk-6ant7bcg.js.map +10 -0
- package/dist/chunk-6fvkzn8b.js +4 -0
- package/dist/chunk-6fvkzn8b.js.map +10 -0
- package/dist/chunk-6fvtad65.js +4 -0
- package/dist/chunk-6fvtad65.js.map +10 -0
- package/dist/chunk-6m11rfdt.js +4 -0
- package/dist/chunk-6m11rfdt.js.map +10 -0
- package/dist/chunk-6p5ty79g.js +4 -0
- package/dist/chunk-6p5ty79g.js.map +10 -0
- package/dist/chunk-6vzzwyt5.js +4 -0
- package/dist/chunk-6vzzwyt5.js.map +10 -0
- package/dist/chunk-6zfyy2sq.js +5 -0
- package/dist/chunk-6zfyy2sq.js.map +10 -0
- package/dist/chunk-73mtep9k.js +5 -0
- package/dist/chunk-73mtep9k.js.map +10 -0
- package/dist/chunk-76cxqdm5.js +4 -0
- package/dist/chunk-76cxqdm5.js.map +10 -0
- package/dist/chunk-76q7gcr7.js +4 -0
- package/dist/chunk-76q7gcr7.js.map +10 -0
- package/dist/chunk-77hx7jrk.js +4 -0
- package/dist/chunk-77hx7jrk.js.map +10 -0
- package/dist/chunk-7e7xv67y.js +4 -0
- package/dist/chunk-7e7xv67y.js.map +10 -0
- package/dist/chunk-7sj61wa1.js +4 -0
- package/dist/chunk-7sj61wa1.js.map +10 -0
- package/dist/chunk-7w7gd3mf.js +4 -0
- package/dist/chunk-7w7gd3mf.js.map +10 -0
- package/dist/chunk-7y71tyb6.js +4 -0
- package/dist/chunk-7y71tyb6.js.map +10 -0
- package/dist/chunk-7yw671gx.js +5 -0
- package/dist/chunk-7yw671gx.js.map +10 -0
- package/dist/chunk-81zgg7ah.js +4 -0
- package/dist/chunk-81zgg7ah.js.map +10 -0
- package/dist/chunk-82sj7aem.js +5 -0
- package/dist/chunk-82sj7aem.js.map +10 -0
- package/dist/chunk-83ngngpn.js +4 -0
- package/dist/chunk-83ngngpn.js.map +10 -0
- package/dist/chunk-88h3dfxg.js +4 -0
- package/dist/chunk-88h3dfxg.js.map +10 -0
- package/dist/chunk-88pbkfa6.js +4 -0
- package/dist/chunk-88pbkfa6.js.map +10 -0
- package/dist/chunk-8dj48k3f.js +4 -0
- package/dist/chunk-8dj48k3f.js.map +10 -0
- package/dist/chunk-8mmnj32j.js +4 -0
- package/dist/chunk-8mmnj32j.js.map +10 -0
- package/dist/chunk-8qf94hzv.js +4 -0
- package/dist/chunk-8qf94hzv.js.map +10 -0
- package/dist/chunk-8w9c6mxe.js +3 -0
- package/dist/chunk-8w9c6mxe.js.map +17 -0
- package/dist/chunk-93mkmwaj.js +4 -0
- package/dist/chunk-93mkmwaj.js.map +10 -0
- package/dist/chunk-96m5669w.js +4 -0
- package/dist/chunk-96m5669w.js.map +10 -0
- package/dist/chunk-9717ybek.js +4 -0
- package/dist/chunk-9717ybek.js.map +10 -0
- package/dist/chunk-997k48kg.js +4 -0
- package/dist/chunk-997k48kg.js.map +10 -0
- package/dist/chunk-9abm0pr9.js +4 -0
- package/dist/chunk-9abm0pr9.js.map +10 -0
- package/dist/chunk-9dz8xyy1.js +3 -0
- package/dist/{chunk-p9gc7ke6.js.map → chunk-9dz8xyy1.js.map} +4 -4
- package/dist/chunk-9f1r7zrg.js +4 -0
- package/dist/chunk-9f1r7zrg.js.map +10 -0
- package/dist/chunk-9fj0c4p1.js +4 -0
- package/dist/chunk-9fj0c4p1.js.map +10 -0
- package/dist/chunk-9mv0k6t0.js +4 -0
- package/dist/chunk-9mv0k6t0.js.map +11 -0
- package/dist/chunk-9q75e96q.js +4 -0
- package/dist/chunk-9q75e96q.js.map +10 -0
- package/dist/chunk-9s0w0gjc.js +4 -0
- package/dist/chunk-9s0w0gjc.js.map +10 -0
- package/dist/chunk-9seafyf3.js +4 -0
- package/dist/chunk-9seafyf3.js.map +10 -0
- package/dist/chunk-9tpfth1g.js +5 -0
- package/dist/chunk-9tpfth1g.js.map +10 -0
- package/dist/chunk-9vm0ck1e.js +4 -0
- package/dist/{chunk-kmfnx43s.js.map → chunk-9vm0ck1e.js.map} +2 -2
- package/dist/chunk-aanamgj7.js +4 -0
- package/dist/chunk-aanamgj7.js.map +10 -0
- package/dist/chunk-acfp8fm2.js +5 -0
- package/dist/chunk-acfp8fm2.js.map +10 -0
- package/dist/chunk-agf0k1k9.js +4 -0
- package/dist/chunk-agf0k1k9.js.map +10 -0
- package/dist/chunk-ajft9tzm.js +5 -0
- package/dist/chunk-ajft9tzm.js.map +10 -0
- package/dist/chunk-apgh9fht.js +4 -0
- package/dist/chunk-apgh9fht.js.map +10 -0
- package/dist/chunk-aq7h2jz2.js +4 -0
- package/dist/chunk-aq7h2jz2.js.map +10 -0
- package/dist/chunk-atx3b9qj.js +4 -0
- package/dist/chunk-atx3b9qj.js.map +10 -0
- package/dist/chunk-axa5gvjg.js +4 -0
- package/dist/chunk-axa5gvjg.js.map +10 -0
- package/dist/chunk-b44x5gst.js +4 -0
- package/dist/chunk-b44x5gst.js.map +10 -0
- package/dist/chunk-b7ap0z6v.js +4 -0
- package/dist/chunk-b7ap0z6v.js.map +10 -0
- package/dist/{chunk-35bsy26w.js → chunk-bajafpzj.js} +2 -2
- package/dist/{chunk-35bsy26w.js.map → chunk-bajafpzj.js.map} +1 -1
- package/dist/chunk-baxfcaes.js +5 -0
- package/dist/chunk-baxfcaes.js.map +10 -0
- package/dist/chunk-bbrwkw5y.js +4 -0
- package/dist/chunk-bbrwkw5y.js.map +13 -0
- package/dist/chunk-befwbt0h.js +5 -0
- package/dist/chunk-befwbt0h.js.map +14 -0
- package/dist/chunk-bej163fy.js +4 -0
- package/dist/chunk-bej163fy.js.map +10 -0
- package/dist/chunk-bfrzstr0.js +4 -0
- package/dist/chunk-bfrzstr0.js.map +10 -0
- package/dist/chunk-bgf2a50m.js +4 -0
- package/dist/chunk-bgf2a50m.js.map +10 -0
- package/dist/chunk-bk649aen.js +4 -0
- package/dist/chunk-bk649aen.js.map +10 -0
- package/dist/chunk-brsavvrn.js +4 -0
- package/dist/chunk-brsavvrn.js.map +10 -0
- package/dist/chunk-bwgwxgw8.js +4 -0
- package/dist/chunk-bwgwxgw8.js.map +10 -0
- package/dist/chunk-c7qx33ys.js +4 -0
- package/dist/chunk-c7qx33ys.js.map +10 -0
- package/dist/chunk-cb616xw5.js +4 -0
- package/dist/{chunk-ktwy9nyn.js.map → chunk-cb616xw5.js.map} +1 -1
- package/dist/chunk-ce7rcdsg.js +4 -0
- package/dist/chunk-ce7rcdsg.js.map +10 -0
- package/dist/chunk-ce89kst6.js +4 -0
- package/dist/chunk-ce89kst6.js.map +10 -0
- package/dist/chunk-cefrz6wd.js +4 -0
- package/dist/chunk-cefrz6wd.js.map +10 -0
- package/dist/chunk-cgfc4w0w.js +4 -0
- package/dist/chunk-cgfc4w0w.js.map +10 -0
- package/dist/chunk-chabgvmr.js +4 -0
- package/dist/chunk-chabgvmr.js.map +10 -0
- package/dist/chunk-cjsmqv12.js +4 -0
- package/dist/chunk-cjsmqv12.js.map +10 -0
- package/dist/chunk-d12swf8t.js +4 -0
- package/dist/chunk-d12swf8t.js.map +10 -0
- package/dist/chunk-d1vf91bx.js +5 -0
- package/dist/chunk-d1vf91bx.js.map +10 -0
- package/dist/chunk-d3vvh6x2.js +4 -0
- package/dist/chunk-d3vvh6x2.js.map +13 -0
- package/dist/chunk-d7zvjgvr.js +4 -0
- package/dist/{chunk-1gjhrqfe.js.map → chunk-d7zvjgvr.js.map} +5 -5
- package/dist/chunk-d87mx4t6.js +4 -0
- package/dist/chunk-d87mx4t6.js.map +13 -0
- package/dist/chunk-d8nm5ddh.js +7 -0
- package/dist/chunk-d8nm5ddh.js.map +65 -0
- package/dist/chunk-dgpcg2dh.js +5 -0
- package/dist/chunk-dgpcg2dh.js.map +10 -0
- package/dist/chunk-dhfkqc5x.js +4 -0
- package/dist/chunk-dhfkqc5x.js.map +10 -0
- package/dist/chunk-e5n4eyrc.js +4 -0
- package/dist/chunk-e5n4eyrc.js.map +10 -0
- package/dist/chunk-ec6tgefk.js +5 -0
- package/dist/chunk-ec6tgefk.js.map +10 -0
- package/dist/chunk-eddsdprs.js +5 -0
- package/dist/chunk-eddsdprs.js.map +10 -0
- package/dist/chunk-efkfryw1.js +4 -0
- package/dist/chunk-efkfryw1.js.map +10 -0
- package/dist/chunk-enbw3h06.js +4 -0
- package/dist/chunk-enbw3h06.js.map +10 -0
- package/dist/chunk-eqne9ppg.js +5 -0
- package/dist/chunk-eqne9ppg.js.map +10 -0
- package/dist/chunk-etcm6fh1.js +4 -0
- package/dist/chunk-etcm6fh1.js.map +10 -0
- package/dist/chunk-evmtw59h.js +4 -0
- package/dist/chunk-evmtw59h.js.map +10 -0
- package/dist/chunk-eytgtgtj.js +4 -0
- package/dist/chunk-eytgtgtj.js.map +10 -0
- package/dist/chunk-eza2c3t1.js +4 -0
- package/dist/chunk-eza2c3t1.js.map +10 -0
- package/dist/chunk-f08ksmq5.js +4 -0
- package/dist/chunk-f08ksmq5.js.map +10 -0
- package/dist/chunk-f48vajs9.js +4 -0
- package/dist/chunk-f48vajs9.js.map +10 -0
- package/dist/chunk-f6ypbp8s.js +4 -0
- package/dist/chunk-f6ypbp8s.js.map +10 -0
- package/dist/chunk-f867b961.js +4 -0
- package/dist/chunk-f867b961.js.map +10 -0
- package/dist/chunk-f9q2xx8j.js +4 -0
- package/dist/chunk-f9q2xx8j.js.map +10 -0
- package/dist/chunk-fb3xpd5h.js +4 -0
- package/dist/chunk-fb3xpd5h.js.map +10 -0
- package/dist/chunk-fc95wase.js +4 -0
- package/dist/chunk-fc95wase.js.map +10 -0
- package/dist/chunk-fqqhza9s.js +4 -0
- package/dist/chunk-fqqhza9s.js.map +10 -0
- package/dist/chunk-g28v2sg8.js +4 -0
- package/dist/chunk-g28v2sg8.js.map +10 -0
- package/dist/chunk-g3nnqcbw.js +5 -0
- package/dist/chunk-g3nnqcbw.js.map +10 -0
- package/dist/chunk-g5b9r81v.js +5 -0
- package/dist/chunk-g5b9r81v.js.map +10 -0
- package/dist/chunk-gj0zbz3g.js +4 -0
- package/dist/chunk-gj0zbz3g.js.map +10 -0
- package/dist/chunk-gn1cd35p.js +4 -0
- package/dist/chunk-gn1cd35p.js.map +10 -0
- package/dist/chunk-gprayftg.js +4 -0
- package/dist/chunk-gprayftg.js.map +10 -0
- package/dist/chunk-gr995e76.js +5 -0
- package/dist/chunk-gr995e76.js.map +10 -0
- package/dist/chunk-grva5cgq.js +4 -0
- package/dist/chunk-grva5cgq.js.map +10 -0
- package/dist/chunk-gtvgm63z.js +4 -0
- package/dist/chunk-gtvgm63z.js.map +10 -0
- package/dist/chunk-gwf5xs7m.js +18 -0
- package/dist/{chunk-qf6zg7nd.js.map → chunk-gwf5xs7m.js.map} +15 -34
- package/dist/chunk-gwnr2ycm.js +5 -0
- package/dist/chunk-gwnr2ycm.js.map +10 -0
- package/dist/chunk-gyxgxwcc.js +4 -0
- package/dist/chunk-gyxgxwcc.js.map +10 -0
- package/dist/chunk-h25tw54p.js +4 -0
- package/dist/chunk-h25tw54p.js.map +10 -0
- package/dist/chunk-h3tskj7j.js +4 -0
- package/dist/chunk-h3tskj7j.js.map +10 -0
- package/dist/chunk-hh62xvjr.js +4 -0
- package/dist/chunk-hh62xvjr.js.map +10 -0
- package/dist/chunk-hk1q1ep4.js +4 -0
- package/dist/chunk-hk1q1ep4.js.map +10 -0
- package/dist/chunk-hqhrt4re.js +5 -0
- package/dist/chunk-hqhrt4re.js.map +10 -0
- package/dist/chunk-hvk0d1ww.js +4 -0
- package/dist/chunk-hvk0d1ww.js.map +10 -0
- package/dist/chunk-j19xcy0f.js +4 -0
- package/dist/chunk-j19xcy0f.js.map +10 -0
- package/dist/chunk-j20akbzn.js +4 -0
- package/dist/chunk-j20akbzn.js.map +10 -0
- package/dist/chunk-j4xa9v2b.js +4 -0
- package/dist/chunk-j4xa9v2b.js.map +10 -0
- package/dist/chunk-jaywwzjq.js +4 -0
- package/dist/chunk-jaywwzjq.js.map +10 -0
- package/dist/chunk-jc7ftaka.js +4 -0
- package/dist/{chunk-ckds5kj4.js.map → chunk-jc7ftaka.js.map} +2 -2
- package/dist/chunk-jcs320db.js +4 -0
- package/dist/chunk-jcs320db.js.map +10 -0
- package/dist/chunk-jd1v2z6g.js +4 -0
- package/dist/chunk-jd1v2z6g.js.map +10 -0
- package/dist/chunk-jfrvg24q.js +4 -0
- package/dist/chunk-jfrvg24q.js.map +10 -0
- package/dist/chunk-jhxnydm7.js +5 -0
- package/dist/chunk-jhxnydm7.js.map +10 -0
- package/dist/chunk-jjt3mqyj.js +4 -0
- package/dist/chunk-jjt3mqyj.js.map +10 -0
- package/dist/chunk-jmv6j1ma.js +4 -0
- package/dist/chunk-jmv6j1ma.js.map +10 -0
- package/dist/chunk-jrg0k6fy.js +4 -0
- package/dist/chunk-jrg0k6fy.js.map +10 -0
- package/dist/chunk-k1gr1y2n.js +4 -0
- package/dist/chunk-k1gr1y2n.js.map +10 -0
- package/dist/chunk-k5903r56.js +4 -0
- package/dist/chunk-k5903r56.js.map +10 -0
- package/dist/chunk-k7er8zn9.js +5 -0
- package/dist/chunk-k7er8zn9.js.map +10 -0
- package/dist/chunk-k7seyqnj.js +5 -0
- package/dist/chunk-k7seyqnj.js.map +10 -0
- package/dist/chunk-keqxzdm8.js +4 -0
- package/dist/chunk-keqxzdm8.js.map +10 -0
- package/dist/chunk-kj73phvd.js +4 -0
- package/dist/chunk-kj73phvd.js.map +10 -0
- package/dist/chunk-kttqecab.js +4 -0
- package/dist/chunk-kttqecab.js.map +20 -0
- package/dist/chunk-kv6jab20.js +4 -0
- package/dist/chunk-kv6jab20.js.map +10 -0
- package/dist/chunk-m10rw8zf.js +4 -0
- package/dist/chunk-m10rw8zf.js.map +10 -0
- package/dist/chunk-m3x7ehjz.js +4 -0
- package/dist/chunk-m3x7ehjz.js.map +10 -0
- package/dist/chunk-m4ywwfhj.js +4 -0
- package/dist/chunk-m4ywwfhj.js.map +10 -0
- package/dist/chunk-m9xdm31a.js +5 -0
- package/dist/chunk-m9xdm31a.js.map +10 -0
- package/dist/chunk-mb5me03r.js +4 -0
- package/dist/chunk-mb5me03r.js.map +10 -0
- package/dist/chunk-mbhvesxn.js +4 -0
- package/dist/chunk-mbhvesxn.js.map +10 -0
- package/dist/chunk-md05dm8y.js +4 -0
- package/dist/{chunk-wfc30gdx.js.map → chunk-md05dm8y.js.map} +2 -2
- package/dist/chunk-mdwc3caf.js +4 -0
- package/dist/{chunk-en5bya0k.js.map → chunk-mdwc3caf.js.map} +2 -2
- package/dist/chunk-mq4xa8g0.js +4 -0
- package/dist/chunk-mq4xa8g0.js.map +10 -0
- package/dist/chunk-msarsnba.js +4 -0
- package/dist/chunk-msarsnba.js.map +10 -0
- package/dist/chunk-mtt5kfk0.js +4 -0
- package/dist/chunk-mtt5kfk0.js.map +10 -0
- package/dist/chunk-mtvvnps3.js +4 -0
- package/dist/chunk-mtvvnps3.js.map +10 -0
- package/dist/chunk-mww3xsh5.js +4 -0
- package/dist/chunk-mww3xsh5.js.map +10 -0
- package/dist/chunk-n0yg50tm.js +4 -0
- package/dist/chunk-n0yg50tm.js.map +10 -0
- package/dist/chunk-n15vbtzw.js +4 -0
- package/dist/chunk-n15vbtzw.js.map +10 -0
- package/dist/chunk-n1x0b75g.js +4 -0
- package/dist/chunk-n1x0b75g.js.map +10 -0
- package/dist/chunk-n6eekz6f.js +4 -0
- package/dist/chunk-n6eekz6f.js.map +10 -0
- package/dist/chunk-ng4pttb5.js +4 -0
- package/dist/chunk-ng4pttb5.js.map +10 -0
- package/dist/chunk-ngpkbmcy.js +4 -0
- package/dist/chunk-ngpkbmcy.js.map +10 -0
- package/dist/chunk-np64fgdg.js +4 -0
- package/dist/chunk-np64fgdg.js.map +10 -0
- package/dist/chunk-nshtq1ys.js +4 -0
- package/dist/chunk-nshtq1ys.js.map +10 -0
- package/dist/chunk-p2a7zrdj.js +4 -0
- package/dist/chunk-p2a7zrdj.js.map +10 -0
- package/dist/chunk-p7r1931r.js +4 -0
- package/dist/{chunk-hjr9ztvj.js.map → chunk-p7r1931r.js.map} +2 -2
- package/dist/chunk-pb70nyeg.js +4 -0
- package/dist/chunk-pb70nyeg.js.map +10 -0
- package/dist/chunk-pbgrf052.js +8 -0
- package/dist/chunk-pbgrf052.js.map +53 -0
- package/dist/chunk-pebk5hpa.js +4 -0
- package/dist/chunk-pebk5hpa.js.map +10 -0
- package/dist/chunk-pmtd0cc3.js +4 -0
- package/dist/chunk-pmtd0cc3.js.map +10 -0
- package/dist/chunk-q0fe3c44.js +4 -0
- package/dist/chunk-q0fe3c44.js.map +10 -0
- package/dist/chunk-q2btpck1.js +4 -0
- package/dist/chunk-q2btpck1.js.map +10 -0
- package/dist/chunk-q656e0z8.js +4 -0
- package/dist/chunk-q656e0z8.js.map +10 -0
- package/dist/chunk-q9q0m0fk.js +4 -0
- package/dist/chunk-q9q0m0fk.js.map +10 -0
- package/dist/chunk-qepjnnqp.js +4 -0
- package/dist/chunk-qepjnnqp.js.map +10 -0
- package/dist/chunk-qhxd2v41.js +4 -0
- package/dist/chunk-qhxd2v41.js.map +10 -0
- package/dist/chunk-qjepp6dz.js +4 -0
- package/dist/chunk-qjepp6dz.js.map +10 -0
- package/dist/chunk-r015e873.js +4 -0
- package/dist/chunk-r015e873.js.map +10 -0
- package/dist/chunk-r2wpm2d7.js +4 -0
- package/dist/chunk-r2wpm2d7.js.map +10 -0
- package/dist/chunk-r70xpzx4.js +4 -0
- package/dist/chunk-r70xpzx4.js.map +10 -0
- package/dist/chunk-r7qn7nya.js +4 -0
- package/dist/chunk-r7qn7nya.js.map +10 -0
- package/dist/chunk-r9fb428b.js +4 -0
- package/dist/chunk-r9fb428b.js.map +10 -0
- package/dist/chunk-raq3khzd.js +4 -0
- package/dist/chunk-raq3khzd.js.map +10 -0
- package/dist/chunk-rf60qjxw.js +5 -0
- package/dist/chunk-rf60qjxw.js.map +14 -0
- package/dist/chunk-rjjjt0eg.js +8 -0
- package/dist/{chunk-h1xm4rnm.js.map → chunk-rjjjt0eg.js.map} +2 -2
- package/dist/chunk-rjzrfj86.js +4 -0
- package/dist/chunk-rjzrfj86.js.map +10 -0
- package/dist/chunk-rm3pct07.js +4 -0
- package/dist/chunk-rm3pct07.js.map +10 -0
- package/dist/chunk-rmhs40sh.js +4 -0
- package/dist/chunk-rmhs40sh.js.map +10 -0
- package/dist/chunk-rqrezesz.js +4 -0
- package/dist/chunk-rqrezesz.js.map +10 -0
- package/dist/chunk-s0b5gyec.js +5 -0
- package/dist/chunk-s0b5gyec.js.map +10 -0
- package/dist/chunk-s0g6kddk.js +4 -0
- package/dist/chunk-s0g6kddk.js.map +10 -0
- package/dist/chunk-s4twrhpt.js +4 -0
- package/dist/chunk-s4twrhpt.js.map +10 -0
- package/dist/chunk-s5q7xgm7.js +4 -0
- package/dist/chunk-s5q7xgm7.js.map +10 -0
- package/dist/chunk-s6337cg6.js +4 -0
- package/dist/chunk-s6337cg6.js.map +10 -0
- package/dist/chunk-sarcnr78.js +5 -0
- package/dist/chunk-sarcnr78.js.map +10 -0
- package/dist/chunk-sgqzh2eh.js +4 -0
- package/dist/chunk-sgqzh2eh.js.map +10 -0
- package/dist/chunk-sh7q9p7c.js +4 -0
- package/dist/chunk-sh7q9p7c.js.map +10 -0
- package/dist/chunk-shvm8xpf.js +4 -0
- package/dist/chunk-shvm8xpf.js.map +10 -0
- package/dist/chunk-sm4gyh1f.js +4 -0
- package/dist/{chunk-dtkvdcf6.js.map → chunk-sm4gyh1f.js.map} +3 -7
- package/dist/chunk-sqdy9tjw.js +4 -0
- package/dist/chunk-sqdy9tjw.js.map +10 -0
- package/dist/chunk-stfzvxzh.js +5 -0
- package/dist/chunk-stfzvxzh.js.map +25 -0
- package/dist/chunk-sxt20n19.js +4 -0
- package/dist/chunk-sxt20n19.js.map +10 -0
- package/dist/chunk-t1mdzmvf.js +4 -0
- package/dist/{chunk-55xdqqbt.js.map → chunk-t1mdzmvf.js.map} +3 -14
- package/dist/chunk-t24w0gem.js +4 -0
- package/dist/chunk-t24w0gem.js.map +10 -0
- package/dist/chunk-t8pfwzwx.js +4 -0
- package/dist/chunk-t8pfwzwx.js.map +10 -0
- package/dist/chunk-t9fpc42w.js +4 -0
- package/dist/chunk-t9fpc42w.js.map +10 -0
- package/dist/chunk-ta1fz9d1.js +5 -0
- package/dist/chunk-ta1fz9d1.js.map +10 -0
- package/dist/chunk-thdwxt6w.js +4 -0
- package/dist/chunk-thdwxt6w.js.map +10 -0
- package/dist/chunk-tkgk80b9.js +4 -0
- package/dist/chunk-tkgk80b9.js.map +10 -0
- package/dist/chunk-twf1wr4h.js +4 -0
- package/dist/chunk-twf1wr4h.js.map +10 -0
- package/dist/chunk-v9kg2vy4.js +4 -0
- package/dist/{chunk-arbx49j6.js.map → chunk-v9kg2vy4.js.map} +5 -5
- package/dist/chunk-veamz5d0.js +4 -0
- package/dist/chunk-veamz5d0.js.map +10 -0
- package/dist/chunk-vf6yxr0r.js +4 -0
- package/dist/chunk-vf6yxr0r.js.map +10 -0
- package/dist/chunk-vh816yqy.js +4 -0
- package/dist/chunk-vh816yqy.js.map +10 -0
- package/dist/chunk-vnxja8xq.js +4 -0
- package/dist/chunk-vnxja8xq.js.map +10 -0
- package/dist/chunk-vpgsy207.js +4 -0
- package/dist/chunk-vpgsy207.js.map +10 -0
- package/dist/chunk-vqnvrsnc.js +4 -0
- package/dist/chunk-vqnvrsnc.js.map +10 -0
- package/dist/chunk-vx2ep3d6.js +5 -0
- package/dist/chunk-vx2ep3d6.js.map +10 -0
- package/dist/chunk-vybrcp16.js +4 -0
- package/dist/chunk-vybrcp16.js.map +10 -0
- package/dist/chunk-w100wbf2.js +11 -0
- package/dist/{chunk-r3qdswng.js.map → chunk-w100wbf2.js.map} +5 -5
- package/dist/chunk-w1d1dmx3.js +4 -0
- package/dist/chunk-w1d1dmx3.js.map +10 -0
- package/dist/chunk-w1nwkvbe.js +4 -0
- package/dist/chunk-w1nwkvbe.js.map +10 -0
- package/dist/chunk-w1zabjwt.js +4 -0
- package/dist/chunk-w1zabjwt.js.map +10 -0
- package/dist/chunk-w4hqdtab.js +4 -0
- package/dist/chunk-w4hqdtab.js.map +10 -0
- package/dist/chunk-w5tgtsfr.js +4 -0
- package/dist/chunk-w5tgtsfr.js.map +10 -0
- package/dist/chunk-w7ezjfcb.js +4 -0
- package/dist/chunk-w7ezjfcb.js.map +10 -0
- package/dist/chunk-w7mjxa9e.js +4 -0
- package/dist/chunk-w7mjxa9e.js.map +10 -0
- package/dist/chunk-w9h179q6.js +5 -0
- package/dist/chunk-w9h179q6.js.map +10 -0
- package/dist/chunk-wb75jnfp.js +4 -0
- package/dist/chunk-wb75jnfp.js.map +10 -0
- package/dist/chunk-wd9hmfa8.js +4 -0
- package/dist/chunk-wd9hmfa8.js.map +10 -0
- package/dist/chunk-wqmd1wv4.js +4 -0
- package/dist/chunk-wqmd1wv4.js.map +10 -0
- package/dist/chunk-wrz50ar3.js +4 -0
- package/dist/chunk-wrz50ar3.js.map +48 -0
- package/dist/chunk-wxgcwv7j.js +4 -0
- package/dist/chunk-wxgcwv7j.js.map +11 -0
- package/dist/chunk-wxw4254w.js +4 -0
- package/dist/{chunk-2n21sn7a.js.map → chunk-wxw4254w.js.map} +3 -4
- package/dist/chunk-wyc2ab1h.js +4 -0
- package/dist/chunk-wyc2ab1h.js.map +10 -0
- package/dist/chunk-wzbs51e4.js +4 -0
- package/dist/chunk-wzbs51e4.js.map +10 -0
- package/dist/chunk-x6248vkg.js +5 -0
- package/dist/chunk-x6248vkg.js.map +10 -0
- package/dist/{chunk-td079vg9.js → chunk-xajvm5dg.js} +3 -3
- package/dist/{chunk-td079vg9.js.map → chunk-xajvm5dg.js.map} +1 -1
- package/dist/chunk-xrteffkv.js +4 -0
- package/dist/chunk-xrteffkv.js.map +10 -0
- package/dist/chunk-xtc3sb35.js +5 -0
- package/dist/chunk-xtc3sb35.js.map +10 -0
- package/dist/chunk-xvfygk82.js +4 -0
- package/dist/{chunk-enc2835j.js.map → chunk-xvfygk82.js.map} +2 -2
- package/dist/chunk-xyagccth.js +4 -0
- package/dist/chunk-xyagccth.js.map +10 -0
- package/dist/chunk-y0msdehj.js +4 -0
- package/dist/chunk-y0msdehj.js.map +21 -0
- package/dist/chunk-y2zzprr2.js +4 -0
- package/dist/chunk-y2zzprr2.js.map +10 -0
- package/dist/chunk-y425gbw0.js +4 -0
- package/dist/{chunk-11by8vja.js.map → chunk-y425gbw0.js.map} +5 -5
- package/dist/chunk-y7q3vx60.js +4 -0
- package/dist/chunk-y7q3vx60.js.map +10 -0
- package/dist/chunk-y8vm6nhq.js +4 -0
- package/dist/chunk-y8vm6nhq.js.map +10 -0
- package/dist/chunk-ym3p77cw.js +4 -0
- package/dist/chunk-ym3p77cw.js.map +10 -0
- package/dist/chunk-yqq2hs5v.js +4 -0
- package/dist/chunk-yqq2hs5v.js.map +10 -0
- package/dist/chunk-ys2w3w3h.js +4 -0
- package/dist/chunk-ys2w3w3h.js.map +10 -0
- package/dist/chunk-yx2dstze.js +4 -0
- package/dist/chunk-yx2dstze.js.map +10 -0
- package/dist/chunk-yxb1tm10.js +5 -0
- package/dist/chunk-yxb1tm10.js.map +10 -0
- package/dist/chunk-yxngksdn.js +4 -0
- package/dist/chunk-yxngksdn.js.map +10 -0
- package/dist/chunk-yzf50f27.js +4 -0
- package/dist/chunk-yzf50f27.js.map +10 -0
- package/dist/chunk-z2536ve8.js +4 -0
- package/dist/chunk-z2536ve8.js.map +14 -0
- package/dist/chunk-z6d8dyj4.js +4 -0
- package/dist/{chunk-b6w0fgxz.js.map → chunk-z6d8dyj4.js.map} +2 -2
- package/dist/chunk-z73h9wcv.js +4 -0
- package/dist/chunk-z73h9wcv.js.map +10 -0
- package/dist/chunk-z744x29v.js +5 -0
- package/dist/chunk-z744x29v.js.map +10 -0
- package/dist/chunk-zajtvy67.js +4 -0
- package/dist/chunk-zajtvy67.js.map +10 -0
- package/dist/chunk-zgcwtt7q.js +4 -0
- package/dist/chunk-zgcwtt7q.js.map +10 -0
- package/dist/chunk-zt083h6w.js +4 -0
- package/dist/chunk-zt083h6w.js.map +10 -0
- package/dist/email/index.js +2 -2
- package/dist/email/index.js.map +26 -5
- package/dist/facades/index.js +2 -2
- package/dist/facades/index.js.map +2 -2
- package/dist/http/ApiRouter.d.ts +5 -0
- package/dist/http/ApiRouter.d.ts.map +1 -1
- package/dist/http/Controller.d.ts +0 -1
- package/dist/http/Controller.d.ts.map +1 -1
- package/dist/http/ViewRouter.d.ts.map +1 -1
- package/dist/http/index.js +2 -2
- package/dist/http/index.js.map +5 -5
- package/dist/kernel/index.js +2 -2
- package/dist/kernel/index.js.map +2 -2
- package/dist/server/index.js +2 -2
- package/dist/server/index.js.map +2 -2
- package/dist/services/index.js +2 -11
- package/dist/services/index.js.map +28 -15
- package/dist/vite/{index-Bu4AXBt9.mjs → index-C9AWJ7QP.mjs} +1 -1
- package/dist/vite/index.mjs +1 -1
- package/dist/vite/{typescript-D69Uqrn5.mjs → typescript-CKrglZ4F.mjs} +56 -48
- package/package.json +2 -2
- package/dist/chunk-11by8vja.js +0 -4
- package/dist/chunk-1gjhrqfe.js +0 -4
- package/dist/chunk-2n21sn7a.js +0 -4
- package/dist/chunk-55xdqqbt.js +0 -4
- package/dist/chunk-6vp2svxg.js +0 -4
- package/dist/chunk-6vp2svxg.js.map +0 -13
- package/dist/chunk-a67a5vtk.js +0 -4
- package/dist/chunk-arbx49j6.js +0 -4
- package/dist/chunk-b6w0fgxz.js +0 -4
- package/dist/chunk-ckds5kj4.js +0 -4
- package/dist/chunk-dtkvdcf6.js +0 -4
- package/dist/chunk-ef6dgp5k.js +0 -4
- package/dist/chunk-en5bya0k.js +0 -4
- package/dist/chunk-enc2835j.js +0 -4
- package/dist/chunk-gsrxf3xp.js +0 -5
- package/dist/chunk-gsrxf3xp.js.map +0 -64
- package/dist/chunk-h1xm4rnm.js +0 -8
- package/dist/chunk-hjr9ztvj.js +0 -4
- package/dist/chunk-kmfnx43s.js +0 -4
- package/dist/chunk-ktwy9nyn.js +0 -4
- package/dist/chunk-n7j3s0s0.js +0 -3
- package/dist/chunk-n7j3s0s0.js.map +0 -15
- package/dist/chunk-p9gc7ke6.js +0 -3
- package/dist/chunk-qf6zg7nd.js +0 -20
- package/dist/chunk-r3qdswng.js +0 -11
- package/dist/chunk-t3g9fdba.js +0 -5
- package/dist/chunk-t3g9fdba.js.map +0 -54
- package/dist/chunk-wfc30gdx.js +0 -4
- package/dist/chunk-z4ha0p3z.js +0 -4
- package/dist/chunk-z4ha0p3z.js.map +0 -10
package/dist/chunk-qf6zg7nd.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import{I as s,J as R}from"./chunk-td079vg9.js";import{U as NI}from"./chunk-wfc30gdx.js";import{Ga as y,Ha as vU,Ja as tU,Ka as SY,Ma as bY,Oa as LZ,Wa as y6}from"./chunk-gsrxf3xp.js";import{Ab as T0}from"./chunk-z4ha0p3z.js";import{Bb as R0,Cb as NU}from"./chunk-1gjhrqfe.js";import{Ib as cY}from"./chunk-n7j3s0s0.js";import{Ob as qU}from"./chunk-p9gc7ke6.js";var I$=R((UG)=>{function _Y($){return $&&$.__esModule?$:{default:$}}function gY(){if(X1>Z1.length-16)uY.default.randomFillSync(Z1),X1=0;return Z1.slice(X1,X1+=16)}Object.defineProperty(UG,"__esModule",{value:!0});UG.default=gY;var uY=_Y(import.meta.require("crypto")),Z1=new Uint8Array(256),X1=Z1.length});var XG=R((GG)=>{Object.defineProperty(GG,"__esModule",{value:!0});GG.default=void 0;var pY=/^(?:[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;GG.default=pY});var x0=R((ZG)=>{function sY($){return $&&$.__esModule?$:{default:$}}function mY($){return typeof $==="string"&&lY.default.test($)}Object.defineProperty(ZG,"__esModule",{value:!0});ZG.default=void 0;var lY=sY(XG()),nY=mY;ZG.default=nY});var v0=R((QG)=>{function rY($){return $&&$.__esModule?$:{default:$}}function LG($,U=0){return k[$[U+0]]+k[$[U+1]]+k[$[U+2]]+k[$[U+3]]+"-"+k[$[U+4]]+k[$[U+5]]+"-"+k[$[U+6]]+k[$[U+7]]+"-"+k[$[U+8]]+k[$[U+9]]+"-"+k[$[U+10]]+k[$[U+11]]+k[$[U+12]]+k[$[U+13]]+k[$[U+14]]+k[$[U+15]]}function oY($,U=0){const G=LG($,U);if(!iY.default(G))throw TypeError("Stringified UUID is invalid");return G}Object.defineProperty(QG,"__esModule",{value:!0});QG.default=void 0;QG.unsafeStringify=LG;var iY=rY(x0()),k=[];for(let $=0;$<256;++$)k.push(($+256).toString(16).slice(1));var aY=oY;QG.default=aY});var IG=R((FG)=>{function UL($){return $&&$.__esModule?$:{default:$}}function GL($,U,G){let W=U&&G||0;const X=U||new Array(16);$=$||{};let Z=$.node||zG,Y=$.clockseq!==void 0?$.clockseq:K$;if(Z==null||Y==null){const J=$.random||($.rng||eY.default)();if(Z==null)Z=zG=[J[0]|1,J[1],J[2],J[3],J[4],J[5]];if(Y==null)Y=K$=(J[6]<<8|J[7])&16383}let L=$.msecs!==void 0?$.msecs:Date.now(),Q=$.nsecs!==void 0?$.nsecs:R$+1;const w=L-M$+(Q-R$)/1e4;if(w<0&&$.clockseq===void 0)Y=Y+1&16383;if((w<0||L>M$)&&$.nsecs===void 0)Q=0;if(Q>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");M$=L,R$=Q,K$=Y,L+=12219292800000;const z=((L&268435455)*1e4+Q)%4294967296;X[W++]=z>>>24&255,X[W++]=z>>>16&255,X[W++]=z>>>8&255,X[W++]=z&255;const F=L/4294967296*1e4&268435455;X[W++]=F>>>8&255,X[W++]=F&255,X[W++]=F>>>24&15|16,X[W++]=F>>>16&255,X[W++]=Y>>>8|128,X[W++]=Y&255;for(let J=0;J<6;++J)X[W+J]=Z[J];return U||$L.unsafeStringify(X)}Object.defineProperty(FG,"__esModule",{value:!0});FG.default=void 0;var eY=UL(I$()),$L=v0(),zG,K$,M$=0,R$=0,WL=GL;FG.default=WL});var B$=R((KG)=>{function ZL($){return $&&$.__esModule?$:{default:$}}function YL($){if(!XL.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(KG,"__esModule",{value:!0});KG.default=void 0;var XL=ZL(x0()),LL=YL;KG.default=LL});var V$=R((VG)=>{function zL($){return $&&$.__esModule?$:{default:$}}function FL($){$=unescape(encodeURIComponent($));const U=[];for(let G=0;G<$.length;++G)U.push($.charCodeAt(G));return U}function JL($,U,G){function W(X,Z,Y,L){var Q;if(typeof X==="string")X=FL(X);if(typeof Z==="string")Z=wL.default(Z);if(((Q=Z)===null||Q===void 0?void 0:Q.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let w=new Uint8Array(16+X.length);if(w.set(Z),w.set(X,Z.length),w=G(w),w[6]=w[6]&15|U,w[8]=w[8]&63|128,Y){L=L||0;for(let z=0;z<16;++z)Y[L+z]=w[z];return Y}return QL.unsafeStringify(w)}try{W.name=$}catch(X){}return W.DNS=RG,W.URL=BG,W}Object.defineProperty(VG,"__esModule",{value:!0});VG.URL=VG.DNS=void 0;VG.default=JL;var QL=v0(),wL=zL(B$()),RG="6ba7b810-9dad-11d1-80b4-00c04fd430c8";VG.DNS=RG;var BG="6ba7b811-9dad-11d1-80b4-00c04fd430c8";VG.URL=BG});var EG=R((AG)=>{function RL($){return $&&$.__esModule?$:{default:$}}function BL($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return ML.default.createHash("md5").update($).digest()}Object.defineProperty(AG,"__esModule",{value:!0});AG.default=void 0;var ML=RL(import.meta.require("crypto")),VL=BL;AG.default=VL});var qG=R((CG)=>{function OG($){return $&&$.__esModule?$:{default:$}}Object.defineProperty(CG,"__esModule",{value:!0});CG.default=void 0;var HL=OG(V$()),AL=OG(EG()),TL=HL.default("v3",48,AL.default),EL=TL;CG.default=EL});var PG=R((NG)=>{function CL($){return $&&$.__esModule?$:{default:$}}Object.defineProperty(NG,"__esModule",{value:!0});NG.default=void 0;var OL=CL(import.meta.require("crypto")),fL={randomUUID:OL.default.randomUUID};NG.default=fL});var hG=R((kG)=>{function bG($){return $&&$.__esModule?$:{default:$}}function jL($,U,G){if(SG.default.randomUUID&&!U&&!$)return SG.default.randomUUID();$=$||{};const W=$.random||($.rng||qL.default)();if(W[6]=W[6]&15|64,W[8]=W[8]&63|128,U){G=G||0;for(let X=0;X<16;++X)U[G+X]=W[X];return U}return NL.unsafeStringify(W)}Object.defineProperty(kG,"__esModule",{value:!0});kG.default=void 0;var SG=bG(PG()),qL=bG(I$()),NL=v0(),PL=jL;kG.default=PL});var cG=R((xG)=>{function bL($){return $&&$.__esModule?$:{default:$}}function kL($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return SL.default.createHash("sha1").update($).digest()}Object.defineProperty(xG,"__esModule",{value:!0});xG.default=void 0;var SL=bL(import.meta.require("crypto")),DL=kL;xG.default=DL});var gG=R((uG)=>{function yG($){return $&&$.__esModule?$:{default:$}}Object.defineProperty(uG,"__esModule",{value:!0});uG.default=void 0;var hL=yG(V$()),xL=yG(cG()),vL=hL.default("v5",80,xL.default),cL=vL;uG.default=cL});var lG=R((dG)=>{Object.defineProperty(dG,"__esModule",{value:!0});dG.default=void 0;var yL="00000000-0000-0000-0000-000000000000";dG.default=yL});var nG=R((sG)=>{function _L($){return $&&$.__esModule?$:{default:$}}function gL($){if(!uL.default($))throw TypeError("Invalid UUID");return parseInt($.slice(14,15),16)}Object.defineProperty(sG,"__esModule",{value:!0});sG.default=void 0;var uL=_L(x0()),dL=gL;sG.default=dL});var H$=R((l)=>{function a($){return $&&$.__esModule?$:{default:$}}Object.defineProperty(l,"__esModule",{value:!0});Object.defineProperty(l,"NIL",{enumerable:!0,get:function(){return nL.default}});Object.defineProperty(l,"parse",{enumerable:!0,get:function(){return aL.default}});Object.defineProperty(l,"stringify",{enumerable:!0,get:function(){return oL.default}});Object.defineProperty(l,"v1",{enumerable:!0,get:function(){return pL.default}});Object.defineProperty(l,"v3",{enumerable:!0,get:function(){return lL.default}});Object.defineProperty(l,"v4",{enumerable:!0,get:function(){return sL.default}});Object.defineProperty(l,"v5",{enumerable:!0,get:function(){return mL.default}});Object.defineProperty(l,"validate",{enumerable:!0,get:function(){return rL.default}});Object.defineProperty(l,"version",{enumerable:!0,get:function(){return iL.default}});var pL=a(IG()),lL=a(qG()),sL=a(hG()),mL=a(gG()),nL=a(lG()),iL=a(nG()),rL=a(x0()),oL=a(v0()),aL=a(B$())});var r=R((fK,eG)=>{var{defineProperty:Y1,getOwnPropertyDescriptor:Y2,getOwnPropertyNames:L2}=Object,Q2=Object.prototype.hasOwnProperty,aG=($,U)=>Y1($,"name",{value:U,configurable:!0}),w2=($,U)=>{for(var G in U)Y1($,G,{get:U[G],enumerable:!0})},z2=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of L2(U))if(!Q2.call($,X)&&X!==G)Y1($,X,{get:()=>U[X],enumerable:!(W=Y2(U,X))||W.enumerable})}return $},F2=($)=>z2(Y1({},"__esModule",{value:!0}),$),tG={};w2(tG,{getSmithyContext:()=>J2,normalizeProvider:()=>I2});eG.exports=F2(tG);var oG=T0(),J2=aG(($)=>$[oG.SMITHY_CONTEXT_KEY]||($[oG.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),I2=aG(($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U},"normalizeProvider")});var A$=R((qK,X8)=>{var{defineProperty:L1,getOwnPropertyDescriptor:K2,getOwnPropertyNames:M2}=Object,R2=Object.prototype.hasOwnProperty,z0=($,U)=>L1($,"name",{value:U,configurable:!0}),B2=($,U)=>{for(var G in U)L1($,G,{get:U[G],enumerable:!0})},V2=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of M2(U))if(!R2.call($,X)&&X!==G)L1($,X,{get:()=>U[X],enumerable:!(W=K2(U,X))||W.enumerable})}return $},H2=($)=>V2(L1({},"__esModule",{value:!0}),$),$8={};B2($8,{CredentialsProviderError:()=>A2,ProviderError:()=>Q1,TokenProviderError:()=>T2,chain:()=>E2,fromStatic:()=>O2,memoize:()=>C2});X8.exports=H2($8);var U8=class $ extends Error{constructor(U,G=!0){var W;let X,Z=!0;if(typeof G==="boolean")X=void 0,Z=G;else if(G!=null&&typeof G==="object")X=G.logger,Z=G.tryNextLink??!0;super(U);this.name="ProviderError",this.tryNextLink=Z,Object.setPrototypeOf(this,$.prototype),(W=X==null?void 0:X.debug)==null||W.call(X,`@smithy/property-provider ${Z?"->":"(!)"} ${U}`)}static from(U,G=!0){return Object.assign(new this(U.message,G),U)}};z0(U8,"ProviderError");var Q1=U8,G8=class $ extends Q1{constructor(U,G=!0){super(U,G);this.name="CredentialsProviderError",Object.setPrototypeOf(this,$.prototype)}};z0(G8,"CredentialsProviderError");var A2=G8,W8=class $ extends Q1{constructor(U,G=!0){super(U,G);this.name="TokenProviderError",Object.setPrototypeOf(this,$.prototype)}};z0(W8,"TokenProviderError");var T2=W8,E2=z0((...$)=>async()=>{if($.length===0)throw new Q1("No providers in chain");let U;for(let G of $)try{return await G()}catch(W){if(U=W,W==null?void 0:W.tryNextLink)continue;throw W}throw U},"chain"),O2=z0(($)=>()=>Promise.resolve($),"fromStatic"),C2=z0(($,U,G)=>{let W,X,Z,Y=!1;const L=z0(async()=>{if(!X)X=$();try{W=await X,Z=!0,Y=!1}finally{X=void 0}return W},"coalesceProvider");if(U===void 0)return async(Q)=>{if(!Z||(Q==null?void 0:Q.forceRefresh))W=await L();return W};return async(Q)=>{if(!Z||(Q==null?void 0:Q.forceRefresh))W=await L();if(Y)return W;if(G&&!G(W))return Y=!0,W;if(U(W))return await L(),W;return W}},"memoize")});var E0=R((Z8)=>{Object.defineProperty(Z8,"__esModule",{value:!0});Z8.getHomeDir=void 0;var f2=import.meta.require("os"),q2=import.meta.require("path"),T$={},N2=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},j2=()=>{const{HOME:$,USERPROFILE:U,HOMEPATH:G,HOMEDRIVE:W=`C:${q2.sep}`}=process.env;if($)return $;if(U)return U;if(G)return`${W}${G}`;const X=N2();if(!T$[X])T$[X]=f2.homedir();return T$[X]};Z8.getHomeDir=j2});var E$=R((L8)=>{Object.defineProperty(L8,"__esModule",{value:!0});L8.getSSOTokenFilepath=void 0;var P2=import.meta.require("crypto"),S2=import.meta.require("path"),b2=E0(),k2=($)=>{const G=P2.createHash("sha1").update($).digest("hex");return S2.join(b2.getHomeDir(),".aws","sso","cache",`${G}.json`)};L8.getSSOTokenFilepath=k2});var F8=R((w8)=>{Object.defineProperty(w8,"__esModule",{value:!0});w8.getSSOTokenFromFile=void 0;var D2=import.meta.require("fs"),h2=E$(),{readFile:x2}=D2.promises,v2=async($)=>{const U=h2.getSSOTokenFilepath($),G=await x2(U,"utf8");return JSON.parse(G)};w8.getSSOTokenFromFile=v2});var C$=R((J8)=>{Object.defineProperty(J8,"__esModule",{value:!0});J8.slurpFile=void 0;var c2=import.meta.require("fs"),{readFile:y2}=c2.promises,O$={},u2=($,U)=>{if(!O$[$]||(U===null||U===void 0?void 0:U.ignoreCache))O$[$]=y2($,"utf8");return O$[$]};J8.slurpFile=u2});var j$=R((bK,y0)=>{var{defineProperty:F1,getOwnPropertyDescriptor:_2,getOwnPropertyNames:g2}=Object,d2=Object.prototype.hasOwnProperty,u=($,U)=>F1($,"name",{value:U,configurable:!0}),p2=($,U)=>{for(var G in U)F1($,G,{get:U[G],enumerable:!0})},f$=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of g2(U))if(!d2.call($,X)&&X!==G)F1($,X,{get:()=>U[X],enumerable:!(W=_2(U,X))||W.enumerable})}return $},N$=($,U,G)=>(f$($,U,"default"),G&&f$(G,U,"default")),l2=($)=>f$(F1({},"__esModule",{value:!0}),$),c0={};p2(c0,{CONFIG_PREFIX_SEPARATOR:()=>F0,DEFAULT_PROFILE:()=>B8,ENV_PROFILE:()=>R8,getProfileName:()=>s2,loadSharedConfigFiles:()=>H8,loadSsoSessionData:()=>X5,parseKnownFiles:()=>Y5});y0.exports=l2(c0);N$(c0,E0(),y0.exports);var R8="AWS_PROFILE",B8="default",s2=u(($)=>$.profile||process.env[R8]||B8,"getProfileName");N$(c0,E$(),y0.exports);N$(c0,F8(),y0.exports);var w1=T0(),m2=u(($)=>Object.entries($).filter(([U])=>{const G=U.indexOf(F0);if(G===-1)return!1;return Object.values(w1.IniSectionType).includes(U.substring(0,G))}).reduce((U,[G,W])=>{const X=G.indexOf(F0),Z=G.substring(0,X)===w1.IniSectionType.PROFILE?G.substring(X+1):G;return U[Z]=W,U},{...$.default&&{default:$.default}}),"getConfigData"),z1=import.meta.require("path"),n2=E0(),i2="AWS_CONFIG_FILE",V8=u(()=>process.env[i2]||z1.join(n2.getHomeDir(),".aws","config"),"getConfigFilepath"),r2=E0(),o2="AWS_SHARED_CREDENTIALS_FILE",a2=u(()=>process.env[o2]||z1.join(r2.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),t2=E0(),e2=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,$5=["__proto__","profile __proto__"],q$=u(($)=>{const U={};let G,W;for(let X of $.split(/\r?\n/)){const Z=X.split(/(^|\s)[;#]/)[0].trim();if(Z[0]==="["&&Z[Z.length-1]==="]"){G=void 0,W=void 0;const L=Z.substring(1,Z.length-1),Q=e2.exec(L);if(Q){const[,w,,z]=Q;if(Object.values(w1.IniSectionType).includes(w))G=[w,z].join(F0)}else G=L;if($5.includes(L))throw new Error(`Found invalid profile name "${L}"`)}else if(G){const L=Z.indexOf("=");if(![0,-1].includes(L)){const[Q,w]=[Z.substring(0,L).trim(),Z.substring(L+1).trim()];if(w==="")W=Q;else{if(W&&X.trimStart()===X)W=void 0;U[G]=U[G]||{};const z=W?[W,Q].join(F0):Q;U[G][z]=w}}}}return U},"parseIni"),K8=C$(),M8=u(()=>({}),"swallowError"),F0=".",H8=u(async($={})=>{const{filepath:U=a2(),configFilepath:G=V8()}=$,W=t2.getHomeDir();let Z=U;if(U.startsWith("~/"))Z=z1.join(W,U.slice(2));let Y=G;if(G.startsWith("~/"))Y=z1.join(W,G.slice(2));const L=await Promise.all([K8.slurpFile(Y,{ignoreCache:$.ignoreCache}).then(q$).then(m2).catch(M8),K8.slurpFile(Z,{ignoreCache:$.ignoreCache}).then(q$).catch(M8)]);return{configFile:L[0],credentialsFile:L[1]}},"loadSharedConfigFiles"),U5=u(($)=>Object.entries($).filter(([U])=>U.startsWith(w1.IniSectionType.SSO_SESSION+F0)).reduce((U,[G,W])=>({...U,[G.substring(G.indexOf(F0)+1)]:W}),{}),"getSsoSessionData"),G5=C$(),W5=u(()=>({}),"swallowError"),X5=u(async($={})=>G5.slurpFile($.configFilepath??V8()).then(q$).then(U5).catch(W5),"loadSsoSessionData"),Z5=u((...$)=>{const U={};for(let G of $)for(let[W,X]of Object.entries(G))if(U[W]!==void 0)Object.assign(U[W],X);else U[W]=X;return U},"mergeConfigFiles"),Y5=u(async($)=>{const U=await H8($);return Z5(U.configFile,U.credentialsFile)},"parseKnownFiles")});var O8=R((kK,E8)=>{function P$($){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 $}}var{defineProperty:J1,getOwnPropertyDescriptor:L5,getOwnPropertyNames:Q5}=Object,w5=Object.prototype.hasOwnProperty,O0=($,U)=>J1($,"name",{value:U,configurable:!0}),z5=($,U)=>{for(var G in U)J1($,G,{get:U[G],enumerable:!0})},F5=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of Q5(U))if(!w5.call($,X)&&X!==G)J1($,X,{get:()=>U[X],enumerable:!(W=L5(U,X))||W.enumerable})}return $},J5=($)=>F5(J1({},"__esModule",{value:!0}),$),T8={};z5(T8,{loadConfig:()=>B5});E8.exports=J5(T8);var u0=A$();O0(P$,"getSelectorName");var I5=O0(($,U)=>async()=>{try{const G=$(process.env);if(G===void 0)throw new Error;return G}catch(G){throw new u0.CredentialsProviderError(G.message||`Not found in ENV: ${P$($.toString())}`,{logger:U})}},"fromEnv"),A8=j$(),K5=O0(($,{preferredFile:U="config",...G}={})=>async()=>{const W=A8.getProfileName(G),{configFile:X,credentialsFile:Z}=await A8.loadSharedConfigFiles(G),Y=Z[W]||{},L=X[W]||{},Q=U==="config"?{...Y,...L}:{...L,...Y};try{const z=$(Q,U==="config"?X:Z);if(z===void 0)throw new Error;return z}catch(w){throw new u0.CredentialsProviderError(w.message||`Not found in config files w/ profile [${W}]: ${P$($.toString())}`,{logger:G.logger})}},"fromSharedConfigFiles"),M5=O0(($)=>typeof $==="function","isFunction"),R5=O0(($)=>M5($)?async()=>await $():u0.fromStatic($),"fromStatic"),B5=O0(({environmentVariableSelector:$,configFileSelector:U,default:G},W={})=>u0.memoize(u0.chain(I5($),K5(U,W),R5(G))),"loadConfig")});var P8=R((N8)=>{Object.defineProperty(N8,"__esModule",{value:!0});N8.getEndpointUrlConfig=void 0;var C8=j$(),f8="AWS_ENDPOINT_URL",q8="endpoint_url",V5=($)=>({environmentVariableSelector:(U)=>{const G=$.split(" ").map((Z)=>Z.toUpperCase()),W=U[[f8,...G].join("_")];if(W)return W;const X=U[f8];if(X)return X;return},configFileSelector:(U,G)=>{if(G&&U.services){const X=G[["services",U.services].join(C8.CONFIG_PREFIX_SEPARATOR)];if(X){const Z=$.split(" ").map((L)=>L.toLowerCase()),Y=X[[Z.join("_"),q8].join(C8.CONFIG_PREFIX_SEPARATOR)];if(Y)return Y}}const W=U[q8];if(W)return W;return},default:void 0});N8.getEndpointUrlConfig=V5});var S$=R((S8)=>{Object.defineProperty(S8,"__esModule",{value:!0});S8.getEndpointFromConfig=void 0;var H5=O8(),A5=P8(),T5=async($)=>H5.loadConfig(A5.getEndpointUrlConfig($!==null&&$!==void 0?$:""))();S8.getEndpointFromConfig=T5});var x8=R((xK,h8)=>{function D8($){const U={};if($=$.replace(/^\?/,""),$)for(let G of $.split("&")){let[W,X=null]=G.split("=");if(W=decodeURIComponent(W),X)X=decodeURIComponent(X);if(!(W in U))U[W]=X;else if(Array.isArray(U[W]))U[W].push(X);else U[W]=[U[W],X]}return U}var{defineProperty:I1,getOwnPropertyDescriptor:E5,getOwnPropertyNames:O5}=Object,C5=Object.prototype.hasOwnProperty,f5=($,U)=>I1($,"name",{value:U,configurable:!0}),q5=($,U)=>{for(var G in U)I1($,G,{get:U[G],enumerable:!0})},N5=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of O5(U))if(!C5.call($,X)&&X!==G)I1($,X,{get:()=>U[X],enumerable:!(W=E5(U,X))||W.enumerable})}return $},j5=($)=>N5(I1({},"__esModule",{value:!0}),$),k8={};q5(k8,{parseQueryString:()=>D8});h8.exports=j5(k8);f5(D8,"parseQueryString")});var u8=R((vK,y8)=>{var{defineProperty:K1,getOwnPropertyDescriptor:P5,getOwnPropertyNames:S5}=Object,b5=Object.prototype.hasOwnProperty,k5=($,U)=>K1($,"name",{value:U,configurable:!0}),D5=($,U)=>{for(var G in U)K1($,G,{get:U[G],enumerable:!0})},h5=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of S5(U))if(!b5.call($,X)&&X!==G)K1($,X,{get:()=>U[X],enumerable:!(W=P5(U,X))||W.enumerable})}return $},x5=($)=>h5(K1({},"__esModule",{value:!0}),$),v8={};D5(v8,{parseUrl:()=>c8});y8.exports=x5(v8);var v5=x8(),c8=k5(($)=>{if(typeof $==="string")return c8(new URL($));const{hostname:U,pathname:G,port:W,protocol:X,search:Z}=$;let Y;if(Z)Y=v5.parseQueryString(Z);return{hostname:U,port:W?parseInt(W):void 0,protocol:X,path:G,query:Y}},"parseUrl")});var k$=R((cK,m8)=>{function s8($,U,G){return{applyToStack:(W)=>{W.add(g8($,G),p8),W.add(d8($,U),l8)}}}var{defineProperty:M1,getOwnPropertyDescriptor:c5,getOwnPropertyNames:y5}=Object,u5=Object.prototype.hasOwnProperty,b$=($,U)=>M1($,"name",{value:U,configurable:!0}),_5=($,U)=>{for(var G in U)M1($,G,{get:U[G],enumerable:!0})},g5=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of y5(U))if(!u5.call($,X)&&X!==G)M1($,X,{get:()=>U[X],enumerable:!(W=c5(U,X))||W.enumerable})}return $},d5=($)=>g5(M1({},"__esModule",{value:!0}),$),_8={};_5(_8,{deserializerMiddleware:()=>g8,deserializerMiddlewareOption:()=>p8,getSerdePlugin:()=>s8,serializerMiddleware:()=>d8,serializerMiddlewareOption:()=>l8});m8.exports=d5(_8);var g8=b$(($,U)=>(G)=>async(W)=>{const{response:X}=await G(W);try{const Z=await U(X,$);return{response:X,output:Z}}catch(Z){if(Object.defineProperty(Z,"$response",{value:X}),!("$metadata"in Z)){if(Z.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof Z.$responseBodyText!=="undefined"){if(Z.$response)Z.$response.body=Z.$responseBodyText}}throw Z}},"deserializerMiddleware"),d8=b$(($,U)=>(G,W)=>async(X)=>{var Z;const Y=((Z=W.endpointV2)==null?void 0:Z.url)&&$.urlParser?async()=>$.urlParser(W.endpointV2.url):$.endpoint;if(!Y)throw new Error("No valid endpoint provider available.");const L=await U(X.input,{...$,endpoint:Y});return G({...X,request:L})},"serializerMiddleware"),p8={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},l8={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};b$(s8,"getSerdePlugin")});var $4=R((yK,e8)=>{var{defineProperty:B1,getOwnPropertyDescriptor:p5,getOwnPropertyNames:l5}=Object,s5=Object.prototype.hasOwnProperty,m=($,U)=>B1($,"name",{value:U,configurable:!0}),m5=($,U)=>{for(var G in U)B1($,G,{get:U[G],enumerable:!0})},n5=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of l5(U))if(!s5.call($,X)&&X!==G)B1($,X,{get:()=>U[X],enumerable:!(W=p5(U,X))||W.enumerable})}return $},i5=($)=>n5(B1({},"__esModule",{value:!0}),$),i8={};m5(i8,{endpointMiddleware:()=>a8,endpointMiddlewareOptions:()=>t8,getEndpointFromInstructions:()=>r8,getEndpointPlugin:()=>X9,resolveEndpointConfig:()=>Y9,resolveParams:()=>o8,toEndpointV1:()=>D$});e8.exports=i5(i8);var r5=m(async($)=>{const U=($==null?void 0:$.Bucket)||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if($9(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!e5(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},"resolveParamsForS3"),o5=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,a5=/(\d+\.){3}\d+/,t5=/\.\./,e5=m(($)=>o5.test($)&&!a5.test($)&&!t5.test($),"isDnsCompatibleBucketName"),$9=m(($)=>{const[U,G,W,,,X]=$.split(":"),Z=U==="arn"&&$.split(":").length>=6,Y=Boolean(Z&&G&&W&&X);if(Z&&!Y)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return Y},"isArnBucketName"),U9=m(($,U,G)=>{const W=m(async()=>{const X=G[$]??G[U];if(typeof X==="function")return X();return X},"configProvider");if($==="credentialScope"||U==="CredentialScope")return async()=>{const X=typeof G.credentials==="function"?await G.credentials():G.credentials;return(X==null?void 0:X.credentialScope)??(X==null?void 0:X.CredentialScope)};if($==="accountId"||U==="AccountId")return async()=>{const X=typeof G.credentials==="function"?await G.credentials():G.credentials;return(X==null?void 0:X.accountId)??(X==null?void 0:X.AccountId)};if($==="endpoint"||U==="endpoint")return async()=>{const X=await W();if(X&&typeof X==="object"){if("url"in X)return X.url.href;if("hostname"in X){const{protocol:Z,hostname:Y,port:L,path:Q}=X;return`${Z}//${Y}${L?":"+L:""}${Q}`}}return X};return W},"createConfigValueProvider"),G9=S$(),n8=u8(),D$=m(($)=>{if(typeof $==="object"){if("url"in $)return n8.parseUrl($.url);return $}return n8.parseUrl($)},"toEndpointV1"),r8=m(async($,U,G,W)=>{if(!G.endpoint){let Y;if(G.serviceConfiguredEndpoint)Y=await G.serviceConfiguredEndpoint();else Y=await G9.getEndpointFromConfig(G.serviceId);if(Y)G.endpoint=()=>Promise.resolve(D$(Y))}const X=await o8($,U,G);if(typeof G.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return G.endpointProvider(X,W)},"getEndpointFromInstructions"),o8=m(async($,U,G)=>{var W;const X={},Z=((W=U==null?void 0:U.getEndpointParameterInstructions)==null?void 0:W.call(U))||{};for(let[Y,L]of Object.entries(Z))switch(L.type){case"staticContextParams":X[Y]=L.value;break;case"contextParams":X[Y]=$[L.name];break;case"clientContextParams":case"builtInParams":X[Y]=await U9(L.name,Y,G)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(L))}if(Object.keys(Z).length===0)Object.assign(X,G);if(String(G.serviceId).toLowerCase()==="s3")await r5(X);return X},"resolveParams"),R1=r(),a8=m(({config:$,instructions:U})=>{return(G,W)=>async(X)=>{var Z,Y,L;const Q=await r8(X.input,{getEndpointParameterInstructions(){return U}},{...$},W);W.endpointV2=Q,W.authSchemes=(Z=Q.properties)==null?void 0:Z.authSchemes;const w=(Y=W.authSchemes)==null?void 0:Y[0];if(w){W.signing_region=w.signingRegion,W.signing_service=w.signingName;const z=R1.getSmithyContext(W),F=(L=z==null?void 0:z.selectedHttpAuthScheme)==null?void 0:L.httpAuthOption;if(F)F.signingProperties=Object.assign(F.signingProperties||{},{signing_region:w.signingRegion,signingRegion:w.signingRegion,signing_service:w.signingName,signingName:w.signingName,signingRegionSet:w.signingRegionSet},w.properties)}return G({...X})}},"endpointMiddleware"),W9=k$(),t8={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:W9.serializerMiddlewareOption.name},X9=m(($,U)=>({applyToStack:(G)=>{G.addRelativeTo(a8({config:$,instructions:U}),t8)}}),"getEndpointPlugin"),Z9=S$(),Y9=m(($)=>{const U=$.tls??!0,{endpoint:G}=$,W=G!=null?async()=>D$(await R1.normalizeProvider(G)()):void 0,Z={...$,endpoint:W,tls:U,isCustomEndpoint:!!G,useDualstackEndpoint:R1.normalizeProvider($.useDualstackEndpoint??!1),useFipsEndpoint:R1.normalizeProvider($.useFipsEndpoint??!1)};let Y=void 0;return Z.serviceConfiguredEndpoint=async()=>{if($.serviceId&&!Y)Y=Z9.getEndpointFromConfig($.serviceId);return Y},Z},"resolveEndpointConfig")});var t=R((uK,w4)=>{function Y4($){return Object.keys($).reduce((U,G)=>{const W=$[G];return{...U,[G]:Array.isArray(W)?[...W]:W}},{})}function Q4($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)}var{defineProperty:V1,getOwnPropertyDescriptor:L9,getOwnPropertyNames:Q9}=Object,w9=Object.prototype.hasOwnProperty,U0=($,U)=>V1($,"name",{value:U,configurable:!0}),z9=($,U)=>{for(var G in U)V1($,G,{get:U[G],enumerable:!0})},F9=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of Q9(U))if(!w9.call($,X)&&X!==G)V1($,X,{get:()=>U[X],enumerable:!(W=L9(U,X))||W.enumerable})}return $},J9=($)=>F9(V1({},"__esModule",{value:!0}),$),U4={};z9(U4,{Field:()=>M9,Fields:()=>R9,HttpRequest:()=>B9,HttpResponse:()=>V9,IHttpRequest:()=>G4.HttpRequest,getHttpHandlerExtensionConfiguration:()=>I9,isValidHostname:()=>Q4,resolveHttpHandlerRuntimeConfig:()=>K9});w4.exports=J9(U4);var I9=U0(($)=>{let U=$.httpHandler;return{setHttpHandler(G){U=G},httpHandler(){return U},updateHttpClientConfig(G,W){U.updateHttpClientConfig(G,W)},httpHandlerConfigs(){return U.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),K9=U0(($)=>{return{httpHandler:$.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),G4=T0(),W4=class ${constructor({name:U,kind:G=G4.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}};U0(W4,"Field");var M9=W4,X4=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)}};U0(X4,"Fields");var R9=X4,Z4=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=Y4(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)}};U0(Z4,"HttpRequest");var B9=Z4;U0(Y4,"cloneQuery");var L4=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"}};U0(L4,"HttpResponse");var V9=L4;U0(Q4,"isValidHostname")});var J0=R((_K,I4)=>{var{defineProperty:H1,getOwnPropertyDescriptor:H9,getOwnPropertyNames:A9}=Object,T9=Object.prototype.hasOwnProperty,C0=($,U)=>H1($,"name",{value:U,configurable:!0}),E9=($,U)=>{for(var G in U)H1($,G,{get:U[G],enumerable:!0})},O9=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of A9(U))if(!T9.call($,X)&&X!==G)H1($,X,{get:()=>U[X],enumerable:!(W=H9(U,X))||W.enumerable})}return $},C9=($)=>O9(H1({},"__esModule",{value:!0}),$),z4={};E9(z4,{isClockSkewCorrectedError:()=>F4,isClockSkewError:()=>b9,isRetryableByTrait:()=>S9,isServerError:()=>D9,isThrottlingError:()=>k9,isTransientError:()=>J4});I4.exports=C9(z4);var f9=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],q9=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],N9=["TimeoutError","RequestTimeout","RequestTimeoutException"],j9=[500,502,503,504],P9=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],S9=C0(($)=>$.$retryable!==void 0,"isRetryableByTrait"),b9=C0(($)=>f9.includes($.name),"isClockSkewError"),F4=C0(($)=>{var U;return(U=$.$metadata)==null?void 0:U.clockSkewCorrected},"isClockSkewCorrectedError"),k9=C0(($)=>{var U,G;return((U=$.$metadata)==null?void 0:U.httpStatusCode)===429||q9.includes($.name)||((G=$.$retryable)==null?void 0:G.throttling)==!0},"isThrottlingError"),J4=C0(($)=>{var U;return F4($)||N9.includes($.name)||P9.includes(($==null?void 0:$.code)||"")||j9.includes(((U=$.$metadata)==null?void 0:U.httpStatusCode)||0)},"isTransientError"),D9=C0(($)=>{var U;if(((U=$.$metadata)==null?void 0:U.httpStatusCode)!==void 0){const G=$.$metadata.httpStatusCode;if(500<=G&&G<=599&&!J4($))return!0;return!1}return!1},"isServerError")});var N4=R((gK,q4)=>{var{defineProperty:A1,getOwnPropertyDescriptor:h9,getOwnPropertyNames:x9}=Object,v9=Object.prototype.hasOwnProperty,n=($,U)=>A1($,"name",{value:U,configurable:!0}),c9=($,U)=>{for(var G in U)A1($,G,{get:U[G],enumerable:!0})},y9=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of x9(U))if(!v9.call($,X)&&X!==G)A1($,X,{get:()=>U[X],enumerable:!(W=h9(U,X))||W.enumerable})}return $},u9=($)=>y9(A1({},"__esModule",{value:!0}),$),M4={};c9(M4,{AdaptiveRetryStrategy:()=>s9,ConfiguredRetryStrategy:()=>m9,DEFAULT_MAX_ATTEMPTS:()=>h$,DEFAULT_RETRY_DELAY_BASE:()=>_0,DEFAULT_RETRY_MODE:()=>_9,DefaultRateLimiter:()=>V4,INITIAL_RETRY_TOKENS:()=>x$,INVOCATION_ID_HEADER:()=>d9,MAXIMUM_RETRY_DELAY:()=>v$,NO_RETRY_INCREMENT:()=>E4,REQUEST_HEADER:()=>p9,RETRY_COST:()=>A4,RETRY_MODES:()=>R4,StandardRetryStrategy:()=>c$,THROTTLING_RETRY_DELAY_BASE:()=>H4,TIMEOUT_RETRY_COST:()=>T4});q4.exports=u9(M4);var R4=(($)=>{return $.STANDARD="standard",$.ADAPTIVE="adaptive",$})(R4||{}),h$=3,_9="standard",g9=J0(),B4=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(),g9.isThrottlingError(U)){const X=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=X,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),G=this.cubicThrottle(X),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))}};n(B4,"DefaultRateLimiter");var V4=B4,_0=100,v$=20000,H4=500,x$=500,A4=5,T4=10,E4=1,d9="amz-sdk-invocation-id",p9="amz-sdk-request",l9=n(()=>{let $=_0;return{computeNextBackoffDelay:n((W)=>{return Math.floor(Math.min(v$,Math.random()*2**W*$))},"computeNextBackoffDelay"),setDelayBase:n((W)=>{$=W},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),K4=n(({retryDelay:$,retryCount:U,retryCost:G})=>{return{getRetryCount:n(()=>U,"getRetryCount"),getRetryDelay:n(()=>Math.min(v$,$),"getRetryDelay"),getRetryCost:n(()=>G,"getRetryCost")}},"createDefaultRetryToken"),O4=class ${constructor(U){this.maxAttempts=U,this.mode="standard",this.capacity=x$,this.retryBackoffStrategy=l9(),this.maxAttemptsProvider=typeof U==="function"?U:async()=>U}async acquireInitialRetryToken(U){return K4({retryDelay:_0,retryCount:0})}async refreshRetryTokenForRetry(U,G){const W=await this.getMaxAttempts();if(this.shouldRetry(U,G,W)){const X=G.errorType;this.retryBackoffStrategy.setDelayBase(X==="THROTTLING"?H4:_0);const Z=this.retryBackoffStrategy.computeNextBackoffDelay(U.getRetryCount()),Y=G.retryAfterHint?Math.max(G.retryAfterHint.getTime()-Date.now()||0,Z):Z,L=this.getCapacityCost(X);return this.capacity-=L,K4({retryDelay:Y,retryCount:U.getRetryCount()+1,retryCost:L})}throw new Error("No retry token available")}recordSuccess(U){this.capacity=Math.max(x$,this.capacity+(U.getRetryCost()??E4))}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"?T4:A4}isRetryableError(U){return U==="THROTTLING"||U==="TRANSIENT"}};n(O4,"StandardRetryStrategy");var c$=O4,C4=class ${constructor(U,G){this.maxAttemptsProvider=U,this.mode="adaptive";const{rateLimiter:W}=G??{};this.rateLimiter=W??new V4,this.standardRetryStrategy=new c$(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)}};n(C4,"AdaptiveRetryStrategy");var s9=C4,f4=class $ extends c${constructor(U,G=_0){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}};n(f4,"ConfiguredRetryStrategy");var m9=f4});var k4=R((dK,b4)=>{var{defineProperty:T1,getOwnPropertyDescriptor:n9,getOwnPropertyNames:i9}=Object,r9=Object.prototype.hasOwnProperty,_=($,U)=>T1($,"name",{value:U,configurable:!0}),o9=($,U)=>{for(var G in U)T1($,G,{get:U[G],enumerable:!0})},a9=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of i9(U))if(!r9.call($,X)&&X!==G)T1($,X,{get:()=>U[X],enumerable:!(W=n9(U,X))||W.enumerable})}return $},t9=($)=>a9(T1({},"__esModule",{value:!0}),$),S4={};o9(S4,{constructStack:()=>y$});b4.exports=t9(S4);var I0=_(($,U)=>{const G=[];if($)G.push($);if(U)for(let W of U)G.push(W);return G},"getAllAliases"),G0=_(($,U)=>{return`${$||"anonymous"}${U&&U.length>0?` (a.k.a. ${U.join(",")})`:""}`},"getMiddlewareNameWithAliases"),y$=_(()=>{let $=[],U=[],G=!1;const W=new Set,X=_((F)=>F.sort((J,I)=>j4[I.step]-j4[J.step]||P4[I.priority||"normal"]-P4[J.priority||"normal"]),"sort"),Z=_((F)=>{let J=!1;const I=_((K)=>{const V=I0(K.name,K.aliases);if(V.includes(F)){J=!0;for(let B of V)W.delete(B);return!1}return!0},"filterCb");return $=$.filter(I),U=U.filter(I),J},"removeByName"),Y=_((F)=>{let J=!1;const I=_((K)=>{if(K.middleware===F){J=!0;for(let V of I0(K.name,K.aliases))W.delete(V);return!1}return!0},"filterCb");return $=$.filter(I),U=U.filter(I),J},"removeByReference"),L=_((F)=>{var J;return $.forEach((I)=>{F.add(I.middleware,{...I})}),U.forEach((I)=>{F.addRelativeTo(I.middleware,{...I})}),(J=F.identifyOnResolve)==null||J.call(F,z.identifyOnResolve()),F},"cloneTo"),Q=_((F)=>{const J=[];return F.before.forEach((I)=>{if(I.before.length===0&&I.after.length===0)J.push(I);else J.push(...Q(I))}),J.push(F),F.after.reverse().forEach((I)=>{if(I.before.length===0&&I.after.length===0)J.push(I);else J.push(...Q(I))}),J},"expandRelativeMiddlewareList"),w=_((F=!1)=>{const J=[],I=[],K={};return $.forEach((B)=>{const H={...B,before:[],after:[]};for(let A of I0(H.name,H.aliases))K[A]=H;J.push(H)}),U.forEach((B)=>{const H={...B,before:[],after:[]};for(let A of I0(H.name,H.aliases))K[A]=H;I.push(H)}),I.forEach((B)=>{if(B.toMiddleware){const H=K[B.toMiddleware];if(H===void 0){if(F)return;throw new Error(`${B.toMiddleware} is not found when adding ${G0(B.name,B.aliases)} middleware ${B.relation} ${B.toMiddleware}`)}if(B.relation==="after")H.after.push(B);if(B.relation==="before")H.before.push(B)}}),X(J).map(Q).reduce((B,H)=>{return B.push(...H),B},[])},"getMiddlewareList"),z={add:(F,J={})=>{const{name:I,override:K,aliases:V}=J,B={step:"initialize",priority:"normal",middleware:F,...J},H=I0(I,V);if(H.length>0){if(H.some((A)=>W.has(A))){if(!K)throw new Error(`Duplicate middleware name '${G0(I,V)}'`);for(let A of H){const T=$.findIndex((S)=>{var h;return S.name===A||((h=S.aliases)==null?void 0:h.some((w0)=>w0===A))});if(T===-1)continue;const E=$[T];if(E.step!==B.step||B.priority!==E.priority)throw new Error(`"${G0(E.name,E.aliases)}" middleware with ${E.priority} priority in ${E.step} step cannot be overridden by "${G0(I,V)}" middleware with ${B.priority} priority in ${B.step} step.`);$.splice(T,1)}}for(let A of H)W.add(A)}$.push(B)},addRelativeTo:(F,J)=>{const{name:I,override:K,aliases:V}=J,B={middleware:F,...J},H=I0(I,V);if(H.length>0){if(H.some((A)=>W.has(A))){if(!K)throw new Error(`Duplicate middleware name '${G0(I,V)}'`);for(let A of H){const T=U.findIndex((S)=>{var h;return S.name===A||((h=S.aliases)==null?void 0:h.some((w0)=>w0===A))});if(T===-1)continue;const E=U[T];if(E.toMiddleware!==B.toMiddleware||E.relation!==B.relation)throw new Error(`"${G0(E.name,E.aliases)}" middleware ${E.relation} "${E.toMiddleware}" middleware cannot be overridden by "${G0(I,V)}" middleware ${B.relation} "${B.toMiddleware}" middleware.`);U.splice(T,1)}}for(let A of H)W.add(A)}U.push(B)},clone:()=>L(y$()),use:(F)=>{F.applyToStack(z)},remove:(F)=>{if(typeof F==="string")return Z(F);else return Y(F)},removeByTag:(F)=>{let J=!1;const I=_((K)=>{const{tags:V,name:B,aliases:H}=K;if(V&&V.includes(F)){const A=I0(B,H);for(let T of A)W.delete(T);return J=!0,!1}return!0},"filterCb");return $=$.filter(I),U=U.filter(I),J},concat:(F)=>{var J;const I=L(y$());return I.use(F),I.identifyOnResolve(G||I.identifyOnResolve()||(((J=F.identifyOnResolve)==null?void 0:J.call(F))??!1)),I},applyToStack:L,identify:()=>{return w(!0).map((F)=>{const J=F.step??F.relation+" "+F.toMiddleware;return G0(F.name,F.aliases)+" - "+J})},identifyOnResolve(F){if(typeof F==="boolean")G=F;return G},resolve:(F,J)=>{for(let I of w().map((K)=>K.middleware).reverse())F=I(F,J);if(G)console.log(z.identify());return F}};return z},"constructStack"),j4={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},P4={high:3,normal:2,low:1}});var u$=R((pK,h4)=>{var{defineProperty:E1,getOwnPropertyDescriptor:e9,getOwnPropertyNames:$Q}=Object,UQ=Object.prototype.hasOwnProperty,GQ=($,U)=>E1($,"name",{value:U,configurable:!0}),WQ=($,U)=>{for(var G in U)E1($,G,{get:U[G],enumerable:!0})},XQ=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of $Q(U))if(!UQ.call($,X)&&X!==G)E1($,X,{get:()=>U[X],enumerable:!(W=e9(U,X))||W.enumerable})}return $},ZQ=($)=>XQ(E1({},"__esModule",{value:!0}),$),D4={};WQ(D4,{isArrayBuffer:()=>YQ});h4.exports=ZQ(D4);var YQ=GQ(($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]","isArrayBuffer")});var g0=R((lK,c4)=>{var{defineProperty:O1,getOwnPropertyDescriptor:LQ,getOwnPropertyNames:QQ}=Object,wQ=Object.prototype.hasOwnProperty,x4=($,U)=>O1($,"name",{value:U,configurable:!0}),zQ=($,U)=>{for(var G in U)O1($,G,{get:U[G],enumerable:!0})},FQ=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of QQ(U))if(!wQ.call($,X)&&X!==G)O1($,X,{get:()=>U[X],enumerable:!(W=LQ(U,X))||W.enumerable})}return $},JQ=($)=>FQ(O1({},"__esModule",{value:!0}),$),v4={};zQ(v4,{fromArrayBuffer:()=>KQ,fromString:()=>MQ});c4.exports=JQ(v4);var IQ=u$(),_$=import.meta.require("buffer"),KQ=x4(($,U=0,G=$.byteLength-U)=>{if(!IQ.isArrayBuffer($))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return _$.Buffer.from($,U,G)},"fromArrayBuffer"),MQ=x4(($,U)=>{if(typeof $!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof $} (${$})`);return U?_$.Buffer.from($,U):_$.Buffer.from($)},"fromString")});var _4=R((y4)=>{Object.defineProperty(y4,"__esModule",{value:!0});y4.fromBase64=void 0;var RQ=g0(),BQ=/^[A-Za-z0-9+/]*={0,2}$/,VQ=($)=>{if($.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!BQ.exec($))throw new TypeError("Invalid base64 string.");const U=RQ.fromString($,"base64");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength)};y4.fromBase64=VQ});var W0=R((mK,l4)=>{var{defineProperty:C1,getOwnPropertyDescriptor:HQ,getOwnPropertyNames:AQ}=Object,TQ=Object.prototype.hasOwnProperty,g$=($,U)=>C1($,"name",{value:U,configurable:!0}),EQ=($,U)=>{for(var G in U)C1($,G,{get:U[G],enumerable:!0})},OQ=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of AQ(U))if(!TQ.call($,X)&&X!==G)C1($,X,{get:()=>U[X],enumerable:!(W=HQ(U,X))||W.enumerable})}return $},CQ=($)=>OQ(C1({},"__esModule",{value:!0}),$),g4={};EQ(g4,{fromUtf8:()=>p4,toUint8Array:()=>fQ,toUtf8:()=>qQ});l4.exports=CQ(g4);var d4=g0(),p4=g$(($)=>{const U=d4.fromString($,"utf8");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),fQ=g$(($)=>{if(typeof $==="string")return p4($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},"toUint8Array"),qQ=g$(($)=>{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 d4.fromArrayBuffer($.buffer,$.byteOffset,$.byteLength).toString("utf8")},"toUtf8")});var n4=R((s4)=>{Object.defineProperty(s4,"__esModule",{value:!0});s4.toBase64=void 0;var NQ=g0(),jQ=W0(),PQ=($)=>{let U;if(typeof $==="string")U=jQ.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 NQ.fromArrayBuffer(U.buffer,U.byteOffset,U.byteLength).toString("base64")};s4.toBase64=PQ});var q1=R((iK,f1)=>{var{defineProperty:i4,getOwnPropertyDescriptor:SQ,getOwnPropertyNames:bQ}=Object,kQ=Object.prototype.hasOwnProperty,d$=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of bQ(U))if(!kQ.call($,X)&&X!==G)i4($,X,{get:()=>U[X],enumerable:!(W=SQ(U,X))||W.enumerable})}return $},r4=($,U,G)=>(d$($,U,"default"),G&&d$(G,U,"default")),DQ=($)=>d$(i4({},"__esModule",{value:!0}),$),p$={};f1.exports=DQ(p$);r4(p$,_4(),f1.exports);r4(p$,n4(),f1.exports)});var t4=R((o4)=>{Object.defineProperty(o4,"__esModule",{value:!0});o4.getAwsChunkedEncodingStream=void 0;var hQ=import.meta.require("stream"),xQ=($,U)=>{const{base64Encoder:G,bodyLengthChecker:W,checksumAlgorithmFn:X,checksumLocationName:Z,streamHasher:Y}=U,L=G!==void 0&&X!==void 0&&Z!==void 0&&Y!==void 0,Q=L?Y(X,$):void 0,w=new hQ.Readable({read:()=>{}});return $.on("data",(z)=>{const F=W(z)||0;w.push(`${F.toString(16)}\r\n`),w.push(z),w.push("\r\n")}),$.on("end",async()=>{if(w.push("0\r\n"),L){const z=G(await Q);w.push(`${Z}:${z}\r\n`),w.push("\r\n")}w.push(null)}),w};o4.getAwsChunkedEncodingStream=xQ});var s$=R((oK,U6)=>{var{defineProperty:N1,getOwnPropertyDescriptor:vQ,getOwnPropertyNames:cQ}=Object,yQ=Object.prototype.hasOwnProperty,l$=($,U)=>N1($,"name",{value:U,configurable:!0}),uQ=($,U)=>{for(var G in U)N1($,G,{get:U[G],enumerable:!0})},_Q=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of cQ(U))if(!yQ.call($,X)&&X!==G)N1($,X,{get:()=>U[X],enumerable:!(W=vQ(U,X))||W.enumerable})}return $},gQ=($)=>_Q(N1({},"__esModule",{value:!0}),$),e4={};uQ(e4,{escapeUri:()=>$6,escapeUriPath:()=>pQ});U6.exports=gQ(e4);var $6=l$(($)=>encodeURIComponent($).replace(/[!'()*]/g,dQ),"escapeUri"),dQ=l$(($)=>`%${$.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),pQ=l$(($)=>$.split("/").map($6).join("/"),"escapeUriPath")});var n$=R((aK,X6)=>{function W6($){const U=[];for(let G of Object.keys($).sort()){const W=$[G];if(G=m$.escapeUri(G),Array.isArray(W))for(let X=0,Z=W.length;X<Z;X++)U.push(`${G}=${m$.escapeUri(W[X])}`);else{let X=G;if(W||typeof W==="string")X+=`=${m$.escapeUri(W)}`;U.push(X)}}return U.join("&")}var{defineProperty:j1,getOwnPropertyDescriptor:lQ,getOwnPropertyNames:sQ}=Object,mQ=Object.prototype.hasOwnProperty,nQ=($,U)=>j1($,"name",{value:U,configurable:!0}),iQ=($,U)=>{for(var G in U)j1($,G,{get:U[G],enumerable:!0})},rQ=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of sQ(U))if(!mQ.call($,X)&&X!==G)j1($,X,{get:()=>U[X],enumerable:!(W=lQ(U,X))||W.enumerable})}return $},oQ=($)=>rQ(j1({},"__esModule",{value:!0}),$),G6={};iQ(G6,{buildQueryString:()=>W6});X6.exports=oQ(G6);var m$=s$();nQ(W6,"buildQueryString")});var O6=R((tK,E6)=>{async function o$($,U,G=L6){const W=U.headers??{},X=W.Expect||W.expect;let Z=-1,Y=!1;if(X==="100-continue")await Promise.race([new Promise((L)=>{Z=Number(setTimeout(L,Math.max(L6,G)))}),new Promise((L)=>{$.on("continue",()=>{clearTimeout(Z),L()}),$.on("error",()=>{Y=!0,clearTimeout(Z),L()})})]);if(!Y)M6($,U.body)}function M6($,U){if(U instanceof K6.Readable){U.pipe($);return}if(U){if(Buffer.isBuffer(U)||typeof U==="string"){$.end(U);return}const G=U;if(typeof G==="object"&&G.buffer&&typeof G.byteOffset==="number"&&typeof G.byteLength==="number"){$.end(Buffer.from(G.buffer,G.byteOffset,G.byteLength));return}$.end(Buffer.from(U));return}$.end()}async function T6($){const U=[],G=$.getReader();let W=!1,X=0;while(!W){const{done:L,value:Q}=await G.read();if(Q)U.push(Q),X+=Q.length;W=L}const Z=new Uint8Array(X);let Y=0;for(let L of U)Z.set(L,Y),Y+=L.length;return Z}var{create:aQ,defineProperty:d0,getOwnPropertyDescriptor:tQ,getOwnPropertyNames:eQ,getPrototypeOf:$7}=Object,U7=Object.prototype.hasOwnProperty,O=($,U)=>d0($,"name",{value:U,configurable:!0}),G7=($,U)=>{for(var G in U)d0($,G,{get:U[G],enumerable:!0})},w6=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of eQ(U))if(!U7.call($,X)&&X!==G)d0($,X,{get:()=>U[X],enumerable:!(W=tQ(U,X))||W.enumerable})}return $},W7=($,U,G)=>(G=$!=null?aQ($7($)):{},w6(U||!$||!$.__esModule?d0(G,"default",{value:$,enumerable:!0}):G,$)),X7=($)=>w6(d0({},"__esModule",{value:!0}),$),z6={};G7(z6,{DEFAULT_REQUEST_TIMEOUT:()=>z7,NodeHttp2Handler:()=>M7,NodeHttpHandler:()=>F7,streamCollector:()=>B7});E6.exports=X7(z6);var F6=t(),J6=n$(),i$=import.meta.require("http"),r$=import.meta.require("https"),Z7=["ECONNRESET","EPIPE","ETIMEDOUT"],I6=O(($)=>{const U={};for(let G of Object.keys($)){const W=$[G];U[G]=Array.isArray(W)?W.join(","):W}return U},"getTransformedHeaders"),Z6=1000,Y7=O(($,U,G=0)=>{if(!G)return-1;const W=O((X)=>{const Z=setTimeout(()=>{$.destroy(),U(Object.assign(new Error(`Socket timed out without establishing a connection within ${G} ms`),{name:"TimeoutError"}))},G-X),Y=O((L)=>{if(L==null?void 0:L.connecting)L.on("connect",()=>{clearTimeout(Z)});else clearTimeout(Z)},"doWithSocket");if($.socket)Y($.socket);else $.on("socket",Y)},"registerTimeout");if(G<2000)return W(0),0;return setTimeout(W.bind(null,Z6),Z6)},"setConnectionTimeout"),L7=3000,Q7=O(($,{keepAlive:U,keepAliveMsecs:G},W=L7)=>{if(U!==!0)return-1;const X=O(()=>{if($.socket)$.socket.setKeepAlive(U,G||0);else $.on("socket",(Z)=>{Z.setKeepAlive(U,G||0)})},"registerListener");if(W===0)return X(),0;return setTimeout(X,W)},"setSocketKeepAlive"),Y6=3000,w7=O(($,U,G=0)=>{const W=O((X)=>{$.setTimeout(G-X,()=>{$.destroy(),U(Object.assign(new Error(`Connection timed out after ${G} ms`),{name:"TimeoutError"}))})},"registerTimeout");if(0<G&&G<6000)return W(0),0;return setTimeout(W.bind(null,G===0?0:Y6),Y6)},"setSocketTimeout"),K6=import.meta.require("stream"),L6=1000;O(o$,"writeRequestBody");O(M6,"writeBody");var z7=0,R6=class ${constructor(U){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((G,W)=>{if(typeof U==="function")U().then((X)=>{G(this.resolveDefaultConfig(X))}).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 X,Z,Y;const{sockets:L,requests:Q,maxSockets:w}=U;if(typeof w!=="number"||w===1/0)return G;const z=15000;if(Date.now()-z<G)return G;if(L&&Q)for(let F in L){const J=((X=L[F])==null?void 0:X.length)??0,I=((Z=Q[F])==null?void 0:Z.length)??0;if(J>=w&&I>=2*w)return(Y=W==null?void 0:W.warn)==null||Y.call(W,`@smithy/node-http-handler:WARN - socket usage at capacity=${J} and ${I} 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:X,httpAgent:Z,httpsAgent:Y}=U||{};return{connectionTimeout:W,requestTimeout:G??X,httpAgent:(()=>{if(Z instanceof i$.Agent||typeof(Z==null?void 0:Z.destroy)==="function")return Z;return new i$.Agent({keepAlive:!0,maxSockets:50,...Z})})(),httpsAgent:(()=>{if(Y instanceof r$.Agent||typeof(Y==null?void 0:Y.destroy)==="function")return Y;return new r$.Agent({keepAlive:!0,maxSockets:50,...Y})})(),logger:console}}destroy(){var U,G,W,X;(G=(U=this.config)==null?void 0:U.httpAgent)==null||G.destroy(),(X=(W=this.config)==null?void 0:W.httpsAgent)==null||X.destroy()}async handle(U,{abortSignal:G}={}){if(!this.config)this.config=await this.configProvider;return new Promise((W,X)=>{let Z=void 0;const Y=[],L=O(async(T)=>{await Z,Y.forEach(clearTimeout),W(T)},"resolve"),Q=O(async(T)=>{await Z,Y.forEach(clearTimeout),X(T)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(G==null?void 0:G.aborted){const T=new Error("Request aborted");T.name="AbortError",Q(T);return}const w=U.protocol==="https:",z=w?this.config.httpsAgent:this.config.httpAgent;Y.push(setTimeout(()=>{this.socketWarningTimestamp=$.checkSocketUsage(z,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000)));const F=J6.buildQueryString(U.query||{});let J=void 0;if(U.username!=null||U.password!=null){const T=U.username??"",E=U.password??"";J=`${T}:${E}`}let I=U.path;if(F)I+=`?${F}`;if(U.fragment)I+=`#${U.fragment}`;let K=U.hostname??"";if(K[0]==="["&&K.endsWith("]"))K=U.hostname.slice(1,-1);else K=U.hostname;const V={headers:U.headers,host:K,method:U.method,path:I,port:U.port,agent:z,auth:J},H=(w?r$.request:i$.request)(V,(T)=>{const E=new F6.HttpResponse({statusCode:T.statusCode||-1,reason:T.statusMessage,headers:I6(T.headers),body:T});L({response:E})});if(H.on("error",(T)=>{if(Z7.includes(T.code))Q(Object.assign(T,{name:"TimeoutError"}));else Q(T)}),G){const T=O(()=>{H.destroy();const E=new Error("Request aborted");E.name="AbortError",Q(E)},"onAbort");if(typeof G.addEventListener==="function"){const E=G;E.addEventListener("abort",T,{once:!0}),H.once("close",()=>E.removeEventListener("abort",T))}else G.onabort=T}Y.push(Y7(H,Q,this.config.connectionTimeout)),Y.push(w7(H,Q,this.config.requestTimeout));const A=V.agent;if(typeof A==="object"&&"keepAlive"in A)Y.push(Q7(H,{keepAlive:A.keepAlive,keepAliveMsecs:A.keepAliveMsecs}));Z=o$(H,U,this.config.requestTimeout).catch((T)=>{return Y.forEach(clearTimeout),X(T)})})}updateHttpClientConfig(U,G){this.config=void 0,this.configProvider=this.configProvider.then((W)=>{return{...W,[U]:G}})}httpHandlerConfigs(){return this.config??{}}};O(R6,"NodeHttpHandler");var F7=R6,Q6=import.meta.require("http2"),J7=W7(import.meta.require("http2")),B6=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()}}};O(B6,"NodeHttp2ConnectionPool");var I7=B6,V6=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),X=this.sessionCache.get(W);if(X){const Q=X.poll();if(Q&&!this.config.disableConcurrency)return Q}const Z=J7.default.connect(W);if(this.config.maxConcurrency)Z.settings({maxConcurrentStreams:this.config.maxConcurrency},(Q)=>{if(Q)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+U.destination.toString())});Z.unref();const Y=O(()=>{Z.destroy(),this.deleteSession(W,Z)},"destroySessionCb");if(Z.on("goaway",Y),Z.on("error",Y),Z.on("frameError",Y),Z.on("close",()=>this.deleteSession(W,Z)),G.requestTimeout)Z.setTimeout(G.requestTimeout,Y);const L=this.sessionCache.get(W)||new I7;return L.offerLast(Z),this.sessionCache.set(W,L),Z}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 X=this.getUrlString(U);(W=this.sessionCache.get(X))==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()}};O(V6,"NodeHttp2ConnectionManager");var K7=V6,H6=class ${constructor(U){this.metadata={handlerProtocol:"h2"},this.connectionManager=new K7({}),this.configProvider=new Promise((G,W)=>{if(typeof U==="function")U().then((X)=>{G(X||{})}).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:X}=this.config;return new Promise((Z,Y)=>{var L;let Q=!1,w=void 0;const z=O(async(N)=>{await w,Z(N)},"resolve"),F=O(async(N)=>{await w,Y(N)},"reject");if(G==null?void 0:G.aborted){Q=!0;const N=new Error("Request aborted");N.name="AbortError",F(N);return}const{hostname:J,method:I,port:K,protocol:V,query:B}=U;let H="";if(U.username!=null||U.password!=null){const N=U.username??"",p=U.password??"";H=`${N}:${p}@`}const A=`${V}//${H}${J}${K?`:${K}`:""}`,T={destination:new URL(A)},E=this.connectionManager.lease(T,{requestTimeout:(L=this.config)==null?void 0:L.sessionTimeout,disableConcurrentStreams:X||!1}),S=O((N)=>{if(X)this.destroySession(E);Q=!0,F(N)},"rejectWithDestroy"),h=J6.buildQueryString(B||{});let w0=U.path;if(h)w0+=`?${h}`;if(U.fragment)w0+=`#${U.fragment}`;const c=E.request({...U.headers,[Q6.constants.HTTP2_HEADER_PATH]:w0,[Q6.constants.HTTP2_HEADER_METHOD]:I});if(E.ref(),c.on("response",(N)=>{const p=new F6.HttpResponse({statusCode:N[":status"]||-1,headers:I6(N),body:c});if(Q=!0,z({response:p}),X)E.close(),this.connectionManager.deleteSession(A,E)}),W)c.setTimeout(W,()=>{c.close();const N=new Error(`Stream timed out because of no activity for ${W} ms`);N.name="TimeoutError",S(N)});if(G){const N=O(()=>{c.close();const p=new Error("Request aborted");p.name="AbortError",S(p)},"onAbort");if(typeof G.addEventListener==="function"){const p=G;p.addEventListener("abort",N,{once:!0}),c.once("close",()=>p.removeEventListener("abort",N))}else G.onabort=N}c.on("frameError",(N,p,yY)=>{S(new Error(`Frame type id ${N} in stream id ${yY} has failed with code ${p}.`))}),c.on("error",S),c.on("aborted",()=>{S(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${c.rstCode}.`))}),c.on("close",()=>{if(E.unref(),X)E.destroy();if(!Q)S(new Error("Unexpected error: http2 request did not get a response"))}),w=o$(c,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()}};O(H6,"NodeHttp2Handler");var M7=H6,A6=class $ extends K6.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(U,G,W){this.bufferedBytes.push(U),W()}};O(A6,"Collector");var R7=A6,B7=O(($)=>{if(V7($))return T6($);return new Promise((U,G)=>{const W=new R7;$.pipe(W),$.on("error",(X)=>{W.end(),G(X)}),W.on("error",G),W.on("finish",function(){const X=new Uint8Array(Buffer.concat(this.bufferedBytes));U(X)})})},"streamCollector"),V7=O(($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream,"isReadableStreamInstance");O(T6,"collectReadableStream")});var k6=R((eK,b6)=>{function q6($=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 j6($){const U=await S6($),G=N7.fromBase64(U);return new Uint8Array(G)}async function P6($){const U=[],G=$.getReader();let W=!1,X=0;while(!W){const{done:L,value:Q}=await G.read();if(Q)U.push(Q),X+=Q.length;W=L}const Z=new Uint8Array(X);let Y=0;for(let L of U)Z.set(L,Y),Y+=L.length;return Z}function S6($){return new Promise((U,G)=>{const W=new FileReader;W.onloadend=()=>{if(W.readyState!==2)return G(new Error("Reader aborted too early"));const X=W.result??"",Z=X.indexOf(","),Y=Z>-1?Z+1:X.length;U(X.substring(Y))},W.onabort=()=>G(new Error("Read aborted")),W.onerror=()=>G(W.error),W.readAsDataURL($)})}var{defineProperty:S1,getOwnPropertyDescriptor:H7,getOwnPropertyNames:A7}=Object,T7=Object.prototype.hasOwnProperty,e=($,U)=>S1($,"name",{value:U,configurable:!0}),E7=($,U)=>{for(var G in U)S1($,G,{get:U[G],enumerable:!0})},O7=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of A7(U))if(!T7.call($,X)&&X!==G)S1($,X,{get:()=>U[X],enumerable:!(W=H7(U,X))||W.enumerable})}return $},C7=($)=>O7(S1({},"__esModule",{value:!0}),$),f6={};E7(f6,{FetchHttpHandler:()=>q7,keepAliveSupport:()=>P1,streamCollector:()=>j7});b6.exports=C7(f6);var C6=t(),f7=n$();e(q6,"requestTimeout");var P1={supported:void 0},N6=class ${static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}constructor(U){if(typeof U==="function")this.configProvider=U().then((G)=>G||{});else this.config=U??{},this.configProvider=Promise.resolve(this.config);if(P1.supported===void 0)P1.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in new Request("https://[::1]"))}destroy(){}async handle(U,{abortSignal:G}={}){var W;if(!this.config)this.config=await this.configProvider;const X=this.config.requestTimeout,Z=this.config.keepAlive===!0,Y=this.config.credentials;if(G==null?void 0:G.aborted){const A=new Error("Request aborted");return A.name="AbortError",Promise.reject(A)}let L=U.path;const Q=f7.buildQueryString(U.query||{});if(Q)L+=`?${Q}`;if(U.fragment)L+=`#${U.fragment}`;let w="";if(U.username!=null||U.password!=null){const A=U.username??"",T=U.password??"";w=`${A}:${T}@`}const{port:z,method:F}=U,J=`${U.protocol}//${w}${U.hostname}${z?`:${z}`:""}${L}`,I=F==="GET"||F==="HEAD"?void 0:U.body,K={body:I,headers:new Headers(U.headers),method:F,credentials:Y};if((W=this.config)==null?void 0:W.cache)K.cache=this.config.cache;if(I)K.duplex="half";if(typeof AbortController!=="undefined")K.signal=G;if(P1.supported)K.keepalive=Z;if(typeof this.config.requestInit==="function")Object.assign(K,this.config.requestInit(U));let V=e(()=>{},"removeSignalEventListener");const B=new Request(J,K),H=[fetch(B).then((A)=>{const T=A.headers,E={};for(let h of T.entries())E[h[0]]=h[1];if(A.body==null)return A.blob().then((h)=>({response:new C6.HttpResponse({headers:E,reason:A.statusText,statusCode:A.status,body:h})}));return{response:new C6.HttpResponse({headers:E,reason:A.statusText,statusCode:A.status,body:A.body})}}),q6(X)];if(G)H.push(new Promise((A,T)=>{const E=e(()=>{const S=new Error("Request aborted");S.name="AbortError",T(S)},"onAbort");if(typeof G.addEventListener==="function"){const S=G;S.addEventListener("abort",E,{once:!0}),V=e(()=>S.removeEventListener("abort",E),"removeSignalEventListener")}else G.onabort=E}));return Promise.race(H).finally(V)}updateHttpClientConfig(U,G){this.config=void 0,this.configProvider=this.configProvider.then((W)=>{return W[U]=G,W})}httpHandlerConfigs(){return this.config??{}}};e(N6,"FetchHttpHandler");var q7=N6,N7=q1(),j7=e(($)=>{if(typeof Blob==="function"&&$ instanceof Blob)return j6($);return P6($)},"streamCollector");e(j6,"collectBlob");e(P6,"collectStream");e(S6,"readToBase64")});var p0=R((D6)=>{Object.defineProperty(D6,"__esModule",{value:!0});D6.isReadableStream=void 0;var P7=($)=>{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)};D6.isReadableStream=P7});var g6=R((u6)=>{Object.defineProperty(u6,"__esModule",{value:!0});u6.sdkStreamMixin=void 0;var S7=k6(),b7=q1(),k7=y6(),D7=W0(),x6=p0(),v6="The stream has already been transformed.",h7=($)=>{var U,G;if(!c6($)&&!x6.isReadableStream($)){const Y=((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 ${Y}`)}let W=!1;const X=async()=>{if(W)throw new Error(v6);return W=!0,await S7.streamCollector($)},Z=(Y)=>{if(typeof Y.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 Y.stream()};return Object.assign($,{transformToByteArray:X,transformToString:async(Y)=>{const L=await X();if(Y==="base64")return b7.toBase64(L);else if(Y==="hex")return k7.toHex(L);else if(Y===void 0||Y==="utf8"||Y==="utf-8")return D7.toUtf8(L);else if(typeof TextDecoder==="function")return new TextDecoder(Y).decode(L);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(W)throw new Error(v6);if(W=!0,c6($))return Z($);else if(x6.isReadableStream($))return $;else throw new Error(`Cannot transform payload to web stream, got ${$}`)}})};u6.sdkStreamMixin=h7;var c6=($)=>typeof Blob==="function"&&$ instanceof Blob});var s6=R((p6)=>{Object.defineProperty(p6,"__esModule",{value:!0});p6.sdkStreamMixin=void 0;var x7=O6(),v7=g0(),a$=import.meta.require("stream"),c7=import.meta.require("util"),y7=g6(),d6="The stream has already been transformed.",u7=($)=>{var U,G;if(!($ instanceof a$.Readable))try{return y7.sdkStreamMixin($)}catch(Z){const Y=((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 ${Y}`)}let W=!1;const X=async()=>{if(W)throw new Error(d6);return W=!0,await x7.streamCollector($)};return Object.assign($,{transformToByteArray:X,transformToString:async(Z)=>{const Y=await X();if(Z===void 0||Buffer.isEncoding(Z))return v7.fromArrayBuffer(Y.buffer,Y.byteOffset,Y.byteLength).toString(Z);else return new c7.TextDecoder(Z).decode(Y)},transformToWebStream:()=>{if(W)throw new Error(d6);if($.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof a$.Readable.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return W=!0,a$.Readable.toWeb($)}})};p6.sdkStreamMixin=u7});var i6=R((m6)=>{async function _7($){if(typeof $.stream==="function")$=$.stream();return $.tee()}Object.defineProperty(m6,"__esModule",{value:!0});m6.splitStream=void 0;m6.splitStream=_7});var t6=R((o6)=>{async function p7($){if(d7.isReadableStream($))return g7.splitStream($);const U=new r6.PassThrough,G=new r6.PassThrough;return $.pipe(U),$.pipe(G),[U,G]}Object.defineProperty(o6,"__esModule",{value:!0});o6.splitStream=void 0;var r6=import.meta.require("stream"),g7=i6(),d7=p0();o6.splitStream=p7});var UW=R((e6)=>{async function l7($,U){var G;let W=0;const X=[],Z=$.getReader();let Y=!1;while(!Y){const{done:w,value:z}=await Z.read();if(z)X.push(z),W+=(G=z===null||z===void 0?void 0:z.byteLength)!==null&&G!==void 0?G:0;if(W>=U)break;Y=w}Z.releaseLock();const L=new Uint8Array(Math.min(U,W));let Q=0;for(let w of X){if(w.byteLength>L.byteLength-Q){L.set(w.subarray(0,L.byteLength-Q),Q);break}else L.set(w,Q);Q+=w.length}return L}Object.defineProperty(e6,"__esModule",{value:!0});e6.headStream=void 0;e6.headStream=l7});var ZW=R((WW)=>{Object.defineProperty(WW,"__esModule",{value:!0});WW.headStream=void 0;var s7=import.meta.require("stream"),m7=UW(),n7=p0(),i7=($,U)=>{if(n7.isReadableStream($))return m7.headStream($,U);return new Promise((G,W)=>{const X=new GW;X.limit=U,$.pipe(X),$.on("error",(Z)=>{X.end(),W(Z)}),X.on("error",W),X.on("finish",function(){const Z=new Uint8Array(Buffer.concat(this.buffers));G(Z)})})};WW.headStream=i7;class GW extends s7.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=1/0,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 X=this.bytesBuffered-this.limit,Z=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=Z.subarray(0,Z.byteLength-X),this.emit("finish")}G()}}});var FW=R((LM,M0)=>{function QW($,U="utf-8"){if(U==="base64")return YW.toBase64($);return LW.toUtf8($)}function wW($,U){if(U==="base64")return e$.mutate(YW.fromBase64($));return e$.mutate(LW.fromUtf8($))}var{defineProperty:b1,getOwnPropertyDescriptor:r7,getOwnPropertyNames:o7}=Object,a7=Object.prototype.hasOwnProperty,$U=($,U)=>b1($,"name",{value:U,configurable:!0}),t7=($,U)=>{for(var G in U)b1($,G,{get:U[G],enumerable:!0})},t$=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of o7(U))if(!a7.call($,X)&&X!==G)b1($,X,{get:()=>U[X],enumerable:!(W=r7(U,X))||W.enumerable})}return $},l0=($,U,G)=>(t$($,U,"default"),G&&t$(G,U,"default")),e7=($)=>t$(b1({},"__esModule",{value:!0}),$),K0={};t7(K0,{Uint8ArrayBlobAdapter:()=>e$});M0.exports=e7(K0);var YW=q1(),LW=W0();$U(QW,"transformToString");$U(wW,"transformFromString");var zW=class $ extends Uint8Array{static fromString(U,G="utf-8"){switch(typeof U){case"string":return wW(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 QW(this,U)}};$U(zW,"Uint8ArrayBlobAdapter");var e$=zW;l0(K0,t4(),M0.exports);l0(K0,s6(),M0.exports);l0(K0,t6(),M0.exports);l0(K0,ZW(),M0.exports);l0(K0,p0(),M0.exports)});var j0=R((QM,hW)=>{function fW($){const U=$.getUTCFullYear(),G=$.getUTCMonth(),W=$.getUTCDay(),X=$.getUTCDate(),Z=$.getUTCHours(),Y=$.getUTCMinutes(),L=$.getUTCSeconds(),Q=X<10?`0${X}`:`${X}`,w=Z<10?`0${Z}`:`${Z}`,z=Y<10?`0${Y}`:`${Y}`,F=L<10?`0${L}`:`${L}`;return`${Nw[W]}, ${Q} ${FU[G]} ${U} ${w}:${z}:${F} GMT`}function h1($){return encodeURIComponent($).replace(/[!'()*]/g,function(U){return"%"+U.charCodeAt(0).toString(16).toUpperCase()})}function JU($,U,G){let W,X,Z;if(typeof U==="undefined"&&typeof G==="undefined")W={},Z=$;else if(W=$,typeof U==="function")return X=U,Z=G,Yz(W,X,Z);else Z=U;for(let Y of Object.keys(Z)){if(!Array.isArray(Z[Y])){W[Y]=Z[Y];continue}kW(W,null,Z,Y)}return W}function DW($,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 X=[];let Z="";for(let Y=0;Y<W.length;Y++){if(Z==="")Z=W[Y];else Z+=U+W[Y];if((Y+1)%G===0)X.push(Z),Z=""}if(Z!=="")X.push(Z);return X}var{defineProperty:x1,getOwnPropertyDescriptor:$w,getOwnPropertyNames:Uw}=Object,Gw=Object.prototype.hasOwnProperty,M=($,U)=>x1($,"name",{value:U,configurable:!0}),Ww=($,U)=>{for(var G in U)x1($,G,{get:U[G],enumerable:!0})},Xw=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of Uw(U))if(!Gw.call($,X)&&X!==G)x1($,X,{get:()=>U[X],enumerable:!(W=$w(U,X))||W.enumerable})}return $},Zw=($)=>Xw(x1({},"__esModule",{value:!0}),$),IW={};Ww(IW,{Client:()=>Lw,Command:()=>VW,LazyJsonString:()=>Wz,NoOpLogger:()=>Yw,SENSITIVE_STRING:()=>zw,ServiceException:()=>sw,StringWrapper:()=>r0,_json:()=>LU,collectBody:()=>Qw,convertMap:()=>Xz,createAggregatedClient:()=>Fw,dateToUtcString:()=>fW,decorateServiceException:()=>NW,emitWarningIfUnsupportedVersion:()=>rw,expectBoolean:()=>Iw,expectByte:()=>YU,expectFloat32:()=>k1,expectInt:()=>Mw,expectInt32:()=>XU,expectLong:()=>n0,expectNonNull:()=>Bw,expectNumber:()=>m0,expectObject:()=>AW,expectShort:()=>ZU,expectString:()=>Vw,expectUnion:()=>Hw,extendedEncodeURIComponent:()=>h1,getArrayIfSingleItem:()=>Gz,getDefaultClientConfiguration:()=>$z,getDefaultExtensionConfiguration:()=>PW,getValueFromTextNode:()=>SW,handleFloat:()=>Ew,limitedParseDouble:()=>zU,limitedParseFloat:()=>Ow,limitedParseFloat32:()=>Cw,loadConfigsForDefaultMode:()=>iw,logger:()=>i0,map:()=>JU,parseBoolean:()=>Jw,parseEpochTimestamp:()=>vw,parseRfc3339DateTime:()=>Pw,parseRfc3339DateTimeWithOffset:()=>bw,parseRfc7231DateTime:()=>xw,resolveDefaultRuntimeConfig:()=>Uz,resolvedPath:()=>wz,serializeDateTime:()=>Fz,serializeFloat:()=>zz,splitEvery:()=>DW,strictParseByte:()=>CW,strictParseDouble:()=>wU,strictParseFloat:()=>Aw,strictParseFloat32:()=>TW,strictParseInt:()=>fw,strictParseInt32:()=>qw,strictParseLong:()=>OW,strictParseShort:()=>f0,take:()=>Zz,throwDefaultError:()=>jW,withBaseException:()=>mw});hW.exports=Zw(IW);var KW=class ${trace(){}debug(){}info(){}warn(){}error(){}};M(KW,"NoOpLogger");var Yw=KW,MW=k4(),RW=class ${constructor(U){this.config=U,this.middlewareStack=MW.constructStack()}send(U,G,W){const X=typeof G!=="function"?G:void 0,Z=typeof G==="function"?G:W,Y=X===void 0&&this.config.cacheMiddleware===!0;let L;if(Y){if(!this.handlers)this.handlers=new WeakMap;const Q=this.handlers;if(Q.has(U.constructor))L=Q.get(U.constructor);else L=U.resolveMiddleware(this.middlewareStack,this.config,X),Q.set(U.constructor,L)}else delete this.handlers,L=U.resolveMiddleware(this.middlewareStack,this.config,X);if(Z)L(U).then((Q)=>Z(null,Q.output),(Q)=>Z(Q)).catch(()=>{});else return L(U).then((Q)=>Q.output)}destroy(){var U,G,W;(W=(G=(U=this.config)==null?void 0:U.requestHandler)==null?void 0:G.destroy)==null||W.call(G),delete this.handlers}};M(RW,"Client");var Lw=RW,UU=FW(),Qw=M(async($=new Uint8Array,U)=>{if($ instanceof Uint8Array)return UU.Uint8ArrayBlobAdapter.mutate($);if(!$)return UU.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const G=U.streamCollector($);return UU.Uint8ArrayBlobAdapter.mutate(await G)},"collectBody"),WU=T0(),BW=class ${constructor(){this.middlewareStack=MW.constructStack()}static classBuilder(){return new ww}resolveMiddlewareWithContext(U,G,W,{middlewareFn:X,clientName:Z,commandName:Y,inputFilterSensitiveLog:L,outputFilterSensitiveLog:Q,smithyContext:w,additionalContext:z,CommandCtor:F}){for(let B of X.bind(this)(F,U,G,W))this.middlewareStack.use(B);const J=U.concat(this.middlewareStack),{logger:I}=G,K={logger:I,clientName:Z,commandName:Y,inputFilterSensitiveLog:L,outputFilterSensitiveLog:Q,[WU.SMITHY_CONTEXT_KEY]:{commandInstance:this,...w},...z},{requestHandler:V}=G;return J.resolve((B)=>V.handle(B.request,W||{}),K)}};M(BW,"Command");var VW=BW,HW=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 VW{constructor(...[X]){super();this.serialize=G._serializer,this.deserialize=G._deserializer,this.input=X??{},G._init(this)}static getEndpointParameterInstructions(){return G._ep}resolveMiddleware(X,Z,Y){return this.resolveMiddlewareWithContext(X,Z,Y,{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(HW,"ClassBuilder");var ww=HW,zw="***SensitiveInformation***",Fw=M(($,U)=>{for(let G of Object.keys($)){const W=$[G],X=M(async function(Y,L,Q){const w=new W(Y);if(typeof L==="function")this.send(w,L);else if(typeof Q==="function"){if(typeof L!=="object")throw new Error(`Expected http options but got ${typeof L}`);this.send(w,L||{},Q)}else return this.send(w,L)},"methodImpl"),Z=(G[0].toLowerCase()+G.slice(1)).replace(/Command$/,"");U.prototype[Z]=X}},"createAggregatedClient"),Jw=M(($)=>{switch($){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${$}"`)}},"parseBoolean"),Iw=M(($)=>{if($===null||$===void 0)return;if(typeof $==="number"){if($===0||$===1)i0.warn(D1(`Expected boolean, got ${typeof $}: ${$}`));if($===0)return!1;if($===1)return!0}if(typeof $==="string"){const U=$.toLowerCase();if(U==="false"||U==="true")i0.warn(D1(`Expected boolean, got ${typeof $}: ${$}`));if(U==="false")return!1;if(U==="true")return!0}if(typeof $==="boolean")return $;throw new TypeError(`Expected boolean, got ${typeof $}: ${$}`)},"expectBoolean"),m0=M(($)=>{if($===null||$===void 0)return;if(typeof $==="string"){const U=parseFloat($);if(!Number.isNaN(U)){if(String(U)!==String($))i0.warn(D1(`Expected number but observed string: ${$}`));return U}}if(typeof $==="number")return $;throw new TypeError(`Expected number, got ${typeof $}: ${$}`)},"expectNumber"),Kw=Math.ceil(340282346638528860000000000000000000000),k1=M(($)=>{const U=m0($);if(U!==void 0&&!Number.isNaN(U)&&U!==1/0&&U!==-1/0){if(Math.abs(U)>Kw)throw new TypeError(`Expected 32-bit float, got ${$}`)}return U},"expectFloat32"),n0=M(($)=>{if($===null||$===void 0)return;if(Number.isInteger($)&&!Number.isNaN($))return $;throw new TypeError(`Expected integer, got ${typeof $}: ${$}`)},"expectLong"),Mw=n0,XU=M(($)=>QU($,32),"expectInt32"),ZU=M(($)=>QU($,16),"expectShort"),YU=M(($)=>QU($,8),"expectByte"),QU=M(($,U)=>{const G=n0($);if(G!==void 0&&Rw(G,U)!==G)throw new TypeError(`Expected ${U}-bit integer, got ${$}`);return G},"expectSizedInt"),Rw=M(($,U)=>{switch(U){case 32:return Int32Array.of($)[0];case 16:return Int16Array.of($)[0];case 8:return Int8Array.of($)[0]}},"castInt"),Bw=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"),AW=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"),Vw=M(($)=>{if($===null||$===void 0)return;if(typeof $==="string")return $;if(["boolean","number","bigint"].includes(typeof $))return i0.warn(D1(`Expected string, got ${typeof $}: ${$}`)),String($);throw new TypeError(`Expected string, got ${typeof $}: ${$}`)},"expectString"),Hw=M(($)=>{if($===null||$===void 0)return;const U=AW($),G=Object.entries(U).filter(([,W])=>W!=null).map(([W])=>W);if(G.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(G.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${G} were not null.`);return U},"expectUnion"),wU=M(($)=>{if(typeof $=="string")return m0(N0($));return m0($)},"strictParseDouble"),Aw=wU,TW=M(($)=>{if(typeof $=="string")return k1(N0($));return k1($)},"strictParseFloat32"),Tw=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,N0=M(($)=>{const U=$.match(Tw);if(U===null||U[0].length!==$.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat($)},"parseNumber"),zU=M(($)=>{if(typeof $=="string")return EW($);return m0($)},"limitedParseDouble"),Ew=zU,Ow=zU,Cw=M(($)=>{if(typeof $=="string")return EW($);return k1($)},"limitedParseFloat32"),EW=M(($)=>{switch($){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${$}`)}},"parseFloatString"),OW=M(($)=>{if(typeof $==="string")return n0(N0($));return n0($)},"strictParseLong"),fw=OW,qw=M(($)=>{if(typeof $==="string")return XU(N0($));return XU($)},"strictParseInt32"),f0=M(($)=>{if(typeof $==="string")return ZU(N0($));return ZU($)},"strictParseShort"),CW=M(($)=>{if(typeof $==="string")return YU(N0($));return YU($)},"strictParseByte"),D1=M(($)=>{return String(new TypeError($).stack||$).split("\n").slice(0,5).filter((U)=>!U.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),i0={warn:console.warn},Nw=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],FU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];M(fW,"dateToUtcString");var jw=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Pw=M(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const U=jw.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");const[G,W,X,Z,Y,L,Q,w]=U,z=f0(q0(W)),F=o(X,"month",1,12),J=o(Z,"day",1,31);return s0(z,F,J,{hours:Y,minutes:L,seconds:Q,fractionalMilliseconds:w})},"parseRfc3339DateTime"),Sw=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),bw=M(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const U=Sw.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");const[G,W,X,Z,Y,L,Q,w,z]=U,F=f0(q0(W)),J=o(X,"month",1,12),I=o(Z,"day",1,31),K=s0(F,J,I,{hours:Y,minutes:L,seconds:Q,fractionalMilliseconds:w});if(z.toUpperCase()!="Z")K.setTime(K.getTime()-lw(z));return K},"parseRfc3339DateTimeWithOffset"),kw=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$/),Dw=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$/),hw=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})$/),xw=M(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let U=kw.exec($);if(U){const[G,W,X,Z,Y,L,Q,w]=U;return s0(f0(q0(Z)),GU(X),o(W,"day",1,31),{hours:Y,minutes:L,seconds:Q,fractionalMilliseconds:w})}if(U=Dw.exec($),U){const[G,W,X,Z,Y,L,Q,w]=U;return uw(s0(cw(Z),GU(X),o(W,"day",1,31),{hours:Y,minutes:L,seconds:Q,fractionalMilliseconds:w}))}if(U=hw.exec($),U){const[G,W,X,Z,Y,L,Q,w]=U;return s0(f0(q0(w)),GU(W),o(X.trimLeft(),"day",1,31),{hours:Z,minutes:Y,seconds:L,fractionalMilliseconds:Q})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),vw=M(($)=>{if($===null||$===void 0)return;let U;if(typeof $==="number")U=$;else if(typeof $==="string")U=wU($);else if(typeof $==="object"&&$.tag===1)U=$.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(U)||U===1/0||U===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(U*1000))},"parseEpochTimestamp"),s0=M(($,U,G,W)=>{const X=U-1;return gw($,X,G),new Date(Date.UTC($,X,G,o(W.hours,"hour",0,23),o(W.minutes,"minute",0,59),o(W.seconds,"seconds",0,60),pw(W.fractionalMilliseconds)))},"buildDate"),cw=M(($)=>{const U=new Date().getUTCFullYear(),G=Math.floor(U/100)*100+f0(q0($));if(G<U)return G+100;return G},"parseTwoDigitYear"),yw=1576800000000,uw=M(($)=>{if($.getTime()-new Date().getTime()>yw)return new Date(Date.UTC($.getUTCFullYear()-100,$.getUTCMonth(),$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),$.getUTCMilliseconds()));return $},"adjustRfc850Year"),GU=M(($)=>{const U=FU.indexOf($);if(U<0)throw new TypeError(`Invalid month: ${$}`);return U+1},"parseMonthByShortName"),_w=[31,28,31,30,31,30,31,31,30,31,30,31],gw=M(($,U,G)=>{let W=_w[U];if(U===1&&dw($))W=29;if(G>W)throw new TypeError(`Invalid day for ${FU[U]} in ${$}: ${G}`)},"validateDayOfMonth"),dw=M(($)=>{return $%4===0&&($%100!==0||$%400===0)},"isLeapYear"),o=M(($,U,G,W)=>{const X=CW(q0($));if(X<G||X>W)throw new TypeError(`${U} must be between ${G} and ${W}, inclusive`);return X},"parseDateValue"),pw=M(($)=>{if($===null||$===void 0)return 0;return TW("0."+$)*1000},"parseMilliseconds"),lw=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)),X=Number($.substring(4,6));return G*(W*60+X)*60*1000},"parseOffsetToMilliseconds"),q0=M(($)=>{let U=0;while(U<$.length-1&&$.charAt(U)==="0")U++;if(U===0)return $;return $.slice(U)},"stripLeadingZeroes"),qW=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(qW,"ServiceException");var sw=qW,NW=M(($,U={})=>{Object.entries(U).filter(([,W])=>W!==void 0).forEach(([W,X])=>{if($[W]==null||$[W]==="")$[W]=X});const G=$.message||$.Message||"UnknownError";return $.message=G,delete $.Message,$},"decorateServiceException"),jW=M(({output:$,parsedBody:U,exceptionCtor:G,errorCode:W})=>{const X=nw($),Z=X.httpStatusCode?X.httpStatusCode+"":void 0,Y=new G({name:(U==null?void 0:U.code)||(U==null?void 0:U.Code)||W||Z||"UnknownError",$fault:"client",$metadata:X});throw NW(Y,U)},"throwDefaultError"),mw=M(($)=>{return({output:U,parsedBody:G,errorCode:W})=>{jW({output:U,parsedBody:G,exceptionCtor:$,errorCode:W})}},"withBaseException"),nw=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"),iw=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"),JW=!1,rw=M(($)=>{if($&&!JW&&parseInt($.substring(1,$.indexOf(".")))<16)JW=!0},"emitWarningIfUnsupportedVersion"),ow=M(($)=>{const U=[];for(let G in WU.AlgorithmId){const W=WU.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"),aw=M(($)=>{const U={};return $.checksumAlgorithms().forEach((G)=>{U[G.algorithmId()]=G.checksumConstructor()}),U},"resolveChecksumRuntimeConfig"),tw=M(($)=>{let U=$.retryStrategy;return{setRetryStrategy(G){U=G},retryStrategy(){return U}}},"getRetryConfiguration"),ew=M(($)=>{const U={};return U.retryStrategy=$.retryStrategy(),U},"resolveRetryRuntimeConfig"),PW=M(($)=>{return{...ow($),...tw($)}},"getDefaultExtensionConfiguration"),$z=PW,Uz=M(($)=>{return{...aw($),...ew($)}},"resolveDefaultRuntimeConfig");M(h1,"extendedEncodeURIComponent");var Gz=M(($)=>Array.isArray($)?$:[$],"getArrayIfSingleItem"),SW=M(($)=>{for(let G in $)if($.hasOwnProperty(G)&&$[G]["#text"]!==void 0)$[G]=$[G]["#text"];else if(typeof $[G]==="object"&&$[G]!==null)$[G]=SW($[G]);return $},"getValueFromTextNode"),r0=M(function(){const $=Object.getPrototypeOf(this).constructor,G=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(G,$.prototype),G},"StringWrapper");r0.prototype=Object.create(String.prototype,{constructor:{value:r0,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(r0,String);var bW=class $ extends r0{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(U){if(U instanceof $)return U;else if(U instanceof String||typeof U==="string")return new $(U);return new $(JSON.stringify(U))}};M(bW,"LazyJsonString");var Wz=bW;M(JU,"map");var Xz=M(($)=>{const U={};for(let[G,W]of Object.entries($||{}))U[G]=[,W];return U},"convertMap"),Zz=M(($,U)=>{const G={};for(let W in U)kW(G,$,U,W);return G},"take"),Yz=M(($,U,G)=>{return JU($,Object.entries(G).reduce((W,[X,Z])=>{if(Array.isArray(Z))W[X]=Z;else if(typeof Z==="function")W[X]=[U,Z()];else W[X]=[U,Z];return W},{}))},"mapWithFilter"),kW=M(($,U,G,W)=>{if(U!==null){let Y=G[W];if(typeof Y==="function")Y=[,Y];const[L=Lz,Q=Qz,w=W]=Y;if(typeof L==="function"&&L(U[w])||typeof L!=="function"&&!!L)$[W]=Q(U[w]);return}let[X,Z]=G[W];if(typeof Z==="function"){let Y;const L=X===void 0&&(Y=Z())!=null,Q=typeof X==="function"&&!!X(void 0)||typeof X!=="function"&&!!X;if(L)$[W]=Y;else if(Q)$[W]=Z()}else{const Y=X===void 0&&Z!=null,L=typeof X==="function"&&!!X(Z)||typeof X!=="function"&&!!X;if(Y||L)$[W]=Z}},"applyInstruction"),Lz=M(($)=>$!=null,"nonNullish"),Qz=M(($)=>$,"pass"),wz=M(($,U,G,W,X,Z)=>{if(U!=null&&U[G]!==void 0){const Y=W();if(Y.length<=0)throw new Error("Empty value provided for input HTTP label: "+G+".");$=$.replace(X,Z?Y.split("/").map((L)=>h1(L)).join("/"):h1(Y))}else throw new Error("No value provided for input HTTP label: "+G+".");return $},"resolvedPath"),zz=M(($)=>{if($!==$)return"NaN";switch($){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return $}},"serializeFloat"),Fz=M(($)=>$.toISOString().replace(".000Z","Z"),"serializeDateTime"),LU=M(($)=>{if($==null)return{};if(Array.isArray($))return $.filter((U)=>U!=null).map(LU);if(typeof $==="object"){const U={};for(let G of Object.keys($)){if($[G]==null)continue;U[G]=LU($[G])}return U}return $},"_json");M(DW,"splitEvery")});var cW=R((xW)=>{Object.defineProperty(xW,"__esModule",{value:!0});xW.isStreamingPayload=void 0;var Jz=import.meta.require("stream"),Iz=($)=>($===null||$===void 0?void 0:$.body)instanceof Jz.Readable||typeof ReadableStream!=="undefined"&&($===null||$===void 0?void 0:$.body)instanceof ReadableStream;xW.isStreamingPayload=Iz});var UX=R((FM,$X)=>{var{defineProperty:v1,getOwnPropertyDescriptor:Kz,getOwnPropertyNames:Mz}=Object,Rz=Object.prototype.hasOwnProperty,P=($,U)=>v1($,"name",{value:U,configurable:!0}),Bz=($,U)=>{for(var G in U)v1($,G,{get:U[G],enumerable:!0})},Vz=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of Mz(U))if(!Rz.call($,X)&&X!==G)v1($,X,{get:()=>U[X],enumerable:!(W=Kz(U,X))||W.enumerable})}return $},Hz=($)=>Vz(v1({},"__esModule",{value:!0}),$),uW={};Bz(uW,{AdaptiveRetryStrategy:()=>Ez,CONFIG_MAX_ATTEMPTS:()=>KU,CONFIG_RETRY_MODE:()=>iW,ENV_MAX_ATTEMPTS:()=>IU,ENV_RETRY_MODE:()=>nW,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>Oz,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>fz,StandardRetryStrategy:()=>sW,defaultDelayDecider:()=>gW,defaultRetryDecider:()=>dW,getOmitRetryHeadersPlugin:()=>qz,getRetryAfterHint:()=>eW,getRetryPlugin:()=>kz,omitRetryHeadersMiddleware:()=>rW,omitRetryHeadersMiddlewareOptions:()=>oW,resolveRetryConfig:()=>Cz,retryMiddleware:()=>aW,retryMiddlewareOptions:()=>tW});$X.exports=Hz(uW);var P0=t(),_W=H$(),q=N4(),Az=P(($,U)=>{const G=$,W=(U==null?void 0:U.noRetryIncrement)??q.NO_RETRY_INCREMENT,X=(U==null?void 0:U.retryCost)??q.RETRY_COST,Z=(U==null?void 0:U.timeoutRetryCost)??q.TIMEOUT_RETRY_COST;let Y=$;const L=P((F)=>F.name==="TimeoutError"?Z:X,"getCapacityAmount"),Q=P((F)=>L(F)<=Y,"hasRetryTokens");return Object.freeze({hasRetryTokens:Q,retrieveRetryTokens:P((F)=>{if(!Q(F))throw new Error("No retry token available");const J=L(F);return Y-=J,J},"retrieveRetryTokens"),releaseRetryTokens:P((F)=>{Y+=F??W,Y=Math.min(Y,G)},"releaseRetryTokens")})},"getDefaultRetryQuota"),gW=P(($,U)=>Math.floor(Math.min(q.MAXIMUM_RETRY_DELAY,Math.random()*2**U*$)),"defaultDelayDecider"),X0=J0(),dW=P(($)=>{if(!$)return!1;return X0.isRetryableByTrait($)||X0.isClockSkewError($)||X0.isThrottlingError($)||X0.isTransientError($)},"defaultRetryDecider"),pW=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"),lW=class ${constructor(U,G){this.maxAttemptsProvider=U,this.mode=q.RETRY_MODES.STANDARD,this.retryDecider=(G==null?void 0:G.retryDecider)??dW,this.delayDecider=(G==null?void 0:G.delayDecider)??gW,this.retryQuota=(G==null?void 0:G.retryQuota)??Az(q.INITIAL_RETRY_TOKENS)}shouldRetry(U,G,W){return G<W&&this.retryDecider(U)&&this.retryQuota.hasRetryTokens(U)}async getMaxAttempts(){let U;try{U=await this.maxAttemptsProvider()}catch(G){U=q.DEFAULT_MAX_ATTEMPTS}return U}async retry(U,G,W){let X,Z=0,Y=0;const L=await this.getMaxAttempts(),{request:Q}=G;if(P0.HttpRequest.isInstance(Q))Q.headers[q.INVOCATION_ID_HEADER]=_W.v4();while(!0)try{if(P0.HttpRequest.isInstance(Q))Q.headers[q.REQUEST_HEADER]=`attempt=${Z+1}; max=${L}`;if(W==null?void 0:W.beforeRequest)await W.beforeRequest();const{response:w,output:z}=await U(G);if(W==null?void 0:W.afterRequest)W.afterRequest(w);return this.retryQuota.releaseRetryTokens(X),z.$metadata.attempts=Z+1,z.$metadata.totalRetryDelay=Y,{response:w,output:z}}catch(w){const z=pW(w);if(Z++,this.shouldRetry(z,Z,L)){X=this.retryQuota.retrieveRetryTokens(z);const F=this.delayDecider(X0.isThrottlingError(z)?q.THROTTLING_RETRY_DELAY_BASE:q.DEFAULT_RETRY_DELAY_BASE,Z),J=Tz(z.$response),I=Math.max(J||0,F);Y+=I,await new Promise((K)=>setTimeout(K,I));continue}if(!z.$metadata)z.$metadata={};throw z.$metadata.attempts=Z,z.$metadata.totalRetryDelay=Y,z}}};P(lW,"StandardRetryStrategy");var sW=lW,Tz=P(($)=>{if(!P0.HttpResponse.isInstance($))return;const U=Object.keys($.headers).find((Z)=>Z.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"),mW=class $ extends sW{constructor(U,G){const{rateLimiter:W,...X}=G??{};super(U,X);this.rateLimiter=W??new q.DefaultRateLimiter,this.mode=q.RETRY_MODES.ADAPTIVE}async retry(U,G){return super.retry(U,G,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(W)=>{this.rateLimiter.updateClientSendingRate(W)}})}};P(mW,"AdaptiveRetryStrategy");var Ez=mW,yW=r(),IU="AWS_MAX_ATTEMPTS",KU="max_attempts",Oz={environmentVariableSelector:($)=>{const U=$[IU];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Environment variable ${IU} mast be a number, got "${U}"`);return G},configFileSelector:($)=>{const U=$[KU];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Shared config file entry ${KU} mast be a number, got "${U}"`);return G},default:q.DEFAULT_MAX_ATTEMPTS},Cz=P(($)=>{const{retryStrategy:U}=$,G=yW.normalizeProvider($.maxAttempts??q.DEFAULT_MAX_ATTEMPTS);return{...$,maxAttempts:G,retryStrategy:async()=>{if(U)return U;if(await yW.normalizeProvider($.retryMode)()===q.RETRY_MODES.ADAPTIVE)return new q.AdaptiveRetryStrategy(G);return new q.StandardRetryStrategy(G)}}},"resolveRetryConfig"),nW="AWS_RETRY_MODE",iW="retry_mode",fz={environmentVariableSelector:($)=>$[nW],configFileSelector:($)=>$[iW],default:q.DEFAULT_RETRY_MODE},rW=P(()=>($)=>async(U)=>{const{request:G}=U;if(P0.HttpRequest.isInstance(G))delete G.headers[q.INVOCATION_ID_HEADER],delete G.headers[q.REQUEST_HEADER];return $(U)},"omitRetryHeadersMiddleware"),oW={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},qz=P(($)=>({applyToStack:(U)=>{U.addRelativeTo(rW(),oW)}}),"getOmitRetryHeadersPlugin"),Nz=j0(),jz=cW(),aW=P(($)=>(U,G)=>async(W)=>{var X;let Z=await $.retryStrategy();const Y=await $.maxAttempts();if(Pz(Z)){Z=Z;let L=await Z.acquireInitialRetryToken(G.partition_id),Q=new Error,w=0,z=0;const{request:F}=W,J=P0.HttpRequest.isInstance(F);if(J)F.headers[q.INVOCATION_ID_HEADER]=_W.v4();while(!0)try{if(J)F.headers[q.REQUEST_HEADER]=`attempt=${w+1}; max=${Y}`;const{response:I,output:K}=await U(W);return Z.recordSuccess(L),K.$metadata.attempts=w+1,K.$metadata.totalRetryDelay=z,{response:I,output:K}}catch(I){const K=Sz(I);if(Q=pW(I),J&&jz.isStreamingPayload(F))throw(X=G.logger instanceof Nz.NoOpLogger?console:G.logger)==null||X.warn("An error was encountered in a non-retryable streaming request."),Q;try{L=await Z.refreshRetryTokenForRetry(L,K)}catch(B){if(!Q.$metadata)Q.$metadata={};throw Q.$metadata.attempts=w+1,Q.$metadata.totalRetryDelay=z,Q}w=L.getRetryCount();const V=L.getRetryDelay();z+=V,await new Promise((B)=>setTimeout(B,V))}}else{if(Z=Z,Z==null?void 0:Z.mode)G.userAgent=[...G.userAgent||[],["cfg/retry-mode",Z.mode]];return Z.retry(U,W)}},"retryMiddleware"),Pz=P(($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined","isRetryStrategyV2"),Sz=P(($)=>{const U={error:$,errorType:bz($)},G=eW($.$response);if(G)U.retryAfterHint=G;return U},"getRetryErrorInfo"),bz=P(($)=>{if(X0.isThrottlingError($))return"THROTTLING";if(X0.isTransientError($))return"TRANSIENT";if(X0.isServerError($))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),tW={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},kz=P(($)=>({applyToStack:(U)=>{U.add(aW($),tW)}}),"getRetryPlugin"),eW=P(($)=>{if(!P0.HttpResponse.isInstance($))return;const U=Object.keys($.headers).find((Z)=>Z.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 RU=R((JM,AX)=>{function XX($){const U=new Map;for(let G of $)U.set(G.schemeId,G);return U}function RX($,U){return new VX($,U)}function HX($,U,G,W,X){return f(async function*Z(Y,L,...Q){let w=Y.startingToken||void 0,z=!0,F;while(z){if(L[G]=w,X)L[X]=L[X]??Y.pageSize;if(Y.client instanceof $)F=await GF(U,Y.client,L,...Q);else throw new Error(`Invalid client, expected instance of ${$.name}`);yield F;const J=w;w=WF(F,W),z=!!(w&&(!Y.stopOnSameToken||w!==J))}return},"paginateOperation")}var{defineProperty:y1,getOwnPropertyDescriptor:Dz,getOwnPropertyNames:hz}=Object,xz=Object.prototype.hasOwnProperty,f=($,U)=>y1($,"name",{value:U,configurable:!0}),vz=($,U)=>{for(var G in U)y1($,G,{get:U[G],enumerable:!0})},cz=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of hz(U))if(!xz.call($,X)&&X!==G)y1($,X,{get:()=>U[X],enumerable:!(W=Dz(U,X))||W.enumerable})}return $},yz=($)=>cz(y1({},"__esModule",{value:!0}),$),GX={};vz(GX,{DefaultIdentityProviderConfig:()=>nz,EXPIRATION_MS:()=>KX,HttpApiKeyAuthSigner:()=>iz,HttpBearerAuthSigner:()=>rz,NoAuthSigner:()=>oz,RequestBuilder:()=>VX,createIsIdentityExpiredFunction:()=>IX,createPaginator:()=>HX,doesIdentityRequireRefresh:()=>MX,getHttpAuthSchemeEndpointRuleSetPlugin:()=>_z,getHttpAuthSchemePlugin:()=>dz,getHttpSigningPlugin:()=>mz,getSmithyContext:()=>ez,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>ZX,httpAuthSchemeMiddleware:()=>MU,httpAuthSchemeMiddlewareOptions:()=>YX,httpSigningMiddleware:()=>LX,httpSigningMiddlewareOptions:()=>QX,isIdentityExpired:()=>az,memoizeIdentityProvider:()=>tz,normalizeProvider:()=>$F,requestBuilder:()=>RX});AX.exports=yz(GX);var WX=r();f(XX,"convertHttpAuthSchemesToMap");var MU=f(($,U)=>(G,W)=>async(X)=>{var Z;const Y=$.httpAuthSchemeProvider(await U.httpAuthSchemeParametersProvider($,W,X.input)),L=XX($.httpAuthSchemes),Q=WX.getSmithyContext(W),w=[];for(let z of Y){const F=L.get(z.schemeId);if(!F){w.push(`HttpAuthScheme \`${z.schemeId}\` was not enabled for this service.`);continue}const J=F.identityProvider(await U.identityProviderConfigProvider($));if(!J){w.push(`HttpAuthScheme \`${z.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:I={},signingProperties:K={}}=((Z=z.propertiesExtractor)==null?void 0:Z.call(z,$,W))||{};z.identityProperties=Object.assign(z.identityProperties||{},I),z.signingProperties=Object.assign(z.signingProperties||{},K),Q.selectedHttpAuthScheme={httpAuthOption:z,identity:await J(z.identityProperties),signer:F.signer};break}if(!Q.selectedHttpAuthScheme)throw new Error(w.join("\n"));return G(X)},"httpAuthSchemeMiddleware"),uz=$4(),ZX={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:uz.endpointMiddlewareOptions.name},_z=f(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G})=>({applyToStack:(W)=>{W.addRelativeTo(MU($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G}),ZX)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),gz=k$(),YX={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:gz.serializerMiddlewareOption.name},dz=f(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G})=>({applyToStack:(W)=>{W.addRelativeTo(MU($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G}),YX)}}),"getHttpAuthSchemePlugin"),u1=t(),pz=f(($)=>(U)=>{throw U},"defaultErrorHandler"),lz=f(($,U)=>{},"defaultSuccessHandler"),LX=f(($)=>(U,G)=>async(W)=>{if(!u1.HttpRequest.isInstance(W.request))return U(W);const Z=WX.getSmithyContext(G).selectedHttpAuthScheme;if(!Z)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:Y={}},identity:L,signer:Q}=Z,w=await U({...W,request:await Q.sign(W.request,L,Y)}).catch((Q.errorHandler||pz)(Y));return(Q.successHandler||lz)(w.response,Y),w},"httpSigningMiddleware"),sz=UX(),QX={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:sz.retryMiddlewareOptions.name},mz=f(($)=>({applyToStack:(U)=>{U.addRelativeTo(LX($),QX)}}),"getHttpSigningPlugin"),wX=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)}};f(wX,"DefaultIdentityProviderConfig");var nz=wX,c1=T0(),zX=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 X=u1.HttpRequest.clone(U);if(W.in===c1.HttpApiKeyAuthLocation.QUERY)X.query[W.name]=G.apiKey;else if(W.in===c1.HttpApiKeyAuthLocation.HEADER)X.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 X}};f(zX,"HttpApiKeyAuthSigner");var iz=zX,FX=class ${async sign(U,G,W){const X=u1.HttpRequest.clone(U);if(!G.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return X.headers.Authorization=`Bearer ${G.token}`,X}};f(FX,"HttpBearerAuthSigner");var rz=FX,JX=class ${async sign(U,G,W){return U}};f(JX,"NoAuthSigner");var oz=JX,IX=f(($)=>(U)=>MX(U)&&U.expiration.getTime()-Date.now()<$,"createIsIdentityExpiredFunction"),KX=300000,az=IX(KX),MX=f(($)=>$.expiration!==void 0,"doesIdentityRequireRefresh"),tz=f(($,U,G)=>{if($===void 0)return;const W=typeof $!=="function"?async()=>Promise.resolve($):$;let X,Z,Y,L=!1;const Q=f(async(w)=>{if(!Z)Z=W(w);try{X=await Z,Y=!0,L=!1}finally{Z=void 0}return X},"coalesceProvider");if(U===void 0)return async(w)=>{if(!Y||(w==null?void 0:w.forceRefresh))X=await Q(w);return X};return async(w)=>{if(!Y||(w==null?void 0:w.forceRefresh))X=await Q(w);if(L)return X;if(!G(X))return L=!0,X;if(U(X))return await Q(w),X;return X}},"memoizeIdentityProvider"),ez=f(($)=>$[c1.SMITHY_CONTEXT_KEY]||($[c1.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),$F=f(($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U},"normalizeProvider"),UF=j0();f(RX,"requestBuilder");var BX=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:X}=await this.context.endpoint();this.path=X;for(let Z of this.resolvePathStack)Z(this.path);return new u1.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,X){return this.resolvePathStack.push((Z)=>{this.path=UF.resolvedPath(Z,this.input,U,G,W,X)}),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}};f(BX,"RequestBuilder");var VX=BX,GF=f(async($,U,G,...W)=>{return await U.send(new $(G),...W)},"makePagedClientRequest");f(HX,"createPaginator");var WF=f(($,U)=>{let G=$;const W=U.split(".");for(let X of W){if(!G||typeof G!=="object")return;G=G[X]}return G},"get")});var FZ=R((KT,zZ)=>{var{defineProperty:W$,getOwnPropertyDescriptor:_F,getOwnPropertyNames:gF}=Object,dF=Object.prototype.hasOwnProperty,pF=($,U)=>W$($,"name",{value:U,configurable:!0}),lF=($,U)=>{for(var G in U)W$($,G,{get:U[G],enumerable:!0})},sF=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of gF(U))if(!dF.call($,X)&&X!==G)W$($,X,{get:()=>U[X],enumerable:!(W=_F(U,X))||W.enumerable})}return $},mF=($)=>sF(W$({},"__esModule",{value:!0}),$),wZ={};lF(wZ,{emitWarningIfUnsupportedVersion:()=>nF});zZ.exports=mF(wZ);var QZ=!1,nF=pF(($)=>{if($&&!QZ&&parseInt($.substring(1,$.indexOf(".")))<18)QZ=!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 bZ=R((MT,SZ)=>{function gU($){for(let U=0;U<8;U++)$[U]^=255;for(let U=7;U>-1;U--)if($[U]++,$[U]!==0)break}var{defineProperty:w$,getOwnPropertyDescriptor:iF,getOwnPropertyNames:rF}=Object,oF=Object.prototype.hasOwnProperty,b=($,U)=>w$($,"name",{value:U,configurable:!0}),aF=($,U)=>{for(var G in U)w$($,G,{get:U[G],enumerable:!0})},tF=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of rF(U))if(!oF.call($,X)&&X!==G)w$($,X,{get:()=>U[X],enumerable:!(W=iF(U,X))||W.enumerable})}return $},eF=($)=>tF(w$({},"__esModule",{value:!0}),$),RZ={};aF(RZ,{SignatureV4:()=>fJ,clearCredentialCache:()=>RJ,createScope:()=>Y$,getCanonicalHeaders:()=>_U,getCanonicalQuery:()=>CZ,getPayloadHash:()=>Q$,getSigningKey:()=>OZ,moveHeadersToQuery:()=>jZ,prepareRequest:()=>dU});SZ.exports=eF(RZ);var JZ=r(),cU=W0(),$J="X-Amz-Algorithm",UJ="X-Amz-Credential",BZ="X-Amz-Date",GJ="X-Amz-SignedHeaders",WJ="X-Amz-Expires",VZ="X-Amz-Signature",HZ="X-Amz-Security-Token",AZ="authorization",TZ=BZ.toLowerCase(),XJ="date",ZJ=[AZ,TZ,XJ],YJ=VZ.toLowerCase(),uU="x-amz-content-sha256",LJ=HZ.toLowerCase(),QJ={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},wJ=/^proxy-/,zJ=/^sec-/,yU="AWS4-HMAC-SHA256",FJ="AWS4-HMAC-SHA256-PAYLOAD",JJ="UNSIGNED-PAYLOAD",IJ=50,EZ="aws4_request",KJ=604800,L0=y6(),MJ=W0(),h0={},Z$=[],Y$=b(($,U,G)=>`${$}/${U}/${G}/${EZ}`,"createScope"),OZ=b(async($,U,G,W,X)=>{const Z=await IZ($,U.secretAccessKey,U.accessKeyId),Y=`${G}:${W}:${X}:${L0.toHex(Z)}:${U.sessionToken}`;if(Y in h0)return h0[Y];Z$.push(Y);while(Z$.length>IJ)delete h0[Z$.shift()];let L=`AWS4${U.secretAccessKey}`;for(let Q of[G,W,X,EZ])L=await IZ($,L,Q);return h0[Y]=L},"getSigningKey"),RJ=b(()=>{Z$.length=0,Object.keys(h0).forEach(($)=>{delete h0[$]})},"clearCredentialCache"),IZ=b(($,U,G)=>{const W=new $(U);return W.update(MJ.toUint8Array(G)),W.digest()},"hmac"),_U=b(({headers:$},U,G)=>{const W={};for(let X of Object.keys($).sort()){if($[X]==null)continue;const Z=X.toLowerCase();if(Z in QJ||(U==null?void 0:U.has(Z))||wJ.test(Z)||zJ.test(Z)){if(!G||G&&!G.has(Z))continue}W[Z]=$[X].trim().replace(/\s+/g," ")}return W},"getCanonicalHeaders"),L$=s$(),CZ=b(({query:$={}})=>{const U=[],G={};for(let W of Object.keys($)){if(W.toLowerCase()===YJ)continue;const X=L$.escapeUri(W);U.push(X);const Z=$[W];if(typeof Z==="string")G[X]=`${X}=${L$.escapeUri(Z)}`;else if(Array.isArray(Z))G[X]=Z.slice(0).reduce((Y,L)=>Y.concat([`${X}=${L$.escapeUri(L)}`]),[]).sort().join("&")}return U.sort().map((W)=>G[W]).filter((W)=>W).join("&")},"getCanonicalQuery"),BJ=u$(),VJ=W0(),Q$=b(async({headers:$,body:U},G)=>{for(let W of Object.keys($))if(W.toLowerCase()===uU)return $[W];if(U==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof U==="string"||ArrayBuffer.isView(U)||BJ.isArrayBuffer(U)){const W=new G;return W.update(VJ.toUint8Array(U)),L0.toHex(await W.digest())}return JJ},"getPayloadHash"),KZ=W0(),fZ=class ${format(U){const G=[];for(let Z of Object.keys(U)){const Y=KZ.fromUtf8(Z);G.push(Uint8Array.from([Y.byteLength]),Y,this.formatHeaderValue(U[Z]))}const W=new Uint8Array(G.reduce((Z,Y)=>Z+Y.byteLength,0));let X=0;for(let Z of G)W.set(Z,X),X+=Z.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 X=new Uint8Array(9);return X[0]=5,X.set(U.value.bytes,1),X;case"binary":const Z=new DataView(new ArrayBuffer(3+U.value.byteLength));Z.setUint8(0,6),Z.setUint16(1,U.value.byteLength,!1);const Y=new Uint8Array(Z.buffer);return Y.set(U.value,3),Y;case"string":const L=KZ.fromUtf8(U.value),Q=new DataView(new ArrayBuffer(3+L.byteLength));Q.setUint8(0,7),Q.setUint16(1,L.byteLength,!1);const w=new Uint8Array(Q.buffer);return w.set(L,3),w;case"timestamp":const z=new Uint8Array(9);return z[0]=8,z.set(TJ.fromNumber(U.value.valueOf()).bytes,1),z;case"uuid":if(!AJ.test(U.value))throw new Error(`Invalid UUID received: ${U.value}`);const F=new Uint8Array(17);return F[0]=9,F.set(L0.fromHex(U.value.replace(/\-/g,"")),1),F}}};b(fZ,"HeaderFormatter");var HJ=fZ,AJ=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,qZ=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,X=Math.abs(Math.round(U));W>-1&&X>0;W--,X/=256)G[W]=X;if(U<0)gU(G);return new $(G)}valueOf(){const U=this.bytes.slice(0),G=U[0]&128;if(G)gU(U);return parseInt(L0.toHex(U),16)*(G?-1:1)}toString(){return String(this.valueOf())}};b(qZ,"Int64");var TJ=qZ;b(gU,"negate");var EJ=b(($,U)=>{$=$.toLowerCase();for(let G of Object.keys(U))if($===G.toLowerCase())return!0;return!1},"hasHeader"),NZ=t(),jZ=b(($,U={})=>{var G;const{headers:W,query:X={}}=NZ.HttpRequest.clone($);for(let Z of Object.keys(W)){const Y=Z.toLowerCase();if(Y.slice(0,6)==="x-amz-"&&!((G=U.unhoistableHeaders)==null?void 0:G.has(Y)))X[Z]=W[Z],delete W[Z]}return{...$,headers:W,query:X}},"moveHeadersToQuery"),dU=b(($)=>{$=NZ.HttpRequest.clone($);for(let U of Object.keys($.headers))if(ZJ.indexOf(U.toLowerCase())>-1)delete $.headers[U];return $},"prepareRequest"),OJ=b(($)=>CJ($).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),CJ=b(($)=>{if(typeof $==="number")return new Date($*1000);if(typeof $==="string"){if(Number($))return new Date(Number($)*1000);return new Date($)}return $},"toDate"),PZ=class ${constructor({applyChecksum:U,credentials:G,region:W,service:X,sha256:Z,uriEscapePath:Y=!0}){this.headerFormatter=new HJ,this.service=X,this.sha256=Z,this.uriEscapePath=Y,this.applyChecksum=typeof U==="boolean"?U:!0,this.regionProvider=JZ.normalizeProvider(W),this.credentialProvider=JZ.normalizeProvider(G)}async presign(U,G={}){const{signingDate:W=new Date,expiresIn:X=3600,unsignableHeaders:Z,unhoistableHeaders:Y,signableHeaders:L,signingRegion:Q,signingService:w}=G,z=await this.credentialProvider();this.validateResolvedCredentials(z);const F=Q??await this.regionProvider(),{longDate:J,shortDate:I}=X$(W);if(X>KJ)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const K=Y$(I,F,w??this.service),V=jZ(dU(U),{unhoistableHeaders:Y});if(z.sessionToken)V.query[HZ]=z.sessionToken;V.query[$J]=yU,V.query[UJ]=`${z.accessKeyId}/${K}`,V.query[BZ]=J,V.query[WJ]=X.toString(10);const B=_U(V,Z,L);return V.query[GJ]=MZ(B),V.query[VZ]=await this.getSignature(J,K,this.getSigningKey(z,F,I,w),this.createCanonicalRequest(V,B,await Q$(U,this.sha256))),V}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:X,signingRegion:Z,signingService:Y}){const L=Z??await this.regionProvider(),{shortDate:Q,longDate:w}=X$(W),z=Y$(Q,L,Y??this.service),F=await Q$({headers:{},body:G},this.sha256),J=new this.sha256;J.update(U);const I=L0.toHex(await J.digest()),K=[FJ,w,z,X,I,F].join("\n");return this.signString(K,{signingDate:W,signingRegion:L,signingService:Y})}async signMessage(U,{signingDate:G=new Date,signingRegion:W,signingService:X}){return this.signEvent({headers:this.headerFormatter.format(U.message.headers),payload:U.message.body},{signingDate:G,signingRegion:W,signingService:X,priorSignature:U.priorSignature}).then((Y)=>{return{message:U.message,signature:Y}})}async signString(U,{signingDate:G=new Date,signingRegion:W,signingService:X}={}){const Z=await this.credentialProvider();this.validateResolvedCredentials(Z);const Y=W??await this.regionProvider(),{shortDate:L}=X$(G),Q=new this.sha256(await this.getSigningKey(Z,Y,L,X));return Q.update(cU.toUint8Array(U)),L0.toHex(await Q.digest())}async signRequest(U,{signingDate:G=new Date,signableHeaders:W,unsignableHeaders:X,signingRegion:Z,signingService:Y}={}){const L=await this.credentialProvider();this.validateResolvedCredentials(L);const Q=Z??await this.regionProvider(),w=dU(U),{longDate:z,shortDate:F}=X$(G),J=Y$(F,Q,Y??this.service);if(w.headers[TZ]=z,L.sessionToken)w.headers[LJ]=L.sessionToken;const I=await Q$(w,this.sha256);if(!EJ(uU,w.headers)&&this.applyChecksum)w.headers[uU]=I;const K=_U(w,X,W),V=await this.getSignature(z,J,this.getSigningKey(L,Q,F,Y),this.createCanonicalRequest(w,K,I));return w.headers[AZ]=`${yU} Credential=${L.accessKeyId}/${J}, SignedHeaders=${MZ(K)}, Signature=${V}`,w}createCanonicalRequest(U,G,W){const X=Object.keys(G).sort();return`${U.method}
|
|
10
|
-
${this.getCanonicalPath(U)}
|
|
11
|
-
${CZ(U)}
|
|
12
|
-
${X.map((Z)=>`${Z}:${G[Z]}`).join("\n")}
|
|
13
|
-
|
|
14
|
-
${X.join(";")}
|
|
15
|
-
${W}`}async createStringToSign(U,G,W){const X=new this.sha256;X.update(cU.toUint8Array(W));const Z=await X.digest();return`${yU}
|
|
16
|
-
${U}
|
|
17
|
-
${G}
|
|
18
|
-
${L0.toHex(Z)}`}getCanonicalPath({path:U}){if(this.uriEscapePath){const G=[];for(let Z of U.split("/")){if((Z==null?void 0:Z.length)===0)continue;if(Z===".")continue;if(Z==="..")G.pop();else G.push(Z)}const W=`${(U==null?void 0:U.startsWith("/"))?"/":""}${G.join("/")}${G.length>0&&(U==null?void 0:U.endsWith("/"))?"/":""}`;return L$.escapeUri(W).replace(/%2F/g,"/")}return U}async getSignature(U,G,W,X){const Z=await this.createStringToSign(U,G,X),Y=new this.sha256(await W);return Y.update(cU.toUint8Array(Z)),L0.toHex(await Y.digest())}getSigningKey(U,G,W,X){return OZ(this.sha256,U,W,G,X||this.service)}validateResolvedCredentials(U){if(typeof U!=="object"||typeof U.accessKeyId!=="string"||typeof U.secretAccessKey!=="string")throw new Error("Resolved credential object is not valid")}};b(PZ,"SignatureV4");var fJ=PZ,X$=b(($)=>{const U=OJ($).replace(/[\-:]/g,"");return{longDate:U,shortDate:U.slice(0,8)}},"formatDate"),MZ=b(($)=>Object.keys($).sort().join(";"),"getCanonicalHeaderList")});var gZ=R((RT,_Z)=>{var{defineProperty:z$,getOwnPropertyDescriptor:qJ,getOwnPropertyNames:NJ}=Object,jJ=Object.prototype.hasOwnProperty,x=($,U)=>z$($,"name",{value:U,configurable:!0}),PJ=($,U)=>{for(var G in U)z$($,G,{get:U[G],enumerable:!0})},SJ=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of NJ(U))if(!jJ.call($,X)&&X!==G)z$($,X,{get:()=>U[X],enumerable:!(W=qJ(U,X))||W.enumerable})}return $},bJ=($)=>SJ(z$({},"__esModule",{value:!0}),$),vZ={};PJ(vZ,{AWSSDKSigV4Signer:()=>xJ,AwsSdkSigV4ASigner:()=>cJ,AwsSdkSigV4Signer:()=>sU,NODE_SIGV4A_CONFIG_OPTIONS:()=>_J,resolveAWSSDKSigV4Config:()=>gJ,resolveAwsSdkSigV4AConfig:()=>uJ,resolveAwsSdkSigV4Config:()=>uZ,validateSigningProperties:()=>lU});_Z.exports=bJ(vZ);var kJ=t(),DJ=t(),kZ=x(($)=>{var U,G;return DJ.HttpResponse.isInstance($)?((U=$.headers)==null?void 0:U.date)??((G=$.headers)==null?void 0:G.Date):void 0},"getDateHeader"),pU=x(($)=>new Date(Date.now()+$),"getSkewCorrectedDate"),hJ=x(($,U)=>Math.abs(pU(U).getTime()-$)>=300000,"isClockSkewed"),DZ=x(($,U)=>{const G=Date.parse($);if(hJ(G,U))return G-Date.now();return U},"getUpdatedSystemClockOffset"),$1=x(($,U)=>{if(!U)throw new Error(`Property \`${$}\` is not resolved for AWS SDK SigV4Auth`);return U},"throwSigningPropertyError"),lU=x(async($)=>{var U,G,W;const X=$1("context",$.context),Z=$1("config",$.config),Y=(W=(G=(U=X.endpointV2)==null?void 0:U.properties)==null?void 0:G.authSchemes)==null?void 0:W[0],Q=await $1("signer",Z.signer)(Y),w=$==null?void 0:$.signingRegion,z=$==null?void 0:$.signingRegionSet,F=$==null?void 0:$.signingName;return{config:Z,signer:Q,signingRegion:w,signingRegionSet:z,signingName:F}},"validateSigningProperties"),cZ=class ${async sign(U,G,W){var X;if(!kJ.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const Z=await lU(W),{config:Y,signer:L}=Z;let{signingRegion:Q,signingName:w}=Z;const z=W.context;if(((X=z==null?void 0:z.authSchemes)==null?void 0:X.length)??0>1){const[J,I]=z.authSchemes;if((J==null?void 0:J.name)==="sigv4a"&&(I==null?void 0:I.name)==="sigv4")Q=(I==null?void 0:I.signingRegion)??Q,w=(I==null?void 0:I.signingName)??w}return await L.sign(U,{signingDate:pU(Y.systemClockOffset),signingRegion:Q,signingService:w})}errorHandler(U){return(G)=>{const W=G.ServerTime??kZ(G.$response);if(W){const X=$1("config",U.config),Z=X.systemClockOffset;if(X.systemClockOffset=DZ(W,X.systemClockOffset),X.systemClockOffset!==Z&&G.$metadata)G.$metadata.clockSkewCorrected=!0}throw G}}successHandler(U,G){const W=kZ(U);if(W){const X=$1("config",G.config);X.systemClockOffset=DZ(W,X.systemClockOffset)}}};x(cZ,"AwsSdkSigV4Signer");var sU=cZ,xJ=sU,vJ=t(),yZ=class $ extends sU{async sign(U,G,W){var X;if(!vJ.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:Z,signer:Y,signingRegion:L,signingRegionSet:Q,signingName:w}=await lU(W),F=(await((X=Z.sigv4aSigningRegionSet)==null?void 0:X.call(Z))??Q??[L]).join(",");return await Y.sign(U,{signingDate:pU(Z.systemClockOffset),signingRegion:F,signingService:w})}};x(yZ,"AwsSdkSigV4ASigner");var cJ=yZ,yJ=RU(),hZ=A$(),uJ=x(($)=>{return $.sigv4aSigningRegionSet=yJ.normalizeProvider($.sigv4aSigningRegionSet),$},"resolveAwsSdkSigV4AConfig"),_J={environmentVariableSelector($){if($.AWS_SIGV4A_SIGNING_REGION_SET)return $.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((U)=>U.trim());throw new hZ.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 hZ.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},H0=RU(),xZ=bZ(),uZ=x(($)=>{let U;if($.credentials)U=H0.memoizeIdentityProvider($.credentials,H0.isIdentityExpired,H0.doesIdentityRequireRefresh);if(!U)if($.credentialDefaultProvider)U=H0.normalizeProvider($.credentialDefaultProvider(Object.assign({},$,{parentClientConfig:$})));else U=x(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");const{signingEscapePath:G=!0,systemClockOffset:W=$.systemClockOffset||0,sha256:X}=$;let Z;if($.signer)Z=H0.normalizeProvider($.signer);else if($.regionInfoProvider)Z=x(()=>H0.normalizeProvider($.region)().then(async(Y)=>[await $.regionInfoProvider(Y,{useFipsEndpoint:await $.useFipsEndpoint(),useDualstackEndpoint:await $.useDualstackEndpoint()})||{},Y]).then(([Y,L])=>{const{signingRegion:Q,signingService:w}=Y;$.signingRegion=$.signingRegion||Q||L,$.signingName=$.signingName||w||$.serviceId;const z={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:X,uriEscapePath:G};return new($.signerConstructor||xZ.SignatureV4)(z)}),"signer");else Z=x(async(Y)=>{Y=Object.assign({},{name:"sigv4",signingName:$.signingName||$.defaultSigningName,signingRegion:await H0.normalizeProvider($.region)(),properties:{}},Y);const{signingRegion:L,signingName:Q}=Y;$.signingRegion=$.signingRegion||L,$.signingName=$.signingName||Q||$.serviceId;const w={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:X,uriEscapePath:G};return new($.signerConstructor||xZ.SignatureV4)(w)},"signer");return{...$,systemClockOffset:W,signingEscapePath:G,credentials:U,signer:Z}},"resolveAwsSdkSigV4Config"),gJ=uZ});var F$=R((mJ)=>{var dJ=":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",dZ="[: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]["+dJ+"]*",pJ=new RegExp("^"+dZ+"$"),lJ=function($,U){const G=[];let W=U.exec($);while(W){const X=[];X.startIndex=U.lastIndex-W[0].length;const Z=W.length;for(let Y=0;Y<Z;Y++)X.push(W[Y]);G.push(X),W=U.exec($)}return G},sJ=function($){const U=pJ.exec($);return!(U===null||typeof U==="undefined")};mJ.isExist=function($){return typeof $!=="undefined"};mJ.isEmptyObject=function($){return Object.keys($).length===0};mJ.merge=function($,U,G){if(U){const W=Object.keys(U),X=W.length;for(let Z=0;Z<X;Z++)if(G==="strict")$[W[Z]]=[U[W[Z]]];else $[W[Z]]=U[W[Z]]}};mJ.getValue=function($){if(mJ.isExist($))return $;else return""};mJ.isName=sJ;mJ.getAllMatches=lJ;mJ.nameRegexp=dZ});var nU=R((Q3)=>{function lZ($){return $===" "||$==="\t"||$==="\n"||$==="\r"}function sZ($,U){const G=U;for(;U<$.length;U++)if($[U]=="?"||$[U]==" "){const W=$.substr(G,U-G);if(U>5&&W==="xml")return j("InvalidXml","XML declaration allowed only at the start of the document.",D($,U));else if($[U]=="?"&&$[U+1]==">"){U++;break}else continue}return U}function mZ($,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}function G3($,U){let G="",W="",X=!1;for(;U<$.length;U++){if($[U]===$3||$[U]===U3)if(W==="")W=$[U];else if(W!==$[U]);else W="";else if($[U]===">"){if(W===""){X=!0;break}}G+=$[U]}if(W!=="")return!1;return{value:G,index:U,tagClosed:X}}function nZ($,U){const G=mU.getAllMatches($,W3),W={};for(let X=0;X<G.length;X++){if(G[X][1].length===0)return j("InvalidAttr","Attribute '"+G[X][2]+"' has no space in starting.",U1(G[X]));else if(G[X][3]!==void 0&&G[X][4]===void 0)return j("InvalidAttr","Attribute '"+G[X][2]+"' is without value.",U1(G[X]));else if(G[X][3]===void 0&&!U.allowBooleanAttributes)return j("InvalidAttr","boolean attribute '"+G[X][2]+"' is not allowed.",U1(G[X]));const Z=G[X][2];if(!Y3(Z))return j("InvalidAttr","Attribute '"+Z+"' is an invalid name.",U1(G[X]));if(!W.hasOwnProperty(Z))W[Z]=1;else return j("InvalidAttr","Attribute '"+Z+"' is repeated.",U1(G[X]))}return!0}function X3($,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}function Z3($,U){if(U++,$[U]===";")return-1;if($[U]==="#")return U++,X3($,U);let G=0;for(;U<$.length;U++,G++){if($[U].match(/\w/)&&G<20)continue;if($[U]===";")break;return-1}return U}function j($,U,G){return{err:{code:$,msg:U,line:G.line||G,col:G.col}}}function Y3($){return mU.isName($)}function L3($){return mU.isName($)}function D($,U){const G=$.substring(0,U).split(/\r?\n/);return{line:G.length,col:G[G.length-1].length+1}}function U1($){return $.startIndex+$[1].length}var mU=F$(),eJ={allowBooleanAttributes:!1,unpairedTags:[]};Q3.validate=function($,U){U=Object.assign({},eJ,U);const G=[];let W=!1,X=!1;if($[0]==="\uFEFF")$=$.substr(1);for(let Z=0;Z<$.length;Z++)if($[Z]==="<"&&$[Z+1]==="?"){if(Z+=2,Z=sZ($,Z),Z.err)return Z}else if($[Z]==="<"){let Y=Z;if(Z++,$[Z]==="!"){Z=mZ($,Z);continue}else{let L=!1;if($[Z]==="/")L=!0,Z++;let Q="";for(;Z<$.length&&$[Z]!==">"&&$[Z]!==" "&&$[Z]!=="\t"&&$[Z]!=="\n"&&$[Z]!=="\r";Z++)Q+=$[Z];if(Q=Q.trim(),Q[Q.length-1]==="/")Q=Q.substring(0,Q.length-1),Z--;if(!L3(Q)){let F;if(Q.trim().length===0)F="Invalid space after '<'.";else F="Tag '"+Q+"' is an invalid name.";return j("InvalidTag",F,D($,Z))}const w=G3($,Z);if(w===!1)return j("InvalidAttr","Attributes for '"+Q+"' have open quote.",D($,Z));let z=w.value;if(Z=w.index,z[z.length-1]==="/"){const F=Z-z.length;z=z.substring(0,z.length-1);const J=nZ(z,U);if(J===!0)W=!0;else return j(J.err.code,J.err.msg,D($,F+J.err.line))}else if(L)if(!w.tagClosed)return j("InvalidTag","Closing tag '"+Q+"' doesn't have proper closing.",D($,Z));else if(z.trim().length>0)return j("InvalidTag","Closing tag '"+Q+"' can't have attributes or invalid starting.",D($,Y));else if(G.length===0)return j("InvalidTag","Closing tag '"+Q+"' has not been opened.",D($,Y));else{const F=G.pop();if(Q!==F.tagName){let J=D($,F.tagStartPos);return j("InvalidTag","Expected closing tag '"+F.tagName+"' (opened in line "+J.line+", col "+J.col+") instead of closing tag '"+Q+"'.",D($,Y))}if(G.length==0)X=!0}else{const F=nZ(z,U);if(F!==!0)return j(F.err.code,F.err.msg,D($,Z-z.length+F.err.line));if(X===!0)return j("InvalidXml","Multiple possible root nodes found.",D($,Z));else if(U.unpairedTags.indexOf(Q)!==-1);else G.push({tagName:Q,tagStartPos:Y});W=!0}for(Z++;Z<$.length;Z++)if($[Z]==="<")if($[Z+1]==="!"){Z++,Z=mZ($,Z);continue}else if($[Z+1]==="?"){if(Z=sZ($,++Z),Z.err)return Z}else break;else if($[Z]==="&"){const F=Z3($,Z);if(F==-1)return j("InvalidChar","char '&' is not expected.",D($,Z));Z=F}else if(X===!0&&!lZ($[Z]))return j("InvalidXml","Extra text at the end",D($,Z));if($[Z]==="<")Z--}}else{if(lZ($[Z]))continue;return j("InvalidChar","char '"+$[Z]+"' is not expected.",D($,Z))}if(!W)return j("InvalidXml","Start tag expected.",1);else if(G.length==1)return j("InvalidTag","Unclosed tag '"+G[0].tagName+"'.",D($,G[0].tagStartPos));else if(G.length>0)return j("InvalidXml","Invalid '"+JSON.stringify(G.map((Z)=>Z.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var $3='"',U3="'",W3=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var rZ=R((F3)=>{var iZ={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 $}},z3=function($){return Object.assign({},iZ,$)};F3.buildOptions=z3;F3.defaultOptions=iZ});var tZ=R((AT,aZ)=>{class oZ{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})}}aZ.exports=oZ});var $Y=R((TT,eZ)=>{function M3($,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,X=!1,Z=!1,Y="";for(;U<$.length;U++)if($[U]==="<"&&!Z){if(X&&V3($,U)){if(U+=7,[entityName,val,U]=R3($,U+1),val.indexOf("&")===-1)G[E3(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(X&&H3($,U))U+=8;else if(X&&A3($,U))U+=8;else if(X&&T3($,U))U+=9;else if(B3)Z=!0;else throw new Error("Invalid DOCTYPE");W++,Y=""}else if($[U]===">"){if(Z){if($[U-1]==="-"&&$[U-2]==="-")Z=!1,W--}else W--;if(W===0)break}else if($[U]==="[")X=!0;else Y+=$[U];if(W!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:G,i:U}}function R3($,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 X="";for(;U<$.length&&$[U]!==W;U++)X+=$[U];return[G,X,U]}function B3($,U){if($[U+1]==="!"&&$[U+2]==="-"&&$[U+3]==="-")return!0;return!1}function V3($,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}function H3($,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}function A3($,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}function T3($,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}function E3($){if(K3.isName($))return $;else throw new Error(`Invalid entity name ${$}`)}var K3=F$();eZ.exports=M3});var GY=R((ET,UY)=>{function q3($,U={}){if(U=Object.assign({},f3,U),!$||typeof $!=="string")return $;let G=$.trim();if(U.skipLike!==void 0&&U.skipLike.test(G))return $;else if(U.hex&&O3.test(G))return Number.parseInt(G,16);else{const W=C3.exec(G);if(W){const X=W[1],Z=W[2];let Y=N3(W[3]);const L=W[4]||W[6];if(!U.leadingZeros&&Z.length>0&&X&&G[2]!==".")return $;else if(!U.leadingZeros&&Z.length>0&&!X&&G[1]!==".")return $;else{const Q=Number(G),w=""+Q;if(w.search(/[eE]/)!==-1)if(U.eNotation)return Q;else return $;else if(L)if(U.eNotation)return Q;else return $;else if(G.indexOf(".")!==-1)if(w==="0"&&Y==="")return Q;else if(w===Y)return Q;else if(X&&w==="-"+Y)return Q;else return $;if(Z)if(Y===w)return Q;else if(X+Y===w)return Q;else return $;if(G===w)return Q;else if(G===X+w)return Q;return $}}else return $}}function N3($){if($&&$.indexOf(".")!==-1){if($=$.replace(/0+$/,""),$===".")$="0";else if($[0]===".")$="0"+$;else if($[$.length-1]===".")$=$.substr(0,$.length-1);return $}return $}var O3=/^[-+]?0x[a-fA-F0-9]+$/,C3=/^([\-\+])?(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 f3={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};UY.exports=q3});var YY=R((OT,ZY)=>{function S3($){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]}}}function b3($,U,G,W,X,Z,Y){if($!==void 0){if(this.options.trimValues&&!W)$=$.trim();if($.length>0){if(!Y)$=this.replaceEntitiesValue($);const L=this.options.tagValueProcessor(U,$,G,X,Z);if(L===null||L===void 0)return $;else if(typeof L!==typeof $||L!==$)return L;else if(this.options.trimValues)return rU($,this.options.parseTagValue,this.options.numberParseOptions);else if($.trim()===$)return rU($,this.options.parseTagValue,this.options.numberParseOptions);else return $}}}function k3($){if(this.options.removeNSPrefix){const U=$.split(":"),G=$.charAt(0)==="/"?"/":"";if(U[0]==="xmlns")return"";if(U.length===2)$=G+U[1]}return $}function h3($,U,G){if(!this.options.ignoreAttributes&&typeof $==="string"){const W=WY.getAllMatches($,D3),X=W.length,Z={};for(let Y=0;Y<X;Y++){const L=this.resolveNameSpace(W[Y][1]);let Q=W[Y][4],w=this.options.attributeNamePrefix+L;if(L.length){if(this.options.transformAttributeName)w=this.options.transformAttributeName(w);if(w==="__proto__")w="#__proto__";if(Q!==void 0){if(this.options.trimValues)Q=Q.trim();Q=this.replaceEntitiesValue(Q);const z=this.options.attributeValueProcessor(L,Q,U);if(z===null||z===void 0)Z[w]=Q;else if(typeof z!==typeof Q||z!==Q)Z[w]=z;else Z[w]=rU(Q,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)Z[w]=!0}}if(!Object.keys(Z).length)return;if(this.options.attributesGroupName){const Y={};return Y[this.options.attributesGroupName]=Z,Y}return Z}}function v3($,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)}function y3($,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 $}function u3($,U,G){const W="*."+G;for(let X in $){const Z=$[X];if(W===Z||U===Z)return!0}return!1}function _3($,U,G=">"){let W,X="";for(let Z=U;Z<$.length;Z++){let Y=$[Z];if(W){if(Y===W)W=""}else if(Y==='"'||Y==="'")W=Y;else if(Y===G[0])if(G[1]){if($[Z+1]===G[1])return{data:X,index:Z}}else return{data:X,index:Z};else if(Y==="\t")Y=" ";X+=Y}}function A0($,U,G,W){const X=$.indexOf(U,G);if(X===-1)throw new Error(W);else return X+U.length-1}function iU($,U,G,W=">"){const X=_3($,U+1,W);if(!X)return;let Z=X.data;const Y=X.index,L=Z.search(/\s/);let Q=Z,w=!0;if(L!==-1)Q=Z.substring(0,L),Z=Z.substring(L+1).trimStart();const z=Q;if(G){const F=Q.indexOf(":");if(F!==-1)Q=Q.substr(F+1),w=Q!==X.data.substr(F+1)}return{tagName:Q,tagExp:Z,closeIndex:Y,attrExpPresent:w,rawTagName:z}}function g3($,U,G){const W=G;let X=1;for(;G<$.length;G++)if($[G]==="<")if($[G+1]==="/"){const Z=A0($,">",G,`${U} is not closed`);if($.substring(G+2,Z).trim()===U){if(X--,X===0)return{tagContent:$.substring(W,G),i:Z}}G=Z}else if($[G+1]==="?")G=A0($,"?>",G+1,"StopNode is not closed.");else if($.substr(G+1,3)==="!--")G=A0($,"-->",G+3,"StopNode is not closed.");else if($.substr(G+1,2)==="![")G=A0($,"]]>",G,"StopNode is not closed.")-2;else{const Z=iU($,G,">");if(Z){if((Z&&Z.tagName)===U&&Z.tagExp[Z.tagExp.length-1]!=="/")X++;G=Z.closeIndex}}}function rU($,U,G){if(U&&typeof $==="string"){const W=$.trim();if(W==="true")return!0;else if(W==="false")return!1;else return P3($,G)}else if(WY.isExist($))return $;else return""}var WY=F$(),G1=tZ(),j3=$Y(),P3=GY();class XY{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=S3,this.parseXml=x3,this.parseTextData=b3,this.resolveNameSpace=k3,this.buildAttributesMap=h3,this.isItStopNode=u3,this.replaceEntitiesValue=c3,this.readStopNodeData=g3,this.saveTextToParentTag=y3,this.addChild=v3}}var D3=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),x3=function($){$=$.replace(/\r\n?/g,"\n");const U=new G1("!xml");let G=U,W="",X="";for(let Z=0;Z<$.length;Z++)if($[Z]==="<")if($[Z+1]==="/"){const L=A0($,">",Z,"Closing Tag is not closed.");let Q=$.substring(Z+2,L).trim();if(this.options.removeNSPrefix){const F=Q.indexOf(":");if(F!==-1)Q=Q.substr(F+1)}if(this.options.transformTagName)Q=this.options.transformTagName(Q);if(G)W=this.saveTextToParentTag(W,G,X);const w=X.substring(X.lastIndexOf(".")+1);if(Q&&this.options.unpairedTags.indexOf(Q)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${Q}>`);let z=0;if(w&&this.options.unpairedTags.indexOf(w)!==-1)z=X.lastIndexOf(".",X.lastIndexOf(".")-1),this.tagsNodeStack.pop();else z=X.lastIndexOf(".");X=X.substring(0,z),G=this.tagsNodeStack.pop(),W="",Z=L}else if($[Z+1]==="?"){let L=iU($,Z,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(W=this.saveTextToParentTag(W,G,X),this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags);else{const Q=new G1(L.tagName);if(Q.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent)Q[":@"]=this.buildAttributesMap(L.tagExp,X,L.tagName);this.addChild(G,Q,X)}Z=L.closeIndex+1}else if($.substr(Z+1,3)==="!--"){const L=A0($,"-->",Z+4,"Comment is not closed.");if(this.options.commentPropName){const Q=$.substring(Z+4,L-2);W=this.saveTextToParentTag(W,G,X),G.add(this.options.commentPropName,[{[this.options.textNodeName]:Q}])}Z=L}else if($.substr(Z+1,2)==="!D"){const L=j3($,Z);this.docTypeEntities=L.entities,Z=L.i}else if($.substr(Z+1,2)==="!["){const L=A0($,"]]>",Z,"CDATA is not closed.")-2,Q=$.substring(Z+9,L);W=this.saveTextToParentTag(W,G,X);let w=this.parseTextData(Q,G.tagname,X,!0,!1,!0,!0);if(w==null)w="";if(this.options.cdataPropName)G.add(this.options.cdataPropName,[{[this.options.textNodeName]:Q}]);else G.add(this.options.textNodeName,w);Z=L+2}else{let L=iU($,Z,this.options.removeNSPrefix),Q=L.tagName;const w=L.rawTagName;let{tagExp:z,attrExpPresent:F,closeIndex:J}=L;if(this.options.transformTagName)Q=this.options.transformTagName(Q);if(G&&W){if(G.tagname!=="!xml")W=this.saveTextToParentTag(W,G,X,!1)}const I=G;if(I&&this.options.unpairedTags.indexOf(I.tagname)!==-1)G=this.tagsNodeStack.pop(),X=X.substring(0,X.lastIndexOf("."));if(Q!==U.tagname)X+=X?"."+Q:Q;if(this.isItStopNode(this.options.stopNodes,X,Q)){let K="";if(z.length>0&&z.lastIndexOf("/")===z.length-1){if(Q[Q.length-1]==="/")Q=Q.substr(0,Q.length-1),X=X.substr(0,X.length-1),z=Q;else z=z.substr(0,z.length-1);Z=L.closeIndex}else if(this.options.unpairedTags.indexOf(Q)!==-1)Z=L.closeIndex;else{const B=this.readStopNodeData($,w,J+1);if(!B)throw new Error(`Unexpected end of ${w}`);Z=B.i,K=B.tagContent}const V=new G1(Q);if(Q!==z&&F)V[":@"]=this.buildAttributesMap(z,X,Q);if(K)K=this.parseTextData(K,Q,X,!0,F,!0,!0);X=X.substr(0,X.lastIndexOf(".")),V.add(this.options.textNodeName,K),this.addChild(G,V,X)}else{if(z.length>0&&z.lastIndexOf("/")===z.length-1){if(Q[Q.length-1]==="/")Q=Q.substr(0,Q.length-1),X=X.substr(0,X.length-1),z=Q;else z=z.substr(0,z.length-1);if(this.options.transformTagName)Q=this.options.transformTagName(Q);const K=new G1(Q);if(Q!==z&&F)K[":@"]=this.buildAttributesMap(z,X,Q);this.addChild(G,K,X),X=X.substr(0,X.lastIndexOf("."))}else{const K=new G1(Q);if(this.tagsNodeStack.push(G),Q!==z&&F)K[":@"]=this.buildAttributesMap(z,X,Q);this.addChild(G,K,X),G=K}W="",Z=J}}else W+=$[Z];return U.child},c3=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 $};ZY.exports=XY});var QY=R((m3)=>{function d3($,U){return LY($,U)}function LY($,U,G){let W;const X={};for(let Z=0;Z<$.length;Z++){const Y=$[Z],L=p3(Y);let Q="";if(G===void 0)Q=L;else Q=G+"."+L;if(L===U.textNodeName)if(W===void 0)W=Y[L];else W+=""+Y[L];else if(L===void 0)continue;else if(Y[L]){let w=LY(Y[L],U,Q);const z=s3(w,U);if(Y[":@"])l3(w,Y[":@"],Q,U);else if(Object.keys(w).length===1&&w[U.textNodeName]!==void 0&&!U.alwaysCreateTextNode)w=w[U.textNodeName];else if(Object.keys(w).length===0)if(U.alwaysCreateTextNode)w[U.textNodeName]="";else w="";if(X[L]!==void 0&&X.hasOwnProperty(L)){if(!Array.isArray(X[L]))X[L]=[X[L]];X[L].push(w)}else if(U.isArray(L,Q,z))X[L]=[w];else X[L]=w}}if(typeof W==="string"){if(W.length>0)X[U.textNodeName]=W}else if(W!==void 0)X[U.textNodeName]=W;return X}function p3($){const U=Object.keys($);for(let G=0;G<U.length;G++){const W=U[G];if(W!==":@")return W}}function l3($,U,G,W){if(U){const X=Object.keys(U),Z=X.length;for(let Y=0;Y<Z;Y++){const L=X[Y];if(W.isArray(L,G+"."+L,!0,!0))$[L]=[U[L]];else $[L]=U[L]}}}function s3($,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}m3.prettify=d3});var FY=R((fT,zY)=>{var{buildOptions:i3}=rZ(),r3=YY(),{prettify:o3}=QY(),a3=nU();class wY{constructor($){this.externalEntities={},this.options=i3($)}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 X=a3.validate($,U);if(X!==!0)throw Error(`${X.err.msg}:${X.err.line}:${X.err.col}`)}const G=new r3(this.options);G.addExternalEntities(this.externalEntities);const W=G.parseXml($);if(this.options.preserveOrder||W===void 0)return W;else return o3(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}}zY.exports=wY});var RY=R((qT,MY)=>{function t3($,U){let G="";if(U.format&&U.indentBy.length>0)G="\n";return IY($,U,"",G)}function IY($,U,G,W){let X="",Z=!1;for(let Y=0;Y<$.length;Y++){const L=$[Y],Q=e3(L);if(Q===void 0)continue;let w="";if(G.length===0)w=Q;else w=`${G}.${Q}`;if(Q===U.textNodeName){let K=L[Q];if(!$I(w,U))K=U.tagValueProcessor(Q,K),K=KY(K,U);if(Z)X+=W;X+=K,Z=!1;continue}else if(Q===U.cdataPropName){if(Z)X+=W;X+=`<![CDATA[${L[Q][0][U.textNodeName]}]]>`,Z=!1;continue}else if(Q===U.commentPropName){X+=W+`<!--${L[Q][0][U.textNodeName]}-->`,Z=!0;continue}else if(Q[0]==="?"){const K=JY(L[":@"],U),V=Q==="?xml"?"":W;let B=L[Q][0][U.textNodeName];B=B.length!==0?" "+B:"",X+=V+`<${Q}${B}${K}?>`,Z=!0;continue}let z=W;if(z!=="")z+=U.indentBy;const F=JY(L[":@"],U),J=W+`<${Q}${F}`,I=IY(L[Q],U,w,z);if(U.unpairedTags.indexOf(Q)!==-1)if(U.suppressUnpairedNode)X+=J+">";else X+=J+"/>";else if((!I||I.length===0)&&U.suppressEmptyNode)X+=J+"/>";else if(I&&I.endsWith(">"))X+=J+`>${I}${W}</${Q}>`;else{if(X+=J+">",I&&W!==""&&(I.includes("/>")||I.includes("</")))X+=W+U.indentBy+I+W;else X+=I;X+=`</${Q}>`}Z=!0}return X}function e3($){const U=Object.keys($);for(let G=0;G<U.length;G++){const W=U[G];if(!$.hasOwnProperty(W))continue;if(W!==":@")return W}}function JY($,U){let G="";if($&&!U.ignoreAttributes)for(let W in $){if(!$.hasOwnProperty(W))continue;let X=U.attributeValueProcessor(W,$[W]);if(X=KY(X,U),X===!0&&U.suppressBooleanAttributes)G+=` ${W.substr(U.attributeNamePrefix.length)}`;else G+=` ${W.substr(U.attributeNamePrefix.length)}="${X}"`}return G}function $I($,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}function KY($,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 $}MY.exports=t3});var VY=R((NT,BY)=>{function Q0($){if(this.options=Object.assign({},GI,$),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=ZI;if(this.processTextOrObjNode=WI,this.options.format)this.indentate=XI,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""}function WI($,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)}function XI($){return this.options.indentBy.repeat($)}function ZI($){if($.startsWith(this.options.attributeNamePrefix)&&$!==this.options.textNodeName)return $.substr(this.attrPrefixLen);else return!1}var UI=RY(),GI={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};Q0.prototype.build=function($){if(this.options.preserveOrder)return UI($,this.options);else{if(Array.isArray($)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)$={[this.options.arrayNodeName]:$};return this.j2x($,0).val}};Q0.prototype.j2x=function($,U){let G="",W="";for(let X in $){if(!Object.prototype.hasOwnProperty.call($,X))continue;if(typeof $[X]==="undefined"){if(this.isAttribute(X))W+=""}else if($[X]===null)if(this.isAttribute(X))W+="";else if(X[0]==="?")W+=this.indentate(U)+"<"+X+"?"+this.tagEndChar;else W+=this.indentate(U)+"<"+X+"/"+this.tagEndChar;else if($[X]instanceof Date)W+=this.buildTextValNode($[X],X,"",U);else if(typeof $[X]!=="object"){const Z=this.isAttribute(X);if(Z)G+=this.buildAttrPairStr(Z,""+$[X]);else if(X===this.options.textNodeName){let Y=this.options.tagValueProcessor(X,""+$[X]);W+=this.replaceEntitiesValue(Y)}else W+=this.buildTextValNode($[X],X,"",U)}else if(Array.isArray($[X])){const Z=$[X].length;let Y="",L="";for(let Q=0;Q<Z;Q++){const w=$[X][Q];if(typeof w==="undefined");else if(w===null)if(X[0]==="?")W+=this.indentate(U)+"<"+X+"?"+this.tagEndChar;else W+=this.indentate(U)+"<"+X+"/"+this.tagEndChar;else if(typeof w==="object")if(this.options.oneListGroup){const z=this.j2x(w,U+1);if(Y+=z.val,this.options.attributesGroupName&&w.hasOwnProperty(this.options.attributesGroupName))L+=z.attrStr}else Y+=this.processTextOrObjNode(w,X,U);else if(this.options.oneListGroup){let z=this.options.tagValueProcessor(X,w);z=this.replaceEntitiesValue(z),Y+=z}else Y+=this.buildTextValNode(w,X,"",U)}if(this.options.oneListGroup)Y=this.buildObjectNode(Y,X,L,U);W+=Y}else if(this.options.attributesGroupName&&X===this.options.attributesGroupName){const Z=Object.keys($[X]),Y=Z.length;for(let L=0;L<Y;L++)G+=this.buildAttrPairStr(Z[L],""+$[X][Z[L]])}else W+=this.processTextOrObjNode($[X],X,U)}return{attrStr:G,val:W}};Q0.prototype.buildAttrPairStr=function($,U){if(U=this.options.attributeValueProcessor($,""+U),U=this.replaceEntitiesValue(U),this.options.suppressBooleanAttributes&&U==="true")return" "+$;else return" "+$+'="'+U+'"'};Q0.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 X="</"+U+this.tagEndChar,Z="";if(U[0]==="?")Z="?",X="";if((G||G==="")&&$.indexOf("<")===-1)return this.indentate(W)+"<"+U+G+Z+">"+$+X;else if(this.options.commentPropName!==!1&&U===this.options.commentPropName&&Z.length===0)return this.indentate(W)+`<!--${$}-->`+this.newLine;else return this.indentate(W)+"<"+U+G+Z+this.tagEndChar+$+this.indentate(W)+X}};Q0.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};Q0.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 X=this.options.tagValueProcessor(U,$);if(X=this.replaceEntitiesValue(X),X==="")return this.indentate(W)+"<"+U+G+this.closeTag(U)+this.tagEndChar;else return this.indentate(W)+"<"+U+G+">"+X+"</"+U+this.tagEndChar}};Q0.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 $};BY.exports=Q0});var AY=R((jT,HY)=>{var YI=nU(),LI=FY(),QI=VY();HY.exports={XMLParser:LI,XMLValidator:YI,XMLBuilder:QI}});var qY=R((PT,fY)=>{var{defineProperty:J$,getOwnPropertyDescriptor:wI,getOwnPropertyNames:zI}=Object,FI=Object.prototype.hasOwnProperty,v=($,U)=>J$($,"name",{value:U,configurable:!0}),JI=($,U)=>{for(var G in U)J$($,G,{get:U[G],enumerable:!0})},II=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of zI(U))if(!FI.call($,X)&&X!==G)J$($,X,{get:()=>U[X],enumerable:!(W=wI(U,X))||W.enumerable})}return $},KI=($)=>II(J$({},"__esModule",{value:!0}),$),TY={};JI(TY,{_toBool:()=>RI,_toNum:()=>BI,_toStr:()=>MI,awsExpectUnion:()=>HI,loadRestJsonErrorCode:()=>EI,loadRestXmlErrorCode:()=>qI,parseJsonBody:()=>OY,parseJsonErrorBody:()=>TI,parseXmlBody:()=>CY,parseXmlErrorBody:()=>fI});fY.exports=KI(TY);var MI=v(($)=>{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"),RI=v(($)=>{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"),BI=v(($)=>{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"),VI=j0(),HI=v(($)=>{if($==null)return;if(typeof $==="object"&&"__type"in $)delete $.__type;return VI.expectUnion($)},"awsExpectUnion"),AI=j0(),EY=v(($,U)=>AI.collectBody($,U).then((G)=>U.utf8Encoder(G)),"collectBodyString"),OY=v(($,U)=>EY($,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"),TI=v(async($,U)=>{const G=await OY($,U);return G.message=G.message??G.Message,G},"parseJsonErrorBody"),EI=v(($,U)=>{const G=v((Z,Y)=>Object.keys(Z).find((L)=>L.toLowerCase()===Y.toLowerCase()),"findKey"),W=v((Z)=>{let Y=Z;if(typeof Y==="number")Y=Y.toString();if(Y.indexOf(",")>=0)Y=Y.split(",")[0];if(Y.indexOf(":")>=0)Y=Y.split(":")[0];if(Y.indexOf("#")>=0)Y=Y.split("#")[1];return Y},"sanitizeErrorCode"),X=G($.headers,"x-amzn-errortype");if(X!==void 0)return W($.headers[X]);if(U.code!==void 0)return W(U.code);if(U.__type!==void 0)return W(U.__type)},"loadRestJsonErrorCode"),OI=j0(),CI=AY(),CY=v(($,U)=>EY($,U).then((G)=>{if(G.length){const W=new CI.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(Q,w)=>w.trim()===""&&w.includes("\n")?"":void 0});W.addEntity("#xD","\r"),W.addEntity("#10","\n");let X;try{X=W.parse(G,!0)}catch(Q){if(Q&&typeof Q==="object")Object.defineProperty(Q,"$responseBodyText",{value:G});throw Q}const Z="#text",Y=Object.keys(X)[0],L=X[Y];if(L[Z])L[Y]=L[Z],delete L[Z];return OI.getValueFromTextNode(L)}return{}}),"parseXmlBody"),fI=v(async($,U)=>{const G=await CY($,U);if(G.Error)G.Error.message=G.Error.message??G.Error.Message;return G},"parseXmlErrorBody"),qI=v(($,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 jI=R((W1)=>{Object.defineProperty(W1,"__esModule",{value:!0});var oU=NI();oU.__exportStar(FZ(),W1);oU.__exportStar(gZ(),W1);oU.__exportStar(qY(),W1)});var i=s(H$(),1),ZK=i.default.v1,YK=i.default.v3,iG=i.default.v4,LK=i.default.v5,QK=i.default.NIL,wK=i.default.version,zK=i.default.validate,FK=i.default.stringify,JK=i.default.parse;function MK($){return $}var tL=($)=>(U)=>async(G)=>{if(!y.isInstance(G.request))return U(G);const{request:W}=G,{handlerProtocol:X=""}=$.requestHandler.metadata||{};if(X.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 Z=W.hostname;if(W.port!=null)Z+=`:${W.port}`;W.headers.host=Z}return U(G)},eL={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},RK=($)=>({applyToStack:(U)=>{U.add(tL($),eL)}});var $2=()=>($,U)=>async(G)=>{try{const W=await $(G),{clientName:X,commandName:Z,logger:Y,dynamoDbDocumentClientOptions:L={}}=U,{overrideInputFilterSensitiveLog:Q,overrideOutputFilterSensitiveLog:w}=L,z=Q??U.inputFilterSensitiveLog,F=w??U.outputFilterSensitiveLog,{$metadata:J,...I}=W.output;return Y?.info?.({clientName:X,commandName:Z,input:z(G.input),output:F(I),metadata:J}),W}catch(W){const{clientName:X,commandName:Z,logger:Y,dynamoDbDocumentClientOptions:L={}}=U,{overrideInputFilterSensitiveLog:Q}=L,w=Q??U.inputFilterSensitiveLog;throw Y?.error?.({clientName:X,commandName:Z,input:w(G.input),error:W,metadata:W.$metadata}),W}},U2={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},VK=($)=>({applyToStack:(U)=>{U.add($2(),U2)}});var rG="X-Amzn-Trace-Id",G2="AWS_LAMBDA_FUNCTION_NAME",W2="_X_AMZN_TRACE_ID",X2=($)=>(U)=>async(G)=>{const{request:W}=G;if(!y.isInstance(W)||$.runtime!=="node"||W.headers.hasOwnProperty(rG))return U(G);const X=process.env[G2],Z=process.env[W2],Y=(L)=>typeof L==="string"&&L.length>0;if(Y(X)&&Y(Z))W.headers[rG]=Z;return U({...G,request:W})},Z2={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},OK=($)=>({applyToStack:(U)=>{U.add(X2($),Z2)}});function IM($){return{...$,customUserAgent:typeof $.customUserAgent==="string"?[[$.customUserAgent]]:$.customUserAgent}}class XF{constructor({size:$,params:U}){if(this.data=new Map,this.parameters=[],this.capacity=$??50,U)this.parameters=U}get($,U){const G=this.hash($);if(G===!1)return U();if(!this.data.has(G)){if(this.data.size>this.capacity+10){const W=this.data.keys();let X=0;while(!0){const{value:Z,done:Y}=W.next();if(this.data.delete(Z),Y||++X>10)break}}this.data.set(G,U())}return this.data.get(G)}size(){return this.data.size}hash($){let U="";const{parameters:G}=this;if(G.length===0)return!1;for(let W of G){const X=String($[W]??"");if(X.includes("|;"))return!1;U+=X+"|;"}return U}}var ZF=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),o0=($)=>ZF.test($)||$.startsWith("[")&&$.endsWith("]");var YF=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),a0=($,U=!1)=>{if(!U)return YF.test($);const G=$.split(".");for(let W of G)if(!a0(W))return!1;return!0};var t0={};var $0="endpoints";function g($){if(typeof $!=="object"||$==null)return $;if("ref"in $)return`\$${g($.ref)}`;if("fn"in $)return`${$.fn}(${($.argv||[]).map(g).join(", ")})`;return JSON.stringify($,null,2)}class C extends Error{constructor($){super($);this.name="EndpointError"}}var TX=($,U)=>$===U;var EX=($)=>{const U=$.split("."),G=[];for(let W of U){const X=W.indexOf("[");if(X!==-1){if(W.indexOf("]")!==W.length-1)throw new C(`Path: '${$}' does not end with ']'`);const Z=W.slice(X+1,-1);if(Number.isNaN(parseInt(Z)))throw new C(`Invalid array index: '${Z}' in path: '${$}'`);if(X!==0)G.push(W.slice(0,X));G.push(Z)}else G.push(W)}return G};var _1=($,U)=>EX(U).reduce((G,W)=>{if(typeof G!=="object")throw new C(`Index '${W}' in '${U}' not found in '${JSON.stringify($)}'`);else if(Array.isArray(G))return G[parseInt(W)];return G[W]},$);var OX=($)=>$!=null;var CX=($)=>!$;var g1=s(T0(),1);var BU={[g1.EndpointURLScheme.HTTP]:80,[g1.EndpointURLScheme.HTTPS]:443},fX=($)=>{const U=(()=>{try{if($ instanceof URL)return $;if(typeof $==="object"&&"hostname"in $){const{hostname:J,port:I,protocol:K="",path:V="",query:B={}}=$,H=new URL(`${K}//${J}${I?`:${I}`:""}${V}`);return H.search=Object.entries(B).map(([A,T])=>`${A}=${T}`).join("&"),H}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:X,pathname:Z,protocol:Y,search:L}=U;if(L)return null;const Q=Y.slice(0,-1);if(!Object.values(g1.EndpointURLScheme).includes(Q))return null;const w=o0(X),z=G.includes(`${W}:${BU[Q]}`)||typeof $==="string"&&$.includes(`${W}:${BU[Q]}`),F=`${W}${z?`:${BU[Q]}`:""}`;return{scheme:Q,authority:F,path:Z,normalizedPath:Z.endsWith("/")?Z:`${Z}/`,isIp:w}};var qX=($,U)=>$===U;var NX=($,U,G,W)=>{if(U>=G||$.length<G)return null;if(!W)return $.substring(U,G);return $.substring($.length-G,$.length-U)};var jX=($)=>encodeURIComponent($).replace(/[!*'()]/g,(U)=>`%${U.charCodeAt(0).toString(16).toUpperCase()}`);var PX={booleanEquals:TX,getAttr:_1,isSet:OX,isValidHostLabel:a0,not:CX,parseURL:fX,stringEquals:qX,substring:NX,uriEncode:jX};var d1=($,U)=>{const G=[],W={...U.endpointParams,...U.referenceRecord};let X=0;while(X<$.length){const Z=$.indexOf("{",X);if(Z===-1){G.push($.slice(X));break}G.push($.slice(X,Z));const Y=$.indexOf("}",Z);if(Y===-1){G.push($.slice(Z));break}if($[Z+1]==="{"&&$[Y+1]==="}")G.push($.slice(Z+1,Y)),X=Y+2;const L=$.substring(Z+1,Y);if(L.includes("#")){const[Q,w]=L.split("#");G.push(_1(W[Q],w))}else G.push(W[L]);X=Y+1}return G.join("")};var SX=({ref:$},U)=>{return{...U.endpointParams,...U.referenceRecord}[$]};var Z0=($,U,G)=>{if(typeof $==="string")return d1($,G);else if($.fn)return p1($,G);else if($.ref)return SX($,G);throw new C(`'${U}': ${String($)} is not a string, function or reference.`)};var p1=({fn:$,argv:U},G)=>{const W=U.map((Z)=>["boolean","number"].includes(typeof Z)?Z:Z0(Z,"arg",G)),X=$.split(".");if(X[0]in t0&&X[1]!=null)return t0[X[0]][X[1]](...W);return PX[$](...W)};var bX=({assign:$,...U},G)=>{if($&&$ in G.referenceRecord)throw new C(`'${$}' is already defined in Reference Record.`);const W=p1(U,G);return G.logger?.debug?.(`${$0} evaluateCondition: ${g(U)} = ${g(W)}`),{result:W===""?!0:!!W,...$!=null&&{toAssign:{name:$,value:W}}}};var S0=($=[],U)=>{const G={};for(let W of $){const{result:X,toAssign:Z}=bX(W,{...U,referenceRecord:{...U.referenceRecord,...G}});if(!X)return{result:X};if(Z)G[Z.name]=Z.value,U.logger?.debug?.(`${$0} assign: ${Z.name} := ${g(Z.value)}`)}return{result:!0,referenceRecord:G}};var kX=($,U)=>Object.entries($).reduce((G,[W,X])=>({...G,[W]:X.map((Z)=>{const Y=Z0(Z,"Header value entry",U);if(typeof Y!=="string")throw new C(`Header '${W}' value '${Y}' is not a string`);return Y})}),{});var VU=($,U)=>{if(Array.isArray($))return $.map((G)=>VU(G,U));switch(typeof $){case"string":return d1($,U);case"object":if($===null)throw new C(`Unexpected endpoint property: ${$}`);return l1($,U);case"boolean":return $;default:throw new C(`Unexpected endpoint property type: ${typeof $}`)}};var l1=($,U)=>Object.entries($).reduce((G,[W,X])=>({...G,[W]:VU(X,U)}),{});var DX=($,U)=>{const G=Z0($,"Endpoint URL",U);if(typeof G==="string")try{return new URL(G)}catch(W){throw console.error(`Failed to construct URL with ${G}`,W),W}throw new C(`Endpoint URL must be a string, got ${typeof G}`)};var hX=($,U)=>{const{conditions:G,endpoint:W}=$,{result:X,referenceRecord:Z}=S0(G,U);if(!X)return;const Y={...U,referenceRecord:{...U.referenceRecord,...Z}},{url:L,properties:Q,headers:w}=W;return U.logger?.debug?.(`${$0} Resolving endpoint from template: ${g(W)}`),{...w!=null&&{headers:kX(w,Y)},...Q!=null&&{properties:l1(Q,Y)},url:DX(L,Y)}};var xX=($,U)=>{const{conditions:G,error:W}=$,{result:X,referenceRecord:Z}=S0(G,U);if(!X)return;throw new C(Z0(W,"Error",{...U,referenceRecord:{...U.referenceRecord,...Z}}))};var vX=($,U)=>{const{conditions:G,rules:W}=$,{result:X,referenceRecord:Z}=S0(G,U);if(!X)return;return s1(W,{...U,referenceRecord:{...U.referenceRecord,...Z}})};var s1=($,U)=>{for(let G of $)if(G.type==="endpoint"){const W=hX(G,U);if(W)return W}else if(G.type==="error")xX(G,U);else if(G.type==="tree"){const W=vX(G,U);if(W)return W}else throw new C(`Unknown endpoint rule: ${G}`);throw new C("Rules evaluation failed")};var LF=($,U)=>{const{endpointParams:G,logger:W}=U,{parameters:X,rules:Z}=$;U.logger?.debug?.(`${$0} Initial EndpointParams: ${g(G)}`);const Y=Object.entries(X).filter(([,w])=>w.default!=null).map(([w,z])=>[w,z.default]);if(Y.length>0)for(let[w,z]of Y)G[w]=G[w]??z;const L=Object.entries(X).filter(([,w])=>w.required).map(([w])=>w);for(let w of L)if(G[w]==null)throw new C(`Missing required parameter: '${w}'`);const Q=s1(Z,{endpointParams:G,logger:W,referenceRecord:{}});return U.logger?.debug?.(`${$0} Resolved endpoint: ${g(Q)}`),Q};var HU=($,U=!1)=>{if(U){for(let G of $.split("."))if(!HU(G))return!1;return!0}if(!a0($))return!1;if($.length<3||$.length>63)return!1;if($!==$.toLowerCase())return!1;if(o0($))return!1;return!0};var cX=($)=>{const U=$.split(":");if(U.length<6)return null;const[G,W,X,Z,Y,...L]=U;if(G!=="arn"||W===""||X===""||L.join(":")==="")return null;const Q=L.map((w)=>w.split("/")).flat();return{partition:W,service:X,region:Z,accountId:Y,resourceId:Q}};var yX={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|mx)\\-\\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)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"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 wF=yX,zF="",uX=($)=>{const{partitions:U}=wF;for(let W of U){const{regions:X,outputs:Z}=W;for(let[Y,L]of Object.entries(X))if(Y===$)return{...Z,...L}}for(let W of U){const{regionRegex:X,outputs:Z}=W;if(new RegExp(X).test($))return{...Z}}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 _X=()=>zF;var FF={isVirtualHostableS3Bucket:HU,parseArn:cX,partition:uX};t0.aws=FF;var AU="user-agent",m1="x-amz-user-agent",TU=" ",n1="/",gX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,dX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,EU="-";var JF=($)=>(U,G)=>async(W)=>{const{request:X}=W;if(!y.isInstance(X))return U(W);const{headers:Z}=X,Y=G?.userAgent?.map(OU)||[],L=(await $.defaultUserAgentProvider()).map(OU),Q=$?.customUserAgent?.map(OU)||[],w=_X(),z=(w?[w]:[]).concat([...L,...Y,...Q]).join(TU),F=[...L.filter((J)=>J.startsWith("aws-sdk-")),...Q].join(TU);if($.runtime!=="browser"){if(F)Z[m1]=Z[m1]?`${Z[AU]} ${F}`:F;Z[AU]=z}else Z[m1]=z;return U({...W,request:X})},OU=($)=>{const U=$[0].split(n1).map((Y)=>Y.replace(gX,EU)).join(n1),G=$[1]?.replace(dX,EU),W=U.indexOf(n1),X=U.substring(0,W);let Z=U.substring(W+1);if(X==="api")Z=Z.toLowerCase();return[X,Z,G].filter((Y)=>Y&&Y.length>0).reduce((Y,L,Q)=>{switch(Q){case 0:return L;case 1:return`${Y}/${L}`;default:return`${Y}#${L}`}},"")},IF={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},iB=($)=>({applyToStack:(U)=>{U.add(JF($),IF)}});var i1=($)=>typeof $==="string"&&($.startsWith("fips-")||$.endsWith("-fips"));var CU=($)=>i1($)?["fips-aws-global","aws-fips"].includes($)?"us-east-1":$.replace(/fips-(dkr-|prod-)?|-fips/,""):$;var XV=($)=>{const{region:U,useFipsEndpoint:G}=$;if(!U)throw new Error("Region is missing");return{...$,region:async()=>{if(typeof U==="string")return CU(U);const W=await U();return CU(W)},useFipsEndpoint:async()=>{const W=typeof U==="string"?U:await U();if(i1(W))return!0;return typeof G!=="function"?Promise.resolve(!!G):G()}}};var b0=($,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 Y0;(function($){$.ENV="env",$.CONFIG="shared config entry"})(Y0||(Y0={}));var KF="AWS_USE_DUALSTACK_ENDPOINT",MF="use_dualstack_endpoint";var KV={environmentVariableSelector:($)=>b0($,KF,Y0.ENV),configFileSelector:($)=>b0($,MF,Y0.CONFIG),default:!1};var RF="AWS_USE_FIPS_ENDPOINT",BF="use_fips_endpoint";var BV={environmentVariableSelector:($)=>b0($,RF,Y0.ENV),configFileSelector:($)=>b0($,BF,Y0.CONFIG),default:!1};var VF=s(r(),1);var HF=s(r(),1);var pX={environmentVariableSelector:($)=>$.AWS_REGION,configFileSelector:($)=>$.region,default:()=>{throw new Error("Region is missing")}},PV={preferredFile:"credentials"};function AF($){return(U)=>async(G)=>{const W=G.request;if(y.isInstance(W)){const{body:X,headers:Z}=W;if(X&&Object.keys(Z).map((Y)=>Y.toLowerCase()).indexOf(lX)===-1)try{const Y=$(X);W.headers={...W.headers,[lX]:String(Y)}}catch(Y){}}return U({...G,request:W})}}var lX="content-length",TF={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},GH=($)=>({applyToStack:(U)=>{U.add(AF($.bodyLengthChecker),TF)}});var sX=($,U)=>(G)=>async(W)=>{const{response:X}=await G(W);try{const Z=await U(X,$);return{response:X,output:Z}}catch(Z){if(Object.defineProperty(Z,"$response",{value:X}),!("$metadata"in Z)){if(Z.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof Z.$responseBodyText!=="undefined"){if(Z.$response)Z.$response.body=Z.$responseBodyText}}throw Z}};var mX=($,U)=>(G,W)=>async(X)=>{const Z=W.endpointV2?.url&&$.urlParser?async()=>$.urlParser(W.endpointV2.url):$.endpoint;if(!Z)throw new Error("No valid endpoint provider available.");const Y=await U(X.input,{...$,endpoint:Z});return G({...X,request:Y})};function QH($,U,G){return{applyToStack:(W)=>{W.add(sX($,G),EF),W.add(mX($,U),fU)}}}var EF={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},fU={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};var eX=s(r(),1);var nX=async($)=>{const U=$?.Bucket||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(NF(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!qF(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},OF=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,CF=/(\d+\.){3}\d+/,fF=/\.\./;var qF=($)=>OF.test($)&&!CF.test($)&&!fF.test($),NF=($)=>{const[U,G,W,,,X]=$.split(":"),Z=U==="arn"&&$.split(":").length>=6,Y=Boolean(Z&&G&&W&&X);if(Z&&!Y)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return Y};var iX=($,U,G)=>{const W=async()=>{const X=G[$]??G[U];if(typeof X==="function")return X();return X};if($==="credentialScope"||U==="CredentialScope")return async()=>{const X=typeof G.credentials==="function"?await G.credentials():G.credentials;return X?.credentialScope??X?.CredentialScope};if($==="accountId"||U==="AccountId")return async()=>{const X=typeof G.credentials==="function"?await G.credentials():G.credentials;return X?.accountId??X?.AccountId};if($==="endpoint"||U==="endpoint")return async()=>{const X=await W();if(X&&typeof X==="object"){if("url"in X)return X.url.href;if("hostname"in X){const{protocol:Z,hostname:Y,port:L,path:Q}=X;return`${Z}//${Y}${L?":"+L:""}${Q}`}}return X};return W};var rX="AWS_ENDPOINT_URL",oX="endpoint_url",aX=($)=>({environmentVariableSelector:(U)=>{const G=$.split(" ").map((Z)=>Z.toUpperCase()),W=U[[rX,...G].join("_")];if(W)return W;const X=U[rX];if(X)return X;return},configFileSelector:(U,G)=>{if(G&&U.services){const X=G[["services",U.services].join(qU)];if(X){const Z=$.split(" ").map((L)=>L.toLowerCase()),Y=X[[Z.join("_"),oX].join(qU)];if(Y)return Y}}const W=U[oX];if(W)return W;return},default:void 0});var r1=async($)=>R0(aX($??""))();var o1=($)=>{if(typeof $==="object"){if("url"in $)return NU($.url);return $}return NU($)};var tX=async($,U,G,W)=>{if(!G.endpoint){let Y;if(G.serviceConfiguredEndpoint)Y=await G.serviceConfiguredEndpoint();else Y=await r1(G.serviceId);if(Y)G.endpoint=()=>Promise.resolve(o1(Y))}const X=await jF($,U,G);if(typeof G.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return G.endpointProvider(X,W)},jF=async($,U,G)=>{const W={},X=U?.getEndpointParameterInstructions?.()||{};for(let[Z,Y]of Object.entries(X))switch(Y.type){case"staticContextParams":W[Z]=Y.value;break;case"contextParams":W[Z]=$[Y.name];break;case"clientContextParams":case"builtInParams":W[Z]=await iX(Y.name,Z,G)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(Y))}if(Object.keys(X).length===0)Object.assign(W,G);if(String(G.serviceId).toLowerCase()==="s3")await nX(W);return W};var $Z=({config:$,instructions:U})=>{return(G,W)=>async(X)=>{const Z=await tX(X.input,{getEndpointParameterInstructions(){return U}},{...$},W);W.endpointV2=Z,W.authSchemes=Z.properties?.authSchemes;const Y=W.authSchemes?.[0];if(Y){W.signing_region=Y.signingRegion,W.signing_service=Y.signingName;const Q=eX.getSmithyContext(W)?.selectedHttpAuthScheme?.httpAuthOption;if(Q)Q.signingProperties=Object.assign(Q.signingProperties||{},{signing_region:Y.signingRegion,signingRegion:Y.signingRegion,signing_service:Y.signingName,signingName:Y.signingName,signingRegionSet:Y.signingRegionSet},Y.properties)}return G({...X})}};var PF={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:fU.name},hH=($,U)=>({applyToStack:(G)=>{G.addRelativeTo($Z({config:$,instructions:U}),PF)}});var a1=s(r(),1);var yH=($)=>{const U=$.tls??!0,{endpoint:G}=$,W=G!=null?async()=>o1(await a1.normalizeProvider(G)()):void 0,Z={...$,endpoint:W,tls:U,isCustomEndpoint:!!G,useDualstackEndpoint:a1.normalizeProvider($.useDualstackEndpoint??!1),useFipsEndpoint:a1.normalizeProvider($.useFipsEndpoint??!1)};let Y=void 0;return Z.serviceConfiguredEndpoint=async()=>{if($.serviceId&&!Y)Y=r1($.serviceId);return Y},Z};var hU=s(r(),1);var d;(function($){$.STANDARD="standard",$.ADAPTIVE="adaptive"})(d||(d={}));var B0=3,UZ=d.STANDARD;var GZ=s(J0(),1);class t1{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(),GZ.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 V0=100,e0=20000,jU=500,e1=500,PU=5,SU=10,bU=1,$$="amz-sdk-invocation-id",U$="amz-sdk-request";var WZ=()=>{let $=V0;return{computeNextBackoffDelay:(W)=>{return Math.floor(Math.min(e0,Math.random()*2**W*$))},setDelayBase:(W)=>{$=W}}};var kU=({retryDelay:$,retryCount:U,retryCost:G})=>{return{getRetryCount:()=>U,getRetryDelay:()=>Math.min(e0,$),getRetryCost:()=>G}};class k0{constructor($){this.maxAttempts=$,this.mode=d.STANDARD,this.capacity=e1,this.retryBackoffStrategy=WZ(),this.maxAttemptsProvider=typeof $==="function"?$:async()=>$}async acquireInitialRetryToken($){return kU({retryDelay:V0,retryCount:0})}async refreshRetryTokenForRetry($,U){const G=await this.getMaxAttempts();if(this.shouldRetry($,U,G)){const W=U.errorType;this.retryBackoffStrategy.setDelayBase(W==="THROTTLING"?jU:V0);const X=this.retryBackoffStrategy.computeNextBackoffDelay($.getRetryCount()),Z=U.retryAfterHint?Math.max(U.retryAfterHint.getTime()-Date.now()||0,X):X,Y=this.getCapacityCost(W);return this.capacity-=Y,kU({retryDelay:Z,retryCount:$.getRetryCount()+1,retryCost:Y})}throw new Error("No retry token available")}recordSuccess($){this.capacity=Math.max(e1,this.capacity+($.getRetryCost()??bU))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch($){return console.warn(`Max attempts provider could not resolve. Using default of ${B0}`),B0}}shouldRetry($,U,G){return $.getRetryCount()+1<G&&this.capacity>=this.getCapacityCost(U.errorType)&&this.isRetryableError(U.errorType)}getCapacityCost($){return $==="TRANSIENT"?SU:PU}isRetryableError($){return $==="THROTTLING"||$==="TRANSIENT"}}class DU{constructor($,U){this.maxAttemptsProvider=$,this.mode=d.ADAPTIVE;const{rateLimiter:G}=U??{};this.rateLimiter=G??new t1,this.standardRetryStrategy=new k0($)}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 XZ="AWS_MAX_ATTEMPTS",ZZ="max_attempts",OA={environmentVariableSelector:($)=>{const U=$[XZ];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Environment variable ${XZ} mast be a number, got "${U}"`);return G},configFileSelector:($)=>{const U=$[ZZ];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Shared config file entry ${ZZ} mast be a number, got "${U}"`);return G},default:B0},CA=($)=>{const{retryStrategy:U}=$,G=hU.normalizeProvider($.maxAttempts??B0);return{...$,maxAttempts:G,retryStrategy:async()=>{if(U)return U;if(await hU.normalizeProvider($.retryMode)()===d.ADAPTIVE)return new DU(G);return new k0(G)}}},SF="AWS_RETRY_MODE",bF="retry_mode",fA={environmentVariableSelector:($)=>$[SF],configFileSelector:($)=>$[bF],default:UZ};var D0=s(J0(),1);import{Readable as kF}from"stream";var YZ=($)=>$?.body instanceof kF||typeof ReadableStream!=="undefined"&&$?.body instanceof ReadableStream;var xU=($)=>{if($ instanceof Error)return $;if($ instanceof Object)return Object.assign(new Error,$);if(typeof $==="string")return new Error($);return new Error(`AWS SDK error wrapper for ${$}`)};var DF=($)=>(U,G)=>async(W)=>{let X=await $.retryStrategy();const Z=await $.maxAttempts();if(hF(X)){X=X;let Y=await X.acquireInitialRetryToken(G.partition_id),L=new Error,Q=0,w=0;const{request:z}=W,F=y.isInstance(z);if(F)z.headers[$$]=iG();while(!0)try{if(F)z.headers[U$]=`attempt=${Q+1}; max=${Z}`;const{response:J,output:I}=await U(W);return X.recordSuccess(Y),I.$metadata.attempts=Q+1,I.$metadata.totalRetryDelay=w,{response:J,output:I}}catch(J){const I=xF(J);if(L=xU(J),F&&YZ(z))throw(G.logger instanceof LZ?console:G.logger)?.warn("An error was encountered in a non-retryable streaming request."),L;try{Y=await X.refreshRetryTokenForRetry(Y,I)}catch(V){if(!L.$metadata)L.$metadata={};throw L.$metadata.attempts=Q+1,L.$metadata.totalRetryDelay=w,L}Q=Y.getRetryCount();const K=Y.getRetryDelay();w+=K,await new Promise((V)=>setTimeout(V,K))}}else{if(X=X,X?.mode)G.userAgent=[...G.userAgent||[],["cfg/retry-mode",X.mode]];return X.retry(U,W)}},hF=($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined",xF=($)=>{const U={error:$,errorType:vF($)},G=yF($.$response);if(G)U.retryAfterHint=G;return U},vF=($)=>{if(D0.isThrottlingError($))return"THROTTLING";if(D0.isTransientError($))return"TRANSIENT";if(D0.isServerError($))return"SERVER_ERROR";return"CLIENT_ERROR"},cF={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},vA=($)=>({applyToStack:(U)=>{U.add(DF($),cF)}}),yF=($)=>{if(!vU.isInstance($))return;const U=Object.keys($.headers).find((Z)=>Z.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 uF=s(J0(),1);var G$=s(J0(),1);import{platform as PI,release as SI}from"os";import{env as jY,versions as bI}from"process";var aU={isCrtAvailable:!1};var NY=()=>{if(aU.isCrtAvailable)return["md/crt-avail"];return null};var kI="AWS_SDK_UA_APP_ID",DI="sdk-ua-app-id",yT=({serviceId:$,clientVersion:U})=>{const G=[["aws-sdk-js",U],["ua","2.0"],[`os/${PI()}`,SI()],["lang/js"],["md/nodejs",`${bI.node}`]],W=NY();if(W)G.push(W);if($)G.push([`api/${$}`,U]);if(jY.AWS_EXECUTION_ENV)G.push([`exec-env/${jY.AWS_EXECUTION_ENV}`]);const X=R0({environmentVariableSelector:(Y)=>Y[kI],configFileSelector:(Y)=>Y[DI],default:void 0})();let Z=void 0;return async()=>{if(!Z){const Y=await X;Z=Y?[...G,[`app/${Y}`]]:[...G]}return Z}};import{Buffer as hI}from"buffer";import{createHash as xI,createHmac as vI}from"crypto";function PY($,U){if(hI.isBuffer($))return $;if(typeof $==="string")return SY($,U);if(ArrayBuffer.isView($))return tU($.buffer,$.byteOffset,$.byteLength);return tU($)}class cI{constructor($,U){this.algorithmIdentifier=$,this.secret=U,this.reset()}update($,U){this.hash.update(bY(PY($,U)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?vI(this.algorithmIdentifier,PY(this.secret)):xI(this.algorithmIdentifier)}}import{fstatSync as yI,lstatSync as uI}from"fs";var nT=($)=>{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 uI($.path).size;else if(typeof $.fd==="number")return yI($.fd).size;throw new Error(`Body Length computation failed for ${$}`)};var kY="AWS_EXECUTION_ENV",eU="AWS_REGION",$G="AWS_DEFAULT_REGION",DY="AWS_EC2_METADATA_DISABLED",hY=["in-region","cross-region","mobile","standard","legacy"],xY="/latest/meta-data/placement/region";var vY={environmentVariableSelector:($)=>{return $.AWS_DEFAULTS_MODE},configFileSelector:($)=>{return $.defaults_mode},default:"legacy"};var XE=({region:$=R0(pX),defaultsMode:U=R0(vY)}={})=>cY(async()=>{const G=typeof U==="function"?await U():U;switch(G?.toLowerCase()){case"auto":return _I($);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 ${hY.join(", ")}, got ${G}`)}}),_I=async($)=>{if($){const U=typeof $==="function"?await $():$,G=await gI();if(!G)return"standard";if(U===G)return"in-region";else return"cross-region"}return"standard"},gI=async()=>{if(process.env[kY]&&(process.env[eU]||process.env[$G]))return process.env[eU]??process.env[$G];if(!process.env[DY])try{const{getInstanceMetadataEndpoint:$,httpRequest:U}=await import("./chunk-11by8vja.js"),G=await $();return(await U({...G,path:xY})).toString()}catch($){}};var QE=($)=>{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}}},wE=($)=>{return{region:$.region()}};export{iG as V,r as W,MK as X,RK as Y,VK as Z,OK as _,b0 as $,Y0 as aa,RU as ba,IM as ca,XF as da,t0 as ea,LF as fa,FF as ga,iB as ha,KV as ia,BV as ja,pX as ka,PV as la,XV as ma,GH as na,jF as oa,QH as pa,hH as qa,yH as ra,UZ as sa,OA as ta,CA as ua,fA as va,vA as wa,jI as xa,yT as ya,cI as za,nT as Aa,XE as Ba,QE as Ca,wE as Da};
|
|
19
|
-
|
|
20
|
-
//# debugId=09A33E1BA7DC95C664756E2164756E21
|
package/dist/chunk-r3qdswng.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{C as $,D as w,E as z}from"./chunk-kmfnx43s.js";import{Eb as q,Gb as G,Ib as Y}from"./chunk-n7j3s0s0.js";import{Kb as Z}from"./chunk-p9gc7ke6.js";var H="AWS_EC2_METADATA_DISABLED",Q=async(b)=>{const{ENV_CMDS_FULL_URI:j,ENV_CMDS_RELATIVE_URI:x,fromContainerMetadata:y,fromInstanceMetadata:J}=await import("./chunk-11by8vja.js");if(process.env[x]||process.env[j]){b.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:K}=await import("./chunk-h1xm4rnm.js");return G(K(b),y(b))}if(process.env[H])return async()=>{throw new q("EC2 Instance Metadata Service access disabled",{logger:b.logger})};return b.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),J(b)};var X=!1,W=(b={})=>Y(G(async()=>{if(b.profile??process.env[Z]){if(process.env[$]&&process.env[w]){if(!X)(b.logger?.warn&&b.logger?.constructor?.name!=="NoOpLogger"?b.logger.warn:console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
|
|
2
|
-
Multiple credential sources detected:
|
|
3
|
-
Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
|
|
4
|
-
This SDK will proceed with the AWS_PROFILE value.
|
|
5
|
-
|
|
6
|
-
However, a future version may change this behavior to prefer the ENV static credentials.
|
|
7
|
-
Please ensure that your environment only sets either the AWS_PROFILE or the
|
|
8
|
-
AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
|
|
9
|
-
`),X=!0}throw new q("AWS_PROFILE is set, skipping fromEnv provider.",{logger:b.logger,tryNextLink:!0})}return b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),z(b)()},async()=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:j,ssoAccountId:x,ssoRegion:y,ssoRoleName:J,ssoSession:K}=b;if(!j&&!x&&!y&&!J&&!K)throw new q("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:b.logger});const{fromSSO:B}=await import("./chunk-ef6dgp5k.js");return B(b)()},async()=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:j}=await import("./chunk-arbx49j6.js");return j(b)()},async()=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:j}=await import("./chunk-b6w0fgxz.js");return j(b)()},async()=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:j}=await import("./chunk-en5bya0k.js");return j(b)()},async()=>{return b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await Q(b))()},async()=>{throw new q("Could not load credentials from any providers",{tryNextLink:!1,logger:b.logger})}),v,k),k=(b)=>b?.expiration!==void 0,v=(b)=>b?.expiration!==void 0&&b.expiration.getTime()-Date.now()<300000;export{W as Jb};
|
|
10
|
-
|
|
11
|
-
//# debugId=DBD53A383BA5E24264756E2164756E21
|